event listener problem
Greetings,
I have the following code in my DocumentClass:
//navBar Listeners
this.navbar.arch_btn.addEventListener(MouseEvent.CLICK, clickHandler);
this.navbar.clients_btn.addEventListener(MouseEvent.CLICK, clickHandler);
this.navbar.news_btn.addEventListener(MouseEvent.CLICK, clickHandler);
this.navbar.arch_btn.addEventListener(MouseEvent.CLICK, clickHandler);
this.navbar.land_btn.addEventListener(MouseEvent.CLICK, clickHandler);
this.navbar.urban_btn.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(event:MouseEvent):void {
switch (event.currentTarget.name) {
case "firm_btn":
this.gotoAndStop(1,"about");
break;
case "clients_btn":
this.gotoAndStop(1,"clients");
break;
case "news_btn":
this.gotoAndStop(1,"newsawards");
break;
case "arch_btn":
reLoad("Transportation");
this.gotoAndStop(1,"category");
break
case "land_btn":
reLoad("Landscape");
this.gotoAndStop(1,"category");
break
case "urban_btn":
reLoad("Urban Design");
this.gotoAndStop(1,"category");
break;
default:
trace (event.currentTarget.name);
}
}
However, the navbar movie clip does not enter the stage until frame11 after a brief animation. how can i get these listeners to start listening after frame 11? Thanks