Examples of using the new AIR 2.0 Native Process API

In the latest Adobe® AIR® SDK you can open external programs on your computer. This was not the chase in the older versions of AIR. Here are some early examples i came across.

Adobe® AIR® 2 applications can be packaged and delivered via a native installer application, such as an EXE installer file on Windows or a DMG file on Mac OS. Such applications have the ability to launch and communicate with native processes, using the NativeProcess class.

Great Examples Native Process API

To use this new feature u need the latest AIR SDK which u can find on Adobe Labs website. Ad the following line in your flex/As3 code to check if this function exists.

1
2
3
4
5
6
7
8
9
10
import mx.controls.Alert;

//Delcare a new process
private var testProcess:NativeProcess;

//Check if NatvieProcess is avaible or not
if (!NativeProcess.isSupported)
{
     Alert.show("NativeProcess not supported");
};

Have fun coding!