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);
}
var preLoaderTimer = 0;
var preLoaderSeconds = 8;
var amountLoaded = (_root.getBytesLoaded() / _root.getBytesTotal());
Stage.showMenu = false;
preLoaderStroke._visible = false;
progressBar._visible = false;
loadingText._visible = false;
progressBar._width = 0;
loadingText.text = "0%";
__com_mochibot__("d5f43a4f", this, 10301, true);
Frame 2
stop();
onEnterFrame = function () {
_root.amountLoaded = _root.getBytesLoaded() / _root.getBytesTotal();
_root.preLoaderTimer++;
if (Math.floor(_root.preLoaderTimer / 45) > Math.floor(_root.preLoaderSeconds / 4)) {
preLoaderStroke._visible = true;
progressBar._visible = true;
loadingText._visible = true;
}
if ((Math.floor(_root.preLoaderTimer / 45) / _root.preLoaderSeconds) < _root.amountLoaded) {
_root.amountLoaded = Math.floor(_root.preLoaderTimer / 45) / _root.preLoaderSeconds;
}
progressBar._width = _root.amountLoaded * 416;
loadingText.text = Math.round(_root.amountLoaded * 100) + "%";
if (_root.amountLoaded == 1) {
delete this.onEnterFrame;
_root.gotoAndPlay("initialize");
}
};
Frame 3
stopAllSounds();
var muteMusic = false;
var muteSound = false;
var pauseGame = false;
var StageHeight = 500;
var StageWidth = 600;
loopSound = new Sound(this);
loopSound.attachSound("Theme");
loopSound.start(0, 999);
sound1Sound = new Sound(this);
sound1Sound.attachSound("sound1");
yesSound = new Sound(this);
yesSound.attachSound("yes");
noSound = new Sound(this);
noSound.attachSound("no");
enemySound = new Sound(this);
enemySound.attachSound("enemy");
var score = 0;
var money = 0;
var displayMoney = "0";
var STAGEWIDTH = 600;
var STAGEHEIGHT = 500;
var multiplier = 1;
var go = 1;
var timer = 0;
var t = 0;
var s = 0;
var winningNumber = 5000;
var losingNumber = 10;
var currentLevel = 1;
var levelNumText = "";
var levelDescText = "";
var levelDesc2Text = "";
var levelCost = 0;
var startTime = false;
var gameOver = false;
var launchHighScore = true;
var userName = "Anonymous";
var UPGSize = false;
var UPGSpeed = false;
var UPG2xSpeed = false;
var UPGMagnet = false;
var UPGJump = false;
var UPGFly = false;
var UPGGhost = false;
var UPG5Secs = false;
var UPG10Secs = false;
var coin1i = 0;
var coin1Spawn = 25;
var coin1C = 0;
var coin5i = 0;
var coin5Spawn = 100;
var coin5C = 0;
var coin10i = 0;
var coin10Spawn = 280;
var coin10C = 0;
var coin50i = 0;
var coin50Spawn = 500;
var coin50C = 0;
var coin100i = 0;
var coin100Spawn = 900;
var coin100C = 0;
var coinNeg5i = 0;
var coinNeg5Spawn = 35;
var coinNeg5C = 0;
var coinNeg10i = 0;
var coinNeg10Spawn = 70;
var coinNeg10C = 0;
Frame 4
stop();
Instance of Symbol 40 MovieClip in Frame 4
onClipEvent (load) {
gotoAndPlay (2);
}
Instance of Symbol 43 MovieClip in Frame 4
on (release) {
_root.getURL("http://www.stumpygames.com/gamein.php?id=862&source=2", "_blank");
}
Frame 5
stop();
Instance of Symbol 48 MovieClip in Frame 5
on (release) {
_root.gotoAndStop("levelScreen");
}
Frame 6
stop();
var timeAllowed = "";
var bonusTime = 0;
money = 0;
startTime = false;
pauseGame = false;
onEnterFrame = function () {
switch (currentLevel) {
case 1 :
levelNumText = "Level 1";
levelDescText = "Start by showing up to watch as she cheers at the game...";
levelDesc2Text = "Grab $3 for a ticket";
level1Pic._x = 232;
level1Pic._y = 100;
levelCost = 3;
timer = 10;
break;
case 2 :
levelNumText = "Level 2";
levelDescText = "She LOVES ice cream...";
levelDesc2Text = "Grab $10 to buy a pair of cones";
level2Pic._x = 248;
level2Pic._y = 93;
levelCost = 10;
timer = 15;
break;
case 3 :
levelNumText = "Level 3";
levelDescText = "Surprise her with some flowers...";
levelDesc2Text = "Grab $30 for a dozen roses";
level3Pic._x = 205;
level3Pic._y = 94;
levelCost = 30;
timer = 15;
break;
case 4 :
levelNumText = "Level 4";
levelDescText = "Bring her to pizza and a movie...";
levelDesc2Text = "Grab $40 for your date night";
level4Pic._x = 178;
level4Pic._y = 99;
levelCost = 40;
timer = 15;
break;
case 5 :
levelNumText = "Level 5";
levelDescText = "Buy her that pendant she has been admiring...";
levelDesc2Text = "Grab $100 for the necklace";
level5Pic._x = 206;
level5Pic._y = 91;
levelCost = 100;
timer = 20;
break;
case 6 :
levelNumText = "Level 6";
levelDescText = "Bring her to that ritzy restaurant downtown";
levelDesc2Text = "Grab $175 to cover the bill";
level6Pic._x = 220;
level6Pic._y = 106;
levelCost = 175;
timer = 25;
break;
case 7 :
levelNumText = "Level 7";
levelDescText = "Her favorite band is coming to town...";
levelDesc2Text = "Grab $250 for front row tickets";
level7Pic._x = 208;
level7Pic._y = 97;
levelCost = 250;
timer = 30;
break;
case 8 :
levelNumText = "Level 8";
levelDescText = "Prom is right around the corner...";
levelDesc2Text = "Grab $500 for a tux, tickets, and limo";
level8Pic._x = 215;
level8Pic._y = 101;
levelCost = 500;
timer = 30;
break;
}
timeAllowed = timer + " secs";
if (UPG5Secs == true) {
bonusTime = bonusTime + 5;
}
if (UPG10Secs == true) {
bonusTime = bonusTime + 10;
}
UPG5Secs = false;
UPG10Secs = false;
if (bonusTime > 0) {
timeAllowed = (timeAllowed + " + ") + bonusTime.toString();
}
timer = timer + bonusTime;
};
Instance of Symbol 54 MovieClip "levelContinue" in Frame 6
on (release) {
_root.gotoAndStop("game");
}
Frame 7
function quitGame() {
_root.gotoAndStop("initialize");
}
function resetGame() {
_root.gotoAndStop("initialize");
}
function addCommas(n) {
var _local1 = n.toString();
var _local3 = 1;
if (_local1.indexOf(".") == -1) {
var _local2 = "";
_local1 = _local1.split("");
} else {
var _local2 = _local1.substr(_local1.indexOf("."), _local1.length);
_local1 = _local1.substr(0, _local1.indexOf(".")).split("");
}
for (var _local4 in _local1) {
var _local2 = _local1[_local4] + _local2;
if ((_local3++) == 3) {
_local3 = 1;
_local2 = (((isNaN(_local1[0]) && (_local4 > 1)) || ((!isNaN(_local1[0])) && (_local4 >= 1))) ? ("," + _local2) : (_local2));
}
}
return(_local2);
}
function spawnCoin1() {
duplicateMovieClip (_root.coin1, "coin1_" + _root.coin1C, _root.getNextHighestDepth());
_root.coin1C++;
}
function spawnCoin5() {
duplicateMovieClip (_root.coin5, "coin5_" + _root.coin5C, _root.getNextHighestDepth());
_root.coin5C++;
}
function spawnCoin10() {
duplicateMovieClip (_root.coin10, "coin10_" + _root.coin10C, _root.getNextHighestDepth());
_root.coin10C++;
}
function spawnCoin50() {
duplicateMovieClip (_root.coin50, "coin50_" + _root.coin50C, _root.getNextHighestDepth());
_root.coin50C++;
}
function spawnCoin100() {
duplicateMovieClip (_root.coin100, "coin100_" + _root.coin100C, _root.getNextHighestDepth());
_root.coin100C++;
}
function spawnCoinNeg5() {
duplicateMovieClip (_root.coinNeg5, "coinNeg5_" + _root.coinNeg5C, _root.getNextHighestDepth());
_root.coinNeg5C++;
}
function spawnCoinNeg10() {
duplicateMovieClip (_root.coinNeg10, "coinNeg10_" + _root.coinNeg10C, _root.getNextHighestDepth());
_root.coinNeg10C++;
}
function cleanUp() {
c = coin1C + 1;
while (c >= 0) {
removeMovieClip(_root["coin1_" + c]);
c--;
}
c = coin5C + 1;
while (c >= 0) {
removeMovieClip(_root["coin5_" + c]);
c--;
}
c = coin10C + 1;
while (c >= 0) {
removeMovieClip(_root["coin10_" + c]);
c--;
}
c = coin50C + 1;
while (c >= 0) {
removeMovieClip(_root["coin50_" + c]);
c--;
}
c = coin100C + 1;
while (c >= 0) {
removeMovieClip(_root["coin100_" + c]);
c--;
}
c = coinNeg5C + 1;
while (c >= 0) {
removeMovieClip(_root["coinNeg5_" + c]);
c--;
}
c = coinNeg10C + 1;
while (c >= 0) {
removeMovieClip(_root["coinNeg10_" + c]);
c--;
}
}
stop();
onEnterFrame = function () {
if (gameOver) {
delete this.onEnterFrame;
} else {
if (!pauseGame) {
t++;
coin1i++;
coin5i++;
coin10i++;
coin50i++;
coin100i++;
coinNeg5i++;
coinNeg10i++;
if ((s > 1) && (startTime == false)) {
startTime = true;
}
if (t > 45) {
s++;
if (startTime == true) {
timer--;
}
t = 0;
}
if (coin1i > coin1Spawn) {
coin1i = 0;
spawnCoin1();
}
if (coin5i > coin5Spawn) {
coin5i = 0;
spawnCoin5();
}
if (coin10i > coin10Spawn) {
coin10i = 0;
spawnCoin10();
}
if (coin50i > coin50Spawn) {
coin50i = 0;
spawnCoin50();
}
if (coin100i > coin100Spawn) {
coin100i = 0;
spawnCoin100();
}
if (coinNeg5i > coinNeg5Spawn) {
coinNeg5i = 0;
spawnCoinNeg5();
}
if (coinNeg10i > coinNeg10Spawn) {
coinNeg10i = 0;
spawnCoinNeg10();
}
}
displayMoney = "$" + addCommas(money);
if (timer == 0) {
go = 0;
_root.pauseGame = 1;
_root.gotoAndStop("levelEnd");
} else {
go = 1;
}
}
};
Instance of Symbol 83 MovieClip "coin10" in Frame 7
onClipEvent (load) {
if (_name != "coin10") {
var yspeed = 5;
_x = (Math.random() * _root.STAGEWIDTH);
_y = ((Math.random() * -500) - 100);
}
}
onClipEvent (enterFrame) {
if (!_root.pauseGame) {
if (_name != "coin10") {
_y = (_y + yspeed);
if (_root.UPGMagnet == true) {
if (Math.sqrt(Math.pow(Math.abs(_y - _root.hero._y), 2) + Math.pow(Math.abs(_x - _root.hero._x), 2)) < 150) {
_x = (_x + ((_root.hero._x - _x) / 10));
_y = (_y + ((_root.hero._y - _y) / 10));
yspeed = 1;
}
}
if (Math.sqrt(Math.pow(Math.abs(_y - _root.hero._y), 2) + Math.pow(Math.abs(_x - _root.hero._x), 2)) < ((_width / 2) + (_root.hero.base._width / 2))) {
if (_currentframe == 1) {
if (_root.startTime == false) {
_root.startTime = true;
}
if (!_root.muteSound) {
_root.sound1Sound.start(0, 1);
}
_root.money = _root.money + (10 * _root.multiplier);
_root.score = _root.score + (10 * _root.multiplier);
play();
}
}
if (_y > (_root.STAGEHEIGHT + 50)) {
play();
}
}
}
}
Instance of Symbol 87 MovieClip "coin5" in Frame 7
onClipEvent (load) {
if (_name != "coin5") {
var yspeed = 5;
_x = (Math.random() * _root.STAGEWIDTH);
_y = ((Math.random() * -500) - 100);
}
}
onClipEvent (enterFrame) {
if (!_root.pauseGame) {
if (_name != "coin5") {
_y = (_y + yspeed);
if (_root.UPGMagnet == true) {
if (Math.sqrt(Math.pow(Math.abs(_y - _root.hero._y), 2) + Math.pow(Math.abs(_x - _root.hero._x), 2)) < 150) {
_x = (_x + ((_root.hero._x - _x) / 10));
_y = (_y + ((_root.hero._y - _y) / 10));
yspeed = 1;
}
}
if (Math.sqrt(Math.pow(Math.abs(_y - _root.hero._y), 2) + Math.pow(Math.abs(_x - _root.hero._x), 2)) < ((_width / 2) + (_root.hero.base._width / 2))) {
if (_currentframe == 1) {
if (_root.startTime == false) {
_root.startTime = true;
}
if (!_root.muteSound) {
_root.sound1Sound.start(0, 1);
}
_root.money = _root.money + (5 * _root.multiplier);
_root.score = _root.score + (5 * _root.multiplier);
play();
}
}
if (_y > (_root.STAGEHEIGHT + 50)) {
play();
}
}
}
}
Instance of Symbol 91 MovieClip "coin1" in Frame 7
onClipEvent (load) {
if (_name != "coin1") {
var yspeed = 3;
_x = (Math.random() * _root.STAGEWIDTH);
_y = ((Math.random() * -500) - 100);
}
}
onClipEvent (enterFrame) {
if (!_root.pauseGame) {
if (_name != "coin1") {
_y = (_y + yspeed);
if (_root.UPGMagnet == true) {
if (Math.sqrt(Math.pow(Math.abs(_y - _root.hero._y), 2) + Math.pow(Math.abs(_x - _root.hero._x), 2)) < 150) {
_x = (_x + ((_root.hero._x - _x) / 10));
_y = (_y + ((_root.hero._y - _y) / 10));
yspeed = 1;
}
}
if (Math.sqrt(Math.pow(Math.abs(_y - _root.hero._y), 2) + Math.pow(Math.abs(_x - _root.hero._x), 2)) < ((_width / 2) + (_root.hero.base._width / 2))) {
if (_currentframe == 1) {
if (_root.startTime == false) {
_root.startTime = true;
}
if (!_root.muteSound) {
_root.sound1Sound.start(0, 1);
}
_root.money = _root.money + (1 * _root.multiplier);
_root.score = _root.score + (1 * _root.multiplier);
play();
}
}
if (_y > (_root.STAGEHEIGHT + 50)) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 95 MovieClip "coin50" in Frame 7
onClipEvent (load) {
if (_name != "coin50") {
var yspeed = 8;
_x = (Math.random() * _root.STAGEWIDTH);
_y = ((Math.random() * -500) - 100);
}
}
onClipEvent (enterFrame) {
if (!_root.pauseGame) {
if (_name != "coin50") {
_y = (_y + yspeed);
if (_root.UPGMagnet == true) {
if (Math.sqrt(Math.pow(Math.abs(_y - _root.hero._y), 2) + Math.pow(Math.abs(_x - _root.hero._x), 2)) < 150) {
_x = (_x + ((_root.hero._x - _x) / 10));
_y = (_y + ((_root.hero._y - _y) / 10));
yspeed = 1;
}
}
if (Math.sqrt(Math.pow(Math.abs(_y - _root.hero._y), 2) + Math.pow(Math.abs(_x - _root.hero._x), 2)) < ((_width / 2) + (_root.hero.base._width / 2))) {
if (_currentframe == 1) {
if (_root.startTime == false) {
_root.startTime = true;
}
if (!_root.muteSound) {
_root.sound1Sound.start(0, 1);
}
_root.money = _root.money + (50 * _root.multiplier);
_root.score = _root.score + (50 * _root.multiplier);
play();
}
}
if (_y > (_root.STAGEHEIGHT + 50)) {
play();
}
}
}
}
Instance of Symbol 99 MovieClip "coin100" in Frame 7
onClipEvent (load) {
if (_name != "coin100") {
var yspeed = 11;
_x = (Math.random() * _root.STAGEWIDTH);
_y = ((Math.random() * -500) - 100);
}
}
onClipEvent (enterFrame) {
if (!_root.pauseGame) {
if (_name != "coin100") {
_y = (_y + yspeed);
if (_root.UPGMagnet == true) {
if (Math.sqrt(Math.pow(Math.abs(_y - _root.hero._y), 2) + Math.pow(Math.abs(_x - _root.hero._x), 2)) < 150) {
_x = (_x + ((_root.hero._x - _x) / 10));
_y = (_y + ((_root.hero._y - _y) / 10));
yspeed = 1;
}
}
if (Math.sqrt(Math.pow(Math.abs(_y - _root.hero._y), 2) + Math.pow(Math.abs(_x - _root.hero._x), 2)) < ((_width / 2) + (_root.hero.base._width / 2))) {
if (_currentframe == 1) {
if (_root.startTime == false) {
_root.startTime = true;
}
if (!_root.muteSound) {
_root.sound1Sound.start(0, 1);
}
_root.money = _root.money + (100 * _root.multiplier);
_root.score = _root.score + (100 * _root.multiplier);
play();
}
}
if (_y > (_root.STAGEHEIGHT + 50)) {
play();
}
}
}
}
Instance of Symbol 111 MovieClip "hero" in Frame 7
onClipEvent (load) {
var xspeed = 0;
var yspeed = 0;
var speed = 0.4;
var friction = 0.9;
var gravity = 0.3;
var curDirection = "right";
if (_root.UPGSpeed == true) {
speed = speed + 0.4;
}
if (_root.UPG2xSpeed == true) {
speed = speed + 0.6;
}
}
onClipEvent (enterFrame) {
if (!_root.pauseGame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * friction;
xspeed = xspeed * friction;
yspeed = yspeed + gravity;
if (Key.isDown(37)) {
xspeed = xspeed - speed;
if (curDirection == "right") {
_root.hero._xscale = -100;
}
curDirection = "left";
}
if (Key.isDown(39)) {
xspeed = xspeed + speed;
if (curDirection == "left") {
_root.hero._xscale = 100;
}
curDirection = "right";
}
if (_xscale == 100) {
if (_x <= -16) {
_x = (_x + (_root.STAGEWIDTH + 32));
} else if (_x >= (_root.STAGEWIDTH + 16)) {
_x = (_x - (_root.STAGEWIDTH + 32));
}
} else if (_x <= -32) {
_x = (_x + (_root.STAGEWIDTH + 64));
} else if (_x >= (_root.STAGEWIDTH + 32)) {
_x = (_x - (_root.STAGEWIDTH + 64));
}
if (_y >= 440) {
yspeed = 0;
_y = 440;
}
if (_root.UPGFly == true) {
if (Key.isDown(38)) {
yspeed = -6 * speed;
}
}
}
}
Instance of Symbol 115 MovieClip "coinNeg5" in Frame 7
onClipEvent (load) {
if (_name != "coinNeg5") {
var yspeed = 2;
_x = (Math.random() * _root.STAGEWIDTH);
_y = ((Math.random() * -500) - 100);
if (_root.UPGGhost == true) {
_alpha = 50;
}
}
}
onClipEvent (enterFrame) {
if (!_root.pauseGame) {
if (_name != "coinNeg5") {
_y = (_y + yspeed);
if (_root.UPGGhost == false) {
if (Math.sqrt(Math.pow(Math.abs(_y - _root.hero._y), 2) + Math.pow(Math.abs(_x - _root.hero._x), 2)) < ((_width / 2) + (_root.hero.base._width / 2))) {
if (_currentframe == 1) {
if (_root.startTime == false) {
_root.startTime = true;
}
if (!_root.muteSound) {
_root.enemySound.start(0, 1);
}
_root.money = _root.money + (-5 * _root.multiplier);
_root.score = _root.score + (-5 * _root.multiplier);
play();
}
}
}
if (_y > (_root.STAGEHEIGHT + 50)) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 120 MovieClip "coinNeg10" in Frame 7
onClipEvent (load) {
if (_name != "coinNeg10") {
var yspeed = 3;
_x = (Math.random() * _root.STAGEWIDTH);
_y = ((Math.random() * -500) - 100);
if (_root.UPGGhost == true) {
_alpha = 50;
}
}
}
onClipEvent (enterFrame) {
if (!_root.pauseGame) {
if (_name != "coinNeg10") {
_y = (_y + yspeed);
if (_root.UPGGhost == false) {
if (Math.sqrt(Math.pow(Math.abs(_y - _root.hero._y), 2) + Math.pow(Math.abs(_x - _root.hero._x), 2)) < ((_width / 2) + (_root.hero.base._width / 2))) {
if (_currentframe == 1) {
if (_root.startTime == false) {
_root.startTime = true;
}
if (!_root.muteSound) {
_root.enemySound.start(0, 1);
}
_root.money = _root.money + (-10 * _root.multiplier);
_root.score = _root.score + (-10 * _root.multiplier);
play();
}
}
}
if (_y > (_root.STAGEHEIGHT + 50)) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 40 MovieClip in Frame 7
onClipEvent (load) {
gotoAndPlay (2);
}
Frame 8
stop();
cleanUp();
pauseGame = true;
var totalCashText = "";
if (money < levelCost) {
_root.gotoAndStop("youlose");
} else if (currentLevel == 8) {
_root.gotoAndStop("youwin");
} else {
money = money - levelCost;
switch (currentLevel) {
case 1 :
totalCashText = ("You pay $" + levelCost) + " to go to the game.";
break;
case 2 :
totalCashText = ("You pay $" + levelCost) + " to get the cone.";
break;
case 3 :
totalCashText = ("You pay $" + levelCost) + " for the flowers.";
break;
case 4 :
totalCashText = ("You pay $" + levelCost) + " for the dinner and movie.";
break;
case 5 :
totalCashText = ("You pay $" + levelCost) + " for the necklace.";
break;
case 6 :
totalCashText = ("You pay $" + levelCost) + " for the meal";
break;
case 7 :
totalCashText = ("You pay $" + levelCost) + " to go to the concert.";
}
currentLevel++;
}
Instance of Symbol 54 MovieClip "levelContinue" in Frame 8
on (release) {
_root.pauseGame = 0;
_root.go = 1;
_root.score = _root.score + _root.money;
_root.gotoAndStop("levelScreen");
}
Frame 9
stop();
gameOver = true;
loseSubmit.onRelease = function () {
var _local9 = "";
var _local8 = _root.userName;
_local8 = escape(_local8);
var _local2 = "";
_local9 = ("http://www.stumpygames.com/gamein.php?id=862&source=3&user=" + _local8) + "&score=";
var _local7 = _root.score.toString();
var _local5 = "";
var _local3 = "";
var _local4 = "";
var _local6 = "";
i = 0;
while (i < _local7.length) {
_local5 = String.fromCharCode(_local7.charCodeAt(i) + 57);
_local3 = String.fromCharCode(_local7.charCodeAt(i) + 60);
_local4 = String.fromCharCode(_local7.charCodeAt(i) + 20);
_local6 = String.fromCharCode(Math.floor(Math.random() * 26) + 97);
if ((i % 4) == 0) {
_local2 = (((_local2 + _local6) + _local5) + _local3) + _local4;
} else if ((i % 4) == 1) {
_local2 = (((_local2 + _local5) + _local6) + _local3) + _local4;
} else if ((i % 4) == 2) {
_local2 = (((_local2 + _local5) + _local3) + _local6) + _local4;
} else if ((i % 4) == 3) {
_local2 = (((_local2 + _local5) + _local3) + _local4) + _local6;
}
i++;
}
_local9 = _local9 + _local2;
_root.getURL(_local9, "_blank");
_root.gotoAndPlay("initialize");
};
loseRetry.onRelease = function () {
_root.gotoAndPlay("initialize");
};
Frame 10
stop();
gameOver = true;
winSubmit.onRelease = function () {
var _local9 = "";
var _local8 = _root.userName;
_local8 = escape(_local8);
var _local2 = "";
_local9 = ("http://www.stumpygames.com/gamein.php?id=862&source=3&user=" + _local8) + "&score=";
var _local7 = _root.score.toString();
var _local5 = "";
var _local3 = "";
var _local4 = "";
var _local6 = "";
i = 0;
while (i < _local7.length) {
_local5 = String.fromCharCode(_local7.charCodeAt(i) + 57);
_local3 = String.fromCharCode(_local7.charCodeAt(i) + 60);
_local4 = String.fromCharCode(_local7.charCodeAt(i) + 20);
_local6 = String.fromCharCode(Math.floor(Math.random() * 26) + 97);
if ((i % 4) == 0) {
_local2 = (((_local2 + _local6) + _local5) + _local3) + _local4;
} else if ((i % 4) == 1) {
_local2 = (((_local2 + _local5) + _local6) + _local3) + _local4;
} else if ((i % 4) == 2) {
_local2 = (((_local2 + _local5) + _local3) + _local6) + _local4;
} else if ((i % 4) == 3) {
_local2 = (((_local2 + _local5) + _local3) + _local4) + _local6;
}
i++;
}
_local9 = _local9 + _local2;
_root.getURL(_local9, "_blank");
_root.gotoAndPlay("initialize");
};
winRetry.onRelease = function () {
_root.gotoAndPlay("initialize");
};
Symbol 11 Button
on (release) {
_root.getURL("http://www.stumpygames.com/gamein.php?id=862&source=1", "_blank");
}
Symbol 29 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 29 MovieClip Frame 26
stop();
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 2
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 2
stop();
Symbol 40 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Instance of Symbol 32 MovieClip in Symbol 40 MovieClip Frame 1
onClipEvent (load) {
if (_root.muteSound) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (release) {
if (_currentframe == 1) {
_root.muteSound = true;
gotoAndStop (2);
} else if (_currentframe == 2) {
_root.muteSound = false;
gotoAndStop (1);
}
}
Instance of Symbol 35 MovieClip in Symbol 40 MovieClip Frame 1
onClipEvent (load) {
if (_root.muteMusic) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (release) {
if (_currentframe == 1) {
stopAllSounds();
_root.muteMusic = true;
gotoAndStop (2);
} else if (_currentframe == 2) {
_root.loopSound.start(0, 999);
_root.muteMusic = false;
gotoAndStop (1);
}
}
Instance of Symbol 39 MovieClip in Symbol 40 MovieClip Frame 2
onClipEvent (load) {
if (_root._quality == "HIGH") {
this.gotoAndStop(1);
} else if (_root._quality == "MEDIUM") {
this.gotoAndStop(2);
} else if (_root._quality == "LOW") {
this.gotoAndStop(3);
}
}
on (release) {
if (_currentframe == 1) {
_root._quality = "medium";
gotoAndStop (2);
} else if (_currentframe == 2) {
_root._quality = "low";
gotoAndStop (3);
} else if (_currentframe == 3) {
_root._quality = "high";
gotoAndStop (1);
}
}
Instance of Symbol 32 MovieClip in Symbol 40 MovieClip Frame 2
onClipEvent (load) {
if (_root.muteSound) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (release) {
if (_currentframe == 1) {
_root.muteSound = true;
gotoAndStop (2);
} else if (_currentframe == 2) {
_root.muteSound = false;
gotoAndStop (1);
}
}
Instance of Symbol 35 MovieClip in Symbol 40 MovieClip Frame 2
onClipEvent (load) {
if (_root.muteMusic) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (release) {
if (_currentframe == 1) {
stopAllSounds();
_root.muteMusic = true;
gotoAndStop (2);
} else if (_currentframe == 2) {
_root.loopSound.start(0, 999);
_root.muteMusic = false;
gotoAndStop (1);
}
}
Symbol 40 MovieClip Frame 50
stop();
Symbol 45 Button
on (release) {
gotoAndStop ("intro");
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 10
removeMovieClip(this);
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 10
removeMovieClip(this);
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 10
removeMovieClip(this);
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 10
removeMovieClip(this);
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 10
removeMovieClip(this);
Symbol 111 MovieClip Frame 1
stop();
if (_root.UPGSize == true) {
largePiggy._visible = true;
smallPiggy._visible = false;
base._xscale = 133;
base._yscale = 133;
magnet._xscale = 133;
magnet._yscale = 133;
} else {
largePiggy._visible = false;
smallPiggy._visible = true;
base._xscale = 100;
base._yscale = 100;
magnet._xscale = 100;
magnet._yscale = 100;
}
Instance of Symbol 102 MovieClip "magnetWaves" in Symbol 111 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.UPGcoinMagnet == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 104 MovieClip "base" in Symbol 111 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 10
removeMovieClip(this);
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 10
removeMovieClip(this);
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 2
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 2
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 2
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
stop();
Instance of Symbol 137 MovieClip "upgradeSize" in Symbol 160 MovieClip Frame 1
onClipEvent (load) {
stop();
var cost = 10;
if (_root.UPGSize == true) {
gotoAndStop (2);
}
}
on (release) {
if ((_root.UPGSize == false) && (_root.money >= cost)) {
_root.UPGSize = true;
gotoAndStop (2);
_root.money = _root.money - cost;
if (!_root.muteSound) {
_root.yesSound.start(0, 1);
}
} else if (!_root.muteSound) {
_root.noSound.start(0, 1);
}
}
Instance of Symbol 140 MovieClip in Symbol 160 MovieClip Frame 1
onClipEvent (load) {
stop();
var cost = 20;
if (_root.UPGSpeed == true) {
gotoAndStop (2);
}
}
on (release) {
if ((_root.UPGSpeed == false) && (_root.money >= cost)) {
_root.UPGSpeed = true;
gotoAndStop (2);
_root.money = _root.money - cost;
if (!_root.muteSound) {
_root.yesSound.start(0, 1);
}
} else if (!_root.muteSound) {
_root.noSound.start(0, 1);
}
}
Instance of Symbol 143 MovieClip in Symbol 160 MovieClip Frame 1
onClipEvent (load) {
stop();
var cost = 100;
if (_root.UPG2xSpeed == true) {
gotoAndStop (2);
}
}
on (release) {
if ((_root.UPG2xSpeed == false) && (_root.money >= cost)) {
_root.UPG2xSpeed = true;
gotoAndStop (2);
_root.money = _root.money - cost;
if (!_root.muteSound) {
_root.yesSound.start(0, 1);
}
} else if (!_root.muteSound) {
_root.noSound.start(0, 1);
}
}
Instance of Symbol 146 MovieClip in Symbol 160 MovieClip Frame 1
onClipEvent (load) {
stop();
var cost = 80;
if (_root.UPGFly == true) {
gotoAndStop (2);
}
}
on (release) {
if ((_root.UPGFly == false) && (_root.money >= cost)) {
_root.UPGFly = true;
gotoAndStop (2);
_root.money = _root.money - cost;
if (!_root.muteSound) {
_root.yesSound.start(0, 1);
}
} else if (!_root.muteSound) {
_root.noSound.start(0, 1);
}
}
Instance of Symbol 149 MovieClip in Symbol 160 MovieClip Frame 1
onClipEvent (load) {
stop();
var cost = 120;
if (_root.UPGMagnet == true) {
gotoAndStop (2);
}
}
on (release) {
if ((_root.UPGMagnet == false) && (_root.money >= cost)) {
_root.UPGMagnet = true;
gotoAndStop (2);
_root.money = _root.money - cost;
if (!_root.muteSound) {
_root.yesSound.start(0, 1);
}
} else if (!_root.muteSound) {
_root.noSound.start(0, 1);
}
}
Instance of Symbol 152 MovieClip in Symbol 160 MovieClip Frame 1
onClipEvent (load) {
stop();
var cost = 150;
if (_root.UPGGhost == true) {
gotoAndStop (2);
}
}
on (release) {
if ((_root.UPGGhost == false) && (_root.money >= cost)) {
_root.UPGGhost = true;
gotoAndStop (2);
_root.money = _root.money - cost;
if (!_root.muteSound) {
_root.yesSound.start(0, 1);
}
} else if (!_root.muteSound) {
_root.noSound.start(0, 1);
}
}
Instance of Symbol 155 MovieClip in Symbol 160 MovieClip Frame 1
onClipEvent (load) {
stop();
var cost = 50;
if (_root.UPG5Secs == true) {
gotoAndStop (2);
}
}
on (release) {
if ((_root.UPG5Secs == false) && (_root.money >= cost)) {
_root.UPG5Secs = true;
gotoAndStop (2);
_root.money = _root.money - cost;
if (!_root.muteSound) {
_root.yesSound.start(0, 1);
}
} else if (!_root.muteSound) {
_root.noSound.start(0, 1);
}
}
Instance of Symbol 157 MovieClip in Symbol 160 MovieClip Frame 1
onClipEvent (load) {
stop();
var cost = 80;
if (_root.UPG10Secs == true) {
gotoAndStop (2);
}
}
on (release) {
if ((_root.UPG10Secs == false) && (_root.money >= cost)) {
_root.UPG10Secs = true;
gotoAndStop (2);
_root.money = _root.money - cost;
if (!_root.muteSound) {
_root.yesSound.start(0, 1);
}
} else if (!_root.muteSound) {
_root.noSound.start(0, 1);
}
}
Symbol 163 Button
on (release) {
_root.gotoAndPlay("highscores");
}
Symbol 165 Button
on (release) {
_root.gotoAndPlay("initialize");
}