Hi everyone,
I am trying to find a way to get my menu bar working. Little info, I am a beginner in Flash just learned the essential DVD from Adobe.
My menu bar has the following:
(About Us) (Services) (Quality) (Projects) (Contact Us)
Each page will have a motion shape tween and slide the page down.
I have type in this actions :
stop();
import flash.events.MouseEvent;
//---aboutus Button Timeline change---\\
aboutus_btn.addEventListener(MouseEvent.CLICK, aboutusClick);
function aboutusClick(event:MouseEvent):void{
gotoAndPlay("aboutus");
}
//---services Button Timeline change---\\
services_btn.addEventListener(MouseEvent.CLICK, servicesClick);
function servicesClick(event:MouseEvent):void{
gotoAndPlay("services");
}
//---quality Button Timeline change---\\
quality_btn.addEventListener(MouseEvent.CLICK, qualityClick);
function qualityClick(event:MouseEvent):void{
gotoAndPlay("quality");
}
//---projects Button Timeline change---\\
projects_btn.addEventListener(MouseEvent.CLICK, projectsClick);
function projectsClick(event:MouseEvent):void{
gotoAndPlay("projects");
}
//---contactus Button Timeline change---\\
contactus_btn.addEventListener(MouseEvent.CLICK, contactusClick);
function contactusClick(event:MouseEvent):void{
gotoAndPlay("contactus");
}
This actions only works when I click to the next labels but doesn't work when I want to click back to the previous labels. For example, if I click onto (About Us) to (Services) and (Services) to (Quality) and (Quality) to Projects and (Projects) to (Contact Us)... it all works. If I then click from (Contact Us) back to (Projects) or even any previous buttons... it does NOT work??
Anyone? Please help!