Flash: Yugop's text
Flash: Yugop's text
- Started
- Last post
- 4 Responses
- vaporstouch
Any ideas how he randomly generates letters to then form his actual words?
Thanks
- ********0
a loop, some random search through an array of characters, and lots of substrings... would take a few hours to get it right
- ganon0
http://www.actionscript.org/foru…
kinda works....
- warheros0
magic.
- E__________0
something like this:
var az = [a-z];
var n = 0;
var chr = az.charAt(random(az.length);
if(chr = txt.charAt(n))
{
n++;
string txt = txt.substr(0,n)
}
else
{
string txt = txt.substr(0,n) + chr;}
if(n == str.length)
end;