Frame 3
ifFrameLoaded (226) {
gotoAndPlay (5);
}
Frame 4
gotoAndPlay (2);
Frame 5
fscommand ("allowscale", "false");
Frame 6
setProperty("/hintmov", _visible , 0);
setProperty("/jewel", _visible , 0);
setProperty("/jewelpic", _visible , 0);
setProperty("/vline", _visible , 0);
setProperty("/hline", _visible , 0);
tellTarget ("/lvlupmov") {
gotoAndStop (1);
};
setProperty("/lvlupmov", _visible , 0);
setProperty("/boxa", _visible , 0);
tellTarget ("/hintmov") {
gotoAndStop (1);
};
setProperty("/hintmov", _visible , 0);
setProperty("/hline", _visible , 0);
setProperty("/vline", _visible , 0);
setProperty("/box1", _visible , 0);
setProperty("/box2", _visible , 0);
tellTarget ("/addpointsmov") {
gotoAndStop (1);
};
setProperty("/addpointsmov", _visible , 0);
if (Number(hsnamer) != Number("")) {
name = hsnamer;
gotoAndPlay (9);
}
Frame 9
setProperty("/scoreboard", _visible , 0);
setProperty("bonuslevel", _visible , 0);
duplicateMovieClip ("/scoreboard", "sb", 10020);
jewelsinplay = 4;
call("buildboard");
duplicateMovieClip ("/boxa", "box1", 2000);
duplicateMovieClip ("/boxa", "box2", 2001);
moveispossible = 1;
score = 0;
level = 1;
scorebuffer = 0;
progress = 0;
tellTarget ("/progbar") {
gotoAndStop (1);
};
setProperty("/boxa", _visible , 0);
setProperty("/box1", _visible , 0);
setProperty("/box2", _visible , 0);
Frame 13
inarow = 0;
call("movepossible");
if (Number(moveispossible) == 0) {
disableclick = 1;
gotoAndPlay (16);
}
if (Number(click) != 0) {
if (Number(click1) == 0) {
disableclick = 1;
click1y = substring(click, 1, 1);
click1x = substring(click, 2, 1);
call("movebox1");
click1 = 1;
click = 0;
disableclick = 0;
playmovesound = 1;
} else {
disableclick = 1;
click2y = substring(click, 1, 1);
click2x = substring(click, 2, 1);
call("movebox2");
click2 = 1;
if ((Number(click1x) == Number(click2x)) and (Number(click1y) == Number(click2y))) {
call("resetclicks");
} else if (((Number(click1x) == Number(click2x)) and ((Number(click1y) == Number(click2y - 1)) or (Number(click1y) == Number(Number(click2y) + 1)))) or ((Number(click1y) == Number(click2y)) and ((Number(click1x) == Number(click2x - 1)) or (Number(click1x) == Number(Number(click2x) + 1))))) {
gotoAndPlay (163);
} else {
playmovesound = 1;
output = output add "[not adjacent] ";
call("resetclicks");
click1y = substring(click, 1, 1);
click1x = substring(click, 2, 1);
call("movebox1");
click1 = 1;
}
click = 0;
disableclick = 0;
}
}
if (Number(playbadsound) == 1) {
playbadsound = 0;
gotoAndPlay (67);
}
Frame 14
call("score");
if (Number(levelup) == 1) {
levelup = 0;
duplicateMovieClip ("/lvlupmov", "lvlupmov1", 4800);
call("resetclicks");
disableclick = 1;
call("buildboard");
setProperty("/box1", _visible , 0);
setProperty("/box2", _visible , 0);
call("resetclicks");
}
if (Number(playmovesound) == 1) {
playmovesound = 0;
gotoAndPlay (64);
}
if (Number(playlevelsound) == 1) {
playlevelsound = 0;
gotoAndPlay (78);
}
if (1 < Number(inarow)) {
inarow = 0;
gotoAndPlay (96);
}
gotoAndPlay (13);
Frame 16
moveispossible = 1;
Frame 54
gotoAndPlay (56);
Frame 57
call("score");
if (Number(scoretobeat) < Number(Number(/sb:score) + Number(scorebuffer))) {
Set("/sb:score", Number(/sb:score) + Number(scorebuffer));
scorebuffer = 0;
gotoAndPlay (220);
} else {
gotoAndPlay (56);
}
Frame 65
gotoAndPlay (13);
Frame 68
gotoAndPlay (14);
Frame 79
gotoAndPlay (13);
Frame 97
scoresub = 25 * level;
scorebuffer = Number(scorebuffer) + Number(scoresub);
scoremov = Number(scoremov) + 1;
if (100 < Number(scoremov)) {
scoremov = 1;
}
duplicateMovieClip ("/addpointsmov", "addpointsmov" add scoremov, 8700 + Number(scoremov));
Set(("/addpointsmov" add scoremov) add "/pointrise:pointval", "+" add scoresub);
gotoAndPlay (13);
Frame 113
xoffset = -24;
yoffset = -22;
numx = 8;
numy = 8;
curx = 1;
cury = 1;
jewelnum = 1;
while (Number(numy) >= Number(cury)) {
while (Number(numx) >= Number(curx)) {
Set(("jewelframe" add cury) add curx, Number(int(random(jewelsinplay))) + 1);
duplicateMovieClip ("jewel", ("jewel" add cury) add curx, 1000 + Number(jewelnum));
Set((("jewel" add cury) add curx) add ":jewelno", eval (("jewelframe" add cury) add curx));
Set((("jewel" add cury) add curx) add ":jewelxy", cury add curx);
Set((("jewel" add cury) add curx) add ":stop", 1);
tellTarget (("jewel" add cury) add curx) {
gotoAndPlay(jewelno * 10);
};
setProperty(("jewel" add cury) add curx, _x , Number(xoffset) + Number(curx * 50));
setProperty(("jewel" add cury) add curx, _y , Number(yoffset) + Number(cury * 50));
curx = Number(curx) + 1;
jewelnum = Number(jewelnum) + 1;
}
cury = Number(cury) + 1;
curx = 1;
}
curx = 1;
while (Number(Number(numx) + 1) >= Number(curx)) {
duplicateMovieClip ("/vline", "vline" add curx, 100 + Number(curx));
setProperty("vline" add curx, _x , (2 + Number(curx * 50)) - 50);
curx = Number(curx) + 1;
}
cury = 1;
while (Number(Number(numy) + 1) >= Number(cury)) {
duplicateMovieClip ("/hline", "hline" add cury, 200 + Number(cury));
setProperty("hline" add cury, _y , (45 + Number(cury * 50)) - 93);
cury = Number(cury) + 1;
}
Frame 122
curx = 1;
cury = 1;
nummatches = 0;
while (Number(numy) >= Number(cury)) {
while (Number(numx) >= Number(curx)) {
chkretval = 0;
if (eval (("jewelframe" add cury) add curx) == eval (("jewelframe" add cury) add (curx + 1))) {
if (eval (("jewelframe" add cury) add curx) == eval (("jewelframe" add cury) add (curx + 2))) {
if (eval (("jewelframe" add cury) add curx) == eval (("jewelframe" add cury) add (curx + 3))) {
if (eval (("jewelframe" add cury) add curx) == eval (("jewelframe" add cury) add (curx + 4))) {
if (eval (("jewelframe" add cury) add curx) == eval (("jewelframe" add cury) add (curx + 5))) {
chkretval = 6;
} else {
chkretval = 5;
}
} else {
chkretval = 4;
}
} else {
chkretval = 3;
}
}
}
if (0 < Number(chkretval)) {
output = ((((((((output add "x=") add curx) add " y=") add cury) add " dir=x len=") add chkretval) add " curj=") add eval (("jewelframe" add cury) add curx)) add "\r";
nummatches = Number(nummatches) + 1;
Set(("match" add nummatches) add "x", curx);
Set(("match" add nummatches) add "y", cury);
Set(("match" add nummatches) add "dir", "x");
Set(("match" add nummatches) add "len", chkretval);
}
chkretval = 0;
if (eval (("jewelframe" add cury) add curx) == eval (("jewelframe" add (cury + 1)) add curx)) {
if (eval (("jewelframe" add cury) add curx) == eval (("jewelframe" add (cury + 2)) add curx)) {
if (eval (("jewelframe" add cury) add curx) == eval (("jewelframe" add (cury + 3)) add curx)) {
if (eval (("jewelframe" add cury) add curx) == eval (("jewelframe" add (cury + 4)) add curx)) {
if (eval (("jewelframe" add cury) add curx) == eval (("jewelframe" add (cury + 5)) add curx)) {
chkretval = 6;
} else {
chkretval = 5;
}
} else {
chkretval = 4;
}
} else {
chkretval = 3;
}
}
}
if (0 < Number(chkretval)) {
output = ((((((((output add "x=") add curx) add " y=") add cury) add " dir=y len=") add chkretval) add " curj=") add eval (("jewelframe" add cury) add curx)) add "\r";
nummatches = Number(nummatches) + 1;
Set(("match" add nummatches) add "x", curx);
Set(("match" add nummatches) add "y", cury);
Set(("match" add nummatches) add "dir", "y");
Set(("match" add nummatches) add "len", chkretval);
}
curx = Number(curx) + 1;
}
cury = Number(cury) + 1;
curx = 1;
}
Frame 132
output = "";
cursx = 1;
cursy = 1;
jewelnum = 1;
while (Number(numy) >= Number(cursy)) {
while (Number(numx) >= Number(cursx)) {
output = (output add eval (("jewelframe" add cursy) add cursx)) add ",";
cursx = Number(cursx) + 1;
}
output = output add "\r";
cursy = Number(cursy) + 1;
cursx = 1;
}
Frame 139
setProperty("/box1", _x , Number(xoffset) + Number(click1x * 50));
setProperty("/box1", _y , Number(yoffset) + Number(click1y * 50));
setProperty("/box1", _visible , 1);
Frame 147
setProperty("/box2", _x , Number(xoffset) + Number(click2x * 50));
setProperty("/box2", _y , Number(yoffset) + Number(click2y * 50));
setProperty("/box2", _visible , 1);
Frame 155
setProperty("/box1", _visible , 0);
setProperty("/box2", _visible , 0);
click1 = 0;
click2 = 0;
disableclick = 0;
Frame 163
jewelframeclick1 = eval (("jewelframe" add click1y) add click1x);
jewelframeclick2 = eval (("jewelframe" add click2y) add click2x);
Set(("jewelframe" add click1y) add click1x, jewelframeclick2);
Set(("jewelframe" add click2y) add click2x, jewelframeclick1);
Set((("jewel" add click1y) add click1x) add ":jewelno", jewelframeclick2);
Set((("jewel" add click2y) add click2x) add ":jewelno", jewelframeclick1);
tellTarget (("jewel" add click1y) add click1x) {
gotoAndStop(..:jewelframeclick2);
};
tellTarget (("jewel" add click2y) add click2x) {
gotoAndStop(..:jewelframeclick1);
};
Frame 164
call("chkmatches");
if (0 < Number(nummatches)) {
setProperty("/box1", _visible , 0);
setProperty("/box2", _visible , 0);
gotoAndPlay (170);
} else {
playbadsound = 1;
Set(("jewelframe" add click1y) add click1x, jewelframeclick1);
Set(("jewelframe" add click2y) add click2x, jewelframeclick2);
Set((("jewel" add click1y) add click1x) add ":jewelno", jewelframeclick1);
Set((("jewel" add click2y) add click2x) add ":jewelno", jewelframeclick2);
tellTarget (("jewel" add click1y) add click1x) {
gotoAndStop(..:jewelframeclick1);
};
output = ((output add "[") add jewelframeclick2) add "] ";
tellTarget (("jewel" add click2y) add click2x) {
gotoAndStop(..:jewelframeclick2);
};
}
Frame 165
call("resetclicks");
gotoAndPlay (14);
Frame 170
removematches = nummatches;
mpieces = 0;
while (0 < Number(removematches)) {
if (eval (("match" add removematches) add "dir") eq "y") {
mpiecex = eval (("match" add removematches) add "x");
mpiececur = eval (("match" add removematches) add "y");
testron = eval (("match" add removematches) add "y") + eval (("match" add removematches) add "len");
while (Number(mpiececur) < Number(testron)) {
mpiecestmp = mpieces;
foundmatch = 0;
while (0 < Number(mpiecestmp)) {
if (eval ("mpieceno" add mpiecestmp) == (mpiececur add mpiecex)) {
foundmatch = 1;
}
mpiecestmp = mpiecestmp - 1;
}
if (Number(foundmatch) == 0) {
mpieces = Number(mpieces) + 1;
Set("mpieceno" add mpieces, mpiececur add mpiecex);
}
mpiececur = Number(mpiececur) + 1;
}
} else {
mpiecey = eval (("match" add removematches) add "y");
mpiececurx = eval (("match" add removematches) add "x");
testron = eval (("match" add removematches) add "x") + eval (("match" add removematches) add "len");
while (Number(mpiececurx) < Number(testron)) {
mpiecestmp = mpieces;
foundmatch = 0;
while (0 < Number(mpiecestmp)) {
if (eval ("mpieceno" add mpiecestmp) == (mpiecey add mpiececurx)) {
foundmatch = 1;
}
mpiecestmp = mpiecestmp - 1;
}
if (Number(foundmatch) == 0) {
mpieces = Number(mpieces) + 1;
Set("mpieceno" add mpieces, mpiecey add mpiececurx);
}
mpiececurx = Number(mpiececurx) + 1;
}
}
removematches = removematches - 1;
}
max2 = mpieces;
while (1 < Number(max2)) {
max1 = mpieces;
while (1 < Number(max1)) {
if (eval ("mpieceno" add (max1 - 1)) < eval ("mpieceno" add max1)) {
ronpieceno = eval ("mpieceno" add (max1 - 1));
Set("mpieceno" add (max1 - 1), eval ("mpieceno" add max1));
Set("mpieceno" add max1, ronpieceno);
}
max1 = max1 - 1;
}
max2 = max2 - 1;
}
if (8 < Number(mpieces)) {
playinarowsound = 1;
}
totalpieces = mpieces;
while (0 < Number(totalpieces)) {
curxy = eval ("mpieceno" add totalpieces);
Set(("jewelpic" add totalpieces) add "xstep", ((Number(xoffset) + Number(int(substring(curxy, 2, 1)) * 50)) - 450) / 8);
Set(("jewelpic" add totalpieces) add "ystep", ((Number(yoffset) + Number(int(substring(curxy, 1, 1)) * 50)) - 305) / 8);
setProperty("jewel" add curxy, _visible , 0);
duplicateMovieClip ("/jewelpic", "jewelpicture" add totalpieces, 3000 + Number(totalpieces));
Set(("jewelpicture" add totalpieces) add ":jewelno", eval ("jewelframe" add curxy));
tellTarget ("jewelpicture" add totalpieces) {
gotoAndStop(jewelno);
};
setProperty("jewelpicture" add totalpieces, _x , Number(xoffset) + Number(int(substring(curxy, 2, 1)) * 50));
setProperty("jewelpicture" add totalpieces, _y , Number(yoffset) + Number(int(substring(curxy, 1, 1)) * 50));
Set("jewelframe" add curxy, 0);
totalpieces = totalpieces - 1;
}
stepno = 0;
fillgapnum = 9;
if (Number(playinarowsound) == 1) {
playinarowsound = 0;
gotoAndPlay (191);
}
Frame 173
call("score");
if (0 < Number(stepno)) {
curx = 8;
cury = 8;
while (1 < Number(cury)) {
while (0 < Number(curx)) {
if (eval (("jewelframe" add cury) add curx) == 0) {
Set(("jewelframe" add cury) add curx, eval (("jewelframe" add (cury - 1)) add curx));
Set((("jewel" add cury) add curx) add ":jewelno", eval (("jewelframe" add cury) add curx));
if (eval ((("jewel" add cury) add curx) add ":jewelno") == 0) {
setProperty(("jewel" add cury) add curx, _visible , 0);
} else {
setProperty(("jewel" add cury) add curx, _visible , 1);
tellTarget (("jewel" add cury) add curx) {
gotoAndStop(jewelno);
};
if (0 < eval ((("jewel" add (cury + 1)) add curx) add ":jewelno")) {
if (Number(playclickonetime) == 0) {
playclickonetime = 1;
playclicksound = 1;
}
}
}
Set(("jewelframe" add (cury - 1)) add curx, 0);
Set((("jewel" add (cury - 1)) add curx) add ":jewelno", eval (("jewelframe" add (cury - 1)) add curx));
if (eval ((("jewel" add (cury - 1)) add curx) add ":jewelno") == 0) {
setProperty(("jewel" add (cury - 1)) add curx, _visible , 0);
} else {
setProperty(("jewel" add (cury - 1)) add curx, _visible , 1);
tellTarget (("jewel" add (cury - 1)) add curx) {
gotoAndStop(jewelno);
};
}
}
curx = curx - 1;
}
cury = cury - 1;
curx = 8;
}
}
stepno = Number(stepno) + 1;
totalpieces = mpieces;
while (0 < Number(totalpieces)) {
setProperty("jewelpicture" add totalpieces, _x , getProperty("jewelpicture" add totalpieces, _x) - eval (("jewelpic" add totalpieces) add "xstep"));
setProperty("jewelpicture" add totalpieces, _y , getProperty("jewelpicture" add totalpieces, _y) - eval (("jewelpic" add totalpieces) add "ystep"));
setProperty("jewelpicture" add totalpieces, _xscale , 100 - (stepno * 10));
setProperty("jewelpicture" add totalpieces, _yscale , 100 - (stepno * 10));
totalpieces = totalpieces - 1;
}
if (Number(stepno) == 8) {
totalpieces = mpieces;
scoresub = 0;
while (0 < Number(totalpieces)) {
setProperty("jewelpicture" add totalpieces, _visible , 0);
scoresub = Number(scoresub) + 5;
progress = Number(progress) + 1;
totalpieces = totalpieces - 1;
}
scorebuffer = Number(scorebuffer) + Number(scoresub);
scoremov = Number(scoremov) + 1;
if (100 < Number(scoremov)) {
scoremov = 1;
}
duplicateMovieClip ("/addpointsmov", "addpointsmov" add scoremov, 8700 + Number(scoremov));
Set(("/addpointsmov" add scoremov) add "/pointrise:pointval", "+" add scoresub);
gotoAndPlay (173);
}
if (Number(playclicksound) == 1) {
playclicksound = 0;
gotoAndPlay (185);
}
Frame 174
fillgapnum = fillgapnum - 1;
if (0 < Number(fillgapnum)) {
gotoAndPlay (173);
} else {
fillnewnum = 8;
gotoAndPlay (175);
}
Frame 175
call("score");
curx = 8;
cury = 8;
while (0 < Number(cury)) {
fillzero = 8;
while (0 < Number(fillzero)) {
Set("jewelframe0" add fillzero, Number(int(random(jewelsinplay))) + 1);
fillzero = fillzero - 1;
}
while (0 < Number(curx)) {
if (eval (("jewelframe" add cury) add curx) == 0) {
Set(("jewelframe" add cury) add curx, eval (("jewelframe" add (cury - 1)) add curx));
Set((("jewel" add cury) add curx) add ":jewelno", eval (("jewelframe" add cury) add curx));
if (eval ((("jewel" add cury) add curx) add ":jewelno") == 0) {
setProperty(("jewel" add cury) add curx, _visible , 0);
} else {
setProperty(("jewel" add cury) add curx, _visible , 1);
tellTarget (("jewel" add cury) add curx) {
gotoAndStop(jewelno);
};
if (0 < eval ((("jewel" add (cury + 1)) add curx) add ":jewelno")) {
if (Number(playonce) == 0) {
playonce = 1;
playclicksoundtwo = 1;
}
}
}
if (1 < Number(cury)) {
Set(("jewelframe" add (cury - 1)) add curx, 0);
Set((("jewel" add (cury - 1)) add curx) add ":jewelno", eval (("jewelframe" add (cury - 1)) add curx));
if (eval ((("jewel" add (cury - 1)) add curx) add ":jewelno") == 0) {
setProperty(("jewel" add (cury - 1)) add curx, _visible , 0);
} else {
setProperty(("jewel" add (cury - 1)) add curx, _visible , 1);
tellTarget (("jewel" add (cury - 1)) add curx) {
gotoAndStop(jewelno);
};
}
}
}
curx = curx - 1;
}
cury = cury - 1;
curx = 8;
}
fillzero = 8;
while (0 < Number(fillzero)) {
Set("jewelframe0" add fillzero, 0);
fillzero = fillzero - 1;
}
if (Number(playclicksoundtwo) == 1) {
playclicksoundtwo = 0;
gotoAndPlay (188);
}
Frame 176
fillnewnum = fillnewnum - 1;
if (0 < Number(fillnewnum)) {
gotoAndPlay (175);
} else {
playonce = 0;
playclickonetime = 0;
call("chkmatches");
if (0 < Number(nummatches)) {
inarow = Number(inarow) + 1;
if (1 < Number(inarow)) {
inarow = 0;
playinarowsound = 1;
}
gotoAndPlay (170);
} else {
call("resetclicks");
gotoAndPlay (14);
}
}
Frame 179
if (0 < Number(scorebuffer)) {
Set("/sb:score", Number(/sb:score) + 5);
scorebuffer = scorebuffer - 5;
}
if (100 < Number(progress)) {
level = Number(level) + 1;
progress = progress - 100;
levelup = 1;
playlevelsound = 1;
if (Number(level) == 3) {
jewelsinplay = 5;
}
if (Number(level) == 5) {
jewelsinplay = 6;
}
if (7 < Number(level)) {
if (Number(level / 5) == Number(int(level / 5))) {
jewelsinplay = 3;
setProperty("bonuslevel", _visible , 1);
} else {
jewelsinplay = 7;
setProperty("bonuslevel", _visible , 0);
}
}
}
if (Number(progress) == 0) {
tellTarget ("/progbar") {
gotoAndStop (1);
};
} else {
tellTarget ("/progbar") {
gotoAndStop(..:progress);
};
}
Frame 186
gotoAndPlay (174);
Frame 189
gotoAndPlay (176);
Frame 192
scoresub = 25 * level;
scorebuffer = Number(scorebuffer) + Number(scoresub);
scoremov = Number(scoremov) + 1;
if (100 < Number(scoremov)) {
scoremov = 1;
}
duplicateMovieClip ("/addpointsmov", "addpointsmov" add scoremov, 8700 + Number(scoremov));
Set(("/addpointsmov" add scoremov) add "/pointrise:pointval", "+" add scoresub);
gotoAndPlay (171);
Frame 208
moveispossible = 0;
curx = 1;
cury = 1;
hintx = 0;
hinty = 0;
while (Number(cury) < 9) {
while (Number(curx) < 8) {
compbase = eval (("jewelframe" add cury) add curx);
if (compbase == eval (("jewelframe" add cury) add (curx + 1))) {
if ((((((compbase == eval (("jewelframe" add (cury - 1)) add (curx - 1))) or (compbase == eval (("jewelframe" add (cury + 1)) add (curx - 1)))) or (compbase == eval (("jewelframe" add cury) add (curx - 2)))) or (compbase == eval (("jewelframe" add (cury - 1)) add (curx + 2)))) or (compbase == eval (("jewelframe" add (cury + 1)) add (curx + 2)))) or (compbase == eval (("jewelframe" add cury) add (curx + 3)))) {
hintx = curx;
hinty = cury;
moveispossible = 1;
curx = 7;
cury = 8;
}
}
curx = Number(curx) + 1;
}
cury = Number(cury) + 1;
curx = 1;
}
if (Number(moveispossible) == 0) {
cury = 1;
curx = 1;
while (Number(curx) < 9) {
while (Number(cury) < 8) {
compbase = eval (("jewelframe" add cury) add curx);
if (compbase == eval (("jewelframe" add (cury + 1)) add curx)) {
if ((((((compbase == eval (("jewelframe" add (cury - 1)) add (curx - 1))) or (compbase == eval (("jewelframe" add (cury - 1)) add (curx + 1)))) or (compbase == eval (("jewelframe" add (cury - 2)) add curx))) or (compbase == eval (("jewelframe" add (cury + 2)) add (curx - 1)))) or (compbase == eval (("jewelframe" add (cury + 2)) add (curx + 1)))) or (compbase == eval (("jewelframe" add (cury + 3)) add curx))) {
hintx = curx;
hinty = cury;
moveispossible = 1;
cury = 7;
curx = 8;
}
}
cury = Number(cury) + 1;
}
curx = Number(curx) + 1;
cury = 1;
}
}
if (Number(moveispossible) == 0) {
cury = 1;
curx = 1;
while (Number(cury) < 9) {
while (Number(curx) < 7) {
compbase = eval (("jewelframe" add cury) add curx);
if (compbase == eval (("jewelframe" add cury) add (curx + 2))) {
if ((compbase == eval (("jewelframe" add (cury - 1)) add (curx + 1))) or (compbase == eval (("jewelframe" add (cury + 1)) add (curx + 1)))) {
hintx = curx;
hinty = cury;
moveispossible = 1;
cury = 8;
curx = 6;
}
}
curx = Number(curx) + 1;
}
cury = Number(cury) + 1;
curx = 1;
}
}
if (Number(moveispossible) == 0) {
cury = 1;
curx = 1;
while (Number(curx) < 9) {
while (Number(cury) < 7) {
compbase = eval (("jewelframe" add cury) add curx);
if (compbase == eval (("jewelframe" add (cury + 2)) add curx)) {
if ((compbase == eval (("jewelframe" add (cury + 1)) add (curx - 1))) or (compbase == eval (("jewelframe" add (cury + 1)) add (curx + 1)))) {
hintx = curx;
hinty = cury;
moveispossible = 1;
cury = 6;
curx = 8;
}
}
cury = Number(cury) + 1;
}
curx = Number(curx) + 1;
cury = 1;
}
}
Frame 220
setProperty("/hsmovie", _visible , "0");
duplicateMovieClip ("/hsmovie", hsmovie add "1", 10000);
Frame 225
gotoAndStop (224);
Symbol 10 Button
on (release) {
_root.play();
}
Symbol 11 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop (3);
}
Symbol 11 MovieClip Frame 2
gotoAndPlay (1);
Symbol 36 Button
on (rollOver) {
if (Number(..:disableclick) == 0) {
stop = 0;
gotoAndPlay(jewelno * 10);
}
}
on (rollOut, dragOut) {
if (Number(..:disableclick) == 0) {
stop = 1;
}
}
on (release) {
if (Number(..:disableclick) == 0) {
Set("..:click", jewelxy);
}
}
Symbol 175 MovieClip Frame 10
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 11
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 12
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 13
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 14
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 15
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 16
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 17
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 18
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 19
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (10);
}
Symbol 175 MovieClip Frame 20
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 21
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 22
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 23
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 24
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 25
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 26
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 27
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 28
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 29
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (20);
}
Symbol 175 MovieClip Frame 30
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 31
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 32
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 33
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 34
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 35
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 36
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 37
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 38
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 39
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (30);
}
Symbol 175 MovieClip Frame 40
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 41
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 42
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 43
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 44
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 45
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 46
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 47
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 48
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 49
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (40);
}
Symbol 175 MovieClip Frame 50
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 51
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 52
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 53
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 54
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 55
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 56
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 57
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 58
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 59
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (50);
}
Symbol 175 MovieClip Frame 60
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 61
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 62
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 63
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 64
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 65
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 66
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 67
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 68
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 69
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (60);
}
Symbol 175 MovieClip Frame 70
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 71
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 72
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 73
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 74
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 75
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 76
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 77
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 78
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 175 MovieClip Frame 79
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (70);
}
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
stop();
Symbol 176 MovieClip Frame 3
stop();
Symbol 176 MovieClip Frame 4
stop();
Symbol 176 MovieClip Frame 5
stop();
Symbol 176 MovieClip Frame 6
stop();
Symbol 176 MovieClip Frame 7
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 26
removeMovieClip("");
Symbol 185 MovieClip Frame 30
removeMovieClip("");
Symbol 195 Button
on (release) {
if (Number(moveispossible) == 1) {
duplicateMovieClip ("/hintmov", "hintmov1", 4135);
setProperty("hintmov1", _x , Number(xoffset) + Number(hintx * 50));
setProperty("hintmov1", _y , Number(yoffset) + Number(hinty * 50));
}
}
Symbol 198 Button
on (release) {
if (Number(scoretobeat) < Number(Number(score) + Number(scorebuffer))) {
Set("/sb:score", Number(/sb:score) + Number(scorebuffer));
scorebuffer = 0;
gotoAndPlay (220);
} else {
call("resetclicks");
gotoAndPlay (9);
}
}