TranceAddict Forums

TranceAddict Forums (www.tranceaddict.com/forums)
- Chill Out Room
-- Flash 5+ question


Posted by Nell on Sep-07-2003 22:54:

Flash 5+ question

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


Posted by SgtFoo on Sep-08-2003 02:16:

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)


Posted by Solstice on Sep-08-2003 07:35:

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.


Posted by Nell on Sep-08-2003 08:43:

thanks guys. ill give it a shot

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


Nell



Powered by: vBulletin
Copyright © 2000-2021, Jelsoft Enterprises Ltd.