# Sound in an image buttom

**URL:** <https://forum.kirupa.com/t/sound-in-an-image-buttom/57754>\
**Category:** flash\
**Created:** [July 15, 2004, 9:53pm UTC](https://forum.kirupa.com/t/sound-in-an-image-buttom/57754 "2004-07-15T21:53:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ozstar](https://avatars.discourse-cdn.com/v4/letter/o/ce73a5/32.png) [@ozstar](https://forum.kirupa.com/u/ozstar)\
**Post date:** [July 15, 2004, 9:53pm UTC](https://forum.kirupa.com/t/sound-in-an-image-buttom/57754/1 "2004-07-15T21:53:46Z")

</div>

Hi,

I have a great little flash button that has a star on it that turns when the mouse touches it. I now what to add a little 'click’sound to this.

I have treied but so far no luck. It is just one image and not a Rollover button however there is action as the star turns. I found it in the Dreamweaver Flash stuff.

I will post the file it you like.

Any help please?

oz

---

<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 15, 2004, 10:56pm UTC](https://forum.kirupa.com/t/sound-in-an-image-buttom/57754/2 "2004-07-15T22:56:23Z")

</div>

import your sound to the library…  
right click it \>\> linkage \>\> export for AS…  
give it an identifier of “star” with out the quotes…

on your button:

```auto

on(release) {
     starSound = new Sound(this);
     starSound.attachSound("star");
     starSound.start(0,1);
}

```
