Frame 1
onEnterFrame = function () {
var _local5 = _root.getBytesLoaded();
var _local4 = _root.getBytesTotal();
var _local3 = int((_local5 / _local4) * 100);
bar.gotoAndStop((_local3 / 100) * bar._totalframes);
if (_local3 == 100) {
delete this.onEnterFrame;
play();
}
};
Frame 3
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
play();
} else {
stop();
}
Frame 36
stop();
Frame 37
Frame 121
function sound_start(snd) {
var _local2 = this[snd];
this[snd + "_start"] = true;
_local2.onSoundComplete = function () {
this[snd + "_start"] = false;
trace("sound_start:" + this[snd + "_start"]);
};
trace("sound_start:" + this[snd + "_start"]);
_local2.start();
}
function addStage() {
sceneName = sceneArray[sceneID];
Obj_loader = this.attachMovie("scene_" + sceneName, "Obj_loader", 100);
Obj_loader.area._visible = false;
msg_mc.stageID_txt.text = sceneID + 1;
showHint_scene();
loadData();
}
function addRole(obj) {
var _local1;
if (Obj_loader.type == "ice") {
_local1 = "role_ice";
} else if (inBox) {
_local1 = "role_box";
} else if (inSuit) {
_local1 = "role_suit";
} else if (inKnife) {
_local1 = "role_knife";
} else {
_local1 = "role";
}
role = Obj_loader.attachMovie(_local1, "role", 150);
role.init(obj._x, obj._y);
}
function addObj() {
var _local1;
for (_local1 in obj_active) {
obj_active[_local1].init();
}
}
function addEnemy(type, x, y, moveType, dirX, dirY, dis, startPause) {
var _local1 = Obj_loader.getNextHighestDepth();
var _local2 = Obj_loader.attachMovie(type, "enemy_" + _local1, _local1);
_local2.init(x, y, moveType, dirX, dirY, dis, startPause);
}
function addEnemy2(type, x, y, moveType, dirX, dirY, dis) {
var _local1 = Obj_loader.getNextHighestDepth();
var _local2 = Obj_loader.attachMovie(type, "enemy_" + _local1, _local1);
_local2.init(x, y, moveType, dirX, dirY, dis, startPause);
}
function UI_pazzle(p_name) {
inPazzle = true;
var _local3 = _root.getNextHighestDepth();
puzzle = this.attachMovie(p_name, "puzzle" + _local3, _local3);
showHint_puzzle(p_name);
game_pause();
}
function end_pazzle() {
inPazzle = false;
game_pause_end();
msg_mc.msg_txt.text = "Wow I am so clever!";
trace("end_pazzle");
}
function getItem(obj) {
showItem(obj);
}
function end_getItem() {
inItem = false;
game_pause_end();
trace("end_getItem");
}
function useItem(obj) {
clearItem();
if (obj == "box") {
var _local4 = role.getDepth();
var _local2 = role._x;
var _local1 = role._y;
var _local6 = role.map_x;
var _local5 = role.map_y;
role = Obj_loader.attachMovie("role_box", "role", _local4);
role.replace(_local2, _local1, _local6, _local5);
inBox = true;
} else if (obj == "suit") {
var _local4 = role.getDepth();
var _local2 = role._x;
var _local1 = role._y;
var _local6 = role.map_x;
var _local5 = role.map_y;
role = Obj_loader.attachMovie("role_suit", "role", _local4);
role.replace(_local2, _local1, _local6, _local5);
inSuit = true;
} else if (obj == "knife") {
var _local4 = role.getDepth();
var _local2 = role._x;
var _local1 = role._y;
var _local6 = role.map_x;
var _local5 = role.map_y;
role = Obj_loader.attachMovie("role_knife", "role", _local4);
role.replace(_local2, _local1, _local6, _local5);
inKnife = true;
}
}
function stopUseItem(obj) {
itemArray[obj].inUse = false;
if (obj == "box") {
var _local3 = role.getDepth();
var _local2 = role._x;
var _local1 = role._y;
role = Obj_loader.attachMovie("role", "role", _local3);
role.init(_local2, _local1);
}
}
function clearItem() {
inSuit = false;
inBox = false;
inKnife = false;
}
function depthSort(obj) {
var _local2 = int((obj._y * 1000) - (obj._x * 7));
obj.swapDepths(_local2);
}
function getMapPos(obj) {
var _local4 = _root.Obj_loader.area;
var _local3 = (obj._y - _local4._y) * _root.tan_angle;
obj.map_x = obj._x - _local3;
obj.map_y = obj._y;
}
function moveY(V, obj) {
obj._y = obj._y + V;
var _local2 = (obj._y - Obj_loader.area._y) * tan_angle;
obj._x = obj.map_x + _local2;
}
function transPos(obj) {
var _local1 = (obj._y - Obj_loader.area._y) * tan_angle;
obj._x = obj.map_x + _local1;
}
function sceneStart() {
gamePause = false;
}
function nextScene() {
sceneID++;
if (sceneID >= sceneArray.length) {
game_clearDate();
gotoAndStop ("win");
return(undefined);
}
addStage();
trace("sceneID:" + sceneID);
}
function enterDoor() {
if (inGameOver) {
return(undefined);
}
this.attachMovie("screen_enter", "screen_enter", this.getNextHighestDepth());
gamePause = true;
scene_clearDate();
role.mc.stop();
game_save();
}
function toScence(pos) {
toPos = pos;
if (inGameOver) {
return(undefined);
}
this.attachMovie("screen_toPos", "screen_toPos", this.getNextHighestDepth());
gamePause = true;
scene_clearDate();
role.mc.stop();
}
function nextPos() {
Obj_loader = this.attachMovie("scene_" + toPos, "Obj_loader", 100);
trace("toPos:" + toPos);
}
function scene_clearDate() {
clearMsg();
now_item = "";
enemyArray = [];
obj_active = [];
stop_eventSound();
}
function showHint_obj(obj) {
var _local1 = objMsg[obj];
msg_mc.msg_txt.text = _local1;
}
function showHint_scene() {
var _local1 = sceneMsg[sceneName];
if (_local1 == undefined) {
return(undefined);
}
msg_mc.msg_txt.text = _local1;
trace("showHint_scene:" + _local1);
}
function showHint_puzzle(p_name) {
var _local1 = puzzleMsg[p_name];
if (_local1 == undefined) {
return(undefined);
}
msg_mc.msg_txt.text = _local1;
}
function showHint_random() {
if (msg_mc.msg_txt.text != "") {
return(undefined);
}
var _local2 = randomMsg.length;
var _local3 = int(Math.random() * _local2);
var _local1 = randomMsg[_local3];
msg_mc.msg_txt.text = _local1;
trace("showHint_random::::::::::::::::::::::" + _local1);
}
function clearMsg() {
msg_mc.msg_txt.text = "";
}
function showDiary(id) {
diary = attachMovie("screen_diary", "screen_diary", _root.getNextHighestDepth());
diary.gotoAndPlay(id);
diary.onMouseDown = function () {
this.play();
};
}
function showItem(obj) {
inItem = true;
if (now_item == obj) {
return(undefined);
}
now_item = obj;
screen_item = attachMovie("screen_item", "screen_item", _root.getNextHighestDepth());
item.onMouseDown = function () {
this.play();
};
game_pause();
}
function stop_eventSound() {
}
function game_save() {
var _local1 = save_date.data.save_sceneID;
if (sceneID < _local1) {
return(undefined);
}
if (sceneID >= (sceneArray.length - 1)) {
return(undefined);
}
save_sceneID = sceneID + 1;
save_date.data.save_sceneID = save_sceneID;
save_date.flush();
trace((("game_save:" + save_date.data.save_sceneID) + " ") + save_date);
}
function game_load() {
trace((("game_load:" + save_date.data.save_sceneID) + " ") + save_date);
if (save_date.data.save_sceneID == undefined) {
return(false);
}
save_sceneID = save_date.data.save_sceneID;
return(true);
}
function game_sceneSelect(id) {
sceneID = id;
if (sceneID == 0) {
_root.gotoAndStop("movie");
} else {
gotoAndPlay ("start");
}
}
function loadData() {
var _local1 = sceneArray[sceneID];
if ((_local1 == "ground3") || (sceneName == "ground4")) {
inBox = true;
} else if (_local1 == "room_number") {
inSuit = true;
} else if (sceneID >= 23) {
inKnife = true;
}
}
function game_toMainMenu() {
game_clearDate();
_root.gotoAndPlay("main");
}
function game_start() {
if (game_load()) {
_root.gotoAndStop("load");
} else {
_root.gotoAndStop("movie");
}
}
function game_pause() {
gamePause = true;
role.mc.stop();
}
function game_pause_end() {
gamePause = false;
role.mc.play();
trace("game_pause_end");
}
function game_over() {
this.attachMovie("screen_over", "screen_over", this.getNextHighestDepth());
inGameOver = true;
gamePause = true;
trace("game_over");
}
function game_continue() {
gotoAndPlay ("start");
}
function game_end() {
gotoAndPlay ("main");
}
function game_clearDate() {
inGameOver = flase;
gamePause = flase;
enemyArray = [];
obj_active = [];
clearMsg();
puzzle.removeMovieClip();
screen_item.removeMovieClip();
msg_mc.removeMovieClip();
stopAllSounds();
stop_eventSound();
now_item = "";
Obj_loader.removeMovieClip();
}
function game_retry() {
game_clearDate();
screen_over.removeMovieClip();
gotoAndPlay ("addStage");
}
function game_win() {
game_clearDate();
this.attachMovie("screen_win", "screen_win", this.getNextHighestDepth());
inGameWin = true;
gamePause = true;
trace("game_win");
}
function setSound() {
if (soundOn == false) {
snd_music.setVolume(30);
soundOn = true;
msg_mc.sound_mc.gotoAndStop(1);
} else if (soundOn) {
snd_music.setVolume(0);
soundOn = false;
msg_mc.sound_mc.gotoAndStop(2);
}
}
var key_up = 87;
var key_down = 83;
var key_left = 65;
var key_right = 68;
var key_space = 32;
var stage_w = 550;
var stage_h = 400;
var stage_cX = (stage_w / 2);
var stage_cY = (stage_h / 2);
var gamePause = false;
var inGameOver = false;
var obj_active = new Array();
var dirPoint = new Array();
var enemyArray = new Array();
var itemArray0 = new Object();
var itemArray = new Object();
var now_item;
var toPos = "";
var inBox = false;
var inSuit = false;
var inKnife = false;
var inPazzle = false;
var inItem = false;
var depth_msg = 200;
var depth_screenStart = 300;
var soundOn = true;
var snd_music = new Sound();
var now_bgSnd = 0;
var ball_snd = new Sound();
ball_snd.attachSound("rocks1.mp3");
ball_snd.setVolume(30);
var run_snd = new Sound();
run_snd.attachSound("running.wav");
run_snd.setVolume(30);
var water_snd = new Sound();
water_snd.attachSound("water sound.wav");
var bg1_snd = new Sound();
bg1_snd.attachSound("bg1.mp3");
var save_date = SharedObject.getLocal("pb");
var save_sceneID;
var sceneArray = new Array("room1", "box1", "aisle1", "room2_0", "room2_1", "room3_1", "room3_2", "aisle0", "pumbRoom", "ice", "ice2", "ice3", "aisle3", "ironBall", "underground0", "darkroom", "underground1", "underground2", "ground1", "ground1_2", "ground3", "ground4", "room_number", "aisle4", "room_floor", "ironBall2", "room_kill");
var sceneID = 0;
var sceneName;
var sceneMsg = new Object();
sceneMsg.room1 = "Use 'A' 'D' 'W' and 'S' keys to move. Remember you can move objects around by simply walking up to them and pushing them in the direction you want them to move.";
sceneMsg.aisle1 = "Avoid being seen by the guards -- you\u2019ll be ok if they are not looking at you directly.";
sceneMsg.pumbRoom = "Water torture?";
sceneMsg.room_floor = "Prime numbers?";
sceneMsg.ground1_2 = "Crud! 2 spot lights! How the heck can I get through this? (Remember to look around for helpful objects!)";
sceneMsg.ground3 = "Hiding in a box won\u2019t help you get through this -- make sure the soldiers don\u2019t see you move or see the box for that matter!";
sceneMsg.ground4 = "I\u2019ve got to get rid of this box -- it won\u2019t help me get passed those soldiers. Ah, the medical clinic, there might be something useful in there.";
sceneMsg.ironBall2 = "How the heck do I get passed that guard? Hmmm rocks...";
sceneMsg.room_kill = "Remember you can move any \u2018object\u2019.";
var puzzleMsg = new Object();
puzzleMsg.number = "Enter the number in the empty space and then click on the lever to check your answer.";
puzzleMsg.button = "Holy Carp! Not another puzzle... Damn Nazis'";
puzzleMsg.number2 = "The following numbers(1, 2, 3, 4, 5, 6) can only be used once per empty space so that each connected row adds up to 9.";
puzzleMsg.password = "This is starting to get annoying.";
puzzleMsg.pumb = "ah, this looks familiar. I need to move the water around so that one of these containers has only 4 litres of water. Click on a container tap with water, then on the one you want water to go in.";
var randomMsg = new Array();
randomMsg.push("What the hell?");
randomMsg.push("Shite, why can't life be easy?");
randomMsg.push("How the hell do I get through this?");
randomMsg.push("This is starting to get annoying.");
randomMsg.push("I want to go home!");
randomMsg.push("Ok, so this is getting ridiculous...");
var random_p = new Array();
randomMsg_p.push("Holy Carp! Not another puzzle... Damn Nazis'");
randomMsg_p.push("hmmm this is confusing.");
randomMsg_p.push("What deranged mind came up with this?");
randomMsg_p.push("This is starting to get annoying.");
randomMsg_p.push("Damn I think they beat the intelligence out of me.");
randomMsg_p.push("Think brain think!");
randomMsg_p.push("Ok, so this is getting ridiculous...");
var objMsg = new Object();
objMsg.hole = "There is a hole, but it's too small to get through!";
objMsg.box = "An empty box! hmmm might be a good idea to hide in it.";
objMsg.uniforms = "hmmmm, a cupboard with uniforms in it - this gives me an idea....";
objMsg.knife = "A knife! It can be used by pressing the spacebar when you are behind a guard.";
var angle1 = 0.523598775598299;
var tan_angle = Math.tan(angle1);
stop();
Frame 122
stop();
Frame 123
stop();
Frame 125
stop();
Frame 127
stopAllSounds();
Frame 131
addStage();
Frame 132
stop();
addObj();
bg1_snd.start(0, 100);
Frame 133
stop();
Symbol 5 MovieClip [q_mian] Frame 1
#initclip 19
Object.registerClass("q_mian", Bg);
#endinitclip
Symbol 7 MovieClip [q_qiang2] Frame 1
#initclip 14
Object.registerClass("q_qiang2", Bg);
#endinitclip
Symbol 10 MovieClip Frame 1
this._visible = false;
Symbol 12 MovieClip Frame 1
Symbol 15 MovieClip Frame 1
this._visible = false;
_root.addRole(this);
Symbol 17 MovieClip [obj_box2] Frame 1
#initclip 15
Object.registerClass("obj_box2", Obj);
#endinitclip
stop();
objName = "obj_box";
msg = "Wooden Box";
Symbol 19 MovieClip Frame 1
this._visible = false;
this._name = "area";
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 9
stop();
Symbol 25 MovieClip Frame 1
this._visible = false;
this._name = "area";
Symbol 27 MovieClip Frame 8
stop();
Symbol 28 MovieClip [obj_switch_stand] Frame 1
#initclip 16
Object.registerClass("obj_switch_stand", Switch);
#endinitclip
stop();
objName = "switch_stand";
Symbol 28 MovieClip [obj_switch_stand] Frame 2
stop();
Symbol 30 MovieClip Frame 1
stop();
_root.dirPoint.push(this);
this._visible = false;
Symbol 34 MovieClip Frame 1
this._visible = false;
Symbol 34 MovieClip Frame 3
_root.addEnemy(type, _x, _y, moveType, dirX, dirY, dis, startPause);
this.swapDepths(_parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 35 MovieClip [Obj_loader4] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 28 MovieClip [obj_switch_stand] in Symbol 35 MovieClip [Obj_loader4] Frame 1
//component parameters
onClipEvent (construct) {
eventObj = "";
}
Instance of Symbol 30 MovieClip "bb" in Symbol 35 MovieClip [Obj_loader4] Frame 1
//component parameters
onClipEvent (construct) {
id = 1;
up = true;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip "cc" in Symbol 35 MovieClip [Obj_loader4] Frame 1
//component parameters
onClipEvent (construct) {
id = 2;
up = false;
down = true;
right = true;
left = true;
}
Instance of Symbol 30 MovieClip "dd" in Symbol 35 MovieClip [Obj_loader4] Frame 1
//component parameters
onClipEvent (construct) {
id = 3;
up = false;
down = true;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip "ee" in Symbol 35 MovieClip [Obj_loader4] Frame 1
//component parameters
onClipEvent (construct) {
id = 4;
up = true;
down = false;
right = false;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 35 MovieClip [Obj_loader4] Frame 1
//component parameters
onClipEvent (construct) {
id = 5;
up = false;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 35 MovieClip [Obj_loader4] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = false;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 35 MovieClip [Obj_loader4] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "circle";
dirX = -1;
dirY = 0;
dis = 0;
startPause = 0;
}
Instance of Symbol 30 MovieClip in Symbol 35 MovieClip [Obj_loader4] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = false;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 35 MovieClip [Obj_loader4] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = true;
}
Symbol 37 MovieClip Frame 1
Symbol 38 MovieClip [Obj_loader3] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 28 MovieClip [obj_switch_stand] in Symbol 38 MovieClip [Obj_loader3] Frame 1
//component parameters
onClipEvent (construct) {
eventObj = "";
}
Instance of Symbol 30 MovieClip "bb" in Symbol 38 MovieClip [Obj_loader3] Frame 1
//component parameters
onClipEvent (construct) {
id = 1;
up = true;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip "cc" in Symbol 38 MovieClip [Obj_loader3] Frame 1
//component parameters
onClipEvent (construct) {
id = 2;
up = false;
down = true;
right = false;
left = true;
}
Instance of Symbol 30 MovieClip "dd" in Symbol 38 MovieClip [Obj_loader3] Frame 1
//component parameters
onClipEvent (construct) {
id = 3;
up = false;
down = true;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip "ee" in Symbol 38 MovieClip [Obj_loader3] Frame 1
//component parameters
onClipEvent (construct) {
id = 4;
up = true;
down = false;
right = false;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 38 MovieClip [Obj_loader3] Frame 1
//component parameters
onClipEvent (construct) {
id = 5;
up = false;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip "aa" in Symbol 38 MovieClip [Obj_loader3] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = false;
right = false;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 38 MovieClip [Obj_loader3] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "circle";
dirX = -1;
dirY = 0;
dis = 0;
startPause = 0;
}
Symbol 40 MovieClip Frame 1
Symbol 53 MovieClip Frame 1
stop();
this._visible = false;
Symbol 53 MovieClip Frame 2
this._visible = true;
Symbol 53 MovieClip Frame 19
gotoAndStop (1);
Symbol 53 MovieClip Frame 20
this._visible = true;
Symbol 53 MovieClip Frame 40
gotoAndStop (1);
Symbol 53 MovieClip Frame 41
this._visible = true;
Symbol 53 MovieClip Frame 71
gotoAndStop (1);
Symbol 75 MovieClip Frame 1
this._visible = false;
Symbol 75 MovieClip Frame 42
gotoAndPlay (2);
Symbol 112 MovieClip Frame 21
_parent.lookDir("d");
Symbol 112 MovieClip Frame 41
_parent.lookDir();
Symbol 112 MovieClip Frame 64
_parent.lookDir("u");
Symbol 112 MovieClip Frame 85
_parent.lookAround_end();
Symbol 116 MovieClip Frame 22
_parent.lookDir("r");
Symbol 116 MovieClip Frame 40
_parent.lookDir();
Symbol 116 MovieClip Frame 62
_parent.lookDir("l");
Symbol 116 MovieClip Frame 91
_parent.lookAround_end();
Symbol 118 MovieClip Frame 24
_parent.lookDir("l");
Symbol 118 MovieClip Frame 46
_parent.lookDir();
Symbol 118 MovieClip Frame 68
_parent.lookDir("r");
Symbol 118 MovieClip Frame 95
_parent.lookAround_end();
Symbol 120 MovieClip Frame 1
this._visible = false;
this._name = "body";
Symbol 122 MovieClip Frame 5
stop();
Symbol 124 MovieClip Frame 5
stop();
Symbol 125 MovieClip [enemy1] Frame 1
#initclip 17
Object.registerClass("enemy1", Enemy);
#endinitclip
stop();
Symbol 125 MovieClip [enemy1] Frame 2
stop();
Symbol 125 MovieClip [enemy1] Frame 9
stop();
Symbol 125 MovieClip [enemy1] Frame 15
stop();
Symbol 125 MovieClip [enemy1] Frame 16
stop();
Symbol 125 MovieClip [enemy1] Frame 23
stop();
Symbol 125 MovieClip [enemy1] Frame 29
stop();
Symbol 125 MovieClip [enemy1] Frame 30
stop();
Symbol 125 MovieClip [enemy1] Frame 37
stop();
Symbol 125 MovieClip [enemy1] Frame 43
stop();
Symbol 125 MovieClip [enemy1] Frame 44
stop();
Symbol 125 MovieClip [enemy1] Frame 51
stop();
Symbol 125 MovieClip [enemy1] Frame 57
stop();
Symbol 125 MovieClip [enemy1] Frame 63
stop();
Symbol 125 MovieClip [enemy1] Frame 69
stop();
Symbol 125 MovieClip [enemy1] Frame 76
stop();
Symbol 125 MovieClip [enemy1] Frame 83
stop();
Symbol 125 MovieClip [enemy1] Frame 89
stop();
Symbol 125 MovieClip [enemy1] Frame 95
stop();
Symbol 125 MovieClip [enemy1] Frame 101
stop();
Symbol 128 MovieClip [obj_box_shape] Frame 1
this._visible = false;
Symbol 129 MovieClip [obj_box] Frame 1
#initclip 18
Object.registerClass("obj_box", Obj);
#endinitclip
stop();
objName = "obj_box";
can_push = true;
msg = "Wooden Box";
Symbol 130 MovieClip [Obj_loader2_2] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 28 MovieClip [obj_switch_stand] in Symbol 130 MovieClip [Obj_loader2_2] Frame 1
//component parameters
onClipEvent (construct) {
eventObj = "";
}
Instance of Symbol 125 MovieClip [enemy1] in Symbol 130 MovieClip [Obj_loader2_2] Frame 1
//component parameters
onClipEvent (construct) {
moveType = "random";
dirX = -1;
dirY = 0;
}
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 100
stop();
Symbol 1655 MovieClip [__Packages.Bg] Frame 0
class Bg extends MovieClip
{
var cacheAsBitmap, objName, shape, _y, _x;
function Bg () {
super();
cacheAsBitmap = true;
_root.depthSort(this);
_root.obj_active.push(this);
}
function init() {
if (objName == undefined) {
return(undefined);
}
var _local3 = _root.Obj_loader.area;
var _local4 = _local3.getNextHighestDepth();
shape = _local3.attachMovie(objName + "_shape", objName + _local4, _local4);
var _local5 = (_y - _local3._y) * _root.tan_angle;
shape._x = (_x - _local3._x) - _local5;
shape._y = _y - _local3._y;
}
}
Symbol 1656 MovieClip [__Packages.Obj] Frame 0
class Obj extends MovieClip
{
var cacheAsBitmap, V, Vx, Vy, can_block, can_push, can_pull, shape, objName, _y, map_x, _x, map_y, _parent, globalX, globalY, msg, dirX, dirY;
function Obj () {
super();
cacheAsBitmap = true;
V = 2;
Vx = 2;
Vy = 1.5;
_root.obj_active.push(this);
can_block = true;
can_push = false;
can_pull = false;
_root.depthSort(this);
}
function init() {
var _local3 = _root.Obj_loader.area;
var _local5 = _local3.getNextHighestDepth();
shape = _local3.attachMovie(objName + "_shape", objName + _local5, _local5);
var _local4 = (_y - _local3._y) * _root.tan_angle;
map_x = _x - _local4;
map_y = _y;
shape._x = (_x - _local3._x) - _local4;
shape._y = _y - _local3._y;
}
function getPos() {
var _local2 = new Object();
_local2.x = _x;
_local2.y = _y;
_parent.localToGlobal(_local2);
globalX = _local2.x;
globalY = _local2.y;
}
function btnRollOver() {
if (msg != undefined) {
_root.showMsg(msg);
}
}
function btnRollOut() {
_root.clearMsg();
}
function btnPress() {
}
function btnRelease() {
}
function doTouch() {
if (startMove() == false) {
return(false);
}
}
function startEvent() {
}
function startMove() {
dirX = _root.role.dirX;
dirY = _root.role.dirY;
if (checkBlock(dirX, dirY, Vx, Vy)) {
return(false);
}
if ((dirX != 0) && (dirY == 0)) {
var _local3 = dirX * Vx;
_x = _x + _local3;
map_x = map_x + _local3;
shape._x = shape._x + _local3;
_root.role.moveX(Vx);
}
if ((dirY != 0) && (dirX == 0)) {
var _local4 = dirY * Vy;
_root.moveY(_local4, this);
_root.role.moveY(Vy);
_root.depthSort(this);
shape._y = _y - _root.Obj_loader.area._y;
}
}
function checkBlock(dirX, dirY, vx, vy) {
getPos();
var _local7 = _root.Obj_loader.area;
var _local5 = map_x + _root.Obj_loader._x;
var _local4 = globalY;
var _local3 = shape.getBounds(_root);
if (dirX == 1) {
_local5 = _local3.xMax + vx;
} else if (dirX == -1) {
_local5 = _local3.xMin - vx;
} else if (dirY == 1) {
_local4 = _local3.yMax + vy;
} else if (dirY == -1) {
_local4 = _local3.yMin - vy;
}
var _local6 = 5;
if (_local7.hitTest(_local5, _local4, true)) {
var _local10 = checkBlock_obj(_local5, _local4);
if (_local10 == "block") {
return(true);
}
return(true);
}
if (_local7.hitTest(_local3.xMax - _local6, _local4, true) && (dirY != 0)) {
var _local10 = checkBlock_obj(_local3.xMax - _local6, _local4);
if (_local10 == "block") {
return(true);
}
return(true);
}
if (_local7.hitTest(_local3.xMin + _local6, _local4, true) && (dirY != 0)) {
var _local10 = checkBlock_obj(_local3.xMin + _local6, _local4);
if (_local10 == "block") {
return(true);
}
return(true);
}
if (_local7.hitTest(_local5, _local3.yMin + _local6, true) && (dirX != 0)) {
var _local10 = checkBlock_obj(_local5, _local3.yMin + _local6);
if (_local10 == "block") {
return(true);
}
return(true);
}
if (_local7.hitTest(_local5, _local3.yMax - _local6, true) && (dirX != 0)) {
var _local10 = checkBlock_obj(_local5, _local3.yMax - _local6);
if (_local10 == "block") {
return(true);
}
return(true);
}
}
function checkBlock_obj(posx, posy) {
if (_root.obj_active != []) {
for (var _local6 in _root.obj_active) {
var _local3 = _root.obj_active[_local6];
if (_local3 == this) {
return(undefined);
}
if (_local3.shape.hitTest(posx, posy, true)) {
if (_local3.can_block) {
return("block");
}
}
}
}
}
}
Symbol 1657 MovieClip [__Packages.Switch] Frame 0
class Switch extends MovieClip
{
var eventStarted, _y, onEnterFrame, gotoAndStop, eventObj, _parent;
function Switch () {
super();
_root.obj_active.push(this);
eventStarted = false;
}
function init() {
checkTouch();
}
function checkTouch() {
var _local3 = _root.Obj_loader.area;
var dx = ((_y - _local3._y) * _root.tan_angle);
onEnterFrame = function () {
if (_root.role.area.hitTest(this.area)) {
this.eventStart();
} else if (_root.Obj_loader.area.hitTest((this._x - dx) + _root.Obj_loader._x, this._y + _root.Obj_loader._y, true)) {
this.eventStart();
} else {
this.eventEnd();
}
};
}
function eventStart() {
if (eventStarted) {
return(undefined);
}
eventStarted = true;
gotoAndStop(2);
_parent[eventObj].eventStart();
trace("eventStart");
}
function eventEnd() {
if (eventStarted == false) {
return(undefined);
}
eventStarted = false;
gotoAndStop(1);
_parent[eventObj].eventEnd();
trace("eventEnd");
}
}
Symbol 1658 MovieClip [__Packages.Enemy] Frame 0
class Enemy extends MovieClip
{
var V, Vx1, Vy1, Vx2, Vy2, V_2, scale, d_angle, dirArray, dirPointActive, followRate, movePause, inDeath, inCatch, inFollow, inLookAround, shape, dirY, dirX, timer1, inDiscover, _parent, onEnterFrame, gotoAndStop, map_x, map_y, pauseTimer, Vx, Vy, inWalk, _x, _y, offsetX, offsetY, globalY, dirX_role, dirY_role, moveType, moveDis, startPause, status_1, globalX, emotion_mc;
function Enemy () {
super();
V = 2;
Vx1 = 2;
Vy1 = 1.5;
Vx2 = 4;
Vy2 = 3;
V_2 = 3.5;
scale = 100;
d_angle = 57.2957795130823;
_root.enemyArray.push(this);
dirArray = new Array();
dirPointActive = new Array();
followRate = 1;
if (movePause == undefined) {
movePause = 1000;
}
}
function discover() {
if (inDeath) {
return(undefined);
}
if (_root.gamePause) {
return(undefined);
}
if (inCatch) {
return(undefined);
}
if (checkView() == false) {
return(undefined);
}
if (inFollow != true) {
toEmotion("e2");
if (inLookAround) {
inLookAround = false;
if (shape.dir == "u") {
dirY = -1;
dirX = 0;
} else if (shape.dir == "d") {
dirY = 1;
dirX = 0;
} else if (shape.dir == "l") {
dirY = 0;
dirX = -1;
} else if (shape.dir == "r") {
dirY = 0;
dirX = 1;
}
} else {
toStand();
}
clearInterval(timer1);
timer1 = setInterval(this, "follow", 1000);
inFollow = true;
alert();
} else {
checkCatch();
}
_root.inSight = true;
}
function discover_end() {
_root.inSight = false;
inDiscover = false;
}
function checkView() {
var _local11 = _root.role.shape._x - shape._x;
var _local14 = _root.role.shape._y - shape._y;
var _local10 = Math.atan(_local14 / _local11);
var _local12 = _local10 * d_angle;
var _local9;
if (_local11 < 0) {
_local9 = -1;
_local12 = _local12 + 180;
} else if (_local11 > 0) {
_local9 = 1;
}
shape.v._rotation = _local12;
var _local4 = shape._x + _parent._x;
var _local3 = shape._y + _parent._y;
var _local13 = 1;
var _local7 = (_local13 * Math.cos(_local10 * _local9)) * _local9;
var _local6 = _local13 * Math.sin(_local10 * _local9);
var _local5 = _root.Obj_loader.area;
var _local8 = _root.role.shape;
do {
_local4 = _local4 + _local7;
_local3 = _local3 + _local6;
if (_local5.hitTest(_local4, _local3, true)) {
discover_end();
return(false);
}
} while (!_local8.hitTest(_local4, _local3, true));
}
function lookAround() {
inLookAround = true;
inFollow = false;
delete onEnterFrame;
if (dirX == 1) {
(gotoAndStop("look_r"));// not popped
shape.gotoAndStop("r");
} else if (dirX == -1) {
(gotoAndStop("look_l"));// not popped
shape.gotoAndStop("l");
} else if (dirY == -1) {
(gotoAndStop("look_u"));// not popped
shape.gotoAndStop("u");
} else if (dirY == 1) {
(gotoAndStop("look_d"));// not popped
shape.gotoAndStop("d");
}
toEmotion("e2");
shape.view.gotoAndStop("s1");
}
function lookDir(dir) {
if (dir == undefined) {
dir = getlookDir();
}
shape.gotoAndStop(dir);
shape.dir = dir;
}
function getlookDir() {
var _local2;
if (dirX == 1) {
_local2 = "r";
} else if (dirX == -1) {
_local2 = "l";
} else if (dirY == 1) {
_local2 = "d";
} else if (dirY == -1) {
_local2 = "u";
}
return(_local2);
}
function lookAround_end() {
trace("lookAround_end");
inLookAround = false;
var _local3 = Math.random();
if (_local3 > followRate) {
getPoint(map_x + _root.Obj_loader._x, map_y + _root.Obj_loader._y);
} else {
_local3 = Math.random();
if (_local3 < 0.5) {
changeDir_line();
} else {
checkMove();
}
}
shape.view.gotoAndStop("s1");
}
function follow() {
trace("follow=========");
clearInterval(timer1);
if (inCatch) {
return(undefined);
}
checkCatch();
shape.view.gotoAndStop("s2");
toEmotion("e1");
checkMove();
}
function follow_end() {
}
function checkMove() {
clearInterval(pauseTimer);
if (inFollow) {
Vx = Vx2;
Vy = Vy2;
} else {
Vx = Vx1;
Vy = Vy1;
}
if (dirX == 1) {
moveRight();
} else if (dirX == -1) {
moveLeft();
} else if (dirY == -1) {
moveUp();
} else if (dirY == 1) {
moveDown();
}
active_dirPoint();
}
function moveBack() {
}
function active_dirPoint() {
if (_root.dirPoint == []) {
return(undefined);
}
dirPointActive = [];
var _local5;
var _local4 = 50;
for (_local5 in _root.dirPoint) {
var _local3 = _root.dirPoint[_local5];
if (dirX == 1) {
if ((Math.abs(map_y - _local3._y) < _local4) && ((_local3._x - map_x) > _local4)) {
dirPointActive.push(_local3);
}
} else if (dirX == -1) {
if ((Math.abs(map_y - _local3._y) < _local4) && ((_local3._x - map_x) < (-_local4))) {
dirPointActive.push(_local3);
}
} else if (dirY == -1) {
if ((Math.abs(map_x - _local3._x) < _local4) && ((_local3._y - map_y) < (-_local4))) {
dirPointActive.push(_local3);
}
} else if (dirY == 1) {
if ((Math.abs(map_x - _local3._x) < _local4) && ((_local3._y - map_y) > _local4)) {
dirPointActive.push(_local3);
}
}
}
}
function moveRight() {
inWalk = true;
if (inFollow) {
(gotoAndStop("run_r"));// not popped
} else {
(gotoAndStop("move_r"));// not popped
}
shape.gotoAndStop("r");
dirX = 1;
dirY = 0;
start_moveX();
trace("move:" + inFollow);
}
function moveLeft() {
inWalk = true;
if (inFollow) {
(gotoAndStop("run_l"));// not popped
} else {
(gotoAndStop("move_l"));// not popped
}
shape.gotoAndStop("l");
dirX = -1;
dirY = 0;
start_moveX();
trace("move:" + inFollow);
}
function moveUp() {
inWalk = true;
if (inFollow) {
(gotoAndStop("run_u"));// not popped
} else {
(gotoAndStop("move_u"));// not popped
}
shape.gotoAndStop("u");
dirX = 0;
dirY = -1;
start_moveY();
trace("move:" + inFollow);
}
function moveDown() {
inWalk = true;
if (inFollow) {
(gotoAndStop("run_d"));// not popped
} else {
(gotoAndStop("move_d"));// not popped
}
shape.gotoAndStop("d");
dirX = 0;
dirY = 1;
start_moveY();
trace("move:" + inFollow);
}
function start_moveX() {
onEnterFrame = function () {
if (this.checkBlock(this.dirX, this.dirY)) {
this.changeDir();
return(undefined);
}
this.moveX(this.dirX * this.Vx);
};
}
function start_moveY() {
onEnterFrame = function () {
if (this.checkBlock(this.dirX, this.dirY)) {
this.changeDir();
return(undefined);
}
this.moveY(this.dirY * this.Vy);
};
}
function moveX(V) {
_x = _x + V;
map_x = map_x + V;
shape._x = map_x;
}
function moveY(V) {
_root.moveY(V, this);
map_y = _y;
shape._y = _y;
_root.depthSort(this);
}
function checkBlock(dirX, dirY) {
getPos();
var _local5 = _root.Obj_loader.area;
var _local4 = (map_x + _root.Obj_loader._x) + (offsetX * dirX);
var _local3 = globalY + (offsetY * dirY);
if (_local5.hitTest(_local4, _local3, true)) {
return(true);
}
checkPoint(_local4, _local3);
}
function checkPoint(posx, posy) {
if (dirPointActive == []) {
return(undefined);
}
var _local3;
for (_local3 in dirPointActive) {
var _local2 = dirPointActive[_local3];
if (_local2.hitTest(posx, posy, true)) {
if ((Math.abs(map_x - _local2._x) < 10) && (dirX != 0)) {
if (inFollow) {
changeDir_point(_local2);
} else {
toStand();
clearInterval(pauseTimer);
pauseTimer = setInterval(this, "changeDir_point", movePause, _local2);
}
} else if ((Math.abs(map_y - _local2._y) < 10) && (dirY != 0)) {
if (inFollow) {
changeDir_point(_local2);
} else {
toStand();
clearInterval(pauseTimer);
pauseTimer = setInterval(this, "changeDir_point", movePause, _local2);
trace("movePause:" + movePause);
}
}
}
}
}
function getPoint(posx, posy) {
if (dirPointActive == []) {
return(undefined);
}
var _local3;
for (_local3 in dirPointActive) {
var _local2 = dirPointActive[_local3];
if (_local2.hitTest(posx, posy, true)) {
changeDir_point(_local2);
}
}
}
function changeDir() {
dirArray = [];
if (inFollow) {
getRoleDir();
dirX = dirX_role;
dirY = dirY_role;
if (checkBlock(dirX, dirY) != true) {
checkMove();
trace((("changeDir:" + dirX) + " ") + dirY);
return(undefined);
}
}
if (dirX != 0) {
if (checkBlock(-dirX, 0) != true) {
dirArray.push([-dirX, 0]);
}
if (checkBlock(0, 1) != true) {
dirArray.push([0, 1]);
}
if (checkBlock(0, -1) != true) {
dirArray.push([0, -1]);
}
} else if (dirY != 0) {
if (checkBlock(0, -dirY) != true) {
dirArray.push([0, -dirY]);
}
if (checkBlock(1, 0) != true) {
dirArray.push([1, 0]);
}
if (checkBlock(-1, 0) != true) {
dirArray.push([-1, 0]);
}
}
var _local3 = dirArray.length;
var _local4 = int(Math.random() * _local3);
var _local2 = dirArray[_local4];
dirX = _local2[0];
dirY = _local2[1];
checkMove();
}
function changeDir_line() {
trace((("changeDir_line1111:" + dirX) + " ") + dirY);
dirX = -dirX;
dirY = -dirY;
checkMove();
trace((("changeDir_line2222:" + dirX) + " ") + dirY);
}
function changeDir_circle(obj) {
dirArray = [];
if (obj.up && (dirY != 1)) {
dirArray.push([0, -1]);
}
if (obj.down && (dirY != -1)) {
dirArray.push([0, 1]);
}
if (obj.left && (dirX != 1)) {
dirArray.push([-1, 0]);
}
if (obj.right && (dirX != -1)) {
dirArray.push([1, 0]);
}
if (dirArray.length == 0) {
changeDir_line();
return(undefined);
}
if (dirArray.length == 2) {
if (obj.up && (obj.down)) {
} else if (obj.left && (obj.right)) {
} else {
if (dirX != 0) {
dirY = dir[1];
dirX = 0;
checkMove();
return(undefined);
}
if (dirY != 0) {
dirX = dir[0];
dirY = 0;
checkMove();
return(undefined);
}
}
}
var _local3 = dirArray.length;
var _local4 = int(Math.random() * _local3);
var dir = dirArray[_local4];
if (dir == undefined) {
return(undefined);
}
dirX = dir[0];
dirY = dir[1];
checkMove();
}
function changeDir_follow(obj) {
getRoleDir();
dirArray = [];
if ((obj.up && (dirY_role == -1)) && (dirY != 1)) {
dirArray.push([0, -1]);
}
if ((obj.down && (dirY_role == 1)) && (dirY != -1)) {
dirArray.push([0, 1]);
}
if ((obj.left && (dirX_role == -1)) && (dirX != 1)) {
dirArray.push([-1, 0]);
}
if ((obj.right && (dirX_role == 1)) && (dirX != -1)) {
dirArray.push([1, 0]);
}
if (dirArray.length == 0) {
trace("\u8DDF\u4E22--\u5DE1\u89C6");
lookAround();
return(undefined);
}
var _local4 = dirArray.length;
var _local5 = int(Math.random() * _local4);
var _local2 = dirArray[_local5];
if (_local2 == undefined) {
return(undefined);
}
dirX = _local2[0];
dirY = _local2[1];
trace((("changeDir_follow:" + dirArray) + "=====") + _local2);
if (checkView() != false) {
trace("\u7EE7\u7EED\u8FFD\u8E2A");
checkMove();
} else if (dirArray.length == 1) {
checkMove();
} else {
trace("\u5BFB\u89C6");
lookAround();
}
}
function changeDir_point(obj) {
trace("changeDir_point:" + moveType);
clearInterval(pauseTimer);
if (inFollow) {
changeDir_follow(obj);
return(undefined);
}
if (moveType == "line") {
changeDir_line();
return(undefined);
}
if (moveType == "circle") {
changeDir_circle(obj);
return(undefined);
}
dirArray = [];
if (obj.up) {
dirArray.push([0, -1]);
}
if (obj.down) {
dirArray.push([0, 1]);
}
if (obj.left) {
dirArray.push([-1, 0]);
}
if (obj.right) {
dirArray.push([1, 0]);
}
var _local4 = dirArray.length;
var _local5 = int(Math.random() * _local4);
var _local3 = dirArray[_local5];
if (_local3 == undefined) {
return(undefined);
}
dirX = _local3[0];
dirY = _local3[1];
checkMove();
}
function init(x, y, _moveType, _dirX, _dirY, dis, sp) {
_x = x;
_y = y;
moveType = _moveType;
dirX = _dirX;
dirY = _dirY;
moveDis = dis;
startPause = sp;
map_x = x;
map_y = y;
_root.transPos(this);
_root.depthSort(this);
var _local3 = _parent.getNextHighestDepth();
shape = _parent.attachMovie("enemy_shape", "shape_" + _local3, _local3);
shape._x = map_x;
shape._y = map_y;
shape.enemy = this;
offsetX = shape._width / 2;
offsetY = shape._height / 2;
if (moveType == "stand") {
toStand();
} else if ((startPause == 0) || (startPause == undefined)) {
checkMove();
} else {
toStand();
clearInterval(pauseTimer);
pauseTimer = setInterval(this, "checkMove", startPause);
}
}
function enemyStart() {
}
function killed() {
delete onEnterFrame;
clearInterval(pauseTimer);
var _local2;
if ((dirX == 1) || (status_1 == "face_r")) {
_local2 = "die_l";
} else if ((dirX == -1) || (status_1 == "face_l")) {
_local2 = "die_l";
} else if ((dirY = -1 || (status_1 == "face_u"))) {
_local2 = "die_u";
} else if ((dirY == 1) || (status_1 == "face_d")) {
_local2 = "die_u";
}
status_1 = _local2;
gotoAndStop(_local2);
shape.gotoAndStop(1);
delete shape.onEnterFrame;
inDeath = true;
}
function getPos() {
var _local2 = new Object();
_local2.x = _x;
_local2.y = _y;
_parent.localToGlobal(_local2);
globalX = _local2.x;
globalY = _local2.y;
}
function toEmotion(e) {
if (_root.inGameOver) {
return(undefined);
}
emotion_mc.gotoAndPlay(e);
}
function toStand() {
delete onEnterFrame;
var _local2;
if (dirX == 1) {
_local2 = "r";
} else if (dirX == -1) {
_local2 = "l";
} else if (dirY == -1) {
_local2 = "u";
} else if (dirY == 1) {
_local2 = "d";
}
status_1 = "face_" + _local2;
(gotoAndStop(status_1));// not popped
shape.gotoAndStop(_local2);
}
function getRoleDir() {
var _local3 = 50;
dirX_role = 0;
dirY_role = 0;
if ((_root.role.map_x - map_x) > _local3) {
dirX_role = 1;
} else if ((_root.role.map_x - map_x) < (-_local3)) {
dirX_role = -1;
}
if ((_root.role.map_y - map_y) > _local3) {
dirY_role = 1;
} else if ((_root.role.map_y - map_y) < (-_local3)) {
dirY_role = -1;
}
}
function getRoleDis() {
var _local4 = _root.role.map_x - map_x;
var _local3 = _root.role.map_y - map_y;
var _local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
return(_local5);
}
function checkRoleDis() {
var _local4 = Math.abs(_root.role.map_x - map_x);
var _local3 = Math.abs(_root.role.map_y - map_y);
if ((_local4 < 80) && (_local3 < 20)) {
return(true);
}
if ((_local3 < 80) && (_local4 < 20)) {
return(true);
}
}
function checkCatch() {
if (_root.inGameOver) {
toStand();
return(undefined);
}
if (getRoleDis() < 70) {
inCatch = true;
_root.role.catched();
toEmotion("handsup");
_root.game_over();
toStand();
return(true);
}
if (checkRoleDis()) {
inCatch = true;
_root.role.catched();
toEmotion("handsup");
_root.game_over();
toStand();
return(true);
}
}
function alert() {
trace("alert==============:" + _root.enemyArray);
var _local3 = 0;
while (_local3 < _root.enemyArray.length) {
var _local4 = _root.enemyArray[_local3];
trace((("alert::::::::::::" + _local4) + " ") + _local3);
if (_local4 != this) {
_local4.get_alert();
}
_local3++;
}
}
function get_alert() {
inFollow = true;
toStand();
clearInterval(timer1);
timer1 = setInterval(this, "alert_search", 1000);
trace("get_alert:" + this);
}
function alert_search() {
getRoleDir();
dirX = dirX_role;
dirY = dirY_role;
trace((("dirX:" + dirX) + " dirY:") + dirY);
follow();
}
}
Symbol 1659 MovieClip [__Packages.Switch_once] Frame 0
class Switch_once extends Switch
{
var onEnterFrame;
function Switch_once () {
super();
}
function checkTouch() {
onEnterFrame = function () {
trace("checkTouch");
if (_root.role.area.hitTest(this.area)) {
this.eventStart();
trace("eventStart");
}
};
}
}
Symbol 1660 MovieClip [__Packages.Obj_ball] Frame 0
class Obj_ball extends Obj
{
var Vx, Vy, _currentframe, dirX, dirY, checkBlock, gotoAndPlay, mc, onEnterFrame, targetObj, _parent, hitTest;
function Obj_ball () {
super();
Vx = 1;
Vy = 1;
}
function doTouch() {
if (_currentframe > 1) {
return(undefined);
}
dirX = _root.role.dirX;
dirY = _root.role.dirY;
if (checkBlock(dirX, dirY, 5, 4) == false) {
return(false);
}
gotoAndPlay("move");
}
function startMove() {
if (dirX == 1) {
mc.gotoAndStop("r");
} else if (dirX == -1) {
mc.gotoAndStop("l");
} else if (dirY == -1) {
mc.gotoAndStop("u");
} else if (dirY == 1) {
mc.gotoAndStop("d");
}
onEnterFrame = function () {
this.Vx = this.Vx + 0.25;
this.Vy = this.Vy + 0.2;
if (this.Vx > 10) {
this.Vx = 10;
}
if (this.Vy > 8) {
this.Vy = 8;
}
var _local3 = this.dirX * this.Vx;
var _local4 = this.dirY * this.Vy;
if (this.checkBlock(this.dirX, this.dirY, 1, 1)) {
delete this.onEnterFrame;
this.adjust();
this.checkHit();
this.mc.gotoAndStop(1);
return(false);
}
if ((this.dirX != 0) && (this.dirY == 0)) {
this._x = this._x + _local3;
this.map_x = this.map_x + _local3;
this.shape._x = this.shape._x + _local3;
}
if ((this.dirY != 0) && (this.dirX == 0)) {
_root.moveY(_local4, this);
_root.depthSort(this);
this.shape._y = this._y - _root.Obj_loader.area._y;
}
};
}
function adjust() {
Vx = 1;
Vy = 1;
onEnterFrame = function () {
if (this.checkBlock(this.dirX, this.dirY, 1, 1)) {
if ((this.dirX != 0) && (this.dirY == 0)) {
this._x = this._x - (1 * this.dirX);
this.map_x = this.map_x - (1 * this.dirX);
this.shape._x = this.shape._x - (1 * this.dirX);
}
if ((this.dirY != 0) && (this.dirX == 0)) {
_root.moveY(-1 * this.dirY, this);
_root.depthSort(this);
this.shape._y = this._y - _root.Obj_loader.area._y;
}
} else {
delete this.onEnterFrame;
this.dirX = 0;
this.dirY = 0;
}
};
}
function checkHit() {
var _local2 = _parent[targetObj];
if (hitTest(_local2)) {
_local2.startEvent();
}
}
}
Symbol 1661 MovieClip [__Packages.Switch_stand_enemy] Frame 0
class Switch_stand_enemy extends Switch
{
var _y, onEnterFrame;
function Switch_stand_enemy () {
super();
}
function checkTouch() {
var _local5 = _root.Obj_loader.area;
var _local6 = (_y - _local5._y) * _root.tan_angle;
onEnterFrame = function () {
if (_root.role.area.hitTest(this.area)) {
this.eventStart();
} else {
for (var _local4 in _root.enemyArray) {
var _local3 = _root.enemyArray[_local4];
if (_local3.area.hitTest(this.area)) {
this.eventStart();
return(undefined);
}
}
this.eventEnd();
}
};
}
}
Symbol 1662 MovieClip [__Packages.Role] Frame 0
class Role extends MovieClip
{
var V, Vx, Vy, V_2, V_side, V_sideY, scale, map_x, map_y, _x, _y, _parent, shape, offsetX, offsetY, onEnterFrame, inWalk, dirX, dirY, inCling, inPush, status_1, gotoAndStop, globalX, globalY, dragObj, objDrag, getDepth, swapDepths, inKill, dir_face, dir_cling, inCatch;
function Role () {
super();
V = 5;
Vx = 5;
Vy = 4;
V_2 = 3.5;
V_side = 2;
V_sideY = 1.5;
scale = 100;
}
function init(x, y) {
map_x = x;
map_y = y;
_x = map_x;
_y = map_y;
_root.transPos(this);
var _local3 = _parent.getNextHighestDepth();
shape = _parent.attachMovie("role_shape", "role_shape", _local3);
shape._x = map_x;
shape._y = map_y;
offsetX = shape._width / 2;
offsetY = shape._height / 2;
_root.depthSort(this);
control();
}
function control() {
onEnterFrame = function () {
if (_root.gamePause) {
return(undefined);
}
if (this.inCatch) {
return(undefined);
}
if (this.inKill) {
return(undefined);
}
this.checkMove();
};
}
function checkMove() {
if (Key.isDown(_root.key_up) && (Key.isDown(_root.key_down))) {
} else if (Key.isDown(_root.key_left) && (Key.isDown(_root.key_right))) {
} else if (Key.isDown(_root.key_up) && (Key.isDown(_root.key_left))) {
moveUL();
} else if (Key.isDown(_root.key_up) && (Key.isDown(_root.key_right))) {
moveUR();
} else if (Key.isDown(_root.key_down) && (Key.isDown(_root.key_left))) {
moveDL();
} else if (Key.isDown(_root.key_down) && (Key.isDown(_root.key_right))) {
moveDR();
} else if (Key.isDown(_root.key_up)) {
moveUp();
} else if (Key.isDown(_root.key_down)) {
moveDown();
} else if (Key.isDown(_root.key_left)) {
moveLeft();
} else if (Key.isDown(_root.key_right)) {
moveRight();
} else {
stop_move();
}
if (Key.isDown(_root.key_space)) {
doKill();
}
}
function stop_move() {
inWalk = false;
dirX = 0;
dirY = 0;
if (inCling) {
stop_cling();
return(undefined);
}
if (inPush) {
stop_push();
return(undefined);
}
var _local2;
if (status_1 == "move_r") {
_local2 = "face_r";
} else if (status_1 == "move_l") {
_local2 = "face_l";
} else if (status_1 == "move_u") {
_local2 = "face_u";
} else if (status_1 == "move_d") {
_local2 = "face_d";
}
(gotoAndStop(_local2));// not popped
status_1 = _local2;
}
function getPos() {
var _local2 = new Object();
_local2.x = _x;
_local2.y = _y;
_parent.localToGlobal(_local2);
globalX = _local2.x;
globalY = _local2.y;
}
function moveObj(obj, flag) {
dragObj = flag;
objDrag = obj;
}
function moveX(_v) {
var _local3;
if (dirX == 0) {
_local3 = _v;
} else if (_v != undefined) {
_local3 = dirX * _v;
} else {
_local3 = dirX * Vx;
}
var _local4 = _root.Obj_loader._x;
var _local5 = _local4 + _root.Obj_loader.egde_R._x;
var _local6 = _local4 + _root.Obj_loader.egde_L._x;
if (((globalX > _root.stage_cX) && (_local3 > 0)) && (_local5 > _root.stage_w)) {
_root.Obj_loader._x = _root.Obj_loader._x - _local3;
_x = _x + _local3;
map_x = map_x + _local3;
} else if (((globalX < _root.stage_cX) && (_local3 < 0)) && (_local6 < 0)) {
_root.Obj_loader._x = _root.Obj_loader._x - _local3;
_x = _x + _local3;
map_x = map_x + _local3;
} else {
_x = _x + _local3;
map_x = map_x + _local3;
}
shape._x = map_x;
}
function moveY(_v) {
var _local3;
if (dirY == 0) {
_local3 = _v;
} else if (_v != undefined) {
_local3 = dirY * _v;
} else {
_local3 = dirY * Vy;
}
var _local4 = _root.Obj_loader._y;
var _local7 = _local4 + _root.Obj_loader.egde_U._y;
var _local5 = _local4 + _root.Obj_loader.egde_D._y;
if (((globalY > _root.stage_cY) && (_local3 > 0)) && (_local5 > _root.stage_h)) {
_root.Obj_loader._y = _root.Obj_loader._y - _local3;
moveYControl(_local3);
} else if (((globalY < _root.stage_cY) && (_local3 < 0)) && (_local7 < 0)) {
_root.Obj_loader._y = _root.Obj_loader._y - _local3;
moveYControl(_local3);
} else {
moveYControl(_local3);
}
map_y = _y;
shape._y = map_y;
_root.depthSort(this);
}
function moveYControl(vy) {
_y = _y + vy;
var _local3 = vy * _root.tan_angle;
trace((_local3 + " ") + Vy);
var _local4 = _root.Obj_loader._x;
var _local5 = _local4 + _root.Obj_loader.egde_R._x;
var _local6 = _local4 + _root.Obj_loader.egde_L._x;
if (((globalX > _root.stage_cX) && (_local3 > 0)) && (_local5 > _root.stage_w)) {
_root.Obj_loader._x = _root.Obj_loader._x - _local3;
_x = _x + _local3;
} else if (((globalX < _root.stage_cX) && (_local3 < 0)) && (_local6 < 0)) {
_root.Obj_loader._x = _root.Obj_loader._x - _local3;
_x = _x + _local3;
} else {
_x = _x + _local3;
}
}
function depthSwap(obj) {
if (dirX == 0) {
return(undefined);
}
var _local5 = obj.shape.getBounds(_root);
if ((map_x > obj.map_x) && (_y < _local5.yMax)) {
var _local4 = obj.getDepth();
if (getDepth() > _local4) {
swapDepths(_local4 - 1);
}
} else if ((map_x < obj.map_x) && (_y < obj._y)) {
var _local4 = obj.getDepth();
if (getDepth() < _local4) {
swapDepths(_local4 + 1);
}
}
}
function doKill() {
if (_root.inKnife != true) {
return(undefined);
}
if (inKill) {
return(undefined);
}
var _local3;
if ((dir_face == "r") || (dir_cling == "cling_l")) {
_local3 = "kill_r";
} else if ((dir_face == "l") || (dir_cling == "cling_r")) {
_local3 = "kill_l";
} else if ((dir_face == "d") || (dir_cling == "cling_u")) {
_local3 = "kill_d";
} else if ((dir_face == "u") || (dir_cling == "cling_d")) {
_local3 = "kill_u";
}
(gotoAndStop(_local3));// not popped
status_1 = _local3;
inKill = true;
}
function stopKill() {
var _local2;
if (dir_face == "r") {
_local2 = "face_r";
} else if (dir_face == "l") {
_local2 = "face_l";
} else if (dir_face == "d") {
_local2 = "face_d";
} else if (dir_face == "u") {
_local2 = "face_u";
}
(gotoAndStop(_local2));// not popped
status_1 = _local2;
inKill = false;
}
function doPush() {
if (inPush) {
return(undefined);
}
var _local3;
if (dirX == 1) {
_local3 = "push_r";
} else if (dirX == -1) {
_local3 = "push_l";
} else if (dirY == -1) {
_local3 = "push_u";
} else if (dirY == 1) {
if (_root.sceneID == 0) {
_local3 = "push_d2";
} else {
_local3 = "push_d";
}
}
(gotoAndStop(_local3));// not popped
status_1 = _local3;
inPush = true;
}
function stop_push() {
var _local2;
if (dir_face == "r") {
_local2 = "face_r";
} else if (dir_face == "l") {
_local2 = "face_l";
} else if (dir_face == "d") {
_local2 = "face_d";
} else if (dir_face == "u") {
_local2 = "face_u";
}
(gotoAndStop(_local2));// not popped
status_1 = _local2;
inPush = false;
}
function do_cling() {
var _local2;
if (dirX == 1) {
_local2 = "cling_r";
} else if (dirX == -1) {
_local2 = "cling_l";
} else if (dirY == -1) {
_local2 = "cling_u";
} else if (dirY == 1) {
_local2 = "cling_d";
}
(gotoAndStop(_local2));// not popped
status_1 = _local2;
inCling = true;
dir_cling = _local2;
}
function stop_cling() {
var _local2;
if (dir_cling == "cling_r") {
_local2 = "face_l";
} else if (dir_cling == "cling_l") {
_local2 = "face_r";
} else if (dir_cling == "cling_u") {
_local2 = "face_d";
} else if (dir_cling == "cling_d") {
_local2 = "face_u";
}
(gotoAndStop(_local2));// not popped
status_1 = _local2;
inCling = false;
}
function clingMoveRight(dir_back) {
inWalk = true;
dirX = 1;
dirY = 0;
if (dir_back == "up") {
status_1 = "cling_u_move_r";
} else if (dir_back == "down") {
status_1 = "cling_d_move_r";
}
(gotoAndStop(status_1));// not popped
status_1 = status_1;
if (checkBlock(dirX, dirY)) {
return(undefined);
}
moveX(V_side);
}
function clingMoveLeft(dir_back) {
inWalk = true;
dirX = -1;
dirY = 0;
if (dir_back == "up") {
status_1 = "cling_u_move_l";
} else if (dir_back == "down") {
status_1 = "cling_d_move_l";
}
(gotoAndStop(status_1));// not popped
status_1 = status_1;
if (checkBlock(dirX, dirY)) {
return(undefined);
}
moveX(V_side);
}
function clingMoveUp(dir_back) {
inWalk = true;
dirX = 0;
dirY = -1;
if (dir_back == "right") {
status_1 = "cling_r_move_u";
} else if (dir_back == "left") {
status_1 = "cling_l_move_u";
}
(gotoAndStop(status_1));// not popped
status_1 = status_1;
if (checkBlock(dirX, dirY)) {
return(undefined);
}
moveY(V_sideY);
}
function clingMoveDown(dir_back) {
inWalk = true;
dirX = 0;
dirY = 1;
if (dir_back == "right") {
status_1 = "cling_r_move_d";
} else if (dir_back == "left") {
status_1 = "cling_l_move_d";
}
(gotoAndStop(status_1));// not popped
status_1 = status_1;
if (checkBlock(dirX, dirY)) {
return(undefined);
}
moveY(V_sideY);
}
function moveRight() {
inWalk = true;
dirX = 1;
dirY = 0;
dir_face = "r";
if (checkBlock(dirX, dirY)) {
return(undefined);
}
if (_root.inSight && (status_1 != "move_r")) {
recodePath();
}
status_1 = "move_r";
(gotoAndStop("move_r"));// not popped
status_1 = "move_r";
moveX();
}
function moveLeft() {
inWalk = true;
dirX = -1;
dirY = 0;
dir_face = "l";
if (checkBlock(dirX, dirY)) {
return(undefined);
}
if (_root.inSight && (status_1 != "move_l")) {
recodePath();
}
(gotoAndStop("move_l"));// not popped
status_1 = "move_l";
moveX();
}
function moveUp() {
inWalk = true;
dirX = 0;
dirY = -1;
dir_face = "u";
if (checkBlock(dirX, dirY)) {
return(undefined);
}
if (_root.inSight && (status_1 != "move_u")) {
recodePath();
}
(gotoAndStop("move_u"));// not popped
status_1 = "move_u";
moveY();
}
function moveDown() {
inWalk = true;
dirX = 0;
dirY = 1;
dir_face = "d";
if (checkBlock(dirX, dirY)) {
return(undefined);
}
if (_root.inSight && (status_1 != "move_d")) {
recodePath();
}
(gotoAndStop("move_d"));// not popped
status_1 = "move_d";
moveY();
}
function moveUL() {
if (inCling) {
if (dir_cling == "cling_u") {
clingMoveLeft("up");
} else if (dir_cling == "cling_l") {
clingMoveUp("left");
}
} else {
moveLeft();
}
}
function moveUR() {
if (inCling) {
if (dir_cling == "cling_u") {
clingMoveRight("up");
} else if (dir_cling == "cling_r") {
clingMoveUp("right");
}
} else {
moveRight();
}
}
function moveDR() {
if (inCling) {
if (dir_cling == "cling_d") {
clingMoveRight("down");
} else if (dir_cling == "cling_r") {
clingMoveDown("right");
}
} else {
moveDown();
}
}
function moveDL() {
if (inCling) {
if (dir_cling == "cling_d") {
clingMoveLeft("down");
} else if (dir_cling == "cling_l") {
clingMoveDown("left");
}
} else {
moveDown();
}
}
function recodePath() {
_root.dirArray.push([dirX, dirY]);
_root.posArray.push([map_x, map_y]);
}
function checkBlock(dirX, dirY) {
getPos();
var _local3 = _root.Obj_loader.area;
var _local4 = map_x + _root.Obj_loader._x;
var _local7 = _local4 + (offsetX * dirX);
var _local6 = globalY + (offsetY * dirY);
var _local9;
var _local11;
var _local10;
var _local8;
_local9 = (map_x + _root.Obj_loader._x) + offsetX;
_local11 = (map_x + _root.Obj_loader._x) - offsetX;
_local10 = globalY + offsetY;
_local8 = globalY - offsetY;
if (_local3.hitTest(_local7, _local6, true)) {
var _local5 = checkBlock_obj(_local7, _local6);
trace("action:" + _local5);
if (_local5 == "push") {
doPush();
return(true);
}
if (_local5 != "none") {
do_cling();
return(true);
}
} else if (_local3.hitTest(_local9, globalY, true) && (dirY != 0)) {
moveX(-2);
} else if (_local3.hitTest(_local11, globalY, true) && (dirY != 0)) {
moveX(2);
} else if (_local3.hitTest(_local4, _local8, true) && (dirX != 0)) {
moveY(2);
} else if (_local3.hitTest(_local4, _local10, true) && (dirX != 0)) {
moveY(-2);
}
}
function checkBlock_obj(posx, posy) {
if (_root.obj_active != []) {
for (var _local6 in _root.obj_active) {
var _local3 = _root.obj_active[_local6];
if (_local3.shape.hitTest(posx, posy, true)) {
depthSwap(_local3);
if (_local3.can_push) {
if (_local3.doTouch() != false) {
return("push");
}
return("block");
}
if (_local3.can_block) {
return("block");
}
return("none");
}
}
}
}
function catched() {
var _local2;
_local2 = "handsup_u";
(gotoAndStop(_local2));// not popped
inCatch = true;
}
}
Symbol 1663 MovieClip [__Packages.Role_box] Frame 0
class Role_box extends Role
{
var inBox, map_x, map_y, _x, _y, _parent, shape, offsetX, offsetY, control;
function Role_box () {
super();
inBox = true;
}
function init(x, y) {
map_x = x;
map_y = y;
_x = map_x;
_y = map_y;
_root.transPos(this);
var _local3 = _parent.getNextHighestDepth();
shape = _parent.attachMovie("role_box_shape", "role_shape", _local3);
shape._x = map_x;
shape._y = map_y;
offsetX = shape._width / 2;
offsetY = shape._height / 2;
_root.depthSort(this);
control();
}
function replace(x, y, m_x, m_y) {
_x = x;
_y = y;
shape = _parent.role_shape;
var _local5 = shape._x;
var _local4 = shape._y;
map_x = m_x;
map_y = m_y;
shape.removeMovieClip();
var _local3 = _parent.getNextHighestDepth();
shape = _parent.attachMovie("role_box_shape", "role_box_shape", _local3);
shape._x = _local5;
shape._y = _local4;
offsetX = shape._width / 2;
offsetY = shape._height / 2;
_root.depthSort(this);
control();
}
function do_cling() {
}
}
Symbol 1664 MovieClip [__Packages.Role_ice] Frame 0
class Role_ice extends Role
{
var Vx, Vy, onEnterFrame, inWalk, dirX, dirY, status_1, gotoAndStop, globalX, _x, map_x, shape, globalY, map_y, _y, dir_face, getPos, offsetX, offsetY, depthSwap;
function Role_ice () {
super();
Vx = 7.5;
Vy = 6;
}
function control() {
onEnterFrame = function () {
if (_root.root_pause) {
return(undefined);
}
this.checkMove();
};
}
function checkMove() {
if (Key.isDown(_root.key_up)) {
moveUp();
} else if (Key.isDown(_root.key_down)) {
moveDown();
} else if (Key.isDown(_root.key_left)) {
moveLeft();
} else if (Key.isDown(_root.key_right)) {
moveRight();
}
}
function stop_move() {
inWalk = false;
dirX = 0;
dirY = 0;
var _local2;
if (status_1 == "move_r") {
_local2 = "face_r";
} else if (status_1 == "move_l") {
_local2 = "face_l";
} else if (status_1 == "move_u") {
_local2 = "face_u";
} else if (status_1 == "move_d") {
_local2 = "face_d";
}
(gotoAndStop(_local2));// not popped
status_1 = _local2;
onEnterFrame = control;
}
function moveX(_v) {
var _local3;
if (dirX == 0) {
_local3 = _v;
} else if (_v != undefined) {
_local3 = dirX * _v;
} else {
_local3 = dirX * Vx;
}
var _local4 = _root.Obj_loader._x;
var _local5 = _local4 + _root.Obj_loader.egde_R._x;
var _local6 = _local4 + _root.Obj_loader.egde_L._x;
if (((globalX > _root.stage_cX) && (_local3 > 0)) && (_local5 > _root.stage_w)) {
_root.Obj_loader._x = _root.Obj_loader._x - _local3;
_x = _x + _local3;
map_x = map_x + _local3;
} else if (((globalX < _root.stage_cX) && (_local3 < 0)) && (_local6 < 0)) {
_root.Obj_loader._x = _root.Obj_loader._x - _local3;
_x = _x + _local3;
map_x = map_x + _local3;
} else {
_x = _x + _local3;
map_x = map_x + _local3;
}
shape._x = map_x;
}
function moveY(_v) {
var _local3;
if (dirY == 0) {
_local3 = _v;
} else if (_v != undefined) {
_local3 = dirY * _v;
} else {
_local3 = dirY * Vy;
}
var _local4 = _root.Obj_loader._y;
var _local7 = _local4 + _root.Obj_loader.egde_U._y;
var _local5 = _local4 + _root.Obj_loader.egde_D._y;
if (((globalY > _root.stage_cY) && (_local3 > 0)) && (_local5 > _root.stage_h)) {
_root.Obj_loader._y = _root.Obj_loader._y - _local3;
_root.moveY(_local3, this);
} else if (((globalY < _root.stage_cY) && (_local3 < 0)) && (_local7 < 0)) {
_root.Obj_loader._y = _root.Obj_loader._y - _local3;
_root.moveY(_local3, this);
} else {
_root.moveY(_local3, this);
}
map_y = _y;
shape._y = map_y;
_root.depthSort(this);
}
function moveRight() {
inWalk = true;
dirX = 1;
dirY = 0;
dir_face = "r";
if (checkBlock(dirX, dirY)) {
return(undefined);
}
status_1 = "move_r";
(gotoAndStop(status_1));// not popped
onEnterFrame = function () {
if (this.checkBlock(this.dirX, this.dirY)) {
delete this.onEnterFrame;
this.stop_move();
return(undefined);
}
this.moveX();
};
}
function moveLeft() {
inWalk = true;
dirX = -1;
dirY = 0;
dir_face = "l";
if (checkBlock(dirX, dirY)) {
return(undefined);
}
status_1 = "move_l";
(gotoAndStop(status_1));// not popped
onEnterFrame = function () {
if (this.checkBlock(this.dirX, this.dirY)) {
delete this.onEnterFrame;
this.stop_move();
return(undefined);
}
this.moveX();
};
}
function moveUp() {
inWalk = true;
dirX = 0;
dirY = -1;
dir_face = "u";
if (checkBlock(dirX, dirY)) {
return(undefined);
}
status_1 = "move_u";
(gotoAndStop(status_1));// not popped
onEnterFrame = function () {
if (this.checkBlock(this.dirX, this.dirY)) {
delete this.onEnterFrame;
this.stop_move();
return(undefined);
}
this.moveY();
};
}
function moveDown() {
inWalk = true;
dirX = 0;
dirY = 1;
dir_face = "d";
if (checkBlock(dirX, dirY)) {
return(undefined);
}
status_1 = "move_d";
(gotoAndStop(status_1));// not popped
onEnterFrame = function () {
if (this.checkBlock(this.dirX, this.dirY)) {
delete this.onEnterFrame;
this.stop_move();
return(undefined);
}
this.moveY();
};
}
function checkBlock(dirX, dirY) {
getPos();
var _local3 = _root.Obj_loader.area;
var _local4 = map_x + _root.Obj_loader._x;
var _local6 = _local4 + (offsetX * dirX);
var _local5 = globalY + (offsetY * dirY);
var _local8;
var _local10;
var _local9;
var _local7;
_local8 = (map_x + _root.Obj_loader._x) + offsetX;
_local10 = (map_x + _root.Obj_loader._x) - offsetX;
_local9 = globalY + offsetY;
_local7 = globalY - offsetY;
if (_local3.hitTest(_local6, _local5, true)) {
var _local11 = checkBlock_obj(_local6, _local5);
if (_local11 == "push") {
return(true);
}
return(true);
}
if (_local3.hitTest(_local8, globalY, true) && (dirY != 0)) {
moveX(-2);
} else if (_local3.hitTest(_local10, globalY, true) && (dirY != 0)) {
moveX(2);
} else if (_local3.hitTest(_local4, _local7, true) && (dirX != 0)) {
moveY(2);
} else if (_local3.hitTest(_local4, _local9, true) && (dirX != 0)) {
moveY(-2);
}
}
function checkBlock_obj(posx, posy) {
if (_root.obj_active != []) {
for (var _local6 in _root.obj_active) {
var _local3 = _root.obj_active[_local6];
if (_local3.shape.hitTest(posx, posy, true)) {
depthSwap(_local3);
if (_local3.can_push) {
if (_local3.doTouch() != false) {
return("push");
}
return("block");
}
if (_local3.can_block) {
return("block");
}
}
}
}
}
}
Symbol 1665 MovieClip [__Packages.Role_knife] Frame 0
class Role_knife extends Role
{
var _x, _y, shape, _parent, map_x, map_y, offsetX, offsetY, control, getPos, globalY, checkBlock_obj, doPush, do_cling, moveX, moveY, dirX, dirY, status_1, gotoAndStop, inWalk, inCling, stop_cling, inPush, stop_push;
function Role_knife () {
super();
}
function replace(x, y, m_x, m_y) {
_x = x;
_y = y;
shape = _parent.role_shape;
map_x = m_x;
map_y = m_y;
offsetX = shape._width / 2;
offsetY = shape._height / 2;
_root.depthSort(this);
control();
}
function checkBlock(dirX, dirY) {
getPos();
var _local3 = _root.Obj_loader.area;
var _local5 = map_x + _root.Obj_loader._x;
var _local6 = _local5 + (offsetX * dirX);
var _local4 = globalY + (offsetY * dirY);
var _local11;
var _local13;
var _local12;
var _local10;
_local11 = (map_x + _root.Obj_loader._x) + offsetX;
_local13 = (map_x + _root.Obj_loader._x) - offsetX;
_local12 = globalY + offsetY;
_local10 = globalY - offsetY;
if (_local3.hitTest(_local6, _local4, true)) {
var _local7 = checkBlock_obj(_local6, _local4);
if (_local7 == "push") {
doPush();
return(true);
}
if (_local7 != "none") {
do_cling();
return(true);
}
} else if (_local3.hitTest(_local11, globalY, true) && (dirY != 0)) {
moveX(-2);
} else if (_local3.hitTest(_local13, globalY, true) && (dirY != 0)) {
moveX(2);
} else if (_local3.hitTest(_local5, _local10, true) && (dirX != 0)) {
moveY(2);
} else if (_local3.hitTest(_local5, _local12, true) && (dirX != 0)) {
moveY(-2);
} else if (checkBlock_enemy(_local6, _local4)) {
doMoveBody(dirX, dirY);
return(true);
}
}
function checkBlock_enemy(posx, posy) {
if (_root.enemyArray != []) {
for (var _local5 in _root.enemyArray) {
var _local2 = _root.enemyArray[_local5];
if (_local2.shape.area2.hitTest(posx, posy, true)) {
_local2.bodyTouch();
return(true);
}
}
}
}
function doMoveBody() {
var _local2;
if (dirX == 1) {
_local2 = "mBody_r";
} else if (dirX == -1) {
_local2 = "mBody_l";
} else if (dirY == -1) {
_local2 = "move_u";
} else if (dirY == 1) {
_local2 = "move_d";
}
status_1 = _local2;
(gotoAndStop(status_1));// not popped
trace(status_1);
}
function stop_move() {
inWalk = false;
dirX = 0;
dirY = 0;
if (inCling) {
stop_cling();
return(undefined);
}
if (inPush) {
stop_push();
return(undefined);
}
var _local2;
if (status_1 == "move_r") {
_local2 = "face_r";
} else if (status_1 == "move_l") {
_local2 = "face_l";
} else if (status_1 == "move_u") {
_local2 = "face_u";
} else if (status_1 == "move_d") {
_local2 = "face_d";
}
if (status_1 == "mBody_r") {
_local2 = "face_r";
} else if (status_1 == "mBody_l") {
_local2 = "face_l";
} else if (status_1 == "mBody_u") {
_local2 = "face_u";
} else if (status_1 == "mBody_d") {
_local2 = "face_d";
}
(gotoAndStop(_local2));// not popped
status_1 = _local2;
}
}
Symbol 1666 MovieClip [__Packages.Role_suit] Frame 0
class Role_suit extends Role
{
var inSuit, Vx, Vy, _x, _y, shape, _parent, map_x, map_y, offsetX, offsetY, control;
function Role_suit () {
super();
inSuit = true;
Vx = 4;
Vy = 3;
}
function replace(x, y, m_x, m_y) {
_x = x;
_y = y;
shape = _parent.role_shape;
var _local5 = shape._x;
var _local4 = shape._y;
map_x = m_x;
map_y = m_y;
shape.removeMovieClip();
var _local3 = _parent.getNextHighestDepth();
shape = _parent.attachMovie("role_shape", "role_shape", _local3);
shape._x = _local5;
shape._y = _local4;
offsetX = shape._width / 2;
offsetY = shape._height / 2;
_root.depthSort(this);
control();
trace((map_x + " ") + map_y);
}
function doPush() {
}
function do_cling() {
}
}
Symbol 1667 MovieClip [__Packages.Enemy_push] Frame 0
class Enemy_push extends Enemy
{
var _x, _y, moveType, dirX, dirY, moveDis, startPause, map_x, map_y, _parent, shape, offsetX, offsetY, toStand, checkMove, pauseTimer, onEnterFrame, checkBlock, Vx, Vy, status_1, Vx1, Vy1;
function Enemy_push () {
super();
}
function init(x, y, _moveType, _dirX, _dirY, dis, sp) {
_x = x;
_y = y;
moveType = _moveType;
dirX = _dirX;
dirY = _dirY;
moveDis = dis;
startPause = sp;
map_x = x;
map_y = y;
_root.transPos(this);
_root.depthSort(this);
var _local3 = _parent.getNextHighestDepth();
shape = _parent.attachMovie("enemy_push_shape", "shape_" + _local3, _local3);
shape._x = map_x;
shape._y = map_y;
shape.enemy = this;
offsetX = shape._width / 2;
offsetY = shape._height / 2;
if (moveType == "stand") {
toStand();
} else if ((startPause == 0) || (startPause == undefined)) {
checkMove();
} else {
toStand();
clearInterval(pauseTimer);
pauseTimer = setInterval(this, "checkMove", startPause);
}
}
function bodyTouch() {
clearInterval(pauseTimer);
delete onEnterFrame;
if (bodyMove() == false) {
return(false);
}
}
function bodyMove() {
dirX = _root.role.dirX;
dirY = _root.role.dirY;
if (checkBlock(dirX, dirY, Vx, Vy)) {
return(false);
}
if ((dirX != 0) && (dirY == 0)) {
if (status_1 == "die_u") {
return(false);
}
var _local3 = dirX * Vx1;
_x = _x + _local3;
map_x = map_x + _local3;
shape._x = shape._x + _local3;
_root.role.moveX(Vx);
}
if ((dirY != 0) && (dirX == 0)) {
if (status_1 == "die_l") {
return(false);
}
var _local4 = dirY * Vy1;
_root.moveY(_local4, this);
_root.role.moveY(Vy);
_root.depthSort(this);
shape._y = _y - _root.Obj_loader.area._y;
}
}
}
Symbol 160 MovieClip Frame 26
stop();
Symbol 162 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 164 MovieClip Frame 5
stop();
Symbol 165 MovieClip [enemy_push] Frame 1
#initclip 51
Object.registerClass("enemy_push", Enemy_push);
#endinitclip
stop();
Symbol 165 MovieClip [enemy_push] Frame 2
stop();
Symbol 165 MovieClip [enemy_push] Frame 9
stop();
Symbol 165 MovieClip [enemy_push] Frame 15
stop();
Symbol 165 MovieClip [enemy_push] Frame 16
stop();
Symbol 165 MovieClip [enemy_push] Frame 23
stop();
Symbol 165 MovieClip [enemy_push] Frame 29
stop();
Symbol 165 MovieClip [enemy_push] Frame 30
stop();
Symbol 165 MovieClip [enemy_push] Frame 37
stop();
Symbol 165 MovieClip [enemy_push] Frame 43
stop();
Symbol 165 MovieClip [enemy_push] Frame 44
stop();
Symbol 165 MovieClip [enemy_push] Frame 51
stop();
Symbol 165 MovieClip [enemy_push] Frame 57
stop();
Symbol 165 MovieClip [enemy_push] Frame 63
stop();
Symbol 165 MovieClip [enemy_push] Frame 69
stop();
Symbol 165 MovieClip [enemy_push] Frame 76
stop();
Symbol 165 MovieClip [enemy_push] Frame 83
stop();
Symbol 165 MovieClip [enemy_push] Frame 89
stop();
Symbol 165 MovieClip [enemy_push] Frame 95
stop();
Symbol 165 MovieClip [enemy_push] Frame 101
stop();
Symbol 166 MovieClip Frame 1
Symbol 169 MovieClip Frame 1
this._visible = false;
stop();
Symbol 169 MovieClip Frame 2
stop();
Symbol 169 MovieClip Frame 3
stop();
Symbol 172 MovieClip [enemy_push_shape] Frame 1
this._alpha = 40;
this._visible = false;
Symbol 172 MovieClip [enemy_push_shape] Frame 4
stop();
this.onEnterFrame = function () {
var _local3 = _root.role.shape;
var _local4 = _local3._x + _parent._x;
var _local5 = _local3._y + _parent._y;
if (view.hitTest(_local4, _local5, true)) {
enemy.discover();
} else {
enemy.discover_end();
}
};
Symbol 172 MovieClip [enemy_push_shape] Frame 5
this.onEnterFrame = function () {
var _local3 = _root.role.shape;
var _local4 = _local3._x + _parent._x;
var _local5 = _local3._y + _parent._y;
if (view.hitTest(_local4, _local5, true)) {
enemy.discover();
} else {
enemy.discover_end();
}
};
Symbol 172 MovieClip [enemy_push_shape] Frame 6
this.onEnterFrame = function () {
var _local3 = _root.role.shape;
var _local4 = _local3._x + _parent._x;
var _local5 = _local3._y + _parent._y;
if (view.hitTest(_local4, _local5, true)) {
enemy.discover();
} else {
enemy.discover_end();
}
};
Symbol 172 MovieClip [enemy_push_shape] Frame 7
this.onEnterFrame = function () {
var _local3 = _root.role.shape;
var _local4 = _local3._x + _parent._x;
var _local5 = _local3._y + _parent._y;
if (view.hitTest(_local4, _local5, true)) {
enemy.discover();
} else {
enemy.discover_end();
}
};
Symbol 173 MovieClip [enemy_shape] Frame 1
this._alpha = 40;
this._visible = false;
Symbol 173 MovieClip [enemy_shape] Frame 4
stop();
this.onEnterFrame = function () {
var _local3 = _root.role.shape;
var _local4 = _local3._x + _parent._x;
var _local5 = _local3._y + _parent._y;
if (view.hitTest(_local4, _local5, true)) {
enemy.discover();
} else {
enemy.discover_end();
}
};
Symbol 173 MovieClip [enemy_shape] Frame 5
this.onEnterFrame = function () {
var _local3 = _root.role.shape;
var _local4 = _local3._x + _parent._x;
var _local5 = _local3._y + _parent._y;
if (view.hitTest(_local4, _local5, true)) {
enemy.discover();
} else {
enemy.discover_end();
}
};
Symbol 173 MovieClip [enemy_shape] Frame 6
this.onEnterFrame = function () {
var _local3 = _root.role.shape;
var _local4 = _local3._x + _parent._x;
var _local5 = _local3._y + _parent._y;
if (view.hitTest(_local4, _local5, true)) {
enemy.discover();
} else {
enemy.discover_end();
}
};
Symbol 173 MovieClip [enemy_shape] Frame 7
this.onEnterFrame = function () {
var _local3 = _root.role.shape;
var _local4 = _local3._x + _parent._x;
var _local5 = _local3._y + _parent._y;
if (view.hitTest(_local4, _local5, true)) {
enemy.discover();
} else {
enemy.discover_end();
}
};
Symbol 179 Button
on (release) {
_root.game_sceneSelect(id_txt.text - 1);
}
Symbol 181 MovieClip [obj_ball_shape] Frame 1
Symbol 182 MovieClip [obj_ball2_shape] Frame 1
Symbol 184 MovieClip [obj_bed_shape] Frame 1
Symbol 185 MovieClip [obj_box_big_shape] Frame 1
this._visible = false;
Symbol 187 MovieClip [obj_box_get_shape] Frame 1
this._visible = false;
Symbol 188 MovieClip [obj_box_get] Frame 1
#initclip 20
Object.registerClass("obj_box_get", Obj);
#endinitclip
stop();
if (_root.inBox) {
gotoAndStop (2);
}
objName = "obj_box_get";
can_push = true;
msg = "Empty box";
this.onEnterFrame = function () {
if (_root.role.area.hitTest(this)) {
if (standOn) {
return(undefined);
}
standOn = true;
_root.getItem("box");
this.shape.removeMovieClip();
this.removeMovieClip();
} else {
standOn = false;
}
};
Symbol 188 MovieClip [obj_box_get] Frame 2
stop();
shape.removeMovieClip();
Symbol 189 MovieClip [obj_box1_3_shape] Frame 1
Symbol 190 MovieClip [obj_box3_big_shape] Frame 1
Symbol 191 MovieClip [obj_box3_shape] Frame 1
this._visible = false;
Symbol 192 MovieClip [obj_box5_shape] Frame 1
Symbol 193 MovieClip [obj_box6_shape] Frame 1
this._visible = false;
Symbol 194 MovieClip [obj_box7_shape] Frame 1
this._visible = false;
Symbol 195 MovieClip [obj_box8_shape] Frame 1
this._visible = false;
Symbol 196 MovieClip [obj_desk_shape] Frame 1
this._visible = false;
Symbol 197 MovieClip [obj_electricty_shape] Frame 1
Symbol 198 MovieClip [obj_ice_shape] Frame 1
Symbol 199 MovieClip [obj_pingfeng_shape] Frame 1
this._visible = false;
Symbol 200 MovieClip [obj_stone_shape] Frame 1
Symbol 202 MovieClip [obj_tong_shape] Frame 1
Symbol 203 MovieClip [obj_zhuzi_shape] Frame 1
Symbol 204 MovieClip [zhuzi_shape] Frame 1
Symbol 220 MovieClip [wall_hv] Frame 1
#initclip 21
Object.registerClass("wall_hv", Bg);
#endinitclip
Symbol 221 MovieClip Frame 1
Symbol 223 MovieClip Frame 1
this._visible = false;
this.onEnterFrame = function () {
if (_root.role.area.hitTest(this)) {
_root.enterDoor();
delete this.onEnterFrame;
}
};
Symbol 226 MovieClip [zhuzi] Frame 1
#initclip 22
Object.registerClass("zhuzi", Obj);
#endinitclip
objName = "zhuzi";
Symbol 229 MovieClip [obj_desk] Frame 1
#initclip 23
Object.registerClass("obj_desk", Obj);
#endinitclip
stop();
objName = "obj_desk";
Symbol 230 MovieClip [obj_desk2] Frame 1
#initclip 24
Object.registerClass("obj_desk2", Obj);
#endinitclip
stop();
objName = "obj_desk";
Symbol 232 MovieClip [scene_aisle0] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 30 MovieClip in Symbol 232 MovieClip [scene_aisle0] Frame 1
//component parameters
onClipEvent (construct) {
id = 3;
up = false;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 232 MovieClip [scene_aisle0] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 232 MovieClip [scene_aisle0] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 232 MovieClip [scene_aisle0] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 232 MovieClip [scene_aisle0] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = false;
right = false;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 232 MovieClip [scene_aisle0] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "line";
dirX = 1;
dirY = 0;
dis = 0;
startPause = 0;
}
Instance of Symbol 30 MovieClip in Symbol 232 MovieClip [scene_aisle0] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = false;
left = false;
}
Instance of Symbol 34 MovieClip in Symbol 232 MovieClip [scene_aisle0] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "line";
dirX = 1;
dirY = 0;
dis = 0;
startPause = 0;
}
Instance of Symbol 30 MovieClip in Symbol 232 MovieClip [scene_aisle0] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = false;
left = false;
}
Symbol 238 MovieClip Frame 1
this.swapDepths(_parent.getNextHighestDepth());
Symbol 239 MovieClip Frame 1
Symbol 241 MovieClip [tong] Frame 1
#initclip 25
Object.registerClass("tong", Obj);
#endinitclip
function btnRelease() {
}
objName = "obj_tong";
Symbol 245 MovieClip [scene_aisle1] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 30 MovieClip "aa" in Symbol 245 MovieClip [scene_aisle1] Frame 1
//component parameters
onClipEvent (construct) {
id = 3;
up = true;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 245 MovieClip [scene_aisle1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = false;
right = false;
left = true;
}
Instance of Symbol 30 MovieClip "dd" in Symbol 245 MovieClip [scene_aisle1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 245 MovieClip [scene_aisle1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 245 MovieClip [scene_aisle1] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "line";
dirX = -1;
dirY = 0;
dis = 0;
startPause = 0;
}
Instance of Symbol 30 MovieClip "bb" in Symbol 245 MovieClip [scene_aisle1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = false;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 245 MovieClip [scene_aisle1] Frame 1
//component parameters
onClipEvent (construct) {
id = 3;
up = false;
down = true;
right = false;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 245 MovieClip [scene_aisle1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = false;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 245 MovieClip [scene_aisle1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = true;
right = false;
left = false;
}
Instance of Symbol 34 MovieClip in Symbol 245 MovieClip [scene_aisle1] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "line";
dirX = 0;
dirY = 1;
dis = 0;
startPause = 4000;
}
Symbol 250 MovieClip Frame 1
this._visible = false;
Symbol 252 MovieClip [z_ceqiang_obj] Frame 1
#initclip 26
Object.registerClass("z_ceqiang_obj", Bg);
#endinitclip
Symbol 253 MovieClip [z_qiang_obj] Frame 1
#initclip 27
Object.registerClass("z_qiang_obj", Bg);
#endinitclip
Symbol 254 MovieClip [scene_aisle3] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 30 MovieClip "ee" in Symbol 254 MovieClip [scene_aisle3] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = false;
right = false;
left = true;
}
Instance of Symbol 30 MovieClip "aa" in Symbol 254 MovieClip [scene_aisle3] Frame 1
//component parameters
onClipEvent (construct) {
id = 3;
up = false;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip "dd" in Symbol 254 MovieClip [scene_aisle3] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip "cc" in Symbol 254 MovieClip [scene_aisle3] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = false;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 254 MovieClip [scene_aisle3] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "line";
dirX = 1;
dirY = 0;
dis = 0;
startPause = 2000;
}
Instance of Symbol 30 MovieClip "bb" in Symbol 254 MovieClip [scene_aisle3] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = false;
right = true;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 254 MovieClip [scene_aisle3] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "circle";
dirX = -1;
dirY = 0;
dis = 0;
startPause = 10000;
}
Symbol 256 MovieClip Frame 1
Symbol 257 MovieClip [scene_aisle4] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 30 MovieClip in Symbol 257 MovieClip [scene_aisle4] Frame 1
//component parameters
onClipEvent (construct) {
id = 3;
up = false;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 257 MovieClip [scene_aisle4] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = false;
right = false;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 257 MovieClip [scene_aisle4] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "line";
dirX = -1;
dirY = 0;
dis = 0;
startPause = 1000;
}
Symbol 273 MovieClip Frame 1
function eventStart() {
gotoAndPlay ("open");
}
function eventEnd() {
gotoAndPlay ("close");
}
stop();
Symbol 273 MovieClip Frame 8
stop();
Symbol 273 MovieClip Frame 15
stop();
Symbol 274 MovieClip Frame 1
this._visible = false;
Symbol 277 MovieClip [obj_box3] Frame 1
#initclip 28
Object.registerClass("obj_box3", Obj);
#endinitclip
stop();
objName = "obj_box3";
msg = "Container";
Symbol 278 MovieClip [scene_box1] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 28 MovieClip [obj_switch_stand] in Symbol 278 MovieClip [scene_box1] Frame 1
//component parameters
onClipEvent (construct) {
eventObj = "door1";
}
Symbol 296 MovieClip Frame 1
Symbol 302 MovieClip [searchlight_mc] Frame 1
function moveX() {
if (dirX == 1) {
dirX = -1;
light_mc._x = (_root.stage_w + 200) - _parent._x;
} else {
dirX = 1;
light_mc._x = -200 - _parent._x;
}
startMoveX();
this._visible = true;
_root.depthSort(this);
}
function moveY() {
if (dirY == 1) {
dirY = -1;
light_mc._y = (_root.stage_h + 100) - _parent._y;
} else {
dirY = 1;
light_mc._y = -100 - _parent._y;
}
startMoveY();
this._visible = true;
}
function startMoveX() {
light_mc._y = _root.role._y;
onEnterFrame = function () {
light_mc._x = light_mc._x + (Vx * dirX);
var _local5 = _root.role._x + _root.Obj_loader._x;
var _local4 = _root.role._y + _root.Obj_loader._y;
if (light_mc.area.hitTest(_local5, _local4, true)) {
if (_root.role.inBox) {
if (_root.role.inWalk) {
discover();
}
} else {
discover();
}
}
if ((light_mc._x > ((_root.stage_w + 200) - _parent._x)) || (light_mc._x < (-200 - _parent._x))) {
stopMove();
}
if (_root.inGameOver) {
delete this.onEnterFrame;
}
};
}
function startMoveY() {
light_mc._x = _root.role._x;
onEnterFrame = function () {
light_mc._y = light_mc._y + (Vy * dirY);
if (light_mc.area.hitTest(_root.role.area)) {
discover();
}
if ((light_mc._y > ((_root.stage_h + 100) - _parent._y)) || (light_mc._y < (-100 - _parent._y))) {
stopMove();
}
};
}
function stopMove() {
delete this.onEnterFrame;
this._visible = false;
gotoAndPlay ("start");
}
function discover() {
if (_root.inGameOver) {
return(undefined);
}
_root.role.catched();
_root.game_over();
delete this.onEnterFrame;
}
function startControl() {
gotoAndPlay ("start");
}
stop();
light_mc = this;
this.swapDepths(_parent.getNextHighestDepth());
onEnterFrame = function () {
if (_root.role._x > 400) {
delete this.onEnterFrame;
moveX();
}
};
var dirX = 1;
var dirY = 1;
Symbol 302 MovieClip [searchlight_mc] Frame 59
stop();
moveX();
Symbol 304 MovieClip [obj_box6] Frame 1
#initclip 29
Object.registerClass("obj_box6", Obj);
#endinitclip
stop();
objName = "obj_box6";
Symbol 306 MovieClip [obj_box7] Frame 1
#initclip 30
Object.registerClass("obj_box7", Obj);
#endinitclip
stop();
objName = "obj_box7";
Symbol 307 MovieClip [scene_ground1] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
bg_snd = 2;
Instance of Symbol 302 MovieClip [searchlight_mc] in Symbol 307 MovieClip [scene_ground1] Frame 1
//component parameters
onClipEvent (construct) {
Vx = 10;
}
Symbol 309 MovieClip Frame 1
Symbol 311 MovieClip [obj_box3_big] Frame 1
#initclip 31
Object.registerClass("obj_box3_big", Obj);
#endinitclip
stop();
objName = "obj_box3_big";
Symbol 313 MovieClip Frame 1
function moveX() {
if (dirX == 1) {
dirX = -1;
} else {
dirX = 1;
}
startMoveX();
}
function moveY() {
if (dirY == 1) {
dirY = -1;
light_mc._y = (_root.stage_h + 100) - _parent._y;
} else {
dirY = 1;
light_mc._y = -100 - _parent._y;
}
startMoveY();
this._visible = true;
}
function startMoveX() {
var S = 0;
onEnterFrame = function () {
light_mc._x = light_mc._x + (Vx * dirX);
S = S + Vx;
var _local4 = _root.role._x + _root.Obj_loader._x;
var _local3 = _root.role._y + _root.Obj_loader._y;
if (light_mc.area.hitTest(_local4, _local3, true)) {
if (_root.role.inBox) {
if (_root.role.inWalk) {
discover();
}
} else {
discover();
}
}
if (S > 400) {
stopMove();
}
if (_root.inGameOver) {
delete this.onEnterFrame;
}
};
}
function startMoveY() {
light_mc._x = _root.role._x;
onEnterFrame = function () {
light_mc._y = light_mc._y + (Vy * dirY);
if (light_mc.area.hitTest(_root.role.area)) {
discover();
}
if ((light_mc._y > ((_root.stage_h + 100) - _parent._y)) || (light_mc._y < (-100 - _parent._y))) {
stopMove();
}
};
}
function stopMove() {
delete this.onEnterFrame;
gotoAndPlay ("start");
}
function discover() {
if (_root.inGameOver) {
return(undefined);
}
_root.role.catched();
_root.game_over();
delete this.onEnterFrame;
}
function startControl() {
gotoAndPlay ("start");
}
this.swapDepths(_parent.getNextHighestDepth() + 650000);
var Vx = 4;
var Vy = 8;
var dirX = 1;
var dirY = 1;
Symbol 313 MovieClip Frame 64
stop();
moveX();
Symbol 314 MovieClip [scene_ground1_2] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
bg_snd = 2;
Instance of Symbol 302 MovieClip [searchlight_mc] in Symbol 314 MovieClip [scene_ground1_2] Frame 1
//component parameters
onClipEvent (construct) {
Vx = 7;
}
Symbol 316 MovieClip Frame 1
Symbol 321 MovieClip Frame 21
stop();
Symbol 325 MovieClip Frame 21
stop();
Symbol 326 MovieClip Frame 1
stop();
_root.depthSort(this);
Symbol 326 MovieClip Frame 2
stop();
Symbol 326 MovieClip Frame 16
stop();
Symbol 335 MovieClip Frame 1
this._visible = false;
Symbol 336 MovieClip Frame 1
function turn(d) {
if (_root.inGameOver) {
return(undefined);
}
dir = d;
u_mc._visible = false;
d_mc._visible = false;
l_mc._visible = false;
r_mc._visible = false;
this[dir + "_mc"]._visible = true;
gotoAndStop(d);
}
function checkView() {
onEnterFrame = function () {
if (area.hitTest(_root.role.area)) {
discover();
}
};
}
function discover() {
delete this.onEnterFrame;
if (_root.inGameOver) {
return(undefined);
}
emotion._visible = true;
_root.role.catched();
_root.game_over();
}
stop();
_root.depthSort(this);
turn("u");
Symbol 336 MovieClip Frame 2
checkView();
Symbol 336 MovieClip Frame 3
checkView();
Symbol 336 MovieClip Frame 4
checkView();
Symbol 336 MovieClip Frame 5
checkView();
Symbol 336 MovieClip Frame 6
gotoAndStop (1);
Symbol 338 MovieClip Frame 1
function getDir() {
dir = dirArray[step];
step++;
if (step == 4) {
step = 0;
}
}
var dir;
var dirArray1 = new Array("r", "d", "l", "u");
var dirArray2 = new Array("l", "d", "r", "u");
var dirArray;
if (type == 1) {
dirArray = dirArray1;
} else {
dirArray = dirArray2;
}
var step = 0;
var step_snd = new Sound();
step_snd.attachSound("step.wav");
role = _parent[roleName];
role2 = _parent[roleName2];
Symbol 338 MovieClip Frame 98
getDir();
if (role.dir == dir) {
gotoAndPlay ("start");
} else {
if (role == _parent.e1) {
step_snd.start();
}
role2.gotoAndStop(dir);
role.turn(dir);
}
Symbol 338 MovieClip Frame 147
gotoAndPlay ("start");
Symbol 338 MovieClip Frame 189
gotoAndPlay ("start");
Symbol 339 MovieClip [obj_box8] Frame 1
#initclip 32
Object.registerClass("obj_box8", Obj);
#endinitclip
stop();
objName = "obj_box8";
msg = "Wooden Box";
Symbol 340 MovieClip [scene_ground3] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
bg_snd = 2;
Instance of Symbol 338 MovieClip in Symbol 340 MovieClip [scene_ground3] Frame 1
//component parameters
onClipEvent (construct) {
roleName = "e1";
roleName2 = "o1";
type = 1;
}
Instance of Symbol 338 MovieClip in Symbol 340 MovieClip [scene_ground3] Frame 1
//component parameters
onClipEvent (construct) {
roleName = "e2";
roleName2 = "o2";
type = -1;
}
Instance of Symbol 338 MovieClip in Symbol 340 MovieClip [scene_ground3] Frame 1
//component parameters
onClipEvent (construct) {
roleName = "e3";
roleName2 = "o3";
type = 1;
}
Symbol 346 MovieClip Frame 1
this._visible = false;
Symbol 348 MovieClip Frame 1
function discover() {
if (_root.inSuit) {
if (_root.role._y > _y) {
gotoAndPlay ("u");
} else {
gotoAndPlay ("d");
}
} else {
if (_root.role._y > _y) {
gotoAndStop ("u");
} else {
gotoAndStop ("d");
}
if (_root.inGameOver) {
return(undefined);
}
_root.role.catched();
_root.game_over();
}
}
stop();
_root.depthSort(this);
onEnterFrame = function () {
if (area.hitTest(_root.role.area)) {
discover();
delete this.onEnterFrame;
}
};
Symbol 348 MovieClip Frame 19
stop();
_root.UI_pazzle("password");
Symbol 348 MovieClip Frame 38
stop();
_root.UI_pazzle("password");
Symbol 349 MovieClip Frame 1
function turn(d) {
if (_root.inGameOver) {
return(undefined);
}
gotoAndStop(d);
dir = d;
}
function checkView() {
onEnterFrame = function () {
if (area.hitTest(_root.role.area)) {
discover();
}
};
}
function discover() {
delete this.onEnterFrame;
if (_root.inGameOver) {
return(undefined);
}
emotion._visible = true;
_root.role.catched();
_root.game_over();
}
stop();
_root.depthSort(this);
turn("u");
Symbol 349 MovieClip Frame 2
checkView();
Symbol 349 MovieClip Frame 3
checkView();
Symbol 349 MovieClip Frame 4
checkView();
Symbol 349 MovieClip Frame 5
checkView();
Symbol 349 MovieClip Frame 6
stop();
Symbol 350 MovieClip Frame 1
this._visible = false;
this.onEnterFrame = function () {
if (_root.role.area.hitTest(this)) {
_root.toScence(pos);
delete this.onEnterFrame;
}
};
Symbol 351 MovieClip [scene_ground4] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
type = "suit";
bg_snd = 2;
Instance of Symbol 350 MovieClip in Symbol 351 MovieClip [scene_ground4] Frame 1
//component parameters
onClipEvent (construct) {
pos = "yiyuan";
}
Symbol 359 MovieClip Frame 1
this._visible = false;
Symbol 361 MovieClip [obj_ice] Frame 1
#initclip 33
Object.registerClass("obj_ice", Obj);
#endinitclip
stop();
objName = "obj_ice";
msg = "Ice";
Symbol 367 MovieClip [scene_ice] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
type = "ice";
Symbol 371 MovieClip Frame 1
this._visible = false;
Symbol 373 MovieClip [obj_box5] Frame 1
#initclip 34
Object.registerClass("obj_box5", Obj);
#endinitclip
stop();
objName = "obj_box5";
Symbol 374 MovieClip [scene_ice2] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
type = "ice";
Symbol 380 MovieClip Frame 1
this._visible = false;
Symbol 383 MovieClip Frame 1
function eventStart() {
gotoAndPlay ("open");
}
stop();
Symbol 383 MovieClip Frame 8
stop();
Symbol 383 MovieClip Frame 15
stop();
Symbol 385 MovieClip Frame 8
stop();
Symbol 386 MovieClip [switch_once] Frame 1
#initclip 35
Object.registerClass("switch_once", Switch_once);
#endinitclip
stop();
objName = "switch_once";
Symbol 386 MovieClip [switch_once] Frame 2
stop();
Symbol 387 MovieClip [scene_ice3] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
type = "ice";
Instance of Symbol 386 MovieClip [switch_once] in Symbol 387 MovieClip [scene_ice3] Frame 1
//component parameters
onClipEvent (construct) {
eventObj = "door";
}
Symbol 389 MovieClip Frame 1
Symbol 390 Button
on (rollOver) {
btnRollOver();
}
on (rollOut) {
btnRollOut();
}
Symbol 392 MovieClip Frame 1
this._visible = false;
this.onEnterFrame = function () {
if (_root.role.area.hitTest(this)) {
if (standOn) {
return(undefined);
}
standOn = true;
_root.showHint_obj(obj);
} else {
standOn = false;
}
};
Symbol 395 MovieClip [hole_2] Frame 1
#initclip 36
Object.registerClass("hole_2", Obj);
#endinitclip
function startEvent() {
_parent.ironBall._x = _parent.ironBall._x + 100;
_parent.ironBall.shape._x = _parent.ironBall.shape._x + 100;
this.gotoAndStop(2);
}
stop();
objName = "obj_hole";
msg = "There is a hole,but it's too small to get across.";
Instance of Symbol 392 MovieClip "touch_mc" in Symbol 395 MovieClip [hole_2] Frame 1
//component parameters
onClipEvent (construct) {
obj = "hole";
}
Symbol 395 MovieClip [hole_2] Frame 2
stop();
msg = "It's a big hole";
Symbol 414 MovieClip Frame 1
this._visible = false;
Symbol 414 MovieClip Frame 15
gotoAndPlay (2);
Symbol 435 MovieClip Frame 1
stop();
Symbol 436 MovieClip [obj_ball] Frame 1
#initclip 37
Object.registerClass("obj_ball", Obj_ball);
#endinitclip
stop();
objName = "obj_ball";
can_push = true;
Symbol 436 MovieClip [obj_ball] Frame 2
Symbol 436 MovieClip [obj_ball] Frame 6
startMove();
gotoAndStop (1);
Symbol 437 MovieClip [scene_ironBall] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 436 MovieClip [obj_ball] "ironBall" in Symbol 437 MovieClip [scene_ironBall] Frame 1
//component parameters
onClipEvent (construct) {
targetObj = "hole";
}
Symbol 445 MovieClip Frame 1
this._visible = false;
Symbol 446 MovieClip Frame 1
function startEvent() {
trace("tartEven");
delete this.onEnterFrame;
gotoAndStop ("die_d");
}
function discover() {
if (_root.inGameOver) {
return(undefined);
}
_root.role.catched();
_root.game_over();
delete this.onEnterFrame;
gotoAndStop ("discover");
}
stop();
onEnterFrame = function () {
if (area.hitTest(_root.role.area)) {
discover();
}
};
Symbol 446 MovieClip Frame 2
stop();
Symbol 446 MovieClip Frame 3
stop();
Symbol 448 MovieClip [door_highDepth] Frame 1
#initclip 38
Object.registerClass("door_highDepth", Bg);
#endinitclip
Symbol 449 MovieClip [scene_ironBall2] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 436 MovieClip [obj_ball] in Symbol 449 MovieClip [scene_ironBall2] Frame 1
//component parameters
onClipEvent (construct) {
targetObj = "enemy";
}
Instance of Symbol 436 MovieClip [obj_ball] in Symbol 449 MovieClip [scene_ironBall2] Frame 1
//component parameters
onClipEvent (construct) {
targetObj = "enemy";
}
Instance of Symbol 436 MovieClip [obj_ball] in Symbol 449 MovieClip [scene_ironBall2] Frame 1
//component parameters
onClipEvent (construct) {
targetObj = "enemy";
}
Instance of Symbol 446 MovieClip "enemy" in Symbol 449 MovieClip [scene_ironBall2] Frame 1
//component parameters
onClipEvent (construct) {
moveType = "stand";
dirX = 0;
dirY = -1;
}
Symbol 457 MovieClip Frame 1
this._visible = false;
Symbol 458 MovieClip Frame 1
function checkEvent() {
if (type == "puzzle") {
_root.UI_pazzle(obj);
} else if (type == "item") {
_root.getItem(obj);
}
}
this._visible = false;
this.onEnterFrame = function () {
if (_root.role.area.hitTest(this)) {
if (standOn) {
return(undefined);
}
standOn = true;
checkEvent();
} else {
standOn = false;
}
};
Symbol 473 MovieClip Frame 1
function down(num) {
var toHeight = (num * p);
onEnterFrame = function () {
water._height--;
if (water._height <= toHeight) {
delete this.onEnterFrame;
}
};
}
function up(num) {
var toHeight = (num * p);
onEnterFrame = function () {
water._height++;
if (water._height >= toHeight) {
delete this.onEnterFrame;
}
};
}
var w_all = 3;
var w_now = 0;
var w_left = 3;
var p = (water._height / 3);
water._height = 1;
Symbol 482 MovieClip Frame 1
function down(num) {
var toHeight = (num * p);
onEnterFrame = function () {
water._height--;
if (water._height <= toHeight) {
delete this.onEnterFrame;
if (w_now == 4) {
_root.puzzle.OK = true;
_root.puzzle.play();
}
}
};
}
function up(num) {
var toHeight = (num * p);
onEnterFrame = function () {
water._height++;
if (water._height >= toHeight) {
delete this.onEnterFrame;
if (w_now == 4) {
_root.puzzle.OK = true;
_root.puzzle.play();
}
}
};
}
var w_all = 5;
var w_now = 0;
var w_left = 5;
var p = (water._height / 5);
water._height = 1;
Symbol 491 MovieClip Frame 1
function down(num) {
var toHeight = (num * p);
onEnterFrame = function () {
water._height--;
if (water._height <= toHeight) {
delete this.onEnterFrame;
if (w_now == 4) {
_root.puzzle.OK = true;
_root.puzzle.play();
}
}
};
}
function up(num) {
var toHeight = (num * p);
onEnterFrame = function () {
water._height++;
if (water._height >= toHeight) {
delete this.onEnterFrame;
if (w_now == 4) {
_root.puzzle.OK = true;
_root.puzzle.play();
}
}
};
}
stop();
var w_all = 8;
var w_now = 8;
var w_left = 0;
var p = (water._height / 8);
Symbol 494 MovieClip Frame 1
this._visible = false;
stop();
Symbol 494 MovieClip Frame 2
this._visible = true;
Symbol 494 MovieClip Frame 10
gotoAndPlay (2);
Symbol 495 Button
on (release) {
_parent.getPumb(8, this);
}
Symbol 496 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 25
gotoAndStop (1);
Symbol 497 Button
on (release) {
_parent.getPumb(5, this);
}
Symbol 498 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 25
gotoAndStop (1);
Symbol 498 MovieClip Frame 50
gotoAndStop (1);
Symbol 499 Button
on (release) {
_parent.getPumb(3, this);
}
Symbol 500 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 25
gotoAndStop (1);
Symbol 504 MovieClip [scene_pumbRoom] Frame 1
function pass() {
door.eventStart();
delete touch_mc.onEnterFrame;
}
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 458 MovieClip "touch_mc" in Symbol 504 MovieClip [scene_pumbRoom] Frame 1
//component parameters
onClipEvent (construct) {
type = "puzzle";
obj = "pumb";
}
Symbol 509 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 1
this._visible = false;
Symbol 524 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.role.area.hitTest(area)) {
if (standOn) {
return(undefined);
}
standOn = true;
delete this.onEnterFrame;
_root.role._visible = false;
play();
}
};
Symbol 524 MovieClip Frame 12
stop();
_root.game_over();
Symbol 574 MovieClip Frame 1
this._visible = false;
Symbol 575 MovieClip [scene_room_floor] Frame 1
function pass() {
chest.play();
door.eventStart();
delete p_num.onEnterFrame;
}
stop();
this._name = "Obj_loader";
id = 0;
Symbol 577 MovieClip Frame 1
this._visible = false;
Symbol 578 MovieClip [switch_stand_enemy] Frame 1
#initclip 39
Object.registerClass("switch_stand_enemy", Switch_stand_enemy);
#endinitclip
stop();
objName = "switch_stand";
Symbol 578 MovieClip [switch_stand_enemy] Frame 2
stop();
Symbol 579 MovieClip [scene_room_kill] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
bg_snd = 2;
type = "knife";
Instance of Symbol 30 MovieClip in Symbol 579 MovieClip [scene_room_kill] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = true;
left = false;
}
Instance of Symbol 578 MovieClip [switch_stand_enemy] in Symbol 579 MovieClip [scene_room_kill] Frame 1
//component parameters
onClipEvent (construct) {
eventObj = "door";
standObj = "enemy";
}
Instance of Symbol 30 MovieClip in Symbol 579 MovieClip [scene_room_kill] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = false;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 579 MovieClip [scene_room_kill] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 579 MovieClip [scene_room_kill] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = false;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 579 MovieClip [scene_room_kill] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy_push";
moveType = "line";
dirX = 1;
dirY = 0;
dis = 0;
startPause = 0;
}
Symbol 581 MovieClip Frame 1
this._visible = false;
Symbol 590 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.role.area.hitTest(this)) {
if (standOn) {
return(undefined);
}
standOn = true;
_root.UI_pazzle("number2");
} else {
standOn = false;
}
};
Symbol 593 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 5
_root.getItem("knife");
Symbol 593 MovieClip Frame 12
stop();
_root.gamePause = false;
Symbol 594 MovieClip [scene_room_number] Frame 1
function pass() {
chest.play();
door.eventStart();
delete p_num.onEnterFrame;
}
stop();
this._name = "Obj_loader";
id = 0;
Symbol 597 MovieClip Frame 1
this._visible = false;
Symbol 601 MovieClip [obj_bed] Frame 1
#initclip 40
Object.registerClass("obj_bed", Obj);
#endinitclip
function btnRelease() {
_root.showDiary(1);
}
stop();
objName = "obj_bed";
can_push = true;
msg = "It's a bed.\n Something seems to be under the pillow.";
Symbol 602 MovieClip [scene_room1] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Symbol 604 MovieClip Frame 1
Symbol 605 MovieClip [scene_room2_0] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
bg_snd = 2;
Instance of Symbol 30 MovieClip in Symbol 605 MovieClip [scene_room2_0] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 605 MovieClip [scene_room2_0] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = false;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 605 MovieClip [scene_room2_0] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "stand";
dirX = -1;
dirY = 0;
dis = 0;
startPause = 0;
}
Instance of Symbol 30 MovieClip in Symbol 605 MovieClip [scene_room2_0] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = false;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 605 MovieClip [scene_room2_0] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "circle";
dirX = 0;
dirY = -1;
dis = 0;
startPause = 0;
}
Instance of Symbol 30 MovieClip in Symbol 605 MovieClip [scene_room2_0] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 605 MovieClip [scene_room2_0] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = true;
left = false;
}
Symbol 607 MovieClip Frame 1
this._visible = false;
Symbol 608 MovieClip [scene_room2_1] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
bg_snd = 2;
Instance of Symbol 30 MovieClip in Symbol 608 MovieClip [scene_room2_1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 608 MovieClip [scene_room2_1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = false;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 608 MovieClip [scene_room2_1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = false;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 608 MovieClip [scene_room2_1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = false;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 608 MovieClip [scene_room2_1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 608 MovieClip [scene_room2_1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = false;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 608 MovieClip [scene_room2_1] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "circle";
dirX = 0;
dirY = -1;
dis = 0;
startPause = 0;
}
Instance of Symbol 34 MovieClip in Symbol 608 MovieClip [scene_room2_1] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "circle";
dirX = 0;
dirY = 1;
dis = 0;
startPause = 0;
}
Instance of Symbol 34 MovieClip in Symbol 608 MovieClip [scene_room2_1] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "line";
dirX = 0;
dirY = -1;
dis = 0;
startPause = 0;
}
Symbol 610 MovieClip Frame 1
this._visible = false;
Symbol 611 MovieClip [scene_room3_1] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
bg_snd = 2;
Instance of Symbol 30 MovieClip in Symbol 611 MovieClip [scene_room3_1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 611 MovieClip [scene_room3_1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 611 MovieClip [scene_room3_1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = false;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 611 MovieClip [scene_room3_1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 611 MovieClip [scene_room3_1] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = false;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 611 MovieClip [scene_room3_1] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "circle";
dirX = -1;
dirY = 0;
dis = 0;
startPause = 0;
}
Instance of Symbol 34 MovieClip in Symbol 611 MovieClip [scene_room3_1] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "circle";
dirX = 1;
dirY = 0;
dis = 0;
startPause = 0;
}
Instance of Symbol 34 MovieClip in Symbol 611 MovieClip [scene_room3_1] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "circle";
dirX = 0;
dirY = -1;
dis = 0;
startPause = 0;
}
Symbol 613 MovieClip Frame 1
this._visible = false;
Symbol 614 MovieClip [scene_room3_2] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
bg_snd = 2;
Instance of Symbol 30 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = false;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = false;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "circle";
dirX = -1;
dirY = 0;
dis = 0;
startPause = 0;
}
Instance of Symbol 34 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "circle";
dirX = 0;
dirY = -1;
dis = 0;
startPause = 3000;
}
Instance of Symbol 30 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = true;
right = false;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "circle";
dirX = -1;
dirY = 0;
dis = 0;
startPause = 0;
}
Instance of Symbol 30 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = true;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = true;
left = false;
}
Instance of Symbol 30 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = false;
left = true;
}
Instance of Symbol 30 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = true;
down = false;
right = false;
left = true;
}
Instance of Symbol 34 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy1";
moveType = "circle";
dirX = 1;
dirY = 0;
dis = 0;
startPause = 0;
}
Instance of Symbol 30 MovieClip in Symbol 614 MovieClip [scene_room3_2] Frame 1
//component parameters
onClipEvent (construct) {
id = 0;
up = false;
down = true;
right = true;
left = true;
}
Symbol 617 MovieClip Frame 1
this._visible = false;
Symbol 619 MovieClip Frame 1
this.swapDepths(_parent.getNextHighestDepth());
Symbol 621 MovieClip Frame 1
_parent.setMask(this);
onEnterFrame = function () {
var _local5 = _root.role._x;
var _local4 = _root.role._y;
this._x = _local5;
this._y = _local4;
_parent.light_mc._x = _local5;
_parent.light_mc._y = _local4;
};
Symbol 627 MovieClip [obj_electrcity] Frame 1
#initclip 41
Object.registerClass("obj_electrcity", Obj);
#endinitclip
stop();
objName = "obj_electricty";
msg = "electricty control";
Symbol 630 MovieClip Frame 1
this._visible = false;
Symbol 631 Button
on (release) {
_root.UI_pazzle("button");
}
Symbol 633 MovieClip Frame 1
stop();
Symbol 633 MovieClip Frame 25
stop();
Symbol 634 MovieClip [scene_darkroom] Frame 1
function lightOn() {
light_mc.swapDepths(this.getNextHighestDepth());
mask_mc.swapDepths(this.getNextHighestDepth());
light_mc.removeMovieClip();
mask_mc.removeMovieClip();
lightOn_mc.play();
p_onwall._visible = true;
delete touch_mc1.onEnterFrame;
}
function pass() {
door.eventStart();
delete touch_mc.onEnterFrame;
}
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 458 MovieClip "touch_mc" in Symbol 634 MovieClip [scene_darkroom] Frame 1
//component parameters
onClipEvent (construct) {
type = "puzzle";
obj = "button";
}
Instance of Symbol 458 MovieClip "touch_mc1" in Symbol 634 MovieClip [scene_darkroom] Frame 1
//component parameters
onClipEvent (construct) {
type = "puzzle";
obj = "number";
}
Symbol 659 MovieClip Frame 1
this.swapDepths(5011111);
Symbol 660 MovieClip Frame 1
this._visible = false;
Symbol 661 MovieClip [scene_underground0] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Symbol 664 MovieClip Frame 1
this._visible = false;
Symbol 667 MovieClip [obj_stone] Frame 1
#initclip 42
Object.registerClass("obj_stone", Obj);
#endinitclip
stop();
objName = "obj_stone";
Symbol 668 MovieClip [scene_underground1] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 436 MovieClip [obj_ball] in Symbol 668 MovieClip [scene_underground1] Frame 1
//component parameters
onClipEvent (construct) {
targetObj = "defaultValue";
}
Instance of Symbol 28 MovieClip [obj_switch_stand] in Symbol 668 MovieClip [scene_underground1] Frame 1
//component parameters
onClipEvent (construct) {
eventObj = "door";
}
Instance of Symbol 436 MovieClip [obj_ball] in Symbol 668 MovieClip [scene_underground1] Frame 1
//component parameters
onClipEvent (construct) {
targetObj = "defaultValue";
}
Instance of Symbol 436 MovieClip [obj_ball] in Symbol 668 MovieClip [scene_underground1] Frame 1
//component parameters
onClipEvent (construct) {
targetObj = "defaultValue";
}
Symbol 671 MovieClip Frame 1
Symbol 672 MovieClip [obj_ball2] Frame 1
#initclip 43
Object.registerClass("obj_ball2", Obj);
#endinitclip
function eventStart() {
if (_currentframe > 1) {
return(undefined);
}
play();
}
function eventEnd() {
}
function startMove() {
function checkHit(main) {
var _local2 = _parent[targetObj];
if (shape.hitTest(_local2.shape)) {
_local2.eventStart();
}
}
var Vx = 0;
var Vy = 0;
var dirX = 0;
var dirY = 1;
this.onEnterFrame = function () {
Vy = Vy + 0.2;
if (Vy > 4) {
Vy = 4;
}
var _local6 = dirX * Vx;
var _local5 = dirY * Vy;
_root.moveY(_local5, this);
shape._y = _y - _root.Obj_loader.area._y;
checkHit(this);
if (shape.hitTest(_root.role.shape) && (_root.inGameOver != true)) {
_root.role.gotoAndStop("die");
var _local4 = _parent.getNextHighestDepth();
_root.role.swapDepths(_local4);
this.swapDepths(_local4 + 10);
_root.game_over();
}
if (_root.inGameOver != true) {
_root.depthSort(this);
}
if ((_y + _parent._y) > 700) {
delete this.onEnterFrame;
gotoAndStop (1);
this.swapDepths(_parent.getNextHighestDepth());
shape.removeMovieClip();
this.removeMovieClip();
}
};
}
stop();
objName = "obj_ball2";
can_push = false;
Symbol 672 MovieClip [obj_ball2] Frame 6
startMove();
stop();
Symbol 673 MovieClip [obj_zhuzi] Frame 1
#initclip 44
Object.registerClass("obj_zhuzi", Obj);
#endinitclip
stop();
this._visible = false;
objName = "obj_zhuzi";
can_block = false;
onEnterFrame = function () {
if (((_root.role._y + 60) > _y) && (_currentframe == 1)) {
gotoAndPlay ("out");
}
if (shape.hitTest(_parent.ball.shape)) {
gotoAndPlay ("in");
delete this.onEnterFrame;
}
};
Symbol 673 MovieClip [obj_zhuzi] Frame 2
this._visible = true;
var i = Math.random();
if (i < 0.3) {
gotoAndPlay ("out");
}
Symbol 673 MovieClip [obj_zhuzi] Frame 7
if (i < 0.6) {
gotoAndPlay ("out");
}
Symbol 673 MovieClip [obj_zhuzi] Frame 12
this._visible = true;
can_block = true;
Symbol 673 MovieClip [obj_zhuzi] Frame 35
stop();
Symbol 673 MovieClip [obj_zhuzi] Frame 36
can_block = false;
shape.removeMovieClip();
Symbol 673 MovieClip [obj_zhuzi] Frame 41
stop();
Symbol 674 MovieClip [scene_underground2] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 28 MovieClip [obj_switch_stand] in Symbol 674 MovieClip [scene_underground2] Frame 1
//component parameters
onClipEvent (construct) {
eventObj = "ball";
}
Instance of Symbol 672 MovieClip [obj_ball2] "ball" in Symbol 674 MovieClip [scene_underground2] Frame 1
//component parameters
onClipEvent (construct) {
targetObj = "wall";
}
Symbol 682 MovieClip Frame 1
this._visible = false;
Symbol 684 MovieClip [obj_pingfeng] Frame 1
#initclip 45
Object.registerClass("obj_pingfeng", Obj);
#endinitclip
stop();
objName = "obj_pingfeng";
Symbol 693 MovieClip Frame 1
stop();
objName = "obj_guizi";
msg = "Clothes chest";
this.onEnterFrame = function () {
if (_root.role.area.hitTest(this)) {
if (standOn) {
return(undefined);
}
standOn = true;
_root.getItem("suit");
delete this.onEnterFrame;
} else {
standOn = false;
}
};
Symbol 694 MovieClip [scene_yiyuan] Frame 1
stop();
this._name = "Obj_loader";
id = 0;
Instance of Symbol 350 MovieClip in Symbol 694 MovieClip [scene_yiyuan] Frame 1
//component parameters
onClipEvent (construct) {
pos = "ground4";
}
Symbol 704 Button
on (release) {
play();
}
Symbol 705 MovieClip [screen_diary] Frame 11
stop();
Symbol 705 MovieClip [screen_diary] Frame 23
this.removeMovieClip();
Symbol 706 MovieClip [screen_enter] Frame 8
_root.nextScene();
Symbol 706 MovieClip [screen_enter] Frame 12
_root.addObj();
Symbol 706 MovieClip [screen_enter] Frame 20
_root.sceneStart();
this.removeMovieClip();
Symbol 720 MovieClip Frame 1
gotoAndStop(_root.now_item);
Symbol 720 MovieClip Frame 2
_root.showHint_obj("uniforms");
Symbol 720 MovieClip Frame 3
_root.showHint_obj("box");
Symbol 720 MovieClip Frame 4
_root.showHint_obj("knife");
Symbol 721 MovieClip [screen_item] Frame 11
stop();
_root.useItem(_root.now_item);
Symbol 721 MovieClip [screen_item] Frame 23
_root.end_getItem();
this.removeMovieClip();
Symbol 772 MovieClip Frame 80
stop();
Symbol 791 MovieClip Frame 55
stop();
Symbol 808 MovieClip Frame 1
stop();
Symbol 808 MovieClip Frame 30
Symbol 808 MovieClip Frame 200
stop();
stopAllSounds();
_root.game_toMainMenu();
_parent.play();
Symbol 809 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 816 Button
on (release) {
_root.game_continue();
play();
}
Symbol 817 Button
on (release) {
movie_mc.play();
}
Symbol 818 Button
on (release) {
_root.game_save();
}
Symbol 819 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 820 Button
on (release) {
getURL ("http://www.ifungames.com", _blank);
}
Symbol 821 MovieClip [screen_over] Frame 44
stop();
_root.game_clearDate();
Symbol 821 MovieClip [screen_over] Frame 55
this.removeMovieClip();
Symbol 822 MovieClip [screen_start] Frame 20
_root.sceneStart();
this.removeMovieClip();
Symbol 823 MovieClip [screen_toPos] Frame 8
_root.nextPos();
Symbol 823 MovieClip [screen_toPos] Frame 12
_root.addObj();
Symbol 823 MovieClip [screen_toPos] Frame 20
_root.sceneStart();
this.removeMovieClip();
Symbol 828 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 66
stop();
Symbol 828 MovieClip Frame 67
Symbol 828 MovieClip Frame 103
stop();
_parent._parent.play();
Symbol 828 MovieClip Frame 141
stop();
_parent._parent.play();
Symbol 829 Button
on (release) {
exit();
}
Symbol 832 MovieClip Frame 1
stop();
Symbol 832 MovieClip Frame 6
stop();
Symbol 834 MovieClip Frame 1
stop();
Symbol 834 MovieClip Frame 6
stop();
Symbol 836 MovieClip Frame 1
stop();
Symbol 836 MovieClip Frame 6
stop();
Symbol 838 MovieClip Frame 1
stop();
Symbol 838 MovieClip Frame 6
stop();
Symbol 840 MovieClip Frame 1
function pressBtn(obj, id) {
obj.play();
pushArray.push(id);
if (pushArray.length == 4) {
checkNum();
}
}
function checkNum() {
if (pushArray.toString() == rightArray.toString()) {
_parent.OK = true;
_parent.play();
} else {
reSet();
}
}
function reSet() {
pushArray = [];
b1.gotoAndStop(1);
b2.gotoAndStop(1);
b3.gotoAndStop(1);
b4.gotoAndStop(1);
}
function exit() {
_parent.play();
}
var pushArray = new Array();
var rightArray = new Array(3, 1, 2, 4);
Instance of Symbol 832 MovieClip "b4" in Symbol 840 MovieClip Frame 1
on (release) {
_parent.pressBtn(this, 4);
}
Instance of Symbol 834 MovieClip "b3" in Symbol 840 MovieClip Frame 1
on (release) {
_parent.pressBtn(this, 3);
}
Instance of Symbol 836 MovieClip "b2" in Symbol 840 MovieClip Frame 1
on (release) {
_parent.pressBtn(this, 2);
}
Instance of Symbol 838 MovieClip "b1" in Symbol 840 MovieClip Frame 1
on (release) {
_parent.pressBtn(this, 1);
}
Symbol 841 MovieClip [button] Frame 1
this._visible = false;
Symbol 841 MovieClip [button] Frame 2
this._visible = true;
Symbol 841 MovieClip [button] Frame 8
stop();
Symbol 841 MovieClip [button] Frame 15
_root.end_pazzle();
if (OK) {
_root.Obj_loader.pass();
}
Symbol 841 MovieClip [button] Frame 16
this.removeMovieClip();
Symbol 843 MovieClip Frame 1
stop();
Symbol 843 MovieClip Frame 11
gotoAndStop (1);
Symbol 844 Button
on (release) {
checkNum(num_txt.text);
}
Symbol 865 MovieClip Frame 1
stop();
Symbol 865 MovieClip Frame 2
stop();
Symbol 865 MovieClip Frame 3
stop();
Symbol 865 MovieClip Frame 4
stop();
Symbol 867 MovieClip Frame 1
stop();
this._visible = false;
Symbol 867 MovieClip Frame 6
gotoAndStop (1);
Symbol 868 MovieClip Frame 1
function checkNum(num) {
if (num == answerArray[id - 1]) {
if (id == 4) {
OK();
} else {
id++;
nextNum();
}
} else {
snd_mc.play();
}
num_txt.text = "";
}
function nextNum() {
m1.play();
m2.play();
m3.play();
m4.play();
m5.play();
num_mc.nextFrame();
}
function OK() {
_parent.OK = true;
_parent.play();
}
function exit() {
_parent.play();
}
var id = 1;
var answerArray = new Array(64, 1, 40, 5);
Symbol 869 MovieClip [number] Frame 1
this._visible = false;
Symbol 869 MovieClip [number] Frame 2
this._visible = true;
Symbol 869 MovieClip [number] Frame 8
stop();
Symbol 869 MovieClip [number] Frame 15
_root.end_pazzle();
if (OK) {
_root.Obj_loader.lightOn();
}
Symbol 869 MovieClip [number] Frame 16
this.removeMovieClip();
Symbol 880 MovieClip Frame 1
stop();
Symbol 880 MovieClip Frame 2
trace("fffff");
Symbol 880 MovieClip Frame 38
gotoAndStop (1);
Symbol 880 MovieClip Frame 39
trace("fffff");
Symbol 880 MovieClip Frame 76
stop();
_parent.exit();
Symbol 889 Button
on (release) {
checkNum();
}
Symbol 890 MovieClip Frame 1
function checkNum() {
if (((((Number(t1.text) + Number(t2.text)) + Number(t3.text)) == 9) && (((Number(t3.text) + Number(t4.text)) + Number(t5.text)) == 9)) && (((Number(t5.text) + Number(t6.text)) + Number(t1.text)) == 9)) {
_parent._parent.OK = true;
exit();
}
}
function exit() {
_parent._parent.play();
}
stop();
Symbol 892 MovieClip [number2] Frame 1
this._visible = false;
Symbol 892 MovieClip [number2] Frame 2
this._visible = true;
Symbol 892 MovieClip [number2] Frame 8
stop();
Symbol 892 MovieClip [number2] Frame 15
_root.end_pazzle();
if (OK) {
_root.Obj_loader.pass();
}
Symbol 892 MovieClip [number2] Frame 16
this.removeMovieClip();
Symbol 896 MovieClip Frame 77
stop();
Symbol 896 MovieClip Frame 78
Symbol 896 MovieClip Frame 114
stop();
_parent._parent.play();
Symbol 896 MovieClip Frame 152
stop();
_parent._parent.play();
Symbol 899 MovieClip Frame 1
function checkNum() {
var _local2 = num_txt.text;
if ((_local2 == "Adolf Hitler") || (_local2 == "adolf hitler")) {
_parent.OK = true;
msg2.gotoAndPlay("right");
} else {
msg2.gotoAndPlay("wrong");
}
}
function exit() {
_parent.play();
}
_root.focusManager.setFocus(num_txt);
Symbol 900 MovieClip [password] Frame 1
this._visible = false;
Symbol 900 MovieClip [password] Frame 2
this._visible = true;
Symbol 900 MovieClip [password] Frame 8
stop();
Symbol 900 MovieClip [password] Frame 15
_root.end_pazzle();
if (OK) {
} else {
_root.role.catched();
_root.game_over();
}
Symbol 900 MovieClip [password] Frame 16
this.removeMovieClip();
Symbol 901 MovieClip Frame 1
function getPumb(id, obj) {
if (c == 1) {
pumb_form(id, obj);
c = 2;
obj.show.play();
} else {
pumb_to(id, obj);
c = 1;
h_from.show.gotoAndStop(1);
}
}
function pumb_form(id, obj) {
p_from = this["mc" + id].mc;
h_from = this["handle" + id];
}
function pumb_to(id, obj) {
p_to = this["mc" + id].mc;
if (p_to == p_from) {
return(undefined);
}
if (p_from.w_now == 0) {
trace("\u7A7A");
return(undefined);
}
if (p_to.w_left == 0) {
trace("\u6EE1");
return(undefined);
}
_root.water_snd.start();
if ((p_from == mc5.mc) && (p_to == mc3.mc)) {
handle5.gotoAndPlay("l");
} else if ((p_from == mc5.mc) && (p_to == mc8.mc)) {
handle5.gotoAndPlay("r");
} else if (p_from == mc3.mc) {
handle3.play();
} else if (p_from == mc8.mc) {
handle8.play();
}
if (p_from.w_now < p_to.w_left) {
p_to.w_now = p_to.w_now + p_from.w_now;
p_from.w_now = 0;
p_from.w_left = p_from.w_all;
p_to.w_left = p_to.w_all - p_to.w_now;
} else if (p_from.w_now >= p_to.w_left) {
p_from.w_now = p_from.w_now - p_to.w_left;
p_to.w_now = p_to.w_all;
p_from.w_left = p_from.w_all - p_from.w_now;
p_to.w_left = 0;
}
p_from.num_txt.text = p_from.w_now;
p_to.num_txt.text = p_to.w_now;
p_from.down(p_from.w_now);
p_to.up(p_to.w_now);
}
function down(num) {
var toHeight = (num * p);
onEnterFrame = function () {
water._height--;
if (water._height <= toHeight) {
delete this.onEnterFrame;
}
};
}
function up(num) {
var toHeight = (num * p);
onEnterFrame = function () {
water._height++;
if (water._height >= toHeight) {
delete this.onEnterFrame;
}
};
}
var c = 1;
Symbol 902 Button
on (release) {
_parent.play();
}
Symbol 904 MovieClip [pumb] Frame 1
this._visible = false;
Symbol 904 MovieClip [pumb] Frame 2
this._visible = true;
Symbol 904 MovieClip [pumb] Frame 8
stop();
Symbol 904 MovieClip [pumb] Frame 15
_root.end_pazzle();
if (OK) {
_root.Obj_loader.pass();
}
Symbol 904 MovieClip [pumb] Frame 16
this.removeMovieClip();
Symbol 998 MovieClip Frame 1
this._visible = false;
this.onEnterFrame = function () {
for (var _local4 in _root.enemyArray) {
var _local3 = _root.enemyArray[_local4];
if (_local3.hitTest(this)) {
_local3.killed();
delete this.onEnterFrame;
}
}
};
Symbol 999 MovieClip Frame 11
_parent.stopKill();
Symbol 1006 MovieClip Frame 11
_parent.stopKill();
Symbol 1016 MovieClip Frame 11
_parent.stopKill();
Symbol 1017 MovieClip [role] Frame 1
#initclip 46
Object.registerClass("role", Role);
#endinitclip
stop();
Symbol 1017 MovieClip [role] Frame 2
stop();
Symbol 1017 MovieClip [role] Frame 10
stop();
Symbol 1017 MovieClip [role] Frame 11
stop();
Symbol 1017 MovieClip [role] Frame 19
stop();
Symbol 1017 MovieClip [role] Frame 20
stop();
Symbol 1017 MovieClip [role] Frame 27
stop();
Symbol 1017 MovieClip [role] Frame 28
stop();
Symbol 1017 MovieClip [role] Frame 35
stop();
Symbol 1017 MovieClip [role] Frame 36
stop();
Symbol 1017 MovieClip [role] Frame 44
stop();
Symbol 1017 MovieClip [role] Frame 53
stop();
Symbol 1017 MovieClip [role] Frame 54
stop();
Symbol 1017 MovieClip [role] Frame 62
stop();
Symbol 1017 MovieClip [role] Frame 70
stop();
Symbol 1017 MovieClip [role] Frame 71
stop();
Symbol 1017 MovieClip [role] Frame 79
stop();
Symbol 1017 MovieClip [role] Frame 87
stop();
trace("ddddd");
Symbol 1017 MovieClip [role] Frame 94
stop();
Symbol 1017 MovieClip [role] Frame 101
stop();
Symbol 1017 MovieClip [role] Frame 109
stop();
Symbol 1017 MovieClip [role] Frame 116
stop();
Symbol 1017 MovieClip [role] Frame 123
stop();
Symbol 1017 MovieClip [role] Frame 131
stop();
Symbol 1017 MovieClip [role] Frame 138
stop();
Symbol 1017 MovieClip [role] Frame 145
stop();
Symbol 1017 MovieClip [role] Frame 152
stop();
Symbol 1017 MovieClip [role] Frame 162
stop();
Symbol 1017 MovieClip [role] Frame 171
stop();
Symbol 1017 MovieClip [role] Frame 180
stop();
Symbol 1017 MovieClip [role] Frame 181
stop();
Symbol 1017 MovieClip [role] Frame 186
stop();
Symbol 1017 MovieClip [role] Frame 192
stop();
Symbol 1017 MovieClip [role] Frame 198
stop();
Symbol 1019 MovieClip [role_box] Frame 1
#initclip 47
Object.registerClass("role_box", Role_box);
#endinitclip
stop();
Symbol 1019 MovieClip [role_box] Frame 2
stop();
Symbol 1019 MovieClip [role_box] Frame 10
stop();
Symbol 1019 MovieClip [role_box] Frame 11
stop();
Symbol 1019 MovieClip [role_box] Frame 19
stop();
Symbol 1019 MovieClip [role_box] Frame 20
stop();
Symbol 1019 MovieClip [role_box] Frame 27
stop();
Symbol 1019 MovieClip [role_box] Frame 28
stop();
Symbol 1019 MovieClip [role_box] Frame 35
stop();
Symbol 1019 MovieClip [role_box] Frame 36
stop();
Symbol 1019 MovieClip [role_box] Frame 44
stop();
Symbol 1019 MovieClip [role_box] Frame 53
stop();
Symbol 1019 MovieClip [role_box] Frame 54
stop();
Symbol 1019 MovieClip [role_box] Frame 62
stop();
Symbol 1019 MovieClip [role_box] Frame 70
stop();
Symbol 1019 MovieClip [role_box] Frame 71
stop();
Symbol 1019 MovieClip [role_box] Frame 79
stop();
Symbol 1019 MovieClip [role_box] Frame 87
stop();
trace("ddddd");
Symbol 1019 MovieClip [role_box] Frame 94
stop();
Symbol 1019 MovieClip [role_box] Frame 101
stop();
Symbol 1019 MovieClip [role_box] Frame 109
stop();
Symbol 1019 MovieClip [role_box] Frame 117
stop();
Symbol 1019 MovieClip [role_box] Frame 125
stop();
Symbol 1019 MovieClip [role_box] Frame 132
stop();
Symbol 1019 MovieClip [role_box] Frame 139
stop();
Symbol 1019 MovieClip [role_box] Frame 146
stop();
Symbol 1019 MovieClip [role_box] Frame 156
stop();
Symbol 1019 MovieClip [role_box] Frame 165
stop();
Symbol 1020 MovieClip [role_box_shape] Frame 1
this._visible = false;
Symbol 1030 MovieClip [role_ice] Frame 1
#initclip 48
Object.registerClass("role_ice", Role_ice);
#endinitclip
stop();
Symbol 1030 MovieClip [role_ice] Frame 2
stop();
Symbol 1030 MovieClip [role_ice] Frame 10
stop();
Symbol 1030 MovieClip [role_ice] Frame 11
stop();
Symbol 1030 MovieClip [role_ice] Frame 19
stop();
Symbol 1030 MovieClip [role_ice] Frame 20
stop();
Symbol 1030 MovieClip [role_ice] Frame 27
stop();
Symbol 1030 MovieClip [role_ice] Frame 28
stop();
Symbol 1030 MovieClip [role_ice] Frame 35
stop();
Symbol 1030 MovieClip [role_ice] Frame 36
stop();
Symbol 1030 MovieClip [role_ice] Frame 44
stop();
Symbol 1030 MovieClip [role_ice] Frame 53
stop();
Symbol 1030 MovieClip [role_ice] Frame 54
stop();
Symbol 1030 MovieClip [role_ice] Frame 62
stop();
Symbol 1030 MovieClip [role_ice] Frame 70
stop();
Symbol 1030 MovieClip [role_ice] Frame 71
stop();
Symbol 1030 MovieClip [role_ice] Frame 79
stop();
Symbol 1030 MovieClip [role_ice] Frame 87
stop();
trace("ddddd");
Symbol 1030 MovieClip [role_ice] Frame 94
stop();
Symbol 1030 MovieClip [role_ice] Frame 101
stop();
Symbol 1030 MovieClip [role_ice] Frame 109
stop();
Symbol 1030 MovieClip [role_ice] Frame 117
stop();
Symbol 1030 MovieClip [role_ice] Frame 125
stop();
Symbol 1030 MovieClip [role_ice] Frame 132
stop();
Symbol 1030 MovieClip [role_ice] Frame 139
stop();
Symbol 1030 MovieClip [role_ice] Frame 146
stop();
Symbol 1030 MovieClip [role_ice] Frame 156
stop();
Symbol 1030 MovieClip [role_ice] Frame 165
stop();
Symbol 1032 MovieClip [role_knife] Frame 1
#initclip 49
Object.registerClass("role_knife", Role_knife);
#endinitclip
stop();
Symbol 1032 MovieClip [role_knife] Frame 2
stop();
Symbol 1032 MovieClip [role_knife] Frame 10
stop();
Symbol 1032 MovieClip [role_knife] Frame 11
stop();
Symbol 1032 MovieClip [role_knife] Frame 19
stop();
Symbol 1032 MovieClip [role_knife] Frame 20
stop();
Symbol 1032 MovieClip [role_knife] Frame 27
stop();
Symbol 1032 MovieClip [role_knife] Frame 28
stop();
Symbol 1032 MovieClip [role_knife] Frame 35
stop();
Symbol 1032 MovieClip [role_knife] Frame 36
stop();
Symbol 1032 MovieClip [role_knife] Frame 44
stop();
Symbol 1032 MovieClip [role_knife] Frame 53
stop();
Symbol 1032 MovieClip [role_knife] Frame 54
stop();
Symbol 1032 MovieClip [role_knife] Frame 62
stop();
Symbol 1032 MovieClip [role_knife] Frame 70
stop();
Symbol 1032 MovieClip [role_knife] Frame 71
stop();
Symbol 1032 MovieClip [role_knife] Frame 79
stop();
Symbol 1032 MovieClip [role_knife] Frame 87
stop();
trace("ddddd");
Symbol 1032 MovieClip [role_knife] Frame 94
stop();
Symbol 1032 MovieClip [role_knife] Frame 101
stop();
Symbol 1032 MovieClip [role_knife] Frame 109
stop();
Symbol 1032 MovieClip [role_knife] Frame 116
stop();
Symbol 1032 MovieClip [role_knife] Frame 123
stop();
Symbol 1032 MovieClip [role_knife] Frame 131
stop();
Symbol 1032 MovieClip [role_knife] Frame 138
stop();
Symbol 1032 MovieClip [role_knife] Frame 145
stop();
Symbol 1032 MovieClip [role_knife] Frame 152
stop();
Symbol 1032 MovieClip [role_knife] Frame 162
stop();
Symbol 1032 MovieClip [role_knife] Frame 171
stop();
Symbol 1032 MovieClip [role_knife] Frame 180
stop();
Symbol 1032 MovieClip [role_knife] Frame 181
stop();
Symbol 1032 MovieClip [role_knife] Frame 186
stop();
Symbol 1032 MovieClip [role_knife] Frame 192
stop();
Symbol 1032 MovieClip [role_knife] Frame 198
stop();
Symbol 1032 MovieClip [role_knife] Frame 204
stop();
Symbol 1032 MovieClip [role_knife] Frame 212
stop();
Symbol 1033 MovieClip [role_shape] Frame 1
this._visible = false;
Symbol 1071 MovieClip [role_suit] Frame 1
#initclip 50
Object.registerClass("role_suit", Role_suit);
#endinitclip
stop();
Symbol 1071 MovieClip [role_suit] Frame 2
stop();
Symbol 1071 MovieClip [role_suit] Frame 10
stop();
Symbol 1071 MovieClip [role_suit] Frame 11
stop();
Symbol 1071 MovieClip [role_suit] Frame 19
stop();
Symbol 1071 MovieClip [role_suit] Frame 20
stop();
Symbol 1071 MovieClip [role_suit] Frame 27
stop();
Symbol 1071 MovieClip [role_suit] Frame 28
stop();
Symbol 1071 MovieClip [role_suit] Frame 35
stop();
Symbol 1071 MovieClip [role_suit] Frame 36
stop();
Symbol 1071 MovieClip [role_suit] Frame 44
stop();
Symbol 1071 MovieClip [role_suit] Frame 53
stop();
Symbol 1071 MovieClip [role_suit] Frame 54
stop();
Symbol 1071 MovieClip [role_suit] Frame 62
stop();
Symbol 1071 MovieClip [role_suit] Frame 70
stop();
Symbol 1071 MovieClip [role_suit] Frame 71
stop();
Symbol 1071 MovieClip [role_suit] Frame 79
stop();
Symbol 1071 MovieClip [role_suit] Frame 87
stop();
trace("ddddd");
Symbol 1071 MovieClip [role_suit] Frame 94
stop();
Symbol 1071 MovieClip [role_suit] Frame 101
stop();
Symbol 1071 MovieClip [role_suit] Frame 109
stop();
Symbol 1071 MovieClip [role_suit] Frame 116
stop();
Symbol 1071 MovieClip [role_suit] Frame 123
stop();
Symbol 1071 MovieClip [role_suit] Frame 131
stop();
Symbol 1071 MovieClip [role_suit] Frame 138
stop();
Symbol 1071 MovieClip [role_suit] Frame 145
stop();
Symbol 1071 MovieClip [role_suit] Frame 152
stop();
Symbol 1071 MovieClip [role_suit] Frame 162
stop();
Symbol 1071 MovieClip [role_suit] Frame 171
stop();
Symbol 1071 MovieClip [role_suit] Frame 180
stop();
Symbol 1072 MovieClip Frame 1
stop();
this._visible = false;
Instance of Symbol 165 MovieClip [enemy_push] in Symbol 1072 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
moveType = "random";
dirX = -1;
dirY = 0;
}
Instance of Symbol 125 MovieClip [enemy1] in Symbol 1072 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
moveType = "random";
dirX = -1;
dirY = 0;
}
Instance of Symbol 302 MovieClip [searchlight_mc] in Symbol 1072 MovieClip Frame 11
//component parameters
onClipEvent (construct) {
Vx = 5;
}
Symbol 1159 MovieClip Frame 272
stop();
Symbol 1160 MovieClip Frame 322
_parent.play();
Symbol 1237 Button
on (release) {
_root.game_start();
}
Symbol 1241 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 1245 Button
on (release) {
getURL ("http://www.ifungames.com", _blank);
}
Symbol 1248 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 1253 Button
on (press) {
gotoAndStop (2);
}
Symbol 1258 Button
on (release) {
gotoAndStop (1);
}
Symbol 1259 MovieClip Frame 1
stop();
Symbol 1259 MovieClip Frame 2
stop();
Symbol 1261 Button
on (press) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 1264 MovieClip Frame 1
this._visible = false;
Symbol 1264 MovieClip Frame 52
stop();
Symbol 1266 MovieClip Frame 1
var sceneNum = (_root.save_sceneID + 1);
var i = 0;
while (i < sceneNum) {
var mc = this.attachMovie("levelID_mc", "levelID_mc" + i, 100 + i);
mc._x = 155;
mc._y = 0 + (30 * i);
mc.id_txt.text = i + 1;
trace(i);
i++;
}
Symbol 1272 Button
on (rollOver) {
down();
}
on (rollOut) {
stopScroll();
}
Symbol 1276 Button
on (rollOver) {
up();
}
on (rollOut) {
stopScroll();
}
Symbol 1277 MovieClip Frame 1
function up() {
onEnterFrame = function () {
if ((mc._y + mc._height) < 390) {
return(undefined);
}
mc._y = mc._y - v;
trace("gggg:" + (mc._y + mc._height));
};
}
function down() {
onEnterFrame = function () {
if (mc._y > 100) {
return(undefined);
}
mc._y = mc._y + v;
trace("ffff:" + mc._y);
};
}
function stopScroll() {
delete this.onEnterFrame;
}
var v = 10;
Symbol 1277 MovieClip Frame 11
stop();
Symbol 1277 MovieClip Frame 23
this.removeMovieClip();
Symbol 1296 Button
on (release) {
_parent.play();
}
Symbol 1528 MovieClip Frame 1
function go() {
nextFrame();
}
stop();
var p = setInterval(this, "go", 50);
Symbol 1528 MovieClip Frame 558
stop();
_parent.play();
Symbol 1530 Button
on (release) {
this._parent.play();
}
Symbol 1535 MovieClip Frame 1
function up() {
onEnterFrame = function () {
if ((mc._y + mc._height) < 320) {
return(undefined);
}
mc._y = mc._y - v2;
};
}
function down() {
onEnterFrame = function () {
if (mc._y > 100) {
return(undefined);
}
mc._y = mc._y + v2;
};
}
function stopScroll() {
delete this.onEnterFrame;
}
var v = 0.5;
var v2 = 4;
onEnterFrame = function () {
if ((mc._y + mc._height) < 320) {
return(undefined);
}
mc._y = mc._y - v;
};
Symbol 1545 MovieClip Frame 1
this._visible = false;
Symbol 1545 MovieClip Frame 300
_root.showHint_random();
gotoAndPlay (2);
Symbol 1546 Button
on (release) {
_root.game_toMainMenu();
}
Symbol 1547 Button
on (release) {
_root.game_retry();
}
Symbol 1549 Button
on (press) {
play();
}
Symbol 1555 MovieClip Frame 1
stop();
Symbol 1555 MovieClip Frame 2
stop();
Symbol 1555 MovieClip Frame 3
gotoAndStop (1);
Symbol 1556 MovieClip Frame 1
this.swapDepths(_root.depth_msg);
Instance of Symbol 1555 MovieClip "sound_mc" in Symbol 1556 MovieClip Frame 1
on (release) {
_root.setSound();
}
Symbol 1651 Button
on (release) {
stopAllSounds();
_root.game_toMainMenu();
}
Symbol 1653 MovieClip Frame 1
function go() {
nextFrame();
}
stop();
var p = setInterval(this, "go", 50);
Symbol 1653 MovieClip Frame 210
stop();
clearInterval(p);