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

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

Mastermind v1.0.swf

This is the info page for
Flash #24576

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


Text
DONE

LOADING MASTERMIND ...

HOW TO PLAY
Click on one of the five
spaces to change the color
of the rock in it. You can
choose from five colors.
When you press done, you
get a white rock for every
rock in the right place, and
a black rock for every rock
that is the right color, but in
the wrong space. Use this
information to make
another guess. See if you
can guess the combination
in 10 turns or less.

phantomgames.tk

YOU WIN

YOU LOSE

ActionScript [AS1/AS2]

Frame 2
if ((_root.getBytesLoaded() / _root.getBytesTotal) >= 1) { play(); } else { gotoAndPlay (1); }
Frame 3
function initGame() { topRowLoc = 100; leftColLoc = 280; rightColLoc = 390; horizSpace = 21; vertSpace = 23; solutionx = 336; solutiony = 340; solution = new Array(); i = 0; while (i < 5) { solution.push(int(Math.Random() * 5)); i++; } rows = new Array(); row = 0; createRow(); } function createRow() { i = 0; while (i < 5) { attachMovie("rock", (("rock" + row) + "-") + i, (row * 10) + i); clip = _root[(("rock" + row) + "-") + i]; clip._x = leftColLoc + (i * horizSpace); clip._y = topRowLoc + (row * vertSpace); clip.active = true; i++; } attachMovie("done", "done", 1000); _root.done._x = rightColLoc + 20; _root.done._y = topRowLoc + (row * vertSpace); } function doneGuess() { numRightSpot = 0; numRightColor = 0; i = 0; while (i < 5) { _root[(("rock" + row) + "-") + i].active = false; i++; } temp = [0, 0, 0, 0, 0]; i = 0; while (i < 5) { temp[solution[i]]++; i++; } i = 0; while (i < 5) { kolor = _root[(("rock" + row) + "-") + i]._currentFrame - 2; if (kolor == solution[i]) { numRightSpot++; temp[kolor]--; } i++; } i = 0; while (i < 5) { kolor = _root[(("rock" + row) + "-") + i]._currentFrame - 2; if (kolor != solution[i]) { if (0 < temp[kolor]) { numRightColor++; temp[kolor]--; } } i++; } level = (row * 10) + 5; x = rightColLoc; i = 0; while (i < numRightSpot) { attachMovie("rock", "white rock" + level, level); clip = _root["white rock" + level]; clip.gotoAndStop("white"); clip._x = x; clip._y = topRowLoc + (row * vertSpace); level++; x = x + horizSpace; i++; } i = 0; while (i < numRightColor) { attachMovie("rock", "black rock" + level, level); clip = _root["black rock" + level]; clip.gotoAndStop("black"); clip._x = x; clip._y = topRowLoc + (row * vertSpace); level++; x = x + horizSpace; i++; } done.removeMovieClip(); if (numRightSpot == 5) { gotoAndPlay (4); } else { row++; if (row >= 10) { showSolution(); gotoAndPlay (5); } else { createRow(); } } } function showSolution() { i = 0; while (i < 5) { attachMovie("rock", "solution" + i, 1001 + i); clip = _root["solution" + i]; clip._x = solutionx + (i * horizSpace); clip._y = solutiony; clip.gotoAndStop(solution[i] + 2); i++; } } initGame(); stop();
Frame 4
stop();
Frame 5
stop();
Symbol 2 Button
on (press) { if (active) { f = _currentframe + 1; if (6 < f) { f = 1; } gotoAndStop(f); } }
Symbol 10 MovieClip [rock] Frame 1
stop();
Symbol 17 Button
on (press) { _root.doneGuess(); }

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 ButtonUses:1Used by:10
Symbol 3 GraphicUsed by:10
Symbol 4 GraphicUsed by:10
Symbol 5 GraphicUsed by:10
Symbol 6 GraphicUsed by:10
Symbol 7 GraphicUsed by:10
Symbol 8 GraphicUsed by:10
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClip [rock]Uses:2 3 4 5 6 7 8 9
Symbol 11 GraphicUsed by:17
Symbol 12 GraphicUsed by:17
Symbol 13 FontUsed by:14 38 39 40
Symbol 14 TextUses:13Used by:17
Symbol 15 GraphicUsed by:17
Symbol 16 GraphicUsed by:17
Symbol 17 ButtonUses:11 12 14 15 16Used by:18
Symbol 18 MovieClip [done]Uses:17
Symbol 19 GraphicUsed by:27
Symbol 20 GraphicUsed by:27
Symbol 21 ShapeTweeningUsed by:27
Symbol 22 ShapeTweeningUsed by:27
Symbol 23 GraphicUsed by:27
Symbol 24 ShapeTweeningUsed by:27
Symbol 25 ShapeTweeningUsed by:27
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClipUses:19 20 21 22 23 24 25 26Used by:Timeline
Symbol 28 GraphicUsed by:Timeline
Symbol 29 FontUsed by:30
Symbol 30 TextUses:29Used by:Timeline
Symbol 31 GraphicUsed by:Timeline
Symbol 32 GraphicUsed by:Timeline
Symbol 33 FontUsed by:35
Symbol 34 FontUsed by:35
Symbol 35 TextUses:33 34Used by:36
Symbol 36 MovieClipUses:35Used by:Timeline
Symbol 37 GraphicUsed by:Timeline
Symbol 38 TextUses:13Used by:Timeline
Symbol 39 TextUses:13Used by:Timeline
Symbol 40 TextUses:13Used by:Timeline

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 10 as "rock"
ExportAssets (56)Timeline Frame 1Symbol 18 as "done"

Labels

"win"Frame 4
"lose"Frame 5
"black"Symbol 10 MovieClip [rock] Frame 7
"white"Symbol 10 MovieClip [rock] Frame 8




http://swfchan.com/5/24576/info.shtml
Created: 24/5 -2019 18:54:48 Last modified: 24/5 -2019 18:54:48 Server time: 08/05 -2024 21:32:15