Frame 1
_quality = "LOW";
sun._alpha = 35;
ix = sun._x;
iy = sun._y;
i = 0;
while (i < 10) {
sun.duplicateMovieClip("sun" + i, _root.getNextHighestDepth());
_root["sun" + i]._xscale = (_root["sun" + i]._yscale = 101 + (13 * i));
_root["sun" + i]._alpha = 35 - (i * 2);
i++;
}
_root.createEmptyMovieClip("bmc", _root.getNextHighestDepth());
var b = (new flash.display.BitmapData(137.5, 100, true, 0));
bmc.attachBitmap(b, _root.getNextHighestDepth());
trace(bmc._width);
bmc._x = 0;
bmc._y = 0;
bmc._xscale = (bmc._yscale = 400);
bmc._alpha = 39;
var map = (new flash.display.BitmapData(137.5, 100, true, 0));
map.perlinNoise(50, 50, 4, 3, false, false, 3);
var filt = (new flash.filters.DisplacementMapFilter(map, new Point(), 1, 2, 3, 3));
b.draw(_root, new flash.geom.Matrix(0.25, 0, 0, 0.25, 0, 0));
var m = (new flash.geom.Matrix(0.25, 0, 0, 0.25, 0, 0));
var zpt = new Point(0, 0);
_root.createEmptyMovieClip("maskmc", _root.getNextHighestDepth());
maskmc.beginFill(0, 100);
maskmc.moveTo(10, 10);
maskmc.lineTo(540, 10);
maskmc.lineTo(540, 390);
maskmc.lineTo(10, 390);
maskmc.endFill();
_root.setMask(maskmc);
Stage.scaleMode = "noscale";
_root.onEnterFrame = function () {
i = 0;
while (i < 10) {
_root["sun" + i]._y = iy + (Math.random() * 4);
_root["sun" + i]._x = ix + (Math.random() * 4);
i++;
}
b.draw(_root, m);
b.applyFilter(b, b.rectangle, zpt, filt);
map.perlinNoise(50, 50, 6, 3 + getTimer(), false, true, 3);
};
stop();