# Loop- onRollOver animation

**URL:** https://forum.kirupa.com/t/loop-onrollover-animation/298459
**Category:** flash
**Created:** [October 19, 2009, 3:01pm UTC](https://forum.kirupa.com/t/loop-onrollover-animation/298459 "2009-10-19T15:01:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dougkoh](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@dougkoh](https://forum.kirupa.com/u/dougkoh)
#### Post date: [October 19, 2009, 3:01pm UTC](https://forum.kirupa.com/t/loop-onrollover-animation/298459/1 "2009-10-19T15:01:54Z")

</div>

_I want to play and loop the Movieclip onRollOver and stop it onRollout. It’s simple. I know, but I have no clue_\*. I need help!\*\*\*\*\*

This is what I have so far on keyframe 1:\*\*

stop();

this.onRollOver = function(){  
play();  
var loop:Number = 0;

}

this.onRollOut = function(){  
gotoAndStop(1);

}

What am I missing?  
\*\*Help would be greatly appreciated! Thanks so much!

DK\*\*
