Frame 1
stop();
Stage.showMenu = false;
nomatchPos = false;
soundController.gotoAndStop(2);
bgsndClip.gotoAndPlay(2);
soundController.sndButt.enabled = false;
Frame 2
_root.gridmask.duplicateMovieClip("gridmask1", 60004);
_root.nomatch._visible = false;
_root.explode._visible = false;
_root.explodePosX = 0;
_root.explodePosY = 0;
_root.comboIncre = 2;
elmntComboX = new Array();
elmntComboY = new Array();
Instance of Symbol 60 MovieClip in Frame 2
onClipEvent (load) {
previousAppliedScore = undefined;
}
onClipEvent (enterFrame) {
myScore = _root.sb.score;
if ((myScore != undefined) && (previousAppliedScore != myScore)) {
_root.dbInterface.updateScore(myScore);
previousAppliedScore = myScore;
trace(previousAppliedScore);
}
}
Frame 3
function clean() {
for (i in _root) {
_root[i].removeMovieClip();
}
}
_root.hintmov._visible = 0;
_root.jewel._visible = 0;
_root.jewelpic._visible = 0;
_root.lvlupmov.gotoAndStop(1);
_root.lvlupmov._visible = 0;
_root.boxa._visible = 0;
_root.increment = 0;
_root.combo1._visible = false;
_root.box1._visible = 0;
_root.box2._visible = 0;
tempArr = new Array();
expPosX = new Array();
expPosY = new Array();
_root.addpointsmov.gotoAndStop(1);
_root.addpointsmov._visible = 0;
if (Number(hsnamer) != Number("")) {
name = hsnamer;
gotoAndPlay (5);
}
Frame 5
setProperty("/scoreboard", _visible , 0);
setProperty("/bonuslevel", _visible , 0);
duplicateMovieClip ("/scoreboard", "sb", 10020);
jewelsinplay = 7;
call("buildboard");
duplicateMovieClip ("/boxa", "box1", 2000);
duplicateMovieClip ("/boxa", "box2", 2001);
moveispossible = 1;
score = 0;
level = 1;
_root.timer.leveladded = false;
scorebuffer = 0;
progress = 0;
_root.timer.percent = 0;
setProperty("/boxa", _visible , 0);
setProperty("/box1", _visible , 0);
setProperty("/box2", _visible , 0);
makeboard = 1;
call("chkmatches");
call("removematches");
call("backfromclick1");
notmakeBoard = false;
_root.timer.gotoAndStop(1);
_root.sb.score = 0;
combo = false;
_root.removeMovieClip("nomatch1");
nomatch1._visible = false;
Frame 9
inarow = 0;
call("movepossible");
if (Number(moveispossible) == 0) {
disableclick = 1;
gotoAndPlay ("endgame");
}
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 ("movepieces");
} 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 ("playbadsnd");
}
Frame 10
if (_root.notmakeBoard == true) {
call("score");
}
if (Number(levelup) == 1) {
levelup = 0;
duplicateMovieClip ("/lvlupmov", "lvlupmov1", 700001);
call("resetclicks");
disableclick = 1;
makeboard = 1;
gridmask1.gotoAndPlay(1);
call("chkmatches");
call("removematches");
call("backfromclick1");
setProperty("/box1", _visible , 0);
setProperty("/box2", _visible , 0);
call("resetclicks");
}
if (Number(playmovesound) == 1) {
playmovesound = 0;
if (notmakeBoard == true) {
gotoAndPlay ("playmovesnd");
}
}
if (Number(playlevelsound) == 1) {
playlevelsound = 0;
if (_root.notmakeBoard == true) {
gotoAndPlay ("playlevelsnd");
}
}
if (Number(inarow) > 1) {
inarow = 0;
if (_root.notmakeBoard == true) {
gotoAndPlay ("playinarowtwosnd");
}
}
gotoAndPlay (9);
Frame 12
moveispossible = 1;
setProperty("/nomatch", _visible , "0");
duplicateMovieClip ("/nomatch", "nomatch1", 10001);
nomatchPos = true;
_root.timer.gotoAndStop(1);
tScore = _root.sb.score;
_root.setDeactive();
stop();
Frame 50
gotoAndPlay ("endloopnow");
Frame 53
if (notmakeBoard == true) {
call("score");
}
if (Number(scoretobeat) < Number(Number(/sb:score) + Number(scorebuffer))) {
Set("/sb:score", Number(/sb:score) + Number(scorebuffer));
scorebuffer = 0;
} else {
gotoAndPlay ("endloopnow");
}
Frame 61
gotoAndPlay (9);
Frame 64
gotoAndPlay (10);
Frame 75
gotoAndPlay (9);
Frame 109
xoffset = 198;
yoffset = -8;
numx = 8;
numy = 8;
curx = 1;
cury = 1;
jewelnum = 1;
while (Number(cury) <= Number(numy)) {
while (Number(curx) <= Number(numx)) {
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 * 43.2));
setProperty(("jewel" add cury) add curx, _y , Number(yoffset) + Number(cury * 43.2));
curx = Number(curx) + 1;
jewelnum = Number(jewelnum) + 1;
}
cury = Number(cury) + 1;
curx = 1;
}
Frame 118
curx = 1;
cury = 1;
nummatches = 0;
while (Number(cury) <= Number(numy)) {
while (Number(curx) <= Number(numx)) {
chkretval = 0;
if (eval (("jewelframe" + cury) + curx) == eval (("jewelframe" + cury) + (curx + 1))) {
if (eval (("jewelframe" + cury) + curx) == eval (("jewelframe" + cury) + (curx + 2))) {
if (eval (("jewelframe" + cury) + curx) == eval (("jewelframe" + cury) + (curx + 3))) {
if (eval (("jewelframe" + cury) + curx) == eval (("jewelframe" + cury) + (curx + 4))) {
if (eval (("jewelframe" + cury) + curx) == eval (("jewelframe" + cury) + (curx + 5))) {
chkretval = 6;
} else {
chkretval = 5;
}
} else {
chkretval = 4;
}
} else {
chkretval = 3;
}
}
}
if (Number(chkretval) > 0) {
output = ((((((((output + "x=") + curx) + " y=") + cury) + " dir=x len=") + chkretval) + " curj=") + eval (("jewelframe" + cury) + curx)) + "\r";
nummatches = Number(nummatches) + 1;
Set(("match" + nummatches) + "x", curx);
Set(("match" + nummatches) + "y", cury);
Set(("match" + nummatches) + "dir", "x");
Set(("match" + nummatches) + "len", chkretval);
}
chkretval = 0;
if (eval (("jewelframe" + cury) + curx) == eval (("jewelframe" + (cury + 1)) + curx)) {
if (eval (("jewelframe" + cury) + curx) == eval (("jewelframe" + (cury + 2)) + curx)) {
if (eval (("jewelframe" + cury) + curx) == eval (("jewelframe" + (cury + 3)) + curx)) {
if (eval (("jewelframe" + cury) + curx) == eval (("jewelframe" + (cury + 4)) + curx)) {
if (eval (("jewelframe" + cury) + curx) == eval (("jewelframe" + (cury + 5)) + curx)) {
chkretval = 6;
} else {
chkretval = 5;
}
} else {
chkretval = 4;
}
} else {
chkretval = 3;
}
}
}
if (Number(chkretval) > 0) {
output = ((((((((output + "x=") + curx) + " y=") + cury) + " dir=y len=") + chkretval) + " curj=") + eval (("jewelframe" + cury) + curx)) + "\r";
nummatches = Number(nummatches) + 1;
Set(("match" + nummatches) + "x", curx);
Set(("match" + nummatches) + "y", cury);
Set(("match" + nummatches) + "dir", "y");
Set(("match" + nummatches) + "len", chkretval);
}
curx = Number(curx) + 1;
}
cury = Number(cury) + 1;
curx = 1;
}
Frame 128
output = "";
cursx = 1;
cursy = 1;
jewelnum = 1;
while (Number(cursy) <= Number(numy)) {
while (Number(cursx) <= Number(numx)) {
output = (output + eval (("jewelframe" + cursy) + cursx)) + ",";
cursx = Number(cursx) + 1;
}
output = output + "\r";
cursy = Number(cursy) + 1;
cursx = 1;
}
Frame 135
setProperty("/box1", _x , Number(xoffset) + Number(click1x * 43.2));
setProperty("/box1", _y , Number(yoffset) + Number(click1y * 43.2));
setProperty("/box1", _visible , 1);
Frame 143
setProperty("/box2", _x , Number(xoffset) + Number(click2x * 43.2));
setProperty("/box2", _y , Number(yoffset) + Number(click2y * 43.2));
setProperty("/box2", _visible , 1);
Frame 151
setProperty("/box1", _visible , 0);
setProperty("/box2", _visible , 0);
click1 = 0;
click2 = 0;
disableclick = 0;
Frame 159
jewelframeclick1 = eval (("jewelframe" + click1y) + click1x);
jewelframeclick2 = eval (("jewelframe" + click2y) + click2x);
Set(("jewelframe" + click1y) + click1x, jewelframeclick2);
Set(("jewelframe" + click2y) + click2x, jewelframeclick1);
Set((("jewel" + click1y) + click1x) + ":jewelno", jewelframeclick2);
Set((("jewel" + click2y) + click2x) + ":jewelno", jewelframeclick1);
tellTarget (("jewel" + click1y) + click1x) {
gotoAndStop(..:jewelframeclick2);
};
tellTarget (("jewel" + click2y) + click2x) {
gotoAndStop(..:jewelframeclick1);
};
Frame 160
call("chkmatches");
if (Number(nummatches) > 0) {
setProperty("/box1", _visible , 0);
setProperty("/box2", _visible , 0);
gotoAndPlay ("removematches");
} else {
playbadsound = 1;
Set(("jewelframe" + click1y) + click1x, jewelframeclick1);
Set(("jewelframe" + click2y) + click2x, jewelframeclick2);
Set((("jewel" + click1y) + click1x) + ":jewelno", jewelframeclick1);
Set((("jewel" + click2y) + click2x) + ":jewelno", jewelframeclick2);
tellTarget (("jewel" + click1y) + click1x) {
gotoAndStop(..:jewelframeclick1);
};
output = ((output + "[") + jewelframeclick2) + "] ";
tellTarget (("jewel" + click2y) + click2x) {
gotoAndStop(..:jewelframeclick2);
};
}
Frame 161
call("resetclicks");
gotoAndPlay (10);
Frame 166
_root.tempArr = [];
removematches = nummatches;
mpieces = 0;
while (Number(removematches) > 0) {
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 (Number(mpiecestmp) > 0) {
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 (Number(mpiecestmp) > 0) {
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 (Number(max2) > 1) {
max1 = mpieces;
while (Number(max1) > 1) {
if (eval ("mpieceno" add max1) > eval ("mpieceno" add (max1 - 1))) {
ronpieceno = eval ("mpieceno" add (max1 - 1));
Set("mpieceno" add (max1 - 1), eval ("mpieceno" add max1));
getmethat = undefined;
Set("mpieceno" add (max1 - 1), eval ("mpieceno" add max1));
Set("mpieceno" add max1, ronpieceno);
}
max1 = max1 - 1;
}
max2 = max2 - 1;
}
if (Number(mpieces) > 8) {
if (notmakeBoard == true) {
playinarowsound = 1;
}
}
totalRemoveObject = mpieces;
if (totalRemoveObject == 3) {
trace("notmakeBoard " + notmakeBoard);
if (_root.notmakeBoard == true) {
song = new Sound();
song.attachSound("music2");
song.start(0, 1);
} else {
trace("song stop::---");
}
}
trace("matches::---");
totalpieces = mpieces;
while (Number(totalpieces) > 0) {
curxy = eval ("mpieceno" add totalpieces);
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)) * 43));
setProperty("jewelpicture" add totalpieces, _y , Number(yoffset) + Number(int(substring(curxy, 1, 1)) * 43));
Set("jewelframe" add curxy, 0);
tempArr.push(curxy);
expPosX.push(_root["jewelpicture" + totalpieces]._x);
expPosY.push(_root["jewelpicture" + totalpieces]._y);
totalpieces = totalpieces - 1;
}
if ((totalRemoveObject >= 4) && (notmakeBoard == true)) {
i = 0;
while (i <= totalRemoveObject) {
myTmp = Number(tempArr[2]) - Number(tempArr[1]);
if (myTmp == 1) {
num = Number(tempArr[i]) + 10;
num2 = Number(tempArr[i]) - 10;
} else {
num = Number(tempArr[i]) + 1;
num2 = Number(tempArr[i]) - 1;
}
setProperty("jewel" add num, _visible , 0);
setProperty("jewel" add num2, _visible , 0);
tellTarget ("jewelpicture" add num) {
gotoAndStop(jewelno);
};
tellTarget ("jewelpicture" add num2) {
gotoAndStop(jewelno);
};
Set("jewelframe" add num, 0);
Set("jewelframe" add num2, 0);
i++;
}
}
stepno = 0;
fillgapnum = 9;
if (_root.notmakeBoard == true) {
if (Number(playinarowsound) == 1) {
playinarowsound = 0;
gotoAndPlay ("playinarowsnd");
}
}
Frame 169
if (notmakeBoard == true) {
call("score");
}
if (Math.random(70000) == 5) {
if (Number(stepno) > 0) {
curx = 8;
cury = 8;
while (Number(cury) > 1) {
while (Number(curx) > 0) {
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 (eval ((("jewel" add (cury + 1)) add curx) add ":jewelno") > 0) {
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 (Number(totalpieces) > 0) {
elmntComboX.push(_root["jewelpicture" + totalpieces]._x);
elmntComboY.push(_root["jewelpicture" + totalpieces]._y);
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"));
if ((totalRemoveObject == 5) || (totalRemoveObject == 6)) {
if (notmakeBoard == true) {
_root["jewelpicture" + totalpieces].gotoAndStop("star");
setProperty("jewelpicture" add totalpieces, _xscale , 100 - (stepno * 1));
setProperty("jewelpicture" add totalpieces, _yscale , 100 - (stepno * 1));
} else {
setProperty("jewelpicture" add totalpieces, _xscale , 100 - (stepno * 1));
setProperty("jewelpicture" add totalpieces, _yscale , 100 - (stepno * 1));
}
} else if (totalRemoveObject == 4) {
setProperty("jewelpicture" add totalpieces, _yscale , 100 - (stepno * 1));
setProperty("jewelpicture" add totalpieces, _yscale , 100 - (stepno * 1));
} else {
setProperty("jewelpicture" add totalpieces, _xscale , 100 - (stepno * 7));
setProperty("jewelpicture" add totalpieces, _yscale , 100 - (stepno * 7));
}
totalpieces = totalpieces - 1;
}
if ((totalRemoveObject >= 4) && (notmakeBoard == true)) {
i = 0;
while (i <= 4) {
num = Number(tempArr[i]) + 10;
num2 = Number(tempArr[i]) - 10;
setProperty("jewelpicture" add num, _x , getProperty("jewelpicture" add num, _x) - eval (("jewelpic" add num) add "xstep"));
setProperty("jewelpicture" add num, _y , getProperty("jewelpicture" add num, _y) - eval (("jewelpic" add num) add "ystep"));
setProperty("jewelpicture" add num2, _x , getProperty("jewelpicture" add num2, _x) - eval (("jewelpic" add num2) add "xstep"));
setProperty("jewelpicture" add num2, _y , getProperty("jewelpicture" add num2, _y) - eval (("jewelpic" add num2) add "ystep"));
setProperty("jewelpicture" add num, _visible , false);
setProperty("jewelpicture" add num2, _visible , false);
i++;
}
}
if (Number(stepno) == 8) {
totalpieces = mpieces;
if (combo == false) {
scoresub = 0;
if (totalpieces == 3) {
scoresub = Number(scoresub) + 30;
} else if (totalpieces == 4) {
scoresub = Number(scoresub) + 100;
_root.explode.duplicateMovieClip("explode1", 80000);
_root.explode1._x = _root.expPosX[2];
_root.explode1._y = _root.expPosY[2];
_root.explode1.gotoAndPlay(2);
} else if (totalpieces == 5) {
_root.explode.duplicateMovieClip("explode1", 80000);
_root.explode1._x = _root.expPosX[2];
_root.explode1._y = _root.expPosY[2];
_root.explode1.gotoAndPlay(2);
scoresub = Number(scoresub) + 500;
} else if (totalpieces >= 6) {
_root.combo = true;
comboAdded = true;
} else {
scoresub = Number(scoresub) + 30;
}
}
if (combo == true) {
scoresub = 0;
if (totalpieces == 4) {
scoresub = Number(scoresub) + (100 * _root.level);
comboScore = "X" + _root.comboIncre;
_root.explode.duplicateMovieClip("explode1", 80000);
_root.explode1._x = _root.expPosX[2];
_root.explode1._y = _root.expPosY[2];
_root.explode1.gotoAndPlay(2);
_root.expPosX = [];
_root.expPosY = [];
_root.comboIncre++;
} else if ((totalpieces >= 6) && (totalpieces < 9)) {
scoresub = Number(scoresub) + (200 * _root.level);
comboScore = "X" + _root.comboIncre;
_root.explode.duplicateMovieClip("explode1", 80000);
_root.explode1._x = _root.expPosX[3];
_root.explode1._y = _root.expPosY[3];
_root.expPosX = [];
_root.expPosY = [];
_root.explode1.gotoAndPlay(2);
_root.comboIncre++;
} else if ((totalpieces >= 8) && (totalpieces < 11)) {
_root.explode.duplicateMovieClip("explode1", 80000);
_root.explode1._x = _root.expPosX[3];
_root.explode1._y = _root.expPosY[3];
_root.explode1.gotoAndPlay(2);
_root.expPosX = [];
_root.expPosY = [];
scoresub = Number(scoresub) + (300 * _root.level);
comboScore = "X" + (1 + _root.comboIncre);
_root.comboIncre++;
} else if (totalpieces >= 11) {
_root.explode.duplicateMovieClip("explode1", 80000);
_root.explode1._x = _root.expPosX[4];
_root.explode1._y = _root.expPosY[4];
_root.explode1.gotoAndPlay(2);
_root.expPosX = [];
_root.expPosY = [];
scoresub = Number(scoresub) + (400 * _root.level);
comboScore = "X" + (2 + _root.comboIncre);
_root.comboIncre++;
} else {
scoresub = Number(scoresub) + (100 * _root.level);
comboScore = "X" + _root.comboIncre;
_root.comboIncre++;
}
}
if (notmakeBoard == true) {
if (combo == false) {
if (comboAdded == false) {
duplicateMovieClip ("/addpointsmov", "addpointsmov" add scoremov, 20002 + Number(_root.scoresub));
Set(("/addpointsmov" add scoremov) add "/pointrise:pointval", Number(_root.scoresub));
scorebuffer = Number(scorebuffer) + Number(scoresub);
scoremov = Number(scoremov) + 1;
}
} else {
duplicateMovieClip ("/addpointsmov", "addpointsmov" add scoremov, 20002 + Number(_root.scoresub));
Set(("/addpointsmov" add scoremov) add "/pointrise:pointval", comboScore);
scorebuffer = Number(scorebuffer) + Number(scoresub);
scoremov = Number(scoremov) + 1;
}
}
while (Number(totalpieces) > 0) {
setProperty("jewelpicture" add totalpieces, _visible , 0);
totalpieces = totalpieces - 1;
}
if ((totalRemoveObject >= 4) && (notmakeBoard == true)) {
i = 0;
while (i <= 3) {
if (myTmp == 1) {
num = Number(tempArr[i]) + 10;
num2 = Number(tempArr[i]) - 10;
} else {
num = Number(tempArr[i]) + 1;
num2 = Number(tempArr[i]) - 1;
}
setProperty("jewelpicture" add num, _visible , 0);
setProperty("jewelpicture" add num2, _visible , 0);
i++;
}
}
}
if (_root.notmakeBoard == true) {
if (Number(playclicksound) == 1) {
trace("playclicksnd");
playclicksound = 0;
gotoAndPlay ("playclicksnd");
}
}
Frame 170
fillgapnum = fillgapnum - 1;
if (Number(fillgapnum) > 0) {
gotoAndPlay ("fillgaps");
} else {
fillnewnum = 8;
gotoAndPlay ("insertnew");
}
Frame 171
if (notmakeBoard == true) {
call("score");
}
_root.combo = true;
curx = 8;
cury = 8;
while (Number(cury) > 0) {
fillzero = 8;
while (Number(fillzero) > 0) {
Set("jewelframe0" add fillzero, Number(int(random(jewelsinplay))) + 1);
fillzero = fillzero - 1;
}
while (Number(curx) > 0) {
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 (eval ((("jewel" add (cury + 1)) add curx) add ":jewelno") > 0) {
if (Number(playonce) == 0) {
playonce = 1;
playclicksoundtwo = 1;
}
}
}
if (Number(cury) > 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;
}
fillzero = 8;
while (Number(fillzero) > 0) {
Set("jewelframe0" add fillzero, 0);
fillzero = fillzero - 1;
}
if (_root.notmakeBoard == true) {
if (Number(playclicksoundtwo) == 1) {
playclicksoundtwo = 0;
gotoAndPlay ("playclicksndtwo");
}
}
Frame 172
fillnewnum = fillnewnum - 1;
if (Number(fillnewnum) > 0) {
gotoAndPlay ("insertnew");
} else {
playonce = 0;
playclickonetime = 0;
call("chkmatches");
if (Number(nummatches) > 0) {
inarow = Number(inarow) + 1;
if (Number(inarow) > 1) {
inarow = 0;
if (notmakeBoard == true) {
playinarowsound = 1;
}
}
gotoAndPlay ("removematches");
} else {
call("resetclicks");
gotoAndPlay (10);
}
}
Frame 175
if (Number(scorebuffer) > 0) {
tempArr = [];
if (totalRemoveObject == 4) {
_root.increment = _root.increment + 8;
} else if (totalRemoveObject == 5) {
_root.increment = _root.increment + 7;
} else {
_root.increment = _root.increment + 5;
}
Set("/sb:score", Number(/sb:score));
if (combo == true) {
Set("/sb:score", Number(/sb:score) + _root.scoresub);
scorebuffer = scorebuffer - scorebuffer;
} else if (combo == false) {
Set("/sb:score", Number(/sb:score) + _root.scoresub);
scorebuffer = scorebuffer - scorebuffer;
} else {
Set("/sb:score", Number(/sb:score) + _root.scoresub);
scorebuffer = scorebuffer - scorebuffer;
}
}
if (_root.timer.leveladded == true) {
_root.timer.percent = 100;
_root.timer.leveladded = false;
}
if (_root.timer.percent == 100) {
_root.increment = 0;
_root.timer.percent = 0;
level = Number(level) + 1;
_root.sb.score = Number(/sb:score) + (1000 * level);
levelup = 1;
playlevelsound = 1;
combo = false;
_root.timer.leveladded = false;
}
Frame 183
gotoAndPlay ("backfromclick");
Frame 186
gotoAndPlay ("retfromclicktwo");
Frame 189
_root.combo = true;
_root.comAdded = false;
gotoAndPlay ("removestep");
Frame 195
if (Number(stepno) > 0) {
curx = 8;
cury = 8;
while (Number(cury) > 1) {
while (Number(curx) > 0) {
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 (eval ((("jewel" add (cury + 1)) add curx) add ":jewelno") > 0) {
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 (Number(totalpieces) > 0) {
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 * 5));
setProperty("jewelpicture" add totalpieces, _yscale , 100 - (stepno * 5));
totalpieces = totalpieces - 1;
}
i = 0;
while (i <= 3) {
num = Number(tempArr[i]) + 10;
num2 = Number(tempArr[i]) - 10;
setProperty("jewelpicture" add num, _x , getProperty("jewelpicture" add num, _x) - eval (("jewelpic" add num) add "xstep"));
setProperty("jewelpicture" add num, _y , getProperty("jewelpicture" add num, _y) - eval (("jewelpic" add num) add "ystep"));
setProperty("jewelpicture" add num2, _x , getProperty("jewelpicture" add num2, _x) - eval (("jewelpic" add num2) add "xstep"));
setProperty("jewelpicture" add num2, _y , getProperty("jewelpicture" add num2, _y) - eval (("jewelpic" add num2) add "ystep"));
setProperty("jewelpicture" add num, _xscale , 100 - (stepno * 7));
setProperty("jewelpicture" add num, _yscale , 100 - (stepno * 7));
setProperty("jewelpicture" add num2, _xscale , 100 - (stepno * 7));
setProperty("jewelpicture" add num2, _yscale , 100 - (stepno * 7));
i++;
}
tempArr = [];
if (Number(stepno) == 8) {
totalpieces = mpieces;
while (Number(totalpieces) > 0) {
setProperty("jewelpicture" add totalpieces, _visible , 0);
totalpieces = totalpieces - 1;
}
i = 0;
while (i <= 3) {
num = Number(tempArr[i]) + 10;
num2 = Number(tempArr[i]) - 10;
setProperty("jewelpicture" add num, _visible , 0);
setProperty("jewelpicture" add num2, _visible , 0);
i++;
}
}
if (_root.notmakeBoard == true) {
if (Number(playclicksound) == 1) {
playclicksound = 0;
gotoAndPlay ("playclicksnd");
}
}
Frame 199
fillgapnum = fillgapnum - 1;
if (Number(fillgapnum) > 0) {
gotoAndPlay ("fillgaps1");
} else {
fillnewnum = 8;
gotoAndPlay ("insertnew");
}
Frame 209
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 223
duplicateMovieClip ("timeup", "timeup1", 10000);
myScore = _root.sb.score;
tScores = myScore;
bgsndClip.stop();
soundController.gotoAndStop(1);
stopAllSounds();
stop();
function clean() {
for (i in _root) {
_root[i].removeMovieClip();
}
}
_root.clean();
Frame 226
Frame 235
gotoAndStop (220);
Symbol 4 MovieClip Frame 1
stop();
Symbol 4 MovieClip Frame 2
play();
Symbol 4 MovieClip Frame 7318
gotoAndPlay (2);
Symbol 12 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 1
stop();
Instance of Symbol 12 MovieClip in Symbol 14 MovieClip Frame 1
onClipEvent (load) {
total = _parent._parent.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _parent._parent.getBytesLoaded();
percent = int((loaded / total) * 100);
gotoAndStop(percent);
perText = percent + "%";
if (percent >= 100) {
_parent.gotoAndStop(2);
}
}
Symbol 14 MovieClip Frame 2
stop();
Symbol 16 Button
on (release) {
getURL ("http://www.apple.com/itunes/affiliates/download/?trackName=Hipster+Girl&artistName=MC+Lars&thumbnailUrl=http%3A%2F%2Fa1.phobos.apple.com%2Fr10%2FMusic%2F87%2F79%2F12%2Fmzi.fttsxfig.100x100-75.jpg&itmsUrl=itms%3A%2F%2Fphobos.apple.com%2FWebObjects%2FMZStore.woa%2Fwa%2FviewAlbum%3Fi%3D212091723%26id%3D212091722%26s%3D143441%26partnerId%3D30%26partnerId%3D30%26siteID%3Dk9_8q_rwbWM-Tfl0qgbnVOwKJC5kO_7JQw%26ign-mscache%3D1&albumName=Hipster+Girl+-+Single", "_blank");
}
Symbol 23 Button
on (release) {
gameEnds = false;
soundController.sndButt.enabled = true;
gotoAndPlay ("fileloaded");
}
Symbol 27 Button
on (release) {
getURL ("http://www.ikoncity.com", "_blank");
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 100
stop();
Symbol 40 Button
on (release) {
_parent.bgsndClip.stop();
gotoAndStop (3);
}
Symbol 49 MovieClip Frame 1
titleMc.autoSize = true;
titletxt = "YOU ARE LISTENING TO-HIPSTER GIRL";
Symbol 55 Button
on (release) {
_parent.bgsndClip.play();
gotoAndStop (2);
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 2
stop();
Instance of Symbol 42 MovieClip in Symbol 58 MovieClip Frame 2
onClipEvent (load) {
speed = 0.4;
titleClipX = _parent.titleClip._x + 180;
}
onClipEvent (enterFrame) {
if ((_parent.titleClip.hitTest(_parent.hit1) || (_parent.titleClip.hitTest(_parent.hit2))) || (_parent.titleClip.hitTest(_parent.hit3))) {
_parent.titleClip._x = _parent.titleClip._x - speed;
} else if (_parent.hit3._x < _parent.titleClip._x) {
_parent.titleClip._x = _parent.titleClip._x - speed;
} else {
_parent.titleClip._x = titleClipX;
}
}
Symbol 58 MovieClip Frame 3
stop();
Symbol 60 MovieClip Frame 5
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
trace("explode" + _currentframe);
play();
Symbol 103 MovieClip Frame 31
removeMovieClip("");
Symbol 108 MovieClip Frame 62
removeMovieClip("");
Symbol 115 MovieClip Frame 124
stop();
if (_parent.nomatchPos == true) {
_parent.gotoAndStop("timeup");
}
Symbol 119 MovieClip Frame 1
if (level == 1) {
_root.sb.score = 0;
}
_root.notmakeBoard = false;
Symbol 119 MovieClip Frame 141
_root.timer.gotoAndPlay(1);
Symbol 119 MovieClip Frame 179
_root.notmakeBoard = true;
_root.combo = false;
_root.comboAdded = false;
tempArr = [];
trace("combo making again" + _root.combo);
stop();
Symbol 122 MovieClip Frame 26
removeMovieClip("");
Symbol 134 MovieClip Frame 1
Symbol 134 MovieClip Frame 84
_root.notmakeBoard = false;
_root.increment = 0;
_root.timer.percent = 0;
removeMovieClip("");
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 2
play();
Symbol 181 MovieClip Frame 19
stop();
Symbol 183 Button
on (rollOver) {
if (Number(..:disableclick) == 0) {
stop = 0;
gotoAndPlay(jewelno * 10);
}
}
on (rollOut, dragOut) {
if (Number(..:disableclick) == 0) {
stop = 1;
}
}
on (release) {
_root.elmntComboX = [];
_root.elmntComboY = [];
_root.comboIncre = 2;
_root.expPosX = [];
_root.expPosY = [];
_root.explodePosX = _parent._xmouse;
_root.explodePosY = _parent._ymouse;
if (_root.comboAdded == true) {
_root.comboAdded = false;
}
if (_root.combo == true) {
_root.combo = false;
}
if (Number(..:disableclick) == 0) {
Set("..:click", jewelxy);
}
}
Symbol 186 MovieClip Frame 10
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 11
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 12
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 13
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 14
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 15
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 16
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 17
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 18
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 19
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (10);
}
Symbol 186 MovieClip Frame 20
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 21
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 22
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 23
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 24
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 25
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 26
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 27
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 28
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 29
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (20);
}
Symbol 186 MovieClip Frame 30
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 31
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 32
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 33
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 34
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 35
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 36
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 37
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 38
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 39
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (30);
}
Symbol 186 MovieClip Frame 40
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 41
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 42
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 43
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 44
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 45
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 46
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 47
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 48
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 49
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (40);
}
Symbol 186 MovieClip Frame 50
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 51
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 52
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 53
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 54
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 55
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 56
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 57
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 58
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 59
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (50);
}
Symbol 186 MovieClip Frame 60
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 61
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 62
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 63
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 64
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 65
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 66
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 67
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 68
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 69
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (60);
}
Symbol 186 MovieClip Frame 70
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 71
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 72
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 73
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 74
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 75
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 76
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 77
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 78
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 186 MovieClip Frame 79
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (70);
}
Symbol 225 MovieClip Frame 20
stop();
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 2
stop();
Symbol 226 MovieClip Frame 3
stop();
Symbol 226 MovieClip Frame 4
stop();
Symbol 226 MovieClip Frame 5
stop();
Symbol 226 MovieClip Frame 6
stop();
Symbol 226 MovieClip Frame 7
stop();
Symbol 226 MovieClip Frame 8
trace("here");
stop();
Symbol 251 MovieClip Frame 1
setProperty("bar", _xscale , 100);
if (_root.level == 1) {
input1 = 300;
} else if (_root.level == 2) {
input1 = 250;
} else if (_root.level == 3) {
input1 = 200;
} else if (_root.level == 4) {
input1 = 170;
} else if (_root.level == 5) {
input1 = 160;
} else if (_root.level == 6) {
input1 = 150;
} else if (_root.level == 7) {
input1 = 140;
} else if (_root.level == 8) {
input1 = 130;
} else if (_root.level == 9) {
input1 = 120;
} else if (_root.level == 10) {
input1 = 110;
} else if (_root.level == 11) {
input1 = 100;
} else if (_root.level == 12) {
input1 = 90;
} else if (_root.level == 13) {
input1 = 85;
} else if (_root.level == 14) {
input1 = 80;
} else if (_root.level == 15) {
input1 = 75;
} else if (_root.level == 16) {
input1 = 65;
} else if (_root.level == 17) {
input1 = 55;
} else if (_root.level == 18) {
input1 = 50;
} else if (_root.level == 19) {
input1 = 45;
} else if (_root.level == 20) {
input1 = 40;
} else if (_root.level == 21) {
input1 = 35;
} else if (_root.level == 22) {
input1 = 30;
} else if (_root.level == 23) {
input1 = 25;
} else if (_root.level == 24) {
input1 = 20;
} else if (_root.level == 25) {
input1 = 15;
} else if (_root.level == 26) {
input1 = 10;
} else {
gotoAndStop ("timeup");
}
Symbol 251 MovieClip Frame 2
zeero = int(getTimer() / 1000);
Symbol 251 MovieClip Frame 3
function dosomething() {
_root.gotoAndStop("highscore");
}
output = input1;
if (Number(output) > 0) {
display = int(getTimer() / 1000) - zeero;
output = input1 - display;
percent = Math.round((((output / input1) * 100) - 50) + _root.increment);
if ((Number(percent) > 0) && (Number(percent) < 100)) {
setProperty("bar", _xscale , percent);
} else {
_root.timer.leveladded = true;
gotoAndStop (1);
}
}
if (Number(percent) == 0) {
percentT = "TIME'S UP !!!";
_root.gotoAndStop("timeup");
}
Symbol 251 MovieClip Frame 4
gotoAndPlay ("loopstart");
Symbol 251 MovieClip Frame 25
_root.gotoAndPlay("timeup");
Symbol 264 Button
on (release) {
getURL ("http://www.ikoncity.com", "_blank");
}
Symbol 268 Button
on (release) {
getURL ("http://www.purevolume.com/mclars", "_blank");
}
Symbol 272 Button
on (release) {
getURL ("http://www.myspace.com/mclars", "_blank");
}
Symbol 276 Button
on (release) {
getURL ("http://www.merchdirect.net/MCLars", "_blank");
}
Symbol 280 Button
on (release) {
getURL ("http://www.mclars.com", "_blank");
}
Symbol 284 Button
on (release) {
getURL ("http://www.ikoncity.com/icgames/published/ikons/mclars/mclarsfp.html", "_blank");
}
Symbol 288 Button
on (release) {
gameEnds = true;
gotoAndStop (1);
}
Symbol 294 MovieClip Frame 1
showscore = _root.myScore;