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
A string that specifies the message you want to display in the Alert dialog box.
strAlert
Returns
A Boolean value:
true
Description
Method; displays a string in a modal Alert dialog box, along with OK and Cancel buttons.
if the user clicks OK;
if the user clicks Cancel.
false
confirm()
27
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers