Tutorial: Salesforce.com on AIR with Flex 3

This tutorial has been updated to Flex 3 Beta 2. The new version is now on the Adobe Developer Connection:
Building a standalone Adobe AIR application on salesforce.com with Flex 3

The excitement around using Flex & AIR to build amazing front-ends for Salesforce applications continues to grow. Nitobi has posted [a cool AIR application][1] that uses the Salesforce Ajax library. Also Dave Carroll of Salesforce has posted [a great blog][2] about why Flex & AIR developers should care about the Apex platform. Back in April I posted [the first version][3] of a tutorial about how to use the Flex Toolkit for Apex to build AIR (was Apollo) applications. Since the Flex 3 and AIR betas were released recently it’s time to update that tutorial. So if you want to start building some sexy interfaces on top of salesforce.com follow along…

  1. Download and unzip the Flex Toolkit for Apex:


  1. Download and install the Flex 3 Beta:


  1. Create a new AIR Project:



  1. Add the Salesforce SWC to the Library Build Path:


  1. Write your AIR application:



<salesforce:Connection id=“conn”/>

<mx:DataGrid id=“dg” width=“100%” height=“100%”/>



6. Save it (which automatically compiles it)

7. Run it:

8. Export it as an installable AIR file so you can share it with others

9. Say "That's Hot!"

Now go ahead and build some amazing Flex and AIR applications on top of salesforce.com! Just let me know what you create so that I can use it in my demos. :)

[Download the AIR file for this tutorial][8]

 [1]: http://blogs.nitobi.com/andre/index.php/2007/07/20/offline-salesforcecom-with-air-and-ajax/
 [2]: http://blog.sforce.com/sforce/2007/07/why-flexair-dev.html
 [3]: http://www.jamesward.org/wordpress/2007/04/17/the-open-source-flex-and-apollo-toolkit-for-salesforcecom/
 [4]: http://www.jamesward.org/wordpress/wp-content/uploads/2007/07/step1.jpg
 [5]: http://www.jamesward.org/wordpress/wp-content/uploads/2007/07/step2.jpg
 [6]: http://www.jamesward.org/wordpress/wp-content/uploads/2007/07/step3.jpg
 [7]: http://www.jamesward.org/wordpress/wp-content/uploads/2007/07/step4.jpg
 [8]: /downloads/sf_air.air