str:String – The string to have portions replaced.
search:String – The string to search for and replace in str.
replace:String – The string which is placed where the search string is found.
String – The original string with portions replaced.
trace(strReplace(str, “Hello”, “Goodbye”)); //outputs Goodbye World!
trace(str); //outputs Hello World!
You might also like
|getting past IE popup blocker ActionScript3 can use this fix to bypass popups in IE… /* use this snippet in the as file to work with this class ...||Tricks and Experiments , AS3 Tips As you read each of the following descriptions, consider opening Flash, pasting the code into timeline script and...||Using other types within ActionScript packages I was doing something, I forget what it was now, but it got me curious about functions defined in some of the...||Check Valid Email in AS3 Where construction of forms in Flash is required to whether the email account is entered correctly or not do this...|