- Topics: Active | Unanswered
- Index
- » Developer Discussion
- » Using Actionscript XML Object, or XMLConnector component within a pod
Pages: 1
Topic closed
#1 2009-09-08 09:56:25
- **_connectfred_**
Using Actionscript XML Object, or XMLConnector component within a pod
Need help with the following..
From an SWF loaded into a Connect Pro pod, does anyone know how to get an XML object or XMLConnector component to work (load xml content successfully)?
For extra credit/gratitude:
If so, can you load results from Connect Pro's web services API?
Thanks.
Offline
#2 2009-09-08 12:26:55
- **_tlchurch_**
Re: Using Actionscript XML Object, or XMLConnector component within a pod
Yes and yes.
var mydoc = new XML();
mydoc.onLoad = functionToParseXml;
mydoc.ignoreWhite = true;
mydoc.load("http://connect.mycompany.com/api/xml?action=myaction¶meters=myparameters");
function functionToParseXml(doc:XML) {
var resultsNode:XMLNode = doc.firstChild;
// continue parsing XML for results
}
Offline
Pages: 1
Topic closed