# Sound class

**URL:** <https://forum.kirupa.com/t/sound-class/251686>\
**Category:** flash\
**Created:** [February 11, 2008, 7:49pm UTC](https://forum.kirupa.com/t/sound-class/251686 "2008-02-11T19:49:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamb\_223](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@adamb\_223](https://forum.kirupa.com/u/adamb_223)\
**Post date:** [February 11, 2008, 7:49pm UTC](https://forum.kirupa.com/t/sound-class/251686/1 "2008-02-11T19:49:37Z")

</div>

Hi.  
I’m brand new to Flash.

In the attached file I am trying to adapt something I got from a tutorial book.  
The sound’s behaviour is controlled ok - plays, then locks play until it’s finished.  
How can I change the code so that only the button starts the audio clip instead of the onMouseDown function?

NB: I know that I could attach the sound to the button timeline but I don’t want to do this.

Thanks,  
Adamb
