# onRelease \> swap function?

**URL:** https://forum.kirupa.com/t/onrelease-swap-function/249109
**Category:** flash
**Created:** [January 15, 2008, 3:25pm UTC](https://forum.kirupa.com/t/onrelease-swap-function/249109 "2008-01-15T15:25:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)
#### Post date: [January 15, 2008, 3:25pm UTC](https://forum.kirupa.com/t/onrelease-swap-function/249109/1 "2008-01-15T15:25:55Z")

</div>

Hello,  
I have a rollOver / rollOut state on a MC. Is there an easy way to stop its rollOut state after it has been ‘released’?

```auto
myMC.onRollOver = function(){ plonk;}
myMc.onRollOut = function(){ plink;)
myMc.onRelease = function(){ 
myMc.disable.onRollOut(); //???
}

```

Any ideas?  
Thanks!!
