How to access the selected text in a Flex TextInput control -
I am using Flashbuilder 4. I have spark text input control, and I implement a "copy" button Only copy the selected text from this control to the clipboard (like too much RBB copy) How do I do this?
Thanks,
Paddy
Try it: < / P>
var startIndex: int = Math.min (myTextInput.textDisplay.selectionActivePosition, myTextInput.textDisplay.SelectionAnchorPosition); Var endIndex: int = Math.max (myTextInput.textDisplay.selectionActivePosition, myTextInput.textDisplay.selectAnchorPosition);
Comments
Post a Comment