i have created 12 piano keyboard keys on my screen… i want my users to have keyboard input using the computer keyboard
eg: the letter ‘a’ for the piano key “a”
when the user press “a” on the computer keyboard, the sound of that key should also apprear…
wats the action script?
pls help…
[AS]
onClipEvent (enterFrame) {
if (Key.isDown(Key.getCode() == 65)) { // not sure if it should be = or == here… swich if it doesn’t work
trace(“A is down”);
} else if (Key.isDown(Key.getCode() == 66)) {
trace(“B is down”);
}
}
[/AS]