0 Replies Latest reply on Jun 29, 2007 5:04 AM by cosmin_alex

    Url request variables problem

    cosmin_alex
      I have a problem .I am trying to load some data from a php script . I want to send some variables to php .

      quote:

      public function LoadXML2(nume:String,c1:String,c2:String,c3:String):void {
      var loader:URLLoader = new URLLoader();
      configureListeners(loader);
      var request:URLRequest = new URLRequest(nume);
      var variables:URLVariables = new URLVariables();
      variables.c1 =c1;
      variables.c2 =c2;
      variables.c3 =c3;
      request.data = variables;
      request.method = URLRequestMethod.POST;
      try {
      loader.load(request);
      } catch (error:Error) {
      trace("Unable to load requested document.");
      }

      }


      The problem is that in firefox works , but in IE dont :
      in Ie it appears a box:

      quote:

      Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
      at Error$/throwError()
      at flash.net::URLVariables/decode()
      at flash.net::URLVariables$iinit()
      at medieval::DataLoader/::OnComplete()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/flash.net:URLLoader::onComplete()


      I want to mention that this error appears when I add urlVariables
      what should I DO??