title: Flex - how to abort/stop a RemoteObject method call?
body: <p>I am using RemoteObjects to call ZendAMF PHP from Flex/Flash Builder 4.6.  I want to stop or abort a method call before it sends the request to the server based on an event or similar.</p>
  
  <p>I have a class where I create and store all the RemoteObjects - for example:</p>
  
  <pre><code>activityLogService = new RemoteObject("zend");
  activityLogService.endpoint=endpointServer;
  activityLogService.addEventListener(FaultEvent.FAULT,faultHandler);
  </code></pre>
  
  <p>Then later I can simply call this object:</p>
  
  <pre><code>remotingService.activityLogService .getRecords();
  </code></pre>
  
  <p>I am trying to find a way in my remotingService object to stop the request - and not send anything to the server - for example if some variables are not set properly.</p>
  
  <p>I noticed there is an invoke event:
  activityLogService.addEventListener(InvokeEvent.INVOKE,invokeHandler);</p>
  
  <p>However, I can not tell if that's going to stop things at the proper point, or if it's even possible to actually STOP the request - if so, how?</p>
  
  <p>Thanks!</p>