The following example shows how you can use JSFL to save and compact each of the currently open documents in the Flash Authoring IDE by looping over the fl.documents array and calling the saveAndCompact() method.
Full code after the jump.
// JSFL for each (var doc in fl.documents) { fl.trace("Saving and compacting \"" + doc.name + "\"..."); var success = doc.saveAndCompact(); }
{ 0 comments… add one now }