10 Replies Latest reply on Sep 16, 2010 5:23 AM by Ned Murphy

    Display text if my_txt is empty

    Ron Colmen Level 2

      this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 10, 10);

      my_btn.onRelease = function () {

      senderLoad.ac = abc.text;

      senderLoad.sendAndLoad("http://my.com/my.php",receiveLoad,"POST");

      receiveLoad.onData = function(src) {

      //continues

      }

      if(my_txt.text!=""){

      my_txt.text=""

      }else{

      my_txt.text="my message"

      my_txt.setTextFormat(format2);

      }

      };

       

      Sometimes I'm receiving "my message" along with the text in my_txt. How do I make sure that "my message" is displayed only if my_txt is empty?