# Problem with navigation menu- movie clip stacking

**URL:** https://forum.kirupa.com/t/problem-with-navigation-menu-movie-clip-stacking/261298
**Category:** flash
**Created:** [May 25, 2008, 11:38pm UTC](https://forum.kirupa.com/t/problem-with-navigation-menu-movie-clip-stacking/261298 "2008-05-25T23:38:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![technicka](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@technicka](https://forum.kirupa.com/u/technicka)
#### Post date: [May 25, 2008, 11:38pm UTC](https://forum.kirupa.com/t/problem-with-navigation-menu-movie-clip-stacking/261298/1 "2008-05-25T23:38:49Z")

</div>

Hi everyone-  
I’m new to flash and having an issue with my navigation menu. I have 5 buttons on the left that when clicked call in a different movie clip from the right. Right now my code for each button looks like this-

```auto
btn1.onRelease = function() {
        home.play(nextFrame);
if(home.getDepth( ) < web.getDepth( )){
        web.swapDepths(home);
}
if (home.getDepth( ) < blog.getDepth( )){
        blog.swapDepths(home);
}
if (home.getDepth( ) < radio.getDepth( )){
        radio.swapDepths(home);
}
if (home.getDepth( ) < about.getDepth( )){
  about.swapDepths(home); // Catchall if other conditions were not met
}}

```

I do this for each button and each is paired with a different movie clip. The problem is that once I have clicked a button and the movie clip comes out, if I want to click it again at a later point, it requires two clicks- first to remove the original movie clip, and second to bring it out again.  
I want to eliminate that first click, by making it so when a button is pressed, all instances of that same movie clip disappear… so that way the navigation is smooth.  
If anyone has any suggestions, I would really appreciate it.
