# Swapping a dynamic movieclip's depth beneath a static set of graphics?

**URL:** <https://forum.kirupa.com/t/swapping-a-dynamic-movieclips-depth-beneath-a-static-set-of-graphics/189988>\
**Category:** flash\
**Created:** [June 7, 2006, 7:44pm UTC](https://forum.kirupa.com/t/swapping-a-dynamic-movieclips-depth-beneath-a-static-set-of-graphics/189988 "2006-06-07T19:44:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JCB](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@JCB](https://forum.kirupa.com/u/JCB)\
**Post date:** [June 7, 2006, 7:44pm UTC](https://forum.kirupa.com/t/swapping-a-dynamic-movieclips-depth-beneath-a-static-set-of-graphics/189988/1 "2006-06-07T19:44:21Z")

</div>

Flash 8 - AS 2.0

Ok kiddies. I’ve been toying with AS and trig. and have a little wiggly worm that half-heartedly responds to the mouse just as I want. It’s created by looping 30 times through a for loop and using attachmovie() like this.

for(i=0; i\<30; i++){  
attachMovie(“mcCircle”, “mcCircle” + i, i, {\_x:mx\*, \_y:my\*});  
}

As you can see for their depths I have used the increment of the for loop. So I have 30 clips with depths from 0 to 29. On the other hand, the graphics which have been statically placed on the stage have these depths.

instance7:-16352  
mcThought:-16355  
instance6:-16357  
mcCode:-16360  
instance5:-16362  
mcAural:-16365  
instance4:-16367  
mcVisual:-16370  
instance3:-16372  
mcHome\_WF:-16374  
mcHome:-16377  
instance2:-16379  
instance1:-16382

What I need is to place the mcCircle clips underneath some of the objects on the stage. Imparticularly, the menu bar at the top of the stage and the logo at the bottom while staying on top of the background. I just want it to look like it’s going behind these two graphics. I’ve tried a number of things and have ran out of ideas. By the way - the bottom of frame 27 of the actions layer has the code that is outputting the depths in the Output panel in Flash.

Many thanks,  
John
