Limited FullScreen keyboard access
Everyone is talking about the new Flash Player 10 features that you can have limited keyboard access while you are in fullscreen. But nobody publish the code for this. I’m using the regular onKeyDown function in AS2 and this is not working. Does someone know if we can have this limited keyboard access in AS2?
This is my code (that work in normal state but not in fullscreen mode):
watchKeyBoard = new Object();
watchKeyBoard.onKeyDown = function() {
if (Key.isDown(Key.LEFT)) {
myDynamicText.text = “LEFT”;
}
};
Key.addListener(watchKeyBoard);
Adobe Flash Player 10
Whether or not you want to make a game or a video player with keyboard shortcuts, the restriction of keyboard support in fullScreen has been an annoyance to a lot of developers. The restriction was placed there because of heightened possibilities of malicious attacks while in fullScreen mode such as password phishing.
In Flash Player 10 we are easing this restriction to allow non-printing keys to be used while in fullScreen. Non-printing keys are arrows, space, shift, tab and similar keys that can’t be used to provide private information. These keys are very important however to let users do many types of selection and gameplay inputs.