zoukankan      html  css  js  c++  java
  • 今天遇到了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不可以显示数字。没有天理,没有道理

  • 相关阅读:
    tricky c++ new(this)
    MCI使用
    LoadIcon的使用
    深入浅出Node.js (2)
    洛谷 P1464 Function
    洛谷 P1722 矩阵 II
    洛谷 P1036 选数
    洛谷 P1303 A*B Problem
    洛谷 P2694 接金币
    洛谷 P1679 神奇的四次方数
  • 原文地址:https://www.cnblogs.com/naiking/p/1807651.html
Copyright © 2011-2022 走看看