Creating delays?

Anyone knows how to create a delay of, let’s say half a second, when duplicating a movieclip “x” times.

for (i=2;i<25;i++){
duplicateMovieClip(button,“button”+i,i);
…etc
};

I want the buttons to appear one by one on the screen. Now, for the user, they seem to come all together at once.

Thanksalot,

Stanley
:slight_smile:

this should create a dup every 1 second.


setInterval(createDup,1000)
function createDup(){
duplicateMovieClip(button,"button"+x,x);
x++;
}