Flex Textarea - Create and Get a Selection
Feb 19th, 2007 by Onyrix 629 Views |
Email This Post
|
Print This Post
How to create a selection on a Textarea or TextInput:
myTextArea.setSelection(fromIndex, toIndex);
How to create a selection on a RichTextEditor:
myRTE.textArea.setSelection(0, 10);
How to get a selection from a TextArea or TextInput:
var mySelectedTextRange:TextRange = new TextRange(myTextArea, true);
How to get a selection from a RichTextEditor:
public var mySelectedTextRange:TextRange = myRTE.selection;

del.icio.us
Digg
Furl
Reddit
Technorati