[AS3] Replacing Strings in Flash, String Manipulation in Actionscript 3.0
While working on a Flash AS3 application, I needed to manipulate a string and found out that old AS1 and AS2 str.replace() would not work in the same way in the AS3. Instead I ended up using split and join functions for a simple string replacement. Hope that helps. Cheers!