# Delay a loop?

**URL:** <https://forum.kirupa.com/t/delay-a-loop/302964>\
**Category:** Uncategorized\
**Created:** [January 11, 2010, 5:01pm UTC](https://forum.kirupa.com/t/delay-a-loop/302964 "2010-01-11T17:01:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deborah](https://avatars.discourse-cdn.com/v4/letter/d/6f9a4e/32.png) [@Deborah](https://forum.kirupa.com/u/Deborah)\
**Post date:** [January 11, 2010, 5:01pm UTC](https://forum.kirupa.com/t/delay-a-loop/302964/1 "2010-01-11T17:01:59Z")

</div>

This adds 3 movieclips to the stage all at once. I would like them to be added one after another - perhaps as soon as the tween finishes, the next one is added. I have tried timers but I ended up with 3 timers for 3 functions. Ideally I will be adding up to 10 and eventually I would like the time between each addition to decrease - you know, like when popcorn starts popping, slowly at first then it really starts popping fast. Sort of like that :nerd:. Ideas?

```auto

var dArr:Array = new Array();
dArr.push({ss:.05, xp:30, yp:35, es:.18});
dArr.push({ss:.05, xp:120, yp:125, es:.28});
dArr.push({ss:.05, xp:30, yp:100, es:.18});

function pop4(e:TimerEvent):void {
    for (var j:int = 0; j < 3; j++){
            var dol4:MovieClip = new dollar();
            dol4.scaleX = dol4.scaleY = dArr[j].ss;
            dol4.x = dArr[j].xp;
            dol4.y = dArr[j].yp;
            stage.addChild(dol4);
            var sm5 = new Tween(dol4, "scaleX", Elastic.easeOut, .05, dArr[j].es, 1, true);
            popper.play(0,0,soundSetting);
            var sm6 = new Tween(dol4, "scaleY", Elastic.easeOut, .05, dArr[j].es, 1, true);
    }
}

```
