
Flash Player 7 + TheSpringBox 1.1.2
Widget.addMenuItem(label:String[,data:String]) : Void;
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.
Nothing.
Method; adds an item to the right-click menu.
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);
};