Frame 1
stop();
Instance of Symbol 14 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.total = int(_root.getBytesTotal());
_root.current = int(_root.getBytesLoaded());
_root.percent = int((_root.current / _root.total) * 100);
this._xscale = _root.percent;
if (_root.percent >= 100) {
_root.gotoAndPlay("CMGlogo");
}
}
Frame 2
stop();
Frame 3
_root.createEmptyMovieClip("snd_musicTheme", 80000);
musicTheme = new Sound(snd_musicTheme);
musicTheme.attachSound("musicTheme");
musicTheme.setVolume(75);
_root.createEmptyMovieClip("snd_hitKid", 80001);
musicHit = new Sound(snd_hitKid);
musicHit.attachSound("hitKid");
musicHit.setVolume(100);
_root.createEmptyMovieClip("snd_buyItem", 80002);
buyItem = new Sound("snd_buyItem");
buyItem.attachSound("buyThing");
buyItem.setVolume(100);
var name = "";
Instance of Symbol 73 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.gotoAndPlay("menu");
}
}
Instance of Symbol 73 MovieClip in Frame 161
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.gotoAndPlay("menuIntro");
}
}
Frame 176
stop();
_root.stopAllSounds();
musicTheme.stop();
Frame 179
function kidStart() {
this.hit = 50 + _root.gameLevel;
this.hits = 0;
this.maxHits = 1;
this.initSpeed = (3 + (2 * Math.random())) + (_root.gameLevel / 5);
this.dead = false;
this.speed = this.initSpeed;
this.begY = 229;
this._y = this.begY;
this.xVol = 0;
this.yVol = 0;
this.fallen = false;
this.canBeAttacked = true;
this.wait = 0;
this.x = 1200;
this.jumperB = random(4);
if (this.jumperB < 2) {
this.jumper = true;
} else {
this.jumper = false;
}
this.jumping = false;
}
function kidStartB() {
this.hit = 100 + _root.gameLevel;
this.hits = 0;
this.maxHits = 2;
this.initSpeed = (3 + (2 * Math.random())) + (_root.gameLevel / 5);
this.dead = false;
this.speed = this.initSpeed;
this.begY = 229;
this._y = this.begY;
this.xVol = 0;
this.yVol = 0;
this.fallen = false;
this.canBeAttacked = true;
this.wait = 0;
this.x = 1200;
this.jumperB = random(4);
if (this.jumperB < 2) {
this.jumper = true;
} else {
this.jumper = false;
}
this.jumping = false;
}
function kidStartC() {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
this.hit = 200 + _root.gameLevel;
this.hits = 0;
this.maxHits = 3;
this.initSpeed = (4 + (2 * Math.random())) + (_root.gameLevel / 10);
this.dead = false;
this.speed = this.initSpeed;
this.begY = 220;
this._y = this.begY;
this.xVol = 0;
this.yVol = 0;
this.fallen = false;
this.canBeAttacked = true;
this.wait = 0;
this.x = 1200;
this.jumperB = random(4);
if (this.jumperB < 2) {
this.jumper = true;
} else {
this.jumper = false;
}
this.jumping = false;
}
function kidStartD() {
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
this.hit = 400 + _root.gameLevel;
this.hits = 0;
this.maxHits = 5;
this.initSpeed = (4 + (2 * Math.random())) + (_root.gameLevel / 20);
this.dead = false;
this.speed = this.initSpeed;
this.begY = 211;
this._y = this.begY;
this.xVol = 0;
this.yVol = 0;
this.fallen = false;
this.canBeAttacked = true;
this.wait = 0;
this.x = 1200;
this.jumperB = random(4);
if (this.jumperB < 2) {
this.jumper = true;
} else {
this.jumper = false;
}
this.jumping = false;
}
function kidCodes() {
if (_root.gameFrame == false) {
this.removeMovieClip();
} else {
if (this.fallen == false) {
if (this.x < -100) {
_root.glow.gotoAndPlay("go");
_root.tempHealth = _root.tempHealth - this.hit;
this.speed = 0;
this.initSpeed = 0;
this.removeMovieClip();
_root.kidsInPlay = _root.kidsInPlay - 1;
}
if (this.xVol > 0.2) {
this.xVol = this.xVol - 0.3;
} else if (this.xVol < -0.2) {
this.xVol = this.xVol + 0.3;
} else {
this.xVol = 0;
}
if (this._y < this.begY) {
if (this.jumping == true) {
this.gotoAndStop("airB");
this.yVol = this.yVol - 1;
} else {
this.gotoAndStop("air");
this._rotation = this._rotation + 1;
this.yVol = this.yVol - 1;
}
} else if ((this._y - this.yVol) > this.begY) {
if (this.jumping == false) {
this.hits = this.hits + 1;
this.yVol = 0;
this._y = this.begY;
this.gotoAndPlay("hit");
this.xVol = 0;
this.speed = 0;
this._rotation = 0;
this.fallen = true;
this.wait = 10;
} else {
this.yVol = 0;
this._y = this.begY;
this.gotoAndPlay("running");
this.speed = this.initSpeed;
this._rotation = 0;
this.jumping = false;
}
} else if (((this.jumper == true) and (this._x > (_root.santa._x + _root.santaScale))) and (this._x < ((_root.santa._x + 20) + _root.santaScale))) {
this.yVol = 12 + (_root.gameLevel / 10);
this.xVol = 10 + (_root.gameLevel / 100);
this.jumping = true;
}
if (((_root.santa.attacking == true) and (this.canBeAttacked == true)) and (this._y > (this.begY - _root.santaScale))) {
if (_root.santa._xscale == _root.santaScale) {
if (((this._x > (_root.santa._x - (_root.santaScale / 3))) and (this._x < (_root.santa._x + _root.santaScale))) and (_root.canDie == true)) {
this.canBeAttacked = false;
this.jumping = false;
this.xVol = (-_root.baseDamage) - random(5);
this.yVol = _root.baseDamage + random(3);
_root.score = _root.score + _root.enemyAhitpoints;
_root.hitKid = true;
}
}
if (_root.santa._xscale == (-_root.santaScale)) {
if (((this._x > (_root.santa._x - (_root.santaScale * 2))) and (this._x < (_root.santa._x + (_root.santaScale / 4)))) and (_root.canDie == true)) {
this.canBeAttacked = false;
this.jumping = false;
this.xVol = (_root.baseDamage / 4) + random(4);
this.yVol = _root.baseDamage + random(3);
_root.score = _root.score + _root.enemyAhitpoints;
_root.hitKid = true;
}
}
}
} else if (this.fallen == true) {
if (this.wait > 0) {
this.wait = this.wait - 1;
} else if (this.dead == true) {
this.removeMovieClip();
_root.kidsInPlay = _root.kidsInPlay - 1;
} else if (this.hits >= this.maxHits) {
this.dead = true;
this.wait = 5;
this.gotoAndPlay("die");
_root.score = _root.score + _root.enemyAkillpoints;
} else {
this.gotoAndPlay("getUp");
this.fallen = false;
this.speed = this.initSpeed;
}
}
if ((this._y == this.begY) or (this.jumping == true)) {
this.x = this.x - (this.speed + this.xVol);
} else {
this.x = this.x - ((this.speed / 2) + this.xVol);
}
this._y = this._y - this.yVol;
this._x = this.x - _root.offX;
}
}
var money = 0;
var hitKid = false;
var maxSpeed = 12;
var powerBonus = 0;
var baseDamage = 10;
var powerUpCost = 10;
var levelReload = 200;
var levelTimer = levelReload;
var screenWidth = 550;
var offX = 0;
var flash = true;
var health = 1000;
var maxHealth = 1000;
var tempHealth = health;
var gameLevel = 1;
var score = 0;
var totalScore = 0;
var canMove = true;
var canDie = false;
var enemyAhitpoints = 50;
var enemyAkillpoints = 100;
var canDuplicate = true;
var kidsInPlay = 0;
var santaScale = 100;
var gameFrame = true;
Frame 180
musicTheme.start(0, 100);
var offX = 0;
stop();
Instance of Symbol 50 MovieClip "fadeIn" in Frame 180
onClipEvent (load) {
this.swapDepths(2000000);
}
onClipEvent (enterFrame) {
if (_root.flash == true) {
_root.flash = false;
this.gotoAndPlay("go");
}
}
Instance of Symbol 106 MovieClip "bg2b" in Frame 180
onClipEvent (load) {
begX = -643;
this._x = begX;
}
onClipEvent (enterFrame) {
if (_root.canMove == true) {
this._x = begX + (0.04 * _root.bg._x);
}
}
Instance of Symbol 107 MovieClip "bg2" in Frame 180
onClipEvent (load) {
begX = 723;
this._x = begX;
}
onClipEvent (enterFrame) {
if (_root.canMove == true) {
this._x = begX + (0.05 * _root.bg._x);
}
}
Instance of Symbol 134 MovieClip "kidA" in Frame 180
onClipEvent (load) {
this.onEnterFrame = _root.kidCodes;
}
Instance of Symbol 152 MovieClip "santa" in Frame 180
onClipEvent (load) {
this.swapDepths(10000);
var dir = true;
accel = 4;
speed = 0;
begX = 258;
standing = true;
running = false;
attacking = false;
leftB = 200;
rightB = 250;
rB = _root.screenWidth - rightB;
this._xscale = _root.santaScale;
}
onClipEvent (enterFrame) {
this._yscale = _root.santaScale;
if (Key.isDown(40) and (attacking == false)) {
speed = 0;
attacking = true;
standing = false;
running = false;
this.gotoAndPlay("attack1");
} else if (Key.isDown(39) and (attacking == false)) {
this._xscale = _root.santaScale;
if ((running == false) and (attacking == false)) {
running = true;
standing = false;
this.gotoAndPlay("startRun");
}
speed = speed + accel;
} else if (Key.isDown(37) and (attacking == false)) {
this._xscale = -_root.santaScale;
if ((running == false) and (attacking == false)) {
running = true;
standing = false;
this.gotoAndPlay("startRun");
}
speed = speed - accel;
} else {
if (running == true) {
running = false;
standing = true;
}
speed = int(speed * 0.8);
}
if (speed > _root.maxSpeed) {
speed = _root.maxSpeed;
}
if (speed < (-_root.maxSpeed)) {
speed = -_root.maxSpeed;
}
if (speed > 0) {
if ((this._x + speed) > rB) {
if ((speed + _root.offX) < _root.bg.farRight) {
_root.offX = _root.offX + speed;
this._x = rB;
} else {
_root.offX = _root.bg.farRight;
this._x = rB;
}
} else {
this._x = this._x + speed;
}
}
if (speed < 0) {
if ((this._x + speed) < leftB) {
if ((speed + _root.offX) > _root.bg.farLeft) {
_root.offX = _root.offX + speed;
this._x = leftB;
} else {
_root.offX = _root.bg.farLeft;
this._x = leftB;
}
} else {
this._x = this._x + speed;
}
}
}
Instance of Symbol 160 MovieClip "bg" in Frame 180
onClipEvent (load) {
this.swapDepths(10001);
begX = -70;
this._x = begX;
farLeft = -126;
farRight = 600;
}
onClipEvent (enterFrame) {
farRight = 100 + int(500 - (_root.gameLevel * 10));
if (_root.offX <= farLeft) {
_root.offX = farLeft;
_root.canMove = false;
}
if (_root.offX >= farRight) {
_root.offX = farRight;
_root.canMove = false;
} else {
_root.canMove = true;
}
this._x = begX - _root.offX;
}
Instance of Symbol 162 MovieClip "control" in Frame 180
onClipEvent (load) {
var currentK = 1;
a = 1;
}
onClipEvent (enterFrame) {
if (_root.hitKid == true) {
_root.musicHit.start();
_root.hitKid = false;
}
if (_root.levelTimer > 0) {
_root.levelTimer = _root.levelTimer - 1;
} else {
_root.canDuplicate = false;
if (((_root.kidsInPlay == 0) and ((_root.health > 0) and (_root.health == _root.tempHealth))) and (_root.score == _root.totalScore)) {
_root.bg.removeMovieClip();
_root.santa.removeMovieClip();
_root.glow.removeMovieClip();
_root.overlayA.removeMovieClip();
_root.musicTheme.stop();
_root.flash = true;
_root.gameFrame = false;
_root.gotoAndPlay("levelComplete");
}
}
_root.kidA.x = 1500;
_root.kidB.x = 1500;
_root.kidC.x = 1500;
_root.kidD.x = 1500;
_root.kidA.speed = 0;
_root.kidB.speed = 0;
_root.kidC.speed = 0;
_root.kidD.speed = 0;
_root.kidA._x = 1500;
_root.kidB._x = 1500;
_root.kidC._x = 1500;
_root.kidD._x = 1500;
if (_root.canDuplicate == true) {
if (a == 1) {
_root.kidA.duplicateMovieClip(["kidA" + currentK], currentK);
_root["kidA" + currentK].onLoad = _root.kidStart;
_root.kidsInPlay = _root.kidsInPlay + 1;
currentK = currentK + 1;
} else if ((a == 2) and (_root.gameLevel >= 3)) {
_root.kidB.duplicateMovieClip(["kidB" + currentK], currentK);
_root["kidB" + currentK].onLoad = _root.kidStartB;
_root.kidsInPlay = _root.kidsInPlay + 1;
currentK = currentK + 1;
} else if ((a == 3) and (_root.gameLevel >= 10)) {
_root.kidC.duplicateMovieClip(["kidC" + currentK], currentK);
_root["kidC" + currentK].onLoad = _root.kidStartC;
_root.kidsInPlay = _root.kidsInPlay + 1;
currentK = currentK + 1;
} else if ((a == 4) and (_root.gameLevel >= 20)) {
_root.kidD.duplicateMovieClip(["kidD" + currentK], currentK);
_root["kidD" + currentK].onLoad = _root.kidStartD;
_root.kidsInPlay = _root.kidsInPlay + 1;
currentK = currentK + 1;
}
a = random(40 + int(400 / _root.gameLevel));
}
}
Instance of Symbol 166 MovieClip "glow" in Frame 180
onClipEvent (load) {
this.swapDepths(1000000);
var begX = this._x;
var cOff = _root.offX;
}
onClipEvent (enterFrame) {
this._x = (begX - _root.offX) + cOff;
}
Instance of Symbol 185 MovieClip "kidB" in Frame 180
onClipEvent (load) {
this.onEnterFrame = _root.kidCodes;
}
Instance of Symbol 204 MovieClip "kidC" in Frame 180
onClipEvent (load) {
this.onEnterFrame = _root.kidCodes;
}
Instance of Symbol 223 MovieClip "kidD" in Frame 180
onClipEvent (load) {
this.onEnterFrame = _root.kidCodes;
}
Instance of Symbol 247 MovieClip "digit100" in Frame 180
onClipEvent (load) {
begX = 300;
}
onClipEvent (enterFrame) {
var a = int(_root.gameLevel / 100);
if (a == 0) {
this._visible = false;
} else {
this._visible = true;
this.gotoAndStop("a" + a);
}
}
Instance of Symbol 247 MovieClip "digit10" in Frame 180
onClipEvent (load) {
begX = 315;
}
onClipEvent (enterFrame) {
if (_root.gameLevel < 10) {
this._visible = false;
} else {
this._visible = true;
}
if (_root.gameLevel < 100) {
this._x = begX - 15;
}
var a = int(_root.gameLevel / 10);
if (a >= 10) {
while (a >= 10) {
a = a - 10;
}
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 180
onClipEvent (load) {
begX = 330;
}
onClipEvent (enterFrame) {
if (_root.gameLevel < 10) {
this._x = begX - 30;
} else if (_root.gameLevel < 100) {
this._x = begX - 15;
}
var a = int(_root.gameLevel);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 180
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 1000000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 180
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 100000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 180
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 10000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 180
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 1000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 180
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 100);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 180
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 10);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 180
onClipEvent (enterFrame) {
var a = int(_root.totalScore);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 250 MovieClip in Frame 180
onClipEvent (enterFrame) {
this._xscale = 100 - ((_root.health / _root.maxHealth) * 100);
}
Instance of Symbol 252 MovieClip "overlayA" in Frame 180
onClipEvent (enterFrame) {
if (_root.health <= 0) {
_root.bg.removeMovieClip();
_root.santa.removeMovieClip();
_root.glow.removeMovieClip();
_root.overlayA.removeMovieClip();
_root.musicTheme.stop();
_root.flash = true;
_root.gameFrame = false;
_root.gotoAndPlay("youLose");
}
_root.healthvar = ((("" + _root.health) + " / ") + _root.maxHealth) + "";
if ((_root.score - 100) > _root.totalScore) {
_root.totalScore = _root.totalScore + 100;
}
if ((_root.score - 10) > _root.totalScore) {
_root.totalScore = _root.totalScore + 10;
} else {
_root.totalScore = _root.score;
}
if (_root.health != _root.tempHealth) {
if ((_root.health - 100) > _root.tempHealth) {
_root.health = _root.health - 100;
}
if ((_root.health - 10) > _root.tempHealth) {
_root.health = _root.health - 10;
} else {
_root.health = _root.tempHealth;
}
}
}
Frame 182
if (_root.gameLevel > 999) {
_root.gotoAndPlay("youWin");
}
_root.healthvarB = ((("" + _root.health) + " HP / ") + _root.maxHealth) + " HP";
_root.healthvarC = "";
stop();
Instance of Symbol 50 MovieClip "fadeIn" in Frame 182
onClipEvent (load) {
this.swapDepths(1000002);
}
onClipEvent (enterFrame) {
if (_root.flash == true) {
_root.flash = false;
this.gotoAndPlay("go");
}
}
Instance of Symbol 247 MovieClip "digit1" in Frame 182
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 1000000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 182
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 100000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 182
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 10000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 182
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 1000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 182
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 100);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 182
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 10);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 182
onClipEvent (enterFrame) {
var a = int(_root.totalScore);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 295 MovieClip "control2" in Frame 182
onClipEvent (load) {
var x;
}
onClipEvent (enterFrame) {
_root.powerBonus = (_root.baseDamage - 10) * 2;
_root.healthvarB = ((("" + _root.health) + " HP / ") + _root.maxHealth) + " HP";
}
Instance of Symbol 298 MovieClip in Frame 182
onClipEvent (enterFrame) {
if (_root.devMode == true) {
if (Key.isDown(38)) {
_root.gameLevel = _root.gameLevel + 1;
}
if (Key.isDown(16)) {
_root.money = _root.money + 10;
}
}
}
Instance of Symbol 247 MovieClip "digit100" in Frame 182
onClipEvent (enterFrame) {
var a = int(_root.gameLevel / 100);
if (a == 0) {
this._visible = false;
} else {
this._visible = true;
this.gotoAndStop("a" + a);
}
}
Instance of Symbol 247 MovieClip "digit10" in Frame 182
onClipEvent (enterFrame) {
var a = int(_root.gameLevel / 10);
if (a >= 10) {
while (a >= 10) {
a = a - 10;
}
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 182
onClipEvent (enterFrame) {
var a = int(_root.gameLevel);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 300 MovieClip in Frame 182
onClipEvent (enterFrame) {
if (Key.isDown(17)) {
_root.devMode = true;
} else {
_root.devMode = false;
}
}
Frame 184
stop();
Frame 186
_root.deadText = ("You made it to Level " + _root.gameLevel) + ".";
stop();
Instance of Symbol 247 MovieClip "digit1" in Frame 186
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 1000000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 186
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 100000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 186
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 10000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 186
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 1000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 186
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 100);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 186
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 10);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 186
onClipEvent (enterFrame) {
var a = int(_root.totalScore);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Frame 187
stop();
Instance of Symbol 50 MovieClip "fadeIn" in Frame 187
onClipEvent (load) {
this.swapDepths(1000002);
}
onClipEvent (enterFrame) {
if (_root.flash == true) {
_root.flash = false;
this.gotoAndPlay("go");
}
}
Instance of Symbol 247 MovieClip "digit1" in Frame 187
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 1000000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 187
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 100000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 187
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 10000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 187
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 1000);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 187
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 100);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 187
onClipEvent (enterFrame) {
var a = int(_root.totalScore / 10);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Instance of Symbol 247 MovieClip "digit1" in Frame 187
onClipEvent (enterFrame) {
var a = int(_root.totalScore);
while (a >= 10) {
a = a - 10;
}
this.gotoAndStop("a" + a);
}
Symbol 45 MovieClip Frame 115
_root.gotoAndPlay("next");
Symbol 48 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
Symbol 50 MovieClip Frame 5
stop();
Symbol 93 Button
on (release) {
gotoAndPlay ("gameStart");
}
Symbol 98 Button
on (release) {
getURL ("http://www.mercurylime.net/games/DefendNorth/viewScores.php", "_scoreSub");
}
Symbol 99 Button
on (release) {
_root.gotoAndPlay("instructions");
}
Symbol 100 Button
on (release) {
_root.gotoAndPlay("gameStart");
}
Symbol 105 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
Symbol 134 MovieClip Frame 10
gotoAndPlay ("running");
Symbol 134 MovieClip Frame 11
stop();
Symbol 134 MovieClip Frame 13
stop();
Symbol 134 MovieClip Frame 20
this.canBeAttacked = true;
gotoAndPlay ("running");
Symbol 134 MovieClip Frame 21
_root.money = _root.money + 1;
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 11
if (this.running == true) {
gotoAndPlay ("run");
} else if (this.standing == true) {
gotoAndPlay ("stance");
}
Symbol 152 MovieClip Frame 17
_root.canDie = true;
Symbol 152 MovieClip Frame 19
_root.canDie = false;
Symbol 152 MovieClip Frame 24
attacking = false;
standing = true;
running = false;
gotoAndPlay ("stance");
Symbol 166 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 2
this.canBeAttacked = true;
Symbol 185 MovieClip Frame 10
gotoAndPlay ("running");
Symbol 185 MovieClip Frame 11
stop();
Symbol 185 MovieClip Frame 13
stop();
Symbol 185 MovieClip Frame 20
this.canBeAttacked = true;
gotoAndPlay ("running");
Symbol 185 MovieClip Frame 21
_root.money = _root.money + 3;
Symbol 204 MovieClip Frame 10
gotoAndPlay ("running");
Symbol 204 MovieClip Frame 11
stop();
Symbol 204 MovieClip Frame 13
stop();
Symbol 204 MovieClip Frame 20
this.canBeAttacked = true;
gotoAndPlay ("running");
Symbol 204 MovieClip Frame 21
_root.money = _root.money + 5;
Symbol 223 MovieClip Frame 10
gotoAndPlay ("running");
Symbol 223 MovieClip Frame 11
stop();
Symbol 223 MovieClip Frame 13
stop();
Symbol 223 MovieClip Frame 20
this.canBeAttacked = true;
gotoAndPlay ("running");
Symbol 223 MovieClip Frame 21
_root.money = _root.money + 10;
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 2
stop();
Symbol 247 MovieClip Frame 3
stop();
Symbol 247 MovieClip Frame 4
stop();
Symbol 247 MovieClip Frame 5
stop();
Symbol 247 MovieClip Frame 6
stop();
Symbol 247 MovieClip Frame 7
stop();
Symbol 247 MovieClip Frame 8
stop();
Symbol 247 MovieClip Frame 9
stop();
Symbol 247 MovieClip Frame 10
stop();
Symbol 267 Button
on (rollOver) {
_root.healthvarC = "Heals 100 health.";
}
on (rollOut) {
_root.healthvarC = "";
}
on (release) {
if (_root.money >= 1) {
_root.buyItem.start();
_root.money = _root.money - 1;
if ((_root.health + 100) <= _root.maxHealth) {
_root.tempHealth = _root.tempHealth + 100;
_root.health = _root.health + 100;
} else {
_root.health = _root.maxHealth;
_root.tempHealth = _root.maxHealth;
}
}
}
Symbol 274 Button
on (rollOver) {
_root.healthvarC = "Increase maximum health.";
}
on (rollOut) {
_root.healthvarC = "";
}
on (release) {
if (_root.money >= 10) {
_root.buyItem.start();
_root.money = _root.money - 10;
_root.tempHealth = _root.tempHealth + 100;
_root.maxHealth = _root.maxHealth + 100;
_root.health = _root.health + 100;
}
}
Symbol 280 Button
on (rollOver) {
_root.healthvarC = "Make santa more powerful!";
}
on (rollOut) {
_root.healthvarC = "";
}
on (release) {
if (_root.money >= _root.powerUpCost) {
_root.buyItem.start();
_root.money = _root.money - _root.powerUpCost;
_root.maxSpeed = _root.maxSpeed + 0.2;
_root.baseDamage = _root.baseDamage + 0.5;
_root.santaScale = _root.santaScale + 5;
_root.powerUpCost = _root.powerUpCost + 10;
}
}
Symbol 287 Button
on (release) {
_root.gameFrame = true;
_root.gotoAndPlay("gameNormal");
_root.gameLevel = _root.gameLevel + 1;
_root.levelTimer = _root.levelReload;
_root.canDuplicate = true;
_root.fadeIn.gotoAndPlay("go");
_root.flash = true;
}
Symbol 290 Button
on (release) {
this.gotoAndPlay("menu");
}
Symbol 307 Button
on (release) {
_root.gotoAndPlay("menu");
}
Symbol 314 Button
on (release) {
_root.gotoAndPlay("highScore");
}
Symbol 323 Button
on (release) {
getURL (((("http://www.mercurylime.net/games/DefendNorth/scores.php?filename=scores/score.sco&scoresize=100&action=INSERT&winname=" + _root.name) + "&winscore=") + _root.totalScore) + "&viewtype=HTML", "_scoreSub", "POST");
_root.gotoAndPlay("menu");
}