JSFL to export all components as SWCs

I needed to export a bunch of components from a source FLA several times for testing. Doing this manually got tedious very quickly, so, I created a small JSFL script to loop through the library and export all components.

var rootDir = "file:///C|/Documents and Settings/Sam/" +
"Local Settings/Application Data/Macromedia/" +
"Flash MX 2004/en/Configuration/Components/" +
"B-Line Charting Components 3.0/";

var items = fl.getDocumentDOM().library.items;
var item;
var j=0;
for (var i=0; i

Just change the root dir and put in your command folder.

This entry was posted in Uncategorized by Sam. Bookmark the permalink.

One thought on “JSFL to export all components as SWCs

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>