Frame 1
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) ? (getVersion()) : (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);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("e837e7b0", this, 10301, true);
function qToggle() {
if (_root._quality == "LOW") {
_root._quality = "MEDIUM";
} else if (_root._quality == "MEDIUM") {
_quality = "HIGH";
} else if (_root._quality == "HIGH") {
_root._quality = "LOW";
}
}
function highScores() {
getURL ("http://rankz.armorbot.com/refrigerator_rampage/", "_blank");
}
function empty() {
}
function pmg() {
getURL ("http://www.gamesquat.com/free-online-games/", "_blank");
}
NewgroundsAPI.connectMovie(2752);
var cMenu = new ContextMenu();
cMenu.hideBuiltInItems();
var Item1 = new ContextMenuItem("Toggle Quality", qToggle);
var Item3 = new ContextMenuItem("View HighScores", highScores);
var Item4 = new ContextMenuItem("Play More Games", pmg);
var Item5 = new ContextMenuItem("A game by - Zrb :3", empty);
cMenu.customItems.push(Item1, Item3, Item4, Item5);
Item5.enabled = false;
Item5.separatorBefore = true;
var songOff = false;
_root.menu = cMenu;
function onEnterFrame() {
if (using) {
loaded = percent;
percent = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if ((percent == 100) && (_currentframe == 1)) {
play();
}
}
}
stop();
NewgroundsAPI.connectMovie(2752);
using = false;
var percent = 0;
Frame 38
stop();
Instance of Symbol 190 MovieClip "game_mc" in Frame 38
on (press) {
getURL ("http://www.gamesquat.com/free-online-games/", "_blank");
}
Frame 64
function onEnterFrame() {
stop();
}
var BGMD = createEmptyMovieClip("mdm", _root.getNextHighestDepth());
var bgm = new Sound(BGMD);
bgm.attachSound("bgm");
var songOn = true;
var Playing = false;
bgm.start(0, 100);
bgm.setVolume(75);
stop();
Instance of Symbol 239 MovieClip "helpscreen" in Frame 65
onClipEvent (load) {
stop();
}
Frame 66
function onEnterFrame() {
if ((scores >= 9001) && (!overPlayed)) {
overPlayed = true;
o9000.start(0, 0);
}
if ((!countDown) && (!Set)) {
Set = true;
Fridges = setInterval(addFridges, 1500);
Items = setInterval(addItems, 45000);
}
if (GameEnd) {
clearInterval(Fridges);
clearInterval(Items);
delete eval (addFridges());
delete eval (addItems());
var _local2 = 0;
while (_local2 < 40) {
_root["F" + _local2].swapDepths(_root.getNextHighestDepth());
_root["F" + _local2].removeMovieClip();
_root["FR" + _local2].swapDepths(_root.getNextHighestDepth());
_root["FR" + _local2].removeMovieClip();
_root["FL" + _local2].swapDepths(_root.getNextHighestDepth());
_root["FL" + _local2].removeMovieClip();
_root["W" + _local2].swapDepths(_root.getNextHighestDepth());
_root["W" + _local2].removeMovieClip();
_root["ITEM" + _local2].swapDepths(_root.getNextHighestDepth());
_root["ITEM" + _local2].removeMovieClip();
_local2++;
}
ed.removeMovieClip();
pauseScreen.swapDepths(_root.getNextHighestDepth());
pauseScreen.removeMovieClip();
if (!played) {
played = true;
sound2.start(0, 0);
}
nextFrame();
}
if (((!GameEnd) && (!Pause)) && (!countDown)) {
Score = scores;
randomNumI = random(3);
scores++;
var _local3 = 0;
while (_local3 < 40) {
if (_root["F" + _local3]._alpha <= 0) {
_root["F" + _local3].swapDepths(_root.getNextHighestDepth());
_root["F" + _local3].removeMovieClip();
}
if (_root["FR" + _local3]._x <= -200) {
_root["FR" + _local3].swapDepths(_root.getNextHighestDepth());
_root["FR" + _local3].removeMovieClip();
}
if (_root["FL" + _local3]._x >= 900) {
_root["FR" + _local3].swapDepths(_root.getNextHighestDepth());
_root["FL" + _local3].removeMovieClip();
}
_local3++;
}
}
if (fCount >= 40) {
fCount = 0;
}
}
function addFridges() {
if (((!GameEnd) && (!Pause)) && (!countDown)) {
fCount++;
wCount++;
if (scores < 2000) {
attachMovie("warning", "W" + wCount, _root.getNextHighestDepth(), {_x:random(700), _y:50});
}
if ((scores >= 2000) && (scores < 3000)) {
randomNum = random(3);
if (randomNum <= 1) {
attachMovie("warning", "W" + wCount, _root.getNextHighestDepth(), {_x:random(700), _y:50});
} else {
attachMovie("warning", "W" + wCount, _root.getNextHighestDepth(), {_x:650, _y:random(200) + 250});
}
}
if (scores >= 3000) {
randomNum = random(3);
if (randomNum == 0) {
attachMovie("warning", "W" + wCount, _root.getNextHighestDepth(), {_x:random(700), _y:50});
} else if (randomNum == 1) {
attachMovie("warning", "W" + wCount, _root.getNextHighestDepth(), {_x:650, _y:random(200) + 250});
} else if (randomNum == 2) {
attachMovie("warning", "W" + wCount, _root.getNextHighestDepth(), {_x:50, _y:random(200) + 250});
}
}
}
}
function addItems() {
if (((!GameEnd) && (!Pause)) && (!countDown)) {
iCount++;
attachMovie("IT" + randomNumI, "ITEM" + iCount, _root.getNextHighestDepth(), {_x:random(600) + 50, _y:-50});
}
}
stop();
var randomNum = 0;
var randomNumI = 0;
var fCount = 0;
var wCount = 0;
var iCount = 0;
var countDown = true;
var Pause = false;
var GameEnd = false;
var scores = 0;
var pauseScreen = attachMovie("ps", "ps", _root.getNextHighestDepth());
var sounds = createEmptyMovieClip("mam", _root.getNextHighestDepth());
var sound2 = new Sound(sounds);
sound2.attachSound("hit");
var sounds2 = createEmptyMovieClip("madm", _root.getNextHighestDepth());
var o9000 = new Sound(sounds2);
var jump = new Sound(sounds2);
jump.attachSound("jump");
o9000.attachSound("over9000");
o9000.setVolume(200);
var played = false;
var Set = false;
var cDown = attachMovie("cd", "cd", _root.getNextHighestDepth(), {_x:Stage.width / 2, _y:75});
Score = 0;
var tophat = false;
var bowtie = false;
var moustache = false;
var overPlayed = false;
pauseScreen.onEnterFrame = function () {
if (countDown) {
this._visible = false;
}
if ((!GameEnd) && (!countDown)) {
if (Pause) {
this._visible = true;
} else {
this._visible = false;
}
this.swapDepths(_root.getNextHighestDepth());
}
};
Instance of Symbol 262 MovieClip in Frame 66
onClipEvent (enterFrame) {
_rotation = (_rotation+1);
}
Instance of Symbol 275 MovieClip "ed" in Frame 66
onClipEvent (load) {
var ground = _root.ground;
var grav = 0;
var gravity = 2;
var xSpeed = 0;
var xAc = 3;
var mSpeed = 15;
var kDown = Key.isDown;
var rKey = 39;
var lKey = 37;
var uKey = 38;
var pKey = 32;
var Alive = true;
var held = false;
var Scale = _xscale;
var left = 50;
var right = 650;
}
onClipEvent (enterFrame) {
if (_x >= right) {
_x = right;
}
if (_x <= left) {
_x = left;
}
if (xSpeed > 0) {
_xscale = Scale;
}
if (xSpeed < 0) {
_xscale = (-Scale);
}
if (kDown(pKey) && (!held)) {
held = true;
if (_root.Pause) {
_root.Pause = false;
} else {
_root.Pause = true;
}
}
if (!kDown(pKey)) {
held = false;
}
if (((!_root.Pause) && (!_root.GameEnd)) && (!_root.countDown)) {
this.swapDepths(_root.getNextHighestDepth());
_x = (_x + xSpeed);
_y = (_y + grav);
grav = grav + gravity;
while (ground.hitTest(_x, _y, true)) {
_y = (_y - gravity);
grav = 0;
}
if (Alive) {
if (kDown(rKey) && (!kDown(lKey))) {
if (xSpeed < mSpeed) {
xSpeed = xSpeed + xAc;
}
if (ground.hitTest(_x, _y + 3, true)) {
gotoAndStop ("run");
}
} else if (kDown(lKey) && (!kDown(rKey))) {
if (xSpeed > (-mSpeed)) {
xSpeed = xSpeed - xAc;
}
if (ground.hitTest(_x, _y + 3, true)) {
gotoAndStop ("run");
}
} else if (ground.hitTest(_x, _y + 3, true) && (xSpeed == 0)) {
gotoAndStop ("idle");
}
if ((kDown(lKey) && (kDown(rKey))) || ((!kDown(lKey)) && (!kDown(rKey)))) {
if (xSpeed < 0) {
xSpeed = xSpeed + xAc;
if (ground.hitTest(_x, _y + 3, true)) {
gotoAndStop ("run");
}
}
if (xSpeed > 0) {
xSpeed = xSpeed - xAc;
if (ground.hitTest(_x, _y + 3, true)) {
gotoAndStop ("run");
}
}
}
if (kDown(uKey) && (ground.hitTest(_x, _y + 3, true))) {
if (_root.moustache) {
grav = -35;
} else {
grav = -30;
}
gotoAndStop ("jump");
_root.jump.start(0.05, 0);
}
}
}
}
Instance of Symbol 225 MovieClip "putimer" in Frame 66
onClipEvent (load) {
stop();
_visible = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 2) {
_visible = true;
}
}
Frame 67
var i2 = 0;
while (i2 < 40) {
_root["F" + i2].swapDepths(_root.getNextHighestDepth());
_root["F" + i2].removeMovieClip();
_root["FR" + i2].swapDepths(_root.getNextHighestDepth());
_root["FR" + i2].removeMovieClip();
_root["FL" + i2].swapDepths(_root.getNextHighestDepth());
_root["FL" + i2].removeMovieClip();
_root["W" + i2].swapDepths(_root.getNextHighestDepth());
_root["W" + i2].removeMovieClip();
_root["ITEM" + i2].swapDepths(_root.getNextHighestDepth());
_root["ITEM" + i2].removeMovieClip();
i2++;
}
nextFrame();
Frame 68
function onEnterFrame() {
if (dead._visible == false) {
gotoAndStop ("scores");
}
}
dead._visible = true;
Frame 69
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
stop();
clearInterval(Fridges);
clearInterval(Items);
_root.bgm.setVolume(50);
fscores = "Score: " + _root.scores;
scoresbtn.onPress = function () {
this.play();
this.enabled = false;
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.Name;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.scores;
__rankz_send__("MjkwMWolZSVhJW4lcw==", "cER3U3VCdHM=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
};
rankz_t10_send = new LoadVars();
rankz_t10_receive = new LoadVars();
rankz_t10_send.SU0249 = "MjkwMWolZSVhJW4lcw";
rankz_t10_send.flashkey = "cER3U3VCdHM";
rankz_t10_receive.onLoad = function (success) {
if (success) {
_rankz_ar_ = rankz_t10_receive.top10.split("<u/*/u>");
i = 0;
while (i < _rankz_ar_.length) {
tempv = _rankz_ar_[i].split("</*/>");
_root["rankz_n" + (i + 1)].text = tempv[0];
_root["rankz_v" + (i + 1)].text = tempv[1];
i++;
}
}
};
rankz_t10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", rankz_t10_receive, "POST");
Symbol 9 MovieClip [FridgeL] Frame 1
function onEnterFrame() {
if (((!_root.Pause) && (!_root.GameEnd)) && (!_root.countDown)) {
if (pre < 40) {
pre++;
}
}
if ((((!_root.GameEnd) && (!_root.Pause)) && (pre >= 40)) && (!_root.countDown)) {
_x = (_x + gravity);
if (ff.hitTest(_root.ed.hitPointL) && (!_root.tophat)) {
_root.GameEnd = true;
}
}
if ((_x > _root.ed._x) && (!played)) {
played = true;
sound.start(0, 0);
}
}
stop();
var gravity = 130;
var pre = 0;
this.swapDepths(_root.getNextHighestDepth());
var sounds = createEmptyMovieClip("p", this.getNextHighestDepth());
var sound = new Sound(sounds);
sound.attachSound("woosh");
var played = false;
Symbol 10 MovieClip [FridgeR] Frame 1
function onEnterFrame() {
if (((!_root.Pause) && (!_root.GameEnd)) && (!_root.countDown)) {
if (pre < 40) {
pre++;
}
}
if ((((!_root.GameEnd) && (!_root.Pause)) && (pre >= 40)) && (!_root.countDown)) {
_x = (_x - gravity);
if (ff.hitTest(_root.ed.hitPointL) && (!_root.tophat)) {
_root.GameEnd = true;
}
}
if ((_x < _root.ed._x) && (!played)) {
played = true;
sound.start(0, 0);
}
}
stop();
var gravity = 130;
var pre = 0;
this.swapDepths(_root.getNextHighestDepth());
var sounds = createEmptyMovieClip("p", this.getNextHighestDepth());
var sound = new Sound(sounds);
sound.attachSound("woosh");
var played = false;
Symbol 11 MovieClip [Fridge] Frame 1
function onEnterFrame() {
if (((!_root.Pause) && (!_root.GameEnd)) && (!_root.countDown)) {
if (pre < 40) {
pre++;
}
}
if ((((!_root.GameEnd) && (!_root.Pause)) && (pre >= 40)) && (!_root.countDown)) {
_y = (_y + gravity);
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = (_y - 5);
grav = 0;
nextFrame();
if (!played) {
played = true;
hS.start(0, 0);
}
}
if (_root.ground.hitTest(_x, _y + 15, true)) {
if (count < 10) {
count++;
} else {
_alpha = (_alpha - 15);
}
}
if (ff.hitTest(_root.ed.hitPoint) && (!_root.tophat)) {
_root.GameEnd = true;
}
}
}
stop();
var gravity = 150;
var count = 0;
var pre = 0;
this.swapDepths(_root.getNextHighestDepth());
var hitSound = createEmptyMovieClip("pa", _root.getNextHighestDepth());
var hS = new Sound(hitSound);
hS.attachSound("fridgeGround");
var played = false;
hS.setVolume(90);
Symbol 14 MovieClip [warning] Frame 1
function onEnterFrame() {
if (((!_root.Pause) && (!_root.GameEnd)) && (!_root.countDown)) {
play();
} else {
stop();
}
if (_root._currentframe != 66) {
swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}
Symbol 14 MovieClip [warning] Frame 7
if (_x == 50) {
_root.attachMovie("FridgeL", "FL" + _root.fCount, _root.getNextHighestDepth(), {_x:-200, _y:this._y});
}
if (_x == 650) {
_root.attachMovie("FridgeR", "FR" + _root.fCount, _root.getNextHighestDepth(), {_x:900, _y:this._y});
}
if (_y == 50) {
_root.attachMovie("Fridge", "F" + _root.fCount, _root.getNextHighestDepth(), {_x:this._x, _y:-200});
}
Symbol 14 MovieClip [warning] Frame 31
function onEnterFrame() {
count++;
if (count == 20) {
swapDepths(_root.getNextHighestDepth());
removeMovieClip(this);
}
}
stop();
var count = 0;
Symbol 18 MovieClip [IT2] Frame 1
function onEnterFrame() {
if (((!_root.GamEnd) && (!_root.countDown)) && (!_root.Pause)) {
_y = (_y + grav);
grav = grav + 2;
if (grav > 10) {
grav = -3;
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 2);
grav = 0;
nextFrame();
}
if (_root.ed.hitTest(this)) {
_root.bowtie = true;
_root.putimer.play();
_root.scores = _root.scores + 1000;
swapDepths(_root.getNextHighestDepth());
removeMovieClip(this);
}
}
}
var grav = 0;
stop();
Symbol 22 MovieClip [IT1] Frame 1
function onEnterFrame() {
if (((!_root.GamEnd) && (!_root.countDown)) && (!_root.Pause)) {
_y = (_y + grav);
grav = grav + 2;
if (grav > 10) {
grav = -3;
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 2);
grav = 0;
nextFrame();
}
if (_root.ed.hitTest(this)) {
_root.tophat = true;
_root.putimer.play();
swapDepths(_root.getNextHighestDepth());
removeMovieClip(this);
}
}
}
var grav = 0;
stop();
Symbol 26 MovieClip [IT0] Frame 1
function onEnterFrame() {
if (((!_root.GamEnd) && (!_root.countDown)) && (!_root.Pause)) {
_y = (_y + grav);
grav = grav + 2;
if (grav > 10) {
grav = -3;
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y - 2);
grav = 0;
nextFrame();
}
if (_root.ed.hitTest(this)) {
_root.moustache = true;
_root.putimer.play();
swapDepths(_root.getNextHighestDepth());
removeMovieClip(this);
}
}
}
var grav = 0;
stop();
Symbol 32 Button
on (press) {
getURL ("http://www.gamesquat.com/free-online-games/", "_blank");
}
Symbol 35 MovieClip [ps] Frame 1
_visible = false;
Symbol 42 MovieClip [cd] Frame 91
_root.countDown = false;
Symbol 42 MovieClip [cd] Frame 117
swapDepths(_root.getNextHighestDepth());
removeMovieClip(this);
Symbol 60 MovieClip Frame 40
stop();
Symbol 74 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 75 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 50 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("lastframe");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 76 MovieClip Frame 101
play();
Symbol 76 MovieClip Frame 165
stop();
Symbol 82 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 88 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 90 MovieClip Frame 1
function startAd(ngad_url) {
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 322 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
}
static function SendMessage(msg) {
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 323 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 190 MovieClip Frame 265
_root.play();
Symbol 194 Button
on (press) {
getURL ("http://rankz.armorbot.com/refrigerator_rampage/", "_blank");
}
Symbol 197 Button
on (press) {
gotoAndStop ("help");
}
Symbol 200 Button
on (press) {
gotoAndStop ("game");
}
Symbol 208 Button
on (press) {
getURL ("http://www.gamesquat.com/free-online-games/", "_blank");
}
Symbol 225 MovieClip Frame 436
gotoAndStop (1);
_visible = false;
_root.bowtie = false;
_root.tophat = false;
_root.moustache = false;
Symbol 234 MovieClip Frame 1
function onEnterFrame() {
if (_root.Pause || (_root.countDown)) {
stop();
} else {
play();
}
}
Instance of Symbol 225 MovieClip "putimer" in Symbol 239 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (75);
}
Symbol 243 Button
on (press) {
helpscreen.gotoAndStop("controls");
}
Symbol 246 Button
on (press) {
helpscreen.gotoAndStop("pu");
}
Symbol 249 Button
on (press) {
helpscreen.gotoAndStop("hud");
}
Symbol 252 Button
on (press) {
helpscreen.gotoAndStop("obj");
}
Symbol 255 Button
on (press) {
gotoAndStop ("menu");
_root.bgm.stop();
}
Symbol 270 MovieClip Frame 1
function onEnterFrame() {
if (_root.Pause || (_root.countDown)) {
stop();
} else {
play();
}
}
Symbol 270 MovieClip Frame 2
var p = new Sound(this);
p.attachSound("Walk");
p.start(0, 0);
Symbol 274 MovieClip Frame 1
function onEnterFrame() {
if (_root.Pause || (_root.countDown)) {
stop();
} else {
play();
}
}
Symbol 275 MovieClip Frame 1
stop();
Instance of Symbol 257 MovieClip "hitPointL" in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._parent._xscale == _parent.Scale) {
_name = "hitPointL";
}
if (this._parent._xscale == (-_parent.Scale)) {
_name = "hitPointR";
}
}
Instance of Symbol 257 MovieClip "hitPointR" in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._parent._xscale == _parent.Scale) {
_name = "hitPointR";
}
if (this._parent._xscale == (-_parent.Scale)) {
_name = "hitPointL";
}
}
Instance of Symbol 20 MovieClip in Symbol 275 MovieClip Frame 1
onClipEvent (load) {
if (_name != "t") {
_alpha = 10;
}
}
onClipEvent (enterFrame) {
if (_name != "t") {
if (_root.tophat) {
_alpha = 100;
} else {
_alpha = 0;
}
}
}
Instance of Symbol 24 MovieClip in Symbol 275 MovieClip Frame 1
onClipEvent (load) {
if (_name != "m") {
_alpha = 10;
}
}
onClipEvent (enterFrame) {
if (_name != "m") {
if (_root.moustache) {
_alpha = 100;
} else {
_alpha = 0;
}
}
}
Instance of Symbol 17 MovieClip in Symbol 275 MovieClip Frame 1
onClipEvent (load) {
if (_name != "b") {
_alpha = 10;
}
}
onClipEvent (enterFrame) {
if (_name != "b") {
if (_root.bowtie) {
_alpha = 100;
} else {
_alpha = 0;
}
}
if (_root.ed._currentframe == 1) {
_y = -77.5;
}
if (_root.ed._currentframe == 2) {
_y = -80;
}
if (_root.ed._currentframe == 3) {
_y = -79.5;
}
}
Symbol 275 MovieClip Frame 3
stop();
Instance of Symbol 257 MovieClip "hitPointR" in Symbol 275 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this._parent._xscale == _parent.Scale) {
_name = "hitPointR";
}
if (this._parent._xscale == (-_parent.Scale)) {
_name = "hitPointL";
}
}
Symbol 280 Button
on (press) {
_root.dead._visible = false;
}
Symbol 311 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 13
stop();
Symbol 314 Button
on (press) {
getURL ("http://rankz.armorbot.com/refrigerator_rampage/", "_blank");
}
Symbol 316 Button
on (press) {
gotoAndStop ("menu");
_root.bgm.stop();
}
Symbol 319 Button
on (press) {
gotoAndStop ("game");
}