Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Adobe AIR Developer Center /

iOS features in Adobe AIR 2.6

by Christian Cantrell

Christian Cantrell
  • blogs.adobe.com/cantrell

Created

21 March 2011

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
Adobe AIR iOS mobile multiscreen

Requirements

Prerequisite knowledge

This article is intended for Adobe AIR developers who are familiar with ActionScript 3.

User level

All

Required products

  • Adobe AIR

Almost a year ago, Adobe stopped development on AIR for iOS due to a change in Apple's developer program license. Instead, we began focusing very heavily on Android. The result was AIR 2.5 which brought not only most of the existing AIR APIs to Android devices, but several new APIs, as well. When Apple removed the restrictions late last year, we were therefore in the very strange position of having our iOS and Android versions of AIR almost a full version out of sync.

Although there are several desktop features in AIR 2.6, the primary theme is bringing the Android and iOS releases back into alignment. This article outlines all the new features and APIs available in AIR 2.6 on iOS.

It's worth emphasizing how unusual the circumstances were that led to our iOS and Android releases being out of step, and that it isn't an issue that we take lightly. As soon as we decided to continue development on iOS, we put together a plan to get back to feature parity between the two platforms, and we fully intend to keep our platforms synchronized from now on.

StageWebView

In the desktop version of AIR, we bundle WebKit in order to power HTML-based applications, and to allow Flash applications to embed an HTMLLoader for displaying HTML content and executing JavaScript. For mobile versions of AIR, we don't bundle our own version of WebKit, primarily in order to keep the size of the runtime down. Instead, we added the StageWebView API. StageWebView uses the system web control provided by the operating system so that we don't have to bundle our own renderer and JavaScript engine. Version 2.5 added StageWebView support for Android, and AIR 2.6 adds support for iOS.

Bitmap Capture in StageWebView

The new drawViewPortToBitmapData function on StageWebView lets you capture the view port of a StageWebView and draw it to a bitmap. This feature has two primary use cases. The first and most obvious is the ability to grab a "screen capture" of the StageWebView, and the second (related) use case has to do with positioning Flash content on top of a StageWebView. Since it's not possible to position Flash content on top of a StageWebView (Flash content is always drawn below), taking a snapshot of the content lets developers swap the StageWebView out for a bitmap when you need to position Flash content on top of it, then swap the StageWebView back when you're ready.

Microphone

AIR 2.6 adds support for the Microphone class on iOS.

Camera

AIR 2.6 adds support for the Camera class on iOS.

CameraUI

The CameraUI class lets users use the default camera application on their devices to takes pictures and capture video. We added the CameraUI class in AIR 2.5 for Android, and AIR 2.6 brings it to iOS.

CameraRoll

The CameraRoll class enables saving images to, and loading images from, a device's photo gallery. We added the CameraRoll class in AIR 2.5 for Android, and AIR 2.6 brings it to iOS.

Retina Display Support

With AIR 2.6, developers can optionally take advantage of the high-resolution iPhone and iPod touch 4 screens (retina displays). If developers opt in to the higher resolution screen, APIs like Stage.stageWidth, Stage.stageHeight, and Capabilities.screenDPI will be adjusted accordingly. In addition, the AIR SDK now supports the higher resolution 114x114 icons for the home screen.

Better Multi-tasking Support

With 2.6, AIR applications will get activate and deactivate events on iOS as users switch to and from the application. AIR apps will also be properly resumed rather than restarted (unless the OS has decided to kill it for some reason, which both iOS and Android reserve the right to do).

Integration of PFI into ADT

The PFI (Packager for iPhone) utility is gone, and its functionality has been integrated into ADT. ADT can now be used to package AIR files, native desktop installers, Android applications, and iOS applications. I should also mention that iOS applications (IPA files) can be built and copied to iOS devices on Windows using ADT and iTunes.

Where to go from here

Now that AIR for iOS and AIR for Android are back in sync, it's time for developers to start building true multiscreen applications. Here are some resources to help you get started:

  • Video: Developing on AIR in iOS
  • Writing multiscreen AIR apps
  • Authoring mobile Flash content for multiple screen sizes

More Like This

  • What's new in Adobe AIR 3
  • Installation and deployment options in Adobe AIR 3
  • Using Flash Builder 4.5 to package applications for Google Android devices
  • Using Flash Builder 4.5 to package applications for BlackBerry Tablet OS devices
  • Uploading images from CameraRoll and CameraUI
  • Licensing Adobe AIR applications on Android
  • Multiscreen development techniques with Flex and Adobe AIR
  • Using Flash Builder 4.5 to package applications for Apple iOS devices
  • Packaging Adobe AIR applications
  • Considerations for developing Adobe AIR applications for mobile

Tutorials and samples

Tutorials

  • Using the iOS Simulator to test and debug AIR applications
  • Using the Amazon In-App Purchase Adobe AIR native extension for Android and Kindle Fire
  • Transferring data with AIR native extensions for iOS – Part 3
  • Exchanging Vector and Array objects between ActionScript 3 and C, C++, or Objective-C

Samples

  • Licensing Adobe AIR applications on Android
  • Using web fonts with Adobe AIR 2.5
  • Using Badger for Adobe AIR applications

AIR blogs

More
07/09/2012 Protected: Publishing Adobe AIR 3.0 for TV on Reference Devices
07/08/2012 Source Code: Adobe AIR 3.3 Retina Video Application
07/06/2012 Application specific File Storage on Adobe AIR based ios Application
07/04/2012 Recent Work - iPad/Android App: Inside My toyota

AIR Cookbooks

More
02/09/2012 Using Camera with a MediaContainer instead of VideoDisplay
01/20/2012 Skinnable Transform Tool
01/18/2012 Recording webcam video & audio in a flv file on local drive
12/12/2011 Date calculations using 'out-of-the-box' functions

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement