# Detect cursor over context menu

**URL:** <https://forum.kirupa.com/t/detect-cursor-over-context-menu/302936>\
**Category:** Uncategorized\
**Created:** [January 10, 2010, 8:56pm UTC](https://forum.kirupa.com/t/detect-cursor-over-context-menu/302936 "2010-01-10T20:56:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![werehunt](https://avatars.discourse-cdn.com/v4/letter/w/b782af/32.png) [@werehunt](https://forum.kirupa.com/u/werehunt)\
**Post date:** [January 10, 2010, 8:56pm UTC](https://forum.kirupa.com/t/detect-cursor-over-context-menu/302936/1 "2010-01-10T20:56:15Z")

</div>

i have a class which hides mouse cursor if not moved for certain amount of time.  
also i can pass and array of objects to the class for which i dont want to hide a cursor if mouse if over that specific objects. it uses a hit test point to find if its over any of objects.

i tried to pass a context menu, but i am getting an error:  
Property hitTestPoint not found on flash.ui.ContextMenu and there is no default value.

is there a way to pull this of?
