# Button RollOver/RollOut Effects

**URL:** <https://forum.kirupa.com/t/button-rollover-rollout-effects/212091>\
**Category:** flash\
**Created:** [January 8, 2007, 3:04pm UTC](https://forum.kirupa.com/t/button-rollover-rollout-effects/212091 "2007-01-08T15:04:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kultivate](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@Kultivate](https://forum.kirupa.com/u/Kultivate)\
**Post date:** [January 8, 2007, 3:04pm UTC](https://forum.kirupa.com/t/button-rollover-rollout-effects/212091/1 "2007-01-08T15:04:31Z")

</div>

Hi in my MC i have the following code

```auto

stop(); 
                                             
this.onEnterFrame = function(){
    if(rewind == true){   
        prevFrame();       
    }
}

this.onRollOver = function(){
    rewind = false; 
    play();    
}

this.onRollOut = function(){
    rewind = true;    

this.onRelease = function(){
    getURL("http://www.kirupa.com","_blank");

}

```

is there any possible way to do a onRelease function outside the MC?  
ex.

```auto
gotoAndPlay("scene2", frame3);

```
