# onRollover Question

**URL:** <https://forum.kirupa.com/t/onrollover-question/247262>\
**Category:** flash\
**Created:** [December 20, 2007, 7:10am UTC](https://forum.kirupa.com/t/onrollover-question/247262 "2007-12-20T07:10:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![suicidebilly](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@suicidebilly](https://forum.kirupa.com/u/suicidebilly)\
**Post date:** [December 20, 2007, 7:10am UTC](https://forum.kirupa.com/t/onrollover-question/247262/1 "2007-12-20T07:10:20Z")

</div>

Hey There, i´ve got a “OnRollOver” Script here at Kirupa, it works great but is not as “Smooth” as i want…

I have a animation of 15 frames, when i RollOver the MC, the animation plays and when i RollOut, the animation rewinds.

I´m trying to make the animation play from frame 1 to frame 8 if you just “Mouse Over” the Movie Clip (before start to rewind), and not to rewind the movie right after “Mouse Out”, is that possible ??

Thanks for any help.

```auto

stop(); 
                                             
this.onEnterFrame = function(){
    if(rewind == true){  
        prevFrame();    
    }
}

this.onRollOver = function(){
    rewind = false;
    play();  
}

this.onRollOut = function(){
    rewind = true;   
}

this.onRelease = function(){
    getURL("http://www.kirupa.com","_blank");
}

```
