Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adobe AIR and iPhone - how it works?

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

like image 611
STeN Avatar asked Mar 28 '12 07:03

STeN


People also ask

How do I use Adobe AIR app?

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.

Does Adobe work on iPhone?

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.

What is Adobe AIR for Apple iOS support?

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.

What does Adobe AIR do on my phone?

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.


2 Answers

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:

  1. The Air runtime is not packaged within the application.

  2. AS3 code is not converted into Objective-C code, but is compiled directly into native assembly code.

like image 123
sch Avatar answered Oct 03 '22 17:10

sch


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.

like image 23
Richie Hyatt Avatar answered Oct 03 '22 17:10

Richie Hyatt