# Mouse control - menu

**URL:** <https://forum.kirupa.com/t/mouse-control-menu/106612>\
**Category:** Uncategorized\
**Created:** [April 7, 2004, 10:28am UTC](https://forum.kirupa.com/t/mouse-control-menu/106612 "2004-04-07T10:28:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kafir](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@kafir](https://forum.kirupa.com/u/kafir)\
**Post date:** [April 7, 2004, 10:28am UTC](https://forum.kirupa.com/t/mouse-control-menu/106612/1 "2004-04-07T10:28:58Z")

</div>

I need the mouse movement (up and down) to control the expansion / collapsing of a menu.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 7, 2004, 10:33am UTC](https://forum.kirupa.com/t/mouse-control-menu/106612/2 "2004-04-07T10:33:54Z")

</div>

You might need to explain a bit more than that mate!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 7, 2004, 10:44am UTC](https://forum.kirupa.com/t/mouse-control-menu/106612/3 "2004-04-07T10:44:41Z")

</div>

Sorry. I have a horizontal menu system that expands and collaps whem the mouse touches the top area of the menu. What i want is the menu to slowly expand when the mouse moves closer to the menu. Likewise the menu should collaps when the mouse moves away from the menu.

Just like [http://www.gucci.com/uk/index2.html](http://www.gucci.com/uk/index2.html)  
When you move the mouse slowly towards the menu it begins to expand. When you move away it slowly collapses.

Hope you can help…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 7, 2004, 11:30am UTC](https://forum.kirupa.com/t/mouse-control-menu/106612/4 "2004-04-07T11:30:12Z")

</div>

you would need to have an ‘onEnterFrame’ that checks the \_y value/location of the mouse. Depending on this value, you can then adjust how low the menu should drop…
