Using the AIR 2 SDK in Flash Builder 4

The release notes on Adobe Labs have instructions for overlaying the SDK in Flex Builder 3 with SDK 3.2.0 http://labs.adobe.com/wiki/index.php/AIR_2:Release_Notes#AIR_2_SDK. You can follow these same instructions for Flash Builder 4 and the Flex 4 SDK.

Be sure that you follow these instructions exactly. You might expect that you can simply copy the files into the 4.0.0 folder and everything should work right? Well, (1) that’s not how it works and (2) you want to keep the AIR 2 beta and the Flex 4 release as separate SDKs in your development environment so that you can still use the stable Flex 4 SDK.

Simply copying the AIR 2 SDK into the existing 4.0.0 folder has some side effects. The most obvious effect is that once Flash Builder caches the Flex 4 framework, it won’t re-parse SWCs in the SDK library path. The most obvious one is airglobal.swc. Do this the wrong way and you’ll find that classes like TouchEvent are missing from code hints.

Share on Facebook

2 Responses to Using the AIR 2 SDK in Flash Builder 4

  1. Mukesh Gupta says:

    Hi,
    Is there any written aritcle or blog post for overlay of Flash builder 4 with Air sdk version 2.0 and 2.5 .
    I unzipped Air 2.5 sdk , copy entire directory & paste into “Program Files/Adobe/Adobe Flash Builder/”, it replace the common files but it cause an error while Export Release build “error 102 : invalid namespace http://ns.adob.com/air/application/2.5
    What is an exact method to overlay of Flash builder 4 with Air sdk version 2.0 and 2.5 ?
    Thanks