Frame 1
stop();
_root.plays._visible = false;
_root.musicBtn._visible = false;
_root.soundready = false;
_root.sound1 = new Sound();
_root.musicBtn.gotoAndStop(2);
_root.sound1 = new Sound();
Frame 2
_root.plays._alpha = 0;
_root.musicBtn._alpha = 0;
Frame 19
stop();
user_so = SharedObject.getLocal("user");
if (user_so.data.datas == "loadData") {
btnLoad._visible = true;
newgame._visible = true;
plays._visible = false;
} else {
plays._visible = true;
newgame._visible = false;
btnLoad._visible = false;
}
_root.sound9 = new Sound();
_root.sound9.attachSound("btnSnd");
_root.plays._alpha = 100;
_root.musicBtn._alpha = 100;
_root.level = false;
_root.newPaused = false;
if (!_root.soundready) {
_root.musicBtn.gotoAndStop(2);
_root.musicBtn1.gotoAndStop(2);
}
if (_root.soundready) {
_root.musicBtn.gotoAndStop(1);
_root.musicBtn1.gotoAndStop(1);
}
if (_root.soundready == false) {
_root.musicBtn.gotoAndStop(2);
_root.musicBtn1.gotoAndStop(2);
_root.sound1.start();
_root.sound1.onSoundComplete = function () {
_root.sound1.start();
};
} else {
_root.musicBtn.gotoAndStop(1);
_root.musicBtn1.gotoAndStop(1);
}
_root.scored = 0;
Frame 20
function initLevel() {
_root.henseedprice = 3;
_root.cowseedprice = 10;
_root.pigseedprice = 10;
_root.henprice = 10;
_root.cowprice = 25;
_root.pigprice = 30;
_root.EggPrices = 3;
_root.MilkPrices = 10;
_root.MeatPrices = 10;
_root.freezerPrice = 500;
_root.toasterPrice = 1000;
_root.ovenPrice = 2000;
_root.pastryPrice = 32;
_root.icecreamPrice = 38;
_root.cutletPrice = 40;
_root.sandwitchPrice = 56;
_root.meatrollPrice = 76;
_root.cakePrice = 103;
_root.total = 0;
_root.mansionPrice = 10000;
_root.dayDialogsPress = false;
_root.closeBtn1.enabled = false;
_root.closeBtn1.gotoAndStop(2);
_root.eggGiven = 0;
_root.milkGiven = 0;
_root.meatGiven = 0;
_root.cakeGiven = 0;
_root.icecreamGiven = 0;
_root.meatrollGiven = 0;
_root.sandwitchGiven = 0;
_root.pastryGiven = 0;
_root.cutletGiven = 0;
_root.henseedBought = 0;
_root.cowseedBought = 0;
_root.pigseedBought = 0;
_root.henBought = 0;
_root.cowBought = 0;
_root.pigBought = 0;
_root.freezerBought = 0;
_root.toasterBought = 0;
_root.ovenBought = 0;
_root.totalmoneylevel = 0;
_root.freezePoint = false;
_root.toastPoint = false;
_root.ovenPoint = false;
_root.pastrySell = false;
_root.iceSell = false;
_root.cutletSell = false;
_root.meatrollSell = false;
_root.sandwitchSell = false;
_root.cakeSell = false;
_root.meat._visible = false;
_root.egg._visible = false;
_root.milk._visible = false;
_root.kitchen._visible = false;
_root.pauseMenu._visible = false;
_root.sound2 = new Sound();
_root.sound2.attachSound("click");
_root.sound3 = new Sound();
_root.sound3.attachSound("tileClick");
_root.sound4 = new Sound();
_root.sound4.attachSound("digging");
_root.sound5 = new Sound();
_root.sound5.attachSound("pour");
_root.sound6 = new Sound();
_root.sound6.attachSound("watering");
_root.sound7 = new Sound();
_root.sound7.attachSound("levelup");
_root.sound8 = new Sound();
_root.sound8.attachSound("money");
_root.sound9 = new Sound();
_root.sound9.attachSound("btnSnd");
_root.sound10 = new Sound();
_root.sound10.attachSound("btnSnd");
_root.sound11 = new Sound();
_root.sound11.attachSound("clickItemSnd");
_root.sound12 = new Sound();
_root.sound12.attachSound("lose");
_root.walkDirect = false;
_root.instructions._visible = false;
_root.instructions.removeMovieClip();
_root.Paused = false;
_root.tiletaken = false;
_root.dayDialog._visible = false;
_root.cnounts = 0;
_root.hencount = 0;
_root.hencounts = 0;
_root.cowcounts = 0;
_root.cowcount = 0;
_root.pigcounts = 0;
_root.pigcount = 0;
_root.eggjum = 1;
_root.milkjum = 1;
_root.meatjum = 1;
_root.pasteMilk = 0;
_root.pasteEgg = 0;
_root.pasteMeat = 0;
_root.pastryEggNum = 1;
_root.pastryMilkNum = 1;
_root.iceMilkNum = 1;
_root.iceEggNum = 2;
_root.cutletMeatNum = 2;
_root.cutletEggNum = 1;
_root.meatrollMeatNum = 2;
_root.meatrollEggNum = 2;
_root.sandwitchMeatNum = 1;
_root.sandwitchEggNum = 4;
_root.cakeMilkNum = 2;
_root.cakEggNum = 5;
_root.timers = 0;
_root.tut._visible = false;
_root.tut.removeMovieClip();
_root.takeRack = false;
_root.storeBtn.frame = 1;
_root.stars.frame = 1;
_root.del.frame = 1;
_root.tutor.frame = 1;
_root.starCount = 0;
_root.countEgg = 0;
_root.countMilk = 0;
_root.countMeat = 0;
_root.tookItem = 0;
_root.meatNum = 0;
_root.dollar._visible = false;
_root.diggerPress = false;
_root.cowCount1 = false;
_root.tookFood = false;
_root.cowCount2 = false;
_root.tookFood = false;
_root.startAction = false;
_root.marks1 = false;
_root.nums = 1;
_root.dialogPressOk = false;
_root.girl.items1.gotoAndStop(14);
_root.girl.items1.bar.gotoAndStop(1);
_root.girl.bar.gotoAndStop(1);
_root.number = 0;
_root.tookItem = 0;
_root.cowTimer1 = 0;
_root.cowTimer2 = 0;
_root.cowsfoods = false;
_root.pigsfoods = false;
_root.price._visible = false;
_root.timer = 0;
_root.waterCount = 10;
_root.eggCounts = "";
_root.meatCounts = "";
_root.cowCounts1 = "";
_root.cowCounts2 = "";
_root.cowCounts3 = "";
_root.cowCounts = 0;
_root.currentPos = "S1";
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.waters = false;
_root.diggers = false;
_root.serving = false;
_root.shop._visible = false;
_root.shop.gotoAndStop(1);
_root.cowFoods._visible = false;
_root.cowFoods.mark._visible = false;
_root.pigFoods._visible = false;
_root.pigFoods.mark._visible = false;
_root.henFoods.mark._visible = false;
_root.house.mark._visible = false;
_root.arrayTile = new Array();
_root.henFood.gotoAndPlay(1);
_root.henFood.mark._visible = false;
_root.henfoodie._visible = false;
_root.speed = 19;
_root.bucket.mark._visible = false;
_root.digger.mark._visible = false;
_root.collectbox.mark._visible = false;
_root.well.mark._visible = false;
var _local2 = 1;
while (_local2 < 4) {
_root["cow" + _local2].count = 0;
_root["cow" + _local2].grow = false;
_root["cow" + _local2].times = 0;
_root["cow" + _local2].timer = true;
_root["cow" + _local2].times1 = 0;
_root["cowFoodGiven" + _local2] = false;
_root["cowfoodItem" + _local2] = false;
_root["cow" + _local2]._visible = false;
_root["cow_Box" + _local2]._visible = false;
_root["cowFood" + _local2]._visible = false;
_root["cowFood" + _local2].mark._visible = false;
_local2++;
}
_root.arrayHold = new Array();
_root.arrayHold.splice(0);
_root.hencnt = 2;
_root.cowcnt = 0;
_root.pigcnt = 0;
_local2 = 1;
while (_local2 < 3) {
_root["pig" + _local2].count = 0;
_root["pig" + _local2].grow = false;
_root["pig" + _local2].times = 0;
_root["pig" + _local2].timer = true;
_root["pig" + _local2].times1 = 0;
_root["pigFoodGiven" + _local2] = false;
_root["pigfoodItem" + _local2] = false;
_root["pig" + _local2]._visible = false;
_root["pig_Box" + _local2]._visible = false;
_root["pigFood" + _local2]._visible = false;
_root["pigFood" + _local2].mark._visible = false;
_root["pig" + _local2]._visible = false;
_local2++;
}
_root.bucket.isWell = true;
_local2 = 1;
while (_local2 < 3) {
_root["hen" + _local2].count = 0;
_root["hen" + _local2].grow = false;
_root["hen" + _local2].times = 0;
_root["hen" + _local2].timer = true;
_root["hen" + _local2].times1 = 0;
_local2++;
}
_local2 = 3;
while (_local2 < 6) {
_root["hen" + _local2].count = 0;
_root["hen" + _local2].grow = false;
_root["hen" + _local2].times = 0;
_root["hen" + _local2].times1 = 0;
_root["hen" + _local2]._visible = false;
_local2++;
}
_local2 = 1;
while (_local2 < 4) {
_root["milk" + _local2].mark._visible = false;
_local2++;
}
_root.egg.mark._visible = false;
_root.meat.mark._visible = false;
_local2 = 1;
while (_local2 < 31) {
_root["tile" + _local2].cnt = 0;
_root["tile" + _local2].barpnt._visible = false;
_root["tile" + _local2].mark._visible = false;
_root["tile" + _local2].needwater = false;
_root["tile" + _local2].waterboard.gotoAndStop(1);
_root["tile" + _local2].waterboard._visible = false;
_root["main" + _local2]._visible = false;
_root["tiles" + _local2].number = 0;
_local2++;
}
_root.scores1 = "";
_root.bucketCount = 1;
_root.bucket.gotoAndStop(2);
_root.xPOs = new Array();
_root.xPos = [169.2, 219.2, 269.2, 319.2, 369.2, 419.2, 469.2, 519.2];
_root.yPOs = new Array();
_root.yPos = [98.2, 148.2, 198.2, 248.2, 298.2, 348.2, 398.2];
_root.currentNodex = 219.2;
_root.currentNodey = 198.2;
_root.girl._x = 219.2;
_root.girl._y = 198.2;
_root.countFood1 = 9;
_root.countFood2 = "";
_root.countFood3 = "";
_root.girlMoves = false;
_root.arrayDestNodeX = new Array();
_root.arrayDestNodeY = new Array();
_root.hensfoods = false;
_root.henFoodGiven = false;
_root.eggNum = 0;
_root.icecreamCount = 0;
_root.meatrollCount = 0;
_root.pastryCount = 0;
_root.cutletCount = 0;
_root.sandwitchCount = 0;
_root.cakeCount = 0;
_root.destinationNodex = undefined;
_root.destinationNodey = undefined;
_root.girl.items1.gotoAndStop(14);
_root.itm = 14;
_root.girl.items1.gotoAndStop(14);
_root.itm = 14;
_root.diggerPressed = false;
_root.dollar._visible = false;
_root.score = "";
_root.watersupply = false;
_root.timeSetToClose = 0;
}
function endDays() {
if (_root.scores == 0) {
_root.scor = _root.scores;
} else {
_root.scor = "$" + _root.scores;
}
_root.attachMovie("levels", "levelups", 1000, {_x:314, _y:220});
_root.levelups._visible = true;
_root.levelups.gotoAndPlay(1);
_root.eggPr = _root.eggGiven * _root.EggPrices;
_root.milkPr = _root.milkGiven * _root.MilkPrices;
_root.meatPr = _root.meatGiven * _root.MeatPrices;
_root.SeedHen = _root.henseedBought * _root.henseedprice;
_root.SeedCow = _root.cowseedBought * _root.cowseedprice;
_root.SeedPig = _root.pigseedBought * _root.pigseedprice;
_root.Hentot = _root.henBought * _root.henprice;
_root.Cowtot = _root.cowBought * _root.cowprice;
_root.Pigtot = _root.pigBought * _root.pigprice;
_root.totalFreezes = _root.freezerBought * _root.freezerPrice;
_root.totalToasters = _root.toasterBought * _root.toasterPrice;
_root.totalOvens = _root.ovenBought * _root.ovenPrice;
_root.pastetot = _root.pastryGiven * _root.pastryPrice;
_root.icetot = _root.icecreamGiven * _root.icecreamPrice;
_root.meatrolltot = _root.meatrollGiven * _root.meatrollPrice;
_root.cutlettot = _root.cutletGiven * _root.cutletPrice;
_root.sandtot = _root.sandwitchGiven * _root.sandwitchPrice;
_root.caketot = _root.cakeGiven * _root.cakePrice;
_root.earn = (((((((_root.eggPr + _root.milkPr) + _root.meatPr) + _root.pastetot) + _root.icetot) + _root.meatrolltot) + _root.cutlettot) + _root.sandtot) + _root.caketot;
_root.spends = (((((((_root.SeedHen + _root.SeedCow) + _root.SeedPig) + _root.Hentot) + _root.Cowtot) + _root.Pigtot) + _root.totalFreezes) + _root.totalToasters) + _root.totalOvens;
_root.earnedMoney = "$" + _root.earn;
_root.spendMoney = "$" + _root.spends;
_root.totalmoneylevel = "$" + (_root.earn - _root.spends);
_root.levels++;
_root.sound7.start();
_root.Paused = true;
_root.dayDialogsPress = false;
}
function action() {
if (_root.Paused == false) {
Pressed();
cowTimer();
ItemsPressed();
_root.setTimes = true;
setTimer();
if (_root.arrayHold.length > 0) {
if (_root.startAction == false) {
arrayMoves();
}
}
if (_root.girlMoves == false) {
girlMovement();
}
if (_root.eggPrice == true) {
_root.price.gotoAndStop(1);
_root.price._visible = false;
_root.eggPrice = false;
}
if (_root.milkPrice == true) {
_root.price.gotoAndStop(1);
_root.price._visible = false;
_root.milkPrice = false;
}
if (_root.meatPrice == true) {
_root.price.gotoAndStop(1);
_root.price._visible = false;
_root.meatPrice = false;
}
if (_root.henfoodItem) {
relievingPlants();
}
if (_root.cowfoodItem1) {
relievingGrass(1);
}
if (_root.cowfoodItem2) {
relievingGrass(2);
}
if (_root.cowfoodItem3) {
relievingGrass(3);
}
if (_root.pigfoodItem1) {
relievingWheat(1);
}
if (_root.pigfoodItem2) {
relievingWheat(2);
}
pigTimimg();
cowTimimg();
henTimimg();
growingPlants();
gameOver();
tutorPress();
if (_root.watersupply == true) {
if (_root.timers == _root.timeForWaters) {
_root.girl.gotoAndStop("watermiddle");
_root.watersupply = false;
}
}
}
}
function tutorPress() {
_root.tutor.onPress = function () {
if (_root.soundready == false) {
_root.sound9.start();
}
_root.menuItem = false;
var _local3 = 1;
while (_local3 < 31) {
_root["tiles" + _local3]._visible = false;
_root["tile" + _local3].enabled = false;
_root["tiles" + _local3].enabled = false;
_local3++;
}
_root.stars.enabled = false;
_root.del.enabled = false;
_root.helps.enabled = false;
_root.pauses.enabled = false;
_root.storeBtn.enabled = false;
_root.Paused = true;
_root.attachMovie("tutors", "tut", 1000, {_x:310, _y:220});
_root.tut._visible = true;
_root.tut.gotoAndStop(1);
_root.tut.gotoAndPlay(2);
_local3 = 1;
while (_local3 < 12) {
_root["phase" + _local3] = false;
_local3++;
}
this.enabled = false;
};
}
function gameOver() {
if ((((((((((_root.hen1._visible == false) && (_root.hen2._visible == false)) && (_root.hen3._visible == false)) && (_root.hen4._visible == false)) && (_root.hen5._visible == false)) && (_root.cow1._visible == false)) && (_root.cow2._visible == false)) && (_root.cow3._visible == false)) && (_root.pig1._visible == false)) && (_root.pig2._visible == false)) {
if (_root.scores < 10) {
gameoverStart();
}
}
}
function gameoverStart() {
user_so.data.datas = "";
_root.pauseMenu._visible = false;
_root.pauseMenu.removeMovieClip();
_root.shop._visible = false;
_root.shop.removeMovieClip();
_root.kitchen.removeMovieClip();
_root.star1.removeMovieClip();
_root.starPress = false;
_root.deletPress = false;
_root.dels.removeMovieClip();
_root.tut.removeMovieClip();
_root.instructions._visible = false;
_root.instructions.removeMovieClip();
_root.gotoAndPlay("gameover");
}
function changeTiles() {
var _local3 = 1;
while (_local3 < 31) {
if ((_root["tile" + _local3]._currentframe == 1) || (_root["tile" + _local3]._currentframe == 3)) {
if (_root.tilecopy.hitTest(_root["tile" + _local3].hit)) {
_root.tileName = _root["tile" + _local3];
if (_root.marks1 == true) {
_root.arrayHold[_root.dds] = _local3;
}
_root.tilecopy.onPress = function () {
_root.tileName.gotoAndStop(this._currentframe);
this.removeMovieClip();
_root.tileName.count = _root.contTile;
_root.tileName.val = 80;
_root.tileName.cnt = _root.cntTile;
_root.tileName.times = 0;
_root.tileName.sets = 1;
_root.tileName.waters = _root.cntwater;
_root.tileName.timeIterval = true;
_root.tileName.needwater = _root.cntwaterFlag;
if (_root.tileName.needwater == true) {
_root.tileName.waterboard._visible = true;
_root.tileName.waterboard.gotoAndStop(5);
} else {
_root.tileName.waterboard._visible = false;
_root.tileName.waterboard.gotoAndStop(1);
}
if (_root.marks1 == true) {
_root.tileName.mark._visible = true;
} else {
_root.tileName.mark._visible = false;
}
_root.marks1 = false;
_root.tileName = "";
_root.tiletaken = false;
};
}
}
_local3++;
}
}
function setTimer() {
if (_root.setTimes) {
_root.timer++;
_root.timers++;
if (_root.timer == 40) {
_root.times.gotoAndStop(_root.times._currentframe + 1);
if (_root.times._currentframe == 65) {
_root.storeBtn.enabled = false;
_root.stars.enabled = false;
_root.del.enabled = false;
_root.helps.enabled = false;
_root.tutor.enabled = false;
_root.tut.removeMovieClip();
_root.dayDialogsPress = true;
_root.girl.gotoAndStop(_root.girl._currentframe);
var _local2 = 1;
while (_local2 < 31) {
_root["tiles" + _local2]._visible = false;
_root["tile" + _local2].enabled = false;
_root["tiles" + _local2].enabled = false;
_local2++;
}
_root.dayDialog._visible = true;
_root.Paused = true;
_root.setTimes = false;
}
_root.timer = 0;
}
}
}
function Pressed() {
if (_root.Paused == false) {
var _local4 = 1;
while (_local4 < 31) {
_root["tiles" + _local4].onRollOver = function () {
if (_root.Paused == false) {
var _local3 = Number(String(this).substring(13, 16));
_root.useHandCursor = true;
_root["tile" + _local3].barpnt._visible = true;
if ((_root["tile" + _local3].waters >= 0) && (_root["tile" + _local3].waters < 300)) {
_root["tile" + _local3].barpnt.gotoAndStop(1);
} else if ((_root["tile" + _local3].waters >= 300) && (_root["tile" + _local3].waters < 600)) {
_root["tile" + _local3].barpnt.gotoAndStop(10);
} else if ((_root["tile" + _local3].waters >= 600) && (_root["tile" + _local3].waters < 1000)) {
_root["tile" + _local3].barpnt.gotoAndStop(20);
} else if (_root["tile" + _local3].waters >= 1000) {
_root["tile" + _local3].barpnt.gotoAndStop(25);
}
this.gotoAndStop(2);
}
};
_root["tiles" + _local4].onRollOut = function () {
if (_root.Paused == false) {
_root.useHandCursor = true;
var _local3 = Number(String(this).substring(13, 16));
this.gotoAndStop(1);
_root["tile" + _local3].barpnt._visible = false;
}
};
_root["tiles" + _local4].onPress = function () {
if (_root.Paused == false) {
var _local3 = 1;
while (_local3 < 31) {
_local3++;
}
this.number++;
_root.girlMoves = false;
_root.waterbottle.gotoAndStop(1);
var _local4 = Number(String(this).substring(13, 16));
_root.destinationNode = "G" + _local4;
_root["tile" + _local4].barpnt._visible = false;
_root.arrayHold.push(_local4);
if (_root.soundready == false) {
_root.sound3.start();
}
_root["tile" + _local4].mark._visible = true;
if (_root.diggerPressed == true) {
}
}
};
_local4++;
}
}
}
function produce(s) {
if (_root["timeSetForFood" + s] == true) {
_root["timeSet" + s]++;
if (_root["timeSet" + s] == 15) {
_root["tile" + s].gotoAndStop(nextFrame);
}
}
}
function girlMovement() {
if ((_root.currentNodey == _root.destinationNodey) || (_root.currentNodex == _root.destinationNodex)) {
if (_root.currentNodey == _root.destinationNodey) {
if (_root.currentNodex < _root.destinationNodex) {
if (Math.round(_root.girl._x) >= Math.round(_root.destinationNodex)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("rightItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("rightItem");
_root.walkDirect = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.setDigger = true;
_root["diggs" + _root.itm] = true;
_root.diggerPressed = false;
} else {
_root.girl.gotoAndPlay("right");
_root.walkDirect = true;
}
_root.girlpaused = true;
}
_root.girl._x = _root.girl._x + _root.speed;
}
} else if (Math.round(_root.girl._x) <= Math.round(_root.destinationNodex)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("leftItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("leftItem");
_root.walkDirect = true;
_root.setDigger = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.diggerPressed = false;
_root["diggs" + _root.itm] = true;
} else {
_root.girl.gotoAndPlay("left");
_root.walkDirect = true;
}
_root.girlpaused = true;
}
_root.girl._x = _root.girl._x - _root.speed;
}
} else if (_root.currentNodex == _root.destinationNodex) {
if (_root.currentNodey < _root.destinationNodey) {
if (Math.round(_root.girl._y) >= Math.round(_root.destinationNodey)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused1 == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("frontItem");
_root.walkDirect = true;
_root.diggerPressed = false;
_root.setDigger = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
} else {
_root.girl.gotoAndPlay("front");
_root.walkDirect = true;
}
_root.girlpaused1 = true;
}
_root.girl._y = _root.girl._y + _root.speed;
}
} else if (Math.round(_root.girl._y) <= Math.round(_root.destinationNodey)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused1 == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("backItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("backItem");
_root.walkDirect = true;
_root.setDigger = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.diggerPressed = false;
_root["diggs" + _root.itm] = true;
} else {
_root.girl.gotoAndPlay("back");
_root.walkDirect = true;
}
_root.girlpaused1 = true;
}
_root.girl._y = _root.girl._y - _root.speed;
}
}
} else if (_root.currentNodey < _root.destinationNodey) {
if (Math.round(_root.girl._y) >= Math.round(_root.destinationNodey)) {
if (_root.currentNodex < _root.destinationNodex) {
if (Math.round(_root.girl._x) >= Math.round(_root.destinationNodex)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("rightItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("rightItem");
_root.walkDirect = true;
_root.setDigger = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.diggerPressed = false;
_root["diggs" + _root.itm] = true;
} else {
_root.girl.gotoAndPlay("right");
_root.walkDirect = true;
}
_root.girlpaused = true;
}
_root.girl._x = _root.girl._x + _root.speed;
}
} else if (Math.round(_root.girl._x) <= Math.round(_root.destinationNodex)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("leftItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("leftItem");
_root.walkDirect = true;
_root.setDigger = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.diggerPressed = false;
} else {
_root.girl.gotoAndPlay("left");
_root.walkDirect = true;
}
_root.girlpaused = true;
}
_root.girl._x = _root.girl._x - _root.speed;
}
} else {
if (_root.girlpaused1 == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("frontItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.walkDirect = true;
_root.setDigger = true;
_root.diggerPressed = false;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
} else {
_root.girl.gotoAndPlay("front");
_root.walkDirect = true;
}
_root.girlpaused1 = true;
}
_root.girl._y = _root.girl._y + _root.speed;
}
} else if (_root.currentNodey > _root.destinationNodey) {
if (Math.round(_root.girl._y) <= Math.round(_root.destinationNodey)) {
if (_root.currentNodex < _root.destinationNodex) {
if (Math.round(_root.girl._x) >= Math.round(_root.destinationNodex)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("rightItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("rightItem");
_root.walkDirect = true;
_root.setDigger = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.diggerPressed = false;
_root["diggs" + _root.itm] = true;
} else {
_root.girl.gotoAndPlay("right");
_root.walkDirect = true;
}
_root.girlpaused = true;
}
_root.girl._x = _root.girl._x + _root.speed;
}
} else if (Math.round(_root.girl._x) <= Math.round(_root.destinationNodex)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("leftItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("leftItem");
_root.walkDirect = true;
_root.setDigger = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.diggerPressed = false;
_root["diggs" + _root.itm] = true;
} else {
_root.girl.gotoAndPlay("left");
_root.walkDirect = true;
}
_root.girlpaused = true;
}
_root.girl._x = _root.girl._x - _root.speed;
}
} else {
if (_root.girlpaused1 == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("backItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.gotoAndPlay("backItem");
_root.walkDirect = true;
_root.girl.items1.imt1.mark._visible = false;
_root.girl.items1.gotoAndStop(_root.itm);
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.setDigger = true;
_root.diggerPressed = false;
_root["diggs" + _root.itm] = true;
} else {
_root.girl.gotoAndPlay("back");
_root.walkDirect = true;
}
_root.girlpaused1 = true;
}
_root.girl._y = _root.girl._y - _root.speed;
}
}
}
function correctPlace() {
var _local3 = 1;
while (_local3 < 31) {
_local3++;
}
_root.setDigger = false;
_root.currentNodex = _root.girl._x;
_root.currentNodey = _root.girl._y;
_root.girl._x = _root.destinationNodex;
_root.girl._y = _root.destinationNodey;
_root.girl.gotoAndStop(1);
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = true;
_root.arrayDestNodeX = [219, 269, 319, 369, 419, 469, 219, 269, 319, 369, 419, 469, 219, 269, 319, 369, 419, 469, 219, 269, 319, 369, 419, 469, 219, 269, 319, 369, 419, 469];
_root.arrayDestNodeY = [148, 148, 148, 148, 148, 148, 198, 198, 198, 198, 198, 198, 248, 248, 248, 248, 248, 248, 298, 298, 298, 298, 298, 298, 348, 348, 348, 348, 348, 348];
var _local2 = 0;
while (_local2 < _root.arrayDestNodeX.length) {
if (_root.arrayDestNodeX[_local2] == Math.round(_root.destinationNodex)) {
if (_root.arrayDestNodeY[_local2] == Math.round(_root.destinationNodey)) {
_root.tile = _local2 + 1;
break;
}
}
_local2++;
}
_root.xPos = [169.2, 219.2, 269.2, 319.2, 369.2, 419.2, 469.2, 519.2];
_root.yPos = [98.2, 148.2, 198.2, 248.2, 298.2, 348.2, 398.2];
reachItems();
reachItemswithTile();
}
function reachItems() {
if (itemTook == 1) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(1);
_root.itm = 1;
_root.tookItem = 1;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.walkDirect1 = false;
_root.walkDirect2 = false;
_root.walkDirect3 = false;
}
}
if (itemTook == 2) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(5);
if (_root.bucket.isWell == true) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
}
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.itm = 5;
_root.tookItem = 2;
_root.diggerPressed = true;
_root.walkDirect1 = false;
_root.walkDirect2 = false;
_root.walkDirect3 = false;
}
}
if (itemTook == 3) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(2);
_root.itm = 2;
_root.tookItem = 3;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.walkDirect1 = false;
_root.walkDirect2 = false;
_root.walkDirect3 = false;
}
}
if (itemTook == 4) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.tookEggs == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(11);
_root.itm = 11;
_root.tookItem = 4;
_root.tookEggs = false;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
} else if (_root.tookMilks == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(12);
_root.itm = 12;
_root.tookMilks = false;
_root.tookItem = 4;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
} else if (_root.tookMeats == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(13);
_root.itm = 13;
_root.tookMeats = false;
_root.tookItem = 4;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
} else if (_root.hensfoods1 == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
_root.tookItem = 4;
_root.hensfoods1 = false;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
} else if (_root.pigsfoods1 == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(9);
_root.itm = 9;
_root.tookItem = 4;
_root.pigsfoods1 = false;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
} else if (_root.cowsfoods1 == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(10);
_root.itm = 10;
_root.cowsfoods1 = false;
_root.tookItem = 4;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.tookItem = 4;
_root.diggerPressed = true;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
}
}
}
if (itemTook == 5) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(3);
_root.itm = 3;
_root.tookItem = 5;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.walkDirect1 = false;
_root.walkDirect2 = false;
_root.walkDirect3 = false;
}
}
if (itemTook == 6) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(4);
_root.itm = 4;
_root.tookItem = 6;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.walkDirect1 = false;
_root.walkDirect2 = false;
_root.walkDirect3 = false;
}
}
if (_root.wellPressed == true) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.tookItem == 2) {
if (_root.waterCount == 10) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(5);
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.bar.gotoAndStop(_root.nums);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.itm = 5;
_root.wellPressed = false;
_root.diggerPressed = true;
} else {
_root.waterCount = 10;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(5);
_root.itm = 5;
_root.wellPressed = false;
_root.bucket.isWell = true;
_root.girl.bar.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(1);
_root.waterbottle.gotoAndPlay(1);
_root.nums = 0;
_root.itm = 5;
_root.diggerPressed = true;
}
} else {
if (_root.cowsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
}
if (_root.hensfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(10);
_root.itm = 10;
}
if (_root.pigsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(9);
_root.itm = 9;
}
if (_root.tookMilk == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(12);
_root.itm = 12;
}
if (_root.tookEgg == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(11);
_root.itm = 11;
}
if (_root.tookMeat == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(13);
_root.itm = 13;
}
}
}
}
if (_root.henFoodGiven == true) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.tookItem == 4) {
if ((_root.henFood._visible == true) && (((((_root.hen1._visible == true) || (_root.hen2._visible == true)) || (_root.hen3._visible == true)) || (_root.hen4._visible == true)) || (_root.hen5._visible == true))) {
if (_root.hensfoods == true) {
if (_root.pigsfoods || (_root.cowsfoods)) {
if (_root.pigsfoods) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(9);
_root.itm = 9;
_root.hensfoods = false;
_root.hensfoods1 = false;
} else if (_root.cowsfoods) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(10);
_root.itm = 10;
_root.hensfoods = false;
_root.hensfoods1 = false;
}
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
}
_root.tookFood = false;
_root.hensfoods = false;
_root.hensfoods1 = false;
_root.diggerPressed = true;
_root.henFood.gotoAndStop(10);
_root.henFoodGiven = false;
if (_root.hencounts == 1) {
_root.henfoodie._visible = true;
_root.henfoodie.gotoAndStop(10);
_root.henfoodItemVal = 200;
_root.henFood._visible = true;
_root.hencount = 0;
_root.hencounts = 0;
}
if (_root.hencounts == 2) {
_root.henfoodie._visible = true;
_root.henfoodie.gotoAndStop(5);
_root.henfoodItemVal = 100;
_root.henFood._visible = true;
_root.hencount = 0;
_root.hencounts = 0;
}
if (_root.hencounts == 3) {
_root.henfoodie._visible = true;
_root.henfoodie.gotoAndStop(1);
_root.henfoodItemVal = 0;
_root.henFood._visible = false;
_root.hencount = 0;
_root.hencounts = 0;
}
_root.henFood.arrows.gotoAndStop(1);
_root.henfoodItem = true;
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.hencount = 0;
_root.hencounts = 0;
_root.diggerPressed = true;
_root.henFoodGiven = false;
}
} else {
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.henFood.arrows.gotoAndStop(1);
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.hencount = 0;
_root.hencounts = 0;
_root.diggerPressed = true;
_root.henFoodGiven = false;
}
}
}
}
if (((_root.cowFoodGiven1 == true) || (_root.cowFoodGiven2 == true)) || (_root.cowFoodGiven3 == true)) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.cowFoodGiven1 == true) {
_root.cowvals = 1;
} else if (_root.cowFoodGiven2 == true) {
_root.cowvals = 2;
} else if (_root.cowFoodGiven3 == true) {
_root.cowvals = 3;
}
if (_root.tookItem == 4) {
if ((_root["cowFood" + _root.cowvals]._visible == true) && (_root["cow" + _root.cowvals]._visible == true)) {
if (_root.cowsfoods == true) {
if (_root.pigsfoods || (_root.hensfoods)) {
if (_root.pigsfoods) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(9);
_root.itm = 9;
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
}
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
}
_root.tookFood = false;
_root.cowsfoods = false;
_root["cowsfoods" + _root.cowvals] = false;
_root["cowFood" + _root.cowvals].gotoAndStop(10);
_root.diggerPressed = true;
_root["cowFoodGiven" + _root.cowvals] = false;
if (_root.cowcounts == 1) {
_root["cow_Box" + _root.cowvals]._visible = true;
_root["cow_Box" + _root.cowvals].gotoAndStop(5);
_root["cowfoodItemVal" + _root.cowvals] = 200;
_root["cowFood" + _root.cowvals]._visible = true;
_root.cowcount = 0;
_root.cowcounts = 0;
}
if (_root.cowcounts == 2) {
_root["cow_Box" + _root.cowvals]._visible = true;
_root["cow_Box" + _root.cowvals].gotoAndStop(3);
_root["cowfoodItemVal" + _root.cowvals] = 100;
_root["cowFood" + _root.cowvals]._visible = false;
_root.cowcount = 0;
_root.cowcounts = 0;
}
var _local2 = 1;
while (_local2 < 4) {
_root["cowFood" + _local2].arrows.gotoAndStop(1);
_local2++;
}
_root["cowfoodItem" + _root.cowvals] = true;
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.cowcount = 0;
_root.cowcounts = 0;
var _local2 = 1;
while (_local2 < 4) {
_root["cowFood" + _local2].arrows.gotoAndStop(1);
_local2++;
}
_root.diggerPressed = true;
_root.cowFoodGiven1 = false;
}
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.cowcount = 0;
_root.cowcounts = 0;
_root.diggerPressed = true;
_root["cowFoodGiven" + _root.cowvals] = false;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
}
}
}
}
if ((_root.pigFoodGiven1 == true) || (_root.pigFoodGiven2 == true)) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.pigFoodGiven1 == true) {
_root.pigvals = 1;
} else if (_root.pigFoodGiven2 == true) {
_root.pigvals = 2;
}
if (_root.tookItem == 4) {
if ((_root["pigFood" + _root.pigvals]._visible == true) && (_root["pig" + _root.pigvals]._visible == true)) {
if (_root.pigsfoods == true) {
if (_root.cowsfoods || (_root.hensfoods)) {
if (_root.cowsfoods) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(10);
_root.itm = 10;
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
}
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
}
_root.tookFood = false;
_root.pigsfoods = false;
_root["pigsfoods" + _root.pigvals] = false;
_root["pigFood" + _root.pigvals].gotoAndStop(10);
_root.diggerPressed = true;
_root["pigFoodGiven" + _root.pigvals] = false;
_root["pigfoodItem" + _root.pigvals] = true;
if (_root.pigcounts == 1) {
_root["pig_Box" + _root.pigvals]._visible = true;
_root["pig_Box" + _root.pigvals].gotoAndStop(5);
_root["pigfoodItemVal" + _root.pigvals] = 200;
_root["pigFood" + _root.pigvals]._visible = true;
_root.pigcount = 0;
_root.pigcounts = 0;
}
if (_root.pigcounts == 2) {
_root["pig_Box" + _root.pigvals]._visible = true;
_root["pig_Box" + _root.pigvals].gotoAndStop(3);
_root["pigfoodItemVal" + _root.pigvals] = 100;
_root["pigFood" + _root.pigvals]._visible = false;
_root.pigcount = 0;
_root.pigcounts = 0;
}
_root.pigFood1.arrows.gotoAndStop(1);
_root.pigFood2.arrows.gotoAndStop(1);
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.diggerPressed = true;
_root["pigFoodGiven" + _root.pigvals] = false;
_root.pigcount = 0;
_root.pigcounts = 0;
var _local2 = 1;
while (_local2 < 3) {
_root["pigFood" + _local2].arrows.gotoAndStop(1);
_local2++;
}
}
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.diggerPressed = true;
_root["pigFoodGiven" + _root.pigvals] = false;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
_root.pigcount = 0;
var _local2 = 1;
while (_local2 < 3) {
_root["pigFood" + _local2].arrows.gotoAndStop(1);
_local2++;
}
_root.pigcounts = 0;
}
}
}
}
if (_root.eggTaken == true) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.tookItem == 4) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(11);
_root.itm = 11;
_root.eggNum = _root.eggNum + _root.eggCounts;
_root.eggCounts = 0;
if (_root.eggCounts == 0) {
_root.eggCounts = "";
}
_root.egg._visible = false;
_root.eggTaken = false;
_root.tookEgg = true;
_root.diggerPressed = true;
_root.collectboard.blink.gotoAndPlay(1);
} else {
_root.eggTaken = false;
_root.diggerPressed = true;
}
}
}
if (((_root.milkTaken1 == true) || (_root.milkTaken2 == true)) || (_root.milkTaken3 == true)) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.milkTaken1 == true) {
_root.milkvals = 1;
} else if (_root.milkTaken2 == true) {
_root.milkvals = 2;
} else if (_root.milkTaken3 == true) {
_root.milkvals = 3;
}
if (_root.tookItem == 4) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(12);
_root.itm = 12;
_root["milk" + _root.milkvals]._visible = false;
_root["milk" + _root.milkvals].gotoAndStop(1);
_root.cowCounts = _root.cowCounts + _root["cowCounts" + _root.milkvals];
_root["cowCounts" + _root.milkvals] = 0;
if (_root["cowCounts" + _root.milkvals] == 0) {
_root["cowCounts" + _root.milkvals] = "";
}
_root["milkTaken" + _root.milkvals] = false;
_root.tookMilk = true;
_root.diggerPressed = true;
_root.collectboard.blink.gotoAndPlay(1);
} else {
_root["milkTaken" + _root.milkvals] = false;
_root.diggerPressed = true;
}
}
}
if (_root.meatTaken == true) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.tookItem == 4) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(13);
_root.itm = 13;
_root.meatNum = _root.meatNum + _root.meatCounts;
_root.meatCounts = 0;
if (_root.meatCounts == 0) {
_root.meatCounts = "";
}
_root.meat._visible = false;
_root.meat.gotoAndStop(1);
_root.meatTaken = false;
_root.tookMeat = true;
_root.diggerPressed = true;
_root.collectboard.blink.gotoAndPlay(1);
} else {
_root.meatTaken = false;
_root.diggerPressed = true;
}
}
}
if (_root.housePressed == true) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.tookItem == 4) {
if (_root.tookEgg == true) {
_root.tookEgg = false;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.countEgg = _root.countEgg + Math.round(_root.eggNum);
_root.eggNum = 0;
_root.tookEggs = false;
_root.housePressed = false;
_root.diggerPressed = true;
_root.collectboard.blink.gotoAndStop(1);
}
if (_root.tookMilk == true) {
_root.tookMilk = false;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.cowNum = _root.cowCounts;
_root.cowCounts = 0;
_root.tookMilks = false;
_root.countMilk = _root.countMilk + Math.round(_root.cowNum);
_root.cowNum = 0;
_root.housePressed = false;
_root.diggerPressed = true;
_root.collectboard.blink.gotoAndStop(1);
}
if (_root.tookMeat == true) {
_root.tookMeat = false;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.tookMeats = false;
_root.countMeat = _root.countMeat + (Math.round(_root.meatNum) * 5);
_root.meatNum = 0;
_root.collectboard.blink.gotoAndStop(1);
_root.housePressed = false;
_root.diggerPressed = true;
} else {
if (_root.cowsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
}
if (_root.hensfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(10);
_root.itm = 10;
}
if (_root.pigsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(9);
_root.itm = 9;
}
_root.housePressed = false;
_root.diggerPressed = true;
}
}
}
}
}
function reachItemswithTile() {
if (_root.tookItem == 0) {
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(14);
_root.itm = 14;
_root.diggerPressed = true;
_root.startAction = false;
}
if (_root.tookItem == 1) {
if ((Math.round(_root.girl._x) == Math.round(_root["tile" + _root.tile]._x)) && (Math.round(_root.girl._y) == Math.round(_root["tile" + _root.tile]._y))) {
if (_root["tile" + _root.tile]._currentframe == 1) {
_root.girl.gotoAndStop("digging");
_root.walkDirect1 = true;
_root["tile" + _root.tile].gotoAndStop(3);
_root.girl.items1.gotoAndStop(1);
_root.itm = 1;
if (_root.soundready == false) {
_root.sound4.start();
}
} else {
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(1);
_root.itm = 1;
_root.diggerPressed = true;
_root.startAction = false;
}
}
}
if (_root.tookItem == 3) {
if ((Math.round(_root.girl._x) == Math.round(_root["tile" + _root.tile]._x)) && (Math.round(_root.girl._y) == Math.round(_root["tile" + _root.tile]._y))) {
if (_root["tile" + _root.tile]._currentframe == 3) {
if (_root.countFood1 > 0) {
_root.girl.gotoAndPlay("foodserving");
_root.walkDirect2 = true;
_root.girl.items1.gotoAndStop(2);
_root.itm = 2;
if (_root.soundready == false) {
_root.sound5.start();
}
_root.countFood1 = _root.countFood1 - 1;
if (_root.countFood1 <= 0) {
_root.countFood1 = 0;
_root.countFood1 = "";
_root.henFoods._visible = false;
}
_root["tile" + _root.tile].gotoAndStop(4);
_root["tile" + _root.tile].barpnt._visible = false;
_root["tile" + _root.tile].timeIterval = true;
_root["tile" + _root.tile].times = 0;
_root["tile" + _root.tile].sets = 1;
_root["tile" + _root.tile].val = 80;
_root["tile" + _root.tile].count = 0;
_root["tile" + _root.tile].waters = 0;
_root["tile" + _root.tile].needwater = false;
_root.arrayTile.push(_root["tile" + _root.tile]);
} else {
_root.arrayHold.splice(0, 1);
_root.startAction = false;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(14);
_root.itm = 14;
_root.diggerPressed = true;
}
} else {
_root.arrayHold.splice(0, 1);
_root.startAction = false;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(2);
_root.itm = 2;
_root.diggerPressed = true;
}
}
}
if (_root.tookItem == 2) {
if ((Math.round(_root.girl._x) == Math.round(_root["tile" + _root.tile]._x)) && (Math.round(_root.girl._y) == Math.round(_root["tile" + _root.tile]._y))) {
if (_root.bucket.isWell == true) {
if (_root.watersupply == false) {
if ((((_root["tile" + _root.tile]._currentframe >= 4) && (_root["tile" + _root.tile]._currentframe <= 7)) || ((_root["tile" + _root.tile]._currentframe >= 10) && (_root["tile" + _root.tile]._currentframe <= 12))) || ((_root["tile" + _root.tile]._currentframe >= 15) && (_root["tile" + _root.tile]._currentframe <= 17))) {
_root.waterCount--;
_root.timeForWaters = _root.timers;
_root.timeForWaters = _root.timeForWaters + 10;
_root.girl.gotoAndStop("watering");
_root.walkDirect3 = true;
_root.girl.items1.gotoAndStop(5);
if (_root.soundready == false) {
_root.sound6.start();
}
_root.itm = 5;
_root.watersupply = true;
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.bucks.gotoAndStop(1);
_root.nums = _root.nums + 3;
_root.girl.bar.gotoAndStop(_root.nums);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root["tile" + _root.tile].needwater = false;
_root["tile" + _root.tile].waterboard.gotoAndStop(1);
_root["tile" + _root.tile].waterboard._visible = false;
_root["tile" + _root.tile].waters = 0;
_root["tile" + _root.tile].barpnt.gotoAndStop(1);
if (((_root["tile" + _root.tile]._currentframe == 7) || (_root["tile" + _root.tile]._currentframe == 12)) || (_root["tile" + _root.tile]._currentframe == 17)) {
_root["tile" + _root.tile].times = 0;
_root["tile" + _root.tile].val = 1700;
}
if ((((((_root["tile" + _root.tile]._currentframe == 6) || (_root["tile" + _root.tile]._currentframe == 11)) || (_root["tile" + _root.tile]._currentframe == 16)) || (_root["tile" + _root.tile]._currentframe == 5)) || (_root["tile" + _root.tile]._currentframe == 10)) || (_root["tile" + _root.tile]._currentframe == 15)) {
_root["tile" + _root.tile].times = 0;
_root["tile" + _root.tile].val = 80;
}
if (_root["tilecounts" + _root.tile] == true) {
_root["tile" + _root.tile].timeIterval = true;
_root["tile" + _root.tile].times = 0;
_root["tile" + _root.tile].sets = 1;
_root["tile" + _root.tile].val = 120;
_root["tile" + _root.tile].count = 2;
_root["tile" + _root.tile].waters = 0;
_root["tilecounts" + _root.tile] = false;
}
if (_root.waterCount == 0) {
_root.girl.bucks.gotoAndStop(2);
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.bucket.isWell = false;
}
} else {
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(5);
_root.itm = 5;
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
_root.diggerPressed = true;
_root.startAction = false;
}
} else if (_root.timers == _root.timeForWaters) {
_root.girl.gotoAndStop("watermiddle");
} else {
_root.girl.items1.gotoAndStop(5);
_root.girl.gotoAndStop("watering");
_root.itm = 5;
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.bucks.gotoAndStop(1);
}
} else {
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(5);
_root.itm = 5;
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.bar.gotoAndStop(30);
_root.girl.items1.bar.gotoAndStop(30);
_root.nums = 0;
_root.diggerPressed = true;
}
}
}
if (_root.tookItem == 4) {
if ((Math.round(_root.girl._x) == Math.round(_root["tile" + _root.tile]._x)) && (Math.round(_root.girl._y) == Math.round(_root["tile" + _root.tile]._y))) {
if ((((_root["tile" + _root.tile]._currentframe == 7) || (_root["tile" + _root.tile]._currentframe == 12)) || (_root["tile" + _root.tile]._currentframe == 17)) && (_root["tile" + _root.tile].needwater == false)) {
if (_root["tile" + _root.tile]._currentframe == 7) {
_root.hencount++;
if ((_root.hencount >= 1) && (_root.hencount < 4)) {
if (_root.hencount == 1) {
_root.henFood.arrows.gotoAndPlay(1);
}
tileFoods(_root.tile);
_root.hencounts = _root.hencount;
} else {
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
_root.diggerPressed = true;
}
}
if (_root["tile" + _root.tile]._currentframe == 12) {
_root.cowcount++;
if ((_root.cowcount >= 1) && (_root.cowcount < 3)) {
tileFoods(_root.tile);
if (_root.cowcount == 1) {
_root.cowFood1.arrows.gotoAndPlay(1);
_root.cowFood2.arrows.gotoAndPlay(1);
_root.cowFood3.arrows.gotoAndPlay(1);
}
_root.cowcounts = _root.cowcount;
} else {
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
_root.diggerPressed = true;
}
}
if (_root["tile" + _root.tile]._currentframe == 17) {
_root.pigcount++;
if ((_root.pigcount >= 1) && (_root.pigcount < 3)) {
tileFoods(_root.tile);
if (_root.pigcount == 1) {
_root.pigFood1.arrows.gotoAndPlay(1);
_root.pigFood2.arrows.gotoAndPlay(1);
}
_root.pigcounts = _root.pigcount;
} else {
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
_root.diggerPressed = true;
}
}
} else if ((((_root["tile" + _root.tile]._currentframe == 7) || (_root["tile" + _root.tile]._currentframe == 12)) || (_root["tile" + _root.tile]._currentframe == 17)) && (_root["tile" + _root.tile].needwater == true)) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.diggerPressed = true;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
} else if (_root.hensfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
_root.diggerPressed = true;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.diggerPressed = true;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
}
}
}
if (_root.tookItem == 5) {
if ((Math.round(_root.girl._x) == Math.round(_root["tile" + _root.tile]._x)) && (Math.round(_root.girl._y) == Math.round(_root["tile" + _root.tile]._y))) {
if (_root["tile" + _root.tile]._currentframe == 3) {
if (_root.countFood2 > 0) {
_root.girl.gotoAndPlay("foodserving");
_root.girl.items1.gotoAndStop(2);
_root.itm = 2;
_root.walkDirect2 = true;
if (_root.soundready == false) {
_root.sound5.start();
}
_root.countFood2 = _root.countFood2 - 1;
if (_root.countFood2 <= 0) {
_root.countFood2 = 0;
_root.countFood2 = "";
_root.cowFoods._visible = false;
}
_root["tile" + _root.tile].gotoAndStop(4);
_root["tile" + _root.tile].barpnt._visible = false;
_root["tile" + _root.tile].timeIterval = true;
_root["tile" + _root.tile].times = 0;
_root["tile" + _root.tile].sets = 6;
_root["tile" + _root.tile].val = 80;
_root["tile" + _root.tile].count = 0;
_root["tile" + _root.tile].waters = 0;
_root["tile" + _root.tile].needwater = false;
_root.arrayTile.push(_root["tile" + _root.tile]);
} else {
_root.arrayHold.splice(0, 1);
_root.startAction = false;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(14);
_root.itm = 14;
_root.diggerPressed = true;
}
} else {
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(3);
_root.itm = 3;
_root.diggerPressed = true;
}
}
}
if (_root.tookItem == 6) {
if ((Math.round(_root.girl._x) == Math.round(_root["tile" + _root.tile]._x)) && (Math.round(_root.girl._y) == Math.round(_root["tile" + _root.tile]._y))) {
if (_root["tile" + _root.tile]._currentframe == 3) {
if (_root.countFood3 > 0) {
_root.girl.gotoAndPlay("foodserving");
_root.walkDirect2 = true;
_root.girl.items1.gotoAndStop(2);
_root.itm = 2;
if (_root.soundready == false) {
_root.sound5.start();
}
_root.countFood3 = _root.countFood3 - 1;
if (_root.countFood3 <= 0) {
_root.countFood3 = 0;
_root.countFood3 = "";
_root.pigFoods._visible = false;
}
_root["tile" + _root.tile].gotoAndStop(4);
_root["tile" + _root.tile].barpnt._visible = false;
_root["tile" + _root.tile].timeIterval = true;
_root["tile" + _root.tile].times = 0;
_root["tile" + _root.tile].sets = 11;
_root["tile" + _root.tile].val = 80;
_root["tile" + _root.tile].count = 0;
_root["tile" + _root.tile].waters = 0;
_root["tile" + _root.tile].needwater = false;
_root.arrayTile.push(_root["tile" + _root.tile]);
} else {
_root.arrayHold.splice(0, 1);
_root.startAction = false;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(14);
_root.itm = 14;
_root.diggerPressed = true;
}
} else {
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(3);
_root.itm = 3;
_root.diggerPressed = true;
}
}
}
}
function tileFoods(tiles) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
_root.tookFood = true;
_root["tile" + tiles].cnt++;
if (_root["tile" + tiles].cnt == 9) {
_root.diggerPressed = true;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
_root["tile" + tiles].count = 3;
_root["tile" + tiles].val = 10;
_root["tile" + tiles].times = 0;
if (_root["tile" + tiles]._currentframe == 7) {
_root["tile" + tiles].gotoAndStop(9);
_root["tile" + tiles].sets = 1;
_root.hensfoods = true;
} else if (_root["tile" + tiles]._currentframe == 12) {
_root["tile" + tiles].sets = 1;
_root["tile" + tiles].gotoAndStop(14);
_root.cowsfoods = true;
} else if (_root["tile" + tiles]._currentframe == 17) {
_root["tile" + tiles].sets = 1;
_root["tile" + tiles].gotoAndStop(19);
_root.pigsfoods = true;
}
} else {
_root["tile" + tiles].times = 0;
_root["tile" + tiles].count = 1;
if (_root["tile" + tiles]._currentframe == 7) {
_root["tile" + tiles].sets = 1;
_root["tile" + tiles].gotoAndStop(5);
_root.hensfoods = true;
}
if (_root["tile" + tiles]._currentframe == 12) {
_root["tile" + tiles].sets = 1;
_root["tile" + tiles].gotoAndStop(10);
_root.cowsfoods = true;
}
if (_root["tile" + tiles]._currentframe == 17) {
_root["tile" + tiles].sets = 1;
_root["tile" + tiles].gotoAndStop(15);
_root.pigsfoods = true;
}
_root["tile" + tiles].val = 80;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
_root.diggerPressed = true;
}
}
function arrayMoves() {
if ((_root.arrayHold[0] >= 1) && (_root.arrayHold[0] <= 30)) {
_root.girl.gotoAndPlay("front");
_root.destinationNodex = _root["tile" + _root.arrayHold[0]]._x;
_root.destinationNodey = _root["tile" + _root.arrayHold[0]]._y;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = false;
_root.startAction = true;
_root.diggerPressed = true;
_root.waterbottle.gotoAndStop(1);
if (_root.watersupply == false) {
}
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
_root.girl.bar.gotoAndStop(_root.nums);
_root.girl.items1.bar.gotoAndStop(_root.nums);
} else {
_root.bucket.gotoAndStop(1);
_root.girl.bar.gotoAndStop(30);
_root.girl.items1.bar.gotoAndStop(30);
}
_root["tile" + _root.arrayHold[0]].mark._visible = false;
}
if (_root.arrayHold[0] == 31) {
if (_root.tookEgg == true) {
_root.tookEggs = true;
}
if (_root.tookMilk == true) {
_root.tookMilks = true;
}
if (_root.tookMeat == true) {
_root.tookMeats = true;
}
if (_root.hensfoods == true) {
_root.hensfoods1 = true;
}
if (_root.cowsfoods == true) {
_root.cowsfoods1 = true;
}
if (_root.pigsfoods == true) {
_root.pigsfoods1 = true;
}
_root.waterbottle.gotoAndStop(1);
_root.itemTook = 1;
_root.digger.mark._visible = false;
_root.diggerPressed = true;
_root.destinationNodex = _root.xPos[3];
_root.destinationNodey = _root.yPos[0];
_root.valsX = _root.xPos[3];
_root.valsY = _root.yPos[0];
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = false;
_root.startAction = true;
}
if (_root.arrayHold[0] == 32) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.girl.items1.bar.gotoAndStop(_root.nums);
if (_root.tookEgg == true) {
_root.tookEggs = true;
}
if (_root.tookMilk == true) {
_root.tookMilks = true;
}
if (_root.tookMeat == true) {
_root.tookMeats = true;
}
if (_root.hensfoods == true) {
_root.hensfoods1 = true;
}
if (_root.cowsfoods == true) {
_root.cowsfoods1 = true;
}
if (_root.pigsfoods == true) {
_root.pigsfoods1 = true;
}
_root.waterbottle.gotoAndStop(1);
_root.bucket.mark._visible = false;
_root.itemTook = 2;
_root.destinationNodex = _root.xPos[2];
_root.destinationNodey = _root.yPos[0];
_root.diggerPressed = true;
_root.valsX = _root.xPos[2];
_root.valsY = _root.yPos[0];
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = false;
_root.startAction = true;
}
if (_root.arrayHold[0] == 33) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
if (_root.tookEgg == true) {
_root.tookEggs = true;
}
if (_root.tookMilk == true) {
_root.tookMilks = true;
}
if (_root.tookMeat == true) {
_root.tookMeats = true;
}
if (_root.hensfoods == true) {
_root.hensfoods1 = true;
}
if (_root.cowsfoods == true) {
_root.cowsfoods1 = true;
}
if (_root.pigsfoods == true) {
_root.pigsfoods1 = true;
}
_root.itemTook = 3;
_root.henFoods.mark._visible = false;
_root.destinationNodex = _root.xPos[7];
_root.destinationNodey = _root.yPos[6];
_root.valsX = _root.xPos[7];
_root.valsY = _root.yPos[6];
_root.waterbottle.gotoAndStop(1);
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = false;
_root.diggerPressed = true;
_root.startAction = true;
}
if (_root.arrayHold[0] == 34) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.collectbox.mark._visible = false;
_root.itemTook = 4;
_root.destinationNodex = _root.xPos[4];
_root.destinationNodey = _root.yPos[0];
_root.valsX = _root.xPos[4];
_root.valsY = _root.yPos[0];
_root.waterbottle.gotoAndStop(1);
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.diggerPressed = true;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 35) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.well.mark._visible = false;
_root.wellPressed = true;
_root.waterbottle.gotoAndStop(1);
_root.destinationNodex = _root.xPos[7];
_root.destinationNodey = _root.yPos[3];
_root.valsX = _root.xPos[7];
_root.valsY = _root.yPos[3];
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.diggerPressed = true;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 36) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.henFood.mark._visible = false;
if (_root.hensfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
} else {
_root.girl.gotoAndStop("front");
}
_root.waterbottle.gotoAndStop(1);
_root.henFoodGiven = true;
_root.destinationNodex = _root.xPos[7];
_root.destinationNodey = _root.yPos[4];
_root.valsX = _root.xPos[7];
_root.valsY = _root.yPos[4];
_root.girlMoves = false;
_root.diggerPressed = true;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 37) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.waterbottle.gotoAndStop(1);
_root.egg.mark._visible = false;
_root.eggTaken = true;
_root.destinationNodex = _root.xPos[7];
_root.destinationNodey = _root.yPos[5];
_root.valsX = _root.xPos[7];
_root.valsY = _root.yPos[5];
_root.diggerPressed = true;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 38) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.waterbottle.gotoAndStop(1);
_root.house.mark._visible = false;
_root.housePressed = true;
_root.destinationNodex = _root.xPos[7];
_root.destinationNodey = _root.yPos[0];
_root.valsX = _root.xPos[7];
_root.valsY = _root.yPos[0];
_root.diggerPressed = true;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 39) {
if (_root.Paused == false) {
_root.itemTook = 5;
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.cowFoods.mark._visible = false;
if (_root.tookEgg == true) {
_root.tookEggs = true;
}
if (_root.tookMilk == true) {
_root.tookMilks = true;
}
if (_root.tookMeat == true) {
_root.tookMeats = true;
}
if (_root.hensfoods == true) {
_root.hensfoods1 = true;
}
if (_root.cowsfoods == true) {
_root.cowsfoods1 = true;
}
if (_root.pigsfoods == true) {
_root.pigsfoods1 = true;
}
_root.waterbottle.gotoAndStop(1);
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[0];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[0];
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.diggerPressed = true;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 40) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.cowFood1.mark._visible = false;
if (_root.cowsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
} else {
_root.girl.gotoAndStop("front");
}
_root.waterbottle.gotoAndStop(1);
_root.cowFoodGiven1 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[3];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[3];
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.diggerPressed = true;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 41) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.cowFood2.mark._visible = false;
if (_root.cowsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
} else {
_root.girl.gotoAndStop("front");
}
_root.waterbottle.gotoAndStop(1);
_root.cowFoodGiven2 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[2];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[2];
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.diggerPressed = true;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 42) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.cowFood3.mark._visible = false;
if (_root.cowsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
} else {
_root.girl.gotoAndStop("front");
}
_root.waterbottle.gotoAndStop(1);
_root.cowFoodGiven3 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[0];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[0];
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.diggerPressed = true;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 43) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.waterbottle.gotoAndStop(1);
_root.milk1.mark._visible = false;
_root.milkTaken1 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[3];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[3];
_root.diggerPressed = true;
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 44) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.waterbottle.gotoAndStop(1);
_root.milk2.mark._visible = false;
_root.milkTaken2 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[2];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[2];
_root.diggerPressed = true;
_root.girlMoves = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 45) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.waterbottle.gotoAndStop(1);
_root.milk3.mark._visible = false;
_root.milkTaken3 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[0];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[0];
_root.diggerPressed = true;
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 46) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
if (_root.tookEgg == true) {
_root.tookEggs = true;
}
if (_root.tookMilk == true) {
_root.tookMilks = true;
}
if (_root.tookMeat == true) {
_root.tookMeats = true;
}
if (_root.hensfoods == true) {
_root.hensfoods1 = true;
}
if (_root.cowsfoods == true) {
_root.cowsfoods1 = true;
}
if (_root.pigsfoods == true) {
_root.pigsfoods1 = true;
}
_root.waterbottle.gotoAndStop(1);
_root.pigFoods.mark._visible = false;
_root.itemTook = 6;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[6];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[6];
_root.girlMoves = false;
_root.diggerPressed = true;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 47) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
if (_root.pigsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
} else {
_root.girl.gotoAndStop("front");
}
_root.waterbottle.gotoAndStop(1);
_root.pigFood1.mark._visible = false;
_root.pigFoodGiven1 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[5];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[5];
_root.girlMoves = false;
_root.diggerPressed = true;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 48) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
if (_root.pigsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
} else {
_root.girl.gotoAndStop("front");
}
_root.waterbottle.gotoAndStop(1);
_root.pigFood2.mark._visible = false;
_root.pigFoodGiven2 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[4];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[4];
_root.girlMoves = false;
_root.diggerPressed = true;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 49) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.waterbottle.gotoAndStop(1);
_root.meat.mark._visible = false;
_root.meatTaken = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[5];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[5];
_root.diggerPressed = true;
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.startAction = true;
}
}
}
function ItemsPressed() {
_root.digger.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(31);
}
};
_root.bucket.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(32);
}
};
_root.henFoods.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(33);
}
};
_root.collectbox.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(34);
}
};
_root.well.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(35);
}
};
_root.henFood.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(36);
}
};
_root.egg.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(37);
}
};
_root.house.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(38);
}
};
_root.cowFoods.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(39);
}
};
_root.cowFood1.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(40);
}
};
_root.cowFood2.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(41);
}
};
_root.cowFood3.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(42);
}
};
_root.milk1.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(43);
}
};
_root.milk2.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(44);
}
};
_root.milk3.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(45);
}
};
_root.pigFoods.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(46);
}
};
_root.pigFood1.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(47);
}
};
_root.pigFood2.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(48);
}
};
_root.meat.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(49);
}
};
_root.stars.onPress = function () {
if (_root.starCount == 0) {
_root.attachMovie("star", "star1", 10);
_root.starPress = true;
_root.dels.removeMovieClip();
_root.deletPress = false;
_root.del.gotoAndStop(1);
_root.del.frame = 1;
this.gotoAndStop(3);
this.frame = 3;
_root.tut._visible = false;
_root.tut.removeMovieClip();
_root.girl.gotoAndStop(_root.girl._currentframe);
}
if (_root.starCount == 1) {
_root.star1.removeMovieClip();
_root.starPress = false;
this.gotoAndStop(1);
_root.Paused = false;
}
if (_root.soundready == false) {
_root.sound2.start();
}
};
_root.stars.onRollOver = function () {
this.gotoAndStop(2);
};
_root.stars.onRollOut = function () {
if (this.frame == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
};
_root.stars.onRelease = function () {
if (_root.starCount == 0) {
_root.starCount = 1;
}
if (_root.starCount == 1) {
_root.starCount = 0;
}
};
_root.del.onPress = function () {
_root.Paused = true;
_root.star1.removeMovieClip();
_root.starPress = false;
_root.stars.gotoAndStop(1);
_root.stars.frame = 1;
_root.tut._visible = false;
_root.tut.removeMovieClip();
_root.attachMovie("dele", "dels", 10);
_root.deletPress = true;
this.gotoAndStop(3);
this.frame = 3;
_root.girl.gotoAndStop(_root.girl._currentframe);
_root.sound2.start();
};
_root.del.onRollOver = function () {
this.gotoAndStop(2);
};
_root.del.onRollOut = function () {
if (this.frame == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
};
}
function henTimimg() {
if (_root.hen1.timer == true) {
if (_root.henfoodItem) {
_root.hen1.count++;
if (_root.hen1.count == 1) {
if (_root.hen1.grow == true) {
_root.hen1.times = 300;
}
_root.hen1.se1.sem.gotoAndPlay(1);
_root.hen1.me1.gotoAndPlay(1);
}
_root.henFood.gotoAndStop(10);
_root.hen1.times1 = 0;
hentimes(1);
} else {
_root.hen1.count = 0;
_root.hen1.se1.sem.gotoAndStop(1);
_root.hen1.me1.gotoAndStop(1);
_root.hen1.times = 0;
hengone(1);
}
}
if (_root.hen2.timer == true) {
if (_root.henfoodItem) {
_root.hen2.count++;
if (_root.hen2.count == 1) {
if (_root.hen2.grow == true) {
_root.hen2.times = 300;
}
_root.hen2.se1.sem.gotoAndPlay(1);
_root.hen2.me1.gotoAndPlay(1);
}
_root.henFood.gotoAndStop(10);
_root.hen2.times1 = 0;
hentimes(2);
} else {
_root.hen2.count = 0;
_root.hen2.se1.sem.gotoAndStop(1);
_root.hen2.me1.gotoAndStop(1);
_root.hen2.times = 0;
hengone(2);
}
}
if (_root.hen3.timer == true) {
if (_root.henfoodItem) {
_root.hen3.count++;
if (_root.hen3.count == 1) {
if (_root.hen3.grow == true) {
_root.hen3.times = 300;
}
_root.hen3.se1.sem.gotoAndPlay(1);
_root.hen3.me1.gotoAndPlay(1);
}
_root.henFood.gotoAndStop(10);
_root.hen3.times1 = 0;
hentimes(3);
} else {
_root.hen3.count = 0;
_root.hen3.se1.sem.gotoAndStop(1);
_root.hen3.me1.gotoAndStop(1);
_root.hen3.times = 0;
hengone(3);
}
}
if (_root.hen4.timer == true) {
if (_root.henfoodItem) {
_root.hen4.count++;
if (_root.hen4.count == 1) {
if (_root.hen4.grow == true) {
_root.hen4.times = 300;
}
_root.hen4.se1.sem.gotoAndPlay(1);
_root.hen4.me1.gotoAndPlay(1);
}
_root.henFood.gotoAndStop(10);
_root.hen4.times1 = 0;
hentimes(4);
} else {
_root.hen4.count = 0;
_root.hen4.se1.sem.gotoAndStop(1);
_root.hen4.me1.gotoAndStop(1);
_root.hen4.times = 0;
hengone(4);
}
}
if (_root.hen5.timer == true) {
if (_root.henfoodItem) {
_root.hen5.count++;
if (_root.hen5.count == 1) {
if (_root.hen5.grow == true) {
_root.hen5.times = 300;
}
_root.hen5.se1.sem.gotoAndPlay(1);
_root.hen5.me1.gotoAndPlay(1);
}
_root.henFood.gotoAndStop(10);
_root.hen5.times1 = 0;
hentimes(5);
} else {
_root.hen5.count = 0;
_root.hen5.se1.sem.gotoAndStop(1);
_root.hen5.me1.gotoAndStop(1);
_root.hen5.times = 0;
hengone(5);
}
}
}
function hengone(s) {
_root["hen" + s].times1++;
if (_root["hen" + s].grow == true) {
if (_root["hen" + s].times1 == 500) {
_root.henFood.gotoAndStop(11);
}
if (_root["hen" + s].times1 == 600) {
if (_root.soundready == false) {
_root.sound12.start();
}
_root["hen" + s].gotoAndPlay("die");
_root["hen" + s].times1 = 0;
_root["hen" + s].count = 0;
_root["hen" + s].grow = false;
_root["hen" + s].times = 0;
_root.henFood.gotoAndStop(1);
_root.henFood._visible = false;
if (_root.egg._visible == false) {
_root.eggCounts = 0;
_root.eggCounts = "";
}
}
if (_root["hen" + s].times1 == 605) {
_root["hen" + s]._visible = false;
_root["hen" + s].gotoAndPlay(1);
_root.henFood._visible = false;
_root.hencnt--;
}
}
}
function hentimes(p) {
_root["hen" + p].times++;
if (_root["hen" + p].times == 300) {
_root["hen" + p].grow = true;
_root["hen" + p].gotoAndPlay("grow");
}
if (_root["hen" + p].times == 400) {
_root.egg._visible = true;
if (_root.eggCounts != "") {
_root.eggCounts = _root.eggCounts + 1;
} else {
_root.eggCounts = 1;
}
_root["hen" + p].times = 300;
}
}
function cowTimimg() {
if (_root.cow1.timer == true) {
if (_root.cowfoodItem1) {
_root.cow1.count++;
if (_root.cow1.count == 1) {
if (_root.cow1.grow == true) {
_root.cow1.times = 500;
}
_root.cow1.me2.gotoAndPlay(2);
_root.cow1.me1.gotoAndPlay(2);
}
_root.cow1.times1 = 0;
cowtimes(1);
} else {
_root.cow1.count = 0;
_root.cow1.me2.gotoAndStop(1);
_root.cow1.me1.gotoAndStop(1);
_root.cow1.times = 0;
cowgone(1);
}
}
if (_root.cow2.timer == true) {
if (_root.cowfoodItem2) {
_root.cow2.count++;
if (_root.cow2.count == 1) {
if (_root.cow2.grow == true) {
_root.cow2.times = 500;
}
_root.cow2.me2.gotoAndPlay(2);
_root.cow2.me1.gotoAndPlay(2);
}
_root.cow2.times1 = 0;
cowtimes(2);
} else {
_root.cow2.count = 0;
_root.cow2.me2.gotoAndStop(1);
_root.cow2.me1.gotoAndStop(1);
_root.cow2.times = 0;
cowgone(2);
}
}
if (_root.cow3.timer == true) {
if (_root.cowfoodItem3) {
_root.cow3.count++;
if (_root.cow3.count == 1) {
if (_root.cow3.grow == true) {
_root.cow3.times = 500;
}
_root.cow3.me1.gotoAndPlay(2);
_root.cow3.me2.gotoAndPlay(2);
}
_root.cow3.times1 = 0;
cowtimes(3);
} else {
_root.cow3.count = 0;
_root.cow3.me1.gotoAndStop(1);
_root.cow3.me2.gotoAndStop(1);
_root.cow3.times = 0;
cowgone(3);
}
}
}
function cowgone(s) {
_root["cow" + s].times1++;
if (_root["cow" + s].grow == true) {
if (_root["cow" + s].times1 == 500) {
_root["cowFood" + s].gotoAndStop(11);
}
if (_root["cow" + s].times1 == 600) {
_root["cow" + s].gotoAndPlay("die");
if (_root.soundready == false) {
_root.sound12.start();
}
_root["cow_Box" + s]._visible = false;
_root["cow_Box" + s].gotoAndStop(1);
_root["cowFood" + s].gotoAndStop(1);
_root["cowFood" + s]._visible = false;
_root["cowfoodItem" + s] = false;
_root["cow" + s].times1 = 0;
_root["cow" + s].count = 0;
_root["cow" + s].grow = false;
if (_root["milk" + s]._visible == false) {
_root["cowCounts" + s] = 0;
_root["cowCounts" + s] = "";
}
_root["cow" + s].times = 0;
_root["cowfoodItemVal" + s] = 0;
}
if (_root["cow" + s].times1 == 610) {
_root["cow" + s]._visible = false;
_root["cow_Box" + s]._visible = false;
_root["cow_Box" + s].gotoAndStop(1);
_root["cowFood" + s].gotoAndStop(1);
_root["cow" + s].gotoAndPlay(1);
_root.cowcnt--;
}
}
}
function cowtimes(p) {
_root["cow" + p].times++;
if (_root["cow" + p].times == 500) {
_root["cow" + p].grow = true;
_root["cow" + p].count = 0;
_root["cow" + p].gotoAndPlay("grow");
}
if (_root["cow" + p].times >= 1000) {
if (_root["cowCounts" + p] != "") {
_root["milk" + p]._visible = true;
_root["milk" + p].gotoAndStop(15);
_root["cowCounts" + p] = _root["cowCounts" + p] + 1;
} else {
_root["milk" + p]._visible = true;
_root["milk" + p].gotoAndPlay(1);
_root["cowCounts" + p] = 1;
}
_root["cow" + p].times = 500;
}
}
function pigTimimg() {
if (_root.pig1.timer == true) {
if (_root.pigfoodItem1) {
_root.pig1.count++;
if (_root.pig1.count == 1) {
if (_root.pig1.grow == true) {
_root.pig1.times = 500;
}
_root.pig1.me2.gotoAndPlay(2);
_root.pig1.me1.gotoAndPlay(2);
}
_root.pig1.times1 = 0;
pigtimes(1);
} else {
_root.pig1.count = 0;
_root.pig1.me2.gotoAndStop(1);
_root.pig1.me1.gotoAndStop(1);
_root.pig1.times = 0;
piggone(1);
}
}
if (_root.pig2.timer == true) {
if (_root.pigfoodItem2) {
_root.pig2.count++;
if (_root.pig2.count == 1) {
if (_root.pig2.grow == true) {
_root.pig2.times = 500;
}
_root.pig2.me2.gotoAndPlay(2);
_root.pig2.me1.gotoAndPlay(2);
}
_root.pig2.times1 = 0;
pigtimes(2);
} else {
_root.pig2.count = 0;
_root.pig2.me2.gotoAndStop(1);
_root.pig2.me1.gotoAndStop(1);
_root.pig2.times = 0;
piggone(2);
}
}
}
function piggone(s) {
_root["pig" + s].times1++;
if (_root["pig" + s].grow == true) {
if (_root["pig" + s].times1 == 800) {
_root["pigFood" + s].gotoAndStop(11);
}
if (_root["pig" + s].times1 == 900) {
_root["pig" + s].gotoAndPlay("die");
if (_root.soundready == false) {
_root.sound12.start();
}
_root["pig_Box" + s]._visible = false;
_root["pig_Box" + s].gotoAndStop(1);
_root["pigFood" + s].gotoAndStop(1);
_root["pigFood" + s]._visible = false;
_root["pigfoodItem" + s] = false;
_root["pig" + s].times1 = 0;
_root["pig" + s].count = 0;
_root["pig" + s].grow = false;
if (_root.meat._visible == false) {
_root.meatCounts = 0;
_root.meatCounts = "";
}
if ((_root.meatCounts == 0) || (_root.meatCounts == "")) {
_root.meat._visible = false;
} else {
_root.meat._visible = true;
}
_root["pig" + s].times = 0;
}
if (_root["pig" + s].times1 == 910) {
_root["pig" + s]._visible = false;
_root["pig" + s].gotoAndPlay(1);
_root["pig_Box" + s]._visible = false;
_root["pig_Box" + s].gotoAndStop(1);
_root["pigFood" + s].gotoAndStop(1);
_root.pigcnt--;
}
}
}
function pigtimes(p) {
_root["pig" + p].times++;
if (_root["pig" + p].times == 500) {
_root["pig" + p].grow = true;
_root["pig" + p].count = 0;
_root["pig" + p].gotoAndPlay("grow");
}
if (_root["pig" + p].times >= 1000) {
if (_root.meatCounts != "") {
_root.meatCounts = _root.meatCounts + 1;
_root.meat._visible = true;
} else {
_root.meat.gotoAndPlay(1);
_root.meat._visible = true;
_root.meatCounts = 1;
}
_root["pig" + p]._visible = false;
_root["pig_Box" + p]._visible = false;
_root["pig" + p].count = 0;
_root["pig" + p].grow = false;
_root["pig" + p].times = 0;
_root["pig" + p].timer = true;
_root["pig" + p].times1 = 0;
_root["pigFood" + p]._visible = false;
_root["pigFoodGiven" + p] = false;
_root["pigfoodItem" + p] = false;
}
}
function relievingPlants() {
if (_root.henfoodItem == true) {
_root.henfoodItemVal++;
if (_root.henfoodItemVal == 100) {
_root.henFood._visible = true;
_root.henfoodie.gotoAndStop(5);
}
if (_root.henfoodItemVal == 200) {
_root.henFood._visible = true;
_root.henfoodie.gotoAndStop(10);
}
if (_root.henfoodItemVal == 300) {
_root.henFood._visible = true;
_root.henfoodie.gotoAndStop(15);
}
if (_root.henfoodItemVal == 500) {
_root.henfoodie._visible = false;
_root.henfoodItem = false;
_root.henfoodItemVal = 0;
}
}
}
function relievingGrass(s) {
if (_root["cowfoodItem" + s] == true) {
_root["cowfoodItemVal" + s]++;
if (_root["cowfoodItemVal" + s] == 100) {
_root["cow_Box" + s].gotoAndStop(3);
}
if (_root["cowfoodItemVal" + s] == 200) {
_root["cowFood" + s]._visible = true;
_root["cow_Box" + s].gotoAndStop(5);
}
if (_root["cowfoodItemVal" + s] == 300) {
_root["cowFood" + s]._visible = true;
_root["cow_Box" + s].gotoAndStop(10);
}
if (_root["cowfoodItemVal" + s] == 500) {
_root["cowFood" + s]._visible = true;
_root["cow_Box" + s].gotoAndStop(1);
_root["cowfoodItem" + s] = false;
_root["cowfoodItemVal" + s] = 0;
}
}
}
function relievingWheat(s) {
if (_root["pigfoodItem" + s] == true) {
_root["pigfoodItemVal" + s]++;
if (_root["pigfoodItemVal" + s] == 100) {
_root["pig_Box" + s].gotoAndStop(3);
}
if (_root["pigfoodItemVal" + s] == 200) {
_root["pigFood" + s]._visible = true;
_root["pig_Box" + s].gotoAndStop(5);
}
if (_root["pigfoodItemVal" + s] == 300) {
_root["pigFood" + s]._visible = true;
_root["pig_Box" + s].gotoAndStop(10);
}
if (_root["pigfoodItemVal" + s] == 500) {
_root["pig_Box" + s].gotoAndStop(1);
_root["pigFood" + s]._visible = true;
_root["pigfoodItem" + s] = false;
_root["pigfoodItemVal" + s] = 0;
}
}
}
function growingTimes(s) {
if (_root["tile" + s].needwater == false) {
_root["tile" + s].times++;
}
_root["tile" + s].waters++;
if (_root["tile" + s].waters == 1200) {
_root["tile" + s].waterboard._visible = true;
_root["tile" + s].waterboard.gotoAndPlay(1);
_root["tile" + s].needwater = true;
}
if ((_root["tile" + s].waters == 1500) && (_root["tile" + s].needwater == true)) {
if (((_root["tile" + s]._currentframe == 7) || (_root["tile" + s]._currentframe == 6)) || (_root["tile" + s]._currentframe == 5)) {
_root["tile" + s].gotoAndStop(9);
} else if (((_root["tile" + s]._currentframe == 12) || (_root["tile" + s]._currentframe == 11)) || (_root["tile" + s]._currentframe == 10)) {
_root["tile" + s].gotoAndStop(14);
} else if (((_root["tile" + s]._currentframe == 17) || (_root["tile" + s]._currentframe == 16)) || (_root["tile" + s]._currentframe == 15)) {
_root["tile" + s].gotoAndStop(19);
}
}
if (_root["tile" + s].waters == 1520) {
_root["tile" + s].count = 0;
_root["tile" + s].val = 80;
_root["tile" + s].cnt = 0;
_root["tile" + s].times = 0;
_root["tile" + s].gotoAndStop(1);
_root["tile" + s].timeIterval = false;
_root["tile" + s].needwater = false;
_root["tile" + s].waters = 0;
}
if (_root["tile" + s].times == _root["tile" + s].val) {
if (_root["tile" + s].needwater == false) {
_root["tile" + s].count++;
if (_root["tile" + s].count <= 3) {
_root["tile" + s].gotoAndStop(_root["tile" + s]._currentframe + _root["tile" + s].sets);
_root["tile" + s].sets = 1;
_root["tile" + s].times = 0;
if (_root["tile" + s].count == 2) {
_root["tile" + s].val = 120;
}
if (_root["tile" + s].count == 3) {
_root["tile" + s].val = 1700;
}
}
if (_root["tile" + s].count == 4) {
_root["tile" + s].count = 0;
_root["tile" + s].val = 80;
_root["tile" + s].cnt = 0;
_root["tile" + s].times = 0;
_root["tile" + s].waters = 0;
_root["tile" + s].needwater = false;
_root["tile" + s].gotoAndStop(1);
_root["tile" + s].timeIterval = false;
}
}
}
}
function growingPlants() {
if (_root.tile1.timeIterval == true) {
growingTimes(1);
}
if (_root.tile2.timeIterval == true) {
growingTimes(2);
}
if (_root.tile3.timeIterval == true) {
growingTimes(3);
}
if (_root.tile4.timeIterval == true) {
growingTimes(4);
}
if (_root.tile5.timeIterval == true) {
growingTimes(5);
}
if (_root.tile6.timeIterval == true) {
growingTimes(6);
}
if (_root.tile7.timeIterval == true) {
growingTimes(7);
}
if (_root.tile8.timeIterval == true) {
growingTimes(8);
}
if (_root.tile9.timeIterval == true) {
growingTimes(9);
}
if (_root.tile10.timeIterval == true) {
growingTimes(10);
}
if (_root.tile11.timeIterval == true) {
growingTimes(11);
}
if (_root.tile12.timeIterval == true) {
growingTimes(12);
}
if (_root.tile13.timeIterval == true) {
growingTimes(13);
}
if (_root.tile14.timeIterval == true) {
growingTimes(14);
}
if (_root.tile15.timeIterval == true) {
growingTimes(15);
}
if (_root.tile16.timeIterval == true) {
growingTimes(16);
}
if (_root.tile17.timeIterval == true) {
growingTimes(17);
}
if (_root.tile18.timeIterval == true) {
growingTimes(18);
}
if (_root.tile19.timeIterval == true) {
growingTimes(19);
}
if (_root.tile20.timeIterval == true) {
growingTimes(20);
}
if (_root.tile21.timeIterval == true) {
growingTimes(21);
}
if (_root.tile22.timeIterval == true) {
growingTimes(22);
}
if (_root.tile23.timeIterval == true) {
growingTimes(23);
}
if (_root.tile24.timeIterval == true) {
growingTimes(24);
}
if (_root.tile25.timeIterval == true) {
growingTimes(25);
}
if (_root.tile26.timeIterval == true) {
growingTimes(26);
}
if (_root.tile27.timeIterval == true) {
growingTimes(27);
}
if (_root.tile28.timeIterval == true) {
growingTimes(28);
}
if (_root.tile29.timeIterval == true) {
growingTimes(29);
}
if (_root.tile30.timeIterval == true) {
growingTimes(30);
}
}
initLevel();
_root.onEnterFrame = function () {
_root.timeSetToClose++;
if (_root.timeSetToClose == 7) {
setCloseFunction();
_root.timeSetToClose = 0;
}
if (_root.newPaused == false) {
if (_root.Paused == false) {
action();
}
if (_root.starPress == true) {
_root.star1._x = _xmouse;
_root.star1._y = _ymouse;
_root.Paused = true;
changeDirect();
}
if (_root.deletPress == true) {
_root.dels._x = _xmouse;
_root.dels._y = _ymouse;
_root.Paused = true;
deleFunc();
}
if (_root.tiletaken == true) {
_root.tilecopy._x = _xmouse;
_root.tilecopy._y = _ymouse;
changeTiles();
}
_root.nmt++;
if (_root.nmt == 5) {
_root.tiletaken = false;
}
var _local3 = 1;
while (_local3 < 12) {
if (_root["phase" + _local3] == true) {
_root["phase" + _local3] = false;
_root.tut.gotoAndPlay(_root.tut._currentframe);
}
_local3++;
}
_root.marketBtn.onPress = function () {
this.gotoAndStop(1);
_root.newPaused = true;
_root.Paused = true;
_root.shopPress = true;
_root.tutor.enabled = false;
_root.pauses.enabled = false;
_root.dayDialog._visible = false;
if (_root.soundready == false) {
_root.sound9.start();
}
var _local3 = 1;
while (_local3 < 31) {
_root["tiles" + _local3]._visible = false;
_root["tile" + _local3].enabled = false;
_root["tiles" + _local3].enabled = false;
_local3++;
}
};
_root.dayDialog.marketBtn.onPress = function () {
this.gotoAndStop(1);
_root.newPaused = true;
_root.Paused = true;
_root.shopPress = true;
_root.tutor.enabled = false;
_root.pauses.enabled = false;
_root.dayDialog._visible = false;
if (_root.soundready == false) {
_root.sound9.start();
}
var _local3 = 1;
while (_local3 < 31) {
_root["tiles" + _local3]._visible = false;
_root["tile" + _local3].enabled = false;
_root["tiles" + _local3].enabled = false;
_local3++;
}
};
}
_root.dayDialog.endDay.onPress = function () {
endDays();
_root.dayDialog._visible = false;
};
_root.dayDialog.endDay.onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
};
_root.dayDialog.endDay.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
if (_root.dialogPressOk == true) {
endDays();
_root.dialogPressOk = false;
}
_root.kitchenBtn.onPress = function () {
this.gotoAndStop(1);
_root.newPaused = true;
if (_root.soundready == false) {
_root.sound9.start();
}
_root.Paused = true;
_root.shopdetail = false;
_root.shopPress = false;
_root.kitchenPress = true;
_root.tutor.enabled = false;
_root.pauses.enabled = false;
_root.dayDialog._visible = false;
var _local3 = 1;
while (_local3 < 31) {
_root["tiles" + _local3]._visible = false;
_root["tile" + _local3].enabled = false;
_root["tiles" + _local3].enabled = false;
_local3++;
}
};
_root.dayDialog.kitchenBtn.onPress = function () {
this.gotoAndStop(1);
_root.newPaused = true;
_root.Paused = true;
_root.shopdetail = false;
if (_root.soundready == false) {
_root.sound9.start();
}
_root.shopPress = false;
_root.kitchenPress = true;
_root.tutor.enabled = false;
_root.pauses.enabled = false;
var _local3 = 1;
while (_local3 < 31) {
_root["tiles" + _local3]._visible = false;
_root["tile" + _local3].enabled = false;
_root["tiles" + _local3].enabled = false;
_local3++;
}
_root.dayDialog._visible = false;
};
_root.kitchenBtn.onRollOver = function () {
this.gotoAndStop(2);
};
_root.kitchenBtn.onRollOut = function () {
this.gotoAndStop(1);
};
_root.marketBtn.onRollOver = function () {
this.gotoAndStop(2);
};
_root.marketBtn.onRollOut = function () {
this.gotoAndStop(1);
};
_root.dayDialog.kitchenBtn.onRollOver = function () {
this.gotoAndStop(2);
};
_root.dayDialog.kitchenBtn.onRollOut = function () {
this.gotoAndStop(1);
};
_root.dayDialog.marketBtn.onRollOver = function () {
this.gotoAndStop(2);
};
_root.dayDialog.marketBtn.onRollOut = function () {
this.gotoAndStop(1);
};
if (_root.newPaused) {
_root.pauses.enabled = false;
_root.shopItem();
}
};
_root.menuItem = true;
_root.attachMovie("tutors1", "tut", 1000, {_x:310, _y:220});
_root.tut._visible = true;
_root.tut.gotoAndStop(1);
_root.tut.gotoAndPlay(2);
_root.tutor._visible = true;
Frame 21
function initLevel() {
_root.henseedprice = 3;
_root.cowseedprice = 10;
_root.pigseedprice = 10;
_root.henprice = 10;
_root.cowprice = 25;
_root.pigprice = 30;
_root.EggPrices = 3;
_root.MilkPrices = 10;
_root.MeatPrices = 10;
_root.freezerPrice = 500;
_root.toasterPrice = 1000;
_root.ovenPrice = 2000;
_root.pastryPrice = 32;
_root.icecreamPrice = 38;
_root.cutletPrice = 40;
_root.sandwitchPrice = 56;
_root.meatrollPrice = 76;
_root.cakePrice = 103;
_root.total = 0;
_root.mansionPrice = 10000;
_root.dayDialogsPress = false;
_root.closeBtn1.enabled = false;
_root.closeBtn1.gotoAndStop(2);
_root.eggGiven = 0;
_root.milkGiven = 0;
_root.meatGiven = 0;
_root.cakeGiven = 0;
_root.icecreamGiven = 0;
_root.meatrollGiven = 0;
_root.sandwitchGiven = 0;
_root.pastryGiven = 0;
_root.cutletGiven = 0;
_root.henseedBought = 0;
_root.cowseedBought = 0;
_root.pigseedBought = 0;
_root.henBought = 0;
_root.cowBought = 0;
_root.pigBought = 0;
_root.freezerBought = 0;
_root.toasterBought = 0;
_root.ovenBought = 0;
_root.totalmoneylevel = 0;
_root.freezePoint = false;
_root.toastPoint = false;
_root.ovenPoint = false;
_root.pastrySell = false;
_root.iceSell = false;
_root.cutletSell = false;
_root.meatrollSell = false;
_root.sandwitchSell = false;
_root.cakeSell = false;
_root.meat._visible = false;
_root.egg._visible = false;
_root.milk._visible = false;
_root.kitchen._visible = false;
_root.pauseMenu._visible = false;
_root.sound2 = new Sound();
_root.sound2.attachSound("click");
_root.sound3 = new Sound();
_root.sound3.attachSound("tileClick");
_root.sound4 = new Sound();
_root.sound4.attachSound("digging");
_root.sound5 = new Sound();
_root.sound5.attachSound("pour");
_root.sound6 = new Sound();
_root.sound6.attachSound("watering");
_root.sound7 = new Sound();
_root.sound7.attachSound("levelup");
_root.sound8 = new Sound();
_root.sound8.attachSound("money");
_root.sound9 = new Sound();
_root.sound9.attachSound("btnSnd");
_root.sound10 = new Sound();
_root.sound10.attachSound("btnSnd");
_root.sound11 = new Sound();
_root.sound11.attachSound("clickItemSnd");
_root.sound12 = new Sound();
_root.sound12.attachSound("lose");
_root.walkDirect = false;
_root.instructions._visible = false;
_root.instructions.removeMovieClip();
_root.Paused = false;
_root.tiletaken = false;
_root.dayDialog._visible = false;
_root.cnounts = 0;
_root.hencount = 0;
_root.hencounts = 0;
_root.cowcounts = 0;
_root.cowcount = 0;
_root.pigcounts = 0;
_root.pigcount = 0;
_root.eggjum = 1;
_root.milkjum = 1;
_root.meatjum = 1;
_root.pasteMilk = 0;
_root.pasteEgg = 0;
_root.pasteMeat = 0;
_root.pastryEggNum = 1;
_root.pastryMilkNum = 1;
_root.iceMilkNum = 1;
_root.iceEggNum = 2;
_root.cutletMeatNum = 2;
_root.cutletEggNum = 1;
_root.meatrollMeatNum = 2;
_root.meatrollEggNum = 2;
_root.sandwitchMeatNum = 1;
_root.sandwitchEggNum = 4;
_root.cakeMilkNum = 2;
_root.cakEggNum = 5;
_root.timers = 0;
_root.tut._visible = false;
_root.tut.removeMovieClip();
_root.takeRack = false;
_root.storeBtn.frame = 1;
_root.stars.frame = 1;
_root.del.frame = 1;
_root.tutor.frame = 1;
_root.starCount = 0;
_root.countEgg = 0;
_root.countMilk = 0;
_root.countMeat = 0;
_root.tookItem = 0;
_root.meatNum = 0;
_root.dollar._visible = false;
_root.diggerPress = false;
_root.cowCount1 = false;
_root.tookFood = false;
_root.cowCount2 = false;
_root.tookFood = false;
_root.startAction = false;
_root.marks1 = false;
_root.nums = 1;
_root.dialogPressOk = false;
_root.girl.items1.gotoAndStop(14);
_root.girl.items1.bar.gotoAndStop(1);
_root.girl.bar.gotoAndStop(1);
_root.number = 0;
_root.tookItem = 0;
_root.cowTimer1 = 0;
_root.cowTimer2 = 0;
_root.cowsfoods = false;
_root.pigsfoods = false;
_root.price._visible = false;
_root.timer = 0;
_root.waterCount = 10;
_root.eggCounts = "";
_root.meatCounts = "";
_root.cowCounts1 = "";
_root.cowCounts2 = "";
_root.cowCounts3 = "";
_root.cowCounts = 0;
_root.currentPos = "S1";
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.waters = false;
_root.diggers = false;
_root.serving = false;
_root.shop._visible = false;
_root.shop.gotoAndStop(1);
_root.cowFoods._visible = false;
_root.cowFoods.mark._visible = false;
_root.pigFoods._visible = false;
_root.pigFoods.mark._visible = false;
_root.henFoods.mark._visible = false;
_root.house.mark._visible = false;
_root.arrayTile = new Array();
_root.henFood.gotoAndPlay(1);
_root.henFood.mark._visible = false;
_root.henfoodie._visible = false;
_root.speed = 19;
_root.bucket.mark._visible = false;
_root.digger.mark._visible = false;
_root.collectbox.mark._visible = false;
_root.well.mark._visible = false;
var _local2 = 1;
while (_local2 < 4) {
_root["cow" + _local2].count = 0;
_root["cow" + _local2].grow = false;
_root["cow" + _local2].times = 0;
_root["cow" + _local2].timer = true;
_root["cow" + _local2].times1 = 0;
_root["cowFoodGiven" + _local2] = false;
_root["cowfoodItem" + _local2] = false;
_root["cow" + _local2]._visible = false;
_root["cow_Box" + _local2]._visible = false;
_root["cowFood" + _local2]._visible = false;
_root["cowFood" + _local2].mark._visible = false;
_local2++;
}
_root.arrayHold = new Array();
_root.arrayHold.splice(0);
_root.hencnt = 2;
_root.cowcnt = 0;
_root.pigcnt = 0;
_local2 = 1;
while (_local2 < 3) {
_root["pig" + _local2].count = 0;
_root["pig" + _local2].grow = false;
_root["pig" + _local2].times = 0;
_root["pig" + _local2].timer = true;
_root["pig" + _local2].times1 = 0;
_root["pigFoodGiven" + _local2] = false;
_root["pigfoodItem" + _local2] = false;
_root["pig" + _local2]._visible = false;
_root["pig_Box" + _local2]._visible = false;
_root["pigFood" + _local2]._visible = false;
_root["pigFood" + _local2].mark._visible = false;
_root["pig" + _local2]._visible = false;
_local2++;
}
_root.bucket.isWell = true;
_local2 = 1;
while (_local2 < 3) {
_root["hen" + _local2].count = 0;
_root["hen" + _local2].grow = false;
_root["hen" + _local2].times = 0;
_root["hen" + _local2].timer = true;
_root["hen" + _local2].times1 = 0;
_local2++;
}
_local2 = 3;
while (_local2 < 6) {
_root["hen" + _local2].count = 0;
_root["hen" + _local2].grow = false;
_root["hen" + _local2].times = 0;
_root["hen" + _local2].times1 = 0;
_root["hen" + _local2]._visible = false;
_local2++;
}
_local2 = 1;
while (_local2 < 4) {
_root["milk" + _local2].mark._visible = false;
_local2++;
}
_root.egg.mark._visible = false;
_root.meat.mark._visible = false;
_local2 = 1;
while (_local2 < 31) {
_root["tile" + _local2].cnt = 0;
_root["tile" + _local2].barpnt._visible = false;
_root["tile" + _local2].mark._visible = false;
_root["tile" + _local2].needwater = false;
_root["tile" + _local2].waterboard.gotoAndStop(1);
_root["tile" + _local2].waterboard._visible = false;
_root["main" + _local2]._visible = false;
_root["tiles" + _local2].number = 0;
_local2++;
}
_root.scores1 = "";
_root.bucketCount = 1;
_root.bucket.gotoAndStop(2);
_root.xPOs = new Array();
_root.xPos = [169.2, 219.2, 269.2, 319.2, 369.2, 419.2, 469.2, 519.2];
_root.yPOs = new Array();
_root.yPos = [98.2, 148.2, 198.2, 248.2, 298.2, 348.2, 398.2];
_root.currentNodex = 219.2;
_root.currentNodey = 198.2;
_root.girl._x = 219.2;
_root.girl._y = 198.2;
_root.countFood1 = 9;
_root.countFood2 = "";
_root.countFood3 = "";
_root.girlMoves = false;
_root.arrayDestNodeX = new Array();
_root.arrayDestNodeY = new Array();
_root.hensfoods = false;
_root.henFoodGiven = false;
_root.eggNum = 0;
_root.icecreamCount = 0;
_root.meatrollCount = 0;
_root.pastryCount = 0;
_root.cutletCount = 0;
_root.sandwitchCount = 0;
_root.cakeCount = 0;
_root.destinationNodex = undefined;
_root.destinationNodey = undefined;
_root.girl.items1.gotoAndStop(14);
_root.itm = 14;
_root.girl.items1.gotoAndStop(14);
_root.itm = 14;
_root.diggerPressed = false;
_root.dollar._visible = false;
_root.score = "";
_root.watersupply = false;
_root.timeSetToClose = 0;
}
function endDays() {
if (_root.scores == 0) {
_root.scor = _root.scores;
} else {
_root.scor = "$" + _root.scores;
}
_root.attachMovie("levels", "levelups", 1000, {_x:314, _y:220});
_root.levelups._visible = true;
_root.levelups.gotoAndPlay(1);
_root.eggPr = _root.eggGiven * _root.EggPrices;
_root.milkPr = _root.milkGiven * _root.MilkPrices;
_root.meatPr = _root.meatGiven * _root.MeatPrices;
_root.SeedHen = _root.henseedBought * _root.henseedprice;
_root.SeedCow = _root.cowseedBought * _root.cowseedprice;
_root.SeedPig = _root.pigseedBought * _root.pigseedprice;
_root.Hentot = _root.henBought * _root.henprice;
_root.Cowtot = _root.cowBought * _root.cowprice;
_root.Pigtot = _root.pigBought * _root.pigprice;
_root.totalFreezes = _root.freezerBought * _root.freezerPrice;
_root.totalToasters = _root.toasterBought * _root.toasterPrice;
_root.totalOvens = _root.ovenBought * _root.ovenPrice;
_root.pastetot = _root.pastryGiven * _root.pastryPrice;
_root.icetot = _root.icecreamGiven * _root.icecreamPrice;
_root.meatrolltot = _root.meatrollGiven * _root.meatrollPrice;
_root.cutlettot = _root.cutletGiven * _root.cutletPrice;
_root.sandtot = _root.sandwitchGiven * _root.sandwitchPrice;
_root.caketot = _root.cakeGiven * _root.cakePrice;
_root.earn = (((((((_root.eggPr + _root.milkPr) + _root.meatPr) + _root.pastetot) + _root.icetot) + _root.meatrolltot) + _root.cutlettot) + _root.sandtot) + _root.caketot;
_root.spends = (((((((_root.SeedHen + _root.SeedCow) + _root.SeedPig) + _root.Hentot) + _root.Cowtot) + _root.Pigtot) + _root.totalFreezes) + _root.totalToasters) + _root.totalOvens;
_root.earnedMoney = "$" + _root.earn;
_root.spendMoney = "$" + _root.spends;
_root.totalmoneylevel = "$" + (_root.earn - _root.spends);
_root.levels++;
_root.sound7.start();
_root.Paused = true;
_root.dayDialogsPress = false;
}
function action() {
if (_root.Paused == false) {
Pressed();
cowTimer();
ItemsPressed();
_root.setTimes = true;
setTimer();
if (_root.arrayHold.length > 0) {
if (_root.startAction == false) {
arrayMoves();
}
}
if (_root.girlMoves == false) {
girlMovement();
}
if (_root.eggPrice == true) {
_root.price.gotoAndStop(1);
_root.price._visible = false;
_root.eggPrice = false;
}
if (_root.milkPrice == true) {
_root.price.gotoAndStop(1);
_root.price._visible = false;
_root.milkPrice = false;
}
if (_root.meatPrice == true) {
_root.price.gotoAndStop(1);
_root.price._visible = false;
_root.meatPrice = false;
}
if (_root.henfoodItem) {
relievingPlants();
}
if (_root.cowfoodItem1) {
relievingGrass(1);
}
if (_root.cowfoodItem2) {
relievingGrass(2);
}
if (_root.cowfoodItem3) {
relievingGrass(3);
}
if (_root.pigfoodItem1) {
relievingWheat(1);
}
if (_root.pigfoodItem2) {
relievingWheat(2);
}
pigTimimg();
cowTimimg();
henTimimg();
growingPlants();
gameOver();
tutorPress();
if (_root.watersupply == true) {
if (_root.timers == _root.timeForWaters) {
_root.girl.gotoAndStop("watermiddle");
_root.watersupply = false;
}
}
}
}
function tutorPress() {
_root.tutor.onPress = function () {
if (_root.soundready == false) {
_root.sound9.start();
}
_root.menuItem = false;
var _local3 = 1;
while (_local3 < 31) {
_root["tiles" + _local3]._visible = false;
_root["tile" + _local3].enabled = false;
_root["tiles" + _local3].enabled = false;
_local3++;
}
_root.stars.enabled = false;
_root.del.enabled = false;
_root.helps.enabled = false;
_root.pauses.enabled = false;
_root.storeBtn.enabled = false;
_root.Paused = true;
_root.attachMovie("tutors", "tut", 1000, {_x:310, _y:220});
_root.tut._visible = true;
_root.tut.gotoAndStop(1);
_root.tut.gotoAndPlay(2);
_local3 = 1;
while (_local3 < 12) {
_root["phase" + _local3] = false;
_local3++;
}
this.enabled = false;
};
}
function gameOver() {
if ((((((((((_root.hen1._visible == false) && (_root.hen2._visible == false)) && (_root.hen3._visible == false)) && (_root.hen4._visible == false)) && (_root.hen5._visible == false)) && (_root.cow1._visible == false)) && (_root.cow2._visible == false)) && (_root.cow3._visible == false)) && (_root.pig1._visible == false)) && (_root.pig2._visible == false)) {
if (_root.scores < 10) {
gameoverStart();
}
}
}
function gameoverStart() {
user_so.data.datas = "";
_root.pauseMenu._visible = false;
_root.pauseMenu.removeMovieClip();
_root.shop._visible = false;
_root.shop.removeMovieClip();
_root.kitchen.removeMovieClip();
_root.star1.removeMovieClip();
_root.starPress = false;
_root.deletPress = false;
_root.dels.removeMovieClip();
_root.tut.removeMovieClip();
_root.instructions._visible = false;
_root.instructions.removeMovieClip();
_root.gotoAndPlay("gameover");
}
function changeTiles() {
var _local3 = 1;
while (_local3 < 31) {
if ((_root["tile" + _local3]._currentframe == 1) || (_root["tile" + _local3]._currentframe == 3)) {
if (_root.tilecopy.hitTest(_root["tile" + _local3].hit)) {
_root.tileName = _root["tile" + _local3];
if (_root.marks1 == true) {
_root.arrayHold[_root.dds] = _local3;
}
_root.tilecopy.onPress = function () {
_root.tileName.gotoAndStop(this._currentframe);
this.removeMovieClip();
_root.tileName.count = _root.contTile;
_root.tileName.val = 80;
_root.tileName.cnt = _root.cntTile;
_root.tileName.times = 0;
_root.tileName.sets = 1;
_root.tileName.waters = _root.cntwater;
_root.tileName.timeIterval = true;
_root.tileName.needwater = _root.cntwaterFlag;
if (_root.tileName.needwater == true) {
_root.tileName.waterboard._visible = true;
_root.tileName.waterboard.gotoAndStop(5);
} else {
_root.tileName.waterboard._visible = false;
_root.tileName.waterboard.gotoAndStop(1);
}
if (_root.marks1 == true) {
_root.tileName.mark._visible = true;
} else {
_root.tileName.mark._visible = false;
}
_root.marks1 = false;
_root.tileName = "";
_root.tiletaken = false;
};
}
}
_local3++;
}
}
function setTimer() {
if (_root.setTimes) {
_root.timer++;
_root.timers++;
if (_root.timer == 40) {
_root.times.gotoAndStop(_root.times._currentframe + 1);
if (_root.times._currentframe == 65) {
_root.storeBtn.enabled = false;
_root.stars.enabled = false;
_root.del.enabled = false;
_root.helps.enabled = false;
_root.tutor.enabled = false;
_root.tut.removeMovieClip();
_root.dayDialogsPress = true;
_root.girl.gotoAndStop(_root.girl._currentframe);
var _local2 = 1;
while (_local2 < 31) {
_root["tiles" + _local2]._visible = false;
_root["tile" + _local2].enabled = false;
_root["tiles" + _local2].enabled = false;
_local2++;
}
_root.dayDialog._visible = true;
_root.Paused = true;
_root.setTimes = false;
}
_root.timer = 0;
}
}
}
function Pressed() {
if (_root.Paused == false) {
var _local4 = 1;
while (_local4 < 31) {
_root["tiles" + _local4].onRollOver = function () {
if (_root.Paused == false) {
var _local3 = Number(String(this).substring(13, 16));
_root.useHandCursor = true;
_root["tile" + _local3].barpnt._visible = true;
if ((_root["tile" + _local3].waters >= 0) && (_root["tile" + _local3].waters < 300)) {
_root["tile" + _local3].barpnt.gotoAndStop(1);
} else if ((_root["tile" + _local3].waters >= 300) && (_root["tile" + _local3].waters < 600)) {
_root["tile" + _local3].barpnt.gotoAndStop(10);
} else if ((_root["tile" + _local3].waters >= 600) && (_root["tile" + _local3].waters < 1000)) {
_root["tile" + _local3].barpnt.gotoAndStop(20);
} else if (_root["tile" + _local3].waters >= 1000) {
_root["tile" + _local3].barpnt.gotoAndStop(25);
}
this.gotoAndStop(2);
}
};
_root["tiles" + _local4].onRollOut = function () {
if (_root.Paused == false) {
_root.useHandCursor = true;
var _local3 = Number(String(this).substring(13, 16));
this.gotoAndStop(1);
_root["tile" + _local3].barpnt._visible = false;
}
};
_root["tiles" + _local4].onPress = function () {
if (_root.Paused == false) {
var _local3 = 1;
while (_local3 < 31) {
_local3++;
}
this.number++;
_root.girlMoves = false;
_root.waterbottle.gotoAndStop(1);
var _local4 = Number(String(this).substring(13, 16));
_root.destinationNode = "G" + _local4;
_root["tile" + _local4].barpnt._visible = false;
_root.arrayHold.push(_local4);
if (_root.soundready == false) {
_root.sound3.start();
}
_root["tile" + _local4].mark._visible = true;
if (_root.diggerPressed == true) {
}
}
};
_local4++;
}
}
}
function produce(s) {
if (_root["timeSetForFood" + s] == true) {
_root["timeSet" + s]++;
if (_root["timeSet" + s] == 15) {
_root["tile" + s].gotoAndStop(nextFrame);
}
}
}
function girlMovement() {
if ((_root.currentNodey == _root.destinationNodey) || (_root.currentNodex == _root.destinationNodex)) {
if (_root.currentNodey == _root.destinationNodey) {
if (_root.currentNodex < _root.destinationNodex) {
if (Math.round(_root.girl._x) >= Math.round(_root.destinationNodex)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("rightItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("rightItem");
_root.walkDirect = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.setDigger = true;
_root["diggs" + _root.itm] = true;
_root.diggerPressed = false;
} else {
_root.girl.gotoAndPlay("right");
_root.walkDirect = true;
}
_root.girlpaused = true;
}
_root.girl._x = _root.girl._x + _root.speed;
}
} else if (Math.round(_root.girl._x) <= Math.round(_root.destinationNodex)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("leftItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("leftItem");
_root.walkDirect = true;
_root.setDigger = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.diggerPressed = false;
_root["diggs" + _root.itm] = true;
} else {
_root.girl.gotoAndPlay("left");
_root.walkDirect = true;
}
_root.girlpaused = true;
}
_root.girl._x = _root.girl._x - _root.speed;
}
} else if (_root.currentNodex == _root.destinationNodex) {
if (_root.currentNodey < _root.destinationNodey) {
if (Math.round(_root.girl._y) >= Math.round(_root.destinationNodey)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused1 == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("frontItem");
_root.walkDirect = true;
_root.diggerPressed = false;
_root.setDigger = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
} else {
_root.girl.gotoAndPlay("front");
_root.walkDirect = true;
}
_root.girlpaused1 = true;
}
_root.girl._y = _root.girl._y + _root.speed;
}
} else if (Math.round(_root.girl._y) <= Math.round(_root.destinationNodey)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused1 == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("backItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("backItem");
_root.walkDirect = true;
_root.setDigger = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.diggerPressed = false;
_root["diggs" + _root.itm] = true;
} else {
_root.girl.gotoAndPlay("back");
_root.walkDirect = true;
}
_root.girlpaused1 = true;
}
_root.girl._y = _root.girl._y - _root.speed;
}
}
} else if (_root.currentNodey < _root.destinationNodey) {
if (Math.round(_root.girl._y) >= Math.round(_root.destinationNodey)) {
if (_root.currentNodex < _root.destinationNodex) {
if (Math.round(_root.girl._x) >= Math.round(_root.destinationNodex)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("rightItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("rightItem");
_root.walkDirect = true;
_root.setDigger = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.diggerPressed = false;
_root["diggs" + _root.itm] = true;
} else {
_root.girl.gotoAndPlay("right");
_root.walkDirect = true;
}
_root.girlpaused = true;
}
_root.girl._x = _root.girl._x + _root.speed;
}
} else if (Math.round(_root.girl._x) <= Math.round(_root.destinationNodex)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("leftItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("leftItem");
_root.walkDirect = true;
_root.setDigger = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.diggerPressed = false;
} else {
_root.girl.gotoAndPlay("left");
_root.walkDirect = true;
}
_root.girlpaused = true;
}
_root.girl._x = _root.girl._x - _root.speed;
}
} else {
if (_root.girlpaused1 == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("frontItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.walkDirect = true;
_root.setDigger = true;
_root.diggerPressed = false;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
} else {
_root.girl.gotoAndPlay("front");
_root.walkDirect = true;
}
_root.girlpaused1 = true;
}
_root.girl._y = _root.girl._y + _root.speed;
}
} else if (_root.currentNodey > _root.destinationNodey) {
if (Math.round(_root.girl._y) <= Math.round(_root.destinationNodey)) {
if (_root.currentNodex < _root.destinationNodex) {
if (Math.round(_root.girl._x) >= Math.round(_root.destinationNodex)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("rightItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("rightItem");
_root.walkDirect = true;
_root.setDigger = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.diggerPressed = false;
_root["diggs" + _root.itm] = true;
} else {
_root.girl.gotoAndPlay("right");
_root.walkDirect = true;
}
_root.girlpaused = true;
}
_root.girl._x = _root.girl._x + _root.speed;
}
} else if (Math.round(_root.girl._x) <= Math.round(_root.destinationNodex)) {
correctPlace();
_root.walkDirect = false;
} else {
if (_root.girlpaused == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("leftItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.items1.imt1.mark._visible = false;
_root.girl.gotoAndPlay("leftItem");
_root.walkDirect = true;
_root.setDigger = true;
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.diggerPressed = false;
_root["diggs" + _root.itm] = true;
} else {
_root.girl.gotoAndPlay("left");
_root.walkDirect = true;
}
_root.girlpaused = true;
}
_root.girl._x = _root.girl._x - _root.speed;
}
} else {
if (_root.girlpaused1 == false) {
if ((_root.diggerPressed == true) || (_root.setDigger == true)) {
_root.girl.gotoAndStop("backItem");
_root.girl.items1.gotoAndStop(_root.itm);
_root.girl.gotoAndPlay("backItem");
_root.walkDirect = true;
_root.girl.items1.imt1.mark._visible = false;
_root.girl.items1.gotoAndStop(_root.itm);
if (_root.itm == 5) {
if ((_root.waterCount >= 1) && (_root.waterCount <= 10)) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.nums = 0;
}
}
_root.setDigger = true;
_root.diggerPressed = false;
_root["diggs" + _root.itm] = true;
} else {
_root.girl.gotoAndPlay("back");
_root.walkDirect = true;
}
_root.girlpaused1 = true;
}
_root.girl._y = _root.girl._y - _root.speed;
}
}
}
function correctPlace() {
var _local3 = 1;
while (_local3 < 31) {
_local3++;
}
_root.setDigger = false;
_root.currentNodex = _root.girl._x;
_root.currentNodey = _root.girl._y;
_root.girl._x = _root.destinationNodex;
_root.girl._y = _root.destinationNodey;
_root.girl.gotoAndStop(1);
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = true;
_root.arrayDestNodeX = [219, 269, 319, 369, 419, 469, 219, 269, 319, 369, 419, 469, 219, 269, 319, 369, 419, 469, 219, 269, 319, 369, 419, 469, 219, 269, 319, 369, 419, 469];
_root.arrayDestNodeY = [148, 148, 148, 148, 148, 148, 198, 198, 198, 198, 198, 198, 248, 248, 248, 248, 248, 248, 298, 298, 298, 298, 298, 298, 348, 348, 348, 348, 348, 348];
var _local2 = 0;
while (_local2 < _root.arrayDestNodeX.length) {
if (_root.arrayDestNodeX[_local2] == Math.round(_root.destinationNodex)) {
if (_root.arrayDestNodeY[_local2] == Math.round(_root.destinationNodey)) {
_root.tile = _local2 + 1;
break;
}
}
_local2++;
}
_root.xPos = [169.2, 219.2, 269.2, 319.2, 369.2, 419.2, 469.2, 519.2];
_root.yPos = [98.2, 148.2, 198.2, 248.2, 298.2, 348.2, 398.2];
reachItems();
reachItemswithTile();
}
function reachItems() {
if (itemTook == 1) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(1);
_root.itm = 1;
_root.tookItem = 1;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.walkDirect1 = false;
_root.walkDirect2 = false;
_root.walkDirect3 = false;
}
}
if (itemTook == 2) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(5);
if (_root.bucket.isWell == true) {
_root.girl.items1.bucket.gotoAndStop(2);
_root.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
} else {
_root.girl.items1.bucket.gotoAndStop(1);
_root.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
}
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.itm = 5;
_root.tookItem = 2;
_root.diggerPressed = true;
_root.walkDirect1 = false;
_root.walkDirect2 = false;
_root.walkDirect3 = false;
}
}
if (itemTook == 3) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(2);
_root.itm = 2;
_root.tookItem = 3;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.walkDirect1 = false;
_root.walkDirect2 = false;
_root.walkDirect3 = false;
}
}
if (itemTook == 4) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.tookEggs == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(11);
_root.itm = 11;
_root.tookItem = 4;
_root.tookEggs = false;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
} else if (_root.tookMilks == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(12);
_root.itm = 12;
_root.tookMilks = false;
_root.tookItem = 4;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
} else if (_root.tookMeats == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(13);
_root.itm = 13;
_root.tookMeats = false;
_root.tookItem = 4;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
} else if (_root.hensfoods1 == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
_root.tookItem = 4;
_root.hensfoods1 = false;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
} else if (_root.pigsfoods1 == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(9);
_root.itm = 9;
_root.tookItem = 4;
_root.pigsfoods1 = false;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
} else if (_root.cowsfoods1 == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(10);
_root.itm = 10;
_root.cowsfoods1 = false;
_root.tookItem = 4;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.tookItem = 4;
_root.diggerPressed = true;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
}
}
}
if (itemTook == 5) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(3);
_root.itm = 3;
_root.tookItem = 5;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.walkDirect1 = false;
_root.walkDirect2 = false;
_root.walkDirect3 = false;
}
}
if (itemTook == 6) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(4);
_root.itm = 4;
_root.tookItem = 6;
_root.diggerPressed = true;
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.walkDirect1 = false;
_root.walkDirect2 = false;
_root.walkDirect3 = false;
}
}
if (_root.wellPressed == true) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.tookItem == 2) {
if (_root.waterCount == 10) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(5);
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.bar.gotoAndStop(_root.nums);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.itm = 5;
_root.wellPressed = false;
_root.diggerPressed = true;
} else {
_root.waterCount = 10;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(5);
_root.itm = 5;
_root.wellPressed = false;
_root.bucket.isWell = true;
_root.girl.bar.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(1);
_root.waterbottle.gotoAndPlay(1);
_root.nums = 0;
_root.itm = 5;
_root.diggerPressed = true;
}
} else {
if (_root.cowsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
}
if (_root.hensfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(10);
_root.itm = 10;
}
if (_root.pigsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(9);
_root.itm = 9;
}
if (_root.tookMilk == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(12);
_root.itm = 12;
}
if (_root.tookEgg == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(11);
_root.itm = 11;
}
if (_root.tookMeat == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(13);
_root.itm = 13;
}
}
}
}
if (_root.henFoodGiven == true) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.tookItem == 4) {
if ((_root.henFood._visible == true) && (((((_root.hen1._visible == true) || (_root.hen2._visible == true)) || (_root.hen3._visible == true)) || (_root.hen4._visible == true)) || (_root.hen5._visible == true))) {
if (_root.hensfoods == true) {
if (_root.pigsfoods || (_root.cowsfoods)) {
if (_root.pigsfoods) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(9);
_root.itm = 9;
_root.hensfoods = false;
_root.hensfoods1 = false;
} else if (_root.cowsfoods) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(10);
_root.itm = 10;
_root.hensfoods = false;
_root.hensfoods1 = false;
}
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
}
_root.tookFood = false;
_root.hensfoods = false;
_root.hensfoods1 = false;
_root.diggerPressed = true;
_root.henFood.gotoAndStop(10);
_root.henFoodGiven = false;
if (_root.hencounts == 1) {
_root.henfoodie._visible = true;
_root.henfoodie.gotoAndStop(10);
_root.henfoodItemVal = 200;
_root.henFood._visible = true;
_root.hencount = 0;
_root.hencounts = 0;
}
if (_root.hencounts == 2) {
_root.henfoodie._visible = true;
_root.henfoodie.gotoAndStop(5);
_root.henfoodItemVal = 100;
_root.henFood._visible = true;
_root.hencount = 0;
_root.hencounts = 0;
}
if (_root.hencounts == 3) {
_root.henfoodie._visible = true;
_root.henfoodie.gotoAndStop(1);
_root.henfoodItemVal = 0;
_root.henFood._visible = false;
_root.hencount = 0;
_root.hencounts = 0;
}
_root.henFood.arrows.gotoAndStop(1);
_root.henfoodItem = true;
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.hencount = 0;
_root.hencounts = 0;
_root.diggerPressed = true;
_root.henFoodGiven = false;
}
} else {
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.henFood.arrows.gotoAndStop(1);
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.hencount = 0;
_root.hencounts = 0;
_root.diggerPressed = true;
_root.henFoodGiven = false;
}
}
}
}
if (((_root.cowFoodGiven1 == true) || (_root.cowFoodGiven2 == true)) || (_root.cowFoodGiven3 == true)) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.cowFoodGiven1 == true) {
_root.cowvals = 1;
} else if (_root.cowFoodGiven2 == true) {
_root.cowvals = 2;
} else if (_root.cowFoodGiven3 == true) {
_root.cowvals = 3;
}
if (_root.tookItem == 4) {
if ((_root["cowFood" + _root.cowvals]._visible == true) && (_root["cow" + _root.cowvals]._visible == true)) {
if (_root.cowsfoods == true) {
if (_root.pigsfoods || (_root.hensfoods)) {
if (_root.pigsfoods) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(9);
_root.itm = 9;
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
}
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
}
_root.tookFood = false;
_root.cowsfoods = false;
_root["cowsfoods" + _root.cowvals] = false;
_root["cowFood" + _root.cowvals].gotoAndStop(10);
_root.diggerPressed = true;
_root["cowFoodGiven" + _root.cowvals] = false;
if (_root.cowcounts == 1) {
_root["cow_Box" + _root.cowvals]._visible = true;
_root["cow_Box" + _root.cowvals].gotoAndStop(5);
_root["cowfoodItemVal" + _root.cowvals] = 200;
_root["cowFood" + _root.cowvals]._visible = true;
_root.cowcount = 0;
_root.cowcounts = 0;
}
if (_root.cowcounts == 2) {
_root["cow_Box" + _root.cowvals]._visible = true;
_root["cow_Box" + _root.cowvals].gotoAndStop(3);
_root["cowfoodItemVal" + _root.cowvals] = 100;
_root["cowFood" + _root.cowvals]._visible = false;
_root.cowcount = 0;
_root.cowcounts = 0;
}
var _local2 = 1;
while (_local2 < 4) {
_root["cowFood" + _local2].arrows.gotoAndStop(1);
_local2++;
}
_root["cowfoodItem" + _root.cowvals] = true;
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.cowcount = 0;
_root.cowcounts = 0;
var _local2 = 1;
while (_local2 < 4) {
_root["cowFood" + _local2].arrows.gotoAndStop(1);
_local2++;
}
_root.diggerPressed = true;
_root.cowFoodGiven1 = false;
}
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.cowcount = 0;
_root.cowcounts = 0;
_root.diggerPressed = true;
_root["cowFoodGiven" + _root.cowvals] = false;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
}
}
}
}
if ((_root.pigFoodGiven1 == true) || (_root.pigFoodGiven2 == true)) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.pigFoodGiven1 == true) {
_root.pigvals = 1;
} else if (_root.pigFoodGiven2 == true) {
_root.pigvals = 2;
}
if (_root.tookItem == 4) {
if ((_root["pigFood" + _root.pigvals]._visible == true) && (_root["pig" + _root.pigvals]._visible == true)) {
if (_root.pigsfoods == true) {
if (_root.cowsfoods || (_root.hensfoods)) {
if (_root.cowsfoods) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(10);
_root.itm = 10;
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
}
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
}
_root.tookFood = false;
_root.pigsfoods = false;
_root["pigsfoods" + _root.pigvals] = false;
_root["pigFood" + _root.pigvals].gotoAndStop(10);
_root.diggerPressed = true;
_root["pigFoodGiven" + _root.pigvals] = false;
_root["pigfoodItem" + _root.pigvals] = true;
if (_root.pigcounts == 1) {
_root["pig_Box" + _root.pigvals]._visible = true;
_root["pig_Box" + _root.pigvals].gotoAndStop(5);
_root["pigfoodItemVal" + _root.pigvals] = 200;
_root["pigFood" + _root.pigvals]._visible = true;
_root.pigcount = 0;
_root.pigcounts = 0;
}
if (_root.pigcounts == 2) {
_root["pig_Box" + _root.pigvals]._visible = true;
_root["pig_Box" + _root.pigvals].gotoAndStop(3);
_root["pigfoodItemVal" + _root.pigvals] = 100;
_root["pigFood" + _root.pigvals]._visible = false;
_root.pigcount = 0;
_root.pigcounts = 0;
}
_root.pigFood1.arrows.gotoAndStop(1);
_root.pigFood2.arrows.gotoAndStop(1);
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.diggerPressed = true;
_root["pigFoodGiven" + _root.pigvals] = false;
_root.pigcount = 0;
_root.pigcounts = 0;
var _local2 = 1;
while (_local2 < 3) {
_root["pigFood" + _local2].arrows.gotoAndStop(1);
_local2++;
}
}
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.diggerPressed = true;
_root["pigFoodGiven" + _root.pigvals] = false;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
_root.pigcount = 0;
var _local2 = 1;
while (_local2 < 3) {
_root["pigFood" + _local2].arrows.gotoAndStop(1);
_local2++;
}
_root.pigcounts = 0;
}
}
}
}
if (_root.eggTaken == true) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.tookItem == 4) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(11);
_root.itm = 11;
_root.eggNum = _root.eggNum + _root.eggCounts;
_root.eggCounts = 0;
if (_root.eggCounts == 0) {
_root.eggCounts = "";
}
_root.egg._visible = false;
_root.eggTaken = false;
_root.tookEgg = true;
_root.diggerPressed = true;
_root.collectboard.blink.gotoAndPlay(1);
} else {
_root.eggTaken = false;
_root.diggerPressed = true;
}
}
}
if (((_root.milkTaken1 == true) || (_root.milkTaken2 == true)) || (_root.milkTaken3 == true)) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.milkTaken1 == true) {
_root.milkvals = 1;
} else if (_root.milkTaken2 == true) {
_root.milkvals = 2;
} else if (_root.milkTaken3 == true) {
_root.milkvals = 3;
}
if (_root.tookItem == 4) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(12);
_root.itm = 12;
_root["milk" + _root.milkvals]._visible = false;
_root["milk" + _root.milkvals].gotoAndStop(1);
_root.cowCounts = _root.cowCounts + _root["cowCounts" + _root.milkvals];
_root["cowCounts" + _root.milkvals] = 0;
if (_root["cowCounts" + _root.milkvals] == 0) {
_root["cowCounts" + _root.milkvals] = "";
}
_root["milkTaken" + _root.milkvals] = false;
_root.tookMilk = true;
_root.diggerPressed = true;
_root.collectboard.blink.gotoAndPlay(1);
} else {
_root["milkTaken" + _root.milkvals] = false;
_root.diggerPressed = true;
}
}
}
if (_root.meatTaken == true) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.tookItem == 4) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(13);
_root.itm = 13;
_root.meatNum = _root.meatNum + _root.meatCounts;
_root.meatCounts = 0;
if (_root.meatCounts == 0) {
_root.meatCounts = "";
}
_root.meat._visible = false;
_root.meat.gotoAndStop(1);
_root.meatTaken = false;
_root.tookMeat = true;
_root.diggerPressed = true;
_root.collectboard.blink.gotoAndPlay(1);
} else {
_root.meatTaken = false;
_root.diggerPressed = true;
}
}
}
if (_root.housePressed == true) {
if ((Math.round(_root.girl._x) == Math.round(_root.valsX)) && (Math.round(_root.girl._y) == Math.round(_root.valsY))) {
if (_root.tookItem == 4) {
if (_root.tookEgg == true) {
_root.tookEgg = false;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.countEgg = _root.countEgg + Math.round(_root.eggNum);
_root.eggNum = 0;
_root.tookEggs = false;
_root.housePressed = false;
_root.diggerPressed = true;
_root.collectboard.blink.gotoAndStop(1);
}
if (_root.tookMilk == true) {
_root.tookMilk = false;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.cowNum = _root.cowCounts;
_root.cowCounts = 0;
_root.tookMilks = false;
_root.countMilk = _root.countMilk + Math.round(_root.cowNum);
_root.cowNum = 0;
_root.housePressed = false;
_root.diggerPressed = true;
_root.collectboard.blink.gotoAndStop(1);
}
if (_root.tookMeat == true) {
_root.tookMeat = false;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.tookMeats = false;
_root.countMeat = _root.countMeat + (Math.round(_root.meatNum) * 5);
_root.meatNum = 0;
_root.collectboard.blink.gotoAndStop(1);
_root.housePressed = false;
_root.diggerPressed = true;
} else {
if (_root.cowsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
}
if (_root.hensfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(10);
_root.itm = 10;
}
if (_root.pigsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(9);
_root.itm = 9;
}
_root.housePressed = false;
_root.diggerPressed = true;
}
}
}
}
}
function reachItemswithTile() {
if (_root.tookItem == 0) {
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(14);
_root.itm = 14;
_root.diggerPressed = true;
_root.startAction = false;
}
if (_root.tookItem == 1) {
if ((Math.round(_root.girl._x) == Math.round(_root["tile" + _root.tile]._x)) && (Math.round(_root.girl._y) == Math.round(_root["tile" + _root.tile]._y))) {
if (_root["tile" + _root.tile]._currentframe == 1) {
_root.girl.gotoAndStop("digging");
_root.walkDirect1 = true;
_root["tile" + _root.tile].gotoAndStop(3);
_root.girl.items1.gotoAndStop(1);
_root.itm = 1;
if (_root.soundready == false) {
_root.sound4.start();
}
} else {
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(1);
_root.itm = 1;
_root.diggerPressed = true;
_root.startAction = false;
}
}
}
if (_root.tookItem == 3) {
if ((Math.round(_root.girl._x) == Math.round(_root["tile" + _root.tile]._x)) && (Math.round(_root.girl._y) == Math.round(_root["tile" + _root.tile]._y))) {
if (_root["tile" + _root.tile]._currentframe == 3) {
if (_root.countFood1 > 0) {
_root.girl.gotoAndPlay("foodserving");
_root.walkDirect2 = true;
_root.girl.items1.gotoAndStop(2);
_root.itm = 2;
if (_root.soundready == false) {
_root.sound5.start();
}
_root.countFood1 = _root.countFood1 - 1;
if (_root.countFood1 <= 0) {
_root.countFood1 = 0;
_root.countFood1 = "";
_root.henFoods._visible = false;
}
_root["tile" + _root.tile].gotoAndStop(4);
_root["tile" + _root.tile].barpnt._visible = false;
_root["tile" + _root.tile].timeIterval = true;
_root["tile" + _root.tile].times = 0;
_root["tile" + _root.tile].sets = 1;
_root["tile" + _root.tile].val = 80;
_root["tile" + _root.tile].count = 0;
_root["tile" + _root.tile].waters = 0;
_root["tile" + _root.tile].needwater = false;
_root.arrayTile.push(_root["tile" + _root.tile]);
} else {
_root.arrayHold.splice(0, 1);
_root.startAction = false;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(14);
_root.itm = 14;
_root.diggerPressed = true;
}
} else {
_root.arrayHold.splice(0, 1);
_root.startAction = false;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(2);
_root.itm = 2;
_root.diggerPressed = true;
}
}
}
if (_root.tookItem == 2) {
if ((Math.round(_root.girl._x) == Math.round(_root["tile" + _root.tile]._x)) && (Math.round(_root.girl._y) == Math.round(_root["tile" + _root.tile]._y))) {
if (_root.bucket.isWell == true) {
if (_root.watersupply == false) {
if ((((_root["tile" + _root.tile]._currentframe >= 4) && (_root["tile" + _root.tile]._currentframe <= 7)) || ((_root["tile" + _root.tile]._currentframe >= 10) && (_root["tile" + _root.tile]._currentframe <= 12))) || ((_root["tile" + _root.tile]._currentframe >= 15) && (_root["tile" + _root.tile]._currentframe <= 17))) {
_root.waterCount--;
_root.timeForWaters = _root.timers;
_root.timeForWaters = _root.timeForWaters + 10;
_root.girl.gotoAndStop("watering");
_root.walkDirect3 = true;
_root.girl.items1.gotoAndStop(5);
if (_root.soundready == false) {
_root.sound6.start();
}
_root.itm = 5;
_root.watersupply = true;
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.bucks.gotoAndStop(1);
_root.nums = _root.nums + 3;
_root.girl.bar.gotoAndStop(_root.nums);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root["tile" + _root.tile].needwater = false;
_root["tile" + _root.tile].waterboard.gotoAndStop(1);
_root["tile" + _root.tile].waterboard._visible = false;
_root["tile" + _root.tile].waters = 0;
_root["tile" + _root.tile].barpnt.gotoAndStop(1);
if (((_root["tile" + _root.tile]._currentframe == 7) || (_root["tile" + _root.tile]._currentframe == 12)) || (_root["tile" + _root.tile]._currentframe == 17)) {
_root["tile" + _root.tile].times = 0;
_root["tile" + _root.tile].val = 1700;
}
if ((((((_root["tile" + _root.tile]._currentframe == 6) || (_root["tile" + _root.tile]._currentframe == 11)) || (_root["tile" + _root.tile]._currentframe == 16)) || (_root["tile" + _root.tile]._currentframe == 5)) || (_root["tile" + _root.tile]._currentframe == 10)) || (_root["tile" + _root.tile]._currentframe == 15)) {
_root["tile" + _root.tile].times = 0;
_root["tile" + _root.tile].val = 80;
}
if (_root["tilecounts" + _root.tile] == true) {
_root["tile" + _root.tile].timeIterval = true;
_root["tile" + _root.tile].times = 0;
_root["tile" + _root.tile].sets = 1;
_root["tile" + _root.tile].val = 120;
_root["tile" + _root.tile].count = 2;
_root["tile" + _root.tile].waters = 0;
_root["tilecounts" + _root.tile] = false;
}
if (_root.waterCount == 0) {
_root.girl.bucks.gotoAndStop(2);
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.items1.bar.gotoAndStop(30);
_root.girl.bar.gotoAndStop(30);
_root.bucket.isWell = false;
}
} else {
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(5);
_root.itm = 5;
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
_root.diggerPressed = true;
_root.startAction = false;
}
} else if (_root.timers == _root.timeForWaters) {
_root.girl.gotoAndStop("watermiddle");
} else {
_root.girl.items1.gotoAndStop(5);
_root.girl.gotoAndStop("watering");
_root.itm = 5;
_root.girl.items1.bar.gotoAndStop(_root.nums);
_root.girl.bar.gotoAndStop(_root.nums);
_root.girl.items1.bucket.gotoAndStop(2);
_root.girl.bucks.gotoAndStop(1);
}
} else {
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(5);
_root.itm = 5;
_root.girl.items1.bucket.gotoAndStop(1);
_root.girl.bar.gotoAndStop(30);
_root.girl.items1.bar.gotoAndStop(30);
_root.nums = 0;
_root.diggerPressed = true;
}
}
}
if (_root.tookItem == 4) {
if ((Math.round(_root.girl._x) == Math.round(_root["tile" + _root.tile]._x)) && (Math.round(_root.girl._y) == Math.round(_root["tile" + _root.tile]._y))) {
if ((((_root["tile" + _root.tile]._currentframe == 7) || (_root["tile" + _root.tile]._currentframe == 12)) || (_root["tile" + _root.tile]._currentframe == 17)) && (_root["tile" + _root.tile].needwater == false)) {
if (_root["tile" + _root.tile]._currentframe == 7) {
_root.hencount++;
if ((_root.hencount >= 1) && (_root.hencount < 4)) {
if (_root.hencount == 1) {
_root.henFood.arrows.gotoAndPlay(1);
}
tileFoods(_root.tile);
_root.hencounts = _root.hencount;
} else {
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
_root.diggerPressed = true;
}
}
if (_root["tile" + _root.tile]._currentframe == 12) {
_root.cowcount++;
if ((_root.cowcount >= 1) && (_root.cowcount < 3)) {
tileFoods(_root.tile);
if (_root.cowcount == 1) {
_root.cowFood1.arrows.gotoAndPlay(1);
_root.cowFood2.arrows.gotoAndPlay(1);
_root.cowFood3.arrows.gotoAndPlay(1);
}
_root.cowcounts = _root.cowcount;
} else {
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
_root.diggerPressed = true;
}
}
if (_root["tile" + _root.tile]._currentframe == 17) {
_root.pigcount++;
if ((_root.pigcount >= 1) && (_root.pigcount < 3)) {
tileFoods(_root.tile);
if (_root.pigcount == 1) {
_root.pigFood1.arrows.gotoAndPlay(1);
_root.pigFood2.arrows.gotoAndPlay(1);
}
_root.pigcounts = _root.pigcount;
} else {
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
_root.diggerPressed = true;
}
}
} else if ((((_root["tile" + _root.tile]._currentframe == 7) || (_root["tile" + _root.tile]._currentframe == 12)) || (_root["tile" + _root.tile]._currentframe == 17)) && (_root["tile" + _root.tile].needwater == true)) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.diggerPressed = true;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
} else if (_root.hensfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
_root.diggerPressed = true;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
} else {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(6);
_root.itm = 6;
_root.diggerPressed = true;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
}
}
}
if (_root.tookItem == 5) {
if ((Math.round(_root.girl._x) == Math.round(_root["tile" + _root.tile]._x)) && (Math.round(_root.girl._y) == Math.round(_root["tile" + _root.tile]._y))) {
if (_root["tile" + _root.tile]._currentframe == 3) {
if (_root.countFood2 > 0) {
_root.girl.gotoAndPlay("foodserving");
_root.girl.items1.gotoAndStop(2);
_root.itm = 2;
_root.walkDirect2 = true;
if (_root.soundready == false) {
_root.sound5.start();
}
_root.countFood2 = _root.countFood2 - 1;
if (_root.countFood2 <= 0) {
_root.countFood2 = 0;
_root.countFood2 = "";
_root.cowFoods._visible = false;
}
_root["tile" + _root.tile].gotoAndStop(4);
_root["tile" + _root.tile].barpnt._visible = false;
_root["tile" + _root.tile].timeIterval = true;
_root["tile" + _root.tile].times = 0;
_root["tile" + _root.tile].sets = 6;
_root["tile" + _root.tile].val = 80;
_root["tile" + _root.tile].count = 0;
_root["tile" + _root.tile].waters = 0;
_root["tile" + _root.tile].needwater = false;
_root.arrayTile.push(_root["tile" + _root.tile]);
} else {
_root.arrayHold.splice(0, 1);
_root.startAction = false;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(14);
_root.itm = 14;
_root.diggerPressed = true;
}
} else {
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(3);
_root.itm = 3;
_root.diggerPressed = true;
}
}
}
if (_root.tookItem == 6) {
if ((Math.round(_root.girl._x) == Math.round(_root["tile" + _root.tile]._x)) && (Math.round(_root.girl._y) == Math.round(_root["tile" + _root.tile]._y))) {
if (_root["tile" + _root.tile]._currentframe == 3) {
if (_root.countFood3 > 0) {
_root.girl.gotoAndPlay("foodserving");
_root.walkDirect2 = true;
_root.girl.items1.gotoAndStop(2);
_root.itm = 2;
if (_root.soundready == false) {
_root.sound5.start();
}
_root.countFood3 = _root.countFood3 - 1;
if (_root.countFood3 <= 0) {
_root.countFood3 = 0;
_root.countFood3 = "";
_root.pigFoods._visible = false;
}
_root["tile" + _root.tile].gotoAndStop(4);
_root["tile" + _root.tile].barpnt._visible = false;
_root["tile" + _root.tile].timeIterval = true;
_root["tile" + _root.tile].times = 0;
_root["tile" + _root.tile].sets = 11;
_root["tile" + _root.tile].val = 80;
_root["tile" + _root.tile].count = 0;
_root["tile" + _root.tile].waters = 0;
_root["tile" + _root.tile].needwater = false;
_root.arrayTile.push(_root["tile" + _root.tile]);
} else {
_root.arrayHold.splice(0, 1);
_root.startAction = false;
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(14);
_root.itm = 14;
_root.diggerPressed = true;
}
} else {
_root.startAction = false;
_root.arrayHold.splice(0, 1);
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(3);
_root.itm = 3;
_root.diggerPressed = true;
}
}
}
}
function tileFoods(tiles) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
_root.tookFood = true;
_root["tile" + tiles].cnt++;
if (_root["tile" + tiles].cnt == 9) {
_root.diggerPressed = true;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
_root["tile" + tiles].count = 3;
_root["tile" + tiles].val = 10;
_root["tile" + tiles].times = 0;
if (_root["tile" + tiles]._currentframe == 7) {
_root["tile" + tiles].gotoAndStop(9);
_root["tile" + tiles].sets = 1;
_root.hensfoods = true;
} else if (_root["tile" + tiles]._currentframe == 12) {
_root["tile" + tiles].sets = 1;
_root["tile" + tiles].gotoAndStop(14);
_root.cowsfoods = true;
} else if (_root["tile" + tiles]._currentframe == 17) {
_root["tile" + tiles].sets = 1;
_root["tile" + tiles].gotoAndStop(19);
_root.pigsfoods = true;
}
} else {
_root["tile" + tiles].times = 0;
_root["tile" + tiles].count = 1;
if (_root["tile" + tiles]._currentframe == 7) {
_root["tile" + tiles].sets = 1;
_root["tile" + tiles].gotoAndStop(5);
_root.hensfoods = true;
}
if (_root["tile" + tiles]._currentframe == 12) {
_root["tile" + tiles].sets = 1;
_root["tile" + tiles].gotoAndStop(10);
_root.cowsfoods = true;
}
if (_root["tile" + tiles]._currentframe == 17) {
_root["tile" + tiles].sets = 1;
_root["tile" + tiles].gotoAndStop(15);
_root.pigsfoods = true;
}
_root["tile" + tiles].val = 80;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
_root.diggerPressed = true;
}
}
function arrayMoves() {
if ((_root.arrayHold[0] >= 1) && (_root.arrayHold[0] <= 30)) {
_root.girl.gotoAndPlay("front");
_root.destinationNodex = _root["tile" + _root.arrayHold[0]]._x;
_root.destinationNodey = _root["tile" + _root.arrayHold[0]]._y;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = false;
_root.startAction = true;
_root.diggerPressed = true;
_root.waterbottle.gotoAndStop(1);
if (_root.watersupply == false) {
}
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
_root.girl.bar.gotoAndStop(_root.nums);
_root.girl.items1.bar.gotoAndStop(_root.nums);
} else {
_root.bucket.gotoAndStop(1);
_root.girl.bar.gotoAndStop(30);
_root.girl.items1.bar.gotoAndStop(30);
}
_root["tile" + _root.arrayHold[0]].mark._visible = false;
}
if (_root.arrayHold[0] == 31) {
if (_root.tookEgg == true) {
_root.tookEggs = true;
}
if (_root.tookMilk == true) {
_root.tookMilks = true;
}
if (_root.tookMeat == true) {
_root.tookMeats = true;
}
if (_root.hensfoods == true) {
_root.hensfoods1 = true;
}
if (_root.cowsfoods == true) {
_root.cowsfoods1 = true;
}
if (_root.pigsfoods == true) {
_root.pigsfoods1 = true;
}
_root.waterbottle.gotoAndStop(1);
_root.itemTook = 1;
_root.digger.mark._visible = false;
_root.diggerPressed = true;
_root.destinationNodex = _root.xPos[3];
_root.destinationNodey = _root.yPos[0];
_root.valsX = _root.xPos[3];
_root.valsY = _root.yPos[0];
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = false;
_root.startAction = true;
}
if (_root.arrayHold[0] == 32) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.girl.items1.bar.gotoAndStop(_root.nums);
if (_root.tookEgg == true) {
_root.tookEggs = true;
}
if (_root.tookMilk == true) {
_root.tookMilks = true;
}
if (_root.tookMeat == true) {
_root.tookMeats = true;
}
if (_root.hensfoods == true) {
_root.hensfoods1 = true;
}
if (_root.cowsfoods == true) {
_root.cowsfoods1 = true;
}
if (_root.pigsfoods == true) {
_root.pigsfoods1 = true;
}
_root.waterbottle.gotoAndStop(1);
_root.bucket.mark._visible = false;
_root.itemTook = 2;
_root.destinationNodex = _root.xPos[2];
_root.destinationNodey = _root.yPos[0];
_root.diggerPressed = true;
_root.valsX = _root.xPos[2];
_root.valsY = _root.yPos[0];
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = false;
_root.startAction = true;
}
if (_root.arrayHold[0] == 33) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
if (_root.tookEgg == true) {
_root.tookEggs = true;
}
if (_root.tookMilk == true) {
_root.tookMilks = true;
}
if (_root.tookMeat == true) {
_root.tookMeats = true;
}
if (_root.hensfoods == true) {
_root.hensfoods1 = true;
}
if (_root.cowsfoods == true) {
_root.cowsfoods1 = true;
}
if (_root.pigsfoods == true) {
_root.pigsfoods1 = true;
}
_root.itemTook = 3;
_root.henFoods.mark._visible = false;
_root.destinationNodex = _root.xPos[7];
_root.destinationNodey = _root.yPos[6];
_root.valsX = _root.xPos[7];
_root.valsY = _root.yPos[6];
_root.waterbottle.gotoAndStop(1);
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = false;
_root.diggerPressed = true;
_root.startAction = true;
}
if (_root.arrayHold[0] == 34) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.collectbox.mark._visible = false;
_root.itemTook = 4;
_root.destinationNodex = _root.xPos[4];
_root.destinationNodey = _root.yPos[0];
_root.valsX = _root.xPos[4];
_root.valsY = _root.yPos[0];
_root.waterbottle.gotoAndStop(1);
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.diggerPressed = true;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 35) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.well.mark._visible = false;
_root.wellPressed = true;
_root.waterbottle.gotoAndStop(1);
_root.destinationNodex = _root.xPos[7];
_root.destinationNodey = _root.yPos[3];
_root.valsX = _root.xPos[7];
_root.valsY = _root.yPos[3];
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.diggerPressed = true;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 36) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.henFood.mark._visible = false;
if (_root.hensfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
} else {
_root.girl.gotoAndStop("front");
}
_root.waterbottle.gotoAndStop(1);
_root.henFoodGiven = true;
_root.destinationNodex = _root.xPos[7];
_root.destinationNodey = _root.yPos[4];
_root.valsX = _root.xPos[7];
_root.valsY = _root.yPos[4];
_root.girlMoves = false;
_root.diggerPressed = true;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 37) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.waterbottle.gotoAndStop(1);
_root.egg.mark._visible = false;
_root.eggTaken = true;
_root.destinationNodex = _root.xPos[7];
_root.destinationNodey = _root.yPos[5];
_root.valsX = _root.xPos[7];
_root.valsY = _root.yPos[5];
_root.diggerPressed = true;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 38) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.waterbottle.gotoAndStop(1);
_root.house.mark._visible = false;
_root.housePressed = true;
_root.destinationNodex = _root.xPos[7];
_root.destinationNodey = _root.yPos[0];
_root.valsX = _root.xPos[7];
_root.valsY = _root.yPos[0];
_root.diggerPressed = true;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.girlMoves = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 39) {
if (_root.Paused == false) {
_root.itemTook = 5;
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.cowFoods.mark._visible = false;
if (_root.tookEgg == true) {
_root.tookEggs = true;
}
if (_root.tookMilk == true) {
_root.tookMilks = true;
}
if (_root.tookMeat == true) {
_root.tookMeats = true;
}
if (_root.hensfoods == true) {
_root.hensfoods1 = true;
}
if (_root.cowsfoods == true) {
_root.cowsfoods1 = true;
}
if (_root.pigsfoods == true) {
_root.pigsfoods1 = true;
}
_root.waterbottle.gotoAndStop(1);
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[0];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[0];
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.diggerPressed = true;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 40) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.cowFood1.mark._visible = false;
if (_root.cowsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
} else {
_root.girl.gotoAndStop("front");
}
_root.waterbottle.gotoAndStop(1);
_root.cowFoodGiven1 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[3];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[3];
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.diggerPressed = true;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 41) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.cowFood2.mark._visible = false;
if (_root.cowsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
} else {
_root.girl.gotoAndStop("front");
}
_root.waterbottle.gotoAndStop(1);
_root.cowFoodGiven2 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[2];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[2];
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.diggerPressed = true;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 42) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.cowFood3.mark._visible = false;
if (_root.cowsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
} else {
_root.girl.gotoAndStop("front");
}
_root.waterbottle.gotoAndStop(1);
_root.cowFoodGiven3 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[0];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[0];
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.diggerPressed = true;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 43) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.waterbottle.gotoAndStop(1);
_root.milk1.mark._visible = false;
_root.milkTaken1 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[3];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[3];
_root.diggerPressed = true;
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 44) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.waterbottle.gotoAndStop(1);
_root.milk2.mark._visible = false;
_root.milkTaken2 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[2];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[2];
_root.diggerPressed = true;
_root.girlMoves = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 45) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.waterbottle.gotoAndStop(1);
_root.milk3.mark._visible = false;
_root.milkTaken3 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[0];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[0];
_root.diggerPressed = true;
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 46) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
if (_root.tookEgg == true) {
_root.tookEggs = true;
}
if (_root.tookMilk == true) {
_root.tookMilks = true;
}
if (_root.tookMeat == true) {
_root.tookMeats = true;
}
if (_root.hensfoods == true) {
_root.hensfoods1 = true;
}
if (_root.cowsfoods == true) {
_root.cowsfoods1 = true;
}
if (_root.pigsfoods == true) {
_root.pigsfoods1 = true;
}
_root.waterbottle.gotoAndStop(1);
_root.pigFoods.mark._visible = false;
_root.itemTook = 6;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[6];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[6];
_root.girlMoves = false;
_root.diggerPressed = true;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 47) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
if (_root.pigsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
} else {
_root.girl.gotoAndStop("front");
}
_root.waterbottle.gotoAndStop(1);
_root.pigFood1.mark._visible = false;
_root.pigFoodGiven1 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[5];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[5];
_root.girlMoves = false;
_root.diggerPressed = true;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 48) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
if (_root.pigsfoods == true) {
_root.girl.gotoAndStop("frontItem");
_root.girl.items1.gotoAndStop(8);
_root.itm = 8;
} else {
_root.girl.gotoAndStop("front");
}
_root.waterbottle.gotoAndStop(1);
_root.pigFood2.mark._visible = false;
_root.pigFoodGiven2 = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[4];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[4];
_root.girlMoves = false;
_root.diggerPressed = true;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.startAction = true;
}
}
if (_root.arrayHold[0] == 49) {
if (_root.Paused == false) {
if (_root.bucket.isWell == true) {
_root.bucket.gotoAndStop(2);
} else {
_root.bucket.gotoAndStop(1);
}
_root.waterbottle.gotoAndStop(1);
_root.meat.mark._visible = false;
_root.meatTaken = true;
_root.destinationNodex = _root.xPos[0];
_root.destinationNodey = _root.yPos[5];
_root.valsX = _root.xPos[0];
_root.valsY = _root.yPos[5];
_root.diggerPressed = true;
_root.girlMoves = false;
_root.girlpaused = false;
_root.girlpaused1 = false;
_root.startAction = true;
}
}
}
function ItemsPressed() {
_root.digger.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(31);
}
};
_root.bucket.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(32);
}
};
_root.henFoods.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(33);
}
};
_root.collectbox.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(34);
}
};
_root.well.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(35);
}
};
_root.henFood.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(36);
}
};
_root.egg.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(37);
}
};
_root.house.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(38);
}
};
_root.cowFoods.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(39);
}
};
_root.cowFood1.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(40);
}
};
_root.cowFood2.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(41);
}
};
_root.cowFood3.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(42);
}
};
_root.milk1.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(43);
}
};
_root.milk2.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(44);
}
};
_root.milk3.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(45);
}
};
_root.pigFoods.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(46);
}
};
_root.pigFood1.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(47);
}
};
_root.pigFood2.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(48);
}
};
_root.meat.onPress = function () {
if (_root.Paused == false) {
this.mark._visible = true;
if (_root.soundready == false) {
_root.sound2.start();
}
_root.arrayHold.push(49);
}
};
_root.stars.onPress = function () {
if (_root.starCount == 0) {
_root.attachMovie("star", "star1", 10);
_root.starPress = true;
_root.dels.removeMovieClip();
_root.deletPress = false;
_root.del.gotoAndStop(1);
_root.del.frame = 1;
this.gotoAndStop(3);
this.frame = 3;
_root.tut._visible = false;
_root.tut.removeMovieClip();
_root.girl.gotoAndStop(_root.girl._currentframe);
}
if (_root.starCount == 1) {
_root.star1.removeMovieClip();
_root.starPress = false;
this.gotoAndStop(1);
_root.Paused = false;
}
if (_root.soundready == false) {
_root.sound2.start();
}
};
_root.stars.onRollOver = function () {
this.gotoAndStop(2);
};
_root.stars.onRollOut = function () {
if (this.frame == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
};
_root.stars.onRelease = function () {
if (_root.starCount == 0) {
_root.starCount = 1;
}
if (_root.starCount == 1) {
_root.starCount = 0;
}
};
_root.del.onPress = function () {
_root.Paused = true;
_root.star1.removeMovieClip();
_root.starPress = false;
_root.stars.gotoAndStop(1);
_root.stars.frame = 1;
_root.tut._visible = false;
_root.tut.removeMovieClip();
_root.attachMovie("dele", "dels", 10);
_root.deletPress = true;
this.gotoAndStop(3);
this.frame = 3;
_root.girl.gotoAndStop(_root.girl._currentframe);
_root.sound2.start();
};
_root.del.onRollOver = function () {
this.gotoAndStop(2);
};
_root.del.onRollOut = function () {
if (this.frame == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
};
}
function henTimimg() {
if (_root.hen1.timer == true) {
if (_root.henfoodItem) {
_root.hen1.count++;
if (_root.hen1.count == 1) {
if (_root.hen1.grow == true) {
_root.hen1.times = 300;
}
_root.hen1.se1.sem.gotoAndPlay(1);
_root.hen1.me1.gotoAndPlay(1);
}
_root.henFood.gotoAndStop(10);
_root.hen1.times1 = 0;
hentimes(1);
} else {
_root.hen1.count = 0;
_root.hen1.se1.sem.gotoAndStop(1);
_root.hen1.me1.gotoAndStop(1);
_root.hen1.times = 0;
hengone(1);
}
}
if (_root.hen2.timer == true) {
if (_root.henfoodItem) {
_root.hen2.count++;
if (_root.hen2.count == 1) {
if (_root.hen2.grow == true) {
_root.hen2.times = 300;
}
_root.hen2.se1.sem.gotoAndPlay(1);
_root.hen2.me1.gotoAndPlay(1);
}
_root.henFood.gotoAndStop(10);
_root.hen2.times1 = 0;
hentimes(2);
} else {
_root.hen2.count = 0;
_root.hen2.se1.sem.gotoAndStop(1);
_root.hen2.me1.gotoAndStop(1);
_root.hen2.times = 0;
hengone(2);
}
}
if (_root.hen3.timer == true) {
if (_root.henfoodItem) {
_root.hen3.count++;
if (_root.hen3.count == 1) {
if (_root.hen3.grow == true) {
_root.hen3.times = 300;
}
_root.hen3.se1.sem.gotoAndPlay(1);
_root.hen3.me1.gotoAndPlay(1);
}
_root.henFood.gotoAndStop(10);
_root.hen3.times1 = 0;
hentimes(3);
} else {
_root.hen3.count = 0;
_root.hen3.se1.sem.gotoAndStop(1);
_root.hen3.me1.gotoAndStop(1);
_root.hen3.times = 0;
hengone(3);
}
}
if (_root.hen4.timer == true) {
if (_root.henfoodItem) {
_root.hen4.count++;
if (_root.hen4.count == 1) {
if (_root.hen4.grow == true) {
_root.hen4.times = 300;
}
_root.hen4.se1.sem.gotoAndPlay(1);
_root.hen4.me1.gotoAndPlay(1);
}
_root.henFood.gotoAndStop(10);
_root.hen4.times1 = 0;
hentimes(4);
} else {
_root.hen4.count = 0;
_root.hen4.se1.sem.gotoAndStop(1);
_root.hen4.me1.gotoAndStop(1);
_root.hen4.times = 0;
hengone(4);
}
}
if (_root.hen5.timer == true) {
if (_root.henfoodItem) {
_root.hen5.count++;
if (_root.hen5.count == 1) {
if (_root.hen5.grow == true) {
_root.hen5.times = 300;
}
_root.hen5.se1.sem.gotoAndPlay(1);
_root.hen5.me1.gotoAndPlay(1);
}
_root.henFood.gotoAndStop(10);
_root.hen5.times1 = 0;
hentimes(5);
} else {
_root.hen5.count = 0;
_root.hen5.se1.sem.gotoAndStop(1);
_root.hen5.me1.gotoAndStop(1);
_root.hen5.times = 0;
hengone(5);
}
}
}
function hengone(s) {
_root["hen" + s].times1++;
if (_root["hen" + s].grow == true) {
if (_root["hen" + s].times1 == 500) {
_root.henFood.gotoAndStop(11);
}
if (_root["hen" + s].times1 == 600) {
if (_root.soundready == false) {
_root.sound12.start();
}
_root["hen" + s].gotoAndPlay("die");
_root["hen" + s].times1 = 0;
_root["hen" + s].count = 0;
_root["hen" + s].grow = false;
_root["hen" + s].times = 0;
_root.henFood.gotoAndStop(1);
_root.henFood._visible = false;
if (_root.egg._visible == false) {
_root.eggCounts = 0;
_root.eggCounts = "";
}
}
if (_root["hen" + s].times1 == 605) {
_root["hen" + s]._visible = false;
_root["hen" + s].gotoAndPlay(1);
_root.henFood._visible = false;
_root.hencnt--;
}
}
}
function hentimes(p) {
_root["hen" + p].times++;
if (_root["hen" + p].times == 300) {
_root["hen" + p].grow = true;
_root["hen" + p].gotoAndPlay("grow");
}
if (_root["hen" + p].times == 400) {
_root.egg._visible = true;
if (_root.eggCounts != "") {
_root.eggCounts = _root.eggCounts + 1;
} else {
_root.eggCounts = 1;
}
_root["hen" + p].times = 300;
}
}
function cowTimimg() {
if (_root.cow1.timer == true) {
if (_root.cowfoodItem1) {
_root.cow1.count++;
if (_root.cow1.count == 1) {
if (_root.cow1.grow == true) {
_root.cow1.times = 500;
}
_root.cow1.me2.gotoAndPlay(2);
_root.cow1.me1.gotoAndPlay(2);
}
_root.cow1.times1 = 0;
cowtimes(1);
} else {
_root.cow1.count = 0;
_root.cow1.me2.gotoAndStop(1);
_root.cow1.me1.gotoAndStop(1);
_root.cow1.times = 0;
cowgone(1);
}
}
if (_root.cow2.timer == true) {
if (_root.cowfoodItem2) {
_root.cow2.count++;
if (_root.cow2.count == 1) {
if (_root.cow2.grow == true) {
_root.cow2.times = 500;
}
_root.cow2.me2.gotoAndPlay(2);
_root.cow2.me1.gotoAndPlay(2);
}
_root.cow2.times1 = 0;
cowtimes(2);
} else {
_root.cow2.count = 0;
_root.cow2.me2.gotoAndStop(1);
_root.cow2.me1.gotoAndStop(1);
_root.cow2.times = 0;
cowgone(2);
}
}
if (_root.cow3.timer == true) {
if (_root.cowfoodItem3) {
_root.cow3.count++;
if (_root.cow3.count == 1) {
if (_root.cow3.grow == true) {
_root.cow3.times = 500;
}
_root.cow3.me1.gotoAndPlay(2);
_root.cow3.me2.gotoAndPlay(2);
}
_root.cow3.times1 = 0;
cowtimes(3);
} else {
_root.cow3.count = 0;
_root.cow3.me1.gotoAndStop(1);
_root.cow3.me2.gotoAndStop(1);
_root.cow3.times = 0;
cowgone(3);
}
}
}
function cowgone(s) {
_root["cow" + s].times1++;
if (_root["cow" + s].grow == true) {
if (_root["cow" + s].times1 == 500) {
_root["cowFood" + s].gotoAndStop(11);
}
if (_root["cow" + s].times1 == 600) {
_root["cow" + s].gotoAndPlay("die");
if (_root.soundready == false) {
_root.sound12.start();
}
_root["cow_Box" + s]._visible = false;
_root["cow_Box" + s].gotoAndStop(1);
_root["cowFood" + s].gotoAndStop(1);
_root["cowFood" + s]._visible = false;
_root["cowfoodItem" + s] = false;
_root["cow" + s].times1 = 0;
_root["cow" + s].count = 0;
_root["cow" + s].grow = false;
if (_root["milk" + s]._visible == false) {
_root["cowCounts" + s] = 0;
_root["cowCounts" + s] = "";
}
_root["cow" + s].times = 0;
_root["cowfoodItemVal" + s] = 0;
}
if (_root["cow" + s].times1 == 610) {
_root["cow" + s]._visible = false;
_root["cow_Box" + s]._visible = false;
_root["cow_Box" + s].gotoAndStop(1);
_root["cowFood" + s].gotoAndStop(1);
_root["cow" + s].gotoAndPlay(1);
_root.cowcnt--;
}
}
}
function cowtimes(p) {
_root["cow" + p].times++;
if (_root["cow" + p].times == 500) {
_root["cow" + p].grow = true;
_root["cow" + p].count = 0;
_root["cow" + p].gotoAndPlay("grow");
}
if (_root["cow" + p].times >= 1000) {
if (_root["cowCounts" + p] != "") {
_root["milk" + p]._visible = true;
_root["milk" + p].gotoAndStop(15);
_root["cowCounts" + p] = _root["cowCounts" + p] + 1;
} else {
_root["milk" + p]._visible = true;
_root["milk" + p].gotoAndPlay(1);
_root["cowCounts" + p] = 1;
}
_root["cow" + p].times = 500;
}
}
function pigTimimg() {
if (_root.pig1.timer == true) {
if (_root.pigfoodItem1) {
_root.pig1.count++;
if (_root.pig1.count == 1) {
if (_root.pig1.grow == true) {
_root.pig1.times = 500;
}
_root.pig1.me2.gotoAndPlay(2);
_root.pig1.me1.gotoAndPlay(2);
}
_root.pig1.times1 = 0;
pigtimes(1);
} else {
_root.pig1.count = 0;
_root.pig1.me2.gotoAndStop(1);
_root.pig1.me1.gotoAndStop(1);
_root.pig1.times = 0;
piggone(1);
}
}
if (_root.pig2.timer == true) {
if (_root.pigfoodItem2) {
_root.pig2.count++;
if (_root.pig2.count == 1) {
if (_root.pig2.grow == true) {
_root.pig2.times = 500;
}
_root.pig2.me2.gotoAndPlay(2);
_root.pig2.me1.gotoAndPlay(2);
}
_root.pig2.times1 = 0;
pigtimes(2);
} else {
_root.pig2.count = 0;
_root.pig2.me2.gotoAndStop(1);
_root.pig2.me1.gotoAndStop(1);
_root.pig2.times = 0;
piggone(2);
}
}
}
function piggone(s) {
_root["pig" + s].times1++;
if (_root["pig" + s].grow == true) {
if (_root["pig" + s].times1 == 800) {
_root["pigFood" + s].gotoAndStop(11);
}
if (_root["pig" + s].times1 == 900) {
_root["pig" + s].gotoAndPlay("die");
if (_root.soundready == false) {
_root.sound12.start();
}
_root["pig_Box" + s]._visible = false;
_root["pig_Box" + s].gotoAndStop(1);
_root["pigFood" + s].gotoAndStop(1);
_root["pigFood" + s]._visible = false;
_root["pigfoodItem" + s] = false;
_root["pig" + s].times1 = 0;
_root["pig" + s].count = 0;
_root["pig" + s].grow = false;
if (_root.meat._visible == false) {
_root.meatCounts = 0;
_root.meatCounts = "";
}
if ((_root.meatCounts == 0) || (_root.meatCounts == "")) {
_root.meat._visible = false;
} else {
_root.meat._visible = true;
}
_root["pig" + s].times = 0;
}
if (_root["pig" + s].times1 == 910) {
_root["pig" + s]._visible = false;
_root["pig" + s].gotoAndPlay(1);
_root["pig_Box" + s]._visible = false;
_root["pig_Box" + s].gotoAndStop(1);
_root["pigFood" + s].gotoAndStop(1);
_root.pigcnt--;
}
}
}
function pigtimes(p) {
_root["pig" + p].times++;
if (_root["pig" + p].times == 500) {
_root["pig" + p].grow = true;
_root["pig" + p].count = 0;
_root["pig" + p].gotoAndPlay("grow");
}
if (_root["pig" + p].times >= 1000) {
if (_root.meatCounts != "") {
_root.meatCounts = _root.meatCounts + 1;
_root.meat._visible = true;
} else {
_root.meat.gotoAndPlay(1);
_root.meat._visible = true;
_root.meatCounts = 1;
}
_root["pig" + p]._visible = false;
_root["pig_Box" + p]._visible = false;
_root["pig" + p].count = 0;
_root["pig" + p].grow = false;
_root["pig" + p].times = 0;
_root["pig" + p].timer = true;
_root["pig" + p].times1 = 0;
_root["pigFood" + p]._visible = false;
_root["pigFoodGiven" + p] = false;
_root["pigfoodItem" + p] = false;
}
}
function relievingPlants() {
if (_root.henfoodItem == true) {
_root.henfoodItemVal++;
if (_root.henfoodItemVal == 100) {
_root.henFood._visible = true;
_root.henfoodie.gotoAndStop(5);
}
if (_root.henfoodItemVal == 200) {
_root.henFood._visible = true;
_root.henfoodie.gotoAndStop(10);
}
if (_root.henfoodItemVal == 300) {
_root.henFood._visible = true;
_root.henfoodie.gotoAndStop(15);
}
if (_root.henfoodItemVal == 500) {
_root.henfoodie._visible = false;
_root.henfoodItem = false;
_root.henfoodItemVal = 0;
}
}
}
function relievingGrass(s) {
if (_root["cowfoodItem" + s] == true) {
_root["cowfoodItemVal" + s]++;
if (_root["cowfoodItemVal" + s] == 100) {
_root["cow_Box" + s].gotoAndStop(3);
}
if (_root["cowfoodItemVal" + s] == 200) {
_root["cowFood" + s]._visible = true;
_root["cow_Box" + s].gotoAndStop(5);
}
if (_root["cowfoodItemVal" + s] == 300) {
_root["cowFood" + s]._visible = true;
_root["cow_Box" + s].gotoAndStop(10);
}
if (_root["cowfoodItemVal" + s] == 500) {
_root["cowFood" + s]._visible = true;
_root["cow_Box" + s].gotoAndStop(1);
_root["cowfoodItem" + s] = false;
_root["cowfoodItemVal" + s] = 0;
}
}
}
function relievingWheat(s) {
if (_root["pigfoodItem" + s] == true) {
_root["pigfoodItemVal" + s]++;
if (_root["pigfoodItemVal" + s] == 100) {
_root["pig_Box" + s].gotoAndStop(3);
}
if (_root["pigfoodItemVal" + s] == 200) {
_root["pigFood" + s]._visible = true;
_root["pig_Box" + s].gotoAndStop(5);
}
if (_root["pigfoodItemVal" + s] == 300) {
_root["pigFood" + s]._visible = true;
_root["pig_Box" + s].gotoAndStop(10);
}
if (_root["pigfoodItemVal" + s] == 500) {
_root["pig_Box" + s].gotoAndStop(1);
_root["pigFood" + s]._visible = true;
_root["pigfoodItem" + s] = false;
_root["pigfoodItemVal" + s] = 0;
}
}
}
function growingTimes(s) {
if (_root["tile" + s].needwater == false) {
_root["tile" + s].times++;
}
_root["tile" + s].waters++;
if (_root["tile" + s].waters == 1200) {
_root["tile" + s].waterboard._visible = true;
_root["tile" + s].waterboard.gotoAndPlay(1);
_root["tile" + s].needwater = true;
}
if ((_root["tile" + s].waters == 1500) && (_root["tile" + s].needwater == true)) {
if (((_root["tile" + s]._currentframe == 7) || (_root["tile" + s]._currentframe == 6)) || (_root["tile" + s]._currentframe == 5)) {
_root["tile" + s].gotoAndStop(9);
} else if (((_root["tile" + s]._currentframe == 12) || (_root["tile" + s]._currentframe == 11)) || (_root["tile" + s]._currentframe == 10)) {
_root["tile" + s].gotoAndStop(14);
} else if (((_root["tile" + s]._currentframe == 17) || (_root["tile" + s]._currentframe == 16)) || (_root["tile" + s]._currentframe == 15)) {
_root["tile" + s].gotoAndStop(19);
}
}
if (_root["tile" + s].waters == 1520) {
_root["tile" + s].count = 0;
_root["tile" + s].val = 80;
_root["tile" + s].cnt = 0;
_root["tile" + s].times = 0;
_root["tile" + s].gotoAndStop(1);
_root["tile" + s].timeIterval = false;
_root["tile" + s].needwater = false;
_root["tile" + s].waters = 0;
}
if (_root["tile" + s].times == _root["tile" + s].val) {
if (_root["tile" + s].needwater == false) {
_root["tile" + s].count++;
if (_root["tile" + s].count <= 3) {
_root["tile" + s].gotoAndStop(_root["tile" + s]._currentframe + _root["tile" + s].sets);
_root["tile" + s].sets = 1;
_root["tile" + s].times = 0;
if (_root["tile" + s].count == 2) {
_root["tile" + s].val = 120;
}
if (_root["tile" + s].count == 3) {
_root["tile" + s].val = 1700;
}
}
if (_root["tile" + s].count == 4) {
_root["tile" + s].count = 0;
_root["tile" + s].val = 80;
_root["tile" + s].cnt = 0;
_root["tile" + s].times = 0;
_root["tile" + s].waters = 0;
_root["tile" + s].needwater = false;
_root["tile" + s].gotoAndStop(1);
_root["tile" + s].timeIterval = false;
}
}
}
}
function growingPlants() {
if (_root.tile1.timeIterval == true) {
growingTimes(1);
}
if (_root.tile2.timeIterval == true) {
growingTimes(2);
}
if (_root.tile3.timeIterval == true) {
growingTimes(3);
}
if (_root.tile4.timeIterval == true) {
growingTimes(4);
}
if (_root.tile5.timeIterval == true) {
growingTimes(5);
}
if (_root.tile6.timeIterval == true) {
growingTimes(6);
}
if (_root.tile7.timeIterval == true) {
growingTimes(7);
}
if (_root.tile8.timeIterval == true) {
growingTimes(8);
}
if (_root.tile9.timeIterval == true) {
growingTimes(9);
}
if (_root.tile10.timeIterval == true) {
growingTimes(10);
}
if (_root.tile11.timeIterval == true) {
growingTimes(11);
}
if (_root.tile12.timeIterval == true) {
growingTimes(12);
}
if (_root.tile13.timeIterval == true) {
growingTimes(13);
}
if (_root.tile14.timeIterval == true) {
growingTimes(14);
}
if (_root.tile15.timeIterval == true) {
growingTimes(15);
}
if (_root.tile16.timeIterval == true) {
growingTimes(16);
}
if (_root.tile17.timeIterval == true) {
growingTimes(17);
}
if (_root.tile18.timeIterval == true) {
growingTimes(18);
}
if (_root.tile19.timeIterval == true) {
growingTimes(19);
}
if (_root.tile20.timeIterval == true) {
growingTimes(20);
}
if (_root.tile21.timeIterval == true) {
growingTimes(21);
}
if (_root.tile22.timeIterval == true) {
growingTimes(22);
}
if (_root.tile23.timeIterval == true) {
growingTimes(23);
}
if (_root.tile24.timeIterval == true) {
growingTimes(24);
}
if (_root.tile25.timeIterval == true) {
growingTimes(25);
}
if (_root.tile26.timeIterval == true) {
growingTimes(26);
}
if (_root.tile27.timeIterval == true) {
growingTimes(27);
}
if (_root.tile28.timeIterval == true) {
growingTimes(28);
}
if (_root.tile29.timeIterval == true) {
growingTimes(29);
}
if (_root.tile30.timeIterval == true) {
growingTimes(30);
}
}
function shopItem() {
var _local3 = 1;
while (_local3 < 31) {
_root["tiles" + _local3]._visible = false;
_root["tile" + _local3].enabled = false;
_root["tiles" + _local3].enabled = false;
_local3++;
}
if (_root.shopPress) {
_root.shopPress = false;
_root.attachMovie("shops", "shop", 1000, {_x:310, _y:220});
_root.shop._visible = true;
_root.shop.buyHen._visible = false;
_root.shop.buyCow._visible = false;
_root.shop.buyPig._visible = false;
_root.shop.buyHenSeed._visible = false;
_root.shop.buyCowSeed._visible = false;
_root.shop.buyPigSeed._visible = false;
_root.shop.Egg._visible = false;
_root.shop.Milk._visible = false;
_root.shop.Meat._visible = false;
_root.shop.freezer._visible = false;
_root.shop.toaster._visible = false;
_root.shop.oven._visible = false;
_root.shop.mansion._visible = false;
_root.shop.Pastry._visible = false;
_root.shop.Icecream._visible = false;
_root.shop.Cutlet._visible = false;
_root.shop.Meatroll._visible = false;
_root.shop.Sandwitch._visible = false;
_root.shop.closeBtn._visible = false;
_root.shop.Cake._visible = false;
_root.shop.purchase._visible = false;
_root.shop.sell._visible = false;
_root.shop.kitchenBtn._visible = false;
_root.shop.marketBtn._visible = false;
_root.shop.closeBtn1._visible = false;
_root.shop.buyDialog._visible = false;
_root.shopdetail = true;
_root.kitchen.removeMovieClip();
_root.sell = true;
_root.shop.purchase.gotoAndStop(1);
_root.shop.sell.gotoAndStop(2);
_root.enableOptionMarket();
_root.shop.marketBtn.gotoAndStop(2);
_root.shop.marketBtn.enabled = false;
_root.shop.gotoAndStop("sells");
if (_root.scores == 0) {
_root.score = 0;
}
}
_root.shop.marketBtn.onPress = function () {
_root.shopPress = true;
_root.kitchenAnim = false;
_root.kitchendetail = false;
_root.kitchen._visible = false;
if (_root.soundready == false) {
_root.sound9.start();
}
_root.kitchen.removeMovieClip();
};
_root.shop.kitchenBtn.onPress = function () {
_root.shopdetail = false;
_root.shopPress = false;
if (_root.soundready == false) {
_root.sound9.start();
}
_root.kitchenPress = true;
};
_root.shop.kitchenBtn.onRollOver = function () {
this.gotoAndStop(2);
};
_root.shop.kitchenBtn.onRollOut = function () {
this.gotoAndStop(1);
};
_root.kitchen.marketBtn.onPress = function () {
_root.shopPress = true;
_root.kitchenAnim = false;
_root.kitchendetail = false;
_root.kitchen._visible = false;
if (_root.soundready == false) {
_root.sound9.start();
}
_root.kitchen.removeMovieClip();
};
_root.kitchen.kitchenBtn.onPress = function () {
_root.shopdetail = false;
_root.shopPress = false;
_root.shop._visible = false;
_root.shop.removeMovieClip();
_root.kitchenPress = true;
};
_root.kitchen.marketBtn.onRollOver = function () {
this.gotoAndStop(2);
};
_root.kitchen.marketBtn.onRollOut = function () {
this.gotoAndStop(1);
};
if (_root.shopdetail) {
_root.shop.purchase.onPress = function () {
_root.purchase = true;
_root.sell = false;
if (_root.soundready == false) {
_root.sound9.start();
}
_root.shop.gotoAndStop("purchased");
this.gotoAndStop(2);
_root.shop.sell.gotoAndStop(1);
_root.enableOptionMarket();
};
_root.shop.purchase.onRollOver = function () {
this._xscale = 139;
this._yscale = 139;
};
_root.shop.purchase.onRollOut = function () {
this._xscale = 129;
this._yscale = 129;
};
_root.shop.sell.onPress = function () {
_root.sell = true;
_root.purchase = false;
if (_root.soundready == false) {
_root.sound9.start();
}
this.gotoAndStop(2);
_root.shop.purchase.gotoAndStop(1);
_root.shop.gotoAndStop("sells");
_root.enableOptionMarket();
};
_root.shop.sell.onRollOver = function () {
this._xscale = 139;
this._yscale = 139;
};
_root.shop.sell.onRollOut = function () {
this._xscale = 129;
this._yscale = 129;
};
if (_root.purchase) {
_root.shopPurchaseDetails();
}
if (_root.sell) {
_root.shopSellDetails();
}
if (_root.total > 0) {
_root.shop.buyBtn.enabled = true;
_root.shop.sellBtn.enabled = true;
} else {
_root.shop.buyBtn.enabled = false;
_root.shop.sellBtn.enabled = false;
}
_root.shop.buyBtn.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
_root.store._visible = false;
_root.store.gotoAndStop(1);
_root.storeBtn.frame = 1;
if (_root.mansionsPress == true) {
_root.Paused = true;
user_so.data.datas = "";
_root.attachMovie("mansionscreen", "screens", 50000, {_x:320, _y:240});
} else {
_root.storeBtn.gotoAndStop(1);
_root.storeBtn.enabled = true;
var _local3 = 1;
while (_local3 < 31) {
_root["tiles" + _local3].enabled = true;
_root["tile" + _local3].enabled = true;
_root["tiles" + _local3]._visible = true;
_local3++;
}
if (_root.walkDirect == true) {
_root.girl.gotoAndPlay(_root.girl._currentframe);
} else if (_root.walkDirect1 == true) {
_root.girl.gotoAndPlay("digging");
} else if (_root.walkDirect2 == true) {
_root.girl.gotoAndPlay("foodserving");
} else if (_root.walkDirect3 == true) {
_root.girl.gotoAndPlay("watering");
} else {
_root.girl.gotoAndStop(_root.girl._currentframe);
}
_root.helps.enabled = true;
_root.pauses.enabled = true;
_root.stars.enabled = true;
_root.del.enabled = true;
_root.Paused = false;
_root.shop.buyDialog._visible = true;
_root.buyText1 = ("You made purchase for $" + _root.total) + ".";
_root.buyText2 = ("You have $" + _root.scores) + " with you after the purchase.";
_root.total = 0;
_root.buyPress = true;
_root.shop.kitchenBtn.enabled = true;
_root.shop.closeBtn.enabled = true;
_root.shop.closeBtn1.enabled = true;
_root.shop.sell.enabled = true;
_root.shop.purchase.enabled = true;
_root.score = _root.scores;
_root.shop.buyCow.enabled = false;
_root.shop.buyHen.enabled = false;
_root.shop.buyPig.enabled = false;
_root.shop.buyHenSeed.enabled = false;
_root.shop.buyCowSeed.enabled = false;
_root.shop.buyPigSeed.enabled = false;
_root.shop.freezer.enabled = false;
_root.shop.toaster.enabled = false;
_root.shop.oven.enabled = false;
_root.shop.mansion.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.kitchenBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.purchase = false;
this.enabled = false;
}
};
_root.shop.sellBtn.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
_root.shop.buyDialog._visible = true;
_root.buyText1 = " Congrats! ";
_root.buyText2 = ((((" You earned $" + _root.total) + ". ") + "You have $") + _root.scores) + " with you in total.";
_root.total = 0;
_root.sellPress = true;
_root.shop.kitchenBtn.enabled = true;
_root.shop.closeBtn.enabled = true;
_root.shop.closeBtn1.enabled = true;
_root.shop.sell.enabled = true;
_root.shop.purchase.enabled = true;
_root.score = _root.scores;
_root.shop.Egg.enabled = false;
_root.shop.Milk.enabled = false;
_root.shop.Meat.enabled = false;
_root.shop.Pastry.enabled = false;
_root.shop.Icecream.enabled = false;
_root.shop.Cutlet.enabled = false;
_root.shop.Sandwitch.enabled = false;
_root.shop.Meatroll.enabled = false;
_root.shop.Cake.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.kitchenBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.sell = false;
this.enabled = false;
};
_root.shop.buyDialog.ok.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
if (_root.buyPress) {
if (_root.scores >= 3) {
_root.shop.buyHenSeed.enabled = true;
}
if (_root.scores >= 10) {
_root.shop.buyCowSeed.enabled = true;
_root.shop.buyPigSeed.enabled = true;
_root.shop.buyHen.enabled = true;
}
if (_root.scores >= 25) {
_root.shop.buyCow.enabled = true;
}
if (_root.scores >= 30) {
_root.shop.buyPig.enabled = true;
}
if (_root.scores >= 500) {
_root.shop.freezer.enabled = true;
}
if (_root.scores >= 1000) {
_root.shop.toaster.enabled = true;
}
if (_root.scores >= 2000) {
_root.shop.oven.enabled = true;
}
if (_root.scores >= 20000) {
_root.shop.mansion.enabled = true;
}
_root.purchase = true;
}
if (_root.sellPress) {
if (_root.scores >= 3) {
_root.shop.Egg.enabled = true;
}
if (_root.scores >= 10) {
_root.shop.Meat.enabled = true;
_root.shop.Milk.enabled = true;
}
if (_root.scores >= 25) {
_root.shop.Pastry.enabled = true;
}
if (_root.scores >= 30) {
_root.shop.Cutlet.enabled = true;
_root.shop.Icecream.enabled = true;
}
if (_root.scores >= 45) {
_root.shop.Sandwitch.enabled = true;
}
if (_root.scores >= 60) {
_root.shop.Meatroll.enabled = true;
}
if (_root.scores >= 80) {
_root.shop.Cake.enabled = true;
}
_root.sell = true;
}
_root.shop.closeBtn1.enabled = true;
_root.shop.kitchenBtn.enabled = true;
_root.shop.sell.enabled = true;
_root.shop.purchase.enabled = true;
_root.buyPress = false;
_root.shop.buyDialog._visible = false;
};
}
if (_root.kitchenPress) {
_root.attachMovie("Kitchens", "kitchen", 1000, {_x:310, _y:220});
_root.kitchen._visible = true;
_root.kitchenAnim = true;
_root.kitchenPress = false;
_root.shop._visible = false;
_root.shop.removeMovieClip();
_root.kitchen.kitchenBtn.gotoAndStop(2);
_root.kitchen.kitchenBtn.enabled = false;
}
if (_root.kitchenAnim == true) {
if (_root.kitchen._currentframe == 10) {
enableOptionKitchen();
_root.kitchenAnim = false;
_root.kitchendetail = true;
}
}
if (_root.kitchendetail == true) {
if (_root.freezePoint) {
_root.kitchen.freezeBtn.enabled = true;
_root.kitchen.freezeBtn._alpha = 100;
_root.kitchen.freezeBtn.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
_root.kitchen.machines.gotoAndStop(1);
_root.kitchen.machines.enabled = true;
_root.kitchen.machines._alpha = 100;
_root.freezeFunction();
_root.kitchen.machines.pastryIngrediant.enabled = true;
_root.kitchen.machines.pastryIngrediant._alpha = 100;
_root.kitchen.machines.icecreamIngrediant.enabled = true;
_root.kitchen.machines.icecreamIngrediant._alpha = 100;
this.enabled = false;
this._alpha = 80;
};
}
if (_root.toastPoint) {
_root.kitchen.toastBtn.enabled = true;
_root.kitchen.toastBtn._alpha = 100;
_root.kitchen.toastBtn.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
_root.kitchen.machines.gotoAndStop(2);
_root.toastFunction();
_root.kitchen.machines.cutletIngrediant.enabled = true;
_root.kitchen.machines.cutletIngrediant._alpha = 100;
_root.kitchen.machines.meatrollIngrediant.enabled = true;
_root.kitchen.machines.meatrollIngrediant._alpha = 100;
this.enabled = false;
this._alpha = 80;
};
}
if (_root.ovenPoint) {
_root.kitchen.ovenBtn.enabled = true;
_root.kitchen.ovenBtn._alpha = 100;
_root.kitchen.ovenBtn.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
_root.kitchen.machines.gotoAndStop(3);
_root.ovenFunction();
_root.kitchen.machines.sandwitchIngrediant.enabled = true;
_root.kitchen.machines.sandwitchIngrediant._alpha = 100;
_root.kitchen.machines.cakeIngrediant.enabled = true;
_root.kitchen.machines.cakeIngrediant._alpha = 100;
this.enabled = false;
this._alpha = 80;
};
}
}
if (_root.pastryMake) {
_root.pasteryMaking();
}
if (_root.icecreamMake) {
_root.icecreamMaking();
}
if (_root.cutletMake) {
_root.cutletMaking();
}
if (_root.meatrollMake) {
_root.meatrollMaking();
}
if (_root.sandwitchMake) {
_root.sandwitchMaking();
}
if (_root.cakeMake) {
_root.cakeMaking();
}
_root.shop.closeBtn.onPress = function () {
if (_root.soundready == false) {
_root.sound9.start();
}
closeShops();
};
_root.shop.closeBtn1.onPress = function () {
if (_root.soundready == false) {
_root.sound9.start();
}
closeShops();
};
_root.kitchen.closeBtn.onPress = function () {
if (_root.soundready == false) {
_root.sound9.start();
}
_root.shop._visible = false;
_root.shop.gotoAndStop(1);
_root.shop.removeMovieClip();
_root.storeBtn.frame = 1;
_root.storeBtn.gotoAndStop(1);
_root.storeBtn.enabled = true;
_root.kitchenBtn.gotoAndStop(1);
var _local2 = 1;
while (_local2 < 31) {
_root["tiles" + _local2].enabled = true;
_root["tile" + _local2].enabled = true;
_root["tiles" + _local2]._visible = true;
_local2++;
}
if (_root.walkDirect == true) {
_root.girl.gotoAndPlay(_root.girl._currentframe);
} else if (_root.walkDirect1 == true) {
_root.girl.gotoAndPlay("digging");
} else if (_root.walkDirect2 == true) {
_root.girl.gotoAndPlay("foodserving");
} else if (_root.walkDirect3 == true) {
_root.girl.gotoAndPlay("watering");
} else {
_root.girl.gotoAndStop(_root.girl._currentframe);
}
_root.tutor.enabled = true;
_root.helps.enabled = true;
_root.pauses.enabled = true;
_root.stars.enabled = true;
_root.del.enabled = true;
_root.newPaused = false;
_root.kitchen._visible = false;
_root.kitchen.gotoAndStop(1);
_root.kitchen.removeMovieClip();
if (_root.score > 0) {
_root.dollar._visible = true;
} else {
_root.dollar._visible = false;
_root.score = "";
}
trace(_root.dayDialogsPress);
if (_root.dayDialogsPress == true) {
_root.Paused = true;
_root.dialogPressOk = true;
} else {
_root.Paused = false;
}
};
_root.kitchen.kitchenBg.switches.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
if (_root.switchBtn) {
this.gotoAndStop(1);
this.enabled = false;
_root.kitchen.kitchenBg.switches.marker._visible = false;
_root.kitchen.tray.eggSum.gotoAndStop(1);
_root.kitchen.tray.milkSum.gotoAndStop(1);
_root.kitchen.tray.meatSum.gotoAndStop(1);
_root.kitchen.tray.eggSum._visible = false;
_root.kitchen.tray.milkSum._visible = false;
_root.kitchen.tray.meatSum._visible = false;
_root.kitchen.tray._visible = false;
_root.pasteMilk = 0;
_root.pasteEgg = 0;
_root.pasteMeat = 0;
_root.switchBtn = false;
if ((_root.boilCount == 1) || (_root.boilCount == 2)) {
_root.kitchen.machines.pastryIngrediant.enabled = false;
_root.kitchen.machines.icecreamIngrediant.enabled = false;
_root.kitchen.machines.machine1.gotoAndPlay("working");
_root.kitchen.buyKitchen.Milk.enabled = false;
_root.kitchen.buyKitchen.Egg.enabled = false;
_root.kitchen.timen.gotoAndPlay(1);
_root.pastryMake = false;
_root.icecreamMake = false;
}
if ((_root.boilCount == 3) || (_root.boilCount == 4)) {
_root.kitchen.machines.cutletIngrediant.enabled = false;
_root.kitchen.machines.meatrollIngrediant.enabled = false;
_root.kitchen.machines.machine2.gotoAndPlay("working");
_root.kitchen.buyKitchen.Meat.enabled = false;
_root.kitchen.buyKitchen.Egg.enabled = false;
_root.kitchen.timen.gotoAndPlay(1);
_root.cutletMake = false;
_root.meatrollMake = false;
}
if ((_root.boilCount == 5) || (_root.boilCount == 6)) {
_root.kitchen.machines.sandwitchIngrediant.enabled = false;
_root.kitchen.machines.cakeIngrediant.enabled = false;
_root.kitchen.machines.machine3.gotoAndPlay("working");
_root.kitchen.buyKitchen.Meat.enabled = false;
_root.kitchen.buyKitchen.Egg.enabled = false;
_root.kitchen.buyKitchen.Milk.enabled = false;
_root.kitchen.timen.gotoAndPlay(1);
_root.sandwitchMake = false;
_root.cakeMake = false;
}
}
};
if (_root.switchAfterBoil) {
_root.kitchen.kitchenBg.switches.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
this.gotoAndStop(2);
this.enabled = false;
_root.kitchen.machines.machine1.gotoAndStop(1);
_root.kitchen.machines.machine2.gotoAndStop(1);
_root.kitchen.machines.machine3.gotoAndStop(1);
_root.kitchen.timen.gotoAndStop(1);
_root.kitchen.kitchenBg.switches.marker._visible = false;
_root.doneItems();
};
}
if (_root.reachPoint == true) {
_root.kitchen.kitchenBg.switches.marker._visible = true;
_root.kitchen.kitchenBg.switches.enabled = true;
_root.switchAfterBoil = true;
_root.reachPoint = false;
}
if (_root.pressBoilItems) {
_root.kitchen.tray.pastryBoil.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
_root.pastryCount++;
_root.kitchen.machines.pastryIngrediant.enabled = true;
_root.kitchen.machines.icecreamIngrediant.enabled = true;
_root.kitchen.machines.pastryIngrediant.gotoAndStop(1);
_root.kitchen.tray.gotoAndStop(1);
_root.kitchen.tray._visible = false;
_root.pressBoilItems = false;
buttonMachines();
};
_root.kitchen.tray.iceBoil.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
_root.icecreamCount++;
_root.kitchen.machines.pastryIngrediant.enabled = true;
_root.kitchen.machines.icecreamIngrediant.enabled = true;
_root.kitchen.machines.icecreamIngrediant.gotoAndStop(1);
_root.kitchen.tray.gotoAndStop(1);
_root.kitchen.tray._visible = false;
_root.pressBoilItems = false;
buttonMachines();
};
_root.kitchen.tray.cutletBoil.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
_root.cutletCount++;
_root.kitchen.machines.cutletIngrediant.enabled = true;
_root.kitchen.machines.meatrollIngrediant.enabled = true;
_root.kitchen.machines.cutletIngrediant.gotoAndStop(1);
_root.kitchen.tray.gotoAndStop(1);
_root.kitchen.tray._visible = false;
_root.pressBoilItems = false;
buttonMachines();
};
_root.kitchen.tray.meatrollBoil.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
_root.meatrollCount++;
_root.kitchen.machines.cutletIngrediant.enabled = true;
_root.kitchen.machines.meatrollIngrediant.enabled = true;
_root.kitchen.machines.meatrollIngrediant.gotoAndStop(1);
_root.kitchen.tray.gotoAndStop(1);
_root.kitchen.tray._visible = false;
_root.pressBoilItems = false;
buttonMachines();
};
_root.kitchen.tray.sandwitchBoil.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
_root.sandwitchCount++;
_root.kitchen.machines.sandwitchIngrediant.enabled = true;
_root.kitchen.machines.cakeIngrediant.enabled = true;
_root.kitchen.machines.sandwitchIngrediant.gotoAndStop(1);
_root.kitchen.tray.gotoAndStop(1);
_root.kitchen.tray._visible = false;
_root.pressBoilItems = false;
buttonMachines();
};
_root.kitchen.tray.cakeBoil.onPress = function () {
_root.cakeCount++;
_root.kitchen.machines.sandwitchIngrediant.enabled = true;
_root.kitchen.machines.cakeIngrediant.enabled = true;
_root.kitchen.machines.cakeIngrediant.gotoAndStop(1);
_root.kitchen.tray.gotoAndStop(1);
_root.kitchen.tray._visible = false;
_root.pressBoilItems = false;
buttonMachines();
};
}
_root.kitchen.tray.cancels.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
if (_root.kitchen.tray.eggSum._currentframe != 1) {
_root.eggWaste = _root.kitchen.tray.eggSum._currentframe;
_root.eggWaste = _root.eggWaste - 1;
_root.countEgg = _root.countEgg + _root.eggWaste;
_root.eggWaste = 0;
_root.kitchen.tray.eggSum.gotoAndStop(1);
_root.eggjum = 1;
}
if (_root.kitchen.tray.milkSum._currentframe != 1) {
_root.milkWaste = _root.kitchen.tray.milkSum._currentframe;
_root.milkWaste = _root.milkWaste - 1;
_root.countMilk = _root.countMilk + _root.milkWaste;
_root.milkWaste = 0;
_root.kitchen.tray.milkSum.gotoAndStop(1);
_root.milkjum = 1;
}
if (_root.kitchen.tray.meatSum._currentframe != 1) {
_root.meatWaste = _root.kitchen.tray.meatSum._currentframe;
_root.meatWaste = _root.meatWaste - 1;
_root.countMeat = _root.countMeat + _root.meatWaste;
_root.meatWaste = 0;
_root.kitchen.tray.meatSum.gotoAndStop(1);
_root.meatjum = 1;
}
if ((_root.kitchen.machines.pastryIngrediant._currentframe == 2) || (_root.kitchen.machines.icecreamIngrediant._currentframe == 2)) {
_root.kitchen.machines.pastryIngrediant.gotoAndStop(1);
_root.kitchen.machines.pastryIngrediant.enabled = true;
_root.kitchen.machines.icecreamIngrediant.gotoAndStop(1);
_root.kitchen.machines.icecreamIngrediant.enabled = true;
}
if ((_root.kitchen.machines.cutletIngrediant._currentframe == 2) || (_root.kitchen.machines.meatrollIngrediant._currentframe == 2)) {
_root.kitchen.machines.cutletIngrediant.gotoAndStop(1);
_root.kitchen.machines.cutletIngrediant.enabled = true;
_root.kitchen.machines.meatrollIngrediant.gotoAndStop(1);
_root.kitchen.machines.meatrollIngrediant.enabled = true;
}
if ((_root.kitchen.machines.sandwitchIngrediant._currentframe == 2) || (_root.kitchen.machines.cakeIngrediant._currentframe == 2)) {
_root.kitchen.machines.sandwitchIngrediant.gotoAndStop(1);
_root.kitchen.machines.sandwitchIngrediant.enabled = true;
_root.kitchen.machines.cakeIngrediant.gotoAndStop(1);
_root.kitchen.machines.cakeIngrediant.enabled = true;
}
buttonMachines();
_root.pasteMilk = 0;
_root.pasteEgg = 0;
_root.pasteMeat = 0;
_root.pastryMake = false;
_root.icecreamMake = false;
_root.cutletMake = false;
_root.meatrollMake = false;
_root.sandwitchMake = false;
_root.cakeMake = false;
_root.kitchen.buyKitchen.Egg.enabled = false;
_root.kitchen.buyKitchen.Meat.enabled = false;
_root.kitchen.buyKitchen.Milk.enabled = false;
_root.kitchen.tray.gotoAndStop(1);
_root.kitchen.tray._visible = false;
};
if (((_root.freezePoint == false) && (_root.toastPoint == false)) && (_root.ovenPoint == false)) {
_root.kitchen.buyItems._visible = true;
} else {
_root.kitchen.buyItems._visible = false;
}
if (_root.timeForBlinks == true) {
_root.timeForBlink++;
if (_root.timeForBlink == 5) {
_root.shop.totals.filters = null;
_root.timeForBlinks = false;
}
}
}
function closeShops() {
_root.shop._visible = false;
_root.shop.gotoAndStop(1);
_root.shop.removeMovieClip();
_root.storeBtn.frame = 1;
_root.storeBtn.gotoAndStop(1);
_root.storeBtn.enabled = true;
_root.marketBtn.gotoAndStop(1);
var _local2 = 1;
while (_local2 < 31) {
_root["tiles" + _local2].enabled = true;
_root["tile" + _local2].enabled = true;
_root["tiles" + _local2]._visible = true;
_local2++;
}
if (_root.walkDirect == true) {
_root.girl.gotoAndPlay(_root.girl._currentframe);
} else if (_root.walkDirect1 == true) {
_root.girl.gotoAndPlay("digging");
} else if (_root.walkDirect2 == true) {
_root.girl.gotoAndPlay("foodserving");
} else if (_root.walkDirect3 == true) {
_root.girl.gotoAndPlay("watering");
} else {
_root.girl.gotoAndStop(_root.girl._currentframe);
}
_root.tutor.enabled = true;
_root.helps.enabled = true;
_root.pauses.enabled = true;
_root.stars.enabled = true;
_root.del.enabled = true;
_root.newPaused = false;
if (_root.score > 0) {
_root.dollar._visible = true;
} else {
_root.dollar._visible = false;
_root.score = "";
}
if (_root.dayDialogsPress == true) {
_root.Paused = true;
_root.dialogPressOk = true;
} else {
_root.Paused = false;
}
}
function buttonMachines() {
_root.kitchen.marketBtn.enabled = true;
_root.kitchen.closeBtn.enabled = true;
if (_root.freezePoint) {
_root.kitchen.freezeBtn.enabled = true;
_root.kitchen.freezeBtn._alpha = 100;
_root.kitchendetail = true;
}
if (_root.toastPoint) {
_root.kitchen.toastBtn.enabled = true;
_root.kitchen.toastBtn._alpha = 100;
_root.kitchendetail = true;
}
if (_root.ovePoint) {
_root.kitchen.ovenBtn.enabled = true;
_root.kitchen.ovenBtn._alpha = 100;
_root.kitchendetail = true;
}
_root.pastryMilkNum = 1;
_root.pastryEggNum = 1;
_root.iceMilkNum = 1;
_root.iceEggNum = 2;
_root.cutletMeatNum = 2;
_root.cutletEggNum = 1;
_root.meatrollMeatNum = 2;
_root.meatrollEggNum = 2;
_root.sandwitchMeatNum = 1;
_root.sandwitchEggNum = 4;
_root.cakeMilkNum = 2;
_root.cakeEggNum = 5;
}
function shopPurchaseDetails() {
_root.farmDetails();
_root.machineDetails();
}
function shopSellDetails() {
_root.sellfarmDetails();
_root.sellBakeryDetails();
}
function enableOptionMarket() {
_root.shop.buyDialog._visible = false;
_root.shop.mansion.enabled = false;
_root.shop.mansion._alpha = 50;
_root.shop.buyHen.enabled = false;
_root.shop.buyCow.enabled = false;
_root.shop.buyPig.enabled = false;
_root.shop.buyHenSeed.enabled = false;
_root.shop.buyCowSeed.enabled = false;
_root.shop.buyPigSeed.enabled = false;
_root.shop.buyHen._alpha = 50;
_root.shop.buyCow._alpha = 50;
_root.shop.buyPig._alpha = 50;
_root.shop.buyHenSeed._alpha = 50;
_root.shop.buyCowSeed._alpha = 50;
_root.shop.buyPigSeed._alpha = 50;
_root.shop.Egg.enabled = false;
_root.shop.Milk.enabled = false;
_root.shop.Meat.enabled = false;
_root.shop.Egg._alpha = 50;
_root.shop.Milk._alpha = 50;
_root.shop.Meat._alpha = 50;
if ((_root.freezeFlags != true) || (_root.freezePoint == true)) {
if (_root.freezePoint == true) {
_root.shop.freezer.gotoAndStop(2);
}
_root.shop.freezer.enabled = false;
_root.shop.freezer._alpha = 30;
}
if ((_root.toasterFlags != true) || (_root.toastPoint == true)) {
if (_root.toastPoint == true) {
_root.shop.toaster.gotoAndStop(2);
}
_root.shop.toaster.enabled = false;
_root.shop.toaster._alpha = 30;
}
if ((_root.ovenFlags != true) || (_root.ovenPoint == true)) {
if (_root.ovenPoint == true) {
_root.shop.oven.gotoAndStop(2);
}
_root.shop.oven.enabled = false;
_root.shop.oven._alpha = 30;
}
_root.shop.Pastry.enabled = false;
_root.shop.Icecream.enabled = false;
_root.shop.Cutlet.enabled = false;
_root.shop.Meatroll.enabled = false;
_root.shop.Sandwitch.enabled = false;
_root.shop.Cake.enabled = false;
_root.shop.Pastry._alpha = 50;
_root.shop.Icecream._alpha = 50;
_root.shop.Cutlet._alpha = 50;
_root.shop.Meatroll._alpha = 50;
_root.shop.Sandwitch._alpha = 50;
_root.shop.Cake._alpha = 50;
}
function farmDetails() {
if (_root.scores >= _root.henseedprice) {
_root.shop.buyHenSeed.enabled = true;
_root.shop.buyHenSeed._alpha = 100;
} else {
_root.shop.buyHenSeed.enabled = false;
_root.shop.buyHenSeed._alpha = 50;
}
if (((((_root.hen1._visible == true) && (_root.hen2._visible == true)) && (_root.hen3._visible == true)) && (_root.hen4._visible == true)) && (_root.hen5._visible == true)) {
_root.shop.buyHen.enabled = false;
_root.shop.buyHen._alpha = 50;
} else if (_root.scores >= _root.henprice) {
_root.shop.buyHen.enabled = true;
_root.shop.buyHen._alpha = 100;
} else {
_root.shop.buyHen.enabled = false;
_root.shop.buyHen._alpha = 50;
}
if (((_root.cow1._visible == true) || (_root.cow2._visible == true)) || (_root.cow3._visible == true)) {
if (_root.scores >= _root.cowseedprice) {
_root.shop.buyCowSeed.enabled = true;
_root.shop.buyCowSeed._alpha = 100;
} else {
_root.shop.buyCowSeed.enabled = false;
_root.shop.buyCowSeed._alpha = 50;
}
} else {
_root.shop.buyCowSeed.enabled = false;
_root.shop.buyCowSeed._alpha = 50;
}
if ((_root.pig1._visible == true) || (_root.pig2._visible == true)) {
if (_root.scores >= _root.pigseedprice) {
_root.shop.buyPigSeed.enabled = true;
_root.shop.buyPigSeed._alpha = 100;
} else {
_root.shop.buyPigSeed.enabled = false;
_root.shop.buyPigSeed._alpha = 50;
}
} else {
_root.shop.buyPigSeed.enabled = false;
_root.shop.buyPigSeed._alpha = 50;
}
if (((_root.cow1._visible == true) && (_root.cow2._visible == true)) && (_root.cow3._visible == true)) {
_root.shop.buyCow.enabled = false;
_root.shop.buyCow._alpha = 50;
} else if (_root.scores >= _root.cowprice) {
_root.shop.buyCow.enabled = true;
_root.shop.buyCow._alpha = 100;
} else {
_root.shop.buyCow.enabled = false;
_root.shop.buyCow._alpha = 50;
}
if ((_root.pig1._visible == true) && (_root.pig2._visible == true)) {
_root.shop.buyPig.enabled = false;
_root.shop.buyPig._alpha = 50;
} else if (_root.scores >= _root.pigprice) {
_root.shop.buyPig.enabled = true;
_root.shop.buyPig._alpha = 100;
} else {
_root.shop.buyPig.enabled = false;
_root.shop.buyPig._alpha = 50;
}
pressfarmItems();
}
function pressfarmItems() {
_root.shop.buyHenSeed.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
if (_root.scores >= _root.henseedprice) {
_root.scores = _root.scores - _root.henseedprice;
_root.henFoods._visible = true;
if (_root.countFood1 == "") {
_root.countFood1 = 0;
_root.countFood1 = 9;
} else {
_root.countFood1 = _root.countFood1 + 9;
}
_root.total = _root.total + _root.henseedprice;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.henseedBought = _root.henseedBought + 1;
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
if (_root.scores >= _root.henseedprice) {
_root.shop.buyHenSeed._alpha = 100;
} else {
_root.shop.buyHenSeed._alpha = 50;
}
if (_root.scores <= 0) {
_root.scores = 0;
}
}
};
_root.shop.buyCowSeed.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
if (_root.scores >= _root.cowseedprice) {
_root.scores = _root.scores - _root.cowseedprice;
_root.cowFoods._visible = true;
if (_root.countFood2 == "") {
_root.countFood2 = 7;
} else {
_root.countFood2 = _root.countFood2 + 7;
}
_root.total = _root.total + _root.cowseedprice;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.cowseedBought = _root.cowseedBought + 1;
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
if (_root.scores >= _root.cowseedprice) {
_root.shop.buyCowSeed._alpha = 100;
} else {
_root.shop.buyCowSeed._alpha = 50;
}
if (_root.scores <= 0) {
_root.scores = 0;
}
}
};
_root.shop.buyPigSeed.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
if (_root.scores >= _root.pigseedprice) {
_root.scores = _root.scores - _root.pigseedprice;
_root.pigFoods._visible = true;
if (_root.countFood3 == "") {
_root.countFood3 = 5;
} else {
_root.countFood3 = _root.countFood3 + 5;
}
_root.total = _root.total + _root.pigseedprice;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.pigseedBought = _root.pigseedBought + 1;
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
if (_root.scores >= _root.pigseedprice) {
_root.shop.buyPigSeed._alpha = 100;
} else {
_root.shop.buyPigSeed._alpha = 50;
}
if (_root.scores <= 0) {
_root.scores = 0;
_root.scores1 = _root.scores;
}
}
};
_root.shop.buyHen.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
if (_root.scores >= _root.henprice) {
_root.scores = _root.scores - _root.henprice;
_root.hencnt++;
if (_root.hencnt == 6) {
_root.hencnt = 1;
}
_root.total = _root.total + _root.henprice;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.henBought = _root.henBought + 1;
if (_root.scores < _root.cowprice) {
_root.shop.buyCow.enabled = false;
_root.shop.buyCow._alpha = 50;
_root.shop.buyPig.enabled = false;
_root.shop.buyPig._alpha = 50;
}
if (_root.scores < _root.pigprice) {
_root.shop.buyPig.enabled = false;
_root.shop.buyPig._alpha = 50;
}
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root["hen" + _root.hencnt]._visible = true;
_root["hen" + _root.hencnt].count = 0;
_root["hen" + _root.hencnt].grow = false;
_root["hen" + _root.hencnt].times = 0;
_root["hen" + _root.hencnt].timer = true;
_root["hen" + _root.hencnt].times1 = 0;
_root["hen" + _root.hencnt].gotoAndPlay(1);
_root.henFood._visible = true;
_root.henFood.gotoAndPlay(1);
if ((_root.scores >= _root.henprice) && (_root.hencnt < 5)) {
_root.shop.buyHen.enabled = true;
_root.shop.buyHen._alpha = 100;
} else {
_root.shop.buyHen.enabled = false;
_root.shop.buyHen._alpha = 50;
}
if (_root.scores >= _root.henseedprice) {
_root.shop.buyHenSeed.enabled = true;
_root.shop.buyHenSeed._alpha = 100;
} else {
_root.shop.buyHenSeed.enabled = false;
_root.shop.buyHenSeed._alpha = 50;
}
if (_root.scores <= 0) {
_root.scores = 0;
}
}
};
_root.shop.buyCow.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
if (_root.scores >= _root.cowprice) {
if (((_root.cow1._visible == false) && (_root.cow2._visible == false)) && (_root.cow3._visible == false)) {
_root.cow1._visible = true;
_root.cow_Box1._visible = true;
_root.cowFood1._visible = true;
_root.cowFood1.gotoAndPlay(1);
_root.cow_Box1.gotoAndStop(1);
_root.scores = _root.scores - _root.cowprice;
_root.total = _root.total + _root.cowprice;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.cowBought = _root.cowBought + 1;
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.cow1.gotoAndPlay(1);
} else if (((_root.cow2._visible == false) && (_root.cow3._visible == false)) && (_root.cow1._visible == true)) {
_root.cow2._visible = true;
_root.cow_Box2._visible = true;
_root.cowFood2._visible = true;
_root.cowFood2.gotoAndPlay(1);
_root.cow_Box2.gotoAndStop(1);
_root.scores = _root.scores - _root.cowprice;
_root.total = _root.total + _root.cowprice;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.cowBought = _root.cowBought + 1;
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.cow2.gotoAndPlay(1);
} else if (((_root.cow3._visible == false) && (_root.cow2._visible == true)) && (_root.cow1._visible == true)) {
_root.cow3._visible = true;
_root.cow_Box3._visible = true;
_root.cowFood3._visible = true;
_root.cowFood3.gotoAndPlay(1);
_root.cow_Box3.gotoAndStop(1);
_root.cow3.gotoAndPlay(1);
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores - _root.cowprice;
_root.total = _root.total + _root.cowprice;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.cowBought = _root.cowBought + 1;
} else if (((_root.cow1._visible == false) && (_root.cow2._visible == false)) && (_root.cow3._visible == true)) {
_root.cow1._visible = true;
_root.cow_Box1._visible = true;
_root.cowFood1._visible = true;
_root.cowFood1.gotoAndPlay(1);
_root.cow_Box1.gotoAndStop(1);
_root.cow1.gotoAndPlay(1);
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores - _root.cowprice;
_root.total = _root.total + _root.cowprice;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.cowBought = _root.cowBought + 1;
} else if (((_root.cow1._visible == false) && (_root.cow3._visible == false)) && (_root.cow2._visible == true)) {
_root.cow1._visible = true;
_root.cow_Box1._visible = true;
_root.cowFood1._visible = true;
_root.cowFood1.gotoAndPlay(1);
_root.cow_Box1.gotoAndStop(1);
_root.cow1.gotoAndPlay(1);
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores - _root.cowprice;
_root.total = _root.total + _root.cowprice;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.cowBought = _root.cowBought + 1;
} else if (((_root.cow1._visible == false) && (_root.cow3._visible == true)) && (_root.cow2._visible == true)) {
_root.cow1._visible = true;
_root.cow_Box1._visible = true;
_root.cowFood1._visible = true;
_root.cowFood1.gotoAndPlay(1);
_root.cow_Box1.gotoAndStop(1);
_root.cow1.gotoAndPlay(1);
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores - _root.cowprice;
_root.total = _root.total + _root.cowprice;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.cowBought = _root.cowBought + 1;
} else if (((_root.cow2._visible == false) && (_root.cow3._visible == true)) && (_root.cow1._visible == true)) {
_root.cow2._visible = true;
_root.cow_Box2._visible = true;
_root.cowFood2._visible = true;
_root.cowFood2.gotoAndPlay(1);
_root.cow_Box2.gotoAndStop(1);
_root.cow2.gotoAndPlay(1);
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores - _root.cowprice;
_root.total = _root.total + _root.cowprice;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.cowBought = _root.cowBought + 1;
}
if (_root.scores < _root.henprice) {
_root.shop.buyHen.enabled = false;
_root.shop.buyHen._alpha = 50;
}
if (_root.scores < _root.cowprice) {
_root.shop.buyCow.enabled = false;
_root.shop.buyCow._alpha = 50;
_root.shop.buyPig.enabled = false;
_root.shop.buyPig._alpha = 50;
}
if (_root.scores < _root.pigprice) {
_root.shop.buyPig.enabled = false;
_root.shop.buyPig._alpha = 50;
}
if ((_root.scores >= _root.cowprice) && (_root.cowcnt < 3)) {
_root.shop.buyCow.enabled = true;
_root.shop.buyCow._alpha = 100;
} else {
_root.shop.buyCow.enabled = false;
_root.shop.buyCow._alpha = 50;
}
if (_root.scores >= _root.cowseedprice) {
_root.shop.buyCowSeed.enabled = true;
_root.shop.buyCowSeed._alpha = 100;
} else {
_root.shop.buyCowSeed.enabled = false;
_root.shop.buyCowSeed._alpha = 50;
}
if (_root.scores <= 0) {
_root.scores = 0;
}
}
};
_root.shop.buyPig.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
if (_root.scores >= _root.pigprice) {
if ((_root.pig1._visible == false) && (_root.pig2._visible == false)) {
_root.pig1._visible = true;
_root.pig_Box1._visible = true;
_root.pig_Box1._alpha = 100;
_root.pigFood1._visible = true;
_root.pigFood1.gotoAndPlay(1);
_root.pig_Box1.gotoAndStop(1);
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.pig1.gotoAndPlay(1);
_root.scores = _root.scores - _root.pigprice;
_root.total = _root.total + _root.pigprice;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.pigBought = _root.pigBought + 1;
} else if ((_root.pig1._visible == false) && (_root.pig2._visible == true)) {
_root.pig1._visible = true;
_root.pig_Box1._visible = true;
_root.pig_Box1._alpha = 100;
_root.pigFood1._visible = true;
_root.pigFood1.gotoAndPlay(1);
_root.pig_Box1.gotoAndStop(1);
_root.pig1.gotoAndPlay(1);
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores - _root.pigprice;
_root.total = _root.total + _root.pigprice;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.pigBought = _root.pigBought + 1;
} else if ((_root.pig1._visible == true) && (_root.pig2._visible == false)) {
_root.pig2._visible = true;
_root.pig_Box2._visible = true;
_root.pig_Box2._alpha = 100;
_root.pigFood2._visible = true;
_root.pigFood2.gotoAndPlay(1);
_root.pig_Box2.gotoAndStop(1);
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.pig2.gotoAndPlay(1);
_root.scores = _root.scores - _root.pigprice;
_root.total = _root.total + _root.pigprice;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.pigBought = _root.pigBought + 1;
}
if (_root.scores < _root.henprice) {
_root.shop.buyHen.enabled = false;
_root.shop.buyHen._alpha = 50;
}
if (_root.scores < _root.cowprice) {
_root.shop.buyCow.enabled = false;
_root.shop.buyCow._alpha = 50;
_root.shop.buyPig.enabled = false;
_root.shop.buyPig._alpha = 50;
}
if (_root.scores < _root.pigprice) {
_root.shop.buyPig.enabled = false;
_root.shop.buyPig._alpha = 50;
}
if ((_root.scores >= _root.pigprice) && (_root.pigcnt < 2)) {
_root.shop.buyPig.enabled = true;
_root.shop.buyPig._alpha = 100;
} else {
_root.shop.buyPig.enabled = false;
_root.shop.buyPig._alpha = 50;
}
if (_root.scores >= _root.pigseedprice) {
_root.shop.buyPigSeed.enabled = true;
_root.shop.buyPigSeed._alpha = 100;
} else {
_root.shop.buyPigSeed.enabled = false;
_root.shop.buyPigSeed._alpha = 50;
}
if (_root.scores <= 0) {
_root.scores = 0;
}
}
};
}
function machineDetails() {
if (_root.mansionsPress != true) {
if (_root.scores >= _root.mansionPrice) {
_root.shop.mansion.enabled = true;
_root.shop.mansion._alpha = 100;
} else {
_root.shop.mansion.enabled = false;
_root.shop.mansion._alpha = 50;
}
}
_root.shop.mansion.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
_root.mansionsPress = true;
_root.total = _root.total + _root.mansionPrice;
var _local3 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local3];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
this.enabled = false;
this._alpha = 50;
};
if ((_root.freezeflags != true) || (_root.freezePoint != true)) {
if (_root.scores >= _root.freezerPrice) {
_root.shop.freezer.enabled = true;
_root.shop.freezer._alpha = 100;
_root.shop.freezer.buy = true;
_root.freezeflags = true;
} else {
if (_root.freezePoint == true) {
_root.shop.freezer.gotoAndStop(2);
}
_root.shop.freezer.enabled = false;
_root.shop.freezer._alpha = 50;
_root.shop.freezer.buy = false;
_root.freezeflags = false;
}
}
if ((_root.toasterflags != true) || (_root.toastPoint != true)) {
if (_root.scores >= _root.toasterPrice) {
_root.shop.toaster.enabled = true;
_root.shop.toaster._alpha = 100;
_root.shop.toaster.buy = true;
_root.toasterflags = true;
} else {
if (_root.toastPoint == true) {
_root.shop.toaster.gotoAndStop(2);
}
_root.shop.toaster.enabled = false;
_root.shop.toaster._alpha = 50;
_root.shop.toaster.buy = false;
_root.toasterflags = false;
}
}
if ((_root.ovenflags != true) || (_root.ovenPoint != true)) {
if (_root.scores >= _root.ovenPrice) {
_root.shop.oven.enabled = true;
_root.shop.oven._alpha = 100;
_root.shop.oven.buy = true;
_root.ovenflags = true;
} else {
if (_root.ovenPoint == true) {
_root.shop.oven.gotoAndStop(2);
}
_root.shop.oven.enabled = false;
_root.shop.oven._alpha = 30;
_root.shop.oven.buy = false;
_root.ovenflags = false;
}
}
if (_root.shop.freezer.buy == true) {
_root.shop.freezer.onPress = function () {
_root.sound8.start();
_root.scores = _root.scores - _root.freezerPrice;
if (_root.scores <= 0) {
_root.scores = 0;
}
_root.total = _root.total + _root.freezerPrice;
var _local3 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local3];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.countFreezes = 1;
_root.freezerBought = _root.freezerBought + 1;
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
this.gotoAndStop(2);
_root.freezePoint = true;
this.enabled = false;
this._alpha = 30;
};
}
if (_root.shop.toaster.buy == true) {
_root.shop.toaster.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
_root.scores = _root.scores - _root.toasterPrice;
if (_root.scores <= 0) {
_root.scores = 0;
}
_root.total = _root.total + _root.toasterPrice;
var _local3 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local3];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.countToasters = 1;
_root.toasterBought = _root.toasterBought + 1;
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.toastPoint = true;
this.gotoAndStop(2);
this.enabled = false;
this._alpha = 30;
};
}
if (_root.shop.oven.buy == true) {
_root.shop.oven.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
_root.scores = _root.scores - _root.ovenPrice;
if (_root.scores <= 0) {
_root.scores = 0;
}
_root.total = _root.total + _root.ovenPrice;
var _local3 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local3];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.countOvens = 1;
_root.ovenBought = _root.ovenBought + 1;
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.ovenPoint = true;
this.gotoAndStop(2);
this.enabled = false;
this._alpha = 30;
};
}
}
function sellfarmDetails() {
if (_root.countEgg > 0) {
_root.shop.Egg.enabled = true;
_root.shop.Egg._alpha = 100;
} else {
_root.shop.Egg.enabled = false;
_root.shop.Egg._alpha = 50;
}
if (_root.countMilk > 0) {
_root.shop.Milk.enabled = true;
_root.shop.Milk._alpha = 100;
} else {
_root.shop.Milk.enabled = false;
_root.shop.Milk._alpha = 50;
}
if (_root.countMeat > 0) {
_root.shop.Meat.enabled = true;
_root.shop.Meat._alpha = 100;
} else {
_root.shop.Meat.enabled = false;
_root.shop.Meat._alpha = 50;
}
_root.shop.Egg.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores + _root.EggPrices;
_root.eggGiven = _root.eggGiven + 1;
_root.countEgg = _root.countEgg - 1;
if (_root.countEgg < 0) {
_root.countEgg = 0;
}
_root.total = _root.total + _root.EggPrices;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
};
_root.shop.Milk.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores + _root.MilkPrices;
_root.total = _root.total + _root.MilkPrices;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.milkGiven = _root.milkGiven + 1;
_root.countMilk = _root.countMilk - 1;
if (_root.countMilk < 0) {
_root.countMilk = 0;
}
};
_root.shop.Meat.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores + _root.MeatPrices;
_root.total = _root.total + _root.MeatPrices;
var _local2 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local2];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.meatGiven = _root.meatGiven + 1;
_root.countMeat = _root.countMeat - 1;
if (_root.countMeat < 0) {
_root.countMeat = 0;
}
};
}
function sellBakeryDetails() {
if (_root.pastryCount > 0) {
_root.pastrySell = true;
} else {
_root.pastrySell = false;
}
if (_root.icecreamCount > 0) {
_root.iceSell = true;
} else {
_root.iceSell = false;
}
if (_root.cutletCount > 0) {
_root.cutletSell = true;
} else {
_root.cutletSell = false;
}
if (_root.meatrollCount > 0) {
_root.meatrollSell = true;
} else {
_root.meatrollSell = false;
}
if (_root.sandwitchCount > 0) {
_root.sandwitchSell = true;
} else {
_root.sandwitchSell = false;
}
if (_root.cakeCount > 0) {
_root.cakeSell = true;
} else {
_root.cakeSell = false;
}
if (_root.pastrySell == true) {
_root.shop.Pastry.enabled = true;
_root.shop.Pastry._alpha = 100;
_root.shop.Pastry.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
_root.shop.kitchenBtn.enabled = false;
_root.shopn.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores + _root.pastryPrice;
_root.total = _root.total + _root.pastryPrice;
var _local3 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local3];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.pastryGiven = _root.pastryGiven + 1;
_root.pastryCount--;
if (_root.pastryCount <= 0) {
_root.pastryCount = 0;
_root.pastrySell = false;
this.enabled = false;
this._alpha = 50;
}
};
}
if (_root.iceSell == true) {
_root.shop.Icecream.enabled = true;
_root.shop.Icecream._alpha = 100;
_root.shop.Icecream.onPress = function () {
_root.shop.kitchenBtn.enabled = false;
if (_root.soundready == false) {
_root.sound8.start();
}
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores + _root.icecreamPrice;
_root.total = _root.total + _root.icecreamPrice;
var _local3 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local3];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.icecreamGiven = _root.icecreamGiven + 1;
_root.icecreamCount--;
if (_root.icecreamCount <= 0) {
_root.icecreamCount = 0;
_root.iceSell = false;
this.enabled = false;
this._alpha = 50;
}
};
}
if (_root.cutletSell == true) {
_root.shop.Cutlet.enabled = true;
_root.shop.Cutlet._alpha = 100;
_root.shop.Cutlet.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
_root.shopn.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores + _root.cutletPrice;
_root.total = _root.total + _root.cutletPrice;
var _local3 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local3];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.cutletGiven = _root.cutletGiven + 1;
_root.cutletCount--;
if (_root.cutletCount <= 0) {
_root.cutletCount = 0;
_root.cutletSell = false;
this.enabled = false;
this._alpha = 50;
}
};
}
if (_root.meatrollSell == true) {
_root.shop.Meatroll.enabled = true;
_root.shop.Meatroll._alpha = 100;
_root.shop.Meatroll.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores + _root.meatrollPrice;
_root.total = _root.total + _root.meatrollPrice;
var _local3 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local3];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.meatrollGiven = _root.meatrollGiven + 1;
_root.meatrollCount--;
if (_root.meatrollCount <= 0) {
_root.meatrollCount = 0;
_root.meatrollSell = false;
this.enabled = false;
this._alpha = 50;
}
};
}
if (_root.sandwitchSell == true) {
_root.shop.Sandwitch.enabled = true;
_root.shop.Sandwitch._alpha = 100;
_root.shop.Sandwitch.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores + _root.sandwitchPrice;
_root.total = _root.total + _root.sandwitchPrice;
var _local3 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local3];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.sandwitchGiven = _root.sandwitchGiven + 1;
_root.sandwitchCount--;
if (_root.sandwitchCount <= 0) {
_root.sandwitchCount = 0;
_root.sandwitchSell = false;
this.enabled = false;
this._alpha = 50;
}
};
}
if (_root.cakeSell == true) {
_root.shop.Cake.enabled = true;
_root.shop.Cake._alpha = 100;
_root.shop.Cake.onPress = function () {
if (_root.soundready == false) {
_root.sound8.start();
}
_root.shop.kitchenBtn.enabled = false;
_root.shop.closeBtn.enabled = false;
_root.shop.closeBtn1.enabled = false;
_root.shop.marketBtn.enabled = false;
_root.shop.sell.enabled = false;
_root.shop.purchase.enabled = false;
_root.scores = _root.scores + _root.cakePrice;
_root.total = _root.total + _root.cakePrice;
var _local3 = new flash.filters.GlowFilter(16753448, 30, 5, 5, 2, 2, false, false);
_root.shop.totals.filters = [_local3];
_root.timeForBlink = 0;
_root.timeForBlinks = true;
_root.cakeGiven = _root.cakeGiven + 1;
_root.cakeCount--;
if (_root.cakeCount <= 0) {
_root.cakeCount = 0;
_root.cakeSell = false;
this.enabled = false;
this._alpha = 50;
}
};
}
}
function enableOptionKitchen() {
_root.kitchen.buyitems._visible = false;
_root.kitchen.kitchenBg.switches.gotoAndStop(2);
_root.kitchen.freezeBtn.enabled = false;
_root.kitchen.toastBtn.enabled = false;
_root.kitchen.ovenBtn.enabled = false;
_root.kitchen.freezeBtn._alpha = 80;
_root.kitchen.toastBtn._alpha = 80;
_root.kitchen.ovenBtn._alpha = 80;
_root.kitchen.machines.enabled = false;
_root.kitchen.machines._alpha = 80;
_root.kitchen.days._visible = false;
_root.kitchen.machines.pastryIngrediant.enabled = false;
_root.kitchen.machines.pastryIngrediant._alpha = 70;
_root.kitchen.machines.icecreamIngrediant.enabled = false;
_root.kitchen.machines.icecreamIngrediant._alpha = 70;
_root.kitchen.machines.cutletIngrediant.enabled = false;
_root.kitchen.machines.cutletIngrediant._alpha = 70;
_root.kitchen.machines.meatrollIngrediant.enabled = false;
_root.kitchen.machines.meatrollIngrediant._alpha = 70;
_root.kitchen.machines.sandwitchIngrediant.enabled = false;
_root.kitchen.machines.sandwitchIngrediant._alpha = 70;
_root.kitchen.machines.cakeIngrediant.enabled = false;
_root.kitchen.machines.cakeIngrediant._alpha = 70;
_root.kitchen.buyKitchen.Egg.enabled = false;
_root.kitchen.buyKitchen.Egg._alpha = 70;
_root.kitchen.buyKitchen.Milk.enabled = false;
_root.kitchen.buyKitchen.Milk._alpha = 70;
_root.kitchen.buyKitchen.Meat.enabled = false;
_root.kitchen.buyKitchen.Meat._alpha = 70;
_root.kitchen.tray._visible = false;
_root.kitchen.kitchenBg.switches.enabled = false;
_root.kitchen.kitchenBg.switches.marker._visible = false;
}
function freezeFunction() {
_root.kitchen.machines.pastryIngrediant.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
_root.pastryMake = true;
_root.icecreamMake = false;
_root.cutletMake = false;
_root.meatrollMake = false;
_root.sandwitchMake = false;
_root.cakeMake = false;
this.gotoAndStop(2);
this.enabled = false;
_root.kitchen.marketBtn.enabled = false;
_root.kitchen.closeBtn.enabled = false;
_root.kitchen.freezeBtn.enabled = false;
_root.kitchen.toastBtn.enabled = false;
_root.kitchen.ovenBtn.enabled = false;
_root.kitchen.freezeBtn._alpha = 80;
_root.kitchen.toastBtn._alpha = 80;
_root.kitchen.ovenBtn._alpha = 80;
_root.kitchendetail = false;
_root.kitchen.machines.pastryIngrediant.gotoAndStop(2);
_root.kitchen.machines.icecreamIngrediant.enabled = false;
_root.kitchen.tray._visible = true;
_root.kitchen.tray.gotoAndPlay(1);
_root.kitchen.tray.eggSum._visible = false;
_root.kitchen.tray.milkSum._visible = false;
_root.kitchen.tray.meatSum._visible = false;
};
_root.kitchen.machines.pastryIngrediant.onRollOver = function () {
this.gotoAndStop(2);
};
_root.kitchen.machines.pastryIngrediant.onRollOut = function () {
this.gotoAndStop(1);
};
_root.kitchen.machines.icecreamIngrediant.onPress = function () {
_root.icecreamMake = true;
_root.pastryMake = false;
_root.cutletMake = false;
_root.meatrollMake = false;
_root.sandwitchMake = false;
_root.cakeMake = false;
this.gotoAndStop(2);
this.enabled = false;
_root.kitchen.marketBtn.enabled = false;
_root.kitchen.closeBtn.enabled = false;
_root.kitchen.freezeBtn.enabled = false;
_root.kitchen.toastBtn.enabled = false;
_root.kitchen.ovenBtn.enabled = false;
_root.kitchen.freezeBtn._alpha = 80;
_root.kitchen.toastBtn._alpha = 80;
_root.kitchen.ovenBtn._alpha = 80;
_root.kitchendetail = false;
_root.kitchen.machines.pastryIngrediant.enabled = false;
_root.kitchen.tray._visible = true;
_root.kitchen.tray.gotoAndPlay(1);
_root.kitchen.tray.eggSum._visible = false;
_root.kitchen.tray.milkSum._visible = false;
_root.kitchen.tray.meatSum._visible = false;
};
_root.kitchen.machines.icecreamIngrediant.onRollOver = function () {
this.gotoAndStop(2);
};
_root.kitchen.machines.icecreamIngrediant.onRollOut = function () {
this.gotoAndStop(1);
};
}
function toastFunction() {
_root.kitchen.machines.cutletIngrediant.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
_root.cutletMake = true;
_root.icecreamMake = false;
_root.pastryMake = false;
_root.meatrollMake = false;
_root.sandwitchMake = false;
_root.cakeMake = false;
this.gotoAndStop(2);
this.enabled = false;
_root.kitchen.marketBtn.enabled = false;
_root.kitchen.closeBtn.enabled = false;
_root.kitchen.freezeBtn.enabled = false;
_root.kitchen.toastBtn.enabled = false;
_root.kitchen.ovenBtn.enabled = false;
_root.kitchen.freezeBtn._alpha = 80;
_root.kitchen.toastBtn._alpha = 80;
_root.kitchen.ovenBtn._alpha = 80;
_root.kitchendetail = false;
_root.kitchen.machines.meatrollIngrediant.enabled = false;
_root.kitchen.tray._visible = true;
_root.kitchen.tray.gotoAndPlay(1);
_root.kitchen.tray.eggSum._visible = false;
_root.kitchen.tray.milkSum._visible = false;
_root.kitchen.tray.meatSum._visible = false;
};
_root.kitchen.machines.cutletIngrediant.onRollOver = function () {
this.gotoAndStop(2);
};
_root.kitchen.machines.cutletIngrediant.onRollOut = function () {
this.gotoAndStop(1);
};
_root.kitchen.machines.meatrollIngrediant.onPress = function () {
_root.meatrollMake = true;
_root.cutletMake = false;
_root.icecreamMake = false;
_root.pastryMake = false;
_root.sandwitchMake = false;
_root.cakeMake = false;
this.gotoAndStop(2);
this.enabled = false;
_root.kitchen.marketBtn.enabled = false;
_root.kitchen.closeBtn.enabled = false;
_root.kitchen.freezeBtn.enabled = false;
_root.kitchen.toastBtn.enabled = false;
_root.kitchen.ovenBtn.enabled = false;
_root.kitchen.freezeBtn._alpha = 80;
_root.kitchen.toastBtn._alpha = 80;
_root.kitchen.ovenBtn._alpha = 80;
_root.kitchendetail = false;
_root.kitchen.machines.cutletIngrediant.enabled = false;
_root.kitchen.tray._visible = true;
_root.kitchen.tray.gotoAndPlay(1);
_root.kitchen.tray.eggSum._visible = false;
_root.kitchen.tray.milkSum._visible = false;
_root.kitchen.tray.meatSum._visible = false;
};
_root.kitchen.machines.meatrollIngrediant.onRollOver = function () {
this.gotoAndStop(2);
};
_root.kitchen.machines.meatrollIngrediant.onRollOut = function () {
this.gotoAndStop(1);
};
}
function ovenFunction() {
_root.kitchen.machines.sandwitchIngrediant.onRollOver = function () {
this.gotoAndStop(2);
};
_root.kitchen.machines.sandwitchIngrediant.onRollOut = function () {
this.gotoAndStop(1);
};
_root.kitchen.machines.sandwitchIngrediant.onPress = function () {
if (_root.soundready == false) {
_root.sound10.start();
}
_root.sandwitchMake = true;
_root.meatrollMake = false;
_root.cutletMake = false;
_root.icecreamMake = false;
_root.pastryMake = false;
_root.cakeMake = false;
this.gotoAndStop(2);
this.enabled = false;
_root.kitchendetail = false;
_root.kitchen.marketBtn.enabled = false;
_root.kitchen.closeBtn.enabled = false;
_root.kitchen.freezeBtn.enabled = false;
_root.kitchen.toastBtn.enabled = false;
_root.kitchen.ovenBtn.enabled = false;
_root.kitchen.freezeBtn._alpha = 80;
_root.kitchen.toastBtn._alpha = 80;
_root.kitchen.ovenBtn._alpha = 80;
_root.kitchen.tray._visible = true;
_root.kitchen.machines.cakeIngrediant.enabled = false;
_root.kitchen.tray.gotoAndPlay(1);
_root.kitchen.tray.eggSum._visible = false;
_root.kitchen.tray.milkSum._visible = false;
_root.kitchen.tray.meatSum._visible = false;
};
_root.kitchen.machines.cakeIngrediant.onRollOver = function () {
this.gotoAndStop(2);
};
_root.kitchen.machines.cakeIngrediant.onRollOut = function () {
this.gotoAndStop(1);
};
_root.kitchen.machines.cakeIngrediant.onPress = function () {
_root.cakeMake = true;
if (_root.soundready == false) {
_root.sound10.start();
}
_root.sandwitchMake = false;
_root.meatrollMake = false;
_root.cutletMake = false;
_root.icecreamMake = false;
_root.pastryMake = false;
this.gotoAndStop(2);
this.enabled = false;
_root.kitchen.machines.sandwitchIngrediant.enabled = false;
_root.kitchendetail = false;
_root.kitchen.marketBtn.enabled = false;
_root.kitchen.closeBtn.enabled = false;
_root.kitchen.freezeBtn.enabled = false;
_root.kitchen.toastBtn.enabled = false;
_root.kitchen.ovenBtn.enabled = false;
_root.kitchen.freezeBtn._alpha = 80;
_root.kitchen.toastBtn._alpha = 80;
_root.kitchen.ovenBtn._alpha = 80;
_root.kitchen.tray._visible = true;
_root.kitchen.tray.gotoAndPlay(1);
_root.kitchen.tray.eggSum._visible = false;
_root.kitchen.tray.milkSum._visible = false;
_root.kitchen.tray.meatSum._visible = false;
};
}
function pasteryMaking() {
_root.pasteMilkCount = 1;
_root.pasteEggCount = 1;
if (_root.pasteEgg < _root.pasteEggCount) {
if ((_root.countEgg >= _root.pastryEggNum) && (_root.countEgg > 0)) {
_root.kitchen.buyKitchen.Egg.enabled = true;
_root.kitchen.buyKitchen.Egg._alpha = 100;
} else {
_root.kitchen.buyKitchen.Egg.enabled = false;
}
_root.kitchen.buyKitchen.Egg.onPress = function () {
if (_root.soundready == false) {
_root.sound11.start();
}
_root.kitchen.tray.eggSum._visible = true;
_root.kitchen.tray.eggSum.gotoAndStop(2);
_root.pasteEgg++;
_root.pastryEggNum--;
this.enabled = false;
_root.countEgg--;
if (_root.countEgg < 1) {
this._alpha = 70;
_root.countEgg = 0;
}
};
}
if (_root.pasteMilk < _root.pasteMilkCount) {
if ((_root.countMilk >= _root.pastryMilkNum) && (_root.countMilk > 0)) {
_root.kitchen.buyKitchen.Milk.enabled = true;
_root.kitchen.buyKitchen.Milk._alpha = 100;
} else {
_root.kitchen.buyKitchen.Milk.enabled = false;
}
_root.kitchen.buyKitchen.Milk.onPress = function () {
if (_root.soundready == false) {
_root.sound11.start();
}
_root.kitchen.tray.milkSum._visible = true;
_root.kitchen.tray.milkSum.gotoAndStop(2);
this.enabled = false;
_root.pastryMilkNum--;
_root.pasteMilk++;
_root.countMilk--;
if (_root.countMilk < 1) {
this._alpha = 70;
_root.countMilk = 0;
}
};
}
if ((_root.pasteMilk == _root.pasteMilkCount) && (_root.pasteEgg == _root.pasteEggCount)) {
_root.kitchen.kitchenBg.switches.enabled = true;
_root.kitchen.tray.cancels._visible = false;
_root.kitchen.kitchenBg.switches.marker._visible = true;
_root.switchBtn = true;
_root.boilCount = 1;
}
}
function icecreamMaking() {
_root.iceMilkCount = 1;
_root.iceEggCount = 2;
if (_root.pasteEgg < _root.iceEggCount) {
if ((_root.countEgg >= _root.iceEggNum) && (_root.countEgg > 0)) {
_root.kitchen.buyKitchen.Egg.enabled = true;
_root.kitchen.buyKitchen.Egg._alpha = 100;
} else {
_root.kitchen.buyKitchen.Egg.enabled = false;
}
_root.kitchen.buyKitchen.Egg.onPress = function () {
if (_root.soundready == false) {
_root.sound11.start();
}
_root.kitchen.tray.eggSum._visible = true;
_root.eggjum++;
_root.kitchen.tray.eggSum.gotoAndStop(_root.eggjum);
_root.pasteEgg++;
_root.iceEggNum--;
_root.countEgg--;
if (_root.countEgg < 1) {
this._alpha = 70;
_root.countEgg = 0;
}
};
}
if (_root.pasteEgg == _root.iceEggCount) {
_root.kitchen.buyKitchen.Egg.enabled = false;
_root.eggjum = 1;
}
if (_root.pasteMilk < _root.iceMilkCount) {
if ((_root.countMilk >= _root.iceMilkNum) && (_root.countMilk > 0)) {
_root.kitchen.buyKitchen.Milk.enabled = true;
_root.kitchen.buyKitchen.Milk._alpha = 100;
} else {
_root.kitchen.buyKitchen.Milk.enabled = false;
}
_root.kitchen.buyKitchen.Milk.onPress = function () {
if (_root.soundready == false) {
_root.sound11.start();
}
_root.kitchen.tray.milkSum._visible = true;
_root.kitchen.tray.milkSum.gotoAndStop(2);
this.enabled = false;
_root.iceMilkNum--;
_root.pasteMilk++;
_root.countMilk--;
if (_root.countMilk < 1) {
this._alpha = 70;
_root.countMilk = 0;
}
};
}
if ((_root.pasteMilk == _root.iceMilkCount) && (_root.pasteEgg == _root.iceEggCount)) {
_root.kitchen.kitchenBg.switches.enabled = true;
_root.kitchen.tray.cancels._visible = false;
_root.kitchen.kitchenBg.switches.marker._visible = true;
_root.switchBtn = true;
_root.boilCount = 2;
}
}
function cutletMaking() {
_root.cutletMeatCount = 2;
_root.cutletEggCount = 1;
if (_root.pasteEgg < _root.cutletEggCount) {
if ((_root.countEgg >= _root.cutletEggNum) && (_root.countEgg > 0)) {
_root.kitchen.buyKitchen.Egg.enabled = true;
_root.kitchen.buyKitchen.Egg._alpha = 100;
} else {
_root.kitchen.buyKitchen.Egg.enabled = false;
}
_root.kitchen.buyKitchen.Egg.onPress = function () {
if (_root.soundready == false) {
_root.sound11.start();
}
_root.kitchen.tray.eggSum._visible = true;
_root.eggjum++;
_root.kitchen.tray.eggSum.gotoAndStop(_root.eggjum);
_root.pasteEgg++;
this.enabled = false;
_root.countEgg--;
_root.cutletEggNum--;
_root.eggjum = 1;
if (_root.countEgg < 1) {
this._alpha = 70;
_root.countEgg = 0;
}
};
}
if (_root.pasteMeat < _root.cutletMeatCount) {
if ((_root.countMeat >= _root.cutletMeatNum) && (_root.countMeat > 0)) {
_root.kitchen.buyKitchen.Meat.enabled = true;
_root.kitchen.buyKitchen.Meat._alpha = 100;
} else {
_root.kitchen.buyKitchen.Meat.enabled = false;
}
_root.kitchen.buyKitchen.Meat.onPress = function () {
if (_root.soundready == false) {
_root.sound11.start();
}
_root.kitchen.tray.meatSum._visible = true;
_root.meatjum++;
_root.kitchen.tray.meatSum.gotoAndStop(_root.meatjum);
_root.cutletMeatNum--;
_root.pasteMeat++;
_root.countMeat--;
if (_root.countMeat < 1) {
this._alpha = 70;
_root.countMeat = 0;
}
};
}
if (_root.pasteMeat == _root.cutletMeatCount) {
_root.kitchen.buyKitchen.Meat.enabled = false;
_root.meatjum = 1;
}
if ((_root.pasteMeat == _root.cutletMeatCount) && (_root.pasteEgg == _root.cutletEggCount)) {
_root.kitchen.kitchenBg.switches.enabled = true;
_root.kitchen.tray.cancels._visible = false;
_root.kitchen.kitchenBg.switches.marker._visible = true;
_root.switchBtn = true;
_root.boilCount = 3;
}
}
function meatrollMaking() {
_root.meatrollMeatCount = 2;
_root.meatrollEggCount = 2;
if (_root.pasteEgg < _root.meatrollEggCount) {
if ((_root.countEgg >= _root.meatrollEggNum) && (_root.countEgg > 0)) {
_root.kitchen.buyKitchen.Egg.enabled = true;
_root.kitchen.buyKitchen.Egg._alpha = 100;
} else {
_root.kitchen.buyKitchen.Egg.enabled = false;
}
_root.kitchen.buyKitchen.Egg.onPress = function () {
if (_root.soundready == false) {
_root.sound11.start();
}
_root.kitchen.tray.eggSum._visible = true;
_root.eggjum++;
_root.kitchen.tray.eggSum.gotoAndStop(_root.eggjum);
_root.pasteEgg++;
_root.meatrollEggNum--;
_root.countEgg--;
if (_root.countEgg < 1) {
this._alpha = 70;
_root.countEgg = 0;
}
};
}
if (_root.pasteEgg == _root.meatrollEggCount) {
_root.kitchen.buyKitchen.Egg.enabled = false;
_root.eggjum = 1;
}
if (_root.pasteMeat < _root.meatrollMeatCount) {
if ((_root.countMeat >= _root.meatrollMeatNum) && (_root.countMeat > 0)) {
_root.kitchen.buyKitchen.Meat.enabled = true;
_root.kitchen.buyKitchen.Meat._alpha = 100;
} else {
_root.kitchen.buyKitchen.Meat.enabled = false;
}
_root.kitchen.buyKitchen.Meat.onPress = function () {
if (_root.soundready == false) {
_root.sound11.start();
}
_root.kitchen.tray.meatSum._visible = true;
_root.meatjum++;
_root.kitchen.tray.meatSum.gotoAndStop(_root.meatjum);
_root.meatrollMeatNum--;
_root.pasteMeat++;
_root.countMeat--;
if (_root.countMeat < 1) {
this._alpha = 70;
_root.countMeat = 0;
}
};
}
if (_root.pasteMeat == _root.meatrollMeatCount) {
_root.kitchen.buyKitchen.Meat.enabled = false;
_root.meatjum = 1;
}
if ((_root.pasteMeat == _root.meatrollMeatCount) && (_root.pasteEgg == _root.meatrollEggCount)) {
_root.kitchen.kitchenBg.switches.enabled = true;
_root.kitchen.tray.cancels._visible = false;
_root.kitchen.kitchenBg.switches.marker._visible = true;
_root.switchBtn = true;
_root.boilCount = 4;
}
}
function sandwitchMaking() {
_root.sandwitchMeatCount = 1;
_root.sandwitchEggCount = 4;
if (_root.pasteEgg < _root.sandwitchEggCount) {
if ((_root.countEgg >= _root.sandwitchEggNum) && (_root.countEgg > 0)) {
_root.kitchen.buyKitchen.Egg.enabled = true;
_root.kitchen.buyKitchen.Egg._alpha = 100;
} else {
_root.kitchen.buyKitchen.Egg.enabled = false;
}
_root.kitchen.buyKitchen.Egg.onPress = function () {
if (_root.soundready == false) {
_root.sound11.start();
}
_root.kitchen.tray.eggSum._visible = true;
_root.eggjum++;
_root.kitchen.tray.eggSum.gotoAndStop(_root.eggjum);
_root.pasteEgg++;
_root.sandwitchEggNum--;
_root.countEgg--;
if (_root.countEgg < 1) {
this._alpha = 70;
_root.countEgg = 0;
}
};
}
if (_root.pasteEgg == _root.sandwitchEggCount) {
_root.kitchen.buyKitchen.Egg.enabled = false;
_root.eggjum = 1;
}
if (_root.pasteMeat < _root.sandwitchMeatCount) {
if ((_root.countMeat >= _root.sandwitchMeatNum) && (_root.countMeat > 0)) {
_root.kitchen.buyKitchen.Meat.enabled = true;
_root.kitchen.buyKitchen.Meat._alpha = 100;
} else {
_root.kitchen.buyKitchen.Meat.enabled = false;
}
_root.kitchen.buyKitchen.Meat.onPress = function () {
if (_root.soundready == false) {
_root.sound11.start();
}
_root.kitchen.tray.meatSum._visible = true;
_root.meatjum++;
_root.kitchen.tray.meatSum.gotoAndStop(_root.meatjum);
this.enabled = false;
_root.meatjum = 1;
_root.sandwitchMeatNum--;
_root.pasteMeat++;
_root.countMeat--;
if (_root.countMeat < 1) {
this._alpha = 70;
_root.countMeat = 0;
}
};
}
if ((_root.pasteMeat == _root.sandwitchMeatCount) && (_root.pasteEgg == _root.sandwitchEggCount)) {
_root.kitchen.kitchenBg.switches.enabled = true;
_root.kitchen.tray.cancels._visible = false;
_root.kitchen.kitchenBg.switches.marker._visible = true;
_root.switchBtn = true;
_root.boilCount = 5;
}
}
function cakeMaking() {
_root.cakeMilkCount = 2;
_root.cakeEggCount = 5;
if (_root.pasteEgg < _root.cakeEggCount) {
if ((_root.countEgg >= _root.cakeEggNum) && (_root.countEgg > 0)) {
_root.kitchen.buyKitchen.Egg.enabled = true;
_root.kitchen.buyKitchen.Egg._alpha = 100;
} else {
_root.kitchen.buyKitchen.Egg.enabled = false;
}
_root.kitchen.buyKitchen.Egg.onPress = function () {
if (_root.soundready == false) {
_root.sound11.start();
}
_root.kitchen.tray.eggSum._visible = true;
_root.eggjum++;
_root.kitchen.tray.eggSum.gotoAndStop(_root.eggjum);
_root.pasteEgg++;
_root.cakeEggNum--;
_root.countEgg--;
if (_root.countEgg < 1) {
this._alpha = 70;
_root.countEgg = 0;
}
};
}
if (_root.pasteEgg == _root.cakeEggCount) {
_root.kitchen.buyKitchen.Egg.enabled = false;
_root.eggjum = 1;
}
if (_root.pasteMilk < _root.cakeMilkCount) {
if ((_root.countMilk >= _root.cakeMilkNum) && (_root.countMilk > 0)) {
_root.kitchen.buyKitchen.Milk.enabled = true;
_root.kitchen.buyKitchen.Milk._alpha = 100;
} else {
_root.kitchen.buyKitchen.Milk.enabled = false;
}
_root.kitchen.buyKitchen.Milk.onPress = function () {
if (_root.soundready == false) {
_root.sound11.start();
}
_root.kitchen.tray.milkSum._visible = true;
_root.milkjum++;
_root.cakeMilkNum--;
_root.kitchen.tray.milkSum.gotoAndStop(_root.milkjum);
_root.pasteMilk++;
_root.countMilk--;
if (_root.countMilk < 1) {
this._alpha = 70;
_root.countMilk = 0;
}
};
}
if (_root.pasteMilk == _root.cakeMilkCount) {
_root.kitchen.buyKitchen.Milk.enabled = false;
_root.milkjum = 1;
}
if ((_root.pasteMilk == _root.cakeMilkCount) && (_root.pasteEgg == _root.cakeEggCount)) {
_root.kitchen.kitchenBg.switches.enabled = true;
_root.kitchen.tray.cancels._visible = false;
_root.kitchen.kitchenBg.switches.marker._visible = true;
_root.switchBtn = true;
_root.boilCount = 6;
}
}
function doneItems() {
_root.kitchen.tray._visible = true;
if (_root.boilCount == 1) {
_root.kitchen.tray.gotoAndPlay("pastryDone");
}
if (_root.boilCount == 2) {
_root.kitchen.tray.gotoAndPlay("iceDone");
}
if (_root.boilCount == 3) {
_root.kitchen.tray.gotoAndPlay("cutletDone");
}
if (_root.boilCount == 4) {
_root.kitchen.tray.gotoAndPlay("meatrollDone");
}
if (_root.boilCount == 5) {
_root.kitchen.tray.gotoAndPlay("sandwitchDone");
}
if (_root.boilCount == 6) {
_root.kitchen.tray.gotoAndPlay("cakeDone");
}
_root.switchAfterBoil = false;
_root.pressBoilItems = true;
}
function setCloseFunction() {
var _local4 = 1;
while (_local4 < 31) {
_root["tileArrayObj" + _local4] = new Array();
_root["tileArrayObj" + _local4].splice(0);
_root["tileArrayObj" + _local4].push(_root["tile" + _local4].timeIterval);
_root["tileArrayObj" + _local4].push(_root["tile" + _local4].times);
_root["tileArrayObj" + _local4].push(_root["tile" + _local4].val);
_root["tileArrayObj" + _local4].push(_root["tile" + _local4].times);
_root["tileArrayObj" + _local4].push(_root["tile" + _local4].count);
_root["tileArrayObj" + _local4].push(_root["tile" + _local4].needwater);
_root["tileArrayObj" + _local4].push(_root["tile" + _local4].waters);
_root["tileArrayObj" + _local4].push(_root["tile" + _local4]._currentframe);
_root["tileArrayObj" + _local4].push(_root["tile" + _local4].sets);
_root["tileArrayObj" + _local4].push(_root["tile" + _local4].waterboard._currentframe);
user_so.data["name" + _local4] = _root["tileArrayObj" + _local4];
_local4++;
}
var _local2 = 1;
while (_local2 < 6) {
_root["henloadArray" + _local2] = new Array();
_root["henloadArray" + _local2].splice(0);
_root["henloadArray" + _local2].push(_root["hen" + _local2]._visible);
_root["henloadArray" + _local2].push(_root["hen" + _local2]._currentframe);
_root["henloadArray" + _local2].push(_root["hen" + _local2].times1);
_root["henloadArray" + _local2].push(_root["hen" + _local2].count);
_root["henloadArray" + _local2].push(_root["hen" + _local2].grow);
_root["henloadArray" + _local2].push(_root["hen" + _local2].times);
_root["henloadArray" + _local2].push(_root["hen" + _local2].timer);
user_so.data["hentype" + _local2] = _root["henloadArray" + _local2];
_local2++;
}
_root.henFoodLoad = new Array();
_root.henFoodLoad.splice(0);
_root.henFoodLoad.push(_root.henfoodie._visible);
_root.henFoodLoad.push(_root.henfoodie._currentframe);
_root.henFoodLoad.push(_root.hencounts);
_root.henFoodLoad.push(_root.hencount);
_root.henFoodLoad.push(_root.henFood._visible);
_root.henFoodLoad.push(_root.egg._visible);
_root.henFoodLoad.push(_root.eggCounts);
_root.henFoodLoad.push(_root.henFoods._visible);
_root.henFoodLoad.push(_root.countFood1);
_root.henFoodLoad.push(_root.henfoodItem);
_root.henFoodLoad.push(_root.henfoodItemVal);
_root.henFoodLoad.push(_root.countEgg);
_root.henFoodLoad.push(_root.hensfoods);
_root.henFoodLoad.push(_root.hensfoods1);
_root.henFoodLoad.push(_root.henFoodGiven);
_root.henFoodLoad.push(_root.tookEgg);
_root.henFoodLoad.push(_root.tookEggs);
_root.henFoodLoad.push(_root.eggNum);
user_so.data.henFoodTypes = _root.henFoodLoad;
_local2 = 1;
while (_local2 < 4) {
_root["cowloadArray" + _local2] = new Array();
_root["cowloadArray" + _local2].splice(0);
_root["cowloadArray" + _local2].push(_root["cow" + _local2]._visible);
_root["cowloadArray" + _local2].push(_root["cow" + _local2]._currentframe);
_root["cowloadArray" + _local2].push(_root["cow" + _local2].times1);
_root["cowloadArray" + _local2].push(_root["cow" + _local2].count);
_root["cowloadArray" + _local2].push(_root["cow" + _local2].grow);
_root["cowloadArray" + _local2].push(_root["cow" + _local2].times);
_root["cowloadArray" + _local2].push(_root["cow" + _local2].timer);
_root["cowloadArray" + _local2].push(_root["cowFood" + _local2]._visible);
_root["cowloadArray" + _local2].push(_root["cow_Box" + _local2]._visible);
_root["cowloadArray" + _local2].push(_root["cow_Box" + _local2]._currentframe);
_root["cowloadArray" + _local2].push(_root["cowCounts" + _local2]);
_root["cowloadArray" + _local2].push(_root["milk" + _local2]._currentframe);
_root["cowloadArray" + _local2].push(_root["cowfoodItem" + _local2]);
_root["cowloadArray" + _local2].push(_root["cowfoodItemVal" + _local2]);
_root["cowloadArray" + _local2].push(_root["cowFoodGiven" + _local2]);
user_so.data["cowtype" + _local2] = _root["cowloadArray" + _local2];
_local2++;
}
_root.cowFoodLoad = new Array();
_root.cowFoodLoad.splice(0);
_root.cowFoodLoad.push(_root.cowFoods._visible);
_root.cowFoodLoad.push(_root.countMilk);
_root.cowFoodLoad.push(_root.countFood2);
_root.cowFoodLoad.push(_root.cowsfoods);
_root.cowFoodLoad.push(_root.cowcount);
_root.cowFoodLoad.push(_root.cowcounts);
_root.cowFoodLoad.push(_root.tookMilk);
_root.cowFoodLoad.push(_root.tookMilks);
_root.cowFoodLoad.push(_root.cowsfoods1);
_root.cowFoodLoad.push(_root.cowCounts);
user_so.data.cowFoodTypes = _root.cowFoodLoad;
var _local3 = 1;
while (_local3 < 3) {
_root["pigloadArray" + _local3] = new Array();
_root["pigloadArray" + _local3].splice(0);
_root["pigloadArray" + _local3].push(_root["pig" + _local3]._visible);
_root["pigloadArray" + _local3].push(_root["pig" + _local3]._currentframe);
_root["pigloadArray" + _local3].push(_root["pig" + _local3].times1);
_root["pigloadArray" + _local3].push(_root["pig" + _local3].count);
_root["pigloadArray" + _local3].push(_root["pig" + _local3].grow);
_root["pigloadArray" + _local3].push(_root["pig" + _local3].times);
_root["pigloadArray" + _local3].push(_root["pig" + _local3].timer);
_root["pigloadArray" + _local3].push(_root["pigFood" + _local3]._visible);
_root["pigloadArray" + _local3].push(_root["pig_Box" + _local3]._visible);
_root["pigloadArray" + _local3].push(_root["pig_Box" + _local3]._currentframe);
_root["pigloadArray" + _local3].push(_root["pigfoodItem" + _local3]);
_root["pigloadArray" + _local3].push(_root["pigfoodItemVal" + _local3]);
_root["pigloadArray" + _local3].push(_root["pigFoodGiven" + _local3]);
user_so.data["pigtype" + _local3] = _root["pigloadArray" + _local3];
_local3++;
}
_root.pigFoodLoad = new Array();
_root.pigFoodLoad.splice(0);
_root.pigFoodLoad.push(_root.pigFoods._visible);
_root.pigFoodLoad.push(_root.meat._currentframe);
_root.pigFoodLoad.push(_root.meatCounts);
_root.pigFoodLoad.push(_root.countFood3);
_root.pigFoodLoad.push(_root.pigsfoods);
_root.pigFoodLoad.push(_root.pigcount);
_root.pigFoodLoad.push(_root.pigcounts);
_root.pigFoodLoad.push(_root.countMeat);
_root.pigFoodLoad.push(_root.tookMeat);
_root.pigFoodLoad.push(_root.tookMeats);
_root.pigFoodLoad.push(_root.pigsfoods1);
_root.pigFoodLoad.push(_root.meat._visible);
_root.pigFoodLoad.push(_root.meatNum);
user_so.data.pigFoodTypes = _root.pigFoodLoad;
_root.extraItems = new Array();
_root.extraItems.splice(0);
_root.extraItems.push(_root.score);
_root.extraItems.push(_root.levels);
_root.extraItems.push(_root.pastryCount);
_root.extraItems.push(_root.icecreamCount);
_root.extraItems.push(_root.cutletCount);
_root.extraItems.push(_root.sandwitchCount);
_root.extraItems.push(_root.meatrollCount);
_root.extraItems.push(_root.cakeCount);
_root.extraItems.push(_root.eggGiven);
_root.extraItems.push(_root.milkGiven);
_root.extraItems.push(_root.meatGiven);
_root.extraItems.push(_root.cakeGiven);
_root.extraItems.push(_root.icecreamGiven);
_root.extraItems.push(_root.meatrollGiven);
_root.extraItems.push(_root.sandwitchGiven);
_root.extraItems.push(_root.pastryGiven);
_root.extraItems.push(_root.cutletGiven);
_root.extraItems.push(_root.henseedBought);
_root.extraItems.push(_root.cowseedBought);
_root.extraItems.push(_root.pigseedBought);
_root.extraItems.push(_root.henBought);
_root.extraItems.push(_root.cowBought);
_root.extraItems.push(_root.pigBought);
_root.extraItems.push(_root.freezerBought);
_root.extraItems.push(_root.toasterBought);
_root.extraItems.push(_root.ovenBought);
_root.extraItems.push(_root.eggPr);
_root.extraItems.push(_root.milkPr);
_root.extraItems.push(_root.meatPr);
_root.extraItems.push(_root.SeedHen);
_root.extraItems.push(_root.SeedCow);
_root.extraItems.push(_root.SeedPig);
_root.extraItems.push(_root.Hentot);
_root.extraItems.push(_root.Cowtot);
_root.extraItems.push(_root.Pigtot);
_root.extraItems.push(_root.totalFreezes);
_root.extraItems.push(_root.totalToasters);
_root.extraItems.push(_root.totalOvens);
_root.extraItems.push(_root.pastetot);
_root.extraItems.push(_root.icetot);
_root.extraItems.push(_root.meatrolltot);
_root.extraItems.push(_root.cutlettot);
_root.extraItems.push(_root.sandtot);
_root.extraItems.push(_root.caketot);
_root.extraItems.push(_root.earnedMoney);
_root.extraItems.push(_root.spendMoney);
_root.extraItems.push(_root.scor);
_root.extraItems.push(_root.scores);
_root.extraItems.push(_root.freezePoint);
_root.extraItems.push(_root.toastPoint);
_root.extraItems.push(_root.ovenPoint);
_root.extraItems.push(_root.freezeflags);
_root.extraItems.push(_root.toasterflags);
_root.extraItems.push(_root.ovenflags);
user_so.data.extraTypes = _root.extraItems;
}
function loadData() {
tileLoad();
henProcess();
cowProcess();
pigProcess();
extraAll();
user_so.flush();
}
function tileLoad() {
var _local2 = 1;
while (_local2 < 31) {
if (user_so.data["name" + _local2][0] == true) {
_root["tile" + _local2].timeIterval = user_so.data["name" + _local2][0];
_root["tile" + _local2].times = user_so.data["name" + _local2][1];
_root["tile" + _local2].val = user_so.data["name" + _local2][2];
_root["tile" + _local2].times = user_so.data["name" + _local2][3];
_root["tile" + _local2].count = user_so.data["name" + _local2][4];
_root["tile" + _local2].needwater = user_so.data["name" + _local2][5];
_root["tile" + _local2].waters = user_so.data["name" + _local2][6];
_root["tile" + _local2]._currentframe = user_so.data["name" + _local2][7];
_root["tile" + _local2].sets = user_so.data["name" + _local2][8];
_root["tile" + _local2].waterboard._currentframe = user_so.data["name" + _local2][9];
}
_root["tile" + _local2].gotoAndStop(user_so.data["name" + _local2][7]);
if (user_so.data["name" + _local2][9] == 5) {
_root["tile" + _local2].waterboard._visible = true;
_root["tile" + _local2].waterboard.gotoAndStop(user_so.data["name" + _local2][9]);
}
_local2++;
}
var _local3 = 1;
while (_local3 < 31) {
_root["tile" + _local3].barpnt._visible = false;
_root["tileArrayObj" + _local3].splice(0);
_local3++;
}
}
function henProcess() {
var _local2 = 1;
while (_local2 < 6) {
if (user_so.data["hentype" + _local2][0] == true) {
_root["hen" + _local2]._visible = user_so.data["hentype" + _local2][0];
_root["hen" + _local2]._currentframe = user_so.data["hentype" + _local2][1];
_root["hen" + _local2].times1 = user_so.data["hentype" + _local2][2];
_root["hen" + _local2].count = user_so.data["hentype" + _local2][3];
_root["hen" + _local2].grow = user_so.data["hentype" + _local2][4];
_root["hen" + _local2].times = user_so.data["hentype" + _local2][5];
_root["hen" + _local2].timer = user_so.data["hentype" + _local2][6];
_root["hen" + _local2].gotoAndStop(user_so.data["hentype" + _local2][1]);
}
if (user_so.data["hentype" + _local2][0] == false) {
_root["hen" + _local2]._visible = false;
_root["hen" + _local2]._currentframe = 1;
}
_local2++;
}
var _local3 = 0;
while (_local3 < user_so.data.henFoodTypes.length) {
if (user_so.data.henFoodTypes[_local3] == undefined) {
user_so.data.henFoodTypes[_local3] = "";
}
_local3++;
}
_root.henfoodie._visible = user_so.data.henFoodTypes[0];
_root.henfoodie._currentframe = user_so.data.henFoodTypes[1];
_root.hencounts = user_so.data.henFoodTypes[2];
_root.hencount = user_so.data.henFoodTypes[3];
_root.henFood._visible = user_so.data.henFoodTypes[4];
_root.egg._visible = user_so.data.henFoodTypes[5];
_root.eggCounts = user_so.data.henFoodTypes[6];
_root.henFoods._visible = user_so.data.henFoodTypes[7];
_root.countFood1 = user_so.data.henFoodTypes[8];
_root.henfoodItem = user_so.data.henFoodTypes[9];
_root.henfoodItemVal = user_so.data.henFoodTypes[10];
_root.countEgg = user_so.data.henFoodTypes[11];
_root.hensfoods = user_so.data.henFoodTypes[12];
_root.hensfoods1 = user_so.data.henFoodTypes[13];
_root.henFoodGiven = user_so.data.henFoodTypes[14];
_root.tookEgg = user_so.data.henFoodTypes[15];
_root.tookEggs = user_so.data.henFoodTypes[16];
_root.eggNum = user_so.data.henFoodTypes[17];
if ((_root.eggNum != "") || (_root.eggNum != 0)) {
_root.collectboard.blink.gotoAndPlay(1);
}
_root.henfoodie.gotoAndStop(user_so.data.henFoodTypes[1]);
var _local4 = 1;
while (_local4 < 6) {
_root["henloadArray" + _local4].splice(0);
_local4++;
}
_root.henFoodLoad.splice(0);
}
function cowProcess() {
var _local3 = 0;
while (_local3 < user_so.data.cowFoodTypes.length) {
if (user_so.data.cowFoodTypes[_local3] == undefined) {
user_so.data.cowFoodTypes[_local3] = "";
}
_local3++;
}
_root.cowFoods._visible = user_so.data.cowFoodTypes[0];
_root.countMilk = user_so.data.cowFoodTypes[1];
_root.countFood2 = user_so.data.cowFoodTypes[2];
_root.cowsfoods = user_so.data.cowFoodTypes[3];
_root.cowcount = user_so.data.cowFoodTypes[4];
_root.cowcounts = user_so.data.cowFoodTypes[5];
_root.tookMilk = user_so.data.cowFoodTypes[6];
_root.tookMilks = user_so.data.cowFoodTypes[7];
_root.cowsfoods1 = user_so.data.cowFoodTypes[8];
_root.cowCounts = user_so.data.cowFoodTypes[9];
if ((_root.cowCounts != "") || (_root.cowCounts != 0)) {
_root.collectboard.blink.gotoAndPlay(1);
}
_local3 = 0;
while (_local3 < user_so.data.cowtype.length) {
if (user_so.data.cowtype[_local3] == undefined) {
user_so.data.cowtype[_local3] = "";
}
_local3++;
}
var _local2 = 1;
while (_local2 < 4) {
if (user_so.data["cowtype" + _local2][0] == true) {
_root["cow" + _local2]._visible = user_so.data["cowtype" + _local2][0];
_root["cow" + _local2]._currentframe = user_so.data["cowtype" + _local2][1];
_root["cow" + _local2].times1 = user_so.data["cowtype" + _local2][2];
_root["cow" + _local2].count = user_so.data["cowtype" + _local2][3];
_root["cow" + _local2].grow = user_so.data["cowtype" + _local2][4];
_root["cow" + _local2].times = user_so.data["cowtype" + _local2][5];
_root["cow" + _local2].timer = user_so.data["cowtype" + _local2][6];
_root["cowFood" + _local2]._visible = user_so.data["cowtype" + _local2][7];
_root["cow_Box" + _local2]._visible = user_so.data["cowtype" + _local2][8];
_root["cow_Box" + _local2]._currentframe = user_so.data["cowtype" + _local2][9];
_root["cowCounts" + _local2] = user_so.data["cowtype" + _local2][10];
_root["milk" + _local2]._currentframe = user_so.data["cowtype" + _local2][11];
_root["cowfoodItem" + _local2] = user_so.data["cowtype" + _local2][12];
_root["cowfoodItemVal" + _local2] = user_so.data["cowtype" + _local2][13];
_root["cowFoodGiven" + _local2] = user_so.data["cowtype" + _local2][14];
_root["cow" + _local2].gotoAndStop(user_so.data["cowtype" + _local2][1]);
_root["cow_Box" + _local2].gotoAndStop(user_so.data["cowtype" + _local2][9]);
_root["milk" + _local2].gotoAndStop(user_so.data["cowtype" + _local2][11]);
if (_root["cowCounts" + _local2] != "") {
_root["milk" + _local2]._visible = true;
_root["milk" + _local2].gotoAndStop(15);
}
}
_local2++;
}
var _local4 = 1;
while (_local4 < 4) {
_root["cowloadArray" + _local4].splice(0);
_local4++;
}
_root.cowFoodLoad.splice(0);
}
function pigProcess() {
var _local3 = 0;
while (_local3 < user_so.data.pigtype.length) {
if (user_so.data.pigtype[_local3] == undefined) {
user_so.data.pigtype[_local3] = "";
}
_local3++;
}
var _local2 = 1;
while (_local2 < 3) {
if (user_so.data["pigtype" + _local2][0] == true) {
_root["pig" + _local2]._visible = user_so.data["pigtype" + _local2][0];
_root["pig" + _local2]._currentframe = user_so.data["pigtype" + _local2][1];
_root["pig" + _local2].times1 = user_so.data["pigtype" + _local2][2];
_root["pig" + _local2].count = user_so.data["pigtype" + _local2][3];
_root["pig" + _local2].grow = user_so.data["pigtype" + _local2][4];
_root["pig" + _local2].times = user_so.data["pigtype" + _local2][5];
_root["pig" + _local2].timer = user_so.data["pigtype" + _local2][6];
_root["pigFood" + _local2]._visible = user_so.data["pigtype" + _local2][7];
_root["pig_Box" + _local2]._visible = user_so.data["pigtype" + _local2][8];
_root["pig_Box" + _local2]._currentframe = user_so.data["pigtype" + _local2][9];
_root["pigfoodItem" + _local2] = user_so.data["pigtype" + _local2][10];
_root["pigfoodItemVal" + _local2] = user_so.data["pigtype" + _local2][11];
_root["pigFoodGiven" + _local2] = user_so.data["pigtype" + _local2][12];
_root["pig" + _local2].gotoAndStop(user_so.data["pigtype" + _local2][1]);
_root["pig_Box" + _local2].gotoAndStop(user_so.data["pigtype" + _local2][9]);
}
_local2++;
}
_local3 = 0;
while (_local3 < user_so.data.pigFoodTypes.length) {
if (user_so.data.pigFoodTypes[_local3] == undefined) {
user_so.data.pigFoodTypes[_local3] = "";
}
_local3++;
}
_root.pigFoods._visible = user_so.data.pigFoodTypes[0];
_root.meat._currentframe = user_so.data.pigFoodTypes[1];
_root.meatCounts = user_so.data.pigFoodTypes[2];
_root.countFood3 = user_so.data.pigFoodTypes[3];
_root.pigsfoods = user_so.data.pigFoodTypes[4];
_root.pigcount = user_so.data.pigFoodTypes[5];
_root.pigcounts = user_so.data.pigFoodTypes[6];
_root.countMeat = user_so.data.pigFoodTypes[7];
_root.tookMeat = user_so.data.pigFoodTypes[8];
_root.tookMeats = user_so.data.pigFoodTypes[9];
_root.pigsfoods1 = user_so.data.pigFoodTypes[10];
_root.meat._visible = user_so.data.pigFoodTypes[11];
_root.meatNum = user_so.data.pigFoodTypes[12];
_root.meat.gotoAndStop(user_so.data.pigFoodTypes[1]);
if (_root.meatCounts != "") {
_root.meat._visible = true;
_root.meat.gotoAndStop(14);
}
if ((_root.meatNum != "") || (_root.meatNum != 0)) {
_root.collectboard.blink.gotoAndPlay(1);
}
var _local4 = 1;
while (_local4 < 3) {
_root["pigloadArray" + _local4].splice(0);
_local4++;
}
_root.pigFoodLoad.splice(0);
}
function extraAll() {
var _local2 = 0;
while (_local2 < user_so.data.extraTypes.length) {
if (user_so.data.extraTypes[_local2] == undefined) {
user_so.data.extraTypes[_local2] = "";
}
_local2++;
}
_root.score = user_so.data.extraTypes[0];
_root.levels = user_so.data.extraTypes[1];
_root.pastryCount = user_so.data.extraTypes[2];
_root.icecreamCount = user_so.data.extraTypes[3];
_root.cutletCount = user_so.data.extraTypes[4];
_root.sandwitchCount = user_so.data.extraTypes[5];
_root.meatrollCount = user_so.data.extraTypes[6];
_root.cakeCount = user_so.data.extraTypes[7];
_root.eggGiven = user_so.data.extraTypes[8];
_root.milkGiven = user_so.data.extraTypes[9];
_root.meatGiven = user_so.data.extraTypes[10];
_root.cakeGiven = user_so.data.extraTypes[11];
_root.icecreamGiven = user_so.data.extraTypes[12];
_root.meatrollGiven = user_so.data.extraTypes[13];
_root.sandwitchGiven = user_so.data.extraTypes[14];
_root.pastryGiven = user_so.data.extraTypes[15];
_root.cutletGiven = user_so.data.extraTypes[16];
_root.henseedBought = user_so.data.extraTypes[17];
_root.cowseedBought = user_so.data.extraTypes[18];
_root.pigseedBought = user_so.data.extraTypes[19];
_root.henBought = user_so.data.extraTypes[20];
_root.cowBought = user_so.data.extraTypes[21];
_root.pigBought = user_so.data.extraTypes[22];
_root.freezerBought = user_so.data.extraTypes[23];
_root.toasterBought = user_so.data.extraTypes[24];
_root.ovenBought = user_so.data.extraTypes[25];
_root.eggPr = user_so.data.extraTypes[26];
_root.milkPr = user_so.data.extraTypes[27];
_root.meatPr = user_so.data.extraTypes[28];
_root.SeedHen = user_so.data.extraTypes[29];
_root.SeedCow = user_so.data.extraTypes[30];
_root.SeedPig = user_so.data.extraTypes[31];
_root.Hentot = user_so.data.extraTypes[32];
_root.Cowtot = user_so.data.extraTypes[33];
_root.Pigtot = user_so.data.extraTypes[34];
_root.totalFreezes = user_so.data.extraTypes[35];
_root.totalToasters = user_so.data.extraTypes[36];
_root.totalOvens = user_so.data.extraTypes[37];
_root.pastetot = user_so.data.extraTypes[38];
_root.icetot = user_so.data.extraTypes[39];
_root.meatrolltot = user_so.data.extraTypes[40];
_root.cutlettot = user_so.data.extraTypes[41];
_root.sandtot = user_so.data.extraTypes[42];
_root.caketot = user_so.data.extraTypes[43];
_root.earnedMoney = user_so.data.extraTypes[44];
_root.spendMoney = user_so.data.extraTypes[45];
_root.scor = user_so.data.extraTypes[46];
_root.scores = user_so.data.extraTypes[47];
_root.freezePoint = user_so.data.extraTypes[48];
_root.toastPoint = user_so.data.extraTypes[49];
_root.ovenPoint = user_so.data.extraTypes[50];
_root.freezeflags = user_so.data.extraTypes[51];
_root.toasterflags = user_so.data.extraTypes[52];
_root.ovenflags = user_so.data.extraTypes[53];
if ((_root.score == 0) || (_root.score == "")) {
_root.dollar._visible = false;
} else {
_root.dollar._visible = true;
}
_root.extraItems.splice(0);
}
stop();
if (!_root.soundready) {
_root.musicBtn.gotoAndStop(2);
_root.musicBtn1.gotoAndStop(2);
}
if (_root.soundready) {
_root.musicBtn.gotoAndStop(1);
_root.musicBtn1.gotoAndStop(1);
}
initLevel();
_root.onEnterFrame = function () {
_root.timeSetToClose++;
if (_root.timeSetToClose == 7) {
setCloseFunction();
_root.timeSetToClose = 0;
}
if (_root.newPaused == false) {
if (_root.Paused == false) {
action();
}
if (_root.starPress == true) {
_root.star1._x = _xmouse;
_root.star1._y = _ymouse;
_root.Paused = true;
changeDirect();
}
if (_root.deletPress == true) {
_root.dels._x = _xmouse;
_root.dels._y = _ymouse;
_root.Paused = true;
deleFunc();
}
if (_root.tiletaken == true) {
_root.tilecopy._x = _xmouse;
_root.tilecopy._y = _ymouse;
changeTiles();
}
_root.nmt++;
if (_root.nmt == 5) {
_root.tiletaken = false;
}
var _local3 = 1;
while (_local3 < 12) {
if (_root["phase" + _local3] == true) {
_root["phase" + _local3] = false;
_root.tut.gotoAndPlay(_root.tut._currentframe);
}
_local3++;
}
_root.marketBtn.onPress = function () {
this.gotoAndStop(1);
_root.newPaused = true;
_root.Paused = true;
_root.shopPress = true;
_root.tutor.enabled = false;
_root.pauses.enabled = false;
_root.dayDialog._visible = false;
if (_root.soundready == false) {
_root.sound9.start();
}
var _local3 = 1;
while (_local3 < 31) {
_root["tiles" + _local3]._visible = false;
_root["tile" + _local3].enabled = false;
_root["tiles" + _local3].enabled = false;
_local3++;
}
};
_root.dayDialog.marketBtn.onPress = function () {
this.gotoAndStop(1);
_root.newPaused = true;
_root.Paused = true;
_root.shopPress = true;
_root.tutor.enabled = false;
_root.pauses.enabled = false;
_root.dayDialog._visible = false;
if (_root.soundready == false) {
_root.sound9.start();
}
var _local3 = 1;
while (_local3 < 31) {
_root["tiles" + _local3]._visible = false;
_root["tile" + _local3].enabled = false;
_root["tiles" + _local3].enabled = false;
_local3++;
}
};
}
_root.dayDialog.endDay.onPress = function () {
endDays();
_root.dayDialog._visible = false;
};
_root.dayDialog.endDay.onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
};
_root.dayDialog.endDay.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
if (_root.dialogPressOk == true) {
endDays();
_root.dialogPressOk = false;
}
_root.kitchenBtn.onPress = function () {
this.gotoAndStop(1);
_root.newPaused = true;
if (_root.soundready == false) {
_root.sound9.start();
}
_root.Paused = true;
_root.shopdetail = false;
_root.shopPress = false;
_root.kitchenPress = true;
_root.tutor.enabled = false;
_root.pauses.enabled = false;
_root.dayDialog._visible = false;
var _local3 = 1;
while (_local3 < 31) {
_root["tiles" + _local3]._visible = false;
_root["tile" + _local3].enabled = false;
_root["tiles" + _local3].enabled = false;
_local3++;
}
};
_root.dayDialog.kitchenBtn.onPress = function () {
this.gotoAndStop(1);
_root.newPaused = true;
_root.Paused = true;
_root.shopdetail = false;
if (_root.soundready == false) {
_root.sound9.start();
}
_root.shopPress = false;
_root.kitchenPress = true;
_root.tutor.enabled = false;
_root.pauses.enabled = false;
var _local3 = 1;
while (_local3 < 31) {
_root["tiles" + _local3]._visible = false;
_root["tile" + _local3].enabled = false;
_root["tiles" + _local3].enabled = false;
_local3++;
}
_root.dayDialog._visible = false;
};
_root.kitchenBtn.onRollOver = function () {
this.gotoAndStop(2);
};
_root.kitchenBtn.onRollOut = function () {
this.gotoAndStop(1);
};
_root.marketBtn.onRollOver = function () {
this.gotoAndStop(2);
};
_root.marketBtn.onRollOut = function () {
this.gotoAndStop(1);
};
_root.dayDialog.kitchenBtn.onRollOver = function () {
this.gotoAndStop(2);
};
_root.dayDialog.kitchenBtn.onRollOut = function () {
this.gotoAndStop(1);
};
_root.dayDialog.marketBtn.onRollOver = function () {
this.gotoAndStop(2);
};
_root.dayDialog.marketBtn.onRollOut = function () {
this.gotoAndStop(1);
};
if (_root.newPaused) {
_root.pauses.enabled = false;
_root.shopItem();
}
};
if (_root.loads) {
_root.newPaused = false;
_root.Paused = false;
_root.dayBeginDialog._visible = false;
loadData();
} else {
_root.dayBeginDialog._visible = true;
_root.Paused = true;
_root.marketBtn.enabled = false;
_root.kitchenBtn.enabled = false;
_root.tutor.enabled = false;
_root.musicBtn1.enabled = false;
_root.pauses.enabled = false;
}
Instance of Symbol 768 MovieClip "house" in Frame 21
on (rollOver) {
trace(this._xscale);
this._xscale = 86;
this._yscale = 86;
}
on (rollOut) {
this._xscale = 76;
this._yscale = 76;
}
Instance of Symbol 770 MovieClip "well" in Frame 21
on (rollOver) {
this._xscale = 110;
this._yscale = 110;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 773 MovieClip "cowFood2" in Frame 21
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 773 MovieClip "pigFood2" in Frame 21
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 774 MovieClip "henFood" in Frame 21
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 773 MovieClip "cowFood1" in Frame 21
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 776 MovieClip "bucket" in Frame 21
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 777 MovieClip "digger" in Frame 21
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 778 MovieClip "collectbox" in Frame 21
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 779 MovieClip "milk2" in Frame 21
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 780 MovieClip "meat" in Frame 21
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 773 MovieClip "cowFood3" in Frame 21
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 779 MovieClip "milk3" in Frame 21
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 779 MovieClip "milk1" in Frame 21
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 849 MovieClip "henFoods" in Frame 21
on (rollOver) {
this.foodcover1._xscale = 200;
this.foodcover1._yscale = 200;
}
on (rollOut) {
this.foodcover1._xscale = 163;
this.foodcover1._yscale = 163;
}
Instance of Symbol 853 MovieClip "pigFoods" in Frame 21
on (rollOver) {
this.foodcover3._xscale = 200;
this.foodcover3._yscale = 200;
}
on (rollOut) {
this.foodcover3._xscale = 163;
this.foodcover3._yscale = 163;
}
Instance of Symbol 856 MovieClip "cowFoods" in Frame 21
on (rollOver) {
this.foodcover2._xscale = 200;
this.foodcover2._yscale = 200;
}
on (rollOut) {
this.foodcover2._xscale = 163;
this.foodcover2._yscale = 163;
}
Instance of Symbol 867 MovieClip "tutor" in Frame 21
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (this.frame == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 872 MovieClip "pauses" in Frame 21
on (release) {
if (_root.soundready == false) {
_root.sound9.start();
}
_root.Paused = true;
_root.attachMovie("pause", "pauseMenu", 1000, {_x:310, _y:220});
_root.pauseMenu._visible = true;
_root.storeBtn.enabled = false;
_root.stars.enabled = false;
_root.del.enabled = false;
_root.helps.enabled = false;
_root.tutor.enabled = false;
_root.tut.removeMovieClip();
_root.kitchenBtn.enabled = false;
_root.marketBtn.enabled = false;
_root.closeBtn1.enabled = false;
_root.girl.gotoAndStop(_root.girl._currentframe);
var i = 1;
while (i < 31) {
_root["tiles" + i]._visible = false;
_root["tile" + i].enabled = false;
_root["tiles" + i].enabled = false;
i++;
}
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 912 MovieClip "musicBtn1" in Frame 21
on (release) {
if (_root.soundready == false) {
_root.sound9.start();
}
if (_root.soundready == false) {
_root.soundready = true;
_root.sound1.stop();
this.gotoAndStop(1);
_root.musicBtn.gotoAndStop(1);
} else if (_root.soundready == true) {
_root.soundready = false;
this.gotoAndStop(2);
_root.musicBtn.gotoAndStop(2);
_root.sound1.start();
}
}
on (rollOver) {
if (_root.soundready == false) {
this.gotoAndStop(4);
_root.musicBtn.gotoAndStop(4);
}
if (_root.soundready == true) {
this.gotoAndStop(3);
_root.musicBtn.gotoAndStop(3);
}
}
on (rollOut) {
if (_root.soundready == false) {
this.gotoAndStop(2);
_root.musicBtn.gotoAndStop(2);
}
if (_root.soundready == true) {
this.gotoAndStop(1);
_root.musicBtn.gotoAndStop(1);
}
}
Frame 29
stop();
Symbol 20 Button
on (release) {
_root.scores = 0;
_root.level = false;
_root.levels = 1;
_root.gotoAndStop("game");
}
Symbol 21 Button
on (release) {
_root.sound1.stop();
delete _root.onEnterFrame;
if (_root.soundready == false) {
_root.sound9.start();
}
_root.gotoAndPlay("menu");
_root.kitchen.removeMovieClip();
_root.shop.removeMovieClip();
_root.screens.removeMovieClip();
_root.tut.removeMovieClip();
}
Symbol 26 MovieClip Frame 1
games2girls_button.onRelease = function () {
getURL ("http://www.games2girls.com/", "_blank");
};
Symbol 27 MovieClip [mansionscreen] Frame 23
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 40
stop();
_root.reachPoint = true;
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 7
stop();
Symbol 90 MovieClip Frame 5
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 15
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 1
stop();
stop();
Symbol 102 MovieClip Frame 15
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 40
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 5
stop();
Symbol 202 MovieClip Frame 5
stop();
Symbol 202 MovieClip Frame 26
stop();
Symbol 202 MovieClip Frame 34
stop();
Symbol 202 MovieClip Frame 42
stop();
Symbol 202 MovieClip Frame 50
stop();
Symbol 202 MovieClip Frame 58
stop();
Symbol 202 MovieClip Frame 66
stop();
Symbol 203 MovieClip [Kitchens] Frame 1
_root.enableOptionKitchen();
Symbol 203 MovieClip [Kitchens] Frame 10
stop();
Symbol 207 MovieClip [life_Ck2] Frame 10
stop();
Symbol 226 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 1
gotoAndPlay (1);
Symbol 237 MovieClip Frame 5
gotoAndPlay (1);
Symbol 240 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 10
stop();
Symbol 319 Button
on (press) {
_root.store._visible = false;
_root.store.gotoAndStop(1);
_root.storeBtn.frame = 1;
_root.storeBtn.gotoAndStop(1);
_root.storeBtn.enabled = true;
var i = 1;
while (i < 31) {
_root["tiles" + i].enabled = true;
_root["tile" + i].enabled = true;
_root["tiles" + i]._visible = true;
i++;
}
if (_root.walkDirect == true) {
_root.girl.gotoAndPlay(_root.girl._currentframe);
} else if (_root.walkDirect1 == true) {
_root.girl.gotoAndPlay("digging");
} else if (_root.walkDirect2 == true) {
_root.girl.gotoAndPlay("foodserving");
} else if (_root.walkDirect3 == true) {
_root.girl.gotoAndPlay("watering");
} else {
_root.girl.gotoAndStop(_root.girl._currentframe);
}
_root.helps.enabled = true;
_root.pauses.enabled = true;
_root.stars.enabled = true;
_root.del.enabled = true;
_root.Paused = false;
}
Symbol 340 MovieClip [shops] Frame 11
stop();
_root.shop.buyHen._visible = true;
_root.shop.buyCow._visible = true;
_root.shop.buyPig._visible = true;
_root.shop.buyHenSeed._visible = true;
_root.shop.buyCowSeed._visible = true;
_root.shop.buyPigSeed._visible = true;
_root.shop.freezer._visible = true;
_root.shop.toaster._visible = true;
_root.shop.oven._visible = true;
_root.shop.closeBtn._visible = true;
_root.shop.Egg._visible = false;
_root.shop.Milk._visible = false;
_root.shop.Meat._visible = false;
_root.shop.Pastry._visible = false;
_root.shop.Icecream._visible = false;
_root.shop.Cutlet._visible = false;
_root.shop.Meatroll._visible = false;
_root.shop.Sandwitch._visible = false;
_root.shop.Cake._visible = false;
_root.shop.purchase._visible = true;
_root.shop.sell._visible = true;
_root.shop.kitchenBtn._visible = true;
_root.shop.marketBtn._visible = true;
_root.shop.closeBtn1._visible = true;
_root.shop.mansion._visible = true;
Symbol 340 MovieClip [shops] Frame 27
stop();
_root.shop.Egg._visible = true;
_root.shop.Milk._visible = true;
_root.shop.Meat._visible = true;
_root.shop.Pastry._visible = true;
_root.shop.Icecream._visible = true;
_root.shop.Cutlet._visible = true;
_root.shop.Meatroll._visible = true;
_root.shop.Sandwitch._visible = true;
_root.shop.closeBtn._visible = true;
_root.shop.Cake._visible = true;
_root.shop.purchase._visible = true;
_root.shop.sell._visible = true;
_root.shop.kitchenBtn._visible = true;
_root.shop.marketBtn._visible = true;
_root.shop.closeBtn1._visible = true;
Symbol 352 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 1
stop();
Symbol 374 Button
on (release) {
_root.sound1.stop();
delete _root.onEnterFrame;
if (_root.soundready == false) {
_root.sound9.start();
}
_root.gotoAndPlay("menu");
_root.tut.removeMovieClip();
}
Symbol 377 Button
on (press) {
var i = 1;
while (i < 31) {
_root["tiles" + i]._visible = true;
_root["tile" + i].enabled = true;
_root["tiles" + i].enabled = true;
i++;
}
_root.stars.enabled = true;
_root.del.enabled = true;
_root.helps.enabled = true;
_root.pauses.enabled = true;
_root.storeBtn.enabled = true;
if (_root.soundready == false) {
_root.sound9.start();
}
_root.Paused = false;
_root.gotoAndPlay("game");
_root.tutor.frame = 1;
_root.tutor.gotoAndStop(1);
_root.tut.removeMovieClip();
}
Symbol 380 Button
on (release) {
_root.tut.gotoAndStop(1);
_root.tut.gotoAndPlay(2);
if (_root.soundready == false) {
_root.sound9.start();
}
var i = 1;
while (i < 12) {
_root["phase" + i] = false;
i++;
}
}
Symbol 384 Button
on (press) {
play();
}
Symbol 395 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 3
stop();
Symbol 406 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 10
stop();
Symbol 433 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 10
stop();
Symbol 445 MovieClip Frame 13
stop();
Symbol 450 MovieClip Frame 1
stop();
Symbol 452 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 4
gotoAndPlay (2);
Symbol 464 MovieClip Frame 5
stop();
Symbol 467 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 1
stop();
Symbol 481 MovieClip Frame 1
stop();
Symbol 485 MovieClip Frame 1
gotoAndStop (20);
Symbol 485 MovieClip Frame 20
gotoAndStop (20);
Symbol 488 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 9
stop();
Symbol 499 MovieClip Frame 9
stop();
Symbol 500 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 10
stop();
Symbol 514 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 1
stop();
Symbol 519 MovieClip Frame 1
stop();
Symbol 522 MovieClip [tutors1] Frame 1
stop();
Instance of Symbol 345 MovieClip "well" in Symbol 522 MovieClip [tutors1] Frame 1
/* no clip actions */
Symbol 522 MovieClip [tutors1] Frame 2
_root.tut.gotoAndPlay(2);
Symbol 522 MovieClip [tutors1] Frame 24
stop();
Symbol 522 MovieClip [tutors1] Frame 33
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 522 MovieClip [tutors1] Frame 33
on (release) {
trace("kkkkkk");
_root.phase1 = true;
}
Instance of Symbol 401 MovieClip "roundBox" in Symbol 522 MovieClip [tutors1] Frame 56
on (release) {
trace("kkkkkk");
_root.phase2 = true;
}
Symbol 522 MovieClip [tutors1] Frame 61
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 522 MovieClip [tutors1] Frame 82
on (release) {
trace("kkkkkk");
_root.phase3 = true;
}
Symbol 522 MovieClip [tutors1] Frame 83
stop();
Symbol 522 MovieClip [tutors1] Frame 117
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 522 MovieClip [tutors1] Frame 117
on (release) {
trace("kkkkkk");
_root.phase4 = true;
}
Symbol 522 MovieClip [tutors1] Frame 140
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 522 MovieClip [tutors1] Frame 140
on (release) {
trace("kkkkkk");
_root.phase5 = true;
}
Instance of Symbol 401 MovieClip "roundBox" in Symbol 522 MovieClip [tutors1] Frame 171
on (release) {
trace("kkkkkk");
_root.phase6 = true;
}
Symbol 522 MovieClip [tutors1] Frame 172
stop();
Symbol 522 MovieClip [tutors1] Frame 203
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 522 MovieClip [tutors1] Frame 203
on (release) {
trace("kkkkkk");
_root.phase7 = true;
}
Symbol 522 MovieClip [tutors1] Frame 224
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 522 MovieClip [tutors1] Frame 224
on (release) {
trace("kkkkkk");
_root.phase8 = true;
}
Symbol 522 MovieClip [tutors1] Frame 243
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 522 MovieClip [tutors1] Frame 243
on (release) {
trace("kkkkkk");
_root.phase8 = true;
}
Symbol 522 MovieClip [tutors1] Frame 261
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 522 MovieClip [tutors1] Frame 261
on (release) {
trace("kkkkkk");
_root.phase9 = true;
}
Symbol 522 MovieClip [tutors1] Frame 276
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 522 MovieClip [tutors1] Frame 276
on (release) {
trace("kkkkkk");
_root.phase10 = true;
}
Instance of Symbol 401 MovieClip "roundBox" in Symbol 522 MovieClip [tutors1] Frame 288
on (release) {
trace("kkkkkk");
_root.phase11 = true;
}
Symbol 522 MovieClip [tutors1] Frame 296
stop();
Symbol 522 MovieClip [tutors1] Frame 311
stop();
Symbol 525 Button
on (press) {
var i = 1;
while (i < 31) {
_root["tiles" + i]._visible = true;
_root["tile" + i].enabled = true;
_root["tiles" + i].enabled = true;
i++;
}
_root.stars.enabled = true;
_root.del.enabled = true;
_root.helps.enabled = true;
_root.pauses.enabled = true;
_root.storeBtn.enabled = true;
trace(_root.menuItem);
if (_root.menuItem) {
_root.tutor.frame = 1;
_root.tutor.gotoAndStop(1);
if (_root.soundready == false) {
_root.sound9.start();
}
_root.gotoAndPlay("game");
_root.Paused = false;
} else {
if (_root.soundready == false) {
_root.sound9.start();
}
_root.tutor.enabled = true;
_root.tutor.frame = 1;
_root.tutor.gotoAndStop(1);
_root.Paused = false;
}
_root.tut.removeMovieClip();
}
Symbol 527 MovieClip [tutors] Frame 1
stop();
Instance of Symbol 345 MovieClip "well" in Symbol 527 MovieClip [tutors] Frame 1
/* no clip actions */
Symbol 527 MovieClip [tutors] Frame 2
_root.tut.gotoAndPlay(2);
Symbol 527 MovieClip [tutors] Frame 24
stop();
Symbol 527 MovieClip [tutors] Frame 33
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 527 MovieClip [tutors] Frame 33
on (release) {
trace("kkkkkk");
_root.phase1 = true;
}
Instance of Symbol 401 MovieClip "roundBox" in Symbol 527 MovieClip [tutors] Frame 56
on (release) {
trace("kkkkkk");
_root.phase2 = true;
}
Symbol 527 MovieClip [tutors] Frame 61
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 527 MovieClip [tutors] Frame 82
on (release) {
trace("kkkkkk");
_root.phase3 = true;
}
Symbol 527 MovieClip [tutors] Frame 83
stop();
Symbol 527 MovieClip [tutors] Frame 117
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 527 MovieClip [tutors] Frame 117
on (release) {
trace("kkkkkk");
_root.phase4 = true;
}
Symbol 527 MovieClip [tutors] Frame 140
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 527 MovieClip [tutors] Frame 140
on (release) {
trace("kkkkkk");
_root.phase5 = true;
}
Instance of Symbol 401 MovieClip "roundBox" in Symbol 527 MovieClip [tutors] Frame 171
on (release) {
trace("kkkkkk");
_root.phase6 = true;
}
Symbol 527 MovieClip [tutors] Frame 172
stop();
Symbol 527 MovieClip [tutors] Frame 203
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 527 MovieClip [tutors] Frame 203
on (release) {
trace("kkkkkk");
_root.phase7 = true;
}
Symbol 527 MovieClip [tutors] Frame 224
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 527 MovieClip [tutors] Frame 224
on (release) {
trace("kkkkkk");
_root.phase8 = true;
}
Symbol 527 MovieClip [tutors] Frame 243
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 527 MovieClip [tutors] Frame 243
on (release) {
trace("kkkkkk");
_root.phase8 = true;
}
Symbol 527 MovieClip [tutors] Frame 261
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 527 MovieClip [tutors] Frame 261
on (release) {
trace("kkkkkk");
_root.phase9 = true;
}
Instance of Symbol 401 MovieClip "roundBox" in Symbol 527 MovieClip [tutors] Frame 275
on (release) {
trace("kkkkkk");
_root.phase10 = true;
}
Symbol 527 MovieClip [tutors] Frame 276
stop();
Instance of Symbol 401 MovieClip "roundBox" in Symbol 527 MovieClip [tutors] Frame 288
on (release) {
trace("kkkkkk");
_root.phase11 = true;
}
Symbol 527 MovieClip [tutors] Frame 296
stop();
Symbol 527 MovieClip [tutors] Frame 311
stop();
Symbol 532 Button
on (press) {
_root.Paused = false;
_root.tutor.enabled = true;
_root.pauseMenu._visible = false;
_root.storeBtn.enabled = true;
_root.stars.enabled = true;
_root.del.enabled = true;
_root.kitchenBtn.enabled = true;
_root.marketBtn.enabled = true;
_root.closeBtn1.enabled = true;
if (_root.soundready == false) {
_root.sound9.start();
}
if (_root.walkDirect == true) {
_root.girl.gotoAndPlay(_root.girl._currentframe);
} else if (_root.walkDirect1 == true) {
_root.girl.gotoAndPlay("digging");
} else if (_root.walkDirect2 == true) {
_root.girl.gotoAndPlay("foodserving");
} else if (_root.walkDirect3 == true) {
_root.girl.gotoAndPlay("watering");
} else {
_root.girl.gotoAndStop(_root.girl._currentframe);
}
var i = 1;
while (i < 31) {
_root["tiles" + i].enabled = true;
_root["tile" + i].enabled = true;
_root["tiles" + i]._visible = true;
i++;
}
}
Symbol 535 Button
on (release) {
_root.sound1.stop();
if (_root.soundready == false) {
_root.sound9.start();
}
_root.gotoAndPlay("menu");
_root.pauseMenu.removeMovieClip();
}
Symbol 536 MovieClip [pause] Frame 10
stop();
Symbol 542 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 5
stop();
Symbol 546 MovieClip Frame 12
stop();
Symbol 562 MovieClip [tileCopy] Frame 1
stop();
Symbol 562 MovieClip [tileCopy] Frame 4
stop();
Symbol 641 Button
on (press) {
if (_root.soundready == false) {
_root.sound9.start();
}
_root.timer = 0;
_root.times.gotoAndStop(1);
_root.dayBeginDialog.gotoAndPlay(1);
_root.dayBeginDialog._visible = true;
_root.levelups._visible = false;
_root.levelups.removeMovieClip();
}
Symbol 642 MovieClip [levels] Frame 8
stop();
Symbol 653 MovieClip Frame 1
_root.stop();
Symbol 653 MovieClip Frame 2
fLoaded = Math.round(_root.getBytesLoaded());
fTotal = Math.round(_root.getBytesTotal());
fPercent = fLoaded / fTotal;
loaderTxt.text = ("Loading... " + Math.round(fPercent * 100)) + "%";
logoMask._y = 60 - (fPercent * 70);
if (fLoaded >= fTotal) {
loaderTxt._y = -3000;
loaderTxt._x = -3000;
_parent.play();
} else {
gotoAndPlay (1);
}
Symbol 669 MovieClip Frame 1
stop();
fSitebutton.onRelease = function () {
getURL ("http://www.games2girls.com/", "_blank");
};
Symbol 669 MovieClip Frame 123
stop();
_root.play();
Symbol 690 MovieClip Frame 33
stop();
Symbol 693 Button
on (release) {
_root.scores = 0;
_root.level = false;
_root.levels = 1;
if (_root.soundready == false) {
_root.sound9.start();
}
user_so.data.datas = "loadData";
_root.scores = 0;
_root.level = false;
_root.gotoAndStop("help");
}
Symbol 698 MovieClip Frame 15
stop();
Symbol 700 Button
on (press) {
_root.loads = true;
_root.scores = 0;
if (_root.soundready == false) {
_root.sound9.start();
}
_root.scores = 0;
_root.level = false;
user_so.data.datas = "loadData";
_root.gotoAndStop("help");
}
Symbol 701 Button
on (release) {
_root.scores = 0;
_root.level = false;
_root.levels = 1;
_root.loads = false;
if (_root.soundready == false) {
_root.sound9.start();
}
_root.newPaused = false;
_root.scores = 0;
_root.gotoAndStop("help");
}
Symbol 703 Button
on (release) {
_root.scores = 0;
_root.level = false;
_root.levels = 1;
_root.loads = false;
if (_root.soundready == false) {
_root.sound9.start();
}
_root.newPaused = false;
_root.scores = 0;
_root.gotoAndStop("help");
}
Symbol 751 MovieClip Frame 1
stop();
Symbol 752 MovieClip Frame 1
stop();
Symbol 752 MovieClip Frame 4
stop();
Symbol 755 MovieClip Frame 1
stop();
Symbol 755 MovieClip Frame 15
_root.hensfooditem = false;
Symbol 762 MovieClip Frame 1
stop();
Symbol 762 MovieClip Frame 10
stop();
Symbol 766 MovieClip Frame 1
stop();
Symbol 766 MovieClip Frame 10
stop();
Symbol 773 MovieClip Frame 10
stop();
Symbol 773 MovieClip Frame 11
stop();
Symbol 774 MovieClip Frame 10
stop();
Symbol 776 MovieClip Frame 1
stop();
Symbol 777 MovieClip Frame 1
stop();
Symbol 779 MovieClip Frame 1
stop();
Symbol 779 MovieClip Frame 15
stop();
Symbol 780 MovieClip Frame 1
stop();
Symbol 780 MovieClip Frame 14
stop();
Symbol 782 MovieClip Frame 9
gotoAndPlay (2);
Symbol 784 MovieClip Frame 10
gotoAndPlay (2);
Symbol 790 MovieClip Frame 15
stop();
Symbol 790 MovieClip Frame 30
stop();
Symbol 790 MovieClip Frame 45
stop();
_root.cow3._visible = false;
_root.cow3.gotoAndPlay(1);
Symbol 791 MovieClip Frame 15
stop();
Symbol 791 MovieClip Frame 30
stop();
Symbol 791 MovieClip Frame 45
stop();
_root.cow2._visible = false;
_root.cow2.gotoAndPlay(1);
Symbol 792 MovieClip Frame 15
stop();
Symbol 792 MovieClip Frame 30
stop();
Symbol 792 MovieClip Frame 45
stop();
_root.cow1._visible = false;
_root.cow1.gotoAndPlay(1);
Symbol 794 MovieClip Frame 9
gotoAndPlay (1);
Symbol 796 MovieClip Frame 9
gotoAndPlay (1);
Symbol 797 MovieClip Frame 15
stop();
Symbol 797 MovieClip Frame 30
stop();
Symbol 797 MovieClip Frame 41
stop();
_root.pig2._visible = false;
_root.pig2.gotoAndPlay(1);
Symbol 798 MovieClip Frame 15
stop();
Symbol 798 MovieClip Frame 30
stop();
Symbol 798 MovieClip Frame 41
stop();
_root.pig1._visible = false;
_root.pig1.gotoAndPlay(1);
Symbol 807 MovieClip Frame 15
stop();
Symbol 807 MovieClip Frame 30
stop();
Symbol 807 MovieClip Frame 38
stop();
_root.hen2._visible = false;
_root.hen2.gotoAndPlay(1);
Symbol 811 MovieClip Frame 11
gotoAndStop (1);
Symbol 813 MovieClip Frame 15
stop();
Symbol 813 MovieClip Frame 30
stop();
Symbol 813 MovieClip Frame 38
stop();
_root.hen1._visible = false;
_root.hen1.gotoAndPlay(1);
Symbol 814 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 3
stop();
Symbol 819 MovieClip Frame 15
stop();
Symbol 819 MovieClip Frame 30
stop();
Symbol 819 MovieClip Frame 37
stop();
_root.hen3._visible = false;
_root.hen3.gotoAndPlay(1);
Symbol 824 MovieClip Frame 15
stop();
Symbol 824 MovieClip Frame 30
stop();
Symbol 824 MovieClip Frame 38
stop();
_root.hen4._visible = false;
_root.hen4.gotoAndPlay(1);
Symbol 829 MovieClip Frame 15
stop();
Symbol 829 MovieClip Frame 30
stop();
Symbol 829 MovieClip Frame 38
stop();
_root.hen5._visible = false;
_root.hen5.gotoAndPlay(1);
Symbol 830 MovieClip Frame 15
stop();
Symbol 845 MovieClip Frame 1
stop();
Symbol 845 MovieClip Frame 65
stop();
Symbol 867 MovieClip Frame 1
stop();
Symbol 872 MovieClip Frame 1
stop();
Symbol 891 MovieClip Frame 1
stop();
Symbol 896 MovieClip Frame 1
stop();
Symbol 907 MovieClip Frame 1
stop();
Symbol 907 MovieClip Frame 10
gotoAndPlay ("front");
Symbol 907 MovieClip Frame 21
gotoAndPlay ("left");
Symbol 907 MovieClip Frame 32
gotoAndPlay ("back");
Symbol 907 MovieClip Frame 43
gotoAndPlay ("right");
Symbol 907 MovieClip Frame 54
gotoAndPlay ("frontItem");
Symbol 907 MovieClip Frame 65
gotoAndPlay ("leftItem");
Symbol 907 MovieClip Frame 76
gotoAndPlay ("backItem");
Symbol 907 MovieClip Frame 87
gotoAndPlay ("rightItem");
Symbol 907 MovieClip Frame 89
gotoAndPlay ("digging");
if (_root["tile" + _root.tile]._currentframe == 3) {
} else {
_root["tile" + _root.tile].gotoAndStop(1);
}
Symbol 907 MovieClip Frame 98
stop();
_root.diggers = true;
trace("HELOOO");
if (_root["tile" + _root.tile]._currentframe == 3) {
} else {
_root["tile" + _root.tile].gotoAndStop(3);
}
_root.walkDirect1 = false;
_root.takeRack = false;
_root.diggerPressed = true;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
Symbol 907 MovieClip Frame 100
gotoAndPlay ("foodserving");
Symbol 907 MovieClip Frame 112
stop();
if (_root["tile" + _root.tile]._currentframe == 4) {
} else {
_root["tile" + _root.tile].gotoAndStop(4);
}
_root.walkDirect2 = false;
_root.diggerPressed = true;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
Symbol 907 MovieClip Frame 120
stop();
_root.waters = true;
if (_root.waterCount == 0) {
_root.girl.bucks.gotoAndStop(2);
} else {
_root.girl.bucks.gotoAndStop(1);
}
_root.timeForWaters = 0;
_root.watersupply = false;
_root.walkDirect3 = false;
_root.diggerPressed = true;
_root.arrayHold.splice(0, 1);
_root.startAction = false;
Symbol 912 MovieClip Frame 1
stop();
Symbol 913 MovieClip Frame 1
stop();
Symbol 923 MovieClip Frame 7
stop();
Symbol 926 MovieClip Frame 24
stop();
_root.newPaused = false;
_root.Paused = false;
_root.storeBtn.enabled = true;
_root.stars.enabled = true;
_root.del.enabled = true;
_root.helps.enabled = true;
_root.tutor.enabled = true;
_root.tut.removeMovieClip();
_root.kitchenBtn.enabled = true;
_root.marketBtn.enabled = true;
_root.closeBtn1.enabled = true;
_root.musicBtn1.enabled = true;
_root.pauses.enabled = true;
_root.girl.gotoAndStop(_root.girl._currentframe);
var i = 1;
while (i < 31) {
_root["tiles" + i]._visible = true;
_root["tile" + i].enabled = true;
_root["tiles" + i].enabled = true;
i++;
}
_root.user_so.data.datas = "loadData";
_root.dayBeginDialog.gotoAndStop(1);
_root.dayBeginDialog._visible = false;
Symbol 935 Button
on (press) {
_root.sound1.stop();
_root.tut.removeMovieClip();
_root.pauses.removeMovieClip();
_root.gotoAndPlay("menu");
}