hmmm

ordinarily i would loop through the list to accomplish what you're trying to
do

function handleChat(list:XMLList):void
{
    for (var i:int = 0; i < list.length(); i++)
    {
        trace(list[i]);
    }
}

On Wed, Feb 3, 2010 at 5:26 PM, Alexander Farber <[email protected]
> wrote:

> Sorry, I keep reading the docs, but
> haven't wrapped my brain around this yet.
>
> How could I create a string of several
> joined chat-lines here
>
> var myxml:XML =
> <myxml>
>  <chat0>XXX</chat0>
>  <chat0>YYY</chat0>
>  <chat0>ZZZ</chat0>
> </myxml>;
>
> handleChat(myxml.chat0);
>
> function handleChat(list:XMLList):void {
>        trace(list.children());
>        trace(list.children().join("\n"));
> }
>
> - gives me the output:
>
> XXXYYYZZZ
>
> TypeError: Error #1006: value is not a function.
>        at Untitled_fla::MainTimeline/handleChat()
>        at Untitled_fla::MainTimeline/frame1()
>
> Thank you
> Alex
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to