Contextmenu.hidebuiltinitems() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

ContextMenu.hideBuiltInItems()

Availability
Flash Player 7.
Usage
my_cm.hideBuiltInItems() : Void
Parameters
None.
Returns
Nothing.
Description
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
This method works by setting all the Boolean members of
can selectively make a built-in item visible by setting its corresponding member in
my_cm.builtInItems
Example
The following example creates a new ContextMenu object named
items are hidden, except for Print. The menu object is attached to the current Timeline.
var my_cm:ContextMenu = new ContextMenu();
my_cm.hideBuiltInItems();
my_cm.builtInItems.print = true;
this.menu = my_cm;
entry.
to
(as demonstrated in the following example).
true
my_cm.builtInItems
whose built-in menu
my_cm
ContextMenu.hideBuiltInItems()
to
. You
false
219

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Flash mx

Table of Contents