Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
...
Copy link to clipboard
Copied
Copy link to clipboard
Copied
The solution is to use a line like
myFile = new File(pathAsString);
so use the File(path) constructor. Then you will be able to write files in the application directory. Solution found at http://exaflood.de/syrotech/air-securityerror-filewriteresource/.
Copy link to clipboard
Copied
This does not seem to be working in AIR 2. Can anyone else confirm this?
Copy link to clipboard
Copied
Hi losing,
Is it possible to get some sample code describing the problem you're running into? What platforms are you having issues with?
Moved discussion to the Problems and bugs forum.
Thanks,
Chris
Copy link to clipboard
Copied
Thanks.
It works fine.
Quim
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi, this is how I solved/hacked the problem.
var filePath:String = "app:/" + FileNames.DATA_COMMENTS_DIR + "/" + fileName;