title: How to fit a Flex Air application to Full Screen?
body: <p>I have an Air Application in Flex designed for 1280x800 which I would like to stretch to work full screen on a 1920x1200 monitor.</p>
  
  <p>I've read this article: <a href="http://blogs.adobe.com/aharui/2008/01/flex_and_scalemodes.html" rel="nofollow noreferrer">http://blogs.adobe.com/aharui/2008/01/flex_and_scalemodes.html</a> and tried it, but it only zooms the upper left corner (as mentioned in the article).</p>
  
  <p>I work with a WindowedApplication (shown below) which holds a View (called MasterView) that contains all different lay-out elements.</p>
  
  <p>Any suggestions? </p>
  
  <p>My application (in brief) looks like this:</p>
  
  <pre><code>&lt;mx:WindowedApplication 
      xmlns:mx="http://www.adobe.com/2006/mxml"
      layout="absolute"
      width="100%" height="100%"
      horizontalScrollPolicy="off"
      verticalScrollPolicy="off"
      clipContent="false" 
      windowComplete="goFullscreen()" 
      &gt;
  
  private function goFullscreen():void
  {                                   
      Mouse.hide();       
  
      this.stage.scaleMode = StageScaleMode.EXACT_FIT;
      this.stage.align = StageAlign.TOP_LEFT;
      this.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
  
      try
      {   
          showStatusBar = false;
          removeChild(statusBar);
      }
      catch (err:Error)
      { }
  
      root.stage.addEventListener(KeyboardEvent.KEY_DOWN, switchFullScreen)               
  }
  
  &lt;/mx:WindowedApplication&gt;
  </code></pre>
  
  <p>Thanks,
  Gab</p>