For example, the PolyStar.xml file specifies three options associated with the Polygon tool:
<properties>
<property name="Style"
variable="style"
list="polygon,star"
defaultValue="0"
type="Strings"
<property name="Number of Sides"
variable="nsides"
min="3"
max="32"
defaultValue="5"
type="Number"
<property name="Star point size"
variable="pointParam"
min="0"
max="1"
defaultValue=".5"
type="Double"
</properties>
Example
The following example specifies that the file named PolyStar.xml is associated with the
currently active tool. This code is taken from the sample PolyStar.jsfl file (see
PolyStar tool" on page
theTool = fl.tools.activeTool;
theTool.setOptionsFile( "PolyStar.xml" );
toolObj.setPI()
Availability
Flash MX 2004.
Usage
toolObj.setPI( pi )
Parameters
A string that specifies the Property inspector to invoke for this tool.
pi
Returns
Nothing.
/>
/>
/>
20):
"Sample
ToolObj object
505
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers