User Guide

500 Objects
Property summary for the ToolObj object
The following property is available for the ToolObj object:
toolObj.depth
Availability
Flash MX 2004.
Usage
toolObj.depth
Description
Read-only property; an integer that specifies the depth of the tool in the pop-up menu in the
Tools panel. This property is used only when creating extensible tools.
Example
The following example specifies that the tool has a depth of 1, which means one level under a
tool in the Tools panel.
fl.tools.activeTool.depth = 1;
toolObj.enablePIControl()
Availability
Flash MX 2004.
Usage
toolObj.enablePIControl( control, bEnable )
Property Description
toolObj.depth An integer that specifies the depth of the tool in the pop-up
menu in the Tools panel.
toolObj.iconID An integer that specifies the resource ID of the tool.
toolObj.position Read-only; an integer specifying the position of the tool in
the Tools panel.