1 Reply Latest reply on Mar 31, 2009 10:18 AM by Joe ... Ward

    Problems creating an AIR application from .fla

      Hey everyone,

      I am trying to create an Adobe AIR installer. I already created the .fla file and tested it. It didn't seem to work and gave me the error of "You cannot debug this SWF because it does not contain ActionScript" and acc. to this link

      I created a new environment variable called JAVA_TOOL_OPTIONS of -Xmx256M. And then the .fla file seemed to work . Apparently there is too much code in my .fla file with as many as 20 videos (.flv) and lot of radio-buttons ( I mean A lot of them !!! )...

      Now with the .fla file working, when I am trying to create an AIR installer it is throwing the error, " Error creating AIR file. Picked up JAVA_TOOL_OPTIONS: -Xmx256M ” .
      so I am not able to create the AIR Installer. and If I change back the -Xmx 256M then my .fla file won't work. So what do I do now ? I somehow removed the above -Xmx 256M variable and created a AIR installer with a self-signed certificate and when I try to install that AIR installer, I get another error message, "The application could not be installed. Try installing it again. If the problem persists, contact the application author. Error# 0".

      So I have 2 questions:

      1. how do I create this AIR installer and make it work as a .exe file and run it without having Adobe flash CS3 installed on another computer and please help me in my case as above.

      2. Also, would I need to buy a digital certificate to create the AIR installer or can I use a self-signed certificate to create an AIR installer and use it to install the AIR application on a few computers ? Please help

        • 1. Re: Problems creating an AIR application from .fla
          Joe ... Ward Level 4
          Assuming that you are generating a valid SWF file in the first step, you could try packaging the application into an AIR file using the command line tools. This would let you set your Java options differently.

          Use ADT to create an AIR package from your SWF file, an application descriptor file, and any external assets that your application loads at runtime. ADT is documented here:
          http://help.adobe.com/en_US/AIR/1.5/devappsflash/WS5b3ccc516d4fbf351e63e3d118666ade46-7fd6 .html

          Answers to your 2 Qs:
          1. Create an AIR package. Install the AIR runtime (if necessary). Install the app. If this doesn't work, try to create and install a simple "hello world" type app to verify that the tools are working properly. How large is the AIR package? On some machines, problems can occur when the package exceeds 100MB (depending on memory, etc).

          2. No, you don't need a commercial certificate. Such a certificate is recommended if you will be distributing an AIR app to strangers. It lets them verify that the app was, indeed, signed by you. Self-signed certificates are easily forged.