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

cat.swf

This is the info page for
Flash #240564

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


Text

Cargando

Reiniciar

Mueve una vez cada uno

Consigue atrapar al gato en un círculo para que no se escape
del panel. Pincha en las casillas para que se mueva el gato.

ActionScript [AS1/AS2]

Frame 4
stop(); btReset.onRelease = function () { btReset._visible = false; gotoAndPlay (1); };
Symbol 7 MovieClip [mcCelOrg] Frame 1
stop();
Symbol 7 MovieClip [mcCelOrg] Frame 2
stop(); delete onPress;
Symbol 7 MovieClip [mcCelOrg] Frame 3
stop(); onPress = function () { var _local3 = this._name.split("_"); _parent._parent.click_cel(Number(_local3[2]), Number(_local3[1])); gotoAndStop (4); };
Symbol 7 MovieClip [mcCelOrg] Frame 4
stop(); delete onPress;
Symbol 10 MovieClip Frame 1
_visible = false;
Symbol 10 MovieClip Frame 2
stop(); _visible = true;
Symbol 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 8
if (_parent.act == 0) { _parent._parent.cat_position(); gotoAndStop (1); } else { _parent._parent.cat_move(); gotoAndPlay (2); }
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 8
if (_parent.act == 0) { _parent._parent.cat_position(); gotoAndStop (1); } else { _parent._parent.cat_move(); gotoAndPlay (2); }
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 8
if (_parent.act == 0) { _parent._parent.cat_position(); gotoAndStop (1); } else { _parent._parent.cat_move(); gotoAndPlay (2); }
Symbol 31 MovieClip Frame 1
function start_jump(dir) { gotoAndPlay(2 + (dir * 2)); act = 0; } function start_run(dir) { gotoAndPlay(2 + (dir * 2)); act = 1; } stop(); _visible = false;
Symbol 31 MovieClip Frame 3
stop(); mc.gotoAndPlay(2);
Symbol 31 MovieClip Frame 5
stop(); mc.gotoAndPlay(2);
Symbol 31 MovieClip Frame 7
stop(); mc.gotoAndPlay(2);
Symbol 31 MovieClip Frame 9
stop(); mc.gotoAndPlay(2);
Symbol 31 MovieClip Frame 11
stop(); mc.gotoAndPlay(2);
Symbol 31 MovieClip Frame 13
stop(); mc.gotoAndPlay(2);
Symbol 32 MovieClip Frame 1
function cat_position() { mc = eval ((("mcCelLayer.mc_" + caty) + "_") + catx); mcCat._x = mc._x; mcCat._y = mc._y; mcCat._visible = true; } function all_disable() { var i; var j; i = 0; while (i < ymax) { j = 0; while (j < xmax) { if (cel[i][j].stat == 1) { var mc = eval ((("mcCelLayer.mc_" + i) + "_") + j); mc.gotoAndStop(2); } j++; } i++; } } function all_enable() { var i; var j; i = 0; while (i < ymax) { j = 0; while (j < xmax) { var mc = eval ((("mcCelLayer.mc_" + i) + "_") + j); if (cel[i][j].stat == 1) { if ((j == catx) && (i == caty)) { mc.gotoAndStop(2); } else { mc.gotoAndStop(3); } mc._visible = true; } if (cel[i][j].stat == 2) { mc.gotoAndStop(4); mc._visible = true; } j++; } i++; } } addx0 = [1, 0, -1, -1, -1, 0]; addy0 = [0, 1, 1, 0, -1, -1]; addx1 = [1, 1, 0, -1, 0, 1]; addy1 = [0, 1, 1, 0, -1, -1]; xmax = 15; ymax = 15; cel = new Array(); i = 0; while (i < ymax) { cel[i] = new Array(); j = 0; while (j < xmax) { cel[i][j] = new Object(); cel[i][j].stat = 0; cel[i][j].win = 0; j++; } i++; } catx = Math.floor(xmax / 2); caty = Math.floor(ymax / 2); cel[caty][catx].stat = 1; lx = new Array(); ly = new Array(); ld = new Array(); lx[0] = catx; ly[0] = caty; lmax = 1; lx2 = new Array(); ly2 = new Array(); i = 2; while (i < (ymax - 2)) { j = 2; while (j < (xmax - 2)) { cel[i][j].stat = 1; j++; } i++; } loop = 0; while (loop < 20) { rx = Math.floor(Math.random() * xmax); ry = Math.floor(Math.random() * ymax); if ((rx != catx) && (ry != caty)) { if (cel[ry][rx].stat == 1) { cel[ry][rx].stat = 2; } } loop++; } i = 0; while (i < ymax) { j = 0; while (j < xmax) { if (cel[i][j].stat != 1) { } else { k = 0; while (k < 6) { var nx = ((i % 2) ? (j + addx1[k]) : (j + addx0[k])); var ny = (i + addy0[k]); if (cel[ny][nx].stat == 0) { cel[i][j].win = 1; } k++; } } j++; } i++; } w = 34; h = 26; opx = ((-(xmax - 1)) * w) / 2; opy = ((-(ymax - 1)) * h) / 2; c = 0; i = 0; while (i < ymax) { j = 0; while (j < xmax) { mcName = (("mc_" + i) + "_") + j; mcCelLayer.attachMovie("mcCelOrg", mcName, c); mc = eval ("mcCelLayer." + mcName); mc._x = opx + (j * w); if (i % 2) { mc._x = mc._x + (w / 4); } else { mc._x = mc._x - (w / 4); } mc._y = opy + (i * h); mc._visible = false; c++; j++; } i++; }
Symbol 32 MovieClip Frame 5
function click_cel(cx, cy) { cel[cy][cx].stat = 2; gotoAndPlay ("cat"); all_disable(); } stop(); cat_position(); all_enable();
Symbol 32 MovieClip Frame 11
function go_out() { var _local1; var _local4 = catx; var _local5 = caty; _local1 = 0; while (_local1 < 6) { var _local2 = ((_local5 % 2) ? (_local4 + addx1[_local1]) : (_local4 + addx0[_local1])); var _local3 = _local5 + addy0[_local1]; if (cel[_local3][_local2].stat == 0) { catx = _local2; caty = _local3; catdir = _local1; return(1); } _local1++; } return(0); } function goto_win() { var _local4 = catx; var _local5 = caty; var _local1 = 0; while (_local1 < 6) { var _local2 = ((_local5 % 2) ? (_local4 + addx1[_local1]) : (_local4 + addx0[_local1])); var _local3 = _local5 + addy0[_local1]; if (cel[_local3][_local2].stat != 1) { } else if (cel[_local3][_local2].win) { catx = _local2; caty = _local3; catdir = _local1; return(1); } _local1++; } return(0); } function get_nearest() { var _local8; var _local7; var _local6; var _local3; var _local11; cel[caty][catx].po = 0; lx[0] = catx; ly[0] = caty; var _local12 = 1; var _local9 = 999; po = 1; while (po < 200) { _local3 = 0; _local8 = 0; while (_local8 < _local12) { var _local4 = lx[_local8]; var _local5 = ly[_local8]; _local6 = 0; while (_local6 < 6) { var _local1 = ((_local5 % 2) ? (_local4 + addx1[_local6]) : (_local4 + addx0[_local6])); var _local2 = _local5 + addy0[_local6]; if (cel[_local2][_local1].stat != 1) { } else if (cel[_local2][_local1].po >= 0) { } else { cel[_local2][_local1].po = po; lx2[_local3] = _local1; ly2[_local3] = _local2; _local3++; if (cel[_local2][_local1].win && (po < _local9)) { _local9 = po; } } _local6++; } _local8++; } if (_local3 == 0) { break; } _local8 = 0; while (_local8 < _local3) { lx[_local8] = lx2[_local8]; ly[_local8] = ly2[_local8]; _local8++; } _local12 = _local3; po++; } if (_local9 == 999) { return(0); } _local3 = 0; _local8 = 0; while (_local8 < ymax) { _local7 = 0; while (_local7 < xmax) { if ((cel[_local8][_local7].po == _local9) && (cel[_local8][_local7].win)) { lx[_local3] = _local7; ly[_local3] = _local8; _local3++; } _local7++; } _local8++; } if (_local3 == 0) { return(0); } _local11 = Math.floor(Math.random() * _local3); var _local4 = lx[_local11]; var _local5 = ly[_local11]; var _local10 = 0; while (_local10 < 200) { _local3 = 0; _local6 = 0; while (_local6 < 6) { var _local1 = ((_local5 % 2) ? (_local4 + addx1[_local6]) : (_local4 + addx0[_local6])); var _local2 = _local5 + addy0[_local6]; if (cel[_local2][_local1].stat != 1) { } else if (cel[_local2][_local1].po >= cel[_local5][_local4].po) { } else { lx[_local3] = _local1; ly[_local3] = _local2; ld[_local3] = _local6; _local3++; } _local6++; } if (_local3 == 0) { return(0); } _local11 = Math.floor(Math.random() * _local3); _local4 = lx[_local11]; _local5 = ly[_local11]; if (cel[_local5][_local4].po == 1) { catx = _local4; caty = _local5; catdir = 0; _local6 = 0; while (_local6 < 6) { var _local1 = ((_local5 % 2) ? (_local4 + addx1[_local6]) : (_local4 + addx0[_local6])); var _local2 = _local5 + addy0[_local6]; if (cel[_local2][_local1].po == 0) { catdir = (_local6 + 3) % 6; } _local6++; } return(1); } _local10++; } return(0); } function rand_move() { var _local5 = catx; var _local6 = caty; var _local2 = 0; var _local1 = 0; while (_local1 < 6) { var _local3 = ((_local6 % 2) ? (_local5 + addx1[_local1]) : (_local5 + addx0[_local1])); var _local4 = _local6 + addy0[_local1]; if (cel[_local4][_local3].stat != 1) { } else { lx[_local2] = _local3; ly[_local2] = _local4; ld[_local2] = _local1; _local2++; } _local1++; } if (_local2 == 0) { return(0); } var _local7 = Math.floor(Math.random() * _local2); catx = lx[_local7]; caty = ly[_local7]; catdir = ld[_local7]; return(1); }
Symbol 32 MovieClip Frame 12
i = 0; while (i < ymax) { j = 0; while (j < xmax) { cel[i][j].reach = 0; cel[i][j].po = -1; j++; } i++; } i = 0; while (i < ymax) { j = 0; while (j < xmax) { if (cel[i][j].stat != 1) { } else { k = 0; while (k < 6) { var nx = ((i % 2) ? (j + addx1[k]) : (j + addx0[k])); var ny = (i + addy0[k]); if (cel[ny][nx].win) { cel[i][j].reach++; } k++; } } j++; } i++; } f = 0; if (go_out() == 0) { if (goto_win() == 0) { if (get_nearest() == 0) { if (rand_move() == 0) { f = 1; } } } } if (f) { gotoAndStop ("over"); } else { mcCat.start_jump(catdir); }
Symbol 32 MovieClip Frame 19
if (cel[caty][catx].stat == 0) { gotoAndStop ("run"); } else { gotoAndStop ("wait"); }
Symbol 32 MovieClip Frame 21
function cat_move() { var _local1 = 34; var _local2 = 26; var _local3 = [1, 0.5, -0.5, -1, -0.5, 0.5]; var _local4 = [0, 1, 1, 0, -1, -1]; mcCat._x = mcCat._x + (_local1 * _local3[catdir]); mcCat._y = mcCat._y + (_local2 * _local4[catdir]); } stop(); mcCat.start_run(catdir); cnt = 0; onEnterFrame = function () { cnt++; if (cnt > 50) { delete onEnterFrame; _parent.mcFade.start_fadeout(); } };
Symbol 32 MovieClip Frame 27
stop(); mcCat.mc.gotoAndStop(2); cnt = 0; onEnterFrame = function () { cnt++; if (cnt > 50) { delete onEnterFrame; _parent.mcFade.start_fadeout(); } };
Symbol 39 MovieClip Frame 1
function start_fadeout() { _alpha = 0; onEnterFrame = function () { _alpha = (_alpha + 4); if (_alpha >= 100) { delete onEnterFrame; _parent.gotoAndPlay(1); } }; } _alpha = 100; onEnterFrame = function () { _alpha = (_alpha - 10); if (_alpha <= 0) { delete onEnterFrame; } };

Library Items

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

Instance Names

"btReset"Frame 4Symbol 35 Button
"mcFade"Frame 4Symbol 39 MovieClip
"mc"Symbol 31 MovieClip Frame 1Symbol 17 MovieClip
"mc"Symbol 31 MovieClip Frame 2Symbol 24 MovieClip
"mc"Symbol 31 MovieClip Frame 4Symbol 17 MovieClip
"mc"Symbol 31 MovieClip Frame 8Symbol 24 MovieClip
"mc"Symbol 31 MovieClip Frame 10Symbol 30 MovieClip
"mcCelLayer"Symbol 32 MovieClip Frame 1Symbol 10 MovieClip
"mcCat"Symbol 32 MovieClip Frame 1Symbol 31 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 7 as "mcCelOrg"

Labels

"wait"Symbol 32 MovieClip Frame 5
"cat"Symbol 32 MovieClip Frame 11
"run"Symbol 32 MovieClip Frame 21
"over"Symbol 32 MovieClip Frame 27

Dynamic Text Variables

poSymbol 2 EditableText" "




http://swfchan.com/49/240564/info.shtml
Created: 26/4 -2021 22:25:52 Last modified: 26/4 -2021 22:25:52 Server time: 22/12 -2024 18:58:24