Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/05/2008, 17:59
Avatar de Gens0
Gens0
 
Fecha de Ingreso: mayo-2008
Ubicación: LOLMX
Mensajes: 10
Antigüedad: 15 años, 11 meses
Puntos: 0
Re: Ayuda con el Teclado

al fin arreglé el problema...
pero sigue algo...

Cuando presiono múltiples teclas a la vez... algunos movieclips se quedan atascados...
tengo que presionar las teclas individualmente para que funcione, pero así no es divertido!
alguien sabe cómo arreglarlo? a quién le ha pasado?

El código que tengo anotado es:
Código:
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
	if (Key.getCode() === 83) {
    	butt1.nextFrame();
	}
	if (Key.getCode() === 68) {
    	butt2.nextFrame();
	}
	if (Key.getCode() === 70) {
    	butt3.nextFrame();
	}
}
keyListener.onKeyUp = function() {
	if (Key.getCode() === 83) {
    	butt1.prevFrame();
	}
	if (Key.getCode() === 68) {
    	butt2.prevFrame();
	}
	if (Key.getCode() === 70) {
    	butt3.prevFrame();
	}
}
Key.addListener(keyListener);