Widget.onMenuCommand

Availability

Flash Player 7 + TheSpringBox 1.1.2

Usage

Widget.onMenuCommand = function(label:String, data:String) : Void {
// your statements here
}

Parameters

label - The label of the right-click menu item clicked.

data - The data of the right-click menu item clicked.

Returns

Nothing.

Description

Event handler; an event handling function called when an item in the right-click menu is clicked.

Example

In the below example, a string is sent to the Output window:

Widget.addMenuItem("Visit our Site","http://www.springwidgets.com/");
Widget.onMenuCommand = function(data,label) {
  Utilities.getURL(label);
};
    

See Also

Widget.addMenuItem