# rollOver Animation question

**URL:** <https://forum.kirupa.com/t/rollover-animation-question/244339>\
**Category:** flash\
**Created:** [November 16, 2007, 2:59pm UTC](https://forum.kirupa.com/t/rollover-animation-question/244339 "2007-11-16T14:59:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reblis](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@reblis](https://forum.kirupa.com/u/reblis)\
**Post date:** [November 16, 2007, 2:59pm UTC](https://forum.kirupa.com/t/rollover-animation-question/244339/1 "2007-11-16T14:59:17Z")

</div>

Right now the actions I have to animate a button are:

on (rollOver) {  
with(mc\_instance\_name)  
gotoAndPlay(2);  
}  
on (rollOut) {  
with(mc\_instance\_name)  
gotoAndPlay(11);  
}

So the movie clip is not visible and has a stop(); action on the first frame that’s why it jumps tot he second frame. very old school way of doing it.  
But sometimes if I roll over and out of the button to quick the button will not close the movie clip and leave it on the stage.

Is there a better way to do roll overs so to ensure that when you roll out of a button the movie clip will disappear?

> **[RESUME](http://www.reblis.com/)**
>
> MICHAEL SILBER  
> Contact
> 301.257.3664
> reblis@gmail.com
> Rockville, Maryland Artist / Photographer / Designer
> 
>  
> 
> My personal brand statement: Creative and efficient solutions for maximum results.
> 
> Family, food, and fitness are also a big...
