TypeError: Error #1009: Cannot access a property or method of a null object reference.
The problem I’m having is when I run the program and click on button3 to bring me to page3, I get the error message:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Untitled_fla::MainTimeline/frame1()
at flash.display::MovieClip/gotoAndStop()
at Untitled_fla::MainTimeline/gohome1()
I’m just trying to use button3 to bring me to the third page which is page3. Everything else is working fine. Any help would be great!
import flash.events.MouseEvent;
import flash.net.URLRequest;
stop();
home1.addEventListener(MouseEvent.CLICK, gohome1);
function gohome1 (event:MouseEvent):void{
gotoAndStop(1);
}
- bios.addEventListener(MouseEvent.CLICK, gobios);
function gobios (event:MouseEvent):void{
gotoAndStop(2);
}
button3.addEventListener(MouseEvent.CLICK, goabout1);
function goabout1 (event:MouseEvent):void{
gotoAndStop(3);
}