# MUTE & UNMUTE Buttons - Having Difficulties, please help

**URL:** https://forum.kirupa.com/t/mute-unmute-buttons-having-difficulties-please-help/123207
**Category:** Uncategorized
**Created:** [September 21, 2004, 4:24pm UTC](https://forum.kirupa.com/t/mute-unmute-buttons-having-difficulties-please-help/123207 "2004-09-21T16:24:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![teresam](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@teresam](https://forum.kirupa.com/u/teresam)
#### Post date: [September 21, 2004, 4:24pm UTC](https://forum.kirupa.com/t/mute-unmute-buttons-having-difficulties-please-help/123207/1 "2004-09-21T16:24:33Z")

</div>

Im having a hard time trying to get the mute and unmute(replay) buttons to work. THis is what i want. A mute button, which mutes the music. and a “replay” button, that when its clicked on, it will replay the movie AS WELL as allow the user to hear the music again.

bg = the name of my background music. PLEASE HELP. thank you.

* * *

on(release){  
currentVolume = bg.getVolume();  
bg.setVolume(0);

## }

And in the replay button here is the code, that im trying to set the volume back up at 100…

## on (release) { gotoAndPlay(2); bg.setVolume(100); }
