JSFL: Publish All

Flash MX 2004 has Save All under the file command but does not have a Publish All. I have 7 documents I’m currently working on and updating constantly throughout the day. Instead of clicking each tab, and then Shift + F12, I wanted one click publishing. BOOYAH, the attached JSFL script does it.

function publishAllDocuments()
{
        var i = fl.documents.length;
        while(i--){
                fl.documents[i].publish();
        }
}

publishAllDocuments();

5 Replies to “JSFL: Publish All”

  1. Not sure if all your files are for the same project, but if so why not set up a Flash Project in the Project Manager and then you can just hit Test Project and export everything out. I have come to LOVE this Panel. I will defiantly try out that JSFL script though because sometimes I have multiple files open that aren’t for the same project.

    Thanks…

  2. In my case, I’m copying into specific directories for a C app, so they don’t run on their own per se, but in that case, I probably would set a default FLA as the project in my project file; for now, it’s just a plethora of SWC-headin’ SWF’s.

  3. function publishAllDocuments()
    {
    for(var doc in fl.documents){
    fl.documents[doc].publish();
    }
    }

    publishAllDocuments();

    *************************
    For Flash CS3

Comments are closed.