Loop over the item in your data, and in the loop, create a new value object, assign the property values from your current data item, and push the value object onto an Array. After the loop, wrap the Array in an ArrayCollection.
Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jovialrandor Sent: Sunday, July 06, 2008 9:19 PM To: [email protected] Subject: [flexcoders] Re: Translate HTTPService I want to convert the data I get back from an HTTPService into name/ value pairs as listed in the object below. eg. HTTPService returns ["a", "john", "analyst" ....] ["b", "mary", "programmer" ....] ["c", "jane", "director" ...] convert to "a":"john" "b":"mary" "c":"jane" Let me know if i need to clarify futher. --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Fidel Viegas" <[EMAIL PROTECTED]> wrote: > > On Sun, Jul 6, 2008 at 8:51 PM, jovialrandor <[EMAIL PROTECTED]> wrote: > > I have an HTTPService call that returns values. > > > > How do I convert to the following object format? > > > > private var inputTable2:Object = > > { > > > > "Nevada":"John Smith", > > "Northern California":"Jane Smith", > > "Southern California":"Al Gore", > > "France":"Europe", > > "USA":"workss" > > > > }; > > Hi Jovial, > > You have to be clear on what you want to do when you ask questions > here. What exactly are you trying to do? You want to convert the above > to what exactly? Are you trying to send those as parameters to your > HTTPService? > > You have to be more clear on what you are trying to achieve so that > people here will be able to help you. > > Fidel. >

