I think I would take the simpler route:

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 fncShuffle() {
        return Math.floor(Math.random()*3)-1;
}

_root.onEnterFrame = function() {
        myTxt_txt.text = ascii.sort(fncShuffle).join("").substr(0, 19);
};


-- 
Byron "Barn" Canfield


> great fix! thx guys(or gals):
>
>
>
> 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;
>  initialTxt = "";
>  for (var x:Number = 0; x < yy; x++) {
>   j = random1();
>   initialTxt += j.toString();
>  }
>  return initialTxt;
> }
>
> _root.onEnterFrame = function() {
>  uu = random2();
>  myTxt_txt.text = uu;
> }
> _______________________________________________
> 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
>


_______________________________________________
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

Reply via email to