Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/02/2009, 21:28
Avatar de Diegoazul
Diegoazul
 
Fecha de Ingreso: mayo-2007
Ubicación: { Dash Berlin }
Mensajes: 1.879
Antigüedad: 16 años, 10 meses
Puntos: 67
Respuesta: Detectar Tecla Enter

crea un campo de texto dinamico y llamalo texto_txt y en un frame vacio pones esto:



Código:
var listKey:Object = new Object();

listKey.onKeyDown = function() {

	switch (Key.getCode()) {

		case Key.ENTER :

			texto_txt.text = "hola mundo";
			

			break;

		
	}
};
Key.addListener(listKey);

IMPORTANTE: pruebalo en el navegador, en flash no.