mouseEnabled property

bool mouseEnabled
getter/setter pair

Specifies whether this object receives mouse, or other user input, messages.

The default value is true, which means that by default any InteractiveObject instance that is on the display list receives mouse events or other user input events. If mouseEnabled is set to false, the instance does not receive any mouse events (or other user input events like keyboard events). Any children of this instance on the display list are not affected. To change the mouseEnabled behavior for all children of an object on the display list, use DisplayObjectContainer.mouseChildren.

No event is dispatched by setting this property.

Implementation

bool mouseEnabled = true;