Frame 1
((_quality ne "MEDIUM") ? (_quality = "MEDIUM""MEDIUM") : null);
if (_framesloaded == _totalframes) {
gotoAndPlay (11);
}
Instance of Symbol 5 MovieClip "loading_bar" in Frame 1
onClipEvent (enterFrame) {
bar._xscale = _parent.getBytesLoaded() / (_parent.getBytesTotal() / 100);
}
Frame 10
gotoAndPlay (1);
Frame 11
function checkObstacle(direction, l_name, s_name) {
direction--;
sound_walk.gotoAndPlay("on");
c_line_0 = this["line_" + (l_name - 1)];
c_line_1 = this["line_" + l_name];
c_line_2 = this["line_" + (l_name + 1)];
var c_var = co_array_1[direction];
var d_var = co_array_2[direction];
var n_var = co_array_3[direction];
var s_var = this["c_line_" + c_var].substr((s_name + d_var) - 1, 1);
if ((s_var == 0) && ((s_name + d_var) > 0)) {
this["move_" + n_var] = true;
move = true;
} else {
this["move_" + n_var] = false;
move = false;
}
movePlayer();
doDepths();
}
function movePlayer() {
if (move_up) {
player._y = player._y - 4;
if (int((player._y + 27) / 24) == ((player._y + 27) / 24)) {
l_array.reverse();
player_y--;
checkHearts();
move_up = false;
move = false;
}
} else if (move_down) {
player._y = player._y + 4;
if (int((player._y + 27) / 24) == ((player._y + 27) / 24)) {
l_array.reverse();
player_y++;
checkHearts();
move_down = false;
move = false;
}
} else if (move_left) {
player._x = player._x - 4;
if (int((player._x - 9) / 24) == ((player._x - 9) / 24)) {
l_array.reverse();
player_x--;
checkHearts();
move_left = false;
move = false;
}
} else if (move_right) {
player._x = player._x + 4;
if (int((player._x - 9) / 24) == ((player._x - 9) / 24)) {
l_array.reverse();
player_x++;
checkHearts();
move_right = false;
move = false;
}
}
}
function doDepths() {
player.swapDepths((player_y * 100) + 50);
}
function checkHearts() {
var heart_letter = this["h_line_" + player_y].substr(player_x - 1, 1);
if ((heart_letter != null) && (heart_letter != 0)) {
this[(("heart_" + player_y) + "_") + player_x]._visible = false;
var slice_1 = this["h_line_" + player_y].substr(0, player_x - 1);
var slice_2 = this["h_line_" + player_y].substr(player_x, _parent["h_line_" + player_y].length);
this["h_line_" + player_y] = (slice_1 + 0) + slice_2;
delete slice_1;
delete slice_2;
heart_count++;
if (heart_letter ne "a") {
this["panel_" + level]["item_" + heart_letter].gotoAndStop("yes");
_root.sound_got.gotoAndPlay("on");
} else {
_root.sound_heart.gotoAndPlay("on");
}
if (heart_count >= heart_level) {
sound_door.gotoAndPlay("on");
if (level == 1) {
line_10 = "1101111111";
door.gotoAndPlay("open");
} else if (level == 2) {
line_9 = "1000010001";
door_2.gotoAndPlay("open");
} else if (level == 3) {
line_10 = "1111111101";
door_3.gotoAndPlay("open");
}
}
}
}
function locatePlayer(foe_name, foe_x, foe_y, line) {
this[foe_name].p_step = 0;
l_array = new Array();
((player_y < this[foe_name + "_y"]) ? ((l_array = l_array.concat(1))) : null);
((player_y > this[foe_name + "_y"]) ? ((l_array = l_array.concat(2))) : null);
((player_x < this[foe_name + "_x"]) ? ((l_array = l_array.concat(3))) : null);
((player_x > this[foe_name + "_x"]) ? ((l_array = l_array.concat(4))) : null);
var f_direction = l_array[random(l_array.length)];
cf_line_0 = this[line + (foe_y - 1)];
cf_line_1 = this[line + foe_y];
cf_line_2 = this[line + (foe_y + 1)];
var c_var = co_array_1[f_direction - 1];
var d_var = co_array_2[f_direction - 1];
var n_var = co_array_3[f_direction - 1];
var s_var = this["cf_line_" + c_var].substr((foe_x + d_var) - 1, 1);
if (s_var == 0) {
this[foe_name]["move_" + n_var] = true;
this[foe_name].move = true;
} else {
this[foe_name]["move_" + n_var] = false;
this[foe_name].move = false;
}
moveFoe(foe_name);
this[foe_name].gotoAndPlay(n_var);
doFoeDepths(foe_name, this[foe_name + "_d"], this[foe_name + "_y"]);
}
function moveFoe(foe_name) {
if (this[foe_name].move_up) {
this[foe_name]._y = this[foe_name]._y - 4;
if (int((this[foe_name]._y + 27) / 24) == ((this[foe_name]._y + 27) / 24)) {
this[foe_name + "_y"]--;
this[foe_name].move_up = false;
this[foe_name].move = false;
}
} else if (this[foe_name].move_down) {
this[foe_name]._y = this[foe_name]._y + 4;
if (int((this[foe_name]._y + 27) / 24) == ((this[foe_name]._y + 27) / 24)) {
this[foe_name + "_y"]++;
this[foe_name].move_down = false;
this[foe_name].move = false;
}
} else if (this[foe_name].move_left) {
this[foe_name]._x = this[foe_name]._x - 4;
if (int((this[foe_name]._x - 9) / 24) == ((this[foe_name]._x - 9) / 24)) {
this[foe_name + "_x"]--;
this[foe_name].move_left = false;
this[foe_name].move = false;
}
} else if (this[foe_name].move_right) {
this[foe_name]._x = this[foe_name]._x + 4;
if (int((this[foe_name]._x - 9) / 24) == ((this[foe_name]._x - 9) / 24)) {
this[foe_name + "_x"]++;
this[foe_name].move_right = false;
this[foe_name].move = false;
}
}
}
function doFoeDepths(foe_name, decrement, foe_y) {
this[foe_name].swapDepths((foe_y * 100) + decrement);
}
co_array_1 = [0, 2, 1, 1];
co_array_2 = [0, 0, -1, 1];
co_array_3 = ["up", "down", "left", "right"];
function spriteInitialise1() {
player_x = 4;
player_y = 2;
player._x = -39 + (player_x * 24);
player._y = -51 + (player_y * 24);
player.doDepths();
player.gotoAndStop("ellie");
foe_1_x = 9;
foe_1_y = 9;
foe_1._x = -39 + (foe_1_x * 24);
foe_1._y = -51 + (foe_1_y * 24);
foe_1_d = 30;
doFoeDepths("foe_1", foe_1_d, foe_1_y);
foe_2_x = 2;
foe_2_y = 7;
foe_2._x = -39 + (foe_2_x * 24);
foe_2._y = -51 + (foe_2_y * 24);
foe_2_d = 40;
doFoeDepths("foe_2", foe_2_d, foe_2_y);
panel_1.gotoAndStop(1);
panel_1.gotoAndPlay("level_" + level);
}
function spriteInitialise2() {
player_x = 3;
player_y = 2;
player._x = -39 + (player_x * 24);
player._y = -51 + (player_y * 24);
player.doDepths();
player.gotoAndStop("nadine");
foe_1_x = 4;
foe_1_y = 4;
foe_1._x = -39 + (foe_1_x * 24);
foe_1._y = -51 + (foe_1_y * 24);
foe_1_d = 30;
doFoeDepths("foe_1", foe_1_d, foe_1_y);
foe_2_x = 7;
foe_2_y = 7;
foe_2._x = -39 + (foe_2_x * 24);
foe_2._y = -51 + (foe_2_y * 24);
foe_2_d = 40;
doFoeDepths("foe_2", foe_2_d, foe_2_y);
panel_2.gotoAndStop(1);
panel_2.gotoAndPlay("level_" + level);
}
function spriteInitialise3() {
player_x = 6;
player_y = 2;
player._x = -39 + (player_x * 24);
player._y = -51 + (player_y * 24);
player.doDepths();
player.gotoAndStop("magda");
foe_1_x = 4;
foe_1_y = 8;
foe_1._x = -39 + (foe_1_x * 24);
foe_1._y = -51 + (foe_1_y * 24);
foe_1_d = 30;
doFoeDepths("foe_1", foe_1_d, foe_1_y);
foe_2_x = 7;
foe_2_y = 8;
foe_2._x = -39 + (foe_2_x * 24);
foe_2._y = -51 + (foe_2_y * 24);
foe_2_d = 40;
doFoeDepths("foe_2", foe_2_d, foe_2_y);
panel_3.gotoAndStop(1);
panel_3.gotoAndPlay("level_" + level);
}
function spriteInitialise4() {
player_x = 3;
player_y = 3;
player._x = -39 + (player_x * 24);
player._y = -51 + (player_y * 24);
player.doDepths();
player.gotoAndStop("ellie");
panel.gotoAndStop("no");
}
function spriteInitialise5() {
player_x = 8;
player_y = 3;
player._x = -39 + (player_x * 24);
player._y = -51 + (player_y * 24);
player.doDepths();
player.gotoAndStop("nadine");
}
function spriteInitialise6() {
player_x = 6;
player_y = 10;
player._x = -39 + (player_x * 24);
player._y = -51 + (player_y * 24);
player.doDepths();
player.gotoAndStop("magda");
}
function doObstacles() {
var this_depth = 0;
i = 1;
while (i < 11) {
ii = 1;
while (ii < (this["line_" add i].length + 1)) {
this_depth = (i * 100) + 20;
((Number(substring(eval ("line_" + i), ii, 1)) != 0) ? (duplicateMovieClip ("obstacle", (("obstacle_" + i) + "_") + ii, this_depth - ii)) : null);
this[(("obstacle_" + i) + "_") + ii].gotoAndStop(substring(eval ("line_" + i), ii, 1));
this[(("obstacle_" + i) + "_") + ii]._x = (ii * 24) - 39;
this[(("obstacle_" + i) + "_") + ii]._y = (i * 24) - 36;
ii++;
}
i++;
}
obstacles_i = i;
obstacles_ii = ii;
}
function doHearts() {
h_line_1 = "0000000000";
h_line_2 = "00000aaab0";
h_line_3 = "0aaa0a00a0";
h_line_4 = "0aaa0aaaa0";
h_line_5 = "0a00000000";
h_line_6 = "000000aaa0";
h_line_7 = "0daaa0a0a0";
h_line_8 = "0a00a0a0a0";
h_line_9 = "0aaaa0aac0";
h_line_10 = "0000000000";
heart_count = 0;
var this_depth = 0;
i = 1;
while (i < 11) {
ii = 1;
while (ii < (this["h_line_" add i].length + 1)) {
this_depth = (i * 100) + 10;
var letter = (substring(eval ("h_line_" + i), ii, 1));
((Number(letter) != 0) ? (duplicateMovieClip ("heart", (("heart_" + i) + "_") + ii, this_depth - ii)) : null);
this[(("heart_" + i) + "_") + ii].gotoAndStop(letter);
this[(("heart_" + i) + "_") + ii]._x = (ii * 24) - 34;
this[(("heart_" + i) + "_") + ii]._y = (i * 24) - 22;
ii++;
}
i++;
}
}
function doPanelDepths(dialogue_name) {
this[dialogue_name + ""].swapDepths(2000);
trace(this[dialogue_name]);
photo.swapDepths(2001);
panel.swapDepths(2002);
}
function funDead() {
this["panel_" + level].lives.nextFrame();
((this["panel_" + level].lives._currentframe >= 4) ? (gotoAndPlay (101)) : null);
sound_dead.gotoAndPlay("on");
move = false;
foe_1.move = false;
foe_2.move = false;
foe_3.move = false;
i = 0;
while (i < 4) {
this["move_" + co_array_3[i]] = false;
foe_1["move_" + co_array_3[i]] = false;
foe_2["move_" + co_array_3[i]] = false;
foe_3["move_" + co_array_3[i]] = false;
i++;
}
i = 1;
while (i < 11) {
ii = 1;
while (ii < 11) {
this[(("heart_" + i) + "_") + ii]._visible = true;
ii++;
}
i++;
}
doHearts();
doObstacles();
this["spriteInitialise" + level]();
}
line_1 = "1111111111";
line_2 = "1110100001";
line_3 = "100000ab01";
line_4 = "1000100001";
line_5 = "10ef111011";
line_6 = "1111110001";
line_7 = "1000010c01";
line_8 = "10gg000d01";
line_9 = "1000010001";
line_10 = "1111111111";
f_line_1 = "1111111111";
f_line_2 = "1111100001";
f_line_3 = "1111101101";
f_line_4 = "1111100001";
f_line_5 = "1111111011";
f_line_6 = "1111110001";
f_line_7 = "1111110101";
f_line_8 = "1111110101";
f_line_9 = "1111110001";
f_line_10 = "1111111111";
doHearts();
doObstacles();
((panel_o._currentframe != null) ? (removeMovieClip("panel_o")) : null);
((logo.getDepth() != 1999) ? (logo.swapDepths(1999)) : null);
((photo.getDepth() != 2000) ? (photo.swapDepths(2000)) : null);
((panel_1.getDepth() != 2001) ? (panel_1.swapDepths(2001)) : null);
panel_1.gotoAndStop("no");
panel_1.lives.gotoAndStop(1);
photo.gotoAndStop("ellie");
next_level = "wait_level_2";
heart_level = 37;
level = 1;
stop();
Instance of Symbol 73 MovieClip "door" in Frame 11
onClipEvent (enterFrame) {
if ((this._currentframe > 5) && (_parent.player_y == 10)) {
_parent.gotoAndPlay("wait_level_2");
removeMovieClip("");
}
}
Instance of Symbol 87 MovieClip "logo" in Frame 11
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (this._currentframe < 11) {
this.gotoAndPlay("instructions");
} else if (this._currentframe > 15) {
_parent.gotoAndPlay("wait_level_1");
removeMovieClip("");
}
}
}
Frame 21
((photo.getDepth() != 2000) ? (photo.swapDepths(2000)) : null);
((panel_1.getDepth() != 2001) ? (panel_1.swapDepths(2001)) : null);
((dialogue.getDepth() != 1999) ? (dialogue.swapDepths(1999)) : null);
panel_1.gotoAndPlay("level_1");
panel_1.item_b.gotoAndStop("no");
panel_1.item_c.gotoAndStop("no");
panel_1.item_d.gotoAndStop("no");
removeMovieClip("logo");
Instance of Symbol 139 MovieClip "dialogue" in Frame 21
onClipEvent (enterFrame) {
if (Key.isDown(32) && (_parent._currentframe >= 25)) {
_parent.gotoAndPlay("level_1");
removeMovieClip("");
}
}
Frame 30
stop();
Frame 31
spriteInitialise1();
removeMovieClip("dialogue");
Instance of Symbol 160 MovieClip "foe_1" in Frame 31
onClipEvent (enterFrame) {
if ((_parent.player_x == _parent.foe_1_x) && (_parent.player_y == _parent.foe_1_y)) {
_parent.funDead();
}
if (move) {
_parent.moveFoe("foe_1");
} else if (_parent.player_x > 5) {
((p_step == 6) ? (_parent.locatePlayer("foe_1", _parent.foe_1_x, _parent.foe_1_y, "f_line_")) : (p_step++));
}
}
Instance of Symbol 227 MovieClip "player" in Frame 31
onClipEvent (enterFrame) {
if (!_parent.move) {
if (Key.isDown(38)) {
player.gotoAndPlay("up");
_parent.checkObstacle(1, _parent.player_y, _parent.player_x);
} else if (Key.isDown(40)) {
player.gotoAndPlay("down");
_parent.checkObstacle(2, _parent.player_y, _parent.player_x);
} else if (Key.isDown(37)) {
player.gotoAndPlay("left");
_parent.checkObstacle(3, _parent.player_y, _parent.player_x);
} else if (Key.isDown(39)) {
player.gotoAndPlay("right");
_parent.checkObstacle(4, _parent.player_y, _parent.player_x);
}
} else if (_parent.move) {
_parent.movePlayer();
}
}
Instance of Symbol 237 MovieClip "foe_2" in Frame 31
onClipEvent (enterFrame) {
if ((_parent.player_x == _parent.foe_2_x) && (_parent.player_y == _parent.foe_2_y)) {
_parent.funDead();
}
if (move) {
_parent.moveFoe("foe_2");
} else if ((_parent.player_x < 6) && (_parent.player_y > 5)) {
((p_step == 4) ? (_parent.locatePlayer("foe_2", _parent.foe_2_x, _parent.foe_2_y, "line_")) : (p_step++));
}
}
Frame 40
stop();
Frame 41
function doHearts() {
h_line_1 = "0000000000";
h_line_2 = "0a00000ae0";
h_line_3 = "0a000aaaa0";
h_line_4 = "0aag000000";
h_line_5 = "0a0aaaaaa0";
h_line_6 = "0aaaaaa0a0";
h_line_7 = "000000haa0";
h_line_8 = "0aa0a000a0";
h_line_9 = "0faaa000a0";
h_line_10 = "0000000000";
heart_count = 0;
i = 1;
while (i < 11) {
ii = 1;
while (ii < (this["h_line_" add i].length + 1)) {
this_depth = (i * 100) + 10;
var letter = (substring(eval ("h_line_" + i), ii, 1));
((Number(letter) != 0) ? (duplicateMovieClip ("heart", (("heart_" + i) + "_") + ii, this_depth - ii)) : null);
this[(("heart_" + i) + "_") + ii].gotoAndStop(letter);
this[(("heart_" + i) + "_") + ii]._x = (ii * 24) - 34;
this[(("heart_" + i) + "_") + ii]._y = (i * 24) - 22;
ii++;
}
i++;
}
}
removeMovieClip("panel_1");
((photo.getDepth() != 2000) ? (photo.swapDepths(2000)) : null);
((panel_2.getDepth() != 2001) ? (panel_2.swapDepths(2001)) : null);
((dialogue.getDepth() != 1999) ? (dialogue.swapDepths(1999)) : null);
panel_2.gotoAndPlay("level_2");
sound_level.gotoAndPlay("on");
removeMovieClip("player");
removeMovieClip("foe_1");
removeMovieClip("foe_2");
removeMovieClip("door");
i = 1;
while (i < 11) {
ii = 1;
while (ii < 11) {
removeMovieClip((("heart_" + i) + "_") + ii);
removeMovieClip((("obstacle_" + i) + "_") + ii);
ii++;
}
i++;
}
line_1 = "1111111111";
line_2 = "1001111001";
line_3 = "1011100001";
line_4 = "1000111011";
line_5 = "10h0000001";
line_6 = "1000000h01";
line_7 = "1101110001";
line_8 = "1001011101";
line_9 = "1000011101";
line_10 = "1111111111";
photo.gotoAndStop("nadine");
doHearts();
doObstacles();
next_level = "wait_level_3";
heart_level = 37;
level = 2;
play();
Instance of Symbol 73 MovieClip "door" in Frame 41
onClipEvent (enterFrame) {
if ((this._currentframe > 5) && (_parent.player_y == 10)) {
_parent.gotoAndPlay("wait_level_2");
}
}
Instance of Symbol 242 MovieClip "door_2" in Frame 41
onClipEvent (enterFrame) {
if ((_parent._currentframe < 61) && (_parent._currentframe > 50)) {
if (((this._currentframe > 5) && (_parent.player_y == 9)) && (_parent.player_x == 7)) {
_parent.gotoAndPlay("wait_level_3");
removeMovieClip("");
}
}
}
Instance of Symbol 249 MovieClip "dialogue" in Frame 41
onClipEvent (enterFrame) {
if (Key.isDown(32) && (_parent._currentframe >= 45)) {
_parent.gotoAndPlay("level_2");
removeMovieClip("");
}
}
Frame 50
stop();
Frame 51
spriteInitialise2();
removeMovieClip("dialogue");
Instance of Symbol 263 MovieClip "foe_1" in Frame 51
onClipEvent (enterFrame) {
if ((_parent.player_x == _parent.foe_1_x) && (_parent.player_y == _parent.foe_1_y)) {
_parent.funDead();
}
if (move) {
_parent.moveFoe("foe_1");
} else if ((_parent.player_y > 3) && (_parent.player_y < 8)) {
((p_step == 6) ? (_parent.locatePlayer("foe_1", _parent.foe_1_x, _parent.foe_1_y, "line_")) : (p_step++));
}
}
Instance of Symbol 227 MovieClip "player" in Frame 51
onClipEvent (enterFrame) {
if (!_parent.move) {
if (Key.isDown(38)) {
player.gotoAndPlay("up");
_parent.checkObstacle(1, _parent.player_y, _parent.player_x);
} else if (Key.isDown(40)) {
player.gotoAndPlay("down");
_parent.checkObstacle(2, _parent.player_y, _parent.player_x);
} else if (Key.isDown(37)) {
player.gotoAndPlay("left");
_parent.checkObstacle(3, _parent.player_y, _parent.player_x);
} else if (Key.isDown(39)) {
player.gotoAndPlay("right");
_parent.checkObstacle(4, _parent.player_y, _parent.player_x);
}
} else if (_parent.move) {
_parent.movePlayer();
}
}
Instance of Symbol 273 MovieClip "foe_2" in Frame 51
onClipEvent (enterFrame) {
if ((_parent.player_x == _parent.foe_2_x) && (_parent.player_y == _parent.foe_2_y)) {
_parent.funDead();
}
if (move) {
_parent.moveFoe("foe_2");
} else if ((_parent.player_y > 3) && (_parent.player_y < 8)) {
((p_step == 4) ? (_parent.locatePlayer("foe_2", _parent.foe_2_x, _parent.foe_2_y, "line_")) : (p_step++));
}
}
Frame 60
stop();
Frame 61
function doHearts() {
h_line_1 = "0000000000";
h_line_2 = "0laa0aaai0";
h_line_3 = "0a0aaaa0a0";
h_line_4 = "0aaa00aaa0";
h_line_5 = "0aa0000a00";
h_line_6 = "00a0000aa0";
h_line_7 = "0aaa00aaa0";
h_line_8 = "0a0aaaa0a0";
h_line_9 = "0kaaa0aaj0";
h_line_10 = "0000000000";
heart_count = 0;
i = 1;
while (i < 11) {
ii = 1;
while (ii < (this["h_line_" add i].length + 1)) {
this_depth = (i * 100) + 10;
var letter = (substring(eval ("h_line_" + i), ii, 1));
((Number(letter) != 0) ? (duplicateMovieClip ("heart", (("heart_" + i) + "_") + ii, this_depth - ii)) : null);
this[(("heart_" + i) + "_") + ii].gotoAndStop(letter);
this[(("heart_" + i) + "_") + ii]._x = (ii * 24) - 34;
this[(("heart_" + i) + "_") + ii]._y = (i * 24) - 22;
ii++;
}
i++;
}
}
removeMovieClip("panel_2");
((photo.getDepth() != 2000) ? (photo.swapDepths(2000)) : null);
((panel_3.getDepth() != 2001) ? (panel_3.swapDepths(2001)) : null);
((dialogue.getDepth() != 1999) ? (dialogue.swapDepths(1999)) : null);
panel_3.gotoAndPlay("level_3");
sound_level.gotoAndPlay("on");
removeMovieClip("player");
removeMovieClip("foe_1");
removeMovieClip("foe_2");
removeMovieClip("door");
removeMovieClip("door_2");
i = 1;
while (i < 11) {
ii = 1;
while (ii < 11) {
removeMovieClip((("heart_" + i) + "_") + ii);
removeMovieClip((("obstacle_" + i) + "_") + ii);
ii++;
}
i++;
}
line_1 = "1111111111";
line_2 = "1000m00001";
line_3 = "10m0000m01";
line_4 = "1000ij0001";
line_5 = "100l00l0m1";
line_6 = "1m0k00k001";
line_7 = "1000ij0001";
line_8 = "10m0000m01";
line_9 = "10000m0001";
line_10 = "1111111111";
photo.gotoAndStop("magda");
doHearts();
doObstacles();
next_level = "outcome_good";
heart_level = 44;
level = 3;
play();
Instance of Symbol 278 MovieClip "door_3" in Frame 61
onClipEvent (enterFrame) {
if ((_parent._currentframe < 81) && (_parent._currentframe > 70)) {
if (((this._currentframe > 5) && (_parent.player_y == 10)) && (_parent.player_x == 9)) {
removeMovieClip("_parent.player");
_parent.gotoAndPlay("outcome_good");
removeMovieClip("");
}
}
}
Instance of Symbol 285 MovieClip "dialogue" in Frame 61
onClipEvent (enterFrame) {
if (Key.isDown(32) && (_parent._currentframe >= 65)) {
_parent.gotoAndPlay("level_3");
removeMovieClip("");
}
}
Frame 70
stop();
Frame 71
spriteInitialise3();
removeMovieClip("dialogue");
Instance of Symbol 299 MovieClip "foe_1" in Frame 71
onClipEvent (enterFrame) {
if ((_parent.player_x == _parent.foe_1_x) && (_parent.player_y == _parent.foe_1_y)) {
_parent.funDead();
}
if (move) {
_parent.moveFoe("foe_1");
} else if (_parent.player_x < 6) {
((p_step == 6) ? (_parent.locatePlayer("foe_1", _parent.foe_1_x, _parent.foe_1_y, "line_")) : (p_step++));
}
}
Instance of Symbol 227 MovieClip "player" in Frame 71
onClipEvent (enterFrame) {
if (!_parent.move) {
if (Key.isDown(38)) {
player.gotoAndPlay("up");
_parent.checkObstacle(1, _parent.player_y, _parent.player_x);
} else if (Key.isDown(40)) {
player.gotoAndPlay("down");
_parent.checkObstacle(2, _parent.player_y, _parent.player_x);
} else if (Key.isDown(37)) {
player.gotoAndPlay("left");
_parent.checkObstacle(3, _parent.player_y, _parent.player_x);
} else if (Key.isDown(39)) {
player.gotoAndPlay("right");
_parent.checkObstacle(4, _parent.player_y, _parent.player_x);
}
} else if (_parent.move) {
_parent.movePlayer();
}
}
Instance of Symbol 237 MovieClip "foe_2" in Frame 71
onClipEvent (enterFrame) {
if ((_parent.player_x == _parent.foe_2_x) && (_parent.player_y == _parent.foe_2_y)) {
_parent.funDead();
}
if (move) {
_parent.moveFoe("foe_2");
} else if (_parent.player_x > 5) {
((p_step == 4) ? (_parent.locatePlayer("foe_2", _parent.foe_2_x, _parent.foe_2_y, "line_")) : (p_step++));
}
}
Frame 80
stop();
Frame 81
function doHearts() {
h_line_1 = "0000000000";
h_line_2 = "0000000000";
h_line_3 = "0000000000";
h_line_4 = "00a0000a00";
h_line_5 = "00a0000a00";
h_line_6 = "00a0000a00";
h_line_7 = "0000000000";
h_line_8 = "0000aa0000";
h_line_9 = "0000aa0000";
h_line_10 = "0000000000";
heart_count = 0;
var this_depth = 0;
i = 1;
while (i < 11) {
ii = 1;
while (ii < (this["h_line_" add i].length + 1)) {
this_depth = (i * 100) + 10;
var letter = (substring(eval ("h_line_" + i), ii, 1));
((Number(letter) != 0) ? (duplicateMovieClip ("heart", (("heart_" + i) + "_") + ii, this_depth - ii)) : null);
this[(("heart_" + i) + "_") + ii].gotoAndStop(letter);
this[(("heart_" + i) + "_") + ii]._x = (ii * 24) - 34;
this[(("heart_" + i) + "_") + ii]._y = (i * 24) - 22;
ii++;
}
i++;
}
}
sound_level.gotoAndPlay("on");
removeMovieClip("_level0.player");
removeMovieClip("_level0.foe_1");
removeMovieClip("_level0.foe_2");
removeMovieClip("_level0.door");
removeMovieClip("_level0.door");
removeMovieClip("_level0.door_2");
removeMovieClip("_level0.door_2");
removeMovieClip("_level0.door_3");
removeMovieClip("_level0.door_3");
i = 1;
while (i < 11) {
ii = 1;
while (ii < 11) {
removeMovieClip((("heart_" + i) + "_") + ii);
removeMovieClip((("obstacle_" + i) + "_") + ii);
ii++;
}
i++;
}
line_1 = "1111111111";
line_2 = "1001111001";
line_3 = "1001111001";
line_4 = "1001111001";
line_5 = "1001111001";
line_6 = "1001111001";
line_7 = "1000000001";
line_8 = "1m000000m1";
line_9 = "10m0000m01";
line_10 = "1111111111";
timer = 0;
level = 4;
doHearts();
doObstacles();
spriteInitialise4();
play();
Instance of Symbol 227 MovieClip "player" in Frame 81
onClipEvent (enterFrame) {
if (((_parent.player_y == 7) && (_parent.player_x > 3)) && (_parent.player_x < 8)) {
_parent.sound_got.gotoAndPlay("on");
_parent["girl_" + (_parent.level - 3)].gotoAndStop(((_parent.level - 3) * 10) - 4);
_parent.level++;
if (_parent.level == 7) {
_parent.gotoAndPlay("good");
removeMovieClip("");
} else {
_parent["spriteInitialise" + _parent.level]();
}
}
if (!_parent.move) {
if (Key.isDown(38)) {
player.gotoAndPlay("up");
_parent.checkObstacle(1, _parent.player_y, _parent.player_x);
} else if (Key.isDown(40)) {
player.gotoAndPlay("down");
_parent.checkObstacle(2, _parent.player_y, _parent.player_x);
} else if (Key.isDown(37)) {
player.gotoAndPlay("left");
_parent.checkObstacle(3, _parent.player_y, _parent.player_x);
} else if (Key.isDown(39)) {
player.gotoAndPlay("right");
_parent.checkObstacle(4, _parent.player_y, _parent.player_x);
}
} else if (_parent.move) {
_parent.movePlayer();
}
}
Frame 93
stop();
Frame 94
((photo.getDepth() != 2000) ? (photo.swapDepths(2000)) : null);
((panel_o.getDepth() != 2001) ? (panel_o.swapDepths(2001)) : null);
((outcome.getDepth() != 1999) ? (outcome.swapDepths(1999)) : null);
outcome.gotoAndPlay("loop");
stop();
Frame 99
timer++;
trace(panel.getDepth());
Frame 100
if (timer == 20) {
i = 1;
while (i < 11) {
ii = 1;
while (ii < 11) {
removeMovieClip((("heart_" + i) + "_") + ii);
removeMovieClip((("obstacle_" + i) + "_") + ii);
ii++;
}
i++;
}
removeMovieClip("outcome");
gotoAndPlay (11);
} else {
gotoAndPlay (97);
}
Frame 101
function doHearts() {
h_line_1 = "0000000000";
h_line_2 = "0000000000";
h_line_3 = "0000000000";
h_line_4 = "00a0000a00";
h_line_5 = "00a0000a00";
h_line_6 = "00a0000a00";
h_line_7 = "0000000000";
h_line_8 = "0000aa0000";
h_line_9 = "0000aa0000";
h_line_10 = "0000000000";
heart_count = 0;
var this_depth = 0;
i = 1;
while (i < 11) {
ii = 1;
while (ii < (this["h_line_" add i].length + 1)) {
this_depth = (i * 100) + 10;
var letter = (substring(eval ("h_line_" + i), ii, 1));
((Number(letter) != 0) ? (duplicateMovieClip ("heart", (("heart_" + i) + "_") + ii, this_depth - ii)) : null);
this[(("heart_" + i) + "_") + ii].gotoAndStop(letter);
this[(("heart_" + i) + "_") + ii]._x = (ii * 24) - 34;
this[(("heart_" + i) + "_") + ii]._y = (i * 24) - 22;
ii++;
}
i++;
}
}
removeMovieClip("panel_1");
removeMovieClip("panel_2");
removeMovieClip("panel_3");
panel_o.gotoAndPlay("no");
sound_bad.gotoAndPlay("on");
removeMovieClip("_level0.player");
removeMovieClip("_level0.foe_1");
removeMovieClip("_level0.foe_2");
removeMovieClip("_level0.door");
removeMovieClip("_level0.door");
removeMovieClip("_level0.door_2");
removeMovieClip("_level0.door_2");
removeMovieClip("_level0.door_3");
removeMovieClip("_level0.door_3");
i = 1;
while (i < 11) {
ii = 1;
while (ii < 11) {
removeMovieClip((("_level0.heart_" + i) + "_") + ii);
removeMovieClip((("_level0.obstacle_" + i) + "_") + ii);
ii++;
}
i++;
}
line_1 = "1111111111";
line_2 = "1001111001";
line_3 = "1001111001";
line_4 = "1001111001";
line_5 = "1001111001";
line_6 = "1001111001";
line_7 = "1000000001";
line_8 = "1m000000m1";
line_9 = "10m0000m01";
line_10 = "1111111111";
timer = 0;
level = 4;
doHearts();
doObstacles();
play();
Frame 118
timer++;
Frame 119
((photo.getDepth() != 2000) ? (photo.swapDepths(2000)) : null);
((panel_o.getDepth() != 2001) ? (panel_o.swapDepths(2001)) : null);
((outcome.getDepth() != 1999) ? (outcome.swapDepths(1999)) : null);
outcome.gotoAndPlay("loop");
stop();
Frame 125
if (timer == 20) {
gotoAndPlay (11);
i = 1;
while (i < 11) {
ii = 1;
while (ii < 11) {
removeMovieClip((("heart_" + i) + "_") + ii);
removeMovieClip((("obstacle_" + i) + "_") + ii);
ii++;
}
i++;
}
removeMovieClip("outcome");
} else {
gotoAndPlay (1);
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 2
stop();
Symbol 35 MovieClip Frame 3
stop();
Symbol 35 MovieClip Frame 4
stop();
Symbol 35 MovieClip Frame 5
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
stop();
Symbol 62 MovieClip Frame 3
stop();
Symbol 62 MovieClip Frame 4
stop();
Symbol 62 MovieClip Frame 5
stop();
Symbol 64 MovieClip Frame 5
stop();
Symbol 64 MovieClip Frame 10
gotoAndStop (1);
Symbol 68 MovieClip Frame 5
stop();
Symbol 68 MovieClip Frame 10
gotoAndStop (1);
Symbol 70 MovieClip Frame 5
stop();
Symbol 70 MovieClip Frame 10
gotoAndStop (1);
Symbol 73 MovieClip Frame 5
stop();
Symbol 73 MovieClip Frame 10
stop();
Symbol 75 MovieClip Frame 5
stop();
Symbol 75 MovieClip Frame 15
gotoAndStop (1);
Symbol 77 MovieClip Frame 5
stop();
Symbol 77 MovieClip Frame 30
gotoAndStop (1);
Symbol 87 MovieClip Frame 10
stop();
Symbol 87 MovieClip Frame 20
stop();
Symbol 96 MovieClip Frame 10
stop();
Symbol 96 MovieClip Frame 20
stop();
Symbol 96 MovieClip Frame 30
stop();
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 2
stop();
Symbol 102 MovieClip Frame 3
stop();
Symbol 102 MovieClip Frame 4
stop();
Symbol 105 MovieClip Frame 5
stop();
Symbol 105 MovieClip Frame 10
stop();
Symbol 105 MovieClip Frame 15
stop();
Symbol 106 MovieClip Frame 5
stop();
Symbol 106 MovieClip Frame 10
stop();
Symbol 106 MovieClip Frame 15
stop();
Symbol 107 MovieClip Frame 5
stop();
Symbol 107 MovieClip Frame 10
stop();
Symbol 107 MovieClip Frame 15
stop();
Symbol 110 MovieClip Frame 5
stop();
Symbol 110 MovieClip Frame 10
stop();
Symbol 110 MovieClip Frame 15
stop();
Symbol 113 MovieClip Frame 5
stop();
Symbol 113 MovieClip Frame 10
stop();
Symbol 113 MovieClip Frame 15
stop();
Symbol 116 MovieClip Frame 5
stop();
Symbol 116 MovieClip Frame 10
stop();
Symbol 116 MovieClip Frame 15
stop();
Symbol 119 MovieClip Frame 5
stop();
Symbol 119 MovieClip Frame 10
stop();
Symbol 119 MovieClip Frame 15
stop();
Symbol 122 MovieClip Frame 5
stop();
Symbol 122 MovieClip Frame 10
stop();
Symbol 122 MovieClip Frame 15
stop();
Symbol 125 MovieClip Frame 5
stop();
Symbol 125 MovieClip Frame 10
stop();
Symbol 125 MovieClip Frame 15
stop();
Symbol 128 MovieClip Frame 5
stop();
Symbol 128 MovieClip Frame 10
stop();
Symbol 128 MovieClip Frame 15
stop();
Symbol 131 MovieClip Frame 5
stop();
Symbol 131 MovieClip Frame 10
stop();
Symbol 131 MovieClip Frame 15
stop();
Symbol 132 MovieClip Frame 5
stop();
Symbol 132 MovieClip Frame 15
stop();
Symbol 132 MovieClip Frame 25
stop();
Symbol 132 MovieClip Frame 36
stop();
Symbol 160 MovieClip Frame 5
stop();
Symbol 160 MovieClip Frame 15
stop();
Symbol 160 MovieClip Frame 25
stop();
Symbol 160 MovieClip Frame 35
stop();
Symbol 160 MovieClip Frame 45
stop();
Symbol 182 MovieClip Frame 5
stop();
Symbol 182 MovieClip Frame 15
stop();
Symbol 182 MovieClip Frame 25
stop();
Symbol 182 MovieClip Frame 35
stop();
Symbol 182 MovieClip Frame 45
stop();
Symbol 204 MovieClip Frame 5
stop();
Symbol 204 MovieClip Frame 15
stop();
Symbol 204 MovieClip Frame 25
stop();
Symbol 204 MovieClip Frame 35
stop();
Symbol 204 MovieClip Frame 45
stop();
Symbol 226 MovieClip Frame 5
stop();
Symbol 226 MovieClip Frame 15
stop();
Symbol 226 MovieClip Frame 25
stop();
Symbol 226 MovieClip Frame 35
stop();
Symbol 226 MovieClip Frame 45
stop();
Symbol 227 MovieClip Frame 10
stop();
Symbol 227 MovieClip Frame 20
stop();
Symbol 227 MovieClip Frame 30
stop();
Symbol 237 MovieClip Frame 5
stop();
Symbol 237 MovieClip Frame 15
stop();
Symbol 237 MovieClip Frame 25
stop();
Symbol 237 MovieClip Frame 35
stop();
Symbol 237 MovieClip Frame 45
stop();
Symbol 242 MovieClip Frame 5
stop();
Symbol 242 MovieClip Frame 10
stop();
Symbol 263 MovieClip Frame 5
stop();
Symbol 263 MovieClip Frame 11
stop();
Symbol 263 MovieClip Frame 17
stop();
Symbol 263 MovieClip Frame 23
stop();
Symbol 263 MovieClip Frame 29
stop();
Symbol 273 MovieClip Frame 5
stop();
Symbol 273 MovieClip Frame 15
stop();
Symbol 273 MovieClip Frame 25
stop();
Symbol 273 MovieClip Frame 35
stop();
Symbol 273 MovieClip Frame 45
stop();
Symbol 278 MovieClip Frame 5
stop();
Symbol 278 MovieClip Frame 10
stop();
Symbol 299 MovieClip Frame 5
stop();
Symbol 299 MovieClip Frame 15
stop();
Symbol 299 MovieClip Frame 25
stop();
Symbol 299 MovieClip Frame 35
stop();
Symbol 299 MovieClip Frame 45
stop();
Symbol 302 MovieClip Frame 5
stop();
Symbol 302 MovieClip Frame 15
stop();
Symbol 302 MovieClip Frame 25
stop();
Symbol 302 MovieClip Frame 35
stop();
Symbol 304 MovieClip Frame 5
stop();
Symbol 304 MovieClip Frame 35
gotoAndStop (1);
Symbol 307 MovieClip Frame 5
stop();
Symbol 307 MovieClip Frame 6
if (!timer_toggle) {
timer = 0;
timer_toggle = true;
}
Symbol 307 MovieClip Frame 15
timer++;
if (timer == 15) {
i = 1;
while (i < 11) {
ii = 1;
while (ii < 11) {
removeMovieClip((("_parent.heart_" + i) + "_") + ii);
removeMovieClip((("_parent.obstacle_" + i) + "_") + ii);
ii++;
}
i++;
}
removeMovieClip("_parent.photo");
_parent.gotoAndPlay("check");
timer_toggle = false;
removeMovieClip("");
} else {
gotoAndPlay (6);
}
Symbol 310 MovieClip Frame 5
stop();
Symbol 310 MovieClip Frame 6
if (!timer_toggle) {
timer = 0;
timer_toggle = true;
}
Symbol 310 MovieClip Frame 15
timer++;
if (timer == 15) {
i = 1;
while (i < 11) {
ii = 1;
while (ii < 11) {
removeMovieClip((("_parent.heart_" + i) + "_") + ii);
removeMovieClip((("_parent.obstacle_" + i) + "_") + ii);
ii++;
}
i++;
}
removeMovieClip("_parent.photo");
_parent.gotoAndPlay("check");
timer_toggle = false;
removeMovieClip("");
} else {
gotoAndPlay (6);
}