I have an application intended to run in full screen mode. In order to prevent it from getting out of full screen I did:
protected function windowedapplication_preinitializeHandler(event:FlexEvent):void
{
nativeWindow.stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
nativeWindow.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
}
protected function onKeyDown(event:KeyboardEvent):void
{
if (event.keyCode == 27)
{
event.preventDefault();
}
}
That prevents the app getting out of full screen but my app has a video player with an option to go full-screen with the video and at that point when i press esc the whole app and the video come to smaller size.
Thanks in advance!