import fl.controls.UIScrollBar; var my_text_jieshou = new TextField(); my_text_jieshou.type = TextFieldType.INPUT; my_text_jieshou.x = 20; my_text_jieshou.y = 40; my_text_jieshou.width = 452; my_text_jieshou.height = 210; my_text_jieshou.text = "欢迎光临..."; my_text_jieshou.border=true; //自动换行 my_text_jieshou.wordWrap=true; //多行文本 my_text_jieshou.multiline = true; my_text_jieshou.borderColor = 0xcccccc; my_text_jieshou.setSelection(my_text_jieshou.length, my_text_jieshou.length); addChild(my_text_jieshou); var my_text_scroo:UIScrollBar=new UIScrollBar(); my_text_scroo.x =500; my_text_scroo.y = 40; my_text_scroo.height = 210; my_text_scroo.scrollTarget = my_text_jieshou; //setTimeout(addHandler, 100); //function addHandler():void { my_text_scroo.update() my_text_scroo.scrollPosition = my_text_scroo.maxScrollPosition; //} addChild(my_text_scroo); import fl.controls.UIScrollBar; var my_text_jieshou = new TextField(); my_text_jieshou.type = TextFieldType.INPUT; my_text_jieshou.x = 20; my_text_jieshou.y = 40; my_text_jieshou.width = 452; my_text_jieshou.height = 210; my_text_jieshou.text = "欢迎光临..."; my_text_jieshou.border=true; //自动换行 my_text_jieshou.wordWrap=true; //多行文本 my_text_jieshou.multiline = true; my_text_jieshou.borderColor = 0xcccccc; my_text_jieshou.setSelection(my_text_jieshou.length, my_text_jieshou.length); addChild(my_text_jieshou); var my_text_scroo:UIScrollBar=new UIScrollBar(); my_text_scroo.x =500; my_text_scroo.y = 40; my_text_scroo.height = 210; my_text_scroo.scrollTarget = my_text_jieshou; setTimeout(addHandler, 100); function addHandler():void { my_text_scroo.scrollPosition = my_text_scroo.maxScrollPosition; } addChild(my_text_scroo); 也就是说,使用了延迟功能,就不用updata();