# MovieClip Button RollOver Sound?

**URL:** <https://forum.kirupa.com/t/movieclip-button-rollover-sound/179799>\
**Category:** flash\
**Created:** [February 23, 2006, 2:10am UTC](https://forum.kirupa.com/t/movieclip-button-rollover-sound/179799 "2006-02-23T02:10:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jennings112](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jennings112](https://forum.kirupa.com/u/jennings112)\
**Post date:** [February 23, 2006, 2:10am UTC](https://forum.kirupa.com/t/movieclip-button-rollover-sound/179799/1 "2006-02-23T02:10:26Z")

</div>

Hey,

I have created a MC button & i was wondering if anyone could tell me how to attach sound to the rollOver event? Current AS is;  
(AS in [COLOR=Red]red[/COLOR] is where i need help, if anyone could show me the AS for rollOver sound i would b very thankful)  
this.onEnterFrame = function(){  
[COLOR=Silver]  
if(rewind == true){

prevFrame();

}

}  
[/COLOR][COLOR=Red][COLOR=Silver] [/COLOR]  
this.onRollOver = function(){

[COLOR=Silver]rewind = false;  
play();  
[COLOR=Red]}[/COLOR][/COLOR][/COLOR][COLOR=Silver]

this.onRollOut = function(){

rewind = true;

}[/COLOR]
