title: How do I get the data of the URLRequest from the Complete Event handler for a URLLoader in AS3
body: <p>I have a queue of messages that I would like to send to a URL and I would like to remove messages from that queue only after I am sure they have been successfully sent.  To do this I need to know in the <code>COMPLETE</code> event for the <code>URLLoader</code> exactly what data was sent so that I can remove the correct message from the queue.</p>
  
  <p>That is if I have something like this.</p>
  
  <pre><code>var urlRequest:URLRequest = new URLRequest(targetUrl);  
  var urlLoader:URLLoader = new URLLoader();  
  urlLoader.dataFormat = URLLoaderDataFormat.TEXT;  
  urlRequest.data = "test";  
  
  urlRequest.method = URLRequestMethod.POST;  
  urlLoader.addEventListener(Event.COMPLETE, handleComplete);  
  urlLoader.load(urlRequest);  
  </code></pre>
  
  <p>And then my handleComplete function is like this:</p>
  
  <pre><code>public function handleComplete(e:Event):void{  
  
     //How do I trace the urlRequest.data for this event, whats below does not work.  
     //Because the target of the event is the URLLoader, not the URLRequest.  
  
     trace(e.target.data);  
  }
  </code></pre>