I have had a lot of problems with the focus manager in the
past. For some reason the focus manager seems to be slower than AS
you execute to invoke it. I got around my problem by using
setInterval to incorporate a very short (10 ms) delay before trying
to change focus.