[AIR] AS3读取本地文件夹中的文件
2015-08-11 17:55
344 查看
import flash.filesystem.File; import flash.net.URLLoader; //var dir:File = File.desktopDirectory; //var dir:File = File.applicationStorageDirectory; var dir:File = File.applicationDirectory; dir = dir.resolvePath("a/"); var files:Array = dir.getDirectoryListing(); for (var i:int = 0; i <files.length; i++) { trace(files[i].name); trace((files[i] as File).nativePath); }
相关文章推荐
- [AIR] AS3读取txt文档
- Exception in thread "main" com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport e
- Container with most water
- main函数中通过使用Person类和AddressBook类,创建对象、调用方法,实现以下8个功能
- Ubuntu下编译运行Kamailio
- AIX开启telnet服务
- POJ 3068 "Shortest" pair of paths(最小费用最大流-mcmf)
- Webmin version 1.760 is now available, but you are running version 1.730.
- 2015 HUAS Summer Trainning #5~A
- Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE的报错的解决方法
- Leetcode -- Container With Most Water
- Leetcode#11||Container With Most Water
- 172 Factorial Trailing Zeroes
- HDU 1532 Drainage Ditches
- SmtpClient发邮件时为什么用MailMessage.From而不用MailMessage.Sender
- MDK __main过程分析
- 树形DP - hdu5293 Tree chain problem
- HDU - 4630 No Pain No Game (线段树 + 离线处理)
- Binder与AIDL服务
- **深入浅出的事件路由(view hit test)**