I had a hard time to get this thing working, and still no success.
Using RemoteObject in Flex is no problem. For instance, in Flex (without using a services-config.xml) something like this:
myRemote.endpoint = “http://localhost/”;
myRemote.source = “MyService”;
myRemote.getData.addEventListener(ResultEvent.RESULT, getDataListener);
myRemote.saveData.addEventListener(ResultEvent.RESULT, saveDataListener);
is working.
Doing the same in Flash CS4, with the correct .swc from the Flex SDK in the Library path
and importing the mx.rpc.remoting.mxml.RemoteObject class compiles without any error.
But i do get no data connection:
[RPC Fault faultString="" faultCode=“Client.Error.MessageSend” faultDetail=“Channel.Connect.Failed error null url: ‘null’”]
So what goes wrong here? Can someone tell me if the mxml.RemoteObject is working in Flash CS4 anyway and at all?
(I’m using the 3.4.0 sdk)
Thanks.