Frame 1
life = 0;
canes = 0;
_root._quality = "High";
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
_root.menu = new ContextMenu();
_root.menu.hideBuiltInItems();
Frame 2
if (_root.percentLoaded == 100) {
gotoAndStop (10);
} else {
gotoAndPlay (1);
}
Frame 3
gotoAndStop (11);
Instance of Symbol 46 MovieClip "agmove" in Frame 3
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Frame 4
bail = false;
begin = false;
playcount = 0;
regain = false;
playing = false;
drown = 0;
onEnterFrame = function () {
if (playcount > 0) {
playcount--;
playing = true;
} else {
playing = false;
playcount = 0;
}
};
numlast = 0;
dead = 0;
Instance of Symbol 78 MovieClip "char" in Frame 4
onClipEvent (load) {
jump = true;
yspd = 0;
grav = 0.8;
_root.p1._alpha = 0;
_root.p2._alpha = 0;
newrotation = 0;
upkey = false;
charge = 0;
rspd = 10;
xspd = 0;
maxx = 14;
xgrav = 0.2;
dec = 0.02;
_rotation = 0;
tall = _height * 0.3;
_xscale = 70;
_yscale = 70;
wait = 0;
j = 0;
k = 0;
_root.screen._alpha = 0;
num = 0;
xcounter = 0;
swait = 0;
lastone = 0;
lastwait = 5;
lastcanes = 0;
_root.lives.lives = 5;
_root.counter.canes = 0;
}
onClipEvent (enterFrame) {
if (_root.counter.canes == 50) {
_root._x = 0;
_root._y = 0;
_root.counter._x = _root._x * -1;
_root.counter._y = _root._y * -1;
_root.lives._x = _root._x * -1;
_root.lives._y = _root._y * -1;
mySound.setVolume(80);
_root.nextFrame();
}
if (_root.lives.lives == 0) {
_root._x = 0;
_root._y = 0;
_root.counter._x = _root._x * -1;
_root.counter._y = _root._y * -1;
_root.lives._x = _root._x * -1;
_root.lives._y = _root._y * -1;
stopAllSounds();
_root.gotoAndStop("lose");
}
if (_root.regain) {
if (_alpha < 100) {
_alpha = (_alpha+1);
} else {
_root.regain = false;
}
}
if (_root.counter.canes > 0) {
mySound.setVolume(volume);
if (_root.playing) {
volume = 80;
} else if (volume > 0) {
volume = volume - 3;
} else {
volume = 0;
}
}
if (_root.counter.canes == 1) {
if (lastcanes == 0) {
mySound = new Sound();
mySound.setVolume(0);
mySound.attachSound("beet2");
mySound.start();
lastcanes = 1;
}
}
if (_root.dead != 1) {
if (!_root.bail) {
if (_root.begin) {
swait++;
if (swait > 2) {
j++;
duplicateMovieClip (_root.star, "s" + j, _root.getNextHighestDepth());
_root["s" + j]._x = (_x - 25) + (Math.sin(_rotation * (Math.PI/180)) * 20);
_root["s" + j]._y = ((_y - (Math.cos(_rotation * (Math.PI/180)) * 20)) + (Math.random() * 30)) - 15;
_root["s" + j]._rotation = Math.random() * 360;
_root["s" + j]._alpha = 80;
swait = 0;
}
if (Math.random() > 0.98) {
j++;
duplicateMovieClip (_root.cloud, "d" + j, _root.getNextHighestDepth());
_root["d" + j]._x = _root._x * -1;
_root["d" + j]._x = _root["d" + j]._x + (Stage.width + (Math.random() * 200));
_root["d" + j]._y = _root._y * -1;
_root["d" + j]._y = _root["d" + j]._y + (Stage.height + (Math.random() * 200));
_root["d" + j]._xscale = _root["d" + j]._xscale + ((Math.random() * 100) - 50);
_root["d" + j]._yscale = _root["d" + j]._xscale;
}
}
if (Key.isDown(37)) {
if ((xspd - 0.2) > 0) {
xspd = xspd - 0.05;
}
} else if (Key.isDown(39)) {
if ((xspd + 0.2) < maxx) {
xspd = xspd + 0.05;
}
}
}
xcounter = xcounter + xspd;
if (xcounter > 170) {
j++;
duplicateMovieClip (_root.cane, "c" + j, _root.getNextHighestDepth());
_root["c" + j]._x = _root._x * -1;
_root["c" + j]._x = _root["c" + j]._x + (Stage.width + 100);
_root["c" + j]._y = _root._y * -1;
_root["c" + j]._y = _root["c" + j]._y + (Stage.height + 500);
xcounter = 0;
}
_root.sidebar._x = (_root._x * -1) - 650;
_root.sidebar._y = _root._y * -1;
_root.ground.snow.snow.gotoAndStop(1);
if (num < (_root.numlast + 4)) {
k++;
duplicateMovieClip (_root.ground.snow, "s" + k, k);
while (true) {
_root.ground["s" + k].snow.gotoAndStop(Math.ceil(Math.random() * 11));
if (lastone != _root.ground["s" + k].snow._currentframe) {
lastone = _root.ground["s" + k].snow._currentframe;
if (lastone == 10) {
if (lastwait <= 0) {
lastwait = 11;
_root.warning.play();
} else {
continue;
}
} else {
lastwait--;
}
break;
}
}
if (k != 1) {
_root.ground["s" + k]._x = _root.ground["s" + (k - 1)]._x + _root.ground["s" + (k - 1)]._width;
_root.ground["s" + k]._y = _root.ground["s" + (k - 1)]._y + (_root.ground["s" + (k - 1)]._height / 2);
} else {
_root.ground["s" + k]._x = _root.ground.snow._x + _root.ground.snow._width;
_root.ground["s" + k]._y = _root.ground.snow._y + (_root.ground.snow._height / 2);
}
num++;
}
_root.back._x = _root._x * -1;
_root.back._y = _root._y * -1;
if (_root.begin) {
_x = (_x + xspd);
}
yspd = yspd + grav;
if (!_root.ground.hitTest(_x, _y + yspd, true)) {
if ((yspd < 0) and _root.ground.hitTest(_x, (_y + yspd) - tall, true)) {
yspd = 0;
} else {
_y = (_y + yspd);
jump = true;
}
} else {
diff = 0;
while (diff < 80) {
if (_root.ground.hitTest(_x, _y + diff, true) and (!_root.ground.hitTest(_x, (_y + diff) - 1, true))) {
_y = (_y + diff);
}
diff++;
}
if (!_root.bail) {
if ((_rotation < -110) or (_rotation > 110)) {
_root.bail = true;
}
jump = false;
if (_currentframe > 8) {
this.play();
}
}
yspd = 10;
}
if (!_root.bail) {
if (jump) {
if (!_root.ground.hitTest(_x, _y + 2, true)) {
charge = 0;
}
_root.p1._y = _y;
_root.p2._y = _y;
if (!_root.ground.hitTest(_x, _y + 2, true)) {
if (Key.isDown(37) and (!Key.isDown(39))) {
_rotation = (_rotation - rspd);
} else if ((!Key.isDown(37)) and Key.isDown(39)) {
_rotation = (_rotation + rspd);
}
}
} else {
_root.p1._x = _x - 10;
_root.p2._x = _x + 10;
if (_root.ground.hitTest(_x, _y - 1, true)) {
diff = 0;
while (diff > -40) {
if (_root.ground.hitTest(_x, _y + diff, true) and (!_root.ground.hitTest(_x, (_y + diff) - 1, true))) {
_y = (_y + (diff + 1));
if (diff < -10) {
yspd = diff + (xspd / 5);
jump = true;
upkey = false;
charge = 0;
if (_currentframe < 8) {
this.gotoAndPlay(8);
}
}
break;
}
diff--;
}
}
if (_root.p2._y > _root.p1._y) {
if ((xspd + grav) < maxx) {
xspd = xspd + ((xgrav * _rotation) / 30);
} else {
xspd = maxx;
}
} else if ((_root.p2._y + 5) < _root.p1._y) {
if (xspd > ((-maxx) / 4)) {
xspd = xspd - ((xgrav / 4) * (-(_rotation / 10)));
}
} else if ((xspd > (-dec)) and (xspd < dec)) {
xspd = 0;
} else if (xspd > dec) {
xspd = xspd - dec;
} else if (xspd < (-dec)) {
xspd = xspd + dec;
}
if (Key.isDown(32)) {
if (!upkey) {
jump = true;
yspd = -12;
if (_currentframe < 8) {
this.gotoAndPlay(8);
}
upkey = true;
}
} else {
upkey = false;
}
i = -40;
while (i < 80) {
if (_root.ground.hitTest(_root.p1._x, _root.p1._y + i, true) and (!_root.ground.hitTest(_root.p1._x, (_root.p1._y + i) - 2, true))) {
_root.p1._y = _root.p1._y + i;
}
i = i + 2;
}
i = -40;
while (i < 80) {
if (_root.ground.hitTest(_root.p2._x, _root.p2._y + i, true) and (!_root.ground.hitTest(_root.p2._x, (_root.p2._y + i) - 2, true))) {
_root.p2._y = _root.p2._y + i;
}
i = i + 2;
}
xDifference = _root.p2._x - _root.p1._x;
yDifference = _root.p2._y - _root.p1._y;
newrotation = ((-Math.atan2(xDifference, yDifference)) / (Math.PI/180)) + 90;
_rotation = (_rotation + ((newrotation - _rotation) / 3));
}
} else {
jump = false;
if (_currentframe < 20) {
yspd = 10;
this.gotoAndPlay(20);
}
i = -40;
while (i < 80) {
if (_root.ground.hitTest(_root.p1._x, _root.p1._y + i, true) and (!_root.ground.hitTest(_root.p1._x, (_root.p1._y + i) - 2, true))) {
_root.p1._y = _root.p1._y + i;
}
i = i + 2;
}
i = -40;
while (i < 80) {
if (_root.ground.hitTest(_root.p2._x, _root.p2._y + i, true) and (!_root.ground.hitTest(_root.p2._x, (_root.p2._y + i) - 2, true))) {
_root.p2._y = _root.p2._y + i;
}
i = i + 2;
}
_root.p1._x = _x - 10;
_root.p2._x = _x + 10;
xDifference = _root.p2._x - _root.p1._x;
yDifference = _root.p2._y - _root.p1._y;
newrotation = ((-Math.atan2(xDifference, yDifference)) / (Math.PI/180)) + 90;
_rotation = (_rotation + ((newrotation - _rotation) / 3));
if (xspd > 0) {
xspd = xspd - 0.1;
} else {
xspd = 0;
_root.char._x = _root.char._x + 600;
_root.bail = false;
_root.regain = true;
this.gotoAndPlay(1);
_alpha = 0;
_root.lives.lives--;
}
if (_root.ground.hitTest(_x, _y - 1, true)) {
diff = 0;
while (diff > -40) {
if (_root.ground.hitTest(_x, _y + diff, true) and (!_root.ground.hitTest(_x, (_y + diff) - 1, true))) {
_y = (_y + (diff + 1));
if (diff < -10) {
yspd = diff + (xspd / 5);
jump = true;
upkey = false;
charge = 0;
if (_currentframe < 8) {
this.gotoAndPlay(8);
}
}
break;
}
diff--;
}
}
}
_root._x = _root._x - Math.round((((_x - Stage.width) + 400) + _root._x) / 5);
_root._y = _root._y - Math.round((((_y - Stage.height) + 300) + _root._y) / 5);
_root.warning._x = _root._x * -1;
_root.warning._y = _root._y * -1;
_root.screen._x = _root._x * -1;
_root.screen._y = _root._y * -1;
_root.counter._x = _root._x * -1;
_root.counter._y = _root._y * -1;
_root.lives._x = _root._x * -1;
_root.lives._y = _root._y * -1;
_root.controls._x = _root._x * -1;
_root.controls._y = _root._y * -1;
} else {
if (yspd < 8) {
yspd = 8;
}
if ((_y - _height) < (((_root._y * -1) + Stage.height) + 10)) {
_y = (_y + yspd);
yspd = yspd + grav;
} else {
_root.warning.gotoAndStop(1);
xspd = 0;
_root.char._x = _root.char._x + 600;
_root.char._y = _root.char._y - 200;
_root.dead = 0;
_root.regain = true;
_alpha = 0;
_root.lives.lives--;
}
}
}
Instance of Symbol 120 MovieClip in Frame 4
onClipEvent (enterFrame) {
_root.life = _root.lives.lives;
_root.canes = _root.counter.canes;
trace(_root.canes);
trace(_root.life);
}
Frame 5
begin = true;
playcount = 0;
playing = false;
Frame 6
stop();
speed = 10;
drown = 0;
onEnterFrame = function () {
if (playcount > 0) {
playcount--;
playing = true;
} else {
playing = false;
playcount = 0;
}
};
pause = false;
Instance of Symbol 197 MovieClip "char" in Frame 6
onClipEvent (load) {
xspd = 0;
yspd = 0;
maxxspd = 8;
maxyspd = 6;
inc = 0.8;
spacekey = 0;
spawn = 0;
i = 0;
times = 0;
spawnmax = 30;
canespawn = 0;
volume = 0;
wait = 0;
lasty = 999;
duplicateMovieClip (_root.double, "realchar", _root.getNextHighestDepth());
_alpha = 0;
_root.double._x = -1000;
lastcanes = 0;
_root.counter.canes = 50;
}
onClipEvent (enterFrame) {
if (_root.lives.lives == 0) {
removeMovieClip(_root.realchar);
stopAllSounds();
_root.gotoAndStop("lose");
}
if (_root.counter.canes == 125) {
removeMovieClip(_root.realchar);
volume = 80;
_root.nextFrame();
}
if (_root._currentframe != 6) {
_x = -1000;
} else {
if (_root.counter.canes > 0) {
mySound.setVolume(volume);
if (_root.playing) {
volume = 80;
} else if (volume > 0) {
volume = volume - 3;
} else {
volume = 0;
}
}
if (_root.counter.canes == 51) {
if (lastcanes == 0) {
mySound = new Sound();
mySound.setVolume(0);
mySound.attachSound("beet");
mySound.start();
lastcanes = 1;
}
}
if (Math.random() > 0.98) {
i++;
duplicateMovieClip (_root.cloud, "c" + i, i);
_root["c" + i]._x = Stage.width;
_root["c" + i]._xscale = _root["c" + i]._xscale + ((Math.random() * 100) - 50);
_root["c" + i]._yscale = _root["c" + i]._xscale;
}
if (!_root.begin) {
canespawn++;
if (canespawn > 12) {
i++;
duplicateMovieClip (_root.cane, "c" + i, _root.getNextHighestDepth());
_root["c" + i]._x = Stage.width + 10;
if (lasty == 999) {
_root["c" + i]._y = _root.path._y + (Math.random() * 150);
lasty = _root["c" + i]._y;
} else {
if (((Math.random() * 2) - 1) > 0) {
_root["c" + i]._y = (lasty + 30) + (Math.random() * 5);
} else {
_root["c" + i]._y = (lasty - 30) + (Math.random() * 5);
}
lasty = _root["c" + i]._y;
if (lasty < _root.path._y) {
lasty = lasty + 50;
_root["c" + i]._y = lasty;
}
if (lasty > (Stage.height - 30)) {
lasty = lasty - 50;
_root["c" + i]._y = lasty;
}
}
canespawn = 0;
}
}
_root.realchar.swapDepths(((_y - _root.path._y) * 1000) + 1);
if (!_root.begin) {
spawn++;
if (spawn >= (75 - _root.speed)) {
i++;
duplicateMovieClip (_root.holes.hole, "h" + i, _root.holes.getNextHighestDepth());
_root.holes["h" + i]._x = Stage.width + 5;
_root.holes["h" + i].gotoAndStop(Math.ceil(Math.random() * 4));
if (_root.holes["h" + i]._currentframe >= 3) {
_root.holes["h" + i]._y = Math.random() * (_root.path._height - 100);
}
spawn = 0;
times++;
if (times > 5) {
_root.speed = _root.speed + 2;
if (speed > 40) {
speed = 40;
}
spawnmax - 10;
times = 0;
}
}
}
if ((!Key.isDown(38)) and Key.isDown(40)) {
if ((yspd + inc) < maxyspd) {
yspd = yspd + inc;
} else {
yspd = maxyspd;
}
} else if (Key.isDown(38) and (!Key.isDown(40))) {
if ((yspd - inc) > (-maxyspd)) {
yspd = yspd - inc;
} else {
yspd = -maxyspd;
}
}
if ((!Key.isDown(37)) and Key.isDown(39)) {
if ((xspd + inc) < maxxspd) {
xspd = xspd + inc;
} else {
xspd = maxxspd;
}
} else if (Key.isDown(37) and (!Key.isDown(39))) {
if ((xspd - inc) > ((-maxxspd) * 1.5)) {
xspd = xspd - inc;
} else {
xspd = (-maxxspd) * 1.5;
}
}
if ((xspd > -0.1) and (xspd < 0.1)) {
xspd = 0;
} else {
xspd = xspd * 0.95;
}
if ((yspd > -0.1) and (yspd < 0.1)) {
yspd = 0;
} else {
yspd = yspd * 0.95;
}
if (_y <= (_root.path._y + 5)) {
if (yspd < 0) {
_y = (_root.path._y + 5);
yspd = 0;
}
}
if (_y >= (Stage.height - 30)) {
if (yspd > 0) {
_y = (Stage.height - 30);
yspd = 0;
}
}
if (_x <= 20) {
if (xspd < 0) {
_x = 20;
xspd = 0;
}
}
if (_x >= (Stage.width - 25)) {
if (xspd > 0) {
_x = (Stage.width - 25);
xspd = 0;
}
}
if (_root.drown != 1) {
_x = (_x + xspd);
_y = (_y + yspd);
if (Key.isDown(32)) {
if (spacekey == 0) {
spacekey = 1;
if (this.pengy._currentframe < 27) {
this.pengy.gotoAndPlay(27);
}
}
} else {
spacekey = 0;
}
_xscale = (((_y - _root.path._y) / 5) + 90);
_yscale = (((_y - _root.path._y) / 5) + 90);
} else {
if (this.pengy._currentframe < 50) {
this.pengy.gotoAndPlay(50);
}
_x = (_x - _root.speed);
if (_x < -50) {
_root.lives.lives--;
_x = 160;
_y = 350;
this.pengy.gotoAndPlay(1);
_root.drown = 0;
}
}
}
_root.realchar._x = _x;
_root.realchar._y = _y;
_root.realchar.pengy.gotoAndStop(this.pengy._currentframe);
}
Frame 8
playcount = 0;
playing = false;
dead = false;
begin = false;
regain = false;
onEnterFrame = function () {
if (playcount > 0) {
playcount--;
playing = true;
} else {
playing = false;
playcount = 0;
}
};
stop();
Instance of Symbol 238 MovieClip "char" in Frame 8
onClipEvent (load) {
yspd = 0;
inc = 1;
grav = 0.8;
xspd = 0;
xinc = 0.2;
maxx = 6;
maxy = 9;
spawn = 0;
i = 0;
canespawn = 0;
volume = 0;
_root.counter.canes = 125;
lastcanes = 0;
_root.regain = false;
}
onClipEvent (enterFrame) {
if (_root.lives.lives == 0) {
stopAllSounds();
_root.gotoAndStop("lose");
}
if (_root.counter.canes == 200) {
volume = 80;
_root.gotoAndStop(9);
}
if (_root.regain) {
if (_y < 60) {
_y = 60;
} else if (_y > (Stage.height - 60)) {
_y = (Stage.height - 60);
}
if (_alpha < 100) {
_alpha = (_alpha + 2);
_root.dead = false;
this.gotoAndStop(1);
this.prop.play();
} else {
_root.regain = false;
}
}
if (_root.counter.canes > 0) {
mySound.setVolume(volume);
if (_root.playing) {
volume = 80;
} else if (volume > 0) {
volume = volume - 3;
} else {
volume = 0;
}
}
if (_root.counter.canes == 126) {
if (lastcanes == 0) {
mySound = new Sound();
mySound.setVolume(0);
mySound.attachSound("beet3");
mySound.start();
lastcanes = 1;
}
}
if (!_root.dead) {
if (_x < 30) {
_x = 30;
}
if (_x > (Stage.width - 30)) {
_x = (Stage.width - 30);
}
if (_root.begin) {
canespawn++;
}
if (canespawn > 12) {
i++;
duplicateMovieClip (_root.cane, "c" + i, _root.getNextHighestDepth());
_root["c" + i]._x = Stage.width + 20;
_root["c" + i]._y = Stage.height + 10;
canespawn = 0;
}
if (_root.begin) {
spawn++;
} else if (_y < 60) {
_y = 60;
} else if (_y > (Stage.height - 60)) {
_y = (Stage.height - 60);
}
if (spawn > 35) {
i++;
duplicateMovieClip (_root.ground.thing, "t" + i, _root.ground.getNextHighestDepth());
_root.ground["t" + i].gotoAndStop(Math.ceil(Math.random() * 8));
spawn = 0;
}
if (Key.isDown(32)) {
yspd = yspd - inc;
} else {
yspd = yspd + grav;
}
if (yspd > maxy) {
yspd = maxy;
}
if (yspd < (-maxy)) {
yspd = -maxy;
}
_y = (_y + yspd);
if (Key.isDown(37)) {
xspd--;
if (_rotation > -20) {
_rotation = (_rotation-1);
}
} else if (Key.isDown(39)) {
xspd++;
if (_rotation < 30) {
_rotation = (_rotation+1);
}
} else {
if ((xspd > -1) and (xspd < 1)) {
xspd = 0;
} else if (xspd > 0) {
xspd = xspd - xinc;
} else {
xspd = xspd + xinc;
}
if (_rotation > 0) {
_rotation = (_rotation-1);
} else {
_rotation = (_rotation+1);
}
}
if (xspd > maxx) {
xspd = maxx;
}
if (xspd < (-maxx)) {
xspd = -maxx;
}
_x = (_x + xspd);
if (_root.begin) {
if (!_root.regain) {
if (_root.ground.hitTest(this._x, this._y + 20, true)) {
_root.dead = true;
_root.lives.lives--;
_y = (_y + 10);
_x = (_x - 5);
} else if (_root.ground.hitTest(this._x, this._y - 30, true)) {
_root.dead = true;
_root.lives.lives--;
_y = (_y + 10);
_x = (_x - 5);
} else if (_root.ground.hitTest(this._x + 10, this._y, true)) {
_root.dead = true;
_root.lives.lives--;
_y = (_y + 10);
_x = (_x - 5);
}
}
}
} else if (!_root.regain) {
_rotation = 0;
this.prop.stop();
if (!_root.ground.hitTest(this._x, this._y + 15, true)) {
if (yspd < 10) {
yspd = 10;
}
_y = (_y + yspd);
yspd = yspd + grav;
} else {
if (this._currentframe == 1) {
this.gotoAndPlay(2);
}
if (this._currentframe == 11) {
_root.regain = true;
_alpha = 0;
_x = 20;
_y = (Stage.height / 2);
yspd = -5;
}
}
}
}
Instance of Symbol 46 MovieClip "agmove" in Frame 10
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Frame 11
stop();
Instance of Symbol 274 MovieClip in Frame 11
on (release) {
getURL ("http://coolio-niato.newgrounds.com/", _blank);
}
Frame 12
stop();
Frame 13
function senddascores() {
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) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = namevar.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = scorevar;
__rankz_send__("MjExOWolZSVhJW4lcw==", "Tkd5VVhuY3Y=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
_root.gotoAndStop("menu");
}
stop();
Instance of Symbol 292 MovieClip in Frame 13
onClipEvent (load) {
_root.scorevar = _root.canes * 200;
}
Frame 14
function senddascores() {
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) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = namevar.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = scorevar;
__rankz_send__("MjExOWolZSVhJW4lcw==", "Tkd5VVhuY3Y=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
_root.gotoAndStop("menu");
}
stop();
Instance of Symbol 292 MovieClip in Frame 14
onClipEvent (load) {
_root.scorevar = 40000 + (_root.life * 1000);
}
Symbol 298 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 39 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 46 MovieClip Frame 148
_root.play();
Symbol 46 MovieClip Frame 176
_root.nextFrame();
Instance of Symbol 68 MovieClip "dead" in Symbol 74 MovieClip Frame 10
onClipEvent (enterFrame) {
_alpha = 0;
if (this.hitTest(_root.char._x, _root.char._y + 5, true)) {
_root.dead = 1;
}
}
Symbol 75 MovieClip Frame 1
stop();
Instance of Symbol 74 MovieClip "snow" in Symbol 75 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._name != "snow") {
if (_parent.hitTest(_root.sidebar)) {
_root.numlast++;
if (this._currentframe == 10) {
_root.warning.gotoAndStop(1);
}
if (this._currentframe == 10) {
_root.warning.gotoAndStop(1);
}
removeMovieClip(_parent);
}
if (_root._currentframe != 4) {
removeMovieClip(_parent);
}
}
}
Symbol 78 MovieClip Frame 7
gotoAndPlay (1);
Symbol 78 MovieClip Frame 12
stop();
Symbol 78 MovieClip Frame 15
gotoAndPlay (1);
Symbol 78 MovieClip Frame 23
stop();
Instance of Symbol 85 MovieClip in Symbol 89 MovieClip Frame 1
onClipEvent (load) {
hit = false;
if (_parent._name != "cane") {
x = 1;
while (x < 100) {
if (_root.ground.hitTest(_parent._x, _parent._y + 20, true)) {
_parent._y = _parent._y - (10 + (Math.random() * 200));
} else {
break;
}
x++;
}
}
}
onClipEvent (enterFrame) {
if (_parent._name != "cane") {
if (_parent._x < (_root._x * -1)) {
removeMovieClip(_parent);
}
if (_parent._currentframe == 40) {
if (_parent._name != "cane") {
removeMovieClip(_parent);
}
}
if (hit) {
if (_parent._currentframe <= 30) {
_parent.gotoAndPlay(31);
}
}
if (!_root.bail) {
if (!hit) {
if (_parent._currentframe <= 30) {
if (_parent.area.hitTest(_root.char.area)) {
hit = true;
_root.counter.canes++;
_root.playcount = 40;
_parent.gotoAndPlay(31);
}
}
}
}
if (_root._currentframe != 4) {
removeMovieClip(_parent);
}
}
}
Symbol 89 MovieClip Frame 30
gotoAndPlay (1);
Symbol 89 MovieClip Frame 40
stop();
Instance of Symbol 91 MovieClip in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
location = _parent._y - (_root._y * -1);
}
onClipEvent (enterFrame) {
if (_parent._name != "cloud") {
if (_parent._y < ((_root._y * -1) - 150)) {
removeMovieClip(_parent);
}
if (_root._currentframe != 4) {
removeMovieClip(_parent);
}
}
}
Instance of Symbol 94 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._name != "star") {
_parent._xscale = _parent._xscale - 3;
_parent._yscale = _parent._yscale - 3;
_parent._alpha--;
if (_parent._xscale == 0) {
removeMovieClip(_parent);
}
if (_root._currentframe != 4) {
removeMovieClip(_parent);
}
}
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 30
gotoAndPlay (2);
Symbol 109 MovieClip Frame 70
stop();
_root.begin = true;
Symbol 133 MovieClip Frame 104
stopAllSounds();
_root.nextFrame();
Instance of Symbol 135 MovieClip in Symbol 136 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._name != "cloud") {
if (!_root.pause) {
_x = (_x - 6);
if (_parent._x < (-_parent._width)) {
removeMovieClip(_parent);
}
if (_root._currentframe != 6) {
removeMovieClip(_parent);
}
}
}
}
Symbol 164 MovieClip Frame 1
stop();
Instance of Symbol 151 MovieClip in Symbol 164 MovieClip Frame 1
onClipEvent (enterFrame) {
_alpha = 0;
if (!_root.pause) {
_parent._x = _parent._x - _root.speed;
if (_parent._name != "hole") {
if (_parent._x < -300) {
removeMovieClip(_parent);
}
}
if (_parent.area.hitTest(_root.char._x, _root.char._y, true)) {
if ((_root.char.pengy._currentframe < 27) or ((_root.char.pengy._currentframe > 42) and (_root.char.pengy._currentframe < 45))) {
_root.drown = 1;
}
}
}
}
Instance of Symbol 170 MovieClip in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
if (_parent._name != "cane") {
_parent.swapDepths(((_parent._y - _root.path._y) * 1000) + 2);
}
hit = false;
}
onClipEvent (enterFrame) {
if (_root._currentframe != 6) {
removeMovieClip(_parent);
}
if (!_root.pause) {
if (_parent._currentframe == 40) {
if (_parent._name != "cane") {
removeMovieClip(_parent);
}
}
if (_parent._currentframe <= 30) {
_parent._x = _parent._x - _root.speed;
}
if (_parent._x <= -15) {
removeMovieClip(_parent);
}
if (hit) {
if (_parent._currentframe <= 30) {
_parent.gotoAndPlay(31);
}
}
if (!hit) {
if (_parent.shadow.hitTest(_root.char._x, _root.char._y, true)) {
if (_parent._currentframe <= 30) {
hit = true;
_root.playcount = 28;
_root.counter.canes++;
_parent.gotoAndPlay(31);
}
}
}
}
}
Symbol 172 MovieClip Frame 30
gotoAndPlay (1);
Symbol 176 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 1
if (_root.counter.canes > 50) {
stop();
}
Symbol 177 MovieClip Frame 80
_root.begin = false;
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 26
gotoAndPlay (1);
Symbol 196 MovieClip Frame 44
gotoAndPlay (1);
Symbol 196 MovieClip Frame 60
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 26
gotoAndPlay (1);
Symbol 211 MovieClip Frame 54
_root.ani.pengy.head.gotoAndStop(2);
Symbol 211 MovieClip Frame 99
stopAllSounds();
_root.nextFrame();
Symbol 226 MovieClip Frame 1
stop();
Instance of Symbol 218 MovieClip in Symbol 226 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._name != "thing") {
if (_root._currentframe != 8) {
removeMovieClip(_parent);
}
if (!_root.dead) {
_parent._x = _parent._x - 15;
}
if (_parent._x < -250) {
removeMovieClip(_parent);
}
}
}
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 11
stop();
Instance of Symbol 242 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (load) {
hit = false;
if (_parent._name != "cane") {
x = 1;
while (x < 100) {
if (_root.ground.hitTest(_parent._x, _parent._y + 20, true)) {
_parent._y = _parent._y - (50 + (Math.random() * 150));
} else {
break;
}
x++;
}
}
}
onClipEvent (enterFrame) {
if (_root._currentframe != 8) {
removeMovieClip(_parent);
}
if (_parent._name != "cane") {
if (!_root.dead) {
_parent._x = _parent._x - 15;
}
if (_parent._x < -10) {
removeMovieClip(_parent);
}
if (_parent._currentframe == 40) {
if (_parent._name != "cane") {
removeMovieClip(_parent);
}
}
if (hit) {
if (_parent._currentframe <= 30) {
_parent.gotoAndPlay(31);
}
}
if (!_root.dead) {
if (!hit) {
if (_parent._currentframe <= 30) {
if (_parent.area.hitTest(_root.char.area)) {
hit = true;
_root.counter.canes++;
_root.playcount = 15;
_parent.gotoAndPlay(31);
}
}
}
}
}
}
Symbol 244 MovieClip Frame 30
gotoAndPlay (1);
Symbol 244 MovieClip Frame 40
stop();
Symbol 248 MovieClip Frame 70
_root.begin = true;
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 87
stopAllSounds();
_root.gotoAndStop("win");
Symbol 274 MovieClip Frame 151
_root.nextFrame();
Symbol 278 Button
on (release) {
getURL ("http://www.armorgames.com", _blank);
}
Symbol 279 Button
on (release) {
gotoAndStop ("game");
}
Symbol 280 Button
on (release) {
getURL ("http://rankz.armorbot.com/pengy/", _blank);
}
Symbol 286 Button
on (release) {
_root.senddascores();
}
Symbol 287 Button
on (release) {
gotoAndStop ("menu");
}