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

in general, non-mp3 digital audio destined to be imported into the flash mx authoring environment should first be compressed how much? : Adobe flash

812


what are the statements is true about actionscript in regards to the enforcement of private scope and public scope? : Adobe flash

813


How to play a movie clip?

857


which code should be added to create a second blue square to the right of the first? : Adobe flash

857


what is default frame rate of the time line in frame per second? : Adobe flash

934


what does the childnodes property contain? : Adobe flash

821


How to write a program to show the external actionscript?

820


How to add event listeners in mxml components. Name the as3 components?

831


when does the accessibility . Isactive () method return true? : Adobe flash

876


who can view flash? : Adobe flash

875


what is the downside of macromedia ui components making extensive use of ingeritance and encapsulation? : Adobe flash

950


which items cannot be hidden from screen readers? : Adobe flash

863


which of the following is not a typical host application for the flash player? : Adobe flash

874


which two sets the x position of the instance my_mc to that of the mouse cursor? : Adobe flash

866


Describe changewatcher.watch.

918