Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > ContextMenu > builtInItems (ContextMenu.builtInItems property) | |||
public builtInItems : Object
An object that has the following Boolean properties: 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.
Availability: ActionScript 1.0; Flash Player 7
In this example, the built-in Quality and Print menu items are disabled for the ContextMenu object my_cm, which is attached to the current Timeline of the SWF file.
var my_cm:ContextMenu = new ContextMenu (); my_cm.builtInItems.quality=false; my_cm.builtInItems.print=false; this.menu = my_cm;
Note: You cannot disable the Settings or About menu items from the context menu.
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.
var my_cm:ContextMenu = new ContextMenu();
for(eachProp in my_cm.builtInItems) {
var propName = eachProp;
var propValue = my_cm.builtInItems[propName];
trace(propName + ": " + propValue);
}
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001549.html