I can't seem to find my problem and any help is greatly appreciated. I have a movie clip with a variable name of "form". Inside the movie clip I have an input textfield with a variable name of "name".
I have initialized the textfield and I want the textfield to clear when the user clicks in the text box. I thought the following actionscript would do this:
form.name = "Enter Your Name";
form.name.onSetFocus = function() {
form.name = "";
}
This script is currently on the first frame of the movie.
When the movie loads the textfield contains "Enter Your Name", but when I click in that field it is not cleared.
Any ideas on what my problem could be?
Thanks in advance for any help.
I have initialized the textfield and I want the textfield to clear when the user clicks in the text box. I thought the following actionscript would do this:
form.name = "Enter Your Name";
form.name.onSetFocus = function() {
form.name = "";
}
This script is currently on the first frame of the movie.
When the movie loads the textfield contains "Enter Your Name", but when I click in that field it is not cleared.
Any ideas on what my problem could be?
Thanks in advance for any help.