今天遇到了n个Air发布的问题

Error creating Air file:306 :ERROR,desktop,mobileDevice,or extendedMobileDevice

在打包air的时候,报错。

析:air里使用openWithDefaultApplication 不支持打包。

如果在代码里输入了如下,虽然可以在flex运行时打开exe。但是不支持打包air

var file:File=new File(File.applicationDirectory.nativePath);
file = file.resolvePath("HD-service.exe"); //service/
file.openWithDefaultApplication();

请再次注释掉air对于的-app.xml
<!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> -->
 <!--supportedProfiles>extendedDesktop</supportedProfiles-->

 

 

另外flex一个无法解释的bug

是我的homePage里的 不可以加 createCompolet和mx:script标签及内部的代码。

否则swc的swf不可以显示数字。没有天理,没有道理

你可能感兴趣的:(AIR)