关于AIR打开相关的文件
打开相关的文件,需要配置文件,以及发不成EXE安装包
其中 <supportedProfiles></supportedProfiles>里的参数应该为extendedDesktop
<supportedProfiles>extendedDesktop</supportedProfiles>
打开路径文件:
public static function Open(url:String):void {
//获得文件位置,url是路径 var file:File = new File() file.nativePath = url trace("打开", file.nativePath)
//打开,注意,配置文件,以及保证路径的正确 file.openWithDefaultApplication() }