# Flash MX sound objects?

**URL:** <https://forum.kirupa.com/t/flash-mx-sound-objects/118959>\
**Category:** Uncategorized\
**Created:** [August 10, 2004, 2:46pm UTC](https://forum.kirupa.com/t/flash-mx-sound-objects/118959 "2004-08-10T14:46:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimmyJimmy](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@JimmyJimmy](https://forum.kirupa.com/u/JimmyJimmy)\
**Post date:** [August 10, 2004, 2:46pm UTC](https://forum.kirupa.com/t/flash-mx-sound-objects/118959/1 "2004-08-10T14:46:24Z")

</div>

I have 4 buttons. Each are a movie clip that has 2 frames (the down and over).  
the rollover has a click sound to it. Is it worth my while to do that with AS? or just put it up in the timeline (the sound).  
Thank you for your time!

---

<div class="post-metadata">

**Author:** ![e\_s\_x\_s](https://avatars.discourse-cdn.com/v4/letter/e/f9ae1b/32.png) [@e\_s\_x\_s](https://forum.kirupa.com/u/e_s_x_s)\
**Post date:** [August 10, 2004, 4:02pm UTC](https://forum.kirupa.com/t/flash-mx-sound-objects/118959/2 "2004-08-10T16:02:27Z")

</div>

u can use attachSound property for making it with AS.

import a sound file add a linkage name for actionscript.in the example below,it is logoff\_id. put this code to the main timeline.

var my\_sound:Sound = new Sound();  
my\_sound.attachSound(“logoff\_id”);

and than add the following code to the button:

on(rollOver){  
my\_sound.start();  
}

:mu:
