This content has been marked as final. Show 6 replies
Use HTTPService - point it to the local file and do send();
It will return in the ResultEvent.lastresult.yourXML
I think URLLoader may be better suited for this, however both ways should work.
thank you guys , i will try that
I tried both ways but it fails. im so angry about it.
i used the HttpService as follows:
panel.title = feedRequest.lastResult.data.task .startDate ;
// here it is okay, the panel title is changed to the given data.
however, when i convert it to xml object and try to read the data using the following code:
var myXML:XML = new XML(feedRequest.lastResult.data) ;
p.title = myXML.task.startDate ;
//it shows me an error : "A term is undefined and has no properties."
here is the structure of my xml file:
<?xml version="1.0" encoding="utf-8"?>
please help, it is very important for me.
Which line is raising the error?
Show a little more code.
thank you , i have solved it using URLLoader.