# Stop sounds with javascript?

**URL:** <https://forum.kirupa.com/t/stop-sounds-with-javascript/185586>\
**Category:** web dev\
**Created:** [April 14, 2006, 1:40pm UTC](https://forum.kirupa.com/t/stop-sounds-with-javascript/185586 "2006-04-14T13:40:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dwight](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@Dwight](https://forum.kirupa.com/u/Dwight)\
**Post date:** [April 14, 2006, 1:40pm UTC](https://forum.kirupa.com/t/stop-sounds-with-javascript/185586/1 "2006-04-14T13:40:41Z")

</div>

hi there,

i’m not shure if I’m on the right forum, but here comes my question:

I’ve made a flashnavigation with sounds on the rollOver status of each button.  
But some people may find this annoying, so I want a function to turn them off.  
Problem is that I don’t have enough space in my flash movie to make another button with the following code:

```auto

volume = new Sound();

button.onRelease = function(){    
      volume.setVolume(0);
};

```

So I want to do this with JavaScript. Is there someone who knows how?  
If so, I would be forever greatfull!
