TweenLite
A Lightweight and fast Tweening Engine written in actionscript.
TweenLite is a remarkably elegant Tweening class written in actionscript 2 (there's also a Actionscript 3 version available).
From the site:
Tweening. We all do it. Most of us have learned to avoid Adobe's Tween class in favor of a more powerful, less code-heavy engine (Tweener, Fuse, MC Tween, etc.). Each has its own strengths & weaknesses. A few years back, I created TweenLite because I needed a very compact tweening engine that was fast and efficient (I couldn't afford the file size bloat that came with the other tweening engines). It quickly became integral to my work flow. I figured others might be able to benefit from it, so I released it publicly. Over the past few years, I received a lot of positive feedback.
Why use TweenLite instead of Adobe's built-in tween class?
- SPEED. TweenLite is much faster
- onComplete, onStart, onUpdate callbacks (plus the ability to pass any number of variables to them)
- autoAlpha (toggles visibility of an object off when the alpha hits zero)
- Tween multiple properties with a single call
- Delay any tween by a set amount (good for sequencing)
- Tween the tint of any MovieClip/Sprite VERY easily
- Tween the volume of any MovieClip
- Unique "from()" call that allows you to use the current properties as the end values
- Use relative values
- Tween arrays of numeric values with a single call
- TweenLite automatically overwrites tweens of the same object by default in order to avoid conflicts (this behavior can easily be turned off too)
- Useful delayedCall() allows you to call any function after a set amount of time and even pass any number of arguments
- Has a big brother, "TweenFilterLite" that extends TweenLite and adds the ability to tween filters and advanced effects like saturation, hue, contrast, brightness, colorization, etc.
The kind author is happy to share this class with whoever can put it to good use. I don't even mind if it's used in commercial projects. I'd love it if you dropped me a line to let me know it helped you in some way, and maybe even send me a link to the site in which it was used.
Related categories:
Comments? Need help with a component? Use our forums for further discussions.
Posted on the 11th of March at 6:29 pm

