ContextMenu.builtInItems
Availability
Flash Player 7.
Usage
my_cm.builtInItems:Object
Description
Property; an object that has the following Boolean properties:
,
rewind
forward_back
menu items from the specified ContextMenu object. These properties are enumerable and are set
to
by default.
true
Example
In this example, the built-in Quality and Print menu items are disabled for the ContextMenu
object
, which is attached to the current Timeline of the SWF file.
my_cm
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
menu items of the ContextMenu object,
var my_cm:ContextMenu = new ContextMenu();
for(eachProp in my_cm.builtInItems) {
var propName = eachProp;
var propValue = my_cm.builtInItems[propName];
trace(propName + ": " + propValue);
}
216
Chapter 2: ActionScript Language Reference
, and
. Setting these variables to
print
loop enumerates through all names and values of the built-in
for..in
my_cm
,
save
zoom
removes the corresponding
false
.
,
,
,
quality
play
loop
,
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers