# Flash MX sound objects?

**URL:** <https://forum.kirupa.com/t/flash-mx-sound-objects/60523>\
**Category:** flash\
**Created:** [August 10, 2004, 2:46pm UTC](https://forum.kirupa.com/t/flash-mx-sound-objects/60523 "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/60523/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:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 10, 2004, 4:02pm UTC](https://forum.kirupa.com/t/flash-mx-sound-objects/60523/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:
