0 Replies Latest reply on Oct 16, 2010 12:10 PM by Haibo17

    Get URL based on URLStream?


      I don't know if this is possible. Here is my situation:



      var urlReq:URLRequest = new URLRequest(strURL);

      var urlStream:URLStream = new URLStream();


      urlStream.addEventListener(Event.COMPLETE, loadedEventHandler);

      urlStream.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);

      urlStream.load (urlReq);



      when the URLStream is done loading


      public function loadedEventHandler(event:Event):void


         var urlStream:URLStream = event.target as URLStream;

        //here, how can I get the original URL?