急!!flash如何制作雪花飘飘的动画

我用的flashcs3 想用引导层做出雪花飘飘的效果,不知道该怎么办,求帮助订旦斥秆俪飞筹时船江!!!明天就要交作业了,麻烦大家帮我一下下谢谢~~~~~

第1个回答  2020-03-07
用flash软件制作雪花飘飘的动画的方法有两种,一种为代码法,另一种为影片剪辑法。
1、代码法。
(1)用矩形工具绘制如下图所示的雪花元件,并命名为SNOW.
(2)返回至主场景,在第一关键帧插入如下代码:
function
begin(mc)
{
mc._x
=
Stage.width
*
Math.random();
mc._y
=
Stage.height
*
Math.random();
mc._alpha
=
5
+
95
*
Math.random();
mc._xscale
=
mc._yscale
=
5
+
125
*
Math.random();
mc.speed
=
4
*
Math.random()
+
1;
mc.wind
=
2
*
(Math.random()
-
Math.random());
}
//
End
of
the
function
for
(i
=
0;
i
<
600;
i++)
{
mc
=
attachMovie("snow",
"snow"
+
i,
i);
begin(mc);
mc.onEnterFrame
=
function
()
{
this._y
=
this._y
+
this.speed;
this._x
=
this._x
+
this.speed;
if
(this._y
>
Stage.height)
{
this._y
=
0;
}
//
end
if
if
(this._x
>
Stage.width)
{
this._x
=
0;
}
//
end
if
if
(this._x
<
0)
{
this._x
=
Stage.width;
}
//
end
if
};
}
//
end
of
for
stop
();
(3)CTRL+ENTER,测试影片效果。
2、影片剪辑法。
(1)新建图形元件“SNOW”,运用线条工具绘制作“六瓣雪花”。
(2)新建影片剪辑元件"SNOW
MOVE",将“六瓣雪化”图形元件从库中托入至该影片剪辑元件中,新建一个图层,用铅笔工具绘制作雪花自然飘落的路线作为引导线,调整“六瓣雪花”的起始位置,制作雪花飘落的引导动画。
(3)新建影片剪辑元件“SNOW
ALL”,并添加五个图形,将影片剪辑元件“SNOW
MOVE”从库中托入至该影片剪辑的不同图层中,调整其大小和位置。
(4)返回到主场景中,将影片剪辑元件SNOW
ALL多次
托入其中,使雪花飘落的过程位于场景中央。
(5)CTRL+ENTER,测试影片效果。
相似回答
大家正在搜