# Navigation issue

**URL:** https://forum.kirupa.com/t/navigation-issue/27412
**Category:** flash
**Created:** [August 2, 2003, 3:06am UTC](https://forum.kirupa.com/t/navigation-issue/27412 "2003-08-02T03:06:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pspecial](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pspecial](https://forum.kirupa.com/u/pspecial)
#### Post date: [August 2, 2003, 3:06am UTC](https://forum.kirupa.com/t/navigation-issue/27412/1 "2003-08-02T03:06:07Z")

</div>

This may sound a bit amaturish, but I’m just getting comfortable building 1-frame Flash movies. In other words, all the motion in my movie comes from movie clips, including the menu. Which brings me to my problem…

When I click (onPress) on a menu item and it summons several other movie clips to gotoAndPlay. Now, every subsequent onPress on the same menu item makes the same clips repeat their animations. This looks sloppy. Once the menu item is pressed, I’d like to disable it. Consequently, when any other menu item is pressed, I’d like to make the rest of the menu active again.

What would be the right approach here?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 2, 2003, 10:40am UTC](https://forum.kirupa.com/t/navigation-issue/27412/2 "2003-08-02T10:40:01Z")

</div>

You could use myButton1.enabled = false; and then on the button you could do this for the all the other buttons mybutton2.enabled = true;

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 2, 2003, 3:47pm UTC](https://forum.kirupa.com/t/navigation-issue/27412/3 "2003-08-02T15:47:07Z")

</div>

Okay, that almost works…

My problem now is that all the button movie clips are stacked. So if one that is ‘enabled = true’ is on top, the rest below cant be viewed onRollover.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 3, 2003, 6:46am UTC](https://forum.kirupa.com/t/navigation-issue/27412/4 "2003-08-03T06:46:06Z")

</div>

name your buttons instance name of “btn1”, “btn2” etc. Let there be 8 buttons totally.  
on(press){  
for(i=0;i\<8;i++){  
\_root[“btn”+i].pressed=false  
}  
if(!pressed) \_root.movieclip.gotoAndPlay(2)  
pressed=true

}
