private function getFile(directory:File) { var files:Array = directory.getDirectoryListing(); for(var i:uint = 0; i < files.length; i++) { var nowfile:File = files[i]; } }
/** * 查找 目录 url 下所有 以 __prefix 为后缀的 文件 * @param url */ private function getFile(url:String,__prefix:String){ var directory:File=new File(url); var FtFiles:Array = directory.getDirectoryListing(); var FtFileLg:uint = FtFiles.length; for(var i:uint = 0; i <FtFileLg; i++){ if (FtFiles[i].isDirectory){ getFile(FtFiles[i].nativePath); }else{ if (FtFiles[i].name.split(".")[1] == __prefix){ excuteOrderHdl(FtFiles[i].nativePath); } } } }