Jontti
11-30-2010, 07:53 AM
I have been able to catch almost all keys within flash but I havn't bee able to catch CTRL :(
keyListener.onKeyDown = function() {
DebugTxtOutput("This key was pressed: " + Key.getCode());
}
NOTE! DebugTxtOutput is just a function for me to print stuff on the screen instead of using trace and it works...
On a CRTL press it should return "This key was pressed: 17"... But CRTL returns nothing, zip, null, nada... :(
And it works fine in the regular Flash viewer...
Any clues?
keyListener.onKeyDown = function() {
DebugTxtOutput("This key was pressed: " + Key.getCode());
}
NOTE! DebugTxtOutput is just a function for me to print stuff on the screen instead of using trace and it works...
On a CRTL press it should return "This key was pressed: 17"... But CRTL returns nothing, zip, null, nada... :(
And it works fine in the regular Flash viewer...
Any clues?