# Play Random Movie Clip

**URL:** https://forum.kirupa.com/t/play-random-movie-clip/238005
**Category:** Uncategorized
**Created:** [September 6, 2007, 8:54am UTC](https://forum.kirupa.com/t/play-random-movie-clip/238005 "2007-09-06T08:54:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![retribution](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@retribution](https://forum.kirupa.com/u/retribution)
#### Post date: [September 6, 2007, 8:54am UTC](https://forum.kirupa.com/t/play-random-movie-clip/238005/1 "2007-09-06T08:54:37Z")

</div>

(My apologies, this was originally posted in the wrong section)

Hey all,

So I have searched for this but nothing quite answers my question…

I have 4 movie clips on the stage, which can be numbered or named whatever you like.

To start, I need some code that tells one of them (at random) to play.

Then when the clip finishes playing, on the last keyframe, some similar code that tells another of the 4 clips to play (at random), but not the same clip again.

What would be the best way to set this up? I am new to arrays etc…

Thanks!
