Frame 1
function backchange(col, alpha) {
with (_root) {
beginFill(col, alpha);
moveTo(0, 0);
lineTo(SW, 0);
lineTo(SW, SH);
lineTo(0, SH);
lineTo(0, 0);
endFill();
}
}
function makestar() {
c++;
if (c > 2000) {
c = 1000;
}
_root.createEmptyMovieClip("star" + c, c);
with (_root["star" + c]) {
lineStyle(2, cols[random(cols.length)], 100);
lineTo(0.2, 0);
_x = SW / 2;
_y = SH / 2;
_width = 5;
_height = 5;
_alpha = 20;
_rotation = random(360);
}
_root["star" + c].spd = random(speed / 2) + (speed / 2);
_root["star" + c].onEnterFrame = function () {
with (this) {
spd = spd * (1 + (_root.accel / 500));
_width = _width * (1 + (_root.accel / 2500));
_height = _height * (1 + (_root.accel / 2500));
_alpha = _alpha + 5;
if (_rotation > 180) {
_y = _y + (spd * Math.cos((Math.PI/180) * _rotation));
_x = _x - (spd * Math.sin((Math.PI/180) * _rotation));
} else {
_y = _y - (spd * Math.cos((Math.PI/180) * _rotation));
_x = _x + (spd * Math.sin((Math.PI/180) * _rotation));
}
if ((((_x < (-_width)) || (_x > (SW + _width))) || (_y > (SH + _width))) || (_y < (-_width))) {
this.removeMovieClip();
}
}
};
}
SW = Stage.width;
SH = Stage.height;
C7 = new Array("0xFFFFFF", "0x000066", "0x632794", "0xB10303", "0x000033", "0x6D6DFE", "0xCC33FF", "0x4B016B", "0xFF9900", "0xFEBE81", "0x00CCFF", "0x00FFFF", "0xFFFF99", "0x003399", "0xE6FFFF", "0x01ADAD", "0xFF99FF", "0xFFFFCC", "0xFFFFC1");
onEnterFrame = function () {
backchange(C7[random(C7.length)], 100);
};
cols = new Array(16711680, 16777164, 10092543, 13434879, 16764159, 65535, 16764108, 13421823, 16777215);
var frequency = 40;
var speed = 5;
var accel = 20;
c = 1000;
interv = setInterval(function () {
makestar();
}, 1000 / frequency);
Instance of Symbol 29 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(999999);
}