timothye
03-31-2004, 05:05 PM
i have a input textField . and i have "name" typed in the textField ..
is it possible for this textField , when i click on it to make the existing text disappear when i click in the textField .then typ in the info ?
i have been trying to do this out of pure couriosity..here is my code that i dont know what im doing here ..:D
//name here in dynamic textField
my_txt.text = "Name here";
my_txt.onChanged = function(txt) {
trace(txt._name+"changed");
my_txt.text = "";
};
my_listener = new Object();
my_listener.onChanged = function(txt) {
my_txt.text = my_txt.text;
trace(txt._name+"new text");
};
my_txt.addListener(my_listener);
this basically clears the text Field . but then doesnt receive any text typed in after the onChanged <-
thanks for anysuggestions
is it possible for this textField , when i click on it to make the existing text disappear when i click in the textField .then typ in the info ?
i have been trying to do this out of pure couriosity..here is my code that i dont know what im doing here ..:D
//name here in dynamic textField
my_txt.text = "Name here";
my_txt.onChanged = function(txt) {
trace(txt._name+"changed");
my_txt.text = "";
};
my_listener = new Object();
my_listener.onChanged = function(txt) {
my_txt.text = my_txt.text;
trace(txt._name+"new text");
};
my_txt.addListener(my_listener);
this basically clears the text Field . but then doesnt receive any text typed in after the onChanged <-
thanks for anysuggestions