为什么不支持AIR NativeProcess?

Sam*_*art 4 apache-flex air actionscript

我正在使用Flash Builder构建一个桌面应用程序,我需要它来运行.exe程序.我下载并安装了最新的AIR SDK,将它放在我的Flash Builder sdks文件夹中并让我的项目使用它.现在我没有任何编译器错误,但是:

     if(NativeProcess.isSupported)
            {
                var file:File = new File("C:\Torres.exe");
                var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
                nativeProcessStartupInfo.executable = file;
                var process:NativeProcess = new NativeProcess();
                process.start(nativeProcessStartupInfo);
            }
Run Code Online (Sandbox Code Playgroud)

我检查了它,它永远不会进入if块.为什么不支持nativeprocess?有任何想法吗?

Ste*_*eAp 12

加上这个

<supportedProfiles>extendedDesktop</supportedProfiles>
Run Code Online (Sandbox Code Playgroud)

到你的应用程序的清单文件.使用NativeProcess需要扩展权限.

该文章可能会有所帮助:http://www.adobe.com/devnet/air/flex/articles/air_screenrecording.html