# Sounds stopping?

**URL:** <https://forum.kirupa.com/t/sounds-stopping/222405>\
**Category:** flash\
**Created:** [April 13, 2007, 4:30am UTC](https://forum.kirupa.com/t/sounds-stopping/222405 "2007-04-13T04:30:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theSchtickler](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@theSchtickler](https://forum.kirupa.com/u/theSchtickler)\
**Post date:** [April 13, 2007, 4:30am UTC](https://forum.kirupa.com/t/sounds-stopping/222405/1 "2007-04-13T04:30:02Z")

</div>

Hi there,

I’m using sound objects to play sounds in my movie. When you click one button, the background music starts to play in a loop. Then I rollover another button, that plays another sound object, and when I rollout, it tells that sound object to stop. The problem is, that when I tell the rollover sound to stop, it also stops the background music?

I can not work out why it’s doing this? Any ideas?

[AS]bg\_snd = new Sound();  
bg\_snd.attachSound(‘sound1’);

ro\_snd = new Sound();  
ro\_snd.attachSound(‘sound2’);

button1.onRelease = function(){  
bg\_snd.start(0,99);  
}

button2.onRollOver = function(){  
ro\_snd.start(0,10);  
}

button2.onRollOut = function(){  
ro\_snd.stop();  
}[/AS]
