RE: [flexcoders] XMLLIst += operator problem

2009-09-27 Thread Breizo
Thanks Tracy, But complex objects are passed by reference. Right after the assignment in the function, the address of the variable is modified, i.e. += actually creates a new variable... - Breizo Tracy Spratt-2 wrote: > > Hmm, it is acting like the XMLList variable is being passed as a value and

RE: [flexcoders] XMLLIst += operator problem

2009-09-26 Thread Tracy Spratt
Hmm, it is acting like the XMLList variable is being passed as a value and not a reference. I can think of at least three other ways to do this. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]

RE: [flexcoders] XMLList to ArrayCollection

2008-08-21 Thread Gordon Smith
Subject: RE: [flexcoders] XMLList to ArrayCollection Sure, but you have to do it manually. Loop over the nodes, then use the attributes() to loop over the attributes. If I recall correctly, attribute[n] will give you the attr value, and attribute[n].name() will give you the attr name. XML.name

RE: [flexcoders] XMLList to ArrayCollection

2008-08-21 Thread Tracy Spratt
Sure, but you have to do it manually. Loop over the nodes, then use the attributes() to loop over the attributes. If I recall correctly, attribute[n] will give you the attr value, and attribute[n].name() will give you the attr name. XML.name() (or localName()) will give you the name of the node.

RE: [flexcoders] XMLList -> XML Spontaneous Error

2008-06-27 Thread Tracy Spratt
Surprised this didn't error before. All e4x expressions reuturn an XMLList, even if there is only one node. So you have to do: x = srv.lastResult.Term.Department.(@id==cDept).Course.(@num==cCrs)[0]; //to get the one and only XML node Tracy From: flexcoders@y

RE: [flexcoders] XMLList And ArrayCollection

2008-02-27 Thread Alex Harui
xml.gallery.photo.(@SubMenuID == "4") From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of NileAge, Mail Sent: Wednesday, February 27, 2008 9:17 AM To: [EMAIL PROTECTED]; 'Flex Components'; [EMAIL PROTECTED]; flexcoders@yahoogroups.com; [EMAI

Re: [flexcoders] XMLList!!

2007-09-24 Thread Paul deCoursey
.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 in this way > > var jo:XMLList=myDataProvider.data.item.(koala=="Y"); > > where myDataProvider.data = > > > ccct > X > > > sambil > Y >

RE: [flexcoders] XMLList

2007-09-16 Thread Tracy Spratt
7:57 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] XMLList Interest to know if anyone has been able to make this work. I struggled with trying to use variables in filtering XMLList without success. Alex Harui wrote: > > > ([variab

Re: [flexcoders] XMLList

2007-09-16 Thread Ben Marchbanks
Interest to know if anyone has been able to make this work. I struggled with trying to use variables in filtering XMLList without success. Alex Harui wrote: > > > ([variable] == “Y”) > > > > > > *From:* flexcoders@yah

RE: [flexcoders] XMLList

2007-09-15 Thread Alex Harui
([variable] == "Y") From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of figo2324 Sent: Friday, September 14, 2007 2:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] XMLList Hi people, i need your help, i have a xmllist object s

Re: [flexcoders] XMLList converted to XML

2007-04-11 Thread keith
Thanks ! -- Keith H -- Tracy Spratt wrote: > > One way”: > > var points:XMLList=obj.POINT; > > var obj:XML = ; > > obj.setChildren(points); > > Tracy > > > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] > *On

RE: [flexcoders] XMLList converted to XML

2007-04-10 Thread Tracy Spratt
One way": var points:XMLList=obj.POINT; var obj:XML = ; obj.setChildren(points); Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 11:23 AM To: flexcoders@yahoogroups.com Subj

RE: [flexcoders] xmlList vs. Array

2007-01-09 Thread Tracy Spratt
It ususlly depends on what format you get your data in. I almost always use xml between the server and Flex, so when I consume that data, I use using e4x expressions, which return XML and XMLList. If I was using a back-end + RPC protocol that didn't steer so heavily towards xml, and was recei

RE: [flexcoders] XMLList/XMLListCollection: sort on attributes

2006-12-04 Thread Deepa Subramaniam
Assuming the XMLListCollection created from the myData XML object looks like this: public var col:XMLListCollection = new XMLListCollection(myData.children()); Then you would sort on the category name like so: private function applyMySort():void { var s:Sort = new Sort();