Frame 1
stop();
var soundReady = true;
Frame 2
var Paused = true;
var music = new Sound();
music.attachSound("music");
var click_snd = new Sound();
click_snd.attachSound("click_snd");
var water_snd = new Sound();
water_snd.attachSound("water_snd");
var digging_snd = new Sound();
digging_snd.attachSound("digging_snd");
var levelup_snd = new Sound();
levelup_snd.attachSound("levelup_snd");
var gameover_snd = new Sound();
gameover_snd.attachSound("gameover_snd");
var plant_snd = new Sound();
plant_snd.attachSound("plant_snd");
var bundle_snd = new Sound();
bundle_snd.attachSound("bundle_snd");
var go_snd = new Sound();
go_snd.attachSound("go_snd");
stopAllSounds();
if (_root.soundReady) {
music.start();
}
music.onSoundComplete = function () {
if (_root.soundReady) {
music.start();
}
};
Frame 20
loadGameBtn._visible = false;
newGameBtn._visible = false;
playBtn._visible = false;
helpBtn._visible = false;
Frame 22
stop();
user_so = SharedObject.getLocal("user");
helpBtn._visible = true;
if ((user_so.data.datas == "loadData") || (user_so.data.datas == "loadDataLevel")) {
loadGameBtn._visible = true;
newGameBtn._visible = true;
playBtn._visible = false;
} else {
playBtn._visible = true;
newGameBtn._visible = false;
loadGameBtn._visible = false;
}
Frame 41
stop();
Frame 42
function init() {
_root.fieldArray.splice(0);
_root.buttonsArray.splice(0);
_root.unbuttonsArray.splice(0);
_root.field1Array.splice(0);
_root.processQueue.splice(0);
_root.levelArray.splice(0);
_root.pathNode.splice(0);
_root.fieldTile.splice(0);
_root.b1Array.splice(0);
_root.b2Array.splice(0);
_root.b3Array.splice(0);
_root.b4Array.splice(0);
_root.b5Array.splice(0);
_root.b6Array.splice(0);
_root.b7Array.splice(0);
_root.b8Array.splice(0);
_root.clickItemArray.splice(0);
_root.clickCostArray.splice(0);
_root.itemArray.splice(0);
_root.b1Cost = 0;
_root.b2Cost = 0;
_root.b3Cost = 0;
_root.b4Cost = 0;
_root.b5Cost = 0;
_root.b6Cost = 0;
_root.b7Cost = 0;
_root.b8Cost = 0;
_root.ribbenCost = 0;
_root.leafCost = 0;
_root.bundleCost = 0;
_root.feed1 = 6;
_root.feed2 = 0;
_root.feed3 = 0;
_root.level = 1;
_root.Target = 0;
_root.totalFHead1 = 0;
_root.totalFHead2 = 0;
_root.totalFHead3 = 0;
_root.tottalCost = 0;
_root.score = 0;
_root.money = 0;
_root.levelLength = 0;
_root.levelCount = 0;
_root.poseTime = false;
_root.makerMsg = false;
_root.maker1 = true;
_root.maker2 = false;
_root.maker3 = false;
_root.newDay = true;
_root.fromFactory = false;
_root.heroSpeed = 15;
_root.itemFrame = 0;
_root.preitemFrame = 0;
_root.workTime = 0;
_root.timer = 0;
_root.ribben1 = 0;
_root.ribben2 = 0;
_root.ribben3 = 0;
_root.ribben4 = 0;
_root.ribben5 = 0;
_root.ribben6 = 0;
_root.ribben7 = 0;
_root.ribben8 = 0;
_root.ribben9 = 0;
_root.ribben10 = 0;
_root.Ribben = false;
_root.Leaf = false;
_root.FLOWER = false;
_root.preRibben = "";
_root.preLeaf = "";
_root.preFlower = "";
_root.WFCollect = 0;
_root.RFCollect = 0;
_root.YFCollect = 0;
_root.WFCount = 0;
_root.RFCount = 0;
_root.YFCount = 0;
_root.TkWFCount = 0;
_root.TkRFCount = 0;
_root.TkYFCount = 0;
_root.HmWFCount = 0;
_root.HmRFCount = 0;
_root.HmYFCount = 0;
_root.busketfldFrame = 0;
_root.busketbndFrame = 0;
_root.making1Count = 0;
_root.making2Count = 0;
_root.making3Count = 0;
_root.Tkmaking1Count = 0;
_root.Tkmaking2Count = 0;
_root.Tkmaking3Count = 0;
_root.WRFCount = 0;
_root.RYFCount = 0;
_root.WYFCount = 0;
_root.WRYFCount = 0;
_root.TkWRFCount = 0;
_root.TkRYFCount = 0;
_root.TkWYFCount = 0;
_root.TkWRYFCount = 0;
_root.HmWRFCount = 0;
_root.HmWYFCount = 0;
_root.HmRYFCount = 0;
_root.HmWRYFCount = 0;
_root.waterUse = 0;
_root.waitingTime1 = 12;
_root.waitingTime2 = 15;
_root.waitingTime3 = 20;
_root.closeTime = 0;
_root.heroMoving = false;
_root.heroBusy = false;
_root.onWork = false;
_root.bucketfull = true;
_root.waterCollecting = false;
_root.currentNode = "T24";
_root.destinationNode = "";
_root.workTile = "";
_root.changedDestinationNode = "";
_root.heroDirection = "front";
_root.heroDirection1 = "front";
_root.heroState = "noTray";
_root.Market.gotoAndStop(1);
_root.Factory.gotoAndStop(1);
_root.endBox.gotoAndStop(1);
_root.levelupMc.gotoAndStop(1);
var _local3 = 0;
while (_local3 < 7) {
var _local4 = 0;
while (_local4 < 9) {
_root.fieldArray.push(_root[(("T" + _local3) + "") + _local4]);
_root.buttonsArray.push(_root[(("T" + _local3) + "") + _local4]);
_root[(("T" + _local3) + "") + _local4].mark._visible = false;
_root[(("T" + _local3) + "") + _local4].feedCount = 0;
_root[(("T" + _local3) + "") + _local4].feed = 0;
_root[(("T" + _local3) + "") + _local4].State = "";
_root[(("T" + _local3) + "") + _local4].growTime = 0;
_local4++;
}
_local3++;
}
_local3 = 1;
while (_local3 < 6) {
var _local4 = 0;
while (_local4 < 8) {
_root.fieldTile.push(_root[(("T" + _local3) + "") + _local4]);
_local4++;
}
_local3++;
}
_root.buttonsArray.push(_root.bucket);
_root.buttonsArray.push(_root.digger);
_root.buttonsArray.push(_root.collectbox);
_root.buttonsArray.push(_root.waterTank);
_root.buttonsArray.push(_root.bundletable1);
_root.buttonsArray.push(_root.bundletable2);
_root.buttonsArray.push(_root.bundletable3);
_root.buttonsArray.push(_root.flower1bundle);
_root.buttonsArray.push(_root.flower2bundle);
_root.buttonsArray.push(_root.flower3bundle);
_root.buttonsArray.push(_root.house);
_root.buttonsArray.push(_root.factoryBtn);
_root.buttonsArray.push(_root.farmBtn);
_root.buttonsArray.push(_root.marketBtn);
_root.buttonsArray.push(_root.helpBtn);
_root.buttonsArray.push(_root.breakBtn);
_root.buttonsArray.push(_root.soundMc);
_root.unbuttonsArray = ["T00", "T01", "T02", "T03", "T04", "T05", "T06", "T07", "T08", "T60", "T61", "T62", "T63", "T67", "T08", "T18", "T28", "T38", "T48", "T58", "T68", "T78"];
_root.levelArray = ["digger", "T23", "T33", "T43", "T64", "T43", "T33", "T23", "", "bucket", "waterTank", "T43", "T33", "T23", "collectbox", "", "T43", "T33", "T23", "bundletable1", "", "flower1bundle", "house", ""];
_root.Arrows._visible = false;
_root.nextAction = false;
_root.TargetMax = 1;
_local3 = 0;
while (_local3 < _root.buttonsArray.length) {
_root.buttonsArray[_local3].enabled = false;
_local3++;
}
var _local4 = 0;
while (_local4 < _root.unbuttonsArray.length) {
_root[_root.unbuttonsArray[_local4]].enabled = false;
_local4++;
}
_root.hero.feed = 0;
if (_root.level == 1) {
_root.bucketfull = false;
_root.waterCollecting = false;
_root.bucket.gotoAndStop(1);
} else {
_root.bucket.gotoAndStop(2);
}
_root.clock.gotoAndStop(1);
_root.hero._x = T24._x - 15;
_root.hero._y = T24._y - 25;
_root.Feed1._visible = false;
_root.Feed2._visible = false;
_root.Feed3._visible = false;
if (_root.feed1 > 0) {
_root.Feed1._visible = true;
}
if (_root.feed2 > 0) {
_root.Feed2._visible = true;
}
if (_root.feed3 > 0) {
_root.Feed3._visible = true;
}
_root.bundletable1.gotoAndStop(40);
_root.bundletable2.gotoAndStop(40);
_root.bundletable3.gotoAndStop(40);
if (_root.maker1) {
_root.bundletable1.gotoAndStop(1);
}
if (_root.maker2) {
_root.bundletable2.gotoAndStop(1);
}
if (_root.maker3) {
_root.bundletable3.gotoAndStop(1);
}
_root.bucket.mark._visible = false;
_root.digger.mark._visible = false;
_root.collectbox.mark._visible = false;
_root.bundletable1.lifeBar.gotoAndStop(1);
_root.bundletable2.lifeBar.gotoAndStop(1);
_root.bundletable3.lifeBar.gotoAndStop(1);
_root.bundletable1.F1.gotoAndStop(1);
_root.bundletable2.F1.gotoAndStop(1);
_root.bundletable2.F2.gotoAndStop(1);
_root.bundletable3.F1.gotoAndStop(1);
_root.bundletable3.F2.gotoAndStop(1);
_root.bundletable3.F3.gotoAndStop(1);
_root.bundletable1.makeFlag = false;
_root.bundletable2.makeFlag = false;
_root.bundletable3.makeFlag = false;
_root.bundletable1.flrType = "";
_root.bundletable2.flrType = "";
_root.bundletable2.flr1Type = "";
_root.bundletable2.flr2Type = "";
_root.bundletable3.flrType = "";
_root.bundletable3.flr1Type = "";
_root.bundletable3.flr2Type = "";
_root.bundletable3.flr3Type = "";
_root.bundletable1.doingType = "";
_root.bundletable2.doingType = "";
_root.bundletable3.doingType = "";
_root.bundletable1.waitingTime = 0;
_root.bundletable2.waitingTime = 0;
_root.bundletable3.waitingTime = 0;
_root.bundletable1.makeTime = 0;
_root.bundletable2.makeTime = 0;
_root.bundletable3.makeTime = 0;
_root.bundletable1.flrCount = 0;
_root.bundletable2.flrCount = 0;
_root.bundletable2.flr1Count = 0;
_root.bundletable2.flr2Count = 0;
_root.bundletable3.flrCount = 0;
_root.bundletable3.flr1Count = 0;
_root.bundletable3.flr2Count = 0;
_root.bundletable3.flr3Count = 0;
_local3 = 0;
while (_local3 < _root.fieldArray.length) {
_root.fieldArray[_local3].onRelease = function () {
if (_root.Paused) {
return(undefined);
}
if (_root.soundReady) {
_root.click_snd.start();
}
if (((!_root.heroBusy) && (!_root.heroMoving)) && (!_root.onWork)) {
_root.heroBusy = true;
this.mark._visible = true;
_root.moveToNode(this._name);
} else {
_root.processQueue.push(this._name);
this.mark._visible = true;
}
};
_root.fieldArray[_local3].onRollOver = function () {
if (_root.Paused) {
return(undefined);
}
if (this._name == "T64") {
_root.Feed1._xscale = 105;
_root.Feed1._yscale = 105;
}
if (this._name == "T65") {
_root.Feed2._xscale = 105;
_root.Feed2._yscale = 105;
}
if (this._name == "T66") {
_root.Feed3._xscale = 105;
_root.Feed3._yscale = 105;
}
if (_root.level > 1) {
this.barpnt._visible = true;
}
};
_root.fieldArray[_local3].onRollOut = function () {
if (_root.Paused) {
return(undefined);
}
if (this._name == "T64") {
_root.Feed1._xscale = 100;
_root.Feed1._yscale = 100;
}
if (this._name == "T65") {
_root.Feed2._xscale = 100;
_root.Feed2._yscale = 100;
}
if (this._name == "T66") {
_root.Feed3._xscale = 100;
_root.Feed3._yscale = 100;
}
this.barpnt._visible = false;
};
_local3++;
}
_root.bucket.onRelease = function () {
if (_root.Paused) {
return(undefined);
}
if (_root.soundReady) {
_root.click_snd.start();
}
if (((!_root.heroBusy) && (!_root.heroMoving)) && (!_root.onWork)) {
_root.heroBusy = true;
this.mark._visible = true;
_root.moveToNode("T04");
} else {
_root.processQueue.push("T04");
this.mark._visible = true;
}
};
_root.digger.onRelease = function () {
if (_root.Paused) {
return(undefined);
}
if (_root.soundReady) {
_root.click_snd.start();
}
if (((!_root.heroBusy) && (!_root.heroMoving)) && (!_root.onWork)) {
_root.heroBusy = true;
this.mark._visible = true;
_root.moveToNode("T05");
} else {
_root.processQueue.push("T05");
this.mark._visible = true;
}
};
_root.collectbox.onRelease = function () {
if (_root.Paused) {
return(undefined);
}
if (_root.soundReady) {
_root.click_snd.start();
}
if (((!_root.heroBusy) && (!_root.heroMoving)) && (!_root.onWork)) {
_root.heroBusy = true;
this.mark._visible = true;
_root.moveToNode("T06");
} else {
_root.processQueue.push("T06");
this.mark._visible = true;
}
};
_root.waterTank.onRelease = function () {
if (_root.Paused) {
return(undefined);
}
if (_root.soundReady) {
_root.click_snd.start();
}
if (((!_root.heroBusy) && (!_root.heroMoving)) && (!_root.onWork)) {
_root.heroBusy = true;
_root.moveToNode("T07");
} else {
_root.processQueue.push("T07");
}
};
_root.bundletable1.onRelease = function () {
if (_root.Paused) {
return(undefined);
}
if (_root.soundReady) {
_root.click_snd.start();
}
if (((!_root.heroBusy) && (!_root.heroMoving)) && (!_root.onWork)) {
_root.heroBusy = true;
_root.moveToNode("T58");
} else {
_root.processQueue.push("T58");
}
};
_root.bundletable1.onRollOver = (_root.bundletable2.onRollOver = (_root.bundletable3.onRollOver = function () {
if (_root.Paused) {
return(undefined);
}
this._xscale = 103;
this._yscale = 103;
if (_root.makerMsg) {
_root.popup.gotoAndPlay(2);
}
}));
_root.bundletable1.onRollOut = (_root.bundletable2.onRollOut = (_root.bundletable3.onRollOut = function () {
if (_root.Paused) {
return(undefined);
}
this._xscale = 100;
this._yscale = 100;
if (_root.makerMsg) {
if (_root.popup._currentframe > 1) {
_root.popup.gotoAndStop(1);
}
}
}));
_root.bundletable2.onRelease = function () {
if (_root.Paused) {
return(undefined);
}
if (_root.soundReady) {
_root.click_snd.start();
}
if (((!_root.heroBusy) && (!_root.heroMoving)) && (!_root.onWork)) {
_root.heroBusy = true;
_root.moveToNode("T48");
} else {
_root.processQueue.push("T48");
}
};
_root.bundletable3.onRelease = function () {
if (_root.Paused) {
return(undefined);
}
if (_root.soundReady) {
_root.click_snd.start();
}
if (((!_root.heroBusy) && (!_root.heroMoving)) && (!_root.onWork)) {
_root.heroBusy = true;
_root.moveToNode("T38");
} else {
_root.processQueue.push("T38");
}
};
_root.flower1bundle.onRelease = function () {
if (_root.Paused) {
return(undefined);
}
if (_root.soundReady) {
_root.click_snd.start();
}
if (((!_root.heroBusy) && (!_root.heroMoving)) && (!_root.onWork)) {
_root.heroBusy = true;
_root.moveToNode("T68");
} else {
_root.processQueue.push("T68");
}
};
_root.flower2bundle.onRelease = function () {
if (_root.Paused) {
return(undefined);
}
if (_root.soundReady) {
_root.click_snd.start();
}
if (((!_root.heroBusy) && (!_root.heroMoving)) && (!_root.onWork)) {
_root.heroBusy = true;
_root.moveToNode("T481");
} else {
_root.processQueue.push("T481");
}
};
_root.flower3bundle.onRelease = function () {
if (_root.Paused) {
return(undefined);
}
if (_root.soundReady) {
_root.click_snd.start();
}
if (((!_root.heroBusy) && (!_root.heroMoving)) && (!_root.onWork)) {
_root.heroBusy = true;
_root.moveToNode("T381");
} else {
_root.processQueue.push("T381");
}
};
_root.house.onRelease = function () {
if (_root.Paused) {
return(undefined);
}
if (_root.soundReady) {
_root.click_snd.start();
}
if (((!_root.heroBusy) && (!_root.heroMoving)) && (!_root.onWork)) {
_root.heroBusy = true;
_root.moveToNode("T18");
} else {
_root.processQueue.push("T18");
}
};
_root.waterTank.onRollOver = (_root.flower1bundle.onRollOver = (_root.flower2bundle.onRollOver = (_root.flower3bundle.onRollOver = function () {
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
})));
_root.waterTank.onRollOut = (_root.flower1bundle.onRollOut = (_root.flower2bundle.onRollOut = (_root.flower3bundle.onRollOut = function () {
this._xscale = this._xscale - 20;
this._yscale = this._yscale - 20;
})));
}
function levelFunctions() {
_root.poseTime = _root[_root.levelArray[_root.levelLength - 1]].enabled;
if (_root.nextAction) {
trace((_root.levelLength + "//") + _root.levelArray[_root.levelLength]);
if (_root.levelLength == 8) {
_root.levelCount++;
_root.Arrows._visible = false;
if (_root.levelCount == 50) {
_root.field1Array[0].barpnt.gotoAndStop(18);
_root.levelLength++;
}
} else if (_root.levelLength == 15) {
_root.Arrows._visible = false;
if (_root.field1Array[0]._currentframe == 7) {
_root.levelLength++;
}
} else if (_root.levelLength == 20) {
_root.Arrows._visible = false;
if (_root.flower1bundle._currentframe == 7) {
_root.levelLength++;
}
} else if (_root.levelLength == 23) {
_root.levelCount++;
_root.Arrows._visible = false;
if (_root.levelCount == 10) {
if (_root.level == 1) {
_root.bundletable1.stop();
_root.newDay = true;
_root.Paused = true;
_root.hero.stop();
_root.level++;
_root.Target = 0;
_root.clock.gotoAndStop(1);
setCloseFunction();
setCloseFunction1();
if (_root.soundReady) {
_root.levelup_snd.start();
}
_root.clock.gotoAndStop(1);
_root.levelupMc.gotoAndPlay(2);
}
}
} else {
if (_root.levelLength > 0) {
_root[_root.levelArray[_root.levelLength - 1]].enabled = false;
_root.field1Array[0].barpnt._visible = false;
_root.field1Array[1].barpnt._visible = false;
_root.field1Array[2].barpnt._visible = false;
}
_root.Arrows._x = _root[_root.levelArray[_root.levelLength]]._x;
_root.Arrows._y = _root[_root.levelArray[_root.levelLength]]._y - 10;
if (_root.levelLength == 4) {
_root.Arrows._y = _root[_root.levelArray[_root.levelLength]]._y + 35;
}
if (_root.levelLength == 10) {
_root.Arrows._y = _root[_root.levelArray[_root.levelLength]]._y - 20;
}
if (_root.levelLength == 22) {
_root.Arrows._y = _root[_root.levelArray[_root.levelLength]]._y - 30;
_root.Arrows._x = _root[_root.levelArray[_root.levelLength]]._x - 50;
}
_root.Arrows._visible = true;
_root[_root.levelArray[_root.levelLength]].enabled = true;
_root.nextAction = false;
_root.levelLength++;
}
}
}
function heroMove() {
if (_root.heroMoving && (!_root.onWork)) {
if ((_root.destinationNode == "") && (_root.pathNode.length > 0)) {
_root.destinationNode = _root.pathNode.pop();
angleEngine(false);
} else if ((Math.abs(_root.hero._x - (_root[_root.destinationNode]._x - 15)) <= _root.heroSpeed) && (Math.abs(_root.hero._y - (_root[_root.destinationNode]._y - 25)) <= _root.heroSpeed)) {
_root.hero._x = _root[_root.destinationNode]._x - 15;
_root.hero._y = _root[_root.destinationNode]._y - 25;
_root.currentNode = _root.destinationNode;
if (_root.changedDestinationNode == "") {
if (_root.pathNode.length == 0) {
_root.heroMoving = false;
angleEngine(true);
_root.destinationNode = "";
} else {
_root.destinationNode = _root.pathNode.pop();
angleEngine(false);
}
} else {
_root.heroMoving = false;
_root.destinationNode = "";
moveToNode(_root.changedDestinationNode);
}
} else {
if ((_root.hero._x < (_root[_root.destinationNode]._x - 15)) && (Math.abs(_root.hero._x - (_root[_root.destinationNode]._x - 15)) >= _root.heroSpeed)) {
_root.hero._x = _root.hero._x + _root.heroSpeed;
} else if ((_root.hero._x > (_root[_root.destinationNode]._x - 15)) && (Math.abs(_root.hero._x - (_root[_root.destinationNode]._x - 15)) >= _root.heroSpeed)) {
_root.hero._x = _root.hero._x - _root.heroSpeed;
}
if ((_root.hero._y < (_root[_root.destinationNode]._y - 25)) && (Math.abs(_root.hero._y - (_root[_root.destinationNode]._y - 25)) > _root.heroSpeed)) {
_root.hero._y = _root.hero._y + _root.heroSpeed;
} else if ((_root.hero._y > (_root[_root.destinationNode]._y - 25)) && (Math.abs(_root.hero._y - (_root[_root.destinationNode]._y - 25)) > _root.heroSpeed)) {
_root.hero._y = _root.hero._y - _root.heroSpeed;
}
}
} else if (_root.heroDirection != "") {
_root.hero.stop();
_root.hero.item.gotoAndStop(_root.itemFrame);
if (_root.itemFrame != _root.preitemFrame) {
_root.hero.item.effect.gotoAndPlay(2);
_root.preitemFrame = _root.itemFrame;
}
}
}
function moveToNode(node) {
if (_root.destinationNode != "") {
_root.changedDestinationNode = node;
} else {
_root.changedDestinationNode = "";
}
if (_root.currentNode != node) {
_root.pathNode.splice(0);
if ((String(node).charAt(1) == String(_root.currentNode).charAt(1)) || (String(node).charAt(2) == String(_root.currentNode).charAt(2))) {
_root.pathNode.push(node);
} else {
_root.pathNode.push(node);
if (String(node).charAt(3) == 1) {
_root.pathNode.push((((("T" + String(node).charAt(1)) + "") + String(_root.currentNode).charAt(2)) + "") + String(_root.currentNode).charAt(3));
} else {
_root.pathNode.push((("T" + String(node).charAt(1)) + "") + String(_root.currentNode).charAt(2));
}
}
_root.heroMoving = true;
} else if (!_root.heroMoving) {
if (String(node) == "T04") {
_root.bucket.mark._visible = false;
takeBucket();
} else if (String(node) == "T05") {
_root.digger.mark._visible = false;
takeDigger();
} else if (String(node) == "T06") {
_root.collectbox.mark._visible = false;
takeBusket();
} else if (String(node) == "T07") {
collectWater();
} else if (String(node) == "T38") {
giveFlower3();
} else if (String(node) == "T381") {
buyFlower3();
} else if (String(node) == "T48") {
giveFlower2();
} else if (String(node) == "T481") {
buyFlower2();
} else if (String(node) == "T58") {
giveFlower1();
} else if (String(node) == "T68") {
buyFlower1();
} else if (String(node) == "T18") {
putHouse();
} else if (((String(node) == "T65") || (String(node) == "T66")) || (String(node) == "T64")) {
if (String(node) == "T64") {
collectFeed(2, _root.feed1);
} else if (String(node) == "T65") {
collectFeed(3, _root.feed2);
} else {
collectFeed(4, _root.feed3);
}
} else {
if (_root.heroState == "noTray") {
_root.heroDirection = "front";
} else {
_root.heroDirection = "frontItem";
_root.hero.item.gotoAndStop(_root.itemFrame);
}
_root.workTile = String(node);
_root[_root.workTile].mark._visible = false;
startonWork();
}
if (_root.processQueue.length == 0) {
_root.heroBusy = false;
} else if (_root.processQueue.length > 0) {
var _local3 = _root.processQueue[0];
_root.processQueue.splice(0, 1);
moveToNode(_local3);
}
}
}
function angleEngine(turn) {
if (!turn) {
var _local3 = _root.hero._x - _root[_root.destinationNode]._x;
var _local2 = _root.hero._y - _root[_root.destinationNode]._y;
if (Math.abs(_local3) > Math.abs(_local2)) {
if (_local3 > 0) {
if (_root.heroState == "noTray") {
_root.heroDirection = "left";
} else {
_root.heroDirection = "leftItem";
}
} else if (_root.heroState == "noTray") {
_root.heroDirection = "right";
} else {
_root.heroDirection = "rightItem";
}
} else if (_local2 > 0) {
if (_root.heroState == "noTray") {
_root.heroDirection = "back";
} else {
_root.heroDirection = "backItem";
}
} else if (_root.heroState == "noTray") {
_root.heroDirection = "front";
} else {
_root.heroDirection = "frontItem";
}
} else {
if (_root.destinationNode == "T04") {
_root.bucket.mark._visible = false;
takeBucket();
} else if (_root.destinationNode == "T05") {
_root.digger.mark._visible = false;
takeDigger();
} else if (_root.destinationNode == "T06") {
_root.collectbox.mark._visible = false;
takeBusket();
} else if (_root.destinationNode == "T07") {
collectWater();
} else if (_root.destinationNode == "T38") {
giveFlower3();
} else if (_root.destinationNode == "T381") {
buyFlower3();
} else if (_root.destinationNode == "T48") {
giveFlower2();
} else if (_root.destinationNode == "T481") {
buyFlower2();
} else if (_root.destinationNode == "T58") {
giveFlower1();
} else if (_root.destinationNode == "T68") {
buyFlower1();
} else if (_root.destinationNode == "T18") {
putHouse();
} else if (((_root.destinationNode == "T65") || (_root.destinationNode == "T66")) || (_root.destinationNode == "T64")) {
if (_root.destinationNode == "T64") {
collectFeed(2, _root.feed1);
} else if (_root.destinationNode == "T65") {
collectFeed(3, _root.feed2);
} else {
collectFeed(4, _root.feed3);
}
} else {
if (_root.heroState == "noTray") {
_root.heroDirection = "front";
} else {
_root.heroDirection = "frontItem";
_root.hero.item.gotoAndStop(_root.itemFrame);
}
_root.workTile = _root.destinationNode;
_root[_root.workTile].mark._visible = false;
startonWork();
}
if (_root.processQueue.length == 0) {
_root.heroBusy = false;
} else if (_root.processQueue.length > 0) {
var _local4 = _root.processQueue[0];
_root.processQueue.splice(0, 1);
moveToNode(_local4);
}
}
}
function takeDigger() {
_root.heroState = "oneTray";
_root.heroDirection = "frontItem";
_root.hero.gotoAndPlay("frontItem");
_root.itemFrame = 1;
_root.hero.item.gotoAndStop(_root.itemFrame);
if (_root.level == 1) {
_root.nextAction = true;
}
}
function takeBusket() {
_root.heroState = "oneTray";
_root.heroDirection = "frontItem";
_root.hero.gotoAndPlay("frontItem");
if (_root.level == 1) {
_root.nextAction = true;
}
if ((_root.busketfldFrame == 0) || (_root.busketfldFrame == 6)) {
if (_root.busketbndFrame == 0) {
_root.itemFrame = 6;
} else {
_root.itemFrame = _root.busketbndFrame;
}
} else {
_root.itemFrame = _root.busketfldFrame;
}
_root.hero.item.gotoAndStop(_root.itemFrame);
}
function takeBucket() {
_root.heroState = "oneTray";
_root.heroDirection = "frontItem";
_root.hero.gotoAndPlay("frontItem");
if (_root.level == 1) {
_root.nextAction = true;
}
if (!_root.bucketfull) {
_root.itemFrame = 5;
_root.waterUse = 0;
} else {
_root.itemFrame = 7;
}
_root.hero.item.gotoAndStop(_root.itemFrame);
}
function putHouse() {
if (_root.heroState == "noTray") {
_root.heroDirection = "right";
} else {
_root.heroDirection = "rightItem";
}
if (_root.busketbndFrame >= 15) {
if (_root.busketfldFrame == 0) {
_root.itemFrame = 6;
} else {
_root.itemFrame = _root.busketfldFrame;
}
_root.busketbndFrame = 0;
_root.totalFHead1 = _root.totalFHead1 + _root.Tkmaking1Count;
_root.HmWFCount = _root.HmWFCount + _root.TkWFCount;
_root.HmRFCount = _root.HmRFCount + _root.TkRFCount;
_root.HmYFCount = _root.HmYFCount + _root.TkYFCount;
_root.TkWFCount = 0;
_root.TkRFCount = 0;
_root.TkYFCount = 0;
_root.Tkmaking1Count = 0;
_root.totalFHead2 = _root.totalFHead2 + _root.Tkmaking2Count;
_root.HmWRFCount = _root.HmWRFCount + _root.TkWRFCount;
_root.HmWYFCount = _root.HmWYFCount + _root.TkWYFCount;
_root.HmRYFCount = _root.HmRYFCount + _root.TkRYFCount;
_root.TkWRFCount = 0;
_root.TkWYFCount = 0;
_root.TkRYFCount = 0;
_root.Tkmaking2Count = 0;
_root.totalFHead3 = _root.totalFHead3 + _root.Tkmaking3Count;
_root.HmWRYFCount = _root.HmWRYFCount + _root.TkWRYFCount;
_root.TkWRYFCount = 0;
_root.Tkmaking3Count = 0;
_root.Target++;
}
if (_root.level == 1) {
_root.levelCount = 0;
_root.nextAction = true;
}
}
function buyFlower3() {
if (_root.heroState == "noTray") {
_root.heroDirection = "right";
} else {
_root.heroDirection = "rightItem";
}
if ((_root.itemFrame >= 6) && (_root.itemFrame != 7)) {
_root.itemFrame = 21;
_root.busketbndFrame = 21;
_root.heroState = "oneTray";
_root.bundletable3.doingType = "";
_root.heroDirection = "righttItem";
_root.hero.gotoAndStop("rightItem");
_root.Tkmaking3Count = _root.Tkmaking3Count + _root.making3Count;
_root.TkWRYFCount = _root.TkWRYFCount + _root.WRYFCount;
_root.WRYFCount = 0;
_root.making3Count = 0;
_root.flower3bundle.gotoAndStop(1);
}
}
function buyFlower2() {
if (_root.heroState == "noTray") {
_root.heroDirection = "right";
} else {
_root.heroDirection = "rightItem";
}
if ((_root.itemFrame >= 6) && (_root.itemFrame != 7)) {
if (_root.bundletable2.doingType == "wr") {
_root.itemFrame = 18;
} else if (_root.bundletable2.doingType == "wy") {
_root.itemFrame = 19;
} else if (_root.bundletable2.doingType == "ry") {
_root.itemFrame = 20;
}
_root.busketbndFrame = _root.itemFrame;
_root.bundletable2.doingType = "";
_root.heroState = "oneTray";
_root.heroDirection = "righttItem";
_root.hero.gotoAndStop("rightItem");
_root.Tkmaking2Count = _root.Tkmaking2Count + _root.making2Count;
_root.TkWRFCount = _root.TkWRFCount + _root.WRFCount;
_root.TkWYFCount = _root.TkWYFCount + _root.WYFCount;
_root.TkRYFCount = _root.TkRYFCount + _root.RYFCount;
_root.WRFCount = 0;
_root.WYFCount = 0;
_root.RYFCount = 0;
_root.making2Count = 0;
_root.flower2bundle.gotoAndStop(1);
}
}
function buyFlower1() {
if (_root.heroState == "noTray") {
_root.heroDirection = "right";
} else {
_root.heroDirection = "rightItem";
}
if (_root.level == 1) {
_root.nextAction = true;
}
if ((_root.itemFrame >= 6) && (_root.itemFrame != 7)) {
if (_root.bundletable1.doingType == "white") {
_root.itemFrame = 15;
} else if (_root.bundletable1.doingType == "red") {
_root.itemFrame = 16;
} else if (_root.bundletable1.doingType == "yellow") {
_root.itemFrame = 17;
}
_root.busketbndFrame = _root.itemFrame;
_root.bundletable1.doingType = "";
_root.heroState = "oneTray";
_root.heroDirection = "righttItem";
_root.hero.gotoAndStop("rightItem");
_root.Tkmaking1Count = _root.Tkmaking1Count + _root.making1Count;
_root.TkWFCount = _root.TkWFCount + _root.WFCount;
_root.TkRFCount = _root.TkRFCount + _root.RFCount;
_root.TkYFCount = _root.TkYFCount + _root.YFCount;
_root.WFCount = 0;
_root.RFCount = 0;
_root.YFCount = 0;
_root.making1Count = 0;
_root.flower1bundle.gotoAndStop(1);
}
}
function giveFlower3() {
if (_root.bundletable3._currentframe < 30) {
if (_root.heroState == "noTray") {
_root.heroDirection = "right";
} else {
_root.heroDirection = "rightItem";
}
if ((((_root.bundletable3.flrCount < 9) && (_root.busketfldFrame > 6)) && (_root.itemFrame >= 6)) && (_root.itemFrame != 7)) {
if (_root.bundletable3._currentframe == 1) {
_root.bundletable3.flrCount = 0;
_root.bundletable3.flr1Count = 0;
_root.bundletable3.flr2Count = 0;
_root.bundletable3.flr3Count = 0;
_root.bundletable3.gotoAndStop(6);
if (_root.bundletable3.flr1Count < 3) {
if (_root.WFCollect > 0) {
while ((_root.bundletable3.flr1Count < 3) && (_root.WFCollect > 0)) {
_root.bundletable3.flr1Count++;
_root.bundletable3.flrCount++;
_root.WFCollect--;
}
_root.bundletable3.F1.gotoAndStop(2);
resetTable3("white", 1);
} else if (_root.RFCollect > 0) {
while ((_root.bundletable3.flr1Count < 3) && (_root.RFCollect > 0)) {
_root.bundletable3.flr1Count++;
_root.bundletable3.flrCount++;
_root.RFCollect--;
}
_root.bundletable3.F1.gotoAndStop(3);
resetTable3("red", 1);
} else if (_root.YFCollect > 0) {
while ((_root.bundletable3.flr1Count < 3) && (_root.YFCollect > 0)) {
_root.bundletable3.flr1Count++;
_root.bundletable3.flrCount++;
_root.YFCollect--;
}
_root.bundletable3.F1.gotoAndStop(4);
resetTable3("yellow", 1);
}
resetBusket();
}
if (_root.bundletable3.flr2Count < 3) {
if (_root.WFCollect > 0) {
while ((_root.bundletable3.flr2Count < 3) && (_root.WFCollect > 0)) {
_root.bundletable3.flr2Count++;
_root.bundletable3.flrCount++;
_root.WFCollect--;
}
_root.bundletable3.F2.gotoAndStop(2);
resetTable3("white", 2);
} else if (_root.RFCollect > 0) {
while ((_root.bundletable3.flr2Count < 3) && (_root.RFCollect > 0)) {
_root.bundletable3.flr2Count++;
_root.bundletable3.flrCount++;
_root.RFCollect--;
}
_root.bundletable3.F2.gotoAndStop(3);
resetTable3("red", 2);
} else if (_root.YFCollect > 0) {
while ((_root.bundletable3.flr2Count < 3) && (_root.YFCollect > 0)) {
_root.bundletable3.flr2Count++;
_root.bundletable3.flrCount++;
_root.YFCollect--;
}
_root.bundletable3.F2.gotoAndStop(4);
resetTable3("yellow", 2);
}
resetBusket();
}
if (_root.bundletable3.flr3Count < 3) {
if (_root.WFCollect > 0) {
while ((_root.bundletable3.flr3Count < 3) && (_root.WFCollect > 0)) {
_root.bundletable3.flr3Count++;
_root.bundletable3.flrCount++;
_root.WFCollect--;
}
_root.bundletable3.F3.gotoAndStop(2);
resetTable3("white", 3);
} else if (_root.RFCollect > 0) {
while ((_root.bundletable3.flr3Count < 3) && (_root.RFCollect > 0)) {
_root.bundletable3.flr3Count++;
_root.bundletable3.flrCount++;
_root.RFCollect--;
}
_root.bundletable3.F3.gotoAndStop(3);
resetTable3("red", 3);
} else if (_root.YFCollect > 0) {
while ((_root.bundletable3.flr3Count < 3) && (_root.YFCollect > 0)) {
_root.bundletable3.flr3Count++;
_root.bundletable3.flrCount++;
_root.YFCollect--;
}
_root.bundletable3.F3.gotoAndStop(4);
resetTable3("yellow", 3);
}
resetBusket();
}
} else if (_root.bundletable3._currentframe == 6) {
if (_root.bundletable3.flr1Count < 3) {
if ((_root.WFCollect > 0) && (_root.bundletable3.flr1Type == "white")) {
while ((_root.bundletable3.flr1Count < 3) && (_root.WFCollect > 0)) {
_root.bundletable3.flrCount++;
_root.bundletable3.flr1Count++;
_root.WFCollect--;
}
resetTable3("white", 1);
} else if ((_root.RFCollect > 0) && (_root.bundletable3.flr1Type == "red")) {
while ((_root.bundletable3.flr1Count < 3) && (_root.RFCollect > 0)) {
_root.bundletable3.flrCount++;
_root.bundletable3.flr1Count++;
_root.RFCollect--;
}
resetTable3("red", 1);
} else if ((_root.YFCollect > 0) && (_root.bundletable3.flr1Type == "yellow")) {
while ((_root.bundletable3.flr1Count < 3) && (_root.YFCollect > 0)) {
_root.bundletable3.flrCount++;
_root.bundletable3.flr1Count++;
_root.YFCollect--;
}
resetTable3("yellow", 1);
}
resetBusket();
}
if (_root.bundletable3.flr2Count < 3) {
if ((((_root.WFCollect > 0) && (_root.bundletable3.flr1Type != "white")) && (_root.bundletable3.flr3Type != "white")) && ((_root.bundletable3.flr2Type == "white") || (_root.bundletable3.flr2Type == ""))) {
while ((_root.bundletable3.flr2Count < 3) && (_root.WFCollect > 0)) {
_root.bundletable3.flrCount++;
_root.bundletable3.flr2Count++;
_root.WFCollect--;
}
_root.bundletable3.F2.gotoAndStop(2);
resetTable3("white", 2);
} else if ((((_root.RFCollect > 0) && (_root.bundletable3.flr1Type != "red")) && (_root.bundletable3.flr3Type != "red")) && ((_root.bundletable3.flr2Type == "red") || (_root.bundletable3.flr2Type == ""))) {
while ((_root.bundletable3.flr2Count < 3) && (_root.RFCollect > 0)) {
_root.bundletable3.flrCount++;
_root.bundletable3.flr2Count++;
_root.RFCollect--;
}
_root.bundletable3.F2.gotoAndStop(3);
resetTable3("red", 2);
} else if ((((_root.YFCollect > 0) && (_root.bundletable3.flr1Type != "yellow")) && (_root.bundletable3.flr3Type != "yellow")) && ((_root.bundletable3.flr2Type == "yellow") || (_root.bundletable3.flr2Type == ""))) {
while ((_root.bundletable3.flr2Count < 3) && (_root.YFCollect > 0)) {
_root.bundletable3.flrCount++;
_root.bundletable3.flr2Count++;
_root.YFCollect--;
}
_root.bundletable3.F2.gotoAndStop(4);
resetTable3("yellow", 2);
}
resetBusket();
}
if (_root.bundletable3.flr3Count < 3) {
if ((((_root.WFCollect > 0) && (_root.bundletable3.flr1Type != "white")) && (_root.bundletable3.flr2Type != "white")) && ((_root.bundletable3.flr3Type == "white") || (_root.bundletable3.flr3Type == ""))) {
while ((_root.bundletable3.flr3Count < 3) && (_root.WFCollect > 0)) {
_root.bundletable3.flrCount++;
_root.bundletable3.flr3Count++;
_root.WFCollect--;
}
_root.bundletable3.F3.gotoAndStop(2);
resetTable3("white", 3);
} else if ((((_root.RFCollect > 0) && (_root.bundletable3.flr1Type != "red")) && (_root.bundletable3.flr2Type != "red")) && ((_root.bundletable3.flr3Type == "red") || (_root.bundletable3.flr3Type == ""))) {
while ((_root.bundletable3.flr3Count < 3) && (_root.RFCollect > 0)) {
_root.bundletable3.flrCount++;
_root.bundletable3.flr3Count++;
_root.RFCollect--;
}
_root.bundletable3.F3.gotoAndStop(3);
resetTable3("red", 3);
} else if ((((_root.YFCollect > 0) && (_root.bundletable3.flr1Type != "yellow")) && (_root.bundletable3.flr2Type != "yellow")) && ((_root.bundletable3.flr3Type == "yellow") || (_root.bundletable3.flr3Type == ""))) {
while ((_root.bundletable3.flr3Count < 3) && (_root.YFCollect > 0)) {
_root.bundletable3.flrCount++;
_root.bundletable3.flr3Count++;
_root.YFCollect--;
}
_root.bundletable3.F3.gotoAndStop(4);
resetTable3("yellow", 3);
}
resetBusket();
}
}
}
}
}
function giveFlower2() {
if (_root.bundletable2._currentframe < 30) {
if (_root.heroState == "noTray") {
_root.heroDirection = "right";
} else {
_root.heroDirection = "rightItem";
}
if ((((_root.bundletable2.flrCount < 6) && (_root.busketfldFrame > 6)) && (_root.itemFrame >= 6)) && (_root.itemFrame != 7)) {
if (_root.bundletable2._currentframe == 1) {
_root.bundletable2.flrCount = 0;
_root.bundletable2.flr1Count = 0;
_root.bundletable2.flr2Count = 0;
_root.bundletable2.gotoAndStop(6);
if (_root.bundletable2.flr1Count < 3) {
if (_root.WFCollect > 0) {
while ((_root.bundletable2.flr1Count < 3) && (_root.WFCollect > 0)) {
_root.bundletable2.flr1Count++;
_root.bundletable2.flrCount++;
_root.WFCollect--;
}
_root.bundletable2.F1.gotoAndStop(2);
resetTable2("white", 1);
} else if (_root.RFCollect > 0) {
while ((_root.bundletable2.flr1Count < 3) && (_root.RFCollect > 0)) {
_root.bundletable2.flr1Count++;
_root.bundletable2.flrCount++;
_root.RFCollect--;
}
_root.bundletable2.F1.gotoAndStop(3);
resetTable2("red", 1);
} else if (_root.YFCollect > 0) {
while ((_root.bundletable2.flr1Count < 3) && (_root.YFCollect > 0)) {
_root.bundletable2.flr1Count++;
_root.bundletable2.flrCount++;
_root.YFCollect--;
}
_root.bundletable2.F1.gotoAndStop(4);
resetTable2("yellow", 1);
}
resetBusket();
}
if (_root.bundletable2.flr2Count < 3) {
if (_root.WFCollect > 0) {
while ((_root.bundletable2.flr2Count < 3) && (_root.WFCollect > 0)) {
_root.bundletable2.flr2Count++;
_root.bundletable2.flrCount++;
_root.WFCollect--;
}
_root.bundletable2.F2.gotoAndStop(2);
resetTable2("white", 2);
} else if (_root.RFCollect > 0) {
while ((_root.bundletable2.flr2Count < 3) && (_root.RFCollect > 0)) {
_root.bundletable2.flr2Count++;
_root.bundletable2.flrCount++;
_root.RFCollect--;
}
_root.bundletable2.F2.gotoAndStop(3);
resetTable2("red", 2);
} else if (_root.YFCollect > 0) {
while ((_root.bundletable2.flr2Count < 3) && (_root.YFCollect > 0)) {
_root.bundletable2.flr2Count++;
_root.bundletable2.flrCount++;
_root.YFCollect--;
}
_root.bundletable2.F2.gotoAndStop(4);
resetTable2("yellow", 2);
}
resetBusket();
}
} else if (_root.bundletable2._currentframe == 6) {
if (_root.bundletable2.flr1Count < 3) {
if ((_root.WFCollect > 0) && (_root.bundletable2.flr1Type == "white")) {
while ((_root.bundletable2.flr1Count < 3) && (_root.WFCollect > 0)) {
_root.bundletable2.flrCount++;
_root.bundletable2.flr1Count++;
_root.WFCollect--;
}
resetTable2("white", 1);
} else if ((_root.RFCollect > 0) && (_root.bundletable2.flr1Type == "red")) {
while ((_root.bundletable2.flr1Count < 3) && (_root.RFCollect > 0)) {
_root.bundletable2.flrCount++;
_root.bundletable2.flr1Count++;
_root.RFCollect--;
}
resetTable2("red", 1);
} else if ((_root.YFCollect > 0) && (_root.bundletable2.flr1Type == "yellow")) {
while ((_root.bundletable2.flr1Count < 3) && (_root.YFCollect > 0)) {
_root.bundletable2.flrCount++;
_root.bundletable2.flr1Count++;
_root.YFCollect--;
}
resetTable2("yellow", 1);
}
resetBusket();
}
if (_root.bundletable2.flr2Count < 3) {
if (((_root.WFCollect > 0) && (_root.bundletable2.flr1Type != "white")) && ((_root.bundletable2.flr2Type == "white") || (_root.bundletable2.flr2Type == ""))) {
while ((_root.bundletable2.flr2Count < 3) && (_root.WFCollect > 0)) {
_root.bundletable2.flrCount++;
_root.bundletable2.flr2Count++;
_root.WFCollect--;
}
_root.bundletable2.F2.gotoAndStop(2);
resetTable2("white", 2);
} else if (((_root.RFCollect > 0) && (_root.bundletable2.flr1Type != "red")) && ((_root.bundletable2.flr2Type == "red") || (_root.bundletable2.flr2Type == ""))) {
while ((_root.bundletable2.flr2Count < 3) && (_root.RFCollect > 0)) {
_root.bundletable2.flrCount++;
_root.bundletable2.flr2Count++;
_root.RFCollect--;
}
_root.bundletable2.F2.gotoAndStop(3);
resetTable2("red", 2);
} else if (((_root.YFCollect > 0) && (_root.bundletable2.flr1Type != "yellow")) && ((_root.bundletable2.flr2Type == "yellow") || (_root.bundletable2.flr2Type == ""))) {
while ((_root.bundletable2.flr2Count < 3) && (_root.YFCollect > 0)) {
_root.bundletable2.flrCount++;
_root.bundletable2.flr2Count++;
_root.YFCollect--;
}
_root.bundletable2.F2.gotoAndStop(4);
resetTable2("yellow", 2);
}
}
resetBusket();
}
}
}
}
function giveFlower1() {
if (_root.bundletable1._currentframe < 30) {
if (_root.heroState == "noTray") {
_root.heroDirection = "right";
} else {
_root.heroDirection = "rightItem";
}
if (_root.level == 1) {
_root.Arrows._visible = false;
}
if ((((_root.bundletable1.flrCount < 3) && (_root.busketfldFrame > 6)) && (_root.itemFrame >= 6)) && (_root.itemFrame != 7)) {
if (_root.bundletable1._currentframe == 1) {
_root.bundletable1.flrCount = 0;
_root.bundletable1.gotoAndStop(6);
if (_root.WFCollect > 0) {
while ((_root.bundletable1.flrCount < 3) && (_root.WFCollect > 0)) {
_root.bundletable1.flrCount++;
_root.WFCollect--;
}
_root.bundletable1.F1.gotoAndStop(2);
resetTable1("white");
} else if (_root.RFCollect > 0) {
while ((_root.bundletable1.flrCount < 3) && (_root.RFCollect > 0)) {
_root.bundletable1.flrCount++;
_root.RFCollect--;
}
_root.bundletable1.F1.gotoAndStop(3);
resetTable1("red");
} else if (_root.YFCollect > 0) {
while ((_root.bundletable1.flrCount < 3) && (_root.YFCollect > 0)) {
_root.bundletable1.flrCount++;
_root.YFCollect--;
}
_root.bundletable1.F1.gotoAndStop(4);
resetTable1("yellow");
}
} else if (_root.bundletable1._currentframe == 6) {
if ((_root.WFCollect > 0) && (_root.bundletable1.flrType == "white")) {
while ((_root.bundletable1.flrCount < 3) && (_root.WFCollect > 0)) {
_root.bundletable1.flrCount++;
_root.WFCollect--;
}
resetTable1("white");
} else if ((_root.RFCollect > 0) && (_root.bundletable1.flrType == "red")) {
while ((_root.bundletable1.flrCount < 3) && (_root.RFCollect > 0)) {
_root.bundletable1.flrCount++;
_root.RFCollect--;
}
resetTable1("red");
} else if ((_root.YFCollect > 0) && (_root.bundletable1.flrType == "yellow")) {
while ((_root.bundletable1.flrCount < 3) && (_root.YFCollect > 0)) {
_root.bundletable1.flrCount++;
_root.YFCollect--;
}
resetTable1("yellow");
}
}
resetBusket();
}
}
}
function resetTable3(flrtype, no) {
if (no == 1) {
_root.bundletable3.flr1Type = flrtype;
if ((_root.bundletable3.flr2Count == 0) && (_root.bundletable3.flr3Count == 0)) {
if (flrtype == "white") {
_root.bundletable3.flower.gotoAndStop(9);
} else if (flrtype == "red") {
_root.bundletable3.flower.gotoAndStop(10);
} else if (flrtype == "yellow") {
_root.bundletable3.flower.gotoAndStop(11);
}
} else if ((_root.bundletable3.flr2Count == 0) && (_root.bundletable3.flr3Count > 0)) {
if (flrtype == "white") {
if (_root.bundletable3.flr3Type == "red") {
_root.bundletable3.flower.gotoAndStop(5);
} else if (_root.bundletable3.flr3Type == "yellow") {
_root.bundletable3.flower.gotoAndStop(6);
}
} else if (flrtype == "red") {
if (_root.bundletable3.flr3Type == "white") {
_root.bundletable3.flower.gotoAndStop(5);
} else if (_root.bundletable3.flr3Type == "yellow") {
_root.bundletable3.flower.gotoAndStop(7);
}
} else if (flrtype == "yellow") {
if (_root.bundletable3.flr3Type == "white") {
_root.bundletable3.flower.gotoAndStop(6);
} else if (_root.bundletable3.flr3Type == "red") {
_root.bundletable3.flower.gotoAndStop(7);
}
}
} else if ((_root.bundletable3.flr2Count > 0) && (_root.bundletable3.flr3Count == 0)) {
if (flrtype == "white") {
if (_root.bundletable3.flr2Type == "red") {
_root.bundletable3.flower.gotoAndStop(5);
} else if (_root.bundletable3.flr2Type == "yellow") {
_root.bundletable3.flower.gotoAndStop(6);
}
} else if (flrtype == "red") {
if (_root.bundletable3.flr2Type == "white") {
_root.bundletable3.flower.gotoAndStop(5);
} else if (_root.bundletable3.flr2Type == "yellow") {
_root.bundletable3.flower.gotoAndStop(7);
}
} else if (flrtype == "yellow") {
if (_root.bundletable3.flr2Type == "white") {
_root.bundletable3.flower.gotoAndStop(6);
} else if (_root.bundletable3.flr2Type == "red") {
_root.bundletable3.flower.gotoAndStop(7);
}
}
} else {
_root.bundletable3.flower.gotoAndStop(2);
}
}
if (no == 2) {
_root.bundletable3.flr2Type = flrtype;
if ((_root.bundletable3.flr1Count > 0) && (_root.bundletable3.flr3Count == 0)) {
if (flrtype == "white") {
if (_root.bundletable3.flr1Type == "red") {
_root.bundletable3.flower.gotoAndStop(5);
} else if (_root.bundletable3.flr1Type == "yellow") {
_root.bundletable3.flower.gotoAndStop(6);
}
} else if (flrtype == "red") {
if (_root.bundletable3.flr1Type == "white") {
_root.bundletable3.flower.gotoAndStop(5);
} else if (_root.bundletable3.flr1Type == "yellow") {
_root.bundletable3.flower.gotoAndStop(7);
}
} else if (flrtype == "yellow") {
if (_root.bundletable3.flr1Type == "white") {
_root.bundletable3.flower.gotoAndStop(6);
} else if (_root.bundletable3.flr1Type == "red") {
_root.bundletable3.flower.gotoAndStop(7);
}
}
} else {
_root.bundletable3.flower.gotoAndStop(2);
}
}
if (no == 3) {
_root.bundletable3.flr3Type = flrtype;
_root.bundletable3.flower.gotoAndStop(2);
}
if (_root.bundletable3.flrCount == 9) {
_root.bundletable3.gotoAndPlay("fMaking");
_root.bundletable3.flrType = "wry";
_root.bundletable3.flower.gotoAndStop(1);
_root.bundletable3.enabled = false;
_root.bundletable3.makeFlag = true;
_root.bundletable3.makeTime = 200;
}
}
function resetTable2(flrtype, no) {
if (no == 1) {
_root.bundletable2.flr1Type = flrtype;
if (_root.bundletable2.flr2Count == 0) {
if (flrtype == "white") {
_root.bundletable2.Fl.gotoAndStop(2);
_root.bundletable2.flower.gotoAndStop(13);
} else if (flrtype == "red") {
_root.bundletable2.flower.gotoAndStop(14);
} else if (flrtype == "yellow") {
_root.bundletable2.flower.gotoAndStop(15);
}
} else if (flrtype == "white") {
if (_root.bundletable2.flr2Type == "red") {
_root.bundletable2.flower.gotoAndStop(5);
} else {
_root.bundletable2.flower.gotoAndStop(6);
}
} else if (flrtype == "red") {
if (_root.bundletable2.flr2Type == "white") {
_root.bundletable2.flower.gotoAndStop(5);
} else {
_root.bundletable2.flower.gotoAndStop(7);
}
} else if (flrtype == "yellow") {
if (_root.bundletable2.flr2Type == "white") {
_root.bundletable2.flower.gotoAndStop(6);
} else {
_root.bundletable2.flower.gotoAndStop(7);
}
}
}
if (no == 2) {
_root.bundletable2.flr2Type = flrtype;
if (flrtype == "white") {
if (_root.bundletable2.flr1Type == "red") {
_root.bundletable2.flower.gotoAndStop(5);
} else {
_root.bundletable2.flower.gotoAndStop(6);
}
} else if (flrtype == "red") {
if (_root.bundletable2.flr1Type == "white") {
_root.bundletable2.flower.gotoAndStop(5);
} else {
_root.bundletable2.flower.gotoAndStop(7);
}
} else if (flrtype == "yellow") {
if (_root.bundletable2.flr1Type == "white") {
_root.bundletable2.flower.gotoAndStop(6);
} else {
_root.bundletable2.flower.gotoAndStop(7);
}
}
}
if (_root.bundletable2.flrCount == 6) {
_root.bundletable2.gotoAndPlay("fMaking");
if (((_root.bundletable2.flr1Type == "white") && (_root.bundletable2.flr2Type == "red")) || ((_root.bundletable2.flr1Type == "red") && (_root.bundletable2.flr2Type == "white"))) {
_root.bundletable2.flrType = "wr";
_root.bundletable2.flower.gotoAndStop(1);
} else if (((_root.bundletable2.flr1Type == "white") && (_root.bundletable2.flr2Type == "yellow")) || ((_root.bundletable2.flr1Type == "yellow") && (_root.bundletable2.flr2Type == "white"))) {
_root.bundletable2.flrType = "wy";
_root.bundletable2.flower.gotoAndStop(2);
} else if (((_root.bundletable2.flr1Type == "yellow") && (_root.bundletable2.flr2Type == "red")) || ((_root.bundletable2.flr1Type == "red") && (_root.bundletable2.flr2Type == "yellow"))) {
_root.bundletable2.flrType = "ry";
_root.bundletable2.flower.gotoAndStop(3);
}
_root.bundletable2.enabled = false;
_root.bundletable2.makeFlag = true;
_root.bundletable2.makeTime = 170;
}
}
function resetTable1(flrtype) {
_root.bundletable1.flrType = flrtype;
if (_root.bundletable1.flrCount == 1) {
if (flrtype == "white") {
_root.bundletable1.flower.gotoAndStop(9);
} else if (flrtype == "red") {
_root.bundletable1.flower.gotoAndStop(10);
} else if (flrtype == "yellow") {
_root.bundletable1.flower.gotoAndStop(11);
}
} else if (_root.bundletable1.flrCount == 2) {
if (flrtype == "white") {
_root.bundletable1.flower.gotoAndStop(5);
} else if (flrtype == "red") {
_root.bundletable1.flower.gotoAndStop(6);
} else if (flrtype == "yellow") {
_root.bundletable1.flower.gotoAndStop(7);
}
} else {
_root.bundletable1.gotoAndPlay("fMaking");
if (flrtype == "white") {
_root.bundletable1.flower.gotoAndStop(1);
} else if (flrtype == "red") {
_root.bundletable1.flower.gotoAndStop(2);
} else if (flrtype == "yellow") {
_root.bundletable1.flower.gotoAndStop(3);
}
_root.bundletable1.enabled = false;
_root.bundletable1.makeFlag = true;
_root.bundletable1.makeTime = 150;
}
}
function resetBusket() {
if (((_root.WFCollect == 0) && (_root.RFCollect == 0)) && (_root.YFCollect == 0)) {
_root.itemFrame = 6;
} else if (((_root.WFCollect > 0) && (_root.RFCollect == 0)) && (_root.YFCollect == 0)) {
_root.itemFrame = 8;
} else if (((_root.WFCollect == 0) && (_root.RFCollect > 0)) && (_root.YFCollect == 0)) {
_root.itemFrame = 9;
} else if (((_root.WFCollect == 0) && (_root.RFCollect == 0)) && (_root.YFCollect > 0)) {
_root.itemFrame = 10;
} else if (((_root.WFCollect > 0) && (_root.RFCollect > 0)) && (_root.YFCollect > 0)) {
_root.itemFrame = 11;
} else if (((_root.WFCollect > 0) && (_root.RFCollect == 0)) && (_root.YFCollect > 0)) {
_root.itemFrame = 12;
} else if (((_root.WFCollect == 0) && (_root.RFCollect > 0)) && (_root.YFCollect > 0)) {
_root.itemFrame = 13;
} else if (((_root.WFCollect > 0) && (_root.RFCollect > 0)) && (_root.YFCollect > 0)) {
_root.itemFrame = 14;
}
_root.busketfldFrame = _root.itemFrame;
if (_root.itemFrame == 6) {
if (_root.busketbndFrame > 0) {
_root.itemFrame = _root.busketbndFrame;
}
}
_root.heroState = "oneTray";
_root.heroDirection = "rightItem";
_root.hero.gotoAndPlay("rightItem");
_root.hero.item.gotoAndStop(_root.itemFrame);
}
function collectFeed(frm, fcnt) {
if (fcnt > 0) {
_root.hero.feed = fcnt;
_root.heroState = "oneTray";
_root.heroDirection = "frontItem";
_root.hero.gotoAndPlay("frontItem");
_root.itemFrame = frm;
_root.hero.item.gotoAndStop(_root.itemFrame);
if (_root.level == 1) {
_root.nextAction = true;
}
}
}
function collectWater() {
if (_root.heroState == "noTray") {
_root.heroDirection = "front";
} else {
_root.heroDirection = "frontItem";
}
if (_root.level == 1) {
_root.Arrows._visible = false;
_root.waterTank.enabled = false;
}
if ((_root.itemFrame == 5) || (_root.itemFrame == 7)) {
if (_root.soundReady) {
_root.water_snd.start();
}
_root.waterCollecting = true;
_root.onWork = true;
_root.workTime = 10;
_root.heroDirection = "";
_root.hero.gotoAndStop("back");
_root.waterTank.gotoAndPlay("waterFill");
}
}
function startonWork() {
if ((_root[_root.workTile]._currentframe != 10) && (_root.workTile != "")) {
if ((_root.itemFrame == 1) && (_root[_root.workTile]._currentframe == 1)) {
if (_root.soundReady) {
_root.digging_snd.start();
}
if (_root.level == 1) {
_root.Arrows._visible = false;
_root[_root.workTile].enabled = false;
}
_root.onWork = true;
_root.workTime = 10;
_root.heroDirection = "";
_root.hero.gotoAndPlay("digging");
} else if ((((_root.itemFrame == 2) || (_root.itemFrame == 3)) || (_root.itemFrame == 4)) && (_root[_root.workTile]._currentframe == 3)) {
if (_root.hero.feed > 0) {
if (_root.soundReady) {
_root.plant_snd.start();
}
if (_root.level == 1) {
_root.Arrows._visible = false;
_root[_root.workTile].enabled = false;
}
_root[_root.workTile].feed = _root.itemFrame;
_root.onWork = true;
_root.workTime = 13;
_root.heroDirection = "";
_root.hero.gotoAndPlay("foodserving");
}
} else if (((_root.itemFrame == 7) && (_root[_root.workTile]._currentframe >= 3)) && (String(_root[_root.workTile]._name).charAt(0) == "T")) {
_root.onWork = true;
if (_root.soundReady) {
_root.water_snd.start();
}
_root.workTime = 6;
_root.heroDirection = "";
if (_root.level == 1) {
_root.Arrows._visible = false;
_root[_root.levelArray[_root.levelLength]].barpnt.gotoAndStop(18);
_root[_root.levelArray[_root.levelLength]].waterTap.gotoAndPlay(2);
_root[_root.workTile].enabled = false;
}
_root.hero.gotoAndPlay("watering");
} else if (((_root.itemFrame == 6) || (_root.itemFrame >= 15)) && ((((_root[_root.workTile]._currentframe == 7) && (_root.WFCollect < 3)) || ((_root[_root.workTile]._currentframe == 13) && (_root.RFCollect < 3))) || ((_root[_root.workTile]._currentframe == 19) && (_root.YFCollect < 3)))) {
if (_root[_root.workTile]._currentframe == 7) {
if (_root.level == 1) {
_root.nextAction = true;
}
_root[_root.workTile].gotoAndStop(5);
_root.WFCollect++;
_root.itemFrame = 8;
} else if (_root[_root.workTile]._currentframe == 13) {
_root[_root.workTile].gotoAndStop(11);
_root.RFCollect++;
_root.itemFrame = 9;
} else if (_root[_root.workTile]._currentframe == 19) {
_root[_root.workTile].gotoAndStop(17);
_root.YFCollect++;
_root.itemFrame = 10;
}
_root.busketfldFrame = _root.itemFrame;
_root[_root.workTile].State = "growth1";
_root[_root.workTile].growTime = 0;
_root[_root.workTile].feedCount++;
} else if ((((((_root.itemFrame == 8) || (_root.itemFrame >= 15)) && (_root[_root.workTile]._currentframe == 7)) && (_root.WFCollect < 3)) || (((_root.itemFrame == 8) && (_root[_root.workTile]._currentframe == 13)) && (_root.RFCollect < 3))) || (((_root.itemFrame == 8) && (_root[_root.workTile]._currentframe == 19)) && (_root.YFCollect < 3))) {
if ((_root[_root.workTile]._currentframe == 7) && (_root.WFCollect < 3)) {
if (_root.level == 1) {
_root.nextAction = true;
}
_root[_root.workTile].gotoAndStop(5);
_root.itemFrame = 8;
_root.WFCollect++;
} else if ((_root[_root.workTile]._currentframe == 13) && (_root.RFCollect < 3)) {
_root[_root.workTile].gotoAndStop(11);
_root.itemFrame = 11;
_root.RFCollect++;
} else if ((_root[_root.workTile]._currentframe == 19) && (_root.YFCollect < 3)) {
_root[_root.workTile].gotoAndStop(17);
_root.itemFrame = 12;
_root.YFCollect++;
}
_root.busketfldFrame = _root.itemFrame;
_root[_root.workTile].State = "growth1";
_root[_root.workTile].growTime = 0;
_root[_root.workTile].feedCount++;
} else if ((((((_root.itemFrame == 9) || (_root.itemFrame >= 15)) && (_root[_root.workTile]._currentframe == 7)) && (_root.WFCollect < 3)) || (((_root.itemFrame == 9) && (_root[_root.workTile]._currentframe == 13)) && (_root.RFCollect < 3))) || (((_root.itemFrame == 9) && (_root[_root.workTile]._currentframe == 19)) && (_root.YFCollect < 3))) {
if ((_root[_root.workTile]._currentframe == 7) && (_root.WFCollect < 3)) {
_root[_root.workTile].gotoAndStop(5);
_root.itemFrame = 11;
_root.WFCollect++;
} else if ((_root[_root.workTile]._currentframe == 13) && (_root.RFCollect < 3)) {
_root[_root.workTile].gotoAndStop(11);
_root.itemFrame = 9;
_root.RFCollect++;
} else if ((_root[_root.workTile]._currentframe == 19) && (_root.YFCollect < 3)) {
_root[_root.workTile].gotoAndStop(17);
_root.itemFrame = 13;
_root.YFCollect++;
}
_root.busketfldFrame = _root.itemFrame;
_root[_root.workTile].State = "growth1";
_root[_root.workTile].growTime = 0;
_root[_root.workTile].feedCount++;
} else if ((((((_root.itemFrame == 10) || (_root.itemFrame >= 15)) && (_root[_root.workTile]._currentframe == 7)) && (_root.WFCollect < 3)) || (((_root.itemFrame == 10) && (_root[_root.workTile]._currentframe == 13)) && (_root.RFCollect < 3))) || (((_root.itemFrame == 10) && (_root[_root.workTile]._currentframe == 19)) && (_root.YFCollect < 3))) {
if ((_root[_root.workTile]._currentframe == 7) && (_root.WFCollect < 3)) {
_root[_root.workTile].gotoAndStop(5);
_root.itemFrame = 12;
_root.WFCollect++;
} else if ((_root[_root.workTile]._currentframe == 13) && (_root.RFCollect < 3)) {
_root[_root.workTile].gotoAndStop(11);
_root.itemFrame = 13;
_root.RFCollect++;
} else if ((_root[_root.workTile]._currentframe == 19) && (_root.YFCollect < 3)) {
_root[_root.workTile].gotoAndStop(17);
_root.itemFrame = 10;
_root.YFCollect++;
}
_root.busketfldFrame = _root.itemFrame;
_root[_root.workTile].State = "growth1";
_root[_root.workTile].growTime = 0;
_root[_root.workTile].feedCount++;
} else if ((((((_root.itemFrame == 11) || (_root.itemFrame >= 15)) && (_root[_root.workTile]._currentframe == 7)) && (_root.WFCollect < 3)) || (((_root.itemFrame == 11) && (_root[_root.workTile]._currentframe == 13)) && (_root.RFCollect < 3))) || (((_root.itemFrame == 11) && (_root[_root.workTile]._currentframe == 19)) && (_root.YFCollect < 3))) {
if ((_root[_root.workTile]._currentframe == 7) && (_root.WFCollect < 3)) {
_root[_root.workTile].gotoAndStop(5);
_root.itemFrame = 11;
_root.WFCollect++;
} else if ((_root[_root.workTile]._currentframe == 13) && (_root.RFCollect < 3)) {
_root[_root.workTile].gotoAndStop(11);
_root.itemFrame = 11;
_root.RFCollect++;
} else if ((_root[_root.workTile]._currentframe == 19) && (_root.YFCollect < 3)) {
_root[_root.workTile].gotoAndStop(17);
_root.itemFrame = 14;
_root.YFCollect++;
}
_root.busketfldFrame = _root.itemFrame;
_root[_root.workTile].State = "growth1";
_root[_root.workTile].growTime = 0;
_root[_root.workTile].feedCount++;
} else if ((((((_root.itemFrame == 12) || (_root.itemFrame >= 15)) && (_root[_root.workTile]._currentframe == 7)) && (_root.WFCollect < 3)) || (((_root.itemFrame == 12) && (_root[_root.workTile]._currentframe == 13)) && (_root.RFCollect < 3))) || (((_root.itemFrame == 12) && (_root[_root.workTile]._currentframe == 19)) && (_root.YFCollect < 3))) {
if ((_root[_root.workTile]._currentframe == 7) && (_root.WFCollect < 3)) {
_root[_root.workTile].gotoAndStop(5);
_root.itemFrame = 12;
_root.WFCollect++;
} else if ((_root[_root.workTile]._currentframe == 13) && (_root.RFCollect < 3)) {
_root[_root.workTile].gotoAndStop(11);
_root.itemFrame = 14;
_root.RFCollect++;
} else if ((_root[_root.workTile]._currentframe == 19) && (_root.YFCollect < 3)) {
_root[_root.workTile].gotoAndStop(17);
_root.itemFrame = 12;
_root.YFCollect++;
}
_root.busketfldFrame = _root.itemFrame;
_root[_root.workTile].State = "growth1";
_root[_root.workTile].growTime = 0;
_root[_root.workTile].feedCount++;
} else if ((((((_root.itemFrame == 13) || (_root.itemFrame >= 15)) && (_root[_root.workTile]._currentframe == 7)) && (_root.WFCollect < 3)) || (((_root.itemFrame == 13) && (_root[_root.workTile]._currentframe == 13)) && (_root.RFCollect < 3))) || (((_root.itemFrame == 13) && (_root[_root.workTile]._currentframe == 19)) && (_root.YFCollect < 3))) {
if ((_root[_root.workTile]._currentframe == 7) && (_root.WFCollect < 3)) {
_root[_root.workTile].gotoAndStop(5);
_root.itemFrame = 14;
_root.WFCollect++;
} else if ((_root[_root.workTile]._currentframe == 13) && (_root.RFCollect < 3)) {
_root[_root.workTile].gotoAndStop(11);
_root.itemFrame = 13;
_root.RFCollect++;
} else if ((_root[_root.workTile]._currentframe == 19) && (_root.YFCollect < 3)) {
_root[_root.workTile].gotoAndStop(17);
_root.itemFrame = 13;
_root.YFCollect++;
}
_root.busketfldFrame = _root.itemFrame;
_root[_root.workTile].State = "growth1";
_root[_root.workTile].growTime = 0;
_root[_root.workTile].feedCount++;
} else if ((((((_root.itemFrame == 14) || (_root.itemFrame >= 15)) && (_root[_root.workTile]._currentframe == 7)) && (_root.WFCollect < 3)) || (((_root.itemFrame == 14) && (_root[_root.workTile]._currentframe == 13)) && (_root.RFCollect < 3))) || (((_root.itemFrame == 14) && (_root[_root.workTile]._currentframe == 19)) && (_root.YFCollect < 3))) {
if ((_root[_root.workTile]._currentframe == 7) && (_root.WFCollect < 3)) {
_root[_root.workTile].gotoAndStop(5);
_root.itemFrame = 14;
_root.WFCollect++;
} else if ((_root[_root.workTile]._currentframe == 13) && (_root.RFCollect < 3)) {
_root[_root.workTile].gotoAndStop(11);
_root.itemFrame = 14;
_root.RFCollect++;
} else if ((_root[_root.workTile]._currentframe == 19) && (_root.YFCollect < 3)) {
_root[_root.workTile].gotoAndStop(17);
_root.itemFrame = 14;
_root.YFCollect++;
}
_root.busketfldFrame = _root.itemFrame;
_root[_root.workTile].State = "growth1";
_root[_root.workTile].growTime = 0;
_root[_root.workTile].feedCount++;
}
}
}
function doingWork() {
if (_root.onWork) {
_root.workTime--;
if (((_root.itemFrame == 2) || (_root.itemFrame == 3)) || (_root.itemFrame == 4)) {
if (_root.workTime == 7) {
_root[_root.workTile].gotoAndStop(4);
_root[_root.workTile].seeds.gotoAndStop(1);
_root[_root.workTile].barpnt.gotoAndStop(1);
_root[_root.workTile].barpnt._visible = false;
}
}
if (_root.workTime == 0) {
if (_root.itemFrame == 1) {
if (_root.level == 1) {
_root.nextAction = true;
}
_root[_root.workTile].gotoAndStop(3);
} else if (((_root.itemFrame == 2) || (_root.itemFrame == 3)) || (_root.itemFrame == 4)) {
_root[_root.workTile].seeds.gotoAndStop(2);
if (_root.soundReady) {
_root.plant_snd.stop("plant_snd");
}
_root.hero.feed--;
if (_root.itemFrame == 2) {
_root.feed1--;
} else if (_root.itemFrame == 3) {
_root.feed2--;
} else if (_root.itemFrame == 4) {
_root.feed3--;
}
if (_root.level == 1) {
_root.nextAction = true;
}
_root[_root.workTile].State = "growth0";
_root[_root.workTile].waterTime = 0;
_root[_root.workTile].growTime = 0;
_root[_root.workTile].itemFrame = itemFrame;
_root.field1Array.push(_root[_root.workTile]);
} else if (_root.waterCollecting && ((_root.itemFrame == 5) || (_root.itemFrame == 7))) {
if (_root.soundReady) {
_root.water_snd.stop("water_snd");
}
if (_root.level == 1) {
_root.nextAction = true;
}
_root.waterCollecting = false;
_root.heroState = "oneTray";
_root.heroDirection = "frontItem";
_root.hero.gotoAndStop("frontItem");
_root.itemFrame = 7;
_root.bucketfull = true;
_root.waterUse = 0;
_root.heroDirection = "";
_root.waterTank.gotoAndStop(1);
_root.bucket.gotoAndStop(2);
_root.hero.item.gotoAndStop(_root.itemFrame);
} else if ((_root.itemFrame == 7) && (!_root.waterCollecting)) {
if (_root.soundReady) {
_root.water_snd.stop("water_snd");
}
if (_root.level == 1) {
_root.nextAction = true;
}
_root.heroState = "oneTray";
_root.heroDirection = "frontItem";
_root.hero.gotoAndStop("frontItem");
_root.waterUse++;
if (_root.waterUse == 6) {
_root.itemFrame = 5;
_root.bucketfull = false;
_root.waterUse = 0;
_root.bucket.gotoAndStop(1);
}
_root[_root.workTile].barpnt.gotoAndStop(1);
}
_root.onWork = false;
_root.workTile = "";
if (_root.pathNode.length > 0) {
_root.heroMoving = true;
} else if (_root.processQueue.length > 0) {
var _local2 = _root.processQueue[0];
_root.processQueue.splice(0, 1);
moveToNode(_local2);
}
_root.heroDirection = "itemfront";
}
}
}
function feedState() {
if (_root.feed1 > 0) {
_root.Feed1._visible = true;
} else {
_root.Feed1._visible = false;
}
if (_root.feed2 > 0) {
_root.Feed2._visible = true;
} else {
_root.Feed2._visible = false;
}
if (_root.feed3 > 0) {
_root.Feed3._visible = true;
} else {
_root.Feed3._visible = false;
}
}
function tileState() {
var _local2 = 0;
while (_local2 < _root.field1Array.length) {
_root.field1Array[_local2].waterTime++;
if (_root.field1Array[_local2].waterTime == 60) {
_root.field1Array[_local2].waterTime = 0;
_root.field1Array[_local2].barpnt.gotoAndStop(_root.field1Array[_local2].barpnt._currentframe + 1);
if (_root.field1Array[_local2].barpnt._currentframe >= 18) {
if (_root.field1Array[_local2].waterTap._currentframe == 1) {
_root.field1Array[_local2].waterTap.gotoAndPlay(2);
}
}
if (_root.level > 1) {
if (_root.field1Array[_local2].barpnt._currentframe == 30) {
_root.field1Array[_local2].waterTap.gotoAndStop(1);
_root.field1Array[_local2].State = "growth4";
_root.field1Array[_local2].growTime = 0;
if (_root.field1Array[_local2].feed == 2) {
_root.field1Array[_local2].gotoAndStop(10);
} else if (_root.field1Array[_local2].feed == 3) {
_root.field1Array[_local2].gotoAndStop(16);
} else if (_root.field1Array[_local2].feed == 4) {
_root.field1Array[_local2].gotoAndStop(22);
}
}
}
}
if (_root.field1Array[_local2].barpnt._currentframe >= 18) {
if (_root.field1Array[_local2].waterTap._currentframe == 1) {
_root.field1Array[_local2].waterTap.gotoAndPlay(2);
}
} else if (_root.field1Array[_local2].barpnt._currentframe < 18) {
_root.field1Array[_local2].waterTap.gotoAndStop(1);
}
if (_root.field1Array[_local2].feedCount == 6) {
_root.field1Array[_local2].feedCount = 0;
_root.field1Array[_local2].State = "growth4";
_root.field1Array[_local2].growTime = 0;
if (_root.field1Array[_local2].feed == 2) {
_root.field1Array[_local2].gotoAndStop(10);
} else if (_root.field1Array[_local2].feed == 3) {
_root.field1Array[_local2].gotoAndStop(16);
} else if (_root.field1Array[_local2].feed == 4) {
_root.field1Array[_local2].gotoAndStop(22);
}
}
switch (_root.field1Array[_local2].State) {
case "growth0" :
_root.field1Array[_local2].growTime++;
if (_root.field1Array[_local2].growTime == 80) {
_root.field1Array[_local2].State = "growth1";
_root.field1Array[_local2].growTime = 0;
if (_root.field1Array[_local2].feed == 2) {
_root.field1Array[_local2].gotoAndStop(5);
} else if (_root.field1Array[_local2].feed == 3) {
_root.field1Array[_local2].gotoAndStop(11);
} else if (_root.field1Array[_local2].feed == 4) {
_root.field1Array[_local2].gotoAndStop(17);
}
}
break;
case "growth1" :
_root.field1Array[_local2].growTime++;
if (_root.field1Array[_local2].growTime == 130) {
_root.field1Array[_local2].State = "growth2";
_root.field1Array[_local2].growTime = 0;
if (_root.field1Array[_local2].feed == 2) {
_root.field1Array[_local2].gotoAndStop(6);
} else if (_root.field1Array[_local2].feed == 3) {
_root.field1Array[_local2].gotoAndStop(12);
} else if (_root.field1Array[_local2].feed == 4) {
_root.field1Array[_local2].gotoAndStop(18);
}
}
break;
case "growth2" :
_root.field1Array[_local2].growTime++;
if (_root.field1Array[_local2].growTime == 130) {
_root.field1Array[_local2].State = "growth3";
_root.field1Array[_local2].growTime = 0;
if (_root.field1Array[_local2].feed == 2) {
_root.field1Array[_local2].gotoAndStop(7);
} else if (_root.field1Array[_local2].feed == 3) {
_root.field1Array[_local2].gotoAndStop(13);
} else if (_root.field1Array[_local2].feed == 4) {
_root.field1Array[_local2].gotoAndStop(19);
}
}
break;
case "growth3" :
break;
case "growth4" :
_root.field1Array[_local2].growTime++;
if (_root.field1Array[_local2].growTime != 30) {
break;
}
_root.field1Array[_local2].State = "growth5";
_root.field1Array[_local2].growTime = 0;
_root.field1Array[_local2].feedCount = 0;
_root.field1Array[_local2].gotoAndStop(1);
_root.field1Array.splice(_local2, 1);
}
_local2++;
}
}
function makerMove3() {
if (_root.bundletable3.makeFlag) {
_root.bundletable3.makeTime--;
if (_root.bundletable3.makeTime == 120) {
_root.bundletable3.flower.gotoAndStop(_root.bundletable3.flower._currentframe + 1);
}
if (_root.bundletable3.makeTime == 60) {
_root.bundletable3.flower.gotoAndStop(_root.bundletable3.flower._currentframe + 1);
}
if (_root.bundletable3.makeTime == 0) {
_root.bundletable3.makeFlag = false;
_root.WRYFCount++;
_root.making3Count++;
if (_root.soundReady) {
_root.bundle_snd.start();
}
_root.flower3bundle.gotoAndPlay(2);
_root.flower3bundle.flr.gotoAndStop(1);
_root.bundletable3.flrCount = 0;
_root.bundletable3.flr1Count = 0;
_root.bundletable3.flr2Count = 0;
_root.bundletable3.flr3Count = 0;
_root.bundletable3.F1.gotoAndStop(1);
_root.bundletable3.F2.gotoAndStop(1);
_root.bundletable3.F3.gotoAndStop(1);
_root.bundletable3.flrType = "";
_root.bundletable3.flr1Type = "";
_root.bundletable3.flr2Type = "";
_root.bundletable3.flr3Type = "";
_root.bundletable3.waitingTime = 0;
_root.bundletable3.gotoAndStop(1);
_root.bundletable3.lifeBar.gotoAndStop(1);
_root.bundletable3.enabled = true;
}
}
}
function makerMove2() {
if (_root.bundletable2.makeFlag) {
_root.bundletable2.makeTime--;
if (_root.bundletable2.makeTime == 120) {
_root.bundletable2.flower.gotoAndStop(_root.bundletable2.flower._currentframe + 4);
}
if (_root.bundletable2.makeTime == 60) {
_root.bundletable2.flower.gotoAndStop(_root.bundletable2.flower._currentframe + 4);
}
if (_root.bundletable2.makeTime == 0) {
_root.bundletable2.makeFlag = false;
if (_root.bundletable2.flrType == "wr") {
_root.WRFCount++;
} else if (_root.bundletable2.flrType == "wy") {
_root.WYFCount++;
} else if (_root.bundletable2.flrType == "ry") {
_root.RYFCount++;
}
_root.making2Count++;
if (_root.soundReady) {
_root.bundle_snd.start();
}
_root.bundletable2.doingType = _root.bundletable2.flrType;
_root.flower2bundle.gotoAndPlay(2);
_root.flower2bundle.flr.gotoAndStop(_root.bundletable2.flrType);
_root.bundletable2.flrType = "";
_root.bundletable2.flrCount = 0;
_root.bundletable2.flr1Count = 0;
_root.bundletable2.flr2Count = 0;
_root.bundletable2.F1.gotoAndStop(1);
_root.bundletable2.F2.gotoAndStop(1);
_root.bundletable2.flr1Type = "";
_root.bundletable2.flr2Type = "";
_root.bundletable2.waitingTime = 0;
_root.bundletable2.gotoAndStop(1);
_root.bundletable2.lifeBar.gotoAndStop(1);
_root.bundletable2.enabled = true;
}
}
}
function makerMove1() {
if (_root.bundletable1.makeFlag) {
_root.bundletable1.makeTime--;
if (_root.bundletable1.makeTime == 100) {
_root.bundletable1.flower.gotoAndStop(_root.bundletable1.flower._currentframe + 4);
}
if (_root.bundletable1.makeTime == 50) {
_root.bundletable1.flower.gotoAndStop(_root.bundletable1.flower._currentframe + 4);
}
if (_root.bundletable1.makeTime == 0) {
_root.bundletable1.makeFlag = false;
if (_root.level == 1) {
_root.nextAction = true;
}
if (_root.bundletable1.flrType == "white") {
_root.WFCount++;
} else if (_root.bundletable1.flrType == "red") {
_root.RFCount++;
} else if (_root.bundletable1.flrType == "yellow") {
_root.YFCount++;
}
_root.making1Count++;
if (_root.soundReady) {
_root.bundle_snd.start();
}
_root.bundletable1.doingType = _root.bundletable1.flrType;
_root.flower1bundle.gotoAndPlay(2);
_root.flower1bundle.flr.gotoAndStop(_root.bundletable1.flrType);
_root.bundletable1.flrType = "";
_root.bundletable1.flrCount = 0;
_root.bundletable1.F1.gotoAndStop(1);
_root.bundletable1.waitingTime = 0;
_root.bundletable1.gotoAndStop(1);
_root.bundletable1.lifeBar.gotoAndStop(1);
_root.bundletable1.enabled = true;
}
}
}
function tableCheck() {
if (_root.maker1) {
if (_root.bundletable1._currentframe < 15) {
_root.bundletable1.waitingTime = _root.bundletable1.waitingTime + 0.1;
if (_root.bundletable1.waitingTime >= 14) {
_root.bundletable1.waitingTime = 0;
_root.bundletable1.lifeBar.gotoAndStop(_root.bundletable1.lifeBar._currentframe + 1);
if (_root.bundletable1.lifeBar._currentframe >= 10) {
if (_root.soundReady) {
_root.go_snd.start();
}
_root.bundletable1.gotoAndPlay("lose");
}
}
}
if (_root.bundletable1._currentframe == 40) {
_root.maker1 = false;
}
}
if (_root.maker2) {
if (_root.bundletable2._currentframe < 15) {
_root.bundletable2.waitingTime = _root.bundletable2.waitingTime + 0.1;
if (_root.bundletable2.waitingTime >= 16) {
_root.bundletable2.waitingTime = 0;
_root.bundletable2.lifeBar.gotoAndStop(_root.bundletable2.lifeBar._currentframe + 1);
if (_root.bundletable2.lifeBar._currentframe >= 10) {
if (_root.soundReady) {
_root.go_snd.start();
}
_root.bundletable2.gotoAndPlay("lose");
}
}
}
if (_root.bundletable2._currentframe == 40) {
_root.maker2 = false;
}
}
if (_root.maker3) {
if (_root.bundletable3._currentframe < 15) {
_root.bundletable3.waitingTime = _root.bundletable3.waitingTime + 0.1;
if (_root.bundletable3.waitingTime >= 21) {
_root.bundletable3.waitingTime = 0;
_root.bundletable3.lifeBar.gotoAndStop(_root.bundletable3.lifeBar._currentframe + 1);
if (_root.bundletable3.lifeBar._currentframe >= 10) {
if (_root.soundReady) {
_root.go_snd.start();
}
_root.bundletable3.gotoAndPlay("lose");
}
}
}
if (_root.bundletable3._currentframe == 40) {
_root.maker3 = false;
}
}
}
function setCloseFunction() {
user_so.data.datas = "loadData";
var _local2 = 0;
while (_local2 < _root.fieldTile.length) {
_root["tileArrayObj" + _local2] = new Array();
_root["tileArrayObj" + _local2].splice(0);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].mark._visible);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].feedCount);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].feed);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].State);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].growTime);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2]._currentframe);
if (_root.fieldTile[_local2]._currentframe > 3) {
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].waterTime);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].waterTap._currentframe);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].barpnt._currentframe);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].barpnt._visible);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2]._name);
}
if (_root.fieldTile[_local2]._currentframe == 4) {
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].seeds._currentframe);
}
user_so.data["tiles" + _local2] = _root["tileArrayObj" + _local2];
_local2++;
}
user_so.data.b1Ar = _root.b1Array;
user_so.data.b2Ar = _root.b2Array;
user_so.data.b3Ar = _root.b3Array;
user_so.data.b4Ar = _root.b4Array;
user_so.data.b5Ar = _root.b5Array;
user_so.data.b6Ar = _root.b6Array;
user_so.data.b7Ar = _root.b7Array;
user_so.data.b8Ar = _root.b8Array;
_root.makerLoad = new Array();
_root.makerLoad.splice(0);
_root.makerLoad.push(_root.bundletable1._currentframe);
_root.makerLoad.push(_root.bundletable1.F1._currentframe);
_root.makerLoad.push(_root.bundletable1.makeFlag);
_root.makerLoad.push(_root.bundletable1.flrType);
_root.makerLoad.push(_root.bundletable1.doingType);
_root.makerLoad.push(_root.bundletable1.waitingTime);
_root.makerLoad.push(_root.bundletable1.makeTime);
_root.makerLoad.push(_root.bundletable1.flrCount);
_root.makerLoad.push(_root.flower1bundle._currentframe);
_root.makerLoad.push(_root.bundletable2._currentframe);
_root.makerLoad.push(_root.bundletable2.F1._currentframe);
_root.makerLoad.push(_root.bundletable2.F2._currentframe);
_root.makerLoad.push(_root.bundletable2.makeFlag);
_root.makerLoad.push(_root.bundletable2.flrType);
_root.makerLoad.push(_root.bundletable2.flr1Type);
_root.makerLoad.push(_root.bundletable2.flr2Type);
_root.makerLoad.push(_root.bundletable2.doingType);
_root.makerLoad.push(_root.bundletable2.waitingTime);
_root.makerLoad.push(_root.bundletable2.makeTime);
_root.makerLoad.push(_root.bundletable2.flrCount);
_root.makerLoad.push(_root.bundletable2.flr1Count);
_root.makerLoad.push(_root.bundletable2.flr2Count);
_root.makerLoad.push(_root.flower2bundle._currentframe);
_root.makerLoad.push(_root.bundletable3._currentframe);
_root.makerLoad.push(_root.bundletable3.F1._currentframe);
_root.makerLoad.push(_root.bundletable3.F2._currentframe);
_root.makerLoad.push(_root.bundletable3.F3._currentframe);
_root.makerLoad.push(_root.bundletable3.makeFlag);
_root.makerLoad.push(_root.bundletable3.flrType);
_root.makerLoad.push(_root.bundletable3.flr1Type);
_root.makerLoad.push(_root.bundletable3.flr2Type);
_root.makerLoad.push(_root.bundletable3.flr3Type);
_root.makerLoad.push(_root.bundletable3.doingType);
_root.makerLoad.push(_root.bundletable3.waitingTime);
_root.makerLoad.push(_root.bundletable3.makeTime);
_root.makerLoad.push(_root.bundletable3.flrCount);
_root.makerLoad.push(_root.bundletable3.flr1Count);
_root.makerLoad.push(_root.bundletable3.flr2Count);
_root.makerLoad.push(_root.bundletable3.flr3Count);
_root.makerLoad.push(_root.flower3bundle._currentframe);
_root.makerLoad.push(_root.bundletable1.lifeBar._currentframe);
_root.makerLoad.push(_root.bundletable2.lifeBar._currentframe);
_root.makerLoad.push(_root.bundletable3.lifeBar._currentframe);
_root.makerLoad.push(_root.bundletable1.flower._currentframe);
_root.makerLoad.push(_root.bundletable2.flower._currentframe);
_root.makerLoad.push(_root.bundletable3.flower._currentframe);
_root.makerLoad.push(_root.flower1bundle.flr._currentframe);
_root.makerLoad.push(_root.flower2bundle.flr._currentframe);
_root.makerLoad.push(_root.flower3bundle.flr._currentframe);
user_so.data.Makers = _root.makerLoad;
_root.gameVar = new Array();
_root.gameVar.splice(0);
_root.gameVar.push(_root.score);
_root.gameVar.push(_root.level);
_root.gameVar.push(_root.feed1);
_root.gameVar.push(_root.feed2);
_root.gameVar.push(_root.feed3);
_root.gameVar.push(_root.totalFHead1);
_root.gameVar.push(_root.totalFHead2);
_root.gameVar.push(_root.totalFHead3);
_root.gameVar.push(_root.tottalCost);
_root.gameVar.push(_root.money);
_root.gameVar.push(_root.maker1);
_root.gameVar.push(_root.maker2);
_root.gameVar.push(_root.maker3);
_root.gameVar.push(_root.newDay);
_root.gameVar.push(_root.heroSpeed);
_root.gameVar.push(_root.itemFrame);
_root.gameVar.push(_root.workTime);
_root.gameVar.push(_root.timer);
_root.gameVar.push(_root.ribben1);
_root.gameVar.push(_root.ribben2);
_root.gameVar.push(_root.ribben3);
_root.gameVar.push(_root.ribben4);
_root.gameVar.push(_root.ribben5);
_root.gameVar.push(_root.ribben6);
_root.gameVar.push(_root.ribben7);
_root.gameVar.push(_root.ribben8);
_root.gameVar.push(_root.ribben9);
_root.gameVar.push(_root.ribben10);
_root.gameVar.push(_root.b1Cost);
_root.gameVar.push(_root.b2Cost);
_root.gameVar.push(_root.b3Cost);
_root.gameVar.push(_root.b4Cost);
_root.gameVar.push(_root.b5Cost);
_root.gameVar.push(_root.b6Cost);
_root.gameVar.push(_root.b7Cost);
_root.gameVar.push(_root.b8Cost);
_root.gameVar.push(_root.WFCollect);
_root.gameVar.push(_root.RFCollect);
_root.gameVar.push(_root.YFCollect);
_root.gameVar.push(_root.WFCount);
_root.gameVar.push(_root.RFCount);
_root.gameVar.push(_root.YFCount);
_root.gameVar.push(_root.TkWFCount);
_root.gameVar.push(_root.TkRFCount);
_root.gameVar.push(_root.TkYFCount);
_root.gameVar.push(_root.HmWFCount);
_root.gameVar.push(_root.HmRFCount);
_root.gameVar.push(_root.HmYFCount);
_root.gameVar.push(_root.busketfldFrame);
_root.gameVar.push(_root.busketbndFrame);
_root.gameVar.push(_root.making1Count);
_root.gameVar.push(_root.making2Count);
_root.gameVar.push(_root.making3Count);
_root.gameVar.push(_root.Tkmaking1Count);
_root.gameVar.push(_root.Tkmaking2Count);
_root.gameVar.push(_root.Tkmaking3Count);
_root.gameVar.push(_root.WRFCount);
_root.gameVar.push(_root.RYFCount);
_root.gameVar.push(_root.WYFCount);
_root.gameVar.push(_root.WRYFCount);
_root.gameVar.push(_root.TkWRFCount);
_root.gameVar.push(_root.TkRYFCount);
_root.gameVar.push(_root.TkWYFCount);
_root.gameVar.push(_root.TkWRYFCount);
_root.gameVar.push(_root.HmWRFCount);
_root.gameVar.push(_root.HmWYFCount);
_root.gameVar.push(_root.HmRYFCount);
_root.gameVar.push(_root.HmWRYFCount);
_root.gameVar.push(_root.waterUse);
_root.gameVar.push(_root.waitingTime1);
_root.gameVar.push(_root.waitingTime2);
_root.gameVar.push(_root.waitingTime3);
_root.gameVar.push(_root.heroMoving);
_root.gameVar.push(_root.heroBusy);
_root.gameVar.push(_root.onWork);
_root.gameVar.push(_root.bucketfull);
_root.gameVar.push(_root.currentNode);
_root.gameVar.push(_root.destinationNode);
_root.gameVar.push(_root.workTile._name);
_root.gameVar.push(_root.changedDestinationNode);
_root.gameVar.push(_root.heroDirection);
_root.gameVar.push(_root.heroDirection1);
_root.gameVar.push(_root.heroState);
_root.gameVar.push(_root.hero.feed);
_root.gameVar.push(_root.bucket._currentframe);
_root.gameVar.push(_root.clock._currentframe);
_root.gameVar.push(_root.hero._x);
_root.gameVar.push(_root.hero._y);
_root.gameVar.push(_root.waterCollecting);
_root.gameVar.push(_root.levelLength - 1);
_root.gameVar.push(_root.levelCount);
_root.gameVar.push(_root.poseTime);
_root.gameVar.push(_root.nextAction);
user_so.data.gameVariables = _root.gameVar;
}
function setCloseFunction1() {
var _local2 = 0;
while (_local2 < _root.fieldTile.length) {
_root["tileArrayObj" + _local2] = new Array();
_root["tileArrayObj" + _local2].splice(0);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].mark._visible);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].feedCount);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].feed);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].State);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].growTime);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2]._currentframe);
if (_root.fieldTile[_local2]._currentframe > 3) {
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].waterTime);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].waterTap._currentframe);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].barpnt._currentframe);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].barpnt._visible);
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2]._name);
}
if (_root.fieldTile[_local2]._currentframe == 4) {
_root["tileArrayObj" + _local2].push(_root.fieldTile[_local2].seeds._currentframe);
}
user_so.data["LTiles" + _local2] = _root["tileArrayObj" + _local2];
user_so.data["tiles" + _local2] = _root["tileArrayObj" + _local2];
_local2++;
}
user_so.data.b1Ar1 = _root.b1Array;
user_so.data.b2Ar1 = _root.b2Array;
user_so.data.b3Ar1 = _root.b3Array;
user_so.data.b4Ar1 = _root.b4Array;
user_so.data.b5Ar1 = _root.b5Array;
user_so.data.b6Ar1 = _root.b6Array;
user_so.data.b7Ar1 = _root.b7Array;
user_so.data.b8Ar1 = _root.b8Array;
user_so.data.b1Ar = _root.b1Array;
user_so.data.b2Ar = _root.b2Array;
user_so.data.b3Ar = _root.b3Array;
user_so.data.b4Ar = _root.b4Array;
user_so.data.b5Ar = _root.b5Array;
user_so.data.b6Ar = _root.b6Array;
user_so.data.b7Ar = _root.b7Array;
user_so.data.b8Ar = _root.b8Array;
_root.makerLoad = new Array();
_root.makerLoad.splice(0);
_root.makerLoad.push(_root.bundletable1._currentframe);
_root.makerLoad.push(_root.bundletable1.F1._currentframe);
_root.makerLoad.push(_root.bundletable1.makeFlag);
_root.makerLoad.push(_root.bundletable1.flrType);
_root.makerLoad.push(_root.bundletable1.doingType);
_root.makerLoad.push(_root.bundletable1.waitingTime);
_root.makerLoad.push(_root.bundletable1.makeTime);
_root.makerLoad.push(_root.bundletable1.flrCount);
_root.makerLoad.push(_root.flower1bundle._currentframe);
_root.makerLoad.push(_root.bundletable2._currentframe);
_root.makerLoad.push(_root.bundletable2.F1._currentframe);
_root.makerLoad.push(_root.bundletable2.F2._currentframe);
_root.makerLoad.push(_root.bundletable2.makeFlag);
_root.makerLoad.push(_root.bundletable2.flrType);
_root.makerLoad.push(_root.bundletable2.flr1Type);
_root.makerLoad.push(_root.bundletable2.flr2Type);
_root.makerLoad.push(_root.bundletable2.doingType);
_root.makerLoad.push(_root.bundletable2.waitingTime);
_root.makerLoad.push(_root.bundletable2.makeTime);
_root.makerLoad.push(_root.bundletable2.flrCount);
_root.makerLoad.push(_root.bundletable2.flr1Count);
_root.makerLoad.push(_root.bundletable2.flr2Count);
_root.makerLoad.push(_root.flower2bundle._currentframe);
_root.makerLoad.push(_root.bundletable3._currentframe);
_root.makerLoad.push(_root.bundletable3.F1._currentframe);
_root.makerLoad.push(_root.bundletable3.F2._currentframe);
_root.makerLoad.push(_root.bundletable3.F3._currentframe);
_root.makerLoad.push(_root.bundletable3.makeFlag);
_root.makerLoad.push(_root.bundletable3.flrType);
_root.makerLoad.push(_root.bundletable3.flr1Type);
_root.makerLoad.push(_root.bundletable3.flr2Type);
_root.makerLoad.push(_root.bundletable3.flr3Type);
_root.makerLoad.push(_root.bundletable3.doingType);
_root.makerLoad.push(_root.bundletable3.waitingTime);
_root.makerLoad.push(_root.bundletable3.makeTime);
_root.makerLoad.push(_root.bundletable3.flrCount);
_root.makerLoad.push(_root.bundletable3.flr1Count);
_root.makerLoad.push(_root.bundletable3.flr2Count);
_root.makerLoad.push(_root.bundletable3.flr3Count);
_root.makerLoad.push(_root.flower3bundle._currentframe);
_root.makerLoad.push(_root.bundletable1.lifeBar._currentframe);
_root.makerLoad.push(_root.bundletable2.lifeBar._currentframe);
_root.makerLoad.push(_root.bundletable3.lifeBar._currentframe);
_root.makerLoad.push(_root.bundletable1.flower._currentframe);
_root.makerLoad.push(_root.bundletable2.flower._currentframe);
_root.makerLoad.push(_root.bundletable3.flower._currentframe);
_root.makerLoad.push(_root.flower1bundle.flr._currentframe);
_root.makerLoad.push(_root.flower2bundle.flr._currentframe);
_root.makerLoad.push(_root.flower3bundle.flr._currentframe);
user_so.data.LMakers = _root.makerLoad;
user_so.data.Makers = _root.makerLoad;
_root.gameVar = new Array();
_root.gameVar.splice(0);
_root.gameVar.push(_root.score);
_root.gameVar.push(_root.level);
_root.gameVar.push(_root.feed1);
_root.gameVar.push(_root.feed2);
_root.gameVar.push(_root.feed3);
_root.gameVar.push(_root.totalFHead1);
_root.gameVar.push(_root.totalFHead2);
_root.gameVar.push(_root.totalFHead3);
_root.gameVar.push(_root.tottalCost);
_root.gameVar.push(_root.money);
_root.gameVar.push(_root.maker1);
_root.gameVar.push(_root.maker2);
_root.gameVar.push(_root.maker3);
_root.gameVar.push(_root.newDay);
_root.gameVar.push(_root.heroSpeed);
_root.gameVar.push(_root.itemFrame);
_root.gameVar.push(_root.workTime);
_root.gameVar.push(_root.timer);
_root.gameVar.push(_root.ribben1);
_root.gameVar.push(_root.ribben2);
_root.gameVar.push(_root.ribben3);
_root.gameVar.push(_root.ribben4);
_root.gameVar.push(_root.ribben5);
_root.gameVar.push(_root.ribben6);
_root.gameVar.push(_root.ribben7);
_root.gameVar.push(_root.ribben8);
_root.gameVar.push(_root.ribben9);
_root.gameVar.push(_root.ribben10);
_root.gameVar.push(_root.b1Cost);
_root.gameVar.push(_root.b2Cost);
_root.gameVar.push(_root.b3Cost);
_root.gameVar.push(_root.b4Cost);
_root.gameVar.push(_root.b5Cost);
_root.gameVar.push(_root.b6Cost);
_root.gameVar.push(_root.b7Cost);
_root.gameVar.push(_root.b8Cost);
_root.gameVar.push(_root.WFCollect);
_root.gameVar.push(_root.RFCollect);
_root.gameVar.push(_root.YFCollect);
_root.gameVar.push(_root.WFCount);
_root.gameVar.push(_root.RFCount);
_root.gameVar.push(_root.YFCount);
_root.gameVar.push(_root.TkWFCount);
_root.gameVar.push(_root.TkRFCount);
_root.gameVar.push(_root.TkYFCount);
_root.gameVar.push(_root.HmWFCount);
_root.gameVar.push(_root.HmRFCount);
_root.gameVar.push(_root.HmYFCount);
_root.gameVar.push(_root.busketfldFrame);
_root.gameVar.push(_root.busketbndFrame);
_root.gameVar.push(_root.making1Count);
_root.gameVar.push(_root.making2Count);
_root.gameVar.push(_root.making3Count);
_root.gameVar.push(_root.Tkmaking1Count);
_root.gameVar.push(_root.Tkmaking2Count);
_root.gameVar.push(_root.Tkmaking3Count);
_root.gameVar.push(_root.WRFCount);
_root.gameVar.push(_root.RYFCount);
_root.gameVar.push(_root.WYFCount);
_root.gameVar.push(_root.WRYFCount);
_root.gameVar.push(_root.TkWRFCount);
_root.gameVar.push(_root.TkRYFCount);
_root.gameVar.push(_root.TkWYFCount);
_root.gameVar.push(_root.TkWRYFCount);
_root.gameVar.push(_root.HmWRFCount);
_root.gameVar.push(_root.HmWYFCount);
_root.gameVar.push(_root.HmRYFCount);
_root.gameVar.push(_root.HmWRYFCount);
_root.gameVar.push(_root.waterUse);
_root.gameVar.push(_root.waitingTime1);
_root.gameVar.push(_root.waitingTime2);
_root.gameVar.push(_root.waitingTime3);
_root.gameVar.push(_root.heroMoving);
_root.gameVar.push(_root.heroBusy);
_root.gameVar.push(_root.onWork);
_root.gameVar.push(_root.bucketfull);
_root.gameVar.push(_root.currentNode);
_root.gameVar.push(_root.destinationNode);
_root.gameVar.push(_root.workTile._name);
_root.gameVar.push(_root.changedDestinationNode);
_root.gameVar.push(_root.heroDirection);
_root.gameVar.push(_root.heroDirection1);
_root.gameVar.push(_root.heroState);
_root.gameVar.push(_root.hero.feed);
_root.gameVar.push(_root.bucket._currentframe);
_root.gameVar.push(1);
_root.gameVar.push(_root.hero._x);
_root.gameVar.push(_root.hero._y);
_root.gameVar.push(_root.waterCollecting);
_root.gameVar.push(_root.levelLength - 1);
_root.gameVar.push(_root.levelCount);
_root.gameVar.push(_root.poseTime);
_root.gameVar.push(_root.nextAction);
user_so.data.gameVariables = _root.gameVar;
user_so.data.LgameVariables = _root.gameVar;
}
function loadData() {
tileLoad();
makerProcess();
bqtArray();
extraAll();
user_so.flush();
}
function tileLoad() {
var _local2 = 0;
while (_local2 < _root.fieldTile.length) {
_root.fieldTile[_local2].mark._visible = user_so.data["tiles" + _local2][0];
_root.fieldTile[_local2].feedCount = user_so.data["tiles" + _local2][1];
_root.fieldTile[_local2].feed = user_so.data["tiles" + _local2][2];
_root.fieldTile[_local2].State = user_so.data["tiles" + _local2][3];
_root.fieldTile[_local2].growTime = user_so.data["tiles" + _local2][4];
_root.fieldTile[_local2].gotoAndStop(user_so.data["tiles" + _local2][5]);
if (user_so.data["tiles" + _local2][5] > 3) {
_root.fieldTile[_local2].waterTime = user_so.data["tiles" + _local2][6];
_root.fieldTile[_local2].waterTap.gotoAndStop(user_so.data["tiles" + _local2][7]);
_root.fieldTile[_local2].barpnt.gotoAndStop(user_so.data["tiles" + _local2][8]);
_root.fieldTile[_local2].barpnt._visible = user_so.data["tiles" + _local2][9];
_root.field1Array.push(_root[user_so.data["tiles" + _local2][10]]);
}
if (user_so.data["tiles" + _local2][5] == 4) {
_root.fieldTile[_local2].seeds.gotoAndStop(user_so.data["tiles" + _local2][11]);
}
user_so.data["tiles" + _local2].splice(0);
_local2++;
}
}
function makerProcess() {
_root.bundletable1.gotoAndPlay(user_so.data.Makers[0]);
_root.bundletable1.F1.gotoAndStop(user_so.data.Makers[1]);
_root.bundletable1.makeFlag = user_so.data.Makers[2];
_root.bundletable1.flrType = user_so.data.Makers[3];
_root.bundletable1.doingType = user_so.data.Makers[4];
_root.bundletable1.waitingTime = user_so.data.Makers[5];
_root.bundletable1.makeTime = user_so.data.Makers[6];
_root.bundletable1.flrCount = user_so.data.Makers[7];
_root.flower1bundle.gotoAndStop(user_so.data.Makers[8]);
_root.bundletable2.gotoAndPlay(user_so.data.Makers[9]);
_root.bundletable2.F1.gotoAndStop(user_so.data.Makers[10]);
_root.bundletable2.F2.gotoAndStop(user_so.data.Makers[11]);
_root.bundletable2.makeFlag = user_so.data.Makers[12];
_root.bundletable2.flrType = user_so.data.Makers[13];
_root.bundletable2.flr1Type = user_so.data.Makers[14];
_root.bundletable2.flr2Type = user_so.data.Makers[15];
_root.bundletable2.doingType = user_so.data.Makers[16];
_root.bundletable2.waitingTime = user_so.data.Makers[17];
_root.bundletable2.makeTime = user_so.data.Makers[18];
_root.bundletable2.flrCount = user_so.data.Makers[19];
_root.bundletable2.flr1Count = user_so.data.Makers[20];
_root.bundletable2.flr2Count = user_so.data.Makers[21];
_root.flower2bundle.gotoAndStop(user_so.data.Makers[22]);
_root.bundletable3.gotoAndPlay(user_so.data.Makers[23]);
_root.bundletable3.F1.gotoAndStop(user_so.data.Makers[24]);
_root.bundletable3.F2.gotoAndStop(user_so.data.Makers[25]);
_root.bundletable3.F3.gotoAndStop(user_so.data.Makers[26]);
_root.bundletable3.makeFlag = user_so.data.Makers[27];
_root.bundletable3.flrType = user_so.data.Makers[28];
_root.bundletable3.flr1Type = user_so.data.Makers[29];
_root.bundletable3.flr2Type = user_so.data.Makers[30];
_root.bundletable3.flr3Type = user_so.data.Makers[31];
_root.bundletable3.doingType = user_so.data.Makers[32];
_root.bundletable3.waitingTime = user_so.data.Makers[33];
_root.bundletable3.makeTime = user_so.data.Makers[34];
_root.bundletable3.flrCount = user_so.data.Makers[35];
_root.bundletable3.flr1Count = user_so.data.Makers[36];
_root.bundletable3.flr2Count = user_so.data.Makers[37];
_root.bundletable3.flr3Count = user_so.data.Makers[38];
_root.flower3bundle.gotoAndStop(user_so.data.Makers[39]);
_root.bundletable1.lifeBar.gotoAndStop(user_so.data.Makers[40]);
_root.bundletable2.lifeBar.gotoAndStop(user_so.data.Makers[41]);
_root.bundletable3.lifeBar.gotoAndStop(user_so.data.Makers[42]);
_root.bundletable1.flower.gotoAndStop(user_so.data.Makers[43]);
_root.bundletable2.flower.gotoAndStop(user_so.data.Makers[44]);
_root.bundletable3.flower.gotoAndStop(user_so.data.Makers[45]);
_root.flower1bundle.flr.gotoAndStop(user_so.data.Makers[46]);
_root.flower2bundle.flr.gotoAndStop(user_so.data.Makers[47]);
_root.flower3bundle.flr.gotoAndStop(user_so.data.Makers[48]);
user_so.data.Makers.splice(0);
}
function bqtArray() {
_root.b1Array = user_so.data.b1Ar;
_root.b2Array = user_so.data.b2Ar;
_root.b3Array = user_so.data.b3Ar;
_root.b4Array = user_so.data.b4Ar;
_root.b5Array = user_so.data.b5Ar;
_root.b6Array = user_so.data.b6Ar;
_root.b7Array = user_so.data.b7Ar;
_root.b8Array = user_so.data.b8Ar;
}
function extraAll() {
_root.score = user_so.data.gameVariables[0];
_root.level = user_so.data.gameVariables[1];
_root.feed1 = user_so.data.gameVariables[2];
_root.feed2 = user_so.data.gameVariables[3];
_root.feed3 = user_so.data.gameVariables[4];
_root.totalFHead1 = user_so.data.gameVariables[5];
_root.totalFHead2 = user_so.data.gameVariables[6];
_root.totalFHead3 = user_so.data.gameVariables[7];
_root.tottalCost = user_so.data.gameVariables[8];
_root.money = user_so.data.gameVariables[9];
_root.maker1 = user_so.data.gameVariables[10];
_root.maker2 = user_so.data.gameVariables[11];
_root.maker3 = user_so.data.gameVariables[12];
_root.newDay = user_so.data.gameVariables[13];
_root.heroSpeed = user_so.data.gameVariables[14];
_root.itemFrame = user_so.data.gameVariables[15];
_root.workTime = user_so.data.gameVariables[16];
_root.timer = user_so.data.gameVariables[17];
_root.ribben1 = user_so.data.gameVariables[18];
_root.ribben2 = user_so.data.gameVariables[19];
_root.ribben3 = user_so.data.gameVariables[20];
_root.ribben4 = user_so.data.gameVariables[21];
_root.ribben5 = user_so.data.gameVariables[22];
_root.ribben6 = user_so.data.gameVariables[23];
_root.ribben7 = user_so.data.gameVariables[24];
_root.ribben8 = user_so.data.gameVariables[25];
_root.ribben9 = user_so.data.gameVariables[26];
_root.ribben10 = user_so.data.gameVariables[27];
_root.b1Cost = user_so.data.gameVariables[28];
_root.b2Cost = user_so.data.gameVariables[29];
_root.b3Cost = user_so.data.gameVariables[30];
_root.b4Cost = user_so.data.gameVariables[31];
_root.b5Cost = user_so.data.gameVariables[32];
_root.b6Cost = user_so.data.gameVariables[33];
_root.b7Cost = user_so.data.gameVariables[34];
_root.b8Cost = user_so.data.gameVariables[35];
_root.WFCollect = user_so.data.gameVariables[36];
_root.RFCollect = user_so.data.gameVariables[37];
_root.YFCollect = user_so.data.gameVariables[38];
_root.WFCount = user_so.data.gameVariables[39];
_root.RFCount = user_so.data.gameVariables[40];
_root.YFCount = user_so.data.gameVariables[41];
_root.TkWFCount = user_so.data.gameVariables[42];
_root.TkRFCount = user_so.data.gameVariables[43];
_root.TkYFCount = user_so.data.gameVariables[44];
_root.HmWFCount = user_so.data.gameVariables[45];
_root.HmRFCount = user_so.data.gameVariables[46];
_root.HmYFCount = user_so.data.gameVariables[47];
_root.busketfldFrame = user_so.data.gameVariables[48];
_root.busketbndFrame = user_so.data.gameVariables[49];
_root.making1Count = user_so.data.gameVariables[50];
_root.making2Count = user_so.data.gameVariables[51];
_root.making3Count = user_so.data.gameVariables[52];
_root.Tkmaking1Count = user_so.data.gameVariables[53];
_root.Tkmaking2Count = user_so.data.gameVariables[54];
_root.Tkmaking3Count = user_so.data.gameVariables[55];
_root.WRFCount = user_so.data.gameVariables[56];
_root.RYFCount = user_so.data.gameVariables[57];
_root.WYFCount = user_so.data.gameVariables[58];
_root.WRYFCount = user_so.data.gameVariables[59];
_root.TkWRFCount = user_so.data.gameVariables[60];
_root.TkRYFCount = user_so.data.gameVariables[61];
_root.TkWYFCount = user_so.data.gameVariables[62];
_root.TkWRYFCount = user_so.data.gameVariables[63];
_root.HmWRFCount = user_so.data.gameVariables[64];
_root.HmWYFCount = user_so.data.gameVariables[65];
_root.HmRYFCount = user_so.data.gameVariables[66];
_root.HmWRYFCount = user_so.data.gameVariables[67];
_root.waterUse = user_so.data.gameVariables[68];
_root.waitingTime1 = user_so.data.gameVariables[69];
_root.waitingTime2 = user_so.data.gameVariables[70];
_root.waitingTime3 = user_so.data.gameVariables[71];
_root.heroMoving = user_so.data.gameVariables[72];
_root.heroBusy = user_so.data.gameVariables[73];
_root.onWork = user_so.data.gameVariables[74];
_root.bucketfull = user_so.data.gameVariables[75];
_root.currentNode = user_so.data.gameVariables[76];
_root.destinationNode = user_so.data.gameVariables[77];
_root.workTile = _root[user_so.data.gameVariables[78]];
_root.changedDestinationNode = user_so.data.gameVariables[79];
_root.heroDirection = user_so.data.gameVariables[80];
_root.heroDirection1 = user_so.data.gameVariables[81];
_root.heroState = user_so.data.gameVariables[82];
_root.hero.feed = user_so.data.gameVariables[83];
_root.bucket.gotoAndStop(user_so.data.gameVariables[84]);
_root.clock.gotoAndStop(user_so.data.gameVariables[85]);
trace(user_so.data.gameVariables[85]);
_root.hero._x = user_so.data.gameVariables[86];
_root.hero._y = user_so.data.gameVariables[87];
_root.waterCollecting = user_so.data.gameVariables[88];
_root.levelLength = user_so.data.gameVariables[89];
_root.levelCount = user_so.data.gameVariables[90];
_root.poseTime = user_so.data.gameVariables[91];
_root.nextAction = user_so.data.gameVariables[92];
_root.hero.gotoAndStop(_root.heroDirection);
_root.hero.item.gotoAndStop(_root.itemFrame);
user_so.data.gameVariables.splice(0);
}
function loadDataLevel() {
var _local2 = 0;
while (_local2 < _root.fieldTile.length) {
_root.fieldTile[_local2].mark._visible = user_so.data["Ltiles" + _local2][0];
_root.fieldTile[_local2].feedCount = user_so.data["LTiles" + _local2][1];
_root.fieldTile[_local2].feed = user_so.data["LTiles" + _local2][2];
_root.fieldTile[_local2].State = user_so.data["LTiles" + _local2][3];
_root.fieldTile[_local2].growTime = user_so.data["LTiles" + _local2][4];
_root.fieldTile[_local2].gotoAndStop(user_so.data["LTiles" + _local2][5]);
if (user_so.data["LTiles" + _local2][5] > 3) {
_root.fieldTile[_local2].waterTime = user_so.data["LTiles" + _local2][6];
_root.fieldTile[_local2].waterTap.gotoAndStop(user_so.data["LTiles" + _local2][7]);
_root.fieldTile[_local2].barpnt.gotoAndStop(user_so.data["LTiles" + _local2][8]);
_root.fieldTile[_local2].barpnt._visible = user_so.data["LTiles" + _local2][9];
_root.field1Array.push(_root[user_so.data["LTiles" + _local2][10]]);
}
if (user_so.data["LTiles" + _local2][5] == 4) {
_root.fieldTile[_local2].seeds.gotoAndStop(user_so.data["LTiles" + _local2][11]);
}
user_so.data["LTiles" + _local2].splice(0);
_local2++;
}
_root.bundletable1.gotoAndPlay(user_so.data.LMakers[0]);
_root.bundletable1.F1.gotoAndStop(user_so.data.LMakers[1]);
_root.bundletable1.makeFlag = user_so.data.LMakers[2];
_root.bundletable1.flrType = user_so.data.LMakers[3];
_root.bundletable1.doingType = user_so.data.LMakers[4];
_root.bundletable1.waitingTime = user_so.data.LMakers[5];
_root.bundletable1.makeTime = user_so.data.LMakers[6];
_root.bundletable1.flrCount = user_so.data.LMakers[7];
_root.flower1bundle.gotoAndStop(user_so.data.LMakers[8]);
_root.bundletable2.gotoAndPlay(user_so.data.LMakers[9]);
_root.bundletable2.F1.gotoAndStop(user_so.data.LMakers[10]);
_root.bundletable2.F2.gotoAndStop(user_so.data.LMakers[11]);
_root.bundletable2.makeFlag = user_so.data.LMakers[12];
_root.bundletable2.flrType = user_so.data.LMakers[13];
_root.bundletable2.flr1Type = user_so.data.LMakers[14];
_root.bundletable2.flr2Type = user_so.data.LMakers[15];
_root.bundletable2.doingType = user_so.data.LMakers[16];
_root.bundletable2.waitingTime = user_so.data.LMakers[17];
_root.bundletable2.makeTime = user_so.data.LMakers[18];
_root.bundletable2.flrCount = user_so.data.LMakers[19];
_root.bundletable2.flr1Count = user_so.data.LMakers[20];
_root.bundletable2.flr2Count = user_so.data.LMakers[21];
_root.flower2bundle.gotoAndStop(user_so.data.LMakers[22]);
_root.bundletable3.gotoAndPlay(user_so.data.LMakers[23]);
_root.bundletable3.F1.gotoAndStop(user_so.data.LMakers[24]);
_root.bundletable3.F2.gotoAndStop(user_so.data.LMakers[25]);
_root.bundletable3.F3.gotoAndStop(user_so.data.LMakers[26]);
_root.bundletable3.makeFlag = user_so.data.LMakers[27];
_root.bundletable3.flrType = user_so.data.LMakers[28];
_root.bundletable3.flr1Type = user_so.data.LMakers[29];
_root.bundletable3.flr2Type = user_so.data.LMakers[30];
_root.bundletable3.flr3Type = user_so.data.LMakers[31];
_root.bundletable3.doingType = user_so.data.LMakers[32];
_root.bundletable3.waitingTime = user_so.data.LMakers[33];
_root.bundletable3.makeTime = user_so.data.LMakers[34];
_root.bundletable3.flrCount = user_so.data.LMakers[35];
_root.bundletable3.flr1Count = user_so.data.LMakers[36];
_root.bundletable3.flr2Count = user_so.data.LMakers[37];
_root.bundletable3.flr3Count = user_so.data.LMakers[38];
_root.flower3bundle.gotoAndStop(user_so.data.LMakers[39]);
_root.bundletable1.lifeBar.gotoAndStop(user_so.data.LMakers[40]);
_root.bundletable2.lifeBar.gotoAndStop(user_so.data.LMakers[41]);
_root.bundletable3.lifeBar.gotoAndStop(user_so.data.LMakers[42]);
_root.bundletable1.flower.gotoAndStop(user_so.data.LMakers[43]);
_root.bundletable2.flower.gotoAndStop(user_so.data.LMakers[44]);
_root.bundletable3.flower.gotoAndStop(user_so.data.LMakers[45]);
_root.flower1bundle.flr.gotoAndStop(user_so.data.LMakers[46]);
_root.flower2bundle.flr.gotoAndStop(user_so.data.LMakers[47]);
_root.flower3bundle.flr.gotoAndStop(user_so.data.LMakers[48]);
user_so.data.LMakers.splice(0);
_root.b1Array = user_so.data.b1Ar1;
_root.b2Array = user_so.data.b2Ar1;
_root.b3Array = user_so.data.b3Ar1;
_root.b4Array = user_so.data.b4Ar1;
_root.b5Array = user_so.data.b5Ar1;
_root.b6Array = user_so.data.b6Ar1;
_root.b7Array = user_so.data.b7Ar1;
_root.b8Array = user_so.data.b8Ar1;
_root.score = user_so.data.LgameVariables[0];
_root.level = user_so.data.LgameVariables[1];
_root.feed1 = user_so.data.LgameVariables[2];
_root.feed2 = user_so.data.LgameVariables[3];
_root.feed3 = user_so.data.LgameVariables[4];
_root.totalFHead1 = user_so.data.LgameVariables[5];
_root.totalFHead2 = user_so.data.LgameVariables[6];
_root.totalFHead3 = user_so.data.LgameVariables[7];
_root.tottalCost = user_so.data.LgameVariables[8];
_root.money = user_so.data.LgameVariables[9];
_root.maker1 = user_so.data.LgameVariables[10];
_root.maker2 = user_so.data.LgameVariables[11];
_root.maker3 = user_so.data.LgameVariables[12];
_root.newDay = user_so.data.LgameVariables[13];
_root.heroSpeed = user_so.data.LgameVariables[14];
_root.itemFrame = user_so.data.LgameVariables[15];
_root.workTime = user_so.data.LgameVariables[16];
_root.timer = user_so.data.LgameVariables[17];
_root.ribben1 = user_so.data.LgameVariables[18];
_root.ribben2 = user_so.data.LgameVariables[19];
_root.ribben3 = user_so.data.LgameVariables[20];
_root.ribben4 = user_so.data.LgameVariables[21];
_root.ribben5 = user_so.data.LgameVariables[22];
_root.ribben6 = user_so.data.LgameVariables[23];
_root.ribben7 = user_so.data.LgameVariables[24];
_root.ribben8 = user_so.data.LgameVariables[25];
_root.ribben9 = user_so.data.LgameVariables[26];
_root.ribben10 = user_so.data.LgameVariables[27];
_root.b1Cost = user_so.data.LgameVariables[28];
_root.b2Cost = user_so.data.LgameVariables[29];
_root.b3Cost = user_so.data.LgameVariables[30];
_root.b4Cost = user_so.data.LgameVariables[31];
_root.b5Cost = user_so.data.LgameVariables[32];
_root.b6Cost = user_so.data.LgameVariables[33];
_root.b7Cost = user_so.data.LgameVariables[34];
_root.b8Cost = user_so.data.LgameVariables[35];
_root.WFCollect = user_so.data.LgameVariables[36];
_root.RFCollect = user_so.data.LgameVariables[37];
_root.YFCollect = user_so.data.LgameVariables[38];
_root.WFCount = user_so.data.LgameVariables[39];
_root.RFCount = user_so.data.LgameVariables[40];
_root.YFCount = user_so.data.LgameVariables[41];
_root.TkWFCount = user_so.data.LgameVariables[42];
_root.TkRFCount = user_so.data.LgameVariables[43];
_root.TkYFCount = user_so.data.LgameVariables[44];
_root.HmWFCount = user_so.data.LgameVariables[45];
_root.HmRFCount = user_so.data.LgameVariables[46];
_root.HmYFCount = user_so.data.LgameVariables[47];
_root.busketfldFrame = user_so.data.LgameVariables[48];
_root.busketbndFrame = user_so.data.LgameVariables[49];
_root.making1Count = user_so.data.LgameVariables[50];
_root.making2Count = user_so.data.LgameVariables[51];
_root.making3Count = user_so.data.LgameVariables[52];
_root.Tkmaking1Count = user_so.data.LgameVariables[53];
_root.Tkmaking2Count = user_so.data.LgameVariables[54];
_root.Tkmaking3Count = user_so.data.LgameVariables[55];
_root.WRFCount = user_so.data.LgameVariables[56];
_root.RYFCount = user_so.data.LgameVariables[57];
_root.WYFCount = user_so.data.LgameVariables[58];
_root.WRYFCount = user_so.data.LgameVariables[59];
_root.TkWRFCount = user_so.data.LgameVariables[60];
_root.TkRYFCount = user_so.data.LgameVariables[61];
_root.TkWYFCount = user_so.data.LgameVariables[62];
_root.TkWRYFCount = user_so.data.LgameVariables[63];
_root.HmWRFCount = user_so.data.LgameVariables[64];
_root.HmWYFCount = user_so.data.LgameVariables[65];
_root.HmRYFCount = user_so.data.LgameVariables[66];
_root.HmWRYFCount = user_so.data.LgameVariables[67];
_root.waterUse = user_so.data.LgameVariables[68];
_root.waitingTime1 = user_so.data.LgameVariables[69];
_root.waitingTime2 = user_so.data.LgameVariables[70];
_root.waitingTime3 = user_so.data.LgameVariables[71];
_root.heroMoving = user_so.data.LgameVariables[72];
_root.heroBusy = user_so.data.LgameVariables[73];
_root.onWork = user_so.data.LgameVariables[74];
_root.bucketfull = user_so.data.LgameVariables[75];
_root.currentNode = user_so.data.LgameVariables[76];
_root.destinationNode = user_so.data.LgameVariables[77];
_root.workTile = _root[user_so.data.LgameVariables[78]];
_root.changedDestinationNode = user_so.data.LgameVariables[79];
_root.heroDirection = user_so.data.LgameVariables[80];
_root.heroDirection1 = user_so.data.LgameVariables[81];
_root.heroState = user_so.data.LgameVariables[82];
_root.hero.feed = user_so.data.LgameVariables[83];
_root.bucket.gotoAndStop(user_so.data.LgameVariables[84]);
_root.clock.gotoAndStop(user_so.data.LgameVariables[85]);
trace(user_so.data.LgameVariables[85]);
_root.hero._x = user_so.data.LgameVariables[86];
_root.hero._y = user_so.data.LgameVariables[87];
_root.waterCollecting = user_so.data.LgameVariables[88];
_root.levelLength = user_so.data.LgameVariables[89];
_root.levelCount = user_so.data.LgameVariables[90];
_root.poseTime = user_so.data.LgameVariables[91];
_root.nextAction = user_so.data.LgameVariables[92];
_root.hero.gotoAndStop(_root.heroDirection);
_root.hero.item.gotoAndStop(_root.itemFrame);
user_so.data.LgameVariables.splice(0);
}
stop();
var fieldArray = new Array();
var field1Array = new Array();
var buttonsArray = new Array();
var unbuttonsArray = new Array();
var processQueue = new Array();
var levelArray = new Array();
var pathNode = new Array();
var fieldTile = new Array();
var b1Array = new Array();
var b2Array = new Array();
var b3Array = new Array();
var b4Array = new Array();
var b5Array = new Array();
var b6Array = new Array();
var b7Array = new Array();
var b8Array = new Array();
var clickItemArray = new Array();
var clickCostArray = new Array();
var itemArray = new Array();
var feed1;
var feed2;
var feed3;
var level;
var ribbenCost;
var leafCost;
var bundleCost;
var b1Cost;
var b2Cost;
var b3Cost;
var b4Cost;
var b5Cost;
var b6Cost;
var b7Cost;
var b8Cost;
var totalFHead1;
var totalFHead2;
var totalFHead3;
var tottalCost;
var score;
var money;
var makerMsg;
var maker1;
var maker2;
var maker3;
var newDay;
var heroSpeed;
var itemFrame;
var preitemFrame;
var workTime;
var levelLength;
var levelCount;
var nextAction;
var poseTime;
var timer;
var ribben1;
var ribben2;
var ribben3;
var ribben4;
var ribben5;
var ribben6;
var ribben7;
var ribben8;
var ribben9;
var ribben10;
var Ribben;
var Leaf;
var FLOWER;
var waterCollecting;
var fromFactory;
var preRibben;
var preLeaf;
var preRibben;
var preFlower;
var WFCollect;
var RFCollect;
var YFCollect;
var WFCount;
var RFCount;
var YFCount;
var TkWFCount;
var TkRFCount;
var TkYFCount;
var HmWFCount;
var HmRFCount;
var HmYFCount;
var busketfldFrame;
var busketbndFrame;
var making1Count;
var making2Count;
var making3Count;
var Tkmaking1Count;
var Tkmaking2Count;
var Tkmaking3Count;
var WRFCount;
var RYFCount;
var WYFCount;
var WRYFCount;
var TkWRFCount;
var TkRYFCount;
var TkWYFCount;
var HmWRFCount;
var HmWYFCount;
var HmRYFCount;
var HmWRYFCount;
var waterUse;
var waitingTime1;
var waitingTime2;
var waitingTime3;
var closeTime;
var Target;
var TargetMax;
var heroMoving;
var heroBusy;
var onWork;
var bucketfull;
var currentNode;
var destinationNode;
var workTile;
var changedDestinationNode;
var heroDirection;
var heroDirection1;
var heroState;
init();
_root.onEnterFrame = function () {
if (!_root.Paused) {
heroMove();
doingWork();
feedState();
tileState();
makerMove1();
makerMove2();
makerMove3();
tableCheck();
if (_root.level > 1) {
_root.closeTime++;
if (_root.closeTime == 5) {
setCloseFunction();
_root.closeTime = 0;
}
}
if (_root.level == 1) {
levelFunctions();
}
_root.timer++;
if (_root.timer == 30) {
_root.timer = 0;
_root.clock.gotoAndStop(_root.clock._currentframe + 1);
if (_root.clock._currentframe == 65) {
var _local2 = 0;
while (_local2 < _root.buttonsArray.length) {
_root.buttonsArray[_local2].enabled = false;
_local2++;
}
_root.Paused = true;
_root.hero.stop();
_root.bundletable1.stop();
_root.bundletable2.stop();
_root.bundletable3.stop();
if (_root.Target >= _root.TargetMax) {
_root.newDay = true;
_root.Target = 0;
_root.level++;
_root.clock.gotoAndStop(1);
setCloseFunction();
setCloseFunction1();
if (_root.soundReady) {
_root.levelup_snd.start();
}
_root.clock.gotoAndStop(1);
_root.levelupMc.gotoAndPlay(2);
} else {
if (_root.level > 1) {
user_so.data.datas = "loadDataLevel";
}
_root.Target = 0;
if (_root.soundReady) {
_root.gameover_snd.start();
}
delete _root.onEnterFrame;
_root.gotoAndStop("gameover");
}
}
}
if (!_root.Paused) {
if (((!_root.maker1) && (!_root.maker2)) && (!_root.maker3)) {
if (_root.money < 100) {
if (((_root.totalFHead1 == 0) && (_root.totalFHead2 == 0)) && (_root.totalFHead3 == 0)) {
if ((((((((_root.b1Cost == 0) && (_root.b2Cost == 0)) && (_root.b3Cost == 0)) && (_root.b4Cost == 0)) && (_root.b5Cost == 0)) && (_root.b6Cost == 0)) && (_root.b7Cost == 0)) && (_root.b8Cost == 0)) {
_root.Paused = true;
if (_root.soundReady) {
_root.gameover_snd.start();
}
_root.Target = 0;
if (_root.level > 1) {
user_so.data.datas = "loadDataLevel";
}
delete _root.onEnterFrame;
_root.gotoAndStop("gameover");
} else if (!_root.makerMsg) {
if (_root.popup._currentframe == 1) {
_root.popup.gotoAndPlay(2);
}
}
} else if (!_root.makerMsg) {
if (_root.popup._currentframe == 1) {
_root.popup.gotoAndPlay(2);
}
}
} else if (!_root.makerMsg) {
if (_root.popup._currentframe == 1) {
_root.popup.gotoAndPlay(2);
}
}
}
}
if (_root.heroDirection != "") {
if (_root.heroDirection != _root.heroDirection1) {
_root.hero.gotoAndPlay(_root.heroDirection);
_root.hero.item.gotoAndStop(_root.itemFrame);
_root.heroDirection1 = _root.heroDirection;
}
}
}
};
if (_root.loads) {
if (user_so.data.datas == "loadData") {
loadData();
} else if (user_so.data.datas == "loadDataLevel") {
loadDataLevel();
} else {
loadData();
}
setCloseFunction();
setCloseFunction1();
}
user_so.data.datas = "";
Instance of Symbol 172 MovieClip "bucket" in Frame 42
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 175 MovieClip "digger" in Frame 42
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 177 MovieClip "collectbox" in Frame 42
on (rollOver) {
this._xscale = 120;
this._yscale = 120;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 180 MovieClip "house" in Frame 42
on (rollOver) {
this._xscale = 102;
this._yscale = 102;
}
on (rollOut) {
this._xscale = 100;
this._yscale = 100;
}
Instance of Symbol 364 MovieClip "soundMc" in Frame 42
onClipEvent (load) {
if (_root.soundReady) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (release) {
if (_root.soundReady) {
_root.soundReady = false;
stopAllSounds();
this.gotoAndStop(2);
} else {
_root.music.start();
_root.soundReady = true;
this.gotoAndStop(1);
}
}
on (rollOver) {
if (_root.soundReady) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
}
on (rollOut) {
if (_root.soundReady) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 43
play();
Frame 55
stop();
Symbol 16 MovieClip Frame 1
_root.stop();
Symbol 16 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 32 MovieClip Frame 1
stop();
fSitebutton.onRelease = function () {
getURL ("http://www.games2girls.com/", "_blank");
};
Symbol 32 MovieClip Frame 123
stop();
_root.play();
Symbol 45 MovieClip Frame 1
games2girls_button.onRelease = function () {
getURL ("http://www.games2girls.com/", "_blank");
};
Symbol 66 Button
on (release) {
_root.loads = false;
_root.gotoAndStop("game");
}
Symbol 68 Button
on (release) {
_root.gotoAndPlay("help");
}
Symbol 75 Button
on (release) {
_root.loads = true;
_root.gotoAndStop("game");
}
Symbol 77 Button
on (release) {
_root.loads = false;
_root.gotoAndStop("game");
}
Symbol 84 Button
on (release) {
_root.gotoAndPlay("menu");
}
Symbol 91 Button
on (release) {
_root.helptxt.gotoAndStop("helptext");
}
Symbol 92 MovieClip Frame 8
stop();
Symbol 92 MovieClip Frame 19
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 6
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 1
Symbol 175 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 12
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 5
gotoAndStop (1);
Symbol 215 MovieClip Frame 9
gotoAndStop (6);
Symbol 215 MovieClip Frame 12
gotoAndStop (6);
Symbol 215 MovieClip Frame 28
gotoAndPlay (16);
Symbol 215 MovieClip Frame 40
stop();
Symbol 215 MovieClip Frame 43
gotoAndStop (40);
Symbol 227 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 18
gotoAndPlay (6);
Symbol 237 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 5
gotoAndStop (1);
Symbol 238 MovieClip Frame 8
gotoAndStop (6);
Symbol 238 MovieClip Frame 12
gotoAndStop (6);
Symbol 238 MovieClip Frame 28
gotoAndPlay (16);
Symbol 238 MovieClip Frame 40
stop();
Symbol 238 MovieClip Frame 43
gotoAndStop (40);
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 18
gotoAndPlay (6);
Symbol 249 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 2
gotoAndStop (1);
Symbol 250 MovieClip Frame 5
gotoAndStop (1);
Symbol 250 MovieClip Frame 9
gotoAndStop (6);
Symbol 250 MovieClip Frame 13
gotoAndStop (6);
Symbol 250 MovieClip Frame 28
gotoAndPlay (16);
Symbol 250 MovieClip Frame 40
stop();
Symbol 250 MovieClip Frame 43
gotoAndStop (40);
Symbol 265 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 10
gotoAndPlay (2);
Symbol 314 MovieClip Frame 21
gotoAndPlay (12);
Symbol 314 MovieClip Frame 32
gotoAndPlay (23);
Symbol 314 MovieClip Frame 43
gotoAndPlay (34);
Symbol 314 MovieClip Frame 54
gotoAndPlay (45);
Symbol 314 MovieClip Frame 65
gotoAndPlay (56);
Symbol 314 MovieClip Frame 76
gotoAndPlay (67);
Symbol 314 MovieClip Frame 87
gotoAndPlay (78);
Symbol 314 MovieClip Frame 98
gotoAndPlay (89);
Symbol 314 MovieClip Frame 112
gotoAndPlay (100);
Symbol 314 MovieClip Frame 119
gotoAndPlay (114);
Symbol 314 MovieClip Frame 120
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 7
stop();
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 7
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 7
stop();
Symbol 329 Button
on (release) {
_root.Paused = false;
_root.bundletable1.play();
_root.bundletable2.play();
_root.bundletable3.play();
var i = 0;
while (i < _root.buttonsArray.length) {
if (_root.level > 1) {
_root.buttonsArray[i].enabled = true;
}
i++;
}
if (_root.level == 1) {
_root.breakBtn.enabled = true;
_root.helpBtn.enabled = true;
_root.soundMc.enabled = true;
_root.Arrows._visible = true;
_root[_root.levelArray[_root.levelLength - 1]].enabled = _root.poseTime;
}
var j = 0;
while (j < _root.unbuttonsArray.length) {
_root[_root.unbuttonsArray[j]].enabled = false;
j++;
}
_root.helpMc.gotoAndStop(1);
}
Symbol 332 Button
on (release) {
_root.Paused = false;
_root.bundletable1.play();
_root.bundletable2.play();
_root.bundletable3.play();
var i = 0;
while (i < _root.buttonsArray.length) {
_root.buttonsArray[i].enabled = true;
i++;
}
var j = 0;
while (j < _root.unbuttonsArray.length) {
_root[_root.unbuttonsArray[j]].enabled = false;
j++;
}
_root.helpMc.gotoAndStop(1);
}
Symbol 333 Button
on (release) {
_root.helpMc.gotoAndStop("helptext");
}
Symbol 335 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 8
stop();
Symbol 335 MovieClip Frame 19
stop();
Symbol 361 Button
on (release) {
_root.hero.stop();
_root.Paused = true;
_root.bundletable1.stop();
_root.bundletable2.stop();
_root.bundletable3.stop();
if (_root.soundReady) {
_root.click_snd.start();
}
_root.poseTime = _root[_root.levelArray[_root.levelLength - 1]].enabled;
_root.Arrows._visible = false;
var i = 0;
while (i < _root.buttonsArray.length) {
_root.buttonsArray[i].enabled = false;
i++;
}
_root.helpMc.gotoAndPlay(2);
}
Symbol 366 Button
on (release) {
_root.hero.stop();
_root.bundletable1.stop();
_root.bundletable2.stop();
_root.bundletable3.stop();
_root.Paused = true;
if (_root.soundReady) {
_root.click_snd.start();
}
_root.Arrows._visible = false;
_root.poseTime = _root[_root.levelArray[_root.levelLength - 1]].enabled;
var i = 0;
while (i < _root.buttonsArray.length) {
_root.buttonsArray[i].enabled = false;
i++;
}
_root.startBox.gotoAndPlay("pause");
}
Symbol 375 Button
on (release) {
var i = 0;
while (i < _root.buttonsArray.length) {
_root.buttonsArray[i].enabled = false;
i++;
}
if (_root.soundReady) {
_root.click_snd.start();
}
_root.logo_Btn.games2girls_button.enabled = false;
_root.Paused = true;
_root.bundletable1.stop();
_root.bundletable2.stop();
_root.bundletable3.stop();
_root.hero.stop();
_root.Market._visible = true;
_root.popup.gotoAndStop(1);
_root.Market.gotoAndPlay("sell");
}
Symbol 380 Button
on (release) {
var i = 0;
while (i < _root.buttonsArray.length) {
_root.buttonsArray[i].enabled = false;
i++;
}
if (_root.soundReady) {
_root.click_snd.start();
}
_root.logo_Btn.games2girls_button.enabled = false;
_root.Paused = true;
_root.bundletable1.stop();
_root.bundletable2.stop();
_root.bundletable3.stop();
_root.hero.stop();
_root.popup.gotoAndStop(1);
_root.Factory.gotoAndPlay(2);
}
Symbol 387 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 407 Button
on (release) {
_root.Market.gotoAndStop("sell");
}
Symbol 409 Button
on (release) {
_root.clickItemArray.splice(0);
_root.clickCostArray.splice(0);
_root.clickItemArray.splice(0);
_root.clickCostArray.splice(0);
_root.Market.buyItems.cancelBtn.enabled = false;
_root.Market.buyBtn.enabled = false;
_root.Market.buyItems.cancelBtn._alpha = 50;
_root.Market.buyBtn._alpha = 50;
var i = 0;
while (i < _root.itemArray.length) {
_root.itemArray[i].enabled = false;
i++;
}
_root.setCloseFunction();
_root.endBox.gotoAndPlay("purchase");
}
Symbol 410 Button
on (release) {
_root.logo_Btn.games2girls_button.enabled = false;
_root.Market.gotoAndStop(1);
_root.Factory.gotoAndPlay(2);
}
Symbol 411 Button
on (release) {
if (!_root.newDay) {
_root.Paused = false;
var i = 0;
while (i < _root.buttonsArray.length) {
_root.buttonsArray[i].enabled = true;
i++;
}
var j = 0;
while (j < _root.unbuttonsArray.length) {
_root[_root.unbuttonsArray[j]].enabled = false;
j++;
}
_root.bundletable1.play();
_root.bundletable2.play();
_root.bundletable3.play();
_root.logo_Btn.games2girls_button.enabled = true;
_root.Market.gotoAndStop(1);
} else {
_root.logo_Btn.games2girls_button.enabled = true;
_root.Market.gotoAndStop(1);
_root.startBox.gotoAndPlay(2);
}
}
Symbol 424 Button
on (release) {
_root.Market.buyItems.gotoAndStop(2);
}
Symbol 426 Button
on (release) {
_root.Market.buyItems.gotoAndStop(3);
}
Symbol 428 Button
on (release) {
_root.Market.buyItems.gotoAndStop(4);
}
Symbol 435 Button
on (release) {
if (_root.clickItemArray.length > 0) {
var Length = (_root.clickItemArray.length - 1);
_root.tottalCost = _root.tottalCost - _root.clickCostArray[Length];
if (_root.clickCostArray[Length] == 20) {
_root.feed1 = _root.feed1 - 6;
} else if (_root.clickCostArray[Length] == 35) {
_root.feed2 = _root.feed2 - 6;
} else if (_root.clickCostArray[Length] == 50) {
_root.feed3 = _root.feed3 - 6;
}
_root.money = _root.money + _root.clickCostArray[Length];
_root.clickItemArray.splice(Length);
_root.clickCostArray.splice(Length);
_root.itemArray.splice(0);
if (_root.money >= 20) {
_root.Market.buyItems.wFeed.enabled = true;
_root.Market.buyItems.wFeed.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.wFeed);
}
if (_root.money >= 35) {
_root.Market.buyItems.rFeed.enabled = true;
_root.Market.buyItems.rFeed.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.rFeed);
}
if (_root.money >= 50) {
_root.Market.buyItems.yFeed.enabled = true;
_root.Market.buyItems.yFeed.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.yFeed);
}
if (_root.clickItemArray.length == 0) {
_root.Market.buyItems.cancelBtn.enabled = false;
_root.Market.buyBtn.enabled = false;
_root.Market.buyItems.cancelBtn._alpha = 50;
_root.Market.buyBtn._alpha = 50;
_root.Market.sellBtn.enabled = true;
_root.Market.factoryBtn.enabled = true;
_root.Market.farmBtn.enabled = true;
_root.Market.buyItems.bBtn.enabled = true;
_root.Market.buyItems.rBtn.enabled = true;
_root.Market.buyItems.lBtn.enabled = true;
}
}
}
Symbol 436 Button
on (release) {
_root.Market.buyItems.gotoAndStop(1);
}
Symbol 453 Button
on (release) {
if (_root.clickItemArray.length > 0) {
var Length = (_root.clickItemArray.length - 1);
_root.money = _root.money + _root.clickCostArray[Length];
_root.tottalCost = _root.tottalCost - _root.clickCostArray[Length];
if (_root.clickCostArray[Length] == 100) {
_root.bundletable1.makeFlag = true;
_root.maker1 = false;
_root.bundletable1.gotoAndStop(40);
_root.bundletable1.enabled = false;
} else if (_root.clickCostArray[Length] == 250) {
_root.bundletable2.makeFlag = true;
_root.maker2 = false;
_root.bundletable2.gotoAndStop(40);
_root.bundletable2.enabled = false;
} else if (_root.clickCostArray[Length] == 500) {
_root.bundletable3.makeFlag = true;
_root.maker3 = false;
_root.bundletable3.gotoAndStop(40);
_root.bundletable3.enabled = false;
}
_root.clickItemArray.splice(Length);
_root.clickCostArray.splice(Length);
_root.itemArray.splice(0);
if ((!_root.maker1) && (_root.money >= 100)) {
_root.Market.buyItems.maker1.enabled = true;
_root.Market.buyItems.maker1.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.maker1);
}
if ((!_root.maker2) && (_root.money >= 250)) {
_root.Market.buyItems.maker2.enabled = true;
_root.Market.buyItems.maker2.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.maker2);
}
if ((!_root.maker3) && (_root.money >= 500)) {
_root.Market.buyItems.maker3.enabled = true;
_root.Market.buyItems.maker3.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.maker3);
}
if (_root.clickItemArray.length == 0) {
_root.Market.buyItems.cancelBtn.enabled = false;
_root.Market.buyBtn.enabled = false;
_root.Market.buyItems.cancelBtn._alpha = 50;
_root.Market.buyBtn._alpha = 50;
_root.Market.sellBtn.enabled = true;
_root.Market.factoryBtn.enabled = true;
_root.Market.farmBtn.enabled = true;
_root.Market.buyItems.sBtn.enabled = true;
_root.Market.buyItems.rBtn.enabled = true;
_root.Market.buyItems.lBtn.enabled = true;
}
}
}
Symbol 467 Button
on (release) {
if (_root.clickItemArray.length > 0) {
var Length = (_root.clickItemArray.length - 1);
_root.money = _root.money + _root.clickCostArray[Length];
_root.tottalCost = _root.tottalCost - _root.clickCostArray[Length];
if (_root.clickCostArray[Length] == 10) {
_root.ribben1--;
} else if (_root.clickCostArray[Length] == 15) {
_root.ribben2--;
} else if (_root.clickCostArray[Length] == 20) {
_root.ribben3--;
} else if (_root.clickCostArray[Length] == 30) {
_root.ribben4--;
} else if (_root.clickCostArray[Length] == 70) {
_root.ribben5--;
} else if (_root.clickCostArray[Length] == 50) {
_root.ribben6--;
} else if (_root.clickCostArray[Length] == 85) {
_root.ribben7--;
}
_root.clickItemArray.splice(Length);
_root.clickCostArray.splice(Length);
_root.itemArray.splice(0);
if (_root.money >= 10) {
_root.Market.buyItems.Ribben1.enabled = true;
_root.Market.buyItems.Ribben1.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben1);
}
if (_root.money >= 15) {
_root.Market.buyItems.Ribben2.enabled = true;
_root.Market.buyItems.Ribben2.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben2);
}
if (_root.money >= 20) {
_root.Market.buyItems.Ribben3.enabled = true;
_root.Market.buyItems.Ribben3.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben3);
}
if (_root.money >= 30) {
_root.Market.buyItems.Ribben4.enabled = true;
_root.Market.buyItems.Ribben4.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben4);
}
if (_root.money >= 70) {
_root.Market.buyItems.Ribben5.enabled = true;
_root.Market.buyItems.Ribben5.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben5);
}
if (_root.money >= 50) {
_root.Market.buyItems.Ribben6.enabled = true;
_root.Market.buyItems.Ribben6.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben6);
}
if (_root.money >= 85) {
_root.Market.buyItems.Ribben7.enabled = true;
_root.Market.buyItems.Ribben7.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben7);
}
if (_root.clickItemArray.length == 0) {
_root.Market.buyItems.cancelBtn.enabled = false;
_root.Market.buyBtn.enabled = false;
_root.Market.buyItems.cancelBtn._alpha = 50;
_root.Market.buyBtn._alpha = 50;
_root.Market.sellBtn.enabled = true;
_root.Market.factoryBtn.enabled = true;
_root.Market.farmBtn.enabled = true;
_root.Market.buyItems.bBtn.enabled = true;
_root.Market.buyItems.sBtn.enabled = true;
_root.Market.buyItems.lBtn.enabled = true;
}
}
}
Symbol 484 Button
on (release) {
if (_root.clickItemArray.length > 0) {
var Length = (_root.clickItemArray.length - 1);
_root.money = _root.money + _root.clickCostArray[Length];
_root.tottalCost = _root.tottalCost - _root.clickCostArray[Length];
if (_root.clickItemArray[Length] == 60) {
_root.ribben8--;
} else if (_root.clickItemArray[Length] == 80) {
_root.ribben9--;
} else if (_root.clickItemArray[Length] == 100) {
_root.ribben10--;
}
_root.clickItemArray.splice(Length);
_root.clickCostArray.splice(Length);
_root.itemArray.splice(0);
if (_root.money >= 60) {
_root.Market.buyItems.Ribben8.enabled = true;
_root.Market.buyItems.Ribben8.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben8);
}
if (_root.money >= 80) {
_root.Market.buyItems.Ribben9.enabled = true;
_root.Market.buyItems.Ribben9.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben9);
}
if (_root.money >= 100) {
_root.Market.buyItems.Ribben10.enabled = true;
_root.Market.buyItems.Ribben10.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben10);
}
if (_root.clickItemArray.length == 0) {
_root.Market.buyItems.cancelBtn.enabled = false;
_root.Market.buyBtn.enabled = false;
_root.Market.buyItems.cancelBtn._alpha = 50;
_root.Market.buyBtn._alpha = 50;
_root.Market.sellBtn.enabled = true;
_root.Market.factoryBtn.enabled = true;
_root.Market.farmBtn.enabled = true;
_root.Market.buyItems.bBtn.enabled = true;
_root.Market.buyItems.rBtn.enabled = true;
_root.Market.buyItems.rBtn.enabled = true;
}
}
}
Symbol 485 MovieClip Frame 1
stop();
_root.itemArray.splice(0);
_root.clickItemArray.splice(0);
_root.clickCostArray.splice(0);
_root.Market.buyItems.cancelBtn.enabled = false;
_root.Market.buyBtn.enabled = false;
_root.Market.buyItems.cancelBtn._alpha = 50;
_root.Market.buyBtn._alpha = 50;
_root.Market.buyItems.wFeed.gotoAndStop(2);
_root.Market.buyItems.rFeed.gotoAndStop(2);
_root.Market.buyItems.yFeed.gotoAndStop(2);
_root.Market.buyItems.wFeed.enabled = false;
_root.Market.buyItems.rFeed.enabled = false;
_root.Market.buyItems.yFeed.enabled = false;
if (_root.money >= 20) {
_root.Market.buyItems.wFeed.enabled = true;
_root.Market.buyItems.wFeed.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.wFeed);
}
if (_root.money >= 35) {
_root.Market.buyItems.rFeed.enabled = true;
_root.Market.buyItems.rFeed.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.rFeed);
}
if (_root.money >= 50) {
_root.Market.buyItems.yFeed.enabled = true;
_root.Market.buyItems.yFeed.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.yFeed);
}
Instance of Symbol 433 MovieClip "wFeed" in Symbol 485 MovieClip Frame 1
on (release) {
if (_root.money >= 20) {
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.bBtn.enabled = false;
_root.Market.buyItems.rBtn.enabled = false;
_root.Market.buyItems.lBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 20;
_root.feed1 = _root.feed1 + 6;
_root.money = _root.money - 20;
_root.clickItemArray.push(this);
_root.clickCostArray.push(20);
_root.itemArray.splice(0);
if (_root.money < 20) {
this.enabled = false;
this.gotoAndStop(2);
} else {
_root.itemArray.push(this);
}
if (_root.money < 35) {
_root.Market.buyItems.rFeed.enabled = false;
_root.Market.buyItems.rFeed.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.rFeed);
}
if (_root.money < 50) {
_root.Market.buyItems.yFeed.enabled = false;
_root.Market.buyItems.yFeed.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.yFeed);
}
}
}
Instance of Symbol 433 MovieClip "rFeed" in Symbol 485 MovieClip Frame 1
on (release) {
if (_root.money >= 35) {
_root.money = _root.money - 35;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.bBtn.enabled = false;
_root.Market.buyItems.rBtn.enabled = false;
_root.Market.buyItems.lBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 35;
_root.feed2 = _root.feed2 + 6;
_root.clickItemArray.push(this);
_root.clickCostArray.push(35);
_root.itemArray.splice(0);
if (_root.money < 35) {
this.enabled = false;
this.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.rFeed);
}
if (_root.money < 20) {
_root.Market.buyItems.wFeed.enabled = false;
_root.Market.buyItems.wFeed.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.wFeed);
}
if (_root.money < 50) {
_root.Market.buyItems.yFeed.enabled = false;
_root.Market.buyItems.yFeed.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.yFeed);
}
}
}
Instance of Symbol 433 MovieClip "yFeed" in Symbol 485 MovieClip Frame 1
on (release) {
if (_root.money >= 50) {
_root.money = _root.money - 50;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.bBtn.enabled = false;
_root.Market.buyItems.rBtn.enabled = false;
_root.Market.buyItems.lBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 50;
_root.feed3 = _root.feed3 + 6;
_root.clickItemArray.push(this);
_root.clickCostArray.push(50);
_root.itemArray.splice(0);
if (_root.money < 50) {
this.enabled = false;
this.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.yFeed);
}
if (_root.money < 20) {
_root.Market.buyItems.wFeed.enabled = false;
_root.Market.buyItems.wFeed.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.wFeed);
}
if (_root.money < 35) {
_root.Market.buyItems.rFeed.enabled = false;
_root.Market.buyItems.rFeed.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.rFeed);
}
}
}
Symbol 485 MovieClip Frame 2
stop();
_root.itemArray.splice(0);
_root.clickItemArray.splice(0);
_root.clickCostArray.splice(0);
_root.Market.buyItems.cancelBtn.enabled = false;
_root.Market.buyBtn.enabled = false;
_root.Market.buyItems.cancelBtn._alpha = 50;
_root.Market.buyBtn._alpha = 50;
_root.Market.buyItems.maker1.gotoAndStop(2);
_root.Market.buyItems.maker2.gotoAndStop(2);
_root.Market.buyItems.maker3.gotoAndStop(2);
_root.Market.buyItems.maker1.enabled = false;
_root.Market.buyItems.maker2.enabled = false;
_root.Market.buyItems.maker3.enabled = false;
if ((_root.money >= 100) && (!_root.maker1)) {
_root.Market.buyItems.maker1.enabled = true;
_root.Market.buyItems.maker1.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.maker1);
}
if ((_root.money >= 250) && (!_root.maker2)) {
_root.Market.buyItems.maker2.enabled = true;
_root.Market.buyItems.maker2.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.maker2);
}
if ((_root.money >= 500) && (!_root.maker3)) {
_root.Market.buyItems.maker3.enabled = true;
_root.Market.buyItems.maker3.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.maker3);
}
Instance of Symbol 448 MovieClip "maker1" in Symbol 485 MovieClip Frame 2
on (release) {
if (_root.money >= 100) {
_root.money = _root.money - 100;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.sBtn.enabled = false;
_root.Market.buyItems.rBtn.enabled = false;
_root.Market.buyItems.lBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 100;
_root.bundletable1.makeFlag = false;
_root.maker1 = true;
_root.makerMsg = false;
_root.clickItemArray.push(this);
_root.clickCostArray.push(100);
_root.bundletable1.gotoAndStop(1);
_root.bundletable1.Arrows.gotoAndStop(1);
_root.bundletable1.lifeBar.gotoAndStop(1);
_root.bundletable1.flrType = "";
_root.bundletable1.flrCount = 0;
_root.bundletable1.waitingTime = 0;
_root.bundletable1.enabled = false;
this.enabled = false;
this.gotoAndStop(2);
_root.itemArray.splice(0);
if (_root.money < 250) {
_root.Market.buyItems.maker2.enabled = false;
_root.Market.buyItems.maker2.gotoAndStop(2);
} else if (!_root.maker2) {
_root.itemArray.push(_root.Market.buyItems.maker2);
}
if (_root.money < 500) {
_root.Market.buyItems.maker3.enabled = false;
_root.Market.buyItems.maker3.gotoAndStop(2);
} else if (!_root.maker3) {
_root.itemArray.push(_root.Market.buyItems.maker3);
}
}
}
Instance of Symbol 450 MovieClip "maker2" in Symbol 485 MovieClip Frame 2
on (release) {
if (_root.money >= 250) {
_root.money = _root.money - 250;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.sBtn.enabled = false;
_root.Market.buyItems.rBtn.enabled = false;
_root.Market.buyItems.lBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 250;
_root.bundletable2.makeFlag = false;
_root.maker2 = true;
_root.makerMsg = false;
_root.clickItemArray.push(this);
_root.clickCostArray.push(250);
_root.bundletable2.gotoAndStop(1);
_root.bundletable2.lifeBar.gotoAndStop(1);
_root.bundletable2.flrType = "";
_root.bundletable2.flr1Type = "";
_root.bundletable2.flr2Type = "";
_root.bundletable2.flrCount = 0;
_root.bundletable2.flr1Count = 0;
_root.bundletable2.flr2Count = 0;
_root.bundletable2.Arrows.gotoAndStop(1);
_root.bundletable2.waitingTime = 0;
_root.bundletable2.enabled = false;
this.enabled = false;
this.gotoAndStop(2);
_root.itemArray.splice(0);
if (_root.money < 100) {
_root.Market.buyItems.maker1.enabled = false;
_root.Market.buyItems.maker1.gotoAndStop(2);
} else if (!_root.maker1) {
_root.itemArray.push(_root.Market.buyItems.maker1);
}
if (_root.money < 500) {
_root.Market.buyItems.maker3.enabled = false;
_root.Market.buyItems.maker3.gotoAndStop(2);
} else if (!_root.maker3) {
_root.itemArray.push(_root.Market.buyItems.maker3);
}
}
}
Instance of Symbol 452 MovieClip "maker3" in Symbol 485 MovieClip Frame 2
on (release) {
if (_root.money >= 500) {
_root.money = _root.money - 500;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.sBtn.enabled = false;
_root.Market.buyItems.rBtn.enabled = false;
_root.Market.buyItems.lBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 500;
_root.bundletable3.makeFlag = false;
_root.maker3 = true;
_root.makerMsg = false;
_root.clickItemArray.push(this);
_root.clickCostArray.push(500);
_root.bundletable3.gotoAndStop(1);
_root.bundletable3.lifeBar.gotoAndStop(1);
_root.bundletable3.flrType = "";
_root.bundletable3.flr1Type = "";
_root.bundletable3.flr2Type = "";
_root.bundletable3.flr3Type = "";
_root.bundletable3.flrCount = 0;
_root.bundletable3.flr1Count = 0;
_root.bundletable3.flr2Count = 0;
_root.bundletable3.flr3Count = 0;
_root.bundletable3.Arrows.gotoAndStop(1);
_root.bundletable3.waitingTime = 0;
_root.bundletable3.enabled = false;
this.enabled = false;
this.gotoAndStop(2);
_root.itemArray.splice(0);
if (_root.money < 100) {
_root.Market.buyItems.maker1.enabled = false;
_root.Market.buyItems.maker1.gotoAndStop(2);
} else if (!_root.maker1) {
_root.itemArray.push(_root.Market.buyItems.maker1);
}
if (_root.money < 250) {
_root.Market.buyItems.maker2.enabled = false;
_root.Market.buyItems.maker2.gotoAndStop(2);
} else if (!_root.maker2) {
_root.itemArray.push(_root.Market.buyItems.maker2);
}
}
}
Symbol 485 MovieClip Frame 3
stop();
_root.itemArray.splice(0);
_root.clickItemArray.splice(0);
_root.clickCostArray.splice(0);
_root.Market.buyItems.cancelBtn.enabled = false;
_root.Market.buyBtn.enabled = false;
_root.Market.buyItems.cancelBtn._alpha = 50;
_root.Market.buyBtn._alpha = 50;
_root.Market.buyItems.Ribben1.enabled = false;
_root.Market.buyItems.Ribben2.enabled = false;
_root.Market.buyItems.Ribben3.enabled = false;
_root.Market.buyItems.Ribben4.enabled = false;
_root.Market.buyItems.Ribben5.enabled = false;
_root.Market.buyItems.Ribben6.enabled = false;
_root.Market.buyItems.Ribben7.enabled = false;
_root.Market.buyItems.Ribben1.gotoAndStop(2);
_root.Market.buyItems.Ribben2.gotoAndStop(2);
_root.Market.buyItems.Ribben3.gotoAndStop(2);
_root.Market.buyItems.Ribben4.gotoAndStop(2);
_root.Market.buyItems.Ribben5.gotoAndStop(2);
_root.Market.buyItems.Ribben6.gotoAndStop(2);
_root.Market.buyItems.Ribben7.gotoAndStop(2);
if (_root.money >= 10) {
_root.Market.buyItems.Ribben1.enabled = true;
_root.Market.buyItems.Ribben1.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben1);
}
if (_root.money >= 15) {
_root.Market.buyItems.Ribben2.enabled = true;
_root.Market.buyItems.Ribben2.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben2);
}
if (_root.money >= 20) {
_root.Market.buyItems.Ribben3.enabled = true;
_root.Market.buyItems.Ribben3.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben3);
}
if (_root.money >= 30) {
_root.Market.buyItems.Ribben4.enabled = true;
_root.Market.buyItems.Ribben4.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben4);
}
if (_root.money >= 70) {
_root.Market.buyItems.Ribben5.enabled = true;
_root.Market.buyItems.Ribben5.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben5);
}
if (_root.money >= 50) {
_root.Market.buyItems.Ribben6.enabled = true;
_root.Market.buyItems.Ribben6.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben6);
}
if (_root.money >= 85) {
_root.Market.buyItems.Ribben7.enabled = true;
_root.Market.buyItems.Ribben7.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben7);
}
Instance of Symbol 433 MovieClip "Ribben1" in Symbol 485 MovieClip Frame 3
on (release) {
if (_root.money >= 10) {
_root.money = _root.money - 10;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.sBtn.enabled = false;
_root.Market.buyItems.bBtn.enabled = false;
_root.Market.buyItems.lBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 10;
_root.ribben1++;
_root.clickItemArray.push(this);
_root.clickCostArray.push(10);
_root.itemArray.splice(0);
if (_root.money < 10) {
this.enabled = false;
this.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben1);
}
if (_root.money < 15) {
_root.Market.buyItems.Ribben2.enabled = false;
_root.Market.buyItems.Ribben2.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben2);
}
if (_root.money < 20) {
_root.Market.buyItems.Ribben3.enabled = false;
_root.Market.buyItems.Ribben3.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben3);
}
if (_root.money < 30) {
_root.Market.buyItems.Ribben4.enabled = false;
_root.Market.buyItems.Ribben4.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben4);
}
if (_root.money < 70) {
_root.Market.buyItems.Ribben5.enabled = false;
_root.Market.buyItems.Ribben5.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben5);
}
if (_root.money < 50) {
_root.Market.buyItems.Ribben6.enabled = false;
_root.Market.buyItems.Ribben6.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben6);
}
if (_root.money < 85) {
_root.Market.buyItems.Ribben7.enabled = false;
_root.Market.buyItems.Ribben7.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben7);
}
}
}
Instance of Symbol 433 MovieClip "Ribben2" in Symbol 485 MovieClip Frame 3
on (release) {
if (_root.money >= 15) {
_root.money = _root.money - 15;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.sBtn.enabled = false;
_root.Market.buyItems.bBtn.enabled = false;
_root.Market.buyItems.lBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 15;
_root.ribben2++;
_root.clickItemArray.push(this);
_root.clickCostArray.push(15);
_root.itemArray.splice(0);
if (_root.money < 15) {
this.enabled = false;
this.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben2);
}
if (_root.money < 10) {
_root.Market.buyItems.Ribben1.enabled = false;
_root.Market.buyItems.Ribben1.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben1);
}
if (_root.money < 20) {
_root.Market.buyItems.Ribben3.enabled = false;
_root.Market.buyItems.Ribben3.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben3);
}
if (_root.money < 30) {
_root.Market.buyItems.Ribben4.enabled = false;
_root.Market.buyItems.Ribben4.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben4);
}
if (_root.money < 70) {
_root.Market.buyItems.Ribben5.enabled = false;
_root.Market.buyItems.Ribben5.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben5);
}
if (_root.money < 50) {
_root.Market.buyItems.Ribben6.enabled = false;
_root.Market.buyItems.Ribben6.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben6);
}
if (_root.money < 85) {
_root.Market.buyItems.Ribben7.enabled = false;
_root.Market.buyItems.Ribben7.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben7);
}
}
}
Instance of Symbol 433 MovieClip "Ribben3" in Symbol 485 MovieClip Frame 3
on (release) {
if (_root.money >= 20) {
_root.money = _root.money - 20;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.sBtn.enabled = false;
_root.Market.buyItems.bBtn.enabled = false;
_root.Market.buyItems.lBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 20;
_root.ribben3++;
_root.clickItemArray.push(this);
_root.clickCostArray.push(20);
_root.itemArray.splice(0);
if (_root.money < 20) {
this.enabled = false;
this.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben3);
}
if (_root.money < 10) {
_root.Market.buyItems.Ribben1.enabled = false;
_root.Market.buyItems.Ribben1.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben1);
}
if (_root.money < 15) {
_root.Market.buyItems.Ribben2.enabled = false;
_root.Market.buyItems.Ribben2.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben2);
}
if (_root.money < 30) {
_root.Market.buyItems.Ribben4.enabled = false;
_root.Market.buyItems.Ribben4.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben4);
}
if (_root.money < 70) {
_root.Market.buyItems.Ribben5.enabled = false;
_root.Market.buyItems.Ribben5.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben5);
}
if (_root.money < 50) {
_root.Market.buyItems.Ribben6.enabled = false;
_root.Market.buyItems.Ribben6.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben6);
}
if (_root.money < 85) {
_root.Market.buyItems.Ribben7.enabled = false;
_root.Market.buyItems.Ribben7.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben7);
}
}
}
Instance of Symbol 433 MovieClip "Ribben4" in Symbol 485 MovieClip Frame 3
on (release) {
if (_root.money >= 30) {
_root.money = _root.money - 30;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.sBtn.enabled = false;
_root.Market.buyItems.bBtn.enabled = false;
_root.Market.buyItems.lBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 30;
_root.ribben4++;
_root.clickItemArray.push(this);
_root.clickCostArray.push(30);
_root.itemArray.splice(0);
if (_root.money < 30) {
this.enabled = false;
this.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben4);
}
if (_root.money < 10) {
_root.Market.buyItems.Ribben1.enabled = false;
_root.Market.buyItems.Ribben1.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben1);
}
if (_root.money < 15) {
_root.Market.buyItems.Ribben2.enabled = false;
_root.Market.buyItems.Ribben2.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben2);
}
if (_root.money < 20) {
_root.Market.buyItems.Ribben3.enabled = false;
_root.Market.buyItems.Ribben3.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben3);
}
if (_root.money < 70) {
_root.Market.buyItems.Ribben5.enabled = false;
_root.Market.buyItems.Ribben5.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben5);
}
if (_root.money < 50) {
_root.Market.buyItems.Ribben6.enabled = false;
_root.Market.buyItems.Ribben6.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben6);
}
if (_root.money < 85) {
_root.Market.buyItems.Ribben7.enabled = false;
_root.Market.buyItems.Ribben7.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben7);
}
}
}
Instance of Symbol 433 MovieClip "Ribben5" in Symbol 485 MovieClip Frame 3
on (release) {
if (_root.money >= 70) {
_root.money = _root.money - 70;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.sBtn.enabled = false;
_root.Market.buyItems.bBtn.enabled = false;
_root.Market.buyItems.lBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 70;
_root.ribben5++;
_root.clickItemArray.push(this);
_root.clickCostArray.push(70);
_root.itemArray.splice(0);
if (_root.money < 70) {
this.enabled = false;
this.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben5);
}
if (_root.money < 10) {
_root.Market.buyItems.Ribben1.enabled = false;
_root.Market.buyItems.Ribben1.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben1);
}
if (_root.money < 15) {
_root.Market.buyItems.Ribben2.enabled = false;
_root.Market.buyItems.Ribben2.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben2);
}
if (_root.money < 20) {
_root.Market.buyItems.Ribben3.enabled = false;
_root.Market.buyItems.Ribben3.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben3);
}
if (_root.money < 30) {
_root.Market.buyItems.Ribben4.enabled = false;
_root.Market.buyItems.Ribben4.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben4);
}
if (_root.money < 50) {
_root.Market.buyItems.Ribben6.enabled = false;
_root.Market.buyItems.Ribben6.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben6);
}
if (_root.money < 85) {
_root.Market.buyItems.Ribben7.enabled = false;
_root.Market.buyItems.Ribben7.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben7);
}
}
}
Instance of Symbol 433 MovieClip "Ribben6" in Symbol 485 MovieClip Frame 3
on (release) {
if (_root.money >= 50) {
_root.money = _root.money - 50;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.sBtn.enabled = false;
_root.Market.buyItems.bBtn.enabled = false;
_root.Market.buyItems.lBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 50;
_root.ribben6++;
_root.clickItemArray.push(this);
_root.clickCostArray.push(50);
_root.itemArray.splice(0);
if (_root.money < 50) {
this.enabled = false;
this.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben6);
}
if (_root.money < 10) {
_root.Market.buyItems.Ribben1.enabled = false;
_root.Market.buyItems.Ribben1.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben1);
}
if (_root.money < 15) {
_root.Market.buyItems.Ribben2.enabled = false;
_root.Market.buyItems.Ribben2.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben2);
}
if (_root.money < 20) {
_root.Market.buyItems.Ribben3.enabled = false;
_root.Market.buyItems.Ribben3.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben3);
}
if (_root.money < 30) {
_root.Market.buyItems.Ribben4.enabled = false;
_root.Market.buyItems.Ribben4.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben4);
}
if (_root.money < 70) {
_root.Market.buyItems.Ribben5.enabled = false;
_root.Market.buyItems.Ribben5.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben5);
}
if (_root.money < 85) {
_root.Market.buyItems.Ribben7.enabled = false;
_root.Market.buyItems.Ribben7.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben7);
}
}
}
Instance of Symbol 433 MovieClip "Ribben7" in Symbol 485 MovieClip Frame 3
on (release) {
if (_root.money >= 85) {
_root.money = _root.money - 85;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.sBtn.enabled = false;
_root.Market.buyItems.bBtn.enabled = false;
_root.Market.buyItems.lBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 85;
_root.ribben7++;
_root.clickItemArray.push(this);
_root.clickCostArray.push(85);
_root.itemArray.splice(0);
if (_root.money < 85) {
this.enabled = false;
this.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben7);
}
if (_root.money < 10) {
_root.Market.buyItems.Ribben1.enabled = false;
_root.Market.buyItems.Ribben1.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben1);
}
if (_root.money < 15) {
_root.Market.buyItems.Ribben2.enabled = false;
_root.Market.buyItems.Ribben2.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben2);
}
if (_root.money < 20) {
_root.Market.buyItems.Ribben3.enabled = false;
_root.Market.buyItems.Ribben3.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben3);
}
if (_root.money < 30) {
_root.Market.buyItems.Ribben4.enabled = false;
_root.Market.buyItems.Ribben4.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben4);
}
if (_root.money < 70) {
_root.Market.buyItems.Ribben5.enabled = false;
_root.Market.buyItems.Ribben5.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben5);
}
if (_root.money < 50) {
_root.Market.buyItems.Ribben6.enabled = false;
_root.Market.buyItems.Ribben6.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben6);
}
}
}
Symbol 485 MovieClip Frame 4
stop();
_root.itemArray.splice(0);
_root.clickItemArray.splice(0);
_root.clickCostArray.splice(0);
_root.Market.buyItems.cancelBtn.enabled = false;
_root.Market.buyBtn.enabled = false;
_root.Market.buyItems.cancelBtn._alpha = 50;
_root.Market.buyBtn._alpha = 50;
_root.Market.buyItems.Ribben8.enabled = false;
_root.Market.buyItems.Ribben9.enabled = false;
_root.Market.buyItems.Ribben10.enabled = false;
_root.Market.buyItems.Ribben8.gotoAndStop(2);
_root.Market.buyItems.Ribben9.gotoAndStop(2);
_root.Market.buyItems.Ribben10.gotoAndStop(2);
if (_root.money >= 60) {
_root.Market.buyItems.Ribben8.enabled = true;
_root.Market.buyItems.Ribben8.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben8);
}
if (_root.money >= 80) {
_root.Market.buyItems.Ribben9.enabled = true;
_root.Market.buyItems.Ribben9.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben9);
}
if (_root.money >= 100) {
_root.Market.buyItems.Ribben10.enabled = true;
_root.Market.buyItems.Ribben10.gotoAndStop(1);
_root.itemArray.push(_root.Market.buyItems.Ribben10);
}
Instance of Symbol 433 MovieClip "Ribben8" in Symbol 485 MovieClip Frame 4
on (release) {
if (_root.money >= 60) {
_root.money = _root.money - 60;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.sBtn.enabled = false;
_root.Market.buyItems.bBtn.enabled = false;
_root.Market.buyItems.rBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 60;
_root.ribben8++;
_root.clickItemArray.push(this);
_root.clickCostArray.push(60);
_root.itemArray.splice(0);
if (_root.money < 60) {
this.enabled = false;
this.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben8);
}
if (_root.money < 80) {
_root.Market.buyItems.Ribben9.enabled = false;
_root.Market.buyItems.Ribben9.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben9);
}
if (_root.money < 100) {
_root.Market.buyItems.Ribben10.enabled = false;
_root.Market.buyItems.Ribben10.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben10);
}
}
}
Instance of Symbol 433 MovieClip "Ribben9" in Symbol 485 MovieClip Frame 4
on (release) {
if (_root.money >= 80) {
_root.money = _root.money - 80;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.sBtn.enabled = false;
_root.Market.buyItems.bBtn.enabled = false;
_root.Market.buyItems.rBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 80;
_root.ribben9++;
_root.clickItemArray.push(this);
_root.clickCostArray.push(80);
_root.itemArray.splice(0);
if (_root.money < 80) {
this.enabled = false;
this.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben9);
}
if (_root.money < 60) {
_root.Market.buyItems.Ribben8.enabled = false;
_root.Market.buyItems.Ribben8.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben8);
}
if (_root.money < 100) {
_root.Market.buyItems.Ribben10.enabled = false;
_root.Market.buyItems.Ribben10.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben10);
}
}
}
Instance of Symbol 433 MovieClip "Ribben10" in Symbol 485 MovieClip Frame 4
on (release) {
if (_root.money >= 100) {
_root.money = _root.money - 100;
_root.Market.buyItems.cancelBtn.enabled = true;
_root.Market.buyBtn.enabled = true;
_root.Market.buyItems.cancelBtn._alpha = 100;
_root.Market.buyBtn._alpha = 100;
_root.Market.sellBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.buyItems.sBtn.enabled = false;
_root.Market.buyItems.bBtn.enabled = false;
_root.Market.buyItems.rBtn.enabled = false;
_root.tottalCost = _root.tottalCost + 100;
_root.ribben10++;
_root.clickItemArray.push(this);
_root.clickCostArray.push(100);
_root.itemArray.splice(0);
if (_root.money < 100) {
this.enabled = false;
this.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben10);
}
if (_root.money < 60) {
_root.Market.buyItems.Ribben8.enabled = false;
_root.Market.buyItems.Ribben8.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben8);
}
if (_root.money < 80) {
_root.Market.buyItems.Ribben9.enabled = false;
_root.Market.buyItems.Ribben9.gotoAndStop(2);
} else {
_root.itemArray.push(_root.Market.buyItems.Ribben9);
}
}
}
Symbol 488 Button
on (release) {
_root.Market.gotoAndStop("purchase");
}
Symbol 490 Button
on (release) {
_root.score = _root.score + _root.tottalCost;
_root.endBox.gotoAndPlay("sell");
_root.clickItemArray.splice(0);
_root.clickCostArray.splice(0);
_root.Market.sellItems.cancelBtn.enabled = false;
var i = 0;
while (i < _root.itemArray.length) {
_root.itemArray[i].enabled = false;
i++;
}
_root.setCloseFunction();
_root.Market.sellBtn.enabled = false;
_root.Market.sellItems.cancelBtn._alpha = 50;
_root.Market.sellBtn._alpha = 50;
}
Symbol 491 Button
on (release) {
if (!_root.newDay) {
_root.Paused = false;
_root.bundletable1.play();
_root.bundletable2.play();
_root.bundletable3.play();
var i = 0;
while (i < _root.buttonsArray.length) {
_root.buttonsArray[i].enabled = true;
i++;
}
var j = 0;
while (j < _root.unbuttonsArray.length) {
_root[_root.unbuttonsArray[j]].enabled = false;
j++;
}
_root.logo_Btn.games2girls_button.enabled = true;
_root.Market.gotoAndStop(1);
} else {
_root.logo_Btn.games2girls_button.enabled = true;
_root.Market.gotoAndStop(1);
_root.startBox.gotoAndPlay(2);
}
}
Symbol 499 Button
on (release) {
_root.Market.sellItems.gotoAndStop(2);
}
Symbol 522 Button
on (release) {
if (_root.clickItemArray.length > 0) {
var Length = (_root.clickItemArray.length - 1);
_root.tottalCost = _root.tottalCost - _root.clickCostArray[Length];
_root.money = _root.money - _root.clickCostArray[Length];
if (_root.clickCostArray[Length] == 30) {
_root.HmWFCount++;
_root.totalFHead1++;
} else if (_root.clickCostArray[Length] == 40) {
_root.HmRFCount++;
_root.totalFHead1++;
} else if (_root.clickCostArray[Length] == 50) {
_root.HmYFCount++;
_root.totalFHead1++;
} else if (_root.clickCostArray[Length] == 80) {
_root.HmWRFCount++;
_root.totalFHead2++;
} else if (_root.clickCostArray[Length] == 100) {
_root.HmWYFCount++;
_root.totalFHead2++;
} else if (_root.clickCostArray[Length] == 120) {
_root.HmRYFCount++;
_root.totalFHead2++;
} else if (_root.clickCostArray[Length] == 200) {
_root.HmWRYFCount++;
_root.totalFHead3++;
}
_root.clickItemArray.splice(Length);
_root.clickCostArray.splice(Length);
_root.itemArray.splice(0);
if (_root.HmWFCount > 0) {
_root.Market.sellItems.WFlowers.enabled = true;
_root.Market.sellItems.WFlowers._alpha = 100;
_root.itemArray.push(_root.Market.sellItems.WFlowers);
}
if (_root.HmRFCount > 0) {
_root.Market.sellItems.RFlowers.enabled = true;
_root.Market.sellItems.RFlowers._alpha = 100;
_root.itemArray.push(_root.Market.sellItems.RFlowers);
}
if (_root.HmYFCount > 0) {
_root.Market.sellItems.YFlowers.enabled = true;
_root.Market.sellItems.YFlowers._alpha = 100;
_root.itemArray.push(_root.Market.sellItems.YFlowers);
}
if (_root.HmWRFCount > 0) {
_root.Market.sellItems.WRFlowers.enabled = true;
_root.Market.sellItems.WRFlowers._alpha = 100;
_root.itemArray.push(_root.Market.sellItems.WRFlowers);
}
if (_root.HmRYFCount > 0) {
_root.Market.sellItems.RYFlowers.enabled = true;
_root.Market.sellItems.RYFlowers._alpha = 100;
_root.itemArray.push(_root.Market.sellItems.WYFlowers);
}
if (_root.HmWYFCount > 0) {
_root.Market.sellItems.WYFlowers.enabled = true;
_root.Market.sellItems.WYFlowers._alpha = 100;
_root.itemArray.push(_root.Market.sellItems.RYFlowers);
}
if (_root.HmWRYFCount > 0) {
_root.Market.sellItems.WRYFlowers.enabled = true;
_root.Market.sellItems.WRYFlowers._alpha = 100;
_root.itemArray.push(_root.Market.sellItems.WRYFlowers);
}
if (_root.clickItemArray.length == 0) {
_root.Market.sellItems.cancelBtn.enabled = false;
_root.Market.sellBtn.enabled = false;
_root.Market.sellItems.cancelBtn._alpha = 50;
_root.Market.sellBtn._alpha = 50;
_root.Market.purchaseBtn.enabled = true;
_root.Market.factoryBtn.enabled = true;
_root.Market.farmBtn.enabled = true;
_root.Market.sellItems.b1Btn.enabled = true;
}
}
}
Symbol 532 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 1
stop();
Symbol 557 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 1
stop();
Symbol 562 Button
on (release) {
_root.Market.sellItems.gotoAndStop(1);
}
Symbol 563 Button
on (release) {
if (_root.clickItemArray.length > 0) {
_root.itemArray.splice(0);
var Length = (_root.clickCostArray.length - 1);
var Length1 = (_root.clickItemArray.length - 1);
_root.tottalCost = _root.tottalCost - _root.clickCostArray[Length];
_root.money = _root.money - _root.clickCostArray[Length];
if (_root.clickItemArray[Length1] == 1) {
_root.Market.sellItems.bqts1.flower.gotoAndStop(_root.clickItemArray[Length1 - 1]);
_root.Market.sellItems.bqts1.leaf.gotoAndStop(_root.clickItemArray[Length1 - 2]);
_root.Market.sellItems.bqts1.ribben.gotoAndStop(_root.clickItemArray[Length1 - 3]);
_root.b1Array.push(_root.clickItemArray[Length1 - 3]);
_root.b1Array.push(_root.clickItemArray[Length1 - 2]);
_root.b1Array.push(_root.clickItemArray[Length1 - 1]);
_root.b1Cost = _root.clickCostArray[Length];
_root.Market.sellItems.bqts1.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts1);
} else if (_root.clickItemArray[Length1] == 2) {
_root.Market.sellItems.bqts2.flower.gotoAndStop(_root.clickItemArray[Length1 - 1]);
_root.Market.sellItems.bqts2.leaf.gotoAndStop(_root.clickItemArray[Length1 - 2]);
_root.Market.sellItems.bqts2.ribben.gotoAndStop(_root.clickItemArray[Length1 - 3]);
_root.b2Array.push(_root.clickItemArray[Length1 - 3]);
_root.b2Array.push(_root.clickItemArray[Length1 - 2]);
_root.b2Array.push(_root.clickItemArray[Length1 - 1]);
_root.b2Cost = _root.clickCostArray[Length];
_root.Market.sellItems.bqts2.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts2);
} else if (_root.clickItemArray[Length1] == 3) {
_root.Market.sellItems.bqts3.flower.gotoAndStop(_root.clickItemArray[Length1 - 1]);
_root.Market.sellItems.bqts3.leaf.gotoAndStop(_root.clickItemArray[Length1 - 2]);
_root.Market.sellItems.bqts3.ribben.gotoAndStop(_root.clickItemArray[Length1 - 3]);
_root.b3Array.push(_root.clickItemArray[Length1 - 3]);
_root.b3Array.push(_root.clickItemArray[Length1 - 2]);
_root.b3Array.push(_root.clickItemArray[Length1 - 1]);
_root.b3Cost = _root.clickCostArray[Length];
_root.Market.sellItems.bqts3.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts3);
} else if (_root.clickItemArray[Length1] == 4) {
_root.Market.sellItems.bqts4.flower.gotoAndStop(_root.clickItemArray[Length1 - 1]);
_root.Market.sellItems.bqts4.leaf.gotoAndStop(_root.clickItemArray[Length1 - 2]);
_root.Market.sellItems.bqts4.ribben.gotoAndStop(_root.clickItemArray[Length1 - 3]);
_root.b4Array.push(_root.clickItemArray[Length1 - 3]);
_root.b4Array.push(_root.clickItemArray[Length1 - 2]);
_root.b4Array.push(_root.clickItemArray[Length1 - 1]);
_root.b4Cost = _root.clickCostArray[Length];
_root.Market.sellItems.bqts4.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts4);
} else if (_root.clickItemArray[Length1] == 5) {
_root.Market.sellItems.bqts5.flower.gotoAndStop(_root.clickItemArray[Length1 - 1]);
_root.Market.sellItems.bqts5.leaf.gotoAndStop(_root.clickItemArray[Length1 - 2]);
_root.Market.sellItems.bqts5.ribben.gotoAndStop(_root.clickItemArray[Length1 - 3]);
_root.b5Array.push(_root.clickItemArray[Length1 - 3]);
_root.b5Array.push(_root.clickItemArray[Length1 - 2]);
_root.b5Array.push(_root.clickItemArray[Length1 - 1]);
_root.b5Cost = _root.clickCostArray[Length];
_root.Market.sellItems.bqts5.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts5);
} else if (_root.clickItemArray[Length1] == 6) {
_root.Market.sellItems.bqts6.flower.gotoAndStop(_root.clickItemArray[Length1 - 1]);
_root.Market.sellItems.bqts6.leaf.gotoAndStop(_root.clickItemArray[Length1 - 2]);
_root.Market.sellItems.bqts6.ribben.gotoAndStop(_root.clickItemArray[Length1 - 3]);
_root.b6Array.push(_root.clickItemArray[Length1 - 3]);
_root.b6Array.push(_root.clickItemArray[Length1 - 2]);
_root.b6Array.push(_root.clickItemArray[Length1 - 1]);
_root.b6Cost = _root.clickCostArray[Length];
_root.Market.sellItems.bqts6.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts6);
} else if (_root.clickItemArray[Length1] == 7) {
_root.Market.sellItems.bqts7.flower.gotoAndStop(_root.clickItemArray[Length1 - 1]);
_root.Market.sellItems.bqts7.leaf.gotoAndStop(_root.clickItemArray[Length1 - 2]);
_root.Market.sellItems.bqts7.ribben.gotoAndStop(_root.clickItemArray[Length1 - 3]);
_root.b7Array.push(_root.clickItemArray[Length1 - 3]);
_root.b7Array.push(_root.clickItemArray[Length1 - 2]);
_root.b7Array.push(_root.clickItemArray[Length1 - 1]);
_root.b7Cost = _root.clickCostArray[Length];
_root.Market.sellItems.bqts7.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts7);
} else if (_root.clickItemArray[Length1] == 8) {
_root.Market.sellItems.bqts8.flower.gotoAndStop(_root.clickItemArray[Length1 - 1]);
_root.Market.sellItems.bqts8.leaf.gotoAndStop(_root.clickItemArray[Length1 - 2]);
_root.Market.sellItems.bqts8.ribben.gotoAndStop(_root.clickItemArray[Length1 - 3]);
_root.b8Array.push(_root.clickItemArray[Length1 - 3]);
_root.b8Array.push(_root.clickItemArray[Length1 - 2]);
_root.b8Array.push(_root.clickItemArray[Length1 - 1]);
_root.b8Cost = _root.clickCostArray[Length];
_root.Market.sellItems.bqts8.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts8);
}
_root.clickItemArray.splice(Length1 - 3);
_root.clickCostArray.splice(Length);
if (_root.clickItemArray.length == 0) {
_root.Market.sellItems.cancelBtn.enabled = false;
_root.Market.sellBtn.enabled = false;
_root.Market.sellItems.cancelBtn._alpha = 50;
_root.Market.sellBtn._alpha = 50;
_root.Market.purchaseBtn.enabled = true;
_root.Market.factoryBtn.enabled = true;
_root.Market.farmBtn.enabled = true;
_root.Market.sellItems.b2Btn.enabled = true;
}
}
}
Symbol 564 MovieClip Frame 1
stop();
_root.itemArray.splice(0);
_root.clickItemArray.splice(0);
_root.clickCostArray.splice(0);
_root.Market.sellItems.cancelBtn.enabled = false;
_root.Market.sellBtn.enabled = false;
_root.Market.sellItems.cancelBtn._alpha = 50;
_root.Market.sellBtn._alpha = 50;
_root.Market.sellItems.WFlowers.enabled = false;
_root.Market.sellItems.RFlowers.enabled = false;
_root.Market.sellItems.YFlowers.enabled = false;
_root.Market.sellItems.WRFlowers.enabled = false;
_root.Market.sellItems.WYFlowers.enabled = false;
_root.Market.sellItems.RYFlowers.enabled = false;
_root.Market.sellItems.WRYFlowers.enabled = false;
_root.Market.sellItems.WFlowers._alpha = 20;
_root.Market.sellItems.RFlowers._alpha = 20;
_root.Market.sellItems.YFlowers._alpha = 20;
_root.Market.sellItems.WRFlowers._alpha = 20;
_root.Market.sellItems.WYFlowers._alpha = 20;
_root.Market.sellItems.RYFlowers._alpha = 20;
_root.Market.sellItems.WRYFlowers._alpha = 20;
if (_root.HmWFCount > 0) {
_root.Market.sellItems.WFlowers.enabled = true;
_root.Market.sellItems.WFlowers._alpha = 100;
_root.itemArray.push(_root.Market.sellItems.WFlowers);
}
if (_root.HmRFCount > 0) {
_root.Market.sellItems.RFlowers.enabled = true;
_root.Market.sellItems.RFlowers._alpha = 100;
_root.itemArray.push(_root.Market.sellItems.RFlowers);
}
if (_root.HmYFCount > 0) {
_root.Market.sellItems.YFlowers.enabled = true;
_root.Market.sellItems.YFlowers._alpha = 100;
_root.itemArray.push(_root.Market.sellItems.YFlowers);
}
if (_root.HmWRFCount > 0) {
_root.Market.sellItems.WRFlowers.enabled = true;
_root.Market.sellItems.WRFlowers._alpha = 100;
_root.itemArray.push(_root.Market.sellItems.WRFlowers);
}
if (_root.HmWYFCount > 0) {
_root.Market.sellItems.WYFlowers.enabled = true;
_root.Market.sellItems.WYFlowers._alpha = 100;
_root.itemArray.push(_root.Market.sellItems.WYFlowers);
}
if (_root.HmRYFCount > 0) {
_root.Market.sellItems.RYFlowers.enabled = true;
_root.Market.sellItems.RYFlowers._alpha = 100;
_root.itemArray.push(_root.Market.sellItems.RYFlowers);
}
if (_root.HmWRYFCount > 0) {
_root.Market.sellItems.WRYFlowers.enabled = true;
_root.Market.sellItems.WRYFlowers._alpha = 100;
_root.itemArray.push(_root.Market.sellItems.WRYFlowers);
}
Instance of Symbol 501 MovieClip "WFlowers" in Symbol 564 MovieClip Frame 1
on (release) {
if (_root.HmWFCount > 0) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b1Btn.enabled = false;
_root.HmWFCount--;
_root.totalFHead1--;
_root.tottalCost = _root.tottalCost + 30;
_root.money = _root.money + 30;
_root.clickItemArray.push(this);
_root.clickCostArray.push(30);
if (_root.HmWFCount == 0) {
_root.Market.sellItems.WFlowers.enabled = false;
_root.Market.sellItems.WFlowers._alpha = 20;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == _root.Market.sellItems.WFlowers) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
}
}
Instance of Symbol 503 MovieClip "RFlowers" in Symbol 564 MovieClip Frame 1
on (release) {
if (_root.HmRFCount > 0) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b1Btn.enabled = false;
_root.HmRFCount--;
_root.totalFHead1--;
_root.tottalCost = _root.tottalCost + 40;
_root.clickItemArray.push(this);
_root.clickCostArray.push(40);
_root.money = _root.money + 40;
if (_root.HmRFCount == 0) {
_root.Market.sellItems.RFlowers.enabled = false;
_root.Market.sellItems.RFlowers._alpha = 20;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == _root.Market.sellItems.RFlowers) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
}
}
Instance of Symbol 505 MovieClip "YFlowers" in Symbol 564 MovieClip Frame 1
on (release) {
if (_root.HmYFCount > 0) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b1Btn.enabled = false;
_root.HmYFCount--;
_root.totalFHead1--;
_root.tottalCost = _root.tottalCost + 50;
_root.money = _root.money + 50;
_root.clickItemArray.push(this);
_root.clickCostArray.push(50);
if (_root.HmYFCount == 0) {
_root.Market.sellItems.YFlowers.enabled = false;
_root.Market.sellItems.YFlowers._alpha = 20;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == _root.Market.sellItems.YFlowers) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
}
}
Instance of Symbol 507 MovieClip "WRFlowers" in Symbol 564 MovieClip Frame 1
on (release) {
if (_root.HmWRFCount > 0) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b1Btn.enabled = false;
_root.HmWRFCount--;
_root.totalFHead2--;
_root.tottalCost = _root.tottalCost + 80;
_root.clickItemArray.push(this);
_root.clickCostArray.push(80);
_root.money = _root.money + 80;
if (_root.HmWRFCount == 0) {
_root.Market.sellItems.WRFlowers.enabled = false;
_root.Market.sellItems.WRFlowers._alpha = 20;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == _root.Market.sellItems.WRFlowers) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
}
}
Instance of Symbol 509 MovieClip "WYFlowers" in Symbol 564 MovieClip Frame 1
on (release) {
if (_root.HmWYFCount > 0) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b1Btn.enabled = false;
_root.HmWYFCount--;
_root.totalFHead2--;
_root.tottalCost = _root.tottalCost + 100;
_root.clickItemArray.push(this);
_root.clickCostArray.push(100);
_root.money = _root.money + 100;
if (_root.HmWYFCount == 0) {
_root.Market.sellItems.WYFlowers.enabled = false;
_root.Market.sellItems.WYFlowers._alpha = 20;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == _root.Market.sellItems.WYFlowers) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
}
}
Instance of Symbol 511 MovieClip "RYFlowers" in Symbol 564 MovieClip Frame 1
on (release) {
if (_root.HmRYFCount > 0) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b1Btn.enabled = false;
_root.HmRYFCount--;
_root.totalFHead2--;
_root.tottalCost = _root.tottalCost + 120;
_root.clickItemArray.push(this);
_root.clickCostArray.push(120);
_root.money = _root.money + 120;
if (_root.HmRYFCount == 0) {
_root.Market.sellItems.RYFlowers.enabled = false;
_root.Market.sellItems.RYFlowers._alpha = 20;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == _root.Market.sellItems.RYFlowers) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
}
}
Instance of Symbol 513 MovieClip "WRYFlowers" in Symbol 564 MovieClip Frame 1
on (release) {
if (_root.HmWRYFCount > 0) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b1Btn.enabled = false;
_root.HmWRYFCount--;
_root.totalFHead3--;
_root.tottalCost = _root.tottalCost + 200;
_root.clickItemArray.push(this);
_root.clickCostArray.push(200);
_root.money = _root.money + 200;
if (_root.HmWRYFCount == 0) {
_root.Market.sellItems.WRYFlowers.enabled = false;
_root.Market.sellItems.WRYFlowers._alpha = 20;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == _root.Market.sellItems.WRYFlowers) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
}
}
Symbol 564 MovieClip Frame 2
stop();
_root.itemArray.splice(0);
_root.clickItemArray.splice(0);
_root.clickCostArray.splice(0);
_root.Market.sellItems.cancelBtn.enabled = false;
_root.Market.sellBtn.enabled = false;
_root.Market.sellItems.cancelBtn._alpha = 50;
_root.Market.sellBtn._alpha = 50;
_root.Market.sellItems.bqts1.enabled = false;
_root.Market.sellItems.bqts2.enabled = false;
_root.Market.sellItems.bqts3.enabled = false;
_root.Market.sellItems.bqts4.enabled = false;
_root.Market.sellItems.bqts5.enabled = false;
_root.Market.sellItems.bqts6.enabled = false;
_root.Market.sellItems.bqts7.enabled = false;
_root.Market.sellItems.bqts8.enabled = false;
if (_root.b1Array.length > 0) {
_root.Market.sellItems.bqts1.ribben.gotoAndStop(_root.b1Array[0]);
_root.Market.sellItems.bqts1.leaf.gotoAndStop(_root.b1Array[1]);
_root.Market.sellItems.bqts1.flower.gotoAndStop(_root.b1Array[2]);
_root.Market.sellItems.bqts1.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts1);
}
if (_root.b2Array.length > 0) {
_root.Market.sellItems.bqts2.ribben.gotoAndStop(_root.b2Array[0]);
_root.Market.sellItems.bqts2.leaf.gotoAndStop(_root.b2Array[1]);
_root.Market.sellItems.bqts2.flower.gotoAndStop(_root.b2Array[2]);
_root.Market.sellItems.bqts2.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts2);
}
if (_root.b3Array.length > 0) {
_root.Market.sellItems.bqts3.ribben.gotoAndStop(_root.b3Array[0]);
_root.Market.sellItems.bqts3.leaf.gotoAndStop(_root.b3Array[1]);
_root.Market.sellItems.bqts3.flower.gotoAndStop(_root.b3Array[2]);
_root.Market.sellItems.bqts3.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts3);
}
if (_root.b4Array.length > 0) {
_root.Market.sellItems.bqts4.ribben.gotoAndStop(_root.b4Array[0]);
_root.Market.sellItems.bqts4.leaf.gotoAndStop(_root.b4Array[1]);
_root.Market.sellItems.bqts4.flower.gotoAndStop(_root.b4Array[2]);
_root.Market.sellItems.bqts4.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts4);
}
if (_root.b5Array.length > 0) {
_root.Market.sellItems.bqts5.ribben.gotoAndStop(_root.b5Array[0]);
_root.Market.sellItems.bqts5.leaf.gotoAndStop(_root.b5Array[1]);
_root.Market.sellItems.bqts5.flower.gotoAndStop(_root.b5Array[2]);
_root.Market.sellItems.bqts5.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts5);
}
if (_root.b6Array.length > 0) {
_root.Market.sellItems.bqts6.ribben.gotoAndStop(_root.b6Array[0]);
_root.Market.sellItems.bqts6.leaf.gotoAndStop(_root.b6Array[1]);
_root.Market.sellItems.bqts6.flower.gotoAndStop(_root.b6Array[2]);
_root.Market.sellItems.bqts6.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts6);
}
if (_root.b7Array.length > 0) {
_root.Market.sellItems.bqts7.ribben.gotoAndStop(_root.b7Array[0]);
_root.Market.sellItems.bqts7.leaf.gotoAndStop(_root.b7Array[1]);
_root.Market.sellItems.bqts7.flower.gotoAndStop(_root.b7Array[2]);
_root.Market.sellItems.bqts7.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts7);
}
if (_root.b8Array.length > 0) {
_root.Market.sellItems.bqts8.ribben.gotoAndStop(_root.b8Array[0]);
_root.Market.sellItems.bqts8.leaf.gotoAndStop(_root.b8Array[1]);
_root.Market.sellItems.bqts8.flower.gotoAndStop(_root.b8Array[2]);
_root.Market.sellItems.bqts8.enabled = true;
_root.itemArray.push(_root.Market.sellItems.bqts8);
}
Instance of Symbol 561 MovieClip "bqts1" in Symbol 564 MovieClip Frame 2
on (release) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b2Btn.enabled = false;
_root.tottalCost = _root.tottalCost + _root.b1Cost;
_root.money = _root.money + _root.b1Cost;
_root.clickItemArray.push(this.flower._currentframe);
_root.clickItemArray.push(this.leaf._currentframe);
_root.clickItemArray.push(this.ribben._currentframe);
_root.clickItemArray.push(1);
_root.clickCostArray.push(_root.b1Cost);
_root.b1Cost = 0;
_root.b1Array.splice(0);
this.flower.gotoAndStop(1);
this.leaf.gotoAndStop(1);
this.ribben.gotoAndStop(1);
this.enabled = false;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == this) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
Instance of Symbol 561 MovieClip "bqts2" in Symbol 564 MovieClip Frame 2
on (release) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b2Btn.enabled = false;
_root.tottalCost = _root.tottalCost + _root.b2Cost;
_root.money = _root.money + _root.b2Cost;
_root.clickItemArray.push(this.flower._currentframe);
_root.clickItemArray.push(this.leaf._currentframe);
_root.clickItemArray.push(this.ribben._currentframe);
_root.clickItemArray.push(2);
_root.clickCostArray.push(_root.b2Cost);
_root.b2Cost = 0;
_root.b2Array.splice(0);
this.flower.gotoAndStop(1);
this.leaf.gotoAndStop(1);
this.ribben.gotoAndStop(1);
this.enabled = false;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == this) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
Instance of Symbol 561 MovieClip "bqts3" in Symbol 564 MovieClip Frame 2
on (release) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b2Btn.enabled = false;
_root.tottalCost = _root.tottalCost + _root.b3Cost;
_root.money = _root.money + _root.b3Cost;
_root.clickItemArray.push(this.flower._currentframe);
_root.clickItemArray.push(this.leaf._currentframe);
_root.clickItemArray.push(this.ribben._currentframe);
_root.clickItemArray.push(3);
_root.clickCostArray.push(_root.b3Cost);
_root.b3Cost = 0;
_root.b3Array.splice(0);
this.flower.gotoAndStop(1);
this.leaf.gotoAndStop(1);
this.ribben.gotoAndStop(1);
this.enabled = false;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == this) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
Instance of Symbol 561 MovieClip "bqts4" in Symbol 564 MovieClip Frame 2
on (release) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b2Btn.enabled = false;
_root.tottalCost = _root.tottalCost + _root.b4Cost;
_root.money = _root.money + _root.b4Cost;
_root.clickItemArray.push(this.flower._currentframe);
_root.clickItemArray.push(this.leaf._currentframe);
_root.clickItemArray.push(this.ribben._currentframe);
_root.clickItemArray.push(4);
_root.clickCostArray.push(_root.b4Cost);
_root.b4Cost = 0;
_root.b4Array.splice(0);
this.flower.gotoAndStop(1);
this.leaf.gotoAndStop(1);
this.ribben.gotoAndStop(1);
this.enabled = false;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == this) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
Instance of Symbol 561 MovieClip "bqts5" in Symbol 564 MovieClip Frame 2
on (release) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b2Btn.enabled = false;
_root.tottalCost = _root.tottalCost + _root.b5Cost;
_root.money = _root.money + _root.b5Cost;
_root.clickItemArray.push(this.flower._currentframe);
_root.clickItemArray.push(this.leaf._currentframe);
_root.clickItemArray.push(this.ribben._currentframe);
_root.clickItemArray.push(5);
_root.clickCostArray.push(_root.b5Cost);
_root.b5Cost = 0;
_root.b5Array.splice(0);
this.flower.gotoAndStop(1);
this.leaf.gotoAndStop(1);
this.ribben.gotoAndStop(1);
this.enabled = false;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == this) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
Instance of Symbol 561 MovieClip "bqts6" in Symbol 564 MovieClip Frame 2
on (release) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b2Btn.enabled = false;
_root.tottalCost = _root.tottalCost + _root.b6Cost;
_root.money = _root.money + _root.b6Cost;
_root.clickItemArray.push(this.flower._currentframe);
_root.clickItemArray.push(this.leaf._currentframe);
_root.clickItemArray.push(this.ribben._currentframe);
_root.clickItemArray.push(6);
_root.clickCostArray.push(_root.b6Cost);
_root.b6Cost = 0;
_root.b6Array.splice(0);
this.flower.gotoAndStop(1);
this.leaf.gotoAndStop(1);
this.ribben.gotoAndStop(1);
this.enabled = false;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == this) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
Instance of Symbol 561 MovieClip "bqts7" in Symbol 564 MovieClip Frame 2
on (release) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b2Btn.enabled = false;
_root.tottalCost = _root.tottalCost + _root.b7Cost;
_root.money = _root.money + _root.b7Cost;
_root.clickItemArray.push(this.flower._currentframe);
_root.clickItemArray.push(this.leaf._currentframe);
_root.clickItemArray.push(this.ribben._currentframe);
_root.clickItemArray.push(7);
_root.clickCostArray.push(_root.b7Cost);
_root.b7Cost = 0;
_root.b7Array.splice(0);
this.flower.gotoAndStop(1);
this.leaf.gotoAndStop(1);
this.ribben.gotoAndStop(1);
this.enabled = false;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == this) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
Instance of Symbol 561 MovieClip "bqts8" in Symbol 564 MovieClip Frame 2
on (release) {
_root.Market.sellItems.cancelBtn.enabled = true;
_root.Market.sellBtn.enabled = true;
_root.Market.sellItems.cancelBtn._alpha = 100;
_root.Market.sellBtn._alpha = 100;
_root.Market.purchaseBtn.enabled = false;
_root.Market.factoryBtn.enabled = false;
_root.Market.farmBtn.enabled = false;
_root.Market.sellItems.b2Btn.enabled = false;
_root.tottalCost = _root.tottalCost + _root.b8Cost;
_root.money = _root.money + _root.b8Cost;
_root.clickItemArray.push(this.flower._currentframe);
_root.clickItemArray.push(this.leaf._currentframe);
_root.clickItemArray.push(this.ribben._currentframe);
_root.clickItemArray.push(8);
_root.clickCostArray.push(_root.b8Cost);
_root.b8Cost = 0;
_root.b8Array.splice(0);
this.flower.gotoAndStop(1);
this.leaf.gotoAndStop(1);
this.ribben.gotoAndStop(1);
this.enabled = false;
var i = 0;
while (i < _root.itemArray.length) {
if (_root.itemArray[i] == this) {
_root.itemArray.splice(i, 1);
break;
}
i++;
}
}
Symbol 566 MovieClip Frame 9
stop();
Symbol 566 MovieClip Frame 16
stop();
if (_root.fromFactory) {
_root.fromFactory = false;
_root.Market.sellItems.gotoAndStop(2);
}
Symbol 577 MovieClip Frame 1
stop();
_root.Factory.ribbens.Ribben1.enabled = true;
_root.Factory.ribbens.Ribben1._alpha = 100;
if (_root.ribben1 == 0) {
_root.Factory.ribbens.Ribben1.enabled = false;
_root.Factory.ribbens.Ribben1._alpha = 20;
}
Instance of Symbol 570 MovieClip "Ribben1" in Symbol 577 MovieClip Frame 1
on (release) {
if ((((((((_root.b1Cost == 0) || (_root.b2Cost == 0)) || (_root.b3Cost == 0)) || (_root.b4Cost == 0)) || (_root.b5Cost == 0)) || (_root.b6Cost == 0)) || (_root.b7Cost == 0)) || (_root.b8Cost == 0)) {
if ((_root.ribben1 > 0) && (!_root.Leaf)) {
_root.ribben1--;
_root.Ribben = true;
switch (_root.preRibben) {
case "ribben1" :
_root.ribben1++;
break;
case "ribben2" :
_root.ribben2++;
break;
case "ribben3" :
_root.ribben3++;
break;
case "ribben4" :
_root.ribben4++;
break;
case "ribben5" :
_root.ribben5++;
break;
case "ribben6" :
_root.ribben6++;
break;
case "ribben7" :
_root.ribben7++;
}
_root.ribbenCost = 15;
_root.preRibben = "ribben1";
if (_root.ribben1 == 0) {
_root.Factory.ribbens.Ribben1.enabled = false;
_root.Factory.ribbens.Ribben1._alpha = 20;
}
_root.Factory.cancelBtn.enabled = true;
_root.Factory.cancelBtn._visible = true;
_root.Factory.Newbouguets.gotoAndPlay(2);
_root.Factory.Newbouguets.Ribben.gotoAndStop(2);
}
}
}
Symbol 577 MovieClip Frame 2
_root.Factory.ribbens.Ribben2.enabled = true;
_root.Factory.ribbens.Ribben2._alpha = 100;
if (_root.ribben2 == 0) {
_root.Factory.ribbens.Ribben2.enabled = false;
_root.Factory.ribbens.Ribben2._alpha = 20;
}
Instance of Symbol 571 MovieClip "Ribben2" in Symbol 577 MovieClip Frame 2
on (release) {
if ((((((((_root.b1Cost == 0) || (_root.b2Cost == 0)) || (_root.b3Cost == 0)) || (_root.b4Cost == 0)) || (_root.b5Cost == 0)) || (_root.b6Cost == 0)) || (_root.b7Cost == 0)) || (_root.b8Cost == 0)) {
if ((_root.ribben2 > 0) && (!_root.Leaf)) {
_root.ribben2--;
_root.Ribben = true;
switch (_root.preRibben) {
case "ribben1" :
_root.ribben1++;
break;
case "ribben2" :
_root.ribben2++;
break;
case "ribben3" :
_root.ribben3++;
break;
case "ribben4" :
_root.ribben4++;
break;
case "ribben5" :
_root.ribben5++;
break;
case "ribben6" :
_root.ribben6++;
break;
case "ribben7" :
_root.ribben7++;
}
_root.ribbenCost = 20;
_root.preRibben = "ribben2";
if (_root.ribben2 == 0) {
_root.Factory.ribbens.Ribben2.enabled = false;
_root.Factory.ribbens.Ribben2._alpha = 20;
}
_root.Factory.cancelBtn.enabled = true;
_root.Factory.cancelBtn._visible = true;
_root.Factory.Newbouguets.gotoAndPlay(2);
_root.Factory.Newbouguets.Ribben.gotoAndStop(3);
}
}
}
Symbol 577 MovieClip Frame 3
_root.Factory.ribbens.Ribben3.enabled = true;
_root.Factory.ribbens.Ribben3._alpha = 100;
if (_root.ribben3 == 0) {
_root.Factory.ribbens.Ribben3.enabled = false;
_root.Factory.ribbens.Ribben3._alpha = 20;
}
Instance of Symbol 572 MovieClip "Ribben3" in Symbol 577 MovieClip Frame 3
on (release) {
if ((((((((_root.b1Cost == 0) || (_root.b2Cost == 0)) || (_root.b3Cost == 0)) || (_root.b4Cost == 0)) || (_root.b5Cost == 0)) || (_root.b6Cost == 0)) || (_root.b7Cost == 0)) || (_root.b8Cost == 0)) {
if ((_root.ribben3 > 0) && (!_root.Leaf)) {
_root.ribben3--;
_root.Ribben = true;
switch (_root.preRibben) {
case "ribben1" :
_root.ribben1++;
break;
case "ribben2" :
_root.ribben2++;
break;
case "ribben3" :
_root.ribben3++;
break;
case "ribben4" :
_root.ribben4++;
break;
case "ribben5" :
_root.ribben5++;
break;
case "ribben6" :
_root.ribben6++;
break;
case "ribben7" :
_root.ribben7++;
}
_root.ribbenCost = 25;
_root.preRibben = "ribben3";
if (_root.ribben3 == 0) {
_root.Factory.ribbens.Ribben3.enabled = false;
_root.Factory.ribbens.Ribben3._alpha = 20;
}
_root.Factory.cancelBtn.enabled = true;
_root.Factory.cancelBtn._visible = true;
_root.Factory.Newbouguets.gotoAndPlay(2);
_root.Factory.Newbouguets.Ribben.gotoAndStop(4);
}
}
}
Symbol 577 MovieClip Frame 4
_root.Factory.ribbens.Ribben4.enabled = true;
_root.Factory.ribbens.Ribben4._alpha = 100;
if (_root.ribben4 == 0) {
_root.Factory.ribbens.Ribben4.enabled = false;
_root.Factory.ribbens.Ribben4._alpha = 20;
}
Instance of Symbol 573 MovieClip "Ribben4" in Symbol 577 MovieClip Frame 4
on (release) {
if ((((((((_root.b1Cost == 0) || (_root.b2Cost == 0)) || (_root.b3Cost == 0)) || (_root.b4Cost == 0)) || (_root.b5Cost == 0)) || (_root.b6Cost == 0)) || (_root.b7Cost == 0)) || (_root.b8Cost == 0)) {
if ((_root.ribben4 > 0) && (!_root.Leaf)) {
_root.ribben4--;
_root.Ribben = true;
switch (_root.preRibben) {
case "ribben1" :
_root.ribben1++;
break;
case "ribben2" :
_root.ribben2++;
break;
case "ribben3" :
_root.ribben3++;
break;
case "ribben4" :
_root.ribben4++;
break;
case "ribben5" :
_root.ribben5++;
break;
case "ribben6" :
_root.ribben6++;
break;
case "ribben7" :
_root.ribben7++;
}
_root.ribbenCost = 40;
_root.preRibben = "ribben4";
if (_root.ribben4 == 0) {
_root.Factory.ribbens.Ribben4.enabled = false;
_root.Factory.ribbens.Ribben4._alpha = 20;
}
_root.Factory.cancelBtn.enabled = true;
_root.Factory.cancelBtn._visible = true;
_root.Factory.Newbouguets.gotoAndPlay(2);
_root.Factory.Newbouguets.Ribben.gotoAndStop(5);
}
}
}
Symbol 577 MovieClip Frame 5
_root.Factory.ribbens.Ribben5.enabled = true;
_root.Factory.ribbens.Ribben5._alpha = 100;
if (_root.ribben5 == 0) {
_root.Factory.ribbens.Ribben5.enabled = false;
_root.Factory.ribbens.Ribben5._alpha = 20;
}
Instance of Symbol 574 MovieClip "Ribben5" in Symbol 577 MovieClip Frame 5
on (release) {
if ((((((((_root.b1Cost == 0) || (_root.b2Cost == 0)) || (_root.b3Cost == 0)) || (_root.b4Cost == 0)) || (_root.b5Cost == 0)) || (_root.b6Cost == 0)) || (_root.b7Cost == 0)) || (_root.b8Cost == 0)) {
if ((_root.ribben5 > 0) && (!_root.Leaf)) {
_root.ribben5--;
_root.Ribben = true;
switch (_root.preRibben) {
case "ribben1" :
_root.ribben1++;
break;
case "ribben2" :
_root.ribben2++;
break;
case "ribben3" :
_root.ribben3++;
break;
case "ribben4" :
_root.ribben4++;
break;
case "ribben5" :
_root.ribben5++;
break;
case "ribben6" :
_root.ribben6++;
break;
case "ribben7" :
_root.ribben7++;
}
_root.ribbenCost = 85;
_root.preRibben = "ribben5";
if (_root.ribben5 == 0) {
_root.Factory.ribbens.Ribben5.enabled = false;
_root.Factory.ribbens.Ribben5._alpha = 20;
}
_root.Factory.cancelBtn.enabled = true;
_root.Factory.cancelBtn._visible = true;
_root.Factory.Newbouguets.gotoAndPlay(2);
_root.Factory.Newbouguets.Ribben.gotoAndStop(6);
}
}
}
Symbol 577 MovieClip Frame 6
_root.Factory.ribbens.Ribben6.enabled = true;
_root.Factory.ribbens.Ribben6._alpha = 100;
if (_root.ribben6 == 0) {
_root.Factory.ribbens.Ribben6.enabled = false;
_root.Factory.ribbens.Ribben6._alpha = 20;
}
Instance of Symbol 575 MovieClip "Ribben6" in Symbol 577 MovieClip Frame 6
on (release) {
if ((((((((_root.b1Cost == 0) || (_root.b2Cost == 0)) || (_root.b3Cost == 0)) || (_root.b4Cost == 0)) || (_root.b5Cost == 0)) || (_root.b6Cost == 0)) || (_root.b7Cost == 0)) || (_root.b8Cost == 0)) {
if ((_root.ribben6 > 0) && (!_root.Leaf)) {
_root.ribben6--;
_root.Ribben = true;
switch (_root.preRibben) {
case "ribben1" :
_root.ribben1++;
break;
case "ribben2" :
_root.ribben2++;
break;
case "ribben3" :
_root.ribben3++;
break;
case "ribben4" :
_root.ribben4++;
break;
case "ribben5" :
_root.ribben5++;
break;
case "ribben6" :
_root.ribben6++;
break;
case "ribben7" :
_root.ribben7++;
}
_root.ribbenCost = 60;
_root.preRibben = "ribben6";
if (_root.ribben6 == 0) {
_root.Factory.ribbens.Ribben6.enabled = false;
_root.Factory.ribbens.Ribben6._alpha = 20;
}
_root.Factory.cancelBtn.enabled = true;
_root.Factory.cancelBtn._visible = true;
_root.Factory.Newbouguets.gotoAndPlay(2);
_root.Factory.Newbouguets.Ribben.gotoAndStop(7);
}
}
}
Symbol 577 MovieClip Frame 7
_root.Factory.ribbens.Ribben7.enabled = true;
_root.Factory.ribbens.Ribben7._alpha = 100;
if (_root.ribben7 == 0) {
_root.Factory.ribbens.Ribben7.enabled = false;
_root.Factory.ribbens.Ribben7._alpha = 20;
}
Instance of Symbol 576 MovieClip "Ribben7" in Symbol 577 MovieClip Frame 7
on (release) {
if ((((((((_root.b1Cost == 0) || (_root.b2Cost == 0)) || (_root.b3Cost == 0)) || (_root.b4Cost == 0)) || (_root.b5Cost == 0)) || (_root.b6Cost == 0)) || (_root.b7Cost == 0)) || (_root.b8Cost == 0)) {
if ((_root.ribben7 > 0) && (!_root.Leaf)) {
_root.ribben7--;
_root.Ribben = true;
switch (_root.preRibben) {
case "ribben1" :
_root.ribben1++;
break;
case "ribben2" :
_root.ribben2++;
break;
case "ribben3" :
_root.ribben3++;
break;
case "ribben4" :
_root.ribben4++;
break;
case "ribben5" :
_root.ribben5++;
break;
case "ribben6" :
_root.ribben6++;
break;
case "ribben7" :
_root.ribben7++;
}
_root.ribbenCost = 100;
_root.preRibben = "ribben7";
if (_root.ribben7 == 0) {
_root.Factory.ribbens.Ribben7.enabled = false;
_root.Factory.ribbens.Ribben7._alpha = 20;
}
_root.Factory.cancelBtn.enabled = true;
_root.Factory.cancelBtn._visible = true;
_root.Factory.Newbouguets.gotoAndPlay(2);
_root.Factory.Newbouguets.Ribben.gotoAndStop(8);
}
}
}
Symbol 578 MovieClip Frame 1
stop();
_root.Factory.bundles.WFlower.enabled = true;
_root.Factory.bundles.WFlower._alpha = 100;
if (_root.HmWFCount == 0) {
_root.Factory.bundles.WFlower.enabled = false;
_root.Factory.bundles.WFlower._alpha = 20;
}
Instance of Symbol 501 MovieClip "WFlower" in Symbol 578 MovieClip Frame 1
on (release) {
if ((_root.HmWFCount >= 3) && (_root.Leaf)) {
_root.HmWFCount = _root.HmWFCount - 3;
_root.totalFHead1 = _root.totalFHead1 - 3;
_root.FLOWER = true;
switch (_root.preFlower) {
case "wflower" :
_root.HmWFCount = _root.HmWFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "rflower" :
_root.HmRFCount = _root.HmRFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "yflower" :
_root.HmYFCount = _root.HmYFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "wrflower" :
_root.HmWRFCount = _root.HmWRFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wyflower" :
_root.HmWYFCount = _root.HmWYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "ryflower" :
_root.HmRYFCount = _root.HmRYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wryflower" :
_root.HmWRYFCount = _root.HmWRYFCount + 3;
_root.totalFHead3 = _root.totalFHead3 + 3;
}
_root.bundleCost = 100;
_root.preFlower = "wflower";
if (_root.HmWFCount == 0) {
_root.Factory.bundles.WFlower.enabled = false;
_root.Factory.bundles.WFlower._alpha = 20;
}
_root.Factory.doneBtn.enabled = true;
_root.Factory.doneBtn._visible = true;
_root.Factory.Newbouguets.gotoAndPlay(11);
_root.Factory.Newbouguets.Bundle.gotoAndStop(2);
}
}
on (rollOver) {
if ((_root.HmWFCount < 3) && (_root.Leaf)) {
_root.Factory.msg.gotoAndStop(2);
}
}
on (rollOut) {
_root.Factory.msg.gotoAndStop(1);
}
Symbol 578 MovieClip Frame 2
_root.Factory.bundles.RFlower.enabled = true;
_root.Factory.bundles.RFlower._alpha = 100;
if (_root.HmRFCount == 0) {
_root.Factory.bundles.RFlower.enabled = false;
_root.Factory.bundles.RFlower._alpha = 20;
}
Instance of Symbol 503 MovieClip "RFlower" in Symbol 578 MovieClip Frame 2
on (release) {
if ((_root.HmRFCount >= 3) && (_root.Leaf)) {
_root.HmRFCount = _root.HmRFCount - 3;
_root.totalFHead1 = _root.totalFHead1 - 3;
_root.FLOWER = true;
switch (_root.preFlower) {
case "wflower" :
_root.HmWFCount = _root.HmWFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "rflower" :
_root.HmRFCount = _root.HmRFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "yflower" :
_root.HmYFCount = _root.HmYFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "wrflower" :
_root.HmWRFCount = _root.HmWRFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wyflower" :
_root.HmWYFCount = _root.HmWYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "ryflower" :
_root.HmRYFCount = _root.HmRYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wryflower" :
_root.HmWRYFCount = _root.HmWRYFCount + 3;
_root.totalFHead3 = _root.totalFHead3 + 3;
}
_root.bundleCost = 135;
_root.preFlower = "rflower";
if (_root.HmRFCount == 0) {
_root.Factory.bundles.RFlower.enabled = false;
_root.Factory.bundles.RFlower._alpha = 20;
}
_root.Factory.doneBtn.enabled = true;
_root.Factory.doneBtn._visible = true;
_root.Factory.Newbouguets.gotoAndPlay(11);
_root.Factory.Newbouguets.Bundle.gotoAndStop(3);
}
}
on (rollOver) {
if ((_root.HmRFCount < 3) && (_root.Leaf)) {
_root.Factory.msg.gotoAndStop(2);
}
}
on (rollOut) {
_root.Factory.msg.gotoAndStop(1);
}
Symbol 578 MovieClip Frame 3
_root.Factory.bundles.YFlower.enabled = true;
_root.Factory.bundles.YFlower._alpha = 100;
if (_root.HmYFCount == 0) {
_root.Factory.bundles.YFlower.enabled = false;
_root.Factory.bundles.YFlower._alpha = 20;
}
Instance of Symbol 505 MovieClip "YFlower" in Symbol 578 MovieClip Frame 3
on (release) {
if ((_root.HmYFCount >= 3) && (_root.Leaf)) {
_root.HmYFCount = _root.HmYFCount - 3;
_root.totalFHead1 = _root.totalFHead1 - 3;
_root.FLOWER = true;
switch (_root.preFlower) {
case "wflower" :
_root.HmWFCount = _root.HmWFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "rflower" :
_root.HmRFCount = _root.HmRFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "yflower" :
_root.HmYFCount = _root.HmYFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "wrflower" :
_root.HmWRFCount = _root.HmWRFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wyflower" :
_root.HmWYFCount = _root.HmWYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "ryflower" :
_root.HmRYFCount = _root.HmRYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wryflower" :
_root.HmWRYFCount = _root.HmWRYFCount + 3;
_root.totalFHead3 = _root.totalFHead3 + 3;
}
_root.bundleCost = 170;
_root.preFlower = "yflower";
if (_root.HmYFCount == 0) {
_root.Factory.bundles.YFlower.enabled = false;
_root.Factory.bundles.YFlower._alpha = 20;
}
_root.Factory.doneBtn.enabled = true;
_root.Factory.doneBtn._visible = true;
_root.Factory.Newbouguets.gotoAndPlay(11);
_root.Factory.Newbouguets.Bundle.gotoAndStop(4);
}
}
on (rollOver) {
if ((_root.HmYFCount < 3) && (_root.Leaf)) {
_root.Factory.msg.gotoAndStop(2);
}
}
on (rollOut) {
_root.Factory.msg.gotoAndStop(1);
}
Symbol 578 MovieClip Frame 4
_root.Factory.bundles.WRFlower.enabled = true;
_root.Factory.bundles.WRFlower._alpha = 100;
if (_root.HmWRFCount == 0) {
_root.Factory.bundles.WRFlower.enabled = false;
_root.Factory.bundles.WRFlower._alpha = 20;
}
Instance of Symbol 507 MovieClip "WRFlower" in Symbol 578 MovieClip Frame 4
on (release) {
if ((_root.HmWRFCount >= 3) && (_root.Leaf)) {
_root.HmWRFCount = _root.HmWRFCount - 3;
_root.totalFHead2 = _root.totalFHead2 - 3;
_root.FLOWER = true;
switch (_root.preFlower) {
case "wflower" :
_root.HmWFCount = _root.HmWFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "rflower" :
_root.HmRFCount = _root.HmRFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "yflower" :
_root.HmYFCount = _root.HmYFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "wrflower" :
_root.HmWRFCount = _root.HmWRFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wyflower" :
_root.HmWYFCount = _root.HmWYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "ryflower" :
_root.HmRYFCount = _root.HmRYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wryflower" :
_root.HmWRYFCount = _root.HmWRYFCount + 3;
_root.totalFHead3 = _root.totalFHead3 + 3;
}
_root.bundleCost = 270;
_root.preFlower = "wrflower";
if (_root.HmWRFCount == 0) {
_root.Factory.bundles.WRFlower.enabled = false;
_root.Factory.bundles.WRFlower._alpha = 20;
}
_root.Factory.doneBtn.enabled = true;
_root.Factory.doneBtn._visible = true;
_root.Factory.Newbouguets.gotoAndPlay(11);
_root.Factory.Newbouguets.Bundle.gotoAndStop(5);
}
}
on (rollOver) {
if ((_root.HmWRFCount < 3) && (_root.Leaf)) {
_root.Factory.msg.gotoAndStop(2);
}
}
on (rollOut) {
_root.Factory.msg.gotoAndStop(1);
}
Symbol 578 MovieClip Frame 5
_root.Factory.bundles.WYFlower.enabled = true;
_root.Factory.bundles.WYFlower._alpha = 100;
if (_root.HmWYFCount == 0) {
_root.Factory.bundles.WYFlower.enabled = false;
_root.Factory.bundles.WYFlower._alpha = 20;
}
Instance of Symbol 509 MovieClip "WYFlower" in Symbol 578 MovieClip Frame 5
on (release) {
if ((_root.HmWYFCount >= 3) && (_root.Leaf)) {
_root.HmWYFCount = _root.HmWYFCount - 3;
_root.totalFHead2 = _root.totalFHead2 - 3;
_root.FLOWER = true;
switch (_root.preFlower) {
case "wflower" :
_root.HmWFCount = _root.HmWFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "rflower" :
_root.HmRFCount = _root.HmRFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "yflower" :
_root.HmYFCount = _root.HmYFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "wrflower" :
_root.HmWRFCount = _root.HmWRFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wyflower" :
_root.HmWYFCount = _root.HmWYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "ryflower" :
_root.HmRYFCount = _root.HmRYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wryflower" :
_root.HmWRYFCount = _root.HmWRYFCount + 3;
_root.totalFHead3 = _root.totalFHead3 + 3;
}
_root.bundleCost = 350;
_root.preFlower = "wyflower";
if (_root.HmWYFCount == 0) {
_root.Factory.bundles.WYFlower.enabled = false;
_root.Factory.bundles.WYFlower._alpha = 20;
}
_root.Factory.doneBtn.enabled = true;
_root.Factory.doneBtn._visible = true;
_root.Factory.Newbouguets.gotoAndPlay(11);
_root.Factory.Newbouguets.Bundle.gotoAndStop(6);
}
}
on (rollOver) {
if ((_root.HmWYFCount < 3) && (_root.Leaf)) {
_root.Factory.msg.gotoAndStop(2);
}
}
on (rollOut) {
_root.Factory.msg.gotoAndStop(1);
}
Symbol 578 MovieClip Frame 6
_root.Factory.bundles.RYFlower.enabled = true;
_root.Factory.bundles.RYFlower._alpha = 100;
if (_root.HmRYFCount == 0) {
_root.Factory.bundles.RYFlower.enabled = false;
_root.Factory.bundles.RYFlower._alpha = 20;
}
Instance of Symbol 511 MovieClip "RYFlower" in Symbol 578 MovieClip Frame 6
on (release) {
if ((_root.HmRYFCount >= 3) && (_root.Leaf)) {
_root.HmRYFCount = _root.HmRYFCount - 3;
_root.totalFHead2 = _root.totalFHead2 - 3;
_root.FLOWER = true;
switch (_root.preFlower) {
case "wflower" :
_root.HmWFCount = _root.HmWFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "rflower" :
_root.HmRFCount = _root.HmRFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "yflower" :
_root.HmYFCount = _root.HmYFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "wrflower" :
_root.HmWRFCount = _root.HmWRFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wyflower" :
_root.HmWYFCount = _root.HmWYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "ryflower" :
_root.HmRYFCount = _root.HmRYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wryflower" :
_root.HmWRYFCount = _root.HmWRYFCount + 3;
_root.totalFHead3 = _root.totalFHead3 + 3;
}
_root.bundleCost = 430;
_root.preFlower = "ryflower";
if (_root.HmRYFCount == 0) {
_root.Factory.bundles.RYFlower.enabled = false;
_root.Factory.bundles.RYFlower._alpha = 20;
}
_root.Factory.doneBtn.enabled = true;
_root.Factory.doneBtn._visible = true;
_root.Factory.Newbouguets.gotoAndPlay(11);
_root.Factory.Newbouguets.Bundle.gotoAndStop(7);
}
}
on (rollOver) {
if ((_root.HmRYFCount < 3) && (_root.Leaf)) {
_root.Factory.msg.gotoAndStop(2);
}
}
on (rollOut) {
_root.Factory.msg.gotoAndStop(1);
}
Symbol 578 MovieClip Frame 7
_root.Factory.bundles.WRYFlower.enabled = true;
_root.Factory.bundles.WRYFlower._alpha = 100;
if (_root.HmWRYFCount == 0) {
_root.Factory.bundles.WRYFlower.enabled = false;
_root.Factory.bundles.WRYFlower._alpha = 20;
}
Instance of Symbol 513 MovieClip "WRYFlower" in Symbol 578 MovieClip Frame 7
on (release) {
if ((_root.HmWRYFCount >= 3) && (_root.Leaf)) {
_root.HmWRYFCount = _root.HmWRYFCount - 3;
_root.totalFHead3 = _root.totalFHead3 - 3;
_root.FLOWER = true;
switch (_root.preFlower) {
case "wflower" :
_root.HmWFCount = _root.HmWFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "rflower" :
_root.HmRFCount = _root.HmRFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "yflower" :
_root.HmYFCount = _root.HmYFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "wrflower" :
_root.HmWRFCount = _root.HmWRFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wyflower" :
_root.HmWYFCount = _root.HmWYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "ryflower" :
_root.HmRYFCount = _root.HmRYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wryflower" :
_root.HmWRYFCount = _root.HmWRYFCount + 3;
_root.totalFHead3 = _root.totalFHead3 + 3;
}
_root.bundleCost = 720;
_root.preFlower = "wryflower";
if (_root.HmWRYFCount == 0) {
_root.Factory.bundles.WRYFlower.enabled = false;
_root.Factory.bundles.WRYFlower._alpha = 20;
}
_root.Factory.doneBtn.enabled = true;
_root.Factory.doneBtn._visible = true;
_root.Factory.Newbouguets.gotoAndPlay(11);
_root.Factory.Newbouguets.Bundle.gotoAndStop(8);
}
}
on (rollOver) {
if ((_root.HmWRYFCount < 3) && (_root.Leaf)) {
_root.Factory.msg.gotoAndStop(2);
}
}
on (rollOut) {
_root.Factory.msg.gotoAndStop(1);
}
Symbol 582 MovieClip Frame 1
stop();
_root.Factory.leafs.Ribben8.enabled = true;
_root.Factory.leafs.Ribben8._alpha = 100;
if (_root.ribben8 == 0) {
_root.Factory.leafs.Ribben8.enabled = false;
_root.Factory.leafs.Ribben8._alpha = 20;
}
Instance of Symbol 579 MovieClip "Ribben8" in Symbol 582 MovieClip Frame 1
on (release) {
if (((_root.ribben8 > 0) && (_root.Ribben)) && (!_root.FLOWER)) {
_root.ribben8--;
_root.Leaf = true;
switch (_root.preLeaf) {
case "ribben8" :
_root.ribben8++;
break;
case "ribben9" :
_root.ribben9++;
break;
case "ribben10" :
_root.ribben10++;
}
_root.leafCost = 70;
_root.preLeaf = "ribben8";
if (_root.ribben8 == 0) {
_root.Factory.leafs.Ribben8.enabled = false;
_root.Factory.leafs.Ribben8._alpha = 20;
}
_root.Factory.Newbouguets.gotoAndPlay(6);
_root.Factory.Newbouguets.Leaf.gotoAndStop(2);
}
}
Symbol 582 MovieClip Frame 2
_root.Factory.leafs.Ribben9.enabled = true;
_root.Factory.leafs.Ribben9._alpha = 100;
if (_root.ribben9 == 0) {
_root.Factory.leafs.Ribben9.enabled = false;
_root.Factory.leafs.Ribben9._alpha = 20;
}
Instance of Symbol 580 MovieClip "Ribben9" in Symbol 582 MovieClip Frame 2
on (release) {
if (((_root.ribben9 > 0) && (_root.Ribben)) && (!_root.FLOWER)) {
_root.ribben9--;
_root.Leaf = true;
switch (_root.preLeaf) {
case "ribben8" :
_root.ribben8++;
break;
case "ribben9" :
_root.ribben9++;
break;
case "ribben10" :
_root.ribben10++;
}
_root.leafCost = 95;
_root.preLeaf = "ribben9";
if (_root.ribben9 == 0) {
_root.Factory.leafs.Ribben9.enabled = false;
_root.Factory.leafs.Ribben9._alpha = 20;
}
_root.Factory.Newbouguets.gotoAndPlay(6);
_root.Factory.Newbouguets.Leaf.gotoAndStop(3);
}
}
Symbol 582 MovieClip Frame 3
_root.Factory.leafs.Ribben10.enabled = true;
_root.Factory.leafs.Ribben10._alpha = 100;
if (_root.ribben10 == 0) {
_root.Factory.leafs.Ribben10.enabled = false;
_root.Factory.leafs.Ribben10._alpha = 20;
}
Instance of Symbol 581 MovieClip "Ribben10" in Symbol 582 MovieClip Frame 3
on (release) {
if (((_root.ribben10 > 0) && (_root.Ribben)) && (!_root.FLOWER)) {
_root.ribben10--;
_root.Leaf = true;
switch (_root.preLeaf) {
case "ribben8" :
_root.ribben8++;
break;
case "ribben9" :
_root.ribben9++;
break;
case "ribben10" :
_root.ribben10++;
}
_root.leafCost = 120;
_root.preLeaf = "ribben10";
if (_root.ribben10 == 0) {
_root.Factory.leafs.Ribben10.enabled = false;
_root.Factory.leafs.Ribben10._alpha = 20;
}
_root.Factory.Newbouguets.gotoAndPlay(6);
_root.Factory.Newbouguets.Leaf.gotoAndStop(4);
}
}
Symbol 583 Button
on (release) {
if (_root.Factory.bundles._currentframe == 7) {
_root.Factory.bundles.gotoAndStop(1);
} else {
_root.Factory.bundles.gotoAndStop(_root.Factory.bundles._currentframe + 1);
}
_root.Factory.bCount.gotoAndStop(_root.Factory.bundles._currentframe);
}
Symbol 584 Button
on (release) {
if (_root.Factory.bundles._currentframe == 1) {
_root.Factory.bundles.gotoAndStop(7);
} else {
_root.Factory.bundles.gotoAndStop(_root.Factory.bundles._currentframe - 1);
}
_root.Factory.bCount.gotoAndStop(_root.Factory.bundles._currentframe);
}
Symbol 585 Button
on (release) {
if (_root.Factory.leafs._currentframe == 3) {
_root.Factory.leafs.gotoAndStop(1);
} else {
_root.Factory.leafs.gotoAndStop(_root.Factory.leafs._currentframe + 1);
}
_root.Factory.lCount.gotoAndStop(_root.Factory.leafs._currentframe);
}
Symbol 586 Button
on (release) {
if (_root.Factory.leafs._currentframe == 1) {
_root.Factory.leafs.gotoAndStop(3);
} else {
_root.Factory.leafs.gotoAndStop(_root.Factory.leafs._currentframe - 1);
}
_root.Factory.lCount.gotoAndStop(_root.Factory.leafs._currentframe);
}
Symbol 587 Button
on (release) {
if (_root.Factory.ribbens._currentframe == 7) {
_root.Factory.ribbens.gotoAndStop(1);
} else {
_root.Factory.ribbens.gotoAndStop(_root.Factory.ribbens._currentframe + 1);
}
_root.Factory.rCount.gotoAndStop(_root.Factory.ribbens._currentframe);
}
Symbol 588 Button
on (release) {
if (_root.Factory.ribbens._currentframe == 1) {
_root.Factory.ribbens.gotoAndStop(7);
} else {
_root.Factory.ribbens.gotoAndStop(_root.Factory.ribbens._currentframe - 1);
}
_root.Factory.rCount.gotoAndStop(_root.Factory.ribbens._currentframe);
}
Symbol 596 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 5
stop();
Symbol 601 MovieClip Frame 10
stop();
Symbol 601 MovieClip Frame 17
stop();
Symbol 603 Button
on (release) {
if (_root.FLOWER) {
if (_root.b1Array.length <= 0) {
_root.b1Array.push(_root.Factory.Newbouguets.Ribben._currentframe);
_root.b1Array.push(_root.Factory.Newbouguets.Leaf._currentframe);
_root.b1Array.push(_root.Factory.Newbouguets.Bundle._currentframe);
_root.b1Cost = (_root.bundleCost + _root.leafCost) + _root.ribbenCost;
_root.Factory.bqts1.ribben.gotoAndStop(_root.Factory.Newbouguets.Ribben._currentframe);
_root.Factory.bqts1.leaf.gotoAndStop(_root.Factory.Newbouguets.Leaf._currentframe);
_root.Factory.bqts1.flower.gotoAndStop(_root.Factory.Newbouguets.Bundle._currentframe);
} else if (_root.b2Array.length <= 0) {
_root.b2Array.push(_root.Factory.Newbouguets.Ribben._currentframe);
_root.b2Array.push(_root.Factory.Newbouguets.Leaf._currentframe);
_root.b2Array.push(_root.Factory.Newbouguets.Bundle._currentframe);
_root.b2Cost = (_root.bundleCost + _root.leafCost) + _root.ribbenCost;
_root.Factory.bqts2.ribben.gotoAndStop(_root.Factory.Newbouguets.Ribben._currentframe);
_root.Factory.bqts2.leaf.gotoAndStop(_root.Factory.Newbouguets.Leaf._currentframe);
_root.Factory.bqts2.flower.gotoAndStop(_root.Factory.Newbouguets.Bundle._currentframe);
} else if (_root.b3Array.length <= 0) {
_root.b3Array.push(_root.Factory.Newbouguets.Ribben._currentframe);
_root.b3Array.push(_root.Factory.Newbouguets.Leaf._currentframe);
_root.b3Array.push(_root.Factory.Newbouguets.Bundle._currentframe);
_root.b3Cost = (_root.bundleCost + _root.leafCost) + _root.ribbenCost;
_root.Factory.bqts3.ribben.gotoAndStop(_root.Factory.Newbouguets.Ribben._currentframe);
_root.Factory.bqts3.leaf.gotoAndStop(_root.Factory.Newbouguets.Leaf._currentframe);
_root.Factory.bqts3.flower.gotoAndStop(_root.Factory.Newbouguets.Bundle._currentframe);
} else if (_root.b4Array.length <= 0) {
_root.b4Array.push(_root.Factory.Newbouguets.Ribben._currentframe);
_root.b4Array.push(_root.Factory.Newbouguets.Leaf._currentframe);
_root.b4Array.push(_root.Factory.Newbouguets.Bundle._currentframe);
_root.b4Cost = (_root.bundleCost + _root.leafCost) + _root.ribbenCost;
_root.Factory.bqts4.ribben.gotoAndStop(_root.Factory.Newbouguets.Ribben._currentframe);
_root.Factory.bqts4.leaf.gotoAndStop(_root.Factory.Newbouguets.Leaf._currentframe);
_root.Factory.bqts4.flower.gotoAndStop(_root.Factory.Newbouguets.Bundle._currentframe);
} else if (_root.b5Array.length <= 0) {
_root.b5Array.push(_root.Factory.Newbouguets.Ribben._currentframe);
_root.b5Array.push(_root.Factory.Newbouguets.Leaf._currentframe);
_root.b5Array.push(_root.Factory.Newbouguets.Bundle._currentframe);
_root.b5Cost = (_root.bundleCost + _root.leafCost) + _root.ribbenCost;
_root.Factory.bqts5.ribben.gotoAndStop(_root.Factory.Newbouguets.Ribben._currentframe);
_root.Factory.bqts5.leaf.gotoAndStop(_root.Factory.Newbouguets.Leaf._currentframe);
_root.Factory.bqts5.flower.gotoAndStop(_root.Factory.Newbouguets.Bundle._currentframe);
} else if (_root.b6Array.length <= 0) {
_root.b6Array.push(_root.Factory.Newbouguets.Ribben._currentframe);
_root.b6Array.push(_root.Factory.Newbouguets.Leaf._currentframe);
_root.b6Array.push(_root.Factory.Newbouguets.Bundle._currentframe);
_root.b6Cost = (_root.bundleCost + _root.leafCost) + _root.ribbenCost;
_root.Factory.bqts6.ribben.gotoAndStop(_root.Factory.Newbouguets.Ribben._currentframe);
_root.Factory.bqts6.leaf.gotoAndStop(_root.Factory.Newbouguets.Leaf._currentframe);
_root.Factory.bqts6.flower.gotoAndStop(_root.Factory.Newbouguets.Bundle._currentframe);
} else if (_root.b7Array.length <= 0) {
_root.b7Array.push(_root.Factory.Newbouguets.Ribben._currentframe);
_root.b7Array.push(_root.Factory.Newbouguets.Leaf._currentframe);
_root.b7Array.push(_root.Factory.Newbouguets.Bundle._currentframe);
_root.b7Cost = (_root.bundleCost + _root.leafCost) + _root.ribbenCost;
_root.Factory.bqts7.ribben.gotoAndStop(_root.Factory.Newbouguets.Ribben._currentframe);
_root.Factory.bqts7.leaf.gotoAndStop(_root.Factory.Newbouguets.Leaf._currentframe);
_root.Factory.bqts7.flower.gotoAndStop(_root.Factory.Newbouguets.Bundle._currentframe);
} else if (_root.b8Array.length <= 0) {
_root.b8Array.push(_root.Factory.Newbouguets.Ribben._currentframe);
_root.b8Array.push(_root.Factory.Newbouguets.Leaf._currentframe);
_root.b8Array.push(_root.Factory.Newbouguets.Bundle._currentframe);
_root.b8Cost = (_root.bundleCost + _root.leafCost) + _root.ribbenCost;
_root.Factory.bqts8.ribben.gotoAndStop(_root.Factory.Newbouguets.Ribben._currentframe);
_root.Factory.bqts8.leaf.gotoAndStop(_root.Factory.Newbouguets.Leaf._currentframe);
_root.Factory.bqts8.flower.gotoAndStop(_root.Factory.Newbouguets.Bundle._currentframe);
}
_root.bundleCost = 0;
_root.leafCost = 0;
_root.ribbenCost = 0;
_root.preRibben = "";
_root.preLeaf = "";
_root.preFlower = "";
_root.Ribben = false;
_root.Leaf = false;
_root.FLOWER = false;
_root.Factory.doneBtn.enabled = false;
_root.Factory.cancelBtn.enabled = false;
_root.Factory.doneBtn._visible = false;
_root.Factory.cancelBtn._visible = false;
_root.Factory.Newbouguets.gotoAndStop(1);
_root.setCloseFunction();
if ((((((((_root.b1Cost > 0) && (_root.b2Cost > 0)) && (_root.b3Cost > 0)) && (_root.b4Cost > 0)) && (_root.b5Cost > 0)) && (_root.b6Cost > 0)) && (_root.b7Cost > 0)) && (_root.b8Cost > 0)) {
_root.Factory.ribbens.Ribben1.enabled = false;
_root.Factory.ribbens.Ribben2.enabled = false;
_root.Factory.ribbens.Ribben3.enabled = false;
_root.Factory.ribbens.Ribben4.enabled = false;
_root.Factory.ribbens.Ribben5.enabled = false;
_root.Factory.ribbens.Ribben6.enabled = false;
_root.Factory.ribbens.Ribben7.enabled = false;
_root.Factory.leafs.Ribben8.enabled = false;
_root.Factory.leafs.Ribben9.enabled = false;
_root.Factory.leafs.Ribben10.enabled = false;
_root.Factory.bundles.WFlower.enabled = false;
_root.Factory.bundles.RFlower.enabled = false;
_root.Factory.bundles.YFlower.enabled = false;
_root.Factory.bundles.WRFlower.enabled = false;
_root.Factory.bundles.WYFlower.enabled = false;
_root.Factory.bundles.RYFlower.enabled = false;
_root.Factory.bundles.WRYFlower.enabled = false;
_root.Factory.L1.enabled = false;
_root.Factory.L2.enabled = false;
_root.Factory.L3.enabled = false;
_root.Factory.R1.enabled = false;
_root.Factory.R2.enabled = false;
_root.Factory.R3.enabled = false;
_root.Factory.doneBtn.enabled = false;
_root.Factory.cancelBtn.enabled = false;
_root.Factory.doneBtn._visible = false;
_root.Factory.cancelBtn._visible = false;
_root.factoryMsg.gotoAndPlay(2);
}
}
}
Symbol 604 Button
on (release) {
if (_root.FLOWER) {
switch (_root.preFlower) {
case "wflower" :
_root.HmWFCount = _root.HmWFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
_root.Factory.bundles.WFlower.enabled = true;
_root.Factory.bundles.WFlower._alpha = 100;
break;
case "rflower" :
_root.HmRFCount = _root.HmRFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
_root.Factory.bundles.RFlower.enabled = true;
_root.Factory.bundles.RFlower._alpha = 100;
break;
case "yflower" :
_root.HmYFCount = _root.HmYFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
_root.Factory.bundles.YFlower.enabled = true;
_root.Factory.bundles.YFlower._alpha = 100;
break;
case "wrflower" :
_root.HmWRFCount = _root.HmWRFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
_root.Factory.bundles.WRFlower.enabled = true;
_root.Factory.bundles.WRFlower._alpha = 100;
break;
case "wyflower" :
_root.HmWYFCount = _root.HmWYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
_root.Factory.bundles.WYFlower.enabled = true;
_root.Factory.bundles.WYFlower._alpha = 100;
break;
case "ryflower" :
_root.HmRYFCount = _root.HmRYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
_root.Factory.bundles.RYFlower.enabled = true;
_root.Factory.bundles.RYFlower._alpha = 100;
break;
case "wryflower" :
_root.HmWRYFCount = _root.HmWRYFCount + 3;
_root.totalFHead3 = _root.totalFHead3 + 3;
_root.Factory.bundles.WRYFlower.enabled = true;
_root.Factory.bundles.WRYFlower._alpha = 100;
}
_root.Factory.doneBtn.enabled = false;
_root.Factory.doneBtn._visible = false;
_root.FLOWER = false;
_root.preFlower = "";
_root.bundleCost = 0;
_root.Factory.Newbouguets.Bundle.gotoAndStop(1);
} else if (_root.Leaf) {
switch (_root.preLeaf) {
case "ribben8" :
_root.ribben8++;
_root.Factory.leafs.Ribben8.enabled = true;
_root.Factory.leafs.Ribben8._alpha = 100;
break;
case "ribben9" :
_root.ribben9++;
_root.Factory.leafs.Ribben9.enabled = true;
_root.Factory.leafs.Ribben9._alpha = 100;
break;
case "ribben10" :
_root.ribben10++;
_root.Factory.leafs.Ribben10.enabled = true;
_root.Factory.leafs.Ribben10._alpha = 100;
}
_root.leafCost = 0;
_root.preLeaf = "";
_root.Leaf = false;
_root.Factory.Newbouguets.Leaf.gotoAndStop(1);
} else if (_root.Ribben) {
switch (_root.preRibben) {
case "ribben1" :
_root.ribben1++;
_root.Factory.ribbens.Ribben1.enabled = true;
_root.Factory.ribbens.Ribben1._alpha = 100;
break;
case "ribben2" :
_root.ribben2++;
_root.Factory.ribbens.Ribben2.enabled = true;
_root.Factory.ribbens.Ribben2._alpha = 100;
break;
case "ribben3" :
_root.ribben3++;
_root.Factory.ribbens.Ribben3.enabled = true;
_root.Factory.ribbens.Ribben3._alpha = 100;
break;
case "ribben4" :
_root.ribben4++;
_root.Factory.ribbens.Ribben4.enabled = true;
_root.Factory.ribbens.Ribben4._alpha = 100;
break;
case "ribben5" :
_root.ribben5++;
_root.Factory.ribbens.Ribben5.enabled = true;
_root.Factory.ribbens.Ribben5._alpha = 100;
break;
case "ribben6" :
_root.ribben6++;
_root.Factory.ribbens.Ribben6.enabled = true;
_root.Factory.ribbens.Ribben6._alpha = 100;
break;
case "ribben7" :
_root.ribben7++;
_root.Factory.ribbens.Ribben7.enabled = true;
_root.Factory.ribbens.Ribben7._alpha = 100;
}
_root.ribbenCost = 0;
_root.preRibben = "";
_root.Ribben = false;
_root.Factory.doneBtn.enabled = false;
_root.Factory.cancelBtn.enabled = false;
_root.Factory.doneBtn._visible = false;
_root.Factory.cancelBtn._visible = false;
_root.Factory.Newbouguets.Ribben.gotoAndStop(1);
}
}
Symbol 605 Button
on (release) {
switch (_root.preRibben) {
case "ribben1" :
_root.ribben1++;
break;
case "ribben2" :
_root.ribben2++;
break;
case "ribben3" :
_root.ribben3++;
break;
case "ribben4" :
_root.ribben4++;
break;
case "ribben5" :
_root.ribben5++;
break;
case "ribben6" :
_root.ribben6++;
break;
case "ribben7" :
_root.ribben7++;
}
switch (_root.preLeaf) {
case "ribben8" :
_root.ribben8++;
break;
case "ribben9" :
_root.ribben9++;
break;
case "ribben10" :
_root.ribben10++;
}
switch (_root.preFlower) {
case "wflower" :
_root.HmWFCount = _root.HmWFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "rflower" :
_root.HmRFCount = _root.HmRFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "yflower" :
_root.HmYFCount = _root.HmYFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "wrflower" :
_root.HmWRFCount = _root.HmWRFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wyflower" :
_root.HmWYFCount = _root.HmWYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "ryflower" :
_root.HmRYFCount = _root.HmRYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wryflower" :
_root.HmWRYFCount = _root.HmWRYFCount + 3;
_root.totalFHead3 = _root.totalFHead3 + 3;
}
_root.FLOWER = false;
_root.preFlower = "";
_root.bundleCost = 0;
_root.leafCost = 0;
_root.ribbenCost = 0;
_root.Leaf = false;
_root.Ribben = false;
_root.preLeaf = "";
_root.preRibben = "";
_root.fromFactory = true;
_root.logo_Btn.games2girls_button.enabled = false;
_root.factoryMsg.gotoAndStop(1);
_root.Factory.gotoAndStop(1);
_root.Market._visible = true;
_root.Market.gotoAndPlay("sell");
}
Symbol 606 Button
on (release) {
switch (_root.preRibben) {
case "ribben1" :
_root.ribben1++;
break;
case "ribben2" :
_root.ribben2++;
break;
case "ribben3" :
_root.ribben3++;
break;
case "ribben4" :
_root.ribben4++;
break;
case "ribben5" :
_root.ribben5++;
break;
case "ribben6" :
_root.ribben6++;
break;
case "ribben7" :
_root.ribben7++;
}
switch (_root.preLeaf) {
case "ribben8" :
_root.ribben8++;
break;
case "ribben9" :
_root.ribben9++;
break;
case "ribben10" :
_root.ribben10++;
}
switch (_root.preFlower) {
case "wflower" :
_root.HmWFCount = _root.HmWFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "rflower" :
_root.HmRFCount = _root.HmRFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "yflower" :
_root.HmYFCount = _root.HmYFCount + 3;
_root.totalFHead1 = _root.totalFHead1 + 3;
break;
case "wrflower" :
_root.HmWRFCount = _root.HmWRFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wyflower" :
_root.HmWYFCount = _root.HmWYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "ryflower" :
_root.HmRYFCount = _root.HmRYFCount + 3;
_root.totalFHead2 = _root.totalFHead2 + 3;
break;
case "wryflower" :
_root.HmWRYFCount = _root.HmWRYFCount + 3;
_root.totalFHead3 = _root.totalFHead3 + 3;
}
_root.FLOWER = false;
_root.preFlower = "";
_root.bundleCost = 0;
_root.leafCost = 0;
_root.ribbenCost = 0;
_root.Leaf = false;
_root.Ribben = false;
_root.preLeaf = "";
_root.preRibben = "";
_root.bundletable1.play();
_root.bundletable2.play();
_root.bundletable3.play();
_root.logo_Btn.games2girls_button.enabled = true;
_root.factoryMsg.gotoAndStop(1);
_root.Factory.gotoAndStop(1);
if (!_root.newDay) {
_root.Paused = false;
var i = 0;
while (i < _root.buttonsArray.length) {
_root.buttonsArray[i].enabled = true;
i++;
}
var j = 0;
while (j < _root.unbuttonsArray.length) {
_root[_root.unbuttonsArray[j]].enabled = false;
j++;
}
} else {
_root.startBox.gotoAndPlay(2);
}
}
Symbol 610 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 8
stop();
_root.preRibben = "";
_root.preLeaf = "";
_root.preFlower = "";
_root.Ribben = false;
_root.Leaf = false;
_root.FLOWER = false;
_root.ribbenCost = 0;
_root.leafCost = 0;
_root.bundleCost = 0;
_root.Factory.L1.enabled = true;
_root.Factory.L2.enabled = true;
_root.Factory.L3.enabled = true;
_root.Factory.R1.enabled = true;
_root.Factory.R2.enabled = true;
_root.Factory.R3.enabled = true;
_root.Factory.doneBtn.enabled = false;
_root.Factory.cancelBtn.enabled = false;
_root.Factory.doneBtn._visible = false;
_root.Factory.cancelBtn._visible = false;
if (_root.b1Array.length > 0) {
_root.Factory.bqts1.ribben.gotoAndStop(_root.b1Array[0]);
_root.Factory.bqts1.leaf.gotoAndStop(_root.b1Array[1]);
_root.Factory.bqts1.flower.gotoAndStop(_root.b1Array[2]);
}
if (_root.b2Array.length > 0) {
_root.Factory.bqts2.ribben.gotoAndStop(_root.b2Array[0]);
_root.Factory.bqts2.leaf.gotoAndStop(_root.b2Array[1]);
_root.Factory.bqts2.flower.gotoAndStop(_root.b2Array[2]);
}
if (_root.b3Array.length > 0) {
_root.Factory.bqts3.ribben.gotoAndStop(_root.b3Array[0]);
_root.Factory.bqts3.leaf.gotoAndStop(_root.b3Array[1]);
_root.Factory.bqts3.flower.gotoAndStop(_root.b3Array[2]);
}
if (_root.b4Array.length > 0) {
_root.Factory.bqts4.ribben.gotoAndStop(_root.b4Array[0]);
_root.Factory.bqts4.leaf.gotoAndStop(_root.b4Array[1]);
_root.Factory.bqts4.flower.gotoAndStop(_root.b4Array[2]);
}
if (_root.b5Array.length > 0) {
_root.Factory.bqts5.ribben.gotoAndStop(_root.b5Array[0]);
_root.Factory.bqts5.leaf.gotoAndStop(_root.b5Array[1]);
_root.Factory.bqts5.flower.gotoAndStop(_root.b5Array[2]);
}
if (_root.b6Array.length > 0) {
_root.Factory.bqts6.ribben.gotoAndStop(_root.b6Array[0]);
_root.Factory.bqts6.leaf.gotoAndStop(_root.b6Array[1]);
_root.Factory.bqts6.flower.gotoAndStop(_root.b6Array[2]);
}
if (_root.b7Array.length > 0) {
_root.Factory.bqts7.ribben.gotoAndStop(_root.b7Array[0]);
_root.Factory.bqts7.leaf.gotoAndStop(_root.b7Array[1]);
_root.Factory.bqts7.flower.gotoAndStop(_root.b7Array[2]);
}
if (_root.b8Array.length > 0) {
_root.Factory.bqts8.ribben.gotoAndStop(_root.b8Array[0]);
_root.Factory.bqts8.leaf.gotoAndStop(_root.b8Array[1]);
_root.Factory.bqts8.flower.gotoAndStop(_root.b8Array[2]);
}
if ((((((((_root.b1Cost > 0) && (_root.b2Cost > 0)) && (_root.b3Cost > 0)) && (_root.b4Cost > 0)) && (_root.b5Cost > 0)) && (_root.b6Cost > 0)) && (_root.b7Cost > 0)) && (_root.b8Cost > 0)) {
_root.Factory.ribbens.Ribben1.enabled = false;
_root.Factory.ribbens.Ribben2.enabled = false;
_root.Factory.ribbens.Ribben3.enabled = false;
_root.Factory.ribbens.Ribben4.enabled = false;
_root.Factory.ribbens.Ribben5.enabled = false;
_root.Factory.ribbens.Ribben6.enabled = false;
_root.Factory.ribbens.Ribben7.enabled = false;
_root.Factory.leafs.Ribben8.enabled = false;
_root.Factory.leafs.Ribben9.enabled = false;
_root.Factory.leafs.Ribben10.enabled = false;
_root.Factory.bundles.WFlower.enabled = false;
_root.Factory.bundles.RFlower.enabled = false;
_root.Factory.bundles.YFlower.enabled = false;
_root.Factory.bundles.WRFlower.enabled = false;
_root.Factory.bundles.WYFlower.enabled = false;
_root.Factory.bundles.RYFlower.enabled = false;
_root.Factory.bundles.WRYFlower.enabled = false;
_root.Factory.L1.enabled = false;
_root.Factory.L2.enabled = false;
_root.Factory.L3.enabled = false;
_root.Factory.R1.enabled = false;
_root.Factory.R2.enabled = false;
_root.Factory.R3.enabled = false;
_root.Factory.doneBtn.enabled = false;
_root.Factory.cancelBtn.enabled = false;
_root.Factory.doneBtn._visible = false;
_root.Factory.cancelBtn._visible = false;
_root.factoryMsg.gotoAndPlay(2);
}
Symbol 621 MovieClip Frame 1
games2girls_button.onRelease = function () {
getURL ("http://www.games2girls.com/", "_blank");
};
Symbol 629 Button
on (release) {
_root.logo_Btn.games2girls_button.enabled = true;
_root.levelupMc.gotoAndStop(1);
_root.startBox.gotoAndPlay(2);
}
Symbol 630 Button
on (release) {
_root.levelupMc.gotoAndStop(1);
_root.logo_Btn.games2girls_button.enabled = false;
_root.Market._visible = true;
_root.Market.gotoAndPlay("sell");
}
Symbol 631 Button
on (release) {
_root.levelupMc.gotoAndStop(1);
_root.logo_Btn.games2girls_button.enabled = false;
_root.Factory.gotoAndPlay(2);
}
Symbol 632 MovieClip Frame 1
stop();
Symbol 632 MovieClip Frame 11
stop();
_root.setCloseFunction();
Symbol 641 Button
on (release) {
_root.tottalCost = 0;
_root.Market.purchaseBtn.enabled = true;
_root.Market.factoryBtn.enabled = true;
_root.Market.farmBtn.enabled = true;
_root.Market.sellItems.b1Btn.enabled = true;
_root.Market.sellItems.b2Btn.enabled = true;
_root.Market.sellBtn.enabled = false;
_root.Market.sellItems.cancelBtn.enabled = false;
_root.Market.sellItems.cancelBtn._alpha = 50;
_root.Market.sellBtn._alpha = 50;
var i = 0;
while (i < _root.itemArray.length) {
_root.itemArray[i].enabled = true;
i++;
}
_root.endBox.gotoAndStop(1);
}
Symbol 648 Button
on (release) {
_root.tottalCost = 0;
_root.Market.sellBtn.enabled = true;
_root.Market.factoryBtn.enabled = true;
_root.Market.farmBtn.enabled = true;
_root.Market.buyItems.sBtn.enabled = true;
_root.Market.buyItems.bBtn.enabled = true;
_root.Market.buyItems.rBtn.enabled = true;
_root.Market.buyItems.lBtn.enabled = true;
_root.Market.buyItems.cancelBtn.enabled = false;
_root.Market.buyBtn.enabled = false;
_root.Market.buyItems.cancelBtn._alpha = 50;
_root.Market.buyBtn._alpha = 50;
var i = 0;
while (i < _root.itemArray.length) {
_root.itemArray[i].enabled = true;
i++;
}
_root.endBox.gotoAndStop(1);
}
Symbol 649 MovieClip Frame 1
stop();
Symbol 649 MovieClip Frame 9
stop();
Symbol 649 MovieClip Frame 19
stop();
Symbol 654 Button
on (release) {
_root.Paused = false;
_root.bundletable1.play();
_root.bundletable2.play();
_root.bundletable3.play();
var i = 0;
while (i < _root.buttonsArray.length) {
if (_root.level > 1) {
_root.buttonsArray[i].enabled = true;
}
i++;
}
if (_root.level == 1) {
_root.nextAction = true;
_root.breakBtn.enabled = true;
_root.helpBtn.enabled = true;
_root.soundMc.enabled = true;
_root.Arrows._visible = true;
}
var j = 0;
while (j < _root.unbuttonsArray.length) {
_root[_root.unbuttonsArray[j]].enabled = false;
j++;
}
_root.logo_Btn.games2girls_button.enabled = true;
_root.newDay = false;
_root.startBox.gotoAndStop(1);
}
Symbol 660 Button
on (release) {
_root.gotoAndPlay("menu");
}
Symbol 662 Button
on (release) {
_root.Paused = false;
_root.bundletable1.play();
_root.bundletable2.play();
_root.bundletable3.play();
var i = 0;
while (i < _root.buttonsArray.length) {
if (_root.level > 1) {
_root.buttonsArray[i].enabled = true;
}
i++;
}
if (_root.level == 1) {
_root.breakBtn.enabled = true;
_root.helpBtn.enabled = true;
_root.soundMc.enabled = true;
_root.Arrows._visible = true;
_root[_root.levelArray[_root.levelLength - 1]].enabled = _root.poseTime;
}
var j = 0;
while (j < _root.unbuttonsArray.length) {
_root[_root.unbuttonsArray[j]].enabled = false;
j++;
}
_root.newDay = false;
_root.startBox.gotoAndStop(1);
}
Symbol 666 Button
on (release) {
_root.loads = true;
_root.gotoAndStop("game");
}
Symbol 667 MovieClip Frame 9
stop();
Symbol 667 MovieClip Frame 19
stop();
Symbol 667 MovieClip Frame 29
stop();
Symbol 670 Button
on (release) {
_root.makerMsg = true;
var i = 0;
while (i < _root.buttonsArray.length) {
_root.buttonsArray[i].enabled = true;
i++;
}
var j = 0;
while (j < _root.unbuttonsArray.length) {
_root[_root.unbuttonsArray[j]].enabled = false;
j++;
}
_root.popup.gotoAndStop(1);
}
Symbol 671 MovieClip Frame 1
stop();
Symbol 671 MovieClip Frame 6
_root.popup.okBtn._visible = true;
_root.popup.okBtn.enabled = true;
if (_root.makerMsg) {
_root.popup.msg._y = _root.popup.msg._y + 20;
_root.popup.okBtn._visible = false;
_root.popup.okBtn.enabled = false;
}
if (!_root.makerMsg) {
var i = 0;
while (i < _root.buttonsArray.length) {
_root.buttonsArray[i].enabled = false;
i++;
}
}
Symbol 671 MovieClip Frame 9
stop();
Symbol 676 MovieClip Frame 5
gotoAndPlay (1);
Symbol 676 MovieClip Frame 10
gotoAndPlay (6);
Symbol 679 MovieClip Frame 1
stop();
Symbol 679 MovieClip Frame 9
stop();
Symbol 683 Button
on (release) {
user_so.data.datas = "";
_root.loads = false;
_root.gotoAndStop("game");
}
Symbol 684 Button
on (release) {
if (_root.level == 1) {
user_so.data.datas = "";
_root.loads = false;
}
_root.gotoAndPlay("menu");
}
Symbol 686 Button
on (release) {
if (_root.level == 1) {
user_so.data.datas = "";
_root.loads = false;
} else {
_root.loads = true;
}
_root.gotoAndStop("game");
}
Symbol 687 MovieClip Frame 8
stop();