Ah, ok.  First, make sure you have set resultFormat="e4x". then, in the
handler, use an e4x expression to return the XMLList containing your
data.  Loop over the list, and in each loop, create a new Object with
the desired property=value pairs, and addItem(object) to the
ArrayCollection.

 

But, why not just use an XMLListCollection instead?  No loop is required
that way.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of iloveyouwisconsin
Sent: Sunday, February 08, 2009 12:00 PM
To: [email protected]
Subject: [flexcoders] Re: I'm missing something

 

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "iloveyouwisconsin" <stpra...@...> 
wrote:
>
> Maybe I'm just misstating my question or maybe I'm just not 
> understanding. I'm just trying to make it so that the following 
> PagableArrayCollection is populated dynamically (i.e. via an 
> HTTPService): 
> 
> [Bindable]
> public var myTest:PagableArrayCollection = new
> PagableArrayCollection(
> [{label:"AK", dataa:"Alaska"},
> {label:"AL", dataa:"Alabama"},
> {label:"AR", dataa:"Arkansas"},
> {label:"AZ", dataa:"Arizona"},
> {label:"CA", dataa:"California"},
> ]);
>

Does that make sense? I guess another way to say it is: How do I turn 
xml into a PagableArrayCollection?



Reply via email to