Flash animation effect is imitation of others, but the code is absolutely their own!
http://www.flash8.net/bbs/UploadFile/2005-7/2005729181856767.swf
Click here to download the source file
Txt_mc._visible = false;
var banner:string = "Welcome to www.lh8.wapjh.com";
function effect (Target:movieclip, banner:string, Nn:number) {
var num = banner.length;
for (var i = 0; i<num; i++) {
Duplicatemovieclip (Target, "MC" +i, I);
NEW_MC = this["MC" +i];
New_mc._visible = false;
new_mc._x = target._x+i*10;
do {
New_mc.txt_num = Banner.charcodeat (i);
New_mc.num_num = 48+random (74);
while (New_mc.txt_num = = New_mc.num_num);
New_mc.n_num = New_mc.txt_num>new_mc.num_num? +1:-1;
NEW_MC.I = i;
NEW_MC.N = 0;
NEW_MC.T = Gettimer ();
New_mc.onenterframe = function () {
This.t_mc._visible = false;
if (Gettimer () >this.i*nn+this.t) {
This._visible = true;
This.num_num + = This.n_num;
This.txt.text = Chr (this.num_num);
if (This.txt_num = = This.num_num) {
Delete This.onenterframe;
}
this.n++;
Duplicatemovieclip (THIS.T_MC, "txt" +this.n+this.i*1000, THIS.I*1000-THIS.N);
N_MC = this["txt" +this.n+this.i*1000];
N_mc.num_num = This.num_num;
N_mc.txt.text = Chr (this.num_num);
N_mc.onenterframe = function () {
This._alpha-= 7;
This._xscale = This._yscale + 10;
if (this._alpha<5) {
Removemovieclip (this);
}
};
}
};
}
}
Effect (TXT_MC, banner, 100);