1 Reply Latest reply on Jun 8, 2009 4:22 AM by Ned Murphy

    flashvars not working in actionscript 2

    PurpleArts Level 1



      i created a same script of calling my flashvars in actionscript 3.

      but when i tried to display my flashvar in actionscript 2, its not working.

      i did the same thing in calling and embedding the swf.

      but it's displaying undefined..


      somebody please help me..

      here's the block of code..




      import flash.external.ExternalInterface;
      import flash.events.Event;

      var xmlFilePath:String;
      try {
          var keyStr:String;
          var valueStr:String;
          var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
          for (keyStr in paramObj){
              valueStr = String(paramObj[keyStr]);
              if (valueStr.length > 0){
                  if(keyStr == "xmlFile") {
                      xmlFilePath = valueStr;


      } catch (error:Error) {




      tester.text = xmlFilePath;


      i was just trying to display the value of the flashvar. i tested it in the browser but it's still not working.