I have a movie clip that holds a text field that can be
changed either by typing in to it or clicking buttons (also
contained in the movieclip). Once the text field has focus there
seems to be no way of getting rid of it other than clicking in
another field. I have tried using Selection.setFocus(null) and this
appears to kill the focus but it is returned straight away and
while the field has focus the button input fails.
there must be some event that triggers your textfield to
loose focus. that can be any user action or a timer or anything
else that occurs within your swf or anywhere that your swf can
access. at that point your code should work.