I'm having problems with getting a list of files and getting them in Flash as an array. I now have the following SWFkit script:
Code:
var f = new Folder("d:\\pictures");
trace(f.files("*.jpg"));
FlashPlayer.setVariable("_root.filesarray", f.files.toString);
I know I made the list of files into a string but that's the best I've gotten it to do. So in Flash I need to get:
filesarray = ["picture1.jpg","picture2.jpg","picture3.jpg"];
But this gives me a string with all filenames AND paths (I don't need the folder path).
Help
