Hi James, Please describe in more details how exactly you would like to select a text by the help of the Mouse.
Do not you want to select a text with a first mouse click inside the text and then by holding a clicked mouse button to make a selection? -- -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED] On 24/10/2007, 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 > > >