STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228128
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/82785335?noj=FRM82785335-14DC" width="1" height="1"></div>

Diamond Mine.swf

This is the info page for
Flash #27699

(Click the ID number above for more basic data on this flash file.)


Text
L

o

a

d

i

n

g

.

version 1.02w

Game Scoring

Game Scoring

Game Hints

Game Hints

Game Rules

Game Rules

Play

Play

Back

Back

Game Rules:
The game begins with a full screen of randomly placed gems of 7 colors.
Players choose 2 adjacent gems (horizontally or vertically adjacent) to switch
places on the game board. If the switched gems create a row of 3 or more
identical gems, the gems switch, then disappear, and the player earns points!
Then new gems appear on the top of the game board, and the player continues
to make matches until the 5:00 timer runs out or until no further matches are
possible. Players participating in the same tournament will receive initial layouts
that are identical (i.e. the same gem allocation).
Players earn additional points for gem rows of 4 or more, and can earn
additional points when multiple matches are made on a single play. After 30
seconds of game play in which a player does not make a switch selection, the
game provides a hint, flashing two interchangeable gems.

Next

Next

Match 3 gems- 10 points
Match 4 gems- 20 points
Match 5 gems- 30 points
Match 6 gems- 50 points
Players earn additional points when multiple matches are made on a single play.
Players lose one point every 5 seconds of game play where
no selections are made.
Match #2- 10 points
Match #3- 20 points
Match #4- 30 points
Match #5- 50 points
Match #6- 70 points
Match #7- 100 points
Match #8- 150 points
#9 or more 200 points

Players also receive bonuses when they reach a specific point amounts.
The bonus structure is as follows:
When reaching 1,000 Points– 100 Point Bonus
When reaching 1,500 Points– 150 Point Bonus
When reaching 2,000 Points– 200 Point Bonus
When reaching 2,500 Points– 250 Point Bonus
When reaching 3,000 Points– 250 Point Bonus
When reaching 3,500 Points– 250 Point Bonus

Game Hints:
* First and foremost, speed is a critical component of this game.
Match gems as quickly as you can.
* The first thing you need to understand about Diamond Mine is that you get
more points by clearing 4 or 5 gems at a time then you would
get by clearing 3 row gems.
* Look for the gems that are easiest to identify matches for.
This may be based on color or shape,
depending upon your personal preference.
* Try to match gems which are located at the bottom or towards the
bottom so that your chances of making multiple matches with
dropping gems is higher.
* Remember, the first match you see is not always the best match. Try to
strategically match gems so that you position yourself for the best next move.

Game Hints:
* First and foremost, speed is a critical component of this game.
Match gems as quickly as you can.
* The first thing you need to understand about Diamond Mine is that you get
more points by clearing 4 or 5 gems at a time then you would
get by clearing 3 row gems.
* Look for the gems that are easiest to identify matches for.
This may be based on color or shape,
depending upon your personal preference.
* Try to match gems which are located at the bottom or towards the
bottom so that your chances of making multiple matches with
dropping gems is higher.
* Remember, the first match you see is not always the best match. Try to
strategically match gems so that you position yourself for the best next move.

5:00

You have run out of matches. The game will reset.

Time

Score

0

GR.com
score code

ActionScript [AS1/AS2]

Frame 1
Stage.showMenu = false; stop(); _root.gameID = "EE792CD4"; if (_root.gcode == null) { getURL ("http://www.gamerival.com/utilities/redir.cfm?game=" add _root.gameID, "_blank"); } else { play(); }
Frame 2
if (_framesloaded >= _totalframes) { gotoAndStop (4); } else { play(); }
Frame 3
gotoAndStop (2);
Frame 4
QUALITY = HIGH; stop(); function init() { gHintTime = 2700; gPoints = []; gNumRows = 8; gNumCols = 8; gJewelWidth = 36; gJewelHeight = 33; gJewelWidth2 = 47.52; gJewelHeight2 = 43.56; gNumTypes = 7; gTypesArray = new Array(); gTypesArray = [1, 2, 3, 4, 5, 6, 7]; NORMAL = 1; SHRINKING = 2; SLIDING = 3; SWAPPING = 4; UNSWAPPING = 5; HINT = 6; CHECKMORE = 7; GAMEOVER = 8; gDebug = false; gDebug1 = false; score = 0; scorecheck = "0"; } function setUp() { _root.board_button._width = gNumCols * gJewelWidth2; _root.board_button._height = gNumRows * gJewelHeight2; _root.board_button._x = _root.jewel_MCA._x; _root.board_button._y = _root.jewel_MCA._y; _root.board_button.gotoAndStop("inactive"); gJewel = new Array(); do { gJewelID = 1; var i = 1; while (gNumRows >= i) { gJewel[i] = new Array(); var j = 1; while (gNumCols >= j) { var lName = ("jewel_" + gJewelID); jewel_MCA.initJewel.duplicateMovieClip(lName, gJewelID); gJewel[i][j] = gJewelID; _root.jewel_MCA[lName].pRow = i; _root.jewel_MCA[lName].pCol = j; _root.jewel_MCA[lName].pID = gJewelID; _root.jewel_MCA[lName]._x = (j - 0.5) * gJewelWidth; _root.jewel_MCA[lName]._y = (i - 0.5) * gJewelHeight; _root.jewel_MCA[lName].pFrameTimer = -1; if (gDebug) { var x = Math.ceil(j / 2); var y = Math.ceil(i / 2); if (odd(x + y)) { var lType = 1; } else { var lType = 2; } } else if (gDebug1) { var x = Math.ceil(j / 2); var y = Math.ceil(i / 2); var frac = (((x + y) / 3) - Math.floor((x + y) / 3)); var mod = (frac * 3); if (mod == 0) { var lType = 1; } else if (mod == 1) { var lType = 2; } else if (mod == 2) { var lType = 3; } } else { var lType = Math.ceil(Math.random() * gNumTypes); } _root.jewel_MCA[lName].apple.gotoAndStop(lType); var lMatch = true; var k = 1; while (2 >= k) { var r = i; var c = (j - k); if (c < 1) { lMatch = false; break; } var lName = ("jewel_" + gJewel[r][c]); var lJewel = _root.jewel_MCA[lName]; if (lJewel.apple._currentFrame != lType) { lMatch = false; break; } k++; } if (!lMatch) { lMatch = true; var k = 1; while (2 >= k) { var r = (i - k); var c = j; if (r < 1) { lMatch = false; break; } var lName = ("jewel_" + gJewel[r][c]); var lJewel = _root.jewel_MCA[lName]; if (lJewel.apple._currentFrame != lType) { lMatch = false; break; } k++; } } if (lMatch) { var lChoice = gTypesArray.slice(0); r = i; c = j - 1; if (0 < c) { var lName = ("jewel_" + gJewel[r][c]); var lJewel = _root.jewel_MCA[lName]; var lType = lJewel.apple._currentFrame; var lIndex = getOne(lChoice, lType); lChoice.splice(lIndex, 1); } r = i - 1; c = j; if (0 < r) { var lName = ("jewel_" + gJewel[r][c]); var lJewel = _root.jewel_MCA[lName]; var lType = lJewel.apple._currentFrame; var lIndex = getOne(lChoice, lType); if (lIndex != -1) { lChoice.splice(lIndex, 1); } } if (gDebug || (gDebug1)) { var lIndex = 1; } else { var lIndex = Math.floor(Math.random() * lChoice.length); } var lName = ("jewel_" + gJewelID); _root.jewel_MCA[lName].apple.gotoAndStop(lChoice[lIndex]); } gJewelID++; j++; } i++; } var lHasSwaps = checkHasSwaps(); } while (0 >= lHasSwaps.length); var i = gNumRows; while (i >= 1) { var j = 1; while (gNumCols >= j) { var lJewel = jewelAt(i, j); if (i == gNumRows) { lJewel._y = ((-0.5 * gJewelHeight) - (Math.random() * 50)) - 2; } else { var lPrev = jewelAt(i + 1, j); lJewel._y = ((lPrev._y - gJewelHeight) - (Math.random() * 50)) - 2; } j++; } i--; } gPlayLandSound = 0; gNumLandSoundsPlayed = 0; gNumLanded = 0; gLanded = new Array(); var j = 1; while (gNumCols >= j) { gLanded[j] = gNumRows + 1; j++; } _root.points_MCA._x = _root.jewel_MCA._x; _root.points_MCA._y = _root.jewel_MCA._y; gSelected = 0; gMode = SETUP; gHasPoints = false; placeOffstage(_root.game_over_explanation_MC); placeOffstage(_root.bonusMC); startGameTime = 0; updateGameStats(); playSound("beginsound"); } function setupVars() { score = 0; scorecheck = "0"; _root.game_stats.score = 0; gMostMatchesPerSwap = 0; gHighestScoringSwap = 0; gLongestChain = 0; nextBonus = 1000; removeBonusTime = 0; gGameBeginTime = getTimer(); gEndGameTime = getTimer() + _root.timetoend; gGameTimer = getTimer(); gLastMatchTime = getTimer(); } function frameLoop() { if (gMode == NORMAL) { var lTime = getTimer(); if ((gGameTimer + 5000) < lTime) { updateScore(-1); gGameTimer = lTime; } if ((gLastMatchTime + 30000) < lTime) { showHint(); } } else if (gMode == CHECKMORE) { checkMoreMatches(); } else if ((gMode == SWAPPING) || (gMode == UNSWAPPING)) { if (gSwapSteps < gSwapStep) { if (gMode == SWAPPING) { evaluateSwap(); } else { gMode = NORMAL; gSwapped = 0; gSelected = 0; } } else { gSelected._x = gSelected._x + gSelected.pSwapStep.x; gSelected._y = gSelected._y + gSelected.pSwapStep.y; gSwapped._x = gSwapped._x + gSwapped.pSwapStep.x; gSwapped._y = gSwapped._y + gSwapped.pSwapStep.y; } gSwapStep++; } else if (gMode == SHRINKING) { gSize = gSize - 20; if (0 < gSize) { var i = 0; while (i < gMatch.length) { gMatch[i]._xscale = gSize; gMatch[i]._yscale = gSize; i++; } } else { startSliding(); } } else if (gMode == SLIDING) { var i = 0; while (i < gBlock.length) { slide(gBlock[i]); i++; } var i = 0; while (i < gMatch.length) { slide(gMatch[i]); i++; } gSlideSpeed = gSlideSpeed + 2; } else if (gMode == HINT) { var i = 0; while (i < gHint.length) { var a = gHint[i]._alpha; a = oscillate(a, 20, 100, 20); if (a == 80) { var lTime = getTimer(); if ((gHintTimer + gHintTime) < lTime) { var i = 0; while (i < gHint.length) { gHint[i]._alpha = 100; i++; } gMode = NORMAL; } } if (gMode == HINT) { gHint[i]._alpha = a; } i++; } } else if (gMode == SETUP) { var lTime = getTimer(); if (gPlayLandSound == 0) { this.playSound("pileup2"); gPlayLandSound = 1; } var j = 1; while (gNumCols >= j) { var lLowestMoving = (gLanded[j] - 1); var i = lLowestMoving; while (i >= 1) { var lJewel = jewelAt(i, j); var y = lJewel._y; if (lJewel.pFrameTimer == -1) { lJewel.pFrameTimer = lTime; } else { y = y + (((lTime - lJewel.pFrameTimer) * 20) / 33); lJewel.pFrameTimer = lTime; var lDestY = ((lJewel.pRow - 0.5) * gJewelHeight); if (y >= lDestY) { lJewel._y = lDestY; gLanded[j] = i; gNumLanded++; currTime = getTimer(); if (3 < (currTime - gLastTickTime)) { gLastTickTime = currTime(); playSound("tick"); } } else { lJewel._y = y; } } i--; } j++; } if (gNumLanded >= (gNumCols * gNumRows)) { gMode = NORMAL; _root.board_button.gotoAndStop("active"); } } if (0 < gPoints.length) { movePoints(); } if ((startGameTime != 0) and (startGameTime < currTime)) { placeOffstage(_root.game_over_explanation_MC); setup(); } if ((removeBonusTime != 0) and (removeBonusTime < currTime)) { placeOffstage(_root.bonusMC); removeBonusTime = 0; } checkGameTimer(); } function place(vJewel) { vJewel._x = (vJewel.pCol - 0.5) * gJewelWidth; vJewel._y = (vJewel.pRow - 0.5) * gJewelHeight; } function jewelAt(r, c) { var lName = ("jewel_" + gJewel[r][c]); var lJewel = _root.jewel_MCA[lName]; return(lJewel); } function typeAt(r, c) { var lJewel = jewelAt(r, c); var lType = lJewel.apple._currentFrame; return(lType); } function hasType(r, c, vType) { if (!onBoard(r, c)) { return(false); } var lType = typeAt(r, c); if (lType == vType) { return(true); } return(false); } function onBoard(r, c) { if ((((r < 1) || (c < 1)) || (gNumRows < r)) || (gNumCols < c)) { return(false); } return(true); } function startPoints(vValue, x, y) { var lName = ("points_" + (gBonus + 1)); _root.points_MCA.initPoints.duplicateMovieClip(lName, gBonus + 1); var lPointsMC = _root.points_MCA[lName]; lPointsMC._x = x; lPointsMC._y = y; lPointsMC.gotoAndStop(vValue / 10); lPointsMC.pDestY = lPointsMC._y - 15; lPointsMC.pFrameTimer = getTimer(); lPointsMC.pStartTimer = lPointsMC.pFrameTimer; gPoints.push(lPointsMC); updateScore(vValue); gScoreThisSwap = gScoreThisSwap + vValue; } function updateScore(vChange) { if (vChange < 0) { _root.vChangeDisp = vChange; } else { _root.vChangeDisp = "+" add vChange; } var lScore = (score + vChange); if (lScore < 0) { vChange = -1 * score; } _root.game_stats.score = score + vChange; score = score + vChange; scorecheck = String(Number(scorecheck) + vChange); if (nextBonus < score) { bonusAmount = (((nextBonus - 1000) / 500) * 50) + 100; if (250 < bonusAmount) { bonusAmount = 250; } showBonus(); nextBonus = nextBonus + 500; updateScore(bonusAmount); } } function movePoints() { var lTime = getTimer(); var i = (gPoints.length - 1); while (i >= 0) { var y = gPoints[i]._y; y = y - ((lTime - gPoints[i].pFrameTimer) / 33); gPoints[i]._y = y; gPoints[i].pFrameTimer = lTime; if ((gPoints[i].pStartTimer + 1000) < lTime) { gPoints[i].removeMovieClip(); gPoints.splice(i, 1); } i--; } } function clickedBoard(x, y) { if ((gMode != NORMAL) && (gMode != HINT)) { return(undefined); } this.playSound("click"); if (gMode == HINT) { var i = 0; while (i < gHint.length) { gHint[i]._alpha = 100; gMode = NORMAL; i++; } } if (gMode != NORMAL) { return(undefined); } var c = Math.ceil((x - _root.jewel_MCA._x) / gJewelWidth2); var r = Math.ceil((y - _root.jewel_MCA._y) / gJewelHeight2); if (gSelected != 0) { if (1 < (Math.abs(gSelected.pRow - r) + Math.abs(gSelected.pCol - c))) { gSelected.apple.cursor.gotoAndStop("unselected"); gSelected = 0; return(undefined); } } var lName = ("jewel_" + gJewel[r][c]); var lClicked = _root.jewel_MCA[lName]; if (gSelected == 0) { gSelected = lClicked; gSelected.apple.cursor.gotoAndStop("selected"); } else { gSelected.apple.cursor.gotoAndStop("unselected"); if (lClicked == gSelected) { gSelected = 0; } else { gSwapped = lClicked; swap(gSelected, gSwapped, true); } } } function swap(vJewel1, vJewel2, vStarting) { var r1 = vJewel1.pRow; var c1 = vJewel1.pCol; var r2 = vJewel2.pRow; var c2 = vJewel2.pCol; vJewel1.pRow = r2; vJewel1.pCol = c2; vJewel2.pRow = r1; vJewel2.pCol = c1; gJewel[r1][c1] = vJewel2.pID; gJewel[r2][c2] = vJewel1.pID; vJewel1.pSwapStep = {x:((c2 - c1) * gJewelWidth) / 5, y:((r2 - r1) * gJewelHeight) / 5}; vJewel2.pSwapStep = {x:((c1 - c2) * gJewelWidth) / 5, y:((r1 - r2) * gJewelHeight) / 5}; if (vStarting) { gMode = SWAPPING; gSwapStep = 1; } else { gMode = UNSWAPPING; gSwapStep = 0; } gSwapSteps = 5; } function evaluateSwap() { var rMin = gSelected.pRow; var rMax = gSwapped.pRow; if (rMax < rMin) { var temp = rMin; rMin = rMax; rMax = temp; } var cMin = gSelected.pCol; var cMax = gSwapped.pCol; if (cMax < cMin) { var temp = cMin; cMin = cMax; cMax = temp; } var lMatch = checkMatch(rMin, cMin, rMax, cMax); gScoreThisSwap = 0; gBonus = 0; gPoints = new Array(); gMatch = new Array(); var i = 0; while (i < lMatch.length) { var lLength = lMatch[i].length; gLongestChain = Math.max(gLongestChain, lLength); var j = 0; while (j < lLength) { var lJewel = lMatch[i][j]; if (getOne(gMatch, lJewel) == -1) { gMatch.push(lJewel); } j++; } var lPoints = (((lLength - 2) + gBonus) * 10); if (odd(lLength)) { var lWhich = Math.floor(lLength / 2); var r = lMatch[i][lWhich].pRow; var c = lMatch[i][lWhich].pCol; } else { var lWhich1 = ((lLength / 2) - 1); var r1 = lMatch[i][lWhich1].pRow; var c1 = lMatch[i][lWhich1].pCol; var lWhich2 = (lLength / 2); var r2 = lMatch[i][lWhich2].pRow; var c2 = lMatch[i][lWhich2].pCol; var r = ((r1 + r2) / 2); var c = ((c1 + c2) / 2); } var x = ((c - 0.5) * gJewelWidth); var y = ((r - 0.5) * gJewelHeight); startPoints(lPoints, x, y); gBonus++; i++; } if (gMatch.length != 0) { gSelected = 0; gSwapped = 0; startShrinking(); if (removeBonusTime == 0) { this.playSound("match"); } gLastMatchTime = getTimer(); } else { swap(gSelected, gSwapped, false); this.playSound("nomatch"); } } function startShrinking() { gMode = SHRINKING; gSize = 100; } function placeTemp(vJewel) { vJewel._x = (vJewel.pCol - 0.5) * gJewelWidth; vJewel._y = (-1 * (vJewel.pTempRow + 0.5)) * gJewelHeight; } function startSliding() { gSlideSpeed = 1; gMode = SLIDING; gNewJewel = new Array(); var j = 1; while (gNumCols >= j) { gNewJewel[j] = new Array(); j++; } gBlockBottom = new Array(); var j = 1; while (gNumCols >= j) { gBlockBottom[j] = -1; j++; } var i = 0; while (i < gMatch.length) { var c = gMatch[i].pCol; gMatch[i]._xscale = 100; gMatch[i]._yscale = 100; gMatch[i].pTempRow = gNewJewel[c].length; gNewJewel[c].push(gMatch[i]); if (gDebug || (gDebug1)) { var lType = 1; } else { var lType = Math.ceil(Math.random() * gNumTypes); } gMatch[i].apple.gotoAndStop(lType); gMatch[i].pDoneSliding = false; placeTemp(gMatch[i]); gBlockBottom[c] = Math.max(gBlockBottom[c], gMatch[i].pRow - 1); i++; } gBlock = new Array(); var j = 1; while (gNumCols >= j) { var i = 1; while (gBlockBottom[j] >= i) { var lJewel = jewelAt(i, j); if (getOne(gMatch, lJewel) == -1) { gBlock.push(lJewel); lJewel.pDestRow = destRow(lJewel); lJewel.pDoneSliding = false; } i++; } j++; } var i = 0; while (i < gMatch.length) { var c = gMatch[i].pCol; gMatch[i].pDestRow = gNewJewel[c].length - gMatch[i].pTempRow; i++; } gNumSliding = gMatch.length + gBlock.length; gNumDoneSliding = 0; } function destRow(vJewel) { var c = vJewel.pCol; var r = vJewel.pRow; var lNumRemovedBelow = 0; var i = 0; while (i < gNewJewel[c].length) { if (r < gNewJewel[c][i].pRow) { lNumRemovedBelow++; } i++; } var lDestRow = (r + lNumRemovedBelow); return(lDestRow); } function slide(vJewel) { if (vJewel.pDoneSliding) { return(undefined); } var y = vJewel._y; y = y + gSlideSpeed; var lYDest = ((vJewel.pDestRow - 0.5) * gJewelHeight); if (y >= lYDest) { y = lYDest; doneSliding(vJewel); } vJewel._y = y; } function doneSliding(vJewel) { vJewel.pDoneSliding = true; vJewel.pRow = vJewel.pDestRow; gJewel[vJewel.pRow][vJewel.pCol] = vJewel.pID; currTime = getTimer(); if (3 < (currTime - gLastTickTime)) { gLastTickTime = getTimer(); playSound("tick"); } gNumDoneSliding++; if (gNumDoneSliding == gNumSliding) { gMode = CHECKMORE; } } function checkMoreMatches() { var rMin = 1; var cMin = gNumCols; var rMax = 1; var cMax = 1; var i = 0; while (i < gMatch.length) { var r = gMatch[i].pRow; var c = gMatch[i].pCol; cMin = Math.min(cMin, c); rMax = Math.max(rMax, r); cMax = Math.max(cMax, c); i++; } var i = 0; while (i < gBlock.length) { var r = gBlock[i].pRow; var c = gBlock[i].pCol; cMin = Math.min(cMin, c); rMax = Math.max(rMax, r); cMax = Math.max(cMax, c); i++; } var lMatch = checkMatch(rMin, cMin, rMax, cMax); gMatch = new Array(); var i = 0; while (i < lMatch.length) { var lLength = lMatch[i].length; gLongestChain = Math.max(gLongestChain, lLength); var j = 0; while (j < lLength) { var lJewel = lMatch[i][j]; if (getOne(gMatch, lJewel) == -1) { gMatch.push(lJewel); } j++; } var lPoints = (((lLength - 2) + gBonus) * 10); if (odd(lLength)) { var lWhich = Math.floor(lLength / 2); var r = lMatch[i][lWhich].pRow; var c = lMatch[i][lWhich].pCol; } else { var lWhich1 = ((lLength / 2) - 1); var r1 = lMatch[i][lWhich1].pRow; var c1 = lMatch[i][lWhich1].pCol; var lWhich2 = (lLength / 2); var r2 = lMatch[i][lWhich2].pRow; var c2 = lMatch[i][lWhich2].pCol; var r = ((r1 + r2) / 2); var c = ((c1 + c2) / 2); } var x = ((c - 0.5) * gJewelWidth); var y = ((r - 0.5) * gJewelHeight); startPoints(lPoints, x, y); gBonus++; i++; } if (0 < gMatch.length) { if (removeBonusTime == 0) { this.playSound("match"); } startShrinking(); } else { gHighestScoringSwap = Math.max(gHighestScoringSwap, gScoreThisSwap); gMostMatchesPerSwap = Math.max(gMostMatchesPerSwap, gBonus); updateGameStats(); gMode = NORMAL; var lHasSwaps = checkHasSwaps(); if (lHasSwaps.length == 0) { noMoreSwaps(); } } } function updateGameStats() { _root.game_stats.highest_scoring_turn = "Highest Scoring Turn: " + gHighestScoringSwap; _root.game_stats.most_matches = "Most Matches Per Turn: " + gMostMatchesPerSwap; _root.game_stats.longest_match = "Longest Match: " + gLongestChain; } function noMoreSwaps() { startNewGame(); } function quitGame() { startNewGame(); } function startNewGame() { placeOnstage(_root.game_over_explanation_MC); startGameTime = getTimer() + 5000; this.playSound("gameover"); } function showBonus() { _root.bonusMC.bonusText = ("CONGRATULATIONS! YOU HAVE EARNED " + bonusAmount) + " BONUS POINTS!"; placeOnstage(_root.bonusMC); removeBonusTime = getTimer() + 3000; playSound("bonus"); } function timeRanOut() { _root.game_over_explanation_MC.game_over_explanation = "The game ended because\rtime ran out."; terminateGame(); } function terminateGame() { this.playSound("gameover"); gotoAndStop (16); gMode = GAMEOVER; } function continueGameOver() { placeOffstage(_root.continue_button); placeOffstage(_root.game_over_explanation_MC); gotoAndStop (16); } function submitScore() { extra = extra + ""; stats = stats + ""; loadMovie ((((((((((((("game.swf?score=" + score) + "&scorecheck=") + scorecheck) + "&extra=") + extra) + "&stats=") + stats) + "&scoremode=") + scoremode) + "&gamename=") + gamename) + "&textname=") + textname, _root); } function playAgain() { gotoAndStop (14); setUp(); } function showHint() { if (gMode != NORMAL) { return(undefined); } updateScore(-20); gLastMatchTime = getTimer(); this.playSound("hint"); gHintTimer = getTimer(); gHint = checkHasSwaps(); if (0 < gHint.length) { var i = 0; while (i < gHint.length) { i++; } gMode = HINT; } } function checkHasSwaps() { var i = 1; while (gNumRows >= i) { var j = 1; while (gNumCols >= j) { var lType = typeAt(i, j); if (hasType(i, j + 1, lType)) { var r = i; var c = (j - 1); if (onBoard(r, c)) { var lJewel1 = jewelAt(r, c); if (hasType(r - 1, c, lType)) { var lJewel2 = jewelAt(r - 1, c); return([lJewel1, lJewel2]); } if (hasType(r, c - 1, lType)) { var lJewel2 = jewelAt(r, c - 1); return([lJewel1, lJewel2]); } if (hasType(r + 1, c, lType)) { var lJewel2 = jewelAt(r + 1, c); return([lJewel1, lJewel2]); } } var r = i; var c = (j + 2); if (onBoard(r, c)) { var lJewel1 = jewelAt(r, c); if (hasType(r - 1, c, lType)) { var lJewel2 = jewelAt(r - 1, c); return([lJewel1, lJewel2]); } if (hasType(r, c + 1, lType)) { var lJewel2 = jewelAt(r, c + 1); return([lJewel1, lJewel2]); } if (hasType(r + 1, c, lType)) { var lJewel2 = jewelAt(r + 1, c); return([lJewel1, lJewel2]); } } } else if (hasType(i, j + 2, lType)) { var r = i; var c = (j + 1); var lJewel1 = jewelAt(r, c); if (hasType(r - 1, c, lType)) { var lJewel2 = jewelAt(r - 1, c); return([lJewel1, lJewel2]); } if (hasType(r + 1, c, lType)) { var lJewel2 = jewelAt(r + 1, c); return([lJewel1, lJewel2]); } } if (hasType(i + 1, j, lType)) { var r = (i - 1); var c = j; if (onBoard(r, c)) { var lJewel1 = jewelAt(r, c); if (hasType(r, c - 1, lType)) { var lJewel2 = jewelAt(r, c - 1); return([lJewel1, lJewel2]); } if (hasType(r - 1, c, lType)) { var lJewel2 = jewelAt(r - 1, c); return([lJewel1, lJewel2]); } if (hasType(r, c + 1, lType)) { var lJewel2 = jewelAt(r, c + 1); return([lJewel1, lJewel2]); } } var r = (i + 2); var c = j; if (onBoard(r, c)) { var lJewel1 = jewelAt(r, c); if (hasType(r, c - 1, lType)) { var lJewel2 = jewelAt(r, c - 1); return([lJewel1, lJewel2]); } if (hasType(r + 1, c, lType)) { var lJewel2 = jewelAt(r + 1, c); return([lJewel1, lJewel2]); } if (hasType(r, c + 1, lType)) { var lJewel2 = jewelAt(r, c + 1); return([lJewel1, lJewel2]); } } } else if (hasType(i + 2, j, lType)) { var r = (i + 1); var c = j; var lJewel1 = jewelAt(r, c); if (hasType(r, c - 1, lType)) { var lJewel2 = jewelAt(r, c - 1); return([lJewel1, lJewel2]); } if (hasType(r, c + 1, lType)) { var lJewel2 = jewelAt(r, c + 1); return([lJewel1, lJewel2]); } } j++; } i++; } return([]); } function checkMatch(vRowMin, vColMin, vRowMax, vColMax) { var lHoriz = new Array(); var i = vRowMin; while (vRowMax >= i) { var j = vColMin; for ( ; vColMax >= j ; j++) { var lMatch = new Array(); var lType = typeAt(i, j); var lJewel = jewelAt(i, j); lMatch.push(lJewel); var r = i; var c = j; if (j == vColMin) { while (true) { c--; if (hasType(r, c, lType)) { var lJewel = jewelAt(r, c); lMatch.splice(0, 0, lJewel); } else { break; } } } else { var lAlready = false; var k = 0; while (k < lHoriz.length) { if (getOne(lHoriz[k], lJewel) != -1) { lAlready = true; break; } k++; } if (lAlready) { continue; } } c = j; while (true) { c++; if (hasType(r, c, lType)) { var lJewel = jewelAt(r, c); lMatch.push(lJewel); } else { break; } } if (2 < lMatch.length) { lHoriz.push(lMatch); } } i++; } var lVert = new Array(); var i = vRowMin; while (vRowMax >= i) { var j = vColMin; for ( ; vColMax >= j ; j++) { var lMatch = new Array(); var lType = typeAt(i, j); var lJewel = jewelAt(i, j); lMatch.push(lJewel); var r = i; var c = j; if (i == vRowMin) { while (true) { r--; if (hasType(r, c, lType)) { var lJewel = jewelAt(r, c); lMatch.splice(0, 0, lJewel); } else { break; } } } else { var lAlready = false; var k = 0; while (k < lVert.length) { if (getOne(lVert[k], lJewel) != -1) { lAlready = true; break; } k++; } if (lAlready) { continue; } } r = i; while (true) { r++; if (hasType(r, c, lType)) { var lJewel = jewelAt(r, c); lMatch.push(lJewel); } else { break; } } if (2 < lMatch.length) { lVert.push(lMatch); } } i++; } var lSet = lHoriz.concat(lVert); return(lSet); } function getOne(array, x) { var i = 0; while (i < array.length) { if (x == array[i]) { return(i); } i++; } return(-1); } function placeOffstage(vObj) { with (vObj) { if (0 < _x) { _x = _x - 1000; } } } function placeOnstage(vObj) { with (vObj) { if (_x < 0) { _x = _x + 1000; } } } function odd(x) { if ((x / 2) == Math.floor(x / 2)) { return(false); } return(true); } function debug() { if (gCanCheckMoreMatches) { checkMoreMatches(); gCanCheckMoreMatches = false; } } function oscillate(vValue, vMin, vMax, vInc) { vValue = Math.floor(vValue + 0.5); if (odd(vValue) || (vValue == 0)) { var lDir = 1; } else { var lDir = -1; } vValue = vValue + (lDir * vInc); if (vMin >= vValue) { vValue = vMin; if (!odd(vValue)) { vValue++; } } else if (vValue >= vMax) { vValue = vMax; if (odd(vValue)) { vValue--; } } return(vValue); } function playSound(theSound) { this.sounds1.goToAndPlay(theSound); } function checkGameTimer() { if (gMode != GAMEOVER) { currTime = getTimer(); if (gEndGameTime < currTime) { setTimeLeft(0); timeRanOut(); } else { setTimeLeft((gEndGameTime - currTime) + 1000); } } } function setTimeLeft(timeLeft) { minutes = int(timeLeft / 60000); seconds = int(timeLeft / 1000) - (minutes * 60); if (minutes < 1) { minutes = "0"; } if (seconds < 10) { seconds = "0" + seconds; } gameTimeString = String((minutes add ":") add seconds); gameTimeString = (String(minutes) + ":") + String(seconds); } if (_root.ptype == 1) { _root.timetoend = 60000; } else { _root.timetoend = 300000 /* 0x0493E0 */; }
Frame 14
init(); setUp(); setupVars(); stop();
Instance of Symbol 121 MovieClip in Frame 14
onClipEvent (enterFrame) { _root.frameLoop(); }
Frame 16
play();
Frame 19
stop();
Frame 22
if (_root.vf == "1") { gotoAndPlay (24); } else if (waiting < getTimer()) { gotoAndPlay (31); } else { gotoAndPlay (20); }
Frame 24
regurg = (("endgame.asp?gametype=19&cat=" add cat) add "&tourscore=") add String(_root.game_stats.score); getURL (regurg); stop();
Frame 30
gotoAndPlay (24);
Frame 31
stop();
Frame 32
stop();
Frame 33
prevFrame();
Frame 34
gotoAndPlay (31);
Symbol 25 Button
on (press) { gotoAndStop (6); }
Symbol 35 Button
on (press) { gotoAndStop (8); }
Symbol 45 Button
on (press) { gotoAndStop (5); }
Symbol 55 Button
on (press) { gotoAndStop (14); }
Symbol 68 Button
on (press) { gotoAndStop (4); }
Symbol 77 Button
on (press) { nextFrame(); }
Symbol 82 Button
on (press) { prevFrame(); }
Symbol 109 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 32
gotoAndStop (1);
Symbol 130 MovieClip Frame 97
gotoAndStop (1);
Symbol 130 MovieClip Frame 124
gotoAndStop (1);
Symbol 130 MovieClip Frame 174
gotoAndStop (1);
Symbol 130 MovieClip Frame 190
gotoAndStop (1);
Symbol 130 MovieClip Frame 302
gotoAndStop (1);
Symbol 130 MovieClip Frame 307
gotoAndStop (1);
Symbol 130 MovieClip Frame 417
gotoAndStop (1);
Symbol 130 MovieClip Frame 486
gotoAndStop (1);
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Symbol 152 MovieClip Frame 1
stop(); if (_root.logover == 1) { logo_switch.gotoAndStop(1); } else if (_root.logover == 2) { logo_switch.gotoAndStop(2); }
Symbol 158 Button
on (press) { var x = _root._xmouse; var y = _root._ymouse; _root.clickedBoard(x, y); }
Symbol 159 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 1
gcode = _root.gcode; gameID = _root.gameID; Score = _root.Score; if (Score < 5) { Score = 5; } getURL ("game.cfm", "_self", "POST");

Library Items

Symbol 1 GraphicUsed by:88  Timeline
Symbol 2 FontUsed by:3 4 5 6 7 8 9 10 17 22 27 32 37 42 47 52 64 66 74 75
Symbol 3 TextUses:2Used by:11
Symbol 4 TextUses:2Used by:11
Symbol 5 TextUses:2Used by:11
Symbol 6 TextUses:2Used by:11
Symbol 7 TextUses:2Used by:11
Symbol 8 TextUses:2Used by:11
Symbol 9 TextUses:2Used by:11
Symbol 10 TextUses:2Used by:11
Symbol 11 MovieClipUses:3 4 5 6 7 8 9 10Used by:Timeline
Symbol 12 BitmapUsed by:13 60
Symbol 13 GraphicUses:12Used by:Timeline
Symbol 14 FontUsed by:15
Symbol 15 TextUses:14Used by:Timeline
Symbol 16 GraphicUsed by:25
Symbol 17 TextUses:2Used by:25
Symbol 18 BitmapUsed by:19 23 60 78
Symbol 19 GraphicUses:18Used by:25  Timeline
Symbol 20 GraphicUsed by:25
Symbol 21 GraphicUsed by:25
Symbol 22 TextUses:2Used by:25
Symbol 23 GraphicUses:18Used by:25
Symbol 24 GraphicUsed by:25
Symbol 25 ButtonUses:16 17 19 20 21 22 23 24Used by:Timeline
Symbol 26 GraphicUsed by:35
Symbol 27 TextUses:2Used by:35
Symbol 28 BitmapUsed by:29 33 60 79
Symbol 29 GraphicUses:28Used by:35
Symbol 30 GraphicUsed by:35
Symbol 31 GraphicUsed by:35
Symbol 32 TextUses:2Used by:35
Symbol 33 GraphicUses:28Used by:35
Symbol 34 GraphicUsed by:35
Symbol 35 ButtonUses:26 27 29 30 31 32 33 34Used by:Timeline
Symbol 36 GraphicUsed by:45
Symbol 37 TextUses:2Used by:45
Symbol 38 BitmapUsed by:39 43 60 80
Symbol 39 GraphicUses:38Used by:45
Symbol 40 GraphicUsed by:45
Symbol 41 GraphicUsed by:45
Symbol 42 TextUses:2Used by:45
Symbol 43 GraphicUses:38Used by:45
Symbol 44 GraphicUsed by:45
Symbol 45 ButtonUses:36 37 39 40 41 42 43 44Used by:Timeline
Symbol 46 GraphicUsed by:55
Symbol 47 TextUses:2Used by:55
Symbol 48 BitmapUsed by:49 53 60 69
Symbol 49 GraphicUses:48Used by:55
Symbol 50 GraphicUsed by:55
Symbol 51 GraphicUsed by:55
Symbol 52 TextUses:2Used by:55
Symbol 53 GraphicUses:48Used by:55
Symbol 54 GraphicUsed by:55
Symbol 55 ButtonUses:46 47 49 50 51 52 53 54Used by:Timeline
Symbol 56 BitmapUsed by:60
Symbol 57 BitmapUsed by:60
Symbol 58 BitmapUsed by:60
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:56 12 57 58 38 59 48 28 18Used by:Timeline
Symbol 61 BitmapUsed by:62 160
Symbol 62 GraphicUses:61Used by:Timeline
Symbol 63 GraphicUsed by:68 82
Symbol 64 TextUses:2Used by:68 82
Symbol 65 GraphicUsed by:68 82
Symbol 66 TextUses:2Used by:68 82
Symbol 67 GraphicUsed by:68 82
Symbol 68 ButtonUses:63 64 65 66 67Used by:Timeline
Symbol 69 GraphicUses:48Used by:Timeline
Symbol 70 FontUsed by:71 81 83 84 85 166
Symbol 71 TextUses:70Used by:Timeline
Symbol 72 GraphicUsed by:Timeline
Symbol 73 GraphicUsed by:77
Symbol 74 TextUses:2Used by:77
Symbol 75 TextUses:2Used by:77
Symbol 76 GraphicUsed by:77
Symbol 77 ButtonUses:73 74 75 76Used by:Timeline
Symbol 78 GraphicUses:18Used by:Timeline
Symbol 79 GraphicUses:28Used by:Timeline
Symbol 80 GraphicUses:38Used by:Timeline
Symbol 81 TextUses:70Used by:Timeline
Symbol 82 ButtonUses:63 64 65 66 67Used by:Timeline
Symbol 83 TextUses:70Used by:Timeline
Symbol 84 TextUses:70Used by:Timeline
Symbol 85 TextUses:70Used by:Timeline
Symbol 86 BitmapUsed by:87
Symbol 87 GraphicUses:86Used by:Timeline
Symbol 88 MovieClipUses:1Used by:Timeline
Symbol 89 GraphicUsed by:109
Symbol 90 GraphicUsed by:109
Symbol 91 GraphicUsed by:109
Symbol 92 GraphicUsed by:109
Symbol 93 GraphicUsed by:109
Symbol 94 GraphicUsed by:109
Symbol 95 GraphicUsed by:109
Symbol 96 GraphicUsed by:109
Symbol 97 GraphicUsed by:109
Symbol 98 GraphicUsed by:109
Symbol 99 GraphicUsed by:109
Symbol 100 GraphicUsed by:109
Symbol 101 GraphicUsed by:109
Symbol 102 GraphicUsed by:109
Symbol 103 GraphicUsed by:109
Symbol 104 GraphicUsed by:109
Symbol 105 GraphicUsed by:109
Symbol 106 GraphicUsed by:109
Symbol 107 GraphicUsed by:109
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClipUses:89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108Used by:121
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClipUses:110Used by:119
Symbol 112 GraphicUsed by:119
Symbol 113 GraphicUsed by:119
Symbol 114 GraphicUsed by:119
Symbol 115 GraphicUsed by:119
Symbol 116 GraphicUsed by:119
Symbol 117 GraphicUsed by:119
Symbol 118 GraphicUsed by:119
Symbol 119 MovieClipUses:111 112 113 114 115 116 117 118Used by:120
Symbol 120 MovieClipUses:119Used by:121
Symbol 121 MovieClipUses:109 120Used by:Timeline
Symbol 122 SoundUsed by:130
Symbol 123 SoundUsed by:130
Symbol 124 SoundUsed by:130
Symbol 125 SoundUsed by:130
Symbol 126 SoundUsed by:130
Symbol 127 SoundUsed by:130
Symbol 128 SoundUsed by:130
Symbol 129 SoundUsed by:130
Symbol 130 MovieClipUses:122 123 124 125 126 127 128 129Used by:Timeline
Symbol 131 FontUsed by:132 133 134 137 138 142
Symbol 132 EditableTextUses:131Used by:Timeline
Symbol 133 EditableTextUses:131Used by:Timeline
Symbol 134 EditableTextUses:131Used by:136
Symbol 135 GraphicUsed by:136
Symbol 136 MovieClipUses:134 135Used by:Timeline
Symbol 137 TextUses:131Used by:152
Symbol 138 TextUses:131Used by:152
Symbol 139 MovieClipUsed by:152
Symbol 140 BitmapUsed by:141
Symbol 141 GraphicUses:140Used by:152
Symbol 142 EditableTextUses:131Used by:152
Symbol 143 GraphicUsed by:152
Symbol 144 GraphicUsed by:152
Symbol 145 GraphicUsed by:152
Symbol 146 GraphicUsed by:152
Symbol 147 GraphicUsed by:152
Symbol 148 GraphicUsed by:152
Symbol 149 GraphicUsed by:152
Symbol 150 BitmapUsed by:151
Symbol 151 GraphicUses:150Used by:152
Symbol 152 MovieClipUses:137 138 139 141 142 143 144 145 146 147 148 149 151Used by:Timeline
Symbol 153 GraphicUsed by:154
Symbol 154 MovieClipUses:153Used by:Timeline
Symbol 155 GraphicUsed by:156
Symbol 156 MovieClipUses:155Used by:Timeline
Symbol 157 GraphicUsed by:158 159
Symbol 158 ButtonUses:157Used by:159
Symbol 159 MovieClipUses:157 158Used by:Timeline
Symbol 160 GraphicUses:61Used by:Timeline
Symbol 161 GraphicUsed by:165
Symbol 162 GraphicUsed by:163
Symbol 163 MovieClipUses:162Used by:165
Symbol 164 GraphicUsed by:165
Symbol 165 MovieClipUses:161 163 164Used by:Timeline
Symbol 166 TextUses:70Used by:167
Symbol 167 MovieClipUses:166Used by:Timeline
Symbol 168 SoundUsed by:Timeline

Instance Names

"sounds1"Frame 14Symbol 130 MovieClip
"game_over_explanation_MC"Frame 14Symbol 136 MovieClip
"game_stats"Frame 14Symbol 152 MovieClip
"points_MCA"Frame 14Symbol 121 MovieClip
"jewel_MCA"Frame 14Symbol 121 MovieClip
"board_button"Frame 14Symbol 159 MovieClip
"board_button"Frame 14Symbol 159 MovieClip
"no_more_moves"Frame 16Symbol 165 MovieClip
"cursor"Symbol 119 MovieClip Frame 1Symbol 111 MovieClip
"apple"Symbol 120 MovieClip Frame 1Symbol 119 MovieClip
"initPoints"Symbol 121 MovieClip Frame 1Symbol 109 MovieClip
"initJewel"Symbol 121 MovieClip Frame 1Symbol 120 MovieClip
"logo_switch"Symbol 152 MovieClip Frame 1Symbol 139 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""

Labels

"testLoad"Frame 2
"menu"Frame 4
"loader"Frame 4
"rules"Frame 5
"scoring"Frame 6
"hints"Frame 8
"play"Frame 14
"gameover"Frame 16
"wait"Frame 20
"sendaway"Frame 24
"enderror"Frame 31
"unselected"Symbol 111 MovieClip Frame 1
"selected"Symbol 111 MovieClip Frame 5
"Stop"Symbol 130 MovieClip Frame 1
"click"Symbol 130 MovieClip Frame 2
"gameover"Symbol 130 MovieClip Frame 33
"hint"Symbol 130 MovieClip Frame 98
"match"Symbol 130 MovieClip Frame 125
"nomatch"Symbol 130 MovieClip Frame 175
"pileup"Symbol 130 MovieClip Frame 191
"tick"Symbol 130 MovieClip Frame 303
"beginSound"Symbol 130 MovieClip Frame 308
"bonus"Symbol 130 MovieClip Frame 418
"inactive"Symbol 159 MovieClip Frame 1
"active"Symbol 159 MovieClip Frame 3

Dynamic Text Variables

_root.vChangeDispSymbol 132 EditableText""
gameTimeStringSymbol 133 EditableText"5:00"
game_over_explanationSymbol 134 EditableText"You have run out of matches. The game will reset."
scoreSymbol 142 EditableText"0"




http://swfchan.com/6/27699/info.shtml
Created: 21/5 -2019 07:04:20 Last modified: 21/5 -2019 07:04:20 Server time: 14/05 -2024 21:34:11