Is there is a JSFL 开发者_Python百科script to compile all opened fla in the Flash IDE?
This snippet will compile all open files according to their export settings:
function export_all(){
var docs=fl.documents;
var docs_length=docs.length;
for (var i=0; i<docs_length; i++) {
var doc=docs[i];
doc.publish();
}
}
export_all();
Source: http://www.agileflash.com/2010/04/publish-all-opened-fla-files-using-jsfl/
The JSFL you found is the most straightforward way, but also remember that you can publish all FLAs in a project file right from the project window (Window -> Other Panels -> Project in Win/CS5), without having to have each file open.
精彩评论