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

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

Pipe Mania.swf

This is the info page for
Flash #23564

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


Text
Click Here To Play More Games

Pipe Mania

Add Free Games To Your Website

Add Free Games To Your Website

Click Here To Play More Games

Click Here To Play More Games

>>>

>>>

Congratulation
Press START for next level

LEVEL:

0

START

START

START

0

TIME:

SCORE:

0

SPACE
rotate
ENTER
next piece

Not completed
Press START for replay

ActionScript [AS1/AS2]

Frame 1
stop();
Frame 2
_quality = "BEST"; stop();
Frame 3
function init() { imovie_new.gotoAndStop(1); } function getX(a_mouseX) { var stageX = (Math.floor(_root._xmouse) - _root.OFFSETX); return(Math.floor((stageX * _root.SEGMENTSX) / _root.MAXX)); } function getY(a_mouseY) { var stageY = (Math.floor(_root._ymouse) - _root.OFFSETY); return(Math.floor((stageY * _root.SEGMENTSY) / _root.MAXY)); } function placePiece(a_piece, a_x, a_y, a_rotation) { pieces[a_x + (8 * a_y)].state = 2; pieces[a_x + (8 * a_y)].handler = a_piece; a_piece._x = (((a_x * MAXX) / SEGMENTSX) + 25) + _root.OFFSETX; a_piece._y = (((a_y * MAXY) / SEGMENTSY) + 25) + _root.OFFSETY; a_piece._rotation = a_rotation; } function newGame() { trace("nEW GAME "); icrash.hide(); isuccess.hide(); initStack(); i = 0; while (i < pieces.length) { if (pieces[i].handler != null) { pieces[i].handler.removeMovieClip(); } pieces[i] = new object(); pieces[i].state = 0; pieces[i].handler = null; i++; } finishx = random(6) + 1; finishy = random(6) + 1; placePiece(finish, finishx, finishy, random(4) * 90); startx = random(6) + 1; starty = random(6) + 1; while ((Math.abs(startx - finishx) + Math.abs(starty - finishy)) < 5) { startx = random(6) + 1; starty = random(6) + 1; } pieces[startx + (8 * starty)].state = 2; pieces[startx + (8 * starty)].handler = start; placePiece(start, startx, starty, random(4) * 90); start.gotoAndStop(1); finish.gotoAndStop(1); itimer.start(60 - (5 * level)); gb_playing = true; } function test(a) { trace("main root " + a); } function crash(a) { gb_playing = false; hideWrongPieces(); trace("CCcrash " + a); icrash.swapDepths(6500000000000); icrash.crash(); init(); } function success(a) { gb_playing = false; hideWrongPieces(); trace("SUCCCCCCCCESSSSSSS " + a); isuccess.swapDepths(6500000000000); isuccess.success(); init(); changeLevel(1); } function hideWrongPieces() { var i; i = 0; while (i < pieces.length) { if (pieces[i].state != 2) { pieces[i].handler.hide(); } i++; } } function changeLevel(arg) { changeScore(20); level++; txtLevel = level; } function waterOut(aid, aout) { trace((((("waterOut id " + aid) + " out ") + aout) + " recalculate[aout] ") + recalculate[aout]); if (aout == 0) { next = aid - 8; } else if (aout == 1) { next = aid + 1; } else if (aout == 2) { next = aid + 8; } else if (aout == 3) { next = aid - 1; } trace((("next " + next) + " pieces[next] ") + pieces[next]); if ((pieces[next].state != 0) && ((next >= 0) && ((SEGMENTSX * SEGMENTSY) >= next))) { pieces[next].handler.waterIn(recalculate[aout]); pieces[next].state = 2; changeScore(1); } else { crash(); } } function changeScore(arg) { score = score + arg; txtScore = score; } function loadPieces() { } function initStack() { i = stack.length; while (0 < i) { stack[i - 1].removeMovieClip(); stack.pop(); i--; } i = 0; while (i < 5) { name = "uniqName" + depth; n = eval (piecesName[random(piecesName.length)]); n.duplicateMovieClip(name, depth); depth++; newpiece = eval ("_level0." + name); newpiece._x = 450; newpiece._y = (5 - i) * 55; newpiece._rotation = random(4) * 90; stack[stack.length] = newpiece; i++; } stack[0]._y = stack[0]._y + 55; } function getNext() { ret = stack[0]; i = 1; while (i < stack.length) { stack[i]._y = stack[i]._y + 55; stack[i - 1] = stack[i]; i++; } name = "uniqName" + depth; n = eval (piecesName[random(piecesName.length)]); n.duplicateMovieClip(name, depth); depth++; newpiece = eval ("_level0." + name); newpiece._x = 450; newpiece._y = 55; newpiece._rotation = random(4) * 90; stack[stack.length - 1] = newpiece; stack[0]._y = stack[0]._y + 55; return(ret); } function rotateNext(arg) { stack[0]._rotation = stack[0]._rotation + 90; if (arg == "CW") { } } function destroyCurrent() { o = getNext(); o.removeMovieClip(); } function startWater(arg) { if (arg != -1) { i = (parseInt(tfY) * 8) + parseInt(tfX); trace("WSater " + i); if (pieces[i].state == 1) { pieces[i].handler.waterIn(arg); trace((("QWERYTGHMGV " + i) + " pieces[i].handler ") + pieces[i].handler); } } else { start.init(startx + (starty * 8), 10); finish.init(finishx + (finishy * 8), 10); start.startWater(); } } function changeLanguage() { } function changeSkins() { trace(changeSkins + "skins/wall/"); loadSkins("skin/wall/"); } function loadSkins(a_dir) { zv.loadSkin(a_dir + "zv.swf"); zs.loadSkin(a_dir + "zs.swf"); } if (!initialized) { initialized = true; var pieces = new Array(64); var recalculate = new Array(2, 3, 0, 1); var depth = 100; var piecesName = new Array("zv", "zs", "zs", "zvjs"); var stack = new Array(); var level = 0; var score = 0; MAXX = 400; MAXY = 400; SEGMENTSX = 8; SEGMENTSY = 8; OFFSETX = 5; OFFSETY = 5; gb_playing = false; itimer.gotoAndStop(1); } stop();
Instance of Symbol 34 MovieClip "iBoard" in Frame 3
onClipEvent (mouseUp) { if (!_root.gb_playing) { return(false); } OFFSETX = 0; OFFSETY = 0; if (!initialized) { initialized = true; } trace((("stageX " + _root._xmouse) + " stageY ") + _root._ymouse); var x = _root.getX(_root._xmouse); var y = _root.getY(_root._ymouse); trace((("X " + X) + " Y ") + Y); if ((x >= _root.SEGMENTSX) || (x < 0)) { trace("not my bussines"); return(false); } if (_parent.pieces[x + (y * 8)].state == 1) { _parent.pieces[x + (y * 8)].handler.removeMovieClip(); _parent.pieces[x + (y * 8)].handler = null; _parent.pieces[x + (y * 8)].state = 0; } if (_parent.pieces[x + (y * 8)].state == 0) { newpiece = _parent.getNext(); _root.placePiece(newpiece, x, y, newpiece._rotation); newpiece.init(x + (y * 8), 10); _parent.pieces[x + (y * 8)].state = 1; _parent.pieces[x + (y * 8)].handler = newpiece; } } onClipEvent (load) { }
Symbol 6 Button
on (release) { getURL ("http://www.2dplay.com", "_blank"); }
Symbol 7 MovieClip Frame 60
_root.gotoAndStop(2);
Symbol 13 Button
on (release) { gotoAndStop (3); }
Symbol 16 Button
on (release) { getURL ("http://www.FreeGamesForYourWebsite.com", "_blank"); }
Symbol 20 Button
on (release) { getURL ("http://www.2dplay.com", "_blank"); }
Symbol 27 Button
on (release) { trace("finish"); counter = time; _parent.gotoAndPlay("while"); }
Symbol 32 MovieClip Frame 1
function start(arg) { counter = 0; if (0 < arg) { time = arg * fps; } iover2._width = origWidth; iover2._x = origX; trace((("animationSteps " + animationSteps) + " time ") + time); if (animationSteps < time) { step = iprechod._width / animationSteps; frameStep = time / animationSteps; } else { step = iprechod._width / time; frameStep = 1; } nextAnimatedFrame = frameStep; trace("step " + step); trace("step " + step); gotoAndPlay (2); } var counter = 0; var time = 20; var fps = 20; var step; var origWidth = iover2._width; var origX = iover2._x; var animationSteps = 300; var nextAnimatedFrame = 0; var frameStep = 0; stop();
Symbol 32 MovieClip Frame 2
if (counter < time) { counter++; if (counter >= nextAnimatedFrame) { nextAnimatedFrame = nextAnimatedFrame + frameStep; iover2._width = iover2._width - step; } rest = (time / fps) - (counter / fps); cas = Math.round(rest * 100) / 100; } else { counter = 0; iover2._width = 0; gotoAndStop (9); }
Symbol 32 MovieClip Frame 3
gotoAndPlay (2);
Symbol 32 MovieClip Frame 9
_parent.startWater(-1);
Symbol 40 MovieClip Frame 1
function init(aid, atime) { id = aid; time = atime; trace(" volani init" + _rotation); if ((_rotation == 90) || (_rotation == -90)) { resources[0] = 2; resources[2] = 0; } else { resources[1] = 3; resources[3] = 1; } } function waterIn(afrom) { trace(((((((" waterIn " + afrom) + " MY ID ") + id) + "my rotation ") + _rotation) + "yv") + zv); from = afrom; trace(((" waterIn " + afrom) + " resource[from] ") + resource[from]); if (resources[from] != -1) { to = resources[from]; if (((((_rotation == 0) && (from == 3)) || ((_rotation == 90) && (from == 0))) || ((_rotation == 180) && (from == 1))) || ((_rotation == -90) && (from == 2))) { trace("ZV"); gotoAndPlay (11); } else { trace("VZ"); gotoAndPlay (21); } } else { trace("CRASH"); _parent.crash(); } } function hide() { gotoAndPlay (31); } function loadSkin(a_skin) { trace("SKINS " + zvback); zvback.attachMovie("skins/wall/zv", _level0.zv.zvback, 0); } if (!initialized) { initialized = true; var id; var time; var directions; var resources = new Array(); var outflow = new Array(); var steps = 10; var counter = 1; var from; var to; resources[0] = -1; resources[1] = -1; resources[2] = -1; resources[3] = -1; } stop();
Symbol 40 MovieClip Frame 20
_parent.waterOut(id, resources[from]); stop();
Symbol 40 MovieClip Frame 30
_parent.waterOut(id, resources[from]); stop();
Symbol 40 MovieClip Frame 35
removeMovieClip(this);
Symbol 51 MovieClip Frame 1
function init(aid, atime) { id = aid; time = atime; trace(" volani init" + _rotation); if (_rotation == 0) { resources[3] = 0; resources[0] = 3; } if (_rotation == 90) { resources[0] = 1; resources[1] = 0; } if (_rotation == 180) { resources[1] = 2; resources[2] = 1; } if (_rotation == -90) { resources[3] = 2; resources[2] = 3; } } function waterIn(afrom) { trace(((((((" waterIn " + afrom) + " MY ID ") + id) + "my rotation ") + _rotation) + "yv") + zv); from = afrom; trace(((" waterIn " + afrom) + " resource[from] ") + resource[from]); if (resources[from] != -1) { to = resources[from]; if (((((_rotation == 0) && (from == 3)) || ((_rotation == 90) && (from == 0))) || ((_rotation == 180) && (from == 1))) || ((_rotation == -90) && (from == 2))) { trace("ZV"); gotoAndPlay (11); } else { trace("VZ"); gotoAndPlay (21); } } else { trace("CRASH"); _parent.crash(); } } function hide() { gotoAndPlay (31); } if (!initialized) { initialized = true; var id; var time; var directions; var resources = new Array(); var outflow = new Array(); var steps = 10; var counter = 1; var from; var to; resources[0] = -1; resources[1] = -1; resources[2] = -1; resources[3] = -1; } stop();
Symbol 51 MovieClip Frame 20
_parent.waterOut(id, resources[from]); stop();
Symbol 51 MovieClip Frame 30
_parent.waterOut(id, resources[from]); stop();
Symbol 51 MovieClip Frame 35
removeMovieClip(this);
Symbol 54 MovieClip Frame 1
function init(aid, atime) { trace(" START volani init"); id = aid; time = atime; if (_rotation == 0) { out = 1; } if (_rotation == 90) { out = 2; } if (_rotation == 180) { out = 3; } if (_rotation == -90) { out = 0; } } function startWater(afrom) { gotoAndPlay (11); } if (!initialized) { initialized = true; var id; var time; var out; } stop();
Symbol 54 MovieClip Frame 20
_parent.waterOut(id, out); trace((("out " + out) + " id ") + id); stop();
Symbol 57 MovieClip Frame 1
function init(aid, atime) { trace(" FINISH volani init"); id = aid; time = atime; if (_rotation == 0) { wIn = 1; } if (_rotation == 90) { wIn = 2; } if (_rotation == 180) { wIn = 3; } if (_rotation == -90) { wIn = 0; } } function waterIn(afrom) { trace(((" FINISH waterIn " + afrom) + " wIn ") + wIn); if (afrom == wIn) { gotoAndPlay (11); } else { _parent.crash(); } } if (!initialized) { initialized = true; var id; var time; var wIn; } stop();
Symbol 57 MovieClip Frame 20
_parent.success(id); trace("SUCC "); stop();
Symbol 62 MovieClip Frame 1
function success() { gotoAndPlay (3); } function hide() { gotoAndStop (2); } stop();
Symbol 62 MovieClip Frame 15
stop();
Symbol 67 Button
on (release) { rotateNext("CW"); } on (keyPress "<Space>") { rotateNext("CW"); } on (keyPress "<Enter>") { destroyCurrent(); }
Symbol 78 MovieClip Frame 1
isides._visible = false; function init(aid, atime) { id = aid; time = atime; trace(" volani init" + _rotation); resources[0] = 2; resources[1] = 3; resources[2] = 0; resources[3] = 1; _rotation = 0; } function waterIn(afrom) { trace(((((((" waterIn " + afrom) + " MY ID ") + id) + "my rotation ") + _rotation) + "yv") + zv); from = afrom; trace(((" waterIn " + afrom) + " resource[from] ") + resource[from]); if (oneTimes) { isides._visible = true; if ((from == 1) || (from == 3)) { isides._rotation = 90; } else { isides._rotation = 0; } } oneTimes = true; if (resources[from] != -1) { to = resources[from]; if (from == 1) { trace("VZ"); gotoAndPlay (21); } else if (from == 2) { trace("JS"); gotoAndPlay (31); } else if (from == 3) { trace("ZV"); gotoAndPlay (11); } else if (from == 0) { trace("SJ"); gotoAndPlay (41); } } else { trace("CRASH"); _parent.crash(); } } function hide() { gotoAndPlay (51); } if (!initialized) { initialized = true; var id; var time; var directions; var resources = new Array(); var outflow = new Array(); var steps = 10; var counter = 1; var from; var to; var oneTimes = false; resources[0] = -1; resources[1] = -1; resources[2] = -1; resources[3] = -1; } stop();
Symbol 78 MovieClip Frame 20
_parent.waterOut(id, resources[from]); stop();
Symbol 78 MovieClip Frame 30
_parent.waterOut(id, resources[from]); stop();
Symbol 78 MovieClip Frame 40
_parent.waterOut(id, resources[from]); stop();
Symbol 78 MovieClip Frame 50
_parent.waterOut(id, resources[from]); stop();
Symbol 78 MovieClip Frame 55
removeMovieClip(this);
Symbol 82 Button
on (release) { _root.odesl = 0; _parent.newGame(); gotoAndStop (2); }
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
stop();
Symbol 94 MovieClip Frame 1
function crash() { gotoAndPlay (3); } function hide() { gotoAndStop (2); } stop();
Symbol 94 MovieClip Frame 15
_root.txtScore = _root.txtScore - 30; if (_root.txtScore < 0) { _root.txtScore = 0; } stop();

Library Items

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

Instance Names

"itimer"Frame 3Symbol 32 MovieClip
"iBoard"Frame 3Symbol 34 MovieClip
"zv"Frame 3Symbol 40 MovieClip
"zs"Frame 3Symbol 51 MovieClip
"start"Frame 3Symbol 54 MovieClip
"finish"Frame 3Symbol 57 MovieClip
"isuccess"Frame 3Symbol 62 MovieClip
"zvjs"Frame 3Symbol 78 MovieClip
"imovie_new"Frame 3Symbol 84 MovieClip
"icrash"Frame 3Symbol 94 MovieClip
"iprechod"Symbol 32 MovieClip Frame 1Symbol 29 MovieClip
"iover2"Symbol 32 MovieClip Frame 1Symbol 31 MovieClip
"zvback"Symbol 40 MovieClip Frame 1Symbol 36 MovieClip
"water"Symbol 40 MovieClip Frame 2Symbol 37 MovieClip
"zvback"Symbol 40 MovieClip Frame 31Symbol 36 MovieClip
"isides"Symbol 78 MovieClip Frame 1Symbol 73 MovieClip
"water"Symbol 78 MovieClip Frame 2Symbol 37 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""

Labels

"while"Symbol 32 MovieClip Frame 2
"loop"Symbol 32 MovieClip Frame 3
"stop"Symbol 32 MovieClip Frame 9
"zv"Symbol 40 MovieClip Frame 11
"vz"Symbol 40 MovieClip Frame 21
"hide"Symbol 40 MovieClip Frame 31
"zv"Symbol 51 MovieClip Frame 11
"vz"Symbol 51 MovieClip Frame 21
"hide"Symbol 51 MovieClip Frame 31
"start"Symbol 54 MovieClip Frame 11
"start"Symbol 57 MovieClip Frame 11
"zv"Symbol 78 MovieClip Frame 11
"vz"Symbol 78 MovieClip Frame 21
"js"Symbol 78 MovieClip Frame 31
"sj"Symbol 78 MovieClip Frame 41
"hide"Symbol 78 MovieClip Frame 51

Dynamic Text Variables

txtLevelSymbol 70 EditableText"0"
_root.itimer.casSymbol 85 EditableText"0"
txtScoreSymbol 88 EditableText"0"




http://swfchan.com/5/23564/info.shtml
Created: 26/5 -2019 03:32:50 Last modified: 26/5 -2019 03:32:50 Server time: 14/11 -2024 06:36:19