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.





Answers were Sorted based on User's Feedback



How can we goto next Scene by giving code on a button inside a movie clip. in short. =>Scen..

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

How can we goto next Scene by giving code on a button inside a movie clip. in short. =>Scen..

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

How can we goto next Scene by giving code on a button inside a movie clip. in short. =>Scen..

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

How can we goto next Scene by giving code on a button inside a movie clip. in short. =>Scen..

Answer / anilreddykalluri

Button.addEventListener(MouseEvent.CLICK,function Name);
function Function Name(e.MouseEvent)
{
gotoAndStop(Scene2);
}

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Flash Action Scripting Interview Questions

how to embed flash in html? : Adobe flash

0 Answers  


Give an example that illustrates polymorphism in flash script.

0 Answers  


if we set slow sync as you suggest in answers on the many online forums you visit, would not we be opening ourselves up to blurred shots when the shutter speed gets significantly below 1/60? : Adobe flash

0 Answers  


which two statements about device fonts are true? : Adobe flash

0 Answers  


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

0 Answers  


How to make synchronous data calls in actionscript?

0 Answers  


at which point can you start usability testing? : Adobe flash

0 Answers  


Hat are the differences between javascript and actionscript?

0 Answers  


what happens if an .swf is loaded into a already occupied level? : Adobe flash

0 Answers  


wate is multimedia

1 Answers  


what is the key purpose of using layers in a timeline? : Adobe flash

0 Answers  


which two panels can be used to change the label text of a button component? : Adobe flash

0 Answers  


Categories