# How to define an onMouseDown area?

**URL:** <https://forum.kirupa.com/t/how-to-define-an-onmousedown-area/214178>\
**Category:** flash\
**Created:** [January 26, 2007, 3:16am UTC](https://forum.kirupa.com/t/how-to-define-an-onmousedown-area/214178 "2007-01-26T03:16:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![azukizero](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@azukizero](https://forum.kirupa.com/u/azukizero)\
**Post date:** [January 26, 2007, 3:16am UTC](https://forum.kirupa.com/t/how-to-define-an-onmousedown-area/214178/1 "2007-01-26T03:16:40Z")

</div>

I’m creating an animated menu that I’d like to ‘stow away’ when the user clicks anywhere but the Menu button.

I know this involves adding a mouse listener for an onMouseDown event, but I’m not sure what or how to define this…

Is it possible to define an entire area (my site) minus a specific area (the menu button) for an onMouseDown event?

If someone would please help me with this script I would really appreciate it!
