502
Objects
toolObj.iconID
Availability
Flash MX 2004.
Usage
toolObj.iconID
Description
Read-only property; an integer with a value of -1. This property is used only when you create
extensible tools. An
iconID
value of -1 means that Flash will not try find an icon for the tool.
Instead, the script for the tool should specify the icon to display in the Tools panel; see
toolObj.setIcon()
.
Example
The following example assigns a value of -1 (the icon ID of the current tool) to the
toolIconID
variable:
var toolIconID = fl.tools.activeTool.iconID
toolObj.position
Availability
Flash MX 2004.
Usage
toolObj.position
Description
Read-only property; an integer that specifies the position of the tool in the Tools panel. This
property is used only when you create extensible tools.
Example
The following commands in the
mouseDown()
method of a tool’s JavaScript file will show that
tool’s position in the Tools panel as an integer in the Output panel:
myToolPos = fl.tools.activeTool.position;
fl.trace(myToolPos);
Содержание FLASH 8-EXTENDING FLASH
Страница 1: ...Extending Flash...
Страница 38: ...38 Top Level Functions and Methods...
Страница 532: ...532 Objects...
Страница 554: ...554 C Level Extensibility...