Hi I have an array that I think could use some shortening.
It is an array of the alphabet and numbers that I use to get a random letter/number combo from.
I am sure there is a better way to do this. Maybe a regExp?
In essence, I want to get a random combo of Upper and lowercase letters and numbers.
A total of 8 all together.

Would I create a line like this?

var codeCombo:Array = new Array([a-zA-Z], [0-9]);
or would it be better to put each letter as a string in the array?
var codeCombo:Array = new Array("a", "A", "b","B", etc.. "0", "1", etc..
Thanks for any pointers.


Karl DeSaulniers
Design Drumm
http://designdrumm.com

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to