You want to turn the result into an array collection then yyou have to
convert the object to array.

vyourVar=new ArrayCollection( ArrayUtil.toArray(response));

That will give you the array collection.


--- In [email protected], "Muzak" <[EMAIL PROTECTED]> wrote:
>
> Use ObjectUtil.toString() to see what type the result really is in
the Console, my guess is it's an Array though.
> 
>     import mx.utils.ObjectUtil;
> 
>     public function onResult( result:Object ):void {
>         trace(ObjectUtil.toString(result));
>         selInventoryGroups.dataProvider = new ArrayCollection(result
as Array);
>     }
> 
> 
> ----- Original Message ----- 
> From: "oneproofdk" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Thursday, November 08, 2007 10:38 AM
> Subject: [flexcoders] First attemt at getting result back from
AMFPHP - Why is it a Object
> 
> 
> I'm using AMFPHP 1.9B and have created a service called
> "inventory.getInventoryGroups" - in the AMF service browser I see the
> result just perfect. :
> 
> I'm trying to populate a simple ComboBox with the result ! What have I
> done wrong  [:-/]  ?
> 
> BTW If I select result : ArrayCollection it returns an error "Cant
> convert Object to ArrayCollection"
> 
> Thanks for your help,
> Mark
>


Reply via email to