Does giving your TextArea the focus with setFocus() inside a 
callLater() scroll the selection into view?  I have no direct 
experience with this in AS3, so take it for what it's worth...

Doug


--- In [email protected], "Andrew Cacioppo" 
<[EMAIL PROTECTED]> wrote:
>
> 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 
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/
 



Reply via email to