With oldnewbie's help, I've managed to streamline my data forms but know it seems that in process, I've broken something else! I have a MC that is a data entry form. On this form, I have a validation routine that fires when the user presses the "SEND" button. A code snippet follows:
If the field is empty, another MC opens ("error_pop") telling the user that the field needs to contain data. On the "error_pop" MC there is a "BACK" button that closes the mc. So far, so good. The problem now is that the setFocus() call doesn't work. I've called it from the validation routine with no luck and I've tried putting it in the "error_pop" movie clip and still no joy. Can someone shed some lite on this for me?
Thanks to all....
Patrick
There's always a better way. The fun is trying to find it!
Code:
if (myName == "" || myName == null) {
this.attachMovie("error_pop", "errmsg", 1);
errmsg._x = 201.5;
errmsg._y = -90;
errmsg.tfMessage = "Please enter your";
errmsg.tfMessage1 = "NAME";
selection.setFocus("contact_box.myName");
}
Thanks to all....
Patrick
There's always a better way. The fun is trying to find it!