Frame 1
function DispatchGameData() {
var _local1 = _root;
_local1.score = _local1.scoreTxt + 969696;
this.loadVariables((_local1.dir + "game_record.") + _local1.scripttype, "POST");
}
function Timer() {
this.alarmTime = getTimer();
this.currentTime = 0;
}
this.stop();
var MOLE_CNT = 10;
var score = 0;
_root.scoreTxt = 0;
_root.levelTxt = 1;
_root.timeTxt = 60;
Timer.prototype.resetTime = function () {
alarmTime = getTimer();
};
Timer.prototype.checkTime = function (milliseconds) {
currentTime = getTimer();
return((currentTime - alarmTime) > milliseconds);
};
Instance of Symbol 24 MovieClip "mole2" in Frame 1
onClipEvent (load) {
this.gotoAndStop("ACT_WAIT");
}
Instance of Symbol 31 MovieClip "mole4" in Frame 1
onClipEvent (load) {
this.gotoAndStop("ACT_WAIT");
}
Instance of Symbol 31 MovieClip "mole3" in Frame 1
onClipEvent (load) {
this.gotoAndStop("ACT_WAIT");
}
Instance of Symbol 24 MovieClip "mole1" in Frame 1
onClipEvent (load) {
this.gotoAndStop("ACT_WAIT");
}
Instance of Symbol 31 MovieClip "mole5" in Frame 1
onClipEvent (load) {
this.gotoAndStop("ACT_WAIT");
}
Instance of Symbol 31 MovieClip "mole10" in Frame 1
onClipEvent (load) {
this.gotoAndStop("ACT_WAIT");
}
Instance of Symbol 31 MovieClip "mole9" in Frame 1
onClipEvent (load) {
this.gotoAndStop("ACT_WAIT");
}
Instance of Symbol 31 MovieClip "mole8" in Frame 1
onClipEvent (load) {
this.gotoAndStop("ACT_WAIT");
}
Instance of Symbol 24 MovieClip "mole7" in Frame 1
onClipEvent (load) {
this.gotoAndStop("ACT_WAIT");
}
Instance of Symbol 24 MovieClip "mole6" in Frame 1
onClipEvent (load) {
this.gotoAndStop("ACT_WAIT");
}
Instance of Symbol 37 MovieClip in Frame 1
/* no clip actions */
Frame 10
this.stop();
Mouse.hide();
var playTimer = new Timer();
var viewTimer = new Timer();
playTimer.resetTime();
viewTimer.resetTime();
_root.onEnterFrame = function () {
var _local1 = _root;
if (viewTimer.checkTime(1000)) {
viewTimer.resetTime();
var _local2 = random(10) + 1;
_local1["mole" + _local2].gotoAndPlay("ACT_WAIT");
_local1.timeTxt--;
_local1.timerMc._xscale = (_local1.timeTxt * 100) / 60;
if (_local1.timeTxt <= 0) {
if (_local1.scoreTxt >= 500) {
_local1.gotoAndStop("win");
} else {
_local1.gotoAndStop("lose");
}
delete this.onEnterFrame;
}
}
};
Instance of Symbol 24 MovieClip "mole2" in Frame 10
onClipEvent (load) {
this.gotoAndStop("ACT_HIDE");
}
Instance of Symbol 31 MovieClip "mole4" in Frame 10
onClipEvent (load) {
this.gotoAndStop("ACT_HIDE");
}
Instance of Symbol 31 MovieClip "mole3" in Frame 10
onClipEvent (load) {
this.gotoAndStop("ACT_HIDE");
}
Instance of Symbol 24 MovieClip "mole1" in Frame 10
onClipEvent (load) {
this.gotoAndStop("ACT_HIDE");
}
Instance of Symbol 31 MovieClip "mole5" in Frame 10
onClipEvent (load) {
this.gotoAndStop("ACT_HIDE");
}
Instance of Symbol 31 MovieClip "mole10" in Frame 10
onClipEvent (load) {
this.gotoAndStop("ACT_HIDE");
}
Instance of Symbol 31 MovieClip "mole9" in Frame 10
onClipEvent (load) {
this.gotoAndStop("ACT_HIDE");
}
Instance of Symbol 31 MovieClip "mole8" in Frame 10
onClipEvent (load) {
this.gotoAndStop("ACT_HIDE");
}
Instance of Symbol 24 MovieClip "mole7" in Frame 10
onClipEvent (load) {
this.gotoAndStop("ACT_HIDE");
}
Instance of Symbol 24 MovieClip "mole6" in Frame 10
onClipEvent (load) {
this.gotoAndStop("ACT_HIDE");
}
Instance of Symbol 37 MovieClip "hammer" in Frame 10
onClipEvent (load) {
this.startDrag(true, 0, 0, 460, 450);
}
onClipEvent (mouseDown) {
this.gotoAndPlay("push");
}
Frame 20
this.stop();
Mouse.show();
if (_root.dbconnect == "yes") {
DispatchGameData();
}
Frame 30
this.stop();
Mouse.show();
if (_root.dbconnect == "yes") {
DispatchGameData();
}
Symbol 6 Button
on (press) {
_root.gotoAndStop("play");
}
Symbol 12 Button
on (release) {
getURL ("http://www.game24.co.kr", "_blank");
}
Symbol 24 MovieClip Frame 1
Symbol 24 MovieClip Frame 10
Symbol 24 MovieClip Frame 20
this.gotoAndPlay("ACT_HIDE");
Symbol 24 MovieClip Frame 31
this.stop();
Symbol 31 MovieClip Frame 1
Symbol 31 MovieClip Frame 10
Symbol 31 MovieClip Frame 20
this.gotoAndPlay("ACT_HIDE");
Symbol 37 MovieClip Frame 1
this.stop();
Symbol 37 MovieClip Frame 5
i = 1;
while (i < 11) {
if (this.rectArea.hitTest(_root["mole" + i].rectArea)) {
_root["mole" + i].gotoAndPlay("ACT_HIT");
_root.scoreTxt = _root.scoreTxt + 10;
if ((_root.scoreTxt % 100) == 0) {
_root.levelTxt++;
}
}
i++;
}
Symbol 38 Button
on (press) {
_root.scoreTxt = 0;
_root.levelTxt = 1;
_root.timeTxt = 60;
_root.gotoAndStop("play");
}
Symbol 41 MovieClip Frame 10
this.stop();
Symbol 45 MovieClip Frame 10
this.stop();