Display text if my_txt is empty


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 text in my_txt. how make sure "my message" displayed if my_txt empty?

does "//continues" involve appending text textfield (using +=)?  that's way see 2 different pieces of text being in textfield. if there data being loaded, can take time, conditionals follow ondata function not wait load, if textfield empty, write "my message" before data gets appended.



More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい