# Button To Play Random mp3's

**URL:** <https://forum.kirupa.com/t/button-to-play-random-mp3s/190935>\
**Category:** flash\
**Created:** [June 15, 2006, 8:54pm UTC](https://forum.kirupa.com/t/button-to-play-random-mp3s/190935 "2006-06-15T20:54:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bleedmedia](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bleedmedia](https://forum.kirupa.com/u/bleedmedia)\
**Post date:** [June 15, 2006, 8:54pm UTC](https://forum.kirupa.com/t/button-to-play-random-mp3s/190935/1 "2006-06-15T20:54:37Z")

</div>

Hello,

I’m currently making a button, and I want it to play random mp3s when the user rolls over the button. In other words, I have 5 different mp3s named 1.mp3, 2.mp3, 3.mp3, etc. When the user rolls over the button, I would like for it to randomly play one of those mp3’s… So each time the user rolls over the button, they’ll hear 1 of the 5 mp3’s.

Does anyone know how I might be able to make this happen? Or does anybody have any script that does this sort of thing? If so, that would be awesome!

Thanks a lot!

Brandon
