# Timing movie clips at different time intervals

**URL:** <https://forum.kirupa.com/t/timing-movie-clips-at-different-time-intervals/321867>\
**Category:** flash\
**Created:** [May 3, 2011, 7:21pm UTC](https://forum.kirupa.com/t/timing-movie-clips-at-different-time-intervals/321867 "2011-05-03T19:21:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonnyJ](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@JonnyJ](https://forum.kirupa.com/u/JonnyJ)\
**Post date:** [May 3, 2011, 7:21pm UTC](https://forum.kirupa.com/t/timing-movie-clips-at-different-time-intervals/321867/1 "2011-05-03T19:21:02Z")

</div>

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:

```auto

//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!
