Thanks for the link...I am trying to write the following piece of code
to replace(rename) a file in the 'src' directory of project folder...

        file=File.applicationDirectory.resolvePath("file.txt");
        file1=File.applicationDirectory.resolvePath("file1.txt");
        try{

        file.moveTo(file1,false);
        trace("success");
        }
        catch(error:Error){
        trace(error);
        }

but i am getting the following error:
SecurityError: fileWriteResource...
but folder has got read/write permission...can i know what may be the
problem...?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to