well, i have localized x in the for loop, and changed the value in the single number generator from "x" to singleLetter. that seems to have been a giant part of the problem. however now, the code produces one solid string. blinks out. no text, then freezes up.
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() { singleLetter = ascii[random(ascii.length)]; return singleLetter; } function random2() { yy = _root.myTxt_txt.length; for (var x:Number = 0; x < yy; x++) { j = random1(); if (initialTxt == undefined) { initialTxt = ''; } initialTxt += j.toString(); } return initialTxt; } _root.onEnterFrame = function() { uu = random2(); myTxt_txt.text = uu; trace("myTxt_txt.text: "+myTxt_txt.text.length) } _______________________________________________ Flashcoders@chattyfig.figleaf.com 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