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"?>
<!-- http://airexamples.com/2010/03/12/keeping-a-windowedapplication-on-top-of-other-windows-in-adobe-air/ -->
<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>
Tagged with:
 

Leave a Reply

Your email address will not be published.

You may 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="" highlight="">

Spam Protection by WP-SpamFree