/* * FLPMAKER the ellipsis way * needs cleaning and maybe some more features, but hey it works! * thanks to my cat, guy watson for the jsfl file API, i2off and giorgiolive! * * take care! * bugs? love? valerialaura@gmail.com */ // // tenes que crear un project nuevo // tiene que estar dentro de la folder que queres duplicar fl.outputPanel.clear() fl.trace("create an empty project inside your main project folder, and close it :) \n then choose it and that's it.") var fileURI = fl.browseForFileURL("select", "SELECT PROJECT TO POPULATE") var projectName=fileURI.substring(fileURI.lastIndexOf("/")+1, fileURI.lastIndexOf(".")); var folderURI = fileURI.substring(0, fileURI.lastIndexOf("/")); folderNames=FLfile.listFolder(folderURI,"directories") fileNames=FLfile.listFolder(folderURI,"files") // ya tengo el array, ahora tengo que ir recursivamente por ahi y agregar files y folders var cosas = {}; var output = ""; for (var k=0;k\n' drawObject(cosas) output += '' //fl.trace(output) fl.trace("DONE! you can open your project now :)"); // una vez que tengo el xml FLfile.write(fileURI,outputStr)+ para escribirlo! FLfile.write(fileURI,output) ///////////////// function recorroFolder (fURI, fName, obj) { var filesIn = FLfile.listFolder(fURI + "/" + fName,"files") for (var k=0;k output += '\n' drawObject(o[i]); output += '' } else { var filetype = i.substring(i.lastIndexOf(".")) var path = "." + o[i].substr((o[i].indexOf(folderURI)+folderURI.length)); output += '\n' } } }