# swapDepths help

**URL:** <https://forum.kirupa.com/t/swapdepths-help/182825>\
**Category:** flash\
**Created:** [March 21, 2006, 6:49pm UTC](https://forum.kirupa.com/t/swapdepths-help/182825 "2006-03-21T18:49:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgrind](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@tgrind](https://forum.kirupa.com/u/tgrind)\
**Post date:** [March 21, 2006, 6:49pm UTC](https://forum.kirupa.com/t/swapdepths-help/182825/1 "2006-03-21T18:49:36Z")

</div>

Help!

I am trying to create a movie with 3 separate movies that are brought onto the main time line. I have used the complex-swap example:

on (press) {  
this.swapDepths( “\_level0:window” + \_level0:highest );  
\_level0:highest = substring ( \_name, 7, 1 );  
startDrag(this);  
}  
on (release) {  
stopDrag();  
}

This works to move the movies around the screen and place them on top of one another.

The problem is, I have buttons and other interactions that are still accessable right through the movie that is on top.  
In other words if I have mcA on top and mcB is just below it and has a button on its movie, I can click the button on mcB right through mcA.

How can I keep these separate so I can only interactive with the movie infront???

Thanks for the help

tgrind
