Remove textField Focus


I have a movie that has four different input text fields, all in separate movieClips. Inside each movie clip I have code that listens for the ‘Enter’ key to be pressed, and if it is, it stores the value and turns the focus off of that textField…which works great.

[LEFT]txt.onKeyDown = function(){
    if (Key.isDown(Key.ENTER) && eval(Selection.getFocus()) == this){

My problem is that I want it so that if the focus is on one of the textFields, if they click anywhere outside any of the textFields, I want the cursor to disappear from the textField it was in, and all focus to be lost.

I tried doing this, by putting


on the root, but the cursor remains in the textField…which is weird since it worked in the onKeyDown function above.

Any ideas??