Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

go to next scene

Status
Not open for further replies.

Bmstenner

Technical User
Jul 22, 2002
88
AU
all,

i have a flash file, it has two scenes, on the first scene there are two buttons, i would like to be able to click one of the buttons to navigate onto scene 2

i have tried going to the "Actions > movie control > on > scene 2 and also Actions > movie control > go to > scene 2"

but neither seem to work, anyone know how to use this feature?

thanks for reading,

Brendan
 
If your button is on the main timeline, you can target a scene name with...

on(release){
gotoAndPlay("Scene 2", 1);
}

"Scene 2" should be the exact name (caps & all) of the targeted scene.

If your button is in a movie clip or is in an external movie loaded on another level (not layer!), then you would have to target a labeled frame, since targeting scene names wouldn't work. Thus you would label the first frame of Scene 2 with an unique label, such as start2 (no number only labels, or at least not starting off with a number), add _root(from movie clips) or _level0(from movies loaded on another level), and target that labeled frame in your button's or frame's actionscript...

on(release){
_root.gotoAndPlay("start2");
}

The labeled frame method would also work from a button on the main timeline, and since it wouldn't in other cases, might as well get used to allways use the labeled frame method.



Regards,

cubalibre2.gif
 
OK, i tried it and... I cant get my head around it still..

Can I start again? I have a blank presentation, with two click buttons, i want to insert another slide, so i do so..

ive got two slides, the second slide only says "test" but on the slide, it was the two buttons, if i add a "goto" command to slide 2, it will loop back into slide 1 and continue to flash through the two...

I am just a little thick.. :-D

Brendan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top