1:先在场景绘制一个任意形,图像也可以,f8转换为影片剪辑
[img]/uploads/allimg/100131/2158000.jpg[/img]
2:紧接着,按f8再转换一次影片剪辑"元件2"(也可以ctrl+F8拖进去,这里是个人习惯)
[img]/uploads/allimg/100131/2158001.jpg[/img]
3.双击进入"元件2",给影片剪辑起名称为"aqua0"
[img]/uploads/allimg/100131/2158002.jpg[/img]
4:新建图层2,层2第一帧点右键,给动作.
[img]/uploads/allimg/100131/2158003.jpg[/img]
5::给第二层依次按f7插入三个空白关键帧.他们的action依次是.
[img]/uploads/allimg/100131/2158004.jpg[/img]
第一帧:
d = 0;
i = 0;
numAqua = 0;
minAlpha = 70;
threshold = 500;
clp = aqua0;
maxChange = 1.57;
maxChange2 = 1.04666666666667;
halfMax = maxChange/2;
halfMax2 = maxChange2/2;
maxSpeed2 = 2;
trajectory = new Array(15);
trajectory[0] = 0;
第二帧:
i = numAqua;
while (i>=0) {
baseClip = eval("aqua"+i);
dx = baseClip._x-_xmouse;
dy = baseClip._y-_ymouse;
d = Number(Math.sqrt((dx*dx)+(dy*dy)));
if (threshold
第三帧:
gotoAndPlay(2);
6:基本上大功告成,最后,回到场景,新建一个层,加个背景图就ok了,别忘了把背景图放到最下层哦.你也可以多复制一些调整大小,这个大家自己发挥了.
[img]/uploads/allimg/100131/2158005.jpg[/img]
[url=http://www.agaf.cn/jc/fs/index.html]点击看看最终的效果[/url]
鼠标移到影片剪辑中心位置,看看效果.
本文转自:http://www.5uflash.com/flashjiaocheng/Flashdonghuajiaocheng/5337.html
[img]/uploads/allimg/100131/2158000.jpg[/img]
2:紧接着,按f8再转换一次影片剪辑"元件2"(也可以ctrl+F8拖进去,这里是个人习惯)
[img]/uploads/allimg/100131/2158001.jpg[/img]
3.双击进入"元件2",给影片剪辑起名称为"aqua0"
[img]/uploads/allimg/100131/2158002.jpg[/img]
4:新建图层2,层2第一帧点右键,给动作.
[img]/uploads/allimg/100131/2158003.jpg[/img]
5::给第二层依次按f7插入三个空白关键帧.他们的action依次是.
[img]/uploads/allimg/100131/2158004.jpg[/img]
第一帧:
d = 0;
i = 0;
numAqua = 0;
minAlpha = 70;
threshold = 500;
clp = aqua0;
maxChange = 1.57;
maxChange2 = 1.04666666666667;
halfMax = maxChange/2;
halfMax2 = maxChange2/2;
maxSpeed2 = 2;
trajectory = new Array(15);
trajectory[0] = 0;
第二帧:
i = numAqua;
while (i>=0) {
baseClip = eval("aqua"+i);
dx = baseClip._x-_xmouse;
dy = baseClip._y-_ymouse;
d = Number(Math.sqrt((dx*dx)+(dy*dy)));
if (threshold
第三帧:
gotoAndPlay(2);
6:基本上大功告成,最后,回到场景,新建一个层,加个背景图就ok了,别忘了把背景图放到最下层哦.你也可以多复制一些调整大小,这个大家自己发挥了.
[img]/uploads/allimg/100131/2158005.jpg[/img]
[url=http://www.agaf.cn/jc/fs/index.html]点击看看最终的效果[/url]
鼠标移到影片剪辑中心位置,看看效果.
本文转自:http://www.5uflash.com/flashjiaocheng/Flashdonghuajiaocheng/5337.html