|
|
|
#1 |
|
Registered User
Join Date: Mar 2010
Posts: 1
|
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 ): |
|
|
|
|
|
#2 |
|
Mod
Join Date: Mar 2002
Location: press the picture...
Posts: 12,702
|
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. - | www.Flashscript.biz | Help a little girl, Ana, who has cancer. | Flashscript Biz Classes/Components | The new Event design pattern | Clothing for Haiti | |
|
|
|
![]() |
| Tags |
| scene, scene to scene, scenes |
|
||||||
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|