# How to stop sound file

**URL:** <https://forum.kirupa.com/t/how-to-stop-sound-file/294713>\
**Category:** flash\
**Created:** [August 18, 2009, 9:52pm UTC](https://forum.kirupa.com/t/how-to-stop-sound-file/294713 "2009-08-18T21:52:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Centifolia](https://avatars.discourse-cdn.com/v4/letter/c/ecc23a/32.png) [@Centifolia](https://forum.kirupa.com/u/Centifolia)\
**Post date:** [August 18, 2009, 9:52pm UTC](https://forum.kirupa.com/t/how-to-stop-sound-file/294713/1 "2009-08-18T21:52:27Z")

</div>

hi -  
in a movieclip I have several buttons which play different mp3 files.  
How can I manage that one file stops as soon as I click on another one?  
Right now there is an overlapping of all sound files.

Here is the code:

```auto
soundobjekt = new Sound(this);
soundobjekt.attachSound("Socializtion");
soundobjekt1 = new Sound(this);
soundobjekt1.attachSound("Externalization");
 
socialization.onPress = function(){
 soundobjekt.start();
 
}
externalization.onPress = function(){
 soundobjekt1.start();
      
}

```

soundobjekt.stop(); does not work.
