How can I get all the filename of a directory in flex?
In Flex How can i get all the filename which contains in a directo开发者_C百科ry in flex AIR.
use File() function
Please Refer to this Site for More Info
if dirPath:String is your directory path, then
var f:File = new File(dirPath);
var arr:Array = f.getDirectoryListing();
This gives you list of all files in the given directory. The elements of the array are File objects, each representing a file / dirctory in the given directory.
精彩评论