使用Flex AIR2.6开发桌面程序,添加程序自己重启或启动其他exe程序, 发现NativeProcess.isSupported一直为false。除了配置文件中<supportedProfiles>extendedDesktop</supportedProfiles>,还需要在发布的时候勾选Export as:
Signed native installer, 而不是Signed AIR package.
源代码:
NativeApplication.nativeApplication.autoExit=true;
var appFile:File = File.applicationDirectory.resolvePath("AIRSelfReStart.exe");
var str:String = appFile.nativePath;
file = file.resolvePath(str);
var np:NativeProcessStartupInfo = new NativeProcessStartupInfo();
np.executable = file;
var process:NativeProcess = new NativeProcess();
process.start(np);
this.close();
开发环境 Flash Builder, SDK4.5
以下是AS3 API中对NativeProcess.isSupported的说明:
表示在当前的配置文件中是否支持运行本机进程。仅当在 extendedDesktop 配置文件中运行时,此属性才返回 true。此外,对于作为 AIR 文件安装的应用程序,NativeProcess.isSupported 始终为 false。您必须使用 ADT -target native 标志将 AIR 应用程序打包,才能使用 NativeProcess 类。
仅记录学习之用
分享到:
相关推荐
解决SVN上传提示Empty directoriesis not supported 解决SVN上传提示Empty directoriesis not supported
java解决405 - HTTP method GET is not supported by this URL
解决部分视频不能播放并提示,File is unplayable. Color space is not supported.文件无法播放。不支持颜色空间。
plex media server 1.25.4.5487 x86_64_DSM7 群晖7版本 解决部分视频不能播放并提示,File is unplayable. Color space is not supported.文件无法播放。不支持颜色空间。
网上各种教程无法解决这个工具提示 not supported not listening问题,这个安装包给出了所有需要的文件,并给出了详细的指引。 绝大多数情况你会安装成功。如果你成功了,或者失败了,请给我评论。大家看评论区。
出错的程序源代码: 看到这个源代码,大家应该疑惑了吧,这是对的啊!!!! 但是报错了: D:\PycharmProjects\python_project\venv\Scripts\python.exe D:/PycharmProjects/python_project/matplotlib/04绘制一元...
网上各种教程无法解决这个工具提示 not supported not listening问题,这个安装包给出了所有需要的文件,并给出了详细的指引。 绝大多数情况你会安装成功。如果你成功了,或者失败了,请给我评论。大家看评论区。 ...
Laravel开发-qiniu-laravel-storage Laravel5的Qiniu资源(云)存储SDK为 用于Laravel 5的qiniu资源(云)存储SDK
在启动Oracle数据库时提示:ORA-00845 MEMORY_TARGET not supported on this system错误,解决办法
django 设置settings.py,本文以mysql 为例,说明怎样配置mysql d的连接
Error:Operation category READ is not supported in state standby 待机状态下不支持操作类别读取 错误原因:显示我的master处于standby状态 解决办法:1、检查namenode的状态,如果都处在standby状态,那就是自动...
NULL 博文链接:https://lectery.iteye.com/blog/485357
Keil MDK+Jlink调试ARM7设置指南,一步一步的教您安装。
DirectX修复工具(DirectX Repair)是一款系统级工具软件,简便易用。本程序为绿色版,无需安装,可直接运行。 本程序的主要功能是检测当前系统的DirectX状态,如果发现异常则进行修复。程序主要针对0xc000007b问题...
Functional Kotlin Optimize code using Functional Programming Techniques 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
Earlier versions of Delphi and C++ Builder will not be supported. If you need Delphi 3 or C++ Builder 3 support you will have to revert to version 3.7 of the Drag and Drop Component Suite. The ...
深入浅出设计模式,以轻松的语言向你描绘出编程过程中遇到令你头痛的问题。会让你豁然开朗的感觉。
Office安装错误Per-user install not supported.txt