MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 502

Extending flash
Table of Contents

Advertisement

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
value of -1 means that Flash will not try find an icon for the tool.
iconID
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
variable:
toolIconID
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
method of a tool's JavaScript file will show that
mouseDown()
tool's position in the Tools panel as an integer in the Output panel:
myToolPos = fl.tools.activeTool.position;
fl.trace(myToolPos);
502
Objects

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents