Frame 2
if (_root.getBytesTotal() == _root.getBytesLoaded()) {
gotoAndPlay (4);
}
Frame 5
function TurnOn() {
y = 1;
while (5 >= y) {
x = 1;
while (5 >= x) {
this[("h" + x) + y].gotoAndStop("oncomplete");
x++;
}
y++;
}
}
function Click(x, y) {
holestatinc = 0;
xvals = new Array(-1, 1, 0, 0);
yvals = new Array(0, 0, -1, 1);
moves++;
j = 0;
while (j < 4) {
nx = x + xvals[j];
ny = y + yvals[j];
mc = ("h" + nx) + ny;
if (this[mc]._x) {
this[mc].Swap();
}
j++;
}
if (!resetbutton.reset) {
resetbutton.gotoAndStop(2);
}
if (PuzzleSolved()) {
if (0 < solver.count) {
stop();
} else {
gotoAndPlay (139);
}
}
}
function ReadPuzzle(wp) {
var puzzlines = new Array();
puzzlines = puzzles[wp].split("|");
j = 0;
while (j < 5) {
puzzarray[j] = new Array();
puzzarray[j] = puzzlines[j].split(",");
j++;
}
}
function PuzzleSolved() {
y = 0;
while (4 >= y) {
x = 0;
while (4 >= x) {
if (puzzarray[y][x] == 1) {
return(0);
}
x++;
}
y++;
}
solved = true;
return(1);
}
function ShowPuzzle() {
solver.stop();
solved = false;
moves = 0;
holestatinc = 1;
holestats = 0;
var x;
var y;
var knob;
y = 0;
while (y < 5) {
x = 0;
while (x < 5) {
knob = ("h" + (x + 1)) + (y + 1);
if ((puzzarray[y][x] == 1) && (this[knob].status == 0)) {
this[knob].gotoAndPlay("on");
holestats++;
}
if ((puzzarray[y][x] == 0) && (this[knob].status == 1)) {
this[knob].gotoAndPlay("off");
holestats++;
}
if (this[knob].solution == 1) {
this[knob].base.gotoAndPlay("solutionoff");
}
x++;
}
y++;
}
timer.startTime = getTimer();
activebuttons = true;
resetbutton.gotoAndStop(1);
solvebutton.gotoAndStop(1);
randombutton.gotoAndStop(1);
_parent.activebuttons = true;
}
function Reset() {
y = 1;
while (5 >= y) {
x = 1;
while (5 >= x) {
this[("h" + x) + y].base.gotoAndStop(1);
x++;
}
y++;
}
}
function SolvePuzzle() {
var hint = new Array();
hint[0] = new Array(0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0);
hint[1] = new Array(1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0);
hint[2] = new Array(1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0);
hint[3] = new Array(1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1);
hint[4] = new Array(0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0);
hint[5] = new Array(0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0);
hint[6] = new Array(0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0);
hint[7] = new Array(1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1);
hint[8] = new Array(0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1);
hint[9] = new Array(1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1);
hint[10] = new Array(0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0);
hint[11] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1);
hint[12] = new Array(0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0);
hint[13] = new Array(1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0);
hint[14] = new Array(1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0);
hint[15] = new Array(0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1);
hint[16] = new Array(0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1);
hint[17] = new Array(0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0);
hint[18] = new Array(0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1);
hint[19] = new Array(1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1);
hint[20] = new Array(0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0);
hint[21] = new Array(0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1);
hint[22] = new Array(0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0);
goal = new Array();
j = 0;
while (j < 5) {
goal[j] = new Array(0, 0, 0, 0, 0);
j++;
}
var current_state = new Array();
var hint_vector = new Array();
i = 0;
while (i < 23) {
hint_vector[i] = 0;
if (puzzarray[i % 5][int(i / 5)] == 0) {
current_state[i] = 0;
} else {
current_state[i] = 1;
}
i++;
}
i = 0;
while (i < 23) {
j = 0;
while (j < 23) {
hint_vector[i] = (hint_vector[i] + (current_state[j] * hint[i][j])) % 2;
j++;
}
i++;
}
i = 0;
while (i < 23) {
goal[i % 5][int(i / 5)] = hint_vector[i];
i++;
}
Reset();
}
function ShowSolution() {
y = 0;
while (y < 5) {
x = 0;
while (x < 5) {
if (goal[y][x] == 1) {
this[("h" + (x + 1)) + (y + 1)].base.gotoAndPlay("solutionon");
} else {
this[("h" + (x + 1)) + (y + 1)].base.gotoAndStop(1);
}
x++;
}
y++;
}
}
activebuttons = false;
puzzarray = new Array();
puzzles = new Array();
puzzles[1] = "1,1,0,1,1|1,0,1,0,1|0,1,1,1,0|1,0,1,0,1|1,1,0,1,1";
puzzles[2] = "0,1,0,1,0|1,1,0,1,1|0,1,0,1,0|1,0,1,0,1|1,0,1,0,1";
puzzles[3] = "1,0,0,0,1|1,1,0,1,1|0,0,1,0,0|1,0,1,0,0|1,0,1,1,0";
puzzles[4] = "1,1,0,1,1|0,0,0,0,0|1,1,0,1,1|0,0,0,0,1|1,1,0,0,0";
puzzles[5] = "1,1,1,1,1|1,1,1,1,1|1,1,1,1,1|1,1,1,1,1|1,1,1,1,1";
puzzles[6] = "0,1,1,1,0|1,0,0,0,1|1,0,1,0,1|1,0,0,0,1|0,1,1,1,0";
puzzles[6] = "0,0,0,1,1|0,0,0,1,1|0,0,0,0,0|1,1,0,0,0|1,1,0,0,0";
puzzles[7] = "0,0,0,0,0|0,1,1,1,0|1,1,1,1,1|0,1,1,1,0|0,0,0,0,0";
puzzles[8] = "0,0,0,0,0|0,1,1,1,0|0,1,1,1,0|0,1,1,1,0|0,0,0,0,0";
puzzles[9] = "1,1,0,1,1|1,1,0,1,1|0,0,0,0,0|1,1,0,1,1|1,1,0,1,1";
puzzles[10] = "1,1,1,1,1|0,1,1,1,0|0,0,1,0,0|0,1,1,1,0|1,1,1,1,1";
puzzles[11] = "1,1,1,1,1|1,0,0,0,1|1,0,0,0,1|1,0,0,0,1|1,1,1,1,1";
puzzles[12] = "0,0,1,1,1|0,0,0,1,1|1,0,0,0,1|1,1,0,0,0|1,1,1,0,0";
puzzles[13] = "1,0,0,0,1|0,1,0,1,0|0,0,1,0,0|0,1,0,1,0|1,0,0,0,1";
puzzles[14] = "1,1,1,1,1|1,0,1,0,1|1,1,1,1,1|1,0,1,0,1|1,1,1,1,1";
puzzles[15] = "1,0,0,0,0|1,1,1,1,0|1,1,1,1,0|1,1,1,1,0|1,1,1,1,1";
puzzles[16] = "1,1,1,1,1|1,1,1,1,1|1,1,0,1,1|1,1,1,1,1|1,1,1,1,1";
puzzles[17] = "1,0,1,0,1|0,1,0,1,0|0,0,1,0,0|0,1,0,1,0|1,0,1,0,1";
puzzles[18] = "1,1,1,0,1|1,1,1,0,1|0,0,0,0,0|1,0,1,1,1|1,0,1,1,1";
puzzles[19] = "1,1,0,1,1|1,1,0,1,1|1,1,0,1,1|1,1,0,1,1|1,1,0,1,1";
puzzles[20] = "1,1,1,1,1|1,0,0,0,1|1,1,0,1,1|1,1,0,1,1|1,1,1,1,1";
puzzles[21] = "1,1,1,1,1|1,1,1,1,1|0,0,0,1,1|0,0,0,1,1|0,0,0,1,1";
puzzles[22] = "1,1,1,0,1|1,1,1,0,0|1,1,1,0,0|1,1,1,0,0|1,1,1,0,1";
puzzles[23] = "1,1,1,1,1|0,0,1,0,0|0,0,1,0,0|0,0,1,0,0|1,1,1,1,1";
puzzles[24] = "0,0,0,0,0|0,1,1,0,0|0,1,1,1,0|0,0,1,1,0|0,0,0,0,0";
puzzles[25] = "0,0,0,1,1|0,0,1,1,1|0,0,1,0,0|1,1,1,0,0|1,1,0,0,0";
puzzles[26] = "0,0,0,1,1|1,1,0,1,1|1,1,0,0,0|1,1,0,0,0|1,1,0,1,1";
puzzles[27] = "1,0,0,0,1|0,1,1,1,0|0,1,1,1,0|0,1,1,1,0|1,0,0,0,1";
puzzles[28] = "1,0,1,0,1|0,1,0,1,0|1,0,1,0,1|0,1,0,1,0|1,0,1,0,1";
puzzles[29] = "0,0,1,0,0|1,0,0,1,0|0,1,1,1,1|1,0,0,0,0|1,1,0,1,0";
puzzles[30] = "0,0,0,0,1|0,0,0,1,1|0,0,1,0,1|0,1,0,0,1|1,1,1,1,1";
puzzles[31] = "1,1,0,1,1|0,1,0,1,0|1,1,1,1,1|1,1,0,1,1|1,0,0,0,1";
puzzles[32] = "0,1,1,0,0|0,1,1,0,1|0,1,0,0,1|1,1,0,0,0|1,1,1,1,0";
puzzles[33] = "0,0,0,0,1|1,1,1,0,0|1,0,1,1,1|1,1,1,1,0|1,0,0,1,0";
puzzles[34] = "1,0,1,1,1|0,0,1,0,1|0,0,0,0,0|1,1,1,1,0|1,1,0,1,0";
puzzles[35] = "1,1,0,1,1|0,1,0,1,1|0,0,0,1,0|1,1,0,0,0|1,1,1,1,0";
puzzles[36] = "1,1,1,1,1|0,0,0,1,0|0,1,0,1,1|1,1,1,0,1|1,0,1,0,0";
puzzles[37] = "0,0,0,1,1|1,0,1,1,0|0,0,1,0,0|0,1,1,1,1|1,0,0,1,0";
puzzles[38] = "0,0,0,0,1|0,0,1,1,1|1,1,0,0,1|1,1,1,0,0|0,0,1,0,0";
puzzles[39] = "0,0,1,1,1|1,0,1,1,1|1,1,1,0,0|0,0,1,0,0|1,1,0,1,1";
puzzles[40] = "0,1,1,1,1|0,0,1,1,1|0,0,1,1,1|1,1,1,1,0|0,0,0,1,0";
puzzles[41] = "1,1,1,1,1|1,0,0,0,0|0,1,0,0,1|0,0,0,1,1|1,1,1,1,1";
puzzles[42] = "1,1,1,1,1|1,0,0,0,0|0,0,1,0,0|0,1,1,1,0|0,1,0,0,1";
puzzles[43] = "0,0,0,0,0|0,0,0,1,0|1,1,0,1,1|0,1,1,0,0|1,1,1,1,1";
puzzles[44] = "0,0,0,1,1|0,1,1,0,0|0,1,0,0,0|1,1,1,1,0|1,1,1,1,0";
puzzles[45] = "0,0,0,1,0|1,1,1,1,1|0,0,0,0,0|0,0,1,0,0|1,1,1,1,0";
puzzles[46] = "0,1,0,1,0|0,0,0,1,0|0,1,0,1,0|0,0,1,0,0|0,1,1,1,0";
puzzles[47] = "1,0,0,1,0|0,0,0,0,1|0,1,0,0,0|0,0,0,0,0|1,0,1,0,0";
puzzles[48] = "1,1,0,0,1|0,1,0,0,1|0,1,1,1,1|0,1,0,1,0|1,1,1,1,1";
puzzles[49] = "1,1,1,1,1|0,0,1,0,0|0,1,1,0,0|0,0,1,1,0|1,1,1,0,1";
puzzles[50] = "1,0,1,0,1|1,0,1,0,0|0,0,0,1,1|0,1,0,1,0|1,0,0,1,0";
puzzles[51] = "0,1,0,1,0|1,0,0,1,0|0,1,1,1,1|1,0,1,0,0|0,1,1,0,0";
puzzles[52] = "1,1,1,1,1|1,1,0,0,0|0,0,0,1,1|0,1,1,1,0|0,0,1,0,0";
puzzsize = puzzles.length - 1;
chooser.levelnum = 1;
popSound = new Sound();
popSound.attachSound("pop");
winSound = new Sound();
winSound.attachSound("winsound");
lewbeep = new Sound();
lewbeep.attachSound("lewbeep");
app = "allout1.2";
Instance of Symbol 44 MovieClip "solver" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 76 MovieClip "chooser" in Frame 5
onClipEvent (load) {
maxlevel = _parent.puzzles.length - 1;
newlevelnum = "01";
}
Instance of Symbol 83 MovieClip "timer" in Frame 5
onClipEvent (enterFrame) {
if (!_parent.solved) {
elapsed = Math.round((getTimer() - startTime) / 1000);
minutes = int(elapsed / 60);
seconds = elapsed % 60;
if (seconds < 10) {
seconds = "0" + seconds;
}
_parent.elapsed = (minutes + ":") + seconds;
}
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 145 MovieClip "scroll" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 150 MovieClip "mouselevelind" in Frame 5
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible == true) {
this.startDrag(true);
}
}
Instance of Symbol 247 MovieClip "enet" in Frame 5
onClipEvent (load) {
eflashon = 0;
version = "v.1.2";
jweb = 0;
quit = 0;
screensaver = 0;
downloadlinkurl = "http://enetwork.ncbuy.com/downloads/ntcallout.html";
}
Frame 28
title.play();
lewlegsframe = 1;
if (random(10) == 1) {
lewlegsframe = random(3) + 1;
}
Frame 95
lew.gotoAndPlay("entrance");
Frame 133
ReadPuzzle(chooser.levelnum);
ShowPuzzle();
stop();
Frame 145
if (sfx) {
winSound.start();
}
Frame 187
stop();
chooser.gotoAndPlay("next");
Frame 222
help.gotoAndStop("stop");
stop();
Frame 223
help.gotoAndPlay("walk");
Frame 247
helpbutton.gotoAndStop(1);
gotoAndStop (134);
Instance of Symbol 16 MovieClip "preloadbar" in Symbol 17 MovieClip Frame 1
onClipEvent (load) {
totalbytes = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
bytesloaded = _root.getBytesLoaded();
_xscale = (100 * (bytesloaded / totalbytes));
_parent.percent = int(_xscale) + "%";
if (bytesloaded == totalbytes) {
_parent._parent.play();
}
}
Symbol 32 MovieClip Frame 1
_parent.stop();
Symbol 32 MovieClip Frame 61
_parent.play();
Symbol 36 MovieClip Frame 1
stop();
_parent.solution = 0;
Symbol 36 MovieClip Frame 2
_parent.solution = 1;
Symbol 36 MovieClip Frame 8
stop();
Symbol 36 MovieClip Frame 13
gotoAndStop (1);
Symbol 40 Button
on (press) {
if (!_parent.activebuttons) {
return(undefined);
}
if (_parent.sfx) {
_parent.popSound.start();
}
Swap();
if (solution == 1) {
base.gotoAndPlay("solutionoff");
}
_parent.Click(x, y);
}
on (rollOver) {
if (status) {
gotoAndStop (19);
}
base.gotoAndStop("solutionoff");
}
on (rollOut, dragOut) {
if (status) {
gotoAndStop (8);
}
if (!solution) {
base.gotoAndStop(1);
}
}
Symbol 42 MovieClip Frame 1
function Swap() {
if (status == 0) {
_parent.puzzarray[y - 1][x - 1] = 1;
gotoAndPlay (4);
} else {
_parent.puzzarray[y - 1][x - 1] = 0;
gotoAndPlay (12);
}
}
status = 0;
x = Number(_name.charAt(1));
y = Number(_name.charAt(2));
stop();
Symbol 42 MovieClip Frame 4
status = 1;
Symbol 42 MovieClip Frame 6
stop();
status = 1;
_parent.holestats = _parent.holestats - _parent.holestatinc;
Symbol 42 MovieClip Frame 12
status = 0;
Symbol 42 MovieClip Frame 14
status = 0;
stop();
_parent.holestats = _parent.holestats - _parent.holestatinc;
Symbol 44 MovieClip Frame 1
stop();
count = 0;
complete = 0;
Symbol 44 MovieClip Frame 2
do {
if (23 < count) {
complete = 1;
}
y = count % 5;
x = int(count / 5);
count++;
} while ((_parent.goal[y][x] != 1) and (complete != 1));
if (23 < count) {
gotoAndStop (1);
} else {
_parent[("h" + (x + 1)) + (y + 1)].base.gotoAndPlay("solutionon");
}
Symbol 44 MovieClip Frame 14
_parent[("h" + (x + 1)) + (y + 1)].Swap();
_parent.Click(x + 1, y + 1);
if (_parent.sfx) {
_parent.popSound.start();
}
Symbol 44 MovieClip Frame 25
if (24 < count) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Symbol 57 Button
on (press) {
if (_parent.holestats == 0) {
gotoAndPlay (15);
next = true;
buttonpause.dir = "next";
buttonpause.gotoAndPlay(2);
}
}
on (release, releaseOutside) {
next = false;
btn = false;
buttonpause.gotoAndStop(1);
_parent.mouselevelind._visible = false;
}
Symbol 62 Button
on (press) {
if (_parent.holestats == 0) {
gotoAndPlay (7);
back = true;
buttonpause.dir = "back";
buttonpause.gotoAndPlay(2);
}
}
on (release, releaseOutside) {
back = false;
btn = false;
buttonpause.gotoAndStop(1);
_parent.mouselevelind._visible = false;
}
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 12
_parent.btn = true;
_parent.gotoAndPlay(dir);
_parent._parent.mouselevelind._visible = true;
Symbol 68 Button
on (press) {
if (_parent.holestats == 0) {
levelnum = 2;
gotoAndPlay (7);
back = true;
buttonpause.dir = "back";
}
}
on (release, dragOut) {
back = false;
btn = false;
buttonpause.gotoAndStop(1);
}
Symbol 73 Button
on (press) {
if (_parent.holestats == 0) {
levelnum = maxlevel - 1;
gotoAndPlay (15);
next = true;
buttonpause.dir = "next";
}
}
on (release, dragOut) {
next = false;
btn = false;
buttonpause.gotoAndStop(1);
_parent.mouselevelind._visible = false;
}
Symbol 76 MovieClip Frame 1
function nextLevel(d) {
levelnum = levelnum + d;
if (levelnum < 1) {
levelnum = maxlevel;
} else if (maxlevel < levelnum) {
levelnum = 1;
}
if (levelnum < 10) {
s = "0";
} else {
s = "";
}
newlevelnum = s + levelnum;
lnum.levelnum = newlevelnum;
}
stop();
_parent.solver.gotoAndStop(1);
nextLevel(0);
Instance of Symbol 65 MovieClip "buttonpause" in Symbol 76 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 76 MovieClip Frame 7
lnum.levelnum = newlevelnum;
mli = levelnum - 1;
if (mli < 1) {
mli = maxlevel;
}
_parent.mouselevelind.levelnum = mli;
Symbol 76 MovieClip Frame 11
nextLevel(-1);
levelnum2 = levelnum + 1;
if (btn) {
gotoAndPlay (7);
}
Symbol 76 MovieClip Frame 12
gotoAndStop (1);
_parent.ReadPuzzle(levelnum);
_parent.ShowPuzzle();
Symbol 76 MovieClip Frame 15
lnum.levelnum = newlevelnum;
mli = levelnum + 1;
if (maxlevel < mli) {
mli = 1;
}
_parent.mouselevelind.levelnum = mli;
Symbol 76 MovieClip Frame 19
nextLevel(1);
if (btn) {
gotoAndPlay (15);
}
Symbol 76 MovieClip Frame 20
gotoAndStop (1);
_parent.ReadPuzzle(levelnum);
_parent.ShowPuzzle();
Symbol 79 Button
on (release) {
gotoAndStop (2);
}
Symbol 80 Button
on (release) {
gotoAndStop (1);
}
Symbol 81 MovieClip Frame 1
_parent.sfx = 1;
stop();
Symbol 81 MovieClip Frame 2
_parent.sfx = 0;
Symbol 100 Button
on (release) {
_parent.lew.gotoAndPlay("solution");
_parent.activebuttons = false;
gotoAndStop (2);
_parent.randombutton.gotoAndStop(2);
}
Symbol 102 MovieClip Frame 1
stop();
Symbol 109 Button
on (release) {
_parent.solver.gotoAndStop(1);
_parent.lew.action = "reset";
_parent.lew.gotoAndPlay("clickbutton");
gotoAndStop (1);
}
Symbol 110 MovieClip Frame 1
stop();
reset = 0;
Symbol 110 MovieClip Frame 2
reset = 1;
Symbol 116 Button
on (release) {
_parent.solver.gotoAndStop(1);
_parent.lew.action = "random";
_parent.lew.gotoAndPlay("clickbutton");
gotoAndStop (2);
}
Symbol 118 MovieClip Frame 1
stop();
Symbol 124 Button
on (release) {
gotoAndStop (2);
_parent.lew.action = "help";
_parent.lew.gotoAndPlay("clickbutton");
}
Symbol 126 MovieClip Frame 1
stop();
Symbol 139 Button
on (release) {
this.gotoAndPlay("close");
_parent.lew.action = "solve";
}
Symbol 144 Button
on (release) {
this.gotoAndPlay("close");
_parent.lew.action = "nosolve";
_parent.solvebutton.gotoAndStop(1);
_parent.randombutton.gotoAndStop(1);
}
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 69
gotoAndPlay (16);
Symbol 145 MovieClip Frame 80
_parent.lew.play();
Symbol 145 MovieClip Frame 84
gotoAndStop (1);
_visible = false;
Symbol 161 Button
on (release) {
getURL (downloadlinkurl, "new");
}
Symbol 166 Button
on (release) {
if (menustatus) {
menu.gotoAndStop("off");
enetstatus--;
} else {
menu.gotoAndStop("on");
enetstatus++;
clickhere.gotoAndStop("stopmenu");
}
}
Symbol 170 Button
on (release) {
getURL ("http://www.netcent.com", "new");
}
Symbol 176 Button
on (release) {
if (copyright._currentframe == 1) {
copyright.gotoAndStop("on");
enetstatus++;
} else {
copyright.gotoAndStop("off");
enetstatus--;
}
}
Symbol 182 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 10
blinkCount++;
if (23 < blinkCount) {
gotoAndStop (25);
}
Symbol 183 MovieClip Frame 23
textframe++;
if (4 < textframe) {
textframe = 1;
}
text.gotoAndStop(textframe);
gotoAndPlay (1);
Symbol 183 MovieClip Frame 25
stop();
text.gotoAndStop("menu");
Symbol 200 Button
on (release) {
getURL (url, "new");
}
Symbol 201 MovieClip Frame 1
if (bg) {
var barcolor = new Color(bgcolor);
barcolor.setRGB(bg);
}
Symbol 209 Button
on (release) {
getURL ("http://www.ncbuy.com" + qualifier, "new");
}
Symbol 214 Button
on (release) {
_parent.enetstatus--;
gotoAndStop (1);
}
Symbol 219 Button
on (release) {
getURL ("http://enetwork.ncbuy.com" + qualifier, "new");
}
Symbol 220 MovieClip Frame 1
_parent.menustatus = 0;
stop();
Symbol 220 MovieClip Frame 2
_parent.menustatus = 1;
qualifier = "?ref=ncbuyenetwork&app=" + _root.app;
ncbuy1.label = "ASTROLOGY";
ncbuy2.label = "BUSINESS CENTER";
ncbuy3.label = "CARTOONS & COMICS";
ncbuy4.label = "CONTESTS & SWEEPSTAKES";
ncbuy5.label = "CURRENT NEWS";
ncbuy6.label = "ENTERTAINMENT CENTER";
ncbuy7.label = "FREE STUFF";
ncbuy8.label = "GAMEHOUSE - GO PLAY!";
ncbuy9.label = "HOME & LEISURE";
ncbuy10.label = "INTERNET SHOPPING";
ncbuy11.label = "JOKE CENTER";
ncbuy12.label = "LOTTO & GAMBLING";
ncbuy13.label = "TRAVEL CENTER";
ncbuy14.label = "WEATHER CONDITIONS";
ncbuy15.label = "SEARCH THE NET";
ncbuy16.label = "AFFILIATE PROGRAMS";
ncbuy17.label = "DOWNLOADS - MORE APPS";
ncbuy18.label = "REGISTER - JOIN TODAY";
ncbuy19.label = "WEBMASTERS - FOR YOUR SITE";
ncbuy15.bg = 10092492 /* 0x99FFCC */;
ncbuy16.bg = 10092492 /* 0x99FFCC */;
ncbuy17.bg = 16763904 /* 0xFFCC00 */;
ncbuy18.bg = 16763904 /* 0xFFCC00 */;
ncbuy19.bg = 16763904 /* 0xFFCC00 */;
ncbuy1.url = "http://www.ncbuy.com/entertainment/astrology/" + qualifier;
ncbuy2.url = "http://www.ncbuy.com/business/" + qualifier;
ncbuy3.url = "http://www.ncbuy.com/entertainment/cartoons/" + qualifier;
ncbuy4.url = "http://www.ncbuy.com/entertainment/contests/" + qualifier;
ncbuy5.url = "http://www.ncbuy.com/news/" + qualifier;
ncbuy6.url = "http://www.ncbuy.com/entertainment/" + qualifier;
ncbuy7.url = "http://www.ncbuy.com/directories/freestuff/" + qualifier;
ncbuy8.url = "http://www.ncbuy.com/entertainment/gamehouse/" + qualifier;
ncbuy9.url = "http://www.ncbuy.com/homeleisure/" + qualifier;
ncbuy10.url = "http://www.ncbuy.com/shopping/" + qualifier;
ncbuy11.url = "http://jokes.ncbuy.com/" + qualifier;
ncbuy12.url = "http://www.ncbuy.com/entertainment/lotteries/" + qualifier;
ncbuy13.url = "http://www.ncbuy.com/homeleisure/travel/" + qualifier;
ncbuy14.url = "http://weather.ncbuy.com/" + qualifier;
ncbuy15.url = "http://search.ncbuy.com/" + qualifier;
ncbuy16.url = "http://affiliate.ncbuy.com/" + qualifier;
ncbuy17.url = "http://enetwork.ncbuy.com/downloads/" + qualifier;
ncbuy18.url = "http://enetwork.ncbuy.com/register/" + qualifier;
ncbuy19.url = "http://enetwork.ncbuy.com/webmasters/" + qualifier;
Symbol 222 Button
on (release) {
gotoAndStop (1);
_parent.enetstatus--;
}
Symbol 226 Button
on (press) {
if (_ymouse < slider.top) {
slider._y = slider.top;
} else if (slider.btm < _ymouse) {
slider._y = slider.btm;
} else {
slider._y = _ymouse;
}
}
Symbol 231 Button
on (press) {
startDrag (this, true, 0, top, 0, btm);
}
on (release) {
stopDrag();
}
Symbol 234 Button
on (press) {
movetext = -1;
}
on (release) {
movetext = 0;
}
Symbol 235 Button
on (press) {
movetext = 1;
}
on (release) {
movetext = 0;
}
Instance of Symbol 232 MovieClip "slider" in Symbol 236 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.movetext != 0) {
sliderpos = _y + ((dy / _parent._parent.text.maxscroll) * _parent.movetext);
if (sliderpos < top) {
sliderpos = top;
} else if (btm < sliderpos) {
sliderpos = btm;
}
_y = sliderpos;
}
percent = (_y - top) / dy;
_parent._parent.text.scroll = _parent._parent.text.maxscroll * percent;
}
onClipEvent (load) {
top = -70;
btm = 70;
dy = btm - top;
inc = 4;
}
Symbol 242 MovieClip Frame 1
stop();
movetext = 0;
_parent.eflashstatus = 0;
Symbol 242 MovieClip Frame 2
_parent.eflashstatus = 1;
play();
Symbol 242 MovieClip Frame 3
loadVariables ("http://www.netcent.com/dynamic/enet/eflash.txt", this);
loadloop = 0;
Symbol 242 MovieClip Frame 4
if (end == "foo") {
gotoAndStop (6);
} else {
loadloop++;
if (200 < loadloop) {
loadloop = 0;
gotoAndStop (14);
}
}
Symbol 242 MovieClip Frame 5
gotoAndPlay (4);
Symbol 242 MovieClip Frame 6
text = update;
stop();
Symbol 244 Button
on (release) {
gotoAndStop (1);
_parent.enetstatus--;
}
Symbol 246 MovieClip Frame 1
stop();
movetext = 0;
Symbol 247 MovieClip Frame 1
stop();
fscommand ("ARG");
fscommand ("ARG", "connectState");
fscommand ("SYSINFO.CONNECTSTATE");
Instance of Symbol 183 MovieClip "clickhere" in Symbol 247 MovieClip Frame 1
onClipEvent (load) {
textframe = 1;
}
Instance of Symbol 246 MovieClip "copyright" in Symbol 247 MovieClip Frame 1
onClipEvent (load) {
text = "NCBUY ENTERTAINMENT NETWORK APPLICATION LICENSE AGREEMENT\n\nACCEPTANCE: By installing or using the NCBuy Entertainment Network Application (\"Software\") you are agreeing to the terms of this License Agreement (\"Agreement\"). Please read this Agreement carefully.\n\nThis is an Agreement between you, either individually or as a representative of your company or institution and NetCent Communications (the \"Company\").\n\nYOU MAY redistribute the software freely, providing that: (a) The Software is not modified in any way; and (b) All credits and copyright notices remain intact.\n\nYOU MAY NOT: (a) Sublicense, sell, assign, transfer, pledge, distribute, rent or remove any proprietary notices on the Software except as expressly permitted in this Agreement; (b) Use, copy, adapt, disassemble, decompile, reverse engineer or modify the Software, in whole or in part, except as expressly permitted in this Agreement; or (c) Take any action designed to unlock or bypass any Company-implemented restrictions on usage, access to, or number of installations of the Software.\n\nIF YOU DO ANY OF THE FOREGOING, YOUR RIGHTS UNDER THIS LICENSE WILL AUTOMATICALLY TERMINATE. SUCH TERMINATION SHALL BE IN ADDITION TO AND NOT IN LIEU OF ANY CRIMINAL, CIVIL OR OTHER REMEDIES AVAILABLE TO THE COMPANY.\n\nThe Company does not warrant that the functions contained in the Software will meet your requirements or expectations or that the operation of the Software will be entirely error free, or appear precisely as described in the Software documentation.\n\nDISCLAIMER OF WARRANTY AND REMEDY: EXCEPT AS SPECIFICALLY STATED IN THIS AGREEMENT, THE SOFTWARE IS PROVIDED \"AS IS\" AND THERE ARE NO WARRANTIES OR CONDITIONS (EXPRESSED OR IMPLIED, ARISING BY STATUTE OR OTHERWISE IN LAW OR FROM A COURSE OF DEALING OR USAGE OF TRADE) FOR THE SOFTWARE. THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY, AND EFFORT IS WITH YOU, THE USER. THE COMPANY AND ITS DIRECT AND INDIRECT SUPPLIERS DISCLAIM ALL IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY, MERCHANTABLE QUALITY OR FITNESS FOR ANY PURPOSE, PARTICULAR, SPECIFIC OR OTHERWISE.\n\nLIMITATION OF LIABILITY: TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT WILL THE COMPANY OR ITS DIRECT OR INDIRECT SUPPLIERS BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING LOST PROFITS, LOST SAVINGS, OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES, ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE, EVEN IF THE COMPANY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\nYOU ACKNOWLEDGE THAT YOU HAVE READ THIS AGREEMENT AND BY INSTALLING THIS SOFTWARE, INDICATE YOUR ACCEPTANCE OF ITS TERMS AND CONDITIONS. YOU ALSO AGREE THAT THIS IS THE COMPLETE AGREEMENT BETWEEN YOU AND THE COMPANY AND IT SUPERSEDES ANY OTHER INFORMATION YOU MAY HAVE RECEIVED RELATING TO THE SUBJECT MATTER OF THIS AGREEMENT.\n\nThe NCBuy Entertainment Network ( http://enetwork.ncbuy.com/ ) is a service of NetCent Communications. Copyright 2002, NetCent Communications, All Rights Reserved.\n";
}
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 6
stop();
Symbol 256 MovieClip Frame 1
stop();
gotoAndStop(_root.lewlegsframe);
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 17
gotoAndStop (1);
Symbol 267 MovieClip Frame 107
gotoAndPlay (1);
Symbol 267 MovieClip Frame 113
stop();
Symbol 267 MovieClip Frame 185
gotoAndPlay (1);
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 11
hair.gotoAndPlay("bounce");
Symbol 273 MovieClip Frame 38
gotoAndStop (1);
Symbol 273 MovieClip Frame 54
eye.gotoAndPlay("lookdown");
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 23
tap--;
if (tap < 0) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Symbol 296 MovieClip Frame 1
stop();
stillcount = 0;
smokeinterval = 3;
Instance of Symbol 284 MovieClip "lewrightarm" in Symbol 296 MovieClip Frame 1
onClipEvent (load) {
tap = -1;
}
onClipEvent (enterFrame) {
if ((random(150) == 25) && (tap < 0)) {
tap = random(3) + 1;
play();
}
}
Symbol 296 MovieClip Frame 2
head.gotoAndStop(1);
Symbol 296 MovieClip Frame 42
if (random(25) == 10) {
head.eye.gotoAndPlay("lookaround");
}
Symbol 296 MovieClip Frame 91
stillcount++;
if (smokeinterval < stillcount) {
stillcount = 0;
smokeinterval = random(6) + 4;
gotoAndPlay (93);
} else {
gotoAndPlay (2);
}
Symbol 296 MovieClip Frame 143
head.gotoAndStop(2);
Symbol 296 MovieClip Frame 187
head.gotoAndPlay("blowsmoke");
Symbol 296 MovieClip Frame 270
gotoAndPlay (2);
Symbol 296 MovieClip Frame 274
head.eye.gotoAndPlay("lookdownforward");
head.gotoAndStop(2);
Symbol 296 MovieClip Frame 279
head.hair.gotoAndPlay("bounce");
Symbol 296 MovieClip Frame 286
if (_parent.sfx) {
_parent.lewbeep.start();
}
Symbol 296 MovieClip Frame 294
head.eye.gotoAndPlay("blink");
head.hair.gotoAndPlay("bounce");
if (action == "reset") {
with (_parent) {
ReadPuzzle(chooser.levelnum);
ShowPuzzle();
}
} else if (action == "random") {
with (_parent) {
do {
newlevel = random(50) + 1;
} while (newlevel == chooser.levelnum);
chooser.levelnum = newlevel - 1;
chooser.gotoAndPlay("next");
}
} else if (action == "solve") {
_parent.SolvePuzzle();
_parent.solver.play();
} else if (action == "help") {
_parent.gotoAndPlay("help");
}
Symbol 296 MovieClip Frame 297
gotoAndPlay (2);
Symbol 296 MovieClip Frame 300
head.gotoAndStop("entrance");
Symbol 296 MovieClip Frame 362
gotoAndPlay (2);
Symbol 296 MovieClip Frame 383
_parent.scroll._visible = true;
_parent.scroll.gotoAndPlay("open");
Symbol 296 MovieClip Frame 391
stop();
Symbol 296 MovieClip Frame 409
if (action == "nosolve") {
_parent.activebuttons = true;
gotoAndPlay (2);
} else {
gotoAndPlay (271);
}
Symbol 301 Button
on (release) {
_parent.play();
}
Symbol 314 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 11
gotoAndPlay (1);
Symbol 315 MovieClip Frame 12
deadguy1.gotoAndStop(2);
deadguy2.eyes.gotoAndPlay(8);