return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

 
Flash 5+ question
View this Thread in Original format
Nell
is it possible to go back and repeat 'scenes' in flash 5? (like calling a function in programming terms)

ive never done it before and id like to play scene1, scene2, thena button on scene2 is clicked and it goes back to scene1 again. possible?

thanks
SgtFoo
suer it's possible, in the event options/properties. You can change the frame and scene that you want to return to. (i haven't used flash in 2 months... correct me if i'm worng)
Solstice
simple solution : dont use scenes.

Put your "Scene's" perse into movieclips. That way the only thing you have to do to repeat the clip is to target the clip with a gotoAndPlay(1) action.

e.g

Scene 1 - The park (30 frames long) with a stop() action on frame 30
Scene 2 - The club (30 frames long) with a stop() action on frame 30

Scene 1 is in a MC (name it Scene1Mc on the stage)
Scene 2 is in a MC (name it Scene2Mc on the stage)

On the main stage put Scene1 movieclip on frame 1. Put the Scene2 movieclip on frame 30. Have a button at the bottom of the MC that was an action like so:

on (release) {
Scene1Mc.gotoAndPlay(1)
}

voila.
Nell
thanks guys. ill give it a shot

id onyl used scens before to pad out the loading. thanks!


Nell
CLICK TO RETURN TO TOP OF PAGE
 
Privacy Statement