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 primary difference between the xml.sendandload method and the xml.load method? : Adobe flash
what are the steps is not required in order to test or deploy flash remoting? : Adobe flash
What is the use of depth?
which methods is most likely an event handler? : Adobe flash
how does an xmlsocket server know when a received message is complete? : Adobe flash
a button instance is named circle_btn. Actionscript is placed on the main timeline so that the button is clicked a movie clip instance named rec_mc s width is changed to 100? : Adobe flash
What are the data types supported by actionscript?
psd. Which format would give you the most options within your flash project? : Adobe flash
what is the key difference between while loops and do while loops? : Adobe flash
what is generally considered the ideal group size for usability testing? : Adobe flash
which actionscript classes are used to play flv formatted video? : Adobe flash
what is needed when using static text to have font outline embedded in swf file? : Adobe flash
What does reference means in actionscript?
what are the statements is true about actionscript in regards to the enforcement of private scope and public scope? : Adobe flash
which two panels can be used to change the label text of a button component? : Adobe flash