Animate 2020
fl.addToolInToolbar(toolName)
toolName A string that specifies the name of the tool to select. Refer fl.selectTool description for the acceptable toolName values.
boolean : Returns true if the specified tool was added successfully in the Tools Panel.
Method; Appends the specified tool in the Tools Panel from Toolbar Palette if it is not already present. If you or a user creates custom tools, the names of those tools can also be passed as the toolName parameter.
The following example selects the Oval tool.
var success = fl.addToolInToolbar("oval");