Timing movie clips at different time intervals

Hey guys,

It feels like it’s been ages since I’ve worked in Action Script (dissapointingly the demand just isn’t there for me) and I’m really, really rusty.

I’m working on a Flash banner, and one particular part has 5 movie clips. I want each movie clip to fire off at separate intervals(i set it at 300 miliseconds per clip)

Here is the code I have written that works for two clips:


//Animate each icon

var timer:Timer = new Timer(300, 1);//create the timer
timer.addEventListener(TimerEvent.TIMER, doNextTween);
timer.start();
 
var tween_mc:Tween = new Tween(mc_bb, "y", Strong.easeOut, 100, 1, 1, true);
 
function doNextTween(e:TimerEvent):void{
  var tween_mm:Tween = new Tween(mc_mm, "y", Strong.easeOut, 100, 1, 1, true);
  timer.removeEventListener(TimerEvent.TIMER, doNextTween);
  
}


This works great for the first two tweens, but I can’t figure out how to apply this to all five. I’m sure the answer is obvious, and I will be rather emabarassed when I find out the answer.

Thanks a million!