PDA

View Full Version : get the selected text of a TextField


issamneo
09-16-2004, 11:58 AM
hi
can i get the text that the user select from the textfield
means i've a textfield i put some text in it then the user select a word for example i want to get this word
thank you for the help

Morg
09-16-2004, 01:37 PM
I dont know what this does, but it might be able to help you:

Search in your flash helpfile for 'TextSnapshot.getSelectedText()'...

Like I said. Im not at all sure what this does, but it might be in the right direction...
Good luck!

issamneo
09-16-2004, 03:44 PM
thank you for the help MORG but the solution if someone need it is
Selection.getBeginIndex() and Selection.getEndIndex()
;)