# Can anyone spot my mistake here, my trace coming back undefined, but looks perfect?

**URL:** <https://forum.kirupa.com/t/can-anyone-spot-my-mistake-here-my-trace-coming-back-undefined-but-looks-perfect/176856>\
**Category:** Uncategorized\
**Created:** [January 27, 2006, 1:34pm UTC](https://forum.kirupa.com/t/can-anyone-spot-my-mistake-here-my-trace-coming-back-undefined-but-looks-perfect/176856 "2006-01-27T13:34:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevorsaint](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trevorsaint/32/268_2.png) [@trevorsaint](https://forum.kirupa.com/u/trevorsaint)\
**Post date:** [January 27, 2006, 1:34pm UTC](https://forum.kirupa.com/t/can-anyone-spot-my-mistake-here-my-trace-coming-back-undefined-but-looks-perfect/176856/1 "2006-01-27T13:34:39Z")

</div>

I am having some trouble and I cannot put my finger on it, coming back undefined, but all looks perfect! no?

my xml

```auto

<clients>

   <client>
     <image>1.jpg</image>
   </client>

</clients>

```

my flash actionscript

```auto

clientXML = new XML();
clientXML.ignoreWhite = true;
clientXML.load("client.xml");

//has the xml loaded
clientXML.onLoad = function(success) {
	
	if (success) {
		xmlNode = this.firstChild;
	
		total = xmlNode.childNodes.length;
		for (i=0; i<total; i++) { 
		
			//xml retrieval
			image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
		  }	   	  		  
		  firstXML();		  
	}
}

//FIRST XML
function firstXML() {	
	trace(image[0]);		
};

```
