title: How to stop on Enter Frame firing multiple times?
body: <p>I'm trying to do a simple url requestion on enter frame, but it seems to be executing multiple times? </p>
  
  <p>I tried removing the event handler on handleLoadSuccessful, that seems to stop it firing infinitely, but its still executing about 10 times before it stops.</p>
  
  <p>How do I make it only fire once?</p>
  
  <pre><code>addEventListener(Event.ENTER_FRAME, onLoadHandler);
  function onLoadHandler(event:Event) {
      var scriptRequest:URLRequest = new URLRequest("http://ad.doubleclick.net/clk;254580535;19110122;t?http://www.gamespot.com.au/Ads/gswide/hp/1x1.gif");
      var scriptLoader:URLLoader = new URLLoader();
      var scriptVars:URLVariables = new URLVariables();
  
      scriptLoader.addEventListener(Event.COMPLETE, handleLoadSuccessful);
      scriptLoader.addEventListener(IOErrorEvent.IO_ERROR, handleLoadError);
  
      scriptRequest.method = URLRequestMethod.POST;
      scriptRequest.data = scriptVars;
  
      scriptLoader.load(scriptRequest);
  
      function handleLoadSuccessful($evt:Event):void {
          trace("Message2 sent.");
          removeEventListener(Event.ENTER_FRAME, onLoadHandler);
  
      }
  
      function handleLoadError($evt:IOErrorEvent):void {
          trace("Message1 failed.");
      }
  }
  </code></pre>