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 |
which of the assumptions cannot be made when developing an application for intranet deployment? : Adobe flash
what is the key advantage of flash being a true clientside application? : Adobe flash
what is use of preloader? What are the diff var use for creating preloaders?
10 Answers DreamOrbit Softech, Redim Software Technologies, Wipro,
How to add conditional logic for the submit button?
How to create a logo using pen tool?
which items cannot be hidden from screen readers? : Adobe flash
what is the key purpose of using layers in a timeline? : Adobe flash
Do you know how does removal of actual objects and data work in actionscript?
Explain what are the data types supported by actionscript?
What is the difference between _root and parent?
10 Answers Alok Industries, eLearning, IBM, MBT, Origami,
What is the main purpose of actionscript?
What is EventFlow.?