Flash CS3 Documentation |
|||
| Extending Flash > Objects > ToolObj object > toolObj.setIcon() | |||
Flash MX 2004.
toolObj.setIcon(file)
file A string that specifies the name of the PNG file to use as the icon. The PNG file must be placed in the same folder as the JSFL file.
Nothing.
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.
The following example specifies that the image in the PolyStar.png file should be used as the icon for the tool named PolyStar. This code is taken from the sample PolyStar.jsfl file (see Sample PolyStar tool):
theTool = fl.tools.activeTool;
theTool.setIcon("PolyStar.png");
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00004560.html