# Button navigation problem PT1

**URL:** <https://forum.kirupa.com/t/button-navigation-problem-pt1/227996>\
**Category:** flash\
**Created:** [June 4, 2007, 2:12pm UTC](https://forum.kirupa.com/t/button-navigation-problem-pt1/227996 "2007-06-04T14:12:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikeym](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mikeym](https://forum.kirupa.com/u/mikeym)\
**Post date:** [June 4, 2007, 2:12pm UTC](https://forum.kirupa.com/t/button-navigation-problem-pt1/227996/1 "2007-06-04T14:12:47Z")

</div>

Each button indicates which page is currently being viewed. I want the home page loaded by default, with the home button inactive whilst showing its overstate. The only way I can think of doing this is adding the onLoad function:

stop();

function reActivateMenu () {

```
     button1_mc.gotoAndStop(1);
     button1_mc.enabled = true;
     button2_mc.gotoAndStop(1);
     button2_mc.enabled = true;
     button3_mc.gotoAndStop(1);
     button3_mc.enabled = true;

```

menu.button4\_mc.gotoAndStop(1);  
menu.button4\_mc.enabled = true;

}

// ---- onRollOver, onRollOut, and onRelease event handlers for the buttons

button1\_mc.onRollOver = function () {  
this.gotoAndStop(2);  
}

button1\_mc.onRollOut = function () {  
this.gotoAndStop(1);  
}

button1\_mc.onRelease = function () {  
reActivateMenu();  
this.gotoAndStop(2);  
this.enabled = false;  
loader\_mc.loadMovie(“home.swf”);  
}

onLoad = function () {  
button1\_mc.gotoAndStop(2);  
loader\_mc.loadMovie(“home.swf”);  
}  
This actually works, but only until the first rollover (not click) when the home button returns to its up state. Is there a better way of doing this?
