To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Actionscript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-15-2010, 12:26 AM   #1
chuicy
Registered User
 
Join Date: Mar 2010
Posts: 1
Unhappy 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 ):
chuicy is offline   Reply With Quote
Old 03-15-2010, 11:32 AM   #2
cancerinform
Mod
 
cancerinform's Avatar
 
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 |
cancerinform is offline   Reply With Quote
Reply

Tags
scene, scene to scene, scenes

Go Back   Flash Kit Community Forums > Flash Help > Actionscript 3.0

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:32 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.