0 Replies Latest reply on Nov 15, 2008 9:00 AM by luciewong

    LoadVars eliminate "&" in value string

    luciewong Level 1
      Hi,
      I have modified the smart code rlc5611 gave me, so I receive now var names + at the same time var values.
      The problem - when the value includes an ampers >&< I have an error. What could I write that the record
      &rec1=Art&Gallery< still is seen as 1 record??

      Thank you for your help.
      Luciewong

      myLV = new LoadVars();
      myLV.onLoad = function(success:Boolean) {
      myvariables = new Array();
      if (success) {
      for(variable_name in this) {
      if(typeof(this[variable_name]) == "string"){
      trace(variable_name);
      myvariables.push(variable_name);
      //I added here to get my values>
      myVal_array.push(this[variable_name].toString());//<works good / but not with included >&<

      }
      }
      trace(myvariables);
      }
      }
      myLV.load("mytextfile.txt");