zanshin
05-27-2009, 04:27 PM
I'm currently using Flex, AS3, and AIR.
I'm trying to upload mulitple xml files in on call. I know how to use the FileReferenceList(), but I don't want a browse screen for the user to select from. I want to automantically retrieve all files based on their extension within a directory. Below is how I currently retrieve one file. Can this be modified to retrieve one to many.
//code
var charFile:File = File.applicationStorageDirectory;
charFile = charFile.resolvePath("krychec.xml");
var fileStream:FileStream = new FileStream();
fileStream.open(charFile, FileMode.READ);
charXML = XML(fileStream.readUTFBytes(fileStream.bytesAvaila ble));
fileStream.close();
I'm trying to upload mulitple xml files in on call. I know how to use the FileReferenceList(), but I don't want a browse screen for the user to select from. I want to automantically retrieve all files based on their extension within a directory. Below is how I currently retrieve one file. Can this be modified to retrieve one to many.
//code
var charFile:File = File.applicationStorageDirectory;
charFile = charFile.resolvePath("krychec.xml");
var fileStream:FileStream = new FileStream();
fileStream.open(charFile, FileMode.READ);
charXML = XML(fileStream.readUTFBytes(fileStream.bytesAvaila ble));
fileStream.close();