1 Reply Latest reply on Nov 30, 2009 12:41 PM by Joe ... Ward

    Adobe AIR 2 Beta with Flash Builder 4 Beta 2


      I'm trying to figure out how to use AIR 2 with Flash Builder 4.  I was initially under the impression that FB4 has AIR2... but the when I create a File object and try to call the function openWithDefaultApplication().  An error occurs saying the function doesn't exist.  This is the AIR application I created in FB4.  Am I doing something wrong or do I need to install AIR 2 somehow -- and if so, how do I do so?



      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                     private function launch():void{
                          var myfile = new File("C:\Windows\notepad.exe");
           <s:Button x="439" y="155" label="Button" mouseDown="launch()"/>



      Thanks in advance.

        • 1. Re: Adobe AIR 2 Beta with Flash Builder 4 Beta 2
          Joe ... Ward Level 4

          Download the AIR 2 SDK, make a new copy of the Flex4 SDK (or whichever Flex SDK you want to use) and copy the AIR SDK over it. (If you are on the Mac, you have to be careful that the directories themselves aren't overwritten -- just the files inside them.) You then add the combined SDK to the list in the Flash Builder project properties dialogs.