Copy link to clipboard
Copied
Hi All!
I want to export all the images used in our Animate fla project since we need the source files for different applications.
Is there an easy way to do this? I thought I could rename to .zip and try and copy them from the archive but it looks like the structure has changed over the years.
Thanks.
Copy link to clipboard
Copied
you could use a jsfl script to loop through all items in your library, select bitmaps and then use exporttofile on the bitmaps.
Copy link to clipboard
Copied
Thanks for your answer.
I've never used a jsfl before. Are there any examples of it?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
@kglad thanks
Copy link to clipboard
Copied
you're welcome.
p.s here's sample jsfl code to export those bitmaps:
var imageFileURL = "file:///C|/exportTest/";
var lib = fl.getDocumentDOM().library;
var item;
for(var i=0;i<lib.items.length;i++){
item = lib.items;
if(item.itemType=='bitmap'){
item.exportToFile(imageFileURL+item.name+'.jpg');
}
}
Copy link to clipboard
Copied
Thanks!
Copy link to clipboard
Copied
you're welcome.