Amongst the many changes from AS2 to As3 is the way we set the focus.
In AS2 you can set the focus using the setFocus function on an object.
In AS3 you set the focus using the “focus” property of a container object(stage, movieclip, etc…).
Example:

stage.focus = txtField;

where ‘txtField’ is a textField on the stage.