Frame 1
crug._xscale = (getBytesLoaded() / getBytesTotal()) * 100;
crug._yscale = (getBytesLoaded() / getBytesTotal()) * 100;
if (((getBytesLoaded() / getBytesTotal()) * 100) == 100) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
MovieClip.prototype.moveplayer = function () {
if (Key.isDown(39)) {
this.rh++;
} else {
this.rh = 0;
}
if (Key.isDown(37)) {
this.lf++;
} else {
this.lf = 0;
}
if (Key.isDown(38)) {
this.up++;
} else {
this.up = 0;
}
if (Key.isDown(40)) {
this.dn++;
} else {
this.dn = 0;
}
};
gotoAndPlay (40);
Frame 5
lv = 1;
Frame 6
_root.dark.gotoAndStop(35);
_root.attachMovie("photo1", "photo", 2000);
_root.photo._x = 520;
_root.photo._y = 47;
Frame 7
ck++;
if (ck > 0) {
dp++;
if (dp > 10) {
dp = 1;
}
if (_root.mask.hitTest(_root["darka" + dp]) == false) {
duplicateMovieClip (dark, "darka" + dp, dp);
ck = -ckhd;
tip = random(4) + 1;
if (tip == 1) {
_root["darka" + dp]._x = random(550);
_root["darka" + dp]._y = -40;
}
if (tip == 2) {
_root["darka" + dp]._x = random(550);
_root["darka" + dp]._y = 440;
}
if (tip == 3) {
_root["darka" + dp]._x = -50;
_root["darka" + dp]._y = random(400);
}
if (tip == 4) {
_root["darka" + dp]._x = 600;
_root["darka" + dp]._y = random(400);
}
}
}
if (lvs > 14) {
lv++;
lvs = 0;
_root.attachMovie("levelx", "levelx", 2011);
if (game == 1) {
spdd = spdd + 0.14;
ckhd = ckhd - 0.2;
enylife = enylife + 0.6;
}
if (game == 2) {
spdd = spdd + (1.2 / _root.lv);
ckhd = ckhd - 1;
}
dp = 1;
while (dp < 16) {
_root["darka" + dp].lf = 0;
dp++;
}
}
Frame 8
gotoAndPlay (7);
Frame 9
gover = 1;
Frame 10
_root._x = 0;
_root._y = 0;
stop();
Frame 16
gotoAndPlay (15);
Frame 20
stopAllSounds();
Frame 21
stop();
Frame 22
stopAllSounds();
Frame 23
stop();
Instance of Symbol 204 MovieClip in Frame 40
onClipEvent (mouseDown) {
_root.gotoAndPlay(15);
}
Frame 148
gotoAndPlay (15);
Symbol 3 MovieClip [spark] Frame 1
_xscale = (random(60) + 60);
_yscale = _xscale;
Symbol 3 MovieClip [spark] Frame 15
removeMovieClip(this);
stop();
Symbol 5 MovieClip Frame 1
_x = (random(30) - 15);
_y = (random(30) - 15);
_rotation = random(360);
Symbol 7 MovieClip Frame 1
_x = (random(30) - 15);
_y = (random(30) - 15);
_rotation = random(360);
Symbol 13 MovieClip Frame 1
stop();
Symbol 25 MovieClip [photo1] Frame 1
life2._xscale = life._yscale;
Symbol 25 MovieClip [photo1] Frame 2
gotoAndPlay (1);
Symbol 30 MovieClip [levelx] Frame 1
_x = _root.man._x;
_y = _root.man._y;
Symbol 30 MovieClip [levelx] Frame 2
_y = (_y - 2);
ck++;
if (ck > 15) {
gotoAndPlay (4);
}
Symbol 30 MovieClip [levelx] Frame 3
gotoAndPlay (2);
Symbol 30 MovieClip [levelx] Frame 4
_rotation = (_rotation + 33);
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
if (_xscale < 5) {
removeMovieClip(this);
_root.photo.lev.gotoAndPlay(2);
}
Symbol 30 MovieClip [levelx] Frame 5
gotoAndPlay (4);
Symbol 51 MovieClip Frame 21
gotoAndPlay (1);
Symbol 53 MovieClip Frame 1
if (_parent.hit == 1) {
gotoAndPlay (3);
}
Symbol 53 MovieClip Frame 2
gotoAndPlay (1);
Symbol 53 MovieClip Frame 3
_parent._x = _parent._x + (random(5) - 2);
_parent._y = _parent._y + (random(5) - 2);
_root.photo.score = _root.photo.score + 1;
_root.darkhit.stop();
_root.darkhit.start();
Symbol 53 MovieClip Frame 4
_parent._x = _parent._x + (random(5) - 2);
_parent._y = _parent._y + (random(5) - 2);
Symbol 53 MovieClip Frame 5
_parent._x = _parent._x + (random(5) - 2);
_parent._y = _parent._y + (random(5) - 2);
_root.photo.score = _root.photo.score + 1;
Symbol 53 MovieClip Frame 6
_parent.hit = 0;
gotoAndPlay (1);
Symbol 55 MovieClip Frame 1
_visible = 0;
Symbol 62 MovieClip Frame 1
function bitem() {
if (this.hitTest(_root.man._x, _root.man._y, 1) == true) {
_root.man.life = _root.man.life - 4;
}
}
scs = _root.lv * 5;
spd = _root.spdd;
lf = _root.enylife;
rrr = 200;
Symbol 62 MovieClip Frame 4
if (_root.game == 1) {
if (_root.svet.hitTest(_x, _y, 1) == true) {
hit = 1;
lf--;
}
}
if (lf < 0) {
gotoAndPlay (8);
}
bitem();
if (_root.game == 2) {
if (_root.svet.hitTest(this.anim) == true) {
_y = (_y + ((spd / 1.6) * Math.cos(_rotation * (Math.PI/180))));
_x = (_x - ((spd / 1.6) * Math.sin(_rotation * (Math.PI/180))));
}
if (this.hitTest(_root.xc, _root.yc, 0) == true) {
lf = -1;
}
delta_x = _x - _root.man._x;
delta_y = _y - _root.man._y;
targetRotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = targetRotation;
_y = (_y - (spd * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (spd * Math.sin(_rotation * (Math.PI/180))));
}
if (_root.game == 1) {
ck++;
if (ck > 15) {
ck = 0;
bersy = random(4);
delta_x = ((_x - _root.man._x) + random(rrr)) - (rrr / 2);
delta_y = ((_y - _root.man._y) + random(rrr)) - (rrr / 2);
}
if (bersy == 1) {
gotoAndPlay (6);
}
targetRotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
if (_rotation < (targetRotation - 7)) {
_rotation = (_rotation + 10);
}
if (_rotation > (targetRotation + 7)) {
_rotation = (_rotation - 10);
}
_y = (_y - (spd * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (spd * Math.sin(_rotation * (Math.PI/180))));
}
Symbol 62 MovieClip Frame 5
gotoAndPlay (4);
Symbol 62 MovieClip Frame 6
if (_root.svet.hitTest(_x, _y, 1) == true) {
hit = 1;
lf--;
}
if (lf < 0) {
gotoAndPlay (8);
}
bitem();
ck++;
delta_x = _x - _root.man._x;
delta_y = _y - _root.man._y;
targetRotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = targetRotation;
_y = (_y - (spd * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (spd * Math.sin(_rotation * (Math.PI/180))));
Symbol 62 MovieClip Frame 7
if (ck < 50) {
gotoAndPlay (6);
} else {
gotoAndPlay (4);
bersy = 0;
}
Symbol 62 MovieClip Frame 8
i = 1;
while (i < 360) {
this.attachMovie("spark", "spark" + i, i);
this["spark" + i]._rotation = i;
i = i + (random(50) + 50);
}
_rotation = 0;
_root.photo.score = _root.photo.score + scs;
_root.lvs++;
Symbol 62 MovieClip Frame 9
i = 1;
while (i < 360) {
this.attachMovie("spark", "spark" + i, i);
this["spark" + i]._rotation = i;
i = i + (random(50) + 50);
}
Symbol 62 MovieClip Frame 10
i = 1;
while (i < 360) {
this.attachMovie("spark", "spark" + i, i);
this["spark" + i]._rotation = i;
i = i + (random(50) + 50);
}
Symbol 62 MovieClip Frame 11
i = 1;
while (i < 360) {
this.attachMovie("spark", "spark" + i, i);
this["spark" + i]._rotation = i;
i = i + (random(50) + 50);
}
Symbol 62 MovieClip Frame 29
removeMovieClip(this);
unloadMovie (this);
Symbol 67 MovieClip Frame 1
_visible = 0;
Symbol 67 MovieClip Frame 2
_x = (_root.street.apteka._x + _root.street._x);
_y = (_root.street.apteka._y + _root.street._y);
Symbol 67 MovieClip Frame 3
gotoAndPlay (2);
Symbol 67 MovieClip Frame 4
_visible = 1;
Symbol 67 MovieClip Frame 24
gotoAndPlay (2);
Symbol 76 MovieClip Frame 1
if ((_parent.xp == 1) or (_parent.yp == 1)) {
gotoAndPlay (3);
}
if (_parent.hit == 1) {
gotoAndPlay (5);
}
Symbol 76 MovieClip Frame 2
gotoAndPlay (1);
Symbol 76 MovieClip Frame 3
if (_parent.hit == 1) {
gotoAndPlay (5);
}
Symbol 76 MovieClip Frame 4
if ((_parent.xp == 1) or (_parent.yp == 1)) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 76 MovieClip Frame 5
_root._x = 3;
Symbol 76 MovieClip Frame 6
_root._x = -3;
Symbol 76 MovieClip Frame 7
_root._x = 0;
gotoAndPlay (1);
_parent.hit = 0;
Symbol 80 MovieClip Frame 20
stop();
Symbol 82 MovieClip Frame 1
life = 100;
life1 = life;
_root.photo.life._yscale = 100 - life;
Symbol 82 MovieClip Frame 4
moveplayer();
xs = 0;
ys = 0;
xp = 0;
yp = 0;
if (lf > 1) {
xs = -5;
xp = 1;
}
if (rh > 1) {
xs = 5;
xp = 1;
}
if (up > 1) {
ys = -5;
yp = 1;
}
if (dn > 1) {
ys = 5;
yp = 1;
}
if ((xp == 1) and (yp == 1)) {
ys = ys / 1.2;
xs = xs / 1.2;
}
_x = (_x + xs);
_y = (_y + ys);
if (_x > 540) {
_x = 540;
}
if (_x < 10) {
_x = 10;
}
if (_y > 390) {
_y = 390;
}
if (_y < 10) {
_y = 10;
}
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
targetRotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = targetRotation;
luch._yscale = Math.sqrt((delta_x * delta_x) + (delta_y * delta_y)) * 1.7;
if (life > 100) {
life = 100;
}
if (life != life1) {
life1 = life;
hit = 1;
_root.photo.life._yscale = 100 - life1;
if (life1 < 1) {
_root.photo.life._yscale = 100;
gotoAndPlay (7);
}
}
Symbol 82 MovieClip Frame 5
gotoAndPlay (4);
Symbol 82 MovieClip Frame 7
unloadMovie (_root.svet);
unloadMovie (_root.luch);
unloadMovie (_root.cel);
i = 1;
while (i < 11) {
removeMovieClip(_root["darka" + i]);
i++;
}
_root.score = _root.photo.score;
Symbol 82 MovieClip Frame 8
_root.ck = -10;
dk++;
if (dk > 40) {
removeMovieClip(_root.photo);
if (_root.lv < 10) {
_root.gotoAndPlay(22);
} else {
_root.gotoAndPlay(20);
}
}
Symbol 82 MovieClip Frame 9
gotoAndPlay (8);
Symbol 86 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 1
if (_root.game == 2) {
gotoAndPlay (5);
} else {
unloadMovie (this);
}
Symbol 95 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 5
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.click.dwn == 1) {
fire++;
} else {
fire = 0;
}
if (fire == 1) {
ccel.gotoAndPlay(2);
_root.xc = _root._xmouse;
_root.yc = _root._ymouse;
} else {
_root.xc = -1000;
_root.yc = -1000;
}
Symbol 95 MovieClip Frame 6
gotoAndPlay (5);
Symbol 97 MovieClip Frame 1
_visible = 0;
if (_root.game == 2) {
gotoAndPlay (5);
}
Symbol 97 MovieClip Frame 2
_xscale = _root.hard;
_yscale = _root.hard;
if (_xscale < 70) {
_xscale = 70;
_yscale = 70;
}
_x = _root._xmouse;
_y = _root._ymouse;
delta_x = _x - _root.man._x;
delta_y = _y - _root.man._y;
targetRotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = targetRotation;
Symbol 97 MovieClip Frame 3
gotoAndPlay (2);
Symbol 97 MovieClip Frame 4
_xscale = _root.hard;
_yscale = _root.hard;
if (_xscale < 70) {
_xscale = 70;
_yscale = 70;
}
_x = _root._xmouse;
_y = _root._ymouse;
delta_x = _x - _root.man._x;
delta_y = _y - _root.man._y;
targetRotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = targetRotation;
Symbol 97 MovieClip Frame 5
gotoAndPlay (4);
Symbol 99 MovieClip Frame 1
_x = _root._xmouse;
_y = _root._ymouse;
_xscale = _root.hard;
_yscale = _root.hard;
delta_x = _x - _root.man._x;
delta_y = _y - _root.man._y;
targetRotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = targetRotation;
Symbol 99 MovieClip Frame 2
if (_root.game != 2) {
gotoAndPlay (1);
}
Symbol 99 MovieClip Frame 3
_x = _root._xmouse;
_y = _root._ymouse;
_xscale = _root.hard;
_yscale = _root.hard;
Symbol 99 MovieClip Frame 4
if (_root.game == 2) {
gotoAndPlay (3);
}
Symbol 100 MovieClip Frame 1
gotoAndPlay (10);
lv1 = _root.lv;
Symbol 100 MovieClip Frame 3
_x = (random(420) - 210);
_y = (random(340) - 170);
Symbol 100 MovieClip Frame 4
if (this.hitTest(_root.man) == true) {
gotoAndPlay (10);
_root.apt.gotoAndPlay(4);
_root.man.life = _root.man.life + 50;
}
Symbol 100 MovieClip Frame 5
gotoAndPlay (4);
Symbol 100 MovieClip Frame 10
if (lv1 != _root.lv) {
gotoAndPlay (3);
}
lv1 = _root.lv;
Symbol 100 MovieClip Frame 11
gotoAndPlay (10);
Symbol 112 MovieClip Frame 1
if (_root.game == 1) {
gotoAndStop (3);
}
if (_root.game == 2) {
gotoAndStop (5);
}
Symbol 121 MovieClip Frame 1
_x = _root.man._x;
_y = _root.man._y;
if (_root.game == 2) {
gotoAndPlay (7);
}
Symbol 121 MovieClip Frame 4
_x = _root.man._x;
_y = _root.man._y;
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
targetRotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = targetRotation;
y = (-(29 * (_root.hard / 100))) * Math.cos(_rotation * (Math.PI/180));
x = (29 * (_root.hard / 100)) * Math.sin(_rotation * (Math.PI/180));
delta_x1 = (_x - _root._xmouse) - x;
delta_y1 = (_y - _root._ymouse) - y;
this.svet._xscale = _root.hard;
svet._yscale = Math.sqrt((delta_x1 * delta_x1) + (delta_y1 * delta_y1)) * 1.7;
with (svet) {
gotoAndStop(Math.floor(_xscale / 5));
}
Symbol 121 MovieClip Frame 5
gotoAndPlay (4);
Symbol 121 MovieClip Frame 6
unloadMovie (this);
Symbol 121 MovieClip Frame 7
_x = _root.man._x;
_y = _root.man._y;
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
targetRotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = targetRotation;
this.svety._xscale = _root.hard;
svety._yscale = Math.sqrt((delta_x * delta_x) + (delta_y * delta_y)) * 1.7;
with (svety) {
gotoAndStop(Math.floor(_xscale / 5));
}
if (_root.click.dwn == 1) {
fire++;
} else {
fire = 0;
}
if (fire == 1) {
gotoAndPlay (9);
}
Symbol 121 MovieClip Frame 8
gotoAndPlay (7);
Symbol 121 MovieClip Frame 9
_x = _root.man._x;
_y = _root.man._y;
delta_x = _x - _root._xmouse;
delta_y = _y - _root._ymouse;
targetRotation = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = targetRotation;
this.svet._xscale = _root.hard;
svet._yscale = Math.sqrt((delta_x * delta_x) + (delta_y * delta_y)) * 1.7;
with (svet) {
gotoAndStop(Math.floor(_xscale / 5));
}
Symbol 121 MovieClip Frame 10
gotoAndPlay (7);
Symbol 123 MovieClip Frame 1
dwn = 0;
clc = 0;
_visible = 0;
Symbol 123 MovieClip Frame 2
this.onMouseDown = function () {
dwn = 1;
};
this.onMouseUp = function () {
clc = 1;
};
Symbol 123 MovieClip Frame 3
if (clc == 0) {
gotoAndPlay (2);
}
Symbol 126 MovieClip Frame 1
if (_root.game == 1) {
gotoAndStop (3);
}
if (_root.game == 2) {
gotoAndStop (5);
}
Symbol 130 Button
on (release) {
_root.gotoAndPlay(5);
stopAllSounds();
_root.spdd = 5;
_root.enylife = 5;
_root.game = 2;
_root.ckhd = 20;
}
Symbol 133 Button
on (release) {
_root.gotoAndPlay(5);
stopAllSounds();
_root.spdd = 1.8;
_root.enylife = 4;
_root.game = 1;
_root.ckhd = 30;
}
Symbol 135 Button
on (release) {
getURL ("http://art-naive.ru", "_blank");
}
Symbol 139 MovieClip Frame 1
if (this.hitTest(_root._xmouse, _root._ymouse, 1) == true) {
gotoAndPlay (3);
}
_root.hard = (110 - _x) * 2;
Symbol 139 MovieClip Frame 2
gotoAndPlay (1);
Symbol 139 MovieClip Frame 3
if (_root.click.dwn == 1) {
gotoAndPlay (5);
}
Symbol 139 MovieClip Frame 4
if (this.hitTest(_root._xmouse, _root._ymouse, 1) == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 139 MovieClip Frame 5
_x = (_root._xmouse - _parent._x);
if (_x < -92) {
_x = -92;
}
if (_x > 92) {
_x = 92;
}
_root.hard = (110 - _x) * 2;
Symbol 139 MovieClip Frame 6
if (_root.click.dwn == 1) {
gotoAndPlay (5);
} else {
gotoAndPlay (1);
}
Symbol 142 MovieClip Frame 1
_x = _root._xmouse;
_y = _root._ymouse;
_xscale = _root.hard;
_yscale = _root.hard;
Symbol 142 MovieClip Frame 2
gotoAndPlay (1);
Symbol 157 MovieClip Frame 31
stop();
Symbol 166 Button
on (release) {
_root.gotoAndPlay(1);
stopAllSounds();
}