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

    Url request variables problem

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


      public function LoadXML2(nume:String,c1:String,c2:String,c3:String):void {
      var loader:URLLoader = new URLLoader();
      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 {
      } 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:


      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??