3 Replies Latest reply on Nov 30, 2006 10:36 AM by kglad

    Checking a field value condition

    spektred Level 1
      ActionScript noob here. I have a input field with an instance name of my_txt, now, sometimes the field displays dynamic text and then other times my content person may choose to leave the field empty. But when its empty, the field displays the word "undefined", which is not what I want. Why doesn't this code work?

      if(my_txt == undefined) {
      my_txt.text="";
      } else {
      my_txt.text=customText;
      }