The function is called searchandreplace. The variables in parentheses are called arguments. This function can take a minimum of 3 arguments and a maximum of 5 arguments (occurrences and backward are optional).
Kory Roberts is a part-time Flash developer. He is the author of ScoreKeeper and has experience integrating Flash with other scripting languages, such as Perl/CGI and PHP.