Hello All,
I've been working in a flash site for a couple days and i've gotten a couple errors as of late. Here are the errors:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at DefaultAEG_fla::MainTimeline/frame122()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at DefaultAEG_fla::MainTimeline/frame48()
at flash.display::MovieClip/gotoAndPlay()
at DefaultAEG_fla::MainTimeline/gotoAbtUs()
Now, I'm hoping a couple of you guys/gals have ran into this before... i've check over and over on my code but can't see what's up.
Line 48 Code:
stop();
/* Button Controls */
/*Home Button*/ Home.addEventListener(MouseEvent.CLICK, gotoHome);
/*About Us Button*/ AbtUs.addEventListener(MouseEvent.CLICK, gotoAbtUs);
/*Events Button*/ Evnts.addEventListener(MouseEvent.CLICK, gotoEvnts);
/*Coding for Blocks on left*/
abtBlck.addEventListener(MouseEvent.CLICK, gotoabtBlck);
BioBlck.addEventListener(MouseEvent.CLICK, gotoBioBlck);
CntctBlck.addEventListener(MouseEvent.CLICK, gotoCntctBlck);
Line 122 Code:
stop();
/*Home Button*/ Home.addEventListener(MouseEvent.CLICK, gotoHome);
/*About Us Button*/ AbtUs.addEventListener(MouseEvent.CLICK, gotoAbtUs);
/*Events Button*/ Evnts.addEventListener(MouseEvent.CLICK, gotoEvnts);
any ideas on where i'm going wrong?
and here's all of the code on the site
/* Button Methods */
/*This is the function Method for the Home button, it returns the user home to the 1st Frame*/
function gotoHome(event:MouseEvent):void
{
gotoAndPlay(1);
}
/*This is the function Method for the about button, it goes to the AEG anime and then to the abtPage*/
function gotoAbtUs(event:MouseEvent):void
{
gotoAndPlay(18);
}
/*This is the function Method for the events button, it goes to the AEG anime and then to the EvntsPage*/
function gotoEvnts(event:MouseEvent):void
{
gotoAndPlay(87);
}
/*About Page Button Methods*/
/*This is the function Method for the About button on the side of the screen
on the 'About Us' page, it enlarges the box to fit the content (written/visual*/
function gotoabtBlck(event:MouseEvent):void
{
gotoAndPlay(50);
}
/*This is the function Method for the Bio button on the side of the screen
on the 'About Us' page, it enlarges the box to fit the content (written/visual*/
function gotoBioBlck(event:MouseEvent):void
{
gotoAndPlay(63);
}
/*This is the function Method for the Contact button on the side of the screen
on the 'About Us' page, it enlarges the box to fit the content (written/visual*/
function gotoCntctBlck(event:MouseEvent):void
{
gotoAndPlay(76);
}