[Flashcoders] Creating a XMLList in the source code

2010-02-10 Thread Alexander Farber
Sorry for one more probably basic XML question, but how do you create an XMLList object? I've tried: var list:XMLList = user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20 whist2=100 / user pos=2 money=-123 changed=4 mount=1.2.3 whist1=10.20.100.300 whist2=100 / ; var list:XMLList =

Re: [Flashcoders] Creating a XMLList in the source code

2010-02-10 Thread allandt bik-elliott (thefieldcomic.com)
as far as i know, xml list is really designed to be a way of accessing multiple nodes in an xml doc so you would start with an XML object and pull the list from there var xml:XML = users user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20 whist2=100 / user pos=2 money=-123 changed=4

RE: [Flashcoders] Creating a XMLList in the source code

2010-02-10 Thread David Hunter
Subject: [Flashcoders] Creating a XMLList in the source code Sorry for one more probably basic XML question, but how do you create an XMLList object? I've tried: var list:XMLList = user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20 whist2=100 / user pos=2 money=-123 changed=4 mount=1.2.3

Re: [Flashcoders] Creating a XMLList in the source code

2010-02-10 Thread Glen Pike
Hi, I don't think you can do this - you have to create a single XML node around the list then pull the list out from that.. Glen Alexander Farber wrote: Sorry for one more probably basic XML question, but how do you create an XMLList object? I've tried: var list:XMLList = user pos=0

Re: [Flashcoders] Creating a XMLList in the source code

2010-02-10 Thread kennethkawam...@gmail.com
In this case you may use String as parameter for the constructor. var xmlList:XMLList = new XMLList('user pos=0 money=123 changed=2 pool=10.20.30 whist1=10.20 whist2=100 /user pos=2 money=-123 changed=4 mount=1.2.3whist1=10.20.100.300 whist2=100 /'); You can also use Boolean and Number as