0 Replies Latest reply on Nov 19, 2009 9:46 AM by carloslf09

    AIR Fullscreen AND Show_All

    carloslf09

      Hi, everybody

      I'm trying to resolve this problem.

      I am developing a AIR application with the following attributes: FULLSCREEN and then stage to EXACT_FIT (without trying to preserve the original aspect ratio).

      The full screen is ok but the content of the stage appears cut out in approximately 1/4 of its area.

      Can anybody help me?

      Thank´s for any help.

      Carlos Lopes.

       

      My code is:

       

      <mx:WindowedApplication

      xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="fFullscreen()"

      horizontalAlign="center" verticalAlign="middle" clipContent="false" backgroundColor="#E1C787">

       

      <mx:Canvas width="620" height="480" backgroundColor="#FFFFFF" x="209" y="73">

      </mx:Canvas>

       

      <mx:Script>

      <![CDATA[

      import flash.display.StageAlign;

      import flash.display.StageScaleMode;

       

      public function fFullscreen():void {

      stage.displayState = StageDisplayState.FULL_SCREEN;

      stage.scaleMode = StageScaleMode.SHOW_ALL;

      }

      ]]>

      </mx:Script>

      </mx:WindowedApplication>