textField.getCharIndexAtPoint();

- Dan Freiman

On 10/24/07, jamalwally <[EMAIL PROTECTED]> wrote:
>
>   Hi,
>
> I would like to be able to highlight text in a TextArea that is under
> the user's mouse.
>
> In Flex 2 is there a way to get the text character that is closest to
> a given x,y position within a TextArea (or TextField)?
>
> Right now, I have each word in a separate TextArea and I listen for
> mouseOver events on each TextArea, but this is a bit of a pain. It
> would be cleaner to put all text into one TextArea, but this requires
> me to be able to determine the mapping between pixel coordinates and
> text character positions. Any help would be greatly appreciated.
>
> This post follows up on an unresolved previous posting:
> http://tech.groups.yahoo.com/group/flexcoders/message/21888
>
> Thanks,
> James
>
>  
>

Reply via email to