Displaying a status message on a WindowedApplication in Adobe AIR

by Peter deHaan on December 10, 2008 · 1 comment

in WindowedApplication

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>

{ 1 comment… read it below or add one }

1 Dave 01.08.09 at 8:47 pm

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?

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="">

Next post: