
Flash Player 7 + TheSpringBox 1.1.2
Widget.onMenuCommand = function(label:String, data:String) : Void {
// your statements here
}
label - The label of the right-click menu item clicked.
data - The data of the right-click menu item clicked.
Nothing.
Event handler; an event handling function called when an item in the right-click menu is clicked.
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);
};
Widget.addMenuItem