Friday, June 1st, 2007

Aflax and Google Gears

Category: Flash, Gears, Google

Paul Colton quickly took Google Gears and created a simple example of using it from Flash, and his Aflax framework.

Kevin Lynch demonstrated an Apollo application that used Gears at the California Google Developer Day event today. You could also have applets that use the JavaScript.

function displayRecentPhrases() {
var recentPhrases = [”, ”, ”];

// We re-throw Gears exceptions to make them play nice with certain tools.
// This will be unnecessary in a future version of Gears.
try {

// Get the 3 most recent entries. Delete any others.
var rs = db.execute(‘select * from Demo order by Timestamp desc’);
var index = 0;
while (rs.isValidRow()) {
if (index < 3) { recentPhrases[index] = rs.field(0); } else { db.execute('delete from Demo where Timestamp=?', [rs.field(1)]); } ++index;; } rs.close(); } catch (e) { throw new Error(e.message); } MSG = recentPhrases[0]; if (MSG == "") MSG = "[DB Empty]" } [/javascript] Aflax Gears

Posted by Dion Almaer at 1:45 am

2.9 rating from 14 votes


Comments feed TrackBack URI

The link above goes to the Google Gears download page.

Here’s a link to some demos.

P.S.: Shouldn’t the “X” in Ajax stand for xmlhttprequest instead of just xml?

Comment by Dale — June 1, 2007

When I last time checked Aflax it did not support Opera, which is a requirement for us, so I usually skip aflax news :(

Comment by DeadCabbit — June 2, 2007

Leave a comment

You must be logged in to post a comment.