I’m absolutely and completely dumbfounded by this problem…
target.txtField.onSetFocus = function() {
trace(inputText.getFieldText()); // custom function, outputs a string (ex. "name")
if (this.text == inputText.getFieldText()) {
// this IF statement runs through fine
this.text = ""; // won't work, no matter if I set it to empy or anything...
}
}
I’m probably doing something very stupid here… but I can’t figure out what. I’ve done my research, gone over examples online and in books, still not working. The text field goes blank, but I cannot type into it, and it loses focus (if I try using Selection.setFocus(this); it doesn’t work).