FullScreen Event in Adobe AIR or FLEX

By | February 22, 2011

 

The following simple code snippet explains how to get an eventListener for FullScreen Event in Adobe AIR or FLEX. The function “onScreenModeChange ” gets called when you maximizes your window.
private function init():void {
stage.addEventListener( FullScreenEvent.FULL_SCREEN, onEnteringFullScreenMode);
}
private function onEnteringFullScreenMode( e:FullScreenEvent ):void {
if( e.fullScreen ) {
// Do something on fullscreen……………
} else {
// Do something else………..
}
}

Please leave your valuable comments if this post was useful…..

Leave a Reply

Your email address will not be published. Required fields are marked *