# This.swapDepths

**URL:** <https://forum.kirupa.com/t/this-swapdepths/286173>\
**Category:** Uncategorized\
**Created:** [April 11, 2009, 9:35am UTC](https://forum.kirupa.com/t/this-swapdepths/286173 "2009-04-11T09:35:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevensunsunsun](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@stevensunsunsun](https://forum.kirupa.com/u/stevensunsunsun)\
**Post date:** [April 11, 2009, 9:35am UTC](https://forum.kirupa.com/t/this-swapdepths/286173/1 "2009-04-11T09:35:23Z")

</div>

Hi there.

I’ve seen lots of threads on this, but none seem to work for me!

…I have multiple movielips overlapping on one timeline.

I need to bring a movieclip to front on rollover, and this works ok:

onClipEvent(load) {  
this.swapDepths(1);  
}  
onClipEvent(load) {  
this.swapDepths(0);  
}

But then it does not go back to its original position, and so it continues to overlap the other movieclips unless I refresh the screen and go to a different one first.

How can I make each movieclip come to front and return to back… I think it’s simple enough, but am a newbie.

Thank you for your help, and have a great Easter!!

Steven
