3 Replies Latest reply on Nov 16, 2010 5:04 AM by Ned Murphy

    0 for empty text fields

    Ron Colmen Level 2

      I've got txt_1, txt_2, etc... upto txt_15. How do I make "0" appear for the empty text fields.

       

       

      main_btn.onRelease = function () {

      //do something and

      for (i=0; i <16; i++){

      if("txt_"+[i].text==""){

      "txt_"+[i].text="0"

      }

      }