当前位置:首页 > 设计在线 > 平面动画 > Flash > 利用Flash AS打造梦幻彩色泡泡动画

利用Flash AS打造梦幻彩色泡泡动画

点击次数:23 次 发布日期:2008-11-29 20:09:14 作者:源代码网
源代码网推荐

源代码网整理以下文由中国教程网 呱唧 原创,转载请保留此信息!

源代码网整理以下  用Flash AS简单打造梦幻彩色泡泡动画,效果如下:

点击这里下载源文件(解压密码:www.jzxue.com)

//写在帧的代码:这里的代码主要是复制用的!
i = 0;
ppo._visible=false
function enet() {
i++;
sc = random(50)+20;
duplicateMovieClip("ppo", "ppo"+i, i);
_root["ppo"+i]._x = random(550);
_root["ppo"+i]._y = random(400);
_root["ppo"+i]._xscale = _root["ppo"+i]._yscale=sc;
}
onEnterFrame = function () {
if (i<25) {
enet();
}
};
_____________________________________________________

//写在元件本身的代码
onClipEvent (load) {
xx = random(550);
xy = random(400);
dt = 50;
this.ys._alpha=random(150)+50;
var yanse:Color = new Color(this.yanse_mc);
yanse.setRGB(random(0xffffff));
}
onClipEvent (enterFrame) {
if (random(dt) == 1) {
xx = random(550);
xy = random(400);
}
//
dx = (xx-_x);
dy = (xy-_y);
dx*=.01;
dy*=.01;
//dx*=.4;
//dy*=.4
_x += dx;
_y += dy;
_rotation+=0;
}

利用Flash AS打造梦幻彩色泡泡动画

利用Flash AS打造梦幻彩色泡泡动画

利用Flash AS打造梦幻彩色泡泡动画

利用Flash AS打造梦幻彩色泡泡动画

利用Flash AS打造梦幻彩色泡泡动画



源代码网供稿.
网友评论 (0)
会员中心
设计在线
本站推荐
设计在线之精华