TypeError: Error #1010 on code that doesn't exist.
Hello all,
I have a drop down menu with 7 options. The menu is a movie clip with a mask that reveals each of the buttons when a person mouse_overs the menu button. Each menu option does the same thing, it will call a function based on the button clicked. The function for each button does the same thing:
function INDEX_Safety (e:MouseEvent):void
{
play();
INDEX_SAFETY=true;
Sound_Stopper ();
}
Each of the functions will change the value of its respecive boolean variable. One for each button. Sound Stopper is a function that stops any FLV Sound that is currently playing.
When it goes through play() it will come to a particular frame that has:
Index_Jumper ();
this function determines which boolean has been set to true, and does a gotoAndPlay("Label Name") based on the boolean that has been set to true. Then sets the boolean back to false.
function Index_Jumper ():void
{
if (INDEX_SAFETY==true){gotoAndPlay("Safety"); INDEX_SAFETY=false;}
if (INDEX_TOOLS==true){gotoAndPlay("Tools and Positions"); INDEX_TOOLS=false;}
if (INDEX_METHODS==true){gotoAndPlay("The Methods"); INDEX_METHODS=false;}
if (INDEX_METHOD1==true){gotoAndPlay("Method 1"); INDEX_METHOD1=false;}
if (INDEX_METHOD2==true){gotoAndPlay("Method 2"); INDEX_METHOD2=false;}
if (INDEX_TDBL==true){gotoAndPlay("Installing TDBL"); INDEX_TDBL=false;}
if (INDEX_RAISING==true){gotoAndPlay("Raising the Stand"); INDEX_RAISING=false;}
}
The issue i am having: When i click on the 6th option, TDBL, i get the error:
TypeError: Error #1010: A term is undefined and has no properties.
at RaisingtheOperatorsPlatform_fla::MainTimeline/frame147()[RaisingtheOperatorsPlatform_fla.MainTimeline::frame147:10]
It says frame 147:10
From my understanding this means the 10th line on Frame 147.
This is my frame 147:
1. stop ();
2. Caption ();
3. IndexMC.Safety_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Safety);
4. IndexMC.Tools_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tools);
5. IndexMC.Methods_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Methods);
6. IndexMC.Method1_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Method1);
7. IndexMC.Method2_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Method2);
8. IndexMC.TBDL_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Tdbl);
9. IndexMC.Raising_Menu_Button.addEventListener(MouseEvent.CLICK, INDEX_Raising);
I dont have a 10th line.
also, when i click the 7th option, nothing happens. However, options 1 - 5 on the drop down menu work just fine.
Thanks for any insight.


