# Can I make a FLASH movie which can paly random scenes?

**URL:** <https://forum.kirupa.com/t/can-i-make-a-flash-movie-which-can-paly-random-scenes/115054>\
**Category:** Uncategorized\
**Created:** [July 5, 2004, 12:11pm UTC](https://forum.kirupa.com/t/can-i-make-a-flash-movie-which-can-paly-random-scenes/115054 "2004-07-05T12:11:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wheel](https://avatars.discourse-cdn.com/v4/letter/w/4da419/32.png) [@wheel](https://forum.kirupa.com/u/wheel)\
**Post date:** [July 5, 2004, 12:11pm UTC](https://forum.kirupa.com/t/can-i-make-a-flash-movie-which-can-paly-random-scenes/115054/1 "2004-07-05T12:11:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 5, 2004, 12:50pm UTC](https://forum.kirupa.com/t/can-i-make-a-flash-movie-which-can-paly-random-scenes/115054/2 "2004-07-05T12:50:00Z")

</div>

You could setup a few conditions to pick which scene to play:

```auto
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;
}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 5, 2004, 1:25pm UTC](https://forum.kirupa.com/t/can-i-make-a-flash-movie-which-can-paly-random-scenes/115054/3 "2004-07-05T13:25:08Z")

</div>

thanks Claudio. and, where should i attach the code u told me, onto a button? or a frame?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 5, 2004, 1:37pm UTC](https://forum.kirupa.com/t/can-i-make-a-flash-movie-which-can-paly-random-scenes/115054/4 "2004-07-05T13:37:49Z")

</div>

thank you very much Claudio. it works now. ur advise is so helpful. thanks again.  
wheel.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 5, 2004, 1:39pm UTC](https://forum.kirupa.com/t/can-i-make-a-flash-movie-which-can-paly-random-scenes/115054/5 "2004-07-05T13:39:49Z")

</div>

Anytime wheel, and welcome to the forums!  
=)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 5, 2004, 1:58pm UTC](https://forum.kirupa.com/t/can-i-make-a-flash-movie-which-can-paly-random-scenes/115054/6 "2004-07-05T13:58:25Z")

</div>

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
