# Movie Clip Button Sound over states

**URL:** <https://forum.kirupa.com/t/movie-clip-button-sound-over-states/189515>\
**Category:** Uncategorized\
**Created:** [June 3, 2006, 6:26am UTC](https://forum.kirupa.com/t/movie-clip-button-sound-over-states/189515 "2006-06-03T06:26:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fenomnon64](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@fenomnon64](https://forum.kirupa.com/u/fenomnon64)\
**Post date:** [June 3, 2006, 6:26am UTC](https://forum.kirupa.com/t/movie-clip-button-sound-over-states/189515/1 "2006-06-03T06:26:35Z")

</div>

Hey wutsup guys,

OK, I did a search through the forum and thought I found what I wanted, but in the end couldn’t get it to work, so basically all I need is to trigger a sound when the mouse cursor is over the “over” / “out” state. Since I have animations to the buttons, I already have this existing script working fine, just need that extra line of code to add sound to the certain state, but I couldn’t think of it off the top of my head:

* * *

this.button\_mc.onRollOver = function(){  
button\_mc.gotoAndPlay("\_over");  
}

this.button\_mc.onRollOut = function(){  
button\_mc.gotoAndPlay("\_out");  
}

this.button\_mc.onRelease = function() {  
button\_mc.getURL(“[http://www.chriscerros.com](http://www.chriscerros.com)”);  
}

* * *

Thanks doods.
