# Dyanmically created levels

**URL:** https://forum.kirupa.com/t/dyanmically-created-levels/100375
**Category:** Uncategorized
**Created:** [January 28, 2004, 8:43pm UTC](https://forum.kirupa.com/t/dyanmically-created-levels/100375 "2004-01-28T20:43:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jbrewer](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@jbrewer](https://forum.kirupa.com/u/jbrewer)
#### Post date: [January 28, 2004, 8:43pm UTC](https://forum.kirupa.com/t/dyanmically-created-levels/100375/1 "2004-01-28T20:43:40Z")

</div>

I am having problems with duplicating a movie clip and the dups are created on top of the rest of my movie. The clip is a shooting star and it needs to be below all the levels except the background level.  
Here is the code:  
[AS]function dup() {  
for (i=0; i\<2; i++) {  
mc = \_root.fstar\_mc.duplicateMovieClip(" mc "+i, (-100+i), {\_x:Math.random()\*1000/2, \_y:Math.random()\*200, \_alpha:60});  
}  
}  
timer = setInterval(dup, 16000);[/AS]

You can see I set the level to a negative number but that didn’t work. Any one have any suggestions on how to do this???
