Posted By

edsonpavoni on 04/14/10


Tagged

text shortcut Anim flupie textAnim


Versions (?)

Text Anim Shortcut


 / Published in: ActionScript 3
 

  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  

You need to login to post a comment.