Flash JSFL

Does anyone know if it is possible to manually set the active tool within the flash authoring enviroment using JSFL?
Trying to be more clear: is it possible to set the active tool, for example, inside the onMouseUp method of an extensible tool?