PDA

View Full Version : Forcing an input text field to loose focus


quercus_ark
08-11-2005, 02:57 AM
Hi, is there a way of making an Input Text Field loose focus(so that it removes the cursor from the box when the code is run)??

THanks
Dom

nitinmukesh123
08-11-2005, 05:21 AM
Suppose there is a input field on stage with instance name as _txt
Use below code to set focus in textfield
Selection.setFocus("_txt");

create a dummy button outside stage having instance name _btn
and use the below code
Selection.setFocus("_btn");