My first AIR application

Posted by Daniel on May 31, 2008
Programming

A while ago I made my first Adobe AIR application. It is a “desktop version” of a web-based markbook (gradebook) that I wrote for the INGOTs.

Go to the application web page. You can login using the guest account “Guest 1″. The password is “zepplin2″.

Comments

Converting my existing Ajax application into an Adobe AIR application was very easy. I only had to make minor modifications. I had to upgrade to the current version of Dojo and I had to modify a few files that used PHP (AIR doesn’t include PHP).

Actually, what took me the longest was figuring out how to self-sign a application. It’s in the manual, but it took me a long time to see it.

Hint: go to the manual and select AIR development tools > Creating an AIR application using the command line tools > Creating a self-signed certificate with ADT.

2 Comments to My first AIR application

Conor
May 13, 2009

Are you sure it is not possible to make AIR applications with PHP? I have been doing some hard searching on the matter and couldn’t find a solution anywhere. Maybe it just cannot be done!

If you can’t use PHP then how do you make the application dynamic? Is it just through the use of JavaScript? Hopefully not because my JavaScript knowledge is very bad and my PHP knowledge is very good! :-)

Could you use jQuery?

How would you perform more complex tasks such as using FTP, sending emails or connecting to MySQL? Are they possible with JavaScript?

I am new to AIR as you might have noticed but I really like the concept. If only it ran PHP! :-)

Daniel
May 27, 2009

PHP is a server-side language. The only way you could use it with Adobe AIR would be if AIR came with a web server and that server supported PHP.

You make dynamic apps through either JavaScript or Flash. I would recommend jQuery. It is a really good and easy to learn library.

Adobe AIR provides an API to JavaScript that is not normally available on a browser. That API allows you to open files, use a local storage (but not MySQL) and do other things that JavaScript is not normally allowed to do.

Don’t confuse JavaScript with the DOM API. JavaScript is just a language and in principle it can do anything. But browsers don’t give JavaScript access to the computer for obvious security reasons.

Leave a comment

WP_Big_City

xanax 2mg