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

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

Jenga.swf

This is the info page for
Flash #13357

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


Text
X

ActionScript [AS1/AS2]

Frame 1
stop();
Instance of Symbol 8 MovieClip "mcPreloader" in Frame 1
onClipEvent (load) { loadInterval = setInterval(function () { nBytesLoaded = _root.getBytesLoaded(); nBytesTotal = _root.getBytesTotal(); if ((nBytesLoaded == nBytesTotal) && (nBytesTotal > 5000)) { _visible = false; _parent.gotoAndPlay("start"); clearInterval(loadInterval); } }, 100); }
Instance of Symbol 25 MovieClip "mcStack" in Frame 2
onClipEvent (load) { function startGame() { fCrash = false; nCurRow = 1; nCurCol = 1; nCurPiece = 1; sCurPiece = "left"; nDepth = 100; nStackHeight = 0; fFullRow = true; nCurSway = 1; aPieces = new Array(); aRow1 = new Array(); _parent.mcBlocker._visible = true; buildInterval = setInterval(function () { _parent.mcStack.mcPiece.duplicateMovieClip("mcPiece" + nDepth, nDepth); _parent.mcStack["mcPiece" + nDepth].nRow = nCurRow; _parent.mcStack["mcPiece" + nDepth].nCol = nCurCol; _parent.mcStack["mcPiece" + nDepth].nOriginDepth = nDepth; _parent.mcStack["mcPiece" + nDepth].fSelect = false; _parent.mcStack["mcPiece" + nDepth].onRelease = chooseBlock; _parent.mcStack["aRow" + nCurRow][nCurCol - 1] = 1; if (sCurPiece == "left") { _parent.mcStack["mcPiece" + nDepth]._x = qStartLeftX - ((nCurCol - 1) * qLeftDX); _parent.mcStack["mcPiece" + nDepth]._y = (qStartLeftY - ((nCurCol - 1) * qLeftDY)) - ((nCurRow - 1) * qHeight); } else { _parent.mcStack["mcPiece" + nDepth].gotoAndStop(2); _parent.mcStack["mcPiece" + nDepth]._x = qStartRightX - ((nCurCol - 1) * qRightDX); _parent.mcStack["mcPiece" + nDepth]._y = (qStartRightY - ((nCurCol - 1) * qRightDY)) - ((nCurRow - 1) * qHeight); } _parent.mcStack["mcPiece" + nDepth].sDir = sCurPiece; _parent.mcStack["mcPiece" + nDepth].nOriginX = _parent.mcStack["mcPiece" + nDepth]._x; _parent.mcStack["mcPiece" + nDepth].nOriginY = _parent.mcStack["mcPiece" + nDepth]._y; _parent.mcStack["mcPiece" + nDepth].mcHighLight._visible = false; sndClunk.start(); nCurCol++; nDepth++; if (nCurCol > qCols) { nCurCol = 1; _parent.mcStack.aPieces[nCurRow - 1] = _parent.mcStack["aRow" + nCurRow]; nCurRow++; _parent.mcStack["aRow" + nCurRow] = new Array(); nStackHeight = nStackHeight + qHeight; if (sCurPiece == "left") { sCurPiece = "right"; } else { sCurPiece = "left"; } } if (nCurRow > qRows) { _parent.mcBlocker._visible = false; aPieces[nCurRow - 1] = new Array(); clearInterval(buildInterval); } }, qBuildSpeed); } function resetGame() { fCrash = false; nDepth = 100; cPiece = 0; while (cPiece < qTotalPieces) { this["mcPiece" + (nDepth + cPiece)].removeMovieClip(); cPiece++; } _parent.mcNav.resetNav(); _parent.gotoAndStop("gamePlay"); } function chooseBlock() { if (!fSelect) { if (checkGrab(this)) { if (sCurPiece == "left") { this.gotoAndStop(1); } else { this.gotoAndStop(2); } sndSlide.start(); fSelect = true; this.startDrag(true); this.swapDepths(qDragDepth); this.mcHighLight._visible = true; this.mcHighLight.gotoAndStop(sCurPiece + "Red"); checkDropArea(this); } } else { fSelect = false; setBlock(this); } } function checkDropArea(mcPiece) { checkDropAreaInterval = setInterval(function () { if (checkBounds(mcPiece)) { nPieceCol = getPieceCol(mcPiece); if (!aPieces[nCurRow - 1][nPieceCol - 1]) { mcPiece.mcHightLight._visible = true; mcPiece.mcHighLight.gotoAndStop(sCurPiece + "Green"); } else { mcPiece.mcHightLight._visible = true; mcPiece.mcHighLight.gotoAndStop(sCurPiece + "Red"); } } else { mcPiece.mcHightLight._visible = true; mcPiece.mcHighLight.gotoAndStop(sCurPiece + "Red"); } }, 50); } function setBlock(mcPiece) { mcPiece.stopDrag(); mcPiece.mcHighLight._visible = false; clearInterval(checkDropAreaInterval); if (checkBounds(mcPiece)) { nPieceCol = getPieceCol(mcPiece); if (!aPieces[nCurRow - 1][nPieceCol - 1]) { mcPiece.swapDepths(nDepth + nPieceCol); if (sCurPiece == "left") { mcPiece._x = qStartLeftX - ((nPieceCol - 1) * qLeftDX); mcPiece._y = (qStartLeftY - ((nPieceCol - 1) * qLeftDY)) - ((nCurRow - 1) * qHeight); } else { mcPiece._x = qStartRightX - ((nPieceCol - 1) * qRightDX); mcPiece._y = (qStartRightY - ((nPieceCol - 1) * qRightDY)) - ((nCurRow - 1) * qHeight); } sndClunk.start(); mcPiece.nOriginX = mcPiece._x; mcPiece.nOriginY = mcPiece._y; mcPiece.nOriginDepth = mcPiece.getDepth(); aPieces[mcPiece.nRow - 1][mcPiece.nCol - 1] = 0; aPieces[nCurRow - 1][nPieceCol - 1] = 1; mcPiece.nRow = nCurRow; mcPiece.nCol = nPieceCol; mcPiece.sDir = sCurPiece; fFullRow = false; nCurCol++; if (nCurCol > qCols) { nCurRow++; fFullRow = true; aPieces[nCurRow - 1] = new Array(); nDepth = nDepth + (qCols + 1); nCurCol = 1; checkSway(); if (sCurPiece == "left") { sCurPiece = "right"; } else { sCurPiece = "left"; } } } else { resetPiece(mcPiece); } } else { resetPiece(mcPiece); } } function resetPiece(mcPiece) { if (mcPiece.sDir == "left") { mcPiece.gotoAndStop(1); } else { mcPiece.gotoAndStop(2); } mcPiece._x = mcPiece.nOriginX; mcPiece._y = mcPiece.nOriginY; mcPiece.swapDepths(mcPiece.nOriginDepth); sndSlide.start(); } function getPieceCol(mcPiece) { if (sCurPiece == "left") { if (mcPiece._x <= qSpan) { return(3); } if (mcPiece._x <= (qSpan * 2)) { return(2); } return(1); } if (mcPiece._x >= (-qSpan)) { return(3); } if (mcPiece._x >= ((-qSpan) * 2)) { return(2); } return(1); } function checkGrab(mcPiece) { if (fFullRow) { if (mcPiece.nRow < (nCurRow - 1)) { checkCollapse(mcPiece); return(true); } return(false); } if (mcPiece.nRow < nCurRow) { checkCollapse(mcPiece); return(true); } return(false); } function checkSway() { if ((nCurRow >= qStartSway) && (nCurRow < qMaxRows)) { nOdds = Math.floor(Math.random() * qSwayOdds) + 1; if (nOdds == Math.round(qSwayOdds / 2)) { if (nCurSway <= qSways) { _parent.gotoAndPlay("sway" + nCurSway); nCurSway++; } else { fCrash = true; _parent.gotoAndPlay("collapse"); } } } else if (nCurRow == qMaxRows) { fCrash = true; _parent.gotoAndPlay("collapse"); } } function checkCollapse(mcPiece) { nRow = mcPiece.nRow; nCol = mcPiece.nCol; switch (nCol) { case 1 : if (!aPieces[nRow - 1][1]) { fCrash = true; _parent.gotoAndPlay("collapse"); } return; case 2 : if ((!aPieces[nRow - 1][0]) || (!aPieces[nRow - 1][2])) { fCrash = true; _parent.gotoAndPlay("collapse"); } return; case 3 : if (!aPieces[nRow - 1][1]) { fCrash = true; _parent.gotoAndPlay("collapse"); } return; } } function checkBounds(mcPiece) { if (((mcPiece._x >= qMinX) && (mcPiece._x <= qMaxX)) && (mcPiece._y <= (-nStackHeight))) { return(true); } return(false); } function printArray() { cRow = aPieces.length - 1; while (cRow >= 0) { _parent.output = _parent.output + (("ROW " + (cRow + 1)) + ": "); cCol = 0; while (cCol < 3) { _parent.output = _parent.output + (aPieces[cRow][cCol] + " "); cCol++; } _parent.output = _parent.output + newline; cRow--; } } qRows = 15; qMaxRows = 27; qStartSway = 18; qSways = 3; qSwayOdds = 2; qCols = 3; qTotalPieces = qRows * qCols; qBuildSpeed = 20; qRightDX = -24.7; qRightDY = -12.3; qLeftDX = 24.4; qLeftDY = -12.3; qHeight = 16.6; qStartLeftX = qLeftDX * (qCols - 1); qStartLeftY = qLeftDY * (qCols - 1); qStartRightX = qRightDX * (qCols - 1); qStartRightY = qRightDY * (qCols - 1); qDragDepth = 1000; qMinX = -100; qMaxX = 100; qSpan = 24.5; fCrash = false; sndSlide = new Sound(this); sndSlide.attachSound("slide"); sndSlide.setVolume(50); sndClunk = new Sound(this); sndClunk.attachSound("clunk"); }
Instance of Symbol 78 MovieClip "mcFeatures" in Frame 2
onClipEvent (load) { _visible = false; }
Instance of Symbol 99 MovieClip "mcNav" in Frame 2
onClipEvent (load) { function showNav() { this.gotoAndPlay("start"); } function crash() { this._x = qCrashX; this._y = qCrashY; this.mcCrash.gotoAndPlay("start"); } function resetNav() { this.mcCrash.gotoAndStop(1); this._x = qOriginX; this._y = qOriginY; } qOriginX = this._x; qOriginY = this._y; qCrashX = 256; qCrashY = 241; }
Frame 5
mcIntro.gotoAndPlay("start");
Frame 8
stop();
Frame 18
mcBlocker._visible = true; stopDrag();
Frame 32
mcDust.gotoAndPlay("start");
Frame 57
mcNav.crash(); mcBlocker._visible = false; stop();
Frame 59
mcBlocker._visible = true; trace("SWAY1");
Frame 79
mcBlocker._visible = false; gotoAndStop (8);
Frame 83
mcBlocker._visible = true; trace("SWAY2");
Frame 115
mcBlocker._visible = false; gotoAndStop (8);
Frame 119
mcBlocker._visible = true; trace("SWAY3");
Frame 159
mcBlocker._visible = false; gotoAndStop (8);
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 7
stop();
Symbol 21 MovieClip Frame 14
stop();
Symbol 21 MovieClip Frame 21
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 33
gotoAndStop (1);
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 16
stop();
Symbol 71 Button
on (release) { getURL ("javascript:close()"); }
Symbol 77 Button
on (release) { _visible = false; if (_parent.mcStack.fCrash) { _parent.mcStack.resetGame(); _parent.mcStack.startGame(); _parent.mcFeatures._visible = false; } }
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 16
stop();
Symbol 90 Button
on (release) { resetNav(); _parent.mcFeatures._visible = true; }
Symbol 94 Button
on (release) { _parent.mcStack.resetGame(); _parent.mcStack.startGame(); _parent.mcFeatures._visible = false; }
Symbol 98 Button
on (release) { if (_parent.mcFeatures._visible) { _parent.mcFeatures._visible = false; if (_parent.mcStack.fCrash) { _parent.mcStack.resetGame(); _parent.mcStack.startGame(); } } else { getURL ("javascript:close()"); } }
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 20
stop();
Symbol 110 Button
on (release) { _parent.mcNav.showNav(); _parent.mcStack.startGame(); this.gotoAndStop(1); }
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 3
Symbol 111 MovieClip Frame 111
stop();

Library Items

Symbol 1 Sound [slide]
Symbol 2 Sound [clunk]
Symbol 3 GraphicUsed by:8
Symbol 4 GraphicUsed by:8
Symbol 5 GraphicUsed by:8
Symbol 6 GraphicUsed by:8
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:3 4 5 6 7Used by:Timeline
Symbol 9 GraphicUsed by:72  Timeline
Symbol 10 GraphicUsed by:72  Timeline
Symbol 11 GraphicUsed by:72  Timeline
Symbol 12 GraphicUsed by:Timeline
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:13Used by:Timeline
Symbol 15 GraphicUsed by:24
Symbol 16 GraphicUsed by:24
Symbol 17 GraphicUsed by:21
Symbol 18 GraphicUsed by:21
Symbol 19 GraphicUsed by:21
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClipUses:17 18 19 20Used by:24
Symbol 22 GraphicUsed by:24
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:15 16 21 22 23Used by:25
Symbol 25 MovieClipUses:24Used by:Timeline
Symbol 26 SoundUsed by:64 111
Symbol 27 GraphicUsed by:64
Symbol 28 GraphicUsed by:64
Symbol 29 SoundUsed by:64
Symbol 30 GraphicUsed by:64
Symbol 31 GraphicUsed by:64
Symbol 32 GraphicUsed by:64
Symbol 33 GraphicUsed by:64
Symbol 34 GraphicUsed by:64
Symbol 35 GraphicUsed by:64
Symbol 36 GraphicUsed by:64
Symbol 37 GraphicUsed by:64
Symbol 38 GraphicUsed by:64
Symbol 39 GraphicUsed by:64
Symbol 40 GraphicUsed by:64
Symbol 41 GraphicUsed by:64
Symbol 42 GraphicUsed by:64
Symbol 43 GraphicUsed by:64
Symbol 44 GraphicUsed by:64
Symbol 45 GraphicUsed by:64
Symbol 46 GraphicUsed by:64
Symbol 47 GraphicUsed by:64
Symbol 48 GraphicUsed by:64
Symbol 49 GraphicUsed by:64
Symbol 50 GraphicUsed by:64
Symbol 51 GraphicUsed by:64
Symbol 52 GraphicUsed by:64
Symbol 53 GraphicUsed by:64
Symbol 54 GraphicUsed by:64
Symbol 55 GraphicUsed by:64
Symbol 56 GraphicUsed by:64
Symbol 57 GraphicUsed by:64
Symbol 58 GraphicUsed by:64
Symbol 59 GraphicUsed by:64
Symbol 60 GraphicUsed by:64
Symbol 61 GraphicUsed by:64
Symbol 62 GraphicUsed by:64
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClipUses:26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63Used by:Timeline
Symbol 65 GraphicUsed by:66 79
Symbol 66 MovieClipUses:65Used by:Timeline
Symbol 67 GraphicUsed by:71 77
Symbol 68 FontUsed by:69
Symbol 69 TextUses:68Used by:71 77
Symbol 70 GraphicUsed by:71 77
Symbol 71 ButtonUses:67 69 70Used by:Timeline
Symbol 72 ButtonUses:9 10 11Used by:78
Symbol 73 GraphicUsed by:78
Symbol 74 GraphicUsed by:78
Symbol 75 GraphicUsed by:78
Symbol 76 GraphicUsed by:78
Symbol 77 ButtonUses:67 69 70Used by:78
Symbol 78 MovieClipUses:72 73 74 75 76 77Used by:Timeline
Symbol 79 MovieClipUses:65Used by:99
Symbol 80 GraphicUsed by:99
Symbol 81 GraphicUsed by:99
Symbol 82 GraphicUsed by:86
Symbol 83 GraphicUsed by:86
Symbol 84 GraphicUsed by:86
Symbol 85 GraphicUsed by:86 90 94 98 100
Symbol 86 ButtonUses:82 83 84 85Used by:99
Symbol 87 GraphicUsed by:90
Symbol 88 GraphicUsed by:90
Symbol 89 GraphicUsed by:90
Symbol 90 ButtonUses:87 88 89 85Used by:99
Symbol 91 GraphicUsed by:94
Symbol 92 GraphicUsed by:94
Symbol 93 GraphicUsed by:94
Symbol 94 ButtonUses:91 92 93 85Used by:99
Symbol 95 GraphicUsed by:98
Symbol 96 GraphicUsed by:98
Symbol 97 GraphicUsed by:98
Symbol 98 ButtonUses:95 96 97 85Used by:99
Symbol 99 MovieClipUses:79 80 81 86 90 94 98Used by:Timeline
Symbol 100 ButtonUses:85Used by:101
Symbol 101 MovieClipUses:100Used by:Timeline
Symbol 102 GraphicUsed by:111
Symbol 103 GraphicUsed by:111
Symbol 104 GraphicUsed by:111
Symbol 105 GraphicUsed by:111
Symbol 106 GraphicUsed by:111
Symbol 107 GraphicUsed by:111
Symbol 108 GraphicUsed by:110 111
Symbol 109 GraphicUsed by:110 111
Symbol 110 ButtonUses:108 109Used by:111
Symbol 111 MovieClipUses:102 103 104 105 26 106 107 108 109 110Used by:Timeline
Symbol 112 SoundUsed by:Timeline
Symbol 113 SoundUsed by:Timeline

Instance Names

"mcPreloader"Frame 1Symbol 8 MovieClip
"mcStack"Frame 2Symbol 25 MovieClip
"mcDust"Frame 2Symbol 64 MovieClip
"mcGameOver"Frame 2Symbol 66 MovieClip
"mcFeatures"Frame 2Symbol 78 MovieClip
"mcNav"Frame 2Symbol 99 MovieClip
"mcBlocker"Frame 2Symbol 101 MovieClip
"mcIntro"Frame 2Symbol 111 MovieClip
"mcHighLight"Symbol 24 MovieClip Frame 1Symbol 21 MovieClip
"mcPiece"Symbol 25 MovieClip Frame 1Symbol 24 MovieClip
"mcCrash"Symbol 99 MovieClip Frame 1Symbol 79 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "slide"
ExportAssets (56)Timeline Frame 1Symbol 2 as "clunk"

Labels

"start"Frame 2
"gameplay"Frame 8
"collapse"Frame 18
"sway1"Frame 59
"sway2"Frame 83
"sway3"Frame 119
"leftRed"Symbol 21 MovieClip Frame 1
"leftGreen"Symbol 21 MovieClip Frame 7
"rightRed"Symbol 21 MovieClip Frame 14
"rightGreen"Symbol 21 MovieClip Frame 21
"start"Symbol 64 MovieClip Frame 2
"start"Symbol 66 MovieClip Frame 2
"start"Symbol 79 MovieClip Frame 2
"start"Symbol 99 MovieClip Frame 2
"start"Symbol 111 MovieClip Frame 2




http://swfchan.com/3/13357/info.shtml
Created: 4/6 -2019 21:28:10 Last modified: 4/6 -2019 21:28:10 Server time: 03/05 -2024 10:31:43