0
當mx textarea中的verticalscrollbar停止滾動時,是否有辦法啓動事件?滾動時觸發的事件STOPS - flex
當mx textarea中的verticalscrollbar停止滾動時,是否有辦法啓動事件?滾動時觸發的事件STOPS - flex
我想出了以下解決方案:
private function init():void{
area.addEventListener(ScrollEvent.SCROLL,onScroll)
timer = new Timer(1000);
timer.addEventListener(TimerEvent.TIMER, startFun);
timer.start();
}
private function onScroll(e:Event):void{
timer.stop()
colored=false
timer.start()
}
private function startFun(e:Event):void{
while(!colored){
area.text="Bye Bye cruel world !"
colored=true;
}
}