Frame 1
wind = 25;
wchange = 1;
chans = 0.1;
Frame 55
if (Math.random() < chans) {
Rand = Math.random();
if (Rand < 0.05) {
wind = 5 * Math.random();
wind = ((wind < 0.5) ? 0.5 : (wind));
} else if (Rand < 0.3) {
wind = 5 + (10 * Math.random());
} else if (Rand < 0.7) {
wind = 15 + (15 * Math.random());
} else if (Rand < 0.9) {
wind = 30 + (10 * Math.random());
} else {
wind = 40 + (10 * Math.random());
}
wchange = 0.1 + (Math.random() * 0.7);
chans = 0;
}
chans = chans + 0.15;
gotoAndPlay (3);
Symbol 18 MovieClip Frame 1
nr = 0;
i = 0;
while (i < 200) {
nr++;
duplicateMovieClip ("seed", "s" + nr, nr);
stjarnan = this["s" + nr];
stjarnan._x = 550 * Math.random();
stjarnan._y = 40 * Math.random();
if (nr > 3) {
stjarnan._xscale = 10 + (60 * Math.random());
} else {
stjarnan._xscale = 70 + (50 * Math.random());
}
stjarnan._yscale = stjarnan._xscale;
stjarnan.yellow._alpha = 50 * Math.random();
if ((Math.random() < 0.8) && (nr > 3)) {
stjarnan.alphan = 35 + (Math.random() * 25);
} else {
stjarnan.alphan = 80 + (Math.random() * 15);
}
stjarnan.lage = 0;
stjarnan._alpha = stjarnan.alphan;
i++;
}
this.onEnterFrame = function () {
var _local1 = this;
i = 1;
while (i <= 200) {
stjarnan = _local1["s" + i];
if ((stjarnan.lage == 0) && (Math.random() < 0.1)) {
stjarnan._alpha = 100;
stjarnan.lage = 96;
} else if (stjarnan.lage > 0) {
if (stjarnan._alpha > stjarnan.alphan) {
stjarnan._alpha = stjarnan._alpha * 0.75;
if (stjarnan._alpha < stjarnan.alphan) {
stjarnan._alpha = stjarnan.alphan;
}
}
stjarnan.lage--;
}
i++;
}
};
Symbol 22 MovieClip Frame 1
function setRGB(arcurrent) {
if (arcurrent == Malet) {
Malet++;
cRed = (50 + random(205)) + 1;
cGreen = (50 + random(205)) + 1;
cBlue = (50 + random(205)) + 1;
}
}
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = amount;
if (_local2 > 100) {
_local2 = 100;
}
if (_local2 < 0) {
_local2 = 0;
}
var percent = (100 - _local2);
var _local1 = new Object();
_local1.ra = (_local1.ga = (_local1.ba = percent));
var _local3 = _local2 / 100;
_local1.rb = r * _local3;
_local1.gb = g * _local3;
_local1.bb = b * _local3;
this.setTransform(_local1);
};
Malet = 0;
setRGB(0);
nr = 0;
i = 0;
while (i < 184) {
nr++;
duplicateMovieClip ("seed", "n" + nr, nr);
sken = this["n" + nr];
sken.yy = 39.25 + (1.5 * Math.random());
sken._x = (nr * 3) - 4;
sken._y = sken.yy;
sken.dir = random(1);
sken.movedelay = 0;
sken.movephase = (Math.random() / 2) + 1;
sken.col = new Color(sken);
sken.langd = (90 + random(30)) + 1;
sken._yscale = sken.langd;
sken.lendir = random(1);
sken.cooldown = (25 + random(25)) + 1;
sken.alphan = (40 + random(40)) + 1;
sken.alphatarget = (40 + random(40)) + 1;
sken._alpha = sken.alphan;
sken.senastered = cRed;
sken.senastegreen = cGreen;
sken.senasteblue = cBlue;
sken.tred = cRed;
sken.tgreen = cGreen;
sken.tblue = cBlue;
sken.tredtarget = cRed;
sken.tgreentarget = cGreen;
sken.tbluetarget = cBlue;
sken.nuvarandeMal = Malet;
i++;
}
egetAlphaMal = (50 + random(50)) + 1;
egenAlpha = 75;
this.onEnterFrame = function () {
var _local1 = this;
if (Math.round(egetAlphaMal) == Math.round(egenAlpha)) {
egetAlphaMal = (50 + random(50)) + 1;
} else if (egetAlphaMal > _local1._alpha) {
egenAlpha = egenAlpha + 0.5;
} else {
egenAlpha = egenAlpha - 0.5;
}
_local1._alpha = egenAlpha;
i = 1;
while (i <= 184) {
sken = _local1["n" + i];
if (sken._y >= 42.75) {
sken.dir = 0;
sken.movedelay = random(5);
sken.movephase = (Math.random() / 2) + 1;
} else if (sken._y <= 37.25) {
sken.dir = 1;
sken.movedelay = random(5);
sken.movephase = (Math.random() / 2) + 1;
}
if (sken.movedelay == 0) {
if (sken.dir == 0) {
sken.yy = sken.yy - (0.05 * sken.movephase);
} else {
sken.yy = sken.yy + (0.05 * sken.movephase);
}
sken._y = sken.yy;
} else {
sken.movedelay--;
}
if ((sken.cooldown == 0) || (sken.langd <= 70)) {
sken.lendir = ((sken.lendir == 0) ? 1 : 0);
sken.cooldown = (25 + random(25)) + 1;
}
if (sken.lendir == 0) {
sken.langd = sken.langd - 1;
} else {
sken.langd = sken.langd + 1;
}
sken.cooldown--;
sken._yscale = sken.langd;
if (sken.alphatarget == sken.alphan) {
sken.alphatarget = (40 + random(40)) + 1;
}
if (sken.alphatarget > sken.alphan) {
sken.alphan = sken.alphan + 1;
if (sken.alphatarget < sken.alphan) {
sken.alphan = sken.alphatarget;
}
} else {
sken.alphan = sken.alphan - 1;
if (sken.alphatarget > sken.alphan) {
sken.alphan = sken.alphatarget;
}
}
sken._alpha = sken.alphan;
ok = 0;
skillnad = sken.tred - sken.tredtarget;
if ((skillnad >= -0.5) && (skillnad <= 0.5)) {
ok++;
} else {
sken.tred = sken.tred + ((sken.tredtarget - sken.senastered) / 100);
}
skillnad = sken.tgreen - sken.tgreentarget;
if ((skillnad >= -0.5) && (skillnad <= 0.5)) {
ok++;
} else {
sken.tgreen = sken.tgreen + ((sken.tgreentarget - sken.senastegreen) / 100);
}
skillnad = sken.tblue - sken.tbluetarget;
if ((skillnad >= -0.5) && (skillnad <= 0.5)) {
ok++;
} else {
sken.tblue = sken.tblue + ((sken.tbluetarget - sken.senasteblue) / 100);
}
if (ok == 3) {
if (sken.nuvarandeMal == Malet) {
setRGB(sken.nuvarandeMal);
} else {
if ((((Math.random() < 0.4) && (sken.tred < 245)) && (sken.tgreen < 245)) && (sken.tblue < 245)) {
zeamount = 10 * Math.random();
sken.tred = sken.tred + zeamount;
sken.tgreen = sken.tgreen + zeamount;
sken.tblue = sken.tblue + zeamount;
} else if (Math.random() < 0.4) {
zeamount = 10 * Math.random();
sken.tred = sken.tred - zeamount;
sken.tgreen = sken.tgreen - zeamount;
sken.tblue = sken.tblue - zeamount;
}
sken.senastered = sken.tred;
sken.senastegreen = sken.tgreen;
sken.senasteblue = sken.tblue;
sken.tredtarget = cRed;
sken.tgreentarget = cGreen;
sken.tbluetarget = cBlue;
sken.nuvarandeMal = Malet;
}
}
sken.col.setTint(Math.round(sken.tred), Math.round(sken.tgreen), Math.round(sken.tblue), 100);
i++;
}
};
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 3
gotoAndStop (1);
Symbol 26 MovieClip Frame 1
nr = 0;
wind = 25;
i = 0;
while (i < 100) {
nr++;
duplicateMovieClip ("seed", "f" + nr, nr);
flingan = this["f" + nr];
flingan._x = 550 * Math.random();
flingan._y = 400 * Math.random();
flingan._xscale = 100 + (300 * Math.random());
flingan._yscale = flingan._xscale;
i++;
}
this.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
if (wind > _local1.wind) {
wind = wind * (1 - (_local1.wchange / 10));
if (wind < _local1.wind) {
wind = _local1.wind;
}
} else if (wind < _local1.wind) {
wind = wind * (1 + (_local1.wchange / 10));
if (wind > _local1.wind) {
wind = _local1.wind;
}
}
i = 1;
while (i <= 100) {
flingan = _local2["f" + i];
flingan._x = flingan._x - wind;
flingan._y = flingan._y + (flingan._xscale / 100);
if (flingan._x < (-(flingan._width / 2))) {
flingan._xscale = 100 + (300 * Math.random());
flingan._yscale = flingan._xscale;
flingan._x = (550 + (flingan._width / 2)) + (wind * Math.random());
flingan._y = 400 * Math.random();
} else if (flingan._y > (400 + (flingan._height / 2))) {
flingan._xscale = 100 + (300 * Math.random());
flingan._yscale = flingan._xscale;
flingan._x = 550 * Math.random();
flingan._y = (-(flingan._height / 2)) - (wind * Math.random());
}
i++;
}
};
Symbol 29 Button
on (keyPress "<Space>") {
NL.nextFrame();
}