# How do I utilize sound with actionscript in flash 5?

**URL:** <https://forum.kirupa.com/t/how-do-i-utilize-sound-with-actionscript-in-flash-5/12417>\
**Category:** flash\
**Created:** [January 31, 2003, 1:01am UTC](https://forum.kirupa.com/t/how-do-i-utilize-sound-with-actionscript-in-flash-5/12417 "2003-01-31T01:01:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Afro\_Ninja](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Afro\_Ninja](https://forum.kirupa.com/u/Afro_Ninja)\
**Post date:** [January 31, 2003, 1:01am UTC](https://forum.kirupa.com/t/how-do-i-utilize-sound-with-actionscript-in-flash-5/12417/1 "2003-01-31T01:01:16Z")

</div>

say I have a sound

say I have a button

when the mouse rolls off the button, I want a sound to play. There is no state of the button called “Out”

so I use the actionscript command:

on (rollOut) {}

but how do I call for the sound to play?  
(someone had provided me with a sound tutorial, but it was only for flash mx)

---

<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:** [January 31, 2003, 1:08am UTC](https://forum.kirupa.com/t/how-do-i-utilize-sound-with-actionscript-in-flash-5/12417/2 "2003-01-31T01:08:09Z")

</div>

[http://www.flashkit.com/tutorials/Audio/Flash\_MX-Kenny\_Be-824/](http://www.flashkit.com/tutorials/Audio/Flash_MX-Kenny_Be-824/)

Sound tutorial. best I have ever seen. Should answer any questions…

---

<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:** [January 31, 2003, 2:02am UTC](https://forum.kirupa.com/t/how-do-i-utilize-sound-with-actionscript-in-flash-5/12417/3 "2003-01-31T02:02:26Z")

</div>

That tut is for MX. some stuff may work for flash 5, but I don’t want to mess up something trying to figure it out.

Thanks for the link though

the thing is, the first part of that tut tells you to export sounds to actionscript. That option is not available in flash 5 from the linkage box.

that I know of.

---

<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:** [January 31, 2003, 3:40am UTC](https://forum.kirupa.com/t/how-do-i-utilize-sound-with-actionscript-in-flash-5/12417/4 "2003-01-31T03:40:47Z")

</div>

lol, I should probly read the full title… 🙂 sorry… not sure about Flash 5. Only been workin in MX for the last 5 months.
