Hi everyone - this is my first post!
I have a for() statement performing a loop that attaches a movieclip each time it’s executed. The variable “maximumBloodBurst” defines how many times the loop cycles (the amount of movieclips to produce).
Here’s the script:
createBloodCells = function () {
var g:Number;
for (g=0; g<maximumBloodBurst; g++) {
this.attachMovie("redBloodCell_mc", "blood"+g+"_mc", g, {_x:-200, _y:randRange(200, 400)});
}
};
Right now the function is attaching all the movieclips to the stage at the same time…or at the fps. Is there a way to add a timer or a function that slows down the time before each instance that the for() loop is executed?
Thanks in advance for any help.
maxdd