1.打开flash8/新建文档.
2.导入一张图片到场景并转换为影片剪辑/全居中/锁定图层.
3.新建图层2.将影片剪辑拖入到图层2中,全居中.
4.点击图层2的影片剪辑,打开滤镜面板/添加滤镜/模糊,设置xy值为20或30.锁定图层.
(如用flash2004等版本可用ps进行模糊处理)
5.打开属性面板,在实例名称里输入blurred.
6.新建图层3.图层命名为as.
7.打开动作面板输入语句:
var myColor:Color = new Color(blurred);
var white:Object = {ra:100, rb:255, ga:100, gb:255, ba:100, bb:255, aa:100, ab:255};
myColor.setTransform(white);
setc();
function setc(){
onEnterFrame = function(){
white.rb-=5;
white.gb-=5;
white.bb-=5;
white.ab-=5;
myColor.setTransform(white);
}
}
8.测试影片