I believe I am working with Actionscript 2, in Flash
I need to get a string from the user interface and do some
sanity checks on it, and substitute out a few characters, exaclty
as in the common function urlencode() in other web languages.
I saw string.split(), but the substitutions are tedious.. Any
better way to do this common task ?