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

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

alone-in-the-kitchen.swf

This is the info page for
Flash #123178

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { var nScores = 0; this.createEmptyMovieClip('mcSnds', 10); this.createEmptyMovieClip('mcSndLevelEnd', 82); snds = new Sound(mcSnds); sndBtnPress = new Sound(mcSnds); sndBtnPress.attachSound('BtnPress'); sndBlending = new Sound(mcSnds); sndBlending.attachSound('Blending'); sndBlending.setVolume(50); if (PlayerName == undefined) { PlayerName = ''; } if (sndMusic == undefined) { this.createEmptyMovieClip('mcMusic', 1); sndMusic = new Sound(mcMusic); sndMusic.attachSound('MenuMusic'); sndMusic.start(0, 65535); } if (sndLevelEnd == undefined) { sndLevelEnd = new Sound(mcSndLevelEnd); sndLevelEnd.attachSound('LevelEnd'); } if (sndObjectPress == undefined) { sndObjectPress = new Sound(mcSnds); sndObjectPress.attachSound('ObjectPress'); } if (sndPushToBlender == undefined) { sndPushToBlender = new Sound(mcSnds); sndPushToBlender.attachSound('PushToBlender'); } if (sndObjectRollOver == undefined) { sndObjectRollOver = new Sound(mcSnds); sndObjectRollOver.attachSound('ObjectRollOver'); } stop(); } // unknown tag 88 length 46 movieClip 13 { } movieClip 14 { frame 1 { i = 0; onEnterFrame = function () { ++i; if (i < 60) { p.duplicateMovieClip('p' + i, i); this['p' + i]._rotation = Math.random() * 360; } }; } } button 17 { on (press) { _root.sndBtnPress.start(); _root.gotoAndStop('Info'); } on (rollOver) { rol = true; play(); } on (rollOut) { rol = false; play(); } } movieClip 18 { frame 1 { stop(); } frame 10 { if (rol) { stop(); } } frame 18 { if (rol) { gotoAndPlay('Show'); } } } button 20 { on (rollOver) { rol = true; play(); } on (rollOut) { rol = false; play(); } on (press) { _root.sndBtnPress.start(); getURL('http://www.cooking-free-games.com/?from=AloneInTheKitchen', '_blank'); } } movieClip 21 { frame 1 { stop(); } frame 10 { if (rol) { stop(); } } frame 18 { if (rol) { gotoAndPlay('Show'); } } } movieClip 26 { } // unknown tag 88 length 123 button 31 { on (press) { _root.sndBtnPress.start(); _root.gotoAndStop('Game'); } on (rollOver) { rol = true; play(); } on (rollOut) { rol = false; play(); } } movieClip 32 { frame 1 { stop(); } frame 10 { if (rol) { stop(); } } frame 18 { if (rol) { gotoAndPlay('Show'); } } } movieClip 33 { frame 28 { stop(); } } frame 3 { function GameOver() { if (Engine.nGoods > 0) { nScores = Math.ceil(5000 * Engine.nGoods / Engine.Interface.TimeCook.nAl + Engine.nHints * 50); } else { nScores = 0; } gotoAndPlay('Finish'); } stop(); } movieClip 37 { } movieClip 39 { } movieClip 41 { frame 1 { stop(); } frame 10 { if (rol) { stop(); } } frame 18 { if (rol) { gotoAndPlay('Show'); } } } movieClip 46 { } movieClip 47 { frame 1 { stop(); } } movieClip 49 { } movieClip 50 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 19 { stop(); } } movieClip 53 { } movieClip 54 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 19 { stop(); } } movieClip 63 { } movieClip 66 { } movieClip 69 { } button 73 { on (rollOver) { rol = true; play(); } on (rollOut) { rol = false; play(); } on (press) { _root.sndBtnPress.start(); _parent._parent.ReturnObject(); } } movieClip 74 { frame 1 { stop(); } frame 10 { if (rol) { stop(); } } frame 18 { if (rol) { gotoAndPlay('Show'); } } } button 76 { on (press) { if (_parent.BlenderOff) { _root.sndBtnPress.start(); _parent.BlenderOn(); } } } movieClip 80 { frame 1 { _parent.BlenderOff = true; mcInside.gotoAndStop(1); mcReturn._visible = false; stop(); } } movieClip 85 { } movieClip 87 { } movieClip 89 { } movieClip 91 { } movieClip 93 { } movieClip 95 { } movieClip 97 { } movieClip 99 { } movieClip 101 { } movieClip 103 { } movieClip 105 { } movieClip 106 { frame 1 { stop(); } } movieClip 111 { } movieClip 112 { frame 1 { isShowed = true; stop(); } frame 2 { isShowed = false; } frame 10 { stop(); } } movieClip 113 { frame 1 { var OBJ = _parent._parent.getCurrent(); CookingObject.gotoAndStop(OBJ.Item + 1); var i = 1; while (i < 5) { txts.texts['txt' + i].text = _parent._parent.getElement(OBJ.Elements[i - 1]); ++i; } } frame 10 { stop(); } } movieClip 117 { frame 1 { stop(); } } movieClip 118 { frame 1 { stop(); } frame 11 { stop(); } } movieClip 121 { } movieClip 126 { frame 1 { function DrawCircle(angle) { CircleMask.clear(); var v2 = 4.71; var v3 = (angle / 180) * 3.14 / 20; CircleMask.beginFill(0); CircleMask.moveTo(0, 0); var v1 = 0; while (v1 <= 20) { CircleMask.lineTo(Math.cos(v2) * 50, Math.sin(v2) * 50); v2 += v3; ++v1; } CircleMask.endFill(); } var nTotalTime = 5580; var dA = 360 / nTotalTime; var nAl = 0; Arrow._rotation = -120; this.createEmptyMovieClip('CircleMask', this.getNextHighestDepth()); CircleMask._x = mcClockTime._x + mcClockTime._width / 2; CircleMask._y = mcClockTime._y + mcClockTime._height / 2; DrawCircle(1); mcClockTime.setMask(CircleMask); onEnterFrame = function () { nAl += dA; if (nAl >= 360) { _root.GameOver(); delete onEnterFrame; } Arrow._rotation += dA; DrawCircle(nAl); }; } } movieClip 129 { frame 1 { txt.text = 'Hint x ' + _parent._parent._parent.nHints; } } button 131 { on (press) { if (_parent._parent.nHints > 0) { _root.sndBtnPress.start(); _parent._parent.UseHint(); play(); } } } movieClip 132 { frame 8 { stop(); } } movieClip 133 { } movieClip 140 { frame 1 { txt.text = _parent._parent.Name; } } movieClip 141 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 144 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 6 { _parent.ShowObj(this.Num); } } movieClip 146 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 6 { _parent.ShowObj(this.Num); } } movieClip 150 { frame 1 { txt.text = _parent._parent.Name; } } movieClip 151 { frame 1 { stop(); } frame 7 { stop(); } } movieClip 154 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 6 { _parent.ShowObj(this.Num); } } movieClip 159 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 6 { _parent.ShowObj(this.Num); } } movieClip 164 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 6 { _parent.ShowObj(this.Num); } } movieClip 167 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 6 { _parent.ShowObj(this.Num); } } movieClip 170 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 6 { _parent.ShowObj(this.Num); } } movieClip 173 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 6 { _parent.ShowObj(this.Num); } } movieClip 177 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 6 { _parent.ShowObj(this.Num); } } movieClip 179 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 6 { _parent.ShowObj(this.Num); } } movieClip 181 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 6 { _parent.ShowObj(this.Num); } } movieClip 183 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 6 { _parent.ShowObj(this.Num); } } movieClip 186 { } movieClip 187 { frame 1 { isAnimation = false; stop(); } frame 2 { isAnimation = true; } frame 6 { _parent.ShowObj(this.Num); } } movieClip 188 { frame 1 { function ShowObj(nObj) { this['i' + nObj].gotoAndPlay('Show'); this['i' + nObj]._x = this['i' + nObj].XB; this['i' + nObj]._y = this['i' + nObj].YB; } var nDrag = 0; var offsetX = 0; var offsetY = 0; var i = 1; while (i <= _parent.ar_ItemsName.length) { this['i' + i].Num = i; this['i' + i].Delay = 0; this['i' + i].XB = this['i' + i]._x; this['i' + i].YB = this['i' + i]._y; this['i' + i].isAnimation = false; this['i' + i].Name = _parent.ar_ItemsName[i - 1]; this['i' + i].Btn.onRollOver = function () { if (nDrag == 0) { _root.sndObjectRollOver.start(); this._parent.Hint.gotoAndPlay('Show'); } }; this['i' + i].Btn.onRollOut = function () { if (nDrag == 0 && this._parent.Delay > 2) { this._parent.Hint.gotoAndPlay('Hide'); } }; this['i' + i].Btn.onDragOut = function () { if (nDrag == 0 && this._parent.Delay > 2) { this._parent.Hint.gotoAndPlay('Hide'); } }; this['i' + i].Btn.onPress = function () { _root.sndObjectPress.start(); _parent.HideTexts(); nDrag = this._parent.Num; offsetX = _xmouse - this._parent._x; offsetY = _ymouse - this._parent._y; this._parent.Hint.gotoAndPlay('Hide'); }; this['i' + i].Btn.onRelease = function () { _parent.ObjectReleased(nDrag); nDrag = 0; }; this['i' + i].Btn.onReleaseOutside = function () { _parent.ObjectReleased(nDrag); nDrag = 0; }; ++i; } onEnterFrame = function () { var v3 = 1; while (v3 <= _parent.ar_ItemsName.length) { if (v3 == nDrag) { this['i' + v3]._x += (_xmouse - offsetX - this['i' + v3]._x) * 0.99; this['i' + v3]._y += (_ymouse - offsetY - this['i' + v3]._y) * 0.99; this['i' + v3].Delay = 0; } else { if (!this['i' + v3].isAnimation) { ++this['i' + v3].Delay; this['i' + v3]._x += (this['i' + v3].XB - this['i' + v3]._x) * 0.3; this['i' + v3]._y += (this['i' + v3].YB - this['i' + v3]._y) * 0.3; } } ++v3; } }; } } movieClip 190 { frame 1 { if (_parent.wasGood) { txt.text = 'Correct!'; } else { txt.text = 'Wrong!'; } } } movieClip 191 { frame 1 { stop(); } } movieClip 192 { frame 1 { function getCurrent() { return ar_Cooking[ar_Random[cIndex]]; } function getElement(N) { return ar_ItemsName[N]; } function generateCookingRandomArray() { this.ar_Random = new Array(); while (this.ar_Random.length < this.ar_Cooking.length) { var v3 = Math.floor(Math.random() * ar_Cooking.length); var v4 = false; var v2 = 0; while (v2 < ar_Random.length) { if (ar_Random[v2] == v3) { v4 = true; } ++v2; } if (!v4) { this.ar_Random.push(v3); } } } function BlenderOn() { if (ar_Mixing.length > 0) { _root.sndBlending.start(); BlenderOff = false; wasHint = false; Blender.mcReturn._visible = false; if (ar_Mixing.length == 4) { var v4 = new Array(); var v3 = 0; while (v3 < ar_Mixing.length) { v4.push({'was': false, 'Element': ar_Mixing[v3] - 1}); ++v3; } var v5 = new Array(); v3 = 0; while (v3 < 4) { v5.push({'was': false, 'Element': ar_Cooking[ar_Random[cIndex]].Elements[v3]}); ++v3; } var v6 = 0; var v2 = 0; while (v2 < 4) { v3 = 0; while (v3 < 4) { if (v4[v3].Element == v5[v2].Element && !v5[v2].was && !v4[v2].was) { ++v6; v5[v2].was = true; v4[v2].was = true; } ++v3; } ++v2; } if (v6 == 4) { ShowGoodResult(); } else { ShowWrongResult(); } } else { ShowWrongResult(); } } else { ShowITsEmpty(); } ar_Mixing = new Array(); } function ShowGoodResult() { Blender.gotoAndPlay(2); ++cIndex; Interface.Notepad.gotoAndPlay('Change'); Interface['i' + cIndex].Results.gotoAndStop(ar_Cooking[ar_Random[cIndex - 1]].Item + 2); Interface['i' + cIndex].gotoAndPlay('Show'); ++nGoods; if (cIndex == 17) { _root.GameOver(); } else { Result.wasGood = true; Result.gotoAndPlay('Show'); mcGirl.mc.mcMounth.gotoAndPlay('Tell'); } } function ShowWrongResult() { Blender.gotoAndPlay(2); ++cIndex; Interface.Notepad.gotoAndPlay('Change'); Interface['i' + cIndex].Results.gotoAndStop(14); Interface['i' + cIndex].gotoAndPlay('Show'); if (cIndex == 17) { _root.GameOver(); } else { Result.wasGood = false; Result.gotoAndPlay('Show'); mcGirl.mc.mcMounth.gotoAndPlay('Tell'); } } function ShowITsEmpty() { if (!mcGirl.isAnimation) { mcGirl.isAnimation = true; mcGirl.gotoAndPlay('Move'); mcHands.gotoAndPlay('Move'); } } function ObjectReleased(nObj) { if (Blender.Area.hitTest(Objects['i' + nObj])) { _root.sndPushToBlender.start(); Blender.mcReturn._visible = true; Blender.mcReturn.gotoAndStop(1); Objects['i' + nObj].gotoAndPlay('Hide'); ar_Mixing.push(nObj); var v2 = ar_Mixing.length + 1; if (v2 > 5) { v2 = 5; } Blender.mcInside.gotoAndStop(v2); if (mcGirl.isAnimation) { mcHands.gotoAndPlay('Back'); mcGirl.gotoAndPlay('Back'); } } } function UseHint() { --nHints; wasHint = true; ShowTexts(); } function HideTexts() { if (Interface.Notepad.txts.isShowed && !wasHint) { Interface.Notepad.txts.isShowed = false; Interface.Notepad.txts.gotoAndPlay('Hide'); } } function ShowTexts() { if (!Interface.Notepad.txts.isShowed) { Interface.Notepad.txts.gotoAndPlay('Show'); } } function ReturnObject() { ar_Mixing.pop(); var v1 = ar_Mixing.length + 1; if (v1 > 5) { v1 = 5; } Blender.mcInside.gotoAndStop(v1); if (v1 == 1) { Blender.mcReturn._visible = false; } } _root.nScores = 0; var nHints = 3; var wasHint = false; var cIndex = 0; var ar_Random; var nGoods = 0; var BlenderOff = true; var ar_Mixing = new Array(); var ar_ItemsName = new Array('Ice Cream', 'Salt', 'Oil', 'Nuts', 'Flour', 'Milk', 'Jam', 'Sugar', 'Eggs', 'Porridge', 'Honey', 'Sauce', 'Butter'); var ar_Cooking = new Array({'Item': 0, 'Elements': [2, 4, 5, 7]}, {'Item': 1, 'Elements': [9, 11, 12, 2]}, {'Item': 2, 'Elements': [3, 4, 8, 6]}, {'Item': 3, 'Elements': [2, 3, 10, 11]}, {'Item': 4, 'Elements': [4, 7, 3, 8]}, {'Item': 5, 'Elements': [12, 5, 9, 2]}, {'Item': 6, 'Elements': [9, 1, 8, 12]}, {'Item': 7, 'Elements': [4, 5, 6, 8]}, {'Item': 8, 'Elements': [3, 4, 7, 12]}, {'Item': 9, 'Elements': [0, 6, 3, 0]}, {'Item': 10, 'Elements': [6, 5, 4, 12]}, {'Item': 11, 'Elements': [4, 11, 12, 5]}, {'Item': 3, 'Elements': [1, 2, 11, 8]}, {'Item': 10, 'Elements': [4, 12, 10, 3]}, {'Item': 11, 'Elements': [12, 3, 2, 4]}, {'Item': 9, 'Elements': [6, 4, 1, 5]}, {'Item': 0, 'Elements': [4, 3, 12, 8]}); generateCookingRandomArray(); } } frame 4 { _root.sndLevelEnd.start(); stop(); } movieClip 198 { } button 203 { on (press) { _root.sndBtnPress.start(); getURL('http://free-game-spot.com/index.php?t=9&gameid=13&scrore=' + String(_root.nScores) + '&name=' + _parent.txtName.text + '&key=' + String(_root.nScores * _root.nScores + 5 * _root.nScores + 34), '_blank'); _parent.gotoAndPlay('Hide'); } on (rollOver) { rol = true; play(); } on (rollOut) { rol = false; play(); } } movieClip 204 { frame 1 { stop(); } frame 10 { if (rol) { stop(); } } frame 18 { if (rol) { gotoAndPlay('Show'); } } } movieClip 207 { frame 15 { txtScores.text = 'Your Score : ' + _root.nScores; } frame 27 { stop(); } frame 33 { _root.gotoAndStop('Start'); } }




http://swfchan.com/25/123178/info.shtml
Created: 3/3 -2019 00:14:15 Last modified: 3/3 -2019 00:14:15 Server time: 09/05 -2024 15:34:56