LN3000
11-09-2007, 09:48 PM
I'm new to Flash, and ActionScript3.
I'm trying to create a very basic "slideshow", when I compile, it runs, but I get the following error.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at lab7_fla::MainTimeline/lab7_fla::frame1451()
On that frame is the following ActionScript.
menu2.addEventListener(MouseEvent.CLICK,menu2Liste ner);
next2.addEventListener(MouseEvent.CLICK,next2Liste ner);
prev2.addEventListener(MouseEvent.CLICK,prev2Liste ner);
function menu2Listener(event:MouseEvent):void {
gotoAndPlay(2,"Menu");
}
function next2Listener(event:MouseEvent):void {
nextFrame();
}
function prev2Listener(event:MouseEvent):void {
prevFrame();
}
What's weird is, the nextFrame is working, but not the prevFrame button.
I am using scenes, and the scenes are being displayed properly.
My only problem is the error, and the prevFrame not working.
Please help out this AS3 n00b.
I'm trying to create a very basic "slideshow", when I compile, it runs, but I get the following error.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at lab7_fla::MainTimeline/lab7_fla::frame1451()
On that frame is the following ActionScript.
menu2.addEventListener(MouseEvent.CLICK,menu2Liste ner);
next2.addEventListener(MouseEvent.CLICK,next2Liste ner);
prev2.addEventListener(MouseEvent.CLICK,prev2Liste ner);
function menu2Listener(event:MouseEvent):void {
gotoAndPlay(2,"Menu");
}
function next2Listener(event:MouseEvent):void {
nextFrame();
}
function prev2Listener(event:MouseEvent):void {
prevFrame();
}
What's weird is, the nextFrame is working, but not the prevFrame button.
I am using scenes, and the scenes are being displayed properly.
My only problem is the error, and the prevFrame not working.
Please help out this AS3 n00b.