Share Posted May 11, 2015 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 More sharing options...
Author Share Posted May 11, 2015 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}}); 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now