Trouble duplicating movie clips. :(

I have the following code:

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. :frowning:

The code doesn’t do anything at all unfortunately.

Any help would be appreciated.

Thanks.

OM