Okay, so I am building a website right now with Flash CS4. Currently, I have a standard navigation menu, and I’m using the super simple gotoAndStop method to navigate to each page. I have all of my buttons, pages and background elements on different layers, HOWEVER. I have a huge issue. I want to make it so that when one of my navigation buttons are pressed, to show additional navigational links within the website. I don’t know where to put these additional links. When you click on these new links, a small area in the page will change (textbox). The problem is, I don’t know what frames to put these on and how to correct the ActionScript (3) for it. The only way it works is if I put these new navigational links on the first keyframe, but then it shows all of the navigational links, and I want it to just show these when one of the original nav links are clicked.
I’ve reached a breaking point here, and I was wondering if somebody could please provide me with assistance?
Also, here is a screengrab so you can see what I am doing:
This might be a little messed up since I’ve been constantly changing things, but if anybody can walk me through or let me know what’s going on, please let me know!
stop ();
//Contact Button Code
contactbtn.addEventListener (MouseEvent.CLICK, Contact);
function Contact (event:MouseEvent):void{
gotoAndStop(2);
}
//About Button Code
aboutbtn.addEventListener (MouseEvent.CLICK, About);
function About (event:MouseEvent):void{
gotoAndStop(3);
}
//Nightmares Button Code
nightmarebtn.addEventListener (MouseEvent.CLICK, Nightmare);
function Nightmare (event:MouseEvent):void{
gotoAndStop(4);
}
//John Button Code
johnbtn.addEventListener (MouseEvent.CLICK, John);
function John (event:MouseEvent):void{
gotoAndStop(5);
}