I'm trying to connect to a cakephp application with cakeamfphp in a flex application for 3 days now.
When i try it in the webbrowser, the php application gives a correct result.
But when i'm trying to run the flex application i keep getting the Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.Failed error.
it is thrown at:
at com.renaun.rpc::RemoteObjectAMF0/http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()[C:\Documents and Settings\jecede\My Documents\Flex Builder 3\FotoBrowser\src\com\renaun\rpc\RemoteObjectAMF0.as:70]
Does anybody know the solution for this?
thanks in advance
try smthg like this
_gateway = new NetConnection();
_gateway.objectEncoding = ObjectEncoding.AMF3;
thanks for your reply.
It wasn't the answer, but it pointed me to the real problem.
The endpoint url was a relative one, which i suspected to be correct since it worked before, but when i changed it into the absolute version: tadaaaa!!!
so for everybody with this error: double check your endpoint url