Frame 1
stop();
fscommand ("showmenu", "false");
stop();
fscommand ("fullscreen", true);
fscommand ("allowscale", false);
gameOver = true;
Frame 2
_root.gameOver = false;
gotoAndPlay (3);
Frame 3
stop();
function init() {
myTarget = new Array();
depth = 0;
}
function bulidMap(map) {
var arrayW = map[0].length;
var arrayH = map.length;
var _local3 = 0;
while (_local3 < arrayH) {
var _local2 = 0;
while (_local2 < arrayW) {
duplicateMovieClip ("title", (("title" + _local3) + "_") + _local2, depth);
var _local1 = this[(("title" + _local3) + "_") + _local2];
_local1._x = startX + (_local2 * titleW);
_local1._y = startY + (_local3 * titleH);
if (map[_local3][_local2] == 1) {
_local1.gotoAndStop(2);
_local1.val = 1;
} else if (map[_local3][_local2] == 2) {
_local1.val = 2;
_local1.gotoAndStop(3);
} else if (map[_local3][_local2] == 3) {
_local1.val = 3;
_local1.oldVal = 3;
_local1.gotoAndStop(4);
myTarget.push(_local1);
} else {
_local1.val = 0;
_local1.gotoAndStop(1);
}
depth++;
_local2++;
}
_local3++;
}
}
function removeMap(map) {
var arrayW = map[0].length;
var arrayH = map.length;
var _local3 = 0;
while (_local3 < arrayH) {
var _local1 = 0;
while (_local1 < arrayW) {
var _local2 = this[(("title" + _local3) + "_") + _local1];
_local2.removeMovieClip();
_local1++;
}
_local3++;
}
}
function removeActor() {
actor.removeMovieClip();
}
function removeItem(level) {
var map = eval ("map" + level);
removeMap(map);
removeActor();
}
function setActor(actorPos) {
var _local1 = actorPos;
duplicateMovieClip ("act", "actor", 200);
this.actor._x = startX + (_local1[0] * titleW);
actor._y = startY + (_local1[1] * titleH);
actor.x = _local1[0];
actor.y = _local1[1];
}
function move(dir) {
var _local2 = this;
movesound = new Sound();
movesound.attachSound("movesound");
moveendsound = new Sound();
moveendsound.attachSound("moveendsound");
if (dir == "up") {
var _local1 = _local2[(("title" + (actor.y - 1)) + "_") + actor.x];
var _local3 = _local2[(("title" + (actor.y - 2)) + "_") + actor.x];
if ((_local1.val == 0) || (_local1.val == 3)) {
actor._y = actor._y - titleH;
actor.y = actor.y - 1;
movesound.start();
} else if ((_local1.val == 2) && ((_local3.val == 0) || (_local3.val == 3))) {
if (_local1.oldVal == 3) {
_local1.gotoAndStop(4);
_local1.val = 3;
} else {
_local1.gotoAndStop(1);
_local1.val = 0;
}
movesound.start();
_local3.gotoAndStop(3);
_local3.val = 2;
actor._y = actor._y - titleH;
actor.y = actor.y - 1;
}
} else if (dir == "down") {
var _local1 = _local2[(("title" + (actor.y + 1)) + "_") + actor.x];
var _local3 = _local2[(("title" + (actor.y + 2)) + "_") + actor.x];
trace("mc.val" + _local1._name);
if ((_local1.val == 0) || (_local1.val == 3)) {
actor._y = actor._y + titleH;
actor.y = actor.y + 1;
movesound.start();
} else if ((_local1.val == 2) && ((_local3.val == 0) || (_local3.val == 3))) {
if (_local1.oldVal == 3) {
_local1.gotoAndStop(4);
_local1.val = 3;
} else {
_local1.gotoAndStop(1);
_local1.val = 0;
}
movesound.start();
_local3.gotoAndStop(3);
_local3.val = 2;
actor._y = actor._y + titleH;
actor.y = actor.y + 1;
}
} else if (dir == "left") {
var _local1 = _local2[(("title" + actor.y) + "_") + (actor.x - 1)];
var _local3 = _local2[(("title" + actor.y) + "_") + (actor.x - 2)];
trace("mc.val" + _local1._name);
if ((_local1.val == 0) || (_local1.val == 3)) {
actor._x = actor._x - titleW;
actor.x = actor.x - 1;
movesound.start();
} else if ((_local1.val == 2) && ((_local3.val == 0) || (_local3.val == 3))) {
if (_local1.oldVal == 3) {
_local1.gotoAndStop(4);
_local1.val = 3;
} else {
_local1.gotoAndStop(1);
_local1.val = 0;
}
movesound.start();
_local3.gotoAndStop(3);
_local3.val = 2;
actor._x = actor._x - titleW;
actor.x = actor.x - 1;
}
} else if (dir == "right") {
var _local1 = _local2[(("title" + actor.y) + "_") + (actor.x + 1)];
var _local3 = _local2[(("title" + actor.y) + "_") + (actor.x + 2)];
trace("mc.val" + _local1._name);
if ((_local1.val == 0) || (_local1.val == 3)) {
actor._x = actor._x + titleW;
actor.x = actor.x + 1;
movesound.start();
} else if ((_local1.val == 2) && ((_local3.val == 0) || (_local3.val == 3))) {
if (_local1.oldVal == 3) {
_local1.gotoAndStop(4);
_local1.val = 3;
} else {
_local1.gotoAndStop(1);
_local1.val = 0;
}
movesound.start();
_local3.gotoAndStop(3);
_local3.val = 2;
actor._x = actor._x + titleW;
actor.x = actor.x + 1;
}
}
}
function win() {
var _local1 = 0;
while (_local1 < myTarget.length) {
if (myTarget[_local1].val == 3) {
return(false);
}
_local1++;
}
return(true);
}
function popMsg(num) {
attachMovie("msg", "msg", 300);
msg._x = 255;
msg._y = 235;
msg.gotoAndStop(num);
}
function newGame(level) {
init();
var map = eval ("map" + level);
var actorPos = eval ("actorPos" + level);
bulidMap(map);
setActor(actorPos);
}
map2 = [[0, 0, 0, 0, 1, 1, 1, 1, 1, 0], [0, 0, 0, 0, 1, 0, 0, 0, 1, 0], [1, 1, 1, 0, 1, 2, 2, 0, 1, 0], [1, 3, 1, 0, 1, 0, 2, 0, 1, 0], [1, 3, 1, 1, 1, 0, 1, 1, 1, 0], [1, 3, 0, 0, 0, 0, 1, 1, 0, 0], [1, 0, 0, 1, 0, 0, 0, 1, 0, 0], [1, 1, 1, 1, 0, 0, 0, 1, 0, 0], [0, 0, 0, 1, 1, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
actorPos2 = [7, 1];
map1 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0, 1, 0, 0], [0, 0, 1, 0, 0, 2, 0, 1, 0, 0], [0, 1, 1, 0, 1, 0, 1, 1, 1, 0], [0, 1, 0, 0, 1, 0, 1, 3, 1, 0], [0, 1, 0, 1, 0, 0, 2, 3, 1, 0], [0, 1, 0, 2, 0, 0, 0, 3, 1, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
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2, 2, 0, 1, 0, 0], [0, 1, 3, 2, 0, 2, 3, 1, 0, 0], [0, 1, 0, 2, 2, 2, 0, 1, 0, 0], [0, 1, 3, 0, 3, 0, 3, 1, 0, 0], [0, 1, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
actorPos9 = [4, 4];
titleW = title._width;
titleH = title._height;
startX = 90;
startY = 73;
depth = 0;
level = 1;
newGame(level);
Instance of Symbol 22 MovieClip [title] "title" in Frame 3
onClipEvent (load) {
if (_name == "title") {
_visible = false;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent._xmouse, _parent._ymouse)) {
}
}
Instance of Symbol 10 MovieClip [act] "act" in Frame 3
onClipEvent (load) {
if (_name == "act") {
_visible = false;
}
}
onClipEvent (keyDown) {
if ((_name != "act") && (!_parent.gameOver)) {
if (Key.isDown(40)) {
this.dir = "down";
_parent.move(this.dir);
} else if (Key.isDown(38)) {
this.dir = "up";
_parent.move(this.dir);
} else if (Key.isDown(39)) {
this.dir = "right";
_parent.move(this.dir);
} else if (Key.isDown(37)) {
this.dir = "left";
_parent.move(this.dir);
}
if (_parent.win()) {
if (_parent.level == 9) {
_parent.gameOver = true;
_parent.popMsg(3);
} else {
_parent.gameOver = true;
_parent.popMsg(2);
}
}
}
}
Instance of Symbol 179 MovieClip in Frame 3
onClipEvent (load) {
function timescroll() {
var _local1 = _root;
if ((_local1.ttime == 0) and (_local1.gameOver == false)) {
_local1.gameOver = true;
_local1.popMsg(4);
} else if ((_local1.ttime != 0) and (_local1.gameOver == false)) {
_local1.ttime = Number(_local1.ttime) - 1;
}
}
_root.ttime = 500;
_root.timerun = setInterval(timescroll, 1000);
}
Instance of Symbol 195 MovieClip in Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(_root.level);
}
Symbol 10 MovieClip [act] Frame 1
stop();
Instance of Symbol 4 MovieClip in Symbol 10 MovieClip [act] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 4 MovieClip in Symbol 10 MovieClip [act] Frame 2
onClipEvent (load) {
this._visible = false;
}
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 15
stop();
Symbol 37 MovieClip Frame 30
stop();
Symbol 40 Button
on (rollOver) {
tellTarget ("/msg/xuanzhuan") {
gotoAndPlay (2);
};
}
Symbol 46 Button
on (rollOver) {
tellTarget ("/msg/xuanzhuan") {
gotoAndPlay (7);
};
}
Symbol 49 Button
on (rollOver) {
tellTarget ("/msg/xuanzhuan") {
gotoAndPlay (12);
};
}
Symbol 51 Button
on (release) {
gotoAndPlay ("for");
}
Symbol 56 Button
on (rollOut) {
tellTarget ("/msg/xuanzhuan") {
gotoAndPlay (4);
};
}
on (release) {
_root.gotoAndPlay(2);
}
Symbol 63 Button
on (rollOut) {
tellTarget ("/msg/xuanzhuan") {
gotoAndPlay (9);
};
}
on (release) {
tellTarget ("/11") {
setProperty("/11", _visible , 0);
};
tellTarget ("/22") {
setProperty("/22", _visible , 1);
gotoAndPlay (7);
};
tellTarget ("/msg/yuan") {
gotoAndPlay (16);
};
tellTarget ("/33") {
setProperty("/33", _visible , 0);
};
}
Symbol 68 Button
on (rollOut) {
tellTarget ("/msg/xuanzhuan") {
gotoAndPlay (14);
};
}
on (release) {
tellTarget ("/11") {
setProperty("/11", _visible , 0);
gotoAndPlay (2);
};
tellTarget ("/33") {
setProperty("/33", _visible , 1);
gotoAndPlay (9);
};
tellTarget ("/msg/yuan") {
gotoAndPlay (2);
};
tellTarget ("/22") {
setProperty("/22", _visible , 0);
};
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 3
stop();
Symbol 69 MovieClip Frame 5
stop();
Symbol 69 MovieClip Frame 8
stop();
Symbol 69 MovieClip Frame 10
stop();
Symbol 69 MovieClip Frame 13
stop();
Symbol 69 MovieClip Frame 15
stop();
Symbol 74 Button
on (release) {
getURL ("http://www.hanfish.com", "_blank");
}
Symbol 79 Button
on (release) {
with (_root) {
if (level < 9) {
removeItem(level);
level++;
newGame(level);
ttime = 500;
}
gameOver = false;
}
this._parent._parent.removeMovieClip();
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
play();
Symbol 82 MovieClip Frame 10
stop();
stop();
Symbol 119 MovieClip Frame 9
Symbol 119 MovieClip Frame 20
gotoAndPlay (4);
Symbol 124 Button
on (release) {
with (_root) {
if (level < 9) {
removeItem(level);
newGame(level);
ttime = 500;
}
gameOver = false;
}
this._parent._parent._parent.removeMovieClip();
}
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
play();
Symbol 130 MovieClip Frame 10
stop();
stop();
Symbol 132 MovieClip [msg] Frame 1
stop();
Symbol 132 MovieClip [msg] Frame 2
slsl.slsl2.gotoAndPlay(2);
Symbol 132 MovieClip [msg] Frame 4
smsm.smsm2.gotoAndPlay(2);
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 5
stop();
Symbol 135 MovieClip Frame 14
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 3
stop();
Symbol 139 MovieClip Frame 8
stop();
Symbol 139 MovieClip Frame 13
stop();
Instance of Symbol 4 MovieClip in Symbol 144 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 2
stop();
Symbol 145 MovieClip Frame 6
stop();
Symbol 145 MovieClip Frame 12
stop();
Symbol 148 Button
on (rollOver) {
tellTarget ("/11") {
setProperty("/11", _visible , 1);
gotoAndPlay (6);
};
tellTarget ("/22") {
setProperty("/22", _visible , 0);
};
tellTarget ("/33") {
setProperty("/33", _visible , 0);
};
}
Symbol 154 Button
on (release) {
fscommand ("quit");
}
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 2
stop();
Symbol 195 MovieClip Frame 3
stop();
Symbol 195 MovieClip Frame 4
stop();
Symbol 195 MovieClip Frame 5
stop();
Symbol 195 MovieClip Frame 6
stop();
Symbol 195 MovieClip Frame 7
stop();
Symbol 195 MovieClip Frame 8
stop();
Symbol 195 MovieClip Frame 9
stop();
Symbol 195 MovieClip Frame 10
stop();
Symbol 203 Button
on (release) {
_root.actor.gotoAndStop(2);
}
Symbol 209 Button
on (release) {
_root.actor.gotoAndStop(1);
}
Symbol 216 Button
on (release) {
if (!gameOver) {
removeItem(level);
newGame(level);
}
}
Symbol 219 Button
on (release) {
stopAllSounds();
i = 0;
while (i <= 50) {
j = 0;
while (j <= 50) {
_root[(("title" + i) + "_") + j].removeMovieClip();
j++;
}
_root.msg.removeMovieClip();
_root.actor.removeMovieClip();
i++;
}
clearInterval(_root.timerun);
gotoAndStop (1);
}
Symbol 226 MovieClip Frame 8
stop();