ref: TweenLite | DevKick

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.

Download TweenLite

Related categories:

Comments? Need help with a component? Use our forums for further discussions.

Posted on the 11th of March at 6:29 pm

From the blog RSS

Form validation with jQuery from scratch
3rd of July at 3:26 pm
Full Screen Image Gallery Using jQuery and Flickr
25th of February at 8:49 pm
Stylegala Reborn
30th of January at 7:30 pm
Hello?
24th of September at 8:00 pm
Design Inspiration: European Graphic Design from 1950-1970
30th of May at 5:08 pm
Parsing Strings With jQuery
28th of May at 12:21 pm
Modalpreview - Preview Your Comment in a Modal Window
19th of May at 8:32 pm
Milestone 01 - 70+ High-End Components for Web Designers and Developers
13th of May at 9:52 pm
Tripoli Beta
8th of May at 7:08 pm
The Visual Active State: Popular Techniques and Examples
2nd of May at 7:34 pm

DevKick News RSS

Image Spark
 18th of February at 8:14 am
Pattern Tap : Collections
 13th of February at 12:03 am
Bombia Design | Portfolio
 9th of February at 7:43 pm
Designers Toolbox: Web Safe Area
 8th of February at 5:03 pm
I would like to be a Pony
 3rd of February at 8:31 am
Josef Müller-Brockmann
 3rd of February at 8:06 am
Thinking for a Living?
 26th of January at 4:05 pm
Warrick - Recover Your Lost Website
 26th of January at 3:17 pm
Alexandros Vasmoulakis
 20th of January at 10:33 am
SEOmoz | How to Convince a Client They Don't Need a Splash Page
 16th of January at 7:27 am

From the lab