nulldesign // lars gerckens » Developing AIR with Flashdevelop

Developing AIR with Flashdevelop

Good news everyone! Since it is still a bit tricky to get Flashdevelop and AIR together, I wrote a little guide how to set it all up. I’m using FD3 Beta 2, it might be a bit different with newer versions of Flashdevelop, but it should work:

  1. Download the latest Flex SDK here and unzip it in a folder of your choice. Change the Flex SDK Location in Flashdevelop to the new SDK (F9 -> AS3Context -> Flex 2 SDK Location -> C:\[PATH_TO_FLEX3SDK])
  2. For real coding comfort you can set up an AIR project template: You need to copy and edit an existing template folder. Flashdevelop project templates are located in C:\Program Files\FlashDevelop\FirstRun\Templates\ProjectTemplates\.
  3. Copy \06 ActionScript 3 – Default Project\ to \09 AIR – Default Project\.
  4. Then copy the sample application descriptor file that comes with the Flex 3 SDK (C:\[PATH_TO_FLEX3SDK]\templates\air\application.xml) to \09 AIR – Default Project\.
  5. And of course you need autocompletion: Just download the latest Flex 3 with AIR intrinsic classes and unzip them in C:\Program Files\FlashDevelop\FirstRun\Library\AS3\intrinsic\ overwriting the old ones (you might want to save them if you want to switch back to “normal” AS3 completion).
  6. Start Flashdevelop and create a new AIR project. There are two more things you need to set up to get your project working:
  7. In the project properties, go to ‘Compiler Options’ and add the additional compiler option: +configname=air
  8. Go to ‘Build’ and add the post-build command line: ‘C:\[PATH_TO_FLEX3SDK]\bin\adl.exe’ application.xml
  9. Edit the application.xml and point to your start.swf or mxml in the xml node content (in initialWindow). You can compile and launch your application hitting F8 now.
  10. Have fun developing! ;)

07. November 2007 | Posted in AIR

5 Comments

  • 1. fluxa  |  07. December 2007 at 00:09

    Hi, how can I create the AIR installation file with Flash Develop (.air). All that I get when I try to compile is a SWF file.
    thanks

  • 2. lars  |  10. December 2007 at 13:48

    You can’t do it with Flashdevelop, but with a small command line tool (adt) in your flex sdk folder. The syntax is explaned here: Adobe Flex 3.0 Help.

  • 3. Chris  |  30. January 2008 at 15:38

    Thanks for the article. Very helpful! For some reason FD doesn’t seem to recognize the code as an AIR app. It uses the proper config file and custom post-build procedure, but dies when I reference AIR specific features. For instance – {File}.uploadUnencoded is reported as undefined. Can you offer any suggestions that might resolve this problem? I am using beta 3 release of Flex/AIR.

    Thanks again for all.

  • 4. lars  |  30. January 2008 at 16:14

    The newest FD Beta 5 solves all these problems. It has integrated AIR Support, so you might want to go for the newest release ;)

  • 5. Chris  |  30. January 2008 at 21:26

    Lars,

    Thanks for the info. I had thought I was at the latest release, but in fact there was an update to FD Beta 5 (intrinsics), which has resolved the issue.

    Many thanks.

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Trackback this post  |  Subscribe to the comments via RSS Feed

About

  • nulldesign is the company and showcase site of freelance developer Lars Gerckens who is based in Hamburg, Germany. I'm available for freelance work with focus on Flex, Flash and AIR development. I like to create dynamic user interfaces, cutting edge web experiences and innovative ways to visualize data.

    This site showcases some of my personal work and projects as well as an selection of commercial projects.

    If you are interested in my work or you have any questions, don't hesitate to drop me a line:

  • Profiles: Xing | Linkedin
  • Mail: lars [at] nulldesign [dot] de

Categories

Search