jovialrandor 写道:
> 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], "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.
>>
>
>
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
You can return data with JSON format, you can visit
http://code.google.com/p/as3corelib/. It has a json lib.