I need to be able to get the text selected by user after
clicking a dynamic scrolling textfield.
I am very disappointed to find no method that returns the
selected text when there is a property of textField to make it
I am using Flash MX. Let me know if this is possible in newer
versions if not in MX.
Well, I don't think the Selection class has changed since MX.
up until version 8...
Can't you use the getCaretIndex or getBeginIndex &
getEndIndex methods of the Selection class? If you've got the
indices and you know the contents of your textfield, then you have
all you need to know to get the selection range of actual text.
Not sure how practical it is trying to do that in a scrolling
text field though. Wouldn't it be difficult to select text that way
if its scrolling?