# Click and hold play... release stop!

**URL:** <https://forum.kirupa.com/t/click-and-hold-play-release-stop/304849>\
**Category:** flash\
**Created:** [February 15, 2010, 1:29pm UTC](https://forum.kirupa.com/t/click-and-hold-play-release-stop/304849 "2010-02-15T13:29:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![livingsen](https://avatars.discourse-cdn.com/v4/letter/l/45deac/32.png) [@livingsen](https://forum.kirupa.com/u/livingsen)\
**Post date:** [February 15, 2010, 1:29pm UTC](https://forum.kirupa.com/t/click-and-hold-play-release-stop/304849/1 "2010-02-15T13:29:31Z")

</div>

Hi.

I am doing a task in AS3. I’m working on one site for morse codes.

My question is: is it possible to create a button that when you press it and hold it, it will play a sound, and when you release it then stops the sound?

thanks!
