Extending Flash |
|
|
|
| Objects > flash object (fl) > fl.selectTool() | |||
Flash CS3 Professional.
fl.selectTool(toolName)
toolName A string that specifies the name of the tool to select. See "Description" below for information on acceptable values for this parameter.
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:
boot drive\Documents and Settings\user\Local Settings\Application Data\Adobe\ Flash CS3\language\Configuration\Tools\toolConfig.xml
Macintosh HD/Users/userName/Library/Application Support/Adobe/Flash CS3/language/Configuration/Tools/toolConfig.xml
The following example selects the Pen tool.
fl.selectTool("pen");
|
|
|
|