# Table (Just a few lines of code and I don't see a bug)

**URL:** <https://forum.kirupa.com/t/table-just-a-few-lines-of-code-and-i-dont-see-a-bug/196505>\
**Category:** flash\
**Created:** [August 8, 2006, 11:04pm UTC](https://forum.kirupa.com/t/table-just-a-few-lines-of-code-and-i-dont-see-a-bug/196505 "2006-08-08T23:04:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maks\_Baum](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@Maks\_Baum](https://forum.kirupa.com/u/Maks_Baum)\
**Post date:** [August 8, 2006, 11:04pm UTC](https://forum.kirupa.com/t/table-just-a-few-lines-of-code-and-i-dont-see-a-bug/196505/1 "2006-08-08T23:04:49Z")

</div>

var dane:Array = new Array();  
dane\_xml = new XML();  
dane\_xml.ignoreWhite = true;  
dane\_xml.onLoad = function(sucess) {  
if (sucess) {  
processBook(dane\_xml);  
}  
};  
dane\_xml.load(‘dane.xml’);  
function processBook(dane\_xml) {  
var n:Number;  
var temp:String;  
for (n=0; n\<3; n++) {  
temp = dane\_xml.firstChild.childNodes[n].childNodes[0].firstChild.nodeValue+"  
";  
temp += dane\_xml.firstChild.childNodes[n].childNodes[1].firstChild.nodeValue;  
dane.push(temp);  
// trace(temp);  
}  
}  
trace(dane[0]);

* * *

and this last trace gives me undefined while trace(temp) gives me what I want 😑
