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




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to