[MX04PRO] XMLConnector component access

I have an XMLConnector component instance that is communicating fine with the external XML file from which it is reading the data. The XML file is structured like so:


<data>
 <category id="0">
  <name>Category 0's name</name>
  <value>12345</value>
 </category>
 <category id="1">
  <!-- and it's name and value -->
 </category>
 <!-- and so on...  -->
 
</data>

So the XMLConnector (named “xcData” let’s say) has a schema that looks like:


-> params:XML
<-> results:XML
 - <-> data:Object
 - <-> category:Array
 - <-> [n]:Object
 -  -  <-> name:String
 -  -  <-> value:Number

Now that you’ve got a general idea of what I’m working with, I’ll move onto what I want to do with it. Let’s say when the 1st frame (which has the XMLConnector on it) loads, we want to calculate the sum of all the values from the XML categories. It seems like an easy concept, but I can’t figure out how to traverse through the array of objects without user intervention.

I appreciate any help offered.

I understand the XMLConnector is new to MX 2004 Pro so not many of you may be familiar with it… in which case, I’d be open to any alternate approaches to the problem. Thanks.