T > TextField.replaceSel |
![]() ![]() ![]() |
TextField.replaceSel
Availability
Flash Player 6.
Usage
TextField.replaceSel(text
)
Parameters
text
A string.
Returns
Nothing.
Description
Method; replaces the current selection with the contents of the text
parameter. The text is inserted at the position of the current selection, using the current default character format and default paragraph format. The text is not treated as HTML, even if the text field is an HTML text field.
You can use the replaceSel
method to insert and delete text without disrupting the character and paragraph formatting of the rest of the text.
![]() ![]() ![]() |