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>

The New Sissy Bunny Ninety-Nine (Puzzle Game) by cgaegavga99.swf

This is the info page for
Flash #164540

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { var myMenu_cm = new ContextMenu(); myMenu_cm.builtInItems.play = false; myMenu_cm.builtInItems.loop = false; myMenu_cm.builtInItems.rewind = false; myMenu_cm.builtInItems.forward_back = false; _root.menu = myMenu_cm; var vCaption = 'Write your own caption here\n(Click door handle to help)'; var vLevel; var vPhase; var vPaused = false; stop(); _root.onEnterFrame = function () { var v3 = Math.ceil((this.getBytesLoaded() / this.getBytesTotal()) * 100); _root.loadingbar._xscale = v3; if (this.getBytesLoaded() == this.getBytesTotal()) { delete this.onEnterFrame; this.gotoAndStop(2); } }; } // unknown tag 88 length 148 movieClip 5 { } // unknown tag 88 length 139 // unknown tag 88 length 135 button 19 { on (release) { nextFrame(); } } frame 3 { btnEasy.onRelease = function () { vLevel = 1; gotoAndStop(4); }; btnHard.onRelease = function () { vLevel = 2; gotoAndStop(4); }; } frame 4 { function addComma(str) { str = new String(str); var v7 = str.length; if (v7 < 4) { return str; } else { var v4 = int((v7 - 1) / 3); var v6 = v7 - v4 * 3; var v5 = str.slice(0, v6); var v1 = 0; while (v1 < v4) { var v2 = v6 + v1 * 3; v5 += ',' + str.slice(v2, v2 + 3); ++v1; } return v5; } } var timLst = [0, 0, 0]; var vFirstPrice; var vCurrentPrice; } frame 4 { txtRound.text = '1'; txtLost.text = '0'; nextFrame(); } frame 4 { function getRandomLst(pLst, pLen) { var v5 = []; var v2 = 0; while (v2 < pLen) { var v1 = random(pLst.length); var v4 = pLst[v1]; v5.push(v4); pLst.splice(v1, 1); ++v2; } return v5; } } // unknown tag 88 length 136 // unknown tag 88 length 147 frame 5 { gotoAndStop(Number(txtRound.text) + 2); } movieClip 50 { frame 1 { stop(); } } frame 6 { btnGo1.onRelease = function () { txtRound.text = '1'; gotoAndStop(14); }; } frame 7 { btnGo2.onRelease = function () { txtRound.text = '2'; gotoAndStop(14); }; } frame 8 { btnGo3.onRelease = function () { txtRound.text = '3'; gotoAndStop(14); }; } frame 14 { function NextButton(gFlag) { mvComplete.gotoAndStop(1); if (gFlag == 'next') { if (Number(txtRound.text) >= 3) { gotoAndStop(28); } else { gotoAndPlay(22); } } else { if (gFlag == 'retry') { gotoAndStop(5); } else { if (gFlag == 'title') { gotoAndStop(2); } else { if (gFlag == 'pause') { vPause = true; mvTimer.stop(); } else { if (gFlag == 'resume') { vPause = false; mvTimer.play(); } } } } } } } frame 14 { function restartGame() { clickedCardLst = []; score = 0; var v2 = 1; while (v2 <= totalCard) { var v3 = _root['mcCard_' + v2]; v3.gotoAndStop(1); ++v2; } if (vPhase == 1) { var v5 = [2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10]; } else { if (vPhase == 2) { var v5 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]; } else { if (vPhase == 3) { var v5 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]; } else { if (vPhase == 4) { var v5 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27]; } } } } cardLst = getRandomLst(v5, totalCard); v2 = 1; while (v2 <= totalCard) { v3 = _root['mcCard_' + v2]; var v4 = cardLst[v2 - 1]; v3.num = v4; v3.canClick = true; giveHandlerToCard(v3); ++v2; } vPause = false; } function giveHandlerToCard(pCard) { pCard.onRelease = function () { _root.clickCard(this); }; pCard.onEnterFrame = function () { if (this.canRotate) { if (this.rotateMode == 'smaller') { this._xscale -= 25; if (this._xscale < 25) { this.rotateMode = 'larger'; if (this.dir == 'front') { this.gotoAndStop(10 + this.num); } else { this.gotoAndStop(1); } } } else { this._xscale += 25; if (this._xscale > 50) { this._xscale = 100; this.canRotate = false; } } } }; } function clickCard(pMC) { if (pMC.canClick && clickedCardLst.length < 2 && txtTime.text != '0' && !vPause) { pMC.canRotate = true; pMC.rotateMode = 'smaller'; pMC.dir = 'front'; pMC.canClick = false; clickedCardLst.push(pMC); if (clickedCardLst.length == 2) { _root.mvTimer.stop(); checkSame(); } } } function checkSame() { var v2 = clickedCardLst[0]; var v1 = clickedCardLst[1]; if (v2.num == v1.num) { score += 1; intervalObj = setInterval(playAgain, showTime, 'correct'); } else { intervalObj = setInterval(playAgain, showTime, 'wrong'); } } function playAgain(pMode) { clearInterval(intervalObj); if (pMode == 'wrong') { var v3 = clickedCardLst[0]; var v2 = clickedCardLst[1]; v3.canRotate = true; v3.rotateMode = 'smaller'; v3.dir = 'back'; v2.canRotate = true; v2.rotateMode = 'smaller'; v2.dir = 'back'; v3.canClick = true; v2.canClick = true; if (!vPause) { _root.mvTimer.play(); } } else { var v3 = clickedCardLst[0]; var v2 = clickedCardLst[1]; v3.gotoAndStop(10); v2.gotoAndStop(10); if (score >= totalCard / 2) { _root.mvComplete.gotoAndStop(2); timLst[Number(txtRound.text) - 1] = Number(txtTime.text); if (Number(txtRound.text) == 1) { txtBonustime_1.text = timLst[0]; } else { if (Number(txtRound.text) == 2) { txtBonustime_2.text = timLst[1]; } else { if (Number(txtRound.text) >= 3) { txtBonustime_3.text = timLst[2]; _root.mv99State.gotoAndStop(Number(txtRound.text) + 1); } } } } else { if (!vPause) { _root.mvTimer.play(); } } } clickedCardLst = []; } function playSnd(pSnd) { var v1 = new Sound(); v1.attachSound('snd_' + pSnd); v1.start(0, 1); } vPhase = Number(txtRound.text); if (vLevel >= 2) { vPhase += 1; } if (vPhase == 1) { totalCard = 18; } else { if (vPhase == 2) { totalCard = 28; } else { if (vPhase == 3) { totalCard = 40; } else { if (vPhase == 4) { totalCard = 54; } } } } showTime = 1000; btnRestart.onPress = function () { restartGame(); }; restartGame(); txtTime.text = Number(txtRound.text) * 60 + vLevel * 30; gotoAndStop(11 + vPhase); } // unknown tag 88 length 114 // unknown tag 88 length 116 movieClip 92 { } movieClip 109 { frame 1 { btnPause.onRelease = function () { _root.NextButton('pause'); gotoAndStop(5); }; stop(); } frame 2 { btnNext.onRelease = function () { _root.NextButton('next'); }; } frame 3 { btnToTitle.onRelease = function () { _root.NextButton('title'); }; btnRetry.onRelease = function () { _root.NextButton('retry'); }; } frame 4 { btnToTitle.onRelease = function () { _root.NextButton('title'); }; } frame 5 { btnToTitle.onRelease = function () { _root.NextButton('title'); }; btnResume.onRelease = function () { _root.NextButton('resume'); gotoAndStop(1); }; } } movieClip 111 { frame 60 { _root.txtTime.text -= 1; if (_root.txtTime.text == '0') { stop(); _root.txtLost.text = Number(_root.txtLost.text) + 1; if (Number(_root.txtLost.text) >= 3) { _root.mvComplete.gotoAndStop(4); } else { _root.mvComplete.gotoAndStop(3); } } } } movieClip 114 { frame 1 { stop(); } frame 21 { function changedress(dCode) { clearInterval(intervalObjj); _root.mv99State.gotoAndStop(dCode); play(); } stop(); intervalObjj = setInterval(changedress, 1000, Number(_root.txtRound.text) + 1); } frame 42 { _root.nextFrame(); } } frame 23 { stop(); _root.mvCurtain.play(); } frame 24 { txtRound.text = Number(txtRound.text) + 1; gotoAndStop(5); } frame 28 { var vBasicPrice = vLevel * 5000; var vBonusSum = timLst[0] * 10 + timLst[1] * 20 + timLst[2] * 30; var vBonusPerf; if (Number(txtLost.text) == 1) { vBonusPerf = Math.floor(vBonusSum / 20) * 10; } else { if (Number(txtLost.text) == 2) { vBonusPerf = 0; } else { vBonusPerf = vBonusSum; } } vFirstPrice = vBonusSum + vBonusPerf + vBasicPrice; vCurrentPrice = vFirstPrice; txtBonus1st.text = '$ ' + addComma(timLst[0] * 10); txtBonus2nd.text = '$ ' + addComma(timLst[1] * 20); txtBonus3rd.text = '$ ' + addComma(timLst[2] * 30); txtBonusTotal.text = '$ ' + addComma(vBonusSum); txtBonusPerfect.text = '$ ' + addComma(vBonusPerf); txtBasicPrice.text = '$ ' + addComma(vBasicPrice); txtTotalPrice.text = '$ ' + addComma(vFirstPrice); } // unknown tag 88 length 39 button 138 { on (release) { gotoAndStop(29); } } frame 29 { function NextButton(gFlag) { mvComplete.gotoAndStop(1); if (gFlag == 'next') { gotoAndStop(31); } else { if (gFlag == 'pause') { vPause = true; mvTimer.stop(); } else { if (gFlag == 'resume') { vPause = false; mvTimer.play(); } } } } var vRatio = 1; } frame 29 { btnGoF.onRelease = function () { txtTime.text = '60'; mv99Auc.gotoAndStop(1); gotoAndStop(30); }; txtStartBid.text = '$ ' + addComma(vFirstPrice); txtCurrentBid.text = '$ ' + addComma(vCurrentPrice); vPause = false; _root.mv99Auc.gotoAndStop(2); } movieClip 141 { } movieClip 146 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } frame 30 { function restartGame() { clickedCardLst = []; score = 0; var v2 = 1; while (v2 <= totalCard) { var v3 = _root['mcCard_' + v2]; v3.gotoAndStop(1); ++v2; } var v5 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9]; cardLst = getRandomLst(v5, totalCard); v2 = 1; while (v2 <= totalCard) { v3 = _root['mcCard_' + v2]; var v4 = cardLst[v2 - 1]; v3.num = v4; v3.canClick = true; giveHandlerToCard(v3); ++v2; } } function giveHandlerToCard(pCard) { pCard.onRelease = function () { _root.clickCard(this); }; pCard.onEnterFrame = function () { if (this.canRotate) { if (this.rotateMode == 'smaller') { this._xscale -= 25; if (this._xscale < 25) { this.rotateMode = 'larger'; if (this.dir == 'front') { this.gotoAndStop(11 + this.num); } else { this.gotoAndStop(1); } } } else { this._xscale += 25; if (this._xscale > 50) { this._xscale = 100; this.canRotate = false; } } } }; } function clickCard(pMC) { if (pMC.canClick && clickedCardLst.length < 2 && txtTime.text != '0' && !vPause) { pMC.canRotate = true; pMC.rotateMode = 'smaller'; pMC.dir = 'front'; pMC.canClick = false; clickedCardLst.push(pMC); if (clickedCardLst.length == 2) { _root.mvTimer.stop(); checkSame(); } } } function checkSame() { var v2 = clickedCardLst[0]; var v1 = clickedCardLst[1]; if (v2.num == v1.num) { score += 1; intervalObj = setInterval(playAgain, showTime, 'correct'); } else { intervalObj = setInterval(playAgain, showTime, 'wrong'); } } function playAgain(pMode) { clearInterval(intervalObj); if (pMode == 'wrong') { var v3 = clickedCardLst[0]; var v2 = clickedCardLst[1]; v3.canRotate = true; v3.rotateMode = 'smaller'; v3.dir = 'back'; v2.canRotate = true; v2.rotateMode = 'smaller'; v2.dir = 'back'; v3.canClick = true; v2.canClick = true; if (!vPause) { _root.mvTimer.play(); } } else { var v3 = clickedCardLst[0]; var v2 = clickedCardLst[1]; v3.gotoAndStop(10); v2.gotoAndStop(10); vCurrentPrice += Number(txtTime.text) * 10 * vRatio; if (score >= totalCard / 2) { vRatio += 1; txtTime.text = Number(txtTime.text) + 10; restartGame(); } if (!vPause) { _root.mvTimer.play(); } txtCurrentBid.text = '$ ' + addComma(vCurrentPrice); } clickedCardLst = []; } function playSnd(pSnd) { var v1 = new Sound(); v1.attachSound('snd_' + pSnd); v1.start(0, 1); } totalCard = 18; showTime = 1000; restartGame(); } movieClip 152 { frame 60 { _root.txtTime.text -= 1; if (_root.txtTime.text == '0') { stop(); _root.txtBidStatus.textColor = 16711680; _root.txtBidStatus.text = 'SOLD!'; _root.mvComplete.gotoAndStop(2); } } } movieClip 154 { frame 1 { btnPause.onRelease = function () { _root.NextButton('pause'); gotoAndStop(3); }; stop(); } frame 2 { btnNext.onRelease = function () { _root.NextButton('next'); }; } frame 3 { btnResume.onRelease = function () { _root.NextButton('resume'); gotoAndStop(1); }; } } frame 31 { _root.mv99Fin.onRelease = function () { _root.mv99Fin.nextFrame(); }; } frame 31 { txtFinalPrice.text = '$ ' + addComma(vCurrentPrice); } movieClip 157 { } button 163 { on (release) { nextFrame(); } } button 169 { on (release) { gotoAndStop(2); } } frame 32 { txtCaption.text = vCaption; } button 177 { on (release) { mvDoorMenu.nextFrame(); } } movieClip 182 { frame 1 { stop(); } frame 2 { btnGoBack.onRelease = function () { _root.vCaption = _root.txtCaption.text; _root.prevFrame(); }; } frame 3 { gotoAndStop(1); } }




http://swfchan.com/33/164540/info.shtml
Created: 19/10 -2018 06:28:57 Last modified: 19/10 -2018 06:28:57 Server time: 22/12 -2024 19:21:16