AS3 Typewriter Text Effect

I had a need to use a typewriter text effect to populate text in a textfield. This was easily solved with two lines of code using the Greensock SplitTextfield class.

import com.greensock.TweenMax;
import com.greensock.text.SplitTextField;
import com.greensock.easing.*;

var stf:SplitTextField = new SplitTextField(text_tf);
TweenMax.allFrom(stf.textFields, .01, {alpha:0}, .1);

You can still see the text fading in somewhat but I feel that it works well enough for my use.

  1. No comments yet.

  1. No trackbacks yet.

 


Warning: require_once(/home/jeffguthrie/jeffguthrie.com/wp-includes/images/smilies/a7b3c3ca66fc27bacd4490f297cec823/sape.php) [function.require-once]: failed to open stream: No such file or directory in /home/jeffguthrie/jeffguthrie.com/wp-content/themes/monochrome/footer.php on line 31

Fatal error: require_once() [function.require]: Failed opening required '/home/jeffguthrie/jeffguthrie.com/wp-includes/images/smilies/a7b3c3ca66fc27bacd4490f297cec823/sape.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/jeffguthrie/jeffguthrie.com/wp-content/themes/monochrome/footer.php on line 31