On 2/7/06, Jonas Windey <[EMAIL PROTECTED]> wrote:
>
> How would I set the scrollPosition of a textarea to it's maximum position?
> I'm trying to create an msn-like socket application, and need to have my
> textArea scrolled to the lowest position.
>
> I tried txtLog.vPosition = txtLog.maxVPosition; and txtLog.vPosition =
> txtLog.textField.height, but no luck.
This seems to work for me in Beta 1.
<mx:TextArea id="textArea">
<mx:text>
<![CDATA[
This is some text.
And I love the way I can write code so quickly
in Flex Builder 2.0!
Woohoo!!!
]]>
</mx:text>
</mx:TextArea>
<mx:Button click="textArea.vPosition = textArea.maxVPosition" />
--
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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/