Frame 1
if ((getProperty("scenery", _alpha) < 100) && (_root.getBytesLoaded() < (_root.getBytesTotal() / 2.5))) {
setProperty("scenery", _alpha , getProperty("scenery", _alpha) + 1);
play();
} else {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (1);
Frame 4
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
play();
} else {
gotoAndStop (6);
}
if (getProperty("scenery", _alpha) < 100) {
setProperty("scenery", _alpha , getProperty("scenery", _alpha) + 1);
}
Frame 5
gotoAndPlay (4);
Frame 6
setProperty("scenery", _alpha , "100");
stop();
Frame 7
level = "1";
health = "6";
hit = "0";
fort = "12";
score = "0";
snowcount = "0";
snow_amount = "12";
santa_total = "10";
santa_amount = santa_total;
santacount = "0";
santa_name = "0";
ballcount = "0";
redballcount = "0";
redstepscount = "0";
bluestepscount = "0";
target_x = "0";
target_y = "0";
red_tolerance = "30";
blue_tolerance = "30";
tellTarget ("/score controller") {
gotoAndPlay (1);
};
tellTarget ("/santa/santa_sprite") {
gotoAndStop (1);
};
tellTarget ("/footstep") {
gotoAndStop (1);
};
tellTarget ("/bluestep") {
gotoAndStop (1);
};
tellTarget ("/crash") {
gotoAndStop (1);
};
tellTarget ("/tar/boy") {
gotoAndStop (1);
};
play();
Frame 11
pos_x = "0";
pos_y = "0";
red_pos_x = "0";
red_pos_y = "0";
shoot_x = "0";
shoot_y = "0";
mouse_x = "0";
mouse_y = "0";
newmouse_x = "0";
newmouse_y = "0";
duplicateMovieClip ("/tar", "tar1", 5000);
duplicateMovieClip ("/square", "square1", 7000);
loadMovie ("lose_life.swf", "/container_life");
loadMovie ("lose_fort.swf", "/container_fort");
loadMovie ("win.swf", "/container_win");
Mouse.show();
Frame 16
stop();
Frame 21
removeMovieClip("/aas");
removeMovieClip("/santa1");
removeMovieClip("/santa2");
removeMovieClip("/santa3");
removeMovieClip("/santa4");
removeMovieClip("/santa5");
removeMovieClip("/santa6");
removeMovieClip("/santa7");
removeMovieClip("/santa8");
removeMovieClip("/santa9");
removeMovieClip("/santa10");
removeMovieClip("/tar1");
Mouse.show();
tellTarget ("/container_win") {
gotoAndPlay (2);
};
tellTarget ("/" add /:santa_name) {
gotoAndPlay ("end");
};
stop();
Frame 31
removeMovieClip("/aas");
removeMovieClip("/santa1");
removeMovieClip("/santa2");
removeMovieClip("/santa3");
removeMovieClip("/santa4");
removeMovieClip("/santa5");
removeMovieClip("/santa6");
removeMovieClip("/santa7");
removeMovieClip("/santa8");
removeMovieClip("/santa9");
removeMovieClip("/santa10");
removeMovieClip("/tar1");
Mouse.show();
tellTarget ("/container_life") {
gotoAndPlay (2);
};
tellTarget ("/" add /:santa_name) {
gotoAndPlay ("end");
};
stop();
Frame 41
removeMovieClip("/aas");
removeMovieClip("/santa1");
removeMovieClip("/santa2");
removeMovieClip("/santa3");
removeMovieClip("/santa4");
removeMovieClip("/santa5");
removeMovieClip("/santa6");
removeMovieClip("/santa7");
removeMovieClip("/santa8");
removeMovieClip("/santa9");
removeMovieClip("/santa10");
removeMovieClip("/tar1");
Mouse.show();
tellTarget ("/container_fort") {
gotoAndPlay (2);
};
tellTarget ("/" add /:santa_name) {
gotoAndPlay ("end");
};
stop();
Frame 51
level = "2";
health = "6";
hit = "0";
fort = "12";
score = "0";
snowcount = "0";
snow_amount = "12";
santa_total = "10";
santa_amount = santa_total;
santacount = "0";
santa_name = "0";
ballcount = "0";
redballcount = "0";
redstepscount = "0";
bluestepscount = "0";
target_x = "0";
target_y = "0";
red_tolerance = "30";
blue_tolerance = "30";
last_one = "0";
tellTarget ("/score controller") {
gotoAndPlay (1);
};
tellTarget ("/santa/santa_sprite") {
gotoAndStop (1);
};
tellTarget ("/footstep") {
gotoAndStop (1);
};
tellTarget ("/bluestep") {
gotoAndStop (1);
};
tellTarget ("/crash") {
gotoAndStop (1);
};
tellTarget ("/tar/boy") {
gotoAndStop (1);
};
play();
Frame 55
pos_x = "0";
pos_y = "0";
red_pos_x = "0";
red_pos_y = "0";
mouse_x = "0";
mouse_y = "0";
newmouse_x = "0";
newmouse_y = "0";
duplicateMovieClip ("/tar", "tar1", 5000);
duplicateMovieClip ("/square", "square1", 7000);
loadMovie ("lose_life.swf", "/container_life");
loadMovie ("lose_fort.swf", "/container_fort");
loadMovie ("win.swf", "/container_win");
Mouse.show();
Frame 60
stop();
Frame 65
removeMovieClip("/tar1");
removeMovieClip("/santa1");
removeMovieClip("/santa2");
removeMovieClip("/santa3");
removeMovieClip("/santa4");
removeMovieClip("/santa5");
removeMovieClip("/santa6");
removeMovieClip("/santa7");
removeMovieClip("/santa8");
removeMovieClip("/santa9");
removeMovieClip("/santa10");
removeMovieClip("/aas");
removeMovieClip("/healthpak1");
tellTarget ("/container_win") {
gotoAndPlay (2);
};
tellTarget ("/redsanta_meter") {
gotoAndStop (1);
};
Mouse.show();
stop();
Frame 75
removeMovieClip("/aas");
removeMovieClip("/santa1");
removeMovieClip("/santa2");
removeMovieClip("/santa3");
removeMovieClip("/santa4");
removeMovieClip("/santa5");
removeMovieClip("/santa6");
removeMovieClip("/santa7");
removeMovieClip("/santa8");
removeMovieClip("/santa9");
removeMovieClip("/santa10");
removeMovieClip("/tar1");
removeMovieClip("/healthpak1");
tellTarget ("/container_life") {
gotoAndPlay (2);
};
tellTarget ("/health_meter") {
gotoAndStop (1);
};
Mouse.show();
stop();
Frame 85
removeMovieClip("/aas");
removeMovieClip("/santa1");
removeMovieClip("/santa2");
removeMovieClip("/santa3");
removeMovieClip("/santa4");
removeMovieClip("/santa5");
removeMovieClip("/santa6");
removeMovieClip("/santa7");
removeMovieClip("/santa8");
removeMovieClip("/santa9");
removeMovieClip("/santa10");
removeMovieClip("/tar1");
removeMovieClip("/healthpak1");
tellTarget ("/container_fort") {
gotoAndPlay (2);
};
tellTarget ("/igloo_meter") {
gotoAndStop (1);
};
Mouse.show();
stop();
Frame 95
level = "3";
health = "6";
hit = "0";
fort = "12";
score = "0";
snowcount = "0";
snow_amount = "12";
santa_total = "10";
santa_amount = santa_total;
santacount = "0";
santa_name = "0";
santa_x = "0";
ballcount = "0";
redballcount = "0";
redstepscount = "0";
bluestepscount = "0";
target_x = "0";
target_y = "0";
red_tolerance = "30";
blue_tolerance = "30";
last_one = "0";
inrange = "";
depth_amount = "10";
depthcount = "0";
wave = "1";
sword_precision = "6";
tellTarget ("/score controller") {
gotoAndPlay (1);
};
tellTarget ("/santa/santa_sprite") {
gotoAndStop (1);
};
tellTarget ("/footstep") {
gotoAndStop (1);
};
tellTarget ("/bluestep") {
gotoAndStop (1);
};
tellTarget ("/crash") {
gotoAndStop (1);
};
tellTarget ("/tar/boy") {
gotoAndStop (1);
};
tellTarget ("/ravine zoom") {
gotoAndPlay (45);
};
play();
Frame 99
pos_x = "0";
pos_y = "0";
red_pos_x = "0";
red_pos_y = "0";
mouse_x = "0";
mouse_y = "0";
newmouse_x = "0";
newmouse_y = "0";
duplicateMovieClip ("/tar", "tar1", 5000);
loadMovie ("lose_life3.swf", "/container_life");
loadMovie ("lose_fort3.swf", "/container_fort");
loadMovie ("win3.swf", "/container_win");
Mouse.show();
Frame 104
stop();
Frame 109
removeMovieClip("/tar1");
removeMovieClip("/santa1");
removeMovieClip("/santa2");
removeMovieClip("/santa3");
removeMovieClip("/santa4");
removeMovieClip("/santa5");
removeMovieClip("/santa6");
removeMovieClip("/santa7");
removeMovieClip("/santa8");
removeMovieClip("/santa9");
removeMovieClip("/santa10");
removeMovieClip("/aas");
removeMovieClip("/healthpak1");
removeMovieClip("/scenery1");
removeMovieClip("/scenery2");
tellTarget ("/container_win") {
gotoAndPlay (2);
};
tellTarget ("/redsanta_meter") {
gotoAndStop (1);
};
Mouse.show();
stop();
Frame 119
removeMovieClip("/aas");
removeMovieClip("/santa1");
removeMovieClip("/santa2");
removeMovieClip("/santa3");
removeMovieClip("/santa4");
removeMovieClip("/santa5");
removeMovieClip("/santa6");
removeMovieClip("/santa7");
removeMovieClip("/santa8");
removeMovieClip("/santa9");
removeMovieClip("/santa10");
removeMovieClip("/tar1");
removeMovieClip("/healthpak1");
removeMovieClip("/scenery1");
removeMovieClip("/scenery2");
tellTarget ("/container_life") {
gotoAndPlay (2);
};
tellTarget ("/health_meter") {
gotoAndStop (1);
};
Mouse.show();
stop();
Frame 129
removeMovieClip("/aas");
removeMovieClip("/santa1");
removeMovieClip("/santa2");
removeMovieClip("/santa3");
removeMovieClip("/santa4");
removeMovieClip("/santa5");
removeMovieClip("/santa6");
removeMovieClip("/santa7");
removeMovieClip("/santa8");
removeMovieClip("/santa9");
removeMovieClip("/santa10");
removeMovieClip("/tar1");
removeMovieClip("/healthpak1");
removeMovieClip("/scenery1");
removeMovieClip("/scenery2");
tellTarget ("/container_fort") {
gotoAndPlay (2);
};
tellTarget ("/igloo_meter") {
gotoAndStop (1);
};
Mouse.show();
stop();
Frame 140
loadMovie ("duel_lose.swf", "/container_lose");
loadMovie ("duel_win.swf", "/container_win");
toplimit = 300;
bottomlimit = 350;
leftlimit = 75;
rightlimit = 475;
startDrag ("/mouse", true, _root.leftlimit, _root.toplimit, _root.rightlimit, _root.bottomlimit);
level = "4";
nj_health = 100;
nj_weapon = 100;
nj_hit = 4;
nj_state = "on";
sm_health = 100;
sm_armor = 100;
sm_hit = 4;
Frame 142
stop();
Frame 149
tellTarget ("/container_win") {
gotoAndPlay (2);
};
stop();
Frame 159
tellTarget ("/container_lose") {
gotoAndPlay (2);
};
stop();
Symbol 28 MovieClip Frame 512
stop();
Symbol 147 Button
on (release) {
gotoAndPlay (7);
}
Symbol 149 Button
on (release, releaseOutside) {
Set("/:pos_x", _x);
Set("/:pos_y", _y);
tellTarget ("boy") {
gotoAndPlay ("shoot");
};
gotoAndPlay (5);
}
Symbol 220 MovieClip Frame 1
stop();
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
Symbol 220 MovieClip Frame 2
tellTarget ("/walk controller") {
gotoAndPlay ("stop track");
};
tellTarget ("/drag contoller") {
gotoAndPlay ("stop drag");
};
Symbol 220 MovieClip Frame 7
if (Number(/:snowcount) < Number(/:snow_amount)) {
Set("/:ballcount", Number(/:ballcount) + 1);
duplicateMovieClip ("/ball", "ball" add /:ballcount, Number(/:ballcount) + 4000);
setProperty("/ball" add /:ballcount, _x , /:pos_x);
setProperty("/ball" add /:ballcount, _y , /:pos_y);
tellTarget ("/ball" add /:ballcount) {
gotoAndPlay (3);
};
tellTarget ("/tar1") {
gotoAndPlay ("shoot");
};
} else {
Set("/:snowcount", "0");
}
tellTarget ("/walk controller") {
gotoAndPlay (1);
};
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
Symbol 220 MovieClip Frame 12
gotoAndStop (1);
Symbol 220 MovieClip Frame 13
play();
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
if ((/:new_mousey < /:mousey) and (/:mousex != /:new_mousex)) {
Set("/:bluestepcount", Number(/:bluestepcount) + 1);
duplicateMovieClip ("/bluestep", "bluestep" add /:bluestepcount, Number(/:bluestepcount) + 5500);
setProperty("/bluestep" add /:bluestepcount, _x , /:new_mousex - 30);
setProperty("/bluestep" add /:bluestepcount, _y , /:new_mousey + 125);
} else if ((/:mousey < /:new_mousey) and (/:mousex != /:new_mousex)) {
Set("/:bluestepcount", Number(/:bluestepcount) + 1);
duplicateMovieClip ("/bluestep", "bluestep" add /:bluestepcount, Number(/:bluestepcount) + 4500);
setProperty("/bluestep" add /:bluestepcount, _x , /:new_mousex - 30);
setProperty("/bluestep" add /:bluestepcount, _y , /:new_mousey + 125);
} else {
Set("/:bluestepcount", Number(/:bluestepcount) + 1);
duplicateMovieClip ("/bluestep", "bluestep" add /:bluestepcount, Number(/:bluestepcount) + 4500);
setProperty("/bluestep" add /:bluestepcount, _x , /:new_mousex - 30);
setProperty("/bluestep" add /:bluestepcount, _y , /:new_mousey + 125);
}
Symbol 220 MovieClip Frame 20
gotoAndPlay (1);
Symbol 220 MovieClip Frame 21
tellTarget ("/drag contoller") {
gotoAndPlay ("stop drag");
};
tellTarget ("/tar1") {
gotoAndPlay ("off");
};
tellTarget ("/walk controller") {
gotoAndPlay ("stop track");
};
Symbol 220 MovieClip Frame 41
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
tellTarget ("/tar1") {
gotoAndStop ("on");
};
tellTarget ("/walk controller") {
gotoAndPlay (1);
};
gotoAndStop (1);
Symbol 220 MovieClip Frame 45
gotoAndStop (1);
Symbol 220 MovieClip Frame 55
if (Number(/:snowcount) < Number(/:snow_amount)) {
Set("/:ballcount", Number(/:ballcount) + 1);
duplicateMovieClip ("/ball", "ball" add /:ballcount, Number(/:ballcount) + 4000);
setProperty("/ball" add /:ballcount, _x , /:pos_x + 20);
setProperty("/ball" add /:ballcount, _y , /:pos_y);
tellTarget ("/ball" add /:ballcount) {
gotoAndPlay (3);
};
tellTarget ("/tar1") {
gotoAndPlay ("shoot");
};
} else {
Set("/:snowcount", "0");
}
tellTarget ("/walk controller") {
gotoAndPlay (1);
};
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
Symbol 220 MovieClip Frame 56
if (Number(/:snowcount) < Number(/:snow_amount)) {
Set("/:ballcount", Number(/:ballcount) + 1);
duplicateMovieClip ("/ball", "ball" add /:ballcount, Number(/:ballcount) + 4000);
setProperty("/ball" add /:ballcount, _x , /:pos_x - 20);
setProperty("/ball" add /:ballcount, _y , /:pos_y);
tellTarget ("/ball" add /:ballcount) {
gotoAndPlay (3);
};
tellTarget ("/tar1") {
gotoAndPlay ("shoot");
};
} else {
Set("/:snowcount", "0");
}
tellTarget ("/walk controller") {
gotoAndPlay (1);
};
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
Symbol 220 MovieClip Frame 57
if (Number(/:snowcount) < Number(/:snow_amount)) {
Set("/:ballcount", Number(/:ballcount) + 1);
duplicateMovieClip ("/ball", "ball" add /:ballcount, Number(/:ballcount) + 4000);
setProperty("/ball" add /:ballcount, _x , /:pos_x + 40);
setProperty("/ball" add /:ballcount, _y , /:pos_y);
tellTarget ("/ball" add /:ballcount) {
gotoAndPlay (3);
};
tellTarget ("/tar1") {
gotoAndPlay ("shoot");
};
} else {
Set("/:snowcount", "0");
}
tellTarget ("/walk controller") {
gotoAndPlay (1);
};
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
Symbol 220 MovieClip Frame 58
if (Number(/:snowcount) < Number(/:snow_amount)) {
Set("/:ballcount", Number(/:ballcount) + 1);
duplicateMovieClip ("/ball", "ball" add /:ballcount, Number(/:ballcount) + 4000);
setProperty("/ball" add /:ballcount, _x , /:pos_x - 40);
setProperty("/ball" add /:ballcount, _y , /:pos_y);
tellTarget ("/ball" add /:ballcount) {
gotoAndPlay (3);
};
tellTarget ("/tar1") {
gotoAndPlay ("shoot");
};
} else {
Set("/:snowcount", "0");
}
tellTarget ("/walk controller") {
gotoAndPlay (1);
};
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
Symbol 220 MovieClip Frame 65
if (Number(/:snowcount) < Number(/:snow_amount)) {
Set("/:ballcount", Number(/:ballcount) + 1);
duplicateMovieClip ("/ball", "ball" add /:ballcount, Number(/:ballcount) + 4000);
setProperty("/ball" add /:ballcount, _x , /:pos_x + 30);
setProperty("/ball" add /:ballcount, _y , /:pos_y);
tellTarget ("/ball" add /:ballcount) {
gotoAndPlay (3);
};
tellTarget ("/tar1") {
gotoAndPlay ("shoot");
};
} else {
Set("/:snowcount", "0");
}
tellTarget ("/walk controller") {
gotoAndPlay (1);
};
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
Symbol 220 MovieClip Frame 66
if (Number(/:snowcount) < Number(/:snow_amount)) {
Set("/:ballcount", Number(/:ballcount) + 1);
duplicateMovieClip ("/ball", "ball" add /:ballcount, Number(/:ballcount) + 4000);
setProperty("/ball" add /:ballcount, _x , /:pos_x - 30);
setProperty("/ball" add /:ballcount, _y , /:pos_y);
tellTarget ("/ball" add /:ballcount) {
gotoAndPlay (3);
};
tellTarget ("/tar1") {
gotoAndPlay ("shoot");
};
} else {
Set("/:snowcount", "0");
}
tellTarget ("/walk controller") {
gotoAndPlay (1);
};
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
Symbol 220 MovieClip Frame 67
if (Number(/:snowcount) < Number(/:snow_amount)) {
Set("/:ballcount", Number(/:ballcount) + 1);
duplicateMovieClip ("/ball", "ball" add /:ballcount, Number(/:ballcount) + 4000);
setProperty("/ball" add /:ballcount, _x , /:pos_x + 60);
setProperty("/ball" add /:ballcount, _y , /:pos_y);
tellTarget ("/ball" add /:ballcount) {
gotoAndPlay (3);
};
tellTarget ("/tar1") {
gotoAndPlay ("shoot");
};
} else {
Set("/:snowcount", "0");
}
tellTarget ("/walk controller") {
gotoAndPlay (1);
};
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
Symbol 220 MovieClip Frame 68
if (Number(/:snowcount) < Number(/:snow_amount)) {
Set("/:ballcount", Number(/:ballcount) + 1);
duplicateMovieClip ("/ball", "ball" add /:ballcount, Number(/:ballcount) + 4000);
setProperty("/ball" add /:ballcount, _x , /:pos_x - 60);
setProperty("/ball" add /:ballcount, _y , /:pos_y);
tellTarget ("/ball" add /:ballcount) {
gotoAndPlay (3);
};
tellTarget ("/tar1") {
gotoAndPlay ("shoot");
};
} else {
Set("/:snowcount", "0");
}
tellTarget ("/walk controller") {
gotoAndPlay (1);
};
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 10
gotoAndStop (1);
Symbol 221 MovieClip Frame 35
gotoAndStop (1);
Symbol 224 MovieClip Frame 1
original_y = _y;
bounce_up = "25";
throwup_speed = "20";
bounce_down = "-30";
falldown_speed = "8";
ballscale = "100";
ballscale_UPgradient = "20";
ballscale_DOWNgradient = "18";
shot_tolerance_x = "20";
shot_tolerance_y = "30";
stop();
Symbol 224 MovieClip Frame 3
pos_x = _x;
pos_y = _y;
if (Number(original_y - pos_y) < Number(bounce_up)) {
_y = (pos_y - throwup_speed);
_xscale = ballscale;
_yscale = ballscale;
ballscale = ballscale - ballscale_UPgradient;
} else {
gotoAndPlay (6);
}
play();
Symbol 224 MovieClip Frame 5
gotoAndPlay (3);
Symbol 224 MovieClip Frame 6
pos_x = _x;
pos_y = _y;
if (Number(pos_y - original_y) < Number(bounce_down)) {
_y = (Number(pos_y) + Number(falldown_speed));
_xscale = ballscale;
_yscale = ballscale;
ballscale = ballscale - ballscale_DOWNgradient;
dd = "1";
while (Number(Number(/:santa_amount) + 1) >= Number(dd)) {
gg = "/santa" add dd;
if ((((Number(_y) < Number(Number(getProperty(gg, _y)) + Number(shot_tolerance_y))) and (Number(getProperty(gg, _y) - shot_tolerance_y) < Number(_y))) and (Number(getProperty(gg, _x) - shot_tolerance_x) < Number(_x))) and (Number(_x) < Number(Number(getProperty(gg, _x)) + Number(shot_tolerance_x)))) {
tellTarget (gg) {
gotoAndPlay ("die");
};
Set("/:score", Number(/:score) + 1);
gotoAndPlay (10);
}
dd = Number(dd) + 1;
}
} else {
gotoAndPlay (10);
}
play();
Symbol 224 MovieClip Frame 8
gotoAndPlay (6);
Symbol 224 MovieClip Frame 10
removeMovieClip("");
Symbol 224 MovieClip Frame 13
stop();
Symbol 311 MovieClip Frame 16
stop();
Symbol 311 MovieClip Frame 25
Set("/:shoot_x", getProperty(_parent, _x));
Set("/:shoot_y", getProperty(_parent, _y));
if (Number(/:snowcount) < Number(/:snow_amount)) {
Set("/:redballcount", Number(/:redballcount) + 1);
duplicateMovieClip ("/red ball", "red ball" add /:redballcount, Number(/:redballcount) + 3000);
Set("/:redball_name", "red ball" add /:redballcount);
setProperty("/red ball" add /:redballcount, _x , /:shoot_x);
setProperty("/red ball" add /:redballcount, _y , /:shoot_y);
tellTarget ("/red ball" add /:redballcount) {
gotoAndPlay (3);
};
} else {
Set("/:snowcount", "0");
}
Symbol 311 MovieClip Frame 37
gotoAndPlay (29);
Symbol 311 MovieClip Frame 62
stop();
Symbol 313 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 3
play();
_xscale = "80";
_yscale = "80";
_alpha = "0";
Set("/:santa_name", _name);
y_limit = random(25) + 175;
Symbol 313 MovieClip Frame 5
if (100 >= _alpha) {
_alpha = (_alpha + 20);
play();
} else {
play();
}
Symbol 313 MovieClip Frame 7
if (((Number(_y) < y_limit) and (366 < Number(_x))) and Number(466 >= _x)) {
_y = (_y + 10);
_x = (_x + 10);
_xscale = (_xscale + Number((_y / 220) * 20));
_yscale = (_yscale + Number((_y / 220) * 20));
Set("/:redstepcount", Number(/:redstepcount) + 1);
duplicateMovieClip ("/footstep", "footstep" add /:redstepcount, Number(/:redstepcount) + 1500);
setProperty("/footstep" add /:redstepcount, _x , /:red_pos_x + 15);
setProperty("/footstep" add /:redstepcount, _y , /:red_pos_y + 25);
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
gotoAndPlay (5);
} else if ((Number(_y) < y_limit) and (466 < Number(_x))) {
_y = (_y + 10);
_x = (_x - 20);
_xscale = (_xscale + Number((_y / 220) * 20));
_yscale = (_yscale + Number((_y / 220) * 20));
Set("/:redstepcount", Number(/:redstepcount) + 1);
duplicateMovieClip ("/footstep", "footstep" add /:redstepcount, Number(/:redstepcount) + 1500);
setProperty("/footstep" add /:redstepcount, _x , /:red_pos_x + 15);
setProperty("/footstep" add /:redstepcount, _y , /:red_pos_y + 25);
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
gotoAndPlay (5);
} else if (((Number(_y) < y_limit) and (183 < Number(_x))) and (Number(_x) < 366)) {
_y = (_y + 5);
_xscale = (_xscale + Number((_y / 220) * 20));
_yscale = (_yscale + Number((_y / 220) * 20));
Set("/:redstepcount", Number(/:redstepcount) + 1);
_y = (_y + 3);
_x = (_x + 3);
duplicateMovieClip ("/footstep", "footstep" add /:redstepcount, Number(/:redstepcount) + 1500);
setProperty("/footstep" add /:redstepcount, _x , /:red_pos_x + 20);
setProperty("/footstep" add /:redstepcount, _y , /:red_pos_y + 25);
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
gotoAndPlay (5);
} else if ((Number(_y) < y_limit) and (Number(_x) < 183)) {
_y = (_y + 10);
_x = (_x - 10);
_xscale = (_xscale + Number((_y / 220) * 20));
_yscale = (_yscale + Number((_y / 220) * 20));
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
Set("/:redstepcount", Number(/:redstepcount) + 1);
duplicateMovieClip ("/footstep", "footstep" add /:redstepcount, Number(/:redstepcount) + 1500);
setProperty("/footstep" add /:redstepcount, _x , /:red_pos_x + 25);
setProperty("/footstep" add /:redstepcount, _y , /:red_pos_y + 25);
gotoAndPlay (5);
} else {
tellTarget ("santa_sprite") {
gotoAndPlay ("shoot");
};
gotoAndPlay (15);
}
Symbol 313 MovieClip Frame 15
if (28 >= Number(getProperty("santa_sprite", _currentframe))) {
play();
} else {
gotoAndPlay (25);
}
Symbol 313 MovieClip Frame 16
gotoAndPlay (15);
Symbol 313 MovieClip Frame 25
if ((125 < Number(_y)) and (275 < Number(_x))) {
_y = (_y - 10);
_x = (_x - 10);
_xscale = (_xscale - Number((_y / 220) * 20));
_yscale = (_yscale - Number((_y / 220) * 20));
Set("/:footstepcount", Number(/:footstepcount) + 1);
duplicateMovieClip ("/footstep", "footstep" add /:footstepcount, Number(/:footstepcount) + 2500);
setProperty("/footstep" add /:footstepcount, _x , /:red_pos_x + 15);
setProperty("/footstep" add /:footstepcount, _y , /:red_pos_y + 25);
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
tellTarget ("santa_sprite") {
gotoAndPlay ("run");
};
} else if ((125 < Number(_y)) and (Number(_x) < 275)) {
_y = (_y - 10);
_x = (_x + 10);
_xscale = (_xscale - Number((_y / 220) * 20));
_yscale = (_yscale - Number((_y / 220) * 20));
Set("/:footstepcount", Number(/:footstepcount) + 1);
duplicateMovieClip ("/footstep", "footstep" add /:footstepcount, Number(/:footstepcount) + 2500);
setProperty("/footstep" add /:footstepcount, _x , /:red_pos_x + 25);
setProperty("/footstep" add /:footstepcount, _y , /:red_pos_y + 25);
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
tellTarget ("santa_sprite") {
gotoAndPlay ("run");
};
} else {
gotoAndPlay (80);
}
Symbol 313 MovieClip Frame 27
gotoAndPlay (25);
Symbol 313 MovieClip Frame 40
_name = "aas";
tellTarget ("santa_sprite") {
gotoAndPlay ("hit");
};
Symbol 313 MovieClip Frame 70
removeMovieClip("");
Symbol 313 MovieClip Frame 85
removeMovieClip("");
Symbol 317 MovieClip Frame 1
original_y = _y;
bounce_up = "15";
throwup_speed = "10";
bounce_down = "15";
falldown_speed = "50";
ballscale = "80";
ballscale_UPgradient = "160";
ballscale_DOWNgradient = "8";
tolerance = "60";
stop();
Symbol 317 MovieClip Frame 3
pos_x = _x;
pos_y = _y;
if (Number(original_y - pos_y) < Number(bounce_up)) {
_y = (pos_y - throwup_speed);
_xscale = ballscale;
_yscale = ballscale;
ballscale = ballscale - ballscale_UPgradient;
} else {
gotoAndPlay (6);
}
play();
Symbol 317 MovieClip Frame 5
gotoAndPlay (3);
Symbol 317 MovieClip Frame 6
pos_x = _x;
pos_y = _y;
if (Number(pos_y - original_y) < Number(bounce_down)) {
_y = (Number(pos_y) + Number(falldown_speed));
_xscale = ballscale;
_yscale = ballscale;
ballscale = ballscale - ballscale_DOWNgradient;
} else {
gotoAndPlay (10);
}
play();
Symbol 317 MovieClip Frame 9
gotoAndPlay (6);
Symbol 317 MovieClip Frame 10
pos_x = _x;
pos_y = _y;
if ((((Number(pos_y) < Number(/:target_y + (tolerance * 2))) and (Number(/:target_y - tolerance) < Number(pos_y))) and (Number(/:target_x - tolerance) < Number(pos_x))) and (Number(pos_x) < Number(/:target_x + (tolerance / 3)))) {
Set("/:health", /:health - 1);
tellTarget ("/tar1/boy") {
gotoAndPlay ("hit");
};
gotoAndPlay (26);
} else {
gotoAndPlay (16);
}
Symbol 317 MovieClip Frame 16
duplicateMovieClip ("/crash", "crash1", 6000);
setProperty("/crash1", _x , _x);
setProperty("/crash1", _y , _y + 100);
setProperty("/crash1", _xscale , 300);
setProperty("/crash1", _yscale , 300);
tellTarget ("/crash1") {
gotoAndPlay (2);
duplicateMovieClip ("/scenery", "scenery1", 6500);
setProperty("/scenery1", _x , 275);
setProperty("/scenery1", _y , 195);
setProperty("/scenery1", _alpha , 50);
duplicateMovieClip ("/scenery", "scenery2", 7000);
setProperty("/scenery2", _alpha , 30);
myColor = new Color(_root.scenery2);
myColor.setRGB(13369344);
Set("/:fort", /:fort - 1);
};
gotoAndPlay (26);
Symbol 317 MovieClip Frame 30
removeMovieClip("");
removeMovieClip("/scenery1");
removeMovieClip("/scenery2");
Symbol 317 MovieClip Frame 31
stop();
Symbol 318 MovieClip Frame 13
removeMovieClip("");
gotoAndPlay (1);
Symbol 320 MovieClip Frame 1
startDrag ("/tar1", true, 20, 200, 520, 250);
Symbol 320 MovieClip Frame 2
gotoAndPlay (1);
Symbol 320 MovieClip Frame 10
stopDrag();
Symbol 320 MovieClip Frame 11
stop();
Symbol 322 MovieClip Frame 1
Set("/:target_x", getProperty("/tar1", _x));
Set("/:target_y", getProperty("/tar1", _y));
if ((250 >= /:target_y) and (/:target_y >= 233)) {
setProperty("/tar1", _xscale , 85);
setProperty("/tar1", _yscale , 85);
} else if ((232 >= /:target_y) and (/:target_y >= 216)) {
setProperty("/tar1", _xscale , 80);
setProperty("/tar1", _yscale , 80);
} else if ((215 >= /:target_y) and (/:target_y >= 200)) {
setProperty("/tar1", _xscale , 70);
setProperty("/tar1", _yscale , 70);
} else if ((201 >= /:target_y) and (/:target_y >= 150)) {
setProperty("/tar1", _xscale , 55);
setProperty("/tar1", _yscale , 55);
} else if ((151 >= /:target_y) and (/:target_y >= 100)) {
setProperty("/tar1", _xscale , 30);
setProperty("/tar1", _yscale , 30);
}
play();
Symbol 322 MovieClip Frame 2
gotoAndPlay (1);
Symbol 324 MovieClip Frame 1
play();
Symbol 324 MovieClip Frame 25
if (Number(/:santacount) < Number(/:santa_amount)) {
Set("/:santacount", Number(/:santacount) + 1);
if (200 >= /:santa_x) {
Set("/:santa_x", Number(random(350)) + 125);
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(12)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
gotoAndPlay (1);
} else if (280 >= /:santa_x) {
Set("/:santa_x", /:santa_x + Number(random(50) + 50));
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(12)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
gotoAndPlay (1);
} else if (280 < /:santa_x) {
Set("/:santa_x", /:santa_x - Number(random(100) + 100));
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(12)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
}
gotoAndPlay (1);
} else {
Set("/:santacount", "0");
Set("/:santa_name", "0");
gotoAndPlay (1);
}
Symbol 326 MovieClip Frame 1
Set("/:mousex", getProperty("/tar1", _x));
Set("/:mousey", getProperty("/tar1", _y));
Symbol 326 MovieClip Frame 2
Set("/:new_mousex", getProperty("/tar1", _x));
Set("/:new_mousey", getProperty("/tar1", _y));
Symbol 326 MovieClip Frame 3
if ((/:mousex != /:new_mousex) or (/:mousey != /:new_mousey)) {
tellTarget ("/tar1/boy") {
gotoAndPlay ("walk");
};
} else {
tellTarget ("/tar1/boy") {
gotoAndStop (1);
};
}
Symbol 326 MovieClip Frame 4
gotoAndPlay (1);
Symbol 326 MovieClip Frame 10
stop();
Symbol 328 MovieClip Frame 16
Set("/:redstepcount", "0");
Set("/:bluestepcount", "0");
removeMovieClip("");
Symbol 330 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 1
if (0 >= /:health) {
gotoAndStop (10);
tellTarget ("/") {
gotoAndStop ("lose health");
};
}
tellTarget ("/health_meter") {
gotoAndStop(/:health + 1);
};
Set("/:santa_amount", /:santa_total - /:score);
if (0 >= /:santa_amount) {
gotoAndStop (10);
tellTarget ("/") {
gotoAndStop ("win");
};
}
tellTarget ("/redsanta_meter") {
gotoAndStop(/:santa_amount + 1);
};
if (0 >= /:fort) {
gotoAndStop (10);
tellTarget ("/") {
gotoAndStop ("lose home");
};
}
tellTarget ("/igloo_meter") {
gotoAndStop(/:fort + 1);
};
Symbol 337 MovieClip Frame 2
gotoAndPlay (1);
Symbol 337 MovieClip Frame 10
stop();
Symbol 339 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 31
stop();
Symbol 348 Button
on (keyPress "w") {
gotoAndPlay (21);
}
Symbol 349 Button
on (keyPress "l") {
gotoAndPlay (31);
}
Symbol 350 Button
on (keyPress "x") {
gotoAndPlay (41);
}
Symbol 354 Button
on (release) {
gotoAndPlay (51);
}
Symbol 357 Button
on (release) {
gotoAndPlay (7);
}
Symbol 360 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 8
stop();
Symbol 371 MovieClip Frame 1
original_y = _y;
bounce_up = "25";
throwup_speed = "20";
bounce_down = "-30";
falldown_speed = "8";
ballscale = "150";
ballscale_UPgradient = "20";
ballscale_DOWNgradient = "40";
shot_tolerance_x = "100";
shot_tolerance_y = "100";
stop();
Symbol 371 MovieClip Frame 3
pos_x = _x;
pos_y = _y;
if (Number(original_y - pos_y) < Number(bounce_up)) {
_y = (pos_y - throwup_speed);
_xscale = ballscale;
_yscale = ballscale;
ballscale = ballscale - ballscale_UPgradient;
} else {
gotoAndPlay (6);
}
play();
Symbol 371 MovieClip Frame 5
gotoAndPlay (3);
Symbol 371 MovieClip Frame 6
pos_x = _x;
pos_y = _y;
if (Number(pos_y - original_y) < Number(bounce_down)) {
_y = (Number(pos_y) + Number(falldown_speed));
_xscale = ballscale;
_yscale = ballscale;
ballscale = ballscale - ballscale_DOWNgradient;
} else {
gotoAndPlay (10);
}
play();
Symbol 371 MovieClip Frame 9
gotoAndPlay (6);
Symbol 371 MovieClip Frame 10
pos_x = _x;
pos_y = _y;
if ((((Number(/:target_x - shot_tolerance_x) < Number(pos_x)) and (Number(pos_x) < Number(/:target_x + (shot_tolerance_x / 3)))) and (Number(/:target_y) < Number(pos_y))) and (Number(pos_y) < Number(/:target_y + (shot_tolerance_y + (shot_tolerance / 1.5))))) {
Set("/:health", /:health + 1);
tellTarget ("/tar1/boy") {
gotoAndPlay ("glow");
if (11 >= /:fort) {
Set("/:fort", /:fort + 1);
}
};
gotoAndPlay (26);
} else if (_alpha < 10) {
gotoAndPlay (26);
} else {
play();
}
Symbol 371 MovieClip Frame 13
_alpha = (_alpha - 10);
gotoAndPlay (10);
Symbol 371 MovieClip Frame 26
removeMovieClip("");
Symbol 371 MovieClip Frame 27
stop();
Symbol 373 MovieClip Frame 1
scale = Number(random(50)) + 30;
setProperty(_target, _x , (Number(../:x) + Number(random(12))) - 6);
setProperty(_target, _yscale , scale);
Symbol 375 MovieClip Frame 1
i = 1;
max = 60;
x = getProperty("fire", _x);
Symbol 375 MovieClip Frame 2
if (Number(max) >= Number(i)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
Symbol 375 MovieClip Frame 3
if (Number(max) >= Number(i)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
gotoAndPlay (2);
Symbol 377 MovieClip Frame 1
original_y = _y;
bounce_up = "15";
throwup_speed = "10";
bounce_down = "15";
falldown_speed = "50";
ballscale = "80";
ballscale_UPgradient = "160";
ballscale_DOWNgradient = "8";
tolerance = "60";
stop();
Symbol 377 MovieClip Frame 3
pos_x = _x;
pos_y = _y;
if (Number(original_y - pos_y) < Number(bounce_up)) {
_y = (pos_y - throwup_speed);
_xscale = ballscale;
_yscale = ballscale;
ballscale = ballscale - ballscale_UPgradient;
} else {
gotoAndPlay (6);
}
play();
Symbol 377 MovieClip Frame 5
gotoAndPlay (3);
Symbol 377 MovieClip Frame 6
pos_x = _x;
pos_y = _y;
if (Number(pos_y - original_y) < Number(bounce_down)) {
_y = (Number(pos_y) + Number(falldown_speed));
_xscale = ballscale;
_yscale = ballscale;
ballscale = ballscale - ballscale_DOWNgradient;
} else {
gotoAndPlay (10);
}
play();
Symbol 377 MovieClip Frame 9
gotoAndPlay (6);
Symbol 377 MovieClip Frame 10
pos_x = _x;
pos_y = _y;
if ((((Number(pos_y) < Number(/:target_y + (tolerance * 2))) and (Number(/:target_y - tolerance) < Number(pos_y))) and (Number(/:target_x - tolerance) < Number(pos_x))) and (Number(pos_x) < Number(/:target_x + (tolerance / 3)))) {
Set("/:health", /:health - 2);
tellTarget ("/tar1/boy") {
gotoAndPlay ("hit");
tellTarget ("/healthpak controller") {
gotoAndPlay(random(3) + 1);
};
};
gotoAndPlay (26);
} else {
gotoAndPlay (16);
}
Symbol 377 MovieClip Frame 16
duplicateMovieClip ("/crash", "crash1", 6000);
setProperty("/crash1", _x , _x);
setProperty("/crash1", _y , _y + 100);
setProperty("/crash1", _xscale , 300);
setProperty("/crash1", _yscale , 300);
tellTarget ("/crash1") {
gotoAndPlay (2);
duplicateMovieClip ("/scenery", "scenery1", 6500);
setProperty("/scenery1", _x , 275);
setProperty("/scenery1", _y , 195);
setProperty("/scenery1", _alpha , 50);
duplicateMovieClip ("/scenery", "scenery2", 7000);
setProperty("/scenery2", _alpha , 30);
myColor = new Color(_root.scenery2);
myColor.setRGB(13369344);
Set("/:fort", /:fort - 2);
};
gotoAndPlay (26);
Symbol 377 MovieClip Frame 30
removeMovieClip("");
removeMovieClip("/scenery1");
removeMovieClip("/scenery2");
Symbol 377 MovieClip Frame 31
stop();
Symbol 378 MovieClip Frame 1
play();
Symbol 378 MovieClip Frame 25
if (Number(/:santacount) < Number(/:santa_amount)) {
Set("/:santacount", Number(/:santacount) + 1);
if (200 >= /:santa_x) {
Set("/:santa_x", Number(random(350)) + 125);
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(12)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
gotoAndPlay (1);
} else if (280 >= /:santa_x) {
Set("/:santa_x", /:santa_x + Number(random(50) + 50));
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(12)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
gotoAndPlay (1);
} else if (/:santa_x >= 281) {
Set("/:santa_x", /:santa_x - Number(random(100) + 100));
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(12)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
}
gotoAndPlay (1);
} else {
Set("/:santacount", "0");
Set("/:santa_name", "0");
gotoAndPlay (1);
}
Symbol 380 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 2
gotoAndPlay (5);
Symbol 380 MovieClip Frame 3
gotoAndStop (1);
Symbol 380 MovieClip Frame 4
gotoAndPlay (5);
Symbol 380 MovieClip Frame 15
duplicateMovieClip ("/healthpak", "healthpak1", 4800);
if (275 >= /:target_x) {
setProperty("/healthpak1", _x , 275 + Number(random(100) + 100));
setProperty("/healthpak1", _y , Number(random(100)) + 275);
tellTarget ("/healthpak1") {
gotoAndPlay (3);
};
} else if (275 < /:target_x) {
setProperty("/healthpak1", _x , 275 - Number(random(100) + 100));
setProperty("/healthpak1", _y , Number(random(100)) + 275);
tellTarget ("/healthpak1") {
gotoAndPlay (3);
};
}
gotoAndStop (1);
Symbol 382 MovieClip Frame 1
if (0 >= /:health) {
gotoAndStop (10);
tellTarget ("/") {
gotoAndStop ("lose health2");
};
}
tellTarget ("/health_meter") {
gotoAndStop(/:health + 1);
};
Set("/:santa_amount", /:santa_total - /:score);
if (0 >= /:santa_amount) {
gotoAndStop (10);
tellTarget ("/") {
gotoAndStop ("win2");
};
}
tellTarget ("/redsanta_meter") {
gotoAndStop(/:santa_amount + 1);
};
if (0 >= /:fort) {
gotoAndStop (10);
tellTarget ("/") {
gotoAndStop ("lose home2");
};
}
tellTarget ("/igloo_meter") {
gotoAndStop(/:fort + 1);
};
Symbol 382 MovieClip Frame 2
gotoAndPlay (1);
Symbol 382 MovieClip Frame 10
stop();
Symbol 385 MovieClip Frame 31
stop();
Symbol 386 Button
on (keyPress "w") {
gotoAndPlay (65);
}
Symbol 387 Button
on (keyPress "l") {
gotoAndPlay (75);
}
Symbol 388 Button
on (keyPress "x") {
gotoAndPlay (85);
}
Symbol 389 Button
on (release) {
gotoAndStop (95);
}
Symbol 390 Button
on (release) {
gotoAndPlay (51);
}
Symbol 393 MovieClip Frame 1
stop();
Symbol 394 Button
on (release, releaseOutside) {
Set("/:pos_x", _x);
Set("/:pos_y", _y);
tellTarget ("boy") {
gotoAndPlay ("shoot");
};
gotoAndPlay (5);
}
Symbol 401 MovieClip Frame 1
play();
Symbol 401 MovieClip Frame 6
gotoAndPlay (1);
Symbol 441 MovieClip Frame 1
play();
Symbol 441 MovieClip Frame 8
gotoAndPlay (1);
Symbol 442 MovieClip Frame 1
tellTarget ("/walk controller") {
gotoAndPlay (1);
};
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
stop();
Symbol 442 MovieClip Frame 2
tellTarget ("/walk controller") {
gotoAndPlay ("stop track");
};
tellTarget ("/drag contoller") {
gotoAndPlay ("stop drag");
};
play();
Symbol 442 MovieClip Frame 7
if (Number(/:snowcount) < Number(/:snow_amount)) {
Set("/:ballcount", Number(/:ballcount) + 1);
duplicateMovieClip ("/ball", "ball" add /:ballcount, Number(/:ballcount) + 4000);
setProperty("/ball" add /:ballcount, _x , /:pos_x);
setProperty("/ball" add /:ballcount, _y , /:pos_y);
tellTarget ("/ball" add /:ballcount) {
gotoAndPlay (3);
};
} else {
Set("/:snowcount", "0");
}
Symbol 442 MovieClip Frame 12
gotoAndStop (1);
Symbol 442 MovieClip Frame 13
play();
if ((/:new_mousey < /:mousey) and (/:mousex != /:new_mousex)) {
Set("/:bluestepcount", Number(/:bluestepcount) + 1);
duplicateMovieClip ("/bluestep", "bluestep" add /:bluestepcount, Number(/:bluestepcount) + 5500);
setProperty("/bluestep" add /:bluestepcount, _x , /:new_mousex);
setProperty("/bluestep" add /:bluestepcount, _y , /:new_mousey + 50);
setProperty("/bluestep" add /:bluestepcount, _xscale , getProperty("/tar1", _xscale) + 20);
setProperty("/bluestep" add /:bluestepcount, _yscale , getProperty("/tar1", _yscale) + 20);
} else if ((/:mousey < /:new_mousey) and (/:mousex != /:new_mousex)) {
Set("/:bluestepcount", Number(/:bluestepcount) + 1);
duplicateMovieClip ("/bluestep", "bluestep" add /:bluestepcount, Number(/:bluestepcount) + 4500);
setProperty("/bluestep" add /:bluestepcount, _x , /:new_mousex);
setProperty("/bluestep" add /:bluestepcount, _y , /:new_mousey + 50);
setProperty("/bluestep" add /:bluestepcount, _xscale , getProperty("/tar1", _xscale) + 20);
setProperty("/bluestep" add /:bluestepcount, _yscale , getProperty("/tar1", _yscale) + 20);
} else {
Set("/:bluestepcount", Number(/:bluestepcount) + 1);
duplicateMovieClip ("/bluestep", "bluestep" add /:bluestepcount, Number(/:bluestepcount) + 4500);
setProperty("/bluestep" add /:bluestepcount, _x , /:new_mousex);
setProperty("/bluestep" add /:bluestepcount, _y , /:new_mousey + 50);
setProperty("/bluestep" add /:bluestepcount, _xscale , getProperty("/tar1", _xscale) + 20);
setProperty("/bluestep" add /:bluestepcount, _yscale , getProperty("/tar1", _yscale) + 20);
}
Symbol 442 MovieClip Frame 20
tellTarget ("/walk controller") {
gotoAndPlay (1);
};
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
gotoAndPlay (1);
Symbol 442 MovieClip Frame 21
tellTarget ("/tar1") {
gotoAndPlay ("off");
};
tellTarget ("/walk controller") {
gotoAndPlay ("stop track");
};
tellTarget ("/drag contoller") {
gotoAndPlay ("stop drag");
};
play();
Symbol 442 MovieClip Frame 41
tellTarget ("/drag contoller") {
gotoAndPlay (1);
};
tellTarget ("/walk controller") {
gotoAndPlay (1);
};
tellTarget ("/tar1") {
gotoAndStop ("on");
};
gotoAndStop (1);
Symbol 442 MovieClip Frame 42
play();
Symbol 442 MovieClip Frame 45
gotoAndStop (1);
Symbol 443 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 10
gotoAndStop (1);
Symbol 443 MovieClip Frame 15
play();
Symbol 443 MovieClip Frame 35
gotoAndStop (1);
Symbol 444 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 3
tolerance = "25";
timer = timer;
if ((((((getProperty(("/" add /:inrange) add "/santa_sprite", _currentframe) >= 17) and (20 >= getProperty(("/" add /:inrange) add "/santa_sprite", _currentframe))) and (Number(_y) < Number(getProperty("/" add /:inrange, _y) + tolerance))) and (Number(getProperty("/" add /:inrange, _y) - tolerance) < Number(_y))) and (Number(getProperty("/" add /:inrange, _x) - (tolerance * 3)) < Number(_x))) and Number(_x < Number(getProperty("/" add /:inrange, _x) + tolerance))) {
tellTarget ("/" add /:inrange) {
gotoAndPlay ("die");
};
Set("/:score", Number(/:score) + 1);
gotoAndPlay (10);
} else {
play();
}
Symbol 444 MovieClip Frame 4
timer = timer + 1;
if (timer < /:sword_precision) {
gotoAndPlay (3);
} else {
gotoAndPlay (10);
}
Symbol 444 MovieClip Frame 10
removeMovieClip("");
Symbol 444 MovieClip Frame 13
stop();
Symbol 504 MovieClip Frame 16
gotoAndPlay (1);
Symbol 504 MovieClip Frame 37
gotoAndPlay (29);
Symbol 504 MovieClip Frame 62
stop();
Symbol 506 MovieClip Frame 1
name = _name;
removeMovieClip("/scenery1");
removeMovieClip("/scenery2");
stop();
Symbol 506 MovieClip Frame 3
_xscale = "80";
_yscale = "80";
_alpha = "20";
Set("/:santa_name", _name);
tolerance = "25";
play();
Symbol 506 MovieClip Frame 5
pos_x = _x;
pos_y = _y;
tolerance = 25;
if (((((Number(pos_y) < Number(/:target_y + tolerance)) and (Number((/:target_y - tolerance) + 10) < Number(pos_y))) and (Number(/:target_x - (tolerance * 2)) < Number(pos_x))) and (Number(pos_x) < Number(/:target_x + (tolerance * 2)))) and (getProperty("/tar1/boy", _currentframe) < 21)) {
Set("/:inrange", _name);
tellTarget ("santa_sprite") {
gotoAndPlay ("shoot");
};
gotoAndPlay (15);
} else if ((Number(pos_y) < (Number(/:target_y) + tolerance)) and (375 < Number(pos_x))) {
_y = (_y + 10);
_x = (_x + 5);
_xscale = (_xscale + Number((_y / 220) * 40));
_yscale = (_yscale + Number((_y / 220) * 40));
Set("/:redstepcount", Number(/:redstepcount) + 1);
duplicateMovieClip ("/footstep", "footstep" add /:redstepcount, Number(/:redstepcount) + 1500);
setProperty("/footstep" add /:redstepcount, _x , /:red_pos_x + 15);
setProperty("/footstep" add /:redstepcount, _y , /:red_pos_y + 25);
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
gotoAndPlay (5);
} else if (((Number(pos_y) < (Number(/:target_y) + (tolerance / 2))) and (325 < Number(pos_x))) and (375 >= Number(pos_x))) {
_y = (_y + 10);
_x = (_x + 5);
_xscale = (_xscale + Number((_y / 220) * 40));
_yscale = (_yscale + Number((_y / 220) * 40));
Set("/:redstepcount", Number(/:redstepcount) + 1);
duplicateMovieClip ("/footstep", "footstep" add /:redstepcount, Number(/:redstepcount) + 1500);
setProperty("/footstep" add /:redstepcount, _x , /:red_pos_x + 15);
setProperty("/footstep" add /:redstepcount, _y , /:red_pos_y + 25);
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
gotoAndPlay (5);
} else if (((Number(pos_y) < /:target_y) and (300 < Number(pos_x))) and (325 >= Number(pos_x))) {
_y = (_y + 10);
_x = (_x + 3);
_xscale = (_xscale + Number((_y / 220) * 40));
_yscale = (_yscale + Number((_y / 220) * 40));
Set("/:redstepcount", Number(/:redstepcount) + 1);
duplicateMovieClip ("/footstep", "footstep" add /:redstepcount, Number(/:redstepcount) + 1500);
setProperty("/footstep" add /:redstepcount, _x , /:red_pos_x + 15);
setProperty("/footstep" add /:redstepcount, _y , /:red_pos_y + 25);
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
gotoAndPlay (5);
} else if (((Number(pos_y) < /:target_y) and (275 < Number(pos_x))) and (300 >= Number(pos_x))) {
_y = (_y + 5);
_xscale = (_xscale + Number((_y / 220) * 40));
_yscale = (_yscale + Number((_y / 220) * 40));
Set("/:redstepcount", Number(/:redstepcount) + 1);
_y = (_y + 3);
_x = (_x + 3);
duplicateMovieClip ("/footstep", "footstep" add /:redstepcount, Number(/:redstepcount) + 1500);
setProperty("/footstep" add /:redstepcount, _x , /:red_pos_x + 20);
setProperty("/footstep" add /:redstepcount, _y , /:red_pos_y + 25);
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
gotoAndPlay (5);
} else if (((Number(pos_y) < /:target_y) and (250 < Number(pos_x))) and (275 >= Number(pos_x))) {
_y = (_y + 10);
_x = (_x - 3);
_xscale = (_xscale + Number((_y / 220) * 40));
_yscale = (_yscale + Number((_y / 220) * 40));
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
Set("/:redstepcount", Number(/:redstepcount) + 1);
duplicateMovieClip ("/footstep", "footstep" add /:redstepcount, Number(/:redstepcount) + 1500);
setProperty("/footstep" add /:redstepcount, _x , /:red_pos_x + 25);
setProperty("/footstep" add /:redstepcount, _y , /:red_pos_y + 25);
gotoAndPlay (5);
} else if (((Number(pos_y) < (Number(/:target_y) + (tolerance / 2))) and (250 >= Number(pos_x))) and (200 < Number(pos_x))) {
_y = (_y + 10);
_x = (_x - 5);
_xscale = (_xscale + Number((_y / 220) * 40));
_yscale = (_yscale + Number((_y / 220) * 40));
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
Set("/:redstepcount", Number(/:redstepcount) + 1);
duplicateMovieClip ("/footstep", "footstep" add /:redstepcount, Number(/:redstepcount) + 1500);
setProperty("/footstep" add /:redstepcount, _x , /:red_pos_x + 25);
setProperty("/footstep" add /:redstepcount, _y , /:red_pos_y + 25);
gotoAndPlay (5);
} else if ((Number(pos_y) < (Number(/:target_y) + tolerance)) and (200 >= Number(pos_x))) {
_y = (_y + 10);
_x = (_x - 5);
_xscale = (_xscale + Number((_y / 220) * 40));
_yscale = (_yscale + Number((_y / 220) * 40));
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
Set("/:redstepcount", Number(/:redstepcount) + 1);
duplicateMovieClip ("/footstep", "footstep" add /:redstepcount, Number(/:redstepcount) + 1500);
setProperty("/footstep" add /:redstepcount, _x , /:red_pos_x + 25);
setProperty("/footstep" add /:redstepcount, _y , /:red_pos_y + 25);
gotoAndPlay (5);
} else {
gotoAndPlay (20);
}
Symbol 506 MovieClip Frame 7
if (100 >= _alpha) {
_alpha = (_alpha + 20);
gotoAndPlay (5);
} else {
gotoAndPlay (5);
}
Symbol 506 MovieClip Frame 15
pos_x = _x;
pos_y = _y;
tolerance = "25";
if (28 >= Number(getProperty("santa_sprite", _currentframe))) {
play();
} else if ((((Number(pos_y) < Number(/:target_y + (tolerance * 4))) and (Number(/:target_y - (tolerance * 4)) < Number(pos_y))) and (Number(/:target_x - (tolerance * 2)) < Number(pos_x))) and (Number(pos_x) < Number(/:target_x + (tolerance * 2)))) {
Set("/:health", /:health - 2);
tellTarget ("/drag contoller") {
gotoAndPlay ("stop drag");
};
tellTarget ("/tar1") {
gotoAndPlay ("off");
};
tellTarget ("/tar1/boy") {
gotoAndPlay ("hit");
};
tellTarget ("/healthpak controller") {
gotoAndPlay(random(3) + 1);
};
gotoAndPlay (20);
} else {
gotoAndPlay (5);
}
Symbol 506 MovieClip Frame 16
gotoAndPlay (15);
Symbol 506 MovieClip Frame 20
name = _name;
name = _name;
_name = "aas";
if (Number(/:depthcount) < Number(/:depth_amount)) {
Set("/:depthcount", Number(/:depthcount) + 1);
duplicateMovieClip ("", name, 5500 + /:depthcount);
tellTarget ("/" add name) {
gotoAndPlay ("run");
};
} else {
Set("/:depthcount", "0");
Set("/:depthcount", Number(/:depthcount) + 1);
duplicateMovieClip ("", name, 5500 + /:depthcount);
tellTarget ("/" add name) {
gotoAndPlay ("run");
};
}
gotoAndPlay (84);
Symbol 506 MovieClip Frame 25
name = _name;
if (((125 < Number(_y)) and (Number(_y) < 275)) and (275 < Number(_x))) {
_y = (_y + 10);
_x = (_x + 10);
_xscale = (_xscale + Number((_y / 220) * 40));
_yscale = (_yscale + Number((_y / 220) * 40));
Set("/:footstepcount", Number(/:footstepcount) + 1);
duplicateMovieClip ("/footstep", "footstep" add /:footstepcount, Number(/:footstepcount) + 2500);
setProperty("/footstep" add /:footstepcount, _x , /:red_pos_x + 15);
setProperty("/footstep" add /:footstepcount, _y , /:red_pos_y + 25);
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
tellTarget ("santa_sprite") {
gotoAndPlay ("run");
};
} else if (((125 < Number(_y)) and (Number(_y) < 275)) and (Number(_x) < 275)) {
_y = (_y + 10);
_x = (_x - 10);
_xscale = (_xscale + Number((_y / 220) * 40));
_yscale = (_yscale + Number((_y / 220) * 40));
Set("/:footstepcount", Number(/:footstepcount) + 1);
duplicateMovieClip ("/footstep", "footstep" add /:footstepcount, Number(/:footstepcount) + 2500);
setProperty("/footstep" add /:footstepcount, _x , /:red_pos_x + 25);
setProperty("/footstep" add /:footstepcount, _y , /:red_pos_y + 25);
Set("/:red_pos_x", Number(_x - 25));
Set("/:red_pos_y", Number(_y - 10));
tellTarget ("santa_sprite") {
gotoAndPlay ("run");
};
} else {
gotoAndPlay (74);
}
play();
Symbol 506 MovieClip Frame 27
gotoAndPlay (25);
Symbol 506 MovieClip Frame 40
_name = "aas";
tellTarget ("santa_sprite") {
gotoAndPlay ("hit");
};
Symbol 506 MovieClip Frame 70
removeMovieClip("");
Symbol 506 MovieClip Frame 74
name = _name;
tellTarget ("santa_sprite") {
gotoAndPlay ("shoot");
};
if (28 >= Number(getProperty("santa_sprite", _currentframe))) {
play();
} else {
gotoAndPlay (84);
}
Symbol 506 MovieClip Frame 78
duplicateMovieClip ("/crash", "crash1", 6000);
setProperty("/crash1", _x , _x);
setProperty("/crash1", _y , _y - 100);
setProperty("/crash1", _xscale , 300);
setProperty("/crash1", _yscale , 300);
tellTarget ("/crash1") {
gotoAndPlay (2);
duplicateMovieClip ("/scenery", "scenery1", 6500);
setProperty("/scenery1", _x , 275);
setProperty("/scenery1", _y , 195);
setProperty("/scenery1", _alpha , 50);
duplicateMovieClip ("/scenery", "scenery2", 7000);
setProperty("/scenery2", _alpha , 30);
myColor = new Color(_root.scenery2);
myColor.setRGB(13369344);
Set("/:fort", /:fort - 2);
};
Symbol 506 MovieClip Frame 82
removeMovieClip("");
removeMovieClip("/scenery1");
removeMovieClip("/scenery2");
gotoAndStop (1);
Symbol 506 MovieClip Frame 84
removeMovieClip("");
removeMovieClip("/scenery1");
removeMovieClip("/scenery2");
Symbol 506 MovieClip Frame 89
gotoAndStop (1);
Symbol 507 MovieClip Frame 1
startDrag ("/tar1", true, 75, 175, 475, 265);
Symbol 507 MovieClip Frame 2
gotoAndPlay (1);
Symbol 507 MovieClip Frame 10
stopDrag();
Symbol 507 MovieClip Frame 11
stop();
Symbol 508 MovieClip Frame 1
Set("/:target_x", getProperty("/tar1", _x));
Set("/:target_y", getProperty("/tar1", _y));
if ((275 >= /:target_y) and (/:target_y >= 233)) {
setProperty("/tar1", _xscale , 75);
setProperty("/tar1", _yscale , 75);
} else if ((232 >= /:target_y) and (/:target_y >= 216)) {
setProperty("/tar1", _xscale , 65);
setProperty("/tar1", _yscale , 65);
} else if ((215 >= /:target_y) and (/:target_y >= 200)) {
setProperty("/tar1", _xscale , 55);
setProperty("/tar1", _yscale , 55);
} else if ((201 >= /:target_y) and (/:target_y >= 150)) {
setProperty("/tar1", _xscale , 45);
setProperty("/tar1", _yscale , 45);
} else if ((151 >= /:target_y) and (/:target_y >= 100)) {
setProperty("/tar1", _xscale , 35);
setProperty("/tar1", _yscale , 35);
}
play();
Symbol 508 MovieClip Frame 2
gotoAndPlay (1);
Symbol 509 MovieClip Frame 1
Set("/:wave", "1");
play();
Symbol 509 MovieClip Frame 25
if (Number(/:santacount) < Number(/:santa_amount)) {
Set("/:santacount", Number(/:santacount) + 1);
if (200 >= /:santa_x) {
Set("/:santa_x", Number(random(165)) + 200);
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(25)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
gotoAndPlay (1);
} else if (280 >= /:santa_x) {
Set("/:santa_x", /:santa_x + Number(random(50) + 50));
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(25)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
gotoAndPlay (1);
} else if (/:santa_x >= 281) {
Set("/:santa_x", /:santa_x - Number(random(50) + 50));
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(25)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
}
gotoAndPlay (1);
} else {
Set("/:santacount", "0");
Set("/:santa_name", "0");
gotoAndPlay (1);
}
Symbol 509 MovieClip Frame 26
Set("/:wave", "2");
play();
Symbol 509 MovieClip Frame 46
if (Number(/:santacount) < Number(/:santa_amount)) {
Set("/:santacount", Number(/:santacount) + 1);
if (200 >= /:santa_x) {
Set("/:santa_x", Number(random(165)) + 200);
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(25)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
gotoAndPlay (26);
} else if (280 >= /:santa_x) {
Set("/:santa_x", /:santa_x + Number(random(50) + 50));
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(25)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
gotoAndPlay (26);
} else if (/:santa_x >= 281) {
Set("/:santa_x", /:santa_x - Number(random(50) + 50));
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(25)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
}
gotoAndPlay (26);
} else {
Set("/:santacount", "0");
Set("/:santa_name", "0");
gotoAndPlay (26);
}
Symbol 509 MovieClip Frame 51
Set("/:wave", "3");
play();
Symbol 509 MovieClip Frame 68
if (Number(/:santacount) < Number(/:santa_amount)) {
Set("/:santacount", Number(/:santacount) + 1);
if (200 >= /:santa_x) {
Set("/:santa_x", Number(random(165)) + 200);
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(25)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
gotoAndPlay (51);
} else if (280 >= /:santa_x) {
Set("/:santa_x", /:santa_x + Number(random(50) + 50));
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(25)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
gotoAndPlay (51);
} else if (/:santa_x >= 281) {
Set("/:santa_x", /:santa_x - Number(random(50) + 50));
duplicateMovieClip ("/santa", "santa" add /:santacount, 2000 - Number(/:santacount));
setProperty("/santa" add /:santacount, _x , /:santa_x);
setProperty("/santa" add /:santacount, _y , Number(random(25)) + 100);
tellTarget ("/santa" add /:santacount) {
gotoAndPlay (3);
tellTarget (("/santa" add /:santacount) add "/santa_sprite") {
gotoAndPlay (1);
};
};
}
gotoAndPlay (51);
} else {
Set("/:santacount", "0");
Set("/:santa_name", "0");
gotoAndPlay (51);
}
Symbol 513 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 1
if (0 >= /:health) {
gotoAndStop (10);
tellTarget ("/") {
gotoAndStop ("lose health3");
};
}
tellTarget ("/health_meter") {
gotoAndStop(/:health + 1);
};
Set("/:santa_amount", /:santa_total - /:score);
if ((0 >= /:santa_amount) and (/:wave == 3)) {
Set("/:sword_precision", /:sword_precision - 2);
gotoAndStop (10);
tellTarget ("/") {
gotoAndStop ("win3");
};
} else if ((0 >= /:santa_amount) and (/:wave == 2)) {
Set("/:santa_total", "10");
Set("/:score", "0");
Set("/:sword_precision", "4");
tellTarget ("/santa controller") {
gotoAndPlay ("level3");
};
} else if ((0 >= /:santa_amount) and (/:wave == 1)) {
Set("/:sword_precision", /:sword_precision + 1);
Set("/:santa_total", "10");
Set("/:score", "0");
tellTarget ("/santa controller") {
gotoAndPlay ("level2");
};
}
if (/:wave == 1) {
tellTarget ("/redsanta_meter") {
gotoAndStop(/:santa_amount + 21);
};
} else if (/:wave == 2) {
tellTarget ("/redsanta_meter") {
gotoAndStop(/:santa_amount + 11);
};
} else if (/:wave == 3) {
tellTarget ("/redsanta_meter") {
gotoAndStop(/:santa_amount + 1);
};
}
if (0 >= /:fort) {
gotoAndStop (10);
tellTarget ("/") {
gotoAndStop ("lose home3");
};
}
tellTarget ("/igloo_meter") {
gotoAndStop(/:fort + 1);
};
Symbol 515 MovieClip Frame 2
gotoAndPlay (1);
Symbol 515 MovieClip Frame 10
stop();
Symbol 518 MovieClip Frame 31
stop();
Symbol 519 Button
on (keyPress "w") {
gotoAndPlay (109);
}
Symbol 520 Button
on (keyPress "l") {
gotoAndPlay (119);
}
Symbol 521 Button
on (keyPress "x") {
gotoAndPlay (129);
}
Symbol 522 Button
on (release) {
gotoAndPlay (140);
}
Symbol 523 Button
on (release) {
gotoAndPlay (95);
}
Symbol 546 MovieClip Frame 1
wid = getProperty("pic", _width);
duplicateMovieClip ("pic", "pic2", 16386);
duplicateMovieClip ("pic", "pic3", 16387);
setProperty("pic2", _x , (getProperty("pic", _x) - wid) + 2);
setProperty("pic3", _x , getProperty("pic", _x) + wid);
speed = 8;
pos = 0;
Symbol 546 MovieClip Frame 2
pos = pos - speed;
if (pos < (-wid)) {
pos = wid + pos;
}
if (0 < pos) {
pos = (-wid) + pos;
}
_x = pos;
Symbol 546 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 546 MovieClip Frame 15
wid = getProperty("pic", _width);
duplicateMovieClip ("pic", "pic2", 16386);
duplicateMovieClip ("pic", "pic3", 16387);
setProperty("pic2", _x , (getProperty("pic", _x) - wid) + 2);
setProperty("pic3", _x , (getProperty("pic", _x) + wid) - 2);
speed = 8;
pos = 0;
Symbol 546 MovieClip Frame 16
pos = pos + speed;
if (wid < pos) {
pos = pos - wid;
}
_x = pos;
Symbol 546 MovieClip Frame 17
gotoAndPlay(_currentframe - 1);
Symbol 550 MovieClip Frame 1
wid = getProperty("pic", _width);
duplicateMovieClip ("pic", "pic2", 16386);
duplicateMovieClip ("pic", "pic3", 16387);
setProperty("pic2", _x , getProperty("pic", _x) - wid);
setProperty("pic3", _x , getProperty("pic", _x) + wid);
speed = 20;
pos = 0;
Symbol 550 MovieClip Frame 2
pos = pos - speed;
if (pos < (-wid)) {
pos = wid + pos;
}
if (0 < pos) {
pos = (-wid) + pos;
}
_x = pos;
Symbol 550 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 550 MovieClip Frame 15
wid = getProperty("pic", _width);
duplicateMovieClip ("pic", "pic2", 16386);
duplicateMovieClip ("pic", "pic3", 16387);
setProperty("pic2", _x , getProperty("pic", _x) - wid);
setProperty("pic3", _x , getProperty("pic", _x) + wid);
speed = 20;
pos = 0;
Symbol 550 MovieClip Frame 16
pos = pos + speed;
if (wid < pos) {
pos = pos - wid;
}
_x = pos;
Symbol 550 MovieClip Frame 17
gotoAndPlay(_currentframe - 1);
Symbol 585 MovieClip Frame 1
if (((((getProperty("/ninjai", _x) + (getProperty("/ninjai", _width) / 4)) >= getProperty("/samurai", _x)) and (getProperty("/samurai", _x) >= (getProperty("/ninjai", _x) - (getProperty("/ninjai", _width) / 4)))) and (_root.nj_state == "on")) or (_root.nj_state == "right")) {
_root.nj_health = _root.nj_health - _root.sm_hit;
tellTarget ("/ninjai/character/behavior") {
gotoAndPlay ("hit");
};
tellTarget ("/samurai") {
gotoAndStop ("hit");
};
}
Symbol 585 MovieClip Frame 2
gotoAndPlay (1);
Symbol 599 MovieClip Frame 1
if (((((getProperty("/ninjai", _x) + (getProperty("/ninjai", _width) / 4)) >= getProperty("/samurai", _x)) and (getProperty("/samurai", _x) >= (getProperty("/ninjai", _x) - (getProperty("/ninjai", _width) / 4)))) and (_root.nj_state == "on")) or (_root.nj_state == "left")) {
_root.nj_health = _root.nj_health - _root.sm_hit;
tellTarget ("/ninjai/character/behavior") {
gotoAndPlay ("hit");
};
tellTarget ("/samurai") {
gotoAndStop ("hit");
};
}
Symbol 599 MovieClip Frame 2
gotoAndPlay (1);
Symbol 606 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 5
stop();
Symbol 606 MovieClip Frame 10
tellTarget ("/samurai") {
gotoAndPlay ("hit");
};
play();
Symbol 606 MovieClip Frame 14
tellTarget ("/samurai") {
gotoAndPlay (1);
};
tellTarget ("/mouse") {
gotoAndPlay ("on");
};
gotoAndStop (1);
Symbol 606 MovieClip Frame 15
tellTarget ("/samurai") {
gotoAndPlay ("hit");
};
play();
Symbol 606 MovieClip Frame 20
tellTarget ("/samurai") {
gotoAndPlay (1);
};
gotoAndStop (1);
Symbol 606 MovieClip Frame 21
tellTarget ("/samurai") {
gotoAndPlay ("hit");
};
play();
Symbol 606 MovieClip Frame 26
tellTarget ("/samurai") {
gotoAndPlay (1);
};
gotoAndStop (1);
Symbol 607 MovieClip Frame 1
speed = 24;
Symbol 607 MovieClip Frame 2
samuraiX = int(_x);
ninjaiX = int(getProperty("/ninjai", _x));
tolerance = 20;
attack_distance = 20;
distx = samuraiX - ninjaiX;
movex = distX / speed;
if ((ninjaiX + tolerance) < samuraiX) {
_x = (_x - movex);
tellTarget ("/samurai/character") {
gotoAndStop ("left");
};
} else if (samuraiX < (ninjaiX - tolerance)) {
_x = (_x - movex);
tellTarget ("/samurai/character") {
gotoAndStop ("right");
};
} else if ((samuraiX >= (ninjaiX - tolerance)) and ((ninjaix + tolerance) >= samuraiX)) {
tellTarget ("/samurai/character") {
gotoAndPlay("attack" add (random(2) + 1));
};
}
Symbol 607 MovieClip Frame 3
gotoAndPlay (2);
Symbol 607 MovieClip Frame 10
play();
Symbol 607 MovieClip Frame 15
gotoAndPlay (1);
Symbol 635 MovieClip Frame 1
if (((getProperty("/samurai", _x) + (getProperty("/samurai", _width) / 4)) >= getProperty("/ninjai", _x)) and (getProperty("/ninjai", _x) >= (getProperty("/samurai", _x) - (getProperty("/samurai", _width) / 4)))) {
if (0 < _root.sm_armor) {
_root.sm_armor = _root.sm_armor - _root.nj_hit;
_root.nj_weapon = _root.nj_weapon - _root.nj_hit;
tellTarget ("/samurai/character") {
gotoAndPlay ("hit");
};
tellTarget ("/samurai") {
gotoAndStop ("hit");
};
} else if (0 >= _root.sm_armor) {
_root.sm_health = _root.sm_health - _root.nj_hit;
tellTarget ("/samurai/character") {
gotoAndPlay ("hit");
};
tellTarget ("/samurai") {
gotoAndStop ("hit");
};
}
}
Symbol 635 MovieClip Frame 2
gotoAndPlay (1);
Symbol 639 MovieClip Frame 1
_root.nj_state = "on";
tellTarget ("/mouse") {
gotoAndStop ("on");
};
Symbol 639 MovieClip Frame 16
gotoAndPlay (1);
Symbol 639 MovieClip Frame 17
_root.nj_state = "off";
Symbol 639 MovieClip Frame 24
_root.nj_state = "on";
gotoAndPlay (1);
Symbol 639 MovieClip Frame 25
_root.nj_state = "on";
Symbol 639 MovieClip Frame 31
gotoAndPlay (1);
tellTarget ("/mouse") {
gotoAndPlay ("on");
};
Symbol 639 MovieClip Frame 32
_root.nj_state = "off";
Symbol 639 MovieClip Frame 38
gotoAndPlay (1);
tellTarget ("/mouse") {
gotoAndPlay ("on");
};
Symbol 640 MovieClip Frame 1
stop();
tellTarget ("/40") {
gotoAndPlay ("right");
};
tellTarget ("/20") {
gotoAndPlay ("right");
};
tellTarget ("/10") {
gotoAndPlay ("right");
};
tellTarget ("/4") {
gotoAndPlay ("right");
};
Symbol 640 MovieClip Frame 10
stop();
tellTarget ("/40") {
gotoAndPlay ("right");
};
tellTarget ("/20") {
gotoAndPlay ("right");
};
tellTarget ("/10") {
gotoAndPlay ("right");
};
tellTarget ("/4") {
gotoAndPlay ("right");
};
Symbol 640 MovieClip Frame 20
stop();
tellTarget ("/40") {
gotoAndPlay ("left");
};
tellTarget ("/20") {
gotoAndPlay ("left");
};
tellTarget ("/10") {
gotoAndPlay ("left");
};
tellTarget ("/4") {
gotoAndPlay ("left");
};
Symbol 641 MovieClip Frame 1
speed = 20;
Symbol 641 MovieClip Frame 2
ninjaiX = int(_x);
ninjaiY = int(_y);
mouseX = int(getProperty("/mouse", _x));
mouseY = int(getProperty("/mouse", _y));
tolerance = 20;
distx = mouseX - ninjaiX;
disty = ninjaiY - mouseY;
input = Number(distx * distx) + Number(disty * disty);
z = 1;
iterations = 20;
i = 0;
while (Number(i) < Number(iterations)) {
z = z - (((z * z) - input) / (2 * z));
i = Number(i) + 1;
}
output = z;
distance = int(output / speed);
movex = distx / distance;
movey = disty / distance;
attack_distance = 0;
if ((((mouseX + tolerance) >= ninjaiX) and (ninjaiX >= (mouseX - tolerance))) and (ninjaiY < (mouseY - tolerance))) {
tellTarget ("character") {
gotoAndStop ("bottom1");
};
newx = Number(_x) + Number(movex);
newy = _y - movey;
_x = newx;
_y = newy;
distance = distance - 1;
if ((attack_distance >= Number(distance)) or (ninjaiY >= _root.bottomlimit)) {
gotoAndPlay (1);
}
} else if (((mouseX + tolerance) < ninjaiX) and (ninjaiY < (mouseY - tolerance))) {
tellTarget ("character") {
gotoAndStop ("bleft1");
};
newx = Number(_x) + Number(movex);
newy = _y - movey;
_x = newx;
_y = newy;
distance = distance - 1;
if (((attack_distance >= Number(distance)) or (ninjaiY >= _root.bottomlimit)) or (_root.leftlimit >= ninjaiX)) {
gotoAndPlay (1);
}
} else if ((((mouseX + tolerance) < ninjaiX) and ((mouseY + tolerance) >= ninjaiY)) and (ninjaiY >= (mouseY - tolerance))) {
tellTarget ("character") {
gotoAndStop ("left");
};
if ((attack_distance >= Number(distance)) or (_root.leftlimit >= ninjaiX)) {
gotoAndPlay (1);
} else {
newx = Number(_x) + Number(movex);
newy = _y - movey;
_x = newx;
_y = newy;
distance = distance - 1;
}
} else if (((mouseX + tolerance) < ninjaiX) and ((mouseY + tolerance) < ninjaiY)) {
tellTarget ("character") {
gotoAndStop ("tleft1");
};
if (((attack_distance >= Number(distance)) or (_root.toplimit >= ninjaiY)) or (_root.leftlimit >= ninjaiX)) {
gotoAndPlay (1);
} else {
newx = Number(_x) + Number(movex);
newy = _y - movey;
_x = newx;
_y = newy;
distance = distance - 1;
}
} else if (((ninjaiX >= (mouseX - tolerance)) and ((mouseX + tolerance) >= ninjaiX)) and ((mouseY + tolerance) < ninjaiY)) {
tellTarget ("character") {
gotoAndStop ("top1");
};
if ((attack_distance >= Number(distance)) or (_root.toplimit >= ninjaiY)) {
gotoAndPlay (1);
} else {
newx = Number(_x) + Number(movex);
newy = _y - movey;
_x = newx;
_y = newy;
distance = distance - 1;
}
} else if ((ninjaiX < (mouseX - tolerance)) and ((mouseY + tolerance) < ninjaiY)) {
tellTarget ("character") {
gotoAndStop ("tright1");
};
if (((attack_distance >= Number(distance)) or (_root.toplimit >= ninjaiY)) or (ninjaiX >= _root.rightlimit)) {
gotoAndPlay (1);
} else {
newx = Number(_x) + Number(movex);
newy = _y - movey;
_x = newx;
_y = newy;
distance = distance - 1;
}
} else if (((ninjaiX < (mouseX - tolerance)) and (ninjaiY >= (mouseY - tolerance))) and ((mouseY + tolerance) >= ninjaiY)) {
tellTarget ("character") {
gotoAndStop ("right");
};
if (((attack_distance >= Number(distance)) or (ninjaiX >= _root.rightlimit)) or (ninjaiX >= _root.rightlimit)) {
gotoAndPlay (1);
} else {
newx = Number(_x) + Number(movex);
newy = _y - movey;
_x = newx;
_y = newy;
distance = distance - 1;
}
} else if ((ninjaiX < (mouseX - tolerance)) and (ninjaiY < (mouseY - tolerance))) {
tellTarget ("character") {
gotoAndStop ("bright1");
};
if ((attack_distance >= Number(distance)) or (ninjaiY >= _root.bottomlimit)) {
gotoAndPlay (1);
} else {
newx = Number(_x) + Number(movex);
newy = _y - movey;
_x = newx;
_y = newy;
distance = distance - 1;
}
} else if (((((mouseX - tolerance) < ninjaiX) and (ninjaiX < (mouseX + tolerance))) and ((mouseY - tolerance) < ninjaiY)) and (ninjaiY < (mouseY + tolerance))) {
gotoAndPlay (1);
}
Symbol 641 MovieClip Frame 3
gotoAndPlay (2);
Symbol 643 MovieClip Frame 1
setProperty("/nj_health", _width , _root.nj_health);
setProperty("/nj_weapon", _width , _root.nj_weapon);
setProperty("/sm_health", _width , _root.sm_health);
setProperty("/sm_armor", _width , _root.sm_armor);
if (0 >= _root.sm_health) {
tellTarget ("/") {
stopAllSounds();
gotoAndStop ("win4");
};
} else if (0 >= _root.nj_health) {
tellTarget ("/") {
gotoAndStop ("lose4");
};
}
if (0 >= _root.nj_weapon) {
_root.nj_hit = 2;
}
if (0 >= _root.sm_armor) {
_root.nj_hit = 2;
}
Symbol 643 MovieClip Frame 2
gotoAndPlay (1);
Symbol 648 MovieClip Frame 40
gotoAndPlay (1);
Symbol 652 MovieClip Frame 1
wid = getProperty("pic", _width);
duplicateMovieClip ("pic", "pic2", 16386);
duplicateMovieClip ("pic", "pic3", 16387);
setProperty("pic2", _x , getProperty("pic", _x) - wid);
setProperty("pic3", _x , getProperty("pic", _x) + wid);
speed = 40;
pos = 0;
Symbol 652 MovieClip Frame 2
pos = pos - speed;
if (pos < (-wid)) {
pos = wid + pos;
}
if (0 < pos) {
pos = (-wid) + pos;
}
_x = pos;
Symbol 652 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 652 MovieClip Frame 15
wid = getProperty("pic", _width);
duplicateMovieClip ("pic", "pic2", 16386);
duplicateMovieClip ("pic", "pic3", 16387);
setProperty("pic2", _x , getProperty("pic", _x) - wid);
setProperty("pic3", _x , getProperty("pic", _x) + wid);
speed = 40;
pos = 0;
Symbol 652 MovieClip Frame 16
pos = pos + speed;
if (wid < pos) {
pos = pos - wid;
}
_x = pos;
Symbol 652 MovieClip Frame 17
gotoAndPlay(_currentframe - 1);
Symbol 654 Button
on (keyPress "<Space>") {
tellTarget ("/ninjai/character/behavior") {
gotoAndPlay ("jump");
};
tellTarget ("/mouse") {
gotoAndStop ("off");
};
}
on (release) {
tellTarget ("/ninjai/character/behavior") {
gotoAndPlay ("attack");
};
tellTarget ("/mouse") {
gotoAndStop ("off");
};
}
on (keyPress "w") {
stopAllSounds();
tellTarget ("/") {
gotoAndPlay ("win4");
};
}
on (keyPress "l") {
tellTarget ("/") {
gotoAndPlay ("lose4");
};
}
on (keyPress "x") {
tellTarget ("/") {
gotoAndPlay ("start");
};
}
Symbol 655 MovieClip Frame 1
stop();
Symbol 658 MovieClip Frame 31
stop();
Symbol 659 Button
on (release) {
gotoAndPlay (140);
}
Symbol 662 Button
on (release) {
gotoAndPlay (1);
}