Combined Code
movieClip 26 boom {
frame 1 {
stop();
}
frame 12 {
this.removeMovieClip();
}
}
movieClip 28 {
frame 1 {
_visible = false;
}
}
movieClip 34 gun1 {
frame 1 {
stop();
}
frame 2 {
_root.PLACE_BULLET(dot);
}
}
movieClip 37 bullet {
}
movieClip 43 gun2 {
frame 1 {
stop();
}
frame 2 {
_root.PLACE_BULLET(dot);
}
}
movieClip 46 bonus_gun2 {
}
movieClip 49 bonus_gun1 {
}
movieClip 50 bonus1 {
}
movieClip 52 {
}
movieClip 53 bubbles2 {
frame 1 {
lev = 500;
speedX = 3;
bubble._visible = false;
placeBubble = function () {
++lev;
d = bubble.duplicateMovieClip('d' + lev, lev);
d._y = Math.random() * 480 - 240;
d._yscale = 500 + Math.random() * 50;
d._xscale = d._yscale;
d.onEnterFrame = function () {
this._x -= speedX;
this._yscale *= 0.995;
this._xscale = this._yscale;
if (this._xscale < 1 || this._x < -640) {
this.removeMovieClip();
}
};
};
count = 0;
onEnterFrame = function () {
if (count++ > 15) {
count = 0;
placeBubble();
}
};
}
}
movieClip 55 {
}
movieClip 56 bubbles {
frame 1 {
lev = 500;
speedX = 3;
bubble._visible = false;
placeBubble = function () {
++lev;
d = bubble.duplicateMovieClip('d' + lev, lev);
d._y = Math.random() * 480 - 240;
d._yscale = 500 + Math.random() * 50;
d._xscale = d._yscale;
d.onEnterFrame = function () {
this._x -= speedX;
this._yscale *= 0.995;
this._xscale = this._yscale;
if (this._xscale < 1 || this._x < -640) {
this.removeMovieClip();
}
};
};
count = 0;
onEnterFrame = function () {
if (count++ > 15) {
count = 0;
placeBubble();
}
};
}
}
movieClip 58 sound_fuel {
frame 1 {
stop();
}
}
movieClip 60 sound_change_weapon {
frame 1 {
stop();
}
}
movieClip 62 bullet_boss {
}
movieClip 66 back_newgame {
frame 1 {
stop();
}
frame 30 {
_root.backback.removeMovieClip();
_root.gotoAndStop(5);
}
}
movieClip 67 back_next {
frame 1 {
stop();
}
frame 30 {
_root.back_menu.removeMovieClip();
_root.backback.removeMovieClip();
_root.nextFrame();
}
}
movieClip 68 back_prev {
frame 1 {
stop();
}
frame 30 {
_root.back_menu.removeMovieClip();
_root.backback.removeMovieClip();
_root.prevFrame();
}
}
movieClip 69 back_score {
frame 1 {
stop();
}
frame 30 {
_root.back.removeMovieClip();
_root.land2.removeMovieClip();
_root.fuels.removeMovieClip();
_root.plane.removeMovieClip();
_root.plane.gun.removeMovieClip();
_root.bullet.removeMovieClip();
_root.bullet_boss.removeMovieClip();
_root.bubbles.removeMovieClip();
_root.land1.removeMovieClip();
_root.targets.removeMovieClip();
_root.targets2.removeMovieClip();
_root.boss.removeMovieClip();
_root.boom.removeMovieClip();
_root.panel.removeMovieClip();
_root.sound_fuel.removeMovieClip();
_root.sound_change_weapon.removeMovieClip();
_root.back_menu.removeMovieClip();
_root.backback.removeMovieClip();
_root.sound_bax.removeMovieClip();
_root.plane.shield.removeMovieClip();
_root.nextFrame();
}
}
movieClip 70 backback {
frame 10 {
_root.backback.removeMovieClip();
}
}
movieClip 78 shield {
frame 1 {
stop();
}
}
movieClip 80 sound_bax {
frame 1 {
stop();
}
}
movieClip 85 gun4 {
frame 1 {
stop();
}
frame 2 {
_root.PLACE_BULLET(dot);
}
}
movieClip 88 bonus_gun4 {
}
movieClip 96 land4_2 {
}
movieClip 99 {
}
movieClip 109 {
frame 5 {
this.unloadMovie();
}
}
movieClip 110 bossup {
frame 1 {
stop();
}
}
movieClip 114 {
}
movieClip 127 {
frame 7 {
this.unloadMovie();
}
}
movieClip 128 {
frame 1 {
stop();
}
}
movieClip 129 {
}
movieClip 132 {
}
movieClip 141 {
frame 5 {
this.unloadMovie();
}
}
movieClip 142 {
frame 1 {
stop();
}
}
movieClip 143 {
}
movieClip 146 bonus_shield {
}
movieClip 151 gun3 {
frame 1 {
stop();
}
frame 2 {
_root.PLACE_BULLET2(dot2);
}
}
movieClip 155 {
}
movieClip 166 {
frame 6 {
this.unloadMovie();
}
}
movieClip 167 {
frame 1 {
stop();
}
}
movieClip 168 {
}
movieClip 169 targets3_2 {
}
movieClip 172 land2_2 {
}
movieClip 177 {
frame 101 {
stop();
}
}
movieClip 178 BOSS {
}
movieClip 195 {
frame 1 {
_root.score += 50;
_root.fin = 1;
}
frame 9 {
stop();
_root.back_score.gotoAndPlay(2);
}
}
movieClip 196 bossboss {
frame 1 {
stop();
}
}
movieClip 197 back_menu {
frame 1 {
stop();
}
frame 30 {
_root.back.removeMovieClip();
_root.land2.removeMovieClip();
_root.fuels.removeMovieClip();
_root.plane.removeMovieClip();
_root.plane.gun.removeMovieClip();
_root.bullet.removeMovieClip();
_root.bullet_boss.removeMovieClip();
_root.bubbles.removeMovieClip();
_root.land1.removeMovieClip();
_root.targets.removeMovieClip();
_root.targets2.removeMovieClip();
_root.boss.removeMovieClip();
_root.boom.removeMovieClip();
_root.panel.removeMovieClip();
_root.sound_fuel.removeMovieClip();
_root.sound_change_weapon.removeMovieClip();
_root.back_score.removeMovieClip();
_root.backback.removeMovieClip();
_root.back_prev.removeMovieClip();
_root.sound_bax.removeMovieClip();
_root.plane.shield.removeMovieClip();
_root.gotoAndStop(3);
}
}
// unknown tag 88 length 63
button 205 {
on (release) {
stopAllSounds();
_root.back_menu.gotoAndPlay(20);
}
}
button 208 {
on (release) {
_root.s_sound.stop();
_root.sss = 0;
gotoAndPlay(2);
}
}
button 211 {
on (release) {
_root.s_sound.start(0, 99999);
_root.sss = 1;
gotoAndPlay(1);
}
}
movieClip 212 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 214 {
frame 1 {
stop();
}
}
movieClip 216 {
frame 1 {
stop();
}
}
movieClip 218 PANEL {
}
movieClip 221 text02 {
}
movieClip 222 targets2 {
}
movieClip 234 fuelcrash {
frame 6 {
this.unloadMovie();
}
}
movieClip 251 fuelidle {
}
movieClip 252 fuel {
frame 1 {
stop();
}
}
movieClip 255 {
}
movieClip 256 fuels {
}
movieClip 267 {
}
movieClip 270 {
}
movieClip 272 {
}
movieClip 277 {
}
movieClip 278 plane {
}
movieClip 285 {
}
movieClip 296 {
frame 6 {
this.unloadMovie();
}
}
movieClip 297 {
frame 1 {
stop();
}
}
movieClip 298 {
}
movieClip 299 targets1 {
}
movieClip 312 land1_1 {
}
movieClip 317 land1_2 {
}
movieClip 321 progress {
frame 1 {
stop();
}
}
frame 1 {
gamename = 'cyberfish';
domain_parts = _url.split('://');
real_domain = domain_parts[1].split('/');
hostingdomain = real_domain[0];
if (hostingdomain == '') {
hostingdomain = 'unknown';
}
savedomain1 = 'gamedev.dev.spilgames.com';
savedomain2 = 'www8.agame.com';
if (hostingdomain == savedomain1 || hostingdomain == savedomain2) {
spilnetwerk = 'internal';
} else {
spilnetwerk = 'external';
}
_root.localization_url1 = 'http://www.agame.com/?utm_medium=brandedgames_' + spilnetwerk + '&utm_campaign=' + gamename + '&utm_source=' + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.localization_portal = 'tweens';
if (_root.localization_portal == 'game_com_cn') {
this.mainscreen_moregames.onRelease = function () {
getURL(_root.localization_url1, '_blank');
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL(_root.localization_url1 + '&utm_content=button_mainscreen_moregames', '_blank');
};
}
total = 0;
bestlev1score = 0;
bestlev2score = 0;
bestlev3score = 0;
bestlev4score = 0;
bestlev5score = 0;
sss = 1;
levelaccess = 1;
if (getBytesLoaded() == getBytesTotal()) {
this.key_play._visible = 1;
_root.progressbar.gotoAndPlay(100);
output = 100;
} else {
this.key_play._visible = 0;
loading._xscale = (getBytesLoaded() / getBytesTotal()) * 100;
output = Math.ceil((getBytesLoaded() / getBytesTotal()) * 100);
_root.progressbar.gotoAndPlay(output);
outputFrame = getBytesTotal();
loaded = getBytesLoaded();
}
}
button 328 {
on (release) {
gotoAndPlay(3);
}
}
movieClip 334 {
}
movieClip 335 {
}
movieClip 336 {
}
movieClip 346 {
}
movieClip 347 {
}
movieClip 350 {
}
movieClip 351 {
}
movieClip 354 {
}
movieClip 355 {
}
movieClip 358 {
}
movieClip 359 {
}
movieClip 362 {
}
movieClip 363 {
}
movieClip 366 {
}
movieClip 367 {
}
movieClip 369 {
}
movieClip 372 {
}
movieClip 373 {
}
movieClip 375 {
}
movieClip 378 {
}
movieClip 379 {
}
movieClip 382 {
}
movieClip 383 {
}
movieClip 386 {
}
movieClip 387 {
}
movieClip 389 {
}
movieClip 391 {
}
movieClip 393 {
}
movieClip 396 {
}
movieClip 397 {
}
movieClip 399 {
}
movieClip 401 {
}
movieClip 403 {
}
movieClip 405 {
}
movieClip 407 {
}
movieClip 409 {
}
movieClip 411 {
}
movieClip 413 {
}
movieClip 415 {
}
movieClip 417 {
}
movieClip 419 {
}
movieClip 421 {
}
movieClip 423 {
}
movieClip 425 {
}
movieClip 427 {
}
movieClip 429 {
}
movieClip 431 {
}
movieClip 433 {
}
movieClip 435 {
}
movieClip 437 {
}
movieClip 439 {
}
movieClip 441 {
}
movieClip 443 {
}
movieClip 445 {
}
movieClip 447 {
}
movieClip 449 {
}
movieClip 451 {
}
movieClip 453 {
}
movieClip 456 {
}
movieClip 457 {
}
movieClip 458 {
frame 1 {
gotoAndStop(_root.localization_branding_nr);
}
}
movieClip 459 {
}
movieClip 461 {
}
movieClip 463 {
frame 90 {
}
frame 91 {
stop();
}
}
movieClip 466 {
frame 1 {
if (_root.localization_portal == 'game_com_cn') {
this.logo_intro.onRelease = function () {
getURL(_root.localization_url1, '_blank');
};
} else {
this.logo_intro.onRelease = function () {
getURL(_root.localization_url1 + '&utm_content=logo_intro', '_blank');
};
}
}
frame 90 {
stop();
}
}
movieClip 468 {
}
movieClip 470 {
}
movieClip 472 {
frame 89 {
stop();
}
}
movieClip 476 {
}
movieClip 478 {
}
movieClip 480 {
frame 89 {
stop();
}
}
movieClip 483 {
frame 89 {
stop();
}
}
movieClip 484 {
frame 1 {
if (_root.localization_portal == 'family') {
gotoAndStop(1);
}
if (_root.localization_portal == 'tweens') {
gotoAndStop(2);
}
if (_root.localization_portal == 'girl') {
gotoAndStop(3);
}
if (_root.localization_portal == 'game_com_cn') {
gotoAndStop(4);
}
}
}
frame 2 {
gotoAndPlay(1);
}
frame 3 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
if (_root.localization_portal == 'game_com_cn') {
this.mainscreen_moregames.onRelease = function () {
getURL(_root.localization_url1, '_blank');
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL(_root.localization_url1 + '&utm_content=button_mainscreen_moregames', '_blank');
};
}
__com_mochibot__('04f3f021', this, 10301, true);
stop();
stopAllSounds();
this.attachMovie('backback', 'backback', 1000);
this.attachMovie('back_newgame', 'back_newgame', 1001);
this.attachMovie('back_next', 'back_next', 1002);
if (sss == 2) {
key_sound2._visible = 1;
key_sound3._visible = 0;
var s_sound = new Sound();
s_sound.attachSound('Electron-vika-7274.mp3');
s_sound.start(0, 99999);
}
onEnterFrame = function () {
if (sss == 1) {
key_sound2._visible = 1;
key_sound3._visible = 0;
var v1 = new Sound();
v1.attachSound('Electron-vika-7274.mp3');
v1.start(0, 99999);
sss = 2;
}
if (sss == 0) {
stopAllSounds();
key_sound2._visible = 0;
key_sound3._visible = 1;
}
};
}
button 489 {
on (release) {
back_next.gotoAndPlay(20);
}
}
button 492 {
on (release) {
back_newgame.gotoAndPlay(20);
}
}
button 495 {
on (release) {
sss = 1;
}
}
// unknown tag 88 length 69
movieClip 514 {
frame 1 {
gotoAndStop(_root.localization_language_nr);
}
}
movieClip 515 {
}
button 519 {
on (release) {
sss = 0;
}
}
movieClip 522 back {
}
movieClip 525 back4 {
}
movieClip 535 {
}
movieClip 543 land4_1 {
}
movieClip 546 {
frame 1 {
stop();
}
}
movieClip 548 {
}
movieClip 549 {
}
button 554 {
on (release) {
getURL('mailto:in-finity@in-finity.ru', '');
}
}
frame 4 {
stop();
stopAllSounds();
this.attachMovie('backback', 'backback', 1000);
key_lev1._visible = 0;
key_lev2._visible = 0;
key_lev3._visible = 0;
key_lev4._visible = 0;
key_lev5._visible = 0;
if (levelaccess == 1) {
key_lev1._visible = 1;
key_lev2._visible = 0;
key_lev3._visible = 0;
key_lev4._visible = 0;
key_lev5._visible = 0;
}
if (levelaccess == 2) {
key_lev1._visible = 1;
key_lev2._visible = 1;
key_lev3._visible = 0;
key_lev4._visible = 0;
key_lev5._visible = 0;
}
if (levelaccess == 3) {
key_lev1._visible = 1;
key_lev2._visible = 1;
key_lev3._visible = 1;
key_lev4._visible = 0;
key_lev5._visible = 0;
}
if (levelaccess == 4) {
key_lev1._visible = 1;
key_lev2._visible = 1;
key_lev3._visible = 1;
key_lev4._visible = 1;
key_lev5._visible = 0;
}
if (levelaccess == 5) {
key_lev1._visible = 1;
key_lev2._visible = 1;
key_lev3._visible = 1;
key_lev4._visible = 1;
key_lev5._visible = 1;
}
if (levelaccess == 6) {
key_lev1._visible = 1;
key_lev2._visible = 1;
key_lev3._visible = 1;
key_lev4._visible = 1;
key_lev5._visible = 1;
}
}
button 559 {
on (release) {
_root.gotoAndPlay(5);
}
}
movieClip 561 {
}
button 564 {
on (release) {
_root.gotoAndPlay(7);
}
}
movieClip 566 {
}
button 570 {
on (release) {
_root.gotoAndPlay(9);
}
}
movieClip 571 {
}
button 574 {
on (release) {
_root.gotoAndPlay(11);
}
}
movieClip 576 {
}
button 579 {
on (release) {
_root.gotoAndPlay(13);
}
}
movieClip 581 {
}
frame 5 {
function KEYS() {
if (Key.isDown(38)) {
if (plane._y > 2) {
yspeed -= power;
} else {
plane._y = 2;
yspeed = 0;
}
}
if (Key.isDown(40)) {
if (plane._y < 402) {
yspeed += power;
} else {
plane._y = 402;
yspeed = 0;
}
}
if (Key.isDown(39)) {
speed += speed < speed_limit ? 1 : 0;
if (plane._x < 585) {
xspeed += power;
} else {
plane._x = 585;
xspeed = 0;
}
} else {
speed -= speed > 6 ? 1 : 0;
}
if (Key.isDown(37)) {
speed -= speed > 4 ? 1 : 0;
if (plane._x > 10) {
xspeed -= power;
} else {
plane._x = 10;
xspeed = 0;
}
} else {
speed += speed < 6 ? 1 : 0;
}
if (Key.isDown(32)) {
plane.gun.play();
}
if (plane._y < 0) {
plane._y = 0;
yspeed = 0;
}
if (plane._y > 410) {
plane._y = 410;
yspeed = 0;
}
if (plane._x < 10) {
plane._x = 10;
xspeed = 0;
}
if (plane._x > 600) {
plane._x = 600;
xspeed = 0;
}
xspeed *= friction;
yspeed *= friction;
if (xspeed < 0.5 && xspeed > 0) {
xspeed = 0;
}
if (yspeed < 0.5 && yspeed > 0) {
yspeed = 0;
}
plane._y += Math.ceil(yspeed);
plane._x += Math.ceil(xspeed);
}
function LAND() {
land1._x -= speed;
land2._x -= speed / 5;
fuels._x -= speed / 1.5;
targets._x -= speed;
targets2._x -= speed / 1.5;
i = 1;
while (i < count_bonus + 1) {
(eval('this.targets.bonus' + i))._x += speed / 3;
++i;
}
fuel_level -= 0.1;
panel.fuel_level.gotoAndPlay(Math.ceil(fuel_level));
panel.shield_level.gotoAndPlay(Math.ceil(plane_live));
if (fuel_level < 10) {
yspeed += 0.6;
}
if (fuel_level < 0) {
yspeed += 1;
}
if (fuel_level < 0 && plane._y > 390) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
back_score.play(2);
}
}
function PLANE_HITS() {
if (this.land1.hitTest(this.plane._x, this.plane._y, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y + 17, true) || this.land1.hitTest(this.plane._x + 25, this.plane._y + 0, true) || this.land1.hitTest(this.plane._x + 25, this.plane._y + 35, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y + 35, true) || this.land1.hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.play(2);
}
i = 1;
while (i < count_bonus + 1) {
if (((eval('this.targets.bonus' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && plane_on_scene_flag == 1) {
if (i == 1) {
(eval('this.targets.bonus' + i)).unloadMovie();
this.plane.gun2.unloadMovie();
this.plane.attachMovie('gun1', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 27;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Easy Gun';
}
if (i == 2) {
(eval('this.targets.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.attachMovie('gun2', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 26;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Megablaster';
}
}
++i;
}
i = 1;
while (i < count_bonus + 1) {
if (((eval('this.targets2.bonus' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && plane_on_scene_flag == 1) {
if (i == 3) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.attachMovie('gun2', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 26;
this.sound_change_weapon.gotoAndPlay(2);
this.targets2.text02.unloadMovie();
weapon_type = 'Megablaster';
}
}
++i;
}
i = 1;
while (i < count_targets + 1) {
if ((eval('this.targets.t' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
(eval('this.targets.t' + i)).t.gotoAndStop(2);
plane_live -= 100;
back_score.gotoAndPlay(2);
}
++i;
}
i = 1;
while (i < count_targets2 + 1) {
if ((eval('this.targets2.t' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
(eval('this.targets2.t' + i)).t.gotoAndStop(2);
plane_live -= 100;
back_score.gotoAndPlay(2);
}
++i;
}
i = 1;
while (i < count_fuels + 1) {
if (((eval('this.fuels.f' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && fuel_level < 100 && plane_on_scene_flag == 1) {
fuel_level += 1;
this.sound_fuel.gotoAndPlay(2);
}
++i;
}
if (this.boss.hitTest(this.plane._x, this.plane._y, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y + 17, true) || this.boss.hitTest(this.plane._x + 25, this.plane._y + 0, true) || this.boss.hitTest(this.plane._x + 25, this.plane._y + 35, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y + 35, true) || this.boss.hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.play(2);
_root.boss.gotoAndStop(2);
}
}
function BOSS() {
boss._x -= boss._x > 550 ? speed / 5 : 0;
if (count++ > 50) {
bossnewy = 100 + Math.ceil(Math.random() * 280);
count = 0;
}
if (Math.abs(bossnewy - boss._y) < 50) {
if (bossnewy - boss._y > 0) {
bossnewy += 50;
} else {
bossnewy -= 50;
}
}
if (bossnewy - boss._y > 0) {
boss._y += 1;
} else {
boss._y -= 1;
}
if (boss._x < 600) {
boss.boss_idle.gun3.play();
}
}
stop();
stopAllSounds();
speed = 0;
speed_limit = 8;
lev = 0;
bullet_speed = 10;
plane_on_scene_flag = 1;
score = 0;
power = 1;
xspeed = 0;
yspeed = 0;
friction = 0.95;
fuel_level = 100;
count_fuels = 5;
count_bonus = 3;
count_targets = 10;
count_targets2 = 10;
count = 0;
boss_live = 20;
lev2 = 7777;
plane_live = 100;
weapon_type = 'Easy Gun';
fin = 0;
this.attachMovie('back', 'back', 1);
back._x = 0;
back._y = 0;
this.attachMovie('land1_2', 'land2', 5);
land2._x = 0;
land2._y = 100;
this.attachMovie('fuels', 'fuels', 19);
fuels._x = 1115;
fuels._y = 112;
this.attachMovie('plane', 'plane', 20);
plane._x = 10;
plane._y = 200;
this.plane.attachMovie('gun1', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 27;
this.attachMovie('bullet', 'bullet', 22);
bullet._x = -100;
this.attachMovie('bullet_boss', 'bullet_boss', 23);
bullet_boss._x = -100;
this.plane.attachMovie('shield', 'shield', 24);
this.attachMovie('bubbles', 'bubbles', 500);
bubbles._x = 640;
bubbles._y = 240;
this.attachMovie('land1_1', 'land1', 1000);
land1._x = 0;
land1._y = 208;
this.attachMovie('targets1', 'targets', 1010);
targets._x = 580;
targets._y = 50;
this.attachMovie('targets2', 'targets2', 1011);
targets2._x = 1100;
targets2._y = 100;
this.attachMovie('bossboss', 'boss', 1012);
boss._x = 2700;
boss._y = 250;
this.attachMovie('boom', 'boom', 1030);
boom._x = -100;
this.attachMovie('PANEL', 'panel', 1050);
this.attachMovie('sound_fuel', 'sound_fuel', 2000);
this.attachMovie('sound_change_weapon', 'sound_change_weapon', 2001);
this.attachMovie('sound_bax', 'sound_bax', 2002);
this.attachMovie('back_menu', 'back_menu', 3000);
this.attachMovie('backback', 'backback', 3001);
this.attachMovie('back_score', 'back_score', 3002);
targets2.text02._visible = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('OCEAN-Vika-9907.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('OCEAN-Vika-9907.mp3');
panel.key_sound.gotoAndStop(2);
}
PLACE_BULLET = function (tgt) {
++lev;
var p = {'x': tgt._x, 'y': tgt._y};
tgt._parent.localToGlobal(p);
globalToLocal(p);
var d = bullet.duplicateMovieClip('b100' + lev, 100 + lev);
d._x = p.x;
d._y = p.y;
d.onEnterFrame = function () {
this._x += bullet_speed;
if (this._x < 0 || this._x > 640 || this._y < 0 || this._y > 480) {
this.removeMovieClip();
}
if (land1.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
sound_bax.play(2);
}
if (boss.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
boss_live -= 1;
sound_bax.play(2);
boss.boss_idle.live.gotoAndStop(Math.ceil(boss_live) * 5);
if (boss_live == 0) {
if (_root.levelaccess < 2) {
_root.levelaccess += 1;
}
_root.boss.gotoAndStop(2);
}
}
i = 1;
while (i < count_targets + 1) {
if ((eval('this.targets.t' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.targets.t' + i)).t.gotoAndStop(2);
score += 10;
if (i == 5) {
_root.targets.attachMovie('bonus_gun1', 'bonus1', 1005);
_root.targets.bonus1._x = _root.targets.t5._x;
_root.targets.bonus1._y = _root.targets.t5._y;
}
if (i == 9) {
_root.targets.attachMovie('bonus_gun2', 'bonus2', 1006);
_root.targets.bonus2._x = _root.targets.t9._x;
_root.targets.bonus2._y = _root.targets.t9._y;
}
}
++i;
}
i = 1;
while (i < count_targets2 + 1) {
if ((eval('this.targets2.t' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.targets2.t' + i)).t.gotoAndStop(2);
score += 10;
if (i == 2) {
_root.targets2.attachMovie('bonus_gun2', 'bonus3', 1007);
_root.targets2.bonus3._x = _root.targets2.t2._x;
_root.targets2.bonus3._y = _root.targets2.t2._y;
targets2.text02._visible = 1;
}
}
++i;
}
i = 1;
while (i < count_fuels + 1) {
if ((eval('this.fuels.f' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.fuels.f' + i)).gotoAndStop(2);
if (i == 1) {
_root.fuels.text01.unloadMovie();
}
score += 10;
}
++i;
}
};
};
PLACE_BULLET2 = function (tgt) {
++lev2;
var v3 = {'x': tgt._x, 'y': tgt._y};
tgt._parent.localToGlobal(v3);
globalToLocal(v3);
var v4 = bullet_boss.duplicateMovieClip('b' + lev2, lev2);
v4._x = v3.x;
v4._y = v3.y;
v4.onEnterFrame = function () {
this._x -= bullet_speed;
if (this._x < 0 || this._x > 640 || this._y < 0 || this._y > 480) {
this.removeMovieClip();
}
if (land1.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (plane.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
plane_live -= 20;
plane.shield.play(2);
if (_root.plane._x > 20) {
_root.plane._x -= 10;
}
if (plane_live == 0) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
_root.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.gotoAndPlay(2);
}
}
};
};
onEnterFrame = function () {
KEYS();
LAND();
PLANE_HITS();
BOSS();
};
}
frame 6 {
if (_root.localization_portal == 'game_com_cn') {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1, '_blank');
};
} else {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1 + '&utm_content=button_gameover_moregames', '_blank');
};
}
stop();
stopAllSounds();
this.attachMovie('backback', 'backback', 3001);
this.attachMovie('back_prev', 'back_prev', 3002);
this.attachMovie('back_menu', 'back_menu', 3003);
onEnterFrame = function () {
_root.total = _root.bestlev1score + _root.bestlev2score + _root.bestlev3score + _root.bestlev4score + _root.bestlev5score;
if (_root.score > _root.bestlev1score) {
bestlev1score = score;
}
if (levelaccess > 1 && fin == 1 && plane_on_scene_flag == 1) {
key_nextlevel._visible = 1;
text_epicfail._visible = 0;
text_congratulations._visible = 1;
key_restart._x = 25;
key_menu._x = 225;
key_nextlevel._x = 425;
} else {
key_nextlevel._visible = 0;
text_epicfail._visible = 1;
text_congratulations._visible = 0;
key_restart._x = 117;
key_menu._x = 337;
}
};
}
button 584 {
on (release) {
_root.back_prev.gotoAndPlay(20);
}
}
button 587 {
on (release) {
_root.back_menu.gotoAndPlay(20);
}
}
button 590 {
on (release) {
_root.back_next.gotoAndPlay(20);
}
}
// unknown tag 88 length 70
movieClip 597 {
}
movieClip 599 {
}
frame 7 {
function KEYS() {
if (Key.isDown(38)) {
if (plane._y > 2) {
yspeed -= power;
} else {
plane._y = 2;
yspeed = 0;
}
}
if (Key.isDown(40)) {
if (plane._y < 402) {
yspeed += power;
} else {
plane._y = 402;
yspeed = 0;
}
}
if (Key.isDown(39)) {
speed += speed < speed_limit ? 1 : 0;
if (plane._x < 585) {
xspeed += power;
} else {
plane._x = 585;
xspeed = 0;
}
} else {
speed -= speed > 6 ? 1 : 0;
}
if (Key.isDown(37)) {
speed -= speed > 4 ? 1 : 0;
if (plane._x > 10) {
xspeed -= power;
} else {
plane._x = 10;
xspeed = 0;
}
} else {
speed += speed < 6 ? 1 : 0;
}
if (Key.isDown(32)) {
plane.gun.play();
}
if (plane._y < 0) {
plane._y = 0;
yspeed = 0;
}
if (plane._y > 410) {
plane._y = 410;
yspeed = 0;
}
if (plane._x < 10) {
plane._x = 10;
xspeed = 0;
}
if (plane._x > 600) {
plane._x = 600;
xspeed = 0;
}
xspeed *= friction;
yspeed *= friction;
if (xspeed < 0.5 && xspeed > 0) {
xspeed = 0;
}
if (yspeed < 0.5 && yspeed > 0) {
yspeed = 0;
}
plane._y += Math.ceil(yspeed);
plane._x += Math.ceil(xspeed);
}
function LAND() {
land1._x -= speed;
land2._x -= speed / 30;
fuels._x -= speed / 1.5;
targets._x -= speed;
targets2._x -= speed / 1.5;
i = 1;
while (i < count_bonus + 1) {
(eval('this.targets.bonus' + i))._x += speed / 3;
++i;
}
fuel_level -= 0.1;
panel.fuel_level.gotoAndPlay(Math.ceil(fuel_level));
panel.shield_level.gotoAndPlay(Math.ceil(plane_live));
if (fuel_level < 10) {
yspeed += 0.6;
}
if (fuel_level < 0) {
yspeed += 1;
}
if (fuel_level < 0 && plane._y > 390) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
back_score.play(2);
}
}
function PLANE_HITS() {
if (this.land1.hitTest(this.plane._x, this.plane._y, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y + 17, true) || this.land1.hitTest(this.plane._x + 25, this.plane._y + 0, true) || this.land1.hitTest(this.plane._x + 25, this.plane._y + 35, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y + 35, true) || this.land1.hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.play(2);
}
i = 1;
while (i < count_bonus + 1) {
if (((eval('this.targets.bonus' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && plane_on_scene_flag == 1) {
if (i == 1) {
(eval('this.targets.bonus' + i)).unloadMovie();
this.plane.gun2.unloadMovie();
this.plane.attachMovie('gun1', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 27;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Easy Gun';
}
if (i == 2) {
(eval('this.targets.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.attachMovie('gun2', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 26;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Megablaster';
}
}
++i;
}
i = 1;
while (i < count_bonus + 1) {
if (((eval('this.targets2.bonus' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && plane_on_scene_flag == 1) {
if (i == 3) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.attachMovie('gun2', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 26;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Megablaster';
}
if (i == 4) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.targets2.text03.unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 5) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 6) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 7) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 8) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
}
++i;
}
i = 1;
while (i < count_targets + 1) {
if ((eval('this.targets.t' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
(eval('this.targets.t' + i)).t.gotoAndStop(2);
plane_live -= 100;
back_score.gotoAndPlay(2);
}
++i;
}
i = 1;
while (i < count_targets2 + 1) {
if ((eval('this.targets2.t' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
(eval('this.targets2.t' + i)).t.gotoAndStop(2);
plane_live -= 100;
back_score.gotoAndPlay(2);
}
++i;
}
i = 1;
while (i < count_fuels + 1) {
if (((eval('this.fuels.f' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && fuel_level < 100 && plane_on_scene_flag == 1) {
fuel_level += 1;
this.sound_fuel.gotoAndPlay(2);
}
++i;
}
if (this.boss.hitTest(this.plane._x, this.plane._y, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y + 17, true) || this.boss.hitTest(this.plane._x + 25, this.plane._y + 0, true) || this.boss.hitTest(this.plane._x + 25, this.plane._y + 35, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y + 35, true) || this.boss.hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.play(2);
_root.boss.gotoAndStop(2);
}
if (_root.targets2._x > -2260 && _root.targets2._x < -1600) {
_root.targets2.t17.t.tt.gun3.play();
}
if (_root.targets2._x > -3380 && _root.targets2._x < -2740) {
_root.targets2.t18.t.tt.gun3.play();
}
if (_root.targets2._x > -5700 && _root.targets2._x < -5060) {
_root.targets2.t19.t.tt.gun3.play();
}
if (_root.targets2._x > -6920 && _root.targets2._x < -6280) {
_root.targets2.t20.t.tt.gun3.play();
}
}
function BOSS() {
boss._x -= boss._x > 550 ? speed / 5 : 0;
if (count++ > 50) {
bossnewy = 100 + Math.ceil(Math.random() * 280);
count = 0;
}
if (Math.abs(bossnewy - boss._y) < 50) {
if (bossnewy - boss._y > 0) {
bossnewy += 50;
} else {
bossnewy -= 50;
}
}
if (bossnewy - boss._y > 0) {
boss._y += 1;
} else {
boss._y -= 1;
}
if (boss._x < 600) {
boss.boss_idle.gun3.play();
}
}
stop();
stopAllSounds();
speed = 0;
speed_limit = 8;
lev = 0;
bullet_speed = 10;
plane_on_scene_flag = 1;
score = 0;
power = 1;
xspeed = 0;
yspeed = 0;
friction = 0.95;
fuel_level = 100;
count_fuels = 10;
count_bonus = 8;
count_targets = 10;
count_targets2 = 20;
count = 0;
boss_live = 20;
lev2 = 7777;
plane_live = 80;
weapon_type = 'Easy Gun';
fin = 0;
this.attachMovie('back2', 'back', 1);
back._x = 0;
back._y = 0;
this.attachMovie('land2_2', 'land2', 5);
land2._x = -150;
land2._y = 150;
this.attachMovie('fuels2', 'fuels', 19);
fuels._x = 0;
fuels._y = 0;
this.attachMovie('plane', 'plane', 20);
plane._x = 10;
plane._y = 200;
this.plane.attachMovie('gun1', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 27;
this.attachMovie('bullet', 'bullet', 22);
bullet._x = -100;
this.attachMovie('bullet_boss', 'bullet_boss', 23);
bullet_boss._x = -100;
this.plane.attachMovie('shield', 'shield', 24);
this.attachMovie('bubbles2', 'bubbles', 500);
bubbles._x = 640;
bubbles._y = 240;
this.attachMovie('land2_1', 'land1', 1000);
land1._x = 0;
land1._y = 0;
this.attachMovie('targets2_1', 'targets', 1010);
targets._x = 0;
targets._y = 0;
this.attachMovie('targets2_2', 'targets2', 1011);
targets2._x = 0;
targets2._y = 0;
this.attachMovie('bossboss', 'boss', 1012);
boss._x = 2700;
boss._y = 250;
this.attachMovie('boom', 'boom', 1030);
boom._x = -100;
this.attachMovie('PANEL', 'panel', 1050);
this.attachMovie('sound_fuel', 'sound_fuel', 2000);
this.attachMovie('sound_change_weapon', 'sound_change_weapon', 2001);
this.attachMovie('sound_bax', 'sound_bax', 2002);
this.attachMovie('back_menu', 'back_menu', 3000);
this.attachMovie('backback', 'backback', 3001);
this.attachMovie('back_score', 'back_score', 3002);
targets2.text02._visible = 0;
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('OCEAN-Vika-9907.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('OCEAN-Vika-9907.mp3');
panel.key_sound.gotoAndStop(2);
}
PLACE_BULLET = function (tgt) {
++lev;
var p = {'x': tgt._x, 'y': tgt._y};
tgt._parent.localToGlobal(p);
globalToLocal(p);
var d = bullet.duplicateMovieClip('b100' + lev, 100 + lev);
d._x = p.x;
d._y = p.y;
d.onEnterFrame = function () {
this._x += bullet_speed;
if (this._x < 0 || this._x > 640 || this._y < 0 || this._y > 480) {
this.removeMovieClip();
}
if (land1.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
sound_bax.play(2);
}
if (boss.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
boss_live -= 1;
sound_bax.play(2);
boss.boss_idle.live.gotoAndStop(Math.ceil(boss_live) * 5);
if (boss_live == 0) {
if (_root.levelaccess < 3) {
_root.levelaccess += 1;
}
_root.boss.gotoAndStop(2);
}
}
i = 1;
while (i < count_targets + 1) {
if ((eval('this.targets.t' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.targets.t' + i)).t.gotoAndStop(2);
score += 10;
if (i == 5) {
_root.targets.attachMovie('bonus_gun1', 'bonus1', 1005);
_root.targets.bonus1._x = _root.targets.t5._x;
_root.targets.bonus1._y = _root.targets.t5._y;
}
if (i == 9) {
_root.targets.attachMovie('bonus_gun2', 'bonus2', 1006);
_root.targets.bonus2._x = _root.targets.t9._x;
_root.targets.bonus2._y = _root.targets.t9._y;
}
}
++i;
}
i = 1;
while (i < count_targets2 + 1) {
if ((eval('this.targets2.t' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.targets2.t' + i)).t.gotoAndStop(2);
score += 15;
if (i == 3) {
_root.targets2.attachMovie('bonus_gun2', 'bonus3', 1007);
_root.targets2.bonus3._x = _root.targets2.t3._x;
_root.targets2.bonus3._y = _root.targets2.t3._y;
}
}
++i;
}
i = 1;
while (i < count_fuels + 1) {
if ((eval('this.fuels.f' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.fuels.f' + i)).gotoAndStop(2);
if (i == 1) {
_root.fuels.text01.unloadMovie();
}
score += 10;
}
++i;
}
};
};
PLACE_BULLET2 = function (tgt) {
++lev2;
var v3 = {'x': tgt._x, 'y': tgt._y};
tgt._parent.localToGlobal(v3);
globalToLocal(v3);
var v4 = bullet_boss.duplicateMovieClip('b' + lev2, lev2);
v4._x = v3.x;
v4._y = v3.y;
v4.onEnterFrame = function () {
this._x -= bullet_speed;
if (this._x < 0 || this._x > 640 || this._y < 0 || this._y > 480) {
this.removeMovieClip();
}
if (land1.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (plane.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
plane_live -= 20;
plane.shield.play(2);
if (_root.plane._x > 20) {
_root.plane._x -= 10;
}
if (plane_live == 0) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
_root.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.gotoAndPlay(2);
}
}
};
};
onEnterFrame = function () {
KEYS();
LAND();
PLANE_HITS();
BOSS();
};
}
movieClip 606 back2 {
}
movieClip 618 land2_1 {
}
movieClip 619 fuels2 {
}
movieClip 620 targets2_1 {
}
movieClip 622 {
}
movieClip 623 targets2_2 {
}
frame 8 {
if (_root.localization_portal == 'game_com_cn') {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1, '_blank');
};
} else {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1 + '&utm_content=button_gameover_moregames', '_blank');
};
}
stop();
stopAllSounds();
this.attachMovie('backback', 'backback', 3001);
this.attachMovie('back_prev', 'back_prev', 3002);
this.attachMovie('back_menu', 'back_menu', 3003);
onEnterFrame = function () {
_root.total = _root.bestlev1score + _root.bestlev2score + _root.bestlev3score + _root.bestlev4score + _root.bestlev5score;
if (_root.score > _root.bestlev2score) {
bestlev2score = score;
}
if (levelaccess > 2 && fin == 1 && plane_on_scene_flag == 1) {
key_nextlevel._visible = 1;
text_epicfail._visible = 0;
text_congratulations._visible = 1;
key_restart._x = 25;
key_menu._x = 225;
key_nextlevel._x = 425;
} else {
key_nextlevel._visible = 0;
text_epicfail._visible = 1;
text_congratulations._visible = 0;
key_restart._x = 117;
key_menu._x = 337;
}
};
}
frame 9 {
function KEYS() {
if (Key.isDown(38)) {
if (plane._y > 2) {
yspeed -= power;
} else {
plane._y = 2;
yspeed = 0;
}
}
if (Key.isDown(40)) {
if (plane._y < 402) {
yspeed += power;
} else {
plane._y = 402;
yspeed = 0;
}
}
if (Key.isDown(39)) {
speed += speed < speed_limit ? 1 : 0;
if (plane._x < 585) {
xspeed += power;
} else {
plane._x = 585;
xspeed = 0;
}
} else {
speed -= speed > 6 ? 1 : 0;
}
if (Key.isDown(37)) {
speed -= speed > 4 ? 1 : 0;
if (plane._x > 10) {
xspeed -= power;
} else {
plane._x = 10;
xspeed = 0;
}
} else {
speed += speed < 6 ? 1 : 0;
}
if (Key.isDown(32)) {
plane.gun.play();
}
if (plane._y < 0) {
plane._y = 0;
yspeed = 0;
}
if (plane._y > 410) {
plane._y = 410;
yspeed = 0;
}
if (plane._x < 10) {
plane._x = 10;
xspeed = 0;
}
if (plane._x > 600) {
plane._x = 600;
xspeed = 0;
}
xspeed *= friction;
yspeed *= friction;
if (xspeed < 0.5 && xspeed > 0) {
xspeed = 0;
}
if (yspeed < 0.5 && yspeed > 0) {
yspeed = 0;
}
plane._y += Math.ceil(yspeed);
plane._x += Math.ceil(xspeed);
}
function LAND() {
land1._x -= speed;
land2._x -= speed / 10;
fuels._x -= speed / 1.5;
targets._x -= speed;
targets2._x -= speed / 1.5;
i = 1;
while (i < count_bonus + 1) {
(eval('this.targets.bonus' + i))._x += speed / 3;
++i;
}
fuel_level -= 0.1;
panel.fuel_level.gotoAndPlay(Math.ceil(fuel_level));
panel.shield_level.gotoAndPlay(Math.ceil(plane_live));
if (fuel_level < 10) {
yspeed += 0.6;
}
if (fuel_level < 0) {
yspeed += 1;
}
if (fuel_level < 0 && plane._y > 390) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
back_score.play(2);
}
}
function PLANE_HITS() {
if (this.land1.hitTest(this.plane._x, this.plane._y, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y + 17, true) || this.land1.hitTest(this.plane._x + 25, this.plane._y + 0, true) || this.land1.hitTest(this.plane._x + 25, this.plane._y + 35, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y + 35, true) || this.land1.hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.play(2);
}
i = 1;
while (i < count_bonus + 1) {
if (((eval('this.targets.bonus' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && plane_on_scene_flag == 1) {
}
++i;
}
i = 1;
while (i < count_bonus + 1) {
if (((eval('this.targets2.bonus' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && plane_on_scene_flag == 1) {
if (i == 1) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.gun2.unloadMovie();
this.plane.gun4.unloadMovie();
this.plane.attachMovie('gun2', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 26;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Megablaster';
}
if (i == 2) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.gun2.unloadMovie();
this.plane.gun4.unloadMovie();
this.plane.attachMovie('gun4', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 26;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Superlazer';
}
if (i == 3) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.gun2.unloadMovie();
this.plane.gun4.unloadMovie();
this.plane.attachMovie('gun1', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 27;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Easy Gun';
}
if (i == 4) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.gun2.unloadMovie();
this.plane.gun4.unloadMovie();
this.plane.attachMovie('gun2', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 26;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Megablaster';
}
if (i == 5) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 6) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 7) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 8) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 9) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 10) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 11) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 12) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 13) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 14) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 15) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
}
++i;
}
i = 1;
while (i < count_targets + 1) {
if ((eval('this.targets.t' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
(eval('this.targets.t' + i)).t.gotoAndStop(2);
plane_live -= 100;
back_score.gotoAndPlay(2);
}
++i;
}
i = 1;
while (i < count_targets2 + 1) {
if ((eval('this.targets2.t' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
(eval('this.targets2.t' + i)).t.gotoAndStop(2);
plane_live -= 100;
back_score.gotoAndPlay(2);
}
++i;
}
i = 1;
while (i < count_fuels + 1) {
if (((eval('this.fuels.f' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && fuel_level < 100 && plane_on_scene_flag == 1) {
fuel_level += 1;
this.sound_fuel.gotoAndPlay(2);
}
++i;
}
if (this.boss.hitTest(this.plane._x, this.plane._y, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y + 17, true) || this.boss.hitTest(this.plane._x + 25, this.plane._y + 0, true) || this.boss.hitTest(this.plane._x + 25, this.plane._y + 35, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y + 35, true) || this.boss.hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.play(2);
_root.boss.gotoAndStop(2);
}
if (_root.targets2._x > -1700 && _root.targets2._x < -1060) {
_root.targets2.t17.t.tt.gun3.play();
}
if (_root.targets2._x > -4700 && _root.targets2._x < -4060) {
_root.targets2.t18.t.tt.gun3.play();
}
if (_root.targets2._x > -6670 && _root.targets2._x < -6030) {
_root.targets2.t19.t.tt.gun3.play();
}
if (_root.targets2._x > -8660 && _root.targets2._x < -8000) {
_root.targets2.t20.t.tt.gun3.play();
}
if (_root.targets2._x > -10170 && _root.targets2._x < -9540) {
_root.targets2.t21.t.tt.gun3.play();
}
if (_root.targets2._x > -10370 && _root.targets2._x < -9740) {
_root.targets2.t22.t.tt.gun3.play();
}
}
function BOSS() {
boss._x -= boss._x > 550 ? speed / 5 : 0;
if (count++ > 50) {
bossnewy = 100 + Math.ceil(Math.random() * 280);
count = 0;
}
if (Math.abs(bossnewy - boss._y) < 50) {
if (bossnewy - boss._y > 0) {
bossnewy += 50;
} else {
bossnewy -= 50;
}
}
if (bossnewy - boss._y > 0) {
boss._y += 1;
} else {
boss._y -= 1;
}
if (boss._x < 600) {
boss.boss_idle.gun3.play();
}
}
stop();
stopAllSounds();
speed = 0;
speed_limit = 8;
lev = 0;
bullet_speed = 10;
plane_on_scene_flag = 1;
score = 0;
power = 1;
xspeed = 0;
yspeed = 0;
friction = 0.95;
fuel_level = 100;
count_fuels = 10;
count_bonus = 15;
count_targets = 11;
count_targets2 = 22;
count = 0;
boss_live = 40;
lev2 = 7777;
plane_live = 100;
weapon_type = 'Easy Gun';
fin = 0;
this.attachMovie('back3', 'back', 1);
back._x = 0;
back._y = 0;
this.attachMovie('land3_2', 'land2', 5);
land2._x = 0;
land2._y = 0;
this.attachMovie('fuels3', 'fuels', 19);
fuels._x = 0;
fuels._y = 0;
this.attachMovie('plane', 'plane', 20);
plane._x = 10;
plane._y = 200;
this.plane.attachMovie('gun1', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 27;
this.attachMovie('bullet', 'bullet', 22);
bullet._x = -100;
this.attachMovie('bullet_boss', 'bullet_boss', 23);
bullet_boss._x = -100;
this.plane.attachMovie('shield', 'shield', 24);
this.attachMovie('bubbles2', 'bubbles', 500);
bubbles._x = 640;
bubbles._y = 240;
this.attachMovie('land3_1', 'land1', 1000);
land1._x = 0;
land1._y = 0;
this.attachMovie('targets3_1', 'targets', 1010);
targets._x = 0;
targets._y = 0;
this.attachMovie('targets3_2', 'targets2', 1011);
targets2._x = 0;
targets2._y = 0;
this.attachMovie('bossboss', 'boss', 1012);
boss._x = 4000;
boss._y = 250;
this.attachMovie('boom', 'boom', 1030);
boom._x = -100;
this.attachMovie('PANEL', 'panel', 1050);
this.attachMovie('sound_fuel', 'sound_fuel', 2000);
this.attachMovie('sound_change_weapon', 'sound_change_weapon', 2001);
this.attachMovie('sound_bax', 'sound_bax', 2002);
this.attachMovie('back_menu', 'back_menu', 3000);
this.attachMovie('backback', 'backback', 3001);
this.attachMovie('back_score', 'back_score', 3002);
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('OCEAN-Vika-9907.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('OCEAN-Vika-9907.mp3');
panel.key_sound.gotoAndStop(2);
}
PLACE_BULLET = function (tgt) {
++lev;
var p = {'x': tgt._x, 'y': tgt._y};
tgt._parent.localToGlobal(p);
globalToLocal(p);
var d = bullet.duplicateMovieClip('b100' + lev, 100 + lev);
d._x = p.x;
d._y = p.y;
d.onEnterFrame = function () {
this._x += bullet_speed;
if (this._x < 0 || this._x > 640 || this._y < 0 || this._y > 480) {
this.removeMovieClip();
}
if (land1.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
sound_bax.play(2);
}
if (boss.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
boss_live -= 1;
sound_bax.play(2);
boss.boss_idle.live.gotoAndStop(Math.ceil(boss_live) * 2.5);
if (boss_live == 0) {
if (_root.levelaccess < 4) {
_root.levelaccess += 1;
}
_root.boss.gotoAndStop(2);
}
}
i = 1;
while (i < count_targets + 1) {
if ((eval('this.targets.t' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.targets.t' + i)).t.gotoAndStop(2);
score += 10;
}
++i;
}
i = 1;
while (i < count_targets2 + 1) {
if ((eval('this.targets2.t' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.targets2.t' + i)).t.gotoAndStop(2);
score += 15;
if (i == 2) {
_root.targets2.attachMovie('bonus_gun2', 'bonus1', 1005);
_root.targets2.bonus1._x = _root.targets2.t2._x;
_root.targets2.bonus1._y = _root.targets2.t2._y;
}
if (i == 3) {
_root.targets2.attachMovie('bonus_gun4', 'bonus2', 1006);
_root.targets2.bonus2._x = _root.targets2.t3._x;
_root.targets2.bonus2._y = _root.targets2.t3._y;
}
if (i == 6) {
_root.targets2.attachMovie('bonus_gun1', 'bonus3', 1007);
_root.targets2.bonus3._x = _root.targets2.t6._x;
_root.targets2.bonus3._y = _root.targets2.t6._y;
}
if (i == 7) {
_root.targets2.attachMovie('bonus_gun2', 'bonus4', 1008);
_root.targets2.bonus4._x = _root.targets2.t7._x;
_root.targets2.bonus4._y = _root.targets2.t7._y;
}
}
++i;
}
i = 1;
while (i < count_fuels + 1) {
if ((eval('this.fuels.f' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.fuels.f' + i)).gotoAndStop(2);
if (i == 1) {
_root.fuels.text01.unloadMovie();
}
score += 10;
}
++i;
}
};
};
PLACE_BULLET2 = function (tgt) {
++lev2;
var v3 = {'x': tgt._x, 'y': tgt._y};
tgt._parent.localToGlobal(v3);
globalToLocal(v3);
var v4 = bullet_boss.duplicateMovieClip('b' + lev2, lev2);
v4._x = v3.x;
v4._y = v3.y;
v4.onEnterFrame = function () {
this._x -= bullet_speed;
if (this._x < 0 || this._x > 640 || this._y < 0 || this._y > 480) {
this.removeMovieClip();
}
if (land1.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (plane.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
plane_live -= 20;
plane.shield.play(2);
if (_root.plane._x > 20) {
_root.plane._x -= 10;
}
if (plane_live == 0) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
_root.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.gotoAndPlay(2);
}
}
};
};
onEnterFrame = function () {
KEYS();
LAND();
PLANE_HITS();
BOSS();
};
}
movieClip 633 back3 {
}
movieClip 641 land3_2 {
}
movieClip 646 {
}
movieClip 657 land3_1 {
}
movieClip 658 fuels3 {
}
movieClip 665 {
}
movieClip 676 {
frame 6 {
this.unloadMovie();
}
}
movieClip 677 {
frame 1 {
stop();
}
}
movieClip 678 {
}
movieClip 679 targets3_1 {
}
frame 10 {
if (_root.localization_portal == 'game_com_cn') {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1, '_blank');
};
} else {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1 + '&utm_content=button_gameover_moregames', '_blank');
};
}
stop();
stopAllSounds();
this.attachMovie('backback', 'backback', 3001);
this.attachMovie('back_prev', 'back_prev', 3002);
this.attachMovie('back_menu', 'back_menu', 3003);
onEnterFrame = function () {
_root.total = _root.bestlev1score + _root.bestlev2score + _root.bestlev3score + _root.bestlev4score + _root.bestlev5score;
if (_root.score > _root.bestlev3score) {
bestlev3score = score;
}
if (levelaccess > 3 && fin == 1 && plane_on_scene_flag == 1) {
key_nextlevel._visible = 1;
text_epicfail._visible = 0;
text_congratulations._visible = 1;
key_restart._x = 25;
key_menu._x = 225;
key_nextlevel._x = 425;
} else {
key_nextlevel._visible = 0;
text_epicfail._visible = 1;
text_congratulations._visible = 0;
key_restart._x = 117;
key_menu._x = 337;
}
};
}
button 680 {
on (release) {
_root.back_next.gotoAndPlay(20);
}
}
frame 11 {
function KEYS() {
if (Key.isDown(38)) {
if (plane._y > 2) {
yspeed -= power;
} else {
plane._y = 2;
yspeed = 0;
}
}
if (Key.isDown(40)) {
if (plane._y < 402) {
yspeed += power;
} else {
plane._y = 402;
yspeed = 0;
}
}
if (Key.isDown(39)) {
speed += speed < speed_limit ? 1 : 0;
if (plane._x < 585) {
xspeed += power;
} else {
plane._x = 585;
xspeed = 0;
}
} else {
speed -= speed > 6 ? 1 : 0;
}
if (Key.isDown(37)) {
speed -= speed > 4 ? 1 : 0;
if (plane._x > 10) {
xspeed -= power;
} else {
plane._x = 10;
xspeed = 0;
}
} else {
speed += speed < 6 ? 1 : 0;
}
if (Key.isDown(32)) {
plane.gun.play();
}
if (plane._y < 0) {
plane._y = 0;
yspeed = 0;
}
if (plane._y > 410) {
plane._y = 410;
yspeed = 0;
}
if (plane._x < 10) {
plane._x = 10;
xspeed = 0;
}
if (plane._x > 600) {
plane._x = 600;
xspeed = 0;
}
xspeed *= friction;
yspeed *= friction;
if (xspeed < 0.5 && xspeed > 0) {
xspeed = 0;
}
if (yspeed < 0.5 && yspeed > 0) {
yspeed = 0;
}
plane._y += Math.ceil(yspeed);
plane._x += Math.ceil(xspeed);
}
function LAND() {
land1._x -= speed;
land2._x -= speed / 10;
fuels._x -= speed / 1.5;
targets._x -= speed;
targets2._x -= speed / 1.5;
i = 1;
while (i < count_bonus + 1) {
(eval('this.targets.bonus' + i))._x += speed / 3;
++i;
}
fuel_level -= 0.1;
panel.fuel_level.gotoAndPlay(Math.ceil(fuel_level));
panel.shield_level.gotoAndPlay(Math.ceil(plane_live));
if (fuel_level < 10) {
yspeed += 0.6;
}
if (fuel_level < 0) {
yspeed += 1;
}
if (fuel_level < 0 && plane._y > 390) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
back_score.play(2);
}
}
function PLANE_HITS() {
if (this.land1.hitTest(this.plane._x, this.plane._y, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y + 17, true) || this.land1.hitTest(this.plane._x + 25, this.plane._y + 0, true) || this.land1.hitTest(this.plane._x + 25, this.plane._y + 35, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y + 35, true) || this.land1.hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.play(2);
}
i = 1;
while (i < count_bonus + 1) {
if (((eval('this.targets.bonus' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && plane_on_scene_flag == 1) {
}
++i;
}
i = 1;
while (i < count_bonus + 1) {
if (((eval('this.targets2.bonus' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && plane_on_scene_flag == 1) {
if (i == 1) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.gun2.unloadMovie();
this.plane.gun4.unloadMovie();
this.plane.attachMovie('gun2', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 26;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Megablaster';
}
if (i == 2) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.gun2.unloadMovie();
this.plane.gun4.unloadMovie();
this.plane.attachMovie('gun4', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 26;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Superlazer';
}
if (i == 3) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.gun2.unloadMovie();
this.plane.gun4.unloadMovie();
this.plane.attachMovie('gun1', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 27;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Easy Gun';
}
if (i == 4) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.gun2.unloadMovie();
this.plane.gun4.unloadMovie();
this.plane.attachMovie('gun2', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 26;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Megablaster';
}
if (i == 5) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 6) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 7) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 8) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 9) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 10) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 11) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 12) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 13) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 14) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 15) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
}
++i;
}
i = 1;
while (i < count_targets + 1) {
if ((eval('this.targets.t' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
(eval('this.targets.t' + i)).t.gotoAndStop(2);
plane_live -= 100;
back_score.gotoAndPlay(2);
}
++i;
}
i = 1;
while (i < count_targets2 + 1) {
if ((eval('this.targets2.t' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
(eval('this.targets2.t' + i)).t.gotoAndStop(2);
plane_live -= 100;
back_score.gotoAndPlay(2);
}
++i;
}
i = 1;
while (i < count_fuels + 1) {
if (((eval('this.fuels.f' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && fuel_level < 100 && plane_on_scene_flag == 1) {
fuel_level += 1;
this.sound_fuel.gotoAndPlay(2);
}
++i;
}
if (this.boss.hitTest(this.plane._x, this.plane._y, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y + 17, true) || this.boss.hitTest(this.plane._x + 25, this.plane._y + 0, true) || this.boss.hitTest(this.plane._x + 25, this.plane._y + 35, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y + 35, true) || this.boss.hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.play(2);
_root.boss.gotoAndStop(2);
}
if (_root.targets2._x > -840 && _root.targets2._x < -200) {
_root.targets2.t31.t.tt.gun3.play();
}
if (_root.targets2._x > -1540 && _root.targets2._x < -900) {
_root.targets2.t32.t.tt.gun3.play();
}
if (_root.targets2._x > -2280 && _root.targets2._x < -1640) {
_root.targets2.t33.t.tt.gun3.play();
}
if (_root.targets2._x > -2940 && _root.targets2._x < -2300) {
_root.targets2.t34.t.tt.gun3.play();
}
if (_root.targets2._x > -3880 && _root.targets2._x < -3240) {
_root.targets2.t35.t.tt.gun3.play();
}
if (_root.targets2._x > -4200 && _root.targets2._x < -3580) {
_root.targets2.t36.t.tt.gun3.play();
}
if (_root.targets2._x > -4740 && _root.targets2._x < -4100) {
_root.targets2.t37.t.tt.gun3.play();
}
if (_root.targets2._x > -5480 && _root.targets2._x < -4840) {
_root.targets2.t38.t.tt.gun3.play();
}
if (_root.targets2._x > -5920 && _root.targets2._x < -5340) {
_root.targets2.t39.t.tt.gun3.play();
}
if (_root.targets2._x > -6960 && _root.targets2._x < -6320) {
_root.targets2.t40.t.tt.gun3.play();
}
if (_root.targets2._x > -7900 && _root.targets2._x < -7260) {
_root.targets2.t41.t.tt.gun3.play();
}
if (_root.targets2._x > -8760 && _root.targets2._x < -8120) {
_root.targets2.t42.t.tt.gun3.play();
}
if (_root.targets2._x > -9460 && _root.targets2._x < -8820) {
_root.targets2.t43.t.tt.gun3.play();
}
}
function BOSS() {
boss._x -= boss._x > 550 ? speed / 5 : 0;
if (count++ > 50) {
bossnewy = 100 + Math.ceil(Math.random() * 280);
count = 0;
}
if (Math.abs(bossnewy - boss._y) < 50) {
if (bossnewy - boss._y > 0) {
bossnewy += 50;
} else {
bossnewy -= 50;
}
}
if (bossnewy - boss._y > 0) {
boss._y += 1;
} else {
boss._y -= 1;
}
if (boss._x < 600) {
boss.boss_idle.gun3.play();
}
}
stop();
stopAllSounds();
speed = 0;
speed_limit = 8;
lev = 0;
bullet_speed = 10;
plane_on_scene_flag = 1;
score = 0;
power = 1;
xspeed = 0;
yspeed = 0;
friction = 0.95;
fuel_level = 100;
count_fuels = 8;
count_bonus = 15;
count_targets = 8;
count_targets2 = 43;
count = 0;
boss_live = 50;
lev2 = 7777;
plane_live = 100;
weapon_type = 'Easy Gun';
fin = 0;
this.attachMovie('back4', 'back', 1);
back._x = 0;
back._y = 0;
this.attachMovie('land4_2', 'land2', 5);
land2._x = 0;
land2._y = 0;
this.attachMovie('fuels4', 'fuels', 19);
fuels._x = 0;
fuels._y = 0;
this.attachMovie('plane', 'plane', 20);
plane._x = 10;
plane._y = 200;
this.plane.attachMovie('gun1', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 27;
this.attachMovie('bullet', 'bullet', 22);
bullet._x = -100;
this.attachMovie('bullet_boss', 'bullet_boss', 23);
bullet_boss._x = -100;
this.plane.attachMovie('shield', 'shield', 24);
this.attachMovie('bubbles', 'bubbles', 500);
bubbles._x = 640;
bubbles._y = 240;
this.attachMovie('land4_1', 'land1', 1000);
land1._x = 0;
land1._y = 0;
this.attachMovie('targets4_1', 'targets', 1010);
targets._x = 0;
targets._y = 0;
this.attachMovie('targets4_2', 'targets2', 1011);
targets2._x = 0;
targets2._y = 0;
this.attachMovie('bossboss', 'boss', 1012);
boss._x = 3000;
boss._y = 250;
this.boss.attachMovie('bossup', 'bossup', 1013);
this.boss.bossup._x = 7;
this.boss.bossup._y = 19;
this.attachMovie('boom', 'boom', 1030);
boom._x = -100;
this.attachMovie('PANEL', 'panel', 1050);
this.attachMovie('sound_fuel', 'sound_fuel', 2000);
this.attachMovie('sound_change_weapon', 'sound_change_weapon', 2001);
this.attachMovie('sound_bax', 'sound_bax', 2002);
this.attachMovie('back_menu', 'back_menu', 3000);
this.attachMovie('backback', 'backback', 3001);
this.attachMovie('back_score', 'back_score', 3002);
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('OCEAN-Vika-9907.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('OCEAN-Vika-9907.mp3');
panel.key_sound.gotoAndStop(2);
}
PLACE_BULLET = function (tgt) {
++lev;
var p = {'x': tgt._x, 'y': tgt._y};
tgt._parent.localToGlobal(p);
globalToLocal(p);
var d = bullet.duplicateMovieClip('b100' + lev, 100 + lev);
d._x = p.x;
d._y = p.y;
d.onEnterFrame = function () {
this._x += bullet_speed;
if (this._x < 0 || this._x > 640 || this._y < 0 || this._y > 480) {
this.removeMovieClip();
}
if (land1.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
sound_bax.play(2);
}
if (boss.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
boss_live -= 1;
sound_bax.play(2);
boss.boss_idle.live.gotoAndStop(Math.ceil(boss_live) * 2);
if (boss_live == 10) {
_root.boss.bossup.gotoAndStop(2);
}
if (boss_live == 0) {
if (_root.levelaccess < 5) {
_root.levelaccess += 1;
}
_root.boss.gotoAndStop(2);
}
}
i = 1;
while (i < count_targets + 1) {
if ((eval('this.targets.t' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.targets.t' + i)).t.gotoAndStop(2);
score += 10;
}
++i;
}
i = 1;
while (i < count_targets2 + 1) {
if ((eval('this.targets2.t' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.targets2.t' + i)).t.gotoAndStop(2);
score += 15;
if (i == 2) {
_root.targets2.attachMovie('bonus_gun2', 'bonus1', 1005);
_root.targets2.bonus1._x = _root.targets2.t2._x;
_root.targets2.bonus1._y = _root.targets2.t2._y;
}
if (i == 3) {
_root.targets2.attachMovie('bonus_gun4', 'bonus2', 1006);
_root.targets2.bonus2._x = _root.targets2.t3._x;
_root.targets2.bonus2._y = _root.targets2.t3._y;
}
if (i == 6) {
_root.targets2.attachMovie('bonus_gun1', 'bonus3', 1007);
_root.targets2.bonus3._x = _root.targets2.t6._x;
_root.targets2.bonus3._y = _root.targets2.t6._y;
}
if (i == 7) {
_root.targets2.attachMovie('bonus_gun2', 'bonus4', 1008);
_root.targets2.bonus4._x = _root.targets2.t7._x;
_root.targets2.bonus4._y = _root.targets2.t7._y;
}
}
++i;
}
i = 1;
while (i < count_fuels + 1) {
if ((eval('this.fuels.f' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.fuels.f' + i)).gotoAndStop(2);
if (i == 1) {
_root.fuels.text01.unloadMovie();
}
score += 10;
}
++i;
}
};
};
PLACE_BULLET2 = function (tgt) {
++lev2;
var v3 = {'x': tgt._x, 'y': tgt._y};
tgt._parent.localToGlobal(v3);
globalToLocal(v3);
var v4 = bullet_boss.duplicateMovieClip('b' + lev2, lev2);
v4._x = v3.x;
v4._y = v3.y;
v4.onEnterFrame = function () {
this._x -= bullet_speed;
if (this._x < 0 || this._x > 640 || this._y < 0 || this._y > 480) {
this.removeMovieClip();
}
if (land1.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (plane.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
plane_live -= 20;
plane.shield.play(2);
if (_root.plane._x > 20) {
_root.plane._x -= 10;
}
if (plane_live == 0) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
_root.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.gotoAndPlay(2);
}
}
};
};
onEnterFrame = function () {
KEYS();
LAND();
PLANE_HITS();
BOSS();
};
}
movieClip 688 fuels4 {
}
movieClip 689 targets4_1 {
}
movieClip 690 targets4_2 {
}
frame 12 {
if (_root.localization_portal == 'game_com_cn') {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1, '_blank');
};
} else {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1 + '&utm_content=button_gameover_moregames', '_blank');
};
}
stop();
stopAllSounds();
this.attachMovie('backback', 'backback', 3001);
this.attachMovie('back_prev', 'back_prev', 3002);
this.attachMovie('back_menu', 'back_menu', 3003);
onEnterFrame = function () {
_root.total = _root.bestlev1score + _root.bestlev2score + _root.bestlev3score + _root.bestlev4score + _root.bestlev5score;
if (_root.score > _root.bestlev4score) {
bestlev4score = score;
}
if (levelaccess > 4 && fin == 1 && plane_on_scene_flag == 1) {
key_nextlevel._visible = 1;
text_epicfail._visible = 0;
text_congratulations._visible = 1;
key_restart._x = 25;
key_menu._x = 225;
key_nextlevel._x = 425;
} else {
key_nextlevel._visible = 0;
text_epicfail._visible = 1;
text_congratulations._visible = 0;
key_restart._x = 117;
key_menu._x = 337;
}
};
}
frame 13 {
function KEYS() {
if (Key.isDown(38)) {
if (plane._y > 2) {
yspeed -= power;
} else {
plane._y = 2;
yspeed = 0;
}
}
if (Key.isDown(40)) {
if (plane._y < 402) {
yspeed += power;
} else {
plane._y = 402;
yspeed = 0;
}
}
if (Key.isDown(39)) {
speed += speed < speed_limit ? 1 : 0;
if (plane._x < 585) {
xspeed += power;
} else {
plane._x = 585;
xspeed = 0;
}
} else {
speed -= speed > 6 ? 1 : 0;
}
if (Key.isDown(37)) {
speed -= speed > 4 ? 1 : 0;
if (plane._x > 10) {
xspeed -= power;
} else {
plane._x = 10;
xspeed = 0;
}
} else {
speed += speed < 6 ? 1 : 0;
}
if (Key.isDown(32)) {
plane.gun.play();
}
if (plane._y < 0) {
plane._y = 0;
yspeed = 0;
}
if (plane._y > 410) {
plane._y = 410;
yspeed = 0;
}
if (plane._x < 10) {
plane._x = 10;
xspeed = 0;
}
if (plane._x > 600) {
plane._x = 600;
xspeed = 0;
}
xspeed *= friction;
yspeed *= friction;
if (xspeed < 0.5 && xspeed > 0) {
xspeed = 0;
}
if (yspeed < 0.5 && yspeed > 0) {
yspeed = 0;
}
plane._y += Math.ceil(yspeed);
plane._x += Math.ceil(xspeed);
}
function LAND() {
land1._x -= speed;
land2._x -= speed / 10;
fuels._x -= speed / 1.5;
targets._x -= speed;
targets2._x -= speed / 1.5;
i = 1;
while (i < count_bonus + 1) {
(eval('this.targets.bonus' + i))._x += speed / 3;
++i;
}
fuel_level -= 0.1;
panel.fuel_level.gotoAndPlay(Math.ceil(fuel_level));
panel.shield_level.gotoAndPlay(Math.ceil(plane_live));
if (fuel_level < 10) {
yspeed += 0.6;
}
if (fuel_level < 0) {
yspeed += 1;
}
if (fuel_level < 0 && plane._y > 390) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
back_score.play(2);
}
}
function PLANE_HITS() {
if (this.land1.hitTest(this.plane._x, this.plane._y, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y + 17, true) || this.land1.hitTest(this.plane._x + 25, this.plane._y + 0, true) || this.land1.hitTest(this.plane._x + 25, this.plane._y + 35, true) || this.land1.hitTest(this.plane._x + 49, this.plane._y + 35, true) || this.land1.hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.play(2);
}
i = 1;
while (i < count_bonus + 1) {
if (((eval('this.targets.bonus' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets.bonus' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && plane_on_scene_flag == 1) {
}
++i;
}
i = 1;
while (i < count_bonus + 1) {
if (((eval('this.targets2.bonus' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets2.bonus' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && plane_on_scene_flag == 1) {
if (i == 1) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.gun2.unloadMovie();
this.plane.gun4.unloadMovie();
this.plane.attachMovie('gun2', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 26;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Megablaster';
}
if (i == 2) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.gun2.unloadMovie();
this.plane.gun4.unloadMovie();
this.plane.attachMovie('gun4', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 26;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Superlazer';
}
if (i == 3) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.gun2.unloadMovie();
this.plane.gun4.unloadMovie();
this.plane.attachMovie('gun1', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 27;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Easy Gun';
}
if (i == 4) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.plane.gun1.unloadMovie();
this.plane.gun2.unloadMovie();
this.plane.gun4.unloadMovie();
this.plane.attachMovie('gun2', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 26;
this.sound_change_weapon.gotoAndPlay(2);
weapon_type = 'Megablaster';
}
if (i == 5) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 6) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 7) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 8) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 9) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 10) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 11) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 12) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
if (i == 13) {
(eval('this.targets2.bonus' + i)).unloadMovie();
this.sound_fuel.gotoAndPlay(2);
if (plane_live < 100) {
plane_live += 20;
}
}
}
++i;
}
i = 1;
while (i < count_targets + 1) {
if ((eval('this.targets.t' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets.t' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
(eval('this.targets.t' + i)).t.gotoAndStop(2);
plane_live -= 100;
back_score.gotoAndPlay(2);
}
++i;
}
i = 1;
while (i < count_targets2 + 1) {
if ((eval('this.targets2.t' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.targets2.t' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
(eval('this.targets2.t' + i)).t.gotoAndStop(2);
plane_live -= 100;
back_score.gotoAndPlay(2);
}
++i;
}
i = 1;
while (i < count_fuels + 1) {
if (((eval('this.fuels.f' + i)).hitTest(this.plane._x, this.plane._y, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y + 17, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 25, this.plane._y + 0, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 25, this.plane._y + 35, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x + 49, this.plane._y + 35, true) || (eval('this.fuels.f' + i)).hitTest(this.plane._x, this.plane._y + 35, true)) && fuel_level < 100 && plane_on_scene_flag == 1) {
fuel_level += 1;
this.sound_fuel.gotoAndPlay(2);
}
++i;
}
if (this.boss.hitTest(this.plane._x, this.plane._y, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y + 17, true) || this.boss.hitTest(this.plane._x + 25, this.plane._y + 0, true) || this.boss.hitTest(this.plane._x + 25, this.plane._y + 35, true) || this.boss.hitTest(this.plane._x + 49, this.plane._y + 35, true) || this.boss.hitTest(this.plane._x, this.plane._y + 35, true)) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
this.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.play(2);
_root.boss.gotoAndStop(2);
}
if (_root.targets2._x > -1540 && _root.targets2._x < -900) {
_root.targets2.t28.t.tt.gun3.play();
}
if (_root.targets2._x > -2460 && _root.targets2._x < -1780) {
_root.targets2.t29.t.tt.gun3.play();
}
if (_root.targets2._x > -3120 && _root.targets2._x < -2470) {
_root.targets2.t30.t.tt.gun3.play();
}
if (_root.targets2._x > -3240 && _root.targets2._x < -2600) {
_root.targets2.t31.t.tt.gun3.play();
}
if (_root.targets2._x > -4020 && _root.targets2._x < -3390) {
_root.targets2.t32.t.tt.gun3.play();
}
if (_root.targets2._x > -5110 && _root.targets2._x < -4480) {
_root.targets2.t33.t.tt.gun3.play();
}
if (_root.targets2._x > -5620 && _root.targets2._x < -4990) {
_root.targets2.t34.t.tt.gun3.play();
}
if (_root.targets2._x > -5720 && _root.targets2._x < -5080) {
_root.targets2.t35.t.tt.gun3.play();
}
if (_root.targets2._x > -6370 && _root.targets2._x < -5720) {
_root.targets2.t36.t.tt.gun3.play();
}
if (_root.targets2._x > -6370 && _root.targets2._x < -5720) {
_root.targets2.t37.t.tt.gun3.play();
}
if (_root.targets2._x > -7470 && _root.targets2._x < -6830) {
_root.targets2.t38.t.tt.gun3.play();
}
if (_root.targets2._x > -8370 && _root.targets2._x < -7730) {
_root.targets2.t39.t.tt.gun3.play();
}
if (_root.targets2._x > -8870 && _root.targets2._x < -8230) {
_root.targets2.t40.t.tt.gun3.play();
}
if (_root.targets2._x > -10170 && _root.targets2._x < -9500) {
_root.targets2.t41.t.tt.gun3.play();
}
if (_root.targets2._x > -10220 && _root.targets2._x < -9580) {
_root.targets2.t42.t.tt.gun3.play();
}
if (_root.targets2._x > -10170 && _root.targets2._x < -9500) {
_root.targets2.t43.t.tt.gun3.play();
}
if (_root.targets2._x > -11220 && _root.targets2._x < -10580) {
_root.targets2.t44.t.tt.gun3.play();
}
if (_root.targets2._x > -12070 && _root.targets2._x < -11430) {
_root.targets2.t45.t.tt.gun3.play();
}
if (_root.targets2._x > -13070 && _root.targets2._x < -12430) {
_root.targets2.t46.t.tt.gun3.play();
}
if (_root.targets2._x > -13220 && _root.targets2._x < -12570) {
_root.targets2.t47.t.tt.gun3.play();
}
}
function BOSS() {
boss._x -= boss._x > 550 ? speed / 5 : 0;
if (count++ > 50) {
bossnewy = 100 + Math.ceil(Math.random() * 280);
count = 0;
}
if (Math.abs(bossnewy - boss._y) < 50) {
if (bossnewy - boss._y > 0) {
bossnewy += 50;
} else {
bossnewy -= 50;
}
}
if (bossnewy - boss._y > 0) {
boss._y += 1;
} else {
boss._y -= 1;
}
if (boss._x < 600) {
boss.boss_idle.gun3.play();
}
}
stop();
stopAllSounds();
speed = 0;
speed_limit = 8;
lev = 0;
bullet_speed = 10;
plane_on_scene_flag = 1;
score = 0;
power = 1;
xspeed = 0;
yspeed = 0;
friction = 0.95;
fuel_level = 100;
count_fuels = 10;
count_bonus = 15;
count_targets = 7;
count_targets2 = 47;
count = 0;
boss_live = 50;
lev2 = 7777;
plane_live = 100;
weapon_type = 'Easy Gun';
fin = 0;
this.attachMovie('back5', 'back', 1);
back._x = 0;
back._y = 0;
this.attachMovie('land5_2', 'land2', 5);
land2._x = 0;
land2._y = 0;
this.attachMovie('fuels5', 'fuels', 19);
fuels._x = 0;
fuels._y = 0;
this.attachMovie('plane', 'plane', 20);
plane._x = 10;
plane._y = 200;
this.plane.attachMovie('gun1', 'gun', 21);
this.plane.gun._x = 17;
this.plane.gun._y = 27;
this.attachMovie('bullet', 'bullet', 22);
bullet._x = -100;
this.attachMovie('bullet_boss', 'bullet_boss', 23);
bullet_boss._x = -100;
this.plane.attachMovie('shield', 'shield', 24);
this.attachMovie('bubbles', 'bubbles', 500);
bubbles._x = 640;
bubbles._y = 240;
this.attachMovie('land5_1', 'land1', 1000);
land1._x = 0;
land1._y = 0;
this.attachMovie('targets5_1', 'targets', 1010);
targets._x = 0;
targets._y = 0;
this.attachMovie('targets5_2', 'targets2', 1011);
targets2._x = 0;
targets2._y = 0;
this.attachMovie('bossboss', 'boss', 1012);
boss._x = 3500;
boss._y = 250;
this.boss.attachMovie('bossup', 'bossup', 1013);
this.boss.bossup._x = 7;
this.boss.bossup._y = 19;
this.attachMovie('boom', 'boom', 1030);
boom._x = -100;
this.attachMovie('PANEL', 'panel', 1050);
this.attachMovie('sound_fuel', 'sound_fuel', 2000);
this.attachMovie('sound_change_weapon', 'sound_change_weapon', 2001);
this.attachMovie('sound_bax', 'sound_bax', 2002);
this.attachMovie('back_menu', 'back_menu', 3000);
this.attachMovie('backback', 'backback', 3001);
this.attachMovie('back_score', 'back_score', 3002);
if (sss > 0) {
var s_sound = new Sound();
s_sound.attachSound('OCEAN-Vika-9907.mp3');
s_sound.setVolume(70);
s_sound.start(0, 99999);
}
if (sss == 0) {
var s_sound = new Sound();
s_sound.attachSound('OCEAN-Vika-9907.mp3');
panel.key_sound.gotoAndStop(2);
}
PLACE_BULLET = function (tgt) {
++lev;
var p = {'x': tgt._x, 'y': tgt._y};
tgt._parent.localToGlobal(p);
globalToLocal(p);
var d = bullet.duplicateMovieClip('b100' + lev, 100 + lev);
d._x = p.x;
d._y = p.y;
d.onEnterFrame = function () {
this._x += bullet_speed;
if (this._x < 0 || this._x > 640 || this._y < 0 || this._y > 480) {
this.removeMovieClip();
}
if (land1.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
sound_bax.play(2);
}
if (boss.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
boss_live -= 1;
sound_bax.play(2);
boss.boss_idle.live.gotoAndStop(Math.ceil(boss_live) * 2);
if (boss_live == 10) {
_root.boss.bossup.gotoAndStop(2);
}
if (boss_live == 0) {
if (_root.levelaccess < 6) {
_root.levelaccess += 1;
}
_root.boss.gotoAndStop(2);
}
}
i = 1;
while (i < count_targets + 1) {
if ((eval('this.targets.t' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.targets.t' + i)).t.gotoAndStop(2);
score += 10;
}
++i;
}
i = 1;
while (i < count_targets2 + 1) {
if ((eval('this.targets2.t' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.targets2.t' + i)).t.gotoAndStop(2);
score += 15;
if (i == 3) {
_root.targets2.attachMovie('bonus_gun2', 'bonus1', 1005);
_root.targets2.bonus1._x = _root.targets2.t3._x;
_root.targets2.bonus1._y = _root.targets2.t3._y;
}
if (i == 8) {
_root.targets2.attachMovie('bonus_gun4', 'bonus2', 1006);
_root.targets2.bonus2._x = _root.targets2.t8._x;
_root.targets2.bonus2._y = _root.targets2.t8._y;
}
if (i == 6) {
_root.targets2.attachMovie('bonus_gun1', 'bonus3', 1007);
_root.targets2.bonus3._x = _root.targets2.t6._x;
_root.targets2.bonus3._y = _root.targets2.t6._y;
}
if (i == 9) {
_root.targets2.attachMovie('bonus_gun2', 'bonus4', 1008);
_root.targets2.bonus4._x = _root.targets2.t9._x;
_root.targets2.bonus4._y = _root.targets2.t9._y;
}
}
++i;
}
i = 1;
while (i < count_fuels + 1) {
if ((eval('this.fuels.f' + i)).hitTest(this)) {
this.removeMovieClip();
(eval('this.fuels.f' + i)).gotoAndStop(2);
if (i == 1) {
_root.fuels.text01.unloadMovie();
}
score += 10;
}
++i;
}
};
};
PLACE_BULLET2 = function (tgt) {
++lev2;
var v3 = {'x': tgt._x, 'y': tgt._y};
tgt._parent.localToGlobal(v3);
globalToLocal(v3);
var v4 = bullet_boss.duplicateMovieClip('b' + lev2, lev2);
v4._x = v3.x;
v4._y = v3.y;
v4.onEnterFrame = function () {
this._x -= bullet_speed;
if (this._x < 0 || this._x > 640 || this._y < 0 || this._y > 480) {
this.removeMovieClip();
}
if (land1.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (plane.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
plane_live -= 20;
plane.shield.play(2);
if (_root.plane._x > 20) {
_root.plane._x -= 10;
}
if (plane_live == 0) {
boom._x = plane._x;
boom._y = plane._y - 30;
boom.play(2);
_root.plane.unloadMovie();
plane_on_scene_flag = 0;
plane_live -= 100;
back_score.gotoAndPlay(2);
}
}
};
};
onEnterFrame = function () {
KEYS();
LAND();
PLANE_HITS();
BOSS();
};
}
movieClip 700 back5 {
}
movieClip 708 land5_2 {
}
movieClip 709 fuels5 {
}
movieClip 721 {
}
movieClip 730 land5_1 {
}
movieClip 731 targets5_1 {
}
movieClip 732 targets5_2 {
}
frame 14 {
function placeBoom(x, y) {
++lev;
var v1 = boomboomboom.duplicateMovieClip('b' + lev, lev);
v1._x = x;
v1._y = y;
}
if (_root.localization_portal == 'game_com_cn') {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1, '_blank');
};
} else {
this.gameover_moregames.onRelease = function () {
getURL(_root.localization_url1 + '&utm_content=button_gameover_moregames', '_blank');
};
}
stop();
stopAllSounds();
this.attachMovie('backback', 'backback', 3001);
this.attachMovie('back_prev', 'back_prev', 3002);
this.attachMovie('back_menu', 'back_menu', 3003);
s = 0;
lev = 0;
onEnterFrame = function () {
_root.total = _root.bestlev1score + _root.bestlev2score + _root.bestlev3score + _root.bestlev4score + _root.bestlev5score;
if (_root.score > _root.bestlev5score) {
bestlev5score = score;
}
if (levelaccess > 5 && fin == 1 && plane_on_scene_flag == 1) {
key_nextlevel._visible = 1;
text_epicfail._visible = 0;
text_congratulations2._visible = 1;
key_restart._x = 117;
key_menu._x = 337;
s += 1;
if (s == 20) {
boomboomboom._visible = false;
placeBoom(Math.random() * 440 + 100, Math.random() * 280 + 100);
_root.s = 0;
}
} else {
key_nextlevel._visible = 0;
text_epicfail._visible = 1;
text_congratulations2._visible = 0;
key_restart._x = 117;
key_menu._x = 337;
}
};
}
movieClip 741 {
}
movieClip 742 {
frame 22 {
_parent.removeMovieClip();
stop();
}
}
movieClip 743 {
frame 1 {
partGo._visible = false;
i = 60;
while (i--) {
d = partGo.duplicateMovieClip('p' + i, i);
d._rotation = Math.random() * 360;
d._yscale = Math.random() * 70 + 50;
d._xscale = d._yscale;
}
}
}
movieClip 745 {
}