url request application storage directory AS3 Air
I have an application prepared in Action Script 3. There is a part related to requesting a file from application storage directory. However when I use following codes (xmlLoader part), program looks into app directory.
How can I make it look into application storage directory or may any other code alternatives be used for this request? Thanks.
var xmlLoader:URLLoader = new URLLoader(); xmlLoader.load(new URLRequest(Puzzleoriginalpath + ".xml"));
You can get the storage directory through
Then build your path:
File.applicationStorageDirectory.nativePath + "/examplepuzzle.xml"