Hi I’m still relativity new to Flash. But what I’m doing is trying to create a website for my church. I’m working on one part of it right now and that’s the fellowship page. I have a couple of backgrounds on the very first scene and a main movie clip which contains the info. Inside the main movie clip time line I have it set up so that when I click on a button “More Info” it advances to a another movie clip on the time line. That movie clip contains a button labeled “back” which is supposed to go back to frame 1 when clicked.
One of the problems I’m having inside the main movie clip time line is when I go to test the movie I get this error :
Error #1009: Cannot access a property or method of a null object reference.
at Fellowship_fla::content_mc_3/Fellowship_fla::frame1()
But oddly enough it will still advance along the time line when I click the “more info” button but when I click the back button nothing happens.
Here is my code:
stop();
BT_MInfo_btn.addEventListener(MouseEvent.CLICK, BibleTalkClick);
ND_MInfo_btn.addEventListener(MouseEvent.CLICK, NoonDayClick);
BS_MInfo_btn.addEventListener(MouseEvent.CLICK, BibleStudyClick);
Back_btn.addEventListener(MouseEvent.CLICK, BackClick);
function BibleTalkClick(e:MouseEvent):void
{
gotoAndPlay("talk");
}
function NoonDayClick(e:MouseEvent):void
{
gotoAndPlay("Hour");
}
function BibleStudyClick(e:MouseEvent):void
{
gotoAndPlay("Study");
}
function BackClick(e:MouseEvent):void
{
gotoAndStop(1);
}
And here is my source file if that helps to get a better idea of what I’m talking about:
Thanks a lot for any help that can be given