开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜