Detect mouse click within another clipevent

Hello,

I’m using the following script on a movie clip to produce an animated drop down menu:

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

This works such that when the mouse is within the boundaries of the movie clip, the menu activates forward and when the mouse leaves the boundaries, the menu activates back to initial state. I’m wondering how to amend this code so that a mouseclick within the movie clip will produce the same effect as leaving the boundaries of the movie.

Example:
movie clip is a menu dropdown…

  • user highlights a menu item button within drop down
  • user clicks on menu item
  • drop down menu scrolls back up even though mouse is still within boundaries

Link to example:
http://www.davegk.com/dropdownmenu.html
source:
http://www.davegk.com/dropdownmenu.fla

Thanks!
David