Hi, I am required to send an http request to a server which will get me some xml. I am using LoadVars to do the job.
var str = "http://release.theplatform.com/content.select?pid=yigHHIb89BkaWJnMmg92cfLGmAIMqGZn&[email protected]&key=luocyXPcWOvIJOX2NQZTB4TutU0%3D";
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
if (success) {
trace(this);
} else {
trace("Error loading/parsing LoadVars.");
}
};
my_lv.load(str);
//----------trace result-------------
[COLOR="Blue"]<?xml version="1.0" encoding="utf-8"?><nodes>
<node1>value</node1><node2>value</node2>
</nodes>[/COLOR][COLOR="Magenta"]&httpStatusType=successful&httpStatus
=200&onHTTPStatus=[type Function]&onLoad=[type Function][/COLOR]
Notice that my trace has some undesired result such as httpStatus function, onLoad function etc.
Can anyone pls tell me how do i extract the desired result from the complete trace? I mean is there any default property in which flash stores the LoadVars core result?
Is there any better way of doing this http request task, any other class than LoadVars?