Return to Snippet

Revision: 25957
at April 14, 2010 21:45 by edsonpavoni


Initial Code
//TextAnim
import flupie.textanim.*;

TextAnim.create( _textField, {effects:StartTextEffect, delay:1000, interval:0, split:TextAnimSplit.CHARS, onComplete:ativar} ).start();

private function StartTextEffect( block:TextAnimBlock ):void 
{
	Tweener.addTween(block, {alpha:1, y:block.y, time:.4, transition:"easeOutCubic"});
	
	block.alpha = 0;
	block.mouseEnabled = false;
	
	if (block.index % 2)
	{
		block.y -= 10;
	}
	else
	{
		block.y += 10;
	}
}

Initial URL

                                

Initial Description

                                

Initial Title
Text Anim Shortcut

Initial Tags
text

Initial Language
ActionScript 3