Adobe Connect User Community
Menu

#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&parameters=myparameters");

function functionToParseXml(doc:XML) {
var resultsNode:XMLNode = doc.firstChild;
// continue parsing XML for results
}

Offline

Board footer