So, now that I've added an alert to the fault() function of the command file, I get the following ... but unsure why, this worked prior to refactoring to use Cairngorm:
addContact Command Failed: (mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = "DFF88632-6948-7974-E483-8D84C6FEB478" destination = "" extendedData = (null) faultCode = "Client.Error.DeliveryInDoubt" faultDetail = "Channel disconnected before an acknowledgement was received" faultString = "Channel disconnected" headers = (Object)#2 messageId = "7166CE94-C7C0-8662-576D-8D84CBECCFA7" rootCause = (null) timestamp = 0 timeToLive = 0 --- In [email protected], "jeremysavoy" <jeremysa...@...> wrote: > > Ok, I have an update - I had to modify the instructions from the > documentation, since "result" was a resultevent, I had to use > result.result for my ArrayCollection: > > for(var i:String in result.result) { > result.result[i] = new ObjectProxy(result.result[i]); > } > > __model.myAC = new ArrayCollection(ArrayUtil.toArray(result.result)); > > So now, I don't get the IEventDispatcher warning on myAC fields any > more, and my load data via Zend AMF still works, but my add and update > commands and delegates still don't end up in the "result" function of > my Cairngorm MVC commands. > > --- In [email protected], "jeremysavoy" <jeremysavoy@> wrote: > > > > I'm running Flex 3 with Cairngorm 2.2.1. > > > > I get the following warnings in the debug console after refactoring my > > code to use Cairngorm (used Cairngen): > > > > warning: unable to bind to property 'xxx' on class 'Object' (class is > > not an IEventDispatcher) > > > > Unfortunately, this problem is causing some trouble. While I can > > retrieve my data via Cairngorm MVC + Zend AMF, any add record or > > update record does not work, although no errors are thrown and things > > appear to complete. > > > > After setting breakpoints, I notice that the "add record" goes through > > the controller, to the add command, to the add delegate and it does > > execute my remote object service call ... > > > > __service.addContact_PHP(contact) > > > > ... however, the "result" handler in the command file is never called > > which indicates that the data was never sent or the wrong data was > > sent to PHP. > > > > I have tried the fix outlined here: > > > http://livedocs.adobe.com/flex/2/langref/flash/events/IEventDispatcher.html > > > > But that did not help. > > > > Any help would be greatly appreciated! > > >

