tags:

views:

208

answers:

2

I have an air app created from one of Adobe's Examples using javascript / HTML. Is it possible to change the descriptor file so the application launches full screen or maximized?

A: 

Maybe this helps (from here: http://www.kerkness.ca/how-to-launch-an-adobe-air-windowedapplication-in-full-screen-mode/)

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init()">
    <mx:Script>
    <![CDATA[
        private function init():void
        {
            systemManager.stage.displayState=flash.display.StageDisplayState.FULL_SCREEN_INTERACTIVE
        }
    ]]>
    </mx:Script>
</mx:WindowedApplication>
Jakob Kruse
A: 

Or you could call the maximize(); function in the application creation Complete function.

Jakob Kruse
This one did the trick. I was looking for something to put inside `<initialWindow>` which is probably why my searches were comming up empty = ).
Nathan
Great. Glad to help :)
Jakob Kruse

related questions