Frame 1
stop();
Frame 2
function createMosquitos(count) {
var i;
i = 1;
while (count >= i) {
_root.attachMovie("mosquito", "mosquito" + i, i);
i++;
}
_root.attachMovie("preph", "preph1", 1);
}
function calculateRandom(min, max) {
return(Math.floor(Math.random() * ((max + 1) - min)) + min);
}
function playSound(max, x, soundID) {
var soundobject;
soundobject = new Sound();
soundobject.attachSound(soundID);
if (x < 0) {
x = 0;
} else if (max < x) {
x = max;
}
soundobject.setPan(((x - (max / 2)) * 100) / (max / 2));
soundobject.start();
}
play();
Instance of Symbol 44 MovieClip "Butt" in Frame 2
onClipEvent (load) {
_root.score = 0;
_root.hit = 3;
_root.level = 3;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT) && (-40 < this._rotation)) {
_rotation = ((this._rotation = this._rotation - 5));
}
if (Key.isDown(Key.RIGHT) && (this._rotation < 40)) {
_rotation = ((this._rotation = this._rotation + 5));
}
if (Key.isDown(Key.SPACE)) {
if (Key.isDown(Key.UP)) {
setProperty("/PoopFar", _x , this._x);
setProperty("/PoopFar", _y , this._y - 30);
setProperty("/PoopFar", _rotation , this._rotation);
_root.PoopFar.gotoAndPlay(2);
} else {
setProperty("/Poop", _x , this._x);
setProperty("/Poop", _y , this._y - 30);
setProperty("/Poop", _rotation , this._rotation);
_root.Poop.gotoAndPlay(2);
}
}
}
Instance of Symbol 52 MovieClip "preph" in Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.Poop.hitarea)) {
_root.score = _root.score + 500;
this.gotoAndPlay(2);
this._x = -800;
this._y = 100;
} else if (this.hitTest(_root.PoopFar.hitarea2)) {
_root.score = _root.score + 500;
this.gotoAndPlay(2);
this._x = -800;
this._y = 100;
}
}
onClipEvent (load) {
this._x = _root.calculateRandom(-1500, -50);
this._y = _root.calculateRandom(80, 200);
xStep = 6;
yStep = 4;
}
onClipEvent (enterFrame) {
this._x = this._x + xstep;
this._y = this._y + (Math.sin(this._x / 100) * ystep);
if ((this._x < -30) and (xstep < 0)) {
xstep = -(xstep - (xstep / 16));
ystep = -(ystep - (ystep / 16));
} else if ((670 < this._x) and (0 < xstep)) {
xstep = -(xstep - (xstep / 16));
ystep = -(ystep - (ystep / 16));
}
}
Frame 4
if (hit == level) {
if (level < 13) {
level++;
}
hit = 0;
createMosquitos(level);
}
prevFrame();
play();
Symbol 7 MovieClip [mosquito] Frame 1
stop();
Instance of Symbol 2 MovieClip "mosquito" in Symbol 7 MovieClip [mosquito] Frame 1
onClipEvent (load) {
varName = 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Poop.hitarea)) {
soundobject.stop();
_root.playSound(640, _parent._x, "splatter");
_root.score = _root.score + 100;
_parent.gotoAndPlay("hit");
} else if (this.hitTest(_root.PoopFar.hitarea2)) {
soundobject.stop();
_root.playSound(640, _parent._x, "splatter");
_root.score = _root.score + 100;
_parent.gotoAndPlay("hit");
}
}
onClipEvent (load) {
_parent._x = _root.calculateRandom(-1500, -50);
_parent._y = _root.calculateRandom(80, 200);
scale = 10;
_parent._xscale = scale;
_parent._yscale = scale;
xStep = 12;
yStep = 8;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + xstep;
_parent._y = _parent._y + (Math.sin(_parent._x / 200) * ystep);
if ((_parent._x < -30) and (xstep < 0)) {
xstep = -(xstep - (xstep / 16));
ystep = -(ystep - (ystep / 16));
scale = _parent._yscale + 4;
_parent._xscale = scale;
_parent._yscale = scale;
} else if ((670 < _parent._x) and (0 < xstep)) {
xstep = -(xstep - (xstep / 16));
ystep = -(ystep - (ystep / 16));
scale = _parent._yscale + 4;
_parent._xscale = -scale;
_parent._yscale = scale;
}
}
Symbol 7 MovieClip [mosquito] Frame 15
removeMovieClip("");
_root.hit++;
Symbol 12 Button
on (release) {
nextFrame();
}
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 17
_y = "800";
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 16
_y = "800";
Symbol 52 MovieClip Frame 1
stop();