Frame 2
function Job_app_page(job_app_page_num) {
var girl_id = _root.Job_app[job_app_page_num];
var girl = _root.Girls_list[girl_id];
_root.main.tabs.photos.gotoAndStop(girl[1]);
_root.main.tabs.name = girl[2];
_root.main.tabs.ene = girl[3];
_root.main.tabs.hap = girl[4];
_root.main.tabs.rep = girl[5];
_root.main.tabs.dan = girl[6];
_root.main.tabs.ski = girl[7];
_root.main.tabs.kin = girl[8];
_root.main.tabs.sex = girl[9];
if (_root.Job_app.length > 0) {
_root.main.tabs.page = ((job_app_page_num + 1) + " / ") + _root.Job_app.length;
} else {
_root.main.tabs.page = "0 / 0";
}
return(job_app_page_num);
}
function Job_app_hire(job_app_page_num) {
if (_root.Job_app.length > 0) {
_root.Job_hired.push(_root.Job_app[job_app_page_num]);
_root.Job_app.splice(job_app_page_num, 1);
}
}
function Job_all_page(job_all_page_num) {
var girl_id;
var girl;
girl_id = _root.Job_hired[(job_all_page_num * 4) + 0];
girl = _root.Girls_list[girl_id];
_root.main.tabs.name1 = girl[2];
_root.main.tabs.ene1 = girl[3];
_root.main.tabs.hap1 = girl[4];
_root.main.tabs.rep1 = girl[5];
_root.main.tabs.occ1 = _root.Occupation_list[girl[10]];
if (girl[10] == 1) {
_root.main.tabs.occ1 = _root.main.tabs.occ1 + ((" (" + girl[11]) + ")");
}
girl_id = _root.Job_hired[(job_all_page_num * 4) + 1];
girl = _root.Girls_list[girl_id];
_root.main.tabs.name2 = girl[2];
_root.main.tabs.ene2 = girl[3];
_root.main.tabs.hap2 = girl[4];
_root.main.tabs.rep2 = girl[5];
_root.main.tabs.occ2 = _root.Occupation_list[girl[10]];
if (girl[10] == 1) {
_root.main.tabs.occ2 = _root.main.tabs.occ2 + ((" (" + girl[11]) + ")");
}
girl_id = _root.Job_hired[(job_all_page_num * 4) + 2];
girl = _root.Girls_list[girl_id];
_root.main.tabs.name3 = girl[2];
_root.main.tabs.ene3 = girl[3];
_root.main.tabs.hap3 = girl[4];
_root.main.tabs.rep3 = girl[5];
_root.main.tabs.occ3 = _root.Occupation_list[girl[10]];
if (girl[10] == 1) {
_root.main.tabs.occ3 = _root.main.tabs.occ3 + ((" (" + girl[11]) + ")");
}
girl_id = _root.Job_hired[(job_all_page_num * 4) + 3];
girl = _root.Girls_list[girl_id];
_root.main.tabs.name4 = girl[2];
_root.main.tabs.ene4 = girl[3];
_root.main.tabs.hap4 = girl[4];
_root.main.tabs.rep4 = girl[5];
_root.main.tabs.occ4 = _root.Occupation_list[girl[10]];
if (girl[10] == 1) {
_root.main.tabs.occ4 = _root.main.tabs.occ4 + ((" (" + girl[11]) + ")");
}
if (_root.Job_hired.length > 0) {
_root.main.tabs.page = ((job_all_page_num + 1) + " / ") + Math.ceil(_root.Job_hired.length / 4);
} else {
_root.main.tabs.page = "0 / 0";
}
return(job_all_page_num);
}
function Job_hired_page(job_hired_page_num) {
var girl_id = _root.Job_hired[job_hired_page_num];
var girl = _root.Girls_list[girl_id];
_root.main.tabs.photos.gotoAndStop(girl[1]);
_root.main.tabs.name = girl[2];
_root.main.tabs.ene = girl[3];
_root.main.tabs.hap = girl[4];
_root.main.tabs.rep = girl[5];
_root.main.tabs.dan = girl[6];
_root.main.tabs.ski = girl[7];
_root.main.tabs.kin = girl[8];
_root.main.tabs.sex = girl[9];
_root.main.tabs.occ = _root.Occupation_list[girl[10]];
if (girl[10] == 1) {
_root.main.tabs.occ = _root.main.tabs.occ + ((" (" + girl[11]) + ")");
}
if (_root.Job_hired.length > 0) {
_root.main.tabs.page = ((job_hired_page_num + 1) + " / ") + _root.Job_hired.length;
} else {
_root.main.tabs.page = "0 / 0";
}
return(job_hired_page_num);
}
function Change_occupation(job_hired_page_num, target_occ) {
var changed = false;
var girl_id = _root.Job_hired[job_hired_page_num];
var occ = _root.Girls_list[girl_id][10];
if (occ != 1) {
if (((target_occ == 2) or (target_occ == 3)) or (target_occ == 4)) {
if (_root.Club_space_working[target_occ - 2] < _root.Club_space[target_occ - 2]) {
_root.Girls_list[girl_id][10] = target_occ;
_root.Club_space_working[target_occ - 2] = _root.Club_space_working[target_occ - 2] + 1;
changed = true;
}
} else {
_root.Girls_list[girl_id][10] = target_occ;
changed = true;
}
if ((((occ == 2) or (occ == 3)) or (occ == 4)) and changed) {
_root.Club_space_working[occ - 2] = _root.Club_space_working[occ - 2] - 1;
}
_root.Job_hired_page(job_hired_page_num);
}
}
function Next_day() {
_root.main.gotoAndStop(3);
if (_root.Job_hired.length == 0) {
_root.main.controler.gotoAndStop(2);
_root.main.TXT = "Nothing to report.";
_root.main.stage_bg.gotoAndStop(1);
} else {
if (_root.Next_day_I >= (_root.Job_hired.length - 1)) {
_root.main.controler.gotoAndStop(2);
}
_root.main.stage_bg.gotoAndStop(_root.Girls_list[_root.Job_hired[_root.Next_day_I]][1]);
_root.Occupation_function();
}
}
function Random_int(MIN, MAX) {
return(MIN + Math.floor(Math.random() * ((MAX - MIN) + 1)));
}
function Report_bio_gain_random(Rmin, Rmax, bio_name, girl, bio_id) {
var txt;
var BIO = _root.Random_int(Rmin, Rmax);
girl[bio_id] = girl[bio_id] + BIO;
if (girl[bio_id] > 100) {
BIO = (BIO - girl[bio_id]) + 100;
girl[bio_id] = 100;
}
txt = txt + ((((((bio_name + newline) + "+") + BIO) + " (") + girl[bio_id]) + ")\n");
return(txt);
}
function Report_bio_lose_random(Rmin, Rmax, bio_name, girl, bio_id) {
var txt;
var BIO = _root.Random_int(Rmin, Rmax);
if (bio_id == 3) {
BIO = Math.ceil(BIO / (girl[4] * 0.015));
}
girl[bio_id] = girl[bio_id] - BIO;
if ((bio_id == 3) and (girl[bio_id] <= 0)) {
occ = girl[10];
girl[10] = 1;
if (((occ == 2) or (occ == 3)) or (occ == 4)) {
_root.Club_space_working[occ - 2] = _root.Club_space_working[occ - 2] - 1;
}
girl[11] = girl[11] + (2 + Math.ceil(girl[bio_id] / -15));
}
if (girl[bio_id] < 0) {
BIO = BIO + girl[bio_id];
girl[bio_id] = 0;
}
txt = txt + ((((((bio_name + newline) + "-") + BIO) + " (") + girl[bio_id]) + ")\n");
return(txt);
}
function Report_bio_lose_percent(Rmin, Rmax, bio_name, girl, bio_id) {
var txt;
var BIO = Math.ceil(girl[bio_id] * (_root.Random_int(Rmin, Rmax) / 100));
girl[bio_id] = girl[bio_id] - BIO;
txt = txt + ((((((bio_name + newline) + "-") + BIO) + " (") + girl[bio_id]) + ")\n");
return(txt);
}
function Report_earnings_to_array(girl_id, amount) {
var n = (girl_id * 6);
i = 0;
while (i < 4) {
_root.Reports_by_girl[n + i] = _root.Reports_by_girl[(n + i) + 1];
i++;
}
_root.Reports_by_girl[n + 4] = amount;
_root.Reports_by_girl[n + 5] = _root.Reports_by_girl[n + 5] + amount;
}
function Report_earnings_to_array_place(place_id, amount) {
var n = (place_id * 6);
i = 0;
while (i < 4) {
_root.Reports_by_place[n + i] = _root.Reports_by_place[(n + i) + 1];
i++;
}
_root.Reports_by_place[n + 4] = amount;
_root.Reports_by_place[n + 5] = _root.Reports_by_place[n + 5] + amount;
}
function Check_quit_and_refuse(girl) {
var txt = "";
if (girl[4] <= 15) {
var r = _root.Random_int(1, 60);
if (r > (girl[4] * 4)) {
txt = txt + "\nShe quit the job.";
_root.Job_hired.splice(_root.Next_day_I, 1);
_root.Next_day_I--;
return(txt);
}
}
if (girl[4] <= 25) {
var r = _root.Random_int(1, 100);
if (r > (girl[4] * 3)) {
txt = txt + "\nRefused to work today.";
_root.Report_earnings_to_array(girl[0], 0);
return(txt);
}
}
return(txt);
}
function Report_clients_money(girl, Mmin, Mmax, mod, place_id) {
var txt = "";
var mon = Math.ceil((_root.Random_int(Mmin, Mmax) + ((girl[place_id + 4] + (girl[9] * 0.5)) * mod)) * (1 + (girl[5] * 0.03)));
_root.Report_earnings_to_array(girl[0], mon);
_root.daily_place[place_id - 2] = _root.daily_place[place_id - 2] + mon;
_root.MONEY = _root.MONEY + mon;
txt = txt + (("+" + mon) + "$\n");
return(txt);
}
function Check_decor_expectations(work_place, rep) {
if ((work_place * 20) < rep) {
return(true);
}
return(false);
}
function Report_money_cost(base, bio, girl_id) {
var txt = "";
var mon = (base + (base * Math.floor(bio * 0.05)));
_root.Report_earnings_to_array(girl_id, mon * -1);
_root.MONEY = _root.MONEY - mon;
txt = txt + (("-" + mon) + "$\n");
return(txt);
}
function Occupation_function() {
var TEXT = "";
var girl_id = _root.Job_hired[_root.Next_day_I];
var girl = _root.Girls_list[girl_id];
var girl_occ = girl[10];
var name = girl[2];
TEXT = TEXT + (name + newline);
var occ = _root.Occupation_list[girl_occ];
TEXT = TEXT + (occ + newline);
if (girl_occ == 1) {
girl[11]--;
if (girl[11] == 0) {
girl[10] = 0;
TEXT = TEXT + "She can now return to work\n";
}
}
if (((girl_occ == 2) or (girl_occ == 3)) or (girl_occ == 4)) {
var q_r = _root.Check_quit_and_refuse(girl);
if (q_r != "") {
TEXT = TEXT + q_r;
_root.main.TXT = TEXT;
return(undefined);
}
var bad = 0;
if (_root.Random_int(1, 100) <= _root.Club_decor[3]) {
bad = 1;
}
if (bad != 0) {
TEXT = TEXT + "Obnoxious client.\n";
}
var dec = _root.Check_decor_expectations(_root.Club_decor[girl_occ - 2], girl[5]);
if (dec) {
TEXT = TEXT + "Unmet expectations.\n";
}
if ((!bad) and (!dec)) {
TEXT = TEXT + "Everything went smoothly.\n";
}
}
switch (girl_occ) {
case 0 :
_root.Report_earnings_to_array(girl_id, 0);
TEXT = TEXT + _root.Report_bio_gain_random(50, 50, "ENERGY", girl, 3);
TEXT = TEXT + _root.Report_bio_gain_random(20, 25, "HAPPINESS", girl, 4);
TEXT = TEXT + _root.Report_bio_lose_percent(5, 10, "REPUTATION", girl, 5);
break;
case 1 :
_root.Report_earnings_to_array(girl_id, 0);
TEXT = TEXT + _root.Report_bio_gain_random(50, 50, "ENERGY", girl, 3);
TEXT = TEXT + _root.Report_bio_gain_random(20, 25, "HAPPINESS", girl, 4);
TEXT = TEXT + _root.Report_bio_lose_percent(5, 10, "REPUTATION", girl, 5);
break;
case 2 :
TEXT = TEXT + _root.Report_clients_money(girl, 55, 80, 2.5, girl_occ);
TEXT = TEXT + _root.Report_bio_lose_random(15, 20, "ENERGY", girl, 3);
if (bad or dec) {
TEXT = TEXT + _root.Report_bio_lose_random(15 * (bad + dec), 15 * (bad + dec), "HAPPINESS", girl, 4);
} else {
TEXT = TEXT + _root.Report_bio_gain_random(15, 20, "HAPPINESS", girl, 4);
}
TEXT = TEXT + _root.Report_bio_gain_random(2, 5, "REPUTATION", girl, 5);
break;
case 3 :
TEXT = TEXT + _root.Report_clients_money(girl, 150, 180, 5.5, girl_occ);
TEXT = TEXT + _root.Report_bio_lose_random(30, 35, "ENERGY", girl, 3);
if (bad or dec) {
TEXT = TEXT + _root.Report_bio_lose_random(15 * (bad + dec), 15 * (bad + dec), "HAPPINESS", girl, 4);
} else {
TEXT = TEXT + _root.Report_bio_gain_random(15, 20, "HAPPINESS", girl, 4);
}
TEXT = TEXT + _root.Report_bio_gain_random(2, 6, "REPUTATION", girl, 5);
break;
case 4 :
TEXT = TEXT + _root.Report_clients_money(girl, 20, 35, 1.2, girl_occ);
TEXT = TEXT + _root.Report_bio_lose_random(10, 15, "ENERGY", girl, 3);
if (bad or dec) {
TEXT = TEXT + _root.Report_bio_lose_random(15 * (bad + dec), 15 * (bad + dec), "HAPPINESS", girl, 4);
} else {
TEXT = TEXT + _root.Report_bio_gain_random(15, 20, "HAPPINESS", girl, 4);
}
TEXT = TEXT + _root.Report_bio_gain_random(2, 4, "REPUTATION", girl, 5);
break;
case 5 :
TEXT = TEXT + _root.Report_money_cost(100, girl[6], girl_id);
TEXT = TEXT + _root.Report_bio_lose_random(40, 40, "ENERGY", girl, 3);
TEXT = TEXT + _root.Report_bio_lose_percent(5, 10, "REPUTATION", girl, 5);
TEXT = TEXT + _root.Report_bio_gain_random(15, 20, "DANCE", girl, 6);
break;
case 6 :
TEXT = TEXT + _root.Report_money_cost(200, girl[7], girl_id);
TEXT = TEXT + _root.Report_bio_lose_random(40, 40, "ENERGY", girl, 3);
TEXT = TEXT + _root.Report_bio_lose_percent(5, 10, "REPUTATION", girl, 5);
TEXT = TEXT + _root.Report_bio_gain_random(15, 20, "'SKILL'", girl, 7);
break;
case 7 :
TEXT = TEXT + _root.Report_money_cost(50, girl[8], girl_id);
TEXT = TEXT + _root.Report_bio_lose_random(40, 40, "ENERGY", girl, 3);
TEXT = TEXT + _root.Report_bio_lose_percent(5, 10, "REPUTATION", girl, 5);
TEXT = TEXT + _root.Report_bio_gain_random(15, 20, "KINDNESS", girl, 8);
break;
case 8 :
TEXT = TEXT + _root.Report_money_cost(100, girl[9], girl_id);
TEXT = TEXT + _root.Report_bio_lose_random(40, 40, "ENERGY", girl, 3);
TEXT = TEXT + _root.Report_bio_lose_percent(5, 10, "REPUTATION", girl, 5);
TEXT = TEXT + _root.Report_bio_gain_random(15, 20, "SEXINESS", girl, 9);
break;
}
_root.main.TXT = TEXT;
}
function Report_page_by_girl() {
_root.main.tabs.table.name = "";
_root.main.tabs.table.day0 = "";
_root.main.tabs.table.day1 = "";
_root.main.tabs.table.day2 = "";
_root.main.tabs.table.day3 = "";
_root.main.tabs.table.day4 = "";
_root.main.tabs.table.day_total = "";
_root.main.tabs.table.total = "";
var l = _root.Job_hired.length;
if (l > 0) {
i = 0;
while (i < l) {
var girl_id = _root.Job_hired[i];
_root.main.tabs.table.name = _root.main.tabs.table.name + (_root.Girls_list[girl_id][2] + newline);
var n = (girl_id * 6);
_root.main.tabs.table.day0 = _root.main.tabs.table.day0 + (Reports_by_girl[n] + " $\n");
_root.main.tabs.table.day1 = _root.main.tabs.table.day1 + (Reports_by_girl[n + 1] + " $\n");
_root.main.tabs.table.day2 = _root.main.tabs.table.day2 + (Reports_by_girl[n + 2] + " $\n");
_root.main.tabs.table.day3 = _root.main.tabs.table.day3 + (Reports_by_girl[n + 3] + " $\n");
_root.main.tabs.table.day4 = _root.main.tabs.table.day4 + (Reports_by_girl[n + 4] + " $\n");
_root.main.tabs.table.day_total = _root.main.tabs.table.day_total + (((((Reports_by_girl[n] + Reports_by_girl[n + 1]) + Reports_by_girl[n + 2]) + Reports_by_girl[n + 3]) + Reports_by_girl[n + 4]) + " $\n");
_root.main.tabs.table.total = _root.main.tabs.table.total + (Reports_by_girl[n + 5] + " $\n");
i++;
}
}
}
function Report_page_by_place() {
_root.main.tabs.table.name = "STAGE\nPRIVATE ROOMS\nBAR";
_root.main.tabs.table.day0 = "";
_root.main.tabs.table.day1 = "";
_root.main.tabs.table.day2 = "";
_root.main.tabs.table.day3 = "";
_root.main.tabs.table.day4 = "";
_root.main.tabs.table.day_total = "";
_root.main.tabs.table.total = "";
i = 0;
while (i < 3) {
var n = (i * 6);
_root.main.tabs.table.day0 = _root.main.tabs.table.day0 + (Reports_by_place[n] + " $\n");
_root.main.tabs.table.day1 = _root.main.tabs.table.day1 + (Reports_by_place[n + 1] + " $\n");
_root.main.tabs.table.day2 = _root.main.tabs.table.day2 + (Reports_by_place[n + 2] + " $\n");
_root.main.tabs.table.day3 = _root.main.tabs.table.day3 + (Reports_by_place[n + 3] + " $\n");
_root.main.tabs.table.day4 = _root.main.tabs.table.day4 + (Reports_by_place[n + 4] + " $\n");
_root.main.tabs.table.day_total = _root.main.tabs.table.day_total + (((((Reports_by_place[n] + Reports_by_place[n + 1]) + Reports_by_place[n + 2]) + Reports_by_place[n + 3]) + Reports_by_place[n + 4]) + " $\n");
_root.main.tabs.table.total = _root.main.tabs.table.total + (Reports_by_place[n + 5] + " $\n");
i++;
}
}
function Club_page(place) {
_root.main.club_place.work = "";
_root.main.club_place.rep = "";
if (_root.Job_hired.length > 0) {
i = 0;
while (i < _root.Job_hired.length) {
var girl_id = _root.Job_hired[i];
if (Girls_list[girl_id][10] == (place + 2)) {
_root.main.club_place.work = _root.main.club_place.work + (_root.Girls_list[girl_id][2] + newline);
_root.main.club_place.rep = _root.main.club_place.rep + (_root.Girls_list[girl_id][5] + newline);
}
i++;
}
}
_root.main.club_place.space = ((_root.Club_space[place] + " (") + _root.Club_space_working[place]) + ")";
switch (place) {
case 0 :
_root.main.club_place.s_cost = 500 + (_root.Club_space[place] * 500);
break;
case 1 :
_root.main.club_place.s_cost = 1000 + (_root.Club_space[place] * 1000);
break;
case 2 :
_root.main.club_place.s_cost = 200 + (_root.Club_space[place] * 200);
break;
}
_root.main.club_place.s_cost = _root.main.club_place.s_cost + " $";
_root.main.club_place.decor = (_root.Club_decor[place] * 20) + "%";
if (_root.Club_decor[place] == 5) {
_root.main.club_place.u_cost = "-";
} else {
switch (place) {
case 0 :
_root.main.club_place.d_cost = _root.Club_decor[place] * 2000;
break;
case 1 :
_root.main.club_place.d_cost = _root.Club_decor[place] * 3500;
break;
case 2 :
_root.main.club_place.d_cost = _root.Club_decor[place] * 800;
break;
}
_root.main.club_place.d_cost = _root.main.club_place.d_cost + " $";
}
}
function Upgrade_decor(place) {
var need = 0;
switch (place) {
case 0 :
need = _root.Club_decor[place] * 2000;
break;
case 1 :
need = _root.Club_decor[place] * 3500;
break;
case 2 :
need = _root.Club_decor[place] * 800;
break;
}
if ((_root.MONEY >= need) and (_root.Club_decor[place] < 5)) {
_root.MONEY = _root.MONEY - need;
_root.main.pager.mon = _root.MONEY;
_root.Club_decor[place]++;
_root.Club_page(place);
}
}
function Upgrade_space(place) {
var need = 0;
switch (place) {
case 0 :
need = 500 + (_root.Club_space[place] * 500);
break;
case 1 :
need = 1000 + (_root.Club_space[place] * 1000);
break;
case 2 :
need = 200 + (_root.Club_space[place] * 200);
break;
}
if ((_root.MONEY >= need) and (_root.Club_space[place] < 100)) {
_root.MONEY = _root.MONEY - need;
_root.main.pager.mon = _root.MONEY;
_root.Club_space[place]++;
_root.Club_page(place);
}
}
function Play_music(i) {
_root.music[0].stop();
_root.music[1].stop();
_root.music[i - 1].start(0, 100);
}
Girl_Samantha = [0, 2, "Samantha", 100, 50, 0, 1, 0, 1, 0, 0, 0];
Girl_Tara = [1, 3, "Tara", 100, 40, 0, 0, 1, 1, 0, 0, 0];
Girl_Alex = [2, 4, "Alex", 100, 50, 2, 1, 1, 0, 0, 0, 0];
Girl_Crystal = [3, 5, "Crystal", 100, 50, 0, 0, 0, 1, 1, 0, 0];
Girl_Shelly = [4, 6, "Shelly", 100, 50, 5, 1, 0, 0, 1, 0, 0];
Girl_Nicole = [5, 7, "Nicole", 100, 65, 0, 0, 1, 0, 1, 0, 0];
Girl_Katty = [6, 8, "Katty", 100, 55, 0, 0, 0, 1, 1, 0, 0];
Girl_Juliette = [7, 9, "Juliette", 100, 65, 0, 1, 1, 0, 0, 0, 0];
Girls_list = [Girl_Samantha, Girl_Tara, Girl_Alex, Girl_Crystal, Girl_Shelly, Girl_Nicole, Girl_Katty, Girl_Juliette];
Occupation_list = ["Day off", "Forced day off", "Working at Stage", "Working at Private Rooms", "Working at Bar", "Training at Dance School", "Training at Kamasutra School", "Training at Manner School", "Fitness Training"];
DAY = 1;
MONEY = 1000;
Job_app = [0, 1, 2, 3, 4, 5, 6, 7];
Job_app_page_num = 0;
Job_all_page_num = 0;
Job_hired = new Array();
Job_hired_page_num = 0;
Next_day_I = 0;
Club_decor = [1, 1, 1, 5];
Club_space = [1, 0, 1];
Club_space_working = [0, 0, 0];
Reports_by_girl = new Array();
i = 0;
while (i < (Girls_list.length * 6)) {
Reports_by_girl[i] = 0;
i++;
}
Reports_by_place = new Array();
i = 0;
while (i < 18) {
Reports_by_place[i] = 0;
i++;
}
daily_place = [0, 0, 0];
var music = [new Sound(), new Sound()];
music[0].attachSound("Jacobs_Bakery_Remake");
music[1].attachSound("Mysterious");
Frame 3
stop();
Frame 4
stop();
Play_music(1);
Frame 5
stop();
Frame 6
stop();
Symbol 49 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 51 MovieClip Frame 40
stop();
Symbol 77 Button
on (release) {
startMovie();
}
Symbol 78 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var loaded = (_root.getBytesLoaded() / _root.getBytesTotal());
bar._xscale = 100 * loaded;
if (loaded == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop (1);
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var i = 0;
while ((frameAccum >= FRAME_TIME) && (i < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
i++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof(clip[childName]) == "movieclip") {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 83 Button
on (release) {
play();
}
Symbol 107 MovieClip Frame 15
sek._rotation = sek._rotation + 6;
min._rotation = min._rotation + 0.1;
god._rotation = god._rotation + 0.00833;
Symbol 111 Button
on (release) {
tabs.gotoAndStop(2);
}
Symbol 115 Button
on (release) {
tabs.gotoAndStop(3);
}
Symbol 119 Button
on (release) {
tabs.gotoAndStop(4);
}
Symbol 123 Button
on (release) {
_root.DAY++;
_root.Next_day();
}
Symbol 127 Button
on (release) {
gotoAndStop (2);
}
Symbol 130 Button
on (release) {
gotoAndStop (2);
}
Symbol 133 Button
on (release) {
gotoAndStop (3);
}
Symbol 139 Button
on (release) {
gotoAndStop (1);
}
Symbol 142 Button
on (release) {
gotoAndStop (1);
}
Symbol 151 Button
on (release) {
_root.Play_music(10);
}
Symbol 158 Button
on (release) {
_root.Play_music(1);
}
Symbol 165 Button
on (release) {
_root.Play_music(2);
}
Symbol 169 MovieClip Frame 1
stop();
mon = _root.MONEY;
day = _root.DAY;
Symbol 169 MovieClip Frame 2
stop();
mon = _root.MONEY;
day = _root.DAY;
Symbol 169 MovieClip Frame 3
stop();
mon = _root.MONEY;
day = _root.DAY;
Symbol 181 MovieClip Frame 2
stop();
Symbol 181 MovieClip Frame 3
stop();
Symbol 181 MovieClip Frame 4
stop();
Symbol 181 MovieClip Frame 5
stop();
Symbol 181 MovieClip Frame 6
stop();
Symbol 181 MovieClip Frame 7
stop();
Symbol 181 MovieClip Frame 8
stop();
Symbol 181 MovieClip Frame 9
stop();
Symbol 185 Button
on (release) {
gotoAndStop (1);
}
Symbol 188 Button
on (release) {
_root.Job_app_hire(_root.Job_app_page_num);
_root.Job_app_page_num = _root.Job_app_page(0);
}
Symbol 192 Button
on (release) {
if (_root.Job_app_page_num > 0) {
_root.Job_app_page_num = _root.Job_app_page(_root.Job_app_page_num - 1);
}
}
Symbol 194 Button
on (release) {
if (_root.Job_app_page_num < (_root.Job_app.length - 1)) {
_root.Job_app_page_num = _root.Job_app_page(_root.Job_app_page_num + 1);
}
}
Symbol 217 Button
on (release) {
table.gotoAndStop(1);
}
Symbol 219 Button
on (release) {
table.gotoAndStop(2);
}
Symbol 241 MovieClip Frame 1
stop();
_root.Report_page_by_girl();
Symbol 241 MovieClip Frame 2
stop();
_root.Report_page_by_place();
Symbol 242 Button
on (release) {
if (_root.Job_all_page_num > 0) {
_root.Job_all_page_num = _root.Job_all_page(_root.Job_all_page_num - 1);
}
}
Symbol 243 Button
on (release) {
if (_root.Job_all_page_num < (Math.ceil(_root.Job_hired.length / 4) - 1)) {
_root.Job_all_page_num = _root.Job_all_page(_root.Job_all_page_num + 1);
}
}
Symbol 245 Button
on (release) {
_root.Job_all_page_num = 0;
gotoAndStop (1);
}
Symbol 273 Button
on (release) {
if (_root.Job_hired.length > ((Job_all_page_num * 4) + 0)) {
_root.Job_hired_page_num = (_root.Job_all_page_num * 4) + 0;
gotoAndStop (5);
}
}
Symbol 274 Button
on (release) {
if (_root.Job_hired.length > ((Job_all_page_num * 4) + 1)) {
_root.Job_hired_page_num = (_root.Job_all_page_num * 4) + 1;
gotoAndStop (5);
}
}
Symbol 275 Button
on (release) {
if (_root.Job_hired.length > ((Job_all_page_num * 4) + 2)) {
_root.Job_hired_page_num = (_root.Job_all_page_num * 4) + 2;
gotoAndStop (5);
}
}
Symbol 276 Button
on (release) {
if (_root.Job_hired.length > ((Job_all_page_num * 4) + 3)) {
_root.Job_hired_page_num = (_root.Job_all_page_num * 4) + 3;
gotoAndStop (5);
}
}
Symbol 278 Button
on (release) {
gotoAndStop (4);
}
Symbol 279 Button
on (release) {
if (_root.Job_hired_page_num > 0) {
_root.Job_hired_page_num = _root.Job_hired_page(_root.Job_hired_page_num - 1);
}
}
Symbol 280 Button
on (release) {
if (_root.Job_hired_page_num < (_root.Job_hired.length - 1)) {
_root.Job_hired_page_num = _root.Job_hired_page(_root.Job_hired_page_num + 1);
}
}
Symbol 285 Button
on (release) {
send_to_training.gotoAndStop(2);
}
Symbol 287 Button
on (release) {
send_to_work.gotoAndStop(2);
}
Symbol 289 Button
on (release) {
_root.Change_occupation(_root.Job_hired_page_num, 0);
}
Symbol 303 Button
on (release) {
_root.Change_occupation(_root.Job_hired_page_num, 6);
prevFrame();
}
Symbol 305 Button
on (release) {
_root.Change_occupation(_root.Job_hired_page_num, 7);
prevFrame();
}
Symbol 309 Button
on (release) {
_root.Change_occupation(_root.Job_hired_page_num, 5);
prevFrame();
}
Symbol 311 Button
on (release) {
_root.Change_occupation(_root.Job_hired_page_num, 8);
prevFrame();
}
Symbol 315 Button
on (release) {
prevFrame();
}
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
stop();
Symbol 318 Button
on (release) {
_root.Change_occupation(_root.Job_hired_page_num, 4);
prevFrame();
}
Symbol 320 Button
on (release) {
_root.Change_occupation(_root.Job_hired_page_num, 2);
prevFrame();
}
Symbol 322 Button
on (release) {
_root.Change_occupation(_root.Job_hired_page_num, 3);
prevFrame();
}
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 2
stop();
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 2
_root.Job_app_page_num = _root.Job_app_page(0);
stop();
Symbol 324 MovieClip Frame 3
stop();
Symbol 324 MovieClip Frame 4
_root.Job_all_page_num = _root.Job_all_page(_root.Job_all_page_num);
stop();
Symbol 324 MovieClip Frame 5
_root.Job_hired_page_num = _root.Job_hired_page(_root.Job_hired_page_num);
stop();
Symbol 329 Button
on (release) {
club_place.gotoAndStop(2);
}
Symbol 333 Button
on (release) {
club_place.gotoAndStop(3);
}
Symbol 337 Button
on (release) {
club_place.gotoAndStop(4);
}
Symbol 338 Button
on (release) {
gotoAndStop (1);
}
Symbol 353 Button
on (release) {
_root.Upgrade_space(0);
}
Symbol 354 Button
on (release) {
gotoAndStop (1);
}
Symbol 355 Button
on (release) {
_root.Upgrade_decor(0);
}
Symbol 363 Button
on (release) {
_root.Upgrade_space(1);
}
Symbol 364 Button
on (release) {
_root.Upgrade_decor(1);
}
Symbol 372 Button
on (release) {
_root.Upgrade_space(2);
}
Symbol 373 Button
on (release) {
_root.Upgrade_decor(2);
}
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
stop();
_root.Club_page(0);
Symbol 374 MovieClip Frame 3
stop();
_root.Club_page(1);
Symbol 374 MovieClip Frame 4
stop();
_root.Club_page(2);
Symbol 383 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 2
stop();
Symbol 383 MovieClip Frame 3
stop();
Symbol 383 MovieClip Frame 4
stop();
Symbol 383 MovieClip Frame 5
stop();
Symbol 383 MovieClip Frame 6
stop();
Symbol 383 MovieClip Frame 7
stop();
Symbol 383 MovieClip Frame 8
stop();
Symbol 383 MovieClip Frame 9
stop();
Symbol 389 Button
on (release) {
_root.Next_day_I++;
_root.Next_day();
}
Symbol 391 Button
on (release) {
_root.Next_day_I = 0;
i = 0;
while (i < 3) {
_root.Report_earnings_to_array_place(i, _root.daily_place[i]);
_root.daily_place[i] = 0;
i++;
}
_root.main.gotoAndStop(1);
}
Symbol 392 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 2
stop();
Symbol 393 MovieClip Frame 1
stop();
clock._y = -250;
Symbol 393 MovieClip Frame 2
stop();
clock._y = -380;
Symbol 393 MovieClip Frame 3
stop();
clock._y = -380;