Said from the man himself. Great suggestion!

On Sep 9, 2010 6:58 PM, "Jack Doyle" <[email protected]> wrote:

No need to use a Timer. Wouldn't it be as simple as this?:

var targets:Array = [mc1, mc2, mc3];
var positions:Array = [0, 100, 200];
var stagger:Number = 0.2;
for (var i:int = 0; i < targets.length; i++) {
       TweenMax.to(targets[i], 1, {y:positions[i], delay:i * stagger});
}

If you need to control the entire sequence as a whole (pause(), resume(),
reverse(), restart(), gotoAndPlay(), etc.), definitely insert() them into a
TimelineLite or TimelineMax. If you aren't familiar with TimelineLite/Max,
check out the brief video at http://www.greensock.com/timeline-basics/. But
again, a simple loop along with the delay special property should be all you
need for most situations.

Jack



-----Original Message-----
From: Merrill, Jason [mailto:[email protected]]
Sent: Th...

Subject: [Flashcoders] TweenMax.allTo()

So in Greensock's TweenMax, you can tween and stagger (dela...

_______________________________________________
Flashcoders mailing list
[email protected]...
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to