Flash CS3 Documentation |
|||
| Extending Flash > Objects > ToolObj object > toolObj.setPI() | |||
Flash MX 2004.
toolObj.setPI(pi)
pi A string that specifies the Property inspector to invoke for this tool.
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 "shape" (the default), "text", and "movie".
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):
theTool = fl.tools.activeTool;
theTool.setPI("shape");
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00004563.html