# Depth Management Issues

**URL:** <https://forum.kirupa.com/t/depth-management-issues/268838>\
**Category:** flash\
**Created:** [August 19, 2008, 4:16pm UTC](https://forum.kirupa.com/t/depth-management-issues/268838 "2008-08-19T16:16:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmjw1985](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@jmjw1985](https://forum.kirupa.com/u/jmjw1985)\
**Post date:** [August 19, 2008, 4:16pm UTC](https://forum.kirupa.com/t/depth-management-issues/268838/1 "2008-08-19T16:16:58Z")

</div>

Hi all.

I am attempting to simultaneously modify 5 movieclip index values, but struggling.  
I am attempting to create an illusion of four movieclips rotating around a central movieclip.

See below:  
 ![](http://jwhite.co.uk/spinJW.JPG)

I have the rotation working, but I need all of the movieclips to be in the correct Z-order so they appear to be orbiting 360 degrees around.

I have tried using standard setChildIndex() and swapChildren() methods, but movieclips are duplicating and remaining stationary when I do this.

Here is a demo of the rotating clips so you can get an idea  
[http://jwhite.co.uk/jwspin\_test/jwSPIN3.swf](http://jwhite.co.uk/jwspin_test/jwSPIN3.swf)

Any help would be great.

Cheers, Jamie.
