Section 1
//_1boy014_83 (iceCream_fla._1boy014_83)
package iceCream_fla {
import flash.display.*;
public dynamic class _1boy014_83 extends MovieClip {
public function _1boy014_83(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package iceCream_fla
Section 2
//_2boy014_222 (iceCream_fla._2boy014_222)
package iceCream_fla {
import flash.display.*;
public dynamic class _2boy014_222 extends MovieClip {
public function _2boy014_222(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package iceCream_fla
Section 3
//_2girl014_75 (iceCream_fla._2girl014_75)
package iceCream_fla {
import flash.display.*;
public dynamic class _2girl014_75 extends MovieClip {
public function _2girl014_75(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package iceCream_fla
Section 4
//_33boy014_214 (iceCream_fla._33boy014_214)
package iceCream_fla {
import flash.display.*;
public dynamic class _33boy014_214 extends MovieClip {
public function _33boy014_214(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package iceCream_fla
Section 5
//_3girl0110_108 (iceCream_fla._3girl0110_108)
package iceCream_fla {
import flash.display.*;
public dynamic class _3girl0110_108 extends MovieClip {
public var leavingAnim:MovieClip;
}
}//package iceCream_fla
Section 6
//_3girl014_70 (iceCream_fla._3girl014_70)
package iceCream_fla {
import flash.display.*;
public dynamic class _3girl014_70 extends MovieClip {
public function _3girl014_70(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package iceCream_fla
Section 7
//_3girl015_61 (iceCream_fla._3girl015_61)
package iceCream_fla {
import flash.display.*;
public dynamic class _3girl015_61 extends MovieClip {
public function _3girl015_61(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package iceCream_fla
Section 8
//_9_49 (iceCream_fla._9_49)
package iceCream_fla {
import flash.display.*;
public dynamic class _9_49 extends MovieClip {
public function _9_49(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package iceCream_fla
Section 9
//_girl014_79 (iceCream_fla._girl014_79)
package iceCream_fla {
import flash.display.*;
public dynamic class _girl014_79 extends MovieClip {
public function _girl014_79(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package iceCream_fla
Section 10
//all_chilren_208 (iceCream_fla.all_chilren_208)
package iceCream_fla {
import flash.display.*;
public dynamic class all_chilren_208 extends MovieClip {
public var waitingMov:MovieClip;
public var arrivingMov:MovieClip;
public var gotIceCreamMov:MovieClip;
public var buyerOrderMov:MovieClip;
public var leavingMov:MovieClip;
}
}//package iceCream_fla
Section 11
//buyerGotIceCream_87 (iceCream_fla.buyerGotIceCream_87)
package iceCream_fla {
import flash.display.*;
public dynamic class buyerGotIceCream_87 extends MovieClip {
public var gotMov2:MovieClip;
public var iceCreamType:MovieClip;
public var gotMov:MovieClip;
public function buyerGotIceCream_87(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package iceCream_fla
Section 12
//buyerLeaving_107 (iceCream_fla.buyerLeaving_107)
package iceCream_fla {
import flash.display.*;
public dynamic class buyerLeaving_107 extends MovieClip {
public var leaveMov:MovieClip;
public function buyerLeaving_107(){
addFrameScript(0, frame1, 26, frame27);
}
function frame1(){
stop();
}
function frame27(){
}
}
}//package iceCream_fla
Section 13
//buyerType1_60 (iceCream_fla.buyerType1_60)
package iceCream_fla {
import flash.display.*;
public dynamic class buyerType1_60 extends MovieClip {
public var waitingMov:MovieClip;
public var arrivingMov:MovieClip;
public var gotIceCreamMov:MovieClip;
public var buyerOrderMov:MovieClip;
public var leavingMov:MovieClip;
}
}//package iceCream_fla
Section 14
//GAMEOVER_50 (iceCream_fla.GAMEOVER_50)
package iceCream_fla {
import flash.display.*;
public dynamic class GAMEOVER_50 extends MovieClip {
public function GAMEOVER_50(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package iceCream_fla
Section 15
//gir2l_walking_24 (iceCream_fla.gir2l_walking_24)
package iceCream_fla {
import flash.display.*;
public dynamic class gir2l_walking_24 extends MovieClip {
public var head:MovieClip;
}
}//package iceCream_fla
Section 16
//girlWaitingAnim_71 (iceCream_fla.girlWaitingAnim_71)
package iceCream_fla {
import flash.display.*;
public dynamic class girlWaitingAnim_71 extends MovieClip {
public function girlWaitingAnim_71(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package iceCream_fla
Section 17
//gotMov_94 (iceCream_fla.gotMov_94)
package iceCream_fla {
import flash.display.*;
public dynamic class gotMov_94 extends MovieClip {
public var gotAnim:MovieClip;
}
}//package iceCream_fla
Section 18
//head3_33 (iceCream_fla.head3_33)
package iceCream_fla {
import flash.display.*;
public dynamic class head3_33 extends MovieClip {
public function head3_33(){
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 iceCream_fla
Section 19
//iceCreamType_91 (iceCream_fla.iceCreamType_91)
package iceCream_fla {
import flash.display.*;
public dynamic class iceCreamType_91 extends MovieClip {
public var drops:MovieClip;
public function iceCreamType_91(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package iceCream_fla
Section 20
//leg_12 (iceCream_fla.leg_12)
package iceCream_fla {
import flash.display.*;
public dynamic class leg_12 extends MovieClip {
public function leg_12(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package iceCream_fla
Section 21
//leg11_10 (iceCream_fla.leg11_10)
package iceCream_fla {
import flash.display.*;
public dynamic class leg11_10 extends MovieClip {
public function leg11_10(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package iceCream_fla
Section 22
//leg22_21 (iceCream_fla.leg22_21)
package iceCream_fla {
import flash.display.*;
public dynamic class leg22_21 extends MovieClip {
public function leg22_21(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package iceCream_fla
Section 23
//leg44_9 (iceCream_fla.leg44_9)
package iceCream_fla {
import flash.display.*;
public dynamic class leg44_9 extends MovieClip {
public function leg44_9(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package iceCream_fla
Section 24
//pause_201 (iceCream_fla.pause_201)
package iceCream_fla {
import flash.display.*;
public dynamic class pause_201 extends MovieClip {
public var button:MovieClip;
public function pause_201(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package iceCream_fla
Section 25
//skirt_11 (iceCream_fla.skirt_11)
package iceCream_fla {
import flash.display.*;
public dynamic class skirt_11 extends MovieClip {
public function skirt_11(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package iceCream_fla
Section 26
//stand_2_181 (iceCream_fla.stand_2_181)
package iceCream_fla {
import flash.display.*;
public dynamic class stand_2_181 extends MovieClip {
public var iceCreamType:MovieClip;
public var iceCreamMov:MovieClip;
public function stand_2_181(){
addFrameScript(41, frame42, 67, frame68, 96, frame97, 135, frame136, 173, frame174, 211, frame212, 254, frame255, 289, frame290, 312, frame313, 379, frame380);
}
function frame313(){
stop();
}
function frame290(){
stop();
}
function frame174(){
stop();
}
function frame97(){
stop();
}
function frame212(){
stop();
}
function frame42(){
stop();
}
function frame255(){
stop();
}
function frame136(){
stop();
}
function frame380(){
stop();
}
function frame68(){
stop();
}
}
}//package iceCream_fla
Section 27
//Timeline_117 (iceCream_fla.Timeline_117)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_117 extends MovieClip {
public var orderBut:SimpleButton;
public var timerDisp:MovieClip;
public var iceCreamType:MovieClip;
}
}//package iceCream_fla
Section 28
//Timeline_149 (iceCream_fla.Timeline_149)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_149 extends MovieClip {
public var glow:MovieClip;
}
}//package iceCream_fla
Section 29
//Timeline_151 (iceCream_fla.Timeline_151)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_151 extends MovieClip {
public var glow:MovieClip;
}
}//package iceCream_fla
Section 30
//Timeline_153 (iceCream_fla.Timeline_153)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_153 extends MovieClip {
public var glow:MovieClip;
}
}//package iceCream_fla
Section 31
//Timeline_158 (iceCream_fla.Timeline_158)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_158 extends MovieClip {
public function Timeline_158(){
addFrameScript(0, frame1, 11, frame12, 25, frame26);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
function frame26(){
stop();
}
}
}//package iceCream_fla
Section 32
//Timeline_160 (iceCream_fla.Timeline_160)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_160 extends MovieClip {
public function Timeline_160(){
addFrameScript(0, frame1, 10, frame11, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame11(){
stop();
}
}
}//package iceCream_fla
Section 33
//Timeline_163 (iceCream_fla.Timeline_163)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_163 extends MovieClip {
public function Timeline_163(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package iceCream_fla
Section 34
//Timeline_168 (iceCream_fla.Timeline_168)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_168 extends MovieClip {
public function Timeline_168(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package iceCream_fla
Section 35
//Timeline_170 (iceCream_fla.Timeline_170)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_170 extends MovieClip {
public function Timeline_170(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package iceCream_fla
Section 36
//Timeline_173 (iceCream_fla.Timeline_173)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_173 extends MovieClip {
public function Timeline_173(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package iceCream_fla
Section 37
//Timeline_198 (iceCream_fla.Timeline_198)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_198 extends MovieClip {
public function Timeline_198(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
stop();
}
}
}//package iceCream_fla
Section 38
//Timeline_218 (iceCream_fla.Timeline_218)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_218 extends MovieClip {
public function Timeline_218(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package iceCream_fla
Section 39
//Timeline_22 (iceCream_fla.Timeline_22)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_22 extends MovieClip {
public function Timeline_22(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package iceCream_fla
Section 40
//Timeline_88 (iceCream_fla.Timeline_88)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_88 extends MovieClip {
public var iceCream2:MovieClip;
public var iceCream3:MovieClip;
public var iceCream1:MovieClip;
public var tempatMov:MovieClip;
}
}//package iceCream_fla
Section 41
//Timeline_89 (iceCream_fla.Timeline_89)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_89 extends MovieClip {
public function Timeline_89(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package iceCream_fla
Section 42
//Timeline_92 (iceCream_fla.Timeline_92)
package iceCream_fla {
import flash.display.*;
public dynamic class Timeline_92 extends MovieClip {
public function Timeline_92(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package iceCream_fla
Section 43
//trashBin_146 (iceCream_fla.trashBin_146)
package iceCream_fla {
import flash.display.*;
public dynamic class trashBin_146 extends MovieClip {
public function trashBin_146(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package iceCream_fla
Section 44
//trashGlow_144 (iceCream_fla.trashGlow_144)
package iceCream_fla {
import flash.display.*;
public dynamic class trashGlow_144 extends MovieClip {
public function trashGlow_144(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package iceCream_fla
Section 45
//v_41 (iceCream_fla.v_41)
package iceCream_fla {
import flash.display.*;
public dynamic class v_41 extends MovieClip {
public function v_41(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package iceCream_fla
Section 46
//vol_197 (iceCream_fla.vol_197)
package iceCream_fla {
import flash.display.*;
public dynamic class vol_197 extends MovieClip {
public var button:MovieClip;
public function vol_197(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package iceCream_fla
Section 47
//blackBorder (blackBorder)
package {
import flash.display.*;
public dynamic class blackBorder extends MovieClip {
}
}//package
Section 48
//buyer (buyer)
package {
import flash.events.*;
import flash.display.*;
public class buyer extends MovieClip {
public var tipeIceCream:Array;
public var orderIceCream:String;
public var tambahanIceCream:String;
public var baseTime:Number;// = 900
public var tipeIceCreamVar:Number;
public var tempatIceCreamVar:Number;
public var buyerMov:MovieClip;
public var jumlahIceCream:Number;// = 1
public var buyerState:String;// = "arriving"
public var buyerType:Number;// = 1
public var mainMov:mainClass;
public var tambahanIceCreamVar:Number;
public var waitingTime:Number;// = 900
public var tempatIceCream:String;
public function buyer(_arg1:mainClass){
buyerState = "arriving";
jumlahIceCream = 1;
waitingTime = 900;
baseTime = 900;
buyerType = 1;
super();
mainMov = _arg1;
addEventListener(Event.ENTER_FRAME, mainLoop);
buyerInit();
addEventListener(MouseEvent.CLICK, giveIceCream);
}
public function costumerAlgo():String{
var _local1:*;
tempatIceCream = "";
tempatIceCreamVar = (Math.floor((Math.random() * 3)) + 1);
jumlahIceCream = (Math.floor((Math.random() * 3)) + 1);
tambahanIceCreamVar = Math.floor((Math.random() * 3));
tambahanIceCream = "";
tipeIceCreamVar = (Math.floor((Math.random() * 3)) + 1);
tipeIceCream = ["", "", ""];
if (tempatIceCreamVar == 1){
tempatIceCream = "plate";
} else {
if (tempatIceCreamVar == 2){
tempatIceCream = "cup";
} else {
tempatIceCream = "cone";
};
};
_local1 = 0;
while (_local1 < jumlahIceCream) {
if (tipeIceCreamVar == 1){
tipeIceCream[_local1] = "strawberry";
} else {
if (tipeIceCreamVar == 2){
tipeIceCream[_local1] = "vanilla";
} else {
tipeIceCream[_local1] = "choco";
};
};
_local1++;
};
switch (tambahanIceCreamVar){
case 0:
tambahanIceCream = "";
break;
case 1:
tambahanIceCream = "cherryD";
break;
case 2:
tambahanIceCream = "chocoD";
break;
case 3:
tambahanIceCream = "candyD";
break;
};
return (String(((((((((tempatIceCream + "") + tipeIceCream[0]) + "") + tipeIceCream[1]) + "") + tipeIceCream[2]) + "") + tambahanIceCream)));
}
public function onScreenReady(){
}
public function buyerInit(){
trace("buyer init");
buyerType = (Math.floor((Math.random() * 4)) + 1);
trace(buyerType);
buyerState = "arriving";
if (mainClass(root)){
waitingTime = (900 - (mainClass(root).gameLevels * 60));
trace(mainClass(root));
baseTime = (900 - (mainClass(root).gameLevels * 60));
} else {
waitingTime = 900;
trace(mainClass(root));
baseTime = 900;
};
buyerMov.leavingMov.gotoAndStop(1);
if (buyerMov.gotIceCreamMov){
buyerMov.gotIceCreamMov.gotoAndStop(1);
buyerMov.gotIceCreamMov.iceCreamType.tempatMov.gotoAndStop(1);
buyerMov.gotIceCreamMov.iceCreamType.iceCream1.gotoAndStop(1);
buyerMov.gotIceCreamMov.iceCreamType.iceCream2.gotoAndStop(1);
buyerMov.gotIceCreamMov.iceCreamType.iceCream3.gotoAndStop(1);
buyerMov.gotIceCreamMov.iceCreamType[("iceCream" + jumlahIceCream)].drops.gotoAndStop(1);
};
orderIceCream = costumerAlgo();
trace(orderIceCream);
buyerMov.gotoAndPlay(1);
}
public function checkLevel(){
switch (mainClass(root).money){
case 50:
mainClass(root).gameLevels++;
trace("level up!");
mainClass(root).addMoneyAnim(297.8, 276.4, "Level Up !");
break;
case 100:
mainClass(root).gameLevels++;
trace("level up!");
mainClass(root).addMoneyAnim(297.8, 276.4, "Level Up !");
break;
case 150:
mainClass(root).gameLevels++;
trace("level up!");
mainClass(root).addMoneyAnim(297.8, 276.4, "Level Up !");
break;
case 200:
mainClass(root).gameLevels++;
trace("level up!");
mainClass(root).addMoneyAnim(297.8, 276.4, "Level Up !");
break;
case 250:
mainClass(root).gameLevels++;
trace("level up!");
mainClass(root).addMoneyAnim(297.8, 276.4, "Level Up !");
break;
case 300:
mainClass(root).gameLevels++;
trace("level up!");
mainClass(root).addMoneyAnim(297.8, 276.4, "Level Up !");
break;
case 350:
mainClass(root).gameLevels++;
trace("level up!");
mainClass(root).addMoneyAnim(297.8, 276.4, "Level Up !");
break;
case 400:
mainClass(root).gameLevels++;
trace("level up!");
mainClass(root).addMoneyAnim(297.8, 276.4, "Level Up !");
break;
case 450:
mainClass(root).gameLevels++;
trace("level up!");
mainClass(root).addMoneyAnim(297.8, 276.4, "Level Up !");
break;
case 500:
mainClass(root).gameLevels++;
trace("level up!");
mainClass(root).addMoneyAnim(297.8, 276.4, "Level Up !");
break;
case 550:
mainClass(root).gameLevels++;
trace("level up!");
mainClass(root).addMoneyAnim(297.8, 276.4, "Level Up !");
break;
};
}
public function buyerGotIceCream(){
if (((mainClass(root)) && (!(mainClass(root).soundMute)))){
SoundManager.getInstance().playSound("cashSound");
};
buyerMov.gotoAndStop("gotIceCream");
}
public function buyerLeave(){
if (mainClass(root)){
if (mainClass(root).lives > 0){
trace("buyer leave");
mainClass(root).lives--;
} else {
if (!mainClass(root).gameIsOver){
mainClass(root).addGameEnd();
};
};
};
}
public function giveIceCream(_arg1:MouseEvent){
if (((((((mainClass(root)) && (!(mainClass(root).gameIsOver)))) && ((mainClass(root).namaIceCream == orderIceCream)))) && ((buyerState == "waiting")))){
trace("got ice cream");
mainClass(root).money = (mainClass(root).money + 5);
mainClass(root).mainObj.givesIceCream();
buyerGotIceCream();
mainClass(root).addMoneyAnim(x, (y - 40));
checkLevel();
trace(("game level" + mainClass(root).gameLevels));
};
}
public function mainLoop(_arg1:Event){
var _local2:MovieClip;
if (mainClass(root)){
if (mainClass(root).gameIsOver){
mainClass(root).removeObj(this);
} else {
buyerState = buyerMov.currentLabel;
if (buyerState != "leaving"){
if (buyerMov.arrivingMov){
buyerMov.arrivingMov.gotoAndPlay(buyerType);
};
if (buyerMov.waitingMov){
buyerMov.waitingMov.gotoAndPlay(buyerType);
};
if ((((buyerState == "gotIceCream")) && (buyerMov.gotIceCreamMov.gotMov))){
buyerMov.gotIceCreamMov.gotMov.gotoAndPlay(buyerType);
if (buyerMov.gotIceCreamMov.gotMov.gotAnim){
buyerMov.gotIceCreamMov.gotMov.gotAnim.nextFrame();
};
};
if ((((buyerState == "gotIceCream")) && (buyerMov.gotIceCreamMov.gotMov2))){
buyerMov.gotIceCreamMov.gotMov2.gotoAndPlay(buyerType);
if (buyerMov.gotIceCreamMov.gotMov2.gotAnim){
buyerMov.gotIceCreamMov.gotMov2.gotAnim.nextFrame();
};
};
};
if ((((buyerState == "leaving")) && (buyerMov.leavingMov.leaveMov))){
buyerMov.leavingMov.leaveMov.gotoAndPlay(buyerType);
if (((buyerMov.leavingMov.leaveMov.leavingAnim) && (!(mainClass(root).gamePaused)))){
buyerMov.leavingMov.leaveMov.leavingAnim.nextFrame();
if (buyerMov.leavingMov.leaveMov.leavingAnim.cry){
buyerMov.leavingMov.leaveMov.leavingAnim.cry.nextFrame();
};
};
};
if ((((buyerState == "leaving")) && (buyerMov.leavingMov))){
buyerMov.leavingMov.play();
if (buyerMov.leavingMov.currentFrame == 89){
trace("lose init");
buyerInit();
};
if (buyerMov.leavingMov.currentFrame == 2){
buyerLeave();
};
};
if ((((buyerState == "waiting")) && (buyerMov.buyerOrderMov))){
_local2 = buyerMov.buyerOrderMov.iceCreamType;
_local2.tempatMov.gotoAndStop(tempatIceCream);
_local2.iceCream1.gotoAndStop(tipeIceCream[0]);
_local2.iceCream2.gotoAndStop(tipeIceCream[1]);
_local2.iceCream3.gotoAndStop(tipeIceCream[2]);
_local2[("iceCream" + jumlahIceCream)].drops.gotoAndStop(tambahanIceCream);
if ((((((buyerMov.buyerOrderMov.currentLabel == "waitingTimerStart")) && (buyerMov.buyerOrderMov.timerDisp))) && (!(mainClass(root).gamePaused)))){
buyerMov.buyerOrderMov.stop();
waitingTime--;
buyerMov.buyerOrderMov.timerDisp.gotoAndStop(((34 - Math.floor(((waitingTime / baseTime) * 34))) + 1));
};
if (waitingTime == 1){
buyerMov.gotoAndStop("leaving");
};
};
if ((((buyerState == "gotIceCream")) && (buyerMov.gotIceCreamMov))){
_local2 = buyerMov.gotIceCreamMov.iceCreamType;
buyerMov.gotIceCreamMov.play();
_local2.tempatMov.gotoAndStop(tempatIceCream);
_local2.iceCream1.gotoAndStop(tipeIceCream[0]);
_local2.iceCream2.gotoAndStop(tipeIceCream[1]);
_local2.iceCream3.gotoAndStop(tipeIceCream[2]);
_local2[("iceCream" + jumlahIceCream)].drops.gotoAndStop(tambahanIceCream);
if ((((buyerMov.gotIceCreamMov.currentFrame == 70)) && ((buyerMov.currentFrame == 25)))){
trace("win init");
buyerInit();
};
};
switch (buyerState){
case "waiting":
buyerMov.stop();
break;
case "gotIceCream":
break;
case "leaving":
break;
};
};
};
}
}
}//package
Section 49
//cashSound (cashSound)
package {
import flash.media.*;
public dynamic class cashSound extends Sound {
}
}//package
Section 50
//crowdSound (crowdSound)
package {
import flash.media.*;
public dynamic class crowdSound extends Sound {
}
}//package
Section 51
//gameObj (gameObj)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class gameObj extends MovieClip {
public var strawberryAnim:MovieClip;
public var guyState:String;// = "waiting"
public var chocoBut:SimpleButton;
public var namaEsKrim:String;
public var cherryDrop:MovieClip;
public var vanillaAnim:MovieClip;
public var tipeEsKrim1:String;// = ""
public var tipeEsKrim3:String;// = ""
public var cup:MovieClip;
public var tipeEsKrim2:String;// = ""
public var tempatEsKrim:String;// = ""
public var tambahanEsKrim:String;// = ""
public var moneyDisp:TextField;
public var chocoDrop:MovieClip;
public var pauseBut:MovieClip;
public var candyDGlow:MovieClip;
public var strawberryBut:SimpleButton;
public var trashGlow:MovieClip;
public var cupGlow:MovieClip;
public var candyDrop:MovieClip;
public var vanillaBut:SimpleButton;
public var chocoDGlow:MovieClip;
public var cone:MovieClip;
public var plate:MovieClip;
public var trash:MovieClip;
public var livesDisp:TextField;
public var guy:MovieClip;
public var coneGlow:MovieClip;
public var muteBut:MovieClip;
public var plateGlow:MovieClip;
public var chocoAnim:MovieClip;
public var jumlahEsKrim:Number;// = 0
public var cherryDGlow:MovieClip;
public function gameObj(){
guyState = "waiting";
tempatEsKrim = "";
tambahanEsKrim = "";
tipeEsKrim1 = "";
tipeEsKrim2 = "";
tipeEsKrim3 = "";
jumlahEsKrim = 0;
super();
guy.stop();
addEventListener(Event.ENTER_FRAME, mainLoop);
cone.stop();
cup.stop();
plate.stop();
guy.iceCreamMov.visible = false;
cone.addEventListener(MouseEvent.CLICK, conePressed);
cup.addEventListener(MouseEvent.CLICK, cupPressed);
plate.addEventListener(MouseEvent.CLICK, platePressed);
plate.addEventListener(MouseEvent.ROLL_OVER, plateRoll);
plate.addEventListener(MouseEvent.ROLL_OUT, plateRollOut);
cup.addEventListener(MouseEvent.ROLL_OVER, cupRoll);
cup.addEventListener(MouseEvent.ROLL_OUT, cupRollOut);
cone.addEventListener(MouseEvent.ROLL_OVER, coneRoll);
cone.addEventListener(MouseEvent.ROLL_OUT, coneRollOut);
cherryDrop.addEventListener(MouseEvent.ROLL_OVER, cherryDRoll);
cherryDrop.addEventListener(MouseEvent.ROLL_OUT, cherryDRollOut);
chocoDrop.addEventListener(MouseEvent.ROLL_OVER, chocoDRoll);
chocoDrop.addEventListener(MouseEvent.ROLL_OUT, chocoDRollOut);
candyDrop.addEventListener(MouseEvent.ROLL_OVER, candyDRoll);
candyDrop.addEventListener(MouseEvent.ROLL_OUT, candyDRollOut);
trash.addEventListener(MouseEvent.ROLL_OVER, trashRoll);
trash.addEventListener(MouseEvent.ROLL_OUT, trashRollOut);
strawberryBut.addEventListener(MouseEvent.CLICK, strawbPressed);
strawberryBut.addEventListener(MouseEvent.ROLL_OVER, strawbRoll);
strawberryBut.addEventListener(MouseEvent.ROLL_OUT, strawbRollOut);
vanillaBut.addEventListener(MouseEvent.CLICK, vanillaPressed);
vanillaBut.addEventListener(MouseEvent.ROLL_OVER, vanillaRoll);
vanillaBut.addEventListener(MouseEvent.ROLL_OUT, vanillaRollOut);
chocoBut.addEventListener(MouseEvent.CLICK, chocoPressed);
chocoBut.addEventListener(MouseEvent.ROLL_OVER, chocoRoll);
chocoBut.addEventListener(MouseEvent.ROLL_OUT, chocoRollOut);
cherryDrop.addEventListener(MouseEvent.CLICK, cherryDrops);
candyDrop.addEventListener(MouseEvent.CLICK, candyDrops);
chocoDrop.addEventListener(MouseEvent.CLICK, chocoDrops);
trash.addEventListener(MouseEvent.CLICK, throwIceCream);
muteBut.addEventListener(MouseEvent.CLICK, muteSound);
pauseBut.addEventListener(MouseEvent.CLICK, pauseGame);
trash.stop();
plateGlow.stop();
coneGlow.stop();
cupGlow.stop();
cherryDGlow.stop();
chocoDGlow.stop();
candyDGlow.stop();
trashGlow.stop();
strawberryAnim.glow.stop();
chocoAnim.glow.stop();
vanillaAnim.glow.stop();
}
public function mainLoop(_arg1:Event){
namaEsKrim = ((((((((tempatEsKrim + "") + tipeEsKrim1) + "") + tipeEsKrim2) + "") + tipeEsKrim3) + "") + tambahanEsKrim);
if (mainClass(root)){
mainClass(root).namaIceCream = namaEsKrim;
moneyDisp.text = ("$" + mainClass(root).money);
livesDisp.text = String(mainClass(root).lives);
};
if (guy.iceCreamMov){
guy.iceCreamMov.gotoAndPlay(tempatEsKrim);
};
if (guy.iceCreamType){
guy.iceCreamType.iceCream1.gotoAndPlay(tipeEsKrim1);
guy.iceCreamType.iceCream2.gotoAndPlay(tipeEsKrim2);
guy.iceCreamType.iceCream3.gotoAndPlay(tipeEsKrim3);
guy.iceCreamType.tempatMov.gotoAndPlay(tempatEsKrim);
};
if (guy.currentFrame == 351){
trace("masuk bin");
tipeEsKrim1 = "";
tipeEsKrim2 = "";
tipeEsKrim3 = "";
tambahanEsKrim = "";
jumlahEsKrim = 0;
trash.play();
};
if (guy.currentFrame == 114){
addStrawb();
};
if (guy.currentFrame == 153){
addVanilla();
};
if (guy.currentFrame == 190){
addChoco();
};
if (guy.currentFrame == 229){
addCherryD();
};
if (guy.currentFrame == 266){
addChocoD();
};
if (guy.currentFrame == 302){
addCandyD();
};
}
public function costumerAlgo():String{
var _local1:String;
var _local2:Number;
var _local3:*;
var _local4:Number;
var _local5:String;
var _local6:Number;
var _local7:Array;
var _local8:*;
_local1 = "";
_local2 = (Math.floor((Math.random() * 3)) + 1);
_local3 = (Math.floor((Math.random() * 3)) + 1);
_local4 = Math.floor((Math.random() * 3));
_local5 = "";
_local6 = (Math.floor((Math.random() * 3)) + 1);
_local7 = ["", "", ""];
if (_local2 == 1){
_local1 = "plate";
} else {
if (_local2 == 2){
_local1 = "cup";
} else {
_local1 = "cone";
};
};
_local8 = 0;
while (_local8 < _local3) {
if (_local6 == 1){
_local7[_local8] = "strawberry";
} else {
if (_local6 == 2){
_local7[_local8] = "vanilla";
} else {
_local7[_local8] = "choco";
};
};
_local8++;
};
switch (_local4){
case 0:
_local5 = "";
break;
case 1:
_local5 = "cherryD";
break;
case 2:
_local5 = "chocoD";
break;
case 3:
_local5 = "candyD";
break;
};
return (String(((((((((_local1 + "") + _local7[0]) + "") + _local7[1]) + "") + _local7[2]) + "") + _local5)));
}
public function chocoDRoll(_arg1:MouseEvent){
chocoDGlow.play();
}
public function chocoRollOut(_arg1:MouseEvent){
chocoAnim.glow.gotoAndStop(1);
}
public function cupPressed(_arg1:MouseEvent){
if (guyState == "waiting"){
guy.gotoAndPlay("takeCup");
guyState = "waitingIceCream";
tempatEsKrim = "cup";
cup.gotoAndPlay(16);
};
}
public function candyDRollOut(_arg1:MouseEvent){
candyDGlow.gotoAndStop(1);
}
public function vanillaPressed(_arg1:MouseEvent){
if ((((guyState == "waitingIceCream")) && ((jumlahEsKrim < 3)))){
guy.gotoAndPlay("vanillaIceCream");
};
}
public function strawbRoll(_arg1:MouseEvent){
strawberryAnim.glow.play();
}
public function platePressed(_arg1:MouseEvent){
if (guyState == "waiting"){
guy.gotoAndPlay("takePlate");
guyState = "waitingIceCream";
tempatEsKrim = "plate";
plate.gotoAndPlay(20);
};
}
public function givesIceCream(){
trace("kasih es krim");
guyState = "waiting";
tempatEsKrim = "";
tipeEsKrim1 = "";
tipeEsKrim2 = "";
tipeEsKrim3 = "";
tambahanEsKrim = "";
jumlahEsKrim = 0;
guy.gotoAndPlay(360);
}
public function coneRoll(_arg1:MouseEvent){
coneGlow.play();
}
public function chocoDrops(_arg1:MouseEvent){
if (((!((jumlahEsKrim == 0))) && (!((guyState == "iceCreamComplete"))))){
guy.gotoAndPlay("dropChoco");
chocoDrop.play();
};
}
public function addChocoD(){
tambahanEsKrim = "chocoD";
guy.iceCreamType[("iceCream" + jumlahEsKrim)].drops.gotoAndStop(tambahanEsKrim);
guyState = "iceCreamComplete";
}
public function addChoco(){
jumlahEsKrim++;
this[("tipeEsKrim" + jumlahEsKrim)] = "choco";
}
public function muteSound(_arg1:MouseEvent){
if (mainClass(root)){
if (mainClass(root).soundMute){
muteBut.gotoAndStop(1);
SoundManager.getInstance().playSound("crowdSound", 1, 0, 999);
mainClass(root).soundMute = false;
} else {
muteBut.gotoAndStop(2);
SoundManager.getInstance().stopSound("crowdSound");
mainClass(root).soundMute = true;
};
};
}
public function coneOver(_arg1:Event){
cone.play();
}
public function vanillaRoll(_arg1:MouseEvent){
vanillaAnim.glow.play();
}
public function strawbPressed(_arg1:MouseEvent){
if ((((guyState == "waitingIceCream")) && ((jumlahEsKrim < 3)))){
guy.gotoAndPlay("strawberryIceCream");
};
}
public function chocoRoll(_arg1:MouseEvent){
chocoAnim.glow.play();
}
public function addCandyD(){
tambahanEsKrim = "candyD";
guy.iceCreamType[("iceCream" + jumlahEsKrim)].drops.gotoAndStop(tambahanEsKrim);
guyState = "iceCreamComplete";
}
public function plateRoll(_arg1:MouseEvent){
plateGlow.play();
}
public function chocoPressed(_arg1:MouseEvent){
if ((((guyState == "waitingIceCream")) && ((jumlahEsKrim < 3)))){
guy.gotoAndPlay("chocoIceCream");
};
}
public function cherryDRoll(_arg1:MouseEvent){
cherryDGlow.play();
}
public function coneRollOut(_arg1:MouseEvent){
coneGlow.gotoAndStop(1);
}
public function pauseGame(_arg1:MouseEvent){
if (mainClass(root)){
mainClass(root).pauseTheGame();
};
}
public function addStrawb(){
jumlahEsKrim++;
this[("tipeEsKrim" + jumlahEsKrim)] = "strawberry";
}
public function trashRollOut(_arg1:MouseEvent){
trashGlow.gotoAndStop(1);
}
public function chocoDRollOut(_arg1:MouseEvent){
chocoDGlow.gotoAndStop(1);
}
public function cherryDRollOut(_arg1:MouseEvent){
cherryDGlow.gotoAndStop(1);
}
public function cherryDrops(_arg1:MouseEvent){
if (((!((jumlahEsKrim == 0))) && (!((guyState == "iceCreamComplete"))))){
guy.gotoAndPlay("dropCherry");
cherryDrop.play();
};
}
public function cupRollOut(_arg1:MouseEvent){
cupGlow.gotoAndStop(1);
}
public function conePressed(_arg1:MouseEvent){
if (guyState == "waiting"){
guy.gotoAndPlay("takeCone");
guyState = "waitingIceCream";
tempatEsKrim = "cone";
cone.gotoAndPlay(13);
};
}
public function addVanilla(){
jumlahEsKrim++;
this[("tipeEsKrim" + jumlahEsKrim)] = "vanilla";
}
public function candyDRoll(_arg1:MouseEvent){
candyDGlow.play();
}
public function vanillaRollOut(_arg1:MouseEvent){
vanillaAnim.glow.gotoAndStop(1);
}
public function plateRollOut(_arg1:MouseEvent){
plateGlow.gotoAndStop(1);
}
public function throwIceCream(_arg1:MouseEvent){
if (guyState != "waiting"){
guy.gotoAndPlay("bin");
guyState = "waiting";
trace(namaEsKrim);
trace((Math.floor((Math.random() * 3)) + 1));
trace((Math.floor((Math.random() * 3)) + 1));
trace((Math.floor((Math.random() * 3)) + 1));
trace(costumerAlgo());
};
}
public function trashRoll(_arg1:MouseEvent){
trashGlow.play();
}
public function cupRoll(_arg1:MouseEvent){
cupGlow.play();
}
public function addCherryD(){
tambahanEsKrim = "cherryD";
guy.iceCreamType[("iceCream" + jumlahEsKrim)].drops.gotoAndStop(tambahanEsKrim);
guyState = "iceCreamComplete";
}
public function strawbRollOut(_arg1:MouseEvent){
strawberryAnim.glow.gotoAndStop(1);
}
public function candyDrops(_arg1:MouseEvent){
if (((!((jumlahEsKrim == 0))) && (!((guyState == "iceCreamComplete"))))){
guy.gotoAndPlay("dropCandy");
candyDrop.play();
};
}
}
}//package
Section 52
//gameOver (gameOver)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class gameOver extends MovieClip {
var testScore:String;
public var scoreDisp:TextField;
var testDisp:Boolean;// = false
public var toHighScoreBut:SimpleButton;
public var toMenuBut:SimpleButton;
var mainMov:screenManager;
public var logoBut:SimpleButton;
public var testScoreDisp:TextField;
public var nameInput:TextField;
public function gameOver(_arg1:screenManager){
testDisp = false;
super();
mainMov = _arg1;
toMenuBut.addEventListener(MouseEvent.CLICK, toMenuButClicked);
addEventListener(Event.ENTER_FRAME, mainLoop);
toHighScoreBut.addEventListener(MouseEvent.CLICK, toHighScoreButClicked);
nameInput.addEventListener(MouseEvent.CLICK, clearNameInput);
nameInput.text = "";
logoBut.addEventListener(MouseEvent.CLICK, logoButClicked);
}
public function toHighScoreButClicked(_arg1:MouseEvent){
mainClass(root).playerName = nameInput.text;
trace(("the name is " + nameInput.text));
mainMov.showHighScore();
}
public function clearNameInput(_arg1:MouseEvent){
nameInput.text = "";
}
public function logoButClicked(_arg1:MouseEvent){
mainClass(root).goToSite2();
}
public function toMenuButClicked(_arg1:MouseEvent){
mainMov.showSplash();
}
public function mainLoop(_arg1:Event){
if (mainClass(root)){
scoreDisp.text = String((mainClass(root).money * 3));
};
}
}
}//package
Section 53
//gameOverScreen (gameOverScreen)
package {
import flash.events.*;
import flash.display.*;
public class gameOverScreen extends MovieClip {
public var screenTime;// = 150
public function gameOverScreen(){
screenTime = 150;
super();
addEventListener(Event.ENTER_FRAME, mainLoop);
}
public function mainLoop(_arg1:Event){
screenTime--;
if (mainClass(root)){
if (screenTime == 0){
trace("game end");
mainClass(root).gameEnd();
mainClass(root).removeObj(this);
};
};
}
}
}//package
Section 54
//highScoreTable (highScoreTable)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class highScoreTable extends MovieClip {
var testScore:String;
public var scoreDisp:TextField;
var testDisp:Boolean;// = false
public var toMenuBut:SimpleButton;
var mainMov:screenManager;
public var nameDisp:TextField;
public var logoBut:SimpleButton;
public function highScoreTable(_arg1:screenManager){
testDisp = false;
super();
mainMov = _arg1;
testDisp = false;
toMenuBut.addEventListener(MouseEvent.CLICK, toMenuButClicked);
addEventListener(Event.ENTER_FRAME, mainLoop);
scoreDisp.multiline = true;
nameDisp.multiline = true;
logoBut.addEventListener(MouseEvent.CLICK, logoButClicked);
}
public function toHighScoreButClicked(_arg1:MouseEvent){
mainMov.showHighScore();
}
public function logoButClicked(_arg1:MouseEvent){
mainClass(root).goToSite2();
}
public function toMenuButClicked(_arg1:MouseEvent){
mainMov.showSplash();
}
public function mainLoop(_arg1:Event){
var _local2:*;
if (mainClass(root)){
if (!testDisp){
if (mainClass(root).money != 0){
mainClass(root).cookies.data.highScoreList.push([mainClass(root).playerName, int((mainClass(root).money * 3))]);
};
mainClass(root).cookies.data.highScoreList.sort(mainClass(root).order);
for (_local2 in mainClass(root).cookies.data.highScoreList) {
scoreDisp.appendText((String(mainClass(root).cookies.data.highScoreList[_local2][1]) + "\n"));
nameDisp.appendText((mainClass(root).cookies.data.highScoreList[_local2][0] + "\n"));
};
testDisp = true;
};
};
}
}
}//package
Section 55
//howTo (howTo)
package {
import flash.events.*;
import flash.display.*;
public class howTo extends Sprite {
public var playBut:SimpleButton;
var mainMov:screenManager;
public function howTo(_arg1:screenManager){
mainMov = _arg1;
playBut.addEventListener(MouseEvent.CLICK, playButClicked);
}
public function toMenuButClicked(_arg1:MouseEvent){
mainMov.showSplash();
}
public function playButClicked(_arg1:MouseEvent){
mainMov.playTheGame();
}
}
}//package
Section 56
//inGame (inGame)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class inGame extends Sprite {
var shared:SharedObject;
var mainMov:screenManager;
public function inGame(_arg1:screenManager){
mainMov = _arg1;
}
public function pauseButClicked(_arg1:MouseEvent){
mainClass(root).pauseTheGame();
}
}
}//package
Section 57
//introSound (introSound)
package {
import flash.media.*;
public dynamic class introSound extends Sound {
}
}//package
Section 58
//Logo (Logo)
package {
import flash.display.*;
public dynamic class Logo extends MovieClip {
}
}//package
Section 59
//mainClass (mainClass)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
public class mainClass extends Sprite {
public var gameLevels:Number;
public var remObj:MovieClip;
public var lives:Number;
public var playerName:String;
public var request:URLRequest;
public var border:blackBorder;
public var scoreList:Array;
public var screenMag:screenManager;
public var buyerMov:buyer;
public var loadedBytes:Number;// = 0
public var namaIceCream:String;
public var spawn:uint;
public var Sementara:buyer;
public var mainObj:gameObj;
public var totalBytes:Number;// = 0
public var soundManager:SoundManager;
public var gameIsOver:Boolean;
public var gameOverMov:MovieClip;
public var Sementara3:buyer;
public var Sementara2:buyer;
public var logo:Logo;
public var preloaderMov:preloaderMain;
public var soundMute:Boolean;
public var money:Number;
public var cookies:SharedObject;
public var buyerNumber:Number;// = 0
public var gamePaused:Boolean;
public function mainClass(){
buyerNumber = 0;
loadedBytes = 0;
totalBytes = 0;
super();
preloaderMov = new preloaderMain(this);
addChild(preloaderMov);
addEventListener(Event.ENTER_FRAME, mainLoop);
request = new URLRequest("http://www.girlsgames123.com/");
}
public function goToSite2(){
navigateToURL(request, "_blank");
}
public function createBuyer(_arg1:Number){
}
public function gameInit(){
playerName = "";
gameLevels = 0;
gamePaused = false;
soundMute = false;
SoundManager.getInstance().playSound("crowdSound", 1, 0, 999);
gameIsOver = false;
buyerNumber = 0;
money = 0;
lives = 5;
mainObj = new gameObj();
addChild(mainObj);
spawn = setInterval(addBuyer, 1000);
border = new blackBorder();
addChild(border);
border.x = -30.5;
border.y = 245.9;
addBuyer();
}
public function pauseTheGame(){
var _local1:MovieClip;
if (!gamePaused){
_local1 = new pauseScreen();
addChild(_local1);
gamePaused = true;
} else {
gamePaused = false;
};
}
public function mainLoop(_arg1:Event){
loadedBytes = stage.loaderInfo.bytesLoaded;
totalBytes = stage.loaderInfo.bytesTotal;
}
public function addMoneyAnim(_arg1, _arg2, _arg3:String="$5"){
var _local4:MovieClip;
_local4 = new moneyAnim(_arg3);
_local4.x = _arg1;
_local4.y = _arg2;
addChild(_local4);
}
public function goToSite(_arg1:MouseEvent){
navigateToURL(request, "_blank");
}
public function addBuyer(){
if (!gamePaused){
if (buyerNumber < 3){
buyerNumber++;
buyerMov = new buyer(this);
buyerMov.x = (87 + (111 * buyerNumber));
buyerMov.y = 374;
addChild(buyerMov);
buyerMov.stop();
addChild(border);
} else {
clearInterval(spawn);
};
};
}
public function gameEnd(){
screenMag.showGameOver();
removeChild(mainObj);
mainObj = null;
}
public function addGameEnd(){
SoundManager.getInstance().stopSound("crowdSound");
gameIsOver = true;
gameOverMov = new gameOverScreen();
addChild(gameOverMov);
}
public function order(_arg1, _arg2){
var _local3:*;
var _local4:*;
_local3 = _arg1[1];
_local4 = _arg2[1];
if (_local3 > _local4){
return (-1);
};
if (_local3 < _local4){
return (1);
};
return (0);
}
public function removeObj(_arg1:MovieClip){
remObj = _arg1;
removeChild(remObj);
}
public function gameBegin(){
cookies = SharedObject.getLocal("reload");
if (cookies.data.highScoreList == undefined){
cookies.data.highScoreList = new Array();
cookies.data.highScoreList = [["CPU", 2000], ["CPU", 1500], ["CPU", 1000], ["CPU", 500], ["CPU", 400], ["CPU", 300], ["CPU", 100], ["CPU", 50]];
trace(cookies.data.highScoreList[0][1]);
} else {
trace("sudah ada");
};
cookies.close();
money = 0;
screenMag = new screenManager();
addChild(screenMag);
SoundManager.getInstance().addLibrarySound(cashSound, "cashSound");
SoundManager.getInstance().addLibrarySound(introSound, "introSound");
SoundManager.getInstance().addLibrarySound(crowdSound, "crowdSound");
SoundManager.getInstance().playSound("introSound");
scoreList = new Array();
}
}
}//package
Section 60
//moneyAnim (moneyAnim)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class moneyAnim extends MovieClip {
public var textDisp:TextField;
var mainMov:mainClass;
public function moneyAnim(_arg1){
addEventListener(Event.ENTER_FRAME, mainLoop);
textDisp.text = _arg1;
}
public function mainLoop(_arg1:Event){
if (mainClass(root)){
mainMov = mainClass(root);
if (currentFrame == 15){
mainMov.removeObj(this);
};
};
}
}
}//package
Section 61
//pauseScreen (pauseScreen)
package {
import flash.events.*;
import flash.display.*;
public class pauseScreen extends MovieClip {
public function pauseScreen(){
addEventListener(MouseEvent.CLICK, unPause);
}
public function unPause(_arg1:MouseEvent){
if (mainClass(root)){
mainClass(root).pauseTheGame();
mainClass(root).removeObj(this);
};
}
}
}//package
Section 62
//preloaderMain (preloaderMain)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class preloaderMain extends MovieClip {
public var preloadBar:MovieClip;
var t;// = 0
var scale:Number;
public var loadingBorder:MovieClip;
public var walkAnim:MovieClip;
var request:URLRequest;
var mainMov:mainClass;
public var girlAnim:MovieClip;
public var startBut:SimpleButton;
public var preloadBut:SimpleButton;
public function preloaderMain(_arg1:mainClass){
t = 0;
super();
mainMov = _arg1;
stop();
request = new URLRequest("http://www.girlsgames123.com/?utm_source=brandedgames&utm_medium=mansionmania");
preloadBut.addEventListener(MouseEvent.CLICK, mouseClick);
startBut.addEventListener(MouseEvent.CLICK, startButClicked);
preloadBar.scaleX = 0;
addEventListener(Event.ENTER_FRAME, mainLoop);
startBut.alpha = 0;
}
public function mouseClick(_arg1:MouseEvent){
navigateToURL(request, "_blank");
}
public function startButClicked(_arg1:MouseEvent){
mainClass(root).gameBegin();
}
public function mainLoop(_arg1:Event){
girlAnim.y = (girlAnim.y + (Math.sin((t = (t + 0.12))) * 2));
if (mainClass(root)){
scale = (int(((mainMov.loadedBytes * 100) / mainMov.totalBytes)) / 100);
};
if (preloadBar.scaleX < scale){
preloadBar.scaleX = (preloadBar.scaleX + 0.005);
};
if ((((preloadBar.scaleX > 0.9)) && ((scale == 1)))){
showPlayBut();
};
}
public function showPlayBut(){
startBut.alpha = 1;
preloadBar.alpha = 0;
loadingBorder.alpha = 0;
}
}
}//package
Section 63
//screenManager (screenManager)
package {
import flash.display.*;
public class screenManager extends Sprite {
public var splash_screen:Sprite;
public var game_over_screen:Sprite;
public var highScore_screen:Sprite;
public var how_to_screen:Sprite;
public var play_screen:Sprite;
public function screenManager(){
showSplash();
}
public function showGameOver(){
game_over_screen = new gameOver(this);
removeChild(play_screen);
play_screen = null;
addChild(game_over_screen);
}
public function playTheGame(){
play_screen = new inGame(this);
addChild(play_screen);
gameStart();
if (splash_screen){
removeChild(splash_screen);
splash_screen = null;
};
if (how_to_screen){
removeChild(how_to_screen);
how_to_screen = null;
};
}
public function showHighScore(){
highScore_screen = new highScoreTable(this);
if (splash_screen){
removeChild(splash_screen);
splash_screen = null;
};
addChild(highScore_screen);
}
public function gameStart(){
trace("permainan mulai");
mainClass(root).gameInit();
}
public function showSplash(){
splash_screen = new splash(this);
addChild(splash_screen);
if (highScore_screen){
removeChild(highScore_screen);
highScore_screen = null;
};
if (game_over_screen){
removeChild(game_over_screen);
game_over_screen = null;
};
}
public function showHowTo(){
how_to_screen = new howTo(this);
removeChild(splash_screen);
splash_screen = null;
addChild(how_to_screen);
}
}
}//package
Section 64
//sementara (sementara)
package {
import flash.display.*;
public dynamic class sementara extends MovieClip {
}
}//package
Section 65
//SoundManager (SoundManager)
package {
import flash.media.*;
import flash.utils.*;
import flash.net.*;
public class SoundManager {
private var _soundsDict:Dictionary;
private var _sounds:Array;
private static var _instance:SoundManager;
private static var _allowInstance:Boolean;
public function SoundManager(){
this._soundsDict = new Dictionary(true);
this._sounds = new Array();
if (!SoundManager._allowInstance){
throw (new Error("Error: Use SoundManager.getInstance() instead of the new keyword."));
};
}
public function fadeSound(_arg1:String, _arg2:Number=0, _arg3:Number=1):void{
}
public function get sounds():Array{
return (this._sounds);
}
public function getSoundDuration(_arg1:String):Number{
return (this._soundsDict[_arg1].sound.length);
}
public function setSoundVolume(_arg1:String, _arg2:Number):void{
var _local3:Object;
var _local4:SoundTransform;
_local3 = this._soundsDict[_arg1];
_local4 = _local3.channel.soundTransform;
_local4.volume = _arg2;
_local3.channel.soundTransform = _local4;
}
public function getSoundVolume(_arg1:String):Number{
return (this._soundsDict[_arg1].channel.soundTransform.volume);
}
public function addLibrarySound(_arg1, _arg2:String):Boolean{
var _local3:int;
var _local4:Object;
var _local5:Sound;
_local3 = 0;
while (_local3 < this._sounds.length) {
if (this._sounds[_local3].name == _arg2){
return (false);
};
_local3++;
};
_local4 = new Object();
_local5 = new (_arg1);
_local4.name = _arg2;
_local4.sound = _local5;
_local4.channel = new SoundChannel();
_local4.position = 0;
_local4.paused = true;
_local4.volume = 1;
_local4.startTime = 0;
_local4.loops = 0;
_local4.pausedByAll = false;
this._soundsDict[_arg2] = _local4;
this._sounds.push(_local4);
return (true);
}
public function toString():String{
return (getQualifiedClassName(this));
}
public function isSoundPaused(_arg1:String):Boolean{
return (this._soundsDict[_arg1].paused);
}
public function removeAllSounds():void{
var _local1:int;
_local1 = 0;
while (_local1 < this._sounds.length) {
this._sounds[_local1] = null;
_local1++;
};
this._sounds = new Array();
this._soundsDict = new Dictionary(true);
}
public function getSoundPosition(_arg1:String):Number{
return (this._soundsDict[_arg1].channel.position);
}
public function stopAllSounds(_arg1:Boolean=true):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!this._soundsDict[_local3].paused){
this._soundsDict[_local3].pausedByAll = true;
this.stopSound(_local3);
};
} else {
this.stopSound(_local3);
};
_local2++;
};
}
public function removeSound(_arg1:String):void{
var _local2:int;
_local2 = 0;
while (_local2 < this._sounds.length) {
if (this._sounds[_local2].name == _arg1){
this._sounds[_local2] = null;
this._sounds.splice(_local2, 1);
};
_local2++;
};
delete this._soundsDict[_arg1];
}
public function muteAllSounds():void{
var _local1:int;
var _local2:String;
_local1 = 0;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
this.setSoundVolume(_local2, 0);
_local1++;
};
}
public function stopSound(_arg1:String):void{
var _local2:Object;
_local2 = this._soundsDict[_arg1];
_local2.paused = true;
_local2.channel.stop();
_local2.position = _local2.channel.position;
}
public function pauseAllSounds(_arg1:Boolean=true):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!this._soundsDict[_local3].paused){
this._soundsDict[_local3].pausedByAll = true;
this.pauseSound(_local3);
};
} else {
this.pauseSound(_local3);
};
_local2++;
};
}
public function playAllSounds(_arg1:Boolean=false):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (this._soundsDict[_local3].pausedByAll){
this._soundsDict[_local3].pausedByAll = false;
this.playSound(_local3);
};
} else {
this.playSound(_local3);
};
_local2++;
};
}
public function addExternalSound(_arg1:String, _arg2:String, _arg3:Number=1000, _arg4:Boolean=false):Boolean{
var _local5:int;
var _local6:Object;
var _local7:Sound;
_local5 = 0;
while (_local5 < this._sounds.length) {
if (this._sounds[_local5].name == _arg2){
return (false);
};
_local5++;
};
_local6 = new Object();
_local7 = new Sound(new URLRequest(_arg1), new SoundLoaderContext(_arg3, _arg4));
_local6.name = _arg2;
_local6.sound = _local7;
_local6.channel = new SoundChannel();
_local6.position = 0;
_local6.paused = true;
_local6.volume = 1;
_local6.startTime = 0;
_local6.loops = 0;
_local6.pausedByAll = false;
this._soundsDict[_arg2] = _local6;
this._sounds.push(_local6);
return (true);
}
public function unmuteAllSounds():void{
var _local1:int;
var _local2:String;
var _local3:Object;
var _local4:SoundTransform;
_local1 = 0;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
_local3 = this._soundsDict[_local2];
_local4 = _local3.channel.soundTransform;
_local4.volume = _local3.volume;
_local3.channel.soundTransform = _local4;
_local1++;
};
}
public function isSoundPausedByAll(_arg1:String):Boolean{
return (this._soundsDict[_arg1].pausedByAll);
}
public function getSoundObject(_arg1:String):Sound{
return (this._soundsDict[_arg1].sound);
}
public function pauseSound(_arg1:String):void{
var _local2:Object;
_local2 = this._soundsDict[_arg1];
_local2.paused = true;
_local2.position = _local2.channel.position;
_local2.channel.stop();
}
public function playSound(_arg1:String, _arg2:Number=1, _arg3:Number=0, _arg4:int=0):void{
var _local5:Object;
_local5 = this._soundsDict[_arg1];
_local5.volume = _arg2;
_local5.startTime = _arg3;
_local5.loops = _arg4;
if (_local5.paused){
_local5.channel = _local5.sound.play(_local5.position, _local5.loops, new SoundTransform(_local5.volume));
} else {
_local5.channel = _local5.sound.play(_arg3, _local5.loops, new SoundTransform(_local5.volume));
};
_local5.paused = false;
}
public static function getInstance():SoundManager{
if (SoundManager._instance == null){
SoundManager._allowInstance = true;
SoundManager._instance = new (SoundManager);
SoundManager._allowInstance = false;
};
return (SoundManager._instance);
}
}
}//package
Section 66
//splash (splash)
package {
import flash.events.*;
import flash.display.*;
public class splash extends Sprite {
public var drops:MovieClip;
public var toHighScoreBut:SimpleButton;
public var playBut:SimpleButton;
var mainMov:screenManager;
public var logoBut:SimpleButton;
public function splash(_arg1:screenManager){
mainMov = _arg1;
playBut.addEventListener(MouseEvent.CLICK, playButClicked);
toHighScoreBut.addEventListener(MouseEvent.CLICK, toHighScoreButClicked);
logoBut.addEventListener(MouseEvent.CLICK, logoButClicked);
}
public function toHighScoreButClicked(_arg1:MouseEvent){
mainClass(root).money = 0;
mainMov.showHighScore();
}
public function logoButClicked(_arg1:MouseEvent){
mainClass(root).goToSite2();
}
public function playButClicked(_arg1:MouseEvent){
mainMov.showHowTo();
}
}
}//package