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 key advantage of using loadvars instead of loadvariables? : Adobe flash

502


Write a program to create custom list in actionscript?

444


how many levels does flash mx support? : Adobe flash

488


What are the changes presented by actionscript?

461


How to write a program use a text field and display it using the actionscript?

473






Do you know what does reference means in actionscript?

437


Tell me what is the main purpose of actionscript?

482


What are the ways in which actionscript's code can be protected?

476


How to create scrolling gallery in portfolio?

509


which of the following is not a guideline for conducting effective usability testing? : Adobe flash

486


what should be used in the name of constant? : Adobe flash

475


can flash .swf movies be very time consuming to edit? : Adobe flash

519


you have a video project that would best be served by using full screen mode. This needs to be done from within the browser, since you are not able to use a projector. Which publish settings should you use? : Adobe flash

501


user accessibility on your video project is a key factor. Which two features should you choose? : Adobe flash

475


you have a rectangle shape with rounded corners. You want to ensure that the corners do not distort when the rectangle is scaled. What should you do? : Adobe flash

561