[flexcoders] Re: XMLList

2007-09-21 Thread figo2324
Thanks so much, ill try it... --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Yes, this has worked for me, though I always apply e4x expressions to an > XML node, never to an XMLList. The XMLList is always what I get back. > > Tracy > > -Original Message-

[flexcoders] Re: XMLList

2007-09-24 Thread figo2324
Hi alex, thank for response but it doesnt work, i try it var va:String="centro"; var jo:XMLList=myDataProvider.data.item.([va]=="tolon"); but nothing that has a error, it cant compare an array with a string, it take [va] how an array, some suggestion please. Thanks... --- In flexcoders@yahoogroup

[flexcoders] Re: XMLList

2007-09-24 Thread figo2324
hi ben, i doesnt work, i tried this var va:String="centro"; var jo:XMLList=myDataProvider.data.item.([va]=="tolon"); it has a error, it says that it cant compare a string with an array and i tried this too var va:String="centro"; var jo:XMLList=myDataProvider.data.item.({va}=="tolon"); but nothing

[flexcoders] Re: XMLList!!

2007-09-24 Thread figo2324
thanks so much man, it works fine, thanks --- In flexcoders@yahoogroups.com, Paul deCoursey <[EMAIL PROTECTED]> wrote: > > .item.child("koala").(text()=="Y") > > > > figo2324 wrote: > > > > Hi people, i need your help, i have a xmllist object so i need to > > query this xmllist, im doing it

[flexcoders] Re: XMLList!!

2007-09-24 Thread figo2324
hi paul your way to do to that wokk fine but i need the complete object xml for example child("koala").(text()=="Y") and this returns this sambil Y i did it this way var va:String="koala"; var va2:String="Y"; myDataProvider.data.item.(elements(va)==va2) and works fine then if you wanna an

[flexcoders] Re: XMLList to ArrayCollection

2008-08-21 Thread sdl1326
Thanks. Is there a 'quick and dirty' way to convert to array collection if you know the names of the attributes, etc. --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Sure, but you have to do it manually. Loop over the nodes, then use the > attributes() to loop ove

[flexcoders] Re: XMLList to ArrayCollection

2008-08-21 Thread sdl1326
Honestly, I do not know as I have not worked with XMLListCollections. I just need to be able to access the data easily and have only used Array Collections. It looks like an XMLListCollection might work. Is there a benefit of using one over the other? --- In flexcoders@yahoogroups.com, "Gordon Smit

[flexcoders] Re: XMLList to ArrayCollection

2008-08-22 Thread Djamshed
you could try first converting xml to XMLListCollection, which is convertable to Array: var xmlListCollection: XMLListCollection= new XMLListCollection(resultXML.children()); var resultArray:Array = xmlListCollection.toArray(); //to convert to ArrayCollection, 1 more step to go var resultCollect

[flexcoders] Re: XMLList to ArrayCollection

2008-08-22 Thread sdl1326
I will try your suggestion. Thank you. --- In flexcoders@yahoogroups.com, "Djamshed" <[EMAIL PROTECTED]> wrote: > > you could try first converting xml to XMLListCollection, which is > convertable to Array: > > var xmlListCollection: XMLListCollection= new > XMLListCollection(resultXML.children())

Re: [flexcoders] Re: XMLList to ArrayCollection

2008-08-22 Thread Douglas Knudsen
ugh, you can access the data easily with e4x, eh? Unless you need to create VOs of the data, why not just leave it? DK On Thu, Aug 21, 2008 at 11:59 PM, sdl1326 <[EMAIL PROTECTED]> wrote: > Honestly, I do not know as I have not worked with XMLListCollections. > I just need to be able to acces

Re: [flexcoders] Re: XMLList to ArrayCollection

2008-08-22 Thread Howard Fore
sdl1326 (just rolls of the tongue doesn't it :-) ), here's some more info on e4x with Flex 3. Very handy stuff with XML: http://learn.adobe.com/wiki/display/Flex/E4X On Fri, Aug 22, 2008 at 9:18 AM, Douglas Knudsen <[EMAIL PROTECTED]>wrote: > ugh, you can access the data easily with e4x, eh? Un

Re: [flexcoders] Re: XMLList to ArrayCollection

2008-08-22 Thread Howard Fore
sdl1326 (just rolls of the tongue doesn't it :-) ), here's some more info on e4x with Flex 3. Very handy stuff with XML: http://learn.adobe.com/wiki/display/Flex/E4X On Fri, Aug 22, 2008 at 9:18 AM, Douglas Knudsen <[EMAIL PROTECTED]>wrote: > ugh, you can access the data easily with e4x, eh? Un

RE: [flexcoders] Re: XMLList to ArrayCollection

2008-08-22 Thread Gordon Smith
lto:[EMAIL PROTECTED] On Behalf Of sdl1326 Sent: Thursday, August 21, 2008 8:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XMLList to ArrayCollection Honestly, I do not know as I have not worked with XMLListCollections. I just need to be able to access the data easily and have only

[flexcoders] Re: XMLList -> XML Spontaneous Error

2008-06-28 Thread kenny14390
Thank you Tracy! That worked. I have no idea why it decided not to anymore, but it does now! --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Surprised this didn't error before. > > > > All e4x expressions reuturn an XMLList, even if there is only one node. > S

[flexcoders] Re: XMLList: get first n items

2009-01-04 Thread Don Kerr
You might look XMLListCollection. Loop through it and use getItemAt(n) to grab items. Don't have any example code right now, but Collections are powerful. Don --- In flexcoders@yahoogroups.com, "Hyder" wrote: > > How do I get the first n items in an XMLList? > I'm not very familiar with XML wor

[flexcoders] Re: XMLList as dataProvder for TileList

2006-03-09 Thread bhaq1972
without looking at your code, i'll take a big guess. try putting your XMLList into a XMLLIstCollection eg var xlc:XMLListCollection = new XMLListCollection(yourXMLList); yourTileList.dataProvider = xlc; --- In flexcoders@yahoogroups.com, "Jonathan Bezuidenhout" <[EMAIL PROTECTED]> wrote: > >

RE: [flexcoders] Re: XMLList: get first n items

2009-01-05 Thread Tracy Spratt
rom: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Don Kerr Sent: Sunday, January 04, 2009 3:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XMLList: get first n items You might look XMLListCollection. Loop through it and use getItemAt(n) to grab items. Don

RE: [flexcoders] Re: XMLList as dataProvder for TileList

2006-03-09 Thread Roger Gonzalez
On Behalf Of bhaq1972 > Sent: Thursday, March 09, 2006 7:33 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: XMLList as dataProvder for TileList > > without looking at your code, i'll take a big guess. try putting > your XMLList into a XMLLIstCollection >

Re: [flexcoders] Re: XMLList as dataProvder for TileList

2006-03-09 Thread Jonathan Bezuidenhout
Excellent - that worked.Thanks!JonathanOn 3/9/06, bhaq1972 <[EMAIL PROTECTED]> wrote: without looking at your code, i'll take a big guess. try putting your XMLList into a XMLLIstCollection eg var xlc:XMLListCollection = new XMLListCollection(yourXMLList); yourTileList.dataProvider = xlc;

[flexcoders] Re: XMLList with a single item as a dataprovder

2006-08-07 Thread Doug Lowder
Here's the answer: http://livedocs.macromedia.com/flex/2/langref/XMLList.html#toXMLString() --- In flexcoders@yahoogroups.com, Rick Root <[EMAIL PROTECTED]> wrote:>> Why can the XMLList object with a single node and no subitems be used as > a dataprovider for a list driven item, such as a tree,

Re: [flexcoders] Re: XMLList with a single item as a dataprovder

2006-08-09 Thread Rick Root
Doug Lowder wrote: > > Here's the answer: > > http://livedocs.macromedia.com/flex/2/langref/XMLList.html#toXMLString > () Thanks Doug.. so I was just using the wrong method. rick -- Flexcoders Mailing List FAQ: http://gr