# RollOver & RollOut problem

**URL:** <https://forum.kirupa.com/t/rollover-rollout-problem/251334>\
**Category:** flash\
**Created:** [February 7, 2008, 2:54pm UTC](https://forum.kirupa.com/t/rollover-rollout-problem/251334 "2008-02-07T14:54:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lopetzi](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@lopetzi](https://forum.kirupa.com/u/lopetzi)\
**Post date:** [February 7, 2008, 2:54pm UTC](https://forum.kirupa.com/t/rollover-rollout-problem/251334/1 "2008-02-07T14:54:52Z")

</div>

I have a movieclip that on rollover “rises up” and another movieclip starts playing and “comes from under him”… On roll out both movieclips go back. What I want is if i rollover the second movieclip both of them to stop… and on rollout to continue…  
This is the code for the first movieclip:

```auto

stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
_root.rollout1.prevFrame(); // This is the second movieclip
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}

```

Please help ! 🙂
