Frame 1
function MENUbutton1() {
getURL ("http://www.mpgh.net", _blank);
}
function MENUbutton2() {
getURL ("http://www.mpgh.net/media/bug/highscore.php", "_blank", "POST");
}
function MENUbutton3() {
toggleHighQuality();
}
fscommand ("allowscale", false);
fscommand ("showmenu", false);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
MENU.customItems.push(new ContextMenuItem("MPGH", MENUbutton1));
MENU.customItems.push(new ContextMenuItem("High Scores", MENUbutton2));
MENU.customItems.push(new ContextMenuItem("Change Quality", MENUbutton3, true));
_root.menu = MENU;
stop();
Instance of Symbol 6 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndStop (2);
}
}
on (release) {
if (this._currentframe == 2) {
_root.gotoAndStop(2);
}
}
Frame 2
stop();
_global.gamesession = 0;
_global.weapon = 1;
Frame 3
gotoAndStop (2);
Symbol 6 MovieClip Frame 1
stop();
Symbol 6 MovieClip Frame 2
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 2
stop();
Symbol 25 MovieClip Frame 3
stop();
Symbol 26 MovieClip Frame 11
gotoAndPlay (1);
Symbol 26 MovieClip Frame 51
this._parent._x = 316;
this._parent.movespeed = -10;
this._parent.bugrandomvt();
Symbol 30 MovieClip Frame 1
framed = 1;
Symbol 30 MovieClip Frame 11
gotoAndPlay (1);
Instance of Symbol 25 MovieClip in Symbol 30 MovieClip Frame 12
onClipEvent (load) {
_parent.framed = Math.ceil(Math.random() * 3);
gotoAndStop(_parent.framed);
}
Instance of Symbol 25 MovieClip in Symbol 30 MovieClip Frame 31
onClipEvent (load) {
gotoAndStop(_parent.framed);
}
Symbol 30 MovieClip Frame 51
this._parent._x = -363;
this._parent.movespeed = 10;
this._parent.bugrandomvt();
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 2
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
stop();
Symbol 38 MovieClip Frame 3
stop();
Symbol 38 MovieClip Frame 4
stop();
Symbol 38 MovieClip Frame 5
stop();
Symbol 41 MovieClip Frame 1
stop();
Instance of Symbol 38 MovieClip in Symbol 41 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_global.skinColor);
}
Symbol 41 MovieClip Frame 2
stop();
Symbol 47 MovieClip Frame 1
stop();
Instance of Symbol 38 MovieClip in Symbol 47 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_global.skinColor);
}
Symbol 47 MovieClip Frame 2
stop();
Symbol 50 MovieClip Frame 1
stop();
Instance of Symbol 38 MovieClip in Symbol 50 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_global.skinColor);
}
Symbol 50 MovieClip Frame 2
stop();
Instance of Symbol 41 MovieClip in Symbol 57 MovieClip Frame 1
onClipEvent (load) {
function __f_mouseOver(eventObj) {
gotoAndStop (2);
}
this.addEventListener("mouseOver", __f_mouseOver);
}
onClipEvent (load) {
function __f_mouseOut(eventObj) {
gotoAndStop (1);
}
this.addEventListener("mouseOut", __f_mouseOut);
}
on (release) {
getURL ("http://www.mpgh.net/media/bug/highscore.php", "_blank", "POST");
}
Instance of Symbol 47 MovieClip in Symbol 57 MovieClip Frame 1
on (release) {
if (_parent.score.text > 0) {
if (_global.gamesession != 1) {
if (_parent.name.text == "") {
nm = "Anonymous";
} else {
nm = _parent.name.text;
}
scr = _parent.score.text;
loadVariables ("http://www.mpgh.net/media/bug/sh.php", "", "POST");
getURL ("http://www.mpgh.net/media/bug/highscore.php", "_blank", "POST");
}
}
}
on (release) {
if (_parent.score.text > 0) {
if (_global.gamesession != 1) {
getURL ("http://www.mpgh.net/media/bug/highscore.php", "_blank", "POST");
}
}
_global.gamesession = 1;
}
Instance of Symbol 50 MovieClip in Symbol 57 MovieClip Frame 1
on (release) {
_root.gotoAndStop(3);
_global.gamesession = 0;
}
Instance of Symbol 50 MovieClip in Symbol 63 MovieClip Frame 1
onClipEvent (load) {
function __f_mouseOver(eventObj) {
gotoAndStop (2);
}
this.addEventListener("mouseOver", __f_mouseOver);
}
onClipEvent (load) {
function __f_mouseOut(eventObj) {
gotoAndStop (1);
}
this.addEventListener("mouseOut", __f_mouseOut);
}
on (release) {
_root.bg.gc_instructions._y = -700;
_global.activatebughunt = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(13)) {
if (_global.TextFocus == false) {
_root.bg.gc_instructions._y = -700;
_global.activatebughunt = 1;
}
}
}
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 3
stop();
Symbol 70 MovieClip Frame 5
stop();
Symbol 70 MovieClip Frame 7
stop();
Symbol 70 MovieClip Frame 9
stop();
Symbol 70 MovieClip Frame 11
stop();
Symbol 88 MovieClip Frame 1
stop();
Instance of Symbol 78 MovieClip "scythe_hit" in Symbol 88 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_global.weapon);
}
Symbol 88 MovieClip Frame 2
stop();
Symbol 88 MovieClip Frame 3
stop();
Instance of Symbol 78 MovieClip "scythe_hit" in Symbol 88 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_global.weapon);
}
Symbol 88 MovieClip Frame 4
stop();
Symbol 88 MovieClip Frame 5
stop();
Symbol 88 MovieClip Frame 6
stop();
Symbol 88 MovieClip Frame 7
stop();
Instance of Symbol 78 MovieClip "scythe_hit" in Symbol 88 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_global.weapon);
trace(_global.weapon);
}
Symbol 88 MovieClip Frame 8
stop();
Symbol 88 MovieClip Frame 9
stop();
Instance of Symbol 78 MovieClip "scythe_hit" in Symbol 88 MovieClip Frame 9
onClipEvent (load) {
gotoAndStop(_global.weapon);
}
Symbol 88 MovieClip Frame 10
stop();
Instance of Symbol 78 MovieClip "scythe_hit" in Symbol 88 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop(_global.weapon);
}
Symbol 88 MovieClip Frame 11
stop();
Instance of Symbol 78 MovieClip "scythe_hit" in Symbol 88 MovieClip Frame 11
onClipEvent (load) {
gotoAndStop(_global.weapon);
}
Symbol 88 MovieClip Frame 12
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 114 MovieClip Frame 3
stop();
Symbol 114 MovieClip Frame 4
stop();
Symbol 114 MovieClip Frame 5
stop();
Symbol 114 MovieClip Frame 6
stop();
Instance of Symbol 102 MovieClip in Symbol 117 MovieClip Frame 201
onClipEvent (load) {
timer = 0;
gotoAndStop(Math.ceil(Math.random() * 10));
}
onClipEvent (enterFrame) {
timer++;
if (timer == 24) {
gotoAndStop(Math.ceil(Math.random() * 10));
timer = 0;
}
}
Instance of Symbol 102 MovieClip in Symbol 117 MovieClip Frame 201
onClipEvent (load) {
timer = 0;
gotoAndStop(Math.ceil(Math.random() * 10));
}
onClipEvent (enterFrame) {
timer++;
if (timer == 24) {
gotoAndStop(Math.ceil(Math.random() * 10));
timer = 0;
}
}
Instance of Symbol 102 MovieClip in Symbol 117 MovieClip Frame 201
onClipEvent (load) {
timer = 0;
gotoAndStop(Math.ceil(Math.random() * 10));
}
onClipEvent (enterFrame) {
timer++;
if (timer == 24) {
gotoAndStop(Math.ceil(Math.random() * 10));
timer = 0;
}
}
Instance of Symbol 102 MovieClip in Symbol 117 MovieClip Frame 201
onClipEvent (load) {
timer = 0;
gotoAndStop(Math.ceil(Math.random() * 10));
}
onClipEvent (enterFrame) {
timer++;
if (timer == 24) {
gotoAndStop(Math.ceil(Math.random() * 10));
timer = 0;
}
}
Instance of Symbol 114 MovieClip "scythe" in Symbol 117 MovieClip Frame 401
onClipEvent (enterFrame) {
this._rotation = this._rotation + (Math.random() * 10);
gotoAndStop(_global.weapon);
}
Instance of Symbol 117 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_global.cd);
}
Instance of Symbol 117 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_global.cd);
}
Instance of Symbol 117 MovieClip in Symbol 118 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_global.cd);
}
Symbol 122 MovieClip Frame 1
stop();
_global.cs = 10;
_global.cr = 20;
_global.cd = 0;
Instance of Symbol 29 MovieClip "bombbug9" in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
playonce = 1;
movespeed = -10;
activeonce = 0;
preventdoublehitcounter = 0;
preventdoublehit = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.leftboundary)) {
bugrandomvt();
this._x = 316;
_global.bugmissedcount++;
}
if (_global.activatebughunt == 1) {
if (_global.bugkillcount > 74) {
bugrandomvt = function () {
this._y = -Math.round(Math.random() * 440);
};
if (activeonce == 0) {
bugrandomvt();
activeonce = 1;
}
if (_parent.scythe.scythe_hit.hitTest(this.bombbug_hit)) {
if (preventdoublehit == 0) {
this.bombbugparts.gotoAndPlay(12);
preventcounter = 1;
}
if (playonce == 1) {
heheSound = new Sound(this);
heheSound.attachSound("grasscutting_hehe");
heheSound.start(0, 0);
playoncecount = 1;
_global.bugkillcount++;
}
movespeed = 0;
}
if (_parent.scythe.stick_hitl.hitTest(this.bombbug_hit)) {
this._x = this._x - 20;
}
if (_parent.scythe.stick_hitr.hitTest(this.bombbug_hit)) {
this._x = this._x + 20;
}
if (preventcounter == 1) {
preventdoublehit++;
}
if (preventdoublehit == 40) {
preventdoublehit = 0;
preventcounter = 0;
}
if (playoncecount == 1) {
playonce++;
}
if (playonce == 40) {
playonce = 1;
playoncecount = 0;
}
this._x = this._x + movespeed;
}
}
}
Instance of Symbol 31 MovieClip "bombbug10" in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
playonce = 1;
movespeed = 10;
activeonce = 0;
preventdoublehitcounter = 0;
preventdoublehit = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.rightboundary)) {
bugrandomvt();
this._x = -363;
_global.bugmissedcount++;
}
if (_global.activatebughunt == 1) {
if (_global.bugkillcount > 94) {
bugrandomvt = function () {
this._y = -Math.round(Math.random() * 440);
};
if (activeonce == 0) {
bugrandomvt();
activeonce = 1;
}
if (_parent.scythe.scythe_hit.hitTest(this.bombbug_hit)) {
if (preventdoublehit == 0) {
this.bombbugparts.gotoAndPlay(12);
preventcounter = 1;
}
if (playonce == 1) {
heheSound = new Sound(this);
heheSound.attachSound("grasscutting_hehe");
heheSound.start(0, 0);
playoncecount = 1;
_global.bugkillcount++;
}
movespeed = 0;
}
if (_parent.scythe.stick_hitl.hitTest(this.bombbug_hit)) {
this._x = this._x - 20;
}
if (_parent.scythe.stick_hitr.hitTest(this.bombbug_hit)) {
this._x = this._x + 20;
}
if (preventcounter == 1) {
preventdoublehit++;
}
if (preventdoublehit == 40) {
preventdoublehit = 0;
preventcounter = 0;
}
if (playoncecount == 1) {
playonce++;
}
if (playonce == 40) {
playonce = 1;
playoncecount = 0;
}
this._x = this._x + movespeed;
}
}
}
Instance of Symbol 57 MovieClip "submitbugbox" in Symbol 122 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.activatebughunt == 2) {
killslist.text = _global.bugkillcount;
_global.localmoneyvar = Math.round(_global.bugkillcount * 0.5);
_global.activatebughunt = 0;
}
score.text = _global.bugkillcount * 100;
}
Instance of Symbol 31 MovieClip "bombbug7" in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
playonce = 1;
movespeed = 10;
activeonce = 0;
preventdoublehitcounter = 0;
preventdoublehit = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.rightboundary)) {
bugrandomvt();
this._x = -363;
_global.bugmissedcount++;
}
if (_global.activatebughunt == 1) {
if (_global.bugkillcount > 250) {
bugrandomvt = function () {
this._y = -Math.round(Math.random() * 440);
};
if (activeonce == 0) {
bugrandomvt();
activeonce = 1;
}
if (_parent.scythe.scythe_hit.hitTest(this.bombbug_hit)) {
if (preventdoublehit == 0) {
this.bombbugparts.gotoAndPlay(12);
preventcounter = 1;
}
if (playonce == 1) {
heheSound = new Sound(this);
heheSound.attachSound("grasscutting_hehe");
heheSound.start(0, 0);
playoncecount = 1;
_global.bugkillcount++;
}
movespeed = 0;
}
if (_parent.scythe.stick_hitl.hitTest(this.bombbug_hit)) {
this._x = this._x - 20;
}
if (_parent.scythe.stick_hitr.hitTest(this.bombbug_hit)) {
this._x = this._x + 20;
}
if (preventcounter == 1) {
preventdoublehit++;
}
if (preventdoublehit == 40) {
preventdoublehit = 0;
preventcounter = 0;
}
if (playoncecount == 1) {
playonce++;
}
if (playonce == 40) {
playonce = 1;
playoncecount = 0;
}
this._x = this._x + movespeed;
}
}
}
Instance of Symbol 29 MovieClip "bombbug8" in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
playonce = 1;
movespeed = -10;
activeonce = 0;
preventdoublehitcounter = 0;
preventdoublehit = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.leftboundary)) {
bugrandomvt();
this._x = 316;
_global.bugmissedcount++;
}
if (_global.activatebughunt == 1) {
if (_global.bugkillcount > 100) {
bugrandomvt = function () {
this._y = -Math.round(Math.random() * 440);
};
if (activeonce == 0) {
bugrandomvt();
activeonce = 1;
}
if (_parent.scythe.scythe_hit.hitTest(this.bombbug_hit)) {
if (preventdoublehit == 0) {
this.bombbugparts.gotoAndPlay(12);
preventcounter = 1;
}
if (playonce == 1) {
heheSound = new Sound(this);
heheSound.attachSound("grasscutting_hehe");
heheSound.start(0, 0);
playoncecount = 1;
_global.bugkillcount++;
}
movespeed = 0;
}
if (_parent.scythe.stick_hitl.hitTest(this.bombbug_hit)) {
this._x = this._x - 20;
}
if (_parent.scythe.stick_hitr.hitTest(this.bombbug_hit)) {
this._x = this._x + 20;
}
if (preventcounter == 1) {
preventdoublehit++;
}
if (preventdoublehit == 40) {
preventdoublehit = 0;
preventcounter = 0;
}
if (playoncecount == 1) {
playonce++;
}
if (playonce == 40) {
playonce = 1;
playoncecount = 0;
}
this._x = this._x + movespeed;
}
}
}
Instance of Symbol 29 MovieClip "bombbug6" in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
playonce = 1;
movespeed = -10;
activeonce = 0;
preventdoublehitcounter = 0;
preventdoublehit = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.leftboundary)) {
bugrandomvt();
this._x = 316;
_global.bugmissedcount++;
}
if (_global.activatebughunt == 1) {
if (_global.bugkillcount > 77) {
bugrandomvt = function () {
this._y = -Math.round(Math.random() * 440);
};
if (activeonce == 0) {
bugrandomvt();
activeonce = 1;
}
if (_parent.scythe.scythe_hit.hitTest(this.bombbug_hit)) {
if (preventdoublehit == 0) {
this.bombbugparts.gotoAndPlay(12);
preventcounter = 1;
}
if (playonce == 1) {
heheSound = new Sound(this);
heheSound.attachSound("grasscutting_hehe");
heheSound.start(0, 0);
playoncecount = 1;
_global.bugkillcount++;
}
movespeed = 0;
}
if (_parent.scythe.stick_hitl.hitTest(this.bombbug_hit)) {
this._x = this._x - 20;
}
if (_parent.scythe.stick_hitr.hitTest(this.bombbug_hit)) {
this._x = this._x + 20;
}
if (preventcounter == 1) {
preventdoublehit++;
}
if (preventdoublehit == 40) {
preventdoublehit = 0;
preventcounter = 0;
}
if (playoncecount == 1) {
playonce++;
}
if (playonce == 40) {
playonce = 1;
playoncecount = 0;
}
this._x = this._x + movespeed;
}
}
}
Instance of Symbol 29 MovieClip "bombbug4" in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
playonce = 1;
movespeed = -10;
activeonce = 0;
preventdoublehitcounter = 0;
preventdoublehit = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.leftboundary)) {
bugrandomvt();
this._x = 316;
_global.bugmissedcount++;
}
if (_global.activatebughunt == 1) {
if (_global.bugkillcount > 34) {
bugrandomvt = function () {
this._y = -Math.round(Math.random() * 440);
};
if (activeonce == 0) {
bugrandomvt();
activeonce = 1;
}
if (_parent.scythe.scythe_hit.hitTest(this.bombbug_hit)) {
if (preventdoublehit == 0) {
this.bombbugparts.gotoAndPlay(12);
preventcounter = 1;
}
if (playonce == 1) {
heheSound = new Sound(this);
heheSound.attachSound("grasscutting_hehe");
heheSound.start(0, 0);
playoncecount = 1;
_global.bugkillcount++;
}
movespeed = 0;
}
if (_parent.scythe.stick_hitl.hitTest(this.bombbug_hit)) {
this._x = this._x - 20;
}
if (_parent.scythe.stick_hitr.hitTest(this.bombbug_hit)) {
this._x = this._x + 20;
}
if (preventcounter == 1) {
preventdoublehit++;
}
if (preventdoublehit == 40) {
preventdoublehit = 0;
preventcounter = 0;
}
if (playoncecount == 1) {
playonce++;
}
if (playonce == 40) {
playonce = 1;
playoncecount = 0;
}
this._x = this._x + movespeed;
}
}
}
Instance of Symbol 31 MovieClip "bombbug5" in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
playonce = 1;
movespeed = 10;
activeonce = 0;
preventdoublehitcounter = 0;
preventdoublehit = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.rightboundary)) {
bugrandomvt();
this._x = -363;
_global.bugmissedcount++;
}
if (_global.activatebughunt == 1) {
if (_global.bugkillcount > 18) {
bugrandomvt = function () {
this._y = -Math.round(Math.random() * 440);
};
if (activeonce == 0) {
bugrandomvt();
activeonce = 1;
}
if (_parent.scythe.scythe_hit.hitTest(this.bombbug_hit)) {
if (preventdoublehit == 0) {
this.bombbugparts.gotoAndPlay(12);
preventcounter = 1;
}
if (playonce == 1) {
heheSound = new Sound(this);
heheSound.attachSound("grasscutting_hehe");
heheSound.start(0, 0);
playoncecount = 1;
_global.bugkillcount++;
}
movespeed = 0;
}
if (_parent.scythe.stick_hitl.hitTest(this.bombbug_hit)) {
this._x = this._x - 20;
}
if (_parent.scythe.stick_hitr.hitTest(this.bombbug_hit)) {
this._x = this._x + 20;
}
if (preventcounter == 1) {
preventdoublehit++;
}
if (preventdoublehit == 40) {
preventdoublehit = 0;
preventcounter = 0;
}
if (playoncecount == 1) {
playonce++;
}
if (playonce == 40) {
playonce = 1;
playoncecount = 0;
}
this._x = this._x + movespeed;
}
}
}
Instance of Symbol 29 MovieClip "bombbug2" in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
playonce = 1;
movespeed = -10;
activeonce = 0;
preventdoublehitcounter = 0;
preventdoublehit = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.leftboundary)) {
bugrandomvt();
this._x = 316;
_global.bugmissedcount++;
}
if (_global.activatebughunt == 1) {
if (_global.bugkillcount > 9) {
bugrandomvt = function () {
this._y = -Math.round(Math.random() * 440);
};
if (activeonce == 0) {
bugrandomvt();
activeonce = 1;
}
if (_parent.scythe.scythe_hit.hitTest(this.bombbug_hit)) {
if (preventdoublehit == 0) {
this.bombbugparts.gotoAndPlay(12);
preventcounter = 1;
}
if (playonce == 1) {
heheSound = new Sound(this);
heheSound.attachSound("grasscutting_hehe");
heheSound.start(0, 0);
playoncecount = 1;
_global.bugkillcount++;
}
movespeed = 0;
}
if (_parent.scythe.stick_hitl.hitTest(this.bombbug_hit)) {
this._x = this._x - 20;
}
if (_parent.scythe.stick_hitr.hitTest(this.bombbug_hit)) {
this._x = this._x + 20;
}
if (preventcounter == 1) {
preventdoublehit++;
}
if (preventdoublehit == 40) {
preventdoublehit = 0;
preventcounter = 0;
}
if (playoncecount == 1) {
playonce++;
}
if (playonce == 40) {
playonce = 1;
playoncecount = 0;
}
this._x = this._x + movespeed;
}
}
}
Instance of Symbol 31 MovieClip "bombbug1" in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
playonce = 1;
movespeed = 10;
activeonce = 0;
preventdoublehitcounter = 0;
preventdoublehit = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.rightboundary)) {
bugrandomvt();
this._x = -363;
_global.bugmissedcount++;
}
if (_global.activatebughunt == 1) {
if (_global.bugkillcount > 4) {
bugrandomvt = function () {
this._y = -Math.round(Math.random() * 440);
};
if (activeonce == 0) {
bugrandomvt();
activeonce = 1;
}
if (_parent.scythe.scythe_hit.hitTest(this.bombbug_hit)) {
if (preventdoublehit == 0) {
this.bombbugparts.gotoAndPlay(12);
preventcounter = 1;
}
if (playonce == 1) {
heheSound = new Sound(this);
heheSound.attachSound("grasscutting_hehe");
heheSound.start(0, 0);
playoncecount = 1;
_global.bugkillcount++;
}
movespeed = 0;
}
if (_parent.scythe.stick_hitl.hitTest(this.bombbug_hit)) {
this._x = this._x - 20;
}
if (_parent.scythe.stick_hitr.hitTest(this.bombbug_hit)) {
this._x = this._x + 20;
}
if (preventcounter == 1) {
preventdoublehit++;
}
if (preventdoublehit == 40) {
preventdoublehit = 0;
preventcounter = 0;
}
if (playoncecount == 1) {
playonce++;
}
if (playonce == 40) {
playonce = 1;
playoncecount = 0;
}
this._x = this._x + movespeed;
}
}
}
Instance of Symbol 63 MovieClip "gc_instructions" in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
this._y = -250;
}
Instance of Symbol 70 MovieClip "reaper" in Symbol 122 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.scythe._currentframe);
if (Key.isDown(37)) {
this._rotation = this._rotation - _global.cr;
}
if (Key.isDown(39)) {
this._rotation = this._rotation + _global.cr;
}
if (Key.isDown(87)) {
this._y = this._y - _global.cs;
}
if (Key.isDown(83)) {
this._y = this._y + _global.cs;
}
if (Key.isDown(65)) {
this._x = this._x - _global.cs;
}
if (Key.isDown(68)) {
this._x = this._x + _global.cs;
}
}
Instance of Symbol 31 MovieClip "bombbug3" in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
playonce = 1;
movespeed = 10;
activeonce = 0;
preventdoublehitcounter = 0;
preventdoublehit = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.rightboundary)) {
bugrandomvt();
this._x = -363;
_global.bugmissedcount++;
}
if (_global.activatebughunt == 1) {
bugrandomvt = function () {
this._y = -Math.round(Math.random() * 440);
};
if (activeonce == 0) {
bugrandomvt();
activeonce = 1;
}
if (_parent.scythe.scythe_hit.hitTest(this.bombbug_hit)) {
if (preventdoublehit == 0) {
this.bombbugparts.gotoAndPlay(12);
preventcounter = 1;
}
if (playonce == 1) {
heheSound = new Sound(this);
heheSound.attachSound("grasscutting_hehe");
heheSound.start(0, 0);
playoncecount = 1;
_global.bugkillcount++;
}
movespeed = 0;
}
if (_parent.scythe.stick_hitl.hitTest(this.bombbug_hit)) {
this._x = this._x - 20;
}
if (_parent.scythe.stick_hitr.hitTest(this.bombbug_hit)) {
this._x = this._x + 20;
}
if (preventcounter == 1) {
preventdoublehit++;
}
if (preventdoublehit == 40) {
preventdoublehit = 0;
preventcounter = 0;
}
if (playoncecount == 1) {
playonce++;
}
if (playonce == 40) {
playonce = 1;
playoncecount = 0;
}
this._x = this._x + movespeed;
}
}
Instance of Symbol 88 MovieClip "scythe" in Symbol 122 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop((2 * _global.weapon) - 1);
this._rotation = this._rotation - _global.cr;
}
if (Key.isDown(39)) {
gotoAndStop(2 * _global.weapon);
this._rotation = this._rotation + _global.cr;
}
if (Key.isDown(87)) {
this._y = this._y - _global.cs;
}
if (Key.isDown(83)) {
this._y = this._y + _global.cs;
}
if (Key.isDown(65)) {
this._x = this._x - _global.cs;
}
if (Key.isDown(68)) {
this._x = this._x + _global.cs;
}
}
Instance of Symbol 120 MovieClip in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
timer = 0;
_global.bugkillcount = 0;
_global.bugmissedcount = 0;
_global.activatebughunt = 0;
}
onClipEvent (enterFrame) {
_parent.bugkilled.text = _global.bugkillcount;
_parent.bugmissed.text = _global.bugmissedcount;
if (_global.bugmissedcount >= 50) {
_global.activatebughunt = 2;
_parent.submitbugbox._y = -250;
} else if (_global.bugkillcount >= 1000) {
_global.weapon = 6;
_global.cs + 2;
_global.cr + 5;
} else if (_global.bugkillcount >= 500) {
_global.weapon = 5;
_global.cs + 2;
_global.cr + 5;
} else if (_global.bugkillcount >= 250) {
_global.weapon = 4;
_global.cs + 2;
_global.cr + 5;
} else if (_global.bugkillcount >= 100) {
_global.weapon = 3;
_global.cs + 2;
_global.cr + 5;
} else if (_global.bugkillcount >= 50) {
_global.weapon = 2;
}
timer++;
if (timer == 100) {
if (_global.bugkillcount >= 1000) {
_global.cd = 600;
}
if (_global.bugkillcount >= 750) {
_global.cd = (Math.ceil((Math.random() * 3) + 3) * 100) - 99;
}
if (_global.bugkillcount >= 500) {
_global.cd = (Math.ceil((Math.random() * 4) + 2) * 100) - 99;
}
if (_global.bugkillcount >= 350) {
_global.cd = (Math.ceil((Math.random() * 5) + 1) * 100) - 99;
}
if (_global.bugkillcount >= 250) {
_global.cd = (Math.ceil(Math.random() * 6) * 100) - 99;
} else if (_global.bugkillcount >= 100) {
_global.cd = (Math.ceil(Math.random() * 5) * 100) - 99;
} else if (_global.bugkillcount >= 100) {
_global.cd = (Math.ceil(Math.random() * 4) * 100) - 99;
} else {
_global.cd = (Math.ceil(Math.random() * 2) * 100) - 99;
}
timer = 0;
}
cm = _global.bugkillcount / _global.bugmissedcount;
if (cm >= 40) {
_parent.rating.text = "Excellent!";
} else if (cm > 25) {
_parent.rating.text = "Good";
} else if (cm == 20) {
_parent.rating.text = "Neutral";
} else if (cm < 5) {
_parent.rating.text = "Horrible!";
} else if (cm < 15) {
_parent.rating.text = "Bad";
}
}