0) { listing = listings.pop(); count = counts.pop(); index = indexes.pop(); output.text = outputs.pop(); index++; callLater(scanFiles); } else { output.text = "done!"; callLater(saveDB); } } private function saveDB():void { var xml:XML = ; for (var p:String in db) { var script:XML =