Just started with AS3 and I'm pulling my hair out!
I have a complex Flash file with a ton of buttons and timeline references from within MCs. I pulled out one button and created a simple file for troubleshooting and I am STUCK!
I have a main timeline with movie clips at various points. Inside those MCs I need to link BACK to the main timeline at defined labels - in my example, it's a frame labeled: LOCATIONS. Here is what I have inside the MC_About:
btn_locations.addEventListener(MouseEvent.CLICK, btnLocations);
function btnLocations(e:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay("LOCATIONS");
}
And there is a button with this instance name: btn_locations
When that button is clicked, it is supposed to go back to the main (root) timeline and play at the label: LOCATIONS
BUT, I keep getting this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at TEST_fla::MC_About_1/frame1()
PLEASE HELP! I am under the gun and need to get a working file out the door tomorrow afternoon. PLEASE...
Here's my TEST file:
TEST.zip
Thank you.
Dennnnis