I am making a movie with a couple of scenes, say 5, and i want those scenes to play randomly after the movie loaded. I’ve tried few ways, but they didnot work. Can anyone help me out? Thanks
You could setup a few conditions to pick which scene to play:
scene = random(5)+1;
switch (scene) {
case 1 :
gotoAndPlay("Scene 1", 1);
break;
case 2 :
gotoAndPlay("Scene 2", 1);
break;
case 3 :
gotoAndPlay("Scene 3", 1);
break;
case 4 :
gotoAndPlay("Scene 4", 1);
break;
case 5 :
gotoAndPlay("Scene 5", 1);
break;
}
thanks Claudio. and, where should i attach the code u told me, onto a button? or a frame?
thank you very much Claudio. it works now. ur advise is so helpful. thanks again.
wheel.
Anytime wheel, and welcome to the forums!
=)
hi, claudio. looks like i got more to ask: my intention is to ask the movie to play all 5 scenes, but randomly , each time when a reflesh button is cliked. what i did so far was to tell the movie starts playing from scene 1 to scene 5. can i make it starts from, say scene 2, than 1, 5, 4, 3, something like that, but randomly? thanks