Error #1009: Cannot access a property or method of a null object reference.
Hi guys, was wondering if you could shed some light on a problem I am having with AS3!
In frame 1 I have an actions keyframe with my listener and function for a button.
In frame 2 I have an instance of a button.
Frame 3 doesn't have the button.
In frame 4 I have an instance of the button again.
Because the button doesn't exist in the first frame I get the Error #1009.
I move the button from frame 2 to frame 1 and it works, the error stops popping up, yet the button on frame 4 does not work. (I don't even want the button to be on frame 1!)
Is there anyway for the button to be "recognised" by the code in frame 1 without having to have an instance of it so the button can call the function no matter what frame it is in?
I hope this makes sense to somebody because it's driving me nuts ![]()
Cheers in advance!
