-
Scene Problem
Alright, I have been spending the whole day on this problem and am still stuck.
My current situation is when I want to play from my Scene 7 to Scene 0 frame 1, I use the following code
home.addEventListener(MouseEvent.MOUSE_DOWN, homeHandler);
function homeHandler(evt:MouseEvent):void{
gotoAndStop(1, "Scene 0");
}
The in the output panel the following error would appear,
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Stroboscope_V1_fla::MainTimeline/frame1()
at flash.display::MovieClip/gotoAndStop()
at Stroboscope_V1_fla::MainTimeline/homeHandler()
This error code is like my nemesis, I keep getting it =.=
I seriously am at my wits end, please advice/help ):
-
Senior Member
Don't use the scene syntax. Just give each of your frames independent of the scene a unique name like this
gotoAndStop("scene0one");
- The right of the People to create Flash movies shall not be infringed. -
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|