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.
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...