1 Reply Latest reply on Feb 26, 2010 7:08 PM by David_F57

    Convert a windowed air app into a full-screen one?

    Handycam Level 1

      I have an AIR app that is a windowed application, but now I'd like it to run full screen.  What do I need to change?

       

      I have made many Flex apps but this is my first AIR one.

        • 1. Re: Convert a windowed air app into a full-screen one?
          David_F57 Level 5

          Hi,

           

          There are 2 ways to do this, stage fullscreen mode or maximized chromeless mode, the app below is true full screen, to have maximised and chromeless is not true full screen (for me i'm talking about windows, as the task bar is still present, as you may have guessed i'm am clueless when it comes to mac's )

           

          David

           

          <?xml version="1.0" encoding="utf-8"?>

          <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"

             xmlns:s="library://ns.adobe.com/flex/spark"

             xmlns:mx="library://ns.adobe.com/flex/mx" activate="windowedapplication1_activateHandler(event)">

          <fx:Script>

          <![CDATA[

          import mx.events.FlexEvent;

           

          protected function windowedapplication1_activateHandler(event:Event):void

          {

          stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

          }

           

          ]]>

          </fx:Script>

          </s:WindowedApplication>