Flash CS3 Documentation |
|||
| Extending Flash > Objects > ToolObj object > toolObj.setToolName() | |||
Flash MX 2004.
toolObj.setToolName(name)
name A string that specifies the name of the tool.
Nothing.
Method; assigns a name to the tool for the configuration of the Tools panel. This method is used only when you create extensible tools. The name is used only by the XML layout file that Flash reads to construct the Tools panel. The name does not appear in the Flash user interface.
The following example assigns the name "polystar" to the tool named theTool. This code is taken from the sample PolyStar.jsfl file (see Sample PolyStar tool):
theTool = fl.tools.activeTool;
theTool.setToolName("polystar");
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/00004564.html