Frame 3
function Entry() {
_global.root = _level0;
_global.company = "MiniClip";
_global.companylogo = "MiniClip";
_global.youdagames = "";
_global.moregamelink = "http://www.miniclip.com/";
_global.highscorelink = "";
_global.buygamelink = "http://www.miniclip.com/buy.php?id=86";
_global.buygameshoplink = "http://www.miniclip.com/buy.php?id=86";
_global.affiliatebutton = "http://www.miniclip.com/";
_global.game_idprice = 2;
}
Entry();
_global.submit = false;
fscommand ("fullscreen", "false");
Stage.scaleMode = "exactFit";
fscommand ("showmenu", "false");
Frame 5
stop();
Frame 6
stop();
_root.attachMovie("mus", "mus", -10000, {_x:-100, _y:-100});
_root.attachMovie("snd", "snd", -11000, {_x:-110, _y:-110});
stop();
_global.tutorialSkip = false;
_global.sviri = true;
_global.tempBar = 100;
_global.off = false;
_global.musicOff = false;
_global.tempBarMusic = 100;
_global.sound = new control.SoundController();
_global.music = {};
var Musics;
Musics = new Array(["Kindergarten"], ["kg_interface"], ["sunrise"], ["KG_weekEnds"], ["KGdayEnds"]);
var i = 0;
while (i <= 4) {
_global.music[i] = new Sound(_root.mus);
_global.music[i].attachSound(Musics[i]);
_global.music[i].setVolume(_global.tempBarMusic);
i++;
}
_global.music[1].start(0, 32768);
_root.attachMovie("intro", "intro", 1, {_x:-238.7, _y:0});
_root.intro.tabEnabled = false;
_root.attachMovie("cursor", "cursor", 21000);
_root.cursor.cacheAsBitmap = true;
startDrag (_root.cursor, true);
Mouse.hide();
Stage.showMenu = false;
Symbol 76 MovieClip Frame 1
_global.path.sound.playSound("food_maker_10sec");
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("food_maker_10sec");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop("food_maker_10sec");
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
Symbol 76 MovieClip Frame 228
stop();
this._parent.gotoAndPlay("bottle");
Symbol 78 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("food_maker_8sec");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop("food_maker_8sec");
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
_global.path.sound.playSound("food_maker_beep");
Symbol 78 MovieClip Frame 22
stop();
this._parent.hasABottle = true;
_global.path.helpTips[26].dettachPopUp();
if (_global.path.helpTips[24].shown == 2) {
_global.path.helpTips[27].showPopUp();
}
_global.path.currentMovie = undefined;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
_global.stage.foodMaker.hasABottle = true;
trace("zakacuvam sisinja");
_global.stage.bottle.clip = _global.stage.attachMovie(_global.stage.bottle.linkID, bottle1, _global.stage.bottle.depth, {_x:_global.stage.bottle.x, _y:_global.stage.bottle.y, _rotation:_global.stage.bottle.rot, _xscale:_global.stage.bottle.xscale, _yscale:_global.stage.bottle.yscale});
_global.stage.bottle.clip.setCoordinates(16, 9);
trace("_global.stage.bottle.clip " + _global.stage.bottle.clip);
_global.stage.bottle.clip.onRollOver = function () {
trace("onRollOver");
_global.path.cursor.clip.gotoAndStop("hand");
};
_global.stage.bottle.clip.onRollOut = function () {
trace("onRollOut");
_global.path.cursor.clip.gotoAndStop("arrow");
};
_global.stage.bottle.clip.onDragOut = function () {
_global.path.cursor.clip.gotoAndStop("arrow");
};
this._parent.gotoAndStop("off");
Symbol 78 MovieClip Frame 54
delete this.onEnterFrame;
stop();
Symbol 79 MovieClip [mixer_mc1] Frame 1
stop();
Symbol 79 MovieClip [mixer_mc1] Frame 2
trace("sega ke zakacuvam sisinja");
stop();
Symbol 79 MovieClip [mixer_mc1] Frame 3
stop();
trace("frame-bottle");
Symbol 85 MovieClip [mixer_mc2] Frame 1
stop();
Symbol 85 MovieClip [mixer_mc2] Frame 2
trace("sega sme na on");
this.gotoAndStop(6);
Symbol 85 MovieClip [mixer_mc2] Frame 6
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("food_maker_8sec");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop("food_maker_8sec");
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
trace("pusten e foodmakerot");
_global.path.sound.playSound("food_maker_8sec");
Symbol 85 MovieClip [mixer_mc2] Frame 184
trace("prasina");
Symbol 85 MovieClip [mixer_mc2] Frame 190
trace("odi na bottle");
this.gotoAndPlay("bottle");
Symbol 85 MovieClip [mixer_mc2] Frame 191
this._parent.hasABottle = true;
_global.stage.foodMaker.hasABottle = true;
trace("@@@@@@@@@@@@@frame_ot kade sto e zakaceno siseto");
_global.stage.bottle.clip = _global.stage.attachMovie(_global.stage.bottle.linkID, bottle1, _global.stage.bottle.depth, {_x:_global.stage.bottle.x, _y:_global.stage.bottle.y, _rotation:_global.stage.bottle.rot, _xscale:_global.stage.bottle.xscale, _yscale:_global.stage.bottle.yscale});
_global.stage.bottle.clip.setCoordinates(16, 9);
_global.stage.bottle.clip.onRollOver = function () {
trace("onRollOver");
_global.path.cursor.clip.gotoAndStop("hand");
};
_global.stage.bottle.clip.onRollOut = function () {
trace("onRollOut");
_global.path.cursor.clip.gotoAndStop("arrow");
};
_global.stage.bottle.clip.onDragOut = function () {
_global.path.cursor.clip.gotoAndStop("arrow");
};
delete this.onEnterFrame;
this.gotoAndStop("off");
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
this.gotoAndPlay(6);
Symbol 93 MovieClip Frame 6
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("food_maker_6sec");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop("food_maker_6sec");
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
_global.path.sound.playSound("food_maker_6sec");
Symbol 93 MovieClip Frame 143
this.gotoAndPlay("bottle");
Symbol 93 MovieClip Frame 144
this._parent.hasABottle = true;
_global.stage.foodMaker.hasABottle = true;
_global.stage.bottle.clip = _global.stage.attachMovie(_global.stage.bottle.linkID, bottle1, _global.stage.bottle.depth, {_x:_global.stage.bottle.x, _y:_global.stage.bottle.y, _rotation:_global.stage.bottle.rot, _xscale:_global.stage.bottle.xscale, _yscale:_global.stage.bottle.yscale});
_global.stage.bottle.clip.setCoordinates(16, 9);
_global.stage.bottle.clip.onRollOver = function () {
trace("onRollOver");
_global.path.cursor.clip.gotoAndStop("hand");
};
_global.stage.bottle.clip.onRollOut = function () {
trace("onRollOut");
_global.path.cursor.clip.gotoAndStop("arrow");
};
_global.stage.bottle.clip.onDragOut = function () {
_global.path.cursor.clip.gotoAndStop("arrow");
};
delete this.onEnterFrame;
this.gotoAndStop("off");
Symbol 94 MovieClip [foodMaker] Frame 1
stop();
Symbol 94 MovieClip [foodMaker] Frame 2
stop();
Symbol 94 MovieClip [foodMaker] Frame 3
stop();
Symbol 116 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 133 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 208 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
_global.path.sound.playSound("clown_at_door");
Symbol 208 MovieClip Frame 75
_global.path.sound.playSound("clown_door_squeak");
Symbol 208 MovieClip Frame 91
_global.path.sound.playSound("clown_cake_splash");
Symbol 208 MovieClip Frame 156
_global.path.sound.playSound("clown_cake_wipeout");
Symbol 208 MovieClip Frame 262
stop();
trace("klovnot3:-'I don't play anymore");
_global.stage.game.markCell(13, 7, true);
_global.stage.game.markCell(13, 8, true);
_global.stage.game.markCell(14, 7, true);
_global.stage.game.markCell(14, 8, true);
_global.stage.clownFinished = true;
_global.stage.clownClicked = false;
_global.stage.clownAttach = false;
this._parent.removeMovieClip();
_global.stage.clownInRoom = false;
Symbol 208 MovieClip Frame 279
delete this.onEnterFrame;
stop();
Symbol 306 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("clown_joogle_klovn2");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
_global.path.sound.playSound("clown_joogle_klovn2");
Symbol 306 MovieClip Frame 95
_global.path.sound.stopSound("clown_joogle_klovn2");
Symbol 306 MovieClip Frame 111
stop();
trace("klovnot3:-'I don't play anymore");
_global.stage.game.markCell(13, 7, true);
_global.stage.game.markCell(13, 8, true);
_global.stage.game.markCell(14, 7, true);
_global.stage.game.markCell(14, 8, true);
_global.stage.clownFinished = true;
_global.stage.clownClicked = false;
_global.stage.clownAttach = false;
this._parent.removeMovieClip();
_global.stage.clownInRoom = false;
Symbol 306 MovieClip Frame 115
delete this.onEnterFrame;
stop();
Symbol 369 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("clown_baloon_klovn1");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 527 MovieClip [clown_animation1] Frame 1
var cframe;
var csoundTime;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 527 MovieClip [clown_animation1] Frame 30
Symbol 527 MovieClip [clown_animation1] Frame 40
_global.path.sound.playSound("clown_b_1");
Symbol 527 MovieClip [clown_animation1] Frame 55
_global.path.sound.playSound("clown_b_2");
Symbol 527 MovieClip [clown_animation1] Frame 89
_global.path.sound.playSound("clown_b_3");
Symbol 527 MovieClip [clown_animation1] Frame 105
_global.path.sound.playSound("clown_b_4");
Symbol 527 MovieClip [clown_animation1] Frame 136
_global.path.sound.playSound("clown_b_5");
Symbol 527 MovieClip [clown_animation1] Frame 143
_global.path.sound.playSound("clown_b_6");
Symbol 527 MovieClip [clown_animation1] Frame 149
_global.path.sound.playSound("clown_b_7");
Symbol 527 MovieClip [clown_animation1] Frame 156
_global.path.sound.playSound("clown_b_8");
Symbol 527 MovieClip [clown_animation1] Frame 171
_global.path.sound.playSound("clown_b_9");
Symbol 527 MovieClip [clown_animation1] Frame 214
_global.path.sound.playSound("clown_b_10");
Symbol 527 MovieClip [clown_animation1] Frame 249
_global.path.sound.playSound("clown_b_11");
Symbol 527 MovieClip [clown_animation1] Frame 359
stop();
delete this.onEnterFrame;
trace("klovnot:-'I don't play anymore");
_global.stage.game.markCell(13, 7, true);
_global.stage.game.markCell(13, 8, true);
_global.stage.game.markCell(14, 7, true);
_global.stage.game.markCell(14, 8, true);
_global.stage.clownFinished = true;
_global.stage.clownClicked = false;
_global.stage.clownAttach = false;
_global.stage.door.clip.dor_Dor.gotoAndStop("close");
this.removeMovieClip();
_global.stage.clownInRoom = false;
Symbol 547 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 548 MovieClip Frame 2
_parent.mcAnimation.play();
stop();
Symbol 548 MovieClip Frame 13
_parent.gotoAndPlay("preload");
stop();
Symbol 564 MovieClip Frame 1
stop();
Symbol 564 MovieClip Frame 60
Symbol 564 MovieClip Frame 121
_parent.mcBackground.play();
stop();
Symbol 569 MovieClip Frame 1
this._visible = false;
Symbol 575 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 580 MovieClip Frame 2
if (_url.indexOf("http") > -1) {
if (_parent._parent._parent.loadAdNow) {
cacheBuster = getTimer() + random(999999);
showAd = "http://www.miniclip.com/swfcontent/push/didyouknow.swf?cacheBuster" + cacheBuster;
trace("Loading ad: " + showAd);
mcAd.loadMovie(showAd);
} else {
gotoAndPlay(_currentframe - 1);
}
}
Symbol 580 MovieClip Frame 4
if ((mcAd.getBytesTotal() != 0) && (mcAd.getBytesLoaded() == mcAd.getBytesTotal())) {
gotoAndStop ("showAd");
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 580 MovieClip Frame 12
stop();
Symbol 590 MovieClip Frame 1
stop();
Symbol 590 MovieClip Frame 100
stop();
Symbol 592 MovieClip Frame 1
stop();
Symbol 592 MovieClip Frame 12
_root.play();
_root.isFinished = true;
_parent.stop();
stop();
Symbol 593 MovieClip Frame 1
loadAdNow = false;
_root.stop();
play();
Instance of Symbol 569 MovieClip "mcIntro" in Symbol 593 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 593 MovieClip Frame 2
xPos = _x;
yPos = _y;
mcBackground._x = mcBackground._x - xPos;
mcBackground._y = mcBackground._y - yPos;
mcAnimation._x = mcAnimation._x - xPos;
mcAnimation._y = mcAnimation._y - yPos;
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var centerStageX = (stageWidth / 2);
var centerStageY = (stageHeight / 2);
mcBackground._width = stageWidth;
mcBackground._height = stageHeight;
mcAnimation._x = mcAnimation._x + centerStageX;
mcAnimation._y = mcAnimation._y + (centerStageY - (stageHeight / 10));
stop();
Instance of Symbol 592 MovieClip "mcLoadingAnimated" in Symbol 593 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 593 MovieClip Frame 3
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent == 100) {
_root.play();
stop();
} else {
loadAdNow = true;
mcLoadingAnimated._visible = true;
}
Symbol 593 MovieClip Frame 5
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent < 100) {
mcLoadingAnimated.mcLoading.gotoAndStop(loadedPercent);
mcLoadingAnimated.mcLoading.txtPercentLoaded1 = ("The game is loading (" + loadedPercent) + "%)";
mcLoadingAnimated.mcLoading.txtPercentLoaded2 = ("The game is loading (" + loadedPercent) + "%)";
gotoAndPlay(_currentframe - 1);
} else {
mcLoadingAnimated.play();
stop();
}
Symbol 5878 MovieClip [__Packages.utils.DalyScreen] Frame 0
class utils.DalyScreen
{
var clip, bankSum;
function DalyScreen () {
init();
}
function init() {
var _local3;
clip = _global.path.attachMovie("daly_screen", "daly_screen", 1, {_x:0, _y:0, _xscale:100, _yscale:100});
clip.test.text = "PROBA";
trace("_global.path.currentPopUp " + _global.path.currentPopUp);
trace("_global.path.dayBabiesNum " + _global.path.dayBabiesNum);
trace("_global.path.socialRating " + _global.path.socialRating);
trace("_global.path.exitBabies " + _global.path.exitBabies);
trace("_global.path.levelHappiness" + _global.path.levelHappiness);
trace("_global.path.socialRatingImpact" + _global.path.socialRatingImpact);
trace("_global.bonus " + _global.bonus);
trace("this.bonus.text " + clip.bonus.text);
trace("_global.path.exitBabies " + _global.path.exitBabies);
if (_global.firsTimeDalyScreen) {
clip.bonus.text = _global.path.bonusPoints;
rating = _global.path.socialRating;
trace("REJJTINGOT NATVOJATA GRADINAKA E " + rating);
_local3 = 0;
clip.todayEarnMoney.text = _local3.toString();
trace("_global.path.curentFee " + _global.path.curentFee);
_local3 = _global.path.curentFee * _global.path.exitBabies;
clip.todayEarnMoney.text = _local3.toString();
_global.path.weekEarnMoney = _global.path.weekEarnMoney + _local3;
var _local4;
_local4 = Math.round((_global.path.money + _local3) + _global.path.bonusPoints);
clip.bankSum.text = _local4.toString();
trace("bankSum " + bankSum.text);
trace("bankSumNum " + _local4);
trace("earnMoneyNum " + _local3);
trace("fixedCostNum " + _global.path.fixedCostNum);
clip.takenBabys.text = _global.path.exitBabies.toString();
trace("this.bonus.text " + clip.bonus.text);
var _local5 = _global.path.dayBabiesNum - _global.path.exitBabies;
trace("num" + _local5);
clip.Penalties.text = _local5.toString();
trace("this.Penalties.text " + clip.Penalties.text);
if (_global.path.levelHappiness >= 55) {
_global.path.socialRatingBonus = _global.path.socialRatingBonus + (((_global.path.levelHappiness / 100) * _global.path.exitBabies) * 0.02);
_global.path.socialRating = _global.path.socialRating + _global.path.socialRatingBonus;
trace("_global.path.socialRatingBonus " + _global.path.socialRatingBonus);
}
if (_global.path.levelHappiness < 55) {
_global.path.socialRatingBonus = _global.path.socialRatingBonus - (((_global.path.levelHappiness / 100) * _global.path.dayBabiesNum) * 0.02);
_global.path.socialRating = _global.path.socialRating + _global.path.socialRatingBonus;
trace("_global.path.socialRatingBonus " + _global.path.socialRatingBonus);
}
clip.babyNumber.text = _global.path.dayBabiesNum;
var rating = 0;
rating = Math.floor(_global.path.socialRating2);
if (rating <= 15) {
clip.BabySiterDaly.gotoAndStop("It could be better!");
} else if ((rating <= 50) && (rating > 15)) {
clip.BabySiterDaly.gotoAndStop("It\u2019s going good!");
} else if (rating > 50) {
clip.BabySiterDaly.gotoAndStop("They like me");
}
trace("_global.path.levelHappiness " + _global.path.levelHappiness);
if (_global.path.levelHappiness < 33) {
clip.babyDaly.gotoAndStop("I\u2019m unhappy");
}
if ((_global.path.levelHappiness >= 33) && (_global.path.levelHappiness < 55)) {
clip.babyDaly.gotoAndStop("Could feel better!");
} else if ((_global.path.levelHappiness >= 55) && (_global.path.levelHappiness < 75)) {
clip.babyDaly.gotoAndStop("I\u2019m happy!");
} else if (_global.path.levelHappiness >= 75) {
clip.babyDaly.gotoAndStop("I feel super!");
}
_global.path.money = _local4;
if (_global.path.socialRating > 0) {
_global.path.socialRating2 = _global.path.socialRating;
}
_global.path.fixedCostNum = 0;
_global.path.expenseMoney = 0;
_global.path.socialRating = 0;
_global.path.socialRatingImpact = 0;
_global.firsTimeDalyScreen = false;
_global.oldEarnMoneyNum = _global.path.money;
} else {
clip.tabla1._visible = false;
_global.path.daly_screen.attachMovie("table2", "table2", 1, {_x:66.4, _y:62.9, _xscale:100, _yscale:100});
_global.path.daly_screen.table2.old_account.text = _global.oldEarnMoneyNum;
_global.path.daly_screen.table2.new_account.text = _global.path.money;
_global.path.daly_screen.table2.money_spend.text = _global.oldEarnMoneyNum - _global.path.money;
rating = _global.path.socialRating2;
clip.babyNumber._visible = false;
clip.bankSum._visible = false;
clip.bonus._visible = false;
clip.todayEarnMoney._visible = false;
clip.takenBabys._visible = false;
clip.Penalties._visible = false;
if (_global.path.levelHappiness < 5) {
clip.babyDaly.gotoAndStop("I\u2019m unhappy");
}
if ((_global.path.levelHappiness >= 5) && (_global.path.levelHappiness < 30)) {
clip.babyDaly.gotoAndStop("Could feel better!");
} else if ((_global.path.levelHappiness >= 30) && (_global.path.levelHappiness < 70)) {
clip.babyDaly.gotoAndStop("I\u2019m happy!");
} else if (_global.path.levelHappiness >= 70) {
clip.babyDaly.gotoAndStop("I feel super!");
}
if (rating <= 30) {
clip.BabySiterDaly.gotoAndStop("It could be better!");
} else if ((rating <= 55) && (rating > 30)) {
clip.BabySiterDaly.gotoAndStop("It\u2019s going good!");
} else if (rating > 55) {
clip.BabySiterDaly.gotoAndStop("They like me");
}
}
}
}
Symbol 5879 MovieClip [__Packages.control.SoundController] Frame 0
class control.SoundController
{
var volume, off, Sounds, currSound, currLoop;
function SoundController () {
volume = _global.tempBar;
off = _global.off;
Sounds = new Array(["babyCrying", 70], ["babyUpsidedown", 70], ["babyLaughing", 70], ["babyBurp", 70], ["babyDrinking", 70], ["babyPoop", 70], ["bathWaterShort", 70], ["cleaningVomit", 70], ["clickOnBaby", 70], ["clickOnObject", 70], ["diperShanging", 70], ["doorBell", 70], ["grumpyWantsToy", 70], ["Baby-dipers", 70], ["sqeaky_toy", 70], ["vomit1", 70], ["vomit2", 70], ["babyBath", 70], ["baby_song", 70], ["cash_money", 70], ["jingle", 70], ["Clown_arrive", 70], ["garage_door", 70], ["light_pull", 70], ["pen_scribble", 70], ["book_slideIn", 70], ["book_slideOut", 70], ["clock_bang", 70], ["kg_interface", 70], ["food_maker_6sec", 70], ["food_maker_8sec", 70], ["food_maker_10sec", 70], ["kitchen_10sec", 70], ["door_locked", 70], ["mama", 70], ["clown_baloon_klovn1", 70], ["clown_joogle_klovn2", 70], ["clown_cake_klovn3", 70], ["nanny_av_av", 70], ["nanny_nananan", 70], ["puls1", 70], ["cry_Baby_toy", 70], ["game_over", 70], ["star_puff", 70], ["kitchen_1sec", 70], ["clown_b_1", 70], ["clown_b_2", 70], ["clown_b_3", 70], ["clown_b_4", 70], ["clown_b_5", 70], ["clown_b_6", 70], ["clown_b_7", 70], ["clown_b_8", 70], ["clown_b_9", 70], ["clown_b_10", 70], ["clown_b_11", 70], ["clown_at_door", 70], ["clown_cake_splash", 70], ["clown_cake_wipeout", 70], ["clown_door_squeak", 70], ["food_maker_beep", 70]);
var _local4 = 0;
while (_local4 < Sounds.length) {
SOUND[Sounds[_local4][0]] = new Sound(_root.snd);
SOUND[Sounds[_local4][0]].attachSound(Sounds[_local4][0]);
SOUND[Sounds[_local4][0]].setVolume(Sounds[_local4][1]);
SOUND[Sounds[_local4][0]].initalVol = Sounds[_local4][1];
SOUND[Sounds[_local4][0]].soundName = Sounds[_local4][0];
SOUND[Sounds[_local4][0]].setVolume(_global.tempBar);
_local4++;
}
}
function playSound(soundName) {
if (!_global.off) {
var _local4 = SOUND[soundName].initalVol;
SOUND[soundName].setVolume((_local4 * volume) / 100);
SOUND[soundName].start();
currSound = soundName;
}
}
function playMusic(musicName) {
if (!_global.off) {
var _local3 = SOUND[musicName].initalVol;
SOUND[musicName].setVolume((_local3 * volume) / 100);
SOUND[musicName].start(0, 32768);
}
}
function stopMusic(musicName) {
SOUND[musicName].stop(musicName);
}
function stopSound(soundName) {
SOUND[soundName].stop(soundName);
}
function stopCurrentSound() {
stopSound(currSound);
}
function getSound(soundName) {
return(SOUND[soundName]);
}
function stopLoops() {
SOUND[currLoop].stop(currLoop);
}
var SOUND = new Object();
}
Symbol 5880 MovieClip [__Packages.Apgrejd] Frame 0
class Apgrejd extends MovieClip
{
var buyFlag, _cash, Item_number, cena, ItemNumber, promenaGolem, promenaPogolem, _SocialRating, _identity, bedNum, kolicina, filters, rejtingAdd, _parent, koeficient, _name, _id;
function Apgrejd () {
super();
buyFlag = true;
init();
}
function init() {
trace("Klasa apgrejt");
Item_number.text = _cash;
cena = _cash;
ItemNumber = 0;
promenaGolem = false;
promenaPogolem = false;
_global.path.curentFee = 0;
_SocialRating = _cash / 100;
bedNum.text = _global.path[_identity]["level" + id];
kolicina = _global.path[_identity]["level" + id];
if (_global.path.BedroomType > 0) {
_global.maxParm.box = 3;
_global.maxParm.bed = 6;
trace("_global.maxParm.box " + _global.maxParm.box);
}
if (_global.path.socialRating2 <= 3) {
_global.path.socialRating2 = 3.2;
}
}
function buyItem() {
if (buyFlag) {
if (_global.path[_identity]["level" + id] < _global.maxParm[_identity]) {
if (((_global.path[_identity].level1 + _global.path[_identity].level2) + _global.path[_identity].level3) < _global.maxParm[_identity]) {
_global.path[_identity]["level" + id]++;
bedNum.text = _global.path[_identity]["level" + id];
_global.path.MoneySpend = _global.path.MoneySpend + _cash;
_global.path.meni.MoneySpend.text = _global.path.MoneySpend.toString();
_global.path.NewSocialRating = _global.path.NewSocialRating + _SocialRating;
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "The bill for the selected objects is too high";
}
setNewcurentFee();
buyFlag = false;
var _local6 = 16777113 /* 0xFFFF99 */;
var _local12 = 0.8;
var _local9 = 32;
var _local8 = 32;
var _local10 = 2;
var _local4 = 15;
var _local7 = false;
var _local11 = false;
var _local5 = new flash.filters.GlowFilter(_local6, _local12, _local9, _local8, _local10, _local4, _local7, _local11);
var _local3 = new Array();
_local3.push(_local5);
filters = _local3;
} else if ((id == 2) && (_global.path[_identity].level1 > 0)) {
_global.path[_identity].level2++;
_global.path[_identity].level1--;
_global.path[_identity + "_rent"].level1 = 1;
trace("_global.path[_identity+_rent].level1++;" + _global.path.bed_rent.level1);
trace("_global.path[_identity+_rent].level1++;" + _global.path.box_rent.level1);
promenaGolem = true;
trace("_global.path.meni[_identity].bedNum " + _global.path.meni[_identity].bedNum);
_global.path.meni[_identity].bedNum.text = _global.path[_identity].level1;
bedNum.text = _global.path[_identity]["level" + id];
_global.path.MoneySpend = _global.path.MoneySpend + _cash;
_global.path.meni.MoneySpend.text = _global.path.MoneySpend.toString();
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "The bill for the selected objects is too high";
}
_global.path.NewSocialRating = _global.path.NewSocialRating + 0.4;
rejtingAdd = 0.4;
setNewcurentFee();
buyFlag = false;
var _local6 = 16777113 /* 0xFFFF99 */;
var _local12 = 0.8;
var _local9 = 32;
var _local8 = 32;
var _local10 = 2;
var _local4 = 15;
var _local7 = false;
var _local11 = false;
var _local5 = new flash.filters.GlowFilter(_local6, _local12, _local9, _local8, _local10, _local4, _local7, _local11);
var _local3 = new Array();
_local3.push(_local5);
filters = _local3;
} else if ((id == 3) && ((_global.path[_identity].level1 > 0) || (_global.path[_identity].level2 > 0))) {
_global.path[_identity].level3++;
if (_global.path[_identity].level1 > 0) {
_global.path[_identity].level1--;
_global.path[_identity + "_rent"].level1 = 1;
promenaGolem = true;
bedNum.text = _global.path[_identity]["level" + id];
_global.path.meni[_identity].bedNum.text = _global.path[_identity].level1;
_global.path.MoneySpend = _global.path.MoneySpend + _cash;
_global.path.meni.MoneySpend.text = _global.path.MoneySpend.toString();
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "The bill for the selected objects is too high";
}
_global.path.NewSocialRating = _global.path.NewSocialRating + 0.8;
rejtingAdd = 0.8;
setNewcurentFee();
buyFlag = false;
} else if (_global.path[_identity].level2 > 0) {
_global.path[_identity].level2--;
_global.path[_identity + "_rent"].level2 = 1;
promenaPogolem = true;
_global.path.meni[_identity + "2"].bedNum.text = _global.path[_identity].level2;
bedNum.text = _global.path[_identity]["level" + id];
_global.path.MoneySpend = _global.path.MoneySpend + _cash;
_global.path.meni.MoneySpend.text = _global.path.MoneySpend.toString();
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "The bill for the selected objects is too high";
}
_global.path.NewSocialRating = _global.path.NewSocialRating + 0.4;
rejtingAdd = 0.4;
setNewcurentFee();
buyFlag = false;
}
var _local6 = 16777113 /* 0xFFFF99 */;
var _local12 = 0.8;
var _local9 = 32;
var _local8 = 32;
var _local10 = 2;
var _local4 = 15;
var _local7 = false;
var _local11 = false;
var _local5 = new flash.filters.GlowFilter(_local6, _local12, _local9, _local8, _local10, _local4, _local7, _local11);
var _local3 = new Array();
_local3.push(_local5);
filters = _local3;
}
} else {
trace("you must seel");
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You don't have space in your kindergarden";
}
} else {
trace("vrakam");
_global.path[_identity]["level" + id]--;
bedNum.text = _global.path[_identity]["level" + id];
_global.path.MoneySpend = _global.path.MoneySpend - _cash;
_global.path.meni.MoneySpend.text = _global.path.MoneySpend.toString();
if ((!promenaGolem) && (!promenaPogolem)) {
_global.path.NewSocialRating = _global.path.NewSocialRating - _SocialRating;
}
setNewcurentFee();
buyFlag = true;
filters = undefined;
if (promenaGolem) {
_global.path[_identity].level1++;
_global.path.meni[_identity].bedNum.text = _global.path[_identity].level1;
promenaGolem = false;
_global.path.NewSocialRating = _global.path.NewSocialRating - rejtingAdd;
setNewcurentFee();
}
if (promenaPogolem) {
_global.path[_identity].level2++;
_global.path.meni[_identity + "2"].bedNum.text = _global.path[_identity].level2;
promenaPogolem = false;
_global.path.NewSocialRating = _global.path.NewSocialRating - rejtingAdd;
setNewcurentFee();
}
}
}
function setCurentFee() {
_global.path.NewSocialRating = 0;
if (_global.path.socialRating2 <= 100) {
_global.path.meni.socialBar.bar._xscale = _global.path.socialRating2;
} else {
_global.path.meni.socialBar.bar._xscale = 100;
}
_global.path.meni.NewFee.text = "";
trace("set_global.path.curentFee(); " + _global.path.socialRating2);
_global.path.meni.MoneySpend.text = _global.path.MoneySpend.toString();
_parent.BankBalance.text = _global.path.money.toString();
koeficient = int(_global.path.socialRating2 / 3);
trace("##########this.koeficient " + koeficient);
_global.path.curentFee = koeficient * 10;
_global.path.NextFee = (koeficient * 10) + 10;
_global.path.meni.curentFeeText.text = _global.path.curentFee;
_global.path.meni.curentFee.text = _global.path.curentFee;
_global.path.meni.NextCurentFeeText.text = _global.path.NextFee;
if ((_global.path.socialRating2 - (koeficient * 3)) > 0) {
var _local3 = (_global.path.socialRating2 - (koeficient * 3)) / 0.03;
} else {
var _local3 = (_global.path.socialRating2 - ((koeficient - 1) * 3)) / 0.03;
}
_global.path.meni.nexFeeBar.bar._xscale = _local3;
trace("1SatusBar " + _local3);
}
function setNewcurentFee() {
var _local3 = _global.path.NewSocialRating + _global.path.socialRating2;
trace("rating; " + _local3);
koeficient = int(_local3 / 3);
trace("##########this.koeficient " + koeficient);
_global.path.curentFee = koeficient * 10;
_global.path.NextFee = (koeficient * 10) + 10;
_global.path.meni.curentFeeText.text = _global.path.curentFee;
_global.path.meni.NewFee.text = _global.path.curentFee;
_global.path.meni.NextCurentFeeText.text = _global.path.NextFee;
if ((_local3 - (koeficient * 3)) > 0) {
var _local4 = (_local3 - (koeficient * 3)) / 0.03;
} else {
var _local4 = (_local3 - ((koeficient - 1) * 3)) / 0.03;
}
_global.path.meni.nexFeeBar.bar._xscale = _local4;
trace("1SatusBar " + _local4);
trace("rating " + _local3);
trace("_global.path.meni.socialBar.bar._xscale " + _global.path.meni.socialBar.bar._xscale);
trace("_global.path.meni.socialBar.bar " + _global.path.meni.socialBar.bar);
if (_local3 <= 100) {
_global.path.meni.socialBar.bar._xscale = _local3;
trace("rating " + _local3);
} else {
trace("11111111111111");
_global.path.meni.socialBar.bar._xscale = 100;
}
}
function get identity() {
return(_identity);
}
function set identity(value) {
_identity = value;
//return(identity);
}
function get name() {
return(_name);
}
function set name(value) {
_name = value;
//return(name);
}
function get cash() {
return(_cash);
}
function set cash(value) {
_cash = value;
//return(cash);
}
function get SocialRating() {
return(_SocialRating);
}
function set SocialRating(value) {
_SocialRating = value;
//return(SocialRating);
}
function get id() {
return(_id);
}
function set id(value) {
_id = value;
//return(id);
}
}
Symbol 5881 MovieClip [__Packages.ss.Level] Frame 0
class ss.Level extends MovieClip
{
var game, LevelNum, width, height, config1, config, box, bed, toy;
function Level () {
super();
_global.stage = this;
game = new Object();
LevelNum = 1;
init();
}
function init() {
width = 800;
height = 600;
if (LevelNum == 1) {
config1 = new ss.Game();
if ((_global.path.BedroomType == 0) && (_global.path.KitchenType == 0)) {
config = new conf.Level1Conf();
} else if ((_global.path.BedroomType > 0) && (_global.path.KitchenType > 0)) {
config = new conf.Level2Conf();
trace("level2");
} else if ((_global.path.BedroomType == 0) && (_global.path.KitchenType > 0)) {
config = new conf.Level3Conf();
trace("level3");
} else if ((_global.path.BedroomType > 0) && (_global.path.KitchenType == 0)) {
config = new conf.Level4Conf();
trace("level4");
}
}
}
function update() {
_global.stage.game.newDay();
_global.stage.girl.moveObject();
}
function updateMC(mc) {
mc.clip = _global.stage.attachMovie(mc.linkID, getUniqueName(), mc.depth, {_x:mc.x, _y:mc.y, _rotation:mc.rot, _xscale:mc.xscale, _yscale:mc.yscale});
}
function mcUpgrader() {
var _local2 = 0;
while (_local2 <= 10) {
if (box[_local2]) {
updateMC(box[_local2]);
}
if (bed[_local2]) {
updateMC(bed[_local2]);
}
if (toy[_local2]) {
updateMC(toy[_local2]);
}
_local2++;
}
}
static function getUniqueName() {
var _local3 = "";
var _local2 = 1;
while (_local2 <= 4) {
var _local1 = 1;
while (_local1 <= 4) {
_local3 = _local3 + getRandomChar();
_local1++;
}
if (_local2 < 4) {
_local3 = _local3 + "-";
}
_local2++;
}
return(_local3);
}
static function getRandomChar() {
switch (Math.round(Math.random() + 1)) {
case 1 :
return(String.fromCharCode(Math.round(Math.random() * 25) + 65));
case 2 :
return(String.fromCharCode(Math.round(Math.random() * 25) + 97));
}
}
var pause = false;
var toyUpgrade = 0;
}
Symbol 5882 MovieClip [__Packages.ss.Game] Frame 0
class ss.Game
{
var timeFlag, flagForLock, clownFading, _depth, i, frame, zemenoVreme, mamaPopUpFlag, bebyPutTutorial, flagBang, cekor, dodatok, leftTime, flagForDigiClock, pomArray, r, upgrades, chooseFromArray, minutki, dayFlag;
function Game () {
timeFlag = true;
flagForLock = false;
clownFading = false;
_depth = new control.DepthController();
_global.stage.pause = false;
_global.pausePress = false;
_global.stage.astar = new astar.Astar();
_global.stage.astar.initialize();
_global.stage.game = new Object();
_global.stage.game = this;
_global.stage.game.spacing = 40;
_global.stage.game.depth = 1000;
_global.stage.game.toyNum = 15;
_global.stage.game.carpetNum = 1;
_global.stage.game.boxNum = 2;
_global.stage.game.bedNum = 4;
_global.stage.game.chairNum = 4;
_global.stage.game.carpetPos = 3;
_global.stage.game.trashNum = 2;
_global.stage.game.babiesNum = 12;
_global.stage.game.babiesInRoom = 0;
_global.stage.game.bottlesNum = 4;
_global.stage.game.babiesocialRating = 0;
_global.stage.game.ClickArray = new Array();
_global.stage.game.stars = new Array();
_global.stage.game.endLeavingTime = getTimer;
_global.stage.game.digiClockTime = getTimer();
_global.stage.game.EndDay = false;
_global.stage.game.EndWeek = false;
_global.stage.baby_counter_mc.baby_count = _global.stage.game.babiesInRoom;
_global.stage.levelHappiness = 100;
_global.stage.upgrades = 0;
_global.stage.sumOfAllPricesPerLevel = 1;
_global.stage.numOfAllUpgradesPerLevel = 1;
_global.stage.heartsRange = [30, 50, 30];
_global.stage.level = 0;
_global.stage.game.moving = false;
_global.stage.game.happy = 1;
_global.stage.game.watered = 2;
_global.stage.game.poop = 3;
_global.stage.game.angry = 4;
_global.stage.game.hungry = 5;
_global.stage.game.sleepy = 6;
_global.stage.game.toy = 7;
_global.stage.game.vomited = 8;
_global.stage.game.upside = 9;
_global.stage.game.horse = 10;
_global.stage.game.carryNothing = 0;
_global.stage.game.carryBaby = 1;
_global.stage.game.carryFood = 2;
_global.stage.game.carryToy = 3;
_global.stage.game.carry_towel = 4;
_global.stage.game.timeNeeded = 20;
_global.stage.game.poopCount = 0;
_global.stage.game.vomitedCount = 0;
_global.stage.game.wateredCount = 0;
_global.stage.babies[i].now = getTimer;
_global.stage.clownClicked = false;
_global.path.exitBabies = 0;
_global.stage.game.babiesInBedroom = 0;
_global.stage.clownFinished = false;
_global.stage.nowComingClown = false;
_global.stage.clownAttach = false;
_global.stage.levelHappinessOld = 100;
_global.stage.game.clownAnim = new Object();
_global.soundFlag = false;
_global.soundFlag1 = false;
_global.path.endGame = false;
_global.stage.game.needFlag = false;
_global.stage.game.randomFlag = false;
_global.stage.game.lastNeed = "";
_global.stage.game.anyClown = false;
_global.stage.game.firstClown = false;
_global.stage.game.tutorialBabyOut = false;
_global.stage.game.klikniFood = false;
_global.stage.game.babyFromDoor = false;
_global.stage.game.spiePopup = false;
frame = 100;
zemenoVreme = false;
mamaPopUpFlag = false;
bebyPutTutorial = false;
}
function pushInArray(ob) {
trace("pushInArray");
var _local2 = false;
_global.stage.game.invalidState = false;
if (_global.stage.game.ClickArray.length >= 1) {
var _local4 = _global.stage.game.ClickArray.length - 1;
if (_global.stage.game.ClickArray[_local4] == ob) {
trace("ist klik kako prethodniot");
_local2 = true;
}
} else if (_global.stage.girl.ActionObject == ob) {
trace("ist klik kako toj sto se izvrsuva");
_global.stage.game.invalidState = true;
}
if (_local2 != true) {
_global.stage.game.ClickArray.push(ob);
if (_global.count < 9) {
trace("zgolemuvam broj");
_global.count++;
} else {
_global.count = 1;
}
}
}
function ShiftStars() {
if (_global.stage.girl.ActionObject.ID == _global.stage.door.ID) {
trace("sega e vrata");
if (_global.stage.game.stars[1].num.text == "1") {
_global.stage.game.stars[1].gotoAndPlay("fade_out");
}
} else {
_global.stage.game.stars[1].gotoAndPlay("fade_out");
}
var _local2 = 2;
while (_local2 <= _global.stage.game.stars.length) {
_global.stage.game.stars[_local2 - 1] = _global.stage.game.stars[_local2];
if ((_global.stage.game.stars[_local2 - 1].num.text - 1) > 0) {
_global.stage.game.stars[_local2 - 1].num.text = _global.stage.game.stars[_local2 - 1].num.text - 1;
} else {
_global.stage.game.stars[_local2 - 1].num.text = "1";
}
_local2++;
}
}
function BeginDay() {
if (((((((_global.path.KitchenType == 3) && (_global.path.BedroomType == 3)) && (_global.path.ReceptionsType == 3)) && (_global.path.bed.level3 == 6)) && (_global.path.chair.level3 == 4)) && (_global.path.box.level3 == 3)) && (_global.path.horse.level3 == 4)) {
_global.path.winDayCount = _global.path.winDayCount + 1;
}
_global.opened = false;
_global.stage.game.babiesInRoom = undefined;
_global.stage.bottle.clip = undefined;
_global.cukaSaat = false;
_global.pause = false;
flagBang = false;
_global.music[1].stop();
_global.music[0].start(0, 32768);
_global.music[0].setVolume(_global.tempBarMusic);
_global.stage.game.stopFlagce = false;
_global.stage.game.stopFlag = false;
_global.stage.game.tutorialBabyOut = false;
_global.babySong = false;
_global.stage.game.maxLevelBabies = _global.path.dayBabiesNum;
_global.path.Time = 120000 + ((_global.stage.game.maxLevelBabies - 2) * 20000);
_global.stage.game.Time = _global.path.Time;
cekor = _global.stage.game.Time / 480;
_global.stage.clock[0].clip.small._rotation = _global.stage.clock[0].clip.small._rotation + 330;
if (_global.path.tutorialDay == false) {
unusablePopUp();
switch ((_global.dayCount % 5) + 1) {
case 0 :
_global.stage.calendar.clip.currentDay.text = "Fri";
break;
case 1 :
_global.stage.calendar.clip.currentDay.text = "Mon";
break;
case 2 :
_global.stage.calendar.clip.currentDay.text = "Tue";
break;
case 3 :
_global.stage.calendar.clip.currentDay.text = "Wed";
break;
case 4 :
_global.stage.calendar.clip.currentDay.text = "Thu";
break;
case 5 :
_global.stage.calendar.clip.currentDay.text = "Fri";
break;
default :
_global.stage.calendar.clip.currentDay.text = "";
}
_global.stage.calendar.clip.CurrentWeek.text = Math.floor((_global.dayCount / 5) + 1);
if (_global.dayCount == 0) {
_global.needsNum = 2;
_global.path.needNumber = 6;
} else if (_global.dayCount == 1) {
_global.path.needNumber = 8;
} else if (_global.dayCount == 2) {
_global.path.needNumber = 8;
} else if (_global.dayCount >= 3) {
if (((_global.path.horse.level1 > 0) || (_global.path.horse.level2 > 0)) || (_global.path.horse.level3 > 0)) {
_global.path.needNumber = 10;
} else {
_global.path.needNumber = 9;
}
}
} else {
_global.stage.calendar.clip.currentDay.text = "";
_global.stage.calendar.clip.CurrentWeek.text = "";
_global.stage.calendar.clip.week.text = "Tutorial";
}
_global.stage.levelHappiness = 100;
var _local3 = 1;
while (_local3 < _global.stage.game.babiesInRoom) {
_global.stage.babies[_local3].removeClip();
_local3++;
}
for (_local3 in _global.path.levelBabies) {
_global.path.levelBabies[_local3].babyOut = false;
_global.path.levelBabies[_local3].today = false;
}
_global.stage.game.flagPopup = false;
_global.stage.game.ClickArray.splice(0, _global.stage.game.ClickArray.length);
_global.stage.babies.splice(0, _global.stage.babies.length);
_global.stage.game.Upgrades.splice(0, _global.stage.Upgrades.length);
_global.stage.game.babiesInRoom = 0;
_global.stage.game.stoped = true;
_global.stage.game.now = getTimer();
_global.stage.game.timeNeeded = 5;
_global.count = 1;
_global.stage.game.clock = getTimer();
_global.stage.game.endDay = getTimer();
_global.stage.game.hour = 8;
_global.stage.game.clock[1].saati_digi = "08";
_global.stage.game.clock[1].minuti_digi = "00";
_global.stage.game.mins = 1;
_global.stage.game.RedMeterValue();
_global.stage.game.GreenMeterValue();
_global.stage.game.initializeLevel();
_global.stage.game.baby_counter_mc.baby_count = 0;
_global.stage.game.doorOpen = false;
_global.stage.game.BabyOnDoor = false;
_global.stage.game.babiesOut = false;
_global.path.fWeek = false;
_global.stage.timeForLeaving = false;
_global.stage.flagBoxFront = false;
_global.popUpSleepyFlag = false;
_global.stage.girl.flagFM = false;
_global.stage.game.pauziranoVreme = 0;
_global.stage.game.PopUpRalika = 0;
dodatok = _global.path.SecretaryType * 10000;
leftTime = 30000 + dodatok;
flagForDigiClock = false;
pomArray = new Array();
r = 0;
_global.needBabyNumber = 0;
}
function changelevelHappiness() {
if (_global.stage.levelHappiness > 100) {
_global.stage.levelHappiness = 100;
}
if (_global.stage.levelHappiness < 0) {
_global.stage.levelHappiness = 0;
}
if (((_global.stage.levelHappiness >= 0) && (_global.stage.levelHappiness <= 100)) && (_global.stage.game.babiesInRoom > 0)) {
var _local4 = 0;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
_local4 = _local4 + _global.stage.babies[_local3].happiness;
_local3++;
}
_global.stage.levelHappiness = Math.round(_local4 / _global.stage.game.babiesInRoom);
happinesCounter = happinesCounter + 1;
_global.stage.levelHappinessOld = _global.stage.levelHappinessOld + _global.stage.levelHappiness;
_global.stage.levelHappiness = _global.stage.levelHappinessOld / happinesCounter;
frame = Math.round(_global.stage.levelHappiness);
_global.stage.srca.clip.gotoAndStop(100 - frame);
}
}
function RedMeterValue() {
if (_global.stage.levelHappiness > (_global.stage.heartsRange[0] + _global.stage.heartsRange[1])) {
if (Math.floor(_global.stage.accomodation / 10) == Math.floor(_global.stage.popularity / 10)) {
_global.stage.accomodation = _global.stage.popularity;
} else {
_global.stage.accomodation = Math.floor(_global.stage.popularity / 10) * 10;
}
} else {
var _local2 = (_global.stage.heartsRange[1] - ((_global.stage.heartsRange[0] + _global.stage.heartsRange[1]) - _global.stage.levelHappiness)) / _global.stage.heartsRange[1];
_global.stage.accomodation = _global.stage.accomodation * _local2;
}
_global.stage.meter_mc.redM._y = _global.stage.meter_mc.redM._y - (0.7 * _global.stage.accomodation);
}
function GreenMeterValue() {
var _local3 = 0;
while (_local3 < _global.stage.Upgrades.length) {
upgrades = upgrades + _global.stage.Upgrades[_local3].value;
_local3++;
}
_global.stage.popularity = _global.stage.popularity + ((_global.stage.upgrades / _global.stage.sumOfAllPricesPerLevel) * 20);
_global.stage.meter_mc.greenM._y = _global.stage.meter_mc.greenM._y - (0.7 * _global.stage.popularity);
}
function chooseBabyClipIndex() {
if (chooseFromArray == false) {
var _local8 = Math.floor(Math.random() * 12) + 1;
var _local6 = true;
while (_local6) {
var _local5 = false;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
var _local4 = Number(_global.stage.babies[_local3].clipIndex);
if (_local8 == _local4) {
_local5 = true;
break;
}
_local3++;
}
if (_local5 == false) {
_local6 = false;
break;
}
_local8 = Math.floor(Math.random() * 12) + 1;
}
return(_local8.toString());
}
k = Math.floor(Math.random() * _global.path.pomLevelBabies.length);
var _local6 = true;
while (_local6) {
var _local5 = false;
var _local3 = 0;
while (_local3 <= pomArray.length) {
if (k == pomArray[_local3]) {
_local5 = true;
break;
}
_local3++;
}
if (_local5 == false) {
_local6 = false;
break;
}
k = Math.floor(Math.random() * _global.path.pomLevelBabies.length);
}
pomArray.push(k);
var _local7 = _global.path.pomLevelBabies[k];
var _local8 = _local7.clipIndex;
return(_local8);
}
function clickedObject(x, y) {
var _local3 = false;
if (_global.pausePress == false) {
if (_global.path.tutorialDay == false) {
if (_global.stage.prekidac.clip.hitTest(x, y, true)) {
if (_global.stage.game.stopFlag == false) {
_global.StartPauseTime = getTimer();
_global.pauseTakeTime = true;
}
_global.pause = true;
_global.pausePress = true;
var _local6 = 0;
while (_local6 <= _global.stage.game.babiesInRoom) {
_global.stage.babies[_local6].stopBabyCrying();
_local6++;
}
_global.path.sound.stopMusic("baby_song");
_global.path.sound.stopMusic("clock_bang");
_global.path.timer.Pause();
}
}
if (_global.stage.game.ClickArray.length < clickNum) {
if ((_global.stage.clown.clip.hitTest(x, y, true) && (_global.stage.clownClicked == false)) && (_global.stage.game.BabyOnDoor == false)) {
if (_global.path.ReceptionsType > 0) {
clownflag = true;
_global.path.sound.playSound("Clown_arrive");
clownTime = getTimer();
_global.stage.clownClicked = true;
_global.stage.clownAttach = false;
_global.stage.game.anyClown = true;
_global.stage.game.firstClown = true;
_local3 = true;
} else if ((getTimer() - _global.stage.game.endDay) < (_global.stage.game.Time - 30000)) {
clownflag = true;
_global.path.sound.playSound("Clown_arrive");
clownTime = getTimer();
_global.stage.clownClicked = true;
_global.stage.clownAttach = false;
_global.stage.game.anyClown = true;
_global.stage.game.firstClown = false;
_local3 = true;
} else if (((getTimer() - _global.stage.game.endDay) > (_global.stage.game.Time - 30000)) && ((getTimer() - _global.stage.game.endDay) < (_global.stage.game.Time - 15000))) {
clownflag = true;
_global.path.sound.playSound("Clown_arrive");
clownTime = getTimer();
_global.stage.clownClicked = true;
_global.stage.clownAttach = false;
_global.stage.game.anyClown = false;
_global.stage.game.firstClown = false;
_local3 = true;
}
}
if (_local3 == false) {
var _local5 = 1;
while (_local5 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local5].clip.hitTest(x, y, true)) {
_global.path.sound.playSound("clickOnBaby");
_global.stage.babies[_local5].destx = _global.stage.babies[_local5].clip._x;
_global.stage.babies[_local5].desty = _global.stage.babies[_local5].clip._y;
if (_global.stage.babies[_local5].where.ID == _global.stage.chair[1].ID) {
_global.stage.game.stars[_global.count] = _global.stage.babies[_local5].where.clip.attachMovie("zvezda", "zvezda_chair" + _local6, 18194, {_x:10, _y:30, _xscale:140, _yscale:140});
} else if (_global.stage.babies[_local5].where.ID == _global.stage.bigChair[1].ID) {
var _local4 = 0;
while (_local4 < _global.path.chairNum) {
if (_global.stage.bigChair[_local4] == _global.stage.babies[_local5].where) {
_global.stage.game.stars[_global.count] = _global.stage.bigchairMask[_local4].clip.attachMovie("zvezda", "zvezda_bed" + _local5, 47913, {_x:-60, _y:-60, _xscale:190, _yscale:190});
}
_local4++;
}
} else if (_global.stage.babies[_local5].where.ID == _global.stage.box[1].ID) {
_global.stage.game.stars[_global.count] = _global.stage.babies[_local5].where.clip.attachMovie("zvezda", "zvezda_box" + _local5, 18201, {_x:30, _y:10, _xscale:160, _yscale:160});
} else if (_global.stage.babies[_local5].where.ID == _global.stage.bed[1].ID) {
var _local4 = 0;
while (_local4 < _global.stage.game.bedNum) {
if (_global.stage.bed[_local4] == _global.stage.babies[_local5].where) {
_global.stage.game.stars[_global.count] = _global.stage.bedFront[_local4].clip.attachMovie("zvezda", "zvezda_bed" + _local5, 20550, {_x:0, _y:0, _xscale:160, _yscale:160});
}
_local4++;
}
} else if (_global.stage.babies[_local5].flip == false) {
_global.stage.game.stars[_global.count] = _global.stage.babies[_local5].clip.attachMovie("zvezda", "zvezda_chair" + _local6, 18194, {_x:10, _y:30, _xscale:130, _yscale:130});
} else {
_global.stage.game.stars[_global.count] = _global.stage.babies[_local5].clip.attachMovie("zvezda", "zvezda_chair" + _local6, 18194, {_x:10, _y:30, _xscale:-130, _yscale:130});
}
if (_global.stage.babies[_local5].where.ID != _global.stage.horse[1].ID) {
if (_global.count <= 8) {
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.babies[_local5]);
}
}
_local3 = true;
break;
}
_local5++;
}
}
var _local6 = 0;
while (_local6 < _global.stage.game.chairNum) {
_global.path.sound.playSound("clickOnObject");
if (_global.stage.chair[_local6].clip.object.hitTest(x, y, true) && (_local3 == false)) {
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.chair[_local6].clip.attachMovie("zvezda", "zvezda_chair" + _local6, 18194, {_x:10, _y:30, _xscale:140, _yscale:140});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.chair[_local6]);
}
_local3 = true;
break;
}
_local6++;
}
var _local5 = 0;
while (_local5 < _global.stage.game.bedNum) {
_global.path.sound.playSound("clickOnObject");
if (_global.stage.bed[_local5].clip.object.hitTest(x, y, true) && (_local3 == false)) {
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.bedFront[_local5].clip.attachMovie("zvezda", "zvezda_bed" + _local5, 20550, {_x:0, _y:0, _xscale:160, _yscale:160});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.bed[_local5]);
}
_local3 = true;
break;
}
_local5++;
}
_local5 = _global.path.horseNumber - 1;
while (_local5 >= 0) {
_global.path.sound.playSound("clickOnObject");
if (((_global.stage.horse[_local5].clip.horse.movie.object.hitTest(x, y, true) || (_global.stage.horse[_local5].clip.beby.hitTest(x, y, true))) || (_global.stage.horse[_local5].clip.horse.object.hitTest(x, y, true))) && (_local3 == false)) {
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.horse[_local5].clip.attachMovie("zvezda", "zvezda_bed" + _local5, 47913, {_x:30, _y:20, _xscale:190, _yscale:190});
if ((_global.stage.horse[_local5].xscale == -100) || (_global.stage.horse[_local5].xscale == -114.7)) {
_global.stage.game.stars[_global.count]._xscale = -190;
_global.stage.game.stars[_global.count]._x = _global.stage.game.stars[_global.count]._x + 20;
}
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.horse[_local5]);
}
_local3 = true;
break;
}
_local5--;
}
_local5 = 6;
while (_local5 >= 0) {
if (_global.stage.carpet[_local5].clip.hitTest(x, y, true) && (_local3 == false)) {
_global.path.sound.playSound("clickOnObject");
if (!_global.stage.carpet[_local5].Baby) {
var _local13 = {x:_xmouse, y:_ymouse};
_global.stage.carpet[_local5].clip.globalToLocal(_local13);
if (_global.count <= 8) {
if ((_local5 > 2) && (_local5 != 5)) {
_global.stage.game.stars[_global.count] = _global.stage.carpet[_local5].clip.attachMovie("zvezda", "zvezda_carpet" + _local5, 60991, {_x:50, _y:20});
_global.stage.game.stars[_global.count].num.text = _global.count;
} else if (_local5 == 5) {
_global.stage.game.stars[_global.count] = _global.stage.carpet[_local5].clip.attachMovie("zvezda", "zvezda_carpet" + _local5, 60991, {_x:0, _y:20});
_global.stage.game.stars[_global.count].num.text = _global.count;
} else {
_global.stage.game.stars[_global.count] = _global.stage.carpet[_local5].clip.attachMovie("zvezda", "zvezda_carpet" + _local5, 60991, {_x:30, _y:55});
_global.stage.game.stars[_global.count].num.text = _global.count;
}
pushInArray(_global.stage.carpet[_local5]);
}
_local3 = true;
break;
}
}
_local5--;
}
_local5 = 0;
while (_local5 < _global.stage.game.toyNum) {
_global.path.sound.playSound("clickOnObject");
if (_global.stage.toy[_local5].clip.hitTest(x, y, true) && (_local3 == false)) {
var _local13 = {x:_xmouse, y:_ymouse};
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.toy_boxes[1].clip.attachMovie("zvezda", "zvezda_toy" + _local5, 29680, {_x:5, _y:10, _xscale:200, _yscale:200});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.toy[_local5]);
}
_local3 = true;
break;
}
_local5++;
}
if ((_global.stage.toy_boxes[1].clip.hitTest(x, y, true) || (_global.stage.toy_boxes[2].clip.hitTest(x, y, true))) && (_local3 == false)) {
_global.path.sound.playSound("clickOnObject");
var _local13 = {x:_xmouse, y:_ymouse};
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.toy_boxes[1].clip.attachMovie("zvezda", "zvezda_bottle", 58641, {_x:0, _y:0, _xscale:200, _yscale:200});
_global.stage.game.stars[_global.count].num.text = _global.count;
_local6 = Math.floor(Math.random() * 12) + 1;
pushInArray(_global.stage.toy[_local6]);
}
_local3 = true;
}
if (_global.stage.bottle.clip.hitTest(x, y, true) && (_local3 == false)) {
_global.path.sound.playSound("clickOnObject");
var _local13 = {x:_xmouse, y:_ymouse};
_global.stage.bottle.clip.globalToLocal(_local13);
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.bottle.clip.attachMovie("zvezda", "zvezda_bottle", 58601, {_x:0, _y:0, _xscale:700, _yscale:700});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.bottle);
}
_local3 = true;
}
if (_global.stage.towel.clip.object.hitTest(x, y, true) && (_local3 == false)) {
if (_global.stage.clownAttach == false) {
_local6 = 1;
while (_local6 < _global.stage.game.babiesInRoom) {
_local6++;
}
_global.path.sound.playSound("clickOnObject");
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.towel.clip.attachMovie("zvezda", "zvezda_towel", 17051, {_x:0, _y:0});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.towel);
}
_local3 = true;
} else {
_global.stage.game.stars[_global.count] = _global.stage.towel.clip.attachMovie("zvezda", "zvezda_towel", 17051, {_x:0, _y:0});
_global.stage.game.invalidState = true;
}
}
if (_global.stage.trash.clip.object.hitTest(x, y, true) && (_local3 == false)) {
if (_global.stage.clownAttach == false) {
_global.path.sound.playSound("clickOnObject");
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.trash.clip.attachMovie("zvezda", "zvezda_trash", 17407, {_x:0, _y:0, _xscale:160, _yscale:160});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.trash);
}
_local3 = true;
} else {
_global.stage.game.stars[_global.count] = _global.stage.trash.clip.attachMovie("zvezda", "zvezda_trash", 17407, {_x:0, _y:0, _xscale:160, _yscale:160});
_global.stage.game.invalidState = true;
}
}
if (_global.stage.trash2.clip.hitTest(x, y, true) && (_local3 == false)) {
_global.path.sound.playSound("clickOnObject");
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.trash2.clip.attachMovie("zvezda", "zvezda_trash", 17407, {_x:10, _y:0, _xscale:160, _yscale:160});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.trash2);
}
_local3 = true;
}
if (_global.stage.foodMaker.clip.hitTest(x, y, true) && (_local3 == false)) {
_global.path.sound.playSound("clickOnObject");
_global.stage.posledenClick = _global.stage.foodMaker;
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.foodMaker.clip.attachMovie("zvezda", "zvezda_foodMaker", 17631, {_x:0, _y:0, _xscale:360, _yscale:360});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.foodMaker);
}
_local3 = true;
}
if (_global.stage.kitchen.clip.hitTest(x, y, true) && (_local3 == false)) {
_global.path.sound.playSound("clickOnObject");
_global.stage.posledenClick = _global.stage.kitchen;
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.kitchen.clip.attachMovie("zvezda", "zvezda_foodMaker", 17631, {_x:0, _y:0, _xscale:160, _yscale:160});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.kitchen);
}
_local3 = true;
}
if (_global.stage.diperTable.clip.object.hitTest(x, y, true) && (_local3 == false)) {
_global.path.sound.playSound("clickOnObject");
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.diperTable.clip.attachMovie("zvezda", "zvezda_diperTable", 16901, {_x:10, _y:30, _xscale:160, _yscale:160});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.diperTable);
}
_local3 = true;
}
if (_global.stage.bath.clip.object.hitTest(x, y, true) && (_local3 == false)) {
_global.path.sound.playSound("clickOnObject");
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.bath.clip.attachMovie("zvezda", "zvezda_bath", 17101, {_x:0, _y:0, _xscale:160, _yscale:160});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.bath);
}
_local3 = true;
}
_local5 = 0;
while (_local5 <= _global.stage.game.boxNum) {
if (((_global.stage.box[_local5].clip.hitTest(x, y, true) && (_local3 == false)) || (_global.stage.boxover[_local5].hitTest(x, y, true) && (_local3 == false))) || (_global.stage.boxFront.hitTest(x, y, true) && (_local3 == false))) {
_global.path.sound.playSound("clickOnObject");
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.box[_local5].clip.attachMovie("zvezda", "zvezda_box" + _local5, 18201, {_x:30, _y:10, _xscale:160, _yscale:160});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.box[_local5]);
}
_local3 = true;
break;
}
_local5++;
}
_local5 = _global.path.bigChairNumber - 1;
while (_local5 >= 0) {
_global.path.sound.playSound("clickOnObject");
if ((_global.stage.bigChair[_local5].clip.object.hitTest(x, y, true) && (_local3 == false)) || (_global.stage.bigChairMask[_local5].clip.hitTest(x, y, true) && (_local3 == false))) {
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.bigchairMask[_local5].clip.attachMovie("zvezda", "zvezda_bed" + _local5, 47913, {_x:-60, _y:-60, _xscale:190, _yscale:190});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.bigChair[_local5]);
}
_local3 = true;
break;
}
_local5--;
}
if ((_global.stage.door.clip.hitTest(x, y, true) && (_local3 == false)) && (_global.stage.clownClicked == false)) {
_global.path.sound.playSound("clickOnObject");
var _local13 = {x:_xmouse, y:_ymouse};
_global.stage.door.clip.globalToLocal(_local13);
if (_global.stage.door.Baby == undefined) {
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.door.clip.attachMovie("zvezda", "zvezda_box" + _local5, 17001, {_x:_local13.x, _y:_local13.y, _xscale:160, _yscale:160});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.door);
}
} else if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.door.clip.attachMovie("zvezda", "zvezda_box" + _local5, 17001, {_x:_local13.x, _y:_local13.y, _xscale:160, _yscale:160});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.door.Baby);
}
_local3 = true;
}
_local5 = _global.path.bigChairNumber - 1;
while (_local5 >= 0) {
_global.path.sound.playSound("clickOnObject");
if (_global.stage.bigChair[_local5].clip.hitTest(x, y, true) && (_local3 == false)) {
if (_global.stage.bigChair[_local5].Baby == undefined) {
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.bigChair[_local5].clip.attachMovie("zvezda", "zvezda_bed" + _local5, 47913, {_x:-60, _y:-60, _xscale:160, _yscale:160});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.bigChair[_local5]);
}
} else if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.bigChair[_local5].clip.attachMovie("zvezda", "zvezda_bed" + _local5, 47913, {_x:-60, _y:-60, _xscale:160, _yscale:160});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.bigChair[_local5].Baby);
}
_local3 = true;
break;
}
_local5--;
}
_local5 = 5;
while (_local5 >= 0) {
if (_global.stage.panelButton[_local5].clip.hitTest(x, y, true) && (_local3 == false)) {
if (_global.count <= 8) {
_global.stage.game.stars[_global.count] = _global.stage.bedroomDoor.clip.attachMovie("zvezda", "zvezda_bed" + _local5, 27913, {_x:10, _y:80});
_global.stage.game.stars[_global.count].num.text = _global.count;
pushInArray(_global.stage.panelButton[_local5]);
}
_local3 = true;
break;
}
_local5--;
}
}
}
}
function newDay() {
var _local25 = getTimer();
if (flagce == false) {
BeginDay();
}
clownComing();
flagce = true;
var _local8 = 0;
if (_global.path.socialRating == 0) {
var _local3 = 0;
while (_local3 < _global.path.yourItems.length) {
_local8 = _local8 + _global.path.yourItems[_local3].socialRating;
_local3++;
}
if (Math.round(_local8 / 100) > _global.path.socialRating2) {
_global.path.socialRating = _global.path.socialRating + Math.round(_local8 / 100);
} else {
_global.path.socialRating = _global.path.socialRating2;
}
_global.path.LoadSpeed = (((_global.path.socialRating - minRating) * (maxLoad - minLoad)) / (maxRating - minRating)) + minLoad;
_global.path.UnloadSpeed = maxUnload - (((_global.path.socialRating - minRating) * (maxUnload - minUnload)) / (maxRating - minRating));
}
if (((_global.stage.game.ClickArray.length > 0) && (_global.stage.game.moving == false)) && (_global.stage.girl.Animation == false)) {
_global.stage.game.moving = true;
_global.stage.girl.canMove = true;
var _local4 = _global.stage.game.ClickArray.shift();
_global.stage.game.pomestiClown = false;
_global.stage.game.scaleObject = _local4;
_global.stage.game.MaxScale = FindMaxScale();
if ((((_local4.ID == _global.stage.bed[0].ID) || (_local4.ID == _global.stage.chair[0].ID)) || (_local4.ID == _global.stage.box[0].ID)) || (_local4.ID == _global.stage.bigChair[0].ID)) {
if (_local4.Baby != undefined) {
_local4 = _local4.Baby;
}
}
var _local9 = {x:0, y:0};
if (((((_local4.ID == _global.stage.babies[1].ID) && (_local4.where.ID == _global.stage.bed[0].ID)) || ((_local4.ID == _global.stage.babies[1].ID) && (_local4.where.ID == _global.stage.carpet[0].ID))) || ((_local4.ID == _global.stage.babies[1].ID) && (_local4.where.ID == _global.stage.box[0].ID))) || ((((_local4.ID == _global.stage.babies[1].ID) && (_local4.where.ID == _global.stage.chair[1].ID)) || ((_local4.ID == _global.stage.babies[1].ID) && (_local4.where.ID == _global.stage.bigChair[1].ID))) || ((_local4.ID == _global.stage.babies[1].ID) && (_local4.where.ID == _global.stage.door.ID)))) {
_local9.x = _local4.where.destx;
_local9.y = _local4.where.desty;
} else {
_local9.x = _local4.destx;
_local9.y = _local4.desty;
}
var _local27 = Math.ceil(_local4.destx / 40);
var _local26 = Math.ceil(_local4.desty / 40);
if ((_global.stage.girl.cellx == _local9.x) && (_global.stage.girl.celly == _local9.y)) {
_global.stage.girl.ActionObject = _local4;
_global.stage.girl.doAction();
} else {
_global.stage.girl.ActionObject = _local4;
_global.stage.girl.Walk(_local9);
stoped = false;
}
}
if ((((_global.stage.girl.canMove == false) && (stoped == false)) && (_global.stage.game.ClickArray.length == 0)) && (_global.stage.girl.Animation == false)) {
stoped = true;
_global.stage.girl.standBabySitter();
}
if (_global.stage.bed4._visible) {
}
if (_global.path.tutorialDay == false) {
var _local13 = getTimer() - _global.stage.game.endDay;
if ((((_local13 >= (_global.stage.game.Time - 30000)) && (_global.path.ReceptionsType > 0)) && (clownFading == false)) && (_global.stage.game.stopFlag == false)) {
if (_global.path.clown == true) {
clownFading = true;
_global.stage.clown.clip.gotoAndPlay("fadeOut");
}
}
if ((((_local13 >= (_global.stage.game.Time - 15000)) && (_global.path.ReceptionsType == 0)) && (clownFading == false)) && (_global.stage.game.stopFlag == false)) {
if (_global.path.clown == true) {
clownFading = true;
_global.stage.clown.clip.gotoAndPlay("fadeOut");
}
}
if (((_local13 >= (_global.stage.game.Time - 5000)) && (flagBang == false)) && (_global.stage.game.stopFlag == false)) {
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].where.ID == _global.stage.door.ID) {
for (var _local7 in _global.path.levelBabies) {
if (_global.path.levelBabies[_local7].clipIndex == _global.stage.babies[_local3].clipIndex) {
_global.path.levelBabies[_local7].today = false;
break;
}
}
if (_global.stage.babies[_local3].clip) {
_global.stage.babies[_local3].clip.removeMovieClip();
_global.stage.babies[_local3].hearts.removeMovieClip();
_global.stage.babies[_local3].clip = undefined;
_global.stage.door.Baby = undefined;
}
_global.stage.game.babiesInRoom--;
break;
}
_local3++;
}
flagBang = true;
_global.path.sound.playMusic("clock_bang");
_global.cukaSaat = true;
}
if (((_local13 > _global.stage.game.Time) && (_global.stage.game.EndDay == false)) && (_global.stage.game.stopFlag == false)) {
_global.stage.timeForLeaving = true;
if (takeTime == false) {
_global.stage.game.endLeavingTime = getTimer();
_global.bebiForHome = 0;
takeTime = true;
_global.stage.game.babiesOut = true;
_global.stage.door.opened = true;
}
_global.path.sound.stopMusic("clock_bang");
_global.cukaSaat = false;
var _local14 = getTimer();
if ((((_local14 - _global.stage.game.endLeavingTime) <= leftTime) && (takeTime == true)) && (_global.stage.game.stopFlag == false)) {
if ((timeFlag == true) && (_global.stage.game.stopFlagce == false)) {
_global.stage.clock[0].clip.big._rotation = _global.stage.clock[0].clip.big._rotation + 12;
_global.stage.game.stopFlagce = true;
}
if ((((_local14 - _global.stage.game.endLeavingTime) >= dodatok) && (flagForDigiClock == false)) && (_global.stage.game.stopFlag == false)) {
flagForDigiClock = true;
var _local22 = " ";
_global.stage.clock[1].clip.saati_digi = _local22;
minutki = "30";
_global.stage.clock[1].clip.minuti_digi = minutki;
var _local15 = _depth.getDepth(_global.stage.clock[1]);
_global.stage.clock[1].clip = _global.stage.attachMovie("digi_clock", "digiClock", _local15, {_x:_global.stage.clock[1].x, _y:_global.stage.clock[1].y, _rotation:_global.stage.clock[1].rot, _xscale:_global.stage.clock[1].xscale, _yscale:_global.stage.clock[1].yscale});
_global.stage.game.digiClockTime = getTimer();
}
timeFlag = false;
if ((((_local14 - _global.stage.game.digiClockTime) > (min * 1000)) && (flagForDigiClock == true)) && (_global.stage.game.stopFlag == false)) {
min++;
_global.stage.clock[1].clip.saati_digi = _local22;
minutki = minute.toString();
_global.stage.clock[1].clip.minuti_digi = minutki;
minute--;
}
if (_global.path.levelBabies[_global.bebiForHome].today == true) {
var _local11 = _global.path.levelBabies[_global.bebiForHome].clipIndex;
var _local3 = 0;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == _local11) {
_global.stage.babies[_local3].eatMeal = false;
_global.stage.babies[_local3].eat = false;
_global.stage.babies[_local3].where.meal = false;
_global.stage.babies[_local3].meall = false;
_global.stage.babies[_local3].where.meall = false;
_global.stage.babies[_local3].toy = false;
_global.stage.babies[_local3].sleeping = false;
if (_global.stage.babies[_local3].flagForHome == false) {
_global.stage.babies[_local3].l = _global.stage.babies[_local3].l + 5;
_global.stage.babies[_local3].setNeed(_global.stage.game.happy);
_global.stage.babies[_local3].addHappiness(_global.stage.babies[_local3].l);
if (_global.stage.babies[_local3].l == 10) {
_global.stage.babies[_local3].flagForHome = true;
_global.stage.babies[_local3].eat = false;
_global.stage.babies[_local3].eatMeal = false;
_global.stage.babies[_local3].where.meal = false;
_global.stage.babies[_local3].meall = false;
_global.stage.babies[_local3].where.meall = false;
_global.stage.babies[_local3].toy = false;
_global.stage.babies[_local3].sleeping = false;
_global.stage.kitchenWindow.clip.gotoAndStop("prv");
_global.stage.kitchenWindow.clip.kichenWindow.gotoAndStop(_global.path.KitchenType);
}
}
_global.stage.babies[_local3].clip.gotoAndStop("b" + _local11);
if (_global.stage.babies[_local3].doorFlag == false) {
_global.stage.babies[_local3].doorFlag = true;
_global.path.sound.playSound("doorBell");
_global.stage.door.clip.dor_Dor.gotoAndPlay("senka");
_global.path.sound.playSound("mama");
_global.stage.babies[_local3].stopBabyCrying();
_global.path.sound.stopMusic("babyDrinking");
_global.path.sound.stopMusic("baby_song");
_global.path.sound.stopMusic("baby_song");
_global.stage.babies[_local3].eatMeal = false;
_global.stage.babies[_local3].eat = false;
_global.stage.babies[_local3].where.meal = false;
_global.stage.babies[_local3].meall = false;
_global.stage.babies[_local3].where.meall = false;
_global.stage.babies[_local3].toy = false;
_global.stage.babies[_local3].sleeping = false;
if (_global.stage.babies[_local3].where.ID == _global.stage.panelButton[0].ID) {
_global.stage.babies[_local3].where.clip.bedButton.gotoAndStop(3);
_global.stage.babies[_local3].where.babySleep = false;
_global.stage.babies[_local3].setNeed(_global.stage.game.happy);
}
}
if (_global.stage.babies[_local3].where.ID == _global.stage.box[0].ID) {
_global.stage.babies[_local3].flip = true;
}
if (_global.stage.babies[_local3].moveMama == false) {
if (_global.stage.babies[_local3].flip == true) {
_global.stage.babies[_local3].clip["b" + _local11].gotoAndStop("mama1");
if (_global.stage.babies[_local3].where.ID == _global.stage.box[0].ID) {
_global.stage.babies[_local3].clip["b" + _local11].mama_cloud._xscale = -113.8;
_global.stage.babies[_local3].clip["b" + _local11].mama_cloud._x = -10;
}
if (_global.stage.babies[_local3].where.ID == _global.stage.carpet[0].ID) {
_global.stage.babies[_local3].clip["b" + _local11].gotoAndStop("mama");
_global.stage.babies[_local3].clip["b" + _local11].mama_cloud._xscale = -113.8;
_global.stage.babies[_local3].clip["b" + _local11].mama_cloud._x = -10;
}
if (_global.stage.babies[_local3].where.ID == _global.stage.horse[0].ID) {
_global.stage.babies[_local3].where.clip.beby.gotoAndStop("mama");
if ((_global.stage.babies[_local3].where.xscale == -100) || (_global.stage.babies[_local3].where.xscale == -114.7)) {
_global.stage.babies[_local3].where.clip.beby.mama_cloud.mama._xscale = -100;
_global.stage.babies[_local3].where.clip.beby.mama_cloud.mama._x = _global.stage.babies[_local3].where.clip.beby.mama_cloud.mama._x + 115;
_global.stage.babies[_local3].moveMama = true;
}
_global.stage.babies[_local3].where.clip.horse.movie.gotoAndStop(1);
_global.stage.babies[_local3].clip["b" + _local11].anim._visible = false;
}
}
}
if (_global.stage.babies[_local3].moveMama == false) {
if (_global.stage.babies[_local3].flip == false) {
_global.stage.babies[_local3].clip["b" + _local11].gotoAndStop("mama");
if (_global.stage.babies[_local3].where.ID == _global.stage.box[0].ID) {
_global.stage.babies[_local3].clip["b" + _local11].mama_cloud._xscale = -113.8;
_global.stage.babies[_local3].clip["b" + _local11].mama_cloud._x = -10;
}
if (_global.stage.babies[_local3].where.ID == _global.stage.horse[0].ID) {
_global.stage.babies[_local3].where.clip.beby.gotoAndStop("mama");
if ((_global.stage.babies[_local3].where.xscale == -100) || (_global.stage.babies[_local3].where.xscale == -114.7)) {
_global.stage.babies[_local3].where.clip.beby.mama_cloud.mama._xscale = -100;
_global.stage.babies[_local3].where.clip.beby.mama_cloud.mama._x = _global.stage.babies[_local3].where.clip.beby.mama_cloud.mama._x + 115;
_global.stage.babies[_local3].moveMama = true;
}
_global.stage.babies[_local3].where.clip.horse.movie.gotoAndStop(1);
_global.stage.babies[_local3].clip["b" + _local11].anim._visible = false;
}
}
}
if (mamaPopUpFlag == false) {
_global.path.currentMovie = _global.stage.door.clip;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
_global.path.currentPopUp = 6;
if (_global.path.tutorialDay == true) {
_global.path.helpTips[6].showPopUp();
}
mamaPopUpFlag = true;
}
break;
}
_local3++;
}
_global.stage.babies[_local3].flagMama = true;
_global.path.levelBabies[_global.bebiForHome].flagMama = true;
} else {
_global.bebiForHome++;
}
} else {
nowDailyScreen = true;
_global.stage.girl.Animation = false;
_global.stage.girl.canMove = false;
}
if ((((_global.stage.girl.canMove == false) && (_global.stage.girl.Animation == false)) && (nowDailyScreen == true)) || (_global.path.exitBabies == _global.stage.game.babiesInRoom)) {
_global.path.sound.stopMusic("babyDrinking");
_global.path.sound.stopMusic("clock_bang");
_global.cukaSaat = false;
_global.path.sound.stopSound("Clown_arrive");
_global.path.sound.stopSound("clown_baloon_klovn1");
_global.path.sound.stopSound("clown_joogle_klovn2");
_global.path.sound.stopSound("clown_cake_klovn3");
_global.path.sound.stopSound("nanny_av_av");
_global.path.sound.stopSound("nanny_nananan");
_global.path.sound.stopSound("food_maker_6sec");
_global.path.sound.stopSound("food_maker_8sec");
_global.path.sound.stopSound("food_maker_10sec");
_global.path.sound.stopMusic("baby_song");
_global.path.sound.stopSound("cleaningVomit");
_global.path.sound.stopSound("bathWaterShort");
_global.path.sound.stopSound("kitchen_10sec");
_global.currentPopUp.shown = 2;
_global.currentPopUp.dettachPopUp();
_global.music[0].stop();
_global.path.sound.stopSound("puls1");
_global.path.sound.stopSound("baby_crying");
_global.path.sound.stopSound("star_puff");
_global.path.pomLevelBabies.splice(0, _global.path.pomLevelBabies.length);
_global.dayCount = _global.dayCount + 1;
_global.stage.game.EndDay = true;
dayFlag = true;
_global.path.levelHappiness = _global.stage.levelHappiness;
if (_global.path.babyDie == false) {
for (var _local3 in _global.path.levelBabies) {
_global.path.endGame = true;
if (_global.path.levelBabies[_local3].babyOut == true) {
_global.path.endGame = false;
break;
}
}
}
if (((_global.path.endGame == true) && (_global.path.babyDie == false)) && (_global.stage.game.stopFlag == false)) {
_global.currentPopUp.shown = 2;
_global.currentPopUp.dettachPopUp();
_global.music[0].stop();
_global.path.sound.stopSound("puls1");
_global.path.sound.stopMusic("babyDrinking");
_global.path.sound.stopMusic("clock_bang");
_global.cukaSaat = false;
_global.path.sound.stopSound("Clown_arrive");
_global.path.sound.stopSound("star_puff");
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
_global.stage.babies[_local3].stopBabyCrying();
_local3++;
}
_global.path.sound.stopSound("clown_baloon_klovn1");
_global.path.sound.stopSound("clown_joogle_klovn2");
_global.path.sound.stopSound("clown_cake_klovn3");
_global.path.sound.stopSound("nanny_av_av");
_global.path.sound.stopSound("nanny_nananan");
_global.path.sound.stopSound("food_maker_6sec");
_global.path.sound.stopSound("food_maker_8sec");
_global.path.sound.stopSound("food_maker_10sec");
_global.path.sound.stopMusic("baby_song");
_global.path.sound.stopSound("cleaningVomit");
_global.path.sound.stopSound("bathWaterShort");
_global.path.sound.stopSound("kitchen_10sec");
_global.music[0].stop();
_global.stage.removeMovieClip();
_global.path.attachMovie("endGame", "endGame", {_x:0, _y:0});
_global.path.sound.playSound("game_over");
} else if ((_global.dayCount % 5) == 0) {
_global.path.fWeek = true;
for (var _local3 in _global.path.levelBabies) {
var _local5 = _global.path.levelBabies[_local3];
_global.path.pomLevelBabies[_local3] = _local5;
}
_global.stage.EndWeek = true;
_global.path.attachMovie("weekend_night_falls", "weekend_night_falls", 4, {_x:399.6, _y:299.8, _xscale:100, _yscale:100});
_global.path.nany = false;
_global.path.clown = false;
_global.path.AssistantBabysitter = false;
_global.path.AssistantCook = false;
_global.stage.removeMovieClip();
} else {
for (var _local3 in _global.path.levelBabies) {
var _local5 = _global.path.levelBabies[_local3];
_global.path.pomLevelBabies[r] = _local5;
r = r + 1;
}
_global.path.attachMovie("night_falls", "night_falls", 4, {_x:399.6, _y:299.8, _xscale:100, _yscale:100});
_global.path.nany = false;
_global.path.clown = false;
_global.path.AssistantBabysitter = false;
_global.path.AssistantCook = false;
_global.stage.removeMovieClip();
}
}
if ((_global.stage.game.EndDay && (dayFlag)) && (_global.stage.game.babiesInRoom == 0)) {
dayFlag = false;
_global.stage.girl.carring = 0;
_global.stage.girl.stopGirl;
_global.stage.game.endDay.gotoAndPlay(2);
}
}
if (((_global.path.endGame == true) && (_global.path.babyDie == true)) && (_global.stage.game.stopFlag == false)) {
_global.music[0].stop();
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
_global.stage.babies[_local3].stopBabyCrying();
_local3++;
}
_global.currentPopUp.shown = 2;
_global.currentPopUp.dettachPopUp();
_global.path.sound.stopSound("clown_baloon_klovn1");
_global.path.sound.stopSound("clown_joogle_klovn2");
_global.path.sound.stopSound("clown_cake_klovn3");
_global.path.sound.stopSound("nanny_av_av");
_global.path.sound.stopSound("nanny_nananan");
_global.path.sound.stopMusic("babyDrinking");
_global.path.sound.stopMusic("clock_bang");
_global.cukaSaat = false;
_global.path.sound.stopSound("Clown_arrive");
_global.path.sound.stopSound("food_maker_6sec");
_global.path.sound.stopSound("food_maker_8sec");
_global.path.sound.stopSound("food_maker_10sec");
_global.path.sound.stopMusic("baby_song");
_global.path.sound.stopSound("cleaningVomit");
_global.path.sound.stopSound("bathWaterShort");
_global.path.sound.stopSound("kitchen_10sec");
_global.music[0].stop();
_global.stage.removeMovieClip();
_global.path.attachMovie("endGame", "endGame", {_x:0, _y:0});
_global.path.sound.playSound("game_over");
_global.path.sound.stopSound("star_puff");
}
if (((((getTimer() - _global.stage.game.clock) > ((cekor * 60000) / 1000)) && (takeTime == false)) && (flagForDigiClock == false)) && (_global.stage.game.stopFlag == false)) {
mins = 0;
hour++;
var _local32;
_local32 = _global.stage.clock[0].clip.clock_mask._rotation;
_global.stage.clock[0].clip.small._rotation = _global.stage.clock[0].clip.small._rotation + 0.5;
if (_global.stage.clock[0].clip.clock_mask1._rotation <= 230) {
_global.stage.clock[0].clip.clock_mask._rotation = _global.stage.clock[0].clip.clock_mask._rotation + 0.5;
}
if (_global.stage.clock[0].clip.clock_mask1._rotation <= 130) {
_global.stage.clock[0].clip.clock_mask1._rotation = _global.stage.clock[0].clip.clock_mask1._rotation + 0.5;
}
if (hour < 10) {
var _local22 = "0" + hour.toString();
_global.stage.clock[1].clip.saati_digi = _local22;
} else if (hour >= 10) {
var _local22 = hour.toString();
_global.stage.clock[1].clip.saati_digi = _local22;
}
_global.stage.game.clock = getTimer();
}
if (((((getTimer() - _global.stage.game.clock) > (mins * cekor)) && (takeTime == false)) && (flagForDigiClock == false)) && (_global.stage.game.stopFlag == false)) {
_global.stage.clock[0].clip.big._rotation = _global.stage.clock[0].clip.big._rotation + 6;
var _local32 = _global.stage.clock[0].clip.clock_mask._rotation;
_global.stage.clock[0].clip.small._rotation = _global.stage.clock[0].clip.small._rotation + 0.5;
_global.stage.clock[0].clip.clock_mask._rotation = _global.stage.clock[0].clip.clock_mask._rotation + 0.5;
if (_global.stage.clock[0].clip.clock_mask1._rotation <= 120) {
_global.stage.clock[0].clip.clock_mask1._rotation = _global.stage.clock[0].clip.clock_mask1._rotation + 0.5;
}
if (mins < 10) {
var _local23 = "0" + mins.toString();
_global.stage.clock[1].clip.minuti_digi = _local23;
} else {
_global.stage.clock[1].clip.minuti_digi = mins;
}
if (((_global.stage.game.EndDay && ((mins % 5) == 0)) && (!_global.stage.door.opened)) && (_global.stage.game.babiesInRoom > 0)) {
}
mins++;
}
var _local17 = getTimer() - _global.stage.game.now;
if (_local17 < (70000 + ((_global.stage.game.maxLevelBabies - 2) * 10000))) {
if ((((((((_local17 > _global.stage.game.timeNeeded) && (_global.stage.game.BabyOnDoor == false)) && (_global.stage.game.babiesInRoom <= _global.stage.game.maxLevelBabies)) && (_global.stage.game.doorOpen == false)) && (fullRoom == false)) && (_global.stage.timeForLeaving == false)) && (_global.stage.clownClicked == false)) && (_global.stage.game.stopFlag == false)) {
_global.path.sound.playSound("doorBell");
_global.stage.game.doorOpen = true;
_global.stage.door.clip.dor_Dor.gotoAndPlay("open");
attached = false;
if (_global.stage.game.babiesInRoom == (_global.stage.game.maxLevelBabies - 1)) {
fullRoom = true;
}
}
} else if (flagForLock == false) {
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].where.ID == _global.stage.door.ID) {
for (var _local7 in _global.path.levelBabies) {
if (_global.path.levelBabies[_local7].clipIndex == _global.stage.babies[_local3].clipIndex) {
_global.path.levelBabies[_local7].today = false;
break;
}
}
if (_global.stage.babies[_local3].clip) {
_global.stage.babies[_local3].clip.removeMovieClip();
_global.stage.babies[_local3].hearts.removeMovieClip();
_global.stage.babies[_local3].clip = undefined;
_global.stage.door.Baby = undefined;
}
_global.stage.game.babiesInRoom--;
break;
}
_local3++;
}
flagForLock = true;
if (_global.stage.clownAttach == false) {
_global.stage.door.clip.dor_Dor.gotoAndStop("close");
}
_global.path.sound.stopSound("puls1");
if (_global.path.tutorialDay == false) {
_global.path.sound.playSound("door_locked");
}
}
if (((_global.stage.game.doorOpen == true) && (_global.stage.game.BabyOnDoor == false)) && (attached == false)) {
if (attachNum >= _global.path.levelBabies.length) {
chooseFromArray = false;
} else {
chooseFromArray = true;
}
attached = true;
_global.stage.game.BabyOnDoor = true;
var _local6 = ++_global.stage.game.babiesInRoom;
var _local11 = chooseBabyClipIndex();
var _local21 = "baby" + _local11;
var _local18 = "b" + _local11;
var _local15 = _depth.getDepth(_global.stage.door);
_local15 = _local15 + 10;
_global.stage.babies[_local6] = new mc.Baby();
_global.stage.babies[_local6].instanceName = _local21;
_global.stage.babies[_local6].depth = _local15;
_global.stage.babies[_local6].attachClip(570, 130, 100, 100, _local15);
var _local19 = _global.stage.babies[_local6].clip;
_global.stage.door.Baby = _global.stage.babies[_local6];
_global.path.currentMovie = _local19;
_global.path.currentPopUp = 1;
_global.path.helpTips[1].dettachPrevisious();
_global.path.helpTips[40].showPopUp();
if (_global.path.ReceptionsType > 0) {
_global.path.helpTips[18].dettachPrevisious();
_global.path.helpTips[18].showPopUp();
}
attachNum = attachNum + 1;
_global.stage.babies[_local6].clipIndex = _local11;
if (chooseFromArray == false) {
_global.path.levelBabies.push(_global.stage.babies[_local6]);
}
for (var _local3 in _global.path.levelBabies) {
if (_global.path.levelBabies[_local3].clipIndex == _global.stage.babies[_local6].clipIndex) {
_global.path.levelBabies[_local3].today = true;
break;
}
}
_global.stage.babies[_local6].clip.gotoAndStop(_local18);
_global.stage.babies[_local6].clip[_local18].gotoAndStop("enter");
_global.stage.babies[_local6].where = _global.stage.door;
_global.stage.baby_counter_mc.baby_count = _global.stage.game.babiesInRoom;
}
var _local10 = 0;
if (_global.stage.game.babiesInRoom > 1) {
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].need == 1) {
_local10 = _local10 + 1;
} else {
break;
}
_local3++;
}
if (_local10 == _global.stage.game.babiesInRoom) {
if (zemenoVreme == false) {
var _local20 = getTimer();
zemenoVreme = true;
} else {
zemenoVreme = false;
}
if ((zemenoVreme == true) && ((getTimer() - _local20) > 1000)) {
var _local16 = Math.floor(Math.random() * (_global.stage.game.babiesInRoom - 1)) + 1;
var _local12 = Math.floor(Math.random() * (_global.path.needNumber - 2)) + 2;
zemenoVreme = false;
_global.stage.babies[_local16].setNeed(_local12);
_global.stage.babies[_local16].currentNeed = _local12;
if (_local12 == 2) {
_global.stage.game.wateredCount = _global.stage.game.wateredCount + 1;
}
if (_local12 == 3) {
_global.stage.game.poopCount = _global.stage.game.poopCount + 1;
}
if (_local12 == 8) {
_global.stage.game.vomitedCount = _global.stage.game.vomitedCount + 1;
}
}
}
}
if ((_global.stage.game.babiesInRoom > 0) && (_global.stage.game.tutorialBabyOut == false)) {
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
_global.stage.babyBroj = _local3;
_global.stage.babies[_local3].changeHappiness();
if ((getTimer() - _global.stage.babies[_local3].now) > (_global.stage.babies[_local3].timeNeeded * 1000)) {
if (!_global.stage.towel._visible) {
_global.stage.towel._visible = true;
}
}
_local3++;
}
}
}
if (_global.path.tutorialDay == true) {
if (_global.stage.babies[1].flagForHome == false) {
_global.stage.babies[1].changeHappiness();
}
if (((((((((getTimer() - _global.stage.game.now) > _global.stage.game.timeNeeded) && (_global.stage.game.BabyOnDoor == false)) && (_global.stage.game.babiesInRoom <= _global.stage.game.maxLevelBabies)) && (_global.stage.game.doorOpen == false)) && (fullRoom == false)) && (_global.stage.timeForLeaving == false)) && (_global.stage.clownClicked == false)) && (_global.stage.game.stopFlag == false)) {
_global.path.sound.playSound("doorBell");
_global.stage.game.doorOpen = true;
_global.stage.door.clip.dor_Dor.gotoAndPlay("open");
_global.stage.game.timeNeeded = (getTimer() - _global.stage.game.now) + ((10 + random(10)) * 350);
attached = false;
if (_global.stage.game.babiesInRoom == (_global.stage.game.maxLevelBabies - 1)) {
fullRoom = true;
}
}
if (((_global.stage.game.doorOpen == true) && (_global.stage.game.BabyOnDoor == false)) && (attached == false)) {
if (attachNum >= _global.path.levelBabies.length) {
chooseFromArray = false;
} else {
chooseFromArray = true;
}
attached = true;
_global.stage.game.BabyOnDoor = true;
var _local6 = ++_global.stage.game.babiesInRoom;
var _local11 = chooseBabyClipIndex();
var _local21 = "baby" + _local11;
var _local18 = "b" + _local11;
var _local15 = _depth.getDepth(_global.stage.door);
_local15 = _local15 + 10;
_global.stage.babies[_local6] = new mc.Baby();
_global.stage.babies[_local6].instanceName = _local21;
_global.stage.babies[_local6].depth = _local15;
_global.stage.babies[_local6].attachClip(570, 130, 100, 100, _local15);
var _local19 = _global.stage.babies[_local6].clip;
_global.stage.door.Baby = _global.stage.babies[_local6];
_global.path.currentMovie = _local19;
_global.path.currentPopUp = 1;
_global.path.helpTips[1].dettachPrevisious();
_global.path.helpTips[1].showPopUp();
if (_global.path.ReceptionsType > 0) {
_global.path.helpTips[18].dettachPrevisious();
_global.path.helpTips[18].showPopUp();
}
attachNum = attachNum + 1;
_global.stage.babies[_local6].clipIndex = _local11;
_global.stage.babies[_local6].clip.gotoAndStop(_local18);
_global.stage.babies[_local6].clip[_local18].gotoAndStop("enter");
_global.stage.babies[_local6].where = _global.stage.door;
_global.stage.baby_counter_mc.baby_count = _global.stage.game.babiesInRoom;
}
if (_global.stage.game.tutorialBabyOut == true) {
var _local11 = _global.stage.babies[1].clipIndex;
if (bebyPutTutorial == false) {
_global.stage.babies[_local3].doorFlag = true;
_global.path.sound.playSound("doorBell");
_global.stage.door.clip.dor_Dor.gotoAndPlay("senka");
_global.path.sound.playSound("mama");
_global.stage.timeForLeaving = true;
_global.stage.game.babiesOut = true;
_global.stage.door.opened = true;
bebyPutTutorial = true;
_local11 = _global.stage.babies[1].clipIndex;
}
if (_global.stage.babies[1].flagForHome == false) {
_global.stage.babies[1].l = _global.stage.babies[1].l + 5;
_global.stage.babies[1].setNeed(_global.stage.game.happy);
_global.stage.babies[1].addHappiness(_global.stage.babies[_local3].l);
if (_global.stage.babies[1].l == 10) {
_global.stage.babies[1].flagForHome = true;
_global.stage.babies[1].eat = false;
_global.stage.babies[1].eatMeal = false;
_global.stage.babies[1].toy = false;
_global.stage.babies[1].sleeping = false;
}
}
if (_global.stage.babies[1].where.ID == _global.stage.box[0].ID) {
_global.stage.babies[1].flip = true;
}
if (_global.stage.babies[1].flip == true) {
_global.stage.babies[1].clip["b" + _local11].gotoAndStop("mama1");
if (_global.stage.babies[1].where.ID == _global.stage.box[0].ID) {
_global.stage.babies[1].clip["b" + _local11].mama_cloud._xscale = -113.8;
_global.stage.babies[1].clip["b" + _local11].mama_cloud._x = -10;
}
}
if (_global.stage.babies[1].flip == false) {
_global.stage.babies[1].clip["b" + _local11].gotoAndStop("mama");
if (_global.stage.babies[1].where.ID == _global.stage.box[0].ID) {
_global.stage.babies[1].clip["b" + _local11].mama_cloud._xscale = -113.8;
_global.stage.babies[1].clip["b" + _local11].mama_cloud._x = -10;
}
}
if (mamaPopUpFlag == false) {
_global.path.currentMovie = _global.stage.door.clip;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
_global.path.currentPopUp = 6;
_global.path.helpTips[6].showPopUp();
mamaPopUpFlag = true;
}
_global.stage.babies[1].flagMama = true;
}
if (_global.path.exitBabies > 0) {
_global.path.attachMovie("sunrise_mc_poceten", "sunrise_mc_poceten", 4, {_x:399.6, _y:299.8, _xscale:100, _yscale:100});
stopAllSounds();
_global.path.tutorialDay = false;
_global.needsNum = 2;
_global.path.dayBabiesNum = 2;
_global.dayCount = 0;
_global.stage.removeMovieClip();
}
}
}
function clownComing() {
if ((clownflag == true) && ((getTimer() - clownTime) >= 6000)) {
if (((((((((((((_global.stage.girl.cellx == 12) && (_global.stage.girl.celly == 6)) || ((_global.stage.girl.cellx == 13) && (_global.stage.girl.celly == 6))) || ((_global.stage.girl.cellx == 14) && (_global.stage.girl.celly == 6))) || ((_global.stage.girl.cellx == 15) && (_global.stage.girl.celly == 6))) || ((_global.stage.girl.cellx == 12) && (_global.stage.girl.celly == 7))) || ((_global.stage.girl.cellx == 13) && (_global.stage.girl.celly == 7))) || ((_global.stage.girl.cellx == 14) && (_global.stage.girl.celly == 7))) || ((_global.stage.girl.cellx == 15) && (_global.stage.girl.celly == 7))) || ((_global.stage.girl.cellx == 12) && (_global.stage.girl.celly == 8))) || ((_global.stage.girl.cellx == 13) && (_global.stage.girl.celly == 8))) || ((_global.stage.girl.cellx == 14) && (_global.stage.girl.celly == 8))) || ((_global.stage.girl.cellx == 15) && (_global.stage.girl.celly == 8))) {
var _local4 = {x:0, y:0};
_local4.x = _global.stage.diperTable.x;
_local4.y = _global.stage.diperTable.y;
_global.stage.girl.flagForClown = true;
_global.stage.girl.Walk(_local4);
_global.stage.girl.candoAction = false;
} else {
markCell(13, 7, false);
markCell(13, 8, false);
markCell(14, 7, false);
markCell(14, 8, false);
_global.stage.clown.clip.removeMovieClip();
var _local3;
if (_global.stage.game.firstClown == true) {
_global.stage.door.clip.dor_Dor.gotoAndPlay("clown");
_local3.clip = _global.stage.attachMovie("clown_animation1", "klovn_anim", 17407, {_x:543, _y:153.7, _xscale:50, _yscale:50});
} else if (_global.stage.game.anyClown == true) {
var _local5 = Math.floor(Math.random() * 3) + 1;
switch (_local5) {
case 1 :
_global.stage.door.clip.dor_Dor.gotoAndPlay("clown");
_local3.clip = _global.stage.attachMovie("clown_animation1", "klovn_anim", 17407, {_x:543, _y:153.7, _xscale:50, _yscale:50});
break;
case 2 :
_local3.clip = _global.stage.attachMovie("clown_animation2", "klovn_anim", 17407, {_x:486.05, _y:18.25, _xscale:100, _yscale:100});
break;
case 3 :
_local3.clip = _global.stage.attachMovie("clown_animation3", "klovn_anim", 17407, {_x:486.05, _y:18.25, _xscale:100, _yscale:100});
}
} else {
_local3.clip = _global.stage.attachMovie("clown_animation2", "klovn_anim", 17407, {_x:486.05, _y:18.25, _xscale:100, _yscale:100});
}
_global.stage.clownAttach = true;
}
clownAction();
clownflag = false;
}
}
function clownAction() {
_global.stage.girl.candoAction = true;
_global.path.clown = false;
_global.path.sound.stopMusic("babyDrinking");
_global.path.sound.stopSound("puls1");
if (_global.stage.game.babiesInRoom > 0) {
var _local2 = 1;
while (_local2 <= _global.stage.game.babiesInRoom) {
_global.stage.babies[_local2].happiness = 100;
_global.stage.babies[_local2].addHappiness();
_global.stage.babies[_local2].unHappy = false;
var _local3 = "b" + _global.stage.babies[_local2].clipIndex;
_global.stage.babies[_local2].clip[_local3].need.gotoAndStop(1);
_global.stage.babies[_local2].unhapy = 0;
if ((((((((_global.stage.babies[_local2].need != _global.stage.game.vomited) && (_global.stage.babies[_local2].need != _global.stage.game.watered)) && (_global.stage.babies[_local2].need != _global.stage.game.poop)) && (_global.stage.babies[_local2].where.ID != _global.stage.door.ID)) && (_global.stage.babies[_local2].where.ID != _global.stage.panelButton[0].ID)) && (_global.stage.babies[_local2].where.ID != _global.stage.horse[0].ID)) && (_global.stage.babies[_local2].eat == false)) && (_global.stage.babies[_local2].eatMeal == false)) {
_global.stage.clown.clicked = true;
_global.stage.babies[_local2].posleKlovn = true;
_global.stage.babies[_local2].setNeed(_global.stage.game.happy);
_global.stage.babies[_local2].stopBabyCrying();
_global.stage.clownInRoom = true;
}
_local2++;
}
}
}
function markCell(cellx, celly, empty) {
var _local2 = (("node" + cellx) + "_") + celly;
if (!empty) {
_global.stage.astar.nodes[_local2] = _global.stage.astar.solidOb;
_global.stage.game[_local2].type = 2;
} else {
_global.stage.astar.nodes[_local2] = {solid:undefined, exists:undefined};
_global.stage.game[_local2].type = 1;
}
}
function playDiperSound() {
_global.path.sound.playSound("diperShanging");
}
function stopDiperSound() {
_global.path.sound.stopSound("diperShanging");
}
function playBathSound() {
_global.path.sound.playSound("babyBath");
_global.path.sound.playSound("bathWaterShort");
}
function stopBathSound() {
_global.path.sound.stopSound("bathWaterShort");
}
function babyCryFall() {
_global.path.sound.playSound("babyUpsidedown");
}
function babySmiling() {
_global.path.sound.playSound("babyLaughing");
}
function babyVomit1() {
_global.path.sound.playSound("vomit1");
}
function babyVomit2() {
_global.path.sound.playSound("vomit2");
}
function starSound() {
_global.path.sound.playSound("star_puff");
}
function starSoundStop() {
_global.path.sound.stopSound("star_puff");
}
function unusablePopUp() {
var _local2 = 1;
while (_local2 <= 6) {
_global.path.helpTips[_local2].shown = 2;
_local2++;
}
_local2 = 20;
while (_local2 <= 34) {
_global.path.helpTips[_local2].shown = 2;
_local2++;
}
_global.path.helpTips[8].shown = 2;
_global.path.helpTips[11].shown = 2;
_global.path.helpTips[12].shown = 2;
_global.path.helpTips[20].shown = 2;
_global.path.helpTips[22].shown = 2;
}
function FindMaxScale() {
switch (_global.stage.game.scaleObject.linkID) {
case "door" :
return(73.22);
case "bath" :
return(73.22);
case "diperTable" :
return(73.22);
case "trash" :
return(73.22);
case "trash2" :
return(73.22);
case "bedroomButton0" :
return(73.22);
case "bedroomButton1" :
return(73.22);
case "bedroomButton2" :
return(73.22);
case "bedroomButton3" :
return(73.22);
case "bedroomButton4" :
return(73.22);
case "bedroomButton5" :
return(73.22);
case "box2" :
return(78.78);
case "carpet7" :
return(78.78);
case "box1" :
return(81.56);
case "carpet1" :
return(81.56);
case "carpet3" :
return(81.56);
case "foodMaker" :
return(81.56);
case "kitchen" :
return(81.56);
case "BOTTLE1" :
return(81.56);
case "bed1" :
return(92.68);
case "bed2" :
return(92.68);
case "bed3" :
return(92.68);
case "bed4" :
return(92.68);
case "BigBox" :
return(92.68);
case "carpet4" :
return(76);
case "carpet5" :
return(76);
case "carpet6" :
return(76);
case "towel" :
return(76);
case "carpet2" :
return(87.12);
case "bigChair" :
if (_global.stage.game.scaleObject.y == 262) {
return(76);
}
if ((_global.stage.game.scaleObject.y == 290.95) || (_global.stage.game.scaleObject.y == 324)) {
return(78.78);
}
if (_global.stage.game.scaleObject.y == 360.95) {
return(81.56);
}
case "horse" :
if (_global.stage.game.scaleObject.y == 376.65) {
return(87.12);
}
if (_global.stage.game.scaleObject.y == 434.95) {
return(92.68);
}
case "toy_box" :
if ((_global.stage.config.id == 1) || (_global.stage.config.id == 3)) {
return(89.9);
}
if (!((_global.stage.config.id == 2) || (_global.stage.config.id == 4))) {
break;
}
return(84.34);
}
return(92.68);
}
var bedNum = 4;
var trashNum = 2;
var toyNum = 9;
var boxNum = 2;
var clicked = false;
var k = 0;
var stoped = true;
var fullRoom = false;
var now = getTimer();
var attached = false;
var clock = getTimer();
var endDayTimer = getTimer();
var hour = 8;
var mins = 1;
var dayCount = 0;
var flagce = false;
var p = 0;
var z = 0;
var takeTime = false;
var minute = 30;
var nowDailyScreen = false;
var min = 0;
var clickNum = 8;
var minLoad = 3;
var maxUnload = 24;
var maxLoad = 12;
var minUnload = 18;
var maxRating = 99;
var minRating = 1;
var attachNum = 0;
var g = 0;
var clownTime = getTimer();
var clownflag = false;
var happinesCounter = 1;
}
Symbol 5883 MovieClip [__Packages.control.DepthController] Frame 0
class control.DepthController
{
var doorDepth, bathDepth, diperTableDepth, windowDepth, dipersDepth, trashDepth, trash2Depth, foodMakerDepth, kitchenDepth, boxoverDepth, carpetDepth, boxDepth, bedDepth, prekrivacDepth, bedDaskaDepth, toyDepth, towelDepth, paintDepth, closetDepth, plantDepth, clockDepth, srcaDepth, senkaDepth, chairDepth, chairMaskDepth, toy_boxesDepth, bottleDepth, receptionDepth, clownDepth, bedFrontDepth, nannyDepth, calendarDepth, boxFrontDepth, horseDepth, KitchenWindow, BigChairDepth, bigChairMaskDepth, panelDepth, panelButtonDepth;
function DepthController () {
doorDepth = 17000;
bathDepth = 17100;
diperTableDepth = 16900;
windowDepth = 15500;
dipersDepth = 15200;
trashDepth = 17406;
trash2Depth = 17408;
foodMakerDepth = 17630;
kitchenDepth = 17500;
boxoverDepth = 18200;
carpetDepth = 17770;
boxDepth = 18100;
bedDepth = 20000;
prekrivacDepth = 20010;
bedDaskaDepth = 20013;
toyDepth = 18600;
towelDepth = 16919;
paintDepth = 17259;
closetDepth = 16990;
plantDepth = 20079;
clockDepth = 16800;
srcaDepth = 20600;
senkaDepth = 17030;
chairDepth = 17813;
chairMaskDepth = 17892;
toy_boxesDepth = 18500;
bottleDepth = 17657;
receptionDepth = 15103;
clownDepth = 49100;
bedFrontDepth = 20500;
nannyDepth = 18206;
calendarDepth = 17001;
boxFrontDepth = 19997;
horseDepth = 39996;
KitchenWindow = 15600;
BigChairDepth = 17713;
bigChairMaskDepth = 17792;
panelDepth = 16849;
panelButtonDepth = 16852;
}
function getDepth(mc) {
if (mc.ID == 1) {
return(doorDepth++);
}
if (mc.ID == 2) {
return(bathDepth++);
}
if (mc.ID == 3) {
return(diperTableDepth++);
}
if (mc.ID == 4) {
return(dipersDepth++);
}
if (mc.ID == 5) {
return(trashDepth++);
}
if (mc.ID == 205) {
return(trash2Depth++);
}
if (mc.ID == 6) {
return(foodMakerDepth++);
}
if (mc.ID == 7) {
return(kitchenDepth++);
}
if (mc.ID == 8) {
if (mc.linkID == "chair1") {
return(chairDepth);
}
if (mc.linkID == "chair2") {
return(chairDepth + 90);
}
if (mc.linkID == "chair3") {
return(chairDepth + 190);
}
if (mc.linkID == "chair4") {
return(chairDepth + 270);
}
}
if (mc.ID == 9) {
if (mc.linkID == "boxover2") {
return(boxoverDepth);
}
if (mc.linkID == "boxover1") {
return(boxoverDepth + 200);
}
if (mc.linkID == "BigBoxMask") {
return(40400);
}
}
if (mc.ID == 10) {
return(carpetDepth++);
}
if (mc.ID == 11) {
if (mc.linkID == "box2") {
return(boxDepth);
}
if (mc.linkID == "box1") {
return(boxDepth + 200);
}
if (mc.linkID == "BigBox") {
return(40350);
}
}
if (mc.ID == 12) {
if (mc.linkID == "bed1") {
return(bedDepth);
}
if (mc.linkID == "bed2") {
return(bedDepth + 100);
}
if (mc.linkID == "bed3") {
return(bedDepth + 200);
}
if (mc.linkID == "bed4") {
return(bedDepth + 300);
}
}
if (mc.ID == 49) {
if (mc.linkID == "bed-daska1") {
return(bedDaskaDepth);
}
if (mc.linkID == "bed-daska2") {
return(bedDaskaDepth + 100);
}
if (mc.linkID == "bed-daska3") {
return(bedDaskaDepth + 200);
}
if (mc.linkID == "bed-daska4") {
return(bedDaskaDepth + 300);
}
}
if (mc.ID == 42) {
if (mc.linkID == "prekrivac1") {
return(prekrivacDepth);
}
if (mc.linkID == "prekrivac2") {
return(prekrivacDepth + 100);
}
if (mc.linkID == "prekrivac3") {
return(prekrivacDepth + 200);
}
if (mc.linkID == "prekrivac4") {
return(prekrivacDepth + 300);
}
}
if (mc.ID == 13) {
if (mc.linkID == "toy1") {
return(toyDepth);
}
if (mc.linkID == "toy2") {
return(toyDepth + 50);
}
if (mc.linkID == "toy3") {
return(toyDepth + 100);
}
if (mc.linkID == "toy4") {
return(toyDepth + 200);
}
if (mc.linkID == "toy5") {
return(toyDepth + 300);
}
if (mc.linkID == "toy6") {
return(toyDepth + 400);
}
if (mc.linkID == "toy7") {
return(toyDepth + 500);
}
if (mc.linkID == "toy8") {
return(toyDepth + 530);
}
if (mc.linkID == "toy9") {
return(toyDepth + 560);
}
if (mc.linkID == "toy10") {
return(toyDepth + 585);
}
if (mc.linkID == "toy11") {
return(toyDepth + 700);
}
if (mc.linkID == "toy12") {
return(toyDepth + 720);
}
if (mc.linkID == "toy13") {
return(toyDepth + 740);
}
if (mc.linkID == "toy14") {
return(toyDepth + 760);
}
if (mc.linkID == "toy15") {
return(toyDepth + 800);
}
}
if (mc.ID == 14) {
return(towelDepth++);
}
if (mc.ID == 15) {
if (mc.linkID == "paint1") {
return(paintDepth);
}
if (mc.linkID == "paint2") {
return(paintDepth + 10);
}
}
if (mc.ID == 16) {
return(closetDepth++);
}
if (mc.ID == 17) {
if (mc.linkID == "plant") {
return(plantDepth);
}
if (mc.linkID == "plant3") {
return(plantDepth + 13);
}
}
if (mc.ID == 18) {
if (mc.linkID == "clock") {
return(clockDepth);
}
if (mc.linkID == "digi_clock") {
return(clockDepth + 5700);
}
}
if (mc.ID == 19) {
return(srcaDepth++);
}
if (mc.ID == 20) {
return(senkaDepth++);
}
if (mc.ID == 21) {
if (mc.linkID == "chairMask1") {
return(chairMaskDepth);
}
if (mc.linkID == "chairMask2") {
return(chairMaskDepth + 100);
}
if (mc.linkID == "chairMask3") {
return(chairMaskDepth + 200);
}
if (mc.linkID == "chairMask4") {
return(chairMaskDepth + 300);
}
}
if (mc.ID == 22) {
if (mc.linkID == "toy_box") {
return(toy_boxesDepth);
}
if (mc.linkID == "toy_box1") {
return(toy_boxesDepth + 1000);
}
}
if (mc.ID == 23) {
return(bottleDepth++);
}
if (mc.ID == 39) {
return(clownDepth++);
}
if (mc.ID == 27) {
return(receptionDepth++);
}
if (mc.ID == 32) {
return(bedFrontDepth++);
}
if (mc.ID == 40) {
return(nannyDepth++);
}
if (mc.ID == 44) {
return(windowDepth++);
}
if (mc.ID == 45) {
return(calendarDepth++);
}
if (mc.ID == 48) {
return(boxFrontDepth++);
}
if (mc.ID == 110) {
return((horseDepth = horseDepth + 100));
}
if (mc.ID == 111) {
return(KitchenWindow++);
}
if (mc.ID == 112) {
return((BigChairDepth = BigChairDepth + 100));
}
if (mc.ID == 26) {
return(panelDepth++);
}
if (mc.ID == 113) {
return((bigChairMaskDepth = bigChairMaskDepth + 100));
}
if (mc.ID == 150) {
if (mc.linkID == "bedroomButton0") {
return(panelButtonDepth);
}
if (mc.linkID == "bedroomButton1") {
return(panelButtonDepth + 1);
}
if (mc.linkID == "bedroomButton2") {
return(panelButtonDepth + 2);
}
if (mc.linkID == "bedroomButton3") {
return(panelButtonDepth + 3);
}
if (mc.linkID == "bedroomButton4") {
return(panelButtonDepth + 4);
}
if (mc.linkID == "bedroomButton5") {
return(panelButtonDepth + 5);
}
}
}
}
Symbol 5884 MovieClip [__Packages.astar.Astar] Frame 0
class astar.Astar
{
var keepSearching, finish, now;
function Astar () {
}
function initialize() {
solidOb = {solid:true, exists:true};
maxSearchTime = 3000;
s = {};
g = {};
maxX = 0;
maxY = 0;
open = [];
closed = [];
nodes = {};
preventClipping = true;
}
function findHeuristic(x, y) {
var _local3 = Math.abs(x - g.x);
var _local2 = Math.abs(y - g.y);
var _local5 = Math.min(_local3, _local2) * 1.41;
var _local4 = Math.max(_local3, _local2) - Math.min(_local3, _local2);
return(_local5 + _local4);
}
function cost(who, newx, newy) {
var _local3 = 1;
if (((who.x - newx) != 0) && ((who.y - newy) != 0)) {
_local3 = 1.41;
if (preventClipping) {
var _local4 = (who.x - newx) / Math.abs(who.x - newx);
var _local5 = (who.y - newy) / Math.abs(who.y - newy);
var _local9 = who.x - _local4;
var _local7 = who.y;
var _local12 = nodes[(("node" + _local9) + "_") + _local7];
var _local8 = who.x;
var _local6 = who.y - _local5;
var _local10 = nodes[(("node" + _local8) + "_") + _local6];
if (_local12.solid || (_local10.solid)) {
_local3 = 1000000 /* 0x0F4240 */;
}
}
}
return(_local3);
}
function checkNode(newx, newy, whoName) {
if ((((newx > 0) && (newx <= maxX)) && (newy > 0)) && (newy <= maxY)) {
var _local7 = nodes[whoName];
var _local4 = (("node" + newx) + "_") + newy;
var _local8 = _local7.g + cost(_local7, newx, newy);
if ((_local7.x == g.x) && (_local7.y == g.y)) {
keepSearching = false;
}
if (!nodes[_local4].exists) {
addOpen(newx, newy, _local8, whoName);
} else if (!nodes[_local4].solid) {
if (_local8 < nodes[_local4].g) {
var _local5 = nodes[_local4];
_local5.parent = whoName;
_local5.g = _local8;
_local5.f = _local5.h + _local8;
var _local6 = _local5.f;
if (nodes[_local4].where == "open") {
var _local3 = 0;
while (_local3 < open.length) {
if (open[_local3].name == _local4) {
open.splice(_local3, 1);
}
_local3++;
}
var _local2 = 0;
while (_local2 < open.length) {
if (_local6 < open[_local2].f) {
open.splice(_local2, 0, _local5);
nodes[_local4] = open[_local2];
break;
}
if (_local2 == (open.length - 1)) {
open.push(_local5);
nodes[_local4] = open[_local2 + 1];
break;
}
_local2++;
}
}
if (nodes[_local4].where == "closed") {
var _local3 = 0;
while (_local3 < closed.length) {
if (closed[_local3].name == _local4) {
closed.splice(_local3, 1);
}
_local3++;
}
}
}
}
}
}
function buildPath(name) {
name = (("node" + g.x) + "_") + g.y;
var _local2 = nodes[name].parent;
path = [];
while (_local2 != null) {
path.push([nodes[_local2].x, nodes[_local2].y]);
_local2 = nodes[_local2].parent;
}
path.reverse();
path.shift();
path.push([g.x, g.y]);
}
function expandNode(index) {
var _local6 = open[index];
var _local3 = _local6.x;
var _local2 = _local6.y;
var _local4 = (("node" + _local3) + "_") + _local2;
checkNode(_local3 + 1, _local2, _local4);
checkNode(_local3, _local2 - 1, _local4);
checkNode(_local3 - 1, _local2, _local4);
checkNode(_local3, _local2 + 1, _local4);
var _local5 = open[index];
_local5.where = "closed";
open.splice(index, 1);
closed.push(_local5);
if (closed.length > (maxX * maxY)) {
finish = true;
}
if (!keepSearching) {
buildPath();
}
}
function addOpen(x, y, g, parent) {
var _local9 = findHeuristic(x, y);
var _local5 = g + _local9;
var _local3 = (("node" + x) + "_") + y;
var _local4 = {x:x, y:y, g:g, h:_local9, f:_local5, name:_local3, parent:parent, exists:true, where:"open"};
if (parent == null) {
open.push(_local4);
nodes[_local3] = open[0];
}
var _local2 = 0;
while (_local2 < open.length) {
if (_local5 < open[_local2].f) {
open.splice(_local2, 0, _local4);
nodes[_local3] = open[_local2];
break;
}
if (_local2 == (open.length - 1)) {
open.push(_local4);
nodes[_local3] = open[_local2 + 1];
break;
}
_local2++;
}
}
function search() {
delete path;
finish = false;
now = getTimer();
addOpen(s.x, s.y, 0, null);
keepSearching = true;
while (keepSearching) {
expandNode(0);
if (finish) {
keepSearching = false;
}
if ((getTimer() - now) > maxSearchTime) {
keepSearching = false;
}
}
initialize();
return(path);
}
var solidOb = {solid:true, exists:true};
var maxSearchTime = 3000;
var s = {};
var g = {};
var maxX = 0;
var maxY = 0;
var open = [];
var closed = [];
var nodes = {};
var preventClipping = false;
var path = [];
}
Symbol 5885 MovieClip [__Packages.mc.Baby] Frame 0
class mc.Baby
{
var sound, clip, flip, Type, depth, instanceName, happiness, need, eat, cleaning, sleeping, eatMeal, sleepingInBedroom, where, babyHapyTime, place, moveMama, flagMama, spalnaPlace, NanyFlag, currentNeed, unhapy, prevrtenoPopup, timeSetted, unHappy, timeUnHappy, nextDay, allWeek, needCanChange, babyOut, today, flagForHome, l, afterSleeping, trepka, trepkaFlag, trepkacFlag, posleKlovn, now, timeNeeded, soundCry, toy, timeToyNeeded, soundName, currSoundName, clipIndex, hearts, p;
function Baby (_clip) {
sound = new control.SoundController();
sound.off = _global.off;
sound.volume = _global.tempBar;
var _local4 = this;
clip = _clip;
flip = false;
Type = random(4) + 1;
depth = _clip.getDepth();
instanceName = _clip._name;
happiness = 100;
need = 0;
eat = false;
cleaning = false;
sleeping = false;
eatMeal = false;
sleepingInBedroom = false;
where = _global.stage.door;
babyHapyTime = 0;
place = false;
moveMama = false;
flagMama = false;
spalnaPlace = false;
NanyFlag = true;
currentNeed = 0;
unhapy = 0;
prevrtenoPopup = false;
timeSetted = false;
unHappy = false;
timeUnHappy = 0;
nextDay = true;
allWeek = true;
needCanChange = true;
babyOut = false;
today = false;
flagForHome = false;
l = 0;
afterSleeping = false;
_global.stage.babyUnhappy = false;
trepka = false;
trepkaFlag = false;
trepkacFlag = false;
posleKlovn = false;
}
function changeHappiness() {
if (((need == _global.stage.game.happy) && (flagForHome == false)) && (afterSleeping == true)) {
sound.stopSound("babySleep");
stopBabyCrying();
if (timeSetted == false) {
now = getTimer();
timeSetted = true;
timeNeeded = 3000;
}
if ((getTimer() - now) > timeNeeded) {
if (_global.path.BedroomType == 0) {
var _local3 = Math.floor(Math.random() * 4) + 1;
if (_local3 == 1) {
setNeed(_global.stage.game.watered);
need = _global.stage.game.watered;
currentNeed = _global.stage.game.watered;
} else if (_local3 == 2) {
setNeed(_global.stage.game.hungry);
need = _global.stage.game.hungry;
currentNeed = _global.stage.game.hungry;
} else if (_local3 == 3) {
setNeed(_global.stage.game.toy);
need = _global.stage.game.toy;
currentNeed = _global.stage.game.toy;
_global.path.currentPopUp = 8;
_global.path.currentMovie = _global.stage.toy_boxes[1].clip;
_global.path.currentHelpMovie = _global.stage.toy_boxes[0].clip;
_global.path.currentHelp1Movie = undefined;
} else {
setNeed(_global.stage.game.poop);
need = _global.stage.game.poop;
currentNeed = _global.stage.game.poop;
}
} else {
setNeed(_global.stage.game.watered);
currentNeed = _global.stage.game.watered;
}
if ((where.ID == _global.stage.panelButton[0].ID) && (where.Baby != undefined)) {
where.clip.bedButton.gotoAndStop(3);
where.babySleep = false;
where.clip.bedButton.tepkac.gotoAndPlay("speed1");
}
if (((where.ID == _global.stage.panelButton[0].ID) && (_global.path.BedroomType > 0)) && (spalnaPlace == false)) {
if (where.clip && (_global.off == false)) {
soundCry = new Sound(where.clip);
soundCry.volume = _global.tempBar;
soundCry.attachSound("baby_crying");
soundCry.start();
spalnaPlace = true;
place = true;
}
}
afterSleeping = false;
}
}
if (_global.stage.babyUnhappy == true) {
loseHappiness(4 / _global.path.UnloadSpeed);
}
if (((need == _global.stage.game.happy) && (flagForHome == false)) && (afterSleeping == false)) {
stopBabyCrying();
if (_global.path.tutorialDay == true) {
if (_global.needsNum >= 8) {
_global.stage.game.tutorialBabyOut = true;
}
}
if (babyHapyTime < MaxbabyHapyTime) {
babyHapyTime++;
} else {
babyHapyTime = 0;
_global.path.bonusPoints = _global.path.bonusPoints + (_global.path.curentFee / 10);
_global.bonus = _global.bonus + (_global.path.curentFee / 10);
}
addHappiness(4 / _global.path.LoadSpeed);
if (timeSetted == false) {
now = getTimer();
timeSetted = true;
var _local6 = Math.floor(Math.random() * 6) + 5;
if (_global.path.tutorialDay == false) {
if (_global.stage.game.babiesInRoom > 3) {
timeNeeded = 10 + ((_global.path.dayBabiesNum - 2) * 3);
} else {
timeNeeded = 10;
}
} else {
timeNeeded = 5;
}
if (posleKlovn == true) {
timeNeeded = timeNeeded + (Math.floor(Math.random() * 10) + 3);
posleKlovn = false;
}
}
if ((getTimer() - now) > ((timeNeeded * 1000) - (_global.path.socialRating * 100))) {
needCanChange = true;
changeNeed();
}
} else if ((need == _global.stage.game.toy) && (toy != undefined)) {
_global.stage.game.babyWantsToy = true;
NanyFlag = true;
addHappiness(4 / _global.path.LoadSpeed);
if (timeSetted == false) {
now = getTimer();
timeSetted = true;
timeToyNeeded = 2 + (Math.random() * 5);
}
if ((getTimer() - now) > (timeToyNeeded * 1000)) {
_global.path.helpTips[33].dettachPopUp();
setNeed(_global.stage.game.happy);
soundName = "babyLaughing";
currSoundName = soundName;
_global.path.sound.playSound(currSoundName);
toy.clip._visible = true;
needCanChange = true;
}
} else if ((need == _global.stage.game.horse) && (where.ID == _global.stage.horse[0].ID)) {
_global.path.helpTips[14].dettachPopUp();
addHappiness(4 / _global.path.LoadSpeed);
if (timeSetted == false) {
var _local4 = "b" + clipIndex;
clip[_local4].cloud10._visible = false;
now = getTimer();
timeSetted = true;
timeNeeded = 15;
}
if ((getTimer() - now) > (timeNeeded * 1000)) {
trace("se iznalulaAAAA");
clip._visible = true;
clip["b" + clipIndex].gotoAndStop("horse");
var _local3 = 0;
while (_local3 < _global.path.horseNumber) {
if (_global.stage.horse[_local3].Baby == this) {
trace("_global.stage.horse[i].Baby == this");
_global.stage.horse[_local3].clip.gotoAndStop("h" + clipIndex);
_global.stage.horse[_local3].clip.beby.gotoAndStop(1);
trace("ovde treba da se svrti");
if ((_global.stage.horse[_local3].xscale == -100) || (_global.stage.horse[_local3].xscale == -114.7)) {
trace("FLIP-OBLACE-KONJCE");
_global.stage.horse[_local3].clip.beby.oblace._x = _global.stage.horse[_local3].clip.beby.oblace._x - 15;
_global.stage.horse[_local3].clip.beby.zzz._xscale = -100;
_global.stage.horse[_local3].clip.beby.zzz._x = _global.stage.horse[_local3].clip.beby.zzz._x - 5;
}
_global.stage.horse[_local3].clip.horse.movie.gotoAndStop(1);
setNeed(_global.stage.game.happy);
}
_local3++;
}
setNeed(_global.stage.game.sleepy);
soundName = "babyLaughing";
currSoundName = soundName;
_global.path.sound.playSound(currSoundName);
clip.anim._visible = false;
toy.clip._visible = true;
needCanChange = true;
}
} else if ((need == _global.stage.game.hungry) && (eat)) {
_global.path.helpTips[11].dettachPopUp();
_global.path.helpTips[27].dettachPopUp();
NanyFlag = true;
addHappiness(4 / _global.path.LoadSpeed);
if (timeSetted == false) {
now = getTimer();
timeSetted = true;
timeNeeded = 2 + where.upgrade;
}
if ((getTimer() - now) > (timeNeeded * 1000)) {
var _local5 = getTimer() - now;
setNeed(_global.stage.game.happy);
eat = false;
soundName = "babyBurp";
_global.path.helpTips[28].showPopUp();
_global.path.currentMovie = undefined;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
_global.path.sound.stopMusic("babyDrinking");
currSoundName = soundName;
_global.path.sound.playSound(currSoundName);
needCanChange = true;
}
} else if ((need == _global.stage.game.hungry) && (where.ID == _global.stage.bigChair[1].ID)) {
if (where.meal || (eatMeal)) {
where.meal = false;
where.meall = false;
eatMeal = true;
_global.path.helpTips[15].dettachPopUp();
NanyFlag = true;
addHappiness(4 / _global.path.LoadSpeed);
var _local7 = "b" + clipIndex;
var need = (("need" + _global.stage.game.hungry.toString()) + "1");
clip.gotoAndStop(_local7);
clip[_local7].gotoAndStop(need);
if (timeSetted == false) {
now = getTimer();
timeSetted = true;
soundName = "babyDrinking";
currSoundName = soundName;
_global.stage.kitchenWindow.clip.gotoAndStop("prv");
_global.stage.kitchenWindow.clip.kichenWindow.gotoAndStop(_global.path.KitchenType);
_global.path.sound.playMusic(currSoundName);
timeNeeded = 2 + (where.upgrade + (2 * _global.path.CookType));
}
if ((getTimer() - now) > (timeNeeded * 1000)) {
var _local5 = getTimer() - now;
setNeed(_global.stage.game.happy);
soundName = "babyBurp";
_global.path.sound.stopMusic("babyDrinking");
currSoundName = soundName;
_global.path.sound.playSound(currSoundName);
needCanChange = true;
eatMeal = false;
where.cookTime = 0;
}
} else if (where.cookTime == 0) {
where.cookTime++;
where.prepareMeal();
}
} else if ((need == _global.stage.game.sleepy) && (sleeping)) {
if (_global.stage.game.spiePopup == true) {
_global.path.helpTips[30].showPopUp();
_global.stage.game.spiePopup = false;
}
_global.path.helpTips[12].dettachPopUp();
_global.path.helpTips[43].dettachPopUp();
_global.path.currentMovie = undefined;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
NanyFlag = true;
addHappiness(4 / _global.path.LoadSpeed);
if (!timeSetted) {
now = getTimer();
timeSetted = true;
timeNeeded = 2 + (where.upgrade * 2);
}
if ((getTimer() - now) > (timeNeeded * 1000)) {
where.babySleep = false;
_global.stage.girl.proveriBabySong();
_global.path.helpTips[30].dettachPopUp();
if (_global.popUpSleepyFlag == false) {
_global.popUpFlag = false;
_global.popUpSleepyFlag = true;
}
soundName = "Baby-dipers";
currSoundName = soundName;
sound.playSound(currSoundName);
needCanChange = true;
if (_global.path.tutorialDay == false) {
afterSleeping = true;
}
timeSetted = false;
setNeed(_global.stage.game.happy);
}
} else if ((need == _global.stage.game.sleepy) && (sleepingInBedroom)) {
_global.path.helpTips[16].dettachPopUp();
addHappiness(4 / _global.path.LoadSpeed);
if (!timeSetted) {
now = getTimer();
timeSetted = true;
if (_global.path.AssistantBabysitter) {
timeNeeded = 6 + (where.upgrade * 2);
} else {
timeNeeded = 2 + (where.upgrade * 2);
}
if (_global.path.NanyType > 0) {
timeNeeded = (timeNeeded + 6) + (2 * _global.path.NanyType);
}
where.clip.bedButton.gotoAndStop(2);
where.babySleep = true;
}
if ((getTimer() - now) > (timeNeeded * 1000)) {
where.clip.bedButton.gotoAndStop(3);
_global.path.currentPopUp = 17;
_global.path.helpTips[17].showPopUp();
where.babySleep = false;
_global.stage.girl.proveriBabySongBedroom();
setNeed(_global.stage.game.happy);
afterSleeping = true;
if (_global.popUpSleepyFlag == false) {
_global.popUpFlag = false;
_global.popUpSleepyFlag = true;
}
soundName = "Baby-dipers";
currSoundName = soundName;
_global.path.sound.playSound(currSoundName);
}
} else if ((need == _global.stage.game.angry) && (where.ID == _global.stage.box[1].ID)) {
_global.path.helpTips[5].dettachPopUp();
NanyFlag = true;
addHappiness(4 / _global.path.UnloadSpeed);
if (!timeSetted) {
var _local7 = "b" + clipIndex;
now = getTimer();
timeSetted = true;
if (_global.path.tutorialDay == false) {
timeNeeded = 4 + (where.upgrade * 2);
} else {
timeNeeded = 0.5;
}
}
if ((getTimer() - now) > (timeNeeded * 1000)) {
setNeed(_global.stage.game.happy);
soundName = "babyLaughing";
currSoundName = soundName;
_global.path.sound.playSound(currSoundName);
needCanChange = true;
}
} else if (((need == _global.stage.game.toy) && (_global.path.tutorialDay == true)) && ((where.ID == _global.stage.carpet[1].ID) || (where.ID == _global.stage.box[0].ID))) {
_global.path.currentMovie = _global.stage.toy_boxes[1].clip;
_global.path.currentHelpMovie = _global.stage.toy_boxes[0].clip;
_global.path.currentHelp1Movie = undefined;
_global.path.currentPopUp = 32;
_global.path.helpTips[32].showPopUp();
loseHappiness(4 / _global.path.UnloadSpeed);
} else if (((need == _global.stage.game.angry) && (_global.path.tutorialDay == true)) && (((where.ID == _global.stage.bed[0].ID) || (where.ID == _global.stage.chair[0].ID)) || (where.ID == _global.stage.carpet[1].ID))) {
_global.path.currentMovie = _global.stage.box[0].clip;
_global.path.currentHelpMovie = _global.stage.boxover[0].clip;
_global.path.currentHelp1Movie = _global.stage.boxFront.clip;
_global.path.currentPopUp = 5;
_global.path.helpTips[5].showPopUp();
loseHappiness(4 / _global.path.UnloadSpeed);
} else if (((need == _global.stage.game.hungry) && (_global.path.tutorialDay == true)) && (((where.ID == _global.stage.bed[0].ID) || (where.ID == _global.stage.carpet[1].ID)) || (where.ID == _global.stage.box[0].ID))) {
_global.path.currentMovie = _global.stage.chair[0].clip;
_global.path.currentHelpMovie = _global.stage.chairMask[0].clip;
_global.path.currentHelp1Movie = undefined;
_global.path.currentPopUp = 24;
_global.path.helpTips[24].showPopUp();
loseHappiness(4 / _global.path.UnloadSpeed);
} else if (((need == _global.stage.game.sleepy) && (_global.path.tutorialDay == true)) && (((where.ID == _global.stage.chair[0].ID) || (where.ID == _global.stage.carpet[0].ID)) || (where.ID == _global.stage.box[0].ID))) {
_global.path.currentMovie = _global.stage.bed[0].clip.object;
_global.path.currentHelpMovie = _global.stage.prekrivac[0].clip;
_global.path.currentHelp1Movie = _global.stage.bedFront[0].clip;
_global.path.currentPopUp = 29;
_global.path.helpTips[29].showPopUp();
_global.stage.game.spiePopup = true;
loseHappiness(4 / _global.path.UnloadSpeed);
} else if (((need == _global.stage.game.toy) && (_global.path.tutorialDay == true)) && (((where.ID == _global.stage.bed[0].ID) || (where.ID == _global.stage.chair[0].ID)) || (where.ID == _global.stage.box[0].ID))) {
_global.path.currentMovie = undefined;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
_global.path.currentPopUp = 31;
_global.path.helpTips[31].showPopUp();
loseHappiness(4 / _global.path.UnloadSpeed);
} else if (((need == _global.stage.game.watered) && (_global.path.tutorialDay == true)) && ((((where.ID == _global.stage.bed[0].ID) || (where.ID == _global.stage.chair[0].ID)) || (where.ID == _global.stage.carpet[1].ID)) || (where.ID == _global.stage.box[0].ID))) {
_global.path.currentMovie = _global.stage.diperTable.clip.object;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
_global.path.currentPopUp = 4;
_global.path.helpTips[4].showPopUp();
loseHappiness(4 / _global.path.UnloadSpeed);
} else if (((need == _global.stage.game.poop) && (_global.path.tutorialDay == true)) && ((((where.ID == _global.stage.bed[0].ID) || (where.ID == _global.stage.chair[0].ID)) || (where.ID == _global.stage.carpet[1].ID)) || (where.ID == _global.stage.box[0].ID))) {
_global.path.currentMovie = _global.stage.bath.clip.object;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
_global.path.currentPopUp = 3;
_global.path.helpTips[3].showPopUp();
loseHappiness(4 / _global.path.UnloadSpeed);
} else if (((((((need != _global.stage.game.vomited) && (need != _global.stage.game.watered)) && (need != _global.stage.game.upside)) && (need != _global.stage.game.poop)) && (NanyFlag == true)) && (where.ID == _global.stage.carpet[1].ID)) && _global.path.nany) {
NanyFlag = false;
timeNeeded = timeNeeded * 4;
happiness = 100;
addHappiness();
setNeed(_global.stage.game.happy);
soundName = "babyLaughing";
currSoundName = soundName;
_global.path.sound.playSound(currSoundName);
needCanChange = true;
} else if (((((((NanyFlag == true) && (where.ID == _global.stage.chair[1].ID)) && _global.path.nany) && (need != _global.stage.game.vomited)) && (need != _global.stage.game.watered)) && (need != _global.stage.game.poop)) && (need != _global.stage.game.upside)) {
NanyFlag = false;
timeNeeded = timeNeeded * 2;
happiness = 100;
addHappiness();
setNeed(_global.stage.game.happy);
soundName = "babyLaughing";
currSoundName = soundName;
_global.path.sound.playSound(currSoundName);
needCanChange = true;
} else {
loseHappiness(4 / _global.path.UnloadSpeed);
}
}
function changeNeed() {
_global.path.helpTips[2].dettachPopUp();
_global.path.helpTips[23].dettachPopUp();
_global.path.helpTips[21].dettachPopUp();
_global.path.helpTips[28].dettachPopUp();
now = getTimer();
toy._visible = true;
toy = undefined;
eat = false;
cleaning = false;
var _local6;
if (_global.path.tutorialDay == true) {
if (_global.needsNum < 8) {
var _local3 = _global.needsNum;
_global.needsNum = _global.needsNum + 1;
} else {
needCanChange = false;
}
}
if (_global.dayCount == 0) {
if ((_global.needsNum < 8) && (_global.stage.game.stopFlag == false)) {
var _local3 = _global.needsNum;
_global.stage.game.flagPopup = false;
_global.needsNum = _global.needsNum + 1;
} else {
var _local3 = Math.floor(Math.random() * (_global.needsNum - 3)) + 2;
}
}
if (_global.dayCount > 0) {
var _local3 = Math.floor(Math.random() * (_global.path.needNumber - 2)) + 2;
if (((_local3 == 2) || (_local3 == 3)) || (_local3 == 8)) {
_local6 = 2;
} else if ((_local3 == 9) || (_local3 == 7)) {
_local6 = Math.round(_global.stage.game.babiesInRoom / 2);
} else if (_local3 == 4) {
_local6 = _global.path.boxNum + 1;
} else if (_local3 == 6) {
_local6 = _global.path.bedNum + 1;
} else if (_local3 == 5) {
_local6 = _global.path.chairNum + 1;
}
var _local5 = 0;
var _local4 = 1;
while (_local4 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local4].need == _local3) {
_local5 = _local5 + 1;
}
_local4++;
}
if (_local5 >= _local6) {
_local3 = _local3 + 1;
if (_local3 > _global.path.needNumber) {
_local3 = 6;
}
}
if (_local3 == currentNeed) {
_local3 = _local3 + 1;
if (_local3 > _global.path.needNumber) {
_local3 = 4;
}
}
if ((_local3 == 8) && (where.ID == _global.stage.bed[0].ID)) {
_local3 = 2;
}
}
currentNeed = _local3;
if (_local3 == _global.stage.game.angry) {
if ((_global.path.tutorialDay == false) && (_global.pauzaPopupFirst == false)) {
_global.path.helpTips[46].showPopUp();
if (_global.path.helpTips[46].shown == 1) {
_global.stage.prekidac.clip.gotoAndPlay("on");
}
_global.path.pauzaPopupFlag = true;
_global.pauzaPopupFirst = true;
}
if (!(((NanyFlag == true) && ((where.ID == _global.stage.carpet[1].ID) || (where.ID == _global.stage.chair[1].ID))) && (_global.path.nany))) {
}
} else if (_local3 == _global.stage.game.hungry) {
if (!(((NanyFlag == true) && ((where.ID == _global.stage.carpet[1].ID) || (where.ID == _global.stage.chair[1].ID))) && (_global.path.nany))) {
if (_global.path.KitchenType == 0) {
} else {
_global.path.currentMovie = _global.stage.bigChair[0].clip;
_global.path.currentHelpMovie = _global.stage.bigchairMask[0].clip;
_global.path.currentHelp1Movie = undefined;
_global.path.currentPopUp = 15;
_global.path.helpTips[15].showPopUp();
}
}
} else if (_local3 == _global.stage.game.sleepy) {
if (!(((NanyFlag == true) && ((where.ID == _global.stage.carpet[1].ID) || (where.ID == _global.stage.chair[1].ID))) && (_global.path.nany))) {
if (_global.path.BedroomType == 0) {
_global.path.currentPopUp = 12;
if (_global.path.tutorialDay == true) {
} else {
_global.path.helpTips[43].showPopUp();
_global.path.currentMovie = undefined;
_global.path.currentHelp1Movie = undefined;
_global.path.currentHelpMovie = undefined;
}
} else {
_global.path.currentMovie = _global.stage.panelButton[0].clip;
_global.path.currentHelp1Movie = undefined;
_global.path.currentHelpMovie = undefined;
_global.path.currentPopUp = 16;
_global.path.helpTips[16].showPopUp();
}
}
} else if (_local3 == _global.stage.game.toy) {
_global.stage.game.babyWantsToy = true;
if (!(((NanyFlag == true) && ((where.ID == _global.stage.carpet[1].ID) || (where.ID == _global.stage.box[0].ID))) && (_global.path.nany))) {
soundName = "grumpyWantsToy";
currSoundName = soundName;
_global.path.sound.playSound(currSoundName);
}
} else if (_local3 == _global.stage.game.horse) {
if (!(((NanyFlag == true) && ((where.ID == _global.stage.carpet[1].ID) || (where.ID == _global.stage.chair[1].ID))) && (_global.path.nany))) {
_global.path.currentPopUp = 14;
_global.path.currentMovie = _global.stage.horse[0].clip;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
_global.path.helpTips[14].showPopUp();
}
} else if (_local3 == _global.stage.game.poop) {
if (_global.path.tutorialDay == true) {
} else {
_global.path.helpTips[41].showPopUp();
}
if (_global.stage.game.poopCount >= 2) {
needCanChange = false;
} else {
_global.stage.game.poopCount = _global.stage.game.poopCount + 1;
}
} else if (_local3 == _global.stage.game.vomited) {
_global.path.helpTips[44].showPopUp();
_global.path.currentMovie = _global.stage.trash.object;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
if (_global.stage.game.vomitedCount >= 2) {
needCanChange = false;
} else {
_global.stage.game.vomitedCount = _global.stage.game.vomitedCount + 1;
}
} else if (_local3 == _global.stage.game.watered) {
_global.path.currentPopUp = 4;
if (_global.path.tutorialDay == true) {
} else {
_global.path.helpTips[42].showPopUp();
}
if (_global.stage.game.wateredCount >= 2) {
needCanChange = false;
} else {
_global.stage.game.wateredCount = _global.stage.game.wateredCount + 1;
}
} else if (_local3 == _global.stage.game.upside) {
if (where.ID == _global.stage.carpet[1].ID) {
_global.path.helpTips[45].showPopUp();
_global.path.currentMovie = undefined;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
prevrtenoPopup = true;
needCanChange = true;
} else {
needCanChange = false;
}
}
if (needCanChange) {
if ((_local3 == 6) && ((getTimer() - _global.stage.game.endDay) >= (_global.stage.game.Time - 15000))) {
changeNeed();
} else {
need = _local3;
var _local10 = "b" + clipIndex;
var _local9;
if ((where.ID == _global.stage.bed[1].ID) && (need == _global.stage.game.sleepy)) {
sleeping = true;
var _local8;
if (where.linkID == _global.stage.bed[0].linkID) {
_local8 = "1";
}
if (where.linkID == _global.stage.bed[1].linkID) {
_local8 = "2";
}
if (where.linkID == _global.stage.bed[2].linkID) {
_local8 = "3";
}
if (where.linkID == _global.stage.bed[3].linkID) {
_local8 = "4";
}
_local9 = ("need" + _global.stage.game.sleepy.toString()) + _local8;
} else {
_local9 = "need" + need.toString();
sleeping = false;
}
if ((where.ID == _global.stage.box[1].ID) && (need == _global.stage.game.angry)) {
_global.path.helpTips[23].showPopUp();
_local9 = "need1";
}
clip[_local10].gotoAndStop(_local9);
timeNeeded = (15 + ((_global.stage.game.babiesInRoom - 3) * 2)) + random(10);
timeSetted = false;
needCanChange = false;
trace("this.need " + need);
if ((need == _global.stage.game.sleepy) && (where.ID == _global.stage.carpet[0].ID)) {
trace("this.where.part " + where.part);
if ((((where.part % 7) == 0) || ((where.part % 7) == 4)) || ((where.part % 7) == 3)) {
trace("bebeto na karpetot");
var _local7 = "b" + clipIndex;
trace("====================== S L E E P Y ==============================");
trace("this.clip[bebence] " + clip[_local7]);
trace("this.clip[bebence].need " + clip[_local7].need);
clip[_local7].need.cloud._x = clip[_local7].need.cloud._x + 10;
clip[_local7].need._xscale = clip[_local7].need._xscale * -1;
clip[_local7].need._x = clip[_local7].need._x - 10;
}
}
if ((need == _global.stage.game.sleepy) && ((where.linkID == "chair3") || (where.linkID == "chair4"))) {
trace("this.where.part " + where.part);
trace("bebeto na karpetot");
var _local7 = "b" + clipIndex;
trace("====================== S L E E P Y ==============================");
trace("this.clip[bebence] " + clip[_local7]);
trace("this.clip[bebence].need " + clip[_local7].need);
clip[_local7].need.cloud._x = clip[_local7].need.cloud._x + 10;
clip[_local7].need._xscale = clip[_local7].need._xscale * -1;
clip[_local7].need._x = clip[_local7].need._x - 10;
}
}
}
}
function setNeed(_need) {
if (clip) {
toy.clip._visible = true;
toy = undefined;
eat = false;
cleaning = false;
sleeping = false;
if ((where.ID == _global.stage.bed[1].ID) && (need == _global.stage.game.sleepy)) {
var _local4 = "upgrade" + where.upgrade.toString();
where.krevet_mc.gotoAndStop(_local4);
}
need = _need;
var _local3 = "b" + clipIndex;
var _local5;
_local5 = "need" + need.toString();
clip[_local3].gotoAndStop(_local5);
if (where.ID == _global.stage.horse[0].ID) {
clip[_local3].anim._visible = false;
}
if (_global.stage.clown.clicked == true) {
hearts.gotoAndStop(1);
_global.stage.clown.clicked = false;
}
if (need == _global.stage.game.poop) {
soundName = "babyPoop";
currSoundName = soundName;
_global.path.sound.playSound(currSoundName);
}
timeSetted = false;
}
}
function loseHappiness(speed) {
_global.stage.game.changelevelHappiness();
if ((happiness > 0) && (flagForHome == false)) {
var _local3 = "b" + clipIndex;
happiness = happiness - speed;
hearts.gotoAndStop(Math.round(100 - happiness));
_global.stage.game.changelevelHappiness();
}
if ((happiness <= 0) && (!unHappy)) {
unHappy = true;
timeUnHappy = getTimer();
_global.stage.game.maxLevelBabies--;
flag = true;
}
if (happiness > 0) {
unhapy = 0;
}
if (trepka == true) {
trepkacFlag = true;
}
if ((timeUnHappy > 0) && (happiness <= 0)) {
trace("bebeto e uste nesrakno pomalku od 0");
p = getTimer();
if (unhapy == 0) {
var _local3 = "b" + clipIndex;
clip[_local3].need.gotoAndStop(2);
unhapy = 2;
}
if (_global.path.tutorialDay == false) {
if ((p - timeUnHappy) > 30000) {
_global.path.endGame = true;
_global.path.babyDie = true;
}
if ((((p - timeUnHappy) > 15000) && (_global.path.endGame == false)) || ((trepkacFlag == true) && (_global.path.endGame == false))) {
hearts.gotoAndStop("lastTeen");
trepka = true;
if (unhapy == 2) {
var _local3 = "b" + clipIndex;
clip[_local3].need.gotoAndStop(2);
clip[_local3].need.AngryCloud._x = clip[_local3].need.AngryCloud._x - 15;
clip[_local3].need.zzzz._x = clip[_local3].need.zzzz._x - 5;
clip[_local3].need.AngryCloud.gotoAndPlay(95);
unhapy = 3;
}
_global.stage.babyUnhappy = true;
if (flag == true) {
where.clip.bedButton.gotoAndStop(3);
where.clip.bedButton.tepkac.gotoAndPlay("speed2");
_global.path.BabysocialRating = _global.path.BabysocialRating - 30;
flag = false;
}
}
}
}
}
function addHappiness(speed) {
if ((happiness <= 0) && (flagForHome == false)) {
timeUnHappy = undefined;
unHappy = false;
var _local4 = "b" + clipIndex;
happiness = happiness + speed;
hearts.gotoAndStop(Math.round((100 - happiness) + 1));
_global.stage.babyUnhappy = false;
}
_global.stage.game.changelevelHappiness();
if (happiness == 100) {
hearts.gotoAndStop(1);
_global.stage.clown.clicked = false;
}
if (((happiness < 100) && (happiness > 0)) && (flagForHome == false)) {
var _local4 = "b" + clipIndex;
happiness = happiness + speed;
hearts.gotoAndStop(Math.round((100 - happiness) + 1));
_global.stage.game.changelevelHappiness();
}
if (happiness > 3) {
trepka = false;
trepkacFlag = false;
}
}
function playBabyCrying() {
if (clip && (_global.off == false)) {
soundCry = new Sound(clip);
soundCry.volume = _global.tempBar;
soundCry.attachSound("babyCrying");
soundCry.start();
soundCry.setVolume(_global.tempBar);
}
}
function babyCryToy() {
if (clip && (_global.off == false)) {
soundCry = new Sound(clip);
soundCry.volume = _global.tempBar;
soundCry.attachSound("cry_Baby_toy");
soundCry.start();
soundCry.setVolume(_global.tempBar);
}
}
function stopBabyCrying() {
soundCry.stop();
delete soundCry;
}
function attachClip(x_, y_, scalex, scaley, babydepth) {
clip = _global.stage.attachMovie("bebe", instanceName, babydepth, {_x:x_, _y:y_, _xscale:scalex, _yscale:scaley});
var _local3 = babydepth + 207;
if (unhapy == 3) {
var _local5 = "b" + clipIndex;
clip[_local5].need.gotoAndStop(2);
clip[_local5].need.AngryCloud.gotoAndPlay(95);
} else if (unhapy == 2) {
var _local5 = "b" + clipIndex;
clip[_local5].need.gotoAndStop(2);
}
if (where == _global.stage.box[0]) {
_local3 = 20001;
}
if (where == _global.stage.box[1]) {
_local3 = babydepth + 3;
}
if (where == _global.stage.chair[3]) {
_local3 = _global.stage.chair[3].clip.getDepth() + 3;
}
while (_global.stage.getInstanceAtDepth(_local3)) {
_local3++;
}
hearts = _global.stage.attachMovie("hearts", "hearts", _local3, {_x:clip._x + 20, _y:clip._y + 80, _xscale:40, _yscale:40});
hearts.gotoAndStop(Math.round((100 - happiness) + 1));
}
function removeClip() {
hearts.removeMovieClip();
hearts = undefined;
clip.removeMovieClip();
}
var ID = 25;
var MaxbabyHapyTime = 1000;
var flag = false;
var flag1 = false;
var doorFlag = false;
}
Symbol 5886 MovieClip [__Packages.conf.Level1Conf] Frame 0
class conf.Level1Conf
{
var numBeds, numChairs, numBoxes, flagBox1, flagBox2, flagBed1, flagBed2, flagBed3, flagBed4, flagchair1, flagchair2, flagchair3, flagchair4, flagCarpet3, flagCarpet4, flagCarpet5, flagCarpet6, _depth, l, board;
function Level1Conf () {
init();
}
function init() {
numBeds = 0;
numChairs = 0;
numBoxes = 0;
if (_global.path.tutorialDay == true) {
_global.path.dayBabiesNum = 1;
} else {
_global.path.dayBabiesNum = 2;
}
_global.stage.level1conf = this;
_global.game = {};
_global.toyNumber = 15;
_global.paintNumber = 2;
_global.foodMakerNumber = 0;
_global.game.BedroomType = 1;
flagBox1 = false;
flagBox2 = false;
flagBed1 = false;
flagBed2 = false;
flagBed3 = false;
flagBed4 = false;
flagchair1 = false;
flagchair2 = false;
flagchair3 = false;
flagchair4 = false;
flagCarpet3 = false;
flagCarpet4 = false;
flagCarpet5 = false;
flagCarpet6 = false;
_global.path.yourItems = new Array();
_depth = new control.DepthController();
_global.stage.level = 0;
_global.bonus = 0;
_global.stage.calendar = new mc.Calendar("calendar", 425.9, 60.3, 0, 100, 100);
_global.stage.door = new mc.Door("door" + _global.path.ReceptionsType, 486.05, 18.25, 0, 100, 100);
_global.stage.bath = new mc.Bath("bath", 213.9, 162.85, 0, 100, 100);
_global.stage.diperTable = new mc.DiperTable("diperTable", 320.75, 136.3, 0, 100, 100);
_global.stage.dipers = new mc.Diper("diapers", 435.2, 111, 0, 100, 100);
_global.stage.trash = new mc.Trash("trash", 445.9, 211, 0, 100, 100);
_global.stage.foodMaker = new mc.FoodMaker("foodMaker", 725, 205, 0, 34, 34);
_global.stage.kitchen = new mc.Kitchen("kitchen", 652.15, 211.95, 0, 100, 100);
_global.stage.chair = [new mc.Chair("chair1", 239.35, 258.1, 0, 100, 100), new mc.Chair("chair2", 313.3, 250.1, 0, 100, 100), new mc.Chair("chair3", 387.3, 250.1, 0, 100, 100), new mc.Chair("chair4", 462.3, 258.1, 0, 100, 100)];
_global.stage.boxover = [new mc.Boxover("boxover1", 3.8, 284.7, 0, 100, 100), new mc.Boxover("boxover2", 40.15, 256.87, 0, 100, 100)];
_global.stage.boxFront = new mc.BoxFront("boxFront", 3.8, 284.7, 0, 100, 100);
_global.stage.carpet = [new mc.Carpet("carpet3", 442.3, 308.9, 0, 152.2, 138.8), new mc.Carpet("carpet2", 312.2, 299.9, 0, 152.2, 138.8), new mc.Carpet("carpet1", 174.6, 302.4, 0, 152.2, 138.8), new mc.Carpet("carpet7", 442.3, 308.9, 0, 152.2, 138.8), new mc.Carpet("carpet6", 312.2, 299.9, 0, 152.2, 138.8), new mc.Carpet("carpet5", 312.2, 299.9, 0, 152.2, 138.8), new mc.Carpet("carpet4", 174.6, 302.4, 0, 152.2, 138.8)];
_global.stage.box = [new mc.Box("box1", 3.5, 284.55, 0, 100, 100), new mc.Box("box2", 40.7, 257, 0, 100, 100)];
_global.stage.bed = [new mc.Bed("bed1", 6.15, 391.85, 0, 100, 100), new mc.Bed("bed2", 212.85, 391.15, 0, 100, 100), new mc.Bed("bed3", 340, 390.95, 0, 100, 100), new mc.Bed("bed4", 524.5, 390.85, 0, 100, 100)];
_global.stage.bedFront = [new mc.BedFront("bedfront1", 5.9, 475.9, 0, 100, 100), new mc.BedFront("bedfront2", 213.4, 474.9, 0, 100, 100), new mc.BedFront("bedfront3", 340, 473.95, 0, 100, 100), new mc.BedFront("bedfront4", 548.75, 474.9, 0, 100, 100)];
_global.stage.prekrivac = [new mc.Prekrivac("prekrivac1", 13.45, 440.2, 0, 100, 100), new mc.Prekrivac("prekrivac2", 220.7, 438.1, 0, 100, 100), new mc.Prekrivac("prekrivac3", 345.6, 438.1, 0, 100, 100), new mc.Prekrivac("prekrivac4", 530.85, 439.2, 0, 100, 100)];
_global.stage.bedDaska = [new mc.BedDaska("bed-daska1", 6.15, 391.85, 0, 100, 100), new mc.BedDaska("bed-daska2", 212.85, 391.15, 0, 100, 100), new mc.BedDaska("bed-daska3", 340, 390.95, 0, 100, 100), new mc.BedDaska("bed-daska4", 524.5, 390.85, 0, 100, 100)];
_global.stage.toy = [new mc.Toy("toy1", 743, 347, 61, 75, 75), new mc.Toy("toy2", 758, 351, 61, 100, 100), new mc.Toy("toy3", 708, 345, 0, 75, 75), new mc.Toy("toy4", 716, 353, 0, 100, 100), new mc.Toy("toy5", 735, 351, 0, 75, 75), new mc.Toy("toy6", 698, 350, 0, 100, 100), new mc.Toy("toy7", 688, 359, 0, 75, 75), new mc.Toy("toy8", 754, 345, 0, 75, 75), new mc.Toy("toy9", 763, 357, 0, 75, 75), new mc.Toy("toy10", 763, 370, 0, 75, 75), new mc.Toy("toy11", 682, 347, 0, 100, 100), new mc.Toy("toy12", 740, 373, 0, 100, 100), new mc.Toy("toy13", 686, 367, 0, 75, 75), new mc.Toy("toy14", 749, 356, 0, 75, 75), new mc.Toy("toy15", 707, 373, 0, 75, 75)];
_global.stage.towel = new mc.Towel("towel", 657.4, 186.6, 0, 100, 100);
_global.stage.paint = new mc.Paint("paint", 3, 120, 0, 100, 100);
_global.stage.closet = new mc.Closet("closet", 107.05, 20.65, 0, 100, 100);
_global.stage.panel = new mc.BedroomPanel("bedroomPanel_mc", 170, 131, 0, 100, 100);
_global.stage.plant = new mc.Plant("plant", 710.8, 463.3, 0, 100, 100);
_global.stage.clock = [new mc.Clock("clock", 433, 13, 0, 100, 100), new mc.Clock("digi_clock", 185, 11, 0, 100, 100)];
_global.stage.srca = new mc.Srce("srca_mc", 13, 15, 0, 80, 80);
_global.stage.prekidac = new mc.Senka("prekidac", 452.5, 137, 0, 70, 70);
_global.stage.reception = new mc.reception("Receptions_mc", 0, 0, 0, 100, 100);
_global.stage.chairMask = [new mc.ChairMask("chairMask1", 239.35, 262.25, 0, 100, 100), new mc.ChairMask("chairMask2", 313.3, 254.25, 0, 100, 100), new mc.ChairMask("chairMask3", 387.3, 254.25, 0, 100, 100), new mc.ChairMask("chairMask4", 462.3, 262.25, 0, 100, 100)];
_global.stage.toy_boxes = [new mc.Toy_box("toy_box", 665.25, 345.85, 0, 100, 100), new mc.Toy_box("toy_box1", 665.25, 345.85, 0, 100, 100)];
_global.stage.babies = [new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby()];
_global.stage.bottle = new mc.Bottle("BOTTLE1", 715, 243, 0, 17, 17);
_global.stage.bell = new mc.Bell("bell", 568.8, 10.4, 0, 25, 25);
_global.stage.window = [new mc.Windows("prozor1", 259.2, 23.35, 0, 100, 100), new mc.Windows("prozor2", 675.65, 28.15, 0, 100, 100)];
_global.stage.clown = new mc.Clown("clown", 17, 43, 0, 100, 100);
_global.stage.nany = new mc.Nany("nany", 354, 306, 0, 55, 55);
_global.stage.girl = new mc.BabySitter("girl", 214, 302, 17800, 0, 65, 65, _global.stage.astar);
_global.stage.girl.clip = _global.stage.attachMovie("girl", "babySitter", 17800, {_x:214, _y:302, _rotation:0, _xscale:76, _yscale:76});
_global.stage.nogarka = _global.stage.attachMovie("nogarka", "nogarka", 30007, {_x:213.9, _y:162.85, _rotation:0, _xscale:100, _yscale:100});
_global.stage.girl.clip.cacheAsBitmap = true;
if (_global.path.tutorialDay) {
_global.stage.attachMovie("Skip_tutorial", "Skip_tutorial", 70037, {_x:165.1, _y:103.5, _rotation:0, _xscale:100, _yscale:100});
}
l = new xx.Level1();
board = new XML();
board.parseXML(l.xml);
buildXMLGrid();
createObjects();
}
function buildXMLGrid() {
board = board.firstChild;
var _local6 = 1;
var _local7 = board.firstChild;
while (_local7 != null) {
var _local5 = 1;
var _local4 = _local7.firstChild;
while (_local4 != null) {
var _local3 = (("node" + _local5) + "_") + _local6;
var _local9 = (_local5 - 1) * _global.stage.game.spacing;
var _local8 = (_local6 - 1) * _global.stage.game.spacing;
var _local17 = _local4.attributes.type;
var _local10;
switch (_local17) {
case "1" :
_local10 = "walk";
break;
case "2" :
_local10 = "obsticle";
_global.stage.astar.nodes[_local3].solid = true;
}
_global.stage.game[_local3] = {x:_local5, y:_local6, xmid:_local9 + (_global.stage.game.spacing / 2), ymid:_local8 + (_global.stage.game.spacing / 2), name:_local3, type:_local17, clip:_global.stage.game.path[_local3]};
_local4 = _local4.nextSibling;
_local5++;
}
_local7 = _local7.nextSibling;
_local6++;
}
_global.stage.game.rows = _local6 - 1;
_global.stage.game.cols = _local5 - 1;
_global.stage.astar.maxX = _global.stage.game.rows;
_global.stage.astar.maxY = _global.stage.game.cols;
initializeLevel1();
}
function initializeLevel1() {
_global.stage.bottle.attachPoint = {x:16, y:9};
_global.stage.bottle.setCoordinates(643, 375, "right");
_global.stage.kitchen.setCoordinates(643, 375);
_global.stage.chair[0].setCoordinates(214, 302, "right", "right");
_global.stage.chair[0].attachPoint = {x:252, y:223};
_global.stage.chair[1].setCoordinates(342, 295, "down", "right");
_global.stage.chair[1].attachPoint = {x:325, y:215};
_global.stage.chair[2].setCoordinates(417, 295, "down", "left");
_global.stage.chair[2].attachPoint = {x:445, y:215};
_global.stage.chair[3].setCoordinates(546, 316, "left", "left");
_global.stage.chair[3].attachPoint = {x:522, y:225};
_global.stage.carpet[0].setCoordinates(501, 378, "left");
_global.stage.carpet[1].setCoordinates(395, 365, "up");
_global.stage.carpet[2].setCoordinates(270, 375, "right");
_global.stage.carpet[0].attachPoint = {x:531, y:315};
_global.stage.carpet[1].attachPoint = {x:367, y:327};
_global.stage.carpet[2].attachPoint = {x:270, y:307};
_global.stage.carpet[6].setCoordinates(214, 302, "right");
_global.stage.carpet[5].setCoordinates(342, 302, "down");
_global.stage.carpet[4].setCoordinates(417, 302, "down");
_global.stage.carpet[3].setCoordinates(521, 333, "left");
_global.stage.carpet[6].attachPoint = {x:252, y:262};
_global.stage.carpet[5].attachPoint = {x:329, y:262};
_global.stage.carpet[4].attachPoint = {x:447, y:259};
_global.stage.carpet[3].attachPoint = {x:520, y:279};
_global.stage.bed[0].setCoordinates(170, 555, "left", "right");
_global.stage.bed[0].attachPoint = {x:71, y:390};
_global.stage.bed[1].setCoordinates(170, 555, "right", "right");
_global.stage.bed[1].attachPoint = {x:258, y:390};
_global.stage.bed[2].setCoordinates(490, 555, "left", "left");
_global.stage.bed[2].attachPoint = {x:424, y:390};
_global.stage.bed[3].setCoordinates(490, 555, "right", "left");
_global.stage.bed[3].attachPoint = {x:610, y:390};
_global.stage.foodMaker.setCoordinates(650, 375, "right");
_global.stage.diperTable.setCoordinates(387, 274);
_global.stage.bath.setCoordinates(387, 274);
_global.stage.door.setCoordinates(568, 277);
_global.stage.towel.setCoordinates(617, 300, "right");
_global.stage.box[1].setCoordinates(170, 345, "left");
_global.stage.box[1].attachPoint = {x:79, y:257};
_global.stage.box[1].clip.gotoAndStop(2);
_global.stage.box[0].setCoordinates(125, 90, "left");
_global.stage.box[0].attachPoint = {x:43, y:300};
_global.stage.trash.setCoordinates(445.9, 211, "up");
var _local2 = 0;
while (_local2 <= 14) {
_global.stage.toy[_local2].setCoordinates(679, 504);
_local2++;
}
}
function attachMC(mc, changeMouse) {
mc.depth = _depth.getDepth(mc);
mc.clip = _global.stage.attachMovie(mc.linkID, getUniqueName(), mc.depth, {_x:mc.x, _y:mc.y, _rotation:mc.rot, _xscale:mc.xscale, _yscale:mc.yscale});
mc.clip.cacheAsBitmap = true;
mc.clip.tabEnabled = false;
if (changeMouse) {
mc.clip.onRollOver = function () {
_global.path.cursor.clip.gotoAndStop("hand");
};
mc.clip.onRollOut = function () {
_global.path.cursor.clip.gotoAndStop("arrow");
};
mc.clip.onDragOut = function () {
_global.path.cursor.clip.gotoAndStop("arrow");
};
}
}
function createObjects() {
attachMC(_global.stage.calendar);
attachMC(_global.stage.carpet[0], true);
attachMC(_global.stage.carpet[1], true);
attachMC(_global.stage.carpet[2], true);
_global.path.yourItems.push(_global.stage.carpet[0]);
attachMC(_global.stage.window[0]);
attachMC(_global.stage.window[1]);
attachMC(_global.stage.bottle, true);
_global.stage.bottle.clip._visible = false;
attachMC(_global.stage.chairArray[1], true);
attachMC(_global.stage.door, true);
if (_global.path.clown) {
attachMC(_global.stage.clown);
}
if (_global.path.nany) {
attachMC(_global.stage.nany);
}
attachMC(_global.stage.bath, true);
_global.path.yourItems.push(_global.stage.bath);
attachMC(_global.stage.diperTable, true);
_global.path.yourItems.push(_global.stage.diperTable);
attachMC(_global.stage.dipers);
_global.path.yourItems.push(_global.stage.dipers);
attachMC(_global.stage.trash, true);
_global.path.yourItems.push(_global.stage.trash);
attachMC(_global.stage.prekidac, true);
attachMC(_global.stage.foodMaker, true);
if (_global.path.mixer.level3 > 0) {
_global.stage.foodMaker.clip.gotoAndStop("upgrade2");
_global.foodMakerNumber = 2;
_global.stage.foodMaker.FoodMakerProp(3);
} else if (_global.path.mixer.level2 > 0) {
_global.stage.foodMaker.clip.gotoAndStop("upgrade1");
_global.foodMakerNumber = 1;
_global.stage.foodMaker.FoodMakerProp(2);
} else if (_global.path.mixer.level1 > 0) {
_global.stage.foodMaker.clip.gotoAndStop("upgrade0");
_global.foodMakerNumber = 0;
_global.stage.foodMaker.FoodMakerProp(1);
}
_global.path.yourItems.push(_global.stage.foodMaker);
attachMC(_global.stage.kitchen);
var _local6 = _global.path.chair.level1;
var _local9 = _global.path.chair.level2;
var _local7 = _global.path.chair.level3;
var _local5 = 3;
while (_local5 >= 1) {
var _local4 = "level" + _local5;
if ((_global.path.chair[_local4] > 0) && (flagchair1 == false)) {
attachMC(_global.stage.chair[0], true);
attachMC(_global.stage.chairMask[0], true);
_global.path.yourItems.push(_global.stage.chair[0]);
_global.stage.chair[0].chairProp(_local5);
_global.stage.chair[0].clip.gotoAndStop(_local5);
_global.stage.chairMask[0].clip.gotoAndStop(_local5);
_global.path.chair[_local4]--;
flagchair1 = true;
numChairs = numChairs + 1;
}
if ((_global.path.chair[_local4] > 0) && (flagchair2 == false)) {
attachMC(_global.stage.chair[1], true);
attachMC(_global.stage.chairMask[1], true);
_global.path.yourItems.push(_global.stage.chair[1]);
_global.stage.chair[1].chairProp(_local5);
_global.stage.chair[1].clip.gotoAndStop(_local5);
_global.stage.chairMask[1].clip.gotoAndStop(_local5);
_global.path.chair[_local4]--;
flagchair2 = true;
numChairs = numChairs + 1;
}
if ((_global.path.chair[_local4] > 0) && (flagchair3 == false)) {
attachMC(_global.stage.chair[2], true);
attachMC(_global.stage.chairMask[2], true);
_global.path.yourItems.push(_global.stage.chair[2]);
_global.stage.chair[2].chairProp(_local5);
_global.stage.chair[2].clip.gotoAndStop(_local5);
_global.stage.chairMask[2].clip.gotoAndStop(_local5);
_global.path.chair[_local4]--;
flagchair3 = true;
numChairs = numChairs + 1;
}
if ((_global.path.chair[_local4] > 0) && (flagchair4 == false)) {
attachMC(_global.stage.chair[3], true);
attachMC(_global.stage.chairMask[3], true);
_global.path.yourItems.push(_global.stage.chair[3]);
_global.stage.chair[3].chairProp(_local5);
_global.stage.chair[3].clip.gotoAndStop(_local5);
_global.stage.chairMask[3].clip.gotoAndStop(_local5);
_global.path.chair[_local4]--;
flagchair4 = true;
numChairs = numChairs + 1;
}
_local5--;
}
switch (numChairs) {
case 0 :
attachMC(_global.stage.carpet[6], true);
case 1 :
attachMC(_global.stage.carpet[5], true);
case 2 :
attachMC(_global.stage.carpet[4], true);
case 3 :
attachMC(_global.stage.carpet[3], true);
case 4 :
}
attachMC(_global.stage.carpet[7 - _local5], true);
attachMC(_global.stage.closet);
if (_global.path.plant.level1 > 0) {
attachMC(_global.stage.plant);
_global.path.yourItems.push(_global.stage.plant);
_global.stage.plant.clip.gotoAndStop(1);
}
if (_global.path.plant.level2 > 0) {
attachMC(_global.stage.plant);
_global.stage.plant.clip.gotoAndStop(2);
}
attachMC(_global.stage.paint);
attachMC(_global.stage.srca);
attachMC(_global.stage.senka);
attachMC(_global.stage.clock[0]);
_local5 = 0;
while (_local5 < _global.toyNumber) {
attachMC(_global.stage.toy[_local5], true);
_local5++;
}
if (_global.path.ReceptionsType > 0) {
attachMC(_global.stage.reception);
_global.stage.reception.receptionProp(_global.path.ReceptionsType);
_global.stage.window[0].clip.gotoAndStop("R" + _global.path.ReceptionsType);
_global.path.yourItems.push(_global.stage.reception);
}
var _local8 = _global.path.bed.level1;
var _local10 = _global.path.bed.level2;
var _local11 = _global.path.bed.level3;
var _local14 = _global.path.box.level1;
var _local13 = _global.path.box.level2;
var _local12 = _global.path.box.level3;
_local5 = 3;
while (_local5 >= 1) {
var _local4 = "level" + _local5;
if ((_global.path.box[_local4] > 0) && (flagBox1 == false)) {
attachMC(_global.stage.box[0], true);
attachMC(_global.stage.boxover[0], true);
attachMC(_global.stage.boxFront, true);
_global.path.yourItems.push(_global.stage.box[0]);
_global.stage.box[0].clip.gotoAndStop(_local5);
_global.stage.boxover[0].clip.gotoAndStop(_local5);
_global.stage.boxFront.clip.gotoAndStop(_local5);
_global.stage.box[0].BoxProp(_local5);
_global.path.box[_local4]--;
flagBox1 = true;
numBoxes = numBoxes + 1;
}
if ((_global.path.box[_local4] > 0) && (flagBox2 == false)) {
attachMC(_global.stage.box[1], true);
attachMC(_global.stage.boxover[1], true);
_global.path.yourItems.push(_global.stage.box[1]);
_global.stage.box[1].clip.gotoAndStop(_local5);
_global.stage.boxover[1].clip.gotoAndStop(_local5);
_global.stage.box[1].BoxProp(_local5);
_global.path.box[_local4]--;
flagBox2 = true;
numBoxes = numBoxes + 1;
}
_local5--;
}
var _local3 = 5;
_local5 = 3;
while (_local5 >= 1) {
var _local4 = "level" + _local5;
if ((_global.path.bed[_local4] > 0) && (flagBed1 == false)) {
attachMC(_global.stage.bed[0], true);
attachMC(_global.stage.bedFront[0], true);
attachMC(_global.stage.prekrivac[0], true);
attachMC(_global.stage.bedDaska[0], true);
_global.path.yourItems.push(_global.stage.bed[0]);
_global.stage.bed[0].BedProp(_local5);
_global.stage.bed[0].clip.gotoAndStop(_local3);
_global.stage.bedFront[0].clip.gotoAndStop(_local3);
_global.stage.prekrivac[0].clip.gotoAndStop(_local3);
_global.stage.bedDaska[0].clip.gotoAndStop(_local3);
_global.path.bed[_local4]--;
flagBed1 = true;
numBeds = numBeds + 1;
}
if ((_global.path.bed[_local4] > 0) && (flagBed2 == false)) {
attachMC(_global.stage.bed[1], true);
attachMC(_global.stage.bedFront[1], true);
attachMC(_global.stage.prekrivac[1], true);
attachMC(_global.stage.bedDaska[1], true);
_global.path.yourItems.push(_global.stage.bed[1]);
_global.stage.bed[1].BedProp(_local5);
_global.stage.bed[1].clip.gotoAndStop(_local3);
_global.stage.bedFront[1].clip.gotoAndStop(_local3);
_global.stage.prekrivac[1].clip.gotoAndStop(_local3);
_global.stage.bedDaska[1].clip.gotoAndStop(_local3);
_global.path.bed[_local4]--;
flagBed2 = true;
numBeds = numBeds + 1;
}
if ((_global.path.bed[_local4] > 0) && (flagBed3 == false)) {
attachMC(_global.stage.bed[2], true);
attachMC(_global.stage.bedFront[2], true);
attachMC(_global.stage.prekrivac[2], true);
attachMC(_global.stage.bedDaska[2], true);
_global.path.yourItems.push(_global.stage.bed[2]);
_global.stage.bed[2].BedProp(_local5);
_global.stage.bed[2].clip.gotoAndStop(_local3);
_global.stage.bedFront[2].clip.gotoAndStop(_local3);
_global.stage.prekrivac[2].clip.gotoAndStop(_local3);
_global.stage.bedDaska[2].clip.gotoAndStop(_local3);
_global.path.bed[_local4]--;
flagBed3 = true;
numBeds = numBeds + 1;
}
if ((_global.path.bed[_local4] > 0) && (flagBed4 == false)) {
attachMC(_global.stage.bed[3], true);
attachMC(_global.stage.bedFront[3], true);
attachMC(_global.stage.prekrivac[3], true);
attachMC(_global.stage.bedDaska[3], true);
_global.path.yourItems.push(_global.stage.bed[3]);
_global.stage.bed[3].BedProp(_local5);
_global.stage.bed[3].clip.gotoAndStop(_local3);
_global.stage.bedFront[3].clip.gotoAndStop(_local3);
_global.stage.prekrivac[3].clip.gotoAndStop(_local3);
_global.stage.bedDaska[3].clip.gotoAndStop(_local3);
_global.path.bed[_local4]--;
flagBed4 = true;
numBeds = numBeds + 1;
}
_local3 = _local3 - 2;
_local5--;
}
if (_global.path.tutorialDay == false) {
_global.path.dayBabiesNum = _global.path.dayBabiesNum + (numBeds - 1);
_global.path.dayBabiesNum = _global.path.dayBabiesNum + (numBoxes - 1);
_global.path.dayBabiesNum = _global.path.dayBabiesNum + (numChairs - 1);
}
if (_global.path.SecretaryType == 0) {
if (_global.path.dayBabiesNum > 6) {
_global.path.dayBabiesNum = 6;
}
} else if (_global.path.SecretaryType == 1) {
if (_global.path.dayBabiesNum > 8) {
_global.path.dayBabiesNum = 8;
}
} else if (_global.path.SecretaryType == 2) {
if (_global.path.dayBabiesNum > 10) {
_global.path.dayBabiesNum = 10;
}
} else if (_global.path.dayBabiesNum >= 12) {
_global.path.dayBabiesNum = 12;
}
if ((_global.dayCount % 5) == 0) {
_global.path.weekBabiesNum = _global.path.dayBabiesNum;
}
_global.path.bedNum = numBeds;
_global.path.boxNum = numBoxes;
_global.path.chairNum = numChairs;
_global.path.bed.level1 = _local8;
_global.path.bed.level2 = _local10;
_global.path.bed.level3 = _local11;
_global.path.box.level1 = _local14;
_global.path.box.level2 = _local13;
_global.path.box.level3 = _local12;
_global.path.chair.level1 = _local6;
_global.path.chair.level2 = _local9;
_global.path.chair.level3 = _local7;
attachMC(_global.stage.toy_boxes[0], true);
attachMC(_global.stage.toy_boxes[1], true);
attachMC(_global.stage.towel, true);
}
static function getUniqueName() {
var _local3 = "";
var _local2 = 1;
while (_local2 <= 4) {
var _local1 = 1;
while (_local1 <= 4) {
_local3 = _local3 + getRandomChar();
_local1++;
}
if (_local2 < 4) {
_local3 = _local3 + "-";
}
_local2++;
}
return(_local3);
}
static function getRandomChar() {
switch (Math.round(Math.random() + 1)) {
case 1 :
return(String.fromCharCode(Math.round(Math.random() * 25) + 65));
case 2 :
return(String.fromCharCode(Math.round(Math.random() * 25) + 97));
}
}
var id = 1;
}
Symbol 5887 MovieClip [__Packages.ss.MovieClipProp] Frame 0
class ss.MovieClipProp
{
var linkID, x, y, rot, xscale, yscale;
function MovieClipProp (l, x, y, rot, xs, ys) {
linkID = l;
this.x = x;
this.y = y;
this.rot = rot;
xscale = xs;
yscale = ys;
}
}
Symbol 5888 MovieClip [__Packages.mc.Calendar] Frame 0
class mc.Calendar extends ss.MovieClipProp
{
var time, destx, desty;
function Calendar (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
}
function CalendarProp(Time) {
time = Time;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 45;
}
Symbol 5889 MovieClip [__Packages.mc.Door] Frame 0
class mc.Door extends ss.MovieClipProp
{
var Baby, time, quantity, destx, desty;
function Door (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
Baby = undefined;
}
function DoorProp(Time, Quantity) {
time = Time;
quantity = Quantity;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 1;
}
Symbol 5890 MovieClip [__Packages.mc.Bath] Frame 0
class mc.Bath extends ss.MovieClipProp
{
var socialRating, time, destx, desty;
function Bath (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 50;
}
function BathProp(Time) {
time = Time;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 2;
}
Symbol 5891 MovieClip [__Packages.mc.DiperTable] Frame 0
class mc.DiperTable extends ss.MovieClipProp
{
var socialRating, time, quantity, destx, desty;
function DiperTable (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 40;
}
function DiperTableProp(Time, Quantity) {
time = Time;
quantity = Quantity;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 3;
}
Symbol 5892 MovieClip [__Packages.mc.Diper] Frame 0
class mc.Diper extends ss.MovieClipProp
{
var socialRating, time, quantity, destx, desty;
function Diper (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 2;
}
function DiperProp(Time, Quantity) {
time = Time;
quantity = Quantity;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 4;
}
Symbol 5893 MovieClip [__Packages.mc.Trash] Frame 0
class mc.Trash extends ss.MovieClipProp
{
var socialRating, time, quantity, destx, desty, side;
function Trash (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 5;
}
function TrashProp(Time, Quantity) {
time = Time;
quantity = Quantity;
}
function setCoordinates(coordx, coordy, _side) {
destx = coordx;
desty = coordy;
side = _side;
}
var ID = 5;
}
Symbol 5894 MovieClip [__Packages.mc.FoodMaker] Frame 0
class mc.FoodMaker extends ss.MovieClipProp
{
var socialRating, upgrade, foodQuality, hasABottle, destx, desty, side;
function FoodMaker (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 5;
upgrade = 1;
}
function FoodMakerProp(Upgade) {
switch (Upgade) {
case 1 :
socialRating = 5;
break;
case 2 :
socialRating = 8;
break;
case 3 :
socialRating = 12;
}
foodQuality = 1;
upgrade = Upgade;
hasABottle = false;
}
function setCoordinates(coordx, coordy, _side) {
destx = coordx;
desty = coordy;
side = _side;
}
var ID = 6;
}
Symbol 5895 MovieClip [__Packages.mc.Kitchen] Frame 0
class mc.Kitchen extends ss.MovieClipProp
{
var socialRating, time, destx, desty;
function Kitchen (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
}
function KitchenProp(Time) {
socialRating = 50;
time = Time;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 7;
}
Symbol 5896 MovieClip [__Packages.mc.Chair] Frame 0
class mc.Chair extends ss.MovieClipProp
{
var socialRating, upgrade, destx, desty, side, place, Baby, attachPoint;
function Chair (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 30;
upgrade = 1;
}
function chairProp(Upgade) {
socialRating = 20 + (Upgade * 10);
upgrade = Upgade;
}
function setCoordinates(coordx, coordy, _side, place) {
destx = coordx;
desty = coordy;
side = _side;
this.place = place;
Baby = undefined;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 8;
}
Symbol 5897 MovieClip [__Packages.mc.Boxover] Frame 0
class mc.Boxover extends ss.MovieClipProp
{
var quantity, upgrade, destx, desty, side, Baby, attachPoint;
function Boxover (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
}
function BoxoverProp(Time, Quantity) {
quantity = Quantity;
upgrade = 0;
}
function setCoordinates(coordx, coordy, _side) {
destx = coordx;
desty = coordy;
side = _side;
Baby = undefined;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 9;
}
Symbol 5898 MovieClip [__Packages.mc.BoxFront] Frame 0
class mc.BoxFront extends ss.MovieClipProp
{
var quantity, upgrade, destx, desty, side, Baby, attachPoint;
function BoxFront (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
}
function BoxFrontProp(Time, Quantity) {
quantity = Quantity;
upgrade = 0;
}
function setCoordinates(coordx, coordy, _side) {
destx = coordx;
desty = coordy;
side = _side;
Baby = undefined;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 48;
}
Symbol 5899 MovieClip [__Packages.mc.Carpet] Frame 0
class mc.Carpet extends ss.MovieClipProp
{
var socialRating, part, destx, desty, side, attachPoint;
function Carpet (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 50;
parth++;
part = parth;
}
function setCoordinates(coordx, coordy, _side) {
destx = coordx;
desty = coordy;
side = _side;
Baby = undefined;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 10;
var Baby = undefined;
static var parth = 0;
}
Symbol 5900 MovieClip [__Packages.mc.Box] Frame 0
class mc.Box extends ss.MovieClipProp
{
var socialRating, upgrade, destx, desty, side, Baby, attachPoint;
function Box (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 40;
upgrade = 1;
}
function BoxProp(Upgade) {
socialRating = 20 + (Upgade * 20);
upgrade = Upgade;
}
function setCoordinates(coordx, coordy, _side) {
destx = coordx;
desty = coordy;
side = _side;
Baby = undefined;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 11;
}
Symbol 5901 MovieClip [__Packages.mc.Bed] Frame 0
class mc.Bed extends ss.MovieClipProp
{
var socialRating, upgrade, babySleep, destx, desty, side, Baby, place, attachPoint;
function Bed (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 40;
upgrade = 1;
babySleep = false;
}
function BedProp(Upgade) {
socialRating = 20 + (Upgade * 20);
upgrade = Upgade;
}
function setCoordinates(coordx, coordy, _side, placee) {
destx = coordx;
desty = coordy;
side = _side;
Baby = undefined;
place = placee;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 12;
}
Symbol 5902 MovieClip [__Packages.mc.BedFront] Frame 0
class mc.BedFront extends ss.MovieClipProp
{
var socialRating, upgrade, destx, desty, Baby, attachPoint;
function BedFront (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 1;
upgrade = 1;
}
function BedFrontProp(Upgade) {
socialRating = (Upgade - 1) * 5;
upgrade = Upgade;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
Baby = undefined;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 32;
}
Symbol 5903 MovieClip [__Packages.mc.Prekrivac] Frame 0
class mc.Prekrivac extends ss.MovieClipProp
{
var socialRating, upgrade, destx, desty, Baby, attachPoint;
function Prekrivac (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 1;
upgrade = 1;
}
function PrekrivacProp(Upgade) {
socialRating = (Upgade - 1) * 5;
upgrade = Upgade;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
Baby = undefined;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 42;
}
Symbol 5904 MovieClip [__Packages.mc.BedDaska] Frame 0
class mc.BedDaska extends ss.MovieClipProp
{
var socialRating, upgrade, destx, desty, Baby, attachPoint;
function BedDaska (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 1;
upgrade = 1;
}
function BedDaskaProp(Upgade) {
socialRating = (Upgade - 1) * 5;
upgrade = Upgade;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
Baby = undefined;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 49;
}
Symbol 5905 MovieClip [__Packages.mc.Toy] Frame 0
class mc.Toy extends ss.MovieClipProp
{
var quantity, time, destx, desty, side;
function Toy (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
quantity = 1;
}
function ToyProp(Time, Quantity) {
time = Time;
quantity = Quantity;
}
function setCoordinates(coordx, coordy, _side) {
destx = coordx;
desty = coordy;
side = _side;
}
var ID = 13;
}
Symbol 5906 MovieClip [__Packages.mc.Towel] Frame 0
class mc.Towel extends ss.MovieClipProp
{
var time, quantity, destx, desty, side;
function Towel (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
}
function TowelProp(Time, Quantity) {
time = Time;
quantity = Quantity;
}
function setCoordinates(coordx, coordy, _side) {
destx = coordx;
desty = coordy;
side = _side;
}
var ID = 14;
}
Symbol 5907 MovieClip [__Packages.mc.Paint] Frame 0
class mc.Paint extends ss.MovieClipProp
{
var socialRating, destx, desty;
function Paint (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 5;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 15;
}
Symbol 5908 MovieClip [__Packages.mc.Closet] Frame 0
class mc.Closet extends ss.MovieClipProp
{
var destx, desty;
function Closet (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 16;
}
Symbol 5909 MovieClip [__Packages.mc.BedroomPanel] Frame 0
class mc.BedroomPanel extends ss.MovieClipProp
{
var socialRating, upgrade, destx, desty;
function BedroomPanel (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 500;
upgrade = 1;
}
function BedroomProp(Upgade) {
socialRating = Upgade * 500;
upgrade = Upgade;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 26;
}
Symbol 5910 MovieClip [__Packages.mc.Plant] Frame 0
class mc.Plant extends ss.MovieClipProp
{
var socialRating, destx, desty;
function Plant (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 3;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 17;
}
Symbol 5911 MovieClip [__Packages.mc.Clock] Frame 0
class mc.Clock extends ss.MovieClipProp
{
var Type, Time, destx, desty, attachPoint;
function Clock (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
}
function ClockProp(Time, Type) {
this.Type = Type;
this.Time = Time;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 18;
}
Symbol 5912 MovieClip [__Packages.mc.Srce] Frame 0
class mc.Srce extends ss.MovieClipProp
{
var quantity, destx, desty;
function Srce (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
}
function SrceProp(Time, Quantity) {
quantity = Quantity;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 19;
}
Symbol 5913 MovieClip [__Packages.mc.Senka] Frame 0
class mc.Senka extends ss.MovieClipProp
{
var destx, desty;
function Senka (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 20;
}
Symbol 5914 MovieClip [__Packages.mc.reception] Frame 0
class mc.reception extends ss.MovieClipProp
{
var socialRating, upgrade, destx, desty;
function reception (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 20;
}
function receptionProp(Upgade) {
socialRating = Upgade * 500;
upgrade = Upgade;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 27;
}
Symbol 5915 MovieClip [__Packages.mc.ChairMask] Frame 0
class mc.ChairMask extends ss.MovieClipProp
{
var time, quantity, whichChair, Chair, destx, desty, Baby, attachPoint;
function ChairMask (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
}
function ChairMaskProp(Time, Quantity, whichChair) {
time = Time;
quantity = Quantity;
this.whichChair = Chair.ID;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
Baby = undefined;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 21;
}
Symbol 5916 MovieClip [__Packages.mc.Toy_box] Frame 0
class mc.Toy_box extends ss.MovieClipProp
{
var time, quantity;
function Toy_box (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
}
function Toy_boxProp(Time, Quantity) {
time = Time;
quantity = Quantity;
}
function setCoordinates(coords) {
}
var ID = 22;
}
Symbol 5917 MovieClip [__Packages.mc.Bottle] Frame 0
class mc.Bottle extends ss.MovieClipProp
{
var depth, time, foodQuality, quantity, destx, desty, side;
function Bottle (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
depth = 17030;
}
function setProp(Time, FoodQuality, Quantity) {
time = Time;
foodQuality = FoodQuality;
quantity = Quantity;
}
function setCoordinates(coordx, coordy, _side) {
destx = coordx;
desty = coordy;
side = _side;
}
var ID = 23;
}
Symbol 5918 MovieClip [__Packages.mc.Bell] Frame 0
class mc.Bell extends ss.MovieClipProp
{
var socialRating, upgrade, destx, desty, Baby, attachPoint;
function Bell (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 1;
upgrade = 1;
}
function BellProp(Upgade) {
socialRating = (Upgade - 1) * 5;
upgrade = Upgade;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
Baby = undefined;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 43;
}
Symbol 5919 MovieClip [__Packages.mc.Windows] Frame 0
class mc.Windows extends ss.MovieClipProp
{
var destx, desty;
function Windows (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 44;
}
Symbol 5920 MovieClip [__Packages.mc.Clown] Frame 0
class mc.Clown extends ss.MovieClipProp
{
var time, destx, desty;
function Clown (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
trace("clown");
}
function ClownProp(Time) {
time = Time;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 39;
}
Symbol 5921 MovieClip [__Packages.mc.Nany] Frame 0
class mc.Nany extends ss.MovieClipProp
{
var time, destx, desty;
function Nany (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
trace("Nany");
}
function NanyProp(Time) {
time = Time;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 40;
}
Symbol 5922 MovieClip [__Packages.mc.BabySitter] Frame 0
class mc.BabySitter extends MovieClip
{
var linkID, x, y, depth, rot, xscale, yscale, Carpet_Chear, rootPath, cellx, _x, celly, _y, canMove, tempx, astar, tempy, startx, starty, endx, endy, xmov, ymov, angle, _speed, carring, Animation, bsDepth, getDepth, path, _depth, flagForClown, flagFM, candoAction, foodmakerClicked, ActionObject, Baby, Food, Toy, toyIndex, index1, index2, hitTest, clip;
function BabySitter (l, x, y, d, rot, xs, ys, astar) {
super();
linkID = l;
this.x = x;
this.y = y;
depth = d;
this.rot = rot;
xscale = xs;
yscale = ys;
Carpet_Chear = 0;
rootPath = _global.stage;
cellx = Math.ceil(_x / rootPath.game.spacing);
celly = Math.ceil(_y / rootPath.game.spacing);
x = ((cellx - 1) * rootPath.game.spacing) + (rootPath.game.spacing / 2);
y = ((celly - 1) * rootPath.game.spacing) + (rootPath.game.spacing / 2);
canMove = false;
tempx = x;
this.astar = astar;
tempy = this.y;
startx = this.x;
starty = this.y;
endx = this.x;
endy = this.y;
xmov = 0;
ymov = 0;
angle = 0;
_speed = 20;
carring = _global.stage.game.carryNothing;
Animation = false;
bsDepth = getDepth();
path = new Array();
_depth = new control.DepthController();
_global.bottleFlag = false;
flagForClown = false;
flagFM = false;
candoAction = true;
foodmakerClicked = false;
}
function doAction() {
_global.stage.game.ShiftStars();
if (_global.count > 1) {
_global.count--;
} else {
_global.count = 1;
}
var _local3 = this;
ActionObject;
var _local8 = "";
if (carring > 0) {
_local8 = carring.toString();
}
_local3.clip.gotoAndStop("stand");
_local3.clip.stand.gotoAndStop("stand" + _local8);
if (ActionObject.ID == _global.stage.babies[1].ID) {
var _local9 = false;
var _local7 = ActionObject;
var _local12 = _local7.where.side;
var _local14 = _local7.clipIndex;
if (carring == _global.stage.game.carryNothing) {
ActionObject.stopBabyCrying();
_global.path.helpTips[2].showPopUp();
if (((_local7.toy || (_local7.eatMeal == true)) || (_local7.where.meal == true)) || (_local7.where.meall == true)) {
stopBabySitter();
} else if (_local7.eat) {
stopBabySitter();
} else if (_local7.sleeping) {
stopBabySitter();
} else {
Baby = _local7;
carring = _global.stage.game.carryBaby;
_global.path.helpTips[1].dettachPopUp();
_global.path.helpTips[40].dettachPopUp();
_global.path.helpTips[18].dettachPopUp();
if (Baby.where.ID == _global.stage.door.ID) {
_global.path.currentPopUp = 2;
_global.path.currentMovie = _global.stage.chair[0].clip;
_global.path.currentHelpMovie = _global.stage.chairMask[0].clip;
_global.path.currentHelp1Movie = undefined;
_global.path.helpTips[2].dettachPrevisious();
Baby.where.gotoAndStop(1);
Baby.timeNeeded = 10 + random(20);
Baby.now = getTimer();
_global.stage.game.babyFromDoor = true;
_global.stage.game.BabyOnDoor = false;
_global.stage.game.doorOpen = false;
if (Baby.clip) {
_global.stage.girl.Animation = true;
_local3.clip.gotoAndStop("door");
_local3.clip.door.gotoAndStop("up1" + _local14);
Baby.removeClip();
}
_global.stage.door.Baby = undefined;
_global.stage.door.clip.dor_Dor.gotoAndStop("close");
_global.stage.game.timeNeeded = (getTimer() - _global.stage.game.now) + ((10 + random(10)) * 350);
_local7.stopBabyCrying();
} else {
Animation = true;
_local3.clip.gotoAndStop("lift");
if (Baby.where.ID == _global.stage.carpet[1].ID) {
if ((_local12 == "up") || (_local12 == "down")) {
_local3.clip.lift.gotoAndStop((_local12 + "1") + _local14);
} else {
_local3.clip.lift.gotoAndStop((_local12 + "2") + _local14);
}
_local3.clip.lift.gotoAndStop((_local12 + "2") + _local14);
Carpet_Chear--;
if (Carpet_Chear == 0) {
_global.stage.nany.clip.gotoAndStop("animation1");
}
} else if ((Baby.where.ID == _global.stage.box[1].ID) || (Baby.where.ID == _global.stage.boxover[1].ID)) {
_local3.clip.lift.gotoAndStop("box" + _local14);
} else if ((Baby.where.ID == _global.stage.chair[1].ID) || (Baby.where.ID == _global.stage.chairMask[1].ID)) {
_local3.clip.lift.gotoAndStop((_local12 + "1") + _local14);
Carpet_Chear--;
if (Carpet_Chear == 0) {
_global.stage.nany.clip.gotoAndStop("animation1");
}
} else if (Baby.where.ID == _global.stage.bed[0].ID) {
Baby.where.babySleep = false;
_local3.clip.lift.gotoAndStop((_local12 + "1") + _local14);
proveriBabySong();
} else if ((Baby.where.ID == _global.stage.bigChair[0].ID) || (Baby.where.ID == _global.stage.bigChairMask[1].ID)) {
if ((Baby.need == _global.stage.game.hungry) || (Baby.eatMeal == true)) {
_global.path.sound.stopMusic("babyDrinking");
}
if (Baby.where.meal == false) {
Baby.eatMeal = false;
_local3.clip.lift.gotoAndStop((_local12 + "1") + _local14);
}
} else {
_local3.clip.lift.gotoAndStop((_local12 + "1") + _local14);
}
}
Baby.where.Baby = undefined;
if (_global.path.tutorialDay == true) {
Baby.where = undefined;
}
_local7.stopBabyCrying();
if ((_global.stage.game.babiesOut == false) && (Baby.where.ID == _global.stage.door.ID)) {
_global.stage.door.clip.dor_Dor.gotoAndStop("close");
} else if (((_global.stage.game.babiesOut == true) && (Baby.flagMama)) && (_global.opened == false)) {
_global.stage.door.clip.dor_Dor.gotoAndPlay("open");
}
_local9 = true;
}
} else if ((((carring == _global.stage.game.carryFood) && (_local7.eat == false)) && (_local7.need == _global.stage.game.hungry)) && ((_local7.where.ID == _global.stage.chair[1].ID) || (_local7.where.ID == _global.stage.bigChair[0].ID))) {
Animation = true;
_local3.clip.gotoAndStop("leave");
if (_local12 == "down") {
_local3.clip.leave.gotoAndStop("down7");
} else {
_local3.clip.leave.gotoAndStop(_local12);
}
_local7.eat = true;
var _local10 = "b" + _local14;
var _local17 = Food.instanceName.substr(Food.instanceName.length - 1, 1);
var _local13 = ("need" + _global.stage.game.hungry.toString()) + "1";
_local7.clip.gotoAndStop(_local10);
_local7.clip[_local10].gotoAndStop(_local13);
_global.path.sound.playMusic("babyDrinking");
carring = _global.stage.game.carryNothing;
_global.stage.bottle.clip.removeMovieClip();
_global.stage.bottle.clip = undefined;
_local9 = true;
} else if ((((carring == _global.stage.game.carryToy) && (!_local7.toy)) && (_local7.need == _global.stage.game.toy)) && ((_local7.where.ID == _global.stage.box[1].ID) || (_local7.where.ID == _global.stage.carpet[1].ID))) {
_global.path.currentMovie = undefined;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
_global.path.helpTips[32].dettachPopUp();
_global.path.helpTips[33].showPopUp();
Animation = true;
_local3.clip.gotoAndStop("leave");
if ((_local7.where.ID == _global.stage.carpet[0].ID) && (_local12 != "up")) {
_local3.clip.leave.gotoAndStop(_local12 + "7");
} else {
_local3.clip.leave.gotoAndStop(_local12);
}
_local7.toy = Toy;
var _local10 = "b" + _local14;
var _local13 = ("need" + _global.stage.game.toy.toString()) + toyIndex;
_local7.clip.gotoAndStop(_local10);
_local7.clip[_local10].gotoAndStop(_local13);
_local7.currSoundName = "sqeaky_toy";
_global.path.sound.playSound(_local7.currSoundName);
carring = _global.stage.game.carryNothing;
_local9 = true;
_global.path.socialRatingImpact = _global.path.socialRatingImpact + ToyImpact;
} else if ((((carring == _global.stage.game.carry_towel) && (_local7.need == _global.stage.game.vomited)) && (clear_towel == true)) && (_local7.where.ID != _global.stage.bed[0].ID)) {
_local7.stopBabyCrying();
_global.path.sound.playSound("cleaningVomit");
clear_towel = false;
_global.path.helpTips[44].dettachPopUp();
_global.path.helpTips[13].showPopUp();
Baby = _local7;
Animation = true;
_local7.NanyFlag = true;
if ((_local12 == "down") && (Baby.where.ID == _global.stage.carpet[1].ID)) {
_local12 = "down_carpet";
}
if (Baby.where.ID == _global.stage.box[1].ID) {
_local12 = "box_right";
}
if (Baby.where.ID == _global.stage.bigChair[1].ID) {
_local12 = "bigChair_right";
}
_local3.clip.gotoAndStop("anim");
_local3.clip.anim.gotoAndStop(_local12);
_local9 = true;
_local7.soundName = "babyLaughing";
_local7.currSoundName = _local7.soundName;
} else {
stopBabySitter();
}
}
if (ActionObject.ID == _global.stage.carpet[1].ID) {
if ((carring == _global.stage.game.carryBaby) && (ActionObject.Baby == undefined)) {
_global.path.helpTips[31].dettachPopUp();
if (Baby.need == _global.stage.game.toy) {
_global.path.helpTips[32].showPopUp();
_global.path.currentMovie = _global.stage.toy_boxes[1].clip;
_global.path.currentHelpMovie = _global.stage.toy_boxes[2];
_global.path.currentHelp1Movie = undefined;
}
var _local7 = Baby;
ActionObject.Baby = _local7;
Baby.where = ActionObject;
if (Baby.need == _global.stage.game.upside) {
Baby.setNeed(_global.stage.game.happy);
_local7.soundName = "babyLaughing";
_local7.currSoundName = _local7.soundName;
_global.path.sound.playSound(_local7.currSoundName);
_global.path.helpTips[2].dettachPopUp();
}
var _local14 = _local7.clipIndex;
var _local12 = ActionObject.side;
if (_local12 == "up") {
index1 = "1";
} else {
index1 = "2";
}
Animation = true;
_local3.clip.gotoAndStop("leave");
_local3.clip.leave.gotoAndStop((_local12 + index1) + _local14);
if (Baby.need == _global.stage.game.happy) {
_local7.soundName = "babyLaughing";
_local7.currSoundName = _local7.soundName;
_global.path.sound.playSound(_local7.currSoundName);
}
carring = _global.stage.game.carryNothing;
Carpet_Chear++;
if (Carpet_Chear == 1) {
_global.stage.nany.clip.gotoAndStop("animation2");
}
} else {
standBabySitter();
}
}
if ((ActionObject.ID == _global.stage.box[1].ID) || (ActionObject.ID == _global.stage.boxover[0].ID)) {
if ((carring == _global.stage.game.carryBaby) && (ActionObject.Baby == undefined)) {
_global.path.helpTips[31].dettachPopUp();
if (Baby.need == _global.stage.game.toy) {
_global.path.helpTips[32].showPopUp();
_global.path.currentMovie = _global.stage.toy_boxes[1].clip;
_global.path.currentHelpMovie = _global.stage.toy_boxes[2];
_global.path.currentHelp1Movie = undefined;
}
index2 = "box";
var _local7 = Baby;
ActionObject.Baby = _local7;
Baby.where = ActionObject;
if (Baby.need == _global.stage.game.upside) {
Baby.setNeed(_global.stage.game.happy);
_local7.soundName = "babyLaughing";
_local7.currSoundName = _local7.soundName;
_global.path.sound.playSound(_local7.currSoundName);
_global.path.helpTips[5].dettachPopUp();
_global.path.helpTips[2].dettachPopUp();
}
var _local14 = _local7.clipIndex;
Animation = true;
if ((ActionObject.linkID == "box2") || (ActionObject.linkID == "boxover2")) {
_global.stage.girl.exDepth = getDepth(_local3.clip);
_local3.clip.swapDepths(18179);
}
_local3.clip.gotoAndStop("leave");
_local3.clip.leave.gotoAndStop(index2 + _local14);
if (Baby.need == _global.stage.game.happy) {
_local7.soundName = "babyLaughing";
_local7.currSoundName = _local7.soundName;
_global.path.sound.playSound(_local7.currSoundName);
}
Baby.addHappiness(1);
carring = _global.stage.game.carryNothing;
_global.path.socialRatingImpact = _global.path.socialRatingImpact + (BoxImpact * ActionObject.upgrade);
} else {
stopBabySitter();
}
}
if (ActionObject.ID == _global.stage.horse[1].ID) {
if ((ActionObject.BabyRock == true) && (Baby == undefined)) {
Animation = true;
var _local12 = ActionObject.side;
ActionObject.BabyRock = false;
var _local7 = ActionObject.Baby;
Baby = _local7;
_local3.clip.gotoAndStop("lift");
_local3.clip.lift.gotoAndStop("down1" + _local7.clipIndex);
ActionObject.clip.gotoAndStop(1);
ActionObject.clip.horse.gotoAndPlay("h" + ActionObject.upgrade);
carring = _global.stage.game.carryBaby;
ActionObject.Baby = undefined;
} else if (((Baby.need == _global.stage.game.horse) && (carring == _global.stage.game.carryBaby)) && (ActionObject.Baby == undefined)) {
if ((ActionObject.BabyRock == false) && (ActionObject.Baby == undefined)) {
index2 = "down1";
ActionObject.BabyRock = true;
var _local7 = Baby;
ActionObject.Baby = _local7;
Baby.where = ActionObject;
var _local22 = "h" + _local7.clipIndex;
var _local14 = _local7.clipIndex;
Animation = true;
_local3.clip.gotoAndStop("leave");
_local3.clip.leave.gotoAndStop(index2 + _local14);
carring = _global.stage.game.carryNothing;
}
} else {
stopBabySitter();
}
}
if (ActionObject.ID == _global.stage.panelButton[0].ID) {
if (((Baby.need == _global.stage.game.sleepy) && (carring == _global.stage.game.carryBaby)) && (ActionObject.Baby == undefined)) {
Animation = true;
_global.stage.bedroomDoor.clip.gotoAndStop("open");
_global.stage.bedroomDoor.clip.Door.gotoAndStop(_global.path.BedroomType);
ActionObject.clip.bedButton.tepkac.gotoAndStop(1);
ActionObject.clip.bedButton.gotoAndStop(2);
if ((_global.babySong == false) && (Baby.need == _global.stage.game.sleepy)) {
_global.babySong = true;
_global.path.sound.playMusic("baby_song");
}
var _local7 = Baby;
ActionObject.Baby = _local7;
ActionObject.babySleep = true;
Baby.sleepingInBedroom = true;
Baby.where = ActionObject;
var _local14 = _local7.clipIndex;
var _local12 = ActionObject.side;
_local3.clip.gotoAndStop("leave");
_local3.clip.leave.gotoAndStop("left1" + _local14);
carring = _global.stage.game.carryNothing;
Baby = undefined;
} else if (((carring == _global.stage.game.carryNothing) && (ActionObject.Baby != undefined)) && (ActionObject.babySleep == false)) {
Animation = true;
_global.path.helpTips[17].dettachPopUp();
ActionObject.Baby.stopBabyCrying();
_global.stage.bedroomDoor.clip.gotoAndStop("open");
_global.stage.bedroomDoor.clip.Door.gotoAndStop(_global.path.BedroomType);
var _local12 = ActionObject.side;
var _local7 = ActionObject.Baby;
Baby = _local7;
Baby.sleepingInBedroom = false;
Baby.spalnaPlace = false;
Baby.soundCry.stop();
delete Baby.soundCry;
Baby.place = false;
Baby.setNeed(_global.stage.game.happy);
_local3.clip.gotoAndStop("lift");
_local3.clip.lift.gotoAndStop("left1" + _local7.clipIndex);
ActionObject.Baby.where.clip.bedButton.gotoAndStop(1);
Baby.trepkacFlag = false;
Baby.trepka = false;
Baby.timeUnHappy = 0;
ActionObject.clip.bedButton.gotoAndStop(1);
carring = _global.stage.game.carryBaby;
ActionObject.Baby = undefined;
} else {
stopBabySitter();
}
}
if ((ActionObject.ID == _global.stage.bigChair[1].ID) || (ActionObject.ID == _global.stage.chair[1].ID)) {
if ((carring == _global.stage.game.carryBaby) && (ActionObject.Baby == undefined)) {
_global.path.helpTips[29].dettachPopUp();
var _local7 = Baby;
ActionObject.Baby = _local7;
Baby.where = ActionObject;
if (Baby.need == _global.stage.game.upside) {
Baby.setNeed(_global.stage.game.happy);
_local7.soundName = "babyLaughing";
_local7.currSoundName = _local7.soundName;
_global.path.sound.playSound(_local7.currSoundName);
_global.path.helpTips[2].dettachPopUp();
}
var _local14 = _local7.clipIndex;
var _local12 = ActionObject.side;
Animation = true;
_local3.clip.gotoAndStop("leave");
_local3.clip.leave.gotoAndStop((_local12 + _local8) + _local14);
if (Baby.need == _global.stage.game.happy) {
_local7.soundName = "babyLaughing";
_local7.currSoundName = _local7.soundName;
_global.path.sound.playSound(_local7.currSoundName);
}
Baby.where.cookTime = 0;
carring = _global.stage.game.carryNothing;
if (ActionObject.ID == _global.stage.chair[1].ID) {
_global.path.socialRatingImpact = _global.path.socialRatingImpact + ChairImpact;
Carpet_Chear++;
if (Carpet_Chear == 1) {
_global.stage.nany.clip.gotoAndStop("animation2");
}
}
} else {
stopBabySitter();
}
}
if (ActionObject.ID == _global.stage.bed[0].ID) {
if (((carring == _global.stage.game.carryBaby) && (ActionObject.Baby == undefined)) && (Baby.need != _global.stage.game.vomited)) {
_global.path.helpTips[29].dettachPopUp();
var _local7 = Baby;
ActionObject.Baby = _local7;
Baby.where = ActionObject;
if (Baby.need == _global.stage.game.upside) {
Baby.setNeed(_global.stage.game.happy);
_local7.soundName = "babyLaughing";
_local7.currSoundName = _local7.soundName;
_global.path.sound.playSound(_local7.currSoundName);
_global.path.helpTips[2].dettachPopUp();
}
var _local14 = _local7.clipIndex;
var _local12 = ActionObject.side;
Animation = true;
_local3.clip.gotoAndStop("leave");
_local3.clip.leave.gotoAndStop((_local12 + _local8) + _local14);
if (Baby.need == _global.stage.game.happy) {
_local7.soundName = "babyLaughing";
_local7.currSoundName = _local7.soundName;
_global.path.sound.playSound(_local7.currSoundName);
}
carring = _global.stage.game.carryNothing;
if (ActionObject.ID == _global.stage.bed[0].ID) {
_global.path.socialRatingImpact = _global.path.socialRatingImpact + (BedImpact * ActionObject.upgrade);
ActionObject.babySleep = true;
if ((_global.babySong == false) && (Baby.need == _global.stage.game.sleepy)) {
_global.babySong = true;
_global.path.sound.playMusic("baby_song");
}
}
} else {
stopBabySitter();
}
}
if (ActionObject.ID == _global.stage.foodMaker.ID) {
if (flagFM == false) {
Animation = true;
if ((carring == _global.stage.game.carryNothing) && (!ActionObject.hasABottle)) {
foodmakerClicked = true;
flagFM = true;
_local3.clip.gotoAndStop("anim");
_local3.clip.anim.gotoAndStop("FoodMaker");
var _local11 = "upgrade" + _global.foodMakerNumber.toString();
var _local24;
_global.path.helpTips[25].dettachPopUp();
if (_global.stage.game.klikniFood == true) {
_global.stage.game.klikniFood = false;
_global.path.helpTips[26].showPopUp();
_global.path.currentMovie = undefined;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
}
_global.stage.foodMaker.clip.gotoAndStop(_local11);
_global.stage.foodMaker.clip.mikser.gotoAndPlay("on");
} else {
standBabySitter();
}
}
}
if (ActionObject.ID == _global.stage.clown.ID) {
if (_global.stage.game.babiesInRoom > 0) {
var _local5 = 1;
while (_local5 <= _global.stage.game.babiesInRoom) {
_global.stage.babies[_local5].happiness = 100;
_global.stage.babies[_local5].addHappiness();
_global.stage.clownClicked = false;
if ((((_global.stage.babies[_local5].need != _global.stage.game.vomited) && (_global.stage.babies[_local5].need != _global.stage.game.watered)) && (_global.stage.babies[_local5].need != _global.stage.game.hungry)) && (_global.stage.babies[_local5].need != _global.stage.game.poop)) {
_global.stage.clown.clicked = true;
_global.stage.babies[_local5].setNeed(_global.stage.game.happy);
_global.stage.babies[_local5].needCanChange = true;
}
_local5++;
}
}
_global.stage.clown.clip.removeMovieClip();
}
if (ActionObject.ID == _global.stage.bottle.ID) {
Animation = true;
if ((carring == _global.stage.game.carryNothing) && (_global.stage.foodMaker.hasABottle == true)) {
_global.path.expenseMoney = _global.path.expenseMoney + FoodMoney;
_global.bottleFlag = true;
var _local17 = "1";
_local3.clip.gotoAndStop("lift");
_local3.clip.lift.gotoAndStop("right");
_global.stage.foodMaker.hasABottle = false;
carring = _global.stage.game.carryFood;
Food = {instanceName:ActionObject.clip._name};
_global.stage.bottle.clip.removeMovieClip();
_global.stage.bottle.clip = undefined;
flagFM = false;
} else {
standBabySitter();
}
}
if (ActionObject.ID == _global.stage.kitchen.ID) {
Animation = true;
if (carring == _global.stage.game.carryFood) {
_global.bottleFlag = false;
var _local17 = "1";
_local3.clip.gotoAndStop("lift");
_local3.clip.lift.gotoAndStop("right");
_global.stage.foodMaker.hasABottle = true;
carring = _global.stage.game.carryNothing;
Food = {instanceName:ActionObject.clip._name};
_global.stage.bottle.clip = _global.stage.attachMovie(_global.stage.bottle.linkID, "bottle1", _global.stage.bottle.depth, {_x:_global.stage.bottle.x, _y:_global.stage.bottle.y, _rotation:_global.stage.bottle.rot, _xscale:_global.stage.bottle.xscale, _yscale:_global.stage.bottle.yscale});
flagFM = true;
} else {
standBabySitter();
}
}
if (ActionObject.ID == _global.stage.toy[1].ID) {
if (carring == _global.stage.game.carryNothing) {
if (_global.stage.game.babyWantsToy == true) {
_global.path.currentMovie = undefined;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
}
Animation = true;
var _local5 = 1;
while (_local5 <= 15) {
if (ActionObject == _global.stage.toy[_local5 - 1]) {
toyIndex = _local5.toString();
}
_local5++;
}
_local3.clip.gotoAndStop("lift");
_local3.clip.lift.gotoAndStop("right");
carring = _global.stage.game.carryToy;
Toy = ActionObject;
ActionObject.clip._visible = false;
} else if (carring == _global.stage.game.carryToy) {
Animation = true;
_local3.clip.gotoAndStop("leave");
_local3.clip.leave.gotoAndStop("right");
carring = _global.stage.game.carryNothing;
Toy.clip._visible = true;
} else {
standBabySitter();
}
}
if ((ActionObject.ID == _global.stage.door.ID) && (_global.stage.timeForLeaving == true)) {
var _local6 = 0;
var _local4 = 0;
while (_local4 < _global.path.levelBabies.length) {
if (_global.path.levelBabies[_local4].clipIndex == Baby.clipIndex) {
_local6 = _local4;
break;
}
_local4++;
}
if ((((Baby.flagMama && (_global.stage.game.babiesOut == true)) && (carring == _global.stage.game.carryBaby)) && (_global.stage.door.Baby == undefined)) && (_global.stage.door.opened == true)) {
_global.path.helpTips[6].dettachPopUp();
var _local14 = Baby.clipIndex;
Animation = true;
_local3.clip.gotoAndStop("door");
_local3.clip.door.gotoAndStop("up1" + _local14);
_global.stage.door.clip.dor_Dor.gotoAndStop("close");
_global.stage.game.averageWeekHappiness = _global.stage.game.averageWeekHappiness + (baby.happiness / (_global.stage.game.maxLevelBabies * 5));
carring = _global.stage.game.carryNothing;
_global.path.levelBabies[_local6].babyOut = true;
_global.path.exitBabies++;
_global.bebiForHome++;
Baby = undefined;
} else {
stopBabySitter();
}
} else if ((ActionObject.ID == _global.stage.door.ID) && (_global.stage.timeForLeaving == false)) {
stopBabySitter();
}
if (ActionObject.ID == _global.stage.bath.ID) {
if (carring == _global.stage.game.carryBaby) {
var _local7 = Baby;
var _local14 = _local7.clipIndex;
if (Baby.need == _global.stage.game.poop) {
_global.path.helpTips[3].dettachPopUp();
_global.path.helpTips[41].dettachPopUp();
if (_global.path.tutorialDay == true) {
_global.path.helpTips[22].showPopUp();
}
_global.path.currentMovie = undefined;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
_local7.NanyFlag = true;
Animation = true;
_global.stage.girl.clip.gotoAndStop("bath");
_global.stage.girl.clip.bath.gotoAndStop("bath" + _local14);
_local7.setNeed(_global.stage.game.happy);
_local7.timeHappy();
Baby.cleaning = true;
_global.path.socialRatingImpact = _global.path.socialRatingImpact + BathImpact;
} else {
standBabySitter();
}
} else {
standBabySitter();
}
}
if (ActionObject.ID == _global.stage.diperTable.ID) {
if (carring == _global.stage.game.carryBaby) {
var _local7 = Baby;
var _local14 = _local7.clipIndex;
if (Baby.need == _global.stage.game.watered) {
_global.path.helpTips[4].dettachPopUp();
_global.path.helpTips[42].dettachPopUp();
if ((_global.path.tutorialDay == true) && (_global.dayCount == undefined)) {
_global.path.helpTips[20].showPopUp();
}
_local7.NanyFlag = true;
Animation = true;
_global.stage.girl.clip.gotoAndStop("anim");
_global.stage.girl.clip.anim.gotoAndPlay("change" + _local14);
Baby.cleaning = true;
_local7.setNeed(_global.stage.game.happy);
_global.path.helpTips[4].dettachPopUp();
_global.path.currentMovie = undefined;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
_local7.timeHappy();
_global.path.socialRatingImpact = _global.path.socialRatingImpact + DiperImpact;
} else {
standBabySitter();
}
} else {
standBabySitter();
}
}
if ((ActionObject.ID == _global.stage.trash.ID) || (ActionObject.ID == _global.stage.trash2.ID)) {
if ((carring == _global.stage.game.carryFood) || (carring == _global.stage.game.carry_towel)) {
_global.path.helpTips[13].dettachPopUp();
Animation = true;
var _local12 = ActionObject.side;
_local3.clip.gotoAndStop("leave");
_local3.clip.leave.gotoAndStop(_local12);
var _local23;
Baby = undefined;
carring = _global.stage.game.carryNothing;
} else {
standBabySitter();
}
}
if (ActionObject.ID == _global.stage.towel.ID) {
Animation = true;
if (carring == _global.stage.game.carryNothing) {
clear_towel = true;
_global.path.expenseMoney = _global.path.expenseMoney + TowelMoney;
_local3.clip.gotoAndStop("lift");
_local3.clip.lift.gotoAndStop("right");
carring = _global.stage.game.carry_towel;
} else {
stopBabySitter();
}
}
}
function stopBabySitter() {
_global.stage.game.ClickArray.splice(0, _global.stage.game.ClickArray.length);
_global.stage.game.invalidState = true;
_global.count = 1;
standBabySitter();
}
function standBabySitter() {
var _local3 = this;
_local3.clip.gotoAndStop("stand");
if (carring == _global.stage.game.carryNothing) {
_local3.clip.stand.gotoAndStop("stand");
}
if (carring == _global.stage.game.carryFood) {
var _local6 = Food.instanceName.substr(Food.instanceName.length - 1, 1);
_local3.clip.stand.gotoAndStop("stand21");
}
if (carring == _global.stage.game.carry_towel) {
_local3.clip.stand.gotoAndStop("stand4");
}
if (carring == _global.stage.game.carryBaby) {
var _local4 = Baby;
Baby.cleaning = false;
Baby.eatMeal = false;
Baby.eat = false;
var _local5 = _local4.clipIndex;
_local3.clip.stand.gotoAndStop(("stand" + _global.stage.game.carryBaby.toString()) + _local5);
Baby.stopBabyCrying();
}
if (carring == _global.stage.game.carryToy) {
_local3.clip.stand.gotoAndStop(("stand" + _global.stage.game.carryToy.toString()) + toyIndex);
}
Animation = false;
}
function baby() {
}
function babyEating() {
}
function babyClean() {
}
function attachBaby() {
_global.path.helpTips[2].dettachPopUp();
_global.path.helpTips[23].dettachPopUp();
_global.path.helpTips[28].dettachPopUp();
_global.path.helpTips[22].dettachPopUp();
if (_global.stage.game.babyFromDoor == true) {
_global.stage.game.babyFromDoor = false;
Baby.setNeed(_global.stage.game.happy);
}
Baby.timeSetted = false;
_global.path.helpTips[21].showPopUp();
_global.path.currentMovie = undefined;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
if (Baby.prevrtenoPopup == true) {
_global.path.helpTips[45].dettachPopUp();
Baby.prevrtenoPopup = false;
}
if (_global.path.tutorialDay == true) {
_global.path.helpTips[20].dettachPopUp();
_global.path.helpTips[22].dettachPopUp();
}
var _local5 = Baby.where;
var _local3;
var _local14 = false;
Baby.flip = false;
var _local6 = Baby.depth;
if ((_local5.ID == _global.stage.bed.ID) && ((Baby.need = _global.stage.game.sleepy))) {
_global.path.helpTips[30].showPopUp();
}
_local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3] == Baby) {
var _local4 = _local3;
break;
}
_local3++;
}
if ((_local5.ID == _global.stage.carpet[1].ID) && (((_local5.linkID == "carpet1") || (_local5.linkID == "carpet2")) || (_local5.linkID == "carpet3"))) {
_local6 = _depth.getDepth(ActionObject) + 456;
_global.path.helpTips[31].dettachPopUp();
} else if ((_local5.ID == _global.stage.carpet[1].ID) && ((((_local5.linkID == "carpet4") || (_local5.linkID == "carpet5")) || (_local5.linkID == "carpet6")) || (_local5.linkID == "carpet7"))) {
_local6 = _depth.getDepth(ActionObject) + 50;
_global.path.helpTips[31].dettachPopUp();
} else {
_local6 = ActionObject.clip.getDepth() + 3;
}
var _local10 = _global.stage.girl.clip._xscale - 65;
var _local13 = _global.stage.girl.clip._yscale - 65;
_global.stage.babies[_local4].attachClip(_local5.attachPoint.x, _local5.attachPoint.y, 100 + _local10, 100 + _local13, _local6);
var _local7 = _global.stage.babies[_local4].clip;
_local7.tabEnabled = false;
_local7.onRollOver = function () {
_global.path.cursor.clip.gotoAndStop("hand");
};
_local7.onRollOut = function () {
_global.path.cursor.clip.gotoAndStop("arrow");
};
_local7.onDragOut = function () {
_global.path.cursor.clip.gotoAndStop("arrow");
};
_global.stage.babies[_local4].addHappiness(1);
if (_local5.place == "left") {
var _local12 = Baby.clipIndex;
var _local8 = "b" + _local12;
Baby.flip = true;
_global.stage.babies[_local4].clip._xscale = _global.stage.babies[_local4].clip._xscale * -1;
_global.stage.babies[_local4].clip.gotoAndStop(_local8);
_global.stage.babies[_local4].hearts._x = _global.stage.babies[_local4].hearts._x - 40;
}
if ((((_local5.part % 7) == 0) || ((_local5.part % 7) == 4)) || ((_local5.part % 7) == 3)) {
var _local12 = Baby.clipIndex;
var _local8 = "b" + _local12;
Baby.flip = true;
_global.stage.babies[_local4].clip._xscale = _global.stage.babies[_local4].clip._xscale * -1;
_global.stage.babies[_local4].clip.gotoAndStop(_local8);
_global.stage.babies[_local4].hearts._x = _global.stage.babies[_local4].hearts._x - 40;
}
var _local12 = Baby.clipIndex;
var _local8 = "b" + _local12;
var _local9;
if ((_local5.ID == _global.stage.bed[1].ID) && (_global.stage.babies[_local4].need == _global.stage.game.sleepy)) {
if (Baby.where.linkID == _global.stage.bed[0].linkID) {
_local3 = 1;
}
if (Baby.where.linkID == _global.stage.bed[1].linkID) {
_local3 = 2;
}
if (Baby.where.linkID == _global.stage.bed[2].linkID) {
_local3 = 3;
}
if (Baby.where.linkID == _global.stage.bed[3].linkID) {
_local3 = 4;
}
Baby.sleeping = true;
_global.stage.babies[_local4].needCanChange = true;
var _local11 = _local3;
_local9 = ("need" + _global.stage.game.sleepy.toString()) + _local11.toString();
} else {
Baby.sleeping = false;
_local9 = "need" + _global.stage.babies[_local4].need.toString();
}
_global.stage.babies[_local4].clip.gotoAndStop(_local8);
_global.stage.babies[_local4].clip.bebence.gotoAndStop(_local9);
if ((_global.stage.babies[_local4].need == _global.stage.game.hungry) && (_local5.ID == _global.stage.chair[0].ID)) {
_global.path.helpTips[24].dettachPopUp();
if ((!_global.stage.foodMaker.hasABottle) && (foodmakerClicked == false)) {
_global.path.helpTips[25].showPopUp();
_global.path.currentMovie = _global.stage.foodMaker.clip;
_global.path.currentHelpMovie = undefined;
_global.path.currentHelp1Movie = undefined;
}
_global.stage.game.klikniFood = true;
}
if ((_global.stage.babies[_local4].need == _global.stage.game.angry) && (_local5.ID == _global.stage.box[1].ID)) {
_global.stage.babies[_local4].clip[_local8].gotoAndStop("need1");
} else {
_global.stage.babies[_local4].clip[_local8].gotoAndStop(_local9);
}
if ((((((_local5.part % 7) == 0) || ((_local5.part % 7) == 4)) || ((_local5.part % 7) == 3)) || (_local5.linkID == "chair3")) || (_local5.linkID == "chair4")) {
_local12 = Baby.clipIndex;
_local8 = "b" + _local12;
if (_global.stage.babies[_local4].need == _global.stage.game.sleepy) {
_global.stage.babies[_local4].clip[_local8].need.cloud._x = _global.stage.babies[_local4].clip[_local8].need.cloud._x + 10;
_global.stage.babies[_local4].clip[_local8].need._xscale = _global.stage.babies[_local4].clip[_local8].need._xscale * -1;
_global.stage.babies[_local4].clip[_local8].need._x = _global.stage.babies[_local4].clip[_local8].need._x - 10;
}
}
_local5.Baby = Baby;
}
function Walk(destPoint) {
_global.stage.game.invalidState = false;
refreshSolidObjects();
var _local11 = this;
var _local10 = Math.ceil(_local11.clip._x / rootPath.game.spacing);
var _local9 = Math.ceil(_local11.clip._y / rootPath.game.spacing);
var _local4 = Math.ceil(destPoint.x / rootPath.game.spacing);
var _local5 = Math.ceil(destPoint.y / rootPath.game.spacing);
var _local6 = true;
if (rootPath.game[(("node" + _local4) + "_") + _local5].type > 1) {
var _local3 = 1;
while (_local3 < 10) {
if (rootPath.game[(("node" + (_local4 + _local3)) + "_") + _local5].type == 1) {
_local4 = _local4 + _local3;
_local6 = false;
break;
}
if (rootPath.game[(("node" + (_local4 - _local3)) + "_") + _local5].type == 1) {
_local4 = _local4 - _local3;
_local6 = false;
break;
}
if (rootPath.game[(("node" + _local4) + "_") + (_local5 + _local3)].type == 1) {
_local5 = _local5 + _local3;
_local6 = false;
break;
}
if (rootPath.game[(("node" + _local4) + "_") + (_local5 - _local3)].type == 1) {
_local5 = _local5 - _local3;
_local6 = false;
break;
}
_local3++;
}
} else {
_local6 = false;
}
var _local8 = false;
if (((_local10 == _local4) && (_local9 == _local5)) || (hitTest(destPoint.x, destPoint.y, true))) {
_local8 = false;
} else {
_local8 = true;
}
if ((((((_local8 == true) && (_local6 == false)) && (destPoint.x > 0)) && (destPoint.x < (rootPath.game.cols * rootPath.game.spacing))) && (destPoint.y > 0)) && (destPoint.y < (rootPath.game.rows * rootPath.game.spacing))) {
astar.s.x = _local10;
astar.s.y = _local9;
astar.g.x = _local4;
astar.g.y = _local5;
_local11 = this;
_local11.path = astar.search();
canMove = true;
optimizePath();
findNextCell();
moveObject();
} else if (candoAction == true) {
doAction();
} else {
candoAction = true;
stopBabySitter();
}
}
function findNextCell() {
var _local3 = this;
var _local13 = Math.ceil(_local3.clip._x / rootPath.game.spacing);
var _local12 = Math.ceil(_local3.clip._y / rootPath.game.spacing);
var _local7 = _local3.optiPath.shift();
var _local6 = rootPath.game[(("node" + _local13) + "_") + _local12];
var _local8 = rootPath.game[(("node" + _local7[0]) + "_") + _local7[1]];
_local3.startx = _local6.xmid;
_local3.starty = _local6.ymid;
_local3.endx = _local8.xmid;
_local3.endy = _local8.ymid;
_local3.angle = Math.atan2(_local3.endy - _local3.starty, _local3.endx - _local3.startx);
_local3.xmov = _speed * Math.cos(_local3.angle);
_local3.ymov = _speed * Math.sin(_local3.angle);
if ((Math.abs(_local7[0] - _local3.startx) > 0) && (Math.sin(_local3.angle) == 0)) {
clip._y = _local6.ymid;
}
if ((Math.abs(_local7[1] - _local3.starty) > 0) && (Math.abs(Math.sin(_local3.angle)) == 1)) {
clip._x = _local6.xmid;
}
var _local5 = "";
if (carring > 0) {
_local5 = carring.toString();
}
var _local4 = "";
if (carring == _global.stage.game.carryFood) {
_local4 = "2";
}
if (carring == _global.stage.game.carryBaby) {
var _local11 = Baby;
_local4 = _local11.clipIndex;
}
if (carring == _global.stage.game.carryToy) {
_local4 = toyIndex;
}
if (carring == _global.stage.game.carry_towel) {
_local4 = "";
}
var _local9 = _local3.endx - _local3.startx;
var _local10 = _local3.endy - _local3.starty;
_local3.clip.gotoAndStop("walk");
if (_local9 > 0) {
_local3.clip.walk.gotoAndStop(("right" + _local5) + _local4);
} else if (_local9 < 0) {
_local3.clip.walk.gotoAndStop(("left" + _local5) + _local4);
} else if (_local10 > 0) {
_local3.clip.walk.gotoAndStop(("down" + _local5) + _local4);
} else if (_local10 < 0) {
if (carring == _global.stage.game.carryToy) {
_local4 = "";
}
_local3.clip.walk.gotoAndStop(("up" + _local5) + _local4);
}
}
function moveObject() {
var _local3 = this;
if (_global.stage.girl.canMove == true) {
_global.stage.girl.canMove = true;
_global.stage.game.moving = true;
_local3.tempx = Math.round(_local3.clip._x + _local3.xmov);
_local3.tempy = Math.round(_local3.clip._y + _local3.ymov);
var _local16 = Math.ceil(_local3.clip._x / rootPath.game.spacing);
var _local14 = Math.ceil(_local3.clip._y / rootPath.game.spacing);
var _local24 = Math.ceil(_local3.tempx / rootPath.game.spacing);
var _local22 = Math.ceil(_local3.tempy / rootPath.game.spacing);
var _local8 = 0;
var _local7 = 0;
var _local4 = 0;
var _local5 = 0;
_local8 = _local3.startx;
_local7 = _local3.starty;
_local4 = _local3.endx;
_local5 = _local3.endy;
var _local9 = _local3.tempx;
var _local11 = _local3.tempy;
var _local20 = _local4 - _local8;
var _local18 = _local4 - _local9;
if ((((((_local4 - _local8) / Math.abs(_local4 - _local8)) != ((_local4 - _local9) / Math.abs(_local4 - _local9))) && ((_local4 - _local8) != 0)) && ((_local4 - _local9) != 0)) || (((((_local5 - _local7) / Math.abs(_local5 - _local7)) != ((_local5 - _local11) / Math.abs(_local5 - _local11))) && ((_local5 - _local7) != 0)) && ((_local5 - _local11) != 0))) {
if (optiPath.length == 0) {
_local3.xmov = 0;
_local3.ymov = 0;
_local3.tempx = _local4;
_local3.tempy = _local5;
refreshSolidObjects();
if (((_global.stage.clownClicked == true) && (_global.stage.clownAttach == false)) && (flagForClown == true)) {
flagForClown = false;
_global.stage.game.pomestiClown = true;
_global.stage.clownAttach = true;
_global.stage.game.markCell(13, 7, false);
_global.stage.game.markCell(13, 8, false);
_global.stage.game.markCell(14, 7, false);
_global.stage.game.markCell(14, 8, false);
_global.stage.nowComingClown = false;
_global.stage.clown.clip.removeMovieClip();
var _local10;
if (_global.stage.game.firstClown == true) {
_global.stage.door.clip.dor_Dor.gotoAndPlay("clown");
_local10.clip = _global.stage.attachMovie("clown_animation1", "klovn_anim", 17407, {_x:543, _y:153.7, _xscale:50, _yscale:50});
} else if (_global.stage.game.anyClown == true) {
var _local17 = Math.floor(Math.random() * 3) + 1;
switch (_local17) {
case 1 :
_global.stage.door.clip.dor_Dor.gotoAndPlay("clown");
_local10.clip = _global.stage.attachMovie("clown_animation1", "klovn_anim", 17407, {_x:543, _y:153.7, _xscale:50, _yscale:50});
break;
case 2 :
_local10.clip = _global.stage.attachMovie("clown_animation2", "klovn_anim", 17407, {_x:486.05, _y:18.25, _xscale:100, _yscale:100});
break;
case 3 :
_local10.clip = _global.stage.attachMovie("clown_animation3", "klovn_anim", 17407, {_x:486.05, _y:18.25, _xscale:100, _yscale:100});
}
} else {
_local10.clip = _global.stage.attachMovie("clown_animation2", "klovn_anim", 17407, {_x:486.05, _y:18.25, _xscale:100, _yscale:100});
}
}
_global.stage.pause = true;
var _local13 = Math.ceil(_local3.endx / rootPath.game.spacing);
var _local12 = Math.ceil(_local3.endy / rootPath.game.spacing);
if ((_local13 == cellx) && (_local12 == celly)) {
_local3.clip._x = _local3.endx;
_local3.clip._y = _local3.endy;
}
cellx = _local16;
celly = _local14;
doAction();
_global.stage.girl.canMove = false;
} else {
_local3.clip._x = _local3.endx;
_local3.clip._y = _local3.endy;
findNextCell();
moveObject();
}
} else if (_global.stage.girl.canMove) {
var _local6 = 0;
_local6 = _local5 - _local7;
if (_global.stage.clownAttach == false) {
if (_local6 > 0) {
if (_local3.clip._xscale < _global.stage.game.MaxScale) {
_local3.clip._xscale = _local3.clip._xscale + 1.39;
_local3.clip._yscale = _local3.clip._yscale + 1.39;
} else {
_local3.clip._xscale = _global.stage.game.MaxScale;
_local3.clip._yscale = _global.stage.game.MaxScale;
}
} else if (_local6 < 0) {
_local3.clip._xscale = _local3.clip._xscale - 1.39;
_local3.clip._yscale = _local3.clip._yscale - 1.39;
}
} else if (_local6 > 0) {
_local3.clip._xscale = _local3.clip._xscale + 1.39;
_local3.clip._yscale = _local3.clip._yscale + 1.39;
} else if (_local6 < 0) {
_local3.clip._xscale = _local3.clip._xscale - 1.39;
_local3.clip._yscale = _local3.clip._yscale - 1.39;
}
if ((_global.stage.config.id == 1) || (_global.stage.config.id == 3)) {
if (_local3.clip._y <= 319) {
var _local15 = 17800;
_local3.clip.swapDepths(_local15);
}
if ((_local3.clip._y > 319) && (_local3.clip._y <= 465)) {
var _local15 = _depth.getDepth(_global.stage.toy_boxes[0]) - 15;
_local3.clip.swapDepths(_local15);
}
if (_local3.clip._y > 465) {
var _local15 = _depth.getDepth(_global.stage.bed[0]) + 400;
_local3.clip.swapDepths(_local15);
}
if ((_local3.clip._x > 590) && (_local3.clip._y > 460)) {
var _local15 = 20250;
_local3.clip.swapDepths(_local15);
}
} else {
if (_local3.clip._y <= 319) {
var _local15 = 17800;
_local3.clip.swapDepths(_local15);
}
if ((_local3.clip._y > 319) && (_local3.clip._y <= 465)) {
var _local15 = _depth.getDepth(_global.stage.toy_boxes[0]) - 15;
_local3.clip.swapDepths(_local15);
}
if (_local3.clip._y >= 462) {
var _local15 = 40286;
_local3.clip.swapDepths(_local15);
}
}
_local3.clip._x = _local3.tempx;
_local3.clip._y = _local3.tempy;
}
}
}
function optimizePath() {
var _local9 = this;
var _local6 = Math.ceil(_local9.clip._x / rootPath.game.spacing);
var _local5 = Math.ceil(_local9.clip._y / rootPath.game.spacing);
optiPath[0] = new Array(_local6, _local5);
var _local10 = _local9.path.length;
var _local7 = 0;
var _local2 = _local9.path.shift();
var _local8 = Math.atan2(_local5 - _local2[1], _local6 - _local2[0]);
optiPath[_local7] = [_local2[0], _local2[1]];
var _local3 = 1;
while (_local3 < _local10) {
_local6 = _local2[0];
_local5 = _local2[1];
_local2 = _local9.path.shift();
var _local4 = Math.atan2(_local5 - _local2[1], _local6 - _local2[0]);
if (_local4 == _local8) {
optiPath[_local7] = [_local2[0], _local2[1]];
} else {
_local7++;
optiPath[_local7] = [_local2[0], _local2[1]];
_local8 = _local4;
}
_local3++;
}
}
function refreshSolidObjects() {
_global.stage.game.moving = false;
_global.stage.girl.canMove = false;
rootPath.astar.maxX = rootPath.game.cols;
rootPath.astar.maxY = rootPath.game.rows;
var _local5 = 1;
while (_local5 <= rootPath.game.rows) {
var _local3 = 1;
while (_local3 <= rootPath.game.cols) {
var _local4 = (("node" + _local3) + "_") + _local5;
if (rootPath.game[_local4].type == 2) {
rootPath.astar.nodes[_local4] = rootPath.astar.solidOb;
}
_local3++;
}
_local5++;
}
}
function proveriBabySong() {
var _local3 = false;
var _local2 = 0;
while (_local2 <= _global.path.bedNum) {
if (_global.stage.bed[_local2].babySleep == true) {
_local3 = true;
break;
}
_local2++;
}
if (_local3 == false) {
_global.babySong = false;
_global.path.sound.stopMusic("baby_song");
_global.path.sound.stopSound("babySleep");
}
}
function proveriBabySongBedroom() {
var _local3 = false;
var _local2 = 0;
while (_local2 <= _global.path.bedNum) {
if (_global.stage.panelButton[_local2].babySleep == true) {
_local3 = true;
break;
}
_local2++;
}
if (_local3 == false) {
_global.babySong = false;
_global.path.sound.stopMusic("baby_song");
_global.path.sound.stopSound("babySleep");
}
}
var swaped = false;
var optiPath = new Array();
var FoodMoney = 10;
var TowelMoney = 5;
var BedImpact = 0.8;
var BoxImpact = 0.8;
var ToyImpact = 1;
var DiperImpact = 0.8;
var BathImpact = 1;
var ChairImpact = 0.8;
var clear_towel = false;
}
Symbol 5923 MovieClip [__Packages.xx.Level1] Frame 0
class xx.Level1
{
function Level1 () {
}
var xml = new String("<map><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /></row></map>");
}
Symbol 5924 MovieClip [__Packages.conf.Level2Conf] Frame 0
class conf.Level2Conf
{
var numBeds, numChairs, numBoxes, flagBox1, flagBox2, flagBox3, flagBed1, flagBed2, flagBed3, flagBed4, flagBed5, flagBed6, flagchair1, flagchair2, flagchair3, flagchair4, flagCarpet3, flagCarpet4, flagCarpet5, flagCarpet6, flagHorse1, flagHorse2, flagHorse3, flagHorse4, _depth, l, board;
function Level2Conf () {
init();
}
function init() {
numBeds = 0;
numChairs = 0;
numBoxes = 0;
_global.path.dayBabiesNum = 2;
_global.stage.level1conf = this;
_global.game = {};
_global.toyNumber = 15;
_global.paintNumber = 2;
_global.foodMakerNumber = 0;
_global.game.BedroomType = 1;
_global.game.ReceptionsType = 2;
_global.path.needNumber = 10;
flagBox1 = false;
flagBox2 = false;
flagBox3 = false;
flagBed1 = false;
flagBed2 = false;
flagBed3 = false;
flagBed4 = false;
flagBed5 = false;
flagBed6 = false;
flagchair1 = false;
flagchair2 = false;
flagchair3 = false;
flagchair4 = false;
flagCarpet3 = false;
flagCarpet4 = false;
flagCarpet5 = false;
flagCarpet6 = false;
flagHorse1 = false;
flagHorse2 = false;
flagHorse3 = false;
flagHorse4 = false;
_global.path.yourItems = new Array();
_depth = new control.DepthController();
_global.stage.level = 0;
_global.bonus = 0;
_global.stage.bigChair = [new mc.BigChair("bigChair", 648, 262, 0, 73.8, 73.8), new mc.BigChair("bigChair", 674.2, 290.95, 0, 81.5, 81.5), new mc.BigChair("bigChair", 704.25, 324, 0, 90.5, 90.5), new mc.BigChair("bigChair", 737.65, 360.95, 0, 100, 100)];
_global.stage.bigchairMask = [new mc.BigChairMask("bigChairMask", 648, 262, 0, 73.8, 73.8), new mc.BigChairMask("bigChairMask", 674.2, 290.95, 0, 81.5, 81.5), new mc.BigChairMask("bigChairMask", 704.25, 324, 0, 90.5, 90.5), new mc.BigChairMask("bigChairMask", 737.65, 360.95, 0, 100, 100)];
_global.stage.horse = [new mc.Horse("horse", 484.05, 376.65, 0, 100, 100), new mc.Horse("horse", 260.8, 376.65, 0, -100, 100), new mc.Horse("horse", 497.65, 434.95, 0, 114.7, 114.7), new mc.Horse("horse", 240, 434.95, 0, -114.7, 114.7)];
_global.stage.calendar = new mc.Calendar("calendar", 425.9, 60.3, 0, 100, 100);
_global.stage.door = new mc.Door("door" + _global.path.ReceptionsType, 486.05, 18.25, 0, 100, 100);
_global.stage.bath = new mc.Bath("bath", 213.9, 162.85, 0, 100, 100);
_global.stage.diperTable = new mc.DiperTable("diperTable", 320.75, 136.3, 0, 100, 100);
_global.stage.dipers = new mc.Diper("diapers", 435.2, 111, 0, 100, 100);
_global.stage.trash = new mc.Trash("trash", 445.9, 211, 0, 100, 100);
_global.stage.trash2 = new mc.Trash2("trash2", 161.45, 200.45, 0, 100, 100);
_global.stage.boxover = [new mc.Boxover("boxover1", 3.8, 284.7, 0, 100, 100), new mc.Boxover("boxover2", 40.15, 256.87, 0, 100, 100), new mc.Boxover("BigBoxMask", 275.95, 431, 0, 100, 100)];
_global.stage.boxFront = new mc.BoxFront("boxFront", 3.8, 284.7, 0, 100, 100);
_global.stage.carpet = [new mc.Carpet("carpet3", 442.3, 308.9, 0, 152.2, 138.8), new mc.Carpet("carpet2", 312.2, 299.9, 0, 152.2, 138.8), new mc.Carpet("carpet1", 174.6, 302.4, 0, 152.2, 138.8), new mc.Carpet("carpet7", 442.3, 308.9, 0, 152.2, 138.8), new mc.Carpet("carpet6", 312.2, 299.9, 0, 152.2, 138.8), new mc.Carpet("carpet5", 312.2, 299.9, 0, 152.2, 138.8), new mc.Carpet("carpet4", 174.6, 302.4, 0, 152.2, 138.8)];
_global.stage.box = [new mc.Box("box1", 3.5, 284.55, 0, 100, 100), new mc.Box("box2", 40.7, 257, 0, 100, 100), new mc.Box("BigBox", 275.95, 431, 0, 100, 100)];
_global.stage.toy = [new mc.Toy("toy1", 743, 347, 61, 75, 75), new mc.Toy("toy2", 758, 351, 61, 100, 100), new mc.Toy("toy3", 708, 345, 0, 75, 75), new mc.Toy("toy4", 716, 353, 0, 100, 100), new mc.Toy("toy5", 735, 351, 0, 75, 75), new mc.Toy("toy6", 698, 350, 0, 100, 100), new mc.Toy("toy7", 688, 359, 0, 75, 75), new mc.Toy("toy8", 754, 345, 0, 75, 75), new mc.Toy("toy9", 763, 357, 0, 75, 75), new mc.Toy("toy10", 763, 370, 0, 75, 75), new mc.Toy("toy11", 682, 347, 0, 100, 100), new mc.Toy("toy12", 740, 373, 0, 100, 100), new mc.Toy("toy13", 686, 367, 0, 75, 75), new mc.Toy("toy14", 749, 356, 0, 75, 75), new mc.Toy("toy15", 707, 373, 0, 75, 75)];
_global.stage.towel = new mc.Towel("towel", 646.25, 163.15, 0, 82.8, 82.8);
_global.stage.paint = new mc.Paint("paint", 3, 120, 0, 100, 100);
_global.stage.bedroomDoor = new mc.BedroomDoor("BedroomDoor", 98.65, 20.35, 0, 100, 100);
_global.stage.panelButton = [new mc.BedroomButton("bedroomButton0", 184.45, 66.2, 0, 100, 100), new mc.BedroomButton("bedroomButton1", 218.95, 66.2, 0, 100, 100), new mc.BedroomButton("bedroomButton2", 184.35, 95.05, 0, 100, 100), new mc.BedroomButton("bedroomButton3", 218.85, 95.05, 0, 100, 100), new mc.BedroomButton("bedroomButton4", 184.65, 124.25, 0, 100, 100), new mc.BedroomButton("bedroomButton5", 219.15, 124.25, 0, 100, 100)];
_global.stage.panel = new mc.BedroomPanel("bedroomPanel", 169.45, 58.3, 0, 100, 100);
_global.stage.plant = [new mc.Plant("plant", 710.8, 463.3, 0, 100, 100), new mc.Plant("plant3", -12.8, 410.05, 0, 100, 100)];
_global.stage.clock = [new mc.Clock("clock", 433, 13, 0, 100, 100), new mc.Clock("digi_clock", 185, 11, 0, 100, 100)];
_global.stage.srca = new mc.Srce("srca_mc", 13, 15, 0, 80, 80);
_global.stage.prekidac = new mc.Senka("prekidac", 452.5, 137, 0, 70, 70);
_global.stage.reception = new mc.reception("Receptions_mc", 0, 0, 0, 100, 100);
_global.stage.toy_boxes = [new mc.Toy_box("toy_box", 665.25, 345.85, 0, 100, 100), new mc.Toy_box("toy_box1", 665.25, 345.85, 0, 100, 100)];
_global.stage.babies = [new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby()];
_global.stage.bottle = new mc.Bottle("BOTTLE1", 715, 243, 0, 17, 17);
_global.stage.bell = new mc.Bell("bell", 568.8, 10.4, 0, 25, 25);
_global.stage.window = [new mc.Windows("prozor1", 259.2, 23.35, 0, 100, 100)];
_global.stage.kitchenWindow = new mc.KitchenWindow("KitchenWindow", 634.95, 21.95, 0, 100, 100);
_global.stage.clown = new mc.Clown("clown", 17, 43, 0, 100, 100);
_global.stage.nany = new mc.Nany("nany", 354, 306, 0, 55, 55);
_global.stage.girl = new mc.BabySitter("girl", 214, 302, 17800, 0, 65, 65, _global.stage.astar);
_global.stage.girl.clip = _global.stage.attachMovie("girl", "babySitter", 17800, {_x:214, _y:302, _rotation:0, _xscale:76, _yscale:76});
_global.stage.girl.clip.cacheAsBitmap = true;
l = new xx.Level2();
board = new XML();
board.parseXML(l.xml);
buildXMLGrid();
createObjects();
}
function buildXMLGrid() {
board = board.firstChild;
var _local6 = 1;
var _local7 = board.firstChild;
while (_local7 != null) {
var _local5 = 1;
var _local4 = _local7.firstChild;
while (_local4 != null) {
var _local3 = (("node" + _local5) + "_") + _local6;
var _local9 = (_local5 - 1) * _global.stage.game.spacing;
var _local8 = (_local6 - 1) * _global.stage.game.spacing;
var _local17 = _local4.attributes.type;
var _local10;
switch (_local17) {
case "1" :
_local10 = "walk";
break;
case "2" :
_local10 = "obsticle";
_global.stage.astar.nodes[_local3].solid = true;
}
_global.stage.game[_local3] = {x:_local5, y:_local6, xmid:_local9 + (_global.stage.game.spacing / 2), ymid:_local8 + (_global.stage.game.spacing / 2), name:_local3, type:_local17, clip:_global.stage.game.path[_local3]};
_local4 = _local4.nextSibling;
_local5++;
}
_local7 = _local7.nextSibling;
_local6++;
}
_global.stage.game.rows = _local6 - 1;
_global.stage.game.cols = _local5 - 1;
_global.stage.astar.maxX = _global.stage.game.rows;
_global.stage.astar.maxY = _global.stage.game.cols;
initializeLevel1();
}
function initializeLevel1() {
_global.stage.bigChair[0].setCoordinates(560.3, 284.75, "right", "right");
_global.stage.bigChair[1].setCoordinates(592.3, 323.75, "right", "right");
_global.stage.bigChair[2].setCoordinates(629.3, 347.75, "right", "right");
_global.stage.bigChair[3].setCoordinates(662.3, 374.75, "right", "right");
_global.stage.bigChair[0].attachPoint = {x:608.45, y:163.5};
_global.stage.bigChair[1].attachPoint = {x:632.45, y:187.5};
_global.stage.bigChair[2].attachPoint = {x:665.45, y:214.5};
_global.stage.bigChair[3].attachPoint = {x:696.45, y:248.5};
_global.stage.box[2].setCoordinates(470.3, 547.75, "left", "left");
_global.stage.box[2].attachPoint = {x:352.45, y:469.5};
_global.stage.horse[0].setCoordinates(551.3, 461.75, "right", "right");
_global.stage.horse[1].setCoordinates(170.3, 461.75, "right", "right");
_global.stage.horse[2].setCoordinates(583.3, 509.75, "right", "right");
_global.stage.horse[3].setCoordinates(141.3, 502.75, "right", "right");
_global.stage.horse[0].attachPoint = {x:552.45, y:357.5};
_global.stage.horse[1].attachPoint = {x:143.45, y:365.5};
_global.stage.horse[2].attachPoint = {x:573.45, y:425.5};
_global.stage.horse[3].attachPoint = {x:114.45, y:441.5};
_global.stage.bedroomDoor.setCoordinates(184.3, 242.75);
_global.stage.panelButton[0].setCoordinates(194.3, 242.75);
_global.stage.panelButton[1].setCoordinates(194.3, 242.75);
_global.stage.panelButton[2].setCoordinates(194.3, 242.75);
_global.stage.panelButton[3].setCoordinates(194.3, 242.75);
_global.stage.panelButton[4].setCoordinates(194.3, 242.75);
_global.stage.panelButton[5].setCoordinates(194.3, 242.75);
_global.stage.trash2.setCoordinates(194.3, 242.75, "up");
_global.stage.bottle.attachPoint = {x:16, y:9};
_global.stage.bottle.setCoordinates(670, 375, "right");
_global.stage.carpet[0].setCoordinates(501, 378, "left");
_global.stage.carpet[1].setCoordinates(395, 365, "up");
_global.stage.carpet[2].setCoordinates(270, 375, "right");
_global.stage.carpet[0].attachPoint = {x:531, y:315};
_global.stage.carpet[1].attachPoint = {x:367, y:327};
_global.stage.carpet[2].attachPoint = {x:270, y:307};
_global.stage.carpet[6].setCoordinates(214, 302, "right");
_global.stage.carpet[5].setCoordinates(342, 302, "down");
_global.stage.carpet[4].setCoordinates(417, 302, "down");
_global.stage.carpet[3].setCoordinates(521, 333, "left");
_global.stage.carpet[6].attachPoint = {x:252, y:262};
_global.stage.carpet[5].attachPoint = {x:329, y:262};
_global.stage.carpet[4].attachPoint = {x:447, y:259};
_global.stage.carpet[3].attachPoint = {x:520, y:279};
_global.stage.bed[0].setCoordinates(170, 555, "left", "right");
_global.stage.bed[0].attachPoint = {x:71, y:390};
_global.stage.bed[1].setCoordinates(170, 555, "right", "right");
_global.stage.bed[1].attachPoint = {x:258, y:390};
_global.stage.bed[2].setCoordinates(490, 555, "left", "left");
_global.stage.bed[2].attachPoint = {x:424, y:390};
_global.stage.bed[3].setCoordinates(490, 555, "right", "left");
_global.stage.bed[3].attachPoint = {x:610, y:390};
_global.stage.foodMaker.setCoordinates(650, 375, "right");
_global.stage.diperTable.setCoordinates(387, 274);
_global.stage.bath.setCoordinates(387, 274);
_global.stage.door.setCoordinates(568, 277);
_global.stage.towel.setCoordinates(560.3, 284.75, "right");
_global.stage.box[1].setCoordinates(170, 345, "left");
_global.stage.box[1].attachPoint = {x:79, y:257};
_global.stage.box[1].clip.gotoAndStop(2);
_global.stage.box[0].setCoordinates(125, 90, "left");
_global.stage.box[0].attachPoint = {x:43, y:300};
_global.stage.trash.setCoordinates(445.9, 211, "up");
var _local2 = 0;
while (_local2 <= 14) {
_global.stage.toy[_local2].setCoordinates(679, 504);
_local2++;
}
}
function attachMC(mc, changeMouse) {
mc.depth = _depth.getDepth(mc);
mc.clip = _global.stage.attachMovie(mc.linkID, getUniqueName(), mc.depth, {_x:mc.x, _y:mc.y, _rotation:mc.rot, _xscale:mc.xscale, _yscale:mc.yscale});
mc.clip.cacheAsBitmap = true;
mc.clip.tabEnabled = false;
if (changeMouse) {
mc.clip.onRollOver = function () {
_global.path.cursor.clip.gotoAndStop("hand");
};
mc.clip.onRollOut = function () {
_global.path.cursor.clip.gotoAndStop("arrow");
};
mc.clip.onDragOut = function () {
_global.path.cursor.clip.gotoAndStop("arrow");
};
}
}
function createObjects() {
var _local7 = _global.path.horse.level1;
var _local5 = _global.path.horse.level2;
var _local6 = _global.path.horse.level3;
var _local3 = 3;
while (_local3 >= 1) {
var _local4 = "level" + _local3;
if ((_global.path.horse[_local4] > 0) && (flagHorse1 == false)) {
attachMC(_global.stage.horse[0], true);
_global.stage.horse[0].HorseProp(_local3);
_global.stage.horse[0].clip.horse.gotoAndStop("h" + _local3);
_global.path.horse[_local4]--;
_global.path.yourItems.push(_global.stage.horse[0]);
flagHorse1 = true;
}
if ((_global.path.horse[_local4] > 0) && (flagHorse2 == false)) {
attachMC(_global.stage.horse[1], true);
_global.stage.horse[1].HorseProp(_local3);
_global.stage.horse[1].clip.horse.gotoAndStop("h" + _local3);
_global.path.horse[_local4]--;
_global.path.yourItems.push(_global.stage.horse[1]);
flagHorse2 = true;
}
if ((_global.path.horse[_local4] > 0) && (flagHorse3 == false)) {
attachMC(_global.stage.horse[2], true);
_global.stage.horse[2].HorseProp(_local3);
_global.stage.horse[2].clip.horse.gotoAndStop("h" + _local3);
_global.path.horse[_local4]--;
_global.path.yourItems.push(_global.stage.horse[2]);
flagHorse3 = true;
}
if ((_global.path.horse[_local4] > 0) && (flagHorse4 == false)) {
attachMC(_global.stage.horse[3], true);
_global.stage.horse[3].HorseProp(_local3);
_global.stage.horse[3].clip.horse.gotoAndStop("h" + _local3);
_global.path.horse[_local4]--;
_global.path.yourItems.push(_global.stage.horse[3]);
flagHorse4 = true;
}
_local3--;
}
attachMC(_global.stage.panel, true);
_global.stage.panel.BedroomProp(_global.path.BedroomType);
_local3 = 0;
while (_local3 <= (((_global.path.bed.level1 + _global.path.bed.level2) + _global.path.bed.level3) - 1)) {
attachMC(_global.stage.panelButton[_local3], true);
_local3++;
}
attachMC(_global.stage.bedroomDoor, true);
_global.stage.bedroomDoor.BedroomDoorProp(_global.path.BedroomType);
_global.stage.bedroomDoor.clip.Door.gotoAndStop(_global.path.BedroomType);
_global.path.yourItems.push(_global.stage.panel);
_global.stage.bedroomDoor.clip.gotoAndStop("close");
attachMC(_global.stage.kitchenWindow, true);
_global.stage.kitchenWindow.KitchenWindowProp(_global.path.KitchenType);
_global.stage.kitchenWindow.clip.kichenWindow.gotoAndStop(_global.path.KitchenType);
_global.path.yourItems.push(_global.stage.kitchenWindow);
attachMC(_global.stage.calendar);
attachMC(_global.stage.carpet[0], true);
attachMC(_global.stage.carpet[1], true);
attachMC(_global.stage.carpet[2], true);
attachMC(_global.stage.carpet[6], true);
attachMC(_global.stage.carpet[5], true);
attachMC(_global.stage.carpet[4], true);
attachMC(_global.stage.carpet[3], true);
attachMC(_global.stage.window[0]);
_global.path.yourItems.push(_global.stage.carpet[0]);
if (_global.path.ReceptionsType > 0) {
attachMC(_global.stage.reception);
_global.stage.reception.receptionProp(_global.path.ReceptionsType);
_global.stage.window[0].clip.gotoAndStop("R" + _global.path.ReceptionsType);
_global.path.yourItems.push(_global.stage.reception);
}
attachMC(_global.stage.window[1]);
attachMC(_global.stage.bottle, true);
_global.stage.bottle.clip._visible = false;
attachMC(_global.stage.chairArray[1], true);
attachMC(_global.stage.door, true);
if (_global.path.clown) {
attachMC(_global.stage.clown);
}
if (_global.path.nany) {
attachMC(_global.stage.nany);
}
attachMC(_global.stage.trash2, true);
_global.path.yourItems.push(_global.stage.trash2);
attachMC(_global.stage.bath, true);
_global.path.yourItems.push(_global.stage.bath);
attachMC(_global.stage.diperTable, true);
_global.path.yourItems.push(_global.stage.diperTable);
attachMC(_global.stage.dipers);
_global.path.yourItems.push(_global.stage.dipers);
attachMC(_global.stage.trash, true);
_global.path.yourItems.push(_global.stage.trash);
attachMC(_global.stage.prekidac, true);
attachMC(_global.stage.kitchen);
var _local8 = _global.path.chair.level1;
var _local11 = _global.path.chair.level2;
var _local9 = _global.path.chair.level3;
_local3 = 3;
while (_local3 >= 1) {
var _local4 = "level" + _local3;
if ((_global.path.chair[_local4] > 0) && (flagchair1 == false)) {
attachMC(_global.stage.bigChair[0], true);
_global.stage.bigChair[0].BigChairProp(_local3, 1);
attachMC(_global.stage.bigchairMask[0], true);
_global.stage.bigChair[0].clip.gotoAndStop(_local3);
_global.stage.bigchairMask[0].clip.gotoAndStop(_local3);
_global.path.yourItems.push(_global.stage.bigChair[0]);
_global.path.chair[_local4]--;
flagchair1 = true;
numChairs = numChairs + 1;
}
if ((_global.path.chair[_local4] > 0) && (flagchair2 == false)) {
attachMC(_global.stage.bigChair[1], true);
_global.stage.bigChair[1].BigChairProp(_local3, 2);
attachMC(_global.stage.bigchairMask[1], true);
_global.stage.bigChair[1].clip.gotoAndStop(_local3);
_global.stage.bigchairMask[1].clip.gotoAndStop(_local3);
_global.path.chair[_local4]--;
_global.path.yourItems.push(_global.stage.bigChair[1]);
flagchair2 = true;
numChairs = numChairs + 1;
}
if ((_global.path.chair[_local4] > 0) && (flagchair3 == false)) {
attachMC(_global.stage.bigChair[2], true);
_global.stage.bigChair[2].BigChairProp(_local3, 3);
attachMC(_global.stage.bigchairMask[2], true);
_global.stage.bigChair[2].clip.gotoAndStop(_local3);
_global.stage.bigchairMask[2].clip.gotoAndStop(_local3);
_global.path.chair[_local4]--;
_global.path.yourItems.push(_global.stage.bigChair[2]);
flagchair3 = true;
numChairs = numChairs + 1;
}
if ((_global.path.chair[_local4] > 0) && (flagchair4 == false)) {
attachMC(_global.stage.bigChair[3], true);
_global.stage.bigChair[3].BigChairProp(_local3, 4);
attachMC(_global.stage.bigchairMask[3], true);
_global.stage.bigChair[3].clip.gotoAndStop(_local3);
_global.stage.bigchairMask[3].clip.gotoAndStop(_local3);
_global.path.chair[_local4]--;
_global.path.yourItems.push(_global.stage.bigChair[3]);
flagchair4 = true;
numChairs = numChairs + 1;
}
_local3--;
}
attachMC(_global.stage.carpet[7 - _local3], true);
attachMC(_global.stage.plant[0], true);
attachMC(_global.stage.plant[1], true);
attachMC(_global.stage.paint);
attachMC(_global.stage.srca);
attachMC(_global.stage.senka);
attachMC(_global.stage.clock[0]);
_local3 = 0;
while (_local3 < _global.toyNumber) {
attachMC(_global.stage.toy[_local3], true);
_local3++;
}
if (_global.game.ReceptionsType > 0) {
attachMC(_global.stage.reception);
}
var _local10 = _global.path.bed.level1;
var _local12 = _global.path.bed.level2;
var _local13 = _global.path.bed.level3;
var _local16 = _global.path.box.level1;
var _local15 = _global.path.box.level2;
var _local14 = _global.path.box.level3;
_local3 = 3;
while (_local3 >= 1) {
var _local4 = "level" + _local3;
if ((_global.path.box[_local4] > 0) && (flagBox1 == false)) {
attachMC(_global.stage.box[0], true);
attachMC(_global.stage.boxover[0], true);
attachMC(_global.stage.boxFront, true);
_global.path.yourItems.push(_global.stage.box[0]);
_global.stage.box[0].clip.gotoAndStop(_local3);
_global.stage.boxover[0].clip.gotoAndStop(_local3);
_global.stage.boxFront.clip.gotoAndStop(_local3);
_global.stage.box[0].BoxProp(_local3);
_global.path.box[_local4]--;
flagBox1 = true;
numBoxes = numBoxes + 1;
}
if ((_global.path.box[_local4] > 0) && (flagBox2 == false)) {
attachMC(_global.stage.box[1], true);
attachMC(_global.stage.boxover[1], true);
_global.path.yourItems.push(_global.stage.box[1]);
_global.stage.box[1].clip.gotoAndStop(_local3);
_global.stage.boxover[1].clip.gotoAndStop(_local3);
_global.stage.box[1].BoxProp(_local3);
_global.path.box[_local4]--;
flagBox2 = true;
numBoxes = numBoxes + 1;
}
if ((_global.path.box[_local4] > 0) && (flagBox3 == false)) {
attachMC(_global.stage.box[2], true);
attachMC(_global.stage.boxover[2], true);
_global.path.yourItems.push(_global.stage.box[2]);
_global.stage.box[2].clip.gotoAndStop(_local3);
_global.stage.boxover[2].clip.gotoAndStop(_local3);
_global.stage.box[2].BoxProp(_local3);
_global.path.box[_local4]--;
flagBox3 = true;
numBoxes = numBoxes + 1;
}
_local3--;
}
var _local17 = 5;
_local3 = 3;
while (_local3 >= 1) {
var _local4 = "level" + _local3;
if ((_global.path.bed[_local4] > 0) && (flagBed1 == false)) {
_global.stage.panelButton[0].clip.bedSimbol.gotoAndStop(_local3);
_global.stage.panelButton[0].BedroomButtonProp(_local3);
_global.path.yourItems.push(_global.stage.panelButton[0]);
_global.path.bed[_local4]--;
flagBed1 = true;
numBeds = numBeds + 1;
}
if ((_global.path.bed[_local4] > 0) && (flagBed2 == false)) {
_global.stage.panelButton[1].clip.bedSimbol.gotoAndStop(_local3);
_global.stage.panelButton[1].BedroomButtonProp(_local3);
_global.path.bed[_local4]--;
_global.path.yourItems.push(_global.stage.panelButton[1]);
flagBed2 = true;
numBeds = numBeds + 1;
}
if ((_global.path.bed[_local4] > 0) && (flagBed3 == false)) {
_global.stage.panelButton[2].clip.bedSimbol.gotoAndStop(_local3);
_global.stage.panelButton[2].BedroomButtonProp(_local3);
_global.path.bed[_local4]--;
_global.path.yourItems.push(_global.stage.panelButton[2]);
flagBed3 = true;
numBeds = numBeds + 1;
}
if ((_global.path.bed[_local4] > 0) && (flagBed4 == false)) {
_global.stage.panelButton[3].clip.bedSimbol.gotoAndStop(_local3);
_global.stage.panelButton[3].BedroomButtonProp(_local3);
_global.stage.bed[3].BedProp(_local3);
_global.path.yourItems.push(_global.stage.panelButton[3]);
flagBed4 = true;
numBeds = numBeds + 1;
}
if ((_global.path.bed[_local4] > 0) && (flagBed5 == false)) {
_global.stage.panelButton[4].clip.bedSimbol.gotoAndStop(_local3);
_global.stage.panelButton[4].BedroomButtonProp(_local3);
_global.path.bed[_local4]--;
_global.path.yourItems.push(_global.stage.panelButton[4]);
flagBed5 = true;
numBeds = numBeds + 1;
}
if ((_global.path.bed[_local4] > 0) && (flagBed6 == false)) {
_global.stage.panelButton[5].clip.bedSimbol.gotoAndStop(_local3);
_global.stage.panelButton[5].BedroomButtonProp(_local3);
_global.path.bed[_local4]--;
_global.path.yourItems.push(_global.stage.panelButton[5]);
flagBed6 = true;
numBeds = numBeds + 1;
}
_local3--;
}
_global.path.dayBabiesNum = _global.path.dayBabiesNum + (numBeds - 1);
_global.path.dayBabiesNum = _global.path.dayBabiesNum + (numBoxes - 1);
_global.path.dayBabiesNum = _global.path.dayBabiesNum + (numChairs - 1);
if (_global.path.SecretaryType == 0) {
if (_global.path.dayBabiesNum > 6) {
_global.path.dayBabiesNum = 6;
}
} else if (_global.path.SecretaryType == 1) {
if (_global.path.dayBabiesNum > 8) {
_global.path.dayBabiesNum = 8;
}
} else if (_global.path.SecretaryType == 2) {
if (_global.path.dayBabiesNum > 10) {
_global.path.dayBabiesNum = 10;
}
} else if (_global.path.dayBabiesNum >= 12) {
_global.path.dayBabiesNum = 12;
}
if ((_global.dayCount % 5) == 0) {
_global.path.weekBabiesNum = _global.path.dayBabiesNum;
}
_global.path.bedNum = numBeds;
_global.path.boxNum = numBoxes;
_global.path.chairNum = numChairs;
_global.path.bed.level1 = _local10;
_global.path.bed.level2 = _local12;
_global.path.bed.level3 = _local13;
_global.path.box.level1 = _local16;
_global.path.box.level2 = _local15;
_global.path.box.level3 = _local14;
_global.path.chair.level1 = _local8;
_global.path.chair.level2 = _local11;
_global.path.chair.level3 = _local9;
_global.path.horse.level1 = _local7;
_global.path.horse.level2 = _local5;
_global.path.horse.level3 = _local6;
attachMC(_global.stage.toy_boxes[0], true);
attachMC(_global.stage.toy_boxes[1], true);
attachMC(_global.stage.towel, true);
}
static function getUniqueName() {
var _local3 = "";
var _local2 = 1;
while (_local2 <= 4) {
var _local1 = 1;
while (_local1 <= 4) {
_local3 = _local3 + getRandomChar();
_local1++;
}
if (_local2 < 4) {
_local3 = _local3 + "-";
}
_local2++;
}
return(_local3);
}
static function getRandomChar() {
switch (Math.round(Math.random() + 1)) {
case 1 :
return(String.fromCharCode(Math.round(Math.random() * 25) + 65));
case 2 :
return(String.fromCharCode(Math.round(Math.random() * 25) + 97));
}
}
var id = 2;
}
Symbol 5925 MovieClip [__Packages.mc.BigChair] Frame 0
class mc.BigChair extends ss.MovieClipProp
{
var socialRating, upgrade, meal, meall, cookTime, timeForCooking, pozition, destx, desty, side, place, Baby, attachPoint;
function BigChair (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 30;
upgrade = 1;
meal = false;
meall = false;
cookTime = 0;
if (_global.path.AssistantCook) {
timeForCooking = 1;
} else {
timeForCooking = 4;
}
}
function BigChairProp(Upgade, poz) {
socialRating = 20 + (Upgade * 10);
upgrade = Upgade;
pozition = poz;
}
function setCoordinates(coordx, coordy, _side, place) {
destx = coordx;
desty = coordy;
side = _side;
this.place = place;
Baby = undefined;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
function prepareMeal() {
if (_global.path.AssistantCook == false) {
_global.path.sound.playSound("kitchen_10sec");
} else {
_global.path.sound.playSound("kitchen_1sec");
}
utils.Delegate.callDelayed(this, prepareFood, 1000);
}
function prepareFood() {
if (Baby) {
if ((cookTime < timeForCooking) && this) {
utils.Delegate.callDelayed(this, prepareFood, 1000);
cookTime++;
} else if (((cookTime >= timeForCooking) && (cookTime < (timeForCooking + 1))) && this) {
cookTime++;
_global.stage.kitchenWindow.clip.gotoAndStop("K" + pozition);
_global.stage.kitchenWindow.clip.kichenWindow.gotoAndStop(_global.path.KitchenType);
meall = true;
utils.Delegate.callDelayed(this, prepareFood, 1000);
} else {
meal = true;
}
}
}
var ID = 112;
}
Symbol 5926 MovieClip [__Packages.utils.Delegate] Frame 0
class utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
arguments=arguments.callee.arguments;//parameter overwritten
arguments.callee.arguments;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
arguments.splice(0, 2);
_local2.arguments = arguments;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
static function callDelayed(obj, func, ival) {
arguments.splice(0, 3);
var _local3 = new Object();
_local3.f = function () {
clearInterval(this.i);
var _local3 = arguments.callee.target;
var _local4 = arguments.callee.func;
arguments=arguments.callee.arguments;//parameter overwritten
arguments.callee.arguments;
return(this.func.apply(this.target, this.arguments));
};
_local3.target = obj;
_local3.func = func;
_local3.arguments = arguments;
_local3.i = setInterval(_local3, "f", ival);
}
}
Symbol 5927 MovieClip [__Packages.mc.BigChairMask] Frame 0
class mc.BigChairMask extends ss.MovieClipProp
{
var time, quantity, whichChair, Chair, destx, desty, Baby, attachPoint;
function BigChairMask (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
}
function ChairMaskProp(Time, Quantity, whichChair) {
time = Time;
quantity = Quantity;
this.whichChair = Chair.ID;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
Baby = undefined;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 113;
}
Symbol 5928 MovieClip [__Packages.mc.Horse] Frame 0
class mc.Horse extends ss.MovieClipProp
{
var socialRating, upgrade, BabyRock, Baby, destx, desty, side, attachPoint;
function Horse (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 40;
upgrade = 1;
BabyRock = false;
Baby = undefined;
}
function HorseProp(Upgade) {
socialRating = 20 + (Upgade * 20);
upgrade = Upgade;
}
function setCoordinates(coordx, coordy, _side) {
destx = coordx;
desty = coordy;
side = _side;
Baby = undefined;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 110;
}
Symbol 5929 MovieClip [__Packages.mc.Trash2] Frame 0
class mc.Trash2 extends ss.MovieClipProp
{
var socialRating, time, quantity, destx, desty, side;
function Trash2 (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 5;
}
function Trash2Prop(Time, Quantity) {
time = Time;
quantity = Quantity;
}
function setCoordinates(coordx, coordy, _side) {
destx = coordx;
desty = coordy;
side = _side;
}
var ID = 205;
}
Symbol 5930 MovieClip [__Packages.mc.BedroomDoor] Frame 0
class mc.BedroomDoor extends ss.MovieClipProp
{
var socialRating, upgrade, destx, desty;
function BedroomDoor (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
}
function BedroomDoorProp(Upgade) {
socialRating = (Upgade * 40) - 10;
upgrade = Upgade;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 16;
}
Symbol 5931 MovieClip [__Packages.mc.BedroomButton] Frame 0
class mc.BedroomButton extends ss.MovieClipProp
{
var socialRating, upgrade, babySleep, Baby, destx, desty, attachPoint;
function BedroomButton (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 1;
upgrade = 1;
babySleep = false;
Baby = undefined;
}
function BedroomButtonProp(Upgade) {
socialRating = 20 + (Upgade * 20);
upgrade = Upgade;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
function setAttachPoint(aPoint) {
attachPoint = aPoint;
}
var ID = 150;
}
Symbol 5932 MovieClip [__Packages.mc.KitchenWindow] Frame 0
class mc.KitchenWindow extends ss.MovieClipProp
{
var socialRating, upgrade, destx, desty;
function KitchenWindow (l, x, y, rot, xs, ys) {
super(l, x, y, rot, xs, ys);
socialRating = 500;
upgrade = 1;
}
function KitchenWindowProp(Upgade) {
socialRating = Upgade * 500;
upgrade = Upgade;
}
function setCoordinates(coordx, coordy) {
destx = coordx;
desty = coordy;
}
var ID = 111;
}
Symbol 5933 MovieClip [__Packages.xx.Level2] Frame 0
class xx.Level2
{
function Level2 () {
}
var xml = new String("<map><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row></map>");
}
Symbol 5934 MovieClip [__Packages.conf.Level3Conf] Frame 0
class conf.Level3Conf
{
var numBeds, numChairs, numBoxes, flagBox1, flagBox2, flagBed1, flagBed2, flagBed3, flagBed4, flagchair1, flagchair2, flagchair3, flagchair4, flagCarpet3, flagCarpet4, flagCarpet5, flagCarpet6, _depth, l, board;
function Level3Conf () {
init();
}
function init() {
numBeds = 0;
numChairs = 0;
numBoxes = 0;
_global.path.dayBabiesNum = 2;
_global.stage.level1conf = this;
_global.game = {};
_global.toyNumber = 15;
_global.paintNumber = 2;
_global.foodMakerNumber = 0;
_global.game.BedroomType = 1;
_global.game.ReceptionsType = 2;
flagBox1 = false;
flagBox2 = false;
flagBed1 = false;
flagBed2 = false;
flagBed3 = false;
flagBed4 = false;
flagchair1 = false;
flagchair2 = false;
flagchair3 = false;
flagchair4 = false;
flagCarpet3 = false;
flagCarpet4 = false;
flagCarpet5 = false;
flagCarpet6 = false;
_global.path.yourItems = new Array();
_depth = new control.DepthController();
_global.stage.level = 0;
_global.bonus = 0;
_global.stage.bigChair = [new mc.BigChair("bigChair", 648, 262, 0, 73.8, 73.8), new mc.BigChair("bigChair", 674.2, 290.95, 0, 81.5, 81.5), new mc.BigChair("bigChair", 704.25, 324, 0, 90.5, 90.5), new mc.BigChair("bigChair", 737.65, 360.95, 0, 100, 100)];
_global.stage.bigchairMask = [new mc.BigChairMask("bigChairMask", 648, 262, 0, 73.8, 73.8), new mc.BigChairMask("bigChairMask", 674.2, 290.95, 0, 81.5, 81.5), new mc.BigChairMask("bigChairMask", 704.25, 324, 0, 90.5, 90.5), new mc.BigChairMask("bigChairMask", 737.65, 360.95, 0, 100, 100)];
_global.stage.kitchenWindow = new mc.KitchenWindow("KitchenWindow", 634.95, 21.95, 0, 100, 100);
_global.stage.calendar = new mc.Calendar("calendar", 425.9, 60.3, 0, 100, 100);
_global.stage.door = new mc.Door("door" + _global.path.ReceptionsType, 486.05, 18.25, 0, 100, 100);
_global.stage.bath = new mc.Bath("bath", 213.9, 162.85, 0, 100, 100);
_global.stage.diperTable = new mc.DiperTable("diperTable", 320.75, 136.3, 0, 100, 100);
_global.stage.dipers = new mc.Diper("diapers", 435.2, 111, 0, 100, 100);
_global.stage.trash = new mc.Trash("trash", 445.9, 211, 0, 100, 100);
_global.stage.boxover = [new mc.Boxover("boxover1", 3.8, 284.7, 0, 100, 100), new mc.Boxover("boxover2", 40.15, 256.87, 0, 100, 100)];
_global.stage.boxFront = new mc.BoxFront("boxFront", 3.8, 284.7, 0, 100, 100);
_global.stage.carpet = [new mc.Carpet("carpet3", 442.3, 308.9, 0, 152.2, 138.8), new mc.Carpet("carpet2", 312.2, 299.9, 0, 152.2, 138.8), new mc.Carpet("carpet1", 174.6, 302.4, 0, 152.2, 138.8), new mc.Carpet("carpet7", 442.3, 308.9, 0, 152.2, 138.8), new mc.Carpet("carpet6", 312.2, 299.9, 0, 152.2, 138.8), new mc.Carpet("carpet5", 312.2, 299.9, 0, 152.2, 138.8), new mc.Carpet("carpet4", 174.6, 302.4, 0, 152.2, 138.8)];
_global.stage.box = [new mc.Box("box1", 3.5, 284.55, 0, 100, 100), new mc.Box("box2", 40.7, 257, 0, 100, 100)];
_global.stage.bed = [new mc.Bed("bed1", 6.15, 391.85, 0, 100, 100), new mc.Bed("bed2", 212.85, 391.15, 0, 100, 100), new mc.Bed("bed3", 340, 390.95, 0, 100, 100), new mc.Bed("bed4", 524.5, 390.85, 0, 100, 100)];
_global.stage.bedFront = [new mc.BedFront("bedfront1", 5.9, 475.9, 0, 100, 100), new mc.BedFront("bedfront2", 213.4, 474.9, 0, 100, 100), new mc.BedFront("bedfront3", 340, 473.95, 0, 100, 100), new mc.BedFront("bedfront4", 548.75, 474.9, 0, 100, 100)];
_global.stage.prekrivac = [new mc.Prekrivac("prekrivac1", 13.45, 440.2, 0, 100, 100), new mc.Prekrivac("prekrivac2", 220.7, 438.1, 0, 100, 100), new mc.Prekrivac("prekrivac3", 345.6, 438.1, 0, 100, 100), new mc.Prekrivac("prekrivac4", 530.85, 439.2, 0, 100, 100)];
_global.stage.bedDaska = [new mc.BedDaska("bed-daska1", 6.15, 391.85, 0, 100, 100), new mc.BedDaska("bed-daska2", 212.85, 391.15, 0, 100, 100), new mc.BedDaska("bed-daska3", 340, 390.95, 0, 100, 100), new mc.BedDaska("bed-daska4", 524.5, 390.85, 0, 100, 100)];
_global.stage.toy = [new mc.Toy("toy1", 743, 347, 61, 75, 75), new mc.Toy("toy2", 758, 351, 61, 100, 100), new mc.Toy("toy3", 708, 345, 0, 75, 75), new mc.Toy("toy4", 716, 353, 0, 100, 100), new mc.Toy("toy5", 735, 351, 0, 75, 75), new mc.Toy("toy6", 698, 350, 0, 100, 100), new mc.Toy("toy7", 688, 359, 0, 75, 75), new mc.Toy("toy8", 754, 345, 0, 75, 75), new mc.Toy("toy9", 763, 357, 0, 75, 75), new mc.Toy("toy10", 763, 370, 0, 75, 75), new mc.Toy("toy11", 682, 347, 0, 100, 100), new mc.Toy("toy12", 740, 373, 0, 100, 100), new mc.Toy("toy13", 686, 367, 0, 75, 75), new mc.Toy("toy14", 749, 356, 0, 75, 75), new mc.Toy("toy15", 707, 373, 0, 75, 75)];
_global.stage.towel = new mc.Towel("towel", 646.25, 163.15, 0, 82.8, 82.8);
_global.stage.paint = new mc.Paint("paint", 3, 120, 0, 100, 100);
_global.stage.closet = new mc.Closet("closet", 107.05, 20.65, 0, 100, 100);
_global.stage.panel = new mc.BedroomPanel("bedroomPanel_mc", 170, 131, 0, 100, 100);
_global.stage.plant = new mc.Plant("plant", 710.8, 463.3, 0, 100, 100);
_global.stage.clock = [new mc.Clock("clock", 433, 13, 0, 100, 100), new mc.Clock("digi_clock", 185, 11, 0, 100, 100)];
_global.stage.srca = new mc.Srce("srca_mc", 13, 15, 0, 80, 80);
_global.stage.prekidac = new mc.Senka("prekidac", 452.5, 137, 0, 70, 70);
_global.stage.reception = new mc.reception("Receptions_mc", 0, 0, 0, 100, 100);
_global.stage.toy_boxes = [new mc.Toy_box("toy_box", 665.25, 345.85, 0, 100, 100), new mc.Toy_box("toy_box1", 665.25, 345.85, 0, 100, 100)];
_global.stage.babies = [new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby()];
_global.stage.bottle = new mc.Bottle("BOTTLE1", 715, 243, 0, 17, 17);
_global.stage.bell = new mc.Bell("bell", 568.8, 10.4, 0, 25, 25);
_global.stage.window = [new mc.Windows("prozor1", 259.2, 23.35, 0, 100, 100)];
_global.stage.clown = new mc.Clown("clown", 17, 43, 0, 100, 100);
_global.stage.nany = new mc.Nany("nany", 354, 306, 0, 55, 55);
_global.stage.girl = new mc.BabySitter("girl", 214, 302, 17800, 0, 65, 65, _global.stage.astar);
_global.stage.girl.clip = _global.stage.attachMovie("girl", "babySitter", 17800, {_x:214, _y:302, _rotation:0, _xscale:76, _yscale:76});
_global.stage.girl.clip.cacheAsBitmap = true;
l = new xx.Level3();
board = new XML();
board.parseXML(l.xml);
buildXMLGrid();
createObjects();
}
function buildXMLGrid() {
board = board.firstChild;
var _local6 = 1;
var _local7 = board.firstChild;
while (_local7 != null) {
var _local5 = 1;
var _local4 = _local7.firstChild;
while (_local4 != null) {
var _local3 = (("node" + _local5) + "_") + _local6;
var _local9 = (_local5 - 1) * _global.stage.game.spacing;
var _local8 = (_local6 - 1) * _global.stage.game.spacing;
var _local17 = _local4.attributes.type;
var _local10;
switch (_local17) {
case "1" :
_local10 = "walk";
break;
case "2" :
_local10 = "obsticle";
_global.stage.astar.nodes[_local3].solid = true;
}
_global.stage.game[_local3] = {x:_local5, y:_local6, xmid:_local9 + (_global.stage.game.spacing / 2), ymid:_local8 + (_global.stage.game.spacing / 2), name:_local3, type:_local17, clip:_global.stage.game.path[_local3]};
_local4 = _local4.nextSibling;
_local5++;
}
_local7 = _local7.nextSibling;
_local6++;
}
_global.stage.game.rows = _local6 - 1;
_global.stage.game.cols = _local5 - 1;
_global.stage.astar.maxX = _global.stage.game.rows;
_global.stage.astar.maxY = _global.stage.game.cols;
initializeLevel1();
}
function initializeLevel1() {
_global.stage.bigChair[0].setCoordinates(560.3, 284.75, "right", "right");
_global.stage.bigChair[1].setCoordinates(592.3, 323.75, "right", "right");
_global.stage.bigChair[2].setCoordinates(629.3, 347.75, "right", "right");
_global.stage.bigChair[3].setCoordinates(662.3, 374.75, "right", "right");
_global.stage.bigChair[0].attachPoint = {x:608.45, y:163.5};
_global.stage.bigChair[1].attachPoint = {x:632.45, y:187.5};
_global.stage.bigChair[2].attachPoint = {x:665.45, y:214.5};
_global.stage.bigChair[3].attachPoint = {x:696.45, y:248.5};
_global.stage.bottle.attachPoint = {x:16, y:9};
_global.stage.bottle.setCoordinates(670, 375, "right");
_global.stage.chair[0].setCoordinates(214, 302, "right", "right");
_global.stage.chair[0].attachPoint = {x:252, y:223};
_global.stage.chair[1].setCoordinates(342, 295, "down", "right");
_global.stage.chair[1].attachPoint = {x:325, y:215};
_global.stage.chair[2].setCoordinates(417, 295, "down", "left");
_global.stage.chair[2].attachPoint = {x:445, y:215};
_global.stage.chair[3].setCoordinates(546, 316, "left", "left");
_global.stage.chair[3].attachPoint = {x:522, y:225};
_global.stage.carpet[0].setCoordinates(501, 378, "left");
_global.stage.carpet[1].setCoordinates(395, 365, "up");
_global.stage.carpet[2].setCoordinates(270, 375, "right");
_global.stage.carpet[0].attachPoint = {x:531, y:315};
_global.stage.carpet[1].attachPoint = {x:367, y:327};
_global.stage.carpet[2].attachPoint = {x:270, y:307};
_global.stage.carpet[6].setCoordinates(214, 302, "right");
_global.stage.carpet[5].setCoordinates(342, 302, "down");
_global.stage.carpet[4].setCoordinates(417, 302, "down");
_global.stage.carpet[3].setCoordinates(521, 333, "left");
_global.stage.carpet[6].attachPoint = {x:252, y:262};
_global.stage.carpet[5].attachPoint = {x:329, y:262};
_global.stage.carpet[4].attachPoint = {x:447, y:259};
_global.stage.carpet[3].attachPoint = {x:520, y:279};
_global.stage.bed[0].setCoordinates(170, 555, "left", "right");
_global.stage.bed[0].attachPoint = {x:71, y:390};
_global.stage.bed[1].setCoordinates(170, 555, "right", "right");
_global.stage.bed[1].attachPoint = {x:258, y:390};
_global.stage.bed[2].setCoordinates(490, 555, "left", "left");
_global.stage.bed[2].attachPoint = {x:424, y:390};
_global.stage.bed[3].setCoordinates(490, 555, "right", "left");
_global.stage.bed[3].attachPoint = {x:610, y:390};
_global.stage.foodMaker.setCoordinates(650, 375, "right");
_global.stage.kitchen.setCoordinates(650, 375);
_global.stage.diperTable.setCoordinates(387, 274);
_global.stage.bath.setCoordinates(387, 274);
_global.stage.door.setCoordinates(568, 277);
_global.stage.towel.setCoordinates(560.3, 284.75, "right");
_global.stage.box[1].setCoordinates(170, 345, "left");
_global.stage.box[1].attachPoint = {x:79, y:257};
_global.stage.box[1].clip.gotoAndStop(2);
_global.stage.box[0].setCoordinates(125, 90, "left");
_global.stage.box[0].attachPoint = {x:43, y:300};
_global.stage.trash.setCoordinates(445.9, 211, "up");
var _local2 = 0;
while (_local2 <= 14) {
_global.stage.toy[_local2].setCoordinates(679, 504);
_local2++;
}
}
function attachMC(mc, changeMouse) {
mc.depth = _depth.getDepth(mc);
mc.clip = _global.stage.attachMovie(mc.linkID, getUniqueName(), mc.depth, {_x:mc.x, _y:mc.y, _rotation:mc.rot, _xscale:mc.xscale, _yscale:mc.yscale});
mc.clip.cacheAsBitmap = true;
mc.clip.tabEnabled = false;
if (changeMouse) {
mc.clip.onRollOver = function () {
_global.path.cursor.clip.gotoAndStop("hand");
};
mc.clip.onRollOut = function () {
_global.path.cursor.clip.gotoAndStop("arrow");
};
mc.clip.onDragOut = function () {
_global.path.cursor.clip.gotoAndStop("arrow");
};
}
}
function createObjects() {
attachMC(_global.stage.calendar);
attachMC(_global.stage.carpet[0], true);
attachMC(_global.stage.carpet[1], true);
attachMC(_global.stage.carpet[2], true);
attachMC(_global.stage.carpet[6], true);
attachMC(_global.stage.carpet[5], true);
attachMC(_global.stage.carpet[4], true);
attachMC(_global.stage.carpet[3], true);
attachMC(_global.stage.window[0]);
if (_global.path.ReceptionsType > 0) {
attachMC(_global.stage.reception);
_global.stage.reception.receptionProp(_global.path.ReceptionsType);
_global.stage.window[0].clip.gotoAndStop("R" + _global.path.ReceptionsType);
_global.path.yourItems.push(_global.stage.reception);
trace("_global.stage.reception.socialRating " + _global.stage.reception.socialRating);
}
attachMC(_global.stage.window[1]);
attachMC(_global.stage.bottle, true);
_global.stage.bottle.clip._visible = false;
attachMC(_global.stage.chairArray[1], true);
attachMC(_global.stage.door, true);
if (_global.path.clown) {
attachMC(_global.stage.clown);
}
if (_global.path.nany) {
attachMC(_global.stage.nany);
}
attachMC(_global.stage.kitchenWindow, true);
_global.stage.kitchenWindow.KitchenWindowProp(_global.path.KitchenType);
_global.stage.kitchenWindow.clip.kichenWindow.gotoAndStop(_global.path.KitchenType);
_global.path.yourItems.push(_global.stage.kitchenWindow);
attachMC(_global.stage.bath, true);
_global.path.yourItems.push(_global.stage.bath);
attachMC(_global.stage.diperTable, true);
_global.path.yourItems.push(_global.stage.diperTable);
attachMC(_global.stage.dipers);
_global.path.yourItems.push(_global.stage.dipers);
attachMC(_global.stage.trash, true);
_global.path.yourItems.push(_global.stage.trash);
attachMC(_global.stage.prekidac, true);
var _local6 = _global.path.chair.level1;
var _local9 = _global.path.chair.level2;
var _local7 = _global.path.chair.level3;
var _local5 = 3;
while (_local5 >= 1) {
var _local4 = "level" + _local5;
if ((_global.path.chair[_local4] > 0) && (flagchair1 == false)) {
attachMC(_global.stage.bigChair[0], true);
_global.stage.bigChair[0].BigChairProp(_local5, 1);
attachMC(_global.stage.bigchairMask[0], true);
_global.path.yourItems.push(_global.stage.bigChair[0]);
_global.stage.bigChair[0].clip.gotoAndStop(_local5);
_global.stage.bigchairMask[0].clip.gotoAndStop(_local5);
_global.path.chair[_local4]--;
flagchair1 = true;
numChairs = numChairs + 1;
}
if ((_global.path.chair[_local4] > 0) && (flagchair2 == false)) {
attachMC(_global.stage.bigChair[1], true);
_global.stage.bigChair[1].BigChairProp(_local5, 2);
attachMC(_global.stage.bigchairMask[1], true);
_global.stage.bigChair[1].clip.gotoAndStop(_local5);
_global.stage.bigchairMask[1].clip.gotoAndStop(_local5);
_global.path.chair[_local4]--;
_global.path.yourItems.push(_global.stage.bigChair[1]);
flagchair2 = true;
numChairs = numChairs + 1;
}
if ((_global.path.chair[_local4] > 0) && (flagchair3 == false)) {
attachMC(_global.stage.bigChair[2], true);
_global.stage.bigChair[2].BigChairProp(_local5, 3);
attachMC(_global.stage.bigchairMask[2], true);
_global.stage.bigChair[2].clip.gotoAndStop(_local5);
_global.stage.bigchairMask[2].clip.gotoAndStop(_local5);
_global.path.chair[_local4]--;
_global.path.yourItems.push(_global.stage.bigChair[2]);
flagchair3 = true;
numChairs = numChairs + 1;
}
if ((_global.path.chair[_local4] > 0) && (flagchair4 == false)) {
attachMC(_global.stage.bigChair[3], true);
_global.stage.bigChair[3].BigChairProp(_local5, 4);
attachMC(_global.stage.bigchairMask[3], true);
_global.stage.bigChair[3].clip.gotoAndStop(_local5);
_global.stage.bigchairMask[3].clip.gotoAndStop(_local5);
_global.path.chair[_local4]--;
_global.path.yourItems.push(_global.stage.bigChair[3]);
flagchair4 = true;
numChairs = numChairs + 1;
}
_local5--;
}
attachMC(_global.stage.carpet[7 - _local5], true);
attachMC(_global.stage.closet);
if (_global.path.plant.level1 > 0) {
attachMC(_global.stage.plant);
_global.stage.plant.clip.gotoAndStop(1);
}
if (_global.path.plant.level2 > 0) {
attachMC(_global.stage.plant);
_global.stage.plant.clip.gotoAndStop(2);
}
attachMC(_global.stage.paint);
attachMC(_global.stage.srca);
attachMC(_global.stage.senka);
attachMC(_global.stage.clock[0]);
_local5 = 0;
while (_local5 < _global.toyNumber) {
attachMC(_global.stage.toy[_local5], true);
_local5++;
}
if (_global.game.ReceptionsType > 0) {
attachMC(_global.stage.reception);
}
var _local8 = _global.path.bed.level1;
var _local10 = _global.path.bed.level2;
var _local11 = _global.path.bed.level3;
var _local14 = _global.path.box.level1;
var _local13 = _global.path.box.level2;
var _local12 = _global.path.box.level3;
_local5 = 3;
while (_local5 >= 1) {
var _local4 = "level" + _local5;
if ((_global.path.box[_local4] > 0) && (flagBox1 == false)) {
attachMC(_global.stage.box[0], true);
attachMC(_global.stage.boxover[0], true);
attachMC(_global.stage.boxFront, true);
_global.path.yourItems.push(_global.stage.box[0]);
_global.stage.box[0].clip.gotoAndStop(_local5);
_global.stage.boxover[0].clip.gotoAndStop(_local5);
_global.stage.boxFront.clip.gotoAndStop(_local5);
_global.stage.box[0].BoxProp(_local5);
_global.path.box[_local4]--;
flagBox1 = true;
numBoxes = numBoxes + 1;
}
if ((_global.path.box[_local4] > 0) && (flagBox2 == false)) {
attachMC(_global.stage.box[1], true);
attachMC(_global.stage.boxover[1], true);
_global.path.yourItems.push(_global.stage.box[1]);
_global.stage.box[1].clip.gotoAndStop(_local5);
_global.stage.boxover[1].clip.gotoAndStop(_local5);
_global.stage.box[1].BoxProp(_local5);
_global.path.box[_local4]--;
flagBox2 = true;
numBoxes = numBoxes + 1;
}
_local5--;
}
var _local3 = 5;
_local5 = 3;
while (_local5 >= 1) {
var _local4 = "level" + _local5;
if ((_global.path.bed[_local4] > 0) && (flagBed1 == false)) {
attachMC(_global.stage.bed[0], true);
attachMC(_global.stage.bedFront[0], true);
attachMC(_global.stage.prekrivac[0], true);
attachMC(_global.stage.bedDaska[0], true);
_global.path.yourItems.push(_global.stage.bed[0]);
_global.stage.bed[0].BedProp(_local5);
_global.stage.bed[0].clip.gotoAndStop(_local3);
_global.stage.bedFront[0].clip.gotoAndStop(_local3);
_global.stage.prekrivac[0].clip.gotoAndStop(_local3);
_global.stage.bedDaska[0].clip.gotoAndStop(_local3);
_global.path.bed[_local4]--;
flagBed1 = true;
numBeds = numBeds + 1;
}
if ((_global.path.bed[_local4] > 0) && (flagBed2 == false)) {
attachMC(_global.stage.bed[1], true);
attachMC(_global.stage.bedFront[1], true);
attachMC(_global.stage.prekrivac[1], true);
attachMC(_global.stage.bedDaska[1], true);
_global.path.yourItems.push(_global.stage.bed[1]);
_global.stage.bed[1].BedProp(_local5);
_global.stage.bed[1].clip.gotoAndStop(_local3);
_global.stage.bedFront[1].clip.gotoAndStop(_local3);
_global.stage.prekrivac[1].clip.gotoAndStop(_local3);
_global.stage.bedDaska[1].clip.gotoAndStop(_local3);
_global.path.bed[_local4]--;
flagBed2 = true;
numBeds = numBeds + 1;
}
if ((_global.path.bed[_local4] > 0) && (flagBed3 == false)) {
attachMC(_global.stage.bed[2], true);
attachMC(_global.stage.bedFront[2], true);
attachMC(_global.stage.prekrivac[2], true);
attachMC(_global.stage.bedDaska[2], true);
_global.path.yourItems.push(_global.stage.bed[2]);
_global.stage.bed[2].BedProp(_local5);
_global.stage.bed[2].clip.gotoAndStop(_local3);
_global.stage.bedFront[2].clip.gotoAndStop(_local3);
_global.stage.prekrivac[2].clip.gotoAndStop(_local3);
_global.stage.bedDaska[2].clip.gotoAndStop(_local3);
_global.path.bed[_local4]--;
flagBed3 = true;
numBeds = numBeds + 1;
}
if ((_global.path.bed[_local4] > 0) && (flagBed4 == false)) {
attachMC(_global.stage.bed[3], true);
attachMC(_global.stage.bedFront[3], true);
attachMC(_global.stage.prekrivac[3], true);
attachMC(_global.stage.bedDaska[3], true);
_global.stage.bed[3].BedProp(_local5);
_global.stage.bed[3].clip.gotoAndStop(_local3);
_global.stage.bedFront[3].clip.gotoAndStop(_local3);
_global.stage.prekrivac[3].clip.gotoAndStop(_local3);
_global.stage.bedDaska[3].clip.gotoAndStop(_local3);
_global.path.bed[_local4]--;
flagBed4 = true;
numBeds = numBeds + 1;
}
_local3 = _local3 - 2;
_local5--;
}
_global.path.dayBabiesNum = _global.path.dayBabiesNum + (numBeds - 1);
_global.path.dayBabiesNum = _global.path.dayBabiesNum + (numBoxes - 1);
_global.path.dayBabiesNum = _global.path.dayBabiesNum + (numChairs - 1);
if (_global.path.SecretaryType == 0) {
if (_global.path.dayBabiesNum > 6) {
_global.path.dayBabiesNum = 6;
}
} else if (_global.path.SecretaryType == 1) {
if (_global.path.dayBabiesNum > 8) {
_global.path.dayBabiesNum = 8;
}
} else if (_global.path.SecretaryType == 2) {
if (_global.path.dayBabiesNum > 10) {
_global.path.dayBabiesNum = 10;
}
} else if (_global.path.dayBabiesNum >= 12) {
_global.path.dayBabiesNum = 12;
}
if ((_global.dayCount % 5) == 0) {
_global.path.weekBabiesNum = _global.path.dayBabiesNum;
}
trace("numBoxes" + numBoxes);
trace("@@@@@@@@@@@@@@@_global.path.dayBabiesNum " + _global.path.dayBabiesNum);
_global.path.bedNum = numBeds;
_global.path.boxNum = numBoxes;
_global.path.chairNum = numChairs;
_global.path.bed.level1 = _local8;
_global.path.bed.level2 = _local10;
_global.path.bed.level3 = _local11;
_global.path.box.level1 = _local14;
_global.path.box.level2 = _local13;
_global.path.box.level3 = _local12;
_global.path.chair.level1 = _local6;
_global.path.chair.level2 = _local9;
_global.path.chair.level3 = _local7;
_global.path.yourItems.push(_global.stage.carpet[1]);
attachMC(_global.stage.toy_boxes[0], true);
attachMC(_global.stage.toy_boxes[1], true);
attachMC(_global.stage.towel, true);
}
static function getUniqueName() {
var _local3 = "";
var _local2 = 1;
while (_local2 <= 4) {
var _local1 = 1;
while (_local1 <= 4) {
_local3 = _local3 + getRandomChar();
_local1++;
}
if (_local2 < 4) {
_local3 = _local3 + "-";
}
_local2++;
}
return(_local3);
}
static function getRandomChar() {
switch (Math.round(Math.random() + 1)) {
case 1 :
return(String.fromCharCode(Math.round(Math.random() * 25) + 65));
case 2 :
return(String.fromCharCode(Math.round(Math.random() * 25) + 97));
}
}
var id = 3;
}
Symbol 5935 MovieClip [__Packages.xx.Level3] Frame 0
class xx.Level3
{
function Level3 () {
}
var xml = new String("<map><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /></row><row><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"2\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /><cell type= \"1\" /></row></map>");
}
Symbol 5936 MovieClip [__Packages.conf.Level4Conf] Frame 0
class conf.Level4Conf
{
var flagBox1, flagBox2, flagBox3, flagBed1, flagBed2, flagBed3, flagBed4, flagBed5, flagBed6, flagchair1, flagchair2, flagchair3, flagchair4, flagCarpet3, flagCarpet4, flagCarpet5, flagCarpet6, flagHorse1, flagHorse2, flagHorse3, flagHorse4, _depth, l, board;
function Level4Conf () {
init();
}
function init() {
numBeds = 0;
numChairs = 0;
numBoxes = 0;
_global.path.dayBabiesNum = 2;
_global.stage.level1conf = this;
_global.game = {};
_global.toyNumber = 15;
_global.paintNumber = 2;
_global.foodMakerNumber = 0;
_global.game.BedroomType = 1;
_global.game.ReceptionsType = 2;
flagBox1 = false;
flagBox2 = false;
flagBox3 = false;
flagBed1 = false;
flagBed2 = false;
flagBed3 = false;
flagBed4 = false;
flagBed5 = false;
flagBed6 = false;
flagchair1 = false;
flagchair2 = false;
flagchair3 = false;
flagchair4 = false;
flagCarpet3 = false;
flagCarpet4 = false;
flagCarpet5 = false;
flagCarpet6 = false;
flagHorse1 = false;
flagHorse2 = false;
flagHorse3 = false;
flagHorse4 = false;
_global.path.yourItems = new Array();
_depth = new control.DepthController();
_global.stage.level = 0;
_global.bonus = 0;
_global.path.needNumber = 10;
_global.stage.horse = [new mc.Horse("horse", 484.05, 376.65, 0, 100, 100), new mc.Horse("horse", 260.8, 376.65, 0, -100, 100), new mc.Horse("horse", 497.65, 434.95, 0, 114.7, 114.7), new mc.Horse("horse", 240, 434.95, 0, -114.7, 114.7)];
_global.stage.calendar = new mc.Calendar("calendar", 425.9, 60.3, 0, 100, 100);
_global.stage.door = new mc.Door("door" + _global.path.ReceptionsType, 486.05, 18.25, 0, 100, 100);
_global.stage.bath = new mc.Bath("bath", 213.9, 162.85, 0, 100, 100);
_global.stage.diperTable = new mc.DiperTable("diperTable", 320.75, 136.3, 0, 100, 100);
_global.stage.dipers = new mc.Diper("diapers", 435.2, 111, 0, 100, 100);
_global.stage.trash = new mc.Trash("trash", 445.9, 211, 0, 100, 100);
_global.stage.trash2 = new mc.Trash2("trash2", 161.45, 200.45, 0, 100, 100);
_global.stage.foodMaker = new mc.FoodMaker("foodMaker", 725, 205, 0, 34, 34);
_global.stage.kitchen = new mc.Kitchen("kitchen", 652.15, 211.95, 0, 100, 100);
_global.stage.chair = [new mc.Chair("chair1", 239.35, 258.1, 0, 100, 100), new mc.Chair("chair2", 313.3, 250.1, 0, 100, 100), new mc.Chair("chair3", 387.3, 250.1, 0, 100, 100), new mc.Chair("chair4", 462.3, 258.1, 0, 100, 100)];
_global.stage.boxover = [new mc.Boxover("boxover1", 3.8, 284.7, 0, 100, 100), new mc.Boxover("boxover2", 40.15, 256.87, 0, 100, 100), new mc.Boxover("BigBoxMask", 275.95, 431, 0, 100, 100)];
_global.stage.boxFront = new mc.BoxFront("boxFront", 3.8, 284.7, 0, 100, 100);
_global.stage.carpet = [new mc.Carpet("carpet3", 442.3, 308.9, 0, 152.2, 138.8), new mc.Carpet("carpet2", 312.2, 299.9, 0, 152.2, 138.8), new mc.Carpet("carpet1", 174.6, 302.4, 0, 152.2, 138.8), new mc.Carpet("carpet7", 442.3, 308.9, 0, 152.2, 138.8), new mc.Carpet("carpet6", 312.2, 299.9, 0, 152.2, 138.8), new mc.Carpet("carpet5", 312.2, 299.9, 0, 152.2, 138.8), new mc.Carpet("carpet4", 174.6, 302.4, 0, 152.2, 138.8)];
_global.stage.box = [new mc.Box("box1", 3.5, 284.55, 0, 100, 100), new mc.Box("box2", 40.7, 257, 0, 100, 100), new mc.Box("BigBox", 275.95, 431, 0, 100, 100)];
_global.stage.toy = [new mc.Toy("toy1", 743, 347, 61, 75, 75), new mc.Toy("toy2", 758, 351, 61, 100, 100), new mc.Toy("toy3", 708, 345, 0, 75, 75), new mc.Toy("toy4", 716, 353, 0, 100, 100), new mc.Toy("toy5", 735, 351, 0, 75, 75), new mc.Toy("toy6", 698, 350, 0, 100, 100), new mc.Toy("toy7", 688, 359, 0, 75, 75), new mc.Toy("toy8", 754, 345, 0, 75, 75), new mc.Toy("toy9", 763, 357, 0, 75, 75), new mc.Toy("toy10", 763, 370, 0, 75, 75), new mc.Toy("toy11", 682, 347, 0, 100, 100), new mc.Toy("toy12", 740, 373, 0, 100, 100), new mc.Toy("toy13", 686, 367, 0, 75, 75), new mc.Toy("toy14", 749, 356, 0, 75, 75), new mc.Toy("toy15", 707, 373, 0, 75, 75)];
_global.stage.towel = new mc.Towel("towel", 657.4, 186.6, 0, 100, 100);
_global.stage.paint = new mc.Paint("paint", 3, 120, 0, 100, 100);
_global.stage.bedroomDoor = new mc.BedroomDoor("BedroomDoor", 98.65, 20.35, 0, 100, 100);
_global.stage.panelButton = [new mc.BedroomButton("bedroomButton0", 184.45, 66.2, 0, 100, 100), new mc.BedroomButton("bedroomButton1", 218.95, 66.2, 0, 100, 100), new mc.BedroomButton("bedroomButton2", 184.35, 95.05, 0, 100, 100), new mc.BedroomButton("bedroomButton3", 218.85, 95.05, 0, 100, 100), new mc.BedroomButton("bedroomButton4", 184.65, 124.25, 0, 100, 100), new mc.BedroomButton("bedroomButton5", 219.15, 124.25, 0, 100, 100)];
_global.stage.panel = new mc.BedroomPanel("bedroomPanel", 169.45, 58.3, 0, 100, 100);
_global.stage.plant = [new mc.Plant("plant", 710.8, 463.3, 0, 100, 100), new mc.Plant("plant3", -12.8, 410.05, 0, 100, 100)];
_global.stage.clock = [new mc.Clock("clock", 433, 13, 0, 100, 100), new mc.Clock("digi_clock", 185, 11, 0, 100, 100)];
_global.stage.srca = new mc.Srce("srca_mc", 13, 15, 0, 80, 80);
_global.stage.prekidac = new mc.Senka("prekidac", 452.5, 137, 0, 70, 70);
_global.stage.reception = new mc.reception("Receptions_mc", 0, 0, 0, 100, 100);
_global.stage.chairMask = [new mc.ChairMask("chairMask1", 239.35, 262.25, 0, 100, 100), new mc.ChairMask("chairMask2", 313.3, 254.25, 0, 100, 100), new mc.ChairMask("chairMask3", 387.3, 254.25, 0, 100, 100), new mc.ChairMask("chairMask4", 462.3, 262.25, 0, 100, 100)];
_global.stage.toy_boxes = [new mc.Toy_box("toy_box", 665.25, 345.85, 0, 100, 100), new mc.Toy_box("toy_box1", 665.25, 345.85, 0, 100, 100)];
_global.stage.babies = [new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby(), new mc.Baby()];
_global.stage.bottle = new mc.Bottle("BOTTLE1", 715, 243, 0, 17, 17);
_global.stage.bell = new mc.Bell("bell", 568.8, 10.4, 0, 25, 25);
_global.stage.window = [new mc.Windows("prozor1", 259.2, 23.35, 0, 100, 100), new mc.Windows("prozor2", 675.65, 28.15, 0, 100, 100)];
_global.stage.clown = new mc.Clown("clown", 17, 43, 0, 100, 100);
_global.stage.nany = new mc.Nany("nany", 354, 306, 0, 55, 55);
_global.stage.girl = new mc.BabySitter("girl", 214, 302, 17800, 0, 65, 65, _global.stage.astar);
_global.stage.girl.clip = _global.stage.attachMovie("girl", "babySitter", 17800, {_x:214, _y:302, _rotation:0, _xscale:76, _yscale:76});
_global.stage.girl.clip.cacheAsBitmap = true;
l = new xx.Level2();
board = new XML();
board.parseXML(l.xml);
buildXMLGrid();
createObjects();
}
function buildXMLGrid() {
board = board.firstChild;
var _local6 = 1;
var _local7 = board.firstChild;
while (_local7 != null) {
var _local5 = 1;
var _local4 = _local7.firstChild;
while (_local4 != null) {
var _local3 = (("node" + _local5) + "_") + _local6;
var _local9 = (_local5 - 1) * _global.stage.game.spacing;
var _local8 = (_local6 - 1) * _global.stage.game.spacing;
var _local17 = _local4.attributes.type;
var _local10;
switch (_local17) {
case "1" :
_local10 = "walk";
break;
case "2" :
_local10 = "obsticle";
_global.stage.astar.nodes[_local3].solid = true;
}
_global.stage.game[_local3] = {x:_local5, y:_local6, xmid:_local9 + (_global.stage.game.spacing / 2), ymid:_local8 + (_global.stage.game.spacing / 2), name:_local3, type:_local17, clip:_global.stage.game.path[_local3]};
_local4 = _local4.nextSibling;
_local5++;
}
_local7 = _local7.nextSibling;
_local6++;
}
_global.stage.game.rows = _local6 - 1;
_global.stage.game.cols = _local5 - 1;
_global.stage.astar.maxX = _global.stage.game.rows;
_global.stage.astar.maxY = _global.stage.game.cols;
initializeLevel1();
}
function initializeLevel1() {
_global.stage.chair[0].setCoordinates(214, 302, "right", "right");
_global.stage.chair[0].attachPoint = {x:252, y:223};
_global.stage.chair[1].setCoordinates(342, 295, "down", "right");
_global.stage.chair[1].attachPoint = {x:325, y:215};
_global.stage.chair[2].setCoordinates(417, 295, "down", "left");
_global.stage.chair[2].attachPoint = {x:445, y:215};
_global.stage.chair[3].setCoordinates(546, 316, "left", "left");
_global.stage.chair[3].attachPoint = {x:522, y:225};
_global.stage.box[2].setCoordinates(470.3, 547.75, "right", "right");
_global.stage.box[2].attachPoint = {x:352.45, y:469.5};
_global.stage.horse[0].setCoordinates(551.3, 461.75, "right", "right");
_global.stage.horse[1].setCoordinates(170.3, 461.75, "right", "right");
_global.stage.horse[2].setCoordinates(583.3, 509.75, "right", "right");
_global.stage.horse[3].setCoordinates(141.3, 502.75, "right", "right");
_global.stage.horse[0].attachPoint = {x:552.45, y:357.5};
_global.stage.horse[1].attachPoint = {x:143.45, y:365.5};
_global.stage.horse[2].attachPoint = {x:573.45, y:425.5};
_global.stage.horse[3].attachPoint = {x:114.45, y:441.5};
_global.stage.bedroomDoor.setCoordinates(184.3, 242.75);
_global.stage.panelButton[0].setCoordinates(194.3, 242.75);
_global.stage.panelButton[1].setCoordinates(194.3, 242.75);
_global.stage.panelButton[2].setCoordinates(194.3, 242.75);
_global.stage.panelButton[3].setCoordinates(194.3, 242.75);
_global.stage.panelButton[4].setCoordinates(194.3, 242.75);
_global.stage.panelButton[5].setCoordinates(194.3, 242.75);
_global.stage.trash2.setCoordinates(194.3, 242.75, "up");
_global.stage.bottle.attachPoint = {x:16, y:9};
_global.stage.bottle.setCoordinates(670, 375, "right");
_global.stage.carpet[0].setCoordinates(501, 378, "left");
_global.stage.carpet[1].setCoordinates(395, 365, "up");
_global.stage.carpet[2].setCoordinates(270, 375, "right");
_global.stage.carpet[0].attachPoint = {x:531, y:315};
_global.stage.carpet[1].attachPoint = {x:367, y:327};
_global.stage.carpet[2].attachPoint = {x:270, y:307};
_global.stage.carpet[6].setCoordinates(214, 302, "right");
_global.stage.carpet[5].setCoordinates(342, 302, "down");
_global.stage.carpet[4].setCoordinates(417, 302, "down");
_global.stage.carpet[3].setCoordinates(521, 333, "left");
_global.stage.carpet[6].attachPoint = {x:252, y:262};
_global.stage.carpet[5].attachPoint = {x:329, y:262};
_global.stage.carpet[4].attachPoint = {x:447, y:259};
_global.stage.carpet[3].attachPoint = {x:520, y:279};
_global.stage.bed[0].setCoordinates(170, 555, "left", "right");
_global.stage.bed[0].attachPoint = {x:71, y:390};
_global.stage.bed[1].setCoordinates(170, 555, "right", "right");
_global.stage.bed[1].attachPoint = {x:258, y:390};
_global.stage.bed[2].setCoordinates(490, 555, "left", "left");
_global.stage.bed[2].attachPoint = {x:424, y:390};
_global.stage.bed[3].setCoordinates(490, 555, "right", "left");
_global.stage.bed[3].attachPoint = {x:610, y:390};
_global.stage.foodMaker.setCoordinates(650, 375, "right");
_global.stage.diperTable.setCoordinates(387, 274);
_global.stage.bath.setCoordinates(387, 274);
_global.stage.door.setCoordinates(568, 277);
_global.stage.towel.setCoordinates(647, 310, "right");
_global.stage.box[1].setCoordinates(170, 345, "left");
_global.stage.box[1].attachPoint = {x:79, y:257};
_global.stage.box[1].clip.gotoAndStop(2);
_global.stage.box[0].setCoordinates(125, 90, "left");
_global.stage.box[0].attachPoint = {x:43, y:300};
_global.stage.trash.setCoordinates(445.9, 211, "up");
var _local2 = 0;
while (_local2 <= 14) {
_global.stage.toy[_local2].setCoordinates(679, 504);
_local2++;
}
}
function attachMC(mc, changeMouse) {
mc.depth = _depth.getDepth(mc);
mc.clip = _global.stage.attachMovie(mc.linkID, getUniqueName(), mc.depth, {_x:mc.x, _y:mc.y, _rotation:mc.rot, _xscale:mc.xscale, _yscale:mc.yscale});
mc.clip.cacheAsBitmap = true;
mc.clip.tabEnabled = false;
if (changeMouse) {
mc.clip.onRollOver = function () {
_global.path.cursor.clip.gotoAndStop("hand");
};
mc.clip.onRollOut = function () {
_global.path.cursor.clip.gotoAndStop("arrow");
};
mc.clip.onDragOut = function () {
_global.path.cursor.clip.gotoAndStop("arrow");
};
}
}
function createObjects() {
var _local7 = _global.path.horse.level1;
var _local5 = _global.path.horse.level2;
var _local6 = _global.path.horse.level3;
var _local3 = 3;
while (_local3 >= 1) {
var _local4 = "level" + _local3;
if ((_global.path.horse[_local4] > 0) && (flagHorse1 == false)) {
attachMC(_global.stage.horse[0], true);
_global.stage.horse[0].HorseProp(_local3);
_global.stage.horse[0].clip.horse.gotoAndStop("h" + _local3);
_global.path.horse[_local4]--;
_global.path.yourItems.push(_global.stage.horse[0]);
flagHorse1 = true;
}
if ((_global.path.horse[_local4] > 0) && (flagHorse2 == false)) {
attachMC(_global.stage.horse[1], true);
_global.stage.horse[1].HorseProp(_local3);
_global.stage.horse[1].clip.horse.gotoAndStop("h" + _local3);
_global.path.horse[_local4]--;
_global.path.yourItems.push(_global.stage.horse[1]);
flagHorse2 = true;
}
if ((_global.path.horse[_local4] > 0) && (flagHorse3 == false)) {
attachMC(_global.stage.horse[2], true);
_global.stage.horse[2].HorseProp(_local3);
_global.stage.horse[2].clip.horse.gotoAndStop("h" + _local3);
_global.path.horse[_local4]--;
_global.path.yourItems.push(_global.stage.horse[2]);
flagHorse3 = true;
}
if ((_global.path.horse[_local4] > 0) && (flagHorse4 == false)) {
attachMC(_global.stage.horse[3], true);
_global.stage.horse[3].HorseProp(_local3);
_global.stage.horse[3].clip.horse.gotoAndStop("h" + _local3);
_global.path.horse[_local4]--;
_global.path.yourItems.push(_global.stage.horse[3]);
flagHorse4 = true;
}
_local3--;
}
attachMC(_global.stage.panel, true);
_global.stage.panel.BedroomProp(_global.path.BedroomType);
_local3 = 0;
while (_local3 <= (((_global.path.bed.level1 + _global.path.bed.level2) + _global.path.bed.level3) - 1)) {
attachMC(_global.stage.panelButton[_local3], true);
_local3++;
}
_local3 = 0;
while (_local3 < _global.path.bigChairNumber) {
attachMC(_global.stage.bigChair[_local3], true);
_global.stage.bigChair[_local3].BigChairProp(_global.path.KitchenType, _local3 + 1);
attachMC(_global.stage.bigchairMask[_local3], true);
_local3++;
}
attachMC(_global.stage.bedroomDoor, true);
_global.stage.bedroomDoor.clip.gotoAndStop("close");
_global.stage.bedroomDoor.BedroomDoorProp(_global.path.BedroomType);
_global.stage.bedroomDoor.clip.Door.gotoAndStop(_global.path.BedroomType);
_global.path.yourItems.push(_global.stage.panel);
attachMC(_global.stage.kitchenWindow, true);
attachMC(_global.stage.calendar);
attachMC(_global.stage.carpet[0], true);
attachMC(_global.stage.carpet[1], true);
attachMC(_global.stage.carpet[2], true);
attachMC(_global.stage.window[0]);
if (_global.path.ReceptionsType > 0) {
_global.stage.window[0].clip.gotoAndStop("R" + _global.path.ReceptionsType);
}
attachMC(_global.stage.window[1]);
attachMC(_global.stage.bottle, true);
_global.stage.bottle.clip._visible = false;
attachMC(_global.stage.chairArray[1], true);
attachMC(_global.stage.door, true);
if (_global.path.clown) {
attachMC(_global.stage.clown);
}
if (_global.path.nany) {
attachMC(_global.stage.nany);
}
attachMC(_global.stage.trash2, true);
_global.path.yourItems.push(_global.stage.trash2);
attachMC(_global.stage.bath, true);
_global.path.yourItems.push(_global.stage.bath);
attachMC(_global.stage.diperTable, true);
_global.path.yourItems.push(_global.stage.diperTable);
attachMC(_global.stage.dipers);
_global.path.yourItems.push(_global.stage.dipers);
attachMC(_global.stage.trash, true);
_global.path.yourItems.push(_global.stage.trash);
attachMC(_global.stage.prekidac, true);
attachMC(_global.stage.foodMaker, true);
if (_global.path.mixer.level3 > 0) {
_global.stage.foodMaker.clip.gotoAndStop("upgrade2");
_global.foodMakerNumber = 2;
_global.stage.foodMaker.FoodMakerProp(3);
} else if (_global.path.mixer.level2 > 0) {
_global.stage.foodMaker.clip.gotoAndStop("upgrade1");
_global.foodMakerNumber = 1;
_global.stage.foodMaker.FoodMakerProp(2);
} else if (_global.path.mixer.level1 > 0) {
_global.stage.foodMaker.clip.gotoAndStop("upgrade0");
_global.foodMakerNumber = 0;
_global.stage.foodMaker.FoodMakerProp(1);
}
_global.path.yourItems.push(_global.stage.foodMaker);
attachMC(_global.stage.kitchen);
var _local8 = _global.path.chair.level1;
var _local11 = _global.path.chair.level2;
var _local9 = _global.path.chair.level3;
_local3 = 3;
while (_local3 >= 1) {
var _local4 = "level" + _local3;
if ((_global.path.chair[_local4] > 0) && (flagchair1 == false)) {
attachMC(_global.stage.chair[0], true);
attachMC(_global.stage.chairMask[0], true);
_global.path.yourItems.push(_global.stage.chair[0]);
_global.stage.chair[0].chairProp(_local3);
_global.stage.chair[0].clip.gotoAndStop(_local3);
_global.stage.chairMask[0].clip.gotoAndStop(_local3);
_global.path.chair[_local4]--;
flagchair1 = true;
numChairs = numChairs + 1;
}
if ((_global.path.chair[_local4] > 0) && (flagchair2 == false)) {
attachMC(_global.stage.chair[1], true);
attachMC(_global.stage.chairMask[1], true);
_global.path.yourItems.push(_global.stage.chair[1]);
_global.stage.chair[1].chairProp(_local3);
_global.stage.chair[1].clip.gotoAndStop(_local3);
_global.stage.chairMask[1].clip.gotoAndStop(_local3);
_global.path.chair[_local4]--;
flagchair2 = true;
numChairs = numChairs + 1;
}
if ((_global.path.chair[_local4] > 0) && (flagchair3 == false)) {
attachMC(_global.stage.chair[2], true);
attachMC(_global.stage.chairMask[2], true);
_global.path.yourItems.push(_global.stage.chair[2]);
_global.stage.chair[2].chairProp(_local3);
_global.stage.chair[2].clip.gotoAndStop(_local3);
_global.stage.chairMask[2].clip.gotoAndStop(_local3);
_global.path.chair[_local4]--;
flagchair3 = true;
numChairs = numChairs + 1;
}
if ((_global.path.chair[_local4] > 0) && (flagchair4 == false)) {
attachMC(_global.stage.chair[3], true);
attachMC(_global.stage.chairMask[3], true);
_global.path.yourItems.push(_global.stage.chair[3]);
_global.stage.chair[3].chairProp(_local3);
_global.stage.chair[3].clip.gotoAndStop(_local3);
_global.stage.chairMask[3].clip.gotoAndStop(_local3);
_global.path.chair[_local4]--;
flagchair4 = true;
numChairs = numChairs + 1;
}
_local3--;
}
trace("numChairs " + numChairs);
switch (numChairs) {
case 0 :
trace("carpet3");
attachMC(_global.stage.carpet[6], true);
case 1 :
trace("carpet4");
attachMC(_global.stage.carpet[5], true);
case 2 :
trace("carpet5");
attachMC(_global.stage.carpet[4], true);
case 3 :
trace("carpet6");
attachMC(_global.stage.carpet[3], true);
case 4 :
trace("nema karpeti");
break;
default :
trace("GRESHKA");
}
attachMC(_global.stage.carpet[7 - _local3], true);
attachMC(_global.stage.plant[0], true);
attachMC(_global.stage.paint);
attachMC(_global.stage.srca);
attachMC(_global.stage.senka);
attachMC(_global.stage.clock[0]);
_local3 = 0;
while (_local3 < _global.toyNumber) {
attachMC(_global.stage.toy[_local3], true);
_local3++;
}
if (_global.path.ReceptionsType > 0) {
attachMC(_global.stage.reception);
_global.stage.reception.receptionProp(_global.path.ReceptionsType);
_global.stage.window[0].clip.gotoAndStop("R" + _global.path.ReceptionsType);
_global.path.yourItems.push(_global.stage.reception);
trace("_global.stage.reception.socialRating " + _global.stage.reception.socialRating);
}
var _local10 = _global.path.bed.level1;
var _local12 = _global.path.bed.level2;
var _local13 = _global.path.bed.level3;
var _local16 = _global.path.box.level1;
var _local15 = _global.path.box.level2;
var _local14 = _global.path.box.level3;
_local3 = 3;
while (_local3 >= 1) {
var _local4 = "level" + _local3;
if ((_global.path.box[_local4] > 0) && (flagBox1 == false)) {
attachMC(_global.stage.box[0], true);
attachMC(_global.stage.boxover[0], true);
attachMC(_global.stage.boxFront, true);
_global.path.yourItems.push(_global.stage.box[0]);
_global.stage.box[0].clip.gotoAndStop(_local3);
_global.stage.boxover[0].clip.gotoAndStop(_local3);
_global.stage.boxFront.clip.gotoAndStop(_local3);
_global.stage.box[0].BoxProp(_local3);
_global.path.box[_local4]--;
flagBox1 = true;
numBoxes = numBoxes + 1;
}
if ((_global.path.box[_local4] > 0) && (flagBox2 == false)) {
attachMC(_global.stage.box[1], true);
attachMC(_global.stage.boxover[1], true);
_global.path.yourItems.push(_global.stage.box[1]);
_global.stage.box[1].clip.gotoAndStop(_local3);
_global.stage.boxover[1].clip.gotoAndStop(_local3);
_global.stage.box[1].BoxProp(_local3);
_global.path.box[_local4]--;
flagBox2 = true;
numBoxes = numBoxes + 1;
}
if ((_global.path.box[_local4] > 0) && (flagBox3 == false)) {
trace("lepambox3");
attachMC(_global.stage.box[2], true);
attachMC(_global.stage.boxover[2], true);
_global.path.yourItems.push(_global.stage.box[2]);
_global.stage.box[2].clip.gotoAndStop(_local3);
_global.stage.boxover[2].clip.gotoAndStop(_local3);
_global.stage.box[2].BoxProp(_local3);
_global.path.box[_local4]--;
flagBox3 = true;
numBoxes = numBoxes + 1;
}
_local3--;
}
var _local17 = 5;
_local3 = 3;
while (_local3 >= 1) {
var _local4 = "level" + _local3;
if ((_global.path.bed[_local4] > 0) && (flagBed1 == false)) {
_global.stage.panelButton[0].clip.bedSimbol.gotoAndStop(_local3);
_global.stage.panelButton[0].BedroomButtonProp(_local3);
_global.path.bed[_local4]--;
flagBed1 = true;
_global.path.yourItems.push(_global.stage.panelButton[0]);
numBeds = numBeds + 1;
trace("level " + _local3);
}
if ((_global.path.bed[_local4] > 0) && (flagBed2 == false)) {
_global.stage.panelButton[1].clip.bedSimbol.gotoAndStop(_local3);
_global.stage.panelButton[1].BedroomButtonProp(_local3);
_global.path.bed[_local4]--;
flagBed2 = true;
_global.path.yourItems.push(_global.stage.panelButton[1]);
numBeds = numBeds + 1;
trace("level " + _local3);
}
if ((_global.path.bed[_local4] > 0) && (flagBed3 == false)) {
_global.stage.panelButton[2].clip.bedSimbol.gotoAndStop(_local3);
_global.stage.panelButton[2].BedroomButtonProp(_local3);
_global.path.bed[_local4]--;
flagBed3 = true;
_global.path.yourItems.push(_global.stage.panelButton[2]);
numBeds = numBeds + 1;
trace("level " + _local3);
}
if ((_global.path.bed[_local4] > 0) && (flagBed4 == false)) {
_global.stage.panelButton[3].clip.bedSimbol.gotoAndStop(_local3);
_global.stage.panelButton[3].BedroomButtonProp(_local3);
_global.stage.bed[3].BedProp(_local3);
flagBed4 = true;
_global.path.yourItems.push(_global.stage.panelButton[3]);
numBeds = numBeds + 1;
trace("level " + _local3);
}
if ((_global.path.bed[_local4] > 0) && (flagBed5 == false)) {
_global.stage.panelButton[4].clip.bedSimbol.gotoAndStop(_local3);
_global.stage.panelButton[4].BedroomButtonProp(_local3);
_global.path.bed[_local4]--;
flagBed5 = true;
_global.path.yourItems.push(_global.stage.panelButton[4]);
numBeds = numBeds + 1;
trace("level " + _local3);
}
if ((_global.path.bed[_local4] > 0) && (flagBed6 == false)) {
_global.stage.panelButton[5].clip.bedSimbol.gotoAndStop(_local3);
_global.stage.panelButton[5].BedroomButtonProp(_local3);
_global.path.bed[_local4]--;
_global.path.yourItems.push(_global.stage.panelButton[5]);
flagBed6 = true;
numBeds = numBeds + 1;
trace("level " + _local3);
}
_local3--;
}
_global.path.dayBabiesNum = _global.path.dayBabiesNum + (numBeds - 1);
_global.path.dayBabiesNum = _global.path.dayBabiesNum + (numBoxes - 1);
_global.path.dayBabiesNum = _global.path.dayBabiesNum + (numChairs - 1);
if (_global.path.SecretaryType == 0) {
if (_global.path.dayBabiesNum > 6) {
_global.path.dayBabiesNum = 6;
}
} else if (_global.path.SecretaryType == 1) {
if (_global.path.dayBabiesNum > 8) {
_global.path.dayBabiesNum = 8;
}
} else if (_global.path.SecretaryType == 2) {
if (_global.path.dayBabiesNum > 10) {
_global.path.dayBabiesNum = 10;
}
} else if (_global.path.dayBabiesNum >= 12) {
_global.path.dayBabiesNum = 12;
}
trace("_global.path.dayBabiesNum " + _global.path.dayBabiesNum);
if ((_global.dayCount % 5) == 0) {
_global.path.weekBabiesNum = _global.path.dayBabiesNum;
}
_global.path.bedNum = numBeds;
_global.path.boxNum = numBoxes;
_global.path.chairNum = numChairs;
_global.path.bed.level1 = _local10;
_global.path.bed.level2 = _local12;
_global.path.bed.level3 = _local13;
_global.path.box.level1 = _local16;
_global.path.box.level2 = _local15;
_global.path.box.level3 = _local14;
_global.path.chair.level1 = _local8;
_global.path.chair.level2 = _local11;
_global.path.chair.level3 = _local9;
_global.path.horse.level1 = _local7;
_global.path.horse.level2 = _local5;
_global.path.horse.level3 = _local6;
_global.path.yourItems.push(_global.stage.carpet[1]);
attachMC(_global.stage.toy_boxes[0], true);
attachMC(_global.stage.toy_boxes[1], true);
attachMC(_global.stage.towel, true);
}
static function getUniqueName() {
var _local3 = "";
var _local2 = 1;
while (_local2 <= 4) {
var _local1 = 1;
while (_local1 <= 4) {
_local3 = _local3 + getRandomChar();
_local1++;
}
if (_local2 < 4) {
_local3 = _local3 + "-";
}
_local2++;
}
return(_local3);
}
static function getRandomChar() {
switch (Math.round(Math.random() + 1)) {
case 1 :
return(String.fromCharCode(Math.round(Math.random() * 25) + 65));
case 2 :
return(String.fromCharCode(Math.round(Math.random() * 25) + 97));
}
}
var numBeds = 0;
var numChairs = 0;
var numBoxes = 0;
var id = 2;
}
Symbol 5937 MovieClip [__Packages.utils.Worker] Frame 0
class utils.Worker extends MovieClip
{
var gotoAndStop, checBox, title_w, __name, _clas, cash_w, _cash, __type, images_workers_mc, check_box;
function Worker () {
super();
init();
}
function init() {
gotoAndStop(1);
checBox = false;
title_w.text = names[__id];
__name = names[__id];
_clas = clas[__id];
cash_w.text = money[__id] + "$";
_cash = money[__id];
__type = types[__id];
images_workers_mc.gotoAndStop(__id + 1);
__id++;
if ((__name == "EXPIRIENCED") && (__type == "SECRETARY")) {
__id = 0;
}
}
function employ() {
if (checBox == false) {
trace((((("__name " + __name) + " , _cash ") + _cash) + ", __type ") + __type);
switch (__type) {
case "NANNY" :
if (_global.path.BedroomType > 0) {
NANNYMoney = _cash;
clean();
_global.path.NanyType = _clas;
gotoAndStop("sel");
checBox = true;
break;
}
trace("!!!!!!!!NEMASH KUPENO Spalna!!!!!!!!!!!!");
break;
case "COOK" :
if (_global.path.KitchenType > 0) {
clean();
_global.path.CookType = _clas;
gotoAndStop("sel");
checBox = true;
COOKMoney = _cash;
} else {
trace("!!!!!!!!NEMASH KUPENO KUjNA!!!!!!!!!!!!");
break;
if (_global.path.BedroomType > 0) {
clean();
_global.path.BabysisterType = _clas;
gotoAndStop("sel");
checBox = true;
BABYSITTERMoney = _cash;
} else {
trace("!!!!!!!!NEMASH KUPENO Spalna!!!!!!!!!!!!");
break;
if (_global.path.ReceptionsType > 0) {
clean();
_global.path.SecretaryType = _clas;
gotoAndStop("sel");
checBox = true;
SECRETARYMoney = _cash;
} else {
trace("!!!!!!!!NEMASH KUPENO Recepcija!!!!!!!!!!!!");
}
}
}
case "BABYSITTER" :
if (_global.path.BedroomType > 0) {
clean();
_global.path.BabysisterType = _clas;
gotoAndStop("sel");
checBox = true;
BABYSITTERMoney = _cash;
} else {
trace("!!!!!!!!NEMASH KUPENO Spalna!!!!!!!!!!!!");
break;
if (_global.path.ReceptionsType > 0) {
clean();
_global.path.SecretaryType = _clas;
gotoAndStop("sel");
checBox = true;
SECRETARYMoney = _cash;
} else {
trace("!!!!!!!!NEMASH KUPENO Recepcija!!!!!!!!!!!!");
}
}
case "SECRETARY" :
if (_global.path.ReceptionsType > 0) {
clean();
_global.path.SecretaryType = _clas;
gotoAndStop("sel");
checBox = true;
SECRETARYMoney = _cash;
} else {
trace("!!!!!!!!NEMASH KUPENO Recepcija!!!!!!!!!!!!");
}
}
trace((((((("NANNYMoney:" + NANNYMoney) + " COOKMoney:") + COOKMoney) + " BABYSITTERMoney:") + BABYSITTERMoney) + " SECRETARYMoney:") + SECRETARYMoney);
if (NANNYMoney > 0) {
_global.path.babysiterExpense = NANNYMoney;
}
if (COOKMoney > 0) {
_global.path.cookExpense = COOKMoney;
}
if (SECRETARYMoney > 0) {
_global.path.secretaryExpense = SECRETARYMoney;
}
_global.path.agencyEmployment.MoneyExpend.text = (_global.path.secretaryExpense + _global.path.cookExpense) + _global.path.babysiterExpense;
} else {
switch (__type) {
case "NANNY" :
NANNYMoney = 0;
_global.path.NanyType = 0;
gotoAndStop(1);
_global.path.babysiterExpense = NANNYMoney;
break;
case "COOK" :
COOKMoney = 0;
_global.path.CookType = 0;
gotoAndStop(1);
_global.path.cookExpense = COOKMoney;
break;
case "BABYSITTER" :
BABYSITTERMoney = 0;
_global.path.BabysisterType = 0;
gotoAndStop(1);
break;
case "SECRETARY" :
SECRETARYMoney = 0;
_global.path.SecretaryType = 0;
gotoAndStop(1);
_global.path.secretaryExpense = SECRETARYMoney;
}
check_box.gotoAndStop(1);
_global.path.agencyEmployment.MoneyExpend.text = (_global.path.secretaryExpense + _global.path.cookExpense) + _global.path.babysiterExpense;
checBox = false;
trace("checBox " + checBox);
}
}
function clean() {
var _local5 = 1;
while (_local5 < 5) {
var _local3 = 1;
while (_local3 < 4) {
var _local4 = ("worker" + _local3) + _local5;
if (_global.path.agencyEmployment[_local4].getType() == __type) {
_global.path.agencyEmployment[_local4].unCheck();
}
_local3++;
}
_local5++;
}
}
function getType() {
return(__type);
}
function unCheck() {
gotoAndStop(1);
checBox = false;
}
function reset() {
trace("povikuvam funkcija reset");
NANNYMoney = 0;
COOKMoney = 0;
BABYSITTERMoney = 0;
SECRETARYMoney = 0;
}
static var __id = 0;
static var _idtype = 1;
static var NANNYMoney = 0;
static var COOKMoney = 0;
static var BABYSITTERMoney = 0;
static var SECRETARYMoney = 0;
var names = ["BEGINNER", "MEDIUM", "EXPIRIENCED", "BEGINNER", "MEDIUM", "EXPIRIENCED", "BEGINNER", "MEDIUM", "EXPIRIENCED", "BEGINNER", "MEDIUM", "EXPIRIENCED"];
var money = [150, 300, 450, 150, 300, 450, 150, 300, 450];
var types = ["NANNY", "NANNY", "NANNY", "COOK", "COOK", "COOK", "SECRETARY", "SECRETARY", "SECRETARY"];
var clas = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3];
}
Symbol 5938 MovieClip [__Packages.utils.Employment] Frame 0
class utils.Employment extends MovieClip
{
var your_money, MoneyExpend;
function Employment () {
super();
init();
}
function init() {
var _local4;
_local4 = (_global.path.dayBabiesNum * 5) + (0.8 * _global.path.socialRating);
trace("sumDo_dont " + _local4);
if (_local4 > 100) {
_local4 = 100;
}
if (_local4 < 0) {
_local4 = 0;
}
_global.path.agencyEmployment.Bar.bar._xscale = Math.round(_local4);
_global.path.empFlag = true;
trace("pocnuvam da pram objekti");
_global.path.bill = 0;
your_money.text = _global.path.money;
_global.path.expenseMoney = (_global.path.secretaryExpense + _global.path.cookExpense) + _global.path.babysiterExpense;
MoneyExpend.text = _global.path.expenseMoney;
var _local3 = _global.path.agencyEmployment;
_local3.attachMovie("worker11", "worker11", ++dep, {_x:183.5, _y:374.9, _rotation:-3});
_local3.attachMovie("worker21", "worker21", ++dep, {_x:342.4, _y:375.6, _rotation:2.7});
_local3.attachMovie("worker31", "worker31", ++dep, {_x:501.7, _y:372.1, _rotation:-4.8});
_local3.attachMovie("worker12", "worker12", ++dep, {_x:143, _y:194.2, _rotation:4.1});
_local3.attachMovie("worker22", "worker22", ++dep, {_x:343.3, _y:195.8, _rotation:1.8});
_local3.attachMovie("worker32", "worker32", ++dep, {_x:538.6, _y:196.1, _rotation:-2.3});
_local3.attachMovie("worker14", "worker14", ++dep, {_x:188.6, _y:19.6, _rotation:-3});
_local3.attachMovie("worker24", "worker24", ++dep, {_x:361.3, _y:14, _rotation:-4.3});
_local3.attachMovie("worker34", "worker34", ++dep, {_x:543.6, _y:17.4, _rotation:1.7});
_global.path.agencyEmployment.worker34.tabEnabled = false;
_global.path.agencyEmployment.worker24.tabEnabled = false;
_global.path.agencyEmployment.worker14.tabEnabled = false;
if (_global.path.NanyType > 0) {
_local3[("worker" + _global.path.NanyType) + "1"].gotoAndStop("sel");
_local3[("worker" + _global.path.NanyType) + "1"].employ();
}
if (_global.path.CookType > 0) {
_local3[("worker" + _global.path.CookType) + "2"].gotoAndStop("sel");
_local3[("worker" + _global.path.CookType) + "2"].employ();
}
if (_global.path.SecretaryType > 0) {
_local3[("worker" + _global.path.SecretaryType) + "4"].gotoAndStop("sel");
_local3[("worker" + _global.path.SecretaryType) + "4"].employ();
}
}
var spacing_x = 185;
var spacing_y = 94;
var dep = 10;
}
Symbol 5939 MovieClip [__Packages.utils.RoomsShop] Frame 0
class utils.RoomsShop extends MovieClip
{
var newClip, money, typeOfRoom, numOfApgejt, _parent, koeficient;
function RoomsShop () {
super();
init();
}
function init() {
_global.path.roomFlag = true;
trace("pocnuvam da pram objekti");
_global.path.bill = 0;
var _local3 = _global.path.roomsShop_ms;
newClip = undefined;
_global.path.roomsShop_ms.tekstovi.BankBalance.text = _global.path.money;
_global.path.roomsShop_ms.tekstovi.MoneySpend.text = _global.path.bill;
setCurentFee();
}
function setMovie(newMovie, roomTupe, upgrejtNum) {
if (upgrejtNum == 1) {
money = 300;
_global.path.NewSocialRating = 5;
} else if (upgrejtNum == 2) {
money = 650;
_global.path.NewSocialRating = 10;
} else if (upgrejtNum == 3) {
money = 1000;
_global.path.NewSocialRating = 15;
}
_global.path.bill = money;
_global.path.roomsShop_ms.tekstovi.MoneySpend.text = _global.path.bill;
typeOfRoom = roomTupe;
numOfApgejt = upgrejtNum;
newClip.removeMovieClip();
newClip = _global.path.roomsShop_ms.attachMovie(newMovie, "next_movie", dep, {_x:113.9, _y:221.6, _alpha:0});
_global.path.roomsShop_ms.buy.swapDepths(21);
_global.path.roomsShop_ms.finish.swapDepths(22);
setInterval(putMovie(), 10);
utils.Delegate.callDelayed(this, putMovie, 1000);
setNewcurentFee();
}
function putMovie() {
newClip._alpha = newClip._alpha + 30;
if ((newClip._alpha < 100) && this) {
utils.Delegate.callDelayed(this, putMovie, 100);
_global.path.roomsShop_ms.buy.swapDepths(21);
_global.path.roomsShop_ms.finish.swapDepths(22);
}
}
function buyRoom() {
if (_global.path.money >= _global.path.bill) {
trace("buy room");
switch (typeOfRoom) {
case "Kitchen" :
trace("Kitchen");
_global.path.KitchenType = numOfApgejt;
_global.path.roomsShop_ms["book" + numOfApgejt]._visible = false;
_global.path.roomsShop_ms["book" + (numOfApgejt - 1)]._visible = false;
_global.path.roomsShop_ms["book" + (numOfApgejt - 2)]._visible = false;
break;
case "Bedroom" :
trace("Bedroom");
_global.path.BedroomType = numOfApgejt;
_global.path.roomsShop_ms["book" + (numOfApgejt + 3)]._visible = false;
if (numOfApgejt == 3) {
_global.path.roomsShop_ms["book" + (numOfApgejt + 2)]._visible = false;
_global.path.roomsShop_ms["book" + (numOfApgejt + 1)]._visible = false;
} else if (numOfApgejt == 2) {
_global.path.roomsShop_ms["book" + (numOfApgejt + 1)]._visible = false;
}
break;
case "Receptions" :
trace("Receptions");
_global.path.ReceptionsType = numOfApgejt;
_global.path.roomsShop_ms["book" + (numOfApgejt + 6)]._visible = false;
if (numOfApgejt == 3) {
_global.path.roomsShop_ms["book" + (numOfApgejt + 5)]._visible = false;
_global.path.roomsShop_ms["book" + (numOfApgejt + 4)]._visible = false;
} else {
if (numOfApgejt != 2) {
break;
}
_global.path.roomsShop_ms["book" + (numOfApgejt + 4)]._visible = false;
}
}
if (_global.path.bill != 0) {
_global.sound.playSound("cash_money");
}
_global.path.money = _global.path.money - _global.path.bill;
_global.path.bill = 0;
_global.path.roomsShop_ms.tekstovi.BankBalance.text = _global.path.money;
_global.path.roomsShop_ms.tekstovi.MoneySpend.text = _global.path.bill;
_global.path.socialRating2 = _global.path.socialRating2 + _global.path.NewSocialRating;
_global.path.NewSocialRating = 0;
_global.path.roomsShop_ms.tekstovi.curentFee.text = _global.path.curentFee;
_global.path.roomsShop_ms.tekstovi.NewFee.text = "";
if (_global.path.BedroomType == 0) {
_global.maxParm.box = 2;
} else {
_global.maxParm.box = 3;
}
if (_global.path.BedroomType == 0) {
_global.maxParm.bed = 4;
} else {
_global.maxParm.bed = 6;
}
}
}
function setCurentFee() {
_global.path.bill = 0;
trace("_global.path.socialRating2" + _global.path.socialRating2);
trace("_global.path.roomsShop_ms.tekstovi.socialBar.bar" + _global.path.roomsShop_ms.tekstovi.socialBar.bar);
if (_global.path.socialRating2 <= 100) {
_global.path.roomsShop_ms.tekstovi.socialBar.bar._xscale = _global.path.socialRating2;
} else {
_global.path.roomsShop_ms.tekstovi.socialBar.bar._xscale = 100;
}
trace("set_global.path.curentFee(); " + _global.path.socialRating2);
_global.path.roomsShop_ms.tekstovi.NewFee.text = "";
_global.path.roomsShop_ms.tekstovi.MoneySpend.text = _global.path.MoneySpend.toString();
_parent.BankBalance.text = _global.path.money.toString();
koeficient = int(_global.path.socialRating2 / 3);
trace("##########this.koeficient " + koeficient);
_global.path.curentFee = koeficient * 10;
_global.path.NextFee = (koeficient * 10) + 10;
_global.path.roomsShop_ms.tekstovi.curentFeeText.text = _global.path.curentFee;
_global.path.roomsShop_ms.tekstovi.curentFee.text = _global.path.curentFee;
_global.path.roomsShop_ms.tekstovi.NextCurentFeeText.text = _global.path.NextFee;
if ((_global.path.socialRating2 - (koeficient * 3)) > 0) {
var _local3 = (_global.path.socialRating2 - (koeficient * 3)) / 0.03;
} else {
var _local3 = (_global.path.socialRating2 - ((koeficient - 1) * 3)) / 0.03;
_global.path.curentFee = 10;
_global.path.NextFee = 20;
}
_global.path.roomsShop_ms.tekstovi.nexFeeBar.bar._xscale = _local3;
trace("1SatusBar " + _local3);
}
function setNewcurentFee() {
var _local3 = _global.path.NewSocialRating + _global.path.socialRating2;
trace("rating; " + _local3);
koeficient = int(_local3 / 3);
trace("##########this.koeficient " + koeficient);
_global.path.curentFee = koeficient * 10;
_global.path.NextFee = (koeficient * 10) + 10;
_global.path.roomsShop_ms.tekstovi.curentFeeText.text = _global.path.curentFee;
_global.path.roomsShop_ms.tekstovi.NewFee.text = _global.path.curentFee;
_global.path.roomsShop_ms.tekstovi.NextCurentFeeText.text = _global.path.NextFee;
if ((_local3 - (koeficient * 3)) > 0) {
var _local4 = (_local3 - (koeficient * 3)) / 0.03;
} else {
var _local4 = (_local3 - ((koeficient - 1) * 3)) / 0.03;
}
trace("_global.path.socialRating2 " + _global.path.socialRating2);
trace("_global.path.roomsShop_ms.tekstovi.socialBar.bar " + _global.path.roomsShop_ms.tekstovi.socialBar.bar);
trace("_global.path.roomsShop_ms.tekstovi.socialBar " + _global.path.roomsShop_ms.tekstovi.socialBar);
trace("_global.path.roomsShop_ms " + _global.path.roomsShop_ms);
_global.path.roomsShop_ms.tekstovi.nexFeeBar.bar._xscale = _local4;
trace("1SatusBar " + _local4);
if (_local3 <= 100) {
_global.path.roomsShop_ms.tekstovi.socialBar.bar._xscale = _local3;
} else {
_global.path.roomsShop_ms.tekstovi.socialBar.bar._xscale = 100;
}
}
var spacing_x = 180;
var spacing_y = 144.3;
var dep = 10;
}
Symbol 5940 MovieClip [__Packages.utils.WeekendScreen] Frame 0
class utils.WeekendScreen extends MovieClip
{
var oldBankSum, ExpenseMoney, bonusMoney, impactMoney, earnMoney, BabySiterDaly, clip, babyDaly, fixedCost, bankSum;
function WeekendScreen () {
super();
init();
}
function init() {
trace("WeekendScreen");
trace("_global.path.money " + _global.path.money);
trace("_global.path.bonusPoints " + _global.path.bonusPoints);
trace("_global.path.expenseMoney " + _global.path.expenseMoney);
trace("_global.path.babiesInRoom " + _global.path.babiesInRoom);
trace("_global.path.exitBabies " + _global.path.exitBabies);
trace("_global.path.socialRating " + _global.path.socialRating);
trace("_global.path.levelHappiness" + _global.path.levelHappiness);
trace("_global.path.socialRatingImpact" + _global.path.socialRatingImpact);
if (_global.firsTimeDalyScreen) {
var _local6 = (_global.path.secretaryExpense + _global.path.cookExpense) + _global.path.babysiterExpense;
_global.path.expenseMoney = (_global.path.secretaryExpense + _global.path.cookExpense) + _global.path.babysiterExpense;
if (_global.path.levelHappiness >= 55) {
_global.path.socialRatingBonus = _global.path.socialRatingBonus + (((_global.path.levelHappiness / 100) * _global.path.exitBabies) * 0.02);
_global.path.socialRating = _global.path.socialRating + _global.path.socialRatingBonus;
trace("_global.path.socialRatingBonus " + _global.path.socialRatingBonus);
}
if (_global.path.levelHappiness < 55) {
_global.path.socialRatingBonus = _global.path.socialRatingBonus - (((_global.path.levelHappiness / 100) * _global.path.dayBabiesNum) * 0.02);
_global.path.socialRating = _global.path.socialRating + _global.path.socialRatingBonus;
trace("_global.path.socialRatingBonus " + _global.path.socialRatingBonus);
}
trace("VTOR PAT _global.path.socialRating " + _global.path.socialRating);
oldBankSum.text = _global.path.money;
_global.oldMoney = _global.path.money;
var _local11 = _global.path.money;
ExpenseMoney.text = _global.path.expenseMoney;
bonusMoney.text = _global.path.bonusPoints;
impactMoney.text = _global.path.socialRatingImpact;
var _local3 = 0;
_local3 = _global.path.socialRating2;
trace("REJJTINGOT NATVOJATA GRADINAKA E " + _local3);
var _local4;
_local4 = 0;
_global.path.dalyBabiesInRoom = _global.path.dayBabiesNum;
trace("_global.path.curentFee " + _global.path.curentFee);
trace("_global.path.dayBabiesNum; " + _global.path.dayBabiesNum);
_local4 = _global.path.curentFee * _global.path.exitBabies;
trace("earnMoneyNum " + _local4);
earnMoney.text = _local4.toString();
_local3 = 0;
_local3 = Math.floor(_global.path.socialRating);
if (_local3 <= 15) {
BabySiterDaly.gotoAndStop("It could be better!");
} else if ((_local3 <= 50) && (_local3 > 15)) {
BabySiterDaly.gotoAndStop("It\u2019s going good!");
} else if (_local3 > 50) {
BabySiterDaly.gotoAndStop("They like me");
}
if (_global.hapines < 33) {
clip.babyDaly.gotoAndStop("I\u2019m unhappy");
}
if ((_global.hapines >= 33) && (_global.hapines < 55)) {
babyDaly.gotoAndStop("Could feel better!");
} else if ((_global.hapines >= 55) && (_global.hapines < 75)) {
babyDaly.gotoAndStop("I\u2019m happy!");
} else if (_global.hapines >= 75) {
babyDaly.gotoAndStop("I feel super!");
}
fixedCost.text = _global.path.fixedCostNum.toString();
trace("32_global.path.money " + _global.path.money);
trace("2_global.path.bonusPoints " + _global.path.bonusPoints);
trace("2_global.path.expenseMoney " + _global.path.expenseMoney);
trace("2_global.path.babiesInRoom " + _global.path.babiesInRoom);
trace("2_global.path.socialRating " + _global.path.socialRating);
trace("2_global.path.levelHappiness" + _global.path.levelHappiness);
trace("2_global.path.socialRatingImpact" + _global.path.socialRatingImpact);
var _local5;
_local5 = Math.round(((((_global.path.money + _local4) - _global.path.fixedCostNum) + _global.path.bonusPoints) - _global.path.expenseMoney) - _global.path.socialRatingImpact);
bankSum.text = _local5.toString();
trace("_global.path.money " + _global.path.money);
trace("earnMoneyNum " + _local4);
trace("-fixedCostNum " + _global.path.fixedCostNum);
trace("_global.path.bonusPoints " + _global.path.bonusPoints);
trace("-_global.path.expenseMoney " + _global.path.expenseMoney);
trace("-_global.path.socialRatingImpact " + _global.path.socialRatingImpact);
_global.path.money = _local5;
_global.path.socialRating2 = _global.path.socialRating;
_global.path.socialRatingImpact = 0;
_global.path.babiesInRoom = 0;
_global.firsTimeDalyScreen = false;
_global.oldEarnMoneyNum = _global.path.money;
} else {
_global.path.WeekendMeny_mc.board.tabla4._visible = false;
_global.path.WeekendMeny_mc.attachMovie("table2", "table2", 1, {_x:66.4, _y:62.9, _xscale:100, _yscale:100});
_global.path.WeekendMeny_mc.table2.old_account.text = _global.oldEarnMoneyNum;
_global.path.WeekendMeny_mc.table2.new_account.text = _global.path.money;
_global.path.WeekendMeny_mc.table2.money_spend.text = _global.oldEarnMoneyNum - _global.path.money;
earnMoney._visible = false;
fixedCost._visible = false;
impactMoney._visible = false;
bonusMoney._visible = false;
oldBankSum._visible = false;
bankSum._visible = false;
ExpenseMoney._visible = false;
var _local3 = 0;
_local3 = Math.floor(_global.path.socialRating2);
if (_local3 <= 15) {
BabySiterDaly.gotoAndStop("It could be better!");
} else if ((_local3 <= 50) && (_local3 > 15)) {
BabySiterDaly.gotoAndStop("It\u2019s going good!");
} else if (_local3 > 50) {
BabySiterDaly.gotoAndStop("They like me");
}
if (_global.hapines < 33) {
clip.babyDaly.gotoAndStop("I\u2019m unhappy");
}
if ((_global.hapines >= 33) && (_global.hapines < 55)) {
babyDaly.gotoAndStop("Could feel better!");
} else if ((_global.hapines >= 55) && (_global.hapines < 75)) {
babyDaly.gotoAndStop("I\u2019m happy!");
} else if (_global.hapines >= 75) {
babyDaly.gotoAndStop("I feel super!");
}
}
}
}
Symbol 5941 MovieClip [__Packages.utils.Interim] Frame 0
class utils.Interim extends MovieClip
{
var nany_state, assistant_nanny, clown_state, kown, babysitter_state, Assistant_Babysitter, cook_state, cook_assistent, Nany, Clown, Bebysiter, bill_money, your_money, window, bar_smiles, Cook;
function Interim () {
super();
init();
}
function init() {
trace("interim");
if (!_global.path.nany) {
nany_state = 1;
} else {
nany_state = 3;
assistant_nanny.gotoAndStop(nany_state);
}
if (!_global.path.clown) {
clown_state = 1;
} else {
clown_state = 3;
kown.gotoAndStop(clown_state);
}
if (!_global.path.AssistantBabysitter) {
babysitter_state = 1;
} else {
babysitter_state = 3;
Assistant_Babysitter.gotoAndStop(babysitter_state);
}
if (!_global.path.AssistantCook) {
cook_state = 1;
} else {
cook_state = 3;
cook_assistent.gotoAndStop(cook_state);
}
Nany = false;
Clown = false;
Bebysiter = false;
bill_money.text = _global.path.bill;
your_money.text = _global.path.money;
trace("popUp10 " + _global.path.helpTips[10]);
_global.path.helpTips[_global.path.currentPopUp].dettachPopUp();
_global.path.currentPopUp = 10;
_global.path.helpTips[10].showPopUp();
window.gotoAndStop("first");
var _local3;
_local3 = (_global.path.dayBabiesNum * 5) + (0.8 * _global.path.socialRating);
trace("sumDo_dont " + _local3);
if (_local3 > 100) {
_local3 = 100;
}
if (_local3 < 0) {
_local3 = 0;
}
bar_smiles.bar._xscale = Math.round(_local3);
assistant_nanny.gotoAndStop(nany_state);
Assistant_Babysitter.gotoAndStop(babysitter_state);
cook_assistent.gotoAndStop(cook_state);
}
function Employ(carcacter) {
switch (carcacter) {
case 1 :
if (Nany != true) {
Nany = true;
_global.path.bill = _global.path.bill + 100;
bill_money.text = _global.path.bill;
nany_state = 2;
trace("nany_state " + nany_state);
assistant_nanny.gotoAndStop(nany_state);
} else {
Nany = false;
_global.path.bill = _global.path.bill - 100;
bill_money.text = _global.path.bill;
nany_state = 1;
assistant_nanny.gotoAndStop(nany_state);
}
break;
case 2 :
if (Clown != true) {
Clown = true;
_global.path.bill = _global.path.bill + 100;
bill_money.text = _global.path.bill;
clown_state = 2;
kown.gotoAndStop(clown_state);
} else {
Clown = false;
_global.path.bill = _global.path.bill - 100;
bill_money.text = _global.path.bill;
clown_state = 1;
kown.gotoAndStop(clown_state);
}
break;
case 3 :
if (Bebysiter != true) {
Bebysiter = true;
_global.path.bill = _global.path.bill + 50;
bill_money.text = _global.path.bill;
babysitter_state = 2;
Assistant_Babysitter.gotoAndStop(babysitter_state);
} else {
Bebysiter = false;
_global.path.bill = _global.path.bill - 50;
bill_money.text = _global.path.bill;
babysitter_state = 1;
Assistant_Babysitter.gotoAndStop(babysitter_state);
}
break;
case 4 :
if (Cook != true) {
Cook = true;
_global.path.bill = _global.path.bill + 50;
bill_money.text = _global.path.bill;
cook_state = 2;
cook_assistent.gotoAndStop(cook_state);
} else {
Cook = false;
_global.path.bill = _global.path.bill - 50;
bill_money.text = _global.path.bill;
cook_state = 1;
cook_assistent.gotoAndStop(cook_state);
}
break;
default :
trace("greshka");
}
}
function buy() {
trace("ok");
if ((_global.path.money - _global.path.bill) >= 0) {
if ((Nany == true) && (nany_state != 3)) {
_global.path.nany = true;
window.gotoAndPlay("nany");
nany_state = 3;
assistant_nanny.gotoAndStop(nany_state);
}
if ((Clown == true) && (clown_state != 3)) {
_global.path.clown = true;
window.gotoAndPlay("clown");
clown_state = 3;
kown.gotoAndStop(clown_state);
}
if ((Bebysiter == true) && (babysitter_state != 3)) {
_global.path.AssistantBabysitter = true;
window.gotoAndPlay("nany");
babysitter_state = 3;
Assistant_Babysitter.gotoAndStop(babysitter_state);
}
if ((Cook == true) && (cook_state != 3)) {
_global.path.AssistantCook = true;
window.gotoAndPlay("nany");
cook_state = 3;
cook_assistent.gotoAndStop(cook_state);
}
_global.path.money = _global.path.money - _global.path.bill;
_global.path.bill = 0;
bill_money.text = _global.path.bill;
your_money.text = _global.path.money;
}
}
}
Symbol 5942 MovieClip [__Packages.ss.Stage] Frame 0
class ss.Stage extends MovieClip
{
var soba, attachMovie, cursor, width, height;
function Stage () {
super();
_global.firsTimeDalyScreen = true;
_global.pause = false;
_global.path = this;
_global.pauzaPopupFirst = false;
_global.path.winScreenShown = false;
_global.path.winDayCount = 0;
_global.path.frstWeeked = true;
_global.path.frstDay = true;
_global.path.sound = new control.SoundController();
_global.path.levelBabies = new Array();
_global.path.pomLevelBabies = new Array();
_global.path.fWeek = false;
_global.path.WeekendMeny_mc.removeMovieClip();
_global.path.daly_screen.removeMovieClip();
_global.path.levelHappiness = 100;
_global.path.babiesInRoom = 0;
_global.path.dalyBabiesInRoom = 0;
_global.kupeni = new Array();
_global.path.yourItems = new Array();
_global.savegame = new ss.SaveLoad();
_global.path.nany = false;
_global.path.tempBar = _global.sound.tempBar;
_global.path.clown = false;
_global.path.AssistantCook = false;
_global.path.AssistantReceptionist = false;
_global.path.AssistantBabysitter = false;
_global.path.KitchenType = 0;
_global.path.BedroomType = 0;
_global.path.ReceptionsType = 0;
_global.path.babyDie = false;
_global.maxParm = {};
if (_global.path.BedroomType == 0) {
_global.maxParm.box = 2;
_global.maxParm.plant = 1;
} else {
_global.maxParm.box = 3;
_global.maxParm.plant = 1;
}
if (_global.path.BedroomType == 0) {
_global.maxParm.bed = 4;
} else {
_global.maxParm.bed = 6;
}
_global.maxParm.horse = 4;
_global.maxParm.chair = 4;
_global.maxParm.mixer = 1;
_global.path.box_rent = {};
_global.path.box_rent.level1 = 0;
_global.path.box_rent.level2 = 0;
_global.path.bed_rent = {};
_global.path.bed_rent.level1 = 0;
_global.path.bed_rent.level2 = 0;
_global.path.chair_rent = {};
_global.path.chair_rent.level1 = 0;
_global.path.chair_rent.level2 = 0;
_global.path.horse_rent = {};
_global.path.horse_rent.level1 = 0;
_global.path.horse_rent.level2 = 0;
_global.path.plant_rent = {};
_global.path.plant_rent.level1 = 0;
_global.path.plant_rent.level2 = 0;
_global.path.mixer_rent = {};
_global.path.mixer_rent.level1 = 0;
_global.path.mixer_rent.level2 = 0;
if ((startGame <= 0) || (_global.pausePress == true)) {
startGame = startGame + 1;
_global.path.needNumber = 5;
_global.path.socialRatingBonus = 0;
_global.pausePress = false;
_global.path.money = 0;
_global.path.secretaryExpense = 0;
_global.path.cookExpense = 0;
_global.path.babysiterExpense = 0;
_global.path.bill = 0;
_global.path.socialRating = 0;
_global.path.socialRating2 = 0;
_global.path.curentFee = 10;
_global.path.NextFee = 10;
_global.path.empFlag = false;
_global.path.roomFlag = false;
_global.path.pauzaPopupFlag = false;
_global.path.buyRooms = false;
_global.path.bigChairNumber = 4;
_global.path.horseNumber = 4;
_global.path.CookType = 0;
_global.path.NanyType = 0;
_global.path.BabysisterType = 0;
_global.path.SecretaryType = 0;
_global.path.BedroomBuy = false;
_global.path.KitchenBuy = false;
_global.path.ReceptionsBuy = false;
_global.path.bonusPoints = 0;
_global.path.expenseMoney = 0;
_global.path.socialRatingImpact = 0;
_global.path.dayBabiesNum = 1;
_global.dayCount = undefined;
_global.path.tutorialDay = true;
_global.path.Time = 120000 /* 0x01D4C0 */;
_global.nivo = 1;
_global.path.LoadSpeed = 3;
_global.path.UnloadSpeed = 12;
_global.path.bedNum = 1;
_global.path.boxNum = 1;
_global.path.chairNum = 1;
_global.foodMakerNumber = 1;
_global.vnatre = false;
_global.path.fixedCostNum = 50;
_global.nivo = 0;
_global.needsNum = 2;
_global.path.tutorialFlag = true;
_global.path.tutorialFlagGame = true;
_global.randomize = false;
_global.currentPopUp = undefined;
var _local4 = {};
_local4.level1 = 1;
_local4.level2 = 0;
_local4.level3 = 0;
_global.path.bed = _local4;
var _local5 = {};
_local5.level1 = 1;
_local5.level2 = 0;
_local5.level3 = 0;
_global.path.chair = _local5;
var _local6 = {};
_local6.level1 = 0;
_local6.level2 = 0;
_local6.level3 = 0;
_global.path.horse = _local6;
_global.path.plant = {};
_global.path.plant.level1 = 0;
_global.path.plant.level2 = 0;
_global.path.plant.level3 = 0;
_global.path.mixer = {};
_global.path.mixer.level1 = 1;
_global.path.mixer.level2 = 0;
_global.path.mixer.level3 = 0;
_global.path.box = {};
_global.path.box.level1 = 1;
_global.path.box.level2 = 0;
_global.path.box.level3 = 0;
_global.path.plantNumber = 1;
_global.path.MoneySpend = 0;
_global.path.NewSocialRating = 0;
_global.path.buyMeni = {box1:0, box2:0, box3:0, bed1:0, bed2:0, bed3:0, chair1:0, chair2:0, chair3:0};
_global.path.helpTips = [undefined, new HelpHints("popUp1", 613, 116, 0, 100, 100, 17005, 0, 100), new HelpHints("popUp2", 295, 244, 0, 100, 100, 57006, 0, 100), new HelpHints("popUp3", 247, 151, 0, 100, 100, 57816, 0.5, 100), new HelpHints("popUp4", 428, 157, 0, 100, 100, 57817, 0.1, 100), new HelpHints("popUp6", 79, 334, 0, 100, 100, 57819, 0.5, 100), new HelpHints("popUp5", 613, 96, 0, 100, 100, 57818, 0, 100), new HelpHints("popUp7", 350, 300, 0, 100, 100, 57820, 0, 100), new HelpHints("popUp8", 513, 364, 0, 100, 100, 57821, 0, 100), new HelpHints("popUp9", 400, 445, 0, 100, 100, 57822, 0, 100), new HelpHints("popUp10", 94, 495, 0, 100, 100, 57823, 0, 100), new HelpHints("popUp11", 479, 207, 0, 100, 100, 57823, 0, 100), new HelpHints("popUp12", 132, 464, 0, 100, 100, 57823, 0, 100), new HelpHints("popUp13", 471, 184, 0, 100, 100, 57823, 0, 100), new HelpHints("popUp14", 630, 464, 0, 100, 100, 57824, 0, 100), new HelpHints("popUp15", 650, 157, 0, 100, 100, 57825, 0, 100), new HelpHints("popUp16", 260, 136, 0, 100, 100, 57826, 0, 100), new HelpHints("popUp17", 260, 136, 0, 100, 100, 57827, 0, 100), new HelpHints("popUp18", 613, 116, 0, 100, 100, 17018, 0, 100), new HelpHints("popUp23", 250, 495, 0, 100, 100, 17018, 0, 100), new HelpHints("popUp30", 428, 157, 0, 100, 100, 57837, 0, 100), new HelpHints("popUp31", 285, 244, 0, 100, 100, 57026, 0, 100), new HelpHints("popUp32", 247, 151, 0, 100, 100, 57846, 0, 100), new HelpHints("popUp33", 79, 334, 0, 100, 100, 57839, 0.5, 100), new HelpHints("popUp34", 245, 264, 0, 100, 100, 57046, 0, 100), new HelpHints("popUp35", 629, 207, 0, 100, 100, 57833, 0, 100), new HelpHints("popUp36", 629, 207, 0, 100, 100, 57843, 0, 100), new HelpHints("popUp37", 609, 207, 0, 100, 100, 57853, 0, 100), new HelpHints("popUp38", 285, 244, 0, 100, 100, 57056, 0, 100), new HelpHints("popUp39", 112, 464, 0, 100, 100, 57830, 0, 100), new HelpHints("popUp40", 132, 464, 0, 100, 100, 57831, 0, 100), new HelpHints("popUp41", 452, 393, 0, 100, 100, 57832, 0, 100), new HelpHints("popUp42", 513, 364, 0, 100, 100, 57833, 0, 100), new HelpHints("popUp43", 513, 364, 0, 100, 100, 57834, 0, 100), new HelpHints("popUp30", 428, 157, 0, 100, 100, 57837, 0, 100), new HelpHints("popUp45", 200, 445, 0, 100, 100, 57862, 0, 100), new HelpHints("popUp46", 100, 445, 0, 100, 100, 57863, 0, 100), new HelpHints("popUp47", 300, 445, 0, 100, 100, 57864, 0, 100), new HelpHints("popUp48", 200, 445, 0, 100, 100, 57865, 0, 100), new HelpHints("popUp49", 300, 445, 0, 100, 100, 57866, 0, 100), new HelpHints("popUp50", 613, 116, 0, 100, 100, 17005, 0, 10), new HelpHints("popUp51", 147, 170, 0, 100, 100, 57816, 0, 10), new HelpHints("popUp52", 418, 190, 0, 100, 100, 57817, 0, 10), new HelpHints("popUp53", 132, 464, 0, 100, 100, 57823, 0, 10), new HelpHints("popUp44", 473, 190, 0, 100, 100, 19005, 0, 100), new HelpHints("popUp54", 350, 300, 0, 100, 100, 57820, 0, 100), new HelpHints("popUp55", 479, 117, 0, 100, 100, 57825, 0.3, 10), undefined];
_global.path.currentPopUp = 0;
}
if (!_global.loadFlag) {
init();
soba = attachMovie("room", "fdstrtg", 16000, {_x:0, _y:0, _xscale:100, _yscale:100});
}
}
function init() {
cursor = new ss.Cursor();
_global.path.timer = new utils.Timer();
_global.path.keyboard = new ss.Keyboard();
_global.path.timer.addEventListener("onTimerTick", this);
_global.path.timer.start();
_global.path.sound.volume = _global.tempBar;
_global.path.sound.off = _global.off;
width = 800;
height = 600;
}
function AddRoom() {
delete cursor;
_global.path.fixedCostNum = 50;
_global.nivo = 0;
_global.needsNum = 2;
_global.path.empFlag = false;
_global.path.roomFlag = false;
_global.path.tutorialFlag = false;
_global.path.buyRooms = false;
_global.randomize = true;
_global.currentPopUp = undefined;
if (_global.dayCount == 10) {
_global.path.attachMovie("DEMO", "DEMO", 16000, {_x:0, _y:0});
} else {
soba = attachMovie("room", "fdstrtg", 16000, {_x:0, _y:0, _xscale:100, _yscale:100});
}
init();
}
function RemoveRoom() {
_global.stage.soba.removeMovieClip();
_global.stage.Level.attachMovie("daly_screen", "daly_screen", 16000, {_x:0, _y:0, _xscale:100, _yscale:100});
}
function setBrightness(mc, level) {
var _local3 = new Color(mc);
var _local1 = _local3.getTransform();
var _local2 = 0;
_local2 = level;
_local1.rb = (_local1.gb = (_local1.bb = _local2));
_local1.rb = (_local1.gb = (_local1.bb = _local1.bb + ((_local2 - _local1.bb) / 3)));
_local3.setTransform(_local1);
}
function onTimerTick() {
_global.stage.update();
Mouse.hide();
}
static var startGame = 0;
}
Symbol 5943 MovieClip [__Packages.ss.SaveLoad] Frame 0
class ss.SaveLoad
{
var so;
function SaveLoad () {
trace("napraven e share objekt");
}
function a() {
trace("oofjosdjfisdjoifjs");
}
function saveGame(GameNumber) {
trace("GameNumber " + GameNumber);
trace("_global.path.curentFee " + _global.path.curentFee);
var _local3 = "saveGameText" + GameNumber.toString();
var _local5 = {butonTex:_global.path.saveGameMc[_local3].text, levelHappiness:_global.path.levelHappiness, socialRating:_global.path.socialRating, money:_global.path.money, bed:_global.path.bed, bed1:_global.path.bed.level1, bed2:_global.path.bed.level2, bed3:_global.path.bed.level3, box:_global.path.box, box1:_global.path.box.level1, box2:_global.path.box.level2, box3:_global.path.box.level3, chair:_global.path.chair, chair1:_global.path.chair.level1, chair2:_global.path.chair.level2, chair3:_global.path.chair.level3, horse:_global.path.horse, horse1:_global.path.horse.level1, horse2:_global.path.horse.level2, horse3:_global.path.horse.level3, plant:_global.path.plant, plant1:_global.path.plant.level1, CookType:_global.path.CookType, BabysisterType:_global.path.BabysisterType, SecretaryType:_global.path.SecretaryType, NanyType:_global.path.NanyType, BedroomBuy:_global.path.BedroomBuy, KitchenBuy:_global.path.KitchenBuy, ReceptionsBuy:_global.path.ReceptionsBuy, bonusPoints:_global.path.bonusPoints, expenseMoney:_global.path.expenseMoney, socialRatingImpact:_global.path.socialRatingImpact, clown:_global.path.clown, AssistantCook:_global.path.AssistantCook, AssistantReceptionist:_global.path.AssistantReceptionist, AssistantBabysitter:_global.path.AssistantBabysitter, nany:_global.path.nany, curentFee:_global.path.curentFee, NextFee:_global.path.NextFee, socialRating2:_global.path.socialRating2, KitchenType:_global.path.KitchenType, BedroomType:_global.path.BedroomType, ReceptionsType:_global.path.ReceptionsType, horseNumber:_global.path.horseNumber, bigChairNumber:_global.path.bigChairNumber, mixer:_global.path.mixer, mixer1:_global.path.mixer.level1, mixer2:_global.path.mixer.level2, mixer3:_global.path.mixer.level3, dayBabiesNum:_global.path.dayBabiesNum, needNumber:_global.path.needNumber, MoneySpend:_global.path.MoneySpend, NewSocialRating:_global.path.NewSocialRating, buyMeni:_global.path.buyMeni, dayCount:_global.dayCount, dayTime:_global.path.Time, winDayCount:_global.path.winDayCount};
trace("save game ok");
so = SharedObject.getLocal("save_load" + GameNumber);
so.data.SaveGame = _local5;
so.flush();
trace(so.data.SaveGame.levelHappiness);
trace(so.data.SaveGame.socialRating);
trace(so.data.SaveGame.money);
trace(so.data.SaveGame.bed);
trace(so.data.SaveGame.bed.level1);
trace(_global.path.saveGameMc[_local3].text);
}
function loadGame(GameNumber) {
trace("SAVE GAME GameNumber " + GameNumber);
so = SharedObject.getLocal("save_load" + GameNumber);
_global.path.levelHappiness = so.data.SaveGame.levelHappiness;
_global.path.socialRating = so.data.SaveGame.socialRating;
_global.path.money = so.data.SaveGame.money;
_global.path.bed = so.data.SaveGame.bed;
_global.path.bed.level1 = so.data.SaveGame.bed1;
_global.path.bed.level2 = so.data.SaveGame.bed2;
_global.path.bed.level3 = so.data.SaveGame.bed3;
_global.path.box = so.data.SaveGame.box;
_global.path.box.level1 = so.data.SaveGame.box1;
_global.path.box.level2 = so.data.SaveGame.box2;
_global.path.box.level3 = so.data.SaveGame.box3;
_global.path.horse = so.data.SaveGame.horse;
_global.path.horse.level1 = so.data.SaveGame.horse1;
_global.path.horse.level2 = so.data.SaveGame.horse2;
_global.path.horse.level3 = so.data.SaveGame.horse3;
_global.path.chair = so.data.SaveGame.chair;
_global.path.chair.level1 = so.data.SaveGame.chair1;
_global.path.chair.level2 = so.data.SaveGame.chair2;
_global.path.chair.level3 = so.data.SaveGame.chair3;
_global.path.plant = so.data.SaveGame.plant;
_global.path.plant.level1 = so.data.SaveGame.plant1;
_global.path.CookType = so.data.SaveGame.CookType;
_global.path.BabysisterType = so.data.SaveGame.BabysisterType;
_global.path.SecretaryType = so.data.SaveGame.SecretaryType;
_global.path.BedroomBuy = so.data.SaveGame.BedroomBuy;
_global.path.KitchenBuy = so.data.SaveGame.KitchenBuy;
_global.path.ReceptionsBuy = so.data.SaveGame.ReceptionsBuy;
_global.path.bonusPoints = so.data.SaveGame.bonusPoints;
_global.path.expenseMoney = so.data.SaveGame.expenseMoney;
_global.path.socialRatingImpact = so.data.SaveGame.socialRatingImpact;
_global.path.clown = so.data.SaveGame.clown;
_global.path.AssistantCook = so.data.SaveGame.AssistantCook;
_global.path.AssistantReceptionist = so.data.SaveGame.AssistantReceptionist;
_global.path.AssistantBabysitter = so.data.SaveGame.AssistantBabysitter;
_global.path.nany = so.data.SaveGame.nany;
_global.path.curentFee = so.data.SaveGame.curentFee;
_global.path.NextFee = so.data.SaveGame.NextFee;
_global.path.socialRating2 = so.data.SaveGame.socialRating2;
_global.path.KitchenType = so.data.SaveGame.KitchenType;
_global.path.BedroomType = so.data.SaveGame.BedroomType;
_global.path.ReceptionsType = so.data.SaveGame.ReceptionsType;
_global.path.horseNumber = so.data.SaveGame.horseNumber;
_global.path.NanyType = so.data.SaveGame.NanyType;
_global.path.bigChairNumber = so.data.SaveGame.bigChairNumber;
_global.path.mixer = so.data.SaveGame.mixer;
_global.path.mixer.level1 = so.data.SaveGame.mixer1;
_global.path.mixer.level2 = so.data.SaveGame.mixer2;
_global.path.mixer.level3 = so.data.SaveGame.mixer3;
_global.path.dayBabiesNum = so.data.SaveGame.dayBabiesNum;
_global.path.needNumber = so.data.SaveGame.needNumber;
_global.path.MoneySpend = so.data.SaveGame.MoneySpend;
_global.path.NewSocialRating = so.data.SaveGame.NewSocialRating;
_global.dayCount = so.data.SaveGame.dayCount;
_global.path.Time = so.data.SaveGame.dayTime;
_global.path.buyMeni = so.data.SaveGame.buyMeni;
_global.path.winDayCount = so.data.SaveGame.winDayCount;
_global.path.secretaryExpense = _global.path.SecretaryType * 150;
_global.path.cookExpense = _global.path.CookType * 150;
_global.path.babysiterExpense = _global.path.NanyType * 150;
_global.path.bonusPoints = 0;
_global.path.socialRating = 0;
_global.firsTimeDalyScreen = true;
_global.path.tutorialDay = false;
trace("_global.path.curentFee " + _global.path.curentFee);
trace("_global.path.money " + _global.path.money);
trace(so.data.SaveGame.dayTime);
trace(so.data.SaveGame.levelHappiness);
trace(so.data.SaveGame.socialRating);
trace(so.data.SaveGame.money);
trace(so.data.SaveGame.bed);
trace(so.data.SaveGame.bed.level1);
trace(so.data.SaveGame.box);
_global.path.AddRoom();
_global.loadFlag = false;
_global.path.loadGameMc.removeMovieClip();
}
}
Symbol 5944 MovieClip [__Packages.HelpHints] Frame 0
class HelpHints extends ss.MovieClipProp
{
var shown, appearingDelay, disappearingDelay, NameId, DisappearingDelay, depth, clip, linkID, y, x, objectClip, helpObjectClip, helpObject1Clip;
function HelpHints (l, x, y, rot, xs, ys, depth, aDelay, dDelay) {
super(l, x, y, rot, xs, ys);
shown = 0;
appearingDelay = aDelay * 1000;
disappearingDelay = dDelay * 1000;
NameId = l;
_global.popUpFlag = false;
if (dDelay < 100) {
DisappearingDelay = true;
} else {
DisappearingDelay = false;
}
this.depth = depth;
}
function showPopUp() {
utils.Delegate.callDelayed(this, attachPopUp, appearingDelay);
}
function attachPopUp() {
if (_global.path.tutorialFlag == true) {
if (((((((NameId == "popUp9") || (NameId == "popUp23")) || (NameId == "popUp45")) || (NameId == "popUp46")) || (NameId == "popUp47")) || (NameId == "popUp48")) || (NameId == "popUp49")) {
clip = _global.path.attachMovie(linkID, NameId, depth, {_x:x, _y:y});
}
if ((shown == 0) && (NameId == "popUp5")) {
clip = _global.stage.attachMovie(linkID, NameId, depth, {_x:x, _y:y});
clip.popUP._alpha = 80;
_global.popUpFlag = true;
objectClip = _global.path.currentMovie;
} else if ((((((shown == 0) && (_global.stage.game.stopFlag == false)) && (_global.stage.timeForLeaving == false)) && (NameId != "popUp9")) && (NameId != "popUp23")) && (NameId != "popUp10")) {
if ((((((((((((((((((((((((((((((NameId == "popUp3") || (NameId == "popUp4")) || (NameId == "popUp6")) || (NameId == "popUp11")) || (NameId == "popUp14")) || (NameId == "popUp15")) || (NameId == "popUp16")) || (NameId == "popUp18")) || (NameId == "popUp1")) || (NameId == "popUp2")) || (NameId == "popUp31")) || (NameId == "popUp30")) || (NameId == "popUp32")) || (NameId == "popUp33")) || (NameId == "popUp34")) || (NameId == "popUp35")) || (NameId == "popUp36")) || (NameId == "popUp37")) || (NameId == "popUp38")) || (NameId == "popUp39")) || (NameId == "popUp40")) || (NameId == "popUp41")) || (NameId == "popUp42")) || (NameId == "popUp43")) || (NameId == "popUp50")) || (NameId == "popUp51")) || (NameId == "popUp52")) || (NameId == "popUp54")) || (NameId == "popUp53")) || (NameId == "popUp55")) {
_global.popUpFlag = true;
}
_global.stage.game.stopFlag = true;
_global.stage.game.stopPopUpFlag = getTimer();
objectClip = _global.path.currentMovie;
helpObjectClip = _global.path.currentHelpMovie;
helpObject1Clip = _global.path.currentHelp1Movie;
if (_global.dayCount != 0) {
_global.path.setBrightness(objectClip, 100);
_global.path.setBrightness(helpObjectClip, 100);
_global.path.setBrightness(helpObject1Clip, 100);
}
if (NameId == "popUp10") {
clip = _global.path.attachMovie(linkID, NameId, depth, {_x:x, _y:y});
} else {
clip = _global.stage.attachMovie(linkID, NameId, depth, {_x:x, _y:y});
}
if (DisappearingDelay) {
utils.Delegate.callDelayed(this, dettachPopUp, disappearingDelay);
}
}
}
if (((((((((NameId == "popUp3") || (NameId == "popUp4")) || (NameId == "popUp6")) || (NameId == "popUp8")) || (NameId == "popUp11")) || (NameId == "popUp13")) || (NameId == "popUp12")) || (NameId == "popUp15")) || (NameId == "popUp17")) {
if ((shown == 0) && (_global.needsNum <= _global.path.needNumber)) {
if (_global.path.tutorialDay == false) {
}
_global.stage.game.flagPopup = true;
_global.stage.game.needFlag = true;
}
}
if (shown == 0) {
shown = 1;
_global.currentPopUp = this;
}
}
function dettachPopUp() {
if ((_global.path.pauzaPopupFlag == true) && (NameId == "popUp55")) {
_global.stage.prekidac.clip.gotoAndStop("off");
_global.path.pauzaPopupFlag = false;
}
if (_global.path.tutorialFlag == false) {
_global.stage.game.needFlag = false;
}
if (NameId == "popUp34") {
trace("_global.path.tutorialFlag " + _global.path.tutorialFlag);
trace("_global.path.helpTips[25].shown " + _global.path.helpTips[25].shown);
trace("_global.path.helpTips[27].shown " + _global.path.helpTips[27].shown);
trace("_global.stage.bottle.clip " + _global.stage.bottle.clip);
}
if ((((_global.path.tutorialFlag == true) && (NameId == "popUp34")) && (_global.path.helpTips[25].shown == 2)) && (_global.stage.bottle.clip)) {
trace("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!pop_up pojavi");
_global.stage.game.stopFlag = false;
clip.removeMovieClip();
clip = undefined;
_global.path.setBrightness(objectClip, 0);
_global.path.setBrightness(helpObjectClip, 0);
_global.path.setBrightness(helpObject1Clip, 0);
_global.path.helpTips[27].showPopUp();
_global.path.currentPopUp = 27;
}
if (clip && (((((((NameId == "popUp9") || (NameId == "popUp23")) || (NameId == "popUp45")) || (NameId == "popUp46")) || (NameId == "popUp47")) || (NameId == "popUp48")) || (NameId == "popUp49"))) {
clip.removeMovieClip();
clip = undefined;
}
if (clip && (_global.stage.game.stopFlag == true)) {
_global.stage.game.needFlag = false;
if (_global.popUpFlag == true) {
_global.popUpFlag = false;
}
if (_global.pausePress == true) {
_global.StartPauseTime = getTimer();
_global.pauseTakeTime = true;
}
_global.stage.game.stopFlag = false;
trace("GI DODAVA RAZLIKITE");
_global.stage.game.PopUpRalika = getTimer() - _global.stage.game.stopPopUpFlag;
_global.stage.game.clock = _global.stage.game.clock + _global.stage.game.PopUpRalika;
_global.stage.game.endDay = _global.stage.game.endDay + _global.stage.game.PopUpRalika;
_global.stage.game.endLeavingTime = _global.stage.game.endLeavingTime + _global.stage.game.PopUpRalika;
_global.stage.game.digiClockTime = _global.stage.game.digiClockTime + _global.stage.game.PopUpRalika;
_global.stage.game.pauziranoVreme = _global.stage.game.pauziranoVreme + _global.stage.game.PopUpRalika;
trace("1111111111*********************vo help Hints_global.stage.game.now " + _global.stage.game.now);
_global.stage.game.now = _global.stage.game.now + _global.stage.game.PopUpRalika;
trace("2222222222*********************vo help Hints_global.stage.game.now " + _global.stage.game.now);
if (_global.stage.game.babiesInRoom != undefined) {
var _local3 = 0;
while (_local3 <= _global.stage.game.babiesInRoom) {
_global.stage.babies[_local3].p = _global.stage.babies[_local3].p + _global.stage.game.PopUpRalika;
_global.stage.babies[_local3].now = _global.stage.babies[_local3].now + _global.stage.game.PopUpRalika;
_local3++;
}
}
clip.removeMovieClip();
clip = undefined;
_global.path.setBrightness(objectClip, 0);
_global.path.setBrightness(helpObjectClip, 0);
_global.path.setBrightness(helpObject1Clip, 0);
}
if (clip && (NameId == _global.currentPopUp.NameId)) {
_global.currentPopUp.clip.removeMovieClip();
_global.path.setBrightness(objectClip, 0);
_global.path.setBrightness(helpObjectClip, 0);
_global.path.setBrightness(helpObject1Clip, 0);
}
if (shown == 1) {
shown = 2;
}
if (NameId == "popUp35") {
shown = 2;
}
}
function dettachPrevisious() {
var _local2 = 1;
while (_local2 < _global.path.currentPopUp) {
if (_global.path.helpTips[_local2].clip) {
_global.path.helpTips[_local2].clip.removeMovieClip();
_global.path.helpTips[_local2].clip = undefined;
}
_global.path.helpTips[_local2].shown = 2;
_local2++;
}
}
}
Symbol 5945 MovieClip [__Packages.ss.Cursor] Frame 0
class ss.Cursor
{
var clip, mouseListener, xcoord, ycoord, now, br, greater, angleTolerance, timess;
function Cursor () {
init();
}
function init() {
_root.cursor.stopDrag();
_root.cursor.removeMovieClip();
clip = _global.path.attachMovie("cursor", "cursor", 31000);
clip.cacheAsBitmap = true;
startDrag (clip, true);
mouseListener = new Object();
mouseListener.onMouseDown = Click;
mouseListener.onMouseMove = onMove;
Mouse.addListener(mouseListener);
Mouse.hide();
_global.mouse = this;
xcoord = _global.path._xmouse;
ycoord = _global.path._ymouse;
now = getTimer();
br = 0;
greater = false;
angleTolerance = 20;
timess = 4;
}
function Click() {
var _local3 = _xmouse;
var _local2 = _ymouse;
_global.stage.game.clickedObject(_local3, _local2);
}
function onMove() {
if (_global.stage.girl.clip) {
var _local3 = (180 * Math.atan2(_global.path._ymouse - _global.mouse.ycoord, _global.path._xmouse - _global.mouse.xcoord)) / Math.PI;
if (((!_global.mouse.greater) && (Math.abs(_local3) <= _global.mouse.angleTolerance)) || (_global.mouse.greater && (Math.abs(_local3) >= (180 - _global.mouse.angleTolerance)))) {
_global.mouse.br++;
}
if (Math.abs(_local3) <= _global.mouse.angleTolerance) {
_global.mouse.greater = true;
} else if (Math.abs(_local3) >= (180 - _global.mouse.angleTolerance)) {
_global.mouse.greater = false;
}
_global.mouse.xcoord = _global.path._xmouse;
_global.mouse.ycoord = _global.path._ymouse;
if ((getTimer() - _global.mouse.now) > 350) {
_global.mouse.now = getTimer();
if (_global.mouse.br > _global.mouse.timess) {
trace("shake");
if (_global.stage.girl.canMove == true) {
_global.stage.girl.canMove = false;
_global.stage.game.moving = false;
_global.stage.girl.standBabySitter();
_global.stage.girl.refreshSolidObjects();
trace("_global.stage.girl.cellx " + _global.stage.girl.cellx);
trace("_global.stage.girl.celly " + _global.stage.girl.celly);
trace("_global.stage.girl.clip._x " + _global.stage.girl.clip._x);
trace("_global.stage.girl.clip._y " + _global.stage.girl.clip._y);
_global.stage.game.ClickArray.splice(0, _global.stage.game.ClickArray.length);
_global.frstStar.gotoAndStop("explode");
var _local2 = 0;
while (_local2 <= _global.stage.game.stars.length) {
_global.stage.game.stars[_local2].gotoAndStop("explode");
_local2++;
}
_global.count = 1;
_global.stage.girl.optiPath.splice(0, _global.stage.girl.optiPath.length);
trace("_global.stage.game.ClickArray.length " + _global.stage.game.ClickArray.length);
} else {
_global.stage.game.ClickArray.splice(0, _global.stage.game.ClickArray.length);
var _local2 = 0;
while (_local2 <= _global.stage.game.stars.length) {
_global.stage.game.stars[_local2].gotoAndStop("explode");
_local2++;
}
_global.frstStar.gotoAndStop("explode");
_global.count = 1;
}
}
_global.mouse.br = 0;
_global.mouse.xcoord = _global.path._xmouse;
_global.mouse.ycoord = _global.path._ymouse;
}
}
}
function removeMouseListener() {
Mouse.removeListener(mouseListener);
}
}
Symbol 5946 MovieClip [__Packages.ss.BaseClass] Frame 0
class ss.BaseClass extends MovieClip
{
var events;
function BaseClass () {
super();
}
function addEventListener(evt, listener) {
if (events == undefined) {
events = new mx.events.EventDispatcher();
}
events.addEventListener(evt, listener);
}
function removeEventListener(evt, listener) {
events.removeEventListener(evt, listener);
}
function destroy() {
var _local2 = false;
trace("deleted: " + _local2);
}
}
Symbol 5947 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 5948 MovieClip [__Packages.utils.Timer] Frame 0
class utils.Timer extends ss.BaseClass
{
var _ival, events, pauseMenu, pause;
function Timer () {
super();
}
function start() {
clearInterval(_ival);
_ival = setInterval(this, "doTick", 40);
}
function stop() {
clearInterval(_ival);
}
function doTick() {
events.dispatchEvent({type:"onTimerTick", target:this});
}
function Pause() {
stop();
pauseMenu = _global.stage.attachMovie("pause_mc", "pause_mc", 57910, {_x:0, _y:0});
trace("zakaciv pause_mc");
pause = true;
}
function Play() {
pauseMenu.removeMovieClip();
pauseMenu = undefined;
pause = false;
start();
}
}
Symbol 5949 MovieClip [__Packages.ss.Keyboard] Frame 0
class ss.Keyboard
{
var keyboardListener, spaceBtnReleased, pauseTime;
function Keyboard () {
keyboardListener = new Object();
keyboardListener.onKeyDown = Press;
Key.addListener(keyboardListener);
_global.pausePress = false;
_global.glow = false;
spaceBtnReleased = true;
_global.pause = false;
_global.keyboard = this;
_global.pauseTakeTime = false;
pauseTime = 0;
}
function Press() {
if ((Key.getCode() == 80) && (_global.stage.girl.clip)) {
if (_global.path.tutorialDay == false) {
if (!_global.pausePress) {
trace("STOP");
if (_global.stage.game.stopFlag == false) {
trace("stop flag e false");
_global.StartPauseTime = getTimer();
_global.pauseTakeTime = true;
trace("_global.pauseTakeTime = true; ");
}
_global.path.timer.Pause();
_global.pausePress = true;
_global.path.sound.stopMusic("clock_bang");
if (_global.stage.game.babiesInRoom != undefined) {
var _local3 = 0;
while (_local3 <= _global.stage.game.babiesInRoom) {
_global.stage.babies[_local3].stopBabyCrying();
_local3++;
}
}
_global.pause = true;
} else {
trace("GO");
trace("_global.stage.game.stopFlag " + _global.stage.game.stopFlag);
trace("_global.pauseTakeTime " + _global.pauseTakeTime);
if (_global.pauseTakeTime == true) {
pauseTime = getTimer() - _global.StartPauseTime;
} else {
pauseTime = 0;
}
trace("pauseTime " + pauseTime);
_global.pauseTakeTime = false;
trace("_global.stage.game.babiesInRoom " + _global.stage.game.babiesInRoom);
if ((_global.stage.game.stopFlag == false) && (_global.stage.game.babiesInRoom != undefined)) {
_global.stage.game.clock = _global.stage.game.clock + pauseTime;
_global.stage.game.endDay = _global.stage.game.endDay + pauseTime;
_global.stage.game.endLeavingTime = _global.stage.game.endLeavingTime + pauseTime;
_global.stage.game.digiClockTime = _global.stage.game.digiClockTime + pauseTime;
_global.stage.game.now = _global.stage.game.now + pauseTime;
var _local3 = 0;
while (_local3 <= _global.stage.game.babiesInRoom) {
_global.stage.babies[_local3].timeUnHappy = _global.stage.babies[_local3].timeUnHappy + pauseTime;
_global.stage.babies[_local3].now = _global.stage.babies[_local3].now + pauseTime;
_local3++;
}
} else {
_global.stage.game.stopFlag = true;
}
if (_global.cukaSaat == true) {
_global.path.sound.playMusic("clock_bang");
}
_global.path.timer.Play();
_global.pausePress = false;
_global.pause = false;
pauseTime = 0;
}
}
}
if (Key.getCode() == 72) {
if (_global.path.tutorialDay == false) {
if (_global.stage.girl.clip) {
trace("_global.stage.soba " + _global.stage.soba);
trace("STISNATO E HHHHH vo soba");
if (_global.pause == false) {
trace("STISNATO E HHHHH");
if (_global.path.tutorialFlag == false) {
trace("_global.currentPopUp.NameId " + _global.currentPopUp.NameId);
_global.path.meni.popUPSamoprajs._visible = true;
_global.path.roomsShop_ms.popUPSamoprajs._visible = true;
_global.path.roomsShop_ms.popUPSamoprajs.swapDepths(23);
_global.path.meni.popUPSamoprajs.gotoAndPlay("pokazi");
_global.path.roomsShop_ms.popUPSamoprajs.gotoAndPlay("pokazi");
_global.path.tutorialFlag = true;
if (_global.currentPopUp.shown == 1) {
trace("_global.currentPopUp.NameId " + _global.currentPopUp.NameId);
_global.currentPopUp.clip = _global.path.attachMovie(_global.currentPopUp.linkID, _global.currentPopUp.NameId, _global.currentPopUp.depth, {_x:_global.currentPopUp.x, _y:_global.currentPopUp.y});
_global.stage.game.stopPopUpFlag = getTimer();
_global.stage.game.stopFlag = true;
}
} else {
_global.path.meni.popUPSamoprajs.gotoAndPlay("brisi");
_global.path.roomsShop_ms.popUPSamoprajs.gotoAndPlay("brisi");
_global.path.tutorialFlag = false;
_global.stage.game.stopFlag = false;
if (_global.currentPopUp.clip && (_global.currentPopUp.shown == 1)) {
_global.currentPopUp.clip.removeMovieClip();
_global.stage.game.PopUpRalika = getTimer() - _global.stage.game.stopPopUpFlag;
_global.stage.game.clock = _global.stage.game.clock + _global.stage.game.PopUpRalika;
_global.stage.game.endDay = _global.stage.game.endDay + _global.stage.game.PopUpRalika;
_global.stage.game.endLeavingTime = _global.stage.game.endLeavingTime + _global.stage.game.PopUpRalika;
_global.stage.game.digiClockTime = _global.stage.game.digiClockTime + _global.stage.game.PopUpRalika;
_global.path.setBrightness(_global.currentPopUp.objectClip, 0);
_global.path.setBrightness(_global.currentPopUp.helpObjectClip, 0);
_global.path.setBrightness(_global.currentPopUp.helpObject1Clip, 0);
}
}
}
}
}
}
if (((Key.getCode() == 32) && (_global.stage.girl.clip)) && (_global.path.clown == true)) {
trace("KLIKNATO E SPACE");
if (((_global.stage.clownClicked == false) && (_global.stage.game.BabyOnDoor == false)) && ((getTimer() - _global.stage.game.endDay) < (_global.stage.game.Time - 30000))) {
_global.stage.game.clownflag = true;
_global.path.sound.playSound("Clown_arrive");
_global.stage.game.clownTime = getTimer();
_global.stage.clownClicked = true;
_global.stage.clownAttach = false;
_global.stage.game.anyClown = true;
_global.stage.game.Clicked = true;
}
}
}
function removeKeyboardListener() {
Key.removeListener(keyboardListener);
}
}
Instance of Symbol 597 MovieClip in Symbol 600 MovieClip [Skip_tutorial] Frame 1
on (press) {
trace("SKIP ne ship");
stopAllSounds();
_global.path.attachMovie("sunrise_mc_poceten", "sunrise_mc_poceten", 4, {_x:399.6, _y:299.8, _xscale:100, _yscale:100});
_global.path.tutorialDay = false;
_global.path.tutorialFlag = true;
_global.needsNum = 2;
_global.path.dayBabiesNum = 2;
_global.dayCount = 0;
_global.path.Time = 120000 /* 0x01D4C0 */;
var i = 1;
while (i <= 5) {
_global.path.helpTips[i].shown = 2;
i++;
}
var i = 20;
while (i <= 33) {
_global.path.helpTips[i].shown = 2;
i++;
}
_global.path.helpTips[8].shown = 2;
_global.path.helpTips[11].shown = 2;
_global.path.helpTips[12].shown = 2;
_global.stage.removeMovieClip();
}
Instance of Symbol 608 MovieClip in Symbol 613 MovieClip [weekendMenu] Frame 1
on (release) {
_global.music[0].stop();
_global.music[1].start(0, 32768);
_global.music[1].setVolume(_global.tempBarMusic);
_global.mouse.removeMouseListener();
delete _global.mouse;
_global.keyboard.removeKeyboardListener();
delete _global.keyboard;
_global.pausePress = true;
_global.path.timer.stop();
_root.attachMovie("DEMO", "DEMO", 1, {_x:0, _y:0});
_root.attachMovie("cursor", "cursor", 21000);
_root.cursor.cacheAsBitmap = true;
startDrag (_root.cursor, true);
Mouse.hide();
_root.stage.removeMovieClip();
_root.weekendMenu.removeMovieClip();
}
Instance of Symbol 611 MovieClip in Symbol 613 MovieClip [weekendMenu] Frame 1
on (release) {
_global.wsButtons = true;
_global.dsButtons = true;
_global.path.weekendMenu.removeMovieClip();
}
Symbol 620 MovieClip [cursor] Frame 1
stop();
Symbol 620 MovieClip [cursor] Frame 2
stop();
Symbol 625 Button
on (release) {
_global.stage.pause_mc.butons._visible = false;
_global.stage.pause_mc.attachMovie("pause_options_mc", "pause_options_mc", 26001, {_x:287, _y:230});
}
on (rollOver) {
_global.path.cursor.clip.gotoAndStop("hand");
}
on (rollOut) {
_global.path.cursor.clip.gotoAndStop("arrow");
}
on (dragOut) {
_global.path.cursor.clip.gotoAndStop("arrow");
}
Symbol 630 Button
on (press) {
if (_global.pause == true) {
_global.pause = false;
_global.pausePress = false;
_global.path.sound.playMusic("baby_song");
_global.stage.girl.proveriBabySong();
if (_global.pauseTakeTime == true) {
var pauseTime = (getTimer() - _global.StartPauseTime);
} else {
var pauseTime = 0;
}
if ((_global.stage.game.stopFlag == false) && (_global.stage.game.babiesInRoom != undefined)) {
_global.pauseTakeTime = false;
_global.stage.game.clock = _global.stage.game.clock + pauseTime;
_global.stage.game.endDay = _global.stage.game.endDay + pauseTime;
_global.stage.game.endLeavingTime = _global.stage.game.endLeavingTime + pauseTime;
_global.stage.game.digiClockTime = _global.stage.game.digiClockTime + pauseTime;
_global.stage.game.now = _global.stage.game.now + pauseTime;
var i = 0;
while (i <= _global.stage.game.babiesInRoom) {
_global.stage.babies[i].timeUnHappy = _global.stage.babies[i].timeUnHappy + pauseTime;
_global.stage.babies[i].now = _global.stage.babies[i].now + pauseTime;
i++;
}
}
_global.path.timer.Play();
}
}
on (rollOver) {
_global.path.cursor.clip.gotoAndStop("hand");
}
on (rollOut) {
_global.path.cursor.clip.gotoAndStop("arrow");
}
on (dragOut) {
_global.path.cursor.clip.gotoAndStop("arrow");
}
Symbol 634 Button
on (release) {
_global.stage.pause_mc.butons._visible = false;
_global.stage.pause_mc.attachMovie("end_game", "end_game", 26001, {_x:287, _y:285});
}
on (rollOver) {
_global.path.cursor.clip.gotoAndStop("hand");
}
on (rollOut) {
_global.path.cursor.clip.gotoAndStop("arrow");
}
on (dragOut) {
_global.path.cursor.clip.gotoAndStop("arrow");
}
Symbol 638 MovieClip [stage] Frame 1
#initclip 106
Object.registerClass("stage", ss.Stage);
#endinitclip
Symbol 751 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 755 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 779 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "1") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 779 MovieClip Frame 34
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "1") {
trace("clipIndex b1");
_global.stage.babies[i].babyCryToy();
}
i++;
}
Symbol 779 MovieClip Frame 73
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "1") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 779 MovieClip Frame 129
gotoAndPlay (33);
Symbol 828 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 854 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "1") {
trace("sound clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 127) && (cframe < 355)) {
this.gotoAndPlay(128);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 854 MovieClip Frame 128
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "1") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 854 MovieClip Frame 355
gotoAndPlay (128);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "1") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 862 MovieClip Frame 94
gotoAndPlay (1);
Symbol 862 MovieClip Frame 125
gotoAndPlay (95);
Symbol 866 MovieClip Frame 94
gotoAndPlay (1);
Symbol 866 MovieClip Frame 125
gotoAndPlay (95);
Symbol 904 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 908 MovieClip Frame 94
gotoAndPlay (1);
Symbol 908 MovieClip Frame 125
gotoAndPlay (95);
Symbol 988 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 988 MovieClip Frame 104
gotoAndPlay (71);
Symbol 991 MovieClip Frame 94
gotoAndPlay (1);
Symbol 991 MovieClip Frame 125
gotoAndPlay (95);
Symbol 1049 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1049 MovieClip Frame 310
gotoAndPlay (136);
Symbol 1055 MovieClip Frame 94
gotoAndPlay (1);
Symbol 1055 MovieClip Frame 125
gotoAndPlay (95);
Symbol 1060 MovieClip Frame 94
gotoAndPlay (1);
Symbol 1060 MovieClip Frame 125
gotoAndPlay (95);
Symbol 1117 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 1117 MovieClip Frame 28
delete this.onEnterFrame;
stop();
Symbol 1118 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "1") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 100) && (cframe < 321)) {
this.gotoAndPlay(101);
}
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1118 MovieClip Frame 22
_global.stage.game.babyVomit1();
Symbol 1118 MovieClip Frame 43
_global.stage.game.babyVomit2();
var flag = false;
Symbol 1118 MovieClip Frame 101
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "1") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 1118 MovieClip Frame 321
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "1") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1118 MovieClip Frame 322
gotoAndPlay (101);
Symbol 1118 MovieClip Frame 323
trace("cistammmmmmmmmmmm faca");
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "1") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1118 MovieClip Frame 328
stop();
delete this.onEnterFrame;
Symbol 1121 MovieClip Frame 31
Symbol 1121 MovieClip Frame 94
gotoAndPlay (1);
Symbol 1121 MovieClip Frame 125
gotoAndPlay (95);
Symbol 1178 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "1") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if (cframe > 89) {
this.gotoAndPlay(89);
}
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1178 MovieClip Frame 68
_global.stage.game.babyCryFall();
Symbol 1178 MovieClip Frame 90
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "1") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 1178 MovieClip Frame 210
gotoAndPlay (89);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "1") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1199 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
_global.path.sound.stopSound("babyDrinking");
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
_global.path.sound.playSound("babyDrinking");
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1229 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1233 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1236 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1239 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1243 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1243 MovieClip Frame 9
delete this.onEnterFrame;
Symbol 1247 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1247 MovieClip Frame 9
delete this.onEnterFrame;
Symbol 1251 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1251 MovieClip Frame 9
delete this.onEnterFrame;
Symbol 1255 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1255 MovieClip Frame 9
delete this.onEnterFrame;
Symbol 1259 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1259 MovieClip Frame 9
delete this.onEnterFrame;
Symbol 1263 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1263 MovieClip Frame 9
delete this.onEnterFrame;
Symbol 1267 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1267 MovieClip Frame 9
delete this.onEnterFrame;
Symbol 1271 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1271 MovieClip Frame 10
delete this.onEnterFrame;
Symbol 1275 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1275 MovieClip Frame 9
delete this.onEnterFrame;
Symbol 1279 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1279 MovieClip Frame 9
delete this.onEnterFrame;
Symbol 1283 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1283 MovieClip Frame 9
delete this.onEnterFrame;
Symbol 1287 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1287 MovieClip Frame 8
delete this.onEnterFrame;
Symbol 1300 MovieClip Frame 94
gotoAndPlay (1);
Symbol 1300 MovieClip Frame 125
gotoAndPlay (95);
Symbol 1302 MovieClip Frame 12
Symbol 1302 MovieClip Frame 41
stop();
Symbol 1302 MovieClip Frame 47
stop();
Symbol 1302 MovieClip Frame 53
stop();
Symbol 1302 MovieClip Frame 59
stop();
Symbol 1321 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 1326 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "2") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if (cframe > 127) {
this.gotoAndPlay(128);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 1326 MovieClip Frame 34
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "2") {
trace("clipIndex b1");
_global.stage.babies[i].babyCryToy();
}
i++;
}
Symbol 1326 MovieClip Frame 73
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "2") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1326 MovieClip Frame 129
gotoAndPlay (33);
Symbol 1353 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1357 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "2") {
trace("sound clipIndex b2");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 127) && (cframe < 355)) {
this.gotoAndPlay(128);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 1357 MovieClip Frame 128
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "2") {
trace("clipIndex b2");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 1357 MovieClip Frame 355
gotoAndPlay (128);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "2") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1364 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1376 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1376 MovieClip Frame 104
gotoAndPlay (71);
Symbol 1387 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1387 MovieClip Frame 310
gotoAndPlay (136);
Symbol 1390 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "2") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 100) && (cframe < 321)) {
this.gotoAndPlay(101);
}
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1390 MovieClip Frame 22
_global.stage.game.babyVomit1();
Symbol 1390 MovieClip Frame 43
_global.stage.game.babyVomit2();
var flag = false;
Symbol 1390 MovieClip Frame 101
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "2") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 1390 MovieClip Frame 321
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "2") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1390 MovieClip Frame 322
gotoAndPlay (101);
Symbol 1390 MovieClip Frame 323
trace("cistammmmmmmmmmmm faca");
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "2") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1390 MovieClip Frame 328
stop();
delete this.onEnterFrame;
Symbol 1401 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "2") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if (cframe > 89) {
this.gotoAndPlay(89);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 1401 MovieClip Frame 68
_global.stage.game.babyCryFall();
Symbol 1401 MovieClip Frame 90
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "2") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 1401 MovieClip Frame 210
gotoAndPlay (89);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "2") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1404 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
_global.path.sound.stopSound("babyDrinking");
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
_global.path.sound.playSound("babyDrinking");
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1413 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1528 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "3") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
if (!_global.path.endGame) {
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "8") {
trace("clipIndex b1");
_global.stage.babies[i].babyCryToy();
}
i++;
}
}
Symbol 1528 MovieClip Frame 32
if (!_global.path.endGame) {
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "3") {
trace("clipIndex b1");
_global.stage.babies[i].babyCryToy();
}
i++;
}
} else {
_global.sound.playSound("cry_Baby_toy");
}
Symbol 1528 MovieClip Frame 77
if (!_global.path.endGame) {
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "3") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
}
Symbol 1528 MovieClip Frame 129
gotoAndPlay (32);
Symbol 1565 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1606 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "3") {
trace("sound clipIndex b3");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 127) && (cframe < 355)) {
this.gotoAndPlay(128);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 1606 MovieClip Frame 128
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "3") {
trace("clipIndex b3");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 1606 MovieClip Frame 355
gotoAndPlay (128);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "3") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1617 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1693 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1693 MovieClip Frame 104
gotoAndPlay (71);
Symbol 1713 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1713 MovieClip Frame 310
gotoAndPlay (136);
Symbol 1722 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "3") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 100) && (cframe < 321)) {
this.gotoAndPlay(101);
}
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1722 MovieClip Frame 22
_global.stage.game.babyVomit1();
Symbol 1722 MovieClip Frame 43
_global.stage.game.babyVomit2();
var flag = false;
Symbol 1722 MovieClip Frame 101
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "3") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 1722 MovieClip Frame 321
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "3") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1722 MovieClip Frame 322
gotoAndPlay (101);
Symbol 1722 MovieClip Frame 323
trace("cistammmmmmmmmmmm faca");
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "3") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1722 MovieClip Frame 328
stop();
delete this.onEnterFrame;
Symbol 1773 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "3") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if (cframe > 89) {
this.gotoAndPlay(89);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 1773 MovieClip Frame 68
_global.stage.game.babyCryFall();
Symbol 1773 MovieClip Frame 90
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "3") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 1773 MovieClip Frame 210
gotoAndPlay (89);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "3") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1778 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
_global.path.sound.stopSound("babyDrinking");
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
_global.path.sound.playSound("babyDrinking");
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1787 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1820 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "4") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if (cframe > 127) {
this.gotoAndPlay(128);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 1820 MovieClip Frame 34
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "4") {
trace("clipIndex b1");
_global.stage.babies[i].babyCryToy();
}
i++;
}
Symbol 1820 MovieClip Frame 77
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "4") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1820 MovieClip Frame 129
gotoAndPlay (33);
Symbol 1847 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1851 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "4") {
trace("sound clipIndex b4");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 127) && (cframe < 355)) {
this.gotoAndPlay(128);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 1851 MovieClip Frame 128
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "4") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 1851 MovieClip Frame 355
gotoAndPlay (128);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "4") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1858 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1873 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1873 MovieClip Frame 104
gotoAndPlay (71);
Symbol 1883 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1883 MovieClip Frame 310
gotoAndPlay (136);
Symbol 1886 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "4") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 100) && (cframe < 321)) {
this.gotoAndPlay(101);
}
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1886 MovieClip Frame 22
_global.stage.game.babyVomit1();
Symbol 1886 MovieClip Frame 43
_global.stage.game.babyVomit2();
var flag = false;
Symbol 1886 MovieClip Frame 101
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "4") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 1886 MovieClip Frame 321
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "4") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1886 MovieClip Frame 322
gotoAndPlay (101);
Symbol 1886 MovieClip Frame 323
trace("cistammmmmmmmmmmm faca");
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "4") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1886 MovieClip Frame 328
stop();
delete this.onEnterFrame;
Symbol 1898 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "4") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if (cframe > 89) {
this.gotoAndPlay(89);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 1898 MovieClip Frame 68
_global.stage.game.babyCryFall();
Symbol 1898 MovieClip Frame 90
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "4") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 1898 MovieClip Frame 210
gotoAndPlay (89);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "4") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1901 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
_global.path.sound.stopSound("babyDrinking");
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
_global.path.sound.playSound("babyDrinking");
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 1910 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1930 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 1935 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "5") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1935 MovieClip Frame 34
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "5") {
trace("clipIndex b1");
_global.stage.babies[i].babyCryToy();
}
i++;
}
Symbol 1935 MovieClip Frame 73
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "5") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1935 MovieClip Frame 129
gotoAndPlay (33);
Symbol 1962 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1966 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "5") {
trace("sound clipIndex b5");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 127) && (cframe < 355)) {
this.gotoAndPlay(128);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 1966 MovieClip Frame 128
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "5") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 1966 MovieClip Frame 355
gotoAndPlay (128);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "5") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1973 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1985 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1985 MovieClip Frame 104
gotoAndPlay (71);
Symbol 1996 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1996 MovieClip Frame 310
gotoAndPlay (136);
Symbol 1999 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "5") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 100) && (cframe < 321)) {
this.gotoAndPlay(101);
}
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 1999 MovieClip Frame 27
_global.stage.game.babyVomit1();
Symbol 1999 MovieClip Frame 43
_global.stage.game.babyVomit2();
var flag = false;
Symbol 1999 MovieClip Frame 101
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "5") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 1999 MovieClip Frame 321
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "5") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1999 MovieClip Frame 322
gotoAndPlay (101);
Symbol 1999 MovieClip Frame 323
trace("cistammmmmmmmmmmm faca");
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "5") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 1999 MovieClip Frame 328
stop();
delete this.onEnterFrame;
Symbol 2010 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "5") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if (cframe > 89) {
this.gotoAndPlay(89);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2010 MovieClip Frame 68
_global.stage.game.babyCryFall();
Symbol 2010 MovieClip Frame 90
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "5") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2010 MovieClip Frame 210
gotoAndPlay (89);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "5") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2013 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
_global.path.sound.stopSound("babyDrinking");
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
_global.path.sound.playSound("babyDrinking");
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 2022 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2042 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 2047 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "6") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2047 MovieClip Frame 34
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "6") {
trace("clipIndex b1");
_global.stage.babies[i].babyCryToy();
}
i++;
}
Symbol 2047 MovieClip Frame 73
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "6") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2047 MovieClip Frame 129
gotoAndPlay (33);
Symbol 2074 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2078 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "6") {
trace("sound clipIndex b6");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 127) && (cframe < 355)) {
this.gotoAndPlay(128);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2078 MovieClip Frame 128
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "6") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2078 MovieClip Frame 355
gotoAndPlay (128);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "6") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2085 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2097 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2097 MovieClip Frame 104
gotoAndPlay (71);
Symbol 2148 MovieClip Frame 310
gotoAndPlay (145);
Symbol 2151 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "6") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 100) && (cframe < 321)) {
this.gotoAndPlay(101);
}
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2151 MovieClip Frame 22
_global.stage.game.babyVomit1();
Symbol 2151 MovieClip Frame 43
_global.stage.game.babyVomit2();
var flag = false;
Symbol 2151 MovieClip Frame 101
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "6") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2151 MovieClip Frame 321
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "6") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2151 MovieClip Frame 322
gotoAndPlay (101);
Symbol 2151 MovieClip Frame 323
trace("cistammmmmmmmmmmm faca");
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "6") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2151 MovieClip Frame 328
stop();
delete this.onEnterFrame;
Symbol 2162 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "1") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if (cframe > 89) {
this.gotoAndPlay(89);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2162 MovieClip Frame 68
_global.stage.game.babyCryFall();
Symbol 2162 MovieClip Frame 90
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "6") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2162 MovieClip Frame 210
gotoAndPlay (89);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "6") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2165 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
_global.path.sound.stopSound("babyDrinking");
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
_global.path.sound.playSound("babyDrinking");
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 2174 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2203 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "7") {
trace("clipIndex b7");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2203 MovieClip Frame 34
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "7") {
trace("clipIndex b1");
_global.stage.babies[i].babyCryToy();
}
i++;
}
Symbol 2203 MovieClip Frame 77
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "7") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2203 MovieClip Frame 129
gotoAndPlay (33);
Symbol 2230 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2234 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "7") {
trace("sound clipIndex b7");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 127) && (cframe < 355)) {
this.gotoAndPlay(128);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2234 MovieClip Frame 128
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "7") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2234 MovieClip Frame 335
gotoAndPlay (128);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "7") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2241 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2256 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2256 MovieClip Frame 104
gotoAndPlay (71);
Symbol 2266 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2266 MovieClip Frame 310
gotoAndPlay (136);
Symbol 2269 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "7") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 100) && (cframe < 321)) {
this.gotoAndPlay(101);
}
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2269 MovieClip Frame 22
_global.stage.game.babyVomit1();
Symbol 2269 MovieClip Frame 43
_global.stage.game.babyVomit2();
var flag = false;
Symbol 2269 MovieClip Frame 101
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "7") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2269 MovieClip Frame 321
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "7") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2269 MovieClip Frame 322
gotoAndPlay (101);
Symbol 2269 MovieClip Frame 323
trace("cistammmmmmmmmmmm faca");
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "7") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2269 MovieClip Frame 328
stop();
delete this.onEnterFrame;
Symbol 2281 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "7") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if (cframe > 89) {
this.gotoAndPlay(89);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2281 MovieClip Frame 68
_global.stage.game.babyCryFall();
Symbol 2281 MovieClip Frame 90
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "7") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2281 MovieClip Frame 210
gotoAndPlay (89);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "7") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2284 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("baby_crying");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
_global.path.sound.stopSound("babyDrinking");
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
_global.path.sound.playSound("babyDrinking");
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 2293 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2323 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "8") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2323 MovieClip Frame 32
if (!_global.path.endGame) {
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "8") {
trace("clipIndex b1");
_global.stage.babies[i].babyCryToy();
}
i++;
}
}
Symbol 2323 MovieClip Frame 77
if (!_global.path.endGame) {
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "8") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
}
Symbol 2323 MovieClip Frame 129
gotoAndPlay (32);
Symbol 2352 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2362 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "8") {
trace("sound clipIndex b8");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 127) && (cframe < 355)) {
this.gotoAndPlay(128);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2362 MovieClip Frame 128
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "8") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2362 MovieClip Frame 355
gotoAndPlay (128);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "8") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2369 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2384 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2384 MovieClip Frame 104
gotoAndPlay (71);
Symbol 2394 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2394 MovieClip Frame 310
gotoAndPlay (136);
Symbol 2397 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "8") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 100) && (cframe < 321)) {
this.gotoAndPlay(101);
}
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2397 MovieClip Frame 22
_global.stage.game.babyVomit1();
Symbol 2397 MovieClip Frame 43
_global.stage.game.babyVomit2();
var flag = false;
Symbol 2397 MovieClip Frame 101
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "8") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2397 MovieClip Frame 321
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "8") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2397 MovieClip Frame 322
gotoAndPlay (101);
Symbol 2397 MovieClip Frame 323
trace("cistammmmmmmmmmmm faca");
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "8") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2397 MovieClip Frame 328
stop();
delete this.onEnterFrame;
Symbol 2409 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "8") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if (cframe > 89) {
this.gotoAndPlay(89);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2409 MovieClip Frame 68
_global.stage.game.babyCryFall();
Symbol 2409 MovieClip Frame 90
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "8") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2409 MovieClip Frame 210
gotoAndPlay (89);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "8") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2412 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
_global.path.sound.stopSound("babyDrinking");
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
_global.path.sound.playSound("babyDrinking");
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 2421 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2440 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 2445 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "9") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2445 MovieClip Frame 34
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "9") {
trace("clipIndex b1");
_global.stage.babies[i].babyCryToy();
}
i++;
}
Symbol 2445 MovieClip Frame 73
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "9") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2445 MovieClip Frame 129
gotoAndPlay (33);
Symbol 2472 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2476 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "9") {
trace("sound clipIndex b9");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 127) && (cframe < 355)) {
this.gotoAndPlay(128);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2476 MovieClip Frame 128
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "9") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2476 MovieClip Frame 355
gotoAndPlay (128);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "9") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2483 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2495 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2495 MovieClip Frame 104
gotoAndPlay (71);
Symbol 2506 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2506 MovieClip Frame 310
gotoAndPlay (136);
Symbol 2509 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "9") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 100) && (cframe < 321)) {
this.gotoAndPlay(101);
}
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2509 MovieClip Frame 22
_global.stage.game.babyVomit1();
Symbol 2509 MovieClip Frame 43
_global.stage.game.babyVomit2();
var flag = false;
Symbol 2509 MovieClip Frame 101
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "9") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2509 MovieClip Frame 321
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "9") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2509 MovieClip Frame 322
gotoAndPlay (101);
Symbol 2509 MovieClip Frame 323
trace("cistammmmmmmmmmmm faca");
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "9") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2509 MovieClip Frame 328
stop();
delete this.onEnterFrame;
Symbol 2520 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "9") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if (cframe > 89) {
this.gotoAndPlay(89);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2520 MovieClip Frame 68
_global.stage.game.babyCryFall();
Symbol 2520 MovieClip Frame 90
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "9") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2520 MovieClip Frame 210
gotoAndPlay (89);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "9") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2523 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
_global.path.sound.stopSound("babyDrinking");
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
_global.path.sound.playSound("babyDrinking");
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 2532 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2552 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 2557 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "10") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2557 MovieClip Frame 34
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "10") {
trace("clipIndex b1");
_global.stage.babies[i].babyCryToy();
}
i++;
}
Symbol 2557 MovieClip Frame 73
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "10") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2557 MovieClip Frame 129
gotoAndPlay (33);
Symbol 2584 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2588 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "10") {
trace("sound clipIndex b10");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 127) && (cframe < 355)) {
this.gotoAndPlay(128);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2588 MovieClip Frame 128
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "10") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2588 MovieClip Frame 355
gotoAndPlay (128);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "10") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2641 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2641 MovieClip Frame 104
gotoAndPlay (71);
Symbol 2652 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2652 MovieClip Frame 310
gotoAndPlay (136);
Symbol 2655 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "10") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 100) && (cframe < 321)) {
this.gotoAndPlay(101);
}
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2655 MovieClip Frame 27
_global.stage.game.babyVomit1();
Symbol 2655 MovieClip Frame 43
_global.stage.game.babyVomit2();
var flag = false;
Symbol 2655 MovieClip Frame 101
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "10") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2655 MovieClip Frame 321
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "10") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2655 MovieClip Frame 322
gotoAndPlay (101);
Symbol 2655 MovieClip Frame 323
trace("cistammmmmmmmmmmm faca");
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "10") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2655 MovieClip Frame 328
stop();
delete this.onEnterFrame;
Symbol 2666 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "10") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if (cframe > 89) {
this.gotoAndPlay(89);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2666 MovieClip Frame 68
_global.stage.game.babyCryFall();
Symbol 2666 MovieClip Frame 90
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "10") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2666 MovieClip Frame 210
gotoAndPlay (89);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "10") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2669 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
_global.path.sound.stopSound("babyDrinking");
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
_global.path.sound.playSound("babyDrinking");
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 2678 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2679 MovieClip Frame 1
stop();
Symbol 2708 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "11") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2708 MovieClip Frame 34
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "11") {
trace("clipIndex b1");
_global.stage.babies[i].babyCryToy();
}
i++;
}
Symbol 2708 MovieClip Frame 77
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "11") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2708 MovieClip Frame 129
gotoAndPlay (33);
Symbol 2735 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2739 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "11") {
trace("sound clipIndex b11");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 127) && (cframe < 355)) {
this.gotoAndPlay(128);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2739 MovieClip Frame 128
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "11") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2739 MovieClip Frame 355
gotoAndPlay (128);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "11") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2746 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2761 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2761 MovieClip Frame 104
gotoAndPlay (71);
Symbol 2771 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2771 MovieClip Frame 310
gotoAndPlay (136);
Symbol 2774 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "11") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 100) && (cframe < 321)) {
this.gotoAndPlay(101);
}
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2774 MovieClip Frame 27
_global.stage.game.babyVomit1();
Symbol 2774 MovieClip Frame 43
_global.stage.game.babyVomit2();
var flag = false;
Symbol 2774 MovieClip Frame 101
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "11") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2774 MovieClip Frame 321
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "11") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2774 MovieClip Frame 322
gotoAndPlay (101);
Symbol 2774 MovieClip Frame 323
trace("cistammmmmmmmmmmm faca");
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "11") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2774 MovieClip Frame 328
stop();
delete this.onEnterFrame;
Symbol 2786 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "11") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if (cframe > 89) {
this.gotoAndPlay(89);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2786 MovieClip Frame 68
_global.stage.game.babyCryFall();
Symbol 2786 MovieClip Frame 90
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "11") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2786 MovieClip Frame 210
gotoAndPlay (89);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "11") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2789 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
_global.path.sound.stopSound("babyDrinking");
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
_global.path.sound.playSound("babyDrinking");
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 2798 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2828 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "12") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2828 MovieClip Frame 32
if (!_global.path.endGame) {
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "12") {
trace("clipIndex b1");
_global.stage.babies[i].babyCryToy();
}
i++;
}
}
Symbol 2828 MovieClip Frame 77
if (!_global.path.endGame) {
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "12") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
}
Symbol 2828 MovieClip Frame 129
gotoAndPlay (32);
Symbol 2857 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2867 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "12") {
trace("sound clipIndex b12");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 127) && (cframe < 355)) {
this.gotoAndPlay(128);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2867 MovieClip Frame 128
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "12") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2867 MovieClip Frame 355
gotoAndPlay (128);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "12") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2874 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2889 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2889 MovieClip Frame 104
gotoAndPlay (71);
Symbol 2899 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2899 MovieClip Frame 310
gotoAndPlay (136);
Symbol 2902 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "12") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if ((cframe > 100) && (cframe < 321)) {
this.gotoAndPlay(101);
}
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2902 MovieClip Frame 22
_global.stage.game.babyVomit1();
Symbol 2902 MovieClip Frame 43
_global.stage.game.babyVomit2();
var flag = false;
Symbol 2902 MovieClip Frame 101
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "12") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2902 MovieClip Frame 321
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "12") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2902 MovieClip Frame 322
gotoAndPlay (101);
Symbol 2902 MovieClip Frame 323
trace("cistammmmmmmmmmmm faca");
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "12") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2902 MovieClip Frame 328
stop();
delete this.onEnterFrame;
Symbol 2914 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
var _local3 = 1;
while (_local3 <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[_local3].clipIndex == "12") {
trace("clipIndex b1");
_global.stage.babies[_local3].stopBabyCrying();
}
_local3++;
}
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
if (cframe > 89) {
this.gotoAndPlay(89);
} else {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
}
paused = false;
}
};
Symbol 2914 MovieClip Frame 68
_global.stage.game.babyCryFall();
Symbol 2914 MovieClip Frame 90
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "12") {
trace("clipIndex b1");
_global.stage.babies[i].playBabyCrying();
}
i++;
}
Symbol 2914 MovieClip Frame 210
gotoAndPlay (89);
var i = 1;
while (i <= _global.stage.game.babiesInRoom) {
if (_global.stage.babies[i].clipIndex == "12") {
trace("clipIndex b1");
_global.stage.babies[i].stopBabyCrying();
}
i++;
}
Symbol 2917 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
_global.path.sound.stopSound("babyDrinking");
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
_global.path.sound.playSound("babyDrinking");
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 2926 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
Symbol 2928 MovieClip [bebe] Frame 1
Symbol 2928 MovieClip [bebe] Frame 7
Symbol 2928 MovieClip [bebe] Frame 14
Symbol 2928 MovieClip [bebe] Frame 20
Symbol 2928 MovieClip [bebe] Frame 26
Symbol 2928 MovieClip [bebe] Frame 32
Symbol 2928 MovieClip [bebe] Frame 38
Symbol 2928 MovieClip [bebe] Frame 44
Symbol 2928 MovieClip [bebe] Frame 50
Symbol 2928 MovieClip [bebe] Frame 56
Symbol 2928 MovieClip [bebe] Frame 62
Symbol 2928 MovieClip [bebe] Frame 68
stop();
Symbol 2940 MovieClip Frame 1
stop();
Symbol 2940 MovieClip Frame 2
stop();
Symbol 2940 MovieClip Frame 3
stop();
Symbol 2961 Button
on (press) {
_global.path.saveGameMc.removeMovieClip();
}
Symbol 2962 MovieClip [saveGameMc] Frame 1
function checkName(i) {
var _local2 = 1;
while (_local2 < 9) {
if (_local2 != i) {
if (_global.path.saveGameMc["saveGame" + _local2].saveText.text == _global.path.saveGameMc["saveGameText" + i].text) {
return(_global.path.saveGameMc["saveGameText" + i].text + "1");
}
}
_local2++;
}
return(_global.path.saveGameMc["saveGameText" + i].text);
}
_global.saveBooton = false;
var i = 1;
while (i < 9) {
var but = ("buton" + i.toString());
_global.path.saveGameMc[but]._visible = false;
var textMes = ("saveGameText" + i.toString());
_global.path.saveGameMc[textMes]._visible = false;
so = SharedObject.getLocal("save_load" + i);
if (so.data.SaveGame.money != undefined) {
var my_date = new Date();
_global.path.saveGameMc[textMes].text = so.data.SaveGame.butonTex;
var instance;
instance = "saveGame" + i.toString();
_global.path.saveGameMc[instance].gotoAndStop(3);
_global.path.saveGameMc[instance].saveText.text = so.data.SaveGame.butonTex;
} else {
var my_date = new Date();
_global.path.saveGameMc[textMes].text = ((((my_date.getDate() + "-") + (my_date.getMonth() + 1)) + "-") + my_date.getFullYear()) + "YourName";
trace((((my_date.getDate() + "-") + (my_date.getMonth() + 1)) + "-") + my_date.getFullYear());
_global.path.saveGameMc[textMes].text = checkName(i);
}
this["saveGame" + i].index = i;
this["saveGame" + i].onPress = function () {
if (_global.saveBooton == false) {
_global.saveBooton = true;
this.gotoAndStop(2);
_global.path.saveGameMc["buton" + this.index]._visible = true;
_global.path.saveGameMc["saveGameText" + this.index]._visible = true;
}
};
this["buton" + i].index = i;
this["buton" + i].onPress = function () {
trace("_global.savegame.saveGame() " + this.index);
if (_global.path.saveGameMc["saveGameText" + this.index].text == checkName(this.index)) {
so = SharedObject.getLocal("save_load" + this.index);
_global.savegame.saveGame(this.index);
_global.path.saveGameMc["saveGame" + this.index].gotoAndStop(3);
_global.path.saveGameMc["saveGame" + this.index].saveText.text = so.data.SaveGame.butonTex;
_global.path.saveGameMc["saveGameText" + this.index]._visible = false;
_global.saveBooton = false;
this._visible = false;
}
};
i++;
}
Symbol 2963 Button
on (press) {
_global.loadFlag = false;
_global.pausePress = true;
_root.attachMovie("start_screen", "start_screen", 1);
_root.attachMovie("cursor", "cursor", 21000);
_root.cursor.cacheAsBitmap = true;
startDrag (_root.cursor, true);
Mouse.hide();
Stage.showMenu = false;
_root.stage.removeMovieClip();
_global.path.loadGameMc.removeMovieClip();
}
Symbol 2967 MovieClip [loadGameMc] Frame 1
var i = 1;
while (i < 9) {
so = SharedObject.getLocal("save_load" + i);
if (so.data.SaveGame.money != undefined) {
var instance;
instance = "loadGame" + i.toString();
_global.path.loadGameMc[instance].gotoAndStop(3);
_global.path.loadGameMc[instance].saveText.text = so.data.SaveGame.butonTex;
}
i++;
}
Instance of Symbol 2940 MovieClip "loadGame1" in Symbol 2967 MovieClip [loadGameMc] Frame 1
on (press) {
so = SharedObject.getLocal("save_load1");
if (so.data.SaveGame.money != undefined) {
trace("_global.savegame.loadGame(1);");
_global.savegame.loadGame(1);
}
}
Instance of Symbol 2940 MovieClip "loadGame2" in Symbol 2967 MovieClip [loadGameMc] Frame 1
on (press) {
so = SharedObject.getLocal("save_load2");
if (so.data.SaveGame.money != undefined) {
trace("_global.savegame.loadGame(2);");
_global.savegame.loadGame(2);
}
}
Instance of Symbol 2940 MovieClip "loadGame3" in Symbol 2967 MovieClip [loadGameMc] Frame 1
on (press) {
so = SharedObject.getLocal("save_load3");
if (so.data.SaveGame.money != undefined) {
trace("_global.savegame.loadGame(3);");
_global.savegame.loadGame(3);
}
}
Instance of Symbol 2940 MovieClip "loadGame4" in Symbol 2967 MovieClip [loadGameMc] Frame 1
on (press) {
so = SharedObject.getLocal("save_load4");
if (so.data.SaveGame.money != undefined) {
trace("_global.savegame.loadGame(4);");
_global.savegame.loadGame(4);
}
}
Instance of Symbol 2940 MovieClip "loadGame5" in Symbol 2967 MovieClip [loadGameMc] Frame 1
on (press) {
so = SharedObject.getLocal("save_load5");
if (so.data.SaveGame.money != undefined) {
_global.savegame.loadGame(5);
}
}
Instance of Symbol 2940 MovieClip "loadGame6" in Symbol 2967 MovieClip [loadGameMc] Frame 1
on (press) {
so = SharedObject.getLocal("save_load6");
if (so.data.SaveGame.money != undefined) {
_global.savegame.loadGame(6);
}
}
Instance of Symbol 2940 MovieClip "loadGame7" in Symbol 2967 MovieClip [loadGameMc] Frame 1
on (press) {
so = SharedObject.getLocal("save_load7");
if (so.data.SaveGame.money != undefined) {
_global.savegame.loadGame(7);
}
}
Instance of Symbol 2940 MovieClip "loadGame8" in Symbol 2967 MovieClip [loadGameMc] Frame 1
on (press) {
so = SharedObject.getLocal("save_load8");
if (so.data.SaveGame.money != undefined) {
_global.savegame.loadGame(8);
}
}
Symbol 2979 MovieClip Frame 1
if (_global.path.dayBabiesNum == _global.path.exitBabies) {
gotoAndStop (1);
} else if (_global.path.exitBabies == 1) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 2979 MovieClip Frame 2
stop();
Symbol 2979 MovieClip Frame 3
stop();
Symbol 2984 MovieClip [night_falls] Frame 1
_global.music[4].start();
_global.music[4].setVolume(_global.tempBarMusic);
Symbol 2984 MovieClip [night_falls] Frame 79
_global.stage.game.nightfallDayStop();
_global.music[4].stop();
if (_global.musicOff == false) {
_global.music[1].start(0, 32768);
_global.music[1].setVolume(_global.tempBarMusic);
}
if (((((((_global.path.KitchenType == 3) && (_global.path.BedroomType == 3)) && (_global.path.ReceptionsType == 3)) && (_global.path.bed.level3 == 6)) && (_global.path.chair.level3 == 4)) && (_global.path.box.level3 == 3)) && (_global.path.horse.level3 == 4)) {
_global.path.attachMovie("win_screen", "win_screen", 1, {_x:0, _y:0, _xscale:100, _yscale:100});
} else {
_global.path.dailyScreen = new utils.DalyScreen();
}
this.removeMovieClip();
stop();
Symbol 2988 MovieClip Frame 1
if (_global.path.dayBabiesNum == _global.path.exitBabies) {
gotoAndStop (1);
} else if (_global.path.exitBabies == 1) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 2988 MovieClip Frame 2
stop();
Symbol 2988 MovieClip Frame 3
stop();
Symbol 2989 MovieClip [weekend_night_falls] Frame 1
_global.music[3].start();
_global.music[3].setVolume(_global.tempBarMusic);
Symbol 2989 MovieClip [weekend_night_falls] Frame 79
_global.stage.game.nightfallWeekStop();
_global.music[3].stop();
if (_global.musicOff == false) {
_global.music[1].start(0, 32768);
_global.music[1].setVolume(_global.tempBarMusic);
}
trace("_global.dayCount " + _global.dayCount);
_global.path.attachMovie("WeekendMeny_mc", "WeekendMeny_mc", 1, {_x:0, _y:0, _xscale:100, _yscale:100});
this.removeMovieClip();
stop();
Symbol 2994 MovieClip Frame 10
stop();
Symbol 2999 MovieClip Frame 70
stop();
Symbol 3005 Button
on (press) {
getURL (_global.affiliatebutton, "_blank");
}
Symbol 3009 Button
on (press) {
getURL (_global.affiliatebutton, "_blank");
}
Symbol 3052 MovieClip Frame 27
stop();
Symbol 3053 Button
on (press) {
getURL (_global.affiliatebutton, "_blank");
}
Symbol 3057 Button
on (press) {
getURL (_global.affiliatebutton, "_blank");
}
Symbol 3060 Button
on (press) {
getURL (_global.affiliatebutton, "_blank");
}
Symbol 3061 MovieClip Frame 1
if (_global.companylogo == "MiniClip") {
gotoAndStop ("minicliplogo");
} else if (_global.companylogo == "2DPlay") {
gotoAndStop ("2dplaylogo");
} else if (_global.companylogo == "Craziness") {
gotoAndStop ("crazinesslogo");
} else if (_global.companylogo == "ArcadeTown") {
gotoAndStop ("arcadetownlogo");
} else if (_global.companylogo == "Agame") {
gotoAndStop ("agamelogo");
}
stop();
Symbol 3061 MovieClip Frame 2
stop();
Symbol 3061 MovieClip Frame 9
stop();
Symbol 3061 MovieClip Frame 16
stop();
Symbol 3061 MovieClip Frame 23
stop();
Symbol 3086 MovieClip Frame 77
stop();
Symbol 3103 MovieClip Frame 51
stop();
Symbol 3107 Button
on (press) {
if (_global.enableButtons) {
_global.sound.playSound("clickOnObject");
_root.attachMovie("sunrise_mc _tutorial", "sunrise_mc _tutorial", 16001, {_x:399.6, _y:299.8, _xscale:100, _yscale:100});
_root.start_screen.removeMovieClip();
}
}
on (rollOver) {
_root.cursor.gotoAndStop("hand");
}
on (rollOut) {
_root.cursor.gotoAndStop("arrow");
}
on (dragOut) {
_root.cursor.gotoAndStop("arrow");
}
Symbol 3112 Button
on (press) {
if (_global.enableButtons) {
_global.sound.playSound("clickOnObject");
_global.loadFlag = true;
_root.attachMovie("stage", "stage", 2);
_global.path.attachMovie("loadGameMc", "loadGameMc", 4, {_x:0, _y:0});
_root.start_screen.removeMovieClip();
trace("load game");
}
}
on (rollOver) {
_root.cursor.gotoAndStop("hand");
}
on (rollOut) {
_root.cursor.gotoAndStop("arrow");
}
on (dragOut) {
_root.cursor.gotoAndStop("arrow");
}
Symbol 3116 Button
on (press) {
if (_global.enableButtons) {
_global.sound.playSound("clickOnObject");
_root.attachMovie("instructions_clip", "instructions_clip", 2, {_x:400, _y:300});
}
}
on (rollOver) {
_root.cursor.gotoAndStop("hand");
}
on (rollOut) {
_root.cursor.gotoAndStop("arrow");
}
on (dragOut) {
_root.cursor.gotoAndStop("arrow");
}
Symbol 3120 Button
on (press) {
if (_global.enableButtons) {
_global.sound.playSound("clickOnObject");
_root.attachMovie("options", "options", 5, {_x:400, _y:300});
_global.enableButtons = false;
}
}
on (rollOver) {
_root.cursor.gotoAndStop("hand");
}
on (rollOut) {
_root.cursor.gotoAndStop("arrow");
}
on (dragOut) {
_root.cursor.gotoAndStop("arrow");
}
Symbol 3124 Button
on (press) {
getURL (_global.buygamelink, "_blank");
}
on (rollOver) {
_root.cursor.gotoAndStop("hand");
}
on (rollOut) {
_root.cursor.gotoAndStop("arrow");
}
on (dragOut) {
_root.cursor.gotoAndStop("arrow");
}
Symbol 3128 Button
on (press) {
getURL (_global.moregamelink, "_blank");
}
on (rollOver) {
_root.cursor.gotoAndStop("hand");
}
on (rollOut) {
_root.cursor.gotoAndStop("arrow");
}
on (dragOut) {
_root.cursor.gotoAndStop("arrow");
}
Symbol 3129 MovieClip Frame 1
newGame.tabEnabled = false;
loadGame.tabEnabled = false;
instruction.tabEnabled = false;
options.tabEnabled = false;
exit.tabEnabled = false;
Symbol 3134 Button
on (press) {
if ((_global.youdagames != "") && (_global.youdagames != undefined)) {
getURL (_global.youdagames, "_blank");
}
}
Symbol 3135 MovieClip Frame 46
stop();
Symbol 3136 MovieClip [start_screen] Frame 1
_global.enableButtons = true;
Symbol 3139 MovieClip Frame 17
stop();
Symbol 3141 MovieClip [popUp1] Frame 17
stop();
Symbol 3143 MovieClip [popUp50] Frame 17
stop();
Symbol 3150 MovieClip Frame 17
stop();
Symbol 3152 MovieClip [popUp3] Frame 17
stop();
Symbol 3154 MovieClip [popUp51] Frame 17
stop();
Symbol 3156 MovieClip [popUp52] Frame 17
stop();
Symbol 3158 MovieClip [popUp53] Frame 17
stop();
Symbol 3160 MovieClip [popUp54] Frame 17
stop();
Symbol 3162 MovieClip [popUp5] Frame 17
stop();
Symbol 3164 MovieClip [popUp6] Frame 17
stop();
Symbol 3166 MovieClip [popUp7] Frame 17
stop();
Symbol 3167 MovieClip Frame 17
stop();
Symbol 3169 MovieClip [popUp8] Frame 17
stop();
Symbol 3171 MovieClip [popUp9] Frame 17
stop();
Symbol 3173 MovieClip [popUp45] Frame 17
stop();
Symbol 3175 MovieClip [popUp46] Frame 17
stop();
Symbol 3177 MovieClip [popUp47] Frame 17
stop();
Symbol 3179 MovieClip [popUp48] Frame 17
stop();
Symbol 3181 MovieClip [popUp49] Frame 17
stop();
Symbol 3183 MovieClip [popUp10] Frame 17
stop();
Symbol 3185 MovieClip [popUp11] Frame 17
stop();
Symbol 3187 MovieClip [popUp44] Frame 17
stop();
Symbol 3189 MovieClip [popUp12] Frame 17
stop();
Symbol 3191 MovieClip [popUp13] Frame 17
stop();
Symbol 3193 MovieClip [popUp14] Frame 17
stop();
Symbol 3195 MovieClip [popUp15] Frame 17
stop();
Symbol 3197 MovieClip [popUp16] Frame 17
stop();
Symbol 3199 MovieClip [popUp17] Frame 17
stop();
Symbol 3201 MovieClip [popUp18] Frame 17
stop();
Symbol 3203 MovieClip [popUp23] Frame 17
stop();
Symbol 3205 MovieClip [popUp30] Frame 17
stop();
Symbol 3207 MovieClip [popUp31] Frame 17
stop();
Symbol 3209 MovieClip [popUp32] Frame 17
stop();
Symbol 3211 MovieClip [popUp33] Frame 17
stop();
Symbol 3213 MovieClip [popUp34] Frame 17
stop();
Symbol 3215 MovieClip [popUp35] Frame 17
stop();
Symbol 3217 MovieClip [popUp36] Frame 17
stop();
Symbol 3219 MovieClip [popUp37] Frame 17
stop();
Symbol 3221 MovieClip [popUp38] Frame 17
stop();
Symbol 3223 MovieClip [popUp39] Frame 17
stop();
Symbol 3225 MovieClip [popUp40] Frame 17
stop();
Symbol 3227 MovieClip [popUp41] Frame 17
stop();
Symbol 3229 MovieClip [popUp42] Frame 17
stop();
Symbol 3231 MovieClip [popUp43] Frame 17
stop();
Symbol 3233 MovieClip [popUp4] Frame 17
stop();
Symbol 3235 MovieClip [popUp2] Frame 17
stop();
Instance of Symbol 3238 MovieClip "prekidac" in Symbol 3239 MovieClip Frame 1
on (press) {
if (_global.pause == true) {
_global.pause = false;
_global.pausePress = false;
_global.path.sound.playMusic("baby_song");
_global.stage.girl.proveriBabySong();
if (_global.pauseTakeTime == true) {
var pauseTime = (getTimer() - _global.StartPauseTime);
} else {
var pauseTime = 0;
}
if ((_global.stage.game.stopFlag == false) && (_global.stage.game.babiesInRoom != undefined)) {
_global.pauseTakeTime = false;
_global.stage.game.clock = _global.stage.game.clock + pauseTime;
_global.stage.game.endDay = _global.stage.game.endDay + pauseTime;
_global.stage.game.endLeavingTime = _global.stage.game.endLeavingTime + pauseTime;
_global.stage.game.digiClockTime = _global.stage.game.digiClockTime + pauseTime;
_global.stage.game.now = _global.stage.game.now + pauseTime;
var i = 0;
while (i <= _global.stage.game.babiesInRoom) {
_global.stage.babies[i].timeUnHappy = _global.stage.babies[i].timeUnHappy + pauseTime;
_global.stage.babies[i].now = _global.stage.babies[i].now + pauseTime;
i++;
}
}
_global.path.timer.Play();
}
}
Symbol 3241 MovieClip [pause_mc] Frame 1
if (_global.stage.girl.ActionObject.ID == 5) {
mrak.prekidac._visible = false;
}
Instance of Symbol 611 MovieClip in Symbol 3243 MovieClip [end_game] Frame 1
on (release) {
_global.stage.pause_mc.attachMovie("butons", "butons", 26001, {_x:253, _y:227});
_global.stage.pause_mc.end_game._visible = false;
}
Instance of Symbol 608 MovieClip in Symbol 3243 MovieClip [end_game] Frame 1
on (release) {
_global.music[0].stop();
_global.sound = new control.SoundController();
_global.music[1].start(0, 32768);
_global.music[1].setVolume(_global.tempBarMusic);
_global.mouse.removeMouseListener();
delete _global.mouse;
_global.keyboard.removeKeyboardListener();
delete _global.keyboard;
_global.path.attachMovie("DEMO", "DEMO", 16000, {_x:0, _y:0});
_root.attachMovie("cursor", "cursor", 21000);
_root.cursor.cacheAsBitmap = true;
startDrag (_root.cursor, true);
Mouse.hide();
_root.stage.removeMovieClip();
}
Symbol 3266 MovieClip [mixer_mc3] Frame 1
stop();
Symbol 3266 MovieClip [mixer_mc3] Frame 2
this.gotoAndPlay(6);
Symbol 3266 MovieClip [mixer_mc3] Frame 26
stop();
this._parent.hasABottle = true;
_global.stage.bottle.clip = _global.stage.attachMovie(_global.stage.bottle.linkID, bottle1, _global.stage.bottle.depth, {_x:_global.stage.bottle.x, _y:_global.stage.bottle.y, _rotation:_global.stage.bottle.rot, _xscale:_global.stage.bottle.xscale, _yscale:_global.stage.bottle.yscale});
_global.stage.bottle.clip.setCoordinates(16, 9);
this.gotoAndStop("off");
Symbol 3270 MovieClip [mixer_mc] Frame 1
var i = 0;
var food = false;
stop();
Symbol 3270 MovieClip [mixer_mc] Frame 24
if (i < 6) {
i++;
gotoAndPlay ("on");
} else {
gotoAndPlay ("full");
}
Symbol 3270 MovieClip [mixer_mc] Frame 26
food = true;
stop();
Symbol 3270 MovieClip [mixer_mc] Frame 185
food = false;
stop();
Symbol 3278 MovieClip [plant] Frame 1
stop();
Symbol 3278 MovieClip [plant] Frame 2
stop();
Symbol 3280 MovieClip [room] Frame 1
#initclip 73
Object.registerClass("room", ss.Level);
#endinitclip
Symbol 3307 MovieClip [prozor1] Frame 1
stop();
Symbol 3307 MovieClip [prozor1] Frame 2
stop();
Symbol 3307 MovieClip [prozor1] Frame 3
stop();
Symbol 3307 MovieClip [prozor1] Frame 4
stop();
Symbol 3361 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
trace("sound1 " + sound1);
paused = false;
}
};
_global.path.sound.playSound("puls1");
Symbol 3363 MovieClip [hearts] Frame 1
stop();
Symbol 3363 MovieClip [hearts] Frame 100
stop();
Symbol 3363 MovieClip [hearts] Frame 101
stop();
stop();
Symbol 3370 MovieClip [srca_mc] Frame 1
stop();
Symbol 3370 MovieClip [srca_mc] Frame 100
stop();
Symbol 3382 MovieClip Frame 9
stop();
Symbol 3384 Button
on (press) {
if (!_global.path.InterimAgency_mc) {
if (_global.dsButtons) {
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[38].dettachPopUp();
_global.path.helpTips[39].dettachPopUp();
_global.sound.playSound("clickOnObject");
_global.path.attachMovie("saveGameMc", "saveGameMc", 1590, {_x:0, _y:0});
}
}
}
Symbol 3401 MovieClip Frame 1
stop();
Symbol 3401 MovieClip Frame 11
stop();
Symbol 3401 MovieClip Frame 23
stop();
Symbol 3401 MovieClip Frame 37
stop();
Symbol 3444 MovieClip Frame 9
stop();
Symbol 3445 Button
on (press) {
if (_global.dsButtons) {
if (!_global.path.saveGameMc) {
_global.sound.playSound("clickOnObject");
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[38].dettachPopUp();
_global.path.helpTips[39].dettachPopUp();
_global.path.dalyBabiesInRoom = 0;
_global.path.bonusPoints = 0;
_global.firsTimeDalyScreen = true;
_global.path.attachMovie("day", "day", 16001, {_x:399.6, _y:299.8, _xscale:100, _yscale:100});
_global.path.daly_screen.removeMovieClip();
}
}
}
Symbol 3468 MovieClip Frame 7
stop();
Symbol 3472 MovieClip Frame 1
stop();
Symbol 3472 MovieClip Frame 2
stop();
Symbol 3472 MovieClip Frame 3
stop();
Symbol 3485 MovieClip Frame 7
stop();
Symbol 3486 MovieClip Frame 1
stop();
Symbol 3486 MovieClip Frame 2
stop();
Symbol 3502 MovieClip Frame 9
stop();
Symbol 3503 Button
on (release) {
if (_global.dsButtons) {
if (!_global.path.saveGameMc) {
_global.sound.playSound("clickOnObject");
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[38].dettachPopUp();
_global.path.helpTips[39].dettachPopUp();
_global.path.attachMovie("weekendMenu", "weekendMenu", 30993, {_x:400, _y:300});
_global.dsButtons = false;
}
}
}
Symbol 3513 MovieClip [daly_screen] Frame 1
paradise.tabEnabled = false;
interim.tabEnabled = false;
save.tabEnabled = false;
manu.tabEnabled = false;
newDay.tabEnabled = false;
stop();
_global.dsButtons = true;
Instance of Symbol 3505 MovieClip in Symbol 3513 MovieClip [daly_screen] Frame 1
on (rollOver) {
if (!_global.path.saveGameMc) {
_global.path.helpTips[38].showPopUp();
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[39].dettachPopUp();
trace("zakacuvam popup9");
}
}
on (rollOut) {
_global.path.helpTips[38].dettachPopUp();
trace("trgam popup9");
}
Instance of Symbol 3507 MovieClip in Symbol 3513 MovieClip [daly_screen] Frame 1
on (press) {
if (_global.dsButtons) {
if (!_global.path.saveGameMc) {
_global.sound.playSound("clickOnObject");
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[38].dettachPopUp();
_global.path.helpTips[39].dettachPopUp();
_global.path.attachMovie("meni", "meni", 4, {_x:0, _y:0});
_global.path.daly_screen.removeMovieClip();
}
}
}
on (rollOver) {
_parent.paradise.gotoAndStop(2);
if (!_global.path.saveGameMc) {
_global.path.helpTips[36].showPopUp();
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[38].dettachPopUp();
_global.path.helpTips[39].dettachPopUp();
trace("zakacuvam popup9");
}
}
on (rollOut) {
_parent.paradise.gotoAndStop(1);
_global.path.helpTips[36].dettachPopUp();
trace("trgam popup9");
}
Instance of Symbol 3509 MovieClip in Symbol 3513 MovieClip [daly_screen] Frame 1
on (rollOver) {
if (!_global.path.saveGameMc) {
_global.path.helpTips[39].showPopUp();
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[38].dettachPopUp();
trace("zakacuvam popup9");
}
}
on (rollOut) {
_global.path.helpTips[39].dettachPopUp();
trace("trgam popup9");
}
Instance of Symbol 3511 MovieClip in Symbol 3513 MovieClip [daly_screen] Frame 1
on (rollOver) {
_parent.interim.gotoAndStop(2);
if (!_global.path.saveGameMc) {
_global.path.helpTips[9].showPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[38].dettachPopUp();
_global.path.helpTips[39].dettachPopUp();
trace("zakacuvam popup9");
}
}
on (rollOut) {
_parent.interim.gotoAndStop(1);
_global.path.helpTips[9].dettachPopUp();
trace("trgam popup9");
}
on (press) {
if (_global.dsButtons) {
if (!_global.path.saveGameMc) {
_global.sound.playSound("clickOnObject");
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[38].dettachPopUp();
_global.path.helpTips[39].dettachPopUp();
_global.path.attachMovie("InterimAgency_mc", "InterimAgency_mc", 300, {_x:0, _y:0});
_global.path.daly_screen.removeMovieClip();
}
}
}
Symbol 3529 Button
on (rollOver) {
if (this.checBox == false) {
this.gotoAndPlay(1);
}
}
on (rollOut) {
if (this.checBox == false) {
this.gotoAndPlay("end");
}
}
on (press) {
this.employ();
trace("Sega ke povikam funkcija " + this);
}
Symbol 3533 MovieClip [worker12] Frame 1
#initclip 74
Object.registerClass("worker12", utils.Worker);
#endinitclip
Symbol 3533 MovieClip [worker12] Frame 13
this.gotoAndPlay(2);
Symbol 3533 MovieClip [worker12] Frame 18
stop();
Symbol 3533 MovieClip [worker12] Frame 19
trace("SELLL");
stop();
Symbol 3533 MovieClip [worker12] Frame 20
stop();
Symbol 3544 MovieClip [worker22] Frame 1
#initclip 75
Object.registerClass("worker22", utils.Worker);
#endinitclip
Symbol 3544 MovieClip [worker22] Frame 13
this.gotoAndPlay(2);
Symbol 3544 MovieClip [worker22] Frame 18
stop();
Symbol 3544 MovieClip [worker22] Frame 19
trace("SELLL");
stop();
Symbol 3544 MovieClip [worker22] Frame 20
stop();
Symbol 3552 MovieClip [worker32] Frame 1
#initclip 76
Object.registerClass("worker32", utils.Worker);
#endinitclip
Symbol 3552 MovieClip [worker32] Frame 13
this.gotoAndPlay(2);
Symbol 3552 MovieClip [worker32] Frame 18
stop();
Symbol 3552 MovieClip [worker32] Frame 19
trace("SELLL");
stop();
Symbol 3552 MovieClip [worker32] Frame 20
stop();
Symbol 3574 Button
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay("end");
}
Symbol 3576 MovieClip Frame 5
stop();
Symbol 3576 MovieClip Frame 13
stop();
Symbol 3581 MovieClip Frame 5
stop();
Symbol 3581 MovieClip Frame 13
stop();
Symbol 3589 MovieClip Frame 1
trace("this.bar " + this.bar);
Symbol 3592 MovieClip [agencyEmployment] Frame 1
#initclip 77
Object.registerClass("agencyEmployment", utils.Employment);
#endinitclip
employ.tabEnabled = false;
finish.btn.tabEnabled = false;
finish.btn2.tabEnabled = false;
Bar.tabEnabled = false;
mark.tabEnabled = false;
employ.btn.tabEnabled = false;
employ.btn2.tabEnabled = false;
var i = 1;
while (i <= 3) {
var j = 1;
while (j <= 4) {
_global.path.agencyEmployment[("worker" + i) + j].btn.tabEnabled = false;
j++;
}
i++;
}
Instance of Symbol 3576 MovieClip "employ" in Symbol 3592 MovieClip [agencyEmployment] Frame 1
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay("end");
}
onClipEvent (load) {
this.stop();
this.swapDepths(20);
}
on (press) {
trace("pritisna na kopceto buy");
trace("_global.path.NanyType " + _global.path.NanyType);
trace("_global.path.CookType " + _global.path.CookType);
trace("_global.path.SecretaryType " + _global.path.SecretaryType);
if (_global.path.NanyType > 0) {
_global.path.agencyEmployment.worker11.reset();
_global.path.agencyEmployment.worker11.removeMovieClip();
_global.path.agencyEmployment.worker21.removeMovieClip();
_global.path.agencyEmployment.worker31.removeMovieClip();
}
if (_global.path.CookType > 0) {
_global.path.agencyEmployment.worker12.reset();
_global.path.agencyEmployment.worker12.removeMovieClip();
_global.path.agencyEmployment.worker22.removeMovieClip();
_global.path.agencyEmployment.worker32.removeMovieClip();
}
if (_global.path.SecretaryType > 0) {
_global.path.agencyEmployment.worker14.reset();
_global.path.agencyEmployment.worker14.removeMovieClip();
_global.path.agencyEmployment.worker24.removeMovieClip();
_global.path.agencyEmployment.worker34.removeMovieClip();
}
_global.path.expenseMoney = (_global.path.secretaryExpense + _global.path.cookExpense) + _global.path.babysiterExpense;
_global.path.agencyEmployment.MoneyExpend.text = _global.path.expenseMoney;
_global.path.agencyEmployment.your_money.text = _global.path.money;
}
Instance of Symbol 3581 MovieClip "finish" in Symbol 3592 MovieClip [agencyEmployment] Frame 1
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay("end");
}
onClipEvent (load) {
this.swapDepths(21);
this.stop();
}
on (press) {
_global.path.attachMovie("WeekendMeny_mc", "WeekendMeny_mc", 1, {_x:0, _y:0});
_global.path.agencyEmployment._visible = false;
}
Symbol 3601 MovieClip [worker11] Frame 1
#initclip 78
Object.registerClass("worker11", utils.Worker);
#endinitclip
Symbol 3601 MovieClip [worker11] Frame 13
this.gotoAndPlay(2);
Symbol 3601 MovieClip [worker11] Frame 18
stop();
Symbol 3601 MovieClip [worker11] Frame 19
stop();
Symbol 3601 MovieClip [worker11] Frame 20
stop();
Symbol 3609 MovieClip [worker21] Frame 1
#initclip 79
Object.registerClass("worker21", utils.Worker);
#endinitclip
Symbol 3609 MovieClip [worker21] Frame 13
this.gotoAndPlay(2);
Symbol 3609 MovieClip [worker21] Frame 18
stop();
Symbol 3609 MovieClip [worker21] Frame 19
stop();
Symbol 3609 MovieClip [worker21] Frame 20
stop();
Symbol 3617 MovieClip [worker31] Frame 1
#initclip 80
Object.registerClass("worker31", utils.Worker);
#endinitclip
Symbol 3617 MovieClip [worker31] Frame 13
this.gotoAndPlay(2);
Symbol 3617 MovieClip [worker31] Frame 18
stop();
Symbol 3617 MovieClip [worker31] Frame 19
stop();
Symbol 3617 MovieClip [worker31] Frame 20
stop();
Symbol 3626 MovieClip [worker14] Frame 1
#initclip 81
Object.registerClass("worker14", utils.Worker);
#endinitclip
Symbol 3626 MovieClip [worker14] Frame 13
this.gotoAndPlay(2);
Symbol 3626 MovieClip [worker14] Frame 18
stop();
Symbol 3626 MovieClip [worker14] Frame 19
stop();
Symbol 3626 MovieClip [worker14] Frame 20
stop();
Symbol 3634 MovieClip [worker24] Frame 1
#initclip 82
Object.registerClass("worker24", utils.Worker);
#endinitclip
Symbol 3634 MovieClip [worker24] Frame 13
this.gotoAndPlay(2);
Symbol 3634 MovieClip [worker24] Frame 17
stop();
Symbol 3634 MovieClip [worker24] Frame 18
stop();
Symbol 3634 MovieClip [worker24] Frame 19
stop();
Symbol 3642 MovieClip [worker34] Frame 1
#initclip 83
Object.registerClass("worker34", utils.Worker);
#endinitclip
Symbol 3642 MovieClip [worker34] Frame 13
this.gotoAndPlay(2);
Symbol 3642 MovieClip [worker34] Frame 17
stop();
Symbol 3642 MovieClip [worker34] Frame 18
stop();
Symbol 3642 MovieClip [worker34] Frame 19
stop();
Symbol 3669 MovieClip Frame 6
stop();
Symbol 3672 Button
on (press) {
trace("pritisna na kopceto buy");
this._parent.buyRoom();
}
Symbol 3682 MovieClip Frame 8
stop();
Symbol 3684 Button
on (press) {
_global.sound.playSound("clickOnObject");
_global.path.roomsShop_ms.setCurentFee();
_global.path.roomsShop_ms._visible = false;
if (_global.path.BedroomType > 0) {
_global.maxParm.box = 3;
_global.maxParm.bed = 6;
}
_global.path.attachMovie("WeekendMeny_mc", "WeekendMeny_mc", 1, {_x:0, _y:0});
}
Symbol 3691 MovieClip Frame 25
if (_global.path.KitchenType < 1) {
_global.path.roomsShop_ms.setMovie("kujna_1", "Kitchen", 1);
} else if (_global.path.KitchenType < 2) {
_global.path.roomsShop_ms.setMovie("kujna_2", "Kitchen", 2);
} else if (_global.path.KitchenType < 3) {
_global.path.roomsShop_ms.setMovie("kujna_3", "Kitchen", 3);
} else if (_global.path.BedroomType < 1) {
_global.path.roomsShop_ms.setMovie("spalna_1", "Bedroom", 1);
} else if (_global.path.BedroomType < 2) {
_global.path.roomsShop_ms.setMovie("spalna_2", "Bedroom", 2);
} else if (_global.path.BedroomType < 3) {
_global.path.roomsShop_ms.setMovie("spalna_3", "Bedroom", 3);
} else if (_global.path.ReceptionsType < 1) {
_global.path.roomsShop_ms.setMovie("recepcija_1", "Receptions", 1);
} else if (_global.path.ReceptionsType < 2) {
_global.path.roomsShop_ms.setMovie("recepcija_2", "Receptions", 2);
} else if (_global.path.ReceptionsType < 3) {
_global.path.roomsShop_ms.setMovie("recepcija_3", "Receptions", 3);
}
Symbol 3691 MovieClip Frame 50
_global.path.roomsShop_ms.popUPSamoprajs._visible = true;
_global.path.roomsShop_ms.popUPSamoprajs.gotoAndPlay("pokazi");
stop();
Symbol 3704 Button
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay("end");
}
Symbol 3705 MovieClip Frame 5
stop();
Symbol 3705 MovieClip Frame 8
stop();
Symbol 3722 Button
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay("end");
}
Symbol 3723 MovieClip Frame 5
stop();
Symbol 3723 MovieClip Frame 8
stop();
Symbol 3726 MovieClip Frame 5
stop();
Symbol 3726 MovieClip Frame 8
stop();
Symbol 3729 MovieClip Frame 5
stop();
Symbol 3729 MovieClip Frame 8
stop();
Symbol 3732 MovieClip Frame 5
stop();
Symbol 3732 MovieClip Frame 8
stop();
Symbol 3735 MovieClip Frame 5
stop();
Symbol 3735 MovieClip Frame 8
stop();
Symbol 3738 MovieClip Frame 5
stop();
Symbol 3738 MovieClip Frame 8
stop();
Symbol 3741 MovieClip Frame 5
stop();
Symbol 3741 MovieClip Frame 8
stop();
Symbol 3744 MovieClip Frame 5
stop();
Symbol 3744 MovieClip Frame 8
stop();
Symbol 3749 MovieClip Frame 1
var pres_h;
this.pres_h.text = "(Press 'H' to toggle the help)";
Symbol 3750 MovieClip Frame 11
stop();
trace("BBBBBBBBBB");
Symbol 3750 MovieClip Frame 21
stop();
trace("AAAAAAAAAAAAAAAAAAAAAAAAa");
Instance of Symbol 3768 MovieClip in Symbol 3769 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(13);
this.stop();
}
Symbol 3770 MovieClip [roomsShop_ms] Frame 1
#initclip 84
Object.registerClass("roomsShop_ms", utils.RoomsShop);
#endinitclip
popUPSamoprajs._visible = false;
if (_global.path.frstWeeked) {
_global.path.tutorialFlag = true;
_global.path.frstWeeked = false;
}
buy.swapDepths(21);
finish.swapDepths(22);
buy.buy.tabEnabled = false;
finish.finish.tabEnabled = false;
enter_btn.tabEnabled = false;
var i = 1;
while (i <= 9) {
btn.tabEnabled = false;
tabEnabled = false;
i++;
}
if (_global.path.ReceptionsType == 3) {
book7._visible = false;
book8._visible = false;
book9._visible = false;
} else if (_global.path.ReceptionsType == 2) {
book7._visible = false;
book8._visible = false;
} else if (_global.path.ReceptionsType == 1) {
book7._visible = false;
}
if (_global.path.BedroomType == 3) {
book4._visible = false;
book5._visible = false;
book6._visible = false;
} else if (_global.path.BedroomType == 2) {
book4._visible = false;
book5._visible = false;
} else if (_global.path.BedroomType == 1) {
book4._visible = false;
}
if (_global.path.KitchenType == 3) {
book3._visible = false;
book2._visible = false;
book1._visible = false;
} else if (_global.path.KitchenType == 2) {
book2._visible = false;
book1._visible = false;
} else if (_global.path.KitchenType == 1) {
book1._visible = false;
}
book1.btn.tabEnabled = false;
book1.btn2.tabEnabled = false;
if (_global.path.tutorialFlag == false) {
popUPSamoprajs._visible = false;
}
Instance of Symbol 3673 MovieClip "buy" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
/* no clip actions */
Instance of Symbol 3685 MovieClip "finish" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
/* no clip actions */
Instance of Symbol 3691 MovieClip "roletna" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
onClipEvent (load) {
this.stop();
}
onClipEvent (load) {
this.stop();
this.swapDepths(50);
}
Instance of Symbol 3696 MovieClip "enter_btn" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
onClipEvent (load) {
this.stop();
this.swapDepths(51);
}
on (press) {
_global.path.roomsShop_ms.roletna.play();
_global.path.sound.playSound("garage_door");
this._alpha = 0;
this.removeMovieClip();
}
Instance of Symbol 3699 MovieClip in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
onClipEvent (load) {
this.swapDepths(13);
this.stop();
}
Instance of Symbol 3705 MovieClip "book9" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
/* no clip actions */
Instance of Symbol 3711 MovieClip in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
onClipEvent (load) {
this.swapDepths(58);
this.stop();
}
Instance of Symbol 3715 MovieClip in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
onClipEvent (load) {
this.swapDepths(56);
this.stop();
}
Instance of Symbol 3719 MovieClip in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
onClipEvent (load) {
this.swapDepths(57);
this.stop();
}
Instance of Symbol 3723 MovieClip "book4" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
/* no clip actions */
Instance of Symbol 3726 MovieClip "book5" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
/* no clip actions */
Instance of Symbol 3729 MovieClip "book6" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
/* no clip actions */
Instance of Symbol 3732 MovieClip "book8" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
/* no clip actions */
Instance of Symbol 3735 MovieClip "book7" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
/* no clip actions */
Instance of Symbol 3738 MovieClip "book1" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
onClipEvent (load) {
this.stop();
}
on (rollOver) {
_global.sound.playSound("book_slideIn");
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "Serving food has never been easier. The cook you employ will serve the babies automatically";
this.gotoAndPlay(1);
if (_global.path.money < _global.path.bill) {
_parent.popUPSamoprajs.movie.popUpText.text = "The bill for the selected room is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The social rating and the current fee can be boosted here and you can even make your job easier";
if (_global.path.money < _global.path.bill) {
_parent.popUPSamoprajs.movie.popUpText.text = "The bill for the selected room is too high";
}
}
on (rollOut) {
_global.sound.playSound("book_slideOut");
this.gotoAndPlay("end");
}
on (press) {
trace("set Movie " + this._parent);
this._parent.setMovie("kujna_1", "Kitchen", 1);
}
Instance of Symbol 3741 MovieClip "book2" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
/* no clip actions */
Instance of Symbol 3744 MovieClip "book3" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
/* no clip actions */
Instance of Symbol 3750 MovieClip "popUPSamoprajs" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
onClipEvent (load) {
this.swapDepths(55);
}
Instance of Symbol 3769 MovieClip "tekstovi" in Symbol 3770 MovieClip [roomsShop_ms] Frame 1
onClipEvent (load) {
this.swapDepths(14);
this.stop();
}
Symbol 3822 Button
on (press) {
if (!_global.path.InterimAgency_mc) {
if (_global.wsButtons) {
_global.path.helpTips[37].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[35].dettachPopUp();
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[19].dettachPopUp();
_global.sound.playSound("clickOnObject");
_global.path.attachMovie("saveGameMc", "saveGameMc", 1590, {_x:0, _y:0});
}
}
}
Symbol 3847 MovieClip Frame 7
stop();
Symbol 3851 MovieClip Frame 1
stop();
Symbol 3851 MovieClip Frame 2
stop();
Symbol 3851 MovieClip Frame 3
stop();
Symbol 3851 MovieClip Frame 4
stop();
Symbol 3859 MovieClip Frame 7
stop();
Symbol 3862 MovieClip Frame 1
stop();
Symbol 3862 MovieClip Frame 2
stop();
Symbol 3862 MovieClip Frame 3
stop();
Symbol 3867 MovieClip Frame 9
stop();
Symbol 3868 Button
on (press) {
if (!_global.path.saveGameMc) {
if (_global.wsButtons) {
_global.sound.playSound("clickOnObject");
var permision;
permision = true;
if (_global.path.KitchenType > 0) {
if (_global.path.CookType == 0) {
permision = false;
}
}
if (_global.path.BedroomType > 0) {
if (_global.path.NanyType == 0) {
permision = false;
}
}
if (_global.path.ReceptionsType > 0) {
if (_global.path.SecretaryType == 0) {
permision = false;
}
}
if (permision) {
_global.path.helpTips[37].dettachPopUp();
_global.path.helpTips[37].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[35].dettachPopUp();
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[19].dettachPopUp();
_global.path.dalyBabiesInRoom = 0;
_global.path.attachMovie("weekend_sunrise_mc", "weekend_sunrise_mc", 16001, {_x:399.6, _y:299.8, _xscale:100, _yscale:100});
_global.path.roomsShop_ms.removeMovieClip();
_global.path.agencyEmployment.removeMovieClip();
_global.path.meni.removeMovieClip();
_global.path.fixedCostNum = 50;
_global.path.roomFlag = false;
_global.path.empFlag = false;
_global.path.fixedCostNum = 0;
_global.path.bonusPoints = 0;
_global.path.socialRating = 0;
_global.firsTimeDalyScreen = true;
_global.path._global.path.WeekendMeny_mc.removeMovieClip();
} else {
_global.path.helpTips[19].showPopUp();
}
}
}
}
Symbol 3871 MovieClip Frame 9
stop();
Symbol 3872 Button
on (press) {
if (!_global.path.saveGameMc) {
if (_global.wsButtons) {
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[35].dettachPopUp();
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[19].dettachPopUp();
_global.sound.playSound("clickOnObject");
_global.path.attachMovie("weekendMenu", "weekendMenu", 30993, {_x:400, _y:300});
_global.wsButtons = false;
}
}
}
Symbol 3881 MovieClip [WeekendMeny_mc] Frame 1
#initclip 85
Object.registerClass("WeekendMeny_mc", utils.WeekendScreen);
#endinitclip
_global.wsButtons = true;
paradise.tabEnabled = false;
interim.tabEnabled = false;
save.tabEnabled = false;
manu.tabEnabled = false;
newDay.tabEnabled = false;
job.tabEnabled = false;
real.tabEnabled = false;
Instance of Symbol 3505 MovieClip in Symbol 3881 MovieClip [WeekendMeny_mc] Frame 1
on (rollOver) {
_parent.real.gotoAndStop(2);
if (!_global.path.saveGameMc) {
_global.path.helpTips[35].showPopUp();
_global.path.helpTips[37].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[19].dettachPopUp();
}
}
on (rollOut) {
_global.path.helpTips[35].dettachPopUp();
trace("trgam popup9");
_parent.real.gotoAndStop(1);
}
on (press) {
if (!_global.path.saveGameMc) {
if (_global.wsButtons) {
_global.sound.playSound("clickOnObject");
trace("_global.path.empFlag=" + _global.path.empFlag);
if (!_global.path.roomFlag) {
_global.path.helpTips[37].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[35].dettachPopUp();
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[19].dettachPopUp();
_global.path.attachMovie("roomsShop_ms", "roomsShop_ms", 3, {_x:0, _y:0});
_global.path.WeekendMeny_mc.removeMovieClip();
}
if (_global.path.roomFlag) {
_global.path.helpTips[37].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[35].dettachPopUp();
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[19].dettachPopUp();
_global.path.roomsShop_ms._visible = true;
_global.path.roomsShop_ms.tekstovi.BankBalance.text = _global.path.money;
_global.path.roomsShop_ms.tekstovi.MoneySpend.text = _global.path.bill;
_global.path.roomsShop_ms.tekstovi.curentFee.text = _global.path.curentFee;
_global.path.roomsShop_ms.tekstovi.NewFee.text = "";
_global.path.NewSocialRating;
_global.path.roomsShop_ms.typeOfRoom = undefined;
_global.path.WeekendMeny_mc.removeMovieClip();
}
}
}
}
Instance of Symbol 3507 MovieClip in Symbol 3881 MovieClip [WeekendMeny_mc] Frame 1
on (rollOver) {
_parent.paradise.gotoAndStop(2);
if (!_global.path.saveGameMc) {
_global.path.helpTips[36].showPopUp();
_global.path.helpTips[37].dettachPopUp();
_global.path.helpTips[35].dettachPopUp();
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[19].dettachPopUp();
trace(_parent.paradise);
}
}
on (rollOut) {
_global.path.helpTips[36].dettachPopUp();
trace("trgam popup9");
_parent.paradise.gotoAndStop(1);
}
on (press) {
if (_global.wsButtons) {
if (!_global.path.saveGameMc) {
_global.sound.playSound("clickOnObject");
_global.path.helpTips[37].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[35].dettachPopUp();
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[19].dettachPopUp();
_global.path.attachMovie("meni", "meni", 4, {_x:0, _y:0});
_global.path.WeekendMeny_mc.removeMovieClip();
}
}
}
Instance of Symbol 3509 MovieClip in Symbol 3881 MovieClip [WeekendMeny_mc] Frame 1
on (rollOver) {
_parent.job.gotoAndStop(2);
if (!_global.path.saveGameMc) {
_global.path.helpTips[37].showPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[35].dettachPopUp();
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[19].dettachPopUp();
}
}
on (rollOut) {
_global.path.helpTips[37].dettachPopUp();
trace("trgam popup9");
_parent.job.gotoAndStop(1);
}
on (press) {
if (!_global.path.saveGameMc) {
_global.path.helpTips[37].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[35].dettachPopUp();
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[19].dettachPopUp();
if (_global.wsButtons) {
_global.sound.playSound("clickOnObject");
trace("_global.path.empFlag=" + _global.path.empFlag);
if (!_global.path.empFlag) {
_global.path.attachMovie("agencyEmployment", "agencyEmployment", 2, {_x:0, _y:0});
}
if (_global.path.empFlag) {
_global.path.agencyEmployment._visible = true;
_global.path.WeekendMeny_mc.removeMovieClip();
}
}
}
}
Instance of Symbol 3511 MovieClip in Symbol 3881 MovieClip [WeekendMeny_mc] Frame 1
on (rollOver) {
_parent.interim.gotoAndStop(2);
if (!_global.path.saveGameMc) {
_global.path.helpTips[9].showPopUp();
_global.path.helpTips[37].dettachPopUp();
_global.path.helpTips[36].dettachPopUp();
_global.path.helpTips[35].dettachPopUp();
_global.path.helpTips[19].dettachPopUp();
}
}
on (rollOut) {
_global.path.helpTips[9].dettachPopUp();
trace("trgam popup9");
_parent.interim.gotoAndStop(1);
}
on (press) {
if (!_global.path.saveGameMc) {
if (_global.wsButtons) {
_global.sound.playSound("clickOnObject");
_global.path.helpTips[47].dettachPopUp();
_global.path.helpTips[46].dettachPopUp();
_global.path.helpTips[45].dettachPopUp();
_global.path.helpTips[9].dettachPopUp();
_global.path.helpTips[19].dettachPopUp();
_global.path.attachMovie("InterimAgency_mc", "InterimAgency_mc", 300, {_x:0, _y:0});
_global.path.WeekendMeny_mc.removeMovieClip();
}
}
}
Symbol 3885 MovieClip [chairMask1] Frame 1
stop();
Symbol 3885 MovieClip [chairMask1] Frame 2
stop();
Symbol 3885 MovieClip [chairMask1] Frame 3
stop();
Symbol 3889 MovieClip [chairMask2] Frame 1
stop();
Symbol 3889 MovieClip [chairMask2] Frame 2
stop();
Symbol 3889 MovieClip [chairMask2] Frame 3
stop();
Symbol 3893 MovieClip [chairMask3] Frame 1
stop();
Symbol 3893 MovieClip [chairMask3] Frame 2
stop();
Symbol 3893 MovieClip [chairMask3] Frame 3
stop();
Symbol 3897 MovieClip [chairMask4] Frame 1
stop();
Symbol 3897 MovieClip [chairMask4] Frame 2
stop();
Symbol 3897 MovieClip [chairMask4] Frame 3
stop();
Symbol 3904 MovieClip [chair1] Frame 1
stop();
Symbol 3904 MovieClip [chair1] Frame 2
stop();
Symbol 3904 MovieClip [chair1] Frame 3
stop();
Symbol 3907 MovieClip [chair2] Frame 1
stop();
Symbol 3907 MovieClip [chair2] Frame 2
stop();
Symbol 3907 MovieClip [chair2] Frame 3
stop();
Symbol 3911 MovieClip [chair3] Frame 1
stop();
Symbol 3911 MovieClip [chair3] Frame 2
stop();
Symbol 3911 MovieClip [chair3] Frame 3
stop();
Symbol 3914 MovieClip [chair4] Frame 1
stop();
Symbol 3914 MovieClip [chair4] Frame 2
stop();
Symbol 3914 MovieClip [chair4] Frame 3
stop();
Symbol 3926 MovieClip Frame 4
stop();
Symbol 3939 MovieClip Frame 60
stop();
Symbol 3940 MovieClip Frame 1
stop();
Symbol 3940 MovieClip Frame 2
stop();
Symbol 3940 MovieClip Frame 3
stop();
Symbol 3940 MovieClip Frame 4
stop();
Symbol 3958 MovieClip Frame 60
stop();
Symbol 3959 MovieClip Frame 1
stop();
stop();
Symbol 3959 MovieClip Frame 2
stop();
Symbol 3959 MovieClip Frame 3
stop();
Symbol 3959 MovieClip Frame 4
stop();
Symbol 3959 MovieClip Frame 5
stop();
Symbol 3959 MovieClip Frame 6
stop();
Symbol 3966 MovieClip Frame 10
stop();
Symbol 3968 Button
on (press) {
_global.sound.playSound("clickOnObject");
buy();
}
Symbol 3985 MovieClip Frame 60
stop();
Symbol 3986 MovieClip Frame 1
stop();
stop();
Symbol 3986 MovieClip Frame 2
stop();
Symbol 3986 MovieClip Frame 3
stop();
Symbol 3986 MovieClip Frame 4
stop();
Symbol 3986 MovieClip Frame 5
stop();
Symbol 3986 MovieClip Frame 6
stop();
Symbol 3986 MovieClip Frame 7
stop();
Symbol 4020 MovieClip Frame 2
_global.sound.playSound("pen_scribble");
Symbol 4020 MovieClip Frame 24
_global.sound.stopSound("pen_scribble");
stop();
Symbol 4020 MovieClip Frame 25
_global.sound.playSound("pen_scribble");
Symbol 4020 MovieClip Frame 48
_global.sound.stopSound("pen_scribble");
stop();
Symbol 4035 MovieClip Frame 60
stop();
Symbol 4037 MovieClip Frame 1
stop();
Symbol 4037 MovieClip Frame 2
stop();
Symbol 4037 MovieClip Frame 3
stop();
Symbol 4037 MovieClip Frame 4
stop();
Symbol 4037 MovieClip Frame 5
stop();
Symbol 4058 MovieClip Frame 8
stop();
Symbol 4061 Button
on (press) {
_global.sound.playSound("clickOnObject");
_global.path.helpTips[10].dettachPopUp();
_global.game.bill = 0;
_global.path.bill = 0;
if ((_global.dayCount % 5) == 0) {
trace("vieknd");
_global.path.attachMovie("WeekendMeny_mc", "WeekendMeny_mc", 1, {_x:0, _y:0});
} else {
_global.path.dailyScreen = new utils.DalyScreen();
}
_global.path.InterimAgency_mc.removeMovieClip();
}
Symbol 4065 MovieClip [InterimAgency_mc] Frame 1
#initclip 86
Object.registerClass("InterimAgency_mc", utils.Interim);
#endinitclip
var nany_select;
var clovn_select;
nany_select._visible = false;
clovn_select._visible = false;
stop();
assistant_nanny.tabEnabled = false;
cook_assistent.tabEnabled = false;
Assistant_Babysitter.tabEnabled = false;
kown.tabEnabled = false;
employ_btn.tabEnabled = false;
finishBtn.tabEnabled = false;
Instance of Symbol 3940 MovieClip "assistant_nanny" in Symbol 4065 MovieClip [InterimAgency_mc] Frame 1
on (press) {
_global.sound.playSound("clickOnObject");
trace(this._parent.nany_state);
if (this._parent.nany_state <= 2) {
if ((((_global.path.money - _global.path.bill) - 100) < 0) && (this._parent.Nany != true)) {
gotoAndStop ("no_money");
popUPNany.gotoAndPlay(1);
} else {
_parent.Employ(1);
}
}
}
on (rollOver) {
if (this._currentframe == 1) {
this.gotoAndStop("forSalePopUp");
trace("ROLLOver");
}
}
on (rollOut) {
if (this._currentframe == 4) {
this.gotoAndStop(1);
trace("ROLLOUT");
}
}
Instance of Symbol 3959 MovieClip "cook_assistent" in Symbol 4065 MovieClip [InterimAgency_mc] Frame 1
on (press) {
_global.sound.playSound("clickOnObject");
if (_global.path.CookType > 0) {
trace(this._parent.cook_state);
if (this._parent.cook_state <= 2) {
if ((((_global.path.money - _global.path.bill) - 100) < 0) && (this._parent.Cook != true)) {
gotoAndStop ("no_money");
popUp.gotoAndPlay(1);
} else {
_parent.Employ(4);
}
}
} else {
gotoAndStop ("noCook");
}
}
on (rollOver) {
if (this._currentframe == 1) {
this.gotoAndStop("forSalePopUp");
trace("ROLLOver");
}
}
on (rollOut) {
if (this._currentframe == 4) {
this.gotoAndStop(1);
trace("ROLLOUT");
}
}
Instance of Symbol 3986 MovieClip "Assistant_Babysitter" in Symbol 4065 MovieClip [InterimAgency_mc] Frame 1
on (press) {
_global.sound.playSound("clickOnObject");
if (_global.path.NanyType > 0) {
trace(this._parent.babysitter_state);
if (this._parent.babysitter_state <= 2) {
if ((((_global.path.money - _global.path.bill) - 100) < 0) && (this._parent.Bebysiter != true)) {
gotoAndStop ("no_money");
popUp.gotoAndPlay(1);
} else {
_parent.Employ(3);
}
}
} else {
gotoAndStop ("noBabysiter");
}
}
on (rollOver) {
if (this._currentframe == 1) {
this.gotoAndStop("forSalePopUp");
}
}
on (rollOut) {
if (this._currentframe == 4) {
this.gotoAndStop(1);
}
}
Instance of Symbol 4037 MovieClip "kown" in Symbol 4065 MovieClip [InterimAgency_mc] Frame 1
on (press) {
_global.sound.playSound("clickOnObject");
trace(this._parent.clown_state);
if (this._parent.clown_state <= 2) {
if ((((_global.path.money - _global.path.bill) - 100) < 0) && (this._parent.Clown != true)) {
gotoAndStop ("no_money");
popUPClown.gotoAndPlay(1);
} else {
_parent.Employ(2);
}
}
}
on (rollOver) {
if (this._currentframe == 1) {
this.gotoAndStop("forSalePopUp");
}
}
on (rollOut) {
if (this._currentframe == 4) {
this.gotoAndStop(1);
}
}
Symbol 4114 MovieClip Frame 1
if (_global.stage.girl.ActionObject.ID == _global.stage.chair[1].ID) {
_global.stage.girl.clip.swapDepths(17800);
}
Symbol 4114 MovieClip Frame 190
this.gotoAndPlay(109);
Symbol 4120 MovieClip Frame 1
if ((_global.stage.girl.Baby.flagMama == true) || (_global.stage.girl.Baby.flagForHome)) {
gotoAndStop ("mama");
}
Symbol 4120 MovieClip Frame 4
gotoAndPlay (1);
Symbol 4120 MovieClip Frame 5
stop();
Symbol 4145 MovieClip Frame 1
stop();
Symbol 4145 MovieClip Frame 7
stop();
Symbol 4145 MovieClip Frame 14
stop();
Symbol 4145 MovieClip Frame 21
stop();
Symbol 4145 MovieClip Frame 28
stop();
Symbol 4145 MovieClip Frame 35
stop();
Symbol 4145 MovieClip Frame 42
stop();
Symbol 4145 MovieClip Frame 49
stop();
Symbol 4145 MovieClip Frame 56
stop();
Symbol 4145 MovieClip Frame 63
stop();
Symbol 4145 MovieClip Frame 70
stop();
Symbol 4145 MovieClip Frame 77
stop();
Symbol 4145 MovieClip Frame 84
stop();
Symbol 4145 MovieClip Frame 91
stop();
Symbol 4145 MovieClip Frame 97
stop();
Symbol 4145 MovieClip Frame 103
stop();
Symbol 4145 MovieClip Frame 109
stop();
Symbol 4145 MovieClip Frame 115
stop();
Symbol 4145 MovieClip Frame 121
stop();
Symbol 4145 MovieClip Frame 127
stop();
Symbol 4145 MovieClip Frame 133
stop();
Symbol 4145 MovieClip Frame 139
stop();
Symbol 4145 MovieClip Frame 145
stop();
Symbol 4145 MovieClip Frame 151
stop();
Symbol 4145 MovieClip Frame 157
stop();
Symbol 4145 MovieClip Frame 163
stop();
Symbol 4145 MovieClip Frame 170
stop();
Symbol 4145 MovieClip Frame 176
stop();
Symbol 4145 MovieClip Frame 182
stop();
Symbol 4145 MovieClip Frame 189
stop();
Symbol 4145 MovieClip Frame 196
stop();
Symbol 4145 MovieClip Frame 203
stop();
Symbol 4220 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4231 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4255 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("diperShanging");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
_global.stage.game.playDiperSound();
Symbol 4255 MovieClip Frame 32
_global.stage.game.stopDiperSound();
_global.soundFlag = true;
Symbol 4255 MovieClip Frame 47
_global.stage.game.playBathSound();
sound = _global.path.sound.getSound("babyBath");
sound1 = _global.path.sound.getSound("bathWaterShort");
Symbol 4255 MovieClip Frame 68
_global.stage.game.stopBathSound();
_global.soundFlag1 = true;
Symbol 4255 MovieClip Frame 77
_global.stage.game.playDiperSound();
Symbol 4255 MovieClip Frame 95
_global.soundFlag = true;
_global.stage.game.stopDiperSound();
Symbol 4255 MovieClip Frame 96
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
_global.stage.game.stopDiperSound();
delete this.onEnterFrame;
stop();
Symbol 4262 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("diperShanging");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
_global.stage.game.playDiperSound();
Symbol 4262 MovieClip Frame 32
_global.stage.game.stopDiperSound();
_global.soundFlag = true;
Symbol 4262 MovieClip Frame 47
_global.stage.game.playBathSound();
sound = _global.path.sound.getSound("babyBath");
sound1 = _global.path.sound.getSound("bathWaterShort");
Symbol 4262 MovieClip Frame 68
_global.stage.game.stopBathSound();
_global.soundFlag1 = true;
Symbol 4262 MovieClip Frame 77
_global.stage.game.playDiperSound();
Symbol 4262 MovieClip Frame 95
_global.soundFlag = true;
_global.stage.game.stopDiperSound();
Symbol 4262 MovieClip Frame 96
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
_global.stage.game.stopDiperSound();
delete this.onEnterFrame;
stop();
Symbol 4266 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("diperShanging");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
_global.stage.game.playDiperSound();
Symbol 4266 MovieClip Frame 32
_global.stage.game.stopDiperSound();
_global.soundFlag = true;
Symbol 4266 MovieClip Frame 47
_global.stage.game.playBathSound();
sound = _global.path.sound.getSound("babyBath");
sound1 = _global.path.sound.getSound("bathWaterShort");
Symbol 4266 MovieClip Frame 68
_global.stage.game.stopBathSound();
_global.soundFlag1 = true;
Symbol 4266 MovieClip Frame 77
_global.stage.game.playDiperSound();
Symbol 4266 MovieClip Frame 95
_global.soundFlag = true;
_global.stage.game.stopDiperSound();
Symbol 4266 MovieClip Frame 96
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
_global.stage.game.stopDiperSound();
delete this.onEnterFrame;
stop();
Symbol 4273 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("diperShanging");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
_global.stage.game.playDiperSound();
Symbol 4273 MovieClip Frame 32
_global.stage.game.stopDiperSound();
_global.soundFlag = true;
Symbol 4273 MovieClip Frame 47
_global.stage.game.playBathSound();
sound = _global.path.sound.getSound("babyBath");
sound1 = _global.path.sound.getSound("bathWaterShort");
Symbol 4273 MovieClip Frame 68
_global.stage.game.stopBathSound();
_global.soundFlag1 = true;
Symbol 4273 MovieClip Frame 77
_global.stage.game.playDiperSound();
Symbol 4273 MovieClip Frame 95
_global.soundFlag = true;
_global.stage.game.stopDiperSound();
Symbol 4273 MovieClip Frame 96
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
_global.stage.game.stopDiperSound();
delete this.onEnterFrame;
stop();
Symbol 4276 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("diperShanging");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
_global.stage.game.playDiperSound();
Symbol 4276 MovieClip Frame 32
_global.stage.game.stopDiperSound();
_global.soundFlag = true;
Symbol 4276 MovieClip Frame 47
_global.stage.game.playBathSound();
sound = _global.path.sound.getSound("babyBath");
sound1 = _global.path.sound.getSound("bathWaterShort");
Symbol 4276 MovieClip Frame 68
_global.stage.game.stopBathSound();
_global.soundFlag1 = true;
Symbol 4276 MovieClip Frame 77
_global.stage.game.playDiperSound();
Symbol 4276 MovieClip Frame 95
_global.soundFlag = true;
_global.stage.game.stopDiperSound();
Symbol 4276 MovieClip Frame 96
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
_global.stage.game.stopDiperSound();
delete this.onEnterFrame;
stop();
Symbol 4279 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("diperShanging");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
_global.stage.game.playDiperSound();
Symbol 4279 MovieClip Frame 32
_global.stage.game.stopDiperSound();
_global.soundFlag = true;
Symbol 4279 MovieClip Frame 47
_global.stage.game.playBathSound();
sound = _global.path.sound.getSound("babyBath");
sound1 = _global.path.sound.getSound("bathWaterShort");
Symbol 4279 MovieClip Frame 68
_global.stage.game.stopBathSound();
_global.soundFlag1 = true;
Symbol 4279 MovieClip Frame 77
_global.stage.game.playDiperSound();
Symbol 4279 MovieClip Frame 95
_global.soundFlag = true;
_global.stage.game.stopDiperSound();
Symbol 4279 MovieClip Frame 96
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
_global.stage.game.stopDiperSound();
delete this.onEnterFrame;
stop();
Symbol 4282 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("diperShanging");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
_global.stage.game.playDiperSound();
Symbol 4282 MovieClip Frame 32
_global.stage.game.stopDiperSound();
_global.soundFlag = true;
Symbol 4282 MovieClip Frame 47
_global.stage.game.playBathSound();
sound = _global.path.sound.getSound("babyBath");
sound1 = _global.path.sound.getSound("bathWaterShort");
Symbol 4282 MovieClip Frame 68
_global.stage.game.stopBathSound();
_global.soundFlag1 = true;
Symbol 4282 MovieClip Frame 77
_global.stage.game.playDiperSound();
Symbol 4282 MovieClip Frame 95
_global.soundFlag = true;
_global.stage.game.stopDiperSound();
Symbol 4282 MovieClip Frame 96
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
_global.stage.game.stopDiperSound();
delete this.onEnterFrame;
stop();
Symbol 4286 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("diperShanging");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
_global.stage.game.playDiperSound();
Symbol 4286 MovieClip Frame 32
_global.stage.game.stopDiperSound();
_global.soundFlag = true;
Symbol 4286 MovieClip Frame 47
_global.stage.game.playBathSound();
sound = _global.path.sound.getSound("babyBath");
sound1 = _global.path.sound.getSound("bathWaterShort");
Symbol 4286 MovieClip Frame 68
_global.stage.game.stopBathSound();
_global.soundFlag1 = true;
Symbol 4286 MovieClip Frame 77
_global.stage.game.playDiperSound();
Symbol 4286 MovieClip Frame 95
_global.soundFlag = true;
_global.stage.game.stopDiperSound();
Symbol 4286 MovieClip Frame 96
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
_global.stage.game.stopDiperSound();
delete this.onEnterFrame;
stop();
Symbol 4289 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("diperShanging");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
_global.stage.game.playDiperSound();
Symbol 4289 MovieClip Frame 32
_global.stage.game.stopDiperSound();
_global.soundFlag = true;
Symbol 4289 MovieClip Frame 47
_global.stage.game.playBathSound();
sound = _global.path.sound.getSound("babyBath");
sound1 = _global.path.sound.getSound("bathWaterShort");
Symbol 4289 MovieClip Frame 68
_global.stage.game.stopBathSound();
_global.soundFlag1 = true;
Symbol 4289 MovieClip Frame 77
_global.stage.game.playDiperSound();
Symbol 4289 MovieClip Frame 95
_global.soundFlag = true;
_global.stage.game.stopDiperSound();
Symbol 4289 MovieClip Frame 96
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
_global.stage.game.stopDiperSound();
delete this.onEnterFrame;
stop();
Symbol 4292 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("diperShanging");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
_global.stage.game.playDiperSound();
Symbol 4292 MovieClip Frame 32
_global.stage.game.stopDiperSound();
_global.soundFlag = true;
Symbol 4292 MovieClip Frame 47
_global.stage.game.playBathSound();
sound = _global.path.sound.getSound("babyBath");
sound1 = _global.path.sound.getSound("bathWaterShort");
Symbol 4292 MovieClip Frame 68
_global.stage.game.stopBathSound();
_global.soundFlag1 = true;
Symbol 4292 MovieClip Frame 77
_global.stage.game.playDiperSound();
Symbol 4292 MovieClip Frame 95
_global.soundFlag = true;
_global.stage.game.stopDiperSound();
Symbol 4292 MovieClip Frame 96
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
_global.stage.game.stopDiperSound();
delete this.onEnterFrame;
stop();
Symbol 4296 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("diperShanging");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
_global.stage.game.playDiperSound();
Symbol 4296 MovieClip Frame 32
_global.stage.game.stopDiperSound();
_global.soundFlag = true;
Symbol 4296 MovieClip Frame 47
_global.stage.game.playBathSound();
sound = _global.path.sound.getSound("babyBath");
sound1 = _global.path.sound.getSound("bathWaterShort");
Symbol 4296 MovieClip Frame 68
_global.stage.game.stopBathSound();
_global.soundFlag1 = true;
Symbol 4296 MovieClip Frame 77
_global.stage.game.playDiperSound();
Symbol 4296 MovieClip Frame 95
_global.soundFlag = true;
_global.stage.game.stopDiperSound();
Symbol 4296 MovieClip Frame 96
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
_global.stage.game.stopDiperSound();
delete this.onEnterFrame;
stop();
Symbol 4300 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("diperShanging");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(csoundTime / 1000);
}
paused = false;
}
};
_global.stage.game.playDiperSound();
Symbol 4300 MovieClip Frame 32
_global.stage.game.stopDiperSound();
_global.soundFlag = true;
Symbol 4300 MovieClip Frame 47
_global.stage.game.playBathSound();
sound = _global.path.sound.getSound("babyBath");
sound1 = _global.path.sound.getSound("bathWaterShort");
Symbol 4300 MovieClip Frame 68
_global.stage.game.stopBathSound();
_global.soundFlag1 = true;
Symbol 4300 MovieClip Frame 77
_global.stage.game.playDiperSound();
Symbol 4300 MovieClip Frame 95
_global.soundFlag = true;
_global.stage.game.stopDiperSound();
Symbol 4300 MovieClip Frame 96
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
_global.stage.game.stopDiperSound();
delete this.onEnterFrame;
stop();
Symbol 4301 MovieClip Frame 1
Symbol 4301 MovieClip Frame 5
Symbol 4301 MovieClip Frame 9
Symbol 4301 MovieClip Frame 13
Symbol 4301 MovieClip Frame 21
Symbol 4330 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4339 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
if (_global.stage.girl.ActionObject.ID == _global.stage.chair[1].ID) {
_global.stage.girl.clip.swapDepths(17800);
}
Symbol 4362 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4365 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4367 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4368 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4370 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4372 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4374 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4376 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4378 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4380 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4382 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4384 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4386 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4388 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4390 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4391 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4393 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4395 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4396 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4397 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4400 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4401 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4403 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4405 MovieClip Frame 1
Symbol 4405 MovieClip Frame 324
trace("vo down22");
Symbol 4405 MovieClip Frame 336
trace("vo up22");
Symbol 4405 MovieClip Frame 348
trace("vo left22");
Symbol 4405 MovieClip Frame 366
trace("vo right22");
Symbol 4416 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4416 MovieClip Frame 13
delete this.onEnterFrame;
stop();
Symbol 4421 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4421 MovieClip Frame 20
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
delete this.onEnterFrame;
stop();
Symbol 4424 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4424 MovieClip Frame 11
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
delete this.onEnterFrame;
stop();
Symbol 4425 MovieClip Frame 1
trace("OVDE ZEMA IGRACKA ILI SISE");
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4425 MovieClip Frame 11
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
delete this.onEnterFrame;
stop();
Symbol 4427 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4427 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4429 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4429 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4457 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4457 MovieClip Frame 10
if (_global.stage.girl.ActionObject.BabyRock != true) {
_global.stage.girl.attachBaby();
_global.stage.girl.Baby = undefined;
} else {
_global.stage.girl.attachBaby();
_global.stage.girl.Baby.clip.gotoAndStop("b" + _global.stage.girl.Baby.clipIndex);
_global.stage.girl.Baby.clip["b" + _global.stage.girl.Baby.clipIndex].gotoAndStop("need10");
_global.stage.girl.Baby.clip.removeMovieClip();
var pozition = ("h" + _global.stage.girl.Baby.clipIndex);
_global.stage.girl.ActionObject.clip.gotoAndPlay(pozition);
_global.stage.girl.ActionObject.clip.horse.gotoAndPlay("h" + _global.stage.girl.ActionObject.upgrade);
_global.stage.girl.ActionObject.clip.horse.movie.gotoAndPlay(2);
_global.stage.girl.ActionObject.clip.beby.gotoAndPlay(2);
_global.stage.girl.Baby = undefined;
}
Symbol 4457 MovieClip Frame 14
delete this.onEnterFrame;
stop();
_global.stage.girl.Animation = false;
stop();
Symbol 4459 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4459 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4461 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4461 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4463 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4463 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4465 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4465 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4467 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4467 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4469 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4469 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4471 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4471 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4473 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4473 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4475 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4475 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4477 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4477 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4479 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4479 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4480 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4480 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4481 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4481 MovieClip Frame 13
_global.stage.girl.attachBaby();
_global.stage.girl.Baby = undefined;
Symbol 4481 MovieClip Frame 19
_global.stage.girl.Animation = false;
delete this.onEnterFrame;
stop();
Symbol 4482 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4482 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4483 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4483 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4484 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4484 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4485 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4485 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4486 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4486 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4487 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4487 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4488 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4488 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4489 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4489 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4490 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4490 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4491 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4491 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4492 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4492 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4498 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4498 MovieClip Frame 28
delete this.onEnterFrame;
stop();
Symbol 4499 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4499 MovieClip Frame 34
delete this.onEnterFrame;
stop();
Symbol 4500 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
if (_global.stage.girl.ActionObject.ID == _global.stage.chair[1].ID) {
_global.stage.girl.clip.swapDepths(17800);
}
Symbol 4500 MovieClip Frame 11
if (_global.stage.girl.ActionObject.ID != _global.stage.panelButton[0].ID) {
_global.stage.girl.attachBaby();
} else {
_global.stage.bedroomDoor.clip.gotoAndStop("close");
trace("ne e vo spalna");
}
_global.stage.girl.Baby = undefined;
Symbol 4500 MovieClip Frame 28
_global.stage.girl.Animation = false;
delete this.onEnterFrame;
trace("_global.stage.girl.clip.getDepth() " + _global.stage.girl.clip.getDepth());
stop();
Symbol 4501 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4501 MovieClip Frame 34
delete this.onEnterFrame;
stop();
Symbol 4502 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4502 MovieClip Frame 34
delete this.onEnterFrame;
stop();
Symbol 4503 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4503 MovieClip Frame 34
delete this.onEnterFrame;
stop();
Symbol 4504 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4504 MovieClip Frame 34
delete this.onEnterFrame;
stop();
Symbol 4505 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4505 MovieClip Frame 34
delete this.onEnterFrame;
stop();
Symbol 4506 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4506 MovieClip Frame 34
delete this.onEnterFrame;
stop();
Symbol 4507 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4507 MovieClip Frame 34
delete this.onEnterFrame;
stop();
Symbol 4508 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4508 MovieClip Frame 34
delete this.onEnterFrame;
stop();
Symbol 4509 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4509 MovieClip Frame 34
delete this.onEnterFrame;
stop();
Symbol 4510 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4510 MovieClip Frame 34
delete this.onEnterFrame;
stop();
Symbol 4511 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4511 MovieClip Frame 34
delete this.onEnterFrame;
stop();
Symbol 4524 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4524 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4525 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4525 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4526 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
if (_global.stage.girl.ActionObject == _global.stage.carpet[6]) {
_global.stage.girl.clip.swapDepths(17800);
}
Symbol 4526 MovieClip Frame 17
_global.stage.girl.attachBaby();
_global.stage.girl.Baby = undefined;
Symbol 4526 MovieClip Frame 39
_global.stage.girl.Animation = false;
delete this.onEnterFrame;
stop();
Symbol 4527 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4527 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4529 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4529 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4531 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4531 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4533 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4533 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4535 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4535 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4537 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4537 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4539 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4539 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4541 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4541 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4543 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4543 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4545 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4545 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4547 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4547 MovieClip Frame 39
delete this.onEnterFrame;
stop();
Symbol 4550 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4550 MovieClip Frame 18
delete this.onEnterFrame;
stop();
Symbol 4551 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4551 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4566 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4566 MovieClip Frame 13
_global.stage.girl.attachBaby();
_global.stage.girl.Baby = undefined;
Symbol 4566 MovieClip Frame 18
_global.stage.girl.Animation = false;
delete this.onEnterFrame;
stop();
Symbol 4567 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4567 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4568 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4568 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4569 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4569 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4570 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4570 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4571 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4571 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4572 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4572 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4573 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4573 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4574 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4574 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4575 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4575 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4576 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4576 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4577 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4577 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4578 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4578 MovieClip Frame 30
delete this.onEnterFrame;
stop();
Symbol 4579 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4579 MovieClip Frame 30
delete this.onEnterFrame;
stop();
Symbol 4580 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4580 MovieClip Frame 9
if (_global.stage.girl.ActionObject.linkID == "BigBox") {
_global.stage.girl.clip.swapDepths(_global.stage.box[2].clip.getDepth() + 10);
}
Symbol 4580 MovieClip Frame 21
if (_global.stage.girl.ActionObject.BabyRock != true) {
_global.stage.girl.attachBaby();
_global.stage.girl.Baby = undefined;
}
Symbol 4580 MovieClip Frame 26
if (_global.stage.girl.ActionObject.linkID == "BigBox") {
_global.stage.girl.clip.swapDepths(_global.stage.box[2].clip.getDepth() - 10);
}
Symbol 4580 MovieClip Frame 30
_global.stage.girl.Animation = false;
ob.clip.swapDepth(_global.stage.girl.exDepth);
delete this.onEnterFrame;
stop();
Symbol 4581 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4581 MovieClip Frame 30
delete this.onEnterFrame;
stop();
Symbol 4582 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4582 MovieClip Frame 30
delete this.onEnterFrame;
stop();
Symbol 4583 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4583 MovieClip Frame 30
delete this.onEnterFrame;
stop();
Symbol 4584 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4584 MovieClip Frame 30
delete this.onEnterFrame;
stop();
Symbol 4585 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4585 MovieClip Frame 30
delete this.onEnterFrame;
stop();
Symbol 4586 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4586 MovieClip Frame 30
delete this.onEnterFrame;
stop();
Symbol 4587 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4587 MovieClip Frame 30
delete this.onEnterFrame;
stop();
Symbol 4588 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4588 MovieClip Frame 30
delete this.onEnterFrame;
stop();
Symbol 4589 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4589 MovieClip Frame 30
delete this.onEnterFrame;
stop();
Symbol 4590 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4590 MovieClip Frame 30
delete this.onEnterFrame;
stop();
Symbol 4591 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4591 MovieClip Frame 30
delete this.onEnterFrame;
stop();
Symbol 4598 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4598 MovieClip Frame 10
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
delete this.onEnterFrame;
stop();
Symbol 4599 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4599 MovieClip Frame 21
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
delete this.onEnterFrame;
stop();
Symbol 4600 MovieClip Frame 4
stop();
Symbol 4600 MovieClip Frame 7
stop();
Symbol 4600 MovieClip Frame 10
stop();
Symbol 4600 MovieClip Frame 13
Symbol 4600 MovieClip Frame 16
Symbol 4600 MovieClip Frame 19
Symbol 4600 MovieClip Frame 22
Symbol 4600 MovieClip Frame 25
Symbol 4600 MovieClip Frame 28
Symbol 4600 MovieClip Frame 31
Symbol 4600 MovieClip Frame 34
Symbol 4600 MovieClip Frame 52
Symbol 4600 MovieClip Frame 55
Symbol 4600 MovieClip Frame 58
Symbol 4600 MovieClip Frame 61
Symbol 4600 MovieClip Frame 64
Symbol 4600 MovieClip Frame 67
Symbol 4600 MovieClip Frame 70
Symbol 4600 MovieClip Frame 73
Symbol 4600 MovieClip Frame 76
Symbol 4600 MovieClip Frame 79
Symbol 4600 MovieClip Frame 82
Symbol 4600 MovieClip Frame 85
Symbol 4600 MovieClip Frame 88
Symbol 4600 MovieClip Frame 157
Symbol 4600 MovieClip Frame 200
Symbol 4600 MovieClip Frame 319
stop();
Symbol 4601 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
trace("dava ifracka ili sise");
Symbol 4601 MovieClip Frame 11
_global.stage.girl.Animation = false;
_global.stage.girl.standBabySitter();
stop();
Symbol 4602 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4602 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4603 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4603 MovieClip Frame 5
_global.stage.girl.Baby.removeClip();
Symbol 4603 MovieClip Frame 14
_global.stage.girl.Animation = false;
stop();
Symbol 4604 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4604 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4605 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4605 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4606 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4606 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4607 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4607 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4608 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4608 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4609 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4609 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4610 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4610 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4611 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4611 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4612 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4612 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4613 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4613 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4614 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4614 MovieClip Frame 14
delete this.onEnterFrame;
stop();
Symbol 4615 MovieClip Frame 45
stop();
Symbol 4631 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4631 MovieClip Frame 7
_global.stage.girl.Baby.removeClip();
Symbol 4631 MovieClip Frame 19
_global.stage.girl.Animation = false;
delete this.onEnterFrame;
stop();
Symbol 4632 MovieClip Frame 50
stop();
Symbol 4635 MovieClip Frame 45
stop();
Symbol 4638 MovieClip Frame 45
stop();
Symbol 4639 MovieClip Frame 45
stop();
Symbol 4640 MovieClip Frame 45
stop();
Symbol 4641 MovieClip Frame 45
stop();
Symbol 4642 MovieClip Frame 45
stop();
Symbol 4644 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4644 MovieClip Frame 24
delete this.onEnterFrame;
stop();
Symbol 4645 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4645 MovieClip Frame 24
delete this.onEnterFrame;
stop();
Symbol 4646 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
if (_global.stage.girl.ActionObject.where.ID == _global.stage.chair[1].ID) {
_global.stage.girl.clip.swapDepths(17800);
}
Symbol 4646 MovieClip Frame 18
_global.stage.girl.Baby.removeClip();
_global.stage.bedroomDoor.clip.gotoAndStop("close");
Symbol 4646 MovieClip Frame 24
_global.stage.girl.Animation = false;
stop();
Symbol 4647 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4647 MovieClip Frame 24
delete this.onEnterFrame;
stop();
Symbol 4648 MovieClip Frame 24
stop();
Symbol 4649 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4649 MovieClip Frame 24
delete this.onEnterFrame;
stop();
Symbol 4650 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4650 MovieClip Frame 24
delete this.onEnterFrame;
stop();
Symbol 4651 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4651 MovieClip Frame 24
delete this.onEnterFrame;
stop();
Symbol 4652 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4652 MovieClip Frame 24
delete this.onEnterFrame;
stop();
Symbol 4653 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4653 MovieClip Frame 24
delete this.onEnterFrame;
stop();
Symbol 4654 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4654 MovieClip Frame 24
delete this.onEnterFrame;
stop();
Symbol 4655 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4655 MovieClip Frame 24
delete this.onEnterFrame;
stop();
Symbol 4656 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4656 MovieClip Frame 24
delete this.onEnterFrame;
stop();
Symbol 4693 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
if (_global.stage.girl.ActionObject.where == _global.stage.carpet[6]) {
_global.stage.girl.clip.swapDepths(17800);
}
Symbol 4693 MovieClip Frame 18
_global.stage.girl.Baby.removeClip();
Symbol 4693 MovieClip Frame 28
_global.stage.girl.Animation = false;
delete this.onEnterFrame;
stop();
Symbol 4694 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4694 MovieClip Frame 28
stop();
Symbol 4699 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4699 MovieClip Frame 28
delete this.onEnterFrame;
stop();
Symbol 4700 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4700 MovieClip Frame 28
stop();
Symbol 4701 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4701 MovieClip Frame 28
stop();
Symbol 4702 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4702 MovieClip Frame 28
stop();
Symbol 4703 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4703 MovieClip Frame 28
stop();
Symbol 4704 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4704 MovieClip Frame 28
stop();
Symbol 4705 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4705 MovieClip Frame 28
stop();
Symbol 4706 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4706 MovieClip Frame 28
stop();
Symbol 4707 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4707 MovieClip Frame 28
stop();
Symbol 4708 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4708 MovieClip Frame 28
stop();
Symbol 4709 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4709 MovieClip Frame 28
stop();
Symbol 4710 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4710 MovieClip Frame 28
stop();
Symbol 4711 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4711 MovieClip Frame 18
stop();
Symbol 4727 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4727 MovieClip Frame 8
_global.stage.girl.Baby.removeClip();
Symbol 4727 MovieClip Frame 18
_global.stage.girl.Animation = false;
stop();
Symbol 4728 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4728 MovieClip Frame 18
stop();
Symbol 4729 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4729 MovieClip Frame 18
stop();
Symbol 4730 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4730 MovieClip Frame 18
stop();
Symbol 4731 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4731 MovieClip Frame 18
stop();
Symbol 4732 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4732 MovieClip Frame 18
stop();
Symbol 4733 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4733 MovieClip Frame 18
stop();
Symbol 4734 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4734 MovieClip Frame 18
stop();
Symbol 4735 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4735 MovieClip Frame 18
stop();
Symbol 4736 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4736 MovieClip Frame 18
stop();
Symbol 4737 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4737 MovieClip Frame 18
stop();
Symbol 4738 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4738 MovieClip Frame 18
stop();
Symbol 4740 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4740 MovieClip Frame 25
delete this.onEnterFrame;
stop();
Symbol 4741 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4742 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4742 MovieClip Frame 7
if (_global.stage.girl.ActionObject.linkID == "BigBox") {
_global.stage.girl.clip.swapDepths(_global.stage.box[2].clip.getDepth() + 10);
}
Symbol 4742 MovieClip Frame 15
_global.stage.girl.Baby.removeClip();
Symbol 4742 MovieClip Frame 21
if (_global.stage.girl.ActionObject.linkID == "BigBox") {
_global.stage.girl.clip.swapDepths(_global.stage.box[2].clip.getDepth() - 10);
}
Symbol 4742 MovieClip Frame 25
_global.stage.girl.Animation = false;
Symbol 4743 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4744 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4745 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4746 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4747 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4748 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4749 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4750 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4751 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4752 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4753 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4754 MovieClip Frame 1
Symbol 4754 MovieClip Frame 7
Symbol 4754 MovieClip Frame 13
Symbol 4754 MovieClip Frame 19
Symbol 4754 MovieClip Frame 25
Symbol 4754 MovieClip Frame 31
Symbol 4754 MovieClip Frame 37
Symbol 4754 MovieClip Frame 43
Symbol 4754 MovieClip Frame 49
Symbol 4754 MovieClip Frame 85
Symbol 4754 MovieClip Frame 91
Symbol 4754 MovieClip Frame 97
Symbol 4754 MovieClip Frame 157
Symbol 4754 MovieClip Frame 163
Symbol 4754 MovieClip Frame 169
Symbol 4754 MovieClip Frame 175
Symbol 4754 MovieClip Frame 181
Symbol 4754 MovieClip Frame 187
Symbol 4754 MovieClip Frame 193
Symbol 4754 MovieClip Frame 229
Symbol 4754 MovieClip Frame 300
Symbol 4754 MovieClip Frame 479
stop();
Symbol 4920 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
gotoAndPlay (2);
_global.stage.girl.Animation = true;
Symbol 4920 MovieClip Frame 23
var index = _global.stage.girl.Baby.clipIndex;
trace("clipIndex @@@@@@@@@ " + index);
var babyName = ("b" + index);
_global.stage.girl.Baby.clip.gotoAndStop("b" + index);
_global.stage.girl.Baby.clip[babyName].gotoAndStop("need8");
_global.stage.girl.Baby.clip[babyName].anim.gotoAndStop("cleanyng");
Symbol 4920 MovieClip Frame 47
_global.stage.girl.Baby.setNeed(_global.stage.game.happy);
Symbol 4920 MovieClip Frame 68
_global.stage.girl.standBabySitter();
_global.stage.girl.Animation = false;
delete this.onEnterFrame;
stop();
Symbol 4921 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
gotoAndPlay (2);
_global.stage.girl.Animation = true;
Symbol 4921 MovieClip Frame 5
var index = _global.stage.girl.Baby.clipIndex;
trace("clipIndex @@@@@@@@@ " + index);
var babyName = ("b" + index);
_global.stage.girl.Baby.clip.gotoAndStop("b" + index);
_global.stage.girl.Baby.clip[babyName].gotoAndStop("need8");
_global.stage.girl.Baby.clip[babyName].anim.gotoAndStop("cleanyng");
Symbol 4921 MovieClip Frame 16
_global.stage.girl.Baby.setNeed(_global.stage.game.happy);
Symbol 4921 MovieClip Frame 24
_global.stage.girl.standBabySitter();
_global.stage.girl.Animation = false;
delete this.onEnterFrame;
stop();
Symbol 4974 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
gotoAndPlay (2);
_global.stage.girl.Animation = true;
trace("!!!!!!!!!@@@@@@@@@@@@@@@");
Symbol 4974 MovieClip Frame 10
var index = _global.stage.girl.Baby.clipIndex;
trace("clipIndex @@@@@@@@@ " + index);
var babyName = ("b" + index);
_global.stage.girl.Baby.clip.gotoAndStop("b" + index);
_global.stage.girl.Baby.clip[babyName].gotoAndStop("need8");
_global.stage.girl.Baby.clip[babyName].anim.gotoAndStop("cleanyng");
Symbol 4974 MovieClip Frame 41
_global.stage.girl.Baby.setNeed(_global.stage.game.happy);
Symbol 4974 MovieClip Frame 48
_global.stage.girl.standBabySitter();
_global.stage.girl.Animation = false;
delete this.onEnterFrame;
stop();
Symbol 4976 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4976 MovieClip Frame 63
stop();
Symbol 4983 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("diperShanging");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(csoundTime / 1000);
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
_global.stage.game.playDiperSound();
Symbol 4983 MovieClip Frame 62
_global.soundFlag = true;
Symbol 4983 MovieClip Frame 63
_global.stage.girl.Baby.setNeed(_global.stage.game.happy);
_global.stage.girl.standBabySitter();
_global.stage.girl.Animation = false;
_global.stage.game.stopDiperSound();
delete this.onEnterFrame;
stop();
Symbol 4985 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4985 MovieClip Frame 63
stop();
Symbol 4987 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4987 MovieClip Frame 63
stop();
Symbol 4989 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4989 MovieClip Frame 63
stop();
Symbol 4991 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4991 MovieClip Frame 63
stop();
Symbol 4993 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4993 MovieClip Frame 63
stop();
Symbol 4995 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4995 MovieClip Frame 63
stop();
Symbol 4997 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4997 MovieClip Frame 63
stop();
Symbol 4999 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 4999 MovieClip Frame 63
stop();
Symbol 5001 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 5001 MovieClip Frame 63
stop();
Symbol 5003 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 5003 MovieClip Frame 63
stop();
Symbol 5005 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 5005 MovieClip Frame 63
stop();
Symbol 5010 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
Symbol 5010 MovieClip Frame 25
_global.stage.girl.Animation = false;
delete this.onEnterFrame;
stop();
Symbol 5029 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
gotoAndPlay (2);
_global.stage.girl.Animation = true;
Symbol 5029 MovieClip Frame 10
var index = _global.stage.girl.Baby.clipIndex;
trace("clipIndex @@@@@@@@@ " + index);
var babyName = ("b" + index);
_global.stage.girl.Baby.clip.gotoAndStop("b" + index);
_global.stage.girl.Baby.clip[babyName].gotoAndStop("need8");
_global.stage.girl.Baby.clip[babyName].anim.gotoAndStop("cleanyng");
Symbol 5029 MovieClip Frame 41
_global.stage.girl.Baby.setNeed(_global.stage.game.happy);
Symbol 5029 MovieClip Frame 48
_global.stage.girl.standBabySitter();
_global.stage.girl.Animation = false;
delete this.onEnterFrame;
stop();
Symbol 5116 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
gotoAndPlay (2);
_global.stage.girl.Animation = true;
Symbol 5116 MovieClip Frame 14
var index = _global.stage.girl.Baby.clipIndex;
trace("clipIndex @@@@@@@@@ " + index);
var babyName = ("b" + index);
_global.stage.girl.Baby.clip.gotoAndStop("b" + index);
_global.stage.girl.Baby.clip[babyName].gotoAndStop("need8");
_global.stage.girl.Baby.clip[babyName].anim.gotoAndStop("cleanyng");
Symbol 5116 MovieClip Frame 44
_global.stage.girl.Baby.setNeed(_global.stage.game.happy);
Symbol 5116 MovieClip Frame 52
_global.stage.girl.standBabySitter();
_global.stage.girl.Animation = false;
delete this.onEnterFrame;
stop();
Symbol 5120 MovieClip Frame 1
var cframe;
var paused = false;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
paused = false;
}
};
gotoAndPlay (2);
_global.stage.girl.Animation = true;
Symbol 5120 MovieClip Frame 5
var index = _global.stage.girl.Baby.clipIndex;
trace("clipIndex @@@@@@@@@ " + index);
var babyName = ("b" + index);
_global.stage.girl.Baby.clip.gotoAndStop("b" + index);
_global.stage.girl.Baby.clip[babyName].gotoAndStop("need8");
_global.stage.girl.Baby.clip[babyName].anim.gotoAndStop("cleanyng");
Symbol 5120 MovieClip Frame 33
_global.stage.girl.Baby.setNeed(_global.stage.game.happy);
Symbol 5120 MovieClip Frame 36
_global.stage.girl.standBabySitter();
_global.stage.girl.Animation = false;
delete this.onEnterFrame;
stop();
Symbol 5121 MovieClip Frame 1
stop();
Symbol 5121 MovieClip Frame 7
Symbol 5121 MovieClip Frame 13
stop();
Symbol 5121 MovieClip Frame 19
stop();
Symbol 5121 MovieClip Frame 29
Symbol 5121 MovieClip Frame 33
Symbol 5121 MovieClip Frame 74
stop();
Symbol 5121 MovieClip Frame 76
stop();
Symbol 5122 MovieClip Frame 1
_global.stage.girl.Animation = false;
stop();
Symbol 5123 MovieClip Frame 1
stop();
Symbol 5123 MovieClip Frame 7
stop();
Symbol 5123 MovieClip Frame 13
stop();
Symbol 5123 MovieClip Frame 19
stop();
Symbol 5123 MovieClip Frame 25
stop();
Symbol 5123 MovieClip Frame 31
stop();
Symbol 5123 MovieClip Frame 37
stop();
Symbol 5123 MovieClip Frame 43
stop();
Symbol 5123 MovieClip Frame 49
stop();
Symbol 5123 MovieClip Frame 55
stop();
Symbol 5123 MovieClip Frame 61
stop();
Symbol 5123 MovieClip Frame 67
stop();
Symbol 5124 MovieClip [girl] Frame 1
this.inAnimation = false;
stop();
Symbol 5124 MovieClip [girl] Frame 6
stop();
Symbol 5124 MovieClip [girl] Frame 11
Symbol 5124 MovieClip [girl] Frame 16
Symbol 5124 MovieClip [girl] Frame 21
Symbol 5124 MovieClip [girl] Frame 26
stop();
Symbol 5124 MovieClip [girl] Frame 31
stop();
Symbol 5127 MovieClip [bed-daska4] Frame 1
stop();
Symbol 5127 MovieClip [bed-daska4] Frame 2
stop();
Symbol 5127 MovieClip [bed-daska4] Frame 3
stop();
Symbol 5127 MovieClip [bed-daska4] Frame 4
stop();
Symbol 5127 MovieClip [bed-daska4] Frame 5
stop();
Symbol 5127 MovieClip [bed-daska4] Frame 6
stop();
Symbol 5130 MovieClip [bed-daska3] Frame 1
stop();
Symbol 5130 MovieClip [bed-daska3] Frame 2
stop();
Symbol 5130 MovieClip [bed-daska3] Frame 3
stop();
Symbol 5130 MovieClip [bed-daska3] Frame 4
stop();
Symbol 5130 MovieClip [bed-daska3] Frame 5
stop();
Symbol 5130 MovieClip [bed-daska3] Frame 6
stop();
Symbol 5133 MovieClip [bed-daska2] Frame 1
stop();
Symbol 5133 MovieClip [bed-daska2] Frame 2
stop();
Symbol 5133 MovieClip [bed-daska2] Frame 3
stop();
Symbol 5133 MovieClip [bed-daska2] Frame 4
stop();
Symbol 5133 MovieClip [bed-daska2] Frame 5
stop();
Symbol 5133 MovieClip [bed-daska2] Frame 6
stop();
Symbol 5136 MovieClip [bed-daska1] Frame 1
stop();
Symbol 5136 MovieClip [bed-daska1] Frame 2
stop();
Symbol 5136 MovieClip [bed-daska1] Frame 3
stop();
Symbol 5136 MovieClip [bed-daska1] Frame 4
stop();
Symbol 5136 MovieClip [bed-daska1] Frame 5
stop();
Symbol 5136 MovieClip [bed-daska1] Frame 6
stop();
Symbol 5143 MovieClip [bed1] Frame 1
stop();
Symbol 5143 MovieClip [bed1] Frame 2
stop();
Symbol 5143 MovieClip [bed1] Frame 3
stop();
Symbol 5143 MovieClip [bed1] Frame 4
stop();
Symbol 5143 MovieClip [bed1] Frame 5
stop();
Symbol 5143 MovieClip [bed1] Frame 6
stop();
Symbol 5148 MovieClip [bed2] Frame 1
stop();
Symbol 5148 MovieClip [bed2] Frame 2
stop();
Symbol 5148 MovieClip [bed2] Frame 3
stop();
Symbol 5148 MovieClip [bed2] Frame 4
stop();
Symbol 5148 MovieClip [bed2] Frame 5
stop();
Symbol 5148 MovieClip [bed2] Frame 6
stop();
Symbol 5152 MovieClip [bed3] Frame 1
stop();
Symbol 5152 MovieClip [bed3] Frame 2
stop();
Symbol 5152 MovieClip [bed3] Frame 3
stop();
Symbol 5152 MovieClip [bed3] Frame 4
stop();
Symbol 5152 MovieClip [bed3] Frame 5
stop();
Symbol 5152 MovieClip [bed3] Frame 6
stop();
Symbol 5156 MovieClip [bed4] Frame 1
stop();
Symbol 5156 MovieClip [bed4] Frame 2
stop();
Symbol 5156 MovieClip [bed4] Frame 3
stop();
Symbol 5156 MovieClip [bed4] Frame 4
stop();
Symbol 5156 MovieClip [bed4] Frame 5
stop();
Symbol 5156 MovieClip [bed4] Frame 6
stop();
Symbol 5158 MovieClip [bedfront1] Frame 1
stop();
Symbol 5158 MovieClip [bedfront1] Frame 2
stop();
Symbol 5160 MovieClip [bedfront2] Frame 1
stop();
Symbol 5160 MovieClip [bedfront2] Frame 2
stop();
Symbol 5162 MovieClip [bedfront3] Frame 1
stop();
Symbol 5162 MovieClip [bedfront3] Frame 2
stop();
Symbol 5164 MovieClip [bedfront4] Frame 1
stop();
Symbol 5164 MovieClip [bedfront4] Frame 2
stop();
Symbol 5166 MovieClip [prekrivac1] Frame 1
stop();
Symbol 5166 MovieClip [prekrivac1] Frame 2
stop();
Symbol 5168 MovieClip [prekrivac2] Frame 1
stop();
Symbol 5168 MovieClip [prekrivac2] Frame 2
stop();
Symbol 5170 MovieClip [prekrivac3] Frame 1
stop();
Symbol 5170 MovieClip [prekrivac3] Frame 2
stop();
Symbol 5172 MovieClip [prekrivac4] Frame 1
stop();
Symbol 5172 MovieClip [prekrivac4] Frame 2
stop();
Symbol 5193 MovieClip [clown] Frame 1
stop();
Symbol 5193 MovieClip [clown] Frame 2
trace("izceznuva dugmeto na klovnot");
Symbol 5193 MovieClip [clown] Frame 14
stop();
Symbol 5195 MovieClip [boxFront] Frame 1
stop();
Symbol 5196 MovieClip [boxover1] Frame 1
stop();
Symbol 5198 MovieClip [boxover2] Frame 1
stop();
Symbol 5201 MovieClip [box1] Frame 1
stop();
Symbol 5201 MovieClip [box1] Frame 2
stop();
Symbol 5201 MovieClip [box1] Frame 3
stop();
Symbol 5205 MovieClip [box2] Frame 1
stop();
Symbol 5211 MovieClip [buybed] Frame 1
#initclip 87
Object.registerClass("buybed", Apgrejd);
#endinitclip
Symbol 5216 MovieClip [buybed2] Frame 1
#initclip 88
Object.registerClass("buybed2", Apgrejd);
#endinitclip
Symbol 5222 MovieClip [buybed3] Frame 1
#initclip 89
Object.registerClass("buybed3", Apgrejd);
#endinitclip
Symbol 5227 MovieClip [buybox] Frame 1
#initclip 90
Object.registerClass("buybox", Apgrejd);
#endinitclip
if (_global.path.BedroomType > 0) {
trace("OK");
this._visible = false;
}
Symbol 5232 MovieClip [buybox2] Frame 1
#initclip 91
Object.registerClass("buybox2", Apgrejd);
#endinitclip
if (_global.path.BedroomType > 0) {
trace("OK");
this._visible = false;
}
Symbol 5237 MovieClip [buybox3] Frame 1
#initclip 92
Object.registerClass("buybox3", Apgrejd);
#endinitclip
Symbol 5250 MovieClip [buycher1] Frame 1
#initclip 93
Object.registerClass("buycher1", Apgrejd);
#endinitclip
if (_global.path.KitchenType > 0) {
gotoAndStop (2);
cena = Item_number.text;
kolicina = bedNum.text;
}
stop();
Symbol 5250 MovieClip [buycher1] Frame 2
Item_number.text = this._cash;
bedNum.text = _global.path[this._identity]["level" + this.id];
stop();
Symbol 5261 MovieClip [buycher2] Frame 1
#initclip 94
Object.registerClass("buycher2", Apgrejd);
#endinitclip
if (_global.path.KitchenType > 0) {
gotoAndStop (2);
}
stop();
Symbol 5261 MovieClip [buycher2] Frame 2
Item_number.text = this._cash;
bedNum.text = _global.path[this._identity]["level" + this.id];
stop();
Symbol 5271 MovieClip [buycher3] Frame 1
#initclip 95
Object.registerClass("buycher3", Apgrejd);
#endinitclip
if (_global.path.KitchenType > 0) {
gotoAndStop (2);
}
stop();
Symbol 5271 MovieClip [buycher3] Frame 2
Item_number.text = this._cash;
bedNum.text = _global.path[this._identity]["level" + this.id];
stop();
Symbol 5276 MovieClip [Mixer1] Frame 1
#initclip 96
Object.registerClass("Mixer1", Apgrejd);
#endinitclip
Symbol 5282 MovieClip [Mixer2] Frame 1
#initclip 97
Object.registerClass("Mixer2", Apgrejd);
#endinitclip
Symbol 5288 MovieClip [Mixer3] Frame 1
#initclip 98
Object.registerClass("Mixer3", Apgrejd);
#endinitclip
Symbol 5293 MovieClip [plant1] Frame 1
#initclip 99
Object.registerClass("plant1", Apgrejd);
#endinitclip
Symbol 5298 MovieClip [plant2] Frame 1
#initclip 100
Object.registerClass("plant2", Apgrejd);
#endinitclip
Symbol 5304 MovieClip [horseForBuy1] Frame 1
#initclip 101
Object.registerClass("horseForBuy1", Apgrejd);
#endinitclip
if (_global.path.BedroomType == 0) {
trace("OK");
this._visible = false;
}
Symbol 5309 MovieClip [horseForBuy2] Frame 1
#initclip 102
Object.registerClass("horseForBuy2", Apgrejd);
#endinitclip
if (_global.path.BedroomType == 0) {
trace("OK");
this._visible = false;
}
Symbol 5314 MovieClip [horseForBuy3] Frame 1
#initclip 103
Object.registerClass("horseForBuy3", Apgrejd);
#endinitclip
if (_global.path.BedroomType == 0) {
trace("OK");
this._visible = false;
}
Symbol 5320 MovieClip [boxForBuy3] Frame 1
#initclip 104
Object.registerClass("boxForBuy3", Apgrejd);
#endinitclip
if (_global.path.BedroomType == 0) {
trace("OK");
this._visible = false;
}
Symbol 5325 MovieClip [BoxForBuy2] Frame 1
#initclip 105
Object.registerClass("BoxForBuy2", Apgrejd);
#endinitclip
if (_global.path.BedroomType == 0) {
trace("OK");
this._visible = false;
}
Symbol 5354 MovieClip Frame 1
trace("this.bar " + this.bar);
Symbol 5355 Button
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "Select the objects you want to buy and click this button";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "The bill for the selected objects is too high";
}
trace("tekstppppppppp");
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "Select the objects you want to buy and click this button";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "The bill for the selected objects is too high";
}
}
on (press) {
if ((_global.path.money - _global.path.MoneySpend) >= 0) {
if (_global.path.MoneySpend != 0) {
_global.sound.playSound("cash_money");
}
_global.path.meni.curentFee.text = _global.path.curentFee;
_global.path.meni.NewFee.text = "";
_global.path.money = _global.path.money - _global.path.MoneySpend;
_global.path.MoneySpend = 0;
_global.path.meni.BankBalance.text = _global.path.money.toString();
_global.path.meni.MoneySpend.text = _global.path.MoneySpend.toString();
_global.path.meni.bed.buyFlag = true;
_global.path.meni.bed2.buyFlag = true;
_global.path.meni.bed3.buyFlag = true;
_global.path.meni.box.buyFlag = true;
_global.path.meni.box2.buyFlag = true;
_global.path.meni.box3.buyFlag = true;
_global.path.meni.chair.buyFlag = true;
_global.path.meni.chair2.buyFlag = true;
_global.path.meni.chair3.buyFlag = true;
_global.path.meni.horse.buyFlag = true;
_global.path.meni.horse2.buyFlag = true;
_global.path.meni.horse3.buyFlag = true;
_global.path.meni.mixer.buyFlag = true;
_global.path.meni.mixer2.buyFlag = true;
_global.path.meni.mixer3.buyFlag = true;
_global.path.meni.plant2.buyFlag = true;
_global.path.meni.plant.buyFlag = true;
_global.path.meni.horse.filters = undefined;
_global.path.meni.horse2.filters = undefined;
_global.path.meni.horse3.filters = undefined;
_global.path.meni.bed.filters = undefined;
_global.path.meni.bed2.filters = undefined;
_global.path.meni.bed3.filters = undefined;
_global.path.meni.box.filters = undefined;
_global.path.meni.box2.filters = undefined;
_global.path.meni.box3.filters = undefined;
_global.path.meni.chair.filters = undefined;
_global.path.meni.chair2.filters = undefined;
_global.path.meni.chair3.filters = undefined;
_global.path.meni.mixer.filters = undefined;
_global.path.meni.mixer2.filters = undefined;
_global.path.meni.mixer3.filters = undefined;
_global.path.meni.plant2.filters = undefined;
_global.path.meni.plant.filters = undefined;
_global.path.box_rent.level1 = 0;
_global.path.box_rent.level2 = 0;
_global.path.bed_rent.level1 = 0;
_global.path.bed_rent.level2 = 0;
_global.path.chair_rent.level1 = 0;
_global.path.chair_rent.level2 = 0;
_global.path.horse_rent.level1 = 0;
_global.path.horse_rent.level2 = 0;
_global.path.plant_rent.level1 = 0;
_global.path.plant_rent.level2 = 0;
_global.path.mixer_rent.level1 = 0;
_global.path.mixer_rent.level2 = 0;
_global.path.socialRating2 = _global.path.socialRating2 + _global.path.NewSocialRating;
_global.path.NewSocialRating = 0;
} else {
trace("You don't have money");
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "The bill for the selected objects is too high";
}
}
Symbol 5356 Button
on (press) {
trace("_global.path.bed_rent.level1 " + _global.path.bed_rent.level1);
_global.sound.playSound("clickOnObject");
_global.path.MoneySpend = 0;
if (_global.path.meni.bed.buyFlag == false) {
_global.path.bed.level1--;
__global.path.meni.bed.filters = undefined;
}
if (_global.path.meni.bed2.buyFlag == false) {
_global.path.bed.level2--;
_global.path.bed.level1 = _global.path.bed.level1 + _global.path.bed_rent.level1;
_global.path.bed_rent.level1 = 0;
_global.path.meni.bed2.filters = undefined;
}
if (_global.path.meni.bed3.buyFlag == false) {
_global.path.bed.level3--;
_global.path.bed.level1 = _global.path.bed.level1 + _global.path.bed_rent.level1;
_global.path.bed.level2 = _global.path.bed.level2 + _global.path.bed_rent.level2;
_global.path.bed_rent.level1 = 0;
_global.path.bed_rent.level2 = 0;
_global.path.meni.bed3.filters = undefined;
}
if (_global.path.meni.box.buyFlag == false) {
_global.path.box.level1--;
_global.path.meni.box.filters = undefined;
}
if (_global.path.meni.box2.buyFlag == false) {
_global.path.box.level2--;
_global.path.box.level1 = _global.path.box.level1 + _global.path.box_rent.level1;
_global.path.box_rent.level1 = 0;
_global.path.meni.box2.filters = undefined;
}
if (_global.path.meni.box3.buyFlag == false) {
_global.path.box.level3--;
_global.path.box.level1 = _global.path.box.level1 + _global.path.box_rent.level1;
_global.path.box.level2 = _global.path.box.level2 + _global.path.box_rent.level2;
_global.path.box_rent.level1 = 0;
_global.path.box_rent.level2 = 0;
_global.path.meni.box3.filters = undefined;
}
if (_global.path.meni.chair.buyFlag == false) {
_global.path.chair.level1--;
_global.path.meni.chair.filters = undefined;
}
if (_global.path.meni.chair2.buyFlag == false) {
_global.path.chair.level2--;
_global.path.chair.level1 = _global.path.chair.level1 + _global.path.chair_rent.level1;
_global.path.meni.chair2.filters = undefined;
}
if (_global.path.meni.chair3.buyFlag == false) {
_global.path.chair.level3--;
_global.path.chair.level1 = _global.path.chair.level1 + _global.path.chair_rent.level1;
_global.path.chair.level2 = _global.path.chair.level2 + _global.path.chair_rent.level2;
_global.path.chair_rent.level1 = 0;
_global.path.chair_rent.level2 = 0;
_global.path.meni.chair3.filters = undefined;
}
if (_global.path.meni.mixer1.buyFlag == false) {
_global.path.mixer.level1--;
_global.path.meni.mixer1.filters = undefined;
}
if (_global.path.meni.mixer2.buyFlag == false) {
_global.path.mixer.level2--;
_global.path.mixer.level1 = _global.path.mixer.level1 + _global.path.mixer_rent.level1;
_global.path.mixer_rent.level1 = 0;
_global.path.meni.mixer2.filters = undefined;
}
if (_global.path.meni.mixer3.buyFlag == false) {
_global.path.mixer.level3--;
_global.path.mixer.level1 = _global.path.mixer.level1 + _global.path.mixer_rent.level1;
_global.path.mixer.level2 = _global.path.mixer.level2 + _global.path.mixer_rent.level2;
_global.path.mixer_rent.level1 = 0;
_global.path.mixer_rent.level2 = 0;
_global.path.meni.mixer3.filters = undefined;
}
if (_global.path.meni.plant2.buyFlag == false) {
_global.path.plant.level2--;
_global.path.plant.level1 = _global.path.plant.level1 + _global.path.plant_rent.level1;
_global.path.plant_rent.level1 = 0;
_global.path.meni.plant2.filters = undefined;
}
if (_global.path.meni.plant.buyFlag == false) {
_global.path.plant.level1--;
if (_global.path.plant.level1 == -1) {
_global.path.plant.level1 = 0;
}
_global.path.meni.plant1.filters = undefined;
}
if (_global.path.meni.horse.buyFlag == false) {
_global.path.horse.level1--;
_global.path.meni.horse.filters = undefined;
}
if (_global.path.meni.horse2.buyFlag == false) {
_global.path.horse.level2--;
_global.path.horse.level1 = _global.path.horse.level1 + _global.path.horse_rent.level1;
_global.path.horse_rent.level1 = 0;
_global.path.meni.horse2.filters = undefined;
}
if (_global.path.meni.horse3.buyFlag == false) {
_global.path.horse.level3--;
_global.path.horse.level1 = _global.path.horse.level1 + _global.path.horse_rent.level1;
_global.path.horse.level2 = _global.path.horse.level2 + _global.path.horse_rent.level2;
_global.path.horse_rent.level1 = 0;
_global.path.horse_rent.level2 = 0;
_global.path.meni.horse3.filters = undefined;
}
trace("@@@_global.path.meni.bed " + _global.path.meni.bed);
_global.path.meni.bed.setCurentFee();
if ((_global.dayCount % 5) == 0) {
_global.path.attachMovie("WeekendMeny_mc", "WeekendMeny_mc", 1, {_x:0, _y:0});
} else {
_global.path.dailyScreen = new utils.DalyScreen();
}
_global.path.NewSocialRating = 0;
_global.path.meni.removeMovieClip();
}
Symbol 5366 MovieClip Frame 1
var pres_h;
pres_h.text = "(Press 'H' to toggle the help)";
Symbol 5367 MovieClip Frame 11
stop();
trace("BBBBBBBBBB");
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
Symbol 5367 MovieClip Frame 21
stop();
trace("AAAAAAAAAAAAAAAAAAAAAAAAa");
Symbol 5368 MovieClip [meni] Frame 1
bed.tabEnabled = false;
bed2.tabEnabled = false;
bed3.tabEnabled = false;
horse.tabEnabled = false;
horse2.tabEnabled = false;
horse3.tabEnabled = false;
chair.tabEnabled = false;
chair2.tabEnabled = false;
chair3.tabEnabled = false;
plant.tabEnabled = false;
plant2.tabEnabled = false;
socialBar.tabEnabled = false;
nexFeeBar.tabEnabled = false;
simbol1.tabEnabled = false;
simbol2.tabEnabled = false;
simbol3.tabEnabled = false;
simbol4.tabEnabled = false;
box.tabEnabled = false;
box2.tabEnabled = false;
box3.tabEnabled = false;
mixer.tabEnabled = false;
mixer2.tabEnabled = false;
mixer3.tabEnabled = false;
if (_global.path.frstDay) {
_global.path.tutorialFlag = true;
_global.path.frstDay = false;
}
_global.path.helpTips[9].dettachPopUp();
trace("trgam popup9");
bed.setCurentFee();
if (_global.path.KitchenType > 0) {
senki_stolovi._visible = false;
}
buy.tabEnabled = false;
finish.tabEnabled = false;
if (_global.path.tutorialFlag == false) {
popUPSamoprajs._visible = false;
}
Instance of Symbol 5227 MovieClip [buybox] "item4" in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 40;
id = 1;
identity = "box";
name = "box";
SocialRating = "";
}
on (press) {
_global.sound.playSound("light_pull");
buyItem();
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "This box keeps the babies playing for 4 seconds";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5232 MovieClip [buybox2] "item5" in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 80;
id = 2;
identity = "box";
name = "box2";
SocialRating = "";
}
on (press) {
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "This box keeps the babies playing for 6 seconds";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5320 MovieClip [boxForBuy3] in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 120;
id = 3;
identity = "box";
name = "box3";
SocialRating = "";
}
on (press) {
_global.sound.playSound("light_pull");
buyItem();
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "This box keeps the babies playing for 8 seconds";
trace("tekst");
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5325 MovieClip [BoxForBuy2] in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 80;
id = 2;
identity = "box";
name = "box2";
SocialRating = "";
}
on (press) {
_global.sound.playSound("light_pull");
buyItem();
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "This box keeps the babies playing for 6 seconds";
trace("tekst");
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5288 MovieClip [Mixer3] in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 30;
id = 3;
identity = "mixer";
name = "mixer3";
SocialRating = "";
}
on (press) {
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "This food maker makes food in 6 seconds";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5282 MovieClip [Mixer2] in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 15;
id = 2;
identity = "mixer";
name = "mixer2";
SocialRating = "";
}
on (press) {
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "This food maker makes food in 8 seconds";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5276 MovieClip [Mixer1] in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 0;
id = 1;
identity = "mixer";
name = "mixer";
SocialRating = "";
}
on (press) {
if (_global.path.KitchenType == 0) {
_global.sound.playSound("light_pull");
buyItem();
}
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "This food maker makes food in 10 seconds";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5293 MovieClip [plant1] in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 5;
id = 1;
identity = "plant";
name = "plant";
SocialRating = "";
}
on (press) {
_global.sound.playSound("light_pull");
buyItem();
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The flowers improve your social rating";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5298 MovieClip [plant2] in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 8;
id = 2;
identity = "plant";
name = "plant2";
SocialRating = "";
}
on (press) {
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The flowers improve your social rating";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5250 MovieClip [buycher1] in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 30;
id = 1;
identity = "chair";
name = "chair";
SocialRating = "";
}
on (press) {
_global.sound.playSound("light_pull");
buyItem();
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The babies eat 3 seconds in this chair";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5261 MovieClip [buycher2] in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 50;
id = 2;
identity = "chair";
name = "chair2";
SocialRating = "";
}
on (press) {
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The babies eat 4 seconds in this chair";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5271 MovieClip [buycher3] in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 70;
id = 3;
identity = "chair";
name = "chair3";
SocialRating = "";
}
on (press) {
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The babies eat 5 seconds in this chair";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5348 MovieClip "simbol4" in Symbol 5368 MovieClip [meni] Frame 1
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "This indicates how the current fee can grow if you buy the selected objects";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5349 MovieClip "simbol3" in Symbol 5368 MovieClip [meni] Frame 1
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "This indicates how much money you get for each baby with your current setup of the KinderGarten";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5351 MovieClip "simbol2" in Symbol 5368 MovieClip [meni] Frame 1
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "This shows the total amount of money you need for the selected objects";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5352 MovieClip "simbol1" in Symbol 5368 MovieClip [meni] Frame 1
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "Invest and your bank account will improve later on";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 3589 MovieClip "socialBar" in Symbol 5368 MovieClip [meni] Frame 1
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "Watch this bar to see how the selected objects will affect your social rating if you buy them";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5354 MovieClip "nexFeeBar" in Symbol 5368 MovieClip [meni] Frame 1
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "This bar helps you plan what you need to buy in order to raise the new fee even more";
trace("tekst");
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5211 MovieClip [buybed] "item1" in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 40;
id = 1;
identity = "bed";
name = "bed";
SocialRating = "";
}
on (press) {
_global.sound.playSound("light_pull");
buyItem();
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "This bed keeps the babies asleep for 4 seconds";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "The bill for the selected objects is too high";
}
trace("tekst");
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "The bill for the selected objects is too high";
}
}
Instance of Symbol 5216 MovieClip [buybed2] "item2" in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 80;
id = 2;
identity = "bed";
name = "bed2";
SocialRating = "";
}
on (press) {
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "This bed keeps the babies asleep for 6 seconds";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Instance of Symbol 5222 MovieClip [buybed3] "item3" in Symbol 5368 MovieClip [meni] Frame 1
//component parameters
onClipEvent (construct) {
cash = 120;
id = 3;
identity = "bed";
name = "bed3";
SocialRating = "";
}
on (press) {
}
on (rollOver) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "This bed keeps the babies asleep for 8 seconds";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
on (rollOut) {
var popUpText;
_parent.popUPSamoprajs.movie.popUpText.text = "The number below the price of the objects indicates the number of objects in the room with your current setup";
if ((_global.path.money - _global.path.MoneySpend) < 0) {
_global.path.meni.popUPSamoprajs.movie.popUpText.text = "You're bill is too high";
}
}
Symbol 5389 MovieClip Frame 10
stop();
Symbol 5392 MovieClip [intro] Frame 1
start.tabEnabled = false;
_root.attachMovie("start_screen", "start_screen", 1);
_root.start_screen.tabEnabled = false;
_root.intro.removeMovieClip();
Symbol 5398 Button
on (press) {
this.gotoAndStop(this._currentframe + 1);
}
on (rollOver) {
_root.cursor.gotoAndStop("hand");
}
on (rollOut) {
_root.cursor.gotoAndStop("arrow");
}
on (dragOut) {
_root.cursor.gotoAndStop("arrow");
}
Symbol 5415 Button
on (release) {
_root.instructions_clip.removeMovieClip();
}
on (rollOver) {
_root.cursor.gotoAndStop("hand");
}
on (rollOut) {
_root.cursor.gotoAndStop("arrow");
}
on (dragOut) {
_root.cursor.gotoAndStop("arrow");
}
Symbol 5416 Button
on (press) {
this.gotoAndStop(this._currentframe - 1);
}
on (rollOver) {
_root.cursor.gotoAndStop("hand");
}
on (rollOut) {
_root.cursor.gotoAndStop("arrow");
}
on (dragOut) {
_root.cursor.gotoAndStop("arrow");
}
Symbol 5484 MovieClip [instructions_clip] Frame 1
stop();
Symbol 5484 MovieClip [instructions_clip] Frame 2
stop();
Symbol 5484 MovieClip [instructions_clip] Frame 3
stop();
Symbol 5484 MovieClip [instructions_clip] Frame 4
stop();
Symbol 5500 MovieClip Frame 1
trace("zatvorena vrata");
_global.opened = false;
stop();
Symbol 5500 MovieClip Frame 2
_global.opened = false;
stop();
Symbol 5500 MovieClip Frame 3
_global.opened = true;
Symbol 5500 MovieClip Frame 5
var hand_mc;
hand_mc._visible = false;
if ((_global.stage.game.babiesOut == true) && (_global.stage.girl.Baby.flagMama)) {
hand_mc._visible = true;
}
Symbol 5500 MovieClip Frame 12
stop();
Symbol 5500 MovieClip Frame 13
trace("vrata-clown");
Symbol 5500 MovieClip Frame 24
stop();
Symbol 5514 MovieClip Frame 8
stop();
Symbol 5517 Button
on (release) {
_global.sound.playSound("clickOnObject");
_global.sound.stopSound("cry_Baby_toy");
_global.pausePress = true;
_global.path.timer.stop();
_global.socialRating2 = _global.path.socialRating2;
_global.money = _global.path.money;
_global.mouse.removeMouseListener();
delete _global.mouse;
_global.keyboard.removeKeyboardListener();
delete _global.keyboard;
_root.attachMovie("DEMO", "DEMO", 1, {_x:0, _y:0});
_root.attachMovie("cursor", "cursor", 21000);
_root.cursor.cacheAsBitmap = true;
startDrag (_root.cursor, true);
Mouse.hide();
_root.stage.removeMovieClip();
}
Symbol 5526 MovieClip [endGame] Frame 1
_global.music[1].start(0, 32768);
menu.tabEnabled = false;
if ((_global.path.money >= 0) && (_global.path.babyDie)) {
score.text = (((" Your Final Score is: \r" + _global.path.money) + " $ ") + newline) + "Some of the babies were unhappy for too long";
} else if (_global.path.exitBabies == 0) {
score.text = (((" Your Final Score is: \r" + _global.path.money) + " $ ") + newline) + "You have to take at least one baby out";
} else {
score.text = " You went bankrupt.";
}
score.bold = true;
stole.text = "Better luck next time...";
Symbol 5574 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("nanny_nananan");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 5574 MovieClip Frame 5
_global.path.sound.playSound("nanny_nananan");
Symbol 5574 MovieClip Frame 113
stop();
var rand = int(Math.random() * 2);
if (rand == 0) {
this._parent.gotoAndStop("animation3");
} else {
this.gotoAndPlay(1);
}
Symbol 5627 MovieClip Frame 1
var cframe;
var csoundTime;
var paused = false;
var sound = _global.path.sound.getSound("nanny_av_av");
var sound1 = undefined;
this.onEnterFrame = function () {
if (_global.pause && (!paused)) {
cframe = this._currentframe;
sound.stop(sound.soundName);
sound1.stop(sound1.soundName);
csoundTime = sound.position;
this.stop();
paused = true;
}
if ((!_global.pause) && (paused)) {
this.gotoAndPlay(cframe);
sound.start(int(csoundTime / 1000));
trace("sound1 " + sound1);
if (sound1) {
sound1.start(int(csoundTime / 1000));
}
paused = false;
}
};
Symbol 5627 MovieClip Frame 13
_global.path.sound.playSound("nanny_av_av");
Symbol 5627 MovieClip Frame 140
stop();
var rand = int(Math.random() * 2);
if (rand == 0) {
this._parent.gotoAndStop("animation2");
} else {
this.gotoAndPlay(1);
}
Symbol 5628 MovieClip [nany] Frame 1
stop();
Symbol 5628 MovieClip [nany] Frame 2
stop();
Symbol 5628 MovieClip [nany] Frame 3
stop();
Symbol 5643 MovieClip Frame 1
stop();
Symbol 5648 Button
on (release) {
_global.stage.pause_mc.pause_options_mc._visible = false;
_global.stage.pause_mc.attachMovie("butons", "butons", 26001, {_x:253, _y:227});
}
Symbol 5650 MovieClip Frame 1
stop();
Symbol 5652 MovieClip [pause_options_mc] Frame 1
vol = snd.getVolume();
var volume_bar;
var volume_bar_music;
volume_bar.vol.gotoAndStop(_global.tempBar);
volume_bar_music.vol_music.gotoAndStop(_global.tempBarMusic);
pustam = false;
trace("volume_bar.vol " + volume_bar.vol);
mminus.onPress = function () {
trace("volume_bar.vol " + volume_bar_music.vol_music);
if (_global.tempBarMusic > 0) {
_global.tempBarMusic = _global.tempBarMusic - 25;
volume_bar_music.vol_music.gotoAndStop(_global.tempBarMusic);
_global.music.volume = _global.tempBarMusic;
var _local2 = 0;
while (_local2 <= 4) {
_global.music[1].setVolume((70 * _global.tempBarMusic) / 100);
_local2++;
}
}
if (_global.tempBarMusic == 0) {
volume_bar_music.vol_music.gotoAndStop(1);
_global.music.off = true;
_global.musicOff = true;
}
};
mplus.onPress = function () {
trace("volume_bar.vol " + volume_bar.vol);
if (_global.tempBarMusic < 100) {
_global.tempBarMusic = _global.tempBarMusic + 25;
volume_bar_music.vol_music.gotoAndStop(_global.tempBarMusic);
_global.music.volume = _global.tempBarMusic;
_global.music.off = false;
var _local2 = 0;
while (_local2 <= 4) {
_global.music[1].setVolume((70 * _global.tempBarMusic) / 100);
_local2++;
}
}
if (_global.tempBarMusic > 0) {
_global.music.off = false;
_global.musicOff = false;
}
};
sminus.onPress = function () {
trace("volume_bar.vol " + volume_bar.vol);
if (_global.tempBar > 0) {
_global.tempBar = _global.tempBar - 25;
volume_bar.vol.gotoAndStop(_global.tempBar);
_global.sound.volume = _global.tempBar;
snd.setVolume((snd.initalVol * _global.tempBar) / 100);
}
if (_global.tempBar == 0) {
volume_bar.vol.gotoAndStop(1);
_global.sound.off = true;
_global.off = true;
_global.sviri = false;
}
};
splus.onPress = function () {
trace("volume_bar.vol " + volume_bar.vol);
if (_global.tempBar < 100) {
_global.tempBar = _global.tempBar + 25;
volume_bar.vol.gotoAndStop(_global.tempBar);
_global.sound.volume = _global.tempBar;
snd.setVolume((snd.initalVol * _global.tempBar) / 100);
_global.sound.off = false;
}
if (_global.tempBar > 0) {
_global.sound.off = false;
_global.off = false;
_global.sviri = true;
}
};
Symbol 5657 Button
on (release) {
_root.instructions_clip.removeMovieClip();
}
on (release) {
_global.enableButtons = true;
_root.options.removeMovieClip();
}
on (rollOver) {
_root.cursor.gotoAndStop("hand");
}
on (rollOut) {
_root.cursor.gotoAndStop("arrow");
}
on (dragOut) {
_root.cursor.gotoAndStop("arrow");
}
Symbol 5667 MovieClip Frame 1
stop();
Symbol 5670 MovieClip Frame 1
stop();
Symbol 5672 MovieClip Frame 1
vol = snd.getVolume();
var volume_bar;
_root.options.buttons.volume_bar.vol.gotoAndStop(_global.tempBar);
_root.options.buttons.volume_bar_music.vol_music.gotoAndStop(_global.tempBarMusic);
pustam = false;
trace("volume_bar.vol " + volume_bar.vol);
mminus.onPress = function () {
trace("volume_bar.vol " + volume_bar_music.vol_music);
if (_global.tempBarMusic > 0) {
_global.tempBarMusic = _global.tempBarMusic - 25;
_root.options.buttons.volume_bar_music.vol_music.gotoAndStop(_global.tempBarMusic);
_global.music.volume = _global.tempBarMusic;
var _local3 = 0;
while (_local3 <= 4) {
_global.music[1].setVolume((70 * _global.tempBarMusic) / 100);
_local3++;
}
}
if (_global.tempBarMusic == 0) {
_root.options.buttons.volume_bar_music.vol_music.gotoAndStop(1);
_global.music.off = true;
_global.musicOff = true;
}
};
mplus.onPress = function () {
trace("volume_bar.vol " + volume_bar.vol);
if (_global.tempBarMusic < 100) {
_global.tempBarMusic = _global.tempBarMusic + 25;
_root.options.buttons.volume_bar_music.vol_music.gotoAndStop(_global.tempBarMusic);
_global.music.volume = _global.tempBarMusic;
_global.music.off = false;
var _local3 = 0;
while (_local3 <= 4) {
_global.music[1].setVolume((70 * _global.tempBarMusic) / 100);
_local3++;
}
}
if (_global.tempBarMusic > 0) {
_global.music.off = false;
_global.musicOff = false;
}
};
sminus.onPress = function () {
trace("volume_bar.vol " + volume_bar.vol);
if (_global.tempBar > 0) {
_global.tempBar = _global.tempBar - 25;
_root.options.buttons.volume_bar.vol.gotoAndStop(_global.tempBar);
_global.sound.volume = _global.tempBar;
snd.setVolume((snd.initalVol * _global.tempBar) / 100);
}
if (_global.tempBar == 0) {
_root.options.buttons.volume_bar.vol.gotoAndStop(1);
_global.sound.off = true;
_global.off = true;
_global.sviri = false;
}
};
splus.onPress = function () {
trace("volume_bar.vol " + volume_bar.vol);
if (_global.tempBar < 100) {
_global.tempBar = _global.tempBar + 25;
_root.options.buttons.volume_bar.vol.gotoAndStop(_global.tempBar);
_global.sound.volume = _global.tempBar;
snd.setVolume((snd.initalVol * _global.tempBar) / 100);
_global.sound.off = false;
}
if (_global.tempBar > 0) {
_global.sound.off = false;
_global.off = false;
_global.sviri = true;
}
};
Symbol 5679 MovieClip Frame 3
if (_global.stage.game.invalidState == true) {
this._parent.gotoAndStop("explode");
}
Symbol 5681 MovieClip Frame 1
if (_global.stage.game.invalidState == true) {
this._parent.gotoAndStop("explode");
}
Symbol 5681 MovieClip Frame 18
this._parent.removeMovieClip();
stop();
Symbol 5730 MovieClip Frame 6
_global.stage.game.starSound();
Symbol 5730 MovieClip Frame 26
_global.stage.game.starSoundStop();
this._parent.removeMovieClip();
Symbol 5731 MovieClip [zvezda] Frame 1
stop();
Symbol 5731 MovieClip [zvezda] Frame 2
stop();
Symbol 5731 MovieClip [zvezda] Frame 3
stop();
Symbol 5767 MovieClip [sunrise_mc _tutorial] Frame 1
_global.music[1].stop();
_global.music[2].start();
_global.music[2].setVolume(_global.tempBarMusic);
Symbol 5767 MovieClip [sunrise_mc _tutorial] Frame 58
Symbol 5767 MovieClip [sunrise_mc _tutorial] Frame 120
_root.attachMovie("stage", "stage", 2);
Symbol 5767 MovieClip [sunrise_mc _tutorial] Frame 127
_root.sunrise_mc_tutorial.removeMovieClip();
stop();
Symbol 5770 MovieClip [sunrise_mc_poceten] Frame 1
_global.music[1].stop();
_global.music[2].start();
_global.music[2].setVolume(_global.tempBarMusic);
Symbol 5770 MovieClip [sunrise_mc_poceten] Frame 58
Symbol 5770 MovieClip [sunrise_mc_poceten] Frame 120
_global.path.attachMovie("room", "soba", 16000, {_x:0, _y:0, _xscale:100, _yscale:100});
Symbol 5770 MovieClip [sunrise_mc_poceten] Frame 127
_global.path.sunrise_mc_poceten.removeMovieClip();
stop();
Symbol 5773 MovieClip [weekend_sunrise_mc] Frame 1
_global.music[1].stop();
_global.music[2].start();
_global.music[2].setVolume(_global.tempBarMusic);
Symbol 5773 MovieClip [weekend_sunrise_mc] Frame 58
Symbol 5773 MovieClip [weekend_sunrise_mc] Frame 120
trace("_global.dayCount " + _global.dayCount);
if (_global.dayCount == 10) {
_global.path.attachMovie("DEMO", "DEMO", 16000, {_x:0, _y:0});
} else {
_global.path.attachMovie("room", "soba", 16000, {_x:0, _y:0, _xscale:100, _yscale:100});
}
Symbol 5773 MovieClip [weekend_sunrise_mc] Frame 127
this.removeMovieClip();
stop();
Symbol 5774 MovieClip [day] Frame 1
_global.music[1].stop();
_global.music[2].start();
_global.music[2].setVolume(_global.tempBarMusic);
Symbol 5774 MovieClip [day] Frame 58
Symbol 5774 MovieClip [day] Frame 120
_global.path.attachMovie("room", "soba", 16000, {_x:0, _y:0, _xscale:100, _yscale:100});
Symbol 5774 MovieClip [day] Frame 127
this.removeMovieClip();
stop();
Symbol 5825 MovieClip Frame 1
this._visible = false;
Symbol 5834 Button
on (release) {
gameURL = ("http://www.miniclip.com/games/" + gamename) + "/en/";
trace("Going to game: " + gameURL);
getURL (gameURL, "_blank");
}
Symbol 5836 MovieClip Frame 1
System.security.allowDomain("www.miniclip.com");
Instance of Symbol 5825 MovieClip "mcHighscores" in Symbol 5836 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 5836 MovieClip Frame 2
if ((((_url.indexOf("miniclip.com") == -1) && (_url.indexOf("miniclip.net") == -1)) && (_url.indexOf("miniclip.co.uk") == -1)) && (_url.indexOf("miniclips.com"))) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
mcTarget.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?noCache=" + noCache);
stop();
}
Symbol 5836 MovieClip Frame 3
stop();
Symbol 5837 MovieClip [DEMO] Frame 1
stop();
Instance of Symbol 5810 MovieClip in Symbol 5837 MovieClip [DEMO] Frame 1
on (release) {
_global.music[0].stop();
_global.music[1].start(0, 32768);
_global.music[1].setVolume(_global.tempBarMusic);
_global.mouse.removeMouseListener();
delete _global.mouse;
_global.keyboard.removeKeyboardListener();
delete _global.keyboard;
_global.pausePress = true;
_global.path.timer.stop();
_root.attachMovie("start_screen", "start_screen", 1);
_root.attachMovie("cursor", "cursor", 21000);
_root.cursor.cacheAsBitmap = true;
startDrag (_root.cursor, true);
Mouse.hide();
_root.stage.removeMovieClip();
_root.weekendMenu.removeMovieClip();
}
Instance of Symbol 5815 MovieClip in Symbol 5837 MovieClip [DEMO] Frame 1
on (press) {
getURL (_global.buygamelink, "_blank");
}
Instance of Symbol 5819 MovieClip in Symbol 5837 MovieClip [DEMO] Frame 1
on (press) {
_root.scoreminiclip = Math.round(_global.money + (_global.socialRating2 * 100));
trace("_root.scoreminiclip " + _root.scoreminiclip);
this._parent.gotoAndStop(2);
}
Symbol 5837 MovieClip [DEMO] Frame 2
stop();
Instance of Symbol 5819 MovieClip in Symbol 5837 MovieClip [DEMO] Frame 2
on (press) {
}
Instance of Symbol 5836 MovieClip "comHighscores" in Symbol 5837 MovieClip [DEMO] Frame 2
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.scoreminiclip";
gamename = "kindergarten";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Symbol 5839 Button
on (press) {
getURL ("http://www.youdagames.com", "_blank");
}
Symbol 5861 MovieClip Frame 75
this._parent.gotoAndStop("game");
Symbol 5863 MovieClip [popUp55] Frame 17
stop();
Symbol 5866 MovieClip [prekidac] Frame 1
stop();
Symbol 5866 MovieClip [prekidac] Frame 8
stop();
Symbol 5867 MovieClip Frame 1
stop();
Instance of Symbol 5211 MovieClip [buybed] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5216 MovieClip [buybed2] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5222 MovieClip [buybed3] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5227 MovieClip [buybox] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5232 MovieClip [buybox2] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5237 MovieClip [buybox3] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5250 MovieClip [buycher1] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5261 MovieClip [buycher2] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5271 MovieClip [buycher3] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5276 MovieClip [Mixer1] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5282 MovieClip [Mixer2] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5288 MovieClip [Mixer3] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5293 MovieClip [plant1] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5298 MovieClip [plant2] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5304 MovieClip [horseForBuy1] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5309 MovieClip [horseForBuy2] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5314 MovieClip [horseForBuy3] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5320 MovieClip [boxForBuy3] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5325 MovieClip [BoxForBuy2] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5211 MovieClip [buybed] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5216 MovieClip [buybed2] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5222 MovieClip [buybed3] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5227 MovieClip [buybox] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5232 MovieClip [buybox2] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5237 MovieClip [buybox3] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5250 MovieClip [buycher1] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5261 MovieClip [buycher2] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5271 MovieClip [buycher3] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5276 MovieClip [Mixer1] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5282 MovieClip [Mixer2] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5288 MovieClip [Mixer3] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5293 MovieClip [plant1] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5298 MovieClip [plant2] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5304 MovieClip [horseForBuy1] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5309 MovieClip [horseForBuy2] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5314 MovieClip [horseForBuy3] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5320 MovieClip [boxForBuy3] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Instance of Symbol 5325 MovieClip [BoxForBuy2] in Symbol 5867 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
cash = "";
id = "";
identity = "";
name = "";
SocialRating = "";
}
Symbol 5867 MovieClip Frame 5
stop();
Symbol 5877 MovieClip Frame 99
this._parent.gotoAndStop("game");