1 import flash.filesystem.File; 2 import flash.net.URLLoader; 3 //var dir:File = File.desktopDirectory; 4 //var dir:File = File.applicationStorageDirectory; 5 var dir:File = File.applicationDirectory; 6 dir = dir.resolvePath("a/"); 7 var files:Array = dir.getDirectoryListing(); 8 for (var i:int = 0; i <files.length; i++) { 9 trace(files[i].name); 10 trace((files[i] as File).nativePath); 11 }
时间: 2024-11-05 06:26:54