# Button to load mp3 file

**URL:** <https://forum.kirupa.com/t/button-to-load-mp3-file/58680>\
**Category:** flash\
**Created:** [July 24, 2004, 10:29pm UTC](https://forum.kirupa.com/t/button-to-load-mp3-file/58680 "2004-07-24T22:29:51Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [July 25, 2004, 6:54am UTC](https://forum.kirupa.com/t/button-to-load-mp3-file/58680/4 "2004-07-25T06:54:10Z")

</div>

The sound is linked (thanks again for the help, the website has been a big help), But I keep getting this error:

**Error** Scene=Scene 1, layer=1, frame=1:Line 2: Statement must appear within on handler  
firstSound=new Sound();

What is the ‘handler’…like I said, I’m new at AS.  
I’m not sure what this is telling me…when I preview in HTML, the sound is playing (despite the error message). But not becuase I pressed the button, it just goes on its own.

I’m probably missing something really stupid, any thoughts?

Thanks

> [@Digitalosophy](#):
>
> are you sure your sound is linked?
> 
> check out
> 
> [http://kennybellew.com](http://kennybellew.com/)

---

_[View the full topic](https://forum.kirupa.com/t/button-to-load-mp3-file/58680)._
