A JSFL script for batch publish multiple fla files

One bad thing about flash is that there's no batch process command in flash. Sometimes, batch process will save a lot of man power, especially when you are working on large projects.
Fortunately, flash has jsfl script, and it's very powerful.
So last summer when I'm working on a huge project with hundreds of swf in it, this script was born.

Here's what this script do and how it's done.
First, this script acquires the list of fla file need to be published.
Then jsfl command the flash application to publish the list one by one.

After excute, the script pop up a dialog ask for pathes of fla files, you can input more than one path.
Then it use FLfile to search the input path, find out every fla file and its related swf filein it and its sub folder, then compare their time, if the fla is newer than the swf, put the fla in the publish queue.
After user confirm the publish queue, the script publish these fla files, then report time used after finish.
In publishing state, you cannot cancel.

How to install

  • Download the script file in attachment
  • Put them in:
    Documents and Settings//Local Settings/Application Data/Macromedia///Configuration/Commands/
  • Open flash, in command menu, choose Auto Batch Publish
  • Input path of fla file, if more than one, use "," to seperate them.
  • There's some options you can choose whether search sub folders/ publish only new fla or publish every fla...
  • After a while, files need to be published will be displayed in output window. At the same time a confirm dialog is displayed, If you are ready, click yes to start the publishing process.
AttachmentSize
batchpublish.rar2.24 KB

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.