Frame 1
function doSomething() {
_quality = "HIGH";
}
function doSomething2() {
_quality = "MEDIUM";
}
function doSomething3() {
_quality = "LOW";
}
stop();
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("High", doSomething);
Functioned2 = new ContextMenuItem("Medium", doSomething2);
Functioned3 = new ContextMenuItem("Low", doSomething3);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
MENU.customItems.push(Functioned3);
_root.menu = MENU;
Instance of Symbol 38 MovieClip in Frame 1
onClipEvent (load) {
loaded = false;
}
onClipEvent (enterFrame) {
_root.percent = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_root.percent >= 100) {
_root.pButton._visible = true;
}
}
Instance of Symbol 42 MovieClip "pButton" in Frame 1
onClipEvent (load) {
function begin() {
_root.gotoAndStop("logos");
}
_visible = false;
}
on (press) {
if (_visible) {
begin();
}
}
Frame 2
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;
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);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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);
}
stop();
__com_mochibot__("977c957d", this, 10301, true);
Frame 3
function mochiB() {
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;
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);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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);
}
__com_mochibot__("164d881d", this, 10301, true);
}
stop();
Instance of Symbol 98 MovieClip in Frame 3
on (release) {
getURL ("http://www.corkysurprise.com", "_blank");
}
Frame 4
stop();
Instance of Symbol 106 MovieClip in Frame 4
on (release) {
getURL ("http://www.myspace.com/olliegreen", "_blank");
}
Frame 5
_quality = "MEDIUM";
Instance of Symbol 131 MovieClip in Frame 225
onClipEvent (enterFrame) {
_x = random(2000);
_y = random(2000);
}
Instance of Symbol 133 MovieClip in Frame 225
onClipEvent (enterFrame) {
_x = random(2000);
_y = random(2000);
}
Instance of Symbol 135 MovieClip in Frame 225
onClipEvent (enterFrame) {
_x = random(2000);
_y = random(2000);
}
Instance of Symbol 137 MovieClip in Frame 225
onClipEvent (enterFrame) {
_x = random(2000);
_y = random(2000);
}
Instance of Symbol 139 MovieClip in Frame 225
onClipEvent (enterFrame) {
_x = random(2000);
_y = random(2000);
}
Instance of Symbol 141 MovieClip in Frame 225
onClipEvent (enterFrame) {
_x = random(800);
}
Instance of Symbol 181 MovieClip in Frame 768
onClipEvent (enterFrame) {
_rotation = (_rotation + 20);
_y = (_y + 5);
}
Instance of Symbol 181 MovieClip in Frame 768
onClipEvent (enterFrame) {
_rotation = (_rotation + 15);
_y = (_y + 5);
}
Instance of Symbol 181 MovieClip in Frame 768
onClipEvent (enterFrame) {
_rotation = (_rotation + 6);
_y = (_y + 3);
}
Frame 1238
stopAllSounds();
Frame 1240
_root.play();
Frame 1241
stop();
_root.createEmptyMovieClip("musicHolder", 5999);
if (_root.gamemusicmenu == undefined) {
music = new Sound(musicHolder);
music.attachSound("menumusic");
music.start(0, 99999);
_root.gamemusicmenu = 1;
}
Instance of Symbol 193 MovieClip in Frame 1241
onClipEvent (load) {
function updateInfo() {
deltaX = _x - _root._xmouse;
deltaY = _y - _root._ymouse;
angle = -Math.atan2(deltaX, deltaY);
mouseAngle = Math.round((angle * 180) / Math.PI);
filter1.angle = mouseAngle + 90;
this.filters = [filter1];
}
filter1 = new flash.filters.DropShadowFilter();
filter1.blurX = 50;
filter1.blurY = 50;
filter1.quality = 1;
filter1.distance = 40;
filter1.color = 0;
filter1.strength = 3;
filter1.angle = 0;
this.filters = [filter1];
}
onClipEvent (enterFrame) {
updateInfo();
}
Instance of Symbol 203 MovieClip in Frame 1241
onClipEvent (load) {
function updateInfo() {
deltaX = _x - _root._xmouse;
deltaY = _y - _root._ymouse;
angle = -Math.atan2(deltaX, deltaY);
mouseAngle = Math.round((angle * 180) / Math.PI);
filter1.angle = mouseAngle + 90;
this.filters = [filter1];
}
filter1 = new flash.filters.DropShadowFilter();
filter1.blurX = 5;
filter1.blurY = 5;
filter1.quality = 1;
filter1.distance = 2;
filter1.color = 0;
filter1.strength = 1;
filter1.angle = 0;
this.filters = [filter1];
}
onClipEvent (enterFrame) {
updateInfo();
}
Instance of Symbol 209 MovieClip in Frame 1241
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.fade.play();
_root.frameTarget = 1;
}
Instance of Symbol 212 MovieClip in Frame 1241
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.fade.play();
_root.frameTarget = "tutorial";
}
Instance of Symbol 218 MovieClip "menu" in Frame 1241
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.fade.play();
_root.frameTarget = "credits";
}
Instance of Symbol 229 MovieClip in Frame 1242
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.fade.play();
_root.frameTarget = "menu";
}
Instance of Symbol 233 MovieClip in Frame 1242
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.fade.play();
_root.frameTarget = "credfull";
}
Frame 1244
function checkpoint() {
_root.level = _root.lastPoint;
if (_root.level == 1) {
_root.button1 = false;
}
if (_root.level == 5) {
_root.door1 = false;
_root.door2 = false;
}
if (_root.level == 10) {
_root.door3 = false;
_root.door4 = false;
_root.button2 = false;
}
if (_root.level == 15) {
root.door4 = false;
_root.button3 = false;
}
if (_root.level == 20) {
_root.door5 = false;
}
_root.santa.resetDead();
bg.gotoAndStop(_root.level);
transB.update();
trans.update();
music();
}
function music() {
Gmusic = new Sound();
Gmusic.stop();
Gmusic.attachSound("music2");
Gmusic.start(0, 99999);
}
function nextStage() {
_root.doors = [""];
if (_root.level == 7) {
nextZone(1);
return(undefined);
}
if (_root.level == 11) {
nextZone(2);
return(undefined);
}
if (_root.level == 16) {
nextZone(3);
return(undefined);
}
if (_root.level == 21) {
nextZone(4);
return(undefined);
}
santa.reset();
santa._x = 16;
if ((_root.level == 13) or (_root.level == 19)) {
santa.telecheck();
}
transB.update();
bg.nextFrame();
_root.bg._visible = true;
}
function prevStage() {
_root.doors = [""];
santa.reset();
santa._x = 688;
trans.update();
bg.prevFrame();
_root.bg._visible = true;
}
function nextZone(number) {
trace(_root.zoneNumber);
if (number == 1) {
santa.reset();
santa._y = 100;
santa._x = 100;
transB.update();
bg.nextFrame();
_root.bg._visible = true;
}
if (number == 2) {
santa.reset();
santa._y = 100;
santa._x = 100;
transB.update();
bg.nextFrame();
_root.bg._visible = true;
}
if (number == 3) {
santa.reset();
santa._y = 100;
santa._x = 184;
transB.update();
bg.nextFrame();
_root.bg._visible = true;
}
if (number == 4) {
santa.reset();
santa._y = 0;
santa._x = 646;
transB.update();
bg.nextFrame();
_root.bg._visible = true;
}
}
stopAllSounds();
_root.lastPoint = 1;
music();
_root.level = 1;
_root.sfx1 = false;
_root.doors = new Array();
Instance of Symbol 241 MovieClip "hellBG" in Frame 1244
onClipEvent (load) {
function update() {
if (_root.level == 6) {
this.gotoAndStop(2);
}
if (_root.level == 11) {
this.gotoAndStop(3);
}
if (_root.level == 16) {
this.gotoAndStop(4);
}
if (_root.level == 21) {
this.gotoAndStop(5);
}
}
}
Instance of Symbol 280 MovieClip in Frame 1244
onClipEvent (enterFrame) {
this.gotoAndStop(_root.level);
}
Instance of Symbol 289 MovieClip "bg" in Frame 1244
onClipEvent (load) {
this.gotoAndStop(_root.level);
}
Instance of Symbol 291 MovieClip in Frame 1244
onClipEvent (enterFrame) {
if (!_root.santa.dead) {
if (this.hitTest(_root.santa)) {
_root.trans.play();
}
}
}
Instance of Symbol 292 MovieClip in Frame 1244
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa)) {
if (!_root.santa.dead) {
_root.transB.play();
}
}
}
Instance of Symbol 446 MovieClip "santa" in Frame 1244
onClipEvent (load) {
function resetDead() {
grabWall = false;
dead = false;
nn = 0;
_x = 100;
this.gotoAndStop(1);
if (_y > 300) {
_y = 50;
}
}
function reset() {
if (_currentframe == 18) {
this.gotoAndStop(1);
}
if (_currentframe == 4) {
this.gotoAndStop(1);
}
if (_currentframe == 17) {
this.gotoAndStop(1);
}
if (_currentframe == 23) {
this.gotoAndStop(1);
}
if (_currentframe == 24) {
this.gotoAndStop(1);
}
if (_currentframe <= 12) {
this.gotoAndStop(1);
}
if (_currentframe > 13) {
this.gotoAndStop(13);
}
if (_currentframe >= 17) {
this.gotoAndStop(1);
}
}
function checkDir() {
if ((_currentframe == 13) or (_currentframe == 15)) {
if (Key.isDown(37) and (direction == "right")) {
move("roll_turn");
}
if (Key.isDown(39) and (direction == "left")) {
move("roll_turn");
}
}
if ((_currentframe == 13) or (_currentframe == 15)) {
move("roll");
}
if (((((((!(_currentframe === 12)) and (!(_currentframe === 13))) and (!(_currentframe === 14))) and (!(_currentframe === 15))) and (!(_currentframe === 19))) and (!(_currentframe === 20))) and (!(_currentframe === 21))) {
if (Key.isDown(37) and (direction == "left")) {
move("walk");
}
if (Key.isDown(39) and (direction == "right")) {
move("walk");
}
if ((Key.isDown(37) and Key.isDown(shift)) and (direction == "left")) {
move("run");
}
if ((Key.isDown(39) and Key.isDown(shift)) and (direction == "right")) {
move("run");
}
if (Key.isDown(37) and (direction == "right")) {
move("turn");
}
if (Key.isDown(39) and (direction == "left")) {
move("turn");
}
}
}
function move(type) {
if (type == "roll") {
this.gotoAndStop(15);
}
if (type == "roll_turn") {
if (_currentframe == 13) {
this.gotoAndStop(14);
}
}
if (!(_currentframe === 15)) {
if (type == "walk") {
if (onfloor) {
if (!busy) {
this.gotoAndStop(3);
}
}
}
}
if (type == "run") {
if (!busy) {
if (onfloor) {
if (this.walker._currentframe < 5) {
this.gotoAndStop(17);
}
}
}
}
if (type == "turn") {
if (_currentframe == 1) {
this.gotoAndStop(2);
}
}
if (type == "turn") {
if (_currentframe == 13) {
this.gotoAndStop(14);
}
}
}
function jump(amount) {
yspeed = amount;
jumping = true;
}
function climbUp() {
jump(-17);
}
function nudge() {
if (direction == "right") {
_x = (_x + 1);
}
if (direction == "left") {
trace("J");
_x = (_x - 1);
}
}
function boundary() {
if (direction == "right") {
while (_root.bg.hitTest(_x + (_width / 2), _y, true)) {
trace("right2");
_x = (_x-1);
}
}
if (direction == "left") {
while (_root.bg.hitTest(_x - (_width / 2), _y, true)) {
trace("left2");
_x = (_x+1);
}
}
}
function teleport(scene, x, y) {
teleporting = true;
_root.santa.scene = scene;
_root.santa.targetY = y;
_root.santa.targetX = x;
}
function telecheck() {
if (distance == 0) {
teleporting = false;
_x = targetX;
_y = targetY;
_visible = true;
this.gotoAndStop(1);
}
}
function die(type) {
dead = true;
if (type == "grind") {
if ((((_currentframe == 13) or (_currentframe == 14)) or (_currentframe == 15)) or (_currentframe == 16)) {
this.gotoAndStop(29);
} else if (((!(_currentframe === 27)) and (!(_currentframe === 28))) and (!(_currentframe === 29))) {
this.gotoAndStop(28);
}
}
if (type == "stab") {
if (_y > 280) {
this.gotoAndStop(30);
} else {
this.gotoAndStop(31);
}
}
if (type == "burn") {
this.gotoAndStop(32);
}
if (type == "lava") {
this.gotoAndStop(33);
}
}
closeEdge = 1;
_root.paused = false;
grabWall = false;
walkSpeed = 10;
xScale = _xscale;
left = 37;
right = 39;
shift = 16;
up = 38;
down = 40;
space = 32;
busy = false;
gravity = 1;
yspeed = 0;
jumping = false;
onfloor = false;
hitWall = false;
nn = 0;
}
onClipEvent (enterFrame) {
if (dead) {
nn++;
if (nn > 100) {
_root.deadFade.play();
}
return(undefined);
}
if (teleporting) {
distance = scene - _root.level;
_visible = false;
this.gotoAndStop("blank");
_y = 0;
_x = (_x + 20);
}
_root.lol = _x;
if (_root.paused) {
return(undefined);
}
if (Key.isDown(left) or Key.isDown(right)) {
checkDir();
}
if (_xscale == xScale) {
direction = "right";
}
if (_xscale == (-xScale)) {
direction = "left";
}
if (_currentframe == 8) {
fallDisBarrior = -30;
}
if (((_currentframe == 15) or (_currentframe == 14)) or (_currentframe == 13)) {
fallDisBarrior = -30;
}
if ((((!(_currentframe === 8)) and (!(_currentframe === 15))) and (!(_currentframe === 14))) and (!(_currentframe === 13))) {
fallDisBarrior = 0;
}
if (!grabWall) {
_y = (_y + yspeed);
if (!onfloor) {
yspeed = yspeed + gravity;
}
if (_root.bg.hitTest(_x, (_y + (_height / 2)) - fallDisBarrior, true)) {
onfloor = true;
} else {
onfloor = false;
}
if (_currentframe == 18) {
tempVar = _height / 2;
} else {
tempVar = 0;
}
if (((((!(_currentframe === 15)) and (!(_currentframe === 14))) and (!(_currentframe === 13))) and (!(_currentframe === 19))) and (!(_currentframe === 21))) {
if (_root.bg.hitTest(_x, _y - (_height / 2), true)) {
while (_root.bg.hitTest(_x, (_y - (_height / 2)) + tempVar, true)) {
_y = (_y+1);
}
}
}
if (yspeed >= 0) {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 10, true)) {
_y = (_y-1);
yspeed = 0;
}
}
}
if (direction == "right") {
if (_currentframe == 6) {
if (jumpingAni._currentframe < 35) {
if (_root.bg.hitTest((_x + (_width / 2)) - 20, _y - (_height / 3), true)) {
if (!_root.bg.hitTest((_x + (_width / 2)) - 20, _y - (_height / 2), true)) {
grabWall = true;
}
}
}
}
if (_currentframe == 18) {
if (runjump._currentframe == 13) {
if (_root.bg.hitTest(_x + 5, _y - (_height / 3), true)) {
if (!_root.bg.hitTest(_x - 5, _y - (_height / 3), true)) {
if (!_root.bg.hitTest(_x + 5, _y - (_height / 2), true)) {
grabWall = true;
}
}
}
}
}
}
if (direction == "left") {
if (_currentframe == 6) {
if (jumpingAni._currentframe < 35) {
if (_root.bg.hitTest((_x - (_width / 2)) + 20, _y - (_height / 3), true)) {
if (!_root.bg.hitTest((_x - (_width / 2)) + 20, _y - (_height / 2), true)) {
grabWall = true;
}
}
}
}
if (_currentframe == 18) {
if (runjump._currentframe == 13) {
if (_root.bg.hitTest(_x - 5, _y - (_height / 3), true)) {
if (!_root.bg.hitTest(_x + 5, _y - (_height / 3), true)) {
if (!_root.bg.hitTest(_x - 5, _y - (_height / 2), true)) {
grabWall = true;
}
}
}
}
}
}
_root.OMG = OMGHitWall;
if (grabWall) {
if ((!(_currentframe === 8)) and (!(_currentframe === 9))) {
this.gotoAndStop(7);
}
}
if (_root.bg.hitTest((_x + (_width / 2)) - 10, _y - (_height / 3), true)) {
_root.m = true;
} else {
_root.m = false;
}
if (!_root.bg.hitTest(_x + (_width / 2), (_y - (_height / 3)) - 10, true)) {
_root.b = true;
} else {
_root.b = false;
}
}
Instance of Symbol 449 MovieClip in Frame 1244
onClipEvent (load) {
startX = _x;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.level == 4) {
_visible = true;
} else {
_visible = false;
}
_x = (_x + 3);
if (_x > 680) {
_x = startX;
}
if (this.hitTest(_root.santa)) {
if (_visible) {
_root.santa.die("lava");
}
}
}
Instance of Symbol 291 MovieClip in Frame 1244
onClipEvent (enterFrame) {
if (_root.level == 6) {
if (this.hitTest(_root.santa)) {
_root.frameTarget = "game";
_root.fade.play();
}
}
}
Frame 1245
function checkpoint() {
_root.level = _root.lastPoint;
hellBG.update();
if (_root.level == 1) {
_root.button1 = false;
}
if (_root.level == 5) {
_root.door1 = false;
_root.door2 = false;
}
if (_root.level == 10) {
_root.door3 = false;
_root.door4 = false;
_root.button2 = false;
}
if (_root.level == 15) {
_root.door4 = false;
_root.button3 = false;
}
if (_root.level == 20) {
_root.door5 = false;
}
_root.santa.resetDead();
bg.gotoAndStop(_root.level);
transB.update();
trans.update();
music();
}
function music() {
Gmusic = new Sound();
if (_root.level == 1) {
Gmusic.stop();
Gmusic.attachSound("music1");
}
if (((((_root.level == 5) or (_root.level == 10)) or (_root.level == 15)) or (_root.level == 20)) or (_root.level == 22)) {
Gmusic.stop();
Gmusic.attachSound("ss2");
}
if (_root.level == 6) {
Gmusic.stop();
Gmusic.attachSound("ss1");
}
if (_root.level == 11) {
Gmusic.stop();
Gmusic.attachSound("music2");
}
Gmusic.start(0, 99999);
}
function nextStage() {
music();
_root.doors = [""];
if (_root.level == 6) {
nextZone(1);
return(undefined);
}
if (_root.level == 11) {
nextZone(2);
return(undefined);
}
if (_root.level == 16) {
nextZone(3);
return(undefined);
}
if (_root.level == 21) {
nextZone(4);
return(undefined);
}
santa.reset();
santa._x = 16;
if ((_root.level == 13) or (_root.level == 19)) {
santa.telecheck();
}
transB.update();
bg.nextFrame();
_root.bg._visible = true;
}
function prevStage() {
_root.doors = [""];
santa.reset();
santa._x = 688;
trans.update();
bg.prevFrame();
_root.bg._visible = true;
}
function nextZone(number) {
zonetrans = new Sound();
zonetrans.attachSound("zonetrans");
zonetrans.start();
music(number);
if (number == 1) {
santa.reset();
santa._y = 100;
santa._x = 100;
transB.update();
bg.nextFrame();
_root.bg._visible = true;
}
if (number == 2) {
santa.reset();
santa._y = 100;
santa._x = 100;
transB.update();
bg.nextFrame();
_root.bg._visible = true;
}
if (number == 3) {
santa.reset();
santa._y = 100;
santa._x = 184;
transB.update();
bg.nextFrame();
_root.bg._visible = true;
}
if (number == 4) {
santa.reset();
santa._y = 0;
santa._x = 646;
transB.update();
bg.nextFrame();
_root.bg._visible = true;
}
}
_root.lastPoint = 1;
_root.level = 1;
music();
_root.sfx1 = false;
_root.doors = new Array();
Instance of Symbol 456 MovieClip "hellBG" in Frame 1245
onClipEvent (load) {
function update() {
if (_root.level >= 6) {
this.gotoAndStop(2);
}
if (_root.level >= 11) {
this.gotoAndStop(3);
}
if (_root.level >= 16) {
this.gotoAndStop(4);
}
if (_root.level >= 21) {
this.gotoAndStop(5);
}
}
}
Instance of Symbol 567 MovieClip in Frame 1245
onClipEvent (enterFrame) {
_visible = _root.bg._visible;
this.gotoAndStop(_root.level);
}
Instance of Symbol 629 MovieClip "bg" in Frame 1245
onClipEvent (load) {
this.gotoAndStop(_root.level);
}
Instance of Symbol 446 MovieClip "santa" in Frame 1245
onClipEvent (load) {
function resetDead() {
grabWall = false;
dead = false;
nn = 0;
_x = 100;
this.gotoAndStop(1);
if (_y > 400) {
_y = 150;
}
}
function reset() {
if (_currentframe == 18) {
this.gotoAndStop(1);
}
if (_currentframe == 4) {
this.gotoAndStop(1);
}
if (_currentframe == 17) {
this.gotoAndStop(1);
}
if (_currentframe == 23) {
this.gotoAndStop(1);
}
if (_currentframe == 24) {
this.gotoAndStop(1);
}
if (_currentframe <= 12) {
this.gotoAndStop(1);
}
if (_currentframe > 13) {
this.gotoAndStop(13);
}
if (_currentframe >= 17) {
this.gotoAndStop(1);
}
}
function checkDir() {
if ((_currentframe == 13) or (_currentframe == 15)) {
if (Key.isDown(37) and (direction == "right")) {
move("roll_turn");
}
if (Key.isDown(39) and (direction == "left")) {
move("roll_turn");
}
}
if ((_currentframe == 13) or (_currentframe == 15)) {
move("roll");
}
if (((((((!(_currentframe === 12)) and (!(_currentframe === 13))) and (!(_currentframe === 14))) and (!(_currentframe === 15))) and (!(_currentframe === 19))) and (!(_currentframe === 20))) and (!(_currentframe === 21))) {
if (Key.isDown(37) and (direction == "left")) {
move("walk");
}
if (Key.isDown(39) and (direction == "right")) {
move("walk");
}
if ((Key.isDown(37) and Key.isDown(shift)) and (direction == "left")) {
move("run");
}
if ((Key.isDown(39) and Key.isDown(shift)) and (direction == "right")) {
move("run");
}
if (Key.isDown(37) and (direction == "right")) {
move("turn");
}
if (Key.isDown(39) and (direction == "left")) {
move("turn");
}
}
}
function move(type) {
if (type == "roll") {
this.gotoAndStop(15);
}
if (type == "roll_turn") {
if (_currentframe == 13) {
this.gotoAndStop(14);
}
}
if (!(_currentframe === 15)) {
if (type == "walk") {
if (onfloor) {
if (!busy) {
this.gotoAndStop(3);
}
}
}
}
if (type == "run") {
if (!busy) {
if (onfloor) {
if (this.walker._currentframe < 5) {
this.gotoAndStop(17);
}
}
}
}
if (type == "turn") {
if (_currentframe == 1) {
this.gotoAndStop(2);
}
}
if (type == "turn") {
if (_currentframe == 13) {
this.gotoAndStop(14);
}
}
}
function jump(amount) {
yspeed = amount;
jumping = true;
}
function climbUp() {
jump(-17);
}
function nudge() {
if (direction == "right") {
_x = (_x + 1);
}
if (direction == "left") {
trace("J");
_x = (_x - 1);
}
}
function boundary() {
if (direction == "right") {
while (_root.bg.hitTest(_x + (_width / 2), _y, true)) {
trace("right2");
_x = (_x-1);
}
}
if (direction == "left") {
while (_root.bg.hitTest(_x - (_width / 2), _y, true)) {
trace("left2");
_x = (_x+1);
}
}
}
function teleport(scene, x, y) {
teleporting = true;
_root.santa.scene = scene;
_root.santa.targetY = y;
_root.santa.targetX = x;
}
function telecheck() {
if (distance == 0) {
teleporting = false;
_x = targetX;
_y = targetY;
_visible = true;
this.gotoAndStop(1);
}
}
function die(type) {
dead = true;
if (type == "grind") {
if ((((_currentframe == 13) or (_currentframe == 14)) or (_currentframe == 15)) or (_currentframe == 16)) {
this.gotoAndStop(29);
} else if (((!(_currentframe === 27)) and (!(_currentframe === 28))) and (!(_currentframe === 29))) {
this.gotoAndStop(28);
}
}
if (type == "stab") {
if (_y > 280) {
this.gotoAndStop(30);
} else {
this.gotoAndStop(31);
}
}
if (type == "burn") {
this.gotoAndStop(32);
}
if (type == "lava") {
this.gotoAndStop(33);
}
}
closeEdge = 1;
_root.paused = false;
grabWall = false;
walkSpeed = 10;
xScale = _xscale;
left = 37;
right = 39;
shift = 16;
up = 38;
down = 40;
space = 32;
busy = false;
gravity = 1;
yspeed = 0;
jumping = false;
onfloor = false;
hitWall = false;
nn = 0;
}
onClipEvent (enterFrame) {
_root.santaX = _x;
if (dead) {
nn++;
if (nn > 100) {
_root.deadFade.play();
}
return(undefined);
}
if (teleporting) {
distance = scene - _root.level;
_visible = false;
this.gotoAndStop("blank");
_y = 0;
_x = (_x + 20);
}
_root.lol = _x;
if (_root.paused) {
return(undefined);
}
if (Key.isDown(left) or Key.isDown(right)) {
checkDir();
}
if (_xscale == xScale) {
direction = "right";
}
if (_xscale == (-xScale)) {
direction = "left";
}
if (_currentframe == 8) {
fallDisBarrior = -30;
}
if (((_currentframe == 15) or (_currentframe == 14)) or (_currentframe == 13)) {
fallDisBarrior = -30;
}
if ((((!(_currentframe === 8)) and (!(_currentframe === 15))) and (!(_currentframe === 14))) and (!(_currentframe === 13))) {
fallDisBarrior = 0;
}
if (!grabWall) {
_y = (_y + yspeed);
if (!onfloor) {
yspeed = yspeed + gravity;
}
if (_root.bg.hitTest(_x, (_y + (_height / 2)) - fallDisBarrior, true)) {
onfloor = true;
} else {
onfloor = false;
}
if (_currentframe == 18) {
tempVar = _height / 2;
} else {
tempVar = 0;
}
if (((((!(_currentframe === 15)) and (!(_currentframe === 14))) and (!(_currentframe === 13))) and (!(_currentframe === 19))) and (!(_currentframe === 21))) {
if (_root.bg.hitTest(_x, _y - (_height / 2), true)) {
while (_root.bg.hitTest(_x, (_y - (_height / 2)) + tempVar, true)) {
_y = (_y+1);
}
}
}
if (yspeed >= 0) {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) - 10, true)) {
_y = (_y-1);
yspeed = 0;
}
}
}
if (direction == "right") {
if (_currentframe == 6) {
if (jumpingAni._currentframe < 35) {
if (_root.bg.hitTest((_x + (_width / 2)) - 20, _y - (_height / 3), true)) {
if (!_root.bg.hitTest((_x + (_width / 2)) - 20, _y - (_height / 2), true)) {
grabWall = true;
}
}
}
}
if (_currentframe == 18) {
if (runjump._currentframe == 13) {
if (_root.bg.hitTest(_x + 5, _y - (_height / 3), true)) {
if (!_root.bg.hitTest(_x - 5, _y - (_height / 3), true)) {
if (!_root.bg.hitTest(_x + 5, _y - (_height / 2), true)) {
grabWall = true;
}
}
}
}
}
}
if (direction == "left") {
if (_currentframe == 6) {
if (jumpingAni._currentframe < 35) {
if (_root.bg.hitTest((_x - (_width / 2)) + 20, _y - (_height / 3), true)) {
if (!_root.bg.hitTest((_x - (_width / 2)) + 20, _y - (_height / 2), true)) {
grabWall = true;
}
}
}
}
if (_currentframe == 18) {
if (runjump._currentframe == 13) {
if (_root.bg.hitTest(_x - 5, _y - (_height / 3), true)) {
if (!_root.bg.hitTest(_x + 5, _y - (_height / 3), true)) {
if (!_root.bg.hitTest(_x - 5, _y - (_height / 2), true)) {
grabWall = true;
}
}
}
}
}
}
_root.OMG = OMGHitWall;
if (grabWall) {
if ((!(_currentframe === 8)) and (!(_currentframe === 9))) {
this.gotoAndStop(7);
}
}
if (_root.bg.hitTest((_x + (_width / 2)) - 10, _y - (_height / 3), true)) {
_root.m = true;
} else {
_root.m = false;
}
if (!_root.bg.hitTest(_x + (_width / 2), (_y - (_height / 3)) - 10, true)) {
_root.b = true;
} else {
_root.b = false;
}
}
Instance of Symbol 631 MovieClip in Frame 1245
onClipEvent (enterFrame) {
if (!_root.santa.dead) {
if (this.hitTest(_root.santa)) {
_root.trans.play();
}
}
}
Instance of Symbol 632 MovieClip in Frame 1245
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa)) {
if (!_root.santa.dead) {
_root.transB.play();
}
}
}
Instance of Symbol 641 MovieClip in Frame 1245
onClipEvent (load) {
startX = _x;
}
onClipEvent (enterFrame) {
if ((((((!(_root.level === 4)) and (!(_root.level === 5))) and (!(_root.level === 10))) and (!(_root.level === 15))) and (!(_root.level === 20))) and (!(_root.level === 22))) {
_visible = true;
} else {
_visible = false;
}
_x = (_x + 3);
if (_x > 680) {
_x = startX;
}
if (this.hitTest(_root.santa)) {
if ((_root.level == 3) or (_root.level == 9)) {
if (_visible) {
_root.santa.die("lava");
}
}
}
}
Instance of Symbol 631 MovieClip in Frame 1245
onClipEvent (enterFrame) {
if ((((_root.level == 5) or (_root.level == 10)) or (_root.level == 15)) or (_root.level == 20)) {
if (this.hitTest(_root.santa)) {
_root.trans.play();
}
}
if (_root.level == 22) {
if (this.hitTest(_root.santa)) {
_root.endGame.play();
}
}
}
Instance of Symbol 17 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
function addAlpha() {
_alpha = (_alpha + rate);
if (_alpha > 100) {
_alpha = 100;
}
}
_alpha = 0;
p = 9;
rate = 1;
}
onClipEvent (enterFrame) {
if (_root.percent >= p) {
addAlpha();
}
}
Instance of Symbol 19 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
function addAlpha() {
_alpha = (_alpha + rate);
if (_alpha > 100) {
_alpha = 100;
}
}
_alpha = 0;
p = 18;
rate = 1;
}
onClipEvent (enterFrame) {
if (_root.percent >= p) {
addAlpha();
}
}
Instance of Symbol 21 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
function addAlpha() {
_alpha = (_alpha + rate);
if (_alpha > 100) {
_alpha = 100;
}
}
_alpha = 0;
p = 27;
rate = 1;
}
onClipEvent (enterFrame) {
if (_root.percent >= p) {
addAlpha();
}
}
Instance of Symbol 23 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
function addAlpha() {
_alpha = (_alpha + rate);
if (_alpha > 100) {
_alpha = 100;
}
}
_alpha = 0;
p = 36;
rate = 1;
}
onClipEvent (enterFrame) {
if (_root.percent >= p) {
addAlpha();
}
}
Instance of Symbol 25 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
function addAlpha() {
_alpha = (_alpha + rate);
if (_alpha > 100) {
_alpha = 100;
}
}
_alpha = 0;
p = 45;
rate = 1;
}
onClipEvent (enterFrame) {
if (_root.percent >= p) {
addAlpha();
}
}
Instance of Symbol 27 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
function addAlpha() {
_alpha = (_alpha + rate);
if (_alpha > 100) {
_alpha = 100;
}
}
_alpha = 0;
p = 54;
rate = 1;
}
onClipEvent (enterFrame) {
if (_root.percent >= p) {
addAlpha();
}
}
Instance of Symbol 29 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
function addAlpha() {
_alpha = (_alpha + rate);
if (_alpha > 100) {
_alpha = 100;
}
}
_alpha = 0;
p = 63;
rate = 1;
}
onClipEvent (enterFrame) {
if (_root.percent >= p) {
addAlpha();
}
}
Instance of Symbol 31 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
function addAlpha() {
_alpha = (_alpha + rate);
if (_alpha > 100) {
_alpha = 100;
}
}
_alpha = 0;
p = 72;
rate = 1;
}
onClipEvent (enterFrame) {
if (_root.percent >= p) {
addAlpha();
}
}
Instance of Symbol 33 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
function addAlpha() {
_alpha = (_alpha + rate);
if (_alpha > 100) {
_alpha = 100;
}
}
_alpha = 0;
p = 81;
rate = 1;
}
onClipEvent (enterFrame) {
if (_root.percent >= p) {
addAlpha();
}
}
Instance of Symbol 35 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
function addAlpha() {
_alpha = (_alpha + rate);
if (_alpha > 100) {
_alpha = 100;
}
}
_alpha = 0;
p = 90;
rate = 1;
}
onClipEvent (enterFrame) {
if (_root.percent >= p) {
addAlpha();
}
}
Instance of Symbol 37 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) {
function addAlpha() {
_alpha = (_alpha + rate);
if (_alpha > 100) {
_alpha = 100;
}
}
_alpha = 0;
p = 99;
rate = 1;
}
onClipEvent (enterFrame) {
if (_root.percent >= p) {
addAlpha();
}
}
Symbol 49 Button
on (press) {
getURL ("http://www.top10sitelist.com", "_blank");
}
Symbol 66 Button
on (press) {
getURL ("http://www.top10sitelist.com", "_blank");
}
Symbol 82 MovieClip Frame 121
_root.play();
Symbol 98 MovieClip Frame 114
_root.play();
Symbol 106 MovieClip Frame 107
_root.play();
Symbol 116 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("lastFrame");
}
Symbol 118 Button
on (release) {
getURL ("http://www.top10sitelist.com", "_blank");
}
Symbol 209 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 2
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 2
stop();
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 2
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 20
if (_root.frameTarget == 1) {
getURL ("http://www.top10sitelist.com", "_blank");
return(undefined);
}
_root.gotoAndStop(_root.frameTarget);
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 2
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 2
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 2
_root.santa.gotoAndStop(26);
Symbol 269 MovieClip Frame 15
if (!_root.door1) {
if (_root.level == 7) {
i = 0;
while (i <= _root.doors.length) {
_root.doors[i].play();
i++;
}
}
}
if (!_root.door2) {
if (_root.level == 9) {
i = 0;
while (i <= _root.doors.length) {
_root.doors[i].play();
i++;
}
}
}
if (!_root.door3) {
if (_root.level == 12) {
i = 0;
while (i <= _root.doors.length) {
_root.doors[i].play();
i++;
}
}
}
Symbol 269 MovieClip Frame 18
check();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 2
stop();
Instance of Symbol 277 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 279 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
stop();
Symbol 280 MovieClip Frame 3
stop();
Instance of Symbol 269 MovieClip in Symbol 280 MovieClip Frame 5
onClipEvent (load) {
function check() {
_parent.comet.play();
}
}
onClipEvent (enterFrame) {
if (Key.isDown(_root.santa.space)) {
if (this.hitTest(_root.santadoor)) {
if (_root.santa.direction == "right") {
if ((_root.santa._currentframe == 1) or (_root.santa._currentframe == 26)) {
this.play();
}
}
}
}
}
Instance of Symbol 279 MovieClip in Symbol 280 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa.jumpingAni)) {
if ((_root.santa.jumpingAni._currentframe > 24) and (_root.santa.jumpingAni._currentframe < 30)) {
this.gotoAndStop(2);
}
}
}
Symbol 289 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 284
_root.play();
Symbol 300 MovieClip Frame 1
function update() {
b.gotoAndStop(_root.level + 1);
_root.hellBG.nextBG();
}
stop();
_visible = false;
Instance of Symbol 289 MovieClip "lol" in Symbol 300 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.level);
}
Instance of Symbol 289 MovieClip "b" in Symbol 300 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.level + 1);
}
Symbol 300 MovieClip Frame 2
_root.level++;
_visible = true;
_root.bg._visible = false;
Instance of Symbol 289 MovieClip "lol" in Symbol 300 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.level - 1);
}
Symbol 300 MovieClip Frame 5
if ((((_root.level == 6) or (_root.level == 11)) or (_root.level == 16)) or (_root.level == 21)) {
_root.hellBG.update();
}
Symbol 300 MovieClip Frame 12
_visible = false;
_root.nextStage();
Instance of Symbol 289 MovieClip "b" in Symbol 300 MovieClip Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.level + 1);
}
Symbol 301 MovieClip Frame 1
function update() {
m.gotoAndStop(_root.level);
lol.gotoAndStop(_root.level - 1);
}
stop();
_visible = false;
Instance of Symbol 289 MovieClip "m" in Symbol 301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.level);
}
Instance of Symbol 289 MovieClip "lol" in Symbol 301 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.level - 1);
}
Symbol 301 MovieClip Frame 2
_root.level--;
_visible = true;
_root.bg._visible = false;
Symbol 301 MovieClip Frame 12
_visible = false;
_root.prevStage();
Instance of Symbol 289 MovieClip "lol" in Symbol 301 MovieClip Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.level - 1);
}
Symbol 304 MovieClip Frame 1
_root.santadoor = this;
Symbol 337 MovieClip Frame 6
function doIt(xscale) {
if (xscale == 1) {
_parent._xscale = -_parent.xScale;
}
if (xscale == 2) {
_parent._xscale = _parent.xScale;
}
_parent.gotoAndStop(1);
}
if (_parent.direction == "right") {
_parent.direction = "left";
doIt(1);
}
if (_parent.direction == "left") {
_parent.direction = "right";
doIt(2);
}
Symbol 339 MovieClip Frame 1
_parent.busy = false;
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest(_x + (_width / 2), _y - 5, true)) {
_root.santa.gotoAndStop(20);
return(undefined);
}
}
if (direction == "left") {
if (_root.bg.hitTest(_x - (_width / 2), _y - 5, true)) {
_root.santa.gotoAndStop(20);
return(undefined);
}
}
}
Symbol 339 MovieClip Frame 2
_parent.busy = true;
Symbol 339 MovieClip Frame 13
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest(_x + (_width / 2), _y - 5, true)) {
_root.santa.gotoAndStop(20);
return(undefined);
}
}
if (direction == "left") {
if (_root.bg.hitTest(_x - (_width / 2), _y - 5, true)) {
_root.santa.gotoAndStop(20);
return(undefined);
}
}
}
_parent.busy = false;
if (!Key.isDown(_parent.right)) {
if (_parent.direction == "right") {
_parent.gotoAndStop(1);
}
}
if (!Key.isDown(_parent.left)) {
if (_parent.direction == "left") {
_parent.gotoAndStop(1);
}
}
if (Key.isDown(_parent.shift)) {
if (Key.isDown(_parent.right)) {
if (_parent.direction == "right") {
_parent.busy = true;
_parent.gotoAndStop(4);
}
}
if (Key.isDown(_parent.left)) {
if (_parent.direction == "left") {
_parent.busy = true;
_parent.gotoAndStop(4);
}
}
}
Symbol 339 MovieClip Frame 14
_parent.busy = true;
Symbol 339 MovieClip Frame 25
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest(_x + (_width / 2), _y - 5, true)) {
_root.santa.gotoAndStop(20);
return(undefined);
}
}
if (direction == "left") {
if (_root.bg.hitTest(_x - (_width / 2), _y - 5, true)) {
_root.santa.gotoAndStop(20);
return(undefined);
}
}
}
_parent.busy = false;
if (!Key.isDown(_parent.right)) {
if (_parent.direction == "right") {
_parent.gotoAndStop(1);
}
}
if (!Key.isDown(_parent.left)) {
if (_parent.direction == "left") {
_parent.gotoAndStop(1);
}
}
if (Key.isDown(_parent.shift)) {
if (Key.isDown(_parent.right)) {
if (_parent.direction == "right") {
_parent.gotoAndStop(4);
}
}
if (Key.isDown(_parent.left)) {
if (_parent.direction == "left") {
_parent.gotoAndStop(4);
}
}
}
gotoAndPlay (1);
Symbol 341 MovieClip Frame 1
if (Key.isDown(_parent.up) and _parent.onfloor) {
_parent.gotoAndStop(18);
}
Symbol 341 MovieClip Frame 13
ok = false;
walk = false;
if (Key.isDown(_parent.up) and _parent.onfloor) {
_parent.gotoAndStop(18);
}
if (Key.isDown(_parent.left)) {
if (Key.isDown(_parent.shift)) {
if (!Key.isDown(_parent.right)) {
if (_parent.onfloor) {
if (_parent.direction == "right") {
_parent.gotoAndStop(5);
}
}
}
}
}
if (Key.isDown(_parent.right)) {
if (Key.isDown(_parent.shift)) {
if (!Key.isDown(_parent.left)) {
if (_parent.onfloor) {
if (_parent.direction == "left") {
_parent.gotoAndStop(5);
}
}
}
}
}
if (!Key.isDown(_parent.right)) {
if (_parent.direction == "right") {
_parent.gotoAndStop(23);
ok = true;
}
}
if (!Key.isDown(_parent.left)) {
if (_parent.direction == "left") {
_parent.gotoAndStop(23);
ok = true;
}
}
if (Key.isDown(_parent.left)) {
if (!Key.isDown(_parent.shift)) {
if (_parent.direction == "left") {
_parent.gotoAndStop(23);
walk = true;
}
}
}
if (Key.isDown(_parent.right)) {
if (!Key.isDown(_parent.shift)) {
if (_parent.direction == "right") {
_parent.gotoAndStop(23);
walk = true;
}
}
}
NANA = 40;
if (Key.isDown(_parent.right)) {
if (Key.isDown(_parent.down)) {
if (!Key.isDown(_parent.left)) {
if (_parent.direction == "right") {
if (!_root.bg.hitTest(_root.santa._x + NANA, _root.santa._y, true)) {
_parent.gotoAndStop(25);
}
}
}
}
}
if (Key.isDown(_parent.left)) {
if (Key.isDown(_parent.down)) {
if (!Key.isDown(_parent.right)) {
if (_parent.direction == "left") {
_parent.gotoAndStop(25);
}
}
}
}
if (!ok) {
if (!(Key.isDown(_parent.left) or Key.isDown(_parent.right))) {
gotoAndPlay (29);
}
}
Symbol 341 MovieClip Frame 25
ok = false;
walk = false;
if (Key.isDown(_parent.up) and _parent.onfloor) {
_parent.gotoAndStop(18);
}
if (Key.isDown(_parent.left)) {
if (Key.isDown(_parent.shift)) {
if (!Key.isDown(_parent.right)) {
if (_parent.onfloor) {
if (_parent.direction == "right") {
_parent.gotoAndStop(5);
}
}
}
}
}
if (Key.isDown(_parent.right)) {
if (Key.isDown(_parent.shift)) {
if (!Key.isDown(_parent.left)) {
if (_parent.onfloor) {
if (_parent.direction == "left") {
_parent.gotoAndStop(5);
}
}
}
}
}
if (!Key.isDown(_parent.right)) {
if (_parent.direction == "right") {
_parent.gotoAndStop(24);
ok = true;
}
}
if (!Key.isDown(_parent.left)) {
if (_parent.direction == "left") {
_parent.gotoAndStop(24);
ok = true;
}
}
if (Key.isDown(_parent.left)) {
if (!Key.isDown(_parent.shift)) {
if (_parent.direction == "left") {
_parent.gotoAndStop(24);
walk = true;
}
}
}
if (Key.isDown(_parent.right)) {
if (!Key.isDown(_parent.shift)) {
if (_parent.direction == "right") {
_parent.gotoAndStop(24);
walk = true;
}
}
}
NANA = 40;
if (Key.isDown(_parent.right)) {
if (Key.isDown(_parent.down)) {
if (!Key.isDown(_parent.left)) {
if (_parent.direction == "right") {
if (!_root.bg.hitTest(_root.santa._x + NANA, _root.santa._y, true)) {
_parent.gotoAndStop(25);
}
}
}
}
}
if (Key.isDown(_parent.left)) {
if (Key.isDown(_parent.down)) {
if (!Key.isDown(_parent.right)) {
if (_parent.direction == "left") {
_parent.gotoAndStop(25);
}
}
}
}
if (!ok) {
if (!Key.isDown(_parent.shift)) {
gotoAndPlay (29);
} else {
gotoAndPlay (1);
}
}
Symbol 346 MovieClip Frame 19
function doIt(xscale) {
if (xscale == 1) {
_parent._xscale = -_parent.xScale;
}
if (xscale == 2) {
_parent._xscale = _parent.xScale;
}
_parent.gotoAndStop(4);
}
if (_parent.direction == "right") {
_parent.direction = "left";
doIt(1);
}
if (_parent.direction == "left") {
_parent.direction = "right";
doIt(2);
}
Symbol 347 MovieClip Frame 11
_parent.jump(-14);
Symbol 347 MovieClip Frame 48
_parent.gotoAndStop(1);
Symbol 349 MovieClip Frame 1
_parent.jump(5);
_parent.grabWall = false;
_parent.OMGHitWall = false;
Symbol 349 MovieClip Frame 3
if (_parent.onfloor) {
gotoAndPlay(nextFrame);
} else {
gotoAndPlay (2);
}
Symbol 349 MovieClip Frame 16
_parent.hitWall = false;
_parent.OMGHitWall = false;
_parent.gotoAndStop(1);
Symbol 351 MovieClip Frame 1
_parent.grabWall = false;
_parent.climbUp();
_parent.OMGHitWall = false;
Symbol 351 MovieClip Frame 43
_parent.OMGHitWall = false;
_parent.gotoAndStop(1);
Symbol 352 MovieClip Frame 12
_parent.jump(0);
Symbol 352 MovieClip Frame 23
_parent.grabWall = true;
_parent.busy = true;
_parent.gotoAndStop(7);
Symbol 353 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 354 MovieClip Frame 12
_parent.gotoAndStop(13);
Symbol 364 MovieClip Frame 8
function doIt(xscale) {
if (xscale == 1) {
_parent._xscale = -_parent.xScale;
}
if (xscale == 2) {
_parent._xscale = _parent.xScale;
}
_parent.gotoAndStop(13);
}
if (_parent.direction == "right") {
_parent.direction = "left";
doIt(1);
}
if (_parent.direction == "left") {
_parent.direction = "right";
doIt(2);
}
Symbol 365 MovieClip Frame 1
function m() {
walkSpeed = 0;
}
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest(_x + (_width / 2), _y + 20, true)) {
m();
}
}
if (direction == "left") {
if (_root.bg.hitTest(_x - (_width / 2), _y + 20, true)) {
m();
}
}
}
Symbol 365 MovieClip Frame 8
function m() {
walkSpeed = 0;
}
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest(_x + (_width / 2), _y + 20, true)) {
m();
}
}
if (direction == "left") {
if (_root.bg.hitTest(_x - (_width / 2), _y + 20, true)) {
m();
}
}
}
if (!Key.isDown(_parent.right)) {
if (_parent.direction == "right") {
_parent.gotoAndStop(13);
}
}
if (!Key.isDown(_parent.left)) {
if (_parent.direction == "left") {
_parent.gotoAndStop(13);
}
}
if (_root.santa.direction == "right") {
NANA = 30;
}
if (_root.santa.direction == "left") {
NANA = -30;
}
if (!_root.bg.hitTest(_root.santa._x, _root.santa._y - 200, true)) {
if (!_root.bg.hitTest(_root.santa._x + NANA, _root.santa._y - 50, true)) {
if (Key.isDown(_parent.up)) {
if (Key.isDown(_parent.left)) {
if (Key.isDown(_parent.shift)) {
_parent.gotoAndStop(19);
}
}
if (Key.isDown(_parent.right)) {
if (Key.isDown(_parent.shift)) {
_parent.gotoAndStop(19);
}
}
if (Key.isDown(_parent.left)) {
_parent.gotoAndStop(21);
}
if (Key.isDown(_parent.right)) {
_parent.gotoAndStop(21);
}
}
}
}
gotoAndPlay (1);
Symbol 366 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 367 MovieClip Frame 4
_parent.gotoAndStop(4);
Symbol 368 MovieClip Frame 1
_parent.jump(-12);
Symbol 368 MovieClip Frame 14
if (_root.santa._y <= 200) {
if (_root.santa.yspeed > 10) {
fallDis = 50;
} else {
fallDis = 124;
}
if (_root.santa.direction == "right") {
m = 20;
}
if (_root.santa.direction == "left") {
m = -20;
}
if (_root.bg.hitTest(_root.santa._x + m, _root.santa._y + fallDis, true)) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
}
if (_root.santa._y > 200) {
if (_root.santa.yspeed > 5) {
fallDis = -25;
} else {
fallDis = -100;
}
if (_root.santa.direction == "right") {
m = 100;
}
if (_root.santa.direction == "left") {
m = -100;
}
if (_root.bg.hitTest(_root.santa._x + m, (_root.santa._y + 200) + fallDis, true)) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
}
Symbol 368 MovieClip Frame 30
_parent.gotoAndStop(1);
Symbol 369 MovieClip Frame 9
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest((_x + (_width / 2)) - m, _y + 20, true)) {
m = 0;
}
}
if (direction == "left") {
if (_root.bg.hitTest((_x - (_width / 2)) + m, _y + 20, true)) {
m = 0;
} else {
m = 20;
}
}
}
Symbol 369 MovieClip Frame 15
_parent.busy = true;
_parent.gotoAndStop(4);
Symbol 370 MovieClip Frame 48
if (Key.isDown(_parent.right)) {
if (_parent.direction == "right") {
gotoAndPlay (13);
}
}
if (Key.isDown(_parent.left)) {
if (_parent.direction == "left") {
gotoAndPlay (13);
}
}
Symbol 370 MovieClip Frame 55
_parent.gotoAndStop(1);
Symbol 371 MovieClip Frame 15
_parent.busy = true;
_parent.gotoAndStop(3);
Symbol 373 MovieClip Frame 6
if (walk == true) {
_parent.gotoAndStop(3);
}
_parent.gotoAndStop(1);
Symbol 374 MovieClip Frame 6
if (walk == true) {
_parent.gotoAndStop(3);
}
_parent.gotoAndStop(1);
Symbol 375 MovieClip Frame 7
_parent.gotoAndStop(13);
Symbol 376 MovieClip Frame 22
_parent.gotoAndStop(1);
Symbol 399 MovieClip Frame 23
stop();
Symbol 413 MovieClip Frame 12
stop();
Symbol 414 MovieClip Frame 48
stop();
Symbol 415 MovieClip Frame 19
stop();
Symbol 442 MovieClip Frame 21
stop();
Symbol 445 MovieClip Frame 6
stop();
Symbol 446 MovieClip Frame 1
stop();
busy = false;
newX = _x;
dis = newX - currentX;
Instance of Symbol 327 MovieClip in Symbol 446 MovieClip Frame 1
onClipEvent (load) {
mode = "ad";
}
onClipEvent (enterFrame) {
if (_currentframe == 25) {
if (mode == "ad") {
mode = "back";
}
}
if (_currentframe == 1) {
if (mode == "back") {
mode = "ad";
}
}
if (mode == "ad") {
this.nextFrame();
}
if (mode == "back") {
this.prevFrame();
}
if (Key.isDown(_parent.up)) {
if (_parent.onfloor) {
_parent.gotoAndStop(6);
}
}
if (Key.isDown(_parent.down)) {
if (_parent.onfloor) {
_parent.gotoAndStop(12);
}
}
}
Symbol 446 MovieClip Frame 2
stop();
busy = true;
Symbol 446 MovieClip Frame 3
stop();
busy = true;
Instance of Symbol 339 MovieClip "walker" in Symbol 446 MovieClip Frame 3
onClipEvent (load) {
walkSpeed = 3.5;
_parent.currentX = _parent._x;
}
onClipEvent (enterFrame) {
if (_parent.direction == "right") {
_parent._x = _parent._x + walkSpeed;
}
if (_parent.direction == "left") {
_parent._x = _parent._x - walkSpeed;
}
}
Symbol 446 MovieClip Frame 4
stop();
busy = true;
Instance of Symbol 341 MovieClip in Symbol 446 MovieClip Frame 4
onClipEvent (load) {
function deduct(excessFrame) {
trace(excessFrame);
if (_parent.direction == "right") {
_parent._x = _parent._x - (walkSpeed * excessFrame);
}
if (_parent.direction == "left") {
_parent._x = _parent._x + (walkSpeed * excessFrame);
}
_parent.excessFrame = excessFrame;
}
walkSpeed = 7;
_parent.currentX = _parent._x;
}
onClipEvent (enterFrame) {
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest((_x + (_width / 2)) - 12, _y - 5, true)) {
return(undefined);
}
}
if (direction == "left") {
if (_root.bg.hitTest((_x - (_width / 2)) + 12, _y - 5, true)) {
return(undefined);
}
}
}
if (_parent.direction == "right") {
_parent._x = _parent._x + walkSpeed;
}
if (_parent.direction == "left") {
_parent._x = _parent._x - walkSpeed;
}
if ((_currentframe == 14) or (_currentframe == 2)) {
if (Key.isDown(_parent.up) and _parent.onfloor) {
deduct(1);
_parent.gotoAndStop(18);
}
}
if ((_currentframe == 15) or (_currentframe == 3)) {
if (Key.isDown(_parent.up) and _parent.onfloor) {
deduct(2);
_parent.gotoAndStop(18);
}
}
}
Symbol 446 MovieClip Frame 5
stop();
Instance of Symbol 346 MovieClip in Symbol 446 MovieClip Frame 5
onClipEvent (load) {
function ver() {
_parent.newX = _parent._x - _parent.currentX;
}
walkSpeed = 7;
_parent.currentX = _parent._x;
m = 12;
}
onClipEvent (enterFrame) {
ver();
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest(_x + 25, _y - 5, true)) {
return(undefined);
}
}
if (direction == "left") {
if (_root.bg.hitTest(_x - 25, _y - 5, true)) {
return(undefined);
}
}
}
if (_parent.direction == "right") {
_parent._x = _parent._x + walkSpeed;
}
if (_parent.direction == "left") {
_parent._x = _parent._x - walkSpeed;
}
}
Symbol 446 MovieClip Frame 6
stop();
busy = true;
Symbol 446 MovieClip Frame 7
stop();
Instance of Symbol 348 MovieClip in Symbol 446 MovieClip Frame 7
onClipEvent (load) {
rockslide = new Sound(this);
rockslide.attachSound("rockslide");
rockslide.start();
}
onClipEvent (enterFrame) {
with (_parent) {
if (Key.isDown(down)) {
gotoAndStop(8);
}
}
with (_parent) {
if (Key.isDown(up)) {
gotoAndStop(9);
}
}
}
Symbol 446 MovieClip Frame 8
stop();
Symbol 446 MovieClip Frame 9
stop();
Instance of Symbol 351 MovieClip in Symbol 446 MovieClip Frame 9
onClipEvent (enterFrame) {
_parent.nudge();
}
Symbol 446 MovieClip Frame 10
stop();
Instance of Symbol 352 MovieClip in Symbol 446 MovieClip Frame 10
onClipEvent (enterFrame) {
_parent.nudgeOpp();
}
Symbol 446 MovieClip Frame 11
stop();
busy = true;
Instance of Symbol 353 MovieClip in Symbol 446 MovieClip Frame 11
onClipEvent (load) {
function hop() {
if (_parent.direction == "right") {
_parent._x = _parent._x + walkSpeed;
}
if (_parent.direction == "left") {
_parent._x = _parent._x - walkSpeed;
}
}
walkSpeed = 12;
_parent.currentX = _parent._x;
}
onClipEvent (enterFrame) {
_parent.boundary();
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest(_x + (_width / 2), _y, true)) {
return(undefined);
}
}
if (direction == "left") {
if (_root.bg.hitTest(_x - (_width / 2), _y, true)) {
return(undefined);
}
}
}
if ((_currentframe >= 8) and (_currentframe <= 14)) {
hop();
}
}
Symbol 446 MovieClip Frame 12
stop();
Instance of Symbol 354 MovieClip in Symbol 446 MovieClip Frame 12
onClipEvent (enterFrame) {
_parent.onfloor = true;
}
Symbol 446 MovieClip Frame 13
stop();
Instance of Symbol 355 MovieClip in Symbol 446 MovieClip Frame 13
onClipEvent (enterFrame) {
with (_parent) {
if (yspeed >= 0) {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) + 10, true)) {
_y--;
yspeed = 0;
}
}
}
if (Key.isDown(_parent.up)) {
if (!_root.bg.hitTest(_root.santa._x, _root.santa._y - 100, true)) {
_parent.gotoAndStop(16);
}
}
}
Symbol 446 MovieClip Frame 14
stop();
Instance of Symbol 364 MovieClip in Symbol 446 MovieClip Frame 14
onClipEvent (enterFrame) {
_parent.onfloor = true;
}
Symbol 446 MovieClip Frame 15
stop();
Instance of Symbol 365 MovieClip in Symbol 446 MovieClip Frame 15
onClipEvent (load) {
walkSpeed = 6;
_parent.currentX = _parent._x;
}
onClipEvent (enterFrame) {
with (_parent) {
if (yspeed >= 0) {
while (_root.bg.hitTest(_x, (_y + (_height / 2)) + 10, true)) {
_y--;
yspeed = 0;
}
}
}
if (_parent.direction == "right") {
_parent._x = _parent._x + walkSpeed;
}
if (_parent.direction == "left") {
_parent._x = _parent._x - walkSpeed;
}
}
Symbol 446 MovieClip Frame 16
stop();
Instance of Symbol 366 MovieClip in Symbol 446 MovieClip Frame 16
onClipEvent (enterFrame) {
_parent.onfloor = true;
}
Symbol 446 MovieClip Frame 17
stop();
Symbol 446 MovieClip Frame 18
stop();
Instance of Symbol 368 MovieClip "runjump" in Symbol 446 MovieClip Frame 18
onClipEvent (load) {
walkSpeed = 7;
_parent.currentX = _parent._x;
}
onClipEvent (enterFrame) {
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest(_x + (_width / 2), _y - 5, true)) {
return(undefined);
}
}
if (direction == "left") {
if (_root.bg.hitTest(_x - (_width / 2), _y, true)) {
return(undefined);
}
}
}
if (_parent.direction == "right") {
_parent._x = _parent._x + walkSpeed;
}
if (_parent.direction == "left") {
_parent._x = _parent._x - walkSpeed;
}
}
Symbol 446 MovieClip Frame 19
stop();
Instance of Symbol 369 MovieClip in Symbol 446 MovieClip Frame 19
onClipEvent (load) {
walkSpeed = 3;
_parent.currentX = _parent._x;
m = 0;
}
onClipEvent (enterFrame) {
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest((_x + (_width / 2)) - m, _y + 20, true)) {
return(undefined);
}
}
if (direction == "left") {
if (_root.bg.hitTest((_x - (_width / 2)) + m, _y + 20, true)) {
return(undefined);
}
}
}
if (_parent.direction == "right") {
_parent._x = _parent._x + walkSpeed;
}
if (_parent.direction == "left") {
_parent._x = _parent._x - walkSpeed;
}
}
Symbol 446 MovieClip Frame 20
stop();
Symbol 446 MovieClip Frame 21
stop();
Instance of Symbol 371 MovieClip in Symbol 446 MovieClip Frame 21
onClipEvent (load) {
walkSpeed = 3;
_parent.currentX = _parent._x;
}
onClipEvent (enterFrame) {
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest((_x + (_width / 2)) - 5, _y + 20, true)) {
return(undefined);
}
}
if (direction == "left") {
if (_root.bg.hitTest((_x - (_width / 2)) + 5, _y + 20, true)) {
return(undefined);
}
}
}
if (_parent.direction == "right") {
_parent._x = _parent._x + walkSpeed;
}
if (_parent.direction == "left") {
_parent._x = _parent._x - walkSpeed;
}
}
Symbol 446 MovieClip Frame 22
stop();
Symbol 446 MovieClip Frame 23
stop();
Instance of Symbol 373 MovieClip in Symbol 446 MovieClip Frame 23
onClipEvent (load) {
walkSpeed = 7;
_parent.currentX = _parent._x;
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest(_x + (_width / 2), _y - 5, true)) {
return(undefined);
}
}
if (direction == "left") {
if (_root.bg.hitTest(_x - (_width / 2), _y - 5, true)) {
return(undefined);
}
}
}
if (_parent.direction == "right") {
_parent._x = _parent._x + walkSpeed;
}
if (_parent.direction == "left") {
_parent._x = _parent._x - walkSpeed;
}
}
onClipEvent (enterFrame) {
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest(_x + (_width / 2), _y - 5, true)) {
return(undefined);
}
}
if (direction == "left") {
if (_root.bg.hitTest(_x - (_width / 2), _y - 5, true)) {
return(undefined);
}
}
}
if (_parent.direction == "right") {
_parent._x = _parent._x + walkSpeed;
}
if (_parent.direction == "left") {
_parent._x = _parent._x - walkSpeed;
}
}
Symbol 446 MovieClip Frame 24
stop();
Instance of Symbol 374 MovieClip in Symbol 446 MovieClip Frame 24
onClipEvent (load) {
walkSpeed = 7;
_parent.currentX = _parent._x;
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest(_x + (_width / 2), _y - 5, true)) {
return(undefined);
}
}
if (direction == "left") {
if (_root.bg.hitTest(_x - (_width / 2), _y - 5, true)) {
return(undefined);
}
}
}
if (_parent.direction == "right") {
_parent._x = _parent._x + walkSpeed;
}
if (_parent.direction == "left") {
_parent._x = _parent._x - walkSpeed;
}
}
onClipEvent (enterFrame) {
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest(_x + (_width / 2), _y - 5, true)) {
return(undefined);
}
}
if (direction == "left") {
if (_root.bg.hitTest(_x - (_width / 2), _y - 5, true)) {
return(undefined);
}
}
}
if (_parent.direction == "right") {
_parent._x = _parent._x + walkSpeed;
}
if (_parent.direction == "left") {
_parent._x = _parent._x - walkSpeed;
}
}
Symbol 446 MovieClip Frame 25
stop();
Instance of Symbol 375 MovieClip in Symbol 446 MovieClip Frame 25
onClipEvent (load) {
walkSpeed = 7;
_parent.currentX = _parent._x;
}
onClipEvent (enterFrame) {
with (_parent) {
if (direction == "right") {
if (_root.bg.hitTest(_x + (_width / 2), _y - 5, true)) {
return(undefined);
}
}
if (direction == "left") {
if (_root.bg.hitTest(_x - (_width / 2), _y - 5, true)) {
return(undefined);
}
}
}
if (_parent.direction == "right") {
_parent._x = _parent._x + walkSpeed;
}
if (_parent.direction == "left") {
_parent._x = _parent._x - walkSpeed;
}
}
Symbol 446 MovieClip Frame 26
stop();
busy = true;
Symbol 446 MovieClip Frame 28
stop();
busy = true;
Symbol 446 MovieClip Frame 29
stop();
Symbol 446 MovieClip Frame 30
stop();
Instance of Symbol 414 MovieClip in Symbol 446 MovieClip Frame 30
onClipEvent (enterFrame) {
if (_currentframe > 35) {
with (_parent) {
if (_root.bg.hitTest(_x, (_y + (_height / 2)) + 30, true)) {
onfloor = true;
} else {
onfloor = false;
}
if (onfloor == false) {
_y = _y + 5;
}
}
}
}
Symbol 446 MovieClip Frame 31
stop();
if (((_root.level == 16) or (_root.level == 17)) or (_root.level == 18)) {
gotoAndStop (30);
}
Symbol 446 MovieClip Frame 32
stop();
Symbol 446 MovieClip Frame 33
stop();
Symbol 448 MovieClip Frame 1
stop();
Symbol 450 MovieClip Frame 1
stop();
Symbol 450 MovieClip Frame 52
_root.checkpoint();
Symbol 456 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 2
stop();
Symbol 456 MovieClip Frame 3
stop();
Symbol 456 MovieClip Frame 4
stop();
Symbol 456 MovieClip Frame 5
stop();
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 2
stop();
_root.lastPoint = _root.level;
Instance of Symbol 277 MovieClip in Symbol 458 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 458 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 458 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 458 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 458 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 458 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 458 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 458 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 458 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Symbol 474 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.head.hitTest(_root.santa)) {
_root.santa.die("stab");
_parent._parent.santaDead = true;
}
};
Symbol 479 MovieClip Frame 24
gotoAndPlay (7);
Symbol 480 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 2
stop();
s.start();
Symbol 481 MovieClip Frame 1
stop();
Symbol 481 MovieClip Frame 2
_root.santa.gotoAndStop(26);
Symbol 481 MovieClip Frame 15
if (!_root.door1) {
if (_root.level == 7) {
i = 0;
while (i <= _root.doors.length) {
_root.doors[i].play();
i++;
}
}
}
if (!_root.door2) {
if (_root.level == 9) {
i = 0;
while (i <= _root.doors.length) {
_root.doors[i].play();
i++;
}
}
}
if (!_root.door3) {
if (_root.level == 12) {
i = 0;
while (i <= _root.doors.length) {
_root.doors[i].play();
i++;
}
}
}
Symbol 481 MovieClip Frame 18
check();
Symbol 488 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.main.hitTest(_root.santa)) {
_root.santa.die("grind");
}
};
Symbol 505 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 14
gotoAndPlay (9);
Symbol 529 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.santa)) {
_root.santa.die("burn");
}
};
Symbol 531 MovieClip Frame 80
_parent.gotoAndStop(1);
Symbol 540 MovieClip Frame 9
stop();
Symbol 541 MovieClip Frame 1
stop();
Symbol 541 MovieClip Frame 2
stop();
Symbol 541 MovieClip Frame 3
stop();
Symbol 542 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.main.hitTest(_root.santa)) {
_root.santa.die("grind");
}
};
Symbol 551 MovieClip Frame 1
stop();
Symbol 551 MovieClip Frame 2
stop();
Instance of Symbol 277 MovieClip in Symbol 551 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 551 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 551 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 551 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 551 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 551 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 551 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 551 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 551 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 2
_root.santa.gotoAndStop(26);
Symbol 553 MovieClip Frame 15
if (!_root.door5) {
if (_root.level == 21) {
i = 0;
while (i <= _root.doors.length) {
_root.doors[i].play();
i++;
}
}
}
Symbol 553 MovieClip Frame 18
check();
Symbol 561 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 37
if (!active) {
gotoAndStop (1);
}
Symbol 567 MovieClip Frame 1
stop();
Instance of Symbol 458 MovieClip in Symbol 567 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa.jumpingAni)) {
if ((_root.santa.jumpingAni._currentframe > 24) and (_root.santa.jumpingAni._currentframe < 30)) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 480 MovieClip in Symbol 567 MovieClip Frame 6
onClipEvent (load) {
function check() {
if (santaDead) {
gotoAndStop (1);
return(undefined);
}
if (direction == "right") {
_xscale = (-x);
}
if (direction == "left") {
_xscale = x;
}
distance = (_parent._x + _x) - _root.santa._x;
if (_root.santa._x > 300) {
if ((distance > 20) or (distance < -20)) {
if (_root.santa.onfloor) {
if (_root.santa._y > 300) {
active = true;
}
}
}
}
if (active) {
if (distance > 0) {
direction = "left";
}
if (distance < 0) {
direction = "right";
}
}
}
s = new Sound(this);
s.attachSound("c2");
direction = "right";
active = false;
x = _xscale;
speed = 8.5;
check();
}
onClipEvent (enterFrame) {
if (santaDead) {
gotoAndStop (1);
return(undefined);
}
if (!active) {
this.gotoAndStop(1);
}
if (active) {
this.gotoAndStop(2);
if (direction == "right") {
_x = (_x + speed);
}
if (direction == "left") {
_x = (_x - speed);
}
}
check();
}
Instance of Symbol 481 MovieClip in Symbol 567 MovieClip Frame 7
onClipEvent (load) {
function check() {
if (!_root.door1) {
_root.door1 = true;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(_root.santa.space)) {
if (this.hitTest(_root.santa)) {
if (_root.santa.direction == "right") {
if ((_root.santa._currentframe == 1) or (_root.santa._currentframe == 26)) {
this.play();
}
}
}
}
}
Instance of Symbol 480 MovieClip in Symbol 567 MovieClip Frame 7
onClipEvent (load) {
function check() {
if (santaDead) {
gotoAndStop (1);
return(undefined);
}
if (direction == "right") {
_xscale = (-x);
}
if (direction == "left") {
_xscale = x;
}
distance = (_parent._x + _x) - _root.santa._x;
if (_root.door1) {
active = true;
if (_root.santa._y < 200) {
active = false;
}
}
if (!_root.door1) {
active = false;
}
if (active) {
if (distance > 0) {
direction = "left";
}
if (distance < 0) {
direction = "right";
}
}
}
s = new Sound(this);
s.attachSound("c1");
direction = "left";
active = false;
x = _xscale;
speed = 8.5;
check();
}
onClipEvent (enterFrame) {
if (santaDead) {
gotoAndStop (1);
return(undefined);
}
if (!active) {
this.gotoAndStop(1);
}
if (active) {
this.gotoAndStop(2);
if (direction == "right") {
_x = (_x + speed);
}
if (direction == "left") {
_x = (_x - speed);
}
}
check();
}
Instance of Symbol 491 MovieClip in Symbol 567 MovieClip Frame 8
onClipEvent (load) {
m1 = new Sound();
m1.attachSound("m1");
m1.start();
}
Instance of Symbol 481 MovieClip in Symbol 567 MovieClip Frame 9
onClipEvent (load) {
function check() {
_root.door2 = true;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(_root.santa.space)) {
if (this.hitTest(_root.santadoor)) {
if (_root.santa.direction == "right") {
if ((_root.santa._currentframe == 1) or (_root.santa._currentframe == 26)) {
this.play();
}
}
}
}
}
Instance of Symbol 458 MovieClip in Symbol 567 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa.jumpingAni)) {
if ((_root.santa.jumpingAni._currentframe > 24) and (_root.santa.jumpingAni._currentframe < 30)) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 505 MovieClip "comet" in Symbol 567 MovieClip Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa)) {
if (_currentframe < 15) {
_root.santa.die("grind");
}
}
}
Instance of Symbol 481 MovieClip in Symbol 567 MovieClip Frame 11
onClipEvent (load) {
function check() {
_parent.comet.play();
}
}
onClipEvent (enterFrame) {
if (Key.isDown(_root.santa.space)) {
if (this.hitTest(_root.santadoor)) {
if (_root.santa.direction == "right") {
if ((_root.santa._currentframe == 1) or (_root.santa._currentframe == 26)) {
this.play();
}
}
}
}
}
Instance of Symbol 481 MovieClip in Symbol 567 MovieClip Frame 12
onClipEvent (load) {
function check() {
_root.door3 = true;
_parent.comet.play();
}
}
onClipEvent (enterFrame) {
if (Key.isDown(_root.santa.space)) {
if (this.hitTest(_root.santadoor)) {
if (_root.santa.direction == "right") {
if ((_root.santa._currentframe == 1) or (_root.santa._currentframe == 26)) {
this.play();
}
}
}
}
}
Instance of Symbol 480 MovieClip in Symbol 567 MovieClip Frame 12
onClipEvent (load) {
function check() {
if (santaDead) {
gotoAndStop (1);
return(undefined);
}
if (direction == "right") {
_xscale = (-x);
}
if (direction == "left") {
_xscale = x;
}
distance = (_parent._x + _x) - _root.santa._x;
if (_root.door3) {
if (_root.santa._y > 300) {
time++;
if (time > 10) {
active = true;
}
}
}
if (_root.santa._y < 200) {
active = false;
}
if (active) {
if (distance > 0) {
direction = "left";
}
if (distance < 0) {
direction = "right";
}
}
}
s = new Sound(this);
s.attachSound("c2");
direction = "left";
active = false;
time = 0;
x = _xscale;
speed = 8.5;
check();
}
onClipEvent (enterFrame) {
if (_root.santa.dead) {
this.gotoAndStop(1);
return(undefined);
}
if (santaDead) {
gotoAndStop (1);
return(undefined);
}
if (!active) {
this.gotoAndStop(1);
}
if (active) {
this.gotoAndStop(2);
if (direction == "right") {
_x = (_x + speed);
}
if (direction == "left") {
_x = (_x - speed);
}
}
check();
}
Instance of Symbol 541 MovieClip "demon" in Symbol 567 MovieClip Frame 12
onClipEvent (load) {
function die() {
this.gotoAndStop(3);
}
this.gotoAndStop(2);
time = 0;
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.santa._y < 300) {
time++;
if (time > 20) {
this.gotoAndStop(2);
time = 0;
}
}
}
}
Instance of Symbol 505 MovieClip "comet" in Symbol 567 MovieClip Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_parent.demon)) {
_parent.demon.die();
}
}
Instance of Symbol 480 MovieClip in Symbol 567 MovieClip Frame 14
onClipEvent (load) {
function check() {
if (santaDead) {
gotoAndStop (1);
return(undefined);
}
if (direction == "right") {
_xscale = (-x);
}
if (direction == "left") {
_xscale = x;
}
distance = (_parent._x + _x) - _root.santa._x;
if (_root.santa._y > 280) {
active = true;
} else {
active = false;
}
if (active) {
if (distance > 0) {
direction = "left";
}
if (distance < 0) {
direction = "right";
}
}
}
s = new Sound(this);
s.attachSound("c2");
direction = "right";
active = false;
x = _xscale;
speed = 8.5;
check();
}
onClipEvent (enterFrame) {
if (santaDead) {
gotoAndStop (1);
return(undefined);
}
if (!active) {
this.gotoAndStop(1);
}
if (active) {
this.gotoAndStop(2);
if (direction == "right") {
_x = (_x + speed);
}
if (direction == "left") {
_x = (_x - speed);
}
}
check();
}
Instance of Symbol 458 MovieClip in Symbol 567 MovieClip Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa.jumpingAni)) {
if ((_root.santa.jumpingAni._currentframe > 24) and (_root.santa.jumpingAni._currentframe < 30)) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 551 MovieClip in Symbol 567 MovieClip Frame 16
onClipEvent (enterFrame) {
if (this.main.hitTest(_root.santa)) {
if (_currentframe == 1) {
_root.santa.teleport(19, 100, 100);
this.gotoAndStop(2);
}
}
}
Instance of Symbol 480 MovieClip in Symbol 567 MovieClip Frame 16
onClipEvent (load) {
function check() {
if (santaDead) {
gotoAndStop (1);
return(undefined);
}
if (direction == "right") {
_xscale = (-x);
}
if (direction == "left") {
_xscale = x;
}
distance = (_parent._x + _x) - _root.santa._x;
time++;
if (time > 50) {
active = true;
}
if (active) {
if (distance > 0) {
direction = "left";
}
if (distance < 0) {
direction = "right";
}
}
}
s = new Sound(this);
s.attachSound("c1");
if (_root.button3) {
_visible = false;
return(undefined);
}
direction = "right";
active = false;
x = _xscale;
speed = 8.5;
time = 0;
check();
}
onClipEvent (enterFrame) {
if (santaDead) {
gotoAndStop (1);
return(undefined);
}
if (_root.button3) {
return(undefined);
}
if (!active) {
this.gotoAndStop(1);
}
if (active) {
this.gotoAndStop(2);
if (direction == "right") {
_x = (_x + speed);
}
if (direction == "left") {
_x = (_x - speed);
}
}
check();
}
Instance of Symbol 480 MovieClip in Symbol 567 MovieClip Frame 17
onClipEvent (load) {
function check() {
if (santaDead) {
gotoAndStop (1);
return(undefined);
}
if (direction == "right") {
_xscale = (-x);
}
if (direction == "left") {
_xscale = x;
}
distance = (_parent._x + _x) - _root.santa._x;
time++;
active = true;
if (active) {
if (distance > 0) {
direction = "left";
}
if (distance < 0) {
direction = "right";
}
}
}
if (_root.button3) {
return(undefined);
}
direction = "right";
active = false;
x = _xscale;
speed = 7;
time = 0;
check();
}
onClipEvent (enterFrame) {
if (santaDead) {
gotoAndStop (1);
return(undefined);
}
if (_root.button3) {
return(undefined);
}
if (!active) {
this.gotoAndStop(1);
}
if (active) {
this.gotoAndStop(2);
if (direction == "right") {
_x = (_x + speed);
}
if (direction == "left") {
_x = (_x - speed);
}
}
check();
}
Instance of Symbol 480 MovieClip in Symbol 567 MovieClip Frame 18
onClipEvent (load) {
function check() {
if (santaDead) {
gotoAndStop (1);
return(undefined);
}
_xscale = (-x);
active = true;
if (_root.button3) {
active = false;
}
if (_root.santa._y > 300) {
active = false;
}
}
direction = "right";
active = true;
x = _xscale;
speed = 8;
time = 0;
check();
}
onClipEvent (enterFrame) {
if (santaDead) {
gotoAndStop (1);
return(undefined);
}
if (!active) {
this.gotoAndStop(1);
}
if (active) {
this.gotoAndStop(2);
if (direction == "right") {
_x = (_x + speed);
}
if (direction == "left") {
_x = (_x - speed);
}
}
check();
}
Instance of Symbol 551 MovieClip in Symbol 567 MovieClip Frame 19
onClipEvent (enterFrame) {
if (this.main.hitTest(_root.santa)) {
if (!_root.door4) {
if (_currentframe == 1) {
_root.santa._x = 100;
_root.santa._y = 100;
_root.door4 = true;
i = 0;
while (i <= _root.doors.length) {
_root.doors[i].play();
i++;
}
this.gotoAndStop(2);
}
}
}
}
Instance of Symbol 541 MovieClip "demon" in Symbol 567 MovieClip Frame 19
onClipEvent (load) {
function die() {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.door4) {
if (_root.santa._y < 300) {
this.gotoAndStop(2);
time = 0;
}
}
}
}
Instance of Symbol 458 MovieClip in Symbol 567 MovieClip Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa.jumpingAni)) {
if ((_root.santa.jumpingAni._currentframe > 24) and (_root.santa.jumpingAni._currentframe < 30)) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 553 MovieClip in Symbol 567 MovieClip Frame 21
onClipEvent (load) {
function check() {
_root.door5 = true;
_parent.comet.play();
_parent.mmm.active = false;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(_root.santa.space)) {
if (this.hitTest(_root.santadoor)) {
if (_root.santa.direction == "left") {
if ((_root.santa._currentframe == 1) or (_root.santa._currentframe == 26)) {
this.play();
}
}
}
}
}
Instance of Symbol 561 MovieClip "comet" in Symbol 567 MovieClip Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa)) {
if (_currentframe < 40) {
_root.santa.die("grind");
}
}
}
Instance of Symbol 566 MovieClip "mmm" in Symbol 567 MovieClip Frame 21
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
if (active) {
if (this.hitTest(_root.santa)) {
if (_currentframe < 15) {
_root.santa.die("grind");
}
}
}
}
Symbol 584 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 2
stop();
if (_root.level == 3) {
_root.button1 = true;
}
if (_root.level == 14) {
if (!_root.button2) {
i = 0;
while (i <= _root.doors.length) {
_root.doors[i].play();
i++;
}
_root.button2 = true;
}
}
if (_root.level == 18) {
if (!_root.button3) {
i = 0;
while (i <= _root.doors.length) {
_root.doors[i].play();
i++;
}
_root.button3 = true;
}
}
Symbol 588 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 2
stop();
_root.sfx1 = true;
Instance of Symbol 277 MovieClip in Symbol 588 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 588 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 588 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 588 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 588 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 588 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 588 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 588 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Instance of Symbol 277 MovieClip in Symbol 588 MovieClip Frame 2
onClipEvent (load) {
x = 50;
y = 100;
xb = -1;
yb = 1;
xspeed = Math.round(Math.random() * (yb - xb)) + xb;
speed = random(8) + 2;
time = random(10);
}
onClipEvent (enterFrame) {
if (_alpha < 0) {
this.gotoAndStop(2);
return(undefined);
}
_x = (_x + xspeed);
_y = (_y - speed);
time++;
if (time > 40) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
}
Symbol 588 MovieClip Frame 3
stop();
Symbol 599 MovieClip Frame 1
if (_parent._name == "bg") {
stop();
}
if (_root.door1) {
if (_root.level == 7) {
stop();
}
}
Symbol 599 MovieClip Frame 3
if (_parent._name == "bg") {
mm = new Sound(this);
mm.attachSound("door");
mm.start();
}
Symbol 599 MovieClip Frame 6
stop();
Symbol 620 MovieClip Frame 6
stop();
Symbol 620 MovieClip Frame 11
stop();
Symbol 629 MovieClip Frame 1
stop();
Instance of Symbol 584 MovieClip in Symbol 629 MovieClip Frame 3
onClipEvent (load) {
if (_root.button1) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa)) {
if ((_root.santa._currentframe == 1) or (_root.santa._currentframe == 4)) {
if (_currentframe == 1) {
beep = new Sound(this);
beep.attachSound("beep");
beep.setVolume(40);
beep.start();
}
this.gotoAndStop(2);
}
}
}
Instance of Symbol 588 MovieClip in Symbol 629 MovieClip Frame 4
onClipEvent (load) {
if (_parent._name == "bg") {
if (_root.button1) {
if (_root.sfx1) {
this.gotoAndStop(3);
return(undefined);
}
}
if (_root.button1) {
if (_root.sfx1 == false) {
this.gotoAndStop(2);
}
}
}
if (!(_parent._name === "bg")) {
if (_root.button1) {
this.gotoAndStop(3);
return(undefined);
}
}
}
Instance of Symbol 599 MovieClip in Symbol 629 MovieClip Frame 7
onClipEvent (load) {
if (_root.door1) {
this.gotoAndStop(6);
}
}
onClipEvent (load) {
if (_parent._name == "bg") {
_root.doors.push(this);
}
}
Instance of Symbol 599 MovieClip in Symbol 629 MovieClip Frame 7
onClipEvent (load) {
if (_root.door1) {
this.gotoAndStop(6);
}
}
onClipEvent (load) {
if (_parent._name == "bg") {
_root.doors.push(this);
}
}
Instance of Symbol 599 MovieClip in Symbol 629 MovieClip Frame 9
onClipEvent (load) {
if (_parent._name == "bg") {
_root.doors.push(this);
}
if (_root.door2) {
this.gotoAndStop(6);
}
}
Instance of Symbol 599 MovieClip in Symbol 629 MovieClip Frame 12
onClipEvent (load) {
if (_root.door3) {
this.gotoAndStop(6);
}
}
onClipEvent (load) {
if (_parent._name == "bg") {
_root.doors.push(this);
}
}
Instance of Symbol 599 MovieClip in Symbol 629 MovieClip Frame 14
onClipEvent (load) {
if (_root.button2) {
this.gotoAndStop(6);
}
}
onClipEvent (load) {
if (_parent._name == "bg") {
_root.doors.push(this);
}
}
Instance of Symbol 584 MovieClip in Symbol 629 MovieClip Frame 14
onClipEvent (load) {
if (_root.button2) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa)) {
if ((_root.santa._currentframe == 1) or (_root.santa._currentframe == 4)) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 620 MovieClip in Symbol 629 MovieClip Frame 18
onClipEvent (load) {
this.gotoAndStop(6);
_root.doors.push(this);
if (_root.button3) {
this.gotoAndStop(1);
}
}
Instance of Symbol 584 MovieClip in Symbol 629 MovieClip Frame 18
onClipEvent (load) {
if (_root.button3) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa)) {
if ((_root.santa._currentframe == 1) or (_root.santa._currentframe == 4)) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 599 MovieClip in Symbol 629 MovieClip Frame 19
onClipEvent (load) {
if (_root.door4) {
this.gotoAndStop(6);
}
}
onClipEvent (load) {
if (_parent._name == "bg") {
_root.doors.push(this);
}
}
Instance of Symbol 599 MovieClip in Symbol 629 MovieClip Frame 19
onClipEvent (load) {
if (_root.door4) {
this.gotoAndStop(6);
}
}
onClipEvent (load) {
if (_parent._name == "bg") {
_root.doors.push(this);
}
}
Instance of Symbol 599 MovieClip in Symbol 629 MovieClip Frame 21
onClipEvent (load) {
if (_root.door5) {
this.gotoAndStop(6);
}
}
onClipEvent (load) {
if (_parent._name == "bg") {
_root.doors.push(this);
}
}
Symbol 634 MovieClip Frame 1
stop();
Symbol 634 MovieClip Frame 284
stopAllSounds();
_root.lastPoint = 1;
_root.button1 = false;
_root.door1 = false;
_root.door2 = false;
_root.door3 = false;
_root.door4 = false;
_root.button2 = false;
_root.door4 = false;
_root.button3 = false;
_root.door5 = false;
_root.gamemusicmenu = undefined;
_root.gotoAndStop("menu");
Symbol 636 MovieClip Frame 1
function update() {
b.gotoAndStop(_root.level + 1);
_root.hellBG.nextBG();
}
stop();
_visible = false;
Instance of Symbol 629 MovieClip "lol" in Symbol 636 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.level);
}
Instance of Symbol 629 MovieClip "b" in Symbol 636 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.level + 1);
}
Symbol 636 MovieClip Frame 2
_root.level++;
_visible = true;
_root.bg._visible = false;
Instance of Symbol 629 MovieClip "lol" in Symbol 636 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.level - 1);
}
Symbol 636 MovieClip Frame 5
if ((((_root.level == 6) or (_root.level == 11)) or (_root.level == 16)) or (_root.level == 21)) {
_root.hellBG.update();
}
Symbol 636 MovieClip Frame 12
_visible = false;
_root.nextStage();
Instance of Symbol 629 MovieClip "b" in Symbol 636 MovieClip Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.level + 1);
}
Symbol 638 MovieClip Frame 1
function update() {
m.gotoAndStop(_root.level);
lol.gotoAndStop(_root.level - 1);
}
stop();
_visible = false;
Instance of Symbol 629 MovieClip "m" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.level);
}
Instance of Symbol 629 MovieClip "lol" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.level - 1);
}
Symbol 638 MovieClip Frame 2
_root.level--;
_visible = true;
_root.bg._visible = false;
Symbol 638 MovieClip Frame 12
_visible = false;
_root.prevStage();
Instance of Symbol 629 MovieClip "lol" in Symbol 638 MovieClip Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.level - 1);
}
Symbol 640 MovieClip Frame 1
stop();