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:

  1. 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?)

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

    ReplyDelete
  3. Sweet, works like a charm. Thanks!

    ReplyDelete
  4. Perfect snipit - thanks for posting this.

    ReplyDelete