Recently upgraded from FDT Professional to FDT Enterprise. I was excited to see that AIR is now supported. Of course it's been out for several months, just haven't paid any attention to it. Updating since a few things have changed since AIR went 1.0
- Download + Install the AIR runtime (now released)
- Download the Flex SDK (now open sourced),
- unzip the Flex SDK to someplace reasonable e.g. C:\CodeProjects\AS3.0\Flex3.0.0.47\
- Go to 'Window>Preferences' then click on the 'AS3 Core Libraries' Tab, then the 'Add' button
- This will get you to the Define a New Path Variable
- Finally you'll want to update the Core Library for the package you are using via right clicking over the project and selecting 'properties' then the 'Change Core Library' button on the bottom right:
- After you select the Core Library you created earlier, it will update and rebuild all the projects, and here's what it will look like after:
- I typically add the CS3CoreComponents too, as I do lots of project that are Flash First instead of Flex Based.
- Past that follow the instructions starting with step 5. on adding the sample AIR resources folder,
- download and replace the HelloWorld Application Descriptor, else you will get a series of errors like here
- modify the HelloWorld to match whatever you are using.
- Open up the Build_AIR.xml for editing
- change the 'sdk_dir' to point to the Flex3 path on your harddrive you downloaded earlier,
- change the 'app_name' to whatever you called your app, e.g.
- Then follow steps 8 and on, to build the swf and package it for AIR, if successful, you should then get something that looks like this. Congratulations!.
If your curious about what else has changed since the original article check the devnet.
{ 1 comment… read it below or add one }
Hi, thank’s for your contribute… but i have a simple question. My main class is inside a package it.actiondesign.main.Hello.as … if i change some path in your Build_AIR.xml all don’t work… do you have some solution?