Frame 1
stop();
Instance of Symbol 12 MovieClip "loadBar" in Frame 1
onClipEvent (load) {
bar.stop();
}
onClipEvent (enterFrame) {
p = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
bar.gotoAndStop(Math.round(p));
if (p == 100) {
_root.gotoAndStop(2);
}
}
Instance of Symbol 16 MovieClip "mask" in Frame 1
onClipEvent (enterFrame) {
_root.smokeNshoot();
_root.enemyDuplication();
_root.smokeDuplication();
_root.qualityset();
}
Frame 2
function cloudMove(a, b, c) {
if (a._x >= 630) {
a._x = -140;
c._x = -140;
var d = (random(12) + 1);
a.gotoAndStop(d);
c.gotoAndStop(d);
} else {
a._x = a._x + b;
c._x = c._x + b;
}
}
function BigcloudMove(a, b, c) {
if (a._x >= 690) {
a._x = -130;
a.gotoAndStop(random(7) + 1);
} else {
a._x = a._x + b;
}
}
function resetGame() {
height = 180;
angle = 0;
turn = 8;
_root.score._visible = false;
accel = 0.8;
speed = 6;
health = "good";
smokeNumber = 1;
smokeDirection = 0;
bulletangle = 0;
bulletNumber = 0;
bulletLevel = 21;
score.score = 0;
splashNumber = 1;
splashLevel = 80;
enemyPlanes = 1;
enemyNumber = 1;
enemySpeed = 4;
enemyAltitude = 0;
enemyWave = 0;
wave = 0;
waveLevel = 30;
enemyBulletNo = 1;
bombsaway = 1;
sink = 1;
if (380 < _root.plane._y) {
with (_root.plane) {
_x = 396;
_y = 225;
_rotation = 0;
}
}
with (_root.ship) {
_y = 359;
_rotation = 0;
}
}
function enemyDuplication() {
if (_root.enemyplanes == 0) {
duplicateMovieClip (_root.enemy, "enemy" add _root.enemyNumber, 200);
enemyaltitude = random(200) + 51;
with (eval (_root.enemy add _root.enemyNumber)) {
_y = enemyaltitude;
_x = -40 - (_root.enemySpeed * 2);
}
_root.wave = random(_root.waveLevel) + 1;
_root.enemyplanes++;
}
}
function smokeDuplication() {
if ((_root.health ne "good") and (_root.gameOn == "yes")) {
duplicateMovieClip ("_root.smoke", "smoke" add _root.smokeNumber, _root.smokeNumber);
with (eval (_root.smoke add _root.smokeNumber)) {
_y = _root.plane._y + (25 * Math.sin((Math.PI/180) * _root.angle));
_x = _root.plane._x + (25 * Math.cos((Math.PI/180) * _root.angle));
_alpha = (random(5) + 10) * 5;
}
if (15 >= _root.smokeNumber) {
_root.smokeNumber++;
} else {
_root.smokeNumber = 1;
}
}
if (_root.health == "crashed") {
if (362 >= _root.plane._y) {
if (5 < _root.angle) {
_root.turn = 16;
_root.angle = _root.angle - _root.turn;
with (_root.plane) {
_rotation = _root.angle;
_y = _y - (_root.angle / _root.speed);
_x = _x - 2;
}
} else if (5 >= _root.angle) {
if (-70 < _root.angle) {
_root.turn = 16;
_root.angle = _root.angle - _root.turn;
with (_root.plane) {
_rotation = _root.angle;
_y = _y - ((_root.angle / _root.speed) * 2);
_x = _x - 4;
}
} else {
with (_root.plane) {
_y = _y - ((_root.angle / _root.speed) * 2);
_x = _x - 4;
}
}
}
} else if (362 < _root.plane._y) {
if (_root.smokeDirection == 0) {
_root.bobfireSnd.start();
}
_root.smokeDirection = 10;
removeMovieClip(_root.enemy1);
removeMovieClip(_root.bomber);
removeMovieClip(eval ("_root.enemyBullet" add (_root.enemyBulletNo - 1)));
removeMovieClip(eval ("_root.enemyBullet" add (_root.enemyBulletNo - 2)));
removeMovieClip(eval ("_root.enemyBullet" add (_root.enemyBulletNo - 3)));
removeMovieClip(eval ("_root.enemyBullet" add (_root.enemyBulletNo - 4)));
removeMovieClip(eval ("_root.enemyBullet" add (_root.enemyBulletNo - 5)));
Mouse.show();
if (gameOn == "no") {
with (_root.plane) {
_x = 396;
_y = 225;
_rotation = 0;
}
_root.height = 180;
_root.angle = 0;
_root.turn = 8;
_root.health = "good";
_root.smokeDirection = 0;
} else {
_root.moviecontrols.play();
}
_root.moviecontrols._visible = true;
}
}
}
function smokeNshoot() {
if (((_root.bulletRemove < 5) && (_root.health ne "crashed")) && (Key.isDown(32))) {
_root.bulletNumber++;
_root.bulletRemove++;
if (41 < _root.bulletLevel) {
_root.bulletLevel = 21;
} else {
_root.bulletLevel++;
}
duplicateMovieClip (_root.bullet, "bullet" add _root.bulletNumber, _root.bulletLevel);
_root.bulletangle = _root.plane._rotation * 0.017;
with (eval (_root.bullet add _root.bulletNumber)) {
_rotation = _root.angle;
_x = _root.plane._x - (35 * Math.cos(_root.bulletangle));
_y = _root.plane._y - (35 * Math.sin(_root.bulletangle));
}
_root.bobfireSnd.setVolume(5);
_root.bobfireSnd.start();
}
}
function skillLevel() {
if (_root.score.score == 5) {
_root.enemySpeed = 6;
} else if (_root.score.score == 10) {
_root.enemySpeed = 8;
} else if (_root.score.score == 15) {
_root.enemySpeed = 10;
} else if (_root.score.score == 25) {
_root.enemySpeed = 12;
} else if (_root.score.score == 35) {
_root.enemySpeed = 14;
} else if (_root.score.score == 45) {
_root.enemySpeed = 16;
} else if (_root.score.score == 60) {
_root.enemySpeed = 18;
} else if (_root.score.score == 80) {
_root.enemySpeed = 20;
} else if (_root.score.score == 100) {
_root.enemySpeed = 24;
} else if (_root.score.score == 120) {
_root.enemySpeed = 28;
} else if (_root.score.score == 140) {
_root.enemySpeed = 32;
} else if (_root.score.score == 160) {
_root.enemySpeed = 40;
}
if (_root.waveLevel < 60) {
_root.waveLevel = _root.waveLevel + 5;
}
}
function enemyFire() {
duplicateMovieClip (_root.enemyBullet, "enemyBullet" add _root.enemyBulletNo, _root.enemyBulletNo + 500);
with (eval ("_root.enemyBullet" add _root.enemyBulletNo)) {
_x = _root.enemy1._x + 20;
_y = _root.enemy1._y;
}
_root.bobfireSnd.setVolume(2);
_root.bobfireSnd.start();
_root.enemyBulletNo++;
}
function qualityset() {
if (Key.isDown(81)) {
if (_quality == "HIGH") {
_quality = "BEST";
} else if (_quality == "BEST") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
}
}
}
score.swapDepths(2000);
mask.swapDepths(806);
littleOne.swapDepths(805);
littleTwo.swapDepths(804);
littleThree.swapDepths(803);
plane.swapDepths(800);
movieControls.scoreMc.yourScore = 0;
movieControls.scoreMc.highScore = 0;
gameOn = "no";
bulletRemove = 0;
stop();
resetGame();
bobfireSnd = new Sound();
bobfireSnd.attachSound("bangBang");
bullPlopSnd = new Sound();
bullPlopSnd.attachSound("plop");
Instance of Symbol 24 MovieClip "bottom back" in Frame 2
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
onClipEvent (enterFrame) {
_root.BigcloudMove(this, 1);
}
Instance of Symbol 24 MovieClip in Frame 2
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
onClipEvent (enterFrame) {
_root.BigcloudMove(this, 1);
}
Instance of Symbol 33 MovieClip "ship" in Frame 2
onClipEvent (enterFrame) {
if (_root.sink == 2) {
with (this) {
_y = 362;
_rotation = _rotation - 2;
}
_root.sink = 3;
} else if (_root.sink == 4) {
with (this) {
_y = 365;
_rotation = _rotation - 4;
}
_root.sink = 5;
} else if (_root.sink == 6) {
with (this) {
_y = _y + 4;
_rotation = _rotation - 1;
}
removeMovieClip(_root.enemy1);
removeMovieClip(_root.bomber);
Mouse.show();
_root.moviecontrols._visible = true;
_root.moviecontrols.play();
}
}
Instance of Symbol 38 MovieClip "plane" in Frame 2
onClipEvent (enterFrame) {
_root.height = this._y;
if (_root.health ne "crashed") {
if (Key.isDown(90)) {
if (-1 < _root.angle) {
_root.angle = _root.angle + 1;
}
if (-90 < _root.angle) {
if (_root.angle < -60) {
_root.turn = _root.turn * _root.accel;
}
_root.angle = _root.angle - _root.turn;
this._rotation = _root.angle;
}
this._y = this._y - (_root.angle / _root.speed);
} else if (_root.angle < 0) {
_root.turn = 8;
_root.angle = _root.angle * _root.accel;
with (this) {
_rotation = _root.angle;
_y = _y - (_root.angle / _root.speed);
}
if (-1 < _root.angle) {
this._rotation = 0;
_root.angle = 0;
}
}
if (Key.isDown(65)) {
if (25 < _root.height) {
if (_root.angle < 1) {
_root.angle = _root.angle + 1;
}
if (_root.angle < 80) {
if (60 < _root.angle) {
_root.turn = _root.turn * _root.accel;
}
_root.angle = _root.angle + _root.turn;
this._rotation = _root.angle;
}
this._y = this._y - (_root.angle / _root.speed);
} else if (0 < _root.angle) {
_root.turn = 8;
_root.angle = _root.angle * _root.accel;
this._rotation = _root.angle;
if (_root.angle < 1) {
this._rotation = 0;
_root.angle = 0;
}
}
_root.angle = this._rotation;
} else if (0 < _root.angle) {
_root.turn = 8;
_root.angle = _root.angle * _root.accel;
with (this) {
_rotation = _root.angle;
_y = _y - (_root.angle / _root.speed);
}
if (_root.angle < 1) {
this._rotation = 0;
_root.angle = 0;
}
}
if (Key.isDown(75) and (_root.plane._x >= 5)) {
this._x = this._x - 4;
}
if (Key.isDown(76) and (_root.plane._x < 410)) {
this._x = this._x + 5;
}
}
if (this._y >= 362) {
_root.health = "crashed";
}
}
Instance of Symbol 51 MovieClip "littleone" in Frame 2
onClipEvent (load) {
var b = (random(12) + 1);
gotoAndStop(b);
_root.littleoneS.gotoAndStop(b);
}
onClipEvent (enterFrame) {
_root.cloudMove(this, 2, _root.littleoneS);
}
Instance of Symbol 52 MovieClip "littletwo" in Frame 2
onClipEvent (load) {
var b = (random(12) + 1);
gotoAndStop(b);
_root.littletwoS.gotoAndStop(b);
}
onClipEvent (enterFrame) {
_root.cloudMove(this, 2, _root.littletwoS);
}
Instance of Symbol 53 MovieClip "littlethree" in Frame 2
onClipEvent (load) {
var b = (random(12) + 1);
gotoAndStop(b);
_root.littlethreeS.gotoAndStop(b);
}
onClipEvent (enterFrame) {
_root.cloudMove(this, 2, _root.littlethreeS);
}
Instance of Symbol 68 MovieClip "PlaneShadow" in Frame 2
onClipEvent (enterFrame) {
with (this) {
_x = _root.plane._x;
_yscale = _yscale + (_root.angle * 4);
}
if (162 < _root.plane._y) {
this._yscale = ((_root.plane._y - 162) / 2) + 5;
} else {
this._yscale = 5;
}
}
Instance of Symbol 69 MovieClip "EnemyShadow" in Frame 2
onClipEvent (enterFrame) {
with (this) {
_x = _root.enemy1._x;
_yscale = _yscale + _root.angle;
}
if (162 < _root.enemy1._y) {
this._yscale = ((_root.enemy1._y - 162) / 2) + 5;
} else {
this._yscale = 5;
}
if (_root.gameOn == "no") {
this._x = -20;
}
}
Instance of Symbol 97 MovieClip "enemy" in Frame 2
onClipEvent (enterFrame) {
if (this._name ne "enemy") {
with (this) {
_x = this._x + _root.enemySpeed;
_y = (Math.sin(_root.enemyWave) * _root.wave) + _root.enemyAltitude;
}
_root.enemywave = _root.enemywave + 0.1;
if ((Math.PI*2) < _root.enemywave) {
_root.enemywave = _root.enemywave - (Math.PI*2);
}
if (this.hitTest(_root.plane.planeHitArea)) {
duplicateMovieClip (_root.bigBang, "bigbanger", 500);
with (_root.bigbanger) {
_x = this._x;
_y = this._y;
_xscale = 200;
_yscale = 200;
}
_root.bobfireSnd.setVolume(5);
_root.bobfireSnd.start();
_root.health = "crashed";
_root.enemyplanes--;
_root.enemywave = 0;
removeMovieClip(this);
}
if ((470 < this._x) and (_root.bombsaway == 0)) {
_root.bombsaway = 1;
duplicateMovieClip (_root.bomb, "bomber", 324);
with (_root.bomber) {
_x = this._x;
_y = this._y + 10;
}
}
if (this._x >= 580) {
_root.enemywave = 0;
_root.enemyplanes--;
_root.bombsaway = 0;
removeMovieClip(this);
}
}
}
Instance of Symbol 99 MovieClip "smoke" in Frame 2
onClipEvent (enterFrame) {
if (this._name ne "smoke") {
with (this) {
_x = _x + 10;
_y = _y - _root.smokeDirection;
_alpha = _alpha - 10;
_xscale = _xscale * 1.2;
_yscale = _yscale * 1.05;
}
if (5 >= this._alpha) {
removeMovieClip(this);
}
}
}
Instance of Symbol 101 MovieClip "bullet" in Frame 2
onClipEvent (enterFrame) {
if ((this._name ne "bullet") or "splash") {
var bulletx = (40 * Math.cos((Math.PI/180) * this._rotation));
var bullety = (40 * Math.sin((Math.PI/180) * this._rotation));
with (this) {
_x = _x - bulletx;
_y = _y - bullety;
}
if (hitTest(_root.enemy1)) {
_root.bulletRemove--;
removeMovieClip(_root.enemy1);
_root.enemywave = 0;
_root.enemyplanes--;
_root.score.score++;
duplicateMovieClip (_root.bigBang, "bigbangers", 501);
with (_root.bigbangers) {
_x = this._x;
_y = this._y + 5;
}
_root.bobfireSnd.setVolume(20);
_root.bobfireSnd.start();
_root.skillLevel();
removeMovieClip(this);
}
if (this._y < -1) {
_root.bulletRemove--;
removeMovieClip(this);
} else if (this._x < -1) {
_root.bulletRemove--;
removeMovieClip(this);
} else if (362 < this._y) {
if (95 < _root.splashLevel) {
_root.splashLevel = 80;
}
duplicateMovieClip (_root.splash, "splash" add _root.splashNumber, _root.splashLevel);
with (eval (_root.splash add _root.splashNumber)) {
_y = 362;
_x = this._x;
}
_root.splashLevel++;
_root.splashNumber++;
_root.bullPlopSnd.setVolume(3);
_root.bullPlopSnd.start();
_root.bulletRemove--;
removeMovieClip(this);
}
}
}
Instance of Symbol 108 MovieClip "enemyBullet" in Frame 2
onClipEvent (load) {
bspd = _root.enemyspeed + 6;
}
onClipEvent (enterFrame) {
if (this._name ne "enemyBullet") {
this._x = this._x + bspd;
if (hitTest(_root.plane.planeHitArea)) {
if (_root.health == "good") {
_root.health = "smoke";
_root.speed = 12;
} else if (_root.health == "smoke") {
_root.health = "crashed";
}
duplicateMovieClip (_root.bigBang, "bigbanger", 801);
with (_root.bigbanger) {
_x = this._x + 5;
_y = this._y;
_xscale = 200;
_yscale = 200;
}
_root.bobfireSnd.setVolume(50);
_root.bobfireSnd.start();
removeMovieClip(this);
}
if (550 < this._x) {
removeMovieClip(this);
}
}
}
Instance of Symbol 5 MovieClip [d] "bomb" in Frame 2
onClipEvent (enterFrame) {
if (this._name ne "bomb") {
if (this._y < 360) {
this._y = this._y + 10;
if (this._rotation < 90) {
this._rotation = this._rotation + 5;
}
} else {
duplicateMovieClip (_root.bigBang, "boatbang", 105);
with (_root.boatbang) {
_x = this._x;
_y = this._y;
}
_root.sink++;
_root.bobfireSnd.setVolume(100);
_root.bobfireSnd.start();
removeMovieClip(this);
}
}
}
Instance of Symbol 14 MovieClip in Symbol 16 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(5000);
}
Symbol 24 MovieClip Frame 1
stop();
Instance of Symbol 28 MovieClip in Symbol 30 MovieClip Frame 1
onClipEvent (enterFrame) {
if (550 >= this._x) {
this._x = this._x + 0.5;
} else {
this._x = -550;
}
}
Instance of Symbol 29 MovieClip in Symbol 30 MovieClip Frame 1
onClipEvent (enterFrame) {
if (550 >= this._x) {
this._x = this._x + 0.5;
} else {
this._x = -550;
}
}
Symbol 51 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 85 Button
on (release) {
getURL ("http://www.getminted.com/static/inntouch/menu.swf");
}
on (rollOver) {
iMc._visible = false;
}
Symbol 86 Button
on (release) {
iMc._visible = true;
}
on (rollOut) {
iMc._visible = false;
}
Symbol 88 Button
on (release, keyPress "g") {
stayHere = "no";
bigScoreMc.gotoAndStop(1);
_root.gameOn = "yes";
_root.health = "good";
_root.bombsaway = 0;
Mouse.hide();
this._visible = false;
scoreMc._x = 20;
_root.score._visible = true;
play();
}
on (rollOver) {
bigScoreMc._visible = false;
iMc._visible = false;
loginMc._visible = false;
}
Symbol 89 Button
on (release) {
getURL ("javascript:window.close();");
}
on (rollOver) {
iMc._visible = false;
}
Symbol 91 MovieClip Frame 1
scoreMc.yourScore = _root.score.score;
scoreMc.highScore = userHigh;
scoreMc._visible = false;
iMc._visible = false;
Symbol 91 MovieClip Frame 8
stop();
Symbol 91 MovieClip Frame 26
_root.enemyPlanes = 0;
Symbol 91 MovieClip Frame 27
stop();
Symbol 91 MovieClip Frame 28
_root.gameOn = "no";
scoreMc.yourScore = _root.score.score;
if (scoreMc.highScore < scoreMc.yourScore) {
scoreMc.highScore = scoreMc.yourScore;
}
scoreMc._visible = true;
Symbol 91 MovieClip Frame 50
_root.resetgame();
scoreMc._visible = false;
scoreMc._x = 58;
gotoAndPlay (5);
Symbol 97 MovieClip Frame 10
if ((40 >= Math.sqrt(Math.pow(_root.plane._y - this._y, 2))) and (this._name ne "enemy")) {
_root.enemyFire();
}
Symbol 107 MovieClip Frame 1
if (this._name ne "bigBang") {
play();
} else {
stop();
}
Symbol 107 MovieClip Frame 6
if (this._name ne "bigBang") {
removeMovieClip(this);
}
Symbol 113 MovieClip Frame 1
if (this._name == "splash") {
stop();
}
Symbol 113 MovieClip Frame 4
removeMovieClip(this);