Flash site buttons don't navigate to the right place in timeline?

  • Thread starter Thread starter peter
  • Start date Start date
P

peter

Guest
When you click the first 2 buttons they go to the correct place on the timeline but if you click 'web' or 'contact' it plays the 'branding' or 'publishing' movies. The actionscript for the page with the buttons is as follows.

stop();

btnBrandbutton.addEventListener(MouseEvent.CLICK, brandClicked);

function brandClicked(event:MouseEvent):void {
gotoAndPlay("home_brand");
}

btnPub.addEventListener(MouseEvent.CLICK, pubClicked);

function pubClicked(event:MouseEvent):void {
gotoAndPlay("publishing");
}

btnWeb.addEventListener(MouseEvent.CLICK, webClicked);

function webClicked(event:MouseEvent):void {
gotoAndPlay("web");
}


btnBroad.addEventListener(MouseEvent.CLICK, broadcastClicked);

function broadcastClicked(event:MouseEvent):void {
gotoAndPlay("broadcast");
}

btnContact.addEventListener(MouseEvent.CLICK, contactClicked);

function contactClicked(event:MouseEvent):void {
gotoAndPlay("contact");
}

here's the website http://kavelincreative.com

Thanks!
 
Back
Top