Change A Character In A String Using Actionscript

Posted by Joshua on Stack Overflow See other posts from Stack Overflow or by Joshua
Published on 2010-05-14T02:25:07Z Indexed on 2010/05/14 2:34 UTC
Read the original article Hit count: 244

What is the opposite of String.charAt()??

If I Have a string:

var Str:String="Hello World";

How do I change the 5th character, for example, from a ' ' to an '_'?

I can GET the 5th character like this:

var C:String=Str.charAt(5);

But how do I SET the 5th character?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about flex