When any tool other than the text tool is active, the text fields type should be dynamic, the text not selectable. Otherwise any time users try to paint or draw shapes, theyll end up selecting text.
Only when the text tool is active should the text fields type switch to input, so that the user can enter new text or edit existing text:
if(_root.textexists==true&&_root.isactive!="texttool"){
_root.drawing.textname.type="dynamic";
_root.drawing.textname.selectable=false;
}
if(_root.textexists==true&&_root.isactive=="texttool"&&_root.base.helptabs._visible==false){
_root.drawing.textname.type="input";
_root.drawing.textname.selectable=true;
}
The first statement checks to see if text exists and if the text tool is not active. If both are true, then the text field remains dynamic and its selectable property is false. The second statement checks to see if text exist and if the text tool is active. If both are true then the text fields type becomes input and text is now selectable, so users can edit.


