# Navigation buttons error

**URL:** <https://forum.kirupa.com/t/navigation-buttons-error/295491>\
**Category:** flash\
**Created:** [August 31, 2009, 12:16pm UTC](https://forum.kirupa.com/t/navigation-buttons-error/295491 "2009-08-31T12:16:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![inspired78](https://avatars.discourse-cdn.com/v4/letter/i/9de0a6/32.png) [@inspired78](https://forum.kirupa.com/u/inspired78)\
**Post date:** [August 31, 2009, 12:16pm UTC](https://forum.kirupa.com/t/navigation-buttons-error/295491/1 "2009-08-31T12:16:51Z")

</div>

Hey peeps

My three navigation buttons on my website (‘but1’, ‘but2’, ‘but3’) are programmed to go to each section on my timeline: ‘home’, ‘pics’ and ‘contact’.

However, whenever I click on my homepage button (but1), it doesn’t do anything. The other ones are fine but it’s just the home button that doesn’t seem to link anywhere. My code is below, I appreciate your help!!

```auto
 
stop();
but1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
gotoAndPlay("home");
}
 
but2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
gotoAndPlay("pics");
}
 
but3.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler3);
function mouseDownHandler3(event:MouseEvent):void {
gotoAndPlay("contact");

```
