/ Published in: ActionScript 3

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
private function copyInto(directoryToCopy:File, locationCopyingTo:File):void { var directory:Array = directoryToCopy.getDirectoryListing(); for each (var f:File in directory) { if (f.isDirectory) copyInto(f, locationCopyingTo.resolvePath(f.name)); else f.copyTo(locationCopyingTo.resolvePath(f.name), true); } }
Comments
