Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/10/2007, 04:17
Avatar de Mahalo
Mahalo
 
Fecha de Ingreso: julio-2004
Ubicación: Mallorca (Illes Balears)
Mensajes: 1.121
Antigüedad: 19 años, 9 meses
Puntos: 12
Re: cómo pintar una tecla 'X' en pantalla?

Necesitarás un campo de texto donde mostrar la letra:
Código:
var campoTexto:TextField = this.createTextField("campo_txt", this.getNextHighestDepth(), 10, 10, 20, 20);

this.onKeyDown = function(){
	var code:Number = Key.getAscii();
	campoTexto.text = chr(code);
}
Key.addListener(this);