5 Replies Latest reply on Nov 19, 2010 7:08 PM by Ned Murphy

    Output Displays "Undefined"....  Help

    kapelski Level 1

      Hello All,

       

      I have posted here quite a bit for help before and I have received vast amounts of help.  Thanks in advance to anyone who can help with this.  I have some code that is returning "Undefined" in the output when I click the submit button.  I have a variable named "score" and the button is named "submit_btn". If you have any questions or need more info, feel free to ask.

       

      var scores_lv = new LoadVars();

       

      function showHighScores(success) {
      if (success) {
        gotoAndStop(13);
      }
      };

       

      submit_btn.onRelease = function() {
      if (name_txt.text != '')
      {
        submit_btn.enabled = false;
       
        trace(score);

        scores_lv.name  = name_txt.text;
        scores_lv.score = score;
       
        scores_lv.onLoad = showHighScores;
       
        scores_lv.sendAndLoad('scores.php',scores_lv);
      }
      };