![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 7.
my_cm
.hideBuiltInItems()
None.
Nothing.
Method; hides all built-in menu items (except Settings) in the specified ContextMenu object. If the Flash Debug Player is running, the Debugging menu item shows, although it is dimmed for SWF files that don't have remote debugging enabled.
This method hides only menu items that appear in the standard context menu; it does not affect items that appear in the edit or error menus. For more information about the different menu types, see the ContextMenu class entry.
This method works by setting all the Boolean members of my_cm
.builtInItems
to false
. You can selectively make a built-in item visible by setting its corresponding member in my_cm
.builtInItems
to true
(as demonstrated in the following example).
The following example creates a new ContextMenu object named my_cm
whose built-in menu items are hidden, except for Print. The menu object is attached to the root Timeline.
my_cm = new ContextMenu(); my_cm.hideBuiltInItems(); my_cm.builtInItems.print = true; _root.menu = my_cm;
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |