What is the opposite of String.charAt()
??
If I Have a string:
var Str:String=\"Hello World\";
How do I change the 5th chara
you cannot set any characters. Strings in ECMAScript (including ActionScript) are immutable. One thing you can do is to construct a new string containing the desired characters, as proposed here.
However, if you plan to modify the string a lot, the best is to rather have an array of characters, that you can mutate at will. When you need to print it, you simply join
it with ""
as separator.
greetz
back2dos