
Код:
var xml:XML = new XML ('<node my_txt="abc" my_int="123"></node><node my_txt="xyz" my_int="890"></node>');
var idInterval:Number = setInterval (this, "readNode", 1000);
var cx:Number = 0;
function readNode () {
trace (xml.childNodes[cx]);
if (xml.lastChild == xml.childNodes[cx]) {
clearInterval (idInterval);
} else {
cx++;
}
}