EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 336

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
336 Chapter 12: ActionScript Dictionary
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
new ContextMenu() to create a ContextMenu object before calling
its methods.
Method summary for the ContextMenu class
Property summary for the ContextMenu class
Event handler summary for the ContextMenu class
Constructor for the ContextMenu class
Availability
Flash Player 7.
Usage
new ContextMenu ([callBackFunction])
Parameters
callBackFunction
A reference to a function that is called when the user right-clicks or
Control-clicks, before the menu is displayed. This parameter is optional.
Returns
Nothing.
Method Description
ContextMenu.copy() Returns a copy of the specified ContextMenu object.
ContextMenu.hideBuiltInItems() Hides most built-in items in the Flash Player context menu.
Property Description
ContextMenu.builtInItems An object whose members correspond to built-in context
menu items.
ContextMenu.customItems An array, undefined by default, that contains
ContextMenuItem objects.
Property Description
ContextMenu.onSelect Invoked before the menu is displayed.

Table of Contents

Related product manuals