Frame 1
this.onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
delete this.onEnterFrame;
play();
} else {
bal._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
}
};
stop();
Frame 2
function z255() {
return(Math.round(Math.random() * 255));
}
function z225() {
return(Math.round(Math.random() * 225) + 30);
}
function z50() {
return(Math.round(Math.random() * 50) + 50);
}
trs = new Array();
trunds = new Array();
count = 0;
next = 20;
_root.attachMovie("BG", "bg", 1);
bg = _root.getInstanceAtDepth(1);
bg._x = 320;
bg._y = 240;
_root.attachMovie("SiGe", "SiGe", 40);
s = _root.getInstanceAtDepth(40);
s._x = 630;
s._y = 470;
var i = 0;
while (i < 6) {
_root.attachMovie("tr", "trund" + (i + 30), i + 30);
cmc = _root.getInstanceAtDepth(i + 30);
trunds.push(cmc);
cmc._x = 213.333333333333 * ((i % 3) + 0.5);
if (i < 3) {
cmc._y = 60;
} else {
cmc._y = 420;
}
cmc._xscale = 50;
cmc._yscale = cmc._xscale;
cmc.cu = {r:z255(), g:z255(), b:z255(), a:z50()};
cmc.to = {r:0, g:0, b:0, a:0};
cmc.c = new Color(cmc);
cmc.rand = Math.round(Math.random() * 180);
i++;
}
this.onEnterFrame = function () {
if ((count % next) == 0) {
for (mc in trs) {
trs[mc].swapDepths(++trs[mc].d);
}
_root.attachMovie("tr", "tr" + ((count / next) + 1), 2);
var _local5 = _root.getInstanceAtDepth(2);
trs.push(_local5);
_local5._x = 320;
_local5._y = 240;
_local5._xscale = 3;
_local5._yscale = 3;
_local5._rotation = 180;
_local5._alpha = Math.round(Math.random() * 40) + 60;
_local5.d = 2;
_local5.n = (count / next) + 1;
var _local18 = new Color(_local5);
_local18.setRGB(Math.round(Math.random() * 16777000) + 215);
_local5.rand = Math.round(Math.random() * 5);
}
count++;
var _local4 = count / 7;
for (mc in trs) {
var _local2 = trs[mc];
var _local3 = _local2._xscale / 300;
_local2._xscale = _local2._xscale + (10 * _local3);
_local2._yscale = _local2._yscale + (10 * _local3);
_local2._rotation = _local2._rotation + ((Math.cos((_local4 / _local2.n) + _local2.rand) * Math.sin((_local4 + (_local2.rand * _local2.n)) / 20)) * 60);
if (_local2._alpha < 8) {
_local2.removeMovieClip();
trs.splice(0, 1);
} else if (_local2._yscale > 900) {
_local2._alpha = _local2._alpha - 8;
}
}
if (bg.to == undefined) {
bg.cu = {r:0, g:0, b:0};
bg.to = bg.cu;
bg.c = new Color(bg);
}
if (((Math.round(bg.cu.r) == bg.to.r) && (Math.round(bg.cu.g) == bg.to.g)) && (Math.round(bg.cu.b) == bg.to.b)) {
bg.to = {r:z225(), g:z225(), b:z225()};
}
bg.cu.r = bg.cu.r + ((bg.to.r - bg.cu.r) / 4);
bg.cu.g = bg.cu.g + ((bg.to.g - bg.cu.g) / 4);
bg.cu.b = bg.cu.b + ((bg.to.b - bg.cu.b) / 4);
bg.c.setTransform({ra:100, rb:bg.cu.r, ga:100, gb:bg.cu.g, ba:100, bb:bg.cu.b, aa:100, ab:255});
for (mc in trunds) {
var _local2 = trunds[mc];
if (((Math.round(_local2.cu.r) == _local2.to.r) && (Math.round(_local2.cu.g) == _local2.to.g)) && (Math.round(_local2.cu.b) == _local2.to.b)) {
_local2.to = {r:z255(), g:z255(), b:z255(), a:z50()};
}
_local2.cu.r = _local2.cu.r + ((_local2.to.r - _local2.cu.r) / 3);
_local2.cu.g = _local2.cu.g + ((_local2.to.g - _local2.cu.g) / 3);
_local2.cu.b = _local2.cu.b + ((_local2.to.b - _local2.cu.b) / 3);
_local2.cu.a = _local2.cu.a + ((_local2.to.a - _local2.cu.a) / 3);
_local2.c.setTransform({ra:100, rb:_local2.cu.r, ga:100, gb:_local2.cu.g, ba:100, bb:_local2.cu.b, aa:_local2.cu.a, ab:255});
_local2._rotation = Math.sin(_local4 + _local2.rand) * (360 - _local2.rand);
}
};
stop();
Symbol 4 MovieClip [BG] Frame 1