Flash is giving me this 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);
};

winter_btn,spring_btn, andfall_btndefined in frame 39? Try totrace(fall_btn);and see what you get. - John Giotta