Package | flupie.textanim |
Class | public class TextAnimAnchor |
Inheritance | TextAnimAnchor ![]() |
Use to change anchor properties. TOP and BOTTOM works with vertical orientation. LEFT and RIGHT works with horizontal. CENTER can set either.
import flupie.textanim.TextAnim;
var myTextAnim:TextAnim = new TextAnim(myTextField);
myTextAnim.effects = myEffect;
myTextAnim.anchorY = TextAnimAnchor.TOP; //changes the vertical registration to TOP, and keeps horizontal registration.
myTextAnim.start();
function myEffect(block:TextAnimBlock):void {
block.scaleY = 2;
}
You can use TextAnimTools.showAnchors(myTextAnim)
to visualize the anchor points.