These things are just too simple and too useful. I love JSFL.
I make a lot of components. In recent posts you can see some of the trouble that can occur when you have assets set to export on first frame while building components. So I have a lot of files that have a lot of components that have a lot of assets.
Previous method:
Open up Library. Select item. Right click, choose Properties or Linkage. Check if item is set to export on first frame. If so, uncheck it. Move to next item.
New method:
Run the No First Frame command from the commands menu. done.
Here’s the code:
items = fl.getDocumentDOM().library;.items;
numItems = items.length;
for(var i=0; i
Hi Keith,
Well done!
But I guess, there is a typo error in following line,
fl.getDocumentDOM().library;.items;
the extra semicolon. Though, its understood.
Cheers,
Very useful. At this moment I fighting with one of my libraries. And i have another annoying issue: every time we uncheck the “Export in first frame” we shall manually place that library item to the stage in order have the possibility to attachMovie them later, aha?
So, my annoying trouble is my forgetfulness: i just forget to place the lib item to stage and then wonder why flash doesn’t attach them.
So, the little script to place them, e.g., in 5th frame, would be very useful!
I’ll try to write that script and post here.
I’d like to recommend you the JSFL scripts I’ve wrote as well…
Library Items Renamer v1.2 – http://hiddenresource.corewatch.net/index.php?itemid=4
Convert All To Clips v1.0 – http://hiddenresource.corewatch.net/index.php?itemid=6
maybe you might find them useful as well 🙂