RossMalan
04-21-2008, 08:14 AM
Hi
I'm new to actionscript and have ran across an error which makes no sense to me.
My code:
function backupFile()
{
try
{
var sourceFile:FileReference = new FileReference();
sourceFile = File.applicationStorageDirectory.resolvePath("IRPFile.db");
var dest:FileReference = new FileReference();
dest = File.documentsDirectory.resolvePath("C:\Documents and Settings\ross.malan\Desktop\IPRFile.db");
var boo:Boolean = true;
dest.copyTo(sourceFile, boo);
}
It keeps throwing a 1061 error when I compile, but I set my code up pretty much exactly as it was in the adobe documentation.
Any help please?
I'm new to actionscript and have ran across an error which makes no sense to me.
My code:
function backupFile()
{
try
{
var sourceFile:FileReference = new FileReference();
sourceFile = File.applicationStorageDirectory.resolvePath("IRPFile.db");
var dest:FileReference = new FileReference();
dest = File.documentsDirectory.resolvePath("C:\Documents and Settings\ross.malan\Desktop\IPRFile.db");
var boo:Boolean = true;
dest.copyTo(sourceFile, boo);
}
It keeps throwing a 1061 error when I compile, but I set my code up pretty much exactly as it was in the adobe documentation.
Any help please?