Frame 1
Mouse.show();
stop();
_global.engine = this;
Instance of Symbol 47 MovieClip in Frame 1
onClipEvent (load) {
if (_global.mute != undefined) {
this.speak.gotoAndStop(_global.mute);
}
}
Frame 2
Mouse.show();
stop();
if (!init) {
music_snd = new Sound(this);
music_snd.attachSound("Music");
music_snd.setVolume(70);
music_snd.start(0, 99999999);
}
init = true;
Frame 3
function setOpenTime() {
openTime = openDelay + getTimer();
if (openDelay > 999) {
openDelay = openDelay - delayDecrease;
}
return(openTime);
}
function setCloseTime() {
closeTime = closeDelay + getTimer();
return(closeTime);
}
stop();
Mouse.hide();
gameOver = false;
hammer._visible = true;
bee_mc.frameCount = 0;
bee_mc.gotoAndPlay(1);
score = 0;
spiderSpeed = 0.5;
spiderEnd = 460;
spiderBack = 3;
openDelay = 2000;
closeDelay = 106;
delayDecrease = 50;
sndGood = new Sound(this);
sndGood.attachSound("Good");
sndBad = new Sound(this);
sndBad.attachSound("Bad");
sndDieFly = new Sound(this);
sndDieFly.attachSound("DieFly");
stop();
Instance of Symbol 68 MovieClip "Box_1" in Frame 3
onClipEvent (load) {
this.stop();
this.HitOK = true;
}
onClipEvent (mouseDown) {
if (_parent.gameOver == false) {
x = _parent._xmouse;
y = _parent._ymouse;
if (this.hitTest(x, y, true)) {
if ((this._currentFrame > 1) and (this.HitOK == true)) {
this.HitOK = false;
this.play();
s = int(_parent.score);
s = s + 1;
_parent.score = s;
_parent.sndGood.start();
_global.engine.c = true;
} else {
_parent.sndBad.start();
}
}
}
}
onClipEvent (enterFrame) {
if (this._currentFrame == 1) {
this.HitOK = true;
}
}
Instance of Symbol 68 MovieClip "Box_2" in Frame 3
onClipEvent (load) {
this.stop();
this.HitOK = true;
}
onClipEvent (mouseDown) {
if (_parent.gameOver == false) {
x = _parent._xmouse;
y = _parent._ymouse;
if (this.hitTest(x, y, true)) {
if ((this._currentFrame > 1) and (this.HitOK == true)) {
this.HitOK = false;
this.play();
s = int(_parent.score);
s = s + 1;
_parent.score = s;
_parent.sndGood.start();
_global.engine.c = true;
} else {
_parent.sndBad.start();
}
}
}
}
onClipEvent (enterFrame) {
if (this._currentFrame == 1) {
this.HitOK = true;
}
}
Instance of Symbol 68 MovieClip "Box_3" in Frame 3
onClipEvent (load) {
this.stop();
this.HitOK = true;
}
onClipEvent (mouseDown) {
if (_parent.gameOver == false) {
x = _parent._xmouse;
y = _parent._ymouse;
if (this.hitTest(x, y, true)) {
if ((this._currentFrame > 1) and (this.HitOK == true)) {
this.HitOK = false;
this.play();
s = int(_parent.score);
s = s + 1;
_parent.score = s;
_parent.sndGood.start();
_global.engine.c = true;
} else {
_parent.sndBad.start();
}
}
}
}
onClipEvent (enterFrame) {
if (this._currentFrame == 1) {
this.HitOK = true;
}
}
Instance of Symbol 68 MovieClip "Box_4" in Frame 3
onClipEvent (load) {
this.stop();
this.HitOK = true;
}
onClipEvent (mouseDown) {
if (_parent.gameOver == false) {
x = _parent._xmouse;
y = _parent._ymouse;
if (this.hitTest(x, y, true)) {
if ((this._currentFrame > 1) and (this.HitOK == true)) {
this.HitOK = false;
this.play();
s = int(_parent.score);
s = s + 1;
_parent.score = s;
_parent.sndGood.start();
_global.engine.c = true;
} else {
_parent.sndBad.start();
}
}
}
}
onClipEvent (enterFrame) {
if (this._currentFrame == 1) {
this.HitOK = true;
}
}
Instance of Symbol 68 MovieClip "Box_5" in Frame 3
onClipEvent (load) {
this.stop();
this.HitOK = true;
}
onClipEvent (mouseDown) {
if (_parent.gameOver == false) {
x = _parent._xmouse;
y = _parent._ymouse;
if (this.hitTest(x, y, true)) {
if ((this._currentFrame > 1) and (this.HitOK == true)) {
this.HitOK = false;
this.play();
s = int(_parent.score);
s = s + 1;
_parent.score = s;
_parent.sndGood.start();
_global.engine.c = true;
} else {
_parent.sndBad.start();
}
}
}
}
onClipEvent (enterFrame) {
if (this._currentFrame == 1) {
this.HitOK = true;
}
}
Instance of Symbol 68 MovieClip "Box_6" in Frame 3
onClipEvent (load) {
this.stop();
this.HitOK = true;
}
onClipEvent (mouseDown) {
if (_parent.gameOver == false) {
x = _parent._xmouse;
y = _parent._ymouse;
if (this.hitTest(x, y, true)) {
if ((this._currentFrame > 1) and (this.HitOK == true)) {
this.HitOK = false;
this.play();
s = int(_parent.score);
s = s + 1;
_parent.score = s;
_parent.sndGood.start();
_global.engine.c = true;
} else {
_parent.sndBad.start();
}
}
}
}
onClipEvent (enterFrame) {
if (this._currentFrame == 1) {
this.HitOK = true;
}
}
Instance of Symbol 77 MovieClip "bee_mc" in Frame 3
onClipEvent (load) {
spiderSpeed = _parent.spiderSpeed;
spiderEnd = _parent.spiderEnd;
spiderBack = _parent.spiderBack;
frameCount = 0;
this.stop();
}
onClipEvent (enterFrame) {
if (this._currentframe < this._totalframes) {
_parent.gameOver = false;
frameCount++;
if (frameCount > 2) {
this.gotoAndStop(this._currentframe + 1);
frameCount = 0;
}
} else {
_parent.gameOver = true;
}
}
Instance of Symbol 85 MovieClip "Hammer" in Frame 3
onClipEvent (enterFrame) {
this._x = _parent._xmouse;
this._y = _parent._ymouse;
}
onClipEvent (mouseDown) {
this.gotoAndPlay(2);
}
Instance of Symbol 88 MovieClip "Actions" in Frame 3
onClipEvent (load) {
this.ot = _parent.setOpenTime();
this.ct = _parent.setCloseTime();
}
onClipEvent (enterFrame) {
if (_parent.gameOver == false) {
if (getTimer() > this.ot) {
_parent["Box_" + Math.ceil(Math.random() * 6)].play();
this.ot = _parent.setOpenTime();
}
if (getTimer() > this.ct) {
rBox = Math.ceil(Math.random() * 6);
if (_parent["Box_" + rBox]._currentFrame > 1) {
_parent["Box_" + rBox].play();
}
this.ct = _parent.setCloseTime();
}
if (Math.random() < 0.04) {
_parent.Fly.play();
}
} else {
_parent.sndDieFly.start();
_parent.Fly.play();
_parent.gotoAndPlay("End");
}
}
Frame 4
var i = 1;
while (i < 7) {
if (_root["Box_" + i]._currentFrame > 1) {
_root["Box_" + i].gotoAndPlay("lid_closing");
}
i++;
}
Mouse.show();
hammer._visible = false;
Frame 80
stop();
Symbol 36 Button
on (release) {
gotoAndPlay (1);
}
on (release) {
gotoAndPlay (3);
}
Symbol 43 Button
on (rollOver) {
speak._xscale = 110;
}
on (rollOut) {
speak._xscale = 100;
}
on (release) {
if (speak._currentframe == 1) {
speak.gotoAndStop(2);
_global.mute = 2;
} else {
speak.gotoAndStop(1);
_global.mute = 1;
}
}
Symbol 46 MovieClip Frame 1
stop();
globalsound = new Sound();
globalsound.setVolume(100);
Symbol 46 MovieClip Frame 2
globalsound.setVolume(0);
Symbol 68 MovieClip Frame 7
stop();
Symbol 68 MovieClip Frame 9
gotoAndStop ("lid_closed");
Symbol 71 Button
on (release) {
gotoAndPlay (1);
}
Symbol 85 MovieClip Frame 1
stop();
net_mc.net2_mc.carrot_mc._visible = false;
Symbol 85 MovieClip Frame 2
if (_global.engine.c) {
net_mc.net2_mc.carrot_mc._visible = true;
} else {
net_mc.net2_mc.carrot_mc._visible = false;
}
Symbol 85 MovieClip Frame 4
if (_global.engine.c) {
net_mc.net2_mc.carrot_mc._visible = true;
} else {
net_mc.net2_mc.carrot_mc._visible = false;
}
Symbol 85 MovieClip Frame 7
gotoAndPlay ("hammer_static");
net_mc.net2_mc.carrot_mc._visible = false;
_global.engine.c = false;
Symbol 95 Button
on (release) {
gotoAndStop (3);
}