Hi, I have a movie with a video and when I exit fullscreen mode (pressing ESC) I want to execute a function. I mean, exit fullscreen and execute my function at the same time when pressing ‘ESC’
I tried to add a listener but it doesnt work…
listener = new Object();
listener.onKeyDown =
function() {
if (Key.isDown(Key.ESCAPE)) {myFunction() };
};
Key.addListener(listener);
When I go fullscreen, I press ESC and flash exits fullscreen, but myFunction() doesnt load. If I press ESC a second time myFunction() works.
Is the ESC key blocked in fullscreen mode?