# Loops and how to stop 'em

**URL:** <https://forum.kirupa.com/t/loops-and-how-to-stop-em/13296>\
**Category:** Uncategorized\
**Created:** [February 11, 2003, 3:29pm UTC](https://forum.kirupa.com/t/loops-and-how-to-stop-em/13296 "2003-02-11T15:29:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ultramarc](https://avatars.discourse-cdn.com/v4/letter/u/b487fb/32.png) [@ultramarc](https://forum.kirupa.com/u/ultramarc)\
**Post date:** [February 11, 2003, 3:29pm UTC](https://forum.kirupa.com/t/loops-and-how-to-stop-em/13296/1 "2003-02-11T15:29:52Z")

</div>

ok, so i have 4 buttons for four looping sounds. and there is a button for sounds off/sounds on. can any1 post here what would the script for this button (on/off). thanks in advance!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 11, 2003, 3:43pm UTC](https://forum.kirupa.com/t/loops-and-how-to-stop-em/13296/2 "2003-02-11T15:43:55Z")

</div>

lets call the sounds mysound1, mysound2, etc.

```php
on(release){
mysound1.stop()
mysound2.stop()
mysound3.stop()
mysound4.stop()
}

```
