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

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