Frame 1
stop();
this.onEnterFrame = function () {
var _local1 = _root;
trace(_local1.getBytesLoaded());
trace(_local1.getBytesTotal());
if (_local1.getBytesLoaded() >= _local1.getBytesTotal()) {
delete this.onEnterFrame;
_local1.gotoAndStop(3);
} else {
delete this.onEnterFrame;
play();
}
};
_global.ipb_get_gname = function () {
var _local4 = _root._url;
var _local5 = "";
var _local2 = "";
var _local6 = _local4.lastIndexOf("\\") + 1;
if ((_local6 == -1) || (_local6 == 0)) {
_local6 = _local4.lastIndexOf("/") + 1;
}
var _local3 = _local6;
var _local7 = String(_local4).length;
while (_local3 < String(_local4).length) {
_local2 = _local4.charAt(_local3);
if (_local2 == ".") {
break;
}
_local5 = _local5 + _local2;
_local3++;
}
return(_local5);
};
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function (success) {
if (success) {
_global.ipb_scoreVar = this.scoreVar;
}
};
fname = ((("arcade/gamedata/" + ipb_gname) + "/") + ipb_gname) + ".txt";
xx.load(fname);
Frame 2
stop();
Instance of Symbol 15 MovieClip in Frame 2
onClipEvent (enterFrame) {
loading = _root.getBytesLoaded();
total = _root.getBytesTotal();
_root.bytemeter = (((Math.floor(loading / 1024) + "_KB") + "/") + Math.floor(total / 1024)) + "_KB";
percent = percent - ((percent - ((loading / total) * 100)) * 0.25);
per = int(percent);
percentage = per + "%";
loadBar._width = (per * 4) - 50;
if (percent > 99) {
_root.play();
}
}
Frame 3
stop();
Frame 4
stop();
var weapon = "";
Mouse.show();
var timeBetweenBushes = 1500;
var nextBush = (getTimer() + timeBetweenBush);
var score = 0;
var numBushes = 0;
var starttime = (getTimer() / 1000);
var limittime = 60;
var numShred = 0;
var numHun = 0;
var numFoot = 0;
var numSplinter = 0;
var playname = "";
var submitspit = "";
trace(_root.timeBetweenBushes);
Instance of Symbol 34 MovieClip "bo" in Frame 4
on (rollOver) {
this._alpha = 50;
}
on (rollOut) {
this._alpha = 100;
}
on (press) {
_root.weapon = "bo";
_root.play();
}
Instance of Symbol 37 MovieClip "blade" in Frame 4
on (rollOver) {
this._alpha = 50;
}
on (rollOut) {
this._alpha = 100;
}
on (press) {
_root.weapon = "blade";
_root.play();
}
Instance of Symbol 41 MovieClip "chucks" in Frame 4
on (rollOver) {
this._alpha = 50;
}
on (rollOut) {
this._alpha = 100;
}
on (press) {
_root.weapon = "chucks";
_root.play();
}
Instance of Symbol 44 MovieClip "sai" in Frame 4
on (rollOver) {
this._alpha = 50;
}
on (rollOut) {
this._alpha = 100;
}
on (press) {
_root.weapon = "sai";
_root.play();
}
Frame 5
stop();
var submitspit = "";
_root.bo._alpha = 0;
_root.blade._alpha = 0;
_root.chucks._alpha = 0;
_root.sai._alpha = 0;
if (_root.weapon == "bo") {
_root.bo._alpha = 100;
Mouse.hide();
startDrag ("bo", true);
_root.bo.onMouseDown = function () {
_root.bo.gotoAndPlay(1);
};
}
if (_root.weapon == "chucks") {
_root.chucks._alpha = 100;
Mouse.hide();
startDrag ("chucks", true);
_root.chucks.onMouseDown = function () {
_root.chucks.gotoAndPlay(1);
};
}
if (_root.weapon == "sai") {
_root.sai._alpha = 100;
Mouse.hide();
startDrag ("sai", true);
_root.sai.onMouseDown = function () {
_root.sai.gotoAndPlay(1);
};
}
if (_root.weapon == "blade") {
_root.blade._alpha = 100;
Mouse.hide();
startDrag ("blade", true);
_root.blade.onMouseDown = function () {
_root.blade.gotoAndPlay(1);
};
}
Instance of Symbol 52 MovieClip "l1actions" in Frame 5
onClipEvent (load) {
_root.showScore = _root.score;
_root.showtime = _root.limittime;
_root.timeBetweenBushes = 1500;
_root.nextBush = getTimer() + _root.timeBetweenBush;
_root.score = 0;
_root.numBushes = 0;
_root.starttime = getTimer() / 1000;
_root.limittime = 60;
_root.numShred = 0;
_root.numHun = 0;
_root.numFoot = 0;
_root.numSplinter = 0;
}
onClipEvent (enterFrame) {
_root.currtime = getTimer() / 1000;
_root.minustime = Math.floor(_root.currtime - _root.starttime);
_root.timeleft = Math.floor(_root.limittime - _root.minustime);
_root.showtime = _root.timeleft;
if (getTimer() >= _root.nextBush) {
_root.timeBetweenBushes = _root.timeBetweenBushes - 10;
if (_root.timeleft <= 0) {
if (_root.score >= 40) {
_root.gotoAndStop("l2");
trace("win works");
} else {
_root.gotoAndPlay("end");
trace("you win");
}
} else {
_root.numBushes++;
_root.showscore = _root.score;
do {
bush = int(Math.random() * 10) + 1;
} while (_root["hole" + bush]._currentFrame != 1);
randomhead = Math.floor(Math.random() * 7) + 1;
if (randomhead == 1) {
_root["hole" + bush].gotoAndPlay("start");
_root.nextBush = getTimer() + _root.timeBetweenBushes;
}
if ((randomhead == 2) || (randomhead == 3)) {
_root["hole" + bush].gotoAndPlay("footstart");
_root.nextBush = getTimer() + _root.timeBetweenBushes;
}
if ((randomhead == 4) || (randomhead == 5)) {
_root["hole" + bush].gotoAndPlay("hunstart");
_root.nextBush = getTimer() + _root.timeBetweenBushes;
}
if ((randomhead == 6) || (randomhead == 7)) {
_root["hole" + bush].gotoAndPlay("splinterstart");
_root.nextBush = getTimer() + _root.timeBetweenBushes;
}
}
}
}
onClipEvent (mouseDown) {
x = _root._xmouse;
y = _root._ymouse;
i = 0;
while (i < 11) {
if (_root["hole" + i]._currentFrame > 7) {
if (_root["hole" + i].shredhead.hitTest(x, y, false)) {
_root["hole" + i].gotoAndPlay("stars");
_root.score = _root.score + 10;
_root.numShred++;
_root.showscore = _root.score;
_root.numShred = _root.numShred;
}
}
if ((_root["hole" + i]._currentFrame > 25) || ((_root["hole" + i]._currentFrame >= 20) && (_root["hole" + i]._currentFrame <= 21))) {
if (_root["hole" + i].foothead.hitTest(x, y, false)) {
_root["hole" + i].gotoAndPlay("footstars");
_root.score++;
_root.numFoot++;
_root.showscore = _root.score;
_root.numFoot = _root.numFoot;
}
}
if (_root["hole" + i]._currentFrame > 43) {
if (_root["hole" + i].hunhead.hitTest(x, y, false)) {
_root["hole" + i].gotoAndPlay("hunstars");
_root.score = _root.score + 3;
_root.numHun++;
_root.showscore = _root.score;
_root.numHun = _root.numHun;
}
}
if (_root["hole" + i]._currentFrame > 60) {
if (_root["hole" + i].splinterhead.hitTest(x, y, false)) {
_root["hole" + i].gotoAndPlay("splinterstars");
_root.score = _root.score - 10;
_root.numSplinter++;
_root.showscore = _root.score;
_root.numSplinter = _root.numSplinter;
}
}
i++;
}
}
Frame 6
stop();
Mouse.show();
stopDrag();
_root.bo._alpha = 0;
_root.blade._alpha = 0;
_root.chucks._alpha = 0;
_root.sai._alpha = 0;
Frame 7
stop();
Mouse.show();
stopDrag();
_root.bo._alpha = 0;
_root.blade._alpha = 0;
_root.chucks._alpha = 0;
_root.sai._alpha = 0;
Frame 8
stop();
Frame 9
stop();
Mouse.show();
_root.bo._alpha = 0;
_root.blade._alpha = 0;
_root.chucks._alpha = 0;
_root.sai._alpha = 0;
Frame 10
stop();
_root.bo._alpha = 0;
_root.blade._alpha = 0;
_root.chucks._alpha = 0;
_root.sai._alpha = 0;
if (_root.weapon == "bo") {
_root.bo._alpha = 100;
Mouse.hide();
startDrag ("bo", true);
_root.bo.onMouseDown = function () {
_root.bo.gotoAndPlay(1);
};
}
if (_root.weapon == "chucks") {
_root.chucks._alpha = 100;
Mouse.hide();
startDrag ("chucks", true);
_root.chucks.onMouseDown = function () {
_root.chucks.gotoAndPlay(1);
};
}
if (_root.weapon == "sai") {
_root.sai._alpha = 100;
Mouse.hide();
startDrag ("sai", true);
_root.sai.onMouseDown = function () {
_root.sai.gotoAndPlay(1);
};
}
if (_root.weapon == "blade") {
_root.blade._alpha = 100;
Mouse.hide();
startDrag ("blade", true);
_root.blade.onMouseDown = function () {
_root.blade.gotoAndPlay(1);
};
}
Instance of Symbol 52 MovieClip in Frame 10
onClipEvent (load) {
_root.limittime = 30;
trace(_root.limittime);
_root.nextBush = getTimer() + _root.timeBetweenBush;
_root.starttime = getTimer() / 1000;
}
onClipEvent (enterFrame) {
_root.currtime = getTimer() / 1000;
_root.minustime = Math.floor(_root.currtime - _root.starttime);
_root.timeleft = Math.floor(_root.limittime - _root.minustime);
_root.showtime = _root.timeleft;
if (getTimer() >= _root.nextBush) {
_root.timeBetweenBushes = _root.timeBetweenBushes - 10;
if (_root.timeleft <= 0) {
if (_root.score >= 100) {
_root.gotoAndStop("l3");
trace("win works");
} else {
_root.gotoAndPlay("end");
trace("you win");
}
} else {
_root.numBushes++;
_root.showscore = _root.score;
do {
bush = int(Math.random() * 10) + 1;
} while (_root["hole" + bush]._currentFrame != 1);
randomhead = Math.floor(Math.random() * 7) + 1;
if (randomhead == 1) {
_root["hole" + bush].gotoAndPlay("start");
_root.nextBush = getTimer() + _root.timeBetweenBushes;
}
if ((randomhead == 2) || (randomhead == 3)) {
_root["hole" + bush].gotoAndPlay("footstart");
_root.nextBush = getTimer() + _root.timeBetweenBushes;
}
if ((randomhead == 4) || (randomhead == 5)) {
_root["hole" + bush].gotoAndPlay("hunstart");
_root.nextBush = getTimer() + _root.timeBetweenBushes;
}
if ((randomhead == 6) || (randomhead == 7)) {
_root["hole" + bush].gotoAndPlay("splinterstart");
_root.nextBush = getTimer() + _root.timeBetweenBushes;
}
}
}
}
onClipEvent (mouseDown) {
x = _root._xmouse;
y = _root._ymouse;
i = 0;
while (i < 11) {
if (_root["hole" + i]._currentFrame > 7) {
if (_root["hole" + i].shredhead.hitTest(x, y, false)) {
_root["hole" + i].gotoAndPlay("stars");
_root.score = _root.score + 10;
_root.numShred++;
_root.showscore = _root.score;
_root.numShred = _root.numShred;
}
}
if ((_root["hole" + i]._currentFrame > 25) || ((_root["hole" + i]._currentFrame >= 20) && (_root["hole" + i]._currentFrame <= 21))) {
if (_root["hole" + i].foothead.hitTest(x, y, false)) {
_root["hole" + i].gotoAndPlay("footstars");
_root.score++;
_root.numFoot++;
_root.showscore = _root.score;
_root.numFoot = _root.numFoot;
}
}
if (_root["hole" + i]._currentFrame > 43) {
if (_root["hole" + i].hunhead.hitTest(x, y, false)) {
_root["hole" + i].gotoAndPlay("hunstars");
_root.score = _root.score + 3;
_root.numHun++;
_root.showscore = _root.score;
_root.numHun = _root.numHun;
}
}
if (_root["hole" + i]._currentFrame > 60) {
if (_root["hole" + i].splinterhead.hitTest(x, y, false)) {
_root["hole" + i].gotoAndPlay("splinterstars");
_root.score = _root.score - 10;
_root.numSplinter++;
_root.showscore = _root.score;
_root.numSplinter = _root.numSplinter;
}
}
i++;
}
}
Frame 11
stop();
Mouse.show();
_root.bo._alpha = 0;
_root.blade._alpha = 0;
_root.chucks._alpha = 0;
_root.sai._alpha = 0;
Frame 12
stop();
_root.bo._alpha = 0;
_root.blade._alpha = 0;
_root.chucks._alpha = 0;
_root.sai._alpha = 0;
if (_root.weapon == "bo") {
_root.bo._alpha = 100;
Mouse.hide();
startDrag ("bo", true);
_root.bo.onMouseDown = function () {
_root.bo.gotoAndPlay(1);
};
}
if (_root.weapon == "chucks") {
_root.chucks._alpha = 100;
Mouse.hide();
startDrag ("chucks", true);
_root.chucks.onMouseDown = function () {
_root.chucks.gotoAndPlay(1);
};
}
if (_root.weapon == "sai") {
_root.sai._alpha = 100;
Mouse.hide();
startDrag ("sai", true);
_root.sai.onMouseDown = function () {
_root.sai.gotoAndPlay(1);
};
}
if (_root.weapon == "blade") {
_root.blade._alpha = 100;
Mouse.hide();
startDrag ("blade", true);
_root.blade.onMouseDown = function () {
_root.blade.gotoAndPlay(1);
};
}
Instance of Symbol 52 MovieClip in Frame 12
onClipEvent (load) {
_root.limittime = 15;
trace(_root.limittime);
_root.nextBush = getTimer() + _root.timeBetweenBush;
_root.starttime = getTimer() / 1000;
}
onClipEvent (enterFrame) {
_root.currtime = getTimer() / 1000;
_root.minustime = Math.floor(_root.currtime - _root.starttime);
_root.timeleft = Math.floor(_root.limittime - _root.minustime);
_root.showtime = _root.timeleft;
if (getTimer() >= _root.nextBush) {
_root.timeBetweenBushes = _root.timeBetweenBushes - 10;
if (_root.timeleft <= 0) {
if (_root.score >= 150) {
_root.gotoAndStop("end_win");
trace("win works");
} else {
_root.gotoAndPlay("end");
trace("you win");
}
} else {
_root.numBushes++;
_root.showscore = _root.score;
do {
bush = int(Math.random() * 10) + 1;
} while (_root["hole" + bush]._currentFrame != 1);
randomhead = Math.floor(Math.random() * 7) + 1;
if (randomhead == 1) {
_root["hole" + bush].gotoAndPlay("start");
_root.nextBush = getTimer() + _root.timeBetweenBushes;
}
if ((randomhead == 2) || (randomhead == 3)) {
_root["hole" + bush].gotoAndPlay("footstart");
_root.nextBush = getTimer() + _root.timeBetweenBushes;
}
if ((randomhead == 4) || (randomhead == 5)) {
_root["hole" + bush].gotoAndPlay("hunstart");
_root.nextBush = getTimer() + _root.timeBetweenBushes;
}
if ((randomhead == 6) || (randomhead == 7)) {
_root["hole" + bush].gotoAndPlay("splinterstart");
_root.nextBush = getTimer() + _root.timeBetweenBushes;
}
}
}
}
onClipEvent (mouseDown) {
x = _root._xmouse;
y = _root._ymouse;
i = 0;
while (i < 11) {
if (_root["hole" + i]._currentFrame > 7) {
if (_root["hole" + i].shredhead.hitTest(x, y, false)) {
_root["hole" + i].gotoAndPlay("stars");
_root.score = _root.score + 10;
_root.numShred++;
_root.showscore = _root.score;
_root.numShred = _root.numShred;
}
}
if ((_root["hole" + i]._currentFrame > 25) || ((_root["hole" + i]._currentFrame >= 20) && (_root["hole" + i]._currentFrame <= 21))) {
if (_root["hole" + i].foothead.hitTest(x, y, false)) {
_root["hole" + i].gotoAndPlay("footstars");
_root.score++;
_root.numFoot++;
_root.showscore = _root.score;
_root.numFoot = _root.numFoot;
}
}
if (_root["hole" + i]._currentFrame > 43) {
if (_root["hole" + i].hunhead.hitTest(x, y, false)) {
_root["hole" + i].gotoAndPlay("hunstars");
_root.score = _root.score + 3;
_root.numHun++;
_root.showscore = _root.score;
_root.numHun = _root.numHun;
}
}
if (_root["hole" + i]._currentFrame > 60) {
if (_root["hole" + i].splinterhead.hitTest(x, y, false)) {
_root["hole" + i].gotoAndPlay("splinterstars");
_root.score = _root.score - 10;
_root.numSplinter++;
_root.showscore = _root.score;
_root.numSplinter = _root.numSplinter;
}
}
i++;
}
}
Symbol 111 MovieClip Frame 1
if (yy.savescore == 1) {
if (ipb_score == undefined) {
ipb_score = eval (_global.ipb_scoreVar);
}
xx = new LoadVars();
xx.arcadegid = _root.ibpro_gameid;
xx.gscore = ipb_score;
xx.gname = _global.ipb_get_gname();
xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2;
xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST");
stop();
}
_global.ipbSend = function (ipb_score) {
_root._visible = false;
_root.enabled = false;
xx = new LoadVars();
yy = new LoadVars();
xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST");
};
Symbol 15 MovieClip Frame 1
stop();
Symbol 22 Button
on (press) {
play();
}
Symbol 25 Button
on (press) {
_root.gotoAndStop("instructions");
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 1
stop();
Symbol 49 Button
on (release) {
gotoAndStop ("l1");
}
Symbol 59 Button
on (press) {
gotoAndPlay ("choose");
}
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 7
gotoAndStop (1);
Symbol 66 MovieClip Frame 18
gotoAndStop (1);
Symbol 66 MovieClip Frame 19
stop();
Symbol 66 MovieClip Frame 25
gotoAndStop (1);
Symbol 66 MovieClip Frame 36
gotoAndStop (1);
Symbol 66 MovieClip Frame 37
stop();
Symbol 66 MovieClip Frame 43
gotoAndStop (1);
Symbol 66 MovieClip Frame 54
gotoAndStop (1);
stop();
Symbol 66 MovieClip Frame 60
gotoAndStop (1);
Symbol 66 MovieClip Frame 71
gotoAndStop (1);
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 7
gotoAndStop (1);
Symbol 69 MovieClip Frame 18
gotoAndStop (1);
Symbol 69 MovieClip Frame 19
stop();
Symbol 69 MovieClip Frame 25
gotoAndStop (1);
Symbol 69 MovieClip Frame 36
gotoAndStop (1);
Symbol 69 MovieClip Frame 37
stop();
Symbol 69 MovieClip Frame 43
gotoAndStop (1);
Symbol 69 MovieClip Frame 54
gotoAndStop (1);
stop();
Symbol 69 MovieClip Frame 60
gotoAndStop (1);
Symbol 69 MovieClip Frame 71
gotoAndStop (1);
Symbol 110 Button
on (release) {
_global.ipbSend();
stop();
}
Symbol 83 Button
on (press) {
_root.gotoAndPlay("choose");
}
Symbol 87 Button
on (release) {
nextFrame();
}