Adobe AIR
Adobe AIR is a cross-platform runtime system developed by Adobe Systems for building desktop applications and mobile applications, programmed using Adobe Animate, ActionScript and optionally Apache Flex. The runtime supports installable applications on Windows, OS X and mobile operating systems including Android, iOS and BlackBerry Tablet OS. It also originally ran on Linux, but support was discontinued as of version 2.6 in 2011.
Adobe 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 app and behave similar to a native application on supported platforms. A Flash Player or HTML5 application used in a browser does not require installation, while AIR applications require installation from an installer file or the appropriate App Store. AIR applications have unrestricted access to local storage and file systems, while browser-based applications only have access to individual files selected by users.
Adobe AIR internally uses a shared codebase with the Flash Player rendering engine and ActionScript 3.0 as the primary programming language. Applications must specifically be built for Adobe AIR to use additional features provided, such as multi-touch, file system integration, native client extensions, integration with Taskbar or Dock, and access to accelerometer and GPS devices. HTML5 applications may run on the WebKit engine included in AIR.
Notable applications built with Adobe AIR include eBay Desktop, Pandora One desktop, TweetDeck, the former Adobe Media Player, Angry Birds, and Machinarium, among other multimedia and task management applications. According to Adobe, over 100,000 unique applications have been built on AIR, and over 1 billion installations of the same were logged from users across the world, as of May 2014. Adobe AIR was voted as the Best Mobile Application Development product at the Consumer Electronics Show for two consecutive years.
In June 2019, Adobe announced it would begin transitioning ongoing support and development of AIR to HARMAN. Adobe will continue to provide support for versions 32 and earlier until the end of 2020, as support will be managed by HARMAN.
Features
Using AIR, developers can access functionality including text, vector graphics, raster graphics, video, audio, camera, and microphone capability. Adobe AIR also includes additional features such as file system integration, native client extensions, desktop integration and access to connected devices. AIR enables applications to work with data in different ways, including using local files, local SQLite databases, a database server, or the encrypted local store included with AIR.Developers can access additional functionality by building [|AIR Native Extensions], which can access full device functionality being programmed in the native language.
Desktop features
On desktop platforms, AIR supports:- Window management – Opening multiple windows, minimizing, maximizing and resizing AIR windows.
- Menu bar – Adding a native menu bar to AIR windows, with sub menus and custom menu items.
- File management – Discovering drives, files and folders on the PC, creating and deleting files, renaming, copying and moving files.
- Console applications – Executing native applications with command-line arguments, and receiving feedback via standard I/O & error streams.
- Multithreading – Managing multiple threads, to execute ActionScript 3 code in the background without freezing the user interface.
- Web browser – View HTML web pages with full CSS and JavaScript support within applications, with the integrated WebKit-based web browser.
- Clipboard access – Programmatically copy or paste text, bitmaps or files into the system clipboard.
- Drag-and-drop – Allows users to drag text, bitmaps or files into AIR applications.
Mobile features
- 3D hardware-accelerated graphics rendering
- Touch-screen events
- Device camera and microphone access
- Accelerometer and geo-location sensor input
- Networking with HTTP, TCP and UDP protocols
- AIR Gamepad - allows mobile applications to serve as secondary displays and controllers for games.
3D Graphics
AIR Native Extensions
AIR apps can be augmented in functionality with the usage of AIR Native Extensions. [|Native extensions] are plug-in code libraries that contain native code wrapped with an ActionScript API, allowing developers to access native features not otherwise usable in AIR, such as Apple Game Center or Google Cloud Messaging.Native extensions may be developed by anyone using publicly available tools; some are distributed for free or even as open source, while others are sold commercially.
Native extensions may be programmed in the native language on each platform, allowing access to the full set of platform APIs provided by the developer..
Availability
AIR is a cross-platform technology and AIR applications can be repackaged with few or no changes for many popular desktop and mobile platforms. Different installation options exist for each platform.AIR applications may be published with or without the AIR runtime. Applications packaged with the AIR runtime are larger in file size, and are known as "captive runtime" applications. If the runtime is not embedded in the app, it must be installed separately.
In January 2009, Adobe claimed that there were over 100 million installations of Adobe AIR worldwide, and that "the majority of AIR runtime installations occur at the time the first AIR application is installed by a user". In May 2014, Adobe claimed that over 100,000 unique applications were built on AIR, and over 1 billion installations of the same were logged from users across the world.
Platforms
Adobe AIR, version 32, contains Adobe Flash Player 32, and is available for Windows 7 and later, as well as OS X 10.9 and later. Official support for desktop Linux distributions ceased in June 2011 with version 2.6.Adobe AIR applications can be published as native phone applications on certain mobile operating systems, such as Android and Apple iOS. In May 2017, Adobe stopped releasing AIR for Android, and the app was eventually removed from the Play Store in September 2018, but it can still be downloaded through their website, and latest AIR 33 is also supported on Android.
Platform | Installer file support | App Store support |
Windows | .air, .exe and .msi | - |
macOS | .air and .dmg | App Store |
Android | .apk | Google Play |
iOS | .ipa | App Store |
Playbook | .bar | App World |
Application development
Adobe AIR runs applications within a contained Flash Player instance. It runs web applications via WebKit rendering engine. Multiple instances of the browser can be started within a single AIR application, but JavaScript content executes with some security limitations.AIR does not provide direct access to native GUI elements such as navigation bars or controls. Native extensions can be used to access additional native resources.
Development tools
SDK
The AIR SDK is available as a free standalone download for software developers to make AIR applications. SDK users do not need to install any commercial software to use the SDK, although several options are available. AIR apps can be compiled from the command line using the AIR compiler included in the SDK; the compiler can also be called from an IDE to eliminate the need for the command line.AIR can also be used with Adobe Flex. Flex is an integrated collection of stylable graphical user interface, data manipulation and networking components, and applications built upon it are known as "Flex" applications. Flex GUIs are defined in MXML, similar to how Android and Microsoft Visual Studio define GUIs; however, Flex does not give access to native GUI components.
AIR applications built without the Flex framework allow greater flexibility and performance, and are known as "pure ActionScript" applications. Video games built on the AIR platform are typically pure-Actionscript projects. Various open-source component frameworks are available for pure ActionScript projects, such as MadComponents, that provide UI Components at significantly smaller SWF file sizes.
Software
Adobe distributes three commercial software products for developing of AIR applications in ActionScript:- Adobe Flash Builder
- Adobe Animate
- Adobe Scout
- Moonshine is a free IDE built with Apache Flex® and Adobe Air. You can create ActionScript 3, Apache Flex®, Apache Royale® and Feathers projects from Moonshine. It also provides cloud support.
- FlashDevelop, an open-source Flash ActionScript IDE, which includes a debugger for AIR applications
- Powerflasher FDT, a commercial ActionScript IDE
- CodeDrive, an extension to Microsoft Visual Studio 2010 for ActionScript 3 development and debugging
- IntelliJ IDEA, a commercial IDE supporting ActionScript 3 development and debugging
- , a powerful extension capable to turn the popular Microsoft free editor Visual Studio Code in a complete AIR IDE
JavaScript applications
Adobe provides for AIR, HTML5 and JavaScript development with Adobe Dreamweaver CS5, although any other HTML editor or text editor can be used.Adobe AIR can run a subset of JavaScript, with no ability to dynamically execute code when running in the application sandbox. According to Adobe, this restriction is designed to prevent malicious remote content from attacking a user's system. Because of this restriction, JavaScript frameworks that make use of dynamic JavaScript functions like eval were not initially compatible with Adobe AIR. However, several frameworks including Dojo Toolkit, jQuery, and ExtJS were updated to run in Adobe AIR's application sandbox. Some frameworks like MooTools were already compatible.
Dreamweaver CS4/CS3 requires an additional extension to compile AIR applications, as does Flash CS3 in the form of an update.