# Music overlapping with "kirupasound" actionscript

**URL:** <https://forum.kirupa.com/t/music-overlapping-with-kirupasound-actionscript/306682>\
**Category:** Uncategorized\
**Created:** [March 19, 2010, 8:49pm UTC](https://forum.kirupa.com/t/music-overlapping-with-kirupasound-actionscript/306682 "2010-03-19T20:49:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TAZ116](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@TAZ116](https://forum.kirupa.com/u/TAZ116)\
**Post date:** [March 19, 2010, 8:49pm UTC](https://forum.kirupa.com/t/music-overlapping-with-kirupasound-actionscript/306682/1 "2010-03-19T20:49:20Z")

</div>

Hi guys

Ive been developing a flash file (actionscript 2.0 in Flash CS4) to import into a website Im designing. So far I am using this action:

```auto
 
on (release) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("erikasong");
kirupaSound.start(0, 0);
}

```

in my buttons in order to play individual sound files. The sound files are playing great but they overlap one another. How can I can either create a stop button or modify the code so that when the user clicks on the next sound button, the old music stops and the new begins?

Sorry - this is my first week of flash - I normally deal with just graphical design.

Tom.
