Return to Snippet

Revision: 563
at July 19, 2006 07:24 by kanirasta


Initial Code
function replaceString(myString:String, replaceThis:String, withThis:String):String { 
var split_ar = myString.split(replaceThis) 
myString = split_ar.join(withThis) 
return myString; 
}  

textoVar = replaceString ("hola pepe, como estas"," ","_");

Initial URL

                                

Initial Description
Busca y reemplaza un texto por otro en un string.

Initial Title
Reemplazar string

Initial Tags
actionscript, flash

Initial Language
ActionScript