# \[mx2k4\] Problem with duplicating mc

**URL:** <https://forum.kirupa.com/t/mx2k4-problem-with-duplicating-mc/67661>\
**Category:** flash\
**Created:** [October 18, 2004, 5:24pm UTC](https://forum.kirupa.com/t/mx2k4-problem-with-duplicating-mc/67661 "2004-10-18T17:24:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liquido](https://avatars.discourse-cdn.com/v4/letter/l/eada6e/32.png) [@Liquido](https://forum.kirupa.com/u/Liquido)\
**Post date:** [October 18, 2004, 5:24pm UTC](https://forum.kirupa.com/t/mx2k4-problem-with-duplicating-mc/67661/1 "2004-10-18T17:24:08Z")

</div>

Hi people,

I have encoutered some problems with my script.  
I have two movieclips on stage with the instancenames “box” and “mcEmpty”.  
One button with the instancename “duplicate\_btn”  
The problem is that I can’t duplicate my mc Box.

This is the script where I’m now working on.

```auto
 
duplicate_btn.onRelease = function() {
for(var i=0; i<5; i++){
mcEmpty.duplicateMovieClip("_root.box","box"+i, i);
mcEmpty["box"+i]._x = random(550);
mcEmpty["box"+i]._y = random(400);
trace(mcEmpty["box"+i]);
//j++;
}
}

```

greetz,

liquido
