文章目录

转自 http://www.cnblogs.com/as3lib/archive/2012/09/17/2688435.html

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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\");

♦ 本文固定连接:https://www.gsgundam.com/archive/2013-01-25-jsfl-export-swf/

♦ 转载请注明:GSGundam 2013年01月25日发布于 GSGUNDAM砍柴工

♦ 本文版权归作者,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文链接。

♦ 原创不易,如果页面上有适合你的广告,不妨点击一下看看,支持作者。(广告来源:Google Adsense)

♦ 本文总阅读量