Combined Code
frame 1 {
stop();
}
movieClip 14 {
}
movieClip 16 {
}
movieClip 17 {
instance preloadbar of movieClip 16 {
onClipEvent (load) {
totalbytes = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
bytesloaded = _root.getBytesLoaded();
_xscale = 100 * (bytesloaded / totalbytes);
_parent.percent = int(_xscale) + '%';
if (bytesloaded == totalbytes) {
_parent._parent.play();
}
}
}
}
movieClip 30 {
frame 1 {
_parent.stop();
}
frame 64 {
_parent.play();
}
}
frame 3 {
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(137);
}
}
}
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');
}
movieClip 34 {
frame 1 {
stop();
_parent.solution = 0;
}
frame 2 {
_parent.solution = 1;
}
frame 8 {
stop();
}
frame 13 {
gotoAndStop(1);
}
}
movieClip 36 {
}
button 38 {
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);
}
}
}
movieClip 40 {
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();
}
frame 4 {
status = 1;
}
frame 6 {
stop();
status = 1;
_parent.holestats -= _parent.holestatinc;
}
frame 12 {
status = 0;
}
frame 14 {
status = 0;
stop();
_parent.holestats -= _parent.holestatinc;
}
}
movieClip 41 {
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();
}
frame 4 {
status = 1;
}
frame 6 {
stop();
status = 1;
_parent.holestats -= _parent.holestatinc;
}
frame 12 {
status = 0;
}
frame 14 {
status = 0;
stop();
_parent.holestats -= _parent.holestatinc;
}
}
movieClip 43 {
frame 1 {
stop();
count = 0;
complete = 0;
}
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');
}
}
frame 14 {
_parent['h' + (x + 1) + (y + 1)].Swap();
_parent.Click(x + 1, y + 1);
if (_parent.sfx) {
_parent.popSound.start();
}
}
frame 25 {
if (24 < count) {
gotoAndStop(1);
} else {
gotoAndPlay(2);
}
}
}
instance solver of movieClip 43 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 50 {
}
button 56 {
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;
}
}
button 61 {
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;
}
}
movieClip 64 {
frame 1 {
stop();
}
frame 12 {
_parent.btn = true;
_parent.gotoAndPlay(dir);
_parent._parent.mouselevelind._visible = true;
}
}
button 67 {
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);
}
}
button 72 {
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;
}
}
movieClip 75 {
frame 1 {
function nextLevel(d) {
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 buttonpause of movieClip 64 {
onClipEvent (load) {
_visible = false;
}
}
frame 7 {
lnum.levelnum = newlevelnum;
mli = levelnum - 1;
if (mli < 1) {
mli = maxlevel;
}
_parent.mouselevelind.levelnum = mli;
}
frame 11 {
nextLevel(-1);
levelnum2 = levelnum + 1;
if (btn) {
gotoAndPlay(7);
}
}
frame 12 {
gotoAndStop(1);
_parent.ReadPuzzle(levelnum);
_parent.ShowPuzzle();
}
frame 15 {
lnum.levelnum = newlevelnum;
mli = levelnum + 1;
if (maxlevel < mli) {
mli = 1;
}
_parent.mouselevelind.levelnum = mli;
}
frame 19 {
nextLevel(1);
if (btn) {
gotoAndPlay(15);
}
}
frame 20 {
gotoAndStop(1);
_parent.ReadPuzzle(levelnum);
_parent.ShowPuzzle();
}
}
instance chooser of movieClip 75 {
onClipEvent (load) {
maxlevel = _parent.puzzles.length - 1;
newlevelnum = '01';
}
}
button 78 {
on (release) {
gotoAndStop(2);
}
}
button 79 {
on (release) {
gotoAndStop(1);
}
}
movieClip 80 {
frame 1 {
_parent.sfx = 1;
stop();
}
frame 2 {
_parent.sfx = 0;
}
}
movieClip 82 {
}
instance timer of movieClip 82 {
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;
}
}
button 99 {
on (release) {
_parent.lew.gotoAndPlay('solution');
_parent.activebuttons = false;
gotoAndStop(2);
_parent.randombutton.gotoAndStop(2);
}
}
movieClip 101 {
frame 1 {
stop();
}
}
button 108 {
on (release) {
_parent.solver.gotoAndStop(1);
_parent.lew.action = 'reset';
_parent.lew.gotoAndPlay('clickbutton');
gotoAndStop(1);
}
}
movieClip 109 {
frame 1 {
stop();
reset = 0;
}
frame 2 {
reset = 1;
}
}
button 115 {
on (release) {
_parent.solver.gotoAndStop(1);
_parent.lew.action = 'random';
_parent.lew.gotoAndPlay('clickbutton');
gotoAndStop(2);
}
}
movieClip 117 {
frame 1 {
stop();
}
}
button 123 {
on (release) {
gotoAndStop(2);
_parent.lew.action = 'help';
_parent.lew.gotoAndPlay('clickbutton');
}
}
movieClip 125 {
frame 1 {
stop();
}
}
button 138 {
on (release) {
this.gotoAndPlay('close');
_parent.lew.action = 'solve';
}
}
button 143 {
on (release) {
this.gotoAndPlay('close');
_parent.lew.action = 'nosolve';
_parent.solvebutton.gotoAndStop(1);
_parent.randombutton.gotoAndStop(1);
}
}
movieClip 144 {
frame 1 {
stop();
}
frame 69 {
gotoAndPlay(16);
}
frame 80 {
_parent.lew.play();
}
frame 84 {
gotoAndStop(1);
_visible = false;
}
}
instance scroll of movieClip 144 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 149 {
}
instance mouselevelind of movieClip 149 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible == true) {
this.startDrag(true);
}
}
}
button 155 {
on (release) {
if (menustatus) {
menu.gotoAndStop('off');
--enetstatus;
} else {
menu.gotoAndStop('on');
++enetstatus;
clickhere.gotoAndStop('stopmenu');
}
}
}
button 160 {
on (release) {
GotoUrl('http://www.netcent.com');
}
}
button 166 {
on (release) {
if (eflashstatus) {
eflash.gotoAndStop('off');
--enetstatus;
}
if (!copyrightstatus) {
copyright.gotoAndStop('on');
++enetstatus;
} else {
copyright.gotoAndStop('off');
--enetstatus;
}
}
}
movieClip 172 {
frame 1 {
stop();
}
}
movieClip 173 {
frame 23 {
++textframe;
if (4 < textframe) {
textframe = 1;
}
text.gotoAndStop(textframe);
gotoAndPlay(1);
}
frame 25 {
stop();
text.gotoAndStop('menu');
}
}
button 182 {
on (release) {
if (_parent.eflashstatus) {
_parent.eflash.gotoAndStop('off');
--_parent.enetstatus;
} else {
_parent.eflash.gotoAndPlay('on');
++_parent.enetstatus;
}
if (_parent.copyrightstatus) {
_parent.copyright.gotoAndStop('off');
--_parent.enetstatus;
}
}
}
button 189 {
on (release) {
_parent.GetUrl(_parent.downloadlinkurl);
}
}
movieClip 190 {
frame 1 {
stop();
if (_parent.eflashon != 1) {
gotoAndStop(2);
}
}
}
movieClip 193 {
}
button 194 {
on (release) {
if (cobrandstatus) {
cobrand.gotoAndStop('off');
--enetstatus;
} else {
cobrand.gotoAndStop('on');
++enetstatus;
}
}
}
movieClip 197 {
}
movieClip 205 {
}
movieClip 206 {
}
button 209 {
on (release) {
_parent._parent.GotoUrl(url);
}
}
movieClip 210 {
frame 1 {
if (bg) {
var barcolor = new Color(bgcolor);
barcolor.setRGB(bg);
}
}
}
button 215 {
on (release) {
_parent.GotoUrl('http://www.downtoearthcomic.com');
}
}
button 220 {
on (release) {
--_parent.enetstatus;
gotoAndStop(1);
}
}
movieClip 222 {
frame 1 {
stop();
_parent.cobrandstatus = 0;
}
frame 2 {
_parent.cobrandstatus = 1;
p1.label = 'ARCHIVES';
p1.url = 'http://downtoearth.ncbuy.com/archives/';
p2.label = 'FORUM';
p2.url = 'http://data.ncbuy.com/cgi-bin/WebX?14@@.ee734f0!nc=998414396';
p3.label = 'CHARACTERS';
p3.url = 'http://downtoearth.ncbuy.com/characters.html';
p4.label = 'CREATORS';
p4.url = 'http://downtoearth.ncbuy.com/creators.html';
p5.label = 'SYNDICATION';
p5.url = 'http://downtoearth.ncbuy.com/syndication/';
p6.label = 'GET THE BOOK';
p6.url = 'http://downtoearth.ncbuy.com/books/';
}
}
movieClip 227 {
frame 1 {
if (bg) {
var barcolor = new Color(bgcolor);
barcolor.setRGB(bg);
}
}
}
button 228 {
on (release) {
if (_parent._parent.eflashstatus) {
_parent._parent.eflash.gotoAndStop('off');
--_parent._parent.enetstatus;
} else {
_parent._parent.eflash.gotoAndPlay('on');
_parent.gotoAndStop('off');
}
if (_parent._parent.copyrightstatus) {
_parent._parent.copyright.gotoAndStop('off');
--_parent._parent.enetstatus;
}
}
}
movieClip 229 {
}
button 237 {
on (release) {
_parent.GotoUrl('http://www.ncbuy.com');
}
}
button 238 {
on (release) {
--_parent.enetstatus;
gotoAndStop(1);
}
}
button 243 {
on (release) {
_parent.GotoUrl('http://enetwork.ncbuy.com');
}
}
movieClip 244 {
frame 1 {
_parent.menustatus = 0;
stop();
}
frame 2 {
_parent.menustatus = 1;
ncbuy1.label = 'ASTROLOGY';
ncbuy2.label = 'BUSINESS CENTER';
ncbuy3.label = 'CARTOONS & COMICS';
ncbuy4.label = 'CLASSIFIEDS & AUCTIONS';
ncbuy5.label = 'CONTESTS & SWEEPSTAKES';
ncbuy6.label = 'CURRENT NEWS';
ncbuy7.label = 'ENTERTAINMENT CENTER';
ncbuy8.label = 'FREE STUFF';
ncbuy9.label = 'GAMEHOUSE - GO PLAY!';
ncbuy10.label = 'HOME & LEISURE';
ncbuy11.label = 'INTERNET SHOPPING';
ncbuy12.label = 'JOKE CENTER';
ncbuy13.label = 'LOTTO & GAMBLING';
ncbuy14.label = 'TRAVEL CENTER';
ncbuy15.label = 'WEATHER CONDITIONS';
ncbuy16.label = 'SEARCH THE NET';
ncbuy17.label = 'AFFILIATE PROGRAMS';
ncbuy18.label = 'DOWNLOADS - MORE APPS';
ncbuy19.label = 'REGISTER - JOIN TODAY';
ncbuy20.label = 'WEBMASTERS - FOR YOUR SITE';
ncbuy16.bg = 10092492;
ncbuy17.bg = 10092492;
ncbuy18.bg = 16763904;
ncbuy19.bg = 16763904;
ncbuy20.bg = 16763904;
ncbuy1.url = 'http://www.ncbuy.com/entertainment/astrology/';
ncbuy2.url = 'http://www.ncbuy.com/business/';
ncbuy3.url = 'http://www.ncbuy.com/entertainment/cartoons/';
ncbuy4.url = 'http://www.ncbuy.com/classifieds/';
ncbuy5.url = 'http://www.ncbuy.com/entertainment/contests/';
ncbuy6.url = 'http://www.ncbuy.com/news/';
ncbuy7.url = 'http://www.ncbuy.com/entertainment/';
ncbuy8.url = 'http://www.ncbuy.com/directories/freestuff/';
ncbuy9.url = 'http://www.ncbuy.com/entertainment/gamehouse/';
ncbuy10.url = 'http://www.ncbuy.com/homeleisure/';
ncbuy11.url = 'http://www.ncbuy.com/shopping/';
ncbuy12.url = 'http://jokes.ncbuy.com/';
ncbuy13.url = 'http://www.ncbuy.com/entertainment/lotteries/';
ncbuy14.url = 'http://www.ncbuy.com/homeleisure/travel/';
ncbuy15.url = 'http://www.ncbuy.com/homeleisure/weather/';
ncbuy16.url = 'http://search.ncbuy.com/';
ncbuy17.url = 'http://affiliate.ncbuy.com/';
ncbuy18.url = 'http://enetwork.ncbuy.com/downloads/';
ncbuy19.url = 'http://enetwork.ncbuy.com/register/';
ncbuy20.url = 'http://enetwork.ncbuy.com/webmasters/';
}
instance of movieClip 229 {
onClipEvent (load) {
if (_parent._parent.screensaver == true) {
_visible = true;
} else {
_visible = false;
}
}
}
}
button 246 {
on (release) {
gotoAndStop(1);
--_parent.enetstatus;
}
}
button 250 {
on (press) {
if (_ymouse < slider.top) {
slider._y = slider.top;
} else {
if (slider.btm < _ymouse) {
slider._y = slider.btm;
} else {
slider._y = _ymouse;
}
}
}
}
button 255 {
on (press) {
startDrag(this, true, 0, top, 0, btm);
}
on (release) {
stopDrag();
}
}
movieClip 256 {
}
button 258 {
on (press) {
movetext = -1;
}
on (release) {
movetext = 0;
}
}
button 259 {
on (press) {
movetext = 1;
}
on (release) {
movetext = 0;
}
}
movieClip 260 {
instance slider of movieClip 256 {
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;
}
}
}
movieClip 263 {
}
movieClip 265 {
frame 1 {
stop();
movetext = 0;
_parent.eflashstatus = 0;
}
frame 2 {
_parent.eflashstatus = 1;
play();
}
frame 3 {
loadVariables('http://www.netcent.com/dynamic/enet/eflash.txt', this);
loadloop = 0;
}
frame 4 {
if (end == 'foo') {
gotoAndStop(6);
} else {
++loadloop;
if (200 < loadloop) {
loadloop = 0;
gotoAndStop(14);
}
}
}
frame 5 {
gotoAndPlay(4);
}
frame 6 {
text = update;
stop();
}
}
button 267 {
on (release) {
gotoAndStop(1);
--_parent.enetstatus;
}
}
movieClip 269 {
frame 1 {
stop();
movetext = 0;
_parent.copyrightstatus = 0;
}
frame 2 {
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 2001, NetCent Communications, All Rights Reserved.\n';
_parent.copyrightstatus = 1;
}
}
button 272 {
on (release) {
if (menustatus) {
menu.gotoAndStop('off');
} else {
menu.gotoAndStop('on');
}
++enetstatus;
}
}
movieClip 273 {
frame 1 {
function GotoUrl(url) {
if (jweb) {
fscommand('exec', 'JWEB.exe\t' + url);
} else {
getURL(url, '_blank');
}
if (quit) {
fscommand('quit');
}
}
stop();
}
instance clickhere of movieClip 173 {
onClipEvent (load) {
textframe = 1;
}
}
}
instance of movieClip 273 {
onClipEvent (load) {
eflashon = 0;
version = 'v1.1';
jweb = 0;
quit = 0;
screensaver = 0;
downloadlinkurl = 'http://enetwork.ncbuy.com/downloads/ntcallout.html';
}
}
movieClip 276 {
frame 1 {
stop();
}
frame 6 {
stop();
}
}
frame 26 {
title.play();
lewlegsframe = 1;
if (random(10) == 1) {
lewlegsframe = random(3) + 1;
}
}
movieClip 282 {
frame 1 {
stop();
gotoAndStop(_root.lewlegsframe);
}
}
movieClip 286 {
frame 1 {
stop();
}
frame 17 {
gotoAndStop(1);
}
}
movieClip 293 {
frame 107 {
gotoAndPlay(1);
}
frame 113 {
stop();
}
frame 185 {
gotoAndPlay(1);
}
}
movieClip 299 {
frame 1 {
stop();
}
frame 11 {
hair.gotoAndPlay('bounce');
}
frame 38 {
gotoAndStop(1);
}
frame 54 {
eye.gotoAndPlay('lookdown');
}
}
movieClip 310 {
frame 1 {
stop();
}
frame 23 {
--tap;
if (tap < 0) {
gotoAndStop(1);
} else {
gotoAndPlay(2);
}
}
}
movieClip 314 {
}
movieClip 315 {
}
movieClip 316 {
}
movieClip 317 {
frame 1 {
stop();
}
frame 11 {
hair.gotoAndPlay('bounce');
}
frame 38 {
gotoAndStop(1);
}
frame 54 {
eye.gotoAndPlay('lookdown');
}
}
movieClip 323 {
frame 1 {
stop();
stillcount = 0;
smokeinterval = 3;
}
instance lewrightarm of movieClip 310 {
onClipEvent (load) {
tap = -1;
}
onClipEvent (enterFrame) {
if (random(150) == 25 && tap < 0) {
tap = random(3) + 1;
play();
}
}
}
frame 2 {
head.gotoAndStop(1);
}
frame 42 {
if (random(25) == 10) {
head.eye.gotoAndPlay('lookaround');
}
}
frame 91 {
++stillcount;
if (smokeinterval < stillcount) {
stillcount = 0;
smokeinterval = random(6) + 4;
gotoAndPlay(93);
} else {
gotoAndPlay(2);
}
}
frame 143 {
head.gotoAndStop(2);
}
frame 187 {
head.gotoAndPlay('blowsmoke');
}
frame 270 {
gotoAndPlay(2);
}
frame 274 {
head.eye.gotoAndPlay('lookdownforward');
head.gotoAndStop(2);
}
frame 279 {
head.hair.gotoAndPlay('bounce');
}
frame 286 {
if (_parent.sfx) {
_parent.lewbeep.start();
}
}
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');
}
}
}
}
}
frame 297 {
gotoAndPlay(2);
}
frame 300 {
head.gotoAndStop('entrance');
}
frame 362 {
gotoAndPlay(2);
}
frame 383 {
_parent.scroll._visible = true;
_parent.scroll.gotoAndPlay('open');
}
frame 391 {
stop();
}
frame 409 {
if (action == 'nosolve') {
_parent.activebuttons = true;
gotoAndPlay(2);
} else {
gotoAndPlay(271);
}
}
}
frame 93 {
lew.gotoAndPlay('entrance');
}
frame 131 {
ReadPuzzle(chooser.levelnum);
ShowPuzzle();
stop();
}
frame 143 {
if (sfx) {
winSound.start();
}
}
frame 185 {
stop();
chooser.gotoAndPlay('next');
}
button 328 {
on (release) {
_parent.play();
}
}
movieClip 337 {
}
movieClip 341 {
frame 1 {
stop();
}
}
movieClip 342 {
frame 11 {
gotoAndPlay(1);
}
frame 12 {
deadguy1.gotoAndStop(2);
deadguy2.eyes.gotoAndPlay(8);
}
}
frame 220 {
help.gotoAndStop('stop');
stop();
}
frame 221 {
help.gotoAndPlay('walk');
}
frame 245 {
helpbutton.gotoAndStop(1);
gotoAndStop(132);
}