# RemoteObject in Flash CS4

**URL:** <https://forum.kirupa.com/t/remoteobject-in-flash-cs4/297660>\
**Category:** flash\
**Created:** [October 6, 2009, 7:57pm UTC](https://forum.kirupa.com/t/remoteobject-in-flash-cs4/297660 "2009-10-06T19:57:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkos](https://avatars.discourse-cdn.com/v4/letter/k/a9a28c/32.png) [@kkos](https://forum.kirupa.com/u/kkos)\
**Post date:** [October 6, 2009, 7:57pm UTC](https://forum.kirupa.com/t/remoteobject-in-flash-cs4/297660/1 "2009-10-06T19:57:32Z")

</div>

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/](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.
