Frame 1
newsound = new sound();
newsound.attachSound("splat.wav");
newsound1 = new sound();
newsound1.attachSound("quick.wav");
newsound2 = new sound();
newsound2.attachSound("Novogodnyaya.wav");
var x;
var y;
y = 299;
x = 0;
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
Frame 2
x = String(Math.round((100 * _root.getBytesLoaded()) / _root.getBytesTotal())) + "%";
Frame 3
x = String(Math.round((100 * _root.getBytesLoaded()) / _root.getBytesTotal())) + "%";
ifFrameLoaded (26) {
x = "100%";
gotoAndPlay (5);
}
Frame 4
gotoAndPlay (2);
Frame 5
newsound2.start(0, 9999999999999);
Frame 19
gotoAndPlay (15);
Frame 20
Mouse.hide();
_root.pr._x = _xmouse;
_root.pr._y = _ymouse;
var dedov;
dedov = [1, 1, 1, 1];
var dednum;
dednum = 0;
var rand;
var i;
var x1;
var x2;
var x3;
var x4;
var y1;
var y2;
var y3;
var y4;
var xc;
var yc;
var xc1;
var xc2;
var xc3;
var xc4;
var yc1;
var yc2;
var yc3;
var yc4;
var fly;
var podarki;
podarki = 0;
var out;
out = "=" + podarki;
var shot;
shot = 0;
var out2;
out2 = "=" + shot;
fly = [0, 0, 0, 0];
xc = 0;
yc = 0;
x1 = -300;
x2 = 660;
x3 = -170;
x4 = 660;
y1 = -200;
y2 = -200;
y3 = -200;
y4 = -200;
i = 58;
ded1._x = x1;
ded1._y = y1;
ded2._x = x2;
ded2._y = y2;
ded3._x = x3;
ded3._y = y3;
ded4._x = x4;
ded4._y = y4;
xc1 = 0;
xc2 = 0;
xc3 = 0;
xc4 = 0;
yc1 = 0;
yc2 = 0;
yc3 = 0;
yc4 = 0;
newsound = new sound();
newsound.attachSound("splat.wav");
newsound1 = new sound();
newsound1.attachSound("quick.wav");
function creation() {
rand = Math.round(Math.random());
if (rand == 0) {
if (dedov[0] == 1) {
y1 = 100;
ded1.gotoAndPlay(1);
ded1._width = 137;
ded1._height = 128;
dedov[0] = 0;
dednum = dednum + 1;
} else if (dedov[2] == 1) {
y3 = 200;
ded3.gotoAndPlay(1);
ded3._width = 200;
ded3._height = 238;
dedov[2] = 0;
dednum = dednum + 1;
}
} else if (dedov[1] == 1) {
y2 = 100;
ded2.gotoAndPlay(1);
ded2._width = 137;
ded2._height = 128;
dedov[1] = 0;
dednum = dednum + 1;
} else if (dedov[3] == 1) {
y4 = 200;
ded4.gotoAndPlay(1);
ded4._width = 200;
ded4._height = 238;
dedov[3] = 0;
dednum = dednum + 1;
}
}
function game() {
out = "=" + podarki;
out2 = "=" + shot;
i = i + 2;
if (i == 60) {
i = 0;
}
if (i == 0) {
rand = creation();
}
if (dedov[0] == 0) {
x1 = x1 + 5;
ded1._x = x1;
ded1._y = y1;
if (x1 > 760) {
x1 = -260;
dedov[0] = 1;
ded1._x = x1;
}
}
if (dedov[1] == 0) {
x2 = x2 - 5;
ded2._x = x2;
ded2._y = y2;
if (x2 < -360) {
x2 = 660;
dedov[1] = 1;
ded2._x = x2;
}
}
if (dedov[2] == 0) {
x3 = x3 + 10;
ded3._x = x3;
ded3._y = y3;
if (x3 > 750) {
x3 = -170;
dedov[2] = 1;
ded3._x = x3;
}
}
if (dedov[3] == 0) {
x4 = x4 - 10;
ded4._x = x4;
ded4._y = y4;
if (x4 < -170) {
x4 = 660;
dedov[3] = 1;
ded4._x = x4;
}
}
}
function flys() {
if (fly[0] == 1) {
if (xc1 < 275) {
_root.s1._x = _root.s1._x - 10;
_root.s1._y = (((yc1 - 260) * (_root.s1._x - 580)) / (xc1 - 580)) + 260;
_root.s1._width = _root.s1._width - 1;
_root.s1._height = _root.s1._height - 1;
} else {
_root.s1._x = _root.s1._x + 10;
_root.s1._y = (((yc1 - 260) * (_root.s1._x + 68)) / (xc1 + 68)) + 260;
_root.s1._width = _root.s1._width - 1;
_root.s1._height = _root.s1._height - 1;
}
}
if (fly[1] == 1) {
if (xc2 < 275) {
_root.s2._x = _root.s2._x - 10;
_root.s2._y = (((yc2 - 260) * (_root.s2._x - 580)) / (xc2 - 580)) + 260;
_root.s2._width = _root.s2._width - 1;
_root.s2._height = _root.s2._height - 1;
} else {
_root.s2._x = _root.s2._x + 10;
_root.s2._y = (((yc2 - 260) * (_root.s2._x + 68)) / (xc2 + 68)) + 260;
_root.s2._width = _root.s2._width - 1;
_root.s2._height = _root.s2._height - 1;
}
}
if (fly[2] == 1) {
if (xc3 < 275) {
_root.s3._x = _root.s3._x - 10;
_root.s3._y = (((yc1 - 260) * (_root.s3._x - 580)) / (xc3 - 580)) + 260;
_root.s3._width = _root.s3._width - 1;
_root.s3._height = _root.s3._height - 1;
} else {
_root.s3._x = _root.s3._x + 10;
_root.s3._y = (((yc3 - 260) * (_root.s3._x + 68)) / (xc3 + 68)) + 260;
_root.s3._width = _root.s3._width - 1;
_root.s3._height = _root.s3._height - 1;
}
}
if (fly[3] == 1) {
if (xc4 < 275) {
_root.s4._x = _root.s4._x - 10;
_root.s4._y = (((yc4 - 260) * (_root.s4._x - 580)) / (xc4 - 580)) + 260;
_root.s4._width = _root.s4._width - 1;
_root.s4._height = _root.s4._height - 1;
} else {
_root.s4._x = _root.s4._x + 10;
_root.s4._y = (((yc4 - 260) * (_root.s4._x + 68)) / (xc4 + 68)) + 260;
_root.s4._width = _root.s4._width - 1;
_root.s4._height = _root.s4._height - 1;
}
}
if (_root.ded1._x > -33) {
if (_root.ded1.hitTest(_root.s1.centr)) {
newsound.start();
_root.dk1.gotoAndPlay(1);
_root.dk1._x = _root.ded1._x;
_root.dk1._y = _root.ded1._y;
_root.ded1._x = -270;
_root.ded1._y = -200;
x1 = -270;
dedov[0] = 1;
podarki = podarki + 1;
_root.s1._x = 670;
_root.s1._y = 700;
_root.s1._width = 65;
_root.s1._height = 65;
fly[0] = 0;
} else if (_root.ded1.hitTest(_root.s2.centr)) {
newsound.start();
_root.dk1.gotoAndPlay(1);
_root.dk1._x = _root.ded1._x;
_root.dk1._y = _root.ded1._y;
_root.ded1._x = -270;
_root.ded1._y = -200;
x1 = -270;
dedov[0] = 1;
podarki = podarki + 1;
_root.s2._x = 670;
_root.s2._y = 700;
_root.s2._width = 65;
_root.s2._height = 65;
fly[1] = 0;
} else if (_root.ded1.hitTest(_root.s3.centr)) {
newsound.start();
_root.dk1.gotoAndPlay(1);
_root.dk1._x = _root.ded1._x;
_root.dk1._y = _root.ded1._y;
_root.ded1._x = -270;
_root.ded1._y = -200;
x1 = -270;
dedov[0] = 1;
podarki = podarki + 1;
_root.s3._x = 670;
_root.s3._y = 700;
_root.s3._width = 65;
_root.s3._height = 65;
fly[2] = 0;
} else if (_root.ded1.hitTest(_root.s4.centr)) {
newsound.start();
_root.dk1.gotoAndPlay(1);
_root.dk1._x = _root.ded1._x;
_root.dk1._y = _root.ded1._y;
_root.ded1._x = -270;
_root.ded1._y = -200;
x1 = -270;
dedov[0] = 1;
podarki = podarki + 1;
_root.s4._x = 670;
_root.s4._y = 700;
_root.s4._width = 65;
_root.s4._height = 65;
fly[3] = 0;
}
}
if (_root.ded2._x < 440) {
if (_root.ded2.hitTest(_root.s1.centr)) {
newsound.start();
_root.dk2.gotoAndPlay(1);
_root.dk2._x = _root.ded2._x;
_root.dk2._y = _root.ded2._y;
_root.ded2._x = 660;
_root.ded2._y = -200;
x2 = 660;
dedov[1] = 1;
podarki = podarki + 1;
_root.s1._x = 670;
_root.s1._y = 700;
_root.s1._width = 65;
_root.s1._height = 65;
fly[0] = 0;
} else if (_root.ded2.hitTest(_root.s2.centr)) {
newsound.start();
_root.dk2.gotoAndPlay(1);
_root.dk2._x = _root.ded2._x;
_root.dk2._y = _root.ded2._y;
_root.ded2._x = 660;
_root.ded2._y = -200;
x2 = 660;
dedov[1] = 1;
podarki = podarki + 1;
_root.s2._x = 670;
_root.s2._y = 700;
_root.s2._width = 65;
_root.s2._height = 65;
fly[1] = 0;
} else if (_root.ded2.hitTest(_root.s3.centr)) {
newsound.start();
_root.dk2.gotoAndPlay(1);
_root.dk2._x = _root.ded2._x;
_root.dk2._y = _root.ded2._y;
_root.ded2._x = 660;
_root.ded2._y = -200;
x2 = 660;
dedov[1] = 1;
podarki = podarki + 1;
_root.s3._x = 670;
_root.s3._y = 700;
_root.s3._width = 65;
_root.s3._height = 65;
fly[2] = 0;
} else if (_root.ded2.hitTest(_root.s4.centr)) {
newsound.start();
_root.dk2.gotoAndPlay(1);
_root.dk2._x = _root.ded2._x;
_root.dk2._y = _root.ded2._y;
_root.ded2._x = 660;
_root.ded2._y = -200;
x2 = 660;
dedov[1] = 1;
podarki = podarki + 1;
_root.s4._x = 670;
_root.s4._y = 700;
_root.s4._width = 65;
_root.s4._height = 65;
fly[3] = 0;
}
}
if (_root.ded3._x > -52) {
if (_root.ded3.hitTest(_root.s1.centr)) {
newsound.start();
_root.dk3.gotoAndPlay(1);
_root.dk3._x = _root.ded3._x;
_root.dk3._y = _root.ded3._y;
_root.ded3._x = -170;
_root.ded3._y = -200;
x3 = -170;
dedov[2] = 1;
podarki = podarki + 1;
_root.s1._x = 670;
_root.s1._y = 700;
_root.s1._width = 65;
_root.s1._height = 65;
fly[0] = 0;
} else if (_root.ded3.hitTest(_root.s2.centr)) {
newsound.start();
_root.dk3.gotoAndPlay(1);
_root.dk3._x = _root.ded3._x;
_root.dk3._y = _root.ded3._y;
_root.ded3._x = -170;
_root.ded3._y = -200;
x3 = -170;
dedov[2] = 1;
podarki = podarki + 1;
_root.s2._x = 670;
_root.s2._y = 700;
_root.s2._width = 65;
_root.s2._height = 65;
fly[1] = 0;
} else if (_root.ded3.hitTest(_root.s3.centr)) {
newsound.start();
_root.dk3.gotoAndPlay(1);
_root.dk3._x = _root.ded3._x;
_root.dk3._y = _root.ded3._y;
_root.ded3._x = -170;
_root.ded3._y = -200;
x3 = -170;
dedov[2] = 1;
podarki = podarki + 1;
_root.s3._x = 670;
_root.s3._y = 700;
_root.s3._width = 65;
_root.s3._height = 65;
fly[2] = 0;
} else if (_root.ded3.hitTest(_root.s4.centr)) {
newsound.start();
_root.dk3.gotoAndPlay(1);
_root.dk3._x = _root.ded3._x;
_root.dk3._y = _root.ded3._y;
_root.ded3._x = -170;
_root.ded3._y = -200;
x3 = -170;
dedov[2] = 1;
podarki = podarki + 1;
_root.s4._x = 670;
_root.s4._y = 700;
_root.s4._width = 65;
_root.s4._height = 65;
fly[3] = 0;
}
}
if (_root.ded4._x < 400) {
if (_root.ded4.hitTest(_root.s1.centr)) {
newsound.start();
_root.dk4.gotoAndPlay(1);
_root.dk4._x = _root.ded4._x;
_root.dk4._y = _root.ded4._y;
_root.ded4._x = 660;
_root.ded4._y = -200;
x4 = 660;
dedov[3] = 1;
podarki = podarki + 1;
_root.s1._x = 670;
_root.s1._y = 700;
_root.s1._width = 65;
_root.s1._height = 65;
fly[0] = 0;
} else if (_root.ded4.hitTest(_root.s2.centr)) {
newsound.start();
_root.dk4.gotoAndPlay(1);
_root.dk4._x = _root.ded4._x;
_root.dk4._y = _root.ded4._y;
_root.ded4._x = 660;
_root.ded4._y = -200;
x4 = 660;
dedov[3] = 1;
podarki = podarki + 1;
_root.s2._x = 670;
_root.s2._y = 700;
_root.s2._width = 65;
_root.s2._height = 65;
fly[1] = 0;
} else if (_root.ded4.hitTest(_root.s3.centr)) {
newsound.start();
_root.dk4.gotoAndPlay(1);
_root.dk4._x = _root.ded4._x;
_root.dk4._y = _root.ded4._y;
_root.ded4._x = 660;
_root.ded4._y = -200;
x4 = 660;
dedov[3] = 1;
podarki = podarki + 1;
_root.s3._x = 670;
_root.s3._y = 700;
_root.s3._width = 65;
_root.s3._height = 65;
fly[2] = 0;
} else if (_root.ded4.hitTest(_root.s4.centr)) {
newsound.start();
_root.dk4.gotoAndPlay(1);
_root.dk4._x = _root.ded4._x;
_root.dk4._y = _root.ded4._y;
_root.ded4._x = 660;
_root.ded4._y = -200;
x4 = 660;
dedov[3] = 1;
podarki = podarki + 1;
_root.s4._x = 670;
_root.s4._y = 700;
_root.s4._width = 65;
_root.s4._height = 65;
fly[3] = 0;
}
}
if ((_root.s1._y < 0) || (_root.s1._y < yc1)) {
_root.s1._x = 670;
_root.s1._y = 700;
_root.s1._width = 65;
_root.s1._height = 65;
fly[0] = 0;
}
if ((_root.s2._y < 0) || (_root.s2._y < yc2)) {
_root.s2._x = 670;
_root.s2._y = 700;
_root.s2._width = 65;
_root.s2._height = 65;
fly[1] = 0;
}
if ((_root.s3._y < 0) || (_root.s3._y < yc3)) {
_root.s3._x = 670;
_root.s3._y = 700;
_root.s3._width = 65;
_root.s3._height = 65;
fly[2] = 0;
}
if ((_root.s4._y < 0) || (_root.s4._y < yc4)) {
_root.s4._x = 670;
_root.s4._y = 700;
_root.s4._width = 65;
_root.s4._height = 65;
fly[3] = 0;
}
}
timerID1 = setinterval(game, 25);
timerID2 = setinterval(flys, 1);
myListener = new Object();
myListener.onKeyDown = function () {
if (Key.isDown(32)) {
clearInterval(timerID1);
clearInterval(timerID2);
gotoAndPlay (26);
}
};
Key.addListener(myListener);
Frame 21
_root.onMouseDown = function () {
shot = shot + 1;
newsound1.start();
if (fly[0] == 0) {
fly[0] = 1;
if (_xmouse < 275) {
_root.s1._x = 660;
} else {
_root.s1._x = -68;
}
xc1 = _xmouse;
yc1 = _ymouse;
} else if (fly[1] == 0) {
fly[1] = 1;
if (_xmouse < 275) {
_root.s2._x = 660;
} else {
_root.s2._x = -68;
}
xc2 = _xmouse;
yc2 = _ymouse;
} else if (fly[2] == 0) {
fly[2] = 1;
if (_xmouse < 275) {
_root.s3._x = 660;
} else {
_root.s3._x = -68;
}
xc3 = _xmouse;
yc3 = _ymouse;
} else if (fly[3] == 0) {
fly[3] = 1;
if (_xmouse < 275) {
_root.s4._x = 660;
} else {
_root.s4._x = -68;
}
xc4 = _xmouse;
yc4 = _ymouse;
}
};
_root.pr._x = _xmouse;
_root.pr._y = _ymouse;
Frame 22
_root.pr._x = _xmouse;
_root.pr._y = _ymouse;
gotoAndPlay (21);
Frame 23
Mouse.hide();
_root.pr._x = _xmouse;
_root.pr._y = _ymouse;
var dedov;
dedov = [1, 0, 0, 1];
var dednum;
dednum = 0;
var rand;
var i;
var x1;
var x4;
var y1;
var y4;
var xc;
var yc;
var xc1;
var xc2;
var xc3;
var xc4;
var yc1;
var yc2;
var yc3;
var yc4;
var fly;
var podarki;
podarki = 0;
var out;
out = "=" + podarki;
var shot;
shot = 0;
var out2;
out2 = "=" + shot;
fly = [0, 0, 0, 0];
xc = 0;
yc = 0;
x1 = -300;
x4 = 660;
y1 = -200;
y4 = -200;
i = 58;
ded1._x = x1;
ded1._y = y1;
ded4._x = x4;
ded4._y = y4;
xc1 = 0;
xc2 = 0;
xc3 = 0;
xc4 = 0;
yc1 = 0;
yc2 = 0;
yc3 = 0;
yc4 = 0;
newsound = new sound();
newsound.attachSound("splat.wav");
newsound1 = new sound();
newsound1.attachSound("quick.wav");
function creation() {
rand = Math.round(Math.random());
if (rand == 0) {
if (dedov[0] == 1) {
y1 = 100;
ded1.gotoAndPlay(1);
ded1._width = 137;
ded1._height = 128;
dedov[0] = 0;
dednum = dednum + 1;
}
} else if (dedov[3] == 1) {
y4 = 200;
ded4.gotoAndPlay(1);
ded4._width = 200;
ded4._height = 238;
dedov[3] = 0;
dednum = dednum + 1;
}
}
function game() {
out = "=" + podarki;
out2 = "=" + shot;
i = i + 2;
if (i == 60) {
i = 0;
}
if (i == 0) {
rand = creation();
}
if (dedov[0] == 0) {
x1 = x1 + 5;
ded1._x = x1;
ded1._y = y1;
if (x1 > 760) {
x1 = -260;
dedov[0] = 1;
ded1._x = x1;
}
}
if (dedov[3] == 0) {
x4 = x4 - 10;
ded4._x = x4;
ded4._y = y4;
if (x4 < -170) {
x4 = 660;
dedov[3] = 1;
ded4._x = x4;
}
}
}
function flys() {
if (fly[0] == 1) {
if (xc1 < 275) {
_root.s1._x = _root.s1._x - 10;
_root.s1._y = (((yc1 - 260) * (_root.s1._x - 580)) / (xc1 - 580)) + 260;
_root.s1._width = _root.s1._width - 1;
_root.s1._height = _root.s1._height - 1;
} else {
_root.s1._x = _root.s1._x + 10;
_root.s1._y = (((yc1 - 260) * (_root.s1._x + 68)) / (xc1 + 68)) + 260;
_root.s1._width = _root.s1._width - 1;
_root.s1._height = _root.s1._height - 1;
}
}
if (fly[1] == 1) {
if (xc2 < 275) {
_root.s2._x = _root.s2._x - 10;
_root.s2._y = (((yc2 - 260) * (_root.s2._x - 580)) / (xc2 - 580)) + 260;
_root.s2._width = _root.s2._width - 1;
_root.s2._height = _root.s2._height - 1;
} else {
_root.s2._x = _root.s2._x + 10;
_root.s2._y = (((yc2 - 260) * (_root.s2._x + 68)) / (xc2 + 68)) + 260;
_root.s2._width = _root.s2._width - 1;
_root.s2._height = _root.s2._height - 1;
}
}
if (fly[2] == 1) {
if (xc3 < 275) {
_root.s3._x = _root.s3._x - 10;
_root.s3._y = (((yc1 - 260) * (_root.s3._x - 580)) / (xc3 - 580)) + 260;
_root.s3._width = _root.s3._width - 1;
_root.s3._height = _root.s3._height - 1;
} else {
_root.s3._x = _root.s3._x + 10;
_root.s3._y = (((yc3 - 260) * (_root.s3._x + 68)) / (xc3 + 68)) + 260;
_root.s3._width = _root.s3._width - 1;
_root.s3._height = _root.s3._height - 1;
}
}
if (fly[3] == 1) {
if (xc4 < 275) {
_root.s4._x = _root.s4._x - 10;
_root.s4._y = (((yc4 - 260) * (_root.s4._x - 580)) / (xc4 - 580)) + 260;
_root.s4._width = _root.s4._width - 1;
_root.s4._height = _root.s4._height - 1;
} else {
_root.s4._x = _root.s4._x + 10;
_root.s4._y = (((yc4 - 260) * (_root.s4._x + 68)) / (xc4 + 68)) + 260;
_root.s4._width = _root.s4._width - 1;
_root.s4._height = _root.s4._height - 1;
}
}
if (_root.ded1._x > -33) {
if (_root.ded1.hitTest(_root.s1.centr)) {
newsound.start();
_root.dk1.gotoAndPlay(1);
_root.dk1._x = _root.ded1._x;
_root.dk1._y = _root.ded1._y;
_root.ded1._x = -270;
_root.ded1._y = -200;
x1 = -270;
dedov[0] = 1;
podarki = podarki + 1;
_root.s1._x = 670;
_root.s1._y = 700;
_root.s1._width = 65;
_root.s1._height = 65;
fly[0] = 0;
} else if (_root.ded1.hitTest(_root.s2.centr)) {
newsound.start();
_root.dk1.gotoAndPlay(1);
_root.dk1._x = _root.ded1._x;
_root.dk1._y = _root.ded1._y;
_root.ded1._x = -270;
_root.ded1._y = -200;
x1 = -270;
dedov[0] = 1;
podarki = podarki + 1;
_root.s2._x = 670;
_root.s2._y = 700;
_root.s2._width = 65;
_root.s2._height = 65;
fly[1] = 0;
} else if (_root.ded1.hitTest(_root.s3.centr)) {
newsound.start();
_root.dk1.gotoAndPlay(1);
_root.dk1._x = _root.ded1._x;
_root.dk1._y = _root.ded1._y;
_root.ded1._x = -270;
_root.ded1._y = -200;
x1 = -270;
dedov[0] = 1;
podarki = podarki + 1;
_root.s3._x = 670;
_root.s3._y = 700;
_root.s3._width = 65;
_root.s3._height = 65;
fly[2] = 0;
} else if (_root.ded1.hitTest(_root.s4.centr)) {
newsound.start();
_root.dk1.gotoAndPlay(1);
_root.dk1._x = _root.ded1._x;
_root.dk1._y = _root.ded1._y;
_root.ded1._x = -270;
_root.ded1._y = -200;
x1 = -270;
dedov[0] = 1;
podarki = podarki + 1;
_root.s4._x = 670;
_root.s4._y = 700;
_root.s4._width = 65;
_root.s4._height = 65;
fly[3] = 0;
}
}
if (_root.ded4._x < 400) {
if (_root.ded4.hitTest(_root.s1.centr)) {
newsound.start();
_root.dk4.gotoAndPlay(1);
_root.dk4._x = _root.ded4._x;
_root.dk4._y = _root.ded4._y;
_root.ded4._x = 660;
_root.ded4._y = -200;
x4 = 660;
dedov[3] = 1;
podarki = podarki + 1;
_root.s1._x = 670;
_root.s1._y = 700;
_root.s1._width = 65;
_root.s1._height = 65;
fly[0] = 0;
} else if (_root.ded4.hitTest(_root.s2.centr)) {
newsound.start();
_root.dk4.gotoAndPlay(1);
_root.dk4._x = _root.ded4._x;
_root.dk4._y = _root.ded4._y;
_root.ded4._x = 660;
_root.ded4._y = -200;
x4 = 660;
dedov[3] = 1;
podarki = podarki + 1;
_root.s2._x = 670;
_root.s2._y = 700;
_root.s2._width = 65;
_root.s2._height = 65;
fly[1] = 0;
} else if (_root.ded4.hitTest(_root.s3.centr)) {
newsound.start();
_root.dk4.gotoAndPlay(1);
_root.dk4._x = _root.ded4._x;
_root.dk4._y = _root.ded4._y;
_root.ded4._x = 660;
_root.ded4._y = -200;
x4 = 660;
dedov[3] = 1;
podarki = podarki + 1;
_root.s3._x = 670;
_root.s3._y = 700;
_root.s3._width = 65;
_root.s3._height = 65;
fly[2] = 0;
} else if (_root.ded4.hitTest(_root.s4.centr)) {
newsound.start();
_root.dk4.gotoAndPlay(1);
_root.dk4._x = _root.ded4._x;
_root.dk4._y = _root.ded4._y;
_root.ded4._x = 660;
_root.ded4._y = -200;
x4 = 660;
dedov[3] = 1;
podarki = podarki + 1;
_root.s4._x = 670;
_root.s4._y = 700;
_root.s4._width = 65;
_root.s4._height = 65;
fly[3] = 0;
}
}
if ((_root.s1._y < 0) || (_root.s1._y < yc1)) {
_root.s1._x = 670;
_root.s1._y = 700;
_root.s1._width = 65;
_root.s1._height = 65;
fly[0] = 0;
}
if ((_root.s2._y < 0) || (_root.s2._y < yc2)) {
_root.s2._x = 670;
_root.s2._y = 700;
_root.s2._width = 65;
_root.s2._height = 65;
fly[1] = 0;
}
if ((_root.s3._y < 0) || (_root.s3._y < yc3)) {
_root.s3._x = 670;
_root.s3._y = 700;
_root.s3._width = 65;
_root.s3._height = 65;
fly[2] = 0;
}
if ((_root.s4._y < 0) || (_root.s4._y < yc4)) {
_root.s4._x = 670;
_root.s4._y = 700;
_root.s4._width = 65;
_root.s4._height = 65;
fly[3] = 0;
}
}
timerID1 = setinterval(game, 25);
timerID2 = setinterval(flys, 1);
myListener = new Object();
myListener.onKeyDown = function () {
if (Key.isDown(32)) {
clearInterval(timerID1);
clearInterval(timerID2);
gotoAndPlay (26);
}
};
Key.addListener(myListener);
Frame 24
_root.onMouseDown = function () {
shot = shot + 1;
newsound1.start();
if (fly[0] == 0) {
fly[0] = 1;
if (_xmouse < 275) {
_root.s1._x = 660;
} else {
_root.s1._x = -68;
}
xc1 = _xmouse;
yc1 = _ymouse;
} else if (fly[1] == 0) {
fly[1] = 1;
if (_xmouse < 275) {
_root.s2._x = 660;
} else {
_root.s2._x = -68;
}
xc2 = _xmouse;
yc2 = _ymouse;
} else if (fly[2] == 0) {
fly[2] = 1;
if (_xmouse < 275) {
_root.s3._x = 660;
} else {
_root.s3._x = -68;
}
xc3 = _xmouse;
yc3 = _ymouse;
} else if (fly[3] == 0) {
fly[3] = 1;
if (_xmouse < 275) {
_root.s4._x = 660;
} else {
_root.s4._x = -68;
}
xc4 = _xmouse;
yc4 = _ymouse;
}
};
_root.pr._x = _xmouse;
_root.pr._y = _ymouse;
Frame 25
_root.pr._x = _xmouse;
_root.pr._y = _ymouse;
gotoAndPlay (24);
Frame 26
Mouse.show();
newsound2.stop();
var metkost;
metkost = Math.round((podarki / dednum) * 100);
var type;
type = Math.round((podarki / shot) * 100);
var outstring;
outstring = ((("\u0412\u0430\u0448\u0430 \u043C\u0435\u0442\u043A\u043E\u0441\u0442\u044C \u0441\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 - " + metkost) + "%, \u0430 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0433\u0440\u044B - ") + type) + "%.";
var outstring2;
if (type > 85) {
outstring2 = "\u0412\u0430\u0448 \u0442\u0438\u043F - \u0445\u043B\u0430\u0434\u043D\u043E\u043A\u0440\u043E\u0432\u043D\u044B\u0439 ";
} else {
outstring2 = "\u0412\u0430\u0448 \u0442\u0438\u043F - \u043A\u0440\u043E\u0432\u043E\u0436\u0430\u0434\u043D\u044B\u0439 ";
}
if (metkost > 75) {
outstring2 = outstring2 + "\u0441\u043D\u0430\u0439\u043F\u0435\u0440-\u0443\u0431\u0438\u0439\u0446\u0430.";
} else {
outstring2 = outstring2 + "\u043C\u0430\u0437\u0438\u043B\u0430.";
}
Frame 35
gotoAndStop (36);
Symbol 8 Button
on (release) {
getURL ("http://chipigik.weles.ru", "_blank");
}
Symbol 24 Button
on (release) {
gotoAndPlay (23);
}
Symbol 27 Button
on (release) {
gotoAndPlay (20);
}
Symbol 57 MovieClip Frame 6
this._x = -300;
this._y = -300;
Symbol 79 Button
on (release) {
gotoAndPlay (5);
}