Friday, 5 March 2010

Adobe Air (Flex 4.0) Full screen application, statubar toggle

To go fullscreen and toggle the statusbar, use the following

protected function windowedapplication1_windowCompleteHandler(event:AIREvent):void
{
// go fullscreen
var state:String = (stage.displayState == StageDisplayState.FULL_SCREEN) ? StageDisplayState.NORMAL : StageDisplayState.FULL_SCREEN;
stage.displayState = state;

// set statusbar
showStatusBar=false;
}

No comments:

Post a Comment