2 Replies Latest reply on Jul 13, 2010 4:41 AM by jiggy1965

    loadvars doesn't work online?

    jiggy1965 Level 1

      I've got a simple text file with a variable in it:

      &tekst=This is a test&


      I'm loading it with LoadVars and let the text of one dynamic textfield be replaced by the 'tekst' variable.



      var my_lv:LoadVars = new LoadVars();

      my_lv.onLoad = function(success:Boolean) {

      if (success) {

      tekst_txt.text = my_lv.tekst;

      } else {

      trace("Error loading/parsing LoadVars.");





      This works offline, but online the text isn't replaced? This should work right? So what's wrong?


      The code and the dynamic textfield are both on frame 1. The swf only has this one frame. The txt, swf and html file are at the same location.