Anyone knows how the Adobe AIR application are converted to iPhone apps? I see two ways - either the Adobe AIR virtual machine mus be part of every application or they must convert all ActionScript calls to Cocoa Touch calls somehow or have an Objective-C twin for every ActionScript class and then compile it to ARM assembler.
I am just curious how it is technically done.
BR STeN
Download and install Adobe AIR Download Adobe AIR directly from the Adobe AIR Download Center at http://get.adobe.com/air/. This step downloads an Adobe AIR installer file to your computer. Run the installer file. For example, on Windows computers, double-click the installer file to run it.
Add text comments, fill and sign forms, add bookmarks, and much more. Once you're done, you can also share your PDFs straight from your iPhone. You can also compress PDFs or convert them to other formats with Adobe Acrobat online services. It all works on your iPhone's web browser.
AIR is a runtime environment that allows Adobe Animate content and ActionScript 3.0 coders to construct applications and video games that run as a stand-alone executable and behave similar to a native application on supported platforms.
Adobe® AIR® is a multi-operating system, multi-screen runtime that allows you to leverage your web development skills to build and deploy rich Internet applications (RIAs) to the desktop and mobile devices.
Unlike other platforms, Adobe Air is compiled into native code when you build an iOS application.
Here is a part of a blog post from Adobe:
We created a new compiler front end that allowed LLVM to understand ActionScript 3 and used its existing ARM back end to output native ARM assembly code. We call this Ahead of Time (AOT) compilation—in contrast to the way Adobe Flash Player and Adobe AIR function on the desktop using Just in Time (JIT) compilation. Since we are able to compile ActionScript to ARM ahead of time, the application gets all the performance benefits that the JIT would offer and the license compliance of not requiring a runtime in the final application.
That means that:
The Air runtime is not packaged within the application.
AS3 code is not converted into Objective-C code, but is compiled directly into native assembly code.
taken from adobe website: http://www.adobe.com/devnet/air/articles/air3-install-and-deployment-options.edu.html
Note that the captive runtime is the only option that is available when using AIR to target iOS. Since iOS does not support a shared runtime model, the captive model remains the only option on this platform.
Anyone using the captive runtime should be aware that it has two downsides:
Increased application size. Since an entire copy of the runtime is included in your application, the size of the application package is necessarily increased.
Increased security burden.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With