PDA

View Full Version : Key.Z



Pattt
May 17th, 2005, 10:22 AM
This doesn't work.

onClipEvent (enterFrame) {
if (Key.isDown(Key.CONTROL) && Key.isDown(Key.getCode("Z"))) {
trace("Undo");
}
}

How can I fix it?
Please help!

senocular
May 17th, 2005, 11:12 AM
From Flash Help:
"Key.getCode : Returns the virtual key code of the last key pressed."

You're using it to try to get the keycode of Z

see
String.fromCharCode
or
String.charCodeAt

dangerskew
May 17th, 2005, 03:45 PM
http://img.sheezyart.com/swf/42/423862.swf

Go there.

Pattt
May 18th, 2005, 12:32 PM
Thanks! ^^