theres a replace method in the string class, but its not documented in the actionscript 2.0 reference on devnet. The syntax is pretty self explanatory looking at the method in the class in the first run folder:
It doesnt seem to workCode:function replace( re:String, repl:String ):String; // Central API
outputs undefined in flash 8 using player 8 (the method is in the flash player 7 string class as well)Code:var test:String = "testerosa"; trace(test.replace("test", "tits"));