In as3.
Componenete TextArea e UIScrollBar in libreria, questo codice nel primo frame.

stop() import fl.controls.TextArea; import fl.events.ScrollEvent; var controllo:Boolean=false var myTextArea:TextArea = new TextArea(); myTextArea.setSize(160, 120); myTextArea.move(10, 10); myTextArea.verticalScrollBar.pageSize = 1; myTextArea.addEventListener(ScrollEvent.SCROLL, scrollHandler); addChild(myTextArea); var myURLLoader:URLLoader = new URLLoader(); myURLLoader.addEventListener(Event.COMPLETE, completeHandler); myURLLoader.load(new URLRequest("testo.txt")); function scrollHandler(event:ScrollEvent):void { trace("scroll: " + myTextArea.verticalScrollPosition + " of " + myTextArea.maxVerticalScrollPosition); } function completeHandler(event:Event):void { var txt:String = URLLoader(event.currentTarget).data as String; myTextArea.htmlText = txt; } function visualizzaTesto(evento:Event):void { controllo=true trace(controllo) gotoAndStop(5) if(controllo==true) { addChild(myTextArea); } }