che versione di flash usi...?Originariamente inviato da MIRIANA
IL CODICE ATTUALE è on (keyPress "c") {
tellTarget ("raf") {
gotoAndPlay (9);}}
questo va bene per le versioni MX in poi:
codice:eventoTasto = new Object(); eventoTasto.onKeyDown = function(){ if(Key.getCode() == 67 && !this.disattivo){ raf.gotoAndPlay(9); this.disattivo = true; } } eventoTasto.onKeyUp = function(){ if(Key.getCode() == 67) this.disattivo = false; } Key.addListener(eventoTasto);

Rispondi quotando