# Duplicate movie within empty movie?

**URL:** <https://forum.kirupa.com/t/duplicate-movie-within-empty-movie/226792>\
**Category:** Uncategorized\
**Created:** [May 24, 2007, 12:43am UTC](https://forum.kirupa.com/t/duplicate-movie-within-empty-movie/226792 "2007-05-24T00:43:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![squarepiece](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@squarepiece](https://forum.kirupa.com/u/squarepiece)\
**Post date:** [May 24, 2007, 12:43am UTC](https://forum.kirupa.com/t/duplicate-movie-within-empty-movie/226792/1 "2007-05-24T00:43:09Z")

</div>

I need some help creating an empty movie clip ‘container’ and within this clip is a movie clip ‘box1’ and a duplicate ‘box2’ offset on the x axis by 650.

Here is what I have so far, any help would be great…

this.createEmptyMovieClip(“container”, this.getNextHighestDepth());  
this.container.attachMovie(“box”,“box1”,this.getNextHighestDepth(),{\_x:0, \_y:250});  
this.container.globe1.duplicateMovieClip(“box2”,this.getNextHighestDepth(),{\_x:650, \_y:250});

replaces container.box1 with container.box2 on runtime. how do I get both to show up?

got it, overlooked the depth…

this.createEmptyMovieClip(“container”, this.getNextHighestDepth());  
this.container.attachMovie(“box”, “box1”, 1, {\_x:0, \_y:250});  
this.container.box1.duplicateMovieClip(“box2”, 2, {\_x:650, \_y:250});
