# Duplicate movie and depth

**URL:** <https://forum.kirupa.com/t/duplicate-movie-and-depth/16130>\
**Category:** Uncategorized\
**Created:** [March 21, 2003, 5:00am UTC](https://forum.kirupa.com/t/duplicate-movie-and-depth/16130 "2003-03-21T05:00:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ironikart](https://avatars.discourse-cdn.com/v4/letter/i/7feea3/32.png) [@ironikart](https://forum.kirupa.com/u/ironikart)\
**Post date:** [March 21, 2003, 5:00am UTC](https://forum.kirupa.com/t/duplicate-movie-and-depth/16130/1 "2003-03-21T05:00:48Z")

</div>

I’m not too sure how to add depth to this code. I want to place the duplicate MC’s in the background of the movie. Anyone able to help with this?

Here is the code:

onClipEvent (enterFrame) {  
duplicateMovieClip ("/box", “bn” add n, n);  
\_root[“bn”+n].\_alpha = (2\*(n));  
\_root[“bn”+n].\_x = 350;  
y = 1;  
y = y+1;  
\_root[“bn”+n].\_y = ((300)+(7\*(n)/(50/(n))));  
n = n+1;  
if (Number(n)\>28) {  
n = n-1;  
\_root["/bn"+n]. \_visible = 0;  
}  
}
