zoukankan      html  css  js  c++  java
  • jsfl批量导出swf

    var inputPath = "file:///E|/work/war_test/bin-debug/fla/fight/";
    var exportPath="file:///E|/work/war_test/bin-debug/swf/fight/";
    fl.trace(inputPath);
    //封装成一个函数
    function IOExecute(flaName,swfName){
    //打开需要导出的fla源文件
    var fla=fl.openDocument(inputPath + flaName);
    //导出影片
    fla.exportSWF(exportPath + swfName,false);
    //关闭源文件
    fl.closeDocument(fl.documents[0],false);
    }
    //执行函数
    /*IOExecute("am.fla","am.swf");
    IOExecute("index.fla","index.swf");
    IOExecute("navi_link.fla","navi_link.swf");
    IOExecute("night.fla","night.swf");
    IOExecute("nightfall.fla","nightfall.swf");
    IOExecute("products.fla","products.swf");
    IOExecute("products_loader.fla","products_loader.swf");*/
    IOExecute("战步兵-近卫步兵.fla","f4.swf");
    IOExecute("战步兵-猎兵.fla","f2.swf");
    IOExecute("战步兵-燧发枪兵.fla","f1.swf");
    IOExecute("战步兵-医务兵.fla","f3.swf");
    IOExecute("战步兵-掷弹兵.fla","f5.swf");
    IOExecute("战炮兵-长管炮兵.fla","f12.swf");
    IOExecute("战炮兵-短重炮兵.fla","f13.swf");
    IOExecute("战炮兵-攻城炮兵.fla","f14.swf");
    IOExecute("战炮兵-加农炮兵.fla","f11.swf");
    IOExecute("战炮兵-巨炮兵.fla","f15.swf");
    IOExecute("战骑兵-皇家骑兵.fla","f8.swf");
    IOExecute("战骑兵-猎骑兵.fla","f6.swf");
    IOExecute("战骑兵-龙骑兵.fla","f10.swf");
    IOExecute("战骑兵-轻骑兵.fla","f7.swf");
    IOExecute("战骑兵-重骑兵.fla","f9.swf");

    IOExecute("战船-单桅商船.fla","f16.swf");
    IOExecute("战船-双桅横帆船.fla","f17.swf");
    IOExecute("战船-纵帆船.fla","f18.swf");
    IOExecute("战船-双桅纵横帆帆船.fla","f19.swf");
    IOExecute("战船-三桅战船.fla","f20.swf");
    IOExecute("战船-巡航战船.fla","f21.swf");
    IOExecute("战船-海盗船王.fla","f22.swf");

  • 相关阅读:
    20159302 《网络攻击与防范》第三周学习总结
    Json序列化空时间字段出异常
    IIS 原理
    谴责盛大Bambook 的ADB.EXE流氓进程
    Fix: ADB server didn’t ACK
    在线UI设计
    解决装Windows蓝屏问题。
    如何成为一个C++高级程序员
    Python编程规范及性能优化
    iDempiere 使用指南 插件安装过程
  • 原文地址:https://www.cnblogs.com/as3lib/p/2688435.html
Copyright © 2011-2022 走看看