Sleepless night. Why this array operation does not work?

Good morning,

I was wondering for hours searching for the bug, and I concluded that what makes everything fails is in the following code

this one works well:

[COLOR=navy](a for loop and a lot of other things, does no difference to the problem)[/COLOR]
[COLOR=navy] } else {
oxmlLink.id = nNoticias;
oxmlLink.kinde = “noticia”;
oxmlLink.nome = “noticia_-_”+nNoticias;
nNoticias++;
aNeoXML.push(oxmlLink);
aNewsXML.push(oxmlLink);
}
}
nav.gotoAndStop(2);
}[/COLOR]

and this one does not:

[COLOR=darkred](a for loop and a lot of other things, does no difference to the problem)
} else {
oxmlLink.id = nNoticias;
oxmlLink.kinde = “noticia”;
oxmlLink.nome = “noticia_-_”+nNoticias;
nNoticias++;
aNeoXML.push(oxmlLink);
aNewsXML.push(oxmlLink);
}
}
var aTempArray:Array = []
for(var al:Number = aNewsXML.length; al>0;al–){
TempArray.push(aNewsXML[al])
}
aNewsXML = TempArray[/COLOR]
Somebody know why? Its like, I am copyng wrong an array?