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
Write a program use a text field and display it using the actionscript?
How to create a logo using pen tool?
which keyword is used to attach methods and properties to a class? : Adobe flash
what is not a disadvantage of using the fscommand? : Adobe flash
how does an xmlsocket server know when a received message is complete? : Adobe flash
what happens when you drag an object created with the oval tool to the library panel? : Adobe flash
Write a program to show the external actionscript?
How to write a program that shows the usage of data types?
how to embed flash in html? : Adobe flash
How to add an effect to the movie clip?
What does the void function and object contain in actionscript?
Tell me what are the different ways in which the variables can be assigned?
you have a textfield selected on stage and would like to separate each letter into its own textfield. Which option under the modify menu allows you to do this? : Adobe flash
what is the primary difference between the xml.sendandload method and the xml.load method? : Adobe flash
you have a dynamically loaded image that is larger than your stage. Which component would work best to accommodate this image? : Adobe flash