import mx.rpc.AsyncToken;
import mx.rpc.IResponder;
import mx.rpc.remoting.Operation;
import mx.rpc.remoting.RemoteObject;

var service:RemoteObject =
ServiceLocator.getInstance().getRemoteObject("getAllProducts");
                        
var operation:Operation = service.getOperation("get_information")
as Operation;
                                                
var token:AsyncToken = operation.send("0");
token.addResponder(this);

this works fine for me when i use cairngorm and amf-php for remoting.

--
Nayan Savla
http://nayansavla.com/blog/
Success Lies in Courage.




--- In [email protected], "asaivanson" <[EMAIL PROTECTED]> wrote:
>
> Does anyone have any idea why I'd be getting this error?
> 
> Type Coercion failed: cannot convert
> mx.rpc.remoting.mxml::[EMAIL PROTECTED] to mx.rpc.AsyncToken
> 
> In Cairngorm I'm dispatching an event which fires on creationComplete.
>  The event triggers a RemoteObject, which throws this error from my
> Delegate.  I'm not sure what I'm missing here...
>


Reply via email to