Frame 1
stop();
Instance of Symbol 7 MovieClip in Frame 1
onClipEvent (load) {
totalb = _root.getBytesTotal();
totalkb = int(totalb / 1024);
}
onClipEvent (enterFrame) {
var loadedb = _root.getBytesLoaded();
if (loadedb == totalb) {
_root.gotoAndStop("intro1");
} else {
loadedkb = int(loadedb / 1024);
percent = (loadedb / totalb) * 100;
_xscale = percent;
}
}
Instance of Symbol 18 MovieClip in Frame 1
on (release) {
getURL ("http://flak-games.com", "_blank");
}
Instance of Symbol 21 MovieClip in Frame 1
on (press) {
getURL ("http://armorgames.com/register/dank", "_blank");
}
Frame 10
stop();
Instance of Symbol 31 MovieClip in Frame 10
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://armorgames.com/register/dank", "_blank");
};
}
Frame 30
bgSound = new Sound(this);
bgSound.attachSound("music");
Frame 38
stop();
Frame 51
function dupeParticle(xPos, yPos, heh) {
duplicateMovieClip (candyParticle, "candyParticle" + candyParticleCount, 5000 + candyParticleCount);
_root["candyParticle" + candyParticleCount]._x = xPos;
_root["candyParticle" + candyParticleCount]._y = (yPos + (heh / 2)) + 2;
_root["candyParticle" + candyParticleCount]._rotation = 180;
candyParticleCount++;
}
function explodeCandy(xPos, yPos) {
i = 0;
while (i < 10) {
duplicateMovieClip (candyParticle, "candyParticle" + candyParticleCount, 9999900 + candyParticleCount);
_root["candyParticle" + candyParticleCount]._x = xPos;
_root["candyParticle" + candyParticleCount]._y = yPos;
_root["candyParticle" + candyParticleCount]._rotation = random(360);
candyParticleCount++;
i++;
}
}
var cloudCount = 0;
var birdCount = 0;
var candyCount = 0;
var candyParticleCount = 0;
var score = 0;
var scoreInc = 500;
var altitude = 13000;
onEnterFrame = function () {
if (score < 0) {
score = 0;
}
if (altitude > 750) {
cloudGen = random(25);
candyGen = random(20);
birdGen = random(85);
if (cloudGen == 0) {
duplicateMovieClip (cloud, "cloud" + cloudCount, 1000 + cloudCount);
if (cloudCount < 100) {
cloudCount++;
} else {
cloudCount = 0;
}
}
if (candyGen == 0) {
duplicateMovieClip (candy, "candy" + candyCount, 2000 + candyCount);
if (candyCount < 10) {
candyCount++;
} else {
candyCount = 0;
}
}
if (birdGen == 0) {
duplicateMovieClip (bird, "bird" + birdCount, 5000 + birdCount);
if (birdCount < 100) {
birdCount++;
} else {
birdCount = 0;
}
}
}
};
timer = setInterval(function () {
altitude = altitude - 25;
if (altitude == 1250) {
_root.mountain.play();
}
if (altitude == 200) {
_root.sky.stop();
_root.grass.play();
}
}, 75);
Instance of Symbol 87 MovieClip "guy" in Frame 51
onClipEvent (load) {
xExcel = 0.5;
yExcel = 0.5;
xDecel = 0.5;
yDecel = 0.5;
xSpeed = 0;
ySpeed = 0;
justHit = false;
hitGround = false;
}
onClipEvent (enterFrame) {
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
if (_root.altitude > 250) {
if (Key.isDown(39)) {
xSpeed = xSpeed + xExcel;
}
if (Key.isDown(37)) {
xSpeed = xSpeed - (xExcel + (xExcel / 2));
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
if (((xSpeed > 0) && (xSpeed < xDecel)) || ((xSpeed < 0) && (xSpeed > (-xDecel)))) {
xSpeed = 0;
} else if (xSpeed > 0) {
xSpeed = xSpeed - xDecel;
} else if (xSpeed < 0) {
xSpeed = xSpeed + xDecel;
}
}
if (Key.isDown(38)) {
ySpeed = ySpeed - yExcel;
}
if (Key.isDown(40)) {
ySpeed = ySpeed + yExcel;
}
if ((!Key.isDown(38)) && (!Key.isDown(40))) {
if (((ySpeed > 0) && (ySpeed < yDecel)) || ((ySpeed < 0) && (ySpeed > (-yDecel)))) {
ySpeed = 0;
} else if (ySpeed > 0) {
ySpeed = ySpeed - yDecel;
} else if (ySpeed < 0) {
ySpeed = ySpeed + yDecel;
}
}
while ((this._x - (this._width / 2)) < 0) {
this._x++;
xSpeed = 0;
}
while ((this._x + (this._width / 2)) > 500) {
this._x--;
xSpeed = 0;
}
while ((this._y - (this._height / 2)) < 100) {
this._rotation = 0;
this._y++;
ySpeed = 0;
}
while ((this._y + (this._height / 2)) > 525) {
this._rotation = 0;
this._y--;
ySpeed = 0;
}
} else if (!hitGround) {
if (_y > 525) {
justHit = true;
hitGround = true;
}
xSpeed = 0;
ySpeed = 10;
} else if (hitGround && (justHit)) {
_root.altitude = 0;
ySpeed = 0;
gotoAndPlay ("hit");
clearInterval(_root.timer);
justHit = false;
}
}
Instance of Symbol 91 MovieClip "candy" in Frame 51
onClipEvent (load) {
gotoAndStop(random(3) + 1);
if (this._name != "candy") {
speed = 6;
_x = (random(500 - _width) + (_width / 2));
_y = (600 + (_height / 2));
}
}
onClipEvent (enterFrame) {
if (this._name != "candy") {
_y = (_y - speed);
if (_y < (-_height)) {
removeMovieClip(this);
} else if (_root.guy.hitTest(_x, _y, true)) {
_root.score = _root.score + _root.scoreInc;
_root.explodeCandy(_x, _y);
removeMovieClip(this);
}
_root.dupeParticle(_x, _y, _height);
}
}
Instance of Symbol 100 MovieClip "cloud" in Frame 51
onClipEvent (load) {
gotoAndStop(random(8) + 1);
if (this._name != "cloud") {
xSpeed = random(3) - 1;
while (xSpeed == 0) {
xSpeed = random(3) - 1;
}
ySpeed = 3;
_x = (random(500 - _width) + (_width / 2));
_y = (600 + (_height / 2));
}
}
onClipEvent (enterFrame) {
_x = (_x + xSpeed);
_y = (_y - ySpeed);
if (_y < (-(_height / 2))) {
removeMovieClip(this);
}
}
Instance of Symbol 107 MovieClip "candyParticle" in Frame 51
onClipEvent (load) {
gotoAndStop(random(3) + 1);
if (_name != "candyParticle") {
_x = (_x + ((random(6) - 3) * 4));
_alpha = 100;
speed = 3;
}
}
onClipEvent (enterFrame) {
if (_name != "candyParticle") {
if (_rotation > 180) {
_y = (_y + (speed * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (speed * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (speed * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (speed * Math.sin((Math.PI/180) * _rotation)));
}
_alpha = (_alpha - 10);
if (_alpha < 1) {
removeMovieClip(this);
}
}
}
Instance of Symbol 114 MovieClip "bird" in Frame 51
onClipEvent (load) {
if (this._name != "bird") {
dead = false;
xSpeed = random(3) - 1;
while (xSpeed == 0) {
xSpeed = random(3) - 1;
}
ySpeed = 3;
_x = (random(500 - _width) + (_width / 2));
_y = (600 + (_height / 2));
}
}
onClipEvent (enterFrame) {
_x = (_x + xSpeed);
_y = (_y - ySpeed);
if ((_y < (-(_height / 2))) || (_y > (600 + (_height / 2)))) {
removeMovieClip(this);
}
if (this.hitTest(_root.guy) && (!dead)) {
_root.score = _root.score - 1000;
dead = true;
_yscale = -100;
stop();
}
if (dead) {
ySpeed = ySpeed - 0.5;
}
}
Frame 59
stop();
guy.swapDepths(1000000);
Frame 61
removeMovieClip(guy);
Frame 71
scoreTxt.text = score + " Points!";
Frame 81
stop();
Symbol 7 MovieClip Frame 1
stop();
Symbol 7 MovieClip Frame 8
stop();
_root.play();
Symbol 134 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 31 MovieClip Frame 126
_root.gotoAndStop("intro2");
stop();
Symbol 45 MovieClip Frame 230
_root.play();
Symbol 56 Button
on (release) {
_root.play();
}
Symbol 71 Button
on (release) {
getURL ("http://armorgames.com/register/dank", "_blank");
}
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 200
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 20
stop();
Symbol 87 MovieClip Frame 9
if (!hitGround) {
gotoAndPlay (1);
} else {
gotoAndPlay ("hit");
}
Symbol 87 MovieClip Frame 95
_root.play();
stop();
Symbol 117 MovieClip Frame 161
stop();
Symbol 124 Button
on (release) {
getURL ("http://rankz.armorbot.com/sky-diving-man/", "_blank");
}
Symbol 127 Button
on (release) {
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 = _root.nameTxt;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__("MjIwM2olZSVhJW4lcw==", "TWZjUU11dWs=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
_root.submitBut._x = 1000;
}
Symbol 130 Button
on (release) {
_root.gotoAndPlay("menu");
}