Copy file to application directory
I have trouble getting it to copy file from src to destination.
var asMsg_path:String = fileRef.nativePath;
var origFileLoc开发者_如何学运维:File = File.applicationDirectory.resolvePath(asMsg_path);
var newFileLoc:File = File.applicationDirectory.resolvePath("/java/"+asMsg);
launch an AIR app in debug mode. I need to copy a file from asMsg to the Java folder in the same location as the app.
origFileLoc.moveTo(newLocation:FileReference, overwrite:Boolean);
精彩评论