Not yet rated

Problem

While Flash IDE is open and multiple FLAs are in progress you may want to publish them all at once.

Solution

Create a Flash JavaScript command.

Detailed explanation

Create a new JSFL document and type:

// create open document array var
var fla = fl.documents;
// cycle through array
for(var i = 0; i < fla.length; i++)
{
//fl.trace(i + " " + fla[i].name); // traces out name of each open FLA
//fl.outputPanel.trace(fla[i].publishProfiles + "\n"); // traces out the profile to be used to publish
fla[i].publish(); // publish each FLA
}


Save the JSFL as "Publish All Open FLAs.jsfl" to the Commands folder in your local Flash user configuration:
[USER] / [AppSupport] /Adobe/Flash CS5/en_US/Configuration/Commands

Close JSFL.


With all FLAs to be published open go to Commands > Publish All Open FLAs.


This will publish all of the open FLAs in the order in which they were opened, not in tab order.


You can also set a keyboard command in Preferences to make it easier (mine is cmd + alt + shft + enter)


+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes