[Flashcoders] Re: accessing a text node inside another node in a XMLList

2009-08-28 Thread Isaac Alves
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 :


  CONECTE-SE
  Bem-vindo ao Conecte-se!
  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!


alright. now how can I retrieve the text that´s inside the tag  ??

ok i-ve just discovered:

trace ("dfdf: " + tabsContentSlideshow.children()[0].item[1]);

:D

thank you people



2009/8/28 Isaac Alves :
> I´ve realized actually that flash recognizes the XMLList as having 9
> children, ignoring the tags 
>
> when I was expecting three children , each one of them with also 3
> children ( the tags ).
>
> Why?
>
> 2009/8/28 Isaac Alves :
>> 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  inside the second node
>> , that is:
>>
>>  SLIDE 2
>>
>> but it doesn´t work like that.
>> how could I do it ??
>>
>> thanks in advance !
>>
>>
>> 
>>  CONECTE-SE
>>  Bem-vindo ao Conecte-se!
>>  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!
>> 
>> 
>>  SLIDE 2
>>  Bem-vindo ao slide 2
>>  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!
>> 
>> 
>>  SLIDE 3
>>  Bem-vindo ao slide 3
>>  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!
>> 
>>
>

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: accessing a text node inside another node in a XMLList

2009-08-28 Thread Taka Kojima
First off, XML can only have one root node, thus you're probably getting
some weird errors.

If you enclose all of your xml within , you should be fine.

- Taka

On Fri, Aug 28, 2009 at 11:53 AM, Isaac Alves  wrote:

> I´ve realized actually that flash recognizes the XMLList as having 9
> children, ignoring the tags 
>
> when I was expecting three children , each one of them with also 3
> children ( the tags ).
>
> Why?
>
> 2009/8/28 Isaac Alves :
> > 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  inside the second node
> > , that is:
> >
> >  SLIDE 2
> >
> > but it doesn´t work like that.
> > how could I do it ??
> >
> > thanks in advance !
> >
> >
> > 
> >  CONECTE-SE
> >  Bem-vindo ao Conecte-se!
> >  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!
> > 
> > 
> >  SLIDE 2
> >  Bem-vindo ao slide 2
> >  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!
> > 
> > 
> >  SLIDE 3
> >  Bem-vindo ao slide 3
> >  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!
> > 
> >
>
> ___
> 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


[Flashcoders] Re: accessing a text node inside another node in a XMLList

2009-08-28 Thread Isaac Alves
I´ve realized actually that flash recognizes the XMLList as having 9
children, ignoring the tags 

when I was expecting three children , each one of them with also 3
children ( the tags ).

Why?

2009/8/28 Isaac Alves :
> 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  inside the second node
> , that is:
>
>  SLIDE 2
>
> but it doesn´t work like that.
> how could I do it ??
>
> thanks in advance !
>
>
> 
>  CONECTE-SE
>  Bem-vindo ao Conecte-se!
>  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!
> 
> 
>  SLIDE 2
>  Bem-vindo ao slide 2
>  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!
> 
> 
>  SLIDE 3
>  Bem-vindo ao slide 3
>  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!
> 
>

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders