# Attaching & Playing a sound to a button on rollover

**URL:** <https://forum.kirupa.com/t/attaching-playing-a-sound-to-a-button-on-rollover/226687>\
**Category:** flash\
**Created:** [May 23, 2007, 4:23am UTC](https://forum.kirupa.com/t/attaching-playing-a-sound-to-a-button-on-rollover/226687 "2007-05-23T04:23:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)\
**Post date:** [May 23, 2007, 4:23am UTC](https://forum.kirupa.com/t/attaching-playing-a-sound-to-a-button-on-rollover/226687/1 "2007-05-23T04:23:47Z")

</div>

Hey all,

i can in AS 1.0 attach a sound and play it on rollover fine…

but i have absolutely no idea where to start for AS2.0 anybody got any ideas??

Pretty much i have a button when you roll over it plays a sound thats it…very simple…i also know i can do it on the keyframes but i was hoping to do it dynamically as my site is completely created using AS barely no keyframes and i do not wish to start…

Cheers in advance 😃
