# ContextMenuItem.callback

#### Availability

Flash Player 7.

#### Usage

    menuItem_cmi.callback = function (obj, menuItem) {
    	// callback handler code here
    }

#### Parameters

`menuItem_cmi` An instance of an ContexMenuItem object.

`obj` A reference to the movie clip (or Timeline), button, or selectable text field instance over which the context menu was invoked.

`menuItem` A reference to the selected ContextMenuItem object.

#### Returns

Nothing.

#### Description

Event handler; invoked when the specified menu item is selected from the Flash Player context menu. The specified callback handler is passed two parameters. The first, `obj`, is a reference to the movie clip, button, or editable text field under the mouse when the Flash Player context menu was invoked. The second parameter, `menuItem`, is a reference to the ContextMenuItem object that represents the selected menu item.

#### Example

#### See also

`ContextMenu.callback`