Frame 1
function otherOnEnterFrame() {
z = 0;
while (z < int(speed / 20)) {
sx = 11;
sy = 11;
if (random(2) == 0) {
sx = 0 * random(2);
} else {
sy = 0 * random(2);
}
rx = random(319 - sx) + sx;
ry = random(239 - sy) + sy;
tp = bmp[0].getPixel(rx, ry) + 4278190080;
limiter = int((tp - 4278190080) / 1118481);
limiter = Math.min(5, limiter);
tp = tp - (1114112 * random(limiter));
tp = tp - (4352 * random(limiter));
tp = tp - (17 * random(limiter));
rect(1, rx - sx, ry - sy, (sx * 2) + 1, (sy * 2) + 1, tp);
z++;
}
speed--;
if (speed == 1) {
speed = 100;
}
}
function rect(l, x, y, w, h, c) {
bmp[l].fillRect(new flash.geom.Rectangle(x, y, w, h), c);
}
var gif = flash.display.BitmapData.loadBitmap("linism.gif");
fullscreen = new flash.geom.Rectangle(0, 0, 320, 240);
origin = new flash.geom.Point(0, 0);
focusRect = false;
tabEnabled = false;
_root.createEmptyMovieClip("bh", 10);
bmp = new Array();
x = 0;
while (x < 2) {
bmp[x] = new flash.display.BitmapData(320, 240, true, 4278190080);
bh.attachBitmap(bmp[x], x);
x++;
}
bh._xscale = (bh._yscale = 200);
q = 0;
size = 150;
speed = 100;
bmp[0].copyPixels(gif, new flash.geom.Rectangle(0, 0, 320, 240), origin);
song = new Sound();
song.attachSound("song.mp3");
song.start(0, 999);
this.desiredFrameRate = 60;
this.callFunctionInt = setInterval(this, "otherOnEnterFrame", 1000 / this.desiredFrameRate);