Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Write a program use a text field and display it using the actionscript?

787


How to create a logo using pen tool?

892


which keyword is used to attach methods and properties to a class? : Adobe flash

898


what is not a disadvantage of using the fscommand? : Adobe flash

893


how does an xmlsocket server know when a received message is complete? : Adobe flash

858


what happens when you drag an object created with the oval tool to the library panel? : Adobe flash

781


Write a program to show the external actionscript?

831


How to write a program that shows the usage of data types?

897


how to embed flash in html? : Adobe flash

802


How to add an effect to the movie clip?

844


What does the void function and object contain in actionscript?

819


Tell me what are the different ways in which the variables can be assigned?

896


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

849


what is the primary difference between the xml.sendandload method and the xml.load method? : Adobe flash

750


you have a dynamically loaded image that is larger than your stage. Which component would work best to accommodate this image? : Adobe flash

821