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"));

Answers


You can get the storage directory through

 File.applicationStorageDirectory.nativePath

Then build your path:

 File.applicationStorageDirectory.nativePath + "/examplepuzzle.xml"

Need Your Help

UITableViewRowAnimation as a block (instead of a row) animation

objective-c ios uitableview monotouch

Is there anyway to make a UITableViewRowAnimation animate at the same time?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.