I'm trying to connect a flex 3 project to ZendAMF.
I've added to the compile line the path to -services (using -services services/config.xml)
Inside the service config.xml I've set the channel uri to the zend.php (using http://url.tld/services/zend.php)
In the Flex src I've create a remote object using:
amf = new RemoteObject();
amf.destination = 'zend';
The flex compiles correctly, but when I try to use the remoteobject functions it returns me an error.
Debug prints like:
[RemoteObject destination="zend" channelSet="null"]
returns me an error:
ReferenceError: Error #1069: Cannot find attribute classFunction on mx.rpc.remoting.Operation and no default value is defined.
Anyone could tell me what's wrong? That remoteObject channelSet should be null? :\
This link explains clearly what you need to set up for your zendamf gateway. Its a lot easier than my convoluted attempt at using zendamf with flex3
This link is a simple example of using amfphp with no service-config file, it declares the channel details flex itself(which means you could actually get connection details at runtime rather than baked into the swf). With amfphp all the php services are in a service folder so as long as they are there calls from your app will find them.
http://flashhub.net/filter/ - right click on app to see source.