制作步骤:
1,运动补间的灵活运用。
2,掌握随机函数 random()的运用。
一,新建图形元件。
1, 打开 FLASHMX2004,新建一大小为 450*300像素,背景色为黑色,帧频默认的文档。
2, 单击菜单中的插入――新建元件,名称( 1),行为(图形元件),单击确定。
3, 在工具栏中选择随圆工具,填充色为无色,画一大小为 60*60像素的只有边框的圆。用黑箭头工具选定该圆,在属性面版中设笔触为 2,线条的形状如图 1。

4, 选定该圆,复制多一个,结果图如图 2。

5, 用黑箭头工具删掉不是交叉的部分,如图 3。

6, 选定该圆,用变形工具将该图形的注册点拖到下方,如图 4。

7, 按 CTRL+T打开变形面版,在旋转处输入 45,按最下一排的第一个按钮复制并运用变形,连续按七次。全选所有的图形,(水平中齐,垂直居中)。
二,创建影片。
1, 菜单――插入――新建元件,名称( flower),形为(电影剪辑),单击确定。
2, F11 打开库面版,拖出元件 1,(水平中齐,垂直居中),分别在 5, 10, 15, 20, 25, 30帧按 F6。在 5, 10, 15, 20帧分别选定该元件,在属性面版中颜色处的下拉箭头中选色调,然后分别调不同的色,第 5帧的色的调整图如图 5。

各帧上的色调任意。在 25帧处把该元件的 alpha的值设为 0。然后在 20, 25, 30之间建立运动补间。
3, 在 60处按 F6,选定该元件,在属性面版设该元件的大小为 25*25。(水平中齐,垂直居中),在 65, 70, 75,按 F6,分别在各帧改变元件的不同色调,方法同上面的 2步骤一样,最后在 80帧处按 F5,在 30到 60帧之间建立运动补间,在属性面版中补间处设运动补间,沿顺时针旋转 1次。
三,组织场景。
1, 新增加一图层,一共二个图层,从下到上分别是, flower, AS。如图 6

2, 在 flower层,按F11打开库面版,把影片 flower拖入该层中主场景任意一位置,在第四帧按F5。在属性面版中取实例中为 mc。如图 7:

锁定该层。
3, 在 AS中 1, 2, 4帧处按 F7键插入空白关键帧。按 F9打开动作面版。
第一帧代码:
mc._visible = 0;
i = 0;
max = 100;
第二帧代码:
duplicateMovieClip("mc", "mc"+i, i);
_root["mc"+i]._x = Math.random()*Stage.width;
_root["mc"+i]._y = Math.random()*Stage.height;
_root["mc"+i]._alpha = Math.random()*100;
i++;
第四帧代码:
if (i<max) {
gotoAndPlay(2);
} else {
gotoAndPlay(1);
}
存盘测试。