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/24349056?noj=FRM24349056-14DC" width="1" height="1"></div>

Pegz.swf

This is the info page for
Flash #27480

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


Text
Presents...

PEGZ

PEGZ

When you need a kwik break!

Instructions

Instructions

Start Game

Start Game

Instructions

Using the mouse, move the blue pieces one at a
time.  The only valid move is to jump another single
piece and land in an empty hole.
Try to finish the game with only one single piece
remaining... in the centre hole!

Restart

Restart

Moves left :

Well Done!

You cleared the board...

ActionScript [AS1/AS2]

Frame 45
stop();
Frame 46
stop();
Frame 47
function initGame() { holeSpace = 30; puzzleLeft = 160; puzzleTop = 80; i = 0; y = 0; while (y < 9) { x = 0; while (x < 9) { if (((y < 3) or (y > 5)) and ((x < 3) or (x > 5))) { } else { attachMovie("hole", "hole" + i, i); _root["hole" + i]._x = (x * holeSpace) + puzzleLeft; _root["hole" + i]._y = (y * holeSpace) + puzzleTop; if ((x != 4) or (y != 4)) { attachMovie("peg", "peg" + i, 100 + i); _root["peg" + i]._x = (x * holeSpace) + puzzleLeft; _root["peg" + i]._y = (y * holeSpace) + puzzleTop; } i++; } x++; } y++; } maxHole = i; } function dragPeg(peg) { pegx = peg._x; pegy = peg._y; peg.swapDepths(2000); startDrag (peg, true); } function dropPeg(peg) { stopDrag(); placed = false; overHole = false; i = 0; while (i < maxHole) { hole = _root["hole" + i]; if (hole.hitTest(_xmouse, _ymouse)) { overHole = true; break; } i++; } if (!pegThere(hole._x, hole._y)) { dx = 0; dy = 0; if ((pegx == hole._x) and ((pegy - (holeSpace * 2)) == hole._y)) { dy = -1; } else if ((pegx == hole._x) and ((pegy + (holeSpace * 2)) == hole._y)) { dy = 1; } else if ((pegy == hole._y) and ((pegx - (holeSpace * 2)) == hole._x)) { dx = -1; } else if ((pegy == hole._y) and ((pegx + (holeSpace * 2)) == hole._x)) { dx = 1; } if ((dx != 0) or (dy != 0)) { midThere = false; i = 0; while (i < maxHole) { mid = _root["peg" + i]; if ((mid._x == (pegx + (dx * holeSpace))) and (mid._y == (pegy + (dy * holeSpace)))) { peg._x = hole._x; peg._y = hole._y; score--; if (score == 0) { gotoAndStop (48); } mid.removeMovieClip(); placed = true; break; } i++; } } } if (!placed) { peg._x = pegx; peg._y = pegy; } } function pegThere(x, y) { i = 0; while (i < maxHole) { peg = _root["peg" + i]; if ((peg._x == x) and (peg._y == y)) { return(true); } i++; } return(false); } function restartGame() { i = 0; while (i < maxHole) { _root["peg" + i].removeMovieClip(); _root["hole" + i].removeMovieClip(); i++; } initGame(); } initGame(); var score = 43; stop();
Frame 48
stop(); i = 0; while (i < maxHole) { _root["peg" + i].removeMovieClip(); _root["hole" + i].removeMovieClip(); i++; }
Symbol 2 Button
on (press) { _root.dragPeg(this); } on (release) { _root.dropPeg(this); }
Symbol 15 Button
on (release) { getURL ("http://www.kwikgames.com"); }
Symbol 21 Button
on (release) { gotoAndStop (46); }
Symbol 27 Button
on (release) { gotoAndStop (47); }
Symbol 32 Button
on (release) { gotoAndStop (47); }
Symbol 33 Button
on (release) { getURL ("http://www.kwikgames.com", _blank); }
Symbol 40 Button
on (press) { score = 43; restartGame(); }
Symbol 46 Button
on (press) { gotoAndStop (47); restartGame(); }

Library Items

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

Special Tags

Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 1Symbol 3 as "peg"
ExportAssets (56)Timeline Frame 1Symbol 5 as "hole"

Labels

"start"Frame 45
"instructions"Frame 46

Dynamic Text Variables

scoreSymbol 41 EditableText""
scoreSymbol 43 EditableText""




http://swfchan.com/6/27480/info.shtml
Created: 21/5 -2019 12:29:43 Last modified: 21/5 -2019 12:29:43 Server time: 14/05 -2024 01:38:35