10Sep/0941
Using Tween Class in Flash AS3
Using Tween Class, we can animate, fade or move any specific movieclip to animate over a specified period of time.
import fl.transitions.Tween; import fl.transitions.easing.*; var myTweenX:Tween=new Tween(_mc,"x",Elastic.easeOut,36,260,3,true);
We can use different Easing mechanisms to perform this animation. We have following differnet Easing methods:
- Back : the animation will go beyond the end position before bouncing back into it
- Bounce: the animation will bounce back a few steps when it reaches the end position before settling at it
- Elastic: a mixture of Bounce and Back effects combined
- None: no special tweening, the object movement will not speed up along the path
- Regular: the animation will gradually increase or decrease in speed as specified by the easing method
- Strong: a more emphasised Regular effect