Very nice example about tweening with AS2 and AS3 by Jack. The interesting point is that he is taking only 3k file size, to make tweening. As he says “TweenLite is simple, very fast, and more lightweight than any other popular tweening engine.”
The main objectives of this work are:
- Minimize file size
- Minimize the amount of code required to initiate a tween
- Tween multiple properties with a single call (including a MovieClip’s volume and color)
- Maximize performance
- Build in the ability to call any function when a tween has completed and pass any number of parameters to that function
- Build in the ability to call any function when a tween starts and pass any number of parameters to that function
- Allow the user to set a delay before the tween takes effect (useful when looping through an array and you want to have tweens activate in a sequential way)
Check the full article and example here.
Brgds,
CP
August 24th, 2008 at 2:35 pm
If you need to create a custom tween for a Tweenlite I have written this handy app that allows you to do just that here http://marfastic.blogspot.com/2008/08/create-custom-tweens-for-tweenlite.html .