STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/76810645?noj=FRM76810645-22DC" width="1" height="1"></div>

dailylife.swf

This is the info page for
Flash #45114

(Click the ID number above for more basic data on this flash file.)


Text
Play Games

<p align="center"><font face="Trebuchet MS" size="15" color="#000000" letterSpacing="0.000000" kerning="1">name</font></p>

<p align="center"><font face="Trebuchet MS" size="15" color="#000000" letterSpacing="0.000000" kerning="1">name</font></p>

<p align="center"><font face="Trebuchet MS" size="15" color="#000000" letterSpacing="0.000000" kerning="1">name</font></p>

<p align="center"><font face="Trebuchet MS" size="15" color="#000000" letterSpacing="0.000000" kerning="1">name</font></p>

BRAG

FLIRT

KISS

TALK

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

FRIEND

GOOD FRIEND

BOY/GIRLFRIEND

EXIT CHAT

<p align="left"><font face="Comic Sans MS" size="27" color="#000000" letterSpacing="0.000000" kerning="1"><b>Im Hungry !</b></font></p>

<p align="left"><font face="Comic Sans MS" size="27" color="#000000" letterSpacing="0.000000" kerning="1"><b>Im Starving!!!</b></font></p>

<p align="left"><font face="Comic Sans MS" size="27" color="#000000" letterSpacing="0.000000" kerning="1"><b>Im Sleepy !</b></font></p>

<p align="left"><font face="Comic Sans MS" size="27" color="#000000" letterSpacing="0.000000" kerning="1"><b>Im So Sleepy !!</b></font></p>

<p align="left"><font face="Comic Sans MS" size="27" color="#000000" letterSpacing="0.000000" kerning="1"><b>Im So Sleepy !!</b></font></p>

menu

high scores

Your Name:

submit

Your Score:

999,999,999

play more
games

<p align="center"></p>

<p align="left"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>Food Name</b></font></p>

<p align="left"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>Price</b></font></p>

<p align="center"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>|</b></font></p>

OK

Nope

<p align="center"></p>

<p align="center"></p>

CLOSE

NEXT

PREV

Welcome
Welcome to Daily life. It is just like
your daily life, where you work, you
eat, you sleep, go to school , hang out
and many other things you do.

Goals
You got to have a goal in your life,
click the objective button to see your
goals.

Balance
The key is balance and routine, where
you have to take breakfast, lunch and
dinner, and sleep at least 6 hours in
the night. because if not, you can get
sick and missed many things in life.

To find a friend you need to click on
people you meet, talk to them and
see how other things you do affect
your relationships with them, by the
way after you talk to friends you can
send then SMS messages and meet
them.

MESSAGE TO :

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

MEET ME AT :

MALL

HOSPITAL

CAMPUS

FAST FOOD

OFFICE

BANK

THEATRE

NIGHT CLUB

MY APARTMENT

FACTORY

MESSAGE SENT
Press Red Button To Close

<p align="center"><font face="Trebuchet MS" size="16" color="#666666" letterSpacing="0.000000" kerning="1">0 %</font></p>

LOADING

play

high score

high score

add this game
to your site

<p align="center"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>build 0.8.4</b></font></p>

version 1.13

credits

back

play game

<p align="center"></p>

office

university

fastfood

bank

lux apartment

theatre

nightclub

factory

home

mall

hospital

status

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">day</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">$money$</font></p>

My Task

objectives

<p align="center"></p>

happiness

knowledge

career

wealth

my status

<p align="center"></p>

score

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

Relationship Status

menu

Producer . . . . . . . . . . . . . . . . . . . . . . . . .
Project Lead . . . . . . . . . . . . . . . . . . . . . .
Game Design . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
Level Design  . . . . . . . . . . . . . . . . . . . . .
Programmers . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
Artist . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Tester . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sound Effect & Music. . . . . . . . . . . . . . .
Produced By  . . . . . . . . . . . . . . . . . . . . .

Oren Sofrin
Erwin PS
Hari Akung
Witanto
Erwin PS
Anton Botsq
Willy W
Erwin PS
Poppy
Anton Botsq
Imron Fals
Net-Games

LEVEL 1

Fresh Graduated

Knowledge :

Money :

Career :

Wealth :

Happiness :

Day to finish :

Position :

Education :

Goods :

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="center"></p>

<p align="right"><font face="Trebuchet MS" size="18" color="#6b6c72" letterSpacing="0.000000" kerning="1"><b>Relation 1 :</b></font></p>

<p align="left"></p>

<p align="right"><font face="Trebuchet MS" size="18" color="#6b6c72" letterSpacing="0.000000" kerning="1"><b>Relation 2 :</b></font></p>

<p align="left"></p>

Your Objectives

LEVEL 2

Lets Cook Something

LEVEL 3

Go to Office

LEVEL 4

Factory Engineer

LEVEL 5

Work in University

LEVEL 6

Become  a Supervisor

LEVEL 7

Helping People

LEVEL 8

The University Chairman

LEVEL 9

The General Manager

LEVEL 10

Last hope

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

sleep/rest

city map

back

rent/pay

my room

buy meal

work

job apply

eat

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">$ gained</font></p>

work

apply

<p align="left"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>Job Position</b></font></p>

<p align="left"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>Requirement</b></font></p>

<p align="center"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>|</b></font></p>

<p align="center"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>|</b></font></p>

<p align="left"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>Salary</b></font></p>

go shoping

buy

<p align="left"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>Goods name</b></font></p>

<p align="left"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>Price</b></font></p>

<p align="center"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>|</b></font></p>

<p align="left"></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">$ gained</font></p>

<p align="center"><font face="Trebuchet MS" size="30" color="#666666" letterSpacing="0.000000" kerning="1"><b>bill</b></font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">$ gained</font></p>

enroll

study

work

enroll

<p align="left"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>Faculty</b></font></p>

<p align="left"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>Study Program</b></font></p>

<p align="center"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>|</b></font></p>

<p align="center"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>|</b></font></p>

<p align="left"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>Fee</b></font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">hour</font></p>

study

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

<p align="center"><font face="Trebuchet MS" size="21" color="#cc6633" letterSpacing="0.000000" kerning="1">Time</font></p>

<p align="center"><font face="Trebuchet MS" size="21" color="#cc6633" letterSpacing="0.000000" kerning="1">Study Time</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">hour</font></p>

<p align="center"><font face="Trebuchet MS" size="21" color="#cc6633" letterSpacing="0.000000" kerning="1">Time Left</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">$ gained</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">$ gained</font></p>

bank service

transact

<p align="left"><font face="Trebuchet MS" size="24" color="#333333" letterSpacing="0.000000" kerning="1"><b>Service</b></font></p>

<p align="left"></p>

Savings =

<p align="left"></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">$ gained</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

watch movie

buy popcorn 5$

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

go inside

get drunk

relax

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">clock</font></p>

<p align="center"><font face="Trebuchet MS" size="22" color="#cc6633" letterSpacing="0.000000" kerning="1">$ gained</font></p>

submit score

main menu

<p align="center"></p>

play more
games

next level

YOUR SCORE IS :

restart level

<p align="center"><font face="Trebuchet MS" size="61" color="#996633" letterSpacing="0.000000" kerning="1"><b>GAME OVER</b></font></p>

<p align="center"><font face="Trebuchet MS" size="36" color="#996633" letterSpacing="0.000000" kerning="1"><b>MISSION ACCOMPLISHED !!!</b></font></p>

<p align="center"><font face="Trebuchet MS" size="36" color="#996633" letterSpacing="0.000000" kerning="1"><b>YOU WIN !!!</b></font></p>

<p align="center"><font face="Trebuchet MS" size="13" color="#996633" letterSpacing="0.000000" kerning="1"><b>YOU HAVE ACHIEVED MAXIMUM HAPPINESS</b></font></p>

Thank you for playing DAILY LIFE!

play again

<p align="right"></p>

<p align="right"></p>

<p align="right"></p>

<p align="right"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

ActionScript [AS3]

Section 1
//CBankJobScreen (com.jayz.dailylife.bank.CBankJobScreen) package com.jayz.dailylife.bank { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CBankJobScreen extends CScreen { var gs:CGameSession; var mcJobItem:Array; public var bt_applyjobbank:SimpleButton; public var bt_backjobbank:SimpleButton; public var jobList:Array; public function CBankJobScreen(){ gs = CGameSession.getInstance(); jobList = new Array(); mcJobItem = new Array(); super(); } override public function init(){ initJobList(); setButtonListeners(); gs.setDayNight(this); } public function clickbackworkbank(_arg1:Event){ var _local2:int; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ mcJobItem[_local2].bg.alpha = 0; break; }; _local2++; }; this.nextScreenName = "bankscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function klik3(_arg1:Event){ var _local2:int; if (mcJobItem[3].textJobTitle.textColor != 0x999999){ mcJobItem[3].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 3){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik1(_arg1:Event){ var _local2:int; if (mcJobItem[1].textJobTitle.textColor != 0x999999){ mcJobItem[1].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 1){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik6(_arg1:Event){ var _local2:int; if (mcJobItem[6].textJobTitle.textColor != 0x999999){ mcJobItem[6].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 6){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } public function clickworkbank(_arg1:Event){ var _local2:int; trace("diterima kerja di bank"); _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ gs.currentJob = jobList[_local2]; gs.career = jobList[_local2].careerPoint; mcJobItem[_local2].bg.alpha = 0; break; }; _local2++; }; clickbackworkbank(_arg1); trace(((gs.currentJob.position + " ") + String(gs.career))); } private function klik2(_arg1:Event){ var _local2:int; if (mcJobItem[2].textJobTitle.textColor != 0x999999){ mcJobItem[2].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 2){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } public function setButtonListeners(){ bt_applyjobbank.addEventListener(MouseEvent.CLICK, clickworkbank); bt_backjobbank.addEventListener(MouseEvent.CLICK, clickbackworkbank); addEventListener(Event.ENTER_FRAME, funcEnterFrame); } private function klik4(_arg1:Event){ var _local2:int; if (mcJobItem[4].textJobTitle.textColor != 0x999999){ mcJobItem[4].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 4){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik5(_arg1:Event){ var _local2:int; if (mcJobItem[5].textJobTitle.textColor != 0x999999){ mcJobItem[5].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 5){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function funcEnterFrame(_arg1:Event){ var _local2:int; bt_applyjobbank.visible = false; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ bt_applyjobbank.visible = true; }; _local2++; }; } private function klik0(_arg1:Event){ var _local2:int; if (mcJobItem[0].textJobTitle.textColor != 0x999999){ mcJobItem[0].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 0){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function initJobList(){ var _local1:int; var _local2:int; var _local3:int; trace("init job list"); jobList[0] = new CJob("bank", "janitor", 7, "", new Array("NA"), 0, 500); jobList[1] = new CJob("bank", "clerk", 12, "min. 20 wh + diploma in EF", new Array("EF1"), 20, 1000); jobList[2] = new CJob("bank", "teller", 13, "min. 40 wh + bachelor in EF", new Array("EF2"), 40, 1500); jobList[3] = new CJob("bank", "supervisor", 18, "min. 100 wh + bachelor in EF", new Array("EF2"), 100, 2000); jobList[4] = new CJob("bank", "department head", 21, "min. 160 wh + master in EF", new Array("EF3"), 160, 3000); jobList[5] = new CJob("bank", "bank manager", 30, "min. 220 wh + master in EF", new Array("EF3"), 220, 4000); jobList[6] = new CJob("bank", "director", 40, "min. 295 wh + master in EF", new Array("EF3"), 295, 5000); _local1 = 0; while (_local1 < jobList.length) { mcJobItem[_local1] = new CJobItem2(); mcJobItem[_local1].textJobTitle.text = jobList[_local1].position; mcJobItem[_local1].textJobReq.text = jobList[_local1].requirement; mcJobItem[_local1].textSalary.text = (("$" + String(jobList[_local1].salary)) + "/hour"); _local2 = 0; _local3 = 0; while (_local3 < jobList[_local1].academic.length) { trace(String(gs.currentWorkHour.workHour[jobList[_local1].place])); trace(String(gs.currentGelar.gelar[jobList[_local1].academic[_local3]])); if ((((gs.currentWorkHour.workHour[jobList[_local1].place] >= jobList[_local1].workHour)) && ((gs.currentGelar.gelar[jobList[_local1].academic[_local3]] == true)))){ _local2++; }; if (_local2 <= 0){ mcJobItem[_local1].textJobTitle.textColor = 0x999999; mcJobItem[_local1].textJobReq.textColor = 0x999999; mcJobItem[_local1].textSalary.textColor = 0x999999; } else { mcJobItem[_local1].textJobTitle.textColor = 0; mcJobItem[_local1].textJobReq.textColor = 0; mcJobItem[_local1].textSalary.textColor = 0; }; _local3++; }; mcJobItem[_local1].scaleY = 0.75; mcJobItem[_local1].x = 33; mcJobItem[_local1].y = (60 + (25 * _local1)); mcJobItem[_local1].bg.alpha = 0; addChild(mcJobItem[_local1]); _local1++; }; mcJobItem[0].addEventListener(MouseEvent.CLICK, klik0); mcJobItem[1].addEventListener(MouseEvent.CLICK, klik1); mcJobItem[2].addEventListener(MouseEvent.CLICK, klik2); mcJobItem[3].addEventListener(MouseEvent.CLICK, klik3); mcJobItem[4].addEventListener(MouseEvent.CLICK, klik4); mcJobItem[5].addEventListener(MouseEvent.CLICK, klik5); mcJobItem[6].addEventListener(MouseEvent.CLICK, klik6); } override public function destroy(){ mcJobItem[0].removeEventListener(MouseEvent.CLICK, klik0); mcJobItem[1].removeEventListener(MouseEvent.CLICK, klik1); mcJobItem[2].removeEventListener(MouseEvent.CLICK, klik2); mcJobItem[3].removeEventListener(MouseEvent.CLICK, klik3); mcJobItem[4].removeEventListener(MouseEvent.CLICK, klik4); mcJobItem[5].removeEventListener(MouseEvent.CLICK, klik5); mcJobItem[6].removeEventListener(MouseEvent.CLICK, klik6); bt_applyjobbank.removeEventListener(MouseEvent.CLICK, clickworkbank); bt_backjobbank.removeEventListener(MouseEvent.CLICK, clickbackworkbank); removeEventListener(Event.ENTER_FRAME, funcEnterFrame); } } }//package com.jayz.dailylife.bank
Section 2
//CBankScreen (com.jayz.dailylife.bank.CBankScreen) package com.jayz.dailylife.bank { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CBankScreen extends CScreen { var gs:CGameSession; public var myAvatar:CAvatar; public var bt_bankback:SimpleButton; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; var ss:CSound; public var bt_bankwork:SimpleButton; public var person3:MovieClip; public var bt_bankservice:SimpleButton; public var bt_bankjobapply:SimpleButton; var inf:CMcInfoText; public function CBankScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); inf = new CMcInfoText(); super(); } override public function init(){ var _local1:int; info(); _local1 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKerjaBank, gs.akhirJamKerjaBank)){ bt_bankservice.visible = true; bt_bankwork.visible = true; bt_bankjobapply.visible = true; } else { bt_bankservice.visible = false; bt_bankwork.visible = false; bt_bankjobapply.visible = false; }; if ((((gs.currentJob.place == "bank")) && (gs.currentTime.isInRange(gs.awalJamKerjaBank, gs.akhirJamKerjaBank)))){ bt_bankwork.visible = true; } else { bt_bankwork.visible = false; }; gs.currentTime.hari = _local1; setButtonListeners(); ss.playSound(CSound.bg_building); gs.setPersons(this); gs.setDayNight(this); } public function setButtonListeners(){ bt_bankservice.addEventListener(MouseEvent.CLICK, clickbankservice); bt_bankwork.addEventListener(MouseEvent.CLICK, clickbankwork); bt_bankjobapply.addEventListener(MouseEvent.CLICK, clickbankjobapply); bt_bankback.addEventListener(MouseEvent.CLICK, clickbankback); } public function clickbankservice(_arg1:Event){ this.nextScreenName = "bankservicescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickbankjobapply(_arg1:Event){ this.nextScreenName = "bankjobscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function info(){ inf.judul.text = "Bank"; inf.line1.text = ((("open: " + String(gs.awalJamKerjaBank.jam)) + " - ") + String(gs.akhirJamKerjaBank.jam)); if (gs.currentJob.place == "bank"){ inf.line2.text = ("you worked here as " + gs.currentJob.position); } else { inf.line2.text = ""; }; this.addChild(inf); } public function clickbankback(_arg1:Event){ ss.stopSound(CSound.bg_building); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickbankwork(_arg1:Event){ this.nextScreenName = "bankworkscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_bankservice.removeEventListener(MouseEvent.CLICK, clickbankservice); bt_bankwork.removeEventListener(MouseEvent.CLICK, clickbankwork); bt_bankjobapply.removeEventListener(MouseEvent.CLICK, clickbankjobapply); bt_bankback.removeEventListener(MouseEvent.CLICK, clickbankback); } } }//package com.jayz.dailylife.bank
Section 3
//CBankServiceScreen (com.jayz.dailylife.bank.CBankServiceScreen) package com.jayz.dailylife.bank { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CBankServiceScreen extends CScreen { var gs:CGameSession; private var pt:CPopText; public var bt_payservice:SimpleButton; public var bt_backservicebank:SimpleButton; var ss:CSound; public var textSaving:TextField; private var ptTimer:Timer; var mcServ:Array; public function CBankServiceScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); mcServ = new Array(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } override public function init(){ textSaving.text = ("$" + String(gs.saving)); initServiceList(); setButtonListeners(); gs.setDayNight(this); } private function klik3(_arg1:Event){ var _local2:int; if (mcServ[3].textName.textColor == 0){ mcServ[3].bg.alpha = 0.5; _local2 = 0; while (_local2 < gs.serviceList.length) { if (_local2 != 3){ mcServ[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik1(_arg1:Event){ var _local2:int; if (mcServ[1].textName.textColor == 0){ mcServ[1].bg.alpha = 0.5; _local2 = 0; while (_local2 < gs.serviceList.length) { if (_local2 != 1){ mcServ[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik6(_arg1:Event){ var _local2:int; if (mcServ[6].textName.textColor == 0){ mcServ[6].bg.alpha = 0.5; _local2 = 0; while (_local2 < gs.serviceList.length) { if (_local2 != 6){ mcServ[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik2(_arg1:Event){ var _local2:int; if (mcServ[2].textName.textColor == 0){ mcServ[2].bg.alpha = 0.5; _local2 = 0; while (_local2 < gs.serviceList.length) { if (_local2 != 2){ mcServ[_local2].bg.alpha = 0; }; _local2++; }; }; } public function setButtonListeners(){ bt_payservice.addEventListener(MouseEvent.CLICK, clickpayservice); bt_backservicebank.addEventListener(MouseEvent.CLICK, clickbackservicebank); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); } private function klik4(_arg1:Event){ var _local2:int; if (mcServ[4].textName.textColor == 0){ mcServ[4].bg.alpha = 0.5; _local2 = 0; while (_local2 < gs.serviceList.length) { if (_local2 != 4){ mcServ[_local2].bg.alpha = 0; }; _local2++; }; }; } public function clickpayservice(_arg1:Event){ var _local2:int; if (pt.isShown){ return; }; ss.playSound(CSound.fx_transaction); _local2 = 0; while (_local2 < gs.serviceList.length) { if (mcServ[_local2].bg.alpha == 0.5){ if (_local2 == 0){ gs.serviceList[_local2].haveIt = true; gs.money = (gs.money - gs.serviceList[_local2].money); } else { if ((((_local2 >= 1)) && ((_local2 <= 3)))){ gs.money = (gs.money - gs.serviceList[_local2].money); gs.saving = (gs.saving + gs.serviceList[_local2].money); } else { if ((((_local2 >= 4)) && ((_local2 <= 6)))){ gs.money = (gs.money + gs.serviceList[_local2].money); gs.saving = (gs.saving - gs.serviceList[_local2].money); }; }; }; mcServ[_local2].bg.alpha = 0; break; }; _local2++; }; gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiTransaksi); gs.rentHomeStatusUpdate(gs.lamaSesiKerja); gs.eatStatusUpdate(); if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.start(); }; if (pt.isShown){ return; }; clickbackservicebank(_arg1); } private function klik5(_arg1:Event){ var _local2:int; if (mcServ[5].textName.textColor == 0){ mcServ[5].bg.alpha = 0.5; _local2 = 0; while (_local2 < gs.serviceList.length) { if (_local2 != 5){ mcServ[_local2].bg.alpha = 0; }; _local2++; }; }; } public function clickbackservicebank(_arg1:Event){ if (pt.isShown){ return; }; this.nextScreenName = "bankscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function klik0(_arg1:Event){ var _local2:int; if (mcServ[0].textName.textColor == 0){ mcServ[0].bg.alpha = 0.5; _local2 = 0; while (_local2 < gs.serviceList.length) { if (_local2 != 0){ mcServ[_local2].bg.alpha = 0; }; _local2++; }; }; } private function theEnd(_arg1:Event){ pt.isShown = false; this.removeChild(pt.popTx); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function initServiceList(){ var _local1:int; _local1 = 0; while (_local1 < gs.serviceList.length) { mcServ[_local1] = new CMcService(); mcServ[_local1].textName.text = gs.serviceList[_local1].name; mcServ[_local1].scaleY = 0.75; mcServ[_local1].x = 33; mcServ[_local1].y = (60 + (25 * _local1)); mcServ[_local1].bg.alpha = 0; addChild(mcServ[_local1]); _local1++; }; if ((((gs.money >= gs.serviceList[0].money)) && (!(gs.serviceList[0].haveIt)))){ mcServ[0].textName.textColor = 0; mcServ[0].textExp.text = ""; mcServ[0].textExp.textColor = 0; } else { mcServ[0].textName.textColor = 0x999999; mcServ[0].textExp.text = "you already have an account"; mcServ[0].textExp.textColor = 0x999999; }; _local1 = 1; while (_local1 <= 3) { if (((gs.serviceList[0].haveIt) && ((gs.money >= gs.serviceList[_local1].money)))){ mcServ[_local1].textName.textColor = 0; } else { mcServ[_local1].textName.textColor = 0x999999; }; _local1++; }; _local1 = 4; while (_local1 <= 6) { if (gs.saving >= gs.serviceList[_local1].money){ mcServ[_local1].textName.textColor = 0; } else { mcServ[_local1].textName.textColor = 0x999999; }; _local1++; }; mcServ[0].addEventListener(MouseEvent.CLICK, klik0); mcServ[1].addEventListener(MouseEvent.CLICK, klik1); mcServ[2].addEventListener(MouseEvent.CLICK, klik2); mcServ[3].addEventListener(MouseEvent.CLICK, klik3); mcServ[4].addEventListener(MouseEvent.CLICK, klik4); mcServ[5].addEventListener(MouseEvent.CLICK, klik5); mcServ[6].addEventListener(MouseEvent.CLICK, klik6); } override public function destroy(){ mcServ[0].removeEventListener(MouseEvent.CLICK, klik0); mcServ[1].removeEventListener(MouseEvent.CLICK, klik1); mcServ[2].removeEventListener(MouseEvent.CLICK, klik2); mcServ[3].removeEventListener(MouseEvent.CLICK, klik3); mcServ[4].removeEventListener(MouseEvent.CLICK, klik4); mcServ[5].removeEventListener(MouseEvent.CLICK, klik5); mcServ[6].removeEventListener(MouseEvent.CLICK, klik6); bt_payservice.removeEventListener(MouseEvent.CLICK, clickpayservice); bt_backservicebank.removeEventListener(MouseEvent.CLICK, clickbackservicebank); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); } } }//package com.jayz.dailylife.bank
Section 4
//CBankWorkScreen (com.jayz.dailylife.bank.CBankWorkScreen) package com.jayz.dailylife.bank { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CBankWorkScreen extends CScreen { var gs:CGameSession; public var tx_moneygained:TextField; public var bt_workbank:SimpleButton; private var pt:CPopText; public var myAvatar:CAvatar; public var person1:MovieClip; public var person2:MovieClip; public var bt_backworkbank:SimpleButton; public var person4:MovieClip; var ss:CSound; public var tx_clock:TextField; private var ptTimer:Timer; public var person3:MovieClip; public function CBankWorkScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } override public function init(){ var _local1:int; _local1 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKerjaBank, gs.akhirJamKerjaBank)){ if (gs.currentJob.place != "bank"){ bt_workbank.visible = false; } else { bt_workbank.visible = true; }; } else { bt_workbank.visible = false; }; gs.currentTime.hari = _local1; tx_clock.text = gs.currentTime.toString(); tx_moneygained.text = String(gs.money); setButtonListeners(); gs.setPersons(this); gs.setDayNight(this); } public function clickbackworkbank(_arg1:Event){ if (pt.isShown){ return; }; this.nextScreenName = "bankscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function setButtonListeners(){ bt_workbank.addEventListener(MouseEvent.CLICK, clickworkbank); bt_backworkbank.addEventListener(MouseEvent.CLICK, clickbackworkbank); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); } public function clickworkbank(_arg1:Event){ var _local2:int; if (pt.isShown){ return; }; trace("kerja di bank"); ss.playSound(CSound.fx_work); gs.money = (gs.money + gs.currentJob.salary); gs.currentWorkHour.workHour[gs.currentJob.place] = (gs.currentWorkHour.workHour[gs.currentJob.place] + 1); tx_moneygained.text = String(gs.money); gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiKerja); tx_clock.text = gs.currentTime.toString(); gs.rentHomeStatusUpdate(gs.lamaSesiKerja); gs.eatStatusUpdate(); _local2 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKerjaBank, gs.akhirJamKerjaBank)){ if (gs.currentJob.place != "bank"){ bt_workbank.visible = false; } else { bt_workbank.visible = true; }; } else { bt_workbank.visible = false; }; gs.currentTime.hari = _local2; if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.start(); }; } private function theEnd(_arg1:Event){ ss.stopSound(CSound.bg_building); pt.isShown = false; this.removeChild(pt.popTx); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_workbank.removeEventListener(MouseEvent.CLICK, clickworkbank); bt_backworkbank.removeEventListener(MouseEvent.CLICK, clickbackworkbank); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); } } }//package com.jayz.dailylife.bank
Section 5
//CFactoryJobScreen (com.jayz.dailylife.factory.CFactoryJobScreen) package com.jayz.dailylife.factory { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CFactoryJobScreen extends CScreen { var gs:CGameSession; var mcJobItem:Array; public var bt_applyjoblistfac:SimpleButton; public var bt_backjobfactory:SimpleButton; public var jobList:Array; public function CFactoryJobScreen(){ gs = CGameSession.getInstance(); jobList = new Array(); mcJobItem = new Array(); super(); } override public function init(){ initJobList(); setButtonListeners(); gs.setDayNight(this); } private function klik3(_arg1:Event){ var _local2:int; if (mcJobItem[3].textJobTitle.textColor != 0x999999){ mcJobItem[3].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 3){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik7(_arg1:Event){ var _local2:int; if (mcJobItem[7].textJobTitle.textColor != 0x999999){ mcJobItem[7].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 7){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } public function clickbackjobfactory(_arg1:Event){ var _local2:int; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ mcJobItem[_local2].bg.alpha = 0; break; }; _local2++; }; this.nextScreenName = "factoryscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function klik6(_arg1:Event){ var _local2:int; if (mcJobItem[6].textJobTitle.textColor != 0x999999){ mcJobItem[6].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 6){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik8(_arg1:Event){ var _local2:int; if (mcJobItem[8].textJobTitle.textColor != 0x999999){ mcJobItem[8].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 8){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik2(_arg1:Event){ var _local2:int; if (mcJobItem[2].textJobTitle.textColor != 0x999999){ mcJobItem[2].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 2){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik9(_arg1:Event){ var _local2:int; if (mcJobItem[9].textJobTitle.textColor != 0x999999){ mcJobItem[9].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 9){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik4(_arg1:Event){ var _local2:int; if (mcJobItem[4].textJobTitle.textColor != 0x999999){ mcJobItem[4].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 4){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik5(_arg1:Event){ var _local2:int; if (mcJobItem[5].textJobTitle.textColor != 0x999999){ mcJobItem[5].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 5){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function funcEnterFrame(_arg1:Event){ var _local2:int; bt_applyjoblistfac.visible = false; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ bt_applyjoblistfac.visible = true; }; _local2++; }; } private function klik0(_arg1:Event){ var _local2:int; if (mcJobItem[0].textJobTitle.textColor != 0x999999){ mcJobItem[0].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 0){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik10(_arg1:Event){ var _local2:int; if (mcJobItem[10].textJobTitle.textColor != 0x999999){ mcJobItem[10].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 10){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik1(_arg1:Event){ var _local2:int; if (mcJobItem[1].textJobTitle.textColor != 0x999999){ mcJobItem[1].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 1){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } public function clickapplyjoblistfac(_arg1:Event){ var _local2:int; trace("diterima kerja di pabrik"); _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ gs.currentJob = jobList[_local2]; gs.career = jobList[_local2].careerPoint; mcJobItem[_local2].bg.alpha = 0; break; }; _local2++; }; clickbackjobfactory(_arg1); trace(((gs.currentJob.position + " ") + String(gs.career))); } public function setButtonListeners(){ bt_applyjoblistfac.addEventListener(MouseEvent.CLICK, clickapplyjoblistfac); bt_backjobfactory.addEventListener(MouseEvent.CLICK, clickbackjobfactory); addEventListener(Event.ENTER_FRAME, funcEnterFrame); } private function initJobList(){ var _local1:int; var _local2:int; var _local3:int; jobList[0] = new CJob("factory", "janitor", 7, "", new Array("NA"), 0, 500); jobList[1] = new CJob("factory", "administration officer", 11, "min. 25 wh + diploma in EF", new Array("EF1"), 25, 1000); jobList[2] = new CJob("factory", "engineer", 17, "min. 25 wh + diploma in ENG", new Array("ENG1"), 25, 1500); jobList[3] = new CJob("factory", "supervisor", 20, "min. 35 wh + bachelor in ENG", new Array("ENG2"), 35, 2000); jobList[4] = new CJob("factory", "junior accounting", 12, "min. 35 wh + diploma in acc", new Array("acc1"), 35, 1500); jobList[5] = new CJob("factory", "accounting", 16, "min. 50 wh + bachelor in acc", new Array("acc2"), 50, 2000); jobList[6] = new CJob("factory", "accounting manager", 24, "min. 60 wh + master in acc", new Array("acc3"), 60, 2500); jobList[7] = new CJob("factory", "head of departement", 26, "min. 50 wh + master in ENG", new Array("ENG3"), 50, 2500); jobList[8] = new CJob("factory", "manager", 30, "min. 100 wh + master in ENG", new Array("ENG3"), 100, 3000); jobList[9] = new CJob("factory", "general manager", 34, "min. 150 wh + master in ENG", new Array("ENG3"), 150, 4000); jobList[10] = new CJob("factory", "director", 38, "min. 225 wh + master in ENG", new Array("ENG3"), 210, 5000); _local1 = 0; while (_local1 < jobList.length) { mcJobItem[_local1] = new CJobItem2(); mcJobItem[_local1].textJobTitle.text = jobList[_local1].position; mcJobItem[_local1].textJobReq.text = jobList[_local1].requirement; mcJobItem[_local1].textSalary.text = (("$" + String(jobList[_local1].salary)) + "/hour"); _local2 = 0; _local3 = 0; while (_local3 < jobList[_local1].academic.length) { if ((((gs.currentWorkHour.workHour[jobList[_local1].place] >= jobList[_local1].workHour)) && ((gs.currentGelar.gelar[jobList[_local1].academic[_local3]] == true)))){ _local2++; }; if (_local2 <= 0){ mcJobItem[_local1].textJobTitle.textColor = 0x999999; mcJobItem[_local1].textJobReq.textColor = 0x999999; mcJobItem[_local1].textSalary.textColor = 0x999999; } else { mcJobItem[_local1].textJobTitle.textColor = 0; mcJobItem[_local1].textJobReq.textColor = 0; mcJobItem[_local1].textSalary.textColor = 0; }; _local3++; }; mcJobItem[_local1].scaleY = 0.75; mcJobItem[_local1].x = 33; mcJobItem[_local1].y = (60 + (25 * _local1)); mcJobItem[_local1].bg.alpha = 0; addChild(mcJobItem[_local1]); _local1++; }; mcJobItem[0].addEventListener(MouseEvent.CLICK, klik0); mcJobItem[1].addEventListener(MouseEvent.CLICK, klik1); mcJobItem[2].addEventListener(MouseEvent.CLICK, klik2); mcJobItem[3].addEventListener(MouseEvent.CLICK, klik3); mcJobItem[4].addEventListener(MouseEvent.CLICK, klik4); mcJobItem[5].addEventListener(MouseEvent.CLICK, klik5); mcJobItem[6].addEventListener(MouseEvent.CLICK, klik6); mcJobItem[7].addEventListener(MouseEvent.CLICK, klik7); mcJobItem[8].addEventListener(MouseEvent.CLICK, klik8); mcJobItem[9].addEventListener(MouseEvent.CLICK, klik9); mcJobItem[10].addEventListener(MouseEvent.CLICK, klik10); } override public function destroy(){ mcJobItem[0].removeEventListener(MouseEvent.CLICK, klik0); mcJobItem[1].removeEventListener(MouseEvent.CLICK, klik1); mcJobItem[2].removeEventListener(MouseEvent.CLICK, klik2); mcJobItem[3].removeEventListener(MouseEvent.CLICK, klik3); mcJobItem[4].removeEventListener(MouseEvent.CLICK, klik4); mcJobItem[5].removeEventListener(MouseEvent.CLICK, klik5); mcJobItem[6].removeEventListener(MouseEvent.CLICK, klik6); mcJobItem[7].removeEventListener(MouseEvent.CLICK, klik7); mcJobItem[8].removeEventListener(MouseEvent.CLICK, klik8); mcJobItem[9].removeEventListener(MouseEvent.CLICK, klik9); mcJobItem[10].removeEventListener(MouseEvent.CLICK, klik10); bt_applyjoblistfac.removeEventListener(MouseEvent.CLICK, clickapplyjoblistfac); bt_backjobfactory.removeEventListener(MouseEvent.CLICK, clickbackjobfactory); removeEventListener(Event.ENTER_FRAME, funcEnterFrame); } } }//package com.jayz.dailylife.factory
Section 6
//CFactoryScreen (com.jayz.dailylife.factory.CFactoryScreen) package com.jayz.dailylife.factory { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CFactoryScreen extends CScreen { var gs:CGameSession; public var myAvatar:CAvatar; public var person1:MovieClip; public var bt_factoryback:SimpleButton; public var person2:MovieClip; public var person4:MovieClip; public var bt_factoryjob:SimpleButton; var ss:CSound; public var bt_factorywork:SimpleButton; public var person3:MovieClip; var inf:CMcInfoText; public function CFactoryScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); inf = new CMcInfoText(); super(); } override public function init(){ var _local1:int; info(); _local1 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKerjaFactory, gs.akhirJamKerjaFactory)){ bt_factorywork.visible = true; bt_factoryjob.visible = true; } else { bt_factorywork.visible = false; bt_factoryjob.visible = false; }; if ((((gs.currentJob.place == "factory")) && (gs.currentTime.isInRange(gs.awalJamKerjaFactory, gs.akhirJamKerjaFactory)))){ bt_factorywork.visible = true; } else { bt_factorywork.visible = false; }; gs.currentTime.hari = _local1; setButtonListeners(); ss.playSound(CSound.bg_building); gs.setPersons(this); gs.setDayNight(this); } public function setButtonListeners(){ bt_factorywork.addEventListener(MouseEvent.CLICK, clickfactorywork); bt_factoryjob.addEventListener(MouseEvent.CLICK, clickfactoryjob); bt_factoryback.addEventListener(MouseEvent.CLICK, clickfactoryback); } public function clickfactoryback(_arg1:Event){ ss.stopSound(CSound.bg_building); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickfactoryjob(_arg1:Event){ this.nextScreenName = "factoryjobscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickfactorywork(_arg1:Event){ this.nextScreenName = "factoryworkscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function info(){ inf.judul.text = "Factory"; inf.line1.text = ((("open: " + String(gs.awalJamKerjaFactory.jam)) + " - ") + String(gs.akhirJamKerjaFactory.jam)); if (gs.currentJob.place == "factory"){ inf.line2.text = ("you worked here as " + gs.currentJob.position); } else { inf.line2.text = ""; }; this.addChild(inf); } override public function destroy(){ gs.unsetPersons(this); bt_factorywork.removeEventListener(MouseEvent.CLICK, clickfactorywork); bt_factoryjob.removeEventListener(MouseEvent.CLICK, clickfactoryjob); bt_factoryback.removeEventListener(MouseEvent.CLICK, clickfactoryback); } } }//package com.jayz.dailylife.factory
Section 7
//CFactoryWorkScreen (com.jayz.dailylife.factory.CFactoryWorkScreen) package com.jayz.dailylife.factory { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CFactoryWorkScreen extends CScreen { var gs:CGameSession; public var tx_moneygained:TextField; private var pt:CPopText; public var myAvatar:CAvatar; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; public var bt_workfactory:SimpleButton; public var tx_clock:TextField; private var ptTimer:Timer; var ss:CSound; public var person3:MovieClip; public var bt_backfactorywork:SimpleButton; public function CFactoryWorkScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } override public function init(){ var _local1:int; _local1 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKerjaFactory, gs.akhirJamKerjaFactory)){ if (gs.currentJob.place != "factory"){ bt_workfactory.visible = false; } else { bt_workfactory.visible = true; ss.playSound(CSound.bg_workFactory); }; } else { bt_workfactory.visible = false; }; gs.currentTime.hari = _local1; tx_clock.text = gs.currentTime.toString(); tx_moneygained.text = String(gs.money); setButtonListeners(); gs.setPersons(this); gs.setDayNight(this); } public function clickbackfactorywork(_arg1:Event){ if (pt.isShown){ return; }; ss.stopSound(CSound.bg_workFactory); this.nextScreenName = "factoryscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function setButtonListeners(){ bt_workfactory.addEventListener(MouseEvent.CLICK, clickworkfactory); bt_backfactorywork.addEventListener(MouseEvent.CLICK, clickbackfactorywork); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); } public function clickworkfactory(_arg1:Event){ var _local2:int; if (pt.isShown){ return; }; ss.playSound(CSound.fx_work); trace("kerja di pabrik"); gs.money = (gs.money + gs.currentJob.salary); gs.currentWorkHour.workHour[gs.currentJob.place] = (gs.currentWorkHour.workHour[gs.currentJob.place] + 1); tx_moneygained.text = String(gs.money); gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiKerja); tx_clock.text = gs.currentTime.toString(); gs.rentHomeStatusUpdate(gs.lamaSesiKerja); gs.eatStatusUpdate(); _local2 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKerjaFactory, gs.akhirJamKerjaFactory)){ if (gs.currentJob.place != "factory"){ bt_workfactory.visible = false; } else { bt_workfactory.visible = true; }; } else { bt_workfactory.visible = false; ss.stopSound(CSound.bg_workFactory); }; gs.currentTime.hari = _local2; if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.start(); }; } private function theEnd(_arg1:Event){ ss.stopSound(CSound.bg_workFactory); ss.stopSound(CSound.bg_building); pt.isShown = false; this.removeChild(pt.popTx); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_workfactory.removeEventListener(MouseEvent.CLICK, clickworkfactory); bt_backfactorywork.removeEventListener(MouseEvent.CLICK, clickbackfactorywork); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); } } }//package com.jayz.dailylife.factory
Section 8
//CFastFoodScreen (com.jayz.dailylife.fastfood.CFastFoodScreen) package com.jayz.dailylife.fastfood { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CFastFoodScreen extends CScreen { var gs:CGameSession; public var bt_workff:SimpleButton; public var myAvatar:CAvatar; public var bt_jobff:SimpleButton; public var bt_buymeal:SimpleButton; public var person1:MovieClip; public var bt_backff:SimpleButton; public var person2:MovieClip; public var person4:MovieClip; var ss:CSound; public var person3:MovieClip; var inf:CMcInfoText; public function CFastFoodScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); inf = new CMcInfoText(); super(); } override public function init(){ if (gs.currentJob.place != "fastfood"){ bt_workff.visible = false; } else { bt_workff.visible = true; }; info(); setButtonListeners(); ss.playSound(CSound.bg_building); gs.setPersons(this); gs.setDayNight(this); } public function clickworkff(_arg1:Event){ this.nextScreenName = "workffscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function setButtonListeners(){ bt_buymeal.addEventListener(MouseEvent.CLICK, clickbuymeal); bt_workff.addEventListener(MouseEvent.CLICK, clickworkff); bt_jobff.addEventListener(MouseEvent.CLICK, clickjobff); bt_backff.addEventListener(MouseEvent.CLICK, clickbackff); } public function clickbackff(_arg1:Event){ ss.stopSound(CSound.bg_building); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function info(){ inf.judul.text = "Fast Food Restaurant"; inf.line1.text = "open: 24 hours"; if (gs.currentJob.place == "fastfood"){ inf.line2.text = ("you worked here as " + gs.currentJob.position); } else { inf.line2.text = ""; }; this.addChild(inf); } public function clickbuymeal(_arg1:Event){ this.nextScreenName = "mealmenuscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickjobff(_arg1:Event){ this.nextScreenName = "jobffscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_buymeal.removeEventListener(MouseEvent.CLICK, clickbuymeal); bt_workff.removeEventListener(MouseEvent.CLICK, clickworkff); bt_jobff.removeEventListener(MouseEvent.CLICK, clickjobff); bt_backff.removeEventListener(MouseEvent.CLICK, clickbackff); } } }//package com.jayz.dailylife.fastfood
Section 9
//CJobffScreen (com.jayz.dailylife.fastfood.CJobffScreen) package com.jayz.dailylife.fastfood { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CJobffScreen extends CScreen { var gs:CGameSession; public var bt_applyjob:SimpleButton; var mcJobItem:Array; public var jobList:Array; public var bt_backjoblist:SimpleButton; public function CJobffScreen(){ gs = CGameSession.getInstance(); jobList = new Array(); mcJobItem = new Array(); super(); } override public function init(){ initJobList(); setButtonListeners(); gs.setDayNight(this); } private function clickworkff(_arg1:Event){ var _local2:int; trace("Kerja ... "); _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ gs.currentJob = jobList[_local2]; gs.career = jobList[_local2].careerPoint; mcJobItem[_local2].bg.alpha = 0; break; }; _local2++; }; clickbackworkff(_arg1); trace(((gs.currentJob.position + " ") + String(gs.career))); } private function setButtonListeners(){ bt_applyjob.addEventListener(MouseEvent.CLICK, clickworkff); bt_backjoblist.addEventListener(MouseEvent.CLICK, clickbackworkff); addEventListener(Event.ENTER_FRAME, funcEnterFrame); } private function klik1(_arg1:Event){ var _local2:int; if (mcJobItem[1].textJobTitle.textColor != 0x999999){ mcJobItem[1].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 1){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik2(_arg1:Event){ var _local2:int; if (mcJobItem[2].textJobTitle.textColor != 0x999999){ mcJobItem[2].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 2){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function funcEnterFrame(_arg1:Event){ var _local2:int; bt_applyjob.visible = false; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ bt_applyjob.visible = true; }; _local2++; }; } private function klik0(_arg1:Event){ var _local2:int; if (mcJobItem[0].textJobTitle.textColor != 0x999999){ mcJobItem[0].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 0){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function clickbackworkff(_arg1:Event){ var _local2:int; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ mcJobItem[_local2].bg.alpha = 0; break; }; _local2++; }; this.nextScreenName = "fastfoodscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function initJobList(){ var _local1:int; var _local2:int; var _local3:int; trace("init job list"); jobList[0] = new CJob("fastfood", "janitor", 5, "", new Array("NA"), 0, 500); jobList[1] = new CJob("fastfood", "waiter", 7, "min. 15 work hour", new Array("NA"), 15, 1000); jobList[2] = new CJob("fastfood", "chef", 15, "min. 30 work hour", new Array("NA"), 30, 1500); _local1 = 0; while (_local1 < jobList.length) { mcJobItem[_local1] = new CJobItem2(); mcJobItem[_local1].textJobTitle.text = jobList[_local1].position; mcJobItem[_local1].textJobReq.text = jobList[_local1].requirement; mcJobItem[_local1].textSalary.text = (("$" + String(jobList[_local1].salary)) + "/hour"); _local2 = 0; _local3 = 0; while (_local3 < jobList[_local1].academic.length) { trace(String(gs.currentWorkHour.workHour[jobList[_local1].place])); trace(String(gs.currentGelar.gelar[jobList[_local1].academic[_local3]])); if ((((gs.currentWorkHour.workHour[jobList[_local1].place] >= jobList[_local1].workHour)) && ((gs.currentGelar.gelar[jobList[_local1].academic[_local3]] == true)))){ _local2++; }; if (_local2 <= 0){ mcJobItem[_local1].textJobTitle.textColor = 0x999999; mcJobItem[_local1].textJobReq.textColor = 0x999999; mcJobItem[_local1].textSalary.textColor = 0x999999; } else { mcJobItem[_local1].textJobTitle.textColor = 0; mcJobItem[_local1].textJobReq.textColor = 0; mcJobItem[_local1].textSalary.textColor = 0; }; _local3++; }; mcJobItem[_local1].scaleY = 0.75; mcJobItem[_local1].x = 33; mcJobItem[_local1].y = (60 + (25 * _local1)); mcJobItem[_local1].bg.alpha = 0; addChild(mcJobItem[_local1]); _local1++; }; mcJobItem[0].addEventListener(MouseEvent.CLICK, klik0); mcJobItem[1].addEventListener(MouseEvent.CLICK, klik1); mcJobItem[2].addEventListener(MouseEvent.CLICK, klik2); } override public function destroy(){ mcJobItem[0].removeEventListener(MouseEvent.CLICK, klik0); mcJobItem[1].removeEventListener(MouseEvent.CLICK, klik1); mcJobItem[2].removeEventListener(MouseEvent.CLICK, klik2); bt_applyjob.removeEventListener(MouseEvent.CLICK, clickworkff); bt_backjoblist.removeEventListener(MouseEvent.CLICK, clickbackworkff); removeEventListener(Event.ENTER_FRAME, funcEnterFrame); } } }//package com.jayz.dailylife.fastfood
Section 10
//CMealMenuScreen (com.jayz.dailylife.fastfood.CMealMenuScreen) package com.jayz.dailylife.fastfood { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.utils.*; public class CMealMenuScreen extends CScreen { var gs:CGameSession; public var bt_backmenu:SimpleButton; private var pt:CPopText; public var myAvatar:CAvatar; public var bt_buymenu:SimpleButton; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; var ss:CSound; var mcFoodMenuItem:Array; private var ptTimer:Timer; public var person3:MovieClip; public var foodMenu:Array; public function CMealMenuScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); foodMenu = new Array(); mcFoodMenuItem = new Array(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } public function initFoodMenu(){ var _local1:int; trace("init food menu"); foodMenu[0] = new CFoodMenu("french fries", 3); foodMenu[1] = new CFoodMenu("burger package", 5); foodMenu[2] = new CFoodMenu("pizza", 8); _local1 = 0; while (_local1 < foodMenu.length) { mcFoodMenuItem[_local1] = new CMcFoodMenu(); mcFoodMenuItem[_local1].textFoodName.text = foodMenu[_local1].foodName; mcFoodMenuItem[_local1].textPrice.text = ("$" + foodMenu[_local1].price); if (gs.money >= foodMenu[_local1].price){ mcFoodMenuItem[_local1].textFoodName.textColor = 0; mcFoodMenuItem[_local1].textPrice.textColor = 0; } else { mcFoodMenuItem[_local1].textFoodName.textColor = 0x999999; mcFoodMenuItem[_local1].textPrice.textColor = 0x999999; }; mcFoodMenuItem[_local1].scaleY = 0.75; mcFoodMenuItem[_local1].x = 143.2; mcFoodMenuItem[_local1].y = (60 + (25 * _local1)); mcFoodMenuItem[_local1].bg.alpha = 0; addChild(mcFoodMenuItem[_local1]); _local1++; }; mcFoodMenuItem[0].addEventListener(MouseEvent.CLICK, klik0); mcFoodMenuItem[1].addEventListener(MouseEvent.CLICK, klik1); mcFoodMenuItem[2].addEventListener(MouseEvent.CLICK, klik2); } override public function init(){ initFoodMenu(); bt_buymenu.visible = false; setButtonListeners(); gs.setPersons(this); gs.setDayNight(this); } private function klik1(_arg1:Event){ var _local2:int; if (mcFoodMenuItem[1].textFoodName.textColor == 0){ mcFoodMenuItem[1].bg.alpha = 0.5; _local2 = 0; while (_local2 < foodMenu.length) { if (_local2 != 1){ mcFoodMenuItem[_local2].bg.alpha = 0; }; _local2++; }; }; if (gs.money >= foodMenu[1].price){ bt_buymenu.visible = true; }; } private function setButtonListeners(){ bt_buymenu.addEventListener(MouseEvent.CLICK, clickbuymenu); bt_backmenu.addEventListener(MouseEvent.CLICK, clickbackmenu); } private function clickbackmenu(_arg1:Event){ var _local2:int; _local2 = 0; while (_local2 < foodMenu.length) { if (mcFoodMenuItem[_local2].bg.alpha == 0.5){ mcFoodMenuItem[_local2].bg.alpha = 0; break; }; _local2++; }; this.nextScreenName = "fastfoodscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function klik2(_arg1:Event){ var _local2:int; if (mcFoodMenuItem[2].textFoodName.textColor == 0){ mcFoodMenuItem[2].bg.alpha = 0.5; _local2 = 0; while (_local2 < foodMenu.length) { if (_local2 != 2){ mcFoodMenuItem[_local2].bg.alpha = 0; }; _local2++; }; }; if (gs.money >= foodMenu[2].price){ bt_buymenu.visible = true; }; } private function clickbuymenu(_arg1:Event){ var _local2:int; if (pt.isShown){ return; }; ss.playSound(CSound.fx_eat); trace("beli menu"); _local2 = 0; while (_local2 < foodMenu.length) { if (mcFoodMenuItem[_local2].bg.alpha == 0.5){ gs.money = (gs.money - foodMenu[_local2].price); gs.happiness = (gs.happiness + (foodMenu[_local2].price * 10)); mcFoodMenuItem[_local2].bg.alpha = 0; break; }; _local2++; }; gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiMakan); gs.rentHomeStatusUpdate(gs.lamaSesiMakan); gs.eatWell = true; gs.eatStatusUpdate(); if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); ptTimer.start(); }; if (pt.isShown){ return; }; clickbackmenu(_arg1); } private function klik0(_arg1:Event){ var _local2:int; if (mcFoodMenuItem[0].textFoodName.textColor == 0){ mcFoodMenuItem[0].bg.alpha = 0.5; _local2 = 0; while (_local2 < foodMenu.length) { if (_local2 != 0){ mcFoodMenuItem[_local2].bg.alpha = 0; }; _local2++; }; }; if (gs.money >= foodMenu[0].price){ bt_buymenu.visible = true; }; } private function theEnd(_arg1:Event){ pt.isShown = false; this.removeChild(pt.popTx); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ mcFoodMenuItem[0].removeEventListener(MouseEvent.CLICK, klik0); mcFoodMenuItem[1].removeEventListener(MouseEvent.CLICK, klik1); mcFoodMenuItem[2].removeEventListener(MouseEvent.CLICK, klik2); bt_buymenu.removeEventListener(MouseEvent.CLICK, clickbuymenu); bt_backmenu.removeEventListener(MouseEvent.CLICK, clickbackmenu); gs.unsetPersons(this); } } }//package com.jayz.dailylife.fastfood
Section 11
//CWorkffScreen (com.jayz.dailylife.fastfood.CWorkffScreen) package com.jayz.dailylife.fastfood { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CWorkffScreen extends CScreen { var gs:CGameSession; public var tx_moneygained:TextField; private var pt:CPopText; public var bt_workff:SimpleButton; public var myAvatar:CAvatar; public var bt_backworkff:SimpleButton; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; var ss:CSound; public var tx_clock:TextField; private var ptTimer:Timer; public var person3:MovieClip; public function CWorkffScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } override public function init(){ tx_clock.text = gs.currentTime.toString(); tx_moneygained.text = String(gs.money); setButtonListeners(); gs.setPersons(this); gs.setDayNight(this); } private function clickworkff(_arg1:Event){ var _local2:int; if (pt.isShown){ return; }; ss.playSound(CSound.fx_work); trace("Kerja ... "); gs.money = (gs.money + gs.currentJob.salary); gs.currentWorkHour.workHour[gs.currentJob.place] = (gs.currentWorkHour.workHour[gs.currentJob.place] + 1); tx_moneygained.text = String(gs.money); gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiKerja); tx_clock.text = gs.currentTime.toString(); gs.rentHomeStatusUpdate(gs.lamaSesiKerja); gs.eatStatusUpdate(); _local2 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKerjaFastFood, gs.akhirJamKerjaFastFood)){ bt_workff.visible = true; } else { bt_workff.visible = false; }; gs.currentTime.hari = _local2; if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); ptTimer.start(); }; } private function setButtonListeners(){ bt_workff.addEventListener(MouseEvent.CLICK, clickworkff); bt_backworkff.addEventListener(MouseEvent.CLICK, clickbackworkff); } private function theEnd(_arg1:Event){ ss.stopSound(CSound.bg_building); pt.isShown = false; this.removeChild(pt.popTx); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function clickbackworkff(_arg1:Event){ if (pt.isShown){ return; }; this.nextScreenName = "fastfoodscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_workff.removeEventListener(MouseEvent.CLICK, clickworkff); bt_backworkff.removeEventListener(MouseEvent.CLICK, clickbackworkff); } } }//package com.jayz.dailylife.fastfood
Section 12
//CAvatar (com.jayz.dailylife.game.CAvatar) package com.jayz.dailylife.game { import flash.display.*; public class CAvatar extends MovieClip { var gs:CGameSession; var av:MovieClip; public var balloon:MovieClip; public var ce:MovieClip; public var co:MovieClip; public function CAvatar(){ gs = CGameSession.getInstance(); super(); co.visible = false; ce.visible = false; trace("initialisasi"); } public function updateStatus(_arg1:MovieClip=null){ var _local2:MovieClip; var _local3:int; trace(("CAvatar " + this.parent)); balloon.visible = false; if (gs.avatarGender == "cowok"){ ce.visible = false; av = co; if (_arg1 != null){ _local2 = _arg1.mcAvatar1.dude; }; } else { co.visible = false; av = ce; if (_arg1 != null){ _local2 = _arg1.mcAvatar2.dude; }; }; av.visible = true; _local3 = (15 - gs.health.healthPoint); av.gotoAndStop(_local3); if (_arg1 != null){ _local2.gotoAndStop(_local3); }; if (gs.hungry){ balloon.visible = true; balloon.gotoAndStop(1); } else { balloon.visible = false; if (gs.sleepy > 20){ balloon.visible = true; balloon.gotoAndStop(3); }; }; } } }//package com.jayz.dailylife.game
Section 13
//CBankService (com.jayz.dailylife.game.CBankService) package com.jayz.dailylife.game { public class CBankService { public var money:int; public var haveIt:Boolean;// = false public var name:String; public function CBankService(_arg1:String, _arg2:int){ haveIt = false; super(); name = _arg1; money = _arg2; } } }//package com.jayz.dailylife.game
Section 14
//CDialog (com.jayz.dailylife.game.CDialog) package com.jayz.dailylife.game { import flash.display.*; import flash.events.*; public class CDialog { private var mcParent:MovieClip; private var fcallback:Function; private var mc:MovieClip; public function CDialog(_arg1:MovieClip, _arg2:String, _arg3:String, _arg4:int, _arg5:Function=null){ mc = new mcDialog(); _arg1.addChild(mc); mc.x = 248.6; mc.y = 170; mc.btNo.visible = true; if (_arg4 == 1){ mc.btNo.visible = false; }; mc.btNo.addEventListener(MouseEvent.CLICK, noClicked); mc.btOk.addEventListener(MouseEvent.CLICK, okClicked); mc.txTitle.text = _arg2; mc.txContent.text = _arg3; this.mcParent = _arg1; this.fcallback = _arg5; } public function noClicked(_arg1:MouseEvent){ fcallback(false); destroy(); } public function okClicked(_arg1:MouseEvent){ fcallback(true); destroy(); } public function destroy(){ mc.btNo.removeEventListener(MouseEvent.CLICK, noClicked); mc.btOk.removeEventListener(MouseEvent.CLICK, okClicked); mcParent.removeChild(mc); mc = null; } } }//package com.jayz.dailylife.game
Section 15
//CFoodMenu (com.jayz.dailylife.game.CFoodMenu) package com.jayz.dailylife.game { public class CFoodMenu { public var price:int; public var foodName:String; public function CFoodMenu(_arg1:String, _arg2:int){ foodName = _arg1; price = _arg2; } } }//package com.jayz.dailylife.game
Section 16
//CGameSession (com.jayz.dailylife.game.CGameSession) package com.jayz.dailylife.game { import flash.display.*; import flash.events.*; public class CGameSession extends EventDispatcher { public var currentGelar:CGelar; public var awalJamKerjaFastFood:CTime; public var lamaSesiTransaksi:CTime; public var homeTimeCounter:CTime; public var awalJamBukaPub:CTime; public var levelinfo:Array; public var moneyTheft:int; public var akhirJamKerjaOffice:CTime; public var sleepWell:Boolean; public var eatWell:Boolean; public var awalJamKerjaMall:CTime; public var jobok:Boolean; public var akhirJamKerjaFastFood:CTime; public var lamaSesiTidur:CTime; public var isWin:Boolean; public var health:CHealth; public var hungry:Boolean; public var awalJamKerjaOffice:CTime; public var awalJamKerjaBank:CTime; public var sleepy:int; public var lamaSesiKerja:CTime; public var meetinroom:int; public var knowledge:int; public var backtoscreen:MovieClip; public var awalJamKerjaFactory:CTime; public var score:int; public var lamaSesiDrunk:CTime; public var maxlevel:int;// = 10 public var awalJamKuliah:CTime; public var lamaSesiMakan:CTime; public var tujuan:CLokasi; public var lamaSesiStudy:CTime; public var money:int; public var lamaSesiFlirt:CTime; public var akhirJamBukaPub:CTime; public var nextMinEatTime:CTime; public var jenis:int; public var saving:int; public var serviceList:Array; private var gameMC:MovieClip; public var havePopCorn:Boolean; public var goodsList:Array; public var goodsIndex; public var akhirJamKuliah:CTime; private var isBonus1Given:Boolean; public var happiness:int; public var akhirJamBukaBioskop:CTime; public var currentWorkHour:CWorkHour; public var leveldata:Array; private var _mcParent:MovieClip; public var goodsTheft:String; public var sleepHour:int; public var isLose:Boolean; public var awalJamBukaBioskop:CTime; public var cheatpass:Boolean; public var lamaSesiKiss:CTime; public var awalJamKerjaHospital:CTime; public var submitscore:Boolean;// = false public var person1:CPerson; public var person2:CPerson; public var career:int; public var lamaSesiRelax:CTime; public var avatarGender:String; public var isinplay:Boolean;// = false public var level:int; public var person3:CPerson; public var isSick:Boolean; public var akhirJamKerjaFactory:CTime; public var educationok:Boolean; public var person4:CPerson; public var theftHour:int;// = 0 public var currentJob:CJob; public var akhirJamKerjaMall:CTime; public var nextMaxEatTime:CTime; public var isPlaying:Boolean; public var homeTimeRent:CTime; public var lamaSesiBrag:CTime; public var wealth:int; public var homeStatus:String; public var EatTolerance:CTime; public var akhirJamKerjaBank:CTime; private var isBonus2Given:Boolean; public var akhirJamKerjaHospital:CTime; public var totalscore:int; public var currentStudy:CStudy; public var asal:CLokasi; public var lamaSesiTalk:CTime; public var currentTime:CTime; public var happiness2:int; public var personshowed:MovieClip; public var isTheft:Boolean; public var itemPrice:int; private static var instance:CGameSession = new (CGameSession); ; public function CGameSession(){ maxlevel = 10; submitscore = false; isinplay = false; lamaSesiKerja = new CTime(0, 1, 0); lamaSesiTidur = new CTime(0, 1, 0); lamaSesiStudy = new CTime(0, 1, 0); lamaSesiMakan = new CTime(0, 1, 0); lamaSesiRelax = new CTime(0, 1, 0); lamaSesiDrunk = new CTime(0, 1, 0); lamaSesiTalk = new CTime(0, 1, 0); lamaSesiBrag = new CTime(0, 0, 30); lamaSesiFlirt = new CTime(0, 0, 30); lamaSesiKiss = new CTime(0, 0, 30); lamaSesiTransaksi = new CTime(0, 0, 30); awalJamKerjaOffice = new CTime(0, 8, 0); akhirJamKerjaOffice = new CTime(0, 20, 0); awalJamKuliah = new CTime(0, 8, 0); akhirJamKuliah = new CTime(0, 20, 0); awalJamKerjaFactory = new CTime(0, 8, 0); akhirJamKerjaFactory = new CTime(0, 20, 0); awalJamKerjaHospital = new CTime(0, 0, 0); akhirJamKerjaHospital = new CTime(0, 24, 0); awalJamKerjaMall = new CTime(0, 10, 0); akhirJamKerjaMall = new CTime(0, 22, 0); awalJamKerjaBank = new CTime(0, 8, 0); akhirJamKerjaBank = new CTime(0, 17, 0); awalJamKerjaFastFood = new CTime(0, 0, 0); akhirJamKerjaFastFood = new CTime(0, 24, 0); awalJamBukaBioskop = new CTime(0, 13, 0); akhirJamBukaBioskop = new CTime(0, 22, 0); awalJamBukaPub = new CTime(0, 21, 0); akhirJamBukaPub = new CTime(0, 5, 0); homeTimeRent = new CTime(7, 0, 0); nextMinEatTime = new CTime(0, 0, 0); nextMaxEatTime = new CTime(0, 0, 0); EatTolerance = new CTime(0, 12, 0); levelinfo = [[null, 350, null, null, null, 7, "waiter", "diploma", null, null, "You have to be graduated with diploma in 7 days, and having a job as a waiter in a fast food restaurant. You also required to have 1 friend.", 25, 0], [null, 400, null, null, null, 5, "chef", "diploma", null, null, "You have to become a chef in a fast food restaurant,\n and you have 5 days to do that. \n You also required to have 1 friend.", 25, 0], [null, 500, 20, null, 10, 5, "production staff", "diploma", null, null, "get a job as a production staff in some office,\n and get your self a diploma degree,\n you have to to this in 5 days. \n You also required to have 1 friend.", 25, 0], [null, 550, 25, 5, 15, 7, "engineer", "diploma", null, null, "You are getting good at this, \nLet's see if you can be an engineer in 7 days. \n Need to have 2 friends.", 25, 25], [15, 300, 30, 3, 20, 9, "administration", "bachelor", null, null, "Be an administration staff in a university,\n but now you have to get a Bachelor degree,\n and you have to do all of this in 9 days.\n Need to have 2 friends ", 25, 25], [25, 400, 40, 5, 25, 17, "supervisor", "bachelor", null, null, "You have to become a factory supervisor,\n with a bachelor degree in,\n and you have 17 days to do this \n Need to have 1 good friend and 1 friend.", 50, 25], [30, 1000, 55, 20, 30, 19, "internist", "internist specialist", 2, null, "Get a job at hospital, and achieve an internist specialist there,\n you're certainly have to get a magister degree,\n you have 19 days. You'll need to have 2 good friends.", 50, 50], [30, 400, 50, 20, 10, 21, "head of university", "magister", 1, null, "This time the goal is a bit harder,\n be a Head of University with magister degree,\n in 21 days and you need to have 1 girlfriend/boyfriend.", 90, 0], [40, 500, 55, 25, 15, 36, "bank manager", "magister", 3, null, "You want a lot of money?, why dont you become a Bank Manager\n you have 36 days to do that, and you need 1 friend \n and a girlfriend/boyfriend", 90, 25], [45, 2000, 60, 30, 45, 46, "director", "magister", 4, null, "This is the last objective, finished it in 46 days.\n Be an Office director in the largest office in the city\n need 1 good friend and a girlfriend/boyfriend ", 90, 50]]; theftHour = 0; super(); if (instance){ throw (new Error("It is a Singleton and can only be accessed through Singleton.getInstance()")); }; } public function destroy(){ } public function passFriend1(){ if (person1 == null){ return (false); }; if ((((((((person1.score >= leveldata[11])) || ((person2.score >= leveldata[11])))) || ((person3.score >= leveldata[11])))) || ((person4.score >= leveldata[11])))){ return (true); }; return (false); } public function passFriend2(){ var _local1:Array; var _local2:Boolean; var _local3:*; var _local4:Boolean; var _local5:*; if (person1 == null){ return (false); }; _local1 = new Array(person1, person2, person3, person4); _local2 = false; _local3 = 0; while (_local3 < _local1.length) { if (((!(_local2)) && ((_local1[_local3].score >= leveldata[11])))){ _local1.splice(_local3, 1); _local2 = true; }; _local3++; }; _local4 = true; _local5 = 0; while (_local5 < _local1.length) { if ((((_local1[_local5].score >= leveldata[12])) && (!((leveldata[12] == 0))))){ return (true); }; _local5++; }; return (false); } public function scanperson(_arg1:MovieClip, _arg2:int){ if (person1.dilokasi(_arg2)){ person1.showPerson(_arg1); } else { person1.hidePerson(_arg1); }; if (person2.dilokasi(_arg2)){ person2.showPerson(_arg1); } else { person2.hidePerson(_arg1); }; if (person3.dilokasi(_arg2)){ person3.showPerson(_arg1); } else { person3.hidePerson(_arg1); }; if (person4.dilokasi(_arg2)){ person4.showPerson(_arg1); } else { person4.hidePerson(_arg1); }; } public function passHappiness():Boolean{ if (happiness2 < ((leveldata[4] * 0.01) * 7500)){ return (false); }; return (true); } public function updateStatusAndScore(){ var _local1:int; itemPrice = 0; _local1 = 0; while (_local1 < goodsList.length) { if (goodsList[_local1].isOwned){ itemPrice = (itemPrice + goodsList[_local1].price); }; _local1++; }; wealth = ((money + saving) + itemPrice); happiness2 = happiness; if (sleepWell){ happiness2 = (happiness2 + 250); } else { happiness2 = (happiness2 - 100); }; if (eatWell){ happiness2 = (happiness2 + 250); } else { happiness2 = (happiness2 - 100); }; happiness2 = (happiness2 + (currentJob.careerPoint / 2)); if (homeStatus == null){ happiness2 = (happiness2 - 250); } else { if (homeStatus == "cheapApartment"){ happiness2 = (happiness2 + 100); } else { if (homeStatus == "luxApartment"){ happiness2 = (happiness2 + 500); }; }; }; _local1 = 0; while (_local1 < goodsList.length) { if (goodsList[_local1].isOwned){ happiness2 = (happiness2 + (goodsList[_local1].price / 2)); }; _local1++; }; score = int((((((wealth + career) + knowledge) + happiness2) / (1 + (currentTime.hari / 10))) / 10)); } public function setLevel(_arg1:int){ level = _arg1; leveldata = levelinfo[(level - 1)]; } public function setDayNight(_arg1:MovieClip):Boolean{ if ((((currentTime.jam >= 6)) && ((currentTime.jam <= 18)))){ _arg1.gotoAndStop(1); return (true); }; _arg1.gotoAndStop(2); return (false); } public function passPosition():Boolean{ return (jobok); } public function unsetPersons(_arg1:MovieClip){ } public function winOrLose(){ updateStatusAndScore(); if (paramachieved()){ totalscore = ((totalscore + score) + 1000); isWin = true; } else { if (((((money + saving) <= 0)) || ((currentTime.hari > leveldata[5])))){ totalscore = (totalscore + score); isLose = true; }; }; } public function passEducation():Boolean{ return (educationok); } function cekGoods(_arg1:String){ var _local2:Boolean; var _local3:int; _local2 = false; _local3 = 0; while (_local3 < goodsList.length) { if (goodsList[_local3].isOwned){ _local2 = true; }; _local3++; }; return (_local2); } public function eatStatusUpdate(){ var _local1:int; var _local2:int; var _local3:int; if (eatWell){ if (currentTime.isInRange(nextMinEatTime, nextMaxEatTime)){ _local1 = currentTime.hari; _local2 = currentTime.jam; _local3 = currentTime.menit; nextMinEatTime = new CTime(_local1, _local2, _local3); _local1 = nextMinEatTime.hari; _local2 = (nextMinEatTime.jam + EatTolerance.jam); if (_local2 >= 24){ _local2 = (_local2 - 24); _local1++; }; _local3 = nextMinEatTime.menit; nextMaxEatTime = new CTime(_local1, _local2, _local3); trace(("eatwell in range " + nextMaxEatTime.toString())); hungry = false; eatWell = false; } else { health = new CHealth((health.healthPoint - 2)); _local1 = currentTime.hari; _local2 = currentTime.jam; _local3 = currentTime.menit; nextMinEatTime = new CTime(_local1, _local2, _local3); _local1 = nextMinEatTime.hari; _local2 = (nextMinEatTime.jam + EatTolerance.jam); if (_local2 >= 24){ _local2 = (_local2 - 24); _local1++; }; _local3 = nextMinEatTime.menit; nextMaxEatTime = new CTime(_local1, _local2, _local3); trace(("eatwell not in range " + nextMaxEatTime.toString())); hungry = false; eatWell = false; }; } else { if (!currentTime.isInRange(nextMinEatTime, nextMaxEatTime)){ health = new CHealth((health.healthPoint - 3)); _local1 = currentTime.hari; _local2 = currentTime.jam; _local3 = currentTime.menit; nextMinEatTime = new CTime(_local1, _local2, _local3); _local1 = nextMinEatTime.hari; _local2 = (nextMinEatTime.jam + EatTolerance.jam); if (_local2 >= 24){ _local2 = (_local2 - 24); _local1++; }; _local3 = nextMinEatTime.menit; nextMaxEatTime = new CTime(_local1, _local2, _local3); trace(("not eatwell in range" + nextMaxEatTime.toString())); hungry = true; }; }; healthStatusUpdate(); if (_mcParent.myAvatar){ _mcParent.myAvatar.updateStatus(); }; sleepy++; } public function passCareer():Boolean{ if (career < ((leveldata[2] * 0.01) * 5000)){ return (false); }; return (true); } public function setPersons(_arg1:MovieClip){ _mcParent = _arg1; scanperson(_arg1, _arg1.roomid); personshowed = null; backtoscreen = _arg1; if (_arg1.myAvatar){ _arg1.myAvatar.updateStatus(); }; if (!_arg1.person1.hasEventListener(MouseEvent.MOUSE_DOWN)){ _arg1.person1.addEventListener(MouseEvent.MOUSE_DOWN, personclick); }; if (!_arg1.person2.hasEventListener(MouseEvent.MOUSE_DOWN)){ _arg1.person2.addEventListener(MouseEvent.MOUSE_DOWN, personclick); }; if (!_arg1.person3.hasEventListener(MouseEvent.MOUSE_DOWN)){ _arg1.person3.addEventListener(MouseEvent.MOUSE_DOWN, personclick); }; if (!_arg1.person4.hasEventListener(MouseEvent.MOUSE_DOWN)){ _arg1.person4.addEventListener(MouseEvent.MOUSE_DOWN, personclick); }; } public function addTime(_arg1:CTime, _arg2:CTime):CTime{ _arg1.hari = (_arg1.hari + _arg2.hari); _arg1.jam = (_arg1.jam + _arg2.jam); _arg1.menit = (_arg1.menit + _arg2.menit); if (_arg1.menit >= 60){ _arg1.jam = (_arg1.jam + int((_arg1.menit / 60))); _arg1.menit = (_arg1.menit % 60); }; while (true) { if (_arg1.jam >= 24){ _arg1.jam = (_arg1.jam - 24); _arg1.hari++; } else { break; }; }; return (_arg1); } public function init(_arg1:MovieClip){ gameMC = _arg1; } public function initGame(){ cheatpass = false; isinplay = true; money = 400; saving = 0; itemPrice = 0; knowledge = 0; career = 0; happiness = 0; jobok = false; educationok = false; meetinroom = 0; hungry = false; sleepy = 0; health = new CHealth(15); currentTime = new CTime(0, 7, 0); currentJob = new CJob("xxx", "xxx", 0, "", null, 0, 0); currentGelar = new CGelar(); currentWorkHour = new CWorkHour(); currentStudy = new CStudy(null, null, null, null, 0, 0, 0, 0); homeStatus = null; homeTimeCounter = new CTime(0, 0, 0); havePopCorn = false; eatWell = true; nextMinEatTime = new CTime(0, 7, 0); nextMaxEatTime = new CTime(0, 19, 0); sleepWell = true; isSick = false; asal = new CLokasi(0, "cheapApartment", 1, 185); tujuan = new CLokasi(0, "cheapApartment", 1, 185); goodsList = new Array(); goodsList[0] = new CGoods("refrigerator", 150, 0, 0); goodsList[1] = new CGoods("microwave oven", 200, 0, 0); goodsList[2] = new CGoods("aquarium", 70, 100, 200); goodsList[3] = new CGoods("television sets", 250, 500, 500); goodsList[4] = new CGoods("home theatre", 500, 1000, 800); goodsList[5] = new CGoods("massage package", 700, 1400, 800); serviceList = new Array(); serviceList[0] = new CBankService("open account", 5); serviceList[1] = new CBankService("save $250", 250); serviceList[2] = new CBankService("save $500", 500); serviceList[3] = new CBankService("save $1000", 1000); serviceList[4] = new CBankService("withdraw $250", 250); serviceList[5] = new CBankService("withdraw $500", 500); serviceList[6] = new CBankService("withdraw $1000", 1000); isPlaying = true; isWin = false; isLose = false; isBonus1Given = false; isBonus2Given = false; createPersons(); } public function passWealth():Boolean{ if (wealth < ((leveldata[3] * 0.01) * 10000)){ return (false); }; return (true); } public function subTime(_arg1:CTime, _arg2:CTime):CTime{ _arg1.hari = (_arg1.hari - _arg2.hari); _arg1.jam = (_arg1.jam - _arg2.jam); _arg1.menit = (_arg1.menit - _arg2.menit); if (_arg1.menit < 0){ _arg1.jam = (_arg1.jam - int((_arg1.menit / 60))); _arg1.menit = (_arg1.menit % (60 + 60)); }; while (true) { if (_arg1.jam < 0){ _arg1.jam = (_arg1.jam + 24); _arg1.hari--; } else { break; }; }; return (_arg1); } public function numFriends(){ } public function createPersons(){ var _local1:String; _local1 = ""; person1 = new CPerson(1, _local1); _local1 = ((_local1 + " ") + person1.name); person2 = new CPerson(2, _local1); _local1 = ((_local1 + " ") + person2.name); person3 = new CPerson(3, _local1); _local1 = ((_local1 + " ") + person3.name); person4 = new CPerson(4, _local1); } public function rentHomeStatusUpdate(_arg1:CTime){ homeTimeCounter = addTime(homeTimeCounter, _arg1); if (!homeTimeCounter.isInRange(new CTime(0, 0, 0), homeTimeRent)){ homeStatus = null; }; } public function passMoney():Boolean{ if ((money + saving) < leveldata[1]){ return (false); }; return (true); } function cekGelar(_arg1:String):Boolean{ if (_arg1 == "diploma"){ if (((((currentGelar.gelar["adm1"]) || (currentGelar.gelar["acc1"]))) || (currentGelar.gelar["eng1"]))){ return (true); }; }; if (_arg1 == "bachelor"){ if (((((((currentGelar.gelar["adm2"]) || (currentGelar.gelar["acc2"]))) || (currentGelar.gelar["eng2"]))) || (currentGelar.gelar["mgt2"]))){ return (true); }; }; if (_arg1 == "magister"){ if (((((((currentGelar.gelar["adm3"]) || (currentGelar.gelar["acc3"]))) || (currentGelar.gelar["eng3"]))) || (currentGelar.gelar["mgt3"]))){ return (true); }; }; if (_arg1 == "internist specialist"){ if (currentGelar.gelar["inSp"]){ return (true); }; }; return (false); } public function gameBonus(){ if ((((((currentTime.hari <= 2)) && (((currentGelar.gelar["EF1"]) || (currentGelar.gelar["ENG1"]))))) && (!(isBonus1Given)))){ isBonus1Given = true; money = (money + 200); }; if ((((((currentTime.hari <= 15)) && ((currentJob.position == "supervisor")))) && (!(isBonus2Given)))){ isBonus2Given = true; money = (money + 1000); }; } public function personclick(_arg1:MouseEvent){ if ((_arg1.target is MovieClip)){ personshowed = MovieClip(_arg1.target); backtoscreen.nextScreenName = "chatscreen"; backtoscreen.dispatchEvent(new Event("callNextScreen")); }; } public function passKnowledge():Boolean{ if (knowledge < ((leveldata[0] * 0.01) * 5000)){ return (false); }; return (true); } public function passGoods():Boolean{ if (goodsList == null){ return (false); }; if (!goodsList[leveldata[8]].isOwned){ return (false); }; return (true); } private function paramachieved():Boolean{ var _local1:Boolean; if (cheatpass){ return (true); }; _local1 = true; if (leveldata[0] != null){ if (!passKnowledge()){ _local1 = false; }; }; if (leveldata[1] != null){ if (!passMoney()){ _local1 = false; }; }; if (leveldata[2] != null){ if (!passCareer()){ _local1 = false; }; }; if (leveldata[3] != null){ if (!passWealth()){ _local1 = false; }; }; if (leveldata[4] != null){ if (!passHappiness()){ _local1 = false; }; }; if (currentJob.position == leveldata[6]){ jobok = true; }; if (!jobok){ _local1 = false; }; if (cekGelar(leveldata[7])){ educationok = true; }; if (!educationok){ _local1 = false; }; if (leveldata[8] != null){ if (!passGoods()){ _local1 = false; }; }; if (leveldata[11] != 0){ if (!passFriend1()){ _local1 = false; }; }; if (leveldata[12] != 0){ if (!passFriend2()){ _local1 = false; }; }; return (_local1); } public function theftStatus(){ var _local1:int; var _local2:int; var _local3:int; var _local4:int; var _local5:int; var _local6:Number; var _local7:Boolean; _local2 = ((currentTime.hari * 24) + currentTime.jam); if (theftHour == _local2){ return; }; _local3 = 0; _local4 = 0; _local5 = currentTime.hari; currentTime.hari = 0; _local6 = Math.random(); if (currentTime.isInRange(new CTime(0, 5, 0), new CTime(0, 22, 0))){ if ((((_local6 > 0.98)) && ((((saving >= 500)) || ((money >= 1000)))))){ isTheft = true; }; } else { if ((((_local6 > 0.85)) && ((((saving >= 500)) || ((money >= 1000)))))){ isTheft = true; }; }; currentTime.hari = _local5; if (isTheft){ theftHour = ((currentTime.hari * 24) + currentTime.jam); if (asal.nama == "pub"){ jenis = 0; moneyTheft = int((((25 + Math.floor((Math.random() * 50))) / 100) * money)); if ((money - moneyTheft) < 5){ isTheft = false; }; } else { _local7 = false; _local1 = (goodsList.length - 1); while (_local1 >= 0) { if (goodsList[_local1].isOwned){ _local7 = true; goodsIndex = _local1; goodsTheft = goodsList[_local1].name; break; }; _local1--; }; if (((_local7) && ((homeStatus == "cheapApartement")))){ jenis = Math.floor((Math.random() * 1)); if (jenis == 0){ moneyTheft = int((((25 + Math.floor((Math.random() * 50))) / 100) * money)); if ((money - moneyTheft) < 5){ isTheft = false; }; }; } else { jenis = 0; moneyTheft = int((((25 + Math.floor((Math.random() * 50))) / 100) * money)); if ((money - moneyTheft) < 5){ isTheft = false; }; }; }; }; } public function sleepStatusUpdate(){ sleepWell = false; if (sleepHour > 18){ sleepHour = 0; health = new CHealth((health.healthPoint - 4)); } else { if (sleepHour >= 6){ sleepWell = true; sleepHour = 0; health = new CHealth((health.healthPoint + 2)); } else { if (sleepHour == 5){ sleepHour = 0; health = new CHealth((health.healthPoint - 1)); } else { if (sleepHour == 4){ sleepHour = 0; health = new CHealth((health.healthPoint - 2)); } else { if (sleepHour == 3){ sleepHour = 0; health = new CHealth((health.healthPoint - 3)); } else { if (sleepHour == 2){ sleepHour = 0; health = new CHealth((health.healthPoint - 4)); } else { if (sleepHour <= 1){ sleepHour = 0; health = new CHealth((health.healthPoint - 5)); }; }; }; }; }; }; }; } public function healthStatusUpdate(){ if (health.healthStatus == "balanced"){ if (Math.random() > 0.9999){ isSick = true; }; } else { if (health.healthStatus == "poor"){ if (Math.random() > 0.9){ isSick = true; }; } else { if (health.healthStatus == "danger"){ if (Math.random() > 0.7){ isSick = true; }; }; }; }; } public static function getInstance():CGameSession{ return (instance); } } }//package com.jayz.dailylife.game
Section 17
//CGelar (com.jayz.dailylife.game.CGelar) package com.jayz.dailylife.game { public class CGelar { public var gelar:Array; public function CGelar(){ gelar = new Array(); super(); gelar["NA"] = true; gelar["EF1"] = false; gelar["EF2"] = false; gelar["EF3"] = false; gelar["adm1"] = false; gelar["adm2"] = false; gelar["adm3"] = false; gelar["acc1"] = false; gelar["acc2"] = false; gelar["acc3"] = false; gelar["mgt2"] = false; gelar["mgt3"] = false; gelar["ENG1"] = false; gelar["ENG2"] = false; gelar["ENG3"] = false; gelar["eng1"] = false; gelar["eng2"] = false; gelar["eng3"] = false; gelar["MED"] = false; gelar["medDr"] = false; gelar["inSp"] = false; gelar["sur"] = false; } } }//package com.jayz.dailylife.game
Section 18
//CGoods (com.jayz.dailylife.game.CGoods) package com.jayz.dailylife.game { public class CGoods { public var wealthPoint:int; public var price:int; public var name:String; public var happyPoint:int; public var isOwned:Boolean;// = false public function CGoods(_arg1:String, _arg2:int, _arg3:int, _arg4:int){ isOwned = false; super(); name = _arg1; price = _arg2; wealthPoint = _arg3; happyPoint = _arg4; } } }//package com.jayz.dailylife.game
Section 19
//CHealth (com.jayz.dailylife.game.CHealth) package com.jayz.dailylife.game { public class CHealth { public var sickRisk:int; public var healthStatus:String; public var healthPoint:int; public var sickDay:CTime; public function CHealth(_arg1:int){ if (_arg1 > 20){ _arg1 = 20; }; if (_arg1 < 0){ _arg1 = 0; }; healthPoint = _arg1; if (_arg1 > 11){ healthStatus = "excelent"; } else { if (_arg1 > 8){ healthStatus = "balanced"; } else { if (_arg1 > 4){ healthStatus = "poor"; } else { healthStatus = "danger"; }; }; }; if (healthStatus == "excelent"){ sickRisk = 0; sickDay = new CTime(0, 0, 0); } else { if (healthStatus == "balanced"){ sickRisk = 5; sickDay = new CTime((1 + Math.floor((Math.random() * 1))), 0, 0); } else { if (healthStatus == "poor"){ sickRisk = 30; sickDay = new CTime((2 + Math.floor((Math.random() * 2))), 0, 0); } else { if (healthStatus == "danger"){ sickRisk = 60; sickDay = new CTime((3 + Math.floor((Math.random() * 3))), 0, 0); }; }; }; }; } } }//package com.jayz.dailylife.game
Section 20
//CJob (com.jayz.dailylife.game.CJob) package com.jayz.dailylife.game { public class CJob { public var requirement:String; public var academic:Array; public var position:String; public var salary:int; public var place:String; public var careerPoint:int; public var workHour:int; public function CJob(_arg1:String, _arg2:String, _arg3:int, _arg4:String, _arg5:Array, _arg6:int, _arg7:int){ place = _arg1; position = _arg2; salary = _arg3; requirement = _arg4; academic = _arg5; workHour = _arg6; careerPoint = _arg7; } } }//package com.jayz.dailylife.game
Section 21
//CLokasi (com.jayz.dailylife.game.CLokasi) package com.jayz.dailylife.game { public class CLokasi { public var posisi1:int; public var nama:String; public var indeks:int; public var posisi2:int; public function CLokasi(_arg1:int, _arg2:String, _arg3:int, _arg4:int){ indeks = _arg1; nama = _arg2; posisi1 = _arg3; posisi2 = _arg4; } } }//package com.jayz.dailylife.game
Section 22
//CMuteButton (com.jayz.dailylife.game.CMuteButton) package com.jayz.dailylife.game { import flash.display.*; import flash.events.*; public class CMuteButton extends MovieClip { public function CMuteButton(){ addEventListener(MouseEvent.MOUSE_DOWN, down); } public function updateStatus(){ var _local1:CSound; _local1 = CSound.getInstance(); if (_local1.mute){ gotoAndStop(2); } else { gotoAndStop(1); }; } private function down(_arg1:MouseEvent){ CSound.getInstance().toggleSound(); updateStatus(); } } }//package com.jayz.dailylife.game
Section 23
//CPerson (com.jayz.dailylife.game.CPerson) package com.jayz.dailylife.game { import flash.display.*; public class CPerson { public var cowo:Boolean; public var name:String;// = "" private var girlsnames:Array; public var score:int;// = 0 public var avcowo:Boolean; public var ss:CSound; public var tipe:String; var gs:CGameSession; private var guysnames:Array; public var relationstatus:int; public var lokasi:int; public var tujuan:int; public function CPerson(_arg1:int, _arg2:String){ score = 0; name = ""; ss = CSound.getInstance(); gs = CGameSession.getInstance(); girlsnames = ["Daisy", "Cindy", "Melanie", "Gina", "Betty", "Grace", "Jane", "Kelly", "Angel", "Mona", "Rose", "Susan", "Jewel", "Tina", "Valerie", "Windy", "Julie", "Vicky"]; guysnames = ["Bob", "John", "Smith", "Frank", "Jerry", "Harry", "Ian", "Jim", "Noah", "Robert", "David", "Earl", "Fred", "Tom", "Tim", "Will", "Woody", "Joe"]; super(); this.tipe = ("person" + _arg1); if ((((_arg1 == 1)) || ((_arg1 == 4)))){ cowo = true; } else { cowo = false; }; if (cowo){ this.name = "erwin"; while ((((this.name == "erwin")) || ((_arg2.indexOf(this.name) > 0)))) { this.name = guysnames[Math.round((Math.random() * (guysnames.length - 1)))]; }; } else { this.name = "erwin"; while ((((this.name == "erwin")) || ((_arg2.indexOf(this.name) > 0)))) { this.name = girlsnames[Math.round((Math.random() * (girlsnames.length - 1)))]; }; }; if (gs.avatarGender == "cowok"){ avcowo = true; } else { avcowo = false; }; } public function stand(){ } public function updateLokasi(){ } public function flirt(){ gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiFlirt); if ((((score > 30)) && (!((avcowo == cowo))))){ ss.playSound(CSound.fx_work); addScore(4); } else { ss.playSound(CSound.fx_eat); addScore(-10); }; } public function showPerson(_arg1:MovieClip){ _arg1[tipe].visible = true; _arg1[tipe].tx_name.text = name; } public function setLokasi(_arg1:int){ this.lokasi = _arg1; } public function dilokasi(_arg1:int){ if (_arg1 == this.lokasi){ this.lokasi = 0; return (true); }; if (_arg1 == 10){ return; }; if (((gs.currentTime.isInRange(gs.awalJamBukaPub, gs.akhirJamBukaPub)) && ((_arg1 == 9)))){ if (Math.random() < 0.7){ return (true); }; return (false); }; if (((gs.currentTime.isInRange(gs.awalJamBukaBioskop, gs.akhirJamBukaBioskop)) && ((_arg1 == 8)))){ if (Math.random() < 0.7){ return (true); }; return (false); }; if (((gs.currentTime.isInRange(gs.awalJamKerjaMall, gs.akhirJamKerjaMall)) && ((_arg1 == 2)))){ if (Math.random() < 0.7){ return (true); }; return (false); }; if (((gs.currentTime.isInRange(gs.awalJamKuliah, gs.akhirJamKuliah)) && ((_arg1 == 4)))){ if (Math.random() < 0.7){ return (true); }; return (false); }; if (Math.random() < 0.1){ return (true); }; return (false); } public function brag(){ gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiBrag); if (avcowo == cowo){ ss.playSound(CSound.fx_work); addScore(4); } else { ss.playSound(CSound.fx_eat); addScore(-4); }; } public function hidePerson(_arg1:MovieClip){ _arg1[tipe].visible = false; } function addScore(_arg1:int){ score = (score + _arg1); if (score > 100){ score = 100; }; if (score < 0){ score = 0; }; } public function talk(){ ss.playSound(CSound.fx_work); gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiTalk); addScore(2); } public function kiss(){ gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiKiss); if ((((score > 80)) && (!((avcowo == cowo))))){ ss.playSound(CSound.fx_work); addScore(6); } else { ss.playSound(CSound.fx_eat); addScore(-40); }; } } }//package com.jayz.dailylife.game
Section 24
//CPopText (com.jayz.dailylife.game.CPopText) package com.jayz.dailylife.game { public class CPopText { public var popTx:CMcPopText; public var isShown:Boolean;// = false public function CPopText(_arg1:String, _arg2:String, _arg3:String, _arg4:String){ popTx = new CMcPopText(); isShown = false; super(); popTx.line1.text = _arg1; popTx.line2.text = _arg2; popTx.line3.text = _arg3; popTx.line4.text = _arg4; } public function showIt(){ isShown = true; } } }//package com.jayz.dailylife.game
Section 25
//CSound (com.jayz.dailylife.game.CSound) package com.jayz.dailylife.game { import flash.media.*; public class CSound { private var sdfx_eat:CSEat; private var sdbg_mainMenu:CSMainMenu; private var channel1:SoundChannel; private var sdbg_workFactory:CSWorkFactory; private var sdfx_transaction:CSTransaction; private var sdfx_police:CSPolice; private var sdbg_enterPub:CSEnterPub; private var channel2:SoundChannel; private var channel3:SoundChannel; public var mute:Boolean;// = false private var sdbg_insideOffice:CSInsideOffice; private var sdbg_enterTheatre:CSEnterTheatre; private var sdbg_lose:CSLose; private var sdbg_enterCheapAp:CSEnterCheapAp; private var sdbg_win:CSWin; private var sdfx_work:CSWork; private var sdbg_insidePub:CSInsidePub; private var sdbg_game:CSGame; private var sdbg_building:CSBuilding; public static const fx_eat:String = "fx_eat"; public static const bg_enterPub:String = "bg_enterPub"; public static const fx_police:String = "fx_police"; public static const bg_lose:String = "bg_lose"; public static const bg_insideOffice:String = "bg_insideOffice"; public static const bg_enterTheatre:String = "bg_enterTheatre"; public static const bg_enterCheapAp:String = "bg_enterCheapAp"; public static const fx_work:String = "fx_work"; public static const bg_insidePub:String = "bg_insidePub"; public static const bg_win:String = "bg_win"; public static const bg_game:String = "bg_game"; public static const bg_building:String = "bg_building"; public static const fx_transaction:String = "bg_transaction"; public static const bg_mainMenu:String = "bg_mainMenu"; public static const bg_workFactory:String = "bg_workFactory"; private static var instance:CSound = new (CSound); ; public function CSound(){ channel1 = new SoundChannel(); channel2 = new SoundChannel(); channel3 = new SoundChannel(); sdbg_mainMenu = new CSMainMenu(); sdbg_game = new CSGame(); sdbg_enterCheapAp = new CSEnterCheapAp(); sdbg_insideOffice = new CSInsideOffice(); sdbg_enterTheatre = new CSEnterTheatre(); sdbg_enterPub = new CSEnterPub(); sdbg_insidePub = new CSInsidePub(); sdbg_workFactory = new CSWorkFactory(); sdbg_building = new CSBuilding(); sdbg_win = new CSWin(); sdbg_lose = new CSLose(); sdfx_transaction = new CSTransaction(); sdfx_eat = new CSEat(); sdfx_work = new CSWork(); sdfx_police = new CSPolice(); mute = false; super(); if (instance){ throw (new Error("It is a Singleton and can only be accessed through Singleton.getInstance()")); }; } public function stopSound(_arg1:String){ if (_arg1 == bg_mainMenu){ channel2.stop(); }; if (_arg1 == bg_game){ channel2.stop(); }; if (_arg1 == bg_enterCheapAp){ channel2.stop(); }; if (_arg1 == bg_insideOffice){ channel2.stop(); }; if (_arg1 == bg_enterTheatre){ channel2.stop(); }; if (_arg1 == bg_enterPub){ channel2.stop(); }; if (_arg1 == bg_insidePub){ channel2.stop(); }; if (_arg1 == bg_workFactory){ channel2.stop(); }; if (_arg1 == bg_building){ channel3.stop(); }; if (_arg1 == bg_win){ channel2.stop(); }; if (_arg1 == bg_lose){ channel2.stop(); }; if (_arg1 == fx_transaction){ channel1.stop(); }; if (_arg1 == fx_eat){ channel1.stop(); }; if (_arg1 == fx_work){ channel1.stop(); }; if (_arg1 == fx_police){ channel1.stop(); }; } public function playSound(_arg1:String){ if (_arg1 == bg_mainMenu){ channel2.stop(); channel2 = sdbg_mainMenu.play(1, 1000); }; if (_arg1 == bg_game){ channel2.stop(); channel2 = sdbg_game.play(1, 100); }; if (_arg1 == bg_enterCheapAp){ channel2.stop(); channel2 = sdbg_enterCheapAp.play(); }; if (_arg1 == bg_insideOffice){ channel2.stop(); channel2 = sdbg_insideOffice.play(0, 100); }; if (_arg1 == bg_enterTheatre){ channel2.stop(); channel2 = sdbg_enterTheatre.play(); }; if (_arg1 == bg_enterPub){ channel2.stop(); channel2 = sdbg_enterPub.play(); }; if (_arg1 == bg_insidePub){ channel2.stop(); channel2 = sdbg_insidePub.play(0, 100); }; if (_arg1 == bg_workFactory){ channel2.stop(); channel2 = sdbg_workFactory.play(0, 100); }; if (_arg1 == bg_building){ channel3.stop(); channel3 = sdbg_building.play(0, 100); }; if (_arg1 == bg_win){ channel2.stop(); channel2 = sdbg_win.play(); }; if (_arg1 == bg_lose){ channel2.stop(); channel2 = sdbg_lose.play(); }; if (_arg1 == fx_transaction){ channel1.stop(); channel1 = sdfx_transaction.play(); }; if (_arg1 == fx_eat){ channel1.stop(); channel1 = sdfx_eat.play(0, 3); }; if (_arg1 == fx_work){ channel1.stop(); channel1 = sdfx_work.play(); }; if (_arg1 == fx_police){ channel1.stop(); channel1 = sdfx_police.play(0, 4); }; checkMute(); } public function toggleSound(){ mute = !(mute); checkMute(); } public function endAllBGM(){ channel2.stop(); channel3.stop(); } private function setVolume(_arg1:Number):void{ var _local2:SoundTransform; _local2 = channel1.soundTransform; _local2.volume = _arg1; channel1.soundTransform = _local2; channel2.soundTransform = _local2; channel3.soundTransform = _local2; } private function checkMute(){ if (mute){ setVolume(0); } else { setVolume(1); }; } public static function getInstance():CSound{ return (instance); } } }//package com.jayz.dailylife.game
Section 26
//CStudy (com.jayz.dailylife.game.CStudy) package com.jayz.dailylife.game { public class CStudy { public var requirement:String; public var fee:int; public var lulus:String; public var knowledgePoint:int; public var prodi:String; public var studyHour:int; public var studyHourToPass:int; public var fakultas:String; public function CStudy(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:int, _arg6:int, _arg7:int, _arg8:int){ fakultas = _arg1; prodi = _arg2; requirement = _arg3; lulus = _arg4; fee = _arg5; studyHour = _arg6; studyHourToPass = _arg7; knowledgePoint = _arg8; } } }//package com.jayz.dailylife.game
Section 27
//CTime (com.jayz.dailylife.game.CTime) package com.jayz.dailylife.game { public class CTime { public var hari:int; public var jam:int; public var menit:int; public function CTime(_arg1:int, _arg2:int, _arg3:int){ this.hari = _arg1; this.jam = _arg2; this.menit = _arg3; } public function isInRange(_arg1:CTime, _arg2:CTime):Boolean{ var _local3:int; var _local4:int; var _local5:int; _local3 = ((((this.hari * 24) * 60) + (this.jam * 60)) + this.menit); _local4 = ((((_arg1.hari * 24) * 60) + (_arg1.jam * 60)) + _arg1.menit); _local5 = ((((_arg2.hari * 24) * 60) + (_arg2.jam * 60)) + _arg2.menit); if (_local4 < _local5){ if ((((_local3 >= _local4)) && ((_local3 < _local5)))){ return (true); }; return (false); //unresolved jump }; if ((((_local3 >= _local4)) || ((_local3 < _local5)))){ return (true); }; return (false); } public function toString():String{ var _local1:String; var _local2:String; var _local3:String; if (this.jam < 10){ _local1 = ("0" + String(this.jam)); } else { _local1 = String(this.jam); }; if (this.menit < 10){ _local2 = ("0" + String(this.menit)); } else { _local2 = String(this.menit); }; _local3 = ((_local1 + ":") + _local2); return (_local3); } } }//package com.jayz.dailylife.game
Section 28
//CTutorial (com.jayz.dailylife.game.CTutorial) package com.jayz.dailylife.game { import flash.display.*; import flash.events.*; public class CTutorial extends MovieClip { public var btNext:SimpleButton; public var btPrev:SimpleButton; public var btSkip:SimpleButton; public function CTutorial(){ gotoAndStop(1); btNext.addEventListener(MouseEvent.CLICK, nextHandler); btPrev.addEventListener(MouseEvent.CLICK, prevHandler); btSkip.addEventListener(MouseEvent.CLICK, skipHandler); } private function destroy(){ btNext.removeEventListener(MouseEvent.CLICK, nextHandler); btPrev.removeEventListener(MouseEvent.CLICK, prevHandler); btSkip.removeEventListener(MouseEvent.CLICK, skipHandler); } private function prevHandler(_arg1:MouseEvent){ gotoAndStop((currentFrame - 1)); } private function closeThis(){ this.visible = false; destroy(); } private function skipHandler(_arg1:MouseEvent){ closeThis(); } private function nextHandler(_arg1:MouseEvent){ if (currentFrame == totalFrames){ closeThis(); }; gotoAndStop((currentFrame + 1)); } } }//package com.jayz.dailylife.game
Section 29
//CWorkHour (com.jayz.dailylife.game.CWorkHour) package com.jayz.dailylife.game { public class CWorkHour { public var workHour:Array; public function CWorkHour(){ workHour = new Array(); super(); workHour["office"] = new int(0); workHour["university"] = new int(0); workHour["fastfood"] = new int(0); workHour["hospital"] = new int(0); workHour["factory"] = new int(0); workHour["luxrestaurant"] = new int(0); workHour["mall"] = new int(0); workHour["bank"] = new int(0); } } }//package com.jayz.dailylife.game
Section 30
//CChepApartemenScreen (com.jayz.dailylife.home.CChepApartemenScreen) package com.jayz.dailylife.home { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CChepApartemenScreen extends CScreen { var gs:CGameSession; public var bt_rent:SimpleButton; public var bt_myroom:SimpleButton; public var myAvatar:CAvatar; public var bt_backcol:SimpleButton; public var person1:MovieClip; public var person2:MovieClip; var fee:int;// = 200 public var person4:MovieClip; var ss:CSound; public var person3:MovieClip; var inf:CMcInfoText; public function CChepApartemenScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); fee = 200; inf = new CMcInfoText(); super(); } override public function init(){ if (gs.homeStatus != "cheapApartement"){ bt_rent.visible = true; bt_myroom.visible = false; if (gs.money < fee){ bt_rent.visible = false; }; } else { bt_rent.visible = false; bt_myroom.visible = true; }; info(); setButtonListeners(); ss.playSound(CSound.bg_enterCheapAp); ss.playSound(CSound.bg_building); gs.setPersons(this); gs.setDayNight(this); } public function clickmyroom(_arg1:Event){ this.nextScreenName = "myroomscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function setButtonListeners(){ bt_rent.addEventListener(MouseEvent.CLICK, clickrentapartemen); bt_myroom.addEventListener(MouseEvent.CLICK, clickmyroom); bt_backcol.addEventListener(MouseEvent.CLICK, clickback); } public function clickback(_arg1:Event){ ss.stopSound(CSound.bg_building); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickrentapartemen(_arg1:Event){ ss.playSound(CSound.fx_transaction); bt_rent.visible = false; trace("sewa apartemen murahan"); gs.money = (gs.money - fee); gs.homeStatus = "cheapApartement"; bt_myroom.visible = true; gs.homeTimeCounter = new CTime(0, 0, 0); info(); } private function info(){ var _local1:int; inf.judul.text = "Apartment"; inf.line1.text = "open: 24 hours"; inf.line2.text = "rent fee: $200/week"; if (gs.homeStatus == "cheapApartement"){ _local1 = (gs.homeTimeRent.hari - gs.homeTimeCounter.hari); inf.line3.text = (("you lived here, " + String(_local1)) + " day remaining to expire"); } else { inf.line3.text = ""; }; this.addChild(inf); } override public function destroy(){ gs.unsetPersons(this); bt_rent.removeEventListener(MouseEvent.CLICK, clickrentapartemen); bt_myroom.removeEventListener(MouseEvent.CLICK, clickmyroom); bt_backcol.removeEventListener(MouseEvent.CLICK, clickback); } } }//package com.jayz.dailylife.home
Section 31
//CRoomViewScreen (com.jayz.dailylife.home.CRoomViewScreen) package com.jayz.dailylife.home { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CRoomViewScreen extends CScreen { var gs:CGameSession; private var pt:CPopText; public var myAvatar:CAvatar; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; var ss:CSound; public var tx_clock:TextField; private var ptTimer:Timer; public var bt_sleep:SimpleButton; public var person3:MovieClip; private var isSleep:Boolean; public var bt_map:SimpleButton; public function CRoomViewScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } override public function init(){ setButtonListeners(); tx_clock.text = gs.currentTime.toString(); isSleep = false; gs.sleepHour = 0; gs.setPersons(this); gs.setDayNight(this); } public function setButtonListeners(){ bt_sleep.addEventListener(MouseEvent.CLICK, clicksleep); bt_map.addEventListener(MouseEvent.CLICK, clickmap); } public function clicksleep(_arg1:Event){ if (pt.isShown){ return; }; isSleep = true; gs.sleepHour++; gs.sleepy = 0; gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiTidur); tx_clock.text = gs.currentTime.toString(); gs.rentHomeStatusUpdate(gs.lamaSesiTidur); gs.eatStatusUpdate(); if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); ptTimer.start(); }; } private function theEnd(_arg1:Event){ ss.stopSound(CSound.bg_building); pt.isShown = false; this.removeChild(pt.popTx); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickmap(_arg1:Event){ if (pt.isShown){ return; }; if (isSleep){ gs.sleepStatusUpdate(); }; ss.stopSound(CSound.bg_building); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_sleep.removeEventListener(MouseEvent.CLICK, clicksleep); bt_map.removeEventListener(MouseEvent.CLICK, clickmap); } } }//package com.jayz.dailylife.home
Section 32
//CHosJobScreen (com.jayz.dailylife.hospital.CHosJobScreen) package com.jayz.dailylife.hospital { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CHosJobScreen extends CScreen { var gs:CGameSession; var mcJobItem:Array; public var bt_backjobhos:SimpleButton; public var jobList:Array; public var bt_applyjobhos:SimpleButton; public function CHosJobScreen(){ gs = CGameSession.getInstance(); jobList = new Array(); mcJobItem = new Array(); super(); } override public function init(){ initJobList(); setButtonListeners(); gs.setDayNight(this); } private function klik3(_arg1:Event){ var _local2:int; if (mcJobItem[3].textJobTitle.textColor != 0x999999){ mcJobItem[3].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 3){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik7(_arg1:Event){ var _local2:int; if (mcJobItem[7].textJobTitle.textColor != 0x999999){ mcJobItem[7].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 7){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik1(_arg1:Event){ var _local2:int; if (mcJobItem[1].textJobTitle.textColor != 0x999999){ mcJobItem[1].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 1){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik6(_arg1:Event){ var _local2:int; if (mcJobItem[6].textJobTitle.textColor != 0x999999){ mcJobItem[6].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 6){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik8(_arg1:Event){ var _local2:int; if (mcJobItem[8].textJobTitle.textColor != 0x999999){ mcJobItem[8].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 8){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik2(_arg1:Event){ var _local2:int; if (mcJobItem[2].textJobTitle.textColor != 0x999999){ mcJobItem[2].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 2){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik9(_arg1:Event){ var _local2:int; if (mcJobItem[9].textJobTitle.textColor != 0x999999){ mcJobItem[9].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 9){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik4(_arg1:Event){ var _local2:int; if (mcJobItem[4].textJobTitle.textColor != 0x999999){ mcJobItem[4].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 4){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik5(_arg1:Event){ var _local2:int; if (mcJobItem[5].textJobTitle.textColor != 0x999999){ mcJobItem[5].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 5){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function funcEnterFrame(_arg1:Event){ var _local2:int; bt_applyjobhos.visible = false; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ bt_applyjobhos.visible = true; break; }; _local2++; }; } private function klik0(_arg1:Event){ var _local2:int; if (mcJobItem[0].textJobTitle.textColor != 0x999999){ mcJobItem[0].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 0){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik10(_arg1:Event){ var _local2:int; if (mcJobItem[10].textJobTitle.textColor != 0x999999){ mcJobItem[10].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 10){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function setButtonListeners(){ bt_applyjobhos.addEventListener(MouseEvent.CLICK, clickapplyjobhos); bt_backjobhos.addEventListener(MouseEvent.CLICK, clickbackjobhos); addEventListener(Event.ENTER_FRAME, funcEnterFrame); } private function klik12(_arg1:Event){ var _local2:int; if (mcJobItem[12].textJobTitle.textColor != 0x999999){ mcJobItem[12].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 12){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik11(_arg1:Event){ var _local2:int; if (mcJobItem[11].textJobTitle.textColor != 0x999999){ mcJobItem[11].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 11){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function initJobList(){ var _local1:int; var _local2:int; var _local3:int; trace("init job list"); jobList[0] = new CJob("hospital", "janitor", 7, "", new Array("NA"), 0, 500); jobList[1] = new CJob("hospital", "administration officer", 12, "min. 25 wh + diploma in EF", new Array("NA"), 25, 1000); jobList[2] = new CJob("hospital", "junior accounting", 12, "min. 35 wh + diploma in acc", new Array("acc1"), 35, 1500); jobList[3] = new CJob("hospital", "accounting", 18, "min. 50 wh + bachelor in acc", new Array("acc2"), 50, 2000); jobList[4] = new CJob("hospital", "accounting manager", 24, "min. 60 wh + master in acc", new Array("acc3"), 60, 2500); jobList[5] = new CJob("hospital", "nurse", 11, "medical student", new Array("NA"), 0, 1500); jobList[6] = new CJob("hospital", "junior paramedic", 13, "medical student", new Array("NA"), 0, 1500); jobList[7] = new CJob("hospital", "senior paramedic", 20, "min. 75 wh + medical student", new Array("NA"), 75, 2500); jobList[8] = new CJob("hospital", "junior doctor", 25, "medical doctor", new Array("medDr"), 0, 2000); jobList[9] = new CJob("hospital", "doctor", 35, "min. 75 wh + medical doctor", new Array("medDr"), 75, 2500); jobList[10] = new CJob("hospital", "internist", 40, "min. 125 wh + internist specialist", new Array("inSp"), 125, 3000); jobList[11] = new CJob("hospital", "surgeon", 45, "min. 175 wh + surgeon", new Array("sur"), 175, 4000); jobList[12] = new CJob("hospital", "hospital manager", 50, "min. 250 wh + bachelor in MED", new Array("MED"), 250, 5000); _local1 = 0; while (_local1 < jobList.length) { mcJobItem[_local1] = new CJobItem2(); mcJobItem[_local1].textJobTitle.text = jobList[_local1].position; mcJobItem[_local1].textJobReq.text = jobList[_local1].requirement; mcJobItem[_local1].textSalary.text = (("$" + String(jobList[_local1].salary)) + "/hour"); _local2 = 0; _local3 = 0; while (_local3 < jobList[_local1].academic.length) { if ((((gs.currentWorkHour.workHour[jobList[_local1].place] >= jobList[_local1].workHour)) && ((gs.currentGelar.gelar[jobList[_local1].academic[_local3]] == true)))){ _local2++; }; if (_local2 <= 0){ mcJobItem[_local1].textJobTitle.textColor = 0x999999; mcJobItem[_local1].textJobReq.textColor = 0x999999; mcJobItem[_local1].textSalary.textColor = 0x999999; } else { mcJobItem[_local1].textJobTitle.textColor = 0; mcJobItem[_local1].textJobReq.textColor = 0; mcJobItem[_local1].textSalary.textColor = 0; if ((((((((_local1 == 5)) || ((_local1 == 6)))) || ((_local1 == 7)))) && (!((gs.currentStudy.fakultas == "Medical"))))){ mcJobItem[_local1].textJobTitle.textColor = 0x999999; mcJobItem[_local1].textJobReq.textColor = 0x999999; mcJobItem[_local1].textSalary.textColor = 0x999999; }; }; _local3++; }; mcJobItem[_local1].scaleY = 0.75; mcJobItem[_local1].x = 33; mcJobItem[_local1].y = (60 + (25 * _local1)); mcJobItem[_local1].bg.alpha = 0; addChild(mcJobItem[_local1]); _local1++; }; mcJobItem[0].addEventListener(MouseEvent.CLICK, klik0); mcJobItem[1].addEventListener(MouseEvent.CLICK, klik1); mcJobItem[2].addEventListener(MouseEvent.CLICK, klik2); mcJobItem[3].addEventListener(MouseEvent.CLICK, klik3); mcJobItem[4].addEventListener(MouseEvent.CLICK, klik4); mcJobItem[5].addEventListener(MouseEvent.CLICK, klik5); mcJobItem[6].addEventListener(MouseEvent.CLICK, klik6); mcJobItem[7].addEventListener(MouseEvent.CLICK, klik7); mcJobItem[8].addEventListener(MouseEvent.CLICK, klik8); mcJobItem[9].addEventListener(MouseEvent.CLICK, klik9); mcJobItem[10].addEventListener(MouseEvent.CLICK, klik10); mcJobItem[11].addEventListener(MouseEvent.CLICK, klik11); mcJobItem[12].addEventListener(MouseEvent.CLICK, klik12); } private function clickapplyjobhos(_arg1:Event){ var _local2:int; trace("Kerja di hospital "); _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ gs.currentJob = jobList[_local2]; gs.career = jobList[_local2].careerPoint; mcJobItem[_local2].bg.alpha = 0; break; }; _local2++; }; clickbackjobhos(_arg1); trace(((gs.currentJob.position + " ") + String(gs.career))); } private function clickbackjobhos(_arg1:Event){ var _local2:int; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ mcJobItem[_local2].bg.alpha = 0; break; }; _local2++; }; this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ mcJobItem[0].removeEventListener(MouseEvent.CLICK, klik0); mcJobItem[1].removeEventListener(MouseEvent.CLICK, klik1); mcJobItem[2].removeEventListener(MouseEvent.CLICK, klik2); mcJobItem[3].removeEventListener(MouseEvent.CLICK, klik3); mcJobItem[4].removeEventListener(MouseEvent.CLICK, klik4); mcJobItem[5].removeEventListener(MouseEvent.CLICK, klik5); mcJobItem[6].removeEventListener(MouseEvent.CLICK, klik6); mcJobItem[7].removeEventListener(MouseEvent.CLICK, klik7); mcJobItem[8].removeEventListener(MouseEvent.CLICK, klik8); mcJobItem[9].removeEventListener(MouseEvent.CLICK, klik9); mcJobItem[10].removeEventListener(MouseEvent.CLICK, klik10); mcJobItem[11].removeEventListener(MouseEvent.CLICK, klik11); mcJobItem[12].removeEventListener(MouseEvent.CLICK, klik12); bt_applyjobhos.removeEventListener(MouseEvent.CLICK, clickapplyjobhos); bt_backjobhos.removeEventListener(MouseEvent.CLICK, clickbackjobhos); removeEventListener(Event.ENTER_FRAME, funcEnterFrame); } } }//package com.jayz.dailylife.hospital
Section 33
//CHospitalScreen (com.jayz.dailylife.hospital.CHospitalScreen) package com.jayz.dailylife.hospital { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.utils.*; public class CHospitalScreen extends CScreen { var gs:CGameSession; private var pt:CPopText; public var myAvatar:CAvatar; public var bt_hoswork:SimpleButton; public var person1:MovieClip; public var person2:MovieClip; private var fee:int;// = 50 public var person4:MovieClip; var ss:CSound; public var bt_hosback:SimpleButton; private var ptTimer:Timer; public var bt_hosjob:SimpleButton; public var person3:MovieClip; var inf:CMcInfoText; public function CHospitalScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); inf = new CMcInfoText(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); fee = 50; super(); } override public function init(){ info(); if (gs.currentJob.place == "hospital"){ bt_hoswork.visible = true; } else { bt_hoswork.visible = false; }; setButtonListeners(); ifSick(); ss.playSound(CSound.bg_building); gs.setPersons(this); gs.setDayNight(this); } public function setButtonListeners(){ bt_hoswork.addEventListener(MouseEvent.CLICK, clickhoswork); bt_hosjob.addEventListener(MouseEvent.CLICK, clickhosjob); bt_hosback.addEventListener(MouseEvent.CLICK, clickhosback); } private function ifSick(){ if (pt.isShown){ return; }; if (gs.isSick){ gs.happiness = (gs.happiness - 100); pt = new CPopText("you have sent to the hospital", (("you sick for " + gs.health.sickDay.hari) + " day"), (("you pay $" + (gs.health.sickDay.hari * fee)) + " for it"), ""); if (gs.money >= (gs.health.sickDay.hari * fee)){ gs.money = (gs.money - (gs.health.sickDay.hari * fee)); } else { if (gs.saving >= (gs.health.sickDay.hari * fee)){ gs.saving = (gs.saving - (gs.health.sickDay.hari * fee)); } else { if ((gs.money + gs.saving) >= (gs.health.sickDay.hari * fee)){ gs.money = (gs.money - ((gs.health.sickDay.hari * fee) - gs.saving)); } else { gs.money = 0; gs.saving = 0; }; }; }; gs.currentTime = gs.addTime(gs.currentTime, gs.health.sickDay); gs.rentHomeStatusUpdate(gs.health.sickDay); pt.isShown = true; this.addChild(pt.popTx); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); ptTimer.start(); }; } public function clickhosjob(_arg1:Event){ if (pt.isShown){ return; }; this.nextScreenName = "hosjobscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function theEnd(_arg1:Event){ ss.stopSound(CSound.bg_building); pt.isShown = false; this.removeChild(pt.popTx); gs.health = new CHealth(14); gs.isSick = false; gs.eatWell = true; gs.sleepWell = true; gs.eatStatusUpdate(); gs.asal = new CLokasi(3, "hospital", 50, 132); gs.tujuan = new CLokasi(3, "hospital", 50, 132); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickhosback(_arg1:Event){ if (pt.isShown){ return; }; ss.stopSound(CSound.bg_building); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function info(){ inf.judul.text = "Hospital"; inf.line1.text = "open: 24 hours"; if (gs.currentJob.place == "hospital"){ inf.line2.text = ("you worked here as " + gs.currentJob.position); } else { inf.line2.text = ""; }; this.addChild(inf); } public function clickhoswork(_arg1:Event){ if (pt.isShown){ return; }; this.nextScreenName = "hosworkscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_hoswork.removeEventListener(MouseEvent.CLICK, clickhoswork); bt_hosjob.removeEventListener(MouseEvent.CLICK, clickhosjob); bt_hosback.removeEventListener(MouseEvent.CLICK, clickhosback); } } }//package com.jayz.dailylife.hospital
Section 34
//CHosWorkScreen (com.jayz.dailylife.hospital.CHosWorkScreen) package com.jayz.dailylife.hospital { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CHosWorkScreen extends CScreen { var gs:CGameSession; public var tx_moneygained:TextField; private var pt:CPopText; public var myAvatar:CAvatar; public var bt_backworkhos:SimpleButton; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; var ss:CSound; public var tx_clock:TextField; private var ptTimer:Timer; public var bt_workhos:SimpleButton; public var person3:MovieClip; public function CHosWorkScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } override public function init(){ tx_clock.text = gs.currentTime.toString(); tx_moneygained.text = String(gs.money); setButtonListeners(); gs.setPersons(this); gs.setDayNight(this); } private function clickworkhos(_arg1:Event){ if (pt.isShown){ return; }; trace("Kerja dirumah sakit "); ss.playSound(CSound.fx_work); gs.money = (gs.money + gs.currentJob.salary); gs.currentWorkHour.workHour[gs.currentJob.place] = (gs.currentWorkHour.workHour[gs.currentJob.place] + 1); tx_moneygained.text = String(gs.money); gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiKerja); tx_clock.text = gs.currentTime.toString(); gs.rentHomeStatusUpdate(gs.lamaSesiKerja); gs.eatStatusUpdate(); if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); ptTimer.start(); }; } private function clickbackworkhos(_arg1:Event){ if (pt.isShown){ return; }; this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function setButtonListeners(){ bt_workhos.addEventListener(MouseEvent.CLICK, clickworkhos); bt_backworkhos.addEventListener(MouseEvent.CLICK, clickbackworkhos); } private function theEnd(_arg1:Event){ ss.stopSound(CSound.bg_building); pt.isShown = false; this.removeChild(pt.popTx); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_workhos.removeEventListener(MouseEvent.CLICK, clickworkhos); bt_backworkhos.removeEventListener(MouseEvent.CLICK, clickbackworkhos); } } }//package com.jayz.dailylife.hospital
Section 35
//CLuxApartemenScreen (com.jayz.dailylife.luxapartement.CLuxApartemenScreen) package com.jayz.dailylife.luxapartement { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CLuxApartemenScreen extends CScreen { var gs:CGameSession; public var myAvatar:CAvatar; public var bt_rentlux:SimpleButton; public var person1:MovieClip; public var person2:MovieClip; public var bt_myroomlux:SimpleButton; public var person4:MovieClip; var ss:CSound; var fee:int;// = 750 public var person3:MovieClip; public var bt_back:SimpleButton; var inf:CMcInfoText; public function CLuxApartemenScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); fee = 750; inf = new CMcInfoText(); super(); } override public function init(){ if (gs.homeStatus != "luxApartement"){ bt_rentlux.visible = true; bt_myroomlux.visible = false; if (gs.money < fee){ bt_rentlux.visible = false; bt_myroomlux.visible = false; }; } else { bt_rentlux.visible = false; bt_myroomlux.visible = true; }; info(); setButtonListeners(); ss.playSound(CSound.bg_building); gs.setPersons(this); gs.setDayNight(this); } public function setButtonListeners(){ bt_rentlux.addEventListener(MouseEvent.CLICK, clickrentlux); bt_myroomlux.addEventListener(MouseEvent.CLICK, clickmyroomlux); bt_back.addEventListener(MouseEvent.CLICK, clickback); } public function clickback(_arg1:Event){ ss.stopSound(CSound.bg_building); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickmyroomlux(_arg1:Event){ this.nextScreenName = "luxapatemenviewscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function info(){ var _local1:int; inf.judul.text = "Lux Apartment"; inf.line1.text = "open: 24 hours"; inf.line2.text = "rent fee: $750/week"; if (gs.homeStatus == "luxApartement"){ _local1 = (gs.homeTimeRent.hari - gs.homeTimeCounter.hari); inf.line3.text = (("you lived here, " + String(_local1)) + " day remaining to expire"); } else { inf.line3.text = ""; }; this.addChild(inf); } public function clickrentlux(_arg1:Event){ bt_rentlux.visible = false; ss.playSound(CSound.fx_transaction); gs.money = (gs.money - fee); gs.homeStatus = "luxApartement"; bt_myroomlux.visible = true; gs.homeTimeCounter = new CTime(0, 0, 0); info(); } override public function destroy(){ gs.unsetPersons(this); bt_rentlux.removeEventListener(MouseEvent.CLICK, clickrentlux); bt_myroomlux.removeEventListener(MouseEvent.CLICK, clickmyroomlux); bt_back.removeEventListener(MouseEvent.CLICK, clickback); } } }//package com.jayz.dailylife.luxapartement
Section 36
//CLuxApartemenViewScreen (com.jayz.dailylife.luxapartement.CLuxApartemenViewScreen) package com.jayz.dailylife.luxapartement { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CLuxApartemenViewScreen extends CScreen { var gs:CGameSession; private var pt:CPopText; public var bt_sleeplux:SimpleButton; public var bt_citymaplux:SimpleButton; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; public var myAvatar:CAvatar; var ss:CSound; public var tx_clock:TextField; private var ptTimer:Timer; public var person3:MovieClip; private var isSleep:Boolean; public function CLuxApartemenViewScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } override public function init(){ tx_clock.text = gs.currentTime.toString(); setButtonListeners(); isSleep = false; gs.setPersons(this); gs.sleepHour = 0; gs.setDayNight(this); } public function clicksleeplux(_arg1:Event){ if (pt.isShown){ return; }; isSleep = true; gs.sleepHour++; gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiTidur); tx_clock.text = gs.currentTime.toString(); gs.rentHomeStatusUpdate(gs.lamaSesiTidur); gs.eatStatusUpdate(); if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); ptTimer.start(); }; } public function setButtonListeners(){ bt_sleeplux.addEventListener(MouseEvent.CLICK, clicksleeplux); bt_citymaplux.addEventListener(MouseEvent.CLICK, clickcitymaplux); } private function theEnd(_arg1:Event){ ss.stopSound(CSound.bg_building); pt.isShown = false; this.removeChild(pt.popTx); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickcitymaplux(_arg1:Event){ if (pt.isShown){ return; }; if (isSleep){ gs.sleepStatusUpdate(); }; this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_sleeplux.removeEventListener(MouseEvent.CLICK, clicksleeplux); bt_citymaplux.removeEventListener(MouseEvent.CLICK, clickcitymaplux); } } }//package com.jayz.dailylife.luxapartement
Section 37
//CJobOfficeScreen (com.jayz.dailylife.office.CJobOfficeScreen) package com.jayz.dailylife.office { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CJobOfficeScreen extends CScreen { var gs:CGameSession; var mcJobItem:Array; public var bt_backjoblistoff:SimpleButton; public var jobList:Array; public var bt_applyjoblistoff:SimpleButton; public function CJobOfficeScreen(){ gs = CGameSession.getInstance(); jobList = new Array(); mcJobItem = new Array(); super(); } override public function init(){ initJobList(); setButtonListeners(); gs.setDayNight(this); } private function clickapplyjoblistoff(_arg1:Event){ var _local2:int; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ gs.currentJob = jobList[_local2]; gs.career = jobList[_local2].careerPoint; mcJobItem[_local2].bg.alpha = 0; break; }; _local2++; }; clickbackjoblistoff(_arg1); trace(((gs.currentJob.position + " ") + String(gs.career))); } private function klik3(_arg1:Event){ var _local2:int; if (mcJobItem[3].textJobTitle.textColor != 0x999999){ mcJobItem[3].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 3){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik7(_arg1:Event){ var _local2:int; if (mcJobItem[7].textJobTitle.textColor != 0x999999){ mcJobItem[7].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 7){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function clickbackjoblistoff(_arg1:Event){ var _local2:int; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ mcJobItem[_local2].bg.alpha = 0; break; }; _local2++; }; this.nextScreenName = "officescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function klik1(_arg1:Event){ var _local2:int; if (mcJobItem[1].textJobTitle.textColor != 0x999999){ mcJobItem[1].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 1){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik6(_arg1:Event){ var _local2:int; if (mcJobItem[6].textJobTitle.textColor != 0x999999){ mcJobItem[6].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 6){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik8(_arg1:Event){ var _local2:int; if (mcJobItem[8].textJobTitle.textColor != 0x999999){ mcJobItem[8].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 8){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik2(_arg1:Event){ var _local2:int; if (mcJobItem[2].textJobTitle.textColor != 0x999999){ mcJobItem[2].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 2){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik9(_arg1:Event){ var _local2:int; if (mcJobItem[9].textJobTitle.textColor != 0x999999){ mcJobItem[9].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 9){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik4(_arg1:Event){ var _local2:int; if (mcJobItem[4].textJobTitle.textColor != 0x999999){ mcJobItem[4].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 4){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik5(_arg1:Event){ var _local2:int; if (mcJobItem[5].textJobTitle.textColor != 0x999999){ mcJobItem[5].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 5){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function funcEnterFrame(_arg1:Event){ var _local2:int; bt_applyjoblistoff.visible = false; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ bt_applyjoblistoff.visible = true; }; _local2++; }; } private function klik0(_arg1:Event){ var _local2:int; if (mcJobItem[0].textJobTitle.textColor != 0x999999){ mcJobItem[0].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 0){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik10(_arg1:Event){ var _local2:int; if (mcJobItem[10].textJobTitle.textColor != 0x999999){ mcJobItem[10].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 10){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function setButtonListeners(){ bt_applyjoblistoff.addEventListener(MouseEvent.CLICK, clickapplyjoblistoff); bt_backjoblistoff.addEventListener(MouseEvent.CLICK, clickbackjoblistoff); addEventListener(Event.ENTER_FRAME, funcEnterFrame); } private function initJobList(){ var _local1:int; var _local2:int; var _local3:int; trace("init job list"); jobList[0] = new CJob("office", "janitor", 7, "", new Array("NA"), 0, 500); jobList[1] = new CJob("office", "administration officer", 12, "min. 25 wh + diploma in EF", new Array("EF1", "ENG1"), 25, 1000); jobList[2] = new CJob("office", "production staff", 19, "min. 25 wh + diploma in ENG or EF", new Array("EF1", "ENG1"), 25, 1500); jobList[3] = new CJob("office", "supervisor", 23, "min. 70 wh + bachelor in ENG or EF", new Array("EF2", "ENG2"), 70, 2000); jobList[4] = new CJob("office", "junior accounting", 12, "min. 35 wh + diploma in acc", new Array("acc1"), 35, 1500); jobList[5] = new CJob("office", "accounting", 16, "min. 85 wh + bachelor in acc", new Array("acc2"), 85, 2000); jobList[6] = new CJob("office", "accounting manager", 24, "min. 95 wh + master in acc", new Array("acc3"), 95, 2500); jobList[7] = new CJob("office", "head of department", 28, "min. 120 wh + master in ENG or EF", new Array("EF3", "ENG3"), 120, 2500); jobList[8] = new CJob("office", "manager", 34, "min. 170 wh + master in ENG or EF", new Array("EF3", "ENG3"), 170, 3000); jobList[9] = new CJob("office", "general manager", 37, "min. 220 wh + master in ENG or EF", new Array("EF3", "ENG3"), 220, 4000); jobList[10] = new CJob("office", "director", 45, "min. 295 wh + master in ENG or EF", new Array("EF3", "ENG3"), 295, 5000); _local1 = 0; while (_local1 < jobList.length) { mcJobItem[_local1] = new CJobItem2(); mcJobItem[_local1].textJobTitle.text = jobList[_local1].position; mcJobItem[_local1].textJobReq.text = jobList[_local1].requirement; mcJobItem[_local1].textSalary.text = (("$" + String(jobList[_local1].salary)) + "/hour"); _local2 = 0; _local3 = 0; while (_local3 < jobList[_local1].academic.length) { trace(String(gs.currentWorkHour.workHour[jobList[_local1].place])); trace(String(gs.currentGelar.gelar[jobList[_local1].academic[_local3]])); if ((((gs.currentWorkHour.workHour[jobList[_local1].place] >= jobList[_local1].workHour)) && ((gs.currentGelar.gelar[jobList[_local1].academic[_local3]] == true)))){ _local2++; }; if (_local2 <= 0){ mcJobItem[_local1].textJobTitle.textColor = 0x999999; mcJobItem[_local1].textJobReq.textColor = 0x999999; mcJobItem[_local1].textSalary.textColor = 0x999999; } else { mcJobItem[_local1].textJobTitle.textColor = 0; mcJobItem[_local1].textJobReq.textColor = 0; mcJobItem[_local1].textSalary.textColor = 0; }; _local3++; }; mcJobItem[_local1].scaleY = 0.75; mcJobItem[_local1].x = 33; mcJobItem[_local1].y = (60 + (25 * _local1)); mcJobItem[_local1].bg.alpha = 0; addChild(mcJobItem[_local1]); _local1++; }; mcJobItem[0].addEventListener(MouseEvent.CLICK, klik0); mcJobItem[1].addEventListener(MouseEvent.CLICK, klik1); mcJobItem[2].addEventListener(MouseEvent.CLICK, klik2); mcJobItem[3].addEventListener(MouseEvent.CLICK, klik3); mcJobItem[4].addEventListener(MouseEvent.CLICK, klik4); mcJobItem[5].addEventListener(MouseEvent.CLICK, klik5); mcJobItem[6].addEventListener(MouseEvent.CLICK, klik6); mcJobItem[7].addEventListener(MouseEvent.CLICK, klik7); mcJobItem[8].addEventListener(MouseEvent.CLICK, klik8); mcJobItem[9].addEventListener(MouseEvent.CLICK, klik9); mcJobItem[10].addEventListener(MouseEvent.CLICK, klik10); } override public function destroy(){ mcJobItem[0].removeEventListener(MouseEvent.CLICK, klik0); mcJobItem[1].removeEventListener(MouseEvent.CLICK, klik1); mcJobItem[2].removeEventListener(MouseEvent.CLICK, klik2); mcJobItem[3].removeEventListener(MouseEvent.CLICK, klik3); mcJobItem[4].removeEventListener(MouseEvent.CLICK, klik4); mcJobItem[5].removeEventListener(MouseEvent.CLICK, klik5); mcJobItem[6].removeEventListener(MouseEvent.CLICK, klik6); mcJobItem[7].removeEventListener(MouseEvent.CLICK, klik7); mcJobItem[8].removeEventListener(MouseEvent.CLICK, klik8); mcJobItem[9].removeEventListener(MouseEvent.CLICK, klik9); mcJobItem[10].removeEventListener(MouseEvent.CLICK, klik10); bt_applyjoblistoff.removeEventListener(MouseEvent.CLICK, clickapplyjoblistoff); bt_backjoblistoff.removeEventListener(MouseEvent.CLICK, clickbackjoblistoff); removeEventListener(Event.ENTER_FRAME, funcEnterFrame); } } }//package com.jayz.dailylife.office
Section 38
//COfficeScreen (com.jayz.dailylife.office.COfficeScreen) package com.jayz.dailylife.office { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class COfficeScreen extends CScreen { var gs:CGameSession; public var bt_officejobapply:SimpleButton; public var myAvatar:CAvatar; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; var ss:CSound; public var bt_officeback:SimpleButton; public var person3:MovieClip; public var bt_officework:SimpleButton; var inf:CMcInfoText; public function COfficeScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); inf = new CMcInfoText(); super(); } override public function init(){ var _local1:int; info(); _local1 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKerjaOffice, gs.akhirJamKerjaOffice)){ bt_officejobapply.visible = true; bt_officework.visible = true; } else { bt_officejobapply.visible = false; bt_officework.visible = false; }; if ((((gs.currentJob.place == "office")) && (gs.currentTime.isInRange(gs.awalJamKerjaOffice, gs.akhirJamKerjaOffice)))){ bt_officework.visible = true; } else { bt_officework.visible = false; }; gs.currentTime.hari = _local1; setButtonListeners(); ss.playSound(CSound.bg_building); gs.setPersons(this); gs.setDayNight(this); } public function clickofficejobapply(_arg1:Event){ this.nextScreenName = "jobofficescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickofficeback(_arg1:Event){ ss.stopSound(CSound.bg_building); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function setButtonListeners(){ bt_officework.addEventListener(MouseEvent.CLICK, clickofficework); bt_officejobapply.addEventListener(MouseEvent.CLICK, clickofficejobapply); bt_officeback.addEventListener(MouseEvent.CLICK, clickofficeback); } public function clickofficework(_arg1:Event){ this.nextScreenName = "workofficescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function info(){ inf.judul.text = "Office"; inf.line1.text = ((("open: " + String(gs.awalJamKerjaOffice.jam)) + " - ") + String(gs.akhirJamKerjaOffice.jam)); if (gs.currentJob.place == "office"){ inf.line2.text = ("you worked here as " + gs.currentJob.position); } else { inf.line2.text = ""; }; this.addChild(inf); } override public function destroy(){ gs.setPersons(this); bt_officework.removeEventListener(MouseEvent.CLICK, clickofficework); bt_officejobapply.removeEventListener(MouseEvent.CLICK, clickofficejobapply); bt_officeback.removeEventListener(MouseEvent.CLICK, clickofficeback); } } }//package com.jayz.dailylife.office
Section 39
//CWorkOfficeScreen (com.jayz.dailylife.office.CWorkOfficeScreen) package com.jayz.dailylife.office { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CWorkOfficeScreen extends CScreen { var gs:CGameSession; public var tx_moneygained:TextField; public var bt_workoffice:SimpleButton; private var pt:CPopText; public var myAvatar:CAvatar; public var person1:MovieClip; public var person2:MovieClip; public var bt_backworkoff:SimpleButton; public var person4:MovieClip; var ss:CSound; public var tx_clock:TextField; private var ptTimer:Timer; public var person3:MovieClip; public function CWorkOfficeScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } override public function init(){ var _local1:int; _local1 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKerjaOffice, gs.akhirJamKerjaOffice)){ if (gs.currentJob.place != "office"){ bt_workoffice.visible = false; } else { bt_workoffice.visible = true; ss.playSound(CSound.bg_insideOffice); }; } else { bt_workoffice.visible = false; }; gs.currentTime.hari = _local1; tx_clock.text = gs.currentTime.toString(); tx_moneygained.text = String(gs.money); setButtonListeners(); gs.setPersons(this); gs.setDayNight(this); } private function setButtonListeners(){ bt_workoffice.addEventListener(MouseEvent.CLICK, clickworkoffice); bt_backworkoff.addEventListener(MouseEvent.CLICK, clickbackworkoff); } private function clickbackworkoff(_arg1:Event){ if (pt.isShown){ return; }; ss.stopSound(CSound.bg_insideOffice); this.nextScreenName = "officescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function clickworkoffice(_arg1:Event){ var _local2:int; if (pt.isShown){ return; }; trace("Kerja ... "); ss.playSound(CSound.fx_work); gs.money = (gs.money + gs.currentJob.salary); gs.currentWorkHour.workHour[gs.currentJob.place] = (gs.currentWorkHour.workHour[gs.currentJob.place] + 1); tx_moneygained.text = String(gs.money); gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiKerja); tx_clock.text = gs.currentTime.toString(); gs.rentHomeStatusUpdate(gs.lamaSesiKerja); gs.eatStatusUpdate(); _local2 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKerjaOffice, gs.akhirJamKerjaOffice)){ if (gs.currentJob.place != "office"){ bt_workoffice.visible = false; } else { bt_workoffice.visible = true; }; } else { bt_workoffice.visible = false; ss.stopSound(CSound.bg_insideOffice); }; gs.currentTime.hari = _local2; if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); ptTimer.start(); }; } private function theEnd(_arg1:Event){ ss.stopSound(CSound.bg_insideOffice); ss.stopSound(CSound.bg_building); pt.isShown = false; this.removeChild(pt.popTx); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_workoffice.removeEventListener(MouseEvent.CLICK, clickworkoffice); bt_backworkoff.removeEventListener(MouseEvent.CLICK, clickbackworkoff); } } }//package com.jayz.dailylife.office
Section 40
//CGoInsideScreen (com.jayz.dailylife.pub.CGoInsideScreen) package com.jayz.dailylife.pub { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CGoInsideScreen extends CScreen { var gs:CGameSession; private var pt:CPopText; public var myAvatar:CAvatar; public var bt_getdrunk:SimpleButton; public var bt_relax:SimpleButton; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; var ss:CSound; public var bt_backinsidepub:SimpleButton; private var ptTimer:Timer; public var tx_clock:TextField; public var person3:MovieClip; public function CGoInsideScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } public function clickrilex(_arg1:Event){ var _local2:int; if (pt.isShown){ return; }; trace("rilex"); gs.happiness = (gs.happiness + 100); gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiRelax); tx_clock.text = gs.currentTime.toString(); gs.rentHomeStatusUpdate(gs.lamaSesiRelax); gs.eatStatusUpdate(); _local2 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamBukaPub, gs.akhirJamBukaPub)){ bt_relax.visible = true; bt_getdrunk.visible = true; } else { bt_relax.visible = false; bt_getdrunk.visible = false; }; gs.currentTime.hari = _local2; if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.start(); }; } override public function init(){ var _local1:int; _local1 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamBukaPub, gs.akhirJamBukaPub)){ bt_relax.visible = true; bt_getdrunk.visible = true; } else { bt_relax.visible = false; bt_getdrunk.visible = false; }; gs.currentTime.hari = _local1; tx_clock.text = gs.currentTime.toString(); setButtonListeners(); ss.playSound(CSound.bg_insidePub); gs.setPersons(this); } public function setButtonListeners(){ bt_relax.addEventListener(MouseEvent.CLICK, clickrilex); bt_getdrunk.addEventListener(MouseEvent.CLICK, clickgetdrunk); bt_backinsidepub.addEventListener(MouseEvent.CLICK, clickbackinsidepub); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); } public function clickgetdrunk(_arg1:Event){ var _local2:int; if (pt.isShown){ return; }; trace("Ayo minum"); gs.happiness = (gs.happiness + 100); gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiDrunk); tx_clock.text = gs.currentTime.toString(); gs.rentHomeStatusUpdate(gs.lamaSesiDrunk); gs.eatStatusUpdate(); _local2 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamBukaPub, gs.akhirJamBukaPub)){ bt_relax.visible = true; bt_getdrunk.visible = true; } else { bt_relax.visible = false; bt_getdrunk.visible = false; }; gs.currentTime.hari = _local2; if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.start(); }; } private function theEnd(_arg1:Event){ ss.stopSound(CSound.bg_insidePub); pt.isShown = false; this.removeChild(pt.popTx); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickbackinsidepub(_arg1:Event){ if (pt.isShown){ return; }; ss.stopSound(CSound.bg_insidePub); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_relax.removeEventListener(MouseEvent.CLICK, clickrilex); bt_getdrunk.removeEventListener(MouseEvent.CLICK, clickgetdrunk); bt_backinsidepub.removeEventListener(MouseEvent.CLICK, clickbackinsidepub); } } }//package com.jayz.dailylife.pub
Section 41
//CPubScreen (com.jayz.dailylife.pub.CPubScreen) package com.jayz.dailylife.pub { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CPubScreen extends CScreen { var gs:CGameSession; var ticket:int;// = 40 public var myAvatar:CAvatar; public var bt_goinside:SimpleButton; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; var ss:CSound; public var person3:MovieClip; public var bt_backpub:SimpleButton; var inf:CMcInfoText; public function CPubScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); inf = new CMcInfoText(); ticket = 40; super(); } override public function init(){ var _local1:int; _local1 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamBukaPub, gs.akhirJamBukaPub)){ bt_goinside.visible = true; } else { bt_goinside.visible = false; }; gs.currentTime.hari = _local1; info(); setButtonListeners(); ss.playSound(CSound.bg_enterPub); gs.setPersons(this); gs.setDayNight(this); } public function clickgoinside(_arg1:Event){ gs.money = (gs.money - ticket); ss.stopSound(CSound.bg_enterPub); this.nextScreenName = "goinsidescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickbackpub(_arg1:Event){ ss.stopSound(CSound.bg_enterPub); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function setButtonListeners(){ bt_goinside.addEventListener(MouseEvent.CLICK, clickgoinside); bt_backpub.addEventListener(MouseEvent.CLICK, clickbackpub); } private function info(){ inf.judul.text = "Pub"; inf.line1.text = ((("open: " + String(gs.awalJamBukaPub.jam)) + " - ") + String(gs.akhirJamBukaPub.jam)); inf.line2.text = "ticket: $40"; this.addChild(inf); } override public function destroy(){ gs.unsetPersons(this); bt_goinside.removeEventListener(MouseEvent.CLICK, clickgoinside); bt_backpub.removeEventListener(MouseEvent.CLICK, clickbackpub); } } }//package com.jayz.dailylife.pub
Section 42
//CJobMallScreen (com.jayz.dailylife.shopping.CJobMallScreen) package com.jayz.dailylife.shopping { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CJobMallScreen extends CScreen { var gs:CGameSession; var mcJobItem:Array; public var bt_backjobmall:SimpleButton; public var jobList:Array; public var bt_applyjobmall:SimpleButton; public function CJobMallScreen(){ gs = CGameSession.getInstance(); jobList = new Array(); mcJobItem = new Array(); super(); } override public function init(){ initJobList(); setButtonListeners(); gs.setDayNight(this); } private function clickbackjobmall(_arg1:Event){ var _local2:int; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ mcJobItem[_local2].bg.alpha = 0; break; }; _local2++; }; this.nextScreenName = "mallscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function clickworkmall(_arg1:Event){ var _local2:int; trace("diterima kerja di mall "); _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ gs.currentJob = jobList[_local2]; gs.career = jobList[_local2].careerPoint; mcJobItem[_local2].bg.alpha = 0; break; }; _local2++; }; clickbackjobmall(_arg1); trace(((gs.currentJob.position + " ") + String(gs.career))); } private function klik3(_arg1:Event){ var _local2:int; if (mcJobItem[3].textJobTitle.textColor != 0x999999){ mcJobItem[3].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 3){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik7(_arg1:Event){ var _local2:int; if (mcJobItem[7].textJobTitle.textColor != 0x999999){ mcJobItem[7].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 7){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik1(_arg1:Event){ var _local2:int; if (mcJobItem[1].textJobTitle.textColor != 0x999999){ mcJobItem[1].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 1){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik6(_arg1:Event){ var _local2:int; if (mcJobItem[6].textJobTitle.textColor != 0x999999){ mcJobItem[6].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 6){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik8(_arg1:Event){ var _local2:int; if (mcJobItem[8].textJobTitle.textColor != 0x999999){ mcJobItem[8].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 8){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik2(_arg1:Event){ var _local2:int; if (mcJobItem[2].textJobTitle.textColor != 0x999999){ mcJobItem[2].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 2){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik9(_arg1:Event){ var _local2:int; if (mcJobItem[9].textJobTitle.textColor != 0x999999){ mcJobItem[9].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 9){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik4(_arg1:Event){ var _local2:int; if (mcJobItem[4].textJobTitle.textColor != 0x999999){ mcJobItem[4].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 4){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik5(_arg1:Event){ var _local2:int; if (mcJobItem[5].textJobTitle.textColor != 0x999999){ mcJobItem[5].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 5){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function funcEnterFrame(_arg1:Event){ var _local2:int; bt_applyjobmall.visible = false; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ bt_applyjobmall.visible = true; }; _local2++; }; } private function klik0(_arg1:Event){ var _local2:int; if (mcJobItem[0].textJobTitle.textColor != 0x999999){ mcJobItem[0].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 0){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function setButtonListeners(){ bt_applyjobmall.addEventListener(MouseEvent.CLICK, clickworkmall); bt_backjobmall.addEventListener(MouseEvent.CLICK, clickbackjobmall); addEventListener(Event.ENTER_FRAME, funcEnterFrame); } private function initJobList(){ var _local1:int; var _local2:int; var _local3:int; trace("init job list"); jobList[0] = new CJob("mall", "janitor", 7, "", new Array("NA"), 0, 500); jobList[1] = new CJob("mall", "cashier", 11, "min. 25 work hour + diploma in EF", new Array("EF1"), 25, 500); jobList[2] = new CJob("mall", "sales division", 13, "min. 35 work hour + diploma in EF", new Array("EF1"), 35, 1000); jobList[3] = new CJob("mall", "store supervisor", 18, "min. 75 work hour + bachelor in EF", new Array("EF2"), 75, 1500); jobList[4] = new CJob("mall", "junior accounting", 12, "min. 35 work hour + diploma in acc", new Array("acc1"), 35, 1500); jobList[5] = new CJob("mall", "accounting", 16, "min. 50 work hour + bachelor in acc", new Array("acc2"), 50, 2000); jobList[6] = new CJob("mall", "accounting manager", 22, "min. 60 work hour + master in acc", new Array("acc3"), 60, 2500); jobList[7] = new CJob("mall", "store manager", 25, "min. 125 work hour + master in EF", new Array("EF3"), 125, 3000); jobList[8] = new CJob("mall", "branch manager", 32, "min. 175 work hour + master in EF", new Array("EF3"), 175, 4000); jobList[9] = new CJob("mall", "director", 40, "min. 250 work hour + master in EF", new Array("EF3"), 250, 5000); _local1 = 0; while (_local1 < jobList.length) { mcJobItem[_local1] = new CJobItem2(); mcJobItem[_local1].textJobTitle.text = jobList[_local1].position; mcJobItem[_local1].textJobReq.text = jobList[_local1].requirement; mcJobItem[_local1].textSalary.text = (("$" + String(jobList[_local1].salary)) + "/hour"); _local2 = 0; _local3 = 0; while (_local3 < jobList[_local1].academic.length) { trace(String(gs.currentWorkHour.workHour[jobList[_local1].place])); trace(String(gs.currentGelar.gelar[jobList[_local1].academic[_local3]])); if ((((gs.currentWorkHour.workHour[jobList[_local1].place] >= jobList[_local1].workHour)) && ((gs.currentGelar.gelar[jobList[_local1].academic[_local3]] == true)))){ _local2++; }; if (_local2 <= 0){ mcJobItem[_local1].textJobTitle.textColor = 0x999999; mcJobItem[_local1].textJobReq.textColor = 0x999999; mcJobItem[_local1].textSalary.textColor = 0x999999; } else { mcJobItem[_local1].textJobTitle.textColor = 0; mcJobItem[_local1].textJobReq.textColor = 0; mcJobItem[_local1].textSalary.textColor = 0; }; _local3++; }; mcJobItem[_local1].scaleY = 0.75; mcJobItem[_local1].x = 33; mcJobItem[_local1].y = (60 + (25 * _local1)); mcJobItem[_local1].bg.alpha = 0; addChild(mcJobItem[_local1]); _local1++; }; mcJobItem[0].addEventListener(MouseEvent.CLICK, klik0); mcJobItem[1].addEventListener(MouseEvent.CLICK, klik1); mcJobItem[2].addEventListener(MouseEvent.CLICK, klik2); mcJobItem[3].addEventListener(MouseEvent.CLICK, klik3); mcJobItem[4].addEventListener(MouseEvent.CLICK, klik4); mcJobItem[5].addEventListener(MouseEvent.CLICK, klik5); mcJobItem[6].addEventListener(MouseEvent.CLICK, klik6); mcJobItem[7].addEventListener(MouseEvent.CLICK, klik7); mcJobItem[8].addEventListener(MouseEvent.CLICK, klik8); mcJobItem[9].addEventListener(MouseEvent.CLICK, klik9); } override public function destroy(){ mcJobItem[0].removeEventListener(MouseEvent.CLICK, klik0); mcJobItem[1].removeEventListener(MouseEvent.CLICK, klik1); mcJobItem[2].removeEventListener(MouseEvent.CLICK, klik2); mcJobItem[3].removeEventListener(MouseEvent.CLICK, klik3); mcJobItem[4].removeEventListener(MouseEvent.CLICK, klik4); mcJobItem[5].removeEventListener(MouseEvent.CLICK, klik5); mcJobItem[6].removeEventListener(MouseEvent.CLICK, klik6); mcJobItem[7].removeEventListener(MouseEvent.CLICK, klik7); mcJobItem[8].removeEventListener(MouseEvent.CLICK, klik8); mcJobItem[9].removeEventListener(MouseEvent.CLICK, klik9); bt_applyjobmall.removeEventListener(MouseEvent.CLICK, clickworkmall); bt_backjobmall.removeEventListener(MouseEvent.CLICK, clickbackjobmall); removeEventListener(Event.ENTER_FRAME, funcEnterFrame); } } }//package com.jayz.dailylife.shopping
Section 43
//CMallScreen (com.jayz.dailylife.shopping.CMallScreen) package com.jayz.dailylife.shopping { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CMallScreen extends CScreen { var gs:CGameSession; public var myAvatar:CAvatar; public var bt_shoping:SimpleButton; public var bt_jobmall:SimpleButton; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; var ss:CSound; public var bt_backmall:SimpleButton; public var person3:MovieClip; var inf:CMcInfoText; public var bt_workmall:SimpleButton; public function CMallScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); inf = new CMcInfoText(); super(); } override public function init(){ var _local1:int; info(); _local1 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKerjaMall, gs.akhirJamKerjaMall)){ bt_shoping.visible = true; bt_workmall.visible = true; bt_jobmall.visible = true; } else { bt_shoping.visible = false; bt_workmall.visible = false; bt_jobmall.visible = false; }; if ((((gs.currentJob.place == "mall")) && (gs.currentTime.isInRange(gs.awalJamKerjaMall, gs.akhirJamKerjaMall)))){ bt_workmall.visible = true; } else { bt_workmall.visible = false; }; gs.currentTime.hari = _local1; setButtonListeners(); ss.playSound(CSound.bg_building); gs.setPersons(this); gs.setDayNight(this); } public function clickbackmall(_arg1:Event){ ss.stopSound(CSound.bg_building); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickworkmall(_arg1:Event){ this.nextScreenName = "workmallscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function setButtonListeners(){ bt_shoping.addEventListener(MouseEvent.CLICK, clickshoping); bt_workmall.addEventListener(MouseEvent.CLICK, clickworkmall); bt_jobmall.addEventListener(MouseEvent.CLICK, clickjobmall); bt_backmall.addEventListener(MouseEvent.CLICK, clickbackmall); } public function clickshoping(_arg1:Event){ this.nextScreenName = "shoppingscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function info(){ inf.judul.text = "Mall"; inf.line1.text = ((("open: " + String(gs.awalJamKerjaMall.jam)) + " - ") + String(gs.akhirJamKerjaMall.jam)); if (gs.currentJob.place == "mall"){ inf.line2.text = ("you worked here as " + gs.currentJob.position); } else { inf.line2.text = ""; }; this.addChild(inf); } public function clickjobmall(_arg1:Event){ this.nextScreenName = "jobmallscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_shoping.removeEventListener(MouseEvent.CLICK, clickshoping); bt_workmall.removeEventListener(MouseEvent.CLICK, clickworkmall); bt_jobmall.removeEventListener(MouseEvent.CLICK, clickjobmall); bt_backmall.removeEventListener(MouseEvent.CLICK, clickbackmall); } } }//package com.jayz.dailylife.shopping
Section 44
//CShoppingScreen (com.jayz.dailylife.shopping.CShoppingScreen) package com.jayz.dailylife.shopping { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.utils.*; public class CShoppingScreen extends CScreen { var gs:CGameSession; public var bt_buyshoping:SimpleButton; public var bt_backshoping:SimpleButton; private var pt:CPopText; public var myAvatar:CAvatar; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; var ss:CSound; private var ptTimer:Timer; var mcGoods:Array; public var person3:MovieClip; public function CShoppingScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); mcGoods = new Array(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } private function initGoodsList(){ var _local1:int; _local1 = 0; while (_local1 < gs.goodsList.length) { mcGoods[_local1] = new CGoodsItem(); mcGoods[_local1].textName.text = gs.goodsList[_local1].name; mcGoods[_local1].textPrice.text = ("$" + gs.goodsList[_local1].price); if (gs.goodsList[_local1].isOwned){ mcGoods[_local1].textOwned.text = "you already have it!"; } else { mcGoods[_local1].textOwned.text = ""; }; if ((((gs.money >= gs.goodsList[_local1].price)) && (!(gs.goodsList[_local1].isOwned)))){ mcGoods[_local1].textName.textColor = 0; mcGoods[_local1].textPrice.textColor = 0; mcGoods[_local1].textOwned.textColor = 0; } else { mcGoods[_local1].textName.textColor = 0x999999; mcGoods[_local1].textPrice.textColor = 0x999999; mcGoods[_local1].textOwned.textColor = 0x999999; }; mcGoods[_local1].scaleY = 0.75; mcGoods[_local1].x = 134.1; mcGoods[_local1].y = (60 + (25 * _local1)); mcGoods[_local1].bg.alpha = 0; addChild(mcGoods[_local1]); _local1++; }; mcGoods[0].addEventListener(MouseEvent.CLICK, klik0); mcGoods[1].addEventListener(MouseEvent.CLICK, klik1); mcGoods[2].addEventListener(MouseEvent.CLICK, klik2); mcGoods[3].addEventListener(MouseEvent.CLICK, klik3); mcGoods[4].addEventListener(MouseEvent.CLICK, klik4); mcGoods[5].addEventListener(MouseEvent.CLICK, klik5); } override public function init(){ initGoodsList(); setButtonListeners(); gs.setPersons(this); gs.setDayNight(this); } private function klik3(_arg1:Event){ var _local2:int; if (mcGoods[3].textName.textColor == 0){ mcGoods[3].bg.alpha = 0.5; _local2 = 0; while (_local2 < gs.goodsList.length) { if (_local2 != 3){ mcGoods[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik1(_arg1:Event){ var _local2:int; if (mcGoods[1].textName.textColor == 0){ mcGoods[1].bg.alpha = 0.5; _local2 = 0; while (_local2 < gs.goodsList.length) { if (_local2 != 1){ mcGoods[_local2].bg.alpha = 0; }; _local2++; }; }; } public function setButtonListeners(){ bt_buyshoping.addEventListener(MouseEvent.CLICK, clickbuyshoping); bt_backshoping.addEventListener(MouseEvent.CLICK, clickbackshopping); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); } private function klik2(_arg1:Event){ var _local2:int; if (mcGoods[2].textName.textColor == 0){ mcGoods[2].bg.alpha = 0.5; _local2 = 0; while (_local2 < gs.goodsList.length) { if (_local2 != 2){ mcGoods[_local2].bg.alpha = 0; }; _local2++; }; }; } public function clickbuyshoping(_arg1:Event){ var _local2:int; if (pt.isShown){ return; }; ss.playSound(CSound.fx_transaction); _local2 = 0; while (_local2 < gs.goodsList.length) { if (mcGoods[_local2].bg.alpha == 0.5){ gs.money = (gs.money - gs.goodsList[_local2].price); gs.goodsList[_local2].isOwned = true; mcGoods[_local2].bg.alpha = 0; break; }; _local2++; }; gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiTransaksi); gs.eatStatusUpdate(); if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.start(); }; if (pt.isShown){ return; }; clickbackshopping(_arg1); } private function klik4(_arg1:Event){ var _local2:int; if (mcGoods[4].textName.textColor == 0){ mcGoods[4].bg.alpha = 0.5; _local2 = 0; while (_local2 < gs.goodsList.length) { if (_local2 != 4){ mcGoods[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik5(_arg1:Event){ var _local2:int; if (mcGoods[5].textName.textColor == 0){ mcGoods[5].bg.alpha = 0.5; _local2 = 0; while (_local2 < gs.goodsList.length) { if (_local2 != 5){ mcGoods[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik0(_arg1:Event){ var _local2:int; if (mcGoods[0].textName.textColor == 0){ mcGoods[0].bg.alpha = 0.5; _local2 = 0; while (_local2 < gs.goodsList.length) { if (_local2 != 0){ mcGoods[_local2].bg.alpha = 0; }; _local2++; }; }; } private function theEnd(_arg1:Event){ ss.stopSound(CSound.bg_building); pt.isShown = false; this.removeChild(pt.popTx); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickbackshopping(_arg1:Event){ if (pt.isShown){ return; }; this.nextScreenName = "mallscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ bt_buyshoping.removeEventListener(MouseEvent.CLICK, clickbuyshoping); bt_backshoping.removeEventListener(MouseEvent.CLICK, clickbackshopping); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); gs.unsetPersons(this); } } }//package com.jayz.dailylife.shopping
Section 45
//CWorkMallScreen (com.jayz.dailylife.shopping.CWorkMallScreen) package com.jayz.dailylife.shopping { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CWorkMallScreen extends CScreen { var gs:CGameSession; public var tx_moneygained:TextField; private var pt:CPopText; public var myAvatar:CAvatar; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; var ss:CSound; public var tx_clock:TextField; private var ptTimer:Timer; public var person3:MovieClip; public var bt_backwork:SimpleButton; public var bt_workmall:SimpleButton; public function CWorkMallScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } override public function init(){ tx_clock.text = gs.currentTime.toString(); tx_moneygained.text = String(gs.money); setButtonListeners(); gs.setPersons(this); gs.setDayNight(this); } private function clickbackworkmall(_arg1:Event){ if (pt.isShown){ return; }; this.nextScreenName = "mallscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function clickworkmall(_arg1:Event){ var _local2:int; if (pt.isShown){ return; }; ss.playSound(CSound.fx_work); trace("Kerja dimall "); gs.money = (gs.money + gs.currentJob.salary); gs.currentWorkHour.workHour[gs.currentJob.place] = (gs.currentWorkHour.workHour[gs.currentJob.place] + 1); tx_moneygained.text = String(gs.money); gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiKerja); tx_clock.text = gs.currentTime.toString(); gs.rentHomeStatusUpdate(gs.lamaSesiKerja); gs.eatStatusUpdate(); _local2 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKerjaMall, gs.akhirJamKerjaMall)){ if (gs.currentJob.place != "mall"){ bt_workmall.visible = false; } else { bt_workmall.visible = true; }; } else { bt_workmall.visible = false; }; gs.currentTime.hari = _local2; if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); ptTimer.start(); }; } private function setButtonListeners(){ bt_workmall.addEventListener(MouseEvent.CLICK, clickworkmall); bt_backwork.addEventListener(MouseEvent.CLICK, clickbackworkmall); } private function theEnd(_arg1:Event){ ss.stopSound(CSound.bg_building); pt.isShown = false; this.removeChild(pt.popTx); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_workmall.removeEventListener(MouseEvent.CLICK, clickworkmall); bt_backwork.removeEventListener(MouseEvent.CLICK, clickbackworkmall); } } }//package com.jayz.dailylife.shopping
Section 46
//CMovieScreen (com.jayz.dailylife.theater.CMovieScreen) package com.jayz.dailylife.theater { import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CMovieScreen extends CScreen { var gs:CGameSession; private var pt:CPopText; var movieTime:Timer; public var myAvatar:CAvatar; var ss:CSound; public var tx_clock:TextField; private var ptTimer:Timer; var lamaSesiFilm:CTime; public function CMovieScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); lamaSesiFilm = new CTime(0, 0, 15); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } override public function init(){ movieTime = new Timer(100, 8); setButtonListeners(); tx_clock.text = gs.currentTime.toString(); movieTime.start(); } private function nonton(_arg1:Event){ if (pt.isShown){ return; }; gs.currentTime = gs.addTime(gs.currentTime, lamaSesiFilm); tx_clock.text = gs.currentTime.toString(); gs.rentHomeStatusUpdate(lamaSesiFilm); if (gs.havePopCorn){ gs.eatWell = true; } else { gs.eatWell = false; }; gs.eatStatusUpdate(); if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.start(); }; } public function setButtonListeners(){ movieTime.addEventListener(TimerEvent.TIMER, nonton); movieTime.addEventListener(TimerEvent.TIMER_COMPLETE, selesai); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); } private function selesai(_arg1:Event){ gs.havePopCorn = false; if (pt.isShown){ return; }; this.nextScreenName = "theaterscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function theEnd(_arg1:Event){ pt.isShown = false; this.removeChild(pt.popTx); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ movieTime.removeEventListener(TimerEvent.TIMER, nonton); movieTime.removeEventListener(TimerEvent.TIMER_COMPLETE, selesai); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); } } }//package com.jayz.dailylife.theater
Section 47
//CTheaterScreen (com.jayz.dailylife.theater.CTheaterScreen) package com.jayz.dailylife.theater { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.utils.*; public class CTheaterScreen extends CScreen { var gs:CGameSession; private var pt:CPopText; public var myAvatar:CAvatar; public var bt_backtheatre:SimpleButton; public var bt_buypopcorn:SimpleButton; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; var ss:CSound; private var ptTimer:Timer; public var person3:MovieClip; public var bt_watchmovie:SimpleButton; var inf:CMcInfoText; public function CTheaterScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); inf = new CMcInfoText(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } override public function init(){ var _local1:int; info(); bt_watchmovie.visible = false; bt_buypopcorn.visible = false; _local1 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamBukaBioskop, gs.akhirJamBukaBioskop)){ if (gs.money < 40){ bt_watchmovie.visible = false; } else { bt_watchmovie.visible = true; }; if (gs.money < 5){ bt_buypopcorn.visible = false; } else { bt_buypopcorn.visible = true; }; }; gs.currentTime.hari = _local1; setButtonListeners(); ss.playSound(CSound.bg_enterTheatre); gs.setPersons(this); gs.setDayNight(this); } public function clickbacktheatre(_arg1:Event){ if (gs.havePopCorn){ if (pt.isShown){ return; }; gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiMakan); gs.rentHomeStatusUpdate(gs.lamaSesiMakan); gs.eatWell = true; gs.havePopCorn = false; gs.eatStatusUpdate(); if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); ptTimer.start(); if (pt.isShown){ return; }; }; }; this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickwatchmovie(_arg1:Event){ gs.money = (gs.money - 15); gs.happiness = (gs.happiness + 200); this.nextScreenName = "moviescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function setButtonListeners(){ bt_watchmovie.addEventListener(MouseEvent.CLICK, clickwatchmovie); bt_buypopcorn.addEventListener(MouseEvent.CLICK, clickbuypopcorn); bt_backtheatre.addEventListener(MouseEvent.CLICK, clickbacktheatre); } private function theEnd(_arg1:Event){ pt.isShown = false; this.removeChild(pt.popTx); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickbuypopcorn(_arg1:Event){ gs.money = (gs.money - 5); gs.havePopCorn = true; trace("beli pop corn"); } private function info(){ inf.judul.text = "Theatre"; inf.line1.text = ((("open: " + String(gs.awalJamBukaBioskop.jam)) + " - ") + String(gs.akhirJamBukaBioskop.jam)); inf.line2.text = "ticket: $15"; this.addChild(inf); } override public function destroy(){ gs.unsetPersons(this); bt_watchmovie.removeEventListener(MouseEvent.CLICK, clickwatchmovie); bt_buypopcorn.removeEventListener(MouseEvent.CLICK, clickbuypopcorn); bt_backtheatre.removeEventListener(MouseEvent.CLICK, clickbacktheatre); } } }//package com.jayz.dailylife.theater
Section 48
//CCollageScreen (com.jayz.dailylife.university.CCollageScreen) package com.jayz.dailylife.university { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CCollageScreen extends CScreen { var gs:CGameSession; public var bt_collback:SimpleButton; public var myAvatar:CAvatar; public var bt_colljob:SimpleButton; public var person1:MovieClip; public var bt_collwork:SimpleButton; public var person2:MovieClip; public var person4:MovieClip; public var bt_collenrol:SimpleButton; var ss:CSound; public var bt_collstudy:SimpleButton; public var person3:MovieClip; var inf:CMcInfoText; public function CCollageScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); inf = new CMcInfoText(); super(); } override public function init(){ var _local1:int; info(); _local1 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKuliah, gs.akhirJamKuliah)){ bt_collenrol.visible = true; bt_collstudy.visible = true; bt_collwork.visible = true; bt_colljob.visible = true; } else { bt_collenrol.visible = false; bt_collstudy.visible = false; bt_collwork.visible = false; bt_colljob.visible = false; }; if ((((gs.currentJob.place == "university")) && (gs.currentTime.isInRange(gs.awalJamKuliah, gs.akhirJamKuliah)))){ bt_collwork.visible = true; } else { bt_collwork.visible = false; }; if (((!((gs.currentStudy.prodi == null))) && (gs.currentTime.isInRange(gs.awalJamKuliah, gs.akhirJamKuliah)))){ bt_collstudy.visible = true; } else { bt_collstudy.visible = false; }; gs.currentTime.hari = _local1; setButtonListeners(); ss.playSound(CSound.bg_building); gs.setPersons(this); gs.setDayNight(this); } public function clickcollback(_arg1:Event){ ss.stopSound(CSound.bg_building); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function setButtonListeners(){ bt_collenrol.addEventListener(MouseEvent.CLICK, clickcollenrol); bt_collstudy.addEventListener(MouseEvent.CLICK, clickcollstudy); bt_collwork.addEventListener(MouseEvent.CLICK, clickcollwork); bt_colljob.addEventListener(MouseEvent.CLICK, clickcolljob); bt_collback.addEventListener(MouseEvent.CLICK, clickcollback); } public function clickcollwork(_arg1:Event){ this.nextScreenName = "workstudyscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickcollenrol(_arg1:Event){ this.nextScreenName = "enrollscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function info(){ inf.judul.text = "University"; inf.line1.text = ((("open: " + String(gs.awalJamKuliah.jam)) + " - ") + String(gs.akhirJamKuliah.jam)); if (gs.currentJob.place == "university"){ inf.line2.text = ("you worked here as " + gs.currentJob.position); if (gs.currentStudy.prodi != null){ inf.line3.text = (("currently you study at " + gs.currentStudy.prodi) + " program"); } else { inf.line3.text = ""; }; } else { if (gs.currentStudy.prodi != null){ inf.line2.text = (("currently you study at " + gs.currentStudy.prodi) + " program"); } else { inf.line2.text = ""; }; }; this.addChild(inf); } public function clickcolljob(_arg1:Event){ this.nextScreenName = "jobstudyscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickcollstudy(_arg1:Event){ this.nextScreenName = "studyscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_collenrol.removeEventListener(MouseEvent.CLICK, clickcollenrol); bt_collstudy.removeEventListener(MouseEvent.CLICK, clickcollstudy); bt_collwork.removeEventListener(MouseEvent.CLICK, clickcollwork); bt_colljob.removeEventListener(MouseEvent.CLICK, clickcolljob); bt_collback.removeEventListener(MouseEvent.CLICK, clickcollback); } } }//package com.jayz.dailylife.university
Section 49
//CEnrollScreen (com.jayz.dailylife.university.CEnrollScreen) package com.jayz.dailylife.university { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CEnrollScreen extends CScreen { var gs:CGameSession; var mcProdi:Array; public var studyList:Array; public var bt_enroll:SimpleButton; public var bt_backenroll:SimpleButton; public function CEnrollScreen(){ gs = CGameSession.getInstance(); studyList = new Array(); mcProdi = new Array(); super(); } public function clickenrol(_arg1:Event){ var _local2:int; trace("enroll"); _local2 = 0; while (_local2 < studyList.length) { if (mcProdi[_local2].bg.alpha == 0.5){ gs.currentStudy = studyList[_local2]; gs.money = (gs.money - studyList[_local2].fee); mcProdi[_local2].bg.alpha = 0; break; }; _local2++; }; clickbackenroll(_arg1); trace(("kuliah di " + gs.currentStudy.prodi)); } override public function init(){ initStudyList(); setButtonListeners(); gs.setDayNight(this); } private function klik3(_arg1:Event){ var _local2:int; if (mcProdi[3].textProdi.textColor == 0){ mcProdi[3].bg.alpha = 0.5; _local2 = 0; while (_local2 < studyList.length) { if (_local2 != 3){ mcProdi[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik7(_arg1:Event){ var _local2:int; if (mcProdi[7].textProdi.textColor == 0){ mcProdi[7].bg.alpha = 0.5; _local2 = 0; while (_local2 < studyList.length) { if (_local2 != 7){ mcProdi[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik6(_arg1:Event){ var _local2:int; if (mcProdi[6].textProdi.textColor == 0){ mcProdi[6].bg.alpha = 0.5; _local2 = 0; while (_local2 < studyList.length) { if (_local2 != 6){ mcProdi[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik8(_arg1:Event){ var _local2:int; if (mcProdi[8].textProdi.textColor == 0){ mcProdi[8].bg.alpha = 0.5; _local2 = 0; while (_local2 < studyList.length) { if (_local2 != 8){ mcProdi[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik1(_arg1:Event){ var _local2:int; if (mcProdi[1].textProdi.textColor == 0){ mcProdi[1].bg.alpha = 0.5; _local2 = 0; while (_local2 < studyList.length) { if (_local2 != 1){ mcProdi[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik2(_arg1:Event){ var _local2:int; if (mcProdi[2].textProdi.textColor == 0){ mcProdi[2].bg.alpha = 0.5; _local2 = 0; while (_local2 < studyList.length) { if (_local2 != 2){ mcProdi[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik9(_arg1:Event){ var _local2:int; if (mcProdi[9].textProdi.textColor == 0){ mcProdi[9].bg.alpha = 0.5; _local2 = 0; while (_local2 < studyList.length) { if (_local2 != 9){ mcProdi[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik4(_arg1:Event){ var _local2:int; if (mcProdi[4].textProdi.textColor == 0){ mcProdi[4].bg.alpha = 0.5; _local2 = 0; while (_local2 < studyList.length) { if (_local2 != 4){ mcProdi[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik5(_arg1:Event){ var _local2:int; if (mcProdi[5].textProdi.textColor == 0){ mcProdi[5].bg.alpha = 0.5; _local2 = 0; while (_local2 < studyList.length) { if (_local2 != 5){ mcProdi[_local2].bg.alpha = 0; }; _local2++; }; }; } private function funcEnterFrame(_arg1:Event){ var _local2:int; bt_enroll.visible = false; _local2 = 0; while (_local2 < studyList.length) { if (mcProdi[_local2].bg.alpha == 0.5){ bt_enroll.visible = true; }; _local2++; }; } private function klik0(_arg1:Event){ var _local2:int; if (mcProdi[0].textProdi.textColor == 0){ mcProdi[0].bg.alpha = 0.5; _local2 = 0; while (_local2 < studyList.length) { if (_local2 != 0){ mcProdi[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik10(_arg1:Event){ var _local2:int; if (mcProdi[10].textProdi.textColor == 0){ mcProdi[10].bg.alpha = 0.5; _local2 = 0; while (_local2 < studyList.length) { if (_local2 != 10){ mcProdi[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik13(_arg1:Event){ var _local2:int; if (mcProdi[13].textProdi.textColor == 0){ mcProdi[13].bg.alpha = 0.5; _local2 = 0; while (_local2 < studyList.length) { if (_local2 != 13){ mcProdi[_local2].bg.alpha = 0; }; _local2++; }; }; } public function setButtonListeners(){ bt_enroll.addEventListener(MouseEvent.CLICK, clickenrol); bt_backenroll.addEventListener(MouseEvent.CLICK, clickbackenroll); addEventListener(Event.ENTER_FRAME, funcEnterFrame); } private function klik12(_arg1:Event){ var _local2:int; if (mcProdi[12].textProdi.textColor == 0){ mcProdi[12].bg.alpha = 0.5; _local2 = 0; while (_local2 < studyList.length) { if (_local2 != 12){ mcProdi[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik11(_arg1:Event){ var _local2:int; if (mcProdi[11].textProdi.textColor == 0){ mcProdi[11].bg.alpha = 0.5; _local2 = 0; while (_local2 < studyList.length) { if (_local2 != 11){ mcProdi[_local2].bg.alpha = 0; }; _local2++; }; }; } public function clickbackenroll(_arg1:Event){ var _local2:int; _local2 = 0; while (_local2 < studyList.length) { if (mcProdi[_local2].bg.alpha == 0.5){ mcProdi[_local2].bg.alpha = 0; break; }; _local2++; }; this.nextScreenName = "collagescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function initStudyList(){ var _local1:int; trace("init study list"); studyList[0] = new CStudy("Economy & Finance", "Administration diploma", "NA", "adm1", 75, 0, 15, 250); studyList[1] = new CStudy("Economy & Finance", "Administration bachelor", "adm1", "adm2", 125, 0, 25, 500); studyList[2] = new CStudy("Economy & Finance", "Administration magister", "adm2", "adm3", 250, 0, 50, 750); studyList[3] = new CStudy("Economy & Finance", "Accounting diploma", "NA", "acc1", 75, 0, 15, 300); studyList[4] = new CStudy("Economy & Finance", "Accounting bachelor", "acc1", "acc2", 150, 0, 30, 500); studyList[5] = new CStudy("Economy & Finance", "Accounting magister", "acc2", "acc3", 300, 0, 60, 1200); studyList[6] = new CStudy("Economy & Finance", "Management bachelor", "NA", "mgt2", 200, 0, 40, 500); studyList[7] = new CStudy("Economy & Finance", "Management magister", "mgt2", "mgt3", 300, 0, 60, 1000); studyList[8] = new CStudy("Engineering", "Engineering diploma", "NA", "eng1", 150, 0, 30, 750); studyList[9] = new CStudy("Engineering", "Engineering bachelor", "eng1", "eng2", 350, 0, 70, 1250); studyList[10] = new CStudy("Engineering", "Engineering magister", "eng2", "eng3", 500, 0, 100, 1500); studyList[11] = new CStudy("Medical", "Medical Doctor", "NA", "medDr", 750, 0, 150, 3000); studyList[12] = new CStudy("Medical", "Internist Specialist", "NA", "inSp", 875, 0, 75, 1000); studyList[13] = new CStudy("Medical", "Surgeon", "NA", "sur", 875, 0, 75, 1000); _local1 = 0; while (_local1 < studyList.length) { mcProdi[_local1] = new CProdi(); mcProdi[_local1].textFakultas.text = studyList[_local1].fakultas; mcProdi[_local1].textProdi.text = studyList[_local1].prodi; mcProdi[_local1].textFee.text = ("$" + String(studyList[_local1].fee)); if ((((((gs.currentGelar.gelar[studyList[_local1].requirement] == true)) && ((gs.currentGelar.gelar[studyList[_local1].lulus] == false)))) && ((gs.money >= studyList[_local1].fee)))){ mcProdi[_local1].textFakultas.textColor = 0; mcProdi[_local1].textProdi.textColor = 0; mcProdi[_local1].textFee.textColor = 0; } else { mcProdi[_local1].textFakultas.textColor = 0x999999; mcProdi[_local1].textProdi.textColor = 0x999999; mcProdi[_local1].textFee.textColor = 0x999999; }; mcProdi[_local1].scaleY = 0.75; mcProdi[_local1].x = 33; mcProdi[_local1].y = (60 + (25 * _local1)); mcProdi[_local1].bg.alpha = 0; addChild(mcProdi[_local1]); _local1++; }; mcProdi[0].addEventListener(MouseEvent.CLICK, klik0); mcProdi[1].addEventListener(MouseEvent.CLICK, klik1); mcProdi[2].addEventListener(MouseEvent.CLICK, klik2); mcProdi[3].addEventListener(MouseEvent.CLICK, klik3); mcProdi[4].addEventListener(MouseEvent.CLICK, klik4); mcProdi[5].addEventListener(MouseEvent.CLICK, klik5); mcProdi[6].addEventListener(MouseEvent.CLICK, klik6); mcProdi[7].addEventListener(MouseEvent.CLICK, klik7); mcProdi[8].addEventListener(MouseEvent.CLICK, klik8); mcProdi[9].addEventListener(MouseEvent.CLICK, klik9); mcProdi[10].addEventListener(MouseEvent.CLICK, klik10); mcProdi[11].addEventListener(MouseEvent.CLICK, klik11); mcProdi[12].addEventListener(MouseEvent.CLICK, klik12); mcProdi[13].addEventListener(MouseEvent.CLICK, klik13); } override public function destroy(){ mcProdi[0].removeEventListener(MouseEvent.CLICK, klik0); mcProdi[1].removeEventListener(MouseEvent.CLICK, klik1); mcProdi[2].removeEventListener(MouseEvent.CLICK, klik2); mcProdi[3].removeEventListener(MouseEvent.CLICK, klik3); mcProdi[4].removeEventListener(MouseEvent.CLICK, klik4); mcProdi[5].removeEventListener(MouseEvent.CLICK, klik5); mcProdi[6].removeEventListener(MouseEvent.CLICK, klik6); mcProdi[7].removeEventListener(MouseEvent.CLICK, klik7); mcProdi[8].removeEventListener(MouseEvent.CLICK, klik8); mcProdi[9].removeEventListener(MouseEvent.CLICK, klik9); mcProdi[10].removeEventListener(MouseEvent.CLICK, klik10); mcProdi[11].removeEventListener(MouseEvent.CLICK, klik11); mcProdi[12].removeEventListener(MouseEvent.CLICK, klik12); mcProdi[13].removeEventListener(MouseEvent.CLICK, klik13); bt_enroll.removeEventListener(MouseEvent.CLICK, clickenrol); bt_backenroll.removeEventListener(MouseEvent.CLICK, clickbackenroll); removeEventListener(Event.ENTER_FRAME, funcEnterFrame); } } }//package com.jayz.dailylife.university
Section 50
//CJobStudyScreen (com.jayz.dailylife.university.CJobStudyScreen) package com.jayz.dailylife.university { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CJobStudyScreen extends CScreen { public var bt_backjobcoll:SimpleButton; var mcJobItem:Array; var gs:CGameSession; public var jobList:Array; public var bt_applyjobcoll:SimpleButton; public function CJobStudyScreen(){ gs = CGameSession.getInstance(); jobList = new Array(); mcJobItem = new Array(); super(); } override public function init(){ initJobList(); setButtonListeners(); gs.setDayNight(this); } private function clickbackworkjobcoll(_arg1:Event){ var _local2:int; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ mcJobItem[_local2].bg.alpha = 0; break; }; _local2++; }; this.nextScreenName = "collagescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function klik3(_arg1:Event){ var _local2:int; if (mcJobItem[3].textJobTitle.textColor != 0x999999){ mcJobItem[3].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 3){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function klik1(_arg1:Event){ var _local2:int; if (mcJobItem[1].textJobTitle.textColor != 0x999999){ mcJobItem[1].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 1){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function setButtonListeners(){ bt_applyjobcoll.addEventListener(MouseEvent.CLICK, clickapplyjobcoll); bt_backjobcoll.addEventListener(MouseEvent.CLICK, clickbackworkjobcoll); addEventListener(Event.ENTER_FRAME, funcEnterFrame); } private function klik2(_arg1:Event){ var _local2:int; if (mcJobItem[2].textJobTitle.textColor != 0x999999){ mcJobItem[2].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 2){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function clickapplyjobcoll(_arg1:Event){ var _local2:int; trace("Kerja ... "); _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ gs.currentJob = jobList[_local2]; gs.career = jobList[_local2].careerPoint; mcJobItem[_local2].bg.alpha = 0; break; }; _local2++; }; clickbackworkjobcoll(_arg1); trace(((gs.currentJob.position + " ") + String(gs.career))); } private function klik4(_arg1:Event){ var _local2:int; if (mcJobItem[4].textJobTitle.textColor != 0x999999){ mcJobItem[4].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 4){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function funcEnterFrame(_arg1:Event){ var _local2:int; bt_applyjobcoll.visible = false; _local2 = 0; while (_local2 < jobList.length) { if (mcJobItem[_local2].bg.alpha == 0.5){ bt_applyjobcoll.visible = true; }; _local2++; }; } private function klik0(_arg1:Event){ var _local2:int; if (mcJobItem[0].textJobTitle.textColor != 0x999999){ mcJobItem[0].bg.alpha = 0.5; _local2 = 0; while (_local2 < jobList.length) { if (_local2 != 0){ mcJobItem[_local2].bg.alpha = 0; }; _local2++; }; }; } private function initJobList(){ var _local1:int; var _local2:int; var _local3:int; jobList[0] = new CJob("university", "janitor", 6, "", new Array("NA"), 0, 500); jobList[1] = new CJob("university", "librarian", 8, "min. 20 work hour", new Array("NA"), 20, 1000); jobList[2] = new CJob("university", "administration", 12, "min. 50 wh + bachelor in EF", new Array("EF2"), 50, 1500); jobList[3] = new CJob("university", "lecturer", 18, "any master degree", new Array("EF3", "ENG3"), 0, 2000); jobList[4] = new CJob("university", "head of university", 25, "min. 100 work hour + any master degree", new Array("EF3", "ENG3"), 100, 2500); _local1 = 0; while (_local1 < jobList.length) { mcJobItem[_local1] = new CJobItem2(); mcJobItem[_local1].textJobTitle.text = jobList[_local1].position; mcJobItem[_local1].textJobReq.text = jobList[_local1].requirement; mcJobItem[_local1].textSalary.text = (("$" + String(jobList[_local1].salary)) + "/hour"); _local2 = 0; _local3 = 0; while (_local3 < jobList[_local1].academic.length) { trace(String(gs.currentWorkHour.workHour[jobList[_local1].place])); trace(String(gs.currentGelar.gelar[jobList[_local1].academic[_local3]])); if ((((gs.currentWorkHour.workHour[jobList[_local1].place] >= jobList[_local1].workHour)) && ((gs.currentGelar.gelar[jobList[_local1].academic[_local3]] == true)))){ _local2++; }; if (_local2 <= 0){ mcJobItem[_local1].textJobTitle.textColor = 0x999999; mcJobItem[_local1].textJobReq.textColor = 0x999999; mcJobItem[_local1].textSalary.textColor = 0x999999; } else { mcJobItem[_local1].textJobTitle.textColor = 0; mcJobItem[_local1].textJobReq.textColor = 0; mcJobItem[_local1].textSalary.textColor = 0; }; _local3++; }; mcJobItem[_local1].scaleY = 0.75; mcJobItem[_local1].x = 33; mcJobItem[_local1].y = (60 + (25 * _local1)); mcJobItem[_local1].bg.alpha = 0; addChild(mcJobItem[_local1]); _local1++; }; mcJobItem[0].addEventListener(MouseEvent.CLICK, klik0); mcJobItem[1].addEventListener(MouseEvent.CLICK, klik1); mcJobItem[2].addEventListener(MouseEvent.CLICK, klik2); mcJobItem[3].addEventListener(MouseEvent.CLICK, klik3); mcJobItem[4].addEventListener(MouseEvent.CLICK, klik4); } override public function destroy(){ mcJobItem[0].removeEventListener(MouseEvent.CLICK, klik0); mcJobItem[1].removeEventListener(MouseEvent.CLICK, klik1); mcJobItem[2].removeEventListener(MouseEvent.CLICK, klik2); mcJobItem[3].removeEventListener(MouseEvent.CLICK, klik3); mcJobItem[4].removeEventListener(MouseEvent.CLICK, klik4); bt_applyjobcoll.removeEventListener(MouseEvent.CLICK, clickapplyjobcoll); bt_backjobcoll.removeEventListener(MouseEvent.CLICK, clickbackworkjobcoll); removeEventListener(Event.ENTER_FRAME, funcEnterFrame); } } }//package com.jayz.dailylife.university
Section 51
//CStudyScreen (com.jayz.dailylife.university.CStudyScreen) package com.jayz.dailylife.university { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CStudyScreen extends CScreen { var gs:CGameSession; private var pt:CPopText; public var myAvatar:CAvatar; public var bt_backcol:SimpleButton; public var person1:MovieClip; public var person2:MovieClip; public var bt_studycoll:SimpleButton; var ss:CSound; public var tx_hourleft:TextField; public var person4:MovieClip; private var ptTimer:Timer; private var ptTimer2:Timer; public var tx_clock:TextField; private var pt2:CPopText; public var tx_hour:TextField; public var person3:MovieClip; public function CStudyScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); pt2 = new CPopText("", "", "", ""); ptTimer2 = new Timer(5000, 1); super(); } public function clickenrol(_arg1:Event){ var _local2:int; var _local3:int; if (pt.isShown){ return; }; if (pt2.isShown){ return; }; gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiStudy); gs.currentStudy.studyHour++; _local2 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKuliah, gs.akhirJamKuliah)){ bt_studycoll.visible = true; if (pt2.isShown){ return; }; if (gs.currentStudy.studyHour >= gs.currentStudy.studyHourToPass){ gs.currentGelar.gelar[gs.currentStudy.lulus] = true; gs.knowledge = (gs.knowledge + gs.currentStudy.knowledgePoint); transStudyToGelar(); pt2 = new CPopText("", "CONGRATULATION!!!", ("you graduated from " + gs.currentStudy.prodi), ""); pt2.isShown = true; this.addChild(pt2.popTx); ptTimer2.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd2); ptTimer2.start(); gs.currentStudy = new CStudy(null, null, null, null, 0, 0, 0, 0); bt_studycoll.visible = false; }; } else { bt_studycoll.visible = false; if (pt2.isShown){ return; }; if (gs.currentStudy.studyHour >= gs.currentStudy.studyHourToPass){ gs.currentGelar.gelar[gs.currentStudy.lulus] = true; gs.knowledge = (gs.knowledge + gs.currentStudy.knowledgePoint); transStudyToGelar(); pt2 = new CPopText("", "CONGRATULATION!!!", ("you graduated from " + gs.currentStudy.prodi), ""); pt2.isShown = true; this.addChild(pt2.popTx); ptTimer2.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd2); ptTimer2.start(); gs.currentStudy = new CStudy(null, null, null, null, 0, 0, 0, 0); bt_studycoll.visible = false; }; }; gs.currentTime.hari = _local2; tx_clock.text = gs.currentTime.toString(); tx_hour.text = (String(gs.currentStudy.studyHour) + " hour"); _local3 = (gs.currentStudy.studyHourToPass - gs.currentStudy.studyHour); tx_hourleft.text = (String(_local3) + " hour"); gs.rentHomeStatusUpdate(gs.lamaSesiStudy); gs.eatStatusUpdate(); if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); ptTimer.start(); }; } override public function init(){ var _local1:int; var _local2:int; _local1 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKuliah, gs.akhirJamKuliah)){ bt_studycoll.visible = true; } else { bt_studycoll.visible = false; }; gs.currentTime.hari = _local1; tx_clock.text = gs.currentTime.toString(); tx_hour.text = (String(gs.currentStudy.studyHour) + " hour"); _local2 = (gs.currentStudy.studyHourToPass - gs.currentStudy.studyHour); tx_hourleft.text = (String(_local2) + " hour"); setButtonListeners(); gs.setPersons(this); gs.setDayNight(this); } private function transStudyToGelar(){ if ((((gs.currentStudy.lulus == "adm1")) || ((gs.currentStudy.lulus == "acc1")))){ gs.currentGelar.gelar["EF1"] = true; } else { if ((((((gs.currentStudy.lulus == "adm2")) || ((gs.currentStudy.lulus == "acc2")))) || ((gs.currentStudy.lulus == "mgt2")))){ gs.currentGelar.gelar["EF2"] = true; } else { if ((((((gs.currentStudy.lulus == "adm3")) || ((gs.currentStudy.lulus == "acc3")))) || ((gs.currentStudy.lulus == "mgt3")))){ gs.currentGelar.gelar["EF3"] = true; } else { if (gs.currentStudy.lulus == "eng1"){ gs.currentGelar.gelar["ENG1"] = true; } else { if (gs.currentStudy.lulus == "eng2"){ gs.currentGelar.gelar["ENG2"] = true; } else { if (gs.currentStudy.lulus == "eng3"){ gs.currentGelar.gelar["ENG3"] = true; } else { if ((((((gs.currentStudy.lulus == "medDr")) || ((gs.currentStudy.lulus == "inSp")))) || ((gs.currentStudy.lulus == "sur")))){ gs.currentGelar.gelar["MED"] = true; }; }; }; }; }; }; }; } public function setButtonListeners(){ bt_studycoll.addEventListener(MouseEvent.CLICK, clickenrol); bt_backcol.addEventListener(MouseEvent.CLICK, clickbackenroll); } private function theEnd(_arg1:Event){ ss.stopSound(CSound.bg_building); pt.isShown = false; this.removeChild(pt.popTx); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickbackenroll(_arg1:Event){ if (pt.isShown){ return; }; if (pt2.isShown){ return; }; this.nextScreenName = "collagescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function theEnd2(_arg1:Event){ ss.stopSound(CSound.bg_building); pt2.isShown = false; this.removeChild(pt2.popTx); ptTimer2.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd2); this.nextScreenName = "collagescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_studycoll.removeEventListener(MouseEvent.CLICK, clickenrol); bt_backcol.removeEventListener(MouseEvent.CLICK, clickbackenroll); } } }//package com.jayz.dailylife.university
Section 52
//CWorkStudyScreen (com.jayz.dailylife.university.CWorkStudyScreen) package com.jayz.dailylife.university { import flash.display.*; import com.jayz.dailylife.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CWorkStudyScreen extends CScreen { var gs:CGameSession; public var tx_moneygained:TextField; private var pt:CPopText; public var myAvatar:CAvatar; public var bt_backworkcoll:SimpleButton; public var person1:MovieClip; public var person2:MovieClip; public var person4:MovieClip; var ss:CSound; public var tx_clock:TextField; private var ptTimer:Timer; public var person3:MovieClip; public var bt_workcoll:SimpleButton; public function CWorkStudyScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } private function clickbackworkcoll(_arg1:Event){ if (pt.isShown){ return; }; this.nextScreenName = "collagescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function init(){ var _local1:int; tx_clock.text = gs.currentTime.toString(); tx_moneygained.text = String(gs.money); _local1 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKuliah, gs.akhirJamKuliah)){ bt_workcoll.visible = true; } else { bt_workcoll.visible = false; }; gs.currentTime.hari = _local1; setButtonListeners(); gs.setPersons(this); gs.setDayNight(this); } private function clickworkcoll(_arg1:Event){ var _local2:int; if (pt.isShown){ return; }; ss.playSound(CSound.fx_work); trace("Kerja ... "); gs.money = (gs.money + gs.currentJob.salary); gs.currentWorkHour.workHour[gs.currentJob.place] = (gs.currentWorkHour.workHour[gs.currentJob.place] + 1); tx_moneygained.text = String(gs.money); gs.currentTime = gs.addTime(gs.currentTime, gs.lamaSesiKerja); tx_clock.text = gs.currentTime.toString(); gs.rentHomeStatusUpdate(gs.lamaSesiKerja); gs.eatStatusUpdate(); _local2 = gs.currentTime.hari; gs.currentTime.hari = 0; if (gs.currentTime.isInRange(gs.awalJamKuliah, gs.akhirJamKuliah)){ bt_workcoll.visible = true; } else { bt_workcoll.visible = false; }; gs.currentTime.hari = _local2; if (pt.isShown){ return; }; if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.start(); }; } private function setButtonListeners(){ bt_workcoll.addEventListener(MouseEvent.CLICK, clickworkcoll); bt_backworkcoll.addEventListener(MouseEvent.CLICK, clickbackworkcoll); } private function theEnd(_arg1:Event){ ss.stopSound(CSound.bg_building); pt.isShown = false; this.removeChild(pt.popTx); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ gs.unsetPersons(this); bt_workcoll.removeEventListener(MouseEvent.CLICK, clickworkcoll); bt_backworkcoll.removeEventListener(MouseEvent.CLICK, clickbackworkcoll); } } }//package com.jayz.dailylife.university
Section 53
//Application (com.jayz.dailylife.Application) package com.jayz.dailylife { import flash.display.*; import flash.events.*; import mochi.*; public class Application extends MovieClip { private var SC_MOVIESCREEN;// = "moviescreen" private var scm:CScreenManager; private var SC_ENROLLSCREEN;// = "enrollscreen" public var _mochiad:MovieClip; private var SC_FACTORYSCREEN;// = "factoryscreen" private var SC_GOINSIDESCREEN;// = "goinsidescreen" private var SC_LUXAPARTEMENSCREEN;// = "luxapatemenscreen" private var SC_GAMESCREEN;// = "gamescreen" public var _mochiad_loaded:Boolean; private var SC_MEALMENUSCREEN;// = "mealmenuscreen" private var SC_PRELOADERSCREEN;// = "preloaderscreen" private var SC_HOSWORKSCREEN;// = "hosworkscreen" private var SC_STATUSSCREEN;// = "statusscreen" private var SC_JOBOFFICESCREEN;// = "jobofficescreen" private var SC_BANKSERVICESCREEN;// = "bankservicescreen" private var SC_PUBSCREEN;// = "pubscreen" private var SC_HIGHSCORESCREEN;// = "highscorescreen" private var SC_LUXAPARTEMENVIEWSCREEN;// = "luxapatemenviewscreen" public var progressBar:MovieClip; private var SC_JOBFFSCREEN;// = "jobffscreen" private var SC_FACTORYJOBSCREEN;// = "factoryjobscreen" private var SC_WORKFFSCREEN;// = "workffscreen" private var SC_MALLSCREEN;// = "mallscreen" private var SC_MAINMENUSCREEN;// = "mainmenuscreen" private var SC_HOSPITALSCREEN;// = "hospitalscreen" private var SC_BANKSCREEN;// = "bankscreen" private var SC_COLLAGESCREEN;// = "collagescreen" private var SC_FACTORYWORKSCREEN;// = "factoryworkscreen" private var SC_CHATSCREEN;// = "chatscreen" private var SC_WORKMALLSCREEN;// = "workmallscreen" private var SC_MISSIONSCREEN;// = "missionscreen" private var SC_HOSJOBSCREEN;// = "hosjobscreen" private var SC_JOBMALLSCREEN;// = "jobmallscreen" private var SC_MYROOMSCREEN;// = "myroomscreen" public var clip:MovieClip; private var SC_FASTFOODSCREEN;// = "fastfoodscreen" private var SC_JOBSTUDYSCREEN;// = "jobstudyscreen" private var SC_SHOPPINGSCREEN;// = "shoppingscreen" private var SC_WINORLOSESCREEN;// = "winorlosescreen" private var SC_WORKSTUDYSCREEN;// = "workstudyscreen" private var SC_OFFICESCREEN;// = "officescreen" private var SC_CREDITSSCREEN;// = "creditsscreen" private var SC_CHEAPAPARTEMENSCREEN;// = "chepapartemenscreen" private var SC_WORKOFFICESCREEN;// = "workofficescreen" private var SC_BANKWORKSCREEN;// = "bankworkscreen" private var SC_ENDSCREEN;// = "endscreen" private var SC_BANKJOBSCREEN;// = "bankjobscreen" private var SC_STUDYSCREEN;// = "studyscreen" private var SC_PLAYSCREEN;// = "playscreen" private var SC_TITLINGSCREEN;// = "titlingscreen" private var SC_THEATERSCREEN;// = "theaterscreen" public static const DocCFastFoodScreen:String = "CFastFoodScreen"; public static const DocCMallJobScreen:String = "CJobMallScreen"; public static const DocCShoppingScreen:String = "CShoppingScreen"; public static const DocCGameScreen:String = "CGameScreen"; public static const DocCHospitalJobScreen:String = "CHosJobScreen"; public static const DocCStudyScreen:String = "CStudyScreen"; public static const DocCLuxApartmentRoomScreen:String = "CLuxApartemenViewScreen"; public static const DocCOfficeJobScreen:String = "CJobOfficeScreen"; public static const DocCOfficeScreen:String = "COfficeScreen"; public static const DocCCollegeJobScreen:String = "CJobStudyScreen"; public static const DocCMovieScreen:String = "CMovieScreen"; public static const DocCMallWorkScreen:String = "CWorkMallScreen"; public static const ENTRY_FRAME:Number = 3; public static const DocCFactoryScreen:String = "CFactoryScreen"; public static const DocCCollegeWorkScreen:String = "CWorkStudyScreen"; public static const DocCFactoryJobScreen:String = "CFactoryJobScreen"; public static const DocCOfficeWorkScreen:String = "CWorkOfficeScreen"; public static const DocCMallScreen:String = "CMallScreen"; public static const DocCPubInsideScreen:String = "CGoInsideScreen"; public static const DocCFactoryWorkScreen:String = "CFactoryWorkScreen"; public static const DocCLuxApartmentScreen:String = "CLuxApartemenScreen"; public static const DocCCreditsScreen:String = "CCreditsScreen"; public static const DocCBankServiceScreen:String = "CBankServiceScreen"; public static const DocCHospitalWorkScreen:String = "CHosWorkScreen"; public static const DocCEndScreen:String = "CEndScreen"; public static const DocCMissionScreen:String = "CMissionScreen"; public static const DocCStatusScreen:String = "CStatusScreen"; public static const DocCPlayScreen:String = "CPlayScreen"; public static const DocCMainMenuScreen:String = "CMainMenuScreen"; public static const DocCHospitalScreen:String = "CHospitalScreen"; public static const DocCBankScreen:String = "CBankScreen"; public static const DocCMealMenuScreen:String = "CMealMenuScreen"; public static const DocCBankJobScreen:String = "CBankJobScreen"; public static const DocCBankWorkScreen:String = "CBankWorkScreen"; public static const DocCChepApartemenScreen:String = "CChepApartemenScreen"; public static const DocCPubScreen:String = "CPubScreen"; public static const DocCFastFoodWorkScreen:String = "CWorkffScreen"; public static const DocCFastFoodJobScreen:String = "CJobffScreen"; public static const DocCChatScreen:String = "CChatScreen"; public static const DocCHighScoreScreen:String = "CHighScoreScreen"; public static const DocCWinOrLoseScreen:String = "CWinOrLoseScreen"; public static const DocCTitlingScreen:String = "CTitlingScreen"; public static const DocCCollegeScreen:String = "CCollageScreen"; public static const DocCCheapApartmentRoomScreen:String = "CRoomViewScreen"; public static const DocCEnrollScreen:String = "CEnrollScreen"; public static const DocCTheatreScreen:String = "CTheaterScreen"; public function Application(){ SC_PRELOADERSCREEN = "preloaderscreen"; SC_TITLINGSCREEN = "titlingscreen"; SC_MAINMENUSCREEN = "mainmenuscreen"; SC_HIGHSCORESCREEN = "highscorescreen"; SC_WINORLOSESCREEN = "winorlosescreen"; SC_ENDSCREEN = "endscreen"; SC_PLAYSCREEN = "playscreen"; SC_GAMESCREEN = "gamescreen"; SC_STATUSSCREEN = "statusscreen"; SC_FASTFOODSCREEN = "fastfoodscreen"; SC_MEALMENUSCREEN = "mealmenuscreen"; SC_MALLSCREEN = "mallscreen"; SC_HOSPITALSCREEN = "hospitalscreen"; SC_COLLAGESCREEN = "collagescreen"; SC_OFFICESCREEN = "officescreen"; SC_BANKSCREEN = "bankscreen"; SC_LUXAPARTEMENSCREEN = "luxapatemenscreen"; SC_THEATERSCREEN = "theaterscreen"; SC_PUBSCREEN = "pubscreen"; SC_FACTORYSCREEN = "factoryscreen"; SC_CHATSCREEN = "chatscreen"; SC_CHEAPAPARTEMENSCREEN = "chepapartemenscreen"; SC_MYROOMSCREEN = "myroomscreen"; SC_WORKFFSCREEN = "workffscreen"; SC_JOBFFSCREEN = "jobffscreen"; SC_SHOPPINGSCREEN = "shoppingscreen"; SC_WORKMALLSCREEN = "workmallscreen"; SC_JOBMALLSCREEN = "jobmallscreen"; SC_HOSWORKSCREEN = "hosworkscreen"; SC_HOSJOBSCREEN = "hosjobscreen"; SC_ENROLLSCREEN = "enrollscreen"; SC_STUDYSCREEN = "studyscreen"; SC_WORKSTUDYSCREEN = "workstudyscreen"; SC_JOBSTUDYSCREEN = "jobstudyscreen"; SC_WORKOFFICESCREEN = "workofficescreen"; SC_JOBOFFICESCREEN = "jobofficescreen"; SC_BANKSERVICESCREEN = "bankservicescreen"; SC_BANKWORKSCREEN = "bankworkscreen"; SC_BANKJOBSCREEN = "bankjobscreen"; SC_LUXAPARTEMENVIEWSCREEN = "luxapatemenviewscreen"; SC_MOVIESCREEN = "moviescreen"; SC_GOINSIDESCREEN = "goinsidescreen"; SC_FACTORYWORKSCREEN = "factoryworkscreen"; SC_FACTORYJOBSCREEN = "factoryjobscreen"; SC_CREDITSSCREEN = "creditsscreen"; SC_MISSIONSCREEN = "missionscreen"; super(); MochiBot.track(this, "b5af760b"); stop(); loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); loaderInfo.addEventListener(Event.COMPLETE, completeHandler); scm = new CScreenManager(stage); } private function enterFrameHandler(_arg1:Event):void{ if (currentFrame >= _slot1.ENTRY_FRAME){ removeEventListener(Event.ENTER_FRAME, enterFrameHandler); stop(); RegisterScreens(); MochiServices.connect("f7855e317dbb4c4c", scm.getScreen(SC_HIGHSCORESCREEN)); MochiScores.setBoardID("7721cba2a92d81e5"); StartApp(); }; } private function progressHandler(_arg1:ProgressEvent):void{ var _local2:int; _local2 = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100); progressBar.gotoAndStop(_local2); progressBar.textProgressBar.text = (_local2 + " %"); } private function StartApp(){ stage.showDefaultContextMenu = false; scm.start(SC_TITLINGSCREEN); } private function init(){ stage.showDefaultContextMenu = false; RegisterScreens(); } private function RegisterScreens(){ var _local1:Class; var _local2:CTitlingScreen; var _local3:Class; var _local4:CMainMenuScreen; var _local5:Class; var _local6:CHighScoreScreen; var _local7:Class; var _local8:CWinOrLoseScreen; var _local9:Class; var _local10:CEndScreen; var _local11:Class; var _local12:CPlayScreen; var _local13:Class; var _local14:CGameScreen; var _local15:Class; var _local16:CStatusScreen; var _local17:Class; var _local18:CFastFoodScreen; var _local19:Class; var _local20:CMealMenuScreen; var _local21:Class; var _local22:CMallScreen; var _local23:Class; var _local24:CHospitalScreen; var _local25:Class; var _local26:CCollageScreen; var _local27:Class; var _local28:COfficeScreen; var _local29:Class; var _local30:CBankScreen; var _local31:Class; var _local32:CLuxApartemenScreen; var _local33:Class; var _local34:CTheaterScreen; var _local35:Class; var _local36:CPubScreen; var _local37:Class; var _local38:CFactoryScreen; var _local39:Class; var _local40:CChatScreen; var _local41:Class; var _local42:CChepApartemenScreen; var _local43:Class; var _local44:CRoomViewScreen; var _local45:Class; var _local46:CWorkffScreen; var _local47:Class; var _local48:CJobffScreen; var _local49:Class; var _local50:CShoppingScreen; var _local51:Class; var _local52:CWorkMallScreen; var _local53:Class; var _local54:CJobMallScreen; var _local55:Class; var _local56:CHosWorkScreen; var _local57:Class; var _local58:CHosJobScreen; var _local59:Class; var _local60:CEnrollScreen; var _local61:Class; var _local62:CStudyScreen; var _local63:Class; var _local64:CWorkStudyScreen; var _local65:Class; var _local66:CJobStudyScreen; var _local67:Class; var _local68:CWorkOfficeScreen; var _local69:Class; var _local70:CJobOfficeScreen; var _local71:Class; var _local72:CBankServiceScreen; var _local73:Class; var _local74:CBankWorkScreen; var _local75:Class; var _local76:CBankJobScreen; var _local77:Class; var _local78:CLuxApartemenViewScreen; var _local79:Class; var _local80:CMovieScreen; var _local81:Class; var _local82:CGoInsideScreen; var _local83:Class; var _local84:CFactoryWorkScreen; var _local85:Class; var _local86:CFactoryJobScreen; var _local87:Class; var _local88:CCreditsScreen; var _local89:Class; var _local90:CMissionScreen; scm = new CScreenManager(stage); scm.addScreen(SC_PRELOADERSCREEN, new CPreLoaderScreen(), true); _local1 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCTitlingScreen) as Class); _local2 = (new (_local1) as CTitlingScreen); scm.addScreen(SC_TITLINGSCREEN, (_local2 as CScreen), true); _local3 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCMainMenuScreen) as Class); _local4 = (new (_local3) as CMainMenuScreen); scm.addScreen(SC_MAINMENUSCREEN, (_local4 as CScreen), true); _local5 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCHighScoreScreen) as Class); _local6 = (new (_local5) as CHighScoreScreen); scm.addScreen(SC_HIGHSCORESCREEN, (_local6 as CScreen), true); _local7 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCWinOrLoseScreen) as Class); _local8 = (new (_local7) as CWinOrLoseScreen); scm.addScreen(SC_WINORLOSESCREEN, (_local8 as CScreen), true); _local9 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCEndScreen) as Class); _local10 = (new (_local9) as CEndScreen); scm.addScreen(SC_ENDSCREEN, (_local10 as CScreen), true); _local11 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCPlayScreen) as Class); _local12 = (new (_local11) as CPlayScreen); scm.addScreen(SC_PLAYSCREEN, (_local12 as CScreen), true); _local13 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCGameScreen) as Class); _local14 = (new (_local13) as CGameScreen); scm.addScreen(SC_GAMESCREEN, (_local14 as CScreen), true); _local15 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCStatusScreen) as Class); _local16 = (new (_local15) as CStatusScreen); scm.addScreen(SC_STATUSSCREEN, (_local16 as CScreen), true); _local17 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCFastFoodScreen) as Class); _local18 = (new (_local17) as CFastFoodScreen); scm.addScreen(SC_FASTFOODSCREEN, (_local18 as CScreen), true, 1); _local19 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCMealMenuScreen) as Class); _local20 = (new (_local19) as CMealMenuScreen); scm.addScreen(SC_MEALMENUSCREEN, (_local20 as CScreen), true, 1); _local21 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCMallScreen) as Class); _local22 = (new (_local21) as CMallScreen); scm.addScreen(SC_MALLSCREEN, (_local22 as CScreen), true, 2); _local23 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCHospitalScreen) as Class); _local24 = (new (_local23) as CHospitalScreen); scm.addScreen(SC_HOSPITALSCREEN, (_local24 as CScreen), true, 3); _local25 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCCollegeScreen) as Class); _local26 = (new (_local25) as CCollageScreen); scm.addScreen(SC_COLLAGESCREEN, (_local26 as CScreen), true, 4); _local27 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCOfficeScreen) as Class); _local28 = (new (_local27) as COfficeScreen); scm.addScreen(SC_OFFICESCREEN, (_local28 as CScreen), true, 5); _local29 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCBankScreen) as Class); _local30 = (new (_local29) as CBankScreen); scm.addScreen(SC_BANKSCREEN, (_local30 as CScreen), true, 7); _local31 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCLuxApartmentScreen) as Class); _local32 = (new (_local31) as CLuxApartemenScreen); scm.addScreen(SC_LUXAPARTEMENSCREEN, (_local32 as CScreen), true, 10); _local33 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCTheatreScreen) as Class); _local34 = (new (_local33) as CTheaterScreen); scm.addScreen(SC_THEATERSCREEN, (_local34 as CScreen), true, 8); _local35 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCPubScreen) as Class); _local36 = (new (_local35) as CPubScreen); scm.addScreen(SC_PUBSCREEN, (_local36 as CScreen), true, 9); _local37 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCFactoryScreen) as Class); _local38 = (new (_local37) as CFactoryScreen); scm.addScreen(SC_FACTORYSCREEN, (_local38 as CScreen), true, 6); _local39 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCChatScreen) as Class); _local40 = (new (_local39) as CChatScreen); scm.addScreen(SC_CHATSCREEN, (_local40 as CScreen), true); _local41 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCChepApartemenScreen) as Class); _local42 = (new (_local41) as CChepApartemenScreen); scm.addScreen(SC_CHEAPAPARTEMENSCREEN, (_local42 as CScreen), true, 10); _local43 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCCheapApartmentRoomScreen) as Class); _local44 = (new (_local43) as CRoomViewScreen); scm.addScreen(SC_MYROOMSCREEN, (_local44 as CScreen), true, 10); _local45 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCFastFoodWorkScreen) as Class); _local46 = (new (_local45) as CWorkffScreen); scm.addScreen(SC_WORKFFSCREEN, (_local46 as CScreen), true, 1); _local47 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCFastFoodJobScreen) as Class); _local48 = (new (_local47) as CJobffScreen); scm.addScreen(SC_JOBFFSCREEN, (_local48 as CScreen), true); _local49 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCShoppingScreen) as Class); _local50 = (new (_local49) as CShoppingScreen); scm.addScreen(SC_SHOPPINGSCREEN, (_local50 as CScreen), true, 2); _local51 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCMallWorkScreen) as Class); _local52 = (new (_local51) as CWorkMallScreen); scm.addScreen(SC_WORKMALLSCREEN, (_local52 as CScreen), true, 2); _local53 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCMallJobScreen) as Class); _local54 = (new (_local53) as CJobMallScreen); scm.addScreen(SC_JOBMALLSCREEN, (_local54 as CScreen), true); _local55 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCHospitalWorkScreen) as Class); _local56 = (new (_local55) as CHosWorkScreen); scm.addScreen(SC_HOSWORKSCREEN, (_local56 as CScreen), true, 3); _local57 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCHospitalJobScreen) as Class); _local58 = (new (_local57) as CHosJobScreen); scm.addScreen(SC_HOSJOBSCREEN, (_local58 as CScreen), true); _local59 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCEnrollScreen) as Class); _local60 = (new (_local59) as CEnrollScreen); scm.addScreen(SC_ENROLLSCREEN, (_local60 as CScreen), true); _local61 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCStudyScreen) as Class); _local62 = (new (_local61) as CStudyScreen); scm.addScreen(SC_STUDYSCREEN, (_local62 as CScreen), true, 4); _local63 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCCollegeWorkScreen) as Class); _local64 = (new (_local63) as CWorkStudyScreen); scm.addScreen(SC_WORKSTUDYSCREEN, (_local64 as CScreen), true, 4); _local65 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCCollegeJobScreen) as Class); _local66 = (new (_local65) as CJobStudyScreen); scm.addScreen(SC_JOBSTUDYSCREEN, (_local66 as CScreen), true); _local67 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCOfficeWorkScreen) as Class); _local68 = (new (_local67) as CWorkOfficeScreen); scm.addScreen(SC_WORKOFFICESCREEN, (_local68 as CScreen), true, 5); _local69 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCOfficeJobScreen) as Class); _local70 = (new (_local69) as CJobOfficeScreen); scm.addScreen(SC_JOBOFFICESCREEN, (_local70 as CScreen), true); _local71 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCBankServiceScreen) as Class); _local72 = (new (_local71) as CBankServiceScreen); scm.addScreen(SC_BANKSERVICESCREEN, (_local72 as CScreen), true); _local73 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCBankWorkScreen) as Class); _local74 = (new (_local73) as CBankWorkScreen); scm.addScreen(SC_BANKWORKSCREEN, (_local74 as CScreen), true, 7); _local75 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCBankJobScreen) as Class); _local76 = (new (_local75) as CBankJobScreen); scm.addScreen(SC_BANKJOBSCREEN, (_local76 as CScreen), true); _local77 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCLuxApartmentRoomScreen) as Class); _local78 = (new (_local77) as CLuxApartemenViewScreen); scm.addScreen(SC_LUXAPARTEMENVIEWSCREEN, (_local78 as CScreen), true, 10); _local79 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCMovieScreen) as Class); _local80 = (new (_local79) as CMovieScreen); scm.addScreen(SC_MOVIESCREEN, (_local80 as CScreen), true); _local81 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCPubInsideScreen) as Class); _local82 = (new (_local81) as CGoInsideScreen); scm.addScreen(SC_GOINSIDESCREEN, (_local82 as CScreen), true, 9); _local83 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCFactoryWorkScreen) as Class); _local84 = (new (_local83) as CFactoryWorkScreen); scm.addScreen(SC_FACTORYWORKSCREEN, (_local84 as CScreen), true, 6); _local85 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCFactoryJobScreen) as Class); _local86 = (new (_local85) as CFactoryJobScreen); scm.addScreen(SC_FACTORYJOBSCREEN, (_local86 as CScreen), true); _local87 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCCreditsScreen) as Class); _local88 = (new (_local87) as CCreditsScreen); scm.addScreen(SC_CREDITSSCREEN, (_local88 as CScreen), true); _local89 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCMissionScreen) as Class); _local90 = (new (_local89) as CMissionScreen); scm.addScreen(SC_MISSIONSCREEN, (_local90 as CScreen), true); } private function completeHandler(_arg1:Event):void{ trace("Application:completeHandler"); play(); addEventListener(Event.ENTER_FRAME, enterFrameHandler); } public function destroy(){ } } }//package com.jayz.dailylife
Section 54
//CChatScreen (com.jayz.dailylife.CChatScreen) package com.jayz.dailylife { import flash.display.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CChatScreen extends CScreen { var gs:CGameSession; public var bt_kiss:SimpleButton; private var pt:CPopText; public var myAvatar:CAvatar; public var bt_brag:SimpleButton; var person:CPerson; public var person1:MovieClip; public var person2:MovieClip; public var bt_talk:SimpleButton; public var person4:MovieClip; var ss:CSound; public var tx_clock:TextField; private var ptTimer:Timer; public var person3:MovieClip; public var bt_flirt:SimpleButton; public var bt_close:SimpleButton; public var relbar:MovieClip; public function CChatScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); pt = new CPopText("", "", "", ""); ptTimer = new Timer(5000, 1); super(); } function talkHandler(_arg1:MouseEvent){ if (pt.isShown){ return; }; person.talk(); update(); } override public function init(){ gs.backtoscreen.blur(); person = gs[gs.personshowed.name]; person1.visible = false; person2.visible = false; person3.visible = false; person4.visible = false; this[gs.personshowed.name].visible = true; this[gs.personshowed.name].tx_name.text = person.name; tx_clock.text = gs.currentTime.toString(); setButtonListeners(); update(); } function bragHandler(_arg1:MouseEvent){ if (pt.isShown){ return; }; person.brag(); update(); } function kissHandler(_arg1:MouseEvent){ if (pt.isShown){ return; }; person.kiss(); update(); } public function setButtonListeners(){ bt_close.addEventListener(MouseEvent.MOUSE_DOWN, closeScreen); bt_talk.addEventListener(MouseEvent.MOUSE_DOWN, talkHandler); bt_brag.addEventListener(MouseEvent.MOUSE_DOWN, bragHandler); bt_flirt.addEventListener(MouseEvent.MOUSE_DOWN, flirtHandler); bt_kiss.addEventListener(MouseEvent.MOUSE_DOWN, kissHandler); } function closeScreen(_arg1:MouseEvent){ if (pt.isShown){ return; }; gs.backtoscreen.unblur(); gs.backtoscreen.dispatchEvent(new Event("endScreen")); ss.endAllBGM(); this.nextScreenName = gs.backtoscreen.screenName; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } function flirtHandler(_arg1:MouseEvent){ if (pt.isShown){ return; }; person.flirt(); update(); } private function theEnd(_arg1:Event){ pt.isShown = false; this.removeChild(pt.popTx); ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); gs.backtoscreen.unblur(); gs.backtoscreen.dispatchEvent(new Event("endScreen")); ss.endAllBGM(); this.nextScreenName = "hospitalscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } function update(){ myAvatar.updateStatus(); tx_clock.text = gs.currentTime.toString(); relbar.gotoAndStop(int(person.score)); gs.eatStatusUpdate(); gs.setDayNight(gs.backtoscreen); if (gs.isSick){ pt = new CPopText("", "you got sick!!!", "try to eat and sleep at the right time", ""); pt.isShown = true; this.addChild(pt.popTx); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); ptTimer.start(); }; } override public function destroy(){ bt_close.removeEventListener(MouseEvent.MOUSE_DOWN, closeScreen); bt_talk.removeEventListener(MouseEvent.MOUSE_DOWN, talkHandler); bt_brag.removeEventListener(MouseEvent.MOUSE_DOWN, bragHandler); bt_flirt.removeEventListener(MouseEvent.MOUSE_DOWN, flirtHandler); bt_kiss.removeEventListener(MouseEvent.MOUSE_DOWN, kissHandler); } } }//package com.jayz.dailylife
Section 55
//CCreditsScreen (com.jayz.dailylife.CCreditsScreen) package com.jayz.dailylife { import flash.display.*; import flash.events.*; public class CCreditsScreen extends CScreen { public var bt_menu:SimpleButton; override public function init(){ setButtonListeners(); } private function setButtonListeners(){ bt_menu.addEventListener(MouseEvent.CLICK, clickContinue); } private function clickContinue(_arg1:MouseEvent){ nextScreenName = "mainmenuscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ bt_menu.removeEventListener(MouseEvent.CLICK, clickContinue); } } }//package com.jayz.dailylife
Section 56
//CEndScreen (com.jayz.dailylife.CEndScreen) package com.jayz.dailylife { import flash.display.*; import flash.events.*; import flash.utils.*; public class CEndScreen extends CScreen { public var bt_menuend:SimpleButton; var screenTime:Timer; public var bt_playagain:SimpleButton; override public function init(){ bt_menuend.visible = false; bt_playagain.visible = false; screenTime = new Timer(5000, 1); screenTime.addEventListener(TimerEvent.TIMER_COMPLETE, nextScreen); screenTime.start(); } private function nextScreen(_arg1:Event){ screenTime.removeEventListener(TimerEvent.TIMER_COMPLETE, nextScreen); this.nextScreenName = "mainmenuscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } public function clickHandler(_arg1:MouseEvent){ this.nextScreenName = "mainmenuscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } } }//package com.jayz.dailylife
Section 57
//CGameScreen (com.jayz.dailylife.CGameScreen) package com.jayz.dailylife { import fl.controls.*; import flash.display.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import flash.utils.*; public class CGameScreen extends CScreen { private var pt:CPopText; public var bt_bank:SimpleButton; public var bbt_home:SimpleButton; public var bt_quit:SimpleButton; public var bt_factory:SimpleButton; public var myAvatar:CAvatar; private var mall:CLokasi; public var bbt_lux_apartemen:SimpleButton; private var bank:CLokasi; private var hospital:CLokasi; var ss:CSound; public var mcBus2:MovieClip; public var bbt_fastfood2:SimpleButton; public var bbt_fastfood3:SimpleButton; public var mcBus1:MovieClip; public var bbt_fastfood1:SimpleButton; public var bt_status:SimpleButton; public var bbt_nightclub:SimpleButton; public var bbt_theatre:SimpleButton; public var bt_objectives:SimpleButton; public var mc_task:TextArea; public var tx_clock:TextField; public var bt_university:SimpleButton; private var university:CLokasi; public var bt_home:SimpleButton; public var txCheat:TextField; private var fastfood1:CLokasi; private var fastfood2:CLokasi; public var bt_theatre:SimpleButton; private var office:CLokasi; public var mcMute:CMuteButton; private var fastfood3:CLokasi; private var dlg:CDialog; var gs:CGameSession; private var pub:CLokasi; public var bt_fastfood2:SimpleButton; public var bt_fastfood3:SimpleButton; public var mcTutorial:CCTutorial; public var bt_fastfood1:SimpleButton; private var factory:CLokasi; private var cheapApartment:CLokasi; public var mc_health:MovieClip; public var bbt_office:SimpleButton; private var paused:Boolean;// = false public var bt_nightclub:SimpleButton; public var bbt_mall:SimpleButton; public var tx_money:TextField; public var bt_phone:SimpleButton; public var bt_office:SimpleButton; public var teksHealth:TextField; public var isAnimating:Boolean; public var bbt_bank:SimpleButton; public var tx_day:TextField; public var mcPhone:CHandPhoneScreen; public var bbt_university:SimpleButton; public var mcAvatar1:MovieClip; public var mcAvatar2:MovieClip; public var bt_hospital:SimpleButton; private var theatre:CLokasi; private var ptTimer:Timer; public var bt_lux_apartemen:SimpleButton; public var bt_mall:SimpleButton; private var luxApartment:CLokasi; public var bbt_hospital:SimpleButton; public var bbt_factory:SimpleButton; public function CGameScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); paused = false; ptTimer = new Timer(5000, 1); cheapApartment = new CLokasi(0, "cheapApartment", 1, 185); fastfood1 = new CLokasi(1, "fastfood1", 8, 176); mall = new CLokasi(2, "mall", 28, 153); hospital = new CLokasi(3, "hospital", 50, 132); fastfood2 = new CLokasi(4, "fastfood2", 57, 128); university = new CLokasi(5, "university", 70, 115); office = new CLokasi(6, "office", 90, 94); bank = new CLokasi(7, "bank", 96, 90); luxApartment = new CLokasi(8, "luxApartment", 112, 74); theatre = new CLokasi(9, "theatre", 129, 54); pub = new CLokasi(10, "pub", 146, 40); fastfood3 = new CLokasi(11, "fastfood3", 150, 36); factory = new CLokasi(12, "factory", 168, 15); super(); } private function sameLine1(){ var _local1:int; var _local2:int; if (gs.avatarGender == "cowok"){ mcAvatar1.visible = false; } else { mcAvatar2.visible = false; }; if (gs.tujuan.indeks > gs.asal.indeks){ _local1 = Math.abs((gs.tujuan.indeks - gs.asal.indeks)); _local2 = Math.abs((gs.tujuan.indeks - (gs.asal.indeks + 13))); } else { _local1 = Math.abs(((gs.tujuan.indeks + 13) - gs.asal.indeks)); _local2 = Math.abs((gs.tujuan.indeks - gs.asal.indeks)); }; if (_local1 < _local2){ mcBus1.visible = true; mcBus1.gotoAndPlay(gs.asal.posisi1); } else { mcBus2.visible = true; mcBus2.gotoAndPlay(gs.asal.posisi2); }; } private function clickObjectives(_arg1:MouseEvent){ if (paused){ return; }; if (isAnimating){ return; }; ss.stopSound(CSound.bg_game); this.nextScreenName = "missionscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function setday(_arg1:Boolean){ bt_fastfood1.visible = false; bt_fastfood2.visible = false; bt_fastfood3.visible = false; bt_mall.visible = false; bt_hospital.visible = false; bt_university.visible = false; bt_office.visible = false; bt_bank.visible = false; bt_lux_apartemen.visible = false; bt_theatre.visible = false; bt_nightclub.visible = false; bt_factory.visible = false; bt_home.visible = false; bbt_fastfood1.visible = false; bbt_fastfood2.visible = false; bbt_fastfood3.visible = false; bbt_mall.visible = false; bbt_hospital.visible = false; bbt_university.visible = false; bbt_office.visible = false; bbt_bank.visible = false; bbt_lux_apartemen.visible = false; bbt_theatre.visible = false; bbt_nightclub.visible = false; bbt_factory.visible = false; bbt_home.visible = false; if (_arg1){ bt_fastfood1.visible = true; bt_fastfood2.visible = true; bt_fastfood3.visible = true; bt_mall.visible = true; bt_hospital.visible = true; bt_university.visible = true; bt_office.visible = true; bt_bank.visible = true; bt_lux_apartemen.visible = true; bt_theatre.visible = true; bt_nightclub.visible = true; bt_factory.visible = true; bt_home.visible = true; } else { bbt_fastfood1.visible = true; bbt_fastfood2.visible = true; bbt_fastfood3.visible = true; bbt_mall.visible = true; bbt_hospital.visible = true; bbt_university.visible = true; bbt_office.visible = true; bbt_bank.visible = true; bbt_lux_apartemen.visible = true; bbt_theatre.visible = true; bbt_nightclub.visible = true; bbt_factory.visible = true; bbt_home.visible = true; }; } private function clickfastfood2(_arg1:Event){ if (paused){ return; }; if (isAnimating){ return; }; isAnimating = true; gs.tujuan = fastfood2; sameLine1(); } private function clickfastfood1(_arg1:Event){ if (paused){ return; }; if (isAnimating){ return; }; isAnimating = true; gs.tujuan = fastfood1; sameLine1(); } private function clickuniversity(_arg1:Event){ if (paused){ return; }; if (isAnimating){ return; }; isAnimating = true; gs.tujuan = university; sameLine1(); } private function clickoffice(_arg1:Event){ if (paused){ return; }; if (isAnimating){ return; }; isAnimating = true; gs.tujuan = office; sameLine1(); } public function closePhone(){ mcPhone.visible = false; } private function setButtonListeners(){ mcBus1.addEventListener(Event.ENTER_FRAME, busloop); bt_fastfood1.addEventListener(MouseEvent.CLICK, clickfastfood1); bt_fastfood2.addEventListener(MouseEvent.CLICK, clickfastfood2); bt_fastfood3.addEventListener(MouseEvent.CLICK, clickfastfood3); bt_mall.addEventListener(MouseEvent.CLICK, clickmall); bt_hospital.addEventListener(MouseEvent.CLICK, clickhospital); bt_university.addEventListener(MouseEvent.CLICK, clickuniversity); bt_office.addEventListener(MouseEvent.CLICK, clickoffice); bt_bank.addEventListener(MouseEvent.CLICK, clickbank); bt_lux_apartemen.addEventListener(MouseEvent.CLICK, clickluxapartemen); bt_theatre.addEventListener(MouseEvent.CLICK, clicktheater); bt_nightclub.addEventListener(MouseEvent.CLICK, clicknightclub); bt_factory.addEventListener(MouseEvent.CLICK, clickfactory); bt_home.addEventListener(MouseEvent.CLICK, clickhome); bbt_fastfood1.addEventListener(MouseEvent.CLICK, clickfastfood1); bbt_fastfood2.addEventListener(MouseEvent.CLICK, clickfastfood2); bbt_fastfood3.addEventListener(MouseEvent.CLICK, clickfastfood3); bbt_mall.addEventListener(MouseEvent.CLICK, clickmall); bbt_hospital.addEventListener(MouseEvent.CLICK, clickhospital); bbt_university.addEventListener(MouseEvent.CLICK, clickuniversity); bbt_office.addEventListener(MouseEvent.CLICK, clickoffice); bbt_bank.addEventListener(MouseEvent.CLICK, clickbank); bbt_lux_apartemen.addEventListener(MouseEvent.CLICK, clickluxapartemen); bbt_theatre.addEventListener(MouseEvent.CLICK, clicktheater); bbt_nightclub.addEventListener(MouseEvent.CLICK, clicknightclub); bbt_factory.addEventListener(MouseEvent.CLICK, clickfactory); bbt_home.addEventListener(MouseEvent.CLICK, clickhome); bt_status.addEventListener(MouseEvent.CLICK, clickStatus); bt_objectives.addEventListener(MouseEvent.CLICK, clickObjectives); bt_quit.addEventListener(MouseEvent.CLICK, clickQuit); bt_phone.addEventListener(MouseEvent.CLICK, clickPhone); } private function clickfastfood3(_arg1:Event){ if (paused){ return; }; if (isAnimating){ return; }; isAnimating = true; gs.tujuan = fastfood3; sameLine1(); } private function clickfactory(_arg1:Event){ if (paused){ return; }; if (isAnimating){ return; }; isAnimating = true; gs.tujuan = factory; sameLine1(); } private function clicknightclub(_arg1:Event){ if (paused){ return; }; if (isAnimating){ return; }; isAnimating = true; gs.tujuan = pub; sameLine1(); } private function clickhome(_arg1:Event){ if (paused){ return; }; if (isAnimating){ return; }; isAnimating = true; gs.tujuan = cheapApartment; sameLine1(); } private function clickPhone(_arg1:Event){ if (paused){ return; }; if (isAnimating){ return; }; mcPhone.visible = true; mcPhone.getName(); } private function theEnd(_arg1:Event){ paused = false; this.removeChild(pt.popTx); gs.isTheft = false; ptTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, theEnd); } override public function init(){ trace("CGameScreen:init"); myAvatar.updateStatus(this); mcMute.updateStatus(); txCheat.visible = false; mcPhone.visible = false; tx_clock.text = gs.currentTime.toString(); mc_health.gotoAndStop(gs.health.healthPoint); UpdateTaskList(); if (gs.setDayNight(this)){ setday(true); } else { setday(false); }; tx_day.text = ("day " + String(gs.currentTime.hari)); gs.gameBonus(); tx_money.text = String(gs.money); ss.playSound(CSound.bg_game); gs.winOrLose(); if (((gs.isWin) || (gs.isLose))){ ss.stopSound(CSound.bg_game); gs.isPlaying = false; this.nextScreenName = "winorlosescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); }; isAnimating = false; mcBus1.visible = false; mcBus2.visible = false; if (gs.avatarGender == "cowok"){ mcAvatar1.visible = true; mcAvatar1.gotoAndStop(gs.tujuan.posisi1); mcAvatar2.visible = false; } else { mcAvatar2.visible = true; mcAvatar2.gotoAndStop(gs.asal.posisi1); mcAvatar1.visible = false; }; setButtonListeners(); if (paused){ return; }; gs.theftStatus(); if (gs.isTheft){ gs.happiness = (gs.happiness - 250); if (gs.jenis == 0){ pt = new CPopText("", "a thief just steal your money", ("you lose $" + String(gs.moneyTheft)), ""); gs.money = (gs.money - gs.moneyTheft); tx_money.text = String(gs.money); } else { pt = new CPopText("", "someone broke into your apartment", ("you lose your " + gs.goodsTheft), ""); gs.goodsList[gs.goodsIndex].isOwned = false; }; paused = true; this.addChild(pt.popTx); ss.playSound(CSound.fx_police); ptTimer.addEventListener(TimerEvent.TIMER_COMPLETE, theEnd); ptTimer.start(); }; } private function busloop(_arg1:Event){ if (mcBus1.visible){ if (mcBus1.currentFrame == gs.tujuan.posisi1){ mcBus1.visible = false; sameLine2(); }; } else { if (mcBus2.visible){ if (mcBus2.currentFrame == gs.tujuan.posisi2){ mcBus2.visible = false; sameLine2(); }; }; }; } public function onQuit(_arg1:Boolean){ paused = false; if (!_arg1){ return; }; ss.stopSound(CSound.bg_game); gs.submitscore = true; this.nextScreenName = "highscorescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function clickluxapartemen(_arg1:Event){ if (paused){ return; }; if (isAnimating){ return; }; isAnimating = true; gs.tujuan = luxApartment; sameLine1(); } private function clicktheater(_arg1:Event){ if (paused){ return; }; if (isAnimating){ return; }; isAnimating = true; gs.tujuan = theatre; sameLine1(); } private function clickStatus(_arg1:MouseEvent){ if (txCheat.visible){ processCheat(txCheat.text); txCheat.visible = false; return; }; if (_arg1.ctrlKey){ txCheat.visible = true; return; }; if (paused){ return; }; if (isAnimating){ return; }; ss.stopSound(CSound.bg_game); this.nextScreenName = "statusscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function clickmall(_arg1:Event){ if (paused){ return; }; if (isAnimating){ return; }; isAnimating = true; gs.tujuan = mall; sameLine1(); } private function processCheat(_arg1:String){ var _local2:Array; _local2 = _arg1.split("="); if (_local2[0] == "money"){ gs.money = _local2[1]; tx_money.text = String(gs.money); }; if (_local2[0] == "saving"){ gs.saving = _local2[1]; }; if (_local2[0] == "knowledge"){ gs.knowledge = _local2[1]; }; if (_local2[0] == "career"){ gs.career = _local2[1]; }; if (_local2[0] == "happiness"){ gs.happiness = _local2[1]; }; if (_local2[0] == "happiness2"){ gs.happiness2 = _local2[1]; }; if (_local2[0] == "health"){ gs.health = _local2[1]; }; if (_local2[0] == "pass"){ gs.cheatpass = true; }; } private function UpdateTaskList(){ var _local1:int; var _local2:String; mc_task.text = ""; _local1 = (gs.leveldata[5] - gs.currentTime.hari); mc_task.text = (mc_task.text + (("I have " + _local1) + " days left to finish\n")); if (gs.leveldata[1] != null){ if (!gs.passMoney()){ mc_task.text = (mc_task.text + (("I want to have money at least $" + gs.leveldata[1]) + "\n")); }; }; if (!gs.passPosition()){ mc_task.text = (mc_task.text + (("I want to work as " + gs.leveldata[6]) + " \n")); }; if (!gs.passEducation()){ mc_task.text = (mc_task.text + (("Achieve education level as " + gs.leveldata[7]) + " \n")); }; if (gs.leveldata[8] != null){ if (!gs.passGoods()){ _local2 = ""; switch (gs.leveldata[8]){ case 0: _local2 = "refrigerator"; break; case 1: _local2 = "microwave oven"; break; case 2: _local2 = "aquarium"; break; case 3: _local2 = "television sets"; break; case 4: _local2 = "home theatre"; break; case 5: _local2 = "massage package"; break; }; mc_task.text = (mc_task.text + (("I want to buy a " + _local2) + " \n")); }; }; if (((!((gs.leveldata[11] == 0))) && (!(gs.passFriend1())))){ switch (gs.leveldata[11]){ case 25: mc_task.text = (mc_task.text + ("Find A Friend" + " \n")); break; case 50: mc_task.text = (mc_task.text + ("Find A Good Friend" + " \n")); break; case 90: if (gs.avatarGender == "cowok"){ mc_task.text = (mc_task.text + ("Find A Girlfriend" + " \n")); } else { mc_task.text = (mc_task.text + ("Find A Boyfriend" + " \n")); }; break; }; }; if (((!((gs.leveldata[12] == 0))) && (!(gs.passFriend2())))){ switch (gs.leveldata[12]){ case 25: mc_task.text = (mc_task.text + ("Find A Friend" + " \n")); break; case 50: mc_task.text = (mc_task.text + ("Find A Good Friend" + " \n")); break; case 90: if (gs.avatarGender == "cowok"){ mc_task.text = (mc_task.text + ("Find A Girlfriend" + " \n")); } else { mc_task.text = (mc_task.text + ("Find A Boyfriend" + " \n")); }; break; }; }; if (gs.leveldata[0] != null){ if (!gs.passKnowledge()){ mc_task.text = (mc_task.text + (("Achieve Knowledge " + gs.leveldata[0]) + " %\n")); }; }; if (gs.leveldata[2] != null){ if (!gs.passCareer()){ mc_task.text = (mc_task.text + (("Target Career " + gs.leveldata[2]) + " % \n")); }; }; if (gs.leveldata[3] != null){ if (!gs.passWealth()){ mc_task.text = (mc_task.text + (("Target Wealth " + gs.leveldata[3]) + " % \n")); }; }; if (gs.leveldata[4] != null){ if (!gs.passHappiness()){ mc_task.text = (mc_task.text + (("Target Happiness " + gs.leveldata[4]) + " % \n")); }; }; } private function clickhospital(_arg1:Event){ if (paused){ return; }; if (isAnimating){ return; }; isAnimating = true; gs.tujuan = hospital; sameLine1(); } private function clickbank(_arg1:Event){ if (paused){ return; }; if (isAnimating){ return; }; isAnimating = true; gs.tujuan = bank; sameLine1(); } private function clickQuit(_arg1:MouseEvent){ if (paused){ return; }; if (isAnimating){ return; }; dlg = new CDialog(this, "Quit Game", "Are you sure you \n want to end this game?", 2, onQuit); paused = true; } private function sameLine2(){ gs.asal.indeks = gs.tujuan.indeks; gs.asal.nama = gs.tujuan.nama; gs.asal.posisi1 = gs.tujuan.posisi1; gs.asal.posisi2 = gs.tujuan.posisi2; if (gs.avatarGender == "cowok"){ mcAvatar1.gotoAndStop(gs.asal.posisi1); } else { mcAvatar2.gotoAndStop(gs.asal.posisi1); }; ss.stopSound(CSound.bg_game); if (gs.tujuan.nama == "cheapApartment"){ this.nextScreenName = "chepapartemenscreen"; } else { if (gs.tujuan.nama == "fastfood1"){ this.nextScreenName = "fastfoodscreen"; } else { if (gs.tujuan.nama == "fastfood2"){ this.nextScreenName = "fastfoodscreen"; } else { if (gs.tujuan.nama == "fastfood3"){ this.nextScreenName = "fastfoodscreen"; } else { if (gs.tujuan.nama == "mall"){ this.nextScreenName = "mallscreen"; } else { if (gs.tujuan.nama == "hospital"){ this.nextScreenName = "hospitalscreen"; } else { if (gs.tujuan.nama == "university"){ this.nextScreenName = "collagescreen"; } else { if (gs.tujuan.nama == "office"){ this.nextScreenName = "officescreen"; } else { if (gs.tujuan.nama == "bank"){ this.nextScreenName = "bankscreen"; } else { if (gs.tujuan.nama == "luxApartment"){ this.nextScreenName = "luxapatemenscreen"; } else { if (gs.tujuan.nama == "theatre"){ this.nextScreenName = "theaterscreen"; } else { if (gs.tujuan.nama == "pub"){ this.nextScreenName = "pubscreen"; } else { if (gs.tujuan.nama == "factory"){ this.nextScreenName = "factoryscreen"; }; }; }; }; }; }; }; }; }; }; }; }; }; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ mcBus1.removeEventListener(Event.ENTER_FRAME, busloop); bt_fastfood1.removeEventListener(MouseEvent.CLICK, clickfastfood1); bt_fastfood2.removeEventListener(MouseEvent.CLICK, clickfastfood2); bt_fastfood3.removeEventListener(MouseEvent.CLICK, clickfastfood3); bt_mall.removeEventListener(MouseEvent.CLICK, clickmall); bt_hospital.removeEventListener(MouseEvent.CLICK, clickhospital); bt_university.removeEventListener(MouseEvent.CLICK, clickuniversity); bt_office.removeEventListener(MouseEvent.CLICK, clickoffice); bt_bank.removeEventListener(MouseEvent.CLICK, clickbank); bt_lux_apartemen.removeEventListener(MouseEvent.CLICK, clickluxapartemen); bt_theatre.removeEventListener(MouseEvent.CLICK, clicktheater); bt_nightclub.removeEventListener(MouseEvent.CLICK, clicknightclub); bt_factory.removeEventListener(MouseEvent.CLICK, clickfactory); bt_home.removeEventListener(MouseEvent.CLICK, clickhome); bt_status.removeEventListener(MouseEvent.CLICK, clickStatus); bt_objectives.removeEventListener(MouseEvent.CLICK, clickObjectives); bt_quit.removeEventListener(MouseEvent.CLICK, clickQuit); bt_phone.addEventListener(MouseEvent.CLICK, clickPhone); } } }//package com.jayz.dailylife
Section 58
//CHandPhoneScreen (com.jayz.dailylife.CHandPhoneScreen) package com.jayz.dailylife { import flash.display.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; public class CHandPhoneScreen extends MovieClip { public var nbt1:SimpleButton; public var name1:TextField; public var name3:TextField; public var name4:TextField; public var nbt3:SimpleButton; public var name2:TextField; var orang:Array; public var bt4:SimpleButton; public var bt5:SimpleButton; public var bt7:SimpleButton; public var bt6:SimpleButton; public var bt8:SimpleButton; public var bt9:SimpleButton; var gs:CGameSession; public var bt2:SimpleButton; public var bt3:SimpleButton; public var nbt4:SimpleButton; var ss:CSound; var orangpilihan:int; public var bt1:SimpleButton; var tempatpilihan:int; public var bt_left:SimpleButton; public var bt_right:SimpleButton; public var bt10:SimpleButton; public var nbt2:SimpleButton; public function CHandPhoneScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); orang = new Array(); super(); } public function getName(){ var _local1:int; gotoAndStop(1); nbt1.visible = true; nbt2.visible = true; nbt3.visible = true; nbt4.visible = true; setButtonListeners(); orang = new Array(); if (gs.person1.score > 0){ orang.push({name:gs.person1.name, nomor:1}); }; if (gs.person2.score > 0){ orang.push({name:gs.person2.name, nomor:2}); }; if (gs.person3.score > 0){ orang.push({name:gs.person3.name, nomor:3}); }; if (gs.person4.score > 0){ orang.push({name:gs.person4.name, nomor:4}); }; name1.text = ""; name2.text = ""; name3.text = ""; name4.text = ""; nbt1.visible = false; nbt2.visible = false; nbt3.visible = false; nbt4.visible = false; if (orang.length > 0){ _local1 = 0; while (_local1 < orang.length) { this[("name" + (_local1 + 1))].text = orang[_local1].name; this[("nbt" + (_local1 + 1))].visible = true; _local1++; }; } else { name1.text = "<no entry>"; }; name1.visible = true; name2.visible = true; name3.visible = true; name4.visible = true; bt1.visible = false; bt2.visible = false; bt3.visible = false; bt4.visible = false; bt5.visible = false; bt6.visible = false; bt7.visible = false; bt8.visible = false; bt9.visible = false; bt10.visible = false; } public function destroy(){ } private function closeHandler(_arg1:MouseEvent){ visible = false; } public function getPlace(){ gotoAndStop(2); bt1.visible = true; bt2.visible = true; bt3.visible = true; bt4.visible = true; bt5.visible = true; bt6.visible = true; bt7.visible = true; bt8.visible = true; bt9.visible = true; bt10.visible = true; nbt1.visible = false; nbt2.visible = false; nbt3.visible = false; nbt4.visible = false; name1.visible = false; name2.visible = false; name3.visible = false; name4.visible = false; } public function setButtonListeners(){ if (!bt_right.hasEventListener(MouseEvent.MOUSE_DOWN)){ bt_right.addEventListener(MouseEvent.MOUSE_DOWN, closeHandler); }; if (!nbt1.hasEventListener(MouseEvent.MOUSE_DOWN)){ nbt1.addEventListener(MouseEvent.MOUSE_DOWN, nbtHandler); }; if (!nbt2.hasEventListener(MouseEvent.MOUSE_DOWN)){ nbt2.addEventListener(MouseEvent.MOUSE_DOWN, nbtHandler); }; if (!nbt3.hasEventListener(MouseEvent.MOUSE_DOWN)){ nbt3.addEventListener(MouseEvent.MOUSE_DOWN, nbtHandler); }; if (!nbt4.hasEventListener(MouseEvent.MOUSE_DOWN)){ nbt4.addEventListener(MouseEvent.MOUSE_DOWN, nbtHandler); }; if (!bt1.hasEventListener(MouseEvent.MOUSE_DOWN)){ bt1.addEventListener(MouseEvent.MOUSE_DOWN, btHandler); }; if (!bt2.hasEventListener(MouseEvent.MOUSE_DOWN)){ bt2.addEventListener(MouseEvent.MOUSE_DOWN, btHandler); }; if (!bt3.hasEventListener(MouseEvent.MOUSE_DOWN)){ bt3.addEventListener(MouseEvent.MOUSE_DOWN, btHandler); }; if (!bt4.hasEventListener(MouseEvent.MOUSE_DOWN)){ bt4.addEventListener(MouseEvent.MOUSE_DOWN, btHandler); }; if (!bt5.hasEventListener(MouseEvent.MOUSE_DOWN)){ bt5.addEventListener(MouseEvent.MOUSE_DOWN, btHandler); }; if (!bt6.hasEventListener(MouseEvent.MOUSE_DOWN)){ bt6.addEventListener(MouseEvent.MOUSE_DOWN, btHandler); }; if (!bt7.hasEventListener(MouseEvent.MOUSE_DOWN)){ bt7.addEventListener(MouseEvent.MOUSE_DOWN, btHandler); }; if (!bt8.hasEventListener(MouseEvent.MOUSE_DOWN)){ bt8.addEventListener(MouseEvent.MOUSE_DOWN, btHandler); }; if (!bt9.hasEventListener(MouseEvent.MOUSE_DOWN)){ bt9.addEventListener(MouseEvent.MOUSE_DOWN, btHandler); }; if (!bt10.hasEventListener(MouseEvent.MOUSE_DOWN)){ bt10.addEventListener(MouseEvent.MOUSE_DOWN, btHandler); }; } public function btHandler(_arg1:MouseEvent){ tempatpilihan = int(_arg1.target.name.substr(2, 2)); gs[("person" + orangpilihan)].setLokasi(tempatpilihan); gotoAndStop(3); } public function nbtHandler(_arg1:MouseEvent){ orangpilihan = orang[(int(_arg1.target.name.charAt(3)) - 1)].nomor; getPlace(); } } }//package com.jayz.dailylife
Section 59
//CHighScoreScreen (com.jayz.dailylife.CHighScoreScreen) package com.jayz.dailylife { import flash.display.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import mochi.*; import flash.net.*; public class CHighScoreScreen extends CScreen { var gs:CGameSession; public var txError:TextField; public var btContinue:SimpleButton; public var btPlayMoreGames:SimpleButton; public var submitbox:MovieClip; public var issubmit:Boolean;// = false public function CHighScoreScreen(){ gs = CGameSession.getInstance(); issubmit = false; super(); } override public function init(){ txError.text = ""; btContinue.visible = false; btPlayMoreGames.addEventListener(MouseEvent.CLICK, clickPlayMoreGames); if (CGameSession.getInstance().submitscore){ submitbox.yourScore.text = gs.totalscore.toString(); submitbox.visible = true; submitbox.btn_submit.visible = true; this.stage.focus = submitbox.name_tf; submitbox.name_tf.setSelection(0, submitbox.name_tf.text.length); submitbox.btn_submit.addEventListener(MouseEvent.CLICK, submitscore); submitbox.btn_menu.addEventListener(MouseEvent.CLICK, menuclick); CGameSession.getInstance().submitscore = false; } else { submitbox.visible = false; MochiScores.showLeaderboard({onClose:function ():void{ clickContinue(null); }, onError:function ():void{ setButtonListeners(); }, res:"800x533", numScores:10}); }; } private function setButtonListeners(){ txError.text = "Error Loading Leaderboards"; btContinue.visible = true; btContinue.addEventListener(MouseEvent.CLICK, clickContinue); } private function clickContinue(_arg1:MouseEvent){ nextScreenName = "mainmenuscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function menuclick(_arg1:MouseEvent){ nextScreenName = "mainmenuscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function submitscore(_arg1:MouseEvent){ var score:Number; var e = _arg1; if (submitbox.name_tf.text == ""){ return; }; score = CGameSession.getInstance().score; submitbox.visible = false; MochiScores.showLeaderboard({onClose:function ():void{ clickContinue(null); }, onError:function ():void{ setButtonListeners(); }, res:"800x533", numScores:10, score:score, name:submitbox.name_tf.text}); submitbox.btn_submit.removeEventListener(MouseEvent.CLICK, submitscore); submitbox.btn_submit.visible = false; } override public function destroy(){ btPlayMoreGames.removeEventListener(MouseEvent.CLICK, clickPlayMoreGames); } private function clickPlayMoreGames(_arg1:MouseEvent){ navigateToURL(new URLRequest("http://www.net-games.biz"), "_blank"); } } }//package com.jayz.dailylife
Section 60
//CMainMenuScreen (com.jayz.dailylife.CMainMenuScreen) package com.jayz.dailylife { import flash.display.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import mochi.*; import flash.net.*; public class CMainMenuScreen extends CScreen { var gs:CGameSession; public var bt_play:SimpleButton; public var bt_moregame:SimpleButton; public var bt_add:SimpleButton; public var bt_highscore:SimpleButton; public var teksVer:TextField; var ss:CSound; public var bt_credits:SimpleButton; public function CMainMenuScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); super(); } override public function init(){ gs.isPlaying = false; gs.isinplay = false; teksVer.visible = false; setButtonListeners(); ss.playSound(CSound.bg_mainMenu); } private function clickPlay(_arg1:MouseEvent){ nextScreenName = "playscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function setButtonListeners(){ bt_highscore.addEventListener(MouseEvent.CLICK, clickHighScore); bt_moregame.addEventListener(MouseEvent.CLICK, clickMoreGame); bt_add.addEventListener(MouseEvent.CLICK, clickAddThisGame); bt_play.addEventListener(MouseEvent.CLICK, clickPlay); bt_credits.addEventListener(MouseEvent.CLICK, clickCredits); } private function clickHighScore(_arg1:MouseEvent){ if (!MochiServices.connected){ return; }; nextScreenName = "highscorescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function clickMoreGame(_arg1:MouseEvent){ navigateToURL(new URLRequest("http://www.net-games.biz"), "_blank"); } private function clickAddThisGame(_arg1:MouseEvent){ navigateToURL(new URLRequest("http://www.net-games.biz/downloads.php"), "_blank"); } private function clickCredits(_arg1:MouseEvent){ nextScreenName = "creditsscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ bt_highscore.removeEventListener(MouseEvent.CLICK, clickHighScore); bt_moregame.removeEventListener(MouseEvent.CLICK, clickMoreGame); bt_add.removeEventListener(MouseEvent.CLICK, clickAddThisGame); bt_play.removeEventListener(MouseEvent.CLICK, clickPlay); bt_credits.addEventListener(MouseEvent.CLICK, clickCredits); } } }//package com.jayz.dailylife
Section 61
//CMissionScreen (com.jayz.dailylife.CMissionScreen) package com.jayz.dailylife { import flash.display.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; public class CMissionScreen extends CScreen { public var cHappiness:MovieClip; public var mc_foto:MovieClip; public var cMoney:MovieClip; public var txFriend2:TextField; public var txFriend1:TextField; public var txKnowledge:TextField; var ss:CSound; public var txDay:TextField; public var cEducation:MovieClip; public var bt_playgame:SimpleButton; public var txMoney:TextField; public var cPosition:MovieClip; public var cGoods:MovieClip; var gs:CGameSession; public var lbFriend1:TextField; public var lbFriend2:TextField; public var txHappiness:TextField; public var txCareer:TextField; public var cKnowledge:MovieClip; public var txWealth:TextField; public var txGood:TextField; public var cFriend2:MovieClip; public var cFriend1:MovieClip; public var txEducation:TextField; public var bt_backstatus:SimpleButton; public var cCareer:MovieClip; public var txPosition:TextField; public var txObj:TextField; public var cWealth:MovieClip; public function CMissionScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); super(); } override public function destroy(){ if (gs.isinplay){ bt_backstatus.removeEventListener(MouseEvent.CLICK, clickkem); } else { bt_playgame.removeEventListener(MouseEvent.CLICK, clickplay); }; } public function setButtonListeners(){ bt_backstatus.visible = false; bt_playgame.visible = false; if (gs.isinplay){ bt_backstatus.visible = true; bt_backstatus.addEventListener(MouseEvent.CLICK, clickkem); } else { bt_playgame.visible = true; bt_playgame.addEventListener(MouseEvent.CLICK, clickplay); }; } public function clickplay(_arg1:Event){ ss.stopSound(CSound.bg_building); gs.initGame(); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function init(){ var _local1:String; ss.playSound(CSound.bg_building); gotoAndStop(gs.level); setButtonListeners(); cKnowledge.visible = false; cMoney.visible = false; cCareer.visible = false; cWealth.visible = false; cHappiness.visible = false; cPosition.visible = false; cEducation.visible = false; cGoods.visible = false; cFriend1.visible = false; cFriend2.visible = false; if (gs.avatarGender == "cowok"){ mc_foto.gotoAndStop(2); } else { mc_foto.gotoAndStop(1); }; txKnowledge.text = "none"; txCareer.text = "none"; txWealth.text = "none"; txHappiness.text = "none"; txGood.text = "none"; lbFriend1.text = ""; txFriend1.text = ""; lbFriend2.text = ""; txFriend2.text = ""; txObj.text = gs.leveldata[10]; if (gs.leveldata[0] != null){ if (((gs.passKnowledge()) && (gs.isinplay))){ cKnowledge.visible = true; }; txKnowledge.text = (gs.leveldata[0] + " %"); }; txMoney.text = ("$" + gs.leveldata[1]); if (((gs.passMoney()) && (gs.isinplay))){ cMoney.visible = true; }; if (gs.leveldata[2] != null){ if (((gs.passCareer()) && (gs.isinplay))){ cCareer.visible = true; }; txCareer.text = (gs.leveldata[2] + " %"); }; if (gs.leveldata[3] != null){ if (((gs.passWealth()) && (gs.isinplay))){ cWealth.visible = true; }; txWealth.text = (gs.leveldata[3] + " %"); }; if (gs.leveldata[4] != null){ if (((gs.passHappiness()) && (gs.isinplay))){ cHappiness.visible = true; }; txHappiness.text = (gs.leveldata[4] + " %"); }; txDay.text = (gs.leveldata[5] + " days"); if (((gs.passPosition()) && (gs.isinplay))){ cPosition.visible = true; }; txPosition.text = gs.leveldata[6]; txEducation.text = gs.leveldata[7]; if (((gs.passEducation()) && (gs.isinplay))){ cEducation.visible = true; }; if (gs.leveldata[8] != null){ if (((gs.passGoods()) && (gs.isinplay))){ cGoods.visible = true; }; switch (gs.leveldata[8]){ case 0: txGood.text = "refrigerator"; break; case 1: txGood.text = "microwave oven"; break; case 2: txGood.text = "aquarium"; break; case 3: txGood.text = "television sets"; break; case 4: txGood.text = "home theatre"; break; case 5: txGood.text = "massage package"; break; }; }; _local1 = "1"; if (gs.leveldata[11] == gs.leveldata[12]){ _local1 = "2"; }; switch (gs.leveldata[11]){ case 0: lbFriend1.visible = false; txFriend1.visible = false; lbFriend1.text = ""; txFriend1.text = "0"; break; case 25: lbFriend1.visible = true; txFriend1.visible = true; lbFriend1.text = "Friend :"; txFriend1.text = _local1; break; case 50: lbFriend1.visible = true; txFriend1.visible = true; lbFriend1.text = "Good Friend :"; txFriend1.text = _local1; break; case 90: lbFriend1.visible = true; txFriend1.visible = true; txFriend1.text = _local1; if (gs.avatarGender == "cowok"){ lbFriend1.text = "Girl Friend :"; } else { lbFriend1.text = "Boy Friend :"; }; break; }; if (_local1 != "2"){ switch (gs.leveldata[12]){ case 0: lbFriend2.visible = false; txFriend2.visible = false; lbFriend2.text = ""; txFriend2.text = "0%"; break; case 25: lbFriend2.visible = true; txFriend2.visible = true; lbFriend2.text = "Friend :"; txFriend2.text = "1"; break; case 50: lbFriend2.visible = true; txFriend2.visible = true; lbFriend2.text = "Good Friend :"; txFriend2.text = "1"; break; case 90: lbFriend2.visible = true; txFriend2.visible = true; txFriend2.text = "1"; if (gs.avatarGender == "cowok"){ lbFriend2.text = "Girl Friend :"; } else { lbFriend2.text = "Boy Friend :"; }; break; }; }; if (((gs.passFriend1()) && (gs.isinplay))){ cFriend1.visible = true; }; if (((gs.passFriend2()) && (gs.isinplay))){ cFriend2.visible = true; }; } private function clickkem(_arg1:Event){ ss.stopSound(CSound.bg_building); this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } } }//package com.jayz.dailylife
Section 62
//CPlayScreen (com.jayz.dailylife.CPlayScreen) package com.jayz.dailylife { import flash.display.*; import flash.events.*; import com.jayz.dailylife.game.*; public class CPlayScreen extends CScreen { var gs:CGameSession; public var bt_chara02:MovieClip; public var bt_chara01:MovieClip; public var bt_playgame:SimpleButton; var ss:CSound; public var bt_back:SimpleButton; public function CPlayScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); super(); } override public function init(){ bt_playgame.visible = false; bt_chara01.gotoAndStop(1); bt_chara02.gotoAndStop(1); setButtonListeners(); } private function setButtonListeners(){ bt_playgame.addEventListener(MouseEvent.CLICK, clickPlayGame); bt_back.addEventListener(MouseEvent.CLICK, clickBack); bt_chara01.addEventListener(MouseEvent.CLICK, clickKarakterCow); bt_chara02.addEventListener(MouseEvent.CLICK, clickKarakterCew); } private function clickKarakterCow(_arg1:MouseEvent){ bt_chara01.gotoAndStop(2); bt_chara02.gotoAndStop(1); gs.avatarGender = "cowok"; bt_playgame.visible = true; } private function clickKarakterCew(_arg1:MouseEvent){ bt_chara02.gotoAndStop(2); bt_chara01.gotoAndStop(1); gs.avatarGender = "cewek"; bt_playgame.visible = true; } private function clickBack(_arg1:MouseEvent){ this.nextScreenName = "mainmenuscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); gs.avatarGender = null; } private function clickPlayGame(_arg1:MouseEvent){ ss.stopSound(CSound.bg_mainMenu); gs.setLevel(1); gs.totalscore = 0; this.nextScreenName = "missionscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ bt_playgame.removeEventListener(MouseEvent.CLICK, clickPlayGame); bt_back.removeEventListener(MouseEvent.CLICK, clickBack); bt_chara01.removeEventListener(MouseEvent.CLICK, clickKarakterCow); bt_chara02.removeEventListener(MouseEvent.CLICK, clickKarakterCew); } } }//package com.jayz.dailylife
Section 63
//CPreLoaderScreen (com.jayz.dailylife.CPreLoaderScreen) package com.jayz.dailylife { import flash.display.*; import flash.events.*; public class CPreLoaderScreen extends CScreen { public var textprogressbar:MovieClip; override public function init(){ this.addEventListener(Event.ENTER_FRAME, ionEnterFrame); startLoading(); } private function ionEnterFrame(_arg1:Event){ var _local2:MovieClip; _local2 = MovieClip(_arg1.target); if (_local2.textprogressbar.currentFrame >= 100){ _local2.textprogressbar.stop(); _local2.stopLoading(); _local2.removeEventListener(Event.ENTER_FRAME, ionEnterFrame); }; } private function startLoading(){ } public function stopLoading(){ dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ } } }//package com.jayz.dailylife
Section 64
//CScreen (com.jayz.dailylife.CScreen) package com.jayz.dailylife { import flash.display.*; import flash.filters.*; public class CScreen extends MovieClip { public var screenName:String; public var roomid:int; public var nextScreenName:String; public var modal:Boolean; public function destroy(){ } public function init(){ } public function hideScreen(){ } public function blur(){ var _local1:BlurFilter; _local1 = new BlurFilter(8, 8, 1); this.filters = [_local1]; } public function unblur(){ var _local1:BlurFilter; _local1 = new BlurFilter(0, 0, 1); this.filters = [_local1]; } public function showScreen(){ } } }//package com.jayz.dailylife
Section 65
//CScreenManager (com.jayz.dailylife.CScreenManager) package com.jayz.dailylife { import flash.display.*; import flash.events.*; public class CScreenManager { private var stageRoot:Stage; private var screens:Array; public function CScreenManager(_arg1:Stage){ stageRoot = _arg1; init(); } public function start(_arg1:String){ showScreen(_arg1); } public function fadeScreen(_arg1:int){ } public function showScreen(_arg1:String){ var _local2:MovieClip; _local2 = screens[_arg1]; stageRoot.addChild(_local2); _local2.init(); } public function addScreen(_arg1:String, _arg2:CScreen, _arg3:Boolean, _arg4:int=0){ _arg2.modal = _arg3; screens[_arg1] = _arg2; _arg2.screenName = _arg1; _arg2.roomid = _arg4; _arg2.addEventListener("endScreen", onEndScreen); _arg2.addEventListener("callNextScreen", onCallNextScreen); } private function init(){ screens = new Array(); } public function getScreen(_arg1:String){ return (screens[_arg1]); } public function removeScreen(_arg1:String){ var _local2:MovieClip; _local2 = screens[_arg1]; stageRoot.removeChild(_local2); _local2.destroy(); } private function onEndScreen(_arg1:Event):void{ removeScreen(_arg1.target.screenName); } public function destroy(){ screens = null; } private function onCallNextScreen(_arg1:Event):void{ showScreen(_arg1.target.nextScreenName); } public function hideScreen(){ } public function nextScreen(_arg1:String, _arg2:String){ screens[_arg1].nextScreenName = _arg2; } } }//package com.jayz.dailylife
Section 66
//CStatusScreen (com.jayz.dailylife.CStatusScreen) package com.jayz.dailylife { import flash.display.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; public class CStatusScreen extends CScreen { var gs:CGameSession; public var mcWealth:MovieClip; public var mc_foto:MovieClip; public var tx_score:TextField; public var mcperson1:MovieClip; public var mcperson4:MovieClip; public var tx_happiness:TextField; public var mcHappiness:MovieClip; public var mcperson2:MovieClip; public var statusperson3:MovieClip; public var statusperson2:MovieClip; public var statusperson1:MovieClip; public var mcperson3:MovieClip; public var tx_knowledge:TextField; public var mcKnowledge:MovieClip; public var tx_career:TextField; public var statusperson4:MovieClip; public var bt_backstatus:SimpleButton; public var mcCareer:MovieClip; public var tx_wealth:TextField; public function CStatusScreen(){ gs = CGameSession.getInstance(); super(); } override public function init(){ if (gs.avatarGender == "cowok"){ mc_foto.gotoAndStop(2); } else { mc_foto.gotoAndStop(1); }; gs.updateStatusAndScore(); if (gs.wealth > 10000){ gs.wealth = 10000; }; if (gs.wealth < 0){ gs.wealth = 0; }; mcWealth.gotoAndStop(int(((gs.wealth / 10000) * 100))); mcCareer.gotoAndStop(int(((gs.career / 5000) * 100))); if (gs.knowledge > 5000){ gs.knowledge = 5000; }; mcKnowledge.gotoAndStop(int(((gs.knowledge / 5000) * 100))); if (gs.happiness2 > 7500){ gs.happiness2 = 7500; }; if (gs.happiness2 < 0){ gs.happiness2 = 0; }; mcHappiness.gotoAndStop(int(((gs.happiness2 / 7500) * 100))); tx_score.visible = true; tx_score.text = String((gs.totalscore + gs.score)); tx_knowledge.text = String(gs.knowledge); tx_career.text = String(gs.career); tx_wealth.text = String(gs.wealth); tx_happiness.text = String(gs.happiness2); mcperson1.visible = false; statusperson1.visible = false; mcperson2.visible = false; statusperson2.visible = false; mcperson3.visible = false; statusperson3.visible = false; mcperson4.visible = false; statusperson4.visible = false; if (gs.person1.score > 0){ mcperson1.visible = true; mcperson1.tx_name.text = gs.person1.name; statusperson1.visible = true; statusperson1.gotoAndStop(int(gs.person1.score)); }; if (gs.person2.score > 0){ mcperson2.visible = true; mcperson2.tx_name.text = gs.person2.name; statusperson2.visible = true; statusperson2.gotoAndStop(int(gs.person2.score)); }; if (gs.person3.score > 0){ mcperson3.visible = true; mcperson3.tx_name.text = gs.person3.name; statusperson3.visible = true; statusperson3.gotoAndStop(int(gs.person3.score)); }; if (gs.person4.score > 0){ mcperson4.visible = true; mcperson4.tx_name.text = gs.person4.name; statusperson4.visible = true; statusperson4.gotoAndStop(int(gs.person4.score)); }; setButtonListeners(); } private function setButtonListeners(){ bt_backstatus.addEventListener(MouseEvent.CLICK, clickkem); } private function clickkem(_arg1:Event){ this.nextScreenName = "gamescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ bt_backstatus.removeEventListener(MouseEvent.CLICK, clickkem); } } }//package com.jayz.dailylife
Section 67
//CTitlingScreen (com.jayz.dailylife.CTitlingScreen) package com.jayz.dailylife { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.net.*; public class CTitlingScreen extends CScreen { var mytimer:Timer; public var mcTitling:MovieClip; public function endAnimation(){ stop(); nextScreenName = "mainmenuscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function init(){ gotoAndPlay(2); } private function onClick2(_arg1:MouseEvent){ navigateToURL(new URLRequest("http://www.net-games.biz"), "_blank"); } public function daftarButtons(){ trace("CTitlingScreen:daftarButtons "); mcTitling.btPlayGames.addEventListener(MouseEvent.CLICK, onClick); mcTitling.btLogo.addEventListener(MouseEvent.CLICK, onClick2); } private function onClick(_arg1:MouseEvent){ navigateToURL(new URLRequest("http://www.net-games.biz"), "_blank"); } override public function destroy(){ } } }//package com.jayz.dailylife
Section 68
//CWinOrLoseScreen (com.jayz.dailylife.CWinOrLoseScreen) package com.jayz.dailylife { import flash.display.*; import flash.events.*; import com.jayz.dailylife.game.*; import flash.text.*; import mochi.*; import flash.net.*; public class CWinOrLoseScreen extends CScreen { var gs:CGameSession; public var teksKet:TextField; public var teksStatus:TextField; public var bt_sitelink:SimpleButton; public var bt_restart:SimpleButton; public var txScore:TextField; var ss:CSound; public var bt_submit:SimpleButton; public var bt_nextlevel:SimpleButton; public var bt_mainmenu:SimpleButton; public function CWinOrLoseScreen(){ gs = CGameSession.getInstance(); ss = CSound.getInstance(); super(); } override public function init(){ bt_submit.visible = false; bt_nextlevel.visible = false; bt_mainmenu.visible = false; bt_restart.visible = false; bt_submit.addEventListener(MouseEvent.CLICK, clickSubmit); bt_nextlevel.addEventListener(MouseEvent.CLICK, clickNextLevel); bt_restart.addEventListener(MouseEvent.CLICK, clickRestartLevel); bt_mainmenu.addEventListener(MouseEvent.CLICK, clickMainMenu); bt_sitelink.addEventListener(MouseEvent.CLICK, clickSiteLink); gs.isinplay = false; txScore.text = gs.totalscore.toString(); if (gs.isWin){ if (gs.level >= gs.maxlevel){ bt_submit.visible = true; bt_mainmenu.visible = true; gotoAndStop(3); } else { gotoAndStop(2); gs.level++; gs.setLevel(gs.level); bt_nextlevel.visible = true; }; ss.playSound(CSound.bg_win); } else { if (gs.isLose){ bt_submit.visible = true; bt_mainmenu.visible = true; bt_restart.visible = true; gotoAndStop(1); ss.playSound(CSound.bg_lose); }; }; } public function setButtonListeners(){ } private function clickRestartLevel(_arg1:MouseEvent){ this.nextScreenName = "missionscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function clickSiteLink(_arg1:MouseEvent){ navigateToURL(new URLRequest("http://www.net-games.biz"), "_blank"); } private function clickMainMenu(_arg1:MouseEvent){ this.nextScreenName = "mainmenuscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function clickNextLevel(_arg1:MouseEvent){ this.nextScreenName = "missionscreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } private function clickSubmit(_arg1:MouseEvent){ if (!MochiServices.isNetworkAvailable()){ return; }; CGameSession.getInstance().submitscore = true; this.nextScreenName = "highscorescreen"; dispatchEvent(new Event("callNextScreen")); dispatchEvent(new Event("endScreen")); } override public function destroy(){ bt_submit.removeEventListener(MouseEvent.CLICK, clickSubmit); bt_nextlevel.removeEventListener(MouseEvent.CLICK, clickNextLevel); bt_restart.removeEventListener(MouseEvent.CLICK, clickRestartLevel); bt_mainmenu.removeEventListener(MouseEvent.CLICK, clickMainMenu); bt_sitelink.removeEventListener(MouseEvent.CLICK, clickSiteLink); } } }//package com.jayz.dailylife
Section 69
//MochiBot (com.jayz.dailylife.MochiBot) package com.jayz.dailylife { import flash.display.*; import flash.net.*; import flash.system.*; public dynamic class MochiBot extends Sprite { public static function track(_arg1:Sprite, _arg2:String):MochiBot{ var _local3:MochiBot; var _local4:String; var _local5:URLVariables; var _local6:String; var _local7:URLRequest; var _local8:Loader; if (Security.sandboxType == "localWithFile"){ return (null); }; _local3 = new (MochiBot); _arg1.addChild(_local3); Security.allowDomain("*"); Security.allowInsecureDomain("*"); _local4 = "http://core.mochibot.com/my/core.swf"; _local5 = new URLVariables(); _local5["sb"] = Security.sandboxType; _local5["v"] = Capabilities.version; _local5["swfid"] = _arg2; _local5["mv"] = "8"; _local5["fv"] = "9"; _local6 = _local3.root.loaderInfo.loaderURL; if (_local6.indexOf("http") == 0){ _local5["url"] = _local6; } else { _local5["url"] = "local"; }; _local7 = new URLRequest(_local4); _local7.contentType = "application/x-www-form-urlencoded"; _local7.method = URLRequestMethod.POST; _local7.data = _local5; _local8 = new Loader(); _local3.addChild(_local8); _local8.load(_local7); return (_local3); } } }//package com.jayz.dailylife
Section 70
//baloon_78 (DailyLife_fla.baloon_78) package DailyLife_fla { import flash.display.*; public dynamic class baloon_78 extends MovieClip { public function baloon_78(){ addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6); } function frame3(){ stop(); } function frame6(){ stop(); } function frame1(){ stop(); } function frame4(){ stop(); } function frame5(){ stop(); } function frame2(){ stop(); } } }//package DailyLife_fla
Section 71
//foto_94 (DailyLife_fla.foto_94) package DailyLife_fla { import flash.display.*; public dynamic class foto_94 extends MovieClip { public var mcFotoCowok:MovieClip; public var mcFotoCewek:MovieClip; } }//package DailyLife_fla
Section 72
//MainTitling_256 (DailyLife_fla.MainTitling_256) package DailyLife_fla { import flash.display.*; public dynamic class MainTitling_256 extends MovieClip { public var btLogo:SimpleButton; public var btPlayGames:SimpleButton; public function MainTitling_256(){ addFrameScript(269, frame270); } function frame270(){ stop(); } } }//package DailyLife_fla
Section 73
//mc_avatar1_36 (DailyLife_fla.mc_avatar1_36) package DailyLife_fla { import flash.display.*; public dynamic class mc_avatar1_36 extends MovieClip { public var dude:MovieClip; public function mc_avatar1_36(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package DailyLife_fla
Section 74
//mc_avatar2_38 (DailyLife_fla.mc_avatar2_38) package DailyLife_fla { import flash.display.*; public dynamic class mc_avatar2_38 extends MovieClip { public var dude:MovieClip; public function mc_avatar2_38(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package DailyLife_fla
Section 75
//mc_intromainmenu_9 (DailyLife_fla.mc_intromainmenu_9) package DailyLife_fla { import flash.display.*; public dynamic class mc_intromainmenu_9 extends MovieClip { public function mc_intromainmenu_9(){ addFrameScript(69, frame70); } function frame70(){ stop(); } } }//package DailyLife_fla
Section 76
//mc_sickview_153 (DailyLife_fla.mc_sickview_153) package DailyLife_fla { import flash.display.*; import flash.text.*; public dynamic class mc_sickview_153 extends MovieClip { public var myAvatar:CAvatar; public var person1:MovieClip; public var person4:MovieClip; public var person2:MovieClip; public var tx_clock:TextField; public var person3:MovieClip; public var bt_bill:SimpleButton; public function mc_sickview_153(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package DailyLife_fla
Section 77
//person01_97 (DailyLife_fla.person01_97) package DailyLife_fla { import flash.display.*; import flash.text.*; public dynamic class person01_97 extends MovieClip { public var tx_name:TextField; public function person01_97(){ addFrameScript(0, frame1, 6, frame7); } function frame7(){ gotoAndPlay("talk"); } function frame1(){ stop(); } } }//package DailyLife_fla
Section 78
//person02_98 (DailyLife_fla.person02_98) package DailyLife_fla { import flash.display.*; import flash.text.*; public dynamic class person02_98 extends MovieClip { public var tx_name:TextField; public function person02_98(){ addFrameScript(0, frame1, 31, frame32); } function frame1(){ stop(); } function frame32(){ gotoAndPlay("talk"); } } }//package DailyLife_fla
Section 79
//person03_99 (DailyLife_fla.person03_99) package DailyLife_fla { import flash.display.*; import flash.text.*; public dynamic class person03_99 extends MovieClip { public var tx_name:TextField; public function person03_99(){ addFrameScript(0, frame1, 6, frame7); } function frame7(){ gotoAndPlay("talk"); } function frame1(){ stop(); } } }//package DailyLife_fla
Section 80
//person04_100 (DailyLife_fla.person04_100) package DailyLife_fla { import flash.display.*; import flash.text.*; public dynamic class person04_100 extends MovieClip { public var tx_name:TextField; public function person04_100(){ addFrameScript(0, frame1, 6, frame7); } function frame7(){ gotoAndPlay("talk"); } function frame1(){ stop(); } } }//package DailyLife_fla
Section 81
//progressbar_1 (DailyLife_fla.progressbar_1) package DailyLife_fla { import flash.display.*; import flash.text.*; public dynamic class progressbar_1 extends MovieClip { public var textProgressBar:TextField; } }//package DailyLife_fla
Section 82
//submitbox_240 (DailyLife_fla.submitbox_240) package DailyLife_fla { import flash.display.*; import flash.text.*; public dynamic class submitbox_240 extends MovieClip { public var yourScore:TextField; public var btn_submit:SimpleButton; public var btn_menu:SimpleButton; public var name_tf:TextField; } }//package DailyLife_fla
Section 83
//BaseButton (fl.controls.BaseButton) package fl.controls { import flash.display.*; import flash.events.*; import fl.core.*; import fl.events.*; import flash.utils.*; public class BaseButton extends UIComponent { protected var _selected:Boolean;// = false private var unlockedMouseState:String; protected var pressTimer:Timer; protected var mouseState:String; protected var background:DisplayObject; private var _mouseStateLocked:Boolean;// = false protected var _autoRepeat:Boolean;// = false private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35}; public function BaseButton(){ _selected = false; _autoRepeat = false; _mouseStateLocked = false; super(); buttonMode = true; mouseChildren = false; useHandCursor = false; setupMouseEvents(); setMouseState("up"); pressTimer = new Timer(1, 0); pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true); } protected function endPress():void{ pressTimer.reset(); } public function set mouseStateLocked(_arg1:Boolean):void{ _mouseStateLocked = _arg1; if (_arg1 == false){ setMouseState(unlockedMouseState); } else { unlockedMouseState = mouseState; }; } public function get autoRepeat():Boolean{ return (_autoRepeat); } public function set autoRepeat(_arg1:Boolean):void{ _autoRepeat = _arg1; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; mouseEnabled = _arg1; } public function get selected():Boolean{ return (_selected); } protected function mouseEventHandler(_arg1:MouseEvent):void{ if (_arg1.type == MouseEvent.MOUSE_DOWN){ setMouseState("down"); startPress(); } else { if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){ setMouseState("over"); endPress(); } else { if (_arg1.type == MouseEvent.ROLL_OUT){ setMouseState("up"); endPress(); }; }; }; } public function setMouseState(_arg1:String):void{ if (_mouseStateLocked){ unlockedMouseState = _arg1; return; }; if (mouseState == _arg1){ return; }; mouseState = _arg1; invalidate(InvalidationType.STATE); } protected function startPress():void{ if (_autoRepeat){ pressTimer.delay = Number(getStyleValue("repeatDelay")); pressTimer.start(); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } protected function buttonDown(_arg1:TimerEvent):void{ if (!_autoRepeat){ endPress(); return; }; if (pressTimer.currentCount == 1){ pressTimer.delay = Number(getStyleValue("repeatInterval")); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } public function set selected(_arg1:Boolean):void{ if (_selected == _arg1){ return; }; _selected = _arg1; invalidate(InvalidationType.STATE); } override public function get enabled():Boolean{ return (super.enabled); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; super.draw(); } protected function setupMouseEvents():void{ addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true); } protected function drawLayout():void{ background.width = width; background.height = height; } protected function drawBackground():void{ var _local1:String; var _local2:DisplayObject; _local1 = (enabled) ? mouseState : "disabled"; if (selected){ _local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1)); }; _local1 = (_local1 + "Skin"); _local2 = background; background = getDisplayObjectInstance(getStyleValue(_local1)); addChildAt(background, 0); if (((!((_local2 == null))) && (!((_local2 == background))))){ removeChild(_local2); }; } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 84
//Button (fl.controls.Button) package fl.controls { import flash.display.*; import fl.core.*; import fl.managers.*; public class Button extends LabelButton implements IFocusManagerComponent { protected var emphasizedBorder:DisplayObject; protected var _emphasized:Boolean;// = false private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2}; public static var createAccessibilityImplementation:Function; public function Button(){ _emphasized = false; super(); } override public function drawFocus(_arg1:Boolean):void{ var _local2:Number; var _local3:*; super.drawFocus(_arg1); if (_arg1){ _local2 = Number(getStyleValue("emphasizedPadding")); if ((((_local2 < 0)) || (!(_emphasized)))){ _local2 = 0; }; _local3 = getStyleValue("focusRectPadding"); _local3 = ((_local3)==null) ? 2 : _local3; _local3 = (_local3 + _local2); uiFocusRect.x = -(_local3); uiFocusRect.y = -(_local3); uiFocusRect.width = (width + (_local3 * 2)); uiFocusRect.height = (height + (_local3 * 2)); }; } public function set emphasized(_arg1:Boolean):void{ _emphasized = _arg1; invalidate(InvalidationType.STYLES); } override protected function draw():void{ if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){ drawEmphasized(); }; super.draw(); if (emphasizedBorder != null){ setChildIndex(emphasizedBorder, (numChildren - 1)); }; } public function get emphasized():Boolean{ return (_emphasized); } override protected function initializeAccessibility():void{ if (Button.createAccessibilityImplementation != null){ Button.createAccessibilityImplementation(this); }; } protected function drawEmphasized():void{ var _local1:Object; var _local2:Number; if (emphasizedBorder != null){ removeChild(emphasizedBorder); }; emphasizedBorder = null; if (!_emphasized){ return; }; _local1 = getStyleValue("emphasizedSkin"); if (_local1 != null){ emphasizedBorder = getDisplayObjectInstance(_local1); }; if (emphasizedBorder != null){ addChildAt(emphasizedBorder, 0); _local2 = Number(getStyleValue("emphasizedPadding")); emphasizedBorder.x = (emphasizedBorder.y = -(_local2)); emphasizedBorder.width = (width + (_local2 * 2)); emphasizedBorder.height = (height + (_local2 * 2)); }; } public static function getStyleDefinition():Object{ return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles)); } } }//package fl.controls
Section 85
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement) package fl.controls { public class ButtonLabelPlacement { public static const TOP:String = "top"; public static const LEFT:String = "left"; public static const BOTTOM:String = "bottom"; public static const RIGHT:String = "right"; } }//package fl.controls
Section 86
//LabelButton (fl.controls.LabelButton) package fl.controls { import flash.display.*; import flash.events.*; import fl.core.*; import fl.managers.*; import flash.text.*; import fl.events.*; import flash.ui.*; public class LabelButton extends BaseButton implements IFocusManagerComponent { protected var _labelPlacement:String;// = "right" protected var _toggle:Boolean;// = false protected var icon:DisplayObject; protected var oldMouseState:String; protected var mode:String;// = "center" public var textField:TextField; protected var _label:String;// = "Label" private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false}; public static var createAccessibilityImplementation:Function; public function LabelButton(){ _labelPlacement = ButtonLabelPlacement.RIGHT; _toggle = false; _label = "Label"; mode = "center"; super(); } protected function toggleSelected(_arg1:MouseEvent):void{ selected = !(selected); dispatchEvent(new Event(Event.CHANGE, true)); } public function get labelPlacement():String{ return (_labelPlacement); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ if (oldMouseState == null){ oldMouseState = mouseState; }; setMouseState("down"); startPress(); }; } protected function setEmbedFont(){ var _local1:Object; _local1 = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; } override protected function keyUpHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ setMouseState(oldMouseState); oldMouseState = null; endPress(); dispatchEvent(new MouseEvent(MouseEvent.CLICK)); }; } override public function get selected():Boolean{ return ((_toggle) ? _selected : false); } public function set labelPlacement(_arg1:String):void{ _labelPlacement = _arg1; invalidate(InvalidationType.SIZE); } public function set toggle(_arg1:Boolean):void{ if (((!(_arg1)) && (super.selected))){ selected = false; }; _toggle = _arg1; if (_toggle){ addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true); } else { removeEventListener(MouseEvent.CLICK, toggleSelected); }; invalidate(InvalidationType.STATE); } public function get label():String{ return (_label); } override public function set selected(_arg1:Boolean):void{ _selected = _arg1; if (_toggle){ invalidate(InvalidationType.STATE); }; } override protected function draw():void{ if (textField.text != _label){ label = _label; }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); drawIcon(); drawTextFormat(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } public function get toggle():Boolean{ return (_toggle); } override protected function configUI():void{ super.configUI(); textField = new TextField(); textField.type = TextFieldType.DYNAMIC; textField.selectable = false; addChild(textField); } override protected function drawLayout():void{ var _local1:Number; var _local2:String; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; _local1 = Number(getStyleValue("textPadding")); _local2 = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement; textField.height = (textField.textHeight + 4); _local3 = (textField.textWidth + 4); _local4 = (textField.textHeight + 4); _local5 = ((icon)==null) ? 0 : (icon.width + _local1); _local6 = ((icon)==null) ? 0 : (icon.height + _local1); textField.visible = (label.length > 0); if (icon != null){ icon.x = Math.round(((width - icon.width) / 2)); icon.y = Math.round(((height - icon.height) / 2)); }; if (textField.visible == false){ textField.width = 0; textField.height = 0; } else { if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){ _local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1)))); if ((height - 2) > _local4){ _local8 = _local4; } else { _local8 = (height - 2); }; _local3 = _local7; textField.width = _local3; _local4 = _local8; textField.height = _local4; textField.x = Math.round(((width - _local3) / 2)); textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0)); if (icon != null){ icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1)); }; } else { _local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1)))); _local3 = _local7; textField.width = _local3; textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0)); textField.y = Math.round(((height - textField.height) / 2)); if (icon != null){ icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1)); }; }; }; super.drawLayout(); } override protected function initializeAccessibility():void{ if (LabelButton.createAccessibilityImplementation != null){ LabelButton.createAccessibilityImplementation(this); }; } protected function drawIcon():void{ var _local1:DisplayObject; var _local2:String; var _local3:Object; _local1 = icon; _local2 = (enabled) ? mouseState : "disabled"; if (selected){ _local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1)); }; _local2 = (_local2 + "Icon"); _local3 = getStyleValue(_local2); if (_local3 == null){ _local3 = getStyleValue("icon"); }; if (_local3 != null){ icon = getDisplayObjectInstance(_local3); }; if (icon != null){ addChildAt(icon, 1); }; if (((!((_local1 == null))) && (!((_local1 == icon))))){ removeChild(_local1); }; } public function set label(_arg1:String):void{ _label = _arg1; if (textField.text != _label){ textField.text = _label; dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE)); }; invalidate(InvalidationType.SIZE); invalidate(InvalidationType.STYLES); } protected function drawTextFormat():void{ var _local1:Object; var _local2:TextFormat; var _local3:TextFormat; _local1 = UIComponent.getStyleDefinition(); _local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat); textField.setTextFormat(_local2); _local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local3 != null){ textField.setTextFormat(_local3); } else { _local3 = _local2; }; textField.defaultTextFormat = _local3; setEmbedFont(); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition())); } } }//package fl.controls
Section 87
//ScrollBar (fl.controls.ScrollBar) package fl.controls { import flash.events.*; import fl.core.*; import fl.events.*; public class ScrollBar extends UIComponent { private var _direction:String;// = "vertical" protected var inDrag:Boolean;// = false protected var upArrow:BaseButton; private var _pageScrollSize:Number;// = 0 protected var downArrow:BaseButton; private var _pageSize:Number;// = 10 private var thumbScrollOffset:Number; private var _maxScrollPosition:Number;// = 0 private var _scrollPosition:Number;// = 0 protected var track:BaseButton; private var _minScrollPosition:Number;// = 0 private var _lineScrollSize:Number;// = 1 protected var thumb:LabelButton; protected static const THUMB_STYLES:Object = {disabledSkin:"thumbDisabledSkin", downSkin:"thumbDownSkin", overSkin:"thumbOverSkin", upSkin:"thumbUpSkin", icon:"thumbIcon", textPadding:0}; public static const WIDTH:Number = 15; protected static const DOWN_ARROW_STYLES:Object = {disabledSkin:"downArrowDisabledSkin", downSkin:"downArrowDownSkin", overSkin:"downArrowOverSkin", upSkin:"downArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; protected static const UP_ARROW_STYLES:Object = {disabledSkin:"upArrowDisabledSkin", downSkin:"upArrowDownSkin", overSkin:"upArrowOverSkin", upSkin:"upArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; protected static const TRACK_STYLES:Object = {disabledSkin:"trackDisabledSkin", downSkin:"trackDownSkin", overSkin:"trackOverSkin", upSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; private static var defaultStyles:Object = {downArrowDisabledSkin:"ScrollArrowDown_disabledSkin", downArrowDownSkin:"ScrollArrowDown_downSkin", downArrowOverSkin:"ScrollArrowDown_overSkin", downArrowUpSkin:"ScrollArrowDown_upSkin", thumbDisabledSkin:"ScrollThumb_upSkin", thumbDownSkin:"ScrollThumb_downSkin", thumbOverSkin:"ScrollThumb_overSkin", thumbUpSkin:"ScrollThumb_upSkin", trackDisabledSkin:"ScrollTrack_skin", trackDownSkin:"ScrollTrack_skin", trackOverSkin:"ScrollTrack_skin", trackUpSkin:"ScrollTrack_skin", upArrowDisabledSkin:"ScrollArrowUp_disabledSkin", upArrowDownSkin:"ScrollArrowUp_downSkin", upArrowOverSkin:"ScrollArrowUp_overSkin", upArrowUpSkin:"ScrollArrowUp_upSkin", thumbIcon:"ScrollBar_thumbIcon", repeatDelay:500, repeatInterval:35}; public function ScrollBar(){ _pageSize = 10; _pageScrollSize = 0; _lineScrollSize = 1; _minScrollPosition = 0; _maxScrollPosition = 0; _scrollPosition = 0; _direction = ScrollBarDirection.VERTICAL; inDrag = false; super(); setStyles(); focusEnabled = false; } public function get minScrollPosition():Number{ return (_minScrollPosition); } public function set minScrollPosition(_arg1:Number):void{ setScrollProperties(_pageSize, _arg1, _maxScrollPosition); } public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{ var _local3:Number; _local3 = scrollPosition; _scrollPosition = Math.max(_minScrollPosition, Math.min(_maxScrollPosition, _arg1)); if (_local3 == _scrollPosition){ return; }; if (_arg2){ dispatchEvent(new ScrollEvent(_direction, (scrollPosition - _local3), scrollPosition)); }; updateThumb(); } public function set scrollPosition(_arg1:Number):void{ setScrollPosition(_arg1, true); } public function get pageScrollSize():Number{ return (((_pageScrollSize)==0) ? _pageSize : _pageScrollSize); } public function set pageSize(_arg1:Number):void{ if (_arg1 > 0){ _pageSize = _arg1; }; } public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{ this.pageSize = _arg1; _minScrollPosition = _arg2; _maxScrollPosition = _arg3; if (_arg4 >= 0){ _pageScrollSize = _arg4; }; enabled = (_maxScrollPosition > _minScrollPosition); setScrollPosition(_scrollPosition, false); updateThumb(); } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; downArrow.enabled = (track.enabled = (thumb.enabled = (upArrow.enabled = ((enabled) && ((_maxScrollPosition > _minScrollPosition)))))); updateThumb(); } protected function updateThumb():void{ var _local1:Number; _local1 = ((_maxScrollPosition - _minScrollPosition) + _pageSize); if ((((((track.height <= 12)) || ((_maxScrollPosition <= _minScrollPosition)))) || ((((_local1 == 0)) || (isNaN(_local1)))))){ thumb.height = 12; thumb.visible = false; } else { thumb.height = Math.max(13, ((_pageSize / _local1) * track.height)); thumb.y = (track.y + ((track.height - thumb.height) * ((_scrollPosition - _minScrollPosition) / (_maxScrollPosition - _minScrollPosition)))); thumb.visible = enabled; }; } protected function thumbPressHandler(_arg1:MouseEvent):void{ inDrag = true; thumbScrollOffset = (mouseY - thumb.y); thumb.mouseStateLocked = true; mouseChildren = false; stage.addEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag, false, 0, true); stage.addEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler, false, 0, true); } protected function thumbReleaseHandler(_arg1:MouseEvent):void{ inDrag = false; mouseChildren = true; thumb.mouseStateLocked = false; stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag); stage.removeEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler); } public function set pageScrollSize(_arg1:Number):void{ if (_arg1 >= 0){ _pageScrollSize = _arg1; }; } protected function handleThumbDrag(_arg1:MouseEvent):void{ var _local2:Number; _local2 = Math.max(0, Math.min((track.height - thumb.height), ((mouseY - track.y) - thumbScrollOffset))); setScrollPosition((((_local2 / (track.height - thumb.height)) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition)); } public function set direction(_arg1:String):void{ var _local2:Boolean; if (_direction == _arg1){ return; }; _direction = _arg1; if (isLivePreview){ return; }; setScaleY(1); _local2 = (_direction == ScrollBarDirection.HORIZONTAL); if (((_local2) && (componentInspectorSetting))){ if (rotation == 90){ return; }; setScaleX(-1); rotation = -90; }; if (!componentInspectorSetting){ if (((_local2) && ((rotation == 0)))){ rotation = -90; setScaleX(-1); } else { if (((!(_local2)) && ((rotation == -90)))){ rotation = 0; setScaleX(1); }; }; }; invalidate(InvalidationType.SIZE); } public function set lineScrollSize(_arg1:Number):void{ if (_arg1 > 0){ _lineScrollSize = _arg1; }; } override public function get height():Number{ return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.width : super.height); } protected function scrollPressHandler(_arg1:ComponentEvent):void{ var _local2:Number; var _local3:Number; _arg1.stopImmediatePropagation(); if (_arg1.currentTarget == upArrow){ setScrollPosition((_scrollPosition - _lineScrollSize)); } else { if (_arg1.currentTarget == downArrow){ setScrollPosition((_scrollPosition + _lineScrollSize)); } else { _local2 = (((track.mouseY / track.height) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition); _local3 = ((pageScrollSize)==0) ? pageSize : pageScrollSize; if (_scrollPosition < _local2){ setScrollPosition(Math.min(_local2, (_scrollPosition + _local3))); } else { if (_scrollPosition > _local2){ setScrollPosition(Math.max(_local2, (_scrollPosition - _local3))); }; }; }; }; } public function get pageSize():Number{ return (_pageSize); } public function set maxScrollPosition(_arg1:Number):void{ setScrollProperties(_pageSize, _minScrollPosition, _arg1); } public function get scrollPosition():Number{ return (_scrollPosition); } override public function get enabled():Boolean{ return (super.enabled); } override protected function draw():void{ var _local1:Number; if (isInvalid(InvalidationType.SIZE)){ _local1 = super.height; downArrow.move(0, Math.max(upArrow.height, (_local1 - downArrow.height))); track.setSize(WIDTH, Math.max(0, (_local1 - (downArrow.height + upArrow.height)))); updateThumb(); }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ setStyles(); }; downArrow.drawNow(); upArrow.drawNow(); track.drawNow(); thumb.drawNow(); validate(); } override protected function configUI():void{ super.configUI(); track = new BaseButton(); track.move(0, 14); track.useHandCursor = false; track.autoRepeat = true; track.focusEnabled = false; addChild(track); thumb = new LabelButton(); thumb.label = ""; thumb.setSize(WIDTH, 15); thumb.move(0, 15); thumb.focusEnabled = false; addChild(thumb); downArrow = new BaseButton(); downArrow.setSize(WIDTH, 14); downArrow.autoRepeat = true; downArrow.focusEnabled = false; addChild(downArrow); upArrow = new BaseButton(); upArrow.setSize(WIDTH, 14); upArrow.move(0, 0); upArrow.autoRepeat = true; upArrow.focusEnabled = false; addChild(upArrow); upArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); downArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); track.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbPressHandler, false, 0, true); enabled = false; } public function get direction():String{ return (_direction); } public function get lineScrollSize():Number{ return (_lineScrollSize); } override public function setSize(_arg1:Number, _arg2:Number):void{ if (_direction == ScrollBarDirection.HORIZONTAL){ super.setSize(_arg2, _arg1); } else { super.setSize(_arg1, _arg2); }; } public function get maxScrollPosition():Number{ return (_maxScrollPosition); } override public function get width():Number{ return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.height : super.width); } protected function setStyles():void{ copyStylesToChild(downArrow, DOWN_ARROW_STYLES); copyStylesToChild(thumb, THUMB_STYLES); copyStylesToChild(track, TRACK_STYLES); copyStylesToChild(upArrow, UP_ARROW_STYLES); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 88
//ScrollBarDirection (fl.controls.ScrollBarDirection) package fl.controls { public class ScrollBarDirection { public static const HORIZONTAL:String = "horizontal"; public static const VERTICAL:String = "vertical"; } }//package fl.controls
Section 89
//ScrollPolicy (fl.controls.ScrollPolicy) package fl.controls { public class ScrollPolicy { public static const OFF:String = "off"; public static const ON:String = "on"; public static const AUTO:String = "auto"; } }//package fl.controls
Section 90
//TextArea (fl.controls.TextArea) package fl.controls { import flash.display.*; import flash.events.*; import fl.core.*; import fl.managers.*; import flash.text.*; import fl.events.*; import flash.system.*; import flash.ui.*; public class TextArea extends UIComponent implements IFocusManagerComponent { protected var _html:Boolean;// = false protected var _verticalScrollBar:UIScrollBar; protected var _savedHTML:String; protected var background:DisplayObject; protected var _horizontalScrollBar:UIScrollBar; protected var _horizontalScrollPolicy:String;// = "auto" protected var _editable:Boolean;// = true protected var textHasChanged:Boolean;// = false public var textField:TextField; protected var _wordWrap:Boolean;// = true protected var _verticalScrollPolicy:String;// = "auto" protected static const SCROLL_BAR_STYLES:Object = {downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; private static var defaultStyles:Object = {upSkin:"TextArea_upSkin", disabledSkin:"TextArea_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:3, embedFonts:false}; public static var createAccessibilityImplementation:Function; public function TextArea(){ _editable = true; _wordWrap = true; _horizontalScrollPolicy = ScrollPolicy.AUTO; _verticalScrollPolicy = ScrollPolicy.AUTO; _html = false; textHasChanged = false; super(); } override public function drawFocus(_arg1:Boolean):void{ if (focusTarget != null){ focusTarget.drawFocus(_arg1); return; }; super.drawFocus(_arg1); } public function set imeMode(_arg1:String):void{ _imeMode = _arg1; } protected function handleWheel(_arg1:MouseEvent):void{ if (((!(enabled)) || (!(_verticalScrollBar.visible)))){ return; }; _verticalScrollBar.scrollPosition = (_verticalScrollBar.scrollPosition - (_arg1.delta * _verticalScrollBar.lineScrollSize)); dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, (_arg1.delta * _verticalScrollBar.lineScrollSize), _verticalScrollBar.scrollPosition)); } public function get verticalScrollPosition():Number{ return (textField.scrollV); } override protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((((_arg1 == textField)) || (super.isOurFocus(_arg1)))); } public function set verticalScrollPosition(_arg1:Number):void{ drawNow(); textField.scrollV = _arg1; } protected function handleKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ENTER){ dispatchEvent(new ComponentEvent(ComponentEvent.ENTER, true)); }; } public function set text(_arg1:String):void{ if (((componentInspectorSetting) && ((_arg1 == "")))){ return; }; textField.text = _arg1; _html = false; invalidate(InvalidationType.DATA); invalidate(InvalidationType.STYLES); textHasChanged = true; } protected function updateTextFieldType():void{ textField.type = (((enabled) && (_editable))) ? TextFieldType.INPUT : TextFieldType.DYNAMIC; textField.selectable = enabled; textField.wordWrap = _wordWrap; textField.multiline = true; } public function get selectionEndIndex():int{ return (textField.selectionEndIndex); } public function get editable():Boolean{ return (_editable); } override protected function focusInHandler(_arg1:FocusEvent):void{ var _local2:IFocusManager; setIMEMode(true); if (_arg1.target == this){ stage.focus = textField; }; _local2 = focusManager; if (_local2){ if (editable){ _local2.showFocusIndicator = true; }; _local2.defaultButtonEnabled = false; }; super.focusInHandler(_arg1); if (editable){ setIMEMode(true); }; } public function get wordWrap():Boolean{ return (_wordWrap); } public function get selectionBeginIndex():int{ return (textField.selectionBeginIndex); } public function get horizontalScrollBar():UIScrollBar{ return (_horizontalScrollBar); } public function set alwaysShowSelection(_arg1:Boolean):void{ textField.alwaysShowSelection = _arg1; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; mouseChildren = enabled; invalidate(InvalidationType.STATE); } protected function setEmbedFont(){ var _local1:Object; _local1 = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; } public function get horizontalScrollPosition():Number{ return (textField.scrollH); } public function set condenseWhite(_arg1:Boolean):void{ textField.condenseWhite = _arg1; invalidate(InvalidationType.DATA); } public function get horizontalScrollPolicy():String{ return (_horizontalScrollPolicy); } public function set displayAsPassword(_arg1:Boolean):void{ textField.displayAsPassword = _arg1; } public function get maxVerticalScrollPosition():int{ return (textField.maxScrollV); } public function set horizontalScrollPosition(_arg1:Number):void{ drawNow(); textField.scrollH = _arg1; } public function get textHeight():Number{ drawNow(); return (textField.textHeight); } public function get textWidth():Number{ drawNow(); return (textField.textWidth); } public function get restrict():String{ return (textField.restrict); } public function set editable(_arg1:Boolean):void{ _editable = _arg1; invalidate(InvalidationType.STATE); } protected function updateScrollBars(){ _horizontalScrollBar.update(); _verticalScrollBar.update(); _verticalScrollBar.enabled = enabled; _horizontalScrollBar.enabled = enabled; _horizontalScrollBar.drawNow(); _verticalScrollBar.drawNow(); } public function get maxChars():int{ return (textField.maxChars); } public function get length():Number{ return (textField.text.length); } public function set wordWrap(_arg1:Boolean):void{ _wordWrap = _arg1; invalidate(InvalidationType.STATE); } public function get verticalScrollPolicy():String{ return (_verticalScrollPolicy); } public function getLineMetrics(_arg1:int):TextLineMetrics{ return (textField.getLineMetrics(_arg1)); } public function get imeMode():String{ return (IME.conversionMode); } protected function handleScroll(_arg1:ScrollEvent):void{ dispatchEvent(_arg1); } override protected function focusOutHandler(_arg1:FocusEvent):void{ var _local2:IFocusManager; _local2 = focusManager; if (_local2){ _local2.defaultButtonEnabled = true; }; setSelection(0, 0); super.focusOutHandler(_arg1); if (editable){ setIMEMode(false); }; } protected function delayedLayoutUpdate(_arg1:Event):void{ if (textHasChanged){ textHasChanged = false; drawLayout(); return; }; removeEventListener(Event.ENTER_FRAME, delayedLayoutUpdate); } public function set htmlText(_arg1:String):void{ if (((componentInspectorSetting) && ((_arg1 == "")))){ return; }; if (_arg1 == ""){ text = ""; return; }; _html = true; _savedHTML = _arg1; textField.htmlText = _arg1; invalidate(InvalidationType.DATA); invalidate(InvalidationType.STYLES); textHasChanged = true; } public function get text():String{ return (textField.text); } public function get verticalScrollBar():UIScrollBar{ return (_verticalScrollBar); } override public function get enabled():Boolean{ return (super.enabled); } public function get condenseWhite():Boolean{ return (textField.condenseWhite); } public function set horizontalScrollPolicy(_arg1:String):void{ _horizontalScrollPolicy = _arg1; invalidate(InvalidationType.SIZE); } public function get displayAsPassword():Boolean{ return (textField.displayAsPassword); } override protected function draw():void{ if (isInvalid(InvalidationType.STATE)){ updateTextFieldType(); }; if (isInvalid(InvalidationType.STYLES)){ setStyles(); setEmbedFont(); }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawTextFormat(); drawBackground(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE, InvalidationType.DATA)){ drawLayout(); }; super.draw(); } protected function handleTextInput(_arg1:TextEvent):void{ _arg1.stopPropagation(); dispatchEvent(new TextEvent(TextEvent.TEXT_INPUT, true, false, _arg1.text)); } override protected function configUI():void{ super.configUI(); tabChildren = true; textField = new TextField(); addChild(textField); updateTextFieldType(); _verticalScrollBar = new UIScrollBar(); _verticalScrollBar.name = "V"; _verticalScrollBar.visible = false; _verticalScrollBar.focusEnabled = false; copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES); _verticalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true); addChild(_verticalScrollBar); _horizontalScrollBar = new UIScrollBar(); _horizontalScrollBar.name = "H"; _horizontalScrollBar.visible = false; _horizontalScrollBar.focusEnabled = false; _horizontalScrollBar.direction = ScrollBarDirection.HORIZONTAL; copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES); _horizontalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true); addChild(_horizontalScrollBar); textField.addEventListener(TextEvent.TEXT_INPUT, handleTextInput, false, 0, true); textField.addEventListener(Event.CHANGE, handleChange, false, 0, true); textField.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown, false, 0, true); _horizontalScrollBar.scrollTarget = textField; _verticalScrollBar.scrollTarget = textField; addEventListener(MouseEvent.MOUSE_WHEEL, handleWheel, false, 0, true); } protected function setTextSize(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:Number; var _local5:Number; _local4 = (_arg1 - (_arg3 * 2)); _local5 = (_arg2 - (_arg3 * 2)); if (_local4 != textField.width){ textField.width = _local4; }; if (_local5 != textField.height){ textField.height = _local5; }; } public function appendText(_arg1:String):void{ textField.appendText(_arg1); invalidate(InvalidationType.DATA); } protected function needVScroll():Boolean{ if (_verticalScrollPolicy == ScrollPolicy.OFF){ return (false); }; if (_verticalScrollPolicy == ScrollPolicy.ON){ return (true); }; return ((textField.maxScrollV > 1)); } public function setSelection(_arg1:int, _arg2:int):void{ textField.setSelection(_arg1, _arg2); } public function get alwaysShowSelection():Boolean{ return (textField.alwaysShowSelection); } public function get htmlText():String{ return (textField.htmlText); } public function set restrict(_arg1:String):void{ if (((componentInspectorSetting) && ((_arg1 == "")))){ _arg1 = null; }; textField.restrict = _arg1; } protected function drawBackground():void{ var _local1:DisplayObject; var _local2:String; _local1 = background; _local2 = (enabled) ? "upSkin" : "disabledSkin"; background = getDisplayObjectInstance(getStyleValue(_local2)); if (background != null){ addChildAt(background, 0); }; if (((((!((_local1 == null))) && (!((_local1 == background))))) && (contains(_local1)))){ removeChild(_local1); }; } public function set maxChars(_arg1:int):void{ textField.maxChars = _arg1; } public function get maxHorizontalScrollPosition():int{ return (textField.maxScrollH); } protected function drawLayout():void{ var _local1:Number; var _local2:Number; var _local3:Boolean; var _local4:Number; var _local5:Boolean; _local1 = Number(getStyleValue("textPadding")); textField.x = (textField.y = _local1); background.width = width; background.height = height; _local2 = height; _local3 = needVScroll(); _local4 = (width - (_local3) ? _verticalScrollBar.width : 0); _local5 = needHScroll(); if (_local5){ _local2 = (_local2 - _horizontalScrollBar.height); }; setTextSize(_local4, _local2, _local1); if (((((_local5) && (!(_local3)))) && (needVScroll()))){ _local3 = true; _local4 = (_local4 - _verticalScrollBar.width); setTextSize(_local4, _local2, _local1); }; if (_local3){ _verticalScrollBar.visible = true; _verticalScrollBar.x = (width - _verticalScrollBar.width); _verticalScrollBar.height = _local2; _verticalScrollBar.visible = true; _verticalScrollBar.enabled = enabled; } else { _verticalScrollBar.visible = false; }; if (_local5){ _horizontalScrollBar.visible = true; _horizontalScrollBar.y = (height - _horizontalScrollBar.height); _horizontalScrollBar.width = _local4; _horizontalScrollBar.visible = true; _horizontalScrollBar.enabled = enabled; } else { _horizontalScrollBar.visible = false; }; updateScrollBars(); addEventListener(Event.ENTER_FRAME, delayedLayoutUpdate, false, 0, true); } protected function setStyles():void{ copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES); copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES); } protected function needHScroll():Boolean{ if (_horizontalScrollPolicy == ScrollPolicy.OFF){ return (false); }; if (_horizontalScrollPolicy == ScrollPolicy.ON){ return (true); }; return ((textField.maxScrollH > 0)); } protected function drawTextFormat():void{ var _local1:Object; var _local2:TextFormat; var _local3:TextFormat; _local1 = UIComponent.getStyleDefinition(); _local2 = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat); textField.setTextFormat(_local2); _local3 = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local3 != null){ textField.setTextFormat(_local3); } else { _local3 = _local2; }; textField.defaultTextFormat = _local3; setEmbedFont(); if (_html){ textField.htmlText = _savedHTML; }; } public function set verticalScrollPolicy(_arg1:String):void{ _verticalScrollPolicy = _arg1; invalidate(InvalidationType.SIZE); } protected function handleChange(_arg1:Event):void{ _arg1.stopPropagation(); dispatchEvent(new Event(Event.CHANGE, true)); invalidate(InvalidationType.DATA); } public static function getStyleDefinition():Object{ return (UIComponent.mergeStyles(defaultStyles, ScrollBar.getStyleDefinition())); } } }//package fl.controls
Section 91
//UIScrollBar (fl.controls.UIScrollBar) package fl.controls { import flash.events.*; import fl.core.*; import flash.text.*; import fl.events.*; public class UIScrollBar extends ScrollBar { protected var inScroll:Boolean;// = false protected var _scrollTarget:TextField; protected var inEdit:Boolean;// = false private static var defaultStyles:Object = {}; public function UIScrollBar(){ inEdit = false; inScroll = false; super(); } protected function handleTargetScroll(_arg1:Event):void{ if (inDrag){ return; }; if (!enabled){ return; }; inEdit = true; updateScrollTargetProperties(); scrollPosition = ((direction)==ScrollBarDirection.HORIZONTAL) ? _scrollTarget.scrollH : _scrollTarget.scrollV; inEdit = false; } override public function set minScrollPosition(_arg1:Number):void{ super.minScrollPosition = ((_arg1)<0) ? 0 : _arg1; } override public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{ super.setScrollPosition(_arg1, _arg2); if (!_scrollTarget){ inScroll = false; return; }; updateTargetScroll(); } override public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{ var _local5:Number; var _local6:Number; _local5 = _arg3; _local6 = ((_arg2)<0) ? 0 : _arg2; if (_scrollTarget != null){ if (direction == ScrollBarDirection.HORIZONTAL){ _local5 = ((_arg3)>_scrollTarget.maxScrollH) ? _scrollTarget.maxScrollH : _local5; } else { _local5 = ((_arg3)>_scrollTarget.maxScrollV) ? _scrollTarget.maxScrollV : _local5; }; }; super.setScrollProperties(_arg1, _local6, _local5, _arg4); } public function get scrollTargetName():String{ return (_scrollTarget.name); } public function get scrollTarget():TextField{ return (_scrollTarget); } protected function updateScrollTargetProperties():void{ var _local1:Boolean; var _local2:Number; if (_scrollTarget == null){ setScrollProperties(pageSize, minScrollPosition, maxScrollPosition, pageScrollSize); scrollPosition = 0; } else { _local1 = (direction == ScrollBarDirection.HORIZONTAL); _local2 = (_local1) ? _scrollTarget.width : 10; setScrollProperties(_local2, (_local1) ? 0 : 1, (_local1) ? _scrollTarget.maxScrollH : _scrollTarget.maxScrollV, pageScrollSize); scrollPosition = (_local1) ? _scrollTarget.scrollH : _scrollTarget.scrollV; }; } public function update():void{ inEdit = true; updateScrollTargetProperties(); inEdit = false; } public function set scrollTargetName(_arg1:String):void{ var target = _arg1; try { scrollTarget = (parent.getChildByName(target) as TextField); } catch(error:Error) { throw (new Error("ScrollTarget not found, or is not a TextField")); }; } override public function set direction(_arg1:String):void{ if (isLivePreview){ return; }; super.direction = _arg1; updateScrollTargetProperties(); } protected function handleTargetChange(_arg1:Event):void{ inEdit = true; setScrollPosition(((direction)==ScrollBarDirection.HORIZONTAL) ? _scrollTarget.scrollH : _scrollTarget.scrollV, true); updateScrollTargetProperties(); inEdit = false; } override public function set maxScrollPosition(_arg1:Number):void{ var _local2:Number; _local2 = _arg1; if (_scrollTarget != null){ if (direction == ScrollBarDirection.HORIZONTAL){ _local2 = ((_local2)>_scrollTarget.maxScrollH) ? _scrollTarget.maxScrollH : _local2; } else { _local2 = ((_local2)>_scrollTarget.maxScrollV) ? _scrollTarget.maxScrollV : _local2; }; }; super.maxScrollPosition = _local2; } protected function updateTargetScroll(_arg1:ScrollEvent=null):void{ if (inEdit){ return; }; if (direction == ScrollBarDirection.HORIZONTAL){ _scrollTarget.scrollH = scrollPosition; } else { _scrollTarget.scrollV = scrollPosition; }; } override protected function draw():void{ if (isInvalid(InvalidationType.DATA)){ updateScrollTargetProperties(); }; super.draw(); } public function set scrollTarget(_arg1:TextField):void{ if (_scrollTarget != null){ _scrollTarget.removeEventListener(Event.CHANGE, handleTargetChange, false); _scrollTarget.removeEventListener(TextEvent.TEXT_INPUT, handleTargetChange, false); _scrollTarget.removeEventListener(Event.SCROLL, handleTargetScroll, false); removeEventListener(ScrollEvent.SCROLL, updateTargetScroll, false); }; _scrollTarget = _arg1; if (_scrollTarget != null){ _scrollTarget.addEventListener(Event.CHANGE, handleTargetChange, false, 0, true); _scrollTarget.addEventListener(TextEvent.TEXT_INPUT, handleTargetChange, false, 0, true); _scrollTarget.addEventListener(Event.SCROLL, handleTargetScroll, false, 0, true); addEventListener(ScrollEvent.SCROLL, updateTargetScroll, false, 0, true); }; invalidate(InvalidationType.DATA); } override public function get direction():String{ return (super.direction); } public static function getStyleDefinition():Object{ return (UIComponent.mergeStyles(defaultStyles, ScrollBar.getStyleDefinition())); } } }//package fl.controls
Section 92
//ComponentShim (fl.core.ComponentShim) package fl.core { import flash.display.*; public dynamic class ComponentShim extends MovieClip { } }//package fl.core
Section 93
//InvalidationType (fl.core.InvalidationType) package fl.core { public class InvalidationType { public static const SIZE:String = "size"; public static const ALL:String = "all"; public static const DATA:String = "data"; public static const SCROLL:String = "scroll"; public static const STATE:String = "state"; public static const STYLES:String = "styles"; public static const SELECTED:String = "selected"; public static const RENDERER_STYLES:String = "rendererStyles"; } }//package fl.core
Section 94
//UIComponent (fl.core.UIComponent) package fl.core { import flash.display.*; import flash.events.*; import fl.managers.*; import flash.text.*; import fl.events.*; import flash.utils.*; import flash.system.*; public class UIComponent extends Sprite { protected var _enabled:Boolean;// = true private var _mouseFocusEnabled:Boolean;// = true protected var startHeight:Number; protected var _height:Number; protected var _oldIMEMode:String;// = null protected var startWidth:Number; public var focusTarget:IFocusManagerComponent; protected var errorCaught:Boolean;// = false protected var uiFocusRect:DisplayObject; protected var _width:Number; public var version:String;// = "3.0.0.15" protected var isFocused:Boolean;// = false protected var callLaterMethods:Dictionary; private var _focusEnabled:Boolean;// = true private var tempText:TextField; protected var invalidateFlag:Boolean;// = false protected var _inspector:Boolean;// = false protected var sharedStyles:Object; protected var invalidHash:Object; protected var isLivePreview:Boolean;// = false protected var _imeMode:String;// = null protected var instanceStyles:Object; protected var _x:Number; protected var _y:Number; public static var inCallLaterPhase:Boolean = false; private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)}; public static var createAccessibilityImplementation:Function; private static var focusManagers:Dictionary = new Dictionary(false); public function UIComponent(){ version = "3.0.0.15"; isLivePreview = false; invalidateFlag = false; _enabled = true; isFocused = false; _focusEnabled = true; _mouseFocusEnabled = true; _imeMode = null; _oldIMEMode = null; errorCaught = false; _inspector = false; super(); instanceStyles = {}; sharedStyles = {}; invalidHash = {}; callLaterMethods = new Dictionary(); StyleManager.registerInstance(this); configUI(); invalidate(InvalidationType.ALL); tabEnabled = (this is IFocusManagerComponent); focusRect = false; if (tabEnabled){ addEventListener(FocusEvent.FOCUS_IN, focusInHandler); addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler); addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); addEventListener(KeyboardEvent.KEY_UP, keyUpHandler); }; initializeFocusManager(); addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true); } public function drawFocus(_arg1:Boolean):void{ var _local2:Number; isFocused = _arg1; if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){ removeChild(uiFocusRect); uiFocusRect = null; }; if (_arg1){ uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite); if (uiFocusRect == null){ return; }; _local2 = Number(getStyleValue("focusRectPadding")); uiFocusRect.x = -(_local2); uiFocusRect.y = -(_local2); uiFocusRect.width = (width + (_local2 * 2)); uiFocusRect.height = (height + (_local2 * 2)); addChildAt(uiFocusRect, 0); }; } private function callLaterDispatcher(_arg1:Event):void{ var _local2:Dictionary; var _local3:Object; if (_arg1.type == Event.ADDED_TO_STAGE){ removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher); stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); return; }; _arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher); if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); return; }; inCallLaterPhase = true; _local2 = callLaterMethods; for (_local3 in _local2) { _local3(); delete _local2[_local3]; }; inCallLaterPhase = false; } private function addedHandler(_arg1:Event):void{ removeEventListener("addedToStage", addedHandler); initializeFocusManager(); } protected function getStyleValue(_arg1:String):Object{ return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]); } protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((_arg1 == this)); } override public function get scaleX():Number{ return ((width / startWidth)); } override public function get scaleY():Number{ return ((height / startHeight)); } override public function set height(_arg1:Number):void{ if (_height == _arg1){ return; }; setSize(width, _arg1); } protected function keyDownHandler(_arg1:KeyboardEvent):void{ } protected function focusInHandler(_arg1:FocusEvent):void{ var _local2:IFocusManager; if (isOurFocus((_arg1.target as DisplayObject))){ _local2 = focusManager; if (((_local2) && (_local2.showFocusIndicator))){ drawFocus(true); isFocused = true; }; }; } public function setStyle(_arg1:String, _arg2:Object):void{ if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; instanceStyles[_arg1] = _arg2; invalidate(InvalidationType.STYLES); } override public function get visible():Boolean{ return (super.visible); } public function get componentInspectorSetting():Boolean{ return (_inspector); } override public function get x():Number{ return ((isNaN(_x)) ? super.x : _x); } override public function get y():Number{ return ((isNaN(_y)) ? super.y : _y); } protected function setIMEMode(_arg1:Boolean){ var enabled = _arg1; if (_imeMode != null){ if (enabled){ IME.enabled = true; _oldIMEMode = IME.conversionMode; try { if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _imeMode; }; errorCaught = false; } catch(e:Error) { errorCaught = true; throw (new Error(("IME mode not supported: " + _imeMode))); }; } else { if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _oldIMEMode; }; IME.enabled = false; }; }; } public function set enabled(_arg1:Boolean):void{ if (_arg1 == _enabled){ return; }; _enabled = _arg1; invalidate(InvalidationType.STATE); } public function setSharedStyle(_arg1:String, _arg2:Object):void{ if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; sharedStyles[_arg1] = _arg2; if (instanceStyles[_arg1] == null){ invalidate(InvalidationType.STYLES); }; } protected function keyUpHandler(_arg1:KeyboardEvent):void{ } public function set focusEnabled(_arg1:Boolean):void{ _focusEnabled = _arg1; } override public function set scaleX(_arg1:Number):void{ setSize((startWidth * _arg1), height); } public function get mouseFocusEnabled():Boolean{ return (_mouseFocusEnabled); } override public function set scaleY(_arg1:Number):void{ setSize(width, (startHeight * _arg1)); } protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{ var classDef:Object; var skin = _arg1; classDef = null; if ((skin is Class)){ return ((new (skin) as DisplayObject)); }; if ((skin is DisplayObject)){ (skin as DisplayObject).x = 0; (skin as DisplayObject).y = 0; return ((skin as DisplayObject)); }; try { classDef = getDefinitionByName(skin.toString()); } catch(e:Error) { try { classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object); } catch(e:Error) { }; }; if (classDef == null){ return (null); }; return ((new (classDef) as DisplayObject)); } protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{ var _local3:String; for (_local3 in _arg2) { _arg1.setStyle(_local3, getStyleValue(_arg2[_local3])); }; } protected function beforeComponentParameters():void{ } protected function callLater(_arg1:Function):void{ if (inCallLaterPhase){ return; }; callLaterMethods[_arg1] = true; if (stage != null){ stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); } else { addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); }; } protected function createFocusManager():void{ if (focusManagers[stage] == null){ focusManagers[stage] = new FocusManager(stage); }; } override public function set visible(_arg1:Boolean):void{ var _local2:String; if (super.visible == _arg1){ return; }; super.visible = _arg1; _local2 = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE; dispatchEvent(new ComponentEvent(_local2, true)); } protected function hookAccessibility(_arg1:Event):void{ removeEventListener(Event.ENTER_FRAME, hookAccessibility); initializeAccessibility(); } public function set componentInspectorSetting(_arg1:Boolean):void{ _inspector = _arg1; if (_inspector){ beforeComponentParameters(); } else { afterComponentParameters(); }; } override public function set x(_arg1:Number):void{ move(_arg1, _y); } public function drawNow():void{ draw(); } override public function set y(_arg1:Number):void{ move(_x, _arg1); } protected function checkLivePreview():Boolean{ var className:String; if (parent == null){ return (false); }; try { className = getQualifiedClassName(parent); } catch(e:Error) { }; return ((className == "fl.livepreview::LivePreviewParent")); } protected function focusOutHandler(_arg1:FocusEvent):void{ if (isOurFocus((_arg1.target as DisplayObject))){ drawFocus(false); isFocused = false; }; } public function set mouseFocusEnabled(_arg1:Boolean):void{ _mouseFocusEnabled = _arg1; } public function getFocus():InteractiveObject{ if (stage){ return (stage.focus); }; return (null); } protected function validate():void{ invalidHash = {}; } override public function get height():Number{ return (_height); } public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{ invalidHash[_arg1] = true; if (_arg2){ this.callLater(draw); }; } public function get enabled():Boolean{ return (_enabled); } protected function getScaleX():Number{ return (super.scaleX); } protected function getScaleY():Number{ return (super.scaleY); } public function get focusEnabled():Boolean{ return (_focusEnabled); } protected function afterComponentParameters():void{ } protected function draw():void{ if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } protected function configUI():void{ var _local1:Number; var _local2:Number; var _local3:Number; isLivePreview = checkLivePreview(); _local1 = rotation; rotation = 0; _local2 = super.width; _local3 = super.height; var _local4 = 1; super.scaleY = _local4; super.scaleX = _local4; setSize(_local2, _local3); move(super.x, super.y); rotation = _local1; startWidth = _local2; startHeight = _local3; if (numChildren > 0){ removeChildAt(0); }; } protected function setScaleX(_arg1:Number):void{ super.scaleX = _arg1; } protected function setScaleY(_arg1:Number):void{ super.scaleY = _arg1; } private function initializeFocusManager():void{ if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true); } else { createFocusManager(); }; } public function set focusManager(_arg1:IFocusManager):void{ UIComponent.focusManagers[this] = _arg1; } public function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } protected function isInvalid(_arg1:String, ... _args):Boolean{ if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){ return (true); }; while (_args.length > 0) { if (invalidHash[_args.pop()]){ return (true); }; }; return (false); } public function setSize(_arg1:Number, _arg2:Number):void{ _width = _arg1; _height = _arg2; invalidate(InvalidationType.SIZE); dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false)); } override public function set width(_arg1:Number):void{ if (_width == _arg1){ return; }; setSize(_arg1, height); } public function setFocus():void{ if (stage){ stage.focus = this; }; } protected function initializeAccessibility():void{ if (UIComponent.createAccessibilityImplementation != null){ UIComponent.createAccessibilityImplementation(this); }; } public function get focusManager():IFocusManager{ var _local1:DisplayObject; _local1 = this; while (_local1) { if (UIComponent.focusManagers[_local1] != null){ return (IFocusManager(UIComponent.focusManagers[_local1])); }; _local1 = _local1.parent; }; return (null); } override public function get width():Number{ return (_width); } public function move(_arg1:Number, _arg2:Number):void{ _x = _arg1; _y = _arg2; super.x = Math.round(_arg1); super.y = Math.round(_arg2); dispatchEvent(new ComponentEvent(ComponentEvent.MOVE)); } public function validateNow():void{ invalidate(InvalidationType.ALL, false); draw(); } public function getStyle(_arg1:String):Object{ return (instanceStyles[_arg1]); } public static function getStyleDefinition():Object{ return (defaultStyles); } public static function mergeStyles(... _args):Object{ var _local2:Object; var _local3:uint; var _local4:uint; var _local5:Object; var _local6:String; _local2 = {}; _local3 = _args.length; _local4 = 0; while (_local4 < _local3) { _local5 = _args[_local4]; for (_local6 in _local5) { if (_local2[_local6] != null){ } else { _local2[_local6] = _args[_local4][_local6]; }; }; _local4++; }; return (_local2); } } }//package fl.core
Section 95
//ComponentEvent (fl.events.ComponentEvent) package fl.events { import flash.events.*; public class ComponentEvent extends Event { public static const HIDE:String = "hide"; public static const BUTTON_DOWN:String = "buttonDown"; public static const MOVE:String = "move"; public static const RESIZE:String = "resize"; public static const ENTER:String = "enter"; public static const LABEL_CHANGE:String = "labelChange"; public static const SHOW:String = "show"; public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function toString():String{ return (formatToString("ComponentEvent", "type", "bubbles", "cancelable")); } override public function clone():Event{ return (new ComponentEvent(type, bubbles, cancelable)); } } }//package fl.events
Section 96
//ScrollEvent (fl.events.ScrollEvent) package fl.events { import flash.events.*; public class ScrollEvent extends Event { private var _position:Number; private var _direction:String; private var _delta:Number; public static const SCROLL:String = "scroll"; public function ScrollEvent(_arg1:String, _arg2:Number, _arg3:Number){ super(ScrollEvent.SCROLL, false, false); _direction = _arg1; _delta = _arg2; _position = _arg3; } override public function clone():Event{ return (new ScrollEvent(_direction, _delta, _position)); } public function get position():Number{ return (_position); } override public function toString():String{ return (formatToString("ScrollEvent", "type", "bubbles", "cancelable", "direction", "delta", "position")); } public function get delta():Number{ return (_delta); } public function get direction():String{ return (_direction); } } }//package fl.events
Section 97
//FocusManager (fl.managers.FocusManager) package fl.managers { import fl.controls.*; import flash.display.*; import flash.events.*; import fl.core.*; import flash.text.*; import flash.utils.*; import flash.ui.*; public class FocusManager implements IFocusManager { private var focusableObjects:Dictionary; private var _showFocusIndicator:Boolean;// = true private var defButton:Button; private var focusableCandidates:Array; private var _form:DisplayObjectContainer; private var _defaultButtonEnabled:Boolean;// = true private var activated:Boolean;// = false private var _defaultButton:Button; private var calculateCandidates:Boolean;// = true private var lastFocus:InteractiveObject; private var lastAction:String; public function FocusManager(_arg1:DisplayObjectContainer){ activated = false; calculateCandidates = true; _showFocusIndicator = true; _defaultButtonEnabled = true; super(); focusableObjects = new Dictionary(true); if (_arg1 != null){ _form = _arg1; addFocusables(DisplayObject(_arg1)); _arg1.addEventListener(Event.ADDED, addedHandler); _arg1.addEventListener(Event.REMOVED, removedHandler); activate(); }; } public function get showFocusIndicator():Boolean{ return (_showFocusIndicator); } private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{ var _local5:int; var _local6:int; var _local7:DisplayObject; var _local8:IFocusManagerGroup; var _local9:int; var _local10:DisplayObject; var _local11:IFocusManagerGroup; _local5 = focusableCandidates.length; _local6 = _arg1; while (true) { if (_arg2){ _arg1--; } else { _arg1++; }; if (_arg3){ if (((_arg2) && ((_arg1 < 0)))){ break; }; if (((!(_arg2)) && ((_arg1 == _local5)))){ break; }; } else { _arg1 = ((_arg1 + _local5) % _local5); if (_local6 == _arg1){ break; }; }; if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){ _local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1])); if ((_local7 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local7); _local9 = 0; while (_local9 < focusableCandidates.length) { _local10 = focusableCandidates[_local9]; if ((_local10 is IFocusManagerGroup)){ _local11 = IFocusManagerGroup(_local10); if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){ _arg1 = _local9; break; }; }; _local9++; }; }; return (_arg1); }; }; return (_arg1); } public function set form(_arg1:DisplayObjectContainer):void{ _form = _arg1; } private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{ var focusable:IFocusManagerComponent; var io:InteractiveObject; var doc:DisplayObjectContainer; var i:int; var child:DisplayObject; var o = _arg1; var skipTopLevel = _arg2; if (!skipTopLevel){ if ((o is IFocusManagerComponent)){ focusable = IFocusManagerComponent(o); if (focusable.focusEnabled){ if (((focusable.tabEnabled) && (isTabVisible(o)))){ focusableObjects[o] = true; calculateCandidates = true; }; o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; } else { if ((o is InteractiveObject)){ io = (o as InteractiveObject); if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){ focusableObjects[io] = true; calculateCandidates = true; }; io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; }; }; if ((o is DisplayObjectContainer)){ doc = DisplayObjectContainer(o); o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){ i = 0; while (i < doc.numChildren) { try { child = doc.getChildAt(i); if (child != null){ addFocusables(doc.getChildAt(i)); }; } catch(error:SecurityError) { }; i = (i + 1); }; }; }; } private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{ return (_arg1.getChildIndex(_arg2)); } private function mouseFocusChangeHandler(_arg1:FocusEvent):void{ if ((_arg1.relatedObject is TextField)){ return; }; _arg1.preventDefault(); } private function focusOutHandler(_arg1:FocusEvent):void{ var _local2:InteractiveObject; _local2 = (_arg1.target as InteractiveObject); } private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{ var _local3:IFocusManagerGroup; if (!isEnabledAndVisible(_arg1)){ return (false); }; if ((_arg1 is IFocusManagerGroup)){ _local3 = IFocusManagerGroup(_arg1); if (_arg2 == _local3.groupName){ return (false); }; }; return (true); } public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{ var _local2:InteractiveObject; _local2 = _arg1; while (_arg1) { if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){ return (_arg1); }; _arg1 = _arg1.parent; }; return (_local2); } private function sortFocusableObjectsTabIndex():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){ focusableCandidates.push(_local2); }; }; focusableCandidates.sort(sortByTabIndex); } private function removeFocusables(_arg1:DisplayObject):void{ var _local2:Object; var _local3:DisplayObject; if ((_arg1 is DisplayObjectContainer)){ _arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); _arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); for (_local2 in focusableObjects) { _local3 = DisplayObject(_local2); if (DisplayObjectContainer(_arg1).contains(_local3)){ if (_local3 == lastFocus){ lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local2]; calculateCandidates = true; }; }; }; } private function addedHandler(_arg1:Event):void{ var _local2:DisplayObject; _local2 = DisplayObject(_arg1.target); if (_local2.stage){ addFocusables(DisplayObject(_arg1.target)); }; } private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{ while (_arg1 != InteractiveObject(form)) { if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){ return (_arg1); }; _arg1 = _arg1.parent; if (_arg1 == null){ break; }; }; return (null); } private function tabChildrenChangeHandler(_arg1:Event):void{ var _local2:DisplayObjectContainer; if (_arg1.target != _arg1.currentTarget){ return; }; calculateCandidates = true; _local2 = DisplayObjectContainer(_arg1.target); if (_local2.tabChildren){ addFocusables(_local2, true); } else { removeFocusables(_local2); }; } public function sendDefaultButtonEvent():void{ defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK)); } public function getFocus():InteractiveObject{ var _local1:InteractiveObject; _local1 = form.stage.focus; return (findFocusManagerComponent(_local1)); } private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{ var _local2:DisplayObjectContainer; var _local3:TextField; var _local4:SimpleButton; _local2 = DisplayObject(form).parent; while (_arg1 != _local2) { if ((_arg1 is UIComponent)){ if (!UIComponent(_arg1).enabled){ return (false); }; } else { if ((_arg1 is TextField)){ _local3 = TextField(_arg1); if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){ return (false); }; } else { if ((_arg1 is SimpleButton)){ _local4 = SimpleButton(_arg1); if (!_local4.enabled){ return (false); }; }; }; }; if (!_arg1.visible){ return (false); }; _arg1 = _arg1.parent; }; return (true); } public function set defaultButton(_arg1:Button):void{ var _local2:Button; _local2 = (_arg1) ? Button(_arg1) : null; if (_local2 != _defaultButton){ if (_defaultButton){ _defaultButton.emphasized = false; }; if (defButton){ defButton.emphasized = false; }; _defaultButton = _local2; defButton = _local2; if (_local2){ _local2.emphasized = true; }; }; } private function deactivateHandler(_arg1:Event):void{ var _local2:InteractiveObject; _local2 = InteractiveObject(_arg1.target); } public function setFocus(_arg1:InteractiveObject):void{ if ((_arg1 is IFocusManagerComponent)){ IFocusManagerComponent(_arg1).setFocus(); } else { form.stage.focus = _arg1; }; } private function setFocusToNextObject(_arg1:FocusEvent):void{ var _local2:InteractiveObject; if (!hasFocusableObjects()){ return; }; _local2 = getNextFocusManagerComponent(_arg1.shiftKey); if (_local2){ setFocus(_local2); }; } private function hasFocusableObjects():Boolean{ var _local1:Object; for (_local1 in focusableObjects) { return (true); }; return (false); } private function tabIndexChangeHandler(_arg1:Event):void{ calculateCandidates = true; } private function sortFocusableObjects():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){ sortFocusableObjectsTabIndex(); return; }; focusableCandidates.push(_local2); }; focusableCandidates.sort(sortByDepth); } private function keyFocusChangeHandler(_arg1:FocusEvent):void{ showFocusIndicator = true; if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){ setFocusToNextObject(_arg1); _arg1.preventDefault(); }; } private function getIndexOfFocusedObject(_arg1:DisplayObject):int{ var _local2:int; var _local3:int; _local2 = focusableCandidates.length; _local3 = 0; _local3 = 0; while (_local3 < _local2) { if (focusableCandidates[_local3] == _arg1){ return (_local3); }; _local3++; }; return (-1); } public function hideFocus():void{ } private function removedHandler(_arg1:Event):void{ var _local2:int; var _local3:DisplayObject; var _local4:InteractiveObject; _local3 = DisplayObject(_arg1.target); if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){ if (_local3 == lastFocus){ IFocusManagerComponent(lastFocus).drawFocus(false); lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local3]; calculateCandidates = true; } else { if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){ _local4 = (_local3 as InteractiveObject); if (_local4){ if (_local4 == lastFocus){ lastFocus = null; }; delete focusableObjects[_local4]; calculateCandidates = true; }; _local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); }; }; removeFocusables(_local3); } private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{ var _local3:String; var _local4:String; var _local5:int; var _local6:String; var _local7:String; var _local8:String; var _local9:DisplayObject; var _local10:DisplayObject; _local3 = ""; _local4 = ""; _local8 = "0000"; _local9 = DisplayObject(_arg1); _local10 = DisplayObject(_arg2); while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) { _local5 = getChildIndex(_local9.parent, _local9); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local3 = (_local7 + _local3); _local9 = _local9.parent; }; while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) { _local5 = getChildIndex(_local10.parent, _local10); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local4 = (_local7 + _local4); _local10 = _local10.parent; }; return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0); } public function get defaultButton():Button{ return (_defaultButton); } private function activateHandler(_arg1:Event):void{ var _local2:InteractiveObject; _local2 = InteractiveObject(_arg1.target); if (lastFocus){ if ((lastFocus is IFocusManagerComponent)){ IFocusManagerComponent(lastFocus).setFocus(); } else { form.stage.focus = lastFocus; }; }; lastAction = "ACTIVATE"; } public function showFocus():void{ } public function set defaultButtonEnabled(_arg1:Boolean):void{ _defaultButtonEnabled = _arg1; } public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{ var _local2:DisplayObject; var _local3:String; var _local4:int; var _local5:Boolean; var _local6:int; var _local7:int; var _local8:IFocusManagerGroup; if (!hasFocusableObjects()){ return (null); }; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; _local2 = form.stage.focus; _local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2))); _local3 = ""; if ((_local2 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local2); _local3 = _local8.groupName; }; _local4 = getIndexOfFocusedObject(_local2); _local5 = false; _local6 = _local4; if (_local4 == -1){ if (_arg1){ _local4 = focusableCandidates.length; }; _local5 = true; }; _local7 = getIndexOfNextObject(_local4, _arg1, _local5, _local3); return (findFocusManagerComponent(focusableCandidates[_local7])); } private function mouseDownHandler(_arg1:MouseEvent):void{ var _local2:InteractiveObject; if (_arg1.isDefaultPrevented()){ return; }; _local2 = getTopLevelFocusTarget(InteractiveObject(_arg1.target)); if (!_local2){ return; }; showFocusIndicator = false; if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){ setFocus(_local2); }; lastAction = "MOUSEDOWN"; } private function isTabVisible(_arg1:DisplayObject):Boolean{ var _local2:DisplayObjectContainer; _local2 = _arg1.parent; while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) { if (!_local2.tabChildren){ return (false); }; _local2 = _local2.parent; }; return (true); } public function get nextTabIndex():int{ return (0); } private function keyDownHandler(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.TAB){ lastAction = "KEY"; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; }; if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){ sendDefaultButtonEvent(); }; } private function focusInHandler(_arg1:FocusEvent):void{ var _local2:InteractiveObject; var _local3:Button; _local2 = InteractiveObject(_arg1.target); if (form.contains(_local2)){ lastFocus = findFocusManagerComponent(InteractiveObject(_local2)); if ((lastFocus is Button)){ _local3 = Button(lastFocus); if (defButton){ defButton.emphasized = false; defButton = _local3; _local3.emphasized = true; }; } else { if (((defButton) && (!((defButton == _defaultButton))))){ defButton.emphasized = false; defButton = _defaultButton; _defaultButton.emphasized = true; }; }; }; } private function tabEnabledChangeHandler(_arg1:Event):void{ var _local2:InteractiveObject; var _local3:Boolean; calculateCandidates = true; _local2 = InteractiveObject(_arg1.target); _local3 = (focusableObjects[_local2] == true); if (_local2.tabEnabled){ if (((!(_local3)) && (isTabVisible(_local2)))){ if (!(_local2 is IFocusManagerComponent)){ _local2.focusRect = false; }; focusableObjects[_local2] = true; }; } else { if (_local3){ delete focusableObjects[_local2]; }; }; } public function set showFocusIndicator(_arg1:Boolean):void{ _showFocusIndicator = _arg1; } public function get form():DisplayObjectContainer{ return (_form); } private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{ return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2)); } public function activate():void{ if (activated){ return; }; form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true); form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true); form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true); form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true); form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = true; if (lastFocus){ setFocus(lastFocus); }; } public function deactivate():void{ form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler); form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler); form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.removeEventListener(Event.ACTIVATE, activateHandler); form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler); form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = false; } public function get defaultButtonEnabled():Boolean{ return (_defaultButtonEnabled); } } }//package fl.managers
Section 98
//IFocusManager (fl.managers.IFocusManager) package fl.managers { import fl.controls.*; import flash.display.*; public interface IFocusManager { function getFocus():InteractiveObject; function deactivate():void; function set defaultButton(_arg1:Button):void; function set showFocusIndicator(_arg1:Boolean):void; function get defaultButtonEnabled():Boolean; function get nextTabIndex():int; function get defaultButton():Button; function get showFocusIndicator():Boolean; function setFocus(_arg1:InteractiveObject):void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function hideFocus():void; function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject; function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject; } }//package fl.managers
Section 99
//IFocusManagerComponent (fl.managers.IFocusManagerComponent) package fl.managers { public interface IFocusManagerComponent { function set focusEnabled(_arg1:Boolean):void; function drawFocus(_arg1:Boolean):void; function setFocus():void; function get focusEnabled():Boolean; function get tabEnabled():Boolean; function get tabIndex():int; function get mouseFocusEnabled():Boolean; } }//package fl.managers
Section 100
//IFocusManagerGroup (fl.managers.IFocusManagerGroup) package fl.managers { public interface IFocusManagerGroup { function set groupName(_arg1:String):void; function set selected(_arg1:Boolean):void; function get groupName():String; function get selected():Boolean; } }//package fl.managers
Section 101
//StyleManager (fl.managers.StyleManager) package fl.managers { import fl.core.*; import flash.text.*; import flash.utils.*; public class StyleManager { private var globalStyles:Object; private var classToDefaultStylesDict:Dictionary; private var styleToClassesHash:Object; private var classToStylesDict:Dictionary; private var classToInstancesDict:Dictionary; private static var _instance:StyleManager; public function StyleManager(){ styleToClassesHash = {}; classToInstancesDict = new Dictionary(true); classToStylesDict = new Dictionary(true); classToDefaultStylesDict = new Dictionary(true); globalStyles = UIComponent.getStyleDefinition(); } public static function clearComponentStyle(_arg1:Object, _arg2:String):void{ var _local3:Class; var _local4:Object; _local3 = getClassDef(_arg1); _local4 = getInstance().classToStylesDict[_local3]; if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){ delete _local4[_arg2]; invalidateComponentStyle(_local3, _arg2); }; } private static function getClassDef(_arg1:Object):Class{ var component = _arg1; if ((component is Class)){ return ((component as Class)); }; try { return ((getDefinitionByName(getQualifiedClassName(component)) as Class)); } catch(e:Error) { if ((component is UIComponent)){ try { return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class)); } catch(e:Error) { }; }; }; return (null); } public static function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Class; var _local5:Object; _local4 = getClassDef(_arg1); _local5 = getInstance().classToStylesDict[_local4]; if (_local5 == null){ _local5 = (getInstance().classToStylesDict[_local4] = {}); }; if (_local5 == _arg3){ return; }; _local5[_arg2] = _arg3; invalidateComponentStyle(_local4, _arg2); } private static function setSharedStyles(_arg1:UIComponent):void{ var _local2:StyleManager; var _local3:Class; var _local4:Object; var _local5:String; _local2 = getInstance(); _local3 = getClassDef(_arg1); _local4 = _local2.classToDefaultStylesDict[_local3]; for (_local5 in _local4) { _arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5)); }; } public static function getComponentStyle(_arg1:Object, _arg2:String):Object{ var _local3:Class; var _local4:Object; _local3 = getClassDef(_arg1); _local4 = getInstance().classToStylesDict[_local3]; return (((_local4)==null) ? null : _local4[_arg2]); } private static function getInstance(){ if (_instance == null){ _instance = new (StyleManager); }; return (_instance); } private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{ var _local3:Dictionary; var _local4:Object; var _local5:UIComponent; _local3 = getInstance().classToInstancesDict[_arg1]; if (_local3 == null){ return; }; for (_local4 in _local3) { _local5 = (_local4 as UIComponent); if (_local5 == null){ } else { _local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2)); }; }; } private static function invalidateStyle(_arg1:String):void{ var _local2:Dictionary; var _local3:Object; _local2 = getInstance().styleToClassesHash[_arg1]; if (_local2 == null){ return; }; for (_local3 in _local2) { invalidateComponentStyle(Class(_local3), _arg1); }; } public static function registerInstance(_arg1:UIComponent):void{ var inst:StyleManager; var classDef:Class; var target:Class; var defaultStyles:Object; var styleToClasses:Object; var n:String; var instance = _arg1; inst = getInstance(); classDef = getClassDef(instance); if (classDef == null){ return; }; if (inst.classToInstancesDict[classDef] == null){ inst.classToInstancesDict[classDef] = new Dictionary(true); target = classDef; while (defaultStyles == null) { if (target["getStyleDefinition"] != null){ defaultStyles = target["getStyleDefinition"](); break; }; try { target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class); } catch(err:Error) { try { target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class); } catch(e:Error) { defaultStyles = UIComponent.getStyleDefinition(); break; }; }; }; styleToClasses = inst.styleToClassesHash; for (n in defaultStyles) { if (styleToClasses[n] == null){ styleToClasses[n] = new Dictionary(true); }; styleToClasses[n][classDef] = true; }; inst.classToDefaultStylesDict[classDef] = defaultStyles; inst.classToStylesDict[classDef] = {}; }; inst.classToInstancesDict[classDef][instance] = true; setSharedStyles(instance); } public static function getStyle(_arg1:String):Object{ return (getInstance().globalStyles[_arg1]); } private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{ var _local3:Class; var _local4:StyleManager; var _local5:Object; _local3 = getClassDef(_arg1); _local4 = getInstance(); _local5 = _local4.classToStylesDict[_local3][_arg2]; if (_local5 != null){ return (_local5); }; _local5 = _local4.globalStyles[_arg2]; if (_local5 != null){ return (_local5); }; return (_local4.classToDefaultStylesDict[_local3][_arg2]); } public static function setStyle(_arg1:String, _arg2:Object):void{ var _local3:Object; _local3 = getInstance().globalStyles; if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; _local3[_arg1] = _arg2; invalidateStyle(_arg1); } } }//package fl.managers
Section 102
//MochiScores (mochi.MochiScores) package mochi { import flash.display.*; import flash.text.*; public class MochiScores { private static var boardID:String; public static var onErrorHandler:Object; public static var onCloseHandler:Object; public static function showLeaderboard(_arg1:Object=null):void{ var options = _arg1; if (options != null){ if (options.clip != null){ if ((options.clip is Sprite)){ MochiServices.setContainer(options.clip); }; delete options.clip; } else { MochiServices.setContainer(); }; MochiServices.stayOnTop(); if (options.name != null){ if ((options.name is TextField)){ if (options.name.text.length > 0){ options.name = options.name.text; }; }; }; if (options.score != null){ if ((options.score is TextField)){ if (options.score.text.length > 0){ options.score = options.score.text; }; }; }; if (options.onDisplay != null){ options.onDisplay(); } else { if (MochiServices.clip != null){ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; }; } else { options = {}; if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; if (options.onClose != null){ onCloseHandler = options.onClose; } else { onCloseHandler = function ():void{ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.play(); } else { trace("Warning: Container is not a MovieClip, cannot call default onClose."); }; }; }; if (options.onError != null){ onErrorHandler = options.onError; } else { onErrorHandler = null; }; if (options.boardID == null){ if (MochiScores.boardID != null){ options.boardID = MochiScores.boardID; }; }; MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose); } public static function closeLeaderboard():void{ MochiServices.send("scores_closeLeaderboard"); } public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2); } public static function requestList(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_requestList", null, _arg1, _arg2); } public static function scoresArrayToObjects(_arg1:Object):Object{ var _local2:Object; var _local3:Number; var _local4:Number; var _local5:Object; var _local6:Object; var _local7:String; var _local8:String; _local2 = {}; for (_local7 in _arg1) { if (typeof(_arg1[_local7]) == "object"){ if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){ _local2[_local7] = []; _local5 = _arg1[_local7]; _local4 = 0; while (_local4 < _local5.rows.length) { _local6 = {}; _local3 = 0; while (_local3 < _local5.cols.length) { _local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3]; _local3++; }; _local2[_local7].push(_local6); _local4++; }; } else { _local2[_local7] = {}; for (_local8 in _arg1[_local7]) { _local2[_local7][_local8] = _arg1[_local7][_local8]; }; }; } else { _local2[_local7] = _arg1[_local7]; }; }; return (_local2); } public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{ MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4); } public static function onClose(_arg1:Object=null):void{ if (_arg1 != null){ if (_arg1.error != null){ if (_arg1.error == true){ if (onErrorHandler != null){ if (_arg1.errorCode == null){ _arg1.errorCode = "IOError"; }; onErrorHandler(_arg1.errorCode); MochiServices.doClose(); return; }; }; }; }; onCloseHandler(); MochiServices.doClose(); } public static function setBoardID(_arg1:String):void{ MochiScores.boardID = _arg1; MochiServices.send("scores_setBoardID", {boardID:_arg1}); } } }//package mochi
Section 103
//MochiServices (mochi.MochiServices) package mochi { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.net.*; import flash.system.*; public class MochiServices { private static var _container:Object; private static var _connected:Boolean = false; private static var _swfVersion:String; private static var _sendChannel:LocalConnection; private static var _rcvChannelName:String; private static var _gatewayURL:String = "http://www.mochiads.com/static/lib/services/services.swf"; private static var _clip:MovieClip; private static var _loader:Loader; private static var _id:String; private static var _listenChannel:LocalConnection; private static var _timer:Timer; private static var _sendChannelName:String; private static var _startTime:Number; private static var _connecting:Boolean = false; public static var onError:Object; private static var _listenChannelName:String = "__mochiservices"; private static var _rcvChannel:LocalConnection; public static function isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{ if (_connected){ _sendChannel.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); } else { if ((((_clip == null)) || (!(_connecting)))){ onError("NotConnected"); handleError(_arg2, _arg3, _arg4); flush(true); return; }; _clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); }; if (_clip != null){ if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){ _clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4}; _clip._nextcallbackID++; }; }; } public static function get connected():Boolean{ return (_connected); } private static function flush(_arg1:Boolean):void{ var _local2:Object; var _local3:Object; if (_clip != null){ if (_clip._queue != null){ while (_clip._queue.length > 0) { _local2 = _clip._queue.shift(); _local3 = null; if (_local2 != null){ if (_local2.callbackID != null){ _local3 = _clip._callbacks[_local2.callbackID]; }; delete _clip._callbacks[_local2.callbackID]; if (((_arg1) && (!((_local3 == null))))){ handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod); }; }; }; }; }; } private static function init(_arg1:String, _arg2:Object):void{ _id = _arg1; if (_arg2 != null){ _container = _arg2; loadCommunicator(_arg1, _container); }; } public static function get childClip():Object{ return (_clip); } public static function get id():String{ return (_id); } public static function stayOnTop():void{ _container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true); if (_clip != null){ _clip.visible = true; }; } public static function getVersion():String{ return ("1.2"); } public static function disconnect():void{ if (((_connected) || (_connecting))){ if (_clip != null){ if (_clip.parent != null){ if ((_clip.parent is Sprite)){ Sprite(_clip.parent).removeChild(_clip); _clip = null; }; }; }; _connecting = (_connected = false); flush(true); try { _listenChannel.close(); _rcvChannel.close(); } catch(error:Error) { }; }; if (_timer != null){ try { _timer.stop(); } catch(error:Error) { }; }; } public static function allowDomains(_arg1:String):String{ var _local2:String; Security.allowDomain("*"); Security.allowInsecureDomain("*"); if (_arg1.indexOf("http://") != -1){ _local2 = _arg1.split("/")[2].split(":")[0]; Security.allowDomain(_local2); Security.allowInsecureDomain(_local2); }; return (_local2); } public static function doClose():void{ _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); if (_clip.parent != null){ Sprite(_clip.parent).removeChild(_clip); }; } public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{ if (_arg1 != null){ if ((_arg1 is Sprite)){ _container = _arg1; }; }; if (_arg2){ if ((_container is Sprite)){ Sprite(_container).addChild(_clip); }; }; } private static function onStatus(_arg1:StatusEvent):void{ switch (_arg1.level){ case "error": _connected = false; _listenChannel.connect(_listenChannelName); break; }; } private static function initComChannels():void{ if (!_connected){ _sendChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion()}); _rcvChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus); _clip.onReceive = function (_arg1:Object):void{ var cb:String; var cblst:Object; var method:*; var obj:Object; var pkg = _arg1; cb = pkg.callbackID; cblst = this.client._callbacks[cb]; if (!cblst){ return; }; method = cblst.callbackMethod; obj = cblst.callbackObject; if (((obj) && ((typeof(method) == "string")))){ if (obj[method] != null){ method = obj[method]; } else { trace((("Error: Method " + method) + " does not exist.")); }; }; if (method != undefined){ try { method.apply(obj, pkg.args); } catch(error:Error) { trace("Unable to invoke callback method."); }; } else { if (obj != null){ try { obj(pkg.args); } catch(error:Error) { trace("Unable to invoke callback method on object."); }; }; }; delete this.client._callbacks[cb]; }; _clip.onError = function ():void{ MochiServices.onError("IOError"); }; _rcvChannel.connect(_rcvChannelName); trace("connected!"); _connecting = false; _connected = true; _listenChannel.close(); while (_clip._queue.length > 0) { _sendChannel.send(_sendChannelName, "onReceive", _clip._queue.shift()); }; }; } private static function listen():void{ _listenChannel = new LocalConnection(); _listenChannel.client = _clip; _clip.handshake = function (_arg1:Object):void{ MochiServices.comChannelName = _arg1.newChannel; }; _listenChannel.allowDomain("*", "localhost"); _listenChannel.allowInsecureDomain("*", "localhost"); _listenChannel.connect(_listenChannelName); trace("Waiting for MochiAds services to connect..."); } private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{ var args = _arg1; var callbackObject = _arg2; var callbackMethod = _arg3; if (args != null){ if (args.onError != null){ args.onError.apply(null, ["NotConnected"]); }; }; if (callbackMethod != null){ args = {}; args.error = true; args.errorCode = "NotConnected"; if (((!((callbackObject == null))) && ((callbackMethod is String)))){ try { var _local5 = callbackObject; _local5[callbackMethod](args); } catch(error:Error) { }; } else { if (callbackMethod != null){ try { callbackMethod.apply(args); } catch(error:Error) { }; }; }; }; } public static function get clip():Object{ return (_container); } public static function set comChannelName(_arg1:String):void{ if (_arg1 != null){ if (_arg1.length > 3){ _sendChannelName = (_arg1 + "_fromgame"); _rcvChannelName = _arg1; initComChannels(); }; }; } private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{ var clipname:String; var f:Function; var req:URLRequest; var id = _arg1; var clip = _arg2; clipname = ("_mochiservices_com_" + id); if (_clip != null){ return (_clip); }; if (!MochiServices.isNetworkAvailable()){ return (null); }; MochiServices.allowDomains(_gatewayURL); _clip = createEmptyMovieClip(clip, clipname, 10336, false); _loader = new Loader(); _timer = new Timer(1000, 0); _startTime = getTimer(); _timer.addEventListener(TimerEvent.TIMER, connectWait); _timer.start(); f = function (_arg1:Object):void{ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load."); MochiServices.disconnect(); MochiServices.onError("IOError"); }; _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f); req = new URLRequest(_gatewayURL); _loader.load(req); _clip.addChild(_loader); _clip._mochiservices_com = _loader; _sendChannel = new LocalConnection(); _clip._queue = []; _rcvChannel = new LocalConnection(); _rcvChannel.allowDomain("*", "localhost"); _rcvChannel.allowInsecureDomain("*", "localhost"); _rcvChannel.client = _clip; _clip._nextcallbackID = 0; _clip._callbacks = {}; listen(); return (_clip); } public static function bringToTop(_arg1:Event):void{ var e = _arg1; if (MochiServices.clip != null){ if (MochiServices.childClip != null){ try { if (MochiServices.clip.numChildren > 1){ MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1)); }; } catch(errorObject:Error) { trace("Warning: Depth sort error."); _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); }; }; }; } public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{ var id = _arg1; var clip = _arg2; var onError = _arg3; if ((clip is DisplayObject)){ if (((!(_connected)) && ((_clip == null)))){ trace("MochiServices Connecting..."); _connecting = true; init(id, clip); }; } else { trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage."); }; if (onError != null){ MochiServices.onError = onError; } else { if (MochiServices.onError == null){ MochiServices.onError = function (_arg1:String):void{ trace(_arg1); }; }; }; } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{ var _local5:MovieClip; _local5 = new MovieClip(); if (_arg4){ if (((false) && (_arg3))){ _arg1.addChildAt(_local5, _arg3); } else { _arg1.addChild(_local5); }; }; _arg1[_arg2] = _local5; _local5["_name"] = _arg2; return (_local5); } public static function connectWait(_arg1:TimerEvent):void{ if ((getTimer() - _startTime) > 10000){ if (!_connected){ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load."); MochiServices.disconnect(); MochiServices.onError("IOError"); }; _timer.stop(); }; } } }//package mochi
Section 104
//CAvatar (CAvatar) package { import com.jayz.dailylife.game.*; public dynamic class CAvatar extends CAvatar { } }//package
Section 105
//CBankJobScreen (CBankJobScreen) package { import com.jayz.dailylife.bank.*; public dynamic class CBankJobScreen extends CBankJobScreen { public function CBankJobScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 106
//CBankScreen (CBankScreen) package { import com.jayz.dailylife.bank.*; public dynamic class CBankScreen extends CBankScreen { public function CBankScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 107
//CBankServiceScreen (CBankServiceScreen) package { import com.jayz.dailylife.bank.*; public dynamic class CBankServiceScreen extends CBankServiceScreen { public function CBankServiceScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 108
//CBankWorkScreen (CBankWorkScreen) package { import com.jayz.dailylife.bank.*; public dynamic class CBankWorkScreen extends CBankWorkScreen { public function CBankWorkScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 109
//CChatScreen (CChatScreen) package { import com.jayz.dailylife.*; public dynamic class CChatScreen extends CChatScreen { } }//package
Section 110
//CChepApartemenScreen (CChepApartemenScreen) package { import com.jayz.dailylife.home.*; public dynamic class CChepApartemenScreen extends CChepApartemenScreen { public function CChepApartemenScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 111
//CCollageScreen (CCollageScreen) package { import com.jayz.dailylife.university.*; public dynamic class CCollageScreen extends CCollageScreen { public function CCollageScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame2(){ stop(); } function frame1(){ stop(); } } }//package
Section 112
//CCreditsScreen (CCreditsScreen) package { import com.jayz.dailylife.*; public dynamic class CCreditsScreen extends CCreditsScreen { } }//package
Section 113
//CCTutorial (CCTutorial) package { import com.jayz.dailylife.game.*; public dynamic class CCTutorial extends CTutorial { } }//package
Section 114
//CEndScreen (CEndScreen) package { import com.jayz.dailylife.*; public dynamic class CEndScreen extends CEndScreen { } }//package
Section 115
//CEnrollScreen (CEnrollScreen) package { import com.jayz.dailylife.university.*; public dynamic class CEnrollScreen extends CEnrollScreen { public function CEnrollScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 116
//CFactoryJobScreen (CFactoryJobScreen) package { import com.jayz.dailylife.factory.*; public dynamic class CFactoryJobScreen extends CFactoryJobScreen { public function CFactoryJobScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 117
//CFactoryScreen (CFactoryScreen) package { import com.jayz.dailylife.factory.*; public dynamic class CFactoryScreen extends CFactoryScreen { public function CFactoryScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 118
//CFactoryWorkScreen (CFactoryWorkScreen) package { import com.jayz.dailylife.factory.*; public dynamic class CFactoryWorkScreen extends CFactoryWorkScreen { public function CFactoryWorkScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 119
//CFastFoodScreen (CFastFoodScreen) package { import com.jayz.dailylife.fastfood.*; public dynamic class CFastFoodScreen extends CFastFoodScreen { public function CFastFoodScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 120
//CGameScreen (CGameScreen) package { import com.jayz.dailylife.*; public dynamic class CGameScreen extends CGameScreen { public function CGameScreen(){ addFrameScript(0, frame1, 1, frame2); __setProp_mc_task_mc_gamescreen_Layer9_1(); } function __setProp_mc_task_mc_gamescreen_Layer9_1(){ try { mc_task["componentInspectorSetting"] = true; } catch(e:Error) { }; mc_task.condenseWhite = false; mc_task.editable = false; mc_task.enabled = true; mc_task.horizontalScrollPolicy = "off"; mc_task.htmlText = ""; mc_task.maxChars = 0; mc_task.restrict = ""; mc_task.text = ""; mc_task.verticalScrollPolicy = "auto"; mc_task.visible = true; mc_task.wordWrap = true; try { mc_task["componentInspectorSetting"] = false; } catch(e:Error) { }; } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 121
//CGoInsideScreen (CGoInsideScreen) package { import com.jayz.dailylife.pub.*; public dynamic class CGoInsideScreen extends CGoInsideScreen { } }//package
Section 122
//CGoodsItem (CGoodsItem) package { import flash.display.*; import flash.text.*; public dynamic class CGoodsItem extends MovieClip { public var separator1:TextField; public var textPrice:TextField; public var bg:MovieClip; public var textName:TextField; public var textOwned:TextField; } }//package
Section 123
//CHandPhoneScreen (CHandPhoneScreen) package { import com.jayz.dailylife.*; public dynamic class CHandPhoneScreen extends CHandPhoneScreen { } }//package
Section 124
//CHighScoreScreen (CHighScoreScreen) package { import com.jayz.dailylife.*; public dynamic class CHighScoreScreen extends CHighScoreScreen { } }//package
Section 125
//CHosJobScreen (CHosJobScreen) package { import com.jayz.dailylife.hospital.*; public dynamic class CHosJobScreen extends CHosJobScreen { public function CHosJobScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 126
//CHospitalScreen (CHospitalScreen) package { import com.jayz.dailylife.hospital.*; public dynamic class CHospitalScreen extends CHospitalScreen { public function CHospitalScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 127
//CHosWorkScreen (CHosWorkScreen) package { import com.jayz.dailylife.hospital.*; public dynamic class CHosWorkScreen extends CHosWorkScreen { public function CHosWorkScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 128
//CJobffScreen (CJobffScreen) package { import com.jayz.dailylife.fastfood.*; public dynamic class CJobffScreen extends CJobffScreen { public function CJobffScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 129
//CJobItem2 (CJobItem2) package { import flash.display.*; import flash.text.*; public dynamic class CJobItem2 extends MovieClip { public var separator1:TextField; public var textJobReq:TextField; public var bg:MovieClip; public var textSalary:TextField; public var textJobTitle:TextField; public var separator2:TextField; } }//package
Section 130
//CJobMallScreen (CJobMallScreen) package { import com.jayz.dailylife.shopping.*; public dynamic class CJobMallScreen extends CJobMallScreen { public function CJobMallScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 131
//CJobOfficeScreen (CJobOfficeScreen) package { import com.jayz.dailylife.office.*; public dynamic class CJobOfficeScreen extends CJobOfficeScreen { public function CJobOfficeScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 132
//CJobStudyScreen (CJobStudyScreen) package { import com.jayz.dailylife.university.*; public dynamic class CJobStudyScreen extends CJobStudyScreen { public function CJobStudyScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 133
//CLuxApartemenScreen (CLuxApartemenScreen) package { import com.jayz.dailylife.luxapartement.*; public dynamic class CLuxApartemenScreen extends CLuxApartemenScreen { public function CLuxApartemenScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 134
//CLuxApartemenViewScreen (CLuxApartemenViewScreen) package { import com.jayz.dailylife.luxapartement.*; public dynamic class CLuxApartemenViewScreen extends CLuxApartemenViewScreen { public function CLuxApartemenViewScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 135
//CMainMenuScreen (CMainMenuScreen) package { import com.jayz.dailylife.*; public dynamic class CMainMenuScreen extends CMainMenuScreen { } }//package
Section 136
//CMallScreen (CMallScreen) package { import com.jayz.dailylife.shopping.*; public dynamic class CMallScreen extends CMallScreen { public function CMallScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 137
//CMcFoodMenu (CMcFoodMenu) package { import flash.display.*; import flash.text.*; public dynamic class CMcFoodMenu extends MovieClip { public var separator1:TextField; public var textPrice:TextField; public var bg:MovieClip; public var textFoodName:TextField; } }//package
Section 138
//CMcInfoText (CMcInfoText) package { import flash.display.*; import flash.text.*; public dynamic class CMcInfoText extends MovieClip { public var line1:TextField; public var line2:TextField; public var line3:TextField; public var judul:TextField; } }//package
Section 139
//CMcPopText (CMcPopText) package { import flash.display.*; import flash.text.*; public dynamic class CMcPopText extends MovieClip { public var line1:TextField; public var line2:TextField; public var line3:TextField; public var line4:TextField; } }//package
Section 140
//CMcService (CMcService) package { import flash.display.*; import flash.text.*; public dynamic class CMcService extends MovieClip { public var bg:MovieClip; public var textName:TextField; public var textExp:TextField; } }//package
Section 141
//CMealMenuScreen (CMealMenuScreen) package { import com.jayz.dailylife.fastfood.*; public dynamic class CMealMenuScreen extends CMealMenuScreen { public function CMealMenuScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 142
//CMissionScreen (CMissionScreen) package { import com.jayz.dailylife.*; public dynamic class CMissionScreen extends CMissionScreen { } }//package
Section 143
//CMovieScreen (CMovieScreen) package { import com.jayz.dailylife.theater.*; public dynamic class CMovieScreen extends CMovieScreen { } }//package
Section 144
//CMuteButton (CMuteButton) package { import com.jayz.dailylife.game.*; public dynamic class CMuteButton extends CMuteButton { public function CMuteButton(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 145
//COfficeScreen (COfficeScreen) package { import com.jayz.dailylife.office.*; public dynamic class COfficeScreen extends COfficeScreen { } }//package
Section 146
//CPlayScreen (CPlayScreen) package { import com.jayz.dailylife.*; public dynamic class CPlayScreen extends CPlayScreen { } }//package
Section 147
//CPreLoaderScreen (CPreLoaderScreen) package { import com.jayz.dailylife.*; public dynamic class CPreLoaderScreen extends CPreLoaderScreen { } }//package
Section 148
//CProdi (CProdi) package { import flash.display.*; import flash.text.*; public dynamic class CProdi extends MovieClip { public var textFakultas:TextField; public var separator1:TextField; public var textFee:TextField; public var bg:MovieClip; public var textProdi:TextField; public var separator2:TextField; } }//package
Section 149
//CPubScreen (CPubScreen) package { import com.jayz.dailylife.pub.*; public dynamic class CPubScreen extends CPubScreen { public function CPubScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 150
//CRoomViewScreen (CRoomViewScreen) package { import com.jayz.dailylife.home.*; public dynamic class CRoomViewScreen extends CRoomViewScreen { public function CRoomViewScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 151
//CSBuilding (CSBuilding) package { import flash.media.*; public dynamic class CSBuilding extends Sound { } }//package
Section 152
//CSEat (CSEat) package { import flash.media.*; public dynamic class CSEat extends Sound { } }//package
Section 153
//CSEnterCheapAp (CSEnterCheapAp) package { import flash.media.*; public dynamic class CSEnterCheapAp extends Sound { } }//package
Section 154
//CSEnterPub (CSEnterPub) package { import flash.media.*; public dynamic class CSEnterPub extends Sound { } }//package
Section 155
//CSEnterTheatre (CSEnterTheatre) package { import flash.media.*; public dynamic class CSEnterTheatre extends Sound { } }//package
Section 156
//CSGame (CSGame) package { import flash.media.*; public dynamic class CSGame extends Sound { } }//package
Section 157
//CShoppingScreen (CShoppingScreen) package { import com.jayz.dailylife.shopping.*; public dynamic class CShoppingScreen extends CShoppingScreen { public function CShoppingScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 158
//CSInsideOffice (CSInsideOffice) package { import flash.media.*; public dynamic class CSInsideOffice extends Sound { } }//package
Section 159
//CSInsidePub (CSInsidePub) package { import flash.media.*; public dynamic class CSInsidePub extends Sound { } }//package
Section 160
//CSLose (CSLose) package { import flash.media.*; public dynamic class CSLose extends Sound { } }//package
Section 161
//CSMainMenu (CSMainMenu) package { import flash.media.*; public dynamic class CSMainMenu extends Sound { } }//package
Section 162
//CSPolice (CSPolice) package { import flash.media.*; public dynamic class CSPolice extends Sound { } }//package
Section 163
//CStatusScreen (CStatusScreen) package { import com.jayz.dailylife.*; public dynamic class CStatusScreen extends CStatusScreen { } }//package
Section 164
//CSTransaction (CSTransaction) package { import flash.media.*; public dynamic class CSTransaction extends Sound { } }//package
Section 165
//CStudyScreen (CStudyScreen) package { import com.jayz.dailylife.university.*; public dynamic class CStudyScreen extends CStudyScreen { public function CStudyScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 166
//CSWin (CSWin) package { import flash.media.*; public dynamic class CSWin extends Sound { } }//package
Section 167
//CSWork (CSWork) package { import flash.media.*; public dynamic class CSWork extends Sound { } }//package
Section 168
//CSWorkFactory (CSWorkFactory) package { import flash.media.*; public dynamic class CSWorkFactory extends Sound { } }//package
Section 169
//CTheaterScreen (CTheaterScreen) package { import com.jayz.dailylife.theater.*; public dynamic class CTheaterScreen extends CTheaterScreen { public function CTheaterScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 170
//CTitlingScreen (CTitlingScreen) package { import com.jayz.dailylife.*; public dynamic class CTitlingScreen extends CTitlingScreen { public function CTitlingScreen(){ addFrameScript(0, frame1, 2, frame3, 271, frame272); } function frame272(){ stop(); endAnimation(); } function frame3(){ daftarButtons(); } function frame1(){ stop(); } } }//package
Section 171
//CWinOrLoseScreen (CWinOrLoseScreen) package { import com.jayz.dailylife.*; public dynamic class CWinOrLoseScreen extends CWinOrLoseScreen { } }//package
Section 172
//CWorkffScreen (CWorkffScreen) package { import com.jayz.dailylife.fastfood.*; public dynamic class CWorkffScreen extends CWorkffScreen { public function CWorkffScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 173
//CWorkMallScreen (CWorkMallScreen) package { import com.jayz.dailylife.shopping.*; public dynamic class CWorkMallScreen extends CWorkMallScreen { public function CWorkMallScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 174
//CWorkOfficeScreen (CWorkOfficeScreen) package { import com.jayz.dailylife.office.*; public dynamic class CWorkOfficeScreen extends CWorkOfficeScreen { public function CWorkOfficeScreen(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 175
//CWorkStudyScreen (CWorkStudyScreen) package { import com.jayz.dailylife.university.*; public dynamic class CWorkStudyScreen extends CWorkStudyScreen { } }//package
Section 176
//focusRectSkin (focusRectSkin) package { import flash.display.*; public dynamic class focusRectSkin extends MovieClip { } }//package
Section 177
//mcDialog (mcDialog) package { import flash.display.*; import flash.text.*; public dynamic class mcDialog extends MovieClip { public var txTitle:TextField; public var txContent:TextField; public var btNo:SimpleButton; public var btOk:SimpleButton; } }//package
Section 178
//ScrollArrowDown_disabledSkin (ScrollArrowDown_disabledSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_disabledSkin extends MovieClip { } }//package
Section 179
//ScrollArrowDown_downSkin (ScrollArrowDown_downSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_downSkin extends MovieClip { } }//package
Section 180
//ScrollArrowDown_overSkin (ScrollArrowDown_overSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_overSkin extends MovieClip { } }//package
Section 181
//ScrollArrowDown_upSkin (ScrollArrowDown_upSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_upSkin extends MovieClip { } }//package
Section 182
//ScrollArrowUp_disabledSkin (ScrollArrowUp_disabledSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_disabledSkin extends MovieClip { } }//package
Section 183
//ScrollArrowUp_downSkin (ScrollArrowUp_downSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_downSkin extends MovieClip { } }//package
Section 184
//ScrollArrowUp_overSkin (ScrollArrowUp_overSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_overSkin extends MovieClip { } }//package
Section 185
//ScrollArrowUp_upSkin (ScrollArrowUp_upSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_upSkin extends MovieClip { } }//package
Section 186
//ScrollBar_thumbIcon (ScrollBar_thumbIcon) package { import flash.display.*; public dynamic class ScrollBar_thumbIcon extends MovieClip { } }//package
Section 187
//ScrollThumb_downSkin (ScrollThumb_downSkin) package { import flash.display.*; public dynamic class ScrollThumb_downSkin extends MovieClip { } }//package
Section 188
//ScrollThumb_overSkin (ScrollThumb_overSkin) package { import flash.display.*; public dynamic class ScrollThumb_overSkin extends MovieClip { } }//package
Section 189
//ScrollThumb_upSkin (ScrollThumb_upSkin) package { import flash.display.*; public dynamic class ScrollThumb_upSkin extends MovieClip { } }//package
Section 190
//ScrollTrack_skin (ScrollTrack_skin) package { import flash.display.*; public dynamic class ScrollTrack_skin extends MovieClip { } }//package
Section 191
//TextArea_disabledSkin (TextArea_disabledSkin) package { import flash.display.*; public dynamic class TextArea_disabledSkin extends MovieClip { } }//package
Section 192
//TextArea_upSkin (TextArea_upSkin) package { import flash.display.*; public dynamic class TextArea_upSkin extends MovieClip { } }//package

Library Items

Symbol 1 BitmapUsed by:2
Symbol 2 GraphicUses:1Used by:3
Symbol 3 ButtonUses:2Used by:39
Symbol 4 ShapeTweeningUsed by:39
Symbol 5 GraphicUsed by:10
Symbol 6 FontUsed by:7 128 129 130 131 132
Symbol 7 TextUses:6Used by:10
Symbol 8 GraphicUsed by:10
Symbol 9 GraphicUsed by:10
Symbol 10 ButtonUses:5 7 8 9Used by:39
Symbol 11 BitmapUsed by:12
Symbol 12 GraphicUses:11Used by:23
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:13Used by:23
Symbol 15 BitmapUsed by:16
Symbol 16 GraphicUses:15Used by:23
Symbol 17 BitmapUsed by:18
Symbol 18 GraphicUses:17Used by:23
Symbol 19 BitmapUsed by:20
Symbol 20 GraphicUses:19Used by:23
Symbol 21 BitmapUsed by:22
Symbol 22 GraphicUses:21Used by:23
Symbol 23 MovieClipUses:12 14 16 18 20 22Used by:39
Symbol 24 SoundUsed by:39
Symbol 25 ShapeTweeningUsed by:28
Symbol 26 ShapeTweeningUsed by:28
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClipUses:25 26 27Used by:33 34 35
Symbol 29 ShapeTweeningUsed by:32
Symbol 30 ShapeTweeningUsed by:32
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:29 30 31Used by:33 34 35
Symbol 33 MovieClipUses:28 32Used by:39
Symbol 34 MovieClipUses:28 32Used by:39
Symbol 35 MovieClipUses:28 32Used by:39
Symbol 36 ShapeTweeningUsed by:39
Symbol 37 SoundUsed by:39
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClip {DailyLife_fla.MainTitling_256}Uses:3 4 10 23 24 33 34 35 36 37 38 SS1Used by:40
Symbol 40 MovieClip {CTitlingScreen}Uses:39
Symbol 41 GraphicUsed by:135
Symbol 42 GraphicUsed by:47
Symbol 43 FontUsed by:44 49 56 63 68 72 74 76 78 93 139 150 256 263 265 266 268 290 294 296 312 318 323 328 332 337 342 352 446 454 459 480 488 489 490 492 495 535 542 543 544 545 589 612 631 633 635 648 649 672 697 698 721 728 729 740 744 746 766 769 771 772 773 775 781 782 802 803 813 838 839 855 865 870 878 893 905 906 917 919 924 926 929
Symbol 44 EditableTextUses:43Used by:47
Symbol 45 GraphicUsed by:47
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClip {DailyLife_fla.person01_97}Uses:42 44 45 46Used by:135 555 619 629 639 645 655 678 691 701 713 723 732 751 777 785 797 806 822 842 852 862 876 886 894 900 909
Symbol 48 GraphicUsed by:54
Symbol 49 EditableTextUses:43Used by:54
Symbol 50 GraphicUsed by:54 66
Symbol 51 GraphicUsed by:54 66
Symbol 52 GraphicUsed by:54
Symbol 53 GraphicUsed by:54
Symbol 54 MovieClip {DailyLife_fla.person02_98}Uses:48 49 50 51 52 53Used by:135 555 619 629 639 645 655 678 691 701 713 723 732 751 777 785 797 806 822 842 852 862 876 886 894 900 909
Symbol 55 GraphicUsed by:61
Symbol 56 EditableTextUses:43Used by:61
Symbol 57 GraphicUsed by:61
Symbol 58 GraphicUsed by:61
Symbol 59 GraphicUsed by:61
Symbol 60 GraphicUsed by:61
Symbol 61 MovieClip {DailyLife_fla.person03_99}Uses:55 56 57 58 59 60Used by:135 555 619 629 639 645 655 678 691 701 713 723 732 751 777 785 797 806 822 842 852 862 876 886 894 900 909
Symbol 62 GraphicUsed by:66
Symbol 63 EditableTextUses:43Used by:66
Symbol 64 GraphicUsed by:66
Symbol 65 GraphicUsed by:66
Symbol 66 MovieClip {DailyLife_fla.person04_100}Uses:62 63 50 51 64 65Used by:135 555 619 629 639 645 655 678 691 701 713 723 732 751 777 785 797 806 822 842 852 862 876 886 894 900 909
Symbol 67 GraphicUsed by:71 73 75 77 94
Symbol 68 TextUses:43Used by:71
Symbol 69 GraphicUsed by:71 73 75 77 94 140 146 151 163 165 174 176 178 264 267 269 291 295 297 481 496 507 558 614 616 622 625 627 632 634 636 637 642 643 650 652 659 660 673 674 683 684 695 696 704 705 709 710 711 726 727 734 735 748 749 754 755 768 779 780 787 788 792 793 795 800 801 808 809 814 815 816 825 826 836 837 844 845 849 850 860 874 883 884 888 890 892 896 897 898 903 904 911 912 918 920 925 927 930 938 940
Symbol 70 GraphicUsed by:71 73 75 77 94 140 146 151 163 165 174 176 178 264 267 269 291 295 297 481 496 507 558 614 616 622 625 627 632 634 636 637 642 643 650 652 659 660 673 674 683 684 695 696 704 705 709 710 711 726 727 734 735 748 749 754 755 768 779 780 787 788 792 793 800 801 808 809 814 815 816 825 826 836 837 844 845 849 850 860 874 883 884 888 890 892 896 897 898 903 904 911 912 918 920 925 927 930 938 940
Symbol 71 ButtonUses:67 68 69 70Used by:135
Symbol 72 TextUses:43Used by:73
Symbol 73 ButtonUses:67 72 69 70Used by:135
Symbol 74 TextUses:43Used by:75
Symbol 75 ButtonUses:67 74 69 70Used by:135
Symbol 76 TextUses:43Used by:77
Symbol 77 ButtonUses:67 76 69 70Used by:135
Symbol 78 EditableTextUses:43Used by:135
Symbol 79 GraphicUsed by:135
Symbol 80 GraphicUsed by:92 515 521 527 533 553
Symbol 81 ShapeTweeningUsed by:92
Symbol 82 GraphicUsed by:92
Symbol 83 GraphicUsed by:92
Symbol 84 ShapeTweeningUsed by:92
Symbol 85 ShapeTweeningUsed by:92
Symbol 86 FontUsed by:87 89 90 141 145 155 156 157 162 164 166 167 173 175 177 179 180 181 182 270 271 306 503 557 562 563 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 613 615 621 624 626 641 651 658 663 664 665 666 667 682 685 686 687 688 717 753 756 757 758 759 760 767 824 827 828 830 831 882 889 891 921 928 931 933 934 935 937 939 943 944 945 950 951 952 953
Symbol 87 TextUses:86Used by:92
Symbol 88 ShapeTweeningUsed by:92
Symbol 89 TextUses:86Used by:92
Symbol 90 TextUses:86Used by:92
Symbol 91 GraphicUsed by:92 515 521 527 533
Symbol 92 MovieClipUses:80 81 82 83 84 85 87 88 89 90 91Used by:135
Symbol 93 TextUses:43Used by:94
Symbol 94 ButtonUses:67 93 69 70Used by:135
Symbol 95 GraphicUsed by:110
Symbol 96 GraphicUsed by:110
Symbol 97 GraphicUsed by:110
Symbol 98 GraphicUsed by:110
Symbol 99 GraphicUsed by:110
Symbol 100 GraphicUsed by:110
Symbol 101 GraphicUsed by:110
Symbol 102 GraphicUsed by:110
Symbol 103 GraphicUsed by:110
Symbol 104 GraphicUsed by:110
Symbol 105 GraphicUsed by:110
Symbol 106 GraphicUsed by:110
Symbol 107 GraphicUsed by:110
Symbol 108 GraphicUsed by:110
Symbol 109 GraphicUsed by:110
Symbol 110 MovieClipUses:95 96 97 98 99 100 101 102 103 104 105 106 107 108 109Used by:134
Symbol 111 GraphicUsed by:126
Symbol 112 GraphicUsed by:126
Symbol 113 GraphicUsed by:126
Symbol 114 GraphicUsed by:126
Symbol 115 GraphicUsed by:126
Symbol 116 GraphicUsed by:126
Symbol 117 GraphicUsed by:126
Symbol 118 GraphicUsed by:126
Symbol 119 GraphicUsed by:126
Symbol 120 GraphicUsed by:126
Symbol 121 GraphicUsed by:126
Symbol 122 GraphicUsed by:126
Symbol 123 GraphicUsed by:126
Symbol 124 GraphicUsed by:126
Symbol 125 GraphicUsed by:126
Symbol 126 MovieClipUses:111 112 113 114 115 116 117 118 119 120 121 122 123 124 125Used by:134
Symbol 127 GraphicUsed by:133
Symbol 128 EditableTextUses:6Used by:133
Symbol 129 EditableTextUses:6Used by:133
Symbol 130 EditableTextUses:6Used by:133
Symbol 131 EditableTextUses:6Used by:133
Symbol 132 EditableTextUses:6Used by:133
Symbol 133 MovieClip {DailyLife_fla.baloon_78}Uses:127 128 129 130 131 132Used by:134
Symbol 134 MovieClip {CAvatar}Uses:110 126 133Used by:135 505 619 629 639 645 655 678 691 701 713 723 732 751 777 785 797 806 822 842 852 862 876 879 886 894 900 909
Symbol 135 MovieClip {CChatScreen}Uses:41 47 54 61 66 71 73 75 77 78 79 92 94 134
Symbol 136 GraphicUsed by:154
Symbol 137 GraphicUsed by:154
Symbol 138 GraphicUsed by:140 146 151 163 165 174 176 178 264 267 269 291 295 297 481 496 507 558 614 616 622 625 627 632 634 636 637 642 643 650 652 659 660 673 674 675 676 683 684 695 696 704 705 709 710 711 726 727 734 735 748 749 754 755 768 779 780 787 788 792 793 795 800 801 808 809 814 815 816 825 826 836 837 844 845 849 850 860 874 883 884 888 890 892 896 897 898 903 904 911 912 918 920 925 927 930 938 940
Symbol 139 TextUses:43Used by:140
Symbol 140 ButtonUses:138 139 69 70Used by:149 154
Symbol 141 TextUses:86Used by:154
Symbol 142 FontUsed by:143 144 147 148 260
Symbol 143 EditableTextUses:142Used by:149
Symbol 144 EditableTextUses:142Used by:149
Symbol 145 TextUses:86Used by:146
Symbol 146 ButtonUses:138 145 69 70Used by:149
Symbol 147 EditableTextUses:142Used by:149
Symbol 148 EditableTextUses:142Used by:149
Symbol 149 MovieClip {DailyLife_fla.submitbox_240}Uses:143 144 146 147 148 140Used by:154
Symbol 150 TextUses:43Used by:151
Symbol 151 ButtonUses:138 150 69 70Used by:154 292
Symbol 152 FontUsed by:153 193 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 511 517 523 529 534 536 546 559 560
Symbol 153 EditableTextUses:152Used by:154
Symbol 154 MovieClip {CHighScoreScreen}Uses:136 137 140 141 149 151 153Used by:971
Symbol 155 EditableTextUses:86Used by:160
Symbol 156 EditableTextUses:86Used by:160
Symbol 157 EditableTextUses:86Used by:160
Symbol 158 GraphicUsed by:159
Symbol 159 MovieClipUses:158Used by:160 689
Symbol 160 MovieClip {CMcFoodMenu}Uses:155 156 157 159Used by:645 971
Symbol 161 GraphicUsed by:168
Symbol 162 TextUses:86Used by:163
Symbol 163 ButtonUses:138 162 69 70Used by:168
Symbol 164 TextUses:86Used by:165
Symbol 165 ButtonUses:138 164 69 70Used by:168
Symbol 166 EditableTextUses:86Used by:168
Symbol 167 EditableTextUses:86Used by:168
Symbol 168 MovieClip {mcDialog}Uses:161 163 165 166 167Used by:971
Symbol 169 GraphicUsed by:171
Symbol 170 GraphicUsed by:171
Symbol 171 MovieClip {CMuteButton}Uses:169 170Used by:505
Symbol 172 GraphicUsed by:183
Symbol 173 TextUses:86Used by:174
Symbol 174 ButtonUses:138 173 69 70Used by:183
Symbol 175 TextUses:86Used by:176
Symbol 176 ButtonUses:138 175 69 70Used by:183
Symbol 177 TextUses:86Used by:178
Symbol 178 ButtonUses:138 177 69 70Used by:183
Symbol 179 TextUses:86Used by:183
Symbol 180 TextUses:86Used by:183
Symbol 181 TextUses:86Used by:183
Symbol 182 TextUses:86Used by:183
Symbol 183 MovieClip {CCTutorial}Uses:172 174 176 178 179 180 181 182Used by:505
Symbol 184 GraphicUsed by:212
Symbol 185 GraphicUsed by:188
Symbol 186 GraphicUsed by:188
Symbol 187 GraphicUsed by:188
Symbol 188 ButtonUses:185 186 187Used by:212
Symbol 189 GraphicUsed by:192
Symbol 190 GraphicUsed by:192
Symbol 191 GraphicUsed by:192
Symbol 192 ButtonUses:189 190 191Used by:212
Symbol 193 TextUses:152Used by:212
Symbol 194 GraphicUsed by:195
Symbol 195 ButtonUses:194Used by:212
Symbol 196 EditableTextUses:152Used by:212
Symbol 197 EditableTextUses:152Used by:212
Symbol 198 EditableTextUses:152Used by:212
Symbol 199 EditableTextUses:152Used by:212
Symbol 200 TextUses:152Used by:212
Symbol 201 TextUses:152Used by:212
Symbol 202 TextUses:152Used by:212
Symbol 203 TextUses:152Used by:212
Symbol 204 TextUses:152Used by:212
Symbol 205 TextUses:152Used by:212
Symbol 206 TextUses:152Used by:212
Symbol 207 TextUses:152Used by:212
Symbol 208 TextUses:152Used by:212
Symbol 209 TextUses:152Used by:212
Symbol 210 TextUses:152Used by:212
Symbol 211 TextUses:152Used by:212
Symbol 212 MovieClip {CHandPhoneScreen}Uses:184 188 192 193 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211Used by:505
Symbol 213 GraphicUsed by:214
Symbol 214 MovieClipUses:213Used by:246 251
Symbol 215 MovieClip {fl.core.ComponentShim}Used by:246 251
Symbol 216 GraphicUsed by:217
Symbol 217 MovieClip {focusRectSkin}Uses:216Used by:246 251
Symbol 218 GraphicUsed by:219
Symbol 219 MovieClip {ScrollTrack_skin}Uses:218Used by:246
Symbol 220 GraphicUsed by:223
Symbol 221 GraphicUsed by:222 225 229 239
Symbol 222 MovieClipUses:221Used by:223 233 235
Symbol 223 MovieClip {ScrollArrowUp_downSkin}Uses:220 222Used by:246
Symbol 224 GraphicUsed by:225
Symbol 225 MovieClip {ScrollArrowDown_downSkin}Uses:224 221Used by:246
Symbol 226 GraphicUsed by:227
Symbol 227 MovieClip {ScrollThumb_downSkin}Uses:226Used by:246
Symbol 228 GraphicUsed by:229
Symbol 229 MovieClip {ScrollArrowDown_overSkin}Uses:228 221Used by:246
Symbol 230 GraphicUsed by:231
Symbol 231 MovieClip {ScrollThumb_overSkin}Uses:230Used by:246
Symbol 232 GraphicUsed by:233
Symbol 233 MovieClip {ScrollArrowUp_overSkin}Uses:232 222Used by:246
Symbol 234 GraphicUsed by:235
Symbol 235 MovieClip {ScrollArrowUp_upSkin}Uses:234 222Used by:246
Symbol 236 GraphicUsed by:237
Symbol 237 MovieClip {ScrollThumb_upSkin}Uses:236Used by:246
Symbol 238 GraphicUsed by:239
Symbol 239 MovieClip {ScrollArrowDown_upSkin}Uses:238 221Used by:246
Symbol 240 GraphicUsed by:241
Symbol 241 MovieClip {ScrollArrowDown_disabledSkin}Uses:240Used by:246
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClip {ScrollArrowUp_disabledSkin}Uses:242Used by:246
Symbol 244 GraphicUsed by:245
Symbol 245 MovieClip {ScrollBar_thumbIcon}Uses:244Used by:246
Symbol 246 MovieClip {fl.controls.UIScrollBar}Uses:214 215 217 219 223 225 227 229 231 233 235 237 239 241 243 245Used by:251
Symbol 247 GraphicUsed by:248
Symbol 248 MovieClip {TextArea_disabledSkin}Uses:247Used by:251
Symbol 249 GraphicUsed by:250
Symbol 250 MovieClip {TextArea_upSkin}Uses:249Used by:251
Symbol 251 MovieClip {fl.controls.TextArea}Uses:214 215 248 250 217 246Used by:505
Symbol 252 GraphicUsed by:261 941  Timeline
Symbol 253 GraphicUsed by:258
Symbol 254 ShapeTweeningUsed by:258
Symbol 255 GraphicUsed by:258
Symbol 256 EditableTextUses:43Used by:258
Symbol 257 GraphicUsed by:258
Symbol 258 MovieClip {DailyLife_fla.progressbar_1}Uses:253 254 255 256 257Used by:261  Timeline
Symbol 259 GraphicUsed by:261 941
Symbol 260 EditableTextUses:142Used by:261
Symbol 261 MovieClip {CPreLoaderScreen}Uses:259 252 260 258Used by:971
Symbol 262 GraphicUsed by:292
Symbol 263 TextUses:43Used by:264
Symbol 264 ButtonUses:138 263 69 70Used by:292
Symbol 265 TextUses:43Used by:267
Symbol 266 TextUses:43Used by:267
Symbol 267 ButtonUses:138 265 69 266 70Used by:292
Symbol 268 TextUses:43Used by:269
Symbol 269 ButtonUses:138 268 69 70Used by:292
Symbol 270 EditableTextUses:86Used by:292
Symbol 271 TextUses:86Used by:292
Symbol 272 GraphicUsed by:289
Symbol 273 GraphicUsed by:289
Symbol 274 GraphicUsed by:289
Symbol 275 GraphicUsed by:289
Symbol 276 GraphicUsed by:289
Symbol 277 GraphicUsed by:289
Symbol 278 GraphicUsed by:289
Symbol 279 GraphicUsed by:289
Symbol 280 GraphicUsed by:289
Symbol 281 GraphicUsed by:289
Symbol 282 GraphicUsed by:289
Symbol 283 GraphicUsed by:289
Symbol 284 GraphicUsed by:289
Symbol 285 GraphicUsed by:289
Symbol 286 GraphicUsed by:289
Symbol 287 GraphicUsed by:289
Symbol 288 GraphicUsed by:289
Symbol 289 MovieClip {DailyLife_fla.mc_intromainmenu_9}Uses:272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288Used by:292
Symbol 290 TextUses:43Used by:291
Symbol 291 ButtonUses:138 290 69 70Used by:292
Symbol 292 MovieClip {CMainMenuScreen}Uses:262 264 267 151 269 270 271 289 291Used by:971
Symbol 293 GraphicUsed by:304 608
Symbol 294 TextUses:43Used by:295 507 637 676 711 749 795 820 874 898
Symbol 295 ButtonUses:138 294 69 70Used by:304
Symbol 296 TextUses:43Used by:297
Symbol 297 ButtonUses:138 296 69 70Used by:304 608
Symbol 298 GraphicUsed by:300
Symbol 299 GraphicUsed by:300
Symbol 300 MovieClipUses:298 299Used by:304
Symbol 301 GraphicUsed by:303
Symbol 302 GraphicUsed by:303
Symbol 303 MovieClipUses:301 302Used by:304
Symbol 304 MovieClip {CPlayScreen}Uses:293 295 297 300 303Used by:971
Symbol 305 GraphicUsed by:505
Symbol 306 EditableTextUses:86Used by:505
Symbol 307 GraphicUsed by:505
Symbol 308 GraphicUsed by:313
Symbol 309 GraphicUsed by:313 325 329 334 338 344 348 357 365 369 372 375 379 383 447 451 456 460 463 467 471 474
Symbol 310 GraphicUsed by:313
Symbol 311 GraphicUsed by:313 325 329 348 354 357 365 369 383 387 447 451 456 460 463 467 471 474
Symbol 312 TextUses:43Used by:313 357
Symbol 313 ButtonUses:308 309 310 311 312Used by:505
Symbol 314 GraphicUsed by:320
Symbol 315 GraphicUsed by:320 361
Symbol 316 GraphicUsed by:320
Symbol 317 GraphicUsed by:320 361
Symbol 318 TextUses:43Used by:320 361
Symbol 319 GraphicUsed by:320
Symbol 320 ButtonUses:314 315 316 317 318 319Used by:505
Symbol 321 GraphicUsed by:325
Symbol 322 GraphicUsed by:325
Symbol 323 TextUses:43Used by:325 348 365 383 451 467
Symbol 324 GraphicUsed by:325
Symbol 325 ButtonUses:321 309 322 311 323 324Used by:505
Symbol 326 GraphicUsed by:329
Symbol 327 GraphicUsed by:329
Symbol 328 TextUses:43Used by:329 369
Symbol 329 ButtonUses:326 309 327 311 328Used by:505
Symbol 330 GraphicUsed by:334
Symbol 331 GraphicUsed by:334
Symbol 332 TextUses:43Used by:334 372
Symbol 333 GraphicUsed by:334
Symbol 334 ButtonUses:330 309 331 332 333Used by:505
Symbol 335 GraphicUsed by:338
Symbol 336 GraphicUsed by:338
Symbol 337 TextUses:43Used by:338 375
Symbol 338 ButtonUses:335 309 336 337Used by:505
Symbol 339 GraphicUsed by:344
Symbol 340 GraphicUsed by:344
Symbol 341 GraphicUsed by:344 379
Symbol 342 TextUses:43Used by:344 379
Symbol 343 GraphicUsed by:344
Symbol 344 ButtonUses:339 309 340 341 342 343Used by:505
Symbol 345 GraphicUsed by:348
Symbol 346 GraphicUsed by:348
Symbol 347 GraphicUsed by:348
Symbol 348 ButtonUses:345 309 346 311 323 347Used by:505
Symbol 349 GraphicUsed by:354
Symbol 350 GraphicUsed by:354 387
Symbol 351 GraphicUsed by:354
Symbol 352 TextUses:43Used by:354 387
Symbol 353 GraphicUsed by:354
Symbol 354 ButtonUses:349 350 351 311 352 353Used by:505
Symbol 355 GraphicUsed by:357
Symbol 356 GraphicUsed by:357
Symbol 357 ButtonUses:355 309 356 311 312Used by:505
Symbol 358 GraphicUsed by:361
Symbol 359 GraphicUsed by:361
Symbol 360 GraphicUsed by:361
Symbol 361 ButtonUses:358 315 359 317 318 360Used by:505
Symbol 362 GraphicUsed by:365
Symbol 363 GraphicUsed by:365
Symbol 364 GraphicUsed by:365
Symbol 365 ButtonUses:362 309 363 311 323 364Used by:505
Symbol 366 GraphicUsed by:369
Symbol 367 GraphicUsed by:369
Symbol 368 GraphicUsed by:369
Symbol 369 ButtonUses:366 309 367 311 328 368Used by:505
Symbol 370 GraphicUsed by:372
Symbol 371 GraphicUsed by:372
Symbol 372 ButtonUses:370 309 371 332Used by:505
Symbol 373 GraphicUsed by:375
Symbol 374 GraphicUsed by:375
Symbol 375 ButtonUses:373 309 374 337Used by:505
Symbol 376 GraphicUsed by:379
Symbol 377 GraphicUsed by:379
Symbol 378 GraphicUsed by:379
Symbol 379 ButtonUses:376 309 377 341 342 378Used by:505
Symbol 380 GraphicUsed by:383
Symbol 381 GraphicUsed by:383
Symbol 382 GraphicUsed by:383
Symbol 383 ButtonUses:380 309 381 311 323 382Used by:505
Symbol 384 GraphicUsed by:387
Symbol 385 GraphicUsed by:387
Symbol 386 GraphicUsed by:387
Symbol 387 ButtonUses:384 350 385 311 352 386Used by:505
Symbol 388 ShapeTweeningUsed by:396
Symbol 389 GraphicUsed by:396
Symbol 390 ShapeTweeningUsed by:396
Symbol 391 GraphicUsed by:396
Symbol 392 ShapeTweeningUsed by:396
Symbol 393 GraphicUsed by:396
Symbol 394 ShapeTweeningUsed by:396
Symbol 395 GraphicUsed by:396
Symbol 396 MovieClipUses:388 389 390 391 392 393 394 395Used by:505
Symbol 397 GraphicUsed by:414
Symbol 398 GraphicUsed by:414
Symbol 399 GraphicUsed by:414
Symbol 400 GraphicUsed by:414
Symbol 401 GraphicUsed by:414
Symbol 402 GraphicUsed by:414
Symbol 403 GraphicUsed by:414
Symbol 404 GraphicUsed by:414
Symbol 405 GraphicUsed by:414
Symbol 406 GraphicUsed by:414
Symbol 407 GraphicUsed by:414
Symbol 408 GraphicUsed by:414
Symbol 409 GraphicUsed by:414
Symbol 410 GraphicUsed by:414
Symbol 411 GraphicUsed by:414
Symbol 412 GraphicUsed by:414
Symbol 413 GraphicUsed by:414
Symbol 414 MovieClipUses:397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413Used by:415
Symbol 415 MovieClip {DailyLife_fla.mc_avatar1_36}Uses:414Used by:505
Symbol 416 GraphicUsed by:433
Symbol 417 GraphicUsed by:433
Symbol 418 GraphicUsed by:433
Symbol 419 GraphicUsed by:433
Symbol 420 GraphicUsed by:433
Symbol 421 GraphicUsed by:433
Symbol 422 GraphicUsed by:433
Symbol 423 GraphicUsed by:433
Symbol 424 GraphicUsed by:433
Symbol 425 GraphicUsed by:433
Symbol 426 GraphicUsed by:433
Symbol 427 GraphicUsed by:433
Symbol 428 GraphicUsed by:433
Symbol 429 GraphicUsed by:433
Symbol 430 GraphicUsed by:433
Symbol 431 GraphicUsed by:433
Symbol 432 GraphicUsed by:433
Symbol 433 MovieClipUses:416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432Used by:434
Symbol 434 MovieClip {DailyLife_fla.mc_avatar2_38}Uses:433Used by:505
Symbol 435 ShapeTweeningUsed by:443
Symbol 436 GraphicUsed by:443
Symbol 437 ShapeTweeningUsed by:443
Symbol 438 GraphicUsed by:443
Symbol 439 ShapeTweeningUsed by:443
Symbol 440 GraphicUsed by:443
Symbol 441 ShapeTweeningUsed by:443
Symbol 442 GraphicUsed by:443
Symbol 443 MovieClipUses:435 436 437 438 439 440 441 442Used by:505
Symbol 444 GraphicUsed by:447
Symbol 445 GraphicUsed by:447
Symbol 446 TextUses:43Used by:447 463
Symbol 447 ButtonUses:444 309 445 311 446Used by:505
Symbol 448 GraphicUsed by:451
Symbol 449 GraphicUsed by:451
Symbol 450 GraphicUsed by:451
Symbol 451 ButtonUses:448 309 449 311 323 450Used by:505
Symbol 452 GraphicUsed by:456
Symbol 453 GraphicUsed by:456
Symbol 454 TextUses:43Used by:456 471
Symbol 455 GraphicUsed by:456
Symbol 456 ButtonUses:452 309 453 311 454 455Used by:505
Symbol 457 GraphicUsed by:460
Symbol 458 GraphicUsed by:460
Symbol 459 TextUses:43Used by:460 474
Symbol 460 ButtonUses:457 309 458 311 459Used by:505
Symbol 461 GraphicUsed by:463
Symbol 462 GraphicUsed by:463
Symbol 463 ButtonUses:461 309 462 311 446Used by:505
Symbol 464 GraphicUsed by:467
Symbol 465 GraphicUsed by:467
Symbol 466 GraphicUsed by:467
Symbol 467 ButtonUses:464 309 465 311 323 466Used by:505
Symbol 468 GraphicUsed by:471
Symbol 469 GraphicUsed by:471
Symbol 470 GraphicUsed by:471
Symbol 471 ButtonUses:468 309 469 311 454 470Used by:505
Symbol 472 GraphicUsed by:474
Symbol 473 GraphicUsed by:474
Symbol 474 ButtonUses:472 309 473 311 459Used by:505
Symbol 475 GraphicUsed by:505
Symbol 476 GraphicUsed by:479
Symbol 477 GraphicUsed by:479
Symbol 478 GraphicUsed by:479
Symbol 479 ButtonUses:476 477 478Used by:505
Symbol 480 TextUses:43Used by:481
Symbol 481 ButtonUses:138 480 69 70Used by:505
Symbol 482 GraphicUsed by:486
Symbol 483 GraphicUsed by:486
Symbol 484 GraphicUsed by:486
Symbol 485 GraphicUsed by:486
Symbol 486 ButtonUses:482 483 484 485Used by:505
Symbol 487 GraphicUsed by:505
Symbol 488 EditableTextUses:43Used by:505
Symbol 489 EditableTextUses:43Used by:505
Symbol 490 EditableTextUses:43Used by:505
Symbol 491 GraphicUsed by:493
Symbol 492 TextUses:43Used by:493
Symbol 493 MovieClipUses:491 492Used by:505
Symbol 494 GraphicUsed by:505
Symbol 495 TextUses:43Used by:496
Symbol 496 ButtonUses:138 495 69 70Used by:505
Symbol 497 GraphicUsed by:505
Symbol 498 GraphicUsed by:502
Symbol 499 ShapeTweeningUsed by:502
Symbol 500 GraphicUsed by:502
Symbol 501 GraphicUsed by:502
Symbol 502 MovieClipUses:498 499 500 501Used by:505
Symbol 503 EditableTextUses:86Used by:505
Symbol 504 GraphicUsed by:505
Symbol 505 MovieClip {CGameScreen}Uses:305 306 307 313 320 325 329 334 338 344 348 354 357 361 365 369 372 375 379 383 387 396 415 434 443 447 451 456 460 463 467 471 474 475 479 481 486 487 488 489 490 493 494 496 497 502 251 134 212 503 183 171 504Used by:971
Symbol 506 GraphicUsed by:555
Symbol 507 ButtonUses:138 294 69 70Used by:555 608
Symbol 508 ShapeTweeningUsed by:515
Symbol 509 GraphicUsed by:515 521 527 533
Symbol 510 GraphicUsed by:515 521 527 533
Symbol 511 TextUses:152Used by:515
Symbol 512 ShapeTweeningUsed by:515
Symbol 513 ShapeTweeningUsed by:515
Symbol 514 ShapeTweeningUsed by:515
Symbol 515 MovieClipUses:80 508 509 510 511 512 513 514 91Used by:555
Symbol 516 ShapeTweeningUsed by:521
Symbol 517 TextUses:152Used by:521
Symbol 518 ShapeTweeningUsed by:521
Symbol 519 ShapeTweeningUsed by:521
Symbol 520 ShapeTweeningUsed by:521
Symbol 521 MovieClipUses:80 516 509 510 517 518 519 520 91Used by:555
Symbol 522 ShapeTweeningUsed by:527
Symbol 523 TextUses:152Used by:527
Symbol 524 ShapeTweeningUsed by:527
Symbol 525 ShapeTweeningUsed by:527
Symbol 526 ShapeTweeningUsed by:527
Symbol 527 MovieClipUses:80 522 509 510 523 524 525 526 91Used by:555
Symbol 528 ShapeTweeningUsed by:533
Symbol 529 TextUses:152Used by:533
Symbol 530 ShapeTweeningUsed by:533
Symbol 531 ShapeTweeningUsed by:533
Symbol 532 ShapeTweeningUsed by:533
Symbol 533 MovieClipUses:80 528 509 510 529 530 531 532 91Used by:555
Symbol 534 TextUses:152Used by:555
Symbol 535 EditableTextUses:43Used by:555
Symbol 536 TextUses:152Used by:555
Symbol 537 GraphicUsed by:538
Symbol 538 MovieClipUses:537Used by:541
Symbol 539 GraphicUsed by:540
Symbol 540 MovieClipUses:539Used by:541
Symbol 541 MovieClip {DailyLife_fla.foto_94}Uses:538 540Used by:555 608
Symbol 542 EditableTextUses:43Used by:555
Symbol 543 EditableTextUses:43Used by:555
Symbol 544 EditableTextUses:43Used by:555
Symbol 545 EditableTextUses:43Used by:555
Symbol 546 TextUses:152Used by:555
Symbol 547 ShapeTweeningUsed by:553
Symbol 548 GraphicUsed by:553
Symbol 549 ShapeTweeningUsed by:553
Symbol 550 ShapeTweeningUsed by:553
Symbol 551 ShapeTweeningUsed by:553
Symbol 552 GraphicUsed by:553
Symbol 553 MovieClipUses:80 547 548 549 550 551 552Used by:555
Symbol 554 GraphicUsed by:555
Symbol 555 MovieClip {CStatusScreen}Uses:506 507 515 521 527 533 534 535 536 541 542 543 544 545 47 54 61 66 546 553 554Used by:971
Symbol 556 GraphicUsed by:561
Symbol 557 TextUses:86Used by:558 938
Symbol 558 ButtonUses:138 557 69 70Used by:561
Symbol 559 TextUses:152Used by:561
Symbol 560 TextUses:152Used by:561
Symbol 561 MovieClip {CCreditsScreen}Uses:556 558 559 560Used by:971
Symbol 562 TextUses:86Used by:608
Symbol 563 TextUses:86Used by:608
Symbol 564 GraphicUsed by:565
Symbol 565 MovieClipUses:564Used by:608
Symbol 566 TextUses:86Used by:608
Symbol 567 TextUses:86Used by:608
Symbol 568 TextUses:86Used by:608
Symbol 569 TextUses:86Used by:608
Symbol 570 TextUses:86Used by:608
Symbol 571 TextUses:86Used by:608
Symbol 572 TextUses:86Used by:608
Symbol 573 TextUses:86Used by:608
Symbol 574 TextUses:86Used by:608
Symbol 575 EditableTextUses:86Used by:608
Symbol 576 EditableTextUses:86Used by:608
Symbol 577 EditableTextUses:86Used by:608
Symbol 578 EditableTextUses:86Used by:608
Symbol 579 EditableTextUses:86Used by:608
Symbol 580 EditableTextUses:86Used by:608
Symbol 581 EditableTextUses:86Used by:608
Symbol 582 EditableTextUses:86Used by:608
Symbol 583 EditableTextUses:86Used by:608
Symbol 584 EditableTextUses:86Used by:608
Symbol 585 EditableTextUses:86Used by:608
Symbol 586 EditableTextUses:86Used by:608
Symbol 587 EditableTextUses:86Used by:608
Symbol 588 EditableTextUses:86Used by:608
Symbol 589 TextUses:43Used by:608
Symbol 590 TextUses:86Used by:608
Symbol 591 TextUses:86Used by:608
Symbol 592 TextUses:86Used by:608
Symbol 593 TextUses:86Used by:608
Symbol 594 TextUses:86Used by:608
Symbol 595 TextUses:86Used by:608
Symbol 596 TextUses:86Used by:608
Symbol 597 TextUses:86Used by:608
Symbol 598 TextUses:86Used by:608
Symbol 599 TextUses:86Used by:608
Symbol 600 TextUses:86Used by:608
Symbol 601 TextUses:86Used by:608
Symbol 602 TextUses:86Used by:608
Symbol 603 TextUses:86Used by:608
Symbol 604 TextUses:86Used by:608
Symbol 605 TextUses:86Used by:608
Symbol 606 TextUses:86Used by:608
Symbol 607 TextUses:86Used by:608
Symbol 608 MovieClip {CMissionScreen}Uses:293 297 507 541 562 563 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607Used by:971
Symbol 609 GraphicUsed by:619
Symbol 610 GraphicUsed by:619 639 645 655 670 678 713 737 751 763 790 797 810 833 847 852 876 900 914
Symbol 611 GraphicUsed by:619
Symbol 612 EditableTextUses:43Used by:619
Symbol 613 TextUses:86Used by:614 860
Symbol 614 ButtonUses:138 613 69 70Used by:619
Symbol 615 TextUses:86Used by:616 859
Symbol 616 ButtonUses:138 615 69 70Used by:619
Symbol 617 GraphicUsed by:619 723 862 879 894
Symbol 618 GraphicUsed by:619
Symbol 619 MovieClip {CRoomViewScreen}Uses:609 610 61 54 47 66 611 612 614 616 617 134 618Used by:971
Symbol 620 GraphicUsed by:629
Symbol 621 TextUses:86Used by:622 643 650 660 684 696 704 726 735 755 779 788 801 809 826 836 845 884 888 903 912
Symbol 622 ButtonUses:138 621 69 70Used by:629 777 852
Symbol 623 GraphicUsed by:629
Symbol 624 TextUses:86Used by:625 849
Symbol 625 ButtonUses:138 624 69 70Used by:629
Symbol 626 TextUses:86Used by:627 850
Symbol 627 ButtonUses:138 626 69 70Used by:629
Symbol 628 GraphicUsed by:629
Symbol 629 MovieClip {CChepApartemenScreen}Uses:620 622 623 61 54 66 47 134 625 627 628Used by:971
Symbol 630 GraphicUsed by:639
Symbol 631 TextUses:43Used by:632
Symbol 632 ButtonUses:138 631 69 70Used by:639
Symbol 633 TextUses:43Used by:634 674 709 792 815 896
Symbol 634 ButtonUses:138 633 69 70Used by:639
Symbol 635 TextUses:43Used by:636 675 710 748 793 816 897
Symbol 636 ButtonUses:138 635 69 70Used by:639
Symbol 637 ButtonUses:138 294 69 70Used by:639
Symbol 638 GraphicUsed by:639
Symbol 639 MovieClip {CFastFoodScreen}Uses:630 54 47 66 61 610 632 634 636 637 134 638Used by:971
Symbol 640 GraphicUsed by:645
Symbol 641 TextUses:86Used by:642
Symbol 642 ButtonUses:138 641 69 70Used by:645
Symbol 643 ButtonUses:138 621 69 70Used by:645
Symbol 644 GraphicUsed by:645
Symbol 645 MovieClip {CMealMenuScreen}Uses:640 54 47 66 61 610 642 643 160 134 644Used by:971
Symbol 646 GraphicUsed by:655
Symbol 647 GraphicUsed by:655
Symbol 648 EditableTextUses:43Used by:655
Symbol 649 EditableTextUses:43Used by:655
Symbol 650 ButtonUses:138 621 69 70Used by:655
Symbol 651 TextUses:86Used by:652 695 727 780 800 837 904
Symbol 652 ButtonUses:138 651 69 70Used by:655
Symbol 653 GraphicUsed by:655
Symbol 654 GraphicUsed by:655
Symbol 655 MovieClip {CWorkffScreen}Uses:646 610 54 47 66 61 647 648 649 650 652 653 134 654Used by:971
Symbol 656 GraphicUsed by:670
Symbol 657 GraphicUsed by:670 707 737 763 790 810 833 847 914
Symbol 658 TextUses:86Used by:659 705 734 787 808 844 911
Symbol 659 ButtonUses:138 658 69 70Used by:670
Symbol 660 ButtonUses:138 621 69 70Used by:670
Symbol 661 GraphicUsed by:662
Symbol 662 MovieClipUses:661Used by:668 761 829
Symbol 663 EditableTextUses:86Used by:668
Symbol 664 EditableTextUses:86Used by:668
Symbol 665 EditableTextUses:86Used by:668
Symbol 666 EditableTextUses:86Used by:668
Symbol 667 EditableTextUses:86Used by:668
Symbol 668 MovieClip {CJobItem2}Uses:662 663 664 665 666 667Used by:670 707 737 790 810 847 914 971
Symbol 669 GraphicUsed by:670
Symbol 670 MovieClip {CJobffScreen}Uses:656 657 610 659 660 668 669Used by:971
Symbol 671 GraphicUsed by:678
Symbol 672 TextUses:43Used by:673
Symbol 673 ButtonUses:138 672 69 70Used by:678
Symbol 674 ButtonUses:138 633 69 70Used by:678
Symbol 675 ButtonUses:138 635Used by:678
Symbol 676 ButtonUses:138 294Used by:678
Symbol 677 GraphicUsed by:678
Symbol 678 MovieClip {CMallScreen}Uses:671 610 54 47 66 61 673 674 675 676 134 677Used by:971
Symbol 679 GraphicUsed by:691
Symbol 680 GraphicUsed by:691
Symbol 681 GraphicUsed by:691
Symbol 682 TextUses:86Used by:683
Symbol 683 ButtonUses:138 682 69 70Used by:691
Symbol 684 ButtonUses:138 621 69 70Used by:691
Symbol 685 EditableTextUses:86Used by:689
Symbol 686 EditableTextUses:86Used by:689
Symbol 687 EditableTextUses:86Used by:689
Symbol 688 EditableTextUses:86Used by:689
Symbol 689 MovieClip {CGoodsItem}Uses:159 685 686 687 688Used by:691 971
Symbol 690 GraphicUsed by:691
Symbol 691 MovieClip {CShoppingScreen}Uses:679 680 54 47 66 61 681 683 684 689 134 690Used by:971
Symbol 692 GraphicUsed by:701
Symbol 693 GraphicUsed by:701
Symbol 694 GraphicUsed by:701
Symbol 695 ButtonUses:138 651 69 70Used by:701
Symbol 696 ButtonUses:138 621 69 70Used by:701
Symbol 697 EditableTextUses:43Used by:701
Symbol 698 EditableTextUses:43Used by:701
Symbol 699 GraphicUsed by:701
Symbol 700 GraphicUsed by:701
Symbol 701 MovieClip {CWorkMallScreen}Uses:692 693 54 47 61 66 694 695 696 697 698 699 134 700Used by:971
Symbol 702 GraphicUsed by:707
Symbol 703 GraphicUsed by:707
Symbol 704 ButtonUses:138 621 69 70Used by:707
Symbol 705 ButtonUses:138 658 69 70Used by:707
Symbol 706 GraphicUsed by:707
Symbol 707 MovieClip {CJobMallScreen}Uses:702 657 703 704 705 668 706Used by:971
Symbol 708 GraphicUsed by:713
Symbol 709 ButtonUses:138 633 69 70Used by:713
Symbol 710 ButtonUses:138 635 69 70Used by:713
Symbol 711 ButtonUses:138 294 69 70Used by:713
Symbol 712 GraphicUsed by:713
Symbol 713 MovieClip {CHospitalScreen}Uses:708 47 66 61 54 610 709 710 711 134 712Used by:971
Symbol 714 GraphicUsed by:723
Symbol 715 GraphicUsed by:723
Symbol 716 GraphicUsed by:720
Symbol 717 EditableTextUses:86Used by:720
Symbol 718 GraphicUsed by:720
Symbol 719 GraphicUsed by:720
Symbol 720 ButtonUses:716 717 718 719Used by:723
Symbol 721 EditableTextUses:43Used by:723
Symbol 722 GraphicUsed by:723
Symbol 723 MovieClip {DailyLife_fla.mc_sickview_153}Uses:714 54 47 66 61 715 720 721 617 134 722Used by:971
Symbol 724 GraphicUsed by:732
Symbol 725 GraphicUsed by:732 785
Symbol 726 ButtonUses:138 621 69 70Used by:732
Symbol 727 ButtonUses:138 651 69 70Used by:732
Symbol 728 EditableTextUses:43Used by:732
Symbol 729 EditableTextUses:43Used by:732
Symbol 730 GraphicUsed by:732
Symbol 731 GraphicUsed by:732
Symbol 732 MovieClip {CHosWorkScreen}Uses:724 54 47 66 61 725 726 727 728 729 730 134 731Used by:971
Symbol 733 GraphicUsed by:737
Symbol 734 ButtonUses:138 658 69 70Used by:737
Symbol 735 ButtonUses:138 621 69 70Used by:737
Symbol 736 GraphicUsed by:737
Symbol 737 MovieClip {CHosJobScreen}Uses:733 657 610 734 735 668 736Used by:971
Symbol 738 GraphicUsed by:751
Symbol 739 GraphicUsed by:743 745 747
Symbol 740 TextUses:43Used by:743
Symbol 741 GraphicUsed by:743 745 747
Symbol 742 GraphicUsed by:743 745 747
Symbol 743 ButtonUses:739 740 741 742Used by:751
Symbol 744 TextUses:43Used by:745
Symbol 745 ButtonUses:739 744 741 742Used by:751
Symbol 746 TextUses:43Used by:747
Symbol 747 ButtonUses:739 746 741 742Used by:751
Symbol 748 ButtonUses:138 635 69 70Used by:751
Symbol 749 ButtonUses:138 294 69 70Used by:751
Symbol 750 GraphicUsed by:751
Symbol 751 MovieClip {CCollageScreen}Uses:738 47 66 61 54 610 743 745 747 748 749 134 750Used by:971
Symbol 752 GraphicUsed by:763
Symbol 753 TextUses:86Used by:754
Symbol 754 ButtonUses:138 753 69 70Used by:763
Symbol 755 ButtonUses:138 621 69 70Used by:763
Symbol 756 EditableTextUses:86Used by:761
Symbol 757 EditableTextUses:86Used by:761
Symbol 758 EditableTextUses:86Used by:761
Symbol 759 EditableTextUses:86Used by:761
Symbol 760 EditableTextUses:86Used by:761
Symbol 761 MovieClip {CProdi}Uses:662 756 757 758 759 760Used by:763 971
Symbol 762 GraphicUsed by:763
Symbol 763 MovieClip {CEnrollScreen}Uses:752 657 610 754 755 761 762Used by:971
Symbol 764 GraphicUsed by:777
Symbol 765 GraphicUsed by:777
Symbol 766 EditableTextUses:43Used by:777
Symbol 767 TextUses:86Used by:768
Symbol 768 ButtonUses:138 767 69 70Used by:777
Symbol 769 EditableTextUses:43Used by:777
Symbol 770 GraphicUsed by:777
Symbol 771 EditableTextUses:43Used by:777
Symbol 772 EditableTextUses:43Used by:777
Symbol 773 EditableTextUses:43Used by:777
Symbol 774 GraphicUsed by:777
Symbol 775 EditableTextUses:43Used by:777
Symbol 776 GraphicUsed by:777
Symbol 777 MovieClip {CStudyScreen}Uses:764 54 47 66 61 765 766 768 622 769 770 134 771 772 773 774 775 776Used by:971
Symbol 778 GraphicUsed by:785
Symbol 779 ButtonUses:138 621 69 70Used by:785
Symbol 780 ButtonUses:138 651 69 70Used by:785
Symbol 781 EditableTextUses:43Used by:785
Symbol 782 EditableTextUses:43Used by:785
Symbol 783 GraphicUsed by:785
Symbol 784 GraphicUsed by:785
Symbol 785 MovieClip {CWorkStudyScreen}Uses:778 54 47 66 61 725 779 780 781 782 783 134 784Used by:971
Symbol 786 GraphicUsed by:790
Symbol 787 ButtonUses:138 658 69 70Used by:790
Symbol 788 ButtonUses:138 621 69 70Used by:790
Symbol 789 GraphicUsed by:790
Symbol 790 MovieClip {CJobStudyScreen}Uses:786 657 610 787 788 668 789Used by:971
Symbol 791 GraphicUsed by:797
Symbol 792 ButtonUses:138 633 69 70Used by:797
Symbol 793 ButtonUses:138 635 69 70Used by:797
Symbol 794 GraphicUsed by:795
Symbol 795 ButtonUses:138 294 69 794Used by:797
Symbol 796 GraphicUsed by:797 810
Symbol 797 MovieClip {COfficeScreen}Uses:791 61 54 66 47 610 792 793 795 134 796Used by:971
Symbol 798 GraphicUsed by:806
Symbol 799 GraphicUsed by:806
Symbol 800 ButtonUses:138 651 69 70Used by:806
Symbol 801 ButtonUses:138 621 69 70Used by:806
Symbol 802 EditableTextUses:43Used by:806
Symbol 803 EditableTextUses:43Used by:806
Symbol 804 GraphicUsed by:806
Symbol 805 GraphicUsed by:806
Symbol 806 MovieClip {CWorkOfficeScreen}Uses:798 47 66 54 61 799 800 801 802 803 804 134 805Used by:971
Symbol 807 GraphicUsed by:810
Symbol 808 ButtonUses:138 658 69 70Used by:810
Symbol 809 ButtonUses:138 621 69 70Used by:810
Symbol 810 MovieClip {CJobOfficeScreen}Uses:807 657 610 808 809 668 796Used by:971
Symbol 811 GraphicUsed by:822
Symbol 812 GraphicUsed by:822
Symbol 813 TextUses:43Used by:814
Symbol 814 ButtonUses:138 813 69 70Used by:822
Symbol 815 ButtonUses:138 633 69 70Used by:822
Symbol 816 ButtonUses:138 635 69 70Used by:822
Symbol 817 GraphicUsed by:820
Symbol 818 GraphicUsed by:820
Symbol 819 GraphicUsed by:820
Symbol 820 ButtonUses:817 294 818 819Used by:822
Symbol 821 GraphicUsed by:822
Symbol 822 MovieClip {CBankScreen}Uses:811 61 54 66 47 812 814 815 816 820 134 821Used by:971
Symbol 823 GraphicUsed by:833
Symbol 824 TextUses:86Used by:825
Symbol 825 ButtonUses:138 824 69 70Used by:833
Symbol 826 ButtonUses:138 621 69 70Used by:833
Symbol 827 EditableTextUses:86Used by:829
Symbol 828 EditableTextUses:86Used by:829
Symbol 829 MovieClip {CMcService}Uses:662 827 828Used by:833 971
Symbol 830 TextUses:86Used by:833
Symbol 831 EditableTextUses:86Used by:833
Symbol 832 GraphicUsed by:833
Symbol 833 MovieClip {CBankServiceScreen}Uses:823 657 610 825 826 829 830 831 832Used by:971
Symbol 834 GraphicUsed by:842
Symbol 835 GraphicUsed by:842
Symbol 836 ButtonUses:138 621 69 70Used by:842
Symbol 837 ButtonUses:138 651 69 70Used by:842
Symbol 838 EditableTextUses:43Used by:842
Symbol 839 EditableTextUses:43Used by:842
Symbol 840 GraphicUsed by:842
Symbol 841 GraphicUsed by:842
Symbol 842 MovieClip {CBankWorkScreen}Uses:834 47 66 54 61 835 836 837 838 839 840 134 841Used by:971
Symbol 843 GraphicUsed by:847
Symbol 844 ButtonUses:138 658 69 70Used by:847
Symbol 845 ButtonUses:138 621 69 70Used by:847
Symbol 846 GraphicUsed by:847
Symbol 847 MovieClip {CBankJobScreen}Uses:843 657 610 844 845 668 846Used by:971
Symbol 848 GraphicUsed by:852
Symbol 849 ButtonUses:138 624 69 70Used by:852
Symbol 850 ButtonUses:138 626 69 70Used by:852
Symbol 851 GraphicUsed by:852
Symbol 852 MovieClip {CLuxApartemenScreen}Uses:848 61 54 66 47 610 849 850 622 134 851Used by:971
Symbol 853 GraphicUsed by:862
Symbol 854 GraphicUsed by:862
Symbol 855 EditableTextUses:43Used by:862
Symbol 856 GraphicUsed by:859
Symbol 857 GraphicUsed by:859
Symbol 858 GraphicUsed by:859
Symbol 859 ButtonUses:856 615 857 858Used by:862
Symbol 860 ButtonUses:138 613 69 70Used by:862
Symbol 861 GraphicUsed by:862
Symbol 862 MovieClip {CLuxApartemenViewScreen}Uses:853 61 54 66 47 854 855 617 859 860 134 861Used by:971
Symbol 863 GraphicUsed by:876
Symbol 864 GraphicUsed by:868
Symbol 865 TextUses:43Used by:868
Symbol 866 GraphicUsed by:868
Symbol 867 GraphicUsed by:868
Symbol 868 ButtonUses:864 865 866 867Used by:876
Symbol 869 GraphicUsed by:873
Symbol 870 TextUses:43Used by:873
Symbol 871 GraphicUsed by:873
Symbol 872 GraphicUsed by:873
Symbol 873 ButtonUses:869 870 871 872Used by:876
Symbol 874 ButtonUses:138 294 69 70Used by:876
Symbol 875 GraphicUsed by:876
Symbol 876 MovieClip {CTheaterScreen}Uses:863 61 54 66 47 610 868 873 874 134 875Used by:971
Symbol 877 GraphicUsed by:879
Symbol 878 EditableTextUses:43Used by:879
Symbol 879 MovieClip {CMovieScreen}Uses:877 878 617 134Used by:971
Symbol 880 GraphicUsed by:886
Symbol 881 GraphicUsed by:886
Symbol 882 TextUses:86Used by:883
Symbol 883 ButtonUses:138 882 69 70Used by:886
Symbol 884 ButtonUses:138 621 69 70Used by:886
Symbol 885 GraphicUsed by:886
Symbol 886 MovieClip {CPubScreen}Uses:880 61 54 66 47 881 883 884 134 885Used by:971
Symbol 887 GraphicUsed by:894
Symbol 888 ButtonUses:138 621 69 70Used by:894
Symbol 889 TextUses:86Used by:890
Symbol 890 ButtonUses:138 889 69 70Used by:894
Symbol 891 TextUses:86Used by:892
Symbol 892 ButtonUses:138 891 69 70Used by:894
Symbol 893 EditableTextUses:43Used by:894
Symbol 894 MovieClip {CGoInsideScreen}Uses:887 888 890 892 893 617 47 54 61 66 134Used by:971
Symbol 895 GraphicUsed by:900
Symbol 896 ButtonUses:138 633 69 70Used by:900
Symbol 897 ButtonUses:138 635 69 70Used by:900
Symbol 898 ButtonUses:138 294 69 70Used by:900
Symbol 899 GraphicUsed by:900
Symbol 900 MovieClip {CFactoryScreen}Uses:895 61 54 66 47 610 896 897 898 134 899Used by:971
Symbol 901 GraphicUsed by:909
Symbol 902 GraphicUsed by:909
Symbol 903 ButtonUses:138 621 69 70Used by:909
Symbol 904 ButtonUses:138 651 69 70Used by:909
Symbol 905 EditableTextUses:43Used by:909
Symbol 906 EditableTextUses:43Used by:909
Symbol 907 GraphicUsed by:909
Symbol 908 GraphicUsed by:909
Symbol 909 MovieClip {CFactoryWorkScreen}Uses:901 47 66 54 61 902 903 904 905 906 907 134 908Used by:971
Symbol 910 GraphicUsed by:914
Symbol 911 ButtonUses:138 658 69 70Used by:914
Symbol 912 ButtonUses:138 621 69 70Used by:914
Symbol 913 GraphicUsed by:914
Symbol 914 MovieClip {CFactoryJobScreen}Uses:910 657 610 911 912 668 913Used by:971
Symbol 915 GraphicUsed by:936
Symbol 916 GraphicUsed by:936
Symbol 917 TextUses:43Used by:918
Symbol 918 ButtonUses:138 917 69 70Used by:936
Symbol 919 TextUses:43Used by:920
Symbol 920 ButtonUses:138 919 69 70Used by:936
Symbol 921 EditableTextUses:86Used by:936
Symbol 922 BitmapUsed by:923
Symbol 923 GraphicUses:922Used by:925
Symbol 924 TextUses:43Used by:925
Symbol 925 ButtonUses:138 923 924 69 70Used by:936
Symbol 926 TextUses:43Used by:927
Symbol 927 ButtonUses:138 926 69 70Used by:936
Symbol 928 TextUses:86Used by:936
Symbol 929 TextUses:43Used by:930
Symbol 930 ButtonUses:138 929 69 70Used by:936
Symbol 931 EditableTextUses:86Used by:936
Symbol 932 GraphicUsed by:936
Symbol 933 EditableTextUses:86Used by:936
Symbol 934 EditableTextUses:86Used by:936
Symbol 935 EditableTextUses:86Used by:936
Symbol 936 MovieClip {CWinOrLoseScreen}Uses:915 916 918 920 921 925 927 928 930 931 932 933 934 935Used by:971
Symbol 937 TextUses:86Used by:941
Symbol 938 ButtonUses:138 557 69 70Used by:941
Symbol 939 TextUses:86Used by:940
Symbol 940 ButtonUses:138 939 69 70Used by:941
Symbol 941 MovieClip {CEndScreen}Uses:259 252 937 938 940Used by:971
Symbol 942 GraphicUsed by:948
Symbol 943 EditableTextUses:86Used by:948
Symbol 944 EditableTextUses:86Used by:948
Symbol 945 EditableTextUses:86Used by:948
Symbol 946 FontUsed by:947
Symbol 947 EditableTextUses:946Used by:948
Symbol 948 MovieClip {CMcInfoText}Uses:942 943 944 945 947Used by:971
Symbol 949 GraphicUsed by:954
Symbol 950 EditableTextUses:86Used by:954
Symbol 951 EditableTextUses:86Used by:954
Symbol 952 EditableTextUses:86Used by:954
Symbol 953 EditableTextUses:86Used by:954
Symbol 954 MovieClip {CMcPopText}Uses:949 950 951 952 953Used by:971
Symbol 955 Sound {CSLose}Used by:970
Symbol 956 Sound {CSWin}Used by:970
Symbol 957 Sound {CSBuilding}Used by:970
Symbol 958 Sound {CSWorkFactory}Used by:970
Symbol 959 Sound {CSEnterCheapAp}Used by:970
Symbol 960 Sound {CSEnterPub}Used by:970
Symbol 961 Sound {CSEnterTheatre}Used by:970
Symbol 962 Sound {CSMainMenu}Used by:970
Symbol 963 Sound {CSGame}Used by:970
Symbol 964 Sound {CSInsidePub}Used by:970
Symbol 965 Sound {CSInsideOffice}Used by:970
Symbol 966 Sound {CSWork}Used by:970
Symbol 967 Sound {CSTransaction}Used by:970
Symbol 968 Sound {CSEat}Used by:970
Symbol 969 Sound {CSPolice}Used by:970
Symbol 970 MovieClipUses:955 956 957 958 959 960 961 962 963 964 965 966 967 968 969Used by:971
Symbol 971 MovieClipUses:261 292 304 505 555 561 168 608 619 629 639 645 655 670 678 691 701 707 713 723 732 737 751 763 777 785 790 797 806 810 822 833 842 847 852 862 876 879 886 894 900 909 914 936 154 941 160 689 668 761 829 948 954 970Used by:Timeline
Streaming Sound 1Used by:Symbol 39 MovieClip {DailyLife_fla.MainTitling_256}

Instance Names

"progressBar"Frame 1Symbol 258 MovieClip {DailyLife_fla.progressbar_1}
"btLogo"Symbol 39 MovieClip {DailyLife_fla.MainTitling_256} Frame 1Symbol 3 Button
"btPlayGames"Symbol 39 MovieClip {DailyLife_fla.MainTitling_256} Frame 1Symbol 10 Button
"mcTitling"Symbol 40 MovieClip {CTitlingScreen} Frame 2Symbol 39 MovieClip {DailyLife_fla.MainTitling_256}
"tx_name"Symbol 47 MovieClip {DailyLife_fla.person01_97} Frame 1Symbol 44 EditableText
"tx_name"Symbol 54 MovieClip {DailyLife_fla.person02_98} Frame 1Symbol 49 EditableText
"tx_name"Symbol 61 MovieClip {DailyLife_fla.person03_99} Frame 1Symbol 56 EditableText
"tx_name"Symbol 66 MovieClip {DailyLife_fla.person04_100} Frame 1Symbol 63 EditableText
"co"Symbol 134 MovieClip {CAvatar} Frame 1Symbol 110 MovieClip
"ce"Symbol 134 MovieClip {CAvatar} Frame 1Symbol 126 MovieClip
"balloon"Symbol 134 MovieClip {CAvatar} Frame 1Symbol 133 MovieClip {DailyLife_fla.baloon_78}
"person1"Symbol 135 MovieClip {CChatScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person2"Symbol 135 MovieClip {CChatScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person3"Symbol 135 MovieClip {CChatScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"person4"Symbol 135 MovieClip {CChatScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"bt_brag"Symbol 135 MovieClip {CChatScreen} Frame 1Symbol 71 Button
"bt_flirt"Symbol 135 MovieClip {CChatScreen} Frame 1Symbol 73 Button
"bt_kiss"Symbol 135 MovieClip {CChatScreen} Frame 1Symbol 75 Button
"bt_talk"Symbol 135 MovieClip {CChatScreen} Frame 1Symbol 77 Button
"tx_clock"Symbol 135 MovieClip {CChatScreen} Frame 1Symbol 78 EditableText
"relbar"Symbol 135 MovieClip {CChatScreen} Frame 1Symbol 92 MovieClip
"bt_close"Symbol 135 MovieClip {CChatScreen} Frame 1Symbol 94 Button
"myAvatar"Symbol 135 MovieClip {CChatScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"name_tf"Symbol 149 MovieClip {DailyLife_fla.submitbox_240} Frame 1Symbol 144 EditableText
"btn_submit"Symbol 149 MovieClip {DailyLife_fla.submitbox_240} Frame 1Symbol 146 Button
"yourScore"Symbol 149 MovieClip {DailyLife_fla.submitbox_240} Frame 1Symbol 148 EditableText
"btn_menu"Symbol 149 MovieClip {DailyLife_fla.submitbox_240} Frame 1Symbol 140 Button
"btContinue"Symbol 154 MovieClip {CHighScoreScreen} Frame 1Symbol 140 Button
"submitbox"Symbol 154 MovieClip {CHighScoreScreen} Frame 1Symbol 149 MovieClip {DailyLife_fla.submitbox_240}
"btPlayMoreGames"Symbol 154 MovieClip {CHighScoreScreen} Frame 1Symbol 151 Button
"txError"Symbol 154 MovieClip {CHighScoreScreen} Frame 1Symbol 153 EditableText
"textFoodName"Symbol 160 MovieClip {CMcFoodMenu} Frame 1Symbol 155 EditableText
"textPrice"Symbol 160 MovieClip {CMcFoodMenu} Frame 1Symbol 156 EditableText
"separator1"Symbol 160 MovieClip {CMcFoodMenu} Frame 1Symbol 157 EditableText
"bg"Symbol 160 MovieClip {CMcFoodMenu} Frame 1Symbol 159 MovieClip
"btOk"Symbol 168 MovieClip {mcDialog} Frame 1Symbol 163 Button
"btNo"Symbol 168 MovieClip {mcDialog} Frame 1Symbol 165 Button
"txContent"Symbol 168 MovieClip {mcDialog} Frame 1Symbol 166 EditableText
"txTitle"Symbol 168 MovieClip {mcDialog} Frame 1Symbol 167 EditableText
"btSkip"Symbol 183 MovieClip {CCTutorial} Frame 1Symbol 174 Button
"btNext"Symbol 183 MovieClip {CCTutorial} Frame 1Symbol 176 Button
"btPrev"Symbol 183 MovieClip {CCTutorial} Frame 1Symbol 178 Button
"bt_right"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 188 Button
"bt_left"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 192 Button
"bt4"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 195 Button
"bt1"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 195 Button
"bt2"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 195 Button
"bt3"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 195 Button
"bt5"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 195 Button
"bt6"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 195 Button
"bt7"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 195 Button
"bt8"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 195 Button
"bt9"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 195 Button
"bt10"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 195 Button
"name2"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 196 EditableText
"name3"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 197 EditableText
"name4"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 198 EditableText
"name1"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 199 EditableText
"nbt1"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 195 Button
"nbt2"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 195 Button
"nbt3"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 195 Button
"nbt4"Symbol 212 MovieClip {CHandPhoneScreen} Frame 1Symbol 195 Button
"textProgressBar"Symbol 258 MovieClip {DailyLife_fla.progressbar_1} Frame 1Symbol 256 EditableText
"textprogressbar"Symbol 261 MovieClip {CPreLoaderScreen} Frame 1Symbol 258 MovieClip {DailyLife_fla.progressbar_1}
"bt_play"Symbol 292 MovieClip {CMainMenuScreen} Frame 1Symbol 264 Button
"bt_highscore"Symbol 292 MovieClip {CMainMenuScreen} Frame 1Symbol 267 Button
"bt_moregame"Symbol 292 MovieClip {CMainMenuScreen} Frame 1Symbol 151 Button
"bt_add"Symbol 292 MovieClip {CMainMenuScreen} Frame 1Symbol 269 Button
"teksVer"Symbol 292 MovieClip {CMainMenuScreen} Frame 1Symbol 270 EditableText
"bt_credits"Symbol 292 MovieClip {CMainMenuScreen} Frame 1Symbol 291 Button
"bt_back"Symbol 304 MovieClip {CPlayScreen} Frame 1Symbol 295 Button
"bt_playgame"Symbol 304 MovieClip {CPlayScreen} Frame 1Symbol 297 Button
"bt_chara01"Symbol 304 MovieClip {CPlayScreen} Frame 1Symbol 300 MovieClip
"bt_chara02"Symbol 304 MovieClip {CPlayScreen} Frame 1Symbol 303 MovieClip
"dude"Symbol 415 MovieClip {DailyLife_fla.mc_avatar1_36} Frame 1Symbol 414 MovieClip
"dude"Symbol 434 MovieClip {DailyLife_fla.mc_avatar2_38} Frame 1Symbol 433 MovieClip
"teksHealth"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 306 EditableText
"bt_office"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 313 Button
"bt_university"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 320 Button
"bt_fastfood2"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 325 Button
"bt_bank"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 329 Button
"bt_lux_apartemen"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 334 Button
"bt_theatre"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 338 Button
"bt_nightclub"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 344 Button
"bt_fastfood3"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 348 Button
"bt_factory"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 354 Button
"bbt_office"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 357 Button
"bbt_university"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 361 Button
"bbt_fastfood2"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 365 Button
"bbt_bank"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 369 Button
"bbt_lux_apartemen"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 372 Button
"bbt_theatre"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 375 Button
"bbt_nightclub"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 379 Button
"bbt_fastfood3"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 383 Button
"bbt_factory"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 387 Button
"mcBus2"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 396 MovieClip
"mcAvatar1"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 415 MovieClip {DailyLife_fla.mc_avatar1_36}
"mcAvatar2"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 434 MovieClip {DailyLife_fla.mc_avatar2_38}
"mcBus1"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 443 MovieClip
"bt_home"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 447 Button
"bt_fastfood1"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 451 Button
"bt_mall"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 456 Button
"bt_hospital"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 460 Button
"bbt_home"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 463 Button
"bbt_fastfood1"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 467 Button
"bbt_mall"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 471 Button
"bbt_hospital"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 474 Button
"bt_phone"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 479 Button
"bt_status"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 481 Button
"bt_quit"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 486 Button
"tx_clock"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 488 EditableText
"tx_day"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 489 EditableText
"tx_money"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 490 EditableText
"bt_objectives"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 496 Button
"mc_health"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 502 MovieClip
"mc_task"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 251 MovieClip {fl.controls.TextArea}
"myAvatar"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"mcPhone"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 212 MovieClip {CHandPhoneScreen}
"txCheat"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 503 EditableText
"mcTutorial"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 183 MovieClip {CCTutorial}
"mcMute"Symbol 505 MovieClip {CGameScreen} Frame 1Symbol 171 MovieClip {CMuteButton}
"mcFotoCowok"Symbol 541 MovieClip {DailyLife_fla.foto_94} Frame 1Symbol 538 MovieClip
"mcFotoCewek"Symbol 541 MovieClip {DailyLife_fla.foto_94} Frame 1Symbol 540 MovieClip
"mcFotoCewek"Symbol 541 MovieClip {DailyLife_fla.foto_94} Frame 2Symbol 540 MovieClip
"bt_backstatus"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 507 Button
"mcHappiness"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 515 MovieClip
"mcKnowledge"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 521 MovieClip
"mcCareer"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 527 MovieClip
"mcWealth"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 533 MovieClip
"tx_score"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 535 EditableText
"mc_foto"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 541 MovieClip {DailyLife_fla.foto_94}
"tx_knowledge"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 542 EditableText
"tx_career"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 543 EditableText
"tx_wealth"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 544 EditableText
"tx_happiness"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 545 EditableText
"mcperson1"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"mcperson2"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"mcperson3"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"mcperson4"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"statusperson1"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 553 MovieClip
"statusperson2"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 553 MovieClip
"statusperson3"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 553 MovieClip
"statusperson4"Symbol 555 MovieClip {CStatusScreen} Frame 1Symbol 553 MovieClip
"bt_menu"Symbol 561 MovieClip {CCreditsScreen} Frame 1Symbol 558 Button
"bt_playgame"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 297 Button
"bt_backstatus"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 507 Button
"mc_foto"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 541 MovieClip {DailyLife_fla.foto_94}
"cWealth"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 565 MovieClip
"txPosition"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 575 EditableText
"txCareer"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 576 EditableText
"txDay"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 577 EditableText
"txKnowledge"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 578 EditableText
"txMoney"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 579 EditableText
"txWealth"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 580 EditableText
"txHappiness"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 581 EditableText
"txEducation"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 582 EditableText
"txGood"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 583 EditableText
"cKnowledge"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 565 MovieClip
"cMoney"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 565 MovieClip
"cCareer"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 565 MovieClip
"cHappiness"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 565 MovieClip
"cPosition"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 565 MovieClip
"cEducation"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 565 MovieClip
"cGoods"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 565 MovieClip
"txObj"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 584 EditableText
"lbFriend1"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 585 EditableText
"txFriend1"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 586 EditableText
"cFriend1"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 565 MovieClip
"lbFriend2"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 587 EditableText
"txFriend2"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 588 EditableText
"cFriend2"Symbol 608 MovieClip {CMissionScreen} Frame 1Symbol 565 MovieClip
"person3"Symbol 619 MovieClip {CRoomViewScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"person2"Symbol 619 MovieClip {CRoomViewScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person1"Symbol 619 MovieClip {CRoomViewScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 619 MovieClip {CRoomViewScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"tx_clock"Symbol 619 MovieClip {CRoomViewScreen} Frame 1Symbol 612 EditableText
"bt_sleep"Symbol 619 MovieClip {CRoomViewScreen} Frame 1Symbol 614 Button
"bt_map"Symbol 619 MovieClip {CRoomViewScreen} Frame 1Symbol 616 Button
"myAvatar"Symbol 619 MovieClip {CRoomViewScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"bt_backcol"Symbol 629 MovieClip {CChepApartemenScreen} Frame 1Symbol 622 Button
"person3"Symbol 629 MovieClip {CChepApartemenScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"person2"Symbol 629 MovieClip {CChepApartemenScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person4"Symbol 629 MovieClip {CChepApartemenScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person1"Symbol 629 MovieClip {CChepApartemenScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"myAvatar"Symbol 629 MovieClip {CChepApartemenScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"bt_rent"Symbol 629 MovieClip {CChepApartemenScreen} Frame 1Symbol 625 Button
"bt_myroom"Symbol 629 MovieClip {CChepApartemenScreen} Frame 1Symbol 627 Button
"person2"Symbol 639 MovieClip {CFastFoodScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person1"Symbol 639 MovieClip {CFastFoodScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 639 MovieClip {CFastFoodScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person3"Symbol 639 MovieClip {CFastFoodScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"bt_buymeal"Symbol 639 MovieClip {CFastFoodScreen} Frame 1Symbol 632 Button
"bt_workff"Symbol 639 MovieClip {CFastFoodScreen} Frame 1Symbol 634 Button
"bt_jobff"Symbol 639 MovieClip {CFastFoodScreen} Frame 1Symbol 636 Button
"bt_backff"Symbol 639 MovieClip {CFastFoodScreen} Frame 1Symbol 637 Button
"myAvatar"Symbol 639 MovieClip {CFastFoodScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"person2"Symbol 645 MovieClip {CMealMenuScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person1"Symbol 645 MovieClip {CMealMenuScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 645 MovieClip {CMealMenuScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person3"Symbol 645 MovieClip {CMealMenuScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"bt_buymenu"Symbol 645 MovieClip {CMealMenuScreen} Frame 1Symbol 642 Button
"bt_backmenu"Symbol 645 MovieClip {CMealMenuScreen} Frame 1Symbol 643 Button
"myAvatar"Symbol 645 MovieClip {CMealMenuScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"person2"Symbol 655 MovieClip {CWorkffScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person1"Symbol 655 MovieClip {CWorkffScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 655 MovieClip {CWorkffScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person3"Symbol 655 MovieClip {CWorkffScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"tx_clock"Symbol 655 MovieClip {CWorkffScreen} Frame 1Symbol 648 EditableText
"tx_moneygained"Symbol 655 MovieClip {CWorkffScreen} Frame 1Symbol 649 EditableText
"bt_backworkff"Symbol 655 MovieClip {CWorkffScreen} Frame 1Symbol 650 Button
"bt_workff"Symbol 655 MovieClip {CWorkffScreen} Frame 1Symbol 652 Button
"myAvatar"Symbol 655 MovieClip {CWorkffScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"bg"Symbol 668 MovieClip {CJobItem2} Frame 1Symbol 662 MovieClip
"textJobTitle"Symbol 668 MovieClip {CJobItem2} Frame 1Symbol 663 EditableText
"textJobReq"Symbol 668 MovieClip {CJobItem2} Frame 1Symbol 664 EditableText
"separator1"Symbol 668 MovieClip {CJobItem2} Frame 1Symbol 665 EditableText
"separator2"Symbol 668 MovieClip {CJobItem2} Frame 1Symbol 666 EditableText
"textSalary"Symbol 668 MovieClip {CJobItem2} Frame 1Symbol 667 EditableText
"bt_applyjob"Symbol 670 MovieClip {CJobffScreen} Frame 1Symbol 659 Button
"bt_backjoblist"Symbol 670 MovieClip {CJobffScreen} Frame 1Symbol 660 Button
"person2"Symbol 678 MovieClip {CMallScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person1"Symbol 678 MovieClip {CMallScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 678 MovieClip {CMallScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person3"Symbol 678 MovieClip {CMallScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"bt_shoping"Symbol 678 MovieClip {CMallScreen} Frame 1Symbol 673 Button
"bt_workmall"Symbol 678 MovieClip {CMallScreen} Frame 1Symbol 674 Button
"bt_jobmall"Symbol 678 MovieClip {CMallScreen} Frame 1Symbol 675 Button
"bt_backmall"Symbol 678 MovieClip {CMallScreen} Frame 1Symbol 676 Button
"myAvatar"Symbol 678 MovieClip {CMallScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"bg"Symbol 689 MovieClip {CGoodsItem} Frame 1Symbol 159 MovieClip
"textName"Symbol 689 MovieClip {CGoodsItem} Frame 1Symbol 685 EditableText
"textPrice"Symbol 689 MovieClip {CGoodsItem} Frame 1Symbol 686 EditableText
"separator1"Symbol 689 MovieClip {CGoodsItem} Frame 1Symbol 687 EditableText
"textOwned"Symbol 689 MovieClip {CGoodsItem} Frame 1Symbol 688 EditableText
"person2"Symbol 691 MovieClip {CShoppingScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person1"Symbol 691 MovieClip {CShoppingScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 691 MovieClip {CShoppingScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person3"Symbol 691 MovieClip {CShoppingScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"bt_buyshoping"Symbol 691 MovieClip {CShoppingScreen} Frame 1Symbol 683 Button
"bt_backshoping"Symbol 691 MovieClip {CShoppingScreen} Frame 1Symbol 684 Button
"myAvatar"Symbol 691 MovieClip {CShoppingScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"person2"Symbol 701 MovieClip {CWorkMallScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person1"Symbol 701 MovieClip {CWorkMallScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person3"Symbol 701 MovieClip {CWorkMallScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"person4"Symbol 701 MovieClip {CWorkMallScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"bt_workmall"Symbol 701 MovieClip {CWorkMallScreen} Frame 1Symbol 695 Button
"bt_backwork"Symbol 701 MovieClip {CWorkMallScreen} Frame 1Symbol 696 Button
"tx_clock"Symbol 701 MovieClip {CWorkMallScreen} Frame 1Symbol 697 EditableText
"tx_moneygained"Symbol 701 MovieClip {CWorkMallScreen} Frame 1Symbol 698 EditableText
"myAvatar"Symbol 701 MovieClip {CWorkMallScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"bt_backjobmall"Symbol 707 MovieClip {CJobMallScreen} Frame 1Symbol 704 Button
"bt_applyjobmall"Symbol 707 MovieClip {CJobMallScreen} Frame 1Symbol 705 Button
"person1"Symbol 713 MovieClip {CHospitalScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 713 MovieClip {CHospitalScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person3"Symbol 713 MovieClip {CHospitalScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"person2"Symbol 713 MovieClip {CHospitalScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"bt_hoswork"Symbol 713 MovieClip {CHospitalScreen} Frame 1Symbol 709 Button
"bt_hosjob"Symbol 713 MovieClip {CHospitalScreen} Frame 1Symbol 710 Button
"bt_hosback"Symbol 713 MovieClip {CHospitalScreen} Frame 1Symbol 711 Button
"myAvatar"Symbol 713 MovieClip {CHospitalScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"person2"Symbol 723 MovieClip {DailyLife_fla.mc_sickview_153} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person1"Symbol 723 MovieClip {DailyLife_fla.mc_sickview_153} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 723 MovieClip {DailyLife_fla.mc_sickview_153} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person3"Symbol 723 MovieClip {DailyLife_fla.mc_sickview_153} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"bt_bill"Symbol 723 MovieClip {DailyLife_fla.mc_sickview_153} Frame 1Symbol 720 Button
"tx_clock"Symbol 723 MovieClip {DailyLife_fla.mc_sickview_153} Frame 1Symbol 721 EditableText
"myAvatar"Symbol 723 MovieClip {DailyLife_fla.mc_sickview_153} Frame 1Symbol 134 MovieClip {CAvatar}
"person2"Symbol 732 MovieClip {CHosWorkScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person1"Symbol 732 MovieClip {CHosWorkScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 732 MovieClip {CHosWorkScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person3"Symbol 732 MovieClip {CHosWorkScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"bt_backworkhos"Symbol 732 MovieClip {CHosWorkScreen} Frame 1Symbol 726 Button
"bt_workhos"Symbol 732 MovieClip {CHosWorkScreen} Frame 1Symbol 727 Button
"tx_clock"Symbol 732 MovieClip {CHosWorkScreen} Frame 1Symbol 728 EditableText
"tx_moneygained"Symbol 732 MovieClip {CHosWorkScreen} Frame 1Symbol 729 EditableText
"myAvatar"Symbol 732 MovieClip {CHosWorkScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"bt_applyjobhos"Symbol 737 MovieClip {CHosJobScreen} Frame 1Symbol 734 Button
"bt_backjobhos"Symbol 737 MovieClip {CHosJobScreen} Frame 1Symbol 735 Button
"person1"Symbol 751 MovieClip {CCollageScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 751 MovieClip {CCollageScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person3"Symbol 751 MovieClip {CCollageScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"person2"Symbol 751 MovieClip {CCollageScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"bt_collenrol"Symbol 751 MovieClip {CCollageScreen} Frame 1Symbol 743 Button
"bt_collstudy"Symbol 751 MovieClip {CCollageScreen} Frame 1Symbol 745 Button
"bt_collwork"Symbol 751 MovieClip {CCollageScreen} Frame 1Symbol 747 Button
"bt_colljob"Symbol 751 MovieClip {CCollageScreen} Frame 1Symbol 748 Button
"bt_collback"Symbol 751 MovieClip {CCollageScreen} Frame 1Symbol 749 Button
"myAvatar"Symbol 751 MovieClip {CCollageScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"bg"Symbol 761 MovieClip {CProdi} Frame 1Symbol 662 MovieClip
"textFakultas"Symbol 761 MovieClip {CProdi} Frame 1Symbol 756 EditableText
"textProdi"Symbol 761 MovieClip {CProdi} Frame 1Symbol 757 EditableText
"separator1"Symbol 761 MovieClip {CProdi} Frame 1Symbol 758 EditableText
"separator2"Symbol 761 MovieClip {CProdi} Frame 1Symbol 759 EditableText
"textFee"Symbol 761 MovieClip {CProdi} Frame 1Symbol 760 EditableText
"bt_enroll"Symbol 763 MovieClip {CEnrollScreen} Frame 1Symbol 754 Button
"bt_backenroll"Symbol 763 MovieClip {CEnrollScreen} Frame 1Symbol 755 Button
"person2"Symbol 777 MovieClip {CStudyScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person1"Symbol 777 MovieClip {CStudyScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 777 MovieClip {CStudyScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person3"Symbol 777 MovieClip {CStudyScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"tx_hour"Symbol 777 MovieClip {CStudyScreen} Frame 1Symbol 766 EditableText
"bt_studycoll"Symbol 777 MovieClip {CStudyScreen} Frame 1Symbol 768 Button
"bt_backcol"Symbol 777 MovieClip {CStudyScreen} Frame 1Symbol 622 Button
"tx_clock"Symbol 777 MovieClip {CStudyScreen} Frame 1Symbol 769 EditableText
"myAvatar"Symbol 777 MovieClip {CStudyScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"tx_hourleft"Symbol 777 MovieClip {CStudyScreen} Frame 1Symbol 773 EditableText
"person2"Symbol 785 MovieClip {CWorkStudyScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person1"Symbol 785 MovieClip {CWorkStudyScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 785 MovieClip {CWorkStudyScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person3"Symbol 785 MovieClip {CWorkStudyScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"bt_backworkcoll"Symbol 785 MovieClip {CWorkStudyScreen} Frame 1Symbol 779 Button
"bt_workcoll"Symbol 785 MovieClip {CWorkStudyScreen} Frame 1Symbol 780 Button
"tx_clock"Symbol 785 MovieClip {CWorkStudyScreen} Frame 1Symbol 781 EditableText
"tx_moneygained"Symbol 785 MovieClip {CWorkStudyScreen} Frame 1Symbol 782 EditableText
"myAvatar"Symbol 785 MovieClip {CWorkStudyScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"bt_applyjobcoll"Symbol 790 MovieClip {CJobStudyScreen} Frame 1Symbol 787 Button
"bt_backjobcoll"Symbol 790 MovieClip {CJobStudyScreen} Frame 1Symbol 788 Button
"person3"Symbol 797 MovieClip {COfficeScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"person2"Symbol 797 MovieClip {COfficeScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person4"Symbol 797 MovieClip {COfficeScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person1"Symbol 797 MovieClip {COfficeScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"bt_officework"Symbol 797 MovieClip {COfficeScreen} Frame 1Symbol 792 Button
"bt_officejobapply"Symbol 797 MovieClip {COfficeScreen} Frame 1Symbol 793 Button
"bt_officeback"Symbol 797 MovieClip {COfficeScreen} Frame 1Symbol 795 Button
"myAvatar"Symbol 797 MovieClip {COfficeScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"person1"Symbol 806 MovieClip {CWorkOfficeScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 806 MovieClip {CWorkOfficeScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person2"Symbol 806 MovieClip {CWorkOfficeScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person3"Symbol 806 MovieClip {CWorkOfficeScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"bt_workoffice"Symbol 806 MovieClip {CWorkOfficeScreen} Frame 1Symbol 800 Button
"bt_backworkoff"Symbol 806 MovieClip {CWorkOfficeScreen} Frame 1Symbol 801 Button
"tx_clock"Symbol 806 MovieClip {CWorkOfficeScreen} Frame 1Symbol 802 EditableText
"tx_moneygained"Symbol 806 MovieClip {CWorkOfficeScreen} Frame 1Symbol 803 EditableText
"myAvatar"Symbol 806 MovieClip {CWorkOfficeScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"bt_applyjoblistoff"Symbol 810 MovieClip {CJobOfficeScreen} Frame 1Symbol 808 Button
"bt_backjoblistoff"Symbol 810 MovieClip {CJobOfficeScreen} Frame 1Symbol 809 Button
"person3"Symbol 822 MovieClip {CBankScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"person2"Symbol 822 MovieClip {CBankScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person4"Symbol 822 MovieClip {CBankScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person1"Symbol 822 MovieClip {CBankScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"bt_bankservice"Symbol 822 MovieClip {CBankScreen} Frame 1Symbol 814 Button
"bt_bankwork"Symbol 822 MovieClip {CBankScreen} Frame 1Symbol 815 Button
"bt_bankjobapply"Symbol 822 MovieClip {CBankScreen} Frame 1Symbol 816 Button
"bt_bankback"Symbol 822 MovieClip {CBankScreen} Frame 1Symbol 820 Button
"myAvatar"Symbol 822 MovieClip {CBankScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"bg"Symbol 829 MovieClip {CMcService} Frame 1Symbol 662 MovieClip
"textName"Symbol 829 MovieClip {CMcService} Frame 1Symbol 827 EditableText
"textExp"Symbol 829 MovieClip {CMcService} Frame 1Symbol 828 EditableText
"bt_payservice"Symbol 833 MovieClip {CBankServiceScreen} Frame 1Symbol 825 Button
"bt_backservicebank"Symbol 833 MovieClip {CBankServiceScreen} Frame 1Symbol 826 Button
"textSaving"Symbol 833 MovieClip {CBankServiceScreen} Frame 1Symbol 831 EditableText
"person1"Symbol 842 MovieClip {CBankWorkScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 842 MovieClip {CBankWorkScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person2"Symbol 842 MovieClip {CBankWorkScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person3"Symbol 842 MovieClip {CBankWorkScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"bt_backworkbank"Symbol 842 MovieClip {CBankWorkScreen} Frame 1Symbol 836 Button
"bt_workbank"Symbol 842 MovieClip {CBankWorkScreen} Frame 1Symbol 837 Button
"tx_clock"Symbol 842 MovieClip {CBankWorkScreen} Frame 1Symbol 838 EditableText
"tx_moneygained"Symbol 842 MovieClip {CBankWorkScreen} Frame 1Symbol 839 EditableText
"myAvatar"Symbol 842 MovieClip {CBankWorkScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"bt_applyjobbank"Symbol 847 MovieClip {CBankJobScreen} Frame 1Symbol 844 Button
"bt_backjobbank"Symbol 847 MovieClip {CBankJobScreen} Frame 1Symbol 845 Button
"person3"Symbol 852 MovieClip {CLuxApartemenScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"person2"Symbol 852 MovieClip {CLuxApartemenScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person4"Symbol 852 MovieClip {CLuxApartemenScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person1"Symbol 852 MovieClip {CLuxApartemenScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"bt_rentlux"Symbol 852 MovieClip {CLuxApartemenScreen} Frame 1Symbol 849 Button
"bt_myroomlux"Symbol 852 MovieClip {CLuxApartemenScreen} Frame 1Symbol 850 Button
"bt_back"Symbol 852 MovieClip {CLuxApartemenScreen} Frame 1Symbol 622 Button
"myAvatar"Symbol 852 MovieClip {CLuxApartemenScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"person3"Symbol 862 MovieClip {CLuxApartemenViewScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"person2"Symbol 862 MovieClip {CLuxApartemenViewScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person4"Symbol 862 MovieClip {CLuxApartemenViewScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person1"Symbol 862 MovieClip {CLuxApartemenViewScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"tx_clock"Symbol 862 MovieClip {CLuxApartemenViewScreen} Frame 1Symbol 855 EditableText
"bt_citymaplux"Symbol 862 MovieClip {CLuxApartemenViewScreen} Frame 1Symbol 859 Button
"bt_sleeplux"Symbol 862 MovieClip {CLuxApartemenViewScreen} Frame 1Symbol 860 Button
"myAvatar"Symbol 862 MovieClip {CLuxApartemenViewScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"person3"Symbol 876 MovieClip {CTheaterScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"person2"Symbol 876 MovieClip {CTheaterScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person4"Symbol 876 MovieClip {CTheaterScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person1"Symbol 876 MovieClip {CTheaterScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"bt_watchmovie"Symbol 876 MovieClip {CTheaterScreen} Frame 1Symbol 868 Button
"bt_buypopcorn"Symbol 876 MovieClip {CTheaterScreen} Frame 1Symbol 873 Button
"bt_backtheatre"Symbol 876 MovieClip {CTheaterScreen} Frame 1Symbol 874 Button
"myAvatar"Symbol 876 MovieClip {CTheaterScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"tx_clock"Symbol 879 MovieClip {CMovieScreen} Frame 1Symbol 878 EditableText
"myAvatar"Symbol 879 MovieClip {CMovieScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"person3"Symbol 886 MovieClip {CPubScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"person2"Symbol 886 MovieClip {CPubScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person4"Symbol 886 MovieClip {CPubScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person1"Symbol 886 MovieClip {CPubScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"bt_goinside"Symbol 886 MovieClip {CPubScreen} Frame 1Symbol 883 Button
"bt_backpub"Symbol 886 MovieClip {CPubScreen} Frame 1Symbol 884 Button
"myAvatar"Symbol 886 MovieClip {CPubScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"bt_backinsidepub"Symbol 894 MovieClip {CGoInsideScreen} Frame 1Symbol 888 Button
"bt_getdrunk"Symbol 894 MovieClip {CGoInsideScreen} Frame 1Symbol 890 Button
"bt_relax"Symbol 894 MovieClip {CGoInsideScreen} Frame 1Symbol 892 Button
"tx_clock"Symbol 894 MovieClip {CGoInsideScreen} Frame 1Symbol 893 EditableText
"person1"Symbol 894 MovieClip {CGoInsideScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person2"Symbol 894 MovieClip {CGoInsideScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person3"Symbol 894 MovieClip {CGoInsideScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"person4"Symbol 894 MovieClip {CGoInsideScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"myAvatar"Symbol 894 MovieClip {CGoInsideScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"person3"Symbol 900 MovieClip {CFactoryScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"person2"Symbol 900 MovieClip {CFactoryScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person4"Symbol 900 MovieClip {CFactoryScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person1"Symbol 900 MovieClip {CFactoryScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"bt_factorywork"Symbol 900 MovieClip {CFactoryScreen} Frame 1Symbol 896 Button
"bt_factoryjob"Symbol 900 MovieClip {CFactoryScreen} Frame 1Symbol 897 Button
"bt_factoryback"Symbol 900 MovieClip {CFactoryScreen} Frame 1Symbol 898 Button
"myAvatar"Symbol 900 MovieClip {CFactoryScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"person1"Symbol 909 MovieClip {CFactoryWorkScreen} Frame 1Symbol 47 MovieClip {DailyLife_fla.person01_97}
"person4"Symbol 909 MovieClip {CFactoryWorkScreen} Frame 1Symbol 66 MovieClip {DailyLife_fla.person04_100}
"person2"Symbol 909 MovieClip {CFactoryWorkScreen} Frame 1Symbol 54 MovieClip {DailyLife_fla.person02_98}
"person3"Symbol 909 MovieClip {CFactoryWorkScreen} Frame 1Symbol 61 MovieClip {DailyLife_fla.person03_99}
"bt_backfactorywork"Symbol 909 MovieClip {CFactoryWorkScreen} Frame 1Symbol 903 Button
"bt_workfactory"Symbol 909 MovieClip {CFactoryWorkScreen} Frame 1Symbol 904 Button
"tx_clock"Symbol 909 MovieClip {CFactoryWorkScreen} Frame 1Symbol 905 EditableText
"tx_moneygained"Symbol 909 MovieClip {CFactoryWorkScreen} Frame 1Symbol 906 EditableText
"myAvatar"Symbol 909 MovieClip {CFactoryWorkScreen} Frame 1Symbol 134 MovieClip {CAvatar}
"bt_applyjoblistfac"Symbol 914 MovieClip {CFactoryJobScreen} Frame 1Symbol 911 Button
"bt_backjobfactory"Symbol 914 MovieClip {CFactoryJobScreen} Frame 1Symbol 912 Button
"bt_submit"Symbol 936 MovieClip {CWinOrLoseScreen} Frame 1Symbol 918 Button
"bt_mainmenu"Symbol 936 MovieClip {CWinOrLoseScreen} Frame 1Symbol 920 Button
"txScore"Symbol 936 MovieClip {CWinOrLoseScreen} Frame 1Symbol 921 EditableText
"bt_sitelink"Symbol 936 MovieClip {CWinOrLoseScreen} Frame 1Symbol 925 Button
"bt_nextlevel"Symbol 936 MovieClip {CWinOrLoseScreen} Frame 1Symbol 927 Button
"bt_restart"Symbol 936 MovieClip {CWinOrLoseScreen} Frame 1Symbol 930 Button
"teksStatus"Symbol 936 MovieClip {CWinOrLoseScreen} Frame 1Symbol 931 EditableText
"teksStatus"Symbol 936 MovieClip {CWinOrLoseScreen} Frame 2Symbol 933 EditableText
"teksStatus"Symbol 936 MovieClip {CWinOrLoseScreen} Frame 3Symbol 934 EditableText
"teksKet"Symbol 936 MovieClip {CWinOrLoseScreen} Frame 3Symbol 935 EditableText
"bt_menuend"Symbol 941 MovieClip {CEndScreen} Frame 1Symbol 938 Button
"bt_playagain"Symbol 941 MovieClip {CEndScreen} Frame 1Symbol 940 Button
"line1"Symbol 948 MovieClip {CMcInfoText} Frame 1Symbol 943 EditableText
"line2"Symbol 948 MovieClip {CMcInfoText} Frame 1Symbol 944 EditableText
"line3"Symbol 948 MovieClip {CMcInfoText} Frame 1Symbol 945 EditableText
"judul"Symbol 948 MovieClip {CMcInfoText} Frame 1Symbol 947 EditableText
"line1"Symbol 954 MovieClip {CMcPopText} Frame 1Symbol 950 EditableText
"line2"Symbol 954 MovieClip {CMcPopText} Frame 1Symbol 951 EditableText
"line3"Symbol 954 MovieClip {CMcPopText} Frame 1Symbol 952 EditableText
"line4"Symbol 954 MovieClip {CMcPopText} Frame 1Symbol 953 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.

Labels

"stand"Symbol 47 MovieClip {DailyLife_fla.person01_97} Frame 1
"talk"Symbol 47 MovieClip {DailyLife_fla.person01_97} Frame 2
"stand"Symbol 54 MovieClip {DailyLife_fla.person02_98} Frame 1
"talk"Symbol 54 MovieClip {DailyLife_fla.person02_98} Frame 2
"stand"Symbol 61 MovieClip {DailyLife_fla.person03_99} Frame 1
"talk"Symbol 61 MovieClip {DailyLife_fla.person03_99} Frame 2
"stand"Symbol 66 MovieClip {DailyLife_fla.person04_100} Frame 1
"talk"Symbol 66 MovieClip {DailyLife_fla.person04_100} Frame 2




http://swfchan.com/10/45114/info.shtml
Created: 6/5 -2019 01:00:54 Last modified: 6/5 -2019 01:00:54 Server time: 22/12 -2024 12:38:25