Adbe Air run time detection - actionscript-3

I have created an adobe air application. When I copy the release build (.air application) to a pc that is not installed AIR, it shows the application with "Open With" command. Is there anyway that I can show users to install air run time if they haven't installed it before installing myapplication?

If you distribute your app via websie, you can add a badge there, if a user don't have AIR on his computer, he will be promted to install it. Take a closer look here

Related

Creating a cross platform runtime AIR app

I am compiling an AIR application from Animate CC (mac version) with runtime embedded. No issues on the mac, but when i transfer the app file to a PC (running windows obviously), the app icon displays as a folder instead, and there is nothing within this folder that I can click on to run the app.
I was under the impression that Adobe AIR is cross platform compatible, so am I doing something wrong when compiling, or do I have to compile on a PC to create a runtime embedded app that will run on Windows?
It's impossible to launch Mac app on Windows. Because embed runtimes are different for Win/Mac. Here you can get some more info https://superuser.com/questions/56739/executable-files-in-mac-os-x-vs-windows.
So you either build 'Mac projector' and run it on Mac or 'Windows projector' to run on Windows (you can change this option in File -> Publish Settings). Tick both options and you'll be able to run it on Win and Mac.
One more option is to build AIR app - but it will require AIR runtime installed.
You're correct that Adobe AIR is cross platform compatible, but publishing from a Mac doesn't give you a Windows-runnable app, nor does publishing from Windows give you a Mac-runnable app.
You'll need to compile on a PC to get a Windows-runnable .exe

How can debug in Flash Develop?

I recently installed Flash Develop and made a new project in AS3.
When you press F5 receive this error:
The project doesn`t have a valid SDK defined.Please check the SDK tab in the Project Properties
How to install this SDK?
He happened to someone this problem?
You show me a tutorial how can I solve this problem?
Develop Flash SDK does not come installed with?
Thanks in advance!
You may not have installed an SDK when you installed the program. When you install Flash Develop a menu should appear that allows you to install all the pieces it needs in order to run (including an SDK). My best bet would be to simply uninstall Flash Develop and reinstall and see if the window pops up to let you install an SDK.
If you don't want to uninstall Flash Develop, then when you open Flash Develop, click "Project" on the top of the window and then click "Properties" on the drop down menu. Click the "SDK" tab and see if you have an SDK in the "Installed SDK(s)" window. I, for instance, have "Default (Flex 4.6.0, AIR 17.0)" in my "Installed SDK(s)" window. If it's not showing an SDK, then you have to download and install one and apply it on the "SDK" tab.
Go to Flash Develop installation folder
Open Tools/Appman/Appman.exe
From the list select "Flex SDK" and "Flash Player (SA)" and maybe
some themes and other extra things...
Click Install items and you are done.

Is there a free cross-platform IDE that will except the Air SDK 3.4 and package HTML5/CSS3 documents to EXE?

I'm running two systems, one Linux and another Windows 7. I need a FREE IDE that could work on either platform which can use the new Adobe Air SDK (3.4 at the time of this question) and package the project as a windows executable.
I'm currently using Aptana 2.0 with the old Air SDK 1.5, however, this does not recognize HTML5 / CSS3.
I have tried so far;
Eclipse Juno, nothing...
Aptana 3.0, nothing...
Titanium Studio, nothing...
If you need to know the reason, I need to make a local app that will run on windows and no, I don't want it to run locally in a browser.
I've also searched the net. If anyone could help me out, that would be great.
You can use the latest Adobe AIR SDK with Aptana Studio 2.0.
Download the latest Adobe AIR SDK and extract its contents to the "plugins" directory which is within the Aptana Studio program directory.
Open Aptana and go to the "Window" menu and select "Preferences".
Expand the "Aptana" menu item in the sidebar and select "AIR SDKs".
Click on the "Add" button.
Click the "Browse" button and select the directory which you extracted to your "plugins" directory at Step 1, and then supply a name for the SDK eg. "Adobe AIR SDK 3.4".
Click "OK" to save.
Click "OK" again to dismiss the Preferences window.
Now you have successfully installed the latest Adobe AIR SDK.
Now you will want to run your project with the latest Adobe AIR SDK which you have just installed so:
Go to the "Run" menu and select "Run Configurations...".
Where it says "Adobe AIR SDK", select from the drop down the version of the SDK which you would like to run your project with.

AIR file too big, breaks during installation

A client is having me convert an HTML5 video web application that I've already built into an AIR app.
The end users are going to need this to work with no internet access, so I MUST include a LOT of video files with the installer. This works fine on my machine, but my client can't install it because the .air file is too large and they don't have enough RAM. We'll need this installed on a number of laptops that aren't super powerful.
My SDK is up to date and we're using AIR 3.1.
Has anyone else run into a similar situation? Is there any workaround? For instance could I either include both the installer and the .air in a zipped folder, then have the installer move the video files to the appropriate location, or use AS to have the installer download the files (they will have internet access when installing).
I'd recommend you not to include heavy video files into your application. Downloading assets from web is a descent idea, I use same technique for several museum touchscreen apps.
So here's workflow: on startup app tries to connect to "assets server" and request list of files to download. It can be list of all the files, or list of files that have been updated/added since timestamp that you pass with your request. Then you download them to File.applicationStorageDirectory. Not to have mess in that directory I put all of them to "cache" subdirectory.
In case there's no internet connection for some reason when you install that app, you can have all that "cache" folder on your memory-stick/externalHD so you can manually perform that downloading process.
If you use Greensock's LoaderMax: I've written a simple URLStreamLoader that extends LoaderItem, handy for downloading files. Can share that.
The problem is quite obvious: the Adobe AIR provided installer for deploying your application is lacking.
However, Adobe recently released a new feature for deploying Adobe AIR apps: "runtime captive bundle" (Windows or OSX).
Which means 2 important things:
You receive an .exe which no longer requires an user to have Adobe AIR runtime installed (and no more incompatibilities when targeting multiple Adobe AIR runtimes).
You are no longer provided with an installer, and you have to find your own (which solves your problem halfway).
Target bundle when "compiling", and then just use a better installer (Windows or OSX) - think you are just deploying a normal application (worked for me:) ). There are too many installers arround to mention.
Your installer of choice + bundle compiling, together solve your offline installation requirement and the memory exhausting issue.
Packaging a captive runtime bundle for desktop computers

Run AIR app without AIR runtime files

I've made an AIR app with Flash Builder 4. Works great but I want to run the app without installing it. So..... when I install the app, I copy the files from program files and paste it on a CD and give it to somebody. He runs it on another computer without AIR runtime with as result that it doesn't work.
How can I bypass this? Like some launcher/setup that installs AIR runtime for the client if it aint installed. If it is installed, run the AIR app.
Thanks.
Creating an AIR Badge would be a good option.
The idea is you pass a link to the client, the AIR Badge check if
AIR is installed. If it is, installs your app, otherwise installs AIR
first.
There's a pretty good AIR Badger tutorial on the Adobe Developer Connection site. AIR Badger is an AIR App Grant Skinner wrote to make the setup easier.
Also check out the new AIR Launchpad, which is another AIR app that helps you get started with all sort of AIR related functions, including install badge.
Unfortunately the AIR Badger works online.
You cannot bypass AIR install. Maybe have a third party utility(batch script/etc.) that looks for air related files/.air filetype associations and based on that launches an AIR installer you supply on CD or the app itself.
On osx you have the mdls command that displays information about a file. You could check for kMDItemKind:
mdls -name kMDItemKind /path/to/yourApp.air
If it prints "com.adobe.air.InstallerPackage", then air should be installed, otherwise it will just print "Document".
There should be something similar for windows command prompt that checks registry file type associations.
After you've done that check, install AIR first or just the app, depending on the result.
HTH