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 . Ideas?
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);
}
}