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>

Some puzzle.swf

This is the info page for
Flash #24347

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


Text
score:

level:

level:

score:

0000

0000

0000

0000

A simple puzzle game...
The objective is to flip the tiles
and get 3 or more in a row.
Click to start!
ARROWKEYS to control.
SPACE to flip tiles.
CTRL to speed up.

A simple puzzle game...
The objective is to flip the tiles
and get 3 or more in a row.
Click to start!
ARROWKEYS to control.
SPACE to flip tiles.
CTRL to speed up.

ActionScript [AS1/AS2]

Frame 3
stop();
Instance of Symbol 54 MovieClip [empty] in Frame 3
onClipEvent (mouseDown) { _parent.gotoAndStop(6); }
Frame 6
function control() { if (gameover) { if (gameoverTimer < getTimer()) { removeMovieClip(this.con); removeMovieClip(this.cover); removeMovieClip(this.marker); gotoAndStop (3); } return(undefined); } if (((lastScroll + levelArray[level]) < getTimer()) || (Key.isDown(Key.CONTROL))) { pixely = pixely + 1; var basey = (scrolly * tileH); this.con._y = (-(pixely + basey)) + 10; this.marker._y = ((this.marker.y * tileH) - pixely) + 10; lastScroll = getTimer(); if (pixely == 16) { pixely = 0; scrolly++; addnewline(); removeline(); if (1 < this.marker.y) { this.marker.y = this.marker.y - 1; } flipped = true; } } if (getTimer() < (lastTime + 80)) { return(undefined); } var s = getTimer(); if (flipped) { var x = 0; while (x < maxWidth) { fall(x); x++; } var again = checkAll(); if (again == 0) { flipped = false; } lastTime = getTimer() + 90; } var mx = ((my = (flip = 0))); if (Key.isDown(Key.UP)) { my = -1; } else if (Key.isDown(Key.DOWN)) { my = 1; } else if (Key.isDown(Key.LEFT)) { mx = -1; } else if (Key.isDown(Key.RIGHT)) { mx = 1; } if (Key.isDown(Key.SPACE)) { flip = 1; } if (((mx == 0) && (my == 0)) && (flip == 0)) { return(undefined); } var nextX = (this.marker.x + mx); var nextY = (this.marker.y + my); if (9 < nextY) { nextY = 9; } if ((nextX >= 0) && (nextX < (maxWidth - 1))) { this.marker._x = (nextX * tileW) + 10; this.marker.x = nextX; } if ((nextY >= 1) && (nextY < (maxheight - 1))) { this.marker._y = ((nextY * tileH) - pixely) + 10; this.marker.y = nextY; } if (flip) { flipTiles(nextX, nextY + scrolly); flipped = true; } lastTime = getTimer(); } function checkAll() { var r = 0; var y = scrolly; while (y < ((maxHeight + scrolly) - 1)) { r = r + checkRow(y); y++; } var x = 0; while (x < maxWidth) { r = r + checkColumn(x); x++; } return(r); } function checkRow(y) { var r = 0; var inarow = 0; var x = 0; while (x < maxWidth) { var type = cMap[y][x]; if ((type == lastType) && (type != 0)) { inarow++; } else { inarow = 0; } if (inarow == 2) { var tx = x; while ((x - 3) < tx) { greyTile(tx, y); tx--; } addscore(30); r++; } if ((2 < inarow) && (type == lastType)) { greyTile(x, y); if (inarow == 3) { inarowSign(x - 1, y, "four"); addscore(10); } if (inarow == 4) { inarowSign(x - 2, y, "five"); addscore(20); } } var lastType = type; x++; } return(r); } function checkColumn(x) { var r = 0; var inarow = 0; var y = scrolly; while (y < ((maxHeight + scrolly) - 1)) { var type = cMap[y][x]; if ((type == lastType) && (type != 0)) { inarow++; } else { inarow = 0; } if (inarow == 2) { var ty = y; while ((y - 3) < ty) { greyTile(x, ty); ty--; } r++; addscore(30); } if ((2 < inarow) && (type == lastType)) { greyTile(x, y); if (inarow == 3) { inarowSign(x, y - 1, "four"); addscore(10); } if (inarow == 4) { inarowSign(x, y - 2, "five"); addscore(20); } } var lastType = type; y++; } return(r); } function inarowSign(x, y, label) { this.con.attachMovie("inarow", "sign", ++d); this.con.sign._x = x * tileW; this.con.sign._y = y * tileH; this.con.sign.gotoAndPlay(label); } function greyTile(x, y) { this.con[(("t" + y) + "_") + x].t.gotoAndStop(2); cMap[y][x] = 0; } function flipTiles(x, y) { var n1 = cMap[y][x]; var n2 = cMap[y][x + 1]; this.con[(("t" + y) + "_") + x].gotoAndStop(n2 + 1); this.con[(("t" + y) + "_") + (x + 1)].gotoAndStop(n1 + 1); cMap[y][x] = n2; cMap[y][x + 1] = n1; } function addscore(s) { this.cover.score = this.cover.score + s; if (((level + 1) * 200) < this.cover.score) { nextLevel(); } } function nextLevel() { if (level < levelArray.length) { level++; } this.cover.level = level; } function randomStart() { this.attachMovie("empty", "con", 0); this.con._x = 10; this.con._y = 10; this.attachMovie("cover", "cover", 1); this.cover.level = level; this.cover.score = 0; flipped = true; d = 0; scrolly = 0; gameover = false; cMap = []; var y = 0; while (y < maxHeight) { cMap[y] = new Array(maxWidth); var x = 0; while (x < maxWidth) { cMap[y][x] = 0; x++; } y++; } var y = (maxHeight - 1); while (4 < y) { var x = 0; while (x < maxWidth) { if (y >= maxHeight) { var rn = Math.randomBetween(1, 5); } else { var rn = Math.randomBetween(0, 5); } this.con.attachMovie("tile", (("t" + y) + "_") + x, ++d); this.con[(("t" + y) + "_") + x]._x = x * tileW; this.con[(("t" + y) + "_") + x]._y = y * tileH; this.con[(("t" + y) + "_") + x].gotoAndStop(rn + 1); if (y == (maxHeight - 1)) { this.con[(("t" + y) + "_") + x].t.gotoAndStop(2); } cMap[y][x] = rn; x++; } y--; } var x = 0; while (x < maxWidth) { fall(x); x++; } this.attachMovie("marker", "marker", 2); this.marker._x = (2 * tileW) + 10; this.marker._y = (5 * tileH) + 10; this.marker.x = 2; this.marker.y = 5; } function addnewline() { var y = ((maxHeight + scrolly) - 1); cMap[y] = []; var x = 0; while (x < maxWidth) { var rn = Math.randomBetween(1, 5); this.con.attachMovie("tile", (("t" + y) + "_") + x, ++d); this.con[(("t" + y) + "_") + x]._x = x * tileW; this.con[(("t" + y) + "_") + x]._y = y * tileH; this.con[(("t" + y) + "_") + x].gotoAndStop(rn + 1); this.con[(("t" + y) + "_") + x].t.gotoAndStop(2); cMap[y][x] = rn; this.con[(("t" + (y - 1)) + "_") + x].t.gotoAndStop(1); x++; } } function removeline() { var y = scrolly; var x = 0; while (x < maxWidth) { if (cMap[y][x] != 0) { blackAll(); gameover = true; gameoverTimer = getTimer() + 2000; return(undefined); } removeMovieClip(this.con[(("t" + y) + "_") + x]); x++; } } function blackAll() { var y = scrolly; while (y < (maxHeight + scrolly)) { var x = 0; while (x < maxWidth) { if (cMap[y][x] != 0) { this.con[(("t" + y) + "_") + x].gotoAndStop(7); } x++; } y++; } } function fall(column) { var x = column; var numzeros = 0; var y = scrolly; while (y < (maxHeight + scrolly)) { if (cMap[y][x] == 0) { numzeros++; } y++; } var counter = 0; while (counter < numzeros) { var y = (maxHeight + scrolly); while (y >= scrolly) { if (cMap[y][x] == 0) { counter++; this.con[(("t" + y) + "_") + x].gotoAndStop(1); } if ((cMap[y][x] != 0) && (0 < counter)) { var tox = x; var toy = (y + counter); var type = cMap[y][x]; moveTile(x, y, tox, toy, type); counter = 0; break; } y--; } } } function movetile(x, y, tox, toy, type) { this.con[(("t" + y) + "_") + x].gotoAndStop(1); cMap[y][x] = 0; this.con[(("t" + toy) + "_") + tox].gotoAndStop(type + 1); cMap[toy][tox] = type; } fscommand ("allowscale", false); _quality = "LOW"; stop(); Math.randomBetween = function (low_number, high_number) { var this_number = (high_number - low_number); var ran_unrounded = (Math.random() * this_number); var ran_number = Math.round(ran_unrounded); ran_number = ran_number + low_number; return(ran_number); }; tileW = (tileH = 16); maxHeight = 11; maxWidth = 6; numOfTiles = 5; level = 0; levelArray = []; var asdf = 0; var i = 14; while (1 < i) { levelArray[asdf] = i * 100; asdf++; i--; } randomStart();
Instance of Symbol 53 MovieClip [empty] in Frame 6
onClipEvent (enterFrame) { _parent.control(); }
Symbol 6 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 29 MovieClip [tile] Frame 1
stop();
Symbol 39 MovieClip [inarow] Frame 20
removeMovieClip(this);
Symbol 39 MovieClip [inarow] Frame 40
removeMovieClip(this);

Library Items

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

Instance Names

"t"Symbol 29 MovieClip [tile] Frame 2Symbol 6 MovieClip
"t"Symbol 29 MovieClip [tile] Frame 3Symbol 11 MovieClip
"t"Symbol 29 MovieClip [tile] Frame 4Symbol 16 MovieClip
"t"Symbol 29 MovieClip [tile] Frame 5Symbol 21 MovieClip
"t"Symbol 29 MovieClip [tile] Frame 6Symbol 26 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "empty"
ExportAssets (56)Timeline Frame 1Symbol 29 as "tile"
ExportAssets (56)Timeline Frame 1Symbol 34 as "marker"
ExportAssets (56)Timeline Frame 1Symbol 39 as "inarow"
ExportAssets (56)Timeline Frame 1Symbol 52 as "cover"
ExportAssets (56)Timeline Frame 1Symbol 53 as "empty"
ExportAssets (56)Timeline Frame 1Symbol 54 as "empty"
ExportAssets (56)Timeline Frame 3Symbol 54 as "empty"
ExportAssets (56)Timeline Frame 4Symbol 54 as "empty"
ExportAssets (56)Timeline Frame 5Symbol 54 as "empty"
ExportAssets (56)Timeline Frame 6Symbol 53 as "empty"

Labels

"four"Symbol 39 MovieClip [inarow] Frame 1
"five"Symbol 39 MovieClip [inarow] Frame 21

Dynamic Text Variables

scoreSymbol 47 EditableText"0000"
scoreSymbol 48 EditableText"0000"
levelSymbol 49 EditableText"0000"
levelSymbol 50 EditableText"0000"




http://swfchan.com/5/24347/info.shtml
Created: 25/5 -2019 04:06:52 Last modified: 25/5 -2019 04:06:52 Server time: 22/12 -2024 14:52:12