private function onChange(event:Event):void { _txt.width = Math.max(50, _txt.textWidth + 5); _txt.height = _txt.textHeight + 4; _txt.scrollH = 0; }