# Animated duplication of a button?

**URL:** <https://forum.kirupa.com/t/animated-duplication-of-a-button/153539>\
**Category:** Uncategorized\
**Created:** [July 2, 2005, 7:25am UTC](https://forum.kirupa.com/t/animated-duplication-of-a-button/153539 "2005-07-02T07:25:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CayoHueso](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@CayoHueso](https://forum.kirupa.com/u/CayoHueso)\
**Post date:** [July 2, 2005, 7:25am UTC](https://forum.kirupa.com/t/animated-duplication-of-a-button/153539/1 "2005-07-02T07:25:17Z")

</div>

Hi everybody,

I have the code below, and it works nicely duplicating a movieclip from the library. But, all the duplicated apppear at the same time…how could I make them appear one at the time?

Thank you very much for your help.

var xStart:Number = 10;  
var yStart:Number = 10;  
var distance:Number = 30;  
var v:Number = 0;  
var i:Number = -1;  
while (++i \< 10) {  
var j:Number = -1;  
while (++j \< 10) {  
v++;  
var name:String = “holder” + v + “\_mc”;  
\_root.createEmptyMovieClip(name, v);  
\_root[name].\_x = xStart + i \* distance;  
\_root[name].\_y = yStart + j \* distance;  
\_root[name].attachMovie(“myBtn”, “button\_mc” + v, v);  
}  
}
