Hy guys.
I am trying to figure out a wway to launch a section of my site with a combitnation keyPress (CTRL+C) I do have this from the helps files but triggers as soon as CTRL is pressed and not when the CTRL+C is pressed.
function myOnKeyDown () {
if ((Key.getAscii () == 0) && (Key.isDown (Key.CONTROL))) {
doLogin ();
}
}
var myListener:Object = new Object ();
myListener.onKeyDown = myOnKeyDown;
Key.addListener (myListener);
doLogin = function () {
trace ("do login");
};
Any help much appreciated.
THanks
Paul