RE: [flexcoders] Re: HTTPService not returning ArrayCollection...

2010-03-14 Thread Tracy Spratt
Sent: Wednesday, March 10, 2010 4:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTTPService not returning ArrayCollection... I discovered that (event.result.people.person.source != null) when the result is an ArrayCollection. So I used that in an if statement so I could

[flexcoders] Re: HTTPService not returning ArrayCollection...

2010-03-10 Thread valdhor
I use new ArrayCollection(ArrayUtil.toArray(event.result)). It works for 1 or more items in the result. --- In flexcoders@yahoogroups.com, Laurence lmacne...@... wrote: I'm trying to read data from an XML file, and put that data into an ArrayCollection. This works great when I have more

[flexcoders] Re: HTTPService not returning ArrayCollection...

2010-03-10 Thread Laurence
I discovered that (event.result.people.person.source != null) when the result is an ArrayCollection. So I used that in an if statement so I could choose simply to set my variable equal to the result, or if I had to variable.addItem() the result. Your way is much neater. I'll give that a try,