Section 1
//buytMC_189 (child_fla.buytMC_189)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class buytMC_189 extends MovieClip {
public var buyText:TextField;
public function buytMC_189(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
this.visible = false;
}
}
}//package child_fla
Section 2
//clothBtn_231 (child_fla.clothBtn_231)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class clothBtn_231 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 3
//clothBtn_241 (child_fla.clothBtn_241)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class clothBtn_241 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 4
//instructions_8 (child_fla.instructions_8)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class instructions_8 extends MovieClip {
public var text4:TextField;
}
}//package child_fla
Section 5
//mainmenu_250 (child_fla.mainmenu_250)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mainmenu_250 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 6
//mainmenu_254 (child_fla.mainmenu_254)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mainmenu_254 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 7
//moregame_249 (child_fla.moregame_249)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class moregame_249 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 8
//moregame_253 (child_fla.moregame_253)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class moregame_253 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 9
//moregamessss_9 (child_fla.moregamessss_9)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class moregamessss_9 extends MovieClip {
public var text5:TextField;
}
}//package child_fla
Section 10
//othersBtn_177 (child_fla.othersBtn_177)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class othersBtn_177 extends MovieClip {
public var text1:TextField;
public var othersBtn:SimpleButton;
}
}//package child_fla
Section 11
//replay_251 (child_fla.replay_251)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class replay_251 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 12
//shop_175 (child_fla.shop_175)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class shop_175 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 13
//shop_21 (child_fla.shop_21)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class shop_21 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 14
//startgame_7 (child_fla.startgame_7)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class startgame_7 extends MovieClip {
public var text3:TextField;
}
}//package child_fla
Section 15
//Timeline_11 (child_fla.Timeline_11)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_11 extends MovieClip {
public var hourText:TextField;
}
}//package child_fla
Section 16
//Timeline_12 (child_fla.Timeline_12)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_12 extends MovieClip {
public var levelText:TextField;
}
}//package child_fla
Section 17
//Timeline_13 (child_fla.Timeline_13)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_13 extends MovieClip {
public var dayText:TextField;
}
}//package child_fla
Section 18
//Timeline_176 (child_fla.Timeline_176)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_176 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 19
//Timeline_182 (child_fla.Timeline_182)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_182 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 20
//Timeline_185 (child_fla.Timeline_185)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_185 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 21
//Timeline_187 (child_fla.Timeline_187)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_187 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 22
//Timeline_226 (child_fla.Timeline_226)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_226 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 23
//Timeline_229 (child_fla.Timeline_229)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_229 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 24
//Timeline_232 (child_fla.Timeline_232)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_232 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 25
//Timeline_240 (child_fla.Timeline_240)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_240 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 26
//Timeline_244 (child_fla.Timeline_244)
package child_fla {
import flash.display.*;
public dynamic class Timeline_244 extends MovieClip {
public var nextBtn:MovieClip;
}
}//package child_fla
Section 27
//Timeline_245 (child_fla.Timeline_245)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_245 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 28
//Timeline_274 (child_fla.Timeline_274)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_274 extends MovieClip {
public var moneyText:TextField;
public var closeBtn:SimpleButton;
public var text1:TextField;
}
}//package child_fla
Section 29
//Timeline_70 (child_fla.Timeline_70)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_70 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 30
//Timeline_71 (child_fla.Timeline_71)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_71 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 31
//Timeline_72 (child_fla.Timeline_72)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_72 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 32
//Timeline_73 (child_fla.Timeline_73)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_73 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 33
//Timeline_74 (child_fla.Timeline_74)
package child_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_74 extends MovieClip {
public var text1:TextField;
}
}//package child_fla
Section 34
//backgroundMC (backgroundMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class backgroundMC extends MovieClip {
public var moneyText:TextField;
public var levelMC:MovieClip;
public var dayMC:MovieClip;
public var btn3:SimpleButton;
public var btn7:SimpleButton;
public var btn2:SimpleButton;
public var btn4:SimpleButton;
public var btn8:SimpleButton;
public var btn6:SimpleButton;
public var btn1:SimpleButton;
public var btn5:SimpleButton;
public var moneyBtn:MovieClip;
public var shopBtn:MovieClip;
public var timeText:TextField;
public var hourMC:MovieClip;
public var levelText:TextField;
public var explainBtn:SimpleButton;
public var dayText:TextField;
public function backgroundMC(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package
Section 35
//BarBbackMC (BarBbackMC)
package {
import flash.display.*;
public dynamic class BarBbackMC extends MovieClip {
}
}//package
Section 36
//BarBbackMCR (BarBbackMCR)
package {
import flash.display.*;
public dynamic class BarBbackMCR extends MovieClip {
}
}//package
Section 37
//BarBdeadMC (BarBdeadMC)
package {
import flash.display.*;
public dynamic class BarBdeadMC extends MovieClip {
}
}//package
Section 38
//BarBdirtyMC (BarBdirtyMC)
package {
import flash.display.*;
public dynamic class BarBdirtyMC extends MovieClip {
}
}//package
Section 39
//BarBdirtyWantMC (BarBdirtyWantMC)
package {
import flash.display.*;
public dynamic class BarBdirtyWantMC extends MovieClip {
}
}//package
Section 40
//BarBdrinkMC (BarBdrinkMC)
package {
import flash.display.*;
public dynamic class BarBdrinkMC extends MovieClip {
public function BarBdrinkMC(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package
Section 41
//BarBdrinkWantMC (BarBdrinkWantMC)
package {
import flash.display.*;
public dynamic class BarBdrinkWantMC extends MovieClip {
}
}//package
Section 42
//BarBdrugMC (BarBdrugMC)
package {
import flash.display.*;
public dynamic class BarBdrugMC extends MovieClip {
}
}//package
Section 43
//BarBdrugWantMC (BarBdrugWantMC)
package {
import flash.display.*;
public dynamic class BarBdrugWantMC extends MovieClip {
}
}//package
Section 44
//BarBeatMC (BarBeatMC)
package {
import flash.display.*;
public dynamic class BarBeatMC extends MovieClip {
}
}//package
Section 45
//BarBeatWantMC (BarBeatWantMC)
package {
import flash.display.*;
public dynamic class BarBeatWantMC extends MovieClip {
}
}//package
Section 46
//BarBfMC (BarBfMC)
package {
import flash.display.*;
public dynamic class BarBfMC extends MovieClip {
}
}//package
Section 47
//BarBfrontMC (BarBfrontMC)
package {
import flash.display.*;
public dynamic class BarBfrontMC extends MovieClip {
}
}//package
Section 48
//BarBfrontMCM (BarBfrontMCM)
package {
import flash.display.*;
public dynamic class BarBfrontMCM extends MovieClip {
}
}//package
Section 49
//BarBfrontMCMR (BarBfrontMCMR)
package {
import flash.display.*;
public dynamic class BarBfrontMCMR extends MovieClip {
}
}//package
Section 50
//BarBfrontMCR (BarBfrontMCR)
package {
import flash.display.*;
public dynamic class BarBfrontMCR extends MovieClip {
}
}//package
Section 51
//BarBlbMC (BarBlbMC)
package {
import flash.display.*;
public dynamic class BarBlbMC extends MovieClip {
}
}//package
Section 52
//BarBlbMCR (BarBlbMCR)
package {
import flash.display.*;
public dynamic class BarBlbMCR extends MovieClip {
}
}//package
Section 53
//BarBlearnMC (BarBlearnMC)
package {
import flash.display.*;
public dynamic class BarBlearnMC extends MovieClip {
}
}//package
Section 54
//BarBlearnWantMC (BarBlearnWantMC)
package {
import flash.display.*;
public dynamic class BarBlearnWantMC extends MovieClip {
}
}//package
Section 55
//BarBlfMC (BarBlfMC)
package {
import flash.display.*;
public dynamic class BarBlfMC extends MovieClip {
}
}//package
Section 56
//BarBlfMCM (BarBlfMCM)
package {
import flash.display.*;
public dynamic class BarBlfMCM extends MovieClip {
}
}//package
Section 57
//BarBlfMCMR (BarBlfMCMR)
package {
import flash.display.*;
public dynamic class BarBlfMCMR extends MovieClip {
}
}//package
Section 58
//BarBlfMCR (BarBlfMCR)
package {
import flash.display.*;
public dynamic class BarBlfMCR extends MovieClip {
}
}//package
Section 59
//BarBlsMC (BarBlsMC)
package {
import flash.display.*;
public dynamic class BarBlsMC extends MovieClip {
}
}//package
Section 60
//BarBlsMCM (BarBlsMCM)
package {
import flash.display.*;
public dynamic class BarBlsMCM extends MovieClip {
}
}//package
Section 61
//BarBlsMCMR (BarBlsMCMR)
package {
import flash.display.*;
public dynamic class BarBlsMCMR extends MovieClip {
}
}//package
Section 62
//BarBlsMCR (BarBlsMCR)
package {
import flash.display.*;
public dynamic class BarBlsMCR extends MovieClip {
}
}//package
Section 63
//BarBplayMC (BarBplayMC)
package {
import flash.display.*;
public dynamic class BarBplayMC extends MovieClip {
}
}//package
Section 64
//BarBplayWantMC (BarBplayWantMC)
package {
import flash.display.*;
public dynamic class BarBplayWantMC extends MovieClip {
}
}//package
Section 65
//BarBrbMC (BarBrbMC)
package {
import flash.display.*;
public dynamic class BarBrbMC extends MovieClip {
}
}//package
Section 66
//BarBrbMCR (BarBrbMCR)
package {
import flash.display.*;
public dynamic class BarBrbMCR extends MovieClip {
}
}//package
Section 67
//BarBrefuseMC (BarBrefuseMC)
package {
import flash.display.*;
public dynamic class BarBrefuseMC extends MovieClip {
}
}//package
Section 68
//BarBrfMC (BarBrfMC)
package {
import flash.display.*;
public dynamic class BarBrfMC extends MovieClip {
}
}//package
Section 69
//BarBrfMCM (BarBrfMCM)
package {
import flash.display.*;
public dynamic class BarBrfMCM extends MovieClip {
}
}//package
Section 70
//BarBrfMCMR (BarBrfMCMR)
package {
import flash.display.*;
public dynamic class BarBrfMCMR extends MovieClip {
}
}//package
Section 71
//BarBrfMCR (BarBrfMCR)
package {
import flash.display.*;
public dynamic class BarBrfMCR extends MovieClip {
}
}//package
Section 72
//BarBrsMC (BarBrsMC)
package {
import flash.display.*;
public dynamic class BarBrsMC extends MovieClip {
}
}//package
Section 73
//BarBrsMCM (BarBrsMCM)
package {
import flash.display.*;
public dynamic class BarBrsMCM extends MovieClip {
}
}//package
Section 74
//BarBrsMCMR (BarBrsMCMR)
package {
import flash.display.*;
public dynamic class BarBrsMCMR extends MovieClip {
}
}//package
Section 75
//BarBrsMCR (BarBrsMCR)
package {
import flash.display.*;
public dynamic class BarBrsMCR extends MovieClip {
}
}//package
Section 76
//BarBsleepMC (BarBsleepMC)
package {
import flash.display.*;
public dynamic class BarBsleepMC extends MovieClip {
}
}//package
Section 77
//BarBsleepWantMC (BarBsleepWantMC)
package {
import flash.display.*;
public dynamic class BarBsleepWantMC extends MovieClip {
}
}//package
Section 78
//BarBtoiletMC (BarBtoiletMC)
package {
import flash.display.*;
public dynamic class BarBtoiletMC extends MovieClip {
}
}//package
Section 79
//BarBtoiletWantMC (BarBtoiletWantMC)
package {
import flash.display.*;
public dynamic class BarBtoiletWantMC extends MovieClip {
}
}//package
Section 80
//CartooNbackMC (CartooNbackMC)
package {
import flash.display.*;
public dynamic class CartooNbackMC extends MovieClip {
}
}//package
Section 81
//CartooNbackMCR (CartooNbackMCR)
package {
import flash.display.*;
public dynamic class CartooNbackMCR extends MovieClip {
}
}//package
Section 82
//CartooNdeadMC (CartooNdeadMC)
package {
import flash.display.*;
public dynamic class CartooNdeadMC extends MovieClip {
}
}//package
Section 83
//CartooNdirtyWantMC (CartooNdirtyWantMC)
package {
import flash.display.*;
public dynamic class CartooNdirtyWantMC extends MovieClip {
}
}//package
Section 84
//CartooNdrinkMC (CartooNdrinkMC)
package {
import flash.display.*;
public dynamic class CartooNdrinkMC extends MovieClip {
public function CartooNdrinkMC(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package
Section 85
//CartooNdrinkWantMC (CartooNdrinkWantMC)
package {
import flash.display.*;
public dynamic class CartooNdrinkWantMC extends MovieClip {
}
}//package
Section 86
//CartooNdrugMC (CartooNdrugMC)
package {
import flash.display.*;
public dynamic class CartooNdrugMC extends MovieClip {
}
}//package
Section 87
//CartooNdrugWantMC (CartooNdrugWantMC)
package {
import flash.display.*;
public dynamic class CartooNdrugWantMC extends MovieClip {
}
}//package
Section 88
//CartooNeatMC (CartooNeatMC)
package {
import flash.display.*;
public dynamic class CartooNeatMC extends MovieClip {
}
}//package
Section 89
//CartooNeatWantMC (CartooNeatWantMC)
package {
import flash.display.*;
public dynamic class CartooNeatWantMC extends MovieClip {
}
}//package
Section 90
//CartooNfMC (CartooNfMC)
package {
import flash.display.*;
public dynamic class CartooNfMC extends MovieClip {
}
}//package
Section 91
//CartooNfrontMC (CartooNfrontMC)
package {
import flash.display.*;
public dynamic class CartooNfrontMC extends MovieClip {
}
}//package
Section 92
//CartooNfrontMCM (CartooNfrontMCM)
package {
import flash.display.*;
public dynamic class CartooNfrontMCM extends MovieClip {
}
}//package
Section 93
//CartooNfrontMCMR (CartooNfrontMCMR)
package {
import flash.display.*;
public dynamic class CartooNfrontMCMR extends MovieClip {
}
}//package
Section 94
//CartooNfrontMCR (CartooNfrontMCR)
package {
import flash.display.*;
public dynamic class CartooNfrontMCR extends MovieClip {
}
}//package
Section 95
//CartooNlbMC (CartooNlbMC)
package {
import flash.display.*;
public dynamic class CartooNlbMC extends MovieClip {
}
}//package
Section 96
//CartooNlbMCR (CartooNlbMCR)
package {
import flash.display.*;
public dynamic class CartooNlbMCR extends MovieClip {
}
}//package
Section 97
//CartooNlearnMC (CartooNlearnMC)
package {
import flash.display.*;
public dynamic class CartooNlearnMC extends MovieClip {
}
}//package
Section 98
//CartooNlearnWantMC (CartooNlearnWantMC)
package {
import flash.display.*;
public dynamic class CartooNlearnWantMC extends MovieClip {
}
}//package
Section 99
//CartooNlfMC (CartooNlfMC)
package {
import flash.display.*;
public dynamic class CartooNlfMC extends MovieClip {
}
}//package
Section 100
//CartooNlfMCM (CartooNlfMCM)
package {
import flash.display.*;
public dynamic class CartooNlfMCM extends MovieClip {
}
}//package
Section 101
//CartooNlfMCMR (CartooNlfMCMR)
package {
import flash.display.*;
public dynamic class CartooNlfMCMR extends MovieClip {
}
}//package
Section 102
//CartooNlfMCR (CartooNlfMCR)
package {
import flash.display.*;
public dynamic class CartooNlfMCR extends MovieClip {
}
}//package
Section 103
//CartooNlsMC (CartooNlsMC)
package {
import flash.display.*;
public dynamic class CartooNlsMC extends MovieClip {
}
}//package
Section 104
//CartooNlsMCM (CartooNlsMCM)
package {
import flash.display.*;
public dynamic class CartooNlsMCM extends MovieClip {
}
}//package
Section 105
//CartooNlsMCMR (CartooNlsMCMR)
package {
import flash.display.*;
public dynamic class CartooNlsMCMR extends MovieClip {
}
}//package
Section 106
//CartooNlsMCR (CartooNlsMCR)
package {
import flash.display.*;
public dynamic class CartooNlsMCR extends MovieClip {
}
}//package
Section 107
//CartooNplayMC (CartooNplayMC)
package {
import flash.display.*;
public dynamic class CartooNplayMC extends MovieClip {
}
}//package
Section 108
//CartooNplayWantMC (CartooNplayWantMC)
package {
import flash.display.*;
public dynamic class CartooNplayWantMC extends MovieClip {
}
}//package
Section 109
//CartooNrbMC (CartooNrbMC)
package {
import flash.display.*;
public dynamic class CartooNrbMC extends MovieClip {
}
}//package
Section 110
//CartooNrbMCR (CartooNrbMCR)
package {
import flash.display.*;
public dynamic class CartooNrbMCR extends MovieClip {
}
}//package
Section 111
//CartooNrefuseMC (CartooNrefuseMC)
package {
import flash.display.*;
public dynamic class CartooNrefuseMC extends MovieClip {
}
}//package
Section 112
//CartooNrfMC (CartooNrfMC)
package {
import flash.display.*;
public dynamic class CartooNrfMC extends MovieClip {
}
}//package
Section 113
//CartooNrfMCM (CartooNrfMCM)
package {
import flash.display.*;
public dynamic class CartooNrfMCM extends MovieClip {
}
}//package
Section 114
//CartooNrfMCMR (CartooNrfMCMR)
package {
import flash.display.*;
public dynamic class CartooNrfMCMR extends MovieClip {
}
}//package
Section 115
//CartooNrfMCR (CartooNrfMCR)
package {
import flash.display.*;
public dynamic class CartooNrfMCR extends MovieClip {
}
}//package
Section 116
//CartooNrsMC (CartooNrsMC)
package {
import flash.display.*;
public dynamic class CartooNrsMC extends MovieClip {
}
}//package
Section 117
//CartooNrsMCM (CartooNrsMCM)
package {
import flash.display.*;
public dynamic class CartooNrsMCM extends MovieClip {
}
}//package
Section 118
//CartooNrsMCMR (CartooNrsMCMR)
package {
import flash.display.*;
public dynamic class CartooNrsMCMR extends MovieClip {
}
}//package
Section 119
//CartooNrsMCR (CartooNrsMCR)
package {
import flash.display.*;
public dynamic class CartooNrsMCR extends MovieClip {
}
}//package
Section 120
//CartooNsleepWantMC (CartooNsleepWantMC)
package {
import flash.display.*;
public dynamic class CartooNsleepWantMC extends MovieClip {
}
}//package
Section 121
//CartooNtoiletMC (CartooNtoiletMC)
package {
import flash.display.*;
public dynamic class CartooNtoiletMC extends MovieClip {
}
}//package
Section 122
//CartooNtoiletWantMC (CartooNtoiletWantMC)
package {
import flash.display.*;
public dynamic class CartooNtoiletWantMC extends MovieClip {
}
}//package
Section 123
//changeSound (changeSound)
package {
import flash.media.*;
public dynamic class changeSound extends Sound {
}
}//package
Section 124
//Child (Child)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.ui.*;
public class Child extends Sprite {
private var _four:Boolean;
private var _fourChild:Children;
private var _myItemMC:myItemMC;
private var _tempTime:int;// = 1
private var _SporTfMC:SporTfMC;
private var _shopMC:shopMC;
private var _CartooNfMC:CartooNfMC;
private var _hitMouse:HitMouse;
private var _BarBfMC:BarBfMC;
private var _arrayB:Array;
private var _cartoon:int;// = 0
private var _arrayA:Array;
private var _shopSound:shopSound;
private var _sprt:Sprite;
private var _startMC:startMC;
private var transform1:SoundTransform;
private var sc:int;
private var _volume:Number;// = 1
private var sd:int;
private var _lostwinMC:lostwinMC;
private var _timer:Timer;
private var _getMoney:GetMoney;
private var sb:int;
private var _othershopMC:othershopMC;
private var sa:int;
private var _sport:int;// = 0
private var _drug:int;// = 0
private var _LiEfMC:LiEfMC;
private var _smileSound:smileSound;
private var _loseMC:loseMC;
private var _levels:int;// = 1
private var dobleclick:Boolean;// = false
private var _hitSound:hitSound;
private var _floor4MC:floor4MC;
private var _three:Boolean;
private var _sock:int;// = 0
private var _stateMC:stateMC;
private var _tempx1:Number;
private var _tempMill1:int;// = 0
private var _miniItemMC:miniItemMC;
private var _gameSound:gameSound;
private var _myItemOtherMC:myItemOtherMC;
private var _tempy1:Number;
private var _urls1:URLRequest;
private var _day:int;// = 1
private var _cout:int;// = 0
private var _floor3MC:floor3MC;
private var _jiesuanMC:jiesuanMC;
private var _timert:Timer;
private var _SocKfMC:SocKfMC;
private var _int1:int;// = 0
private var _floor:int;// = 1
private var _notenoughMC:notenoughMC;
private var _floor2MC:floor2MC;
private var _backgroundMC:backgroundMC;
private var _helpsMC:helpsMC;
private var _loader:URLLoader;
private var _int:int;// = 0
private var _volume1:Number;// = 1
private var _explainMC:explainMC;
private var _floor1MC:floor1MC;
private var _paint:int;// = 0
private var _array:Array;
private var _game1Sound:game1Sound;
private var _winMC:winMC;
private var _tempMill:int;// = 0
private var _itemArray:Array;
private var _striaMaskMC5:striaMaskMC;
private var _striaMaskMC6:striaMaskMC;
private var _striaMaskMC7:striaMaskMC;
private var _striaMaskMC3:striaMaskMC;
private var _striaMaskMC4:striaMaskMC;
private var channel4:SoundChannel;
private var _striaMaskMC2:striaMaskMC;
private var _changeSound:changeSound;
private var channel5:SoundChannel;
private var channel6:SoundChannel;
private var _striaMaskMC8:striaMaskMC;
private var _striaMaskMC9:striaMaskMC;
private var _striaMaskMC1:striaMaskMC;
private var _twoChild:Children;
private var channel3:SoundChannel;
private var _soundMC:soundMC;
private var channel2:SoundChannel;
private var _time:int;// = 1
private var _two:Boolean;
private var _first:Boolean;// = true
private var channel7:SoundChannel;
private var channel1:SoundChannel;
private var _threeChild:Children;
private var _money:int;// = 50
private var _mouseMC:mouseMC;
private var _book:int;// = 0
private var _lie:int;// = 0
private var _urls:URLRequest;
private var _minigameSound:minigameSound;
private var _next:int;// = 5
private var _helphMC:helphMC;
private var _firstChild:Children;
private var _shoping:Boolean;// = false
private var _winSound:winSound;
public function Child(){
_loader = new URLLoader();
_floor = 1;
_lie = 0;
_sport = 0;
_sock = 0;
_cartoon = 0;
_book = 0;
_paint = 0;
_drug = 0;
_itemArray = [];
_next = 5;
_money = 50;
_cout = 0;
_time = 1;
_tempTime = 1;
_day = 1;
_levels = 1;
_first = true;
_array = [];
_arrayA = [];
_arrayB = [];
_volume = 1;
_volume1 = 1;
_int = 0;
_int1 = 0;
_shoping = false;
_urls = new URLRequest("");
_tempMill = 0;
_tempMill1 = 0;
dobleclick = false;
super();
_miniItemMC = new miniItemMC();
_loader.dataFormat = URLLoaderDataFormat.VARIABLES;
_loader.addEventListener(Event.COMPLETE, onCompelte);
_loader.load(new URLRequest("http.txt"));
_jiesuanMC = new jiesuanMC();
_jiesuanMC.x = 350;
_jiesuanMC.y = 300;
_notenoughMC = new notenoughMC();
_notenoughMC.gotoAndStop(1);
_notenoughMC.x = 350;
_notenoughMC.y = 300;
_explainMC = new explainMC();
_explainMC.stop();
_explainMC.x = 350;
_explainMC.y = 300;
_helpsMC = new helpsMC();
_helpsMC.x = 69;
_helpsMC.y = 29;
_helphMC = new helphMC();
_helphMC.x = 69;
_helphMC.y = 29;
_soundMC = new soundMC();
_soundMC.closeBtn.visible = true;
_soundMC.openBtn.visible = false;
_soundMC.miuBtn.visible = true;
_soundMC.miucBtn.visible = false;
_soundMC.x = 463;
_soundMC.y = 5;
_soundMC.closeBtn.addEventListener(MouseEvent.CLICK, onSclick);
_soundMC.openBtn.addEventListener(MouseEvent.CLICK, onSclick);
_soundMC.miuBtn.addEventListener(MouseEvent.CLICK, onMiubtn);
_soundMC.miucBtn.addEventListener(MouseEvent.CLICK, onMiubtn);
_sprt = new Sprite();
_BarBfMC = new BarBfMC();
_sprt.addChild(_BarBfMC);
_LiEfMC = new LiEfMC();
_SporTfMC = new SporTfMC();
_SocKfMC = new SocKfMC();
_CartooNfMC = new CartooNfMC();
_winMC = new winMC();
_lostwinMC = new lostwinMC();
_loseMC = new loseMC();
_stateMC = new stateMC();
_stateMC.x = 457;
_stateMC.y = 190;
_striaMaskMC1 = new striaMaskMC();
_stateMC.eduStria.addChild(_striaMaskMC1);
_stateMC.eduStria.mask = _striaMaskMC1;
_striaMaskMC2 = new striaMaskMC();
_stateMC.happyStria.addChild(_striaMaskMC2);
_stateMC.happyStria.mask = _striaMaskMC2;
_striaMaskMC3 = new striaMaskMC();
_stateMC.funnyStria.addChild(_striaMaskMC3);
_stateMC.funnyStria.mask = _striaMaskMC3;
_striaMaskMC4 = new striaMaskMC();
_stateMC.healthyStria.addChild(_striaMaskMC4);
_stateMC.healthyStria.mask = _striaMaskMC4;
_striaMaskMC5 = new striaMaskMC();
_stateMC.thirstyStria.addChild(_striaMaskMC5);
_stateMC.thirstyStria.mask = _striaMaskMC5;
_striaMaskMC6 = new striaMaskMC();
_stateMC.hungryStria.addChild(_striaMaskMC6);
_stateMC.hungryStria.mask = _striaMaskMC6;
_striaMaskMC7 = new striaMaskMC();
_stateMC.boredStria.addChild(_striaMaskMC7);
_stateMC.boredStria.mask = _striaMaskMC7;
_striaMaskMC8 = new striaMaskMC();
_stateMC.toiletStria.addChild(_striaMaskMC8);
_stateMC.toiletStria.mask = _striaMaskMC8;
_striaMaskMC9 = new striaMaskMC();
_stateMC.dirtyStria.addChild(_striaMaskMC9);
_stateMC.dirtyStria.mask = _striaMaskMC9;
_backgroundMC = new backgroundMC();
_shopMC = new shopMC();
_othershopMC = new othershopMC();
_myItemMC = new myItemMC();
_myItemOtherMC = new myItemOtherMC();
_startMC = new startMC();
_mouseMC = new mouseMC();
Mouse.hide();
changeText();
init();
}
private function onDrugBtn(_arg1:MouseEvent):void{
var _local2:int;
if (_drug == 0){
if (_first){
if (!_firstChild._NotCMoive){
_firstChild._drugNot = true;
};
};
if (_two){
if (!_twoChild._NotCMoive){
_twoChild._drugNot = true;
};
};
if (_three){
if (!_threeChild._NotCMoive){
_threeChild._drugNot = true;
};
};
if (_four){
if (!_fourChild._NotCMoive){
_fourChild._drugNot = true;
};
};
};
if (_drug != 0){
_local2 = getTimer();
if ((_local2 - _tempMill1) < 500){
dobleclick = true;
} else {
dobleclick = false;
};
_tempMill1 = _local2;
if (!dobleclick){
if (_first){
_firstChild._move = true;
_firstChild._run = false;
};
if (_two){
_twoChild._move = true;
_twoChild._run = false;
};
if (_three){
_threeChild._move = true;
_threeChild._run = false;
};
if (_four){
_fourChild._move = true;
_fourChild._run = false;
};
} else {
if (_first){
_firstChild._move = false;
_firstChild._run = true;
};
if (_two){
_twoChild._move = false;
_twoChild._run = true;
};
if (_three){
_threeChild._move = false;
_threeChild._run = true;
};
if (_four){
_fourChild._move = false;
_fourChild._run = true;
};
};
if (_first){
if (!_firstChild._NotCMoive){
_firstChild._thirstyDo = false;
_firstChild._hungryDo = false;
_firstChild._toiletDo = false;
_firstChild._dirtyDo = false;
_firstChild._sleepDo = false;
_firstChild._learnDo = false;
_firstChild._playDo = false;
_firstChild._drugDo = false;
_firstChild._arrive = false;
_firstChild._mTodrug = true;
_firstChild._mouseHitBtn = true;
_firstChild.tempX = 390;
_firstChild.tempY = 57;
};
};
if (_two){
if (!_twoChild._NotCMoive){
_twoChild._thirstyDo = false;
_twoChild._hungryDo = false;
_twoChild._toiletDo = false;
_twoChild._dirtyDo = false;
_twoChild._sleepDo = false;
_twoChild._learnDo = false;
_twoChild._playDo = false;
_twoChild._drugDo = false;
_twoChild._arrive = false;
_twoChild._mTodrug = true;
_twoChild._mouseHitBtn = true;
_twoChild.tempX = 390;
_twoChild.tempY = 57;
};
};
if (_three){
if (!_threeChild._NotCMoive){
_threeChild._thirstyDo = false;
_threeChild._hungryDo = false;
_threeChild._toiletDo = false;
_threeChild._dirtyDo = false;
_threeChild._sleepDo = false;
_threeChild._learnDo = false;
_threeChild._playDo = false;
_threeChild._drugDo = false;
_threeChild._arrive = false;
_threeChild._mTodrug = true;
_threeChild._mouseHitBtn = true;
_threeChild.tempX = 390;
_threeChild.tempY = 57;
};
};
if (_four){
if (!_fourChild._NotCMoive){
_fourChild._thirstyDo = false;
_fourChild._hungryDo = false;
_fourChild._toiletDo = false;
_fourChild._dirtyDo = false;
_fourChild._sleepDo = false;
_fourChild._learnDo = false;
_fourChild._playDo = false;
_fourChild._drugDo = false;
_fourChild._arrive = false;
_fourChild._mTodrug = true;
_fourChild._mouseHitBtn = true;
_fourChild.tempX = 390;
_fourChild.tempY = 57;
};
};
};
}
private function addStateMC():void{
_stateMC.thirstyBtn.addEventListener(MouseEvent.CLICK, onThirstyBtn);
_stateMC.hungryBtn.addEventListener(MouseEvent.CLICK, onHungryBtn);
_stateMC.boredBtn.addEventListener(MouseEvent.CLICK, onBoredBtn);
_stateMC.toiletBtn.addEventListener(MouseEvent.CLICK, onToiletBtn);
_stateMC.dirtyBtn.addEventListener(MouseEvent.CLICK, onDirtyBtn);
_stateMC.closeBtn.addEventListener(MouseEvent.CLICK, onCloseBtn);
_stateMC.addEventListener(MouseEvent.MOUSE_DOWN, onStateDown);
_stateMC.addEventListener(MouseEvent.MOUSE_UP, onStateUp);
}
private function onFour(_arg1:MouseEvent):void{
_smileSound = new smileSound();
channel6 = _smileSound.play(0, 1);
transform1 = channel6.soundTransform;
transform1.volume = _volume;
channel6.soundTransform = transform1;
_four = true;
_twoChild._mouseHitBtn = true;
_threeChild._mouseHitBtn = true;
_firstChild._mouseHitBtn = true;
_first = false;
_two = false;
_three = false;
addChild(_stateMC);
addStateMC();
stateUpdate();
}
private function myoItemShop(_arg1:MouseEvent){
removeChild(_myItemOtherMC);
_myItemOtherMC.clothBtn.removeEventListener(MouseEvent.CLICK, myItemCloth);
_myItemOtherMC.shopBtn.removeEventListener(MouseEvent.CLICK, myoItemShop);
_myItemOtherMC.bookBtn.removeEventListener(MouseEvent.CLICK, mybook);
addChild(_shopMC);
_shopMC.addChild(_soundMC);
_shopMC.othersBtn.addEventListener(MouseEvent.CLICK, onOthershop);
_shopMC.backBtn.addEventListener(MouseEvent.CLICK, onBack);
_shopMC.buyCartoon.addEventListener(MouseEvent.CLICK, buyCartoon);
_shopMC.buyLie.addEventListener(MouseEvent.CLICK, buyLie);
_shopMC.buySport.addEventListener(MouseEvent.CLICK, buySport);
_shopMC.buySock.addEventListener(MouseEvent.CLICK, buySock);
_shopMC.itemBtn.addEventListener(MouseEvent.CLICK, myItem);
}
private function buyCartoon(_arg1:MouseEvent):void{
if (_money < 70){
_shopMC.addChild(_notenoughMC);
_notenoughMC.gotoAndPlay(1);
};
if (_money >= 70){
_money = (_money - 70);
_shopMC.moneyText.text = String(_money);
_cartoon = (_cartoon + 1);
_shopMC.moneyText.text = String(_money);
_shopMC.buytMC.visible = true;
_shopMC.buytMC.gotoAndPlay(1);
};
}
private function onFirst(_arg1:MouseEvent):void{
_smileSound = new smileSound();
channel6 = _smileSound.play(0, 1);
transform1 = channel6.soundTransform;
transform1.volume = _volume;
channel6.soundTransform = transform1;
_first = true;
_twoChild._mouseHitBtn = true;
_threeChild._mouseHitBtn = true;
_fourChild._mouseHitBtn = true;
_two = false;
_three = false;
_four = false;
addChild(_stateMC);
addStateMC();
stateUpdate();
}
private function onMiubtn(_arg1:MouseEvent):void{
_int1++;
if (_int1 > 1){
_int1 = 0;
};
if ((((_int1 == 0)) && ((_int == 0)))){
_volume1 = 1;
if (_hitMouse != null){
_hitMouse._mvolume = 1;
};
_soundMC.miuBtn.visible = true;
_soundMC.miucBtn.visible = false;
if (_shoping){
channel2 = _shopSound.play(0, 1000);
transform1 = channel2.soundTransform;
transform1.volume = _volume1;
channel2.soundTransform = transform1;
} else {
if (Math.random() > 1){
channel7 = _gameSound.play(0, 1000);
} else {
channel7 = _game1Sound.play(0, 1000);
};
transform1 = channel7.soundTransform;
transform1.volume = _volume1;
channel7.soundTransform = transform1;
};
};
if (_int1 == 1){
_volume1 = 0;
_soundMC.miuBtn.visible = false;
_soundMC.miucBtn.visible = true;
SoundMixer.stopAll();
};
}
private function notEnough(_arg1:MouseEvent):void{
_shopMC.removeChild(_notenoughMC);
}
private function buyLie(_arg1:MouseEvent):void{
if (_money < 110){
_shopMC.addChild(_notenoughMC);
_notenoughMC.gotoAndPlay(1);
};
if (_money >= 110){
_money = (_money - 110);
_shopMC.moneyText.text = String(_money);
_lie = (_lie + 1);
_shopMC.buytMC.visible = true;
_shopMC.buytMC.gotoAndPlay(1);
};
}
private function onDirtyBtn(_arg1:MouseEvent):void{
var _local2:int;
_local2 = getTimer();
if ((_local2 - _tempMill1) < 500){
dobleclick = true;
} else {
dobleclick = false;
};
_tempMill1 = _local2;
if (!dobleclick){
if (_first){
_firstChild._move = true;
_firstChild._run = false;
};
if (_two){
_twoChild._move = true;
_twoChild._run = false;
};
if (_three){
_threeChild._move = true;
_threeChild._run = false;
};
if (_four){
_fourChild._move = true;
_fourChild._run = false;
};
} else {
if (_first){
_firstChild._move = false;
_firstChild._run = true;
};
if (_two){
_twoChild._move = false;
_twoChild._run = true;
};
if (_three){
_threeChild._move = false;
_threeChild._run = true;
};
if (_four){
_fourChild._move = false;
_fourChild._run = true;
};
};
if (_first){
if (!_firstChild._NotCMoive){
_firstChild._thirstyDo = false;
_firstChild._hungryDo = false;
_firstChild._toiletDo = false;
_firstChild._dirtyDo = false;
_firstChild._sleepDo = false;
_firstChild._learnDo = false;
_firstChild._playDo = false;
_firstChild._drugDo = false;
_firstChild._arrive = false;
_firstChild._mTodirty = true;
_firstChild._dirtyAdd = (100 - _firstChild._dirty);
if (_firstChild._dirtyAdd > 50){
_firstChild._dirtyAdd = 50;
};
_firstChild._mouseHitBtn = true;
_firstChild.tempX = 307;
_firstChild.tempY = 120;
};
};
if (_two){
if (!_twoChild._NotCMoive){
_twoChild._thirstyDo = false;
_twoChild._hungryDo = false;
_twoChild._toiletDo = false;
_twoChild._dirtyDo = false;
_twoChild._sleepDo = false;
_twoChild._learnDo = false;
_twoChild._playDo = false;
_twoChild._drugDo = false;
_twoChild._arrive = false;
_twoChild._mTodirty = true;
_twoChild._dirtyAdd = (100 - _twoChild._dirty);
if (_twoChild._dirtyAdd > 50){
_twoChild._dirtyAdd = 50;
};
_twoChild._mouseHitBtn = true;
_twoChild.tempX = 307;
_twoChild.tempY = 120;
};
};
if (_three){
if (!_threeChild._NotCMoive){
_threeChild._thirstyDo = false;
_threeChild._hungryDo = false;
_threeChild._toiletDo = false;
_threeChild._dirtyDo = false;
_threeChild._sleepDo = false;
_threeChild._learnDo = false;
_threeChild._playDo = false;
_threeChild._drugDo = false;
_threeChild._arrive = false;
_threeChild._mTodirty = true;
_threeChild._dirtyAdd = (100 - _threeChild._dirty);
if (_threeChild._dirtyAdd > 50){
_threeChild._dirtyAdd = 50;
};
_threeChild._mouseHitBtn = true;
_threeChild.tempX = 307;
_threeChild.tempY = 120;
};
};
if (_four){
if (!_fourChild._NotCMoive){
_fourChild._thirstyDo = false;
_fourChild._hungryDo = false;
_fourChild._toiletDo = false;
_fourChild._dirtyDo = false;
_fourChild._sleepDo = false;
_fourChild._learnDo = false;
_fourChild._playDo = false;
_fourChild._drugDo = false;
_fourChild._arrive = false;
_fourChild._mTodirty = true;
_fourChild._dirtyAdd = (100 - _fourChild._dirty);
if (_fourChild._dirtyAdd > 50){
_fourChild._dirtyAdd = 50;
};
_fourChild._mouseHitBtn = true;
_fourChild.tempX = 307;
_fourChild.tempY = 120;
};
};
}
private function onStateUp(_arg1:MouseEvent):void{
_stateMC.stopDrag();
_stateMC.x = (mouseX - _tempx1);
_stateMC.y = (mouseY - _tempy1);
addEventListener(MouseEvent.CLICK, onMouseClick1);
}
private function onCloseBtn(_arg1:MouseEvent):void{
removeChild(_stateMC);
removeStateMC();
}
private function mycartoon(_arg1:MouseEvent):void{
if (_cartoon != 0){
if (((((((_first) || (_two))) || (_three))) || (_four))){
_changeSound = new changeSound();
channel3 = _changeSound.play(0, 1);
transform1 = channel3.soundTransform;
transform1.volume = _volume;
channel3.soundTransform = transform1;
};
if (_first){
_cartoon = (_cartoon - 1);
_sprt.removeChildAt(0);
_sprt.addChild(_CartooNfMC);
if (_firstChild._cloth == 2){
_lie = (_lie + 1);
};
if (_firstChild._cloth == 3){
_sport = (_sport + 1);
};
if (_firstChild._cloth == 4){
_sock = (_sock + 1);
};
if (_firstChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_firstChild._cloth = 5;
};
if (_two){
_cartoon = (_cartoon - 1);
_sprt.removeChildAt(0);
_sprt.addChild(_CartooNfMC);
if (_twoChild._cloth == 2){
_lie = (_lie + 1);
};
if (_twoChild._cloth == 3){
_sport = (_sport + 1);
};
if (_twoChild._cloth == 4){
_sock = (_sock + 1);
};
if (_twoChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_twoChild._cloth = 5;
};
if (_three){
_cartoon = (_cartoon - 1);
_sprt.removeChildAt(0);
_sprt.addChild(_CartooNfMC);
if (_threeChild._cloth == 2){
_lie = (_lie + 1);
};
if (_threeChild._cloth == 3){
_sport = (_sport + 1);
};
if (_threeChild._cloth == 4){
_sock = (_sock + 1);
};
if (_threeChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_threeChild._cloth = 5;
};
if (_four){
_cartoon = (_cartoon - 1);
_sprt.removeChildAt(0);
_sprt.addChild(_CartooNfMC);
if (_fourChild._cloth == 2){
_lie = (_lie + 1);
};
if (_fourChild._cloth == 3){
_sport = (_sport + 1);
};
if (_fourChild._cloth == 4){
_sock = (_sock + 1);
};
if (_fourChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_fourChild._cloth = 5;
};
_myItemMC.cartoonText.text = String(_cartoon);
_myItemMC.lieText.text = String(_lie);
_myItemMC.sockText.text = String(_sock);
_myItemMC.sportText.text = String(_sport);
_miniItemMC.cartoonText.text = String(_cartoon);
_miniItemMC.lieText.text = String(_lie);
_miniItemMC.sockText.text = String(_sock);
_miniItemMC.sportText.text = String(_sport);
};
}
private function mypaint3(_arg1:MouseEvent):void{
if (_paint != 0){
if (_floor != 3){
_floor = 3;
_backgroundMC.removeChildAt(0);
_backgroundMC.addChildAt(_floor3MC, 0);
_paint = (_paint - 1);
_myItemOtherMC.paintText.text = String(_paint);
_miniItemMC.paint1Text.text = String(_paint);
_miniItemMC.paint2Text.text = String(_paint);
_miniItemMC.paint3Text.text = String(_paint);
_miniItemMC.paint4Text.text = String(_paint);
_backgroundMC.moneyText.text = String(_money);
};
};
}
private function onGclick(_arg1:MouseEvent):void{
removeChild(_getMoney);
removeChild(_jiesuanMC);
_jiesuanMC.jsMC.closeBtn.removeEventListener(MouseEvent.CLICK, onGclick);
if (Math.random() > 1){
channel7 = _gameSound.play(0, 1000);
} else {
channel7 = _game1Sound.play(0, 1000);
};
transform1 = channel7.soundTransform;
transform1.volume = _volume1;
channel7.soundTransform = transform1;
_backgroundMC.levelText.text = String(_levels);
if (_levels == 2){
_helpsMC.gotoAndStop(30);
addChild(_twoChild);
_twoChild.y = 300;
_twoChild.addEventListener(MouseEvent.CLICK, onTwo);
};
if (_levels == 3){
_helpsMC.gotoAndStop(54);
addChild(_threeChild);
_threeChild.y = 300;
_threeChild.addEventListener(MouseEvent.CLICK, onThree);
};
if (_levels == 4){
_helpsMC.gotoAndStop(73);
addChild(_fourChild);
_fourChild.y = 300;
_fourChild.addEventListener(MouseEvent.CLICK, onFour);
};
_timer.start();
}
private function notEnough1(_arg1:MouseEvent):void{
_othershopMC.removeChild(_notenoughMC);
}
private function onEback(_arg1:MouseEvent):void{
_explainMC.gotoAndStop(5);
}
private function myItemoBack(_arg1:MouseEvent):void{
_miniItemMC.paint1Btn.addEventListener(MouseEvent.CLICK, mypaint1);
_miniItemMC.paint2Btn.addEventListener(MouseEvent.CLICK, mypaint2);
_miniItemMC.paint3Btn.addEventListener(MouseEvent.CLICK, mypaint3);
_miniItemMC.paint4Btn.addEventListener(MouseEvent.CLICK, mypaint4);
_miniItemMC.sportBtn.addEventListener(MouseEvent.CLICK, mysport);
_miniItemMC.sockBtn.addEventListener(MouseEvent.CLICK, mysock);
_miniItemMC.lieBtn.addEventListener(MouseEvent.CLICK, mylie);
_miniItemMC.cartoonBtn.addEventListener(MouseEvent.CLICK, mycartoon);
_miniItemMC.bookBtn.addEventListener(MouseEvent.CLICK, mybook);
_miniItemMC.lieText.text = String(_lie);
_miniItemMC.sportText.text = String(_sport);
_miniItemMC.sockText.text = String(_sock);
_miniItemMC.cartoonText.text = String(_cartoon);
_miniItemMC.bookText.text = String(_book);
_miniItemMC.drugText.text = String(_drug);
_miniItemMC.paint1Text.text = String(_paint);
_miniItemMC.paint2Text.text = String(_paint);
_miniItemMC.paint3Text.text = String(_paint);
_miniItemMC.paint4Text.text = String(_paint);
_backgroundMC.addChild(_soundMC);
channel2.stop();
if (Math.random() > 1){
channel7 = _gameSound.play(0, 1000);
} else {
channel7 = _game1Sound.play(0, 1000);
};
transform1 = channel7.soundTransform;
transform1.volume = _volume1;
channel7.soundTransform = transform1;
_shoping = false;
removeChild(_myItemOtherMC);
_myItemOtherMC.clothBtn.removeEventListener(MouseEvent.CLICK, myItemCloth);
_myItemOtherMC.shopBtn.removeEventListener(MouseEvent.CLICK, myoItemShop);
_myItemOtherMC.bookBtn.removeEventListener(MouseEvent.CLICK, mybook);
_myItemOtherMC.backBtn.removeEventListener(MouseEvent.CLICK, myItemBack);
_myItemOtherMC.removeChild(_sprt);
_timer.start();
}
private function onMouseMoves(_arg1:MouseEvent):void{
Mouse.hide();
addChild(_mouseMC);
_mouseMC.mouseEnabled = false;
_mouseMC.gotoAndStop(1);
_mouseMC.x = mouseX;
_mouseMC.y = mouseY;
}
private function myItemCloth(_arg1:MouseEvent):void{
addChild(_myItemMC);
_myItemMC.addChild(_soundMC);
_myItemMC.addChild(_sprt);
_myItemMC.moneyText.text = String(_money);
_myItemMC.lieText.text = String(_lie);
_myItemMC.sportText.text = String(_sport);
_myItemMC.sockText.text = String(_sock);
_myItemMC.cartoonText.text = String(_cartoon);
_myItemMC.othersBtn.addEventListener(MouseEvent.CLICK, myItemOther);
_myItemMC.backBtn.addEventListener(MouseEvent.CLICK, myItemBack);
_myItemMC.sportBtn.addEventListener(MouseEvent.CLICK, mysport);
_myItemMC.sockBtn.addEventListener(MouseEvent.CLICK, mysock);
_myItemMC.lieBtn.addEventListener(MouseEvent.CLICK, mylie);
_myItemMC.cartoonBtn.addEventListener(MouseEvent.CLICK, mycartoon);
_myItemMC.shopBtn.addEventListener(MouseEvent.CLICK, myItemShop);
removeChild(_myItemOtherMC);
_myItemOtherMC.clothBtn.removeEventListener(MouseEvent.CLICK, myItemCloth);
_myItemOtherMC.shopBtn.removeEventListener(MouseEvent.CLICK, myoItemShop);
_myItemOtherMC.bookBtn.removeEventListener(MouseEvent.CLICK, mybook);
}
private function myItemShop(_arg1:MouseEvent):void{
_notenoughMC.closeBtn.addEventListener(MouseEvent.CLICK, notEnough);
addChild(_shopMC);
_shopMC.addChild(_soundMC);
_shopMC.othersBtn.addEventListener(MouseEvent.CLICK, onOthershop);
_shopMC.backBtn.addEventListener(MouseEvent.CLICK, onBack);
_shopMC.buyCartoon.addEventListener(MouseEvent.CLICK, buyCartoon);
_shopMC.buyLie.addEventListener(MouseEvent.CLICK, buyLie);
_shopMC.buySport.addEventListener(MouseEvent.CLICK, buySport);
_shopMC.buySock.addEventListener(MouseEvent.CLICK, buySock);
_shopMC.itemBtn.addEventListener(MouseEvent.CLICK, myItem);
removeChild(_myItemMC);
_myItemMC.othersBtn.removeEventListener(MouseEvent.CLICK, myItemOther);
_myItemMC.backBtn.removeEventListener(MouseEvent.CLICK, myItemBack);
_myItemMC.sportBtn.removeEventListener(MouseEvent.CLICK, mysport);
_myItemMC.sockBtn.removeEventListener(MouseEvent.CLICK, mysock);
_myItemMC.lieBtn.removeEventListener(MouseEvent.CLICK, mylie);
_myItemMC.cartoonBtn.removeEventListener(MouseEvent.CLICK, mycartoon);
_myItemMC.shopBtn.removeEventListener(MouseEvent.CLICK, myItemShop);
}
private function buyBook(_arg1:MouseEvent):void{
if (_money < 50){
_othershopMC.addChild(_notenoughMC);
_notenoughMC.gotoAndPlay(1);
};
if (_money >= 50){
_money = (_money - 50);
_othershopMC.moneyText.text = String(_money);
_book = (_book + 1);
_othershopMC.buytMC.visible = true;
_othershopMC.buytMC.gotoAndPlay(1);
};
}
private function mypaint1(_arg1:MouseEvent):void{
if (_paint != 0){
if (_floor != 1){
_floor = 1;
_backgroundMC.removeChildAt(0);
_backgroundMC.addChildAt(_floor1MC, 0);
_paint = (_paint - 1);
_myItemOtherMC.paintText.text = String(_paint);
_miniItemMC.paint1Text.text = String(_paint);
_miniItemMC.paint2Text.text = String(_paint);
_miniItemMC.paint3Text.text = String(_paint);
_miniItemMC.paint4Text.text = String(_paint);
_backgroundMC.moneyText.text = String(_money);
};
};
}
private function mypaint4(_arg1:MouseEvent):void{
if (_paint != 0){
if (_floor != 4){
_floor = 4;
_backgroundMC.removeChildAt(0);
_backgroundMC.addChildAt(_floor4MC, 0);
_paint = (_paint - 1);
_myItemOtherMC.paintText.text = String(_paint);
_miniItemMC.paint1Text.text = String(_paint);
_miniItemMC.paint2Text.text = String(_paint);
_miniItemMC.paint3Text.text = String(_paint);
_miniItemMC.paint4Text.text = String(_paint);
_backgroundMC.moneyText.text = String(_money);
};
};
}
private function mybook(_arg1:MouseEvent):void{
if (_book != 0){
if (_first){
_book = (_book - 1);
if (_firstChild._edu <= 95){
_firstChild._edu = (_firstChild._edu + 5);
} else {
_firstChild._edu = 100;
};
};
if (_two){
_book = (_book - 1);
if (_twoChild._edu <= 95){
_twoChild._edu = (_twoChild._edu + 5);
} else {
_twoChild._edu = 100;
};
};
if (_three){
_book = (_book - 1);
if (_threeChild._edu <= 95){
_threeChild._edu = (_threeChild._edu + 5);
} else {
_threeChild._edu = 100;
};
};
if (_four){
_book = (_book - 1);
if (_fourChild._edu <= 95){
_fourChild._edu = (_fourChild._edu + 5);
} else {
_fourChild._edu = 100;
};
};
_myItemOtherMC.bookText.text = String(_book);
_miniItemMC.bookText.text = String(_book);
};
}
private function onExplain(_arg1:MouseEvent):void{
addChild(_explainMC);
_explainMC.gotoAndPlay(1);
_explainMC.closeBtn.addEventListener(MouseEvent.CLICK, onEclose);
_explainMC.nextBtn.addEventListener(MouseEvent.CLICK, onEnext);
_explainMC.backBtn.addEventListener(MouseEvent.CLICK, onEback);
}
private function mouseOUT(_arg1:MouseEvent):void{
_arg1.target.textColor = 0xFFFFFF;
}
private function onTimerThree(_arg1:TimerEvent):void{
_getMoney.focusRect = false;
stage.focus = _getMoney;
_getMoney.getMoneyOnTimer();
if (_getMoney._restMoney != 0){
addChildAt(_backgroundMC, 0);
channel5.stop();
_money = (_money + _getMoney._restMoney);
_getMoney._restMoney = 0;
addChild(_mouseMC);
addEventListener(MouseEvent.MOUSE_MOVE, onMouseMoves);
addEventListener(MouseEvent.CLICK, onMouseClick);
_timert.removeEventListener(TimerEvent.TIMER, onTimerThree);
_timert.stop();
addChild(_jiesuanMC);
_jiesuanMC.gotoAndPlay(1);
_jiesuanMC.jsMC.moneyText.text = String(_money);
_backgroundMC.moneyText.text = String(_money);
_jiesuanMC.jsMC.closeBtn.addEventListener(MouseEvent.CLICK, onGclick);
};
}
private function onHelps(_arg1:MouseEvent):void{
removeChild(_helphMC);
_helphMC.helpcloseBtn.removeEventListener(MouseEvent.CLICK, onHelps);
_timer.start();
}
private function onTimer(_arg1:TimerEvent):void{
var _local2:int;
var _local3:int;
if (_firstChild._drugDo){
_drug = (_drug - _firstChild.reDrug);
};
if (_twoChild._drugDo){
_drug = (_drug - _twoChild.reDrug);
};
if (_threeChild._drugDo){
_drug = (_drug - _threeChild.reDrug);
};
if (_fourChild._drugDo){
_drug = (_drug - _fourChild.reDrug);
};
_cout++;
_time = Math.ceil((_cout / 1500));
if (_tempTime != _time){
_money = (_money + 5);
};
_tempTime = _time;
if (_cout >= 36000){
_cout = 0;
_day = (_day + 1);
};
if (_time < 10){
_backgroundMC.timeText.text = (("0" + String(_time)) + ":00");
} else {
_backgroundMC.timeText.text = (String(_time) + ":00");
};
_backgroundMC.dayText.text = String(_day);
if ((_cout % 50) == 0){
_miniItemMC.drugText.text = String(_drug);
_shopMC.moneyText.text = String(_money);
_myItemMC.moneyText.text = String(_money);
_backgroundMC.moneyText.text = String(_money);
_myItemOtherMC.moneyText.text = String(_money);
};
_firstChild.clidOnTimer();
if (_levels == 2){
_twoChild.clidOnTimer();
};
if (_levels == 3){
_twoChild.clidOnTimer();
_threeChild.clidOnTimer();
};
if (_levels == 4){
_twoChild.clidOnTimer();
_threeChild.clidOnTimer();
_fourChild.clidOnTimer();
};
if ((_cout % 75) == 0){
stateUpdate();
};
if ((((_firstChild._happy >= 65)) && ((_levels == 1)))){
channel7.stop();
_timer.stop();
addChild(_winMC);
_winSound = new winSound();
channel4 = _winSound.play(0, 1);
transform1 = channel4.soundTransform;
transform1.volume = _volume;
channel4.soundTransform = transform1;
_winMC.addChild(_soundMC);
_winMC.gotoAndPlay(1);
_winMC.winmc.nextBtn.addEventListener(MouseEvent.CLICK, onNext);
_levels = 2;
};
if ((((((((((_firstChild._happy >= 65)) && ((_firstChild._edu >= 55)))) && ((_twoChild._happy >= 65)))) && ((_twoChild._edu >= 55)))) && ((_levels == 2)))){
channel7.stop();
_timer.stop();
addChild(_winMC);
_winSound = new winSound();
channel4 = _winSound.play(0, 1);
transform1 = channel4.soundTransform;
transform1.volume = _volume;
channel4.soundTransform = transform1;
_winMC.addChild(_soundMC);
_winMC.gotoAndPlay(1);
_winMC.winmc.nextBtn.addEventListener(MouseEvent.CLICK, onNext);
_levels = 3;
};
if ((((((((((((((_firstChild._happy >= 70)) && ((_firstChild._edu >= 60)))) && ((_twoChild._happy >= 70)))) && ((_twoChild._edu >= 60)))) && ((_threeChild._happy >= 70)))) && ((_threeChild._edu >= 60)))) && ((_levels == 3)))){
channel7.stop();
_timer.stop();
addChild(_winMC);
_winSound = new winSound();
channel4 = _winSound.play(0, 1);
transform1 = channel4.soundTransform;
transform1.volume = _volume;
channel4.soundTransform = transform1;
_winMC.addChild(_soundMC);
_winMC.gotoAndPlay(1);
_winMC.winmc.nextBtn.addEventListener(MouseEvent.CLICK, onNext);
_levels = 4;
};
if ((((((((((((((((((_firstChild._happy >= 75)) && ((_firstChild._edu >= 65)))) && ((_twoChild._happy >= 75)))) && ((_twoChild._edu >= 65)))) && ((_threeChild._happy >= 75)))) && ((_threeChild._edu >= 65)))) && ((_fourChild._happy >= 75)))) && ((_fourChild._edu >= 65)))) && ((_levels == 4)))){
channel7.stop();
_timer.stop();
addChild(_lostwinMC);
_winSound = new winSound();
channel4 = _winSound.play(0, 1);
transform1 = channel4.soundTransform;
transform1.volume = _volume;
channel4.soundTransform = transform1;
_lostwinMC.gotoAndPlay(2);
_lostwinMC.moreBtn.addEventListener(MouseEvent.CLICK, onMoregame);
_lostwinMC.mainBtn.addEventListener(MouseEvent.CLICK, onWinMain);
};
if (((((((_firstChild._death) || (_twoChild._death))) || (_threeChild._death))) || (_fourChild._death))){
channel7.stop();
addChild(_loseMC);
_timer.stop();
_loseMC.gotoAndPlay(2);
_loseMC.restartBtn.addEventListener(MouseEvent.CLICK, onRest);
_loseMC.moreBtn.addEventListener(MouseEvent.CLICK, onMoregame);
_loseMC.mainBtn.addEventListener(MouseEvent.CLICK, onMain);
};
if ((_cout % 25) == 0){
if (_levels == 2){
_array = [_firstChild.y, _twoChild.y];
_arrayA = [_firstChild, _twoChild];
sa = getChildIndex(_firstChild);
sb = getChildIndex(_twoChild);
_arrayB = [sa, sb];
};
if (_levels == 3){
_array = [_firstChild.y, _twoChild.y, _threeChild.y];
_arrayA = [_firstChild, _twoChild, _threeChild];
sa = getChildIndex(_firstChild);
sb = getChildIndex(_twoChild);
sc = getChildIndex(_threeChild);
_arrayB = [sa, sb, sc];
};
if (_levels == 4){
_array = [_firstChild.y, _twoChild.y, _threeChild.y, _fourChild.y];
_arrayA = [_firstChild, _twoChild, _threeChild, _fourChild];
sa = getChildIndex(_firstChild);
sb = getChildIndex(_twoChild);
sc = getChildIndex(_threeChild);
sd = getChildIndex(_fourChild);
_arrayB = [sa, sb, sc, sd];
};
if (_levels > 1){
_array.sort(Array.NUMERIC);
_arrayB.sort(Array.NUMERIC);
_local2 = 0;
while (_local2 < _array.length) {
_local3 = 0;
while (_local3 < _array.length) {
if (_arrayA[_local3].y == _array[_local2]){
setChildIndex(_arrayA[_local3], _arrayB[_local2]);
};
_local3++;
};
_local2++;
};
};
};
}
private function onLearnBtn(_arg1:MouseEvent):void{
var _local2:int;
_local2 = getTimer();
if ((_local2 - _tempMill1) < 500){
dobleclick = true;
} else {
dobleclick = false;
};
_tempMill1 = _local2;
if (!dobleclick){
if (_first){
_firstChild._move = true;
_firstChild._run = false;
};
if (_two){
_twoChild._move = true;
_twoChild._run = false;
};
if (_three){
_threeChild._move = true;
_threeChild._run = false;
};
if (_four){
_fourChild._move = true;
_fourChild._run = false;
};
} else {
if (_first){
_firstChild._move = false;
_firstChild._run = true;
};
if (_two){
_twoChild._move = false;
_twoChild._run = true;
};
if (_three){
_threeChild._move = false;
_threeChild._run = true;
};
if (_four){
_fourChild._move = false;
_fourChild._run = true;
};
};
if (_first){
if (!_firstChild._NotCMoive){
_firstChild._thirstyDo = false;
_firstChild._hungryDo = false;
_firstChild._toiletDo = false;
_firstChild._dirtyDo = false;
_firstChild._sleepDo = false;
_firstChild._learnDo = false;
_firstChild._playDo = false;
_firstChild._drugDo = false;
_firstChild._arrive = false;
_firstChild._mTobored = true;
_firstChild._mouseHitBtn = true;
_firstChild.tempX = 560;
_firstChild.tempY = 200;
_firstChild._mTolearn = true;
_firstChild._boredAdd = -10;
};
};
if (_two){
if (!_twoChild._NotCMoive){
_twoChild._thirstyDo = false;
_twoChild._hungryDo = false;
_twoChild._toiletDo = false;
_twoChild._dirtyDo = false;
_twoChild._sleepDo = false;
_twoChild._learnDo = false;
_twoChild._playDo = false;
_twoChild._drugDo = false;
_twoChild._arrive = false;
_twoChild._mTobored = true;
_twoChild._mouseHitBtn = true;
_twoChild.tempX = 560;
_twoChild.tempY = 200;
_twoChild._mTolearn = true;
_twoChild._boredAdd = -10;
};
};
if (_three){
if (!_threeChild._NotCMoive){
_threeChild._thirstyDo = false;
_threeChild._hungryDo = false;
_threeChild._toiletDo = false;
_threeChild._dirtyDo = false;
_threeChild._sleepDo = false;
_threeChild._learnDo = false;
_threeChild._playDo = false;
_threeChild._drugDo = false;
_threeChild._arrive = false;
_threeChild._mTobored = true;
_threeChild._mouseHitBtn = true;
_threeChild.tempX = 560;
_threeChild.tempY = 200;
_threeChild._mTolearn = true;
_threeChild._boredAdd = -10;
};
};
if (_four){
if (!_fourChild._NotCMoive){
_fourChild._thirstyDo = false;
_fourChild._hungryDo = false;
_fourChild._toiletDo = false;
_fourChild._dirtyDo = false;
_fourChild._sleepDo = false;
_fourChild._learnDo = false;
_fourChild._playDo = false;
_fourChild._drugDo = false;
_fourChild._arrive = false;
_fourChild._mTobored = true;
_fourChild._mouseHitBtn = true;
_fourChild.tempX = 560;
_fourChild.tempY = 200;
_fourChild._mTolearn = true;
_fourChild._boredAdd = -10;
};
};
}
private function stateUpdate():void{
if (_first){
_stateMC.thirstyText.text = String(Math.round(_firstChild._thirsty));
_stateMC.hungryText.text = String(Math.round(_firstChild._hungry));
_stateMC.boredText.text = String(Math.round(_firstChild._bored));
_stateMC.toiletText.text = String(Math.round(_firstChild._toilet));
_stateMC.dirtyText.text = String(Math.round(_firstChild._dirty));
_stateMC.eduText.text = String(Math.round(_firstChild._edu));
_stateMC.happyText.text = String(Math.round(_firstChild._happy));
_stateMC.funnyText.text = String(Math.round(_firstChild._funny));
_stateMC.healthyText.text = String(Math.round(_firstChild._healthy));
_striaMaskMC1.x = _firstChild._edu;
_striaMaskMC2.x = _firstChild._happy;
_striaMaskMC3.x = _firstChild._funny;
_striaMaskMC4.x = _firstChild._healthy;
_striaMaskMC5.x = _firstChild._thirsty;
_striaMaskMC6.x = _firstChild._hungry;
_striaMaskMC7.x = _firstChild._bored;
_striaMaskMC8.x = _firstChild._toilet;
_striaMaskMC9.x = _firstChild._dirty;
};
if (_two){
_stateMC.thirstyText.text = String(Math.round(_twoChild._thirsty));
_stateMC.hungryText.text = String(Math.round(_twoChild._hungry));
_stateMC.boredText.text = String(Math.round(_twoChild._bored));
_stateMC.toiletText.text = String(Math.round(_twoChild._toilet));
_stateMC.dirtyText.text = String(Math.round(_twoChild._dirty));
_stateMC.eduText.text = String(Math.round(_twoChild._edu));
_stateMC.happyText.text = String(Math.round(_twoChild._happy));
_stateMC.funnyText.text = String(Math.round(_twoChild._funny));
_stateMC.healthyText.text = String(Math.round(_twoChild._healthy));
_striaMaskMC1.x = _twoChild._edu;
_striaMaskMC2.x = _twoChild._happy;
_striaMaskMC3.x = _twoChild._funny;
_striaMaskMC4.x = _twoChild._healthy;
_striaMaskMC5.x = _twoChild._thirsty;
_striaMaskMC6.x = _twoChild._hungry;
_striaMaskMC7.x = _twoChild._bored;
_striaMaskMC8.x = _twoChild._toilet;
_striaMaskMC9.x = _twoChild._dirty;
};
if (_three){
_stateMC.thirstyText.text = String(Math.round(_threeChild._thirsty));
_stateMC.hungryText.text = String(Math.round(_threeChild._hungry));
_stateMC.boredText.text = String(Math.round(_threeChild._bored));
_stateMC.toiletText.text = String(Math.round(_threeChild._toilet));
_stateMC.dirtyText.text = String(Math.round(_threeChild._dirty));
_stateMC.eduText.text = String(Math.round(_threeChild._edu));
_stateMC.happyText.text = String(Math.round(_threeChild._happy));
_stateMC.funnyText.text = String(Math.round(_threeChild._funny));
_stateMC.healthyText.text = String(Math.round(_threeChild._healthy));
_striaMaskMC1.x = _threeChild._edu;
_striaMaskMC2.x = _threeChild._happy;
_striaMaskMC3.x = _threeChild._funny;
_striaMaskMC4.x = _threeChild._healthy;
_striaMaskMC5.x = _threeChild._thirsty;
_striaMaskMC6.x = _threeChild._hungry;
_striaMaskMC7.x = _threeChild._bored;
_striaMaskMC8.x = _threeChild._toilet;
_striaMaskMC9.x = _threeChild._dirty;
};
if (_four){
_stateMC.thirstyText.text = String(Math.round(_fourChild._thirsty));
_stateMC.hungryText.text = String(Math.round(_fourChild._hungry));
_stateMC.boredText.text = String(Math.round(_fourChild._bored));
_stateMC.toiletText.text = String(Math.round(_fourChild._toilet));
_stateMC.dirtyText.text = String(Math.round(_fourChild._dirty));
_stateMC.eduText.text = String(Math.round(_fourChild._edu));
_stateMC.happyText.text = String(Math.round(_fourChild._happy));
_stateMC.funnyText.text = String(Math.round(_fourChild._funny));
_stateMC.healthyText.text = String(Math.round(_fourChild._healthy));
_striaMaskMC1.x = _fourChild._edu;
_striaMaskMC2.x = _fourChild._happy;
_striaMaskMC3.x = _fourChild._funny;
_striaMaskMC4.x = _fourChild._healthy;
_striaMaskMC5.x = _fourChild._thirsty;
_striaMaskMC6.x = _fourChild._hungry;
_striaMaskMC7.x = _fourChild._bored;
_striaMaskMC8.x = _fourChild._toilet;
_striaMaskMC9.x = _fourChild._dirty;
};
}
private function mypaint2(_arg1:MouseEvent):void{
if (_paint != 0){
if (_floor != 2){
_floor = 2;
_backgroundMC.removeChildAt(0);
_backgroundMC.addChildAt(_floor2MC, 0);
_paint = (_paint - 1);
_myItemOtherMC.paintText.text = String(_paint);
_miniItemMC.paint1Text.text = String(_paint);
_miniItemMC.paint2Text.text = String(_paint);
_miniItemMC.paint3Text.text = String(_paint);
_miniItemMC.paint4Text.text = String(_paint);
_backgroundMC.moneyText.text = String(_money);
};
};
}
private function onRest(_arg1:MouseEvent):void{
if (Math.random() > 1){
channel7 = _gameSound.play(0, 1000);
} else {
channel7 = _game1Sound.play(0, 1000);
};
transform1 = channel7.soundTransform;
transform1.volume = _volume1;
channel7.soundTransform = transform1;
if (_levels == 1){
_firstChild.removeEventListener(MouseEvent.CLICK, onFirst);
removeChild(_firstChild);
_firstChild = new Children();
addChild(_firstChild);
_firstChild.addEventListener(MouseEvent.CLICK, onFirst);
};
if (_levels == 2){
_firstChild.removeEventListener(MouseEvent.CLICK, onFirst);
removeChild(_firstChild);
_firstChild = new Children();
addChild(_firstChild);
_firstChild.addEventListener(MouseEvent.CLICK, onFirst);
_twoChild.removeEventListener(MouseEvent.CLICK, onTwo);
removeChild(_twoChild);
_twoChild = new Children();
addChild(_twoChild);
_twoChild.addEventListener(MouseEvent.CLICK, onTwo);
};
if (_levels == 3){
_firstChild.removeEventListener(MouseEvent.CLICK, onFirst);
removeChild(_firstChild);
_firstChild = new Children();
addChild(_firstChild);
_firstChild.addEventListener(MouseEvent.CLICK, onFirst);
_twoChild.removeEventListener(MouseEvent.CLICK, onTwo);
removeChild(_twoChild);
_twoChild = new Children();
addChild(_twoChild);
_twoChild.addEventListener(MouseEvent.CLICK, onTwo);
_threeChild.removeEventListener(MouseEvent.CLICK, onThree);
removeChild(_threeChild);
_threeChild = new Children();
addChild(_threeChild);
_threeChild.addEventListener(MouseEvent.CLICK, onThree);
};
if (_levels == 4){
_firstChild.removeEventListener(MouseEvent.CLICK, onFirst);
removeChild(_firstChild);
_firstChild = new Children();
addChild(_firstChild);
_firstChild.addEventListener(MouseEvent.CLICK, onFirst);
_twoChild.removeEventListener(MouseEvent.CLICK, onTwo);
removeChild(_twoChild);
_twoChild = new Children();
addChild(_twoChild);
_twoChild.addEventListener(MouseEvent.CLICK, onTwo);
_threeChild.removeEventListener(MouseEvent.CLICK, onThree);
removeChild(_threeChild);
_threeChild = new Children();
addChild(_threeChild);
_threeChild.addEventListener(MouseEvent.CLICK, onThree);
_fourChild.removeEventListener(MouseEvent.CLICK, onFour);
removeChild(_fourChild);
_fourChild = new Children();
addChild(_fourChild);
_fourChild.addEventListener(MouseEvent.CLICK, onFour);
};
_timer.start();
removeChild(_loseMC);
_loseMC.stop();
_loseMC.restartBtn.removeEventListener(MouseEvent.CLICK, onRest);
_loseMC.moreBtn.removeEventListener(MouseEvent.CLICK, onMoregame);
_loseMC.mainBtn.removeEventListener(MouseEvent.CLICK, onMain);
}
private function buySport(_arg1:MouseEvent):void{
if (_money < 90){
_shopMC.addChild(_notenoughMC);
_notenoughMC.gotoAndPlay(1);
};
if (_money >= 90){
_money = (_money - 90);
_shopMC.moneyText.text = String(_money);
_sport = (_sport + 1);
_shopMC.buytMC.visible = true;
_shopMC.buytMC.gotoAndPlay(1);
};
}
private function removeStateMC():void{
_stateMC.thirstyBtn.removeEventListener(MouseEvent.CLICK, onThirstyBtn);
_stateMC.hungryBtn.removeEventListener(MouseEvent.CLICK, onHungryBtn);
_stateMC.boredBtn.removeEventListener(MouseEvent.CLICK, onBoredBtn);
_stateMC.toiletBtn.removeEventListener(MouseEvent.CLICK, onToiletBtn);
_stateMC.dirtyBtn.removeEventListener(MouseEvent.CLICK, onDirtyBtn);
_stateMC.closeBtn.removeEventListener(MouseEvent.CLICK, onCloseBtn);
_stateMC.removeEventListener(MouseEvent.MOUSE_DOWN, onStateDown);
_stateMC.removeEventListener(MouseEvent.MOUSE_UP, onStateUp);
}
private function onEnext(_arg1:MouseEvent):void{
_next++;
if (_next > 7){
_next = 6;
};
_explainMC.gotoAndStop(_next);
}
private function minigame():void{
removeChild(_backgroundMC);
_minigameSound = new minigameSound();
channel5 = _minigameSound.play(0, 30);
transform1 = channel5.soundTransform;
transform1.volume = _volume;
channel5.soundTransform = transform1;
removeChild(_mouseMC);
removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMoves);
removeEventListener(MouseEvent.CLICK, onMouseClick);
if (_levels == 2){
_hitMouse = new HitMouse();
addChild(_hitMouse);
_timert = new Timer(40, 1500);
_timert.start();
_timert.addEventListener(TimerEvent.TIMER, onTimerTwo);
};
if (_levels == 3){
_hitMouse = new HitMouse();
addChild(_hitMouse);
_hitMouse._timeCount = 1499;
_hitMouse._timeL = 60;
_timert = new Timer(40, 1500);
_timert.start();
_timert.addEventListener(TimerEvent.TIMER, onTimerTwo);
};
if (_levels == 4){
_getMoney = new GetMoney();
addChild(_getMoney);
_getMoney._timeCount = 1499;
_getMoney._timeL = 60;
_timert = new Timer(40, 1500);
_timert.start();
_timert.addEventListener(TimerEvent.TIMER, onTimerThree);
};
}
private function onWinMain(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
_local2 = this.numChildren;
_local3 = 0;
while (_local3 < _local2) {
removeChildAt(0);
_local3++;
};
_backgroundMC.btn1.removeEventListener(MouseEvent.CLICK, onHungryBtn);
_backgroundMC.btn2.removeEventListener(MouseEvent.CLICK, onSleepBtn);
_backgroundMC.btn3.removeEventListener(MouseEvent.CLICK, onDirtyBtn);
_backgroundMC.btn4.removeEventListener(MouseEvent.CLICK, onToiletBtn);
_backgroundMC.btn5.removeEventListener(MouseEvent.CLICK, onDrugBtn);
_backgroundMC.btn6.removeEventListener(MouseEvent.CLICK, onLearnBtn);
_backgroundMC.btn7.removeEventListener(MouseEvent.CLICK, onPlayBtn);
_backgroundMC.btn8.removeEventListener(MouseEvent.CLICK, onThirstyBtn);
_backgroundMC.shopBtn.removeEventListener(MouseEvent.CLICK, onShop);
_miniItemMC.paint1Btn.removeEventListener(MouseEvent.CLICK, mypaint1);
_miniItemMC.paint2Btn.removeEventListener(MouseEvent.CLICK, mypaint2);
_miniItemMC.paint3Btn.removeEventListener(MouseEvent.CLICK, mypaint3);
_miniItemMC.paint4Btn.removeEventListener(MouseEvent.CLICK, mypaint4);
_miniItemMC.sportBtn.removeEventListener(MouseEvent.CLICK, mysport);
_miniItemMC.sockBtn.removeEventListener(MouseEvent.CLICK, mysock);
_miniItemMC.lieBtn.removeEventListener(MouseEvent.CLICK, mylie);
_miniItemMC.cartoonBtn.removeEventListener(MouseEvent.CLICK, mycartoon);
_miniItemMC.bookBtn.removeEventListener(MouseEvent.CLICK, mybook);
_firstChild.removeEventListener(MouseEvent.CLICK, onFirst);
_twoChild.removeEventListener(MouseEvent.CLICK, onTwo);
_threeChild.removeEventListener(MouseEvent.CLICK, onThree);
_fourChild.removeEventListener(MouseEvent.CLICK, onFour);
_timer.removeEventListener(TimerEvent.TIMER, onTimer);
_lostwinMC.stop();
_lostwinMC.moreBtn.removeEventListener(MouseEvent.CLICK, onMoregame);
_lostwinMC.mainBtn.removeEventListener(MouseEvent.CLICK, onWinMain);
addChild(_startMC);
_startMC.startBtn.addEventListener(MouseEvent.CLICK, onStartBtns);
_startMC.moreBtn.addEventListener(MouseEvent.CLICK, onMoregame);
}
private function myItemBack(_arg1:MouseEvent):void{
_miniItemMC.paint1Btn.addEventListener(MouseEvent.CLICK, mypaint1);
_miniItemMC.paint2Btn.addEventListener(MouseEvent.CLICK, mypaint2);
_miniItemMC.paint3Btn.addEventListener(MouseEvent.CLICK, mypaint3);
_miniItemMC.paint4Btn.addEventListener(MouseEvent.CLICK, mypaint4);
_miniItemMC.sportBtn.addEventListener(MouseEvent.CLICK, mysport);
_miniItemMC.sockBtn.addEventListener(MouseEvent.CLICK, mysock);
_miniItemMC.lieBtn.addEventListener(MouseEvent.CLICK, mylie);
_miniItemMC.cartoonBtn.addEventListener(MouseEvent.CLICK, mycartoon);
_miniItemMC.bookBtn.addEventListener(MouseEvent.CLICK, mybook);
_miniItemMC.lieText.text = String(_lie);
_miniItemMC.sportText.text = String(_sport);
_miniItemMC.sockText.text = String(_sock);
_miniItemMC.cartoonText.text = String(_cartoon);
_miniItemMC.bookText.text = String(_book);
_miniItemMC.drugText.text = String(_drug);
_miniItemMC.paint1Text.text = String(_paint);
_miniItemMC.paint2Text.text = String(_paint);
_miniItemMC.paint3Text.text = String(_paint);
_miniItemMC.paint4Text.text = String(_paint);
_backgroundMC.addChild(_soundMC);
channel2.stop();
if (Math.random() > 1){
channel7 = _gameSound.play(0, 1000);
} else {
channel7 = _game1Sound.play(0, 1000);
};
transform1 = channel7.soundTransform;
transform1.volume = _volume1;
channel7.soundTransform = transform1;
_shoping = false;
_timer.start();
removeChild(_myItemMC);
_myItemMC.othersBtn.removeEventListener(MouseEvent.CLICK, myItemOther);
_myItemMC.backBtn.removeEventListener(MouseEvent.CLICK, myItemBack);
_myItemMC.sportBtn.removeEventListener(MouseEvent.CLICK, mysport);
_myItemMC.sockBtn.removeEventListener(MouseEvent.CLICK, mysock);
_myItemMC.lieBtn.removeEventListener(MouseEvent.CLICK, mylie);
_myItemMC.cartoonBtn.removeEventListener(MouseEvent.CLICK, mycartoon);
_myItemMC.shopBtn.removeEventListener(MouseEvent.CLICK, myItemShop);
}
private function onHclick(_arg1:MouseEvent):void{
removeChild(_hitMouse);
removeChild(_jiesuanMC);
_jiesuanMC.jsMC.closeBtn.removeEventListener(MouseEvent.CLICK, onHclick);
if (Math.random() > 1){
channel7 = _gameSound.play(0, 1000);
} else {
channel7 = _game1Sound.play(0, 1000);
};
transform1 = channel7.soundTransform;
transform1.volume = _volume1;
channel7.soundTransform = transform1;
_backgroundMC.levelText.text = String(_levels);
if (_levels == 2){
_helpsMC.gotoAndStop(30);
addChild(_twoChild);
_twoChild.y = 300;
_twoChild.addEventListener(MouseEvent.CLICK, onTwo);
};
if (_levels == 3){
_helpsMC.gotoAndStop(54);
addChild(_threeChild);
_threeChild.y = 300;
_threeChild.addEventListener(MouseEvent.CLICK, onThree);
};
if (_levels == 4){
_helpsMC.gotoAndStop(73);
addChild(_fourChild);
_fourChild.y = 300;
_fourChild.addEventListener(MouseEvent.CLICK, onFour);
};
_timer.start();
}
private function onMain(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
_local2 = this.numChildren;
_local3 = 0;
while (_local3 < _local2) {
removeChildAt(0);
_local3++;
};
_backgroundMC.btn1.removeEventListener(MouseEvent.CLICK, onHungryBtn);
_backgroundMC.btn2.removeEventListener(MouseEvent.CLICK, onSleepBtn);
_backgroundMC.btn3.removeEventListener(MouseEvent.CLICK, onDirtyBtn);
_backgroundMC.btn4.removeEventListener(MouseEvent.CLICK, onToiletBtn);
_backgroundMC.btn5.removeEventListener(MouseEvent.CLICK, onDrugBtn);
_backgroundMC.btn6.removeEventListener(MouseEvent.CLICK, onLearnBtn);
_backgroundMC.btn7.removeEventListener(MouseEvent.CLICK, onPlayBtn);
_backgroundMC.btn8.removeEventListener(MouseEvent.CLICK, onThirstyBtn);
_backgroundMC.shopBtn.removeEventListener(MouseEvent.CLICK, onShop);
_miniItemMC.paint1Btn.removeEventListener(MouseEvent.CLICK, mypaint1);
_miniItemMC.paint2Btn.removeEventListener(MouseEvent.CLICK, mypaint2);
_miniItemMC.paint3Btn.removeEventListener(MouseEvent.CLICK, mypaint3);
_miniItemMC.paint4Btn.removeEventListener(MouseEvent.CLICK, mypaint4);
_miniItemMC.sportBtn.removeEventListener(MouseEvent.CLICK, mysport);
_miniItemMC.sockBtn.removeEventListener(MouseEvent.CLICK, mysock);
_miniItemMC.lieBtn.removeEventListener(MouseEvent.CLICK, mylie);
_miniItemMC.cartoonBtn.removeEventListener(MouseEvent.CLICK, mycartoon);
_miniItemMC.bookBtn.removeEventListener(MouseEvent.CLICK, mybook);
_firstChild.removeEventListener(MouseEvent.CLICK, onFirst);
if (_levels == 2){
_twoChild.removeEventListener(MouseEvent.CLICK, onTwo);
};
if (_levels == 3){
_twoChild.removeEventListener(MouseEvent.CLICK, onTwo);
_threeChild.removeEventListener(MouseEvent.CLICK, onThree);
};
if (_levels == 4){
_twoChild.removeEventListener(MouseEvent.CLICK, onTwo);
_threeChild.removeEventListener(MouseEvent.CLICK, onThree);
_fourChild.removeEventListener(MouseEvent.CLICK, onFour);
};
_timer.removeEventListener(TimerEvent.TIMER, onTimer);
_loseMC.restartBtn.removeEventListener(MouseEvent.CLICK, onRest);
_loseMC.moreBtn.removeEventListener(MouseEvent.CLICK, onMoregame);
_loseMC.mainBtn.removeEventListener(MouseEvent.CLICK, onMain);
addChild(_startMC);
_startMC.startBtn.addEventListener(MouseEvent.CLICK, onStartBtns);
_startMC.moreBtn.addEventListener(MouseEvent.CLICK, onMoregame);
}
private function onOthershop(_arg1:MouseEvent):void{
_notenoughMC.closeBtn.removeEventListener(MouseEvent.CLICK, notEnough);
_notenoughMC.closeBtn.addEventListener(MouseEvent.CLICK, notEnough1);
removeChild(_shopMC);
_shopMC.othersBtn.removeEventListener(MouseEvent.CLICK, onOthershop);
_othershopMC.moneyText.text = String(_money);
addChild(_othershopMC);
_othershopMC.buytMC.visible = false;
_othershopMC.addChild(_soundMC);
_othershopMC.backBtn.addEventListener(MouseEvent.CLICK, onotherBack);
_othershopMC.clothBtn.addEventListener(MouseEvent.CLICK, onclothShop);
_othershopMC.buyBook.addEventListener(MouseEvent.CLICK, buyBook);
_othershopMC.buyPaint.addEventListener(MouseEvent.CLICK, buyPaint);
_othershopMC.buyDrug.addEventListener(MouseEvent.CLICK, buyDrug);
_othershopMC.itemBtn.addEventListener(MouseEvent.CLICK, otherToItem);
}
private function myItem(_arg1:MouseEvent){
_notenoughMC.closeBtn.removeEventListener(MouseEvent.CLICK, notEnough);
removeChild(_shopMC);
_shopMC.othersBtn.removeEventListener(MouseEvent.CLICK, onOthershop);
_shopMC.backBtn.removeEventListener(MouseEvent.CLICK, onBack);
_shopMC.buyCartoon.removeEventListener(MouseEvent.CLICK, buyCartoon);
_shopMC.buyLie.removeEventListener(MouseEvent.CLICK, buyLie);
_shopMC.buySport.removeEventListener(MouseEvent.CLICK, buySport);
_shopMC.buySock.removeEventListener(MouseEvent.CLICK, buySock);
_shopMC.itemBtn.removeEventListener(MouseEvent.CLICK, myItem);
addChild(_myItemMC);
_myItemMC.addChild(_soundMC);
_myItemMC.moneyText.text = String(_money);
_myItemMC.lieText.text = String(_lie);
_myItemMC.sportText.text = String(_sport);
_myItemMC.sockText.text = String(_sock);
_myItemMC.cartoonText.text = String(_cartoon);
_myItemMC.othersBtn.addEventListener(MouseEvent.CLICK, myItemOther);
_myItemMC.backBtn.addEventListener(MouseEvent.CLICK, myItemBack);
_myItemMC.sportBtn.addEventListener(MouseEvent.CLICK, mysport);
_myItemMC.sockBtn.addEventListener(MouseEvent.CLICK, mysock);
_myItemMC.lieBtn.addEventListener(MouseEvent.CLICK, mylie);
_myItemMC.cartoonBtn.addEventListener(MouseEvent.CLICK, mycartoon);
_myItemMC.shopBtn.addEventListener(MouseEvent.CLICK, myItemShop);
_myItemMC.addChild(_sprt);
_sprt.y = 159;
if (_sprt.numChildren != 0){
_sprt.removeChildAt(0);
};
if (_first){
if (_firstChild._cloth == 1){
_sprt.addChild(_BarBfMC);
};
if (_firstChild._cloth == 2){
_sprt.addChild(_LiEfMC);
};
if (_firstChild._cloth == 3){
_sprt.addChild(_SporTfMC);
};
if (_firstChild._cloth == 4){
_sprt.addChild(_SocKfMC);
};
if (_firstChild._cloth == 5){
_sprt.addChild(_CartooNfMC);
};
};
if (_two){
if (_twoChild._cloth == 1){
_sprt.addChild(_BarBfMC);
};
if (_twoChild._cloth == 2){
_sprt.addChild(_LiEfMC);
};
if (_twoChild._cloth == 3){
_sprt.addChild(_SporTfMC);
};
if (_twoChild._cloth == 4){
_sprt.addChild(_SocKfMC);
};
if (_twoChild._cloth == 5){
_sprt.addChild(_CartooNfMC);
};
};
if (_three){
if (_threeChild._cloth == 1){
_sprt.addChild(_BarBfMC);
};
if (_threeChild._cloth == 2){
_sprt.addChild(_LiEfMC);
};
if (_threeChild._cloth == 3){
_sprt.addChild(_SporTfMC);
};
if (_threeChild._cloth == 4){
_sprt.addChild(_SocKfMC);
};
if (_threeChild._cloth == 5){
_sprt.addChild(_CartooNfMC);
};
};
if (_four){
if (_fourChild._cloth == 1){
_sprt.addChild(_BarBfMC);
};
if (_fourChild._cloth == 2){
_sprt.addChild(_LiEfMC);
};
if (_fourChild._cloth == 3){
_sprt.addChild(_SporTfMC);
};
if (_fourChild._cloth == 4){
_sprt.addChild(_SocKfMC);
};
if (_fourChild._cloth == 5){
_sprt.addChild(_CartooNfMC);
};
};
}
private function changeText():void{
_backgroundMC.shopBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_backgroundMC.shopBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_startMC.startBtn.text3.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_startMC.startBtn.text3.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_startMC.explainBtn.text4.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_startMC.explainBtn.text4.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_startMC.moreBtn.text5.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_startMC.moreBtn.text5.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_stateMC.thirstyBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_stateMC.thirstyBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_stateMC.hungryBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_stateMC.hungryBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_stateMC.boredBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_stateMC.boredBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_stateMC.toiletBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_stateMC.toiletBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_stateMC.dirtyBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_stateMC.dirtyBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_shopMC.buyCartoon.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_shopMC.buyCartoon.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_shopMC.buyLie.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_shopMC.buyLie.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_shopMC.buySport.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_shopMC.buySport.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_shopMC.buySock.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_shopMC.buySock.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_shopMC.itemBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_shopMC.itemBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_othershopMC.buyBook.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_othershopMC.buyBook.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_othershopMC.buyDrug.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_othershopMC.buyDrug.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_othershopMC.buyPaint.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_othershopMC.buyPaint.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_othershopMC.buyBlank.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_othershopMC.buyBlank.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_othershopMC.itemBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_othershopMC.itemBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_myItemMC.shopBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_myItemMC.shopBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_myItemOtherMC.shopBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_myItemOtherMC.shopBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_winMC.winmc.nextBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_winMC.winmc.nextBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_lostwinMC.moreBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_lostwinMC.moreBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_lostwinMC.mainBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_lostwinMC.mainBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_loseMC.moreBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_loseMC.moreBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_loseMC.mainBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_loseMC.mainBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_loseMC.restartBtn.text1.addEventListener(MouseEvent.MOUSE_OUT, mouseOUT);
_loseMC.restartBtn.text1.addEventListener(MouseEvent.MOUSE_OVER, mouseOVER);
_backgroundMC.hourMC.hourText.text = "Hour";
_backgroundMC.levelMC.levelText.text = "Level";
_backgroundMC.dayMC.dayText.text = "Day";
_backgroundMC.shopBtn.text1.text = "Shop";
_startMC.startBtn.text3.text = "Start";
_startMC.explainBtn.text4.text = "Introduction";
_startMC.moreBtn.text5.text = "More Games";
_stateMC.thirstyBtn.text1.text = "Thirsty";
_stateMC.hungryBtn.text1.text = "Hungry";
_stateMC.boredBtn.text1.text = "Bored";
_stateMC.toiletBtn.text1.text = "Toilet";
_stateMC.dirtyBtn.text1.text = "Dirty";
_jiesuanMC.jsMC.text1.text = "Congratulations!";
_shopMC.clothBtn.text1.text = "Clothing";
_shopMC.othersBtn.text1.text = "Others";
_shopMC.buytMC.buyText.text = "You bought one item";
_shopMC.text2.text = "cost 70";
_shopMC.text3.text = "cost 110";
_shopMC.text4.text = "cost 90";
_shopMC.text5.text = "cost 100";
_shopMC.buyCartoon.text1.text = "Buy";
_shopMC.buyLie.text1.text = "Buy";
_shopMC.buySport.text1.text = "Buy";
_shopMC.buySock.text1.text = "Buy";
_shopMC.itemBtn.text1.text = "Items";
_othershopMC.clothBtn.text1.text = "Clothing";
_othershopMC.othersBtn.text1.text = "Others";
_othershopMC.buytMC.buyText.text = "You bought one item";
_othershopMC.text2.text = "cost 50";
_othershopMC.text3.text = "cost 75";
_othershopMC.text4.text = "cost 25";
_othershopMC.text5.text = "cost 75";
_othershopMC.buyBook.text1.text = "Buy";
_othershopMC.buyDrug.text1.text = "Buy";
_othershopMC.buyPaint.text1.text = "Buy";
_othershopMC.buyBlank.text1.text = "Buy";
_othershopMC.itemBtn.text1.text = "Items";
_myItemMC.clothBtn.text1.text = "Clothing";
_myItemMC.othersBtn.text1.text = "Others";
_myItemMC.shopBtn.text1.text = "Shop";
_myItemOtherMC.clothBtn.text1.text = "Clothing";
_myItemOtherMC.othersBtn.text1.text = "Others";
_myItemOtherMC.shopBtn.text1.text = "Shop";
_winMC.winmc.nextBtn.text1.text = "Next";
_lostwinMC.moreBtn.text1.text = "More Games";
_lostwinMC.mainBtn.text1.text = "Main Menu";
_loseMC.moreBtn.text1.text = "More Games";
_loseMC.mainBtn.text1.text = "Main Menu";
_loseMC.restartBtn.text1.text = "Replay";
}
private function onThree(_arg1:MouseEvent):void{
_smileSound = new smileSound();
channel6 = _smileSound.play(0, 1);
transform1 = channel6.soundTransform;
transform1.volume = _volume;
channel6.soundTransform = transform1;
_three = true;
_twoChild._mouseHitBtn = true;
_firstChild._mouseHitBtn = true;
_fourChild._mouseHitBtn = true;
_first = false;
_two = false;
_four = false;
addChild(_stateMC);
addStateMC();
stateUpdate();
}
private function onSleepBtn(_arg1:MouseEvent):void{
var _local2:int;
_local2 = getTimer();
if ((_local2 - _tempMill1) < 500){
dobleclick = true;
} else {
dobleclick = false;
};
_tempMill1 = _local2;
if (!dobleclick){
if (_first){
_firstChild._move = true;
_firstChild._run = false;
};
if (_two){
_twoChild._move = true;
_twoChild._run = false;
};
if (_three){
_threeChild._move = true;
_threeChild._run = false;
};
if (_four){
_fourChild._move = true;
_fourChild._run = false;
};
} else {
if (_first){
_firstChild._move = false;
_firstChild._run = true;
};
if (_two){
_twoChild._move = false;
_twoChild._run = true;
};
if (_three){
_threeChild._move = false;
_threeChild._run = true;
};
if (_four){
_fourChild._move = false;
_fourChild._run = true;
};
};
if (_first){
if (!_firstChild._NotCMoive){
_firstChild._thirstyDo = false;
_firstChild._hungryDo = false;
_firstChild._toiletDo = false;
_firstChild._dirtyDo = false;
_firstChild._sleepDo = false;
_firstChild._learnDo = false;
_firstChild._playDo = false;
_firstChild._drugDo = false;
_firstChild._arrive = false;
_firstChild._mTosleep = true;
_firstChild._mTobored = true;
_firstChild._mouseHitBtn = true;
_firstChild.tempX = 234;
_firstChild.tempY = 176;
_firstChild._boredAdd = (100 - _firstChild._bored);
if (_firstChild._boredAdd > 40){
_firstChild._boredAdd = 40;
};
};
};
if (_two){
if (!_twoChild._NotCMoive){
_twoChild._thirstyDo = false;
_twoChild._hungryDo = false;
_twoChild._toiletDo = false;
_twoChild._dirtyDo = false;
_twoChild._sleepDo = false;
_twoChild._learnDo = false;
_twoChild._playDo = false;
_twoChild._drugDo = false;
_twoChild._arrive = false;
_twoChild._mTosleep = true;
_twoChild._mTobored = true;
_twoChild._mouseHitBtn = true;
_twoChild.tempX = 234;
_twoChild.tempY = 176;
_twoChild._boredAdd = (100 - _twoChild._bored);
if (_twoChild._boredAdd > 40){
_twoChild._boredAdd = 40;
};
};
};
if (_three){
if (!_threeChild._NotCMoive){
_threeChild._thirstyDo = false;
_threeChild._hungryDo = false;
_threeChild._toiletDo = false;
_threeChild._dirtyDo = false;
_threeChild._sleepDo = false;
_threeChild._learnDo = false;
_threeChild._playDo = false;
_threeChild._drugDo = false;
_threeChild._arrive = false;
_threeChild._mTosleep = true;
_threeChild._mTobored = true;
_threeChild._mouseHitBtn = true;
_threeChild.tempX = 234;
_threeChild.tempY = 176;
_threeChild._boredAdd = (100 - _threeChild._bored);
if (_threeChild._boredAdd > 40){
_threeChild._boredAdd = 40;
};
};
};
if (_four){
if (!_fourChild._NotCMoive){
_fourChild._thirstyDo = false;
_fourChild._hungryDo = false;
_fourChild._toiletDo = false;
_fourChild._dirtyDo = false;
_fourChild._sleepDo = false;
_fourChild._learnDo = false;
_fourChild._playDo = false;
_fourChild._drugDo = false;
_fourChild._arrive = false;
_fourChild._mTosleep = true;
_fourChild._mTobored = true;
_fourChild._mouseHitBtn = true;
_fourChild.tempX = 234;
_fourChild.tempY = 176;
_fourChild._boredAdd = (100 - _fourChild._bored);
if (_fourChild._boredAdd > 40){
_fourChild._boredAdd = 40;
};
};
};
}
private function mouseOVER(_arg1:MouseEvent):void{
_arg1.target.textColor = 0xFFCC00;
}
private function init():void{
addChild(_startMC);
_startMC.startBtn.addEventListener(MouseEvent.CLICK, onStartBtns);
_startMC.moreBtn.addEventListener(MouseEvent.CLICK, onMoregame);
_startMC.explainBtn.addEventListener(MouseEvent.CLICK, onExplain);
addEventListener(MouseEvent.MOUSE_MOVE, onMouseMoves);
}
private function onMouseClick(_arg1:MouseEvent):void{
var _local2:int;
_local2 = getTimer();
if ((_local2 - _tempMill) < 500){
dobleclick = true;
} else {
dobleclick = false;
};
_tempMill = _local2;
_hitSound = new hitSound();
channel1 = _hitSound.play(0, 1);
transform1 = channel1.soundTransform;
transform1.volume = _volume;
channel1.soundTransform = transform1;
_mouseMC.gotoAndPlay(10);
if (!dobleclick){
if (((_first) && (!(_firstChild._NotCMoive)))){
_firstChild._move = true;
_firstChild._run = false;
_firstChild._mouseHit = true;
_firstChild.tempX = mouseX;
_firstChild.tempY = mouseY;
_firstChild._arrive = false;
};
if (((_two) && (!(_twoChild._NotCMoive)))){
_twoChild._move = true;
_twoChild._run = false;
_twoChild._mouseHit = true;
_twoChild.tempX = mouseX;
_twoChild.tempY = mouseY;
_twoChild._arrive = false;
};
if (((_three) && (!(_threeChild._NotCMoive)))){
_threeChild._move = true;
_threeChild._run = false;
_threeChild._mouseHit = true;
_threeChild.tempX = mouseX;
_threeChild.tempY = mouseY;
_threeChild._arrive = false;
};
if (((_four) && (!(_fourChild._NotCMoive)))){
_fourChild._move = true;
_fourChild._run = false;
_fourChild._mouseHit = true;
_fourChild.tempX = mouseX;
_fourChild.tempY = mouseY;
_fourChild._arrive = false;
};
} else {
if (((_first) && (!(_firstChild._NotCMoive)))){
_firstChild._run = true;
_firstChild._move = false;
_firstChild._mouseHit = true;
_firstChild.tempX = mouseX;
_firstChild.tempY = mouseY;
_firstChild._arrive = false;
};
if (((_two) && (!(_twoChild._NotCMoive)))){
_twoChild._run = true;
_twoChild._move = false;
_twoChild._mouseHit = true;
_twoChild.tempX = mouseX;
_twoChild.tempY = mouseY;
_twoChild._arrive = false;
};
if (((_three) && (!(_threeChild._NotCMoive)))){
_threeChild._run = true;
_threeChild._move = false;
_threeChild._mouseHit = true;
_threeChild.tempX = mouseX;
_threeChild.tempY = mouseY;
_threeChild._arrive = false;
};
if (((_four) && (!(_fourChild._NotCMoive)))){
_fourChild._run = true;
_fourChild._move = false;
_fourChild._mouseHit = true;
_fourChild.tempX = mouseX;
_fourChild.tempY = mouseY;
_fourChild._arrive = false;
};
};
}
private function onclothShop(_arg1:MouseEvent):void{
_notenoughMC.closeBtn.addEventListener(MouseEvent.CLICK, notEnough);
_notenoughMC.closeBtn.removeEventListener(MouseEvent.CLICK, notEnough1);
addChild(_shopMC);
_shopMC.addChild(_soundMC);
_shopMC.othersBtn.addEventListener(MouseEvent.CLICK, onOthershop);
removeChild(_othershopMC);
_othershopMC.backBtn.removeEventListener(MouseEvent.CLICK, onotherBack);
_othershopMC.clothBtn.removeEventListener(MouseEvent.CLICK, onclothShop);
_othershopMC.buyBook.removeEventListener(MouseEvent.CLICK, buyBook);
_othershopMC.buyPaint.removeEventListener(MouseEvent.CLICK, buyPaint);
_othershopMC.buyDrug.removeEventListener(MouseEvent.CLICK, buyDrug);
}
private function onThirstyBtn(_arg1:MouseEvent):void{
if (_first){
if (!_firstChild._NotCMoive){
_firstChild._thirstyDo = false;
_firstChild._hungryDo = false;
_firstChild._toiletDo = false;
_firstChild._dirtyDo = false;
_firstChild._sleepDo = false;
_firstChild._learnDo = false;
_firstChild._playDo = false;
_firstChild._drugDo = false;
_firstChild._mTothirsty = true;
_firstChild._thirstyAdd = (100 - _firstChild._thirsty);
if (_firstChild._thirstyAdd > 30){
_firstChild._thirstyAdd = 30;
};
};
};
if (_two){
if (!_twoChild._NotCMoive){
_twoChild._thirstyDo = false;
_twoChild._hungryDo = false;
_twoChild._toiletDo = false;
_twoChild._dirtyDo = false;
_twoChild._sleepDo = false;
_twoChild._learnDo = false;
_twoChild._playDo = false;
_twoChild._drugDo = false;
_twoChild._mTothirsty = true;
_twoChild._thirstyAdd = (100 - _twoChild._thirsty);
if (_twoChild._thirstyAdd > 30){
_twoChild._thirstyAdd = 30;
};
};
};
if (_three){
if (!_threeChild._NotCMoive){
_threeChild._thirstyDo = false;
_threeChild._hungryDo = false;
_threeChild._toiletDo = false;
_threeChild._dirtyDo = false;
_threeChild._sleepDo = false;
_threeChild._learnDo = false;
_threeChild._playDo = false;
_threeChild._drugDo = false;
_threeChild._mTothirsty = true;
_threeChild._thirstyAdd = (100 - _threeChild._thirsty);
if (_threeChild._thirstyAdd > 30){
_threeChild._thirstyAdd = 30;
};
};
};
if (_four){
if (!_fourChild._NotCMoive){
_fourChild._thirstyDo = false;
_fourChild._hungryDo = false;
_fourChild._toiletDo = false;
_fourChild._dirtyDo = false;
_fourChild._sleepDo = false;
_fourChild._learnDo = false;
_fourChild._playDo = false;
_fourChild._drugDo = false;
_fourChild._mTothirsty = true;
_fourChild._thirstyAdd = (100 - _fourChild._thirsty);
if (_fourChild._thirstyAdd > 30){
_fourChild._thirstyAdd = 30;
};
};
};
}
private function mysport(_arg1:MouseEvent):void{
if (_sport != 0){
if (((((((_first) || (_two))) || (_three))) || (_four))){
_changeSound = new changeSound();
channel3 = _changeSound.play(0, 1);
transform1 = channel3.soundTransform;
transform1.volume = _volume;
channel3.soundTransform = transform1;
};
if (_first){
_sprt.removeChildAt(0);
_sprt.addChild(_SporTfMC);
_sport = (_sport - 1);
if (_firstChild._cloth == 2){
_lie = (_lie + 1);
};
if (_firstChild._cloth == 3){
_sport = (_sport + 1);
};
if (_firstChild._cloth == 4){
_sock = (_sock + 1);
};
if (_firstChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_firstChild._cloth = 3;
};
if (_two){
_sprt.removeChildAt(0);
_sprt.addChild(_SporTfMC);
_sport = (_sport - 1);
if (_twoChild._cloth == 2){
_lie = (_lie + 1);
};
if (_twoChild._cloth == 3){
_sport = (_sport + 1);
};
if (_twoChild._cloth == 4){
_sock = (_sock + 1);
};
if (_twoChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_twoChild._cloth = 3;
};
if (_three){
_sprt.removeChildAt(0);
_sprt.addChild(_SporTfMC);
_sport = (_sport - 1);
if (_threeChild._cloth == 2){
_lie = (_lie + 1);
};
if (_threeChild._cloth == 3){
_sport = (_sport + 1);
};
if (_threeChild._cloth == 4){
_sock = (_sock + 1);
};
if (_threeChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_threeChild._cloth = 3;
};
if (_four){
_sprt.removeChildAt(0);
_sprt.addChild(_SporTfMC);
_sport = (_sport - 1);
if (_fourChild._cloth == 2){
_lie = (_lie + 1);
};
if (_fourChild._cloth == 3){
_sport = (_sport + 1);
};
if (_fourChild._cloth == 4){
_sock = (_sock + 1);
};
if (_fourChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_fourChild._cloth = 3;
};
_myItemMC.cartoonText.text = String(_cartoon);
_myItemMC.lieText.text = String(_lie);
_myItemMC.sockText.text = String(_sock);
_myItemMC.sportText.text = String(_sport);
_miniItemMC.cartoonText.text = String(_cartoon);
_miniItemMC.lieText.text = String(_lie);
_miniItemMC.sockText.text = String(_sock);
_miniItemMC.sportText.text = String(_sport);
};
}
private function onMouseClick1(_arg1:MouseEvent):void{
_hitSound = new hitSound();
channel1 = _hitSound.play(0, 1);
transform1 = channel1.soundTransform;
transform1.volume = _volume;
channel1.soundTransform = transform1;
addEventListener(MouseEvent.CLICK, onMouseClick);
removeEventListener(MouseEvent.CLICK, onMouseClick1);
}
private function buyDrug(_arg1:MouseEvent):void{
if (_money < 75){
_othershopMC.addChild(_notenoughMC);
_notenoughMC.gotoAndPlay(1);
};
if (_money >= 75){
_money = (_money - 75);
_othershopMC.moneyText.text = String(_money);
_drug = (_drug + 1);
_othershopMC.buytMC.visible = true;
_othershopMC.buytMC.gotoAndPlay(1);
};
}
private function mylie(_arg1:MouseEvent):void{
if (_lie != 0){
if (((((((_first) || (_two))) || (_three))) || (_four))){
_changeSound = new changeSound();
channel3 = _changeSound.play(0, 1);
transform1 = channel3.soundTransform;
transform1.volume = _volume;
channel3.soundTransform = transform1;
};
if (_first){
_lie = (_lie - 1);
_sprt.removeChildAt(0);
_sprt.addChild(_LiEfMC);
if (_firstChild._cloth == 2){
_lie = (_lie + 1);
};
if (_firstChild._cloth == 3){
_sport = (_sport + 1);
};
if (_firstChild._cloth == 4){
_sock = (_sock + 1);
};
if (_firstChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_firstChild._cloth = 2;
};
if (_two){
_lie = (_lie - 1);
_sprt.removeChildAt(0);
_sprt.addChild(_LiEfMC);
if (_twoChild._cloth == 2){
_lie = (_lie + 1);
};
if (_twoChild._cloth == 3){
_sport = (_sport + 1);
};
if (_twoChild._cloth == 4){
_sock = (_sock + 1);
};
if (_twoChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_twoChild._cloth = 2;
};
if (_three){
_lie = (_lie - 1);
_sprt.removeChildAt(0);
_sprt.addChild(_LiEfMC);
if (_threeChild._cloth == 2){
_lie = (_lie + 1);
};
if (_threeChild._cloth == 3){
_sport = (_sport + 1);
};
if (_threeChild._cloth == 4){
_sock = (_sock + 1);
};
if (_threeChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_threeChild._cloth = 2;
};
if (_four){
_lie = (_lie - 1);
_sprt.removeChildAt(0);
_sprt.addChild(_LiEfMC);
if (_fourChild._cloth == 2){
_lie = (_lie + 1);
};
if (_fourChild._cloth == 3){
_sport = (_sport + 1);
};
if (_fourChild._cloth == 4){
_sock = (_sock + 1);
};
if (_fourChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_fourChild._cloth = 2;
};
_myItemMC.cartoonText.text = String(_cartoon);
_myItemMC.lieText.text = String(_lie);
_myItemMC.sockText.text = String(_sock);
_myItemMC.sportText.text = String(_sport);
_miniItemMC.cartoonText.text = String(_cartoon);
_miniItemMC.lieText.text = String(_lie);
_miniItemMC.sockText.text = String(_sock);
_miniItemMC.sportText.text = String(_sport);
};
}
private function otherToItem(_arg1:MouseEvent):void{
_notenoughMC.closeBtn.removeEventListener(MouseEvent.CLICK, notEnough1);
removeChild(_othershopMC);
_othershopMC.backBtn.removeEventListener(MouseEvent.CLICK, onotherBack);
_othershopMC.clothBtn.removeEventListener(MouseEvent.CLICK, onclothShop);
_othershopMC.buyBook.removeEventListener(MouseEvent.CLICK, buyBook);
_othershopMC.buyPaint.removeEventListener(MouseEvent.CLICK, buyPaint);
_othershopMC.buyDrug.removeEventListener(MouseEvent.CLICK, buyDrug);
_othershopMC.itemBtn.removeEventListener(MouseEvent.CLICK, otherToItem);
addChild(_myItemMC);
_myItemMC.addChild(_sprt);
_myItemMC.addChild(_soundMC);
_myItemMC.moneyText.text = String(_money);
_myItemMC.lieText.text = String(_lie);
_myItemMC.sportText.text = String(_sport);
_myItemMC.sockText.text = String(_sock);
_myItemMC.cartoonText.text = String(_cartoon);
_myItemMC.othersBtn.addEventListener(MouseEvent.CLICK, myItemOther);
_myItemMC.backBtn.addEventListener(MouseEvent.CLICK, myItemBack);
_myItemMC.sportBtn.addEventListener(MouseEvent.CLICK, mysport);
_myItemMC.sockBtn.addEventListener(MouseEvent.CLICK, mysock);
_myItemMC.lieBtn.addEventListener(MouseEvent.CLICK, mylie);
_myItemMC.cartoonBtn.addEventListener(MouseEvent.CLICK, mycartoon);
_myItemMC.shopBtn.addEventListener(MouseEvent.CLICK, myItemShop);
}
private function onBack(_arg1:MouseEvent):void{
_notenoughMC.closeBtn.removeEventListener(MouseEvent.CLICK, notEnough);
_miniItemMC.paint1Btn.addEventListener(MouseEvent.CLICK, mypaint1);
_miniItemMC.paint2Btn.addEventListener(MouseEvent.CLICK, mypaint2);
_miniItemMC.paint3Btn.addEventListener(MouseEvent.CLICK, mypaint3);
_miniItemMC.paint4Btn.addEventListener(MouseEvent.CLICK, mypaint4);
_miniItemMC.sportBtn.addEventListener(MouseEvent.CLICK, mysport);
_miniItemMC.sockBtn.addEventListener(MouseEvent.CLICK, mysock);
_miniItemMC.lieBtn.addEventListener(MouseEvent.CLICK, mylie);
_miniItemMC.cartoonBtn.addEventListener(MouseEvent.CLICK, mycartoon);
_miniItemMC.bookBtn.addEventListener(MouseEvent.CLICK, mybook);
_miniItemMC.lieText.text = String(_lie);
_miniItemMC.sportText.text = String(_sport);
_miniItemMC.sockText.text = String(_sock);
_miniItemMC.cartoonText.text = String(_cartoon);
_miniItemMC.bookText.text = String(_book);
_miniItemMC.drugText.text = String(_drug);
_miniItemMC.paint1Text.text = String(_paint);
_miniItemMC.paint2Text.text = String(_paint);
_miniItemMC.paint3Text.text = String(_paint);
_miniItemMC.paint4Text.text = String(_paint);
_backgroundMC.addChild(_soundMC);
channel2.stop();
if (Math.random() > 1){
channel7 = _gameSound.play(0, 1000);
} else {
channel7 = _game1Sound.play(0, 1000);
};
transform1 = channel7.soundTransform;
transform1.volume = _volume1;
channel7.soundTransform = transform1;
_shoping = false;
_timer.start();
removeChild(_shopMC);
_shopMC.othersBtn.removeEventListener(MouseEvent.CLICK, onOthershop);
_shopMC.backBtn.removeEventListener(MouseEvent.CLICK, onBack);
_shopMC.buyCartoon.removeEventListener(MouseEvent.CLICK, buyCartoon);
_shopMC.buyLie.removeEventListener(MouseEvent.CLICK, buyLie);
_shopMC.buySport.removeEventListener(MouseEvent.CLICK, buySport);
_shopMC.buySock.removeEventListener(MouseEvent.CLICK, buySock);
}
private function buySock(_arg1:MouseEvent):void{
if (_money < 110){
_shopMC.addChild(_notenoughMC);
_notenoughMC.gotoAndPlay(1);
};
if (_money >= 100){
_money = (_money - 100);
_shopMC.moneyText.text = String(_money);
_sock = (_sock + 1);
_shopMC.buytMC.visible = true;
_shopMC.buytMC.gotoAndPlay(1);
};
}
private function mysock(_arg1:MouseEvent):void{
if (_sock != 0){
if (((((((_first) || (_two))) || (_three))) || (_four))){
_changeSound = new changeSound();
channel3 = _changeSound.play(0, 1);
transform1 = channel3.soundTransform;
transform1.volume = _volume;
channel3.soundTransform = transform1;
};
if (_first){
_sock = (_sock - 1);
_sprt.removeChildAt(0);
_sprt.addChild(_SocKfMC);
if (_firstChild._cloth == 2){
_lie = (_lie + 1);
};
if (_firstChild._cloth == 3){
_sport = (_sport + 1);
};
if (_firstChild._cloth == 4){
_sock = (_sock + 1);
};
if (_firstChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_firstChild._cloth = 4;
};
if (_two){
_sock = (_sock - 1);
_sprt.removeChildAt(0);
_sprt.addChild(_SocKfMC);
if (_twoChild._cloth == 2){
_lie = (_lie + 1);
};
if (_twoChild._cloth == 3){
_sport = (_sport + 1);
};
if (_twoChild._cloth == 4){
_sock = (_sock + 1);
};
if (_twoChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_twoChild._cloth = 4;
};
if (_three){
_sock = (_sock - 1);
_sprt.removeChildAt(0);
_sprt.addChild(_SocKfMC);
if (_threeChild._cloth == 2){
_lie = (_lie + 1);
};
if (_threeChild._cloth == 3){
_sport = (_sport + 1);
};
if (_threeChild._cloth == 4){
_sock = (_sock + 1);
};
if (_threeChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_threeChild._cloth = 4;
};
if (_four){
_sock = (_sock - 1);
_sprt.removeChildAt(0);
_sprt.addChild(_SocKfMC);
if (_fourChild._cloth == 2){
_lie = (_lie + 1);
};
if (_fourChild._cloth == 3){
_sport = (_sport + 1);
};
if (_fourChild._cloth == 4){
_sock = (_sock + 1);
};
if (_fourChild._cloth == 5){
_cartoon = (_cartoon + 1);
};
_fourChild._cloth = 4;
};
_myItemMC.cartoonText.text = String(_cartoon);
_myItemMC.lieText.text = String(_lie);
_myItemMC.sockText.text = String(_sock);
_myItemMC.sportText.text = String(_sport);
_miniItemMC.cartoonText.text = String(_cartoon);
_miniItemMC.lieText.text = String(_lie);
_miniItemMC.sockText.text = String(_sock);
_miniItemMC.sportText.text = String(_sport);
};
}
private function myItemOther(_arg1:MouseEvent){
removeChild(_myItemMC);
_myItemMC.othersBtn.removeEventListener(MouseEvent.CLICK, myItemOther);
_myItemMC.backBtn.removeEventListener(MouseEvent.CLICK, myItemBack);
_myItemMC.sportBtn.removeEventListener(MouseEvent.CLICK, mysport);
_myItemMC.sockBtn.removeEventListener(MouseEvent.CLICK, mysock);
_myItemMC.lieBtn.removeEventListener(MouseEvent.CLICK, mylie);
_myItemMC.cartoonBtn.removeEventListener(MouseEvent.CLICK, mycartoon);
_myItemMC.shopBtn.removeEventListener(MouseEvent.CLICK, myItemShop);
addChild(_myItemOtherMC);
_myItemOtherMC.addChild(_soundMC);
_myItemOtherMC.moneyText.text = String(_money);
_myItemOtherMC.bookText.text = String(_book);
_myItemOtherMC.drugText.text = String(_drug);
_myItemOtherMC.paintText.text = String(_paint);
_myItemOtherMC.moneyText.text = String(_money);
_myItemOtherMC.clothBtn.addEventListener(MouseEvent.CLICK, myItemCloth);
_myItemOtherMC.shopBtn.addEventListener(MouseEvent.CLICK, myoItemShop);
_myItemOtherMC.bookBtn.addEventListener(MouseEvent.CLICK, mybook);
_myItemOtherMC.backBtn.addEventListener(MouseEvent.CLICK, myItemoBack);
_myItemOtherMC.addChild(_sprt);
_sprt.y = 159;
}
private function onNext(_arg1:MouseEvent):void{
removeChild(_winMC);
channel4.stop();
_winMC.stop();
_winMC.winmc.nextBtn.removeEventListener(MouseEvent.CLICK, onNext);
minigame();
}
private function onShop(_arg1:MouseEvent):void{
channel7.stop();
_shoping = true;
_shopSound = new shopSound();
channel2 = _shopSound.play(0, 1000);
transform1 = channel2.soundTransform;
transform1.volume = _volume1;
channel2.soundTransform = transform1;
_timer.stop();
addChild(_shopMC);
_shopMC.addChild(_soundMC);
_notenoughMC.closeBtn.addEventListener(MouseEvent.CLICK, notEnough);
_shopMC.buytMC.visible = false;
_shopMC.moneyText.text = String(_money);
_shopMC.othersBtn.addEventListener(MouseEvent.CLICK, onOthershop);
_shopMC.backBtn.addEventListener(MouseEvent.CLICK, onBack);
_shopMC.buyCartoon.addEventListener(MouseEvent.CLICK, buyCartoon);
_shopMC.buyLie.addEventListener(MouseEvent.CLICK, buyLie);
_shopMC.buySport.addEventListener(MouseEvent.CLICK, buySport);
_shopMC.buySock.addEventListener(MouseEvent.CLICK, buySock);
_shopMC.itemBtn.addEventListener(MouseEvent.CLICK, myItem);
_miniItemMC.paint1Btn.removeEventListener(MouseEvent.CLICK, mypaint1);
_miniItemMC.paint2Btn.removeEventListener(MouseEvent.CLICK, mypaint2);
_miniItemMC.paint3Btn.removeEventListener(MouseEvent.CLICK, mypaint3);
_miniItemMC.paint4Btn.removeEventListener(MouseEvent.CLICK, mypaint4);
_miniItemMC.sportBtn.removeEventListener(MouseEvent.CLICK, mysport);
_miniItemMC.sockBtn.removeEventListener(MouseEvent.CLICK, mysock);
_miniItemMC.lieBtn.removeEventListener(MouseEvent.CLICK, mylie);
_miniItemMC.cartoonBtn.removeEventListener(MouseEvent.CLICK, mycartoon);
_miniItemMC.bookBtn.removeEventListener(MouseEvent.CLICK, mybook);
}
private function onEclose(_arg1:MouseEvent):void{
removeChild(_explainMC);
_explainMC.closeBtn.removeEventListener(MouseEvent.CLICK, onEclose);
_explainMC.nextBtn.removeEventListener(MouseEvent.CLICK, onEnext);
_explainMC.backBtn.removeEventListener(MouseEvent.CLICK, onEback);
}
private function onotherBack(_arg1:MouseEvent):void{
_notenoughMC.closeBtn.removeEventListener(MouseEvent.CLICK, notEnough1);
_miniItemMC.paint1Btn.addEventListener(MouseEvent.CLICK, mypaint1);
_miniItemMC.paint2Btn.addEventListener(MouseEvent.CLICK, mypaint2);
_miniItemMC.paint3Btn.addEventListener(MouseEvent.CLICK, mypaint3);
_miniItemMC.paint4Btn.addEventListener(MouseEvent.CLICK, mypaint4);
_miniItemMC.sportBtn.addEventListener(MouseEvent.CLICK, mysport);
_miniItemMC.sockBtn.addEventListener(MouseEvent.CLICK, mysock);
_miniItemMC.lieBtn.addEventListener(MouseEvent.CLICK, mylie);
_miniItemMC.cartoonBtn.addEventListener(MouseEvent.CLICK, mycartoon);
_miniItemMC.bookBtn.addEventListener(MouseEvent.CLICK, mybook);
_miniItemMC.lieText.text = String(_lie);
_miniItemMC.sportText.text = String(_sport);
_miniItemMC.sockText.text = String(_sock);
_miniItemMC.cartoonText.text = String(_cartoon);
_miniItemMC.bookText.text = String(_book);
_miniItemMC.drugText.text = String(_drug);
_miniItemMC.paint1Text.text = String(_paint);
_miniItemMC.paint2Text.text = String(_paint);
_miniItemMC.paint3Text.text = String(_paint);
_miniItemMC.paint4Text.text = String(_paint);
_backgroundMC.addChild(_soundMC);
channel2.stop();
if (Math.random() > 1){
channel7 = _gameSound.play(0, 1000);
} else {
channel7 = _game1Sound.play(0, 1000);
};
transform1 = channel7.soundTransform;
transform1.volume = _volume1;
channel7.soundTransform = transform1;
_shoping = false;
_timer.start();
removeChild(_othershopMC);
_othershopMC.backBtn.removeEventListener(MouseEvent.CLICK, onotherBack);
_othershopMC.clothBtn.removeEventListener(MouseEvent.CLICK, onclothShop);
_othershopMC.buyBook.removeEventListener(MouseEvent.CLICK, buyBook);
_othershopMC.buyPaint.removeEventListener(MouseEvent.CLICK, buyPaint);
_othershopMC.buyDrug.removeEventListener(MouseEvent.CLICK, buyDrug);
}
private function buyPaint(_arg1:MouseEvent):void{
if (_money < 25){
_othershopMC.addChild(_notenoughMC);
_notenoughMC.gotoAndPlay(1);
};
if (_money >= 25){
_money = (_money - 25);
_othershopMC.moneyText.text = String(_money);
_paint = (_paint + 1);
_othershopMC.buytMC.visible = true;
_othershopMC.buytMC.gotoAndPlay(1);
};
}
private function onPlayBtn(_arg1:MouseEvent):void{
if (_first){
if (!_firstChild._NotCMoive){
_firstChild._thirstyDo = false;
_firstChild._hungryDo = false;
_firstChild._toiletDo = false;
_firstChild._dirtyDo = false;
_firstChild._sleepDo = false;
_firstChild._learnDo = false;
_firstChild._playDo = false;
_firstChild._drugDo = false;
_firstChild._mToplay = true;
_firstChild._mTobored = true;
_firstChild._arrive = true;
_firstChild._mouseHitBtn = true;
_firstChild._boredAdd = (100 - _firstChild._bored);
if (_firstChild._boredAdd > 5){
_firstChild._boredAdd = 5;
};
};
};
if (_two){
if (!_twoChild._NotCMoive){
_twoChild._thirstyDo = false;
_twoChild._hungryDo = false;
_twoChild._toiletDo = false;
_twoChild._dirtyDo = false;
_twoChild._sleepDo = false;
_twoChild._learnDo = false;
_twoChild._playDo = false;
_twoChild._drugDo = false;
_twoChild._mToplay = true;
_twoChild._mTobored = true;
_twoChild._arrive = true;
_twoChild._mouseHitBtn = true;
_twoChild._boredAdd = (100 - _twoChild._bored);
if (_twoChild._boredAdd > 5){
_twoChild._boredAdd = 5;
};
};
};
if (_three){
if (!_threeChild._NotCMoive){
_threeChild._thirstyDo = false;
_threeChild._hungryDo = false;
_threeChild._toiletDo = false;
_threeChild._dirtyDo = false;
_threeChild._sleepDo = false;
_threeChild._learnDo = false;
_threeChild._playDo = false;
_threeChild._drugDo = false;
_threeChild._mToplay = true;
_threeChild._mTobored = true;
_threeChild._arrive = true;
_threeChild._mouseHitBtn = true;
_threeChild._boredAdd = (100 - _threeChild._bored);
if (_threeChild._boredAdd > 5){
_threeChild._boredAdd = 5;
};
};
};
if (_four){
if (!_fourChild._NotCMoive){
_fourChild._thirstyDo = false;
_fourChild._hungryDo = false;
_fourChild._toiletDo = false;
_fourChild._dirtyDo = false;
_fourChild._sleepDo = false;
_fourChild._learnDo = false;
_fourChild._playDo = false;
_fourChild._drugDo = false;
_fourChild._mToplay = true;
_fourChild._mTobored = true;
_fourChild._arrive = true;
_fourChild._mouseHitBtn = true;
_fourChild._boredAdd = (100 - _fourChild._bored);
if (_fourChild._boredAdd > 5){
_fourChild._boredAdd = 5;
};
};
};
}
private function onHungryBtn(_arg1:MouseEvent):void{
var _local2:int;
_local2 = getTimer();
if ((_local2 - _tempMill1) < 500){
dobleclick = true;
} else {
dobleclick = false;
};
_tempMill1 = _local2;
if (!dobleclick){
if (_first){
_firstChild._move = true;
_firstChild._run = false;
};
if (_two){
_twoChild._move = true;
_twoChild._run = false;
};
if (_three){
_threeChild._move = true;
_threeChild._run = false;
};
if (_four){
_fourChild._move = true;
_fourChild._run = false;
};
} else {
if (_first){
_firstChild._move = false;
_firstChild._run = true;
};
if (_two){
_twoChild._move = false;
_twoChild._run = true;
};
if (_three){
_threeChild._move = false;
_threeChild._run = true;
};
if (_four){
_fourChild._move = false;
_fourChild._run = true;
};
};
if (_first){
if (!_firstChild._NotCMoive){
_firstChild._thirstyDo = false;
_firstChild._hungryDo = false;
_firstChild._toiletDo = false;
_firstChild._dirtyDo = false;
_firstChild._sleepDo = false;
_firstChild._learnDo = false;
_firstChild._playDo = false;
_firstChild._drugDo = false;
_firstChild._arrive = false;
_firstChild._mTohungry = true;
_firstChild._mouseHitBtn = true;
_firstChild.tempX = 123;
_firstChild.tempY = 203;
_firstChild._hungryAdd = (100 - _firstChild._hungry);
if (_firstChild._hungryAdd > 30){
_firstChild._hungryAdd = 30;
};
};
};
if (_two){
if (!_twoChild._NotCMoive){
_twoChild._thirstyDo = false;
_twoChild._hungryDo = false;
_twoChild._toiletDo = false;
_twoChild._dirtyDo = false;
_twoChild._sleepDo = false;
_twoChild._learnDo = false;
_twoChild._playDo = false;
_twoChild._drugDo = false;
_twoChild._arrive = false;
_twoChild._mTohungry = true;
_twoChild._mouseHitBtn = true;
_twoChild.tempX = 123;
_twoChild.tempY = 203;
_twoChild._hungryAdd = (100 - _twoChild._hungry);
if (_twoChild._hungryAdd > 30){
_twoChild._hungryAdd = 30;
};
};
};
if (_three){
if (!_threeChild._NotCMoive){
_threeChild._thirstyDo = false;
_threeChild._hungryDo = false;
_threeChild._toiletDo = false;
_threeChild._dirtyDo = false;
_threeChild._sleepDo = false;
_threeChild._learnDo = false;
_threeChild._playDo = false;
_threeChild._drugDo = false;
_threeChild._arrive = false;
_threeChild._mTohungry = true;
_threeChild._mouseHitBtn = true;
_threeChild.tempX = 123;
_threeChild.tempY = 203;
_threeChild._hungryAdd = (100 - _threeChild._hungry);
if (_threeChild._hungryAdd > 30){
_threeChild._hungryAdd = 30;
};
};
};
if (_four){
if (!_fourChild._NotCMoive){
_fourChild._thirstyDo = false;
_fourChild._hungryDo = false;
_fourChild._toiletDo = false;
_fourChild._dirtyDo = false;
_fourChild._sleepDo = false;
_fourChild._learnDo = false;
_fourChild._playDo = false;
_fourChild._drugDo = false;
_fourChild._arrive = false;
_fourChild._mTohungry = true;
_fourChild._mouseHitBtn = true;
_fourChild.tempX = 123;
_fourChild.tempY = 203;
_fourChild._hungryAdd = (100 - _fourChild._hungry);
if (_fourChild._hungryAdd > 30){
_fourChild._hungryAdd = 30;
};
};
};
}
private function onBoredBtn(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
if (_first){
if (!_firstChild._NotCMoive){
_firstChild._thirstyDo = false;
_firstChild._hungryDo = false;
_firstChild._toiletDo = false;
_firstChild._dirtyDo = false;
_firstChild._sleepDo = false;
_firstChild._learnDo = false;
_firstChild._playDo = false;
_firstChild._drugDo = false;
_firstChild._mTobored = true;
_firstChild._arrive = false;
_local2 = Math.random();
if (_local2 <= 0.33){
_firstChild._mTosleep = true;
_firstChild._mouseHitBtn = true;
_firstChild.tempX = 234;
_firstChild.tempY = 176;
_firstChild._boredAdd = (100 - _firstChild._bored);
if (_firstChild._boredAdd > 40){
_firstChild._boredAdd = 40;
};
} else {
if ((((_local2 > 0.33)) && ((_local2 <= 0.66)))){
_firstChild._mouseHitBtn = true;
_firstChild.tempX = 560;
_firstChild.tempY = 200;
_firstChild._mTolearn = true;
_firstChild._boredAdd = -6;
} else {
_firstChild._mToplay = true;
_firstChild._arrive = true;
_firstChild._mouseHitBtn = true;
_firstChild._boredAdd = (100 - _firstChild._bored);
if (_firstChild._boredAdd > 5){
_firstChild._boredAdd = 5;
};
};
};
};
};
if (_two){
if (!_twoChild._NotCMoive){
_twoChild._thirstyDo = false;
_twoChild._hungryDo = false;
_twoChild._toiletDo = false;
_twoChild._dirtyDo = false;
_twoChild._sleepDo = false;
_twoChild._learnDo = false;
_twoChild._playDo = false;
_twoChild._drugDo = false;
_twoChild._mTobored = true;
_twoChild._arrive = false;
_local3 = Math.random();
if (_local2 <= 0.33){
_twoChild._mTosleep = true;
_twoChild._mouseHitBtn = true;
_twoChild.tempX = 234;
_twoChild.tempY = 176;
_twoChild._boredAdd = (100 - _twoChild._bored);
if (_twoChild._boredAdd > 40){
_twoChild._boredAdd = 40;
};
} else {
if ((((_local2 > 0.33)) && ((_local2 <= 0.66)))){
_twoChild._mouseHitBtn = true;
_twoChild.tempX = 560;
_twoChild.tempY = 200;
_twoChild._mTolearn = true;
_twoChild._boredAdd = -6;
} else {
_twoChild._mToplay = true;
_twoChild._arrive = true;
_twoChild._mouseHitBtn = true;
_twoChild._boredAdd = (100 - _twoChild._bored);
if (_twoChild._boredAdd > 5){
_twoChild._boredAdd = 5;
};
};
};
};
};
if (_three){
if (!_threeChild._NotCMoive){
_threeChild._thirstyDo = false;
_threeChild._hungryDo = false;
_threeChild._toiletDo = false;
_threeChild._dirtyDo = false;
_threeChild._sleepDo = false;
_threeChild._learnDo = false;
_threeChild._playDo = false;
_threeChild._drugDo = false;
_threeChild._mTobored = true;
_threeChild._arrive = false;
_local4 = Math.random();
if (_local2 <= 0.33){
_threeChild._mTosleep = true;
_threeChild._mouseHitBtn = true;
_threeChild.tempX = 234;
_threeChild.tempY = 176;
_threeChild._boredAdd = (100 - _threeChild._bored);
if (_threeChild._boredAdd > 40){
_threeChild._boredAdd = 40;
};
} else {
if ((((_local2 > 0.33)) && ((_local2 <= 0.66)))){
_threeChild._mouseHitBtn = true;
_threeChild.tempX = 560;
_threeChild.tempY = 200;
_threeChild._mTolearn = true;
_threeChild._boredAdd = -6;
} else {
_threeChild._mToplay = true;
_threeChild._arrive = true;
_threeChild._mouseHitBtn = true;
_threeChild._boredAdd = (100 - _threeChild._bored);
if (_threeChild._boredAdd > 5){
_threeChild._boredAdd = 5;
};
};
};
};
};
if (_four){
if (!_fourChild._NotCMoive){
_fourChild._thirstyDo = false;
_fourChild._hungryDo = false;
_fourChild._toiletDo = false;
_fourChild._dirtyDo = false;
_fourChild._sleepDo = false;
_fourChild._learnDo = false;
_fourChild._playDo = false;
_fourChild._drugDo = false;
_fourChild._mTobored = true;
_fourChild._arrive = false;
_local5 = Math.random();
if (_local2 <= 0.33){
_fourChild._mTosleep = true;
_fourChild._mouseHitBtn = true;
_fourChild.tempX = 234;
_fourChild.tempY = 176;
_fourChild._boredAdd = (100 - _fourChild._bored);
if (_fourChild._boredAdd > 40){
_fourChild._boredAdd = 40;
};
} else {
if ((((_local2 > 0.33)) && ((_local2 <= 0.66)))){
_fourChild._mouseHitBtn = true;
_fourChild.tempX = 560;
_fourChild.tempY = 200;
_fourChild._mTolearn = true;
_fourChild._boredAdd = -6;
} else {
_fourChild._mToplay = true;
_fourChild._arrive = true;
_fourChild._mouseHitBtn = true;
_fourChild._boredAdd = (100 - _fourChild._bored);
if (_fourChild._boredAdd > 5){
_fourChild._boredAdd = 5;
};
};
};
};
};
}
private function onSclick(_arg1:MouseEvent):void{
_int++;
if (_int > 1){
_int = 0;
};
if (_int == 0){
_volume = 1;
_volume1 = 1;
if (_hitMouse != null){
_hitMouse._mvolume = 1;
};
_firstChild._cvolume = 1;
_twoChild._cvolume = 1;
_threeChild._cvolume = 1;
_fourChild._cvolume = 1;
_soundMC.closeBtn.visible = true;
_soundMC.openBtn.visible = false;
if (_int1 == 0){
if (_shoping){
channel2 = _shopSound.play(0, 1000);
transform1 = channel2.soundTransform;
transform1.volume = _volume1;
channel2.soundTransform = transform1;
} else {
if (Math.random() > 1){
channel7 = _gameSound.play(0, 1000);
} else {
channel7 = _game1Sound.play(0, 1000);
};
transform1 = channel7.soundTransform;
transform1.volume = _volume1;
channel7.soundTransform = transform1;
};
};
};
if (_int == 1){
_volume = 0;
_volume1 = 0;
if (_hitMouse != null){
_hitMouse._mvolume = 0;
};
_firstChild._cvolume = 0;
_twoChild._cvolume = 0;
_threeChild._cvolume = 0;
_fourChild._cvolume = 0;
SoundMixer.stopAll();
_soundMC.closeBtn.visible = false;
_soundMC.openBtn.visible = true;
};
}
private function onMoregame(_arg1:MouseEvent):void{
}
private function onNavgate(_arg1:MouseEvent):void{
}
private function onStateDown(_arg1:MouseEvent):void{
_stateMC.startDrag();
_tempx1 = (mouseX - _stateMC.x);
_tempy1 = (mouseY - _stateMC.y);
removeEventListener(MouseEvent.CLICK, onMouseClick);
}
private function onCompelte(_arg1:Event):void{
_miniItemMC.text1.text = _loader.data.txt;
}
private function onTimerTwo(_arg1:TimerEvent):void{
_hitMouse.hitOnTimer();
if (_hitMouse._restMoney != 0){
addChildAt(_backgroundMC, 0);
channel5.stop();
_money = (_money + _hitMouse._restMoney);
_hitMouse._restMoney = 0;
addChild(_mouseMC);
addEventListener(MouseEvent.MOUSE_MOVE, onMouseMoves);
addEventListener(MouseEvent.CLICK, onMouseClick);
_timert.removeEventListener(TimerEvent.TIMER, onTimerTwo);
_timert.stop();
addChild(_jiesuanMC);
_jiesuanMC.gotoAndPlay(1);
_jiesuanMC.jsMC.moneyText.text = String(_money);
_backgroundMC.moneyText.text = String(_money);
_jiesuanMC.jsMC.closeBtn.addEventListener(MouseEvent.CLICK, onHclick);
};
}
private function onToiletBtn(_arg1:MouseEvent):void{
var _local2:int;
_local2 = getTimer();
if ((_local2 - _tempMill1) < 500){
dobleclick = true;
} else {
dobleclick = false;
};
_tempMill1 = _local2;
if (!dobleclick){
if (_first){
_firstChild._move = true;
_firstChild._run = false;
};
if (_two){
_twoChild._move = true;
_twoChild._run = false;
};
if (_three){
_threeChild._move = true;
_threeChild._run = false;
};
if (_four){
_fourChild._move = true;
_fourChild._run = false;
};
} else {
if (_first){
_firstChild._move = false;
_firstChild._run = true;
};
if (_two){
_twoChild._move = false;
_twoChild._run = true;
};
if (_three){
_threeChild._move = false;
_threeChild._run = true;
};
if (_four){
_fourChild._move = false;
_fourChild._run = true;
};
};
if (_first){
if (!_firstChild._NotCMoive){
_firstChild._thirstyDo = false;
_firstChild._hungryDo = false;
_firstChild._toiletDo = false;
_firstChild._dirtyDo = false;
_firstChild._sleepDo = false;
_firstChild._learnDo = false;
_firstChild._playDo = false;
_firstChild._drugDo = false;
_firstChild._arrive = false;
_firstChild._mTotoilet = true;
_firstChild._toiletAdd = (100 - _firstChild._toilet);
if (_firstChild._toiletAdd > 50){
_firstChild._boredAdd = 50;
};
_firstChild._mouseHitBtn = true;
_firstChild.tempX = 390;
_firstChild.tempY = 110;
};
};
if (_two){
if (!_twoChild._NotCMoive){
_twoChild._thirstyDo = false;
_twoChild._hungryDo = false;
_twoChild._toiletDo = false;
_twoChild._dirtyDo = false;
_twoChild._sleepDo = false;
_twoChild._learnDo = false;
_twoChild._playDo = false;
_twoChild._drugDo = false;
_twoChild._arrive = false;
_twoChild._mTotoilet = true;
_twoChild._toiletAdd = (100 - _twoChild._toilet);
if (_twoChild._toiletAdd > 50){
_twoChild._boredAdd = 50;
};
_twoChild._mouseHitBtn = true;
_twoChild.tempX = 390;
_twoChild.tempY = 110;
};
};
if (_three){
if (!_threeChild._NotCMoive){
_threeChild._thirstyDo = false;
_threeChild._hungryDo = false;
_threeChild._toiletDo = false;
_threeChild._dirtyDo = false;
_threeChild._sleepDo = false;
_threeChild._learnDo = false;
_threeChild._playDo = false;
_threeChild._drugDo = false;
_threeChild._arrive = false;
_threeChild._mTotoilet = true;
_threeChild._toiletAdd = (100 - _threeChild._toilet);
if (_threeChild._toiletAdd > 50){
_threeChild._boredAdd = 50;
};
_threeChild._mouseHitBtn = true;
_threeChild.tempX = 390;
_threeChild.tempY = 110;
};
};
if (_four){
if (!_fourChild._NotCMoive){
_fourChild._thirstyDo = false;
_fourChild._hungryDo = false;
_fourChild._toiletDo = false;
_fourChild._dirtyDo = false;
_fourChild._sleepDo = false;
_fourChild._learnDo = false;
_fourChild._playDo = false;
_fourChild._drugDo = false;
_fourChild._arrive = false;
_fourChild._mTotoilet = true;
_fourChild._toiletAdd = (100 - _fourChild._toilet);
if (_fourChild._toiletAdd > 50){
_fourChild._boredAdd = 50;
};
_fourChild._mouseHitBtn = true;
_fourChild.tempX = 390;
_fourChild.tempY = 110;
};
};
}
private function onTwo(_arg1:MouseEvent):void{
_smileSound = new smileSound();
channel6 = _smileSound.play(0, 1);
transform1 = channel6.soundTransform;
transform1.volume = _volume;
channel6.soundTransform = transform1;
_two = true;
_firstChild._mouseHitBtn = true;
_threeChild._mouseHitBtn = true;
_fourChild._mouseHitBtn = true;
_first = false;
_three = false;
_four = false;
addChild(_stateMC);
addStateMC();
stateUpdate();
}
private function onStartBtns(_arg1:MouseEvent):void{
_gameSound = new gameSound();
_game1Sound = new game1Sound();
if (Math.random() > 1){
channel7 = _gameSound.play(0, 1000);
} else {
channel7 = _game1Sound.play(0, 1000);
};
transform1 = channel7.soundTransform;
transform1.volume = _volume1;
channel7.soundTransform = transform1;
_cout = 0;
_time = 1;
_day = 1;
_levels = 1;
removeChild(_startMC);
_startMC.startBtn.removeEventListener(MouseEvent.CLICK, onStartBtns);
_floor1MC = new floor1MC();
_floor1MC.x = -293;
_floor2MC = new floor2MC();
_floor2MC.x = -242;
_floor3MC = new floor3MC();
_floor3MC.x = -242;
_floor4MC = new floor4MC();
_floor4MC.x = -242;
_backgroundMC.addChildAt(_floor1MC, 0);
_backgroundMC.explainBtn.addEventListener(MouseEvent.CLICK, onExplain);
_miniItemMC.x = 0;
_miniItemMC.y = 560;
_miniItemMC.text1.addEventListener(MouseEvent.CLICK, onNavgate);
_miniItemMC.paint1Btn.addEventListener(MouseEvent.CLICK, mypaint1);
_miniItemMC.paint2Btn.addEventListener(MouseEvent.CLICK, mypaint2);
_miniItemMC.paint3Btn.addEventListener(MouseEvent.CLICK, mypaint3);
_miniItemMC.paint4Btn.addEventListener(MouseEvent.CLICK, mypaint4);
_miniItemMC.sportBtn.addEventListener(MouseEvent.CLICK, mysport);
_miniItemMC.sockBtn.addEventListener(MouseEvent.CLICK, mysock);
_miniItemMC.lieBtn.addEventListener(MouseEvent.CLICK, mylie);
_miniItemMC.cartoonBtn.addEventListener(MouseEvent.CLICK, mycartoon);
_miniItemMC.bookBtn.addEventListener(MouseEvent.CLICK, mybook);
_miniItemMC.lieText.text = String(_lie);
_miniItemMC.sportText.text = String(_sport);
_miniItemMC.sockText.text = String(_sock);
_miniItemMC.cartoonText.text = String(_cartoon);
_miniItemMC.bookText.text = String(_book);
_miniItemMC.drugText.text = String(_drug);
_miniItemMC.paint1Text.text = String(_paint);
_miniItemMC.paint2Text.text = String(_paint);
_miniItemMC.paint3Text.text = String(_paint);
_miniItemMC.paint4Text.text = String(_paint);
_backgroundMC.moneyText.text = String(_money);
addChild(_backgroundMC);
addEventListener(MouseEvent.CLICK, onMouseClick);
_backgroundMC.addChild(_miniItemMC);
_backgroundMC.addChild(_soundMC);
_firstChild = new Children();
_twoChild = new Children();
_threeChild = new Children();
_fourChild = new Children();
addChild(_firstChild);
_backgroundMC.levelText.text = String(_levels);
_backgroundMC.btn1.addEventListener(MouseEvent.CLICK, onHungryBtn);
_backgroundMC.btn2.addEventListener(MouseEvent.CLICK, onSleepBtn);
_backgroundMC.btn3.addEventListener(MouseEvent.CLICK, onDirtyBtn);
_backgroundMC.btn4.addEventListener(MouseEvent.CLICK, onToiletBtn);
_backgroundMC.btn5.addEventListener(MouseEvent.CLICK, onDrugBtn);
_backgroundMC.btn6.addEventListener(MouseEvent.CLICK, onLearnBtn);
_backgroundMC.btn7.addEventListener(MouseEvent.CLICK, onPlayBtn);
_backgroundMC.btn8.addEventListener(MouseEvent.CLICK, onThirstyBtn);
_backgroundMC.shopBtn.addEventListener(MouseEvent.CLICK, onShop);
_firstChild.addEventListener(MouseEvent.CLICK, onFirst);
_timer = new Timer(40, 10000000);
_timer.addEventListener(TimerEvent.TIMER, onTimer);
addChild(_helphMC);
_helphMC.helpcloseBtn.addEventListener(MouseEvent.CLICK, onHelps);
}
}
}//package
Section 125
//Children (Children)
package {
import flash.media.*;
import flash.display.*;
public class Children extends Sprite {
private var _SocKrfMCM:SocKrfMCM;
private var _tempBoolean:Boolean;// = true
private var _SocKrfMCR:SocKrfMCR;
private var _SporTsleepWantMC:SporTsleepWantMC;
public var _playDo:Boolean;// = false
public var _CartooNeatWantMC:CartooNeatWantMC;
private var _CartooNlbMC:CartooNlbMC;
public var _rSpeed:int;// = 5
public var _arrive:Boolean;// = false
private var _LiEfrontMCMR:LiEfrontMCMR;
private var _LiEtoiletWantMC:LiEtoiletWantMC;
private var _BarBrsMC:BarBrsMC;
private var _CartooNsleepWantMC:CartooNsleepWantMC;
private var _BarBeatMC:BarBeatMC;
public var _toiletNot:Boolean;// = false
private var _SocKeatMC:SocKeatMC;
public var _bored:Number;// = 50
public var _sleepWant:Boolean;// = false
private var _SocKtoiletWantMC:SocKtoiletWantMC;
private var _SporTrbMCR:SporTrbMCR;
private var _LiEsleepWantMC:LiEsleepWantMC;
private var _BarBfrontMCM:BarBfrontMCM;
private var _tempCount:int;// = 0
private var _BarBfrontMCR:BarBfrontMCR;
public var _cvolume:Number;// = 1
private var _SporTlfMC:SporTlfMC;
private var _cface:Boolean;// = false
private var _SocKdrugWantMC:SocKdrugWantMC;
private var _SocKrfMCMR:SocKrfMCMR;
private var stateArray:Array;
private var _SocKfrontMCM:SocKfrontMCM;
private var _SporTdrinkMC:SporTdrinkMC;
private var _BarBrbMC:BarBrbMC;
private var _LiElbMCR:LiElbMCR;
private var _SporTrfMCMR:SporTrfMCMR;
private var _SocKfrontMCR:SocKfrontMCR;
private var _hungryR:Number;
public var _NotCMoive:Boolean;// = false
public var _healthy:int;// = 50
public var reDrug:int;// = 0
private var _objToilet:Object;
public var _boredNot:Boolean;// = false
private var _SocKlsMC:SocKlsMC;
private var _BarBrsMCMR:BarBrsMCMR;
public var _mTohungry:Boolean;// = false
private var _SocKlfMCMR:SocKlfMCMR;
public var _sleepDo:Boolean;// = false
private var _CartooNrfMCMR:CartooNrfMCMR;
private var _LiErsMC:LiErsMC;
private var _SporTlfMCR:SporTlfMCR;
private var _enSound:enSound;
private var _SporTlfMCM:SporTlfMCM;
private var _CartooNfrontMC:CartooNfrontMC;
private var _SporTlfMCMR:SporTlfMCMR;
private var _LiErfMCMR:LiErfMCMR;
private var _CartooNrbMCR:CartooNrbMCR;
private var _SocKlbMC:SocKlbMC;
public var _move:Boolean;// = true
private var _SporTdirtyWantMC:SporTdirtyWantMC;
private var _BarBrsMCM:BarBrsMCM;
public var _playWant:Boolean;// = false
private var _BarBrsMCR:BarBrsMCR;
private var _LiErbMC:LiErbMC;
private var _BarBlsMCMR:BarBlsMCMR;
private var _SocKrsMCM:SocKrsMCM;
private var _boredR:Number;
public var _dirtyAdd:Number;// = 0
private var _SporTfrontMCMR:SporTfrontMCMR;
private var _SocKrsMCR:SocKrsMCR;
private var _SocKsleepWantMC:SocKsleepWantMC;
private var _SocKplayWantMC:SocKplayWantMC;
private var _SocKlearnMC:SocKlearnMC;
private var _BarBplayMC:BarBplayMC;
private var _BarBdrinkMC:BarBdrinkMC;
private var _CartooNdirtyWantMC:CartooNdirtyWantMC;
private var _stop:Boolean;// = false
public var _mTolearn:Boolean;// = false
private var _CartooNlfMCMR:CartooNlfMCMR;
private var _LiEtoiletMC:LiEtoiletMC;
private var _LiEdirtyWantMC:LiEdirtyWantMC;
public var _learnWant:Boolean;// = false
public var _spr:Sprite;
private var _tempDoingCount:int;// = 0
private var _LiElfMCMR:LiElfMCMR;
public var _toiletDo:Boolean;// = false
public var _mSpeed:int;// = 2
private var _SporTdrinkWantMC:SporTdrinkWantMC;
private var _CartooNdrinkWantMC:CartooNdrinkWantMC;
private var _SporTlsMC:SporTlsMC;
public var _cloth:int;// = 1
private var _BarBlfMC:BarBlfMC;
public var _learnDo:Boolean;// = false
private var _CartooNlfMCM:CartooNlfMCM;
private var _SocKbackMCR:SocKbackMCR;
private var _CartooNlfMCR:CartooNlfMCR;
private var _LiEdrinkWantMC:LiEdrinkWantMC;
private var _LiElearnMC:LiElearnMC;
private var _CartooNrfMC:CartooNrfMC;
private var _LiErefuseMC:LiErefuseMC;
private var _SporTlbMC:SporTlbMC;
private var _dead:Boolean;// = false
private var _BarBsleepWantMC:BarBsleepWantMC;
private var _front:Boolean;// = true
public var _mouseHitBtn:Boolean;// = false
public var _BarBeatWantMC:BarBeatWantMC;
public var _role:Boolean;// = false
private var _tempDegree:Number;// = 0
private var _LiErbMCR:LiErbMCR;
private var reduce:int;// = 0
public var _thirsty:Number;// = 50
public var _drugDo:Boolean;// = false
private var _tempWantCount:int;// = 0
public var _mTosleep:Boolean;// = false
public var _hungry:Number;// = 50
public var _death:Boolean;// = false
private var _BarBlbMCR:BarBlbMCR;
private var _SporTlsMCM:SporTlsMCM;
private var _SocKlbMCR:SocKlbMCR;
public var _thirstyWant:Boolean;// = false
private var _SporTlsMCR:SporTlsMCR;
private var _changeSound:changeSound;
private var _LiEbackMCR:LiEbackMCR;
private var _BarBdrugWantMC:BarBdrugWantMC;
private var _SporTtoiletMC:SporTtoiletMC;
private var _LiElfMC:LiElfMC;
private var _SocKdirtyWantMC:SocKdirtyWantMC;
private var _CartooNfrontMCM:CartooNfrontMCM;
private var _BarBdirtyMC:BarBdirtyMC;
private var _CartooNfrontMCR:CartooNfrontMCR;
private var _SporTfrontMC:SporTfrontMC;
private var _SporTrfMCM:SporTrfMCM;
private var _LiEdrugWantMC:LiEdrugWantMC;
private var _SporTrfMCR:SporTrfMCR;
public var _LiEeatWantMC:LiEeatWantMC;
private var _SporTlearnWantMC:SporTlearnWantMC;
private var _CartooNlearnWantMC:CartooNlearnWantMC;
public var _thirstyAdd:Number;// = 0
private var _BarBdirtyWantMC:BarBdirtyWantMC;
public var _run:Boolean;// = false
private var _back:Boolean;// = false
public var _playNot:Boolean;// = false
private var _BarBbackMC:BarBbackMC;
private var _LiElfMCM:LiElfMCM;
public var _toiletAdd:Number;// = 0
private var _LiElfMCR:LiElfMCR;
private var _SocKdrinkWantMC:SocKdrinkWantMC;
private var _SocKrsMCMR:SocKrsMCMR;
private var _SporTeatMC:SporTeatMC;
public var _sleepNot:Boolean;// = false
public var _drugNot:Boolean;// = false
private var _SporTrefuseMC:SporTrefuseMC;
public var _hungryNot:Boolean;// = false
public var _mToplay:Boolean;// = false
private var _BarBlsMC:BarBlsMC;
private var _SocKrfMC:SocKrfMC;
private var _LiElearnWantMC:LiElearnWantMC;
private var _SporTrsMCMR:SporTrsMCMR;
private var _BarBtoiletMC:BarBtoiletMC;
public var _happy:int;// = 50
public var _hungryWant:Boolean;// = false
private var _CartooNlsMCM:CartooNlsMCM;
private var _CartooNrsMC:CartooNrsMC;
private var _BarBplayWantMC:BarBplayWantMC;
private var _CartooNlearnMC:CartooNlearnMC;
private var _CartooNlsMCR:CartooNlsMCR;
private var _BarBdeadMC:BarBdeadMC;
private var _BarBdrinkWantMC:BarBdrinkWantMC;
private var _SocKtoiletMC:SocKtoiletMC;
private var _BarBlbMC:BarBlbMC;
private var _lb:Boolean;// = false
private var _lf:Boolean;// = false
private var _SocKfrontMCMR:SocKfrontMCMR;
private var _SocKlsMCMR:SocKlsMCMR;
private var _ls:Boolean;// = false
public var _mTodrug:Boolean;// = false
private var _CartooNrsMCMR:CartooNrsMCMR;
public var _mouseHit:Boolean;// = false
private var _BarBfrontMC:BarBfrontMC;
private var _SocKdrinkMC:SocKdrinkMC;
private var _CartooNrfMCM:CartooNrfMCM;
private var _CartooNrbMC:CartooNrbMC;
private var _SporTlsMCMR:SporTlsMCMR;
private var _BarBrefuseMC:BarBrefuseMC;
private var _SporTplayMC:SporTplayMC;
private var _countB:int;// = 0
private var _LiEplayWantMC:LiEplayWantMC;
private var _BarBdrugMC:BarBdrugMC;
private var _LiErsMCMR:LiErsMCMR;
private var _CartooNrfMCR:CartooNrfMCR;
private var _countA:int;// = 0
private var _objHealthy:Object;
private var _CartooNfrontMCMR:CartooNfrontMCMR;
public var _mTotoilet:Boolean;// = false
private var transform1:SoundTransform;
public var _boredAdd:Number;// = 0
private var _CartooNeatMC:CartooNeatMC;
private var _wait:Boolean;// = false
private var _SocKrefuseMC:SocKrefuseMC;
private var _LiElsMC:LiElsMC;
public var _mTodirty:Boolean;// = false
private var _CartooNlsMCMR:CartooNlsMCMR;
private var _CartooNbackMCR:CartooNbackMCR;
private var _CartooNplayMC:CartooNplayMC;
private var _objDirty:Object;
private var _BarBrbMCR:BarBrbMCR;
private var _SporTrfMC:SporTrfMC;
private var _SporTrsMCM:SporTrsMCM;
private var _LiEdrinkMC:LiEdrinkMC;
private var _SocKlearnWantMC:SocKlearnWantMC;
private var _SporTrsMCR:SporTrsMCR;
private var _SocKrbMCR:SocKrbMCR;
private var _LiEplayMC:LiEplayMC;
private var _LiElbMC:LiElbMC;
private var _thirstyR:Number;
private var _LiElsMCMR:LiElsMCMR;
private var _CartooNdrugWantMC:CartooNdrugWantMC;
public var _SporTeatWantMC:SporTeatWantMC;
public var _funny:int;// = 50
private var _toiletR:Number;
private var _LiElsMCM:LiElsMCM;
private var _BarBtoiletWantMC:BarBtoiletWantMC;
private var _LiElsMCR:LiElsMCR;
private var _SocKplayMC:SocKplayMC;
private var _SocKrsMC:SocKrsMC;
private var _objHungry:Object;
private var _BarBlearnWantMC:BarBlearnWantMC;
private var _SporTtoiletWantMC:SporTtoiletWantMC;
private var _rb:Boolean;// = false
private var _rf:Boolean;// = false
public var _dirtyDo:Boolean;// = false
private var _LiErfMCM:LiErfMCM;
private var _LiErfMCR:LiErfMCR;
private var _rs:Boolean;// = false
public var _dirty:Number;// = 50
private var _SocKrbMC:SocKrbMC;
public var _thirstyDo:Boolean;// = false
private var _BarBlfMCM:BarBlfMCM;
private var _BarBlfMCR:BarBlfMCR;
public var _edu:int;// = 50
private var _SocKlfMCM:SocKlfMCM;
private var _BarBrfMCMR:BarBrfMCMR;
private var _SocKlfMCR:SocKlfMCR;
public var tempX:Number;// = 300
private var _CartooNlfMC:CartooNlfMC;
private var _CartooNrsMCR:CartooNrsMCR;
private var _LiEeatMC:LiEeatMC;
private var _CartooNrsMCM:CartooNrsMCM;
public var _hungryDo:Boolean;// = false
private var _SocKbackMC:SocKbackMC;
public var _dirtyNot:Boolean;// = false
private var _objThirsty:Object;
private var _CartooNplayWantMC:CartooNplayWantMC;
public var _drugWant:Boolean;// = false
private var _SporTlbMCR:SporTlbMCR;
public var _toilet:Number;// = 50
private var _LiEfrontMCM:LiEfrontMCM;
private var _SporTbackMC:SporTbackMC;
private var _LiEfrontMCR:LiEfrontMCR;
private var _SporTlearnMC:SporTlearnMC;
private var _radian:Number;// = 0
private var _BarBlfMCMR:BarBlfMCMR;
public var tempY:Number;// = 300
private var _SporTrsMC:SporTrsMC;
public var _learnNot:Boolean;// = false
private var _CartooNtoiletMC:CartooNtoiletMC;
private var _BarBrfMC:BarBrfMC;
private var _SporTdrugWantMC:SporTdrugWantMC;
private var _SocKdeadMC:SocKdeadMC;
private var _CartooNdrinkMC:CartooNdrinkMC;
private var _SporTbackMCR:SporTbackMCR;
private var _SporTdeadMC:SporTdeadMC;
private var _CartooNbackMC:CartooNbackMC;
public var _mTothirsty:Boolean;// = false
private var _BarBsleepMC:BarBsleepMC;
private var _SporTrbMC:SporTrbMC;
private var _SocKfrontMC:SocKfrontMC;
private var _CartooNtoiletWantMC:CartooNtoiletWantMC;
public var _dirtyWant:Boolean;// = false
private var _LiEbackMC:LiEbackMC;
public var _toiletWant:Boolean;// = false
private var channel2:SoundChannel;
private var _BarBlearnMC:BarBlearnMC;
public var _hungryAdd:Number;// = 0
private var _SocKdrugMC:SocKdrugMC;
private var _BarBfrontMCMR:BarBfrontMCMR;
private var _CartooNrefuseMC:CartooNrefuseMC;
private var _CartooNdeadMC:CartooNdeadMC;
private var _SporTdrugMC:SporTdrugMC;
private var _LiErsMCM:LiErsMCM;
private var _SocKlfMC:SocKlfMC;
private var _CartooNlbMCR:CartooNlbMCR;
private var _LiErsMCR:LiErsMCR;
public var _mTobored:Boolean;// = false
private var _BarBlsMCM:BarBlsMCM;
private var _LiEdeadMC:LiEdeadMC;
private var _BarBlsMCR:BarBlsMCR;
private var _CartooNlsMC:CartooNlsMC;
private var _SocKlsMCM:SocKlsMCM;
private var _SocKlsMCR:SocKlsMCR;
private var _LiErfMC:LiErfMC;
private var channel1:SoundChannel;
public var _SocKeatWantMC:SocKeatWantMC;
private var _LiEfrontMC:LiEfrontMC;
private var _dirtyR:Number;
private var _SporTfrontMCM:SporTfrontMCM;
private var _objBored:Object;
private var _CartooNdrugMC:CartooNdrugMC;
private var _BarBbackMCR:BarBbackMCR;
private var _SporTfrontMCR:SporTfrontMCR;
private var _degree:Number;// = 0
private var _SporTplayWantMC:SporTplayWantMC;
public var _thirstyNot:Boolean;// = false
private var _BarBrfMCR:BarBrfMCR;
private var _BarBrfMCM:BarBrfMCM;
private var _LiEdrugMC:LiEdrugMC;
public function Children(){
_cloth = 1;
_front = true;
_lf = false;
_ls = false;
_lb = false;
_back = false;
_rf = false;
_rs = false;
_rb = false;
_cface = false;
_tempBoolean = true;
_NotCMoive = false;
_wait = false;
_mouseHit = false;
_mouseHitBtn = false;
_arrive = false;
tempX = 300;
tempY = 300;
_degree = 0;
_radian = 0;
_tempDegree = 0;
_countA = 0;
_countB = 0;
_tempCount = 0;
_tempDoingCount = 0;
_tempWantCount = 0;
_mSpeed = 2;
_rSpeed = 5;
_move = true;
_run = false;
_thirstyAdd = 0;
_hungryAdd = 0;
_boredAdd = 0;
_toiletAdd = 0;
_dirtyAdd = 0;
_dead = false;
_death = false;
_edu = 50;
_happy = 50;
_funny = 50;
_healthy = 50;
reduce = 0;
_thirsty = 50;
_hungry = 50;
_bored = 50;
_toilet = 50;
_dirty = 50;
reDrug = 0;
_mTodirty = false;
_mTotoilet = false;
_mTohungry = false;
_mTobored = false;
_mTothirsty = false;
_mTosleep = false;
_mTolearn = false;
_mToplay = false;
_mTodrug = false;
_thirstyNot = false;
_hungryNot = false;
_boredNot = false;
_toiletNot = false;
_dirtyNot = false;
_sleepNot = false;
_learnNot = false;
_playNot = false;
_drugNot = false;
_thirstyDo = false;
_hungryDo = false;
_toiletDo = false;
_dirtyDo = false;
_sleepDo = false;
_learnDo = false;
_playDo = false;
_drugDo = false;
_thirstyWant = false;
_hungryWant = false;
_toiletWant = false;
_dirtyWant = false;
_sleepWant = false;
_learnWant = false;
_playWant = false;
_drugWant = false;
stateArray = [];
_stop = false;
_role = false;
_objThirsty = new Object();
_objHungry = new Object();
_objBored = new Object();
_objToilet = new Object();
_objDirty = new Object();
_objHealthy = new Object();
_cvolume = 1;
super();
_spr = new Sprite();
_BarBfrontMC = new BarBfrontMC();
_BarBlfMC = new BarBlfMC();
_BarBlsMC = new BarBlsMC();
_BarBlbMC = new BarBlbMC();
_BarBbackMC = new BarBbackMC();
_BarBrfMC = new BarBrfMC();
_BarBrsMC = new BarBrsMC();
_BarBrbMC = new BarBrbMC();
_BarBfrontMCM = new BarBfrontMCM();
_BarBlfMCM = new BarBlfMCM();
_BarBlsMCM = new BarBlsMCM();
_BarBrfMCM = new BarBrfMCM();
_BarBrsMCM = new BarBrsMCM();
_BarBfrontMCMR = new BarBfrontMCMR();
_BarBlfMCMR = new BarBlfMCMR();
_BarBlsMCMR = new BarBlsMCMR();
_BarBrfMCMR = new BarBrfMCMR();
_BarBrsMCMR = new BarBrsMCMR();
_BarBfrontMCR = new BarBfrontMCR();
_BarBlfMCR = new BarBlfMCR();
_BarBlsMCR = new BarBlsMCR();
_BarBlbMCR = new BarBlbMCR();
_BarBbackMCR = new BarBbackMCR();
_BarBrfMCR = new BarBrfMCR();
_BarBrsMCR = new BarBrsMCR();
_BarBrbMCR = new BarBrbMCR();
_LiEfrontMC = new LiEfrontMC();
_LiElfMC = new LiElfMC();
_LiElsMC = new LiElsMC();
_LiElbMC = new LiElbMC();
_LiEbackMC = new LiEbackMC();
_LiErfMC = new LiErfMC();
_LiErsMC = new LiErsMC();
_LiErbMC = new LiErbMC();
_LiEfrontMCM = new LiEfrontMCM();
_LiElfMCM = new LiElfMCM();
_LiElsMCM = new LiElsMCM();
_LiErfMCM = new LiErfMCM();
_LiErsMCM = new LiErsMCM();
_LiEfrontMCMR = new LiEfrontMCMR();
_LiElfMCMR = new LiElfMCMR();
_LiElsMCMR = new LiElsMCMR();
_LiErfMCMR = new LiErfMCMR();
_LiErsMCMR = new LiErsMCMR();
_LiEfrontMCR = new LiEfrontMCR();
_LiElfMCR = new LiElfMCR();
_LiElsMCR = new LiElsMCR();
_LiElbMCR = new LiElbMCR();
_LiEbackMCR = new LiEbackMCR();
_LiErfMCR = new LiErfMCR();
_LiErsMCR = new LiErsMCR();
_LiErbMCR = new LiErbMCR();
_SporTfrontMC = new SporTfrontMC();
_SporTlfMC = new SporTlfMC();
_SporTlsMC = new SporTlsMC();
_SporTlbMC = new SporTlbMC();
_SporTbackMC = new SporTbackMC();
_SporTrfMC = new SporTrfMC();
_SporTrsMC = new SporTrsMC();
_SporTrbMC = new SporTrbMC();
_SporTfrontMCM = new SporTfrontMCM();
_SporTlfMCM = new SporTlfMCM();
_SporTlsMCM = new SporTlsMCM();
_SporTrfMCM = new SporTrfMCM();
_SporTrsMCM = new SporTrsMCM();
_SporTfrontMCMR = new SporTfrontMCMR();
_SporTlfMCMR = new SporTlfMCMR();
_SporTlsMCMR = new SporTlsMCMR();
_SporTrfMCMR = new SporTrfMCMR();
_SporTrsMCMR = new SporTrsMCMR();
_SporTfrontMCR = new SporTfrontMCR();
_SporTlfMCR = new SporTlfMCR();
_SporTlsMCR = new SporTlsMCR();
_SporTlbMCR = new SporTlbMCR();
_SporTbackMCR = new SporTbackMCR();
_SporTrfMCR = new SporTrfMCR();
_SporTrsMCR = new SporTrsMCR();
_SporTrbMCR = new SporTrbMCR();
_SocKfrontMC = new SocKfrontMC();
_SocKlfMC = new SocKlfMC();
_SocKlsMC = new SocKlsMC();
_SocKlbMC = new SocKlbMC();
_SocKbackMC = new SocKbackMC();
_SocKrfMC = new SocKrfMC();
_SocKrsMC = new SocKrsMC();
_SocKrbMC = new SocKrbMC();
_SocKfrontMCM = new SocKfrontMCM();
_SocKlfMCM = new SocKlfMCM();
_SocKlsMCM = new SocKlsMCM();
_SocKrfMCM = new SocKrfMCM();
_SocKrsMCM = new SocKrsMCM();
_SocKfrontMCMR = new SocKfrontMCMR();
_SocKlfMCMR = new SocKlfMCMR();
_SocKlsMCMR = new SocKlsMCMR();
_SocKrfMCMR = new SocKrfMCMR();
_SocKrsMCMR = new SocKrsMCMR();
_SocKfrontMCR = new SocKfrontMCR();
_SocKlfMCR = new SocKlfMCR();
_SocKlsMCR = new SocKlsMCR();
_SocKlbMCR = new SocKlbMCR();
_SocKbackMCR = new SocKbackMCR();
_SocKrfMCR = new SocKrfMCR();
_SocKrsMCR = new SocKrsMCR();
_SocKrbMCR = new SocKrbMCR();
_CartooNfrontMC = new CartooNfrontMC();
_CartooNlfMC = new CartooNlfMC();
_CartooNlsMC = new CartooNlsMC();
_CartooNlbMC = new CartooNlbMC();
_CartooNbackMC = new CartooNbackMC();
_CartooNrfMC = new CartooNrfMC();
_CartooNrsMC = new CartooNrsMC();
_CartooNrbMC = new CartooNrbMC();
_CartooNfrontMCM = new CartooNfrontMCM();
_CartooNlfMCM = new CartooNlfMCM();
_CartooNlsMCM = new CartooNlsMCM();
_CartooNrfMCM = new CartooNrfMCM();
_CartooNrsMCM = new CartooNrsMCM();
_CartooNfrontMCMR = new CartooNfrontMCMR();
_CartooNlfMCMR = new CartooNlfMCMR();
_CartooNlsMCMR = new CartooNlsMCMR();
_CartooNrfMCMR = new CartooNrfMCMR();
_CartooNrsMCMR = new CartooNrsMCMR();
_CartooNfrontMCR = new CartooNfrontMCR();
_CartooNlfMCR = new CartooNlfMCR();
_CartooNlsMCR = new CartooNlsMCR();
_CartooNlbMCR = new CartooNlbMCR();
_CartooNbackMCR = new CartooNbackMCR();
_CartooNrfMCR = new CartooNrfMCR();
_CartooNrsMCR = new CartooNrsMCR();
_CartooNrbMCR = new CartooNrbMCR();
_BarBdrinkMC = new BarBdrinkMC();
_LiEdrinkMC = new LiEdrinkMC();
_SporTdrinkMC = new SporTdrinkMC();
_SocKdrinkMC = new SocKdrinkMC();
_CartooNdrinkMC = new CartooNdrinkMC();
_BarBdrinkWantMC = new BarBdrinkWantMC();
_LiEdrinkWantMC = new LiEdrinkWantMC();
_SporTdrinkWantMC = new SporTdrinkWantMC();
_SocKdrinkWantMC = new SocKdrinkWantMC();
_CartooNdrinkWantMC = new CartooNdrinkWantMC();
_BarBeatMC = new BarBeatMC();
_LiEeatMC = new LiEeatMC();
_SporTeatMC = new SporTeatMC();
_SocKeatMC = new SocKeatMC();
_CartooNeatMC = new CartooNeatMC();
_BarBeatWantMC = new BarBeatWantMC();
_LiEeatWantMC = new LiEeatWantMC();
_SporTeatWantMC = new SporTeatWantMC();
_SocKeatWantMC = new SocKeatWantMC();
_CartooNeatWantMC = new CartooNeatWantMC();
_BarBdrugMC = new BarBdrugMC();
_LiEdrugMC = new LiEdrugMC();
_SporTdrugMC = new SporTdrugMC();
_SocKdrugMC = new SocKdrugMC();
_CartooNdrugMC = new CartooNdrugMC();
_BarBdrugWantMC = new BarBdrugWantMC();
_LiEdrugWantMC = new LiEdrugWantMC();
_SporTdrugWantMC = new SporTdrugWantMC();
_SocKdrugWantMC = new SocKdrugWantMC();
_CartooNdrugWantMC = new CartooNdrugWantMC();
_BarBsleepWantMC = new BarBsleepWantMC();
_LiEsleepWantMC = new LiEsleepWantMC();
_SporTsleepWantMC = new SporTsleepWantMC();
_SocKsleepWantMC = new SocKsleepWantMC();
_CartooNsleepWantMC = new CartooNsleepWantMC();
_BarBdirtyWantMC = new BarBdirtyWantMC();
_LiEdirtyWantMC = new LiEdirtyWantMC();
_SporTdirtyWantMC = new SporTdirtyWantMC();
_SocKdirtyWantMC = new SocKdirtyWantMC();
_CartooNdirtyWantMC = new CartooNdirtyWantMC();
_BarBsleepMC = new BarBsleepMC();
_BarBtoiletMC = new BarBtoiletMC();
_LiEtoiletMC = new LiEtoiletMC();
_SporTtoiletMC = new SporTtoiletMC();
_SocKtoiletMC = new SocKtoiletMC();
_CartooNtoiletMC = new CartooNtoiletMC();
_BarBtoiletWantMC = new BarBtoiletWantMC();
_LiEtoiletWantMC = new LiEtoiletWantMC();
_SporTtoiletWantMC = new SporTtoiletWantMC();
_SocKtoiletWantMC = new SocKtoiletWantMC();
_CartooNtoiletWantMC = new CartooNtoiletWantMC();
_BarBlearnMC = new BarBlearnMC();
_LiElearnMC = new LiElearnMC();
_SporTlearnMC = new SporTlearnMC();
_SocKlearnMC = new SocKlearnMC();
_CartooNlearnMC = new CartooNlearnMC();
_BarBlearnWantMC = new BarBlearnWantMC();
_LiElearnWantMC = new LiElearnWantMC();
_SporTlearnWantMC = new SporTlearnWantMC();
_SocKlearnWantMC = new SocKlearnWantMC();
_CartooNlearnWantMC = new CartooNlearnWantMC();
_BarBplayMC = new BarBplayMC();
_LiEplayMC = new LiEplayMC();
_SporTplayMC = new SporTplayMC();
_SocKplayMC = new SocKplayMC();
_CartooNplayMC = new CartooNplayMC();
_BarBplayWantMC = new BarBplayWantMC();
_LiEplayWantMC = new LiEplayWantMC();
_SporTplayWantMC = new SporTplayWantMC();
_SocKplayWantMC = new SocKplayWantMC();
_CartooNplayWantMC = new CartooNplayWantMC();
_BarBrefuseMC = new BarBrefuseMC();
_LiErefuseMC = new LiErefuseMC();
_SporTrefuseMC = new SporTrefuseMC();
_SocKrefuseMC = new SocKrefuseMC();
_CartooNrefuseMC = new CartooNrefuseMC();
_BarBdirtyMC = new BarBdirtyMC();
_thirstyR = (0.005 + (0.001 * Math.floor((Math.random() * 10))));
_hungryR = (0.005 + (0.001 * Math.floor((Math.random() * 10))));
_boredR = (0.005 + (0.001 * Math.floor((Math.random() * 10))));
_toiletR = (0.005 + (0.001 * Math.floor((Math.random() * 10))));
_dirtyR = (0.005 + (0.001 * Math.floor((Math.random() * 10))));
_objThirsty.bb = 40;
_objThirsty.cc = 0;
_objHungry.bb = 40;
_objHungry.cc = 1;
_objBored.bb = 95;
_objBored.cc = 2;
_objToilet.bb = 40;
_objToilet.cc = 3;
_objDirty.bb = 20;
_objDirty.cc = 4;
_objHealthy.bb = 25;
_objHealthy.cc = 5;
stateArray = [_objThirsty, _objHungry, _objBored, _objToilet, _objDirty, _objHealthy];
init();
}
private function doAct():void{
if (_thirstyDo){
_stop = true;
_tempDoingCount++;
_thirsty = (_thirsty + (_thirstyAdd / 70));
if (_cloth == 1){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBdrinkMC);
_BarBdrinkMC.gotoAndPlay(1);
};
if (_tempDoingCount == 70){
_thirstyDo = false;
_role = false;
_tempDoingCount = 0;
_stop = false;
_NotCMoive = false;
cface();
};
} else {
if (_cloth == 2){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_LiEdrinkMC);
_LiEdrinkMC.gotoAndPlay(1);
};
if (_tempDoingCount == 70){
_thirstyDo = false;
_role = false;
_stop = false;
_tempDoingCount = 0;
_NotCMoive = false;
cface();
};
} else {
if (_cloth == 3){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SporTdrinkMC);
_SporTdrinkMC.gotoAndPlay(1);
};
if (_tempDoingCount == 70){
_thirstyDo = false;
_role = false;
_stop = false;
_NotCMoive = false;
_tempDoingCount = 0;
cface();
};
} else {
if (_cloth == 4){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SocKdrinkMC);
_SocKdrinkMC.gotoAndPlay(1);
};
if (_tempDoingCount == 70){
_thirstyDo = false;
_role = false;
_stop = false;
_NotCMoive = false;
_tempDoingCount = 0;
cface();
};
} else {
if (_cloth == 5){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_CartooNdrinkMC);
_CartooNdrinkMC.gotoAndPlay(1);
};
if (_tempDoingCount == 70){
_thirstyDo = false;
_role = false;
_stop = false;
_NotCMoive = false;
_tempDoingCount = 0;
cface();
};
};
};
};
};
};
};
if (((_arrive) && (_hungryDo))){
_stop = true;
_tempDoingCount++;
_hungry = (_hungry + (_hungryAdd / 151));
if (_cloth == 1){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBeatMC);
_BarBeatMC.gotoAndPlay(1);
};
if (_tempDoingCount == 151){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_hungryDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
};
} else {
if (_cloth == 2){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_LiEeatMC);
_LiEeatMC.gotoAndPlay(1);
};
if (_tempDoingCount == 151){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_hungryDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
};
} else {
if (_cloth == 3){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SporTeatMC);
_SporTeatMC.gotoAndPlay(1);
};
if (_tempDoingCount == 151){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_hungryDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
};
} else {
if (_cloth == 4){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SocKeatMC);
_SocKeatMC.gotoAndPlay(1);
};
if (_tempDoingCount == 151){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_hungryDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
};
} else {
if (_cloth == 5){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_CartooNeatMC);
_CartooNeatMC.gotoAndPlay(1);
};
if (_tempDoingCount == 151){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_hungryDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
};
};
};
};
};
};
};
if (((_arrive) && (_drugDo))){
_stop = true;
_tempDoingCount++;
if (_cloth == 1){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBdrugMC);
_BarBdrugMC.gotoAndPlay(1);
};
if (_tempDoingCount == 63){
reDrug = 1;
_healthy = (_healthy + 20);
};
if (_tempDoingCount == 64){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_drugDo = false;
_stop = false;
_NotCMoive = false;
reDrug = 0;
_role = false;
};
} else {
if (_cloth == 2){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_LiEdrugMC);
_LiEdrugMC.gotoAndPlay(1);
};
if (_tempDoingCount == 63){
reDrug = 1;
_healthy = (_healthy + 20);
};
if (_tempDoingCount == 64){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_drugDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
};
} else {
if (_cloth == 3){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SporTdrugMC);
_SporTdrugMC.gotoAndPlay(1);
};
if (_tempDoingCount == 63){
reDrug = 1;
_healthy = (_healthy + 20);
};
if (_tempDoingCount == 64){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_drugDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
};
} else {
if (_cloth == 4){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SocKdrugMC);
_SocKdrugMC.gotoAndPlay(1);
};
if (_tempDoingCount == 63){
reDrug = 1;
_healthy = (_healthy + 20);
};
if (_tempDoingCount == 64){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_drugDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
};
} else {
if (_cloth == 5){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_CartooNdrugMC);
_CartooNdrugMC.gotoAndPlay(1);
};
if (_tempDoingCount == 63){
reDrug = 1;
_healthy = (_healthy + 20);
};
if (_tempDoingCount == 64){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_drugDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
};
};
};
};
};
};
};
if (((_arrive) && (_sleepDo))){
_stop = true;
_tempDoingCount++;
_bored = (_bored + (_boredAdd / 119));
if (_cloth == 1){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBsleepMC);
_BarBsleepMC.gotoAndPlay(1);
};
if (_tempDoingCount == 119){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_sleepDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
};
} else {
if (_cloth == 2){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBsleepMC);
_BarBsleepMC.gotoAndPlay(1);
};
if (_tempDoingCount == 119){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_sleepDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
};
} else {
if (_cloth == 3){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBsleepMC);
_BarBsleepMC.gotoAndPlay(1);
};
if (_tempDoingCount == 119){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_sleepDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
};
} else {
if (_cloth == 4){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBsleepMC);
_BarBsleepMC.gotoAndPlay(1);
};
if (_tempDoingCount == 119){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_sleepDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
};
} else {
if (_cloth == 5){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBsleepMC);
_BarBsleepMC.gotoAndPlay(1);
};
if (_tempDoingCount == 119){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_sleepDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
};
};
};
};
};
};
};
if (((_arrive) && (_learnDo))){
_stop = true;
_tempDoingCount++;
_bored = (_bored + (_boredAdd / 137));
if (_cloth == 1){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBlearnMC);
_BarBlearnMC.gotoAndPlay(1);
};
if (_tempDoingCount == 137){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_learnDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_edu = (_edu + 1);
};
} else {
if (_cloth == 2){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_LiElearnMC);
_LiElearnMC.gotoAndPlay(1);
};
if (_tempDoingCount == 137){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_learnDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_edu = (_edu + 1);
};
} else {
if (_cloth == 3){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SporTlearnMC);
_SporTlearnMC.gotoAndPlay(1);
};
if (_tempDoingCount == 137){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_learnDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_edu = (_edu + 1);
};
} else {
if (_cloth == 4){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SocKlearnMC);
_SocKlearnMC.gotoAndPlay(1);
};
if (_tempDoingCount == 137){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_learnDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_edu = (_edu + 1);
};
} else {
if (_cloth == 5){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_CartooNlearnMC);
_CartooNlearnMC.gotoAndPlay(1);
};
if (_tempDoingCount == 137){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_learnDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_edu = (_edu + 1);
};
};
};
};
};
};
};
if (_playDo){
_stop = true;
_tempDoingCount++;
_bored = (_bored + (_boredAdd / 113));
if (_cloth == 1){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBplayMC);
_BarBplayMC.gotoAndPlay(1);
};
if (_tempDoingCount == 113){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_playDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_happy = (_happy + 1);
};
} else {
if (_cloth == 2){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_LiEplayMC);
_LiEplayMC.gotoAndPlay(1);
};
if (_tempDoingCount == 113){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_playDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_happy = (_happy + 1);
};
} else {
if (_cloth == 3){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SporTplayMC);
_SporTplayMC.gotoAndPlay(1);
};
if (_tempDoingCount == 113){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_playDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_happy = (_happy + 1);
};
} else {
if (_cloth == 4){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SocKplayMC);
_SocKplayMC.gotoAndPlay(1);
};
if (_tempDoingCount == 113){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_playDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_happy = (_happy + 1);
};
} else {
if (_cloth == 5){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_CartooNplayMC);
_CartooNplayMC.gotoAndPlay(1);
};
if (_tempDoingCount == 113){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_playDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_happy = (_happy + 1);
};
};
};
};
};
};
};
if (((_arrive) && (_dirtyDo))){
_stop = true;
_tempDoingCount++;
_dirty = (_dirty + (_dirtyAdd / 142));
if (_tempDoingCount == 100){
_changeSound = new changeSound();
channel1 = _changeSound.play(0, 1);
transform1 = channel1.soundTransform;
transform1.volume = _cvolume;
channel1.soundTransform = transform1;
};
if (_cloth == 1){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBdirtyMC);
_BarBdirtyMC.gotoAndPlay(1);
};
if (_tempDoingCount == 142){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_dirtyDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_healthy = (_healthy + 1);
};
} else {
if (_cloth == 2){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBdirtyMC);
_BarBdirtyMC.gotoAndPlay(1);
};
if (_tempDoingCount == 142){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_dirtyDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_healthy = (_healthy + 1);
};
} else {
if (_cloth == 3){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBdirtyMC);
_BarBdirtyMC.gotoAndPlay(1);
};
if (_tempDoingCount == 142){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_dirtyDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_healthy = (_healthy + 1);
};
} else {
if (_cloth == 4){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBdirtyMC);
_BarBdirtyMC.gotoAndPlay(1);
};
if (_tempDoingCount == 142){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_dirtyDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_healthy = (_healthy + 1);
};
} else {
if (_cloth == 5){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBdirtyMC);
_BarBdirtyMC.gotoAndPlay(1);
};
if (_tempDoingCount == 142){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_dirtyDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_healthy = (_healthy + 1);
};
};
};
};
};
};
};
if (((_arrive) && (_toiletDo))){
_stop = true;
_tempDoingCount++;
_toilet = (_toilet + (_toiletAdd / 102));
if (_cloth == 1){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBtoiletMC);
_BarBtoiletMC.gotoAndPlay(1);
};
if (_tempDoingCount == 102){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_toiletDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_healthy = (_healthy + 1);
};
} else {
if (_cloth == 2){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_LiEtoiletMC);
_LiEtoiletMC.gotoAndPlay(1);
};
if (_tempDoingCount == 102){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_toiletDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_healthy = (_healthy + 1);
};
} else {
if (_cloth == 3){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SporTtoiletMC);
_SporTtoiletMC.gotoAndPlay(1);
};
if (_tempDoingCount == 102){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_toiletDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_healthy = (_healthy + 1);
};
} else {
if (_cloth == 4){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SocKtoiletMC);
_SocKtoiletMC.gotoAndPlay(1);
};
if (_tempDoingCount == 102){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_toiletDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_healthy = (_healthy + 1);
};
} else {
if (_cloth == 5){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_CartooNtoiletMC);
_CartooNtoiletMC.gotoAndPlay(1);
};
if (_tempDoingCount == 102){
_tempDoingCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_toiletDo = false;
_stop = false;
_NotCMoive = false;
_role = false;
_healthy = (_healthy + 1);
};
};
};
};
};
};
};
if (_thirstyWant){
_stop = true;
_tempWantCount++;
if (_cloth == 1){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBdrinkWantMC);
_BarBdrinkWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_thirstyWant = false;
_tempWantCount = 0;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
cface();
_funny = (_funny + 1);
};
} else {
if (_cloth == 2){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_LiEdrinkWantMC);
_LiEdrinkWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_thirstyWant = false;
_stop = false;
_tempWantCount = 0;
_NotCMoive = false;
_healthy = (_healthy - 1);
cface();
_funny = (_funny + 1);
};
} else {
if (_cloth == 3){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SporTdrinkWantMC);
_SporTdrinkWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_thirstyWant = false;
_stop = false;
_NotCMoive = false;
_tempWantCount = 0;
_healthy = (_healthy - 1);
cface();
_funny = (_funny + 1);
};
} else {
if (_cloth == 4){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SocKdrinkWantMC);
_SocKdrinkWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_thirstyWant = false;
_stop = false;
_NotCMoive = false;
_tempWantCount = 0;
_healthy = (_healthy - 1);
cface();
_funny = (_funny + 1);
};
} else {
if (_cloth == 5){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_CartooNdrinkWantMC);
_CartooNdrinkWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_thirstyWant = false;
_stop = false;
_NotCMoive = false;
_tempWantCount = 0;
_healthy = (_healthy - 1);
cface();
_funny = (_funny + 1);
};
};
};
};
};
};
};
if (_hungryWant){
_stop = true;
_tempWantCount++;
if (_cloth == 1){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBeatWantMC);
_BarBeatWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 130){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_hungryWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 2){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_LiEeatWantMC);
_LiEeatWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 130){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_hungryWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 3){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SporTeatWantMC);
_SporTeatWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 130){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_hungryWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 4){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SocKeatWantMC);
_SocKeatWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 130){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_hungryWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 5){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_CartooNeatWantMC);
_CartooNeatWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 130){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_hungryWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
};
};
};
};
};
};
if (_sleepWant){
_stop = true;
_tempWantCount++;
if (_cloth == 1){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBsleepWantMC);
_BarBsleepWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 45){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_sleepWant = false;
_stop = false;
_NotCMoive = false;
_happy = (_happy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 2){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_LiEsleepWantMC);
_BarBsleepWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 45){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_sleepWant = false;
_stop = false;
_NotCMoive = false;
_happy = (_happy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 3){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SporTsleepWantMC);
_BarBsleepWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 45){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_sleepWant = false;
_stop = false;
_NotCMoive = false;
_happy = (_happy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 4){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SocKsleepWantMC);
_BarBsleepWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 45){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_sleepWant = false;
_stop = false;
_NotCMoive = false;
_happy = (_happy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 5){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_CartooNsleepWantMC);
_BarBsleepWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 45){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_sleepWant = false;
_stop = false;
_NotCMoive = false;
_happy = (_happy - 1);
_funny = (_funny + 1);
};
};
};
};
};
};
};
if (_learnWant){
_stop = true;
_tempWantCount++;
if (_cloth == 1){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBlearnWantMC);
_BarBlearnWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_learnWant = false;
_stop = false;
_NotCMoive = false;
_funny = (_funny + 1);
};
} else {
if (_cloth == 2){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_LiElearnWantMC);
_LiElearnWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_learnWant = false;
_stop = false;
_NotCMoive = false;
_funny = (_funny + 1);
};
} else {
if (_cloth == 3){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SporTlearnWantMC);
_SporTlearnWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_learnWant = false;
_stop = false;
_NotCMoive = false;
_funny = (_funny + 1);
};
} else {
if (_cloth == 4){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SocKlearnWantMC);
_SocKlearnWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_learnWant = false;
_stop = false;
_NotCMoive = false;
_funny = (_funny + 1);
};
} else {
if (_cloth == 5){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_CartooNlearnWantMC);
_CartooNlearnWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_learnWant = false;
_stop = false;
_NotCMoive = false;
_funny = (_funny + 1);
};
};
};
};
};
};
};
if (_playWant){
_stop = true;
_tempWantCount++;
if (_cloth == 1){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBplayWantMC);
_BarBplayWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_playWant = false;
_stop = false;
_NotCMoive = false;
_happy = (_happy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 2){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_LiEplayWantMC);
_LiEplayWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_playWant = false;
_stop = false;
_NotCMoive = false;
_happy = (_happy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 3){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SporTplayWantMC);
_SporTplayWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_playWant = false;
_stop = false;
_NotCMoive = false;
_happy = (_happy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 4){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SocKplayWantMC);
_SocKplayWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_playWant = false;
_stop = false;
_NotCMoive = false;
_happy = (_happy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 5){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_CartooNplayWantMC);
_CartooNplayWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 90){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_playWant = false;
_stop = false;
_NotCMoive = false;
_happy = (_happy - 1);
_funny = (_funny + 1);
};
};
};
};
};
};
};
if (_dirtyWant){
_stop = true;
_tempWantCount++;
if (_cloth == 1){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBdirtyWantMC);
_BarBdirtyWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 35){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_dirtyWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 2){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBdirtyWantMC);
_BarBdirtyWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 35){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_dirtyWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 3){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBdirtyWantMC);
_BarBdirtyWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 35){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_dirtyWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 4){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBdirtyWantMC);
_BarBdirtyWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 35){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_dirtyWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 5){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBdirtyWantMC);
_BarBdirtyWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 35){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_dirtyWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
};
};
};
};
};
};
if (_toiletWant){
_stop = true;
_tempWantCount++;
if (_cloth == 1){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBtoiletWantMC);
_BarBtoiletWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 14){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_toiletWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 2){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_LiEtoiletWantMC);
_LiEtoiletWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 14){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_toiletWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 3){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SporTtoiletWantMC);
_SporTtoiletWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 14){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_toiletWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 4){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SocKtoiletWantMC);
_SocKtoiletWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 14){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_toiletWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
} else {
if (_cloth == 5){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_CartooNtoiletWantMC);
_CartooNtoiletWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 14){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_toiletWant = false;
_stop = false;
_NotCMoive = false;
_healthy = (_healthy - 1);
_funny = (_funny + 1);
};
};
};
};
};
};
};
if (_drugWant){
_stop = true;
_tempWantCount++;
if (_cloth == 1){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBdrugWantMC);
_BarBdrugWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 40){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_drugWant = false;
_stop = false;
_NotCMoive = false;
_funny = (_funny + 1);
};
} else {
if (_cloth == 2){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_LiEdrugWantMC);
_LiEdrugWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 40){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_drugWant = false;
_stop = false;
_NotCMoive = false;
_funny = (_funny + 1);
};
} else {
if (_cloth == 3){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SporTdrugWantMC);
_SporTdrugWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 40){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_drugWant = false;
_stop = false;
_NotCMoive = false;
_funny = (_funny + 1);
};
} else {
if (_cloth == 4){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SocKdrugWantMC);
_SocKdrugWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 40){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_drugWant = false;
_stop = false;
_NotCMoive = false;
_funny = (_funny + 1);
};
} else {
if (_cloth == 5){
if (_tempWantCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_CartooNdrugWantMC);
_CartooNdrugWantMC.gotoAndPlay(1);
};
if (_tempWantCount == 40){
_tempWantCount = 0;
cface();
_arrive = false;
zuobiaoChange();
_drugWant = false;
_stop = false;
_NotCMoive = false;
_funny = (_funny + 1);
};
};
};
};
};
};
};
}
public function clidOnTimer():void{
var _local1:int;
var _local2:Number;
var _local3:Number;
var _local4:Number;
if (_dirty < 20){
_cloth = 1;
};
if (_edu > 100){
_edu = 100;
};
if (_edu > 100){
_edu = 100;
};
if (_edu > 100){
_edu = 100;
};
if (_happy > 100){
_happy = 100;
};
if (_funny > 100){
_funny = 100;
};
if (_healthy > 100){
_healthy = 100;
};
if (_thirsty > 100){
_thirsty = 100;
};
if (_hungry > 100){
_hungry = 100;
};
if (_bored > 100){
_bored = 100;
};
if (_toilet > 100){
_toilet = 100;
};
if (_dirty > 100){
_dirty = 100;
};
if ((((((_hungry <= 0)) || ((_healthy <= 0)))) && (!(_NotCMoive)))){
_dead = true;
};
if (_dead){
_stop = true;
_tempDoingCount++;
if (_cloth == 1){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_BarBdeadMC = new BarBdeadMC();
_spr.addChild(_BarBdeadMC);
_BarBdeadMC.gotoAndPlay(1);
};
if (_tempDoingCount == 100){
_death = true;
};
} else {
if (_cloth == 2){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_LiEdeadMC = new LiEdeadMC();
_spr.addChild(_LiEdeadMC);
_LiEdeadMC.gotoAndPlay(1);
};
if (_tempDoingCount == 100){
_death = true;
};
} else {
if (_cloth == 3){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_SporTdeadMC = new SporTdeadMC();
_spr.addChild(_SporTdeadMC);
_SporTdeadMC.gotoAndPlay(1);
};
if (_tempDoingCount == 100){
_death = true;
};
} else {
if (_cloth == 4){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_SocKdeadMC = new SocKdeadMC();
_spr.addChild(_SocKdeadMC);
_SocKdeadMC.gotoAndPlay(1);
};
if (_tempDoingCount == 100){
_death = true;
};
} else {
if (_cloth == 5){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_CartooNdeadMC = new CartooNdeadMC();
_spr.addChild(_CartooNdeadMC);
_CartooNdeadMC.gotoAndPlay(1);
};
if (_tempDoingCount == 100){
_death = true;
};
};
};
};
};
};
};
if (!_dead){
_objThirsty.aa = _thirsty;
_objHungry.aa = _hungry;
_objBored.aa = _bored;
_objToilet.aa = _toilet;
_objDirty.aa = _dirty;
_objHealthy.aa = _healthy;
_tempCount++;
if (((((_tempCount - 250) >= 0)) && (!(_role)))){
_tempCount = 0;
_local1 = 0;
while (_local1 < 6) {
if (stateArray[_local1].aa < stateArray[_local1].bb){
if (stateArray[_local1].cc == 0){
_thirstyWant = true;
} else {
if (stateArray[_local1].cc == 1){
_hungryWant = true;
} else {
if (stateArray[_local1].cc == 2){
if (_bored < 30){
_sleepWant = true;
};
if ((((_bored < 60)) && ((_bored >= 40)))){
_playWant = true;
};
if ((((_bored > 92)) && ((_bored < 96)))){
_learnWant = true;
};
} else {
if (stateArray[_local1].cc == 3){
_toiletWant = true;
} else {
if (stateArray[_local1].cc == 4){
_dirtyWant = true;
} else {
if (stateArray[_local1].cc == 5){
_drugWant = true;
};
};
};
};
};
};
stateArray.push(stateArray[_local1]);
stateArray.splice(_local1, 1);
break;
};
_local1++;
};
};
if ((((Math.abs((tempY - this.y)) < 5)) && ((Math.abs((tempX - this.x)) < 5)))){
this.y = (tempY - 1);
this.x = tempX;
_arrive = true;
_move = true;
_run = false;
};
if (_mouseHit){
if (((!(_mouseHitBtn)) && (!(_NotCMoive)))){
_thirstyDo = false;
_hungryDo = false;
_toiletDo = false;
_dirtyDo = false;
_sleepDo = false;
_learnDo = false;
_playDo = false;
_drugDo = false;
_role = false;
};
if ((((((((((tempX < 25)) || ((tempX > 675)))) || ((tempY > 521)))) && (!(_mouseHitBtn)))) && (!(_NotCMoive)))){
zuobiaoChange();
};
if ((((((tempX <= 336)) && (!(_mouseHitBtn)))) && (!(_NotCMoive)))){
_local2 = (312.8 - (0.446 * tempX));
if (tempY < _local2){
tempY = (_local2 + 5);
};
};
if ((((((tempX > 336)) && (!(_mouseHitBtn)))) && (!(_NotCMoive)))){
_local3 = ((0.468 * tempX) + 5.75);
if (tempY < _local3){
tempY = (_local3 + 5);
};
};
_mouseHitBtn = false;
_mouseHit = false;
};
doAct();
isStop();
_thirsty = (_thirsty - _thirstyR);
_hungry = (_hungry - _hungryR);
_bored = (_bored - _boredR);
_toilet = (_toilet - _toiletR);
_dirty = (_dirty - _dirtyR);
if (((!(_arrive)) && (!(_stop)))){
if (_move){
_CartooNfrontMC.play();
_SocKfrontMC.play();
_SporTfrontMC.play();
_LiEfrontMC.play();
_BarBfrontMC.play();
_CartooNfrontMCM.play();
_SocKfrontMCM.play();
_SporTfrontMCM.play();
_LiEfrontMCM.play();
_BarBfrontMCM.play();
this.x = (this.x + (Math.cos(_radian) * _mSpeed));
this.y = (this.y + (Math.sin(_radian) * _mSpeed));
};
if (_run){
_CartooNfrontMCR.play();
_SocKfrontMCR.play();
_SporTfrontMCR.play();
_LiEfrontMCR.play();
_BarBfrontMCR.play();
_CartooNfrontMCMR.play();
_SocKfrontMCMR.play();
_SporTfrontMCMR.play();
_LiEfrontMCMR.play();
_BarBfrontMCMR.play();
this.x = (this.x + (Math.cos(_radian) * _rSpeed));
this.y = (this.y + (Math.sin(_radian) * _rSpeed));
};
};
if (((_arrive) && (!(_stop)))){
_move = true;
_run = false;
_countA++;
_CartooNfrontMC.gotoAndStop(11);
_SocKfrontMC.gotoAndStop(11);
_SporTfrontMC.gotoAndStop(11);
_LiEfrontMC.gotoAndStop(11);
_BarBfrontMC.gotoAndStop(11);
_CartooNfrontMCM.gotoAndStop(11);
_SocKfrontMCM.gotoAndStop(11);
_SporTfrontMCM.gotoAndStop(11);
_LiEfrontMCM.gotoAndStop(11);
_BarBfrontMCM.gotoAndStop(11);
_CartooNfrontMCR.gotoAndStop(11);
_SocKfrontMCR.gotoAndStop(11);
_SporTfrontMCR.gotoAndStop(11);
_LiEfrontMCR.gotoAndStop(11);
_BarBfrontMCR.gotoAndStop(11);
_CartooNfrontMCMR.gotoAndStop(11);
_SocKfrontMCMR.gotoAndStop(11);
_SporTfrontMCMR.gotoAndStop(11);
_LiEfrontMCMR.gotoAndStop(11);
_BarBfrontMCMR.gotoAndStop(11);
if (_countA == 1){
_local4 = Math.floor((Math.random() * 10));
if (_local4 < 7){
zuobiaoChange();
_countA = 0;
_arrive = false;
} else {
_wait = true;
};
};
if (((_wait) && ((_countA > 60)))){
zuobiaoChange();
_wait = false;
_countA = 0;
_arrive = false;
};
};
if (tempY > 521){
tempY = 521;
};
_radian = Math.atan2((tempY - this.y), (tempX - this.x));
_degree = ((_radian * 180) / Math.PI);
if (Math.round(_degree) != _tempDegree){
_tempDegree = Math.round(_degree);
_cface = true;
};
if (_tempBoolean != _move){
_cface = true;
};
_tempBoolean = _move;
if ((((_degree >= -15)) && ((_degree < 15)))){
_front = false;
_lf = false;
_ls = false;
_lb = false;
_back = false;
_rf = false;
_rs = true;
_rb = false;
};
if ((((_degree >= 15)) && ((_degree < 75)))){
_front = false;
_lf = false;
_ls = false;
_lb = false;
_back = false;
_rf = true;
_rs = false;
_rb = false;
};
if ((((_degree >= 75)) && ((_degree < 105)))){
_front = true;
_lf = false;
_ls = false;
_lb = false;
_back = false;
_rf = false;
_rs = false;
_rb = false;
};
if ((((_degree >= 105)) && ((_degree < 165)))){
_front = false;
_lf = true;
_ls = false;
_lb = false;
_back = false;
_rf = false;
_rs = false;
_rb = false;
};
if ((((_degree >= 165)) || ((_degree < -165)))){
_front = false;
_lf = false;
_ls = true;
_lb = false;
_back = false;
_rf = false;
_rs = false;
_rb = false;
};
if ((((_degree >= -165)) && ((_degree < -105)))){
_front = false;
_lf = false;
_ls = false;
_lb = true;
_back = false;
_rf = false;
_rs = false;
_rb = false;
};
if ((((_degree >= -105)) && ((_degree < -75)))){
_front = false;
_lf = false;
_ls = false;
_lb = false;
_back = true;
_rf = false;
_rs = false;
_rb = false;
};
if ((((_degree >= -75)) && ((_degree < -15)))){
_front = false;
_lf = false;
_ls = false;
_lb = false;
_back = false;
_rf = false;
_rs = false;
_rb = true;
};
if (((_cface) && (!(_NotCMoive)))){
cface();
_cface = false;
};
if (((((((((((((((_thirstyNot) || (_hungryNot))) || (_sleepNot))) || (_playNot))) || (_learnNot))) || (_toiletNot))) || (_dirtyNot))) || (_drugNot))){
_tempDoingCount++;
_stop = true;
if (_tempDoingCount == 1){
_enSound = new enSound();
channel2 = _enSound.play(0, 1);
transform1 = channel2.soundTransform;
transform1.volume = _cvolume;
channel2.soundTransform = transform1;
};
if (_cloth == 1){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_BarBrefuseMC);
_BarBrefuseMC.gotoAndPlay(1);
};
if (_tempDoingCount == 44){
_NotCMoive = false;
_thirstyNot = false;
_hungryNot = false;
_sleepNot = false;
_playNot = false;
_learnNot = false;
_toiletNot = false;
_dirtyNot = false;
_drugNot = false;
_role = false;
_stop = false;
_tempDoingCount = 0;
cface();
zuobiaoChange();
};
} else {
if (_cloth == 2){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_LiErefuseMC);
_LiErefuseMC.gotoAndPlay(1);
};
if (_tempDoingCount == 44){
_NotCMoive = false;
_thirstyNot = false;
_hungryNot = false;
_sleepNot = false;
_playNot = false;
_learnNot = false;
_toiletNot = false;
_dirtyNot = false;
_drugNot = false;
_role = false;
_stop = false;
_tempDoingCount = 0;
cface();
zuobiaoChange();
};
} else {
if (_cloth == 3){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SporTrefuseMC);
_SporTrefuseMC.gotoAndPlay(1);
};
if (_tempDoingCount == 44){
_NotCMoive = false;
_thirstyNot = false;
_hungryNot = false;
_sleepNot = false;
_playNot = false;
_learnNot = false;
_toiletNot = false;
_dirtyNot = false;
_drugNot = false;
_role = false;
_stop = false;
_tempDoingCount = 0;
cface();
zuobiaoChange();
};
} else {
if (_cloth == 4){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_SocKrefuseMC);
_SocKrefuseMC.gotoAndPlay(1);
};
if (_tempDoingCount == 44){
_NotCMoive = false;
_thirstyNot = false;
_hungryNot = false;
_sleepNot = false;
_playNot = false;
_learnNot = false;
_toiletNot = false;
_dirtyNot = false;
_drugNot = false;
_role = false;
_stop = false;
_tempDoingCount = 0;
cface();
zuobiaoChange();
};
} else {
if (_cloth == 5){
if (_tempDoingCount == 1){
_NotCMoive = true;
_spr.removeChildAt(0);
_spr.addChild(_CartooNrefuseMC);
_CartooNrefuseMC.gotoAndPlay(1);
};
if (_tempDoingCount == 44){
_NotCMoive = false;
_thirstyNot = false;
_hungryNot = false;
_sleepNot = false;
_playNot = false;
_learnNot = false;
_toiletNot = false;
_dirtyNot = false;
_drugNot = false;
_role = false;
_stop = false;
_tempDoingCount = 0;
cface();
zuobiaoChange();
};
};
};
};
};
};
};
};
}
private function init():void{
_spr.addChild(_BarBfrontMC);
addChild(_spr);
this.x = 300;
this.y = 300;
}
private function cface():void{
if (_cloth == 1){
if (_move){
if ((((_bored < 40)) || ((_happy < 30)))){
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_BarBfrontMCM);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_BarBbackMC);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_BarBlfMCM);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_BarBlsMCM);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_BarBlbMC);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_BarBrfMCM);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_BarBrsMCM);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_BarBrbMC);
};
} else {
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_BarBfrontMC);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_BarBbackMC);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_BarBlfMC);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_BarBlsMC);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_BarBlbMC);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_BarBrfMC);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_BarBrsMC);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_BarBrbMC);
};
};
};
if (_run){
if ((((_bored < 40)) || ((_happy < 30)))){
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_BarBfrontMCMR);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_BarBbackMCR);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_BarBlfMCMR);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_BarBlsMCMR);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_BarBlbMCR);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_BarBrfMCMR);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_BarBrsMCMR);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_BarBrbMCR);
};
} else {
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_BarBfrontMCR);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_BarBbackMCR);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_BarBlfMCR);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_BarBlsMCR);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_BarBlbMCR);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_BarBrfMCR);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_BarBrsMCR);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_BarBrbMCR);
};
};
};
};
if (_cloth == 2){
if (_move){
if ((((_bored < 40)) || ((_happy < 30)))){
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_LiEfrontMCM);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_LiEbackMC);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_LiElfMCM);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_LiElsMCM);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_LiElbMC);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_LiErfMCM);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_LiErsMCM);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_LiErbMC);
};
} else {
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_LiEfrontMC);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_LiEbackMC);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_LiElfMC);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_LiElsMC);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_LiElbMC);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_LiErfMC);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_LiErsMC);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_LiErbMC);
};
};
};
if (_run){
if ((((_bored < 40)) || ((_happy < 30)))){
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_LiEfrontMCMR);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_LiEbackMCR);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_LiElfMCMR);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_LiElsMCMR);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_LiElbMCR);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_LiErfMCMR);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_LiErsMCMR);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_LiErbMCR);
};
} else {
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_LiEfrontMCR);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_LiEbackMCR);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_LiElfMCR);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_LiElsMCR);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_LiElbMCR);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_LiErfMCR);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_LiErsMCR);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_LiErbMCR);
};
};
};
};
if (_cloth == 3){
if (_move){
if ((((_bored < 40)) || ((_happy < 30)))){
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_SporTfrontMCM);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_SporTbackMC);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_SporTlfMCM);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_SporTlsMCM);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_SporTlbMC);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_SporTrfMCM);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_SporTrsMCM);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_SporTrbMC);
};
} else {
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_SporTfrontMC);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_SporTbackMC);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_SporTlfMC);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_SporTlsMC);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_SporTlbMC);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_SporTrfMC);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_SporTrsMC);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_SporTrbMC);
};
};
};
if (_run){
if ((((_bored < 40)) || ((_happy < 30)))){
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_SporTfrontMCMR);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_SporTbackMCR);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_SporTlfMCMR);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_SporTlsMCMR);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_SporTlbMCR);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_SporTrfMCMR);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_SporTrsMCMR);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_SporTrbMCR);
};
} else {
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_SporTfrontMCR);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_SporTbackMCR);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_SporTlfMCR);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_SporTlsMCR);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_SporTlbMCR);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_SporTrfMCR);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_SporTrsMCR);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_SporTrbMCR);
};
};
};
};
if (_cloth == 4){
if (_move){
if ((((_bored < 40)) || ((_happy < 30)))){
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_SocKfrontMCM);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_SocKbackMC);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_SocKlfMCM);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_SocKlsMCM);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_SocKlbMC);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_SocKrfMCM);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_SocKrsMCM);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_SocKrbMC);
};
} else {
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_SocKfrontMC);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_SocKbackMC);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_SocKlfMC);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_SocKlsMC);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_SocKlbMC);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_SocKrfMC);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_SocKrsMC);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_SocKrbMC);
};
};
};
if (_run){
if ((((_bored < 40)) || ((_happy < 30)))){
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_SocKfrontMCMR);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_SocKbackMCR);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_SocKlfMCMR);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_SocKlsMCMR);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_SocKlbMCR);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_SocKrfMCMR);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_SocKrsMCMR);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_SocKrbMCR);
};
} else {
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_SocKfrontMCR);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_SocKbackMCR);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_SocKlfMCR);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_SocKlsMCR);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_SocKlbMCR);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_SocKrfMCR);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_SocKrsMCR);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_SocKrbMCR);
};
};
};
};
if (_cloth == 5){
if (_move){
if ((((_bored < 40)) || ((_happy < 30)))){
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_CartooNfrontMCM);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_CartooNbackMC);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_CartooNlfMCM);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_CartooNlsMCM);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_CartooNlbMC);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_CartooNrfMCM);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_CartooNrsMCM);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_CartooNrbMC);
};
} else {
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_CartooNfrontMC);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_CartooNbackMC);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_CartooNlfMC);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_CartooNlsMC);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_CartooNlbMC);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_CartooNrfMC);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_CartooNrsMC);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_CartooNrbMC);
};
};
};
if (_run){
if ((((_bored < 40)) || ((_happy < 30)))){
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_CartooNfrontMCMR);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_CartooNbackMCR);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_CartooNlfMCMR);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_CartooNlsMCMR);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_CartooNlbMCR);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_CartooNrfMCMR);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_CartooNrsMCMR);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_CartooNrbMCR);
};
} else {
if (_front){
_spr.removeChildAt(0);
_spr.addChild(_CartooNfrontMCR);
};
if (_back){
_spr.removeChildAt(0);
_spr.addChild(_CartooNbackMCR);
};
if (_lf){
_spr.removeChildAt(0);
_spr.addChild(_CartooNlfMCR);
};
if (_ls){
_spr.removeChildAt(0);
_spr.addChild(_CartooNlsMCR);
};
if (_lb){
_spr.removeChildAt(0);
_spr.addChild(_CartooNlbMCR);
};
if (_rf){
_spr.removeChildAt(0);
_spr.addChild(_CartooNrfMCR);
};
if (_rs){
_spr.removeChildAt(0);
_spr.addChild(_CartooNrsMCR);
};
if (_rb){
_spr.removeChildAt(0);
_spr.addChild(_CartooNrbMCR);
};
};
};
};
}
private function isStop():void{
if (_mTothirsty){
if (!_NotCMoive){
if (_thirsty > 80){
_thirstyNot = true;
} else {
_thirstyDo = true;
};
_role = true;
};
_mTothirsty = false;
_mouseHitBtn = false;
};
if (_mTohungry){
if (!_NotCMoive){
if (_hungry > 70){
_hungryNot = true;
} else {
_hungryDo = true;
};
_role = true;
};
_mTohungry = false;
_mouseHitBtn = false;
};
if (_mTobored){
if (_mTosleep){
if (!_NotCMoive){
if (_bored > 60){
_sleepNot = true;
} else {
_sleepDo = true;
};
_role = true;
};
_mTosleep = false;
_mouseHitBtn = false;
};
if (_mToplay){
if (!_NotCMoive){
if (_bored < 40){
_playNot = true;
} else {
_playDo = true;
};
_role = true;
};
_mToplay = false;
_mouseHitBtn = false;
};
if (_mTolearn){
if (!_NotCMoive){
if (_bored < 90){
_learnNot = true;
} else {
_learnDo = true;
};
_role = true;
};
_mTolearn = false;
_mouseHitBtn = false;
};
_mTobored = false;
};
if (_mTotoilet){
if (!_NotCMoive){
if (_toilet > 65){
_toiletNot = true;
} else {
_toiletDo = true;
};
_role = true;
};
_mTotoilet = false;
_mouseHitBtn = false;
};
if (_mTodirty){
if (!_NotCMoive){
if (_dirty > 60){
_dirtyNot = true;
} else {
_dirtyDo = true;
};
_role = true;
};
_mTodirty = false;
_mouseHitBtn = false;
};
if (_mTodrug){
if (!_NotCMoive){
if (_healthy > 40){
_drugNot = true;
} else {
_drugDo = true;
};
_role = true;
};
_mTodrug = false;
_mouseHitBtn = false;
};
}
private function zuobiaoChange():void{
var _local1:Number;
var _local2:Number;
tempX = ((1000 * (Math.random() - 0.5)) + tempX);
if (tempX < 55){
tempX = 55;
};
if (tempX > 645){
tempX = 645;
};
tempY = ((1000 * (Math.random() - 0.5)) + tempY);
if (tempX <= 336){
_local1 = (312.8 - (0.446 * tempX));
if (tempY < _local1){
tempY = (_local1 + 5);
};
};
if (tempX > 336){
_local2 = ((0.468 * tempX) + 5.75);
if (tempY < _local2){
tempY = (_local2 + 5);
};
};
}
}
}//package
Section 126
//enSound (enSound)
package {
import flash.media.*;
public dynamic class enSound extends Sound {
}
}//package
Section 127
//explainMC (explainMC)
package {
import flash.display.*;
public dynamic class explainMC extends MovieClip {
public var closeBtn:SimpleButton;
public function explainMC(){
addFrameScript(0, frame1, 4, frame5, 6, frame7);
}
function frame7(){
}
function frame1(){
closeBtn.visible = false;
}
function frame5(){
closeBtn.visible = true;
stop();
}
}
}//package
Section 128
//floor1MC (floor1MC)
package {
import flash.display.*;
public dynamic class floor1MC extends MovieClip {
}
}//package
Section 129
//floor2MC (floor2MC)
package {
import flash.display.*;
public dynamic class floor2MC extends MovieClip {
}
}//package
Section 130
//floor3MC (floor3MC)
package {
import flash.display.*;
public dynamic class floor3MC extends MovieClip {
}
}//package
Section 131
//floor4MC (floor4MC)
package {
import flash.display.*;
public dynamic class floor4MC extends MovieClip {
}
}//package
Section 132
//game1Sound (game1Sound)
package {
import flash.media.*;
public dynamic class game1Sound extends Sound {
}
}//package
Section 133
//gameSound (gameSound)
package {
import flash.media.*;
public dynamic class gameSound extends Sound {
}
}//package
Section 134
//GetMoney (GetMoney)
package {
import flash.events.*;
import flash.display.*;
public class GetMoney extends Sprite {
private var _spr6:Sprite;
public var _timeL:int;// = 30
private var _count1:int;// = 80
private var _count2:int;// = 90
private var _count3:int;// = 95
private var _count4:int;// = 100
private var _count5:int;// = 110
private var _count6:int;// = 130
private var _gold6disMC:gold3disMC;
private var _countA:int;// = 1
private var _gsp:int;// = 7
private var _gold3disMC:gold1disMC;
private var _goldArray:Array;
private var _g4Array:Array;
private var _mGameGroundMC:mGameGroundMC;
private var _g1Array:Array;
public var _timeCount:int;// = 749
private var _gold1:gold1MC;
private var _gold2:gold1MC;
private var _gold3:gold1MC;
private var _gold4:gold2MC;
private var _gold5:gold2MC;
private var _gold6:gold3MC;
private var _lanziMC:lanziMC;
private var _left:Boolean;// = false
private var _gold4disMC:gold2disMC;
private var _sp:int;// = 6
private var _gold1disMC:gold1disMC;
private var _g5Array:Array;
private var _right:Boolean;// = false
private var _g2Array:Array;
private var _moneyShu:int;// = 1
private var _g1:Boolean;// = false
private var _g4:Boolean;// = false
private var _g5:Boolean;// = false
private var _g6:Boolean;// = false
private var _g3:Boolean;// = false
private var _g2:Boolean;// = false
private var _gold5disMC:gold2disMC;
private var _time:Number;// = 60
private var _gold2disMC:gold1disMC;
private var _g6Array:Array;
private var _tempMoney:int;// = 0
private var _g3Array:Array;
public var _restMoney:int;// = 0
private var _mChildMC:mChildMC;
private var _spr1:Sprite;
private var _spr2:Sprite;
private var _spr3:Sprite;
private var _spr4:Sprite;
private var _spr5:Sprite;
public function GetMoney(){
_tempMoney = 0;
_restMoney = 0;
_moneyShu = 1;
_countA = 1;
_count1 = 80;
_count2 = 90;
_count3 = 95;
_count4 = 100;
_count5 = 110;
_count6 = 130;
_time = 60;
_timeCount = 749;
_timeL = 30;
_left = false;
_right = false;
_sp = 6;
_gsp = 7;
_g1 = false;
_g2 = false;
_g3 = false;
_g4 = false;
_g5 = false;
_g6 = false;
super();
_mGameGroundMC = new mGameGroundMC();
addChild(_mGameGroundMC);
_mChildMC = new mChildMC();
_lanziMC = new lanziMC();
_mChildMC.addChild(_lanziMC);
_lanziMC.x = -36.4;
_lanziMC.y = 10.1;
_mChildMC.x = 350;
_mChildMC.y = 455;
_mChildMC.gotoAndStop(1);
addChild(_mChildMC);
_gold1 = new gold1MC();
_gold2 = new gold1MC();
_gold3 = new gold1MC();
_gold4 = new gold2MC();
_gold5 = new gold2MC();
_gold6 = new gold3MC();
_gold1disMC = new gold1disMC();
_gold2disMC = new gold1disMC();
_gold3disMC = new gold1disMC();
_gold4disMC = new gold2disMC();
_gold5disMC = new gold2disMC();
_gold6disMC = new gold3disMC();
_spr1 = new Sprite();
_spr2 = new Sprite();
_spr3 = new Sprite();
_spr4 = new Sprite();
_spr5 = new Sprite();
_spr6 = new Sprite();
_spr1.addChild(_gold1);
addChild(_spr1);
_spr1.x = ((Math.random() * 645) + 35);
_spr2.addChild(_gold2);
_spr3.addChild(_gold3);
_spr4.addChild(_gold4);
_spr5.addChild(_gold5);
_spr6.addChild(_gold6);
_goldArray = [_spr1, _spr2, _spr3, _spr4, _spr5, _spr6];
addEventListener(KeyboardEvent.KEY_DOWN, onKeydown);
addEventListener(KeyboardEvent.KEY_UP, onKeyup);
}
public function getMoneyOnTimer():void{
var _local1:int;
_mGameGroundMC.moneyText.text = String(_tempMoney);
if (_left){
_mChildMC.x = (_mChildMC.x - _sp);
};
if (_right){
_mChildMC.x = (_mChildMC.x + _sp);
};
if (_mChildMC.x < 35){
_mChildMC.x = 35;
};
if (_mChildMC.x >= 665){
_mChildMC.x = 665;
};
_countA++;
if (_countA < 500){
_gsp = 7;
} else {
if ((((_countA >= 500)) && ((_countA < 1250)))){
_gsp = 9;
} else {
_gsp = 11;
};
};
if (_time >= 10){
_time = Math.floor((_timeL - (_countA / 25)));
_mGameGroundMC.timeTxt.text = ("00:" + String(_time));
} else {
_time = Math.floor((_timeL - (_countA / 25)));
_mGameGroundMC.timeTxt.text = ("00:0" + String(_time));
};
if (_countA > _timeCount){
trace("stop");
_restMoney = _tempMoney;
if (_restMoney == 0){
_restMoney = 1;
};
removeEventListener(KeyboardEvent.KEY_DOWN, onKeydown);
removeEventListener(KeyboardEvent.KEY_UP, onKeyup);
};
if ((((_spr1.y > 490)) && ((_spr1.y < 500)))){
_spr1.removeChildAt(0);
_spr1.addChild(_gold1disMC);
_gold1disMC.gotoAndPlay(1);
};
if ((_countA % _count1) == 0){
addChild(_spr1);
_spr1.x = ((Math.random() * 645) + 35);
_spr1.y = 0;
_spr1.removeChildAt(0);
_spr1.addChild(_gold1);
};
_spr1.y = (_spr1.y + _gsp);
if ((((_spr2.y > 490)) && ((_spr2.y < 500)))){
_spr2.removeChildAt(0);
_spr2.addChild(_gold2disMC);
_gold2disMC.gotoAndPlay(1);
};
if ((_countA % _count2) == 0){
addChild(_spr2);
_spr2.x = ((Math.random() * 645) + 35);
_spr2.y = 0;
_spr2.removeChildAt(0);
_spr2.addChild(_gold2);
};
_spr2.y = (_spr2.y + _gsp);
if ((((_spr3.y > 490)) && ((_spr3.y < 500)))){
_spr3.removeChildAt(0);
_spr3.addChild(_gold3disMC);
_gold3disMC.gotoAndPlay(1);
};
if ((_countA % _count3) == 0){
addChild(_spr3);
_spr3.x = ((Math.random() * 645) + 35);
_spr3.y = 0;
_spr3.removeChildAt(0);
_spr3.addChild(_gold3);
};
_spr3.y = (_spr3.y + _gsp);
if ((((_spr4.y > 490)) && ((_spr4.y < 500)))){
_spr4.removeChildAt(0);
_spr4.addChild(_gold4disMC);
_gold4disMC.gotoAndPlay(1);
};
if ((_countA % _count4) == 0){
addChild(_spr4);
_spr4.x = ((Math.random() * 645) + 35);
_spr4.y = 0;
_spr4.removeChildAt(0);
_spr4.addChild(_gold4);
};
_spr4.y = (_spr4.y + _gsp);
if ((((_spr5.y > 490)) && ((_spr5.y < 500)))){
_spr5.removeChildAt(0);
_spr5.addChild(_gold5disMC);
_gold5disMC.gotoAndPlay(1);
};
if ((_countA % _count5) == 0){
addChild(_spr5);
_spr5.x = ((Math.random() * 645) + 35);
_spr5.y = 0;
_spr5.removeChildAt(0);
_spr5.addChild(_gold5);
};
_spr5.y = (_spr5.y + _gsp);
if ((((_spr6.y > 490)) && ((_spr6.y < 500)))){
_spr6.removeChildAt(0);
_spr6.addChild(_gold6disMC);
_gold6disMC.gotoAndPlay(1);
};
if ((_countA % _count6) == 0){
addChild(_spr6);
_spr6.x = ((Math.random() * 645) + 35);
_spr6.y = 0;
_spr6.removeChildAt(0);
_spr6.addChild(_gold6);
};
_spr6.y = (_spr6.y + _gsp);
_local1 = 0;
while (_local1 < 6) {
if (_goldArray[_local1].hitTestObject(_lanziMC)){
_goldArray[_local1].y = 700;
removeChild(_goldArray[_local1]);
if (_local1 < 3){
_tempMoney = (_tempMoney + 5);
} else {
if ((((_local1 >= 3)) && ((_local1 < 5)))){
_tempMoney = (_tempMoney + 10);
} else {
_tempMoney = (_tempMoney + 20);
};
};
};
_local1++;
};
}
private function onKeyup(_arg1:KeyboardEvent):void{
_mChildMC.stop();
_left = false;
_right = false;
}
private function onKeydown(_arg1:KeyboardEvent):void{
_mChildMC.play();
if (_arg1.keyCode == 37){
_left = true;
};
if (_arg1.keyCode == 39){
_right = true;
};
}
}
}//package
Section 135
//gold1disMC (gold1disMC)
package {
import flash.display.*;
public dynamic class gold1disMC extends MovieClip {
public function gold1disMC(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package
Section 136
//gold1MC (gold1MC)
package {
import flash.display.*;
public dynamic class gold1MC extends MovieClip {
}
}//package
Section 137
//gold2disMC (gold2disMC)
package {
import flash.display.*;
public dynamic class gold2disMC extends MovieClip {
public function gold2disMC(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package
Section 138
//gold2MC (gold2MC)
package {
import flash.display.*;
public dynamic class gold2MC extends MovieClip {
}
}//package
Section 139
//gold3disMC (gold3disMC)
package {
import flash.display.*;
public dynamic class gold3disMC extends MovieClip {
public function gold3disMC(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package
Section 140
//gold3MC (gold3MC)
package {
import flash.display.*;
public dynamic class gold3MC extends MovieClip {
}
}//package
Section 141
//hammerMC (hammerMC)
package {
import flash.display.*;
public dynamic class hammerMC extends MovieClip {
}
}//package
Section 142
//helphMC (helphMC)
package {
import flash.display.*;
public dynamic class helphMC extends MovieClip {
public var helpcloseBtn:SimpleButton;
}
}//package
Section 143
//helpsMC (helpsMC)
package {
import flash.display.*;
public dynamic class helpsMC extends MovieClip {
public var helpcloseBtn:SimpleButton;
}
}//package
Section 144
//hitMiceSound (hitMiceSound)
package {
import flash.media.*;
public dynamic class hitMiceSound extends Sound {
}
}//package
Section 145
//HitMouse (HitMouse)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.geom.*;
public class HitMouse extends Sprite {
private var _mice7:miceMC;
private var _mice9:miceMC;
private var _mice2:miceMC;
private var _mice8:miceMC;
private var _tempCount:int;// = 0
public var _timeL:int;// = 30
private var _mice1:miceMC;
private var _countA:int;// = 0
private var _hammerMC:hammerMC;
private var _mouseShu:int;// = 1
private var _hitMiceSound:hitMiceSound;
private var transform1:SoundTransform;
private var _mouseArray:Array;
private var _miceGroundMC:miceGroundMC;
private var _bl3:Boolean;// = false
private var _bl4:Boolean;// = false
private var _bl7:Boolean;// = false
private var _bl1:Boolean;// = false
private var _bl2:Boolean;// = false
private var _miceHit:int;// = 0
private var _bl9:Boolean;// = false
private var _bl5:Boolean;// = false
private var _bl6:Boolean;// = false
private var _bl8:Boolean;// = false
public var _mvolume:Number;// = 1
private var channel1:SoundChannel;
private var _time:Number;// = 60
private var _mice11:miceMC;
public var _timeCount:int;// = 749
private var _bl10:Boolean;// = false
private var _bl11:Boolean;// = false
private var _tempMoney:int;// = 0
public var _restMoney:int;// = 0
private var _hit:Boolean;// = false
private var _mice10:miceMC;
private var _mice4:miceMC;
private var _mice6:miceMC;
private var _mice3:miceMC;
private var _mice5:miceMC;
public function HitMouse(){
_tempMoney = 0;
_miceHit = 0;
_restMoney = 0;
_mouseShu = 1;
_time = 60;
_mouseArray = [];
_countA = 0;
_tempCount = 0;
_timeCount = 749;
_timeL = 30;
_hit = false;
_bl1 = false;
_bl2 = false;
_bl3 = false;
_bl4 = false;
_bl5 = false;
_bl6 = false;
_bl7 = false;
_bl8 = false;
_bl9 = false;
_bl10 = false;
_bl11 = false;
_mvolume = 1;
super();
_hammerMC = new hammerMC();
Mouse.hide();
_miceGroundMC = new miceGroundMC();
addChild(_miceGroundMC);
_mice1 = new miceMC();
_mice1.x = 64;
_mice1.y = 113;
_mice2 = new miceMC();
_mice2.x = 223;
_mice2.y = 63;
_mice3 = new miceMC();
_mice3.x = 427;
_mice3.y = 91;
_mice4 = new miceMC();
_mice4.x = 180;
_mice4.y = 217;
_mice5 = new miceMC();
_mice5.x = 329;
_mice5.y = 153;
_mice6 = new miceMC();
_mice6.x = 0x0200;
_mice6.y = 172;
_mice7 = new miceMC();
_mice7.x = 296;
_mice7.y = 271;
_mice8 = new miceMC();
_mice8.x = 466;
_mice8.y = 237;
_mice9 = new miceMC();
_mice9.x = 153;
_mice9.y = 341;
_mice10 = new miceMC();
_mice10.x = 435;
_mice10.y = 348;
_mice11 = new miceMC();
_mice11.x = 294;
_mice11.y = 395;
addEventListener(MouseEvent.MOUSE_MOVE, onMouseMoves);
addEventListener(MouseEvent.CLICK, onMouseClick);
}
private function onMouseClick(_arg1:MouseEvent):void{
_hammerMC.play();
_hit = true;
}
private function onMouseMoves(_arg1:MouseEvent):void{
addChild(_hammerMC);
_hammerMC.mouseEnabled = false;
_hammerMC.x = (_arg1.stageX - 30);
_hammerMC.y = (_arg1.stageY - 20);
}
public function hitOnTimer():void{
var _local1:int;
var _local2:int;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:int;
var _local10:BitmapData;
var _local11:int;
var _local12:BitmapData;
_countA++;
if (_countA < 500){
_mouseShu = 1;
} else {
if ((((_countA >= 500)) && ((_countA < 1250)))){
_mouseShu = 2;
} else {
_mouseShu = 3;
};
};
if (_time >= 10){
_time = Math.floor((_timeL - (_countA / 25)));
_miceGroundMC.timeTxt.text = ("00:" + String(_time));
} else {
_time = Math.floor((_timeL - (_countA / 25)));
_miceGroundMC.timeTxt.text = ("00:0" + String(_time));
};
if (_countA > _timeCount){
trace("stop");
_local1 = 0;
while (_local1 < _mouseArray.length) {
removeChild(_mouseArray[_local1]);
_local1++;
};
_mouseArray = [];
_restMoney = _tempMoney;
if (_restMoney == 0){
_restMoney = 1;
};
removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMoves);
removeEventListener(MouseEvent.CLICK, onMouseClick);
};
_miceGroundMC.miceText.text = String(_miceHit);
_tempMoney = (_miceHit * 10);
_miceGroundMC.miceMoneyText.text = String(_tempMoney);
if ((_countA - _tempCount) >= 17){
_local2 = 0;
while (_local2 < _mouseArray.length) {
removeChild(_mouseArray[_local2]);
_local2++;
};
_mouseArray = [];
_bl1 = false;
_bl2 = false;
_bl3 = false;
_bl4 = false;
_bl5 = false;
_bl6 = false;
_bl7 = false;
_bl8 = false;
_bl9 = false;
_bl10 = false;
_bl11 = false;
_tempCount = _countA;
if (_mouseShu == 1){
_local3 = Math.random();
if (_local3 < 0.09){
_bl1 = true;
} else {
if ((((_local3 >= 0.09)) && ((_local3 < 0.18)))){
_bl2 = true;
} else {
if ((((_local3 >= 0.18)) && ((_local3 < 0.27)))){
_bl3 = true;
} else {
if ((((_local3 >= 0.27)) && ((_local3 < 0.36)))){
_bl4 = true;
} else {
if ((((_local3 >= 0.36)) && ((_local3 < 0.45)))){
_bl5 = true;
} else {
if ((((_local3 >= 0.45)) && ((_local3 < 0.54)))){
_bl6 = true;
} else {
if ((((_local3 >= 0.54)) && ((_local3 < 0.63)))){
_bl7 = true;
} else {
if ((((_local3 >= 0.63)) && ((_local3 < 0.72)))){
_bl8 = true;
} else {
if ((((_local3 >= 0.72)) && ((_local3 < 0.81)))){
_bl9 = true;
} else {
if ((((_local3 >= 0.81)) && ((_local3 < 0.9)))){
_bl10 = true;
} else {
if ((((_local3 >= 0.9)) && ((_local3 < 1)))){
_bl11 = true;
};
};
};
};
};
};
};
};
};
};
};
};
if (_mouseShu == 2){
_local4 = Math.random();
_local5 = Math.random();
if (_local4 < 0.09){
_bl1 = true;
} else {
if ((((_local4 >= 0.09)) && ((_local4 < 0.18)))){
_bl2 = true;
} else {
if ((((_local4 >= 0.18)) && ((_local4 < 0.27)))){
_bl3 = true;
} else {
if ((((_local4 >= 0.27)) && ((_local4 < 0.36)))){
_bl4 = true;
} else {
if ((((_local4 >= 0.36)) && ((_local4 < 0.45)))){
_bl5 = true;
} else {
if ((((_local4 >= 0.45)) && ((_local4 < 0.54)))){
_bl6 = true;
} else {
if ((((_local4 >= 0.54)) && ((_local4 < 0.63)))){
_bl7 = true;
} else {
if ((((_local4 >= 0.63)) && ((_local4 < 0.72)))){
_bl8 = true;
} else {
if ((((_local4 >= 0.72)) && ((_local4 < 0.81)))){
_bl9 = true;
} else {
if ((((_local4 >= 0.81)) && ((_local4 < 0.9)))){
_bl10 = true;
} else {
if ((((_local4 >= 0.9)) && ((_local4 < 1)))){
_bl11 = true;
};
};
};
};
};
};
};
};
};
};
};
if (_local5 < 0.09){
_bl1 = true;
} else {
if ((((_local5 >= 0.09)) && ((_local5 < 0.18)))){
_bl2 = true;
} else {
if ((((_local5 >= 0.18)) && ((_local5 < 0.27)))){
_bl3 = true;
} else {
if ((((_local5 >= 0.27)) && ((_local5 < 0.36)))){
_bl4 = true;
} else {
if ((((_local5 >= 0.36)) && ((_local5 < 0.45)))){
_bl5 = true;
} else {
if ((((_local5 >= 0.45)) && ((_local5 < 0.54)))){
_bl6 = true;
} else {
if ((((_local5 >= 0.54)) && ((_local5 < 0.63)))){
_bl7 = true;
} else {
if ((((_local5 >= 0.63)) && ((_local5 < 0.72)))){
_bl8 = true;
} else {
if ((((_local5 >= 0.72)) && ((_local5 < 0.81)))){
_bl9 = true;
} else {
if ((((_local5 >= 0.81)) && ((_local5 < 0.9)))){
_bl10 = true;
} else {
if ((((_local5 >= 0.9)) && ((_local5 < 1)))){
_bl11 = true;
};
};
};
};
};
};
};
};
};
};
};
};
if (_mouseShu == 3){
_local6 = Math.random();
_local7 = Math.random();
_local8 = Math.random();
if (_local6 < 0.09){
_bl1 = true;
} else {
if ((((_local6 >= 0.09)) && ((_local6 < 0.18)))){
_bl2 = true;
} else {
if ((((_local6 >= 0.18)) && ((_local6 < 0.27)))){
_bl3 = true;
} else {
if ((((_local6 >= 0.27)) && ((_local6 < 0.36)))){
_bl4 = true;
} else {
if ((((_local6 >= 0.36)) && ((_local6 < 0.45)))){
_bl5 = true;
} else {
if ((((_local6 >= 0.45)) && ((_local6 < 0.54)))){
_bl6 = true;
} else {
if ((((_local6 >= 0.54)) && ((_local6 < 0.63)))){
_bl7 = true;
} else {
if ((((_local6 >= 0.63)) && ((_local6 < 0.72)))){
_bl8 = true;
} else {
if ((((_local6 >= 0.72)) && ((_local6 < 0.81)))){
_bl9 = true;
} else {
if ((((_local6 >= 0.81)) && ((_local6 < 0.9)))){
_bl10 = true;
} else {
if ((((_local6 >= 0.9)) && ((_local6 < 1)))){
_bl11 = true;
};
};
};
};
};
};
};
};
};
};
};
if (_local7 < 0.09){
_bl1 = true;
} else {
if ((((_local7 >= 0.09)) && ((_local7 < 0.18)))){
_bl2 = true;
} else {
if ((((_local7 >= 0.18)) && ((_local7 < 0.27)))){
_bl3 = true;
} else {
if ((((_local7 >= 0.27)) && ((_local7 < 0.36)))){
_bl4 = true;
} else {
if ((((_local7 >= 0.36)) && ((_local7 < 0.45)))){
_bl5 = true;
} else {
if ((((_local7 >= 0.45)) && ((_local7 < 0.54)))){
_bl6 = true;
} else {
if ((((_local7 >= 0.54)) && ((_local7 < 0.63)))){
_bl7 = true;
} else {
if ((((_local7 >= 0.63)) && ((_local7 < 0.72)))){
_bl8 = true;
} else {
if ((((_local7 >= 0.72)) && ((_local7 < 0.81)))){
_bl9 = true;
} else {
if ((((_local7 >= 0.81)) && ((_local7 < 0.9)))){
_bl10 = true;
} else {
if ((((_local7 >= 0.9)) && ((_local7 < 1)))){
_bl11 = true;
};
};
};
};
};
};
};
};
};
};
};
if (_local8 < 0.09){
_bl1 = true;
} else {
if ((((_local8 >= 0.09)) && ((_local8 < 0.18)))){
_bl2 = true;
} else {
if ((((_local8 >= 0.18)) && ((_local8 < 0.27)))){
_bl3 = true;
} else {
if ((((_local8 >= 0.27)) && ((_local8 < 0.36)))){
_bl4 = true;
} else {
if ((((_local8 >= 0.36)) && ((_local8 < 0.45)))){
_bl5 = true;
} else {
if ((((_local8 >= 0.45)) && ((_local8 < 0.54)))){
_bl6 = true;
} else {
if ((((_local8 >= 0.54)) && ((_local8 < 0.63)))){
_bl7 = true;
} else {
if ((((_local8 >= 0.63)) && ((_local8 < 0.72)))){
_bl8 = true;
} else {
if ((((_local8 >= 0.72)) && ((_local8 < 0.81)))){
_bl9 = true;
} else {
if ((((_local8 >= 0.81)) && ((_local8 < 0.9)))){
_bl10 = true;
} else {
if ((((_local8 >= 0.9)) && ((_local8 < 1)))){
_bl11 = true;
};
};
};
};
};
};
};
};
};
};
};
};
if (_bl1){
_mouseArray.push(_mice1);
_mice1._miceLieMC.gotoAndPlay(1);
addChild(_mice1);
_mice1._behit = false;
};
if (_bl2){
_mouseArray.push(_mice2);
_mice2._miceLieMC.gotoAndPlay(1);
addChild(_mice2);
_mice2._behit = false;
};
if (_bl3){
_mouseArray.push(_mice3);
_mice3._miceLieMC.gotoAndPlay(1);
addChild(_mice3);
_mice3._behit = false;
};
if (_bl4){
_mouseArray.push(_mice4);
_mice4._miceLieMC.gotoAndPlay(1);
addChild(_mice4);
_mice4._behit = false;
};
if (_bl5){
_mouseArray.push(_mice5);
_mice5._miceLieMC.gotoAndPlay(1);
addChild(_mice5);
_mice5._behit = false;
};
if (_bl6){
_mouseArray.push(_mice6);
_mice6._miceLieMC.gotoAndPlay(1);
addChild(_mice6);
_mice6._behit = false;
};
if (_bl7){
_mouseArray.push(_mice7);
_mice7._miceLieMC.gotoAndPlay(1);
addChild(_mice7);
_mice7._behit = false;
};
if (_bl8){
_mouseArray.push(_mice8);
_mice8._miceLieMC.gotoAndPlay(1);
addChild(_mice8);
_mice8._behit = false;
};
if (_bl9){
_mouseArray.push(_mice9);
_mice9._miceLieMC.gotoAndPlay(1);
addChild(_mice9);
_mice9._behit = false;
};
if (_bl10){
_mouseArray.push(_mice10);
_mice10._miceLieMC.gotoAndPlay(1);
addChild(_mice10);
_mice10._behit = false;
};
if (_bl11){
_mouseArray.push(_mice11);
_mice11._miceLieMC.gotoAndPlay(1);
addChild(_mice11);
_mice11._behit = false;
};
};
if (_mouseArray.length != 0){
_local9 = 0;
while (_local9 < _mouseArray.length) {
_mouseArray[_local9].miceOntimer();
_local9++;
};
};
if (_hit){
_local10 = new BitmapData(70, _hammerMC.height, true, 0);
_local10.draw(_hammerMC);
};
if (_hammerMC.currentFrame == 3){
_hammerMC.gotoAndStop(1);
_hit = false;
};
if (_hit){
_local11 = 0;
while (_local11 < _mouseArray.length) {
_local12 = new BitmapData(_mouseArray[_local11].width, _mouseArray[_local11].height, true, 0);
_local12.draw(_mouseArray[_local11]);
if (((_local10.hitTest(new Point(_hammerMC.x, _hammerMC.y), 85, _local12, new Point(_mouseArray[_local11].x, _mouseArray[_local11].y))) && (!(_mouseArray[_local11]._behit)))){
_mouseArray[_local11]._behit = true;
_miceHit = (_miceHit + 1);
_hitMiceSound = new hitMiceSound();
channel1 = _hitMiceSound.play(0, 1);
transform1 = channel1.soundTransform;
transform1.volume = _mvolume;
channel1.soundTransform = transform1;
};
_local11++;
};
};
}
}
}//package
Section 146
//hitSound (hitSound)
package {
import flash.media.*;
public dynamic class hitSound extends Sound {
}
}//package
Section 147
//jiesuanMC (jiesuanMC)
package {
import flash.display.*;
public dynamic class jiesuanMC extends MovieClip {
public var jsMC:MovieClip;
public function jiesuanMC(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package
Section 148
//lanziMC (lanziMC)
package {
import flash.display.*;
public dynamic class lanziMC extends MovieClip {
}
}//package
Section 149
//LiEbackMC (LiEbackMC)
package {
import flash.display.*;
public dynamic class LiEbackMC extends MovieClip {
}
}//package
Section 150
//LiEbackMCR (LiEbackMCR)
package {
import flash.display.*;
public dynamic class LiEbackMCR extends MovieClip {
}
}//package
Section 151
//LiEdeadMC (LiEdeadMC)
package {
import flash.display.*;
public dynamic class LiEdeadMC extends MovieClip {
}
}//package
Section 152
//LiEdirtyWantMC (LiEdirtyWantMC)
package {
import flash.display.*;
public dynamic class LiEdirtyWantMC extends MovieClip {
}
}//package
Section 153
//LiEdrinkMC (LiEdrinkMC)
package {
import flash.display.*;
public dynamic class LiEdrinkMC extends MovieClip {
public function LiEdrinkMC(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package
Section 154
//LiEdrinkWantMC (LiEdrinkWantMC)
package {
import flash.display.*;
public dynamic class LiEdrinkWantMC extends MovieClip {
}
}//package
Section 155
//LiEdrugMC (LiEdrugMC)
package {
import flash.display.*;
public dynamic class LiEdrugMC extends MovieClip {
}
}//package
Section 156
//LiEdrugWantMC (LiEdrugWantMC)
package {
import flash.display.*;
public dynamic class LiEdrugWantMC extends MovieClip {
}
}//package
Section 157
//LiEeatMC (LiEeatMC)
package {
import flash.display.*;
public dynamic class LiEeatMC extends MovieClip {
}
}//package
Section 158
//LiEeatWantMC (LiEeatWantMC)
package {
import flash.display.*;
public dynamic class LiEeatWantMC extends MovieClip {
}
}//package
Section 159
//LiEfMC (LiEfMC)
package {
import flash.display.*;
public dynamic class LiEfMC extends MovieClip {
}
}//package
Section 160
//LiEfrontMC (LiEfrontMC)
package {
import flash.display.*;
public dynamic class LiEfrontMC extends MovieClip {
}
}//package
Section 161
//LiEfrontMCM (LiEfrontMCM)
package {
import flash.display.*;
public dynamic class LiEfrontMCM extends MovieClip {
}
}//package
Section 162
//LiEfrontMCMR (LiEfrontMCMR)
package {
import flash.display.*;
public dynamic class LiEfrontMCMR extends MovieClip {
}
}//package
Section 163
//LiEfrontMCR (LiEfrontMCR)
package {
import flash.display.*;
public dynamic class LiEfrontMCR extends MovieClip {
}
}//package
Section 164
//LiElbMC (LiElbMC)
package {
import flash.display.*;
public dynamic class LiElbMC extends MovieClip {
}
}//package
Section 165
//LiElbMCR (LiElbMCR)
package {
import flash.display.*;
public dynamic class LiElbMCR extends MovieClip {
}
}//package
Section 166
//LiElearnMC (LiElearnMC)
package {
import flash.display.*;
public dynamic class LiElearnMC extends MovieClip {
}
}//package
Section 167
//LiElearnWantMC (LiElearnWantMC)
package {
import flash.display.*;
public dynamic class LiElearnWantMC extends MovieClip {
}
}//package
Section 168
//LiElfMC (LiElfMC)
package {
import flash.display.*;
public dynamic class LiElfMC extends MovieClip {
}
}//package
Section 169
//LiElfMCM (LiElfMCM)
package {
import flash.display.*;
public dynamic class LiElfMCM extends MovieClip {
}
}//package
Section 170
//LiElfMCMR (LiElfMCMR)
package {
import flash.display.*;
public dynamic class LiElfMCMR extends MovieClip {
}
}//package
Section 171
//LiElfMCR (LiElfMCR)
package {
import flash.display.*;
public dynamic class LiElfMCR extends MovieClip {
}
}//package
Section 172
//LiElsMC (LiElsMC)
package {
import flash.display.*;
public dynamic class LiElsMC extends MovieClip {
}
}//package
Section 173
//LiElsMCM (LiElsMCM)
package {
import flash.display.*;
public dynamic class LiElsMCM extends MovieClip {
}
}//package
Section 174
//LiElsMCMR (LiElsMCMR)
package {
import flash.display.*;
public dynamic class LiElsMCMR extends MovieClip {
}
}//package
Section 175
//LiElsMCR (LiElsMCR)
package {
import flash.display.*;
public dynamic class LiElsMCR extends MovieClip {
}
}//package
Section 176
//LiEplayMC (LiEplayMC)
package {
import flash.display.*;
public dynamic class LiEplayMC extends MovieClip {
}
}//package
Section 177
//LiEplayWantMC (LiEplayWantMC)
package {
import flash.display.*;
public dynamic class LiEplayWantMC extends MovieClip {
}
}//package
Section 178
//LiErbMC (LiErbMC)
package {
import flash.display.*;
public dynamic class LiErbMC extends MovieClip {
}
}//package
Section 179
//LiErbMCR (LiErbMCR)
package {
import flash.display.*;
public dynamic class LiErbMCR extends MovieClip {
}
}//package
Section 180
//LiErefuseMC (LiErefuseMC)
package {
import flash.display.*;
public dynamic class LiErefuseMC extends MovieClip {
}
}//package
Section 181
//LiErfMC (LiErfMC)
package {
import flash.display.*;
public dynamic class LiErfMC extends MovieClip {
}
}//package
Section 182
//LiErfMCM (LiErfMCM)
package {
import flash.display.*;
public dynamic class LiErfMCM extends MovieClip {
}
}//package
Section 183
//LiErfMCMR (LiErfMCMR)
package {
import flash.display.*;
public dynamic class LiErfMCMR extends MovieClip {
}
}//package
Section 184
//LiErfMCR (LiErfMCR)
package {
import flash.display.*;
public dynamic class LiErfMCR extends MovieClip {
}
}//package
Section 185
//LiErsMC (LiErsMC)
package {
import flash.display.*;
public dynamic class LiErsMC extends MovieClip {
}
}//package
Section 186
//LiErsMCM (LiErsMCM)
package {
import flash.display.*;
public dynamic class LiErsMCM extends MovieClip {
}
}//package
Section 187
//LiErsMCMR (LiErsMCMR)
package {
import flash.display.*;
public dynamic class LiErsMCMR extends MovieClip {
}
}//package
Section 188
//LiErsMCR (LiErsMCR)
package {
import flash.display.*;
public dynamic class LiErsMCR extends MovieClip {
}
}//package
Section 189
//LiEsleepWantMC (LiEsleepWantMC)
package {
import flash.display.*;
public dynamic class LiEsleepWantMC extends MovieClip {
}
}//package
Section 190
//LiEtoiletMC (LiEtoiletMC)
package {
import flash.display.*;
public dynamic class LiEtoiletMC extends MovieClip {
}
}//package
Section 191
//LiEtoiletWantMC (LiEtoiletWantMC)
package {
import flash.display.*;
public dynamic class LiEtoiletWantMC extends MovieClip {
}
}//package
Section 192
//loseMC (loseMC)
package {
import flash.display.*;
public dynamic class loseMC extends MovieClip {
public var mainBtn:MovieClip;
public var moreBtn:MovieClip;
public var restartBtn:MovieClip;
public function loseMC(){
addFrameScript(0, frame1, 13, frame14, 26, frame27, 38, frame39, 56, frame57);
}
function frame14(){
restartBtn.visible = true;
}
function frame1(){
moreBtn.visible = false;
mainBtn.visible = false;
restartBtn.visible = false;
}
function frame27(){
mainBtn.visible = true;
}
function frame39(){
moreBtn.visible = true;
}
function frame57(){
stop();
}
}
}//package
Section 193
//lostwinMC (lostwinMC)
package {
import flash.display.*;
public dynamic class lostwinMC extends MovieClip {
public var mainBtn:MovieClip;
public var moreBtn:MovieClip;
public function lostwinMC(){
addFrameScript(0, frame1, 12, frame13, 27, frame28, 43, frame44);
}
function frame1(){
mainBtn.visible = false;
moreBtn.visible = false;
}
function frame13(){
mainBtn.visible = true;
}
function frame28(){
moreBtn.visible = true;
}
function frame44(){
stop();
}
}
}//package
Section 194
//mChildMC (mChildMC)
package {
import flash.display.*;
public dynamic class mChildMC extends MovieClip {
}
}//package
Section 195
//mGameGroundMC (mGameGroundMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class mGameGroundMC extends MovieClip {
public var moneyText:TextField;
public var timeTxt:TextField;
}
}//package
Section 196
//miceGroundMC (miceGroundMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class miceGroundMC extends MovieClip {
public var timeTxt:TextField;
public var miceText:TextField;
public var miceMoneyText:TextField;
}
}//package
Section 197
//miceHitMC (miceHitMC)
package {
import flash.display.*;
public dynamic class miceHitMC extends MovieClip {
}
}//package
Section 198
//miceLieMC (miceLieMC)
package {
import flash.display.*;
public dynamic class miceLieMC extends MovieClip {
}
}//package
Section 199
//miceMC (miceMC)
package {
import flash.display.*;
public class miceMC extends MovieClip {
public var masks:MovieClip;
public var _miceLieMC:miceLieMC;
public var _behit:Boolean;// = false
private var _miceHitMC:miceHitMC;
public function miceMC(){
_behit = false;
super();
_miceLieMC = new miceLieMC();
addChild(_miceLieMC);
_miceHitMC = new miceHitMC();
}
public function miceOntimer():void{
if (!_behit){
removeChildAt(1);
addChild(_miceLieMC);
};
if (_behit){
addChild(_miceHitMC);
_miceHitMC.gotoAndPlay(_miceLieMC.currentFrame);
if (_miceHitMC.currentFrame == 16){
removeChild(_miceHitMC);
_behit = false;
};
};
}
}
}//package
Section 200
//minigameSound (minigameSound)
package {
import flash.media.*;
public dynamic class minigameSound extends Sound {
}
}//package
Section 201
//miniItemMC (miniItemMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class miniItemMC extends MovieClip {
public var paint4Text:TextField;
public var sockText:TextField;
public var cartoonBtn:SimpleButton;
public var sportBtn:SimpleButton;
public var paint3Text:TextField;
public var paint2Btn:SimpleButton;
public var paint3Btn:SimpleButton;
public var paint1Text:TextField;
public var bookBtn:SimpleButton;
public var cartoonText:TextField;
public var bookText:TextField;
public var sportText:TextField;
public var lieBtn:SimpleButton;
public var paint1Btn:SimpleButton;
public var text1:TextField;
public var lieText:TextField;
public var paint2Text:TextField;
public var paint4Btn:SimpleButton;
public var drugText:TextField;
public var sockBtn:SimpleButton;
}
}//package
Section 202
//mouseMC (mouseMC)
package {
import flash.display.*;
public dynamic class mouseMC extends MovieClip {
public function mouseMC(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package
Section 203
//myItemMC (myItemMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class myItemMC extends MovieClip {
public var backBtn:SimpleButton;
public var moneyText:TextField;
public var cartoonBtn:SimpleButton;
public var sockBtn:SimpleButton;
public var sockText:TextField;
public var sportBtn:SimpleButton;
public var moneyBtn:MovieClip;
public var shopBtn:MovieClip;
public var barbMC:MovieClip;
public var cartoonText:TextField;
public var sportText:TextField;
public var lieBtn:SimpleButton;
public var lieText:TextField;
public var clothBtn:MovieClip;
public var othersBtn:MovieClip;
}
}//package
Section 204
//myItemOtherMC (myItemOtherMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class myItemOtherMC extends MovieClip {
public var backBtn:SimpleButton;
public var moneyText:TextField;
public var paintBtn:SimpleButton;
public var moneyBtn:MovieClip;
public var shopBtn:MovieClip;
public var barbMC:MovieClip;
public var bookBtn:SimpleButton;
public var paintText:TextField;
public var bookText:TextField;
public var drugBtn:SimpleButton;
public var clothBtn:MovieClip;
public var drugText:TextField;
public var othersBtn:MovieClip;
}
}//package
Section 205
//notenoughMC (notenoughMC)
package {
import flash.display.*;
public dynamic class notenoughMC extends MovieClip {
public var closeBtn:SimpleButton;
public function notenoughMC(){
addFrameScript(27, frame28);
}
function frame28(){
this.parent.removeChild(this);
stop();
}
}
}//package
Section 206
//othershopMC (othershopMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class othershopMC extends MovieClip {
public var backBtn:SimpleButton;
public var moneyText:TextField;
public var itemBtn:MovieClip;
public var buyBlank:MovieClip;
public var moneyBtn:MovieClip;
public var buyPaint:MovieClip;
public var buyDrug:MovieClip;
public var text3:TextField;
public var buyBook:MovieClip;
public var text5:TextField;
public var text2:TextField;
public var text4:TextField;
public var buytMC:MovieClip;
public var clothBtn:MovieClip;
public var othersBtn:MovieClip;
public function othershopMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 207
//shopMC (shopMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class shopMC extends MovieClip {
public var backBtn:SimpleButton;
public var buyCartoon:MovieClip;
public var moneyText:TextField;
public var buyLie:MovieClip;
public var itemBtn:MovieClip;
public var buySock:MovieClip;
public var moneyBtn:MovieClip;
public var buySport:MovieClip;
public var text3:TextField;
public var text4:TextField;
public var text5:TextField;
public var text2:TextField;
public var buytMC:MovieClip;
public var clothBtn:MovieClip;
public var othersBtn:MovieClip;
}
}//package
Section 208
//shopSound (shopSound)
package {
import flash.media.*;
public dynamic class shopSound extends Sound {
}
}//package
Section 209
//smileSound (smileSound)
package {
import flash.media.*;
public dynamic class smileSound extends Sound {
}
}//package
Section 210
//SocKbackMC (SocKbackMC)
package {
import flash.display.*;
public dynamic class SocKbackMC extends MovieClip {
}
}//package
Section 211
//SocKbackMCR (SocKbackMCR)
package {
import flash.display.*;
public dynamic class SocKbackMCR extends MovieClip {
}
}//package
Section 212
//SocKdeadMC (SocKdeadMC)
package {
import flash.display.*;
public dynamic class SocKdeadMC extends MovieClip {
}
}//package
Section 213
//SocKdirtyWantMC (SocKdirtyWantMC)
package {
import flash.display.*;
public dynamic class SocKdirtyWantMC extends MovieClip {
}
}//package
Section 214
//SocKdrinkMC (SocKdrinkMC)
package {
import flash.display.*;
public dynamic class SocKdrinkMC extends MovieClip {
public function SocKdrinkMC(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package
Section 215
//SocKdrinkWantMC (SocKdrinkWantMC)
package {
import flash.display.*;
public dynamic class SocKdrinkWantMC extends MovieClip {
}
}//package
Section 216
//SocKdrugMC (SocKdrugMC)
package {
import flash.display.*;
public dynamic class SocKdrugMC extends MovieClip {
}
}//package
Section 217
//SocKdrugWantMC (SocKdrugWantMC)
package {
import flash.display.*;
public dynamic class SocKdrugWantMC extends MovieClip {
}
}//package
Section 218
//SocKeatMC (SocKeatMC)
package {
import flash.display.*;
public dynamic class SocKeatMC extends MovieClip {
}
}//package
Section 219
//SocKeatWantMC (SocKeatWantMC)
package {
import flash.display.*;
public dynamic class SocKeatWantMC extends MovieClip {
}
}//package
Section 220
//SocKfMC (SocKfMC)
package {
import flash.display.*;
public dynamic class SocKfMC extends MovieClip {
}
}//package
Section 221
//SocKfrontMC (SocKfrontMC)
package {
import flash.display.*;
public dynamic class SocKfrontMC extends MovieClip {
}
}//package
Section 222
//SocKfrontMCM (SocKfrontMCM)
package {
import flash.display.*;
public dynamic class SocKfrontMCM extends MovieClip {
}
}//package
Section 223
//SocKfrontMCMR (SocKfrontMCMR)
package {
import flash.display.*;
public dynamic class SocKfrontMCMR extends MovieClip {
}
}//package
Section 224
//SocKfrontMCR (SocKfrontMCR)
package {
import flash.display.*;
public dynamic class SocKfrontMCR extends MovieClip {
}
}//package
Section 225
//SocKlbMC (SocKlbMC)
package {
import flash.display.*;
public dynamic class SocKlbMC extends MovieClip {
}
}//package
Section 226
//SocKlbMCR (SocKlbMCR)
package {
import flash.display.*;
public dynamic class SocKlbMCR extends MovieClip {
}
}//package
Section 227
//SocKlearnMC (SocKlearnMC)
package {
import flash.display.*;
public dynamic class SocKlearnMC extends MovieClip {
}
}//package
Section 228
//SocKlearnWantMC (SocKlearnWantMC)
package {
import flash.display.*;
public dynamic class SocKlearnWantMC extends MovieClip {
}
}//package
Section 229
//SocKlfMC (SocKlfMC)
package {
import flash.display.*;
public dynamic class SocKlfMC extends MovieClip {
}
}//package
Section 230
//SocKlfMCM (SocKlfMCM)
package {
import flash.display.*;
public dynamic class SocKlfMCM extends MovieClip {
}
}//package
Section 231
//SocKlfMCMR (SocKlfMCMR)
package {
import flash.display.*;
public dynamic class SocKlfMCMR extends MovieClip {
}
}//package
Section 232
//SocKlfMCR (SocKlfMCR)
package {
import flash.display.*;
public dynamic class SocKlfMCR extends MovieClip {
}
}//package
Section 233
//SocKlsMC (SocKlsMC)
package {
import flash.display.*;
public dynamic class SocKlsMC extends MovieClip {
}
}//package
Section 234
//SocKlsMCM (SocKlsMCM)
package {
import flash.display.*;
public dynamic class SocKlsMCM extends MovieClip {
}
}//package
Section 235
//SocKlsMCMR (SocKlsMCMR)
package {
import flash.display.*;
public dynamic class SocKlsMCMR extends MovieClip {
}
}//package
Section 236
//SocKlsMCR (SocKlsMCR)
package {
import flash.display.*;
public dynamic class SocKlsMCR extends MovieClip {
}
}//package
Section 237
//SocKplayMC (SocKplayMC)
package {
import flash.display.*;
public dynamic class SocKplayMC extends MovieClip {
}
}//package
Section 238
//SocKplayWantMC (SocKplayWantMC)
package {
import flash.display.*;
public dynamic class SocKplayWantMC extends MovieClip {
}
}//package
Section 239
//SocKrbMC (SocKrbMC)
package {
import flash.display.*;
public dynamic class SocKrbMC extends MovieClip {
}
}//package
Section 240
//SocKrbMCR (SocKrbMCR)
package {
import flash.display.*;
public dynamic class SocKrbMCR extends MovieClip {
}
}//package
Section 241
//SocKrefuseMC (SocKrefuseMC)
package {
import flash.display.*;
public dynamic class SocKrefuseMC extends MovieClip {
}
}//package
Section 242
//SocKrfMC (SocKrfMC)
package {
import flash.display.*;
public dynamic class SocKrfMC extends MovieClip {
}
}//package
Section 243
//SocKrfMCM (SocKrfMCM)
package {
import flash.display.*;
public dynamic class SocKrfMCM extends MovieClip {
}
}//package
Section 244
//SocKrfMCMR (SocKrfMCMR)
package {
import flash.display.*;
public dynamic class SocKrfMCMR extends MovieClip {
}
}//package
Section 245
//SocKrfMCR (SocKrfMCR)
package {
import flash.display.*;
public dynamic class SocKrfMCR extends MovieClip {
}
}//package
Section 246
//SocKrsMC (SocKrsMC)
package {
import flash.display.*;
public dynamic class SocKrsMC extends MovieClip {
}
}//package
Section 247
//SocKrsMCM (SocKrsMCM)
package {
import flash.display.*;
public dynamic class SocKrsMCM extends MovieClip {
}
}//package
Section 248
//SocKrsMCMR (SocKrsMCMR)
package {
import flash.display.*;
public dynamic class SocKrsMCMR extends MovieClip {
}
}//package
Section 249
//SocKrsMCR (SocKrsMCR)
package {
import flash.display.*;
public dynamic class SocKrsMCR extends MovieClip {
}
}//package
Section 250
//SocKsleepWantMC (SocKsleepWantMC)
package {
import flash.display.*;
public dynamic class SocKsleepWantMC extends MovieClip {
}
}//package
Section 251
//SocKtoiletMC (SocKtoiletMC)
package {
import flash.display.*;
public dynamic class SocKtoiletMC extends MovieClip {
}
}//package
Section 252
//SocKtoiletWantMC (SocKtoiletWantMC)
package {
import flash.display.*;
public dynamic class SocKtoiletWantMC extends MovieClip {
}
}//package
Section 253
//soundMC (soundMC)
package {
import flash.display.*;
public dynamic class soundMC extends MovieClip {
public var miuBtn:SimpleButton;
public var closeBtn:SimpleButton;
public var openBtn:SimpleButton;
public var miucBtn:SimpleButton;
}
}//package
Section 254
//SporTbackMC (SporTbackMC)
package {
import flash.display.*;
public dynamic class SporTbackMC extends MovieClip {
}
}//package
Section 255
//SporTbackMCR (SporTbackMCR)
package {
import flash.display.*;
public dynamic class SporTbackMCR extends MovieClip {
}
}//package
Section 256
//SporTdeadMC (SporTdeadMC)
package {
import flash.display.*;
public dynamic class SporTdeadMC extends MovieClip {
}
}//package
Section 257
//SporTdirtyWantMC (SporTdirtyWantMC)
package {
import flash.display.*;
public dynamic class SporTdirtyWantMC extends MovieClip {
}
}//package
Section 258
//SporTdrinkMC (SporTdrinkMC)
package {
import flash.display.*;
public dynamic class SporTdrinkMC extends MovieClip {
public function SporTdrinkMC(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package
Section 259
//SporTdrinkWantMC (SporTdrinkWantMC)
package {
import flash.display.*;
public dynamic class SporTdrinkWantMC extends MovieClip {
}
}//package
Section 260
//SporTdrugMC (SporTdrugMC)
package {
import flash.display.*;
public dynamic class SporTdrugMC extends MovieClip {
}
}//package
Section 261
//SporTdrugWantMC (SporTdrugWantMC)
package {
import flash.display.*;
public dynamic class SporTdrugWantMC extends MovieClip {
}
}//package
Section 262
//SporTeatMC (SporTeatMC)
package {
import flash.display.*;
public dynamic class SporTeatMC extends MovieClip {
}
}//package
Section 263
//SporTeatWantMC (SporTeatWantMC)
package {
import flash.display.*;
public dynamic class SporTeatWantMC extends MovieClip {
}
}//package
Section 264
//SporTfMC (SporTfMC)
package {
import flash.display.*;
public dynamic class SporTfMC extends MovieClip {
}
}//package
Section 265
//SporTfrontMC (SporTfrontMC)
package {
import flash.display.*;
public dynamic class SporTfrontMC extends MovieClip {
}
}//package
Section 266
//SporTfrontMCM (SporTfrontMCM)
package {
import flash.display.*;
public dynamic class SporTfrontMCM extends MovieClip {
}
}//package
Section 267
//SporTfrontMCMR (SporTfrontMCMR)
package {
import flash.display.*;
public dynamic class SporTfrontMCMR extends MovieClip {
}
}//package
Section 268
//SporTfrontMCR (SporTfrontMCR)
package {
import flash.display.*;
public dynamic class SporTfrontMCR extends MovieClip {
}
}//package
Section 269
//SporTlbMC (SporTlbMC)
package {
import flash.display.*;
public dynamic class SporTlbMC extends MovieClip {
}
}//package
Section 270
//SporTlbMCR (SporTlbMCR)
package {
import flash.display.*;
public dynamic class SporTlbMCR extends MovieClip {
}
}//package
Section 271
//SporTlearnMC (SporTlearnMC)
package {
import flash.display.*;
public dynamic class SporTlearnMC extends MovieClip {
}
}//package
Section 272
//SporTlearnWantMC (SporTlearnWantMC)
package {
import flash.display.*;
public dynamic class SporTlearnWantMC extends MovieClip {
}
}//package
Section 273
//SporTlfMC (SporTlfMC)
package {
import flash.display.*;
public dynamic class SporTlfMC extends MovieClip {
}
}//package
Section 274
//SporTlfMCM (SporTlfMCM)
package {
import flash.display.*;
public dynamic class SporTlfMCM extends MovieClip {
}
}//package
Section 275
//SporTlfMCMR (SporTlfMCMR)
package {
import flash.display.*;
public dynamic class SporTlfMCMR extends MovieClip {
}
}//package
Section 276
//SporTlfMCR (SporTlfMCR)
package {
import flash.display.*;
public dynamic class SporTlfMCR extends MovieClip {
}
}//package
Section 277
//SporTlsMC (SporTlsMC)
package {
import flash.display.*;
public dynamic class SporTlsMC extends MovieClip {
}
}//package
Section 278
//SporTlsMCM (SporTlsMCM)
package {
import flash.display.*;
public dynamic class SporTlsMCM extends MovieClip {
}
}//package
Section 279
//SporTlsMCMR (SporTlsMCMR)
package {
import flash.display.*;
public dynamic class SporTlsMCMR extends MovieClip {
}
}//package
Section 280
//SporTlsMCR (SporTlsMCR)
package {
import flash.display.*;
public dynamic class SporTlsMCR extends MovieClip {
}
}//package
Section 281
//SporTplayMC (SporTplayMC)
package {
import flash.display.*;
public dynamic class SporTplayMC extends MovieClip {
}
}//package
Section 282
//SporTplayWantMC (SporTplayWantMC)
package {
import flash.display.*;
public dynamic class SporTplayWantMC extends MovieClip {
}
}//package
Section 283
//SporTrbMC (SporTrbMC)
package {
import flash.display.*;
public dynamic class SporTrbMC extends MovieClip {
}
}//package
Section 284
//SporTrbMCR (SporTrbMCR)
package {
import flash.display.*;
public dynamic class SporTrbMCR extends MovieClip {
}
}//package
Section 285
//SporTrefuseMC (SporTrefuseMC)
package {
import flash.display.*;
public dynamic class SporTrefuseMC extends MovieClip {
}
}//package
Section 286
//SporTrfMC (SporTrfMC)
package {
import flash.display.*;
public dynamic class SporTrfMC extends MovieClip {
}
}//package
Section 287
//SporTrfMCM (SporTrfMCM)
package {
import flash.display.*;
public dynamic class SporTrfMCM extends MovieClip {
}
}//package
Section 288
//SporTrfMCMR (SporTrfMCMR)
package {
import flash.display.*;
public dynamic class SporTrfMCMR extends MovieClip {
}
}//package
Section 289
//SporTrfMCR (SporTrfMCR)
package {
import flash.display.*;
public dynamic class SporTrfMCR extends MovieClip {
}
}//package
Section 290
//SporTrsMC (SporTrsMC)
package {
import flash.display.*;
public dynamic class SporTrsMC extends MovieClip {
}
}//package
Section 291
//SporTrsMCM (SporTrsMCM)
package {
import flash.display.*;
public dynamic class SporTrsMCM extends MovieClip {
}
}//package
Section 292
//SporTrsMCMR (SporTrsMCMR)
package {
import flash.display.*;
public dynamic class SporTrsMCMR extends MovieClip {
}
}//package
Section 293
//SporTrsMCR (SporTrsMCR)
package {
import flash.display.*;
public dynamic class SporTrsMCR extends MovieClip {
}
}//package
Section 294
//SporTsleepWantMC (SporTsleepWantMC)
package {
import flash.display.*;
public dynamic class SporTsleepWantMC extends MovieClip {
}
}//package
Section 295
//SporTtoiletMC (SporTtoiletMC)
package {
import flash.display.*;
public dynamic class SporTtoiletMC extends MovieClip {
}
}//package
Section 296
//SporTtoiletWantMC (SporTtoiletWantMC)
package {
import flash.display.*;
public dynamic class SporTtoiletWantMC extends MovieClip {
}
}//package
Section 297
//startMC (startMC)
package {
import flash.display.*;
public dynamic class startMC extends MovieClip {
public var startBtn:MovieClip;
public var moreBtn:MovieClip;
public var explainBtn:MovieClip;
public function startMC(){
addFrameScript(0, frame1);
}
function frame1(){
moreBtn.visible = false;
}
}
}//package
Section 298
//stateMC (stateMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class stateMC extends MovieClip {
public var happyStria:MovieClip;
public var eduStria:MovieClip;
public var eduText:TextField;
public var hungryText:TextField;
public var toiletBtn:MovieClip;
public var toiletStria:MovieClip;
public var happyText:TextField;
public var dirtyText:TextField;
public var dirtyBtn:MovieClip;
public var closeBtn:SimpleButton;
public var boredStria:MovieClip;
public var thirstyText:TextField;
public var dirtyStria:MovieClip;
public var thirstyStria:MovieClip;
public var healthyText:TextField;
public var boredText:TextField;
public var healthyStria:MovieClip;
public var boredBtn:MovieClip;
public var funnyStria:MovieClip;
public var hungryStria:MovieClip;
public var hungryBtn:MovieClip;
public var funnyText:TextField;
public var toiletText:TextField;
public var thirstyBtn:MovieClip;
}
}//package
Section 299
//striaMaskMC (striaMaskMC)
package {
import flash.display.*;
public dynamic class striaMaskMC extends MovieClip {
}
}//package
Section 300
//winMC (winMC)
package {
import flash.display.*;
public dynamic class winMC extends MovieClip {
public var winmc:MovieClip;
public function winMC(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package
Section 301
//winSound (winSound)
package {
import flash.media.*;
public dynamic class winSound extends Sound {
}
}//package