lundi 26 décembre 2016

Flash AS3 read proxy server response with URLLoader

I am running an embedded flash 'swf' inside a LAN network with a proxy server. Proxy server interrupts some urls and returns my usage information. I am trying to access this information by sending those urls. I can see this traffic in firebug ,But the URLLoader does not seem to read it. Neither Complete event or progress event get fired. I tried URLStream with a timer also,but availableBytes were always zero.Is it possible to read this information?

  private var getLoader:URLLoader() = new URLLoader();
  private var sendRequest:URLRequest = new URLRequest();
  public function XDomain() {
   sendRequest= new URLRequest("requesturl");
   getLoader.addEventListener(Event.COMPLETE, eventHandler);
  private function eventHandler(event:Event):void {
  private function eventHandler2(event:ProgressEvent):void {
   trace("runninhg progresss");

Thanks in advance (It is not a crossdomain issue. I can see the response in firebug)

Aucun commentaire:

Enregistrer un commentaire