Instance of Symbol 2 MovieClip in Frame 1
onClipEvent (load) {
_root.setMask(this);
}
Frame 2
factor = _root.getBytesLoaded() / _root.getBytesTotal();
percent.text = Math.floor(factor * 100) + "%";
if (factor >= 1) {
_root.gotoAndStop("Splash");
}
Frame 3
_root.gotoAndPlay("loader");
Frame 9
stop();
life = 1;
aimfor = 500;
fuel = 749;
lastframe = false;
level = one;
health = 3;
damage = 100;
Instance of Symbol 35 MovieClip in Frame 9
on (release) {
getURL ("http://www.adamtwycross.co.uk", "_blank");
}
Instance of Symbol 44 MovieClip "maincloud" in Frame 10
onClipEvent (load) {
cloud.duplicateMovieClip("cloud2", 100);
cloud2._x = cloud._x + cloud._width;
cloudStartx = this._x;
cloudSpeed = 5;
}
onClipEvent (enterFrame) {
this._x = this._x - cloudSpeed;
if (this._x <= (cloudStartx - cloud._width)) {
this._x = cloudStartx - cloudSpeed;
}
}
Instance of Symbol 47 MovieClip "maincloudb" in Frame 10
onClipEvent (load) {
cloudb.duplicateMovieClip("cloudb2", 100);
cloudb2._x = cloudb._x + cloudb._width;
cloudbStartx = this._x;
cloudbSpeed = 5;
}
onClipEvent (enterFrame) {
this._x = this._x - cloudbSpeed;
if (this._x <= ((cloudbStartx - cloudb._width) + 5)) {
this._x = cloudbStartx - cloudbSpeed;
}
}
Instance of Symbol 50 MovieClip "maincloudc" in Frame 10
onClipEvent (load) {
cloudc.duplicateMovieClip("cloudbc", 100);
cloudc._x = cloudc._x + cloudc._width;
cloudcStartx = this._x;
cloudcSpeed = 3.5;
}
onClipEvent (enterFrame) {
this._x = this._x - cloudcSpeed;
if (this._x <= ((cloudcStartx - cloudc._width) + 5)) {
this._x = cloudcStartx - cloudcSpeed;
}
}
Instance of Symbol 53 MovieClip in Frame 10
onClipEvent (load) {
ground.duplicateMovieClip("ground2", 100);
ground2._x = (ground._x + ground._width) - 2.5;
groundStartx = this._x;
groundSpeed = 15;
}
onClipEvent (enterFrame) {
this._x = this._x - groundSpeed;
if (this._x <= (groundStartx - ground._width)) {
this._x = groundStartx - groundSpeed;
}
_root.life = _root.life + 1;
_root.aimfor = _root.aimfor - 1;
_root.fuel = _root.fuel - 1;
}
Instance of Symbol 62 MovieClip "hero" in Frame 10
onClipEvent (load) {
_root.hero.ymov = 0;
gravity = 0.5;
velocity = 1.5;
maxgrav = 7;
maxvelocity = -7;
_root.smoke._visible = false;
smokeCounter = 1;
maxsmoke = 5;
depthCounter = 1;
}
onClipEvent (enterFrame) {
function addFrictionAndGravity() {
_root.hero.ymov = _root.hero.ymov + gravity;
_root.hero._y = _root.hero._y + _root.hero.ymov;
if (_root.hero.ymov > maxgrav) {
_root.hero.ymov = maxgrav;
}
}
function addVelocity() {
_root.hero.ymov = _root.hero.ymov - velocity;
_root.hero._y = _root.hero._y + _root.hero.ymov;
if (_root.hero.ymov < maxvelocity) {
_root.hero.ymov = maxvelocity;
}
}
addFrictionAndGravity();
if (Key.isDown(32) && (this._y > 15)) {
addVelocity();
}
if (this.hitTest(_root.grass)) {
_root.gotoAndPlay("restart one");
}
if (_root.health <= 0) {
_root.gotoAndStop("game over");
}
if (_root.health <= 2) {
smokeCounter++;
_root.smoke.duplicateMovieClip("smoke" + depthCounter, depthCounter);
_root["smoke" + depthCounter]._visible = true;
depthCounter++;
if (depthCounter > smokeLasers) {
depthCounter = 1;
}
}
}
Instance of Symbol 67 MovieClip "enemy2" in Frame 10
onClipEvent (load) {
function reset() {
hit = false;
this._x = 720;
this._y = random(200) + 15;
enemySpeed = 18;
}
hit = false;
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - enemySpeed;
if (this.hitTest(_root.hero.hittest) && (hit == false)) {
hit = true;
this.gotoAndPlay(2);
_root.health--;
}
if (this.hitTest(_root.kraut.hittest) && (hit == false)) {
hit = true;
this.gotoAndPlay(2);
}
if (_root.health <= 0) {
_root.gotoAndStop("game over");
}
if (this._x < -25) {
reset();
}
}
Instance of Symbol 69 MovieClip "smoke" in Frame 10
onClipEvent (load) {
smokeMoveSpeed = 20;
this._y = _root.hero._y;
this._x = _root.hero._x;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (this._name != "smoke") {
this._x = this._x - smokeMoveSpeed;
if (this._x < 50) {
_root.hero.smokeCounter--;
this.removeMovieClip();
}
}
if (_root.lastframe == true) {
_root.hero.smokeCounter--;
this.removeMovieClip();
}
}
Instance of Symbol 67 MovieClip "enemy1" in Frame 10
onClipEvent (load) {
function reset() {
hit = false;
this._x = 720;
this._y = random(200) + 15;
enemySpeed = 18;
}
hit = false;
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - enemySpeed;
if (this.hitTest(_root.hero.hittest) && (hit == false)) {
hit = true;
this.gotoAndPlay(2);
_root.health--;
}
if (this.hitTest(_root.kraut.hittest) && (hit == false)) {
hit = true;
this.gotoAndPlay(2);
}
if (_root.health <= 0) {
_root.gotoAndStop("game over");
}
if (this._x < -25) {
reset();
}
}
Frame 11
stop();
lastframe = false;
Instance of Symbol 53 MovieClip in Frame 11
onClipEvent (load) {
ground.duplicateMovieClip("ground2", 100);
ground2._x = (ground._x + ground._width) - 2.5;
groundStartx = this._x;
groundSpeed = 15;
}
onClipEvent (enterFrame) {
this._x = this._x - groundSpeed;
if (this._x <= (groundStartx - ground._width)) {
this._x = groundStartx - groundSpeed;
}
_root.life = _root.life + 1;
_root.aimfor = _root.aimfor - 1;
if (_root.aimfor <= 0) {
_root.level = two;
_root.gotoAndStop("between");
}
_root.fuel = _root.fuel - 1;
}
Instance of Symbol 53 MovieClip in Frame 18
onClipEvent (load) {
ground.duplicateMovieClip("ground2", 100);
ground2._x = (ground._x + ground._width) - 2.5;
groundStartx = this._x;
groundSpeed = 15;
}
onClipEvent (enterFrame) {
this._x = this._x - groundSpeed;
if (this._x <= (groundStartx - ground._width)) {
this._x = groundStartx - groundSpeed;
}
_root.life = _root.life + 1;
_root.aimfor = _root.aimfor - 1;
if (_root.aimfor <= 0) {
_root.level = two;
_root.gotoAndStop("between two");
}
_root.fuel = _root.fuel - 1;
}
Instance of Symbol 119 MovieClip "laser" in Frame 18
onClipEvent (load) {
laserMoveSpeed = 20;
this._y = _root.kraut._y + 8;
this._x = _root.kraut._x + 85;
}
onClipEvent (enterFrame) {
if (this._name != "laser") {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
_root.kraut.laserCounter--;
this.removeMovieClip();
}
}
if (this.hitTest(_root.hero.hittest)) {
_root.health--;
_root.head.gotoAndStop(1);
}
if (_root.lastframe == true) {
_root.kraut.laserCounter--;
this.removeMovieClip();
}
}
Instance of Symbol 62 MovieClip "hero" in Frame 18
onClipEvent (load) {
_root.hero.ymov = 0;
gravity = 0.5;
velocity = 1.5;
maxgrav = 7;
maxvelocity = -7;
_root.smoke._visible = false;
smokeCounter = 1;
maxsmoke = 5;
depthCounter = 10;
}
onClipEvent (enterFrame) {
function addFrictionAndGravity() {
_root.hero.ymov = _root.hero.ymov + gravity;
_root.hero._y = _root.hero._y + _root.hero.ymov;
if (_root.hero.ymov > maxgrav) {
_root.hero.ymov = maxgrav;
}
}
function addVelocity() {
_root.hero.ymov = _root.hero.ymov - velocity;
_root.hero._y = _root.hero._y + _root.hero.ymov;
if (_root.hero.ymov < maxvelocity) {
_root.hero.ymov = maxvelocity;
}
}
addFrictionAndGravity();
if (Key.isDown(32) && (this._y > 15)) {
addVelocity();
}
if (this.hitTest(_root.grass)) {
_root.gotoAndPlay("restart two");
}
if (_root.health <= 0) {
_root.gotoAndStop("game over");
}
if (_root.health <= 2) {
smokeCounter++;
_root.smoke.duplicateMovieClip("smoke" + depthCounter, depthCounter);
_root["smoke" + depthCounter]._visible = true;
depthCounter++;
if (depthCounter > maxSmoke) {
depthCounter = 10;
}
}
}
Instance of Symbol 69 MovieClip "smoke" in Frame 18
onClipEvent (load) {
smokeMoveSpeed = 20;
this._y = _root.hero._y;
this._x = _root.hero._x;
this._rotation = random(360);
}
onClipEvent (enterFrame) {
if (this._name != "smoke") {
this._x = this._x - smokeMoveSpeed;
if (this._x < 50) {
_root.hero.smokeCounter--;
this.removeMovieClip();
}
}
if (_root.lastframe == true) {
_root.hero.smokeCounter--;
this.removeMovieClip();
}
}
Instance of Symbol 67 MovieClip "enemy1" in Frame 18
onClipEvent (load) {
function reset() {
hit = false;
this._x = 720;
this._y = random(200) + 15;
enemySpeed = 18;
}
hit = false;
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - enemySpeed;
if (this.hitTest(_root.hero.hittest) && (hit == false)) {
hit = true;
this.gotoAndPlay(2);
_root.health--;
}
if (this.hitTest(_root.kraut.hittest) && (hit == false)) {
hit = true;
this.gotoAndPlay(2);
}
if (_root.health <= 0) {
_root.gotoAndStop("game over");
}
if (this._x < -25) {
reset();
}
}
Instance of Symbol 121 MovieClip "kraut" in Frame 18
onClipEvent (load) {
function reset() {
this._x = -250;
this._y = 50;
shouting = false;
}
_root.laser._visible = false;
laserCounter = 1;
maxLasers = 4;
depthCounter = 1;
shouting = false;
enemySpeed = 3;
reset();
}
onClipEvent (enterFrame) {
if ((Key.isDown(32) && (this._x == 20)) && (laserCounter <= maxLasers)) {
if (shouting == false) {
shouting = true;
_root.head.gotoAndPlay("razz");
}
laserCounter++;
_root.laser.duplicateMovieClip("laser" + depthCounter, depthCounter);
_root["laser" + depthCounter]._visible = true;
depthCounter++;
if (depthCounter > maxLasers) {
depthCounter = 1;
}
}
this._x = this._x + enemySpeed;
if (this._x >= 20) {
this._x = 20;
}
if (this._y < _root.hero._y) {
this._y = this._y + enemySpeed;
} else if (this._y > _root.hero._y) {
this._y = this._y - enemySpeed;
}
}
Frame 19
stop();
lastframe = false;
Instance of Symbol 53 MovieClip in Frame 28
onClipEvent (load) {
ground.duplicateMovieClip("ground2", 100);
ground2._x = (ground._x + ground._width) - 2.5;
groundStartx = this._x;
groundSpeed = 15;
}
onClipEvent (enterFrame) {
this._x = this._x - groundSpeed;
if (this._x <= (groundStartx - ground._width)) {
this._x = groundStartx - groundSpeed;
}
_root.life = _root.life + 1;
_root.aimfor = _root.aimfor - 1;
if (_root.aimfor <= 0) {
_root.gotoAndStop("winner");
}
if (_root.fuel > 0) {
_root.fuel = _root.fuel - 1;
}
}
Instance of Symbol 132 MovieClip "food" in Frame 28
onClipEvent (load) {
function reset() {
this._x = 2820;
this._y = 249.5;
enemySpeed = 18;
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - enemySpeed;
if (this.hitTest(_root.hero)) {
_root.gauge2.hand2._rotation = _root.gauge2.hand2._rotation + 75;
_root.fuel = _root.fuel + 150;
reset();
}
if (this._x < -310) {
reset();
}
}
Instance of Symbol 62 MovieClip "hero" in Frame 28
onClipEvent (load) {
_root.hero.ymov = 0;
gravity = 0.5;
velocity = 1.5;
maxgrav = 7;
maxvelocity = -7;
_root.smoke._visible = false;
smokeCounter = 1;
maxsmoke = 5;
depthCounter = 10;
}
onClipEvent (enterFrame) {
function addFrictionAndGravity() {
_root.hero.ymov = _root.hero.ymov + gravity;
_root.hero._y = _root.hero._y + _root.hero.ymov;
if (_root.hero.ymov > maxgrav) {
_root.hero.ymov = maxgrav;
}
}
function addVelocity() {
_root.hero.ymov = _root.hero.ymov - velocity;
_root.hero._y = _root.hero._y + _root.hero.ymov;
if (_root.hero.ymov < maxvelocity) {
_root.hero.ymov = maxvelocity;
}
}
addFrictionAndGravity();
if ((Key.isDown(32) && (this._y > 15)) && (_root.fuel != 0)) {
addVelocity();
}
if (this.hitTest(_root.grass)) {
if (_root.fuel >= 1) {
_root.gotoAndPlay("restart three");
} else if (_root.fuel == 0) {
_root.gotoAndPlay("game over");
}
}
if (_root.health <= 0) {
_root.gotoAndStop("game over");
}
if (_root.health <= 2) {
smokeCounter++;
_root.smoke.duplicateMovieClip("smoke" + depthCounter, depthCounter);
_root["smoke" + depthCounter]._visible = true;
depthCounter++;
if (depthCounter > smokeLasers) {
depthCounter = 10;
}
}
}
Instance of Symbol 121 MovieClip "kraut" in Frame 28
onClipEvent (load) {
function reset() {
this._x = -250;
this._y = 50;
shouting = false;
}
_root.laser._visible = false;
laserCounter = 1;
maxLasers = 4;
depthCounter = 1;
shouting = false;
enemySpeed = 3;
reset();
}
onClipEvent (enterFrame) {
if ((Key.isDown(32) && (this._x == 20)) && (laserCounter <= maxLasers)) {
if (shouting == false) {
shouting = true;
_root.head.gotoAndPlay("razz");
}
laserCounter++;
_root.laser.duplicateMovieClip("laser" + depthCounter, depthCounter);
_root["laser" + depthCounter]._visible = true;
depthCounter++;
if (depthCounter > maxLasers) {
depthCounter = 1;
}
}
this._x = this._x + enemySpeed;
if (this._x >= 20) {
this._x = 20;
}
if (this._y < _root.hero._y) {
this._y = this._y + enemySpeed;
} else if (this._y > _root.hero._y) {
this._y = this._y - enemySpeed;
}
if (this.hitTest(_root.enemy1)) {
reset();
}
if (this.hitTest(_root.enemy2)) {
reset();
}
}
Instance of Symbol 67 MovieClip "enemy1" in Frame 28
onClipEvent (load) {
function reset() {
hit = false;
this._x = 720;
this._y = random(200) + 15;
enemySpeed = 18;
}
hit = false;
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - enemySpeed;
if (this.hitTest(_root.hero.hittest) && (hit == false)) {
hit = true;
this.gotoAndPlay(2);
_root.health--;
}
if (this.hitTest(_root.kraut.hittest) && (hit == false)) {
hit = true;
this.gotoAndPlay(2);
}
if (_root.health <= 0) {
_root.gotoAndStop("game over");
}
if (this._x < -25) {
reset();
}
}
Instance of Symbol 142 MovieClip in Frame 28
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.fuel < 100) && (_root.fuel > 0)) {
this._visible = true;
}
}
Frame 29
stop();
lastframe = false;
Frame 38
stop();
life = 1;
aimfor = 749;
fuel = 749;
lastframe = true;
health = 3;
Frame 46
stop();
life = 1;
aimfor = 999;
fuel = 720;
lastframe = true;
health = 3;
Frame 55
stop();
life = 1;
health = 3;
lastframe = true;
aimfor = 500;
Frame 64
stop();
life = 1;
aimfor = 750;
lastframe = true;
health = 3;
Frame 73
stop();
life = 1;
aimfor = 999;
fuel = 720;
lastframe = true;
health = 3;
Frame 83
stop();
Frame 94
stop();
Frame 106
stop();
lastframe = true;
Symbol 29 Button
on (release) {
_root.gotoAndPlay("level one");
}
Symbol 31 Button
on (release) {
_root.gotoAndStop("instructions");
}
Instance of Symbol 61 MovieClip "flame" in Symbol 62 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.health > 1) {
this._visible = false;
} else if (_root.health <= 1) {
this._visible = true;
}
}
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 4
this.reset();
Instance of Symbol 74 MovieClip in Symbol 98 MovieClip Frame 1
onClipEvent (load) {
gravity = 1;
velocity = 3;
}
onClipEvent (enterFrame) {
function addGravity() {
if (_root._y < 105) {
this._alpha = this._alpha - gravity;
} else if (_root._y > 105) {
this._alpha = this._alpha - (gravity / 3);
}
}
function addVelocity() {
this._alpha = this._alpha + velocity;
}
addGravity();
if (Key.isDown(32)) {
addVelocity();
}
if (this._alpha < 31) {
this._alpha = 31;
}
}
Symbol 98 MovieClip Frame 3
gotoAndPlay (1);
Instance of Symbol 74 MovieClip in Symbol 98 MovieClip Frame 4
onClipEvent (load) {
gravity = 1;
velocity = 3;
}
onClipEvent (enterFrame) {
function addGravity() {
if (_root._y < 105) {
this._alpha = this._alpha - gravity;
} else if (_root._y > 105) {
this._alpha = this._alpha - (gravity / 3);
}
}
function addVelocity() {
this._alpha = this._alpha + velocity;
}
addGravity();
if (Key.isDown(32)) {
addVelocity();
}
if (this._alpha < 31) {
this._alpha = 31;
}
}
Symbol 98 MovieClip Frame 20
gotoAndPlay (1);
Instance of Symbol 74 MovieClip in Symbol 98 MovieClip Frame 20
onClipEvent (load) {
gravity = 1;
velocity = 3;
}
onClipEvent (enterFrame) {
function addGravity() {
if (_root._y < 105) {
this._alpha = this._alpha - gravity;
} else if (_root._y > 105) {
this._alpha = this._alpha - (gravity / 3);
}
}
function addVelocity() {
this._alpha = this._alpha + velocity;
}
addGravity();
if (Key.isDown(32)) {
addVelocity();
}
if (this._alpha < 31) {
this._alpha = 31;
}
}
Instance of Symbol 114 MovieClip "hand" in Symbol 115 MovieClip Frame 1
onClipEvent (enterFrame) {
i = getProperty(this, _rotation);
setProperty(this, _rotation , i - 0.25);
_root.fuel = i;
}
Instance of Symbol 57 MovieClip "hittest" in Symbol 121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy1)) {
_root.kraut.reset();
}
if (this.hitTest(_root.enemy2)) {
_root.kraut.reset();
}
}
Instance of Symbol 148 MovieClip "hand2" in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.fuel >= 1) {
i = getProperty(this, _rotation);
setProperty(this, _rotation , i - 0.5);
}
}
Symbol 152 Button
on (release) {
_root.gotoAndPlay("level two");
}
Symbol 156 Button
on (release) {
_root.gotoAndPlay("level three");
}
Symbol 165 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 171 Button
on (release) {
getURL ("http://www.adamtwycross.co.uk/flyboytoon.htm", "_blank");
}