You're first populating myTxt_txt with a string of 19 spaces or other character, correct?
Are you certain that random2() is not appending a new string to the end of the existing one? What if trimmed it down and changed it to... function random2() { yy = _root.myTxt_txt.length; initialTxt = ""; for (x = 0; x < yy; x++) { j = random1(); initialTxt = j.toString(); } return initialTxt; } Sorry, if these are basic questions, just covering the bases :p _______________________________________________ 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