Using Flash MX, I am trying to capture a Control + F for a system simulation. I have the book "ActionScript for Flash MX" and it gives some ActionScript code for this, but I cannot get it to work. Here is the code:
If I take one or the other Key.isDown component out, it works, but not when both are included.
Suggestions?
Code:
keyListener = new Object();
keyListener.onKeyDown = function () {
if(Key.isDown(Key.CONTROL) && Key.isDown(70)){
gotoAndStop("result");
}
}
key.addListener(keyListener);
Suggestions?