# Creating a sound button that when clicked starts or stops the music

**URL:** <https://forum.kirupa.com/t/creating-a-sound-button-that-when-clicked-starts-or-stops-the-music/124322>\
**Category:** Uncategorized\
**Created:** [October 2, 2004, 5:48am UTC](https://forum.kirupa.com/t/creating-a-sound-button-that-when-clicked-starts-or-stops-the-music/124322 "2004-10-02T05:48:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![innoxist](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@innoxist](https://forum.kirupa.com/u/innoxist)\
**Post date:** [October 2, 2004, 5:48am UTC](https://forum.kirupa.com/t/creating-a-sound-button-that-when-clicked-starts-or-stops-the-music/124322/1 "2004-10-02T05:48:19Z")

</div>

Instead of using 2 buttons to start or stop the music, is it possible to just use one? So when the music is playing, click it and it’ll stop, but when the music is stopped, on clicking, it will start.
