Flash text focus Question
Flash text focus Question
- Started
- Last post
- 2 Responses
- mr_flaco
Hey hey,
Quick and easy - Im working on blanking out an input field on focus:user.onSetFocus = function() {
user = "";
};which works, but this function sets the text 'user' to _level0.user instead of whats actually typed there @ run time. Equally strange to me is that I can set the text in AS before the function, but then the function doesnt work. Hmmm...anyone see what I'm missing?
- unfittoprint0
probably something like:
TextField.prototype.setAutoBlank = function(value) {
if(value) {
this.onSetFocus = function() {this.text = "";}
}else{
this.onSetFocus = null;
}
}
- mr_flaco0
hmmm,
Cant seem to get that to do it for me. I'll do a little more reading on the textField prototype. Thanks unfit, for pointing me in the right direction.