ContextMenu.builtInItems

Availability

Flash Player 7.

Usage

my_cm.builtInItems

Description

Property; an object that has the following Boolean properties: save, zoom, quality, play, loop, rewind, forward_back, and print. 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.

Example

In this example, the built-in Quality and Print menu items are disabled for the ContextMenu object my_cm, which is attached to the root Timeline of the SWF file.

var my_cm = new ContextMenu ();
my_cm.builtInItems.quality=false;
my_cm.builtInItems.print=false;
_root.menu = my_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, my_cm.

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