# Muting sound on rewind

**URL:** <https://forum.kirupa.com/t/muting-sound-on-rewind/162134>\
**Category:** flash\
**Created:** [September 9, 2005, 11:28pm UTC](https://forum.kirupa.com/t/muting-sound-on-rewind/162134 "2005-09-09T23:28:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![laxinboi37](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@laxinboi37](https://forum.kirupa.com/u/laxinboi37)\
**Post date:** [September 9, 2005, 11:28pm UTC](https://forum.kirupa.com/t/muting-sound-on-rewind/162134/1 "2005-09-09T23:28:26Z")

</div>

I have a navigation system that uses the following code.

> 

this.onEnterFrame = function(){  
if(rewind == true){  
prevFrame();  
}  
}  
this.onRollOver = function(){  
rewind = false;  
play();  
}  
this.onRollOut = function(){  
rewind = true;  
}

Anyway, I was using that but I wanted to put in button rollover sounds. I had it start on the second frame, but the problem was that on rollOut it would play the sound again. And that’s not what I want.

I tried using the mySound setVolume(0); command, or something similar. I thought it’d do the trick, but it didn’t do anything to it.

I was wondering if there was something I could put into my AS that would play the sound from the library on rollOver, or mute the sound on rollOut. Thanks in advance.
