Flippie124
01-20-2005, 10:13 PM
hi,
I'm trying to use the XMLconnector to read an XML file. I don't want to use the component inspector so I used some actionscript. The problem is that I do not know how I can put the results for my xmlconnector in a dataset object. This is my code:
var xmlListener:Object = new Object();
xmlListener.result = function(evt:Object) {
trace(evt.target.results);
};
var myXMLConnector:XMLConnector = new XMLConnector();
myXMLConnector.addEventListener("result", xmlListener);
myXMLConnector.direction = "receive";
myXMLConnector.URL = "data.xml";
myXMLConnector.multipleSimultaneousAllowed = false;
myXMLConnector.suppressInvalidCalls = true;
myXMLConnector.trigger();
What is this "evt.target.results" actually? I mean, how can I acces the different nodes from my results? I need to make an array of the results in order to store it in a dataset
I'm trying to use the XMLconnector to read an XML file. I don't want to use the component inspector so I used some actionscript. The problem is that I do not know how I can put the results for my xmlconnector in a dataset object. This is my code:
var xmlListener:Object = new Object();
xmlListener.result = function(evt:Object) {
trace(evt.target.results);
};
var myXMLConnector:XMLConnector = new XMLConnector();
myXMLConnector.addEventListener("result", xmlListener);
myXMLConnector.direction = "receive";
myXMLConnector.URL = "data.xml";
myXMLConnector.multipleSimultaneousAllowed = false;
myXMLConnector.suppressInvalidCalls = true;
myXMLConnector.trigger();
What is this "evt.target.results" actually? I mean, how can I acces the different nodes from my results? I need to make an array of the results in order to store it in a dataset