# Need Help!

**URL:** <https://forum.kirupa.com/t/need-help/182378>\
**Category:** Uncategorized\
**Created:** [March 17, 2006, 4:25pm UTC](https://forum.kirupa.com/t/need-help/182378 "2006-03-17T16:25:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sursum](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@sursum](https://forum.kirupa.com/u/sursum)\
**Post date:** [March 17, 2006, 4:25pm UTC](https://forum.kirupa.com/t/need-help/182378/1 "2006-03-17T16:25:48Z")

</div>

This is a super simple XML data pull… not sure why it isn’t working. Any ideas what I’ve done wrong?

The dynamic text field has been labeled as "prizepool\_formatted\_txt’

The actionscript is

```auto
function loadXML(loaded) {
if (loaded) {
	_root.prizepool_formatted = this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;
	prizepool_formatted.text = _root.prizepool_formatted;
} else {
trace("file not loaded!");;
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://www.mydomain.com/prizepool.xml");

```

and the XML file is formatted like so:

```auto
<data>
   <updated>March 17, 2006, 8:04 am</updated>
   <timestamp>1142604293</timestamp>
   <prizepool>1034</prizepool>
   <prizepool_formatted>$1,034</prizepool_formatted>
</data>

```

Keep getting “undefined” error! Any help would be greatly appreciated.
