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
in general, non-mp3 digital audio destined to be imported into the flash mx authoring environment should first be compressed how much? : Adobe flash
what are the statements is true about actionscript in regards to the enforcement of private scope and public scope? : Adobe flash
How to play a movie clip?
which code should be added to create a second blue square to the right of the first? : Adobe flash
what is default frame rate of the time line in frame per second? : Adobe flash
what does the childnodes property contain? : Adobe flash
How to write a program to show the external actionscript?
How to add event listeners in mxml components. Name the as3 components?
when does the accessibility . Isactive () method return true? : Adobe flash
who can view flash? : Adobe flash
what is the downside of macromedia ui components making extensive use of ingeritance and encapsulation? : Adobe flash
which items cannot be hidden from screen readers? : Adobe flash
which of the following is not a typical host application for the flash player? : Adobe flash
which two sets the x position of the instance my_mc to that of the mouse cursor? : Adobe flash
Describe changewatcher.watch.