在40、80帧插上关键桢,在40帧处点元件按着SHIFT键用右方向键将元件移动一定位置,如图:

很简单元件就完成了,现在回到主场景。
二、场景组合
图层1第一帧将元件从库中拖入更改大小(为好制作做元件时做大了一些)。设置为:宽 130,高 15,全居中,给元件起实例名mc。新建图层2(名为AS),点选第一帧打开动作面板输入下列语句:
mc._visible = 0;
for (i=1; i<60; i++)
{
duplicateMovieClip("mc", "mc"+(i), i);
this["mc"+i]._rotation = this["mc"+(i
-1)]._rotation += 10;
this["mc"+i]._x = i*6+120;
this["mc"+i]._y = Stage.height/2;
this["mc"+i].onEnterFrame = function()
{
var mycolor:Color = new Color(this);
var mytarnsform:Object = mycolor.getTransform();
mytarnsform = {ra:Math.random()*255, ga:Math.random()*255, ba:Math.random()*255}; mycolor.setTransform(mytarnsform);
};
}
onEnterFrame = function ()
{
for (i=1; i<60; i++)
{
this["mc"+i]._rotation += 5;}
};
保存文档,点控制测试影片。祝您成功!
