1 Reply Latest reply on Jul 1, 2007 10:20 AM by kglad

    help please  Url request variables problem

    cosmin_alex Level 1
      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 loader2:URLLoader = new URLLoader();
      loader2.addEventListener(Event.COMPLETE, OnComplete2);
      var request:URLRequest = new URLRequest(nume);
      var variables2:URLVariables = new URLVariables();
      variables2.c1 =c1;
      variables2.c2 =c2;
      variables2.c3 =c3;
      request.data = variables2;
      request.method = URLRequestMethod.POST;
      try {
      } catch (error:Error) {
      trace("Unable to load requested document.");

      private function OnComplete2(event:Event):void {
      var loader2:URLLoader = URLLoader(event.target);
      The problem is that in firefox works , but in IE dont :
      in Ie it appears a box:

      ReferenceError: Error #1065: Variable URLLoaderDataFormat is not defined.
      at medieval::DataLoader/::OnComplete2()
      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??