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


Please Help Members By Posting Answers For Below Questions

what is the primary difference between the xml.sendandload method and the xml.load method? : Adobe flash

461


what are the steps is not required in order to test or deploy flash remoting? : Adobe flash

487


What is the use of depth?

517


which methods is most likely an event handler? : Adobe flash

508


how does an xmlsocket server know when a received message is complete? : Adobe flash

485






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

472


What are the data types supported by actionscript?

489


psd. Which format would give you the most options within your flash project? : Adobe flash

459


what is the key difference between while loops and do while loops? : Adobe flash

458


what is generally considered the ideal group size for usability testing? : Adobe flash

457


which actionscript classes are used to play flv formatted video? : Adobe flash

446


what is needed when using static text to have font outline embedded in swf file? : Adobe flash

443


What does reference means in actionscript?

469


what are the statements is true about actionscript in regards to the enforcement of private scope and public scope? : Adobe flash

479


which two panels can be used to change the label text of a button component? : Adobe flash

523