MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 506

Extending flash
Table of Contents

Advertisement

Description
Method; specifies which Property inspector should be used when the tool is activated. This
method is used only when you create extensible tools. Acceptable values are
(the
"shape"
default),
, and
.
"text"
"movie"
Example
The following example specifies that the shape Property inspector should be used when the
tool is activated. This code is taken from the sample PolyStar.jsfl file (see
"Sample PolyStar
tool" on page
20):
theTool = fl.tools.activeTool;
theTool.setPI( "shape" );
toolObj.setToolName()
Availability
Flash MX 2004.
Usage
toolObj.setToolName( name )
Parameters
A string that specifies the name of the tool.
name
Returns
Nothing.
Description
Method; assigns a name to the tool for the configuration of the Tools panel. This method is
used only when you create extensible tools. The name is used only by the XML layout file that
Flash reads to construct the Tools panel. The name does not appear in the Flash user interface.
Example
The following example assigns the name "polystar" to the tool named
. This code is
theTool
taken from the sample PolyStar.jsfl file (see
"Sample PolyStar tool" on page
20):
theTool = fl.tools.activeTool;
theTool.setToolName("polystar");
506
Objects

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents