Frame 1
stop();
_root.soundready = false;
_root.sound1 = new Sound();
_root.tile.musicBtn.gotoAndStop(2);
_root.sound1.attachSound("main");
Frame 2
stop();
_root.level = 1;
_root.life = 5;
_root.score1 = 0;
_root.purse = 0;
Frame 3
function clearCanvas() {
stopDrag();
var _local2 = 1;
while (_local2 < 6) {
_root["obj" + _local2]._x = _root["obj" + _local2].s1;
_root["obj" + _local2]._y = _root["obj" + _local2].s2;
_root["obj" + _local2].swapDepths(_root["obj" + _local2].depts);
_local2++;
}
_root.seatArray.splice(0);
_root.girlsArray.splice(0);
_root.bgs.removeMovieClip();
_root.clip._visible = false;
_root.clip.removeMovieClip();
delete _root.onEnterFrame;
stopDrag();
_local2 = 1;
while (_local2 < 5) {
_root["obj" + _local2]._visible = false;
_local2++;
}
_root.lady.removeMovieClip();
}
function setTimer() {
if ((getTimer() - _root.InitTime) >= 1000) {
_root.InitTime = getTimer();
if (_root.timer != _root.valTime) {
_root.timer = _root.timer + 1;
}
_root.timers++;
if (_root.life == 0) {
clearCanvas();
_root.arrayIndex.splice(0);
stopDrag();
_root.gotoAndStop("over");
_root.over.gotoAndStop("gameOver");
_root.sound8.start();
}
if (_root.timer == _root.valTime) {
if (_root.life == 0) {
clearCanvas();
_root.arrayIndex.splice(0);
_root.gotoAndStop("over");
_root.over.gotoAndStop("gameOver");
_root.sound8.start();
} else {
_root.bg.door.gotoAndStop(17);
_root.closed._visible = true;
_root.girlDelay = false;
_root.timer = _root.valTime;
if (_root.arrayIndex.length == 0) {
if (_root.score >= _root.targets) {
_root.score1 = _root.score1 + _root.score;
_root.sound9.start();
upgrades();
} else if (_root.life == 0) {
clearCanvas();
_root.arrayIndex.splice(0);
_root.gotoAndStop("over");
_root.over.gotoAndStop("gameOver");
_root.sound8.start();
} else {
_root.score1 = _root.score1 + _root.score;
_root.sound9.start();
_root.profit = 0;
_root.total = _root.total + _root.profit;
_root.purse = _root.total;
_root.arrayIndex.splice(0);
_root.gotoAndStop("purch");
_root.purchase.gotoAndStop(4);
}
clearCanvas();
}
}
}
}
}
function upgrades() {
if ((((((_root.pur1 == 2) && (_root.pur2 == 2)) && (_root.pur3 == 2)) && (_root.pur4 == 2)) && (_root.pur5 == 2)) && (_root.pur6 == 2)) {
clearCanvas();
_root.arrayIndex.splice(0);
_root.gotoAndStop("over");
_root.over.gotoAndStop("Congrats");
} else {
_root.profit = _root.score - _root.targets;
if (_root.profit < 0) {
_root.profit = 0;
}
_root.total = _root.total + _root.profit;
_root.purse = _root.total;
_root.arrayIndex.splice(0);
_root.gotoAndStop("purch");
_root.purchase.gotoAndStop(2);
}
}
function timeout() {
var _local2 = 0;
while (_local2 < _root.girlsArray.length) {
if (_root.timers == (_root.bgs["girls" + _root.girlsArray[_local2]].timer1 + _root.setTime1)) {
if (_root.bgs["girls" + _root.girlsArray[_local2]].pressed == false) {
_root.bgs["girls" + _root.girlsArray[_local2]].select.actions.gotoAndStop(2);
}
if (_root.bgs["girls" + _root.girlsArray[_local2]].tookItem1 == false) {
_root.bgs["girls" + _root.girlsArray[_local2]].select.actions.gotoAndStop(2);
}
}
if (_root.timers == (_root.bgs["girls" + _root.girlsArray[_local2]].timer1 + _root.setTime2)) {
if (_root.bgs["girls" + _root.girlsArray[_local2]].pressed == false) {
_root.bgs["girls" + _root.girlsArray[_local2]].select.actions.gotoAndStop(4);
_root.bgs["girls" + _root.girlsArray[_local2]].timelastFlag = true;
_root.bgs["girls" + _root.girlsArray[_local2]].flag1 = true;
}
if (_root.bgs["girls" + _root.girlsArray[_local2]].tookItem1 == false) {
_root.bgs["girls" + _root.girlsArray[_local2]].select.actions.gotoAndStop(4);
_root.bgs["girls" + _root.girlsArray[_local2]].flag2 = true;
_root.bgs["girls" + _root.girlsArray[_local2]].timelastFlag = true;
}
}
_local2++;
}
var _local3 = 0;
while (_local3 < _root.seatArray.length) {
if (_root.timers == (_root.bgs["ps" + _root.seatArray[_local3]].timer1 + _root.val1)) {
if (_root.bgs["ps" + _root.seatArray[_local3]].pressed == false) {
_root.bgs["ps" + _root.seatArray[_local3]].seat.fill = false;
_root.bgs["ps" + _root.seatArray[_local3]].gotoAndStop(10);
_root.bgs["ps" + _root.seatArray[_local3]].pressed = true;
count++;
_root["star" + count]._visible = false;
_root.life = _root.life - 1;
_root.sound4.start();
_root.sound7.start();
_root.arrayIndex.splice(_root.bgs["ps" + _root.seatArray[_local3]], 1);
}
}
_local3++;
}
}
function Pressed() {
var _local5 = 0;
while (_local5 < _root.girlsArray.length) {
if (_root.bgs["girls" + _root.girlsArray[_local5]].sit == true) {
_root.bgs["girls" + _root.girlsArray[_local5]].onPress = function () {
this.swapDepths(deps++);
if (deps == 5000000) {
deps = 1000000 /* 0x0F4240 */;
}
var _local4 = Number(String(this).substring(17, 21));
this._xscale = 50;
this._yscale = 50;
this.gotoAndStop("standing");
startDrag (this);
var _local3 = 1;
while (_local3 < 5) {
if (this.hitTest(_root.bgs["seat" + _local3].hits)) {
if (_root.bgs["seat" + _local3].fill == false) {
this._x = _root.bgs["seat" + _local3]._x - 170;
stopDrag();
this.pressed = true;
var _local5 = this.timer1 + _root.val1;
_local5 = "";
this.select.actions.gotoAndStop(1);
this.timelastFlag = false;
this.flag1 = false;
_root.chairValue.push(this.chairval);
_root.bgs["seat" + _local3].fill = true;
this._y = _root.bgs["seat" + _local3]._y - 40;
this.seat = _root.bgs["seat" + _local3];
this.gotoAndStop(_root.girlsPosArray[1]);
this.enabled = false;
this.sit = false;
if (((this.hairstyle == 1) || (this.hairstyle == 2)) || (this.hairstyle == 3)) {
_root.item = 2 + random(4);
} else {
_root.item = 1 + random(5);
}
if (_root.item == 1) {
_root.types = 1 + random(3);
}
if ((_root.item == 2) || (_root.item == 3)) {
_root.types = 1 + random(5);
}
if ((_root.item == 4) || (_root.item == 5)) {
_root.types = 1;
}
if ((_root.item == 2) || (_root.item == 3)) {
this.namval = 1;
} else if (_root.item == 4) {
this.namval = 6;
} else if (_root.item == 5) {
this.namval = 12;
}
this.typ = _root.types;
this.item = _root.item;
this.bubbleFlag = true;
this.tookItem = false;
} else {
stopDrag();
this.gotoAndStop("sitting");
this.gotoAndStop(_root.girlsPosArray[0]);
this._xscale = 35;
this._yscale = 35;
this._x = _root["x" + _local4];
this._y = _root["y" + _local4];
this.swapDepths(_root["d" + _local4]);
}
}
_local3++;
}
};
}
_local5++;
}
}
function OnPressObj() {
var _local7 = 1;
while (_local7 < 6) {
_root["obj" + _local7].onPress = function () {
if (_root.Paused == false) {
if (_root.hairdresserIdle == true) {
if (_root.takeBox == false) {
this.swapDepths(deps++);
var _local5 = Number(String(this).substring(11, 13));
startDrag (this);
_root.countf++;
var _local6 = 1;
while (_local6 < 6) {
if (_local5 != _local6) {
if (this.hitTest(_root["obj" + _local6].hits)) {
this.swapDepths(this.depts);
stopDrag();
_root.countf = 0;
this._x = this.s1;
this._y = this.s2;
}
}
_local6++;
}
var _local3 = 0;
while (_local3 < _root.girlsArray.length) {
if (this.hitTest(_root.bgs["girls" + _root.girlsArray[_local3]])) {
trace("j" + _root.bgs["girls" + _root.girlsArray[_local3]].seat.fill);
if (_root.bgs["girls" + _root.girlsArray[_local3]].seat.fill == true) {
if (_root.bgs["girls" + _root.girlsArray[_local3]].tookItem == false) {
stopDrag();
_root.countf = 0;
var _local7 = _root.bgs["girls" + _root.girlsArray[h]].timer1 + _root.val1;
_local7 = "";
_root.bgs["girls" + _root.girlsArray[_local3]].tookItem = true;
this._x = this.s1;
this._y = this.s2;
_root.bgs["girls" + _root.girlsArray[_local3]].tookItem1 = true;
_root.bgs["girls" + _root.girlsArray[_local3]].select.actions.gotoAndStop(1);
_root.bgs["girls" + _root.girlsArray[_local3]].flag2 = false;
_root.bgs["girls" + _root.girlsArray[_local3]].timelastFlag = false;
this.swapDepths(this.depts);
_root.takeBox = true;
_root.bgs.clip.removeMovieClip();
var _local4 = (Number = Number(String(_root.bgs["girls" + _root.girlsArray[_local3]].seat).substring(16, 18)));
trace((_local4 + " sssssssssssssss") + _root.bgs["girls" + _root.girlsArray[_local3]].seat);
if (_local5 == 1) {
_root.bgs["girls" + _root.girlsArray[_local3]].gotoAndStop(_root.girlsPosArray[1]);
_root.bgs.attachMovie("clips1", "clip", 80000000, {_x:_root.ladyArrayX[_local4], _y:_root.ladyArrayY[_local4]});
pressClips(_local4, _root.girlsArray[_local3], _local5);
} else if ((_local5 == 2) || (_local5 == 3)) {
_root.bgs.attachMovie("clips2", "clip", 80000000, {_x:_root.ladyArrayX[_local4], _y:_root.ladyArrayY[_local4]});
_root.bgs["girls" + _root.girlsArray[_local3]].gotoAndStop(_root.girlsPosArray[1]);
pressClips(_local4, _root.girlsArray[_local3], _local5);
} else if ((_local5 == 4) || (_local5 == 5)) {
_root.bgs["girls" + _root.girlsArray[_local3]].gotoAndStop(_root.girlsPosArray[1]);
pressClips(_local4, _root.girlsArray[_local3], _local5);
}
}
} else {
stopDrag();
_root.countf = 0;
this.swapDepths(this.depts);
this._x = this.s1;
this._y = this.s2;
}
}
_local3++;
}
}
}
}
};
_root["obj" + _local7].onRelease = function () {
if (_root.countf >= 2) {
stopDrag();
_root.countf = 0;
this.swapDepths(this.depts);
this._x = this.s1;
this._y = this.s2;
}
};
_local7++;
}
}
function OnPressMoney() {
var _local3 = 0;
while (_local3 < _root.seatArray.length) {
_root.bgs["ps" + _root.seatArray[_local3]].onPress = function () {
_root.sound5.start();
this.seat.fill = false;
_root.scores = this.scores;
_root.score = _root.score + _root.scores;
this.gotoAndPlay(1);
this.pressed = true;
this.timer1 = "";
_root.arrayIndex.splice(this, 1);
};
_local3++;
}
}
function pressClips(sen, nam, numb) {
if ((numb == 4) || (numb == 5)) {
_root.bgs.lady._x = _root.ladyArrayX[sen];
_root.bgs.lady._y = _root.ladyArrayY[sen];
_root.bgs.lady.gotoAndPlay(1);
var _local3 = 1;
while (_local3 < 6) {
_root["obj" + _local3]._alpha = 30;
_root["obj" + _local3].enabled = false;
_local3++;
}
_root.sound3.start();
var _local4 = 1;
while (_local4 < 20) {
_root.bgs["girls" + nam].select.hairs["c" + _local4]._visible = false;
_local4++;
}
_root.bgs["girls" + nam].select.hairs.cove._visible = true;
_root.bgs["girls" + nam].select.hairs.cove.gotoAndStop(1);
if (numb == 4) {
_local4 = 1;
while (_local4 < 4) {
_root.bgs["girls" + nam].select.hairs.cove["obs" + _local4]._visible = false;
_local4++;
}
_root.bgs["girls" + nam].select.hairs.cove.obs5._visible = false;
}
if (numb == 5) {
_local4 = 1;
while (_local4 < 6) {
_root.bgs["girls" + nam].select.hairs.cove["obs" + _local4]._visible = false;
_local4++;
}
}
_root.bgs["girls" + nam].onEnterFrame = function () {
if (_root.bgs.lady.frames == "dest") {
lastFunc(nam, numb, _root.bgs["girls" + nam].colors);
}
};
_root.bgs["girls" + nam].select.hairs.cove["obs" + numb]._visible = true;
_root.bgs["girls" + nam].select.hairs.cove["obs" + numb].gotoAndPlay(1);
} else {
var _local3 = 1;
while (_local3 < 6) {
_root.bgs.clip["clip" + _local3].onPress = function () {
var mans = Number(String(this).substring(21, 23));
_root.bgs.clip._visible = false;
_root.bgs.lady._x = _root.ladyArrayX[sen];
_root.bgs.lady._y = _root.ladyArrayY[sen];
_root.bgs.lady.gotoAndPlay(1);
var _local3 = 1;
while (_local3 < 6) {
_root["obj" + _local3]._alpha = 30;
_root["obj" + _local3].enabled = false;
_local3++;
}
_root.sound3.start();
var _local4 = 1;
while (_local4 < 20) {
_root.bgs["girls" + nam].select.hairs["h" + _local4]._visible = false;
_root.bgs["girls" + nam].select.hairs["c" + _local4]._visible = false;
_local4++;
}
_root.bgs["girls" + nam].select.hairs.cove._visible = true;
_root.bgs["girls" + nam].select.hairs.cove.gotoAndStop(numb);
if (numb == 1) {
_local4 = 2;
while (_local4 < 6) {
_root.bgs["girls" + nam].select.hairs.cove["obs" + _local4]._visible = false;
_local4++;
}
}
if (numb == 2) {
_root.bgs["girls" + nam].select.hairs.cove.obs1._visible = false;
_local4 = 3;
while (_local4 < 6) {
_root.bgs["girls" + nam].select.hairs.cove["obs" + _local4]._visible = false;
_local4++;
}
}
if (numb == 3) {
_local4 = 1;
while (_local4 < 3) {
_root.bgs["girls" + nam].select.hairs.cove["obs" + _local4]._visible = false;
_local4++;
}
_local4 = 4;
while (_local4 < 6) {
_root.bgs["girls" + nam].select.hairs.cove["obs" + _local4]._visible = false;
_local4++;
}
}
_root.bgs["girls" + nam].onEnterFrame = function () {
if (_root.bgs.lady.frames == "dest") {
lastFunc(nam, numb, mans);
}
};
_root.bgs["girls" + nam].select.hairs.cove["obs" + numb]._visible = true;
_root.bgs["girls" + nam].select.hairs.cove["obs" + numb].gotoAndPlay(1);
};
_local3++;
}
}
}
function lastFunc(varnum, type, clips) {
delete _root.bgs["girls" + varnum].onEnterFrame;
_root.bgs.clip.removeMovieClip();
_root.stopFlag = false;
_root.hairdresserIdle = true;
_root.bgs.lady.gotoAndStop(1);
_root.alphas._visible = false;
var _local3 = 1;
while (_local3 < 6) {
_root["obj" + _local3]._alpha = 100;
_root["obj" + _local3].enabled = true;
_local3++;
}
_root.bgs.lady._x = _root.ladyArrayX[0];
_root.bgs.lady._y = _root.ladyArrayY[0];
_root.bgs["girls" + varnum].select.hairs.cove._visible = false;
_root.bgs["girls" + varnum].gotoAndStop("sitting");
if (type == 1) {
_root.bgs["girls" + varnum].select.hairs._visible = true;
_root.bgs["girls" + varnum].select.hairs.c1._visible = true;
_root.bgs["girls" + varnum].select.hairs.gotoAndStop(1);
_root.bgs["girls" + varnum].select.hairs.c1.gotoAndStop(clips);
_root.bgs["girls" + varnum].hairstyle = clips;
_root.bgs["girls" + varnum].select.hairs["h" + clips]._visible = false;
}
if (type == 2) {
if (_root.bgs["girls" + varnum].item != type) {
_root.bgs["girls" + varnum].namval = 1;
}
_root.bgs["girls" + varnum].select.hairs._visible = true;
_root.bgs["girls" + varnum].select.hairs["c" + (clips + _root.namval)]._visible = true;
_root.bgs["girls" + varnum].select.hairs.gotoAndStop(clips + _root.bgs["girls" + varnum].namval);
_root.bgs["girls" + varnum].select.hairs["c" + (clips + _root.bgs["girls" + varnum].namval)].gotoAndStop(_root.bgs["girls" + varnum].hairstyle);
_root.bgs["girls" + varnum].select.hairs["h" + (clips + _root.bgs["girls" + varnum].namval)]._visible = false;
_root.bgs["girls" + varnum].colors = clips + 1;
}
if (type == 3) {
if (_root.bgs["girls" + varnum].item != type) {
_root.bgs["girls" + varnum].namval = 1;
}
_root.bgs["girls" + varnum].select.hairs._visible = true;
_root.bgs["girls" + varnum].select.hairs["c" + (clips + _root.bgs["girls" + varnum].namval)]._visible = true;
_root.bgs["girls" + varnum].select.hairs.gotoAndStop(clips + _root.bgs["girls" + varnum].namval);
_root.bgs["girls" + varnum].select.hairs["c" + (clips + _root.bgs["girls" + varnum].namval)].gotoAndStop(_root.bgs["girls" + varnum].hairstyle);
_root.bgs["girls" + varnum].select.hairs["h" + (clips + _root.bgs["girls" + varnum].namval)]._visible = true;
_root.bgs["girls" + varnum].select.hairs["h" + (clips + _root.bgs["girls" + varnum].namval)].gotoAndStop(_root.bgs["girls" + varnum].hairstyle);
_root.bgs["girls" + varnum].colors = clips + 1;
}
if (type == 4) {
if (_root.bgs["girls" + varnum].item != type) {
_root.bgs["girls" + varnum].namval = 6;
}
_root.bgs["girls" + varnum].select.hairs._visible = true;
_root.bgs["girls" + varnum].select.hairs["c" + (clips + _root.bgs["girls" + varnum].namval)]._visible = true;
_root.bgs["girls" + varnum].select.hairs.gotoAndStop(clips + _root.bgs["girls" + varnum].namval);
if (_root.bgs["girls" + varnum].glows) {
_root.bgs["girls" + varnum].select.hairs["h" + (clips + _root.bgs["girls" + varnum].namval)]._visible = true;
_root.bgs["girls" + varnum].select.hairs["h" + (clips + _root.bgs["girls" + varnum].namval)].gotoAndStop(_root.bgs["girls" + varnum].hairstyle);
_root.bgs["girls" + varnum].glows = false;
} else {
_root.bgs["girls" + varnum].select.hairs["h" + (clips + _root.bgs["girls" + varnum].namval)]._visible = false;
}
_root.bgs["girls" + varnum].select.hairs["c" + (clips + _root.bgs["girls" + varnum].namval)].gotoAndStop(_root.bgs["girls" + varnum].hairstyle);
}
if (type == 5) {
if (_root.bgs["girls" + varnum].item != type) {
_root.bgs["girls" + varnum].namval = 12;
}
_root.bgs["girls" + varnum].select.hairs._visible = true;
_root.bgs["girls" + varnum].select.hairs["c" + (clips + _root.bgs["girls" + varnum].namval)]._visible = true;
_root.bgs["girls" + varnum].select.hairs.gotoAndStop(clips + _root.bgs["girls" + varnum].namval);
if (_root.bgs["girls" + varnum].glows) {
_root.bgs["girls" + varnum].select.hairs["h" + (clips + _root.bgs["girls" + varnum].namval)]._visible = true;
_root.bgs["girls" + varnum].select.hairs["h" + (clips + _root.bgs["girls" + varnum].namval)].gotoAndStop(_root.bgs["girls" + varnum].hairstyle);
_root.bgs["girls" + varnum].glows = false;
} else {
_root.bgs["girls" + varnum].select.hairs["h" + (clips + _root.bgs["girls" + varnum].namval)]._visible = false;
}
_root.bgs["girls" + varnum].select.hairs["c" + (clips + _root.bgs["girls" + varnum].namval)].gotoAndStop(_root.bgs["girls" + varnum].hairstyle);
}
_root.takeBox = false;
if (_root.bgs["girls" + varnum].item == type) {
if (_root.bgs["girls" + varnum].typ == clips) {
if (_root.level != 1) {
var _local5 = 1 + random(20);
if ((_root.level == 2) || (_root.level == 3)) {
_root.bgs["girls" + varnum].tookItem1 = true;
_root.bgs["girls" + varnum].pressed = true;
_root.bgs["girls" + varnum].timelastFlag1 = true;
_root.bgs["girls" + varnum].select.actions.gotoAndStop(3);
}
if ((_root.level == 4) || (_root.level == 5)) {
if (_root.bgs["girls" + varnum].flags == false) {
if ((((_local5 == 10) || (_local5 == 15)) || (_local5 == 20)) || (_local5 == 1)) {
_root.bgs["girls" + varnum].counts++;
_root.levelSections(varnum);
} else {
_root.bgs["girls" + varnum].tookItem1 = true;
_root.bgs["girls" + varnum].pressed = true;
_root.bgs["girls" + varnum].timelastFlag1 = true;
_root.bgs["girls" + varnum].select.actions.gotoAndStop(3);
}
} else {
_root.bgs["girls" + varnum].tookItem1 = true;
_root.bgs["girls" + varnum].pressed = true;
_root.bgs["girls" + varnum].timelastFlag1 = true;
_root.bgs["girls" + varnum].select.actions.gotoAndStop(3);
}
}
if (((_root.level == 6) || (_root.level == 7)) || (_root.level == 8)) {
if (_root.bgs["girls" + varnum].flags == false) {
if (((((_local5 == 10) || (_local5 == 15)) || (_local5 == 20)) || (_local5 == 1)) || (_local5 == 5)) {
_root.bgs["girls" + varnum].counts++;
_root.levelSections(varnum);
} else {
_root.bgs["girls" + varnum].tookItem1 = true;
_root.bgs["girls" + varnum].pressed = true;
_root.bgs["girls" + varnum].timelastFlag1 = true;
_root.bgs["girls" + varnum].select.actions.gotoAndStop(3);
}
} else {
_root.bgs["girls" + varnum].tookItem1 = true;
_root.bgs["girls" + varnum].pressed = true;
_root.bgs["girls" + varnum].timelastFlag1 = true;
_root.bgs["girls" + varnum].select.actions.gotoAndStop(3);
}
}
if (_root.level >= 9) {
if (_root.bgs["girls" + varnum].flags == false) {
if (((((_local5 == 10) || (_local5 == 15)) || (_local5 == 20)) || (_local5 == 13)) || (_local5 == 3)) {
_root.bgs["girls" + varnum].counts++;
_root.levelSections(varnum);
} else {
_root.bgs["girls" + varnum].tookItem1 = true;
_root.bgs["girls" + varnum].pressed = true;
_root.bgs["girls" + varnum].timelastFlag1 = true;
_root.bgs["girls" + varnum].select.actions.gotoAndStop(3);
}
} else {
_root.bgs["girls" + varnum].tookItem1 = true;
_root.bgs["girls" + varnum].pressed = true;
_root.bgs["girls" + varnum].timelastFlag1 = true;
_root.bgs["girls" + varnum].select.actions.gotoAndStop(3);
}
}
} else {
_root.bgs["girls" + varnum].tookItem1 = true;
_root.bgs["girls" + varnum].pressed = true;
_root.bgs["girls" + varnum].timelastFlag1 = true;
_root.bgs["girls" + varnum].select.actions.gotoAndStop(3);
}
} else {
_root.typeLevel = true;
_root["girls" + varnum].seat.fill = false;
_root.bgs["girls" + varnum].select.actions.gotoAndStop(5);
_root.bgs["girls" + varnum].timelastFlag = true;
}
} else {
_root.typeLevel = true;
_root["girls" + varnum].seat.fill = false;
_root.bgs["girls" + varnum].select.actions.gotoAndStop(5);
_root.bgs["girls" + varnum].timelastFlag = true;
}
}
function levelSections(varnum) {
_root.bgs["girls" + varnum].pressed = true;
_root.bgs["girls" + varnum].tookItem = false;
if ((_root.bgs["girls" + varnum].item == 1) || (_root.bgs["girls" + varnum].item == 4)) {
_root.bgs["girls" + varnum].scored = _root.bgs["girls" + varnum].scored + _root.price1;
}
if ((_root.bgs["girls" + varnum].item == 2) || (_root.bgs["girls" + varnum].item == 5)) {
_root.bgs["girls" + varnum].scored = _root.bgs["girls" + varnum].scored + _root.price2;
}
if (_root.bgs["girls" + varnum].item == 3) {
_root.bgs["girls" + varnum].scored = _root.bgs["girls" + varnum].scored + _root.price3;
}
if (_root.bgs["girls" + varnum].counts == 1) {
if (_root.bgs["girls" + varnum].item == 3) {
var _local3 = 1 + random(2);
_root.bgs["girls" + varnum].glows = true;
if (_local3 == 1) {
_root.bgs["girls" + varnum].namval = 7;
}
if (_local3 == 2) {
_root.bgs["girls" + varnum].namval = 13;
}
_root.bgs["girls" + varnum].item = _root.bgs["girls" + varnum].item + _local3;
_root.bgs["girls" + varnum].flags = true;
_root.bgs["girls" + varnum].colors = _root.bgs["girls" + varnum].typ;
} else if (_root.bgs["girls" + varnum].item == 2) {
var _local3 = 2 + random(2);
if (_local3 == 2) {
_root.bgs["girls" + varnum].namval = 7;
}
if (_local3 == 3) {
_root.bgs["girls" + varnum].namval = 13;
}
_root.bgs["girls" + varnum].item = _root.bgs["girls" + varnum].item + _local3;
_root.bgs["girls" + varnum].flags = true;
_root.bgs["girls" + varnum].colors = _root.bgs["girls" + varnum].typ;
} else if (_root.bgs["girls" + varnum].item == 4) {
var _local3 = 1 + random(2);
_root.bgs["girls" + varnum].item = _root.bgs["girls" + varnum].item - _local3;
_root.bgs["girls" + varnum].typ = 1 + random(5);
_root.bgs["girls" + varnum].flags = true;
_root.bgs["girls" + varnum].namval = 7;
} else if (_root.bgs["girls" + varnum].item == 5) {
var _local3 = 2 + random(2);
_root.bgs["girls" + varnum].item = _root.bgs["girls" + varnum].item - _local3;
_root.bgs["girls" + varnum].typ = 1 + random(5);
_root.bgs["girls" + varnum].flags = true;
_root.bgs["girls" + varnum].namval = 13;
} else if (_root.bgs["girls" + varnum].item == 1) {
var _local3 = 1 + random(4);
_root.bgs["girls" + varnum].item = _root.bgs["girls" + varnum].item + _local3;
if ((_local3 == 1) || (_local3 == 2)) {
_root.bgs["girls" + varnum].namval = 1;
}
if (_local3 == 3) {
_root.bgs["girls" + varnum].typ = _root.bgs["girls" + varnum].colors;
_root.bgs["girls" + varnum].namval = 6;
}
if (_local3 == 4) {
_root.bgs["girls" + varnum].typ = _root.bgs["girls" + varnum].colors;
_root.bgs["girls" + varnum].namval = 12;
}
}
}
if (_root.bgs["girls" + varnum].counts == 2) {
if (_root.bgs["girls" + varnum].item == 3) {
var _local3 = 1 + random(2);
_root.bgs["girls" + varnum].glows = true;
if (_local3 == 1) {
_root.bgs["girls" + varnum].namval = 7;
}
if (_local3 == 2) {
_root.bgs["girls" + varnum].namval = 13;
}
_root.bgs["girls" + varnum].item = _root.bgs["girls" + varnum].item + _local3;
_root.bgs["girls" + varnum].flags = true;
_root.bgs["girls" + varnum].colors = _root.bgs["girls" + varnum].typ;
} else if (_root.bgs["girls" + varnum].item == 2) {
var _local3 = 2 + random(2);
if (_local3 == 2) {
_root.bgs["girls" + varnum].namval = 7;
}
if (_local3 == 3) {
_root.bgs["girls" + varnum].namval = 13;
}
_root.bgs["girls" + varnum].item = _root.bgs["girls" + varnum].item + _local3;
_root.bgs["girls" + varnum].flags = true;
_root.bgs["girls" + varnum].colors = _root.bgs["girls" + varnum].typ;
} else if (_root.bgs["girls" + varnum].item == 4) {
var _local3 = 1 + random(2);
_root.bgs["girls" + varnum].item = _root.bgs["girls" + varnum].item - _local3;
_root.bgs["girls" + varnum].typ = 1 + random(5);
_root.bgs["girls" + varnum].flags = true;
_root.bgs["girls" + varnum].namval = 7;
} else if (_root.bgs["girls" + varnum].item == 5) {
var _local3 = 2 + random(2);
_root.bgs["girls" + varnum].item = _root.bgs["girls" + varnum].item - _local3;
_root.bgs["girls" + varnum].typ = 1 + random(5);
_root.bgs["girls" + varnum].flags = true;
_root.bgs["girls" + varnum].namval = 13;
} else if (_root.bgs["girls" + varnum].item == 1) {
var _local3 = 1 + random(4);
_root.bgs["girls" + varnum].item = _root.bgs["girls" + varnum].item + _local3;
if ((_local3 == 1) || (_local3 == 2)) {
_root.bgs["girls" + varnum].namval = 1;
}
if (_local3 == 3) {
_root.bgs["girls" + varnum].typ = _root.bgs["girls" + varnum].colors;
_root.bgs["girls" + varnum].namval = 6;
}
if (_local3 == 4) {
_root.bgs["girls" + varnum].typ = _root.bgs["girls" + varnum].colors;
_root.bgs["girls" + varnum].namval = 12;
}
}
}
_root.bgs["girls" + varnum].bubbleFlag = true;
}
function girlEnter() {
if ((_root.level == 1) || (_root.level == 2)) {
run = 1;
_root.rans = 3;
}
if ((_root.level == 3) || (_root.level == 4)) {
run = 2;
_root.rans = 2;
}
if ((_root.level == 5) || (_root.level == 6)) {
run = 2;
_root.rans = 3;
}
if ((_root.level == 7) || (_root.level == 8)) {
run = 1;
_root.rans = 3;
}
if ((_root.level == 9) || (_root.level == 10)) {
run = 1;
_root.rans = 4;
}
if (_root.level > 10) {
run = 1;
_root.rans = 4;
}
var _local3 = run + random(_root.rans);
var _local4 = 1 + random(6);
depth = depth + 10;
depths++;
_root.bgs.attachMovie("girl" + _local3, "girls" + depth, depths, {_x:400, _y:217});
_root.bgs["girls" + depth].gotoAndStop("standing");
_root.bgs["girls" + depth].hairstyle = _local4;
_root.bgs["girls" + depth].select.hairs.cove._visible = false;
_root.bgs["girls" + depth].select.hairs.gotoAndStop(1);
_root.bgs["girls" + depth].select.hairs.c1.gotoAndStop(_root.bgs["girls" + depth].hairstyle);
_root.bgs["girls" + depth]._xscale = 38;
_root.bgs["girls" + depth].pressed = false;
_root.bgs["girls" + depth].counts = 0;
_root.bgs["girls" + depth]._yscale = 38;
_root.bgs["girls" + depth].time1 = true;
_root.arrayIndex.push(_root.bgs["girls" + depth]);
_root.bgs["girls" + depth].array = new Array();
_root.bgs["girls" + depth].times = _root.timer;
_root.bgs["girls" + depth].colors = 1;
_root.bgs["girls" + depth].flags = false;
_root.bgs["girls" + depth].scored = 0;
_root.bgs["girls" + depth].scores = 0;
_root.bgs["girls" + depth].glows = false;
var _local2 = 1;
while (_local2 < 20) {
_root.bgs["girls" + depth].select.hairs["h" + _local2]._visible = false;
_local2++;
}
_root["d" + depth] = depths;
depths++;
if (depths == 997) {
depths = 500;
}
}
function init() {
_root.Paused = false;
depth = 10;
deps = 1000000 /* 0x0F4240 */;
depths = 500;
inc2 = 0;
inc3 = 0;
inc4 = 0;
inc5 = 0;
deps1 = 40000;
_root.timers = 0;
_root.timer = 0;
_root.InitTime = getTimer();
depths1 = 10000;
_root.countf = 0;
_root.typeLevel = false;
_root.ladyArrayX = new Array();
_root.ladyArrayY = new Array();
_root.arrayIndex = new Array();
_root.arrayIndex.splice(0);
_root.alphas._visible = false;
_root.closed._visible = false;
_root.createEmptyMovieClip("bgs", 1);
_root.opens._visible = true;
_root.ladyArrayX = [51, 70, 270, 500, 700];
_root.ladyArrayY = [267, 330, 300, 300, 330];
_root.bgs.attachMovie("seat1", "seat1", depths1++, {_x:240, _y:400});
_root.bgs.attachMovie("seat2", "seat2", depths1++, {_x:440, _y:360});
_root.bgs.attachMovie("seat3", "seat3", depths1++, {_x:670, _y:360});
_root.bgs.attachMovie("seat4", "seat4", depths1++, {_x:870, _y:400});
_root.bgs.attachMovie("lady1", "lady", 3000, {_x:_root.ladyArrayX[0], _y:_root.ladyArrayY[0]});
_root.bgs.lady._xscale = 50;
_root.bgs.lady._yscale = 50;
var _local3 = 1;
while (_local3 < 5) {
_root.bgs["seat" + _local3]._xscale = 50;
_root.bgs["seat" + _local3]._yscale = 50;
_root.bgs["seat" + _local3].fill = false;
_local3++;
}
trace(_root.arrayUp + "arrayUp");
var _local4 = 0;
while (_local4 < _root.arrayUp.length) {
if (_root.arrayUp[_local4] == 1) {
_root.chairs1.gotoAndStop(2);
_root.chairs2.gotoAndStop(2);
}
if (_root.arrayUp[_local4] == 2) {
_local3 = 1;
while (_local3 < 5) {
_root.bgs["seat" + _local3].gotoAndStop(2);
_local3++;
}
}
if (_root.arrayUp[_local4] == 3) {
_root.chairs1.gotoAndStop(3);
_root.chairs2.gotoAndStop(3);
}
if (_root.arrayUp[_local4] == 4) {
_root.ac.gotoAndStop(2);
}
if (_root.arrayUp[_local4] == 5) {
_local3 = 1;
while (_local3 < 5) {
_root.bgs["seat" + _local3].gotoAndStop(3);
_local3++;
}
}
if (_root.arrayUp[_local4] == 6) {
_root.ac.gotoAndStop(3);
}
_local4++;
}
_root.scored = 0;
_root.scores = 0;
var _local2 = 1;
while (_local2 < 500) {
_root["inc" + _local2] = 0;
_root.bgs["girls" + _local2].flag1 = false;
_root.bgs["girls" + _local2].flag2 = false;
_root.bgs["girls" + _local2].timelastFlag = false;
_root.bgs["girls" + _local2].timelastFlag1 = false;
_root.bgs["girls" + _local2].tookItem = false;
_root.bgs["girls" + _local2].timer1 = 0;
_root.bgs["girls" + _local2].bubbleFlag = false;
_root.bgs["girls" + _local2].times = 0;
_root.bgs["girls" + _local2].time1 = false;
_root.bgs["girls" + _local2].sit = false;
_root.bgs["girls" + _local2].chairval = "";
_root.bgs["girls" + _local2].bubbleFlag = false;
_local2++;
}
_local4 = 1;
while (_local4 < 6) {
_root["star" + _local4]._visible = false;
_local4++;
}
if (_root.life == 5) {
_local4 = 1;
while (_local4 < 6) {
_root["star" + _local4]._visible = true;
_local4++;
}
}
if (_root.life == 4) {
_local4 = 2;
while (_local4 < 6) {
_root["star" + _local4]._visible = true;
_local4++;
}
}
if (_root.life == 3) {
_local4 = 3;
while (_local4 < 6) {
_root["star" + _local4]._visible = true;
_local4++;
}
}
if (_root.life == 2) {
_local4 = 4;
while (_local4 < 6) {
_root["star" + _local4]._visible = true;
_local4++;
}
}
if (_root.life == 1) {
_local4 = 5;
while (_local4 < 6) {
_root["star" + _local4]._visible = true;
_local4++;
}
}
_root.dayflag = false;
switch (_root.level) {
case 1 :
inc1 = 30;
_root.targets = 300;
_root.val1 = 20;
_root.val2 = 80;
_root.setTime1 = 20;
_root.setTime2 = 30;
_root.valTime = 100;
_root.price1 = 50;
_root.price2 = 100;
_root.price3 = 30;
break;
case 2 :
inc1 = 30;
_root.targets = 400;
_root.val1 = 19;
_root.val2 = 80;
_root.setTime1 = 20;
_root.setTime2 = 30;
_root.valTime = 100;
_root.price1 = 50;
_root.price2 = 100;
_root.price3 = 30;
break;
case 3 :
inc1 = 30;
_root.targets = 500;
_root.val1 = 18;
_root.val2 = 70;
_root.setTime1 = 20;
_root.setTime2 = 25;
_root.valTime = 100;
_root.price1 = 70;
_root.price2 = 130;
_root.price3 = 50;
break;
case 4 :
inc1 = 30;
_root.targets = 600;
_root.val1 = 17;
_root.val2 = 70;
_root.setTime1 = 15;
_root.setTime2 = 20;
_root.valTime = 100;
_root.price1 = 70;
_root.price2 = 130;
_root.price3 = 50;
break;
case 5 :
_root.targets = 700;
inc1 = 0;
_root.val1 = 16;
_root.val2 = 60;
_root.setTime1 = 15;
_root.setTime2 = 20;
_root.valTime = 100;
_root.price1 = 100;
_root.price2 = 150;
_root.price3 = 70;
break;
case 6 :
_root.targets = 800;
inc1 = 0;
_root.val1 = 15;
_root.val2 = 60;
_root.setTime1 = 15;
_root.setTime2 = 17;
_root.valTime = 100;
_root.price1 = 100;
_root.price2 = 150;
_root.price3 = 70;
break;
case 7 :
inc1 = 0;
_root.targets = 900;
_root.val1 = 14;
_root.val2 = 50;
_root.setTime1 = 13;
_root.setTime2 = 17;
_root.valTime = 80;
_root.price1 = 150;
_root.price2 = 200;
_root.price3 = 100;
break;
case 8 :
inc1 = 0;
_root.targets = 1000;
_root.val1 = 13;
_root.val2 = 50;
_root.setTime1 = 13;
_root.setTime2 = 17;
_root.valTime = 80;
_root.price1 = 150;
_root.price2 = 200;
_root.price3 = 100;
break;
case 9 :
inc1 = 0;
_root.targets = 1100;
_root.val1 = 12;
_root.val2 = 40;
_root.setTime1 = 11;
_root.setTime2 = 13;
_root.valTime = 80;
_root.price1 = 200;
_root.price2 = 300;
_root.price3 = 150;
break;
case 10 :
inc1 = 0;
_root.targets = 1200;
_root.val1 = 11;
_root.val2 = 30;
_root.setTime1 = 11;
_root.setTime2 = 13;
_root.valTime = 80;
_root.price1 = 200;
_root.price2 = 300;
_root.price3 = 150;
break;
case 11 :
inc1 = 0;
_root.targets = 1300;
_root.val1 = 11;
_root.val2 = 15;
_root.setTime1 = 11;
_root.setTime2 = 13;
_root.valTime = 50;
_root.price1 = 250;
_root.price2 = 350;
_root.price3 = 200;
break;
case 12 :
inc1 = 0;
_root.targets = 1400;
_root.val1 = 11;
_root.val2 = 15;
_root.setTime1 = 11;
_root.setTime2 = 13;
_root.valTime = 50;
_root.price1 = 250;
_root.price2 = 350;
_root.price3 = 200;
break;
case 13 :
inc1 = 0;
_root.targets = 1500;
_root.val1 = 11;
_root.val2 = 15;
_root.setTime1 = 11;
_root.setTime2 = 13;
_root.valTime = 50;
_root.price1 = 250;
_root.price2 = 350;
_root.price3 = 200;
break;
case 14 :
inc1 = 0;
_root.targets = 1600;
_root.val1 = 11;
_root.val2 = 15;
_root.setTime1 = 11;
_root.setTime2 = 13;
_root.valTime = 50;
_root.price1 = 250;
_root.price2 = 350;
_root.price3 = 200;
break;
case 15 :
inc1 = 0;
_root.targets = 1700;
_root.val1 = 11;
_root.val2 = 15;
_root.setTime1 = 11;
_root.setTime2 = 13;
_root.valTime = 50;
_root.price1 = 250;
_root.price2 = 350;
_root.price3 = 200;
}
if (_root.level > 15) {
inc1 = 0;
_root.targets = 1800;
_root.val1 = 11;
_root.val2 = 15;
_root.setTime1 = 11;
_root.setTime2 = 13;
_root.valTime = 50;
_root.price1 = 250;
_root.price2 = 350;
_root.price3 = 200;
}
_root.timers1 = 0;
_root.counts1 = 0;
_root.score = 0;
_root.count = 0;
depsps = 0;
_root.stopFlag = false;
_root.takeBox = false;
_root.girlsSit = new Array();
_root.girlsSit.splice(0);
_root.hairdresserIdle = true;
_root.girlsArray = new Array();
_root.girlsArray.splice(0);
_root.seatArray = new Array();
_root.seatArray.splice(0);
_root.chairValue = new Array();
_root.chairValue.splice(0);
_root.girlsPosArray = new Array();
_root.girlsPosArray = ["sitting", "sittingseat", "sittingseatbubble", "sittingoption"];
_root.chairArray = new Array();
_root.chairArray1 = new Array();
_root.chairArray1 = ["764", "678", "590", "215", "127"];
_root.chairArray = ["760", "685", "605", "205", "130"];
_root.chairValue = ["0", "1", "2", "3", "4"];
_root.girlsArray = new Array();
_root.girlDelay = true;
}
stop();
_root.onEnterFrame = function () {
if (_root.Paused == false) {
if (_root.girlDelay) {
inc1++;
if (inc1 == (_root.val2 - 3)) {
_root.opens._visible = false;
}
if (inc1 == _root.val2) {
_root.sound2.start();
_root.bg.door.gotoAndPlay("open");
}
if (inc1 == (_root.val2 + 5)) {
girlEnter();
_root.bg.door.gotoAndPlay("closed");
inc1 = 0;
_root.girlDelay = false;
}
}
var _local2 = 0;
while (_local2 < _root.girlsArray.length) {
if (_root.bgs["girls" + _root.girlsArray[_local2]].timelastFlag1) {
_root.inc5++;
if (_root.inc5 == 30) {
_root.bgs["girls" + _root.girlsArray[_local2]].timer1 = 0;
_root.bgs["girls" + _root.girlsArray[_local2]].tookItem = false;
_root.bgs["girls" + _root.girlsArray[_local2]].pressed = false;
depsps++;
if ((_root.bgs["girls" + _root.girlsArray[_local2]].item == 1) || (_root.bgs["girls" + _root.girlsArray[_local2]].item == 4)) {
_root.bgs["girls" + _root.girlsArray[_local2]].scores = _root.bgs["girls" + _root.girlsArray[_local2]].scored + _root.price1;
}
if ((_root.bgs["girls" + _root.girlsArray[_local2]].item == 2) || (_root.bgs["girls" + _root.girlsArray[_local2]].item == 5)) {
_root.bgs["girls" + _root.girlsArray[_local2]].scores = _root.bgs["girls" + _root.girlsArray[_local2]].scored + _root.price2;
}
if (_root.bgs["girls" + _root.girlsArray[_local2]].item == 3) {
_root.bgs["girls" + _root.girlsArray[_local2]].scores = _root.bgs["girls" + _root.girlsArray[_local2]].scored + _root.price3;
}
_root.bgs.attachMovie("paisa", "ps" + depsps, deps1);
_root.bgs["ps" + depsps].scores = 0;
_root.arrayIndex.push(_root.bgs["ps" + depsps]);
_root.bgs["ps" + depsps].scores = _root.bgs["girls" + _root.girlsArray[_local2]].scores;
deps1++;
if (deps1 == 90000) {
deps1 = 40000;
}
_root.bgs["ps" + depsps]._xscale = 20;
_root.bgs["ps" + depsps]._yscale = 20;
_root.bgs["ps" + depsps].seat.fill = false;
_root.bgs["ps" + depsps]._x = _root.bgs["girls" + _root.girlsArray[_local2]]._x;
_root.bgs["ps" + depsps]._y = _root.bgs["girls" + _root.girlsArray[_local2]]._y + 40;
if (_root.bgs["girls" + _root.girlsArray[_local2]].seat.fill == true) {
_root.bgs["ps" + depsps].seat = _root.bgs["girls" + _root.girlsArray[_local2]].seat;
}
_root.bgs["ps" + depsps].pressed = false;
_root.bgs["ps" + depsps].timer1 = _root.timers;
_root.seatArray.push(depsps);
_root.sound11.start();
_root.inc5 = 0;
OnPressMoney();
var _local3 = _root.bgs["girls" + _root.girlsArray[_local2]].timer1 + _root.val1;
_local3 = "";
_root.arrayIndex.splice(_root.bgs["girls" + _root.girlsArray[_local2]], 1);
_root.bgs["girls" + _root.girlsArray[_local2]].removeMovieClip();
_root.bgs["girls" + _root.girlsArray[_local2]].timelastFlag1 = false;
}
}
if (_root.bgs["girls" + _root.girlsArray[_local2]].timelastFlag) {
_root.inc4++;
if (_root.inc4 == 30) {
if (_root.typeLevel == true) {
_root.typeLevel = false;
count++;
_root["star" + count]._visible = false;
_root.sound4.start();
_root.life = _root.life - 1;
}
if (_root.bgs["girls" + _root.girlsArray[_local2]].seat.fill == true) {
_root.bgs["girls" + _root.girlsArray[_local2]].seat.fill = false;
}
if (_root.bgs["girls" + _root.girlsArray[_local2]].flag1 == true) {
_root.chairValue.push(_root.bgs["girls" + _root.girlsArray[_local2]].chairval);
}
if ((_root.bgs["girls" + _root.girlsArray[_local2]].flag1 == true) || (_root.bgs["girls" + _root.girlsArray[_local2]].flag2 == true)) {
count++;
_root["star" + count]._visible = false;
_root.life = _root.life - 1;
_root.sound4.start();
_root.bgs["girls" + _root.girlsArray[_local2]].flag1 = false;
_root.bgs["girls" + _root.girlsArray[_local2]].flag2 = false;
}
var _local4 = _root.bgs["girls" + _root.girlsArray[_local2]].timer1 + _root.val1;
_local4 = "";
_root.bgs["girls" + _root.girlsArray[_local2]].tookItem = false;
_root.bgs["girls" + _root.girlsArray[_local2]].pressed = false;
_root.arrayIndex.splice(_root.bgs["girls" + _root.girlsArray[_local2]], 1);
_root.bgs["girls" + _root.girlsArray[_local2]].removeMovieClip();
_root.sound7.start();
_root.bgs["girls" + _root.girlsArray[_local2]].timelastFlag = false;
_root.inc4 = 0;
if (_root.life == 0) {
clearCanvas();
_root.sound8.start();
_root.arrayIndex.splice(0);
_root.gotoAndStop("over");
_root.over.gotoAndStop("gameOver");
}
} else {
if (_root.bgs["girls" + _root.girlsArray[_local2]].flag1 == true) {
if (_root.bgs["girls" + _root.girlsArray[_local2]].pressed == true) {
inc4 = 0;
_root.bgs["girls" + _root.girlsArray[_local2]].flag1 = false;
_root.bgs["girls" + _root.girlsArray[_local2]].timelastFlag = false;
_root.bgs["girls" + _root.girlsArray[_local2]].select.actions.gotoAndStop(1);
}
}
if (_root.bgs["girls" + _root.girlsArray[_local2]].flag2 == true) {
if (_root.bgs["girls" + _root.girlsArray[_local2]].tookItem1 == true) {
inc4 = 0;
_root.bgs["girls" + _root.girlsArray[_local2]].flag2 = false;
_root.bgs["girls" + _root.girlsArray[_local2]].timelastFlag = false;
_root.bgs["girls" + _root.girlsArray[_local2]].select.actions.gotoAndStop(1);
}
}
}
}
if (_root.bgs["girls" + _root.girlsArray[_local2]].bubbleFlag) {
_root.inc3++;
if (_root.inc3 == 10) {
_root.bgs["girls" + _root.girlsArray[_local2]].gotoAndStop(_root.girlsPosArray[2]);
_root.bgs["girls" + _root.girlsArray[_local2]].displays.allItems.gotoAndStop(_root.bgs["girls" + _root.girlsArray[_local2]].item);
_root.bgs["girls" + _root.girlsArray[_local2]].displays.allItems.types.gotoAndStop(_root.bgs["girls" + _root.girlsArray[_local2]].typ);
_root.bgs["girls" + _root.girlsArray[_local2]].bubbleFlag = false;
_root.sound6.start();
_root.bgs["girls" + _root.girlsArray[_local2]].timer1 = _root.timers;
_root.bgs["girls" + _root.girlsArray[_local2]].tookItem1 = false;
_root.inc3 = 0;
}
}
_local2++;
}
if (_root.bgs["girls" + depth].time1) {
_root.inc2++;
if (_root.inc2 == 30) {
if (_root.chairValue.length == 0) {
_root.arrayIndex.splice(_root.bgs["girls" + _root.girlsArray[_local2]], 1);
_root.bgs["girls" + depth].removeMovieClip();
_root.girlDelay = true;
_root.inc2 = 0;
} else {
if (_root.pur3 == 2) {
_root.bgs["girls" + depth]._x = _root.chairArray1[_root.chairValue[0]];
_root.bgs["girls" + depth].chairval = _root.chairValue[0];
_root.bgs["girls" + depth]._y = 255;
} else {
_root.bgs["girls" + depth]._x = _root.chairArray[_root.chairValue[0]];
_root.bgs["girls" + depth].chairval = _root.chairValue[0];
_root.bgs["girls" + depth]._y = 245;
}
_root.bgs["girls" + depth].gotoAndStop(_root.girlsPosArray[0]);
_root.bgs["girls" + depth].select.hairs.c1.gotoAndStop(_root.bgs["girls" + depth].hairstyle);
_root.bgs["girls" + depth]._xscale = 35;
_root.bgs["girls" + depth]._yscale = 35;
_root["x" + depth] = _root.bgs["girls" + depth]._x;
_root["y" + depth] = _root.bgs["girls" + depth]._y;
_root.bgs["girls" + depth].sit = true;
_root.girlDelay = true;
_root.bgs["girls" + depth].timer1 = _root.timers;
_root.inc2 = 0;
_root.chairValue.splice(0, 1);
_root.girlsArray.push(depth);
_root.bgs["girls" + depth].time1 = false;
}
}
}
moves();
Pressed();
OnPressObj();
setTimer();
timeout();
}
};
init();
if (_root.soundready == false) {
_root.musicBtn1.gotoAndStop(2);
}
if (_root.soundready == true) {
_root.musicBtn1.gotoAndStop(1);
}
Instance of Symbol 553 MovieClip "obj1" in Frame 3
onClipEvent (load) {
this.s1 = this._x;
this.s2 = this._y;
this.depts = this.getDepth();
}
Instance of Symbol 554 MovieClip "obj2" in Frame 3
onClipEvent (load) {
this.s1 = this._x;
this.s2 = this._y;
this.depts = this.getDepth();
}
Instance of Symbol 555 MovieClip "obj3" in Frame 3
onClipEvent (load) {
this.s1 = this._x;
this.s2 = this._y;
this.depts = this.getDepth();
}
Instance of Symbol 327 MovieClip "obj4" in Frame 3
onClipEvent (load) {
this.s1 = this._x;
this.s2 = this._y;
this.depts = this.getDepth();
}
Instance of Symbol 557 MovieClip "obj5" in Frame 3
onClipEvent (load) {
this.s1 = this._x;
this.s2 = this._y;
this.depts = this.getDepth();
}
Instance of Symbol 562 MovieClip "musicBtn1" in Frame 3
on (release) {
if (_root.soundready == false) {
_root.soundready = true;
_root.sound1.stop();
this.gotoAndStop(1);
_root.tile.musicBtn.gotoAndStop(1);
} else if (_root.soundready == true) {
_root.soundready = false;
this.gotoAndStop(2);
_root.tile.musicBtn.gotoAndStop(2);
_root.sound1.start();
}
}
on (rollOver) {
if (_root.soundready == false) {
this.gotoAndStop(4);
_root.tile.musicBtn.gotoAndStop(4);
}
if (_root.soundready == true) {
this.gotoAndStop(3);
_root.tile.musicBtn.gotoAndStop(3);
}
}
on (rollOut) {
if (_root.soundready == false) {
this.gotoAndStop(2);
_root.tile.musicBtn.gotoAndStop(2);
}
if (_root.soundready == true) {
this.gotoAndStop(1);
_root.tile.musicBtn.gotoAndStop(1);
}
}
Frame 48
stop();
Frame 50
stop();
Symbol 25 MovieClip [option] Frame 64
stop();
_root.dayflag = true;
Symbol 32 MovieClip [seat11] Frame 1
stop();
Symbol 40 MovieClip [seat4] Frame 1
stop();
Symbol 44 MovieClip [seat3] Frame 1
stop();
Symbol 48 MovieClip [seat2] Frame 1
stop();
Symbol 52 MovieClip [seat1] Frame 1
stop();
Symbol 61 MovieClip [paisa] Frame 1
stop();
Symbol 61 MovieClip [paisa] Frame 10
stop();
Symbol 90 MovieClip [lady1] Frame 1
stop();
_root.bgs.lady.frames = "still";
Symbol 90 MovieClip [lady1] Frame 41
_root.bgs.lady.frames = "dest";
Symbol 104 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 37
stop();
_root.stopFlag = true;
Symbol 129 MovieClip Frame 34
stop();
_root.stopFlag = true;
Symbol 137 MovieClip Frame 38
stop();
_root.stopFlag = true;
Symbol 140 MovieClip Frame 45
stop();
_root.stopFlag = true;
Symbol 142 MovieClip Frame 45
stop();
_root.stopFlag = true;
Symbol 153 MovieClip Frame 1
stop();
Instance of Symbol 120 MovieClip "obs1" in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
this.s1 = this._x;
this.s2 = this._y;
this.depts = this.getDepth();
}
Instance of Symbol 129 MovieClip "obs2" in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
this.s1 = this._x;
this.s2 = this._y;
this.depts = this.getDepth();
}
Instance of Symbol 137 MovieClip "obs3" in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
this.s1 = this._x;
this.s2 = this._y;
this.depts = this.getDepth();
}
Instance of Symbol 140 MovieClip "obs4" in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
this.s1 = this._x;
this.s2 = this._y;
this.depts = this.getDepth();
}
Instance of Symbol 142 MovieClip "obs5" in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
this.s1 = this._x;
this.s2 = this._y;
this.depts = this.getDepth();
}
Symbol 287 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 41
stop();
_root.stopFlag = true;
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 2
stop();
Symbol 330 MovieClip Frame 3
stop();
Symbol 331 MovieClip Frame 12
stop();
Symbol 332 MovieClip [girl1] Frame 6
stop();
Symbol 332 MovieClip [girl1] Frame 7
stop();
Symbol 341 MovieClip Frame 1
stop();
Symbol 359 MovieClip [girl4] Frame 1
stop();
Symbol 362 MovieClip Frame 1
stop();
Symbol 373 MovieClip [girl3] Frame 1
stop();
Symbol 379 MovieClip Frame 1
stop();
Symbol 391 MovieClip [girl2] Frame 1
stop();
Symbol 391 MovieClip [girl2] Frame 2
stop();
Symbol 396 MovieClip [clips1] Frame 1
stop();
Symbol 407 MovieClip [clips2] Frame 1
stop();
Symbol 414 Button
on (release) {
_root.Paused = false;
_root.bgs.help1._visible = false;
_root.bgs.help1.removeMovieClip();
}
Symbol 423 MovieClip Frame 1
_root.stop();
Symbol 423 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 439 MovieClip Frame 1
stop();
fSitebutton.onRelease = function () {
getURL ("http://www.games2girls.com/", "_blank");
};
Symbol 439 MovieClip Frame 123
stop();
_root.play();
Symbol 447 MovieClip Frame 5
stop();
Symbol 477 MovieClip Frame 11
stop();
Symbol 477 MovieClip Frame 64
stop();
Symbol 481 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 486 MovieClip Frame 1
games2girls_button.onRelease = function () {
getURL ("http://www.games2girls.com/", "_blank");
};
Symbol 488 Button
on (release) {
gotoAndStop ("help");
}
Symbol 491 MovieClip Frame 1
stop();
Symbol 496 Button
on (release) {
_root.sound1.stop();
gotoAndPlay ("menu");
}
Symbol 498 MovieClip Frame 1
if (!_root.soundready) {
_root.musicBtn.gotoAndStop(2);
}
if (_root.soundready) {
_root.musicBtn.gotoAndStop(1);
}
_root.total = 0;
_root.profit = 0;
_root.sound2 = new Sound();
_root.sound3 = new Sound();
_root.sound4 = new Sound();
_root.sound5 = new Sound();
_root.sound6 = new Sound();
_root.sound7 = new Sound();
_root.sound8 = new Sound();
_root.sound9 = new Sound();
_root.sound10 = new Sound();
_root.sound11 = new Sound();
_root.sound2.attachSound("enter");
_root.sound3.attachSound("dressing");
_root.sound4.attachSound("lifes");
_root.sound5.attachSound("money");
_root.sound6.attachSound("bubble");
_root.sound7.attachSound("gone");
_root.sound8.attachSound("gameover");
_root.sound9.attachSound("levelup");
_root.sound10.attachSound("gamewon");
_root.sound11.attachSound("happy");
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);
}
Symbol 498 MovieClip Frame 21
stop();
var s = 1;
while (s < 7) {
_root["pur" + s] = 0;
s++;
}
_root.arrayUp = new Array();
_root.profit = 0;
if (!_root.soundready) {
_root.tile.musicBtn.gotoAndStop(2);
}
if (_root.soundready) {
_root.tile.musicBtn.gotoAndStop(1);
}
Instance of Symbol 491 MovieClip "musicBtn" in Symbol 498 MovieClip Frame 21
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);
_root.musicBtn1.gotoAndStop(4);
}
if (_root.soundready == true) {
this.gotoAndStop(3);
_root.musicBtn1.gotoAndStop(3);
}
}
on (rollOut) {
if (_root.soundready == false) {
this.gotoAndStop(2);
_root.musicBtn1.gotoAndStop(2);
}
if (_root.soundready == true) {
this.gotoAndStop(1);
_root.musicBtn1.gotoAndStop(1);
}
}
Symbol 498 MovieClip Frame 23
stop();
Symbol 517 MovieClip Frame 1
stop();
Symbol 517 MovieClip Frame 17
stop();
Symbol 517 MovieClip Frame 37
stop();
Symbol 526 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 1
stop();
Symbol 554 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 1
stop();
Symbol 557 MovieClip Frame 1
stop();
Symbol 562 MovieClip Frame 1
stop();
Symbol 567 Button
on (release) {
_root.Paused = true;
_root.bgs.attachMovie("help1", "help1", 9999999999999, {_x:400, _y:300});
}
Symbol 572 Button
on (release) {
_root.sound1.stop();
_root.clearCanvas();
_root.gotoAndStop("menu1");
}
Symbol 595 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 1
stop();
Symbol 604 MovieClip Frame 1
stop();
Symbol 608 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 1
stop();
Symbol 619 Button
on (press) {
if (_root.score < _root.targets) {
_root.purchase.gotoAndStop(4);
} else {
_root.purchase.gotoAndStop(2);
}
}
Symbol 628 Button
on (release) {
_root.level = _root.level + 1;
_root.gotoAndStop("game");
}
Symbol 631 Button
on (release) {
_root.purchase.gotoAndStop(1);
if (_root.pur1 != 2) {
if (_root.purse >= 200) {
_root.purchase.purch1.gotoAndStop(2);
}
} else {
_root.purchase.purch1.gotoAndStop(3);
}
if (_root.pur2 != 2) {
if (_root.purse >= 500) {
_root.purchase.purch2.gotoAndStop(2);
}
} else {
_root.purchase.purch2.gotoAndStop(3);
}
if (_root.pur3 != 2) {
if (_root.purse >= 1000) {
_root.purchase.purch3.gotoAndStop(2);
}
} else {
_root.purchase.purch3.gotoAndStop(3);
}
if (_root.pur4 != 2) {
if (_root.purse >= 2000) {
_root.purchase.purch4.gotoAndStop(2);
}
} else {
_root.purchase.purch4.gotoAndStop(3);
}
if (_root.pur5 != 2) {
if (_root.purse >= 2500) {
_root.purchase.purch5.gotoAndStop(2);
}
} else {
_root.purchase.purch5.gotoAndStop(3);
}
if (_root.pur6 != 2) {
if (_root.purse >= 3000) {
_root.purchase.purch6.gotoAndStop(2);
}
} else {
_root.purchase.purch6.gotoAndStop(3);
}
}
Symbol 642 Button
on (release) {
_root.sound1.stop();
_root.gotoAndStop("menu1");
}
Symbol 645 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 646 Button
on (release) {
_root.purchase.gotoAndStop(1);
if (_root.pur1 != 2) {
if (_root.purse >= 200) {
_root.purchase.purch1.gotoAndStop(2);
}
} else {
_root.purchase.purch1.gotoAndStop(3);
}
if (_root.pur2 != 2) {
if (_root.purse >= 500) {
_root.purchase.purch2.gotoAndStop(2);
}
} else {
_root.purchase.purch2.gotoAndStop(3);
}
if (_root.pur3 != 2) {
if (_root.score >= 1000) {
_root.purchase.purch3.gotoAndStop(2);
}
} else {
_root.purchase.purch3.gotoAndStop(3);
}
if (_root.pur4 != 2) {
if (_root.purse >= 2000) {
_root.purchase.purch4.gotoAndStop(2);
}
} else {
_root.purchase.purch4.gotoAndStop(3);
}
if (_root.pur5 != 2) {
if (_root.purse >= 2500) {
_root.purchase.purch5.gotoAndStop(2);
}
} else {
_root.purchase.purch5.gotoAndStop(3);
}
if (_root.pur6 != 2) {
if (_root.purse >= 3000) {
_root.purchase.purch6.gotoAndStop(2);
}
} else {
_root.purchase.purch6.gotoAndStop(3);
}
}
Symbol 651 MovieClip Frame 1
stop();
Instance of Symbol 595 MovieClip "purch4" in Symbol 651 MovieClip Frame 1
on (press) {
if (_root.purse >= 2000) {
this.gotoAndStop(3);
_root.pur4 = 2;
_root.total = _root.total - 2000;
_root.purse = _root.total;
_root.arrayUp.push(4);
}
}
Instance of Symbol 598 MovieClip "purch6" in Symbol 651 MovieClip Frame 1
on (press) {
if (_root.purse >= 3000) {
this.gotoAndStop(3);
_root.pur6 = 2;
_root.arrayUp.push(6);
_root.total = _root.total - 3000;
_root.purse = _root.total;
}
}
Instance of Symbol 604 MovieClip "purch1" in Symbol 651 MovieClip Frame 1
on (press) {
if (_root.purse >= 200) {
this.gotoAndStop(3);
_root.total = _root.total - 200;
_root.purse = _root.total;
_root.pur1 = 2;
_root.arrayUp.push(1);
}
}
Instance of Symbol 608 MovieClip "purch3" in Symbol 651 MovieClip Frame 1
on (press) {
if (_root.purse >= 1000) {
this.gotoAndStop(3);
_root.total = _root.total - 1000;
_root.purse = _root.total;
_root.pur3 = 2;
_root.arrayUp.push(3);
}
}
Instance of Symbol 612 MovieClip "purch2" in Symbol 651 MovieClip Frame 1
on (press) {
if (_root.purse >= 500) {
this.gotoAndStop(3);
_root.total = _root.total - 500;
_root.purse = _root.total;
_root.pur2 = 2;
_root.arrayUp.push(2);
}
}
Instance of Symbol 616 MovieClip "purch5" in Symbol 651 MovieClip Frame 1
on (press) {
if (_root.purse >= 2500) {
this.gotoAndStop(3);
_root.total = _root.total - 2500;
_root.purse = _root.total;
_root.pur5 = 2;
_root.arrayUp.push(5);
}
}
Symbol 651 MovieClip Frame 2
stop();
Symbol 651 MovieClip Frame 3
stop();
Symbol 651 MovieClip Frame 4
stop();
Symbol 672 MovieClip Frame 24
stop();
Symbol 675 Button
on (release) {
_root.sound1.stop();
_root.gotoAndStop("menu1");
}
Symbol 686 MovieClip Frame 24
stop();
Symbol 687 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 26
stop();