Código :
texto.text="mensaje";
var escribiendo = new Text Format();
escribiendo.color="0x000000";
var noseleccionado = new TextFormat();
noseleccionado.color = "0x666666";
texto.onSetFocus=function(){
texto.setTextFormat(escribiendo);
//Al quitar esta linea texto.text="" todo funciona bien obviamente no borra el texto y si la escribo si //la borro pero no pone el formato que estableci
texto.text="";
}
Y on KillFocus lo mismo pero alreves
