# Play and pause sound buttons

**URL:** https://forum.kirupa.com/t/play-and-pause-sound-buttons/110939
**Category:** Uncategorized
**Created:** [May 21, 2004, 4:40am UTC](https://forum.kirupa.com/t/play-and-pause-sound-buttons/110939 "2004-05-21T04:40:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Vexir](https://avatars.discourse-cdn.com/v4/letter/v/a183cd/32.png) [@Vexir](https://forum.kirupa.com/u/Vexir)
#### Post date: [May 21, 2004, 4:40am UTC](https://forum.kirupa.com/t/play-and-pause-sound-buttons/110939/1 "2004-05-21T04:40:33Z")

</div>

[Here is my .FLA…](http://www.graphicslash.com/sound.fla)

Anyway, you see that the sound is on a seperate layer, with gotoandplay(1); or w/e on the end… so it indefinetely loops if left to it’s own devices.

Now the actions for the play arrow button are:

on (release) {  
play();  
}

and the actions for the stop square button are:

on (release) {  
stop();  
}

Techincally, as to my VERY BASIC A/S knowledge, this should work right? I also tried instead of “on (release)” I tried “onClipEvent (mouseUp)”

but that didn’t work either. Can anyone help?
