Oops, sorry - seems as if I misinterpreted your inquiry.
 
Maybe if you read the TextMetrics (lineheight etc.)? I don't have the 
documentation in front of me but I'm sure there's such a thing.
 
Dirk.

________________________________

Von: [email protected] im Auftrag von Andrew Cacioppo
Gesendet: Do 23.02.2006 21:57
An: [email protected]
Betreff: Re: [flexcoders] Re: TextArea - Scrolling to selected text


Doesn't that just send the scroll bar to the end of the TextArea?

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] <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
 
<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
 
<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
 
<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
 
<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
 
<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] <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 
<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]> 
                  
        *        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 
<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]> 
          
*        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 
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/
 

<<winmail.dat>>

Reply via email to