beautypg.com

Toolobj.iconid, Toolobj.position – Adobe Extending Flash Professional CS5 User Manual

Page 521

background image

499

EXTENDING FLASH PROFESSIONAL

ToolObj object

Last updated 5/2/2011

bEnable

A Boolean value that determines whether to enable (

true

) or disable (

false

) the control.

Returns
Nothing.

Description
Method; enables or disables the specified control in a Property inspector. Used only when creating extensible tools.

Example
The following command in an extensible tool’s JavaScript file sets Flash to not show the stroke options in the Property
inspector for that tool:

theTool.enablePIControl("stroke",false);

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.

This manual is related to the following products: