multiple flash buttons

  • illusion141
  • Born
  • Born
  • illusion141
  • Posts: 1

Post 3+ Months Ago

I'm making a website with flash cs4 with AS3 and it's 5 pages total, the pages names are (home, demoreel, portfolio, about and contact) . I have 5 buttons on my home page named (home, demoreel, portfolio, about and contact). I was successful in linking the buttons to their separate pages, but I only want my home page to have those buttons because I've made separate buttons for the other page's layout (home2, demoreel2, portfolio2, about2 and contact2) i've also duplicated my 5 pages but just put a 2 after the name (home2, demoreel2, portfolio2, about2 and contact2) so in the action script i could just copy the first pages and just put a 2 after all of the names. I just want the buttons to look different on the other 4 pages n still work the same way, but when i try to make those buttons work it gives me a error: (TypeError: Error #1009: cannot access a property or method of a null object reference). Here is my action script for the buttons i got working:

stop();

function gohome (e:MouseEvent):void{
gotoAndStop("home");
}
home.addEventListener(MouseEvent.CLICK, gohome);

function godemoreel (e:MouseEvent):void{
gotoAndStop("demoreel");
}
demoreel.addEventListener(MouseEvent.CLICK, godemoreel);

function goportfolio (e:MouseEvent):void{
gotoAndStop("portfolio");
}
portfolio.addEventListener(MouseEvent.CLICK, goportfolio);

function goabout (e:MouseEvent):void{
gotoAndStop("about");
}
about.addEventListener(MouseEvent.CLICK, goabout);

function gocontact (e:MouseEvent):void{
gotoAndStop("contact");
}
contact.addEventListener(MouseEvent.CLICK, gocontact);

If someone could help me out with this I'd really appreciate it.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 16 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.