# Drop down menu woes

**URL:** https://forum.kirupa.com/t/drop-down-menu-woes/297934
**Category:** Uncategorized
**Created:** [October 10, 2009, 7:16pm UTC](https://forum.kirupa.com/t/drop-down-menu-woes/297934 "2009-10-10T19:16:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jgibz](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@jgibz](https://forum.kirupa.com/u/jgibz)
#### Post date: [October 10, 2009, 7:16pm UTC](https://forum.kirupa.com/t/drop-down-menu-woes/297934/1 "2009-10-10T19:16:16Z")

</div>

Hi everyone,

Ive got a main menu on my website with buttons. one of the buttons plays a movieclip instance where a dropdown menu appears with more buttons. The dropdown stops on a frame containing a new movieclip with this bit of script on it:

```auto

onClipEvent (enterFrame) 
{
    if (this.hitTest(_root._xmouse, _root._ymouse, true)) 
    {    
        trace("true");
    }
    else
    {
        this.play();
    }
}

```

so the idea is, the menu drops down and stops, and waits for the mouse to leave before playing the rest of the movieclip (which animates the dropdown going up and disappearing)

my problem is the when the hitTest is false the clip doesn’t play, it’s still stopped. Anyone know what I’m doing wrong?
