Widget.addMenuItem()

Availability

Flash Player 7 + TheSpringBox 1.1.2

Usage

Widget.addMenuItem(label:String[,data:String]) : Void;

Parameters

label - A String that will be the label of the right-click menu item.

data - A String that can be returned when an item is selected. This parameter is optional.

Returns

Nothing.

Description

Method; adds an item to the right-click menu.

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);
};