Thx all,

I altered this version to only assign the name of the item and not the full path.

var selItems = fl.getDocumentDOM().library.getSelectedItems();

for(var i=0; i<selItems.length; i++){
   selItems[i].linkageExportForAS = true;
   selItems[i].linkageIdentifier = selItems[i].name.split("/").pop();
}

regards,
Christophe

Helen Triolo wrote:

var items = fl.getDocumentDOM().library.getSelectedItems();
for (var i=0; i<items.length; i++) {
     items[i].linkageExportForAS = true;
     items[i].linkageIdentifier = items[i].name;
}

jsfl help file: http://www.uni-weimar.de/~kleppe/flash/FlashJavaScriptHelp.jsfl

Helen

Christophe Herreman wrote:

Hi all,

does anyone know if there's a jsfl command to assign a linkage id to a selection of items in the library? The linkage id should be the same as the name of the item.

thx in advance,
Christophe



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to