DevNewz News Archives About Us Feedback
Create REST-enabled Web Applications

Project Zero
, an IBM incubator project, allows you to create, assemble, and execute Web applications using dynamic scripting, Ajax, visual mashup-style assembly, and REST-style service invocation. You can even use your existing PHP skills.

Download for free and join the community today!


Click to Play

SMX West 2008
An intense situation results as desperate webmasters seek answers to their SEO problems. Why would someone stoop so low to get answers that could be easily...

Recent Articles

Adobe Launches Director 11
Adobe has announced the availability of the latest version of Director-Adobe Director 11. With Adobe Director, Multimedia Designers and Developers can author once and publish their content for the web...

Generalizations About Software
A reader commented that MySQL isn't "enterprise ready", to which another reader wrote: "I hate it when snobby DBAs or managers scoff at MySQL as if it isn't ready to play with the big boys. Google called, they'd...

Commercial & Open Source Still Not Antonyms
Over the last few days I have just been reading my news alerts on commercial open source and I found out that someone still thinks it sounds like a contradiction in terms, others question about how open...

5 Free SEO Tools For Web Developers And Marketing...
There are a lot of tools out there for web developers and marketers that do all kinds of different things. It is hard to know what is important and what isn't important when you are using some of the tools available.

Sun Controlled FOSS Communities Grant
Simon (Chief OSS Officer at Sun) talks about Sun's $1 million dollar grant to Sun controlled FOSS communities.Net/net: Sun will take $1M and divide it...

When Is It Application Development?
An interesting post caught my eye recently - Should we still call it Application Development? This seems like an interesting question, particularly when you start...



02.27.08

Build A Simple Adobe AIR Desktop Application Using HTML & JavaScript

By Pete Freitag

I spent a some time recently preparing for the Adobe AIR & Flex 3 Launch Event at my ColdFusion user group. One thing I wanted to show people was how to build a simple Adobe AIR Desktop Application using HTML & JavaScript.

I found the AIR Platform to be both powerful, and very easy to develop with. You really just have to spend a few minutes to see how easy it is!

I mean no disrespect to Flash, and Flex but the single most appealing capability of Adobe AIR is that you can build desktop applications in JavaScript and HTML. Two languages that nearly everyone reading this blog has undoubtedly used, and is probably quite good at already.

Adobe AIR also has an embedded database SQLite, which is an SQL92 & ACID compliant database engine with support for storing databases of up to 1TB. You can use this embedded database in your AIR Apps, and send SQL queries to it using JavaScript!

The learning curve for building an Air Application if you already know JavaScript and HTML is quite small. Run through this quick tutorial and you will be unstoppable!

Step 1 - Install Adobe AIR & the Adobe AIR SDK

If you haven't done so already, head over to Adobe to download and install the Adobe AIR Runtime, and the Adobe AIR SDK.

When you install the Adobe AIR SDK, you will want to add it's bin/ directory to your environment path.

Zero complexity. Zero overhead. Zero obstacles.
Download for free and join the community today!

Step 2 - Create Some Directories

Next we need to create some directories for our code, create the following directories:

/appname/
/appname/source/
/appname/source/icons/
/appname/build/


Step 3 - Create an Application Descriptor

Your application descriptor is an XML file that sets some properties for your application.

Let's call this file application.xml and place it in /appname/source/

<application xmlns="http://ns.adobe.com/air/application/1.0">
  <id>com.example.appname </id>
  <version>1.0 </version>
  <filename>AppName </filename>
  <initialWindow>
    <content>index.html </content>
    <visible>true </visible>
    <width>600</width>
    <height>600</height>
  </initialWindow>
  <icon>
    <image16x16>icons/appname-16.png</image16x16>
    <image32x32>icons/appname-32.png</image32x32>
    <image48x48>icons/appname-48.png</image48x48>
    <image128x128>icons/appname-128.png</image128x128>
  </icon>
</application>


It should be pretty obvious what to put for all the values, the icon values will be used as your application icon, you can omit these if you don't really want to create the PNG's, but it's kind of cool to see your own icons.

There are a lot more optional tags you can add, check out the templates/descriptor-template.xml file in the Air SDK.

Continue reading this article...


About the Author:
Pete Freitag (http://www.petefreitag.com/) is a software engineer, and web developer located in central new york. Pete specializes in the HTTP protocol, web services, xml, java, and coldfusion. In 2003 Pete published the ColdFusion MX Developers Cookbook with SAMs Publishing.

Pete owns a Firm called Foundeo (http://foundeo.com/) that specializes in Web Consulting, and Products for Web Developers.

About DevNewz
DevNewz has assembled experts around the world to deliver helpful advice to application developers. Our in-house news staff focuses on keeping you updated with the latest new software and trends in application development. DevNewz provides Knowlege For Application Developers.

DevNewz is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITmanagementNews.com


-- DevNewz is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2008 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article


Knowlege For Application Developers DevNewz Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact