# Depth Issues

**URL:** <https://forum.kirupa.com/t/depth-issues/303940>\
**Category:** Uncategorized\
**Created:** [January 29, 2010, 10:45am UTC](https://forum.kirupa.com/t/depth-issues/303940 "2010-01-29T10:45:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iceherosubzero](https://avatars.discourse-cdn.com/v4/letter/i/8797f3/32.png) [@iceherosubzero](https://forum.kirupa.com/u/iceherosubzero)\
**Post date:** [January 29, 2010, 10:45am UTC](https://forum.kirupa.com/t/depth-issues/303940/1 "2010-01-29T10:45:52Z")

</div>

Hello everyone,

I have some problem with swapping Depths with images that are added in individual movieclips.  
I am doing it through a .as file / package in cs4.  
I want to swap depths when i click any image movieclip.  
I want to bring the movieclip that i click on in the front of all other movieclips.  
total number of childrens = 6

Depth 5 instance7  
Depth 4 C  
Depth 3 A  
Depth 2 M  
Depth 1 W  
Depth 0 MG

instance7, C, A, M, W, MG are the names of the movieclips.

what i want is, out of any above movieclips from 0 to 4 i want instance7 to be at index 4 and whichever movieclip i CLICK should be at index 5 and the rest of the movieclips at index below 4 (below instance7). this should be possible with all the movieclips from 0 - 4 except 5. in the begining movieclip at index 5 that is instance7 will be at the top most depth (5).

thanks and regards  
iceherosubzero. 🙂 plz help.
