sion
05-15-2008, 10:20 PM
What I am trying to create is dead simple but I never came across this error and have no idea or way to decipher it to my understanding.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at newestmap_fla::MainTimeline/frame1()
My script is fluent I think
stop();
import flash.events.MouseEvent;
// --- Function for the Beggining of the Clip --- \\
map_Btn.addEventListener(MouseEvent.CLICK, bot);
function bot(event:MouseEvent):void {
gotoAndPlay("getStart1");
}
//--- Photo Map Button---\\
photomap_Btn.addEventListener(MouseEvent.CLICK, roz);
function roz(event:MouseEvent):void {
gotoAndPlay("getphotomap");
}
//--- Map Map Button---\\
mapmap_Btn.addEventListener(MouseEvent.CLICK, raz);
function raz(event:MouseEvent):void {
gotoAndPlay("getmapmap");
}
//--- Terrain Map Button---\\
terrainmap_Btn.addEventListener(MouseEvent.CLICK, luke);
function luke(event:MouseEvent):void {
gotoAndPlay("getterrainmap");
}
Thats my script if it help you anwsering my question. What I am creating is a simple map for a website which will change the pictures in a certain place according to the give frame label... These are imported PNG images with sizes of 400x250 px. I have no idea what is wrong as I just started the entire Adobe thing 1 month ago.. AS just fascinated me.. Please Help, Thanks in Advance.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at newestmap_fla::MainTimeline/frame1()
My script is fluent I think
stop();
import flash.events.MouseEvent;
// --- Function for the Beggining of the Clip --- \\
map_Btn.addEventListener(MouseEvent.CLICK, bot);
function bot(event:MouseEvent):void {
gotoAndPlay("getStart1");
}
//--- Photo Map Button---\\
photomap_Btn.addEventListener(MouseEvent.CLICK, roz);
function roz(event:MouseEvent):void {
gotoAndPlay("getphotomap");
}
//--- Map Map Button---\\
mapmap_Btn.addEventListener(MouseEvent.CLICK, raz);
function raz(event:MouseEvent):void {
gotoAndPlay("getmapmap");
}
//--- Terrain Map Button---\\
terrainmap_Btn.addEventListener(MouseEvent.CLICK, luke);
function luke(event:MouseEvent):void {
gotoAndPlay("getterrainmap");
}
Thats my script if it help you anwsering my question. What I am creating is a simple map for a website which will change the pictures in a certain place according to the give frame label... These are imported PNG images with sizes of 400x250 px. I have no idea what is wrong as I just started the entire Adobe thing 1 month ago.. AS just fascinated me.. Please Help, Thanks in Advance.