Maximize Air window

By | 23 October, 2013

Just to make searches easier for the rest of the world.

Very, very simple example:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication
        xmlns:mx="http://www.adobe.com/2006/mxml"
        creationComplete="init()">

    <mx:Script>
       <![CDATA[
           
            private function init():void
            {
                 this.maximize();
            }
       ]]>
    </mx:Script>
</mx:WindowedApplication>

This maximizes the window on creation complete. Dirty.

More reading about NativeWindow:

NativeWindow – Adobe ActionScript® 3 (AS3 ) API Reference