Frame 1
stop();
this.onEnterFrame = function () {
loadbar._xscale = loadbar._xscale + ((percentLoaded - loadbar._xscale) / 8);
percentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (percentLoaded >= 100) {
play();
delete this.onEnterFrame;
}
};
Instance of Symbol 27 MovieClip in Frame 1
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 51
_root.stopAllSounds();
stop();
Instance of Symbol 27 MovieClip in Frame 51
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 54
function clearStage() {
for (i in _root) {
_root[i].removeMovieClip();
}
}
function createEnemy(x, y) {
enemy = attachMovie("pumpkin", "enemy" + n, n);
enemy._x = x;
enemy._y = y;
n = n + 1;
}
function createHat(x, y) {
hat = attachMovie("hat", "hat" + n, n);
hat._x = x;
hat._y = y;
n = n + 1;
}
function playSound(sound) {
_root["sound" + n] = new Sound();
_root["sound" + n].attachSound(sound);
_root["sound" + n].start(0, 1);
n = n + 1;
}
var n = 0;
var score = 0;
var time = 0;
var gotoGameOver = false;
var vol = 100;
var music = new Sound();
music.attachSound("bennyhill");
music.start(0, 999);
this.onEnterFrame = function () {
time = time + 1;
if (gotoGameOver) {
gotoAndStop (55);
clearStage();
delete this.onEnterFrame;
}
hud.scoreDisplay = "Score: " + score;
if (!duck.dead) {
if (int(Math.random() * 25) == int(Math.random() * 25)) {
createEnemy(Math.random() * Stage.width, -50);
}
}
if (duck.dead) {
gameover.play();
if (vol > 0) {
vol = vol - 0.5;
}
}
music.setVolume(vol);
};
Frame 55
function submit(scr, name) {
ab20_09 = new LoadVars();
ab20_09.z = name;
ab20_09.x = ab20.encodeNum(scr);
ab20_09.c = 480;
ab20_09.v = "AGDMMW";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
}
submit._visible = true;
fade._alpha = 100;
finalScore = 0;
music.stop();
music.setVolume(100);
this.onEnterFrame = function () {
if (fade._alpha <= 1) {
if (finalScore < score) {
finalScore = finalScore + 1;
}
}
};
Instance of Symbol 27 MovieClip in Frame 55
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Symbol 7 MovieClip Frame 1
xS = -8 + (Math.random() * 16);
yS = -8 + (Math.random() * -8);
rS = -5 + (Math.random() * 10);
this.onEnterFrame = function () {
yS = yS + 0.5;
_x = (_x + xS);
_y = (_y + yS);
_alpha = (_alpha - 2);
_rotation = (_rotation + rS);
if (_alpha <= 0) {
_parent.removeMovieClip();
}
};
Symbol 9 MovieClip Frame 1
xS = -8 + (Math.random() * 16);
yS = -8 + (Math.random() * -8);
rS = -5 + (Math.random() * 10);
this.onEnterFrame = function () {
yS = yS + 0.5;
_x = (_x + xS);
_y = (_y + yS);
_alpha = (_alpha - 2);
_rotation = (_rotation + rS);
if (_alpha <= 0) {
_parent.removeMovieClip();
}
};
Symbol 11 MovieClip Frame 1
xS = -8 + (Math.random() * 16);
yS = -8 + (Math.random() * -8);
rS = -5 + (Math.random() * 10);
this.onEnterFrame = function () {
yS = yS + 0.5;
_x = (_x + xS);
_y = (_y + yS);
_alpha = (_alpha - 2);
_rotation = (_rotation + rS);
if (_alpha <= 0) {
_parent.removeMovieClip();
}
};
Symbol 13 MovieClip Frame 1
xS = -8 + (Math.random() * 16);
yS = -8 + (Math.random() * -8);
rS = -5 + (Math.random() * 10);
this.onEnterFrame = function () {
yS = yS + 0.5;
_x = (_x + xS);
_y = (_y + yS);
_alpha = (_alpha - 2);
_rotation = (_rotation + rS);
if (_alpha <= 0) {
_parent.removeMovieClip();
}
};
Symbol 15 MovieClip Frame 1
xS = -8 + (Math.random() * 16);
yS = -8 + (Math.random() * -8);
rS = -5 + (Math.random() * 10);
this.onEnterFrame = function () {
yS = yS + 0.5;
_x = (_x + xS);
_y = (_y + yS);
_alpha = (_alpha - 2);
_rotation = (_rotation + rS);
if (_alpha <= 0) {
_parent.removeMovieClip();
}
};
Symbol 17 MovieClip Frame 1
xS = -8 + (Math.random() * 16);
yS = -8 + (Math.random() * -8);
rS = -5 + (Math.random() * 10);
this.onEnterFrame = function () {
yS = yS + 0.5;
_x = (_x + xS);
_y = (_y + yS);
_alpha = (_alpha - 2);
_rotation = (_rotation + rS);
if (_alpha <= 0) {
_parent.removeMovieClip();
}
};
Symbol 18 MovieClip [pumpkin] Frame 1
var yS = (0 + (_root.time / 50));
var xS = 0;
var rS = 0;
stop();
_yscale = (50 + (Math.random() * 50));
_xscale = (50 + (Math.random() * 50));
this.onEnterFrame = function () {
if (_root.terrain.hitTest(_x + xS, _y + yS, true)) {
_root.score = _root.score + 1;
r = int(Math.random() * 3);
_root.playSound("break" + r);
gotoAndStop (2);
delete this.onEnterFrame;
}
if (_root.duck.hitTest(_x + xS, _y + yS, true)) {
if (_root.duck.attached != undefined) {
_root.duck.attached.removeMovieClip();
gotoAndStop (2);
delete this.onEnterFrame;
} else {
_root.duck.dead = true;
}
}
yS = yS + 0.5;
_rotation = (_rotation + rS);
_x = (_x + xS);
_y = (_y + yS);
};
Symbol 20 MovieClip [hat] Frame 1
var yS = (0 + (_root.time / 100));
var xS = 0;
var rS = 0;
stop();
_yscale = (50 + (Math.random() * 50));
_xscale = (50 + (Math.random() * 50));
this.onEnterFrame = function () {
if (_root.terrain.hitTest(_x + xS, _y + yS, true)) {
_alpha = (_alpha - 1);
yS = 0;
disable = true;
}
if (_root.duck.hitTest(_x + xS, _y + yS, true)) {
if (_root.duck.attached == undefined) {
attached = true;
_root.duck.attached = this;
}
yS = 0;
disable = true;
}
if (attached) {
_x = _root.duck._x;
_y = _root.duck._y;
_alpha = 100;
} else {
_alpha = (_alpha - 1);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (!disable) {
yS = yS + 0.1;
}
_rotation = (_rotation + rS);
_x = (_x + xS);
_y = (_y + yS);
};
Symbol 112 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 43 Button
on (release) {
gotoAndStop (54);
}
Symbol 45 Button
on (release) {
gotoAndStop ("instructions");
}
Symbol 47 Button
on (release) {
gotoAndStop ("credits");
}
Symbol 56 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=480", "_blank");
}
Symbol 60 Button
on (release) {
gotoAndStop ("main");
}
Symbol 90 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (!dead) {
if (Key.isDown(39)) {
xS = 10;
} else if (Key.isDown(37)) {
xS = -10;
} else {
xS = xS - (xS / 4);
}
_x = (_x + xS);
if ((_x - (_width / 2)) < 0) {
_x = (0 + (_width / 2));
} else if ((_x + (_width / 2)) > Stage.width) {
_x = (Stage.width - (_width / 2));
}
} else {
gotoAndStop (2);
}
};
Symbol 94 MovieClip Frame 1
this.onEnterFrame = function () {
this.swapDepths(_root.n + 999);
};
Symbol 99 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
this.swapDepths(_root.n + 1000);
};
Symbol 99 MovieClip Frame 200
_root.gotoGameOver = true;
Symbol 101 Button
on (release) {
gotoAndStop (51);
}
Symbol 106 Button
on (release) {
_root.submit(_root.score, name);
gotoAndStop (2);
}
Symbol 109 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 1
this.onEnterFrame = function () {
_alpha = (_alpha - 1);
};