TypeError: Error #1009: Cannot access a property or method of a null object reference.
Hi,
I'm a n00b to AS3 and i'm having a hard time with 2 things...
Problem 1:
I've got buttons linking my frames back and forth, and they all seem to work when clicked, however every single button brings up this error (TypeError: Error #1009: Cannot access a property or method of a null object reference.) everytime when the movie is being tested...
and I have no idea what it means, surfing around google it seems like I have the right code for making buttons. So it's a bit frustrating.
My button code is :
back_btn.addEventListener(MouseEvent.CLICK, startScreen);
function startScreen(eventData:MouseEvent):void { gotoAndStop(1);
back_btn.removeEventListener(MouseEvent.CLICK, startScreen); }
Everything has an instance name.
Problem 2:
I have a few buttons on my stage that when clicked reveal text in multiple text fields, I was wondering how, when I click a back button i've coded, Would i make the text clear itself again? Since once the buttons are clicked the text appears on every frame, even when clicking the back button to go back to the start screen of my app and play everything through again.
Any help would be greatly appreciated, thanks for your time.