是否可以中止 flex remoteObject 调用?我尝试了以下方法,但 http 请求仍在后台加载:
var r:RemoteObject = new RemoteObject('<myDestination>');
r.source('myClass');
r.myMethod.addEventListener(ResultEvent.RESULT, myResponse);
r.myMethod(); // lets say this method takes 5 second to call
r.channelSet.disconnectAll(); // I thought this would abort the actual HTTP request but its still running
编辑
我感兴趣的是释放浏览器的 HTTP 管道,就像在 javascript 中可以在 XHR 上使用 abort 一样。