Código :
//borramos automaticamente el texto del cuadro de texto al hacer clic en él var txtListener1:Object = new Object(); txtListener1.focusIn = function() { campo_texto.text = ''; } txtListener1.focusOut = function() { if (!campo_texto.removeListener(txtListener1)) { trace("Error! Unable to remove listener"); } } campo_texto.addEventListener("focusIn", txtListener1); campo_texto.addEventListener("focusOut", txtListener1);
¿Alguien puede ayudarme? Aparentemente todo está bien
