Button.menu
Availability
Flash Player 7.
Usage
my_button.menu = contextMenu
Parameters
contextMenu
Description
Property; associates the ContextMenu object
The 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 a ContextMenu object to a Button object named
ContextMenu object contains a single menu item (labeled "Save...") with an associated callback
handler function named
var menu_cm = new ContextMenu();
menu_cm.customItems.push(new ContextMenuItem("Save...", doSave));
function doSave(menu, obj) {
// "Save" code here
}
save_btn.menu = menu_cm;
See also
ContextMenu
class,
Button._name
Availability
Flash Player 6.
Usage
.
my_btn
_name
Description
Property; instance name of the button specified by
A ContextMenu object.
(not shown).
doSave
ContextMenuItem
with the button object
contextMenu
class, MovieClip.menu,
.
my_btn
my_button
save_btn
TextField.menu
Button._name
.
. The
297
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?