Flash CS3 Documentation |
|||
| Extending Flash > Objects > ToolObj object | |||
Flash MX 2004.
A ToolObj object represents an individual tool in the Tools panel. To access a ToolObj object, use properties of the Tools object: either the tools.toolObjs array or tools.activeTool.
The following methods are available for the ToolObj object.
|
NOTE |
|
The following methods are used only when creating extensible tools. |
|
Method |
Description |
|---|---|
|
Enables or disables the specified control in a Property inspector. Used only when creating extensible tools. |
|
|
Identifies a PNG file to use as a tool icon in the Flash Tools panel. |
|
|
Sets the string that appears in the pop-up menu as the name for the tool. |
|
|
Associates an XML file with the tool. |
|
|
Sets a particular Property inspector to be used when the tool is activated. |
|
|
Assigns a name to the tool for the configuration of the Tools panel. |
|
|
Sets the tooltip that appears when the mouse is held over the tool icon. |
|
|
Shows or hides a control in the Property inspector. |
|
|
Called in the configureTool() method of an extensible tool's JavaScript file to indicate that the free transform handles should appear when the tool is active. |
The following properties are available for the ToolObj object:
|
Property |
Description |
|---|---|
|
An integer that specifies the depth of the tool in the pop-up menu in the Tools panel. |
|
|
An integer that specifies the resource ID of the tool. |
|
|
Read-only; an integer specifying the position of the tool in the Tools panel. |
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/00004555.html