# Adding sound

**URL:** <https://forum.kirupa.com/t/adding-sound/14268>\
**Category:** Uncategorized\
**Created:** [February 24, 2003, 12:51pm UTC](https://forum.kirupa.com/t/adding-sound/14268 "2003-02-24T12:51:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![styrofoe](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@styrofoe](https://forum.kirupa.com/u/styrofoe)\
**Post date:** [February 24, 2003, 12:51pm UTC](https://forum.kirupa.com/t/adding-sound/14268/1 "2003-02-24T12:51:17Z")

</div>

Hi there,

We’ve built a chat client in flash MX and we’d like to incorporate a sound event on every new message that’s received. Need help on what to do. Any suggestions.

Thanks in advance  
Cheers  
menon

---

<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:** [February 24, 2003, 6:37pm UTC](https://forum.kirupa.com/t/adding-sound/14268/2 "2003-02-24T18:37:30Z")

</div>

Hello,

There are two ways to add sounds on flash.

One, you can import the sound to the library then added to the timeline by just dragging it to the workspace.

Two, you canuse actionscript to add in any movieClip event or button event you want in this manner.

```
   mySound = new Sound();
   mySound.loadSound("sound.mp3",1);

```

the above lines are taken from kirupa’s tutorial on loading found in the advanced tutorials for flash MX.
