Strange, I'm having the same problem with the same class, RemoteObject, adding the class to my code doesn't seem to fix it.
btw: is'nt <mx:RemoteObject> really a different class then the one you usually use?
there are:
mx.rpc.remoting.RemoteObject
mx.rpc.remoting.mxml.RemoteObject
any way, I tried to include both and it did not work.
my context
Code:
<object id="myService" class="mx.rpc.remoting.RemoteObject">
<property name="destination" value="deviceService"/>
<property name="channelSet">
<object id="myChannelSet" class="mx.messaging.ChannelSet">
<method-invocation name="addChannel">
<arg>
<object class="mx.messaging.channels.AMFChannel">
<constructor-arg value="my-amf"/>
<constructor-arg value="http://localhost:8080/myapp/messagebroker/amf"/>
</object>
</arg>
</method-invocation>
</object>
</property>
</object>
<object id="myDelegate" class="com.mypath.MyDelegate">
<property name="service" value="myService"/>
</object>
when I run this, it complains that
Code:
TypeError: Error #1034: Type Coercion failed: cannot convert "myService" to mx.rpc.remoting.mxml.RemoteObject.
Any ideas?
thanks
Lior