Question

Is there is a JSFL script to compile all opened fla in the Flash IDE?

Was it helpful?

Solution

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.

OTHER TIPS

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/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top