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