# On rollover help

**URL:** <https://forum.kirupa.com/t/on-rollover-help/54617>\
**Category:** flash\
**Created:** [June 16, 2004, 6:51am UTC](https://forum.kirupa.com/t/on-rollover-help/54617 "2004-06-16T06:51:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cloakendagger](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@Cloakendagger](https://forum.kirupa.com/u/Cloakendagger)\
**Post date:** [June 16, 2004, 6:51am UTC](https://forum.kirupa.com/t/on-rollover-help/54617/1 "2004-06-16T06:51:18Z")

</div>

HI  
I figured this question might be better helped in this forum.  
I have a button that plays a movie clip. that movie clip is a drop down menu.  
Is there a code that I can put on the button that will allow the viewer to rollover the button activate the menu and then when they roll off the “menu” part it plays the animation in revers.  
I made it already with very messy coding and placed a demo on this site. [www.deck-medics.com/DM-2.swf](http://www.deck-medics.com/DM-2.swf)

Im thinking I need to use something like this.

[font=Courier New]onClipEvent (enterFrame) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true)) {  
gotoandplay(2);  
} else {  
gptoandplay(3);  
}  
}[/font]

What do ya think?
