toolObj.setIcon()
Availability
Flash MX 2004.
Usage
toolObj.setIcon( file )
Parameters
A string that specifies the name of the PNG file to use as the icon. The PNG file must
file
be placed in the same folder as the JSFL file.
Returns
Nothing.
Description
Method; identifies a PNG file to use as a tool icon in the Tools panel. This method is used
only when you create extensible tools.
Example
The following example specifies that the image in the PolyStar.png file should be used as the
icon for the tool named
. This code is taken from the sample PolyStar.jsfl file (see
PolyStar
"Sample PolyStar tool" on page
20):
theTool = fl.tools.activeTool;
theTool.setIcon("PolyStar.png");
toolObj.setMenuString()
Availability
Flash MX 2004.
Usage
toolObj.setMenuString( menuStr )
Parameters
A string that specifies the name that appears in the pop-up menu as the name for
menuStr
the tool.
Returns
Nothing.
ToolObj object
503
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers