Frame 1
stop();
Stage.showMenu = false;
Instance of Symbol 14 MovieClip "comboM" in Frame 1
onClipEvent (load) {
_visible = false;
timer = 0;
comboV = 0;
comboR = 0;
}
onClipEvent (enterFrame) {
if ((_root._currentframe == 3) && (_root.comboR != ("x" + comboR))) {
_root.comboR = "x" + comboR;
}
if (timer > 0) {
timer--;
_root.comboT = "x" + comboV;
}
if (timer > 300) {
timer = 300;
}
if (timer == 0) {
comboV = 0;
_root.comboT = "---";
}
if (comboV > comboR) {
comboR = comboV;
_root.comboR = "x" + comboR;
}
}
Instance of Symbol 18 MovieClip in Frame 1
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
if (loaded == total) {
_root.nextFrame();
}
}
Frame 2
snd_explo = new Sound();
snd_explo.attachSound("explo");
snd_choose = new Sound();
snd_choose.attachSound("choose");
snd_unchoose = new Sound();
snd_unchoose.attachSound("unchoose");
snd_throw = new Sound();
snd_throw.attachSound("throw");
snd_splutch = new Sound();
snd_splutch.attachSound("splutch");
snd_HP1 = new Sound();
snd_HP1.attachSound("hardpunch1");
snd_HP2 = new Sound();
snd_HP2.attachSound("hardpunch2");
snd_HP3 = new Sound();
snd_HP3.attachSound("hardpunch3");
snd_limb1 = new Sound();
snd_limb1.attachSound("small_limb_land_01");
snd_limb2 = new Sound();
snd_limb2.attachSound("small_limb_land_02");
snd_limb3 = new Sound();
snd_limb3.attachSound("small_limb_land_03");
snd_limb4 = new Sound();
snd_limb4.attachSound("small_limb_land_04");
nextFrame();
Frame 3
highest = 153;
lowest = 300;
casual = 0;
comboT = "---";
comboR = "---";
currentweapon = "non";
weaponame = "weapons";
fuseC = 0;
fuseMaxC = 100;
bloodC = 0;
bloodMaxC = 100;
bombcount = 0;
explocount = 0;
explomax = 4;
pieces = 0;
maxpieces = 50;
duplicateMovieClip (_root.weight, "weight2", 6003);
duplicateMovieClip (_root.mouseC, "mouseC2", 6050);
duplicateMovieClip (_root.dudepoof2, "dudepoof", 6004);
duplicateMovieClip (_root.slicer2, "slicer", 6001);
duplicateMovieClip (_root.inst2, "inst", 6049);
_root.mouseC._visible = false;
stop();
Instance of Symbol 25 MovieClip "bg" in Frame 3
onClipEvent (load) {
myDate = new Date();
if ((myDate.getDate() == 25) && (myDate.getMonth() == 11)) {
gotoAndStop ("christmas");
}
if ((myDate.getDate() == 4) && (myDate.getMonth() == 6)) {
gotoAndStop ("4th");
}
if ((myDate.getDate() == 31) && (myDate.getMonth() == 9)) {
gotoAndStop ("halloween");
}
}
Instance of Symbol 74 MovieClip in Frame 3
onClipEvent (load) {
if ((_root.bg.myDate.getDate() == 4) && (_root.bg.myDate.getMonth() == 6)) {
active = true;
}
if (active == true) {
maxheight = -10;
randomrange = 120;
firework = 0;
timer = (random(4) + 1.5) * 48;
}
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_visible = false;
} else {
_visible = true;
}
if (active == true) {
if (timer > 0) {
timer--;
} else {
_x = (-10 + random(311));
_y = (maxheight + random(randomrange));
firework = 1 + random(7);
gotoAndPlay("c_" + firework);
timer = (random(4) + 1.5) * 48;
}
}
}
Instance of Symbol 114 MovieClip "stick" in Frame 3
onClipEvent (load) {
function shootpieces(number, type, fix_y) {
i = 1;
while (i < number) {
duplicateMovieClip (_root.piece, "piece" + _root.pieces, 700 + _root.pieces);
_root["piece" + _root.pieces]._x = _x;
_root["piece" + _root.pieces]._y = _y + fix_y;
_root["piece" + _root.pieces].deathtype = type;
_root.pieces++;
i++;
}
}
function playHardpunch() {
sound = random(3) + 1;
if (sound == 1) {
_root.snd_HP1.start();
} else if (sound == 2) {
_root.snd_HP2.start();
} else if (sound == 3) {
_root.snd_HP3.start();
}
}
if (_name != "stick") {
sound = 0;
walkspeed = 0.4;
runspeed = 1.4;
meeting = -1;
test = 0;
deathtimer = 35;
if (_x > 300) {
aim = "left";
} else if (_x < 0) {
aim = "right";
}
met = false;
} else {
stop();
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_name != "stick") {
if (_root._currentframe == 4) {
this.removeMovieClip();
}
if (aim != "killed") {
if (dragged == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_root.exploD.hitTest(_x, _y, true)) {
if (_root.maxpieces <= _root.pieces) {
_root.pieces = 0;
}
_root.snd_splutch.start();
duplicateMovieClip (_root.piece, "piece" + _root.pieces, 700 + _root.pieces);
_root["piece" + _root.pieces]._x = _x;
_root["piece" + _root.pieces]._y = _y;
_root["piece" + _root.pieces].deathtype = "exploded";
_root["piece" + _root.pieces].gotoAndStop("head");
_root.pieces++;
shootpieces(6, "exploded", 0);
this.gotoAndStop(4);
_root.casual++;
_root.comboM.comboV++;
_root.comboM.timer = _root.comboM.timer + 40;
aim = "killed";
}
if (this.hitTest(_root.slicer.damage)) {
if (_root.maxpieces <= _root.pieces) {
_root.pieces = 0;
}
_root.snd_splutch.start();
duplicateMovieClip (_root.piece, "piece" + _root.pieces, 700 + _root.pieces);
_root["piece" + _root.pieces]._x = _x;
_root["piece" + _root.pieces]._y = _y;
_root["piece" + _root.pieces].deathtype = "sliced";
_root["piece" + _root.pieces].gotoAndStop("head");
_root.pieces++;
shootpieces(6, "sliced", 0);
this.gotoAndStop(4);
_root.casual++;
_root.comboM.comboV++;
_root.comboM.timer = _root.comboM.timer + 60;
_root.dangerD._x = _x;
_root.dangerD._y = _y;
_root.dangerD.timer = 1;
aim = "killed";
}
if (this.hitTest(_root.weight2.damage)) {
if (_root.maxpieces <= _root.pieces) {
_root.pieces = 0;
}
_root.snd_splutch.start();
duplicateMovieClip (_root.piece, "piece" + _root.pieces, 700 + _root.pieces);
_root["piece" + _root.pieces]._x = _x;
_root["piece" + _root.pieces]._y = _y;
_root["piece" + _root.pieces].deathtype = "smashed";
_root["piece" + _root.pieces].gotoAndStop("head");
_root.pieces++;
shootpieces(6, "smashed", 4);
this.gotoAndStop(4);
_root.casual++;
_root.comboM.comboV++;
_root.comboM.timer = _root.comboM.timer + 60;
_root.dangerD._x = _x;
_root.dangerD._y = _y;
_root.dangerD.timer = 1;
aim = "killed";
}
if ((_y <= (_root.dude._y + 10)) && (_y > (_root.dude._y - 30))) {
if (this.hitTest(_root.dude.down)) {
if (_root.maxpieces <= _root.pieces) {
_root.pieces = 0;
}
playHardpunch();
duplicateMovieClip (_root.piece, "piece" + _root.pieces, 700 + _root.pieces);
_root["piece" + _root.pieces]._x = _x;
_root["piece" + _root.pieces]._y = _y;
_root["piece" + _root.pieces].deathtype = "smashed";
_root["piece" + _root.pieces].gotoAndStop("head");
_root.pieces++;
shootpieces(6, "smashed", 0);
this.gotoAndStop(4);
_root.casual++;
_root.comboM.comboV++;
_root.comboM.timer = _root.comboM.timer + 60;
aim = "killed";
}
if (this.hitTest(_root.dude.hori)) {
if (_root.maxpieces <= _root.pieces) {
_root.pieces = 0;
}
playHardpunch();
duplicateMovieClip (_root.piece, "piece" + _root.pieces, 700 + _root.pieces);
_root["piece" + _root.pieces]._x = _x;
_root["piece" + _root.pieces]._y = _y;
if (_root.dude._xscale == 100) {
_root["piece" + _root.pieces].deathtype = "punchedright";
} else {
_root["piece" + _root.pieces].deathtype = "punchedleft";
}
_root["piece" + _root.pieces].gotoAndStop("head");
_root.pieces++;
if (_root.dude._xscale == 100) {
shootpieces(3, "punchedright", -3);
shootpieces(3, "punchedright", -6);
} else {
shootpieces(3, "punchedleft", -3);
shootpieces(3, "punchedleft", -6);
}
this.gotoAndStop(4);
_root.casual++;
_root.comboM.comboV++;
_root.comboM.timer = _root.comboM.timer + 60;
aim = "killed";
}
if (this.hitTest(_root.dude.vert)) {
if (_root.maxpieces <= _root.pieces) {
_root.pieces = 0;
}
playHardpunch();
duplicateMovieClip (_root.piece, "piece" + _root.pieces, 700 + _root.pieces);
_root["piece" + _root.pieces]._x = _x;
_root["piece" + _root.pieces]._y = _y;
if (_root.dude._xscale == 100) {
_root["piece" + _root.pieces].deathtype = "weeeright";
} else {
_root["piece" + _root.pieces].deathtype = "weeeleft";
}
_root["piece" + _root.pieces].gotoAndStop("head");
_root.pieces++;
if (_root.dude._xscale == 100) {
shootpieces(6, "weeeright", 0);
} else {
shootpieces(6, "weeeleft", 0);
}
this.gotoAndStop(4);
_root.casual++;
_root.comboM.comboV++;
_root.comboM.timer = _root.comboM.timer + 60;
aim = "killed";
}
if (this.hitTest(_root.dude.opvert)) {
if (_root.maxpieces <= _root.pieces) {
_root.pieces = 0;
}
playHardpunch();
duplicateMovieClip (_root.piece, "piece" + _root.pieces, 700 + _root.pieces);
_root["piece" + _root.pieces]._x = _x;
_root["piece" + _root.pieces]._y = _y;
if (_root.dude._xscale == 100) {
_root["piece" + _root.pieces].deathtype = "-punchedright";
} else {
_root["piece" + _root.pieces].deathtype = "-punchedleft";
}
_root["piece" + _root.pieces].gotoAndStop("head");
_root.pieces++;
if (_root.dude._xscale == 100) {
shootpieces(3, "-punchedright", -3);
shootpieces(3, "-punchedright", -6);
} else {
shootpieces(3, "-punchedleft", -3);
shootpieces(3, "-punchedleft", -6);
}
this.gotoAndStop(4);
_root.casual++;
_root.comboM.comboV++;
_root.comboM.timer = _root.comboM.timer + 60;
aim = "killed";
}
}
}
if (_currentframe == 4) {
deathtimer--;
if (deathtimer <= 0) {
this.removeMovieClip();
}
}
if (aim != "killed") {
if ((aim != "left") && (_x > 306)) {
this.removeMovieClip();
} else if ((aim != "right") && (_x < -6)) {
this.removeMovieClip();
}
if (((meeting > -1) && (aim != "runleft")) && (aim != "runright")) {
if (_currentframe != 1) {
this.gotoAndStop("stand");
}
meeting--;
}
if (_root.dangerD.hitTest(_x, _y, true)) {
if (_x > _root.dangerD._x) {
aim = "runright";
} else if (_x < _root.dangerD._x) {
aim = "runleft";
} else if (_x == _root.dangerD._x) {
test = random(2);
if (test == 1) {
aim = "runright";
} else {
aim = "runleft";
}
}
}
if ((_root.meetingarea.hitTest(_x, _y, true) && (meeting == -1)) && (met == false)) {
met = true;
meeting = _root.meetingarea.meetlength;
if (_root.meetingarea._x > _x) {
_x = (_x + 2);
} else if (_root.meetingarea._x < _x) {
_x = (_x - 2);
}
}
if ((_root.meetingarea2.hitTest(_x, _y, true) && (meeting == -1)) && (met == false)) {
met = true;
meeting = _root.meetingarea2.meetlength;
if (_root.meetingarea2._x > _x) {
_x = (_x + 2);
} else if (_root.meetingarea2._x < _x) {
_x = (_x - 2);
}
}
if ((_root.meetingarea3.hitTest(_x, _y, true) && (meeting == -1)) && (met == false)) {
met = true;
meeting = _root.meetingarea3.meetlength;
if (_root.meetingarea3._x > _x) {
_x = (_x + 2);
} else if (_root.meetingarea3._x < _x) {
_x = (_x - 2);
}
}
if (aim == "runright") {
gotoAndStop ("run");
_x = (_x + runspeed);
if (_xscale != 100) {
_xscale = 100;
}
}
if (aim == "runleft") {
gotoAndStop ("run");
_x = (_x - runspeed);
if (_xscale != -100) {
_xscale = -100;
}
}
if (meeting == -1) {
if (aim == "right") {
if (_xscale != 100) {
_xscale = 100;
}
this.gotoAndStop("walk");
_x = (_x + walkspeed);
} else if (aim == "left") {
if (_xscale != -100) {
_xscale = -100;
}
this.gotoAndStop("walk");
_xscale = -100;
_x = (_x - walkspeed);
}
}
}
}
}
Instance of Symbol 116 MovieClip in Frame 3
onClipEvent (load) {
_visible = eval (false)();
create = 10 * random(20);
maxsticks = 25;
current = 0;
}
onClipEvent (enterFrame) {
create--;
if (create <= 0) {
where = random(2);
_y = (random(135) + _root.highest);
if (where == 1) {
_x = -7;
} else {
_x = 307;
}
if (current < maxsticks) {
duplicateMovieClip (_root.stick, "stick" + current, 800 + current);
_root["stick" + current]._y = _y;
_root["stick" + current]._x = _x;
current++;
}
if (current == maxsticks) {
current = 0;
}
create = 10 * random(20);
}
}
Instance of Symbol 121 MovieClip "bomb" in Frame 3
onClipEvent (load) {
stop();
if (_name != "bomb") {
if ((_root.bg.myDate.getDate() == 31) && (_root.bg.myDate.getMonth() == 9)) {
gotoAndStop (2);
}
if (_y > 153) {
ground = _y;
yy = -7;
} else {
ground = 153;
yy = -5;
}
rotationspeed = 5 + random(11);
emitT = 5;
fuseC = _root.fuseC;
fuseMaxC = _root.fuseMaxC;
} else {
_visible = fals0e;
}
}
onClipEvent (enterFrame) {
if (_name != "bomb") {
if (_root._currentframe == 4) {
this.removeMovieClip();
}
_rotation = (_rotation + rotationspeed);
emitT--;
if (emitT == 0) {
duplicateMovieClip (_root.fuseF, "fuseF" + _root.fuseC, 600 + _root.fuseC);
_root["fuseF" + _root.fuseC]._y = _y;
_root["fuseF" + _root.fuseC]._x = _x;
_root["fuseF" + _root.fuseC]._rotation = _rotation;
_root.fuseC++;
if (_root.fuseC == _root.fuseMaxC) {
_root.fuseC = 0;
}
emitT = 5;
}
if ((_y + yy) >= ground) {
_y = ground;
_root.snd_explo.start();
duplicateMovieClip (_root.explo, "explo" + _root.explocount, 2000 + _root.explocount);
_root["explo" + _root.explocount]._y = _y + 3;
_root["explo" + _root.explocount]._x = _x;
_root.explocount++;
_root.dangerD._x = _x;
_root.dangerD._y = _y;
_root.dangerD.timer = 1;
_root.exploD._x = _x;
_root.exploD._y = _y;
_root.exploD.timer = 1;
this.removeMovieClip();
} else {
_y = (_y + yy);
yy = yy + 0.2;
}
}
}
Instance of Symbol 125 MovieClip "fuseF" in Frame 3
onClipEvent (load) {
if (_name != "fuseF") {
frames = 16;
}
if (_name == "fuseF") {
_visible = false;
stop();
}
}
onClipEvent (enterFrame) {
if (_name != "fuseF") {
if (_root._currentframe == 4) {
this.removeMovieClip();
}
frames--;
if (frames == 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 127 MovieClip "exploD" in Frame 3
onClipEvent (load) {
_visible = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
} else if ((timer == 0) && (_x > -300)) {
_x = -300;
_y = -300;
}
}
Instance of Symbol 139 MovieClip "piece" in Frame 3
onClipEvent (load) {
function playLand() {
sound = random(4) + 1;
if (sound == 1) {
_root.snd_limb1.start();
} else if (sound == 2) {
_root.snd_limb2.start();
} else if (sound == 3) {
_root.snd_limb3.start();
} else if (sound == 4) {
_root.snd_limb4.start();
}
}
if (_name != "piece") {
air = 1;
ran = random(2);
if (ran == 1) {
_xscale = -100;
}
groundtimer = 96;
ground = _y + (-10 + random(21));
if (ground < 156) {
ground = 156;
}
if (deathtype == "exploded") {
if (_x > (_root.exploD._x + 6)) {
xx = 1 + random(4);
} else if (_x < (_root.exploD._x - 6)) {
xx = -(1 + random(4));
} else if ((_x > (_root.exploD._x - 6)) && (_x < (_root.exploD._x + 6))) {
xx = -2 + random(5);
}
yy = -(random(5) + 5);
} else if (deathtype == "sliced") {
if (_x > (_root.slicer._x + 6)) {
xx = 1 + random(4);
} else if (_x < (_root.slicer._x - 6)) {
xx = -(1 + random(4));
} else if ((_x > (_root.slicer._x - 6)) && (_x < (_root.slicer._x + 6))) {
xx = -3 + random(7);
}
yy = -(random(3) + 3);
} else if (deathtype == "smashed") {
xx = -3 + random(7);
yy = -(random(3) + 3);
} else if (deathtype == "punchedright") {
ground = _y + 5;
xx = 4 + random(4);
yy = -(random(3) + 1);
} else if (deathtype == "punchedleft") {
ground = _y + 5;
xx = -(4 + random(4));
yy = -(random(3) + 1);
} else if (deathtype == "weeeleft") {
xx = -1 - random(1);
yy = -(random(7) + 12);
} else if (deathtype == "weeeright") {
xx = 1 + random(1);
yy = -(random(7) + 12);
} else if (deathtype == "-punchedright") {
ground = _y + 5;
xx = -(4 + random(4));
yy = -(random(3) + 1);
} else if (deathtype == "-punchedleft") {
ground = _y + 5;
xx = 4 + random(4);
yy = -(random(3) + 1);
}
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_name != "piece") {
if (_root._currentframe == 4) {
this.removeMovieClip();
}
_x = (_x + xx);
_y = (_y + yy);
if (air == 1) {
if (xx > 0) {
_rotation = (_rotation + (20 + random(20)));
} else if (xx < 0) {
_rotation = (_rotation + (-(20 + random(20))));
} else if (xx == 0) {
_rotation = (_rotation + 30);
}
yy = yy + 0.4;
}
if ((yy + _y) >= ground) {
if (air == 1) {
if (yy > 10) {
playLand();
}
this.nextFrame();
_rotation = 0;
yy = 0;
xx = 0;
_y = ground;
air = 0;
} else if (groundtimer == 0) {
_alpha = (_alpha - 10);
if (_alpha < 5) {
this.removeMovieClip();
}
} else {
groundtimer--;
}
}
if ((_x > 303) || (_x < -3)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 174 MovieClip "explo" in Frame 3
onClipEvent (load) {
if (_name == "explo") {
_visible = false;
stop();
} else {
ran1 = random(2);
ran2 = random(2);
if (ran1 == 1) {
_xscale = -100;
}
if (ran2 == 1) {
this.gotoAndPlay(48);
}
frames = 47;
}
}
onClipEvent (enterFrame) {
if (_name != "explo") {
if (_root._currentframe == 4) {
this.removeMovieClip();
}
frames--;
if (frames == 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 175 MovieClip "meetingarea" in Frame 3
onClipEvent (load) {
_visible = false;
wait = 144 + (48 * random(10));
meetlength = 48 * random(7);
highest = _root.highest;
lowest = _root.lowest;
one = false;
}
onClipEvent (enterFrame) {
if (wait > 0) {
wait--;
}
if (wait == 0) {
_xscale = (70 + random(50));
_yscale = _xscale;
_x = (6 + random(288));
_y = (highest + random(147));
wait = 144 + (48 * random(10));
}
}
Instance of Symbol 175 MovieClip "meetingarea2" in Frame 3
onClipEvent (load) {
_visible = false;
wait = 144 + (48 * random(10));
meetlength = 48 * random(7);
highest = _root.highest;
lowest = _root.lowest;
one = false;
}
onClipEvent (enterFrame) {
if (wait > 0) {
wait--;
}
if (wait == 0) {
_xscale = (70 + random(50));
_yscale = _xscale;
_x = (6 + random(288));
_y = (highest + random(147));
wait = 144 + (48 * random(10));
}
}
Instance of Symbol 175 MovieClip "meetingarea3" in Frame 3
onClipEvent (load) {
_visible = false;
wait = 144 + (48 * random(10));
meetlength = 48 * random(7);
highest = _root.highest;
lowest = _root.lowest;
one = false;
}
onClipEvent (enterFrame) {
if (wait > 0) {
wait--;
}
if (wait == 0) {
_xscale = (70 + random(50));
_yscale = _xscale;
_x = (6 + random(288));
_y = (highest + random(147));
wait = 144 + (48 * random(10));
}
}
Instance of Symbol 177 MovieClip "dangerD" in Frame 3
onClipEvent (load) {
_visible = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer--;
} else if ((timer == 0) && (_x > -300)) {
_x = -300;
_y = -300;
}
}
Instance of Symbol 280 MovieClip "dude2" in Frame 3
onClipEvent (load) {
function shootpieces(number, type, fix_y) {
i = 1;
while (i < number) {
duplicateMovieClip (_root.piece, "piece" + _root.pieces, 700 + _root.pieces);
_root["piece" + _root.pieces]._x = _x;
_root["piece" + _root.pieces]._y = _y + fix_y;
_root["piece" + _root.pieces].deathtype = type;
_root.pieces++;
i++;
}
}
if (_name == "dude") {
deathtimer = 35;
deathtimer2 = 35;
aim = "?";
minG = 160;
maxG = 305;
XmoveSpeed = 1.2;
YmoveSpeed = 1;
yy = 0;
xx = 0;
attack = false;
upKey = 87;
downKey = 83;
leftKey = 65;
rightKey = 68;
kickKey = 16;
punchKey = 32;
hitAble = "no";
canActEvent = "NEED TO PUT VALUE!!!!!";
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_name == "dude") {
if (_root._currentframe == 4) {
this.removeMovieClip();
}
if ((aim != "killed") && (aim != "killed2")) {
noLeft = !Key.isDown(leftKey);
noRight = !Key.isDown(rightKey);
noDown = !Key.isDown(downKey);
noUp = !Key.isDown(upKey);
punchHit = Key.isDown(punchKey);
kickHit = Key.isDown(kickKey);
eventSpeedRight = (((Key.isDown(rightKey) && (noLeft)) && (attack == false)) && (!punchHit)) && (!kickHit);
eventSpeedLeft = (((Key.isDown(leftKey) && (noRight)) && (attack == false)) && (!punchHit)) && (!kickHit);
eventSpeedUp = ((((Key.isDown(upKey) && (noDown)) && (attack == false)) && (_y > minG)) && (!punchHit)) && (!kickHit);
eventSpeedDown = ((((Key.isDown(downKey) && (noUp)) && (attack == false)) && (_y < maxG)) && (!punchHit)) && (!kickHit);
stanceEvent = (((((((xx == 0) && (yy == 0)) && (this._currentframe != 1)) && (attack == false)) && (noLeft)) && (noRight)) && (noDown)) && (noUp);
stanceEventV = (Key.isDown(upKey) && (Key.isDown(downKey))) && (this._currentframe != 1);
stanceEventH = (Key.isDown(rightKey) && (Key.isDown(leftKey))) && (this._currentframe != 1);
if (xx != 0) {
_x = (_x + xx);
gotoAndStop ("run");
if ((xx > 0) && (_xscale == -100)) {
_xscale = 100;
} else if ((xx < 0) && (_xscale == 100)) {
_xscale = -100;
}
}
if (yy != 0) {
_y = (_y + yy);
gotoAndStop ("run");
}
if ((stanceEvent || (stanceEventV)) || (stanceEventH)) {
gotoAndStop ("stand");
}
if (eventSpeedRight) {
xx = XmoveSpeed;
}
if (eventSpeedLeft) {
xx = -XmoveSpeed;
}
if (((!eventSpeedRight) && (!eventSpeedLeft)) && (xx != 0)) {
xx = 0;
}
if (eventSpeedUp) {
yy = -YmoveSpeed;
}
if (eventSpeedDown) {
yy = YmoveSpeed;
}
if ((!eventSpeedUp) && (!eventSpeedDown)) {
yy = 0;
}
if (_x > 307) {
_x = -7;
}
if (_x < -7) {
_x = 307;
}
firstAttackEvent = _currentframe < 3;
upPunchEvent = (hitAble == "punch1") && (punchHit);
downPunchEvent = (hitAble == "air") && (punchHit);
downKickEvent = (hitAble == "air") && (kickHit);
secondKickEvent = (hitAble == "kickdown") || (hitAble == "punch1");
SUPERKICKevent = (((hitAble == "superkick") && (punchHit)) && (kickHit)) && (Key.isDown(upKey));
if (firstAttackEvent) {
if (Key.isDown(upKey) && (punchHit)) {
attack = true;
gotoAndPlay ("punch_p1");
} else if (punchHit) {
attack = true;
gotoAndPlay ("punch1");
} else if (kickHit) {
attack = true;
gotoAndPlay ("kick");
hitAble = "no";
}
}
if (upPunchEvent) {
hitAble = "no";
gotoAndPlay ("punch_p1");
}
if (downPunchEvent) {
hitAble = "no";
gotoAndPlay ("punchdown");
}
if (downKickEvent) {
hitAble = "no";
gotoAndPlay ("kickdown");
}
if (secondKickEvent && (kickHit)) {
hitAble = "no";
gotoAndPlay ("kick_p1");
}
if (SUPERKICKevent) {
hitAble = "no";
gotoAndPlay ("superkick");
if (_root.maxpieces <= _root.pieces) {
_root.pieces = 0;
}
duplicateMovieClip (_root.piece, "piece" + _root.pieces, 700 + _root.pieces);
_root["piece" + _root.pieces]._x = _x;
_root["piece" + _root.pieces]._y = _y;
if (_xscale == 100) {
_root["piece" + _root.pieces].deathtype = "-punchedright";
} else {
_root["piece" + _root.pieces].deathtype = "-punchedleft";
}
_root["piece" + _root.pieces].gotoAndStop("head");
_root.pieces++;
if (_xscale == 100) {
shootpieces(3, "-punchedright", -3);
shootpieces(3, "-punchedright", -6);
} else {
shootpieces(3, "-punchedleft", -3);
shootpieces(3, "-punchedleft", -6);
}
_root.dudebutton.gotoAndStop(3);
_root.dudebutton.active = "dead";
_root.dudebutton.timer = 479;
aim = "killed2";
}
if (_root.exploD.hitTest(_x, _y, true)) {
if (_root.maxpieces <= _root.pieces) {
_root.pieces = 0;
}
_root.snd_splutch.start();
duplicateMovieClip (_root.piece, "piece" + _root.pieces, 700 + _root.pieces);
_root["piece" + _root.pieces]._x = _x;
_root["piece" + _root.pieces]._y = _y;
_root["piece" + _root.pieces].deathtype = "exploded";
_root["piece" + _root.pieces].gotoAndStop("head");
_root.pieces++;
shootpieces(6, "exploded", 0);
this.gotoAndStop("death");
_root.dudebutton.gotoAndStop(3);
_root.dudebutton.active = "dead";
_root.dudebutton.timer = 479;
aim = "killed";
}
if (this.ghost.hitTest(_root.slicer.damage)) {
if (_root.maxpieces <= _root.pieces) {
_root.pieces = 0;
}
_root.snd_splutch.start();
duplicateMovieClip (_root.piece, "piece" + _root.pieces, 700 + _root.pieces);
_root["piece" + _root.pieces]._x = _x;
_root["piece" + _root.pieces]._y = _y;
_root["piece" + _root.pieces].deathtype = "sliced";
_root["piece" + _root.pieces].gotoAndStop("head");
_root.pieces++;
shootpieces(6, "sliced", 0);
this.gotoAndStop("death");
_root.dangerD._x = _x;
_root.dangerD._y = _y;
_root.dangerD.timer = 1;
_root.dudebutton.gotoAndStop(3);
_root.dudebutton.active = "dead";
_root.dudebutton.timer = 479;
aim = "killed";
}
if (this.ghost.hitTest(_root.weight2.damage)) {
if (_root.maxpieces <= _root.pieces) {
_root.pieces = 0;
}
_root.snd_splutch.start();
duplicateMovieClip (_root.piece, "piece" + _root.pieces, 700 + _root.pieces);
_root["piece" + _root.pieces]._x = _x;
_root["piece" + _root.pieces]._y = _y;
_root["piece" + _root.pieces].deathtype = "smashed";
_root["piece" + _root.pieces].gotoAndStop("head");
_root.pieces++;
shootpieces(6, "smashed", 4);
this.gotoAndStop("death");
_root.dangerD._x = _x;
_root.dangerD._y = _y;
_root.dangerD.timer = 1;
_root.dudebutton.gotoAndStop(3);
_root.dudebutton.active = "dead";
_root.dudebutton.timer = 479;
aim = "killed";
}
} else if (aim == "killed") {
deathtimer--;
if (deathtimer <= 0) {
this.removeMovieClip();
}
} else if (aim == "killed2") {
deathtimer2--;
if (deathtimer2 <= 0) {
this.removeMovieClip();
}
}
}
}
Instance of Symbol 290 MovieClip "slicer2" in Frame 3
onClipEvent (load) {
if (_name == "slicer") {
active = false;
changing = false;
air = 1;
yy = 0;
ground = 230;
newtargety = 150;
newtargetx = 40;
pos = 150;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_name == "slicer") {
if (_root._currentframe == 4) {
this.removeMovieClip();
}
if (active == true) {
if (ground < 156) {
ground = 156;
}
if (changing == true) {
if (_y >= -4) {
gotoAndStop (1);
if (air == 0) {
yy = yy - 0.5;
_y = (_y + yy);
ground = newtargety;
}
} else {
_x = newtargetx;
air = 1;
yy = 0;
changing = false;
}
}
if ((air == 1) && (changing == false)) {
if (ground > (yy + _y)) {
yy = yy + 1;
_y = (_y + yy);
} else {
play();
_y = ground;
yy = 0;
air = 0;
}
}
}
if (active == false) {
if (_y > -6) {
gotoAndStop (1);
yy = yy - 0.5;
_y = (_y + yy);
} else {
yy = 0;
air = 1;
}
}
}
}
Instance of Symbol 321 MovieClip "weight" in Frame 3
onClipEvent (load) {
if (name == "weight") {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (name != "weight") {
if (_root._currentframe == 4) {
this.removeMovieClip();
}
if (_y < 150) {
_y = 150;
}
}
if ((_visible == false) && (_currentframe != 1)) {
_visible = true;
} else if ((_visible == true) && (_currentframe == 1)) {
_visible = false;
}
}
Instance of Symbol 324 MovieClip "slicerButton" in Frame 3
on (rollOver) {
if (_root.weaponame != "Slicer") {
_root.weaponame = "Slicer";
}
}
on (rollOut) {
if ((_root.weaponame == "Slicer") && (currentweapon != "non")) {
_root.weaponame = _root.currentweapon;
}
if (_root.currentweapon == "non") {
_root.weaponame = "weapons";
}
}
on (release) {
if (_root.currentweapon != "Slicer") {
if (_root.slicer.active == false) {
_root.snd_choose.start();
_root.currentweapon = "Slicer";
_root.bombButton.gotoAndStop(1);
_root.weightButton.gotoAndStop(1);
gotoAndStop (2);
} else if (_root.slicer.active == true) {
_root.snd_unchoose.start();
_root.slicer.active = false;
gotoAndStop (1);
}
} else if (_root.currentweapon == "Slicer") {
_root.snd_unchoose.start();
_root.slicer.active = false;
_root.currentweapon = "non";
gotoAndStop (1);
}
}
Instance of Symbol 331 MovieClip "bombButton" in Frame 3
on (rollOver) {
if (_root.weaponame != "SFDT Bomb") {
_root.weaponame = "SFDT Bomb";
}
}
on (rollOut) {
if ((_root.weaponame == "SFDT Bomb") && (currentweapon != "non")) {
_root.weaponame = _root.currentweapon;
}
if (_root.currentweapon == "non") {
_root.weaponame = "weapons";
}
}
on (release) {
if (_root.currentweapon != "SFDT Bomb") {
_root.snd_choose.start();
_root.currentweapon = "SFDT Bomb";
if (_root.slicer.active == false) {
_root.slicerButton.gotoAndStop(1);
}
_root.weightButton.gotoAndStop(1);
gotoAndStop (2);
}
}
Instance of Symbol 338 MovieClip "weightButton" in Frame 3
on (rollOver) {
if (_root.weaponame != "Weight") {
_root.weaponame = "Weight";
}
}
on (rollOut) {
if ((_root.weaponame == "Weight") && (currentweapon != "non")) {
_root.weaponame = _root.currentweapon;
}
if (_root.currentweapon == "non") {
_root.weaponame = "weapons";
}
}
on (release) {
if (_root.currentweapon != "Weight") {
_root.snd_choose.start();
_root.currentweapon = "Weight";
_root.bombButton.gotoAndStop(1);
if (_root.slicer.active == false) {
_root.slicerButton.gotoAndStop(1);
}
gotoAndStop (2);
}
}
Instance of Symbol 347 MovieClip "dudebutton" in Frame 3
onClipEvent (load) {
active = "no";
timer = 0;
}
on (rollOver) {
if (_root.weaponame != "DUDE") {
_root.weaponame = "DUDE";
}
}
on (rollOut) {
if (_root.currentweapon == "non") {
_root.weaponame = "weapons";
} else {
_root.weaponame = _root.currentweapon;
}
}
on (release) {
if ((_currentframe == 1) && (active == "no")) {
_root.dudepoof.gotoAndPlay(2);
gotoAndStop (2);
} else if ((_currentframe == 2) && (active == "yes")) {
_root.dudepoof._x = _root.dude._x;
_root.dudepoof._y = _root.dude._y;
_root.dudepoof.gotoAndPlay(2);
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (active == "dead") {
timer--;
if (timer == 0) {
active = "no";
gotoAndStop (1);
}
}
}
Instance of Symbol 361 MovieClip "dudepoof2" in Frame 3
onClipEvent (load) {
if (_name == "dudepoof") {
xx = 150;
yy = 215;
}
}
onClipEvent (enterFrame) {
if (_name == "dudepoof") {
if (_root._currentframe == 4) {
this.removeMovieClip();
}
if ((_currentframe == 1) && (_root.dudebutton.active == "no")) {
_x = xx;
_y = yy;
}
if (_currentframe == 3) {
if (_root.dudebutton.active == "no") {
duplicateMovieClip (_root.dude2, "dude", 6002);
_root.dude._x = _x;
_root.dude._y = _y;
_root.dudebutton.active = "yes";
} else if (_root.dudebutton.active == "yes") {
_x = _root.dude._x;
_y = _root.dude._y;
_root.dude.removeMovieClip();
_root.dudebutton.active = "no";
}
}
}
}
Instance of Symbol 367 MovieClip in Frame 3
onClipEvent (load) {
omg = _root.weaponame;
}
onClipEvent (enterFrame) {
if (omg != _root.weaponame) {
omg = _root.weaponame;
gotoAndStop(omg);
}
}
Instance of Symbol 404 MovieClip "inst2" in Frame 3
onClipEvent (load) {
if (_name != "inst") {
_visible = false;
_x = (_x - 100);
} else {
active = false;
}
}
onClipEvent (enterFrame) {
if (_root._currentframe == 4) {
this.removeMovieClip();
}
}
Instance of Symbol 418 MovieClip in Frame 3
on (release) {
_root.gotoAndStop(4);
}
Instance of Symbol 464 MovieClip "mouseC" in Frame 3
onClipEvent (load) {
if (_name == "mouseC2") {
down = false;
bombtimer = 0;
}
}
onClipEvent (mouseMove) {
Mouse.hide();
if (_name == "mouseC2") {
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.currentweapon != "non") {
if (_y > 50) {
if (_root.currentweapon == "SFDT Bomb") {
gotoAndStop (2);
} else if (_root.currentweapon == "Slicer") {
gotoAndStop (3);
} else if (_root.currentweapon == "Weight") {
gotoAndStop (4);
}
} else {
gotoAndStop (1);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.NONO.hitTest(_x, _y, true)) {
if ((_name == "mouseC2") && (_root.inst.active == false)) {
if (down == false) {
down = true;
if (((_root.currentweapon == "SFDT Bomb") && (_currentframe != 1)) && (bombtimer == 0)) {
_root.snd_throw.start();
duplicateMovieClip (_root.bomb, "bomb_" + _root.bombcount, 1500 + _root.bombcount);
_root["bomb_" + _root.bombcount]._y = _y;
_root["bomb_" + _root.bombcount]._x = _x;
_root.bombcount++;
if ((_root.bombcount == 6) || (_root.bombcount < 0)) {
_root.bombcount = 0;
}
bombtimer = 30;
}
if ((_root.currentweapon == "Slicer") && (_currentframe != 1)) {
if (_root.slicer.active == false) {
_root.slicer.active = true;
_root.slicer.ground = _y;
_root.slicer._x = _x;
} else if (_root.slicer.air == 0) {
_root.slicer.newtargety = _y;
_root.slicer.newtargetx = _x;
_root.slicer.changing = true;
}
}
if ((_root.currentweapon == "Weight") && (_currentframe != 1)) {
if (_root.weight2._currentframe == 1) {
_root.weight2._x = _x;
_root.weight2._y = _y;
_root.weight2.play();
}
}
}
}
}
}
onClipEvent (enterFrame) {
if (_name == "mouseC2") {
if (bombtimer > 0) {
bombtimer--;
}
}
}
onClipEvent (mouseUp) {
if (_name == "mouseC2") {
if (down == true) {
down = false;
}
}
}
Instance of Symbol 466 MovieClip "NONO" in Frame 3
onClipEvent (load) {
_visible = false;
}
Frame 4
stopAllSounds();
Symbol 25 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 69
stop();
Symbol 69 MovieClip Frame 13
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 74 MovieClip Frame 4
stop();
Symbol 74 MovieClip Frame 6
stop();
Symbol 74 MovieClip Frame 8
stop();
Symbol 74 MovieClip Frame 10
stop();
Symbol 74 MovieClip Frame 12
stop();
Symbol 87 MovieClip Frame 21
Symbol 101 MovieClip Frame 27
gotoAndPlay (5);
Symbol 139 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 31
gotoAndPlay (7);
Symbol 280 MovieClip Frame 1
attack = false;
hitAble = "no";
stop();
Instance of Symbol 191 MovieClip "ghost" in Symbol 280 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 191 MovieClip "hori" in Symbol 280 MovieClip Frame 23
onClipEvent (load) {
_visible = false;
}
Symbol 280 MovieClip Frame 28
hitAble = "punch1";
Symbol 280 MovieClip Frame 46
hitAble = "no";
gotoAndPlay ("punch1_back");
Symbol 280 MovieClip Frame 47
hitAble = "superkick";
Symbol 280 MovieClip Frame 66
hitAble = "no";
Instance of Symbol 191 MovieClip "vert" in Symbol 280 MovieClip Frame 72
onClipEvent (load) {
_visible = false;
}
Symbol 280 MovieClip Frame 77
hitAble = "air";
Symbol 280 MovieClip Frame 91
hitAble = "no";
Symbol 280 MovieClip Frame 99
gotoAndStop ("stand");
Symbol 280 MovieClip Frame 106
gotoAndStop ("stand");
Instance of Symbol 191 MovieClip "hori" in Symbol 280 MovieClip Frame 112
onClipEvent (load) {
_visible = false;
}
Symbol 280 MovieClip Frame 157
gotoAndStop ("stand");
Instance of Symbol 191 MovieClip "hori" in Symbol 280 MovieClip Frame 163
onClipEvent (load) {
_visible = false;
}
Symbol 280 MovieClip Frame 214
gotoAndStop ("stand");
Instance of Symbol 191 MovieClip "down" in Symbol 280 MovieClip Frame 221
onClipEvent (load) {
_visible = false;
}
Symbol 280 MovieClip Frame 250
gotoAndStop ("stand");
Instance of Symbol 191 MovieClip "opvert" in Symbol 280 MovieClip Frame 272
onClipEvent (load) {
_visible = false;
}
Symbol 280 MovieClip Frame 278
hitAble = "kickdown";
Symbol 280 MovieClip Frame 292
hitAble = "no";
Symbol 280 MovieClip Frame 303
gotoAndStop ("stand");
Symbol 280 MovieClip Frame 305
play();
Instance of Symbol 191 MovieClip "hori" in Symbol 280 MovieClip Frame 307
onClipEvent (load) {
_visible = false;
}
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 4
stop();
Instance of Symbol 289 MovieClip "damage" in Symbol 290 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
}
Symbol 302 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 1
stop();
if ((_root.bg.myDate.getDate() == 25) && (_root.bg.myDate.getMonth() == 11)) {
omg = 8;
} else if ((_root.bg.myDate.getDate() == 31) && (_root.bg.myDate.getMonth() == 9)) {
omg = 9;
} else {
omg = random(7) + 1;
}
Instance of Symbol 302 MovieClip "weight" in Symbol 321 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent.omg);
}
Instance of Symbol 289 MovieClip "damage" in Symbol 321 MovieClip Frame 24
onClipEvent (load) {
_visible = false;
}
Symbol 324 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 1
stop();
Symbol 373 Button
on (release) {
play();
}
Symbol 380 Button
on (release) {
nextFrame();
}
Symbol 393 Button
on (release) {
prevFrame();
}
Symbol 396 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 1
stop();
Instance of Symbol 347 MovieClip "TD" in Symbol 400 MovieClip Frame 2
on (release) {
gotoAndStop (2);
_parent.SL.gotoAndStop(1);
_parent.WE.gotoAndStop(1);
_parent.SB.gotoAndStop(1);
_parent.weapons.gotoAndStop("dude");
}
Instance of Symbol 331 MovieClip "SB" in Symbol 400 MovieClip Frame 2
on (release) {
gotoAndStop (2);
_parent.SL.gotoAndStop(1);
_parent.WE.gotoAndStop(1);
_parent.TD.gotoAndStop(1);
_parent.weapons.gotoAndStop("bomb");
}
Instance of Symbol 324 MovieClip "SL" in Symbol 400 MovieClip Frame 2
on (release) {
gotoAndStop (2);
_parent.SB.gotoAndStop(1);
_parent.WE.gotoAndStop(1);
_parent.TD.gotoAndStop(1);
_parent.weapons.gotoAndStop("slicer");
}
Instance of Symbol 338 MovieClip "WE" in Symbol 400 MovieClip Frame 2
on (release) {
gotoAndStop (2);
_parent.SL.gotoAndStop(1);
_parent.SB.gotoAndStop(1);
_parent.TD.gotoAndStop(1);
_parent.weapons.gotoAndStop("weight");
}
Symbol 403 Button
on (release) {
play();
}
Symbol 404 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 2
active = true;
Symbol 404 MovieClip Frame 51
stop();
Symbol 404 MovieClip Frame 52
active = false;
Instance of Symbol 409 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root._quality == "HIGH") && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((_root._quality != "HIGH") && (_currentframe != 1)) {
gotoAndStop (1);
}
}
on (release) {
_root._quality = "HIGH";
}
Instance of Symbol 412 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root._quality == "MEDIUM") && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((_root._quality != "MEDIUM") && (_currentframe != 1)) {
gotoAndStop (1);
}
}
on (release) {
_root._quality = "MEDIUM";
}
Instance of Symbol 415 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root._quality == "LOW") && (_currentframe != 2)) {
gotoAndStop (2);
}
if ((_root._quality != "LOW") && (_currentframe != 1)) {
gotoAndStop (1);
}
}
on (release) {
_root._quality = "LOW";
}
Symbol 464 MovieClip Frame 1
stop();
Instance of Symbol 437 MovieClip in Symbol 464 MovieClip Frame 1
onClipEvent (load) {
if ((_root.bg.myDate.getDate() == 25) && (_root.bg.myDate.getMonth() == 11)) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 469 Button
on (release) {
gotoAndStop (3);
}