3 Replies Latest reply on Jan 24, 2011 6:34 AM by kglad

    Avoid Spaces

    Ron Colmen Level 2

      In my submit form how do I avoid fields containing only spaces? (sometimes users just submit the form just by hitting the space bar and I want to avoid it)

       

       

      my_btn.onRelease = function () {

      my_vars = new LoadVars();

      my_vars.nickname = nickname.text;

      if (my_vars.nickname != "") {

      gotoAndPlay(5)

      }