MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 342

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

Advertisement

Property summary for the ContextMenuItem class
Property
ContextMenuItem.caption
ContextMenuItem.enabled
ContextMenuItem.separatorBefore
ContextMenuItem.visible
Event handler summary for the ContextMenuItem class
Event handler
ContextMenuItem.onSelect
Constructor for the ContextMenuItem class
Availability
Flash Player 7.
Usage
new ContextMenuItem(caption, callbackFunction, [ separatorBefore, [ enabled,
[ visible ] ] ] )
Parameters
A string that specifies the text associated with the menu item.
caption
callbackFunction
separatorBefore
the menu item in the context menu. This parameter is optional; its default value is
A Boolean value that indicates whether the menu item is enabled or disabled in the
enabled
context menu. This parameter is optional; its default value is
A Boolean value that indicates whether the menu item is visible or invisible. This
visible
parameter is optional; its default value is
Returns
Nothing.
Description
Constructor; creates a new ContextMenuItem object that can be added to the
ContextMenu.customItems
Example
This example adds Start and Stop menu items, separated by a bar, to the ContextMenu object
. The
my_cm
startHandler()
stopHandler()
root Timeline.
342
Chapter 12: ActionScript Dictionary
Description
Specifies the text displayed in the menu item.
Specifies whether the menu item is enabled or disabled.
Specifies whether a separator bar should appear above the
menu item.
Specifies whether the menu item is visible or not.
Description
Invoked when the menu item is selected.
A function that you define, which is called when the menu item is selected.
A Boolean value that indicates whether a separator bar should appear above
array.
function is called when Start is selected from the context menu;
is called when Stop is selected. The ContextMenu object is applied to the
true
.
true
false
.
.

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