Archive for the ‘TweenLite’ Category

I took an advanced ActionScript class a few weeks ago and was introduced to TweeLite (http://www.tweenlite.com), an AS Tween Library. I was skeptical at first, but after playing with it for a while, it’s got some really great features. On the site, you can preview all of the possible animations and filters. You can also do this with the SWFs that come with the download.

You’ll have to import the appropriate classes to begin with. They are all located in the gs folder.

import gs.*;

Then you have access to the Tweens. Here’s an example [nested in a function] of a MovieClip called mover, being transformed:

As you can see, this is pretty powerful stuff as you can couple more than one property into the function, unlike Flash’s built-in Tween object. The delay property is nice to, because you can set a string of events.

If you have multiple clips you want to move, you can use something called a Tween Group. Here’s an example:

I’m still working out some things, like getting multiple objects separate tween instances and getting more filter effects to work. But the results are great and easy to implement. There have been other Tween packages in the past, but this one is pretty powerful.

Search for:

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.