Frame 1
function PreLoad() {
if (_framesloaded == _totalframes) {
gotoAndStop (13);
} else {
loaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
percent = Math.round((loaded / total) * 100);
loadout = ("Loaded " + percent) + "%";
loadbar._width = 300 * (percent / 100);
}
}
loadad._visible = 0;
loadVariables ("http://www.officegamespot.com/gethackcode.php?rannum=" + random(100000), recvar);
if (gotitle == 1) {
_parent.htitle.gotoAndStop(2);
}
rootsound = new Sound();
volumeon = 1;
pauseg = 0;
adload = 0;
gamemode = 1;
unlock = 0;
newscores = 1;
stop();
Instance of Symbol 83 MovieClip "recvar" in Frame 1
onClipEvent (data) {
_parent.newcode = (codein * 64) - 38;
if (myserv == 0) {
_root.gotoAndStop(8);
}
if (gotitle == 1) {
_parent.gotitle = 1;
_parent.htitle.gotoAndStop(2);
}
}
Instance of Symbol 91 MovieClip "musicbut" in Frame 1
onClipEvent (load) {
if (_root.volumeon == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 97 MovieClip "loadbarout" in Frame 1
onClipEvent (enterFrame) {
_root.PreLoad();
}
Frame 2
loadad._visible = 1;
if (gotitle == 1) {
_parent.htitle.gotoAndStop(2);
}
if (adload == 0) {
loadMovie ("http://www.officegamespot.com/wolfgameads3.swf", loadad);
adload = 1;
}
if (_root.allsounds[2].position == 0) {
_root.allsounds[2].start();
}
stop();
Frame 3
loadad._visible = 0;
keyshow.ptext.gotoAndStop(mousecontrol + 1);
lockclip._visible = 0;
combobox._visible = 0;
stop();
Frame 4
loadad._visible = 0;
this.gotoAndStop(3);
Frame 5
function ShowScores() {
sc = 1;
while (sc <= 20) {
ascore = eval ("score" + sc);
ascore.nameout = "";
ascore.scoreout = "";
ascore.numout = "";
if (ascores[sc]) {
ascore.nameout = anames[sc - 1].toUpperCase();
ascore.scoreout = ascores[sc - 1];
ascore.numout = sc;
if (gamemodes[sc - 1] == 3) {
ascore.showmode.gotoAndStop(3);
} else {
ascore.showmode.gotoAndStop(2);
}
} else {
ascore.nameout = "";
ascore.scoreout = "";
ascore.numout = "";
}
sc++;
}
thiscont = 1;
}
thiscont = 0;
loadad._visible = 1;
allsounds[3].start(0, 9999);
if (newscores == 1) {
anames = "";
ascores = "";
loadVariables ("http://www.officegamespot.com/gethackscores.php?rn=" + random(100000), getscores);
newscores = 0;
} else {
ShowScores();
}
Instance of Symbol 238 MovieClip "getscores" in Frame 5
onClipEvent (data) {
_parent.ascores = ascores.split(",");
_parent.anames = anames.split(",");
_parent.gamemodes = amodes.split(",");
_parent.ShowScores();
}
Frame 6
loadad._visible = 0;
Frame 7
loadad._visible = 0;
newscores = 1;
Instance of Symbol 274 MovieClip in Frame 7
onClipEvent (load) {
dcount = 0;
}
onClipEvent (enterFrame) {
if (dcount == 45) {
_root.gotoAndStop(5);
}
dcount = dcount + 1;
}
Frame 8
loadad._visible = 0;
if (gotitle == 1) {
_parent.htitle.gotoAndStop(2);
}
Frame 9
loadad._visible = 0;
if (!mousecontrol) {
mousecontrol = 1;
tg2.gotoAndStop(2);
} else if (mousecontrol == 1) {
tg2.gotoAndStop(2);
} else {
tg1.gotoAndStop(2);
}
Instance of Symbol 302 MovieClip "tg2" in Frame 9
onClipEvent (load) {
mousecontrol = 1;
}
Instance of Symbol 302 MovieClip "tg1" in Frame 9
onClipEvent (load) {
mousecontrol = 0;
}
Frame 10
loadad._visible = 0;
Frame 11
loadad._visible = 0;
Frame 12
loadad._visible = 0;
controlclip.gotoAndStop(mousecontrol + 1);
Frame 13
function SaveHiScore(sname, sscore, shits) {
hiscore = 0;
loadVariables ((((((((((("http://www.officegamespot.com/hackscorein.php?rannum=" + random(100000)) + "&username=") + sname) + "&finalscore=") + sscore) + "&hits=") + shits) + "&gamemode=") + gamemode) + "&codein=") + newcode, recvar);
}
loadad._visible = 0;
stop();
if (!soundinit) {
volumeon = 1;
allsounds = new Array();
rootsound = new Sound();
soundcount = 0;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("easymode");
allsounds[soundcount].setVolume(50);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("mediummode");
allsounds[soundcount].setVolume(50);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("hardmode");
allsounds[soundcount].setVolume(50);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("bombscare");
allsounds[soundcount].setVolume(50);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("hitgrenade-a");
allsounds[soundcount].setVolume(25);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("hitgrenade-b");
allsounds[soundcount].setVolume(25);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("hitgrenade-c");
allsounds[soundcount].setVolume(25);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("hitgrenade-d");
allsounds[soundcount].setVolume(25);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("hitgrenade-e");
allsounds[soundcount].setVolume(25);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("hitgrenade-f");
allsounds[soundcount].setVolume(25);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("pickupbutton");
allsounds[soundcount].setVolume(65);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("grenade-explodes");
allsounds[soundcount].setVolume(65);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("birdgetshitbyhack");
allsounds[soundcount].setVolume(40);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("timewarningbeep");
allsounds[soundcount].setVolume(35);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("cartwheel-a");
allsounds[soundcount].setVolume(35);
soundcount = soundcount + 1;
this.createEmptyMovieClip("sound" + soundcount, 749233 + soundcount);
soundclip = eval ("sound" + soundcount);
allsounds[soundcount] = new Sound(soundclip);
allsounds[soundcount].attachSound("cartwheel-b");
allsounds[soundcount].setVolume(35);
soundcount = soundcount + 1;
soundinit = 1;
}
Instance of Symbol 91 MovieClip "musicbut" in Frame 13
onClipEvent (load) {
if (_root.volumeon == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 9 Button
on (press) {
_root.allsounds[0].stop();
_root.allsounds[1].stop();
_root.allsounds[2].stop();
_root.bsound1.start();
if (entername) {
_parent.SaveHiScore(entername, _root.scoreout, _root.hitsout);
}
_root.mainclip.allsounds[47].stop();
if (entername) {
_root.gotoAndStop(7);
} else {
_root.gotoAndStop(5);
}
this.removeMovieClip();
}
Symbol 10 MovieClip Frame 10
if (_root.mainclip.guyhit == 1) {
_root.mainclip.allsounds[47].start();
}
stop();
Symbol 15 Button
on (press) {
_root.bsound1.start();
_root.mainclip.allsounds[47].stop();
_root.gotoAndStop(4);
this.removeMovieClip();
}
Symbol 21 MovieClip [gameoverclip] Frame 1
entername.setFocus();
stop();
Symbol 21 MovieClip [gameoverclip] Frame 2
entername.setFocus();
stop();
Symbol 25 MovieClip [damnum] Frame 35
this.removeMovieClip();
Instance of Symbol 29 MovieClip in Symbol 30 MovieClip [blood] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x + _parent.tx;
_parent._y = _parent._y + _parent.ty;
_parent.ty = _parent.ty + 2;
ytest = -15 - random(10);
if (_parent._y > ytest) {
_parent._parent.GBlood(_parent._x, _parent._y, _parent._xscale);
_parent.removeMovieClip();
}
}
Instance of Symbol 34 MovieClip in Symbol 35 MovieClip [jumpclip] Frame 1
onClipEvent (enterFrame) {
}
Symbol 42 MovieClip [hole] Frame 12
stop();
Symbol 52 MovieClip [rock] Frame 1
stop();
Instance of Symbol 44 MovieClip in Symbol 52 MovieClip [rock] Frame 1
onClipEvent (load) {
xvel = -25 + random(51);
yvel = -10 - random(80);
}
onClipEvent (enterFrame) {
if (_parent._y < -9) {
_parent._x = _parent._x + xvel;
_parent._y = _parent._y + yvel;
_parent._rotation = _parent._rotation + (xvel * 2);
yvel = yvel + 3;
}
}
Instance of Symbol 53 MovieClip in Symbol 54 MovieClip [debris] Frame 1
onClipEvent (load) {
xvel = -25 + random(51);
yvel = -20 - random(100);
}
onClipEvent (enterFrame) {
if (_parent._y < -9) {
_parent._x = _parent._x + xvel;
_parent._y = _parent._y + yvel;
yvel = yvel + 3;
}
}
Instance of Symbol 55 MovieClip [expremotein] in Symbol 56 MovieClip [expremote] Frame 1
onClipEvent (enterFrame) {
_parent._parent.ExplodeGuy();
}
Symbol 59 MovieClip Frame 17
gotoAndPlay (1);
Symbol 59 MovieClip Frame 28
gotoAndPlay (18);
Instance of Symbol 61 MovieClip "birdin" in Symbol 62 MovieClip [birdout] Frame 1
onClipEvent (load) {
function HitBird() {
_parent.yvel = _parent.yvel + 4;
_parent._y = _parent._y + 20;
wing1.gotoAndPlay(18);
wing2.gotoAndPlay(18);
_parent._parent.GoScore("BIRD HIT", 100, 31);
_parent._parent.AddFeathers(_parent);
}
bhit = 0;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x - _parent.xvel;
_parent._y = _parent._y - _parent.yvel;
if (!bhit) {
if (_parent.hitTest(_parent._parent.ball)) {
bhit = 1;
HitBird();
}
}
if (((_parent._x - _parent._parent.char._x) < -1800) || ((_parent._x - _parent._parent.char._x) > 1800)) {
_parent._parent.birdcount = _parent._parent.birdcount - 1;
_parent.removeMovieClip();
}
}
Instance of Symbol 65 MovieClip "featherin" in Symbol 66 MovieClip [feathers] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y + _parent.yvel;
_parent._x = _parent._x + _parent.xvel;
_parent.xvel = _parent.xvel / 1.1;
if (_parent._y > 100) {
_parent.removeMovieClip();
}
}
Instance of Symbol 68 MovieClip in Symbol 69 MovieClip [pausescreen] Frame 1
onClipEvent (mouseDown) {
_parent._parent.hsclip.mainclip.UnPause();
}
Symbol 88 Button
on (rollOver) {
_parent.pauseg = 1;
}
on (rollOut) {
_parent.pauseg = 0;
}
on (press) {
_parent.rootsound.setVolume(0);
_parent.volumeon = 0;
gotoAndStop (2);
}
Symbol 89 Button
on (rollOver) {
_parent.pauseg = 1;
}
on (rollOut) {
_parent.pauseg = 0;
}
on (press) {
_parent.rootsound.setVolume(100);
_parent.volumeon = 1;
gotoAndStop (1);
}
Symbol 91 MovieClip Frame 1
stop();
Symbol 103 Button
on (release) {
getURL ("http://www.wolfcom.ca/?w=1", "_blank");
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 10
stop();
Symbol 119 Button
on (press) {
_root.gotoAndStop(9);
}
Symbol 123 Button
on (press) {
allsounds[2].stop();
_root.gotoAndStop(5);
}
Symbol 127 Button
on (press) {
_root.gotoAndStop(6);
}
Symbol 131 Button
on (press) {
_root.gotoAndStop(11);
}
Symbol 132 Button
on (release) {
getURL ("http://www.wolfcom.ca/", "_self");
}
Symbol 140 MovieClip Frame 1
this._visible = 0;
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 171 Button
on (press) {
hsclip.mainclip.LaunchBall();
}
Symbol 179 MovieClip Frame 6
stop();
Symbol 179 MovieClip Frame 11
stop();
Symbol 179 MovieClip Frame 16
stop();
Symbol 179 MovieClip Frame 21
stop();
Symbol 179 MovieClip Frame 26
stop();
Symbol 179 MovieClip Frame 31
stop();
Symbol 179 MovieClip Frame 40
stop();
Symbol 179 MovieClip Frame 50
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 21
gotoAndPlay (2);
Symbol 185 MovieClip Frame 35
gotoAndPlay (22);
Symbol 185 MovieClip Frame 45
gotoAndPlay (36);
Symbol 186 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 21
stop();
Symbol 211 MovieClip Frame 1
_parent.reverse = 0;
stop();
Symbol 211 MovieClip Frame 10
_parent.walk = 0;
gotoAndStop (1);
Symbol 211 MovieClip Frame 11
stop();
Symbol 211 MovieClip Frame 22
_parent.RightSide();
Symbol 211 MovieClip Frame 30
_parent.LeftReverse();
stop();
Symbol 211 MovieClip Frame 40
_parent.LeftSide2();
Symbol 211 MovieClip Frame 47
_parent.EndReverse2();
gotoAndStop (1);
Symbol 211 MovieClip Frame 48
_parent.LeftDown();
Symbol 211 MovieClip Frame 53
_parent.RightSide2();
Symbol 211 MovieClip Frame 66
_parent.EndReverse();
Symbol 211 MovieClip Frame 74
_parent.LeftSide();
Symbol 211 MovieClip Frame 83
_parent.RightReverse();
Symbol 211 MovieClip Frame 105
stop();
Symbol 211 MovieClip Frame 120
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 1
function PauseGame() {
_root.attachMovie("pausescreen", "pausescreen", 84752);
_root.pausescreen._x = 360;
_root.pausescreen._y = 120;
_root.pauseg = 1;
gameon = 0;
}
function UnPause() {
_root.pausescreen.removeMovieClip();
_root.pauseg = 0;
gameon = 1;
}
function Resetmx() {
mxstart = 0;
mystart = 0;
mxend = 0;
myend = 0;
}
function AttachBird() {
attachMovie("birdout", "bird", 45302);
if (random(2) == 0) {
bird._y = -500 - random(150);
bird._x = char._x - 1000;
bird.xvel = -5 - random(5);
bird.yvel = random(3);
bird._xscale = -100;
} else {
bird._y = -500 - random(150);
bird._x = char._x + 1000;
bird.xvel = 5 + random(5);
bird.yvel = random(3);
}
birdcount = birdcount + 1;
}
function AddFeathers(birdclip) {
_root.allsounds[12].start(0, 0);
fcount = 5 + random(5);
f = 0;
while (f < fcount) {
attachMovie("feathers", "feather" + f, 45303 + f);
feather = eval ("feather" + f);
feather._x = birdclip._x + (-20 + random(40));
feather._y = birdclip._y + (-20 + random(40));
feather._xscale = 10 + random(20);
feather._yscale = 10 + random(20);
feather.featherin.gotoAndPlay(1 + random(10));
feather.xvel = -5 + random(11);
feather.yvel = 4 + random(6);
f++;
}
}
function LaunchBall() {
if (ball._y > -2.4) {
_root.allsounds[10].start(0, 0);
ball.yvel = ball.yvel - 60;
streak = 0;
if (_root.gamemode == 1) {
hits = 0;
score = 0;
_root.hitsout = 0;
_root.scoreout = 0;
}
_root.streakout = 0;
}
gameon = 1;
_root.pickupbut._visible = 0;
}
function WalkLeft() {
_root.keyshow.gotoAndStop(3);
if (reverse == 1) {
} else if (reverse == 2) {
if (double1 == 1) {
if ((lastkey == 0) && ((getTimer() - doubletime) < 120)) {
double1 = 2;
}
}
if (double1 == 2) {
char.gotoAndPlay(32);
StartReverse();
} else if (jump > 0) {
xvel = xvel - 1;
} else {
walk = 1;
nextframe = char._currentframe + 1;
if (nextframe > 105) {
nextframe = 95;
}
char.gotoAndStop(nextframe);
char._x = char._x - 8.18;
targ1._x = targ1._x - 8.18;
targ2._x = targ2._x - 8.18;
targ3._x = targ3._x - 8.18;
targ4._x = targ4._x - 8.18;
targ5._x = targ5._x - 8.18;
}
} else {
if (double1 == 1) {
if ((lastkey == 0) && ((getTimer() - doubletime) < 120)) {
double1 = 2;
}
}
if (double1 == 2) {
char.gotoAndPlay(12);
StartReverse();
} else if (jump > 0) {
xvel = xvel - 1;
} else {
walk = 1;
nextframe = char._currentframe - 1;
if (nextframe < 1) {
nextframe = 9;
}
char.gotoAndStop(nextframe);
char._x = char._x - 8.18;
targ1._x = targ1._x - 8.18;
targ2._x = targ2._x - 8.18;
targ3._x = targ3._x - 8.18;
targ4._x = targ4._x - 8.18;
targ5._x = targ5._x - 8.18;
}
}
}
function WalkRight() {
_root.keyshow.gotoAndStop(5);
if (reverse == 1) {
} else if (reverse == 2) {
if (double2 == 1) {
if ((lastkey == 0) && ((getTimer() - doubletime) < 120)) {
double2 = 2;
}
}
if (double2 == 2) {
char.gotoAndPlay(48);
StartReverse();
} else if (jump > 0) {
xvel = xvel + 1;
} else {
walk = 1;
nextframe = char._currentframe + 1;
if (nextframe > 105) {
nextframe = 95;
}
char.gotoAndStop(nextframe);
char._x = char._x + 8.18;
targ1._x = targ1._x + 8.18;
targ2._x = targ2._x + 8.18;
targ3._x = targ3._x + 8.18;
targ4._x = targ4._x + 8.18;
targ5._x = targ5._x + 8.18;
}
} else {
if (double2 == 1) {
if ((lastkey == 0) && ((getTimer() - doubletime) < 120)) {
double2 = 2;
}
}
if (double2 == 2) {
char.gotoAndPlay(67);
StartReverse();
} else if (jump > 0) {
xvel = xvel + 1;
} else {
walk = 1;
nextframe = char._currentframe + 1;
if (nextframe > 9) {
nextframe = 1;
}
char.gotoAndStop(nextframe);
char._x = char._x + 8.18;
targ1._x = targ1._x + 8.18;
targ2._x = targ2._x + 8.18;
targ3._x = targ3._x + 8.18;
targ4._x = targ4._x + 8.18;
targ5._x = targ5._x + 8.18;
}
}
}
function KeyListen() {
_root.keyshow.gotoAndStop(1);
if (Key.isDown(87) || (Key.isDown(38))) {
_root.keyshow.gotoAndStop(2);
if (reverse != 1) {
if (jump == 0) {
char.swapDepths(351);
ball.swapDepths(350);
jump = 20;
}
}
}
if (Key.isDown(65)) {
WalkLeft();
double1 = 1;
double2 = 0;
doubletime = getTimer();
lastkey = 1;
} else if (Key.isDown(37)) {
WalkLeft();
double1 = 1;
double2 = 0;
doubletime = getTimer();
lastkey = 1;
} else if (Key.isDown(68)) {
WalkRight();
double2 = 1;
double1 = 0;
doubletime = getTimer();
lastkey = 2;
} else if (Key.isDown(39)) {
WalkRight();
double2 = 1;
double1 = 0;
doubletime = getTimer();
lastkey = 2;
} else if (Key.isDown(83) || (Key.isDown(40))) {
_root.keyshow.gotoAndStop(4);
stall = 1;
} else {
stall = 0;
walk = 0;
lastkey = 0;
}
}
function GoJump() {
jump = jump - 1;
char.arm1.armin.gotoAndStop(50 - jump);
char.arm2.armin.gotoAndStop(50 - jump);
if (jump < 10) {
var _local1 = 50 - (jump * 5);
char._y = char._y + _local1;
if (char._y > -170.7) {
var _local2 = char._y + 170.7;
char._y = -170.7;
jump = 0;
xvel = 0;
_local1 = _local1 - _local2;
}
targ1._y = targ1._y + _local1;
targ2._y = targ2._y + _local1;
targ3._y = targ3._y + _local1;
targ4._y = targ4._y + _local1;
targ5._y = targ5._y + _local1;
} else if (jump > 10) {
var _local1 = (jump * 4) - 40;
char._y = char._y - _local1;
targ1._y = targ1._y - _local1;
targ2._y = targ2._y - _local1;
targ3._y = targ3._y - _local1;
targ4._y = targ4._y - _local1;
targ5._y = targ5._y - _local1;
}
}
function MoveTargs() {
if (reverse != 1) {
var _local2 = char.leg1.targ2._x;
var _local1 = char.leg1.targ2._y;
targ2.difx = _local2 - targlastx1;
targ2.dify = _local1 - targlasty1;
targ2._x = targ2._x - targ2.difx;
targ2._y = targ2._y + targ2.dify;
targlastx1 = _local2;
targlasty1 = _local1;
_local2 = char.leg1.targ4._x;
_local1 = char.leg1.targ4._y;
targ4.difx = _local2 - targlastx2;
targ4.dify = _local1 - targlasty2;
targ4._x = targ4._x - targ4.difx;
targ4._y = targ4._y + targ4.dify;
targlastx2 = _local2;
targlasty2 = _local1;
_local2 = char.leg2.targ2._x;
_local1 = char.leg2.targ2._y;
targ3.difx = _local2 - targlastx3;
targ3.dify = _local1 - targlasty3;
targ3._x = targ3._x + targ3.difx;
targ3._y = targ3._y + targ3.dify;
targlastx3 = _local2;
targlasty3 = _local1;
_local2 = char.leg2.targ4._x;
_local1 = char.leg2.targ4._y;
targ5.difx = _local2 - targlastx4;
targ5.dify = _local1 - targlasty4;
targ5._x = targ5._x + targ5.difx;
targ5._y = targ5._y + targ5.dify;
targlastx4 = _local2;
targlasty4 = _local1;
}
}
function MoveTargs2() {
if (reverse != 1) {
var _local2 = char.leg1.targ2._x;
var _local1 = char.leg1.targ2._y;
targ2.difx = _local2 - targlastx1;
targ2.dify = _local1 - targlasty1;
targ2._x = targ2._x + targ2.difx;
targ2._y = targ2._y - targ2.dify;
targlastx1 = _local2;
targlasty1 = _local1;
_local2 = char.leg1.targ4._x;
_local1 = char.leg1.targ4._y;
targ4.difx = _local2 - targlastx2;
targ4.dify = _local1 - targlasty2;
targ4._x = targ4._x + targ4.difx;
targ4._y = targ4._y - targ4.dify;
targlastx2 = _local2;
targlasty2 = _local1;
_local2 = char.leg2.targ2._x;
_local1 = char.leg2.targ2._y;
targ3.difx = _local2 - targlastx3;
targ3.dify = _local1 - targlasty3;
targ3._x = targ3._x - targ3.difx;
targ3._y = targ3._y - targ3.dify;
targlastx3 = _local2;
targlasty3 = _local1;
_local2 = char.leg2.targ4._x;
_local1 = char.leg2.targ4._y;
targ5.difx = _local2 - targlastx4;
targ5.dify = _local1 - targlasty4;
targ5._x = targ5._x - targ5.difx;
targ5._y = targ5._y - targ5.dify;
targlastx4 = _local2;
targlasty4 = _local1;
}
}
function GoCombo(cnum, ctyp) {
if (_root.gamemode > 1) {
_root.combobox._visible = 1;
if (ctyp == 2) {
_root.combobox.comboboxin.comboin = "SUPER";
} else {
_root.combobox.comboboxin.comboin = cnum + " HIT";
}
_root.combobox.gotoAndPlay(2);
}
}
function GoScore(mname, pts, styp, kicknum) {
if (_root.gamemode == 3) {
_root.allsounds[4 + random(6)].start(0, 0);
}
hits = hits + 1;
streak = streak + 1;
strtemp = streak;
mnameout = mname + " +";
_root.movename.gotoAndPlay(styp);
if (reverse == 2) {
pts = pts * 2;
_root.movename.movenamein.mname = (("REVERSE " + mname) + " +") + (pts + streak);
} else if (((kicknum == 8) && (lastkick == 24)) || ((kicknum == 24) && (lastkick == 8))) {
pts = 75;
_root.movename.gotoAndPlay(61);
mnameout = "RAINBOW +";
GoCombo(combo, 2);
} else if (((kicknum == 5) && (lastkick == 21)) || ((kicknum == 21) && (lastkick == 5))) {
pts = 125;
_root.movename.gotoAndPlay(61);
mnameout = "DRIFTER +";
GoCombo(combo, 2);
} else if ((kicknum == 11) && ((lastkick == 21) || (lastkick == 5))) {
pts = 125;
_root.movename.gotoAndPlay(61);
mnameout = "CLIPPER + STALL +";
GoCombo(combo, 2);
} else if ((lastkick == 11) && ((kicknum == 21) || (kicknum == 5))) {
pts = 125;
_root.movename.gotoAndPlay(61);
mnameout = "STALL + CLIPPER +";
GoCombo(combo, 2);
} else if ((kicknum == 35) && ((lastkick == 21) || (lastkick == 5))) {
pts = 125;
_root.movename.gotoAndPlay(61);
mnameout = "CARTWHEEL KICK + CLIPPER +";
GoCombo(combo, 2);
} else if ((lastkick == 35) && ((kicknum == 21) || (kicknum == 5))) {
pts = 125;
_root.movename.gotoAndPlay(61);
mnameout = "CLIPPER + CARTWHEEL KICK +";
GoCombo(combo, 2);
}
if (lastkick != kicknum) {
combo = combo + 1;
if (combo > 2) {
GoCombo(combo, 1);
pts = pts * combo;
}
} else {
combo = 0;
}
score = score + (pts + streak);
NumberUp(ball._x, ball._y, pts + streak);
_root.scoreout = score;
_root.movename.movenamein.mname = mnameout + (pts + streak);
lastkick = kicknum;
}
function NumberUp(bx, by, scoreup) {
attachMovie("damnum", "damnum" + dmcount, 12200 + dmcount);
damnum = eval ("damnum" + dmcount);
damnum._x = bx;
damnum._y = by - 100;
damnum._xscale = 180;
damnum._yscale = 180;
damnum.damnumin.num = scoreup;
dmcount = dmcount + 1;
}
function TestSub1Knee() {
ball._rotation = 0;
ball._yscale = 60 + random(25);
if (stall == 0) {
ball.yvel = 0;
ball.yvel = ball.yvel - (((12 + tdfy) + tdfx) / 2);
ball.xvel = -3 + random(7);
char.arm1.armin.gotoAndPlay(char.arm1.armin._currentframe + 1);
char.arm2.armin.gotoAndPlay(char.arm1.armin._currentframe + 1);
if (jump > 0) {
GoScore("FLYING KNEE", 15, 31, 1);
} else {
GoScore("KNEE", 10, 1, 2);
}
} else if (ball._y < (targ2._y + 4)) {
if ((Math.abs(ball.xvel) > 3) || (Math.abs(ball.yvel) > 3)) {
if (ball.getDepth() == 350) {
GoScore("INSIDE KNEE DELAY", 40, 31, 11);
} else {
GoScore("KNEE DELAY", 20, 31, 11);
}
}
ball.xvel = 0;
ball.yvel = 0;
ball._x = targ2._x;
ball._y = targ2._y;
}
}
function TestSub1Leg() {
ball._rotation = 0;
ball._yscale = 60 + random(25);
if (stall == 0) {
ball.yvel = 0;
ball.yvel = ball.yvel - (((12 + tdfy) + tdfx) / 2);
ball.xvel = -3 + random(7);
if (reverse == 1) {
ball.yvel = ball.yvel - 20;
}
char.arm1.armin.gotoAndPlay(char.arm1.armin._currentframe + 1);
char.arm2.armin.gotoAndPlay(char.arm1.armin._currentframe + 1);
if (legpos == 1) {
if (jump > 0) {
GoScore("FLYING CLIPPER", 50, 31, 5);
} else {
GoScore("INSIDE KICK", 10, 1, 6);
}
} else if (legpos == 2) {
if (jump > 0) {
GoScore("FLYING OUTSIDE KICK", 15, 31, 7);
} else {
GoScore("OUTSIDE KICK", 10, 1, 8);
}
} else if (legpos == 3) {
if (jump > 0) {
GoScore("FLYING TOE KICK", 15, 31, 9);
} else {
GoScore("TOE KICK", 10, 1, 10);
}
}
} else if (ball._y < (targ4._y + 4)) {
if ((Math.abs(ball.xvel) > 3) || (Math.abs(ball.yvel) > 3)) {
if (legpos == 1) {
if (jump > 0) {
GoScore("FLYING CLIPPER DELAY", 75, 31, 12);
} else {
GoScore("INSIDE FOOT DELAY", 30, 31, 11);
}
} else if (legpos == 2) {
if (jump > 0) {
GoScore("FLYING OUTSIDE FOOT DELAY", 30, 31, 11);
} else {
GoScore("OUTSIDE FOOT DELAY", 20, 31, 11);
}
} else if (legpos == 3) {
if (jump > 0) {
GoScore("FLYING TOE DELAY", 30, 31, 11);
} else {
GoScore("TOE DELAY", 20, 31, 11);
}
}
}
ball.xvel = 0;
ball.yvel = 0;
ball._x = targ4._x;
ball._y = targ4._y;
}
}
function TestLimb1() {
tdfx = Math.abs(mxout);
tdfy = Math.abs(myout);
if (((tdfy > 0) || (tdfx > 0)) || (stall == 1)) {
if ((Math.abs(ball._x - targ2._x) < 25) && (Math.abs(ball._y - targ2._y) < 30)) {
TestSub1Knee();
}
}
tdfx = Math.abs(mxout);
tdfy = Math.abs(myout);
if (((tdfy > 0) || (tdfx > 0)) || (stall == 1)) {
if ((Math.abs(ball._x - targ4._x) < 55) && (Math.abs(ball._y - targ4._y) < 30)) {
TestSub1Leg();
}
}
}
function TestSub2Leg() {
ball._rotation = 0;
ball._yscale = 60 + random(25);
if (stall == 0) {
ball.yvel = 0;
ball.yvel = ball.yvel - (((12 + tdfy) + tdfx) / 2);
ball.xvel = -3 + random(7);
if (reverse == 1) {
ball.yvel = ball.yvel - 30;
}
char.arm1.armin.gotoAndPlay(char.arm1.armin._currentframe + 1);
char.arm2.armin.gotoAndPlay(char.arm1.armin._currentframe + 1);
if (legpos == 1) {
if (jump > 0) {
GoScore("FLYING CLIPPER", 50, 31, 21);
} else {
GoScore("INSIDE KICK", 10, 1, 22);
}
} else if (legpos == 2) {
if (jump > 0) {
GoScore("FLYING OUTSIDE KICK", 15, 31, 23);
} else {
GoScore("OUTSIDE KICK", 10, 1, 24);
}
} else if (legpos == 3) {
if (jump > 0) {
GoScore("FLYING TOE KICK", 15, 31, 25);
} else {
GoScore("TOE KICK", 10, 1, 26);
}
}
} else if (ball._y < (targ5._y + 4)) {
if ((Math.abs(ball.xvel) > 3) || (Math.abs(ball.yvel) > 3)) {
if (legpos == 1) {
if (jump > 0) {
GoScore("FLYING CLIPPER DELAY", 75, 31, 12);
} else {
GoScore("INSIDE FOOT DELAY", 30, 31, 11);
}
} else if (legpos == 2) {
if (jump > 0) {
GoScore("FLYING OUTSIDE FOOT DELAY", 30, 31, 11);
} else {
GoScore("OUTSIDE FOOT DELAY", 20, 31, 11);
}
} else if (legpos == 3) {
if (jump > 0) {
GoScore("FLYING TOE DELAY", 30, 31, 11);
} else {
GoScore("TOE DELAY", 20, 31, 11);
}
}
}
ball.xvel = 0;
ball.yvel = 0;
ball._x = targ5._x;
ball._y = targ5._y;
}
}
function TestSub2Knee() {
ball._rotation = 0;
ball._yscale = 60 + random(25);
if (stall == 0) {
ball.yvel = 0;
ball.yvel = ball.yvel - (((12 + tdfy) + tdfx) / 2);
ball.xvel = -3 + random(7);
if (reverse == 1) {
ball.yvel = ball.yvel - 30;
}
char.arm1.armin.gotoAndPlay(char.arm1.armin._currentframe + 1);
char.arm2.armin.gotoAndPlay(char.arm1.armin._currentframe + 1);
if (jump > 0) {
GoScore("FLYING KNEE", 15, 31, 17);
} else {
GoScore("KNEE", 10, 1, 18);
}
if (hits > 50) {
char.upbody.upbodyin.gotoAndPlay(22);
} else if (hits > 100) {
char.upbody.upbodyin.gotoAndPlay(36);
}
} else if (ball._y < (targ3._y + 4)) {
if ((Math.abs(ball.xvel) > 3) || (Math.abs(ball.yvel) > 3)) {
if (ball.getDepth() == 350) {
GoScore("INSIDE KNEE DELAY", 40, 31, 11);
} else {
GoScore("KNEE DELAY", 20, 31, 11);
}
}
ball.xvel = 0;
ball.yvel = 0;
ball._x = targ3._x;
ball._y = targ3._y;
}
}
function TestLimb2() {
tdfx = Math.abs(mxout);
tdfy = Math.abs(myout);
if (((tdfy > 0) || (tdfx > 0)) || (stall == 1)) {
if ((Math.abs(ball._x - targ3._x) < 25) && (Math.abs(ball._y - targ3._y) < 30)) {
TestSub2Knee();
}
}
tdfx = Math.abs(mxout);
tdfy = Math.abs(myout);
if (((tdfy > 0) || (tdfx > 0)) || (stall == 1)) {
if ((Math.abs(ball._x - targ5._x) < 55) && (Math.abs(ball._y - targ5._y) < 30)) {
TestSub2Leg();
}
}
}
function PlaceHole() {
var px = ball._x;
var py = (ball._y - 30);
ball._visible = 0;
attachMovie("hole", "hole", 9450);
hole._x = px;
hole._y = py;
d = 0;
while (d < 50) {
attachMovie("rock", "rock" + d, 9550 + d);
rock = eval ("rock" + d);
rock._x = px + (-100 + random(200));
rock._y = -10;
rock.gotoAndStop(1 + random(8));
rock._xscale = 10 + random(50);
rock._yscale = rock._xscale;
d++;
}
d = 0;
while (d < 100) {
attachMovie("debris", "debris" + d, 9250 + d);
debris = eval ("debris" + d);
debris._x = px + (-100 + random(200));
debris._y = -10;
debris._xscale = 30 + random(50);
debris._yscale = 10 + random(50);
d++;
}
}
function CartWheelKick() {
tdfx = Math.abs(mxout);
tdfy = Math.abs(myout);
if ((tdfy > 0) || (tdfx > 0)) {
if (ball.hitTest(char) && (ball.yvel > 0)) {
ball.yvel = ball.yvel - (30 + random(40));
ball.xvel = -2 + random(5);
GoScore("CARTWHEEL KICK", 50, 31, 35);
}
}
}
function HeadBut() {
ball._rotation = 0;
ball._yscale = 60 + random(25);
if (jump > 0) {
ball.yvel = 0;
ball.yvel = ball.yvel - 30;
ball.xvel = -2 + random(5);
GoScore("HEADBUT", 10, 1, 33);
} else if (stall == 1) {
if (ball._y < (targ1._y + 3)) {
if ((Math.abs(ball.xvel) > 2) || (Math.abs(ball.yvel) > 2)) {
GoScore("FOREHEAD DELAY", 15, 31, 34);
}
ball.xvel = 0;
ball.yvel = 0;
ball._x = targ1._x;
ball._y = targ1._y;
char.head.gotoAndPlay(42);
}
}
}
function BallEvent() {
if (limb > 0) {
char.head.headin.headinin.gotoAndStop(1);
char.head.headin.headinin._rotation = 0;
} else if (ball._x > char._x) {
if (reverse == 2) {
char.head.headin.headinin.gotoAndStop(3);
char.head.headin.headinin._rotation = (ball._y - char._y) / 10;
} else {
char.head.headin.headinin.gotoAndStop(2);
char.head.headin.headinin._rotation = (ball._y - char._y) / 10;
}
} else if (ball._x < char._x) {
if (reverse == 2) {
char.head.headin.headinin.gotoAndStop(2);
char.head.headin.headinin._rotation = (char._y - ball._y) / 10;
} else {
char.head.headin.headinin.gotoAndStop(3);
char.head.headin.headinin._rotation = (char._y - ball._y) / 10;
}
}
if (ball._y < -350) {
var _local3 = 120 + (ball._y / 12);
if (_local3 < 40) {
_local3 = 40;
}
_parent._xscale = _local3;
_parent._yscale = _local3;
}
if (ball.yvel > 0) {
if ((Math.abs(ball._x - targ1._x) < 25) && (Math.abs(ball._y - targ1._y) < 30)) {
HeadBut();
}
if (limb == 1) {
TestLimb1();
}
if (limb == 2) {
TestLimb2();
}
}
if ((reverse == 1) && (limb != 0)) {
CartWheelKick();
}
if (ball.yvel < -40) {
ball.yvel = -40;
}
ball._x = ball._x + ball.xvel;
ball._y = ball._y + ball.yvel;
ball._rotation = ball._rotation + (ball.xvel * 4);
var _local4 = ball.xvel;
_x = (_x - (_local4 * 0.8));
ball.yvel = ball.yvel + 1.5;
if (ball._y > 20) {
GroundBall();
}
if (_root.gamemode == 3) {
ball._yscale = 100;
}
}
function GroundBall() {
if (_root.gamemode == 3) {
_root.allsounds[11].start(0, 0);
PlaceHole();
ExpGuyStart();
GameOver();
} else {
_root.pickupbut._visible = 1;
}
lastkick = 0;
kicknum = 0;
combo = 0;
ball._y = 20;
ball.xvel = 0;
ball.yvel = 0;
}
function ExpGuyStart() {
char.head.headin.headinin.gotoAndStop(1);
Bleed();
char._y = -170.7;
if (Math.abs(char._x - ball._x) < 200) {
attachMovie("expremote", "expremote", 34245);
char.leg1.gotoAndStop(126);
char.leg1.upleg.gotoAndStop(2);
char.leg2.gotoAndStop(126);
char.leg2.upleg.gotoAndStop(2);
headvelx = -10 + random(21);
headvely = -40 - random(80);
arm1velx = -30 + random(61);
arm1vely = -10 - random(40);
arm2velx = -30 + random(61);
arm2vely = -10 - random(40);
torsovelx = -30 + random(61);
torsovely = -10 - random(40);
leg1velx = -30 + random(61);
leg1vely = -10 - random(40);
leg2velx = -30 + random(61);
leg2vely = -10 - random(40);
upvelx = -30 + random(61);
upvely = -10 - random(40);
char.torso._visible = 0;
char.upbody._visible = 0;
}
}
function ExplodeGuy() {
if (char.head._y < 160) {
char.head._x = char.head._x + headvelx;
char.head._y = char.head._y + headvely;
char.head._rotation = char.head._rotation + headvelx;
headvely = headvely + 2;
}
if (char.arm1._y < 160) {
char.arm1._x = char.arm1._x + arm1velx;
char.arm1._y = char.arm1._y + arm1vely;
char.arm1._rotation = char.arm1._rotation + arm1velx;
arm1vely = arm1vely + 2;
}
if (char.arm2._y < 160) {
char.arm2._x = char.arm2._x + arm2velx;
char.arm2._y = char.arm2._y + arm2vely;
char.arm2._rotation = char.arm2._rotation + arm2velx;
arm2vely = arm2vely + 2;
}
if (char.torso._y < 160) {
char.torso._x = char.torso._x + torsovelx;
char.torso._y = char.torso._y + torsovely;
char.torso._rotation = char.torso._rotation + torsovelx;
torsovely = torsovely + 2;
}
if (char.leg1._y < 160) {
char.leg1._x = char.leg1._x + leg1velx;
char.leg1._y = char.leg1._y + leg1vely;
char.leg1._rotation = char.leg1._rotation + leg1velx;
leg1vely = leg1vely + 2;
}
if (char.leg2._y < 160) {
char.leg2._x = char.leg2._x + leg2velx;
char.leg2._y = char.leg2._y + leg2vely;
char.leg2._rotation = char.leg2._rotation + leg2velx;
leg2vely = leg2vely + 2;
}
if (char.upbody._y < 160) {
char.upbody._x = char.upbody._x + upvelx;
char.upbody._y = char.upbody._y + upvely;
char.upbody._rotation = char.upbody._rotation + upvelx;
upvely = upvely + 2;
}
}
function UnsetMouse() {
limb = 0;
_root.rightshow.gotoAndStop(1);
_root.leftshow.gotoAndStop(1);
char.leg1.gotoAndStop(1);
char.leg2.gotoAndStop(1);
char.head.gotoAndStop(1);
char.upbody.gotoAndStop(1);
char.torso.gotoAndStop(1);
char.arm1.gotoAndStop(1);
char.arm2.gotoAndStop(1);
mxstart = 0;
mystart = 0;
mxend = 0;
myend = 0;
movego = 0;
if (reverse == 2) {
MoveTargs2();
} else {
MoveTargs();
}
}
function SetMouse() {
mystart = 260;
limb = 0;
if (char._xmouse < 0) {
mxstart = _root._xmouse;
if (reverse == 2) {
limb = 2;
} else {
limb = 1;
}
} else {
mxstart = _root._xmouse;
if (reverse == 2) {
limb = 1;
} else {
limb = 2;
}
}
}
function CheckMouse() {
if (mousecontrol == 1) {
if ((char._xmouse < -150) && (limb == 2)) {
if (reverse == 0) {
mxstart = _root._xmouse - 80;
limb = 1;
}
} else if ((char._xmouse > 150) && (limb == 1)) {
if (reverse == 0) {
mxstart = _root._xmouse + 80;
limb = 2;
}
}
} else {
mystart = 280;
if (reverse == 0) {
if ((char._xmouse < -80) && (limb == 2)) {
mxstart = char._x - 140;
limb = 1;
} else if ((char._xmouse > 80) && (limb == 1)) {
mxstart = char._x + 140;
limb = 2;
}
} else if (reverse == 2) {
if ((char._xmouse < -80) && (limb == 1)) {
mxstart = char._x - 140;
limb = 2;
} else if ((char._xmouse > 80) && (limb == 2)) {
mxstart = char._x + 140;
limb = 1;
}
}
}
mxlast = mxend;
mylast = myend;
if (mousecontrol == 0) {
mxend = _xmouse;
} else {
mxend = _root._xmouse;
}
myend = _root._ymouse;
mxout = mxlast - mxend;
myout = mylast - myend;
var _local3 = mxstart - mxend;
var _local2 = mystart - myend;
var _local4 = _local3;
var _local5 = _local2;
_local3 = Math.abs(_local3);
_local2 = Math.abs(_local2);
if (_local3 > _local2) {
if (limb == 1) {
if (_local4 > 0) {
_root.rightshow.gotoAndStop(4);
} else {
_root.rightshow.gotoAndStop(3);
}
char.leg1.gotoAndStop(1);
} else if (limb == 2) {
if (_local4 > 0) {
_root.leftshow.gotoAndStop(3);
} else {
_root.leftshow.gotoAndStop(4);
}
char.leg2.gotoAndStop(1);
}
knee = 0;
} else {
if (limb == 1) {
_root.rightshow.gotoAndStop(2);
char.leg1.gotoAndStop(1);
} else if (limb == 2) {
_root.leftshow.gotoAndStop(2);
char.leg2.gotoAndStop(1);
}
knee = 1;
}
lastlimb = limb;
}
function Limb1Knee() {
var _local1 = Math.abs(xdif);
if (_local1 > 20) {
_local1 = 20;
}
if (reverse == 0) {
char.head.gotoAndStop(_local1);
char.upbody.gotoAndStop(_local1);
char.torso.gotoAndStop(_local1);
char.arm1.gotoAndStop(_local1);
char.arm2.gotoAndStop(21 + _local1);
}
if (xdif > 0) {
xdif = 33 + xdif;
if (xdif > 57) {
xdif = 57;
}
legpos = 1;
char.leg1.gotoAndStop(xdif);
if (reverse == 2) {
MoveTargs2();
} else {
MoveTargs();
}
} else {
xdif = Math.abs(xdif);
if (xdif > 32) {
xdif = 32;
}
legpos = 2;
char.leg1.gotoAndStop(xdif);
if (reverse == 2) {
MoveTargs2();
} else {
MoveTargs();
}
}
}
function Limb1Leg() {
var _local1 = Math.abs(ydif);
if (_local1 > 20) {
_local1 = 20;
}
if (reverse == 0) {
char.head.gotoAndStop(_local1);
char.upbody.gotoAndStop(_local1);
char.torso.gotoAndStop(_local1);
char.arm1.gotoAndStop(_local1);
char.arm2.gotoAndStop(21 + _local1);
}
legpos = 3;
if ((xdif > 6) && (ydif < -10)) {
ydif = 98 + Math.abs(xdif);
if (ydif > 125) {
ydif = 125;
}
char.leg1.gotoAndStop(ydif);
if (reverse == 2) {
MoveTargs2();
} else {
MoveTargs();
}
} else if ((xdif < -10) && (ydif < -10)) {
ydif = 74 + Math.abs(xdif);
if (ydif > 104) {
ydif = 104;
}
char.leg1.gotoAndStop(ydif);
if (reverse == 2) {
MoveTargs2();
} else {
MoveTargs();
}
} else if (ydif > 0) {
ydif = 58;
char.leg1.gotoAndStop(ydif);
if (reverse == 2) {
MoveTargs2();
} else {
MoveTargs();
}
} else {
ydif = 58 + Math.abs(ydif);
if (ydif > 84) {
ydif = 84;
}
char.leg1.gotoAndStop(ydif);
if (reverse == 2) {
MoveTargs2();
} else {
MoveTargs();
}
}
}
function SubLimb1() {
if (mousecontrol == 0) {
xdif = (_xmouse - mxstart) + 0.1;
} else {
xdif = (_root._xmouse - mxstart) + 0.1;
}
ydif = (_root._ymouse - mystart) + 0.1;
xdif = Math.ceil(xdif / fdiv);
ydif = Math.ceil(ydif / fdiv);
if (knee == 0) {
Limb1Knee();
} else {
Limb1Leg();
}
}
function Limb2Knee() {
var _local1 = Math.abs(xdif);
if (_local1 > 20) {
_local1 = 20;
}
if (reverse == 0) {
char.head.gotoAndStop(21 + _local1);
char.upbody.gotoAndStop(21 + _local1);
char.torso.gotoAndStop(21 + _local1);
char.arm1.gotoAndStop(21 + _local1);
char.arm2.gotoAndStop(_local1);
}
if (xdif < 0) {
xdif = 33 + Math.abs(xdif);
if (xdif > 57) {
xdif = 57;
}
legpos = 1;
char.leg2.gotoAndStop(xdif);
if (reverse == 2) {
MoveTargs2();
} else {
MoveTargs();
}
} else {
if (xdif > 32) {
xdif = 32;
}
legpos = 2;
char.leg2.gotoAndStop(xdif);
if (reverse == 2) {
MoveTargs2();
} else {
MoveTargs();
}
}
}
function Limb2Leg() {
var _local1 = Math.abs(ydif);
if (_local1 > 20) {
_local1 = 20;
}
if (reverse == 0) {
char.head.gotoAndStop(21 + _local1);
char.upbody.gotoAndStop(21 + _local1);
char.torso.gotoAndStop(21 + _local1);
char.arm1.gotoAndStop(21 + _local1);
char.arm2.gotoAndStop(_local1);
}
legpos = 3;
if ((xdif < -6) && (ydif < -10)) {
ydif = 98 + Math.abs(xdif);
if (ydif > 125) {
ydif = 125;
}
char.leg2.gotoAndStop(ydif);
if (reverse == 2) {
MoveTargs2();
} else {
MoveTargs();
}
} else if ((xdif > 10) && (ydif < -10)) {
ydif = 74 + Math.abs(xdif);
if (ydif > 104) {
ydif = 104;
}
char.leg2.gotoAndStop(ydif);
if (reverse == 2) {
MoveTargs2();
} else {
MoveTargs();
}
} else if (ydif > 0) {
ydif = 58;
char.leg2.gotoAndStop(ydif);
if (reverse == 2) {
MoveTargs2();
} else {
MoveTargs();
}
} else {
ydif = 58 + Math.abs(ydif);
if (ydif > 84) {
ydif = 84;
}
char.leg2.gotoAndStop(ydif);
if (reverse == 2) {
MoveTargs2();
} else {
MoveTargs();
}
}
}
function SubLimb2() {
if (mousecontrol == 0) {
xdif = (_xmouse - mxstart) + 0.1;
} else {
xdif = (_root._xmouse - mxstart) + 0.1;
}
ydif = (_root._ymouse - mystart) + 0.1;
xdif = Math.ceil(xdif / fdiv);
ydif = Math.ceil(ydif / fdiv);
if (knee == 0) {
Limb2Knee();
} else {
Limb2Leg();
}
}
function GameOver() {
if (!_root.gameoverclip._visible) {
_root.allsounds[0].stop();
_root.allsounds[1].stop();
_root.allsounds[2].stop();
_root.attachMovie("gameoverclip", "gameoverclip", 13593);
_root.gameoverclip._x = _root.gameoverclip._x + 360;
_root.pickupbut._visible = 0;
if (_root.gamemode == 2) {
_root.gameoverclip.gotoAndStop(2);
if (score >= 2000) {
checkallow = SharedObject.getLocal("hackysack");
if ((!checkallow.data.levcomplete) && (_root.unlock == 0)) {
_root.lockclip._visible = 1;
_root.lockclip.gotoAndStop(2);
}
checkallow.data.levcomplete = 1;
_root.unlock = 1;
}
}
}
_root.timeo._visible = 0;
gameon = 0;
}
function Bleed() {
btotal = 100 + random(100);
bcount = 0;
b = 0;
while (b < btotal) {
attachMovie("blood", "blood" + bcount, 8600 + bcount);
blood = eval ("blood" + bcount);
blood._x = ball._x;
blood._y = -40;
bscale = 30 + random(60);
blood._xscale = bscale;
blood._yscale = bscale;
blood.tx = -20 + random(41);
blood.ty = -10 - random(40);
bcount = bcount + 1;
b++;
}
}
function GBlood(gbx, gby, gbs) {
attachMovie("groundblood", "groundblood" + gbcount, 8800 + gbcount);
groundblood = eval ("groundblood" + gbcount);
groundblood._x = gbx;
groundblood._y = gby;
groundblood._xscale = gbs;
groundblood._yscale = gbs;
gbcount = gbcount + 1;
}
function StartReverse() {
_root.allsounds[14].start(0, 0);
char.leg1.gotoAndStop(1);
char.leg2.gotoAndStop(1);
if (reverse == 2) {
MoveTargs2();
} else {
MoveTargs();
}
reverse = 1;
}
function LeftReverse() {
reverse = 2;
char._x = char._x - 195.2;
targ1._x = targ1._x - 95.2;
targ2._x = targ2._x - 95.2;
targ3._x = targ3._x - 95.2;
targ4._x = targ4._x - 95.2;
targ5._x = targ5._x - 95.2;
char.gotoAndStop(95);
targ1._x = targ1._x - (tx1[2] - tx1[3]);
targ1._y = targ1._y - (ty1[2] - ty1[3]);
targ2._x = targ2._x - (tx2[2] - tx2[3]);
targ2._y = targ2._y - (ty2[2] - ty2[3]);
targ3._x = targ3._x - (tx3[2] - tx3[3]);
targ3._y = targ3._y - (ty3[2] - ty3[3]);
targ4._x = targ4._x - (tx4[2] - tx4[3]);
targ4._y = targ4._y - (ty4[2] - ty4[3]);
targ5._x = targ5._x - (tx5[2] - tx5[3]);
targ5._y = targ5._y - (ty5[2] - ty5[3]);
}
function LeftDown() {
char._x = char._x + 195.2;
}
function RightReverse() {
reverse = 2;
char._x = char._x + 245.1;
targ1._x = targ1._x + 100;
targ2._x = targ2._x + 100;
targ3._x = targ3._x + 100;
targ4._x = targ4._x + 100;
targ5._x = targ5._x + 100;
char.gotoAndStop(95);
targ1._x = targ1._x - (tx1[4] - tx1[3]);
targ1._y = targ1._y - (ty1[4] - ty1[3]);
targ2._x = targ2._x - (tx2[4] - tx2[3]);
targ2._y = targ2._y - (ty2[4] - ty2[3]);
targ3._x = targ3._x - (tx3[4] - tx3[3]);
targ3._y = targ3._y - (ty3[4] - ty3[3]);
targ4._x = targ4._x - (tx4[4] - tx4[3]);
targ4._y = targ4._y - (ty4[4] - ty4[3]);
targ5._x = targ5._x - (tx5[4] - tx5[3]);
targ5._y = targ5._y - (ty5[4] - ty5[3]);
}
function EndReverse() {
reverse = 0;
targ1._x = targ1._x + 95.2;
targ2._x = targ2._x + 95.2;
targ3._x = targ3._x + 95.2;
targ4._x = targ4._x + 95.2;
targ5._x = targ5._x + 95.2;
char.gotoAndStop(1);
targ1._x = targ1._x + (tx1[1] - tx1[2]);
targ1._y = targ1._y + (ty1[1] - ty1[2]);
targ2._x = targ2._x + (tx2[1] - tx2[2]);
targ2._y = targ2._y + (ty2[1] - ty2[2]);
targ3._x = targ3._x + (tx3[1] - tx3[2]);
targ3._y = targ3._y + (ty3[1] - ty3[2]);
targ4._x = targ4._x + (tx4[1] - tx4[2]);
targ4._y = targ4._y + (ty4[1] - ty4[2]);
targ5._x = targ5._x + (tx5[1] - tx5[2]);
targ5._y = targ5._y + (ty5[1] - ty5[2]);
}
function EndReverse2() {
reverse = 0;
char._x = char._x - 245.1;
targ1._x = targ1._x - 100;
targ2._x = targ2._x - 100;
targ3._x = targ3._x - 100;
targ4._x = targ4._x - 100;
targ5._x = targ5._x - 100;
char.gotoAndStop(1);
targ1._x = targ1._x + (tx1[1] - tx1[4]);
targ1._y = targ1._y + (ty1[1] - ty1[4]);
targ2._x = targ2._x + (tx2[1] - tx2[4]);
targ2._y = targ2._y + (ty2[1] - ty2[4]);
targ3._x = targ3._x + (tx3[1] - tx3[4]);
targ3._y = targ3._y + (ty3[1] - ty3[4]);
targ4._x = targ4._x + (tx4[1] - tx4[4]);
targ4._y = targ4._y + (ty4[1] - ty4[4]);
targ5._x = targ5._x + (tx5[1] - tx5[4]);
targ5._y = targ5._y + (ty5[1] - ty5[4]);
}
function RightSide() {
targ1._x = targ1._x - ((tx1[1] - tx1[2]) + 100);
targ1._y = targ1._y - (ty1[1] - ty1[2]);
targ2._x = targ2._x - ((tx2[1] - tx2[2]) + 100);
targ2._y = targ2._y - (ty2[1] - ty2[2]);
targ3._x = targ3._x - ((tx3[1] - tx3[2]) + 100);
targ3._y = targ3._y - (ty3[1] - ty3[2]);
targ4._x = targ4._x - ((tx4[1] - tx4[2]) + 100);
targ4._y = targ4._y - (ty4[1] - ty4[2]);
targ5._x = targ5._x - ((tx5[1] - tx5[2]) + 100);
targ5._y = targ5._y - (ty5[1] - ty5[2]);
}
function LeftSide() {
targ1._x = targ1._x - ((tx1[1] - tx1[4]) - 145.1);
targ1._y = targ1._y - (ty1[1] - ty1[4]);
targ2._x = targ2._x - ((tx2[1] - tx2[4]) - 145.1);
targ2._y = targ2._y - (ty2[1] - ty2[4]);
targ3._x = targ3._x - ((tx3[1] - tx3[4]) - 145.1);
targ3._y = targ3._y - (ty3[1] - ty3[4]);
targ4._x = targ4._x - ((tx4[1] - tx4[4]) - 145.1);
targ4._y = targ4._y - (ty4[1] - ty4[4]);
targ5._x = targ5._x - ((tx5[1] - tx5[4]) - 145.1);
targ5._y = targ5._y - (ty5[1] - ty5[4]);
}
function RightSide2() {
targ1._x = targ1._x - ((tx1[3] - tx1[2]) - 100);
targ1._y = targ1._y - (ty1[3] - ty1[2]);
targ2._x = targ2._x - ((tx2[3] - tx2[2]) - 100);
targ2._y = targ2._y - (ty2[3] - ty2[2]);
targ3._x = targ3._x - ((tx3[3] - tx3[2]) - 100);
targ3._y = targ3._y - (ty3[3] - ty3[2]);
targ4._x = targ4._x - ((tx4[3] - tx4[2]) - 100);
targ4._y = targ4._y - (ty4[3] - ty4[2]);
targ5._x = targ5._x - ((tx5[3] - tx5[2]) - 100);
targ5._y = targ5._y - (ty5[3] - ty5[2]);
}
function LeftSide2() {
targ1._x = targ1._x - ((tx1[3] - tx1[4]) + 145.1);
targ1._y = targ1._y - (ty1[3] - ty1[4]);
targ2._x = targ2._x - ((tx2[3] - tx2[4]) + 145.1);
targ2._y = targ2._y - (ty2[3] - ty2[4]);
targ3._x = targ3._x - ((tx3[3] - tx3[4]) + 145.1);
targ3._y = targ3._y - (ty3[3] - ty3[4]);
targ4._x = targ4._x - ((tx4[3] - tx4[4]) + 145.1);
targ4._y = targ4._y - (ty4[3] - ty4[4]);
targ5._x = targ5._x - ((tx5[3] - tx5[4]) + 145.1);
targ5._y = targ5._y - (ty5[3] - ty5[4]);
}
function TimerGo() {
timenow = getTimer();
timedif = timenow - timestart;
if (timedif > 1000) {
timedif = timedif - 1000;
timestart = timenow + timedif;
_root.timeout = _root.timeout - 1;
if (_root.timeout == 0) {
GameOver();
} else if (_root.timeout < 10) {
_root.allsounds[13].start(0, 0);
}
}
}
function GameEvent() {
if (gameon == 1) {
if (birdcount == 0) {
if (random(1000) == 1) {
AttachBird();
}
}
BallEvent();
if (timeon) {
TimerGo();
}
_root.hitsout = hits;
_root.streakout = streak;
if ((mdown == 1) || (mousecontrol == 0)) {
CheckMouse();
}
char._x = char._x + xvel;
targ1._x = targ1._x + xvel;
targ2._x = targ2._x + xvel;
targ3._x = targ3._x + xvel;
targ4._x = targ4._x + xvel;
targ5._x = targ5._x + xvel;
if (jump > 0) {
GoJump();
} else if (stall == 0) {
char.swapDepths(350);
ball.swapDepths(351);
}
KeyListen();
if (walk == 0) {
if (reverse == 2) {
char.gotoAndStop(95);
} else if (reverse == 0) {
char.gotoAndStop(1);
}
}
if (limb == 1) {
if ((walk == 0) && (reverse == 0)) {
if (jump > 0) {
char.gotoAndStop(11);
} else {
char.gotoAndStop(1);
}
}
SubLimb1();
char.leg2.gotoAndStop(1);
} else if (limb == 2) {
if ((walk == 0) && (reverse == 0)) {
if (jump > 0) {
char.gotoAndStop(1);
} else {
char.gotoAndStop(11);
}
}
SubLimb2();
char.leg1.gotoAndStop(1);
} else {
char.leg1.gotoAndStop(1);
char.leg2.gotoAndStop(1);
}
}
}
fscommand ("showmenu", "false");
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
_root.menu = newMenu;
newMenu.onSelect = function () {
PauseGame();
};
tx1 = new Array(0, 3.8, -146.4, -5.4, 144.8);
tx2 = new Array(0, -14.7, 61.8, 13.1, -63.4);
tx3 = new Array(0, 20.9, 61.7, -22.5, -63.3);
tx4 = new Array(0, -24.4, 144.8, 22.8, -146.3);
tx5 = new Array(0, 31.7, 144.7, -33.3, -146.3);
ty1 = new Array(0, -321.2, -180.2, -29.9, -171);
ty2 = new Array(0, -113.1, -161.7, -238.2, -189.5);
ty3 = new Array(0, -113.1, -197.3, -238.1, -153.9);
ty4 = new Array(0, -30.1, -152, -321.1, -199.2);
ty5 = new Array(0, -30.1, -208.1, -321.1, -143.1);
_parent._xscale = 90;
_parent._yscale = 90;
limb = 1;
movego = 0;
mxstart = 0;
mystart = 0;
mxlast = _root._xmouse;
mylast = _root._ymouse;
knee = 0;
hits = 0;
lastlimb = 0;
double1 = 0;
double2 = 0;
doubletime = getTimer();
lastkick = 0;
combo = 0;
combotime = getTimer();
birdcount = 0;
reverse = 0;
lastkey = 0;
score = 0;
streak = 0;
jump = 0;
gameon = 0;
gbcount = 0;
legpos = 0;
mousecontrol = _root.mousecontrol;
mxend = _root._xmouse;
myend = _root._ymouse;
mxout = 0;
myout = 0;
xvel = 0;
stall = 0;
if (mousecontrol == 1) {
fdiv = 5;
mdown = 0;
} else {
fdiv = 8;
mdown = 1;
}
walk = 0;
_root.timeout = 90;
_root.scoreout = 0;
timestart = getTimer();
targlastx1 = char.leg1.targ2._x;
targlasty1 = char.leg1.targ2._y;
targlastx2 = char.leg1.targ4._x;
targlasty2 = char.leg1.targ4._y;
targlastx3 = char.leg2.targ2._x;
targlasty3 = char.leg2.targ2._y;
targlastx4 = char.leg2.targ4._x;
targlasty4 = char.leg2.targ4._y;
char.swapDepths(350);
ball.swapDepths(351);
ball.xvel = 0;
ball.yvel = 0;
if (_root.gamemode == 1) {
_root.allsounds[0].start(0, 9999);
_root.timeo._visible = 0;
timeon = 0;
ball.gotoAndStop(3);
gameon = 1;
} else if (_root.gamemode == 2) {
_root.allsounds[1].start(0, 9999);
timeon = 1;
_root.rightshow._visible = 0;
_root.leftshow._visible = 0;
_root.keyshow._visible = 0;
_root.keyshow2._visible = 0;
gameon = 1;
} else if (_root.gamemode == 3) {
_root.allsounds[2].start(0, 9999);
_root.rightshow._visible = 0;
_root.leftshow._visible = 0;
_root.keyshow._visible = 0;
_root.keyshow2._visible = 0;
_root.timeo._visible = 0;
timeon = 0;
ball.gotoAndStop(2);
}
Instance of Symbol 211 MovieClip "char" in Symbol 216 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.GameEvent();
}
onClipEvent (mouseDown) {
if (_root.mousecontrol == 1) {
_parent.SetMouse();
_parent.mdown = 1;
}
}
onClipEvent (mouseUp) {
if (_root.mousecontrol == 1) {
_parent.UnsetMouse();
_parent.mdown = 0;
}
}
Symbol 222 MovieClip Frame 30
stop();
Symbol 222 MovieClip Frame 60
stop();
Symbol 222 MovieClip Frame 90
stop();
Symbol 229 Button
on (release) {
bsound1.start();
_root.allsounds[0].stop();
_root.allsounds[1].stop();
_root.allsounds[2].stop();
gameoverclip.removeMovieClip();
zoomin.removeMovieClip();
nextlevel.removeMovieClip();
_root.gotoAndStop(2);
}
Symbol 237 MovieClip Frame 1
stop();
Symbol 241 Button
on (press) {
allsounds[3].stop();
bsound1.start();
_root.gotoAndStop(2);
}
Symbol 249 MovieClip Frame 1
stop();
Symbol 256 Button
on (press) {
allsounds[3].stop();
getURL ("http://www.officegamespot.com/hiscores_hackysack.php?rannum=" + random(999999), "_self");
}
Symbol 262 Button
on (release) {
getURL ("http://www.wolfcom.ca/", "_self");
}
Symbol 266 Button
on (release) {
getURL ("http://www.n8-music.com/", "_self");
}
Symbol 267 Button
on (press) {
bsound1.start();
_root.gotoAndStop(2);
}
Symbol 283 Button
on (press) {
getURL ("http://www.officegamespot.com/", "_blank");
}
on (rollOver) {
officegamebut._xscale = 108;
officegamebut._yscale = 108;
}
on (rollOut) {
officegamebut._xscale = 100;
officegamebut._yscale = 100;
}
Symbol 290 Button
on (release) {
allsounds[2].stop();
gamemode = 1;
gotoAndStop (12);
}
Symbol 293 Button
on (release) {
allsounds[2].stop();
gamemode = 2;
gotoAndStop (12);
}
Symbol 296 Button
on (release) {
allsounds[2].stop();
checkallow = SharedObject.getLocal("hackysack");
if (checkallow.data.levcomplete || (unlock == 1)) {
gamemode = 3;
gotoAndStop (12);
} else {
gotoAndStop (10);
}
}
Symbol 300 Button
on (press) {
_parent.tg1.gotoAndStop(1);
_parent.tg2.gotoAndStop(1);
_parent.mousecontrol = mousecontrol;
gotoAndStop (2);
}
Symbol 302 MovieClip Frame 1
stop();
Instance of Symbol 211 MovieClip "char" in Symbol 317 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.GameEvent();
}
onClipEvent (mouseDown) {
_parent.SetMouse();
_parent.mdown = 1;
}
onClipEvent (mouseUp) {
_parent.UnsetMouse();
_parent.mdown = 0;
}
Symbol 318 Button
on (press) {
bsound1.start();
_root.gotoAndStop(3);
}
Symbol 320 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 70
stop();
Symbol 336 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 80
stop();
Symbol 341 MovieClip Frame 90
stop();
Symbol 343 MovieClip Frame 87
stop();
Symbol 345 MovieClip Frame 85
stop();
Symbol 347 MovieClip Frame 78
stop();
Symbol 349 MovieClip Frame 82
stop();
Symbol 353 MovieClip Frame 121
stop();
Symbol 356 MovieClip Frame 121
stop();
Symbol 357 MovieClip Frame 145
_parent.gotoAndStop(2);
Symbol 386 MovieClip Frame 215
_parent.gotoAndStop(3);
Instance of Symbol 75 MovieClip [blades2] in Symbol 425 MovieClip Frame 1
onClipEvent (enterFrame) {
bladesout.bladesin._rotation = bladesout.bladesin._rotation + 30;
}
Instance of Symbol 75 MovieClip [blades2] in Symbol 425 MovieClip Frame 1
onClipEvent (enterFrame) {
bladesout.bladesin._rotation = bladesout.bladesin._rotation + 30;
}
Symbol 426 MovieClip Frame 50
stop();
Symbol 455 MovieClip Frame 88
n8intro.heli._visible = 0;
Symbol 455 MovieClip Frame 125
_root.gotoAndStop(2);
stop();
Symbol 456 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 2
_root.allsounds[2].start();
stop();
Symbol 456 MovieClip Frame 3
stop();
Symbol 460 Button
on (press) {
_root.gotoAndStop(2);
}