Monday, February 25th, 2008

Ext Releases v2.0.2 with Adobe AIR Support

Category: Adobe, Ajax, Sencha

To coincide with the release of Adobe’s AIR v1.0, the Ext team released v2.0.2 of the Ext framework with enhanced support for the new AIR runtime. The Ext and Adobe teams collaborated during the AIR beta process to ensure that support for the updated AIR API and security sandbox would be available to Ext users from day one.

To demonstrate Ext’s AIR capabilities, founder Jack Slocum went about updating the Simple Tasks application he initially created during the early AIR beta process.

Making extensive use of the newly updated AIR API, the Ext team enhanced the Ext.air package to handle such functionality as:

  • Managing native windows, event listeners and automatic state management for the windows.
  • Use of the new synchronous database access introduced in AIR beta 3.
  • Native drag and drop and clipboard access.
  • Playing sounds.
  • Minimizing AIR applications to the system tray.

Adding an icon to the system tray is now a trivial task as can be seen in this code sample:


  1. var win = new Ext.air.NativeWindow({
  2.     id: 'mainWindow',
  3.     instance: window.nativeWindow,
  5.     // System tray config
  6.     minimizeToTray: true,
  7.     trayIcon: 'ext-air/resources/icons/extlogo16.png',
  8.     trayTip: 'Simple Tasks',
  9.     trayMenu : [{
  10.         text: 'Open Simple Tasks',
  11.         handler: function(){
  12.             win.activate();
  13.         }
  14.     }, '-', {
  15.         text: 'Exit',
  16.         handler: function(){
  17.             air.NativeApplication.nativeApplication.exit();
  18.         }
  19.     }]
  20. });

In addition to demonstrating AIR apis, Simple Tasks v2 also includes several advanced samples to demonstrate creating custom Ext components. These samples include:

ListTree – Allows for a hierarchical list of options, similar to a treeview, but within a drop-down listbox

Custom Grid Columns – Allows for grid columns to be represented as buttons or menus

Switch – Provides a collection of buttons, one of which can be “pressed” at a time. This is used as an alternative for radio buttons.

Ext v2.0.2 is immediately available for download as is Adobe AIR v1.0

Posted by Rey Bango at 8:00 am

4.5 rating from 79 votes


Comments feed TrackBack URI


Comment by blankyao — February 25, 2008

Psst. You forgot to disclose your affiliation. :P

Comment by ibolmo — February 27, 2008

Leave a comment

You must be logged in to post a comment.