# ContextMenuItem.caption

#### Availability

Flash Player 7.

#### Usage

    menuItem_cmi.caption

#### Description

Property; a string that specifies the menu item caption (text) displayed in the context menu.

#### Example

This example displays the caption for the selected menu item (Pause Game) in the Output window.

    menu_cm = new ContextMenu();
    menuItem_cmi = new ContextMenuItem("Pause Game", onPause);
    menu_cm.customItems.
    function onPause(obj, menuItem) {
    	trace("You chose: " + menuItem.caption);
    }