# \[MX04PRO\] XMLConnector component access

**URL:** https://forum.kirupa.com/t/mx04pro-xmlconnector-component-access/57722
**Category:** flash
**Created:** [July 15, 2004, 4:52pm UTC](https://forum.kirupa.com/t/mx04pro-xmlconnector-component-access/57722 "2004-07-15T16:52:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kbuff](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbuff](https://forum.kirupa.com/u/kbuff)
#### Post date: [July 15, 2004, 4:52pm UTC](https://forum.kirupa.com/t/mx04pro-xmlconnector-component-access/57722/1 "2004-07-15T16:52:36Z")

</div>

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:

```auto

<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:

```auto

-> 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 **value** s 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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 16, 2004, 5:02pm UTC](https://forum.kirupa.com/t/mx04pro-xmlconnector-component-access/57722/2 "2004-07-16T17:02:50Z")

</div>

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.
