Text Anim Shortcut


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //TextAnim
  2. import flupie.textanim.*;
  3.  
  4. TextAnim.create( _textField, {effects:StartTextEffect, delay:1000, interval:0, split:TextAnimSplit.CHARS, onComplete:ativar} ).start();
  5.  
  6. private function StartTextEffect( block:TextAnimBlock ):void
  7. {
  8. Tweener.addTween(block, {alpha:1, y:block.y, time:.4, transition:"easeOutCubic"});
  9.  
  10. block.alpha = 0;
  11. block.mouseEnabled = false;
  12.  
  13. if (block.index % 2)
  14. {
  15. block.y -= 10;
  16. }
  17. else
  18. {
  19. block.y += 10;
  20. }
  21. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.