Toolobj.setpi() – Adobe Extending Flash Professional CS5 User Manual
Page 524
502
EXTENDING FLASH PROFESSIONAL
ToolObj object
Last updated 5/2/2011
variable="style" list="polygon,star" defaultValue="0" type="Strings"/> variable="nsides" min="3" max="32" defaultValue="5" type="Number" /> variable="pointParam" min="0" max="1" defaultValue=".5" type="Double" /> Example theTool = fl.tools.activeTool; theTool.setOptionsFile("PolyStar.xml"); toolObj.setPI() Availability Usage toolObj.setPI(pi) Parameters pi A string that specifies the Property inspector to invoke for this tool. Returns Description "shape" (the default), "text" , and "movie" .
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 “
Flash MX 2004.
Nothing.
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