this fills up my dynamic txt field. then just stops. it should keep
producing a random string of 19 characters (the length of the txt field),
then replace it every frame with a new string of random characters. instead
it just fills up, then stops. ugh!
---------
ascii = new Array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
"k", "l", "m", "n", "o", "p", "q", "r", "s", "t",
"u", "v", "w", "x", "y", "z");
function random1() {
x = ascii[random(ascii.length)];
return x;
}
function random2() {
yy = _root.myTxt_txt.length;
for (x = 0; x < yy; x++) {
j = random1();
if (initialTxt == undefined) {
initialTxt = '';
}
initialTxt += j.toString();
}
return initialTxt;
}
_root.onEnterFrame = function() {
myTxt_txt.text = random2();
}
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com