Canceling pending Flash Remoting calls
We're looking for a way to cancel pending flash remoting invocations. If anyone knows the answer, please let us know. Here's some surrounding context:
Using Flash Remoting components for Flash MX2004 AS2.0 one can invoke a server-side method and get an instance of mx.remoting.PendingCall. The object represents the invocation and provides a level of indirection for response or error handling. There is a similar object in the ActionScript web services API. The PendingCall class from the web services API has the cancel() method, but no such method seems to be available with the FR components.







1 Comments:
Might be a hack, but I solved my problems by storing the pendingcall variable (e.g. previousPendingCall) and begin your function by clearing the responder reference of your previous call (previousPendingCall.responder = undefined). This doesn't cancel the call but you ignore all responces to it.
Good enough?
jk
7:37 AM
Post a Comment
<< Home