zoukankan      html  css  js  c++  java
  • App AIR for Desktop

    1.fb中新建ActionScript项目,应用程序类型选 桌面(在Adobe AIR中运行)

    2.主类中构造函数加上如下代码

    if(stage.fullScreenWidth < stage.fullScreenHeight)
    {
    stage.setOrientation(StageOrientation.ROTATED_RIGHT);
    }
    // 支持 autoOrient
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.EXACT_FIT;//让舞台大小随swf窗口拖动而变化
    stage.displayState = StageDisplayState.FULL_SCREEN;

    3.打包,到处发行版,导出为具有运行时绑定的已签名应用程序

    4.导出后生成的与项目名相同的文件夹××中的exe文件,即可打开游戏,如果bin-debug有xml配置文件,声音,图片资源要复制到这个××文件包中来才能打开exe文件

    5.bin-debug中的项目swf如果打不开需要将 属性>ActionScript编译器>附加的编译器参数改为-use-network=false

  • 相关阅读:
    【bzoj1010】[HNOI2008]玩具装箱toy
    bzoj 3173
    bzoj 1179
    bzoj 2427
    bzoj 1051
    bzoj 1877
    bzoj 1066
    bzoj 2127
    bzoj 1412
    bzoj 3438
  • 原文地址:https://www.cnblogs.com/kuailezoe/p/3245377.html
Copyright © 2011-2022 走看看