Ver Mensaje Individual
  #7 (permalink)  
Antiguo 24/07/2011, 20:21
Avatar de Diegoazul
Diegoazul
 
Fecha de Ingreso: mayo-2007
Ubicación: { Dash Berlin }
Mensajes: 1.879
Antigüedad: 17 años
Puntos: 67
Respuesta: Como puedo detectar texto dinámico

Seguro hay una mejor forma de hacerlo pero intenta asi:

Código:
nombre_txt.text = "Escribe tu nombre";


nombre_txt.onSetFocus = function()
{

	if (nombre_txt.text == "Escribe tu nombre")
	{
		nombre_txt.text = "";
	}
};


nombre_txt.onKillFocus = function(newFocus:Object)
{
	if (nombre_txt.text == "")
	{
		nombre_txt.text = "Escribe tu nombre";
	}
};
__________________
{ Flash }