Frame 1
stop();
_root.soundready = false;
_root.sound1 = new Sound();
_root.musicBtn.gotoAndStop(2);
_root.sound1 = new Sound();
_root.sound1.attachSound("main");
Frame 2
if (!_root.soundready) {
_root.musicBtn.gotoAndStop(2);
_root.musicBtn1.gotoAndStop(2);
}
if (_root.soundready) {
_root.musicBtn.gotoAndStop(1);
_root.musicBtn1.gotoAndStop(1);
}
if (_root.soundready == false) {
_root.musicBtn.gotoAndStop(2);
_root.musicBtn1.gotoAndStop(2);
_root.sound1.start();
_root.sound1.onSoundComplete = function () {
_root.sound1.start();
};
} else {
_root.musicBtn.gotoAndStop(1);
_root.musicBtn1.gotoAndStop(1);
}
Instance of Symbol 486 MovieClip "musicBtn" in Frame 2
on (release) {
if (_root.soundready == false) {
_root.soundready = true;
_root.sound1.stop();
this.gotoAndStop(1);
_root.musicBtn1.gotoAndStop(1);
} else if (_root.soundready == true) {
_root.soundready = false;
this.gotoAndStop(2);
_root.musicBtn1.gotoAndStop(2);
_root.sound1.start();
}
}
on (rollOver) {
if (_root.soundready == false) {
this.gotoAndStop(4);
}
if (_root.soundready == true) {
this.gotoAndStop(3);
}
}
on (rollOut) {
if (_root.soundready == false) {
this.gotoAndStop(2);
}
if (_root.soundready == true) {
this.gotoAndStop(1);
}
}
Frame 33
stop();
var i = 1;
while (i < 11) {
_root["saleItem" + i] = false;
i++;
}
Frame 56
stop();
Frame 57
function initLevel() {
_root.attachMovie("mask", "masks", 9000, {_x:413, _y:324});
_root.sound2 = new Sound();
_root.sound2.attachSound("door");
_root.sound3 = new Sound();
_root.sound3.attachSound("pop");
_root.sound4 = new Sound();
_root.sound4.attachSound("angry");
_root.sound5 = new Sound();
_root.sound5.attachSound("happy");
_root.sound6 = new Sound();
_root.sound6.attachSound("enter");
_root.cash._visible = false;
_root.shoppingbags._visible = false;
_root.Paused = false;
_root.girlWalk = false;
_root.custEnterTime1 = 10;
_root.custEnterT1 = 0;
_root.custDepth = 0;
_root.finalDepth = 0;
_root.custPress = false;
_root.dressStill = false;
_root.custActionArray = new Array();
_root.girlActionArray = new Array();
_root.customerArray = new Array();
_root.seatArray = new Array();
_root.G12Array = new Array();
_root.A4Array = new Array();
_root.arrayName = new Array();
_root.arrayExit = new Array();
_root.arrayDress = new Array();
_root.arrayExit.removeMovieClip();
_root.arrayExit.splice(0);
_root.arrayName.splice(0);
_root.tryDressArray1 = new Array();
_root.tryDressArray2 = new Array();
_root.tryDressArray3 = new Array();
_root.tryCustArray1 = new Array();
_root.tryCustArray2 = new Array();
_root.tryCustArray3 = new Array();
_root.tryAction1 = false;
_root.tryAction2 = false;
_root.tryAction3 = false;
_root.dressTry1 = false;
_root.dressTry2 = false;
_root.dressTry3 = false;
_root.doorViewing1 = false;
_root.doorViewing2 = false;
_root.doorViewing3 = false;
_root.girlAlone = true;
_root.startAction = false;
_root.moneyViewing = false;
_root.girl.still = false;
_root.seatArray = ["S1", "S2", "S3", "S4"];
_root.seatRand = 0;
_root.custSpeed = 8;
_root.girlSpeed = 12;
_root.score1 = 0;
_root.walkItem1 = 0;
_root.walkItem2 = 0;
_root.walkItem3 = 0;
_root.walkItem4 = 0;
_root.tryCount1 = 0;
_root.tryCount2 = 0;
_root.tryCount3 = 0;
_root.walkGirl = false;
_root.customParent = "";
_root.customertype = "";
_root[destinationGirl] = "";
var _local3 = 1;
while (_local3 < 5) {
_root["door" + _local3].icons._visible = false;
_root["seat" + _local3] = false;
_root["dressHanger1" + _local3]._visible = false;
_root["dressHanger2" + _local3]._visible = false;
_root["dressHanger3" + _local3]._visible = false;
_root["head" + _local3]._visible = false;
_local3++;
}
_local3 = 0;
while (_local3 < 7) {
_root["basket" + _local3]._visible = false;
_root["dressViewing" + _local3] = false;
_local3++;
}
_root.G12Array = ["G1:A2:A3:A4", "G1:A2:A3", "G1:A2", "G1:A2:A1", "G5", "G7:G2", "G9:G3", "G6:G13", "G8:G14", "G10:G15", "A2:A7", "A2:A10", "A2:A13", "G16:G18:G17"];
_root.S1Array = ["S4", "S3", "S2", "S1", "A2:G5", "A2:G5:G2", "A2:G5:G3", "A2:G16:G13", "A2:G16:G14", "A2:G16:G15", "A7", "A10", "A13", "A2:G16:G18:G17", "D1"];
_root.S2Array = ["SA4", "S3", "S2", "S1", "G5", "G5:G2", "G5:G3", "G16:G13", "G16:G14", "G16:G15", "A7", "A10", "A13", "A2:G16:G18:G17", "D1"];
_root.S3Array = ["S4", "S3", "S2", "S1", "A2:G5", "A2:G5:G2", "A2:G5:G3", "A2:G16:G13", "A2:G16:G14", "A2:G16:G15", "A7", "A10", "A13", "A2:G16:G18:G17", "D1"];
_root.S4Array = ["S4", "S3", "S2", "S1", "A2:G5", "A5:A6:G2", "A5:A9:G3", "A2:G16:G13", "A5:A6:G7:G8:G14", "A5:A9:G9:G10:G15", "A7", "A10", "A13", "A2:G16:G18:G17", "D1"];
_root.A1Array = ["A4", "A3", "A2", "A1", "A2:G5", "A2:G5:G2", "A2:G5:G3", "A2:G16:G13", "A2:G16:G14", "A2:G16:G15", "A7", "A10", "A13", "A2:G16:G18:G17", "D1"];
_root.A2Array = ["A4", "A3", "A2", "A1", "G5", "G5:G2", "G5:G3", "G16:G13", "G16:G14", "G16:G15", "A7", "A10", "A13", "A2:G16:G18:G17", "D1"];
_root.A3Array = ["A4", "A3", "A2", "A1", "A2:G5", "A2:G5:G2", "A2:G5:G3", "A2:G16:G13", "A2:G16:G14", "A2:G16:G15", "A7", "A10", "A13", "A2:G16:G18:G17", "D1"];
_root.A4Array = ["A4", "A3", "A2", "A1", "A2:G5", "A5:A6:G2", "A5:A9:G3", "A2:G16:G13", "A5:A6:G7:G8:G14", "A5:A9:G9:G10:G15", "A7", "A10", "A13", "A2:G16:G18:G17", "D1"];
_root.G5Array = ["A2:A4", "A2:A3", "A2", "A2:A1", "G5", "G1:A6:G2", "G1:A9:G3", "G16:G13", "G16:G14", "G16:G15", "A2:A7", "A2:A10", "A2:A13", "G16:G18:G17", "G1:G19:D1"];
_root.G2Array = ["A6:A5:A4", "A6:A5:A4:A3", "A6:G1:A2", "A6:G1:A2:A1", "G5", "G2", "G3", "G7:G6:G13", "G7:G8:G14", "G7:G10:G15", "A6:A15:A7", "A6:A16:A10", "A6:A17:A13", "G5:G16:G18:G17", "A6:G19:D1"];
_root.G3Array = ["A9:A5:A4", "A9:A5:A4:A3", "G5:A2", "G5:A2:A1", "G5", "G2", "G3", "G9:G6:G13", "G9:G8:G14", "G9:G10:G15", "A9:A15:A7", "A9:A16:A10", "A9:A17:A13", "G5:G16:G18:G17", "A9:G19:D1"];
_root.G13Array = ["G16:A2:A4", "G16:A2:A3", "G16:A2", "G16:A2:A1", "G16:G5", "G6:G7:G2", "G6:G9:G3", "G13", "G14", "G15", "A5:A15:A7", "A5:A16:A10", "A5:A17:A13", "G16:G18:G17", "G18:G20:D1"];
_root.G14Array = ["G16:A2:A4", "G16:A2:A3", "G16:A2", "G16:A2:A1", "G16:G5", "G8:G7:G2", "G8:G9:G3", "G13", "G14", "G15", "A7", "A7:A10", "A7:A13", "G16:G18:G17", "G18:G20:D1"];
_root.G15Array = ["G16:A2:A4", "G16:A2:A3", "G16:A2", "G13:A4:A1", "G16:G5", "G14:G8:G7:G2", "G10:G9:G3", "G13", "G14", "G15", "G10:G11:A12:A15:A7", "G10:G11:A12:A16:A10", "G10:G11:A12:A17:A13", "G16:G18:G17", "G18:G20:D1"];
_root.A7Array = ["A4", "A3", "A2", "A1", "A15:G1:G5", "A15:A6:G2", "A15:A9:G3", "A15:A5:G13", "G14", "A15:A12:G11:G10:G15", "A7", "A10", "A13", "A15:G20:G18:G17", "A15:G19:D1"];
_root.A10Array = ["A4", "A3", "A2", "A1", "A16:G1:G5", "A16:A6:G2", "A16:A9:G3", "A16:A5:G13", "A16:A15:G14", "A16:A12:G11:G10:G15", "A7", "A10", "A13", "A16:G20:G18:G17", "A16:G19:D1"];
_root.A13Array = ["A4", "A3", "A2", "A1", "A17:G1:G5", "A17:A6:G2", "A17:A9:G3", "A17:A5:G13", "A17:A15:G14", "A17:A12:G11:G10:G15", "A7", "A10", "A13", "A17:G20:G18:G17", "A17:G19:D1"];
_root.G17Array = ["G18:G16:A2:A4", "G18:G16:A2:A3", "G18:G16:A2", "G18:G16:A2:A1", "G18:G16:G5", "G18:G16:G5:G2", "G18:G16:G5:G3", "G18:G13", "G18:G14", "G18:G15", "G18:G16:G1:A7", "G18:G16:G1:A10", "G18:G16:G1:A13", "G17", "G20:D1"];
_root.S1Num = 0;
_root.S2Num = 1;
_root.S3Num = 2;
_root.S4Num = 3;
_root.A4Num = 0;
_root.A3Num = 1;
_root.A2Num = 2;
_root.A1Num = 3;
_root.T1Num = 4;
_root.T2Num = 5;
_root.T3Num = 6;
_root.T4Num = 7;
_root.T5Num = 8;
_root.T6Num = 9;
_root.G5Num = 4;
_root.G2Num = 5;
_root.G3Num = 6;
_root.G13Num = 7;
_root.G14Num = 8;
_root.G15Num = 9;
_root.F1Num = 10;
_root.F2Num = 11;
_root.F3Num = 12;
_root.A7Num = 10;
_root.A10Num = 11;
_root.A13Num = 12;
_root.M1Num = 13;
_root.D1Num = 14;
_root.G17Num = 13;
_root.pathNode = new Array();
_root.arraySelect = new Array();
_root.arraySelect.splice(0);
_root.pathNode.splice(0);
_root.depth1 = 1000;
_root.depth2 = 1500;
_root.depth3 = 2150;
_root.depth4 = 3150;
_root.depth5 = 1800;
_root.settime = 0;
_root.timer = 100;
_root.timerStart = true;
_root.attachMovie("ob1", "ob1", 1900, {_x:320, _y:290});
_root.attachMovie("ob2", "ob2", 1901, {_x:470, _y:290});
_root.attachMovie("ob3", "ob3", 1902, {_x:630, _y:290});
_root.attachMovie("ob4", "ob4", 2203, {_x:410, _y:420});
_root.attachMovie("ob5", "ob5", 2204, {_x:570, _y:420});
_root.attachMovie("ob6", "ob6", 2205, {_x:715, _y:420});
_root.attachMovie("table", "table", 6005, {_x:_root.A1._x - 130, _y:590});
_root.attachMovie("cash", "cash", 6006, {_x:_root.A1._x - 110, _y:540});
_root.attachMovie("pack1", "pack1", 6007, {_x:_root.A1._x - 60, _y:510});
_root.attachMovie("pack2", "pack2", 6008, {_x:_root.A1._x - 70, _y:530});
_root.attachMovie("pack3", "pack3", 6009, {_x:_root.A1._x - 80, _y:550});
_root.table.helperGirl.shoppingBags._visible = false;
_root.pack1._xscale = 40;
_root.pack1._yscale = 40;
_root.pack2._xscale = 40;
_root.pack2._yscale = 40;
_root.pack3._xscale = 40;
_root.pack3._yscale = 40;
_root.cash._xscale = 80;
_root.cash._yscale = 80;
_root.table.tableglow._visible = false;
_root.dressScore1 = 70;
_root.dressScore2 = 80;
_root.dressScore3 = 90;
_root.dressScore4 = 100;
_root.dressScore5 = 130;
_root.dressScore6 = 150;
_root.packetScore1 = 2;
_root.packetScore2 = 3;
_root.packetScore3 = 4;
_root.packetScore4 = 7;
_root.packetScore5 = 8;
_root.packetScore6 = 9;
_root.table.pack1.gotoAndStop(1);
_root.table.pack2.gotoAndStop(2);
_root.table.pack3.gotoAndStop(3);
_root.table.pack1._visible = false;
_root.table.pack2._visible = false;
_root.table.pack3._visible = false;
_root.cash._visible = false;
_root.flagTryIcon1 = false;
_root.flagTryIcon2 = false;
_root.flagTryIcon3 = false;
_root.attachMovie("girl", "girl", 2000, {_x:270, _y:400});
_root.currentNodeGirl = "G12";
_root.girl._x = _root.G12._x;
_root.girl._y = _root.G12._y;
var _local2 = 1;
while (_local2 < 11) {
_root.bg["item" + _local2]._visible = false;
_local2++;
}
_local2 = 1;
while (_local2 < 11) {
if (_root["saleItem" + _local2] != true) {
_root["saleItem" + _local2] = false;
} else {
_root.dressScore1 = _root.dressScore1 + (_local2 * 10);
_root.dressScore2 = _root.dressScore2 + (_local2 * 10);
_root.dressScore3 = _root.dressScore3 + (_local2 * 10);
_root.dressScore4 = _root.dressScore4 + (_local2 * 10);
_root.dressScore5 = _root.dressScore5 + (_local2 * 10);
_root.dressScore6 = _root.dressScore6 + (_local2 * 10);
}
_local2++;
}
_root.custActionArray = ["frontsidle", "backsidle", "frontswalk", "backswalk", "rightsidle", "leftsidle", "rightwalk", "leftwalk", "sitting", "sittingorder", "sittingangry", "standangry", "standhappy"];
_root.girlActionArray = ["idlefront", "idleback", "walkfront", "walkback", "idleright", "idleleft", "walkright", "walkleft", "front walk", "back walk", "side walk", "side walks"];
if (_root.level == 1) {
_root.numberOfDress = 3;
_root.custEnterTimes = 330;
_root.rand1 = 1 + random(3);
_root.rand2 = 1 + random(3);
_root.enterTime = 80;
_root.targets = 200;
_root.exitInterval = 330;
if (_root.rand1 == 1) {
_root.ob1.dress.gotoAndStop(1);
_root.ob2.dress.gotoAndStop(2);
_root.ob3.dress.gotoAndStop(3);
_root.ob4.dress.gotoAndStop(1);
_root.ob5.dress.gotoAndStop(2);
_root.ob6.dress.gotoAndStop(3);
}
if (_root.rand1 == 2) {
_root.ob6.dress.gotoAndStop(1);
_root.ob5.dress.gotoAndStop(2);
_root.ob4.dress.gotoAndStop(3);
_root.ob3.dress.gotoAndStop(1);
_root.ob2.dress.gotoAndStop(2);
_root.ob1.dress.gotoAndStop(3);
}
if (_root.rand1 == 3) {
_root.ob1.dress.gotoAndStop(2);
_root.ob2.dress.gotoAndStop(1);
_root.ob3.dress.gotoAndStop(2);
_root.ob4.dress.gotoAndStop(1);
_root.ob5.dress.gotoAndStop(3);
_root.ob6.dress.gotoAndStop(3);
}
_root.setDoorNum = 1;
_root.dressNumbers = 3;
}
if (_root.level == 2) {
_root.numberOfDress = 3;
_root.custEnterTimes = 300;
_root.exitInterval = 330;
_root.rand1 = 1 + random(3);
_root.rand2 = 1 + random(3);
_root.enterTime = 80;
_root.targets = 250;
if (_root.rand1 == 1) {
_root.ob1.dress.gotoAndStop(2);
_root.ob2.dress.gotoAndStop(1);
_root.ob3.dress.gotoAndStop(3);
_root.ob4.dress.gotoAndStop(2);
_root.ob5.dress.gotoAndStop(3);
_root.ob6.dress.gotoAndStop(1);
}
if (_root.rand1 == 2) {
_root.ob6.dress.gotoAndStop(2);
_root.ob5.dress.gotoAndStop(3);
_root.ob4.dress.gotoAndStop(1);
_root.ob3.dress.gotoAndStop(1);
_root.ob2.dress.gotoAndStop(2);
_root.ob1.dress.gotoAndStop(3);
}
if (_root.rand1 == 3) {
_root.ob1.dress.gotoAndStop(1);
_root.ob2.dress.gotoAndStop(3);
_root.ob3.dress.gotoAndStop(2);
_root.ob4.dress.gotoAndStop(2);
_root.ob5.dress.gotoAndStop(1);
_root.ob6.dress.gotoAndStop(3);
}
_root.dressNumbers = 3;
}
if (_root.level == 3) {
_root.numberOfDress = 4;
_root.custEnterTimes = 280;
_root.exitInterval = 300;
_root.rand1 = 1 + random(3);
_root.rand2 = 1 + random(3);
_root.enterTime = 80;
_root.targets = 300;
if (_root.rand1 == 1) {
_root.ob1.dress.gotoAndStop(1);
_root.ob2.dress.gotoAndStop(2);
_root.ob3.dress.gotoAndStop(3);
_root.ob4.dress.gotoAndStop(4);
_root.ob5.dress.gotoAndStop(1);
_root.ob6.dress.gotoAndStop(3);
}
if (_root.rand1 == 2) {
_root.ob6.dress.gotoAndStop(1);
_root.ob5.dress.gotoAndStop(2);
_root.ob4.dress.gotoAndStop(3);
_root.ob3.dress.gotoAndStop(2);
_root.ob2.dress.gotoAndStop(4);
_root.ob1.dress.gotoAndStop(3);
}
if (_root.rand1 == 3) {
_root.ob1.dress.gotoAndStop(3);
_root.ob2.dress.gotoAndStop(1);
_root.ob3.dress.gotoAndStop(2);
_root.ob4.dress.gotoAndStop(1);
_root.ob5.dress.gotoAndStop(4);
_root.ob6.dress.gotoAndStop(3);
}
_root.dressNumbers = 4;
}
if (_root.level == 4) {
_root.numberOfDress = 5;
_root.custEnterTimes = 260;
_root.rand1 = 1 + random(3);
_root.rand2 = 1 + random(3);
_root.enterTime = 80;
_root.exitInterval = 270;
_root.targets = 400;
_root.tars = 450;
if (_root.rand1 == 1) {
_root.ob1.dress.gotoAndStop(1);
_root.ob2.dress.gotoAndStop(2);
_root.ob3.dress.gotoAndStop(3);
_root.ob4.dress.gotoAndStop(4);
_root.ob5.dress.gotoAndStop(5);
_root.ob6.dress.gotoAndStop(1);
}
if (_root.rand1 == 2) {
_root.ob6.dress.gotoAndStop(1);
_root.ob5.dress.gotoAndStop(2);
_root.ob4.dress.gotoAndStop(3);
_root.ob3.dress.gotoAndStop(5);
_root.ob2.dress.gotoAndStop(4);
_root.ob1.dress.gotoAndStop(3);
}
if (_root.rand1 == 3) {
_root.ob1.dress.gotoAndStop(5);
_root.ob2.dress.gotoAndStop(1);
_root.ob3.dress.gotoAndStop(2);
_root.ob4.dress.gotoAndStop(2);
_root.ob5.dress.gotoAndStop(4);
_root.ob6.dress.gotoAndStop(3);
}
_root.dressNumbers = 5;
}
if ((_root.level >= 5) && (_root.level < 12)) {
_root.numberOfDress = 6;
_root.custEnterTimes = 230;
_root.exitInterval = 240;
_root.rand1 = 1 + random(3);
_root.rand2 = 1 + random(3);
_root.enterTime = 80;
if (_root.tars1 != 0) {
_root.targets = _root.tars1;
_root.tars1 = 0;
} else {
_root.targets = _root.tars + (_root.level * 20);
_root.tars = _root.targets;
}
if (_root.rand1 == 1) {
_root.ob1.dress.gotoAndStop(1);
_root.ob2.dress.gotoAndStop(2);
_root.ob3.dress.gotoAndStop(3);
_root.ob4.dress.gotoAndStop(4);
_root.ob5.dress.gotoAndStop(5);
_root.ob6.dress.gotoAndStop(6);
}
if (_root.rand1 == 2) {
_root.ob6.dress.gotoAndStop(1);
_root.ob5.dress.gotoAndStop(2);
_root.ob4.dress.gotoAndStop(3);
_root.ob3.dress.gotoAndStop(5);
_root.ob2.dress.gotoAndStop(4);
_root.ob1.dress.gotoAndStop(6);
}
if (_root.rand1 == 3) {
_root.ob1.dress.gotoAndStop(5);
_root.ob2.dress.gotoAndStop(1);
_root.ob3.dress.gotoAndStop(2);
_root.ob4.dress.gotoAndStop(6);
_root.ob5.dress.gotoAndStop(4);
_root.ob6.dress.gotoAndStop(3);
}
_root.dressNumbers = 6;
}
if (_root.level >= 12) {
_root.numberOfDress = 6;
_root.custEnterTimes = 210;
_root.exitInterval = 220;
_root.rand1 = 1 + random(3);
_root.rand2 = 1 + random(3);
_root.enterTime = 80;
if (_root.tars1 != 0) {
_root.targets = _root.tars1;
_root.tars1 = 0;
} else {
_root.targets = _root.tars + 200;
_root.tars = _root.targets;
}
if (_root.rand1 == 1) {
_root.ob1.dress.gotoAndStop(1);
_root.ob2.dress.gotoAndStop(2);
_root.ob3.dress.gotoAndStop(3);
_root.ob4.dress.gotoAndStop(4);
_root.ob5.dress.gotoAndStop(5);
_root.ob6.dress.gotoAndStop(6);
}
if (_root.rand1 == 2) {
_root.ob6.dress.gotoAndStop(1);
_root.ob5.dress.gotoAndStop(2);
_root.ob4.dress.gotoAndStop(3);
_root.ob3.dress.gotoAndStop(5);
_root.ob2.dress.gotoAndStop(4);
_root.ob1.dress.gotoAndStop(6);
}
if (_root.rand1 == 3) {
_root.ob1.dress.gotoAndStop(5);
_root.ob2.dress.gotoAndStop(1);
_root.ob3.dress.gotoAndStop(2);
_root.ob4.dress.gotoAndStop(6);
_root.ob5.dress.gotoAndStop(4);
_root.ob6.dress.gotoAndStop(3);
}
_root.dressNumbers = 6;
}
if (_root.saleItem1 == true) {
_root.bg.item1._visible = true;
} else {
_root.bg.item1._visible = false;
}
if (_root.saleItem2 == true) {
_root.bg.item2._visible = true;
} else {
_root.bg.item2._visible = false;
}
if (_root.saleItem3 == true) {
_root.bg.item3._visible = true;
} else {
_root.bg.item3._visible = false;
}
if (_root.saleItem4 == true) {
_root.bg.item4._visible = true;
} else {
_root.bg.item4._visible = false;
}
if (_root.saleItem5 == true) {
_root.door1.gotoAndStop("screenGreen");
_root.door2.gotoAndStop("screenGreen");
_root.door3.gotoAndStop("screenGreen");
_root.setDoorNum = 65;
} else {
_root.door1.gotoAndStop(1);
_root.door2.gotoAndStop(1);
_root.door3.gotoAndStop(1);
}
if (_root.saleItem6 == true) {
_root.pack1.gotoAndStop(4);
} else {
_root.pack1.gotoAndStop(1);
}
if (_root.saleItem7 == true) {
_root.pack2.gotoAndStop(5);
} else {
_root.pack2.gotoAndStop(2);
}
if (_root.saleItem8 == true) {
_root.pack3.gotoAndStop(6);
} else {
_root.pack3.gotoAndStop(3);
}
if (_root.saleItem9 == true) {
_root.bg.item9._visible = true;
}
if (_root.saleItem10 == true) {
_root.bg.item10._visible = true;
}
_root.customerStart = true;
_root.pack1._visible = false;
_root.pack2._visible = false;
_root.pack3._visible = false;
}
function action() {
_root.pressDress();
_root.custEnterT1++;
if (_root.customerStart) {
if (_root.custEnterT1 == (_root.custEnterTime1 - 5)) {
_root.sound2.start();
_root.door.gotoAndPlay("open");
}
if (_root.custEnterT1 == _root.custEnterTime1) {
_root.custEnter();
_root.custEnterT1 = 0;
_root.custEnterTime1 = _root.custEnterTimes;
}
}
if (_root.custwalktoseat) {
_root.custWalkSeat();
}
if (_root.arraySelect.length >= 0) {
if (_root.startAction == false) {
selectionProcess();
}
}
_root.customPress();
_root.customerActionProcess();
if (_root.girlWalk) {
girlWalkTime();
}
for (var _local2 in _root.arrayExit) {
if (_root.arrayExit[_local2].custGones) {
customerGone();
}
}
if (_root.flagTryIcon1 == true) {
tryProcess1();
}
if (_root.flagTryIcon2 == true) {
tryProcess2();
}
if (_root.flagTryIcon3 == true) {
tryProcess3();
}
setTimer();
}
function setTimer() {
if (_root.timerStart == true) {
_root.settime++;
if (_root.settime == 15) {
_root.timer--;
_root.settime = 0;
}
}
if (_root.timer == 0) {
_root.timerStart = false;
_root.settime = 0;
_root.customerStart = false;
if ((_root.customerArray.length == 0) && (_root.cash._visible == false)) {
_root.score = _root.score + _root.score1;
if (_root.score1 >= _root.targets) {
clearCanvas();
if ((((((((((_root.saleItem1 == true) && (_root.saleItem2 == true)) && (_root.saleItem3 == true)) && (_root.saleItem4 == true)) && (_root.saleItem5 == true)) && (_root.saleItem6 == true)) && (_root.saleItem7 == true)) && (_root.saleItem8 == true)) && (_root.saleItem9 == true)) && (_root.saleItem10 == true)) {
_root.masks.removeMovieClip();
_root.gotoAndPlay("gamewon");
} else {
_root.masks.removeMovieClip();
_root.gotoAndPlay("levelup");
}
} else {
clearCanvas();
_root.masks.removeMovieClip();
_root.gotoAndPlay("gameover");
}
}
}
}
function clearCanvas() {
_root.Paused = true;
_root.table.removeMovieClip();
_root.girl.removeMovieClip();
var _local2 = 1;
while (_local2 < 7) {
_root["ob" + _local2].removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < 4) {
_root["pack" + _local2].removeMovieClip();
_local2++;
}
_root.cash.removeMovieClip();
}
function tryProcess1() {
if (_root.tryCustArray1[0].times == true) {
_root.tryCustArray1[0].count++;
if (_root.tryCustArray1[0].count == 40) {
_root.tryCustArray1[0].timesOut = true;
_root.tryCustArray1[0].timesReach = 0;
_root.tryCustArray1[0].dressSelect = _root.tryCustArray1[0].dressType;
}
if (_root.tryCustArray1[0].count == 41) {
if (_root.playingActions1 == true) {
_root.door1.enabled = false;
_root.tryCustArray1[0].times = false;
if (_root.saleItem5 == true) {
_root.door1.gotoAndPlay("playaction1");
} else {
_root.door1.gotoAndPlay("playaction");
}
_root.actionProcessStart1 = true;
}
}
if (_root.tryCustArray1[0].count == 45) {
if (_root.level > 2) {
_root.tryIconRand1 = 1 + random(2);
} else {
_root.tryIconRand1 = 1;
}
}
if (_root.tryCustArray1[0].count > 50) {
if (_root.tryCount1 == 2) {
_root.tryIconRand1 = 1;
}
if (_root.tryIconRand1 == 1) {
var _local2 = 0;
while (_local2 < _root.customerArray.length) {
if (_root.tryCustArray1[0] == _root.customerArray[_local2]) {
_root.customerArray[_local2]._visible = true;
_root.customerArray[_local2].enabled = true;
_root.customerArray[_local2].walkCust = false;
_root.customerArray[_local2].gotoAndStop(_root.custActionArray[0]);
_root.sound3.start();
_root.customerArray[_local2].icons._visible = true;
_root.customerArray[_local2].icons.gotoAndStop(3);
_root.customerArray[_local2].action = 5;
_root.customerArray[_local2].doors = 1;
_root.customerArray[_local2].dressType = _root.tryCustArray1[0].dressSelect;
_root.customerArray[_local2].timesOut = true;
_root.customerArray[_local2].timesReach = 100;
if (_root.girl.destination == "A7") {
_root.custGirl = _root.customerArray[_local2];
}
}
_local2++;
}
_root.door1.enabled = false;
_root.tryAction1 = false;
var _local3 = 0;
while (_local3 < _root.tryDressArray1.length) {
_root["dressViewing" + _root.tryDressArray1[_local3]] = false;
_local3++;
}
_root.dressHanger11._visible = false;
_root.dressHanger12._visible = false;
_root.dressHanger13._visible = false;
_root.tryCount1 = 0;
_root.door1.gotoAndStop(_root.setDoorNum);
_root.door1.icons._visible = false;
_root.tryCustArray1[0].times = false;
_root.tryCustArray1[0].count = 0;
_root.flagTryIcon1 = false;
_root.tryCustArray1.removeMovieClip();
_root.tryCustArray1.splice(0);
_root.tryDressArray1.splice(0);
} else {
checkDress();
}
}
}
}
function checkDress() {
t1rand = 1 + random(_root.dressNumbers);
if ((_root.tryCustArray1[0].dressSelect != t1rand) && (_root.tryCustArray1[0].dressType != t1rand)) {
_root.sound3.start();
_root.door1.icons._visible = true;
_root.door1.icons.dress.gotoAndStop(t1rand);
_root.trys1 = _root.tryCustArray1[0].dressSelect;
_root.tryCustArray1[0].dressSelect = t1rand;
_root.tryCustArray1[0].times = false;
_root.tryCustArray1[0].timesOut = true;
_root.tryCustArray1[0].timesReach = 0;
_root.tryCustArray1[0].count = 0;
_root.dressTry1 = true;
_root.tryCount1++;
_root.dressTaken = false;
_root.door1.enabled = true;
_root.girl.still = true;
_root["dressHanger1" + _root.tryCount1]._visible = true;
_root["dressHanger1" + _root.tryCount1].gotoAndStop(_root.trys1);
}
}
function tryProcess2() {
if (_root.tryCustArray2[0].times == true) {
_root.tryCustArray2[0].count++;
if (_root.tryCustArray2[0].count == 40) {
_root.tryCustArray2[0].timesOut = true;
_root.tryCustArray2[0].timesReach = 0;
_root.tryCustArray2[0].dressSelect = _root.tryCustArray2[0].dressType;
}
if (_root.tryCustArray2[0].count == 41) {
if (_root.playingActions2 == true) {
_root.tryCustArray2[0].times = false;
_root.door2.enabled = false;
if (_root.saleItem5 == true) {
_root.door2.gotoAndPlay("playaction1");
} else {
_root.door2.gotoAndPlay("playaction");
}
_root.actionProcessStart2 = true;
}
}
if (_root.tryCustArray2[0].count == 45) {
if (((((((((_root.level == 3) || (_root.level == 5)) || (_root.level == 7)) || (_root.level == 9)) || (_root.level == 11)) || (_root.level == 13)) || (_root.level == 15)) || (_root.level == 17)) || (_root.level == 19)) {
_root.tryIconRand2 = 1 + random(2);
} else {
_root.tryIconRand2 = 1;
}
}
if (_root.tryCustArray2[0].count > 50) {
if (_root.tryCount2 == 2) {
_root.tryIconRand2 = 1;
}
if (_root.tryIconRand2 == 1) {
var _local2 = 0;
while (_local2 < _root.customerArray.length) {
if (_root.tryCustArray2[0] == _root.customerArray[_local2]) {
_root.customerArray[_local2]._visible = true;
_root.customerArray[_local2].walkCust = false;
_root.customerArray[_local2].gotoAndStop(_root.custActionArray[0]);
_root.sound3.start();
_root.customerArray[_local2].enabled = true;
_root.customerArray[_local2].icons._visible = true;
_root.customerArray[_local2].icons.gotoAndStop(3);
_root.customerArray[_local2].action = 5;
_root.customerArray[_local2].doors = 2;
_root.customerArray[_local2].timesOut = true;
_root.customerArray[_local2].timesReach = 100;
_root.customerArray[_local2].dressType = _root.tryCustArray2[0].dressSelect;
if (_root.girl.destination == "A10") {
_root.custGirl = _root.customerArray[_local2];
}
}
_local2++;
}
_root.door2.enabled = false;
_root.tryAction2 = false;
_root.dressHanger21._visible = false;
_root.dressHanger22._visible = false;
_root.dressHanger23._visible = false;
var _local3 = 0;
while (_local3 < _root.tryDressArray2.length) {
_root["dressViewing" + _root.tryDressArray2[_local3]] = false;
_local3++;
}
_root.tryCount2 = 0;
_root.door2.gotoAndStop(_root.setDoorNum);
_root.door2.icons._visible = false;
_root.tryCustArray2[0].times = false;
_root.tryCustArray2[0].count = 0;
_root.tryCustArray2.removeMovieClip();
_root.tryCustArray2.splice(0);
_root.tryDressArray2.splice(0);
_root.flagTryIcon2 = false;
} else {
checkDress2();
}
}
}
}
function checkDress2() {
t2rand = 1 + random(_root.dressNumbers);
if ((_root.tryCustArray2[0].dressSelect != t2rand) && (_root.tryCustArray2[0].dressType != t2rand)) {
_root.sound3.start();
_root.door2.icons._visible = true;
_root.door2.icons.dress.gotoAndStop(t2rand);
_root.trys2 = _root.tryCustArray2[0].dressSelect;
_root.tryCustArray2[0].dressSelect = t2rand;
_root.tryCustArray2[0].times = false;
_root.tryCustArray2[0].count = 0;
_root.tryCustArray2[0].timesOut = true;
_root.tryCustArray2[0].timesReach = 0;
_root.dressTry2 = true;
_root.door2.enabled = true;
_root.tryCount2++;
_root.dressTaken = false;
_root.girl.still = true;
_root["dressHanger2" + _root.tryCount2]._visible = true;
_root["dressHanger2" + _root.tryCount2].gotoAndStop(_root.trys2);
}
}
function tryProcess3() {
if (_root.tryCustArray3[0].times == true) {
_root.tryCustArray3[0].count++;
if (_root.tryCustArray3[0].count == 40) {
_root.tryCustArray3[0].timesOut = true;
_root.tryCustArray3[0].timesReach = 0;
_root.tryCustArray3[0].dressSelect = _root.tryCustArray3[0].dressType;
}
if (_root.tryCustArray3[0].count == 41) {
if (_root.playingActions3 == true) {
_root.door3.enabled = false;
_root.tryCustArray3[0].times = false;
if (_root.saleItem5 == true) {
_root.door3.gotoAndPlay("playaction1");
} else {
_root.door3.gotoAndPlay("playaction");
}
_root.actionProcessStart3 = true;
}
}
if (_root.tryCustArray3[0].count == 45) {
_root.tryIconRand3 = 1 + random(2);
}
if (_root.tryCustArray3[0].count > 50) {
if (_root.tryCount3 == 2) {
_root.tryIconRand3 = 1;
}
if (_root.tryIconRand3 == 1) {
var _local2 = 0;
while (_local2 < _root.customerArray.length) {
if (_root.tryCustArray3[0] == _root.customerArray[_local2]) {
_root.customerArray[_local2]._visible = true;
_root.customerArray[_local2].walkCust = false;
_root.customerArray[_local2].gotoAndStop(_root.custActionArray[0]);
_root.sound3.start();
_root.customerArray[_local2].enabled = true;
_root.customerArray[_local2].icons._visible = true;
_root.customerArray[_local2].icons.gotoAndStop(3);
_root.customerArray[_local2].action = 5;
_root.customerArray[_local2].doors = 3;
_root.customerArray[_local2].timesOut = true;
_root.customerArray[_local2].timesReach = 100;
_root.customerArray[_local2].dressType = _root.tryCustArray3[0].dressSelect;
if (_root.girl.destination == "A13") {
_root.custGirl = _root.customerArray[_local2];
}
}
_local2++;
}
_root.tryAction3 = false;
_root.dressHanger31._visible = false;
_root.dressHanger32._visible = false;
_root.dressHanger33._visible = false;
var _local3 = 0;
while (_local3 < _root.tryDressArray3.length) {
_root["dressViewing" + _root.tryDressArray3[_local3]] = false;
_local3++;
}
_root.door3.enabled = false;
_root.tryCount3 = 0;
_root.door3.gotoAndStop(_root.setDoorNum);
_root.door3.icons._visible = false;
_root.tryCustArray3[0].times = false;
_root.tryCustArray3[0].count = 0;
_root.flagTryIcon3 = false;
_root.tryCustArray3.removeMovieClip();
_root.tryCustArray3.splice(0);
_root.tryDressArray3.splice(0);
} else {
checkDress3();
}
}
}
}
function checkDress3() {
t3rand = 1 + random(_root.dressNumbers);
if ((_root.tryCustArray3[0].dressSelect != t3rand) && (_root.tryCustArray3[0].dressType != t3rand)) {
_root.sound3.start();
_root.door3.icons._visible = true;
_root.door3.icons.dress.gotoAndStop(t3rand);
_root.trys3 = _root.tryCustArray3[0].dressSelect;
_root.tryCustArray3[0].dressSelect = t3rand;
_root.tryCustArray3[0].times = false;
_root.tryCustArray3[0].count = 0;
_root.tryCustArray3[0].timesOut = true;
_root.tryCustArray3[0].timesReach = 0;
_root.dressTry3 = true;
_root.tryCount3++;
_root.dressTaken = false;
_root.door3.enabled = true;
_root.girl.still = true;
_root["dressHanger3" + _root.tryCount3]._visible = true;
_root["dressHanger3" + _root.tryCount3].gotoAndStop(_root.trys3);
}
}
function customerActionProcess() {
for (var _local4 in _root.customerArray) {
if (_root.customerArray[_local4].intervalForOrder) {
_root.customerArray[_local4].timeNum++;
if (_root.customerArray[_local4].timeNum == 3) {
_root.customerArray[_local4].walkCust = true;
_root.customerArray[_local4].gotoAndPlay(_root.custActionArray[9]);
_root.sound6.start();
_root.customerArray[_local4].enabled = true;
}
if (_root.customerArray[_local4].timeNum == _root.exitInterval) {
_root.sound4.start();
_root.customerArray[_local4].walkCust = true;
_root.customerArray[_local4].gotoAndStop(_root.custActionArray[10]);
_root.customerArray[_local4].exit = true;
_root.customerArray[_local4].exitProcess = true;
_root.customerArray[_local4].swapDepths(_root.depth1++);
if (_root.depth1 == 1005) {
_root.depth1 = 1000;
}
_root.customerArray[_local4].exitProcess = true;
_root.customerArray[_local4].enabled = false;
_root.custGone();
_root.customerArray[_local4].intervalForOrder = false;
_root.customerArray[_local4].timeNum = 0;
_root.customerArray[_local4].p = "28";
_root["seat" + _root.customerArray[_local4].seat] = false;
}
}
if (_root.customerArray[_local4].times == true) {
_root.customerArray[_local4].timeOut++;
if (_root.customerArray[_local4].timeOut == _root.enterTime) {
_root.customerArray[_local4].icons._visible = true;
_root.customerArray[_local4].walkCust = false;
if (_root.level > 1) {
_root.randcheck = 1 + random(2);
} else {
_root.randcheck = 1;
}
_root.customerArray[_local4].enabled = true;
_root.sound3.start();
if (_root.randcheck == 1) {
_root.customerArray[_local4].MoneyAction = true;
_root.customerArray[_local4].icons.gotoAndStop(3);
_root.customerArray[_local4].action = 3;
} else {
_root.customerArray[_local4].icons.gotoAndStop(4);
_root.customerArray[_local4].action = 4;
_root.customerArray[_local4].tryAction1 = true;
}
_root["ob" + _root.customerArray[_local4].dressNumber].enabled = false;
_root["dressViewing" + _root.customerArray[_local4].dressNumber] = false;
_root.customerArray[_local4].times = false;
_root.customerArray[_local4].timesOut = true;
_root.customerArray[_local4].timesReach = 0;
_root.customerArray[_local4].timeOut = 0;
}
}
if (_root.customerArray[_local4].timesOut == true) {
_root.customerArray[_local4].timesReach++;
if (_root.customerArray[_local4].timesReach == 530) {
_root.customerArray[_local4].icons._visible = false;
_root.sound4.start();
_root.customerArray[_local4].walkCust = false;
_root.customerArray[_local4].gotoAndStop(_root.custActionArray[11]);
_root.customerArray[_local4].exit = true;
_root.customerArray[_local4].exitProcess = true;
if (_root.customerArray[_local4].action == 4) {
var _local2 = 1;
while (_local2 < 4) {
if (_root["tryCustArray" + _local2][0] == _root.customerArray[_local4]) {
_root.customerArray[_local4]._visible = true;
_root.customerArray[_local4].walkCust = false;
_root.customerArray[_local4].gotoAndStop(_root.custActionArray[0]);
_root.customerArray[_local4].dressType = _root["tryCustArray" + _local2][0].dressSelect;
_root[("dressHanger" + _local2) + "1"]._visible = false;
_root[("dressHanger" + _local2) + "2"]._visible = false;
_root[("dressHanger" + _local2) + "3"]._visible = false;
_root.customerArray[_local4].moneyView = false;
_root["doorViewing" + _local2] = false;
_root["tryAction" + _local2] = false;
_root["door" + _local2].icons._visible = false;
var _local3 = 0;
while (_local3 < _root["tryDressArray" + _local2].length) {
_root["dressViewing" + _root["tryDressArray" + _local2][_local3]] = false;
_local3++;
}
_root.customerArray[_local4].swapDepths(_root.depth5++);
if (_root.depth5 == 1890) {
_root.depth5 = 1800;
}
_root["door" + _local2].enabled = true;
_root["door" + _local2].gotoAndStop(_root.setDoorNum);
_root["playingActions" + _local2] = false;
_root["actionProcessStart" + _local2] = false;
_root["tryCount" + _local2] = 0;
_root["tryCustArray" + _local2][0].times = false;
_root["tryCustArray" + _local2][0].count = 0;
_root["flagTryIcon" + _local2] = false;
_root["tryCustArray" + _local2].removeMovieClip();
_root["tryCustArray" + _local2].splice(0);
_root["tryDressArray" + _local2].splice(0);
}
_local2++;
}
} else {
if (_root.customerArray[_local4].action != 1) {
if (_root.customerArray[_local4].action == 5) {
var _local2 = 1;
while (_local2 < 4) {
if (_root["tryCustArray" + _local2].length == 0) {
_root["doorViewing" + _local2] = false;
_root["tryAction" + _local2] = false;
_root["door" + _local2].icons._visible = false;
_root["playingActions" + _local2] = false;
_root["actionProcessStart" + _local2] = false;
}
_local2++;
}
}
_root.customerArray[_local4].swapDepths(_root.depth5++);
if (_root.depth5 == 1890) {
_root.depth5 = 1800;
}
}
_root["ob" + _root.dressNumber].enabled = true;
}
_root["dressViewing" + _root.customerArray[_local4].dressNumber] = false;
if (_root.customerArray[_local4].packingProcess == true) {
_root.sound4.start();
_root.customerArray[_local4].walkCust = true;
_root.customerArray[_local4].gotoAndPlay(_root.custActionArray[11]);
_root.customerArray[_local4].moneyView = false;
_root.customerArray[_local4].timeforMoney = false;
_root.moneyViewing = false;
_root.table.enabled = true;
_root.customerArray[_local4].moneyTime = 0;
_root.pack1._visible = false;
_root.pack2._visible = false;
_root.pack3._visible = false;
}
_root.customerArray[_local4].enabled = false;
_root.custGone();
_root.customerArray[_local4].timesOut = false;
_root.customerArray[_local4].timesReach = 0;
}
}
if (_root.customerArray[_local4].timeforMoney == true) {
_root.customerArray[_local4].moneyTime++;
if (_root.customerArray[_local4].moneyTime == 20) {
_root.sound3.start();
_root.customerArray[_local4].icons._visible = true;
_root.customerArray[_local4].icons.gotoAndStop(2);
_root.randomPacks = 1 + random(3);
_root.paksNo = _root.randomPacks;
if (_root.saleItem6 == true) {
if (_root.randomPacks == 1) {
_root.randomPacks = 4;
}
}
if (_root.saleItem7 == true) {
if (_root.randomPacks == 2) {
_root.randomPacks = 5;
}
}
if (_root.saleItem8 == true) {
if (_root.randomPacks == 3) {
_root.randomPacks = 6;
}
}
_root.sound3.start();
_root.customerArray[_local4].icons.gotoAndStop(2);
_root.customerArray[_local4].icons.packse.gotoAndStop(_root.randomPacks);
_root.customerArray[_local4].moneyTime = 0;
_root.customerArray[_local4].timeforMoney = false;
_root.customerArray[_local4].timesOut = true;
_root.customerArray[_local4].timesReach = 0;
_root.customerArray[_local4].packingProcess = true;
_root.customerNames = _root.customerArray[_local4];
_root.pack1.enabled = true;
_root.pack2.enabled = true;
_root.pack3.enabled = true;
_root.packsName = _root.randomPacks;
}
if (_root.customerArray[_local4].moneyTime == 40) {
if (_root.wrongPack == true) {
_root.sound4.start();
_root.customerArray[_local4].walkCust = true;
_root.customerArray[_local4].gotoAndPlay(_root.custActionArray[11]);
_root.scored = _root["dressScore" + _root.customerArray[_local4].dressType] - 50;
} else {
_root.sound5.start();
_root.customerArray[_local4].walkCust = true;
_root.customerArray[_local4].gotoAndPlay(_root.custActionArray[12]);
_root.scored = _root["dressScore" + _root.customerArray[_local4].dressType] + _root["packetScore" + _root.randomPacks];
}
_root.table.billingmachine.gotoAndPlay(1);
_root.wrongPack = false;
_root.customerArray[_local4].packingProcess = false;
_root.customerArray[_local4].won = true;
_root.customerArray[_local4].bagName = _root.packNames;
_root.table.helperGirl.shoppingBags._visible = false;
_root.customerArray[_local4].icons._visible = false;
_root.table.enabled = false;
}
if (_root.customerArray[_local4].moneyTime == 60) {
_root.cash._visible = true;
_root.table.enabled = false;
_root.customerArray[_local4].exit = true;
_root.customerArray[_local4].enabled = false;
_root.customerArray[_local4].packingProcess = false;
_root.customerArray[_local4].enabled = false;
_root.customerArray[_local4].exitProcess = true;
_root.custGone();
_root.customerArray[_local4].moneyView = false;
_root.customerArray[_local4].timeforMoney = false;
_root.customerArray[_local4].moneyTime = 0;
}
}
}
}
function custGone() {
node = "D1";
for (var _local2 in _root.customerArray) {
if (_root.customerArray[_local2].exit == true) {
_root.customerArray[_local2].exitProcess = true;
if (_root.customerArray[_local2].action == 5) {
if (_root.customerArray[_local2].doors == 1) {
_root.door1.enabled = true;
}
if (_root.customerArray[_local2].doors == 2) {
_root.door2.enabled = true;
}
if (_root.customerArray[_local2].doors == 3) {
_root.door3.enabled = true;
}
}
if (((_root.customerArray[_local2].destination == "G5") || (_root.customerArray[_local2].destination == "G2")) || (_root.customerArray[_local2].destination == "G3")) {
_root.customerArray[_local2].swapDepths(_root.depth2++);
if (_root.depth2 == 1600) {
_root.depth2 = 1500;
}
}
if (((_root.customerArray[_local2].destination == "G13") || (_root.customerArray[_local2].destination == "G14")) || (_root.customerArray[_local2].destination == "G15")) {
_root.customerArray[_local2].swapDepths(_root.depth4++);
if (_root.depth4 == 3200) {
_root.depth4 = 3150;
}
}
_root.customerArray[_local2].pathNode1 = new Array();
_root.customerArray[_local2].pathNode1.splice(0);
_root.customerArray[_local2].dests = "";
_root.customerArray[_local2].pathNode1 = _root[_root.customerArray[_local2].destination + "Array"][_root[node + "Num"]].split(":");
_root.customerArray[_local2].pathNode1.reverse();
_root.customerArray[_local2].walkItem1 = 0;
_root.customerArray[_local2].walkItem2 = 0;
_root.customerArray[_local2].walkItem3 = 0;
_root.customerArray[_local2].walkItem4 = 0;
_root.customerArray[_local2].custGones = true;
_root.customerArray[_local2].icons._visible = false;
_root.customerArray[_local2].exit = false;
_root.arrayExit.push(_root.customerArray[_local2]);
}
}
}
function customerGone() {
for (var _local3 in _root.arrayExit) {
if (_root.arrayExit[_local3].dests == "") {
_root.arrayExit[_local3].dests = _root.arrayExit[_local3].pathNode1.pop();
} else {
if (_root.arrayExit[_local3]._y == 204.5) {
_root.sound2.start();
_root.door.gotoAndPlay("open");
}
if ((_root.arrayExit[_local3]._y == "205.45") || (_root.arrayExit[_local3]._y == 205.45)) {
_root.sound2.start();
_root.door.gotoAndPlay("open");
}
_root.arrayExit[_local3].icons._visible = false;
if ((_root.arrayExit[_local3]._x < _root[_root.arrayExit[_local3].dests]._x) && (Math.abs(_root.arrayExit[_local3]._x - _root[_root.arrayExit[_local3].dests]._x) >= _root.custSpeed)) {
_root.arrayExit[_local3]._x = _root.arrayExit[_local3]._x + _root.custSpeed;
_root.arrayExit[_local3].walkItem1++;
_root.arrayExit[_local3].walkItem2 = 0;
_root.arrayExit[_local3].walkItem3 = 0;
_root.arrayExit[_local3].walkItem4 = 0;
if (_root.arrayExit[_local3].walkItem1 == 1) {
_root.arrayExit[_local3].walkCust = true;
_root.arrayExit[_local3].gotoAndPlay(_root.custActionArray[6]);
}
} else if ((_root.arrayExit[_local3]._x > _root[_root.arrayExit[_local3].dests]._x) && (Math.abs(_root.arrayExit[_local3]._x - _root[_root.arrayExit[_local3].dests]._x) >= _root.custSpeed)) {
_root.arrayExit[_local3]._x = _root.arrayExit[_local3]._x - _root.custSpeed;
_root.arrayExit[_local3].walkItem2++;
_root.arrayExit[_local3].walkItem1 = 0;
_root.arrayExit[_local3].walkItem3 = 0;
_root.arrayExit[_local3].walkItem4 = 0;
if (_root.arrayExit[_local3].walkItem2 == 1) {
_root.arrayExit[_local3].walkCust = true;
_root.arrayExit[_local3].gotoAndPlay(_root.custActionArray[7]);
}
}
if ((_root.arrayExit[_local3]._y < _root[_root.arrayExit[_local3].dests]._y) && (Math.abs(_root.arrayExit[_local3]._y - _root[_root.arrayExit[_local3].dests]._y) > _root.custSpeed)) {
_root.arrayExit[_local3]._y = _root.arrayExit[_local3]._y + _root.custSpeed;
_root.arrayExit[_local3].walkItem3++;
_root.arrayExit[_local3].walkItem1 = 0;
_root.arrayExit[_local3].walkItem2 = 0;
_root.arrayExit[_local3].walkItem4 = 0;
if (_root.arrayExit[_local3].walkItem3 == 1) {
_root.arrayExit[_local3].walkCust = true;
_root.arrayExit[_local3].gotoAndPlay(_root.custActionArray[2]);
}
} else if ((_root.arrayExit[_local3]._y > _root[_root.arrayExit[_local3].dests]._y) && (Math.abs(_root.arrayExit[_local3]._y - _root[_root.arrayExit[_local3].dests]._y) > _root.custSpeed)) {
_root.arrayExit[_local3].walkItem4++;
_root.arrayExit[_local3].walkItem1 = 0;
_root.arrayExit[_local3].walkItem2 = 0;
_root.arrayExit[_local3].walkItem3 = 0;
if (_root.arrayExit[_local3].walkItem4 == 1) {
if (_root.arrayExit[_local3].won == true) {
_root.arrayExit[_local3].bags._visible = true;
_root.arrayExit[_local3].bags.gotoAndStop(_root.arrayExit[_local3].bagName);
}
_root.arrayExit[_local3].walkCust = true;
_root.arrayExit[_local3].gotoAndPlay(_root.custActionArray[3]);
}
_root.arrayExit[_local3]._y = _root.arrayExit[_local3]._y - _root.custSpeed;
}
if ((Math.abs(_root.arrayExit[_local3]._x - _root[_root.arrayExit[_local3].dests]._x) <= _root.girlSpeed) && (Math.abs(_root.arrayExit[_local3]._y - _root[_root.arrayExit[_local3].dests]._y) <= _root.custSpeed)) {
_root.arrayExit[_local3]._x = _root[_root.arrayExit[_local3].dests]._x;
_root.arrayExit[_local3]._y = _root[_root.arrayExit[_local3].dests]._y;
_root.arrayExit[_local3].destination = _root.arrayExit[_local3].dests;
_root.arrayExit[_local3].dests = "";
_root.arrayExit[_local3].won = false;
if (_root.arrayExit[_local3].pathNode1.length == 0) {
if (_root.arrayExit[_local3].p == "28") {
_root.sound2.start();
_root.door.gotoAndPlay("open");
}
var _local2 = 0;
while (_local2 < _root.customerArray.length) {
if (_root.customerArray[_local2] == _root.arrayExit[_local3]) {
_root.customerArray[_local2].removeMovieClip();
_root.customerArray.splice(_local2, 1);
}
_local2++;
}
_root.arrayExit[_local3].removeMovieClip();
_root.arrayExit.splice(_local3, 1);
}
}
}
}
}
function selectionProcess() {
if ((((((_root.arraySelect[0] == 1) || (_root.arraySelect[0] == 2)) || (_root.arraySelect[0] == 3)) || (_root.arraySelect[0] == 4)) || (_root.arraySelect[0] == 5)) || (_root.arraySelect[0] == 6)) {
if (_root.girlWalk == false) {
if (_root["dressViewing" + _root.arraySelect[0]] == false) {
node = "T" + _root.arraySelect[0];
if (_root.dressTaken) {
_root["ob" + _root.dressNumber].dress._visible = true;
_root["dressViewing" + _root.dressNumber] = false;
_root.dressTaken = false;
}
_root.dressNums = _root["ob" + _root.arraySelect[0]].dress._currentframe;
if ((_root.customParent != "") && (_root.customParent.exitProcess == false)) {
_root.customParent.icons._visible = false;
_root.customParent.dressReached = true;
_root.customParent.intervalForOrder = false;
if (_root.customParent.dressPlaced == 1) {
_root.ob1.enabled = true;
}
if (_root.customParent.dressPlaced == 2) {
_root.ob2.enabled = true;
}
if (_root.customParent.dressPlaced == 3) {
_root.ob3.enabled = true;
}
if (_root.customParent.dressPlaced == 4) {
_root.ob4.enabled = true;
}
if (_root.customParent.dressPlaced == 5) {
_root.ob5.enabled = true;
}
if (_root.customParent.dressPlaced == 6) {
_root.ob6.enabled = true;
}
_root.customParent.dressPlaced = 0;
_root.customParent.dressPlaced = _root.arraySelect[0];
} else {
_root.customParent = "";
}
_root.valDress = _root.dressNumber;
_root.dressNumber = _root.arraySelect[0];
_root.startAction = true;
_root[destinationGirl] = "";
_root.pathNode.splice(0);
_root.girlWalk = true;
_root.pathNode = _root[_root.currentNodeGirl + "Array"][_root[node + "Num"]].split(":");
_root.pathNode.reverse();
} else {
_root.arraySelect.splice(0, 1);
}
}
} else if (_root.arraySelect[0] == 7) {
if (_root.girlWalk == false) {
if (_root.dressTaken) {
_root["ob" + _root.dressNumber].enabled = true;
var _local2 = 0;
while (_local2 < _root.tryDressArray1.length) {
if (_root.tryDressArray1[_local2] == _root.dressNumber) {
_root.tryDressArray1.splice(_local2, 1);
}
_local2++;
}
_root["ob" + _root.dressNumber].dress._visible = true;
}
node = "M1";
if ((_root.custGirl != "") && (_root.custGirl.exitProcess == false)) {
if (_root["dressViewing" + _root.custGirl.dressNumber] == false) {
_root.customParent = _root.custGirl;
if (_root.customParent.tryAction1 == true) {
_root.customParent.tryAction1 = false;
}
_root["ob" + _root.custGirl.dressNumber].enabled = true;
_root.moneyViewing = true;
_root.customParent.timesOut = false;
_root.customParent.timesReach = 0;
_root.customParent.moneyView = true;
_root.customParent.icons._visible = false;
_root.customParent.enabled = false;
_root.startAction = true;
_root.pathNode.splice(0);
_root.girlWalk = true;
if (_root.currentNodeGirl == "A7") {
if (_root.customParent.tryDress == true) {
_root.customParent.tryDress = false;
_root.doorViewing1 = false;
}
}
if (_root.currentNodeGirl == "A10") {
if (_root.customParent.tryDress == true) {
_root.customParent.tryDress = false;
_root.doorViewing2 = false;
}
}
if (_root.currentNodeGirl == "A13") {
if (_root.customParent.tryDress == true) {
_root.customParent.tryDress = false;
_root.doorViewing3 = false;
}
}
_root.pathNode = _root[_root.currentNodeGirl + "Array"][_root[node + "Num"]].split(":");
_root.pathNode.reverse();
} else {
if (_root.currentNodeGirl == "A7") {
if (_root.customParent.tryDress == true) {
_root.customParent.tryDress = false;
}
_root.doorViewing1 = false;
}
if (_root.currentNodeGirl == "A10") {
if (_root.customParent.tryDress == true) {
_root.customParent.tryDress = false;
_root.doorViewing2 = false;
}
}
if (_root.currentNodeGirl == "A13") {
if (_root.customParent.tryDress == true) {
_root.customParent.tryDress = false;
_root.doorViewing3 = false;
}
}
_root.customParent.timesOut = false;
_root.customParent.timesReach = 0;
_root.customParent.icons._visible = false;
_root.customParent.enabled = false;
_root.startAction = true;
_root.pathNode.splice(0);
_root.girlWalk = true;
_root.pathNode = _root[_root.currentNodeGirl + "Array"][_root[node + "Num"]].split(":");
_root.pathNode.reverse();
}
} else {
_root.custGirl = "";
}
if (_root.custGirl == "") {
_root.startAction = true;
_root.pathNode.splice(0);
_root.girlWalk = true;
_root.pathNode = _root[_root.currentNodeGirl + "Array"][_root[node + "Num"]].split(":");
_root.pathNode.reverse();
}
}
} else if (_root.arraySelect[0] == 8) {
if (_root.girlWalk == false) {
if (_root.dressTaken) {
var _local2 = 0;
while (_local2 < _root.tryDressArray1.length) {
if (_root.tryDressArray1[_local2] == _root.dressNumber) {
_root.tryDressArray1.splice(_local2, 1);
}
_local2++;
}
_root["dressViewing" + _root.dressNumber] = false;
_root.dressTaken = false;
}
if (_root.arrayName[0].exitProcess == false) {
var _local3 = 0;
while (_local3 < _root.customerArray.length) {
if (_root.arrayName[0] == _root.customerArray[_local3]) {
} else if (_root.customerArray[_local3].action == 2) {
}
_local3++;
}
_root.custPress = true;
_root.arrayName[0].depths = _root.arrayName[0].getDepth();
_root.customParent = "";
_root.customertype = _root.arrayName[0];
}
_root.arrayName[0].node = _root.arrayName[0].destination;
_root.girlWalk = true;
_root.startAction = true;
_root.pathNode.splice(0);
_root.pathNode = _root[_root.currentNodeGirl + "Array"][_root[_root.arrayName[0].node + "Num"]].split(":");
_root.pathNode.reverse();
_root.arrayName.splice(0, 1);
}
} else if (_root.arraySelect[0] == 9) {
node = "F1";
if (_root.girlWalk == false) {
if ((_root.custGirl != "") && (_root.custGirl.exitProcess == false)) {
if (_root.tryDressArray1.length != 0) {
_root.customParent = "";
_root.custGirl = "";
}
if (_root.custGirl.icons._visible == true) {
_root.custGirl.icons._visible = false;
}
if ((_root["dressViewing" + _root.custGirl.dressNumber] == false) && (_root.custGirl.moneyView == false)) {
if (_root.custGirl != "") {
_root.customParent = _root.custGirl;
}
if ((_root.doorViewing1 == false) && (_root.customParent.action == 4)) {
_root["dressViewing" + _root.customParent.dressNumber] = false;
_root["ob" + _root.customParent.dressNumber].enabled = true;
_root.tryDressArray1.push(_root.customParent.dressNumber);
_root.dressvisible = _root.customParent.dressNumber;
_root.tryAction1 = true;
_root.customParent.icons._visible = false;
_root.customParent.tryDress = true;
_root.customParent.enabled = false;
} else if (_root.customParent.action == 4) {
_root.tryDressArray1.push(_root.customParent.dressNumber);
_root.customParent = "";
_root.custGirl = "";
_root.customertype = "";
_root.girl.still = true;
}
_root.customParent.timesOut = false;
_root.customParent.timesReach = 0;
if (_root.customParent.action == 5) {
_root.customParent.action = 6;
}
_root.setDoor = _root.currentNodeGirl;
_root.pathNode.splice(0);
_root.girlWalk = true;
_root.pathNode = _root[_root.currentNodeGirl + "Array"][_root[node + "Num"]].split(":");
_root.pathNode.reverse();
} else {
_root.pathNode.splice(0);
_root.girlWalk = true;
_root.pathNode = _root[_root.currentNodeGirl + "Array"][_root[node + "Num"]].split(":");
_root.pathNode.reverse();
}
} else {
_root.customParent = "";
_root.custGirl = "";
if (_root.doorViewing1 == true) {
_root.girl.still = true;
if (_root.dressStill == true) {
_root.dressTaken = true;
_root["ob" + _root.dressNumber].enabled = true;
_root.dressVisible = _root.dressNumber;
_root.dressPoint = _root["ob" + _root.dressNumber].dress._currentframe;
_root.dressStill = false;
}
}
_root.pathNode.splice(0);
_root.girlWalk = true;
_root.pathNode = _root[_root.currentNodeGirl + "Array"][_root[node + "Num"]].split(":");
_root.pathNode.reverse();
}
}
} else if (_root.arraySelect[0] == 10) {
node = "F2";
if (_root.girlWalk == false) {
if ((_root.custGirl != "") && (_root.custGirl.exitProcess == false)) {
if (_root.tryDressArray2.length != 0) {
_root.customParent = "";
_root.custGirl = "";
}
if (_root.custGirl.icons._visible == true) {
_root.custGirl.icons._visible = false;
}
if ((_root["dressViewing" + _root.custGirl.dressNumber] == false) && (_root.custGirl.moneyView == false)) {
if (_root.custGirl != "") {
_root.customParent = _root.custGirl;
}
if ((_root.doorViewing2 == false) && (_root.customParent.action == 4)) {
_root["dressViewing" + _root.customParent.dressNumber] = false;
_root["ob" + _root.customParent.dressNumber].enabled = true;
_root.tryDressArray2.push(_root.customParent.dressNumber);
_root.dressvisible = _root.customParent.dressNumber;
_root.tryAction2 = true;
_root.customParent.icons._visible = false;
_root.customParent.tryDress = true;
_root.customParent.enabled = false;
} else if (_root.customParent.action == 4) {
_root.tryDressArray2.push(_root.customParent.dressNumber);
_root.customParent = "";
_root.custGirl = "";
_root.customertype = "";
_root.girl.still = true;
}
_root.customParent.timesOut = false;
_root.customParent.timesReach = 0;
if (_root.customParent.action == 5) {
_root.customParent.action = 6;
}
_root.setDoor = _root.currentNodeGirl;
_root.pathNode.splice(0);
_root.girlWalk = true;
_root.pathNode = _root[_root.currentNodeGirl + "Array"][_root[node + "Num"]].split(":");
_root.pathNode.reverse();
} else {
_root.pathNode.splice(0);
_root.girlWalk = true;
_root.pathNode = _root[_root.currentNodeGirl + "Array"][_root[node + "Num"]].split(":");
_root.pathNode.reverse();
}
} else {
_root.customParent = "";
_root.custGirl = "";
if (_root.doorViewing2 == true) {
_root.girl.still = true;
if (_root.dressStill == true) {
_root.dressTaken = true;
_root["ob" + _root.dressNumber].enabled = true;
_root.dressVisible = _root.dressNumber;
_root.dressPoint = _root["ob" + _root.dressNumber].dress._currentframe;
_root.dressStill = false;
}
}
_root.pathNode.splice(0);
_root.girlWalk = true;
_root.pathNode = _root[_root.currentNodeGirl + "Array"][_root[node + "Num"]].split(":");
_root.pathNode.reverse();
}
}
} else if (_root.arraySelect[0] == 11) {
node = "F3";
if (_root.girlWalk == false) {
if ((_root.custGirl != "") && (_root.custGirl.exitProcess == false)) {
if (_root.tryDressArray3.length != 0) {
_root.customParent = "";
_root.custGirl = "";
}
if (_root.custGirl.icons._visible == true) {
_root.custGirl.icons._visible = false;
}
if ((_root["dressViewing" + _root.custGirl.dressNumber] == false) && (_root.custGirl.moneyView == false)) {
if (_root.custGirl != "") {
_root.customParent = _root.custGirl;
}
if ((_root.doorViewing3 == false) && (_root.customParent.action == 4)) {
_root["dressViewing" + _root.customParent.dressNumber] = false;
_root["ob" + _root.customParent.dressNumber].enabled = true;
_root.tryDressArray3.push(_root.customParent.dressNumber);
_root.dressvisible = _root.customParent.dressNumber;
_root.tryAction3 = true;
_root.customParent.icons._visible = false;
_root.customParent.tryDress = true;
_root.customParent.enabled = false;
} else if (_root.customParent.action == 4) {
_root.tryDressArray3.push(_root.customParent.dressNumber);
_root.customParent = "";
_root.custGirl = "";
_root.customertype = "";
_root.girl.still = true;
}
_root.customParent.timesOut = false;
_root.customParent.timesReach = 0;
if (_root.customParent.action == 5) {
_root.customParent.action = 6;
}
_root.setDoor = _root.currentNodeGirl;
_root.pathNode.splice(0);
_root.girlWalk = true;
_root.pathNode = _root[_root.currentNodeGirl + "Array"][_root[node + "Num"]].split(":");
_root.pathNode.reverse();
} else {
_root.pathNode.splice(0);
_root.girlWalk = true;
_root.pathNode = _root[_root.currentNodeGirl + "Array"][_root[node + "Num"]].split(":");
_root.pathNode.reverse();
}
} else {
_root.customParent = "";
_root.custGirl = "";
if (_root.doorViewing3 == true) {
_root.girl.still = true;
if (_root.dressStill == true) {
_root.dressTaken = true;
_root["ob" + _root.dressNumber].enabled = true;
_root.dressVisible = _root.dressNumber;
_root.dressPoint = _root["ob" + _root.dressNumber].dress._currentframe;
_root.dressStill = false;
}
}
_root.pathNode.splice(0);
_root.girlWalk = true;
_root.pathNode = _root[_root.currentNodeGirl + "Array"][_root[node + "Num"]].split(":");
_root.pathNode.reverse();
}
}
}
}
function pressDress() {
var _local3 = 1;
while (_local3 < 7) {
_root["ob" + _local3].onPress = function () {
if (_root.Paused == false) {
this.dress.filters = null;
var _local3 = Number(String(this).substring(10, 12));
if (_root["dressViewing" + _local3] == false) {
_root.arraySelect.push(_local3);
}
}
};
_root["ob" + _local3].onRollOver = function () {
if (_root.Paused == false) {
var _local3 = new flash.filters.GlowFilter(16777215, 30, 8, 3, 2, 2, false, false);
this.dress.filters = [_local3];
}
};
_root["ob" + _local3].onRollOut = function () {
if (_root.Paused == false) {
this.dress.filters = null;
}
};
_local3++;
}
_root.table.onPress = function () {
if (_root.Paused == false) {
if (_root.moneyViewing == false) {
_root.arraySelect.push(7);
}
this.tableglow._visible = false;
}
};
_root.cash.onPress = function () {
if (_root.Paused == false) {
_root.score1 = _root.score1 + _root.scored;
_root.moneyViewing = false;
this._visible = false;
_root.table.enabled = true;
}
};
_root.table.onRollOver = function () {
if (_root.Paused == false) {
this.tableglow._visible = true;
}
};
_root.table.onRollOut = function () {
if (_root.Paused == false) {
this.tableglow._visible = false;
}
};
_root.door1.onPress = function () {
if (_root.Paused == false) {
node = "F1";
this.filters = null;
_root.arraySelect.push(9);
}
};
_root.door1.onRollOver = function () {
if (_root.Paused == false) {
var _local3 = new flash.filters.GlowFilter(16777215, 10, 6, 6, 1, 1, false, false);
this.filters = [_local3];
}
};
_root.door1.onRollOut = function () {
if (_root.Paused == false) {
this.filters = null;
}
};
_root.door2.onPress = function () {
if (_root.Paused == false) {
node = "F2";
this.filters = null;
_root.arraySelect.push(10);
}
};
_root.door2.onRollOver = function () {
if (_root.Paused == false) {
var _local3 = new flash.filters.GlowFilter(16777215, 10, 6, 6, 1, 1, false, false);
this.filters = [_local3];
}
};
_root.door2.onRollOut = function () {
if (_root.Paused == false) {
this.filters = null;
}
};
_root.door3.onPress = function () {
if (_root.Paused == false) {
node = "F3";
this.filters = null;
_root.arraySelect.push(11);
}
};
_root.door3.onRollOver = function () {
if (_root.Paused == false) {
var _local3 = new flash.filters.GlowFilter(16777215, 10, 6, 6, 1, 1, false, false);
this.filters = [_local3];
}
};
_root.door3.onRollOut = function () {
if (_root.Paused == false) {
this.filters = null;
}
};
_root.pack1.onPress = function () {
if (_root.Paused == false) {
if (paksNo == 1) {
_root.wrongPack = false;
} else {
_root.wrongPack = true;
}
_root.customerNames.timeforMoney = true;
_root.customerNames.moneyTime = 20;
_root.table.helperGirl.gotoAndPlay("packing");
this.enabled = false;
_root.pack2.enabled = false;
_root.pack3.enabled = false;
this._visible = false;
_root.pack2._visible = false;
_root.pack3._visible = false;
_root.table.helperGirl.shoppingBags._visible = true;
if (_root.saleItem6 == true) {
_root.table.helperGirl.shoppingBags.gotoAndStop(4);
_root.packNames = 4;
} else {
_root.table.helperGirl.shoppingBags.gotoAndStop(1);
_root.packNames = 1;
}
_root.customerNames.timesOut = true;
_root.customerNames.timesReach = 0;
this.filters = null;
}
};
_root.pack1.onRollOver = function () {
if (_root.Paused == false) {
var _local3 = new flash.filters.GlowFilter(15711085, 30, 10, 3, 4, 4, false, false);
this.filters = [_local3];
}
};
_root.pack1.onRollOut = function () {
if (_root.Paused == false) {
this.filters = null;
}
};
_root.pack2.onPress = function () {
if (_root.Paused == false) {
this.filters = null;
if (paksNo == 2) {
_root.wrongPack = false;
} else {
_root.wrongPack = true;
}
_root.customerNames.timeforMoney = true;
_root.customerNames.moneyTime = 20;
_root.table.helperGirl.gotoAndPlay("packing");
this.enabled = false;
_root.pack1.enabled = false;
_root.pack3.enabled = false;
this._visible = false;
_root.pack1._visible = false;
_root.pack3._visible = false;
_root.table.helperGirl.shoppingBags._visible = true;
if (_root.saleItem7 == true) {
_root.table.helperGirl.shoppingBags.gotoAndStop(5);
_root.packNames = 5;
} else {
_root.table.helperGirl.shoppingBags.gotoAndStop(2);
_root.packNames = 2;
}
_root.customerNames.timesOut = true;
_root.customerNames.timesReach = 0;
}
};
_root.pack2.onRollOver = function () {
if (_root.Paused == false) {
var _local3 = new flash.filters.GlowFilter(15711085, 30, 10, 3, 4, 4, false, false);
this.filters = [_local3];
}
};
_root.pack2.onRollOut = function () {
if (_root.Paused == false) {
this.filters = null;
}
};
_root.pack3.onPress = function () {
if (_root.Paused == false) {
this.filters = null;
if (paksNo == 3) {
_root.wrongPack = false;
} else {
_root.wrongPack = true;
}
_root.customerNames.timeforMoney = true;
_root.customerNames.moneyTime = 20;
_root.table.helperGirl.gotoAndPlay("packing");
this.enabled = false;
_root.pack1.enabled = false;
_root.pack2.enabled = false;
this._visible = false;
_root.pack1._visible = false;
_root.pack2._visible = false;
_root.table.helperGirl.shoppingBags._visible = true;
if (_root.saleItem8 == true) {
_root.table.helperGirl.shoppingBags.gotoAndStop(6);
_root.packNames = 6;
} else {
_root.table.helperGirl.shoppingBags.gotoAndStop(3);
_root.packNames = 3;
}
_root.customerNames.timesOut = true;
_root.customerNames.timesReach = 0;
}
};
_root.pack3.onRollOver = function () {
if (_root.Paused == false) {
var _local3 = new flash.filters.GlowFilter(15711085, 30, 10, 3, 4, 4, false, false);
this.filters = [_local3];
}
};
_root.pack3.onRollOut = function () {
if (_root.Paused == false) {
this.filters = null;
}
};
}
function customPress() {
var _local3 = 0;
while (_local3 < _root.customerArray.length) {
_root.customerArray[_local3].onPress = function () {
if (_root.Paused == false) {
_root.arraySelect.push(8);
this._xscale = 100;
this._yscale = 100;
this.intervalForOrder = false;
this.times = false;
this.timesOut = false;
_root.arrayName.push(this);
}
};
_root.customerArray[_local3].onRollOver = function () {
if (_root.Paused == false) {
this._xscale = 102;
this._yscale = 102;
}
};
_root.customerArray[_local3].onRollOut = function () {
if (_root.Paused == false) {
this._xscale = 100;
this._yscale = 100;
}
};
_local3++;
}
}
function girlWalkTime() {
if (_root.girl.hitlady.hitTest(_root.hit2)) {
_root.girl.swapDepths(2000);
}
if (_root.girl.hitlady.hitTest(_root.hit1)) {
_root.girl.swapDepths(1400);
}
if (_root.girl.hitlady.hitTest(_root.hit3)) {
_root.girl.swapDepths(2100);
}
if (_root.girl.hitlady.hitTest(_root.hit4)) {
_root.girl.swapDepths(5500);
}
if (_root.customParent != "") {
_root.customParent.swapDepths(_root.girl.getDepth() - 1);
}
if (_root[destinationGirl] == "") {
_root[destinationGirl] = _root.pathNode.pop();
} else {
if ((_root.girl._x < _root[_root[destinationGirl]]._x) && (Math.abs(_root.girl._x - _root[_root[destinationGirl]]._x) >= _root.girlSpeed)) {
_root.girl._x = _root.girl._x + _root.girlSpeed;
if (_root.customParent != "") {
_root.customParent._x = _root.girl._x;
}
_root.walkItem1++;
_root.walkItem2 = 0;
_root.walkItem3 = 0;
_root.walkItem4 = 0;
if (_root.walkItem1 == 1) {
if ((((_root.dressTaken == true) || (_root.tryAction1 == true)) || (_root.tryAction2 == true)) || (_root.tryAction3 == true)) {
_root.customParent.walkCust = true;
_root.customParent.gotoAndPlay(_root.custActionArray[6]);
_root.walkGirl = true;
_root.girl.gotoAndPlay(_root.girlActionArray[10]);
} else {
_root.walkGirl = true;
_root.customParent.walkCust = true;
_root.customParent.gotoAndPlay(_root.custActionArray[6]);
_root.girl.gotoAndPlay(_root.girlActionArray[6]);
}
}
} else if ((_root.girl._x > _root[_root[destinationGirl]]._x) && (Math.abs(_root.girl._x - _root[_root[destinationGirl]]._x) >= _root.girlSpeed)) {
_root.girl._x = _root.girl._x - _root.girlSpeed;
if (_root.customParent != "") {
_root.customParent._x = _root.girl._x;
}
_root.walkItem2++;
_root.walkItem1 = 0;
_root.walkItem3 = 0;
_root.walkItem4 = 0;
if (_root.walkItem2 == 1) {
if ((((_root.dressTaken == true) || (_root.tryAction1 == true)) || (_root.tryAction2 == true)) || (_root.tryAction3 == true)) {
_root.customParent.gotoAndPlay(_root.custActionArray[7]);
_root.walkGirl = true;
_root.customParent.walkCust = true;
_root.girl.gotoAndPlay(_root.girlActionArray[11]);
} else {
_root.walkGirl = true;
_root.customParent.walkCust = true;
_root.customParent.gotoAndPlay(_root.custActionArray[7]);
_root.girl.gotoAndPlay(_root.girlActionArray[7]);
}
}
}
if ((_root.girl._y < _root[_root[destinationGirl]]._y) && (Math.abs(_root.girl._y - _root[_root[destinationGirl]]._y) > _root.girlSpeed)) {
_root.girl._y = _root.girl._y + _root.girlSpeed;
if (_root.customParent != "") {
_root.customParent._y = _root.girl._y;
}
_root.walkItem3++;
_root.walkItem1 = 0;
_root.walkItem2 = 0;
_root.walkItem4 = 0;
if (_root.walkItem3 == 1) {
if ((((_root.dressTaken == true) || (_root.tryAction1 == true)) || (_root.tryAction2 == true)) || (_root.tryAction3 == true)) {
_root.customParent.gotoAndPlay(_root.custActionArray[2]);
_root.walkGirl = true;
_root.customParent.walkCust = true;
_root.girl.gotoAndPlay(_root.girlActionArray[8]);
} else {
_root.walkGirl = true;
_root.customParent.walkCust = true;
_root.customParent.gotoAndPlay(_root.custActionArray[2]);
_root.girl.gotoAndPlay(_root.girlActionArray[2]);
}
}
} else if ((_root.girl._y > _root[_root[destinationGirl]]._y) && (Math.abs(_root.girl._y - _root[_root[destinationGirl]]._y) > _root.girlSpeed)) {
_root.girl._y = _root.girl._y - _root.girlSpeed;
if (_root.customParent != "") {
_root.customParent._y = _root.girl._y;
}
_root.walkItem4++;
_root.walkItem1 = 0;
_root.walkItem2 = 0;
_root.walkItem3 = 0;
if (_root.walkItem4 == 1) {
if ((((_root.dressTaken == true) || (_root.tryAction1 == true)) || (_root.tryAction2 == true)) || (_root.tryAction3 == true)) {
_root.customParent.gotoAndPlay(_root.custActionArray[3]);
_root.walkGirl = true;
_root.customParent.walkCust = true;
_root.girl.gotoAndPlay(_root.girlActionArray[9]);
} else {
_root.walkGirl = true;
_root.customParent.walkCust = true;
_root.customParent.gotoAndPlay(_root.custActionArray[3]);
_root.girl.gotoAndPlay(_root.girlActionArray[3]);
}
}
}
if ((Math.abs(_root.girl._x - _root[_root[destinationGirl]]._x) <= _root.girlSpeed) && (Math.abs(_root.girl._y - _root[_root[destinationGirl]]._y) <= _root.girlSpeed)) {
_root.girl._x = _root[_root[destinationGirl]]._x;
_root.girl._y = _root[_root[destinationGirl]]._y;
_root.currentNodeGirl = _root[destinationGirl];
_root[destinationGirl] = "";
if (_root.customParent != "") {
_root.customParent.enabled = false;
_root.customParent.destination = _root.currentNodeGirl;
if (_root.customParent.action == 5) {
if (_root.customParent.doors == 1) {
_root.door1.enabled = true;
}
if (_root.customParent.doors == 2) {
_root.door2.enabled = true;
}
if (_root.customParent.doors == 3) {
_root.door3.enabled = true;
}
}
if (_root.customParent.dressReached == true) {
if (_root.customParent.dressPlaced == 1) {
_root.ob1.enabled = false;
}
if (_root.customParent.dressPlaced == 2) {
_root.ob2.enabled = false;
}
if (_root.customParent.dressPlaced == 3) {
_root.ob3.enabled = false;
}
if (_root.customParent.dressPlaced == 4) {
_root.ob4.enabled = false;
}
if (_root.customParent.dressPlaced == 5) {
_root.ob5.enabled = false;
}
if (_root.customParent.dressPlaced == 6) {
_root.ob6.enabled = false;
}
_root.customParent.dressReached = false;
}
}
if (_root.pathNode.length == 0) {
_root.tryAction1 = false;
_root.tryAction2 = false;
_root.tryAction3 = false;
_root.walkItem1 = 0;
_root.walkItem2 = 0;
_root.walkItem3 = 0;
_root.walkItem4 = 0;
_root.arraySelect.splice(0, 1);
_root.startAction = false;
_root.girl.destination = _root.currentNodeGirl;
if (((_root.currentNodeGirl == "G5") || (_root.currentNodeGirl == "G2")) || (_root.currentNodeGirl == "G3")) {
_root.customParent.swapDepths(_root.depth2++);
if (_root.depth2 == 1600) {
_root.depth2 = 1500;
}
}
if (((_root.currentNodeGirl == "G13") || (_root.currentNodeGirl == "G14")) || (_root.currentNodeGirl == "G15")) {
_root.customParent.swapDepths(_root.depth4++);
if (_root.depth4 == 3200) {
_root.depth4 = 3150;
}
}
if (((((((_root.currentNodeGirl == "G5") || (_root.currentNodeGirl == "G2")) || (_root.currentNodeGirl == "G3")) || (_root.currentNodeGirl == "G13")) || (_root.currentNodeGirl == "G14")) || (_root.currentNodeGirl == "G15")) && (_root.custPress == false)) {
_root.startAction = false;
dressReach();
} else if (((((((_root.currentNodeGirl == "G5") || (_root.currentNodeGirl == "G2")) || (_root.currentNodeGirl == "G3")) || (_root.currentNodeGirl == "G13")) || (_root.currentNodeGirl == "G14")) || (_root.currentNodeGirl == "G15")) && (_root.custPress == true)) {
_root.startAction = false;
customActionReach();
} else if (_root.currentNodeGirl == "G17") {
_root.startAction = false;
moneyTableReach();
} else if ((((_root.currentNodeGirl == "A1") || (_root.currentNodeGirl == "A2")) || (_root.currentNodeGirl == "A3")) || (_root.currentNodeGirl == "A4")) {
_root.startAction = false;
enteringCustomReach();
} else if (((_root.currentNodeGirl == "A7") || (_root.currentNodeGirl == "A10")) || (_root.currentNodeGirl == "A13")) {
_root.startAction = false;
doorReached();
}
}
}
}
}
function dressReach() {
if ((_root.customParent == null) || (_root.customParent == "")) {
_root.girl.cust = false;
_root.custGirl = "";
_root.customertype = "";
if (_root.girl.still == true) {
_root.girlWalk = false;
_root.walkGirl = false;
_root.girl.gotoAndStop(_root.girlActionArray[4]);
_root.dressStill = true;
} else {
_root.walkGirl = false;
_root.girlWalk = false;
_root.girl.gotoAndStop(_root.girlActionArray[4]);
_root.dressStill = true;
}
} else {
_root.custGirl = _root.customParent;
_root.girl.cust = true;
_root.customParent.gotoAndStop(_root.custActionArray[4]);
_root.customParent.destination = _root.currentNodeGirl;
_root.customParent.dresspress = _root.dressNumber;
if ((_root.customParent.dressType == _root.dressNums) && (_root.customParent.action == 1)) {
if (_root.customertype != "") {
_root.customParent._x = _root.girl._x;
_root.customParent._y = _root.girl._y;
_root.customParent = _root.customertype;
}
_root["seat" + _root.customParent.seat] = false;
_root.customParent.walkCust = true;
_root.customParent.gotoAndPlay("rightreview");
_root.customParent.times = true;
_root.customParent.timeOut = 0;
_root.customParent.timeNum = 0;
_root.customParent.intervalForOrder = false;
_root.customParent.dressNumber = _root.dressNumber;
_root["dressViewing" + _root.dressNumber] = true;
_root.customParent.action = 2;
_root.customParent = "";
} else if ((_root.customParent.dressType == _root.dressNums) && ((_root.customParent.action == 3) || (_root.customParent.action == 4))) {
_root.customParent.icons._visible = true;
_root.customParent.icons.gotoAndStop(_root.customParent.action);
_root.customParent.dressNumber = _root.dressNums;
_root.customParent.dressNumber = _root.dressNumber;
} else {
_root["dressViewing" + _root.customParent.dresspress] = false;
_root["ob" + _root.customParent.dresspress].enabled = true;
_root["seat" + _root.customParent.seat] = false;
_root.customParent.timesOut = true;
_root.customParent.timesReach = 490;
_root.sound4.start();
_root.girl.cust = false;
_root.customParent.walkCust = false;
_root.customParent.gotoAndStop(_root.custActionArray[11]);
_root.customParent = "";
_root.custGirl = "";
}
_root.girlWalk = false;
_root.walkGirl = false;
_root.girl.gotoAndStop(_root.girlActionArray[4]);
}
}
function customActionReach() {
if (_root.custPress == true) {
_root.custPress = false;
}
if (_root.customertype != "") {
_root.customParent._x = _root.girl._x;
_root.customParent._y = _root.girl._y;
_root.customParent = _root.customertype;
_root.customertype = "";
}
_root.customParent.timesOut = true;
_root.customParent.timesReach = 100;
_root.custGirl = _root.customParent;
_root.girl.cust = true;
_root.customParent.destination = _root.currentNodeGirl;
_root.girlWalk = false;
_root.walkGirl = false;
_root.girl.gotoAndStop(_root.girlActionArray[1]);
}
function enteringCustomReach() {
if (_root.custPress == true) {
_root.custPress = false;
}
if (_root.customertype != "") {
_root.customParent._x = _root.girl._x;
_root.customParent._y = _root.girl._y;
_root.customParent = _root.customertype;
_root.customertype = "";
}
if ((_root.customParent == null) || (_root.customParent == "")) {
_root.girl.cust = false;
_root.custGirl = "";
} else if (_root.customParent.icons._visible == false) {
_root.custGirl = _root.customParent;
_root.girl.cust = true;
_root.customParent.icons._visible = true;
_root.dressRand = 1 + random(_root.numberOfDress);
if (_root.arrayDress.length > 0) {
_root.rnddress = _root.arrayDress.pop();
if (_root.rnddress == _root.dressRand) {
if (_root.dressRand == _root.numberOfDress) {
_root.dressRand = 1;
} else {
_root.dressRand = _root.dressRand + 1;
}
}
}
_root.sound3.start();
_root.customParent.timeNum = 10;
_root.customParent.intervalForOrder = true;
_root.arrayDress.push(_root.dressRand);
_root.customParent.icons.dress.gotoAndStop(_root.dressRand);
_root.customParent.dressType = _root.dressRand;
_root.customParent.destination = _root.currentNodeGirl;
} else {
_root.customParent.timeNum = 10;
_root.customParent.intervalForOrder = true;
_root.custGirl = _root.customParent;
_root.girl.cust = true;
_root.customParent.dressNumber = _root.dressNumber;
_root.customParent.destination = _root.currentNodeGirl;
}
_root.girlWalk = false;
_root.walkGirl = false;
_root.girl.gotoAndStop(_root.girlActionArray[1]);
}
function moneyTableReach() {
if ((_root.customParent.action == 3) || (_root.customParent.action == 5)) {
_root.customParent.enabled = false;
_root.pack1._visible = true;
_root.pack2._visible = true;
_root.pack3._visible = true;
_root.pack1.enabled = false;
_root.pack2.enabled = false;
_root.pack3.enabled = false;
_root.customParent.swapDepths(_root.depth3++);
if (_root.depth3 == 2185) {
_root.depth3 = 2150;
}
_root.customParent.timeNum = 0;
_root.customParent.intervalForOrder = false;
_root.customParent.dressPlaced = 0;
_root.table.enabled = false;
_root.customParent.timesOut = false;
_root.customParent.timesReach = 0;
_root.customParent.moneytablereached = true;
_root.girl.swapDepths(2000);
_root.customParent.destination = _root.currentNodeGirl;
_root.customParent.timeforMoney = true;
_root.customParent.moneyTime = 0;
_root.customParent.walkCust = false;
_root.customParent.gotoAndStop(_root.custActionArray[0]);
_root.walkGirl = false;
_root.girl.gotoAndStop(_root.girlActionArray[0]);
_root.customParent = "";
_root.custGirl = "";
} else {
if (_root.customParent.action == 1) {
_root["seat" + _root.customParent.seat] = false;
}
_root.customParent.dressPlaced = 0;
_root.customParent.enabled = false;
_root.customParent.timesOut = true;
_root.customParent.timesReach = 490;
_root.moneyViewing = false;
_root.sound4.start();
_root.customParent.walkCust = false;
_root.customParent.gotoAndStop(_root.custActionArray[11]);
_root.walkGirl = false;
_root.girl.gotoAndStop(_root.girlActionArray[0]);
_root.customParent = "";
_root.custGirl = "";
_root.customParent = "";
}
_root.girlWalk = false;
}
function doorReached() {
if (_root.customertype != "") {
_root.customParent._x = _root.girl._x;
_root.customParent._y = _root.girl._y;
_root.customParent = _root.customertype;
}
_root.customParent.dressPlaced = 0;
if ((_root.customParent == null) || (_root.customParent == "")) {
_root.girl.cust = false;
_root.custGirl = "";
if ((_root.girl.still == true) && (_root.dressTaken == true)) {
if (_root.currentNodeGirl == "A7") {
if (_root.tryCustArray1[0].dressSelect == _root.dressPoint) {
_root.tryCustArray1[0].times = true;
_root.tryDressArray1.push(_root.dressNumber);
_root.door1.icons._visible = false;
_root.tryCustArray1[0].count = 40;
_root.playingActions1 = true;
_root.tryCustArray1[0].timesOut = false;
_root.tryCustArray1[0].timesReach = 0;
} else {
var _local2 = 0;
while (_local2 < _root.customerArray.length) {
if (_root.tryCustArray1[0] == _root.customerArray[_local2]) {
_root.customerArray[_local2]._visible = true;
_root.customerArray[_local2].walkCust = false;
_root.customerArray[_local2].gotoAndStop(_root.custActionArray[0]);
_root.custGirl = _root.customerArray[_local2];
}
_local2++;
}
_root.doorViewing1 = false;
_root.tryAction1 = false;
_root.custGirl.timesOut = true;
_root.custGirl.timesReach = 490;
_root.custGirl.swapDepths(_root.depth5++);
if (_root.depth5 == 1890) {
_root.depth5 = 1800;
}
_root.playingActions1 = false;
_root.actionProcessStart1 = false;
_root.sound4.start();
_root.custGirl.walkCust = false;
_root.custGirl.gotoAndStop(_root.custActionArray[11]);
var _local3 = 0;
while (_local3 < _root.tryDressArray1.length) {
_root["dressViewing" + _root.tryDressArray1[_local3]] = false;
_local3++;
}
_root["dressViewing" + _root.dressNumber] = false;
_root.tryCount1 = 0;
_root.door1.gotoAndStop(_root.setDoorNum);
_root.door1.icons._visible = false;
_root.dressHanger11._visible = false;
_root.dressHanger12._visible = false;
_root.dressHanger13._visible = false;
_root.tryCustArray1[0].times = false;
_root.tryCustArray1[0].count = 0;
_root.flagTryIcon1 = false;
_root.tryCustArray1.removeMovieClip();
_root.tryCustArray1.splice(0);
_root.tryDressArray1.splice(0);
}
}
if (_root.currentNodeGirl == "A10") {
if (_root.tryCustArray2[0].dressSelect == _root.dressPoint) {
_root.tryCustArray2[0].times = true;
_root.tryDressArray2.push(_root.dressNumber);
_root.tryCustArray2[0].count = 40;
_root.door2.icons._visible = false;
_root.playingActions2 = true;
_root.tryCustArray2[0].timesOut = false;
_root.tryCustArray2[0].timesReach = 0;
} else {
var _local2 = 0;
while (_local2 < _root.customerArray.length) {
if (_root.tryCustArray2[0] == _root.customerArray[_local2]) {
_root.customerArray[_local2]._visible = true;
_root.customerArray[_local2].walkCust = false;
_root.customerArray[_local2].gotoAndStop(_root.custActionArray[0]);
_root.custGirl = _root.customerArray[_local2];
}
_local2++;
}
_root.custGirl.swapDepths(_root.depth5++);
if (_root.depth5 == 1890) {
_root.depth5 = 1800;
}
_root.doorViewing2 = false;
_root.door2.icons._visible = false;
_root.custGirl.timesOut = true;
_root.custGirl.timesReach = 490;
_root.sound4.start();
_root.custGirl.walkCust = false;
_root.custGirl.gotoAndStop(_root.custActionArray[11]);
var _local3 = 0;
while (_local3 < _root.tryDressArray2.length) {
_root["dressViewing" + _root.tryDressArray2[_local3]] = false;
_local3++;
}
_root.door2.gotoAndStop(_root.setDoorNum);
_root.playingActions2 = false;
_root.actionProcessStart2 = false;
_root.tryAction2 = false;
_root["dressViewing" + _root.dressNumber] = false;
_root.tryCount2 = 0;
_root.dressHanger21._visible = false;
_root.dressHanger22._visible = false;
_root.dressHanger23._visible = false;
_root.tryCustArray2[0].times = false;
_root.tryCustArray2[0].count = 0;
_root.flagTryIcon2 = false;
_root.tryCustArray2.removeMovieClip();
_root.tryCustArray2.splice(0);
_root.tryDressArray2.splice(0);
}
}
if (_root.currentNodeGirl == "A13") {
if (_root.tryCustArray3[0].dressSelect == _root.dressPoint) {
_root.tryCustArray3[0].times = true;
_root.tryDressArray3.push(_root.dressNumber);
_root.tryCustArray3[0].count = 40;
_root.door3.icons._visible = false;
_root.playingActions3 = true;
_root.tryCustArray3[0].timesOut = false;
_root.tryCustArray3[0].timesReach = 0;
} else {
var _local2 = 0;
while (_local2 < _root.customerArray.length) {
if (_root.tryCustArray3[0] == _root.customerArray[_local2]) {
_root.customerArray[_local2]._visible = true;
_root.customerArray[_local2].walkCust = false;
_root.customerArray[_local2].gotoAndStop(_root.custActionArray[0]);
_root.custGirl = _root.customerArray[_local2];
}
_local2++;
}
_root.custGirl.swapDepths(_root.depth5++);
if (_root.depth5 == 1890) {
_root.depth5 = 1800;
}
_root.playingActions3 = false;
_root.actionProcessStart3 = false;
_root.doorViewing3 = false;
_root.tryAction3 = false;
_root.dressHanger31._visible = false;
_root.dressHanger32._visible = false;
_root.dressHanger33._visible = false;
_root.custGirl.timesOut = true;
_root.custGirl.timesReach = 490;
_root.sound4.start();
_root.custGirl.walkCust = false;
_root.custGirl.gotoAndStop(_root.custActionArray[11]);
var _local3 = 0;
while (_local3 < _root.tryDressArray3.length) {
_root["dressViewing" + _root.tryDressArray3[_local3]] = false;
_local3++;
}
_root.door3.gotoAndStop(_root.setDoorNum);
_root.door3.icons._visible = false;
_root["dressViewing" + _root.dressNumber] = false;
_root.tryCount3 = 0;
_root.tryCustArray3[0].times = false;
_root.tryCustArray3[0].count = 0;
_root.flagTryIcon3 = false;
_root.tryCustArray3.removeMovieClip();
_root.tryCustArray3.splice(0);
_root.tryDressArray3.splice(0);
}
}
_root.girl.still = false;
_root.dressTaken = false;
}
} else {
if (_root.custPress == true) {
_root.custPress = false;
}
_root.custGirl = _root.customParent;
_root.customParent.timeNum = 0;
_root.customParent.intervalForOrder = false;
_root.customParent.dressPlaced = 0;
if (_root.customParent.action == 4) {
if ((_root.girl.still == true) && (_root.dressTaken == true)) {
if (_root.currentNodeGirl == "A7") {
_root.tryCustArray1[0].times = true;
_root.tryDressArray1.push(_root.dressNumber);
_root.tryCustArray1[0].count = 40;
_root.playingActions1 = true;
_root.door1.icons._visible = false;
}
if (_root.currentNodeGirl == "A10") {
_root.tryCustArray2[0].times = true;
_root.tryDressArray2.push(_root.dressNumber);
_root.tryCustArray2[0].count = 40;
_root.playingActions2 = true;
_root.door2.icons._visible = false;
}
if (_root.currentNodeGirl == "A13") {
_root.tryCustArray3[0].times = true;
_root.tryDressArray3.push(_root.dressNumber);
_root.tryCustArray3[0].count = 40;
_root.playingActions3 = true;
_root.door3.icons._visible = false;
}
_root.girl.still = false;
_root.dressTaken = false;
} else {
_root.custGirl = "";
_root.customParent.destination = _root.currentNodeGirl;
_root.customParent.action = 4;
if (_root.currentNodeGirl == "A7") {
_root.door1.gotoAndPlay(_root.setDoorNum);
_root.tryCustArray1.removeMovieClip();
_root.tryCustArray1.splice(0);
_root.tryCustArray1.push(_root.customParent);
_root.tryCustArray1[0].times = true;
_root.tryCustArray1[0].count = 0;
_root.doorViewing1 = true;
_root.flagTryIcon1 = true;
_root.door1.enabled = false;
}
if (_root.currentNodeGirl == "A10") {
_root.door2.gotoAndPlay(_root.setDoorNum);
_root.tryCustArray2.removeMovieClip();
_root.tryCustArray2.splice(0);
_root.tryCustArray2.push(_root.customParent);
_root.tryCustArray2[0].times = true;
_root.tryCustArray2[0].count = 0;
_root.doorViewing2 = true;
_root.flagTryIcon2 = true;
_root.door2.enabled = false;
}
if (_root.currentNodeGirl == "A13") {
_root.door3.gotoAndPlay(_root.setDoorNum);
_root.tryCustArray3.removeMovieClip();
_root.tryCustArray3.splice(0);
_root.tryCustArray3.push(_root.customParent);
_root.tryCustArray3[0].times = true;
_root.tryCustArray3[0].count = 0;
_root.doorViewing3 = true;
_root.flagTryIcon3 = true;
_root.door3.enabled = false;
}
_root.customParent._visible = false;
_root.customParent = "";
}
} else if (((_root.customParent.action == 3) || (_root.customParent.action == 1)) || (_root.customParent.action == 6)) {
if (_root.customParent.action == 1) {
_root["seat" + _root.customParent.seat] = false;
}
_root.customParent.timesOut = true;
_root.customParent.timesReach = 490;
_root.customParent.dressPlaced = 0;
_root.customParent.walkCust = false;
_root.customParent.gotoAndStop(_root.custActionArray[11]);
_root.customParent.icons._visible = false;
_root.customParent.swapDepths(_root.depth2++);
if (_root.depth2 == 1600) {
_root.depth2 = 1500;
}
_root["dressViewing" + _root.dressvisible] = false;
if (_root.customParent.action == 6) {
_root["door" + _root.customParent.doors].enabled = true;
}
_root.customParent = "";
_root.custGirl = "";
if (_root.setDoor == "A7") {
_root.doorViewing1 = false;
_root.door1.icons._visible = false;
_root.playingActions1 = false;
_root.actionProcessStart1 = false;
}
if (_root.setDoor == "A10") {
_root.doorViewing2 = false;
_root.door2.icons._visible = false;
_root.playingActions2 = false;
_root.actionProcessStart2 = false;
}
if (_root.setDoor == "A13") {
_root.doorViewing3 = false;
_root.door3.icons._visible = false;
_root.playingActions3 = false;
_root.actionProcessStart3 = false;
}
} else if (_root.customParent.action == 5) {
_root.customParent.timesOut = true;
_root.customParent.timesReach = 100;
}
}
_root.girlWalk = false;
_root.walkGirl = false;
_root.girl.gotoAndStop(_root.girlActionArray[0]);
}
function custEnter() {
if (_root.level == 1) {
_root.custRand = 1 + random(2);
}
if (_root.level == 2) {
_root.custRand = 3 + random(2);
}
if (_root.level == 3) {
_root.custRand = 1 + random(3);
}
if (_root.level == 4) {
_root.custRand = 2 + random(3);
}
if (_root.level >= 5) {
_root.custRand = 1 + random(4);
}
_root.custDepth++;
_root.attachMovie("cust" + _root.custRand, "cust" + _root.custDepth, _root.finalDepth++);
_root["cust" + _root.custDepth]._x = _root.D1._x;
_root["cust" + _root.custDepth]._y = _root.D1._y;
_root["cust" + _root.custDepth].icons._visible = false;
_root["cust" + _root.custDepth].gotoAndStop(_root.custActionArray[0]);
_root["cust" + _root.custDepth].gotoAndPlay(_root.custActionArray[6]);
_root["cust" + _root.custDepth].custNumber = _root.custRand;
_root["cust" + _root.custDepth].moneyView = false;
_root["cust" + _root.custDepth].bags._visible = false;
_root["cust" + _root.custDepth].enabled = false;
_root["cust" + _root.custDepth].dressReached = false;
_root["cust" + _root.custDepth].moneytablereached = false;
_root.customerId = _root["cust" + _root.custDepth];
_root["cust" + _root.custDepth].dressPlaced = 0;
_root["cust" + _root.custDepth].walkCust = true;
_root["cust" + _root.custDepth].exitProcess = false;
_root.custwalktoseat = true;
_root.currentNode = "D1";
if (_root.seat1 == false) {
_root["destinationNode" + _root.custDepth] = _root.seatArray[0];
_root.customerId.seat = 1;
_root.seat1 = true;
} else if (_root.seat2 == false) {
_root["destinationNode" + _root.custDepth] = _root.seatArray[1];
_root.customerId.seat = 2;
_root.seat2 = true;
} else if (_root.seat3 == false) {
_root["destinationNode" + _root.custDepth] = _root.seatArray[2];
_root.customerId.seat = 3;
_root.seat3 = true;
} else if (_root.seat4 == false) {
_root["destinationNode" + _root.custDepth] = _root.seatArray[3];
_root.customerId.seat = 4;
_root.seat4 = true;
} else {
_root.customerId.removeMovieClip();
}
_root.customerId.action = 1;
_root.customerId.destination = _root["destinationNode" + _root.custDepth];
_root.destination = _root["destinationNode" + _root.custDepth];
}
function custWalkSeat() {
if ((_root.customerId._x < _root[destination]._x) && (Math.abs(_root.customerId._x - _root[destination]._x) >= _root.custSpeed)) {
_root.customerId._x = _root.customerId._x + _root.custSpeed;
} else if ((_root.customerId._x > _root[destination]._x) && (Math.abs(_root.customerId._x - _root[destination]._x) >= _root.custSpeed)) {
_root.customerId._x = _root.customerId._x - _root.custSpeed;
}
if ((_root.customerId._y < _root[destination]._y) && (Math.abs(_root.customerId._y - _root[destination]._y) > _root.custSpeed)) {
_root.customerId._y = _root.customerId._y + _root.custSpeed;
} else if ((_root.customerId._y > _root[destination]._y) && (Math.abs(_root.customerId._y - _root[destination]._y) > _root.custSpeed)) {
_root.customerId._y = _root.customerId._y - _root.custSpeed;
}
if ((Math.abs(_root.customerId._x - _root[destination]._x) <= _root.custSpeed) && (Math.abs(_root.customerId._y - _root[destination]._y) <= _root.custSpeed)) {
_root.customerId._x = _root[destination]._x;
_root.customerId._y = _root[destination]._y;
_root.custwalktoseat = false;
_root.customerId.currentNode = _root[destination];
_root.customerId.walkCust = false;
_root.customerId.gotoAndStop("sitting");
_root.customerId.intervalForOrder = true;
_root.customerId.timeNum = 0;
_root.customerId.states = "order";
_root.customerName = _root.customerId;
_root.customerArray.push(_root.customerId);
}
}
initLevel();
_root.onEnterFrame = function () {
if (_root.Paused == false) {
action();
}
};
_root.Paused = true;
if (!_root.soundready) {
_root.musicBtn.gotoAndStop(2);
_root.musicBtn1.gotoAndStop(2);
}
if (_root.soundready) {
_root.musicBtn.gotoAndStop(1);
_root.musicBtn1.gotoAndStop(1);
}
_root.attachMovie("targets", "goals", 90000, {_x:400, _y:300});
Instance of Symbol 579 MovieClip "musicBtn1" in Frame 57
on (release) {
if (_root.soundready == false) {
_root.soundready = true;
_root.sound1.stop();
this.gotoAndStop(1);
_root.musicBtn.gotoAndStop(1);
} else if (_root.soundready == true) {
_root.soundready = false;
this.gotoAndStop(2);
_root.musicBtn.gotoAndStop(2);
_root.sound1.start();
}
}
on (rollOver) {
if (_root.soundready == false) {
this.gotoAndStop(4);
_root.musicBtn.gotoAndStop(4);
}
if (_root.soundready == true) {
this.gotoAndStop(3);
_root.musicBtn.gotoAndStop(3);
}
}
on (rollOut) {
if (_root.soundready == false) {
this.gotoAndStop(2);
_root.musicBtn.gotoAndStop(2);
}
if (_root.soundready == true) {
this.gotoAndStop(1);
_root.musicBtn.gotoAndStop(1);
}
}
Frame 71
stop();
Frame 93
stop();
Frame 124
stop();
Frame 149
_root.sameday._visible = false;
_root.nextday._visible = false;
Frame 156
function initlevels() {
_root.object1 = 200;
_root.object2 = 500;
_root.object3 = 900;
_root.object4 = 1300;
_root.object5 = 1800;
_root.object6 = 2300;
_root.object7 = 2900;
_root.object8 = 3400;
_root.object9 = 4000;
_root.object10 = 5000;
var _local2 = 1;
while (_local2 < 11) {
_root["obj" + _local2].enabled = false;
_root["obj" + _local2]._alpha = 20;
_local2++;
}
}
function pressFunctions() {
if (_root.score >= _root.object1) {
if (_root.saleItem1 == false) {
_root.obj1.enabled = true;
_root.obj1._alpha = 100;
_root.obj1.onPress = function () {
_root.saleItem1 = true;
this.gotoAndStop(16);
_root.score = _root.score - _root.object1;
this._xscale = 100;
this._yscale = 100;
};
_root.obj1.onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
};
_root.obj1.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
} else {
_root.obj1.enabled = false;
_root.obj1._alpha = 20;
}
} else {
_root.obj1.enabled = false;
_root.obj1._alpha = 20;
}
if (_root.score >= _root.object2) {
if (_root.saleItem2 == false) {
_root.obj2.enabled = true;
_root.obj2._alpha = 100;
_root.obj2.onPress = function () {
this.gotoAndStop(16);
_root.saleItem2 = true;
_root.score = _root.score - _root.object2;
this._xscale = 100;
this._yscale = 100;
};
_root.obj2.onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
};
_root.obj2.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
} else {
_root.obj2.enabled = false;
_root.obj2._alpha = 20;
}
} else {
_root.obj2.enabled = false;
_root.obj2._alpha = 20;
}
if (_root.score >= _root.object3) {
if (_root.saleItem3 == false) {
_root.obj3.enabled = true;
_root.obj3._alpha = 100;
_root.obj3.onPress = function () {
this.gotoAndStop(16);
_root.saleItem3 = true;
_root.score = _root.score - _root.object3;
this._xscale = 100;
this._yscale = 100;
};
_root.obj3.onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
};
_root.obj3.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
} else {
_root.obj3.enabled = false;
_root.obj3._alpha = 20;
}
} else {
_root.obj3.enabled = false;
_root.obj3._alpha = 20;
}
if (_root.score >= _root.object4) {
if (_root.saleItem4 == false) {
_root.obj4.enabled = true;
_root.obj4._alpha = 100;
_root.obj4.onPress = function () {
this.gotoAndStop(16);
_root.saleItem4 = true;
_root.score = _root.score - _root.object4;
this._xscale = 100;
this._yscale = 100;
};
_root.obj4.onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
};
_root.obj4.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
} else {
_root.obj4.enabled = false;
_root.obj4._alpha = 20;
}
} else {
_root.obj4.enabled = false;
_root.obj4._alpha = 20;
}
if (_root.score >= _root.object5) {
if (_root.saleItem5 == false) {
_root.obj5.enabled = true;
_root.obj5._alpha = 100;
_root.obj5.onPress = function () {
this.gotoAndStop(16);
_root.saleItem5 = true;
_root.score = _root.score - _root.object5;
this._xscale = 100;
this._yscale = 100;
};
_root.obj5.onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
};
_root.obj5.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
} else {
_root.obj5.enabled = false;
_root.obj5._alpha = 20;
}
} else {
_root.obj5.enabled = false;
_root.obj5._alpha = 20;
}
if (_root.score >= _root.object6) {
if (_root.saleItem6 == false) {
_root.obj6.enabled = true;
_root.obj6._alpha = 100;
_root.obj6.onPress = function () {
this.gotoAndStop(16);
_root.saleItem6 = true;
_root.score = _root.score - _root.object6;
this._xscale = 100;
this._yscale = 100;
};
_root.obj6.onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
};
_root.obj6.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
} else {
_root.obj6.enabled = false;
_root.obj6._alpha = 20;
}
} else {
_root.obj6.enabled = false;
_root.obj6._alpha = 20;
}
if (_root.score >= _root.object7) {
if (_root.saleItem7 == false) {
_root.obj7.enabled = true;
_root.obj7._alpha = 100;
_root.obj7.onPress = function () {
this.gotoAndStop(16);
_root.saleItem7 = true;
_root.score = _root.score - _root.object7;
this._xscale = 100;
this._yscale = 100;
};
_root.obj7.onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
};
_root.obj7.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
} else {
_root.obj7.enabled = false;
_root.obj7._alpha = 20;
}
} else {
_root.obj7.enabled = false;
_root.obj7._alpha = 20;
}
if (_root.score >= _root.object8) {
if (_root.saleItem8 == false) {
_root.obj8.enabled = true;
_root.obj8._alpha = 100;
_root.obj8.onPress = function () {
this.gotoAndStop(16);
_root.saleItem8 = true;
_root.score = _root.score - _root.object8;
this._xscale = 100;
this._yscale = 100;
};
_root.obj8.onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
};
_root.obj8.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
} else {
_root.obj8.enabled = false;
_root.obj8._alpha = 20;
}
} else {
_root.obj8.enabled = false;
_root.obj8._alpha = 20;
}
if (_root.score >= _root.object9) {
if (_root.saleItem9 == false) {
_root.obj9.enabled = true;
_root.obj9._alpha = 100;
_root.obj9.onPress = function () {
this.gotoAndStop(16);
_root.saleItem9 = true;
_root.score = _root.score - _root.object9;
this._xscale = 100;
this._yscale = 100;
};
_root.obj9.onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
};
_root.obj9.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
} else {
_root.obj9.enabled = false;
_root.obj9._alpha = 20;
}
} else {
_root.obj9.enabled = false;
_root.obj9._alpha = 20;
}
if (_root.score >= _root.object10) {
if (_root.saleItem10 == false) {
_root.obj10.enabled = true;
_root.obj10._alpha = 100;
_root.obj10.onPress = function () {
this.gotoAndStop(16);
_root.saleItem10 = true;
_root.score = _root.score - _root.object10;
this._xscale = 100;
this._yscale = 100;
};
_root.obj10.onRollOver = function () {
this._xscale = 110;
this._yscale = 110;
};
_root.obj10.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
};
} else {
_root.obj10.enabled = false;
_root.obj10._alpha = 20;
}
} else {
_root.obj10.enabled = false;
_root.obj10._alpha = 20;
}
}
function saleItemVisible() {
if (_root.saleItem1) {
_root.obj1.gotoAndStop(16);
_root.obj1._alpha = 60;
text1._visible = false;
}
if (_root.saleItem2) {
_root.obj2.gotoAndStop(16);
_root.obj2._alpha = 60;
text2._visible = false;
}
if (_root.saleItem3) {
_root.obj3.gotoAndStop(16);
_root.obj3._alpha = 60;
text3._visible = false;
}
if (_root.saleItem4) {
_root.obj4.gotoAndStop(16);
_root.obj4._alpha = 60;
text4._visible = false;
}
if (_root.saleItem5) {
_root.obj5.gotoAndStop(16);
_root.obj5._alpha = 60;
text5._visible = false;
}
if (_root.saleItem6) {
_root.obj6.gotoAndStop(16);
_root.obj6._alpha = 60;
text6._visible = false;
}
if (_root.saleItem7) {
_root.obj7.gotoAndStop(16);
_root.obj7._alpha = 60;
text7._visible = false;
}
if (_root.saleItem8) {
_root.obj8.gotoAndStop(16);
_root.obj8._alpha = 60;
text8._visible = false;
}
if (_root.saleItem9) {
_root.obj9.gotoAndStop(16);
_root.obj9._alpha = 60;
text9._visible = false;
}
if (_root.saleItem10) {
_root.obj10.gotoAndStop(16);
_root.obj10._alpha = 60;
text10._visible = false;
}
}
initlevels();
_root.onEnterFrame = function () {
pressFunctions();
saleItemVisible();
};
stop();
if (_root.levelUps == true) {
_root.sameday._visible = false;
_root.nextday._visible = true;
_root.levelUps = false;
}
if (_root.gameOvers == true) {
_root.sameday._visible = true;
_root.nextday._visible = false;
_root.gameOvers = false;
}
Symbol 14 Button
on (release) {
_root.Paused = false;
if (_root.walkGirl == true) {
_root.girl.gotoAndPlay(_root.girl._currentframe);
}
var i = 0;
while (i < 20) {
if (_root["cust" + i].walkCust == true) {
_root["cust" + i].gotoAndPlay(_root["cust" + i]._currentframe);
}
i++;
}
_root.helps.removeMovieClip();
}
Symbol 27 MovieClip [help] Frame 21
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 76 MovieClip [pack3] Frame 1
stop();
Symbol 77 MovieClip [pack2] Frame 1
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 116 MovieClip [pack1] Frame 1
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 195 MovieClip [cust2] Frame 19
gotoAndPlay ("standhappy");
Symbol 195 MovieClip [cust2] Frame 31
gotoAndPlay ("standangry");
Symbol 195 MovieClip [cust2] Frame 41
gotoAndPlay ("frontswalk");
Symbol 195 MovieClip [cust2] Frame 64
gotoAndPlay ("backswalk");
Symbol 195 MovieClip [cust2] Frame 153
gotoAndStop ("rightreview");
Symbol 195 MovieClip [cust2] Frame 163
gotoAndPlay ("rightwalk");
Symbol 195 MovieClip [cust2] Frame 174
gotoAndPlay ("leftwalk");
Symbol 195 MovieClip [cust2] Frame 191
gotoAndPlay ("sittingorder");
Symbol 195 MovieClip [cust2] Frame 203
gotoAndPlay ("sittingangry");
Symbol 240 MovieClip [cust4] Frame 17
gotoAndPlay ("standhappy");
Symbol 240 MovieClip [cust4] Frame 32
gotoAndPlay ("standangry");
Symbol 240 MovieClip [cust4] Frame 41
gotoAndPlay ("frontswalk");
Symbol 240 MovieClip [cust4] Frame 64
gotoAndPlay ("backswalk");
Symbol 240 MovieClip [cust4] Frame 140
gotoAndStop ("rightreview");
Symbol 240 MovieClip [cust4] Frame 150
gotoAndPlay ("rightwalk");
Symbol 240 MovieClip [cust4] Frame 161
gotoAndPlay ("leftwalk");
Symbol 240 MovieClip [cust4] Frame 178
gotoAndPlay ("sittingorder");
Symbol 240 MovieClip [cust4] Frame 190
gotoAndPlay ("sittingangry");
Symbol 278 MovieClip [cust3] Frame 19
gotoAndPlay ("standhappy");
Symbol 278 MovieClip [cust3] Frame 31
gotoAndPlay ("standangry");
Symbol 278 MovieClip [cust3] Frame 41
gotoAndPlay ("frontswalk");
Symbol 278 MovieClip [cust3] Frame 46
stop();
Symbol 278 MovieClip [cust3] Frame 64
gotoAndPlay ("backswalk");
Symbol 278 MovieClip [cust3] Frame 140
gotoAndStop ("rightreview");
Symbol 278 MovieClip [cust3] Frame 149
gotoAndPlay ("rightwalk");
Symbol 278 MovieClip [cust3] Frame 161
gotoAndPlay ("leftwalk");
Symbol 278 MovieClip [cust3] Frame 178
gotoAndPlay ("sittingorder");
Symbol 278 MovieClip [cust3] Frame 190
gotoAndPlay ("sittingangry");
Symbol 296 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 349 MovieClip [cust1] Frame 18
gotoAndPlay ("standhappy");
Symbol 349 MovieClip [cust1] Frame 32
gotoAndPlay ("standangry");
Symbol 349 MovieClip [cust1] Frame 41
gotoAndPlay ("frontswalk");
Symbol 349 MovieClip [cust1] Frame 64
gotoAndPlay ("backswalk");
Symbol 349 MovieClip [cust1] Frame 140
gotoAndStop ("rightreview");
Symbol 349 MovieClip [cust1] Frame 150
gotoAndPlay ("rightwalk");
Symbol 349 MovieClip [cust1] Frame 161
gotoAndPlay ("leftwalk");
Symbol 349 MovieClip [cust1] Frame 178
gotoAndPlay ("sittingorder");
Symbol 349 MovieClip [cust1] Frame 190
gotoAndPlay ("sittingangry");
Symbol 398 MovieClip [girl] Frame 35
stop();
Symbol 398 MovieClip [girl] Frame 52
gotoAndPlay ("walkfront");
Symbol 398 MovieClip [girl] Frame 64
gotoAndPlay ("front walk");
Symbol 398 MovieClip [girl] Frame 77
gotoAndPlay ("walkback");
Symbol 398 MovieClip [girl] Frame 89
gotoAndPlay ("back walk");
Symbol 398 MovieClip [girl] Frame 102
gotoAndPlay ("walkright");
Symbol 398 MovieClip [girl] Frame 115
gotoAndPlay ("side walk");
Symbol 398 MovieClip [girl] Frame 128
gotoAndPlay ("walkleft");
Symbol 398 MovieClip [girl] Frame 139
gotoAndPlay ("side walks");
Symbol 405 MovieClip Frame 1
stop();
Symbol 443 Button
on (release) {
_root.Paused = false;
_root.goals.removeMovieClip();
}
Symbol 452 MovieClip [targets] Frame 14
stop();
Symbol 459 MovieClip Frame 1
_root.stop();
Symbol 459 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 475 MovieClip Frame 1
stop();
fSitebutton.onRelease = function () {
getURL ("http://www.games2girls.com/", "_blank");
};
Symbol 475 MovieClip Frame 123
stop();
_root.play();
Symbol 478 Button
on (release) {
_root.level = 1;
_root.days = 1;
_root.score = 0;
_root.tars1 = 0;
_root.gotoAndStop("game");
}
Symbol 481 Button
on (release) {
_root.gotoAndPlay("help");
}
Symbol 486 MovieClip Frame 1
stop();
Symbol 490 Button
on (press) {
getURL ("http://www.games2girls.com/", "_blank");
}
Symbol 501 Button
on (release) {
_root.sound1.stop();
_root.gotoAndPlay("menu");
}
Symbol 563 MovieClip Frame 1
stop();
Symbol 571 Button
on (release) {
_root.sound1.stop();
var i = 0;
while (i < _root.customerArray.length) {
_root.customerArray[i].removeMovieClip();
i++;
}
var j = 1;
while (j < 10) {
_root["cust" + j].removeMovieClip();
j++;
}
_root.masks.removeMovieClip();
_root.customerArray.splice(0);
_root.clearCanvas();
_root.helps.removeMovieClip();
_root.gotoAndPlay("menu");
}
Symbol 579 MovieClip Frame 1
stop();
Symbol 584 Button
on (release) {
_root.Paused = true;
_root.girl.gotoAndStop(_root.girl._currentframe);
var i = 0;
while (i < 20) {
_root["cust" + i].gotoAndStop(_root["cust" + i]._currentframe);
i++;
}
_root.attachMovie("help", "helps", 10000, {_x:390, _y:300});
}
Symbol 598 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 45
if (_root.actionProcessStart1 == true) {
_root.playingActions1 = false;
_root.actionProcessStart1 = false;
_root.tryCustArray1[0].times = true;
}
Symbol 598 MovieClip Frame 46
stop();
Symbol 598 MovieClip Frame 110
if (_root.actionProcessStart1 == true) {
_root.playingActions1 = false;
_root.actionProcessStart1 = false;
_root.tryCustArray1[0].times = true;
}
Symbol 598 MovieClip Frame 113
stop();
Symbol 598 MovieClip Frame 123
stop();
Symbol 610 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 45
if (_root.actionProcessStart2 == true) {
_root.playingActions2 = false;
_root.tryCustArray2[0].times = true;
_root.actionProcessStart2 = false;
}
Symbol 611 MovieClip Frame 47
stop();
Symbol 611 MovieClip Frame 110
if (_root.actionProcessStart2 == true) {
_root.playingActions2 = false;
_root.actionProcessStart2 = false;
_root.tryCustArray2[0].times = true;
}
Symbol 611 MovieClip Frame 113
stop();
Symbol 611 MovieClip Frame 123
stop();
Symbol 612 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 45
if (_root.actionProcessStart3 == true) {
_root.playingActions3 = false;
_root.actionProcessStart3 = false;
_root.tryCustArray3[0].times = true;
}
Symbol 612 MovieClip Frame 47
stop();
Symbol 612 MovieClip Frame 108
if (_root.actionProcessStart3 == true) {
_root.playingActions3 = false;
_root.actionProcessStart3 = false;
_root.tryCustArray3[0].times = true;
}
Symbol 612 MovieClip Frame 111
stop();
Symbol 612 MovieClip Frame 113
stop();
Symbol 626 Button
on (release) {
_root.levelUps = true;
_root.gotoAndPlay("upgrade");
}
Symbol 656 Button
on (release) {
_root.score = _root.score - _root.score1;
if (_root.score <= 0) {
_root.score = 0;
}
_root.score1 = 0;
_root.tars1 = _root.targets;
_root.gotoAndStop("game");
}
Symbol 659 Button
on (release) {
_root.sound1.stop();
_root.gotoAndPlay("menu");
}
Symbol 666 Button
on (release) {
_root.gameOvers = true;
_root.score = _root.score - _root.score1;
if (_root.score <= 0) {
_root.score = 0;
}
_root.score1 = 0;
_root.gotoAndPlay("upgrade");
}
Symbol 667 Button
on (release) {
_root.sound1.stop();
_root.level = 1;
var i = 1;
while (i < 11) {
_root["saleItem" + i] = false;
i++;
}
_root.gotoAndPlay("menu");
}
Symbol 675 Button
on (release) {
getURL ("http://www.games2girls.com/jobgames.htm", "_blank");
}
Symbol 686 Button
on (release) {
_root.level++;
_root.days++;
_root.gotoAndStop("game");
}
Symbol 687 Button
on (release) {
_root.tars1 = _root.targets;
_root.gotoAndStop("game");
}
Symbol 689 MovieClip Frame 15
stop();
Symbol 690 MovieClip Frame 15
stop();
Symbol 691 MovieClip Frame 15
stop();
Symbol 692 MovieClip Frame 15
stop();
Symbol 694 MovieClip Frame 15
stop();
Symbol 695 MovieClip Frame 15
stop();
Symbol 696 MovieClip Frame 15
stop();
Symbol 697 MovieClip Frame 15
stop();
Symbol 698 MovieClip Frame 15
stop();
Symbol 699 MovieClip Frame 15
stop();