event handler problems
Hi,
I'm having problems with a event handler that I'm trying to create.
I currently have 2 event handlers, one of which needs to only happen when Shift + a key is pressed. I currently have:
function keypressedHandler(event:KeyboardEvent):void {
if ((event.shiftKey) + (event.keyCode == 81)) {//something would happen
}
}
So my question is how can I get the shift function to work? It doesn't matter if it isn't shift but Alt or Ctrl would be the alternatives.
Any help would be great,
Thanks,