# Loop- onRollOver animation

**URL:** https://forum.kirupa.com/t/loop-onrollover-animation/298468
**Category:** Uncategorized
**Created:** [October 19, 2009, 6:57pm UTC](https://forum.kirupa.com/t/loop-onrollover-animation/298468 "2009-10-19T18:57:35Z")
**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, 6:57pm UTC](https://forum.kirupa.com/t/loop-onrollover-animation/298468/1 "2009-10-19T18:57:35Z")

</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\*\*
