How can we goto next Scene by giving code on a button inside
a movie clip.
in short.
=>Scene 1.
====>MovieClip
======>Button [ on(release) { gotoAndPlay("Scene 2", 1); } ]
=>Scene 2.
This thing is not working. Please tell me the answer of how
to goto next scene from this scene 1.
Answer Posted / samuel jackson
Try to write this code on different layers don't write code on button itself as MovieClip loader doesn't undestand the instance name for different scenes.for eg.
Scene 1 ---> Layer 1 ----> create a movie clip name = mc1
Layer 2 ----> write this code:
stop();
mc1.onRelease = function() {
gotoAndStop("Scene 2",1);
}
the code which you had mentioned is applicable for buttons not for movie clips.
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
What is the use of pre-loader?
which of the assumptions cannot be made when developing an application for intranet deployment? : Adobe flash
what is the key advantage of using loadvars instead of loadvariables? : Adobe flash
who can view flash? : Adobe flash
How to change background color and stage size?
Explain what are the data types supported by actionscript?
Tell me what are the functions used with flash media?
What are the different utils libraries in actionscript?
which two panels can be used to change the label text of a button component? : Adobe flash
How many methods for depth are available?
which text anti-aliasing property setting will result in the smallest swf file size? : Adobe flash
explain the flash vs. Animated images and java applets? : Adobe flash
How to add an effect to the movie clip?
tell the difference between indexed array and associative array? : Adobe flash
What is meant by vector graphic animation? What is the use of pre-loader?