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");

  • 相关阅读:
    python 购物车和三级菜单
    python-装饰器
    day3 python 函数
    day3 python 集合 文件
    two day python基础知识
    python-day 1
    Cordova 环境搭建
    javascript在html直接传值
    JavaScript疑难点
    Javascript创建对象的方法
  • 原文地址:https://www.cnblogs.com/as3lib/p/2688435.html
Copyright © 2011-2022 走看看