RE: [flexcoders] Re: e4x XML question - possible bug?

2006-02-10 Thread Gordon Smith
Of Matt Chotin Sent: Thursday, February 09, 2006 11:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: e4x XML question - possible bug? I'm not sure the filtering predicate operator will work for a variable. I think you're going to need to do this instead: var matches:XMLList = new

RE: [flexcoders] Re: e4x XML question - possible bug?

2006-02-09 Thread Matt Chotin
I'm not sure the filtering predicate operator will work for a variable. I think you're going to need to do this instead: var matches:XMLList = new XMLList(); var i:int = 0; for each (var emp:XML in x.employee) { if (emp[testVar] == testValue) { matches[i++] = emp; } } The e4x compiler