Advanced AIR – Application UI

Over the next few weeks I am going to blog a number of slightly more advanced features of AIR applications using Flash Professional. After a lot of questions and feedback based on my current AdobeTV series of Flash Downunder, I decided to record a new series showing how to implement a number of the slightly more advanced features. I have recorded the series and it should start to go live soon, however, rather than wait I have decided to post the source files from the series. I have attempted to make the source files very simple and basic so they are easy to follow.

The areas I have covered are:

  • Application UI – including maximize, minimize, exit, drag and resize commands as well as custom menus. The resize command also shows how you can control content when resizing occurs.
  • AIR Updater – how you can make your AIR apps updateable when you release new versions
  • Animated Icons – how you can control the system icons from your app including how to use them to provide user feedback
  • AIR CRUD database – how you can add an internal SQLite database in your AIR app and create, read, update and delete entries using simple SQL queries
  • EncryptedLocalStore – how you can use the encryptedLocalStore to save and read user preferences in your AIR app
  • AIR Badge – how to use the AIR badge to publish your AIR apps on the web

Application UI

First of all is the Application UI example. As I mentioned above, this example shows how to implement the maximize, minimize, exit, resize and drag functions of AIR.

app_ui

It also shows how to create a custom menu for your AIR app.

app_ui_menu

You can download the source files here and also install the example app by clicking on the badge below.

6 Responses to “Advanced AIR – Application UI”

  1. Scott Says:

    Hey,

    I was trying to test this source out in Flash CS4, and its throwing the following errors:

    1046: Type was not found or was not a compile-time constant: NativeWindowBoundsEvent.

  2. paul Says:

    Hey Scott, NativeWindowBoundsEvent is one of the AIR classes. If you set your publish settings to AIR 1.5 you should be fine.
    Let me know if not…

  3. Paul Burnett – madblog » Blog Archive » Flash Downunder – Advanced AIR – Application UI Says:

    [...] source files for this episode are in an earlier blog post so you can download them and grab the [...]

  4. Paul Burnett – madblog » Blog Archive » Flash Downunder – Advanced AIR – Application UI Part 2 Says:

    [...] source files for this episode are in an earlier blog post so you can download them and grab the [...]

  5. Sandro Says:

    Hi,
    first of all thank you for your usefull example.
    I have downloaded/ installed the executable file from your above link and the example worked fine.

    I also downloaded the source file and tried to build an swf-file.
    When I was testing the example using Flash CS5 (with keys ctrl+enter) it worked fine.
    But then, when I tried to perform the created “AIR Application UI.swf” file, I got the following error:

    VerifyError: Error #1014: Class flash.display::NativeWindow could not be found.

    After I clicked the button “continue”, the application “AIR Application UI.swf” flickering appeared.
    Do you have an idea how I can solve the error?

    Many thanks in advance, Sandro.

  6. paul Says:

    Hi Sandro
    Its hard to tell without seeing the file. First thing to check is that you are publishing to AIR?
    It will not work if you output to .swf as classes like NativeWindow only work with AIR.

    Hope this helps

Leave a Reply