# swapDepth question from Kirupa Tutorial

**URL:** <https://forum.kirupa.com/t/swapdepth-question-from-kirupa-tutorial/193727>\
**Category:** flash\
**Created:** [July 18, 2006, 4:49am UTC](https://forum.kirupa.com/t/swapdepth-question-from-kirupa-tutorial/193727 "2006-07-18T04:49:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scriptrookie](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@scriptrookie](https://forum.kirupa.com/u/scriptrookie)\
**Post date:** [July 18, 2006, 4:49am UTC](https://forum.kirupa.com/t/swapdepth-question-from-kirupa-tutorial/193727/1 "2006-07-18T04:49:49Z")

</div>

Hi Everyone,

I came across this cool [tutorial](http://www.kirupa.com/forum/www.kirupa.com/developer/actionscript/swapdepth.htm) from Kirupa about swapDepth method for mc. I am working on this as navigation stuff but the thing is I added a mc (gray bar across) which is not one of the clickable buttons. What I wanted to do was everytime you click an mc, the next level should be that gray bar across leaving the rest below that gray bar mc. What I did was swapDepth the gray bar to the \_root.x variable then swapDepth that gray bar to the clickable mc, but the problem is everytime you press w/o releasing your mouse all the clickable mc appear to be the level. I tried removing the press event for the buttons but it leaves everything running weird. I have attached the fla used for the onPress event so anyone can see what i mean. Sorry for much explanation. I would appreciate anyone’s suggestion. Thanks!

\_scriptRookie :nerd:
