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>
Tagged with:
 

3 Responses to Displaying a status message on a WindowedApplication in Adobe AIR

  1. Dave says:

    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 says:

    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

  3. topher says:

    The status text property is handled differently in Flex 4 IIRC

    Try:

    statusText.text=”foo”;

    This always works for me; or data binding the status property to a [Bindable] private String variable.

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