This content has been marked as final.
Show 3 replies
-
1. Re: hide text
Ned Murphy Dec 18, 2011 4:30 AM (in response to cactus8599)One way is to assign a FocusEvent.FOCUS_IN event listener to the textfield, as in (f or textfield with an instance name of "tf")...
tf.addEventListener(FocusEvent.FOCUS_IN, clearText);
function clearText(evt:FocusEvent):void {
tf.text = "";
}But if you intend to have it only remove specific text then you should have a conditional surrounding the tf.text assigment that checks to see if the phrase is in the textfield.
-
-


