# swapDepth

**URL:** <https://forum.kirupa.com/t/swapdepth/260578>\
**Category:** Uncategorized\
**Created:** [May 16, 2008, 10:14pm UTC](https://forum.kirupa.com/t/swapdepth/260578 "2008-05-16T22:14:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eMi971](https://avatars.discourse-cdn.com/v4/letter/e/f07891/32.png) [@eMi971](https://forum.kirupa.com/u/eMi971)\
**Post date:** [May 16, 2008, 10:14pm UTC](https://forum.kirupa.com/t/swapdepth/260578/1 "2008-05-16T22:14:30Z")

</div>

hey,  
flash cs3, as2, i have a movie clip that is a panel composed of multiple little image, in this MC each little image is a MC itself, with this code on:  
\*onClipEvent(enterFrame){  
if(this.hitTest(\_root.\_xmouse, \_root.\_ymouse)){  
this.nextFrame();

}  
else {  
this.prevFrame();  
}

}\*

in each of this lil MC you have a rollover animation, that brings the concerned image to the center of the stage and then scale up,  
my pb is that this animation happens behind the movie clip, how do i bring it in front?  
heeeeeeelp!  
thanks:angel:

---

<div class="post-metadata">

**Author:** ![Loyx](https://avatars.discourse-cdn.com/v4/letter/l/e274bd/32.png) [@Loyx](https://forum.kirupa.com/u/Loyx)\
**Post date:** [May 16, 2008, 11:11pm UTC](https://forum.kirupa.com/t/swapdepth/260578/2 "2008-05-16T23:11:51Z")

</div>

Have you tried with getNextHighestDepth()?

---

<div class="post-metadata">

**Author:** ![eMi971](https://avatars.discourse-cdn.com/v4/letter/e/f07891/32.png) [@eMi971](https://forum.kirupa.com/u/eMi971)\
**Post date:** [May 17, 2008, 1:29am UTC](https://forum.kirupa.com/t/swapdepth/260578/3 "2008-05-17T01:29:22Z")

</div>

tell me more about it, i do a lot of copy/paste/adjust…  
thanks
