So is there no way to to scroll to an arbitrary location within a TextArea in AS3/Flex 2?

-andrew


On 2/22/06, Andrew Cacioppo < [EMAIL PROTECTED]> wrote:
I'm programtically selecting text in a TextArea component by calling setSelection( startIndex, endIndex ), but often times, the selection is offscreen.

Is there a way to get the TextArea to scroll so the selected text is part of the displayed area?

I can get the text area to scroll to the end of the text by setting vPostion = maxVpostion, but I'm not sure of a way to calculate the vPostion of currently selected text.

Searching the list, I've seen solutions for doing this with a List, but not TextArea.

Thanks

-andrew



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to