ok i-ve just discovered:
trace ("dfdf: " + tabsContentSlideshow.children()[0].item[1]);
or since you know it's a slide node:
tabsContentSlideshow.slide[0].item[1];
----- Original Message -----
From: "Isaac Alves" <isaacal...@gmail.com>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Friday, August 28, 2009 8:58 PM
Subject: [Flashcoders] Re: accessing a text node inside another node in aXMLList
Ok I�ve realized now something.
I had before in the script:
tabsContentSlideshow = myXML.slideshow.children();
I�ve replaced with:
tabsContentSlideshow = myXML.slideshow;
Then if i trace " tabsContentSlideshow.children()[0] " it will show :
<slide>
<item label="ss1_title" link="#" type="_self">CONECTE-SE</item>
<item label="ss1_subtitle">Bem-vindo ao Conecte-se!</item>
<item label="ss1_text">Aqui voc� encontra vida! Grupos pequenos,
c�lulas, que se re�nem semanalmente. N�s oramos e desejamos que voc�
desenvolva bons relacionamentos, um prop�sito, envolvimento e encontre
alegria. Vamos servir ao Senhor juntos!</item>
</slide>
alright. now how can I retrieve the text that�s inside the tag <item> ??
ok i-ve just discovered:
trace ("dfdf: " + tabsContentSlideshow.children()[0].item[1]);
:D
thank you people
2009/8/28 Isaac Alves <isaacal...@gmail.com>:
I�ve realized actually that flash recognizes the XMLList as having 9
children, ignoring the tags <slide>
when I was expecting three children , each one of them with also 3
children ( the tags <item>).
Why?
2009/8/28 Isaac Alves <isaacal...@gmail.com>:
Hello list,
I have the following XML ( i get that by tracing
"tabsContentSlideshow" which is a XMLList.
I-d like to use something like
tabsContentSlideshow[slide][1]
slide is an integer, so for example, if the slide 2 is showing, this
statement would return the first node <item> inside the second node
<slide>, that is:
�<item label="ss1_title" link="#" type="_self">SLIDE 2</item>
but it doesn�t work like that.
how could I do it ??
thanks in advance !
<slide>
�<item label="ss1_title" link="#" type="_self">CONECTE-SE</item>
�<item label="ss1_subtitle">Bem-vindo ao Conecte-se!</item>
�<item label="ss1_text">Aqui voc� encontra vida! Grupos pequenos,
c�lulas, que se re�nem semanalmente. N�s oramos e desejamos que voc�
desenvolva bons relacionamentos, um prop�sito, envolvimento e encontre
alegria. Vamos servir ao Senhor juntos!</item>
</slide>
<slide>
�<item label="ss1_title" link="#" type="_self">SLIDE 2</item>
�<item label="ss1_subtitle">Bem-vindo ao slide 2</item>
�<item label="ss1_text">Aqui voc� encontra vida! Grupos pequenos,
c�lulas, que se re�nem semanalmente. N�s oramos e desejamos que voc�
desenvolva bons relacionamentos, um prop�sito, envolvimento e encontre
alegria. Vamos servir ao Senhor juntos!</item>
</slide>
<slide>
�<item label="ss1_title" link="#" type="_self">SLIDE 3</item>
�<item label="ss1_subtitle">Bem-vindo ao slide 3</item>
�<item label="ss1_text">Aqui voc� encontra vida! Grupos pequenos,
c�lulas, que se re�nem semanalmente. N�s oramos e desejamos que voc�
desenvolva bons relacionamentos, um prop�sito, envolvimento e encontre
alegria. Vamos servir ao Senhor juntos!</item>
</slide>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders