Fl.setactivewindow() – Adobe Extending Flash Professional CS5 User Manual
Page 279

257
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
Usage
fl.selectTool(toolName)
Parameters
toolName
A string that specifies the name of the tool to select. See “Description” below for information on acceptable
values for this parameter.
Description
Method; selects the specified tool in the Tools panel. The acceptable default values for toolName are
"arrow"
,
"bezierSelect"
,
"freeXform"
,
"fillXform"
,
"lasso"
,
"pen"
,
"penplus"
,
"penminus"
,
"penmodify"
,
"text"
,
"line"
,
"rect"
,
"oval"
,
"rectPrimitive"
,
"ovalPrimitive"
,
"polystar"
,
"pencil"
,
"brush"
,
"inkBottle"
,
"bucket"
,
"eyeDropper"
,
"eraser"
,
"hand"
, and
"magnifier"
.
If you or a user creates custom tools, the names of those tools can also be passed as the toolName parameter. The list
of tool names is located in the following file:
•
Windows Vista:
boot drive\Users\username\Local Settings\Application Data\Adobe\Flash
CS3\language\Configuration\Tools\toolConfig.xml
•
Windows XP:
boot drive\Documents and Settings\username\Local Settings\Application Data\Adobe\Flash
CS3\language\Configuration\Tools\toolConfig.xml
•
Mac
OS X:
Macintosh HD/Users/username/Library/Application Support/Adobe/Flash
CS3/language/Configuration/Tools/toolConfig.xml
Example
The following example selects the Pen tool.
fl.selectTool("pen");
See also
fl.setActiveWindow()
Availability
Flash MX 2004.
Usage
fl.setActiveWindow(document [, bActivateFrame])
Parameters
document
that specifies the document to select as the active window.
bActivateFrame
An optional parameter that is ignored by Flash and Fireworks and is present only for compatibility
with Dreamweaver.