Tweening allows you to create parametrized animations by changing a property from one value to another using an easing function. Almost any property can be tweened. To initiate a tween, you use the startTween() function of an element.
<Application>
<Sprite>
<Shape>
<SolidFill id="background" color="0x333333">
<Rectangle width="100" height="100" />
</SolidFill>
</Shape>
<EventListener target="{parent}" type="click">
parent.startTween('x', 400, 3);
parent.startTween('y', 100, 3);
</EventListener>
</Sprite>
</Application>
This tutorial isn't complete yet.
© 2008 by — Valid XHTML