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.
Answers were Sorted based on User's Feedback
Answer / guest
HI guy i domt know as2 .
In as3 just use
MovieClip(root).movieclip.button.addEventListener(MouseEvent.CLICK,function(e:Event){
})
| Is This Answer Correct ? | 6 Yes | 3 No |
Answer / dinesh anand
Hi
In scene2 Timeline Fix a label named "scene2PLAY"
Then Copy and Past the below code in ur button
on(Release){
_root.gotoAndPlay("scene2PLAY")
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / 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 |
Answer / anilreddykalluri
Button.addEventListener(MouseEvent.CLICK,function Name);
function Function Name(e.MouseEvent)
{
gotoAndStop(Scene2);
}
| Is This Answer Correct ? | 1 Yes | 2 No |
in which level does the original movie resides? : 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
Tell me what are the different ways in which the variables can be assigned?
Explain what are the differences between javascript and actionscript?
what is needed when using static text to have font outline embedded in swf file? : Adobe flash
can any one tell good training center for adobe flex in chennnai?
which actionscript method should be used to bring a component from the library to the stage? : Adobe flash
where is the data pulled by a load variables function stored? : Adobe flash
you understand from the sb-25 manual that the built-in, retractable bounce card is meant for use with the flash head in a vertical position? : Adobe flash
Write a program that shows the usage of data types?
How many menus will you find on the menu bar?
Do you know what is the difference between an array and vector?