# Button and navigation problems :(

**URL:** <https://forum.kirupa.com/t/button-and-navigation-problems/288039>\
**Category:** flash\
**Created:** [May 9, 2009, 10:15pm UTC](https://forum.kirupa.com/t/button-and-navigation-problems/288039 "2009-05-09T22:15:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![studio01](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@studio01](https://forum.kirupa.com/u/studio01)\
**Post date:** [May 9, 2009, 10:15pm UTC](https://forum.kirupa.com/t/button-and-navigation-problems/288039/1 "2009-05-09T22:15:28Z")

</div>

Hi there fello action scripters i am having a serious problem with my navigation my file just doesnt seem to work heres the code:

stop();

function navigation(event:MouseEvent):void{  
gotoAndStop(event.target.name);  
trace(“button was clicked”);  
}  
home\_btn.addEventListener(MouseEvent.CLICK,navigation);  
news\_btn.addEventListener(MouseEvent.CLICK,navigation);  
about\_btn.addEventListener(MouseEvent.CLICK,navigation);  
portfolio\_btn.addEventListener(MouseEvent.CLICK,navigation);  
contact\_btn.addEventListener(MouseEvent.CLICK,navigation);

I have labels home, news, about, portfolio, contact.

i keep getting this error ArgumentError: Error #2109: Frame label instance6 not found in scene Scene 1.  
at flash.display::MovieClip/gotoAndStop()  
at whywontyouworkdamyou\_fla::MainTimeline/navigation()

and my buttons dont work iver lol how hard is AS3 what have they done to it ☹

Please help ☹

ill upload the FLA in a sec if anyone could please take a peek this is for a project at uni i need to have it handed in by monday and ive been stuck with this problem since 15:00 in the afternoon uk time and its now 22:15 ☹

heads fried now…

Edit im seeing spaces in the word navigation why rofl its ok in edit mode?!?!

Edit:the Fla [http://www.d1gitalanarchy.com/whywontyouworkdamyou.fla](http://www.d1gitalanarchy.com/whywontyouworkdamyou.fla)
