Frame 1
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this.loadBar._width = getPercent * 100;
this.loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
Frame 2
this.gotoAndPlay(1);
Frame 3
Mouse.hide();
startDrag ("raksi", true);
stop();
_quality = "MEDIUM";
Frame 4
function buffi() {
aa++;
buff.duplicateMovieClip("buff" + aa, 50000 + aa);
_root["buff" + aa]._y = random(290) + 20;
_root["buff" + aa]._x = random(390) + 20;
}
function buffiinterval() {
buffit = setInterval(buffi, 10000);
}
function t\u00E4ht\u00E4ys() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
testi.tykki.onEnterFrame = function () {
var _local4 = (raksi._x - this._x) - 268.5;
var _local2 = (raksi._y - this._y) - 210;
var _local3 = Math.atan2(_local2, _local4);
this._rotation = convert(_local3) + 90;
};
testi.minishield.onEnterFrame = function () {
var _local4 = (raksi._x - this._x) - 268.5;
var _local2 = (raksi._y - this._y) - 210;
var _local3 = Math.atan2(_local2, _local4);
this._rotation = convert(_local3) + 90;
};
}
function punakolmioyl\u00E4() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
ii++;
maxii = 20;
viholliset.punakolmio.duplicateMovieClip("punay" + ii, 900 + ii);
_root.viholliset["punay" + ii]._y = -10;
_root.viholliset["punay" + ii]._x = random(430);
if (ii > maxii) {
ii = 0;
}
_root.viholliset["punay" + ii].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(15);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.nextFrame();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 1.5 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 1.5 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(15);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(15);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function punakolmioala() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
oo++;
maxoo = 20;
viholliset.punakolmio.duplicateMovieClip("punaa" + oo, 950 + oo);
_root.viholliset["punaaa" + oo]._y = 355;
_root.viholliset["punaa" + oo]._x = random(430);
if (oo > maxoo) {
oo = 0;
}
_root.viholliset["punaa" + oo].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(15);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.play();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 1.5 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 1.5 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(15);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(15);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function punakolmiovasen() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
pp++;
maxpp = 20;
viholliset.punakolmio.duplicateMovieClip("punav" + pp, 1000 + pp);
_root.viholliset["punav" + pp]._y = random(335);
_root.viholliset["punav" + pp]._x = -10;
if (pp > maxpp) {
pp = 0;
}
_root.viholliset["punav" + pp].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(15);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.play();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 1.5 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 1.5 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(15);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(15);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function punakolmiooikea() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
uu++;
maxuu = 20;
viholliset.punakolmio.duplicateMovieClip("punao" + uu, 1050 + uu);
_root.viholliset["punao" + uu]._y = random(335);
_root.viholliset["punao" + uu]._x = 460;
if (uu > maxuu) {
uu = 0;
}
_root.viholliset["punao" + uu].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(15);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.play();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 1.5 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 1.5 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(15);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(15);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function boss3() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
xxxDir = 1.5;
yyyDir = 1.5;
bb++;
maxbb = 50;
viholliset.boss3.duplicateMovieClip("boss3" + bb, 1200 + bb);
_root.viholliset["boss3" + bb]._y = 300;
_root.viholliset["boss3" + bb]._x = 215;
if (bb > maxbb) {
bb = 0;
}
_root.viholliset["boss3" + bb].onEnterFrame = function () {
if (_root.tapakaikki2 == true) {
this.gotoAndPlay(100);
}
if (this.elossa == true) {
this._x = this._x + xxxDir;
this._y = this._y + yyyDir;
if (random(75) == 0) {
xxxDir = xxxDir * -1;
}
if (random(75) == 0) {
yyyDir = yyyDir * -1;
}
if (this.hitTest(_root["yl\u00E4sein\u00E4"])) {
this._y = this._y + 0.1;
this._y = this._y + 0.1;
yyyDir = -yyyDir;
}
if (this.hitTest(_root["alasein\u00E4"])) {
this._y = this._y - 0.1;
this._y = this._y - 0.1;
yyyDir = -yyyDir;
}
if (this.hitTest(_root["vasensein\u00E4"])) {
this._x = this._x + 0.1;
this._x = this._x + 0.1;
xxxDir = -xxxDir;
}
if (this.hitTest(_root["oikeasein\u00E4"])) {
this._x = this._x - 0.1;
this._x = this._x - 0.1;
xxxDir = -xxxDir;
}
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.nextFrame();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local5 = (testi.tykki._x - this._x) + 290;
var _local3 = (testi.tykki._y - this._y) + 210;
var _local4 = Math.atan2(_local3, _local5);
this._rotation = convert(_local4);
if (this.hitTest(testi.player)) {
this.nextFrame();
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.nextFrame();
testi.minishield.play();
}
}
this._x = this._x + xs;
this._y = this._y + ys;
}
};
}
function boss1() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
xDir = 1.5;
yDir = 1.5;
b++;
maxb = 99;
viholliset.boss1.duplicateMovieClip("boss1" + b, 700 + b);
_root.viholliset["boss1" + b]._y = 40;
_root.viholliset["boss1" + b]._x = 40;
if (b > maxb) {
b = 0;
}
_root.viholliset["boss1" + b].onEnterFrame = function () {
if (_root.tapakaikki2 == true) {
this.gotoAndPlay(50);
}
if (this.elossa == true) {
this._x = this._x + xDir;
this._y = this._y + yDir;
if (random(60) == 0) {
xDir = xDir * -1;
}
if (random(60) == 0) {
yDir = yDir * -1;
}
if (this.hitTest(_root["yl\u00E4sein\u00E4"])) {
this._y = this._y + 0.1;
this._y = this._y + 0.1;
yDir = -yDir;
}
if (this.hitTest(_root["alasein\u00E4"])) {
this._y = this._y - 0.1;
this._y = this._y - 0.1;
yDir = -yDir;
}
if (this.hitTest(_root["vasensein\u00E4"])) {
this._x = this._x + 0.1;
this._x = this._x + 0.1;
xDir = -xDir;
}
if (this.hitTest(_root["oikeasein\u00E4"])) {
this._x = this._x - 0.1;
this._x = this._x - 0.1;
xDir = -xDir;
}
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.nextFrame();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local5 = (testi.tykki._x - this._x) + 290;
var _local3 = (testi.tykki._y - this._y) + 210;
var _local4 = Math.atan2(_local3, _local5);
this._rotation = convert(_local4);
if (this.hitTest(testi.player)) {
this.nextFrame();
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.nextFrame();
testi.minishield.play();
}
}
this._x = this._x + xs;
this._y = this._y + ys;
}
};
}
function boss2() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
xxDir = 1.5;
yyDir = 1.5;
n++;
maxn = 99;
viholliset.boss1.duplicateMovieClip("boss2" + n, 800 + n);
_root.viholliset["boss2" + n]._y = 300;
_root.viholliset["boss2" + n]._x = 370;
if (n > maxn) {
n = 0;
}
_root.viholliset["boss2" + n].onEnterFrame = function () {
if (_root.tapakaikki2 == true) {
this.gotoAndPlay(50);
}
if (this.elossa == true) {
this._x = this._x + xxDir;
this._y = this._y + yyDir;
if (random(70) == 0) {
xxDir = xxDir * -1;
}
if (random(70) == 0) {
yyDir = yyDir * -1;
}
if (this.hitTest(_root["yl\u00E4sein\u00E4"])) {
this._y = this._y + 0.1;
this._y = this._y + 0.1;
yyDir = -yyDir;
}
if (this.hitTest(_root["alasein\u00E4"])) {
this._y = this._y - 0.1;
this._y = this._y - 0.1;
yyDir = -yyDir;
}
if (this.hitTest(_root["vasensein\u00E4"])) {
this._x = this._x + 0.1;
this._x = this._x + 0.1;
xxDir = -xxDir;
}
if (this.hitTest(_root["oikeasein\u00E4"])) {
this._x = this._x - 0.1;
this._x = this._x - 0.1;
xxDir = -xxDir;
}
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.nextFrame();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local5 = (testi.tykki._x - this._x) + 290;
var _local3 = (testi.tykki._y - this._y) + 210;
var _local4 = Math.atan2(_local3, _local5);
this._rotation = convert(_local4);
if (this.hitTest(testi.player)) {
this.nextFrame();
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.nextFrame();
testi.minishield.play();
}
}
this._x = this._x + xs;
this._y = this._y + ys;
}
};
}
function keltakolmioyl\u00E4() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
i++;
maxi = 40;
viholliset.keltakolmio.duplicateMovieClip("keltay" + i, 100 + i);
_root.viholliset["keltay" + i]._y = -10;
_root.viholliset["keltay" + i]._x = random(430);
if (i > maxi) {
i = 0;
}
_root.viholliset["keltay" + i].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(4);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.nextFrame();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 1.5 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 1.5 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(4);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(4);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function keltakolmioala() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
o++;
maxo = 40;
viholliset.keltakolmio.duplicateMovieClip("keltaa" + o, 150 + o);
_root.viholliset["keltaa" + o]._y = 355;
_root.viholliset["keltaa" + o]._x = random(430);
if (o > maxo) {
o = 0;
}
_root.viholliset["keltaa" + o].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(4);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.play();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 1.5 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 1.5 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(4);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(4);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function keltakolmiovasen() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
p++;
maxp = 40;
viholliset.keltakolmio.duplicateMovieClip("keltav" + p, 200 + p);
_root.viholliset["keltav" + p]._y = random(335);
_root.viholliset["keltav" + p]._x = -10;
if (p > maxp) {
p = 0;
}
_root.viholliset["keltav" + p].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(4);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.play();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 1.5 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 1.5 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(4);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(4);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function keltakolmiooikea() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
u++;
maxu = 40;
viholliset.keltakolmio.duplicateMovieClip("keltao" + u, 250 + u);
_root.viholliset["keltao" + u]._y = random(335);
_root.viholliset["keltao" + u]._x = 460;
if (u > maxu) {
u = 0;
}
_root.viholliset["keltao" + u].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(4);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.play();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 1.5 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 1.5 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(4);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(4);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function oranssikolmioyl\u00E4() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
j++;
maxj = 40;
viholliset.oranssikolmio.duplicateMovieClip("oranssiy" + j, 450 + j);
_root.viholliset["oranssiy" + j]._y = -10;
_root.viholliset["oranssiy" + j]._x = random(430);
if (j > maxj) {
j = 0;
}
_root.viholliset["oranssiy" + j].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(7);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.play();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 0.8 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 0.8 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(7);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(7);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function oranssikolmioala() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
h++;
maxh = 40;
viholliset.oranssikolmio.duplicateMovieClip("oranssia" + h, 400 + h);
_root.viholliset["oranssia" + h]._y = 355;
_root.viholliset["oranssia" + h]._x = random(430);
if (h > maxh) {
h = 0;
}
_root.viholliset["oranssia" + h].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(7);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.play();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 0.8 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 0.8 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(7);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(7);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function oranssikolmiovasen() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
g++;
maxg = 40;
viholliset.oranssikolmio.duplicateMovieClip("oranssiv" + g, 350 + g);
_root.viholliset["oranssiv" + g]._y = random(335);
_root.viholliset["oranssiv" + g]._x = -10;
if (g > maxg) {
g = 0;
}
_root.viholliset["oranssiv" + g].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(7);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.play();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 0.8 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 0.8 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(7);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(7);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function oranssikolmiooikea() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
f++;
maxf = 40;
viholliset.oranssikolmio.duplicateMovieClip("oranssio" + f, 300 + f);
_root.viholliset["oranssio" + f]._y = random(335);
_root.viholliset["oranssio" + f]._x = 460;
if (f > maxf) {
f = 0;
}
_root.viholliset["oranssio" + f].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(7);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.play();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 0.8 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 0.8 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(7);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(7);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function violettiampujayl\u00E4() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
violettiampu();
c++;
maxc = 50;
viholliset.violettiampuja.duplicateMovieClip("violettiampujay" + c, 500 + c);
_root.viholliset["violettiampujay" + c]._y = -10;
_root.viholliset["violettiampujay" + c]._x = random(430);
if (c > maxc) {
c = 0;
}
_root.viholliset["violettiampujay" + c].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(5);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.play();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 0.5 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 0.5 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(5);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(5);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function violettiampujaala() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
m++;
maxm = 50;
viholliset.violettiampuja.duplicateMovieClip("violettiampujaa" + m, 550 + m);
_root.viholliset["violettiampujaa" + m]._y = 355;
_root.viholliset["violettiampujaa" + m]._x = random(430);
if (m > maxm) {
m = 0;
}
_root.viholliset["violettiampujaa" + m].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(5);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.play();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 0.8 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 0.8 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(5);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(5);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function violettiampujavasen() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
b++;
maxb = 50;
viholliset.violettiampuja.duplicateMovieClip("violettiampujav" + b, 600 + b);
_root.viholliset["violettiampujav" + b]._y = random(335);
_root.viholliset["violettiampujav" + b]._x = -10;
if (b > maxb) {
b = 0;
}
_root.viholliset["violettiampujav" + b].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(5);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.play();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 0.8 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 0.8 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(5);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(5);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function violettiampujaoikea() {
function convert(radians) {
degrees = radians * 57.2957795130823;
return(degrees);
}
n++;
maxn = 50;
viholliset.violettiampuja.duplicateMovieClip("violettiampujao" + n, 650 + n);
_root.viholliset["violettiampujao" + n]._y = random(335);
_root.viholliset["violettiampujao" + n]._x = 460;
if (n > maxn) {
n = 0;
}
_root.viholliset["violettiampujao" + n].onEnterFrame = function () {
if (_root.tapakaikki == true) {
this.gotoAndPlay(5);
}
if (this.elossa == true) {
if (_root.ampuu == true) {
v = 0;
while (v < 19) {
if (this.hitTest(_root["bullet" + v])) {
this.play();
_root["bullet" + v].removeMovieClip();
}
v++;
}
}
var _local7 = (testi.tykki._x - this._x) + 290;
var _local4 = (testi.tykki._y - this._y) + 210;
var _local6 = Math.atan2(_local4, _local7);
this._rotation = convert(_local6);
var _local5 = 0.8 * Math.cos((((this._rotation * Math.PI) + random(60)) + 30) / 180);
var _local3 = 0.8 * Math.sin((((this._rotation * Math.PI) + random(60)) + 30) / 180);
if (this.hitTest(testi.player)) {
this.gotoAndPlay(5);
testi.player.play();
testi.tykki.play();
}
if (minishieldp\u00E4\u00E4ll\u00E4 == true) {
if (this.hitTest(testi.minishield)) {
this.gotoAndPlay(5);
testi.minishield.play();
}
}
this._x = this._x + _local5;
this._y = this._y + _local3;
}
};
}
function stage1() {
_root.stage = 1;
Set("oranssikolmioyl\u00E41", setInterval(oranssikolmioyl\u00E4, 5000));
keltakolmioala1 = setInterval(keltakolmioala, 9000);
keltakolmiovasen1 = setInterval(keltakolmiovasen, 5500);
keltakolmiooikea1 = setInterval(keltakolmiooikea, 4000);
}
function testi1() {
testaa1 = setInterval(stage2testi, 1);
stage1alkaatesti = setInterval(stage1alkutesti, 1);
}
function stage1alkutesti() {
if (stage1alkaa == true) {
stage1();
clearInterval(stage1alkaatesti);
}
}
function stage2testi() {
if (tapot >= 25) {
clearInterval(testaa1);
clearInterval(oranssikolmioyl\u00E41);
clearInterval(keltakolmioala1);
clearInterval(keltakolmiovasen1);
clearInterval(keltakolmiooikea1);
_root.tausta.play();
_root.tapakaikki = true;
stage2();
testi2();
}
}
function stage2() {
_root.stage = 2;
oranssikolmiovasen2 = setInterval(oranssikolmiovasen, 6500);
oranssikolmiooikea2 = setInterval(oranssikolmiooikea, 5000);
Set("violettiampujayl\u00E42", setInterval(violettiampujayl\u00E4, 6000));
violettiampujaala2 = setInterval(violettiampujaala, 7500);
}
function testi2() {
testaa2 = setInterval(stage3testi, 1);
}
function stage3testi() {
if (tapot >= 55) {
clearInterval(testaa2);
clearInterval(oranssikolmiooikea2);
clearInterval(oranssikolmiovasen2);
clearInterval(violettiampujayl\u00E42);
clearInterval(violettiampujaala2);
_root.tausta.play();
_root.tapakaikki = true;
stage3();
testi3();
}
}
function stage3() {
_root.stage = 3;
violettiampujaoikea3 = setInterval(violettiampujaoikea, 5500);
violettiampujavasen3 = setInterval(violettiampujavasen, 7100);
Set("violettiampujayl\u00E43", setInterval(violettiampujayl\u00E4, 6200));
violettiampujaala3 = setInterval(violettiampujaala, 7500);
}
function testi3() {
testaa3 = setInterval(stage4testi, 1);
}
function stage4testi() {
if (tapot >= 90) {
clearInterval(testaa3);
clearInterval(violettiampujaoikea3);
clearInterval(violettiampujavasen3);
clearInterval(violettiampujayl\u00E43);
clearInterval(violettiampujaala3);
_root.tausta.play();
_root.tapakaikki = true;
stage4();
testi4();
}
}
function stage4() {
_root.stage = 4;
Set("oranssikolmioyl\u00E44", setInterval(oranssikolmioyl\u00E4, 6300));
keltakolmioala4 = setInterval(keltakolmioala, 7100);
keltakolmiovasen4 = setInterval(keltakolmiovasen, 5900);
keltakolmiooikea4 = setInterval(keltakolmiooikea, 4600);
Set("violettiampujayl\u00E44", setInterval(violettiampujayl\u00E4, 6300));
violettiampujaala4 = setInterval(violettiampujaala, 7400);
}
function testi4() {
testaa4 = setInterval(stage5testi, 1);
}
function stage5testi() {
if (tapot >= 140) {
clearInterval(testaa4);
clearInterval(oranssikolmioyl\u00E44);
clearInterval(keltakolmioala4);
clearInterval(keltakolmiovasen4);
clearInterval(keltakolmiooikea4);
clearInterval(violettiampujayl\u00E44);
clearInterval(violettiampujaala4);
_root.tausta.play();
_root.tapakaikki = true;
testi5();
}
}
function testi5() {
_root.stage = 5;
testaa5 = setInterval(stage6testi, 1);
}
function stage6testi() {
if (tapot2 >= 2) {
clearInterval(testaa5);
_root.tausta.play();
stage6();
testi6();
}
}
function stage6() {
_root.stage = 6;
Set("oranssikolmioyl\u00E46", setInterval(oranssikolmioyl\u00E4, 7300));
keltakolmioala6 = setInterval(keltakolmioala, 8100);
keltakolmiovasen6 = setInterval(keltakolmiovasen, 6200);
keltakolmiooikea6 = setInterval(keltakolmiooikea, 5600);
Set("violettiampujayl\u00E46", setInterval(violettiampujayl\u00E4, 7200));
violettiampujaala6 = setInterval(violettiampujaala, 7900);
}
function testi6() {
testaa6 = setInterval(stage7testi, 1);
}
function stage7testi() {
if ((tapot >= 200) && (tapot2 >= 3)) {
clearInterval(testaa6);
clearInterval(oranssikolmioyl\u00E46);
clearInterval(keltakolmioala6);
clearInterval(keltakolmiovasen6);
clearInterval(keltakolmiooikea6);
clearInterval(violettiampujayl\u00E46);
clearInterval(violettiampujaala6);
_root.tausta.play();
_root.tapakaikki = true;
stage7();
testi7();
}
}
function stage7() {
_root.stage = 7;
Set("violettiampujayl\u00E4\u00E47", setInterval(violettiampujayl\u00E4, 9600));
keltakolmioala7 = setInterval(keltakolmioala, 11000);
keltakolmiovasen7 = setInterval(keltakolmiovasen, 5200);
keltakolmiooikea7 = setInterval(keltakolmiooikea, 7600);
punakolmiovasen7 = setInterval(punakolmiovasen, 12800);
punakolmiooikea7 = setInterval(punakolmiooikea, 8900);
Set("violettiampujayl\u00E47", setInterval(violettiampujayl\u00E4, 7200));
violettiampujaala7 = setInterval(violettiampujaala, 8500);
}
function testi7() {
testaa7 = setInterval(stage8testi, 1);
}
function stage8testi() {
if (tapot >= 280) {
clearInterval(testaa7);
clearInterval(violettiampujayl\u00E4\u00E47);
clearInterval(keltakolmioala7);
clearInterval(keltakolmiovasen7);
clearInterval(keltakolmiooikea7);
clearInterval(punakolmiovasen7);
clearInterval(punakolmiooikea7);
clearInterval(violettiampujayl\u00E47);
clearInterval(violettiampujaala7);
_root.tausta.play();
_root.tapakaikki = true;
stage8();
testi8();
}
}
function stage8() {
_root.stage = 8;
stage8hit = true;
keltakolmioala8 = setInterval(keltakolmioala, 6900);
keltakolmiovasen8 = setInterval(keltakolmiovasen, 4400);
keltakolmiooikea8 = setInterval(keltakolmiooikea, 5900);
Set("keltakolmioyl\u00E48", setInterval(keltakolmioyl\u00E4, 8800));
punakolmiovasen8 = setInterval(punakolmiovasen, 12800);
punakolmiooikea8 = setInterval(punakolmiooikea, 9100);
Set("oranssikolmioyl\u00E48", setInterval(oranssikolmioyl\u00E4, 7900));
oranssikolmioala8 = setInterval(oranssikolmioala, 6300);
}
function testi8() {
testaa8 = setInterval(stage9testi, 1);
}
function stage9testi() {
if (tapot >= 360) {
clearInterval(testaa8);
clearInterval(keltakolmioyl\u00E48);
clearInterval(keltakolmioala8);
clearInterval(keltakolmiovasen8);
clearInterval(keltakolmiooikea8);
clearInterval(punakolmiovasen8);
clearInterval(punakolmiooikea8);
clearInterval(oranssikolmioyl\u00E48);
clearInterval(oranssikolmioala8);
_root.tausta.play();
_root.tapakaikki = true;
stage9();
testi9();
}
}
function stage9() {
_root.stage = 9;
stage8hit = true;
Set("oranssikolmioyl\u00E49", setInterval(oranssikolmioyl\u00E4, 7300));
keltakolmioala9 = setInterval(keltakolmioala, 8100);
keltakolmiovasen9 = setInterval(keltakolmiovasen, 6200);
keltakolmiooikea9 = setInterval(keltakolmiooikea, 5600);
Set("violettiampujayl\u00E49", setInterval(violettiampujayl\u00E4, 7200));
violettiampujaala9 = setInterval(violettiampujaala, 7900);
}
function testi9() {
testaa9 = setInterval(stage10testi, 1);
}
function stage10testi() {
if ((tapot >= 420) && (tapot2 >= 4)) {
stage8hit = false;
clearInterval(testaa9);
clearInterval(keltakolmioala9);
clearInterval(keltakolmiovasen9);
clearInterval(keltakolmiooikea9);
clearInterval(violettiampujayl\u00E49);
clearInterval(violettiampujaala9);
clearInterval(oranssikolmioyl\u00E49);
_root.tausta.play();
_root.tapakaikki = true;
testi10();
}
}
function testi10() {
_root.stage = 10;
testaa10 = setInterval(stage11testi, 1);
}
function stage11testi() {
if ((tapot >= 420) && (tapot2 >= 7)) {
_root.loppu.gotoAndStop(2);
clearInterval(testaa10);
}
}
function clearall() {
clearInterval(stage1alkaatesti);
clearInterval(testaa1);
clearInterval(oranssikolmioyl\u00E41);
clearInterval(keltakolmioala1);
clearInterval(keltakolmiovasen1);
clearInterval(keltakolmiooikea1);
clearInterval(testaa2);
clearInterval(oranssikolmiooikea2);
clearInterval(oranssikolmiovasen2);
clearInterval(violettiampujayl\u00E42);
clearInterval(violettiampujaala2);
clearInterval(testaa3);
clearInterval(violettiampujaoikea3);
clearInterval(violettiampujavasen3);
clearInterval(violettiampujayl\u00E43);
clearInterval(violettiampujaala3);
clearInterval(testaa4);
clearInterval(oranssikolmioyl\u00E44);
clearInterval(keltakolmioala4);
clearInterval(keltakolmiovasen4);
clearInterval(keltakolmiooikea4);
clearInterval(violettiampujayl\u00E44);
clearInterval(violettiampujaala4);
clearInterval(testaa5);
clearInterval(testaa6);
clearInterval(oranssikolmioyl\u00E46);
clearInterval(keltakolmioala6);
clearInterval(keltakolmiovasen6);
clearInterval(keltakolmiooikea6);
clearInterval(violettiampujayl\u00E46);
clearInterval(violettiampujaala6);
clearInterval(testaa7);
clearInterval(violettiampujayl\u00E4\u00E47);
clearInterval(keltakolmioala7);
clearInterval(keltakolmiovasen7);
clearInterval(keltakolmiooikea7);
clearInterval(punakolmiovasen7);
clearInterval(punakolmiooikea7);
clearInterval(violettiampujayl\u00E47);
clearInterval(violettiampujaala7);
clearInterval(testaa8);
clearInterval(keltakolmioyl\u00E48);
clearInterval(keltakolmioala8);
clearInterval(keltakolmiovasen8);
clearInterval(keltakolmiooikea8);
clearInterval(punakolmiovasen8);
clearInterval(punakolmiooikea8);
clearInterval(oranssikolmioyl\u00E48);
clearInterval(oranssikolmioala8);
clearInterval(testaa9);
clearInterval(keltakolmioala9);
clearInterval(keltakolmiovasen9);
clearInterval(keltakolmiooikea9);
clearInterval(violettiampujayl\u00E49);
clearInterval(violettiampujaala9);
clearInterval(oranssikolmioyl\u00E49);
clearInterval(buffit);
}
stop();
ampuu = false;
_root.tulos.tulos = 0;
Set("voil\u00E4hett\u00E4\u00E4", true);
submitscore = 0;
kuolemat = 1;
final = 0;
stage = 1;
death = "none";
score = 0;
tapot = 0;
tapot2 = 0;
panokset = 0;
stage1alkaa = false;
tapakaikki = false;
tapakaikki2 = false;
violettiampuu = false;
voiliikkua = true;
stage8hit = false;
shotgun = false;
Set("minishieldp\u00E4\u00E4ll\u00E4", false);
aa = 0;
buffiinterval();
Mouse.hide();
startDrag ("raksi", true);
t\u00E4ht\u00E4ys();
ii = 0;
oo = 0;
pp = 0;
uu = 0;
bb = 0;
b = 0;
n = 0;
i = 0;
o = 0;
p = 0;
u = 0;
j = 0;
h = 0;
g = 0;
f = 0;
c = 0;
m = 0;
b = 0;
n = 0;
testi1();
Instance of Symbol 2 MovieClip [bullet_master] "bullet_master" in Frame 4
onClipEvent (enterFrame) {
if (_name != "bullet_master") {
_root.ampuu = true;
this._x = this._x - bx;
this._y = this._y - by;
if (this._x > 550) {
_root.ampuu = false;
this.removeMovieClip();
}
if (this._y > 435) {
_root.ampuu = false;
this.removeMovieClip();
}
if (this._x < 0) {
_root.ampuu = false;
this.removeMovieClip();
}
if (this._y < 0) {
_root.ampuu = false;
this.removeMovieClip();
}
}
}
Instance of Symbol 100 MovieClip "panos_master" in Frame 4
onClipEvent (enterFrame) {
if (_name != "panos_master") {
if (this.hitTest(_root.testi.player)) {
_root.testi.player.play();
_root.testi.tykki.play();
this.removeMovieClip();
}
if (_root["minishieldp\u00E4\u00E4ll\u00E4"] == true) {
if (this.hitTest(_root.testi.minishield)) {
_root.testi.minishield.play();
this.removeMovieClip();
}
}
this._x = this._x - bx;
this._y = this._y - by;
if (this._x > 550) {
this.removeMovieClip();
}
if (this._y > 435) {
this.removeMovieClip();
}
if (this._x < 0) {
this.removeMovieClip();
}
if (this._y < 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 102 MovieClip "panos_master2" in Frame 4
onClipEvent (enterFrame) {
if (_name != "panos_master2") {
if (this.hitTest(_root.testi.player)) {
_root.testi.player.play();
_root.testi.tykki.play();
this.removeMovieClip();
}
if (_root["minishieldp\u00E4\u00E4ll\u00E4"] == true) {
if (this.hitTest(_root.testi.minishield)) {
_root.testi.minishield.play();
this.removeMovieClip();
}
}
this._x = this._x - bx;
this._y = this._y - by;
if (this._x > 550) {
this.removeMovieClip();
}
if (this._y > 435) {
this.removeMovieClip();
}
if (this._x < 0) {
this.removeMovieClip();
}
if (this._y < 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 77 MovieClip "alaseinä" in Frame 4
onClipEvent (enterFrame) {
if (stage8hit == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.testi)) {
_root.testi.tykki._y = _root.testi.tykki._y - 0.1;
_root.testi.player._y = _root.testi.player._y - 0.1;
_root.testi.minishield._y = _root.testi.minishield._y - 0.1;
_root.testi.tykki.yspeed = -_root.testi.tykki.yspeed;
_root.testi.player.yspeed = -_root.testi.player.yspeed;
_root.testi.minishield.yspeed = -_root.testi.minishield.yspeed;
}
}
Instance of Symbol 77 MovieClip "yläseinä" in Frame 4
onClipEvent (enterFrame) {
if (stage8hit == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.testi)) {
_root.testi.tykki._y = _root.testi.tykki._y + 0.1;
_root.testi.player._y = _root.testi.player._y + 0.1;
_root.testi.minishield._y = _root.testi.minishield._y + 0.1;
_root.testi.tykki.yspeed = -_root.testi.tykki.yspeed;
_root.testi.player.yspeed = -_root.testi.player.yspeed;
_root.testi.minishield.yspeed = -_root.testi.minishield.yspeed;
}
}
Instance of Symbol 77 MovieClip "oikeaseinä" in Frame 4
onClipEvent (enterFrame) {
if (stage8hit == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.testi)) {
_root.testi.tykki._x = _root.testi.tykki._x - 0.06;
_root.testi.player._x = _root.testi.player._x - 0.06;
_root.testi.minishield._x = _root.testi.minishield._x - 0.06;
_root.testi.tykki.xspeed = -_root.testi.tykki.xspeed;
_root.testi.player.xspeed = -_root.testi.player.xspeed;
_root.testi.minishield.xspeed = -_root.testi.minishield.xspeed;
}
}
Instance of Symbol 77 MovieClip "vasenseinä" in Frame 4
onClipEvent (enterFrame) {
if (stage8hit == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (this.hitTest(_root.testi)) {
_root.testi.tykki._x = _root.testi.tykki._x + 0.05;
_root.testi.player._x = _root.testi.player._x + 0.05;
_root.testi.minishield._x = _root.testi.minishield._x + 0.05;
_root.testi.tykki.xspeed = -_root.testi.tykki.xspeed;
_root.testi.player.xspeed = -_root.testi.player.xspeed;
_root.testi.minishield.xspeed = -_root.testi.minishield.xspeed;
}
}
Instance of Symbol 160 MovieClip "buff" in Frame 4
onClipEvent (load) {
buffnumber = random(100) + 1;
}
onClipEvent (enterFrame) {
this._rotation = this._rotation + 4;
if (this.hitTest(_root.testi.player)) {
if ((buffnumber >= 1) && (buffnumber <= 25)) {
_root.testi.tykki.bulletpause = 2.5;
_root.bar.gotoAndPlay(2);
_root.buffteksti.gotoAndPlay(2);
}
if ((buffnumber >= 26) && (buffnumber <= 50)) {
_root.testi.tykki.bulletpause = 4;
_root.bar.gotoAndPlay(2);
_root.buffteksti.gotoAndPlay(81);
_root.shotgun = true;
}
if ((buffnumber >= 51) && (buffnumber <= 65)) {
_root.buffteksti.gotoAndPlay(61);
_root.testi.player.prevFrame();
_root.testi.tykki.prevFrame();
}
if ((buffnumber >= 86) && (buffnumber <= 100)) {
_root.tapakaikki = true;
_root.buffteksti.gotoAndPlay(41);
}
if ((buffnumber >= 66) && (buffnumber <= 85)) {
_root.buffteksti.gotoAndPlay(101);
_root.testi.minishield.gotoAndStop(2);
}
this.removeMovieClip();
}
}
Instance of Symbol 171 MovieClip "panos_master3" in Frame 4
onClipEvent (enterFrame) {
if (_name != "panos_master3") {
if (this.hitTest(_root.testi.player)) {
_root.testi.player.play();
_root.testi.tykki.play();
this.removeMovieClip();
}
if (_root["minishieldp\u00E4\u00E4ll\u00E4"] == true) {
if (this.hitTest(_root.testi.minishield)) {
_root.testi.minishield.play();
this.removeMovieClip();
}
}
this._x = this._x - bx;
this._y = this._y - by;
if (this._x > 550) {
this.removeMovieClip();
}
if (this._y > 435) {
this.removeMovieClip();
}
if (this._x < 0) {
this.removeMovieClip();
}
if (this._y < 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 192 MovieClip "submit" in Frame 4
onClipEvent (enterFrame) {
if (_root["voil\u00E4hett\u00E4\u00E4"] == true) {
this.onRelease = function () {
_root.nimiteksti.loadVariables("nimilista.php", "POST");
_root.tulos.loadVariables("nimilista.php", "POST");
this.gotoAndStop(3);
_root["voil\u00E4hett\u00E4\u00E4"] = false;
_root.tausta.cont.gotoAndStop(19);
};
}
}
Symbol 10 MovieClip Frame 1
stop();
Symbol 10 MovieClip Frame 15
stop();
Instance of Symbol 10 MovieClip in Symbol 11 MovieClip Frame 1
onClipEvent (enterFrame) {
this.onRollOver = function () {
this.play();
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
}
on (release) {
_root.gotoAndStop(4);
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 2
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 2
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
stop();
Instance of Symbol 20 MovieClip "med" in Symbol 32 MovieClip Frame 17
onClipEvent (load) {
this.gotoAndStop(2);
}
on (release) {
_quality = "MEDIUM";
this.gotoAndStop(2);
_root.menu.low.gotoAndStop(1);
_root.menu.high.gotoAndStop(1);
}
Instance of Symbol 23 MovieClip "high" in Symbol 32 MovieClip Frame 17
on (release) {
_quality = "HIGH";
this.gotoAndStop(2);
_root.menu.med.gotoAndStop(1);
_root.menu.low.gotoAndStop(1);
}
Instance of Symbol 26 MovieClip "low" in Symbol 32 MovieClip Frame 17
on (release) {
_quality = "LOW";
this.gotoAndStop(2);
_root.menu.med.gotoAndStop(1);
_root.menu.high.gotoAndStop(1);
}
Instance of Symbol 28 MovieClip in Symbol 32 MovieClip Frame 17
onClipEvent (enterFrame) {
this.onRelease = function () {
getURL ("http://www.arty-creations.com/", "_blank");
};
}
Instance of Symbol 31 MovieClip in Symbol 32 MovieClip Frame 17
onClipEvent (enterFrame) {
this.onRelease = function () {
getURL ("http://www.arty-creations.com/elista_naytto.php", "_blank");
};
}
Symbol 32 MovieClip Frame 40
stop();
Symbol 41 MovieClip Frame 71
this.removeMovieClip();
Symbol 48 MovieClip Frame 71
this.removeMovieClip();
Symbol 52 MovieClip Frame 71
this.removeMovieClip();
Symbol 56 MovieClip Frame 71
this.removeMovieClip();
Symbol 60 MovieClip Frame 71
this.removeMovieClip();
Symbol 64 MovieClip Frame 71
this.removeMovieClip();
Symbol 68 MovieClip Frame 71
this.removeMovieClip();
Symbol 72 MovieClip Frame 71
this.removeMovieClip();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
stop();
Symbol 83 MovieClip Frame 71
this.removeMovieClip();
Symbol 92 MovieClip Frame 71
this.removeMovieClip();
Symbol 97 MovieClip Frame 1
_root.submit.gotoAndStop(2);
_root.nimiteksti.gotoAndStop(2);
Instance of Symbol 31 MovieClip in Symbol 97 MovieClip Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
getURL ("http://www.arty-creations.com/elista_naytto.php", "_blank");
};
}
Instance of Symbol 94 MovieClip in Symbol 97 MovieClip Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.gotoAndStop(3);
};
}
Symbol 97 MovieClip Frame 17
stop();
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 17
on (release) {
_root.submit.gotoAndStop(1);
_root.nimiteksti.gotoAndStop(1);
if (_root.tapot < 25) {
_root.buffiinterval();
_root.testi1();
_root.tapot = 0;
_root.voiliikkua = true;
_root.testi.tykki.gotoAndStop(1);
_root.testi.player.gotoAndStop(1);
_root.tausta.gotoAndPlay(1);
this.gotoAndStop(18);
}
if ((_root.tapot < 55) && (_root.tapot >= 25)) {
_root.buffiinterval();
_root.testi2();
_root.stage2();
_root.tapot = 25;
_root.voiliikkua = true;
_root.testi.tykki.gotoAndStop(1);
_root.testi.player.gotoAndStop(1);
_root.tausta.gotoAndPlay(78);
this.gotoAndStop(18);
}
if ((_root.tapot < 90) && (_root.tapot >= 55)) {
_root.buffiinterval();
_root.testi3();
_root.stage3();
_root.tapot = 55;
_root.voiliikkua = true;
_root.testi.tykki.gotoAndStop(1);
_root.testi.player.gotoAndStop(1);
_root.tausta.gotoAndPlay(180);
this.gotoAndStop(18);
}
if ((_root.tapot < 140) && (_root.tapot >= 90)) {
_root.buffiinterval();
_root.testi4();
_root.stage4();
_root.tapot = 90;
_root.voiliikkua = true;
_root.testi.tykki.gotoAndStop(1);
_root.testi.player.gotoAndStop(1);
_root.tausta.gotoAndPlay(282);
this.gotoAndStop(18);
}
if ((_root.tapot2 < 2) && (_root.tapot >= 140)) {
_root.buffiinterval();
_root.testi5();
_root.tapot = 140;
_root.tapot2 = 0;
_root.voiliikkua = true;
_root.testi.tykki.gotoAndStop(1);
_root.testi.player.gotoAndStop(1);
_root.tausta.gotoAndPlay(384);
this.gotoAndStop(18);
}
if ((((_root.tapot < 200) && (_root.tapot >= 140)) && (_root.tapot2 < 4)) && (_root.tapot2 > 1)) {
_root.buffiinterval();
_root.testi6();
_root.stage6();
_root.tapot = 140;
_root.tapot2 = 2;
_root.voiliikkua = true;
_root.testi.tykki.gotoAndStop(1);
_root.testi.player.gotoAndStop(1);
_root.tausta.gotoAndPlay(486);
this.gotoAndStop(18);
}
if (((_root.tapot < 280) && (_root.tapot >= 200)) && (_root.tapot2 == 3)) {
_root.buffiinterval();
_root.testi7();
_root.stage7();
_root.tapot = 200;
_root.tapot2 = 3;
_root.voiliikkua = true;
_root.testi.tykki.gotoAndStop(1);
_root.testi.player.gotoAndStop(1);
_root.tausta.gotoAndPlay(588);
this.gotoAndStop(18);
}
if (((_root.tapot < 360) && (_root.tapot >= 280)) && (_root.tapot2 == 3)) {
_root.buffiinterval();
_root.testi8();
_root.stage8();
_root.tapot = 280;
_root.tapot2 = 3;
_root.voiliikkua = true;
_root.testi.tykki.gotoAndStop(1);
_root.testi.player.gotoAndStop(1);
_root.tausta.gotoAndPlay(690);
this.gotoAndStop(18);
}
if ((_root.tapot < 420) && (_root.tapot >= 360)) {
_root.buffiinterval();
_root.testi9();
_root.stage9();
_root.tapot = 360;
_root.tapot2 = 3;
_root.voiliikkua = true;
_root.testi.tykki.gotoAndStop(1);
_root.testi.player.gotoAndStop(1);
_root.tausta.gotoAndPlay(792);
this.gotoAndStop(18);
}
if ((_root.tapot2 >= 4) && (_root.tapot >= 420)) {
_root.buffiinterval();
_root.testi10();
_root.tapot = 420;
_root.tapot2 = 4;
_root.voiliikkua = true;
_root.testi.tykki.gotoAndStop(1);
_root.testi.player.gotoAndStop(1);
_root.tausta.gotoAndPlay(911);
this.gotoAndStop(18);
}
}
Symbol 97 MovieClip Frame 18
stop();
Symbol 97 MovieClip Frame 19
stop();
Instance of Symbol 31 MovieClip in Symbol 97 MovieClip Frame 19
onClipEvent (enterFrame) {
this.onRelease = function () {
getURL ("http://www.arty-creations.com/elista_naytto.php", "_blank");
};
}
Instance of Symbol 94 MovieClip in Symbol 97 MovieClip Frame 19
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.gotoAndStop(3);
};
}
Symbol 98 MovieClip Frame 5
_root.stage1alkaa = true;
Symbol 98 MovieClip Frame 77
stop();
Symbol 98 MovieClip Frame 79
_root.tapakaikki = false;
Symbol 98 MovieClip Frame 179
stop();
Symbol 98 MovieClip Frame 181
_root.tapakaikki = false;
Symbol 98 MovieClip Frame 281
stop();
Symbol 98 MovieClip Frame 283
_root.tapakaikki = false;
Symbol 98 MovieClip Frame 383
stop();
Symbol 98 MovieClip Frame 385
_root.tapakaikki = false;
Symbol 98 MovieClip Frame 447
_root.boss1();
_root.boss2();
Symbol 98 MovieClip Frame 485
stop();
Symbol 98 MovieClip Frame 487
_root.tapakaikki = false;
Symbol 98 MovieClip Frame 549
_root.boss1();
Symbol 98 MovieClip Frame 587
stop();
Symbol 98 MovieClip Frame 589
_root.tapakaikki = false;
Symbol 98 MovieClip Frame 689
stop();
Symbol 98 MovieClip Frame 691
_root.tapakaikki = false;
Instance of Symbol 77 MovieClip in Symbol 98 MovieClip Frame 785
onClipEvent (enterFrame) {
if (this.hitTest(_root.testi)) {
_root.testi.tykki._y = _root.testi.tykki._y - 0.1;
_root.testi.player._y = _root.testi.player._y - 0.1;
_root.testi.minishield._y = _root.testi.minishield._y - 0.1;
_root.testi.tykki.yspeed = -_root.testi.tykki.yspeed;
_root.testi.player.yspeed = -_root.testi.player.yspeed;
_root.testi.minishield.yspeed = -_root.testi.minishield.yspeed;
_root.testi.tykki.play();
_root.testi.player.play();
}
}
Instance of Symbol 77 MovieClip in Symbol 98 MovieClip Frame 785
onClipEvent (enterFrame) {
if (this.hitTest(_root.testi)) {
_root.testi.tykki._y = _root.testi.tykki._y + 0.1;
_root.testi.player._y = _root.testi.player._y + 0.1;
_root.testi.minishield._y = _root.testi.minishield._y + 0.1;
_root.testi.tykki.yspeed = -_root.testi.tykki.yspeed;
_root.testi.player.yspeed = -_root.testi.player.yspeed;
_root.testi.minishield.yspeed = -_root.testi.minishield.yspeed;
_root.testi.tykki.play();
_root.testi.player.play();
}
}
Instance of Symbol 77 MovieClip in Symbol 98 MovieClip Frame 785
onClipEvent (enterFrame) {
if (this.hitTest(_root.testi)) {
_root.testi.tykki._x = _root.testi.tykki._x - 0.06;
_root.testi.player._x = _root.testi.player._x - 0.06;
_root.testi.minishield._x = _root.testi.minishield._x - 0.06;
_root.testi.tykki.xspeed = -_root.testi.tykki.xspeed;
_root.testi.player.xspeed = -_root.testi.player.xspeed;
_root.testi.minishield.xspeed = -_root.testi.minishield.xspeed;
_root.testi.tykki.play();
_root.testi.player.play();
}
}
Instance of Symbol 77 MovieClip in Symbol 98 MovieClip Frame 785
onClipEvent (enterFrame) {
if (this.hitTest(_root.testi)) {
_root.testi.tykki._x = _root.testi.tykki._x + 0.05;
_root.testi.player._x = _root.testi.player._x + 0.05;
_root.testi.minishield._x = _root.testi.minishield._x + 0.05;
_root.testi.tykki.xspeed = -_root.testi.tykki.xspeed;
_root.testi.player.xspeed = -_root.testi.player.xspeed;
_root.testi.minishield.xspeed = -_root.testi.minishield.xspeed;
_root.testi.tykki.play();
_root.testi.player.play();
}
}
Symbol 98 MovieClip Frame 791
stop();
Symbol 98 MovieClip Frame 793
_root.tapakaikki = false;
Symbol 98 MovieClip Frame 817
_root.testi.tykki.gotoAndStop(1);
_root.testi.player.gotoAndStop(1);
_root.buffteksti.gotoAndPlay(61);
Symbol 98 MovieClip Frame 847
_root.testi.minishield.gotoAndStop(2);
_root.buffteksti.gotoAndPlay(101);
Symbol 98 MovieClip Frame 904
_root.boss1();
Instance of Symbol 77 MovieClip in Symbol 98 MovieClip Frame 904
onClipEvent (enterFrame) {
if (this.hitTest(_root.testi)) {
_root.testi.tykki._y = _root.testi.tykki._y - 0.1;
_root.testi.player._y = _root.testi.player._y - 0.1;
_root.testi.minishield._y = _root.testi.minishield._y - 0.1;
_root.testi.tykki.yspeed = -_root.testi.tykki.yspeed;
_root.testi.player.yspeed = -_root.testi.player.yspeed;
_root.testi.minishield.yspeed = -_root.testi.minishield.yspeed;
_root.testi.tykki.play();
_root.testi.player.play();
}
}
Instance of Symbol 77 MovieClip in Symbol 98 MovieClip Frame 904
onClipEvent (enterFrame) {
if (this.hitTest(_root.testi)) {
_root.testi.tykki._y = _root.testi.tykki._y + 0.1;
_root.testi.player._y = _root.testi.player._y + 0.1;
_root.testi.minishield._y = _root.testi.minishield._y + 0.1;
_root.testi.tykki.yspeed = -_root.testi.tykki.yspeed;
_root.testi.player.yspeed = -_root.testi.player.yspeed;
_root.testi.minishield.yspeed = -_root.testi.minishield.yspeed;
_root.testi.tykki.play();
_root.testi.player.play();
}
}
Instance of Symbol 77 MovieClip in Symbol 98 MovieClip Frame 904
onClipEvent (enterFrame) {
if (this.hitTest(_root.testi)) {
_root.testi.tykki._x = _root.testi.tykki._x - 0.06;
_root.testi.player._x = _root.testi.player._x - 0.06;
_root.testi.minishield._x = _root.testi.minishield._x - 0.06;
_root.testi.tykki.xspeed = -_root.testi.tykki.xspeed;
_root.testi.player.xspeed = -_root.testi.player.xspeed;
_root.testi.minishield.xspeed = -_root.testi.minishield.xspeed;
_root.testi.tykki.play();
_root.testi.player.play();
}
}
Instance of Symbol 77 MovieClip in Symbol 98 MovieClip Frame 904
onClipEvent (enterFrame) {
if (this.hitTest(_root.testi)) {
_root.testi.tykki._x = _root.testi.tykki._x + 0.05;
_root.testi.player._x = _root.testi.player._x + 0.05;
_root.testi.minishield._x = _root.testi.minishield._x + 0.05;
_root.testi.tykki.xspeed = -_root.testi.tykki.xspeed;
_root.testi.player.xspeed = -_root.testi.player.xspeed;
_root.testi.minishield.xspeed = -_root.testi.minishield.xspeed;
_root.testi.tykki.play();
_root.testi.player.play();
}
}
Symbol 98 MovieClip Frame 910
stop();
Symbol 98 MovieClip Frame 912
_root.tapakaikki = false;
Symbol 98 MovieClip Frame 916
Symbol 98 MovieClip Frame 936
_root.testi.tykki.gotoAndStop(1);
_root.testi.player.gotoAndStop(1);
_root.buffteksti.gotoAndPlay(61);
Symbol 98 MovieClip Frame 965
_root.testi.minishield.gotoAndStop(2);
_root.buffteksti.gotoAndPlay(101);
Symbol 98 MovieClip Frame 980
_root.boss1();
_root.boss2();
_root.boss3();
Symbol 98 MovieClip Frame 1011
stop();
Symbol 98 MovieClip Frame 1013
_root.tapakaikki = false;
_root.tapakaikki2 = false;
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
stop();
Symbol 107 MovieClip Frame 3
stop();
Symbol 107 MovieClip Frame 4
stop();
Symbol 107 MovieClip Frame 5
stop();
Symbol 107 MovieClip Frame 6
_root.kuolemat = _root.kuolemat + 1;
_root.voiliikkua = false;
_root.tapakaikki = true;
_root.tapakaikki2 = true;
_root.shotgun = false;
_root.testi.tykki.bulletpause = 5;
_root.tausta.gotoAndPlay(1012);
_root.clearall();
_root.testi.minishield.gotoAndStop(1);
_root.testi.tykki.gotoAndStop(6);
this.gotoAndPlay(7);
Symbol 107 MovieClip Frame 26
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
stop();
Symbol 113 MovieClip Frame 3
stop();
Symbol 113 MovieClip Frame 4
stop();
Symbol 113 MovieClip Frame 5
stop();
Symbol 113 MovieClip Frame 6
stop();
Symbol 113 MovieClip Frame 7
stop();
Symbol 113 MovieClip Frame 8
stop();
Symbol 113 MovieClip Frame 9
stop();
Symbol 113 MovieClip Frame 10
stop();
Symbol 117 MovieClip Frame 1
_root["minishieldp\u00E4\u00E4ll\u00E4"] = false;
stop();
Symbol 117 MovieClip Frame 2
_root["minishieldp\u00E4\u00E4ll\u00E4"] = true;
stop();
Symbol 117 MovieClip Frame 3
_root["minishieldp\u00E4\u00E4ll\u00E4"] = true;
stop();
Symbol 117 MovieClip Frame 4
_root["minishieldp\u00E4\u00E4ll\u00E4"] = true;
stop();
Symbol 117 MovieClip Frame 5
_root["minishieldp\u00E4\u00E4ll\u00E4"] = false;
this.gotoAndStop(1);
Symbol 118 MovieClip Frame 1
stop();
Instance of Symbol 107 MovieClip "player" in Symbol 118 MovieClip Frame 1
onClipEvent (load) {
keydown = 40;
keyleft = 37;
keyup = 38;
keyright = 39;
power = 0.2;
yspeed = 0;
xspeed = 0;
friction = 0.95;
rightedge = 550;
}
onClipEvent (enterFrame) {
_root.final = _root.score / _root.kuolemat;
_root.submitscore = _root.final * _root.stage;
_root.tulos.tulos = _root.final * _root.stage;
if (_root.kuolemat == 1) {
_root.death = "none";
} else {
_root.death = "score/" + _root.kuolemat;
}
if (_root.voiliikkua == true) {
if (Key.isDown(keyleft)) {
xspeed = xspeed - power;
}
if (Key.isDown(keyright)) {
xspeed = xspeed + power;
}
if (Key.isDown(keyup)) {
yspeed = yspeed - power;
}
if (Key.isDown(keydown)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
_y = (_y + yspeed);
_x = (_x + xspeed);
}
}
Instance of Symbol 113 MovieClip "tykki" in Symbol 118 MovieClip Frame 1
onClipEvent (load) {
maxbullets = 18;
bullets = 0;
bulletpause = 5;
Pause = 0;
}
onClipEvent (enterFrame) {
if (_root.voiliikkua == true) {
if (Key.isDown(1)) {
shoot = true;
} else if (!Key.isDown(1)) {
shoot = false;
}
if (Pause >= 0) {
Pause--;
}
if ((Pause < 0) && (shoot == true)) {
Pause = bulletpause;
bullets++;
if (bullets > maxbullets) {
bullets = 0;
}
duplicateMovieClip (_root.bullet_master, "bullet" + bullets, bullets + 50);
_root["bullet" + bullets]._x = _x + 268.5;
_root["bullet" + bullets]._y = _y + 207;
_root["bullet" + bullets]._rotation = _rotation;
_root["bullet" + bullets].bx = 8 * Math.cos(((((this._rotation + random(4)) - random(8)) + 90) * 3.142) / 180);
_root["bullet" + bullets].by = 8 * Math.sin(((((this._rotation + random(4)) - random(8)) + 90) * 3.142) / 180);
var gun_sound = new Sound();
gun_sound.attachSound("gun7");
gun_sound.start(0.1, 0);
if (_root.shotgun == true) {
bullets++;
duplicateMovieClip (_root.bullet_master, "bullet" + bullets, bullets + 50);
_root["bullet" + bullets]._x = _x + 268.5;
_root["bullet" + bullets]._y = _y + 207;
_root["bullet" + bullets]._rotation = _rotation - 30;
_root["bullet" + bullets].bx = 8 * Math.cos(((((this._rotation + random(4)) - random(8)) + 60) * 3.142) / 180);
_root["bullet" + bullets].by = 8 * Math.sin(((((this._rotation + random(4)) - random(8)) + 60) * 3.142) / 180);
var gun_sound = new Sound();
gun_sound.attachSound("gun7");
gun_sound.start(0.1, 0);
bullets++;
duplicateMovieClip (_root.bullet_master, "bullet" + bullets, bullets + 50);
_root["bullet" + bullets]._x = _x + 268.5;
_root["bullet" + bullets]._y = _y + 207;
_root["bullet" + bullets]._rotation = _rotation + 30;
_root["bullet" + bullets].bx = 8 * Math.cos(((((this._rotation + random(4)) - random(8)) + 120) * 3.142) / 180);
_root["bullet" + bullets].by = 8 * Math.sin(((((this._rotation + random(4)) - random(8)) + 120) * 3.142) / 180);
var gun_sound = new Sound();
gun_sound.attachSound("gun7");
gun_sound.start(0.1, 0);
}
}
}
}
onClipEvent (load) {
keydown = 40;
keyleft = 37;
keyup = 38;
keyright = 39;
power = 0.2;
yspeed = 0;
xspeed = 0;
friction = 0.95;
rightedge = 550;
}
onClipEvent (enterFrame) {
if (_root.voiliikkua == true) {
if (Key.isDown(keyleft)) {
xspeed = xspeed - power;
}
if (Key.isDown(keyright)) {
xspeed = xspeed + power;
}
if (Key.isDown(keyup)) {
yspeed = yspeed - power;
}
if (Key.isDown(keydown)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
_y = (_y + yspeed);
_x = (_x + xspeed);
}
}
Instance of Symbol 117 MovieClip "minishield" in Symbol 118 MovieClip Frame 1
onClipEvent (load) {
keydown = 40;
keyleft = 37;
keyup = 38;
keyright = 39;
power = 0.2;
yspeed = 0;
xspeed = 0;
friction = 0.95;
rightedge = 550;
}
onClipEvent (enterFrame) {
if (_root.voiliikkua == true) {
if (Key.isDown(keyleft)) {
xspeed = xspeed - power;
}
if (Key.isDown(keyright)) {
xspeed = xspeed + power;
}
if (Key.isDown(keyup)) {
yspeed = yspeed - power;
}
if (Key.isDown(keydown)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
_y = (_y + yspeed);
_x = (_x + xspeed);
}
}
Symbol 126 MovieClip Frame 1
elossa = true;
stop();
Symbol 126 MovieClip Frame 2
elossa = true;
stop();
Symbol 126 MovieClip Frame 3
elossa = true;
stop();
Symbol 126 MovieClip Frame 4
elossa = false;
if (_root.voiliikkua == true) {
_root.tapot = _root.tapot + 1;
_root.score = _root.score + 1000;
}
this.gotoAndPlay(5);
Symbol 126 MovieClip Frame 31
this.removeMovieClip();
Symbol 131 MovieClip Frame 1
elossa = true;
stop();
Symbol 131 MovieClip Frame 2
elossa = true;
stop();
Symbol 131 MovieClip Frame 3
elossa = true;
stop();
Symbol 131 MovieClip Frame 4
elossa = true;
stop();
Symbol 131 MovieClip Frame 5
elossa = true;
stop();
Symbol 131 MovieClip Frame 6
elossa = true;
stop();
Symbol 131 MovieClip Frame 7
elossa = false;
if (_root.voiliikkua == true) {
_root.tapot = _root.tapot + 1;
_root.score = _root.score + 2000;
}
this.gotoAndPlay(8);
Symbol 131 MovieClip Frame 34
this.removeMovieClip();
Symbol 136 MovieClip Frame 1
elossa = true;
stop();
Symbol 136 MovieClip Frame 2
elossa = true;
stop();
Symbol 136 MovieClip Frame 3
elossa = true;
stop();
Symbol 136 MovieClip Frame 4
elossa = true;
stop();
Symbol 136 MovieClip Frame 5
elossa = false;
if (_root.voiliikkua == true) {
_root.tapot = _root.tapot + 1;
_root.score = _root.score + 3000;
}
this.gotoAndPlay(6);
Symbol 136 MovieClip Frame 32
this.removeMovieClip();
Symbol 142 MovieClip Frame 1
elossa = true;
die = false;
stop();
Symbol 142 MovieClip Frame 2
elossa = true;
stop();
Symbol 142 MovieClip Frame 3
elossa = true;
stop();
Symbol 142 MovieClip Frame 4
elossa = true;
stop();
Symbol 142 MovieClip Frame 5
elossa = true;
stop();
Symbol 142 MovieClip Frame 6
elossa = true;
stop();
Symbol 142 MovieClip Frame 7
elossa = true;
stop();
Symbol 142 MovieClip Frame 8
elossa = true;
stop();
Symbol 142 MovieClip Frame 9
elossa = true;
stop();
Symbol 142 MovieClip Frame 10
elossa = true;
stop();
Symbol 142 MovieClip Frame 11
elossa = true;
stop();
Symbol 142 MovieClip Frame 12
elossa = true;
stop();
Symbol 142 MovieClip Frame 13
elossa = true;
stop();
Symbol 142 MovieClip Frame 14
elossa = true;
stop();
Symbol 142 MovieClip Frame 15
elossa = true;
stop();
Symbol 142 MovieClip Frame 16
elossa = true;
stop();
Symbol 142 MovieClip Frame 17
elossa = true;
stop();
Symbol 142 MovieClip Frame 18
elossa = true;
stop();
Symbol 142 MovieClip Frame 19
elossa = true;
stop();
Symbol 142 MovieClip Frame 20
elossa = true;
stop();
Symbol 142 MovieClip Frame 21
elossa = true;
stop();
Symbol 142 MovieClip Frame 22
elossa = true;
stop();
Symbol 142 MovieClip Frame 23
elossa = true;
stop();
Symbol 142 MovieClip Frame 24
elossa = true;
stop();
Symbol 142 MovieClip Frame 25
elossa = true;
stop();
Symbol 142 MovieClip Frame 26
elossa = true;
stop();
Symbol 142 MovieClip Frame 27
elossa = true;
stop();
Symbol 142 MovieClip Frame 28
elossa = true;
stop();
Symbol 142 MovieClip Frame 29
elossa = true;
stop();
Symbol 142 MovieClip Frame 30
elossa = true;
stop();
Symbol 142 MovieClip Frame 31
elossa = true;
stop();
Symbol 142 MovieClip Frame 32
elossa = true;
stop();
Symbol 142 MovieClip Frame 33
elossa = true;
stop();
Symbol 142 MovieClip Frame 34
elossa = true;
stop();
Symbol 142 MovieClip Frame 35
elossa = true;
stop();
Symbol 142 MovieClip Frame 36
elossa = true;
stop();
Symbol 142 MovieClip Frame 37
elossa = true;
stop();
Symbol 142 MovieClip Frame 38
elossa = true;
stop();
Symbol 142 MovieClip Frame 39
elossa = true;
stop();
Symbol 142 MovieClip Frame 40
elossa = true;
stop();
Symbol 142 MovieClip Frame 41
elossa = true;
stop();
Symbol 142 MovieClip Frame 42
elossa = true;
stop();
Symbol 142 MovieClip Frame 43
elossa = true;
stop();
Symbol 142 MovieClip Frame 44
elossa = true;
stop();
Symbol 142 MovieClip Frame 45
elossa = true;
stop();
Symbol 142 MovieClip Frame 46
elossa = true;
stop();
Symbol 142 MovieClip Frame 47
elossa = true;
stop();
Symbol 142 MovieClip Frame 48
elossa = true;
stop();
Symbol 142 MovieClip Frame 49
elossa = true;
stop();
Symbol 142 MovieClip Frame 50
elossa = false;
if (_root.voiliikkua == true) {
_root.tapot2 = _root.tapot2 + 1;
_root.score = _root.score + 50000;
}
this.gotoAndPlay(50);
Symbol 142 MovieClip Frame 70
die = true;
Symbol 151 MovieClip Frame 1
elossa = true;
stop();
Symbol 151 MovieClip Frame 2
elossa = true;
stop();
Symbol 151 MovieClip Frame 3
elossa = true;
stop();
Symbol 151 MovieClip Frame 4
elossa = true;
stop();
Symbol 151 MovieClip Frame 5
elossa = true;
stop();
Symbol 151 MovieClip Frame 6
elossa = true;
stop();
Symbol 151 MovieClip Frame 7
elossa = true;
stop();
Symbol 151 MovieClip Frame 8
elossa = true;
stop();
Symbol 151 MovieClip Frame 9
elossa = true;
stop();
Symbol 151 MovieClip Frame 10
elossa = true;
stop();
Symbol 151 MovieClip Frame 11
elossa = true;
stop();
Symbol 151 MovieClip Frame 12
elossa = true;
stop();
Symbol 151 MovieClip Frame 13
elossa = true;
stop();
Symbol 151 MovieClip Frame 14
elossa = true;
stop();
Symbol 151 MovieClip Frame 15
elossa = false;
if (_root.voiliikkua == true) {
_root.tapot = _root.tapot + 1;
_root.score = _root.score + 10000;
}
this.gotoAndPlay(16);
Symbol 151 MovieClip Frame 42
this.removeMovieClip();
Symbol 157 MovieClip Frame 1
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 2
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 3
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 4
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 5
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 6
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 7
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 8
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 9
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 10
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 11
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 12
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 13
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 14
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 15
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 16
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 17
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 18
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 19
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 20
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 21
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 22
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 23
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 24
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 25
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 26
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 27
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 28
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 29
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 30
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 31
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 32
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 33
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 34
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 35
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 36
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 37
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 38
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 39
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 40
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 41
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 42
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 43
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 44
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 45
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 46
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 47
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 48
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 49
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 50
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 51
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 52
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 53
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 54
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 55
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 56
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 57
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 58
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 59
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 60
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 61
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 62
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 63
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 64
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 65
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 66
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 67
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 68
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 69
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 70
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 71
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 72
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 73
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 74
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 75
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 76
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 77
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 78
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 79
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 80
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 81
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 82
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 83
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 84
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 85
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 86
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 87
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 88
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 89
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 90
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 91
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 92
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 93
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 94
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 95
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 96
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 97
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 98
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 99
elossa = true;
die = false;
stop();
Symbol 157 MovieClip Frame 100
elossa = false;
if (_root.voiliikkua == true) {
_root.tapot2 = _root.tapot2 + 1;
_root.score = _root.score + 100000;
}
this.gotoAndPlay(101);
Symbol 157 MovieClip Frame 120
die = true;
Instance of Symbol 136 MovieClip "violettiampuja" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
setInterval(this, "ampuminen", random(2000) + 2000);
}
onClipEvent (enterFrame) {
function ampuminen() {
if (elossa == true) {
_root.panokset++;
duplicateMovieClip (_root.panos_master, "panos" + _root.panokset, _root.panokset + 5000);
_root["panos" + _root.panokset]._x = this._x - 20;
_root["panos" + _root.panokset]._y = this._y;
_root["panos" + _root.panokset]._rotation = _rotation;
_root["panos" + _root.panokset].bx = 2 * Math.cos(((((this._rotation + random(3)) - random(6)) + 180) * 3.142) / 180);
_root["panos" + _root.panokset].by = 2 * Math.sin(((((this._rotation + random(3)) - random(6)) + 180) * 3.142) / 180);
var _local3 = new Sound();
_local3.attachSound("gun7");
_local3.start(0.1, 0);
}
}
}
Instance of Symbol 142 MovieClip "boss1" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
setInterval(this, "ampuminen", random(500) + 500);
}
onClipEvent (enterFrame) {
function ampuminen() {
if (elossa == true) {
_root.panokset++;
duplicateMovieClip (_root.panos_master2, "panoss" + _root.panokset, _root.panokset + 6000);
_root["panoss" + _root.panokset]._x = this._x - 20;
_root["panoss" + _root.panokset]._y = this._y;
_root["panoss" + _root.panokset]._rotation = _rotation;
_root["panoss" + _root.panokset].bx = 3 * Math.cos(((((this._rotation + random(3)) - random(6)) + 180) * 3.142) / 180);
_root["panoss" + _root.panokset].by = 3 * Math.sin(((((this._rotation + random(3)) - random(6)) + 180) * 3.142) / 180);
var _local3 = new Sound();
_local3.attachSound("gun7");
_local3.start(0.1, 0);
}
}
if (die == true) {
this.removeMovieClip();
}
}
Instance of Symbol 157 MovieClip "boss3" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
setInterval(this, "ampuminen", random(500) + 500);
}
onClipEvent (enterFrame) {
function ampuminen() {
if (elossa == true) {
_root.panokset++;
duplicateMovieClip (_root.panos_master3, "panosss" + _root.panokset, _root.panokset + 6000);
_root["panosss" + _root.panokset]._x = this._x - 20;
_root["panosss" + _root.panokset]._y = this._y;
_root["panosss" + _root.panokset]._rotation = _rotation;
_root["panosss" + _root.panokset].bx = 3 * Math.cos(((((this._rotation + random(3)) - random(6)) + 180) * 3.142) / 180);
_root["panosss" + _root.panokset].by = 3 * Math.sin(((((this._rotation + random(3)) - random(6)) + 180) * 3.142) / 180);
var _local3 = new Sound();
_local3.attachSound("gun7");
_local3.start(0.1, 0);
}
}
if (die == true) {
this.removeMovieClip();
}
}
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 40
this.gotoAndStop(1);
Symbol 166 MovieClip Frame 42
_root.tapakaikki = false;
Symbol 166 MovieClip Frame 60
this.gotoAndStop(1);
Symbol 166 MovieClip Frame 80
this.gotoAndStop(1);
Symbol 166 MovieClip Frame 100
this.gotoAndStop(1);
Symbol 166 MovieClip Frame 130
this.gotoAndStop(1);
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 351
_root.testi.tykki.bulletpause = 5;
_root.shotgun = false;
this.gotoAndStop(1);
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 2
_root.submit.gotoAndStop(2);
_root.nimiteksti.gotoAndStop(2);
stop();
Instance of Symbol 94 MovieClip in Symbol 185 MovieClip Frame 2
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.gotoAndStop(3);
};
}
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 2
stop();
Symbol 192 MovieClip Frame 3
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
stop();