Button Script..

  • fhooper
  • Born
  • Born
  • fhooper
  • Posts: 1

Post 3+ Months Ago

Hey... was wondering if someone could help me out...

I have several buttons in my flash website that are working well. The script for every button is identical with edits for the instance names and frame names but I'm displaying a compiler errors for one particular button that reads:

Code: [ Select ]
1120: Access of undefined property biomore_btn.
If I don't disactivate that line of script the movie just plays through ignoring the actions... I'm guessing it has something to do with my button itself but the name is identical: all in lower case, everything else seems to be at the right place... PLEASE Respond if you have any suggestions!

THANKS!!!


.... my button script is as follows;


Code: [ Select ]
function gotoBio2(event:MouseEvent):void
{
    gotoAndPlay("bio2");
}
 
biomore_btn.addEventListener(MouseEvent.CLICK,gotoBio2);
 
  1. function gotoBio2(event:MouseEvent):void
  2. {
  3.     gotoAndPlay("bio2");
  4. }
  5.  
  6. biomore_btn.addEventListener(MouseEvent.CLICK,gotoBio2);
  7.  
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • zhaojany
  • Student
  • Student
  • User avatar
  • Posts: 79

Post 3+ Months Ago

which frame your code located? Is there ur botton there? or maybe there are some naming problem, also you can try to change your button into another name . i think first you should try to trace your button to check out if it can be access.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 12 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.