Actionscript:
-
var alphabet:Array = ("abcdefghijklmnopqrstuvwxyz").split("");
-
trace("this is the letter b...", alphabet[1]);
-
trace(alphabet);
-
/* outputs:
-
this is the letter b... b
-
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
-
*/
This is an easy way to create an array of the alphabet. It's easier to type than:
Actionscript:
-
var alphabet:Array = ["a","b","c".... etc];