# Play sound/stop sound button

**URL:** <https://forum.kirupa.com/t/play-sound-stop-sound-button/216068>\
**Category:** Uncategorized\
**Created:** [February 13, 2007, 2:29pm UTC](https://forum.kirupa.com/t/play-sound-stop-sound-button/216068 "2007-02-13T14:29:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ParanoidAndroid](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@ParanoidAndroid](https://forum.kirupa.com/u/ParanoidAndroid)\
**Post date:** [February 13, 2007, 2:29pm UTC](https://forum.kirupa.com/t/play-sound-stop-sound-button/216068/1 "2007-02-13T14:29:03Z")

</div>

i want to make a single button to play a sound, and if pressed again, stop the sound. and if pressed again, play the sound, and so on…  
i know it has to be made with a boolean variable, true/false, but i just can’t figure out how.  
any help?  
thank you very much.
