3 Replies Latest reply on Apr 15, 2010 2:17 PM by olegkon

    Questions & Answer for Air 2.0 Beta 2x

    Jens Eckervogt Level 1

      Hello guys,


      I want to know about new version by Adobe Air 2.0.



      #     1:

      Can i execute Air to binary like ( NativeProcess ) ?

      I have found url: http://www.adobe.com/devnet/air/flex/quickstart/interacting_with_native_process.html

      #     1,    a;

      Can i execute with 7zip or unzip binary. I found 7zip for supportted operating system. But it is different for 7z like:

      Windows:  7z ( It should without Miceosoft Installer *.msi )

      Linux:        p7z ( It should without debian or run script *.deb, *.run )

      Mac OS X: 7zX ( It should without disk image *.dmg )


      #     2:

      Can i use more binaries ( such compiled by Adobe Air 2.0 ) like multi application? If i want to 2 or more compiled air binary. If i use on Windows and you use another like Mac OS X or Linux than Air can to create more bionaries? How do i make sure with multi native processes? Sometime with command per adl.jar?


      #     3:

      Can Air ConfigApp for example write and load config.xml?

      I have searched with google. But it can not find I am still using with Flex Builder 3.5 ( SDK )


      #     4:

      Can Adobe Air mount with USB- , DVD- and CD-Device? like ImgBurn for Windows, Toaster for Mac OS X or K3b Image for Linux

      #     4,    a:

      Can it to mount with webspace or web disk image like Windows Live SkyDriver or Yahoo Fichlr Driver?


      #     5:

      Can i make an aero effect on Air Mainapp-Background like Windows Vista and 7?

      #     5,    a:

      If you use on Windows XP, Mac OS X or Linux with dpmapi by Windows Vista and 7 than it will default skin by Adobe Air. It is posible?


      Thanks best regards SnakeMedia

        • 1. Re: Questions & Answer for Air 2.0 Beta 2x
          Romil Mittal Adobe Employee

          1. Yes, AIR can run a native binary and you have the correct link to try it out. Let us know if you any queries in this area.


          Yes, you can run 'zip/unzip' binaries. Because they come in different forms (names) on different platforms, you will have handle them specific to each of them.


          2. Sorry, I didn't understand this. Can you please explain this more?


          3.Are you trying to build an AIR application that can read/write some configuration (from config.xml)? If yes, then the answer is 'yes - you can do that'.


          4. Are you trying to mount a drive using AIR? No, you cannot do that. AIR 2 can only detect a drive when it is mounted.


          5. Can you please explain this query again? Thanks.



          • 2. Re: Questions & Answer for Air 2.0 Beta 2x
            Jens Eckervogt Level 1

            Hello @Romil


            Thank you reply..


            If you do not understand?

            #     2: I mean about native process for multi application. like this:

            MyAppAir/. <- is My Application Air


            ./../Windows/ for Windows Vista and 7..

            ./../Mac/ for SnowLeopard and Leopard...


            When i use externed air applications like this

            I create frist support for NativeProcess.isSupport

            than i code with java binary for adl.jar :


            var file:File = File.applicationDirectory;
            file = file.resolvePath("NativeApps");
            if (Capabilities.os.toLowerCase().indexOf("win") > -1)
                file = file.resolvePath("Windows/adl.exe <../../DistApps/MyApp/myapp-app.xml>");

            } else if (Capabilities.os.toLowerCase().indexOf("mac") > -1)
                file = file.resolvePath("Mac/adl <../../DistApps/MyApp/myapp-app.xml>");
            } else if (Capabilities.os.toLowerCase().indexOf("linux") > -1)
                file = file.resolvePath("Linux/adl <../../DistApps/MyApp/myapp-app.xml>");


            For example. If you want to more than air applications inside one applications...


            For 5: okay i understand. it is crazy?


            ok i have problem with testting with nativeprocess error:

            <?xml version="1.0" encoding="utf-8"?>



            xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">





            // isSupport with calling binary


            private function init():void






            else {






            private function LaunchEditor():void






            else {

            textReceived.text =

            "NativeProcess not supported. Sorry you must to wair for new version of Adobe Air! Thank you!";





            private function appEditor():void



            var file:File = File.applicationDirectory;

            file = file.resolvePath(



            if (Capabilities.os.toLowerCase().indexOf("win") > -1)


            file = file.resolvePath(



            else if (Capabilities.os.toLowerCase().indexOf("mac") > -1)


            file = file.resolvePath(



            else if (Capabilities.os.toLowerCase().indexOf("linux") > -1)


            file = file.resolvePath(





            var nativeProcessStartupInfo:NativeProcessStartupInfo = new


            nativeProcessStartupInfo.executable = file;


            var process:NativeProcess = new NativeProcess();







            <mx:Button label="Start Editor" left="10" top="10" click="LaunchEditor()"/>


            <mx:TextArea left="10" top="40" right="10" bottom="10" id="textReceived" text="Please start your Editor from Windows or from mac" editable="false" wordWrap="true"/>


            I have problem with native shell like default with windows binary notepad.exe from C:\Windows\notepad.exe I can not start becasue it gave error!

            ArgumentError: Error #3214: NativeProcessStartupInfo.executable does not specify a valid executable file.
            at Error$/throwError()
            at flash.desktop::NativeProcessStartupInfo/set executable()
            at smConfig/appEditor()[F:\Flex-Src\smConfig\src\smConfig.mxml:40]
            at smConfig/LaunchEditor()[F:\Flex-Src\smConfig\src\smConfig.mxml:18]
            at smConfig/___smConfig_Button1_click()[F:\Flex-Src\smConfig\src\smConfig.mxml:46]


            What does it happen? If Adobe Air 2.0 Beta 2 can not work? Or is it not allowed??


            best regards, SnakeMedia

            • 3. Re: Questions & Answer for Air 2.0 Beta 2x
              olegkon Level 1



              That error 3214 most likely means that you are not pointing to the JDK dir correctly.

              I am often getting it when specified JDK dir (JAVA_HOME) doesn't exist on PC where you install your AIR2 app.

              My app is based on that embedded Tomcat app [needs JDK to start/stop Tomcat]: 




              Hope that helps,