The following example shows how you can use JSFL to loop over each open document in the Flash Authoring IDE using the fl.documents array.
Full code after the jump.
// JSFL fl.outputPanel.clear(); var docs = fl.documents; if (docs.length > 0) { for (var i=0; i<docs.length; i++) { var doc = docs[i]; fl.trace(doc.name + ": ActionScript " + doc.asVersion.toString()); } } else { fl.trace("No Flash documents currently open."); }
{ 0 comments… add one now }