User Guide
352 Chapter 3: Objects
toolObj.setMenuString()
Availability
Flash MX 2004.
Usage
toolObj.setMenuString( menuStr )
Parameters
menuStr
A string that specifies the name that appears in the pop-up menu as the name for the
tool.
Returns
Nothing.
Description
Method; sets the string that appears in the pop-up menu as the name for the tool.
Example
The following example specifies that the tool named theTool should display the name
“Arrow Style 1” in its pop-up menu.
theTool.setMenuString("Arrow Style 1");
toolObj.setOptionsFile()
Availability
Flash MX 2004.
Usage
toolObj.setOptionsFile( xmlFile )
Parameters
xmlFile
A string that specifies the name of the XML file that has the description of the tool’s
options.
Returns
Nothing.
Description
Method; associates an XML file (located in the Configuration/Tools folder) with the tool to
appear in a modal panel that is invoked by an Options button in the Property inspector.
Example
The following example specifies that the file named myTool.xml is associated with the currently
active tool. You would usually use code like this in the
configureTool() method.
fl.tools.activeTool.setOptionsFile( "myTool.xml" );