开发者

Compile all Opened FLA files in Flash IDE using JSFL

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜