The following example shows how you can set the initial width and height of an Adobe AIR WindowedApplication container by setting the width and height properties.

Full code after the jump.

<?xml version="1.0" encoding="utf-8"?>
<!-- http://airexamples.com/2008/12/27/setting-the-width-and-height-of-a-windowedapplication-container-in-adobe-air/ -->
<mx:WindowedApplication name="WindowedApplication_width_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        width="800"
        height="600">
 
    <mx:Label text="{this.width}x{this.height}" /> 
 
</mx:WindowedApplication>
Tagged with: