MovieClip.menu
Availability
Flash Player 7.
Usage
my_mc.menu = contextMenu
Parameters
contextMenu
Description
Property; associates the specified ContextMenu object with the movie clip
ContextMenu class lets you modify the context menu that appears when the user right-clicks
(Windows) or Control-clicks (Macintosh) in Flash Player.
Example
The following example assigns the ContextMenu object
The ContextMenu object contains a custom menu item labeled "Print..." that has an associated
callback handler named
var menu_cm = new ContextMenu();
menu_cm.customItems.push(new ContextMenuItem("Print...", doPrint));
function doPrint(menu, obj) {
// "Print" code here
}
content_mc.menu = menu_cm;
See also
Button.menu,
ContextMenu class
MovieClip.moveTo()
Availability
Flash Player 6.
Usage
my_mc.moveTo(x, y)
Parameters
An integer indicating the horizontal position relative to the registration point of the parent
x
movie clip.
An integer indicating the vertical position relative to the registration point of the parent
y
movie clip.
Returns
Nothing.
516
Chapter 12: ActionScript Dictionary
A ContextMenu object.
.
doPrint()
,
ContextMenuItem class
my_mc
to the movie clip
menu_cm
,
TextField.menu
. The
.
content_mc
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers