hey, i know that you can use the keypress with up,down,left,right and some other buttons,
but what is the script for normal letters, e.g. a, s, d, w
any help would be good, thanks
jason
:mrt:
Printable View
hey, i know that you can use the keypress with up,down,left,right and some other buttons,
but what is the script for normal letters, e.g. a, s, d, w
any help would be good, thanks
jason
:mrt:
You could use a button with a keyPress event,
or have a listener object to detect keypresses,Code:on (keyPress "a") {
trace("a was pressed");
}
Code:var kl = {};
kl.onKeyDown = function() {
if (Key.getCode() == 65) {
trace("a was pressed");
} else if (Key.getCode() == 68) {
trace("d was pressed");
}
};
Key.addListener(kl);