MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 336

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Flash Player has three types of context menus: the standard menu (which appears when you right-
click in Flash Player), the edit menu (which appears when you right-click over a selectable or
editable text field), and an error menu (which appears when a SWF file has failed to load into
Flash Player.) Only the standard and edit menus can be modified with the ContextMenu class.
Custom menu items always appear at the top of the Flash Player context menu, above any visible
built-in menu items; a separator bar distinguishes built-in and custom menu items. A context
menu can contain no more than 15 custom menu items.
You must use the constructor
its methods.
Method summary for the ContextMenu class
Method
ContextMenu.copy()
ContextMenu.hideBuiltInItems()
Property summary for the ContextMenu class
Property
ContextMenu.builtInItems
ContextMenu.customItems
Event handler summary for the ContextMenu class
Property
ContextMenu.onSelect
Constructor for the ContextMenu class
Availability
Flash Player 7.
Usage
new ContextMenu ([callBackFunction])
Parameters
callBackFunction
Control-clicks, before the menu is displayed. This parameter is optional.
Returns
Nothing.
336
Chapter 12: ActionScript Dictionary
new ContextMenu()
Description
Returns a copy of the specified ContextMenu object.
Hides most built-in items in the Flash Player context menu.
Description
An object whose members correspond to built-in context
menu items.
An array, undefined by default, that contains
ContextMenuItem objects.
Description
Invoked before the menu is displayed.
A reference to a function that is called when the user right-clicks or
to create a ContextMenu object before calling

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Table of Contents