# Help with duplicate

**URL:** <https://forum.kirupa.com/t/help-with-duplicate/174105>\
**Category:** Uncategorized\
**Created:** [January 2, 2006, 10:30pm UTC](https://forum.kirupa.com/t/help-with-duplicate/174105 "2006-01-02T22:30:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terry\_elekes](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@Terry\_elekes](https://forum.kirupa.com/u/Terry_elekes)\
**Post date:** [January 2, 2006, 10:30pm UTC](https://forum.kirupa.com/t/help-with-duplicate/174105/1 "2006-01-02T22:30:24Z")

</div>

here is the script i have on the main time line;  
for (i=0; i\<10; i++) {  
\_root.box.duplicateMovieClip(“box”+i, i);  
//set position  
\_root[“box”+i].\_x = \_x+4;  
\_root[“box”+i].\_y = 100;

}

and here is the script i have on the movieclip;  
onClipEvent (load) {  
n = 0;  
}  
onClipEvent (enterFrame) {  
\_x = n++;  
\_y = n++;  
}  
When I test the movie, the movieclips moves like it should but it does not duplicate itself. I want the (onload) movieclips to all be at the same \_y but spaced on the \_x. Could use some help
