Flash Player 7.
my_txt.replaceText(beginIndex, endIndex, text)
my_txt
beginIndex
endIndex
text
Method; replaces a range of characters, specified by the beginIndex and endIndex parameters, in the specified text field with the contents of the text parameter.