Hello--I'm wondering if anyone can help me figure out why I'm getting the following error message in my Flash doc:
"TypeError: Error #1009: Cannot access a property or method of a null object reference. at senses_test_fla::SceneTwo_1/buttonClick()"
The message appears after I click one of five buttons. Everything seems to work fine--clicking takes me to the frame with the corresponding label, and the animation within each frame plays without a hitch. I've double-checked the buttons to make sure that the instance names match what's in the actionscript.
Here's my actionscript (3.0):
Code Actionscript:stop(); function buttonClick(event:MouseEvent):void { gotoAndPlay(event.target.name); earbtn.enabled = true; eyebtn.enabled = true; handbtn.enabled = true; tonguebtn.enabled = true; nosebtn.enabled = true; event.target.enabled = false; } earbtn.addEventListener(MouseEvent.CLICK, buttonClick); eyebtn.addEventListener(MouseEvent.CLICK, buttonClick); handbtn.addEventListener(MouseEvent.CLICK, buttonClick); tonguebtn.addEventListener(MouseEvent.CLICK, buttonClick); nosebtn.addEventListener(MouseEvent.CLICK, buttonClick);
Thanks in advance for your help! Please let me know if you need more information than what I've provided here.
--J





Bookmarks