# Roll Out from a Movie Clip Button

**URL:** https://forum.kirupa.com/t/roll-out-from-a-movie-clip-button/273672
**Category:** flash
**Created:** [October 18, 2008, 5:58pm UTC](https://forum.kirupa.com/t/roll-out-from-a-movie-clip-button/273672 "2008-10-18T17:58:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kitster79](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@kitster79](https://forum.kirupa.com/u/kitster79)
#### Post date: [October 18, 2008, 5:58pm UTC](https://forum.kirupa.com/t/roll-out-from-a-movie-clip-button/273672/1 "2008-10-18T17:58:46Z")

</div>

Hi,

I have a swf file which contains a movie clip button. The problem I have is that because the button covers the entire surface area of the stage size, there is no where for the mouse to roll off. Here is the code I am using…

Any suggestions?

btn.onRollOver = over;  
btn.onRollOut = out;  
btn.onRelease = goBtn;

function over():Void {  
this.over = true;  
this.play();  
}  
function out():Void {  
this.over = false;  
this.play();  
}  
function goBtn() {  
container.loadMovie(“ten31Ryan.swf”);  
}
