Re: [Flashcoders] Creating a XMLList in the source code
In this case you may use String as parameter for the constructor. var xmlList:XMLList = new XMLList(''); You can also use Boolean and Number as parameter :) -- Kenneth Kawamoto http://www.materiaprima.co.uk/ On 10 February 2010 14:37, 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 = > whist2="100" /> > whist1="10.20.100.300" whist2="100" /> > ; > > var list:XMLList = XMLList( > whist2="100" /> > whist1="10.20.100.300" whist2="100" /> > ); > > var list:XMLList = XMLList(' > whist2="100" /> > whist1="10.20.100.300" whist2="100" /> > '); > > These all return errors, like for the 2nd one: > > 1084: Syntax error: expecting rightparen before pos. > > Regards > Alex ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Creating a XMLList in the source code
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 = ; var list:XMLList = XMLList( ); var list:XMLList = XMLList(' '); These all return errors, like for the 2nd one: 1084: Syntax error: expecting rightparen before pos. Regards Alex ___ 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
RE: [Flashcoders] Creating a XMLList in the source code
maybe add the "new" word in. the below doesn't trace any errors for me. but i've never used XMLList before. var myList:XMLList = new XMLList(); > Date: Wed, 10 Feb 2010 15:37:19 +0100 > From: alexander.far...@gmail.com > To: flashcoders@chattyfig.figleaf.com > 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 = > whist2="100" /> > whist1="10.20.100.300" whist2="100" /> > ; > > var list:XMLList = XMLList( > whist2="100" /> > whist1="10.20.100.300" whist2="100" /> > ); > > var list:XMLList = XMLList(' > whist2="100" /> > whist1="10.20.100.300" whist2="100" /> > '); > > These all return errors, like for the 2nd one: > > 1084: Syntax error: expecting rightparen before pos. > > Regards > Alex > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _ Do you have a story that started on Hotmail? Tell us now http://clk.atdmt.com/UKM/go/195013117/direct/01/___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Creating a XMLList in the source code
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 = ; var list:XMLList = xml.user; best a On Wed, Feb 10, 2010 at 2:37 PM, Alexander Farber < alexander.far...@gmail.com> wrote: > Sorry for one more probably basic XML question, > but how do you create an XMLList object? I've tried: > > var list:XMLList = > whist2="100" /> > whist1="10.20.100.300" whist2="100" /> > ; > > var list:XMLList = XMLList( > whist2="100" /> > whist1="10.20.100.300" whist2="100" /> > ); > > var list:XMLList = XMLList(' > whist2="100" /> > whist1="10.20.100.300" whist2="100" /> > '); > > These all return errors, like for the 2nd one: > > 1084: Syntax error: expecting rightparen before pos. > > Regards > Alex > ___ > 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] 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 = ; var list:XMLList = XMLList( ); var list:XMLList = XMLList(' '); These all return errors, like for the 2nd one: 1084: Syntax error: expecting rightparen before pos. Regards Alex ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders