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/13751074?noj=FRM13751074-22DC" width="1" height="1"></div>

Pink Lemonade 15-puzzle.swf

This is the info page for
Flash #77415

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


Text
Click on the pieces
to move.

Match this!
A correct match will
unlock a special
reward picture!

Shuffle

Sliding puzzle game
Featuring Pickle!
Art & game by Shawn the Touched

TM

Back

This sort of puzzle is known as the "15
Puzzle" or sometimes the "Loyd 15"
named after puzzle expert Sam Loyd,
who popularised the puzzle in 1878.
When the puzzle is shuffled, the tiles are
randomly distributed, and due to the
nature of the puzzle, some of these
combinations cannot be solved.  If you
end up with a nearly-solved puzzle that
looks like figure 2, then you should re-
shuffle.
My personal record with this puzzle is 3
minutes.  A search on the net for "15
sliding puzzle" will get you plenty of
helpful strategy guides.

1  2  3  4
5  6  7  8
9 10 11 12
13 14 15

Figure 1

1  2  3  4
5  6  7  8
9 10 11 12
13 15 14

Figure 2

Game by Shawn the Touched
http://whiteradish.com

<P ALIGN="LEFT"><FONT FACE="Arial" SIZE="6" COLOR="#FFFFFF"><A HREF="http://whiteradish.com" target = "_top"><B>Game by Shawn the Touched</B></A></FONT></P><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="6" COLOR="#FFFFFF"><A HREF="http://whiteradish.com" target = "_top"><B>http://whiteradish.com</B></A></FONT></P>

Congratulations!
Here is your reward picture!

Click to download
full-size version!
(opens in a new
browser window)

ActionScript [AS1/AS2]

Frame 1
function PieceX(col) { return(xBase + (col * xSpace)); } function PieceY(row) { return(yBase + (row * ySpace)); } function Initialize() { Congratulations.stop(); numRows = 4; numCols = 4; numCells = numRows * numCols; xBase = p0._x; yBase = p0._y; xSpace = 45; ySpace = 45; var c = 1; var r = 0; posArray = []; i = 0; while (i < (numCells - 1)) { posArray[i] = i; i++; } empty = i - 1; } function isWinner() { var i = 0; while (i < (numCells - 1)) { if (posArray[i] != i) { return(false); } i++; } return(true); } function Click(clicked) { if (isWinner()) { shuffle(); Congratulations.gotoAndStop(1); } else { pos = posArray[clicked]; emptyRow = Math.floor(empty / numCols); emptyCol = empty - (emptyRow * numCols); clickedRow = Math.floor(pos / numCols); clickedCol = pos - (clickedRow * numCols); rowDiff = Math.abs(clickedRow - emptyRow); colDiff = Math.abs(clickedCol - emptyCol); adjacent = (rowDiff + colDiff) == 1; if (adjacent) { var piece = eval ("/p" + clicked); piece._x = PieceX(emptyCol); piece._y = PieceY(emptyRow); posArray[clicked] = empty; empty = pos; if (isWinner()) { Congratulations.play(); } } } } function Shuffle() { var cf = function (x, y) { if (x[1] < y[1]) { return(-1); } if (x[1] > y[1]) { return(1); } return(0); }; var i; var cell = []; i = 0; while (i < numCells) { cell.push([i, Math.random()]); i++; } cell.sort(cf); var r = 0; var c = 0; i = 0; while (i < numCells) { var piece = cell[i][0]; if (piece == (numCells - 1)) { empty = i; } else { posArray[piece] = i; var p = eval ("/p" + piece); p._x = PieceX(c); p._y = PieceY(r); } if ((++c) >= numCols) { c = 0; r++; } i++; } } stop(); if (!initialized) { Initialize(); initialized = true; }
Instance of Symbol 24 MovieClip in Frame 1
on (press) { _root.Click(2); }
Instance of Symbol 24 MovieClip in Frame 1
on (press) { _root.Click(3); }
Instance of Symbol 24 MovieClip in Frame 1
on (press) { _root.Click(4); }
Instance of Symbol 24 MovieClip in Frame 1
on (press) { _root.Click(5); }
Instance of Symbol 24 MovieClip in Frame 1
on (press) { _root.Click(6); }
Instance of Symbol 24 MovieClip in Frame 1
on (press) { _root.Click(7); }
Instance of Symbol 24 MovieClip in Frame 1
on (press) { _root.Click(8); }
Instance of Symbol 24 MovieClip in Frame 1
on (press) { _root.Click(9); }
Instance of Symbol 24 MovieClip in Frame 1
on (press) { _root.Click(10); }
Instance of Symbol 24 MovieClip in Frame 1
on (press) { _root.Click(11); }
Instance of Symbol 24 MovieClip in Frame 1
on (press) { _root.Click(12); }
Instance of Symbol 24 MovieClip in Frame 1
on (press) { _root.Click(13); }
Instance of Symbol 24 MovieClip in Frame 1
on (press) { _root.Click(14); }
Instance of Symbol 29 MovieClip "p2" in Frame 1
on (press) { _root.Click(2); }
Instance of Symbol 31 MovieClip "p3" in Frame 1
on (press) { _root.Click(3); }
Instance of Symbol 33 MovieClip "p4" in Frame 1
on (press) { _root.Click(4); }
Instance of Symbol 35 MovieClip "p5" in Frame 1
on (press) { _root.Click(5); }
Instance of Symbol 37 MovieClip "p6" in Frame 1
on (press) { _root.Click(6); }
Instance of Symbol 39 MovieClip "p7" in Frame 1
on (press) { _root.Click(7); }
Instance of Symbol 41 MovieClip "p8" in Frame 1
on (press) { _root.Click(8); }
Instance of Symbol 45 MovieClip "p9" in Frame 1
on (press) { _root.Click(9); }
Instance of Symbol 47 MovieClip "p10" in Frame 1
on (press) { _root.Click(10); }
Instance of Symbol 49 MovieClip "p11" in Frame 1
on (press) { _root.Click(11); }
Instance of Symbol 51 MovieClip "p12" in Frame 1
on (press) { _root.Click(12); }
Instance of Symbol 53 MovieClip "p13" in Frame 1
on (press) { _root.Click(13); }
Instance of Symbol 55 MovieClip "p14" in Frame 1
on (press) { _root.Click(14); }
Frame 2
gotoAndStop (1);
Symbol 21 Button
on (release) { Shuffle(); }
Symbol 23 Button
on (press) { _root.Click(0); }
Symbol 25 Button
on (press) { _root.Click(1); }
Symbol 27 Button
on (press) { _root.Click(0); }
Symbol 43 Button
on (press) { _root.Click(1); }
Symbol 58 Button
on (release) { help.nextFrame(); }
Symbol 64 Button
on (release) { getURL ("http://pinklemonadeanime.com", "_blank"); }
Symbol 67 MovieClip Frame 40
_root.gotoAndStop("win");
Symbol 73 Button
on (release) { prevFrame(); }
Symbol 84 MovieClip Frame 1
stop();
Symbol 93 Button
on (release) { getURL ("http://www.drowtales.com/~whiteradish/guest/kernpickle.jpg", "_blank"); }
Symbol 96 Button
on (release) { getURL ("http://www.drowtales.com/~whiteradish/guest/kernpickle.jpg", "_blank"); }

Library Items

Symbol 1 GraphicUsed by:Timeline
Symbol 2 GraphicUsed by:Timeline
Symbol 3 GraphicUsed by:84 96  Timeline
Symbol 4 GraphicUsed by:Timeline
Symbol 5 FontUsed by:6 60
Symbol 6 TextUses:5Used by:Timeline
Symbol 7 GraphicUsed by:12 26 27 28 30 32 34 36 38 40 42 43 44 46 48 50 52 54
Symbol 8 BitmapUsed by:9
Symbol 9 GraphicUses:8Used by:10
Symbol 10 MovieClipUses:9Used by:12 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:7 10 11Used by:Timeline
Symbol 13 FontUsed by:15 70 75 80 82 90
Symbol 14 FontUsed by:15
Symbol 15 TextUses:13 14Used by:Timeline
Symbol 16 GraphicUsed by:21
Symbol 17 FontUsed by:18
Symbol 18 TextUses:17Used by:21
Symbol 19 GraphicUsed by:21
Symbol 20 GraphicUsed by:21
Symbol 21 ButtonUses:16 18 19 20Used by:Timeline
Symbol 22 GraphicUsed by:23 24 25  Timeline
Symbol 23 ButtonUses:22Used by:Timeline
Symbol 24 MovieClipUses:22Used by:Timeline
Symbol 25 ButtonUses:22Used by:Timeline
Symbol 26 MovieClipUses:7 10Used by:27
Symbol 27 ButtonUses:26 7Used by:Timeline
Symbol 28 MovieClipUses:7 10Used by:29
Symbol 29 MovieClipUses:28Used by:Timeline
Symbol 30 MovieClipUses:7 10Used by:31
Symbol 31 MovieClipUses:30Used by:Timeline
Symbol 32 MovieClipUses:7 10Used by:33
Symbol 33 MovieClipUses:32Used by:Timeline
Symbol 34 MovieClipUses:7 10Used by:35
Symbol 35 MovieClipUses:34Used by:Timeline
Symbol 36 MovieClipUses:7 10Used by:37
Symbol 37 MovieClipUses:36Used by:Timeline
Symbol 38 MovieClipUses:7 10Used by:39
Symbol 39 MovieClipUses:38Used by:Timeline
Symbol 40 MovieClipUses:7 10Used by:41
Symbol 41 MovieClipUses:40Used by:Timeline
Symbol 42 MovieClipUses:7 10Used by:43
Symbol 43 ButtonUses:42 7Used by:Timeline
Symbol 44 MovieClipUses:7 10Used by:45
Symbol 45 MovieClipUses:44Used by:Timeline
Symbol 46 MovieClipUses:7 10Used by:47
Symbol 47 MovieClipUses:46Used by:Timeline
Symbol 48 MovieClipUses:7 10Used by:49
Symbol 49 MovieClipUses:48Used by:Timeline
Symbol 50 MovieClipUses:7 10Used by:51
Symbol 51 MovieClipUses:50Used by:Timeline
Symbol 52 MovieClipUses:7 10Used by:53
Symbol 53 MovieClipUses:52Used by:Timeline
Symbol 54 MovieClipUses:7 10Used by:55
Symbol 55 MovieClipUses:54Used by:Timeline
Symbol 56 GraphicUsed by:58
Symbol 57 GraphicUsed by:58
Symbol 58 ButtonUses:56 57Used by:Timeline
Symbol 59 FontUsed by:60
Symbol 60 TextUses:59 5Used by:Timeline
Symbol 61 GraphicUsed by:64
Symbol 62 FontUsed by:63 86 87 88
Symbol 63 TextUses:62Used by:64
Symbol 64 ButtonUses:61 63Used by:Timeline
Symbol 65 GraphicUsed by:67
Symbol 66 SoundUsed by:67
Symbol 67 MovieClipUses:65 66Used by:Timeline
Symbol 68 GraphicUsed by:84
Symbol 69 GraphicUsed by:73
Symbol 70 TextUses:13Used by:73
Symbol 71 GraphicUsed by:73
Symbol 72 GraphicUsed by:73
Symbol 73 ButtonUses:69 70 71 72Used by:84
Symbol 74 GraphicUsed by:84
Symbol 75 TextUses:13Used by:84
Symbol 76 GraphicUsed by:84
Symbol 77 FontUsed by:78 81
Symbol 78 TextUses:77Used by:84
Symbol 79 GraphicUsed by:84
Symbol 80 TextUses:13Used by:84
Symbol 81 TextUses:77Used by:84
Symbol 82 TextUses:13Used by:84
Symbol 83 GraphicUsed by:84
Symbol 84 MovieClipUses:68 3 73 74 75 76 78 79 80 81 82 83Used by:Timeline
Symbol 85 GraphicUsed by:Timeline
Symbol 86 TextUses:62Used by:Timeline
Symbol 87 EditableTextUses:62Used by:Timeline
Symbol 88 TextUses:62Used by:Timeline
Symbol 89 GraphicUsed by:93
Symbol 90 TextUses:13Used by:93
Symbol 91 GraphicUsed by:93
Symbol 92 GraphicUsed by:93
Symbol 93 ButtonUses:89 90 91 92Used by:Timeline
Symbol 94 BitmapUsed by:95
Symbol 95 GraphicUses:94Used by:96
Symbol 96 ButtonUses:3 95Used by:Timeline

Instance Names

"p0"Frame 1Symbol 27 Button
"p2"Frame 1Symbol 29 MovieClip
"p3"Frame 1Symbol 31 MovieClip
"p4"Frame 1Symbol 33 MovieClip
"p5"Frame 1Symbol 35 MovieClip
"p6"Frame 1Symbol 37 MovieClip
"p7"Frame 1Symbol 39 MovieClip
"p8"Frame 1Symbol 41 MovieClip
"p1"Frame 1Symbol 43 Button
"p9"Frame 1Symbol 45 MovieClip
"p10"Frame 1Symbol 47 MovieClip
"p11"Frame 1Symbol 49 MovieClip
"p12"Frame 1Symbol 51 MovieClip
"p13"Frame 1Symbol 53 MovieClip
"p14"Frame 1Symbol 55 MovieClip
"Congratulations"Frame 1Symbol 67 MovieClip
"help"Frame 1Symbol 84 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""

Labels

"win"Frame 3




http://swfchan.com/16/77415/info.shtml
Created: 4/4 -2019 01:38:21 Last modified: 4/4 -2019 01:38:21 Server time: 22/12 -2024 15:17:06