ToolObj object
349
ToolObj object
Availability
Flash MX 2004.
Description
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
.
Method summary for the ToolObj object
The following methods are available for the ToolObj object.
Note:
The following methods are used only when creating extensible tools.
Property summary for the ToolObj object
The following property is available for the Tools object.
Method
Description
toolObj.enablePIControl()
Enables or disables the specified control in a PI . Used only when
creating extensible tools.
toolObj.setIcon()
Identifies a PNG file to use as a tool icon in the Flash Tools panel.
toolObj.setMenuString()
Sets the string that appears in the pop-up menu as the name for
the tool.
toolObj.setOptionsFile()
Associates an XML file (located in the Configuration/Tools
folder) with the tool to appear in a modal panel that is invoked by
an Options button in the Property inspector.
toolObj.setPI()
Sets a particular Property inspector to be used when the tool is
activated.
toolObj.setToolName()
Assigns a name to the tool for the configuration of the Tools
panel.
toolObj.setToolTip()
Sets the tooltip that appears when the mouse is held over the
tool icon.
toolObj.showPIControl()
Shows or hides a control in the Property inspector.
toolObj.showTransformHandles()
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.
Property
Description
toolObj.position
Read-only; an integer specifying the position of the tool in the
Tools panel.
CHAPTER 3
Objects
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...