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

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

Mastermind.swf

This is the info page for
Flash #22970

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


Text
Can you guess the colour sequence and the order in only 10 goes?
Just drag the coloured balls into the empty spots.
Black is the right color but the wrong place.
White is right color and the right place.

Instructions

Mastermind

2inventive

Instructions

Instructions

You win!

PLAY AGAIN

You lose!

ActionScript [AS1/AS2]

Frame 1
fscommand ("fullscreen", "false"); fscommand ("allowscale", "false"); fscommand ("showmenu", "false"); if (getBytesTotal() == getBytesLoaded()) { gotoAndPlay (4); }
Frame 2
byteloaded = _root.getBytesLoaded(); bytetotal = _root.getBytesTotal(); loaded = int((byteloaded / bytetotal) * 100); loadBar.gotoAndStop(loaded);
Frame 3
if (getBytesLoaded() < getBytesTotal()) { gotoAndPlay (2); }
Frame 5
_root.attachMovie("inst", "inst", 999999); inst._x = instr._x; inst._y = instr._y; removeMovieClip(instr); function generate() { i = 1; while (4 >= i) { do { gen = parseInt(random(8) + 1); estealeasa = false; j = 1; while (j < i) { if (generatele[j] == gen) { estealeasa = true; } j++; } } while (estealeasa == true); generatele[i] = gen; i++; } } function showwin(win) { winlose.gotoAndStop(win); i = 1; while (4 >= i) { duplicateMovieClip (_root[generatele[i]], "new" + i, kkk++); _root["new" + i]._y = instr._y + 15; _root["new" + i]._x = (instr._x - 63) + (i * 25); _root["new" + i].gotoAndStop(2); i++; } } fscommand ("allowscale", "false"); var places = new Array(0, 0, 0, 0, 0); var pieceplaces = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8); var generatele = new Array(0, 0, 0, 0, 0); nivel = 1; maxlevel = 10; kkk = 100; generate(); stop();
Instance of Symbol 22 MovieClip "1" in Frame 5
onClipEvent (load) { thisBulin = 1; }
Instance of Symbol 23 MovieClip "2" in Frame 5
onClipEvent (load) { thisBulin = 2; }
Instance of Symbol 24 MovieClip "3" in Frame 5
onClipEvent (load) { thisBulin = 3; }
Instance of Symbol 25 MovieClip "4" in Frame 5
onClipEvent (load) { thisBulin = 4; }
Instance of Symbol 26 MovieClip "5" in Frame 5
onClipEvent (load) { thisBulin = 5; }
Instance of Symbol 27 MovieClip "6" in Frame 5
onClipEvent (load) { thisBulin = 6; }
Instance of Symbol 28 MovieClip "7" in Frame 5
onClipEvent (load) { thisBulin = 7; }
Instance of Symbol 29 MovieClip "8" in Frame 5
onClipEvent (load) { thisBulin = 8; }
Symbol 7 MovieClip [inst] Frame 1
stop();
Symbol 7 MovieClip [inst] Frame 7
stop();
Symbol 8 MovieClip [inst] Frame 1
stop();
Symbol 8 MovieClip [inst] Frame 7
stop();
Symbol 20 Button
on (press) { this.swapDepths(10000); this.startDrag(); x = this._x; y = this._y; } on (release, releaseOutside) { trace((_parent.places + " ") + _parent.pieceplaces); this.stopDrag(); hit = true; j = 0; i = 1; while (4 >= i) { if (this.hitTest(_parent["bulin" add i]) && (_parent.places[i] == 0)) { hit = false; j = i; } i++; } hitpiece = true; jp = 0; i = 1; while (8 >= i) { if (this.hitTest(_parent["locbulin" add i]) && (_parent.pieceplaces[i] == 0)) { hitpiece = false; jp = i; } i++; } trace((hit + "-") + hitpiece); if (hit and hitpiece) { this._x = x; this._y = y; } else if (!hit) { if (_parent.places[j] == 0) { this._x = _parent["bulin" add j]._x; this._y = _parent["bulin" add j]._y; i = 1; while (4 >= i) { if ((i != j) and (_parent.places[i] == this.thisBulin)) { _parent.places[i] = 0; } i++; } i = 1; while (8 >= i) { if (_parent.pieceplaces[i] == this.thisBulin) { _parent.pieceplaces[i] = 0; } i++; } _parent.places[j] = this.thisBulin; } } else if (!hitpiece) { if (_parent.pieceplaces[jp] == 0) { this._x = _parent["locbulin" add jp]._x; this._y = _parent["locbulin" add jp]._y; i = 1; while (8 >= i) { if ((i != jp) and (_parent.pieceplaces[i] == this.thisBulin)) { _parent.pieceplaces[i] = 0; } i++; } i = 1; while (4 >= i) { if (_parent.places[i] == this.thisBulin) { _parent.places[i] = 0; } i++; } _parent.pieceplaces[jp] = this.thisBulin; } } }
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 2
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 2
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 2
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 2
stop();
Symbol 28 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 2
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 2
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 2
stop();
Symbol 33 MovieClip Frame 3
stop();
Symbol 42 MovieClip Frame 48
stop();
Symbol 45 Button
on (press) { toate = true; i = 1; while (4 >= i) { if (places[i] == 0) { toate = false; } i++; } if ((toate == true) and (maxlevel >= nivel)) { if (nivel != (maxlevel + 1)) { i = 1; while (4 >= i) { duplicateMovieClip (_root[places[i]], ("nuconteaza" + nivel) + i, kkk++); _root[("nuconteaza" + nivel) + i].gotoAndStop(2); i++; } i = 1; while (8 >= i) { _root[i]._y = _root["locbulin" + i]._y; _root[i]._x = _root["locbulin" + i]._x; pieceplaces[i] = i; i++; } i = 1; while (4 >= i) { duplicateMovieClip (_root["albaneagra" + i], ("nuconteazaan" + nivel) + i, kkk++); if (nivel != maxlevel) { _root["albaneagra" + i]._y = _root["albaneagra" + i]._y - 20; } if (nivel != maxlevel) { _root["albaneagra" + i].gotoAndStop(1); } i++; } k = 1; i = 1; while (4 >= i) { if (generatele[i] == places[i]) { this[("nuconteazaan" + nivel) + k].gotoAndStop(2); k++; } i++; } kk = k; i = 1; while (4 >= i) { j = 1; while (4 >= j) { if ((i != j) and (generatele[i] == places[j])) { this[("nuconteazaan" + nivel) + kk].gotoAndStop(3); kk++; } j++; } i++; } if (k == 5) { i = 1; while (8 >= i) { _root[i].gotoAndStop(2); i++; } showwin("win"); } else { i = 1; while (4 >= i) { if (nivel != maxlevel) { _root["bulin" + i]._y = _root["bulin" + i]._y - 20; } i++; } if (nivel != maxlevel) { nivel++; curlevel = nivel; } else { i = 1; while (8 >= i) { _root[i].gotoAndStop(2); i++; } showwin("lose"); } } i = 1; while (4 >= i) { places[i] = 0; i++; } } trace(generatele); trace(places); } }
Symbol 49 Button
on (press) { inst.gotoAndPlay(2); } on (release, releaseOutside) { inst.gotoAndStop(1); }
Symbol 51 Button
on (press) { getURL ("http://www.2inventive.com", "_blank"); }
Symbol 54 Button
on (press) { gotoAndStop (1); _root.instr.gotoAndStop(1); _root.places = new Array(0, 0, 0, 0, 0); _root.pieceplaces = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8); _root.generatele = new Array(0, 0, 0, 0, 0); _root.generate(); i = 1; while (4 >= i) { removeMovieClip(_root["new" + i]); _root["bulin" + i]._y = _root["bulin" + i]._y + (20 * (_root.nivel - 1)); _root["albaneagra" + i]._y = _root["albaneagra" + i]._y + (20 * ((_root.nivel + _currentframe) - 2)); j = 1; while (_root.nivel >= j) { removeMovieClip(_root[("nuconteaza" + j) + i]); removeMovieClip(_root[("nuconteazaan" + j) + i]); j++; } i++; } _root.nivel = 1; i = 1; while (8 >= i) { _root[i].gotoAndStop(1); i++; } }
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
stop();
Symbol 56 MovieClip Frame 3
stop();

Library Items

Symbol 1 GraphicUsed by:7 8
Symbol 2 FontUsed by:5 6 47
Symbol 3 FontUsed by:5 46
Symbol 4 FontUsed by:5
Symbol 5 TextUses:2 3 4Used by:7 8
Symbol 6 TextUses:2Used by:7 8
Symbol 7 MovieClip [inst]Uses:1 5 6
Symbol 8 MovieClip [inst]Uses:1 5 6Used by:Timeline
Symbol 9 GraphicUsed by:Timeline
Symbol 10 GraphicUsed by:11 54
Symbol 11 MovieClipUses:10Used by:Timeline
Symbol 12 FontUsed by:13 14 52 53 55
Symbol 13 TextUses:12Used by:Timeline
Symbol 14 TextUses:12Used by:Timeline
Symbol 15 BitmapUsed by:16
Symbol 16 GraphicUses:15Used by:Timeline
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:Timeline
Symbol 19 GraphicUsed by:20 21
Symbol 20 ButtonUses:19Used by:22 23 24 25 26 27 28 29
Symbol 21 MovieClipUses:19Used by:22 23 24 25 26 27 28 29
Symbol 22 MovieClipUses:20 21Used by:Timeline
Symbol 23 MovieClipUses:20 21Used by:Timeline
Symbol 24 MovieClipUses:20 21Used by:Timeline
Symbol 25 MovieClipUses:20 21Used by:Timeline
Symbol 26 MovieClipUses:20 21Used by:Timeline
Symbol 27 MovieClipUses:20 21Used by:Timeline
Symbol 28 MovieClipUses:20 21Used by:Timeline
Symbol 29 MovieClipUses:20 21Used by:Timeline
Symbol 30 GraphicUsed by:33
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:33
Symbol 33 MovieClipUses:30 32Used by:Timeline
Symbol 34 GraphicUsed by:Timeline
Symbol 35 GraphicUsed by:45
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClipUses:36Used by:45
Symbol 38 BitmapUsed by:39
Symbol 39 GraphicUses:38Used by:42
Symbol 40 GraphicUsed by:42
Symbol 41 SoundUsed by:42
Symbol 42 MovieClipUses:39 40 41Used by:45
Symbol 43 GraphicUsed by:45
Symbol 44 GraphicUsed by:45
Symbol 45 ButtonUses:35 37 42 43 44Used by:Timeline
Symbol 46 TextUses:3Used by:49
Symbol 47 TextUses:2Used by:49
Symbol 48 GraphicUsed by:49 51
Symbol 49 ButtonUses:46 47 48Used by:Timeline
Symbol 50 GraphicUsed by:51
Symbol 51 ButtonUses:50 48Used by:Timeline
Symbol 52 TextUses:12Used by:56
Symbol 53 TextUses:12Used by:54
Symbol 54 ButtonUses:53 10Used by:56
Symbol 55 TextUses:12Used by:56
Symbol 56 MovieClipUses:52 54 55Used by:Timeline

Instance Names

"loadbar"Frame 2Symbol 11 MovieClip
"locbulin4"Frame 5Symbol 18 MovieClip
"bulin1"Frame 5Symbol 18 MovieClip
"bulin2"Frame 5Symbol 18 MovieClip
"bulin3"Frame 5Symbol 18 MovieClip
"bulin4"Frame 5Symbol 18 MovieClip
"locbulin1"Frame 5Symbol 18 MovieClip
"locbulin2"Frame 5Symbol 18 MovieClip
"locbulin3"Frame 5Symbol 18 MovieClip
"locbulin5"Frame 5Symbol 18 MovieClip
"locbulin6"Frame 5Symbol 18 MovieClip
"locbulin7"Frame 5Symbol 18 MovieClip
"locbulin8"Frame 5Symbol 18 MovieClip
"1"Frame 5Symbol 22 MovieClip
"2"Frame 5Symbol 23 MovieClip
"3"Frame 5Symbol 24 MovieClip
"4"Frame 5Symbol 25 MovieClip
"5"Frame 5Symbol 26 MovieClip
"6"Frame 5Symbol 27 MovieClip
"7"Frame 5Symbol 28 MovieClip
"8"Frame 5Symbol 29 MovieClip
"albaneagra1"Frame 5Symbol 33 MovieClip
"albaneagra2"Frame 5Symbol 33 MovieClip
"albaneagra3"Frame 5Symbol 33 MovieClip
"albaneagra4"Frame 5Symbol 33 MovieClip
"winlose"Frame 5Symbol 56 MovieClip
"instr"Frame 5Symbol 8 MovieClip [inst]

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 7 as "inst"
ExportAssets (56)Timeline Frame 1Symbol 8 as "inst"
ExportAssets (56)Timeline Frame 5Symbol 8 as "inst"

Labels

"win"Symbol 56 MovieClip Frame 2
"lose"Symbol 56 MovieClip Frame 3




http://swfchan.com/5/22970/info.shtml
Created: 26/5 -2019 13:38:20 Last modified: 26/5 -2019 13:38:20 Server time: 22/12 -2024 16:12:31