以下语句放在第一帧:
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);
};
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);
};