顶部468*60ad 顶部468*60ad顶部468*60ad顶部468*60ad

Flash AS代码制作眩目旋转动画

http://www.webjx.com/  2008-10-06 21:36:01  来源:中国教程网论坛 zctmh0336(诚信为人)


二、场景组合

图层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;} 
}; 

保存文档,点控制测试影片。祝您成功!

共3页: 上一页 [1] [2] 3 下一页

文章评论

共有 0 位网友发表了评论 查看完整内容