Oufff il y a du nouveau
j'ai modifié ton code comme ceci :
(en rouge ce que j'ai modifié)
keyListener = new Object();
//var keyListener:Object = new Object
keyListener.onKeyDown = function() {//la fonction..normal ^^
if (Key.getCode() == 50) { // 50 = é
gotoAndStop("bien");
son = new Sound();
son.attachSound("touche");
son.start();
} else { // si pas é donc si c'est 2
gotoAndStop("faux");
son = new Sound();
son.attachSound("faux");
son.start();
}
};
Key.addListener(keyListener);
Avec ce code ca marche impec
si je tape sur la touche é j'ai le bon son et je vais bien où il faut
Par contre, si je veux taper la touche 2 (donc SHIFT + 2) ca deconne
il considère le premier appui sur SHIFT comme faux
Il doit falloir utiliser la fonction Key.isToggled
mais comment ???
J'y suis presque GRRRRR
J'ai la tête qui va exploser.....

HELP !