2006/08/27 | 电视机杂色效果
类别(AS2) | 评论(2) | 阅读(66) | 发表于 23:24
以下语句放在第一帧:
import flash.display.BitmapData;
var myBmp_bitmap:BitmapData = new BitmapData(100, 80, false, 0x00CCCCCC);
var my_mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
my_mc.attachBitmap(myBmp_bitmap, this.getNextHighestDepth());
my_mc._x = Stage.width/2-this._width/2;
my_mc._y = Stage.height/2-this._height/2;
onEnterFrame = function () {
  myBmp_bitmap.noise(Math.floor(Math.random()*500), 0, 255, 1 | 2 | 4, true);
};


图片如下:
0

评论Comments

日志分类
首页[49]
flashcs3[14]
coredraw[1]
flash练习[9]
AS2[7]
生活点滴[14]
资源下载[3]
photoshop[1]