Frame 1
function onEnterFrame() {
if (this._currentframe == 1) {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
loader._xscale = getPercent * 100;
if ((bytes_loaded == bytes_total) && (thePlay._x < 0)) {
if ((domain == "kongregate.com") || (domain == "www.kongregate.com")) {
gotoAndStop (2);
}
loader._x = 1000;
outer._x = 1000;
thePlay._x = Stage.width / 2;
thePlay.onRollOver = function () {
thePlay._xscale = (thePlay._yscale = 150);
};
thePlay.onRollOut = function () {
thePlay._xscale = (thePlay._yscale = 100);
};
thePlay.onRelease = function () {
gotoAndStop (2);
};
}
}
}
function goToThisURL() {
getURL ("http://armorgames.com", "_blank");
}
function createContextMenu(menu) {
_root.menu = menu;
}
stop();
Playtomic.Log.View(3623, "7359d1a24bb14e6b", _root._url);
_root.kongregateServices.connect();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var mainItem = new ContextMenuItem("Play More Games", goToThisURL);
myMenu.customItems.push(mainItem);
createContextMenu(myMenu);
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if ((domain == "kongregate.com") || (domain == "www.kongregate.com")) {
outer._y = Stage.height / 2;
loader._y = Stage.height / 2;
} else {
var CPMStarContentSpotID = "1876Q6A519BA4";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
}
Instance of Symbol 71 MovieClip in Frame 1
on (release) {
getURL ("http://armorgames.com", "_BLANK");
}
Instance of Symbol 95 MovieClip in Frame 2
on (release) {
getURL ("http://armorgames.com", "_BLANK");
}
Frame 3
function aHover(button, num) {
button.onRollOver = function () {
s3.start();
growBig[num - 1] = true;
};
button.onRollOut = function () {
growBig[num - 1] = false;
};
}
function onEnterFrame() {
i = buttons.length - 1;
while (i >= 0) {
button = buttons[i];
if (growBig[i]) {
button._xscale = (button._yscale = button._yscale + ((120 - button._xscale) / 2));
button._alpha = button._alpha + ((100 - button._alpha) / 2);
} else {
button._xscale = (button._yscale = button._yscale + ((100 - button._xscale) / 2));
button._alpha = button._alpha + ((75 - button._alpha) / 2);
}
i--;
}
if ((money == undefined) || (money == 0)) {
ng._alpha = 0;
}
}
function bold(item) {
return(("<b>" + item) + "</b>");
}
function giveAward(awardnum) {
if ((award._currentframe == 1) && (achievements[awardnum - 1] != 1)) {
ach.start();
award.aname.awardName.htmlText = bold(achNames[awardnum - 1]);
totAwards = totAwards + 1;
sObject.data.totAwards = totAwards;
sObject.flush();
achievements[awardnum - 1] = 1;
award.gotoAndPlay(2);
sObject.data.achievements = achievements;
sObject.flush();
} else if (achievements[awardnum - 1] != 1) {
awardqueue.push(awardnum);
}
}
function awardWait() {
if (award._currentframe == 1) {
if (awardqueue.length != 0) {
giveAward(awardqueue[0]);
awardqueue.splice(0, 1);
}
}
}
stop();
var ach = new Sound();
ach.attachSound("ach.mp3");
var s3 = new Sound();
s3.attachSound("s3.mp3");
buttons = new Array(playBtn, achBtn, creBtn, mgBtn, ng, la);
growBig = new Array(false, false, false, false, false, false);
playBtn.onRelease = function () {
Playtomic.Log.Play();
if ((money == undefined) || (money == 0)) {
gotoAndStop (4);
} else {
gotoAndStop (5);
}
};
achBtn.onRelease = function () {
gotoAndStop (7);
};
mgBtn.onRelease = function () {
getURL ("http://armorgames.com", "_BLANK");
};
la.onRelease = function () {
getURL (" http://www.facebook.com/ArmorGames", "_BLANK");
};
creBtn.onRelease = function () {
gotoAndStop (8);
};
ng.onRelease = function () {
Playtomic.Log.Play();
gotoAndStop (4);
};
i = buttons.length - 1;
while (i >= 0) {
buttons[i]._alpha = 75;
aHover(buttons[i], i + 1);
if ((money == undefined) || (money == 0)) {
ng._alpha = 0;
delete ng.onRollOver;
delete ng.onRollOut;
delete ng.onRelease;
}
i--;
}
song.stop();
achNames = new Array("150 Cheese", "1500 Cheese", "10,000 Cheese", "Collect ALL the Things", "Outsider", "Star Elitist", "Lactose Intolerant", "Cursor Is Lava", "Die By Spike", "30 second day", "1 minute day", "2 minute day", "25 squares", "50 squares", "75 squares", "20 Cheese Day", "100 Cheese Day", "1000 Cheese Day", "Fuel Booster", "Game Complete", "Won - 25 Days", "Won - 12 Days");
achievements = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
sObject = SharedObject.getLocal("saveFile");
i = 0;
while (i <= achievements.length) {
if (sObject.data.achievements[i] != undefined) {
achievements[i] = sObject.data.achievements[i];
}
i++;
}
totAwards = 0;
if (sObject.data.totAwards != undefined) {
totAwards = sObject.data.totAwards;
}
song.stop();
totAwardsP = 20;
award.gotoAndStop(1);
awardqueue = new Array();
KeyListner.removeListener();
Frame 4
stop();
onMouseDown = function () {
if (a1._currentframe == 3) {
gotoAndStop (5);
} else {
a1.nextFrame();
b1.nextFrame();
}
};
money = 0;
Frame 5
function alphaHover(button) {
button.onRollOver = function () {
button._alpha = 75;
};
button.onRollOut = function () {
button._alpha = 100;
};
}
function pauseStuff() {
if (playerPause) {
Mouse.show();
ps = attachMovie("pauseScreen", "pauseScreen" + highDepth, highDepth++);
ps._x = Stage.width / 2;
ps._y = Stage.height / 2;
bigHover(ps.rtg);
bigHover(ps.mm);
ps.rtg.onRelease = function () {
ps.removeMovieClip();
playerPause = false;
};
ps.mm.onRelease = function () {
ps.removeMovieClip();
clearScreen();
money = preDayMoney;
award.removeMovieClip();
char.removeMovieClip();
logo.removeMovieClip();
shop.removeMovieClip();
HUD.removeMovieClip();
rFlash.removeMovieClip();
tw.removeMovieClip();
delete eval (onEnterFrame());
gotoAndStop (3);
};
} else {
ps.removeMovieClip();
Mouse.hide();
}
}
function bigHover(button) {
button.onRollOver = function () {
button._xscale = (button._yscale = 120);
};
button.onRollOut = function () {
button._xscale = (button._yscale = 100);
};
}
function boomMovement() {
if ((boom.boom._currentframe == 50) && (boom._x != undefined)) {
boom.removeMovieClip();
createShop();
}
}
function onEnterFrame() {
awardWait();
if (dayer._currentframe != 1) {
dayer.play();
}
if ((tw._currentframe == 120) && (!gameWon)) {
clearScreen();
award.removeMovieClip();
delete onEnterFrame;
gotoAndStop (6);
}
if ((!gamePause) && (!playerPause)) {
dayFrames = dayFrames + 1;
if (dayFrames >= 900) {
giveAward(10);
}
if (dayFrames >= 1800) {
giveAward(11);
}
if (dayFrames >= 3600) {
giveAward(12);
}
fuel = fuel - 1;
if ((fuel <= 0) && (boom._x == undefined)) {
days = days + 1;
boom = attachMovie("boom", "boom" + depth, depth++);
boomer.start();
boomer.start();
if (!cheeseMissed) {
giveAward(4);
}
if (!pickedUpCheese) {
giveAward(7);
}
if (!touchedCursor) {
giveAward(8);
}
smokeDelay = 10000;
boom._x = char._x;
boom._y = char._y;
char._alpha = 0;
}
if (fuel <= 0) {
fuel = 0;
}
reticle._x = _xmouse;
reticle._y = _ymouse;
theAng = Math.atan2(_ymouse - char._y, _xmouse - char._x);
xPos = Math.floor(char._x - _xmouse);
yPos = Math.floor(char._y - _ymouse);
xSpeed = xSpeed + (Math.cos(theAng) * speed);
ySpeed = ySpeed + (Math.sin(theAng) * speed);
xSpeed = xSpeed * friction;
ySpeed = ySpeed * friction;
char._x = char._x + xSpeed;
char._y = char._y + ySpeed;
if (reticle.hitTest(char)) {
touchedCursor = true;
}
if ((char._x - (char._width / 2)) > Stage.width) {
giveAward(5);
}
if ((char._x + (char._width / 2)) < 0) {
giveAward(5);
}
if ((char._y - (char._height / 2)) > Stage.height) {
giveAward(5);
}
if ((char._y + (char._height / 2)) < 0) {
giveAward(5);
}
effectMovement();
boomMovement();
spikeManagement();
planetManagement();
spikeMovement();
smokeManagement();
smokeMovement();
coinManagement();
fuelManagement();
coinMovement();
}
updateStats();
}
function spikeManagement() {
spikeDelay = spikeDelay - 1;
if (spikeDelay <= 0) {
createSpike();
spikeDelay = spikeDelayConst;
}
}
function createSpike() {
spike = attachMovie("spike", "spike" + depth, depth++);
spike._y = random(Stage.height);
spikes.push(spike);
spike.xSpeed = 0;
}
function spikeMovement() {
s = spikes.length - 1;
while (s >= 0) {
spike = spikes[s];
spike.xSpeed = spike.xSpeed + 0.1;
spike.xSpeed = spike.xSpeed * 1.05;
spike._x = spike._x + spike.xSpeed;
if (spike._x >= (Stage.width + spike._width)) {
removeSpike();
} else if (char.hitTest(spike._x, spike._y, true)) {
rFlash.gotoAndPlay(2);
removeSpike();
fuel = fuel - 150;
if (fuel <= 0) {
giveAward(9);
}
}
s--;
}
}
function removeSpike() {
spikes[s].removeMovieClip();
spikes.splice(s, 1);
}
function smokeManagement() {
smokeDelay = smokeDelay - 1;
if (smokeDelay <= 0) {
createSmoke();
smokeDelay = smokeDelayConst;
}
}
function createSmoke() {
smoke = attachMovie("smoke", "smoke" + depth, depth++);
smoke._x = char._x - 30;
smoke.Type = 1;
smoke._y = char._y;
smokes.push(smoke);
smoke.xSpeed = -10;
}
function planetManagement() {
planetDelay = planetDelay - 1;
if (planetDelay <= 0) {
createPlanet();
planetDelay = planetDelayConst;
}
}
function createPlanet() {
smoke = attachMovie("planet", "smoke" + depth, depth++);
smoke._x = Stage.width + (smoke._width / 2);
smoke._y = random(Stage.height);
smoke.Type = 2;
smoke._xscale = (smoke._yscale = random(100) + 50);
smoke._rotation = random(360);
smoke.gotoAndStop(random(4) + 1);
smokes.push(smoke);
smoke.xSpeed = -5 + Math.random();
}
function smokeMovement() {
s = smokes.length - 1;
while (s >= 0) {
smoke = smokes[s];
smoke._x = smoke._x + smoke.xSpeed;
if (smoke.Type == 1) {
smoke._alpha = smoke._alpha - 2;
}
if (smoke._x <= ((-smoke._width) / 2)) {
removeSmoke();
}
s--;
}
}
function removeSmoke() {
smokes[s].removeMovieClip();
smokes.splice(s, 1);
}
function updateStats() {
HUD.fuelBar.bar._xscale = (fuel / fuelMax) * 100;
HUD.mTxt.htmlText = bold(money + "/2000");
}
function coinManagement() {
coinDelay = coinDelay - 1;
if (coinDelay <= 0) {
if (Math.random() <= specialCoinChance) {
createCoin(2);
} else {
createCoin(1);
}
coinDelay = coinDelayConst;
}
}
function fuelManagement() {
if (random(fuelDelay) == 1) {
createCoin(3);
}
}
function createCoin(type) {
if (type == 1) {
coin = attachMovie("coin", "coin" + depth, depth++);
}
if (type == 2) {
coin = attachMovie("star", "coin" + depth, depth++);
}
if (type == 3) {
coin = attachMovie("fuel", "coin" + depth, depth++);
}
coin._x = Stage.width + (coin._width / 2);
coin._y = (random((Stage.height - 40) - coin._height) + 20) + (coin._height / 2);
coin.xSpeed = ((-coinSpeed) + Math.random()) - 0.5;
coin.Type = type;
coins.push(coin);
}
function coinMovement() {
i = coins.length - 1;
while (i >= 0) {
coin = coins[i];
coin._x = coin._x + coin.xSpeed;
if (coin.hitTest(char) && (boom._x == undefined)) {
a = 2;
while (a > 0) {
createEffect();
a--;
}
pickedUpCheese = true;
bell.start();
if (coin.Type == 1) {
money = money + 1;
dayCheese = dayCheese + 1;
starsInARow = 0;
}
if (coin.Type == 2) {
money = money + 5;
dayCheese = dayCheese + 5;
starsInARow = starsInARow + 1;
if (starsInARow == 5) {
giveAward(6);
}
}
if (dayCheese >= 20) {
giveAward(16);
}
if (dayCheese >= 100) {
giveAward(17);
}
if (dayCheese >= 1000) {
giveAward(18);
}
if (coin.Type == 3) {
fuelBoosts = fuelBoosts + 1;
if (fuelBoosts >= 10) {
giveAward(19);
}
fuel = fuel + 75;
}
if (money >= 150) {
giveAward(1);
}
if (money >= 1500) {
giveAward(2);
}
if (money >= 10000) {
giveAward(3);
}
if ((money >= 2000) && (!gameWon)) {
tw.play();
}
bg.gotoAndPlay(2);
removeCoin();
} else if (coin._x <= ((-coin._width) / 2)) {
removeCoin();
cheeseMissed = true;
}
i--;
}
}
function createEffect() {
effect = attachMovie("lSquare", "lSquare" + depth, depth++);
effect._x = coin._x;
effect._y = coin._y;
effect.rot = (Math.random() * Math.PI) * 2;
effect.xSpeed = Math.cos(effect.rot) * 20;
effect.ySpeed = Math.sin(effect.rot) * 20;
effect.lifeLength = 0;
effects.push(effect);
}
function effectMovement() {
if (effects.length >= 25) {
giveAward(13);
}
if (effects.length >= 50) {
giveAward(14);
}
if (effects.length >= 75) {
giveAward(15);
}
e = effects.length - 1;
while (e >= 0) {
effect = effects[e];
effect._x = effect._x + effect.xSpeed;
effect._y = effect._y + effect.ySpeed;
effect.xSpeed = effect.xSpeed * 0.97;
effect.ySpeed = effect.ySpeed * 0.97;
effect.lifeLength = effect.lifeLength + 1;
toChar = Math.atan2(char._y - effect._y, char._x - effect._x);
effect.xSpeed = effect.xSpeed + Math.cos(toChar);
effect.ySpeed = effect.ySpeed + Math.sin(toChar);
if (effect.lifeLength >= 15) {
if (char.hitTest(effect)) {
removeEffect();
}
}
e--;
}
}
function removeEffect() {
effects[e].removeMovieClip();
effects.splice(e, 1);
}
function removeCoin() {
coins[i].gotoAndStop(2);
coins.splice(i, 1);
}
function setVals() {
speed = upgradeLevels[0][upgradeLevel[0]];
friction = upgradeLevels[6][upgradeLevel[0]];
specialCoinChance = upgradeLevels[1][upgradeLevel[1]];
fuelMax = upgradeLevels[2][upgradeLevel[2]];
fuelDelay = upgradeLevels[3][upgradeLevel[3]];
coinDelayConst = upgradeLevels[4][upgradeLevel[4]];
coinSpeed = upgradeLevels[5][upgradeLevel[5]];
}
function createShop() {
clearScreen();
Mouse.show();
char._alpha = 0;
shop._x = Stage.width / 2;
gamePause = true;
shopUpgrades = new Array(shop.s1, shop.s2, shop.f1, shop.p1, shop.g1, shop.i1);
i = shopUpgrades.length - 1;
while (i >= 0) {
createShopUpgradeButton(shopUpgrades[i], i);
i--;
}
shop.n1.onRollOver = function () {
s3.start();
shop.n1.gotoAndStop(2);
};
shop.n1.onRollOut = function () {
shop.n1.gotoAndStop(1);
};
shop.n1.onRelease = function () {
shop._x = 2000;
spikeDelay = 600;
preDayMoney = money;
HUD.dayTxt.htmlText = bold("DAY: " + days);
gamePause = false;
dayer.d1.dTxt.htmlText = bold("DAY " + days);
dayer.gotoAndPlay(2);
fuelBoosts = 0;
dayCheese = 0;
dayFrames = 0;
pickedUpCheese = false;
cheeseMissed = false;
touchedCursor = false;
smokeDelay = 0;
fuel = fuelMax;
Mouse.hide();
char._alpha = 100;
};
}
function createShopUpgradeButton(button, num) {
buttonParts = new Array(button.s1, button.s2, button.s3, button.s4, button.s5, button.s6, button.s7, button.s8, button.s9, button.s10);
b = buttonParts.length - 1;
while (b >= 0) {
if (upgradeLevel[num] > b) {
buttonParts[b].gotoAndStop(2);
}
b--;
}
button.mTxt.htmlText = bold("$" + upgradeCosts[num][upgradeLevel[num]]);
if (upgradeLevel[num] == 10) {
button.mTxt.htmlText = bold("$MAXED");
}
button.p1.onRollOver = function () {
s3.start();
button.p1.gotoAndStop(2);
shop.descTxt.htmlText = bold(upgradeDescriptions[num]);
shop.sTxt.htmlText = bold(upgradeNames[num]);
};
button.p1.onRollOut = function () {
button.p1.gotoAndStop(1);
};
button.p1.onRelease = function () {
if ((upgradeLevel[num] != 10) && (money >= upgradeCosts[num][upgradeLevel[num]])) {
money = money - upgradeCosts[num][upgradeLevel[num]];
upgradeLevel[num] = upgradeLevel[num] + 1;
t = shopUpgrades.length - 1;
while (t >= 0) {
createShopUpgradeButton(shopUpgrades[t], t);
t--;
}
setVals();
}
};
}
function bold(item) {
return(("<b>" + item) + "</b>");
}
function alignChar() {
char._x = (Stage.width / 2) - 150;
char._y = Stage.height / 2;
}
function clearScreen() {
i = coins.length - 1;
while (i >= 0) {
removeCoin();
i--;
}
s = spikes.length - 1;
while (s >= 0) {
spike = spikes[s];
removeSpike();
s--;
}
s = smokes.length - 1;
while (s >= 0) {
smoke = smokes[s];
removeSmoke();
s--;
}
e = effects.length - 1;
while (e >= 0) {
removeEffect();
e--;
}
alignChar();
}
Mouse.hide();
if (money == 0) {
speed = 2;
money = 0;
depth = 100;
fuelMax = 1000;
gamePause = false;
playerPause = false;
gameWon = false;
days = 1;
xSpeed = 0;
ySpeed = 0;
friction = 0.9;
spikeDelayConst = 80;
spikeDelay = 600;
coinDelayConst = 20;
coinDelay = 0;
specialCoinChance = 0.1;
fuelDelay = 100;
coinSpeed = 8;
upgradeLevel = new Array(0, 0, 0, 0, 0, 0);
}
gamePause = false;
playerPause = false;
HUD.dayTxt.htmlText = bold("DAY: " + days);
alphaHover(pbtn);
alphaHover(mbtn);
logo.swapDepths(600500);
pbtn.onRelease = function () {
playerPause = !playerPause;
pauseStuff();
};
highDepth = 950100 /* 0x0E7F54 */;
song.attachSound("song.mp3");
song.start(0, 100000);
var bell = new Sound();
bell.attachSound("bell.mp3");
var boomer = new Sound();
boomer.attachSound("boom.mp3");
award.swapDepths(900250);
shop.swapDepths(500100);
rFlash.swapDepths(900100);
char.swapDepths(400200);
tw.swapDepths(900500);
muted2 = false;
mbtn.onRelease = function () {
trace(muted2);
if (muted2) {
muted2 = !muted2;
bell.setVolume(100);
} else {
muted2 = !muted2;
bell.setVolume(0);
}
};
dayer.d1.dTxt.htmlText = bold("DAY " + days);
dayer.gotoAndPlay(2);
dayFrames = 0;
touchedCursor = false;
starsInARow = 0;
spikes = new Array();
smokeDelayConst = 2;
smokeDelay = 0;
smokes = new Array();
planetDelayConst = 50;
planetDelay = 0;
HUD.swapDepths(800100);
coins = new Array();
pickedUpCheese = false;
cheeseMissed = false;
dayCheese = 0;
fuelBoosts = 0;
effects = new Array();
speedCosts = new Array(5, 10, 15, 20, 25, 30, 40, 60, 80, 100);
starCosts = new Array(5, 10, 15, 20, 25, 30, 40, 60, 80, 100);
fuelCosts = new Array(5, 10, 15, 20, 25, 30, 40, 60, 80, 100);
pickupsCosts = new Array(5, 10, 15, 20, 25, 30, 40, 60, 80, 100);
goldCosts = new Array(5, 10, 15, 20, 35, 55, 80, 110, 150, 200);
itemSlowCosts = new Array(5, 7, 10, 12, 15, 17, 20, 22, 25, 30);
upgradeCosts = new Array(speedCosts, starCosts, fuelCosts, pickupsCosts, goldCosts, itemSlowCosts, upgradeCosts);
speedLevels = new Array(0.5, 0.7, 1, 1.3, 1.6, 1.9, 2.2, 2.5, 3, 3.5, 4);
fa = new Array(0.9, 0.88, 0.86, 0.84, 0.82, 0.8, 0.78, 0.76, 0.74, 0.72, 0.7);
starLevels = new Array(0, 0.02, 0.04, 0.06, 0.08, 0.1, 0.12, 0.14, 0.16, 0.18, 0.2);
fuelLevels = new Array(500, 600, 700, 800, 900, 1000, 1200, 1400, 1600, 1800, 2000);
pickupsLevels = new Array(200, 190, 180, 170, 160, 150, 140, 130, 120, 110, 100);
goldLevels = new Array(14, 12, 10, 9, 8, 7, 6, 5, 4, 3, 2);
itemSlowLevels = new Array(12, 11, 10, 9.5, 9, 8.5, 8, 7.5, 7, 6.5, 6);
upgradeLevels = new Array(speedLevels, starLevels, fuelLevels, pickupsLevels, goldLevels, itemSlowLevels, fa);
upgradeDescriptions = new Array("This upgrade will increase the speed of your ship and decrease the friction giving you better control.", "This upgrade will increase the rate at which stars come. (They are worth 5 cheese)", "This upgrade will increase your fuel capacity.", "This upgrade will increase the rate at which fuel refils come.", "This upgrade will increase the rate at which cheese comes.", "This upgrade will slow down the speed of coins, stars, and fuel.");
upgradeNames = new Array("SPEED", "STARS", "FUEL", "PICKUPS", "GOLD", "ITEM SLOW");
preDayMoney = 0;
alignChar();
setVals();
fuel = fuelMax;
Frame 6
function aHover(button, frame) {
button.onRollOver = function () {
button.gotoAndStop(2);
s3.start();
};
button.onRollOut = function () {
button.gotoAndStop(1);
};
button.onRelease = function () {
gotoAndStop(frame);
};
}
function onEnterFrame() {
awardWait();
if (win._currentframe == 100) {
giveAward(20);
if (days <= 25) {
giveAward(21);
}
if (days <= 12) {
giveAward(22);
}
}
if (win._currentframe == 520) {
aHover(win.c1, 5);
aHover(win.p1, 4);
aHover(win.m1, 3);
}
}
song.stop();
Mouse.show();
shop.removeMovieClip();
rFlash.removeMovieClip();
char.removeMovieClip();
logo.removeMovieClip();
tw.removeMovieClip();
clearScreen();
HUD.removeMovieClip();
gameWon = true;
_root.kongregateStats.submit("Days", days);
Frame 7
achievementers = new Array(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22);
m1.onRollOver = function () {
m1.gotoAndStop(2);
s3.start();
};
m1.onRollOut = function () {
m1.gotoAndStop(1);
};
m1.onRelease = function () {
gotoAndStop (3);
};
i = achievementers.length - 1;
while (i >= 0) {
achievementer = achievementers[i];
achievementer.theTxt.htmlText = bold(achNames[i]);
if (achievements[i] == 0) {
achievementer.img.gotoAndStop(2);
}
i--;
}
delete eval (onEnterFrame());
Frame 8
m1.onRollOver = function () {
m1.gotoAndStop(2);
s3.start();
};
m1.onRollOut = function () {
m1.gotoAndStop(1);
};
m1.onRelease = function () {
gotoAndStop (3);
};
delete eval (onEnterFrame());
Symbol 253 MovieClip [__Packages.Playtomic.LogRequest] Frame 0
class Playtomic.LogRequest
{
var Pieces;
function LogRequest () {
}
function Queue(data) {
Pieces++;
Data = Data + (((Data == "") ? "" : "~") + data);
if ((Pieces == 8) || (Data.length > 300)) {
Pieces = 0;
Ready = true;
}
}
function Send() {
var _local2 = new LoadVars();
_local2.load(((((((((("http://g" + Playtomic.Log.GUID) + ".api.playtomic.com/Tracker/q.aspx?swfid=") + Playtomic.Log.SWFID) + "&q=") + Data) + "&url=") + Playtomic.Log.SourceUrl) + "&") + Math.random()) + "z", null, "POST");
}
var Data = "";
var Ready = false;
}
Symbol 254 MovieClip [__Packages.Playtomic.Log] Frame 0
class Playtomic.Log
{
static var SourceUrl, Cookie;
function Log () {
}
static function View(swfid, guid, defaulturl) {
if (swfid == undefined) {
swfid = 0;
}
if (guid == undefined) {
guid = "";
}
if (defaulturl == undefined) {
defaulturl = "";
}
if (SWFID > 0) {
return(undefined);
}
SWFID = swfid;
GUID = guid;
Enabled = true;
if ((SWFID == 0) || (GUID == "")) {
Enabled = false;
return(undefined);
}
if (((defaulturl.indexOf("http://") != 0) && (System.security.sandboxType != "localWithNetwork")) && (System.security.sandboxType != "localTrusted")) {
Enabled = false;
return(undefined);
}
SourceUrl = GetUrl(defaulturl);
if (((SourceUrl == null) || (SourceUrl == "")) || (SourceUrl.indexOf("https://") == 0)) {
Enabled = false;
return(undefined);
}
Cookie = SharedObject.getLocal("playtomic");
var _local2 = GetCookie("views");
_local2++;
SaveCookie("views", _local2);
Send("v/" + _local2, true);
_global.setTimeout(PingServer, 60000);
}
static function ForceSend() {
Request.Send();
Request = new Playtomic.LogRequest();
}
static function Play() {
if (!Enabled) {
return(undefined);
}
LevelCounters = new Array();
LevelAverages = new Array();
LevelRangeds = new Array();
Plays++;
Send("p/" + Plays);
}
static function CustomMetric(name, group, unique) {
if (!Enabled) {
return(undefined);
}
if ((group == null) || (group == undefined)) {
group = "";
}
if ((unique == null) || (unique == undefined)) {
unique = false;
}
if (unique) {
if (Customs.indexOf(name) > -1) {
return(undefined);
}
Customs.push(name);
}
Send((("c/" + Clean(name)) + "/") + Clean(group));
}
static function Link(url, name, group, unique, total, fail) {
if (!Enabled) {
return(undefined);
}
Send((((((((((("l/" + Clean(name)) + "/") + Clean(group)) + "/") + Clean(url)) + "/") + unique) + "/") + total) + "/") + fail);
}
static function LevelCounterMetric(name, level, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
if (LevelCounters.indexOf(name) > -1) {
return(undefined);
}
LevelCounters.push(name);
}
Send((("lc/" + Clean(name)) + "/") + Clean(level));
}
static function LevelRangedMetric(name, level, value, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
if (LevelRangeds.indexOf(name) > -1) {
return(undefined);
}
LevelRangeds.push(name);
SaveCookie("lr_" + name, 1);
}
Send((((("lr/" + Clean(name)) + "/") + Clean(level)) + "/") + value);
}
static function LevelAverageMetric(name, level, value, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
if (LevelAverages.indexOf(name) > -1) {
return(undefined);
}
LevelAverages.push(name);
}
Send((((("la/" + Clean(name)) + "/") + Clean(level)) + "/") + value);
}
static function PingServer() {
if (!Enabled) {
return(undefined);
}
Pings++;
Send((("t/" + (FirstPing ? "y" : "n")) + "/") + Pings, true);
if (FirstPing) {
FirstPing = false;
setInterval(PingServer, 60000);
}
}
static function Send(s, view) {
if (view == undefined) {
view = false;
}
Request.Queue(s);
if ((Request.Ready || (view)) || (!Queue)) {
Request.Send();
Request = new Playtomic.LogRequest();
}
}
static function GetCookie(n) {
if (Cookie.data[n] == undefined) {
return(0);
}
return(parseInt(Cookie.data[n]));
}
static function SaveCookie(n, v) {
var _local1 = SharedObject.getLocal("swfstats");
_local1.data[n] = v.toString();
_local1.flush();
}
static function Clean(s) {
while (s.indexOf("/") > -1) {
s = s.replace("/", "\\");
}
while (s.indexOf("~") > -1) {
s = s.replace("~", "-");
}
return(escape(s));
}
static function Replace(str, find, replace) {
return(str.split(find).join(replace));
}
static function GetUrl(defaulturl) {
return(defaulturl);
}
static var Enabled = false;
static var Queue = true;
static var SWFID = 0;
static var GUID = "";
static var Request = new Playtomic.LogRequest();
static var FirstPing = true;
static var Pings = 0;
static var Plays = 0;
static var HighestGoal = 0;
static var Customs = new Array();
static var LevelCounters = new Array();
static var LevelAverages = new Array();
static var LevelRangeds = new Array();
}
Symbol 95 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 95 MovieClip Frame 225
_root.nextFrame();
Symbol 98 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 125 MovieClip [coin] Frame 1
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 145 MovieClip [star] Frame 1
stop();
Symbol 163 MovieClip [planet] Frame 1
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 170 MovieClip [fuel] Frame 1
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 520
stop();
Symbol 240 MovieClip Frame 1
stop();