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

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

A Small World.swf

This is the info page for
Flash #29490

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


ActionScript [AS1/AS2]
Frame 1
stop(); levelmark = 1; name = "";
Frame 2
function reset() { for (var i in _root) { if (typeof(_root[i]) == "movieclip") { if (_root[i] != _root.endcell) { _root[i].removeMovieClip(); } } } delete visitedcells; } function neighbours(r, c) { var n = grid[r - 1][c]; var s = grid[r + 1][c]; var e = grid[r][c + 1]; var w = grid[r][c - 1]; var empty = []; var dirs = []; if ((!n.visited) && (n != null)) { empty.push(n); dirs.push("n"); } if ((!s.visited) && (s != null)) { empty.push(s); dirs.push("s"); } if ((!e.visited) && (e != null)) { empty.push(e); dirs.push("e"); } if ((!w.visited) && (w != null)) { empty.push(w); dirs.push("w"); } if (empty.length) { var rn = Math.floor(Math.random() * empty.length); var dir = dirs[rn]; cellstack.push(currentcell); currentcell.hidewall(dir); currentcell.visited = true; currentcell = empty[rn]; currentcell.oppHideWall(dir); currentcell.visited = true; _root.visitedcells++; } else { currentcell = cellstack.pop(); } } function points() { var corners = [grid[0][0], grid[0][columns - 1], grid[rows - 1][0], grid[rows - 1][columns - 1]]; var rn = Math.floor(Math.random() * corners.length); var startcell = corners[rn]; corners.splice(rn, 1); var endcell = corners[Math.floor(Math.random() * corners.length)]; var cells = new Object(); cells.startcell = startcell; cells.endcell = endcell; return(cells); } function up() { if ((!_root.grid[_root.cr][_root.cc].n._visible) && (!_root.grid[_root.cr - 1][_root.cc].s._visible)) { _root.grid[_root.cr - 1][_root.cc].gotoAndStop(2); _root.previous(_root.grid[_root.cr - 1][_root.cc]); _root.cr--; } check(); } function down() { if ((!_root.grid[_root.cr][_root.cc].s._visible) && (!_root.grid[_root.cr + 1][_root.cc].n._visible)) { _root.grid[_root.cr + 1][_root.cc].gotoAndStop(2); _root.previous(_root.grid[_root.cr + 1][_root.cc]); _root.cr++; } check(); } function left() { if ((!_root.grid[_root.cr][_root.cc].w._visible) && (!_root.grid[_root.cr][_root.cc - 1].e._visible)) { _root.grid[_root.cr][_root.cc - 1].gotoAndStop(2); _root.previous(_root.grid[_root.cr][_root.cc - 1]); _root.cc--; } check(); } function right() { if ((!_root.grid[_root.cr][_root.cc].e._visible) && (!_root.grid[_root.cr][_root.cc + 1].w._visible)) { _root.grid[_root.cr][_root.cc + 1].gotoAndStop(2); _root.previous(_root.grid[_root.cr][_root.cc + 1]); _root.cc++; } check(); } function check() { if (_root.grid[_root.cr][_root.cc] == _root.endcell) { _root.endcell.ender.gotoAndPlay(2); } } function previous(current) { _root.last.gotoAndStop(1); _root.last = current; } rows = Math.floor(Math.random() * 1) + 13; columns = Math.floor(Math.random() * 1) + 14; num = 1; w = 40; h = 20; startx = 265; starty = 90; cellstack = []; i = 1; while (i <= rows) { _root["row" + i] = []; z = 1; while (z <= columns) { _root.attachMovie("tile", "tile" + num, num); _root["tile" + num]._x = startx + ((w / 2) * (z - i)); _root["tile" + num]._y = starty + ((h / 2) * (z + i)); _root["tile" + num].visited = false; _root["tile" + num].r = i - 1; _root["tile" + num].c = z - 1; _root["tile" + num].depth = num; _root["row" + i].push(_root["tile" + num]); num++; z++; } i++; } grid = []; x = 1; while (x <= rows) { grid.push(_root["row" + x]); x++; } Movieclip.prototype.hideWall = function (dir) { this[dir]._visible = false; }; Movieclip.prototype.oppHideWall = function (dir) { var opp; if (dir == "s") { opp = "n"; } else if (dir == "n") { opp = "s"; } else if (dir == "e") { opp = "w"; } else if (dir == "w") { opp = "e"; } this[opp]._visible = false; }; currentcell = grid[Math.floor(Math.random() * rows)][Math.floor(Math.random() * columns)]; positions = points(); startcell = positions.startcell; endcell = positions.endcell; delete positions;
Frame 3
neighbours(currentcell.r, currentcell.c);
Frame 4
if (visitedcells < ((rows * columns) - 1)) { gotoAndPlay (3); } else { endcell.attachMovie("ender", "ender", 1); endcell.s.swapDepths(2); endcell.e.swapDepths(3); startcell.gotoAndStop(3); last = startcell; cr = startcell.r; cc = startcell.c; stop(); }
Frame 10
_root.reset(); endcell.removeMovieClip();
Frame 11
loadVariables ((((("http://www.gamezarena.com/puzzle/games/smallworld/enterhighs.php?name=" + name) + "&comments=") + comments) + "&levels=") + levelmark, GET);
Frame 31
loadVariables ("http://www.gamezarena.com/puzzle/games/smallworld/gethighs.php", GET);
Frame 51
stop();
Symbol 15 MovieClip [player] Frame 1
stop();
Symbol 16 MovieClip [tile] Frame 1
stop();
Symbol 16 MovieClip [tile] Frame 2
stop(); if (Key.getCode() == 37) { tellTarget ("player") { gotoAndStop ("left"); }; } else if (Key.getCode() == 39) { tellTarget ("player") { gotoAndStop ("right"); }; } else if (Key.getCode() == 38) { tellTarget ("player") { gotoAndStop ("up"); }; } else if (Key.getCode() == 40) { tellTarget ("player") { gotoAndStop ("down"); }; }
Instance of Symbol 15 MovieClip [player] "player" in Symbol 16 MovieClip [tile] Frame 2
onClipEvent (keyDown) { if (Key.getCode() == 37) { _root.left(); } else if (Key.getCode() == 39) { _root.right(); } else if (Key.getCode() == 38) { _root.up(); } else if (Key.getCode() == 40) { _root.down(); } updateAfterEvent(); }
Symbol 25 MovieClip [ender] Frame 1
stop();
Symbol 25 MovieClip [ender] Frame 46
_level0.levelmark = _level0.levelmark + 1; _root.reset(); _root.gotoAndPlay(2); _parent.removeMovieClip();
Symbol 37 Button
on (release) { gotoAndPlay (2); }
Symbol 46 Button
on (release) { gotoAndStop (10); }
Symbol 50 Button
on (press) { if (name == "") { warning = "You didn't enter your name."; } else { gotoAndPlay (11); } }
Symbol 58 MovieClip Frame 21
stop();

Library Items

Symbol 1 GraphicUsed by:16
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClipUses:2Used by:16
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:16
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:16
Symbol 8 GraphicUsed by:16
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClipUses:9Used by:16
Symbol 11 GraphicUsed by:15
Symbol 12 GraphicUsed by:15
Symbol 13 GraphicUsed by:15
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClip [player]Uses:11 12 13 14Used by:16  Timeline
Symbol 16 MovieClip [tile]Uses:1 3 5 7 8 10 15
Symbol 17 GraphicUsed by:25
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:18Used by:25
Symbol 20 GraphicUsed by:24
Symbol 21 GraphicUsed by:24
Symbol 22 ShapeTweeningUsed by:24
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:20 21 22 23Used by:25
Symbol 25 MovieClip [ender]Uses:17 19 24
Symbol 26 BitmapUsed by:27
Symbol 27 GraphicUses:26Used by:28
Symbol 28 MovieClipUses:27Used by:Timeline
Symbol 29 GraphicUsed by:Timeline
Symbol 30 GraphicUsed by:31
Symbol 31 MovieClipUses:30Used by:Timeline
Symbol 32 GraphicUsed by:46 50  Timeline
Symbol 33 GraphicUsed by:Timeline
Symbol 34 GraphicUsed by:37
Symbol 35 GraphicUsed by:37
Symbol 36 GraphicUsed by:37
Symbol 37 ButtonUses:34 35 36Used by:Timeline
Symbol 38 GraphicUsed by:Timeline
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:39Used by:Timeline
Symbol 41 GraphicUsed by:Timeline
Symbol 42 FontUsed by:43 61 62 63 64 65 66 67 68 69 70
Symbol 43 EditableTextUses:42Used by:Timeline
Symbol 44 GraphicUsed by:46 50
Symbol 45 GraphicUsed by:46 50
Symbol 46 ButtonUses:32 44 45Used by:Timeline
Symbol 47 GraphicUsed by:Timeline
Symbol 48 GraphicUsed by:49
Symbol 49 MovieClipUses:48Used by:Timeline
Symbol 50 ButtonUses:32 44 45Used by:Timeline
Symbol 51 FontUsed by:52 55
Symbol 52 EditableTextUses:51Used by:Timeline
Symbol 53 FontUsed by:54 71 72 73 74 75 76 77 78 79 80
Symbol 54 EditableTextUses:53Used by:Timeline
Symbol 55 EditableTextUses:51Used by:Timeline
Symbol 56 GraphicUsed by:58
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClipUses:56 57Used by:Timeline
Symbol 59 GraphicUsed by:Timeline
Symbol 60 GraphicUsed by:Timeline
Symbol 61 EditableTextUses:42Used by:Timeline
Symbol 62 EditableTextUses:42Used by:Timeline
Symbol 63 EditableTextUses:42Used by:Timeline
Symbol 64 EditableTextUses:42Used by:Timeline
Symbol 65 EditableTextUses:42Used by:Timeline
Symbol 66 EditableTextUses:42Used by:Timeline
Symbol 67 EditableTextUses:42Used by:Timeline
Symbol 68 EditableTextUses:42Used by:Timeline
Symbol 69 EditableTextUses:42Used by:Timeline
Symbol 70 EditableTextUses:42Used by:Timeline
Symbol 71 EditableTextUses:53Used by:Timeline
Symbol 72 EditableTextUses:53Used by:Timeline
Symbol 73 EditableTextUses:53Used by:Timeline
Symbol 74 EditableTextUses:53Used by:Timeline
Symbol 75 EditableTextUses:53Used by:Timeline
Symbol 76 EditableTextUses:53Used by:Timeline
Symbol 77 EditableTextUses:53Used by:Timeline
Symbol 78 EditableTextUses:53Used by:Timeline
Symbol 79 EditableTextUses:53Used by:Timeline
Symbol 80 EditableTextUses:53Used by:Timeline

Instance Names

"levelmark"Frame 2Symbol 43 EditableText
"highname1"Frame 51Symbol 61 EditableText
"highname2"Frame 51Symbol 62 EditableText
"highname3"Frame 51Symbol 63 EditableText
"highname4"Frame 51Symbol 64 EditableText
"highname5"Frame 51Symbol 65 EditableText
"highname6"Frame 51Symbol 66 EditableText
"highname7"Frame 51Symbol 67 EditableText
"highname8"Frame 51Symbol 68 EditableText
"highname9"Frame 51Symbol 69 EditableText
"highname10"Frame 51Symbol 70 EditableText
"comment1"Frame 51Symbol 71 EditableText
"comment2"Frame 51Symbol 72 EditableText
"comment3"Frame 51Symbol 73 EditableText
"comment4"Frame 51Symbol 74 EditableText
"comment5"Frame 51Symbol 75 EditableText
"comment6"Frame 51Symbol 76 EditableText
"comment7"Frame 51Symbol 77 EditableText
"comment8"Frame 51Symbol 78 EditableText
"comment9"Frame 51Symbol 79 EditableText
"comment10"Frame 51Symbol 80 EditableText
"w"Symbol 16 MovieClip [tile] Frame 1Symbol 3 MovieClip
"n"Symbol 16 MovieClip [tile] Frame 1Symbol 5 MovieClip
"s"Symbol 16 MovieClip [tile] Frame 1Symbol 7 MovieClip
"e"Symbol 16 MovieClip [tile] Frame 1Symbol 10 MovieClip
"player"Symbol 16 MovieClip [tile] Frame 2Symbol 15 MovieClip [player]

Special Tags

Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 1Symbol 15 as "player"
ExportAssets (56)Timeline Frame 1Symbol 16 as "tile"
ExportAssets (56)Timeline Frame 1Symbol 25 as "ender"
ExportAssets (56)Timeline Frame 1Symbol 15 as "player"
ExportAssets (56)Timeline Frame 1Symbol 15 as "player"

Labels

"down"Symbol 15 MovieClip [player] Frame 1
"right"Symbol 15 MovieClip [player] Frame 2
"left"Symbol 15 MovieClip [player] Frame 3
"up"Symbol 15 MovieClip [player] Frame 4

Dynamic Text Variables

levelmarkSymbol 43 EditableText""
nameSymbol 52 EditableText""
warningSymbol 54 EditableText""
commentsSymbol 55 EditableText""
highname1Symbol 61 EditableText""
highname2Symbol 62 EditableText""
highname3Symbol 63 EditableText""
highname4Symbol 64 EditableText""
highname5Symbol 65 EditableText""
highname6Symbol 66 EditableText""
highname7Symbol 67 EditableText""
highname8Symbol 68 EditableText""
highname9Symbol 69 EditableText""
highname10Symbol 70 EditableText""
comment1Symbol 71 EditableText""
comment2Symbol 72 EditableText""
comment3Symbol 73 EditableText""
comment4Symbol 74 EditableText""
comment5Symbol 75 EditableText""
comment6Symbol 76 EditableText""
comment7Symbol 77 EditableText""
comment8Symbol 78 EditableText""
comment9Symbol 79 EditableText""
comment10Symbol 80 EditableText""




http://swfchan.com/6/29490/info.shtml
Created: 19/5 -2019 22:23:47 Last modified: 19/5 -2019 22:23:47 Server time: 08/05 -2024 07:05:37