Find and Replace in Flash ActionScript
Bummed out about the lack of regexp in ActionScript 2.0?
Well, at least you can copy and paste this
"find and replace" function into your code:
// EXAMPLE USAGE:
var a = "Hello World! The World is great!";
a = findAndReplace(a, "World", "Bob");
trace(a);
// a is now: Hello Bob! The Bob is great! |