3 responses to “Replace Function for ActionScript 2.0”

  1. dev

    This function is not working for me.
    I used this function but its not replacing any character.
    Please check it :
    on(release)
    {
    var addr =searchAndReplace(txtAddress.text,”\n”,”|”);
    function searchAndReplace(holder, searchfor, replacement) {
    temparray = holder.split(searchfor);
    holder = temparray.join(replacement);
    return (holder);
    }
    }

  2. Alex

    Hi,

    It seems an interesting function. It would be wonderful if you also have the ActionScript 3 version.

Leave a Reply


*