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

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

Crazy Boxes.swf

This is the info page for
Flash #25896

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


Text
Click the mini boxes and try and to turn the entire
square red. If you run into trouble you can use the
solution button. Contact Us for Branding Options.

RANDOM

SOLUTION

(please click the V)

GOOD JOB!

ActionScript [AS1/AS2]

Frame 1
_root.n = 5; _root.hlp._visible = false; stop();
Instance of Symbol 17 MovieClip "table" in Frame 1
onClipEvent (load) { _x = ((550 - (_root.n * 95)) / 2); _y = ((400 - (_root.n * 64)) / 2); }
Symbol 7 MovieClip [box] Frame 1
stop();
Symbol 7 MovieClip [box] Frame 2
stop();
Symbol 14 Button
on (release) { getURL ("http://www.2flashgames.com"); }
Symbol 17 MovieClip Frame 1
function update(x, y) { if (!((((x < 0) || (x >= n)) || (y < 0)) || (y >= n))) { var k = this["b" + (x + (y * n))]._currentframe; k = (k % 2) + 1; this["b" + (x + (y * n))].gotoAndStop(k); } } function clicked(x, y) { update(x, y); var i = 0; while (i < 4) { update(x + d[i][0], y + d[i][1]); i++; } } n = _root.n; d = [[1, 0], [0, 1], [-1, 0], [0, -1]]; var i = 0; while (i < n) { var k = 0; while (k < n) { if ((i + k) != 0) { duplicateMovieClip ("b0", "b" + (i + (k * n)), i + (k * n)); } this["b" + (i + (k * n))]._x = i * 50; this["b" + (i + (k * n))]._y = k * 50; this["b" + (i + (k * n))].x = i; this["b" + (i + (k * n))].y = k; this["b" + (i + (k * n))].hint._visible = false; k++; } i++; }
Instance of Symbol 7 MovieClip [box] "b0" in Symbol 17 MovieClip Frame 1
onClipEvent (mouseDown) { if (hitTest(_root._xmouse, _root._ymouse, false)) { _parent.clicked(x, y); hint._visible = false; _root.hlp._visible = false; var z = 0; var i = 0; while (i < (_root.n * _root.n)) { if (_parent["b" + i]._currentframe == 1) { z = 1; break; } i++; } if (z == 0) { _root.cpl.play(); } } }
Symbol 21 Button
on (release) { n = _root.n; var z = 0; var i = 0; while (i < n) { var k = 0; while (k < n) { var t = random(2); j = 0; while (j < t) { _root.table.clicked(i, k); j++; } _root.table["b" + (i + (k * n))].hint._visible = false; k++; } i++; } }
Symbol 24 Button
on (release) { function clicked(x, y) { a2[x][y] = (a2[x][y] + 1) % 2; var i = 0; while (i < 4) { p = x + d[i][0]; q = y + d[i][1]; if (!((((p < 0) || (p >= n)) || (q < 0)) || (q >= n))) { a2[p][q] = (a2[p][q] + 1) % 2; } i++; } } function ok() { var i = 0; while (i < n) { var k = 0; while (k < n) { a2[i][k] = a[i][k]; k++; } i++; } var k = 0; while (k < n) { kq[k * n] = false; if (b[k] == 1) { clicked(0, k); kq[k * n] = true; } k++; } var i = 1; while (i < n) { var k = 0; while (k < n) { kq[i + (k * n)] = false; if (a2[i - 1][k] == 0) { clicked(i, k); kq[i + (k * n)] = true; } k++; } i++; } var k = 0; while (k < n) { if (a2[n - 1][k] == 0) { return(false); } k++; } return(true); } function dq(i) { var k = 0; while (k < 2) { b[i] = k; if (i == n) { if (ok()) { var j = 0; while (j < (n * n)) { if (kq[j]) { _root.table["b" + j].hint._visible = true; } j++; } th = true; } } else { dq(i + 1); } if (th) { return; } k++; } } n = _root.n; a = new Array(n); a2 = new Array(n); b = new Array(n); kq = new Array(n * n); th = false; _root.hlp._visible = true; d = [[1, 0], [0, 1], [-1, 0], [0, -1]]; var i = 0; while (i < n) { a[i] = new Array(); a2[i] = new Array(n); var k = 0; while (k < n) { if (_root.table["b" + (i + (k * n))]._currentframe == 2) { a[i].push(1); } else { a[i].push(0); } k++; } i++; } dq(0); }
Symbol 31 MovieClip Frame 1
stop();

Library Items

Symbol 1 BitmapUsed by:2
Symbol 2 GraphicUses:1Used by:7
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClipUses:3Used by:7
Symbol 5 BitmapUsed by:6
Symbol 6 GraphicUses:5Used by:7
Symbol 7 MovieClip [box]Uses:2 4 6Used by:17
Symbol 8 BitmapUsed by:9
Symbol 9 GraphicUses:8Used by:Timeline
Symbol 10 BitmapUsed by:13
Symbol 11 BitmapUsed by:13
Symbol 12 BitmapUsed by:13
Symbol 13 GraphicUses:10 11 12Used by:14
Symbol 14 ButtonUses:13Used by:Timeline
Symbol 15 FontUsed by:16
Symbol 16 EditableTextUses:15Used by:Timeline
Symbol 17 MovieClipUses:7Used by:Timeline
Symbol 18 GraphicUsed by:21 24
Symbol 19 GraphicUsed by:21 24
Symbol 20 GraphicUsed by:21 24
Symbol 21 ButtonUses:18 19 20Used by:Timeline
Symbol 22 FontUsed by:23 25
Symbol 23 TextUses:22Used by:Timeline
Symbol 24 ButtonUses:18 19 20Used by:Timeline
Symbol 25 TextUses:22Used by:Timeline
Symbol 26 FontUsed by:27 29
Symbol 27 TextUses:26Used by:28
Symbol 28 MovieClipUses:27Used by:Timeline
Symbol 29 TextUses:26Used by:30
Symbol 30 MovieClipUses:29Used by:31
Symbol 31 MovieClipUses:30Used by:Timeline

Instance Names

"table"Frame 1Symbol 17 MovieClip
"hlp"Frame 1Symbol 28 MovieClip
"cpl"Frame 1Symbol 31 MovieClip
"hint"Symbol 7 MovieClip [box] Frame 1Symbol 4 MovieClip
"b0"Symbol 17 MovieClip Frame 1Symbol 7 MovieClip [box]

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 7 as "box"
ExportAssets (56)Timeline Frame 1Symbol 7 as "box"




http://swfchan.com/6/25896/info.shtml
Created: 23/5 -2019 06:47:07 Last modified: 23/5 -2019 06:47:07 Server time: 14/11 -2024 22:58:24