0 Replies Latest reply on Nov 15, 2008 12:05 AM by luciewong

    LoadVars and >&< ?

    luciewong Level 1
      I have a problem with LoadVars.
      I am loading a Text file in >looks like>&&rec0=sffdfd&&rec1=AASASD&&rec2=bBBBB……<

      When the value pair contains an amp>&< like> Art&Design < it will read >&Design< as a own record var.
      So >Art< disappears and &Design=& <

      I use >onLoad.func< because for several reasons I don't wonna use >onData< because iterating through the decode String with the >prop< method writes out all vars in the text file. I want to push only the vars called "rec" into my array. I need to have also some Error funcs included. So I use:

      var getCtext:LoadVars = new LoadVars();
      var recCtext:LoadVars = new LoadVars();
      recCtext.onLoad = function(success:Boolean){
      store_array = new Array();
      var csdpages:Number = parseInt(this["recCounter"]);
      var ib:Number = 0;

      var amp = "&amp;";
      var noAmp = this["rec" + ib].split(amp).join("&").toString();
      ib = ib+1;

      Thank you for your help.