flash question..
- Started
- Last post
- 4 Responses
- danoob
i have an input field with text in it and want ti to clear on click...sounds like it should be easy but shit. i aint easy.
- alloyd0
Give your text field an instance name (*in the instance name field and not in the variable field in the property inspector). Then just set the text field string value to nothing using blank quotes. ie.
myTextFieldInstanceName.text = "";
- blaw0
say the default text displaying in your input field (named 'inputField') is a variable called clientName, use the following...
inputField.onSetFocus = function (){
clientMame="";
}
- blaw0
err... typo in that AS...
inputField.onSetFocus = function (){
clientName="";
}...
clientName, not clientMame.
- ********0
I find it easier or better to always check that the text in the input field equals something generic before I set it to ""