论坛交流
首页办公自动化| 网页制作| 平面设计| 动画制作| 数据库开发| 程序设计| 全部视频教程
应用视频: Windows | Word2007 | Excel2007 | PowerPoint2007 | Dreamweaver 8 | Fireworks 8 | Flash 8 | Photoshop cs | CorelDraw 12
编程视频: C语言视频教程 | HTML | Div+Css布局 | Javascript | Access数据库 | Asp | Sql Server数据库Asp.net  | Flash AS
当前位置 > 文字教程 > Flash教程
Tag:flash cs,flash 8,鼠绘,as,手绘,工具,文字,loading,入门,初学,mc,影片剪辑,声音,mtv,游戏,引导,遮罩,菜单,补间,广告条,时钟,视频教程

show出你的内容

文章类别:Flash | 发表日期:2008-9-21 19:41:58

  效果是仿别人,但代码绝对是自己的!
点击浏览该文件
点击浏览该文件

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);

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);
上一篇:{应用}网站的页面更换效果 人气:3007
下一篇:{应用}AS编写三维环视效果 人气:1291
视频教程列表
文章教程搜索
 
Flash推荐教程
Flash热门教程
看全部视频教程
购买方式/价格
购买视频教程: 咨询客服
tel:15972130058