How do you programmatically move the caret of a Flex TextArea to the end?

Posted by Akinwale on Stack Overflow See other posts from Stack Overflow or by Akinwale
Published on 2009-02-02T07:08:24Z Indexed on 2010/03/17 13:51 UTC
Read the original article Hit count: 223

Filed under:
|
|
|
|

I'm trying to move the caret in a Flex TextArea to the end after appending some text from my code. I've looked through the reference documentation for TextArea and its underlying TextField but it appears there is no method provided to handle this.

One approach I've tried is to set focus to the text area and dispatch a KeyUp KeyboardEvent with the event's key code set to the "End" key, but this doesn't work.

Any ideas on how to do this?

Thanks.

© Stack Overflow or respective owner

Related posts about flex3

Related posts about flex