Confirm() – Adobe Extending Flash Professional CS5 User Manual
Page 38
16
EXTENDING FLASH PROFESSIONAL
Top-Level Functions and Methods
Last updated 5/2/2011
Usage
function configureTool() {
// statements
}
Parameters
None.
Returns
Nothing.
Description
Function; called when Flash opens and the extensible tool is loaded into the Tools panel. Use this function to set any
information Flash needs to know about the tool.
Example
The following examples show two possible implementations of this function:
function configureTool() {
theTool = fl.tools.activeTool;
theTool.setToolName("myTool");
theTool.setIcon("myTool.png");
theTool.setMenuString("My Tool's menu string");
theTool.setToolTip("my tool's tool tip");
theTool.setOptionsFile( "mtTool.xml" );
}
function configureTool() {
theTool = fl.tools.activeTool;
theTool.setToolName("ellipse");
theTool.setIcon("Ellipse.png");
theTool.setMenuString("Ellipse");
theTool.setToolTip("Ellipse");
theTool.showTransformHandles( true );
}
confirm()
Availability
Flash 8.
Usage
confirm ( strAlert )
Parameters
strAlert
A string that specifies the message you want to display in the Alert dialog box.
Returns
A Boolean value:
true
if the user clicks OK;
false
if the user clicks Cancel.