Sorry if this is a double posting - but my first post never showed up ?

I am using AMFPHP 1.9B and have created a service
"inventory.getInventoryGroups" - when I test it in the AMF service
browser - it works fine and returns this result :
(mx.collections::ArrayCollection)#0
  filterFunction = (null)
  length = 5
  list = (mx.collections::ArrayList)#1
    length = 5
    source = (Array)#2
      [0] (Object)#3
        data = 1
        label = "Moduler"
      [1] (Object)#4
        data = 2
        label = "Hylder"
      [2] (Object)#5
        data = 3
        label = "Skuffer"
      [3] (Object)#6
        data = 4
        label = "Hvidlakerede bakker"
      [4] (Object)#7
        data = 5
        label = "Andet"
    uid = "42A87A93-37B2-1BCF-2D31-1E7CD7004C04"
  sort = (null)
  source = (Array)#2

In Flex I have been following the Adobe example
<http://www.adobe.com/devnet/flex/articles/flex2_amfphp_03.html> but
the result I keep getting back is not an array or arraycollection. (I
would have thought it was ArrayCollection, especially because that's
what is says in the ServiceBrowser)

Can one of you guys please help me out here ? Here's my AS code :
public var gateway : RemotingConnection;
                public function initApplication():void
                {
                        gateway = new RemotingConnection( gwurl );
                        gateway.call( "inventory.getInventoryGroups", new
Responder(onResult, onFault));
                }
                public function onResult( result : Object ) : void
                {
                        trace( result );
                        selInventoryGroups.dataProvider = result as 
ArrayCollection;
                }
                public function onFault( fault : String ) : void
                {
                        trace( fault );
                }

I'm tryng to use the result as a dataprovider for a combobox !

Thanks for any help you could give me.

Mark

Reply via email to