Skip to content
Dec 10 /

Displaying a status message on a WindowedApplication in Adobe AIR

The following example shows how you can set the status message on an AIR WindowedApplication by setting the status property.

Full code after the jump.

<?xml version="1.0" encoding="utf-8"?>
<!-- http://airexamples.com/2008/12/10/displaying-a-status-message-on-a-windowedapplication-in-adobe-air/ -->
<mx:WindowedApplication name="WindowedApplication_status_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        status="{textInput.text}">
 
    <mx:ApplicationControlBar dock="true">
        <mx:Form styleName="plain">
            <mx:FormItem label="status:">
                <mx:TextInput id="textInput" />
            </mx:FormItem>
        </mx:Form>
    </mx:ApplicationControlBar>
 
</mx:WindowedApplication>

2 Comments

leave a comment
  1. Dave / Jan 8 2009

    I tried this and got the following error….

    Severity and Description Path Resource Location Creation Time Id
    Type was not found or was not a compile-time constant: statusBar. [Generated code (use -keep to save): Path: statusBar-generated.as, Line: 168, Column: 14] statusBar Unknown 1231476368647 9838

    something wrong at my end?

  2. cengler / Jul 12 2010

    How can i chage the status text inside a component…

    There is a static reference to the application,
    like Application.application in flex…

    I Try NativeApplication.nativeApplication.status = “foo”, but does not work …

    Any ideas?

    Tanks

Leave a Comment

Spam Protection by WP-SpamFree