[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (8 B)
play();
Frame 17 (8 B)
play();
Frame 25 (44 B)
ifFrameLoaded (37) {
gotoAndPlay (31);
}
Instance of Symbol 77 MovieClip in Frame 27 (154 B)
onClipEvent (enterFrame) {
newY = getProperty(this, _y) + 4;
setProperty(this, _y , newY);
if (600 < this._y) {
setProperty(this, _y , -100);
}
}
Instance of Symbol 78 MovieClip in Frame 27 (154 B)
onClipEvent (enterFrame) {
newY = getProperty(this, _y) + 2;
setProperty(this, _y , newY);
if (600 < this._y) {
setProperty(this, _y , -200);
}
}
Instance of Symbol 79 MovieClip in Frame 27 (153 B)
onClipEvent (enterFrame) {
newY = getProperty(this, _y) + 4;
setProperty(this, _y , newY);
if (600 < this._y) {
setProperty(this, _y , -10);
}
}
Instance of Symbol 80 MovieClip in Frame 27 (154 B)
onClipEvent (enterFrame) {
newY = getProperty(this, _y) + 3;
setProperty(this, _y , newY);
if (600 < this._y) {
setProperty(this, _y , -100);
}
}
Instance of Symbol 81 MovieClip in Frame 27 (154 B)
onClipEvent (enterFrame) {
newY = getProperty(this, _y) + 4;
setProperty(this, _y , newY);
if (600 < this._y) {
setProperty(this, _y , -300);
}
}
Frame 30 (18 B)
gotoAndPlay (17);
Frame 31 (8 B)
stop();
Frame 32 (158 B)
_level0.sLives = 3;
_level0.gameid = 3;
_level0.cScore = 0;
_level0.santaLevel = 1;
_level0.happyKids = 0;
_level0.unhappyKids = 0;
_level0.xshift = 0;
Instance of Symbol 93 MovieClip in Frame 32 (151 B)
onClipEvent (enterFrame) {
setProperty(this, _x , (this._x - 2) - (_level0.xshift / 4));
if (this._x < -800) {
setProperty(this, _x , 800);
}
}
Instance of Symbol 93 MovieClip in Frame 32 (151 B)
onClipEvent (enterFrame) {
setProperty(this, _x , (this._x - 2) - (_level0.xshift / 4));
if (this._x < -800) {
setProperty(this, _x , 800);
}
}
Instance of Symbol 117 MovieClip "santa" in Frame 32 (1.47 KiB) ●
onClipEvent (enterFrame) {
if (750 < this._x) {
_level0.xshift = 6;
setProperty(this, _x , 745);
} else if ((this._x < 50) && (-200 < this._x)) {
setProperty(this, _x , 55);
} else {
_level0.xshift = 0;
}
if (420 < this._y) {
setProperty(this, _y , 415);
}
if (this._y < 30) {
setProperty(this, _y , 35);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE) && (_root.Santa.pCounter.pCounter == 1)) {
bombNo = bombNo + 1;
if (20 < bombNo) {
bombNo = 1;
}
duplicateMovieClip ("_root.shipbomb", "shipbomb" + bombNo, bombNo);
with (_root.Santa.pCounter) {
gotoAndPlay(1);
}
}
if (Key.isDown(Key.RIGHT)) {
setProperty(this, _x , this._x + 15);
tellTarget ("_level0.santa.tail") {
gotoAndPlay ("turbo");
tellTarget ("_level0.Santa.nick") {
gotoAndPlay ("fast");
};
};
} else if (Key.isDown(Key.LEFT)) {
setProperty(this, _x , this._x - 15);
tellTarget ("_level0.santa.nose") {
gotoAndPlay ("brake");
tellTarget ("_level0.Santa.nick") {
gotoAndPlay ("slow");
};
};
}
if (Key.isDown(Key.UP)) {
setProperty(this, _y , this._y - 15);
tellTarget ("_level0.santa.tail") {
gotoAndPlay ("up");
tellTarget ("_level0.Santa.nick") {
gotoAndPlay ("rise");
};
};
} else if (Key.isDown(Key.DOWN)) {
setProperty(this, _y , this._y + 15);
tellTarget ("_level0.santa.tail") {
gotoAndPlay ("down");
tellTarget ("_level0.Santa.nick") {
gotoAndPlay ("fall");
};
};
}
}
Instance of Symbol 123 MovieClip "shipbomb" in Frame 32 (527 B)
onClipEvent (enterFrame) {
if (500 < this._y) {
_level0.unhappyKids = _level0.unhappyKids + 1;
removeMovieClip(this);
}
if (this.hitTest(_level0.cPot1) && (presentDropped == 1)) {
_level0.cScore = _level0.cScore + 1;
}
if (this.hitTest(_level0.cPot2) && (presentDropped == 1)) {
_level0.cScore = _level0.cScore + 3;
}
if ((this.hitTest(_level0.cPot1) or this.hitTest(_level0.cPot2)) && (presentDropped == 1)) {
_level0.happyKids = _level0.happyKids + 1;
removeMovieClip(this);
}
}
Instance of Symbol 124 MovieClip "chimney1" in Frame 32 (434 B)
onClipEvent (enterFrame) {
if (this.hitTest(_level0.santa)) {
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , -1000);
setProperty(_level0.santa, _x , -1000);
tellTarget ("_level0.Santa.sleigh") {
play();
};
}
}
Instance of Symbol 125 MovieClip "cPot1" in Frame 32 (633 B)
onClipEvent (enterFrame) {
setProperty(this, _x , (this._x - 8) - _level0.xshift);
setProperty(_root.chimney1, _x , this._x);
if (this._x < 0) {
setProperty(this, _x , 900);
setProperty(_root.chimney1, _x , 900);
}
if (this.hitTest(_level0.santa)) {
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , -1000);
setProperty(_level0.santa, _x , -1000);
tellTarget ("_level0.Santa.sleigh") {
play();
};
}
}
Instance of Symbol 124 MovieClip "chimney2" in Frame 32 (434 B)
onClipEvent (enterFrame) {
if (this.hitTest(_level0.santa)) {
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , -1000);
setProperty(_level0.santa, _x , -1000);
tellTarget ("_level0.Santa.sleigh") {
play();
};
}
}
Instance of Symbol 126 MovieClip "cPot2" in Frame 32 (637 B)
onClipEvent (enterFrame) {
setProperty(this, _x , (this._x - 8) - _level0.xshift);
setProperty(_root.chimney2, _x , this._x);
if (this._x < -80) {
setProperty(this, _x , 1200);
setProperty(_root.chimney1, _x , 1200);
}
if (this.hitTest(_level0.santa)) {
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , -1000);
setProperty(_level0.santa, _x , -1000);
tellTarget ("_level0.Santa.sleigh") {
play();
};
}
}
Instance of Symbol 131 MovieClip "fire" in Frame 32 (372 B)
onClipEvent (load) {
fScale = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_level0.santa)) {
tellTarget ("_level0.Santa.sleigh") {
play();
};
setProperty("_level0.santa", _y , _level0.santa._y - 10);
}
setProperty(this, _yscale , fScale);
if (20 >= fScale) {
fPlus = 10;
} else if (fScale >= 120) {
fPlus = -10;
}
fScale = fScale + fPlus;
}
Instance of Symbol 124 MovieClip "chimney3" in Frame 32 (434 B)
onClipEvent (enterFrame) {
if (this.hitTest(_level0.santa)) {
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , -1000);
setProperty(_level0.santa, _x , -1000);
tellTarget ("_level0.Santa.sleigh") {
play();
};
}
}
Instance of Symbol 132 MovieClip "cPot3" in Frame 32 (678 B)
onClipEvent (enterFrame) {
setProperty(this, _x , (this._x - 8) - _level0.xshift);
setProperty(_root.chimney3, _x , this._x);
setProperty(_root.fire, _x , this._x);
if (this._x < -200) {
setProperty(this, _x , 1600);
setProperty(_root.chimney1, _x , 1600);
}
if (this.hitTest(_level0.santa)) {
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , -1000);
setProperty(_level0.santa, _x , -1000);
tellTarget ("_level0.Santa.sleigh") {
play();
};
}
}
Instance of Symbol 134 MovieClip "Pudding" in Frame 32 (938 B)
onClipEvent (enterFrame) {
if (_level0.elfFire == 1) {
movePudX = -((this._x - _level0.santa._x) / 20);
movePudY = -((this._y - _level0.santa._y) / 20);
_level0.elfFire = 0;
}
setProperty(this, _x , this._x + movePudX);
setProperty(this, _y , this._y + movePudY);
if ((((this._x < 20) or (820 < this._x)) or (this._y < -20)) or (570 < this._y)) {
_level0.elfFire = 0;
setProperty(this, _x , -100);
setProperty(this, _y , -100);
}
if (this.hitTest(_level0.santa)) {
setProperty("_root.pudding", _x , this._x - 5);
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , 100);
setProperty(_level0.santa, _x , -1000);
tellTarget ("_level0.Santa.sleigh") {
play();
};
_level0.elfFire = 0;
}
}
Instance of Symbol 150 MovieClip "robin" in Frame 32 (432 B)
onClipEvent (enterFrame) {
if (this.hitTest(_level0.santa)) {
tellTarget ("_level0.Santa.sleigh") {
play();
};
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , 100);
setProperty(_level0.santa, _x , -1000);
}
}
Frame 33 (52 B)
if (_level0.sLives < 1) {
gotoAndStop (48);
}
Frame 34 (71 B)
if (_level0.sLives < 1) {
gotoAndStop (48);
}
gotoAndPlay (33);
Frame 35 (8 B)
stop();
Frame 41 (8 B)
stop();
Frame 42 (8 B)
stop();
Frame 43 (578 B)
tellTarget ("_level0.showLives") {
gotoAndStop(4 - _level0.sLives);
};
if (_level0.slives == 3) {
tellTarget ("_level0.Santa.sleigh") {
gotoAndStop (1);
};
} else if (_level0.slives == 2) {
tellTarget ("_level0.Santa.sleigh") {
gotoAndStop (19);
};
} else if (_level0.slives == 1) {
tellTarget ("_level0.Santa.sleigh") {
gotoAndStop (39);
};
} else if (_level0.slives == 0) {
tellTarget ("_level0.Santa.sleigh") {
gotoAndStop (55);
};
}
_level0.happyKids = 0;
_level0.unhappyKids = 0;
_level0.santaLevel = 2;
_level0.xshift = 0;
stop();
Instance of Symbol 93 MovieClip in Frame 43 (151 B)
onClipEvent (enterFrame) {
setProperty(this, _x , (this._x - 2) - (_level0.xshift / 4));
if (this._x < -800) {
setProperty(this, _x , 800);
}
}
Instance of Symbol 93 MovieClip in Frame 43 (151 B)
onClipEvent (enterFrame) {
setProperty(this, _x , (this._x - 2) - (_level0.xshift / 4));
if (this._x < -800) {
setProperty(this, _x , 800);
}
}
Instance of Symbol 174 MovieClip "santa" in Frame 43 (1.47 KiB) ●
onClipEvent (enterFrame) {
if (750 < this._x) {
_level0.xshift = 10;
setProperty(this, _x , 745);
} else if ((this._x < 50) && (-200 < this._x)) {
setProperty(this, _x , 55);
} else {
_level0.xshift = 0;
}
if (420 < this._y) {
setProperty(this, _y , 415);
}
if (this._y < 30) {
setProperty(this, _y , 35);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE) && (_root.Santa.pCounter.pCounter == 1)) {
bombNo = bombNo + 1;
if (20 < bombNo) {
bombNo = 1;
}
duplicateMovieClip ("_root.shipbomb", "shipbomb" + bombNo, bombNo);
with (_root.Santa.pCounter) {
gotoAndPlay(1);
}
}
if (Key.isDown(Key.RIGHT)) {
setProperty(this, _x , this._x + 15);
tellTarget ("_level0.santa.tail") {
gotoAndPlay ("turbo");
tellTarget ("_level0.Santa.nick") {
gotoAndPlay ("fast");
};
};
} else if (Key.isDown(Key.LEFT)) {
setProperty(this, _x , this._x - 15);
tellTarget ("_level0.santa.nose") {
gotoAndPlay ("brake");
tellTarget ("_level0.Santa.nick") {
gotoAndPlay ("slow");
};
};
}
if (Key.isDown(Key.UP)) {
setProperty(this, _y , this._y - 15);
tellTarget ("_level0.santa.tail") {
gotoAndPlay ("up");
tellTarget ("_level0.Santa.nick") {
gotoAndPlay ("rise");
};
};
} else if (Key.isDown(Key.DOWN)) {
setProperty(this, _y , this._y + 15);
tellTarget ("_level0.santa.tail") {
gotoAndPlay ("down");
tellTarget ("_level0.Santa.nick") {
gotoAndPlay ("fall");
};
};
}
}
Instance of Symbol 123 MovieClip "shipbomb" in Frame 44 (527 B)
onClipEvent (enterFrame) {
if (500 < this._y) {
_level0.unhappyKids = _level0.unhappyKids + 1;
removeMovieClip(this);
}
if (this.hitTest(_level0.cPot1) && (presentDropped == 1)) {
_level0.cScore = _level0.cScore + 1;
}
if (this.hitTest(_level0.cPot2) && (presentDropped == 1)) {
_level0.cScore = _level0.cScore + 3;
}
if ((this.hitTest(_level0.cPot1) or this.hitTest(_level0.cPot2)) && (presentDropped == 1)) {
_level0.happyKids = _level0.happyKids + 1;
removeMovieClip(this);
}
}
Instance of Symbol 124 MovieClip "chimney1" in Frame 44 (434 B)
onClipEvent (enterFrame) {
if (this.hitTest(_level0.santa)) {
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , -1000);
setProperty(_level0.santa, _x , -1000);
tellTarget ("_level0.Santa.sleigh") {
play();
};
}
}
Instance of Symbol 180 MovieClip "cPot1" in Frame 44 (634 B)
onClipEvent (enterFrame) {
setProperty(this, _x , (this._x - 12) - _level0.xshift);
setProperty(_root.chimney1, _x , this._x);
if (this._x < 0) {
setProperty(this, _x , 900);
setProperty(_root.chimney1, _x , 900);
}
if (this.hitTest(_level0.santa)) {
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , -1000);
setProperty(_level0.santa, _x , -1000);
tellTarget ("_level0.Santa.sleigh") {
play();
};
}
}
Instance of Symbol 124 MovieClip "chimney2" in Frame 44 (434 B)
onClipEvent (enterFrame) {
if (this.hitTest(_level0.santa)) {
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , -1000);
setProperty(_level0.santa, _x , -1000);
tellTarget ("_level0.Santa.sleigh") {
play();
};
}
}
Instance of Symbol 181 MovieClip "cPot2" in Frame 44 (638 B)
onClipEvent (enterFrame) {
setProperty(this, _x , (this._x - 12) - _level0.xshift);
setProperty(_root.chimney2, _x , this._x);
if (this._x < -80) {
setProperty(this, _x , 1200);
setProperty(_root.chimney1, _x , 1200);
}
if (this.hitTest(_level0.santa)) {
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , -1000);
setProperty(_level0.santa, _x , -1000);
tellTarget ("_level0.Santa.sleigh") {
play();
};
}
}
Instance of Symbol 182 MovieClip "fire" in Frame 44 (372 B)
onClipEvent (load) {
fScale = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_level0.santa)) {
tellTarget ("_level0.Santa.sleigh") {
play();
};
setProperty("_level0.santa", _y , _level0.santa._y - 10);
}
setProperty(this, _yscale , fScale);
if (20 >= fScale) {
fPlus = 10;
} else if (fScale >= 200) {
fPlus = -10;
}
fScale = fScale + fPlus;
}
Instance of Symbol 124 MovieClip "chimney3" in Frame 44 (434 B)
onClipEvent (enterFrame) {
if (this.hitTest(_level0.santa)) {
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , -1000);
setProperty(_level0.santa, _x , -1000);
tellTarget ("_level0.Santa.sleigh") {
play();
};
}
}
Instance of Symbol 183 MovieClip "cPot3" in Frame 44 (679 B)
onClipEvent (enterFrame) {
setProperty(this, _x , (this._x - 12) - _level0.xshift);
setProperty(_root.chimney3, _x , this._x);
setProperty(_root.fire, _x , this._x);
if (this._x < -200) {
setProperty(this, _x , 1600);
setProperty(_root.chimney3, _x , 1600);
}
if (this.hitTest(_level0.santa)) {
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , -1000);
setProperty(_level0.santa, _x , -1000);
tellTarget ("_level0.Santa.sleigh") {
play();
};
}
}
Instance of Symbol 184 MovieClip "Pudding" in Frame 44 (938 B)
onClipEvent (enterFrame) {
if (_level0.elfFire == 1) {
movePudX = -((this._x - _level0.santa._x) / 15);
movePudY = -((this._y - _level0.santa._y) / 15);
_level0.elfFire = 0;
}
setProperty(this, _x , this._x + movePudX);
setProperty(this, _y , this._y + movePudY);
if ((((this._x < 20) or (820 < this._x)) or (this._y < -20)) or (570 < this._y)) {
_level0.elfFire = 0;
setProperty(this, _x , -100);
setProperty(this, _y , -100);
}
if (this.hitTest(_level0.santa)) {
setProperty("_root.pudding", _x , this._x - 5);
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , 100);
setProperty(_level0.santa, _x , -1000);
tellTarget ("_level0.Santa.sleigh") {
play();
};
_level0.elfFire = 0;
}
}
Instance of Symbol 150 MovieClip "robin" in Frame 44 (432 B)
onClipEvent (enterFrame) {
if (this.hitTest(_level0.santa)) {
tellTarget ("_level0.Santa.sleigh") {
play();
};
setProperty("_level0.santaCrash", _x , _level0.santa._x);
setProperty("_level0.santaCrash", _y , _level0.santa._y - 20);
tellTarget ("_level0.santaCrash") {
play();
};
setProperty("_root.santa", _visible , false);
setProperty(_level0.santa, _y , 100);
setProperty(_level0.santa, _x , -1000);
}
}
Frame 45 (52 B)
if (_level0.sLives < 1) {
gotoAndStop (48);
}
Frame 46 (71 B)
if (_level0.sLives < 1) {
gotoAndStop (48);
}
gotoAndPlay (45);
Frame 47 (8 B)
stop();
Frame 48 (99 B)
_level0.gameid = 3;
_level0.total_score = _level0.total_score + (1000 * _level0.sLives);
stop();
Frame 50 (69 B)
loadMovie ("currenthiscoretable.swf", _level0.tableHolder);
stop();
Frame 51 (8 B)
stop();
Frame 52 (65 B)
loadMovie ("newhiscoretable.swf", _level0.tableHolder);
stop();
Symbol 24 Button (65 B)
on (press) {
getURL ("http://www.software.plc.uk/", "_blank");
}
Symbol 26 Button (65 B)
on (press) {
getURL ("http://www.newmedia.plc.uk/", "_blank");
}
Symbol 27 Button (60 B)
on (press) {
getURL ("http://www.uk-plc.net/", "_blank");
}
Symbol 55 Button (34 B)
on (release) {
gotoAndPlay (2);
}
Symbol 64 MovieClip Frame 1 (8 B)
stop();
Symbol 70 Button (34 B)
on (release) {
gotoAndStop (1);
}
Symbol 73 MovieClip Frame 1 (8 B)
stop();
Symbol 73 MovieClip Frame 2 (8 B)
stop();
Symbol 87 Button (35 B)
on (release) {
gotoAndStop (32);
}
Symbol 101 MovieClip Frame 1 (8 B)
stop();
Symbol 101 MovieClip Frame 8 (17 B)
gotoAndStop (1);
Symbol 101 MovieClip Frame 12 (17 B)
gotoAndStop (1);
Symbol 101 MovieClip Frame 16 (17 B)
gotoAndStop (1);
Symbol 101 MovieClip Frame 20 (17 B)
gotoAndStop (1);
Symbol 104 MovieClip Frame 1 (8 B)
play();
Symbol 106 MovieClip Frame 1 (8 B)
stop();
Symbol 106 MovieClip Frame 2 (8 B)
play();
Symbol 106 MovieClip Frame 18 (84 B)
play();
_level0.sLives = 2;
tellTarget ("_level0.showLives") {
nextFrame();
};
Symbol 106 MovieClip Frame 19 (8 B)
stop();
Symbol 106 MovieClip Frame 20 (8 B)
play();
Symbol 106 MovieClip Frame 38 (84 B)
_level0.sLives = 1;
tellTarget ("_level0.showLives") {
nextFrame();
};
play();
Symbol 106 MovieClip Frame 39 (8 B)
stop();
Symbol 106 MovieClip Frame 40 (8 B)
play();
Symbol 106 MovieClip Frame 54 (84 B)
play();
_level0.sLives = 0;
tellTarget ("_level0.showLives") {
nextFrame();
};
Symbol 106 MovieClip Frame 55 (8 B)
stop();
Symbol 106 MovieClip Frame 56 (8 B)
play();
Symbol 106 MovieClip Frame 90 (89 B)
stop();
tellTarget ("_level0") {
gotoAndStop ("checkscore");
};
_level0.sLives = 0;
Symbol 106 MovieClip Frame 91 (89 B)
stop();
tellTarget ("_level0") {
gotoAndStop ("checkscore");
};
_level0.sLives = 0;
Symbol 106 MovieClip Frame 92 (87 B)
stop();
tellTarget ("_level0") {
gotoAndStop ("setscore");
};
_level0.sLives = 0;
Symbol 106 MovieClip Frame 93 (89 B)
stop();
tellTarget ("_level0") {
gotoAndStop ("checkscore");
};
_level0.sLives = 0;
Symbol 109 MovieClip Frame 1 (8 B)
stop();
Symbol 109 MovieClip Frame 4 (17 B)
gotoAndStop (1);
Symbol 115 MovieClip Frame 1 (8 B)
stop();
Symbol 115 MovieClip Frame 4 (17 B)
gotoAndStop (1);
Symbol 115 MovieClip Frame 7 (17 B)
gotoAndStop (1);
Symbol 115 MovieClip Frame 10 (17 B)
gotoAndStop (1);
Symbol 116 MovieClip Frame 1 (14 B)
pCounter = 0;
Symbol 116 MovieClip Frame 30 (14 B)
pCounter = 1;
Symbol 116 MovieClip Frame 31 (8 B)
stop();
Symbol 121 MovieClip Frame 1 (8 B)
stop();
Symbol 121 MovieClip Frame 51 (154 B)
setProperty(this, _y , -500);
setProperty("_root.santa", _visible , true);
setProperty(_level0.santa, _y , 100);
setProperty(_level0.santa, _x , 100);
Symbol 123 MovieClip Frame 1 (232 B)
setProperty(this, _x , getProperty(_level0.santa, _x));
setProperty(this, _y , getProperty(_level0.santa, _y) + 20);
setProperty(this, _visible , false);
presentDropped = 0;
if (this._name != "shipbomb") {
gotoAndPlay (3);
}
Symbol 123 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 123 MovieClip Frame 3 (123 B)
presentDropped = 1;
newY = getProperty(this, _y) + 4;
setProperty(this, _y , newY);
setProperty(this, _visible , true);
Symbol 123 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 134 MovieClip Frame 1 (8 B)
stop();
Symbol 146 MovieClip Frame 1 (8 B)
stop();
Symbol 146 MovieClip Frame 10 (115 B)
setProperty("_level0.Pudding", _x , this._x);
setProperty("_level0.Pudding", _y , this._y);
_level0.elfFire = 1;
Symbol 147 MovieClip Frame 1 (69 B)
pauseDuration = (12 * random(1000)) + 5000;
startTime = getTimer();
Symbol 147 MovieClip Frame 2 (245 B)
lapsedTime = getTimer() - startTime;
if (pauseDuration < lapsedTime) {
rndElfX = (Math.random() * 700) + 50;
setProperty("_level0.badElf", _x , rndElfX);
with (_level0.badElf) {
play();
}
startTime = null;
gotoAndPlay (1);
}
Symbol 147 MovieClip Frame 3 (17 B)
gotoAndPlay (2);
Symbol 150 MovieClip Frame 1 (8 B)
stop();
Symbol 150 MovieClip Frame 2 (31 B)
mLevel = this._y;
yMove = -2;
Symbol 150 MovieClip Frame 3 (309 B)
setProperty(this, _x , this._x + 8);
setProperty(this, _y , this._y + yMove);
if (this._y < (mLevel - 60)) {
yMove = 2;
} else if (mLevel < this._y) {
yMove = -2;
}
if (820 < this._x) {
setProperty(this, _x , -100);
gotoAndStop (1);
with (_level0.rndRobin) {
gotoAndPlay(1);
}
}
Symbol 150 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 151 MovieClip Frame 1 (70 B)
pauseDuration = (15 * random(1000)) + 10000;
startTime = getTimer();
Symbol 151 MovieClip Frame 2 (247 B)
lapsedTime = getTimer() - startTime;
if (pauseDuration < lapsedTime) {
rndRobinY = (Math.random() * 200) + 100;
setProperty("_level0.robin", _y , rndRobinY);
with (_level0.robin) {
gotoAndPlay(2);
}
startTime = null;
stop();
}
Symbol 151 MovieClip Frame 3 (17 B)
gotoAndPlay (2);
Symbol 155 MovieClip Frame 1 (29 B)
_level0.xshift = 0;
stop();
Symbol 155 MovieClip Frame 2 (8 B)
play();
Symbol 155 MovieClip Frame 10 (20 B)
_level0.xshift = 0;
Symbol 162 MovieClip Frame 1 (571 B)
hKidsScale = (_level0.happyKids / 40) * 100;
vKidsScale = (_level0.unhappyKids / 40) * 100;
setProperty("hScale", _xscale , hKidsScale);
setProperty("uScale", _xscale , vKidsScale);
if ((_level0.happyKids >= 40) && (_level0.santaLevel == 1)) {
tellTarget ("_level0") {
gotoAndPlay ("startlevB");
};
} else if ((_level0.happyKids >= 40) && (_level0.santaLevel == 2)) {
tellTarget ("_level0") {
gotoAndPlay ("checkscore");
};
}
if (_level0.unhappyKids >= 40) {
tellTarget ("_level0") {
gotoAndPlay ("checkscore");
};
}
Symbol 165 MovieClip Frame 1 (185 B)
uPercent = (50 - _level0.unhappyKids) / 50;
_level0.total_score = Math.floor((_level0.cScore * 100) * uPercent) * 10;
if (0 >= _level0.total_score) {
_level0.total_score = 0;
}
Symbol 167 MovieClip Frame 1 (8 B)
stop();
Symbol 167 MovieClip Frame 2 (8 B)
stop();
Symbol 167 MovieClip Frame 3 (8 B)
stop();
Symbol 167 MovieClip Frame 4 (8 B)
play();
Symbol 167 MovieClip Frame 15 (17 B)
gotoAndPlay (4);
Symbol 167 MovieClip Frame 16 (8 B)
stop();
Symbol 171 Button (83 B)
on (release) {
sLives = 10;
happyKids = 0;
unhappyKids = 0;
gotoAndPlay (32);
}
Symbol 179 MovieClip Frame 35 (44 B)
tellTarget ("_level0") {
nextFrame();
};
Symbol 184 MovieClip Frame 1 (8 B)
stop();
Symbol 185 MovieClip Frame 1 (68 B)
pauseDuration = (6 * random(1000)) + 5000;
startTime = getTimer();
Symbol 185 MovieClip Frame 2 (245 B)
lapsedTime = getTimer() - startTime;
if (pauseDuration < lapsedTime) {
rndElfX = (Math.random() * 700) + 50;
setProperty("_level0.badElf", _x , rndElfX);
with (_level0.badElf) {
play();
}
startTime = null;
gotoAndPlay (1);
}
Symbol 185 MovieClip Frame 3 (17 B)
gotoAndPlay (2);
Symbol 186 MovieClip Frame 1 (68 B)
pauseDuration = (4 * random(1000)) + 5000;
startTime = getTimer();
Symbol 186 MovieClip Frame 2 (247 B)
lapsedTime = getTimer() - startTime;
if (pauseDuration < lapsedTime) {
rndRobinY = (Math.random() * 200) + 100;
setProperty("_level0.robin", _y , rndRobinY);
with (_level0.robin) {
gotoAndPlay(2);
}
startTime = null;
stop();
}
Symbol 186 MovieClip Frame 3 (17 B)
gotoAndPlay (2);
Symbol 189 MovieClip Frame 1 (14 B)
score10 = "";
Symbol 189 MovieClip Frame 2 (291 B)
gameid = String(_level0.gameid);
job = "getscores";
mydate = new Date();
miliseconds = mydate.getUTCMilliseconds() + (1000 * mydate.getUTCSeconds());
loadVariables ("http://www.software.plc.uk/games/counter/newmediasanta.htm", this, "GET");
loadVariables ("hiscores.asp", this, "GET");
Symbol 189 MovieClip Frame 9 (73 B)
if (score10 != "") {
gotoAndPlay (10);
} else {
gotoAndPlay (3);
}
Symbol 189 MovieClip Frame 10 (663 B)
function compareNumbers(a, b) {
return((b[1] < a[1]) - (a[1] < b[1]));
}
var hstable = new Array();
hstable[0] = new Array(name1, parseInt(score1));
hstable[1] = new Array(name2, parseInt(score2));
hstable[2] = new Array(name3, parseInt(score3));
hstable[3] = new Array(name4, parseInt(score4));
hstable[4] = new Array(name5, parseInt(score5));
hstable[5] = new Array(name6, parseInt(score6));
hstable[6] = new Array(name7, parseInt(score7));
hstable[7] = new Array(name8, parseInt(score8));
hstable[8] = new Array(name9, parseInt(score9));
hstable[9] = new Array(name10, parseInt(score10));
hstable.sort(compareNumbers);
hstable.reverse();
Symbol 189 MovieClip Frame 11 (8 B)
play();
Symbol 189 MovieClip Frame 15 (29 B)
lowestScore = hstable[9][1];
Symbol 189 MovieClip Frame 16 (189 B)
if (lowestScore < _level0.total_score) {
tellTarget ("_level0") {
gotoAndStop ("goodscore");
};
} else {
tellTarget ("_level0") {
gotoAndStop ("badscore");
};
}
stop();
Symbol 191 Button (84 B)
on (release) {
_level0.happyKids = 0;
_level0.unhappyKids = 0;
gotoAndPlay (1);
}
Symbol 198 Button (30 B)
on (release) {
nextFrame();
}
Symbol 206 Button (35 B)
on (release) {
gotoAndPlay (52);
}