Frame 92
function game() {
gotoAndStop (93);
}
function _game(f) {
gotoAndStop(f +92);
}
function instr() {
gotoAndStop (170);
}
function starting() {
gotoAndStop (92);
}
function win() {
gotoAndStop (92);
}
function hof(f) {
gotoAndStop(f +170);
}
stop();
Instance of Symbol 243 MovieClip in Frame 92
//component parameters
onClipEvent (initialize) {
label = "Play Game";
wide = 99;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = false;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.game();
}
Instance of Symbol 243 MovieClip in Frame 92
//component parameters
onClipEvent (initialize) {
label = "Instructions";
wide = 101;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = false;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.instr();
}
Instance of Symbol 275 MovieClip in Frame 92
//component parameters
onClipEvent (initialize) {
label = "GO";
wide = 75;
c1 = 0;
c2 = 153;
c3 = 0;
hc1 = 0;
hc2 = 200;
hc3 = 0;
baseMode = true;
widthMode = true;
rgb = 39168;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 51200;
}
on (press) {
getURL ("http://www.FlashGames247.com", "_blank");
}
Frame 93
menu.swapDepths(47);
hero.swapDepths(46);
gotoAndStop (94);
Frame 94
stop();
fabryki._visible = true;
chmurki._visible = true;
_root.menu._visible = true;
hero._visible = true;
trawka._visible = true;
sun._visible = true;
hero.swapDepths(46);
level = 1;
menu.level_txt.text = level;
live = 3;
wytrzyma = 3;
if (_root.scr < 1000) {
_root.scr = 0;
} else {
_root.scr = _root.ilePunktow;
}
menu.score_txt.text = scr;
muzyka1 = new Sound();
muzyka1.attachSound("level1");
muzyka1.setVolume(90);
muzyka1.start(0, 9999);
trawka.trawka1.duplicateMovieClip("trawka1_dub", 100);
trawka.trawka1_dub._x = trawka.trawka1._x + trawka.trawka1._width;
bgstartx = trawka._x;
bgSpeed = 5;
trawka.onEnterFrame = function () {
trawka._x = trawka._x - bgSpeed;
if (trawka._x <= (bgstartx - trawka.trawka1._width)) {
trawka._x = bgstartx - bgSpeed;
}
};
fabryki.fabryki1.duplicateMovieClip("fabryki1_dub", 100);
fabryki.fabryki1_dub._x = fabryki.fabryki1._x + fabryki.fabryki1._width;
bgstartx = fabryki._x;
bgSpeed1 = 1;
fabryki.onEnterFrame = function () {
fabryki._x = fabryki._x - bgSpeed1;
if (fabryki._x <= (bgstartx - fabryki.fabryki1._width)) {
fabryki._x = bgstartx - bgSpeed1;
}
};
chmurki.chmurki1.duplicateMovieClip("chmurki1_dub", 100);
chmurki.chmurki1_dub._x = chmurki.chmurki1._x + chmurki.chmurki1._width;
bgstartx = chmurki._x;
bgSpeed2 = 0.2;
chmurki.onEnterFrame = function () {
chmurki._x = chmurki._x - bgSpeed2;
if (chmurki._x <= (bgstartx - chmurki.chmurki1._width)) {
chmurki._x = bgstartx - bgSpeed2;
}
};
sun.onEnterFrame = function () {
this._x = this._x - 0.05;
};
Vpion = 5;
Vpoz = 6;
fireRate = 10;
repeatTime = 0;
firing = false;
costrzela = "laser1";
klawiatura = new Object();
klawiatura.onKeyDown = function () {
if (_root._currentframe >= 151) {
return(undefined);
}
if ((firing == false) && (Key.getCode() == 17)) {
firing = true;
repeatTime = 0;
}
};
klawiatura.onKeyUp = function () {
if (Key.getCode() == 17) {
firing = false;
}
};
Key.addListener(klawiatura);
hero.onEnterFrame = function () {
trace(live);
if (live <= 0) {
_root.weaponLayer.removeMovieClip();
_root.enemyLayer.removeMovieClip();
_root.projectileLayer.removeMovieClip();
_root.projectileLayerHero.removeMovieClip();
delete this.onEnterFrame;
delete trawka.onEnterFrame;
delete sun.onEnterFrame;
delete fabryki.onEnterFrame;
delete chmurki.onEnterFrame;
menu._visible = false;
muzyka1.stop();
delete this.onEnterFrame;
delete wyspa.onEnterFrame;
muzyka3.stop();
delete this.onEnterFrame;
delete wood1.onEnterFrame;
delete sun3.onEnterFrame;
delete mountain.onEnterFrame;
delete chmurki3_1.onEnterFrame;
muzyka2.stop();
delete this.onEnterFrame;
delete ny.onEnterFrame;
muzyka5.stop();
delete this.onEnterFrame;
delete szkielet_zachod.onEnterFrame;
muzyka4.stop();
pustynia._visible = false;
tlo_pustynia._visible = false;
gotoAndStop (162);
}
l = 0;
while (l < 46) {
var nm = ("enemy" + l);
if (this._currentframe == 1) {
if (this.hitTest(enemyLayer[nm])) {
this.gotoAndPlay(2);
enemyLayer[nm].gotoAndPlay(2);
scr = scr + 100;
menu.score_txt.text = scr;
menu.maska._xscale = menu.maska._xscale - 30;
if (menu.maska._xscale <= 0) {
this.gotoAndPlay(3);
menu.maska._xscale = 100;
live--;
costrzela = "laser1";
menu.maska_live._xscale = menu.maska_live._xscale + 20;
}
}
}
l++;
}
if (Key.isDown(38)) {
hero._y = hero._y - Vpion;
} else if (Key.isDown(40)) {
hero._y = hero._y + Vpion;
}
if (Key.isDown(37)) {
hero._x = hero._x - Vpoz;
} else if (Key.isDown(39)) {
hero._x = hero._x + Vpoz;
}
if (hero._x < 60) {
hero._x = 60;
}
if (hero._y < 76) {
hero._y = 76;
}
if (hero._y > 320) {
hero._y = 320;
}
if (hero._x > 525) {
hero._x = 525;
}
if (energyLayer.hitTest(hero)) {
_root.lev3.gotoAndPlay("energyUP");
energyLayer.onEnterFrame = function () {
energyLayer._xscale = energyLayer._xscale - 22;
energyLayer._yscale = energyLayer._yscale - 22;
UPUP = new Sound();
UPUP.attachSound("zoop");
UPUP.start();
if (energyLayer._xscale < 10) {
menu.maska._xscale = 100;
energyLayer.removeMovieClip();
}
};
}
if (weaponLayer.hitTest(hero)) {
weaponLayer.onEnterFrame = function () {
weaponLayer._xscale = weaponLayer._xscale - 25;
weaponLayer._yscale = weaponLayer._yscale - 25;
UPUP = new Sound();
UPUP.attachSound("zoop");
UPUP.start();
if (weaponLayer._xscale < 18) {
weaponLayer.removeMovieClip();
if (costrzela == "laser1") {
_root.lev1.gotoAndPlay("weaponUP");
costrzela = "laser1a";
} else if (costrzela == "laser1a") {
_root.lev1.gotoAndPlay("weaponUP");
costrzela = "laser2";
} else if (costrzela == "laser2") {
_root.lev1.gotoAndPlay("weaponUP");
costrzela = "bullet4";
} else if (costrzela == "bullet4") {
_root.lev1.gotoAndPlay("weaponUP");
costrzela = "bullet5";
} else if (costrzela == "bullet5") {
_root.lev1.gotoAndPlay("weaponUP");
costrzela = "super_bron";
}
}
};
}
if (firing && (repeatTime == 0)) {
bron = costrzela;
createProjectileHero(bron, this._x, this._y, 20, 0);
if ((costrzela == "laser1") || (costrzela == "laser1a")) {
type1 = new Sound();
type1.attachSound("fx_1");
type1.start();
} else if (costrzela == "laser2") {
type2 = new Sound(menu);
type2.attachSound("fx_2");
type2.setVolume(30);
type2.start();
} else if ((costrzela == "bullet4") || (costrzela == "bullet5")) {
type3 = new Sound();
type3.attachSound("fx_3");
type3.setVolume(100);
type3.start();
} else if (costrzela == "super_bron") {
type4 = new Sound();
type4.attachSound("fx_super_b");
type4.setVolume(80);
type4.start();
}
}
repeatTime++;
repeatTime = repeatTime % fireRate;
};
_root.createEmptyMovieClip("enemyLayer", 44);
_root.createEmptyMovieClip("projectileLayer", 42);
_root.createEmptyMovieClip("projectileLayerHero", 45);
enemyCount = 0;
ship_attack1 = function (type, ile) {
wytrzyma_ship = 2;
var zmianaX = 500;
var zmianaY = 120;
i = ile;
while (i > 0) {
zmianaX = zmianaX + 60;
zmianaY = zmianaY + 60;
enemyCount++;
enemyCount = enemyCount % 30;
var nm = ("enemy" + enemyCount);
enemyLayer.attachMovie(type, nm, enemyCount);
enemyLayer[nm]._y = zmianaY;
enemyLayer[nm]._x = zmianaX;
enemyLayer[nm].dx = 11;
enemyLayer[nm].onEnterFrame = function () {
if (this._x <= 250) {
this._dx = 0;
if ((this.f != true) && (this._currentframe == 1)) {
kierunekX = (Math.random() * -5) - 14;
kierunekY = (Math.random() * -6) + 2;
createProjectile("bullet3", this._x, this._y, kierunekX, kierunekY);
}
this.f = true;
} else {
this._x = this._x - this.dx;
}
if (this.f) {
this._x = this._x + 20;
}
if (this._x > 700) {
this.removeMovieClip();
}
};
i--;
}
};
ship_attack2 = function (type, y, ilosc, dol_czy_gora) {
wytrzyma_ship = 5;
var zmiana1 = 700;
j = ilosc;
while (j > 0) {
zmiana1 = zmiana1 + 60;
enemyCount++;
enemyCount = enemyCount % 20;
var nm = ("enemy" + enemyCount);
enemyLayer.attachMovie(type, nm, enemyCount);
enemyLayer[nm]._x = zmiana1;
enemyLayer[nm].yline = y;
enemyLayer[nm]._y = y;
enemyLayer[nm].dx = 8;
enemyLayer[nm].t = Math.random() * 5;
enemyLayer[nm].onEnterFrame = function () {
if (this._x < 200) {
this._y = this._y + dol_czy_gora;
this._x = this._x - 7;
} else {
this._y = this.yline + (Math.sin(this.t) * 22);
this._x = this._x - this.dx;
this.t = this.t + 0.5;
}
if ((this._y > 400) || (this._x < -10)) {
this.removeMovieClip();
}
};
j--;
}
};
ship_attack3 = function (type, y, ile, dol_czy_gora) {
wytrzyma_ship = 1;
var zmiana = 700;
i = ile;
while (i > 0) {
zmiana = zmiana + 60;
enemyCount++;
enemyCount = enemyCount % 25;
var nm = ("enemy" + enemyCount);
enemyLayer.attachMovie(type, nm, enemyCount);
enemyLayer[nm]._y = y;
enemyLayer[nm]._x = zmiana;
enemyLayer[nm].dx = 11;
enemyLayer[nm].onEnterFrame = function () {
this._x = this._x - this.dx;
if (this._x < 290) {
this._y = this._y + dol_czy_gora;
if ((this.f != true) && (this._currentframe == 1)) {
kierunekX = (Math.random() * -5) - 5;
kierunekY = (Math.random() * -6) + 4;
createProjectile("bullet1", this._x, this._y, kierunekX, kierunekY);
}
this.f = true;
if (this._y >= 300) {
this._x = this._x + 10;
}
}
if ((this._y > 400) || (this._x < -10)) {
this.removeMovieClip();
}
};
i--;
}
};
boss_attack1 = function (type, x, y, jaka_bron) {
wytrzyma = 18;
bossCount = 12;
bossCount++;
if (bossCount == 17) {
bossCount = 12;
}
spadaj = 0;
var nm = ("boss" + bossCount);
enemyLayer.attachMovie(type, nm, bossCount);
enemyLayer[nm]._y = y;
enemyLayer[nm]._x = x;
enemyLayer[nm].dy = 0;
enemyLayer[nm].dx = -8;
enemyLayer[nm].onEnterFrame = function () {
if (this._x <= 350) {
this.dx = 0;
if ((this.f != true) && (this._currentframe == 1)) {
kierunekX = (Math.random() * -5) - 14;
kierunekY = (Math.random() * -6) + 2;
createProjectile("bullet2", this._x, this._y + 20, kierunekX, kierunekY);
this.f = true;
spadaj++;
}
switch (this._y) {
case 150 :
this.dy = 2;
this.f = false;
break;
case 170 :
case 190 :
case 200 :
case 220 :
case 240 :
case 280 :
this.f = false;
break;
case 300 :
this.dy = -2;
this.f = false;
}
}
if (wytrzyma <= 0) {
addWeapon("weapon", jaka_bron, 600, 250, 5);
}
if (spadaj >= 15) {
this.dx = 5;
}
if ((this._x > 600) || (this._y < -100)) {
this.removeMovieClip();
}
this._y = this._y + this.dy;
this._x = this._x + this.dx;
};
};
boss_attack2 = function (type, x, y, jaka_bron) {
wytrzyma = 11;
bossCount = 0;
bossCount++;
if (bossCount == 11) {
bossCount = 0;
}
spadaj = 0;
var nm = ("boss" + bossCount);
enemyLayer.attachMovie(type, nm, bossCount);
enemyLayer[nm]._y = y;
enemyLayer[nm]._x = x;
enemyLayer[nm].dy = 0;
enemyLayer[nm].dx = -8;
enemyLayer[nm].onEnterFrame = function () {
if (this._x <= 350) {
this.dx = 0;
if ((this.f != true) && (this._currentframe == 1)) {
kierunekX = (Math.random() * -5) - 14;
kierunekY = (Math.random() * -6) + 2;
createProjectile("bullet1", this._x, this._y + 40, kierunekX, kierunekY);
createProjectile("bullet1", this._x, this._y - 28, kierunekX, kierunekY);
this.f = true;
spadaj++;
}
switch (this._y) {
case 150 :
this.dy = 2;
this.f = false;
break;
case 170 :
case 190 :
case 200 :
case 220 :
case 240 :
case 280 :
this.f = false;
break;
case 300 :
this.dy = -2;
this.f = false;
}
}
if (wytrzyma <= 0) {
addWeapon("weapon1", jaka_bron, 600, 200, 3);
}
if (spadaj >= 15) {
this.dx = 5;
}
if ((this._x > 600) || (this._y < -100)) {
this.removeMovieClip();
}
this._y = this._y + this.dy;
this._x = this._x + this.dx;
};
};
boss_attack_energy = function (type, x, y, jaka_bron) {
wytrzyma = 11;
bossCount = 17;
bossCount++;
if (bossCount == 20) {
bossCount = 17;
}
spadaj = 0;
var nm = ("boss" + bossCount);
enemyLayer.attachMovie(type, nm, bossCount);
enemyLayer[nm]._y = y;
enemyLayer[nm]._x = x;
enemyLayer[nm].dy = 0;
enemyLayer[nm].dx = -8;
enemyLayer[nm].onEnterFrame = function () {
if (this._x <= 350) {
this.dx = 0;
if ((this.f != true) && (this._currentframe == 1)) {
kierunekX = (Math.random() * -5) - 14;
kierunekY = (Math.random() * -6) + 2;
createProjectile("bullet1", this._x, this._y + 40, kierunekX, kierunekY);
createProjectile("bullet1", this._x, this._y - 28, kierunekX, kierunekY);
this.f = true;
spadaj++;
}
switch (this._y) {
case 150 :
this.dy = 2;
this.f = false;
break;
case 170 :
case 190 :
case 200 :
case 220 :
case 240 :
case 280 :
this.f = false;
break;
case 300 :
this.dy = -2;
this.f = false;
}
}
if (wytrzyma <= 0) {
addEnergy("energy", 600, 200, 5);
}
if (spadaj >= 15) {
this.dx = 5;
}
if ((this._x > 600) || (this._y < -100)) {
this.removeMovieClip();
}
this._y = this._y + this.dy;
this._x = this._x + this.dx;
};
};
projectileCount = 0;
createProjectile = function (type, x, y, dx, dy) {
var nm = ("proj" + projectileCount);
projectileLayer.attachMovie(type, nm, projectileCount);
projectileLayer[nm]._x = x;
projectileLayer[nm]._y = y;
projectileLayer[nm].dx = dx;
projectileLayer[nm].dy = dy;
projectileLayer[nm].onEnterFrame = function () {
this._x = this._x + this.dx;
this._y = this._y + this.dy;
if (this._x < 0) {
this.removeMovieClip();
}
if (hero._currentframe == 1) {
if (this.hitTest(hero)) {
hero.gotoAndPlay(2);
this.removeMovieClip();
menu.maska._xscale = menu.maska._xscale - 10;
if (menu.maska._xscale <= 0) {
menu.maska._xscale = 100;
hero.gotoAndPlay(3);
live--;
costrzela = "laser1";
menu.maska_live._xscale = menu.maska_live._xscale + 20;
}
if (live < 0) {
gotoAndPlay (162);
}
}
}
};
projectileCount++;
projectileCount = projectileCount % 22;
};
createProjectileHero = function (type, x, y, dx, dy) {
var nm = ("proj" + projectileCount);
projectileLayerHero.attachMovie(type, nm, projectileCount);
projectileLayerHero[nm]._x = x;
projectileLayerHero[nm]._y = y;
projectileLayerHero[nm].dx = dx;
projectileLayerHero[nm].dy = dy;
projectileLayerHero[nm].onEnterFrame = function () {
this._x = this._x + this.dx;
this._y = this._y + this.dy;
if (this._x > 540) {
this.removeMovieClip();
}
var i = 0;
while (i < 2) {
var mm = ("bossik" + i);
if (this.hitTest(enemyLayer[mm]) && (enemyLayer[mm]._currentframe == 1)) {
scr = scr + 200;
this.removeMovieClip();
menu.score_txt.text = scr;
przenies = przenies - 1;
if (przenies <= 0) {
enemyLayer[mm].play();
}
}
i++;
}
var i = 0;
while (i < 21) {
var enm = ("boss" + i);
if (this.hitTest(enemyLayer[enm]) && (enemyLayer[enm]._currentframe == 1)) {
scr = scr + 150;
this.removeMovieClip();
menu.score_txt.text = scr;
wytrzyma = wytrzyma - 1;
if (wytrzyma <= 0) {
enemyLayer[enm].play();
}
}
i++;
}
var i = 0;
while (i < 46) {
var enm = ("enemy" + i);
if (this.hitTest(enemyLayer[enm]) && (enemyLayer[enm]._currentframe == 1)) {
wytrzyma_ship = wytrzyma_ship - 1;
this.removeMovieClip();
if (wytrzyma_ship <= 0) {
enemyLayer[enm].play();
scr = scr + 100;
menu.score_txt.text = scr;
}
}
i++;
}
};
projectileCount++;
projectileCount = projectileCount % 22;
};
addW_count = 0;
addWeapon = function (type, nazwa, x, y, dx) {
_root.createEmptyMovieClip("weaponLayer", 43);
addW_count++;
weaponLayer.attachMovie(type, nazwa, addW_count);
weaponLayer._x = x;
weaponLayer._y = y;
weaponLayer.onEnterFrame = function () {
weaponLayer._x = weaponLayer._x - dx;
};
};
addEnergy = function (type, x, y, dx) {
_root.createEmptyMovieClip("energyLayer", 43);
addW_count++;
energyLayer.attachMovie(type, dodaj, addW_count);
energyLayer._x = x;
energyLayer._y = y;
energyLayer.onEnterFrame = function () {
energyLayer._x = energyLayer._x - dx;
};
};
attackTime = 0;
next_lev = false;
this.onEnterFrame = function () {
if (attackTime == 50) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship2", sx, 6, 7);
}
if (attackTime == 120) {
ship_attack0("ship1", 3);
}
if (attackTime == 250) {
var sx = ((Math.random() * 100) + 180);
ship_attack2("ship3", sx, 8, 7);
}
if (attackTime == 350) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship2", sx, 5, -7);
}
if (attackTime == 420) {
ship_attack1("ship1", 3);
}
if (attackTime == 480) {
boss_attack1("boss1", 600, 150, laser2a);
}
if (attackTime == 650) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship2", sx, 5, 9);
}
if (attackTime == 780) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship2", sx, 8, -8);
}
if (attackTime == 890) {
boss_attack2("boss3", 600, 150, bullet1);
}
if (attackTime == 1050) {
var sx = ((Math.random() * 100) + 180);
ship_attack2("ship3", sx, 4, 3);
}
if (attackTime == 1100) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship2", sx, 6, 5);
}
if (attackTime == 1200) {
boss_attack1("boss1", 600, 150, bullet1);
}
if (attackTime == 1250) {
boss_attack2("boss3", 600, 150, bullet_boss);
}
if (attackTime == 1400) {
ship_attack1("ship1", 2);
}
if (attackTime == 1450) {
ship_attack1("ship1", 2);
}
if (attackTime == 1550) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship2", sx, 5, 8);
}
if (attackTime == 1600) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship2", sx, 5, -8);
}
if (attackTime == 1700) {
ship_attack1("ship2", 4);
}
if (attackTime == 1720) {
boss_level("boss_koniec_1", 600, 150, bullet1);
}
if (((attackTime > 1750) && (przenies <= 0)) && (next_lev == true)) {
delete this.onEnterFrame;
delete trawka.onEnterFrame;
delete sun.onEnterFrame;
delete fabryki.onEnterFrame;
delete chmurki.onEnterFrame;
fabryki._visible = false;
chmurki._visible = false;
trawka._visible = false;
sun._visible = false;
muzyka1.stop();
gotoAndPlay (152);
}
attackTime++;
trace(attackTime);
trace(przenies);
trace(next_lev);
};
boss_level = function (type, x, y, jaka_bron) {
przenies = 25;
bossikCount = 0;
bossikCount++;
bossik = bossik % 2;
var mm = ("bossik" + bossikCount);
enemyLayer.attachMovie(type, mm, bossikCount);
enemyLayer[mm]._y = y;
enemyLayer[mm]._x = x;
enemyLayer[mm].dy = 0;
enemyLayer[mm].dx = -8;
enemyLayer[mm].onEnterFrame = function () {
if (this._x <= 380) {
this.dx = 0;
if ((this.f != true) && (this._currentframe == 1)) {
kierunekX = (Math.random() * -5) - 14;
kierunekY = (Math.random() * -6) + 2;
createProjectile("bullet2", this._x, this._y + 20, kierunekX, kierunekY);
this.f = true;
}
switch (this._y) {
case 150 :
this.dy = 2;
this.f = false;
break;
case 170 :
case 190 :
case 200 :
case 220 :
case 240 :
case 280 :
this.f = false;
break;
case 300 :
this.dy = -2;
this.f = false;
}
}
if ((this._x > 600) || (this._y < -100)) {
this.removeMovieClip();
}
this._y = this._y + this.dy;
this._x = this._x + this.dx;
};
};
ship_attack0 = function (type, ile) {
wytrzyma_ship = 2;
var zmianaX = 500;
var zmianaY = 120;
enemyCount2 = 35;
i = ile;
while (i > 0) {
zmianaX = zmianaX + 60;
zmianaY = zmianaY + 60;
enemyCount2++;
if (enemyCount2 == 45) {
enemyCount = 35;
}
var nm = ("enemy" + enemyCount2);
enemyLayer.attachMovie(type, nm, enemyCount2);
enemyLayer[nm]._y = zmianaY;
enemyLayer[nm]._x = zmianaX;
enemyLayer[nm].dx = 15;
enemyLayer[nm].onEnterFrame = function () {
if (this._x <= 250) {
this.f = true;
} else {
this._x = this._x - this.dx;
}
if (this.f) {
gdziesX = (Math.random() * 13) + 7;
gdziesY = (Math.random() * 12) + 5;
this._y = this._y - gdziesY;
this._x = this._x - gdziesX;
}
if (this._x < -20) {
this.removeMovieClip();
}
};
i--;
}
};
Frame 102
stop();
wyspa._visible = true;
attackTime = 0;
level = 2;
menu.level_txt.text = level;
wyspa.onEnterFrame = function () {
this._x = this._x - 0.8;
if (this._x < -200) {
this._x = 700;
}
};
muzyka3 = new Sound();
muzyka3.attachSound("level2");
muzyka3.setVolume(100);
muzyka3.start(0, 9999);
next_lev = false;
this.onEnterFrame = function () {
if (attackTime == 50) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship4", sx, 6, 7);
}
if (attackTime == 120) {
ship_attack0("ship1MaW", 3);
}
if (attackTime == 250) {
var sx = ((Math.random() * 100) + 180);
ship_attack2("ship5", sx, 8, 7);
}
if (attackTime == 350) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship3", sx, 5, -7);
}
if (attackTime == 400) {
ship_attack0("ship1", 2);
}
if (attackTime == 420) {
ship_attack1("ship7", 3);
}
if (attackTime == 440) {
boss_attack1("boss2", 600, 150, laser2a);
}
if (attackTime == 600) {
ship_attack1("ship1", 3);
}
if (attackTime == 700) {
ship_attack0("ship1MaW", 2);
}
if (attackTime == 880) {
boss_attack2("boss3MaW", 600, 150, laser2a);
}
if (attackTime == 905) {
boss_attack1("boss1MaW", 600, 150, bullet_boss);
}
if (attackTime == 950) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship5", sx, 2, -7);
}
if (attackTime == 1050) {
var sx = ((Math.random() * 100) + 180);
ship_attack2("ship4", sx, 5, 7);
}
if (attackTime == 1120) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship7", sx, 6, 7);
}
if (attackTime == 1290) {
ship_attack1("ship1Maw", 4);
}
if (attackTime == 1380) {
boss_attack1("boss1MaW", 600, 150, laser2a);
}
if (attackTime == 1480) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship5", sx, 5, -8);
}
if (attackTime == 1500) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship6", sx, 5, 8);
}
if (attackTime == 1600) {
boss_level("boss_koniec_2", 600, 150, bullet1);
}
if (((attackTime > 1650) && (przenies <= 0)) && (next_lev == true)) {
delete this.onEnterFrame;
delete wyspa.onEnterFrame;
wyspa._visible = false;
muzyka3.stop();
gotoAndPlay (152);
}
attackTime++;
trace(attackTime);
};
Frame 112
stop();
level = 3;
chmurki3_1._visible = true;
wood1._visible = true;
sun3._visible = true;
mountain._visible = true;
tlo3._visible = true;
menu.level_txt.text = level;
muzyka2 = new Sound(lev3);
muzyka2.attachSound("lee");
muzyka2.setVolume(70);
muzyka2.start(0, 9999);
wood1.wood.duplicateMovieClip("wood_dub", 101);
wood1.wood_dub._x = wood1.wood._x + wood1.wood._width;
bgstartx = wood1._x;
bgSpeed = 5;
wood1.onEnterFrame = function () {
wood1._x = wood1._x - bgSpeed;
if (wood1._x <= (bgstartx - wood1.wood._width)) {
wood1._x = bgstartx - bgSpeed;
}
};
mountain.mountain1.duplicateMovieClip("mountain1_dub", 100);
mountain.mountain1_dub._x = mountain.mountain1._x + mountain.mountain1._width;
bgstartx = mountain._x;
bgSpeed1 = 1;
mountain.onEnterFrame = function () {
mountain._x = mountain._x - bgSpeed1;
if (mountain._x <= (bgstartx - mountain.mountain1._width)) {
mountain._x = bgstartx - bgSpeed1;
}
};
chmurki3_1.chmurki3.duplicateMovieClip("chmurki3_dub", 100);
chmurki3_1.chmurki3_dub._x = chmurki3_1.chmurki3._x + chmurki3_1.chmurki3._width;
bgstartx = chmurki3_1._x;
bgSpeed2 = 0.2;
chmurki3_1.onEnterFrame = function () {
chmurki3_1._x = chmurki3_1._x - bgSpeed2;
if (chmurki3_1._x <= (bgstartx - chmurki3_1.chmurki3._width)) {
chmurki3_1._x = bgstartx - bgSpeed2;
}
};
sun3.onEnterFrame = function () {
this._x = this._x - 0.05;
};
attackTime = 0;
next_lev = false;
this.onEnterFrame = function () {
if (attackTime == 50) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship8", sx, 6, 7);
}
if (attackTime == 130) {
ship_attack0("ship1", 1);
}
if (attackTime == 250) {
var sx = ((Math.random() * 100) + 180);
ship_attack2("ship1MaW", sx, 8, 7);
}
if (attackTime == 350) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship7", sx, 5, -7);
}
if (attackTime == 420) {
ship_attack1("ship6", 3);
}
if (attackTime == 480) {
boss_attack1("boss1MaW", 600, 150, laser2a);
}
if (attackTime == 560) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship8", sx, 5, -7);
}
if (attackTime == 600) {
boss_attack_energy("boss4", 600, 150, bullet_boss);
}
if (attackTime == 620) {
var sx = ((Math.random() * 100) + 180);
ship_attack2("ship1MaW", sx, 3, -7);
}
if (attackTime == 700) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship7", sx, 3, -7);
}
if (attackTime == 730) {
ship_attack1("ship6", 6);
}
if (attackTime == 880) {
boss_attack2("boss3MaW", 600, 150, laser2a);
}
if (attackTime == 905) {
boss_attack1("boss1MaW", 600, 150, bullet_boss);
}
if (attackTime == 950) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship5", sx, 2, -7);
}
if (attackTime == 1050) {
var sx = ((Math.random() * 100) + 180);
ship_attack2("ship2", sx, 5, 7);
}
if (attackTime == 1120) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship7", sx, 6, 7);
}
if (attackTime == 1290) {
ship_attack1("ship1Maw", 4);
}
if (attackTime == 1380) {
boss_attack1("boss1MaW", 600, 150, laser2a);
}
if (attackTime == 1480) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship5", sx, 5, -8);
}
if (attackTime == 1500) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship6", sx, 5, 8);
}
if (attackTime == 1550) {
boss_level("boss_koniec_3", 600, 150, bullet1);
}
if (((attackTime > 1600) && (przenies <= 0)) && (next_lev == true)) {
delete this.onEnterFrame;
delete wood1.onEnterFrame;
delete sun3.onEnterFrame;
delete mountain.onEnterFrame;
delete chmurki3_1.onEnterFrame;
chmurki3_1._visible = false;
wood1._visible = false;
sun3._visible = false;
mountain._visible = false;
tlo3._visible = false;
muzyka2.stop();
gotoAndPlay (152);
}
attackTime++;
trace(attackTime);
};
Frame 122
stop();
szkielet.szkielet1.duplicateMovieClip("szkielet1_dub", 100);
szkielet.szkielet1_dub._x = szkielet.szkielet1._x + szkielet.szkielet1._width;
bgstartx = szkielet._x;
bgSpeed2 = 1;
szkielet.onEnterFrame = function () {
szkielet._x = szkielet._x - bgSpeed2;
if (szkielet._x <= (bgstartx - szkielet.szkielet1._width)) {
szkielet._x = bgstartx - bgSpeed2;
}
};
level = 4;
menu.level_txt.text = level;
attackTime = 0;
ny._visible = true;
muzyka5 = new Sound();
muzyka5.attachSound("level4");
muzyka5.setVolume(100);
muzyka5.start(0, 9999);
next_lev = false;
this.onEnterFrame = function () {
if (attackTime == 50) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship4", sx, 6, 7);
}
if (attackTime == 110) {
ship_attack0("ship1MaW", 3);
}
if (attackTime == 250) {
var sx = ((Math.random() * 100) + 180);
ship_attack2("ship6", sx, 8, 7);
}
if (attackTime == 350) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship4", sx, 5, -7);
}
if (attackTime == 420) {
ship_attack1("ship7", 3);
}
if (attackTime == 450) {
ship_attack1("ship1", 4);
}
if (attackTime == 480) {
boss_attack_energy("boss3MaW", 600, 150, bullet_boss);
}
if (attackTime == 560) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship2", sx, 6, 7);
}
if (attackTime == 620) {
ship_attack0("ship1MaW", 3);
}
if (attackTime == 750) {
var sx = ((Math.random() * 100) + 180);
ship_attack2("ship6", sx, 7, 7);
}
if (attackTime == 950) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship8", sx, 5, -7);
}
if (attackTime == 1120) {
ship_attack1("ship7", 3);
}
if (attackTime == 1250) {
ship_attack1("ship1", 4);
}
if (attackTime == 1290) {
boss_attack1("boss1", 600, 150, bullet1);
}
if (attackTime == 1430) {
boss_level("boss_koniec_4", 600, 150, bullet3);
}
if (((attackTime > 700) && (przenies <= 0)) && (next_lev == true)) {
delete this.onEnterFrame;
delete ny.onEnterFrame;
ny._visible = false;
muzyka5.stop();
gotoAndPlay (152);
}
attackTime++;
trace(attackTime);
};
Frame 132
stop();
attackTime = 0;
level = 5;
zachod_slonca._visible = true;
szkielet_zachod._visible = true;
menu.level_txt.text = level;
szkielet_zachod.szkielet_zachod1.duplicateMovieClip("szkielet_zachod1_dub", 100);
szkielet_zachod.szkielet_zachod1_dub._x = szkielet_zachod.szkielet_zachod1._x + szkielet_zachod.szkielet_zachod1._width;
bgstartx = szkielet_zachod._x;
bgSpeed1 = 1;
szkielet_zachod.onEnterFrame = function () {
szkielet_zachod._x = szkielet_zachod._x - bgSpeed1;
if (szkielet_zachod._x <= (bgstartx - szkielet_zachod.szkielet_zachod1._width)) {
szkielet_zachod._x = bgstartx - bgSpeed1;
}
};
muzyka4 = new Sound();
muzyka4.attachSound("level5");
muzyka4.setVolume(100);
muzyka4.start(0, 9999);
next_lev = false;
this.onEnterFrame = function () {
if (attackTime == 40) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship4", sx, 6, 7);
}
if (attackTime == 110) {
ship_attack0("ship1", 3);
}
if (attackTime == 250) {
var sx = ((Math.random() * 100) + 180);
ship_attack2("ship6", sx, 7, 7);
}
if (attackTime == 350) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship4", sx, 2, -7);
}
if (attackTime == 420) {
ship_attack1("ship7", 3);
}
if (attackTime == 480) {
boss_attack2("boss4", 600, 150, laser2a);
}
if (attackTime == 580) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship4", sx, 6, -7);
}
if (attackTime == 600) {
var sx = ((Math.random() * 100) + 180);
ship_attack2("ship6", sx, 2, 7);
}
if (attackTime == 610) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship4", sx, 2, -7);
}
if (attackTime == 630) {
ship_attack1("ship7", 5);
}
if (attackTime == 650) {
boss_attack_energy("boss2", 600, 150, bullet_boss);
}
if (attackTime == 690) {
boss_attack1("boss4", 600, 150, laser2a);
}
if (attackTime == 699) {
ship_attack1("ship1", 4);
}
if (attackTime == 730) {
ship_attack1("ship2", 2);
}
if (attackTime == 790) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship4", sx, 5, 7);
}
if (attackTime == 850) {
var sx = ((Math.random() * 100) + 180);
ship_attack2("ship8", sx, 3, 7);
}
if (attackTime == 920) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship4", sx, 7, -7);
}
if (attackTime == 1000) {
ship_attack1("ship6", 3);
}
if (attackTime == 1130) {
boss_attack1("boss2", 600, 150, laser2a);
}
if (attackTime == 1200) {
var sx = ((Math.random() * 280) + 100);
ship_attack3("ship6", sx, 2, -7);
}
if (attackTime == 1250) {
var sx = ((Math.random() * 80) + 180);
ship_attack2("ship5", sx, 5, 7);
}
if (attackTime == 1380) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship2", sx, 5, -7);
}
if (attackTime == 1420) {
ship_attack1("ship8", 3);
}
if (attackTime == 1500) {
var sx = ((Math.random() * 150) + 180);
ship_attack2("ship2", sx, 9, -7);
}
if (attackTime == 1600) {
var sx = ((Math.random() * 180) + 120);
ship_attack3("ship4", sx, 1, 7);
}
if (attackTime == 1650) {
ship_attack1("ship6", 3);
}
if (attackTime == 1660) {
ship_attack1("ship1MaW", 2);
}
if (attackTime == 1670) {
ship_attack1("ship1", 1);
}
if (attackTime == 1700) {
ship_attack1("ship1MaW", 4);
}
if (attackTime == 1750) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship2", sx, 4, -7);
}
if (attackTime == 1880) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship8", sx, 8, 7);
}
if (attackTime == 1980) {
boss_attack_energy("boss4", 600, 150, bullet_boss);
}
if (attackTime == 2010) {
ship_attack0("ship1MaW", 3);
}
if (attackTime == 2210) {
boss_level("boss_koniec_5", 600, 150, bullet1);
}
if (((attackTime > 2220) && (przenies <= 0)) && (next_lev == true)) {
delete this.onEnterFrame;
delete szkielet_zachod.onEnterFrame;
zachod_slonca._visible = false;
szkielet_zachod._visible = false;
muzyka4.stop();
gotoAndPlay (152);
}
attackTime++;
trace(attackTime);
};
Frame 142
stop();
muzyka6 = new Sound(pustynia);
muzyka6.attachSound("last_lev");
muzyka6.setVolume(100);
muzyka6.start(0, 9999);
attackTime = 0;
level = 6;
menu.level_txt.text = level;
pustynia._visible = true;
tlo_pustynia._visible = true;
pustynia.pustynia1.duplicateMovieClip("pustynia1_dub", 100);
pustynia.pustynia1_dub._x = pustynia.pustynia1._x + pustynia.pustynia1._width;
bgstartx = pustynia._x;
bgSpeed1 = 1;
pustynia.onEnterFrame = function () {
pustynia._x = pustynia._x - bgSpeed1;
if (pustynia._x <= (bgstartx - pustynia.pustynia1._width)) {
pustynia._x = bgstartx - bgSpeed1;
}
};
next_lev = false;
this.onEnterFrame = function () {
if (attackTime == 50) {
var sx = ((Math.random() * 180) + 100);
ship_attack3("ship4", sx, 6, 7);
}
if (attackTime == 111) {
ship_attack0("ship1", 3);
}
if (attackTime == 250) {
var sx = ((Math.random() * 100) + 180);
ship_attack2("ship6", sx, 8, 7);
}
if (attackTime == 350) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship4", sx, 5, -7);
}
if (attackTime == 420) {
ship_attack1("ship7", 3);
}
if (attackTime == 480) {
boss_attack2("boss2", 600, 150, laser2a);
}
if (attackTime == 530) {
boss_attack1("boss1MaW", 600, 150, laser_boss);
}
if (attackTime == 600) {
var sx = ((Math.random() * 100) + 180);
ship_attack2("ship6", sx, 8, -7);
}
if (attackTime == 730) {
var sx = ((Math.random() * 120) + 120);
ship_attack3("ship4", sx, 5, 7);
}
if (attackTime == 750) {
ship_attack1("ship7", 3);
}
if (attackTime == 800) {
boss_attack1("boss2", 600, 150, bullet1);
}
if (attackTime == 850) {
ship_attack0("ship1MaW", 3);
}
if (attackTime == 900) {
boss_level("last_boss", 600, 150, laser_boss);
}
if (((attackTime > 1000) && (przenies <= 0)) && (next_lev == true)) {
muzyka6.stop();
delete this.onEnterFrame;
delete pustynia.onEnterFrame;
pustynia._visible = false;
tlo_pustynia._visible = false;
menu._visible = false;
hero._visible = false;
level_change_MC._visible = false;
gotoAndStop (152);
}
attackTime++;
trace(attackTime);
trace(next_lev);
trace(przenies);
};
Frame 152
stop();
changee = new Sound();
changee.attachSound("changee");
changee.setVolume(70);
changee.start(0, 9999);
level_change_MC._visible = true;
level_change_MC.swapDepths(100);
level_change_MC.przeskok.enabled = true;
Instance of Symbol 275 MovieClip in Frame 152
//component parameters
onClipEvent (initialize) {
label = "GO";
wide = 75;
c1 = 0;
c2 = 153;
c3 = 0;
hc1 = 0;
hc2 = 200;
hc3 = 0;
baseMode = true;
widthMode = true;
rgb = 39168;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 51200;
}
on (press) {
getURL ("http://www.FlashGames247.com", "_blank");
}
Frame 162
_root.hoff._visible = false;
_root.r = 0;
_root.onData = function () {
if (s == 1) {
_root.hoff._visible = true;
}
};
_root.loadVariables("hof.php?s=" + _root.scr);
stop();
Instance of Symbol 243 MovieClip in Frame 162
//component parameters
onClipEvent (initialize) {
label = "Play Again";
wide = 112;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = true;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.starting();
}
Instance of Symbol 243 MovieClip in Frame 162
//component parameters
onClipEvent (initialize) {
label = "Hall Of Fame";
wide = 112;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = false;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.hof(1);
}
Instance of Symbol 243 MovieClip in Frame 170
//component parameters
onClipEvent (initialize) {
label = "Play Game";
wide = 99;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = false;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.game();
}
Frame 171
if (_root.r == 1) {
if (_root.s == 1) {
_root.hof(2);
} else {
_root.hof(3);
}
} else {
_root.onData = function () {
if (_root.s == 1) {
_root.hof(2);
} else {
_root.hof(3);
}
};
}
stop();
Instance of Symbol 243 MovieClip in Frame 171
//component parameters
onClipEvent (initialize) {
label = "Cancel";
wide = 112;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = true;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.starting();
}
Instance of Symbol 243 MovieClip in Frame 172
//component parameters
onClipEvent (initialize) {
label = "Yes";
wide = 112;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = true;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.hof(5);
}
Instance of Symbol 243 MovieClip in Frame 172
//component parameters
onClipEvent (initialize) {
label = "No";
wide = 112;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = true;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.hof(4);
}
Instance of Symbol 243 MovieClip in Frame 173
//component parameters
onClipEvent (initialize) {
label = "Play Again";
wide = 112;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = true;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.starting();
}
Instance of Symbol 243 MovieClip in Frame 174
//component parameters
onClipEvent (initialize) {
label = "Sign In";
wide = 112;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = true;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.hof(5);
}
Instance of Symbol 243 MovieClip in Frame 175
//component parameters
onClipEvent (initialize) {
label = "Send";
wide = 112;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = true;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.r = 0;
_root.loadVariables((("addme.php?s=" + _root.scr) + "&n=") + escape(_root.nam));
_root.hof(1);
}
Instance of Symbol 243 MovieClip in Frame 175
//component parameters
onClipEvent (initialize) {
label = "Cancel";
wide = 112;
c1 = 160;
c2 = 0;
c3 = 0;
hc1 = 180;
hc2 = 0;
hc3 = 0;
baseMode = false;
widthMode = true;
rgb = 10485760 /* 0xA00000 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 11796480 /* 0xB40000 */;
}
on (press) {
_root.hof(4);
}
Symbol 31 MovieClip [laser2] Frame 16
this.gotoAndStop(7);
Symbol 69 MovieClip Frame 1
fx_bum2 = new Sound(this);
fx_bum2.attachSound("wybuszek");
fx_bum2.setVolume(100);
fx_bum2.start();
Symbol 69 MovieClip Frame 8
fx_bum2.stop();
_parent.removeMovieClip();
Symbol 70 MovieClip [ship8] Frame 1
stop();
Symbol 70 MovieClip [ship8] Frame 2
stop();
Symbol 72 MovieClip [ship7] Frame 1
stop();
Symbol 72 MovieClip [ship7] Frame 2
stop();
Symbol 74 MovieClip [ship3] Frame 1
stop();
Symbol 74 MovieClip [ship3] Frame 2
stop();
Symbol 91 MovieClip Frame 1
fx_bum1 = new Sound(this);
fx_bum1.attachSound("bum1");
fx_bum1.setVolume(100);
fx_bum1.start();
Symbol 91 MovieClip Frame 16
stop();
fx_bum1.stop();
_parent.removeMovieClip();
Symbol 92 MovieClip [ship1] Frame 1
stop();
Symbol 92 MovieClip [ship1] Frame 2
stop();
Symbol 99 MovieClip Frame 18
_parent.gotoAndStop(1);
Symbol 100 MovieClip Frame 1
fx_bum1 = new Sound(this);
fx_bum1.attachSound("bum1");
fx_bum1.setVolume(100);
fx_bum1.start();
Symbol 100 MovieClip Frame 16
stop();
fx_bum1.stop();
if (_parent._parent.live <= 0) {
_parent._parent.hero.removeMovieClip();
} else {
_parent.gotoAndStop(1);
}
Symbol 101 MovieClip [old_hero] Frame 1
stop();
Symbol 101 MovieClip [old_hero] Frame 2
stop();
Symbol 101 MovieClip [old_hero] Frame 3
stop();
Symbol 103 MovieClip [boss4] Frame 1
stop();
Symbol 103 MovieClip [boss4] Frame 2
stop();
Symbol 106 MovieClip [boss3] Frame 1
stop();
Symbol 106 MovieClip [boss3] Frame 2
stop();
Symbol 109 MovieClip [boss1] Frame 1
stop();
Symbol 109 MovieClip [boss1] Frame 2
stop();
Symbol 111 MovieClip [boss3MaW] Frame 1
stop();
Symbol 111 MovieClip [boss3MaW] Frame 2
stop();
Symbol 113 MovieClip [boss_koniec_1] Frame 1
stop();
Symbol 113 MovieClip [boss_koniec_1] Frame 2
fx_bum1 = new Sound(this);
fx_bum1.attachSound("bum1");
fx_bum1.setVolume(100);
fx_bum1.start();
Symbol 113 MovieClip [boss_koniec_1] Frame 35
stop();
_root.next_lev = true;
fx_bum1.stop();
this.removeMovieClip();
Symbol 117 MovieClip Frame 1
fx_bum1 = new Sound(this);
fx_bum1.attachSound("bum1");
fx_bum1.setVolume(100);
fx_bum1.start();
Symbol 117 MovieClip Frame 34
stop();
_root.next_lev = true;
fx_bum1.stop();
_parent.removeMovieClip();
Symbol 118 MovieClip [boss_koniec_2] Frame 1
stop();
Symbol 118 MovieClip [boss_koniec_2] Frame 2
stop();
Symbol 119 MovieClip [boss_koniec_3] Frame 1
stop();
Symbol 119 MovieClip [boss_koniec_3] Frame 2
stop();
Symbol 121 MovieClip [boss_koniec_4] Frame 1
stop();
Symbol 121 MovieClip [boss_koniec_4] Frame 2
stop();
Symbol 123 MovieClip [boss_koniec_5] Frame 1
stop();
Symbol 123 MovieClip [boss_koniec_5] Frame 2
stop();
Symbol 129 MovieClip [heros] Frame 1
stop();
Symbol 129 MovieClip [heros] Frame 2
stop();
Symbol 130 MovieClip [boss_koniec_6] Frame 1
stop();
Symbol 130 MovieClip [boss_koniec_6] Frame 2
stop();
Symbol 131 MovieClip [last_boss] Frame 1
stop();
Symbol 131 MovieClip [last_boss] Frame 2
stop();
Symbol 138 MovieClip [ship6] Frame 1
stop();
Symbol 138 MovieClip [ship6] Frame 2
stop();
Symbol 140 MovieClip [ship5] Frame 1
stop();
Symbol 140 MovieClip [ship5] Frame 2
stop();
Symbol 142 MovieClip [ship2] Frame 1
stop();
Symbol 142 MovieClip [ship2] Frame 2
stop();
Symbol 144 MovieClip [ship4] Frame 1
stop();
Symbol 144 MovieClip [ship4] Frame 2
stop();
Symbol 145 MovieClip [boss2] Frame 1
stop();
Symbol 145 MovieClip [boss2] Frame 2
stop();
Symbol 149 MovieClip Frame 18
_parent.gotoAndStop(1);
Symbol 150 MovieClip Frame 1
fx_bum1 = new Sound(this);
fx_bum1.attachSound("bum1");
fx_bum1.setVolume(100);
fx_bum1.start();
Symbol 150 MovieClip Frame 16
stop();
fx_bum1.stop();
if (_parent._parent.live <= 0) {
_parent._parent.hero.removeMovieClip();
} else {
_parent.gotoAndStop(1);
}
Symbol 151 MovieClip [old_hero] Frame 1
stop();
Symbol 151 MovieClip [old_hero] Frame 2
stop();
Symbol 151 MovieClip [old_hero] Frame 3
stop();
Symbol 153 MovieClip [ship1MaW] Frame 1
stop();
Symbol 153 MovieClip [ship1MaW] Frame 2
stop();
Symbol 154 MovieClip [boss1MaW] Frame 1
stop();
Symbol 154 MovieClip [boss1MaW] Frame 2
stop();
Symbol 164 MovieClip Frame 1
_root.stop();
Stage.scaleMode = "noScale";
fscommand ("trapallkeys", true);
Stage.showMenu = false;
this.sg = [];
for (var i in this) {
if (this[i]._totalframes == 1) {
this.sg.push(this[i]);
this[i]._alpha = 20;
}
}
this._tm = getTimer();
this.onEnterFrame = function () {
var ld = _root.getBytesLoaded();
var tt = _root.getBytesTotal();
this.bytes = ld;
this.procent = ((tt > 0) ? ((100 * ld) / tt) : 0);
this.time = (getTimer() - this._tm) / 1000;
this.transfer = this.bytes / this.time;
var pr = Math.floor(this.procent);
var i = 100;
while (i > (100 - pr)) {
this.sg[i]._alpha = 40;
i--;
}
if (pr >= 100) {
this.onEnterFrame = null;
_root.play();
}
};
Symbol 191 MovieClip Frame 1
function sss(a) {
var v = a.ss.getVolume();
if (v >= 100) {
clearInterval(a.it);
} else {
a.ss.setVolume(v + 3);
}
}
this.ss = new Sound(this);
this.ss.attachSound("muza");
this.ss.setVolume(0);
this.ss.start(0, 100000);
this.it = setInterval(sss, 33, this);
Symbol 191 MovieClip Frame 56
stop();
Symbol 197 MovieClip Frame 175
this.gotoAndPlay(5);
Symbol 221 MovieClip Frame 12
stop();
Symbol 243 MovieClip Frame 1
this.onPress = function () {
pressing = true;
i = 1;
while (i <= 3) {
buttonColor = new Color(eval ("piece" + i).colorchip);
buttonColor.setRGB(3355443);
lowColor = new Color(eval ("piece" + i).bottomhilite);
lowColorTransform = new Object();
lowColorTransform = {ra:"0", rb:"200", ga:"0", gb:"200", ba:"0", bb:"200", aa:"100", ab:"0"};
lowColor.setTransform(lowColorTransform);
i++;
}
};
this.onRelease = function () {
pressing = false;
};
this.onReleaseOutside = function () {
pressing = false;
};
this.onEnterFrame = function () {
if (pressing != true) {
i = 1;
while (i <= 3) {
buttonColor = new Color(eval ("piece" + i).colorchip);
buttonColor.setRGB(rgb);
lowColor = new Color(eval ("piece" + i).bottomhilite);
lowColorTransform = new Object();
lowColorTransform = {ra:"0", rb:hc1, ga:"0", gb:hc2, ba:"0", bb:hc3, aa:"100", ab:"0"};
lowColor.setTransform(lowColorTransform);
i++;
}
}
};
with (piece2) {
_width = _parent.wide;
piece1._x = _x - (_width / 2);
piece3._x = _x + (_width / 2);
_parent.midshadow._width = _width;
_parent.leftshadow._x = _x - (_width / 2);
_parent.rightshadow._x = _x + (_width / 2);
}
label1.autoSize = "center";
label2.autoSize = "center";
Symbol 251 Button
on (press) {
getURL ("http://www.FlashGames247.com", "_blank");
}
Symbol 252 Button
on (press) {
getURL ("http://www.FlashGames247.com/gamesbyemail", "_blank");
}
Symbol 253 Button
on (press) {
getURL ("http://www.FlashGames247.com/addflashgames", "_blank");
}
Symbol 254 Button
on (press) {
getURL ("http://www.FlashGames247.com/download/stateczki_good_mx.exe", "_blank");
}
Instance of Symbol 259 MovieClip in Symbol 260 MovieClip Frame 1
on (press) {
getURL ("http://www.FlashGames247.com", "_blank");
}
Symbol 275 MovieClip Frame 1
this.onPress = function () {
pressing = true;
i = 1;
while (i <= 3) {
buttonColor = new Color(eval ("piece" + i).colorchip);
buttonColor.setRGB(3355443);
lowColor = new Color(eval ("piece" + i).bottomhilite);
lowColorTransform = new Object();
lowColorTransform = {ra:"0", rb:"200", ga:"0", gb:"200", ba:"0", bb:"200", aa:"100", ab:"0"};
lowColor.setTransform(lowColorTransform);
i++;
}
};
this.onRelease = function () {
pressing = false;
};
this.onReleaseOutside = function () {
pressing = false;
};
this.onEnterFrame = function () {
if (pressing != true) {
i = 1;
while (i <= 3) {
buttonColor = new Color(eval ("piece" + i).colorchip);
buttonColor.setRGB(rgb);
lowColor = new Color(eval ("piece" + i).bottomhilite);
lowColorTransform = new Object();
lowColorTransform = {ra:"0", rb:hc1, ga:"0", gb:hc2, ba:"0", bb:hc3, aa:"100", ab:"0"};
lowColor.setTransform(lowColorTransform);
i++;
}
}
};
with (piece2) {
_width = _parent.wide;
piece1._x = _x - (_width / 2);
piece3._x = _x + (_width / 2);
_parent.midshadow._width = _width;
_parent.leftshadow._x = _x - (_width / 2);
_parent.rightshadow._x = _x + (_width / 2);
}
label1.autoSize = "center";
label2.autoSize = "center";
Symbol 307 MovieClip Frame 1
this.swapDepths(50);
Symbol 307 MovieClip Frame 24
stop();
Symbol 307 MovieClip Frame 30
this.swapDepths(50);
Symbol 307 MovieClip Frame 56
this.swapDepths(1);
stop();
Symbol 315 MovieClip Frame 1
this.play();
this.swapDepths(50);
Symbol 315 MovieClip Frame 25
stop();
this.swapDepths(1);
Symbol 329 MovieClip Frame 1
this.swapDepths(50);
Symbol 329 MovieClip Frame 25
stop();
this.swapDepths(1);
Symbol 329 MovieClip Frame 30
this.swapDepths(50);
Symbol 329 MovieClip Frame 52
stop();
this.swapDepths(1);
Symbol 340 MovieClip Frame 1
this.swapDepths(50);
Symbol 340 MovieClip Frame 25
stop();
this.swapDepths(1);
Symbol 349 MovieClip Frame 1
this.swapDepths(50);
Symbol 349 MovieClip Frame 25
stop();
this.swapDepths(1);
Symbol 359 MovieClip Frame 1
this.swapDepths(50);
Symbol 359 MovieClip Frame 25
stop();
this.swapDepths(1);
Symbol 377 MovieClip Frame 1
level_txt.text = _parent.level;
TextField.prototype.mechText = function (myText, interv) {
index++;
ref.htmltext = myText.substr(0, index) + "_";
if (index == myText.length) {
clearInterval(intervalID);
}
if (!intervalID) {
intervalID = setInterval(this.mechText, interv, myText, interv);
ref = this;
}
};
if (_parent.level == 1) {
box.mechText("All enemies on level one have been destoroyed and You have survived. Congratulations Commandor. But our mission haven't been finished yet...", 30);
}
if (_parent.level == 2) {
box.mechText("All enemies on level two have been destoroyed and You have survived. Congratulations Commandor. But our mission haven't been finished yet...", 30);
}
if (_parent.level == 3) {
box.mechText("All enemies on level three have been destoroyed and You have survived. Congratulations Commandor. But our mission haven't been finished yet...", 30);
}
if (_parent.level == 4) {
box.mechText("All enemies on level four have been destoroyed and You have survived. Congratulations Commandor. But our mission haven't been finished yet...", 30);
}
if (_parent.level == 5) {
box.mechText("All enemies on level five have been destoroyed and You have survived. Congratulations Commandor. But our mission haven't been finished yet...", 30);
}
if (_parent.level == 6) {
box.mechText("Congratulation Commander- You have avenged Your friends and You have destroyed enemies from helion constelation. You are a hero ", 30);
}
przeskok.onRelease = function () {
_root.level_change_MC._visible = false;
this.enabled = false;
if (_parent.level == 1) {
_parent.changee.stop();
_parent.gotoAndPlay("level_2");
_root.level_change_MC._visible = false;
}
if (_parent.level == 2) {
_parent.changee.stop();
_parent.gotoAndPlay("level_3");
_root.level_change_MC._visible = false;
}
if (_parent.level == 3) {
_parent.changee.stop();
_parent.gotoAndPlay("level_4");
_root.level_change_MC._visible = false;
}
if (_parent.level == 4) {
_parent.changee.stop();
_parent.gotoAndPlay("level_5");
_root.level_change_MC._visible = false;
}
if (_parent.level == 5) {
_parent.changee.stop();
_parent.gotoAndPlay("level_6");
_root.level_change_MC._visible = false;
}
if (_parent.level == 6) {
_parent.changee.stop();
_parent.gotoAndPlay("level_1");
_root.ilePunktow = _root.scr;
_root.level_change_MC._visible = false;
}
};
Symbol 390 MovieClip Frame 25
stop();
Symbol 392 MovieClip Frame 10
stop();