dato11_txt.onSetFocus = function() {
dato11_txt.text = ""
}
dato21_txt.onSetFocus = function() {
dato21_txt.text = ""
}
dato31_txt.onSetFocus = function() {
dato31_txt.text = ""
}
dato41_txt.onSetFocus = function() {
dato41_txt.text = ""
}
dato51_txt.onSetFocus = function() {
dato51_txt.text = ""
}
Lo intento con
for(i=1;i<=5;i++){
this["dato"+i+"1_txt"].onSetFocus=function(){
this["dato"+i+"1_txt"].text="";
}
}
pero no me sale. ¿Cuál es el error?
Gracias