# Playing a Sound using action script

**URL:** <https://forum.kirupa.com/t/playing-a-sound-using-action-script/86359>\
**Category:** flash\
**Created:** [April 12, 2005, 1:56pm UTC](https://forum.kirupa.com/t/playing-a-sound-using-action-script/86359 "2005-04-12T13:56:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![redjoe100](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@redjoe100](https://forum.kirupa.com/u/redjoe100)\
**Post date:** [April 12, 2005, 1:56pm UTC](https://forum.kirupa.com/t/playing-a-sound-using-action-script/86359/1 "2005-04-12T13:56:47Z")

</div>

Can anyone help?..

I have just completed the playing a sound using AS tutorial:

on (release) {  
kirupaSound = new Sound(this);  
kirupaSound.attachSound(“coolsound”);  
kirupaSound.start(0, 99);  
}

i would like to add another button to the movie to stop the sound, I have tried replacing the start with stop but knew it wouldn’t be that simple. Can anyone assist or let me know if there is a better method?

Many thanks
