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

  • 相关阅读:
    网页显示UIWebView(一个)
    借百度数据,建立你自己的程序
    引水数据--紧凑
    Unity3d 实时折射和反射
    snmp监控磁盘
    Linux snmp监控
    20监控工具
    Java 四舍五入
    Oracle主键操作
    SnmpTrap
  • 原文地址:https://www.cnblogs.com/as3lib/p/2688435.html
Copyright © 2020-2023  润新知