I am currently developing an interactive language learning program for Flash Lite 2.1 for Windows Mobile devices.
I need to give the spacebar some specific functionality by using the addListener in flash Lite 2.1. The code below works for every key on my Motorola Q except the SPACE bar. I’ve noticed that the space bar is reserved in Flash Lite for toggling the Full Screen option. I was wondering if there was a way to bypass this option in order to be able to listen to the Space Bar.
The code that I am using is the same code shown in the Flash 8 help for listening to keys… and it works fine with every key on my Motorola Q except the SPACE bar.
var keyListener = new Object();
keyListener.onKeyUp = function() {
if(Key.getCode() == Key.SPACE) {
trace(“Space!”);
}
};
Key.addListener(keyListener);
Thanks in advance!
Norman