![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 7.
menuItem_cmi
.caption
Property; a string that specifies the menu item caption (text) displayed in the context menu.
This example displays the caption for the selected menu item (Pause Game) in the Output panel.
my_cm = new ContextMenu(); menuItem_cmi = new ContextMenuItem("Pause Game", onPause); my_cm.customItems. function onPause(obj, menuItem) { trace("You chose: " + menuItem.caption); }
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |