User Guide
prompt() 35
Returns
Nothing.
Description
Function; called when the extensible tool is active and the user changes its options in the
Property inspector. You can use the
tools.activeTool property to query the current values
of the options (see
tools.activeTool).
Example
The following example displays a message in the Output panel when the extensible tool is
active and the user changes its options in the Property inspector.
function notifySettingsChanged() {
var theTool = fl.tools.activeTool;
var newValue = theTool.myProp;
}
prompt()
Availability
Flash MX 2004.
Usage
prompt( promptMsg, [ text ] )
Parameters
promptMsg A string to display in the Prompt dialog box (limited to 256 characters on
Macintosh OS X).
text An optional string to display as a default value for the text field.
Returns
The string the user typed if the user clicks OK; null if the user clicks Cancel.
Description
Method; displays a prompt and optional text in a modal Alert dialog box, along with OK and
Cancel buttons.