# Mc.onRollOut

**URL:** <https://forum.kirupa.com/t/mc-onrollout/113580>\
**Category:** Uncategorized\
**Created:** [June 19, 2004, 4:04pm UTC](https://forum.kirupa.com/t/mc-onrollout/113580 "2004-06-19T16:04:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakke](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@jakke](https://forum.kirupa.com/u/jakke)\
**Post date:** [June 19, 2004, 4:04pm UTC](https://forum.kirupa.com/t/mc-onrollout/113580/1 "2004-06-19T16:04:18Z")

</div>

I’ve a new problem…  
I have a movieclip that shows an animation onRollOver and an animation on RollOut but onRelease the animation enlarge itselfs but now when I’ll roll out when the animation isn’t open (so i didn’t release) the animation plays the animation for the minimizing of the animation.

Here’s my code (I know its a bit amateuristic but I’m not a programmer 😏 )

sEt = the name of the mc  
oPEN = the label in the mc to enlarge  
cLOSE = the label to minimize the mc  
and oUT = the label to rollOut when the mc isn’t maximised

```auto
if(sET = oPEN) {
	sET.onRollOut = function() {
		this.gotoAndPlay('cLOSE');
	} 
} else {
	sET.onRollOut = function() {	
		this.gotoAndPlay('oUT');
	}
}

```

I hope sombody can fix this 🙂

Jakke
