Frame 1
function stopMySound() {
stopSoundFlag = true;
snd.gotoAndStop(3);
}
function startMySound() {
stopSoundFlag = false;
if (!pause) {
snd.gotoAndStop(2);
}
}
function startGame() {
this.gotoAndStop("Start");
if (!stopSoundFlag) {
snd.gotoAndStop(2);
}
}
function newGame() {
snd.gotoAndStop(3);
setProperty("/Game", _visible , 0);
this.Stop();
setProperty("/Rating", _visible , 1);
tellTarget ("/Rating") {
gotoAndStop ("Save");
};
stop();
}
function nextLevel() {
level++;
startGame();
}
function endGame() {
snd.gotoAndStop(3);
this.gotoAndPlay("Lamo");
}
function winGame() {
snd.gotoAndStop(3);
this.gotoAndStop("Rul");
}
function tarelkaReInit() {
ufo._x = 570;
tC = 0;
ufo.a = true;
}
function min(a, b) {
if (a < b) {
return(a);
}
return(b);
}
function checkForWin() {
win = true;
i = 1;
while (8 >= i) {
if (pf[i] < 100) {
win = false;
break;
}
i++;
}
if (win) {
winGame();
}
}
function gameOver() {
if (roket._currentframe != 1) {
return(undefined);
}
live = live - liveP;
ind.a._x = ind.b_x - (ind.a._width * (1 - (live / 100)));
if (0 < live) {
roket.gotoAndPlay("Bung");
} else {
roket.gotoAndPlay("Boom");
gameOverFlag = true;
mcJ.stop();
}
}
function roketSpeedInit() {
roketFSpeed = 0;
roketBSpeed = 0;
accelerationU = 0.1;
accelerationD = 0.03;
}
function setColor(p) {
tellTarget (p) {
tellTarget (glas) {
tellTarget (mc1) {
c = new Color(mc.mc_);
c_in = new Color(mc.mc_in);
c.setRGB(_parent._parent.c_val);
c_in.setRGB(_parent._parent.c_in_val);
};
tellTarget (mc2) {
c = new Color(mc.mc_);
c_in = new Color(mc.mc_in);
c.setRGB(_parent._parent.c_val);
c_in.setRGB(_parent._parent.c_in_val);
};
};
tellTarget (dersalo) {
tellTarget (mc.mc1) {
c = new Color(mc_);
c_out = new Color(mc_out);
c.setRGB(_parent._parent._parent.c_val);
c_out.setRGB(_parent._parent._parent.c_out_val);
};
tellTarget (mc.mc2) {
c = new Color(mc_);
c_out = new Color(mc_out);
c.setRGB(_parent._parent._parent.c_val);
c_out.setRGB(_parent._parent._parent.c_out_val);
};
};
tellTarget (telo) {
tellTarget (telo) {
c = new Color(mc_);
c_in = new Color(mc_in);
c_out = new Color(mc_out);
c.setRGB(_parent._parent.c_val);
c_in.setRGB(_parent._parent.c_in_val);
c_out.setRGB(_parent._parent.c_out_val);
};
};
tellTarget (ruka1) {
c = new Color(mc.mc_);
c_out = new Color(mc.mc_out);
c.setRGB(_parent.c_val);
c_out.setRGB(_parent.c_out_val);
};
tellTarget (ruka2) {
c = new Color(mc.mc_);
c_out = new Color(mc.mc_out);
c.setRGB(_parent.c_val);
c_out.setRGB(_parent.c_out_val);
};
};
}
Rotator = function (parent, speedMax, speedA) {
this.parent = parent;
this.xSpeed = 0;
this.ySpeed = 0;
this.speedMax = speedMax;
this.speedA = speedA;
this.a = true;
};
Rotator.prototype.enable = function (x, y) {
this.a = true;
this.xSpeed = 0;
this.ySpeed = 0;
tellTarget (this.parent) {
_visible = true;
_x = x;
_y = y;
};
};
Rotator.prototype.disable = function () {
this.a = false;
tellTarget (this.parent) {
_visible = false;
_x = -1000;
_y = -1000;
gotoAndStop (1);
};
};
Rotator.prototype.goto = function (x, y, bool) {
if (bool) {
if (this.parent._x < x) {
if (this.xSpeed < this.speedMax) {
this.xSpeed = this.xSpeed + this.speedA;
}
} else if ((-this.speedMax) < this.xSpeed) {
this.xSpeed = this.xSpeed - this.speedA;
}
if (this.parent._y < y) {
if (this.ySpeed < this.speedMax) {
this.ySpeed = this.ySpeed + this.speedA;
}
} else if ((-this.speedMax) < this.ySpeed) {
this.ySpeed = this.ySpeed - this.speedA;
}
}
this.parent._x = this.parent._x + this.xSpeed;
this.parent._y = this.parent._y + this.ySpeed;
};
Small = function (parent, speedMax, speedA, stopTime, flyTime, dieTime) {
this.p = parent;
this.setColor();
this.sM = speedMax;
this.sA = speedA;
this.sT = stopTime;
this.fT = flyTime;
this.xS = 0;
this.yS = 0;
this.st = 5;
this.cn = 0;
this.dT = random(90) + 60;
this.dS = 5;
this.cS = 0;
this.a = false;
this.diT = dieTime;
this.diC = 0;
};
Small.prototype.enable = function () {
this.a = true;
};
Small.prototype.disable = function () {
this.p.gotoAndStop(1);
this.diC = 0;
this.a = false;
tellTarget (this.p) {
_visible = false;
_y = -300;
_x = -300;
};
};
Small.prototype.reinit = function () {
tellTarget (this.p) {
_x = (25 + random(470));
_y = -30;
_visible = true;
};
this.xS = 0;
this.yS = 0;
this.st = 5;
this.cn = 0;
this.dT = random(90) + 60;
this.cS = 0;
this.setColor();
};
Small.prototype.goto = function () {
if (this.p._currentframe != 1) {
return(undefined);
}
if (!this.a) {
this.diC++;
if (this.diT < this.diC) {
this.a = true;
this.reinit();
// unexpected jump
}
return(undefined);
}
if (this.p._visible == false) {
return(undefined);
}
if (this.st == 5) {
tellTarget (this.p) {
_y = (_y + this.dS);
if (this.dT < _y) {
this.st = (this.cn = 0);
}
};
} else if (this.st == 0) {
this.cn++;
if (this.sT < this.cn) {
this.cn = 0;
this.st = 1;
this.xS = random(3) - 1;
this.yS = random(3) - 1;
if ((this.xS == 0) && (this.yS == 0)) {
this.xS = 1;
}
this.cS = 0;
}
} else if (this.st == 1) {
this.cS = this.cS + this.sA;
nx = this.p._x + (this.cS * this.xS);
ny = this.p._y + (this.cS * this.yS);
if ((10 >= nx) || (nx >= 510)) {
this.xS = this.xS * -1;
}
if ((10 >= ny) || (ny >= 380)) {
this.yS = this.yS * -1;
}
if ((((nx >= 235) && (285 >= nx)) && (ny >= 170)) && (220 >= ny)) {
this.yS = this.yS * -1;
this.xS = this.xS * -1;
}
this.p._x = this.p._x + (this.cS * this.xS);
this.p._y = this.p._y + (this.cS * this.yS);
if (this.sM < this.cS) {
this.cn = 0;
this.st = 2;
}
} else if (this.st == 2) {
this.cn++;
nx = this.p._x + (this.cS * this.xS);
ny = this.p._y + (this.cS * this.yS);
if ((10 >= nx) || (nx >= 510)) {
this.xS = this.xS * -1;
}
if ((10 >= ny) || (ny >= 380)) {
this.yS = this.yS * -1;
}
if ((((nx >= 235) && (285 >= nx)) && (ny >= 170)) && (220 >= ny)) {
this.yS = this.yS * -1;
this.xS = this.xS * -1;
}
this.p._x = this.p._x + (this.cS * this.xS);
this.p._y = this.p._y + (this.cS * this.yS);
if (this.fT < this.cn) {
this.cn = 0;
this.st = 3;
}
} else {
this.cS = this.cS - this.sA;
nx = this.p._x + (this.cS * this.xS);
ny = this.p._y + (this.cS * this.yS);
if ((10 >= nx) || (nx >= 510)) {
this.xS = this.xS * -1;
}
if ((10 >= ny) || (ny >= 380)) {
this.yS = this.yS * -1;
}
if ((((nx >= 235) && (285 >= nx)) && (ny >= 170)) && (220 >= ny)) {
this.yS = this.yS * -1;
this.xS = this.xS * -1;
}
this.p._x = this.p._x + (this.cS * this.xS);
this.p._y = this.p._y + (this.cS * this.yS);
if (0 >= this.cS) {
this.cS = 0;
this.cn = 0;
this.st = 0;
}
}
};
Small.prototype.setColor = function () {
tellTarget (this.p) {
arr = [7807607, 2258722, 2240785, 7811345, 7820629, 7833770, 12263953, 14528418, 14535970, 2250206];
c_val = arr[random(10)];
c_in_val = c_val + 2232593;
c_out_val = c_val - 1122833;
r = random(10) + 1;
rot.gotoAndPlay(r);
tellTarget (glas) {
gotoAndPlay(_parent.r);
tellTarget (mc1) {
gotoAndPlay(_parent._parent.r);
c = new Color(mc.mc_);
c_in = new Color(mc.mc_in);
c.setRGB(_parent._parent.c_val);
c_in.setRGB(_parent._parent.c_in_val);
};
tellTarget (mc2) {
gotoAndPlay(_parent._parent.r);
c = new Color(mc.mc_);
c_in = new Color(mc.mc_in);
c.setRGB(_parent._parent.c_val);
c_in.setRGB(_parent._parent.c_in_val);
};
};
tellTarget (dersalo) {
gotoAndPlay(_parent.r);
tellTarget (mc.mc1) {
c = new Color(mc_);
c_out = new Color(mc_out);
c.setRGB(_parent._parent._parent.c_val);
c_out.setRGB(_parent._parent._parent.c_out_val);
};
tellTarget (mc.mc2) {
c = new Color(mc_);
c_out = new Color(mc_out);
c.setRGB(_parent._parent._parent.c_val);
c_out.setRGB(_parent._parent._parent.c_out_val);
};
};
tellTarget (telo) {
gotoAndPlay(_parent.r);
tellTarget (telo) {
c = new Color(mc_);
c_in = new Color(mc_in);
c_out = new Color(mc_out);
c.setRGB(_parent._parent.c_val);
c_in.setRGB(_parent._parent.c_in_val);
c_out.setRGB(_parent._parent.c_out_val);
};
};
tellTarget (ruka1) {
gotoAndPlay(_parent.r);
c = new Color(mc.mc_);
c_out = new Color(mc.mc_out);
c.setRGB(_parent.c_val);
c_out.setRGB(_parent.c_out_val);
};
tellTarget (ruka2) {
gotoAndPlay(_parent.r);
c = new Color(mc.mc_);
c_out = new Color(mc.mc_out);
c.setRGB(_parent.c_val);
c_out.setRGB(_parent.c_out_val);
};
};
};
stopSoundFlag = false;
stop();
Frame 2
snd3.gotoAndStop(2);
stop();
Instance of Symbol 49 MovieClip "sn" in Frame 2
onClipEvent (load) {
if (_parent.sound) {
_parent.snd.start(0, 200000);
} else {
gotoAndStop (2);
}
}
onClipEvent (unload) {
_parent.snd.stop();
}
Frame 3
stop();
Frame 4
stop();
Instance of Symbol 156 MovieClip "bullet" in Frame 4
onClipEvent (load) {
this.gotoAndPlay(16);
}
Instance of Symbol 156 MovieClip "bullet2" in Frame 4
onClipEvent (load) {
this.gotoAndPlay(16);
}
Instance of Symbol 222 MovieClip in Frame 4
onClipEvent (load) {
tellTarget (_parent) {
textField1 = level;
pause = false;
gameOverFlag = false;
if (stopSoundFlag) {
mc_btn_snd.gotoAndStop(2);
}
mPi = (Math.PI/180);
rw2 = (roket.c._width * 21) / 200;
rh2 = (roket.c._height * 21) / 200;
sw2 = (sun.c._width * sun._xscale) / 200;
sh2 = (sun.c._height * sun._xscale) / 200;
roketMinSize = 5;
roketRSpeed = 10;
speedU = 5;
factorU = 1.6;
speedD = 2;
factorD = 1.2;
liveP = 34;
live = 100;
rCount = 10;
rCM = min(Math.round(Math.exp((level - 1) / 5.5)), rCount);
rt = new Array(rCount + 1);
i = 1;
while (rCount >= i) {
rt[i] = new Rotator(eval ("rotator" + i), (2 - (Math.random() * 2)) + Math.exp((level - 1) / 10), 0.1 * Math.exp(level / 7));
with (rt[i]) {
disable();
}
rt[i].parent.sender = rt[i];
i++;
}
rth2 = (rtw2 = 8);
roketSpeedInit();
prisemlenie = false;
vslet = false;
ps = new Array(p0, p1, p2, p3, p4, p5, p6, p7, p8);
pf = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
dp = 100 / (1 + int((level - 1) / 2));
rp = true;
i = 1;
while (8 >= i) {
tellTarget ("_parent.b" add i) {
a._x = b._x - a._width;
};
i++;
}
j = 0;
jM = 60 / (0.5 + (0.5 * level));
jMPlus = 0;
jMPlusInit = jM * 4;
mJh2 = 25;
mJw2 = 25;
h1b = false;
h2b = false;
h3b = false;
h4b = false;
h5b = false;
hx = -30;
hy = 41;
hSpeed = 7;
h1x = (-hSpeed) * Math.sin(95 * mPi);
h1y = hSpeed * Math.cos(95 * mPi);
h2x = (-hSpeed) * Math.sin(67 * mPi);
h2y = hSpeed * Math.cos(67 * mPi);
h3x = (-hSpeed) * Math.sin(45 * mPi);
h3y = hSpeed * Math.cos(45 * mPi);
h4x = (-hSpeed) * Math.sin(22 * mPi);
h4y = hSpeed * Math.cos(22 * mPi);
h5x = (-hSpeed) * Math.sin(-5 * mPi);
h5y = hSpeed * Math.cos(-5 * mPi);
tellTarget (h1) {
_visible = false;
_y = -300;
_x = -300;
};
tellTarget (h2) {
_visible = false;
_y = -300;
_x = -300;
};
tellTarget (h3) {
_visible = false;
_y = -300;
_x = -300;
};
tellTarget (h4) {
_visible = false;
_y = -300;
_x = -300;
};
tellTarget (h5) {
_visible = false;
_y = -300;
_x = -300;
};
hn = 1;
hh2 = (hw2 = 4);
tS = 10;
tC = 0;
tM = 100 / level;
tMPlus = 0;
tMPlusInit = tM * 4;
tw2 = ufo._width / 2;
th2 = ufo._height / 2;
ufo.a = true;
smCount = 10;
smCM = min(1 + int(level / 2), 10);
sml = new Array(smCount + 1);
i = 1;
while (smCount >= i) {
sml[i] = new Small(eval ("sml" + i), (level * 0.4) + 3, 0.5 + (level * 0.1), 12 / level, 5 * Math.sqrt(level), (100 + random(60)) / level);
with (sml[i]) {
disable();
}
sml[i].p.sender = sml[i];
i++;
}
smw2 = 20;
smh2 = 20;
tellTarget ("_parent.nn.mc_small_down") {
_visible = false;
mc.stop();
stop();
};
tellTarget ("_parent.nn.mc_small_up") {
_visible = false;
mc.stop();
stop();
};
roket.fire._visible = false;
scrPlanet = Math.round(12 + (6 * (level - 1)));
scrUrod = Math.round(1.7 * level);
scrTarelka = Math.round(level * 1.5);
scrSmall = level;
scrVert = Math.round(level * 1.4);
};
}
onClipEvent (enterFrame) {
tellTarget (_parent) {
if (pause) {
return(undefined);
}
if (gameOverFlag) {
return(undefined);
}
if (j >= 0) {
j++;
}
if ((jM + jMPlus) < j) {
if ((!h1._visible) && (!h2._visible)) {
j = -1;
tellTarget (mcJ) {
if (random(2) == 1) {
_xscale = (-Math.abs(_xscale));
_rotation = -17.5;
_x = 60;
_parent.hn = -1;
} else {
_xscale = Math.abs(_xscale);
_rotation = 17.5;
_x = 460;
_parent.hn = 1;
}
play();
};
}
}
if (h1._visible) {
tellTarget (h1) {
_x = (_x + (_parent.h1x * _parent.hn));
_y = (_y + _parent.h1y);
if (((520 < _x) || (_x < 0)) || (390 < _y)) {
_visible = false;
_y = -300;
_x = -300;
}
};
}
if (h2._visible) {
tellTarget (h2) {
_x = (_x + (_parent.h2x * _parent.hn));
_y = (_y + _parent.h2y);
if (((520 < _x) || (_x < 0)) || (390 < _y)) {
_visible = false;
_y = -300;
_x = -300;
}
};
}
if (h3._visible) {
tellTarget (h3) {
_x = (_x + (_parent.h3x * _parent.hn));
_y = (_y + _parent.h3y);
if (((520 < _x) || (_x < 0)) || (390 < _y)) {
_visible = false;
_y = -300;
_x = -300;
}
};
}
if (h4._visible) {
tellTarget (h4) {
_x = (_x + (_parent.h4x * _parent.hn));
_y = (_y + _parent.h4y);
if (((520 < _x) || (_x < 0)) || (390 < _y)) {
_visible = false;
_y = -300;
_x = -300;
}
};
}
if (h5._visible) {
tellTarget (h5) {
_x = (_x + (_parent.h5x * _parent.hn));
_y = (_y + _parent.h5y);
if (((520 < _x) || (_x < 0)) || (390 < _y)) {
_visible = false;
_y = -300;
_x = -300;
}
};
}
if (h1b) {
h1._visible = true;
h1._x = mcJ._x + (hx * hn);
h1._y = mcJ._y + hy;
h1b = false;
}
if (h2b) {
h2._visible = true;
h2._x = mcJ._x + (hx * hn);
h2._y = mcJ._y + hy;
h2b = false;
}
if (h3b) {
h3._visible = true;
h3._x = mcJ._x + (hx * hn);
h3._y = mcJ._y + hy;
h3b = false;
}
if (h4b) {
h4._visible = true;
h4._x = mcJ._x + (hx * hn);
h4._y = mcJ._y + hy;
h4b = false;
}
if (h5b) {
h5._visible = true;
h5._x = mcJ._x + (hx * hn);
h5._y = mcJ._y + hy;
h5b = false;
}
if (Key.isDown(90)) {
if (!prisemlenie) {
i = 0;
while (8 >= i) {
if ((((roket._x >= (ps[i]._x - (ps[i]._width / 2))) && ((ps[i]._x + (ps[i]._width / 2)) >= roket._x)) && (roket._y >= (ps[i]._y - (ps[i]._height / 2)))) && ((ps[i]._y + (ps[i]._height / 2)) >= roket._y)) {
cp = ps[i];
ci = i;
prisemlenie = true;
vslet = false;
snd_vs.gotoAndStop(2);
tellTarget (roket.fire) {
_visible = true;
};
break;
}
i++;
}
}
}
if (!rp) {
if (Key.isDown(88)) {
if (!vslet) {
if (roket._yscale < 21) {
vslet = true;
prisemlenie = false;
tellTarget (roket.fire) {
_visible = true;
};
roketSpeedInit();
snd_vs.gotoAndStop(2);
}
}
}
}
if (prisemlenie == true) {
tellTarget (roket) {
if (_parent.roketMinSize >= _yscale) {
tellTarget (_parent) {
prisemlenie = false;
roket.fire._visible = false;
snd_vs.gotoAndStop(3);
if (cp == p0) {
if (!rOk) {
rp = true;
ld.play();
}
} else if (rOk && (pf[ci] < 99.9)) {
rOk = false;
pf[ci] = pf[ci] + dp;
if (99 < pf[ci]) {
pf[ci] = 100;
}
tellTarget ("_parent.b" add ci) {
a._x = b._x + (a._width * ((_parent.pf[_parent.ci] / 100) - 1));
};
Set("/gametablo:scores", Number(/gametablo:scores) + scrPlanet);
checkForWin();
}
};
} else {
_rotation = (_rotation + _parent.roketRSpeed);
_xscale = (_xscale - 1.5);
_yscale = (_xscale - 1.5);
_x = (_x - ((_x - _parent.cp._x) / 10));
_y = (_y - ((_y - _parent.cp._y) / 10));
}
};
}
if (vslet == true) {
tellTarget (roket) {
if (_yscale >= 21) {
_parent.vslet = false;
_parent.snd_vs.gotoAndStop(3);
} else {
_rotation = (_rotation - _parent.roketRSpeed);
_xscale = (_xscale + 1.5);
_yscale = (_xscale + 1.5);
}
};
}
if (ufo.a) {
if (tC >= 0) {
tC++;
}
if (tC >= (tM + tMPlus)) {
if (ufo._x < -100) {
tarelkaReInit();
tMPlus = 0;
}
i = 1;
while (rCM >= i) {
if (!rt[i].a) {
if (!rt[i].parent._visible) {
if (ufo._x < (520 * (1 - (i / (rCM + 1))))) {
rt[i].enable(ufo._x, ufo._y);
}
}
}
i++;
}
ufo._x = ufo._x - tS;
}
}
i = 1;
while (smCM >= i) {
sml[i].goto();
i++;
}
i = 1;
while (rCount >= i) {
var p = rt[i];
if (p.a) {
if ((((p.parent._y < -7) || (p.parent._x < -7)) || (397 < p.parent._y)) || (527 < p.parent._x)) {
p.disable();
} else {
bool = roket._xscale >= 20;
p.goto(roket._x, roket._y, bool);
h_ = p.parent;
if (h_.hitTest(sun.c)) {
h_.gotoAndPlay("Boom");
}
}
}
i++;
}
if (!(((roket._xscale < 20) || (prisemlenie)) || (vslet))) {
if (Key.isDown(38)) {
roket.fire._visible = true;
if (roketFSpeed < speedU) {
roketFSpeed = roketFSpeed + accelerationU;
accelerationU = accelerationU * factorU;
}
} else {
if (0 < roketFSpeed) {
accelerationU = accelerationU / factorU;
roketFSpeed = roketFSpeed - accelerationU;
}
if (roket.fire._visible) {
roket.fire._visible = false;
}
}
if (Key.isDown(40)) {
roket.fire_back._visible = true;
if (roketBSpeed < speedD) {
roketBSpeed = roketBSpeed + accelerationD;
accelerationD = accelerationD * factorD;
}
} else {
if (0 < roketBSpeed) {
accelerationD = accelerationD / factorD;
roketBSpeed = roketBSpeed - accelerationD;
}
if (roket.fire_back._visible) {
roket.fire_back._visible = false;
}
}
if (Key.isDown(37)) {
roket._rotation = roket._rotation + (-roketRSpeed);
roket.fire_left._visible = true;
} else if (roket.fire_left._visible == true) {
roket.fire_left._visible = false;
}
if (Key.isDown(39)) {
roket._rotation = roket._rotation + roketRSpeed;
roket.fire_right._visible = true;
} else if (roket.fire_right._visible == true) {
roket.fire_right._visible = false;
}
var vx = 0;
var vy = (-(roketFSpeed - roketBSpeed));
var vnx = 0;
var vny = 0;
ugol = roket._rotation * mPi;
cu = Math.cos(ugol);
su = Math.sin(ugol);
vnx = (vx * cu) - (vy * su);
vny = (vx * su) + (vy * cu);
roket._x = roket._x + vnx;
roket._y = roket._y + vny;
if (520 < roket._x) {
roket._x = 0;
}
if (390 < roket._y) {
roket._y = 0;
}
if (roket._x < 0) {
roket._x = 520;
}
if (roket._y < 0) {
roket._y = 390;
}
if (Key.isDown(32)) {
if (bullet._visible == false) {
vx = -9;
vy = -9;
vnx = (vx * cu) - (vy * su);
vny = (vx * su) + (vy * cu);
bullet._rotation = roket._rotation;
bullet._x = roket._x + vnx;
bullet._y = roket._y + vny;
bullet.gotoAndPlay(1);
} else if ((5 < bullet._currentframe) && (bullet2._visible == false)) {
vx = -9;
vy = -9;
vnx = (vx * cu) - (vy * su);
vny = (vx * su) + (vy * cu);
bullet2._rotation = roket._rotation;
bullet2._x = roket._x + vnx;
bullet2._y = roket._y + vny;
bullet2.gotoAndPlay(1);
}
}
if (roket._currentframe == 1) {
rx = roket._x;
ry = roket._y;
sx = sun._x - rx;
sy = sun._y - ry;
vnx = (sx * cu) + (sy * su);
vny = ((-sx) * su) + (sy * cu);
if ((((rw2 >= (vnx - sw2)) && ((vnx + sw2) >= (-rw2))) && (rh2 >= (vny - sh2))) && ((vny + sh2) >= (-rh2))) {
gameOver();
}
if (h1._visible || (h2._visible)) {
i = 1;
while (5 >= i) {
h_ = eval ("h" add i);
sx = h_._x - rx;
sy = h_._y - ry;
vnx = (sx * cu) + (sy * su);
vny = ((-sx) * su) + (sy * cu);
if ((((rw2 >= (vnx - hw2)) && ((vnx + hw2) >= (-rw2))) && (rh2 >= (vny - hh2))) && ((vny + hh2) >= (-rh2))) {
gameOver();
}
i++;
}
}
i = 1;
while (smCM >= i) {
if (sml[i].a) {
h_ = sml[i].p;
sx = (h_._x - rx) - 1;
sy = (h_._y - ry) - 3;
vnx = (sx * cu) + (sy * su);
vny = ((-sx) * su) + (sy * cu);
if ((((rw2 >= (vnx - smw2)) && ((vnx + smw2) >= (-rw2))) && (rh2 >= (vny - smh2))) && ((vny + smh2) >= (-rh2))) {
scale_my = 1;
if (roket._x < h_._x) {
scale_my = -1;
}
h_._visible = false;
if (roket._y >= h_._y) {
nn.mc_small_down.duplicateMovieClip("h_qw12" + i, 5567 + i);
} else {
nn.mc_small_up.duplicateMovieClip("h_qw12" + i, 5567 + i);
}
p_qw12 = eval ("nn.h_qw12" + i);
p_qw12._x = h_._x;
p_qw12._y = h_._y;
p_qw12.sender = h_;
p_qw12.mc.c_val = h_.c_val;
p_qw12.mc.c_out_val = h_.c_out_val;
p_qw12.mc.c_in_val = h_.c_in_val;
p_qw12._xscale = p_qw12._xscale * scale_my;
setColor(p_qw12.mc);
gameOver();
}
}
i++;
}
i = 1;
while (rCM >= i) {
if (rt[i].a) {
h_ = rt[i].parent;
sx = h_._x - rx;
sy = h_._y - ry;
vnx = (sx * cu) + (sy * su);
vny = ((-sx) * su) + (sy * cu);
if ((((rw2 >= (vnx - rtw2)) && ((vnx + rtw2) >= (-rw2))) && (rh2 >= (vny - rth2))) && ((vny + rth2) >= (-rh2))) {
gameOver();
}
}
i++;
}
h_ = ufo;
if (h_.a) {
sx = h_._x - rx;
sy = h_._y - ry;
vnx = (sx * cu) + (sy * su);
vny = ((-sx) * su) + (sy * cu);
if ((((rw2 >= (vnx - tw2)) && ((vnx + tw2) >= (-rw2))) && (rh2 >= (vny - th2))) && ((vny + th2) >= (-rh2))) {
gameOver();
}
}
h_ = mcJ;
if (h_.a) {
if (h_._xscale < 0) {
tmp_2 = -1;
} else {
tmp_2 = 1;
}
sx = ((h_._x - rx) + (h_.c._x * tmp_2)) + (tmp_2 * 10);
sy = (h_._y - ry) + h_.c._y;
vnx = (sx * cu) + (sy * su);
vny = ((-sx) * su) + (sy * cu);
if ((((rw2 >= (vnx - mJw2)) && ((vnx + mJw2) >= (-rw2))) && (rh2 >= (vny - mJh2))) && ((vny + mJh2) >= (-rh2))) {
gameOver();
}
}
}
}
b1 = bullet.b1.az;
b2 = bullet.b2.az;
f1 = bullet.b1.r;
f2 = bullet.b2.r;
bx1 = bullet2.b1.az;
bx2 = bullet2.b2.az;
fx1 = bullet2.b1.r;
fx2 = bullet2.b2.r;
if (ufo.a) {
if ((ufo._x - tw2) < 520) {
if (f1) {
if (b1.hitTest(ufo.mc.az)) {
tellTarget (bullet.b1) {
r = false;
_visible = false;
};
ufo.gotoAndPlay("Boom");
Set("/gametablo:scores", Number(/gametablo:scores) + scrTarelka);
tMPlus = tMPlusInit;
}
}
if (f2) {
if (b2.hitTest(ufo.mc.az)) {
tellTarget (bullet.b2) {
r = false;
_visible = false;
};
ufo.gotoAndPlay("Boom");
Set("/gametablo:scores", Number(/gametablo:scores) + scrTarelka);
tMPlus = tMPlusInit;
}
}
if (fx1) {
if (bx1.hitTest(ufo.mc.az)) {
tellTarget (bullet2.b1) {
r = false;
_visible = false;
};
ufo.gotoAndPlay("Boom");
Set("/gametablo:scores", Number(/gametablo:scores) + scrTarelka);
tMPlus = tMPlusInit;
}
}
if (fx2) {
if (bx2.hitTest(ufo.mc.az)) {
tellTarget (bullet2.b2) {
r = false;
_visible = false;
};
ufo.gotoAndPlay("Boom");
Set("/gametablo:scores", Number(/gametablo:scores) + scrTarelka);
tMPlus = tMPlusInit;
}
}
}
}
if (mcJ.a) {
if (0 < (mcJ._y + mJh2)) {
if (f1) {
if (b1.hitTest(mcJ.az)) {
tellTarget (bullet.b1) {
r = false;
_visible = false;
};
jMPlus = jMPlusInit;
tellTarget (mcJ) {
stop();
b.play();
a = false;
};
Set("/gametablo:scores", Number(/gametablo:scores) + scrUrod);
}
}
if (f2) {
if (b2.hitTest(mcJ.az)) {
tellTarget (bullet.b2) {
r = false;
_visible = false;
};
jMPlus = jMPlusInit;
tellTarget (mcJ) {
stop();
b.play();
a = false;
};
Set("/gametablo:scores", Number(/gametablo:scores) + scrUrod);
}
}
if (fx1) {
if (bx1.hitTest(mcJ.az)) {
tellTarget (bullet2.b1) {
r = false;
_visible = false;
};
jMPlus = jMPlusInit;
tellTarget (mcJ) {
stop();
b.play();
a = false;
};
Set("/gametablo:scores", Number(/gametablo:scores) + scrUrod);
}
}
if (fx2) {
if (bx2.hitTest(mcJ.az)) {
tellTarget (bullet2.b2) {
r = false;
_visible = false;
};
jMPlus = jMPlusInit;
tellTarget (mcJ) {
stop();
b.play();
a = false;
};
Set("/gametablo:scores", Number(/gametablo:scores) + scrUrod);
}
}
}
}
i = 1;
while (smCM >= i) {
if (sml[i].a) {
h_ = sml[i].p.c;
if (f1) {
if (b1.hitTest(h_)) {
tellTarget (bullet.b1) {
r = false;
_visible = false;
};
sml[i].p.gotoAndPlay("Boom");
Set("/gametablo:scores", Number(/gametablo:scores) + scrSmall);
}
}
if (f2) {
if (b2.hitTest(h_)) {
tellTarget (bullet.b2) {
r = false;
_visible = false;
};
sml[i].p.gotoAndPlay("Boom");
Set("/gametablo:scores", Number(/gametablo:scores) + scrSmall);
}
}
if (fx1) {
if (bx1.hitTest(h_)) {
tellTarget (bullet2.b1) {
r = false;
_visible = false;
};
sml[i].p.gotoAndPlay("Boom");
Set("/gametablo:scores", Number(/gametablo:scores) + scrSmall);
}
}
if (fx2) {
if (bx2.hitTest(h_)) {
tellTarget (bullet2.b2) {
r = false;
_visible = false;
};
sml[i].p.gotoAndPlay("Boom");
Set("/gametablo:scores", Number(/gametablo:scores) + scrSmall);
}
}
}
i++;
}
i = 1;
while (rCM >= i) {
if (rt[i].a) {
h_ = rt[i].parent;
if (f1) {
if (b1.hitTest(h_)) {
tellTarget (bullet.b1) {
r = false;
_visible = false;
};
h_.gotoAndPlay("Boom");
Set("/gametablo:scores", Number(/gametablo:scores) + scrVert);
}
}
if (f2) {
if (b2.hitTest(h_)) {
tellTarget (bullet.b2) {
r = false;
_visible = false;
};
h_.gotoAndPlay("Boom");
Set("/gametablo:scores", Number(/gametablo:scores) + scrVert);
}
}
if (fx1) {
if (bx1.hitTest(h_)) {
tellTarget (bullet2.b1) {
r = false;
_visible = false;
};
h_.gotoAndPlay("Boom");
Set("/gametablo:scores", Number(/gametablo:scores) + scrVert);
}
}
if (fx2) {
if (bx2.hitTest(h_)) {
tellTarget (bullet2.b2) {
r = false;
_visible = false;
};
h_.gotoAndPlay("Boom");
Set("/gametablo:scores", Number(/gametablo:scores) + scrVert);
}
}
}
i++;
}
};
}
Frame 40
stop();
newGame();
Instance of Symbol 49 MovieClip "sn" in Frame 40
onClipEvent (load) {
if (_parent.sound) {
_parent.snd.start(0, 200000);
} else {
gotoAndStop (2);
}
}
onClipEvent (unload) {
_parent.snd.stop();
}
Symbol 3 Button
on (press) {
getURL ("http://vkids.ru", "_blank");
}
Instance of Symbol 19 MovieClip "ball" in Symbol 24 MovieClip Frame 2
onClipEvent (load) {
stop();
}
Symbol 24 MovieClip Frame 101
_parent.ru.play();
stop();
Symbol 28 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 17
_parent.voda.ball.gotoAndPlay(1);
if (_parent._currentframe == 1) {
_parent.play();
}
stop();
Symbol 45 Button
on (release) {
_root.GlobalSoundVkids = false;
gotoAndStop (3);
}
Symbol 48 Button
on (release) {
_root.GlobalSoundVkids = true;
gotoAndStop (2);
}
Symbol 49 MovieClip Frame 1
stop();
if (_root.GlobalSoundVkids == false) {
gotoAndStop (3);
} else {
_root.GlobalSoundVkids = true;
gotoAndStop (2);
}
Symbol 49 MovieClip Frame 2
stop();
Symbol 49 MovieClip Frame 3
stop();
Symbol 51 MovieClip Frame 1
stop();
Instance of Symbol 24 MovieClip "voda" in Symbol 51 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.FullSize = ((Math.floor(_parent._parent.getBytesLoaded() / 1024) + " / ") + Math.floor(_parent._parent.getBytesTotal() / 1024)) + " kb loaded";
var percent = ((_parent._parent.getBytesLoaded() / _parent._parent.getBytesTotal()) * 100);
if (_currentframe < (Math.floor(percent) + 1)) {
gotoAndStop(Math.floor(percent) + 1);
}
}
Instance of Symbol 49 MovieClip "sn" in Symbol 51 MovieClip Frame 2
onClipEvent (load) {
if (_parent.sound) {
_parent.snd.start(0, 200000);
} else {
gotoAndStop (2);
}
}
onClipEvent (unload) {
_parent.snd.stop();
}
Symbol 51 MovieClip Frame 74
_parent.play();
_parent.play();
Symbol 68 Button
on (press) {
getURL ("http://vkids.ru", "_blank");
}
Symbol 71 Button
on (release) {
this.gotoAndStop(_currentframe + 1);
}
Symbol 74 Button
on (release) {
Set("/gametablo:scores", 0);
setProperty("/gametablo", _visible , true);
level = 0;
nextLevel();
}
Symbol 76 MovieClip Frame 1
stop();
Symbol 83 Button
on (release) {
this.gotoAndStop(_currentframe - 1);
}
Symbol 86 Button
on (release) {
Set("/gametablo:scores", 0);
setProperty("/gametablo", _visible , true);
level = 0;
nextLevel();
}
Symbol 126 MovieClip Frame 23
tellTarget (_parent) {
rp = false;
rOk = true;
};
if (!x) {
tellTarget (_parent) {
vslet = true;
prisemlenie = false;
tellTarget (roket.fire) {
_visible = true;
};
this.x = true;
snd_vs.gotoAndStop(2);
};
}
stop();
Symbol 138 MovieClip Frame 14
stop();
Symbol 140 MovieClip Frame 1
this.shok._visible = false;
if (Key.isDown(38) == false) {
this.fire._visible = false;
}
this.c._visible = false;
stop();
Symbol 140 MovieClip Frame 20
stop();
_parent.endGame();
Symbol 140 MovieClip Frame 21
if (Key.isDown(38) == false) {
this.fire._visible = false;
}
Symbol 140 MovieClip Frame 35
this.gotoAndPlay(1);
Symbol 144 MovieClip Frame 1
this.stop();
Symbol 144 MovieClip Frame 2
this.sender.a = false;
Symbol 144 MovieClip Frame 11
this.sender.disable();
this.stop();
Symbol 148 MovieClip Frame 1
this.stop();
Symbol 148 MovieClip Frame 2
this.a = false;
Symbol 148 MovieClip Frame 11
_parent.tarelkaReInit();
Symbol 154 MovieClip Frame 1
this.r = true;
Symbol 156 MovieClip Frame 1
_visible = true;
Symbol 156 MovieClip Frame 16
_visible = false;
_x = -100;
_y = -100;
stop();
Symbol 208 MovieClip Frame 1
tellTarget (ruka1) {
c = new Color(mc.mc_);
c_out = new Color(mc.mc_out);
c.setRGB(this.c_val);
c_out.setRGB(this.c_out_val);
};
stop();
Symbol 208 MovieClip Frame 2
sender.a = false;
Symbol 208 MovieClip Frame 11
sender.disable();
Symbol 209 MovieClip Frame 1
tellTarget (ruka1) {
c = new Color(mc.mc_);
c_out = new Color(mc.mc_out);
c.setRGB(this.c_val);
c_out.setRGB(this.c_out_val);
};
trace((this + " --- ") + this.c_val);
Symbol 209 MovieClip Frame 2
tellTarget (ruka1) {
c = new Color(mc.mc_);
c_out = new Color(mc.mc_out);
c.setRGB(this.c_val);
c_out.setRGB(this.c_out_val);
};
Symbol 210 MovieClip Frame 7
this.sender._visible = true;
this.removeMovieClip();
Symbol 211 MovieClip Frame 1
tellTarget (ruka1) {
c = new Color(mc.mc_);
c_out = new Color(mc.mc_out);
c.setRGB(this.c_val);
c_out.setRGB(this.c_out_val);
};
Symbol 211 MovieClip Frame 2
tellTarget (ruka1) {
c = new Color(mc.mc_);
c_out = new Color(mc.mc_out);
c.setRGB(this.c_val);
c_out.setRGB(this.c_out_val);
};
Symbol 212 MovieClip Frame 7
this.sender._visible = true;
this.removeMovieClip();
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 11
tellTarget (_parent) {
gotoAndPlay (1);
_parent.j = 0;
};
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 2
a = true;
Symbol 220 MovieClip Frame 21
_parent.h1b = true;
Symbol 220 MovieClip Frame 23
_parent.h2b = true;
Symbol 220 MovieClip Frame 25
_parent.h3b = true;
Symbol 220 MovieClip Frame 27
_parent.h4b = true;
Symbol 220 MovieClip Frame 29
_parent.h5b = true;
Symbol 220 MovieClip Frame 65
_parent.jMPlus = 0;
_parent.j = 0;
a = false;
Symbol 230 Button
on (release) {
tellTarget (_parent) {
if (gameOverFlag) {
return(undefined);
}
pause = true;
snd.gotoAndStop(3);
if (rp) {
ld.stop();
}
if (mcJ.a) {
mcJ.stop();
}
tellTarget (bullet) {
if (_visible) {
b1.stop();
b2.stop();
stop();
b1.vzriv.stop();
b2.vzriv.stop();
}
};
tellTarget (bullet2) {
if (_visible) {
b1.stop();
b2.stop();
stop();
b1.vzriv.stop();
b2.vzriv.stop();
}
};
};
stopAllSounds();
gotoAndStop(_currentframe + 1);
}
Symbol 232 Button
on (release) {
tellTarget (_parent) {
pause = false;
if (!stopSoundFlag) {
snd.gotoAndStop(2);
}
if (rp) {
ld.play();
}
if (mcJ.a) {
mcJ.play();
}
tellTarget (bullet) {
if (_visible) {
b1.play();
b2.play();
play();
b1.vzriv.play();
b2.vzriv.play();
}
};
tellTarget (bullet2) {
if (_visible) {
b1.play();
b2.play();
play();
b1.vzriv.play();
b2.vzriv.play();
}
};
};
gotoAndStop(_currentframe - 1);
}
Symbol 233 MovieClip Frame 1
stop();
Symbol 235 Button
on (release) {
_parent.stopMySound();
this.gotoAndStop(2);
}
Symbol 237 Button
on (release) {
_parent.startMySound();
this.gotoAndStop(1);
}
Symbol 238 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 1
stop();
Symbol 262 Button
on (press) {
getURL ("http://vkids.ru", "_blank");
}
Symbol 265 Button
on (release) {
gotoAndStop (2);
}
Symbol 272 Button
on (release) {
nextLevel();
}