Cazirngorn and AMFPHP1.9
Im having some problems sending Objects
Error: C0007E: RemoteObject not found for Send1.....
public class SendGrassDelegate
{
private var responder :IResponder;
private var service : AbstractService;
public function SendGrassDelegate( _responder : IResponder )
{
service = ServiceLocator.getInstance().getRemoteObject(
"Send1" );
this.responder = _responder;
}
public function sendAll( ): void
{
var token : AsyncToken = service.sendAll();
token.addResponder(responder);
}
}
Services.mxml
<?xml version="1.0" encoding="utf-8"?>
<cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:cairngorm="com.adobe.cairngorm.business.*" >
<mx:RemoteObject
id="Send1"
destination="amfphp"
source="sendServices"
showBusyCursor="true">
<mx:method name="getUsers" />
</mx:RemoteObject>
</cairngorm:ServiceLocator>
..........
services-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>
<service id="amfphp-flashremoting-service"
class="flex.messaging.services.RemotingService"
messageTypes="flex.messaging.messages.RemotingMessage">
<destination id="amfphp">
<channels>
<channel ref="my-amfphp"/>
</channels>
<properties>
<source>*</source>
</properties>
</destination>
</service>
</services>
<channels>
<channel-definition id="my-amfphp"
class="mx.messaging.channels.AMFChannel">
<endpoint uri="http://localhost:80/amfphp/gateway.php"
class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>
</channels>
</services-config>
best regards