PDA

View Full Version : linking/properties all Items in Library


NWBattles
04-13-2009, 07:50 PM
Totally, completely new to JSFL

I need to 1)convert to movie clip, 2)export for AS/Export in 1st frame *tons* of art in my library--hopefully with 3)linkage identifier as file name minus .ai extension.

Can anyone help with a JSFL file please?

I've tried under the history panel to record these steps and then modify to ALL the items in the library. Thank you.

~N

NWBattles
04-13-2009, 08:25 PM
Okay I have this so far, which will convert my art into MC's and link export for AS about 2 files then crash :)

var doc = fl.getDocumentDOM();
var lib = doc.library;
lib.selectAll();

if(lib.getSelectedItems().length != 0)

lib.setItemProperty('symbolType', 'movie clip');
if (lib.getItemProperty('linkageImportForRS') == true) {
lib.setItemProperty('linkageImportForRS', false);
}
lib.setItemProperty('linkageExportForAS', true);
lib.setItemProperty('linkageExportForRS', false);
lib.setItemProperty('linkageExportInFirstFrame', true);
lib.setItemProperty('linkageClassName', '');
lib.setItemProperty('scalingGrid', false);


What am I missing?

thank you,

~N