Dec 9 2009

Adobe AIR 1.5.3 Now available for download

http://get.adobe.com/air/

Adobe AIR 1.5.3 Release Notes

Adobe AIR Team blog post announcing AIR 1.5.3

Post to Twitter


Nov 17 2009

Adobe AIR 2 and Flash Player 10.1 Beta Software Available Now

AIR 2 and the 10.1 Beta version of Flash Player are now available on labs.
Both now support multi-touch user gestures for those users on touch screens! This means that both your AIR Desktop applications and the applications you create that run within a browser will have this support. You can see Kevin Lynch’s 2009 MAX demo here.
In addition to that, Flash Player 10.1 has lots of enhancements and features for mobile devices including screen-orientation, accelerometer, graphics hardware acceleration, and more. You can see a full list here. And a more complete list of new AIR 2 features is here. Enjoy!

Post to Twitter


Nov 10 2009

Where AIR lives.

It took a while for me took figure out where AIR lives now on OS X — the app, but also the uninstaller.
So, to uninstall AIR you’ll find the uninstaller in /Applications/Utilities , and not just in /Applications

Post to Twitter


Mar 24 2008

Adobe Online Developer Week

Join us for the Adobe Online Developer Week which already under way!
http://adobe.com/go/2008_developer_week
There are a bunch of cool sessions about Flex, AIR, LCDS and more…

Post to Twitter


Feb 25 2008

Flex 3 and AIR 1.0 released!

Check ‘em out!
http://www.adobe.com/products/flex/
http://www.adobe.com/products/air/
And here’s a good New York Times article about AIR: Adobe Blurs Lines Between PC and Web

Post to Twitter


Feb 12 2008

Data storage and caching with SQLite databases and Adobe AIR

You may or may not know by now that the AIR runtime includes a version of SQLite engine. Being a smaller implementation of SQL, SQLite supports all your usual database transactions, a lot of the complex queries, and triggers. With it,you can create a database to store all the data for your Flex/AIR desktop applications, store data for offline use of your Flex/AIR desktop/web applications, or for caching of data. It’s all done in the same way. I was recently working on an application where I wanted the user to have an option to be logged in automatically when the app was launched, so the first time the user logged in I created a database to cache that login info. From then on when the application is launched it checks to see if the database exists, and if so it grabs the login info, and logs them in automatically.

I’ve made a simple example which is a super simple desktop application which stores it’s data in a SQLite database. The idea and implementation here is very similar to what I just described for the caching example. On launch, we first check to see if the database exists. If it does, that means it ought to contain some data so we grab the data and display it. If the database doesn’t exist, we create it and add our one default entry, then load it into the application. The user can then add, remove, and update entries. When each of these transactions sends a result of success, we reload all the data in the database. Obviously in a real-world application this wouldn’t be a great idea; that’s too much overhead. One option would be to just manipulate the dataProvider ArrayCollection after each successful transaction — but for this simple example I’m leaving it the way it is for the intent of simply demonstrating using SQLite.

At this point I think I’ll let the code speak for itself.


Basically you’ll notice the basic steps are:

1. Create a connection: connection = new SQLConnection();

2. Define the database file: dbFile = File.applicationStorageDirectory.resolvePath(dbFileString);

3. Open (or create and open ) the database: connection.open(dbFile);

4. Create an empty SQLStatement: var sql : SQLStatement = new SQLStatement();

5. Create a query: var sqlString : String = “CREATE TABLE Users (” +

” uid INTEGER PRIMARY KEY AUTOINCREMENT, ” +

” name TEXT, ” +

” phonenumber TEXT)”;

6. Attach the connection and the query to the SQLStatement:

sql.sqlConnection = connection;

sql.text = sqlString;

7. Create event listeners for success and failure:

sql.addEventListener(SQLEvent.RESULT, onDBCreateTableResult);

sql.addEventListener(SQLErrorEvent.ERROR, onDBCreateTableError);

8. Execute! : sql.execute()


 
 
 
 
 
 
 
 
 
 
 
 
 
 

Post to Twitter


Jan 21 2008

InsideRIA launched today

Check out InsideRIA.com which was launched today. It’s an online community developed by O’Reilly and sponsored by Adobe, which will provide a number of resources for information about RIA’s, RIA development, and that which is related, with lots of attention on Flex, AIR, Actionscript and Flash.

Post to Twitter


Jan 14 2008

MD5 for Actionscript

I’m working on a Flex/AIR application that requires Flickr authentication so I needed an MD5 class for Actionscript. Here’s the one i’ve been using and it’s been working great. It’s simple and doesn’t have a load of extra unnecessary baggage.

Post to Twitter