strReplace in ActionScript
function strReplace(str:String, search:String, replace:String):String { return str.split(search).join(replace); } Description: A function used for replacing portions of a string with a new one. Note that this function does not modify the original string. Parameters: str:String – The string to have portions replaced. search:String – The string to search for and replace in str. replace:String – The [...]





