Frame 2
stop();
Stage.showMenu = false;
Instance of Symbol 10 MovieClip in Frame 2
onClipEvent (load) {
total = _parent.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _parent.getBytesLoaded();
percent = int((loaded / total) * 100);
gotoAndStop(percent);
perText = percent + "%";
if (percent >= 100) {
_parent.gotoAndStop("instruct");
}
}
Frame 3
function defineCalls() {
dbInterface.startGame = function () {
lc.send(lcBaseString + lcString, "startGame");
_root.dbInterface.updateScore(_root.score);
};
dbInterface.endGame = function () {
lc.send(lcBaseString + lcString, "endGame");
};
dbInterface.endGameUncompleted = function () {
lc.send(lcBaseString + lcString, "endGameUncompleted");
};
dbInterface.setFeedbackType = function (fbType) {
lc.send(lcBaseString + lcString, "setFeedbackType", fbType);
};
dbInterface.updateTime = function (strTime) {
lc.send(lcBaseString + lcString, "updateTime", strTime);
};
dbInterface.updateScore = function (strScore) {
lc.send(lcBaseString + lcString, "updateScore", strScore);
};
setActive();
}
function setActive() {
trace("heree");
connection.text = "Connection: made";
dbInterface.setFeedbackType("score");
dbInterface.startGame();
}
function setDeactive() {
dbInterface.endGame();
}
function testConnection() {
lcTest.send(lcBaseString + lcString, "active");
feedback.text = lcBaseString + lcString;
}
stop();
var lc = new LocalConnection();
var lcTest = new LocalConnection();
var lcBaseString = "IKONCITY_GAMES";
var dbInterface = new Object();
var iTestConnectionIntervalID;
var iTimerIntervalID;
lcTest.onStatus = function (infoObject) {
if (infoObject.level == "error") {
clearInterval(iTestConnectionIntervalID);
defineCalls();
rSystem._x = -1000;
}
};
iTestConnectionIntervalID = setInterval(testConnection, 500);
Frame 4
stop();
Instance of Symbol 36 MovieClip "startClip" in Frame 4
onClipEvent (load) {
_parent.initSD = this.getDepth();
this.swapDepths(57688);
}
Frame 5
stop();
gotoAndPlay ("fileloaded");
Frame 6
function getTime() {
var _local2 = loadMySound.getBytesLoaded();
var _local1 = loadMySound.getBytesTotal();
perCentText = Math.ceil((_local2 / _local1) * 100);
trace("perCentText :: " + perCentText);
if (isNaN(perCentText)) {
trace("isNAN");
} else {
soundController.percentage.gotoAndStop(perCentText);
if (perCentText >= 100) {
trace("inside");
soundController.gotoAndStop(2);
loadMySound.gotoAndPlay(2);
clearInterval(myIntervalId);
}
}
}
function loadSong() {
if (firstTimePlayMP3 == 0) {
trace("loadsound");
loadMySound.loadMovie("dswmedia/musicassets.swf");
myIntervalId = setInterval(getTime, 100);
firstTimePlayMP3 = 1;
}
}
var myIntervalId;
var firstTimePlayMP3 = 0;
_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 56 MovieClip in Frame 6
onClipEvent (load) {
previousAppliedScore = undefined;
}
onClipEvent (enterFrame) {
myScore = _root.sb.score;
if ((myScore != undefined) && (previousAppliedScore != myScore)) {
_root.dbInterface.updateScore(myScore);
previousAppliedScore = myScore;
trace(previousAppliedScore);
}
}
Frame 7
function clean() {
var _local1 = _root;
trace("clean");
for (i in _local1) {
_local1[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 (10);
}
Frame 10
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 14
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 15
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 (14);
Frame 17
moveispossible = 1;
setProperty("/nomatch", _visible , "0");
duplicateMovieClip ("/nomatch", "nomatch1", 10001);
_root.timer.gotoAndStop(1);
tScore = _root.sb.score;
_root.setDeactive();
stop();
Instance of Symbol 287 MovieClip "noMatchGame" in Frame 17
onClipEvent (load) {
_parent.initSDepth = this.getDepth();
this.swapDepths(57682);
}
Frame 55
gotoAndPlay ("endloopnow");
Frame 58
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 66
gotoAndPlay (14);
Frame 69
gotoAndPlay (15);
Frame 80
gotoAndPlay (14);
Frame 114
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);
trace(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);
trace(("jewel" add cury) add curx);
};
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 123
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);
}
trace("curx" + curx);
curx = Number(curx) + 1;
}
cury = Number(cury) + 1;
curx = 1;
}
Frame 133
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 140
setProperty("/box1", _x , Number(xoffset) + Number(click1x * 43.2));
setProperty("/box1", _y , Number(yoffset) + Number(click1y * 43.2));
setProperty("/box1", _visible , 1);
Frame 148
setProperty("/box2", _x , Number(xoffset) + Number(click2x * 43.2));
setProperty("/box2", _y , Number(yoffset) + Number(click2y * 43.2));
setProperty("/box2", _visible , 1);
Frame 156
setProperty("/box1", _visible , 0);
setProperty("/box2", _visible , 0);
click1 = 0;
click2 = 0;
disableclick = 0;
Frame 164
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 165
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 166
call("resetclicks");
gotoAndPlay (15);
Frame 171
song = new Sound();
_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;
}
}
trace("mpieces" + mpieces);
totalRemoveObject = mpieces;
if (totalRemoveObject == 3) {
if (_root.notmakeBoard == true) {
song.attachSound("music2");
song.start();
} else {
song.stop();
}
}
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;
}
trace(tempArr);
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 174
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 {
trace("else part");
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 175
fillgapnum = fillgapnum - 1;
if (Number(fillgapnum) > 0) {
gotoAndPlay ("fillgaps");
} else {
fillnewnum = 8;
gotoAndPlay ("insertnew");
}
Frame 176
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 177
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 (15);
}
}
Frame 180
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 188
gotoAndPlay ("backfromclick");
Frame 191
gotoAndPlay ("retfromclicktwo");
Frame 194
_root.combo = true;
_root.comAdded = false;
gotoAndPlay ("removestep");
Frame 200
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 204
fillgapnum = fillgapnum - 1;
if (Number(fillgapnum) > 0) {
gotoAndPlay ("fillgaps1");
} else {
fillnewnum = 8;
gotoAndPlay ("insertnew");
}
Frame 214
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 228
duplicateMovieClip ("timeup", "timeup1", 10000);
myScore = _root.sb.score;
tScores = myScore;
stopAllSounds();
setDeactive();
stop();
function clean() {
var _local1 = _root;
for (i in _local1) {
_local1[i].removeMovieClip();
}
}
_root.clean();
Frame 231
Frame 240
gotoAndStop (225);
Symbol 10 MovieClip Frame 1
stop();
Symbol 33 Button
on (release) {
_parent.startClip.swapDepths(_parent.initSD);
_parent.gotoAndPlay("fileloaded");
}
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 100
stop();
Symbol 49 Button
on (release) {
_parent.loadMySound.stop();
trace(_parent.loadMySound._currentframe);
gotoAndStop (3);
}
Symbol 52 Button
on (release) {
_parent.loadMySound.gotoAndPlay(_parent.loadMySound._currentframe + 1);
trace(_parent.loadMySound._currentframe);
gotoAndStop (2);
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 2
stop();
Symbol 54 MovieClip Frame 3
stop();
Symbol 56 MovieClip Frame 5
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
trace("explode" + _currentframe);
play();
Symbol 99 MovieClip Frame 31
removeMovieClip("");
Symbol 104 MovieClip Frame 62
removeMovieClip("");
Symbol 111 MovieClip Frame 124
stop();
_parent.noMatchGame.gotoAndStop(2);
Symbol 115 MovieClip Frame 1
if (level == 1) {
_root.sb.score = 0;
}
_root.notmakeBoard = false;
Symbol 115 MovieClip Frame 141
_root.timer.gotoAndPlay(1);
_parent.loadSong();
Symbol 115 MovieClip Frame 179
_root.notmakeBoard = true;
_root.combo = false;
_root.comboAdded = false;
tempArr = [];
trace("combo making again" + _root.combo);
stop();
Symbol 118 MovieClip Frame 26
removeMovieClip("");
Symbol 131 MovieClip Frame 1
Symbol 131 MovieClip Frame 84
_root.notmakeBoard = false;
_root.increment = 0;
_root.timer.percent = 0;
removeMovieClip("");
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 2
play();
Symbol 190 MovieClip Frame 19
stop();
Symbol 192 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 196 MovieClip Frame 10
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 11
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 12
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 13
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 14
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 15
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 16
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 17
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 18
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 19
if (Number(jewelno) != 1) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (10);
}
Symbol 196 MovieClip Frame 20
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 21
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 22
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 23
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 24
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 25
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 26
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 27
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 28
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 29
if (Number(jewelno) != 2) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (20);
}
Symbol 196 MovieClip Frame 30
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 31
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 32
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 33
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 34
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 35
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 36
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 37
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 38
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 39
if (Number(jewelno) != 3) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (30);
}
Symbol 196 MovieClip Frame 40
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 41
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 42
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 43
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 44
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 45
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 46
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 47
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 48
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 49
if (Number(jewelno) != 4) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (40);
}
Symbol 196 MovieClip Frame 50
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 51
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 52
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 53
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 54
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 55
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 56
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 57
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 58
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 59
if (Number(jewelno) != 5) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (50);
}
Symbol 196 MovieClip Frame 60
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 61
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 62
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 63
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 64
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 65
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 66
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 67
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 68
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 69
if (Number(jewelno) != 6) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (60);
}
Symbol 196 MovieClip Frame 70
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 71
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 72
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 73
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 74
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 75
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 76
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 77
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 78
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
Symbol 196 MovieClip Frame 79
if (Number(jewelno) != 7) {
stop = 1;
gotoAndStop(jewelno);
}
if (Number(stop) == 1) {
gotoAndStop(jewelno);
} else {
gotoAndPlay (70);
}
Symbol 235 MovieClip Frame 20
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
stop();
Symbol 236 MovieClip Frame 3
stop();
Symbol 236 MovieClip Frame 4
stop();
Symbol 236 MovieClip Frame 5
stop();
Symbol 236 MovieClip Frame 6
stop();
Symbol 236 MovieClip Frame 7
stop();
Symbol 236 MovieClip Frame 8
trace("here");
stop();
Symbol 261 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 261 MovieClip Frame 2
zeero = int(getTimer() / 1000);
Symbol 261 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 261 MovieClip Frame 4
gotoAndPlay ("loopstart");
Symbol 261 MovieClip Frame 25
_root.gotoAndPlay("timeup");
Symbol 272 Button
on (release) {
trace("no match possible--------");
_parent.noMatchGame.swapDepths(_parent.initSDepth);
_parent.gotoAndStop("instruct");
}
Symbol 279 Button
on (release) {
getURL ("http://www.ikoncity.com/ic-master.asp?pageID=805", "_blank");
}
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 2
stop();
trace("no match------::::");
stopAllSounds();
blocks.useHandCursor = false;
Symbol 294 Button
on (release) {
gotoAndStop ("instruct");
}
Symbol 297 MovieClip Frame 1
showscore = _root.myScore;