Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Ai Galera, oh eu ki de novo =D. Dessa vez axo q eh realmente de boa, mais eu com minha estupidez não to conseguindo fazer. É o seguinto, tenho um XML chamado Agenda, e nele tenho que puxar uns dados de umarquivo XML. Nesse meu SWF tem os dados: Data, Local, Realização, etc. Cada "dado" desse, tem um Dynamic txt específico, eu preciso chamar a informação pelo nó em que ela se encontra no XML, mais eh ai q ta o problema, nao to conseguindo :D. Bom se alguem souber o q to fazendo de errado, eu ficaria muito agradecido. Vlws Povo!
Esqueci dos códigos xP. estão aki.
XML:
<?xml version="1.0"?> <conteudo>
<data>10 de abril de 2010<data>
<local> Centro Técnico da Catharine Hill</local>
<realizacao>Catharine Hill</realizacao>
<endereco>Rua Itaipú, 45 - Praça da Árvore</endereco>
<cidade>São Paulo</cidade>
<contato>(11)5070-1060</contato>
<site>www.catharinehill.com.br</site>
<informacoes>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</informacoes>
</conteudo>
AS2
System.useCodepage = true;
var meuXML = new XML();
meuXML.load("xml/agenda1.xml");
meuXML.ignoreWhite = true;
meuXML.onLoad = function ()
{
trace(this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue);
txt1.htmlText = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
txt2.htmlText = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
txt3.htmlText = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;
txt4.htmlText = this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;
txt5.htmlText = this.firstChild.childNodes[0].childNodes[4].firstChild.nodeValue;
txt6.htmlText = this.firstChild.childNodes[0].childNodes[5].firstChild.nodeValue;
txt7.htmlText = this.firstChild.childNodes[0].childNodes[6].firstChild.nodeValue;
txt8.htmlText = this.firstChild.childNodes[0].childNodes[7].firstChild.nodeValue;
};
txt1.multiline = true;
txt1.wordWrap = true;
txt1.html = true;
txt2.multiline = true;
txt2.wordWrap = true;
txt2.html = true;
txt3.multiline = true;
txt3.wordWrap = true;
txt3.html = true;
txt4.multiline = true;
txt4.wordWrap = true;
txt4.html = true;
txt5.multiline = true;
txt5.wordWrap = true;
txt5.html = true;
txt6.multiline = true;
txt6.wordWrap = true;
txt6.html = true;
txt7.multiline = true;
txt7.wordWrap = true;
txt7.html = true;
txt8.multiline = true;
txt8.wordWrap = true;
txt8.html = true;Carregando comentários...