|
I've done this in the past through code like the following: textArea.addEventListener( FlexEvent.VALUE_COMMIT, autoScrollToBottom ); private function autoScrollToBottom( event:FlexEvent ):void { // Auto-scroll to the bottom anytime the text changes event.target.validateNow(); event.target.verticalScrollPosition = event.target.maxVerticalScrollPosition; } Essentially, with the above code you never have to explicitly tell the text area to scroll to the bottom - it will automatically do that anything the text property changes programmatically. So, anytime you assign the text to be something else, your scrollbar will automatically adjust for you. This is code I've used in the past with beta 3, and I haven't tried it with the released version, so it's not guaranteed to work. :-) -d Pan Troglodytes wrote:
__._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS
|
- Re: [flexcoders] best general purpose way to keep textare... Darron J. Schall
- Re: [flexcoders] best general purpose way to keep te... Pan Troglodytes
- Re: [flexcoders] best general purpose way to keep te... Daniel Nelson

