# Nav button states

**URL:** https://forum.kirupa.com/t/nav-button-states/131656
**Category:** Uncategorized
**Created:** [December 17, 2004, 11:47pm UTC](https://forum.kirupa.com/t/nav-button-states/131656 "2004-12-17T23:47:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![escapist](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/escapist/32/697_2.png) [@escapist](https://forum.kirupa.com/u/escapist)
#### Post date: [December 17, 2004, 11:47pm UTC](https://forum.kirupa.com/t/nav-button-states/131656/1 "2004-12-17T23:47:53Z")

</div>

I have a menu with five nav buttons (atcually MovieClips). Each has three frame labels: “on”, “stay”, and “off”. The rollover and rollout animations play flawlessly, but I’m at a loss as to how to give each button a sticky “active” state. I’d like the button to stay in it’s active state until another button is clicked, then I would like it to play it’s “off” animation.

Each MC has this code:

```auto
 
onClipEvent(load){
 this.btnLabel_mc.btnLabel.text = this._name;
}
on (rollOver) {
 this.gotoAndPlay("on");
}
on (rollOut) {
 this.gotoAndPlay("off");
}
on (release) {
 if (_root.currMovie == undefined) { 
  _root.currMovie = this._name; 
  _root.content.loadMovie(this._name+".swf"); 
 } else if (_root.currMovie != this._name) { 
  if (_root.content._currentframe >= _root.content.midframe) { 
   _root.currMovie = this._name; 
   _root.content.play();
  } 
 }
}

```

See the swf in action at:  
[www.jason-carlin.com](http://www.jason-carlin.com)

Thanks for your help
