Friday, April 4, 2008

Opening a window fullscreen in AIR

Working in Flash CS3 (with the AIR updater) -- if you want an AIR app to open full screen:
import flash.display.StageDisplayState;

public function maximizeWindow():void{
this.stage.nativeWindow.stage.displayState =
StageDisplayState.FULL_SCREEN_INTERACTIVE;
}

No comments: