[Flashcoders] Joining XMLList elements

2010-02-03 Thread Alexander Farber
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 chat0XXX/chat0 chat0YYY/chat0 chat0ZZZ/chat0 /myxml; handleChat(myxml.chat0); function handleChat(list:XMLList):void {

Re: [Flashcoders] Joining XMLList elements

2010-02-03 Thread allandt bik-elliott (thefieldcomic.com)
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 alexander.far...@gmail.com wrote:

Re: [Flashcoders] Joining XMLList elements

2010-02-03 Thread Jer Brand
Yeah, list.children() is an XMLList which doesn't have a join method. A loop looks like your best bet. Off the wall suggestion: If you're just adding this to a HTML enabled text field (or some other HTML enabled container), you might change your tag's to p/p rather than chat0.../chat0 and add the

Re: [Flashcoders] Joining XMLList elements

2010-02-03 Thread Alexander Farber
That's a cool idea, thank you On Wed, Feb 3, 2010 at 9:19 PM, Jer Brand thejhe...@gmail.com wrote: Off the wall suggestion: If you're just adding this to a HTML enabled text field (or some other HTML enabled container), you might change your tag's to p/p rather than chat0.../chat0 and add the