Setting the width and height of a WindowedApplication container in Adobe AIR

by Peter deHaan on December 27, 2008 · 0 comments

in WindowedApplication

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>

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Previous post:

Next post: