Flash batch processing made possible using JSFL script
The feature of batch processing can't be found in any version of Flash. Maybe Macromedia/Adobe doesn't think it is very important. However, I think most professional flash developers will agree that the ability of handling multiple fla files automatically can really save you a lot of time in projects that contain a large amount of fla files.
Fortunately, flash has the powerful jsfl script, which has the ability to perform most of the functionalities in flash. With this tool, batch processing is no longer impossible.
Last summer when I'm working on a huge project which has hundreds of swfs which need to be updated from time to time, I decided to write a script to do the job for me. And it worked well. After that, I refined the code in order to make it easier to use and more universal.
Here's what this script do and how it's done.
First, this script acquires the list of all fla files from the directory user specified. Then it compare the time of the fla file to its corresponding swf file. If the fla is newer, it means the swf need to be updated.
Once all fla files are checked, the script lists all fla files that will be published and ask for confirmation of the user, and then commands the flash application to publish the selected fla files one by one. When doing so, the script automatically records time used and display results when all files are done.
Please notice that when checking directories (considering its ability to search all sub directories, checking directories could take some time) or publishing files, there's no way to interrupt the process except killing the flash.exe process in windows process manager.
How to install
- Download the script file in the attachment
- Put them in:
Documents and Settings/<Your login id>/Local Settings/Application Data/Macromedia/<Your flash version>/<language>/Configuration/Commands/ - Open flash, You should be able to see a new command named "Auto Batch Publish" in the command menu.
How to run it
- Click on the menu item "Auto Batch Publish".
- In the dialogue box, Input path of fla file, if there are more than one, use "," to seperate them.
- There are some options you can set in the dialogue box. Click OK when you want to start the checking process.
- After a while, files need to be published will be displayed in output window. At the same time a confirm dialogue is displayed, If you are ready, click yes to start the publishing process.
| Attachment | Size |
|---|---|
| batchpublish.rar | 2.24 KB |

Comments
Add to Bookmarks
Add to my Bookmarks )
Excellent job! :-).
Excellent job! :-).
Add to Bookmarks
save to my Bookmarks :)