The following example shows how you can keep a WindowedApplication container on top of other windows in Adobe AIR by setting the Boolean alwaysInFront property.

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication name="WindowedApplication_alwaysInFront_test"
 xmlns:mx="http://www.adobe.com/2006/mxml"
 layout="vertical"
 verticalAlign="middle"
 backgroundColor="white"
 alwaysInFront="{checkBox.selected}">

    <mx:ApplicationControlBar dock="true">
        <mx:Form styleName="plain">
            <mx:FormItem label="alwaysInFront:">
                <mx:CheckBox id="checkBox" />
            </mx:FormItem>
        </mx:Form>
    </mx:ApplicationControlBar>

</mx:WindowedApplication>

Alex Smirnov

Senior Java Developer. JAVA, PHP, Cold Fusion, SQL, Air, Flash.

More Posts