[AS3]Using caurina Tweener

Tecsi Aron
Been working in IT since 2000, mostly in VB* till 3 years ago, when i migrated to Flash and AS3. Made several projects that combine AS3 with PHP. Mostly worked on games and Desktop applications.
View all articles by Tecsi Aron- The native one has bugs. For example if you are simultaneously tweening 3 objects with native Tween class, from time to time you notice that one or more Tweens simply stop (at least this happened to me a lot while I was using the native class).
- You need 1 tween / tweened property. (If you move an object both on x and y you need two Tweens)
- It uses the same event model as everything in AS3(This is not necessarily bad, bit with Caurina Tweener you can not only specify the name of the handling function, you can also specify its parameters)
- Works fine regardless of the Tweened objects.
- Gives better performance.
- You can tween multiple properties of 1 object with a single line of code
- It's built with static functions, meaning that you don't need an instance of the class every time you want to make a tween.
The black box having instance name "box", and the initial alpha being 0.5 the code is:
import caurina.transitions.Tweener;
Tweener.addTween(box,{x:300, y:100, alpha:1, time:2, transition:"linear"});
see next page.....


