Slide out menu

I am working on making a menu, which is essentially a box with buttons in it, that slides out when the users mouse hovers over a button. Now, I could make an easy one that just goes to a frame and plays if the mouse is over, then mouse off it plays the fames to slide back in. But if I move the mouse off the button before it is done sliding the menu our flash doesn’t know so now the menu stays out. So I was wondering if anyone knows of a good tutorial for this type of menu that is somewhat smart, so that if the menu is half way out and you let your mouse off the button it will turn aroud and start to go back up? Or maybe someone just has some actionscript you can paste in here. Hope I explained well enough. Thanks…