Pages

Thursday, October 4, 2007

Making air window fullscreen size

<mx:WindowedApplication
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
showFlexChrome="false"
height="{ Capabilities.screenResolutionY}"
width="{ Capabilities.screenResolutionX}"
creationComplete="init()">

<mx:Script>
<![CDATA[
function init(){
this.nativeWindow.x = 0
this.nativeWindow.y = 0

}
]]>
</mx:Script>

5 comments:

Chris Hall said...

Thanks for the post! I have a question: What if you want to get rid of the application bar at the top (and have it be truly fullscreen?)

Mayur said...

its actually very simple just do this: set showFlexChrome="false" property and have ur own controls for AIR window.

Chris Hall said...

Sweet, works like a charm. Thanks!

Mayur said...

:) thanks

Mike Palmer said...

Perfect snipit - thanks for posting this.