渐变遮罩闪光灯

时间:2010-07-13 05:43:44

标签: actionscript-3

我想在我的20张图片中添加渐变遮罩效果。

var arr:Array = ["m1.jpg","m2.jpg","m3.jpg","m4.jpg","m5.jpg"];

for(var i=0; i<20; i++){
    duplicateMovieClip(ho, "newImg_mc"+i , this.getNextHighestDepth()); 
    if(i < 5){
        this["newImg_mc"+i]._x = 0;
        this["newImg_mc"+i]._y = 110*i;
        this["newImg_mc"+i].loadMovie(arr[i]);
    }

    if(i >= 5 and i < 10){
        this["newImg_mc"+i]._x = 110;
        this["newImg_mc"+i]._y = 110*(i-5);
        this["newImg_mc"+i].loadMovie(arr[i-5]);
    }

    if(i >= 10 and i < 15){
        this["newImg_mc"+i]._x = 220;
        this["newImg_mc"+i]._y = 110*(i-10);
        this["newImg_mc"+i].loadMovie(arr[i-10]);
    }
    if(i >= 15 and i < 20){
        this["newImg_mc"+i]._x = 330;
        this["newImg_mc"+i]._y = 110*(i-15);
        this["newImg_mc"+i].loadMovie(arr[i-15]);
    }
}

1 个答案:

答案 0 :(得分:0)

您需要将蒙版的blendMode和蒙版对象设置为BlendMode.LAYER