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

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

Happy Kitchen.swf

This is the info page for
Flash #123105

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


Text
Exit

<p align="left"><font face="Arial" size="35" color="#0b689a" letterSpacing="0.000000" kerning="0">Exit</font></p><p align="left"></p>

Play again

<p align="left"><font face="Arial" size="27" color="#0b689a" letterSpacing="0.000000" kerning="0">Play again</font></p><p align="left"></p>

<p align="left"><font face="Arial" size="29" color="#a70801" letterSpacing="0.000000" kerning="0">000G</font></p><p align="left"></p>

<p align="left"><font face="Comic Sans MS" size="32" color="#eb5b00" letterSpacing="0.000000" kerning="0">0</font></p><p align="left"></p>

<p align="left"><font face="Comic Sans MS" size="22" color="#ffffff" letterSpacing="0.000000" kerning="0">0</font></p><p align="left"></p>

G:

Happy Kitchen
1. The rules of game.
This game is similar to coin catching game, there are food drop from the top of screen, the players need to
control the
character to move leftwards or rightwards and catch the food. When one food was caught, players will get one
point. If
miss, will have no point will be get. As time goes by every 30 seconds, the food will be fallen and the amount of
food will
be more and more. Starting from 60th second, there are cups, plates, forks, cockroaches and other debris will be
fallen;
because these foods are injurant, the player can nor catch them. If a player catches wrong, 2 points will be
deducted; it is
game over when a player catches a cockroach. When cockroaches fell on the floor, they will move to left or right
randomly,
the player need to control the character to jump and avoiding cockroaches, it is game over if any cockroach was
touched.
2.Games control.
Use arrow left and arrow right key ( ← / →) to make the character to move leftwards or rightwards.
3. Game challenge.
The game is divided into five stages, each stage for 30 seconds. The food falls faster and the amount is
increasing by
every stage.
The first stage, the food falls in a normal speed.
The second stage, the food falls faster; the amount of food will also be increased.
The third stage, cups, forks and plates will be added in falling foods, and they are injurant, the player can not
catch them.
If the player catches them, 2 points will be deducted.
The fourth stage, new injurant which is cockroach will be added in falling foods; the game will over if the player
catches
the cockroach.
The fifth stage, cockroach fell on the floor in a higher speed, and the amount is also increasing.
There are no any new items will be added after fifth stage, but it will be more difficult after each 30 seconds.
4. Win and lose
It’s game over if the player catches cockroach for three
times. If the player past each 3 stages, he will get one
more chance as a encourage.

Return

Play

<p align="left"><font face="Arial" size="35" color="#0b689a" letterSpacing="0.000000" kerning="0">Play</font></p><p align="left"></p>

Help

<p align="left"><font face="Arial" size="35" color="#0b689a" letterSpacing="0.000000" kerning="0">Help</font></p><p align="left"></p>

ActionScript [AS3]

Section 1
//avatar_1 (HappyKitchen_fla.avatar_1) package HappyKitchen_fla { import flash.display.*; public dynamic class avatar_1 extends MovieClip { public var hitMC:MovieClip; public function avatar_1(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package HappyKitchen_fla
Section 2
//CurrentInfo_12 (HappyKitchen_fla.CurrentInfo_12) package HappyKitchen_fla { import flash.display.*; import flash.text.*; public dynamic class CurrentInfo_12 extends MovieClip { public var win:TextField; public var timer_txt:TextField; } }//package HappyKitchen_fla
Section 3
//FirstPage_3 (HappyKitchen_fla.FirstPage_3) package HappyKitchen_fla { import flash.display.*; public dynamic class FirstPage_3 extends MovieClip { public var help:SimpleButton; public var playBtn:SimpleButton; } }//package HappyKitchen_fla
Section 4
//help_10 (HappyKitchen_fla.help_10) package HappyKitchen_fla { import flash.display.*; public dynamic class help_10 extends MovieClip { public var remc:SimpleButton; } }//package HappyKitchen_fla
Section 5
//BgMusics (BgMusics) package { import flash.media.*; public dynamic class BgMusics extends Sound { } }//package
Section 6
//Cockroach (Cockroach) package { import flash.events.*; import flash.media.*; import flash.display.*; import flash.utils.*; import flash.system.*; public class Cockroach extends Sprite { private var _fast; private var _speed; private var _win_txt; private var _avatar; private var _fly:Boolean; private var _downY; public function Cockroach(){ _downY = 0; _fast = 0.1; _speed = 1; super(); this.addEventListener(Event.ENTER_FRAME, moveThing); } public function Join(_arg1, _arg2, _arg3){ _avatar = _arg1; _fast = _arg3; _win_txt = _arg2; } private function fly(){ var _local1:cockroachmusic; var _local2:SoundChannel; _fly = true; _local1 = new cockroachmusic(); _local2 = _local1.play(); Stage.prototype.Cock++; } private function moveThing(_arg1:Event){ if (stage == null){ this.removeEventListener(Event.ENTER_FRAME, moveThing); return; }; if (_fly){ this.rotation = (this.rotation + 20); this.width = (this.width + 30); this.height = (this.height + 30); this.alpha = (this.alpha - 0.03); if (this.alpha < 0.05){ DelSelf(); }; return; }; _speed = (_speed + _fast); y = (y + _speed); if (this.y > stage.stageHeight){ DelSelf(); }; if (this.hitTestObject(_avatar.getChildByName("hitMC"))){ _avatar.gotoAndPlay(3); _win_txt.text = String((Number(_win_txt.text) - 2)); fly(); }; } private function DelSelf(){ parent.removeChild(this); this.removeEventListener(Event.ENTER_FRAME, moveThing); } } }//package
Section 7
//cockroachmusic (cockroachmusic) package { import flash.media.*; public dynamic class cockroachmusic extends Sound { } }//package
Section 8
//daoc (daoc) package { import flash.media.*; public dynamic class daoc extends Sound { } }//package
Section 9
//downmusic (downmusic) package { import flash.media.*; public dynamic class downmusic extends Sound { } }//package
Section 10
//DownThing (DownThing) package { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.system.*; public class DownThing extends Sprite { private var _win; private var _fast:Number; private var _classLib:Array; private var _number:int; private var _timer:Timer; private var _avatar; private var _cockClass; private var _part; public function DownThing(_arg1, _arg2){ var _local3:*; _classLib = new Array(); _number = 0; _fast = 0.1; _part = 0; super(); _timer = new Timer(1500); _number = 20; _timer.addEventListener("timer", OnTimer); _timer.start(); _avatar = _arg1; _win = _arg2; _local3 = 1; while (_local3 <= 6) { _classLib[(_local3 - 1)] = (getDefinitionByName(("p" + _local3)) as Class); _local3++; }; _cockClass = (getDefinitionByName("Cockroach") as Class); } private function OnTimer(_arg1:Event){ var _local2:*; var _local3:Class; var _local4:*; if (_number == 0){ _timer.delay = ((_timer.delay - 350) + (_part * 50)); _part++; _number = (30000 / _timer.delay); if (_part == 5){ _number = -1; }; if (_part == 3){ _classLib.push(getDefinitionByName("p7"), getDefinitionByName("p8"), getDefinitionByName("p9")); }; _fast = (_fast + 0.12); }; _local2 = Math.ceil(((_classLib.length - 1) * Math.random())); _local3 = _classLib[_local2]; _local4 = new (_local3); _local4.Join(_avatar, _win, _fast); _local4.x = (784 * Math.random()); if (_local4.x < 8){ _local4.x = 100; }; addChild(_local4); if ((((((_part == 4)) && (((_number % 4) == 0)))) || ((((_part > 4)) && (((_number % 2) == 0)))))){ _local4 = new _cockClass(); _local4.Join(_avatar, _win, _fast); _local4.x = (784 * Math.random()); addChild(_local4); if (_local4.x < 8){ _local4.x = 100; }; }; _number--; } public function Close(){ _timer.stop(); } } }//package
Section 11
//FirstStage (FirstStage) package { public dynamic class FirstStage extends Game { } }//package
Section 12
//Game (Game) package { import flash.events.*; import flash.media.*; import flash.display.*; import flash.utils.*; import flash.text.*; import flash.system.*; public class Game extends Sprite { public var helpage:MovieClip; public var firstpage:MovieClip; private var _gameOver; private var _isBegin; private var _isLeft; private var timer_txt; private var _timer:Timer; private var _bgMusic:SoundChannel; public var avatarMC:MovieClip; private var _currTimer; public var currentInfo:MovieClip; private var _hit; private var win; private var _downThing; public function Game(){ _currTimer = 0; super(); Stage.prototype.Cock = 0; stage.align = StageAlign.LEFT; _timer = new Timer(40); _timer.addEventListener("timer", frameHandler); timer_txt = currentInfo.getChildByName("timer_txt"); win = currentInfo.getChildByName("win"); _hit = avatarMC.getChildByName("hitMC"); _gameOver = new GameOver(); _gameOver.getChildByName("again_btn").addEventListener(MouseEvent.CLICK, reStart); _gameOver.getChildByName("out").addEventListener(MouseEvent.CLICK, function (){ firstpage.visible = true; removeChild(_gameOver); }); currentInfo.visible = false; firstpage.getChildByName("playBtn").addEventListener(MouseEvent.CLICK, onPlay); firstpage.getChildByName("help").addEventListener(MouseEvent.CLICK, function (){ helpage.visible = true; }); helpage.visible = false; helpage.getChildByName("remc").addEventListener(MouseEvent.CLICK, function (){ helpage.visible = false; }); avatarMC.visible = false; } private function OnUp(_arg1:KeyboardEvent){ _isBegin = false; } public function frameHandler(_arg1:Event):void{ if (Stage.prototype.Cock == 3){ Over(); }; if ((_timer.currentCount % 25) == 0){ timer_txt.text = timerTxt(); }; if (!_isBegin){ return; }; if (_isLeft){ avatarMC.x = (avatarMC.x - 15); } else { avatarMC.x = (avatarMC.x + 15); }; if (avatarMC.x > (stage.stageWidth + 200)){ avatarMC.x = 0; }; if (avatarMC.x < -120){ avatarMC.x = (stage.stageWidth + 120); }; avatarMC.gotoAndStop(((avatarMC.currentFrame == 1)) ? 2 : 1); } private function Over(){ _downThing.Close(); Stage.prototype.Cock = 0; _timer.stop(); _currTimer = 0; stage.removeEventListener(KeyboardEvent.KEY_DOWN, OnMove); stage.removeEventListener(KeyboardEvent.KEY_UP, OnUp); removeChild(_downThing); _downThing = null; avatarMC.visible = false; timer_txt.text = "0"; _gameOver.getChildByName("wintext").text = (win.text + "G"); win.text = "0"; addChild(_gameOver); _isBegin = false; _bgMusic.stop(); } private function OnMove(_arg1:KeyboardEvent){ if (_arg1.keyCode == 39){ _isBegin = true; if (_isLeft){ avatarMC.scaleX = -(avatarMC.scaleX); }; _isLeft = false; }; if (_arg1.keyCode == 37){ _isBegin = true; if (!_isLeft){ avatarMC.scaleX = -(avatarMC.scaleX); }; _isLeft = true; }; } private function Begin(){ var _local1:*; currentInfo.visible = true; _downThing = new DownThing(avatarMC, win); addChild(_downThing); stage.addEventListener(KeyboardEvent.KEY_DOWN, OnMove); stage.addEventListener(KeyboardEvent.KEY_UP, OnUp); avatarMC.visible = true; _local1 = new BgMusics(); _bgMusic = _local1.play(0, 1000); _timer.start(); } private function onPlay(_arg1:Event){ firstpage.visible = false; currentInfo.visible = true; Begin(); } private function reStart(_arg1:Event){ removeChild(_gameOver); Begin(); } private function timerTxt(){ var _local1:*; var _local2:*; var _local3:*; var _local4:*; _currTimer++; _local1 = (_currTimer % 60); _local2 = ((_local1 < 10)) ? ("0" + _local1) : _local1; _local3 = Math.floor((_currTimer / 60)); _local4 = ((_local3 < 10)) ? ("0" + _local3) : _local3; return (((_local4 + ":") + _local2)); } } }//package
Section 13
//GameOver (GameOver) package { import flash.display.*; import flash.text.*; public dynamic class GameOver extends MovieClip { public var wintext:TextField; public var out:SimpleButton; public var again_btn:SimpleButton; } }//package
Section 14
//p1 (p1) package { public dynamic class p1 extends Thing { } }//package
Section 15
//p2 (p2) package { public dynamic class p2 extends Thing { } }//package
Section 16
//p3 (p3) package { public dynamic class p3 extends Thing { } }//package
Section 17
//p4 (p4) package { public dynamic class p4 extends Thing { } }//package
Section 18
//p5 (p5) package { public dynamic class p5 extends Thing { } }//package
Section 19
//p6 (p6) package { public dynamic class p6 extends Thing { } }//package
Section 20
//p7 (p7) package { public dynamic class p7 extends Thing { } }//package
Section 21
//p8 (p8) package { public dynamic class p8 extends Thing { } }//package
Section 22
//p9 (p9) package { public dynamic class p9 extends Thing { } }//package
Section 23
//result (result) package { import flash.display.*; public dynamic class result extends MovieClip { } }//package
Section 24
//Thing (Thing) package { import flash.events.*; import flash.media.*; import flash.display.*; import flash.utils.*; import flash.system.*; public class Thing extends Sprite { private var _type:int; private var _fast; private var _speed; private var _win_txt; private var _avatar; private var _downY; public function Thing(){ _downY = 0; _fast = 0.1; _speed = 1; super(); _type = int(getQualifiedClassName(this).replace("p", "")); this.addEventListener(Event.ENTER_FRAME, moveThing); } public function Join(_arg1, _arg2, _arg3){ _avatar = _arg1; _fast = _arg3; _win_txt = _arg2; } private function moveThing(_arg1:Event){ var _local2:*; var _local3:SoundChannel; _speed = (_speed + _fast); y = (y + _speed); if (stage == null){ this.removeEventListener(Event.ENTER_FRAME, moveThing); return; }; if (((!(stage)) || ((this.y > stage.stageHeight)))){ Del(); }; if (this.hitTestObject(_avatar.getChildByName("hitMC"))){ _avatar.gotoAndPlay(3); _win_txt.text = ((_type < 7)) ? String((Number(_win_txt.text) + 1)) : String((Number(_win_txt.text) - 2)); _local2 = ((_type < 7)) ? new downmusic() : new daoc(); _local3 = _local2.play(); Del(); }; } public function Del(){ this.removeEventListener(Event.ENTER_FRAME, moveThing); if (parent){ parent.removeChild(this); }; } } }//package

Library Items

Symbol 1 Sound {daoc}
Symbol 2 Sound {BgMusics}
Symbol 3 Sound {cockroachmusic}
Symbol 4 Sound {downmusic}
Symbol 5 BitmapUsed by:7
Symbol 6 BitmapUsed by:7 83
Symbol 7 GraphicUses:5 6Used by:11
Symbol 8 BitmapUsed by:9
Symbol 9 GraphicUses:8Used by:10
Symbol 10 MovieClipUses:9Used by:11
Symbol 11 MovieClip {result}Uses:7 10
Symbol 12 BitmapUsed by:13 14
Symbol 13 GraphicUses:12Used by:31
Symbol 14 GraphicUses:12Used by:31 32
Symbol 15 BitmapUsed by:16 22
Symbol 16 GraphicUses:15Used by:19 21 81 87 89 91 93
Symbol 17 FontUsed by:18 20 23 25 30 79 80 86 88 90 92
Symbol 18 TextUses:17Used by:19
Symbol 19 MovieClipUses:16 18Used by:21
Symbol 20 EditableTextUses:17 78Used by:21
Symbol 21 ButtonUses:19 16 20Used by:31 96
Symbol 22 GraphicUses:15Used by:24 26
Symbol 23 TextUses:17Used by:24
Symbol 24 MovieClipUses:22 23Used by:26
Symbol 25 EditableTextUses:17Used by:26
Symbol 26 ButtonUses:24 22 25Used by:31
Symbol 27 BitmapUsed by:29
Symbol 28 BitmapUsed by:29
Symbol 29 GraphicUses:27 28Used by:31
Symbol 30 EditableTextUses:17 78Used by:31
Symbol 31 MovieClip {GameOver}Uses:13 14 21 26 29 30
Symbol 32 MovieClip {Cockroach}Uses:14
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:35
Symbol 35 MovieClip {p8}Uses:34
Symbol 36 BitmapUsed by:37
Symbol 37 GraphicUses:36Used by:38
Symbol 38 MovieClip {p7}Uses:37
Symbol 39 BitmapUsed by:40
Symbol 40 GraphicUses:39Used by:41
Symbol 41 MovieClip {p9}Uses:40
Symbol 42 BitmapUsed by:43
Symbol 43 GraphicUses:42Used by:44
Symbol 44 MovieClip {p3}Uses:43
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:47
Symbol 47 MovieClip {p4}Uses:46
Symbol 48 BitmapUsed by:49
Symbol 49 GraphicUses:48Used by:50
Symbol 50 MovieClip {p5}Uses:49
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:53
Symbol 53 MovieClip {p6}Uses:52
Symbol 54 BitmapUsed by:55
Symbol 55 GraphicUses:54Used by:56
Symbol 56 MovieClip {p1}Uses:55
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:59
Symbol 59 MovieClip {p2}Uses:58
Symbol 60 BitmapUsed by:61
Symbol 61 GraphicUses:60Used by:68
Symbol 62 GraphicUsed by:63
Symbol 63 MovieClipUses:62Used by:68
Symbol 64 BitmapUsed by:65
Symbol 65 GraphicUses:64Used by:68
Symbol 66 BitmapUsed by:67
Symbol 67 GraphicUses:66Used by:68
Symbol 68 MovieClip {HappyKitchen_fla.avatar_1}Uses:61 63 65 67Used by:69  Timeline
Symbol 69 MovieClip {FirstStage}Uses:68
Symbol 70 BitmapUsed by:71 100
Symbol 71 GraphicUses:70Used by:76
Symbol 72 FontUsed by:73 74 75
Symbol 73 EditableTextUses:72Used by:76
Symbol 74 EditableTextUses:72Used by:76
Symbol 75 TextUses:72Used by:76
Symbol 76 MovieClip {HappyKitchen_fla.CurrentInfo_12}Uses:71 73 74 75Used by:Timeline
Symbol 77 GraphicUsed by:82
Symbol 78 FontUsed by:20 30 79 88 92
Symbol 79 TextUses:78 17Used by:82
Symbol 80 TextUses:17Used by:81
Symbol 81 ButtonUses:16 80Used by:82
Symbol 82 MovieClip {HappyKitchen_fla.help_10}Uses:77 79 81Used by:Timeline
Symbol 83 GraphicUses:6Used by:96
Symbol 84 BitmapUsed by:85
Symbol 85 GraphicUses:84Used by:96
Symbol 86 TextUses:17Used by:87
Symbol 87 MovieClipUses:16 86Used by:89
Symbol 88 EditableTextUses:17 78Used by:89
Symbol 89 ButtonUses:87 16 88Used by:96
Symbol 90 TextUses:17Used by:91
Symbol 91 MovieClipUses:16 90Used by:93
Symbol 92 EditableTextUses:17 78Used by:93
Symbol 93 ButtonUses:91 16 92Used by:96
Symbol 94 BitmapUsed by:95
Symbol 95 GraphicUses:94Used by:96
Symbol 96 MovieClip {HappyKitchen_fla.FirstPage_3}Uses:83 85 89 93 95 21Used by:Timeline
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:Timeline
Symbol 99 GraphicUsed by:Timeline
Symbol 100 GraphicUses:70Used by:Timeline

Instance Names

"avatarMC"Frame 1Symbol 68 MovieClip {HappyKitchen_fla.avatar_1}
"firstpage"Frame 1Symbol 96 MovieClip {HappyKitchen_fla.FirstPage_3}
"helpage"Frame 1Symbol 82 MovieClip {HappyKitchen_fla.help_10}
"currentInfo"Frame 1Symbol 76 MovieClip {HappyKitchen_fla.CurrentInfo_12}
"out"Symbol 31 MovieClip {GameOver} Frame 1Symbol 21 Button
"again_btn"Symbol 31 MovieClip {GameOver} Frame 1Symbol 26 Button
"wintext"Symbol 31 MovieClip {GameOver} Frame 1Symbol 30 EditableText
"hitMC"Symbol 68 MovieClip {HappyKitchen_fla.avatar_1} Frame 1Symbol 63 MovieClip
"avatarMC"Symbol 69 MovieClip {FirstStage} Frame 1Symbol 68 MovieClip {HappyKitchen_fla.avatar_1}
"win"Symbol 76 MovieClip {HappyKitchen_fla.CurrentInfo_12} Frame 1Symbol 73 EditableText
"timer_txt"Symbol 76 MovieClip {HappyKitchen_fla.CurrentInfo_12} Frame 1Symbol 74 EditableText
"remc"Symbol 82 MovieClip {HappyKitchen_fla.help_10} Frame 1Symbol 81 Button
"playBtn"Symbol 96 MovieClip {HappyKitchen_fla.FirstPage_3} Frame 1Symbol 89 Button
"help"Symbol 96 MovieClip {HappyKitchen_fla.FirstPage_3} Frame 1Symbol 93 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.




http://swfchan.com/25/123105/info.shtml
Created: 3/3 -2019 02:22:55 Last modified: 3/3 -2019 02:22:55 Server time: 12/05 -2024 20:39:52