# How do you create a button which switches off the music when clicked?

**URL:** <https://forum.kirupa.com/t/how-do-you-create-a-button-which-switches-off-the-music-when-clicked/91815>\
**Category:** Uncategorized\
**Created:** [October 9, 2003, 5:34am UTC](https://forum.kirupa.com/t/how-do-you-create-a-button-which-switches-off-the-music-when-clicked/91815 "2003-10-09T05:34:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mave](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@mave](https://forum.kirupa.com/u/mave)\
**Post date:** [October 9, 2003, 5:34am UTC](https://forum.kirupa.com/t/how-do-you-create-a-button-which-switches-off-the-music-when-clicked/91815/1 "2003-10-09T05:34:25Z")

</div>

I practised one of the tutorials as you can view from [http://www.kirupa.com/developer/actionscript/sound.htm](http://www.kirupa.com/developer/actionscript/sound.htm). Anyway, I figured how to create a button for TURNING ON the music. BUT how do I create a second button which shuts it off? Whats the script for it???

Thanks.
