# How do I play a random video?

**URL:** <https://forum.kirupa.com/t/how-do-i-play-a-random-video/326224>\
**Category:** flash\
**Created:** [November 30, 2011, 3:54am UTC](https://forum.kirupa.com/t/how-do-i-play-a-random-video/326224 "2011-11-30T03:54:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xenatorres](https://avatars.discourse-cdn.com/v4/letter/x/3e96dc/32.png) [@xenatorres](https://forum.kirupa.com/u/xenatorres)\
**Post date:** [November 30, 2011, 3:54am UTC](https://forum.kirupa.com/t/how-do-i-play-a-random-video/326224/1 "2011-11-30T03:54:34Z")

</div>

I am extremely new to flash.

I found this great tutorial:

[http://www.developphp.com/view.php?tid=361&t=Random\_Content\_Display\_Script\_and\_Timeline\_Structure\_Flash\_CS4\_and\_CS3](http://www.developphp.com/view.php?tid=361&t=Random_Content_Display_Script_and_Timeline_Structure_Flash_CS4_and_CS3)

that shows how to easily randomize content.

HOWEVER - this tutorial doesn’t work when there’s SOUND.

I am trying to randomize video that contains sound. While this tutorial method does random display one video - it seems to be playing everything - as you can hear ALL the audio at once, thus…it doesn’t work. ☹

I need to have the page load, and play one random item from the library: usually this is a video with sound. For a few I have just audio (so it plays one audio clip from the collection).

Can anyone provide me with a tutorial or directions on how to do this??

Thank you very much.
