-
Scene not being found AS3
hi i have a button with a function of a gotoAndStop but when it is clicked this output error appears:
ArgumentError: Error #2108: Scene 1 was not found.
at flash.display::MovieClip/gotoAndStop()
at fixing_fla::iconInterface_mc_4/home()
Here is the code i am using:
phoneIcon_mc.addEventListener(MouseEvent.CLICK, home);
function home (event:MouseEvent):void{
gotoAndStop("1", "1");
}
when i use scene 1 instead of 1 in the gotoAndStop function the error is the same but chanes to "..Scene Scene 1 was not found...)
Please urgent help is required thanks
-
What did you name the scene?
-
i have left as its default "Scene 1"
-
Then that's what you need to use. Also, if you are using a frame number rather than label, you should pass a number, not a String.
Code:
gotoAndStop(1, "Scene 1");
Make sure the capitalization matches.
-
i have a movie clip called iconinterface_mc and inside of that movie clip i have another movieclip called smsinter_mc iv created a button and i want the button to bring the user back to the iconinterface_mc any suggestions??
-
Flash Genie
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
|