开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜