TF.onSetFocus = function() { _root.onEnterFrame = function() { TF._y = rect._y+rect._height-TF._height; TF.autoSize = (TF.textHeight+10<rect._height); }; }; TF.onKillFocus = function() { delete _root.onEnterFrame; };