If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Multiple Buttons in AS3

Hi,

I'm not a true programmer - I just build my own simple Flash sites once every few years when I need one.
I'm building a site with three scenes ('HomePage', 'ProducerPage' and 'ContactPage'); I'm totally new to AS3 (successfully used AS2 before - don't know why I switched!), and I can't figure out how to get my four main buttons to work.
I have the following code on the first frame of the first scene, top layer:
__________________________________________________ _________
introLink.addEventListener(MouseEvent.CLICK, introLinkClick);
function introLinkClick(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.evostudio.us/index.html"),"_self");
}
homeLink.addEventListener(MouseEvent.CLICK, homeLinkClick);
function homeLinkClick(event:MouseEvent):void
{
gotoAndPlay(1, "HomePage");
}
producerLink.addEventListener(MouseEvent.CLICK, producerLinkClick);
function producerLinkClick(event:MouseEvent):void
{
gotoAndPlay(1, "ProducerPage");
}
musicLink.addEventListener(MouseEvent.CLICK, musicLinkClick);
function musicLinkClick(event:MouseEvent):void
{
navigateToURL(new URLRequest("music/music.html"),"_self");
}
contactLink.addEventListener(MouseEvent.CLICK, contactLinkClick);
function contactLinkClick(event:MouseEvent):void
{
gotoAndPlay(1, "ContactPage");
}
__________________________________________________ ___
I've checked and the instance names of each button are correct ---- what am I doing wrong?