Shaun_Max Actually File.applicationDirectory
and File.applicationStorageDirectory
are different directories. I wrote a test program too and put a foo.txt file at the project root:
package {
import flash.display.Sprite;
import flash.filesystem.File;
public class Main extends Sprite {
public function Main() {
trace(new File('app:///foo.txt').exists);
}
}
}
It traced true
, but I think I forgot to include that file somewhere (app.xml descriptor I think), so if I export the app, the foo.txt
won't be included.