![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 7.
my_cm
.builtInItems
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.
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; }
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |