Frame 1
function mnuAboutFunc() {
getURL ("http://www.foon.co.uk/", "_top");
}
function mnuRestartFunc() {
gotoAndStop ("Title Screen");
}
Button.prototype.tabEnabled = false;
var myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
myContextMenu.customItems.push(new ContextMenuItem("Foon.co.uk", mnuAboutFunc));
myContextMenu.customItems.push(new ContextMenuItem("Restart", mnuRestartFunc));
_root.menu = myContextMenu;
fscommand ("allowscale", "false");
Frame 3
percentage = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
loader.gotoAndStop(percentage);
if (percentage == 100) {
fade.prevFrame();
} else if (fade._currentframe < 9) {
fade.nextFrame();
}
if ((percentage == 100) && (fade._currentframe == 1)) {
play();
} else {
gotoAndPlay (2);
}
Frame 4
function playNewItem(i) {
_root.item_box.playNewItem(i);
}
function initialise() {
lev.gotoAndStop(start_screen);
items_need_updating = true;
}
function enterLevel() {
i = 0;
while (i < 8) {
ritemcounts[i] = mitemcounts[i];
ritems[i] = mitems[i];
i++;
}
_root.lev.solid.cacheAsBitmap = true;
_root.lev.solid.stat.cacheAsBitmap = true;
}
function processActors() {
var _local3;
var _local4;
var _local1;
var _local2;
_local4 = 2;
_local3 = 0;
while (_local3 < _local4) {
if (items_need_updating) {
items_need_updating = false;
item_box.update();
}
for (_local1 in lev) {
_local2 = lev[_local1];
process(_local2);
}
for (_local1 in lev.solid) {
_local2 = lev.solid[_local1];
process(_local2);
}
if (crane_tracking) {
lev.crane._x = lev._xmouse;
} else if (crane_xing) {
if (crane_count <= 0) {
if (lev.crane._x > 220) {
crane_xing = false;
} else {
lev.crane._x = lev.crane._x + 3;
}
} else {
crane_count--;
}
}
if (Key.isDown(37)) {
if (!kl) {
trace(ASProf.getFlatGraph());
}
kl = true;
} else {
kl = false;
}
_local3++;
}
}
function death() {
_root.lives--;
_root.life_clip.play();
if (_root.lives == 0) {
showNotice("Game Over");
_root.lives = undefined;
} else {
showNotice("Dead");
}
}
function process(o) {
if (o.isActor() && (o._visible)) {
if (!o.is_static) {
doPhysics(o);
}
if (o._y > 200) {
if ((o._name == "man") && (exit_down == true)) {
var _local3;
var _local2;
_local3 = o._x;
_local2 = -215;
lev.nextFrame();
enterLevel();
lev.man._x = _local3;
lev.man._y = _local2;
} else {
kill(o);
}
}
if (o.actor_type == "Nasty") {
doAI(o);
}
if (o.actor_type == "Man") {
doAI(o);
if (o._name == "man") {
if (o._x > 225) {
var _local3 = -185;
var _local2 = o._y;
lev.nextFrame();
enterLevel();
lev.man._x = _local3;
lev.man._y = _local2;
}
if (o._x < -200) {
if (o.dir == 1) {
o.dir = -1;
} else {
o.dir = 1;
}
}
}
}
doTiming(o);
if (o.cstate == "Flying") {
o.onFrame();
}
}
}
function doTiming(o) {
if (o.state_time > -1) {
if (o.state_time == 0) {
o.state_time = -1;
o.setState(o.next_state);
} else {
o.state_time--;
}
}
}
function worldCol(targ, x, y) {
return(targ.hitTest(x, y, true) && (!_root.lev.solid.minus.hitTest(x, y, true)));
}
function doPhysics(o) {
var _local7;
var _local8;
_local8 = 1;
if (o.dropped) {
_local8 = 3;
}
_local7 = 0;
while (_local7 < _local8) {
var _local6;
var _local5;
var _local4 = 0;
_local6 = o._x;
_local5 = o._y;
if ((o.getState() != "Hanging") && (o.getState() != "Flying")) {
if (o.dropped) {
o._vy = o._vy + 0.05;
} else {
o._vy = o._vy + 0.3;
}
}
if (o.dropped) {
if (o._vy > 3) {
o._vy = 3;
}
}
o._x = o._x + o._vx;
o._y = o._y + o._vy;
var _local3 = new Object();
_local3.x = (_local3.y = 0);
o.localToGlobal(_local3);
if (o._parent == _root.lev.solid) {
col_target = _root.lev.solid.stat;
} else {
col_target = _root.lev.solid;
}
if (o._vy > fall_threshold) {
o.on_land = false;
}
ycollide = false;
_local4 = 0;
while ((worldCol(col_target, _local3.x - (o._width / 2), _local3.y) || (worldCol(col_target, _local3.x, _local3.y))) || (worldCol(col_target, _local3.x + (o._width / 2), _local3.y))) {
ycollide = true;
if (o._vy > sig_fall_threshold) {
switch (o.actor_type) {
case "Man" :
case "Nasty" :
o.setState("Kneel");
o.timedState("Walk", 30);
if (o._vx > 0) {
o.dir = 1;
}
if (o._vx < 0) {
o.dir = -1;
}
o._vx = 0;
break;
case "Plank" :
case "Crate" :
playSound("Small Bump.wav");
}
} else if (!(o.actor_type === "Nasty")) {
} else {
o.setState("Walk");
}
if (o.dropped) {
x = o._x;
y = o._y;
switch (o.actor_type) {
case "Plank" :
t = "plankclip";
break;
case "Crate" :
t = "crateclip";
break;
case "Bomb" :
d = _root.lev.solid.minus.getNextHighestDepth();
p = _root.lev.solid.minus.attachMovie("crater", "crater" + d, d);
p._x = (x - _root.lev.solid._x) - _root.lev.solid.minus._x;
p._y = (y - _root.lev.solid._y) - _root.lev.solid.minus._y;
d = _root.lev.getNextHighestDepth();
p = _root.lev.attachMovie("Bang", "Bang" + d, d);
p._x = x;
p._y = y;
kill(o);
o._x = (o._y = -666);
t = 0;
}
if (t) {
o.removeMovieClip();
dd = _root.lev.solid.stat.getNextHighestDepth();
item = _root.lev.solid.stat.attachMovie(t, "item" + dd, dd);
item._x = x - _root.lev.solid.stat._x;
item._y = y - _root.lev.solid.stat._y;
}
}
o._y = o._y - 0.2;
_local4 = _local4 + 0.2;
o.on_land = true;
if (_local4 > wall_height) {
o._y = _local5;
o._x = _local6;
o.collision = "Wall";
break;
}
_local3.x = (_local3.y = 0);
o.localToGlobal(_local3);
}
if (ycollide) {
if (o.bounce) {
o._vy = o._vy * (-o.bounce);
} else {
o._vy = 0;
}
if (o.getState() == "Jump") {
o.setState("Kneel");
o.timedState("Walk", 30);
if (o._vx > 0) {
o.dir = 1;
}
if (o._vx < 0) {
o.dir = -1;
}
o._vx = 0;
}
}
if (o.actor_collide) {
for (obj in lev) {
p = lev[obj];
if (((o != p) && (p.isActor())) && (p._visible)) {
if (o.hitTest(p)) {
o.onActorCollide(p);
p.onActorCollide(o);
}
}
}
}
if (o.actor_type != "Crate") {
if (!o.fireproof) {
if (_root.lev.lava) {
if (_root.lev.lava.hitTest(_local3.x, _local3.y, true) || (_root.lev.lava.hitTest(_local3.x, _local3.y - o._height, true))) {
kill(o);
}
}
}
}
_local7++;
}
}
function doAI(o) {
if (o.on_land) {
if (o.getState() == "Walk") {
if (o.collision) {
if (o.collision == "Wall") {
o.dir = o.dir * -1;
}
o.collision = 0;
}
o._x = o._x + o.dir;
}
if ((o.getState() == "Walk") || (o.getState() == "Idle")) {
if (o.getState() == "Walk") {
if (o.dir == 1) {
o._xscale = -100;
} else {
o._xscale = 100;
}
}
}
} else {
o.setState("Fall");
}
}
if (!started) {
with (_global) {
wall_height = 20;
fall_threshold = 4;
sig_fall_threshold = 4;
started = true;
first_start_screen = 2;
lives = undefined;
aw_lives = true;
aw_bombs = true;
aw_house = false;
aw_green = false;
}
clearItems();
chosen_item = -1;
}
_global.clearItems = function () {
mitems = new Array("Empty", "Empty", "Empty", "Empty", "Empty", "Empty", "Empty", "Empty");
mitemcounts = new Array(0, 0, 0, 0, 0, 0, 0, 0);
ritems = new Array("Empty", "Empty", "Empty", "Empty", "Empty", "Empty", "Empty", "Empty");
ritemcounts = new Array(0, 0, 0, 0, 0, 0, 0, 0);
};
_global.playSound = function (snd) {
sound_obj = new Sound();
sound_obj.attachSound(snd);
sound_obj.start(0, 1);
};
_global.shotKill = function (o, xvel) {
p = new Object();
p.x = (p.y = 0);
o.localToGlobal(p);
i = 0;
while (i < 10) {
spawn_depth = lev.getNextHighestDepth();
m = lev.attachMovie("p_blood", "p" + spawn_depth, spawn_depth);
m._x = p.x - lev._x;
m._y = p.y - lev._y;
if (xvel > 0) {
m._vx = random(7);
} else {
m._vx = -random(7);
}
i++;
}
silentKill(o);
};
_global.kill = function (o) {
p = new Object();
p.x = (p.y = 0);
o.localToGlobal(p);
i = 0;
while (i < 10) {
spawn_depth = lev.getNextHighestDepth();
m = lev.attachMovie("p_blood", "p" + spawn_depth, spawn_depth);
m._x = p.x - lev._x;
m._y = p.y - lev._y;
i++;
}
silentKill(o);
};
_global.silentKill = function (o) {
o._visible = false;
o.dead = true;
o.onDie();
if (o._name == "man") {
death();
}
};
collectItems = function (item_array) {
while (item_array.length) {
i = item_array.pop();
collectItem(i);
}
item_box.update();
};
collectItem = function (the_item) {
i = 0;
while (i < 8) {
if (mitems[i] == the_item) {
mitemcounts[i]++;
playNewItem(i);
return(true);
}
i++;
}
i = 0;
while (i < 8) {
if (mitemcounts[i] == 0) {
mitemcounts[i] = 1;
mitems[i] = the_item;
playNewItem(i);
return(true);
}
i++;
}
return(false);
};
_global.resetItems = function () {
i = 0;
while (i < 8) {
mitemcounts[i] = ritemcounts[i];
mitems[i] = ritems[i];
i++;
}
};
_global.showNotice = function (frame) {
notify.gotoAndStop(frame);
notify._alpha = 0;
ntime = 30;
fadenotify = true;
};
stop();
start_screen = first_start_screen;
started = false;
newgame.onPress = function () {
fade.gotoAndPlay("Fade Out");
fade.onFadeOut = function () {
_root.play();
};
};
moregames.onPress = function () {
getURL ("http://www.foon.co.uk/farcade/", "_top");
};
help.onPress = function () {
helpmsg.play();
};
Frame 5
chosen_item = -1;
Frame 6
function playNewItem(i) {
_root.item_box.playNewItem(i);
}
function initialise() {
lev.gotoAndStop(start_screen);
items_need_updating = true;
}
function enterLevel() {
i = 0;
while (i < 8) {
ritemcounts[i] = mitemcounts[i];
ritems[i] = mitems[i];
i++;
}
_root.lev.solid.cacheAsBitmap = true;
_root.lev.solid.stat.cacheAsBitmap = true;
}
function processActors() {
var _local3;
var _local4;
var _local1;
var _local2;
_local4 = 2;
_local3 = 0;
while (_local3 < _local4) {
if (items_need_updating) {
items_need_updating = false;
item_box.update();
}
for (_local1 in lev) {
_local2 = lev[_local1];
process(_local2);
}
for (_local1 in lev.solid) {
_local2 = lev.solid[_local1];
process(_local2);
}
if (crane_tracking) {
lev.crane._x = lev._xmouse;
} else if (crane_xing) {
if (crane_count <= 0) {
if (lev.crane._x > 220) {
crane_xing = false;
} else {
lev.crane._x = lev.crane._x + 3;
}
} else {
crane_count--;
}
}
if (Key.isDown(37)) {
if (!kl) {
trace(ASProf.getFlatGraph());
}
kl = true;
} else {
kl = false;
}
_local3++;
}
}
function death() {
_root.lives--;
_root.life_clip.play();
if (_root.lives == 0) {
showNotice("Game Over");
_root.lives = undefined;
} else {
showNotice("Dead");
}
}
function process(o) {
if (o.isActor() && (o._visible)) {
if (!o.is_static) {
doPhysics(o);
}
if (o._y > 200) {
if ((o._name == "man") && (exit_down == true)) {
var _local3;
var _local2;
_local3 = o._x;
_local2 = -215;
lev.nextFrame();
enterLevel();
lev.man._x = _local3;
lev.man._y = _local2;
} else {
kill(o);
}
}
if (o.actor_type == "Nasty") {
doAI(o);
}
if (o.actor_type == "Man") {
doAI(o);
if (o._name == "man") {
if (o._x > 225) {
var _local3 = -185;
var _local2 = o._y;
lev.nextFrame();
enterLevel();
lev.man._x = _local3;
lev.man._y = _local2;
}
if (o._x < -200) {
if (o.dir == 1) {
o.dir = -1;
} else {
o.dir = 1;
}
}
}
}
doTiming(o);
if (o.cstate == "Flying") {
o.onFrame();
}
}
}
function doTiming(o) {
if (o.state_time > -1) {
if (o.state_time == 0) {
o.state_time = -1;
o.setState(o.next_state);
} else {
o.state_time--;
}
}
}
function worldCol(targ, x, y) {
return(targ.hitTest(x, y, true) && (!_root.lev.solid.minus.hitTest(x, y, true)));
}
function doPhysics(o) {
var _local7;
var _local8;
_local8 = 1;
if (o.dropped) {
_local8 = 3;
}
_local7 = 0;
while (_local7 < _local8) {
var _local6;
var _local5;
var _local4 = 0;
_local6 = o._x;
_local5 = o._y;
if ((o.getState() != "Hanging") && (o.getState() != "Flying")) {
if (o.dropped) {
o._vy = o._vy + 0.05;
} else {
o._vy = o._vy + 0.3;
}
}
if (o.dropped) {
if (o._vy > 3) {
o._vy = 3;
}
}
o._x = o._x + o._vx;
o._y = o._y + o._vy;
var _local3 = new Object();
_local3.x = (_local3.y = 0);
o.localToGlobal(_local3);
if (o._parent == _root.lev.solid) {
col_target = _root.lev.solid.stat;
} else {
col_target = _root.lev.solid;
}
if (o._vy > fall_threshold) {
o.on_land = false;
}
ycollide = false;
_local4 = 0;
while ((worldCol(col_target, _local3.x - (o._width / 2), _local3.y) || (worldCol(col_target, _local3.x, _local3.y))) || (worldCol(col_target, _local3.x + (o._width / 2), _local3.y))) {
ycollide = true;
if (o._vy > sig_fall_threshold) {
switch (o.actor_type) {
case "Man" :
case "Nasty" :
o.setState("Kneel");
o.timedState("Walk", 30);
if (o._vx > 0) {
o.dir = 1;
}
if (o._vx < 0) {
o.dir = -1;
}
o._vx = 0;
break;
case "Plank" :
case "Crate" :
playSound("Small Bump.wav");
}
} else if (!(o.actor_type === "Nasty")) {
} else {
o.setState("Walk");
}
if (o.dropped) {
x = o._x;
y = o._y;
switch (o.actor_type) {
case "Plank" :
t = "plankclip";
break;
case "Crate" :
t = "crateclip";
break;
case "Bomb" :
d = _root.lev.solid.minus.getNextHighestDepth();
p = _root.lev.solid.minus.attachMovie("crater", "crater" + d, d);
p._x = (x - _root.lev.solid._x) - _root.lev.solid.minus._x;
p._y = (y - _root.lev.solid._y) - _root.lev.solid.minus._y;
d = _root.lev.getNextHighestDepth();
p = _root.lev.attachMovie("Bang", "Bang" + d, d);
p._x = x;
p._y = y;
kill(o);
o._x = (o._y = -666);
t = 0;
}
if (t) {
o.removeMovieClip();
dd = _root.lev.solid.stat.getNextHighestDepth();
item = _root.lev.solid.stat.attachMovie(t, "item" + dd, dd);
item._x = x - _root.lev.solid.stat._x;
item._y = y - _root.lev.solid.stat._y;
}
}
o._y = o._y - 0.2;
_local4 = _local4 + 0.2;
o.on_land = true;
if (_local4 > wall_height) {
o._y = _local5;
o._x = _local6;
o.collision = "Wall";
break;
}
_local3.x = (_local3.y = 0);
o.localToGlobal(_local3);
}
if (ycollide) {
if (o.bounce) {
o._vy = o._vy * (-o.bounce);
} else {
o._vy = 0;
}
if (o.getState() == "Jump") {
o.setState("Kneel");
o.timedState("Walk", 30);
if (o._vx > 0) {
o.dir = 1;
}
if (o._vx < 0) {
o.dir = -1;
}
o._vx = 0;
}
}
if (o.actor_collide) {
for (obj in lev) {
p = lev[obj];
if (((o != p) && (p.isActor())) && (p._visible)) {
if (o.hitTest(p)) {
o.onActorCollide(p);
p.onActorCollide(o);
}
}
}
}
if (o.actor_type != "Crate") {
if (!o.fireproof) {
if (_root.lev.lava) {
if (_root.lev.lava.hitTest(_local3.x, _local3.y, true) || (_root.lev.lava.hitTest(_local3.x, _local3.y - o._height, true))) {
kill(o);
}
}
}
}
_local7++;
}
}
function doAI(o) {
if (o.on_land) {
if (o.getState() == "Walk") {
if (o.collision) {
if (o.collision == "Wall") {
o.dir = o.dir * -1;
}
o.collision = 0;
}
o._x = o._x + o.dir;
}
if ((o.getState() == "Walk") || (o.getState() == "Idle")) {
if (o.getState() == "Walk") {
if (o.dir == 1) {
o._xscale = -100;
} else {
o._xscale = 100;
}
}
}
} else {
o.setState("Fall");
}
}
if (!started) {
with (_global) {
wall_height = 20;
fall_threshold = 4;
sig_fall_threshold = 4;
started = true;
first_start_screen = 2;
lives = undefined;
aw_lives = true;
aw_bombs = true;
aw_house = false;
aw_green = false;
}
clearItems();
chosen_item = -1;
}
_global.clearItems = function () {
mitems = new Array("Empty", "Empty", "Empty", "Empty", "Empty", "Empty", "Empty", "Empty");
mitemcounts = new Array(0, 0, 0, 0, 0, 0, 0, 0);
ritems = new Array("Empty", "Empty", "Empty", "Empty", "Empty", "Empty", "Empty", "Empty");
ritemcounts = new Array(0, 0, 0, 0, 0, 0, 0, 0);
};
_global.playSound = function (snd) {
sound_obj = new Sound();
sound_obj.attachSound(snd);
sound_obj.start(0, 1);
};
_global.shotKill = function (o, xvel) {
p = new Object();
p.x = (p.y = 0);
o.localToGlobal(p);
i = 0;
while (i < 10) {
spawn_depth = lev.getNextHighestDepth();
m = lev.attachMovie("p_blood", "p" + spawn_depth, spawn_depth);
m._x = p.x - lev._x;
m._y = p.y - lev._y;
if (xvel > 0) {
m._vx = random(7);
} else {
m._vx = -random(7);
}
i++;
}
silentKill(o);
};
_global.kill = function (o) {
p = new Object();
p.x = (p.y = 0);
o.localToGlobal(p);
i = 0;
while (i < 10) {
spawn_depth = lev.getNextHighestDepth();
m = lev.attachMovie("p_blood", "p" + spawn_depth, spawn_depth);
m._x = p.x - lev._x;
m._y = p.y - lev._y;
i++;
}
silentKill(o);
};
_global.silentKill = function (o) {
o._visible = false;
o.dead = true;
o.onDie();
if (o._name == "man") {
death();
}
};
collectItems = function (item_array) {
while (item_array.length) {
i = item_array.pop();
collectItem(i);
}
item_box.update();
};
collectItem = function (the_item) {
i = 0;
while (i < 8) {
if (mitems[i] == the_item) {
mitemcounts[i]++;
playNewItem(i);
return(true);
}
i++;
}
i = 0;
while (i < 8) {
if (mitemcounts[i] == 0) {
mitemcounts[i] = 1;
mitems[i] = the_item;
playNewItem(i);
return(true);
}
i++;
}
return(false);
};
_global.resetItems = function () {
i = 0;
while (i < 8) {
mitemcounts[i] = ritemcounts[i];
mitems[i] = ritems[i];
i++;
}
};
_global.showNotice = function (frame) {
notify.gotoAndStop(frame);
notify._alpha = 0;
ntime = 30;
fadenotify = true;
};
initialise();
Instance of Symbol 180 MovieClip "item_box" in Frame 6
onClipEvent (keyDown) {
switch (Key.getCode()) {
case 81 :
is1.onClick();
break;
case 87 :
is2.onClick();
break;
case 65 :
is3.onClick();
break;
case 83 :
is4.onClick();
break;
case 90 :
is5.onClick();
break;
case 88 :
is6.onClick();
}
}
Frame 7
if (!fadenotify) {
processActors();
}
if (fadenotify) {
if (ntime > 0) {
ntime--;
} else {
notify._alpha = notify._alpha + 10;
if (notify._alpha >= 100) {
fadenotify = false;
}
}
}
Frame 8
gotoAndPlay (7);
Symbol 11 MovieClip [Landmine] Frame 1
#initclip 15
Object.registerClass("Landmine", Actor);
#endinitclip
is_static = true;
Symbol 11 MovieClip [Landmine] Frame 16
gotoAndPlay ("Idle");
Symbol 13 MovieClip [p_light] Frame 1
if (_vx == undefined) {
_vx = random(7) - 3;
}
if (_vy == undefined) {
_vy = random(3) - 1;
}
_alpha = (_alpha - random(3));
_vy = _vy + 0.5;
_x = (_x + _vx);
_y = (_y + _vy);
if (_alpha <= 0) {
this.removeMovieClip();
}
Symbol 16 MovieClip [Bang] Frame 76
this.removeMovieClip();
Symbol 17 MovieClip [Pop] Frame 50
this.removeMovieClip();
Symbol 20 MovieClip [p_smoke] Frame 1
if (_vx == undefined) {
_vx = 0;
}
if (_vy == undefined) {
_vy = -0.5;
}
_vx = _vx + ((random(3) - 1) / 4);
_x = (_x + _vx);
_y = (_y + _vy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.removeMovieClip();
}
Symbol 22 MovieClip Frame 1
this._alpha = random(50) + 50;
Symbol 23 MovieClip [p_blood] Frame 1
if (_vx == undefined) {
_vx = random(7) - 3;
}
if (_vy == undefined) {
_vy = -random(16);
}
_vy = _vy + 1;
_x = (_x + _vx);
_y = (_y + _vy);
if (_alpha <= 0) {
this.removeMovieClip();
}
Symbol 25 MovieClip [crateclip] Frame 1
#initclip 2
Object.registerClass("crateclip", Actor);
#endinitclip
function onActorCollide(o) {
if (_vy > 1) {
if (o.actor_type == "Man") {
kill(o);
}
}
}
actor_collide = true;
Symbol 27 MovieClip [crater] Frame 10
stop();
Symbol 32 MovieClip Frame 1
stop();
hit.onPress = function () {
onHit();
playSound("pop.wav");
gotoAndStop (2);
m = _parent.attachMovie("Pop", this._name + "!", _parent.getNextHighestDepth());
m._x = _x;
m._y = _y;
};
Symbol 33 MovieClip [Plane] Frame 1
#initclip 3
Object.registerClass("Plane", Actor);
#endinitclip
cstate = "Flying";
targ.onHit = function () {
kill(this._parent);
this._parent.onEnterFrame = eval (undefined)();
};
Symbol 36 MovieClip [nasty] Frame 1
#initclip 4
Object.registerClass("nasty", Actor);
#endinitclip
function onActorCollide(o) {
if (o._name == "man") {
kill(o);
}
}
actor_type = "Nasty";
if (cstate == "Walk") {
play();
}
Symbol 36 MovieClip [nasty] Frame 25
gotoAndPlay ("Walk");
Symbol 36 MovieClip [nasty] Frame 26
play();
Symbol 36 MovieClip [nasty] Frame 54
stop();
Symbol 38 MovieClip [Five Up] Frame 1
#initclip 5
Object.registerClass("Five Up", Actor);
#endinitclip
function onActorCollide(o) {
if (o._name == "man") {
kill(this);
_global.aw_lives = false;
this.onActorCollide = undefined;
_root.life_clip.replenish();
}
}
cstate = "Hanging";
Symbol 40 MovieClip [detector] Frame 1
#initclip 6
Object.registerClass("detector", Actor);
#endinitclip
function onActorCollide(o) {
if (o._name == "man") {
if (one_shot) {
onActorCollide = undefined;
}
onDetect();
}
}
stop();
one_shot = true;
cstate = "Hanging";
Symbol 42 MovieClip [Kicker] Frame 1
#initclip 7
Object.registerClass("Kicker", Actor);
#endinitclip
function activate() {
active = true;
play();
}
function onActorCollide(o) {
if (active) {
o.setState("Jump");
o._y = o._y - 50;
if (killx) {
o._vx = 0;
}
if (killy) {
o._vy = 0;
}
if (xvel) {
o._vx = o._vx + xvel;
}
if (yvel) {
o._vy = o._vy + yvel;
}
o.collision = 0;
}
}
stop();
active = false;
Symbol 45 MovieClip [Sign] Frame 1
#initclip 8
Object.registerClass("Sign", Actor);
#endinitclip
function onActorCollide(o) {
if (o._name == "man") {
if (cstate == "Stop") {
o.timedState("Idle", 10);
} else if ((cstate == "Go") && (o.getState() == "Idle")) {
o.setState("Walk");
}
}
}
function setStop() {
setState("Stop");
gotoAndStop (2);
}
function setGo() {
setState("Go");
gotoAndStop (1);
}
function toggleState() {
if (cstate == "Go") {
setStop();
} else {
setGo();
}
}
if (cstate == "Idle") {
setStop();
}
is_static = true;
stop();
hit.onPress = toggleState;
Symbol 47 MovieClip [Bomb] Frame 1
#initclip 9
Object.registerClass("Bomb", Actor);
#endinitclip
actor_type = "Bomb";
dropped = true;
Symbol 49 MovieClip [ItemBag] Frame 1
#initclip 10
Object.registerClass("ItemBag", Actor);
#endinitclip
function onActorCollide(o) {
if (o._name == "man") {
if (o.getState() == "Walk") {
_visible = false;
o.setState("Pickup");
o.timedState("Walk", 30);
playSound("clubip.wav");
_root.collectItems(contents);
onCollect();
}
}
}
is_static = true;
var contents;
stop();
Symbol 51 MovieClip [plankclip] Frame 1
#initclip 11
Object.registerClass("plankclip", Actor);
#endinitclip
Symbol 54 MovieClip [Airship] Frame 1
#initclip 12
Object.registerClass("Airship", Actor);
#endinitclip
if (fcount == undefined) {
fcount = 0;
}
fcount++;
if (_visible && (!(fcount % 40))) {
p = new Object();
p.x = (p.y = 0);
emitter.localToGlobal(p);
spawn_depth = _root.lev.getNextHighestDepth();
m = _root.lev.attachMovie("p_smoke", "p" + spawn_depth, spawn_depth);
m._x = p.x - _root.lev._x;
m._y = p.y - _root.lev._y;
}
Symbol 54 MovieClip [Airship] Frame 2
gotoAndPlay (1);
Symbol 57 MovieClip Frame 1
stop();
Symbol 74 MovieClip [person] Frame 1
#initclip 13
Object.registerClass("person", Actor);
#endinitclip
function jump() {
setState("Kneel");
timedState("Jump", 10);
}
function refreshItem() {
item.gotoAndStop(has_item);
}
function onStateChange() {
if (cstate == "Jump") {
_vy = -5;
_vx = 3 * dir;
}
}
actor_collide = true;
actor_type = "Man";
dir = 1;
refreshItem();
stop();
hit.onPress = function () {
item_no = _root.chosen_item;
if (item_no > -1) {
used = true;
item = _root.mitems[item_no];
count = _root.mitemcounts[item_no];
if (count > 0) {
switch (item) {
case "Jump" :
if (on_land) {
jump();
} else {
used = false;
}
break;
case "Explode" :
m = _parent.attachMovie("Bang", this._name + "!", _parent.getNextHighestDepth());
m._x = _x;
m._y = _y;
kill(this._parent);
break;
case "Turn" :
dir = dir * -1;
}
}
if (used) {
_root.mitemcounts[item_no]--;
}
if (_root.mitemcounts[item_no] == 0) {
_root.chosen_item = -1;
}
_root.item_box.update();
}
};
Symbol 74 MovieClip [person] Frame 11
refreshItem();
Symbol 74 MovieClip [person] Frame 21
refreshItem();
Symbol 74 MovieClip [person] Frame 31
refreshItem();
Symbol 74 MovieClip [person] Frame 41
refreshItem();
Symbol 74 MovieClip [person] Frame 51
refreshItem();
Symbol 74 MovieClip [person] Frame 61
play();
playSound("Reload");
refreshItem();
Symbol 74 MovieClip [person] Frame 87
setState("Idle");
Symbol 74 MovieClip [person] Frame 88
play();
playSound("Shotgun");
refreshItem();
Symbol 74 MovieClip [person] Frame 101
setState("Idle");
Symbol 79 MovieClip [worm] Frame 1
#initclip 14
Object.registerClass("worm", Actor);
#endinitclip
function onActorCollide(o) {
if (o._name == "man") {
kill(o);
}
}
fireproof = true;
actor_type = "Nasty";
if (cstate == "Walk") {
play();
}
if (!dir) {
dir = -0.5;
}
Symbol 486 MovieClip [__Packages.Actor] Frame 0
class Actor extends MovieClip
{
var gotoAndStop;
function Actor () {
super();
}
function isActor() {
return(true);
}
function onStateChange() {
}
function setState(new_state) {
if (new_state != cstate) {
cstate = new_state;
(gotoAndStop(new_state));// not popped
onStateChange();
}
}
function getState() {
return(cstate);
}
function timedState(new_state, time) {
if ((next_state != new_state) || (state_time < 0)) {
next_state = new_state;
state_time = time;
}
}
var _vx = 0;
var _vy = 0;
var actor_type = 0;
var on_land = false;
var dir = 0;
var collision = 0;
var cstate = "Idle";
var next_state = "Idle";
var state_time = -1;
var is_static = false;
var dead = false;
var fireproof = false;
}
Symbol 94 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 9
stop();
onFadeIn();
Symbol 96 MovieClip Frame 14
stop();
onFadeOut();
Instance of Symbol 53 MovieClip "motor" in Symbol 105 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.moving) {
_parent._x = _parent._x - _parent.speed;
if ((_parent._x + _parent._width) < 0) {
_parent.removeMovieClip();
_parent._parent.cloud_index--;
}
}
}
Instance of Symbol 53 MovieClip "motor" in Symbol 107 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.moving) {
_parent._x = _parent._x - _parent.speed;
if ((_parent._x + _parent._width) < 0) {
_parent.removeMovieClip();
_parent._parent.cloud_index--;
}
}
}
Symbol 108 MovieClip Frame 1
cloud_index = 0;
Instance of Symbol 53 MovieClip "cloud factory" in Symbol 108 MovieClip Frame 1
onClipEvent (enterFrame) {
with (_parent) {
if (random(40) == 0) {
cloud_index++;
cloud_name = "cloud_" + cloud_index;
switch (random(2)) {
case 0 :
cloud1.duplicateMovieClip(cloud_name, cloud_index);
break;
case 1 :
cloud2.duplicateMovieClip(cloud_name, cloud_index);
}
eval (cloud_name)._x = 200;
eval (cloud_name)._y = random(_root._height);
eval (cloud_name).moving = true;
eval (cloud_name).speed = random(5);
}
}
}
Symbol 138 MovieClip Frame 10
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 1
stop();
Symbol 171 Button
on (press) {
onClick();
}
Symbol 179 MovieClip Frame 1
function select(i) {
frame.gotoAndStop(i + 1);
}
function setCount(i) {
count = i;
}
function onClick() {
playSound("sclick.wav");
_root.chosen_item = Number(_name.substr(2, 1)) - 1;
_root.lev.crane.gotoAndStop(item_name);
_root.item_box.update();
}
stop();
var count;
Symbol 180 MovieClip Frame 1
function playNewItem(i) {
clip = eval ("is" + (i + 1));
clip.flash.play();
}
function update() {
i = 0;
while (i < 8) {
clip = eval ("is" + (i + 1));
item_held = _root.mitems[i];
item_count = _root.mitemcounts[i];
if (item_count == 0) {
clip.gotoAndStop("Empty");
clip.item_name = "Empty";
} else {
clip.gotoAndStop(item_held);
clip.item_name = item_held;
clip.setCount(item_count);
}
if (i == _root.chosen_item) {
clip.select(1);
} else {
clip.select(0);
}
i++;
}
}
hit.onPress = function () {
playSound("sclick.wav");
_root.chosen_item = -1;
update();
};
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 6
stop();
tooltip = "";
bon.onRelease = function () {
gotoAndStop ("Null");
};
bleft.onRelease = function () {
if (_currentframe != 6) {
prevFrame();
mask.gotoAndPlay(1);
}
};
bright.onRelease = function () {
nextFrame();
mask.gotoAndPlay(1);
};
bon.onRollOver = function () {
tooltip = "Escape";
};
bleft.onRollOver = function () {
tooltip = "Previous Page";
};
bright.onRollOver = function () {
tooltip = "Next Page";
};
bon.onRollOut = (bleft.onRollOut = (bright.onRollOut = function () {
tooltip = "";
}));
equip(farmer, "Shotgun");
Symbol 215 MovieClip Frame 1
stop();
_root.crane_tracking = false;
_root.crane_xing = true;
_root.crane_count = 20;
hit.onPress = function () {
gotoAndStop ("Empty");
};
Symbol 215 MovieClip Frame 8
_root.crane_tracking = true;
hit.onPress = function () {
point = new Object();
point.x = _root.lev.crane._x;
point.y = _root.lev.crane._y;
dd = _root.lev.solid.getNextHighestDepth();
item = _root.lev.solid.attachMovie("plankclip", "item" + dd, dd);
item._x = point.x - _root.lev.solid._x;
item._y = (point.y - _root.lev.solid._y) + 50;
item.actor_type = "Plank";
item.dropped = true;
item_no = _root.chosen_item;
_root.mitemcounts[item_no]--;
if (_root.mitemcounts[item_no] == 0) {
_root.chosen_item = -1;
}
_root.item_box.update();
gotoAndStop ("Empty");
};
Symbol 215 MovieClip Frame 14
_root.crane_tracking = true;
hit.onPress = function () {
point = new Object();
point.x = _root.lev.crane._x;
point.y = _root.lev.crane._y;
dd = _root.lev.solid.getNextHighestDepth();
item = _root.lev.solid.attachMovie("crateclip", "item" + dd, dd);
item._x = point.x - _root.lev.solid._x;
item._y = (point.y - _root.lev.solid._y) + 50;
item.actor_type = "Crate";
item.dropped = true;
item_no = _root.chosen_item;
_root.mitemcounts[item_no]--;
if (_root.mitemcounts[item_no] == 0) {
_root.chosen_item = -1;
}
_root.item_box.update();
gotoAndStop ("Empty");
};
Symbol 215 MovieClip Frame 21
_root.crane_tracking = true;
hit.onPress = function () {
point = new Object();
point.x = _root.lev.crane._x;
point.y = _root.lev.crane._y;
dd = _root.lev.getNextHighestDepth();
item = _root.lev.attachMovie("Bomb", "item" + dd, dd);
item._x = point.x;
item._y = point.y + 50;
item.actor_type = "Bomb";
item.dropped = true;
item_no = _root.chosen_item;
_root.mitemcounts[item_no]--;
if (_root.mitemcounts[item_no] == 0) {
_root.chosen_item = -1;
}
_root.item_box.update();
gotoAndStop ("Empty");
};
Symbol 229 MovieClip Frame 260
gotoAndPlay (1);
Symbol 233 MovieClip Frame 1
angle = _y * 5;
w1._rotation = angle;
w2._rotation = -angle;
Symbol 233 MovieClip Frame 2
gotoAndPlay (1);
Symbol 234 MovieClip Frame 1
function startTracking() {
tracking = true;
offset = _ymouse - platform._y;
hoffset = hit._y - platform._y;
}
function stopTracking() {
tracking = false;
}
hit.onPress = startTracking;
hit.onRelease = stopTracking;
hit.onReleaseOutside = stopTracking;
if (tracking) {
h = _ymouse - offset;
if (h < mmin) {
h = mmin;
}
if (h > mmax) {
h = mmax;
}
platform._y = h;
hit._y = platform._y + hoffset;
}
Symbol 234 MovieClip Frame 2
gotoAndPlay (1);
Symbol 242 MovieClip Frame 1
stop();
hit.onPress = function () {
gotoAndStop (2);
onActivate();
};
Symbol 249 MovieClip Frame 1
function bounce() {
gotoAndStop (2);
}
function unBounce() {
gotoAndPlay (3);
}
stop();
is_static = true;
Symbol 252 MovieClip Frame 1
angle = _x * -5;
w1._rotation = angle;
w2._rotation = angle;
Symbol 252 MovieClip Frame 2
gotoAndPlay (1);
Symbol 253 MovieClip Frame 1
function startTracking() {
tracking = true;
offset = _xmouse - platform._x;
hoffset = hit._x - platform._x;
}
function stopTracking() {
tracking = false;
}
hit.onPress = startTracking;
hit.onRelease = stopTracking;
hit.onReleaseOutside = stopTracking;
if (tracking) {
h = _xmouse - offset;
if (h < mmin) {
h = mmin;
}
if (h > mmax) {
h = mmax;
}
platform._x = h;
hit._x = platform._x + hoffset;
}
Symbol 253 MovieClip Frame 2
gotoAndPlay (1);
Symbol 261 MovieClip Frame 1
stop();
hit.onPress = onActivate;
Symbol 261 MovieClip Frame 20
stop();
Symbol 296 MovieClip Frame 1
stop();
hit.onPress = function () {
_root.aw_house = true;
play();
};
Symbol 296 MovieClip Frame 56
stop();
Symbol 305 MovieClip Frame 1
stop();
hit.onPress = function () {
nextFrame();
onActivate();
};
Symbol 305 MovieClip Frame 2
stop();
hit.onPress = function () {
play();
onDeActivate();
};
Symbol 319 MovieClip Frame 1
function trap() {
gotoAndPlay (1);
}
function unTrap() {
play();
}
stop();
Symbol 319 MovieClip Frame 55
if (!reclose) {
stop();
}
Symbol 325 MovieClip Frame 1
if (extend) {
gotoAndPlay ("Extendo");
}
Symbol 325 MovieClip Frame 120
if (extend) {
gotoAndPlay ("Extendo");
}
Symbol 325 MovieClip Frame 240
gotoAndPlay (1);
Symbol 325 MovieClip Frame 275
stop();
Symbol 341 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 5
onFlash();
Symbol 350 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 21
playSound("Inflate");
Symbol 350 MovieClip Frame 30
stop();
Symbol 361 MovieClip Frame 540
stop();
Symbol 369 MovieClip Frame 20
gotoAndPlay (1);
Symbol 381 MovieClip Frame 1
stop();
if (oxm == undefined) {
oxm = _xmouse;
}
onEnterFrame = function () {
var _local1 = _currentframe;
_local1 = _local1 + (_xmouse - oxm);
oxm = _xmouse;
if (_local1 < 1) {
_local1 = _local1 + (_totalframes - 1);
}
if (_local1 >= _totalframes) {
_local1 = _local1 - (_totalframes - 1);
}
gotoAndStop(_local1);
};
Symbol 391 MovieClip Frame 1
hit.onPress = function () {
gotoAndStop (2);
onLight();
};
stop();
Symbol 392 MovieClip Frame 1
var flow = "";
l.onLight = function () {
r.gotoAndStop(1);
flow = "left";
};
r.onLight = function () {
l.gotoAndStop(1);
flow = "right";
};
Symbol 401 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 1
stop();
_global.equip = function (clip, new_item) {
clip.has_item = new_item;
clip.item.gotoAndStop(new_item);
};
Symbol 427 MovieClip Frame 2
function spawnMan() {
if (!spawned) {
spawned = true;
man._visible = true;
}
}
man._visible = false;
solid.plank.actor_type = "Plank";
solid.plank.setState("Hanging");
solid.plank.bounce = 0.5;
_global.exit_down = false;
target.onHit = function () {
solid.plank.setState("Idle");
string._visible = false;
};
spawned = false;
airship.setState("Flying");
airship.onFrame = function () {
airship._x--;
if (airship._x < -175) {
spawnMan();
}
if (airship._x < -300) {
airship.onFrame = undefined;
airship._visible = false;
}
};
stop();
Symbol 427 MovieClip Frame 3
bag2.contents = new Array("Jump");
Symbol 427 MovieClip Frame 4
solid.lift.mmin = -91;
solid.lift.mmax = -1;
Symbol 427 MovieClip Frame 5
solid.platf.mmin = 0;
solid.platf.mmax = 163;
kicker.yvel = -10;
kicker.xvel = 0.8;
kicker.killx = true;
kicker.killy = true;
bag5.contents = new Array("Explode");
solid.sw.onActivate = function () {
playSound("Dung.wav");
solid.bouncer.bounce();
kicker.activate();
};
Symbol 427 MovieClip Frame 6
solid.ew1.gotoAndStop("Down");
solid.ew2.gotoAndStop("Up");
solid.ew1.onActivate = (solid.ew2.onActivate = function () {
solid.ew1.play();
solid.ew2.play();
});
solid.lift.mmin = 0;
solid.lift.mmax = 73;
bag6.contents = new Array("Plank");
bag7.contents = new Array("Turn");
Symbol 427 MovieClip Frame 7
kicker.yvel = -4.5;
kicker.xvel = 0.8;
kicker.killx = true;
kicker.killy = true;
bag8.contents = new Array("Crate");
equip(meanie, "Shotgun");
equip(gilby, "Shotgun");
_global.exit_down = true;
_root.lev.meanie.setItem("Shotgun");
solid.sw.onActivate = function () {
playSound("Dung.wav");
solid.bouncer.bounce();
kicker.activate();
};
solid.sw.onDeActivate = function () {
solid.bouncer.unBounce();
};
det1.onDetect = function () {
if (!meanie.dead) {
meanie.setState("Reload");
}
};
det2.onDetect = function () {
if (!meanie.dead) {
meanie.setState("Fire");
shotKill(man, -1);
}
};
det3.onDetect = function () {
if (!gilby.dead) {
gilby.setState("Fire");
shotKill(man, 1);
}
};
Symbol 427 MovieClip Frame 8
play();
Symbol 427 MovieClip Frame 30
stop();
man._vy = 1;
man._x = man._x + 10;
_global.exit_down = false;
butt.onPress = function () {
l3.play();
};
l3.onFlash = function () {
l2.play();
};
l2.onFlash = function () {
l1.play();
};
l1.onFlash = function () {
solid.trapdoor.trap();
};
det1.onDetect = function () {
solid.platf.extend = true;
};
nasty.setState("Walk");
Symbol 427 MovieClip Frame 31
man._y = man._y - 50;
nasty.dir = -1;
nasty.setState("Hanging");
nasty.stop();
nasty.is_static = true;
bag9.contents = new Array("Jump", "Crate");
det_joe.onDetect = function () {
nasty.setState("Fall");
nasty.is_static = false;
};
nasty.onDie = function () {
solid.balloon.play();
};
Symbol 427 MovieClip Frame 32
bag10.contents = new Array("Crate", "Crate", "Crate", "Crate", "Plank", "Plank", "Plank");
Symbol 427 MovieClip Frame 33
bag11.contents = new Array("Turn", "Turn", "Jump");
bag12.contents = new Array("Bomb");
_global.exit_down = true;
detsaw.onDetect = function () {
kill(man);
};
Symbol 427 MovieClip Frame 34
solid.tdoor.reclose = true;
exit_down = false;
tdet.onDetect = function () {
solid.tdoor.trap();
};
Symbol 427 MovieClip Frame 35
var on_p = solid.lefty;
solid.lefty.stop();
solid.righty.stop();
on_p.platf.light.gotoAndStop("On");
swdet.onDetect = function () {
on_p.platf.light.gotoAndStop("Off");
on_p = solid.righty;
on_p.platf.light.gotoAndStop("On");
};
signpost.onEnterFrame = function () {
var _local2 = false;
switch (this.flow) {
case "left" :
if (on_p == solid.righty) {
aw_green = true;
}
on_p.prevFrame();
if (on_p._currentframe == 1) {
_local2 = true;
}
break;
case "right" :
on_p.nextFrame();
if (on_p._currentframe != on_p._totalframes) {
break;
}
_local2 = true;
}
if (_local2) {
this.flow = "";
this.l.gotoAndStop(1);
this.r.gotoAndStop(1);
}
};
Symbol 427 MovieClip Frame 36
bag56.contents = new Array("Turn", "Turn", "Turn");
Symbol 427 MovieClip Frame 37
play();
Symbol 427 MovieClip Frame 56
stop();
man.setState("Idle");
man.timedState("Walk", 80);
bombs = 5;
wave = 0;
bmult = 100;
boffs = 20;
aw_bombs = true;
exit_down = false;
_root.exit_down = false;
_global.exit_down = false;
plane.onEnterFrame = function () {
this._x = this._x + 5;
if (this._x > 300) {
if (wave) {
kill(this);
this.onEnterFrame = undefined;
} else {
this._x = -250;
bombs = 5;
bmult = 40;
boffs = 200;
wave = 1;
}
}
if (bombs && (((this._x + 200) - boffs) > ((5 - bombs) * bmult))) {
var _local3;
var _local4;
bombs--;
_root.aw_bombs = false;
_local4 = _root.lev.getNextHighestDepth();
_local3 = _root.lev.attachMovie("Bomb", "item" + _local4, _local4);
_local3._x = this._x;
_local3._y = this._y + 20;
_local3.actor_type = "Bomb";
_local3.dropped = true;
}
};
Symbol 427 MovieClip Frame 57
man._y = 77;
boat_det.onDetect = function () {
man._visible = false;
man.setState("Flying");
man._y = -100;
boat.c = 0;
boat.mag = 10;
boat.avg = boat._y;
boat.gotoAndStop(2);
boat.onEnterFrame = function () {
var _local3;
var _local2;
this.c = this.c + 0.1;
this.mag = this.mag - 0.1;
_local3 = Math.sin(this.c);
_local2 = _local3 * this.mag;
this._y = this.avg + _local2;
this._x++;
if (this._x > 200) {
this.onEnterFrame = undefined;
play();
}
};
};
Symbol 427 MovieClip Frame 80
stop();
_root.done.play();
Symbol 440 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 7
again.onPress = function () {
resetItems();
gotoAndStop ("Idle");
_root.start_screen = _root.lev._currentframe;
_root.gotoAndPlay("Game");
};
quit.onPress = function () {
gotoAndStop ("Idle");
_root.gotoAndStop("Title Screen");
};
Symbol 440 MovieClip Frame 13
quit.onPress = function () {
gotoAndStop ("Idle");
_root.gotoAndStop("Title Screen");
};
Symbol 442 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 17
_root.lives = 5;
_parent.gotoAndStop(1);
Symbol 456 MovieClip Frame 1
function replenish() {
plen.play();
}
stop();
if (_root.lives == undefined) {
_root.lives = 5;
} else {
gotoAndStop(_root.lives + " lives");
}
Symbol 456 MovieClip Frame 15
stop();
Symbol 456 MovieClip Frame 29
stop();
Symbol 456 MovieClip Frame 43
stop();
Symbol 456 MovieClip Frame 57
stop();
Symbol 456 MovieClip Frame 72
stop();
Symbol 460 Button
on (press) {
getURL ("http://www.foon.co.uk/farcade/efri", "_blank");
}
Symbol 468 Button
on (release) {
gotoAndStop (1);
_root.gotoAndStop("Title Screen");
}
Symbol 472 Button
on (release) {
getURL ("http://www.foon.co.uk/farcade/", "_top");
}
Symbol 485 MovieClip Frame 1
stop();
Symbol 485 MovieClip Frame 2
aw1.stop();
aw2.stop();
aw3.stop();
aw4.stop();
_root.aw_des = "";
big_count = 0;
i = 0;
while (i < 8) {
item_count = _root.mitemcounts[i];
if (item_count > big_count) {
big_count = item_count;
}
i++;
}
if (big_count >= 3) {
_root.aw_green = true;
}
if (_root.aw_green) {
aw1.gotoAndStop(2);
}
if (_root.aw_house) {
aw2.gotoAndStop(2);
}
if (_root.aw_bombs) {
aw3.gotoAndStop(2);
}
if (_root.lives == 5) {
if (_root.aw_lives) {
aw4.gotoAndStop(3);
} else {
aw4.gotoAndStop(2);
}
}
aw1.hit.onRollOut = (aw2.hit.onRollOut = (aw3.hit.onRollOut = (aw4.hit1.onRollOut = (aw4.hit2.onRollOut = function () {
_root.aw_des = "";
}))));
aw1.hit.onRollOver = function () {
_root.aw_des = "Green award for Intelligence";
};
aw2.hit.onRollOver = function () {
_root.aw_des = "Golden House";
};
aw3.hit.onRollOver = function () {
_root.aw_des = "Missile Commander's Medal";
};
aw4.hit1.onRollOver = function () {
_root.aw_des = "Iron Lifesaver Award";
};
aw4.hit2.onRollOver = function () {
_root.aw_des = "Platinum Lifesaver Award";
};
Symbol 485 MovieClip Frame 41
stop();