# Rollover questions

**URL:** https://forum.kirupa.com/t/rollover-questions/154278
**Category:** Uncategorized
**Created:** [July 8, 2005, 8:32am UTC](https://forum.kirupa.com/t/rollover-questions/154278 "2005-07-08T08:32:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Man\_Lee](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@Man\_Lee](https://forum.kirupa.com/u/Man_Lee)
#### Post date: [July 8, 2005, 8:32am UTC](https://forum.kirupa.com/t/rollover-questions/154278/1 "2005-07-08T08:32:10Z")

</div>

I am using this code for a rollover. I know it is not the best way.

onClipEvent(enterFrame){  
if(this.hitTest(\_root.\_xmouse,\_root.\_ymouse,true)){  
this.nextFrame();  
}else{  
this.prevFrame();  
}  
}

Here is my problem. Inside the movie clip is an animation with buttons to trigger to go to a different frame. This code bypasses my stop(); actions. Is there a way to make it so it stops on frames that have stop();?
