AS3---TypeError: Error #1009: Cannot access a property or method of a null object reference
Posted
by
user571620
on Stack Overflow
See other posts from Stack Overflow
or by user571620
Published on 2011-01-11T17:34:08Z
Indexed on
2011/01/11
18:53 UTC
Read the original article
Hit count: 157
flash
|actionscript-3
I'm very new to flash and I really have no idea what I'm doing. Thank you in advance.
its giving me that error after I click a button to go to another frame. After I get the error, some buttons do not go to its destination and instead it just does nothing.
The error is as follows:
TypeError: Error #1009: Cannot access a property or method of a null object reference. at wmhssports_fla::MainTimeline/frame39()
Here is the code for frame 39:
stop();
winter_btn.addEventListener(MouseEvent.CLICK, buttonClick1);
function buttonClick1(event:MouseEvent):void{
gotoAndPlay(39);
};
spring_btn_boys.addEventListener(MouseEvent.CLICK, buttonClick10);
function buttonClick10(event:MouseEvent):void{
gotoAndPlay(114);
};
fall_btn_boys.addEventListener(MouseEvent.CLICK, buttonClick11);
function buttonClick11(event:MouseEvent):void{
gotoAndPlay(135);
};
Edit: I could email the file to someone, if they could look at it for me? Its REALLY sketchy due to my inexperience with flash, but then again its not that big of a clip.
email me at: [email protected]
© Stack Overflow or respective owner