Package | flupie.textanim |
Class | public class TextAnimEvent |
Inheritance | TextAnimEvent ![]() |
Constant | Defined By | ||
---|---|---|---|
COMPLETE : String = complete [static]
Dispatched when dispatche blocks was completed. | TextAnimEvent | ||
PROGRESS : String = progress [static]
Dispatched when the dipatch blocks is on progress each blocks. | TextAnimEvent | ||
START : String = start [static]
Dispatched when TextAnim start to dispatche blocks. | TextAnimEvent |
COMPLETE | Constant |
public static const COMPLETE:String = complete
Dispatched when dispatche blocks was completed.
Example:
import flupie.textanim.TextAnim;
var myTextAnim:TextAnim = new TextAnim(myTextField);
myTextAnim.effects = myEffect;
myTextAnim.addEventListener(TextAnimEvent.COMPLETE, completeHandler);
myTextAnim.start();
function myEffect(block:TextAnimBlock):void {
block.scaleY = 2;
}
function completeHandler(e:Event):void {
trace("COMPLETE");
}
PROGRESS | Constant |
public static const PROGRESS:String = progress
Dispatched when the dipatch blocks is on progress each blocks.
Example:
import flupie.textanim.TextAnim;
var myTextAnim:TextAnim = new TextAnim(myTextField);
myTextAnim.effects = myEffect;
myTextAnim.addEventListener(TextAnimEvent.PROGRESS, progressHandler);
myTextAnim.start();
function myEffect(block:TextAnimBlock):void {
block.scaleY = 2;
}
function progressHandler(e:Event):void {
trace("PROGRESS");
}
START | Constant |
public static const START:String = start
Dispatched when TextAnim start to dispatche blocks.
Example:
import flupie.textanim.TextAnim;
var myTextAnim:TextAnim = TextAnim.create(myTextField, {effect:myEffect});
myTextAnim.addEventListener(TextAnimEvent.START, startHandler);
myTextAnim.start();
function myEffect(block:TextAnimBlock):void {
block.scaleY = 2;
}
function startHandler(e:Event):void {
trace("START!");
}