3 Replies Latest reply on Sep 12, 2006 8:42 PM by Michael Lunsford

    LoadVars() problems

    Michael Lunsford Level 1
      myvar = new LoadVars();
      myvar.onLoad=function(result) {
      trace("loaded");
      trace(myvar.myaudio);
      }
      myvar.load("soundstatus.php?status=true");

      Now, I put the full URL in front of the "soundstatus.php" file. All this is supposed to do is load a variable from a PHP file. The PHP file returns "myaudio=true" or "myaudio=false" but when I run the script all I get is this in the output is:

      Loaded
      undefined

      I can add an onEnterFrame and trace the myvar.myaudio -- which loops a continuous "undefined".

      This was working fine earlier -- what am I missing?

      Thanks!