/** * _ExportImages - for more information please visit: http://journal.reallyenglish.com/2010/01/30/batch-image-exporting-from-fla.html * * Running this command will; * Export .png images from each frames in the current timeline (with the currenrt .png export settings). * USE THIS COMMAND AT YOUR OWN LISK - it is strongly recommended that you test this command on copies of your files first. */ var log = ""; var logURI = ""; var dirURI = ""; (function(){ try{ dirURI = selectDir(); // dirURI must be set before doing anything if(!dirURI) throw new Error("Directory URI is not specified."); initLog(); var fileNames = FLfile.listFolder(dirURI + "*.fla", "files"); if(!fileNames || !fileNames.length) throw new Error("There are no .flas in the selected directory."); appendLog("*** Files to process: ***\n" + fileNames.join("\n") + "\n"); var cnt = fileNames.length; for(var i=0; i