ContextMenuItem.caption
Availability
Flash Player 7.
Usage
menuItem_cmi.caption:String
Description
Property; a string that specifies the menu item caption (text) displayed in the context menu.
Example
The following example displays the caption for the selected menu item (Pause Game) in the
Output panel:
var my_cm:ContextMenu = new ContextMenu();
var menuItem_cmi:ContextMenuItem = new ContextMenuItem("Pause Game", onPause);
my_cm.customItems.push(menuItem_cmi);
function onPause(obj, menuItem) {
trace("You chose: " + menuItem.caption);
}
this.menu = my_cm;
ContextMenuItem.caption
223
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?