ContextMenuItem.enabled

Availability

Flash Player 7.

Usage

menuItem_cmi.enabled

Description

Property; a Boolean value that indicates whether the specified menu item is enabled or disabled. By default, this property is true.

Example

The following example creates a new context menu item and then disables that menu item.

var saveMenuItem = new ContextMenuItem("Save...", doSave);
saveMenuItem.enabled = false;