1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
on (playing) {
import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.geom.Point;
trame = new flash.display.BitmapData(400, 300, true, 0xff000000);
var clip:MovieClip = this.createEmptyMovieClip("clip", this.getNextHighestDepth());
clip.attachBitmap(trame, 10, "auto", true);
clip.blendMode = 4;
run = function () {
i += 1;
z = Math.random()*6;
t = Math.random()*3;
trame.perlinNoise(t, z, 1, 1+i, false, false, 2, false, null);
maCam._x = Math.random()*0.5;
maCam._y = Math.random()*1;
};
var filterObj = new flash.filters.ColorMatrixFilter();
filterObj.matrix = new Array(1/3, 1/3, 1/3, 0, 0, 1/3, 1/3, 1/3, 0, 0, 1/3, 1/3, 1/3, 0, 0, 0, 0, 0, 1, 0);
intervalId = setInterval(this, "run", 50);
tv_mc.swapDepths(16000);
this.filters = [filterObj];
} |
Partager