Frame 1
function r2xx(r, sp) {
return(sp * Math.cos(r));
}
function r2yy(r, sp) {
return(sp * Math.sin(r));
}
function xy2r(xx, yy) {
return((Math.atan2(yy, xx) / Math.PI) * 180);
}
function rand(a) {
return(Math.floor(Math.random() * a));
}
function randF(a) {
return(Math.random() * a);
}
function wrapvalue(a) {
return(a % 360);
}
function rgb(r, g, b) {
return(((r << 16) + (g << 8)) + b);
}
function brdRight(mc) {
return(SCX - (mc._width / 2));
}
function brdBottom(mc) {
return(SCY - (mc._height / 2));
}
function brdTop(mc) {
return(mc._height / 2);
}
function brdLeft(mc) {
return(mc._width / 2);
}
function hideRight(mc) {
return(SCX + (mc._width / 2));
}
function hideBottom(mc) {
return((a = SCY + (mc._height / 2)));
}
function hideTop(mc) {
return((-mc._height) / 2);
}
function hideLeft(mc) {
return((-mc._width) / 2);
}
function chgS(mc, s) {
mc.s = s;
mc._xscale = s;
mc._yscale = s;
}
function setT(x, y, imgn, t1, pri) {
if (!tdp[pri]) {
tdp[pri] = 0;
}
na = ((imgn + pri) + "_") + tdp[pri];
this.attachMovie(imgn, na, (pri * MTDP) + tdp[pri]);
tdp[pri]++;
if (tdp[pri] == MTDP) {
tdp[pri] = 0;
}
this[na].t = t1;
this[na]._x = x;
this[na]._y = y;
this[na]._alpha = 255;
this[na].h = 0;
this[na]._xscale = 100;
this[na]._yscale = 100;
this[na].xx = 0;
this[na].yy = 0;
this[na].smo = 0;
this[na].s = 100;
if (!(t1 === 1)) {
} else {
this[na].ks = 0;
this[na].onMouseDown = function () {
var _local3;
var _local2;
var _local4;
var _local5;
_local4 = 50;
_local5 = 50;
if (this.ks == 0) {
this.ks = 1;
sndObj[1].start();
_local3 = 0;
while (_local3 < (SCY / _local5)) {
_local2 = 0;
while (_local2 < (SCX / _local4)) {
c = setT((_local2 * _local4) + 25, (_local3 * _local5) + 25, "chr5", 8, 8);
c._rotation = rand(360);
_local2++;
}
_local3++;
}
}
};
this[na].onMouseUp = function () {
this.ks = 0;
};
}
this[na].onEnterFrame = function () {
var _local5;
var _local4;
var _local3;
var _local6;
var _local8;
var _local7;
var _local10;
_local8 = _root._xmouse;
_local7 = _root._ymouse;
_local5 = this._x;
_local4 = this._y;
switch (t1) {
case 1 :
_local10 = 10;
this._rotation = wrapvalue(this._rotation + _local10);
this.s = this.s + (Math.sin(this.h / 10) * 8);
syscale = syscale + (Math.sin(this.h / 5) * 5);
this.h++;
break;
case 2 :
if (this.h == 0) {
if (rand(3) == 0) {
_local5 = rand(SCX);
_local4 = rand(SCY);
this.s = 50 + rand(150);
this.h = 1;
this._alpha = 200;
} else {
this._alpha = 0;
}
} else if (rand(3) == 0) {
this.h = 0;
}
break;
case 3 :
_local5 = _local5 + 10;
this.s = this.s + 4;
this._rotation = (this._rotation - 20) % 360;
if (_local5 > hideRight(this)) {
this.removeMovieClip();
}
break;
case 4 :
_local5 = _local5 + this.xx;
_local4 = _local4 + this.yy;
this._rotation = wrapvalue(this._rotation + 10);
ax = brdRight(this);
if (_local5 > ax) {
_local5 = ax;
this.xx = -this.xx;
}
ax = brdLeft(this);
if (_local5 < ax) {
_local5 = ax;
this.xx = -this.xx;
}
ay = brdBottom(this);
if (_local4 > ay) {
_local4 = ay;
this.yy = -this.yy;
}
ay = brdTop(this);
if (_local4 < ay) {
_local4 = ay;
this.yy = -this.yy;
}
break;
case 5 :
_local4 = _local4 + this.yy;
this.yy--;
if (_local4 < hideTop(this)) {
this.removeMovieClip();
}
_local6 = 0;
while (_local6 < 2) {
_local3 = setT((_local5 + rand(21)) - 10, (_local4 + rand(11)) - 5, "star", 6, 6);
_local3.yy = 4 + rand(2);
chgS(_local3, 80 + rand(20));
_local3._rotation = rand(360);
_local3.rr = rand(21) - 10;
_local3._alpha = 120;
_local6++;
}
break;
case 6 :
_local4 = _local4 + this.yy;
this._rotation = wrapvalue(this._rotation + this.rr);
this._s--;
this._alpha--;
if (((this._alpha == 0) || (this._s == 0)) || (_local4 > hideBottom(this))) {
this.removeMovieClip();
}
var _local9 = new Color(this);
_local9.setRGB(rgb(64 + rand(192), 64 + rand(192), 64 + rand(192)));
break;
case 7 :
if (_local5 > _local8) {
this.xx = this.xx - 0.5;
} else if (_local5 < _local8) {
this.xx = this.xx + 0.5;
}
if (_local4 > _local7) {
this.yy = this.yy - 0.5;
} else if (_local4 < _local7) {
this.yy = this.yy + 0.5;
}
_local5 = _local5 + this.xx;
_local4 = _local4 + this.yy;
this._rotation = wrapvalue(this._rotation - 20);
break;
case 8 :
this.s = this.s - 8;
this._rotation = wrapvalue(this._rotation + 30);
if (this.s >= 1) {
break;
}
this.s = 1;
this.removeMovieClip();
}
this._x = _local5;
this._y = _local4;
if (this.smo == 0) {
this._xscale = this.s;
this._yscale = this.s;
}
};
return(this[na]);
}
SCX = Stage.width;
SCY = Stage.height;
MTDP = 300;
var tdp = new Array();
var sndObj = new Array(2);
sndObj[0] = new Sound(this);
sndObj[0].attachSound("wkcnet2.mp3");
sndObj[1] = new Sound(this);
sndObj[1].attachSound("wkc3.mp3");
l = 0;
t5x = 0;
t5xx = 1;
tim1._visible = false;
tim1.onEnterFrame = function () {
if ((l % 5) == 0) {
c = setT(-10, (SCY / 2) + 50, "star", 3, 3);
c.s = 120;
c._alpha = 80;
}
if ((l % 5) == 0) {
c = setT(rand(SCX), SCY + 30, "chr2", 5, 8);
c.yy = -10;
}
l++;
};
SCX = Stage.width;
SCY = Stage.height;
c = setT(SCX / 2, SCY / 2, "world1", 1, 1);
c.s = 120;
i = 0;
while (i < 7) {
setT(SCX / 2, SCY / 2, "chr3", 2, 2);
i++;
}
i = 0;
while (i < 7) {
c = setT(rand(SCX), rand(SCY), "chr6", 4, 4);
c.xx = ((rand(2) * 2) - 1) * 10;
c.yy = ((rand(2) * 2) - 1) * 10;
i++;
}
i = 0;
while (i < 4) {
c = setT(rand(SCX), rand(SCY), "chr1", 7, 7);
chgS(60);
i++;
}
sndObj[0].onSoundComplete = function () {
this.start();
};
sndObj[0].start();
c = setT(SCX / 2, SCY / 2, "world1", 1, 0);
c.s = 200;