1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
gestion_clavier = new Object();
gestion_clavier.onKeyDown = function() {
_root.toucheson.gotoAndStop(1);
if (Key.getCode() == 65) {
// _root.test1 = "A";
// _root.gotoAndStop(6);
_root.toucheson.gotoAndStop(2);
_root.lettre.lettreA = "A";
}
if (Key.getCode() == 66) {
//_root.test1 = "B";
_root.lettre.lettreA = "B";
_root.toucheson.gotoAndStop(3)
}
if (Key.getCode() == 67) {
_root.lettre.lettreA = "C";
_root.toucheson.gotoAndStop(4)
}
if (Key.getCode() == 68) {
_root.toucheson.gotoAndStop(5)
_root.test1 = "D";
}
if (Key.getCode() == 69) {
_root.toucheson.gotoAndStop(6)
_root.test1 = "E";
}
if (Key.getCode() == 70) {
_root.toucheson.gotoAndStop(7)
_root.test1 = "F";
}
if (Key.getCode() == 71) {
_root.toucheson.gotoAndStop(8)
_root.test1 = "G";
}
};
Key.addListener(gestion_clavier);
stop(); |
Partager