I was thinking the fastest way of building a string with a fill char.define a function:
fillString('A',12); // return 'AAAAAAAAAAAA'
A simple loop could do this, but it’s not very fast if I want to fill millions characters.
Is this the fastest way of combining string in actionscript?
array.join('');
If so, the first you need to build an array first,that would consume too much space.
Once I was thinking a stringbuffer class but I think it would be slower than using String directly.
This is probably not the correct actionscript syntax, but you should get the idea: