Hi All,

 
I've been going through an exercise by Karl Matthews to load XML data into an 
AIR App:

 
http://www.adobe.com/devnet/air/flex/articles/xml_viewer_on_air.html

 
but I would like to change where the XML file used in the project is retrieved 
from.

 
Currently the XML file is loaded from here:
 
 

<!-- Set up the HTTP service from where we get the source XML data -->
<mx:HTTPService id="srcData" 
url="assets/UserGuide.xml" 
result="loadModelData(event)"
/>

 
but I would like to load the XML file from one of these locations instead:

 
File.userDirectory:

File.documentsDirectory:

 
Can someone please show me how I should change the above code to accomplish 
this, as my efforts to date have not been successful :-(

 
I am using Flex Builder 3 and Air 1.5.

 
Thanks heaps!


Reply via email to