On rollover help

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

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?

you could do the reverse animation frame by frame and just instruct the button to go to the frame where the reversing begins.

sam

Play the animation in reverse? How bout something like:
gotoAndPlay(_currentframe - 1)
Not sure if it will work :-/

this might have some ideas.

http://www.kirupaforum.com/forums/showthread.php?t=11427