textarea更新后 自动显示 最后一行

private function send(){
    if(!input.text==""){    
    text.text+=nametop.text+"说:"+input.text+"\n";
    input.text=""; 
    text.validateNow(); 
       text.verticalScrollPosition=text.maxVerticalScrollPosition;
    }
posted @ 2011-02-28 20:15  rob_2010  阅读(1288)  评论(0编辑  收藏  举报