Depth Issues

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. :slight_smile: plz help.