Problem with “nImage” in my code. i wanna load only data from xml … but when i trace the result show tag + data (<imagem>data</imagem>) and i want only data without tag. below my code. help.
// --
news.autoSize = true;
news.html = true;
news.htmlText = "Carregando..";
// --
System.useCodepage = true;
var nNoticias:XML = new XML();
nNoticias.ignoreWhite = true;
nNoticias.load(_global.path + "noticias.xml");
nNoticias.onLoad = function() {
news.htmlText = "";
qtd = this.childNodes[0].childNodes.length;
for (i=0; i<qtd; i++) {
var nData = (this.childNodes[0].childNodes*.childNodes[0]);
var nTexto = (this.childNodes[0].childNodes*.childNodes[1]);
var nImage = (this.childNodes[0].childNodes*.childNodes[2]);
trace(nImage);
news.htmlText += "<font>"+nData+"</font><br><img src='"+_global.path+"portfolio/"+nImage+"'><br><br><br><br><br><br><font>"+nTexto+"</font><br><font>________</font><br><br>";
}
};