# Music player

**URL:** <https://forum.kirupa.com/t/music-player/2802>\
**Category:** flash\
**Created:** [April 7, 2002, 11:02pm UTC](https://forum.kirupa.com/t/music-player/2802 "2002-04-07T23:02:26Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [April 7, 2002, 11:02pm UTC](https://forum.kirupa.com/t/music-player/2802/1 "2002-04-07T23:02:26Z")

</div>

I created a simple music player in flash, I stored all the sounds in seperate mc’s on different frames, I have a button that will begin playing once it is clicked, the problem is if I hit that button again it will play the clip again, how I check to see if sound is playing then stop the sound before I go on to the next clip?

---

<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:** [April 8, 2002, 9:33am UTC](https://forum.kirupa.com/t/music-player/2802/2 "2002-04-08T09:33:52Z")

</div>

have the movie clip set a variable on the root timeline that says what song is playing, then have each button check that variable.\r:) \rjeremy

---

<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:** [April 8, 2002, 4:24pm UTC](https://forum.kirupa.com/t/music-player/2802/3 "2002-04-08T16:24:38Z")

</div>

that sounds pretty simple, thanks…
