I'm trying to be able to scroll to a selected piece of text that may be offscreen but still somewhere in the middle of the entire text block.
On 2/23/06, Dirk Eismann <[EMAIL PROTECTED]> wrote:
Try this:
myTextArea.text = newText;
myTextArea.validateNow();
myTextArea.vPosition = myTextArea.maxVPosition;
Dirk.
________________________________
Von: [email protected] im Auftrag von Andrew Cacioppo
Gesendet: Do 23.02.2006 19:18
An: [email protected]
Betreff: [flexcoders] Re: TextArea - Scrolling to selected text
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] <mailto: [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 < http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ > Computer software development < http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw > Software design and development < http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ >
Macromedia flex < http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36cYzBjw > Software development best practice < http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw >
________________________________
YAHOO! GROUPS LINKS
* Visit your group "flexcoders <http://groups.yahoo.com/group/flexcoders> " on the web.
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] <mailto: [EMAIL PROTECTED]?subject=Unsubscribe>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/ > .
________________________________
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

