# Action Script Button | In and Out

**URL:** <https://forum.kirupa.com/t/action-script-button-in-and-out/211444>\
**Category:** flash\
**Created:** [January 1, 2007, 12:40pm UTC](https://forum.kirupa.com/t/action-script-button-in-and-out/211444 "2007-01-01T12:40:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stantz](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@stantz](https://forum.kirupa.com/u/stantz)\
**Post date:** [January 1, 2007, 12:40pm UTC](https://forum.kirupa.com/t/action-script-button-in-and-out/211444/1 "2007-01-01T12:40:12Z")

</div>

Hello.

Hope you can help. I have a button that has a controller in order to make it interactive as the user rolls over and out. The button is actually a movie clip, containing a video that simply has a build in and out effect which is triggered by the following:

this.music\_bk.onRollOver = function() {  
music\_bk.gotoAndPlay("\_over");  
}

this.music\_bk.onRollOut = function() {  
music\_bk.gotoAndPlay("\_out");  
}
