One more go:
the following is my code that i've pieced together from tutorials and references I've found on the webs. However, Instead of the actual buttons doing something when I click them, all I get is a single frame of everything on the same page at the same time.
how would I control the visiblity of my pages?
Code:
mcHeader.btnHome.addEventListener(MouseEvent.CLICK, clickHandler);
mcHeader.btnResume.addEventListener(MouseEvent.CLICK, clickHandler);
mcHeader.btnAbout.addEventListener(MouseEvent.CLICK, clickHandler);
mcHeader.btnContact.addEventListener(MouseEvent.CLICK, clickHandler);
mcHeader.btnGaming.addEventListener(MouseEvent.CLICK, clickHandler);
mcHeader.btnWebmail.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(event:MouseEvent):void {
switch (event.currentTarget.label)
{
case "Home" :
gotoAndStop(2);
break;
case "Resume" :
gotoAndStop(3);
break;
case "About" :
gotoAndStop(4);
break;
case "Contact" :
gotoAndStop(5);
break;
case "Gaming" :
gotoAndStop(6);
break;
case "Webmail" :
gotoAndStop(7);
break;
}
}