var file:File = File.applicationDirectory;//创建File对象
file = file.resolvePath("D:/Program Files/example/NativeAir/NativeAir.exe"); //指定.exe文件路径
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();//AIR2.0的新类, 创建进程信息对象
// 将file指定为可执行文件
nativeProcessStartupInfo.executable = file;
//参数
var arguments:Vector.<String> = new Vector.<String>();
arguments.push(cboUrl.selectedItem);
nativeProcessStartupInfo.arguments = arguments;
var process:NativeProcess = new NativeProcess();// 创建一个本地进程
process.start(nativeProcessStartupInfo);// 运行本地进程