CODE
EXPLANATION
this.createEmptyMovieClip("holder",
this.getNextHighestDepth());
This
code creates and empty movieclip on stage
holder.maxnos
=75;
holder.dropspeed=1;
var txt:MovieClip;
This
part starts variables to be used in the script here maxnos gives
the maximum no of clips to be attached and drop speed represents
the dropping sped of the rain
for
(i=0; i<holder.maxnos; i++) {
holder.attachMovie("textholder",
"textholder"+i, holder.getNextHighestDepth());
//setting
properities of the attached clip
txt = holder["textholder"+i];
txt._x =random(Stage.width);
txt._y =random(Stage.height);
txt._xscale = txt._yscale=random(60);
//making
a string containing the letters to be attached
var txtsel:String="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrtuvwxyz";
ranvalue=random(54);
/*adding
a letter at random index of the string to dynamic text field inside
the attached clip*/
txt.txt_char.text=txtsel.substr(ranvalue,1);
}