# Play Random Movie Clip

**URL:** <https://forum.kirupa.com/t/play-random-movie-clip/238003>\
**Category:** flash\
**Created:** [September 6, 2007, 8:42am UTC](https://forum.kirupa.com/t/play-random-movie-clip/238003 "2007-09-06T08:42:44Z")\
**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:42am UTC](https://forum.kirupa.com/t/play-random-movie-clip/238003/1 "2007-09-06T08:42:44Z")

</div>

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!
