# mouseEnabled=false prevents custom ContextMenus

**URL:** <https://forum.kirupa.com/t/mouseenabled-false-prevents-custom-contextmenus/316082>\
**Category:** flash\
**Created:** [November 11, 2010, 10:26pm UTC](https://forum.kirupa.com/t/mouseenabled-false-prevents-custom-contextmenus/316082 "2010-11-11T22:26:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaedo](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Shaedo](https://forum.kirupa.com/u/Shaedo)\
**Post date:** [November 11, 2010, 10:26pm UTC](https://forum.kirupa.com/t/mouseenabled-false-prevents-custom-contextmenus/316082/1 "2010-11-11T22:26:24Z")

</div>

Setting mouseEnabled=false; prevents custom ContextMenus (the menu that comes up when you right click)

I want to do both. At the moment I am thinking I could cancel mouse events individually but that would be a pain.

Any advice ?

example of mouseEnabled=false preventing custom ContextMenus

```php
var c:ContextMenu=new ContextMenu(); /*start new context menu*/
c.hideBuiltInItems(); /*disable menu*/

var s:Sprite = new Sprite();
s.graphics.beginFill(0);
s.graphics.drawRect(0,0,100,100);
s.contextMenu=c;
addChild(s);

s.mouseEnabled=false;

```
