ContextMenu.builtInItems

Availability

Flash Player 7.

Usage

myMenu.builtInItems

Parameters

myMenu A instance of the ContextMenu object.

Returns

An object.

Description

Object; has the following Boolean properties: save, zoom, quality, play, loop, rewind, forward_back, print, and about. Setting these variables to false removes the corresponding menu items from the specified ContextMenu object. These properties are enumerable and are set to true by default. They are only available for the standard menu items.

Only standard menu items available Not available for edit menus.

Example

In this example, the built-in Quality and Print menu items are disabled for the ContextMenu object menu_cm, which is attached to the movie's root Timeline.

var menu_cm = new ContextMenu ();
menu_cm.builtInItems.quality=false;
menu_cm.builtInItems.print=false;
_root.menu = menu_cm;

In the next example, a for..in loop enumerates through all names and values of the built-in menu items of the ContextMenu object, menu_cm.

menu_cm = new ContextMenu();
for(eachProp in menu_cm.builtInItems) {
	var propName = eachProp;
	var propValue = menu_cm.builtInItems[propName];
	trace(propName + ": " + propValue;
}