2 Replies Latest reply on Sep 30, 2008 1:29 AM by Big_Russ

    loadVars broken in Flash 7 onward?

    Big_Russ
      This script works fine when I publish for Flash 6:

      // create a new LoadVars instance
      thisVars = new LoadVars();

      thisVars.Load("variables.txt");

      thisVars.onLoad = function() { // check if vars all loaded
      if (thisVars.loaded = 1) { // vars completely loaded
      trace(thisVars.loaded);
      trace(thisVars.file);
      gotoAndPlay(2);

      } else { // The data didn’t load at all. Display error
      trace("error: data didn't load");
      } // end "if loaded==1" statament
      }


      But when I publish for Flash 7 or later, the data does not load!

      I'm using a Mac running OSX 10.4.11 with Flash CS3.

      Please help,