Frame 1
function BackgroundSound() {
sndCrickets = new Sound(this);
sndCrickets.attachSound("crickets");
sndCrickets.setVolume(100);
sndCrickets.start(0, 999);
sndCrickets.onSoundComplete = function () {
sndCrickets.start(0, 999);
};
}
function FlyPresent(thePresent) {
if (_root.Try <= 9) {
_root["mcPresent" + thePresent].gotoAndPlay("out");
sndLaugh = new Sound(this);
sndLaugh.attachSound("laugh");
sndLaugh.setVolume(100);
sndLaugh.start();
}
if (_root.Try >= 9) {
_root.GameOver();
}
}
function Start() {
_root.Try = 0;
_root.TotalLetters = 0;
z = 65;
while (z <= 90) {
_root.aKeys[z] = false;
z++;
}
blankspaces = 0;
xpoint = 235;
_root.mcTree.gotoAndStop("stopped");
_root.mcPresent1.gotoAndStop(40);
_root.mcPresent2.gotoAndStop(40);
_root.mcPresent3.gotoAndStop(40);
_root.mcPresent4.gotoAndStop(40);
_root.mcPresent5.gotoAndStop(40);
_root.mcPresent6.gotoAndStop(40);
_root.mcPresent7.gotoAndStop(40);
_root.mcPresent8.gotoAndStop(40);
_root.mcPresent9.gotoAndStop(40);
_root.mcWin.gotoAndStop(1);
_root.mcPresent1.gotoAndPlay("in");
_root.mcPresent2.gotoAndPlay("in");
_root.mcPresent3.gotoAndPlay("in");
_root.mcPresent4.gotoAndPlay("in");
_root.mcPresent5.gotoAndPlay("in");
_root.mcPresent6.gotoAndPlay("in");
_root.mcPresent7.gotoAndPlay("in");
_root.mcPresent8.gotoAndPlay("in");
_root.mcPresent9.gotoAndPlay("in");
_root.attachMovie("mcBlack", "mcBlack", 30);
_root.mcBlack._x = 177;
_root.mcBlack._y = 7;
_root.thechoice = Math.floor(Math.random() * 157) + 1;
_root.theword = _root.aWords[_root.thechoice];
_root.wordsize = length(_root.theword);
trace(_root.theword);
trace(_root.wordsize);
_root.mcWord._visible = true;
z = 1;
while (z < (parseInt(_root.wordsize) + 1)) {
if ((substring(_root.theword, z, 1)) != " ") {
_root.attachMovie("mcLetter", "mcLetter" + z, z + 1);
_root["mcLetter" + z].txtLetter.text = substring(_root.theword, z, 1);
_root["mcLetter" + z].txtLetter.textColor = 26112;
_root["mcLetter" + z]._y = 15;
_root["mcLetter" + z]._x = xpoint;
} else {
blankspaces++;
}
xpoint = xpoint + 14;
z++;
}
_root.TotalLetters = _root.TotalLetters + blankspaces;
}
function TryIt(theletter) {
_root.aKeys[z] = true;
if (_root.Try < 10) {
FlagLetter = false;
z = 1;
while (z < (_root.wordsize + 1)) {
if (_root["mcLetter" + z].txtLetter.text == theletter) {
FlagLetter = true;
_root["mcLetter" + z].txtLetter.textColor = 16763904 /* 0xFFCC00 */;
_root.TotalLetters++;
}
z++;
}
if (FlagLetter == false) {
_root.Try++;
_root.FlyPresent(_root.Try);
}
if (_root.TotalLetters == _root.wordsize) {
_root.mcKeyboard.gotoAndStop(1);
_root.mcWin._visible = true;
_root.mcWin.gotoAndPlay(2);
_root.GamesWon++;
_root.mcGameAnimation.mcGames.txtWon.text = _root.GamesWon;
_root.GamesPlayed++;
_root.mcGameAnimation.mcGames.txtPlayed.text = _root.GamesPlayed;
}
}
_root.EnableButtons();
}
function GameOver() {
z = 1;
while (z <= _root.wordsize) {
if (_root["mcLetter" + z].txtLetter.textColor == 26112) {
_root["mcLetter" + z].txtLetter.textColor = 16711680 /* 0xFF0000 */;
}
z++;
}
_root.mcKeyboard.gotoAndStop(1);
_root.mcGameOver._visible = true;
_root.GamesLost++;
_root.mcGameAnimation.mcGames.txtLost.text = _root.GamesLost;
_root.GamesPlayed++;
_root.mcGameAnimation.mcGames.txtPlayed.text = _root.GamesPlayed;
_root.mcRestart.gotoAndPlay(2);
}
function DisableButtons(theletter) {
z = 65;
while (z <= 90) {
_root.mcKeyboard["btnButton" + chr(z)].enabled = false;
z++;
}
_root.TryIt(theletter);
}
function EnableButtons() {
z = 65;
while (z <= 90) {
if (_root.aKeys[z] == false) {
_root.mcKeyboard["btnButton" + chr(z)].enabled = true;
}
z++;
}
}
function EnumWords() {
aWords = new Array();
aWords[0] = "advent";
aWords[1] = "alleluia";
aWords[2] = "angelic";
aWords[3] = "angels";
aWords[4] = "announcement";
aWords[5] = "anticipating";
aWords[6] = "artificial tree";
aWords[7] = "astrologers";
aWords[8] = "babe";
aWords[9] = "baby";
aWords[10] = "bells";
aWords[11] = "bethlehem";
aWords[12] = "birth";
aWords[13] = "blitzer";
aWords[14] = "brandy butter";
aWords[15] = "bread";
aWords[16] = "camel";
aWords[17] = "candles";
aWords[18] = "candy";
aWords[19] = "candy canes";
aWords[20] = "cards";
aWords[21] = "cedar";
aWords[22] = "celebrate";
aWords[23] = "ceremonies";
aWords[24] = "chimney";
aWords[25] = "christ child";
aWords[26] = "christmas cookies";
aWords[27] = "christmas tree";
aWords[28] = "comet";
aWords[29] = "cranberry sauce";
aWords[30] = "creche";
aWords[31] = "crowds";
aWords[32] = "cupid";
aWords[33] = "dancer";
aWords[34] = "dasher";
aWords[35] = "december";
aWords[36] = "decorations";
aWords[37] = "dolls";
aWords[38] = "donkey";
aWords[39] = "donner";
aWords[40] = "dressing";
aWords[41] = "eggnog";
aWords[42] = "elves";
aWords[43] = "emmanuel";
aWords[44] = "epiphany";
aWords[45] = "excited";
aWords[46] = "exhausted";
aWords[47] = "fairies";
aWords[48] = "family reunion";
aWords[49] = "feelings";
aWords[50] = "festival";
aWords[51] = "fir";
aWords[52] = "flocks";
aWords[53] = "frankincense";
aWords[54] = "frosty";
aWords[55] = "fruitcake";
aWords[56] = "gift boxes";
aWords[57] = "gifts";
aWords[58] = "gloria";
aWords[59] = "gold";
aWords[60] = "goodwill";
aWords[61] = "greetings";
aWords[62] = "ham";
aWords[63] = "happy";
aWords[64] = "holiday";
aWords[65] = "holly";
aWords[66] = "holy";
aWords[67] = "icicles";
aWords[68] = "immanuel";
aWords[69] = "incarnation";
aWords[70] = "inn";
aWords[71] = "ivy";
aWords[72] = "jerusalem";
aWords[73] = "jingle bells";
aWords[74] = "jolly";
aWords[75] = "joseph";
aWords[76] = "jubilee";
aWords[77] = "lights";
aWords[78] = "lists";
aWords[79] = "lord";
aWords[80] = "magi";
aWords[81] = "manager";
aWords[82] = "mary";
aWords[83] = "merry";
aWords[84] = "merry christmas";
aWords[85] = "mince meat";
aWords[86] = "mince meat pie";
aWords[87] = "mince pies";
aWords[88] = "miracle";
aWords[89] = "mistletoe";
aWords[90] = "myrrh";
aWords[91] = "nativity";
aWords[92] = "noel";
aWords[93] = "north pole";
aWords[94] = "pageant";
aWords[95] = "parades";
aWords[96] = "party";
aWords[97] = "pie";
aWords[98] = "pine";
aWords[99] = "plum pudding";
aWords[100] = "poinsettia";
aWords[101] = "prancer";
aWords[102] = "presents";
aWords[103] = "prince of peace";
aWords[104] = "proclamation";
aWords[105] = "prophecy";
aWords[106] = "pumpkin pie";
aWords[107] = "punch";
aWords[108] = "red/green";
aWords[109] = "reindeer";
aWords[110] = "reindeer";
aWords[111] = "ribbon";
aWords[112] = "ribbon";
aWords[113] = "rudolph";
aWords[114] = "sacred";
aWords[115] = "sad";
aWords[116] = "saint nick";
aWords[117] = "sales";
aWords[118] = "santa claus";
aWords[119] = "sauce";
aWords[120] = "savior";
aWords[121] = "scrooge";
aWords[122] = "seals";
aWords[123] = "season";
aWords[124] = "shepherds";
aWords[125] = "shopping";
aWords[126] = "sled";
aWords[127] = "sleigh";
aWords[128] = "sleigh bells";
aWords[129] = "spice tea";
aWords[130] = "spirit";
aWords[131] = "stable";
aWords[132] = "stand";
aWords[133] = "star";
aWords[134] = "star";
aWords[135] = "stickers";
aWords[136] = "stocking stuffers";
aWords[137] = "stockings";
aWords[138] = "sweet potato";
aWords[139] = "tidings";
aWords[140] = "tinsel";
aWords[141] = "toys";
aWords[142] = "toys";
aWords[143] = "tradition";
aWords[144] = "traffic";
aWords[145] = "trips";
aWords[146] = "turkey";
aWords[147] = "vacation";
aWords[148] = "vixan";
aWords[149] = "wassail";
aWords[150] = "wassailing";
aWords[151] = "white sauce";
aWords[152] = "wise men";
aWords[153] = "worship";
aWords[154] = "wrapping paper";
aWords[155] = "wreath";
aWords[156] = "yule";
aWords[157] = "yuletide";
}
EnumWords();
_root.FlakeCounter = 1;
_root.EachFlake = 0;
_root.MaxFlakes = 5;
_root.mcPresent1.gotoAndStop(40);
_root.mcPresent2.gotoAndStop(40);
_root.mcPresent3.gotoAndStop(40);
_root.mcPresent4.gotoAndStop(40);
_root.mcPresent5.gotoAndStop(40);
_root.mcPresent6.gotoAndStop(40);
_root.mcPresent7.gotoAndStop(40);
_root.mcPresent8.gotoAndStop(40);
_root.mcPresent9.gotoAndStop(40);
_root.mcWord._visible = false;
_root.mcGameOver._visible = false;
_root.FlagFirst = true;
_root.GamesPlayed = 0;
_root.GamesWon = 0;
_root.GamesLost = 0;
_root.aKeys = new Array();
BackgroundSound();
stop();
Instance of Symbol 103 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.EachFlake++;
if (_root.EachFlake == _root.MaxFlakes) {
_root.EachFlake = 0;
x = Math.floor(Math.random() * 500);
y = Math.floor(Math.random() * 30);
size = Math.floor(Math.random() * 30) + 70;
_root.attachMovie("mcFlake", "mcFlake" + _root.FlakeCounter, _root.FlakeCounter + 20);
_root["mcFlake" + _root.FlakeCounter]._x = x;
_root["mcFlake" + _root.FlakeCounter]._y = y;
_root["mcFlake" + _root.FlakeCounter]._xscale = size;
_root["mcFlake" + _root.FlakeCounter]._yscale = size;
_root["mcFlake" + _root.FlakeCounter].onEnterFrame = function () {
if (this._y == 100) {
this.removeMovieClip();
} else {
this._y++;
}
};
_root.FlakeCounter++;
}
}
Symbol 8 MovieClip [mcBlack] Frame 15
this.removeMovieClip();
Symbol 16 Button
on (release) {
getURL ("http://www.lostjungle.com");
}
Symbol 17 Button
on (release) {
getURL ("http://www.lostjungle.com/add.php?game=hangman-christmas");
}
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 2
play();
Symbol 21 MovieClip Frame 22
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 2
play();
Symbol 23 MovieClip Frame 48
_root.mcTree.gotoAndPlay("out");
Symbol 23 MovieClip Frame 70
stop();
Symbol 25 MovieClip Frame 40
stop();
Symbol 25 MovieClip Frame 41
play();
Symbol 25 MovieClip Frame 80
stop();
Symbol 25 MovieClip Frame 111
stop();
Symbol 27 MovieClip Frame 40
stop();
Symbol 27 MovieClip Frame 41
play();
Symbol 27 MovieClip Frame 80
stop();
Symbol 27 MovieClip Frame 111
stop();
Symbol 29 MovieClip Frame 40
stop();
Symbol 29 MovieClip Frame 41
play();
Symbol 29 MovieClip Frame 80
stop();
Symbol 29 MovieClip Frame 111
stop();
Symbol 31 MovieClip Frame 40
stop();
Symbol 31 MovieClip Frame 41
play();
Symbol 31 MovieClip Frame 80
stop();
Symbol 31 MovieClip Frame 111
stop();
Symbol 33 MovieClip Frame 40
stop();
Symbol 33 MovieClip Frame 41
play();
Symbol 33 MovieClip Frame 80
stop();
Symbol 33 MovieClip Frame 111
stop();
Symbol 35 MovieClip Frame 40
stop();
Symbol 35 MovieClip Frame 41
play();
Symbol 35 MovieClip Frame 80
stop();
Symbol 35 MovieClip Frame 111
stop();
Symbol 37 MovieClip Frame 40
stop();
Symbol 37 MovieClip Frame 41
play();
Symbol 37 MovieClip Frame 80
stop();
Symbol 37 MovieClip Frame 111
stop();
Symbol 39 MovieClip Frame 40
stop();
Symbol 39 MovieClip Frame 41
play();
Symbol 39 MovieClip Frame 80
stop();
Symbol 39 MovieClip Frame 111
stop();
Symbol 41 MovieClip Frame 40
if (_root.FlagFirst == false) {
_root.mcSanta.gotoAndPlay("out");
} else {
_root.FlagFirst = false;
}
stop();
Symbol 41 MovieClip Frame 41
play();
Symbol 41 MovieClip Frame 80
_root.mcKeyboard.gotoAndPlay("in");
stop();
Symbol 41 MovieClip Frame 111
stop();
Symbol 46 Button
on (release) {
_root.aKeys[72] = true;
_root.DisableButtons("h");
this.btnButtonH._alpha = 50;
this.btnButtonH.enabled = false;
}
Symbol 47 Button
on (release) {
_root.aKeys[67] = true;
_root.DisableButtons("c");
this.btnButtonC._alpha = 50;
this.btnButtonC.enabled = false;
}
Symbol 48 Button
on (release) {
_root.aKeys[66] = true;
_root.DisableButtons("b");
this.btnButtonB._alpha = 50;
this.btnButtonB.enabled = false;
}
Symbol 49 Button
on (release) {
_root.aKeys[65] = true;
_root.DisableButtons("a");
this.btnButtonA._alpha = 50;
this.btnButtonA.enabled = false;
}
Symbol 50 Button
on (release) {
_root.aKeys[70] = true;
_root.DisableButtons("f");
this.btnButtonF._alpha = 50;
this.btnButtonF.enabled = false;
}
Symbol 51 Button
on (release) {
_root.aKeys[69] = true;
_root.DisableButtons("e");
this.btnButtonE._alpha = 50;
this.btnButtonE.enabled = false;
}
Symbol 52 Button
on (release) {
_root.aKeys[68] = true;
_root.DisableButtons("d");
this.btnButtonD._alpha = 50;
this.btnButtonD.enabled = false;
}
Symbol 53 Button
on (release) {
_root.aKeys[73] = true;
_root.DisableButtons("i");
this.btnButtonI._alpha = 50;
this.btnButtonI.enabled = false;
}
Symbol 54 Button
on (release) {
_root.aKeys[71] = true;
_root.DisableButtons("g");
this.btnButtonG._alpha = 50;
this.btnButtonG.enabled = false;
}
Symbol 55 Button
on (release) {
_root.aKeys[76] = true;
_root.DisableButtons("l");
this.btnButtonL._alpha = 50;
this.btnButtonL.enabled = false;
}
Symbol 56 Button
on (release) {
_root.aKeys[75] = true;
_root.DisableButtons("k");
this.btnButtonK._alpha = 50;
this.btnButtonK.enabled = false;
}
Symbol 57 Button
on (release) {
_root.aKeys[74] = true;
_root.DisableButtons("j");
this.btnButtonJ._alpha = 50;
this.btnButtonJ.enabled = false;
}
Symbol 58 Button
on (release) {
_root.aKeys[79] = true;
_root.DisableButtons("o");
this.btnButtonO._alpha = 50;
this.btnButtonO.enabled = false;
}
Symbol 59 Button
on (release) {
_root.aKeys[78] = true;
_root.DisableButtons("n");
this.btnButtonN._alpha = 50;
this.btnButtonN.enabled = false;
}
Symbol 60 Button
on (release) {
_root.aKeys[77] = true;
_root.DisableButtons("m");
this.btnButtonM._alpha = 50;
this.btnButtonM.enabled = false;
}
Symbol 61 Button
on (release) {
_root.aKeys[82] = true;
_root.DisableButtons("r");
this.btnButtonR._alpha = 50;
this.btnButtonR.enabled = false;
}
Symbol 62 Button
on (release) {
_root.aKeys[81] = true;
_root.DisableButtons("q");
this.btnButtonQ._alpha = 50;
this.btnButtonQ.enabled = false;
}
Symbol 63 Button
on (release) {
_root.aKeys[80] = true;
_root.DisableButtons("p");
this.btnButtonP._alpha = 50;
this.btnButtonP.enabled = false;
}
Symbol 64 Button
on (release) {
_root.aKeys[85] = true;
_root.DisableButtons("u");
this.btnButtonU._alpha = 50;
this.btnButtonU.enabled = false;
}
Symbol 65 Button
on (release) {
_root.aKeys[84] = true;
_root.DisableButtons("t");
this.btnButtonT._alpha = 50;
this.btnButtonT.enabled = false;
}
Symbol 66 Button
on (release) {
_root.aKeys[83] = true;
_root.DisableButtons("s");
this.btnButtonS._alpha = 50;
this.btnButtonS.enabled = false;
}
Symbol 67 Button
on (release) {
_root.aKeys[89] = true;
_root.DisableButtons("y");
this.btnButtonY._alpha = 50;
this.btnButtonY.enabled = false;
}
Symbol 68 Button
on (release) {
_root.aKeys[88] = true;
_root.DisableButtons("x");
this.btnButtonX._alpha = 50;
this.btnButtonX.enabled = false;
}
Symbol 69 Button
on (release) {
_root.aKeys[86] = true;
_root.DisableButtons("v");
this.btnButtonV._alpha = 50;
this.btnButtonV.enabled = false;
}
Symbol 70 Button
on (release) {
_root.aKeys[90] = true;
_root.DisableButtons("z");
this.btnButtonZ._alpha = 50;
this.btnButtonZ.enabled = false;
}
Symbol 71 Button
on (release) {
_root.aKeys[87] = true;
_root.DisableButtons("w");
this.btnButtonW._alpha = 50;
this.btnButtonW.enabled = false;
}
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 15
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
play();
Symbol 113 MovieClip Frame 7
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 2
play();
Symbol 119 MovieClip Frame 31
_root.mcGameOver._visible = false;
_root.mcWin._visible = false;
_root.mcGameAnimation.gotoAndPlay("in");
stop();
Instance of Symbol 117 MovieClip "mcBat" in Symbol 119 MovieClip Frame 31
on (release) {
_root.mcWord._visible = false;
z = 1;
while (z < 18) {
_root["mcLetter" + z].removeMovieClip();
z++;
}
_root.mcTitle._visible = false;
_root.mcGameAnimation.gotoAndStop(1);
_parent.gotoAndPlay("out");
}
Symbol 119 MovieClip Frame 46
_root.Start();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
play();
Symbol 128 MovieClip Frame 56
stop();
z = 1;
while (z <= 9) {
_root["mcPresent" + z].gotoAndPlay("flash");
z++;
}
_root.FlagFirst = true;
_root.mcRestart.gotoAndPlay(2);
Symbol 129 MovieClip Frame 1
z = 1;
while (z < _root.wordsize) {
_root["mcLetter" + z].txtLetter.textColor = 16711680 /* 0xFF0000 */;
z++;
}
_root.FlagFirst = true;
Symbol 131 MovieClip Frame 29
_root.mcStart.gotoAndPlay("in");
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 60
_root.mcStart.gotoAndPlay("in");