I am pretty new to AS3, and am trying to have my text field clear when I click it, then, if nothing is typed, go back to the original text. For example, I am using this for a "First Name" field.
This is the code I have that isnt working... thoughts? Its giving me an error for the focusHandler, but I cant find the right replacement property?
Code:
txName.focusHandler = function(){
if(txName.text == "Full Name"){
txName.text = "";
}
}
txName.killFocusHandler = function(){
if(txName.text == "")
{
txName.text = "Full Name";
}
}
thank you!