Personal tools

Views

AIR 2:Developer FAQ

From Adobe Labs

Table of contents
[edit]

General

[edit]

Why are you having a public beta for Adobe AIR 2?

There are two primary reasons why we're releasing a public beta of AIR 2:

  1. We want developers to be able to start taking advantage of AIR 2 features as early as possible.
  2. It's imperative that developers test their applications against AIR 2 and report any bugs they find. Existing applications should run identically between earlier versions of AIR and AIR 2; if you find that this isn't the case, it's extremely important that you let us know.
[edit]

What's new in Adobe AIR 2 beta 2 runtime?

In addition to hundreds of bug fixes, new capabilities include:

[edit]

What's changed in the AIR 2 beta SDK?

[edit]

When was Adobe AIR 2 beta 2 released?

The Adobe AIR 2 beta 2 was released on February 2, 2010.

[edit]

Where can I download the Adobe AIR 2 beta 2 runtime and SDK?


[edit]

Where can I download documentation for Adobe AIR 2 beta?

The documentation for the AIR 2 beta including the Adobe AIR Developer Guide and ActionScript Language Reference can be downloaded from Adobe Labs:

[edit]

Which platforms is the AIR 2 beta runtime available for?

The beta is available for Mac, Windows, and Linux. Please test your applications on as many platforms as you can.

[edit]

What are the capabilities available in the AIR 2 Beta?

[edit]

What are the system requirements for the AIR 2 beta?

Please see the "system requirements" section of the Adobe AIR 2 beta 2 Release Notes.

[edit]

How have the system requirements changed from AIR 2?

[edit]

Where can I find a list of known issues in the AIR 2 beta?

A list of known issues is listed in the Adobe AIR 2 beta 2 Release Notes.

[edit]

Can I have AIR 1.5 and AIR 2 beta runtimes installed on the same machine?

No. The AIR 2 beta will automatically replace AIR 1.5. This means that all your AIR applications will run under the AIR 2 beta.

[edit]

How do I go back to AIR 1.5.2 if I don't want to run the AIR 2 beta anymore?

To roll back to AIR 1.5.2, you must first uninstall the AIR 2 beta:

The most current release of AIR can then be installed from here.

Important: If you are uninstalling the AIR 2 beta because of problems you're having running existing AIR 1.5 applications, please report these issues so that we can be sure they are fixed in the final AIR 2 release.

[edit]

When AIR 2 is released, will all machines running AIR 1.5 automatically be updated to AIR 2?

Once AIR 2 is released, users will be automatically updated to AIR 2 within two weeks of the release so long as the user is an admin on their machine.

In enterprise environments where network administrators control when updates to software are deployed to end-users, AIR 2 may not be automatically updated until it approved by a network admin.

[edit]

Does the AIR 2 beta support 64-bit Linux?

No. Though we are working on adding 64-bit support for Linux, this will not be made available in either the AIR 2 beta or final release. Our goal is to add support for 64-bit support in an update after the release of AIR 2.

In the meantime, 64-bit Linux users can perform the following instructions: http://kb2.adobe.com/cps/521/cpsid_52132.html

[edit]

When will the final version of AIR 2 be released?

We expect to ship the final version in the first half of 2010.

[edit]

Will the AIR 2 beta 2 expire?

Yes. The AIR 2 beta 2 will expire on September 1st, 2010.

[edit]

Will there be additional betas?

Depending on feedback, we may release an additional beta.

[edit]

Does the Adobe AIR 2 beta 2 support smart phones?

No. Our vision for AIR is to bring it to a number of device types including smart phones. We are currently evaluating smart phone platforms.

[edit]

Can I upload applications to the Adobe AIR marketplace?

Once AIR 2 officially ships, we will begin accepting AIR 2 applications on the AIR marketplace.

[edit]

Can I post an AIR 2 application on my website and distribute it?

Of course! However, the badge installer will not work until the final version of AIR 2 is made publicly available.

[edit]

Application Development

[edit]

How do I port my applications from AIR 1 to the AIR 2 beta?

AIR 1 applications should run without change using the AIR 2 beta. However, if you encounter any application that behaves different using the AIR 2 runtime, please let our team know by sending us feedback.

[edit]

How do I take advantage of the new capabilities in the AIR 2 beta?

In order to use the new features in AIR 2, the namespace in your application descriptor file must reference "http://ns.adobe.com/air/application/2.0beta2".

Note: this namespace will not be supported in the final AIR 2 release. When AIR 2 is released, you will have to update the namespace, rebuild, and repackage any applications developed using the beta version. Adobe reserves the right to make incompatible API changes between the beta and final releases.

[edit]

How can I overlay the Adobe AIR SDK for use with the Flex SDK?

Detailed instructions for overlaying the AIR SDK can be found in the AIR 2 release notes.

[edit]

How can I overlay the Adobe AIR SDK for use with Flash CS4?

Follow the instructions provided above for overlaying the SDK for use with Flex Builder, but rather than copying and extracting into the "sdks/3.2.0" folder, use the "AIK1.5" folder, instead.

[edit]

Can I use the Flash Builder beta to build AIR 2 applications?

Yes. You can download the Flash Builder beta here: http://labs.adobe.com/technologies/flashbuilder4/

If you encounter bugs, please send us feedback.

[edit]

Can I use an install badge to deploy my AIR 2 beta application?

No. Deploying your application using an install badge will be possible when the final version of AIR 2 is made available.

[edit]

Where can I view and download source code for applications that demonstrate the new features in AIR 2 beta?

Download AIR 2 beta samples and source code

[edit]

As a JavaScript developer, how do I take advantage of the new profiling capabilities?

We have partnered with Aptana to add JavaScript profiling support in Aptana Studio. In order to take advantage of the new profiling capabilities, you will need download the latest extension from Aptana.

To download the Aptana plugin for Adobe AIR and to see a video overview of the feature, please visit the following page: http://www.aptana.org/air/

[edit]

Will the content protection features of AIR that depend on Flash Rights Management Server work in the AIR 2 beta?

Yes.

[edit]

Does the Adobe AIR 2 beta 2 include the Flash Player 10.1?

Yes, the Adobe AIR 2 beta 2 includes the beta version of Flash Player 10.1

[edit]

Will applications built using Flex 4 work in the Adobe AIR 2 beta?

Yes. If you encounter bugs, please send us feedback.

[edit]

Does the AIR 2 beta support accessibility?

It is possible to build accessible applications using the AIR 2 Beta. Existing applications may work with screen readers such as JAWS 11 without modification, but developers are advised to modify their applications to take advantage of these new features. You can learn more about accessibility in AIR 2 here: http://www.adobe.com/devnet/air/flex/articles/creating_accessible_apps_in_air_and_flex.html and by watching this Adobe MAX 2009 presentation on accessibility with custom components: http://tv.adobe.com/watch/max-2009-develop/building-accessible-flex-and-adobe-air-applications/

In addition, the AIR 2 Beta 2 installer will work with MSAA-enabled screen readers, such as JAWS 11 and NVDA.”


[edit]

Can AIR 2 detect and interact with any kind of peripheral device?

No. AIR 2 can detect the mounting and un-mounting of devices which expose themselves as mass storage volumes. This feature does not allow AIR to communicate with other kinds of devices such as some digital cameras, GPS devices, or custom hardware. If you need to communicate with peripherals that do not expose themselves as mass storage devices, you can use the NativeProcess API to launch and communicate with a native process which can, in turn, communicate with your device.

[edit]

Which mass storage devices can AIR 2 detect?

AIR 2 can detect the mounting and un-mounting of any device that exposes itself to the operating system as a storage volume. For example, Flip cameras and flash card readers are supported because they show up in the Finder (on OS X) and in Windows Explorer (on Windows) as storage devices. Digital cameras like the Canon PowerShot G9 or some mobile phones like the Apple iPhone cannot be detected by AIR because they use other protocols to communicate with the operating system rather than exposing themselves as mass storage devices. If your application depends on AIR 2 detecting a specific device, we recommend testing it with the AIR 2 public beta. If AIR cannot detect the device and you believe that it should, please let us know.

[edit]

How do I launch .bat files using the native process API in AIR 2?

When invoking a .bat file directly using a native process API, the AIR runtime will report an error ("Error #3219: The NativeProcess could not be started.").

Passing command-line parameters to .bat files is a known injection vector. The AIR runtime, therefore, restricts calling .bat files directly.

To invoke a .bat file, you can call cmd.exe and pass the path of the .bat file you wish to execute as a parameter.

Important: Any parameters passed to cmd.exe should be validated in order to reduce the risk of injection.

Since the location of cmd.exe can vary between versions of Windows operating systems, you will need to first write the necessary code to find the location of cmd.exe on the user's system.

This can be accomplished by writing a simple helper .exe application that, when invoked using AIR's native process API, calls the Win32 API GetEnvironmentVariable("%COMSPEC%") and returns the path of cmd.exe. Once the path is known, another native process can be created that calls cmd.exe with the .bat file passed as a validate argument.

For additional information, see the links below.

Microsoft's cmd.exe documentation

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cmd.mspx?mfr=true

GetEnvironmentVariable Function

http://msdn.microsoft.com/en-us/library/ms683188(VS.85).aspx


[edit]

News

[edit]

Where can I find the latest news and information about Adobe AIR?

[edit]

Feedback

[edit]

Are there forums available for posting questions?

Yes. Developers are encouraged to join other AIR 2 beta prerelease users on our user-to-user forums: http://forums.adobe.com/community/labs/air2/

[edit]

How can I submit bugs or feature requests back to the AIR team?

If you have feedback or suggestions on how we can improve AIR, please let us know by sending us an email using our feedback form.

[edit]

Can I report issues with the AIR 2 documentation?

Absolutely! We take the quality of our documentation very seriously. Please report bugs for any issues you see with our documentation, including documentation that you think is incorrect, or that you think is confusing or insufficient.

[edit]

How can I provide feedback on this FAQ?

If you would like to provide feedback on this FAQ, please let us know by sending an email using our feedback form.

Retrieved from "http://labs.adobe.com/wiki/index.php/AIR_2:Developer_FAQ"