PDA

View Full Version : Tween class question


absolutezero3424
10-23-2007, 12:20 AM
How would I use the Tween class to perform a tween with MORE THAN one property? for example:


var tween1:Tween = new Tween(some_mc, "x", Bounce.easeOut, some_mc.x, someOtherX, 1, true);


I want to tween the "y", "width", and "height" properties also.
How do I accomplish this? Is there a way through the Tween class?

matbury
10-23-2007, 12:30 AM
You just create more Tweens!

var tweenX:Tween;
var tweenY:Tween;
var tweenWidth:Tween;
etc.

dr_zeus
10-23-2007, 05:35 PM
There's an open source project Tweener (http://code.google.com/p/tweener/) that allows you to tween multiple properties at a time.