Wednesday, June 4, 2008

Tweening with MC Tween

After the Tween & TransitionManager Class, to make life more easier I have found MC Tween extension which can be used to tween objects such as movieclip/sound/textfield.

You just need to #include "mc_tween2.as" and use one simple command to create a new tweening. It doesn't use the MovieClip's own onEnterFrame event & It is based on time, not on frames.

Let's suppose you want to move something using an animation, to provide a smoother experience for the user. Using MC Tween, you could do:
myMovieclip.tween("_x", 100);

To download the extension or read the full documentation with examples please go to: http://hosted.zeh.com.br/mctween/