# Trouble duplicating movie clips. :(

**URL:** <https://forum.kirupa.com/t/trouble-duplicating-movie-clips/162022>\
**Category:** flash\
**Created:** [September 9, 2005, 12:18am UTC](https://forum.kirupa.com/t/trouble-duplicating-movie-clips/162022 "2005-09-09T00:18:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OM2](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@OM2](https://forum.kirupa.com/u/OM2)\
**Post date:** [September 9, 2005, 12:18am UTC](https://forum.kirupa.com/t/trouble-duplicating-movie-clips/162022/1 "2005-09-09T00:18:02Z")

</div>

I have the following code:

```auto
var count = 1;
while (count<10) 
{
    bigBox.innerBox.duplicateMovieClip(bigBox["innerBox"+count], bigBox.getNextHighestDepth());
    bigBox["innerBox"+count]._x = random(550);
    bigBox["innerBox"+count]._y = random(150);
    count += 1;
}

```

I have a movie with an instance name of bigBox.  
In that movie, there is another movie instance called innerBox.  
I want to duplicate innerBox inside of bigBox.  
I can’t see anything wrong with the above code. ☹

The code doesn’t do anything at all unfortunately.

Any help would be appreciated.

Thanks.

OM
