Jump to content


Using a variable for the Scamble Text Plugin

Moderator Tag

Recommended Posts

It is possible to use a variable for the scramble text plugin?

For example, the text I am going to use will be a number that will vary in different situations.


TweenLite.to(yourTextField, 1, {scrambleText:"THIS IS NEW TEXT"});

Link to comment
Share on other sites

Just answered my own question. I converted the number into a string. Then used the string variable in the scramble text code. Kudos for me!


var progress: Number = (1/11)*100;
var progressString:String = progress.toString();

TweenLite.to(txt_ProgressBarResults, 1, {scrambleText:{delay: 1, text:progressString, chars:"09", speed:0.2}});

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.