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

A
Very
Merry Christmas!


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

Chocolate Shop Frenzy.swf

This is the info page for
Flash #75287

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


Text
Seize the Minute

Loading ...

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

Play

Play

Get More Games

Get More Games

Play Premium

One year ago

This has been one exciting
year! I left my marketing job
to run my own chocolate shop.

It wasn’t easy, but I guess
it’s better to start from the
beginning …

... there I was; trying to figure
out what to do with my life
since I didn't enjoy my job.

I saw an advertisement for a
chocolate shop on sale and
then it hit me: I could do that!

I got a loan, bought the shop
and quit my job in an instant!

It was a BIG risk, but I was
determined to make it.

xxx

Total Score:

<p align="left"><font face="Berlin Sans FB Demi" size="30" color="#ffffff" letterSpacing="2.000000" kerning="0"><b><i>0</i></b></font></p>

CLICK HERE

Getting tired? Enjoying a cup of HOT CHOCOLATE from time to time.

xxx

xxx
xxx

0

80

150

Report

Money earned:

Tips:

Total:

<p align="right"><font face="Berlin Sans FB Demi" size="30" color="#ffffff" letterSpacing="1.000000" kerning="0"><b><i>xx</i></b></font></p>

<p align="right"><font face="Berlin Sans FB Demi" size="30" color="#ffffff" letterSpacing="1.000000" kerning="0"><b><i>xx</i></b></font></p>

Target score reached!!!

Expert score reached!!!

<p align="right"><font face="Berlin Sans FB Demi" size="30" color="#ffffff" letterSpacing="1.000000" kerning="0"><b><i>xx</i></b></font></p>

PAUSED

Continue

Restart

Main Menu

xx

New Customer

Old Woman

This old lady buys chocolate for herself and her grandchildren.
She’s not the wealthiest person on earth, but she doesn’t mind
waiting.

0

100

220

Target score reached!

Expert score reached!

Target score
not reached!

<p align="right"><font face="Berlin Sans FB Demi" size="34" color="#ffffff" letterSpacing="0.500000" kerning="0"><b>xx</b></font></p>

<p align="right"><font face="Berlin Sans FB Demi" size="34" color="#ffffff" letterSpacing="0.500000" kerning="0"><b>xx</b></font></p>

Goal:

You got:

Select the SPECIALTY
CHOCOLATE machine to produce
chocolate figures.

0

150

250

Getting tired? Enjoying a cup of
HOT CHOCOLATE from time to
time.

0

200

300

0

220

480

New BOXED CHOCOLATE machine
has been added!

0

280

0

350

670

0

400

880

0

1180

Congratulations on completing the demo!
Play the Premium version to get:
- 42 levels of fast-paced, customer serving fun!
- Bonus match-3 mini-game to unlock secret chocolates!
- Upgrade your store with up to 6 different machines!
- plus much more!
Don't forget to visit DChoc.com for more fun-filled games!

ActionScript [AS1/AS2]

Frame 2
function checkAdSelectionFromServer() { serverCheckStarted = true; frameToGo = "mochiad1"; var _local3 = "http://www-ad.digitalchocolate.com/?aid=6&iid=0"; var httpWrapper = new LoadVars(); httpWrapper.onLoad = function (_arg3) { serverCheckCompleted = true; if (_arg3) { var _local1 = new LoadVars(); _local1.decode(httpWrapper.toString()); var _local2 = 0; if (_local1.ad0 == _local2) { trace("AFG __________"); frameToGo = "googleAd"; } else { trace("MOCHI __________"); frameToGo = "mochiad1"; } } else { trace("check the URL for typos !!"); } }; httpWrapper.load(_local3); } stop(); var USE_SERVER_AD_CHECK = true; var frameToGo; var serverCheckCompleted; var serverCheckStarted; if (USE_SERVER_AD_CHECK && (!serverCheckStarted)) { checkAdSelectionFromServer(); } this.onEnterFrame = function () { loaded_bytes = _root.getBytesLoaded(); total_bytes = _root.getBytesTotal(); loadpercent = (loaded_bytes / total_bytes) * 100; if ((loadpercent < 100) || (USE_SERVER_AD_CHECK && (!serverCheckCompleted))) { mc_loading.gotoAndStop(int(loadpercent)); mc_loading.load_txt.text = int(loadpercent) + " %"; gotoAndPlay (1); } else { delete this.onEnterFrame; mc_loading._visible = false; gotoAndPlay(frameToGo); } };
Frame 4
function go(_arg4) { System.security.allowDomain("http://pagead2.googlesyndication.com/pagead"); trace("Loading Google ads swf..."); var _local2 = new Object(); _local2.onLoadStart = function () { trace("onLoadStart"); }; _local2.onLoadComplete = function () { trace("onLoadComplete"); }; _local2.onLoadInit = onLoadInit; _local2.onLoadError = function () { _root.gotoAndPlay("mochiad1"); trace("onLoadError"); }; var _local3 = new MovieClipLoader(); _local3.addListener(_local2); _local3.loadClip("http://pagead2.googlesyndication.com/pagead/googlevideoadslibrary.swf", _arg4); } function onLoadInit(_arg2) { var _local1 = new Object(); _local1.publisherId = PUBLISHER_ID; _local1.productType = PRODUCT_TYPE; _local1.contentId = CONTENT_ID; _local1.channels = ["VideoAd", "ChocolateShop", "Action_Preroll", "Fun_Preroll"]; _local1.adType = "video"; trace("Making video ad request call."); _arg2.requestAds(_local1, onVideoAdRequestResult); } function onVideoAdRequestResult(_arg2) { trace("Video ad request successful? " + _arg2.success); if (_arg2.success) { var player = _arg2.ads[0].getAdPlayerMovieClip(); player.setSize(800, 600); player.load(); player.playAds(); player.onError = function () { trace("Error occurred!"); }; player.onStateChange = function (_arg2, _arg1) { trace(((("State change from " + _arg2) + " to ") + _arg1) + "."); if (_arg1 == "completed") { trace("Video ad played to completion."); gotoAndPlay ("End"); player.destroy(); } }; } else { trace("Video ad request failure: " + _arg2.errorMsg); var _local1 = new Object(); _local1.publisherId = PUBLISHER_ID; _local1.productType = PRODUCT_TYPE; _local1.contentId = CONTENT_ID; _local1.channels = ["FullscreenAd", "ChocolateShop", "Action_Preroll", "Fun_Preroll"]; _local1.adType = "fullscreen"; _local1.adTimePosition = "0"; _local1.pubWidth = "800"; _local1.pubHeight = "600"; _local1.videoDescriptionUrl = "http://www.digitalchocolate.com/games/pc/chocolate-shop-frenzy.html"; _local1.numAds = "3"; trace("Making fullscreen ad request call."); adsLibrary.requestAds(_local1, onFullscreenAdRequestResult); } } function onFullscreenAdRequestResult(_arg2) { trace("Fullscreen ad request successful? " + _arg2.success); if (_arg2.success) { var player = _arg2.ads[0].getAdPlayerMovieClip(); player.setSize(800, 600); player.load(); player.playAds(10); player.onError = function () { trace("Error occurred!"); }; player.onStateChange = function (_arg3, _arg2) { trace(((("State change from " + _arg3) + " to ") + _arg2) + "."); if (_arg2 == "completed") { trace("Fullscreen ad played to completion."); _root.gotoAndPlay("end"); player.destroy(); } }; } else { trace("Fullscreen ad request failure: " + _arg2.errorMsg); _root.gotoAndPlay("mochiad1"); } } var adsLibrary = this.createEmptyMovieClip("adsLibrary", this.getNextHighestDepth()); var PUBLISHER_ID = "ca-games-pub-4900311177793300"; var PRODUCT_TYPE = 4; var CONTENT_ID = "dchocchocoshop"; go(adsLibrary);
Frame 5
stop();
Frame 7
_root.sAdID = "eeaa76021c64ed8f"; MochiAd.showPreGameAd({id:"eeaa76021c64ed8f", res:"800x600"}); stop();
Frame 9
function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = "__mochibot__"; mbc = "mochibot.com"; g = (_global ? (_global) : (_level0._root)); if (g[mb + swfid]) { return(g[mb + swfid]); } s = System.security; x = mc._root.getSWFVersion; fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5))); if (!s) { s = {}; } sb = s.sandboxType; if (sb == "localWithFile") { return(null); } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version)); u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : ""); lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv)))); g[mb + "level"] = lv; if (fv == 5) { res = "_level" + lv; if (!eval (res)) { loadMovieNum (u, lv); } } else { res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); } return(res); } __com_mochibot__("1f038b64", this, 10301, true);
Frame 10
function itemHandler(obj, item) { getURL ("http://www.digitalchocolate.com", "_blank"); trace("get dchoc.com"); } stop(); var URLAndVersionObj = new URLAndVersion(); var urlname = URLAndVersionObj.URL_Name; var versionno = URLAndVersionObj.Version_No; var premiumurl = URLAndVersionObj.Premium_URL; _global.soundstat = "onn"; _focusrect = false; root_cm = new ContextMenu(); root_cm.hideBuiltInItems(); root_cm.customItems.push(new ContextMenuItem("Visit Digital Chocolate", itemHandler)); _root.menu = root_cm; fscommand ("allowscale", false); this.main_mc.tabChildren = false; var menuSound = new Sound(); menuSound.attachSound("mainmenu.mp3", true); menuSound.onSoundComplete = function () { if (_global.soundstat == "onn") { menuSound.start(); } }; var gameSound = new Sound(); gameSound.attachSound("gamebgsnd.mp3", true); gameSound.onSoundComplete = function () { if (_global.soundstat == "onn") { gameSound.start(); } }; var calenderSound = new Sound(); calenderSound.attachSound("calendersnd.mp3", true); calenderSound.onSoundComplete = function () { if (_global.soundstat == "onn") { calenderSound.start(); } }; var choco_done_Sound = new Sound(); choco_done_Sound.attachSound("choco_done.mp3", true); var expert_score_Sound = new Sound(); expert_score_Sound.attachSound("expert_score.mp3", true); var target_score_Sound = new Sound(); target_score_Sound.attachSound("target_score.mp3", true); var hotchoco_done_Sound = new Sound(); hotchoco_done_Sound.attachSound("hotchoco_done.mp3", true); var combo1_Sound = new Sound(); combo1_Sound.attachSound("combo1.mp3", true); var combo2_Sound = new Sound(); combo2_Sound.attachSound("combo2.mp3", true); var combo3_Sound = new Sound(); combo3_Sound.attachSound("combo3.mp3", true); var phonering_Sound = new Sound(main); phonering_Sound.attachSound("phonering.mp3", true); phonering_Sound.onSoundComplete = function () { if (_global.soundstat == "onn") { phonering_Sound.start(); } }; var customer_happy_Sound = new Sound(); customer_happy_Sound.attachSound("customer_happy.mp3", true); var level_complete_Sound = new Sound(); level_complete_Sound.attachSound("level_complete.mp3", true); var level_failed_Sound = new Sound(); level_failed_Sound.attachSound("level_failed.mp3", true); var money1_Sound = new Sound(); money1_Sound.attachSound("money1.mp3", true); var money2_Sound = new Sound(); money2_Sound.attachSound("money2.mp3", true); var money3_Sound = new Sound(); money3_Sound.attachSound("money3.mp3", true); var choco_producing_Sound = new Sound(); choco_producing_Sound.attachSound("choco_producing.mp3", true);
Symbol 5 MovieClip Frame 10
_parent.gotoAndStop(2);
Symbol 55 MovieClip Frame 32
_parent.gotoAndStop(2);
Symbol 71 MovieClip Frame 15
stop(); this._visible = false; this.removeMovieClip();
Symbol 76 MovieClip Frame 20
stop(); this._visible = false; this.removeMovieClip();
Symbol 77 MovieClip [oldlady] Frame 1
stop();
Symbol 77 MovieClip [oldlady] Frame 2
stop();
Symbol 77 MovieClip [oldlady] Frame 3
stop();
Symbol 77 MovieClip [oldlady] Frame 4
stop();
Symbol 77 MovieClip [oldlady] Frame 5
stop();
Symbol 77 MovieClip [oldlady] Frame 6
stop();
Symbol 83 MovieClip Frame 7
_parent.gotoAndStop(2);
Symbol 135 MovieClip Frame 48
_parent.gotoAndStop(2);
Symbol 147 MovieClip Frame 12
stop(); this._visible = false; this.removeMovieClip();
Symbol 151 MovieClip Frame 20
stop(); this._visible = false; this.removeMovieClip();
Symbol 152 MovieClip [younglady] Frame 1
stop();
Symbol 152 MovieClip [younglady] Frame 2
stop();
Symbol 152 MovieClip [younglady] Frame 3
stop();
Symbol 152 MovieClip [younglady] Frame 4
stop();
Symbol 152 MovieClip [younglady] Frame 5
stop();
Symbol 152 MovieClip [younglady] Frame 6
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
stop();
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 120
stop();
Symbol 178 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 25
stop();
Symbol 204 MovieClip Frame 25
stop();
Symbol 207 MovieClip Frame 25
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 2
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 2
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 2
stop();
Symbol 220 MovieClip Frame 3
stop();
Symbol 220 MovieClip Frame 4
stop();
Symbol 220 MovieClip Frame 5
stop();
Symbol 221 MovieClip Frame 74
stop(); chocobox.gotoAndStop(_parent.neededchocolate); if (_global.levelSelected != 1) { if ((_parent.neededchocolate == _parent._parent.preferred_chocolate1) || (_parent.neededchocolate == _parent._parent.preferred_chocolate2)) { _parent.green_highlight._visible = true; } }
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 2
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 2
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 2
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 2
stop();
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 2
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 2
stop();
Symbol 254 MovieClip Frame 3
stop();
Symbol 257 MovieClip Frame 35
stop();
Symbol 258 MovieClip Frame 53
stop();
Symbol 259 MovieClip [orderbook] Frame 1
stop();
Instance of Symbol 175 MovieClip "pointer" in Symbol 259 MovieClip [orderbook] Frame 1
onClipEvent (load) { _visible = false; }
Symbol 259 MovieClip [orderbook] Frame 2
stop();
Symbol 259 MovieClip [orderbook] Frame 3
stop();
Symbol 1693 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd { function MochiAd () { } static function getVersion() { return("2.7"); } static function showPreGameAd(options) { var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }, ad_failed:function () { trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_loaded:function (width, height) { }, ad_skipped:function () { }, ad_progress:function (percent) { }}; options = _parseOptions(options, _local26); if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") { options.ad_started(); options.ad_finished(); return(undefined); } var clip = options.clip; var _local22 = 11000; var _local25 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local14 = _getRes(options); var _local4 = _local14[0]; var _local13 = _local14[1]; mc._x = _local4 * 0.5; mc._y = _local13 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk._x = _local4 * -0.5; chk._y = _local13 * -0.5; var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4); if (options.no_progress_bar) { _local6._visible = false; delete options.no_progress_bar; } else { _local6._x = 10; _local6._y = _local13 - 20; } var _local21 = options.color; delete options.color; var _local19 = options.background; delete options.background; var _local23 = options.outline; delete options.outline; var _local5 = _local6.createEmptyMovieClip("_outline", 1); _local5.beginFill(_local19); _local5.moveTo(0, 0); _local5.lineTo(_local4 - 20, 0); _local5.lineTo(_local4 - 20, 10); _local5.lineTo(0, 10); _local5.lineTo(0, 0); _local5.endFill(); var _local3 = _local6.createEmptyMovieClip("_inside", 2); _local3.beginFill(_local21); _local3.moveTo(0, 0); _local3.lineTo(_local4 - 20, 0); _local3.lineTo(_local4 - 20, 10); _local3.lineTo(0, 10); _local3.lineTo(0, 0); _local3.endFill(); _local3._xscale = 0; var _local7 = _local6.createEmptyMovieClip("_outline", 3); _local7.lineStyle(0, _local23, 100); _local7.moveTo(0, 0); _local7.lineTo(_local4 - 20, 0); _local7.lineTo(_local4 - 20, 10); _local7.lineTo(0, 10); _local7.lineTo(0, 0); chk.ad_msec = _local22; chk.ad_timeout = _local25; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)); if (_local2 > 0) { this._parent._alpha = _local2; } else { var _local3 = this._parent._parent; MochiAd.unload(_local3); delete this.onEnterFrame; } }; mc.lc.regContLC = function (_arg1) { mc._containerLCName = _arg1; }; var sendHostProgress = false; mc.lc.sendHostLoadProgress = function (lc_name) { sendHostProgress = true; }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (_arg3) { var _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = _arg3; }; mc.lc.rpc = function (_arg2, _arg1) { MochiAd.rpc(clip, _arg2, _arg1); }; mc.rpcTestFn = function (_arg1) { trace("[MOCHIAD rpcTestFn] " + _arg1); return(_arg1); }; chk.onEnterFrame = function () { var _local6 = this._parent._parent; var _local11 = this._parent._mochiad_ctr; var _local5 = getTimer() - this.started; var _local3 = false; var _local4 = _local6.getBytesTotal(); var _local8 = _local6.getBytesLoaded(); var _local2 = (100 * _local8) / _local4; var _local10 = (100 * _local5) / chk.ad_msec; var _local9 = this._mochiad_bar._inside; var _local13 = Math.min(100, Math.min(_local2 || 0, _local10)); _local13 = Math.max(this.last_pcnt, _local13); this.last_pcnt = _local13; _local9._xscale = _local13; options.ad_progress(_local13); if (sendHostProgress) { clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2}); if (_local2 == 100) { sendHostProgress = false; } } if (!chk.showing) { var _local7 = _local11.getBytesTotal(); if ((_local7 > 0) || (typeof(_local7) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) { options.ad_failed(); _local3 = true; } } if (_local5 > chk.ad_msec) { _local3 = true; } if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; } static function showClickAwayAd(options) { var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () { }, ad_finished:function () { }, ad_loaded:function (width, height) { }, ad_failed:function () { trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function () { }}; options = _parseOptions(options, _local9); var clip = options.clip; var _local8 = options.ad_timeout; delete options.ad_timeout; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local4 = _getRes(options); var _local10 = _local4[0]; var _local7 = _local4[1]; mc._x = _local10 * 0.5; mc._y = _local7 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_timeout = _local8; chk.started = getTimer(); chk.showing = false; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.rpc = function (_arg2, _arg1) { MochiAd.rpc(clip, _arg2, _arg1); }; mc.rpcTestFn = function (_arg1) { trace("[MOCHIAD rpcTestFn] " + _arg1); return(_arg1); }; var _local20 = false; mc.lc.regContLC = function (_arg1) { mc._containerLCName = _arg1; }; chk.onEnterFrame = function () { var _local5 = this._parent._mochiad_ctr; var _local4 = getTimer() - this.started; var _local2 = false; if (!chk.showing) { var _local3 = _local5.getBytesTotal(); if ((_local3 > 0) || (typeof(_local3) == "undefined")) { _local2 = true; chk.showing = true; chk.started = getTimer(); } else if (_local4 > chk.ad_timeout) { options.ad_failed(); _local2 = true; } } if (_local2) { delete this.onEnterFrame; } }; } static function showInterLevelAd(options) { var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }, ad_failed:function () { trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_loaded:function (width, height) { }, ad_skipped:function () { }}; options = _parseOptions(options, _local13); var clip = options.clip; var _local10 = 11000; var _local12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local5 = _getRes(options); var _local14 = _local5[0]; var _local11 = _local5[1]; mc._x = _local14 * 0.5; mc._y = _local11 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_msec = _local10; chk.ad_timeout = _local12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)); if (_local2 > 0) { this._parent._alpha = _local2; } else { var _local3 = this._parent._parent; MochiAd.unload(_local3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (_arg3) { var _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = _arg3 - 250; }; mc.lc.rpc = function (_arg2, _arg1) { MochiAd.rpc(clip, _arg2, _arg1); }; mc.rpcTestFn = function (_arg1) { trace("[MOCHIAD rpcTestFn] " + _arg1); return(_arg1); }; chk.onEnterFrame = function () { var _local5 = this._parent._mochiad_ctr; var _local4 = getTimer() - this.started; var _local2 = false; if (!chk.showing) { var _local3 = _local5.getBytesTotal(); if ((_local3 > 0) || (typeof(_local3) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (_local4 > chk.ad_timeout) { options.ad_failed(); _local2 = true; } } if (_local4 > chk.ad_msec) { _local2 = true; } if (_local2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; } static function showPreloaderAd(_arg1) { trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0"); showPreGameAd(_arg1); } static function showTimedAd(_arg1) { trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0"); showInterLevelAd(_arg1); } static function _allowDomains(_arg2) { var _local1 = _arg2.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(_local1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(_local1); } } return(_local1); } static function load(_arg3) { var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; _arg3 = _parseOptions(_arg3, _local13); _arg3.swfv = _arg3.clip.getSWFVersion() || 6; _arg3.mav = getVersion(); var _local9 = _arg3.clip; if (!_isNetworkAvailable()) { return(null); } if (_local9._mochiad_loaded) { return(null); } var _local12 = _arg3.depth; delete _arg3.depth; var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12); var _local11 = _getRes(_arg3); _arg3.res = (_local11[0] + "x") + _local11[1]; _arg3.server = _arg3.server + _arg3.id; delete _arg3.id; _local9._mochiad_loaded = true; var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1); for (var _local7 in _arg3) { _local4[_local7] = _arg3[_local7]; } var _local10 = _local4.server; delete _local4.server; var _local14 = _allowDomains(_local10); _local6.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; MochiAd.unload(this._parent); } }; } }; var _local5 = new LocalConnection(); var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); _local5.mc = _local6; _local5.name = _local8; _local5.hostname = _local14; _local5.allowDomain = function (d) { return(true); }; _local5.allowInsecureDomain = _local5.allowDomain; _local5.connect(_local8); _local6.lc = _local5; _local4.lc = _local8; _local4.st = getTimer(); _local4.loadMovie(_local10 + ".swf", "POST"); return(_local6); } static function unload(_arg2) { if (typeof(_arg2) == "undefined") { _arg2 = _root; } if (_arg2.clip && (_arg2.clip._mochiad)) { _arg2 = _arg2.clip; } if (!_arg2._mochiad) { return(false); } if (_arg2._mochiad._containerLCName != undefined) { _arg2._mochiad.lc.send(_arg2._mochiad._containerLCName, "notify", {id:"unload"}); } _arg2._mochiad.removeMovieClip(); delete _arg2._mochiad_loaded; delete _arg2._mochiad; return(true); } static function _isNetworkAvailable() { if (System.security) { var _local1 = System.security; if (_local1.sandboxType == "localWithFile") { return(false); } } return(true); } static function _getRes(_arg5) { var _local3 = _arg5.clip.getBounds(); var _local2 = 0; var _local1 = 0; if (typeof(_arg5.res) != "undefined") { var _local4 = _arg5.res.split("x"); _local2 = parseFloat(_local4[0]); _local1 = parseFloat(_local4[1]); } else { _local2 = _local3.xMax - _local3.xMin; _local1 = _local3.yMax - _local3.yMin; } if ((_local2 == 0) || (_local1 == 0)) { _local2 = Stage.width; _local1 = Stage.height; } return([_local2, _local1]); } static function _parseOptions(_arg6, _arg7) { var _local4 = {}; for (var _local8 in _arg7) { _local4[_local8] = _arg7[_local8]; } if (_arg6) { for (var _local8 in _arg6) { _local4[_local8] = _arg6[_local8]; } } if (_root.mochiad_options) { var _local5 = _root.mochiad_options.split("&"); var _local2 = 0; while (_local2 < _local5.length) { var _local3 = _local5[_local2].split("="); _local4[unescape(_local3[0])] = unescape(_local3[1]); _local2++; } } if (_local4.id == "test") { trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); } return(_local4); } static function rpc(_arg1, _arg5, _arg2) { switch (_arg2.id) { case "setValue" : setValue(_arg1, _arg2.objectName, _arg2.value); break; case "getValue" : var _local4 = getValue(_arg1, _arg2.objectName); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg5, _local4); break; case "runMethod" : var _local3 = runMethod(_arg1, _arg2.method, _arg2.args); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg5, _local3); break; default : trace("[mochiads rpc] unknown rpc id: " + _arg2.id); } } static function setValue(_arg3, _arg5, _arg4) { var _local2 = _arg5.split("."); var _local1; _local1 = 0; while (_local1 < (_local2.length - 1)) { if ((_arg3[_local2[_local1]] == undefined) || (_arg3[_local2[_local1]] == null)) { return(undefined); } _arg3 = _arg3[_local2[_local1]]; _local1++; } _arg3[_local2[_local1]] = _arg4; } static function getValue(_arg3, _arg4) { var _local2 = _arg4.split("."); var _local1; _local1 = 0; while (_local1 < (_local2.length - 1)) { if ((_arg3[_local2[_local1]] == undefined) || (_arg3[_local2[_local1]] == null)) { return(undefined); } _arg3 = _arg3[_local2[_local1]]; _local1++; } return(_arg3[_local2[_local1]]); } static function runMethod(_arg3, _arg5, _arg4) { var _local2 = _arg5.split("."); var _local1; _local1 = 0; while (_local1 < (_local2.length - 1)) { if ((_arg3[_local2[_local1]] == undefined) || (_arg3[_local2[_local1]] == null)) { return(undefined); } _arg3 = _arg3[_local2[_local1]]; _local1++; } if (typeof(_arg3[_local2[_local1]]) == "function") { return(_arg3[_local2[_local1]].apply(_arg3, _arg4)); } return(undefined); } }
Symbol 1694 MovieClip [__Packages.URLAndVersion] Frame 0
class URLAndVersion { var URL_Name, Premium_URL, Version_No; function URLAndVersion () { URL_Name = "http://www.digitalchocolate.com"; Premium_URL = "http://www-redir.digitalchocolate.com/?aid=58&iid=0&type=upsale"; Version_No = "\u00A9 2008-2009 Digital Chocolate Inc. Version 1.0.2"; } }
Symbol 1695 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon { function OnEnterFrameBeacon () { } static function init() { var _local4 = _global.MovieClip; if (!_root.__OnEnterFrameBeacon) { mx.transitions.BroadcasterMX.initialize(_local4); var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876); _local3.onEnterFrame = function () { _global.MovieClip.broadcastMessage("onEnterFrame"); }; } } static var version = "1.1.0.52"; }
Symbol 1696 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX { var _listeners; function BroadcasterMX () { } static function initialize(_arg1, _arg2) { if (_arg1.broadcastMessage != undefined) { delete _arg1.broadcastMessage; } _arg1.addListener = mx.transitions.BroadcasterMX.prototype.addListener; _arg1.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener; if (!_arg2) { _arg1._listeners = new Array(); } } function addListener(_arg2) { removeListener(_arg2); if (broadcastMessage == undefined) { broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage; } return(_listeners.push(_arg2)); } function removeListener(_arg4) { var _local2 = _listeners; var _local3 = _local2.length; while (_local3--) { if (_local2[_local3] == _arg4) { _local2.splice(_local3, 1); if (!_local2.length) { broadcastMessage = undefined; } return(true); } } return(false); } function broadcastMessage() { var _local5 = String(arguments.shift()); var _local4 = _listeners.concat(); var _local6 = _local4.length; var _local3 = 0; while (_local3 < _local6) { _local4[_local3][_local5].apply(_local4[_local3], arguments); _local3++; } } static var version = "1.1.0.52"; }
Symbol 1697 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween { var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime; function Tween (_arg8, _arg5, _arg4, _arg3, _arg6, _arg7, _arg9) { mx.transitions.OnEnterFrameBeacon.init(); if (!arguments.length) { return; } obj = _arg8; prop = _arg5; begin = _arg3; position = (_arg3); duration = (_arg7); useSeconds = _arg9; if (_arg4) { func = _arg4; } finish = (_arg6); _listeners = []; addListener(this); start(); } function set time(_arg2) { prevTime = _time; if (_arg2 > duration) { if (looping) { rewind(_arg2 - _duration); update(); broadcastMessage("onMotionLooped", this); } else { if (useSeconds) { _time = _duration; update(); } stop(); broadcastMessage("onMotionFinished", this); } } else if (_arg2 < 0) { rewind(); update(); } else { _time = _arg2; update(); } //return(time); } function get time() { return(_time); } function set duration(_arg3) { _duration = (((_arg3 == null) || (_arg3 <= 0)) ? (_global.Infinity) : (_arg3)); //return(duration); } function get duration() { return(_duration); } function set FPS(_arg3) { var _local2 = isPlaying; stopEnterFrame(); _fps = _arg3; if (_local2) { startEnterFrame(); } //return(FPS); } function get FPS() { return(_fps); } function set position(_arg2) { setPosition(_arg2); //return(position); } function setPosition(_arg2) { prevPos = _pos; obj[prop] = (_pos = _arg2); broadcastMessage("onMotionChanged", this, _pos); updateAfterEvent(); } function get position() { return(getPosition()); } function getPosition(_arg2) { if (_arg2 == undefined) { _arg2 = _time; } return(func(_arg2, begin, change, _duration)); } function set finish(_arg2) { change = _arg2 - begin; //return(finish); } function get finish() { return(begin + change); } function continueTo(_arg3, _arg2) { begin = position; finish = (_arg3); if (_arg2 != undefined) { duration = (_arg2); } start(); } function yoyo() { continueTo(begin, time); } function startEnterFrame() { if (_fps == undefined) { _global.MovieClip.addListener(this); } else { _intervalID = setInterval(this, "onEnterFrame", 1000 / _fps); } isPlaying = true; } function stopEnterFrame() { if (_fps == undefined) { _global.MovieClip.removeListener(this); } else { clearInterval(_intervalID); } isPlaying = false; } function start() { rewind(); startEnterFrame(); broadcastMessage("onMotionStarted", this); } function stop() { stopEnterFrame(); broadcastMessage("onMotionStopped", this); } function resume() { fixTime(); startEnterFrame(); broadcastMessage("onMotionResumed", this); } function rewind(_arg2) { _time = ((_arg2 == undefined) ? 0 : (_arg2)); fixTime(); update(); } function fforward() { time = (_duration); fixTime(); } function nextFrame() { if (useSeconds) { time = ((getTimer() - _startTime) / 1000); } else { time = (_time + 1); } } function onEnterFrame() { nextFrame(); } function prevFrame() { if (!useSeconds) { time = (_time - 1); } } function toString() { return("[Tween]"); } function fixTime() { if (useSeconds) { _startTime = getTimer() - (_time * 1000); } } function update() { position = (getPosition(_time)); } static var version = "1.1.0.52"; static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init(); static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true); function func(_arg2, _arg4, _arg3, _arg1) { return(((_arg3 * _arg2) / _arg1) + _arg4); } }
Symbol 1698 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong { function Strong () { } static function easeIn(_arg1, _arg4, _arg3, _arg2) { _arg1 = _arg1 / _arg2; return((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg4); } static function easeOut(_arg1, _arg4, _arg3, _arg2) { _arg1 = (_arg1 / _arg2) - 1; return((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg4); } static function easeInOut(_arg1, _arg3, _arg2, _arg4) { _arg1 = _arg1 / (_arg4 / 2); if (_arg1 < 1) { return(((((((_arg2 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg3); } _arg1 = _arg1 - 2; return(((_arg2 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg3); } static var version = "1.1.0.52"; }
Symbol 1699 MovieClip [__Packages.Level2] Frame 0
class Level2 extends MovieClip { var salesGirl, btn_pause, _parent, choco_machines, scoreIndicateClip, shopclosedClip, timerClip, chocolate_container, specialcho_container, coffeeClip, chocolateClip, phone_mc, popup_mc, selectClip, special_choco_machines, dusbin, coffee_machine, heartinClip, shopopenClip, reportMc, cancel_mc, infoClip, comboClip, dusbinContainer, curScoreClip, expertScoreClip, table3, table2, table1, coin_Anim3, coin_Anim2, coin_Anim1, leve2Keyobj, keyTarget, pauseTarget, scoreClip, radian, targetDirection, preferred_chocolate1, preferred_chocolate2, customer1, attachMovie, orderbook1, getNextHighestDepth, customer2, orderbook2, customer3, orderbook3, selectedTable, moveTarget; function Level2 () { super(); } function onLoad() { var owner = this; clearInterval(popup_interval); clearInterval(process_interval); Reset(); salesGirl.coffeeicon._visible = false; btn_pause._visible = true; _parent.pauseClip._visible = false; salesGirl.gotoAndStop(currentDirection); salesGirl.chocolateCount = 0; choco_machines.status = "empty"; salesGirl.girlwalk.gotoAndStop(girlwalkframe); scoreIndicateClip._visible = false; shopclosedClip._visible = false; timerClip._visible = false; chocolate_container._visible = false; specialcho_container._visible = false; coffeeClip._visible = false; chocolateClip._visible = false; phone_mc._visible = false; popup_mc._visible = false; selectClip._visible = false; choco_machines._visible = false; special_choco_machines._visible = false; dusbin._visible = false; coffee_machine._visible = false; heartinClip._visible = false; shopopenClip._visible = false; reportMc._visible = false; cancel_mc._visible = false; infoClip._visible = false; comboClip._visible = false; dusbinContainer._visible = false; curScoreClip._visible = false; expertScoreClip._visible = false; table2._visible = (table3._visible = false); table1._visible = false; coin_Anim2._visible = (coin_Anim3._visible = false); coin_Anim1._visible = false; table1.point = 1; table2.point = 2; table3.point = 3; owner.combo_bookcnt = 0; owner.combo_ordercnt = 0; owner.combo_moneycnt = 0; owner.customerCount = 0; owner.moneyCount = 0; owner.table2._visible = (owner.table3._visible = false); owner.table1._visible = false; owner.lobbyArr.length = 0; owner.lobbyArr = new Array(1, 2, 3); owner.popupDisable(); var randomno = owner.getRandom(0, 2); owner.customerEnterInterval = setInterval(owner.CallCustomer, 2000, owner, owner.lobbyArr[randomno], "younglady"); owner.lobbyArr.splice(randomno, 1); var randomno = owner.getRandom(0, owner.lobbyArr.length - 1); owner.customerEnterInterval2 = setInterval(owner.CallCustomer2, 4000, owner, owner.lobbyArr[randomno], "younglady"); owner.lobbyArr.splice(randomno, 1); owner.isPopup = false; owner.popup_info = "level2_start"; owner.bg.gotoAndStop(2); owner.shopopenClip._visible = true; owner.shopopenClip.gotoAndPlay(1); owner.ismoveready = true; owner.machineStatus = "ready"; owner.dusbinStatus = "ready"; owner.choco_machines._visible = true; owner.choco_machines.single_machine.gotoAndStop(2); owner.dusbin._visible = true; owner.dusbin.gotoAndStop(2); owner.timerClip._visible = true; clearInterval(owner.gameInterval); owner.gametimer = 0; owner.gameInterval = setInterval(owner.GameTimeLimit, 730, owner); owner.Re_customerEnterInterval = setInterval(owner.CallNewCustomer, 6000, owner); btn_pause.onRelease = function () { if (this._visible && (owner._parent.pauseClip._visible == false)) { owner.pauseTarget = "btn_continue"; owner.isPaused = true; owner.isPopup = true; this._visible = false; owner._parent.pauseClip._visible = true; owner._parent.pauseClip.gotoAndPlay(2); owner.CallPause(); } }; leve2Keyobj = new Object(); Key.addListener(leve2Keyobj); leve2Keyobj.onKeyUp = function () { if (Key.getCode() == 13) { if ((!owner.isPaused) && (!owner.isGameOver)) { owner.StoreInSequence(); } } }; leve2Keyobj.onKeyDown = function () { if (Key.getCode() == 37) { if (!owner.isPaused) { owner.LeftNavigation(); } } else if (Key.getCode() == 39) { if (!owner.isPaused) { owner.RightNavigation(); } } else if (Key.getCode() == 38) { if (!owner.isPaused) { owner.UpNavigation(); } else { owner.pauseUpNavigation(); } } else if (Key.getCode() == 40) { if (!owner.isPaused) { owner.DownNavigation(); } else { owner.pauseDownNavigation(); } } else if (Key.getCode() == 13) { if (owner.popup_mc._visible) { owner.popup_mc.btn_ok.onRelease(); } else if (owner.reportMc._visible) { if (owner.reportMc._currentframe == 1) { owner.reportMc.mc.btn_continue.onRelease(); } else { owner.reportMc.mc.btn_retry.onRelease(); } } else if (!owner.isPaused) { trace("enter press"); owner.EnterFunction(); } else { owner.PauseEnterFunction(); } } else if (Key.getAscii() == 27) { if (!owner.isPaused) { owner.btn_pause.onRelease(); } else if (owner.isPaused) { owner._parent.pauseClip.btn_continue.onRelease(); } } }; table1.onRollOver = (table2.onRollOver = (table3.onRollOver = function () { if ((!owner.isPaused) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = this._name; owner.moveTarget = this._name; if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(2); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(2); } eval ("this.orderbook" + this.point).highlight.gotoAndStop(2); } })); table1.onRollOut = (table2.onRollOut = (table3.onRollOut = function () { eval ("this.orderbook" + this.point).highlight.gotoAndStop(1); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(1); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(1); } })); choco_machines.onRollOver = function () { if (((owner.machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "choco_machines"; owner.moveTarget = "choco_machines"; this.single_machine.gotoAndStop(3); } }; choco_machines.onRollOut = (choco_machines.onReleaseOutside = function () { this.single_machine.gotoAndStop(2); }); dusbin.onRollOver = function () { if ((owner.dusbinStatus == "ready") && (!owner.isPaused)) { owner.ObjectsRollOut(); owner.keyTarget = "dusbin"; owner.moveTarget = "dusbin"; this.gotoAndStop(3); } }; dusbin.onRollOut = (dusbin.onReleaseOutside = function () { this.gotoAndStop(2); }); choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.choco_machines); } }; choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); this.pointer._visible = true; } }; dusbin.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.dusbin); } }; dusbin.onPress = function () { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); this.pointer._visible = true; } }; table1.onRelease = (table2.onRelease = (table3.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(this); } })); table1.onPress = (table2.onPress = (table3.onPress = function () { trace((("from table len=" + owner.sequenceArr.length) + ", ") + owner.sequenceArr); if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = this._name; owner.calculateAngle(this); if (owner.selectedTarget == "table1") { owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.selectedTable = 3; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } })); } function LeftNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_box") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_triangle.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOut(); eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOver(); } } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); if (table3._visible) { table3.onRollOver(); } else if (table2._visible) { table2.onRollOver(); } else if (table1._visible) { table1.onRollOver(); } } else if (keyTarget == "dusbin") { dusbin.onRollOut(); choco_machines.onRollOver(); } } function RightNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_box.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOut(); eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOver(); } } else if (keyTarget == undefined) { choco_machines.onRollOver(); } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); dusbin.onRollOver(); } else if (((keyTarget == "table1") || (keyTarget == "table2")) || (keyTarget == "table3")) { eval ("this." + keyTarget).onRollOut(); choco_machines.onRollOver(); } } function UpNavigation() { if (keyTarget == "table1") { if (table2._visible) { table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table2") { if (table3._visible) { table2.onRollOut(); table3.onRollOver(); } } } function DownNavigation() { if (keyTarget == "table3") { if (table2._visible) { table3.onRollOut(); table2.onRollOver(); } else if (table1._visible) { table3.onRollOut(); table1.onRollOver(); } } else if (keyTarget == "table2") { if (table1._visible) { table2.onRollOut(); table1.onRollOver(); } } } function EnterFunction() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_triangle.onRelease(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_round.onRelease(); } else if (keyTarget == "type_box") { chocolate_container.mc.type_box.onRelease(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRelease(); } else if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRelease(); } } else { eval ("this." + keyTarget).onPress(); } } function PauseEnterFunction() { eval ("this._parent.pauseClip." + pauseTarget).onRelease(); } function pauseUpNavigation() { if (pauseTarget == "btn_premium") { _parent.pauseClip.btn_premium.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_continue.onRollOver(); } } function pauseDownNavigation() { if (pauseTarget == "pause") { _parent.pauseClip.btn_continue.onRollOver(); } else if (pauseTarget == "btn_continue") { _parent.pauseClip.btn_continue.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_premium.onRollOver(); } } function updateScore() { scoreClip.score_txt.text = score; scoreClip.loading.gotoAndStop(score); if ((score >= 100) && (scoreClip.target._currentframe == 1)) { scoreClip.target.gotoAndPlay(1); scoreIndicateClip._visible = true; scoreIndicateClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.target_score_Sound.start(); } } if ((score >= 220) && (scoreClip.expert._currentframe == 1)) { scoreClip.expert.gotoAndPlay(1); expertScoreClip._visible = true; expertScoreClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.expert_score_Sound.start(); } } } function onEnterFrame() { var owner = this; if ((!isPopup) && (!owner.isPaused)) { shopperMovement(); } if (machineshake == "onn") { machinespeed = -machinespeed; choco_machines._x = choco_machines._x + ((1 * machinespeed) / 1.5); choco_machines._y = choco_machines._y + ((1 * machinespeed) / 1.5); } _parent.pauseClip.btn_continue.onRollOver = (_parent.pauseClip.btn_restart.onRollOver = (_parent.pauseClip.btn_mainmenu.onRollOver = (_parent.pauseClip.btn_premium.onRollOver = function () { owner._parent.pauseClip.btn_continue.onRollOut(); owner._parent.pauseClip.btn_restart.onRollOut(); owner._parent.pauseClip.btn_mainmenu.onRollOut(); owner._parent.pauseClip.btn_premium.onRollOut(); owner.pauseTarget = this._name; this.gotoAndStop(2); }))); _parent.pauseClip.btn_continue.onRollOut = (_parent.pauseClip.btn_restart.onRollOut = (_parent.pauseClip.btn_mainmenu.onRollOut = (_parent.pauseClip.btn_premium.onRollOut = function () { this.gotoAndStop(1); }))); _parent.pauseClip.btn_continue.onRelease = function () { owner.isPaused = false; owner.isPopup = false; owner.btn_pause._visible = true; owner._parent.pauseClip._visible = false; owner.CallResume(); }; _parent.pauseClip.btn_restart.onRelease = function () { owner.Reset(); owner._parent.play(); }; _parent.pauseClip.btn_mainmenu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; _parent.pauseClip.btn_premium.onRelease = function () { this.getURL(_root.urlname, "_blank"); }; popup_mc.btn_ok.onRollOver = function () { this.gotoAndStop(2); }; popup_mc.btn_ok.onRollOut = (popup_mc.btn_ok.onReleaseOutside = function () { this.gotoAndStop(1); }); chocolate_container.mc.type_triangle.onRollOver = (chocolate_container.mc.type_round.onRollOver = (chocolate_container.mc.type_box.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.chocolate_container.mc.type_triangle.gotoAndStop(1); owner.chocolate_container.mc.type_round.gotoAndStop(1); owner.chocolate_container.mc.type_box.gotoAndStop(1); this.gotoAndStop(2); } })); chocolate_container.mc.type_triangle.onRelease = (chocolate_container.mc.type_round.onRelease = (chocolate_container.mc.type_box.onRelease = function () { if (!owner.isPaused) { owner.infoClip._visible = false; owner.chocolateClip._visible = true; owner.chocolateClip.gotoAndStop(this._name); owner.chocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_chocolate = this._name; if (owner.choco_machines.status == "empty") { owner.choco_machines.status = "prepared"; } owner.preparecnt = 0; owner.process_interval = setInterval(owner.IdleProcess, 100, owner); owner.chocolate_container.gotoAndStop(2); owner.dusbinStatus = "ready"; owner.machineStatus = "ready"; owner.isPopup = false; owner.machineshake = "onn"; owner.keyTarget = "choco_machines"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { trace("call"); owner.CallSequence(); } } })); chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.machineStatus = "ready"; owner.dusbinStatus = "ready"; owner.chocolate_container._visible = false; owner.isPopup = false; owner.keyTarget = "choco_machines"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { trace("call close"); owner.CallSequence(); } } }; dusbinContainer.mc.chocobox1.type_triangle.onRollOver = (dusbinContainer.mc.chocobox1.type_round.onRollOver = (dusbinContainer.mc.chocobox1.type_box.onRollOver = (dusbinContainer.mc.chocobox2.type_triangle.onRollOver = (dusbinContainer.mc.chocobox2.type_round.onRollOver = (dusbinContainer.mc.chocobox2.type_box.onRollOver = function () { owner.keyTarget = this._name; this.gotoAndStop(2); }))))); dusbinContainer.mc.chocobox1.type_triangle.onRollOut = (dusbinContainer.mc.chocobox1.type_round.onRollOut = (dusbinContainer.mc.chocobox1.type_box.onRollOut = (dusbinContainer.mc.chocobox2.type_triangle.onRollOut = (dusbinContainer.mc.chocobox2.type_round.onRollOut = (dusbinContainer.mc.chocobox2.type_box.onRollOut = function () { this.gotoAndStop(1); }))))); dusbinContainer.mc.chocobox1.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_box.onReleaseOutside = function () { this.gotoAndStop(1); }))))); dusbinContainer.mc.chocobox1.type_triangle.onRelease = (dusbinContainer.mc.chocobox1.type_round.onRelease = (dusbinContainer.mc.chocobox1.type_box.onRelease = (dusbinContainer.mc.chocobox2.type_triangle.onRelease = (dusbinContainer.mc.chocobox2.type_round.onRelease = (dusbinContainer.mc.chocobox2.type_box.onRelease = function () { if (!owner.isPaused) { if (this._name == owner.preferred_chocolate1) { owner.preferred_chocolate1 = owner.preferred_chocolate2; owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } else { owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }))))); dusbinContainer.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; reportMc.mc.btn_continue.onRelease = function () { owner.Reset(); _global.calenderfrom = "game"; owner._parent.gotoAndStop("calender"); }; reportMc.mc.btn_menu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; reportMc.mc.btn_retry.onRelease = function () { owner.Reset(); owner._parent.play(); }; popup_mc.btn_ok.onRelease = function () { if (owner.popup_info == "welcome") { owner.combo_bookcnt = 0; owner.combo_ordercnt = 0; owner.combo_moneycnt = 0; owner.customerCount = 0; owner.moneyCount = 0; owner.table2._visible = (owner.table3._visible = false); owner.table1._visible = false; owner.lobbyArr.length = 0; owner.lobbyArr = new Array(1, 2, 3); owner.btn_pause._visible = true; owner.popupDisable(); var _local1 = owner.getRandom(0, 2); owner.customerEnterInterval = setInterval(owner.CallCustomer, 2000, owner, owner.lobbyArr[_local1], "younglady"); _local1 = owner.getRandom(0, owner.lobbyArr.length - 1); owner.customerEnterInterval2 = setInterval(owner.CallCustomer2, 5000, owner, owner.lobbyArr[_local1], "younglady"); owner.lobbyArr.splice(_local1, 1); owner.isPopup = false; owner.popup_info = "level2_start"; owner.bg.gotoAndStop(2); owner.shopopenClip._visible = true; owner.shopopenClip.gotoAndPlay(1); owner.ismoveready = true; owner.machineStatus = "ready"; owner.dusbinStatus = "ready"; owner.choco_machines._visible = true; owner.choco_machines.single_machine.gotoAndStop(2); owner.dusbin._visible = true; owner.dusbin.gotoAndStop(2); owner.timerClip._visible = true; clearInterval(owner.gameInterval); owner.gametimer = 0; owner.gameInterval = setInterval(owner.GameTimeLimit, 1000, owner); } else if (owner.popup_info == "order") { owner.popupDisable(); owner.isPopup = false; owner.popup_info = ""; owner.selectClip._visible = true; owner.selectClip._x = owner.choco_machines._x; owner.selectClip._y = owner.choco_machines._y - 80; } else if (owner.popup_info == "mismatch") { owner.popupDisable(); owner.isPopup = false; } }; } function CallPause() { var _local2 = this; stopAllSounds(); _local2.bg.blink.gotoAndStop(_local2.bg.blink._currentframe); _local2.customer1.customer.gotoAndStop(_local2.customer1.customer._currentframe); _local2.customer2.customer.gotoAndStop(_local2.customer2.customer._currentframe); _local2.customer3.customer.gotoAndStop(_local2.customer3.customer._currentframe); _local2.special_choco_machines.machine1.blink.gotoAndStop(_local2.special_choco_machines.machine1.blink._currentframe); _local2.choco_machines.single_machine.blink.gotoAndStop(_local2.choco_machines.single_machine.blink._currentframe); _local2.salesGirl.coffeeicon.smoke.gotoAndStop(_local2.salesGirl.coffeeicon.smoke._currentframe); _local2.customer4.customer.gotoAndStop(_local2.customer4.customer._currentframe); _local2.coin_Anim1.coin.gotoAndStop(_local2.coin_Anim1.coin._currentframe); _local2.coin_Anim2.coin.gotoAndStop(_local2.coin_Anim2.coin._currentframe); _local2.coin_Anim3.coin.gotoAndStop(_local2.coin_Anim3.coin._currentframe); _local2.coin_Anim4.coin.gotoAndStop(_local2.coin_Anim4.coin._currentframe); _local2.comboClip.combo.gotoAndStop(_local2.comboClip.combo._currentframe); _local2.orderbook1.heartinClip.gotoAndStop(_local2.orderbook1.heartinClip._currentframe); _local2.orderbook2.heartinClip.gotoAndStop(_local2.orderbook2.heartinClip._currentframe); _local2.orderbook3.heartinClip.gotoAndStop(_local2.orderbook3.heartinClip._currentframe); _local2.orderbook4.heartinClip.gotoAndStop(_local2.orderbook4.heartinClip._currentframe); _local2.curScoreClip.gotoAndStop(_local2.curScoreClip._currentframe); _local2.coin_Anim1.coin.coin_rotate.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate._currentframe); _local2.coin_Anim1.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate2._currentframe); _local2.coin_Anim1.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate3._currentframe); _local2.coin_Anim1.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate4._currentframe); _local2.coin_Anim2.coin.coin_rotate.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate._currentframe); _local2.coin_Anim2.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate2._currentframe); _local2.coin_Anim2.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate3._currentframe); _local2.coin_Anim2.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate4._currentframe); _local2.coin_Anim3.coin.coin_rotate.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate._currentframe); _local2.coin_Anim3.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate2._currentframe); _local2.coin_Anim3.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate3._currentframe); _local2.coin_Anim3.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate4._currentframe); _local2.coin_Anim4.coin.coin_rotate.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate._currentframe); _local2.coin_Anim4.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate2._currentframe); _local2.coin_Anim4.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate3._currentframe); _local2.coin_Anim4.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate4._currentframe); _local2.comboClip.combo.coin_rotate.gotoAndStop(_local2.comboClip.combo.coin_rotate._currentframe); if (_local2.scoreIndicateClip._visible) { _local2.scoreIndicateClip.gotoAndStop(_local2.scoreIndicateClip._currentframe); } if (_local2.expertScoreClip._visible) { _local2.expertScoreClip.gotoAndStop(_local2.expertScoreClip._currentframe); } _local2.chocolateClip.mc.gotoAndStop(_local2.chocolateClip.mc._currentframe); } function CallResume() { var _local4 = this; if (_global.soundstat == "onn") { _root.gameSound.start(); } _local4.bg.blink.gotoAndPlay(_local4.bg.blink._currentframe); _local4.customer1.customer.gotoAndPlay(_local4.customer1.customer._currentframe); _local4.customer2.customer.gotoAndPlay(_local4.customer2.customer._currentframe); _local4.customer3.customer.gotoAndPlay(_local4.customer3.customer._currentframe); _local4.special_choco_machines.machine1.blink.gotoAndPlay(_local4.special_choco_machines.machine1.blink._currentframe); _local4.choco_machines.single_machine.blink.gotoAndPlay(_local4.choco_machines.single_machine.blink._currentframe); _local4.salesGirl.coffeeicon.smoke.gotoAndPlay(_local4.salesGirl.coffeeicon.smoke._currentframe); _local4.customer4.customer.gotoAndPlay(_local4.customer4.customer._currentframe); _local4.coin_Anim1.coin.gotoAndPlay(_local4.coin_Anim1.coin._currentframe - 1); _local4.coin_Anim2.coin.gotoAndPlay(_local4.coin_Anim2.coin._currentframe - 1); _local4.coin_Anim3.coin.gotoAndPlay(_local4.coin_Anim3.coin._currentframe - 1); _local4.coin_Anim4.coin.gotoAndPlay(_local4.coin_Anim4.coin._currentframe - 1); _local4.comboClip.combo.gotoAndPlay(_local4.comboClip.combo._currentframe - 1); _local4.orderbook1.heartinClip.gotoAndPlay(_local4.orderbook1.heartinClip._currentframe - 1); _local4.orderbook2.heartinClip.gotoAndPlay(_local4.orderbook2.heartinClip._currentframe - 1); _local4.orderbook3.heartinClip.gotoAndPlay(_local4.orderbook3.heartinClip._currentframe - 1); _local4.orderbook4.heartinClip.gotoAndPlay(_local4.orderbook4.heartinClip._currentframe - 1); _local4.curScoreClip.gotoAndPlay(_local4.curScoreClip._currentframe); _local4.coin_Anim1.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate._currentframe); _local4.coin_Anim1.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate2._currentframe); _local4.coin_Anim1.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate3._currentframe); _local4.coin_Anim1.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate4._currentframe); _local4.coin_Anim2.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate._currentframe); _local4.coin_Anim2.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate2._currentframe); _local4.coin_Anim2.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate3._currentframe); _local4.coin_Anim2.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate4._currentframe); _local4.coin_Anim3.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate._currentframe); _local4.coin_Anim3.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate2._currentframe); _local4.coin_Anim3.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate3._currentframe); _local4.coin_Anim3.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate4._currentframe); _local4.coin_Anim4.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate._currentframe); _local4.coin_Anim4.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate2._currentframe); _local4.coin_Anim4.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate3._currentframe); _local4.coin_Anim4.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate4._currentframe); _local4.comboClip.combo.coin_rotate.gotoAndPlay(_local4.comboClip.combo.coin_rotate._currentframe); if (_local4.scoreIndicateClip._visible) { _local4.scoreIndicateClip.gotoAndPlay(_local4.scoreIndicateClip._currentframe - 1); } if (_local4.expertScoreClip._visible) { _local4.expertScoreClip.gotoAndPlay(_local4.expertScoreClip._currentframe - 1); } _local4.chocolateClip.mc.gotoAndPlay(_local4.chocolateClip.mc._currentframe - 1); } function shopperMovement() { var _local3 = (salesGirl._x + salesGirl.pointer._x) - targetclip._x; var _local2 = (salesGirl._y + salesGirl.pointer._y) - targetclip._y; var _local5 = Math.sqrt((_local2 * _local2) + (_local3 * _local3)); var _local6 = (salesGirl._width / 4) + (targetclip._width / 4); var _local4 = 10; if (_local5 > _local4) { salesGirl._x = salesGirl._x + (Math.cos(radian) * 12); salesGirl._y = salesGirl._y + (Math.sin(radian) * 12); } else if (!isTargetReached) { isTargetReached = true; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); Manipulate(); updateScore(); } } function calculateAngle(mc) { if (!isPopup) { targetclip = mc; var x_diff = (eval (mc)._x - (salesGirl._x + salesGirl.pointer._x)); var y_diff = (eval (mc)._y - (salesGirl._y + salesGirl.pointer._y)); radian = Math.atan2(y_diff, x_diff); if (Math.abs(x_diff) > Math.abs(y_diff)) { if (x_diff > 0) { targetDirection = "right"; } else { targetDirection = "left"; } } else if (y_diff > 0) { targetDirection = "down"; } else { targetDirection = "up"; } if (curtarget != selectedTarget) { curtarget = selectedTarget; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe - 1); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); } } } function ShowPopup(_arg1) { clearInterval(_arg1.popup_interval); _arg1.isPopup = true; _arg1.popup_mc._visible = true; _arg1.popup_mc.swapDepths(_arg1.getNextHighestDepth()); _arg1.popup_mc.gotoAndPlay(1); } function popupDisable() { popup_mc.gotoAndStop(1); popup_mc._visible = false; } function CallNewCustomer(_arg1) { if (!_arg1.isGameOver) { if ((_arg1.customerCount != 0) && (_arg1.moneyCount != 0)) { _arg1.CallNextCustomerSet(); } } else { clearInterval(_arg1.Re_customerEnterInterval); } } function CallCustomer(_arg2, _arg3, _arg4) { if (!_arg2.isPaused) { clearInterval(_arg2.customerEnterInterval); if (!_arg2.isGameOver) { _arg2.customerEnter(_arg3, _arg4); var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == _arg3) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } else if ((_arg2.customerCount == 0) && (_arg2.moneyCount == 0)) { _arg2.callResult(); } } } function CallCustomer2(_arg2, _arg3, _arg4) { if (!_arg2.isPaused) { clearInterval(_arg2.customerEnterInterval2); if (!_arg2.isGameOver) { _arg2.customerEnter(_arg3, _arg4); var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == _arg3) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } else if ((_arg2.customerCount == 0) && (_arg2.moneyCount == 0)) { _arg2.callResult(); } } } function CallCustomer3(_arg2, _arg3, _arg4) { if (!_arg2.isPaused) { clearInterval(_arg2.customerEnterInterval3); if (!_arg2.isGameOver) { _arg2.customerEnter(_arg3, _arg4); var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == _arg3) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } else if ((_arg2.customerCount == 0) && (_arg2.moneyCount == 0)) { _arg2.callResult(); } } } function Re_CallCustomer(_arg2, _arg3, _arg4) { if (!_arg2.isPaused) { clearInterval(_arg2.Re_customerEnterInterval); if (!_arg2.isGameOver) { _arg2.customerEnter(_arg3, _arg4); var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == _arg3) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } else if ((_arg2.customerCount == 0) && (_arg2.moneyCount == 0)) { _arg2.callResult(); } } } function customerEnter(_arg3, _arg2) { if (_arg3 == 1) { table1._visible = true; customer1 = attachMovie(_arg2, "customer1", depthArr[_arg3 - 1], {_x:115, _y:356}); orderbook1 = attachMovie("orderbook", "orderbook1", getNextHighestDepth(), {_x:170, _y:374}); orderbook1.type = "book"; customer1.type = _arg2; orderbook1.heatcnt = 0; if (_arg2 == "oldlady") { orderbook1.heatInterval = setInterval(HeatFunction, 600, orderbook1, this, 1); } else if (_arg2 == "younglady") { orderbook1.heatInterval = setInterval(HeatFunction, 300, orderbook1, this, 1); } } else if (_arg3 == 2) { table2._visible = true; customer2 = attachMovie(_arg2, "customer2", depthArr[_arg3 - 1], {_x:119, _y:235}); orderbook2 = attachMovie("orderbook", "orderbook2", getNextHighestDepth(), {_x:177, _y:278}); orderbook2.type = "book"; customer2.type = _arg2; orderbook2.heatcnt = 0; if (_arg2 == "oldlady") { orderbook2.heatInterval = setInterval(HeatFunction, 600, orderbook2, this, 2); } else if (_arg2 == "younglady") { orderbook2.heatInterval = setInterval(HeatFunction, 300, orderbook2, this, 2); } } else if (_arg3 == 3) { table3._visible = true; customer3 = attachMovie(_arg2, "customer3", depthArr[_arg3 - 1], {_x:127, _y:140}); orderbook3 = attachMovie("orderbook", "orderbook3", getNextHighestDepth(), {_x:184, _y:185}); orderbook3.type = "book"; customer3.type = _arg2; orderbook3.heatcnt = 0; if (_arg2 == "oldlady") { orderbook3.heatInterval = setInterval(HeatFunction, 600, orderbook3, this, 3); } else if (_arg2 == "younglady") { orderbook3.heatInterval = setInterval(HeatFunction, 300, orderbook3, this, 3); } } customerCount++; moneyCount++; salesGirl.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); chocolate_container.swapDepths(getNextHighestDepth()); dusbinContainer.swapDepths(getNextHighestDepth()); comboClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); } function Manipulate() { var owner = this; if (selectedTarget == "choco_machines") { choco_machines.pointer._visible = false; if (choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_round"; } } else if (choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_chocolate; } owner.salesGirl.chocolateCount++; chocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { if (orderbook1.book_mc._currentframe == 74) { orderbook1.green_highlight._visible = true; } } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { if (orderbook2.book_mc._currentframe == 74) { orderbook2.green_highlight._visible = true; } } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { if (orderbook3.book_mc._currentframe == 74) { orderbook3.green_highlight._visible = true; } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "dusbin") { dusbin.pointer._visible = false; if (salesGirl.chocolateCount == 1) { salesGirl.chocolateCount--; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); preferred_chocolate1 = null; preferred_chocolate2 = null; setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (salesGirl.chocolateCount >= 2) { dusbinStatus = "notready"; isPopup = true; _global.preferred_chocolate1 = preferred_chocolate1; _global.preferred_chocolate2 = preferred_chocolate2; keyTarget = _global.preferred_chocolate1; dusbinContainer._visible = true; dusbinContainer.gotoAndStop(1); dusbinContainer.mc.gotoAndPlay(1); } else { owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (((selectedTarget == "table1") || (selectedTarget == "table2")) || (selectedTarget == "table3")) { eval ("this.orderbook" + selectedTable).pointer._visible = false; if (eval ("this.orderbook" + selectedTable).type == "book") { combo_bookcnt++; combo_ordercnt = 0; combo_moneycnt = 0; eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; var randomno = owner.getRandom(0, 2); eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; eval ("this.customer" + selectedTable).gotoAndStop(3); eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); var heatcntchange = int(eval ("this.orderbook" + selectedTable).heatcnt / 4); if (heatcntchange > 1) { eval ("this.orderbook" + selectedTable).heatcnt = heatcntchange; } else { eval ("this.orderbook" + selectedTable).heatcnt = 1; } CheckForBookCombo(); } else if (eval ("this.orderbook" + selectedTable).type == "chocolateOrder") { if ((salesGirl.chocolateCount >= 1) && (eval ("this.orderbook" + selectedTable).book_mc._currentframe >= 74)) { combo_bookcnt = 0; combo_moneycnt = 0; if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate1) { combo_ordercnt++; preferred_chocolate1 = preferred_chocolate2; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; if (salesGirl.chocolateCount == 1) { preferred_chocolate1 = null; } salesGirl.chocolateCount--; owner.setGreenHighLight(); if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { CallNextCustomerSet(); } } else if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate2) { combo_ordercnt++; salesGirl.chocolateCount--; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; owner.setGreenHighLight(); if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { CallNextCustomerSet(); } } } } else if (eval ("this.orderbook" + selectedTable).type == "money") { combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt++; moneyCount--; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(2); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable)._visible = false; eval ("this.customer" + selectedTable)._visible = false; eval ("this.table" + selectedTable)._visible = false; eval ("this.orderbook" + selectedTable).type = "empty"; CheckForMoneyCombo(); lobbyArr.push(selectedTable); if ((customerCount == 0) && (moneyCount == 0)) { if (!isGameOver) { if (lobbyArr.length == 3) { customerCount = 0; moneyCount = 0; owner.table2._visible = (owner.table3._visible = false); owner.table1._visible = false; CallNextCustomerSet(); } } else { callResult(); } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } function CallNextCustomerSet() { var _local2 = this; clearInterval(_local2.customerEnterInterval); clearInterval(_local2.customerEnterInterval2); clearInterval(_local2.customerEnterInterval3); if (lobbyArr.length == 1) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 2000, _local2, _local2.lobbyArr[_local3], "younglady"); var _local5 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local2.lobbyArr.push(_local5); } else if (lobbyArr.length == 2) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 100, _local2, _local2.lobbyArr[_local3], "younglady"); var _local5 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], "younglady"); var _local6 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local2.lobbyArr.push(_local5); _local2.lobbyArr.push(_local6); } else if (lobbyArr.length == 3) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], "younglady"); var _local5 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 3000, _local2, _local2.lobbyArr[_local3], "younglady"); var _local6 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval3); _local2.customerEnterInterval3 = setInterval(_local2.CallCustomer3, 4500, _local2, _local2.lobbyArr[_local3], "younglady"); var _local4 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local2.lobbyArr.push(_local5); _local2.lobbyArr.push(_local6); _local2.lobbyArr.push(_local4); } } function setGreenHighLight() { if (orderbook1.book_mc._currentframe >= 74) { if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } else { orderbook1.green_highlight._visible = false; } } if (orderbook2.book_mc._currentframe >= 74) { if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } else { orderbook2.green_highlight._visible = false; } } if (orderbook3.book_mc._currentframe >= 74) { if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } else { orderbook3.green_highlight._visible = false; } } } function callResult() { clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); machineStatus = "notready"; isPopup = true; _global.report_moneyEarned = score; _global.report_tips = tips; _global.targetScore = 100; _global.expertScore = 220; btn_pause._visible = false; dusbinStatus = "notready"; score = score + tips; if (score < 100) { reportMc._visible = true; reportMc.gotoAndStop(2); reportMc.mc.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.level_failed_Sound.start(); } } else { if (_global.soundstat == "onn") { _root.level_complete_Sound.start(); } if (_global.levelSelected < 3) { _global.levelSelected = 3; } if (_global.levelFinished <= 2) { _global.levelFinished = 2; } if (score >= 220) { _global.level2Status = "expert"; } else { _global.level2Status = "target"; } _global.level2Score = score; if (((score >= 100) && (scoreClip.target._currentframe == 1)) || ((score >= 220) && (scoreClip.expert._currentframe == 1))) { reportInterval = setInterval(CallReport, 2300, this); } else { reportMc._visible = true; reportMc.gotoAndStop(1); reportMc.mc.gotoAndPlay(2); } } } function CallReport(_arg1) { clearInterval(_arg1.reportInterval); _arg1.reportMc._visible = true; _arg1.reportMc.gotoAndStop(1); _arg1.reportMc.mc.gotoAndPlay(2); } function HeatFunction(owner, myparent, curpoint) { if (!myparent.isPaused) { owner.heatcnt++; owner.timelimit.gotoAndStop(owner.heatcnt); if (owner.heatcnt == 100) { eval ("myparent.customer" + curpoint).gotoAndStop(4); } if (owner.heatcnt >= 120) { clearInterval(owner.heatInterval); eval ("myparent.customer" + curpoint).gotoAndStop(6); myparent.moneyCount--; myparent.customerCount--; eval ("myparent.orderbook" + curpoint)._visible = false; eval ("myparent.table" + curpoint)._visible = false; if (eval ("myparent.customer" + curpoint).type == "oldlady") { if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 10)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 10) { myparent.score = myparent.score - 10; myparent.curScoreClip.disp.score.text = -10; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } else if (eval ("myparent.customer" + curpoint).type == "younglady") { if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 15)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 15) { myparent.score = myparent.score - 15; myparent.curScoreClip.disp.score.text = -15; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } eval ("myparent.orderbook" + curpoint).type = "empty"; myparent.lobbyArr.push(curpoint); if ((myparent.customerCount == 0) && (myparent.moneyCount == 0)) { if (!myparent.isGameOver) { myparent.CallNextCustomerSet(); } else { myparent.callResult(); } } } } } function GameTimeLimit(_arg1) { if (!_arg1.isPaused) { _arg1.gametimer++; _arg1.timerClip.gotoAndStop(_arg1.gametimer); if (_arg1.gametimer >= 90) { _arg1.isGameOver = true; _arg1.bg.gotoAndStop(1); _arg1.shopclosedClip._visible = true; _arg1.shopclosedClip.gotoAndPlay(1); _arg1.gametimer = 0; clearInterval(_arg1.gameInterval); } } } function CheckForBookCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_bookcnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_bookcnt); comboClip.combo.gotoAndPlay(1); score = score + 4; curScoreClip.disp.score.text = 4; tips = tips + 4; } else { score = score + 2; curScoreClip.disp.score.text = 2; tips = tips + 2; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_bookcnt) + "_Sound").start(); } } function CheckForOrderCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_ordercnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_ordercnt); comboClip.combo.gotoAndPlay(1); score = score + 20; curScoreClip.disp.score.text = 20; } else { score = score + 10; curScoreClip.disp.score.text = 10; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_ordercnt) + "_Sound").start(); } } function CheckForMoneyCombo() { if (_global.soundstat == "onn") { eval (("_root.money" + combo_moneycnt) + "_Sound").start(); } curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_moneycnt >= 2) { comboClip._x = eval ("this.orderbook" + selectedTable)._x; comboClip._y = eval ("this.orderbook" + selectedTable)._y; comboClip._visible = true; comboClip.gotoAndStop(combo_moneycnt); comboClip.combo.gotoAndPlay(1); if (eval ("this.orderbook" + selectedTable).neededchocolate == "type_rabbit") { score = score + (combo_moneycnt * 30); curScoreClip.disp.score.text = combo_moneycnt * 30; } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 14); curScoreClip.disp.score.text = combo_moneycnt * 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 11); curScoreClip.disp.score.text = combo_moneycnt * 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 10); curScoreClip.disp.score.text = combo_moneycnt * 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 24); curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 21); curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 15); curScoreClip.disp.score.text = combo_moneycnt * 15; } } if (!isGameOver) { CallNextCustomerSet(); } } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 17; curScoreClip.disp.score.text = 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 14; curScoreClip.disp.score.text = 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 11; curScoreClip.disp.score.text = 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 10; curScoreClip.disp.score.text = 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 24; curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 21; curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 17; curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 15; curScoreClip.disp.score.text = combo_moneycnt * 15; } } } function IdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.preparecnt++; if (_arg3.preparecnt >= 20) { clearInterval(_arg3.process_interval); _arg3.machineStatus = "ready"; _arg3.machineshake = "off"; if (_arg3.choco_machines.status == "prepared") { _arg3.choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function StoreInSequence() { var owner = this; eval ("this." + moveTarget).onRelease(); } function CallSequence() { var owner = this; if (sequenceArr[0] == choco_machines) { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == dusbin) { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); sequenceArr[0].pointer._visible = true; } } else if (((sequenceArr[0] == table1) || (sequenceArr[0] == table2)) || (sequenceArr[0] == table3)) { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = sequenceArr[0]._name; owner.calculateAngle(sequenceArr[0]); if (owner.selectedTarget == "table1") { owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.selectedTable = 3; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } } } function getRandom(_arg4, _arg5) { var _local3 = _arg5 - _arg4; var _local2 = Math.random() * _local3; var _local1 = Math.round(_local2); _local1 = _local1 + _arg4; return(_local1); } function ObjectsRollOut() { table1.onRollOut(); table2.onRollOut(); table3.onRollOut(); choco_machines.onRollOut(); dusbin.onRollOut(); } function Reset() { targetclip = "table1"; lobbyArr.length = 0; lobbyArr = new Array(1, 2, 3); currentDirection = "down"; targetDirection = ""; isPopup = false; popup_info = "welcome"; clearInterval(popup_interval); clearInterval(process_interval); popup_interval = -1; isTargetReached = true; selectedTarget = ""; orderno = 0; score = 0; ismoveready = false; orderTaken = 0; customerCount = 0; machineStatus = "notready"; dusbinStatus = "notready"; girlwalkframe = 2; isFirstServeFinished = false; depthArr.length = 0; depthArr = new Array(-10313, -10315, -10317); chocolateTypeArr.length = 0; chocolateTypeArr = new Array("type_triangle", "type_round", "type_box"); customerEnterset = "firstset"; moneyCount = 0; clearInterval(gameInterval); gametimer = 0; isGameOver = false; combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt = 0; curtarget = ""; clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); isPaused = false; sequenceArr.length = 0; sequenceArr = new Array(); Key.removeListener(leve2Keyobj); keyTarget = undefined; pauseTarget = ""; } var targetclip = "table1"; var lobbyArr = new Array(1, 2, 3); var currentDirection = "down"; var isPopup = false; var popup_info = "welcome"; var popup_interval = -1; var process_interval = -1; var isTargetReached = true; var selectedTarget = ""; var orderno = 0; var ismoveready = false; var orderTaken = 0; var customerCount = 0; var machineStatus = "notready"; var dusbinStatus = "notready"; var girlwalkframe = 2; var isFirstServeFinished = false; var score = 0; var depthArr = new Array(-10313, -10315, -10317); var chocolateTypeArr = new Array("type_triangle", "type_round", "type_box"); var customerEnterset = "firstset"; var moneyCount = 0; var gameInterval = -1; var gametimer = 0; var isGameOver = false; var combo_bookcnt = 0; var combo_ordercnt = 0; var combo_moneycnt = 0; var curtarget = ""; var customerEnterInterval = -1; var customerEnterInterval2 = -1; var customerEnterInterval3 = -1; var reportInterval = -1; var isPaused = false; var machinespeed = 1; var machineshake = "off"; var specialmachineshake = "off"; var sequenceArr = new Array(); var tips = 0; var Re_customerEnterInterval = -1; var preparecnt = 0; }
Symbol 1700 MovieClip [__Packages.Level3] Frame 0
class Level3 extends MovieClip { var salesGirl, btn_pause, _parent, choco_machines, special_choco_machines, scoreIndicateClip, shopclosedClip, timerClip, chocolate_container, special_chocolate_container, coffeeClip, chocolateClip, phone_mc, popup_mc, selectClip, coffee_machine, heartinClip, shopopenClip, reportMc, cancel_mc, infoClip, comboClip, dusbinContainer, curScoreClip, specialChocolateClip, expertScoreClip, table3, table2, table1, coin_Anim3, coin_Anim2, coin_Anim1, dusbin, leve3Keyobj, keyTarget, pauseTarget, scoreClip, radian, targetDirection, preferred_chocolate1, preferred_chocolate2, customer1, attachMovie, orderbook1, getNextHighestDepth, customer2, orderbook2, customer3, orderbook3, selectedTable, moveTarget, keylistener; function Level3 () { super(); } function onLoad() { var owner = this; clearInterval(popup_interval); clearInterval(process_interval); Reset(); salesGirl.coffeeicon._visible = false; btn_pause._visible = false; _parent.pauseClip._visible = false; salesGirl.gotoAndStop(currentDirection); salesGirl.chocolateCount = 0; choco_machines.status = "empty"; special_choco_machines.status = "empty"; salesGirl.girlwalk.gotoAndStop(girlwalkframe); scoreIndicateClip._visible = false; shopclosedClip._visible = false; timerClip._visible = false; chocolate_container._visible = false; special_chocolate_container._visible = false; special_chocolate_container.mc.gotoAndStop(1); coffeeClip._visible = false; chocolateClip._visible = false; phone_mc._visible = false; popup_mc._visible = false; selectClip._visible = false; coffee_machine._visible = false; heartinClip._visible = false; shopopenClip._visible = false; reportMc._visible = false; cancel_mc._visible = false; infoClip._visible = false; comboClip._visible = false; dusbinContainer._visible = false; curScoreClip._visible = false; specialChocolateClip._visible = false; expertScoreClip._visible = false; table2._visible = (table3._visible = false); table1._visible = false; coin_Anim2._visible = (coin_Anim3._visible = false); coin_Anim1._visible = false; table1.point = 1; table2.point = 2; table3.point = 3; choco_machines._visible = true; choco_machines.single_machine.gotoAndStop(2); dusbin._visible = true; dusbin.gotoAndStop(2); special_choco_machines._visible = true; special_choco_machines.gotoAndStop(1); special_choco_machines.machine1.intro.gotoAndPlay(1); gamestartInterval = setInterval(GameStart, 3000, this); btn_pause.onRelease = function () { if (this._visible && (owner._parent.pauseClip._visible == false)) { owner.pauseTarget = "btn_continue"; owner.isPaused = true; owner.isPopup = true; this._visible = false; owner._parent.pauseClip._visible = true; owner._parent.pauseClip.gotoAndPlay(2); owner.CallPause(); } }; leve3Keyobj = new Object(); Key.addListener(leve3Keyobj); leve3Keyobj.onKeyUp = function () { if (Key.getCode() == 13) { if ((!owner.isPaused) && (!owner.isGameOver)) { owner.StoreInSequence(); } } }; leve3Keyobj.onKeyDown = function () { if (Key.getCode() == 37) { if (!owner.isPaused) { owner.LeftNavigation(); } } else if (Key.getCode() == 39) { if (!owner.isPaused) { owner.RightNavigation(); } } else if (Key.getCode() == 38) { if (!owner.isPaused) { owner.UpNavigation(); } else { owner.pauseUpNavigation(); } } else if (Key.getCode() == 40) { if (!owner.isPaused) { owner.DownNavigation(); } else { owner.pauseDownNavigation(); } } else if (Key.getCode() == 13) { if (owner.popup_mc._visible) { owner.popup_mc.btn_ok.onRelease(); } else if (owner.reportMc._visible) { if (owner.reportMc._currentframe == 1) { owner.reportMc.mc.btn_continue.onRelease(); } else { owner.reportMc.mc.btn_retry.onRelease(); } } else if (!owner.isPaused) { owner.EnterFunction(); } else { owner.PauseEnterFunction(); } } else if (Key.getAscii() == 27) { if (!owner.isPaused) { owner.btn_pause.onRelease(); } else if (owner.isPaused) { owner._parent.pauseClip.btn_continue.onRelease(); } } }; table1.onRollOver = (table2.onRollOver = (table3.onRollOver = function () { if ((!owner.isPaused) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = this._name; owner.moveTarget = this._name; eval ("this.orderbook" + this.point).highlight.gotoAndStop(2); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(2); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(2); } } })); table1.onRollOut = (table2.onRollOut = (table3.onRollOut = function () { eval ("this.orderbook" + this.point).highlight.gotoAndStop(1); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(1); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(1); } })); choco_machines.onRollOver = function () { if (((owner.machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "choco_machines"; owner.moveTarget = "choco_machines"; this.single_machine.gotoAndStop(3); } }; choco_machines.onRollOut = (choco_machines.onReleaseOutside = function () { this.single_machine.gotoAndStop(2); }); dusbin.onRollOver = function () { if ((owner.dusbinStatus == "ready") && (!owner.isPaused)) { owner.ObjectsRollOut(); owner.keyTarget = "dusbin"; owner.moveTarget = "dusbin"; this.gotoAndStop(3); } }; dusbin.onRollOut = (dusbin.onReleaseOutside = function () { this.gotoAndStop(2); }); special_choco_machines.onRollOver = function () { if (((owner.special_machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "special_choco_machines"; owner.moveTarget = "special_choco_machines"; this.machine1.gotoAndStop(3); } }; special_choco_machines.onRollOut = (special_choco_machines.onReleaseOutside = function () { this.machine1.gotoAndStop(2); }); choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.choco_machines); } }; choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); this.pointer._visible = true; } }; special_choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.special_choco_machines); } }; special_choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); this.pointer._visible = true; } }; dusbin.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.dusbin); } }; dusbin.onPress = function () { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); this.pointer._visible = true; } }; table1.onRelease = (table2.onRelease = (table3.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(this); } })); table1.onPress = (table2.onPress = (table3.onPress = function () { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = this._name; owner.calculateAngle(this); if (owner.selectedTarget == "table1") { owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.selectedTable = 3; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } })); } function LeftNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_box") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_triangle.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOut(); eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOver(); } } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); if (table3._visible) { table3.onRollOver(); } else if (table2._visible) { table2.onRollOver(); } else if (table1._visible) { table1.onRollOver(); } } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); choco_machines.onRollOver(); } } function RightNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_box.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOut(); eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOver(); } } else if (keyTarget == undefined) { choco_machines.onRollOver(); } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); special_choco_machines.onRollOver(); } else if (((keyTarget == "table1") || (keyTarget == "table2")) || (keyTarget == "table3")) { eval ("this." + keyTarget).onRollOut(); choco_machines.onRollOver(); } } function UpNavigation() { if (keyTarget == "table1") { if (table2._visible) { table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table2") { if (table3._visible) { table2.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "dusbin") { dusbin.onRollOut(); special_choco_machines.onRollOver(); } } function DownNavigation() { if (keyTarget == "table3") { if (table2._visible) { table3.onRollOut(); table2.onRollOver(); } else if (table1._visible) { table3.onRollOut(); table1.onRollOver(); } } else if (keyTarget == "table2") { if (table1._visible) { table2.onRollOut(); table1.onRollOver(); } } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); dusbin.onRollOver(); } } function EnterFunction() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_triangle.onRelease(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_round.onRelease(); } else if (keyTarget == "type_box") { chocolate_container.mc.type_box.onRelease(); } } else if (special_chocolate_container._visible) { eval ("this.special_chocolate_container.mc." + keyTarget).onRelease(); } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRelease(); } else if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRelease(); } } else { eval ("this." + keyTarget).onPress(); } } function PauseEnterFunction() { eval ("this._parent.pauseClip." + pauseTarget).onRelease(); } function pauseUpNavigation() { if (pauseTarget == "btn_premium") { _parent.pauseClip.btn_premium.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_continue.onRollOver(); } } function pauseDownNavigation() { if (pauseTarget == "pause") { _parent.pauseClip.btn_continue.onRollOver(); } else if (pauseTarget == "btn_continue") { _parent.pauseClip.btn_continue.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_premium.onRollOver(); } } function updateScore() { scoreClip.score_txt.text = score; scoreClip.loading.gotoAndStop(score); if ((score >= 150) && (scoreClip.target._currentframe == 1)) { scoreClip.target.gotoAndPlay(1); scoreIndicateClip._visible = true; scoreIndicateClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.target_score_Sound.start(); } } if ((score >= 250) && (scoreClip.expert._currentframe == 1)) { scoreClip.expert.gotoAndPlay(1); expertScoreClip._visible = true; expertScoreClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.expert_score_Sound.start(); } } } function onEnterFrame() { var owner = this; if (((!isPopup) && (!isTargetReached)) && (!owner.isPaused)) { shopperMovement(); } if (machineshake == "onn") { machinespeed = -machinespeed; choco_machines._x = choco_machines._x + ((1 * machinespeed) / 1.5); choco_machines._y = choco_machines._y + ((1 * machinespeed) / 1.5); } if (specialmachineshake == "onn") { specialmachinespeed = -specialmachinespeed; special_choco_machines._x = special_choco_machines._x + ((1 * specialmachinespeed) / 1.5); special_choco_machines._y = special_choco_machines._y + ((1 * specialmachinespeed) / 1.5); } else { special_choco_machines._x = 631; special_choco_machines._y = 101; } _parent.pauseClip.btn_continue.onRollOver = (_parent.pauseClip.btn_restart.onRollOver = (_parent.pauseClip.btn_mainmenu.onRollOver = (_parent.pauseClip.btn_premium.onRollOver = function () { owner._parent.pauseClip.btn_continue.onRollOut(); owner._parent.pauseClip.btn_restart.onRollOut(); owner._parent.pauseClip.btn_mainmenu.onRollOut(); owner._parent.pauseClip.btn_premium.onRollOut(); owner.pauseTarget = this._name; this.gotoAndStop(2); }))); _parent.pauseClip.btn_continue.onRollOut = (_parent.pauseClip.btn_restart.onRollOut = (_parent.pauseClip.btn_mainmenu.onRollOut = (_parent.pauseClip.btn_premium.onRollOut = function () { this.gotoAndStop(1); }))); _parent.pauseClip.btn_continue.onRelease = function () { owner.isPaused = false; owner.isPopup = false; owner.btn_pause._visible = true; owner._parent.pauseClip._visible = false; owner.CallResume(); }; _parent.pauseClip.btn_restart.onRelease = function () { owner.Reset(); owner._parent.play(); }; _parent.pauseClip.btn_mainmenu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; _parent.pauseClip.btn_premium.onRelease = function () { this.getURL(_root.urlname, "_blank"); }; popup_mc.btn_ok.onRollOver = function () { this.gotoAndStop(2); }; popup_mc.btn_ok.onRollOut = (popup_mc.btn_ok.onReleaseOutside = function () { this.gotoAndStop(1); }); chocolate_container.mc.type_triangle.onRollOver = (chocolate_container.mc.type_round.onRollOver = (chocolate_container.mc.type_box.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.chocolate_container.mc.type_triangle.gotoAndStop(1); owner.chocolate_container.mc.type_round.gotoAndStop(1); owner.chocolate_container.mc.type_box.gotoAndStop(1); this.gotoAndStop(2); } })); chocolate_container.mc.type_triangle.onRelease = (chocolate_container.mc.type_round.onRelease = (chocolate_container.mc.type_box.onRelease = function () { if (!owner.isPaused) { owner.infoClip._visible = false; owner.chocolateClip._visible = true; owner.chocolateClip.gotoAndStop(this._name); owner.chocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_box_chocolate = this._name; if (owner.choco_machines.status == "empty") { owner.choco_machines.status = "prepared"; } owner.preparecnt = 0; owner.process_interval = setInterval(owner.IdleProcess, 100, owner); owner.chocolate_container.gotoAndStop(2); owner.dusbinStatus = "ready"; owner.machineStatus = "ready"; owner.isPopup = false; owner.machineshake = "onn"; owner.keyTarget = "choco_machines"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } })); chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.machineStatus = "ready"; owner.chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; owner.keyTarget = "choco_machines"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; special_chocolate_container.mc.type_rabbit.onRollOver = (special_chocolate_container.mc.type_fish.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.special_chocolate_container.mc.type_rabbit.gotoAndStop(1); owner.special_chocolate_container.mc.type_fish.gotoAndStop(1); this.gotoAndStop(2); } }); special_chocolate_container.mc.type_rabbit.onRelease = (special_chocolate_container.mc.type_fish.onRelease = function () { if (!owner.isPaused) { owner.infoClip._visible = false; owner.specialChocolateClip._visible = true; owner.specialChocolateClip.gotoAndStop(this._name); owner.specialChocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_special_chocolate = this._name; if (owner.special_choco_machines.status == "empty") { owner.special_choco_machines.status = "prepared"; } owner.spl_preparecnt = 0; owner.special_process_interval = setInterval(owner.SpecialIdleProcess, 100, owner); owner.special_chocolate_container.gotoAndStop(2); owner.dusbinStatus = "ready"; owner.special_machineStatus = "ready"; owner.isPopup = false; owner.specialmachineshake = "onn"; owner.keyTarget = "special_choco_machines"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }); special_chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.special_machineStatus = "ready"; owner.special_chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; owner.keyTarget = "special_choco_machines"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; dusbinContainer.mc.chocobox1.type_triangle.onRollOver = (dusbinContainer.mc.chocobox1.type_round.onRollOver = (dusbinContainer.mc.chocobox1.type_box.onRollOver = (dusbinContainer.mc.chocobox2.type_triangle.onRollOver = (dusbinContainer.mc.chocobox2.type_round.onRollOver = (dusbinContainer.mc.chocobox2.type_box.onRollOver = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox1.type_fish.onRollOver = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox2.type_fish.onRollOver = function () { owner.keyTarget = this._name; this.gotoAndStop(2); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRollOut = (dusbinContainer.mc.chocobox1.type_round.onRollOut = (dusbinContainer.mc.chocobox1.type_box.onRollOut = (dusbinContainer.mc.chocobox2.type_triangle.onRollOut = (dusbinContainer.mc.chocobox2.type_round.onRollOut = (dusbinContainer.mc.chocobox2.type_box.onRollOut = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox1.type_fish.onRollOut = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox2.type_fish.onRollOut = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_fish.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_fish.onReleaseOutside = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRelease = (dusbinContainer.mc.chocobox1.type_round.onRelease = (dusbinContainer.mc.chocobox1.type_box.onRelease = (dusbinContainer.mc.chocobox2.type_triangle.onRelease = (dusbinContainer.mc.chocobox2.type_round.onRelease = (dusbinContainer.mc.chocobox2.type_box.onRelease = (dusbinContainer.mc.chocobox1.type_rabbit.onRelease = (dusbinContainer.mc.chocobox1.type_fish.onRelease = (dusbinContainer.mc.chocobox2.type_rabbit.onRelease = (dusbinContainer.mc.chocobox2.type_fish.onRelease = function () { if (!owner.isPaused) { if (this._name == owner.preferred_chocolate1) { owner.preferred_chocolate1 = owner.preferred_chocolate2; owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } else { owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }))))))))); dusbinContainer.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; reportMc.mc.btn_continue.onRelease = function () { owner.Reset(); _global.calenderfrom = "game"; owner._parent.gotoAndStop("calender"); }; reportMc.mc.btn_menu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; reportMc.mc.btn_retry.onRelease = function () { owner.Reset(); owner._parent.play(); }; popup_mc.btn_ok.onRelease = function () { if (owner.popup_info == "welcome") { owner.combo_bookcnt = 0; owner.combo_ordercnt = 0; owner.combo_moneycnt = 0; owner.customerCount = 0; owner.moneyCount = 0; owner.table2._visible = (owner.table3._visible = false); owner.table1._visible = false; owner.lobbyArr.length = 0; owner.lobbyArr = new Array(1, 2, 3); owner.btn_pause._visible = true; owner.popupDisable(); var _local1 = owner.getRandom(0, 2); owner.customerEnterInterval = setInterval(owner.CallCustomer, 2000, owner, owner.lobbyArr[_local1], "younglady"); owner.lobbyArr.splice(_local1, 1); _local1 = owner.getRandom(0, owner.lobbyArr.length - 1); owner.customerEnterInterval2 = setInterval(owner.CallCustomer2, 4000, owner, owner.lobbyArr[_local1], "younglady"); owner.lobbyArr.splice(_local1, 1); owner.isPopup = false; owner.popup_info = "level2_start"; owner.bg.gotoAndStop(2); owner.shopopenClip._visible = true; owner.shopopenClip.gotoAndPlay(1); owner.ismoveready = true; owner.machineStatus = "ready"; owner.special_machineStatus = "ready"; owner.dusbinStatus = "ready"; owner.timerClip._visible = true; clearInterval(owner.gameInterval); owner.gametimer = 0; owner.gameInterval = setInterval(owner.GameTimeLimit, 730, owner); owner.Re_customerEnterInterval = setInterval(owner.CallNewCustomer, 6000, owner); } else if (owner.popup_info == "order") { owner.popupDisable(); owner.isPopup = false; owner.popup_info = ""; owner.selectClip._visible = true; owner.selectClip._x = owner.choco_machines._x; owner.selectClip._y = owner.choco_machines._y - 80; } else if (owner.popup_info == "mismatch") { owner.popupDisable(); owner.isPopup = false; } }; } function shopperMovement() { var _local3 = (salesGirl._x + salesGirl.pointer._x) - targetclip._x; var _local2 = (salesGirl._y + salesGirl.pointer._y) - targetclip._y; var _local5 = Math.sqrt((_local2 * _local2) + (_local3 * _local3)); var _local4 = 10; if (_local5 >= _local4) { salesGirl._x = salesGirl._x + (Math.cos(radian) * 12); salesGirl._y = salesGirl._y + (Math.sin(radian) * 12); } else if (!isTargetReached) { isTargetReached = true; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); Manipulate(); updateScore(); } } function GameStart(_arg2) { clearInterval(_arg2.gamestartInterval); _arg2.isPopup = true; _global.popupText = "Select the SPECIALTY CHOCOLATE machine to produce chocolate figures."; _arg2.ShowPopup(_arg2); } function calculateAngle(mc) { if (!isPopup) { targetclip = mc; var x_diff = (eval (mc)._x - (salesGirl._x + salesGirl.pointer._x)); var y_diff = (eval (mc)._y - (salesGirl._y + salesGirl.pointer._y)); radian = Math.atan2(y_diff, x_diff); if (Math.abs(x_diff) > Math.abs(y_diff)) { if (x_diff > 0) { targetDirection = "right"; } else { targetDirection = "left"; } } else if (y_diff > 0) { targetDirection = "down"; } else { targetDirection = "up"; } if (curtarget != selectedTarget) { curtarget = selectedTarget; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe - 1); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); } } } function ShowPopup(_arg1) { clearInterval(_arg1.popup_interval); _arg1.isPopup = true; _arg1.popup_mc._visible = true; _arg1.popup_mc.swapDepths(_arg1.getNextHighestDepth()); _arg1.popup_mc.gotoAndPlay(1); } function popupDisable() { popup_mc.gotoAndStop(1); popup_mc._visible = false; } function CallNewCustomer(_arg1) { if (!_arg1.isGameOver) { if ((_arg1.customerCount != 0) && (_arg1.moneyCount != 0)) { _arg1.CallNextCustomerSet(); } } else { clearInterval(_arg1.Re_customerEnterInterval); } } function CallCustomer(_arg2, _arg3, _arg4) { if (!_arg2.isPaused) { clearInterval(_arg2.customerEnterInterval); if (!_arg2.isGameOver) { _arg2.customerEnter(_arg3, _arg4); var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == _arg3) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } else if ((_arg2.customerCount == 0) && (_arg2.moneyCount == 0)) { _arg2.callResult(); } } } function CallCustomer2(_arg2, _arg3, _arg4) { if (!_arg2.isPaused) { clearInterval(_arg2.customerEnterInterval2); if (!_arg2.isGameOver) { _arg2.customerEnter(_arg3, _arg4); var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == _arg3) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } else if ((_arg2.customerCount == 0) && (_arg2.moneyCount == 0)) { _arg2.callResult(); } } } function CallCustomer3(_arg2, _arg3, _arg4) { if (!_arg2.isPaused) { clearInterval(_arg2.customerEnterInterval3); if (!_arg2.isGameOver) { _arg2.customerEnter(_arg3, _arg4); var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == _arg3) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } else if ((_arg2.customerCount == 0) && (_arg2.moneyCount == 0)) { _arg2.callResult(); } } } function Re_CallCustomer(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.Re_customerEnterInterval); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function customerEnter(_arg3, _arg2) { if (_arg3 == 1) { table1._visible = true; customer1 = attachMovie(_arg2, "customer1", depthArr[_arg3 - 1], {_x:115, _y:356}); orderbook1 = attachMovie("orderbook", "orderbook1", getNextHighestDepth(), {_x:170, _y:374}); orderbook1.type = "book"; customer1.type = _arg2; orderbook1.heatcnt = 0; if (_arg2 == "oldlady") { orderbook1.heatInterval = setInterval(HeatFunction, 600, orderbook1, this, 1); } else if (_arg2 == "younglady") { orderbook1.heatInterval = setInterval(HeatFunction, 300, orderbook1, this, 1); } } else if (_arg3 == 2) { table2._visible = true; customer2 = attachMovie(_arg2, "customer2", depthArr[_arg3 - 1], {_x:119, _y:235}); orderbook2 = attachMovie("orderbook", "orderbook2", getNextHighestDepth(), {_x:177, _y:278}); orderbook2.type = "book"; customer2.type = _arg2; orderbook2.heatcnt = 0; if (_arg2 == "oldlady") { orderbook2.heatInterval = setInterval(HeatFunction, 600, orderbook2, this, 2); } else if (_arg2 == "younglady") { orderbook2.heatInterval = setInterval(HeatFunction, 300, orderbook2, this, 2); } } else if (_arg3 == 3) { table3._visible = true; customer3 = attachMovie(_arg2, "customer3", depthArr[_arg3 - 1], {_x:127, _y:140}); orderbook3 = attachMovie("orderbook", "orderbook3", getNextHighestDepth(), {_x:184, _y:185}); orderbook3.type = "book"; customer3.type = _arg2; orderbook3.heatcnt = 0; if (_arg2 == "oldlady") { orderbook3.heatInterval = setInterval(HeatFunction, 600, orderbook3, this, 3); } else if (_arg2 == "younglady") { orderbook3.heatInterval = setInterval(HeatFunction, 300, orderbook3, this, 3); } } customerCount++; moneyCount++; salesGirl.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); chocolate_container.swapDepths(getNextHighestDepth()); special_chocolate_container.swapDepths(getNextHighestDepth()); dusbinContainer.swapDepths(getNextHighestDepth()); comboClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); } function Manipulate() { var owner = this; if (selectedTarget == "choco_machines") { choco_machines.pointer._visible = false; if (choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_round"; } } else if (choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_box_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_box_chocolate; } owner.salesGirl.chocolateCount++; chocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { if (orderbook1.book_mc._currentframe == 74) { orderbook1.green_highlight._visible = true; } } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { if (orderbook2.book_mc._currentframe == 74) { orderbook2.green_highlight._visible = true; } } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { if (orderbook3.book_mc._currentframe == 74) { orderbook3.green_highlight._visible = true; } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "special_choco_machines") { special_choco_machines.pointer._visible = false; if (special_choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { special_chocolate_container._visible = true; special_chocolate_container.gotoAndStop(1); special_chocolate_container.mc.gotoAndPlay(1); special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_rabbit"; } } else if (special_choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_special_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_special_chocolate; } owner.salesGirl.chocolateCount++; specialChocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); special_choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "dusbin") { dusbin.pointer._visible = false; if (salesGirl.chocolateCount == 1) { salesGirl.chocolateCount--; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); preferred_chocolate1 = null; preferred_chocolate2 = null; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (salesGirl.chocolateCount >= 2) { dusbinStatus = "notready"; isPopup = true; _global.preferred_chocolate1 = preferred_chocolate1; _global.preferred_chocolate2 = preferred_chocolate2; keyTarget = _global.preferred_chocolate1; dusbinContainer._visible = true; dusbinContainer.gotoAndStop(1); dusbinContainer.mc.gotoAndPlay(1); } } else if (((selectedTarget == "table1") || (selectedTarget == "table2")) || (selectedTarget == "table3")) { eval ("this.orderbook" + selectedTable).pointer._visible = false; if (eval ("this.orderbook" + selectedTable).type == "book") { combo_bookcnt++; combo_ordercnt = 0; combo_moneycnt = 0; eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; var randomno = owner.getRandom(0, 4); if (!isspchoco) { trace("firsttime"); isspchoco = true; if (combo_bookcnt == 1) { eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[3]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[3]; } else { eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[0]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[0]; } } else { eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; } eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.customer" + selectedTable).gotoAndStop(3); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); var heatcntchange = int(eval ("this.orderbook" + selectedTable).heatcnt / 4); if (heatcntchange > 1) { eval ("this.orderbook" + selectedTable).heatcnt = heatcntchange; } else { eval ("this.orderbook" + selectedTable).heatcnt = 1; } CheckForBookCombo(); } else if (eval ("this.orderbook" + selectedTable).type == "chocolateOrder") { if ((salesGirl.chocolateCount >= 1) && (eval ("this.orderbook" + selectedTable).book_mc._currentframe >= 74)) { combo_bookcnt = 0; combo_moneycnt = 0; if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate1) { combo_ordercnt++; preferred_chocolate1 = preferred_chocolate2; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; if (salesGirl.chocolateCount == 1) { preferred_chocolate1 = null; } salesGirl.chocolateCount--; owner.setGreenHighLight(); if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { CallNextCustomerSet(); } } else if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate2) { combo_ordercnt++; salesGirl.chocolateCount--; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; owner.setGreenHighLight(); if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { CallNextCustomerSet(); } } } } else if (eval ("this.orderbook" + selectedTable).type == "money") { combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt++; moneyCount--; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(2); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable)._visible = false; eval ("this.customer" + selectedTable)._visible = false; eval ("this.table" + selectedTable)._visible = false; eval ("this.orderbook" + selectedTable).type = "empty"; CheckForMoneyCombo(); lobbyArr.push(selectedTable); if ((customerCount == 0) && (moneyCount == 0)) { if (!isGameOver) { if (lobbyArr.length == 3) { customerCount = 0; moneyCount = 0; owner.table2._visible = (owner.table3._visible = false); owner.table1._visible = false; CallNextCustomerSet(); } } else { callResult(); } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } function CallNextCustomerSet() { var _local2 = this; clearInterval(_local2.customerEnterInterval); clearInterval(_local2.customerEnterInterval2); clearInterval(_local2.customerEnterInterval3); if (lobbyArr.length == 1) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 2000, _local2, _local2.lobbyArr[_local3], "younglady"); var _local5 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local2.lobbyArr.push(_local5); } else if (lobbyArr.length == 2) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 100, _local2, _local2.lobbyArr[_local3], "younglady"); var _local5 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], "younglady"); var _local6 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local2.lobbyArr.push(_local5); _local2.lobbyArr.push(_local6); } else if (lobbyArr.length == 3) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], "younglady"); var _local5 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 3000, _local2, _local2.lobbyArr[_local3], "younglady"); var _local6 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local2.customerEnterInterval3 = setInterval(_local2.CallCustomer3, 4500, _local2, _local2.lobbyArr[_local3], "younglady"); var _local4 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local2.lobbyArr.push(_local5); _local2.lobbyArr.push(_local6); _local2.lobbyArr.push(_local4); } } function setGreenHighLight() { if (orderbook1.book_mc._currentframe >= 74) { if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } else { orderbook1.green_highlight._visible = false; } } if (orderbook2.book_mc._currentframe >= 74) { if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } else { orderbook2.green_highlight._visible = false; } } if (orderbook3.book_mc._currentframe >= 74) { if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } else { orderbook3.green_highlight._visible = false; } } } function callResult() { clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); machineStatus = "notready"; special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; _global.report_moneyEarned = score; _global.report_tips = tips; _global.targetScore = 150; _global.expertScore = 250; btn_pause._visible = false; dusbinStatus = "notready"; score = score + tips; if (score < 150) { reportMc._visible = true; reportMc.gotoAndStop(2); reportMc.mc.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.level_failed_Sound.start(); } } else { if (_global.soundstat == "onn") { _root.level_complete_Sound.start(); } if (_global.levelSelected < 4) { _global.levelSelected = 4; } if (_global.levelFinished <= 3) { _global.levelFinished = 3; } if (score >= 250) { _global.level3Status = "expert"; } else { _global.level3Status = "target"; } _global.level3Score = score; if (((score >= 150) && (scoreClip.target._currentframe == 1)) || ((score >= 250) && (scoreClip.expert._currentframe == 1))) { reportInterval = setInterval(CallReport, 2300, this); } else { reportMc._visible = true; reportMc.gotoAndStop(1); reportMc.mc.gotoAndPlay(2); } } } function CallReport(_arg1) { clearInterval(_arg1.reportInterval); _arg1.reportMc._visible = true; _arg1.reportMc.gotoAndStop(1); _arg1.reportMc.mc.gotoAndPlay(2); } function HeatFunction(owner, myparent, curpoint) { if (!myparent.isPaused) { owner.heatcnt++; owner.timelimit.gotoAndStop(owner.heatcnt); if (owner.heatcnt == 100) { eval ("myparent.customer" + curpoint).gotoAndStop(4); } if (owner.heatcnt >= 120) { clearInterval(owner.heatInterval); eval ("myparent.customer" + curpoint).gotoAndStop(6); myparent.moneyCount--; myparent.customerCount--; eval ("myparent.orderbook" + curpoint)._visible = false; eval ("myparent.table" + curpoint)._visible = false; if (eval ("myparent.customer" + curpoint).type == "oldlady") { if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 10)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 10) { myparent.score = myparent.score - 10; myparent.curScoreClip.disp.score.text = -10; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } else if (eval ("myparent.customer" + curpoint).type == "younglady") { if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 15)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 15) { myparent.score = myparent.score - 15; myparent.curScoreClip.disp.score.text = -15; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } eval ("myparent.orderbook" + curpoint).type = "empty"; myparent.lobbyArr.push(curpoint); if ((myparent.customerCount == 0) && (myparent.moneyCount == 0)) { if (!myparent.isGameOver) { myparent.CallNextCustomerSet(); } else { myparent.callResult(); } } } } } function GameTimeLimit(_arg1) { if (!_arg1.isPaused) { _arg1.gametimer++; _arg1.timerClip.gotoAndStop(_arg1.gametimer); if (_arg1.gametimer >= 90) { _arg1.isGameOver = true; _arg1.bg.gotoAndStop(1); _arg1.shopclosedClip._visible = true; _arg1.shopclosedClip.gotoAndPlay(1); _arg1.gametimer = 0; clearInterval(_arg1.gameInterval); } } } function CheckForBookCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_bookcnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_bookcnt); comboClip.combo.gotoAndPlay(1); score = score + 4; curScoreClip.disp.score.text = 4; tips = tips + 4; } else { score = score + 2; curScoreClip.disp.score.text = 2; tips = tips + 2; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_bookcnt) + "_Sound").start(); } } function CheckForOrderCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_ordercnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_ordercnt); comboClip.combo.gotoAndPlay(1); score = score + 20; curScoreClip.disp.score.text = 20; } else { score = score + 10; curScoreClip.disp.score.text = 10; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_ordercnt) + "_Sound").start(); } } function CheckForMoneyCombo() { if (_global.soundstat == "onn") { eval (("_root.money" + combo_moneycnt) + "_Sound").start(); } curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_moneycnt >= 2) { comboClip._x = eval ("this.orderbook" + selectedTable)._x - 20; comboClip._y = eval ("this.orderbook" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_moneycnt); comboClip.combo.gotoAndPlay(1); if (eval ("this.orderbook" + selectedTable).neededchocolate == "type_rabbit") { score = score + (combo_moneycnt * 30); curScoreClip.disp.score.text = combo_moneycnt * 30; } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 14); curScoreClip.disp.score.text = combo_moneycnt * 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 11); curScoreClip.disp.score.text = combo_moneycnt * 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 10); curScoreClip.disp.score.text = combo_moneycnt * 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 24); curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 21); curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 15); curScoreClip.disp.score.text = combo_moneycnt * 15; } } if (!isGameOver) { CallNextCustomerSet(); } } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 17; curScoreClip.disp.score.text = 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 14; curScoreClip.disp.score.text = 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 11; curScoreClip.disp.score.text = 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 10; curScoreClip.disp.score.text = 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 24; curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 21; curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 17; curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 15; curScoreClip.disp.score.text = combo_moneycnt * 15; } } } function IdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.preparecnt++; if (_arg3.preparecnt >= 20) { clearInterval(_arg3.process_interval); _arg3.machineStatus = "ready"; _arg3.machineshake = "off"; if (_arg3.choco_machines.status == "prepared") { _arg3.choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function SpecialIdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.spl_preparecnt++; if (_arg3.spl_preparecnt >= 40) { clearInterval(_arg3.special_process_interval); _arg3.special_machineStatus = "ready"; _arg3.specialmachineshake = "off"; if (_arg3.special_choco_machines.status == "prepared") { _arg3.special_choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function getRandom(_arg4, _arg5) { var _local3 = _arg5 - _arg4; var _local2 = Math.random() * _local3; var _local1 = Math.round(_local2); _local1 = _local1 + _arg4; return(_local1); } function StoreInSequence() { var owner = this; eval ("this." + moveTarget).onRelease(); } function CallSequence() { var owner = this; if (sequenceArr[0] == choco_machines) { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == special_choco_machines) { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == dusbin) { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); sequenceArr[0].pointer._visible = true; } } else if (((sequenceArr[0] == table1) || (sequenceArr[0] == table2)) || (sequenceArr[0] == table3)) { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = sequenceArr[0]._name; owner.calculateAngle(sequenceArr[0]); if (owner.selectedTarget == "table1") { owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.selectedTable = 3; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } } } function CallPause() { var _local2 = this; stopAllSounds(); _local2.bg.blink.gotoAndStop(_local2.bg.blink._currentframe); _local2.customer1.customer.gotoAndStop(_local2.customer1.customer._currentframe); _local2.customer2.customer.gotoAndStop(_local2.customer2.customer._currentframe); _local2.customer3.customer.gotoAndStop(_local2.customer3.customer._currentframe); _local2.special_choco_machines.machine1.blink.gotoAndStop(_local2.special_choco_machines.machine1.blink._currentframe); _local2.choco_machines.single_machine.blink.gotoAndStop(_local2.choco_machines.single_machine.blink._currentframe); _local2.salesGirl.coffeeicon.smoke.gotoAndStop(_local2.salesGirl.coffeeicon.smoke._currentframe); _local2.customer4.customer.gotoAndStop(_local2.customer4.customer._currentframe); _local2.coin_Anim1.coin.gotoAndStop(_local2.coin_Anim1.coin._currentframe); _local2.coin_Anim2.coin.gotoAndStop(_local2.coin_Anim2.coin._currentframe); _local2.coin_Anim3.coin.gotoAndStop(_local2.coin_Anim3.coin._currentframe); _local2.coin_Anim4.coin.gotoAndStop(_local2.coin_Anim4.coin._currentframe); _local2.comboClip.combo.gotoAndStop(_local2.comboClip.combo._currentframe); _local2.orderbook1.heartinClip.gotoAndStop(_local2.orderbook1.heartinClip._currentframe); _local2.orderbook2.heartinClip.gotoAndStop(_local2.orderbook2.heartinClip._currentframe); _local2.orderbook3.heartinClip.gotoAndStop(_local2.orderbook3.heartinClip._currentframe); _local2.orderbook4.heartinClip.gotoAndStop(_local2.orderbook4.heartinClip._currentframe); _local2.curScoreClip.gotoAndStop(_local2.curScoreClip._currentframe); _local2.coin_Anim1.coin.coin_rotate.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate._currentframe); _local2.coin_Anim1.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate2._currentframe); _local2.coin_Anim1.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate3._currentframe); _local2.coin_Anim1.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate4._currentframe); _local2.coin_Anim2.coin.coin_rotate.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate._currentframe); _local2.coin_Anim2.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate2._currentframe); _local2.coin_Anim2.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate3._currentframe); _local2.coin_Anim2.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate4._currentframe); _local2.coin_Anim3.coin.coin_rotate.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate._currentframe); _local2.coin_Anim3.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate2._currentframe); _local2.coin_Anim3.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate3._currentframe); _local2.coin_Anim3.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate4._currentframe); _local2.coin_Anim4.coin.coin_rotate.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate._currentframe); _local2.coin_Anim4.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate2._currentframe); _local2.coin_Anim4.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate3._currentframe); _local2.coin_Anim4.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate4._currentframe); _local2.comboClip.combo.coin_rotate.gotoAndStop(_local2.comboClip.combo.coin_rotate._currentframe); if (_local2.scoreIndicateClip._visible) { _local2.scoreIndicateClip.gotoAndStop(_local2.scoreIndicateClip._currentframe); } if (_local2.expertScoreClip._visible) { _local2.expertScoreClip.gotoAndStop(_local2.expertScoreClip._currentframe); } _local2.chocolateClip.mc.gotoAndStop(_local2.chocolateClip.mc._currentframe); _local2.specialChocolateClip.mc.gotoAndStop(_local2.specialChocolateClip.mc._currentframe); } function CallResume() { var _local4 = this; if (_global.soundstat == "onn") { _root.gameSound.start(); } _local4.bg.blink.gotoAndPlay(_local4.bg.blink._currentframe); _local4.customer1.customer.gotoAndPlay(_local4.customer1.customer._currentframe); _local4.customer2.customer.gotoAndPlay(_local4.customer2.customer._currentframe); _local4.customer3.customer.gotoAndPlay(_local4.customer3.customer._currentframe); _local4.special_choco_machines.machine1.blink.gotoAndPlay(_local4.special_choco_machines.machine1.blink._currentframe); _local4.choco_machines.single_machine.blink.gotoAndPlay(_local4.choco_machines.single_machine.blink._currentframe); _local4.salesGirl.coffeeicon.smoke.gotoAndPlay(_local4.salesGirl.coffeeicon.smoke._currentframe); _local4.customer4.customer.gotoAndPlay(_local4.customer4.customer._currentframe); _local4.coin_Anim1.coin.gotoAndPlay(_local4.coin_Anim1.coin._currentframe - 1); _local4.coin_Anim2.coin.gotoAndPlay(_local4.coin_Anim2.coin._currentframe - 1); _local4.coin_Anim3.coin.gotoAndPlay(_local4.coin_Anim3.coin._currentframe - 1); _local4.coin_Anim4.coin.gotoAndPlay(_local4.coin_Anim4.coin._currentframe - 1); _local4.comboClip.combo.gotoAndPlay(_local4.comboClip.combo._currentframe - 1); _local4.orderbook1.heartinClip.gotoAndPlay(_local4.orderbook1.heartinClip._currentframe - 1); _local4.orderbook2.heartinClip.gotoAndPlay(_local4.orderbook2.heartinClip._currentframe - 1); _local4.orderbook3.heartinClip.gotoAndPlay(_local4.orderbook3.heartinClip._currentframe - 1); _local4.orderbook4.heartinClip.gotoAndPlay(_local4.orderbook4.heartinClip._currentframe - 1); _local4.curScoreClip.gotoAndPlay(_local4.curScoreClip._currentframe); _local4.coin_Anim1.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate._currentframe); _local4.coin_Anim1.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate2._currentframe); _local4.coin_Anim1.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate3._currentframe); _local4.coin_Anim1.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate4._currentframe); _local4.coin_Anim2.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate._currentframe); _local4.coin_Anim2.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate2._currentframe); _local4.coin_Anim2.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate3._currentframe); _local4.coin_Anim2.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate4._currentframe); _local4.coin_Anim3.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate._currentframe); _local4.coin_Anim3.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate2._currentframe); _local4.coin_Anim3.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate3._currentframe); _local4.coin_Anim3.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate4._currentframe); _local4.coin_Anim4.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate._currentframe); _local4.coin_Anim4.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate2._currentframe); _local4.coin_Anim4.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate3._currentframe); _local4.coin_Anim4.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate4._currentframe); _local4.comboClip.combo.coin_rotate.gotoAndPlay(_local4.comboClip.combo.coin_rotate._currentframe); if (_local4.scoreIndicateClip._visible) { _local4.scoreIndicateClip.gotoAndPlay(_local4.scoreIndicateClip._currentframe - 1); } if (_local4.expertScoreClip._visible) { _local4.expertScoreClip.gotoAndPlay(_local4.expertScoreClip._currentframe - 1); } _local4.chocolateClip.mc.gotoAndPlay(_local4.chocolateClip.mc._currentframe - 1); _local4.specialChocolateClip.mc.gotoAndPlay(_local4.specialChocolateClip.mc._currentframe - 1); } function ObjectsRollOut() { table1.onRollOut(); table2.onRollOut(); table3.onRollOut(); choco_machines.onRollOut(); dusbin.onRollOut(); special_choco_machines.onRollOut(); } function Reset() { targetclip = "table1"; lobbyArr.length = 0; lobbyArr = new Array(1, 2, 3); currentDirection = "down"; targetDirection = ""; isPopup = false; popup_info = "welcome"; clearInterval(popup_interval); clearInterval(special_process_interval); clearInterval(process_interval); popup_interval = -1; isTargetReached = true; selectedTarget = ""; orderno = 0; score = 0; ismoveready = false; orderTaken = 0; customerCount = 0; machineStatus = "notready"; dusbinStatus = "notready"; girlwalkframe = 2; isFirstServeFinished = false; depthArr.length = 0; depthArr = new Array(-10313, -10315, -10317); chocolateTypeArr.length = 0; chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); customerEnterset = "firstset"; moneyCount = 0; clearInterval(gameInterval); gametimer = 0; isGameOver = false; combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt = 0; curtarget = ""; clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); isPaused = false; sequenceArr.length = 0; sequenceArr = new Array(); Key.removeListener(keylistener); Key.removeListener(leve3Keyobj); keyTarget = undefined; isspchoco = false; } var targetclip = "table1"; var lobbyArr = new Array(1, 2, 3); var currentDirection = "down"; var isPopup = false; var popup_info = "welcome"; var popup_interval = -1; var process_interval = -1; var special_process_interval = -1; var isTargetReached = true; var selectedTarget = ""; var orderno = 0; var ismoveready = false; var orderTaken = 0; var customerCount = 0; var machineStatus = "notready"; var special_machineStatus = "notready"; var dusbinStatus = "notready"; var girlwalkframe = 2; var isFirstServeFinished = false; var score = 0; var depthArr = new Array(-10313, -10315, -10317); var chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); var customerEnterset = "firstset"; var moneyCount = 0; var gameInterval = -1; var gametimer = 0; var isGameOver = false; var combo_bookcnt = 0; var combo_ordercnt = 0; var combo_moneycnt = 0; var gamestartInterval = -1; var curtarget = ""; var customerEnterInterval = -1; var customerEnterInterval2 = -1; var customerEnterInterval3 = -1; var reportInterval = -1; var isPaused = false; var machinespeed = 1; var specialmachinespeed = 1; var machineshake = "off"; var specialmachineshake = "off"; var sequenceArr = new Array(); var tips = 0; var Re_customerEnterInterval = -1; var isspchoco = false; var preparecnt = 0; var spl_preparecnt = 0; }
Symbol 1701 MovieClip [__Packages.Level4] Frame 0
class Level4 extends MovieClip { var salesGirl, btn_pause, _parent, choco_machines, special_choco_machines, scoreIndicateClip, shopclosedClip, timerClip, chocolate_container, special_chocolate_container, coffeeClip, chocolateClip, phone_mc, popup_mc, selectClip, coffee_machine, heartinClip, shopopenClip, reportMc, cancel_mc, infoClip, comboClip, dusbinContainer, curScoreClip, specialChocolateClip, expertScoreClip, table3, table2, table1, coin_Anim3, coin_Anim2, coin_Anim1, dusbin, leve4Keyobj, keyTarget, pauseTarget, scoreClip, radian, targetDirection, preferred_chocolate1, preferred_chocolate2, customer1, attachMovie, orderbook1, getNextHighestDepth, customer2, orderbook2, customer3, orderbook3, selectedTable, moveTarget, keylistener; function Level4 () { super(); } function onLoad() { var owner = this; clearInterval(popup_interval); clearInterval(process_interval); Reset(); salesGirl.coffeeicon._visible = false; btn_pause._visible = false; _parent.pauseClip._visible = false; salesGirl.gotoAndStop(currentDirection); salesGirl.chocolateCount = 0; choco_machines.status = "empty"; special_choco_machines.status = "empty"; salesGirl.girlwalk.gotoAndStop(girlwalkframe); scoreIndicateClip._visible = false; shopclosedClip._visible = false; timerClip._visible = false; chocolate_container._visible = false; special_chocolate_container._visible = false; special_chocolate_container.mc.gotoAndStop(1); coffeeClip._visible = false; chocolateClip._visible = false; phone_mc._visible = false; popup_mc._visible = false; selectClip._visible = false; coffee_machine._visible = false; heartinClip._visible = false; shopopenClip._visible = false; reportMc._visible = false; cancel_mc._visible = false; infoClip._visible = false; comboClip._visible = false; dusbinContainer._visible = false; curScoreClip._visible = false; specialChocolateClip._visible = false; expertScoreClip._visible = false; table2._visible = (table3._visible = false); table1._visible = false; coin_Anim2._visible = (coin_Anim3._visible = false); coin_Anim1._visible = false; table1.point = 1; table2.point = 2; table3.point = 3; choco_machines._visible = true; choco_machines.single_machine.gotoAndStop(2); dusbin._visible = true; dusbin.gotoAndStop(2); special_choco_machines._visible = true; special_choco_machines.gotoAndStop(1); special_choco_machines.machine1.gotoAndStop(2); isPopup = true; _global.popupText = "Welcome to my chocolate shop. Let's have a look around!"; ShowPopup(this); btn_pause.onRelease = function () { if (this._visible && (owner._parent.pauseClip._visible == false)) { owner.pauseTarget = "btn_continue"; owner.isPaused = true; owner.isPopup = true; this._visible = false; owner._parent.pauseClip._visible = true; owner._parent.pauseClip.gotoAndPlay(2); owner.CallPause(); } }; leve4Keyobj = new Object(); Key.addListener(leve4Keyobj); leve4Keyobj.onKeyUp = function () { if (Key.getCode() == 13) { if ((!owner.isPaused) && (!owner.isGameOver)) { owner.StoreInSequence(); } } }; leve4Keyobj.onKeyDown = function () { if (Key.getCode() == 37) { if (!owner.isPaused) { owner.LeftNavigation(); } } else if (Key.getCode() == 39) { if (!owner.isPaused) { owner.RightNavigation(); } } else if (Key.getCode() == 38) { if (!owner.isPaused) { owner.UpNavigation(); } else { owner.pauseUpNavigation(); } } else if (Key.getCode() == 40) { if (!owner.isPaused) { owner.DownNavigation(); } else { owner.pauseDownNavigation(); } } else if (Key.getCode() == 13) { if (owner.popup_mc._visible) { owner.popup_mc.btn_ok.onRelease(); } else if (owner.reportMc._visible) { if (owner.reportMc._currentframe == 1) { owner.reportMc.mc.btn_continue.onRelease(); } else { owner.reportMc.mc.btn_retry.onRelease(); } } else if (!owner.isPaused) { owner.EnterFunction(); } else { owner.PauseEnterFunction(); } } else if (Key.getAscii() == 27) { if (!owner.isPaused) { owner.btn_pause.onRelease(); } else if (owner.isPaused) { owner._parent.pauseClip.btn_continue.onRelease(); } } }; table1.onRollOver = (table2.onRollOver = (table3.onRollOver = function () { if ((!owner.isPaused) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = this._name; owner.moveTarget = this._name; eval ("this.orderbook" + this.point).highlight.gotoAndStop(2); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(2); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(2); } } })); table1.onRollOut = (table2.onRollOut = (table3.onRollOut = function () { eval ("this.orderbook" + this.point).highlight.gotoAndStop(1); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(1); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(1); } })); choco_machines.onRollOver = function () { if (((owner.machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "choco_machines"; owner.moveTarget = "choco_machines"; this.single_machine.gotoAndStop(3); } }; choco_machines.onRollOut = (choco_machines.onReleaseOutside = function () { this.single_machine.gotoAndStop(2); }); dusbin.onRollOver = function () { if ((owner.dusbinStatus == "ready") && (!owner.isPaused)) { owner.ObjectsRollOut(); owner.keyTarget = "dusbin"; owner.moveTarget = "dusbin"; this.gotoAndStop(3); } }; dusbin.onRollOut = (dusbin.onReleaseOutside = function () { this.gotoAndStop(2); }); special_choco_machines.onRollOver = function () { if (((owner.special_machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "special_choco_machines"; owner.moveTarget = "special_choco_machines"; this.machine1.gotoAndStop(3); } }; special_choco_machines.onRollOut = (special_choco_machines.onReleaseOutside = function () { this.machine1.gotoAndStop(2); }); choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.choco_machines); } }; choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); this.pointer._visible = true; } }; special_choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.special_choco_machines); } }; special_choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); this.pointer._visible = true; } }; dusbin.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.dusbin); } }; dusbin.onPress = function () { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); this.pointer._visible = true; } }; table1.onRelease = (table2.onRelease = (table3.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(this); } })); table1.onPress = (table2.onPress = (table3.onPress = function () { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = this._name; owner.calculateAngle(this); if (owner.selectedTarget == "table1") { owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.selectedTable = 3; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } })); } function LeftNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_box") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_triangle.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOut(); eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOver(); } } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); if (table3._visible) { table3.onRollOver(); } else if (table2._visible) { table2.onRollOver(); } else if (table1._visible) { table1.onRollOver(); } } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); choco_machines.onRollOver(); } } function RightNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_box.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOut(); eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOver(); } } else if (keyTarget == undefined) { choco_machines.onRollOver(); } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); special_choco_machines.onRollOver(); } else if (((keyTarget == "table1") || (keyTarget == "table2")) || (keyTarget == "table3")) { eval ("this." + keyTarget).onRollOut(); choco_machines.onRollOver(); } } function UpNavigation() { if (keyTarget == "table1") { if (table2._visible) { table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table2") { if (table3._visible) { table2.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "dusbin") { dusbin.onRollOut(); special_choco_machines.onRollOver(); } } function DownNavigation() { if (keyTarget == "table3") { if (table2._visible) { table3.onRollOut(); table2.onRollOver(); } else if (table1._visible) { table3.onRollOut(); table1.onRollOver(); } } else if (keyTarget == "table2") { if (table1._visible) { table2.onRollOut(); table1.onRollOver(); } } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); dusbin.onRollOver(); } } function EnterFunction() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_triangle.onRelease(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_round.onRelease(); } else if (keyTarget == "type_box") { chocolate_container.mc.type_box.onRelease(); } } else if (special_chocolate_container._visible) { eval ("this.special_chocolate_container.mc." + keyTarget).onRelease(); } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRelease(); } else if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRelease(); } } else { eval ("this." + keyTarget).onPress(); } } function PauseEnterFunction() { eval ("this._parent.pauseClip." + pauseTarget).onRelease(); } function pauseUpNavigation() { if (pauseTarget == "btn_premium") { _parent.pauseClip.btn_premium.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_continue.onRollOver(); } } function pauseDownNavigation() { if (pauseTarget == "pause") { _parent.pauseClip.btn_continue.onRollOver(); } else if (pauseTarget == "btn_continue") { _parent.pauseClip.btn_continue.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_premium.onRollOver(); } } function updateScore() { scoreClip.score_txt.text = score; scoreClip.loading.gotoAndStop(score); if ((score >= 150) && (scoreClip.target._currentframe == 1)) { scoreClip.target.gotoAndPlay(1); scoreIndicateClip._visible = true; scoreIndicateClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.target_score_Sound.start(); } } if ((score >= 250) && (scoreClip.expert._currentframe == 1)) { scoreClip.expert.gotoAndPlay(1); expertScoreClip._visible = true; expertScoreClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.expert_score_Sound.start(); } } } function onEnterFrame() { var owner = this; if (((!isPopup) && (!isTargetReached)) && (!owner.isPaused)) { shopperMovement(); } if (machineshake == "onn") { machinespeed = -machinespeed; choco_machines._x = choco_machines._x + ((1 * machinespeed) / 2); choco_machines._y = choco_machines._y + ((1 * machinespeed) / 2); } if (specialmachineshake == "onn") { specialmachinespeed = -specialmachinespeed; special_choco_machines._x = special_choco_machines._x + ((1 * specialmachinespeed) / 2); special_choco_machines._y = special_choco_machines._y + ((1 * specialmachinespeed) / 2); } else { special_choco_machines._x = 631; special_choco_machines._y = 101; } _parent.pauseClip.btn_continue.onRollOver = (_parent.pauseClip.btn_restart.onRollOver = (_parent.pauseClip.btn_mainmenu.onRollOver = (_parent.pauseClip.btn_premium.onRollOver = function () { owner._parent.pauseClip.btn_continue.onRollOut(); owner._parent.pauseClip.btn_restart.onRollOut(); owner._parent.pauseClip.btn_mainmenu.onRollOut(); owner._parent.pauseClip.btn_premium.onRollOut(); owner.pauseTarget = this._name; this.gotoAndStop(2); }))); _parent.pauseClip.btn_continue.onRollOut = (_parent.pauseClip.btn_restart.onRollOut = (_parent.pauseClip.btn_mainmenu.onRollOut = (_parent.pauseClip.btn_premium.onRollOut = function () { this.gotoAndStop(1); }))); _parent.pauseClip.btn_continue.onRelease = function () { owner.isPaused = false; owner.isPopup = false; owner.btn_pause._visible = true; owner._parent.pauseClip._visible = false; owner.CallResume(); }; _parent.pauseClip.btn_restart.onRelease = function () { owner.Reset(); owner._parent.play(); }; _parent.pauseClip.btn_mainmenu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; _parent.pauseClip.btn_premium.onRelease = function () { this.getURL(_root.urlname, "_blank"); }; popup_mc.btn_ok.onRollOver = function () { this.gotoAndStop(2); }; popup_mc.btn_ok.onRollOut = (popup_mc.btn_ok.onReleaseOutside = function () { this.gotoAndStop(1); }); chocolate_container.mc.type_triangle.onRollOver = (chocolate_container.mc.type_round.onRollOver = (chocolate_container.mc.type_box.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.chocolate_container.mc.type_triangle.gotoAndStop(1); owner.chocolate_container.mc.type_round.gotoAndStop(1); owner.chocolate_container.mc.type_box.gotoAndStop(1); this.gotoAndStop(2); } })); chocolate_container.mc.type_triangle.onRelease = (chocolate_container.mc.type_round.onRelease = (chocolate_container.mc.type_box.onRelease = function () { if (!owner.isPaused) { owner.infoClip._visible = false; owner.chocolateClip._visible = true; owner.chocolateClip.gotoAndStop(this._name); owner.chocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_box_chocolate = this._name; if (owner.choco_machines.status == "empty") { owner.choco_machines.status = "prepared"; } owner.preparecnt = 0; owner.process_interval = setInterval(owner.IdleProcess, 100, owner); owner.chocolate_container.gotoAndStop(2); owner.dusbinStatus = "ready"; owner.machineStatus = "ready"; owner.isPopup = false; owner.machineshake = "onn"; owner.keyTarget = "choco_machines"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } })); chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.machineStatus = "ready"; owner.chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; owner.keyTarget = "choco_machines"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; special_chocolate_container.mc.type_rabbit.onRollOver = (special_chocolate_container.mc.type_fish.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.special_chocolate_container.mc.type_rabbit.gotoAndStop(1); owner.special_chocolate_container.mc.type_fish.gotoAndStop(1); this.gotoAndStop(2); } }); special_chocolate_container.mc.type_rabbit.onRelease = (special_chocolate_container.mc.type_fish.onRelease = function () { if (!owner.isPaused) { owner.infoClip._visible = false; owner.specialChocolateClip._visible = true; owner.specialChocolateClip.gotoAndStop(this._name); owner.specialChocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_special_chocolate = this._name; if (owner.special_choco_machines.status == "empty") { owner.special_choco_machines.status = "prepared"; } owner.spl_preparecnt = 0; owner.special_process_interval = setInterval(owner.SpecialIdleProcess, 100, owner); owner.special_chocolate_container.gotoAndStop(2); owner.dusbinStatus = "ready"; owner.special_machineStatus = "ready"; owner.isPopup = false; owner.specialmachineshake = "onn"; owner.keyTarget = "special_choco_machines"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }); special_chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.special_machineStatus = "ready"; owner.special_chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; owner.keyTarget = "special_choco_machines"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; dusbinContainer.mc.chocobox1.type_triangle.onRollOver = (dusbinContainer.mc.chocobox1.type_round.onRollOver = (dusbinContainer.mc.chocobox1.type_box.onRollOver = (dusbinContainer.mc.chocobox2.type_triangle.onRollOver = (dusbinContainer.mc.chocobox2.type_round.onRollOver = (dusbinContainer.mc.chocobox2.type_box.onRollOver = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox1.type_fish.onRollOver = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox2.type_fish.onRollOver = function () { owner.keyTarget = this._name; this.gotoAndStop(2); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRollOut = (dusbinContainer.mc.chocobox1.type_round.onRollOut = (dusbinContainer.mc.chocobox1.type_box.onRollOut = (dusbinContainer.mc.chocobox2.type_triangle.onRollOut = (dusbinContainer.mc.chocobox2.type_round.onRollOut = (dusbinContainer.mc.chocobox2.type_box.onRollOut = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox1.type_fish.onRollOut = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox2.type_fish.onRollOut = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_fish.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_fish.onReleaseOutside = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRelease = (dusbinContainer.mc.chocobox1.type_round.onRelease = (dusbinContainer.mc.chocobox1.type_box.onRelease = (dusbinContainer.mc.chocobox2.type_triangle.onRelease = (dusbinContainer.mc.chocobox2.type_round.onRelease = (dusbinContainer.mc.chocobox2.type_box.onRelease = (dusbinContainer.mc.chocobox1.type_rabbit.onRelease = (dusbinContainer.mc.chocobox1.type_fish.onRelease = (dusbinContainer.mc.chocobox2.type_rabbit.onRelease = (dusbinContainer.mc.chocobox2.type_fish.onRelease = function () { if (!owner.isPaused) { if (this._name == owner.preferred_chocolate1) { owner.preferred_chocolate1 = owner.preferred_chocolate2; owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } else { owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }))))))))); dusbinContainer.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; reportMc.mc.btn_continue.onRelease = function () { owner.Reset(); _global.calenderfrom = "game"; owner._parent.gotoAndStop("calender"); }; reportMc.mc.btn_menu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; reportMc.mc.btn_retry.onRelease = function () { owner.Reset(); owner._parent.play(); }; popup_mc.btn_ok.onRelease = function () { if (owner.popup_info == "welcome") { owner.combo_bookcnt = 0; owner.combo_ordercnt = 0; owner.combo_moneycnt = 0; owner.btn_pause._visible = true; owner.popupDisable(); var _local1 = owner.getRandom(0, 2); owner.customerEnterInterval = setInterval(owner.CallCustomer, 2000, owner, owner.lobbyArr[_local1], "oldlady"); owner.lobbyArr.splice(_local1, 1); owner.isPopup = false; owner.popup_info = "level2_start"; owner.bg.gotoAndStop(2); owner.shopopenClip._visible = true; owner.shopopenClip.gotoAndPlay(1); owner.ismoveready = true; owner.machineStatus = "ready"; owner.special_machineStatus = "ready"; owner.dusbinStatus = "ready"; owner.timerClip._visible = true; clearInterval(owner.gameInterval); owner.gametimer = 0; owner.gameInterval = setInterval(owner.GameTimeLimit, 700, owner); owner.Re_customerEnterInterval = setInterval(owner.CallNewCustomer, 6000, owner); } else if (owner.popup_info == "order") { owner.popupDisable(); owner.isPopup = false; owner.popup_info = ""; owner.selectClip._visible = true; owner.selectClip._x = owner.choco_machines._x; owner.selectClip._y = owner.choco_machines._y - 80; } else if (owner.popup_info == "mismatch") { owner.popupDisable(); owner.isPopup = false; } }; } function shopperMovement() { var _local3 = (salesGirl._x + salesGirl.pointer._x) - targetclip._x; var _local2 = (salesGirl._y + salesGirl.pointer._y) - targetclip._y; var _local5 = Math.sqrt((_local2 * _local2) + (_local3 * _local3)); var _local4 = 10; if (_local5 >= _local4) { salesGirl._x = salesGirl._x + (Math.cos(radian) * 12); salesGirl._y = salesGirl._y + (Math.sin(radian) * 12); } else if (!isTargetReached) { isTargetReached = true; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); Manipulate(); updateScore(); } } function GameStart(_arg2) { clearInterval(_arg2.gamestartInterval); _arg2.isPopup = true; _global.popupText = "Select the SPECIALTY CHOCOLATE machine to produce chocolate figures."; _arg2.ShowPopup(_arg2); } function calculateAngle(mc) { if (!isPopup) { targetclip = mc; var x_diff = (eval (mc)._x - (salesGirl._x + salesGirl.pointer._x)); var y_diff = (eval (mc)._y - (salesGirl._y + salesGirl.pointer._y)); radian = Math.atan2(y_diff, x_diff); if (Math.abs(x_diff) > Math.abs(y_diff)) { if (x_diff > 0) { targetDirection = "right"; } else { targetDirection = "left"; } } else if (y_diff > 0) { targetDirection = "down"; } else { targetDirection = "up"; } if (curtarget != selectedTarget) { curtarget = selectedTarget; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe - 1); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); } } } function ShowPopup(_arg1) { clearInterval(_arg1.popup_interval); _arg1.isPopup = true; _arg1.popup_mc._visible = true; _arg1.popup_mc.swapDepths(_arg1.getNextHighestDepth()); _arg1.popup_mc.gotoAndPlay(1); } function popupDisable() { popup_mc.gotoAndStop(1); popup_mc._visible = false; } function CallNewCustomer(_arg1) { if (!_arg1.isGameOver) { if ((_arg1.customerCount != 0) && (_arg1.moneyCount != 0)) { _arg1.CallNextCustomerSet(); } } else { clearInterval(_arg1.Re_customerEnterInterval); } } function CallCustomer(_arg2, _arg3, _arg4) { if (!_arg2.isPaused) { clearInterval(_arg2.customerEnterInterval); if (!_arg2.isGameOver) { _arg2.customerEnter(_arg3, _arg4); var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == _arg3) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } else if ((_arg2.customerCount == 0) && (_arg2.moneyCount == 0)) { _arg2.callResult(); } } } function CallCustomer2(_arg2, _arg3, _arg4) { if (!_arg2.isPaused) { clearInterval(_arg2.customerEnterInterval2); if (!_arg2.isGameOver) { _arg2.customerEnter(_arg3, _arg4); var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == _arg3) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } else if ((_arg2.customerCount == 0) && (_arg2.moneyCount == 0)) { _arg2.callResult(); } } } function CallCustomer3(_arg2, _arg3, _arg4) { if (!_arg2.isPaused) { clearInterval(_arg2.customerEnterInterval3); if (!_arg2.isGameOver) { _arg2.customerEnter(_arg3, _arg4); var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == _arg3) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } else if ((_arg2.customerCount == 0) && (_arg2.moneyCount == 0)) { _arg2.callResult(); } } } function Re_CallCustomer(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.Re_customerEnterInterval); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function customerEnter(_arg3, _arg2) { if (_arg3 == 1) { table1._visible = true; customer1 = attachMovie(_arg2, "customer1", depthArr[_arg3 - 1], {_x:115, _y:356}); orderbook1 = attachMovie("orderbook", "orderbook1", getNextHighestDepth(), {_x:170, _y:374}); orderbook1.type = "book"; customer1.type = _arg2; orderbook1.heatcnt = 0; if (_arg2 == "oldlady") { orderbook1.heatInterval = setInterval(HeatFunction, 600, orderbook1, this, 1); } else if (_arg2 == "younglady") { orderbook1.heatInterval = setInterval(HeatFunction, 300, orderbook1, this, 1); } } else if (_arg3 == 2) { table2._visible = true; customer2 = attachMovie(_arg2, "customer2", depthArr[_arg3 - 1], {_x:119, _y:235}); orderbook2 = attachMovie("orderbook", "orderbook2", getNextHighestDepth(), {_x:177, _y:278}); orderbook2.type = "book"; customer2.type = _arg2; orderbook2.heatcnt = 0; if (_arg2 == "oldlady") { orderbook2.heatInterval = setInterval(HeatFunction, 600, orderbook2, this, 2); } else if (_arg2 == "younglady") { orderbook2.heatInterval = setInterval(HeatFunction, 300, orderbook2, this, 2); } } else if (_arg3 == 3) { table3._visible = true; customer3 = attachMovie(_arg2, "customer3", depthArr[_arg3 - 1], {_x:127, _y:140}); orderbook3 = attachMovie("orderbook", "orderbook3", getNextHighestDepth(), {_x:184, _y:185}); orderbook3.type = "book"; customer3.type = _arg2; orderbook3.heatcnt = 0; if (_arg2 == "oldlady") { orderbook3.heatInterval = setInterval(HeatFunction, 600, orderbook3, this, 3); } else if (_arg2 == "younglady") { orderbook3.heatInterval = setInterval(HeatFunction, 300, orderbook3, this, 3); } } customerCount++; moneyCount++; salesGirl.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); chocolate_container.swapDepths(getNextHighestDepth()); special_chocolate_container.swapDepths(getNextHighestDepth()); dusbinContainer.swapDepths(getNextHighestDepth()); comboClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); } function Manipulate() { var owner = this; if (selectedTarget == "choco_machines") { choco_machines.pointer._visible = false; if (choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_round"; } } else if (choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_box_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_box_chocolate; } owner.salesGirl.chocolateCount++; chocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { if (orderbook1.book_mc._currentframe == 74) { orderbook1.green_highlight._visible = true; } } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { if (orderbook2.book_mc._currentframe == 74) { orderbook2.green_highlight._visible = true; } } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { if (orderbook3.book_mc._currentframe == 74) { orderbook3.green_highlight._visible = true; } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "special_choco_machines") { special_choco_machines.pointer._visible = false; if (special_choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { special_chocolate_container._visible = true; special_chocolate_container.gotoAndStop(1); special_chocolate_container.mc.gotoAndPlay(1); special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_rabbit"; } } else if (special_choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_special_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_special_chocolate; } owner.salesGirl.chocolateCount++; specialChocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); special_choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "dusbin") { dusbin.pointer._visible = false; if (salesGirl.chocolateCount == 1) { salesGirl.chocolateCount--; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); preferred_chocolate1 = null; preferred_chocolate2 = null; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (salesGirl.chocolateCount >= 2) { dusbinStatus = "notready"; isPopup = true; _global.preferred_chocolate1 = preferred_chocolate1; _global.preferred_chocolate2 = preferred_chocolate2; keyTarget = _global.preferred_chocolate1; dusbinContainer._visible = true; dusbinContainer.gotoAndStop(1); dusbinContainer.mc.gotoAndPlay(1); } } else if (((selectedTarget == "table1") || (selectedTarget == "table2")) || (selectedTarget == "table3")) { eval ("this.orderbook" + selectedTable).pointer._visible = false; if (eval ("this.orderbook" + selectedTable).type == "book") { combo_bookcnt++; combo_ordercnt = 0; combo_moneycnt = 0; eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; var randomno = owner.getRandom(0, 4); eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.customer" + selectedTable).gotoAndStop(3); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); var heatcntchange = int(eval ("this.orderbook" + selectedTable).heatcnt / 4); if (heatcntchange > 1) { eval ("this.orderbook" + selectedTable).heatcnt = heatcntchange; } else { eval ("this.orderbook" + selectedTable).heatcnt = 1; } CheckForBookCombo(); } else if (eval ("this.orderbook" + selectedTable).type == "chocolateOrder") { if ((salesGirl.chocolateCount >= 1) && (eval ("this.orderbook" + selectedTable).book_mc._currentframe >= 74)) { combo_bookcnt = 0; combo_moneycnt = 0; if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate1) { combo_ordercnt++; preferred_chocolate1 = preferred_chocolate2; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; if (salesGirl.chocolateCount == 1) { preferred_chocolate1 = null; } salesGirl.chocolateCount--; owner.setGreenHighLight(); if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { CallNextCustomerSet(); } } else if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate2) { combo_ordercnt++; salesGirl.chocolateCount--; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; owner.setGreenHighLight(); if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { CallNextCustomerSet(); } } } } else if (eval ("this.orderbook" + selectedTable).type == "money") { combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt++; moneyCount--; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(2); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable)._visible = false; eval ("this.customer" + selectedTable)._visible = false; eval ("this.table" + selectedTable)._visible = false; eval ("this.orderbook" + selectedTable).type = "empty"; CheckForMoneyCombo(); lobbyArr.push(selectedTable); if ((customerCount == 0) && (moneyCount == 0)) { if (!isGameOver) { if (lobbyArr.length == 3) { customerCount = 0; moneyCount = 0; owner.table2._visible = (owner.table3._visible = false); owner.table1._visible = false; CallNextCustomerSet(); } } else { callResult(); } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } function CallNextCustomerSet() { var _local2 = this; clearInterval(_local2.customerEnterInterval); clearInterval(_local2.customerEnterInterval2); clearInterval(_local2.customerEnterInterval3); if (lobbyArr.length == 1) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local6 = Math.ceil((Math.random() * 3) - 1); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 2000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local6]); var _local5 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local2.lobbyArr.push(_local5); } else if (lobbyArr.length == 2) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local6 = Math.ceil((Math.random() * 3) - 1); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local6]); var _local5 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local6 = Math.ceil((Math.random() * 3) - 1); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 3000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local6]); var _local7 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local2.lobbyArr.push(_local5); _local2.lobbyArr.push(_local7); } else if (lobbyArr.length == 3) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local6 = Math.ceil((Math.random() * 3) - 1); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local6]); var _local5 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local6 = Math.ceil((Math.random() * 3) - 1); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 3500, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local6]); var _local7 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local6 = Math.ceil((Math.random() * 3) - 1); _local2.customerEnterInterval3 = setInterval(_local2.CallCustomer3, 4500, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local6]); var _local4 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local2.lobbyArr.push(_local5); _local2.lobbyArr.push(_local7); _local2.lobbyArr.push(_local4); } } function setGreenHighLight() { if (orderbook1.book_mc._currentframe >= 74) { if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } else { orderbook1.green_highlight._visible = false; } } if (orderbook2.book_mc._currentframe >= 74) { if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } else { orderbook2.green_highlight._visible = false; } } if (orderbook3.book_mc._currentframe >= 74) { if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } else { orderbook3.green_highlight._visible = false; } } } function callResult() { clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); machineStatus = "notready"; special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; _global.report_moneyEarned = score; _global.report_tips = tips; _global.targetScore = 150; _global.expertScore = 250; btn_pause._visible = false; dusbinStatus = "notready"; score = score + tips; if (score < 150) { reportMc._visible = true; reportMc.gotoAndStop(2); reportMc.mc.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.level_failed_Sound.start(); } } else { if (_global.soundstat == "onn") { _root.level_complete_Sound.start(); } if (_global.levelSelected < 5) { _global.levelSelected = 5; } if (_global.levelFinished <= 4) { _global.levelFinished = 4; } if (score >= 250) { _global.level4Status = "expert"; } else { _global.level4Status = "target"; } _global.level4Score = score; if (((score >= 150) && (scoreClip.target._currentframe == 1)) || ((score >= 250) && (scoreClip.expert._currentframe == 1))) { reportInterval = setInterval(CallReport, 2300, this); } else { reportMc._visible = true; reportMc.gotoAndStop(1); reportMc.mc.gotoAndPlay(2); } } } function CallReport(_arg1) { clearInterval(_arg1.reportInterval); _arg1.reportMc._visible = true; _arg1.reportMc.gotoAndStop(1); _arg1.reportMc.mc.gotoAndPlay(2); } function HeatFunction(owner, myparent, curpoint) { if (!myparent.isPaused) { owner.heatcnt++; owner.timelimit.gotoAndStop(owner.heatcnt); if (owner.heatcnt == 100) { eval ("myparent.customer" + curpoint).gotoAndStop(4); } if (owner.heatcnt >= 120) { clearInterval(owner.heatInterval); eval ("myparent.customer" + curpoint).gotoAndStop(6); myparent.moneyCount--; myparent.customerCount--; eval ("myparent.orderbook" + curpoint)._visible = false; eval ("myparent.table" + curpoint)._visible = false; if (eval ("myparent.customer" + curpoint).type == "oldlady") { if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 10)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 10) { myparent.score = myparent.score - 10; myparent.curScoreClip.disp.score.text = -10; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } else if (eval ("myparent.customer" + curpoint).type == "younglady") { if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 15)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 15) { myparent.score = myparent.score - 15; myparent.curScoreClip.disp.score.text = -15; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } eval ("myparent.orderbook" + curpoint).type = "empty"; myparent.lobbyArr.push(curpoint); if ((myparent.customerCount == 0) && (myparent.moneyCount == 0)) { if (!myparent.isGameOver) { myparent.CallNextCustomerSet(); } else { myparent.callResult(); } } } } } function GameTimeLimit(_arg1) { if (!_arg1.isPaused) { _arg1.gametimer++; _arg1.timerClip.gotoAndStop(_arg1.gametimer); if (_arg1.gametimer >= 90) { _arg1.isGameOver = true; _arg1.bg.gotoAndStop(1); _arg1.shopclosedClip._visible = true; _arg1.shopclosedClip.gotoAndPlay(1); _arg1.gametimer = 0; clearInterval(_arg1.gameInterval); } } } function CheckForBookCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_bookcnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_bookcnt); comboClip.combo.gotoAndPlay(1); score = score + 4; curScoreClip.disp.score.text = 4; tips = tips + 4; } else { score = score + 2; curScoreClip.disp.score.text = 2; tips = tips + 2; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_bookcnt) + "_Sound").start(); } } function CheckForOrderCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_ordercnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_ordercnt); comboClip.combo.gotoAndPlay(1); score = score + 20; curScoreClip.disp.score.text = 20; } else { score = score + 10; curScoreClip.disp.score.text = 10; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_ordercnt) + "_Sound").start(); } } function CheckForMoneyCombo() { if (_global.soundstat == "onn") { eval (("_root.money" + combo_moneycnt) + "_Sound").start(); } curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_moneycnt >= 2) { comboClip._x = eval ("this.orderbook" + selectedTable)._x - 20; comboClip._y = eval ("this.orderbook" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_moneycnt); comboClip.combo.gotoAndPlay(1); if (eval ("this.orderbook" + selectedTable).neededchocolate == "type_rabbit") { score = score + (combo_moneycnt * 30); curScoreClip.disp.score.text = combo_moneycnt * 30; } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 14); curScoreClip.disp.score.text = combo_moneycnt * 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 11); curScoreClip.disp.score.text = combo_moneycnt * 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 10); curScoreClip.disp.score.text = combo_moneycnt * 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 24); curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 21); curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 15); curScoreClip.disp.score.text = combo_moneycnt * 15; } } if (!isGameOver) { CallNextCustomerSet(); } } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 17; curScoreClip.disp.score.text = 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 14; curScoreClip.disp.score.text = 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 11; curScoreClip.disp.score.text = 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 10; curScoreClip.disp.score.text = 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 24; curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 21; curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 17; curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 15; curScoreClip.disp.score.text = combo_moneycnt * 15; } } } function IdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.preparecnt++; if (_arg3.preparecnt >= 20) { clearInterval(_arg3.process_interval); _arg3.machineStatus = "ready"; _arg3.machineshake = "off"; if (_arg3.choco_machines.status == "prepared") { _arg3.choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function SpecialIdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.spl_preparecnt++; if (_arg3.spl_preparecnt >= 40) { clearInterval(_arg3.special_process_interval); _arg3.special_machineStatus = "ready"; _arg3.specialmachineshake = "off"; if (_arg3.special_choco_machines.status == "prepared") { _arg3.special_choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function getRandom(_arg4, _arg5) { var _local3 = _arg5 - _arg4; var _local2 = Math.random() * _local3; var _local1 = Math.round(_local2); _local1 = _local1 + _arg4; return(_local1); } function StoreInSequence() { var owner = this; eval ("this." + moveTarget).onRelease(); } function CallSequence() { var owner = this; if (sequenceArr[0] == choco_machines) { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == special_choco_machines) { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == dusbin) { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); sequenceArr[0].pointer._visible = true; } } else if (((sequenceArr[0] == table1) || (sequenceArr[0] == table2)) || (sequenceArr[0] == table3)) { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = sequenceArr[0]._name; owner.calculateAngle(sequenceArr[0]); if (owner.selectedTarget == "table1") { owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.selectedTable = 3; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } } } function CallPause() { var _local2 = this; stopAllSounds(); _local2.bg.blink.gotoAndStop(_local2.bg.blink._currentframe); _local2.customer1.customer.gotoAndStop(_local2.customer1.customer._currentframe); _local2.customer2.customer.gotoAndStop(_local2.customer2.customer._currentframe); _local2.customer3.customer.gotoAndStop(_local2.customer3.customer._currentframe); _local2.special_choco_machines.machine1.blink.gotoAndStop(_local2.special_choco_machines.machine1.blink._currentframe); _local2.choco_machines.single_machine.blink.gotoAndStop(_local2.choco_machines.single_machine.blink._currentframe); _local2.salesGirl.coffeeicon.smoke.gotoAndStop(_local2.salesGirl.coffeeicon.smoke._currentframe); _local2.customer4.customer.gotoAndStop(_local2.customer4.customer._currentframe); _local2.coin_Anim1.coin.gotoAndStop(_local2.coin_Anim1.coin._currentframe); _local2.coin_Anim2.coin.gotoAndStop(_local2.coin_Anim2.coin._currentframe); _local2.coin_Anim3.coin.gotoAndStop(_local2.coin_Anim3.coin._currentframe); _local2.coin_Anim4.coin.gotoAndStop(_local2.coin_Anim4.coin._currentframe); _local2.comboClip.combo.gotoAndStop(_local2.comboClip.combo._currentframe); _local2.orderbook1.heartinClip.gotoAndStop(_local2.orderbook1.heartinClip._currentframe); _local2.orderbook2.heartinClip.gotoAndStop(_local2.orderbook2.heartinClip._currentframe); _local2.orderbook3.heartinClip.gotoAndStop(_local2.orderbook3.heartinClip._currentframe); _local2.orderbook4.heartinClip.gotoAndStop(_local2.orderbook4.heartinClip._currentframe); _local2.curScoreClip.gotoAndStop(_local2.curScoreClip._currentframe); _local2.coin_Anim1.coin.coin_rotate.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate._currentframe); _local2.coin_Anim1.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate2._currentframe); _local2.coin_Anim1.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate3._currentframe); _local2.coin_Anim1.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate4._currentframe); _local2.coin_Anim2.coin.coin_rotate.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate._currentframe); _local2.coin_Anim2.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate2._currentframe); _local2.coin_Anim2.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate3._currentframe); _local2.coin_Anim2.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate4._currentframe); _local2.coin_Anim3.coin.coin_rotate.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate._currentframe); _local2.coin_Anim3.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate2._currentframe); _local2.coin_Anim3.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate3._currentframe); _local2.coin_Anim3.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate4._currentframe); _local2.coin_Anim4.coin.coin_rotate.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate._currentframe); _local2.coin_Anim4.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate2._currentframe); _local2.coin_Anim4.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate3._currentframe); _local2.coin_Anim4.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate4._currentframe); _local2.comboClip.combo.coin_rotate.gotoAndStop(_local2.comboClip.combo.coin_rotate._currentframe); if (_local2.scoreIndicateClip._visible) { _local2.scoreIndicateClip.gotoAndStop(_local2.scoreIndicateClip._currentframe); } if (_local2.expertScoreClip._visible) { _local2.expertScoreClip.gotoAndStop(_local2.expertScoreClip._currentframe); } _local2.chocolateClip.mc.gotoAndStop(_local2.chocolateClip.mc._currentframe); _local2.specialChocolateClip.mc.gotoAndStop(_local2.specialChocolateClip.mc._currentframe); } function CallResume() { var _local4 = this; if (_global.soundstat == "onn") { _root.gameSound.start(); } _local4.bg.blink.gotoAndPlay(_local4.bg.blink._currentframe); _local4.customer1.customer.gotoAndPlay(_local4.customer1.customer._currentframe); _local4.customer2.customer.gotoAndPlay(_local4.customer2.customer._currentframe); _local4.customer3.customer.gotoAndPlay(_local4.customer3.customer._currentframe); _local4.special_choco_machines.machine1.blink.gotoAndPlay(_local4.special_choco_machines.machine1.blink._currentframe); _local4.choco_machines.single_machine.blink.gotoAndPlay(_local4.choco_machines.single_machine.blink._currentframe); _local4.salesGirl.coffeeicon.smoke.gotoAndPlay(_local4.salesGirl.coffeeicon.smoke._currentframe); _local4.customer4.customer.gotoAndPlay(_local4.customer4.customer._currentframe); _local4.coin_Anim1.coin.gotoAndPlay(_local4.coin_Anim1.coin._currentframe - 1); _local4.coin_Anim2.coin.gotoAndPlay(_local4.coin_Anim2.coin._currentframe - 1); _local4.coin_Anim3.coin.gotoAndPlay(_local4.coin_Anim3.coin._currentframe - 1); _local4.coin_Anim4.coin.gotoAndPlay(_local4.coin_Anim4.coin._currentframe - 1); _local4.comboClip.combo.gotoAndPlay(_local4.comboClip.combo._currentframe - 1); _local4.orderbook1.heartinClip.gotoAndPlay(_local4.orderbook1.heartinClip._currentframe - 1); _local4.orderbook2.heartinClip.gotoAndPlay(_local4.orderbook2.heartinClip._currentframe - 1); _local4.orderbook3.heartinClip.gotoAndPlay(_local4.orderbook3.heartinClip._currentframe - 1); _local4.orderbook4.heartinClip.gotoAndPlay(_local4.orderbook4.heartinClip._currentframe - 1); _local4.curScoreClip.gotoAndPlay(_local4.curScoreClip._currentframe); _local4.coin_Anim1.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate._currentframe); _local4.coin_Anim1.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate2._currentframe); _local4.coin_Anim1.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate3._currentframe); _local4.coin_Anim1.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate4._currentframe); _local4.coin_Anim2.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate._currentframe); _local4.coin_Anim2.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate2._currentframe); _local4.coin_Anim2.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate3._currentframe); _local4.coin_Anim2.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate4._currentframe); _local4.coin_Anim3.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate._currentframe); _local4.coin_Anim3.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate2._currentframe); _local4.coin_Anim3.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate3._currentframe); _local4.coin_Anim3.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate4._currentframe); _local4.coin_Anim4.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate._currentframe); _local4.coin_Anim4.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate2._currentframe); _local4.coin_Anim4.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate3._currentframe); _local4.coin_Anim4.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate4._currentframe); _local4.comboClip.combo.coin_rotate.gotoAndPlay(_local4.comboClip.combo.coin_rotate._currentframe); if (_local4.scoreIndicateClip._visible) { _local4.scoreIndicateClip.gotoAndPlay(_local4.scoreIndicateClip._currentframe - 1); } if (_local4.expertScoreClip._visible) { _local4.expertScoreClip.gotoAndPlay(_local4.expertScoreClip._currentframe - 1); } _local4.chocolateClip.mc.gotoAndPlay(_local4.chocolateClip.mc._currentframe - 1); _local4.specialChocolateClip.mc.gotoAndPlay(_local4.specialChocolateClip.mc._currentframe - 1); } function ObjectsRollOut() { table1.onRollOut(); table2.onRollOut(); table3.onRollOut(); choco_machines.onRollOut(); dusbin.onRollOut(); special_choco_machines.onRollOut(); } function Reset() { targetclip = "table1"; lobbyArr.length = 0; lobbyArr = new Array(1, 2, 3); currentDirection = "down"; targetDirection = ""; isPopup = false; popup_info = "welcome"; clearInterval(popup_interval); clearInterval(special_process_interval); clearInterval(process_interval); popup_interval = -1; isTargetReached = true; selectedTarget = ""; orderno = 0; score = 0; ismoveready = false; orderTaken = 0; customerCount = 0; machineStatus = "notready"; dusbinStatus = "notready"; girlwalkframe = 2; isFirstServeFinished = false; depthArr.length = 0; depthArr = new Array(-10313, -10315, -10317); chocolateTypeArr.length = 0; chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); customerEnterset = "firstset"; moneyCount = 0; clearInterval(gameInterval); gametimer = 0; isGameOver = false; combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt = 0; curtarget = ""; clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); clearInterval(Re_customerEnterInterval); isPaused = false; sequenceArr.length = 0; sequenceArr = new Array(); Key.removeListener(keylistener); Key.removeListener(leve4Keyobj); keyTarget = undefined; } var targetclip = "table1"; var lobbyArr = new Array(1, 2, 3); var currentDirection = "down"; var isPopup = false; var popup_info = "welcome"; var popup_interval = -1; var process_interval = -1; var special_process_interval = -1; var isTargetReached = true; var selectedTarget = ""; var orderno = 0; var ismoveready = false; var orderTaken = 0; var customerCount = 0; var machineStatus = "notready"; var special_machineStatus = "notready"; var dusbinStatus = "notready"; var girlwalkframe = 2; var isFirstServeFinished = false; var score = 0; var depthArr = new Array(-10313, -10315, -10317); var chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); var customerEnterset = "firstset"; var moneyCount = 0; var gameInterval = -1; var gametimer = 0; var isGameOver = false; var combo_bookcnt = 0; var combo_ordercnt = 0; var combo_moneycnt = 0; var gamestartInterval = -1; var curtarget = ""; var customerEnterInterval = -1; var customerEnterInterval2 = -1; var customerEnterInterval3 = -1; var reportInterval = -1; var isPaused = false; var machinespeed = 1; var machineshake = "off"; var specialmachineshake = "off"; var specialmachinespeed = 1; var sequenceArr = new Array(); var tips = 0; var Re_customerEnterInterval = -1; var cusArr = new Array("younglady", "oldlady", "younglady"); var preparecnt = 0; var spl_preparecnt = 0; }
Symbol 1702 MovieClip [__Packages.Level5] Frame 0
class Level5 extends MovieClip { var salesGirl, btn_pause, _parent, choco_machines, special_choco_machines, coffee_machine, scoreIndicateClip, shopclosedClip, timerClip, chocolate_container, special_chocolate_container, coffeeClip, chocolateClip, phone_mc, popup_mc, selectClip, heartinClip, shopopenClip, reportMc, cancel_mc, infoClip, comboClip, dusbinContainer, curScoreClip, specialChocolateClip, expertScoreClip, table3, table2, table1, coin_Anim3, coin_Anim2, coin_Anim1, dusbin, leve5Keyobj, keyTarget, pauseTarget, scoreClip, radian, targetDirection, preferred_chocolate1, preferred_chocolate2, customer1, attachMovie, orderbook1, getNextHighestDepth, customer2, orderbook2, customer3, orderbook3, selectedTable, moveTarget, keylistener; function Level5 () { super(); } function onLoad() { var owner = this; clearInterval(popup_interval); clearInterval(process_interval); Reset(); salesGirl.coffeeicon._visible = false; btn_pause._visible = false; _parent.pauseClip._visible = false; salesGirl.gotoAndStop(currentDirection); salesGirl.chocolateCount = 0; choco_machines.status = "empty"; special_choco_machines.status = "empty"; coffee_machine.status = "empty"; salesGirl.girlwalk.gotoAndStop(girlwalkframe); scoreIndicateClip._visible = false; shopclosedClip._visible = false; timerClip._visible = false; chocolate_container._visible = false; special_chocolate_container._visible = false; special_chocolate_container.mc.gotoAndStop(1); coffeeClip._visible = false; chocolateClip._visible = false; phone_mc._visible = false; popup_mc._visible = false; selectClip._visible = false; heartinClip._visible = false; shopopenClip._visible = false; reportMc._visible = false; cancel_mc._visible = false; infoClip._visible = false; comboClip._visible = false; dusbinContainer._visible = false; curScoreClip._visible = false; specialChocolateClip._visible = false; expertScoreClip._visible = false; table2._visible = (table3._visible = false); table1._visible = false; coin_Anim2._visible = (coin_Anim3._visible = false); coin_Anim1._visible = false; table1.point = 1; table2.point = 2; table3.point = 3; choco_machines._visible = true; choco_machines.single_machine.gotoAndStop(2); dusbin._visible = true; dusbin.gotoAndStop(2); special_choco_machines._visible = true; special_choco_machines.gotoAndStop(1); special_choco_machines.machine1.gotoAndStop(2); coffee_machine._visible = true; coffee_machine.gotoAndStop(1); coffee_machine.intro.gotoAndPlay(1); gamestartInterval = setInterval(GameStart, 3000, this); btn_pause.onRelease = function () { if (this._visible && (owner._parent.pauseClip._visible == false)) { owner.pauseTarget = "btn_continue"; owner.isPaused = true; owner.isPopup = true; this._visible = false; owner._parent.pauseClip._visible = true; owner._parent.pauseClip.gotoAndPlay(2); owner.CallPause(); } }; leve5Keyobj = new Object(); Key.addListener(leve5Keyobj); leve5Keyobj.onKeyUp = function () { if (Key.getCode() == 13) { if ((!owner.isPaused) && (!owner.isGameOver)) { owner.StoreInSequence(); } } }; leve5Keyobj.onKeyDown = function () { if (Key.getCode() == 37) { if (!owner.isPaused) { owner.LeftNavigation(); } } else if (Key.getCode() == 39) { if (!owner.isPaused) { owner.RightNavigation(); } } else if (Key.getCode() == 38) { if (!owner.isPaused) { owner.UpNavigation(); } else { owner.pauseUpNavigation(); } } else if (Key.getCode() == 40) { if (!owner.isPaused) { owner.DownNavigation(); } else { owner.pauseDownNavigation(); } } else if (Key.getCode() == 13) { if (owner.popup_mc._visible) { owner.popup_mc.btn_ok.onRelease(); } else if (owner.reportMc._visible) { if (owner.reportMc._currentframe == 1) { owner.reportMc.mc.btn_continue.onRelease(); } else { owner.reportMc.mc.btn_retry.onRelease(); } } else if (!owner.isPaused) { owner.EnterFunction(); } else { owner.PauseEnterFunction(); } } else if (Key.getAscii() == 27) { if (!owner.isPaused) { owner.btn_pause.onRelease(); } else if (owner.isPaused) { owner._parent.pauseClip.btn_continue.onRelease(); } } }; table1.onRollOver = (table2.onRollOver = (table3.onRollOver = function () { if ((!owner.isPaused) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = this._name; owner.moveTarget = this._name; eval ("this.orderbook" + this.point).highlight.gotoAndStop(2); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(2); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(2); } } })); table1.onRollOut = (table2.onRollOut = (table3.onRollOut = function () { eval ("this.orderbook" + this.point).highlight.gotoAndStop(1); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(1); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(1); } })); choco_machines.onRollOver = function () { if (((owner.machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.moveTarget = "choco_machines"; owner.keyTarget = "choco_machines"; this.single_machine.gotoAndStop(3); } }; choco_machines.onRollOut = (choco_machines.onReleaseOutside = function () { this.single_machine.gotoAndStop(2); }); dusbin.onRollOver = function () { if ((owner.dusbinStatus == "ready") && (!owner.isPaused)) { owner.ObjectsRollOut(); owner.moveTarget = "dusbin"; owner.keyTarget = "dusbin"; this.gotoAndStop(3); } }; dusbin.onRollOut = (dusbin.onReleaseOutside = function () { this.gotoAndStop(2); }); coffee_machine.onRollOver = function () { if (((owner.coffeeStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.moveTarget = "coffee_machine"; owner.keyTarget = "coffee_machine"; this.gotoAndStop(3); } }; coffee_machine.onRollOut = (coffee_machine.onReleaseOutside = function () { this.gotoAndStop(2); }); special_choco_machines.onRollOver = function () { if (((owner.special_machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.moveTarget = "special_choco_machines"; owner.keyTarget = "special_choco_machines"; this.machine1.gotoAndStop(3); } }; special_choco_machines.onRollOut = (special_choco_machines.onReleaseOutside = function () { this.machine1.gotoAndStop(2); }); coffee_machine.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.coffee_machine); } }; coffee_machine.onPress = function () { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.coffeeStatus == "ready")) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "coffee_machine"; owner.calculateAngle(owner.coffee_indicate); this.pointer._visible = true; } }; choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.choco_machines); } }; choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); this.pointer._visible = true; } }; special_choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.special_choco_machines); } }; special_choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); this.pointer._visible = true; } }; dusbin.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.dusbin); } }; dusbin.onPress = function () { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); this.pointer._visible = true; } }; table1.onRelease = (table2.onRelease = (table3.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(this); } })); table1.onPress = (table2.onPress = (table3.onPress = function () { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = this._name; owner.calculateAngle(this); if (owner.selectedTarget == "table1") { owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.selectedTable = 3; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } })); } function LeftNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_box") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_triangle.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOut(); eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOver(); } } else if (keyTarget == "coffee_machine") { coffee_machine.onRollOut(); if (table3._visible) { table3.onRollOver(); } else if (table2._visible) { table2.onRollOver(); } else if (table1._visible) { table1.onRollOver(); } } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); coffee_machine.onRollOver(); } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); choco_machines.onRollOver(); } } function RightNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_box.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOut(); eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOver(); } } else if (keyTarget == undefined) { coffee_machine.onRollOver(); } else if (keyTarget == "coffee_machine") { coffee_machine.onRollOut(); choco_machines.onRollOver(); } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); special_choco_machines.onRollOver(); } else if (((keyTarget == "table1") || (keyTarget == "table2")) || (keyTarget == "table3")) { eval ("this." + keyTarget).onRollOut(); coffee_machine.onRollOver(); } } function UpNavigation() { if (keyTarget == "table1") { if (table2._visible) { table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table2") { if (table3._visible) { table2.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "dusbin") { dusbin.onRollOut(); special_choco_machines.onRollOver(); } } function DownNavigation() { if (keyTarget == "table3") { if (table2._visible) { table3.onRollOut(); table2.onRollOver(); } else if (table1._visible) { table3.onRollOut(); table1.onRollOver(); } } else if (keyTarget == "table2") { if (table1._visible) { table2.onRollOut(); table1.onRollOver(); } } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); dusbin.onRollOver(); } } function EnterFunction() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_triangle.onRelease(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_round.onRelease(); } else if (keyTarget == "type_box") { chocolate_container.mc.type_box.onRelease(); } } else if (special_chocolate_container._visible) { eval ("this.special_chocolate_container.mc." + keyTarget).onRelease(); } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRelease(); } else if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRelease(); } } else { eval ("this." + keyTarget).onPress(); } } function PauseEnterFunction() { eval ("this._parent.pauseClip." + pauseTarget).onRelease(); } function pauseUpNavigation() { if (pauseTarget == "btn_premium") { _parent.pauseClip.btn_premium.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_continue.onRollOver(); } } function pauseDownNavigation() { if (pauseTarget == "pause") { _parent.pauseClip.btn_continue.onRollOver(); } else if (pauseTarget == "btn_continue") { _parent.pauseClip.btn_continue.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_premium.onRollOver(); } } function updateScore() { scoreClip.score_txt.text = score; scoreClip.loading.gotoAndStop(score); if ((score >= 200) && (scoreClip.target._currentframe == 1)) { scoreClip.target.gotoAndPlay(1); scoreIndicateClip._visible = true; scoreIndicateClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.target_score_Sound.start(); } } if ((score >= 300) && (scoreClip.expert._currentframe == 1)) { scoreClip.expert.gotoAndPlay(1); expertScoreClip._visible = true; expertScoreClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.expert_score_Sound.start(); } } } function onEnterFrame() { var owner = this; if (((!isPopup) && (!isTargetReached)) && (!owner.isPaused)) { shopperMovement(); } if (machineshake == "onn") { machinespeed = -machinespeed; choco_machines._x = choco_machines._x + ((1 * machinespeed) / 2); choco_machines._y = choco_machines._y + ((1 * machinespeed) / 2); } if (specialmachineshake == "onn") { specialmachinespeed = -specialmachinespeed; special_choco_machines._x = special_choco_machines._x + ((1 * specialmachinespeed) / 2); special_choco_machines._y = special_choco_machines._y + ((1 * specialmachinespeed) / 2); } else { special_choco_machines._x = 631; special_choco_machines._y = 101; } if (coffeemachineshake == "onn") { coffeemachinespeed = -coffeemachinespeed; coffee_machine._x = coffee_machine._x + ((1 * coffeemachinespeed) / 2); coffee_machine._y = coffee_machine._y + ((1 * coffeemachinespeed) / 2); } _parent.pauseClip.btn_continue.onRollOver = (_parent.pauseClip.btn_restart.onRollOver = (_parent.pauseClip.btn_mainmenu.onRollOver = (_parent.pauseClip.btn_premium.onRollOver = function () { owner._parent.pauseClip.btn_continue.onRollOut(); owner._parent.pauseClip.btn_restart.onRollOut(); owner._parent.pauseClip.btn_mainmenu.onRollOut(); owner._parent.pauseClip.btn_premium.onRollOut(); owner.pauseTarget = this._name; this.gotoAndStop(2); }))); _parent.pauseClip.btn_continue.onRollOut = (_parent.pauseClip.btn_restart.onRollOut = (_parent.pauseClip.btn_mainmenu.onRollOut = (_parent.pauseClip.btn_premium.onRollOut = function () { this.gotoAndStop(1); }))); _parent.pauseClip.btn_continue.onRelease = function () { owner.isPaused = false; owner.isPopup = false; owner.btn_pause._visible = true; owner._parent.pauseClip._visible = false; owner.CallResume(); }; _parent.pauseClip.btn_restart.onRelease = function () { owner.Reset(); owner._parent.play(); }; _parent.pauseClip.btn_mainmenu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; _parent.pauseClip.btn_premium.onRelease = function () { this.getURL(_root.urlname, "_blank"); }; popup_mc.btn_ok.onRollOver = function () { this.gotoAndStop(2); }; popup_mc.btn_ok.onRollOut = (popup_mc.btn_ok.onReleaseOutside = function () { this.gotoAndStop(1); }); chocolate_container.mc.type_triangle.onRollOver = (chocolate_container.mc.type_round.onRollOver = (chocolate_container.mc.type_box.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.chocolate_container.mc.type_triangle.gotoAndStop(1); owner.chocolate_container.mc.type_round.gotoAndStop(1); owner.chocolate_container.mc.type_box.gotoAndStop(1); this.gotoAndStop(2); } })); chocolate_container.mc.type_triangle.onRelease = (chocolate_container.mc.type_round.onRelease = (chocolate_container.mc.type_box.onRelease = function () { if (!owner.isPaused) { owner.infoClip._visible = false; owner.chocolateClip._visible = true; owner.chocolateClip.gotoAndStop(this._name); owner.chocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_box_chocolate = this._name; if (owner.choco_machines.status == "empty") { owner.choco_machines.status = "prepared"; } owner.preparecnt = 0; owner.process_interval = setInterval(owner.IdleProcess, 100, owner); owner.chocolate_container.gotoAndStop(2); owner.isPopup = false; owner.dusbinStatus = "ready"; owner.machineStatus = "ready"; owner.machineshake = "onn"; owner.keyTarget = "choco_machines"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } })); chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.machineStatus = "ready"; owner.chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; owner.keyTarget = "choco_machines"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; special_chocolate_container.mc.type_rabbit.onRollOver = (special_chocolate_container.mc.type_fish.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.special_chocolate_container.mc.type_rabbit.gotoAndStop(1); owner.special_chocolate_container.mc.type_fish.gotoAndStop(1); this.gotoAndStop(2); } }); special_chocolate_container.mc.type_rabbit.onRelease = (special_chocolate_container.mc.type_fish.onRelease = function () { if (!owner.isPaused) { owner.infoClip._visible = false; owner.specialChocolateClip._visible = true; owner.specialChocolateClip.gotoAndStop(this._name); owner.specialChocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_special_chocolate = this._name; if (owner.special_choco_machines.status == "empty") { owner.special_choco_machines.status = "prepared"; } owner.spl_preparecnt = 0; owner.special_process_interval = setInterval(owner.SpecialIdleProcess, 100, owner); owner.special_chocolate_container.gotoAndStop(2); owner.isPopup = false; owner.dusbinStatus = "ready"; owner.special_machineStatus = "ready"; owner.specialmachineshake = "onn"; owner.keyTarget = "special_choco_machines"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }); special_chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.special_machineStatus = "ready"; owner.special_chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; owner.keyTarget = "special_choco_machines"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; dusbinContainer.mc.chocobox1.type_triangle.onRollOver = (dusbinContainer.mc.chocobox1.type_round.onRollOver = (dusbinContainer.mc.chocobox1.type_box.onRollOver = (dusbinContainer.mc.chocobox2.type_triangle.onRollOver = (dusbinContainer.mc.chocobox2.type_round.onRollOver = (dusbinContainer.mc.chocobox2.type_box.onRollOver = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox1.type_fish.onRollOver = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox2.type_fish.onRollOver = function () { owner.keyTarget = this._name; this.gotoAndStop(2); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRollOut = (dusbinContainer.mc.chocobox1.type_round.onRollOut = (dusbinContainer.mc.chocobox1.type_box.onRollOut = (dusbinContainer.mc.chocobox2.type_triangle.onRollOut = (dusbinContainer.mc.chocobox2.type_round.onRollOut = (dusbinContainer.mc.chocobox2.type_box.onRollOut = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox1.type_fish.onRollOut = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox2.type_fish.onRollOut = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_fish.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_fish.onReleaseOutside = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRelease = (dusbinContainer.mc.chocobox1.type_round.onRelease = (dusbinContainer.mc.chocobox1.type_box.onRelease = (dusbinContainer.mc.chocobox2.type_triangle.onRelease = (dusbinContainer.mc.chocobox2.type_round.onRelease = (dusbinContainer.mc.chocobox2.type_box.onRelease = (dusbinContainer.mc.chocobox1.type_rabbit.onRelease = (dusbinContainer.mc.chocobox1.type_fish.onRelease = (dusbinContainer.mc.chocobox2.type_rabbit.onRelease = (dusbinContainer.mc.chocobox2.type_fish.onRelease = function () { if (!owner.isPaused) { if (this._name == owner.preferred_chocolate1) { owner.preferred_chocolate1 = owner.preferred_chocolate2; owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } else { owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }))))))))); dusbinContainer.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; reportMc.mc.btn_continue.onRelease = function () { owner.Reset(); _global.calenderfrom = "game"; owner._parent.gotoAndStop("calender"); }; reportMc.mc.btn_menu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; reportMc.mc.btn_retry.onRelease = function () { owner.Reset(); owner._parent.play(); }; popup_mc.btn_ok.onRelease = function () { if (owner.popup_info == "welcome") { owner.combo_bookcnt = 0; owner.combo_ordercnt = 0; owner.combo_moneycnt = 0; owner.btn_pause._visible = true; owner.popupDisable(); var _local1 = owner.getRandom(0, 2); owner.customerEnterInterval = setInterval(owner.CallCustomer, 2000, owner, owner.lobbyArr[_local1], "younglady"); owner.lobbyArr.splice(_local1, 1); _local1 = owner.getRandom(0, owner.lobbyArr.length - 1); owner.customerEnterInterval2 = setInterval(owner.CallCustomer2, 4000, owner, owner.lobbyArr[_local1], "oldlady"); owner.lobbyArr.splice(_local1, 1); owner.isPopup = false; owner.popup_info = "level2_start"; owner.bg.gotoAndStop(2); owner.shopopenClip._visible = true; owner.shopopenClip.gotoAndPlay(1); owner.ismoveready = true; owner.machineStatus = "ready"; owner.special_machineStatus = "ready"; owner.dusbinStatus = "ready"; owner.coffeeStatus = "ready"; owner.timerClip._visible = true; clearInterval(owner.gameInterval); owner.gametimer = 0; owner.gameInterval = setInterval(owner.GameTimeLimit, 700, owner); owner.Re_customerEnterInterval = setInterval(owner.CallNewCustomer, 6000, owner); } else if (owner.popup_info == "order") { owner.popupDisable(); owner.isPopup = false; owner.popup_info = ""; owner.selectClip._visible = true; owner.selectClip._x = owner.choco_machines._x; owner.selectClip._y = owner.choco_machines._y - 80; } else if (owner.popup_info == "mismatch") { owner.popupDisable(); owner.isPopup = false; } }; } function shopperMovement() { var _local3 = (salesGirl._x + salesGirl.pointer._x) - targetclip._x; var _local2 = (salesGirl._y + salesGirl.pointer._y) - targetclip._y; var _local5 = Math.sqrt((_local2 * _local2) + (_local3 * _local3)); var _local4 = 10; if (_local5 >= _local4) { salesGirl._x = salesGirl._x + (Math.cos(radian) * girlspeed); salesGirl._y = salesGirl._y + (Math.sin(radian) * girlspeed); } else if (!isTargetReached) { isTargetReached = true; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); Manipulate(); updateScore(); } } function GameStart(_arg2) { clearInterval(_arg2.gamestartInterval); _arg2.isPopup = true; _global.popupText = "Getting tired? Enjoying a cup of HOT CHOCOLATE from time to time."; _arg2.ShowPopup(_arg2); } function calculateAngle(mc) { if (!isPopup) { targetclip = mc; var x_diff = (eval (mc)._x - (salesGirl._x + salesGirl.pointer._x)); var y_diff = (eval (mc)._y - (salesGirl._y + salesGirl.pointer._y)); radian = Math.atan2(y_diff, x_diff); if (Math.abs(x_diff) > Math.abs(y_diff)) { if (x_diff > 0) { targetDirection = "right"; } else { targetDirection = "left"; } } else if (y_diff > 0) { targetDirection = "down"; } else { targetDirection = "up"; } if (curtarget != selectedTarget) { curtarget = selectedTarget; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe - 1); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); } } } function ShowPopup(_arg1) { clearInterval(_arg1.popup_interval); _arg1.isPopup = true; _arg1.popup_mc._visible = true; _arg1.popup_mc.swapDepths(_arg1.getNextHighestDepth()); _arg1.popup_mc.gotoAndPlay(1); } function popupDisable() { popup_mc.gotoAndStop(1); popup_mc._visible = false; } function CallNewCustomer(_arg1) { if (!_arg1.isGameOver) { if ((_arg1.customerCount != 0) && (_arg1.moneyCount != 0)) { _arg1.CallNextCustomerSet(); } } else { clearInterval(_arg1.Re_customerEnterInterval); } } function CallCustomer(_arg2, _arg3, _arg4) { if (!_arg2.isPaused) { clearInterval(_arg2.customerEnterInterval); if (!_arg2.isGameOver) { _arg2.customerEnter(_arg3, _arg4); var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == _arg3) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } else if ((_arg2.customerCount == 0) && (_arg2.moneyCount == 0)) { _arg2.callResult(); } } } function CallCustomer2(_arg2, _arg3, _arg4) { if (!_arg2.isPaused) { clearInterval(_arg2.customerEnterInterval2); if (!_arg2.isGameOver) { _arg2.customerEnter(_arg3, _arg4); var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == _arg3) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } else if ((_arg2.customerCount == 0) && (_arg2.moneyCount == 0)) { _arg2.callResult(); } } } function CallCustomer3(_arg2, _arg3, _arg4) { if (!_arg2.isPaused) { clearInterval(_arg2.customerEnterInterval3); if (!_arg2.isGameOver) { _arg2.customerEnter(_arg3, _arg4); var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == _arg3) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } else if ((_arg2.customerCount == 0) && (_arg2.moneyCount == 0)) { _arg2.callResult(); } } } function Re_CallCustomer(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.Re_customerEnterInterval); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function customerEnter(_arg3, _arg2) { if (_arg3 == 1) { table1._visible = true; customer1 = attachMovie(_arg2, "customer1", depthArr[_arg3 - 1], {_x:115, _y:356}); orderbook1 = attachMovie("orderbook", "orderbook1", getNextHighestDepth(), {_x:170, _y:374}); orderbook1.type = "book"; customer1.type = _arg2; orderbook1.heatcnt = 0; if (_arg2 == "oldlady") { orderbook1.heatInterval = setInterval(HeatFunction, 550, orderbook1, this, 1); } else if (_arg2 == "younglady") { orderbook1.heatInterval = setInterval(HeatFunction, 250, orderbook1, this, 1); } } else if (_arg3 == 2) { table2._visible = true; customer2 = attachMovie(_arg2, "customer2", depthArr[_arg3 - 1], {_x:119, _y:235}); orderbook2 = attachMovie("orderbook", "orderbook2", getNextHighestDepth(), {_x:177, _y:278}); orderbook2.type = "book"; customer2.type = _arg2; orderbook2.heatcnt = 0; if (_arg2 == "oldlady") { orderbook2.heatInterval = setInterval(HeatFunction, 550, orderbook2, this, 2); } else if (_arg2 == "younglady") { orderbook2.heatInterval = setInterval(HeatFunction, 250, orderbook2, this, 2); } } else if (_arg3 == 3) { table3._visible = true; customer3 = attachMovie(_arg2, "customer3", depthArr[_arg3 - 1], {_x:127, _y:140}); orderbook3 = attachMovie("orderbook", "orderbook3", getNextHighestDepth(), {_x:184, _y:185}); orderbook3.type = "book"; customer3.type = _arg2; orderbook3.heatcnt = 0; if (_arg2 == "oldlady") { orderbook3.heatInterval = setInterval(HeatFunction, 550, orderbook3, this, 3); } else if (_arg2 == "younglady") { orderbook3.heatInterval = setInterval(HeatFunction, 250, orderbook3, this, 3); } } customerCount++; moneyCount++; orderTaken++; salesGirl.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); chocolate_container.swapDepths(getNextHighestDepth()); special_chocolate_container.swapDepths(getNextHighestDepth()); dusbinContainer.swapDepths(getNextHighestDepth()); comboClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); } function Manipulate() { var owner = this; if (selectedTarget == "coffee_machine") { coffee_machine.pointer._visible = false; if (coffee_machine.status == "empty") { coffee_machine.status = "prepared"; coffeeClip._visible = true; coffeeClip.gotoAndPlay(2); owner.isTargetReached = true; owner.coffee_preparecnt = 0; owner.coffee_process_interval = setInterval(owner.CoffeeIdleProcess, 100, owner); owner.isPopup = false; owner.coffeemachineshake = "onn"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (coffee_machine.status == "coffeeReady") { coffeeClip._visible = false; coffee_machine.status = "empty"; salesGirl.coffeeicon._visible = false; girlspeed = 12; orderTaken = 0; salesGirl.gotoAndStop(2); if (salesGirl.chocolateCount == 0) { girlwalkframe = 9; } else if (salesGirl.chocolateCount == 1) { girlwalkframe = 10; } else if (salesGirl.chocolateCount == 2) { girlwalkframe = 11; } salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.jumpLady.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.jumpLady.chocobox2.gotoAndStop(preferred_chocolate2); owner.machineStatus = "notready"; owner.special_machineStatus = "notready"; owner.dusbinStatus = "notready"; owner.coffeeStatus = "notready"; owner.isPopup = true; jumpInterval = setInterval(JumpFinished, 1100, this); } } else if (selectedTarget == "choco_machines") { choco_machines.pointer._visible = false; if (choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_round"; } } else if (choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_box_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_box_chocolate; } owner.salesGirl.chocolateCount++; chocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { if (orderbook1.book_mc._currentframe == 74) { orderbook1.green_highlight._visible = true; } } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { if (orderbook2.book_mc._currentframe == 74) { orderbook2.green_highlight._visible = true; } } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { if (orderbook3.book_mc._currentframe == 74) { orderbook3.green_highlight._visible = true; } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "special_choco_machines") { special_choco_machines.pointer._visible = false; if (special_choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { special_chocolate_container._visible = true; special_chocolate_container.gotoAndStop(1); special_chocolate_container.mc.gotoAndPlay(1); special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_rabbit"; } } else if (special_choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_special_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_special_chocolate; } owner.salesGirl.chocolateCount++; specialChocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); special_choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "dusbin") { dusbin.pointer._visible = false; if (salesGirl.chocolateCount == 1) { salesGirl.chocolateCount--; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); preferred_chocolate1 = null; preferred_chocolate2 = null; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (salesGirl.chocolateCount >= 2) { dusbinStatus = "notready"; isPopup = true; _global.preferred_chocolate1 = preferred_chocolate1; _global.preferred_chocolate2 = preferred_chocolate2; keyTarget = _global.preferred_chocolate1; dusbinContainer._visible = true; dusbinContainer.gotoAndStop(1); dusbinContainer.mc.gotoAndPlay(1); } } else if (((selectedTarget == "table1") || (selectedTarget == "table2")) || (selectedTarget == "table3")) { eval ("this.orderbook" + selectedTable).pointer._visible = false; if (eval ("this.orderbook" + selectedTable).type == "book") { combo_bookcnt++; combo_ordercnt = 0; combo_moneycnt = 0; eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; var randomno = owner.getRandom(0, 4); eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.customer" + selectedTable).gotoAndStop(3); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); var heatcntchange = int(eval ("this.orderbook" + selectedTable).heatcnt / 4); if (heatcntchange > 1) { eval ("this.orderbook" + selectedTable).heatcnt = heatcntchange; } else { eval ("this.orderbook" + selectedTable).heatcnt = 1; } CheckForBookCombo(); } else if (eval ("this.orderbook" + selectedTable).type == "chocolateOrder") { if ((salesGirl.chocolateCount >= 1) && (eval ("this.orderbook" + selectedTable).book_mc._currentframe >= 74)) { combo_bookcnt = 0; combo_moneycnt = 0; if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate1) { combo_ordercnt++; preferred_chocolate1 = preferred_chocolate2; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; if (salesGirl.chocolateCount == 1) { preferred_chocolate1 = null; } salesGirl.chocolateCount--; owner.setGreenHighLight(); if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { CallNextCustomerSet(); } } else if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate2) { combo_ordercnt++; salesGirl.chocolateCount--; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; owner.setGreenHighLight(); if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { CallNextCustomerSet(); } } } } else if (eval ("this.orderbook" + selectedTable).type == "money") { combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt++; moneyCount--; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(2); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable)._visible = false; eval ("this.customer" + selectedTable)._visible = false; eval ("this.table" + selectedTable)._visible = false; eval ("this.orderbook" + selectedTable).type = "empty"; CheckForMoneyCombo(); if (orderTaken >= 6) { salesGirl.coffeeicon._visible = true; girlspeed = 6; } lobbyArr.push(selectedTable); if ((customerCount == 0) && (moneyCount == 0)) { if (!isGameOver) { if (lobbyArr.length == 3) { customerCount = 0; moneyCount = 0; owner.table2._visible = (owner.table3._visible = false); owner.table1._visible = false; CallNextCustomerSet(); } } else { callResult(); } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } function CallNextCustomerSet() { var _local2 = this; clearInterval(_local2.customerEnterInterval); clearInterval(_local2.customerEnterInterval2); clearInterval(_local2.customerEnterInterval3); if (lobbyArr.length == 1) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local6 = Math.ceil((Math.random() * 3) - 1); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 2000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local6]); var _local5 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local2.lobbyArr.push(_local5); } else if (lobbyArr.length == 2) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local6 = Math.ceil((Math.random() * 3) - 1); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local6]); var _local5 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local6 = Math.ceil((Math.random() * 3) - 1); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 3000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local6]); var _local7 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local2.lobbyArr.push(_local5); _local2.lobbyArr.push(_local7); } else if (lobbyArr.length == 3) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local6 = Math.ceil((Math.random() * 3) - 1); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local6]); var _local5 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local6 = Math.ceil((Math.random() * 3) - 1); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 3000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local6]); var _local7 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local6 = Math.ceil((Math.random() * 3) - 1); _local2.customerEnterInterval3 = setInterval(_local2.CallCustomer3, 4000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local6]); var _local4 = _local2.lobbyArr[_local3]; _local2.lobbyArr.splice(_local3, 1); _local2.lobbyArr.push(_local5); _local2.lobbyArr.push(_local7); _local2.lobbyArr.push(_local4); } } function JumpFinished(_arg1) { clearInterval(_arg1.jumpInterval); _arg1.machineStatus = "ready"; _arg1.special_machineStatus = "ready"; _arg1.dusbinStatus = "ready"; _arg1.coffeeStatus = "ready"; _arg1.isPopup = false; _arg1.sequenceArr.splice(0, 1); if (_arg1.sequenceArr.length >= 1) { _arg1.CallSequence(); } } function setGreenHighLight() { if (orderbook1.book_mc._currentframe >= 74) { if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } else { orderbook1.green_highlight._visible = false; } } if (orderbook2.book_mc._currentframe >= 74) { if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } else { orderbook2.green_highlight._visible = false; } } if (orderbook3.book_mc._currentframe >= 74) { if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } else { orderbook3.green_highlight._visible = false; } } } function callResult() { clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); clearInterval(jumpInterval); machineStatus = "notready"; special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; _global.report_moneyEarned = score; _global.report_tips = tips; _global.targetScore = 200; _global.expertScore = 300; btn_pause._visible = false; dusbinStatus = "notready"; score = score + tips; if (score < 200) { reportMc._visible = true; reportMc.gotoAndStop(2); reportMc.mc.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.level_failed_Sound.start(); } } else { if (_global.soundstat == "onn") { _root.level_complete_Sound.start(); } if (_global.levelSelected < 6) { _global.levelSelected = 6; } if (_global.levelFinished <= 5) { _global.levelFinished = 5; } if (score >= 300) { _global.level5Status = "expert"; } else { _global.level5Status = "target"; } _global.level5Score = score; if (((score >= 200) && (scoreClip.target._currentframe == 1)) || ((score >= 300) && (scoreClip.expert._currentframe == 1))) { reportInterval = setInterval(CallReport, 2300, this); } else { reportMc._visible = true; reportMc.gotoAndStop(1); reportMc.mc.gotoAndPlay(2); } } } function CallReport(_arg1) { clearInterval(_arg1.reportInterval); _arg1.reportMc._visible = true; _arg1.reportMc.gotoAndStop(1); _arg1.reportMc.mc.gotoAndPlay(2); } function HeatFunction(owner, myparent, curpoint) { if (!myparent.isPaused) { owner.heatcnt++; owner.timelimit.gotoAndStop(owner.heatcnt); if (owner.heatcnt == 100) { eval ("myparent.customer" + curpoint).gotoAndStop(4); } if (owner.heatcnt >= 120) { clearInterval(owner.heatInterval); eval ("myparent.customer" + curpoint).gotoAndStop(6); myparent.moneyCount--; myparent.customerCount--; eval ("myparent.orderbook" + curpoint)._visible = false; eval ("myparent.table" + curpoint)._visible = false; if (eval ("myparent.customer" + curpoint).type == "oldlady") { if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 10)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 10) { myparent.score = myparent.score - 10; myparent.curScoreClip.disp.score.text = -10; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } else if (eval ("myparent.customer" + curpoint).type == "younglady") { if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 15)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 15) { myparent.score = myparent.score - 15; myparent.curScoreClip.disp.score.text = -15; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } eval ("myparent.orderbook" + curpoint).type = "empty"; myparent.lobbyArr.push(curpoint); if ((myparent.customerCount == 0) && (myparent.moneyCount == 0)) { if (!myparent.isGameOver) { myparent.CallNextCustomerSet(); } else { myparent.callResult(); } } } } } function GameTimeLimit(_arg1) { if (!_arg1.isPaused) { _arg1.gametimer++; _arg1.timerClip.gotoAndStop(_arg1.gametimer); if (_arg1.gametimer >= 90) { _arg1.isGameOver = true; _arg1.bg.gotoAndStop(1); _arg1.shopclosedClip._visible = true; _arg1.shopclosedClip.gotoAndPlay(1); _arg1.gametimer = 0; clearInterval(_arg1.gameInterval); } } } function CheckForBookCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_bookcnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_bookcnt); comboClip.combo.gotoAndPlay(1); score = score + 4; curScoreClip.disp.score.text = 4; tips = tips + 4; } else { score = score + 2; curScoreClip.disp.score.text = 2; tips = tips + 2; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_bookcnt) + "_Sound").start(); } } function CheckForOrderCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_ordercnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_ordercnt); comboClip.combo.gotoAndPlay(1); score = score + 20; curScoreClip.disp.score.text = 20; } else { score = score + 10; curScoreClip.disp.score.text = 10; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_ordercnt) + "_Sound").start(); } } function CheckForMoneyCombo() { if (_global.soundstat == "onn") { eval (("_root.money" + combo_moneycnt) + "_Sound").start(); } curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_moneycnt >= 2) { comboClip._x = eval ("this.orderbook" + selectedTable)._x - 20; comboClip._y = eval ("this.orderbook" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_moneycnt); comboClip.combo.gotoAndPlay(1); if (eval ("this.orderbook" + selectedTable).neededchocolate == "type_rabbit") { score = score + (combo_moneycnt * 30); curScoreClip.disp.score.text = combo_moneycnt * 30; } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 14); curScoreClip.disp.score.text = combo_moneycnt * 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 11); curScoreClip.disp.score.text = combo_moneycnt * 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 10); curScoreClip.disp.score.text = combo_moneycnt * 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 24); curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 21); curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 15); curScoreClip.disp.score.text = combo_moneycnt * 15; } } if (!isGameOver) { CallNextCustomerSet(); } } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 17; curScoreClip.disp.score.text = 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 14; curScoreClip.disp.score.text = 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 11; curScoreClip.disp.score.text = 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 10; curScoreClip.disp.score.text = 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 24; curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 21; curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 17; curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 15; curScoreClip.disp.score.text = combo_moneycnt * 15; } } } function IdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.preparecnt++; if (_arg3.preparecnt >= 20) { clearInterval(_arg3.process_interval); _arg3.machineStatus = "ready"; _arg3.machineshake = "off"; if (_arg3.choco_machines.status == "prepared") { _arg3.choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function SpecialIdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.spl_preparecnt++; if (_arg3.spl_preparecnt >= 40) { clearInterval(_arg3.special_process_interval); _arg3.special_machineStatus = "ready"; _arg3.specialmachineshake = "off"; if (_arg3.special_choco_machines.status == "prepared") { _arg3.special_choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function CoffeeIdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.coffee_preparecnt++; if (_arg3.coffee_preparecnt >= 20) { clearInterval(_arg3.coffee_process_interval); _arg3.coffeeStatus = "ready"; _arg3.coffeemachineshake = "off"; _arg3.coffee_machine.status = "coffeeReady"; if (_global.soundstat == "onn") { _root.hotchoco_done_Sound.start(); } } } } function getRandom(_arg4, _arg5) { var _local3 = _arg5 - _arg4; var _local2 = Math.random() * _local3; var _local1 = Math.round(_local2); _local1 = _local1 + _arg4; return(_local1); } function StoreInSequence() { var owner = this; eval ("this." + moveTarget).onRelease(); } function CallSequence() { var owner = this; if (sequenceArr[0] == choco_machines) { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == special_choco_machines) { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == dusbin) { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == coffee_machine) { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.coffeeStatus == "ready")) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "coffee_machine"; owner.calculateAngle(owner.coffee_indicate); sequenceArr[0].pointer._visible = true; } } else if (((sequenceArr[0] == table1) || (sequenceArr[0] == table2)) || (sequenceArr[0] == table3)) { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = sequenceArr[0]._name; owner.calculateAngle(sequenceArr[0]); if (owner.selectedTarget == "table1") { owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.selectedTable = 3; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } } } function CallPause() { var _local2 = this; stopAllSounds(); _local2.bg.blink.gotoAndStop(_local2.bg.blink._currentframe); _local2.customer1.customer.gotoAndStop(_local2.customer1.customer._currentframe); _local2.customer2.customer.gotoAndStop(_local2.customer2.customer._currentframe); _local2.customer3.customer.gotoAndStop(_local2.customer3.customer._currentframe); _local2.special_choco_machines.machine1.blink.gotoAndStop(_local2.special_choco_machines.machine1.blink._currentframe); _local2.choco_machines.single_machine.blink.gotoAndStop(_local2.choco_machines.single_machine.blink._currentframe); _local2.salesGirl.coffeeicon.smoke.gotoAndStop(_local2.salesGirl.coffeeicon.smoke._currentframe); _local2.customer4.customer.gotoAndStop(_local2.customer4.customer._currentframe); _local2.coin_Anim1.coin.gotoAndStop(_local2.coin_Anim1.coin._currentframe); _local2.coin_Anim2.coin.gotoAndStop(_local2.coin_Anim2.coin._currentframe); _local2.coin_Anim3.coin.gotoAndStop(_local2.coin_Anim3.coin._currentframe); _local2.coin_Anim4.coin.gotoAndStop(_local2.coin_Anim4.coin._currentframe); _local2.comboClip.combo.gotoAndStop(_local2.comboClip.combo._currentframe); _local2.orderbook1.heartinClip.gotoAndStop(_local2.orderbook1.heartinClip._currentframe); _local2.orderbook2.heartinClip.gotoAndStop(_local2.orderbook2.heartinClip._currentframe); _local2.orderbook3.heartinClip.gotoAndStop(_local2.orderbook3.heartinClip._currentframe); _local2.orderbook4.heartinClip.gotoAndStop(_local2.orderbook4.heartinClip._currentframe); _local2.curScoreClip.gotoAndStop(_local2.curScoreClip._currentframe); _local2.coin_Anim1.coin.coin_rotate.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate._currentframe); _local2.coin_Anim1.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate2._currentframe); _local2.coin_Anim1.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate3._currentframe); _local2.coin_Anim1.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate4._currentframe); _local2.coin_Anim2.coin.coin_rotate.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate._currentframe); _local2.coin_Anim2.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate2._currentframe); _local2.coin_Anim2.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate3._currentframe); _local2.coin_Anim2.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate4._currentframe); _local2.coin_Anim3.coin.coin_rotate.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate._currentframe); _local2.coin_Anim3.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate2._currentframe); _local2.coin_Anim3.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate3._currentframe); _local2.coin_Anim3.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate4._currentframe); _local2.coin_Anim4.coin.coin_rotate.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate._currentframe); _local2.coin_Anim4.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate2._currentframe); _local2.coin_Anim4.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate3._currentframe); _local2.coin_Anim4.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate4._currentframe); _local2.comboClip.combo.coin_rotate.gotoAndStop(_local2.comboClip.combo.coin_rotate._currentframe); if (_local2.scoreIndicateClip._visible) { _local2.scoreIndicateClip.gotoAndStop(_local2.scoreIndicateClip._currentframe); } if (_local2.expertScoreClip._visible) { _local2.expertScoreClip.gotoAndStop(_local2.expertScoreClip._currentframe); } _local2.chocolateClip.mc.gotoAndStop(_local2.chocolateClip.mc._currentframe); _local2.specialChocolateClip.mc.gotoAndStop(_local2.specialChocolateClip.mc._currentframe); _local2.coffeeClip.gotoAndStop(_local2.coffeeClip._currentframe); } function CallResume() { var _local4 = this; if (_global.soundstat == "onn") { _root.gameSound.start(); } _local4.bg.blink.gotoAndPlay(_local4.bg.blink._currentframe); _local4.customer1.customer.gotoAndPlay(_local4.customer1.customer._currentframe); _local4.customer2.customer.gotoAndPlay(_local4.customer2.customer._currentframe); _local4.customer3.customer.gotoAndPlay(_local4.customer3.customer._currentframe); _local4.special_choco_machines.machine1.blink.gotoAndPlay(_local4.special_choco_machines.machine1.blink._currentframe); _local4.choco_machines.single_machine.blink.gotoAndPlay(_local4.choco_machines.single_machine.blink._currentframe); _local4.salesGirl.coffeeicon.smoke.gotoAndPlay(_local4.salesGirl.coffeeicon.smoke._currentframe); _local4.customer4.customer.gotoAndPlay(_local4.customer4.customer._currentframe); _local4.coin_Anim1.coin.gotoAndPlay(_local4.coin_Anim1.coin._currentframe - 1); _local4.coin_Anim2.coin.gotoAndPlay(_local4.coin_Anim2.coin._currentframe - 1); _local4.coin_Anim3.coin.gotoAndPlay(_local4.coin_Anim3.coin._currentframe - 1); _local4.coin_Anim4.coin.gotoAndPlay(_local4.coin_Anim4.coin._currentframe - 1); _local4.comboClip.combo.gotoAndPlay(_local4.comboClip.combo._currentframe - 1); _local4.orderbook1.heartinClip.gotoAndPlay(_local4.orderbook1.heartinClip._currentframe - 1); _local4.orderbook2.heartinClip.gotoAndPlay(_local4.orderbook2.heartinClip._currentframe - 1); _local4.orderbook3.heartinClip.gotoAndPlay(_local4.orderbook3.heartinClip._currentframe - 1); _local4.orderbook4.heartinClip.gotoAndPlay(_local4.orderbook4.heartinClip._currentframe - 1); _local4.curScoreClip.gotoAndPlay(_local4.curScoreClip._currentframe); _local4.coin_Anim1.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate._currentframe); _local4.coin_Anim1.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate2._currentframe); _local4.coin_Anim1.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate3._currentframe); _local4.coin_Anim1.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate4._currentframe); _local4.coin_Anim2.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate._currentframe); _local4.coin_Anim2.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate2._currentframe); _local4.coin_Anim2.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate3._currentframe); _local4.coin_Anim2.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate4._currentframe); _local4.coin_Anim3.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate._currentframe); _local4.coin_Anim3.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate2._currentframe); _local4.coin_Anim3.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate3._currentframe); _local4.coin_Anim3.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate4._currentframe); _local4.coin_Anim4.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate._currentframe); _local4.coin_Anim4.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate2._currentframe); _local4.coin_Anim4.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate3._currentframe); _local4.coin_Anim4.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate4._currentframe); _local4.comboClip.combo.coin_rotate.gotoAndPlay(_local4.comboClip.combo.coin_rotate._currentframe); if (_local4.scoreIndicateClip._visible) { _local4.scoreIndicateClip.gotoAndPlay(_local4.scoreIndicateClip._currentframe - 1); } if (_local4.expertScoreClip._visible) { _local4.expertScoreClip.gotoAndPlay(_local4.expertScoreClip._currentframe - 1); } _local4.chocolateClip.mc.gotoAndPlay(_local4.chocolateClip.mc._currentframe - 1); _local4.specialChocolateClip.mc.gotoAndPlay(_local4.specialChocolateClip.mc._currentframe - 1); _local4.coffeeClip.gotoAndPlay(_local4.coffeeClip._currentframe - 1); } function ObjectsRollOut() { table1.onRollOut(); table2.onRollOut(); table3.onRollOut(); choco_machines.onRollOut(); dusbin.onRollOut(); coffee_machine.onRollOut(); special_choco_machines.onRollOut(); } function Reset() { targetclip = "table1"; lobbyArr.length = 0; lobbyArr = new Array(1, 2, 3); currentDirection = "down"; targetDirection = ""; isPopup = false; popup_info = "welcome"; clearInterval(popup_interval); clearInterval(special_process_interval); clearInterval(process_interval); popup_interval = -1; isTargetReached = true; selectedTarget = ""; orderno = 0; score = 0; ismoveready = false; orderTaken = 0; customerCount = 0; machineStatus = "notready"; dusbinStatus = "notready"; girlwalkframe = 2; isFirstServeFinished = false; depthArr.length = 0; depthArr = new Array(-10313, -10315, -10317); chocolateTypeArr.length = 0; chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); customerEnterset = "firstset"; moneyCount = 0; clearInterval(gameInterval); gametimer = 0; isGameOver = false; combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt = 0; curtarget = ""; clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); clearInterval(jumpInterval); isPaused = false; sequenceArr.length = 0; sequenceArr = new Array(); girlspeed = 12; Key.removeListener(keylistener); Key.removeListener(leve5Keyobj); keyTarget = undefined; } var targetclip = "table1"; var lobbyArr = new Array(1, 2, 3); var currentDirection = "down"; var isPopup = false; var popup_info = "welcome"; var popup_interval = -1; var process_interval = -1; var special_process_interval = -1; var isTargetReached = true; var selectedTarget = ""; var orderno = 0; var ismoveready = false; var orderTaken = 0; var customerCount = 0; var machineStatus = "notready"; var special_machineStatus = "notready"; var dusbinStatus = "notready"; var coffeeStatus = "notready"; var girlwalkframe = 2; var isFirstServeFinished = false; var score = 0; var depthArr = new Array(-10313, -10315, -10317); var chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); var customerEnterset = "firstset"; var moneyCount = 0; var gameInterval = -1; var gametimer = 0; var isGameOver = false; var combo_bookcnt = 0; var combo_ordercnt = 0; var combo_moneycnt = 0; var gamestartInterval = -1; var curtarget = ""; var customerEnterInterval = -1; var customerEnterInterval2 = -1; var customerEnterInterval3 = -1; var reportInterval = -1; var isPaused = false; var coffee_process_interval = -1; var machinespeed = 1; var machineshake = "off"; var specialmachineshake = "off"; var coffeemachineshake = "off"; var specialmachinespeed = 1; var coffeemachinespeed = 1; var girlspeed = 12; var sequenceArr = new Array(); var jumpInterval = -1; var tips = 0; var Re_customerEnterInterval = -1; var cusArr = new Array("younglady", "oldlady", "younglady"); var preparecnt = 0; var spl_preparecnt = 0; var coffee_preparecnt = 0; }
Symbol 1703 MovieClip [__Packages.Level6] Frame 0
class Level6 extends MovieClip { var deliveryboy, salesGirl, btn_pause, _parent, choco_machines, choco_machines2, special_choco_machines, coffee_machine, scoreIndicateClip, shopclosedClip, timerClip, chocolate_container, special_chocolate_container, coffeeClip, chocolateClip, chocolateClip2, popup_mc, selectClip, heartinClip, shopopenClip, reportMc, cancel_mc, infoClip, comboClip, dusbinContainer, curScoreClip, specialChocolateClip, expertScoreClip, table4, table3, table2, table1, coin_Anim4, coin_Anim3, coin_Anim2, coin_Anim1, dusbin, phone_mc, leve6Keyobj, keyTarget, pauseTarget, scoreClip, radian, targetDirection, preferred_chocolate1, preferred_chocolate2, customer4, orderbook4, attachMovie, getNextHighestDepth, customer1, orderbook1, customer2, orderbook2, customer3, orderbook3, selectedTable, re_entry, moveTarget, keylistener; function Level6 () { super(); } function onLoad() { var owner = this; clearInterval(popup_interval); clearInterval(process_interval); Reset(); deliveryboy._visible = false; salesGirl.coffeeicon._visible = false; btn_pause._visible = false; _parent.pauseClip._visible = false; salesGirl.gotoAndStop(currentDirection); salesGirl.chocolateCount = 0; choco_machines.status = "empty"; choco_machines2.status = "empty"; special_choco_machines.status = "empty"; coffee_machine.status = "empty"; salesGirl.girlwalk.gotoAndStop(girlwalkframe); scoreIndicateClip._visible = false; shopclosedClip._visible = false; timerClip._visible = false; chocolate_container._visible = false; special_chocolate_container._visible = false; special_chocolate_container.mc.gotoAndStop(1); coffeeClip._visible = false; chocolateClip._visible = false; chocolateClip2._visible = false; popup_mc._visible = false; selectClip._visible = false; heartinClip._visible = false; shopopenClip._visible = false; reportMc._visible = false; cancel_mc._visible = false; infoClip._visible = false; comboClip._visible = false; dusbinContainer._visible = false; curScoreClip._visible = false; specialChocolateClip._visible = false; expertScoreClip._visible = false; table3._visible = (table4._visible = false); table2._visible = false; table1._visible = false; coin_Anim3._visible = (coin_Anim4._visible = false); coin_Anim2._visible = false; coin_Anim1._visible = false; table1.point = 1; table2.point = 2; table3.point = 3; table4.point = 4; choco_machines._visible = true; choco_machines.single_machine.gotoAndStop(2); dusbin._visible = true; dusbin.gotoAndStop(2); special_choco_machines._visible = true; special_choco_machines.gotoAndStop(1); special_choco_machines.machine1.gotoAndStop(2); coffee_machine._visible = true; coffee_machine.gotoAndStop(2); choco_machines2._visible = false; choco_machines2.intro.gotoAndStop(1); choco_machines2.intro.shadow.gotoAndStop(1); choco_machines2.intro.star.gotoAndStop(1); phone_mc._visible = true; phone_mc.intro.gotoAndPlay(2); _global.popupText = "Select the PHONE to answer a call. Take the order of the client and prepare it. A delivery boy will pick it up later."; gamestartInterval = setInterval(GameStart, 3000, this); btn_pause.onRelease = function () { if (this._visible && (owner._parent.pauseClip._visible == false)) { owner.pauseTarget = "btn_continue"; owner.isPaused = true; owner.isPopup = true; this._visible = false; owner._parent.pauseClip._visible = true; owner._parent.pauseClip.gotoAndPlay(2); owner.CallPause(); } }; leve6Keyobj = new Object(); Key.addListener(leve6Keyobj); leve6Keyobj.onKeyUp = function () { if (Key.getCode() == 13) { if ((!owner.isPaused) && (!owner.isGameOver)) { owner.StoreInSequence(); } } }; leve6Keyobj.onKeyDown = function () { if (Key.getCode() == 37) { if (!owner.isPaused) { owner.LeftNavigation(); } } else if (Key.getCode() == 39) { if (!owner.isPaused) { owner.RightNavigation(); } } else if (Key.getCode() == 38) { if (!owner.isPaused) { owner.UpNavigation(); } else { owner.pauseUpNavigation(); } } else if (Key.getCode() == 40) { if (!owner.isPaused) { owner.DownNavigation(); } else { owner.pauseDownNavigation(); } } else if (Key.getCode() == 13) { if (owner.popup_mc._visible) { owner.popup_mc.btn_ok.onRelease(); } else if (owner.reportMc._visible) { if (owner.reportMc._currentframe == 1) { owner.reportMc.mc.btn_continue.onRelease(); } else { owner.reportMc.mc.btn_retry.onRelease(); } } else if (!owner.isPaused) { owner.EnterFunction(); } else { owner.PauseEnterFunction(); } } else if (Key.getAscii() == 27) { if (!owner.isPaused) { owner.btn_pause.onRelease(); } else if (owner.isPaused) { owner._parent.pauseClip.btn_continue.onRelease(); } } }; phone_mc.onRollOver = function () { if (((!owner.isPaused) && (owner.table4._visible == true)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); if (owner.ringstat == "off") { this.ring.gotoAndStop(1); eval ("owner.orderbook" + this.point).highlight.gotoAndStop(2); } else { this.gotoAndStop(3); } owner.moveTarget = "phone_mc"; } }; phone_mc.onRollOut = (phone_mc.onReleaseOutside = function () { this.gotoAndStop(2); if (owner.ringstat == "off") { this.ring.gotoAndStop(1); eval ("owner.orderbook" + this.point).highlight.gotoAndStop(1); } }); table1.onRollOver = (table2.onRollOver = (table3.onRollOver = (table4.onRollOver = function () { if ((!owner.isPaused) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.moveTarget = this._name; owner.keyTarget = this._name; eval ("this.orderbook" + this.point).highlight.gotoAndStop(2); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(2); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(2); } } }))); table1.onRollOut = (table2.onRollOut = (table3.onRollOut = (table4.onRollOut = function () { eval ("this.orderbook" + this.point).highlight.gotoAndStop(1); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(1); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(1); } }))); choco_machines.onRollOver = function () { if (((owner.machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "choco_machines"; owner.moveTarget = "choco_machines"; this.single_machine.gotoAndStop(3); } }; choco_machines.onRollOut = (choco_machines.onReleaseOutside = function () { this.single_machine.gotoAndStop(2); }); dusbin.onRollOver = function () { if ((owner.dusbinStatus == "ready") && (!owner.isPaused)) { owner.ObjectsRollOut(); owner.keyTarget = "dusbin"; owner.moveTarget = "dusbin"; this.gotoAndStop(3); } }; dusbin.onRollOut = (dusbin.onReleaseOutside = function () { this.gotoAndStop(2); }); coffee_machine.onRollOver = function () { if (((owner.coffeeStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "coffee_machine"; owner.moveTarget = "coffee_machine"; this.gotoAndStop(3); } }; coffee_machine.onRollOut = (coffee_machine.onReleaseOutside = function () { this.gotoAndStop(2); }); special_choco_machines.onRollOver = function () { if (((owner.special_machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.moveTarget = "special_choco_machines"; owner.keyTarget = "special_choco_machines"; this.machine1.gotoAndStop(3); } }; special_choco_machines.onRollOut = (special_choco_machines.onReleaseOutside = function () { this.machine1.gotoAndStop(2); }); coffee_machine.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.coffee_machine); } }; coffee_machine.onPress = function () { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.coffeeStatus == "ready")) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "coffee_machine"; owner.calculateAngle(owner.coffee_indicate); this.pointer._visible = true; } }; choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.choco_machines); } }; choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); this.pointer._visible = true; } }; special_choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.choco_machines2); } }; special_choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); this.pointer._visible = true; } }; dusbin.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.dusbin); } }; dusbin.onPress = function () { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); this.pointer._visible = true; } }; table1.onRelease = (table2.onRelease = (table3.onRelease = (table4.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(this); } }))); table1.onPress = (table2.onPress = (table3.onPress = (table4.onPress = function () { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = this._name; if (owner.selectedTarget == "table1") { owner.calculateAngle(this); owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.calculateAngle(this); owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.calculateAngle(this); owner.selectedTable = 3; } else if (owner.selectedTarget == "table4") { owner.calculateAngle(owner.phone_indicate); owner.selectedTable = 4; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } }))); phone_mc.onRelease = function () { if ((((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) && (owner.table4._visible == true)) { owner.sequenceArr.push(owner.phone_mc); } }; phone_mc.onPress = function () { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.table4._visible == true)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "table4"; owner.calculateAngle(owner.phone_indicate); owner.selectedTable = 4; } }; } function LeftNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_box") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_triangle.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOut(); eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOver(); } } else if (keyTarget == "coffee_machine") { coffee_machine.onRollOut(); if (table3._visible) { table3.onRollOver(); } else if (table2._visible) { table2.onRollOver(); } else if (table1._visible) { table1.onRollOver(); } else if (table4._visible) { table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); coffee_machine.onRollOver(); } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); choco_machines.onRollOver(); } } function RightNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_box.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOut(); eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOver(); } } else if (keyTarget == undefined) { coffee_machine.onRollOver(); } else if (keyTarget == "coffee_machine") { coffee_machine.onRollOut(); choco_machines.onRollOver(); } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); special_choco_machines.onRollOver(); } else if ((((keyTarget == "table1") || (keyTarget == "table2")) || (keyTarget == "table3")) || (keyTarget == "table4")) { eval ("this." + keyTarget).onRollOut(); phone_mc.onRollOut(); coffee_machine.onRollOver(); } } function UpNavigation() { if (keyTarget == "table4") { if (table1._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOver(); } else if (table2._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table1") { if (table2._visible) { table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table2") { if (table3._visible) { table2.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "dusbin") { dusbin.onRollOut(); special_choco_machines.onRollOver(); } } function DownNavigation() { if (keyTarget == "table3") { if (table2._visible) { table3.onRollOut(); table2.onRollOver(); } else if (table1._visible) { table3.onRollOut(); table1.onRollOver(); } else if (table4._visible) { table3.onRollOut(); table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "table2") { if (table1._visible) { table2.onRollOut(); table1.onRollOver(); } else if (table4._visible) { table2.onRollOut(); table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "table1") { if (table4._visible) { table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); dusbin.onRollOver(); } } function EnterFunction() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_triangle.onRelease(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_round.onRelease(); } else if (keyTarget == "type_box") { chocolate_container.mc.type_box.onRelease(); } } else if (special_chocolate_container._visible) { eval ("this.special_chocolate_container.mc." + keyTarget).onRelease(); } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRelease(); } else if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRelease(); } } else { eval ("this." + keyTarget).onPress(); } } function PauseEnterFunction() { eval ("this._parent.pauseClip." + pauseTarget).onRelease(); } function pauseUpNavigation() { if (pauseTarget == "btn_premium") { _parent.pauseClip.btn_premium.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_continue.onRollOver(); } } function pauseDownNavigation() { if (pauseTarget == "pause") { _parent.pauseClip.btn_continue.onRollOver(); } else if (pauseTarget == "btn_continue") { _parent.pauseClip.btn_continue.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_premium.onRollOver(); } } function updateScore() { scoreClip.score_txt.text = score; scoreClip.loading.gotoAndStop(score); if ((score >= 220) && (scoreClip.target._currentframe == 1)) { scoreClip.target.gotoAndPlay(1); scoreIndicateClip._visible = true; scoreIndicateClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.target_score_Sound.start(); } } if ((score >= 480) && (scoreClip.expert._currentframe == 1)) { scoreClip.expert.gotoAndPlay(1); expertScoreClip._visible = true; expertScoreClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.expert_score_Sound.start(); } } } function onEnterFrame() { var owner = this; if (((!isPopup) && (!isTargetReached)) && (!owner.isPaused)) { shopperMovement(); } if (machineshake == "onn") { machinespeed = -machinespeed; choco_machines._x = choco_machines._x + ((1 * machinespeed) / 2); choco_machines._y = choco_machines._y + ((1 * machinespeed) / 2); } if (specialmachineshake == "onn") { specialmachinespeed = -specialmachinespeed; special_choco_machines._x = special_choco_machines._x + ((1 * specialmachinespeed) / 2); special_choco_machines._y = special_choco_machines._y + ((1 * specialmachinespeed) / 2); } else { special_choco_machines._x = 631; special_choco_machines._y = 101; } if (coffeemachineshake == "onn") { coffeemachinespeed = -coffeemachinespeed; coffee_machine._x = coffee_machine._x + ((1 * coffeemachinespeed) / 2); coffee_machine._y = coffee_machine._y + ((1 * coffeemachinespeed) / 2); } if (machine2shake == "onn") { machine2speed = -machine2speed; choco_machines2._x = choco_machines2._x + ((1 * machine2speed) / 2); choco_machines2._y = choco_machines2._y + ((1 * machine2speed) / 2); } _parent.pauseClip.btn_continue.onRollOver = (_parent.pauseClip.btn_restart.onRollOver = (_parent.pauseClip.btn_mainmenu.onRollOver = (_parent.pauseClip.btn_premium.onRollOver = function () { owner._parent.pauseClip.btn_continue.onRollOut(); owner._parent.pauseClip.btn_restart.onRollOut(); owner._parent.pauseClip.btn_mainmenu.onRollOut(); owner._parent.pauseClip.btn_premium.onRollOut(); owner.pauseTarget = this._name; this.gotoAndStop(2); }))); _parent.pauseClip.btn_continue.onRollOut = (_parent.pauseClip.btn_restart.onRollOut = (_parent.pauseClip.btn_mainmenu.onRollOut = (_parent.pauseClip.btn_premium.onRollOut = function () { this.gotoAndStop(1); }))); _parent.pauseClip.btn_continue.onRelease = function () { owner.isPaused = false; owner.isPopup = false; owner.btn_pause._visible = true; owner._parent.pauseClip._visible = false; owner.CallResume(); }; _parent.pauseClip.btn_restart.onRelease = function () { owner.Reset(); owner._parent.play(); }; _parent.pauseClip.btn_mainmenu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; _parent.pauseClip.btn_premium.onRelease = function () { this.getURL(_root.urlname, "_blank"); }; popup_mc.btn_ok.onRollOver = function () { this.gotoAndStop(2); }; popup_mc.btn_ok.onRollOut = (popup_mc.btn_ok.onReleaseOutside = function () { this.gotoAndStop(1); }); chocolate_container.mc.type_triangle.onRollOver = (chocolate_container.mc.type_round.onRollOver = (chocolate_container.mc.type_box.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.chocolate_container.mc.type_triangle.gotoAndStop(1); owner.chocolate_container.mc.type_round.gotoAndStop(1); owner.chocolate_container.mc.type_box.gotoAndStop(1); this.gotoAndStop(2); } })); chocolate_container.mc.type_triangle.onRelease = (chocolate_container.mc.type_round.onRelease = (chocolate_container.mc.type_box.onRelease = function () { if (!owner.isPaused) { if (owner.selectedTarget == "choco_machines") { owner.chocolateClip._visible = true; owner.chocolateClip.gotoAndStop(this._name); owner.chocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_box_chocolate = this._name; if (owner.choco_machines.status == "empty") { owner.choco_machines.status = "prepared"; } owner.machineshake = "onn"; owner.machineStatus = "ready"; owner.preparecnt = 0; owner.process_interval = setInterval(owner.IdleProcess, 100, owner); } else if (owner.selectedTarget == "choco_machines2") { owner.chocolateClip2._visible = true; owner.chocolateClip2.gotoAndStop(this._name); owner.chocolateClip2.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_box2_chocolate = this._name; if (owner.choco_machines2.status == "empty") { owner.choco_machines2.status = "prepared"; } owner.machine2shake = "onn"; owner.machine2Status = "ready"; owner.process_interval = setInterval(owner.IdleProcess, 3000, owner); } owner.chocolate_container.gotoAndStop(2); owner.isPopup = false; owner.dusbinStatus = "ready"; owner.keyTarget = "choco_machines"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } })); chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.machineStatus = "ready"; owner.chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; owner.keyTarget = "choco_machines"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; special_chocolate_container.mc.type_rabbit.onRollOver = (special_chocolate_container.mc.type_fish.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.special_chocolate_container.mc.type_rabbit.gotoAndStop(1); owner.special_chocolate_container.mc.type_fish.gotoAndStop(1); this.gotoAndStop(2); } }); special_chocolate_container.mc.type_rabbit.onRelease = (special_chocolate_container.mc.type_fish.onRelease = function () { if (!owner.isPaused) { owner.infoClip._visible = false; owner.specialChocolateClip._visible = true; owner.specialChocolateClip.gotoAndStop(this._name); owner.specialChocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_special_chocolate = this._name; if (owner.special_choco_machines.status == "empty") { owner.special_choco_machines.status = "prepared"; } owner.spl_preparecnt = 0; owner.special_process_interval = setInterval(owner.SpecialIdleProcess, 100, owner); owner.special_chocolate_container.gotoAndStop(2); owner.isPopup = false; owner.dusbinStatus = "ready"; owner.special_machineStatus = "ready"; owner.specialmachineshake = "onn"; owner.keyTarget = "special_choco_machines"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }); special_chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.special_machineStatus = "ready"; owner.special_chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; owner.keyTarget = "special_choco_machines"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; dusbinContainer.mc.chocobox1.type_triangle.onRollOver = (dusbinContainer.mc.chocobox1.type_round.onRollOver = (dusbinContainer.mc.chocobox1.type_box.onRollOver = (dusbinContainer.mc.chocobox2.type_triangle.onRollOver = (dusbinContainer.mc.chocobox2.type_round.onRollOver = (dusbinContainer.mc.chocobox2.type_box.onRollOver = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox1.type_fish.onRollOver = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox2.type_fish.onRollOver = function () { owner.keyTarget = this._name; this.gotoAndStop(2); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRollOut = (dusbinContainer.mc.chocobox1.type_round.onRollOut = (dusbinContainer.mc.chocobox1.type_box.onRollOut = (dusbinContainer.mc.chocobox2.type_triangle.onRollOut = (dusbinContainer.mc.chocobox2.type_round.onRollOut = (dusbinContainer.mc.chocobox2.type_box.onRollOut = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox1.type_fish.onRollOut = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox2.type_fish.onRollOut = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_fish.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_fish.onReleaseOutside = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRelease = (dusbinContainer.mc.chocobox1.type_round.onRelease = (dusbinContainer.mc.chocobox1.type_box.onRelease = (dusbinContainer.mc.chocobox2.type_triangle.onRelease = (dusbinContainer.mc.chocobox2.type_round.onRelease = (dusbinContainer.mc.chocobox2.type_box.onRelease = (dusbinContainer.mc.chocobox1.type_rabbit.onRelease = (dusbinContainer.mc.chocobox1.type_fish.onRelease = (dusbinContainer.mc.chocobox2.type_rabbit.onRelease = (dusbinContainer.mc.chocobox2.type_fish.onRelease = function () { if (!owner.isPaused) { if (this._name == owner.preferred_chocolate1) { owner.preferred_chocolate1 = owner.preferred_chocolate2; owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } else { owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }))))))))); dusbinContainer.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; reportMc.mc.btn_continue.onRelease = function () { owner.Reset(); _global.calenderfrom = "game"; owner._parent.gotoAndStop("calender"); }; reportMc.mc.btn_menu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; reportMc.mc.btn_retry.onRelease = function () { owner.Reset(); owner._parent.play(); }; popup_mc.btn_ok.onRelease = function () { if (owner.popup_info == "welcome") { owner.combo_bookcnt = 0; owner.combo_ordercnt = 0; owner.combo_moneycnt = 0; owner.btn_pause._visible = true; owner.popupDisable(); var _local1 = owner.getRandom(0, 2); owner.customerEnterInterval = setInterval(owner.CallCustomer, 1500, owner, owner.lobbyArr[_local1], "oldlady"); owner.lobbyArr.splice(_local1, 1); _local1 = owner.getRandom(0, owner.lobbyArr.length - 1); owner.customerEnterInterval2 = setInterval(owner.CallCustomer2, 2500, owner, owner.lobbyArr[_local1], "younglady"); owner.lobbyArr.splice(_local1, 1); owner.isPopup = false; owner.popup_info = "level2_start"; owner.bg.gotoAndStop(2); owner.shopopenClip._visible = true; owner.shopopenClip.gotoAndPlay(1); owner.ismoveready = true; owner.machineStatus = "ready"; owner.machine2Status = "ready"; owner.special_machineStatus = "ready"; owner.dusbinStatus = "ready"; owner.coffeeStatus = "ready"; owner.timerClip._visible = true; clearInterval(owner.gameInterval); owner.gametimer = 0; owner.gameInterval = setInterval(owner.GameTimeLimit, 650, owner); owner.Re_customerEnterInterval = setInterval(owner.CallNewCustomer, 3500, owner); owner.phone_mc.gotoAndStop(2); owner.phone_mc.ring.gotoAndStop(1); } else if (owner.popup_info == "order") { owner.popupDisable(); owner.isPopup = false; owner.popup_info = ""; owner.selectClip._visible = true; owner.selectClip._x = owner.choco_machines._x; owner.selectClip._y = owner.choco_machines._y - 80; } else if (owner.popup_info == "mismatch") { owner.popupDisable(); owner.isPopup = false; } }; } function shopperMovement() { var _local3 = (salesGirl._x + salesGirl.pointer._x) - targetclip._x; var _local2 = (salesGirl._y + salesGirl.pointer._y) - targetclip._y; var _local5 = Math.sqrt((_local2 * _local2) + (_local3 * _local3)); var _local4 = 10; if (_local5 >= _local4) { salesGirl._x = salesGirl._x + (Math.cos(radian) * girlspeed); salesGirl._y = salesGirl._y + (Math.sin(radian) * girlspeed); } else if (!isTargetReached) { isTargetReached = true; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); Manipulate(); updateScore(); } } function GameStart(_arg1) { clearInterval(_arg1.gamestartInterval); _arg1.isPopup = true; _arg1.ShowPopup(_arg1); } function calculateAngle(mc) { if (!isPopup) { targetclip = mc; var x_diff = (eval (mc)._x - (salesGirl._x + salesGirl.pointer._x)); var y_diff = (eval (mc)._y - (salesGirl._y + salesGirl.pointer._y)); radian = Math.atan2(y_diff, x_diff); if (Math.abs(x_diff) > Math.abs(y_diff)) { if (x_diff > 0) { targetDirection = "right"; } else { targetDirection = "left"; } } else if (y_diff > 0) { targetDirection = "down"; } else { targetDirection = "up"; } if (curtarget != selectedTarget) { curtarget = selectedTarget; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe - 1); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); } } } function ShowPopup(_arg1) { clearInterval(_arg1.popup_interval); _arg1.isPopup = true; _arg1.popup_mc._visible = true; _arg1.popup_mc.swapDepths(_arg1.getNextHighestDepth()); _arg1.popup_mc.gotoAndPlay(1); } function popupDisable() { popup_mc.gotoAndStop(1); popup_mc._visible = false; } function CallNewCustomer(_arg2) { if (!_arg2.isGameOver) { if (_arg2.table4._visible) { var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == 1) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } if ((_arg2.customerCount != 0) && (_arg2.moneyCount != 0)) { _arg2.CallNextCustomerSet(); } } else { clearInterval(_arg2.Re_customerEnterInterval); } } function CallCustomer(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function CallCustomer2(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval2); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function CallCustomer3(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval3); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function Re_CallCustomer(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.Re_customerEnterInterval); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function customerEnter(_arg5, _arg4) { if (!isGameOver) { if (_arg4 == "phoneorder") { ringstat = "onn"; phone_mc._visible = true; table4._visible = true; customer4 = phone_mc; phone_mc.ring._visible = true; phone_mc.ring.gotoAndPlay(2); orderbook4 = attachMovie("orderbook", "orderbook4", getNextHighestDepth(), {_x:170, _y:400}); orderbook4._visible = false; orderbook4.type = "phone"; customer4.type = _arg4; orderbook4.heatcnt = 0; orderbook4.heatInterval = setInterval(HeatFunction, 550, orderbook4, this, 4); phoneringcnt = 0; phoneInterval = setInterval(HidePhoneOrder, 1000, this); if (_global.soundstat == "onn") { _root.phonering_Sound.start(); } } else if (_arg5 == 1) { table1._visible = true; customer1 = attachMovie(_arg4, "customer1", depthArr[_arg5 - 1], {_x:115, _y:356}); orderbook1 = attachMovie("orderbook", "orderbook1", getNextHighestDepth(), {_x:170, _y:374}); orderbook1.type = "book"; customer1.type = _arg4; orderbook1.heatcnt = 0; if (_arg4 == "oldlady") { orderbook1.heatInterval = setInterval(HeatFunction, 550, orderbook1, this, 1); } else if (_arg4 == "younglady") { orderbook1.heatInterval = setInterval(HeatFunction, 250, orderbook1, this, 1); } } else if (_arg5 == 2) { table2._visible = true; customer2 = attachMovie(_arg4, "customer2", depthArr[_arg5 - 1], {_x:119, _y:235}); orderbook2 = attachMovie("orderbook", "orderbook2", getNextHighestDepth(), {_x:177, _y:278}); orderbook2.type = "book"; customer2.type = _arg4; orderbook2.heatcnt = 0; if (_arg4 == "oldlady") { orderbook2.heatInterval = setInterval(HeatFunction, 550, orderbook2, this, 2); } else if (_arg4 == "younglady") { orderbook2.heatInterval = setInterval(HeatFunction, 250, orderbook2, this, 2); } } else if (_arg5 == 3) { table3._visible = true; customer3 = attachMovie(_arg4, "customer3", depthArr[_arg5 - 1], {_x:127, _y:140}); orderbook3 = attachMovie("orderbook", "orderbook3", getNextHighestDepth(), {_x:184, _y:185}); orderbook3.type = "book"; customer3.type = _arg4; orderbook3.heatcnt = 0; if (_arg4 == "oldlady") { orderbook3.heatInterval = setInterval(HeatFunction, 550, orderbook3, this, 3); } else if (_arg4 == "younglady") { orderbook3.heatInterval = setInterval(HeatFunction, 250, orderbook3, this, 3); } } customerCount++; moneyCount++; orderTaken++; salesGirl.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); chocolate_container.swapDepths(getNextHighestDepth()); special_chocolate_container.swapDepths(getNextHighestDepth()); dusbinContainer.swapDepths(getNextHighestDepth()); comboClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); } } function HidePhoneOrder(owner) { if (!owner.isPaused) { owner.phoneringcnt++; if (owner.phoneringcnt >= 20) { clearInterval(owner.phoneInterval); clearInterval(owner.orderbook4.heatInterval); owner.moneyCount--; owner.customerCount--; owner.orderbook4._visible = false; owner.table4._visible = false; owner.orderbook4.type = "empty"; owner.ringstat = "off"; owner.phone_mc.ring.gotoAndStop(1); _root.phonering_Sound.stop(); if ((owner.customerCount == 0) && (owner.moneyCount == 0)) { if (!owner.isGameOver) { owner.CallNextCustomerSet(); } else { owner.callResult(); } } } } } function Manipulate() { var owner = this; if (selectedTarget == "coffee_machine") { coffee_machine.pointer._visible = false; if (coffee_machine.status == "empty") { coffee_machine.status = "prepared"; coffeeClip._visible = true; coffeeClip.gotoAndPlay(2); owner.isTargetReached = true; owner.coffee_preparecnt = 0; owner.coffee_process_interval = setInterval(owner.CoffeeIdleProcess, 100, owner); owner.isPopup = false; owner.coffeemachineshake = "onn"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (coffee_machine.status == "coffeeReady") { coffeeClip._visible = false; coffee_machine.status = "empty"; salesGirl.coffeeicon._visible = false; girlspeed = 12; orderTaken = 0; salesGirl.gotoAndStop(2); if (salesGirl.chocolateCount == 0) { girlwalkframe = 9; } else if (salesGirl.chocolateCount == 1) { girlwalkframe = 10; } else if (salesGirl.chocolateCount == 2) { girlwalkframe = 11; } salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.jumpLady.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.jumpLady.chocobox2.gotoAndStop(preferred_chocolate2); owner.machineStatus = "notready"; owner.special_machineStatus = "notready"; owner.dusbinStatus = "notready"; owner.coffeeStatus = "notready"; owner.isPopup = true; jumpInterval = setInterval(JumpFinished, 1100, this); } } else if (selectedTarget == "choco_machines") { choco_machines.pointer._visible = false; if (choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_round"; } } else if (choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_box_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_box_chocolate; } owner.salesGirl.chocolateCount++; chocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { if (orderbook1.book_mc._currentframe == 74) { orderbook1.green_highlight._visible = true; } } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { if (orderbook2.book_mc._currentframe == 74) { orderbook2.green_highlight._visible = true; } } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { if (orderbook3.book_mc._currentframe == 74) { orderbook3.green_highlight._visible = true; } } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { if (orderbook4.book_mc._currentframe == 74) { orderbook4.green_highlight._visible = true; } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "choco_machines2") { choco_machines2.pointer._visible = false; if (choco_machines2.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machine2Status = "notready"; dusbinStatus = "notready"; isPopup = true; } } else if (choco_machines2.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_box2_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_box2_chocolate; } owner.salesGirl.chocolateCount++; chocolateClip2._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); choco_machines2.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "special_choco_machines") { special_choco_machines.pointer._visible = false; if (special_choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { special_chocolate_container._visible = true; special_chocolate_container.gotoAndStop(1); special_chocolate_container.mc.gotoAndPlay(1); special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_rabbit"; } } else if (special_choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_special_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_special_chocolate; } owner.salesGirl.chocolateCount++; specialChocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); special_choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "dusbin") { dusbin.pointer._visible = false; if (salesGirl.chocolateCount == 1) { salesGirl.chocolateCount--; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); preferred_chocolate1 = null; preferred_chocolate2 = null; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (salesGirl.chocolateCount >= 2) { dusbinStatus = "notready"; isPopup = true; _global.preferred_chocolate1 = preferred_chocolate1; _global.preferred_chocolate2 = preferred_chocolate2; keyTarget = _global.preferred_chocolate1; dusbinContainer._visible = true; dusbinContainer.gotoAndStop(1); dusbinContainer.mc.gotoAndPlay(1); } } else if ((((selectedTarget == "table1") || (selectedTarget == "table2")) || (selectedTarget == "table3")) || (selectedTarget == "table4")) { eval ("this.orderbook" + selectedTable).pointer._visible = false; if (eval ("this.orderbook" + selectedTable).type == "phone") { isphonecalled = true; _root.phonering_Sound.stop(); clearInterval(phoneInterval); combo_bookcnt++; combo_ordercnt = 0; combo_moneycnt = 0; ringstat = "off"; phone_mc.ring.gotoAndStop(1); eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; var randomno = owner.getRandom(0, 4); eval ("this.orderbook" + selectedTable)._visible = true; eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.customer" + selectedTable).gotoAndStop(2); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); var heatcntchange = int(eval ("this.orderbook" + selectedTable).heatcnt / 4); if (heatcntchange > 1) { eval ("this.orderbook" + selectedTable).heatcnt = heatcntchange; } else { eval ("this.orderbook" + selectedTable).heatcnt = 1; } CheckForBookCombo(); } else if (eval ("this.orderbook" + selectedTable).type == "book") { combo_bookcnt++; combo_ordercnt = 0; combo_moneycnt = 0; eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; var randomno = owner.getRandom(0, 4); eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.customer" + selectedTable).gotoAndStop(3); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); var heatcntchange = int(eval ("this.orderbook" + selectedTable).heatcnt / 4); if (heatcntchange > 1) { eval ("this.orderbook" + selectedTable).heatcnt = heatcntchange; } else { eval ("this.orderbook" + selectedTable).heatcnt = 1; } CheckForBookCombo(); } else if (eval ("this.orderbook" + selectedTable).type == "chocolateOrder") { if ((salesGirl.chocolateCount >= 1) && (eval ("this.orderbook" + selectedTable).book_mc._currentframe >= 74)) { combo_bookcnt = 0; combo_moneycnt = 0; if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate1) { combo_ordercnt++; preferred_chocolate1 = preferred_chocolate2; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); if (selectedTarget == "table4") { orderbook4.type = "none"; orderbook4.temp_box._visible = false; orderbook4.green_highlight._visible = false; orderbook4.highlight._visible = false; orderbook4.timelimit._visible = false; phone_mc.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); deliveryboy._visible = true; deliveryboy.gotoAndPlay(2); clearInterval(deliveryinterval); deliveryinterval = setInterval(callDeliveryBoy, 1500, this); } else { eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { if (table4._visible) { trace("table4visile"); var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; if (salesGirl.chocolateCount == 1) { preferred_chocolate1 = null; } salesGirl.chocolateCount--; owner.setGreenHighLight(); } else if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate2) { combo_ordercnt++; salesGirl.chocolateCount--; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); if (selectedTarget == "table4") { orderbook4.type = "none"; orderbook4.temp_box._visible = false; orderbook4.green_highlight._visible = false; orderbook4.highlight._visible = false; orderbook4.timelimit._visible = false; phone_mc.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); deliveryboy._visible = true; deliveryboy.gotoAndPlay(2); clearInterval(deliveryinterval); deliveryinterval = setInterval(callDeliveryBoy, 1500, this); } else { eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { if (table4._visible) { trace("table4visile"); var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; owner.setGreenHighLight(); } } } else if (eval ("this.orderbook" + selectedTable).type == "money") { combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt++; moneyCount--; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(2); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable)._visible = false; eval ("this.table" + selectedTable)._visible = false; eval ("this.orderbook" + selectedTable).type = "empty"; if (owner.selectedTarget != "table4") { eval ("this.customer" + selectedTable)._visible = false; } CheckForMoneyCombo(); if (orderTaken >= 6) { salesGirl.coffeeicon._visible = true; girlspeed = 6; } if (selectedTable != 4) { lobbyArr.push(selectedTable); } else if (table1._visible == false) { lobbyArr.push(1); } trace((("money=" + lobbyArr.length) + ", lobby=") + lobbyArr); if ((customerCount == 0) && (moneyCount == 0)) { if (!isGameOver) { customerCount = 0; moneyCount = 0; owner.table2._visible = (owner.table3._visible = false); owner.table1._visible = false; CallNextCustomerSet(); } else { callResult(); } } else if (isGameOver) { if ((((table1._visible == false) && (table2._visible == false)) && (table3._visible == false)) && (table4._visible == false)) { callResult(); } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } function ReEntry() { var _local2 = this; var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); if (table4._visible) { _local3 = 1; } else { _local3 = 0; } _local2.Re_customerEnterInterval = setInterval(_local2.Re_CallCustomer, 100, _local2, _local2.lobbyArr[_local3], "younglady"); _local2.lobbyArr.splice(_local3, 1); } function CallNextCustomerSet() { var _local2 = this; trace("call next cus=" + lobbyArr); if (lobbyArr.length >= 1) { if (lobbyArr.length == 1) { if (((!isphonecalled) && (table4._visible == false)) && (table1._visible == false)) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], "phoneorder"); } else { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } else if (lobbyArr.length == 2) { re_entry = "onn"; trace("in lobby arr 2=" + isphonecalled); if (((!isphonecalled) && (table4._visible == false)) && (table1._visible == false)) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); if (_local2.lobbyArr[0] == 1) { _local3 = 1; } else if (_local2.lobbyArr[1] == 1) { _local3 = 0; } clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], "phoneorder"); } else { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 100, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } else if (lobbyArr.length == 3) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval3); _local2.customerEnterInterval3 = setInterval(_local2.CallCustomer3, 4000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } } function callDeliveryBoy(owner) { clearInterval(owner.deliveryinterval); owner.orderbook4.type = "money"; owner.coin_Anim4._visible = true; owner.coin_Anim4.gotoAndStop(1); owner.coin_Anim4.coin.gotoAndPlay(1); owner.orderbook4.gotoAndStop(3); if ((owner.orderbook4.heatcnt > 60) && (owner.orderbook4.heatcnt <= 100)) { owner.orderbook4.money_mc.gotoAndStop(2); owner.orderbook4.highlight._visible = false; } else if (owner.orderbook4.heatcnt > 100) { owner.orderbook4.money_mc.gotoAndStop(3); owner.orderbook4.highlight._visible = false; owner.orderbook4.highlight_small._visible = false; } if (!owner.isGameOver) { if (owner.table4._visible) { trace("table4visile"); var i = 0; while (i < owner.lobbyArr.length) { if (owner.lobbyArr[i] == 1) { owner.lobbyArr.splice(i, 1); } i++; } } owner.CallNextCustomerSet(); } } function JumpFinished(_arg1) { clearInterval(_arg1.jumpInterval); _arg1.machineStatus = "ready"; _arg1.special_machineStatus = "ready"; _arg1.dusbinStatus = "ready"; _arg1.coffeeStatus = "ready"; _arg1.isPopup = false; _arg1.sequenceArr.splice(0, 1); if (_arg1.sequenceArr.length >= 1) { _arg1.CallSequence(); } } function setGreenHighLight() { if (orderbook1.book_mc._currentframe >= 74) { if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } else { orderbook1.green_highlight._visible = false; } } if (orderbook2.book_mc._currentframe >= 74) { if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } else { orderbook2.green_highlight._visible = false; } } if (orderbook3.book_mc._currentframe >= 74) { if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } else { orderbook3.green_highlight._visible = false; } } if (orderbook4.book_mc._currentframe >= 74) { if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } else { orderbook4.green_highlight._visible = false; } } } function callResult() { clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); clearInterval(orderbook4.heatInterval); clearInterval(deliveryinterval); clearInterval(jumpInterval); clearInterval(phoneInterval); machineStatus = "notready"; special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; _global.report_moneyEarned = score; _global.report_tips = tips; _global.targetScore = 220; _global.expertScore = 480; btn_pause._visible = false; dusbinStatus = "notready"; score = score + tips; if (score < 220) { reportMc._visible = true; reportMc.gotoAndStop(2); reportMc.mc.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.level_failed_Sound.start(); } } else { if (_global.soundstat == "onn") { _root.level_complete_Sound.start(); } if (_global.levelSelected < 7) { _global.levelSelected = 7; } if (_global.levelFinished <= 6) { _global.levelFinished = 6; } if (score >= 480) { _global.level6Status = "expert"; } else { _global.level6Status = "target"; } _global.level6Score = score; if (((score >= 220) && (scoreClip.target._currentframe == 1)) || ((score >= 480) && (scoreClip.expert._currentframe == 1))) { reportInterval = setInterval(CallReport, 2300, this); } else { reportMc._visible = true; reportMc.gotoAndStop(1); reportMc.mc.gotoAndPlay(2); } } } function CallReport(_arg1) { clearInterval(_arg1.reportInterval); _arg1.reportMc._visible = true; _arg1.reportMc.gotoAndStop(1); _arg1.reportMc.mc.gotoAndPlay(2); } function HeatFunction(owner, myparent, curpoint) { if (!myparent.isPaused) { owner.heatcnt++; owner.timelimit.gotoAndStop(owner.heatcnt); if (owner.heatcnt == 100) { eval ("myparent.customer" + curpoint).gotoAndStop(4); } if (owner.heatcnt >= 120) { clearInterval(owner.heatInterval); myparent.moneyCount--; myparent.customerCount--; eval ("myparent.orderbook" + curpoint)._visible = false; eval ("myparent.table" + curpoint)._visible = false; if (eval ("myparent.customer" + curpoint).type == "oldlady") { eval ("myparent.customer" + curpoint).gotoAndStop(6); if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 10)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 10) { myparent.score = myparent.score - 10; myparent.curScoreClip.disp.score.text = -10; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } else if (eval ("myparent.customer" + curpoint).type == "younglady") { eval ("myparent.customer" + curpoint).gotoAndStop(6); if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 15)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 15) { myparent.score = myparent.score - 15; myparent.curScoreClip.disp.score.text = -15; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } eval ("myparent.orderbook" + curpoint).type = "empty"; myparent.lobbyArr.push(curpoint); if ((myparent.customerCount == 0) && (myparent.moneyCount == 0)) { if (!myparent.isGameOver) { myparent.CallNextCustomerSet(); } else { myparent.callResult(); } } } } } function GameTimeLimit(_arg1) { if (!_arg1.isPaused) { _arg1.gametimer++; _arg1.timerClip.gotoAndStop(_arg1.gametimer); if (_arg1.gametimer >= 90) { _arg1.isGameOver = true; _arg1.bg.gotoAndStop(1); _arg1.shopclosedClip._visible = true; _arg1.shopclosedClip.gotoAndPlay(1); _arg1.gametimer = 0; clearInterval(_arg1.gameInterval); } } } function CheckForBookCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_bookcnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_bookcnt); comboClip.combo.gotoAndPlay(1); score = score + 4; curScoreClip.disp.score.text = 4; tips = tips + 4; } else { score = score + 2; curScoreClip.disp.score.text = 2; tips = tips + 2; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_bookcnt) + "_Sound").start(); } } function CheckForOrderCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_ordercnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_ordercnt); comboClip.combo.gotoAndPlay(1); score = score + 20; curScoreClip.disp.score.text = 20; } else { score = score + 10; curScoreClip.disp.score.text = 10; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_ordercnt) + "_Sound").start(); } } function CheckForMoneyCombo() { if (_global.soundstat == "onn") { eval (("_root.money" + combo_moneycnt) + "_Sound").start(); } curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_moneycnt >= 2) { comboClip._x = eval ("this.orderbook" + selectedTable)._x - 20; comboClip._y = eval ("this.orderbook" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_moneycnt); comboClip.combo.gotoAndPlay(1); if (eval ("this.orderbook" + selectedTable).neededchocolate == "type_rabbit") { score = score + (combo_moneycnt * 30); curScoreClip.disp.score.text = combo_moneycnt * 30; } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 14); curScoreClip.disp.score.text = combo_moneycnt * 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 11); curScoreClip.disp.score.text = combo_moneycnt * 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 10); curScoreClip.disp.score.text = combo_moneycnt * 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 24); curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 21); curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 15); curScoreClip.disp.score.text = combo_moneycnt * 15; } } if (!isGameOver) { if (table4._visible) { var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 17; curScoreClip.disp.score.text = 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 14; curScoreClip.disp.score.text = 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 11; curScoreClip.disp.score.text = 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 10; curScoreClip.disp.score.text = 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 24; curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 21; curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 17; curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 15; curScoreClip.disp.score.text = combo_moneycnt * 15; } } } function IdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.preparecnt++; if (_arg3.preparecnt >= 20) { clearInterval(_arg3.process_interval); _arg3.machineStatus = "ready"; _arg3.machineshake = "off"; if (_arg3.choco_machines.status == "prepared") { _arg3.choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function SpecialIdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.spl_preparecnt++; if (_arg3.spl_preparecnt >= 40) { clearInterval(_arg3.special_process_interval); _arg3.special_machineStatus = "ready"; _arg3.specialmachineshake = "off"; if (_arg3.special_choco_machines.status == "prepared") { _arg3.special_choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function CoffeeIdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.coffee_preparecnt++; if (_arg3.coffee_preparecnt >= 20) { clearInterval(_arg3.coffee_process_interval); _arg3.coffeeStatus = "ready"; _arg3.coffeemachineshake = "off"; _arg3.coffee_machine.status = "coffeeReady"; if (_global.soundstat == "onn") { _root.hotchoco_done_Sound.start(); } } } } function getRandom(_arg4, _arg5) { var _local3 = _arg5 - _arg4; var _local2 = Math.random() * _local3; var _local1 = Math.round(_local2); _local1 = _local1 + _arg4; return(_local1); } function StoreInSequence() { var owner = this; eval ("this." + moveTarget).onRelease(); } function CallSequence() { var owner = this; if (sequenceArr[0] == choco_machines) { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == special_choco_machines) { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == dusbin) { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == coffee_machine) { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.coffeeStatus == "ready")) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "coffee_machine"; owner.calculateAngle(owner.coffee_indicate); sequenceArr[0].pointer._visible = true; } } else if ((((sequenceArr[0] == table1) || (sequenceArr[0] == table2)) || (sequenceArr[0] == table3)) || (sequenceArr[0] == table4)) { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = sequenceArr[0]._name; owner.calculateAngle(sequenceArr[0]); if (owner.selectedTarget == "table1") { owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.selectedTable = 3; } else if (owner.selectedTarget == "table4") { owner.selectedTable = 4; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } } } function CallPause() { var _local3 = this; stopAllSounds(); _local3.bg.blink.gotoAndStop(_local3.bg.blink._currentframe); _local3.customer1.customer.gotoAndStop(_local3.customer1.customer._currentframe); _local3.customer2.customer.gotoAndStop(_local3.customer2.customer._currentframe); _local3.customer3.customer.gotoAndStop(_local3.customer3.customer._currentframe); _local3.special_choco_machines.machine1.blink.gotoAndStop(_local3.special_choco_machines.machine1.blink._currentframe); _local3.choco_machines.single_machine.blink.gotoAndStop(_local3.choco_machines.single_machine.blink._currentframe); _local3.salesGirl.coffeeicon.smoke.gotoAndStop(_local3.salesGirl.coffeeicon.smoke._currentframe); _local3.customer4.customer.gotoAndStop(_local3.customer4.customer._currentframe); _local3.coin_Anim1.coin.gotoAndStop(_local3.coin_Anim1.coin._currentframe); _local3.coin_Anim2.coin.gotoAndStop(_local3.coin_Anim2.coin._currentframe); _local3.coin_Anim3.coin.gotoAndStop(_local3.coin_Anim3.coin._currentframe); _local3.coin_Anim4.coin.gotoAndStop(_local3.coin_Anim4.coin._currentframe); _local3.comboClip.combo.gotoAndStop(_local3.comboClip.combo._currentframe); _local3.orderbook1.heartinClip.gotoAndStop(_local3.orderbook1.heartinClip._currentframe); _local3.orderbook2.heartinClip.gotoAndStop(_local3.orderbook2.heartinClip._currentframe); _local3.orderbook3.heartinClip.gotoAndStop(_local3.orderbook3.heartinClip._currentframe); _local3.orderbook4.heartinClip.gotoAndStop(_local3.orderbook4.heartinClip._currentframe); _local3.curScoreClip.gotoAndStop(_local3.curScoreClip._currentframe); _local3.coin_Anim1.coin.coin_rotate.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate._currentframe); _local3.coin_Anim1.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate2._currentframe); _local3.coin_Anim1.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate3._currentframe); _local3.coin_Anim1.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate4._currentframe); _local3.coin_Anim2.coin.coin_rotate.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate._currentframe); _local3.coin_Anim2.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate2._currentframe); _local3.coin_Anim2.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate3._currentframe); _local3.coin_Anim2.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate4._currentframe); _local3.coin_Anim3.coin.coin_rotate.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate._currentframe); _local3.coin_Anim3.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate2._currentframe); _local3.coin_Anim3.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate3._currentframe); _local3.coin_Anim3.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate4._currentframe); _local3.coin_Anim4.coin.coin_rotate.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate._currentframe); _local3.coin_Anim4.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate2._currentframe); _local3.coin_Anim4.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate3._currentframe); _local3.coin_Anim4.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate4._currentframe); _local3.comboClip.combo.coin_rotate.gotoAndStop(_local3.comboClip.combo.coin_rotate._currentframe); if (_local3.scoreIndicateClip._visible) { _local3.scoreIndicateClip.gotoAndStop(_local3.scoreIndicateClip._currentframe); } if (_local3.expertScoreClip._visible) { _local3.expertScoreClip.gotoAndStop(_local3.expertScoreClip._currentframe); } _global.ringvisible = phone_mc.ring._visible; phone_mc.ring._visible = false; _local3.chocolateClip.mc.gotoAndStop(_local3.chocolateClip.mc._currentframe); _local3.specialChocolateClip.mc.gotoAndStop(_local3.specialChocolateClip.mc._currentframe); _local3.coffeeClip.gotoAndStop(_local3.coffeeClip._currentframe); } function CallResume() { var _local4 = this; if (_global.soundstat == "onn") { _root.gameSound.start(); } _local4.bg.blink.gotoAndPlay(_local4.bg.blink._currentframe); _local4.customer1.customer.gotoAndPlay(_local4.customer1.customer._currentframe); _local4.customer2.customer.gotoAndPlay(_local4.customer2.customer._currentframe); _local4.customer3.customer.gotoAndPlay(_local4.customer3.customer._currentframe); _local4.special_choco_machines.machine1.blink.gotoAndPlay(_local4.special_choco_machines.machine1.blink._currentframe); _local4.choco_machines.single_machine.blink.gotoAndPlay(_local4.choco_machines.single_machine.blink._currentframe); _local4.salesGirl.coffeeicon.smoke.gotoAndPlay(_local4.salesGirl.coffeeicon.smoke._currentframe); _local4.customer4.customer.gotoAndPlay(_local4.customer4.customer._currentframe); _local4.coin_Anim1.coin.gotoAndPlay(_local4.coin_Anim1.coin._currentframe - 1); _local4.coin_Anim2.coin.gotoAndPlay(_local4.coin_Anim2.coin._currentframe - 1); _local4.coin_Anim3.coin.gotoAndPlay(_local4.coin_Anim3.coin._currentframe - 1); _local4.coin_Anim4.coin.gotoAndPlay(_local4.coin_Anim4.coin._currentframe - 1); _local4.comboClip.combo.gotoAndPlay(_local4.comboClip.combo._currentframe - 1); _local4.orderbook1.heartinClip.gotoAndPlay(_local4.orderbook1.heartinClip._currentframe - 1); _local4.orderbook2.heartinClip.gotoAndPlay(_local4.orderbook2.heartinClip._currentframe - 1); _local4.orderbook3.heartinClip.gotoAndPlay(_local4.orderbook3.heartinClip._currentframe - 1); _local4.orderbook4.heartinClip.gotoAndPlay(_local4.orderbook4.heartinClip._currentframe - 1); _local4.curScoreClip.gotoAndPlay(_local4.curScoreClip._currentframe); _local4.coin_Anim1.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate._currentframe); _local4.coin_Anim1.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate2._currentframe); _local4.coin_Anim1.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate3._currentframe); _local4.coin_Anim1.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate4._currentframe); _local4.coin_Anim2.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate._currentframe); _local4.coin_Anim2.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate2._currentframe); _local4.coin_Anim2.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate3._currentframe); _local4.coin_Anim2.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate4._currentframe); _local4.coin_Anim3.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate._currentframe); _local4.coin_Anim3.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate2._currentframe); _local4.coin_Anim3.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate3._currentframe); _local4.coin_Anim3.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate4._currentframe); _local4.coin_Anim4.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate._currentframe); _local4.coin_Anim4.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate2._currentframe); _local4.coin_Anim4.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate3._currentframe); _local4.coin_Anim4.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate4._currentframe); _local4.comboClip.combo.coin_rotate.gotoAndPlay(_local4.comboClip.combo.coin_rotate._currentframe); if (_local4.scoreIndicateClip._visible) { _local4.scoreIndicateClip.gotoAndPlay(_local4.scoreIndicateClip._currentframe - 1); } if (_local4.expertScoreClip._visible) { _local4.expertScoreClip.gotoAndPlay(_local4.expertScoreClip._currentframe - 1); } phone_mc.ring._visible = _global.ringvisible; _local4.chocolateClip.mc.gotoAndPlay(_local4.chocolateClip.mc._currentframe - 1); _local4.specialChocolateClip.mc.gotoAndPlay(_local4.specialChocolateClip.mc._currentframe - 1); _local4.coffeeClip.gotoAndPlay(_local4.coffeeClip._currentframe - 1); } function ObjectsRollOut() { table1.onRollOut(); table2.onRollOut(); table3.onRollOut(); table4.onRollOut(); phone_mc.onRollOut(); choco_machines.onRollOut(); dusbin.onRollOut(); coffee_machine.onRollOut(); special_choco_machines.onRollOut(); } function Reset() { targetclip = "table1"; lobbyArr.length = 0; lobbyArr = new Array(1, 2, 3); currentDirection = "down"; targetDirection = ""; isPopup = false; popup_info = "welcome"; clearInterval(popup_interval); clearInterval(special_process_interval); clearInterval(process_interval); popup_interval = -1; isTargetReached = true; selectedTarget = ""; orderno = 0; score = 0; ismoveready = false; orderTaken = 0; customerCount = 0; machineStatus = "notready"; dusbinStatus = "notready"; girlwalkframe = 2; isFirstServeFinished = false; depthArr.length = 0; depthArr = new Array(-10313, -10315, -10317); chocolateTypeArr.length = 0; chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); customerEnterset = "firstset"; moneyCount = 0; clearInterval(gameInterval); gametimer = 0; isGameOver = false; combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt = 0; curtarget = ""; clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); clearInterval(orderbook4.heatInterval); clearInterval(deliveryinterval); isPaused = false; sequenceArr.length = 0; sequenceArr = new Array(); girlspeed = 12; Key.removeListener(keylistener); clearInterval(jumpInterval); clearInterval(phoneInterval); Key.removeListener(leve6Keyobj); keyTarget = undefined; phoneringcnt = 0; isphonecalled = false; } var targetclip = "table1"; var lobbyArr = new Array(1, 2, 3); var currentDirection = "down"; var isPopup = false; var popup_info = "welcome"; var popup_interval = -1; var process_interval = -1; var special_process_interval = -1; var isTargetReached = true; var selectedTarget = ""; var orderno = 0; var ismoveready = false; var orderTaken = 0; var customerCount = 0; var machineStatus = "notready"; var machine2Status = "notready"; var special_machineStatus = "notready"; var dusbinStatus = "notready"; var coffeeStatus = "notready"; var girlwalkframe = 2; var isFirstServeFinished = false; var score = 0; var depthArr = new Array(-10313, -10315, -10317); var chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); var customerEnterset = "firstset"; var moneyCount = 0; var gameInterval = -1; var gametimer = 0; var isGameOver = false; var combo_bookcnt = 0; var combo_ordercnt = 0; var combo_moneycnt = 0; var gamestartInterval = -1; var curtarget = ""; var customerEnterInterval = -1; var customerEnterInterval2 = -1; var reportInterval = -1; var isPaused = false; var coffee_process_interval = -1; var ringstat = "off"; var phone_status = "notready"; var machinespeed = 1; var machineshake = "off"; var specialmachineshake = "off"; var coffeemachineshake = "off"; var machine2shake = "off"; var specialmachinespeed = 1; var coffeemachinespeed = 1; var machine2speed = 1; var girlspeed = 12; var sequenceArr = new Array(); var customerEnterInterval3 = -1; var deliveryinterval = -1; var jumpInterval = -1; var tips = 0; var phoneInterval = -1; var Re_customerEnterInterval = -1; var phoneringcnt = 0; var cusArr = new Array("younglady", "oldlady", "younglady"); var isphonecalled = false; var preparecnt = 0; var spl_preparecnt = 0; var coffee_preparecnt = 0; }
Symbol 1704 MovieClip [__Packages.Level7] Frame 0
class Level7 extends MovieClip { var dummy_highlight, deliveryboy, salesGirl, btn_pause, _parent, choco_machines, choco_machines2, special_choco_machines, coffee_machine, scoreIndicateClip, shopclosedClip, timerClip, chocolate_container, special_chocolate_container, coffeeClip, chocolateClip, chocolateClip2, popup_mc, selectClip, heartinClip, shopopenClip, reportMc, cancel_mc, infoClip, comboClip, dusbinContainer, curScoreClip, specialChocolateClip, expertScoreClip, table4, table3, table2, table1, coin_Anim4, coin_Anim3, coin_Anim2, coin_Anim1, dusbin, phone_mc, leve7Keyobj, keyTarget, pauseTarget, scoreClip, radian, targetDirection, preferred_chocolate1, preferred_chocolate2, customer4, orderbook4, attachMovie, getNextHighestDepth, customer1, orderbook1, customer2, orderbook2, customer3, orderbook3, selectedTable, re_entry, moveTarget, keylistener; function Level7 () { super(); } function onLoad() { var owner = this; clearInterval(popup_interval); clearInterval(process_interval); Reset(); dummy_highlight._visible = false; deliveryboy._visible = false; salesGirl.coffeeicon._visible = false; btn_pause._visible = false; _parent.pauseClip._visible = false; salesGirl.gotoAndStop(currentDirection); salesGirl.chocolateCount = 0; choco_machines.status = "empty"; choco_machines2.status = "empty"; special_choco_machines.status = "empty"; coffee_machine.status = "empty"; salesGirl.girlwalk.gotoAndStop(girlwalkframe); scoreIndicateClip._visible = false; shopclosedClip._visible = false; timerClip._visible = false; chocolate_container._visible = false; special_chocolate_container._visible = false; special_chocolate_container.mc.gotoAndStop(1); coffeeClip._visible = false; chocolateClip._visible = false; chocolateClip2._visible = false; popup_mc._visible = false; selectClip._visible = false; heartinClip._visible = false; shopopenClip._visible = false; reportMc._visible = false; cancel_mc._visible = false; infoClip._visible = false; comboClip._visible = false; dusbinContainer._visible = false; curScoreClip._visible = false; specialChocolateClip._visible = false; expertScoreClip._visible = false; table3._visible = (table4._visible = false); table2._visible = false; table1._visible = false; coin_Anim3._visible = (coin_Anim4._visible = false); coin_Anim2._visible = false; coin_Anim1._visible = false; table1.point = 1; table2.point = 2; table3.point = 3; table4.point = 4; choco_machines._visible = true; choco_machines.gotoAndStop(2); dusbin._visible = true; dusbin.gotoAndStop(2); special_choco_machines._visible = true; special_choco_machines.gotoAndStop(1); special_choco_machines.machine1.gotoAndStop(2); coffee_machine._visible = true; coffee_machine.gotoAndStop(2); choco_machines2._visible = true; choco_machines2.intro.gotoAndStop(1); choco_machines2.intro.shadow.gotoAndPlay(2); choco_machines2.intro.star.gotoAndPlay(2); phone_mc._visible = true; phone_mc.gotoAndStop(2); phone_mc.ring.gotoAndStop(1); _global.popupText = "New BOXED CHOCOLATE machine has been added!"; gamestartInterval = setInterval(GameStart, 3000, this); btn_pause.onRelease = function () { if (this._visible && (owner._parent.pauseClip._visible == false)) { owner.pauseTarget = "btn_continue"; owner.isPaused = true; owner.isPopup = true; this._visible = false; owner._parent.pauseClip._visible = true; owner._parent.pauseClip.gotoAndPlay(2); owner.CallPause(); } }; leve7Keyobj = new Object(); Key.addListener(leve7Keyobj); leve7Keyobj.onKeyUp = function () { if (Key.getCode() == 13) { if ((!owner.isPaused) && (!owner.isGameOver)) { owner.StoreInSequence(); } } }; leve7Keyobj.onKeyDown = function () { if (Key.getCode() == 37) { if (!owner.isPaused) { owner.LeftNavigation(); } } else if (Key.getCode() == 39) { if (!owner.isPaused) { owner.RightNavigation(); } } else if (Key.getCode() == 38) { if (!owner.isPaused) { owner.UpNavigation(); } else { owner.pauseUpNavigation(); } } else if (Key.getCode() == 40) { if (!owner.isPaused) { owner.DownNavigation(); } else { owner.pauseDownNavigation(); } } else if (Key.getCode() == 13) { if (owner.popup_mc._visible) { owner.popup_mc.btn_ok.onRelease(); } else if (owner.reportMc._visible) { if (owner.reportMc._currentframe == 1) { owner.reportMc.mc.btn_continue.onRelease(); } else { owner.reportMc.mc.btn_retry.onRelease(); } } else if (!owner.isPaused) { owner.EnterFunction(); } else { owner.PauseEnterFunction(); } } else if (Key.getAscii() == 27) { if (!owner.isPaused) { owner.btn_pause.onRelease(); } else if (owner.isPaused) { owner._parent.pauseClip.btn_continue.onRelease(); } } }; phone_mc.onRollOver = function () { if (((!owner.isPaused) && (owner.table4._visible == true)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); if (owner.ringstat == "off") { this.ring.gotoAndStop(1); eval ("owner.orderbook" + this.point).highlight.gotoAndStop(2); } else { this.gotoAndStop(3); } owner.moveTarget = "phone_mc"; } }; phone_mc.onRollOut = (phone_mc.onReleaseOutside = function () { this.gotoAndStop(2); if (owner.ringstat == "off") { this.ring.gotoAndStop(1); eval ("owner.orderbook" + this.point).highlight.gotoAndStop(1); } }); table1.onRollOver = (table2.onRollOver = (table3.onRollOver = (table4.onRollOver = function () { if ((!owner.isPaused) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = this._name; owner.moveTarget = this._name; eval ("this.orderbook" + this.point).highlight.gotoAndStop(2); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(2); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(2); } } }))); table1.onRollOut = (table2.onRollOut = (table3.onRollOut = (table4.onRollOut = function () { eval ("this.orderbook" + this.point).highlight.gotoAndStop(1); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(1); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(1); } }))); choco_machines.onRollOver = function () { if (((owner.machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "choco_machines"; owner.moveTarget = "choco_machines"; this.gotoAndStop(3); owner.dummy_highlight._visible = true; } }; choco_machines.onRollOut = (choco_machines.onReleaseOutside = function () { this.gotoAndStop(2); owner.dummy_highlight._visible = false; }); choco_machines2.onRollOver = function () { if (((owner.machine2Status == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "choco_machines2"; owner.moveTarget = "choco_machines2"; this.gotoAndStop(3); } }; choco_machines2.onRollOut = (choco_machines2.onReleaseOutside = function () { this.gotoAndStop(2); }); dusbin.onRollOver = function () { if ((owner.dusbinStatus == "ready") && (!owner.isPaused)) { owner.ObjectsRollOut(); owner.keyTarget = "dusbin"; owner.moveTarget = "dusbin"; this.gotoAndStop(3); } }; dusbin.onRollOut = (dusbin.onReleaseOutside = function () { this.gotoAndStop(2); }); coffee_machine.onRollOver = function () { if (((owner.coffeeStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "coffee_machine"; owner.moveTarget = "coffee_machine"; this.gotoAndStop(3); } }; coffee_machine.onRollOut = (coffee_machine.onReleaseOutside = function () { this.gotoAndStop(2); }); special_choco_machines.onRollOver = function () { if (((owner.special_machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "special_choco_machines"; owner.moveTarget = "special_choco_machines"; this.machine1.gotoAndStop(3); } }; special_choco_machines.onRollOut = (special_choco_machines.onReleaseOutside = function () { this.machine1.gotoAndStop(2); }); coffee_machine.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.coffee_machine); } }; coffee_machine.onPress = function () { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.coffeeStatus == "ready")) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "coffee_machine"; owner.calculateAngle(owner.coffee_indicate); this.pointer._visible = true; } }; choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.choco_machines); } }; choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); this.pointer._visible = true; } }; choco_machines2.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.choco_machines2); } }; choco_machines2.onPress = function () { if (((owner.isTargetReached && (owner.machine2Status == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines2"; owner.calculateAngle(owner.chomac_indicate2); this.pointer._visible = true; } }; special_choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.special_choco_machines); } }; special_choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); this.pointer._visible = true; } }; dusbin.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.dusbin); } }; dusbin.onPress = function () { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); this.pointer._visible = true; } }; table1.onRelease = (table2.onRelease = (table3.onRelease = (table4.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(this); } }))); table1.onPress = (table2.onPress = (table3.onPress = (table4.onPress = function () { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = this._name; if (owner.selectedTarget == "table1") { owner.calculateAngle(this); owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.calculateAngle(this); owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.calculateAngle(this); owner.selectedTable = 3; } else if (owner.selectedTarget == "table4") { owner.calculateAngle(owner.phone_indicate); owner.selectedTable = 4; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } }))); phone_mc.onRelease = function () { if ((((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) && (owner.table4._visible == true)) { owner.sequenceArr.push(owner.phone_mc); } }; phone_mc.onPress = function () { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.table4._visible == true)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "table4"; owner.calculateAngle(owner.phone_indicate); owner.selectedTable = 4; } }; } function LeftNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_box") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_triangle.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOut(); eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOver(); } } else if (keyTarget == "coffee_machine") { coffee_machine.onRollOut(); if (table3._visible) { table3.onRollOver(); } else if (table2._visible) { table2.onRollOver(); } else if (table1._visible) { table1.onRollOver(); } else if (table4._visible) { table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); coffee_machine.onRollOver(); } else if (keyTarget == "choco_machines2") { choco_machines2.onRollOut(); choco_machines.onRollOver(); } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); choco_machines2.onRollOver(); } } function RightNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_box.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOut(); eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOver(); } } else if (keyTarget == undefined) { coffee_machine.onRollOver(); } else if (keyTarget == "coffee_machine") { coffee_machine.onRollOut(); choco_machines.onRollOver(); } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); choco_machines2.onRollOver(); } else if (keyTarget == "choco_machines2") { choco_machines2.onRollOut(); special_choco_machines.onRollOver(); } else if ((((keyTarget == "table1") || (keyTarget == "table2")) || (keyTarget == "table3")) || (keyTarget == "table4")) { eval ("this." + keyTarget).onRollOut(); phone_mc.onRollOut(); coffee_machine.onRollOver(); } } function UpNavigation() { if (keyTarget == "table4") { if (table1._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOver(); } else if (table2._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table1") { if (table2._visible) { table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table2") { if (table3._visible) { table2.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "dusbin") { dusbin.onRollOut(); special_choco_machines.onRollOver(); } } function DownNavigation() { if (keyTarget == "table3") { if (table2._visible) { table3.onRollOut(); table2.onRollOver(); } else if (table1._visible) { table3.onRollOut(); table1.onRollOver(); } else if (table4._visible) { table3.onRollOut(); table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "table2") { if (table1._visible) { table2.onRollOut(); table1.onRollOver(); } else if (table4._visible) { table2.onRollOut(); table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "table1") { if (table4._visible) { table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); dusbin.onRollOver(); } } function EnterFunction() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_triangle.onRelease(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_round.onRelease(); } else if (keyTarget == "type_box") { chocolate_container.mc.type_box.onRelease(); } } else if (special_chocolate_container._visible) { eval ("this.special_chocolate_container.mc." + keyTarget).onRelease(); } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRelease(); } else if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRelease(); } } else { eval ("this." + keyTarget).onPress(); } } function PauseEnterFunction() { eval ("this._parent.pauseClip." + pauseTarget).onRelease(); } function pauseUpNavigation() { if (pauseTarget == "btn_premium") { _parent.pauseClip.btn_premium.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_continue.onRollOver(); } } function pauseDownNavigation() { if (pauseTarget == "pause") { _parent.pauseClip.btn_continue.onRollOver(); } else if (pauseTarget == "btn_continue") { _parent.pauseClip.btn_continue.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_premium.onRollOver(); } } function updateScore() { scoreClip.score_txt.text = score; scoreClip.loading.gotoAndStop(score); if ((score >= 280) && (scoreClip.target._currentframe == 1)) { scoreClip.target.gotoAndPlay(1); scoreIndicateClip._visible = true; scoreIndicateClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.target_score_Sound.start(); } } if ((score >= 480) && (scoreClip.expert._currentframe == 1)) { scoreClip.expert.gotoAndPlay(1); expertScoreClip._visible = true; expertScoreClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.expert_score_Sound.start(); } } } function onEnterFrame() { var owner = this; if (((!isPopup) && (!isTargetReached)) && (!owner.isPaused)) { shopperMovement(); } if (machineshake == "onn") { machinespeed = -machinespeed; choco_machines._x = choco_machines._x + ((2 * machinespeed) / 2); choco_machines._y = choco_machines._y + ((2 * machinespeed) / 2); } if (specialmachineshake == "onn") { specialmachinespeed = -specialmachinespeed; special_choco_machines._x = special_choco_machines._x + ((1 * specialmachinespeed) / 2); special_choco_machines._y = special_choco_machines._y + ((1 * specialmachinespeed) / 2); } else { special_choco_machines._x = 631; special_choco_machines._y = 101; } if (coffeemachineshake == "onn") { coffeemachinespeed = -coffeemachinespeed; coffee_machine._x = coffee_machine._x + ((1 * coffeemachinespeed) / 2); coffee_machine._y = coffee_machine._y + ((1 * coffeemachinespeed) / 2); } if (machine2shake == "onn") { machine2speed = -machine2speed; choco_machines2._x = choco_machines2._x + ((2 * machine2speed) / 2); choco_machines2._y = choco_machines2._y + ((2 * machine2speed) / 2); } _parent.pauseClip.btn_continue.onRollOver = (_parent.pauseClip.btn_restart.onRollOver = (_parent.pauseClip.btn_mainmenu.onRollOver = (_parent.pauseClip.btn_premium.onRollOver = function () { owner._parent.pauseClip.btn_continue.onRollOut(); owner._parent.pauseClip.btn_restart.onRollOut(); owner._parent.pauseClip.btn_mainmenu.onRollOut(); owner._parent.pauseClip.btn_premium.onRollOut(); owner.pauseTarget = this._name; this.gotoAndStop(2); }))); _parent.pauseClip.btn_continue.onRollOut = (_parent.pauseClip.btn_restart.onRollOut = (_parent.pauseClip.btn_mainmenu.onRollOut = (_parent.pauseClip.btn_premium.onRollOut = function () { this.gotoAndStop(1); }))); _parent.pauseClip.btn_continue.onRelease = function () { owner.isPaused = false; owner.isPopup = false; owner.btn_pause._visible = true; owner._parent.pauseClip._visible = false; owner.CallResume(); }; _parent.pauseClip.btn_restart.onRelease = function () { owner.Reset(); owner._parent.play(); }; _parent.pauseClip.btn_mainmenu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; _parent.pauseClip.btn_premium.onRelease = function () { this.getURL(_root.urlname, "_blank"); }; popup_mc.btn_ok.onRollOver = function () { this.gotoAndStop(2); }; popup_mc.btn_ok.onRollOut = (popup_mc.btn_ok.onReleaseOutside = function () { this.gotoAndStop(1); }); chocolate_container.mc.type_triangle.onRollOver = (chocolate_container.mc.type_round.onRollOver = (chocolate_container.mc.type_box.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.chocolate_container.mc.type_triangle.gotoAndStop(1); owner.chocolate_container.mc.type_round.gotoAndStop(1); owner.chocolate_container.mc.type_box.gotoAndStop(1); this.gotoAndStop(2); } })); chocolate_container.mc.type_triangle.onRelease = (chocolate_container.mc.type_round.onRelease = (chocolate_container.mc.type_box.onRelease = function () { if (!owner.isPaused) { if (owner.selectedTarget == "choco_machines") { owner.chocolateClip._visible = true; owner.chocolateClip.gotoAndStop(this._name); owner.chocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_box_chocolate = this._name; if (owner.choco_machines.status == "empty") { owner.choco_machines.status = "prepared"; } owner.machineshake = "onn"; owner.machineStatus = "ready"; owner.keyTarget = "choco_machines"; owner.preparecnt = 0; owner.process_interval = setInterval(owner.IdleProcess, 100, owner); } else if (owner.selectedTarget == "choco_machines2") { owner.chocolateClip2._visible = true; owner.chocolateClip2.gotoAndStop(this._name); owner.chocolateClip2.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_box2_chocolate = this._name; if (owner.choco_machines2.status == "empty") { owner.choco_machines2.status = "prepared"; } owner.machine2shake = "onn"; owner.machine2Status = "ready"; owner.keyTarget = "choco_machines2"; owner.prepare2cnt = 0; owner.process_interval2 = setInterval(owner.IdleProcess2, 100, owner); } owner.chocolate_container.gotoAndStop(2); owner.isPopup = false; owner.dusbinStatus = "ready"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } })); chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.machineStatus = "ready"; owner.machine2Status = "ready"; owner.chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; if (owner.selectedTarget == "choco_machines") { owner.keyTarget = "choco_machines"; } else { owner.keyTarget = "choco_machines2"; } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; special_chocolate_container.mc.type_rabbit.onRollOver = (special_chocolate_container.mc.type_fish.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.special_chocolate_container.mc.type_rabbit.gotoAndStop(1); owner.special_chocolate_container.mc.type_fish.gotoAndStop(1); this.gotoAndStop(2); } }); special_chocolate_container.mc.type_rabbit.onRelease = (special_chocolate_container.mc.type_fish.onRelease = function () { if (!owner.isPaused) { owner.infoClip._visible = false; owner.specialChocolateClip._visible = true; owner.specialChocolateClip.gotoAndStop(this._name); owner.specialChocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_special_chocolate = this._name; if (owner.special_choco_machines.status == "empty") { owner.special_choco_machines.status = "prepared"; } owner.spl_preparecnt = 0; owner.special_process_interval = setInterval(owner.SpecialIdleProcess, 100, owner); owner.special_chocolate_container.gotoAndStop(2); owner.isPopup = false; owner.dusbinStatus = "ready"; owner.special_machineStatus = "ready"; owner.specialmachineshake = "onn"; owner.keyTarget = "special_choco_machines"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }); special_chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.special_machineStatus = "ready"; owner.special_chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; owner.keyTarget = "special_choco_machines"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; dusbinContainer.mc.chocobox1.type_triangle.onRollOver = (dusbinContainer.mc.chocobox1.type_round.onRollOver = (dusbinContainer.mc.chocobox1.type_box.onRollOver = (dusbinContainer.mc.chocobox2.type_triangle.onRollOver = (dusbinContainer.mc.chocobox2.type_round.onRollOver = (dusbinContainer.mc.chocobox2.type_box.onRollOver = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox1.type_fish.onRollOver = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox2.type_fish.onRollOver = function () { owner.keyTarget = this._name; this.gotoAndStop(2); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRollOut = (dusbinContainer.mc.chocobox1.type_round.onRollOut = (dusbinContainer.mc.chocobox1.type_box.onRollOut = (dusbinContainer.mc.chocobox2.type_triangle.onRollOut = (dusbinContainer.mc.chocobox2.type_round.onRollOut = (dusbinContainer.mc.chocobox2.type_box.onRollOut = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox1.type_fish.onRollOut = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox2.type_fish.onRollOut = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_fish.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_fish.onReleaseOutside = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRelease = (dusbinContainer.mc.chocobox1.type_round.onRelease = (dusbinContainer.mc.chocobox1.type_box.onRelease = (dusbinContainer.mc.chocobox2.type_triangle.onRelease = (dusbinContainer.mc.chocobox2.type_round.onRelease = (dusbinContainer.mc.chocobox2.type_box.onRelease = (dusbinContainer.mc.chocobox1.type_rabbit.onRelease = (dusbinContainer.mc.chocobox1.type_fish.onRelease = (dusbinContainer.mc.chocobox2.type_rabbit.onRelease = (dusbinContainer.mc.chocobox2.type_fish.onRelease = function () { if (!owner.isPaused) { if (this._name == owner.preferred_chocolate1) { owner.preferred_chocolate1 = owner.preferred_chocolate2; owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } else { owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }))))))))); dusbinContainer.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; reportMc.mc.btn_continue.onRelease = function () { owner.Reset(); _global.calenderfrom = "game"; owner._parent.gotoAndStop("calender"); }; reportMc.mc.btn_menu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; reportMc.mc.btn_retry.onRelease = function () { owner.Reset(); owner._parent.play(); }; popup_mc.btn_ok.onRelease = function () { if (owner.popup_info == "welcome") { owner.combo_bookcnt = 0; owner.combo_ordercnt = 0; owner.combo_moneycnt = 0; owner.btn_pause._visible = true; owner.popupDisable(); var _local1 = owner.getRandom(0, 2); owner.customerEnterInterval = setInterval(owner.CallCustomer, 1500, owner, owner.lobbyArr[_local1], "younglady"); owner.lobbyArr.splice(_local1, 1); _local1 = owner.getRandom(0, owner.lobbyArr.length - 1); owner.customerEnterInterval2 = setInterval(owner.CallCustomer2, 2500, owner, owner.lobbyArr[_local1], "oldlady"); owner.lobbyArr.splice(_local1, 1); owner.isPopup = false; owner.popup_info = "level2_start"; owner.bg.gotoAndStop(2); owner.shopopenClip._visible = true; owner.shopopenClip.gotoAndPlay(1); owner.ismoveready = true; owner.machineStatus = "ready"; owner.machine2Status = "ready"; owner.special_machineStatus = "ready"; owner.dusbinStatus = "ready"; owner.coffeeStatus = "ready"; owner.timerClip._visible = true; clearInterval(owner.gameInterval); owner.gametimer = 0; owner.gameInterval = setInterval(owner.GameTimeLimit, 660, owner); owner.Re_customerEnterInterval = setInterval(owner.CallNewCustomer, 3500, owner); owner.phone_mc.gotoAndStop(2); owner.phone_mc.ring.gotoAndStop(1); } else if (owner.popup_info == "order") { owner.popupDisable(); owner.isPopup = false; owner.popup_info = ""; owner.selectClip._visible = true; owner.selectClip._x = owner.choco_machines._x; owner.selectClip._y = owner.choco_machines._y - 80; } else if (owner.popup_info == "mismatch") { owner.popupDisable(); owner.isPopup = false; } }; } function shopperMovement() { var _local3 = (salesGirl._x + salesGirl.pointer._x) - targetclip._x; var _local2 = (salesGirl._y + salesGirl.pointer._y) - targetclip._y; var _local5 = Math.sqrt((_local2 * _local2) + (_local3 * _local3)); var _local4 = 10; if (_local5 >= _local4) { salesGirl._x = salesGirl._x + (Math.cos(radian) * girlspeed); salesGirl._y = salesGirl._y + (Math.sin(radian) * girlspeed); } else if (!isTargetReached) { isTargetReached = true; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); Manipulate(); updateScore(); } } function GameStart(_arg1) { clearInterval(_arg1.gamestartInterval); _arg1.isPopup = true; _arg1.ShowPopup(_arg1); } function calculateAngle(mc) { if (!isPopup) { targetclip = mc; var x_diff = (eval (mc)._x - (salesGirl._x + salesGirl.pointer._x)); var y_diff = (eval (mc)._y - (salesGirl._y + salesGirl.pointer._y)); radian = Math.atan2(y_diff, x_diff); if (Math.abs(x_diff) > Math.abs(y_diff)) { if (x_diff > 0) { targetDirection = "right"; } else { targetDirection = "left"; } } else if (y_diff > 0) { targetDirection = "down"; } else { targetDirection = "up"; } if (curtarget != selectedTarget) { curtarget = selectedTarget; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe - 1); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); } } } function ShowPopup(_arg1) { clearInterval(_arg1.popup_interval); _arg1.isPopup = true; _arg1.popup_mc._visible = true; _arg1.popup_mc.swapDepths(_arg1.getNextHighestDepth()); _arg1.popup_mc.gotoAndPlay(1); } function popupDisable() { popup_mc.gotoAndStop(1); popup_mc._visible = false; } function CallNewCustomer(_arg2) { if (!_arg2.isGameOver) { if (_arg2.table4._visible) { var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == 1) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } if ((_arg2.customerCount != 0) && (_arg2.moneyCount != 0)) { _arg2.CallNextCustomerSet(); } } else { clearInterval(_arg2.Re_customerEnterInterval); } } function CallCustomer(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function CallCustomer2(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval2); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function CallCustomer3(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval3); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function Re_CallCustomer(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.Re_customerEnterInterval); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function customerEnter(_arg5, _arg4) { if (!isGameOver) { if (_arg4 == "phoneorder") { isphonecalled = true; ringstat = "onn"; phone_mc._visible = true; table4._visible = true; customer4 = phone_mc; phone_mc.ring._visible = true; phone_mc.ring.gotoAndPlay(2); orderbook4 = attachMovie("orderbook", "orderbook4", getNextHighestDepth(), {_x:170, _y:400}); orderbook4._visible = false; orderbook4.type = "phone"; customer4.type = _arg4; orderbook4.heatcnt = 0; orderbook4.heatInterval = setInterval(HeatFunction, 550, orderbook4, this, 4); phoneringcnt = 0; phoneInterval = setInterval(HidePhoneOrder, 1000, this); if (_global.soundstat == "onn") { _root.phonering_Sound.start(); } } else if (_arg5 == 1) { table1._visible = true; customer1 = attachMovie(_arg4, "customer1", depthArr[_arg5 - 1], {_x:115, _y:356}); orderbook1 = attachMovie("orderbook", "orderbook1", getNextHighestDepth(), {_x:170, _y:374}); orderbook1.type = "book"; customer1.type = _arg4; orderbook1.heatcnt = 0; if (_arg4 == "oldlady") { orderbook1.heatInterval = setInterval(HeatFunction, 550, orderbook1, this, 1); } else if (_arg4 == "younglady") { orderbook1.heatInterval = setInterval(HeatFunction, 250, orderbook1, this, 1); } } else if (_arg5 == 2) { table2._visible = true; customer2 = attachMovie(_arg4, "customer2", depthArr[_arg5 - 1], {_x:119, _y:235}); orderbook2 = attachMovie("orderbook", "orderbook2", getNextHighestDepth(), {_x:177, _y:278}); orderbook2.type = "book"; customer2.type = _arg4; orderbook2.heatcnt = 0; if (_arg4 == "oldlady") { orderbook2.heatInterval = setInterval(HeatFunction, 550, orderbook2, this, 2); } else if (_arg4 == "younglady") { orderbook2.heatInterval = setInterval(HeatFunction, 250, orderbook2, this, 2); } } else if (_arg5 == 3) { table3._visible = true; customer3 = attachMovie(_arg4, "customer3", depthArr[_arg5 - 1], {_x:127, _y:140}); orderbook3 = attachMovie("orderbook", "orderbook3", getNextHighestDepth(), {_x:184, _y:185}); orderbook3.type = "book"; customer3.type = _arg4; orderbook3.heatcnt = 0; if (_arg4 == "oldlady") { orderbook3.heatInterval = setInterval(HeatFunction, 550, orderbook3, this, 3); } else if (_arg4 == "younglady") { orderbook3.heatInterval = setInterval(HeatFunction, 250, orderbook3, this, 3); } } customerCount++; moneyCount++; orderTaken++; salesGirl.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); chocolate_container.swapDepths(getNextHighestDepth()); special_chocolate_container.swapDepths(getNextHighestDepth()); dusbinContainer.swapDepths(getNextHighestDepth()); comboClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); } } function HidePhoneOrder(owner) { if (!owner.isPaused) { owner.phoneringcnt++; if (owner.phoneringcnt >= 20) { clearInterval(owner.phoneInterval); clearInterval(owner.orderbook4.heatInterval); owner.moneyCount--; owner.customerCount--; owner.orderbook4._visible = false; owner.table4._visible = false; owner.orderbook4.type = "empty"; owner.ringstat = "off"; owner.phone_mc.ring.gotoAndStop(1); _root.phonering_Sound.stop(); if ((owner.customerCount == 0) && (owner.moneyCount == 0)) { if (!owner.isGameOver) { owner.CallNextCustomerSet(); } else { owner.callResult(); } } } } } function Manipulate() { var owner = this; if (selectedTarget == "coffee_machine") { coffee_machine.pointer._visible = false; if (coffee_machine.status == "empty") { coffee_machine.status = "prepared"; coffeeClip._visible = true; coffeeClip.gotoAndPlay(2); owner.isTargetReached = true; owner.coffee_preparecnt = 0; owner.coffee_process_interval = setInterval(owner.CoffeeIdleProcess, 100, owner); owner.isPopup = false; owner.coffeemachineshake = "onn"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (coffee_machine.status == "coffeeReady") { coffeeClip._visible = false; coffee_machine.status = "empty"; salesGirl.coffeeicon._visible = false; girlspeed = 12; orderTaken = 0; salesGirl.gotoAndStop(2); if (salesGirl.chocolateCount == 0) { girlwalkframe = 9; } else if (salesGirl.chocolateCount == 1) { girlwalkframe = 10; } else if (salesGirl.chocolateCount == 2) { girlwalkframe = 11; } salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.jumpLady.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.jumpLady.chocobox2.gotoAndStop(preferred_chocolate2); owner.machineStatus = "notready"; owner.special_machineStatus = "notready"; owner.dusbinStatus = "notready"; owner.coffeeStatus = "notready"; owner.isPopup = true; jumpInterval = setInterval(JumpFinished, 1100, this); } } else if (selectedTarget == "choco_machines") { choco_machines.pointer._visible = false; if (choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_round"; } } else if (choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_box_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_box_chocolate; } owner.salesGirl.chocolateCount++; chocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { if (orderbook1.book_mc._currentframe == 74) { orderbook1.green_highlight._visible = true; } } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { if (orderbook2.book_mc._currentframe == 74) { orderbook2.green_highlight._visible = true; } } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { if (orderbook3.book_mc._currentframe == 74) { orderbook3.green_highlight._visible = true; } } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { if (orderbook4.book_mc._currentframe == 74) { orderbook4.green_highlight._visible = true; } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "choco_machines2") { choco_machines2.pointer._visible = false; if (choco_machines2.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machine2Status = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_round"; } } else if (choco_machines2.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_box2_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_box2_chocolate; } owner.salesGirl.chocolateCount++; chocolateClip2._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); choco_machines2.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "special_choco_machines") { special_choco_machines.pointer._visible = false; if (special_choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { special_chocolate_container._visible = true; special_chocolate_container.gotoAndStop(1); special_chocolate_container.mc.gotoAndPlay(1); special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_rabbit"; } } else if (special_choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { trace("Ready"); if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_special_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_special_chocolate; } owner.salesGirl.chocolateCount++; specialChocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); special_choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "dusbin") { dusbin.pointer._visible = false; if (salesGirl.chocolateCount == 1) { salesGirl.chocolateCount--; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); preferred_chocolate1 = null; preferred_chocolate2 = null; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (salesGirl.chocolateCount >= 2) { dusbinStatus = "notready"; isPopup = true; _global.preferred_chocolate1 = preferred_chocolate1; _global.preferred_chocolate2 = preferred_chocolate2; keyTarget = _global.preferred_chocolate1; dusbinContainer._visible = true; dusbinContainer.gotoAndStop(1); dusbinContainer.mc.gotoAndPlay(1); } } else if ((((selectedTarget == "table1") || (selectedTarget == "table2")) || (selectedTarget == "table3")) || (selectedTarget == "table4")) { eval ("this.orderbook" + selectedTable).pointer._visible = false; if (eval ("this.orderbook" + selectedTable).type == "phone") { isphonecalled = true; _root.phonering_Sound.stop(); clearInterval(phoneInterval); combo_bookcnt++; combo_ordercnt = 0; combo_moneycnt = 0; ringstat = "off"; phone_mc.ring.gotoAndStop(1); eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; var randomno = owner.getRandom(0, 4); eval ("this.orderbook" + selectedTable)._visible = true; eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.customer" + selectedTable).gotoAndStop(2); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); var heatcntchange = int(eval ("this.orderbook" + selectedTable).heatcnt / 4); if (heatcntchange > 1) { eval ("this.orderbook" + selectedTable).heatcnt = heatcntchange; } else { eval ("this.orderbook" + selectedTable).heatcnt = 1; } CheckForBookCombo(); } else if (eval ("this.orderbook" + selectedTable).type == "book") { combo_bookcnt++; combo_ordercnt = 0; combo_moneycnt = 0; eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; var randomno = owner.getRandom(0, 4); eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.customer" + selectedTable).gotoAndStop(3); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); var heatcntchange = int(eval ("this.orderbook" + selectedTable).heatcnt / 4); if (heatcntchange > 1) { eval ("this.orderbook" + selectedTable).heatcnt = heatcntchange; } else { eval ("this.orderbook" + selectedTable).heatcnt = 1; } CheckForBookCombo(); } else if (eval ("this.orderbook" + selectedTable).type == "chocolateOrder") { if ((salesGirl.chocolateCount >= 1) && (eval ("this.orderbook" + selectedTable).book_mc._currentframe >= 74)) { combo_bookcnt = 0; combo_moneycnt = 0; if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate1) { combo_ordercnt++; preferred_chocolate1 = preferred_chocolate2; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); if (selectedTarget == "table4") { orderbook4.type = "none"; orderbook4.temp_box._visible = false; orderbook4.green_highlight._visible = false; orderbook4.highlight._visible = false; orderbook4.timelimit._visible = false; phone_mc.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); deliveryboy._visible = true; deliveryboy.gotoAndPlay(2); clearInterval(deliveryinterval); deliveryinterval = setInterval(callDeliveryBoy, 1500, this); } else { eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { if (!isGameOver) { if (table4._visible) { trace("table4visile"); var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; if (salesGirl.chocolateCount == 1) { preferred_chocolate1 = null; } salesGirl.chocolateCount--; owner.setGreenHighLight(); } else if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate2) { combo_ordercnt++; salesGirl.chocolateCount--; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); if (selectedTarget == "table4") { orderbook4.type = "none"; orderbook4.temp_box._visible = false; orderbook4.green_highlight._visible = false; orderbook4.highlight._visible = false; orderbook4.timelimit._visible = false; phone_mc.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); deliveryboy._visible = true; deliveryboy.gotoAndPlay(2); clearInterval(deliveryinterval); deliveryinterval = setInterval(callDeliveryBoy, 1500, this); } else { eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { if (table4._visible) { trace("table4visile"); var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; owner.setGreenHighLight(); } } } else if (eval ("this.orderbook" + selectedTable).type == "money") { combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt++; trace((("before cus cont=" + customerCount) + ", ") + moneyCount); moneyCount--; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(2); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable)._visible = false; eval ("this.table" + selectedTable)._visible = false; eval ("this.orderbook" + selectedTable).type = "empty"; if (owner.selectedTarget != "table4") { eval ("this.customer" + selectedTable)._visible = false; } CheckForMoneyCombo(); if (orderTaken >= 6) { salesGirl.coffeeicon._visible = true; girlspeed = 6; } if (selectedTable != 4) { lobbyArr.push(selectedTable); } else if (table1._visible == false) { lobbyArr.push(1); } if ((customerCount == 0) && (moneyCount == 0)) { if (!isGameOver) { customerCount = 0; moneyCount = 0; owner.table2._visible = (owner.table3._visible = false); owner.table1._visible = false; CallNextCustomerSet(); } else { callResult(); } } else if (isGameOver) { if ((((table1._visible == false) && (table2._visible == false)) && (table3._visible == false)) && (table4._visible == false)) { callResult(); } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } function CallNextCustomerSet() { var _local2 = this; if (lobbyArr.length >= 1) { if (lobbyArr.length == 1) { if (((!isphonecalled) && (table4._visible == false)) && (table1._visible == false)) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], "phoneorder"); } else { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } else if (lobbyArr.length == 2) { re_entry = "onn"; if (((!isphonecalled) && (table4._visible == false)) && (table1._visible == false)) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); if (_local2.lobbyArr[0] == 1) { _local3 = 1; } else if (_local2.lobbyArr[1] == 1) { _local3 = 0; } clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], "phoneorder"); } else { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 100, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } else if (lobbyArr.length == 3) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval3); _local2.customerEnterInterval3 = setInterval(_local2.CallCustomer3, 4000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } } function callDeliveryBoy(owner) { clearInterval(owner.deliveryinterval); owner.orderbook4.type = "money"; owner.coin_Anim4._visible = true; owner.coin_Anim4.gotoAndStop(1); owner.coin_Anim4.coin.gotoAndPlay(1); owner.orderbook4.gotoAndStop(3); if ((owner.orderbook4.heatcnt > 60) && (owner.orderbook4.heatcnt <= 100)) { owner.orderbook4.money_mc.gotoAndStop(2); owner.orderbook4.highlight._visible = false; } else if (owner.orderbook4.heatcnt > 100) { owner.orderbook4.money_mc.gotoAndStop(3); owner.orderbook4.highlight._visible = false; owner.orderbook4.highlight_small._visible = false; } if (!owner.isGameOver) { if (owner.table4._visible) { trace("table4visile"); var i = 0; while (i < owner.lobbyArr.length) { if (owner.lobbyArr[i] == 1) { owner.lobbyArr.splice(i, 1); } i++; } } owner.CallNextCustomerSet(); } } function JumpFinished(_arg1) { clearInterval(_arg1.jumpInterval); _arg1.machineStatus = "ready"; _arg1.special_machineStatus = "ready"; _arg1.dusbinStatus = "ready"; _arg1.coffeeStatus = "ready"; _arg1.isPopup = false; _arg1.sequenceArr.splice(0, 1); if (_arg1.sequenceArr.length >= 1) { _arg1.CallSequence(); } } function setGreenHighLight() { if (orderbook1.book_mc._currentframe >= 74) { if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } else { orderbook1.green_highlight._visible = false; } } if (orderbook2.book_mc._currentframe >= 74) { if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } else { orderbook2.green_highlight._visible = false; } } if (orderbook3.book_mc._currentframe >= 74) { if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } else { orderbook3.green_highlight._visible = false; } } if (orderbook4.book_mc._currentframe >= 74) { if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } else { orderbook4.green_highlight._visible = false; } } } function callResult() { clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); clearInterval(orderbook4.heatInterval); clearInterval(deliveryinterval); clearInterval(jumpInterval); clearInterval(phoneInterval); machineStatus = "notready"; special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; _global.report_moneyEarned = score; _global.report_tips = tips; _global.targetScore = 280; _global.expertScore = 480; btn_pause._visible = false; dusbinStatus = "notready"; score = score + tips; if (score < 280) { reportMc._visible = true; reportMc.gotoAndStop(2); reportMc.mc.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.level_failed_Sound.start(); } } else { if (_global.soundstat == "onn") { _root.level_complete_Sound.start(); } if (_global.levelSelected < 8) { _global.levelSelected = 8; } if (_global.levelFinished <= 7) { _global.levelFinished = 7; } if (score >= 480) { _global.level7Status = "expert"; } else { _global.level7Status = "target"; } _global.level7Score = score; reportMc._visible = true; reportMc.gotoAndStop(1); reportMc.mc.gotoAndPlay(2); } } function CallReport(_arg1) { clearInterval(_arg1.reportInterval); _arg1.reportMc._visible = true; _arg1.reportMc.gotoAndStop(1); _arg1.reportMc.mc.gotoAndPlay(2); } function HeatFunction(owner, myparent, curpoint) { if (!myparent.isPaused) { owner.heatcnt++; owner.timelimit.gotoAndStop(owner.heatcnt); if (owner.heatcnt == 100) { eval ("myparent.customer" + curpoint).gotoAndStop(4); } if (owner.heatcnt >= 120) { clearInterval(owner.heatInterval); myparent.moneyCount--; myparent.customerCount--; eval ("myparent.orderbook" + curpoint)._visible = false; eval ("myparent.table" + curpoint)._visible = false; if (eval ("myparent.customer" + curpoint).type == "oldlady") { eval ("myparent.customer" + curpoint).gotoAndStop(6); if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 10)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 10) { myparent.score = myparent.score - 10; myparent.curScoreClip.disp.score.text = -10; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } else if (eval ("myparent.customer" + curpoint).type == "younglady") { eval ("myparent.customer" + curpoint).gotoAndStop(6); if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 15)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 15) { myparent.score = myparent.score - 15; myparent.curScoreClip.disp.score.text = -15; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } eval ("myparent.orderbook" + curpoint).type = "empty"; myparent.lobbyArr.push(curpoint); if ((myparent.customerCount == 0) && (myparent.moneyCount == 0)) { if (!myparent.isGameOver) { myparent.CallNextCustomerSet(); } else { myparent.callResult(); } } } } } function GameTimeLimit(_arg1) { if (!_arg1.isPaused) { _arg1.gametimer++; _arg1.timerClip.gotoAndStop(_arg1.gametimer); if (_arg1.gametimer >= 90) { _arg1.isGameOver = true; _arg1.bg.gotoAndStop(1); _arg1.shopclosedClip._visible = true; _arg1.shopclosedClip.gotoAndPlay(1); _arg1.gametimer = 0; clearInterval(_arg1.gameInterval); } } } function CheckForBookCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_bookcnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_bookcnt); comboClip.combo.gotoAndPlay(1); score = score + 4; curScoreClip.disp.score.text = 4; tips = tips + 4; } else { score = score + 2; curScoreClip.disp.score.text = 2; tips = tips + 2; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_bookcnt) + "_Sound").start(); } } function CheckForOrderCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_ordercnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_ordercnt); comboClip.combo.gotoAndPlay(1); score = score + 20; curScoreClip.disp.score.text = 20; } else { score = score + 10; curScoreClip.disp.score.text = 10; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_ordercnt) + "_Sound").start(); } } function CheckForMoneyCombo() { if (_global.soundstat == "onn") { eval (("_root.money" + combo_moneycnt) + "_Sound").start(); } curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_moneycnt >= 2) { comboClip._x = eval ("this.orderbook" + selectedTable)._x - 20; comboClip._y = eval ("this.orderbook" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_moneycnt); comboClip.combo.gotoAndPlay(1); if (eval ("this.orderbook" + selectedTable).neededchocolate == "type_rabbit") { score = score + (combo_moneycnt * 30); curScoreClip.disp.score.text = combo_moneycnt * 30; } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 14); curScoreClip.disp.score.text = combo_moneycnt * 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 11); curScoreClip.disp.score.text = combo_moneycnt * 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 10); curScoreClip.disp.score.text = combo_moneycnt * 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 24); curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 21); curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 15); curScoreClip.disp.score.text = combo_moneycnt * 15; } } if (!isGameOver) { if (table4._visible) { var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 17; curScoreClip.disp.score.text = 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 14; curScoreClip.disp.score.text = 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 11; curScoreClip.disp.score.text = 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 10; curScoreClip.disp.score.text = 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 24; curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 21; curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 17; curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 15; curScoreClip.disp.score.text = combo_moneycnt * 15; } } } function IdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.preparecnt++; if (_arg3.preparecnt >= 20) { clearInterval(_arg3.process_interval); _arg3.machineStatus = "ready"; _arg3.machineshake = "off"; if (_arg3.choco_machines.status == "prepared") { _arg3.choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function IdleProcess2(_arg3) { if (!_arg3.isPaused) { _arg3.prepare2cnt++; if (_arg3.prepare2cnt >= 20) { clearInterval(_arg3.process_interval2); _arg3.machine2Status = "ready"; _arg3.machine2shake = "off"; if (_arg3.choco_machines2.status == "prepared") { _arg3.choco_machines2.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function SpecialIdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.spl_preparecnt++; if (_arg3.spl_preparecnt >= 40) { trace("special done"); clearInterval(_arg3.special_process_interval); _arg3.special_machineStatus = "ready"; _arg3.specialmachineshake = "off"; if (_arg3.special_choco_machines.status == "prepared") { _arg3.special_choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function CoffeeIdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.coffee_preparecnt++; if (_arg3.coffee_preparecnt >= 20) { clearInterval(_arg3.coffee_process_interval); _arg3.coffeeStatus = "ready"; _arg3.coffeemachineshake = "off"; _arg3.coffee_machine.status = "coffeeReady"; if (_global.soundstat == "onn") { _root.hotchoco_done_Sound.start(); } } } } function getRandom(_arg4, _arg5) { var _local3 = _arg5 - _arg4; var _local2 = Math.random() * _local3; var _local1 = Math.round(_local2); _local1 = _local1 + _arg4; return(_local1); } function StoreInSequence() { var owner = this; eval ("this." + moveTarget).onRelease(); } function CallSequence() { var owner = this; if (sequenceArr[0] == choco_machines) { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == choco_machines2) { if (((owner.isTargetReached && (owner.machine2Status == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines2"; owner.calculateAngle(owner.chomac_indicate2); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == special_choco_machines) { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == dusbin) { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == coffee_machine) { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.coffeeStatus == "ready")) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "coffee_machine"; owner.calculateAngle(owner.coffee_indicate); sequenceArr[0].pointer._visible = true; } } else if ((((sequenceArr[0] == table1) || (sequenceArr[0] == table2)) || (sequenceArr[0] == table3)) || (sequenceArr[0] == table4)) { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = sequenceArr[0]._name; owner.calculateAngle(sequenceArr[0]); if (owner.selectedTarget == "table1") { owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.selectedTable = 3; } else if (owner.selectedTarget == "table4") { owner.selectedTable = 4; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } } } function CallPause() { var _local3 = this; stopAllSounds(); _local3.bg.blink.gotoAndStop(_local3.bg.blink._currentframe); _local3.customer1.customer.gotoAndStop(_local3.customer1.customer._currentframe); _local3.customer2.customer.gotoAndStop(_local3.customer2.customer._currentframe); _local3.customer3.customer.gotoAndStop(_local3.customer3.customer._currentframe); _local3.special_choco_machines.machine1.blink.gotoAndStop(_local3.special_choco_machines.machine1.blink._currentframe); _local3.choco_machines.single_machine.blink.gotoAndStop(_local3.choco_machines.single_machine.blink._currentframe); _local3.salesGirl.coffeeicon.smoke.gotoAndStop(_local3.salesGirl.coffeeicon.smoke._currentframe); _local3.customer4.customer.gotoAndStop(_local3.customer4.customer._currentframe); _local3.coin_Anim1.coin.gotoAndStop(_local3.coin_Anim1.coin._currentframe); _local3.coin_Anim2.coin.gotoAndStop(_local3.coin_Anim2.coin._currentframe); _local3.coin_Anim3.coin.gotoAndStop(_local3.coin_Anim3.coin._currentframe); _local3.coin_Anim4.coin.gotoAndStop(_local3.coin_Anim4.coin._currentframe); _local3.comboClip.combo.gotoAndStop(_local3.comboClip.combo._currentframe); _local3.orderbook1.heartinClip.gotoAndStop(_local3.orderbook1.heartinClip._currentframe); _local3.orderbook2.heartinClip.gotoAndStop(_local3.orderbook2.heartinClip._currentframe); _local3.orderbook3.heartinClip.gotoAndStop(_local3.orderbook3.heartinClip._currentframe); _local3.orderbook4.heartinClip.gotoAndStop(_local3.orderbook4.heartinClip._currentframe); _local3.curScoreClip.gotoAndStop(_local3.curScoreClip._currentframe); _local3.coin_Anim1.coin.coin_rotate.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate._currentframe); _local3.coin_Anim1.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate2._currentframe); _local3.coin_Anim1.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate3._currentframe); _local3.coin_Anim1.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate4._currentframe); _local3.coin_Anim2.coin.coin_rotate.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate._currentframe); _local3.coin_Anim2.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate2._currentframe); _local3.coin_Anim2.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate3._currentframe); _local3.coin_Anim2.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate4._currentframe); _local3.coin_Anim3.coin.coin_rotate.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate._currentframe); _local3.coin_Anim3.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate2._currentframe); _local3.coin_Anim3.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate3._currentframe); _local3.coin_Anim3.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate4._currentframe); _local3.coin_Anim4.coin.coin_rotate.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate._currentframe); _local3.coin_Anim4.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate2._currentframe); _local3.coin_Anim4.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate3._currentframe); _local3.coin_Anim4.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate4._currentframe); _local3.comboClip.combo.coin_rotate.gotoAndStop(_local3.comboClip.combo.coin_rotate._currentframe); if (_local3.scoreIndicateClip._visible) { _local3.scoreIndicateClip.gotoAndStop(_local3.scoreIndicateClip._currentframe); } if (_local3.expertScoreClip._visible) { _local3.expertScoreClip.gotoAndStop(_local3.expertScoreClip._currentframe); } _global.ringvisible = phone_mc.ring._visible; phone_mc.ring._visible = false; _local3.chocolateClip.mc.gotoAndStop(_local3.chocolateClip.mc._currentframe); _local3.specialChocolateClip.mc.gotoAndStop(_local3.specialChocolateClip.mc._currentframe); _local3.chocolateClip2.mc.gotoAndStop(_local3.chocolateClip2.mc._currentframe); _local3.coffeeClip.gotoAndStop(_local3.coffeeClip._currentframe); } function CallResume() { var _local4 = this; if (_global.soundstat == "onn") { _root.gameSound.start(); } _local4.bg.blink.gotoAndPlay(_local4.bg.blink._currentframe); _local4.customer1.customer.gotoAndPlay(_local4.customer1.customer._currentframe); _local4.customer2.customer.gotoAndPlay(_local4.customer2.customer._currentframe); _local4.customer3.customer.gotoAndPlay(_local4.customer3.customer._currentframe); _local4.special_choco_machines.machine1.blink.gotoAndPlay(_local4.special_choco_machines.machine1.blink._currentframe); _local4.choco_machines.single_machine.blink.gotoAndPlay(_local4.choco_machines.single_machine.blink._currentframe); _local4.salesGirl.coffeeicon.smoke.gotoAndPlay(_local4.salesGirl.coffeeicon.smoke._currentframe); _local4.customer4.customer.gotoAndPlay(_local4.customer4.customer._currentframe); _local4.coin_Anim1.coin.gotoAndPlay(_local4.coin_Anim1.coin._currentframe - 1); _local4.coin_Anim2.coin.gotoAndPlay(_local4.coin_Anim2.coin._currentframe - 1); _local4.coin_Anim3.coin.gotoAndPlay(_local4.coin_Anim3.coin._currentframe - 1); _local4.coin_Anim4.coin.gotoAndPlay(_local4.coin_Anim4.coin._currentframe - 1); _local4.comboClip.combo.gotoAndPlay(_local4.comboClip.combo._currentframe - 1); _local4.orderbook1.heartinClip.gotoAndPlay(_local4.orderbook1.heartinClip._currentframe - 1); _local4.orderbook2.heartinClip.gotoAndPlay(_local4.orderbook2.heartinClip._currentframe - 1); _local4.orderbook3.heartinClip.gotoAndPlay(_local4.orderbook3.heartinClip._currentframe - 1); _local4.orderbook4.heartinClip.gotoAndPlay(_local4.orderbook4.heartinClip._currentframe - 1); _local4.curScoreClip.gotoAndPlay(_local4.curScoreClip._currentframe); _local4.coin_Anim1.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate._currentframe); _local4.coin_Anim1.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate2._currentframe); _local4.coin_Anim1.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate3._currentframe); _local4.coin_Anim1.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate4._currentframe); _local4.coin_Anim2.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate._currentframe); _local4.coin_Anim2.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate2._currentframe); _local4.coin_Anim2.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate3._currentframe); _local4.coin_Anim2.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate4._currentframe); _local4.coin_Anim3.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate._currentframe); _local4.coin_Anim3.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate2._currentframe); _local4.coin_Anim3.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate3._currentframe); _local4.coin_Anim3.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate4._currentframe); _local4.coin_Anim4.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate._currentframe); _local4.coin_Anim4.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate2._currentframe); _local4.coin_Anim4.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate3._currentframe); _local4.coin_Anim4.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate4._currentframe); _local4.comboClip.combo.coin_rotate.gotoAndPlay(_local4.comboClip.combo.coin_rotate._currentframe); if (_local4.scoreIndicateClip._visible) { _local4.scoreIndicateClip.gotoAndPlay(_local4.scoreIndicateClip._currentframe - 1); } if (_local4.expertScoreClip._visible) { _local4.expertScoreClip.gotoAndPlay(_local4.expertScoreClip._currentframe - 1); } phone_mc.ring._visible = _global.ringvisible; _local4.chocolateClip.mc.gotoAndPlay(_local4.chocolateClip.mc._currentframe - 1); _local4.specialChocolateClip.mc.gotoAndPlay(_local4.specialChocolateClip.mc._currentframe - 1); _local4.chocolateClip2.mc.gotoAndPlay(_local4.chocolateClip2.mc._currentframe - 1); _local4.coffeeClip.gotoAndPlay(_local4.coffeeClip._currentframe - 1); } function ObjectsRollOut() { table1.onRollOut(); table2.onRollOut(); table3.onRollOut(); table4.onRollOut(); phone_mc.onRollOut(); choco_machines.onRollOut(); choco_machines2.onRollOut(); dusbin.onRollOut(); coffee_machine.onRollOut(); special_choco_machines.onRollOut(); } function Reset() { targetclip = "table1"; lobbyArr.length = 0; lobbyArr = new Array(1, 2, 3); currentDirection = "down"; targetDirection = ""; isPopup = false; popup_info = "welcome"; clearInterval(popup_interval); clearInterval(special_process_interval); clearInterval(process_interval); clearInterval(process_interval2); popup_interval = -1; isTargetReached = true; selectedTarget = ""; orderno = 0; score = 0; ismoveready = false; orderTaken = 0; customerCount = 0; machineStatus = "notready"; dusbinStatus = "notready"; girlwalkframe = 2; isFirstServeFinished = false; depthArr.length = 0; depthArr = new Array(-10313, -10315, -10317); chocolateTypeArr.length = 0; chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); customerEnterset = "firstset"; moneyCount = 0; clearInterval(gameInterval); gametimer = 0; isGameOver = false; combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt = 0; curtarget = ""; clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); clearInterval(orderbook4.heatInterval); clearInterval(deliveryinterval); isPaused = false; sequenceArr.length = 0; sequenceArr = new Array(); girlspeed = 12; Key.removeListener(keylistener); clearInterval(jumpInterval); clearInterval(phoneInterval); Key.removeListener(leve7Keyobj); keyTarget = undefined; phoneringcnt = 0; isphonecalled = false; } var targetclip = "table1"; var lobbyArr = new Array(1, 2, 3); var currentDirection = "down"; var isPopup = false; var popup_info = "welcome"; var popup_interval = -1; var process_interval = -1; var special_process_interval = -1; var isTargetReached = true; var selectedTarget = ""; var orderno = 0; var ismoveready = false; var orderTaken = 0; var customerCount = 0; var machineStatus = "notready"; var machine2Status = "notready"; var special_machineStatus = "notready"; var dusbinStatus = "notready"; var coffeeStatus = "notready"; var girlwalkframe = 2; var isFirstServeFinished = false; var score = 0; var depthArr = new Array(-10313, -10315, -10317); var chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); var customerEnterset = "firstset"; var moneyCount = 0; var gameInterval = -1; var gametimer = 0; var isGameOver = false; var combo_bookcnt = 0; var combo_ordercnt = 0; var combo_moneycnt = 0; var gamestartInterval = -1; var curtarget = ""; var customerEnterInterval = -1; var customerEnterInterval2 = -1; var reportInterval = -1; var isPaused = false; var coffee_process_interval = -1; var ringstat = "off"; var phone_status = "notready"; var machinespeed = 1; var machineshake = "off"; var specialmachineshake = "off"; var coffeemachineshake = "off"; var machine2shake = "off"; var specialmachinespeed = 1; var coffeemachinespeed = 1; var machine2speed = 1; var girlspeed = 12; var sequenceArr = new Array(); var customerEnterInterval3 = -1; var deliveryinterval = -1; var jumpInterval = -1; var tips = 0; var phoneInterval = -1; var process_interval2 = -1; var Re_customerEnterInterval = -1; var phoneringcnt = 0; var cusArr = new Array("younglady", "oldlady", "younglady"); var isphonecalled = false; var preparecnt = 0; var prepare2cnt = 0; var spl_preparecnt = 0; var coffee_preparecnt = 0; }
Symbol 1705 MovieClip [__Packages.Level8] Frame 0
class Level8 extends MovieClip { var dummy_highlight, deliveryboy, salesGirl, _parent, choco_machines, choco_machines2, special_choco_machines, coffee_machine, scoreIndicateClip, shopclosedClip, timerClip, chocolate_container, special_chocolate_container, coffeeClip, chocolateClip, chocolateClip2, popup_mc, selectClip, heartinClip, shopopenClip, reportMc, cancel_mc, infoClip, comboClip, dusbinContainer, curScoreClip, specialChocolateClip, expertScoreClip, table4, table3, table2, table1, coin_Anim4, coin_Anim3, coin_Anim2, coin_Anim1, dusbin, phone_mc, btn_pause, leve8Keyobj, keyTarget, pauseTarget, scoreClip, radian, targetDirection, preferred_chocolate1, preferred_chocolate2, customer4, orderbook4, attachMovie, getNextHighestDepth, customer1, orderbook1, customer2, orderbook2, customer3, orderbook3, selectedTable, re_entry, moveTarget; function Level8 () { super(); } function onLoad() { var owner = this; clearInterval(popup_interval); clearInterval(process_interval); Reset(); dummy_highlight._visible = false; deliveryboy._visible = false; salesGirl.coffeeicon._visible = false; _parent.pauseClip._visible = false; salesGirl.gotoAndStop(currentDirection); salesGirl.chocolateCount = 0; choco_machines.status = "empty"; choco_machines2.status = "empty"; special_choco_machines.status = "empty"; coffee_machine.status = "empty"; salesGirl.girlwalk.gotoAndStop(girlwalkframe); scoreIndicateClip._visible = false; shopclosedClip._visible = false; timerClip._visible = false; chocolate_container._visible = false; special_chocolate_container._visible = false; special_chocolate_container.mc.gotoAndStop(1); coffeeClip._visible = false; chocolateClip._visible = false; chocolateClip2._visible = false; popup_mc._visible = false; selectClip._visible = false; heartinClip._visible = false; shopopenClip._visible = false; reportMc._visible = false; cancel_mc._visible = false; infoClip._visible = false; comboClip._visible = false; dusbinContainer._visible = false; curScoreClip._visible = false; specialChocolateClip._visible = false; expertScoreClip._visible = false; table3._visible = (table4._visible = false); table2._visible = false; table1._visible = false; coin_Anim3._visible = (coin_Anim4._visible = false); coin_Anim2._visible = false; coin_Anim1._visible = false; table1.point = 1; table2.point = 2; table3.point = 3; table4.point = 4; choco_machines._visible = true; choco_machines.gotoAndStop(2); dusbin._visible = true; dusbin.gotoAndStop(2); special_choco_machines._visible = true; special_choco_machines.gotoAndStop(1); special_choco_machines.machine1.gotoAndStop(2); coffee_machine._visible = true; coffee_machine.gotoAndStop(2); choco_machines2._visible = true; choco_machines2.gotoAndStop(2); phone_mc._visible = true; phone_mc.gotoAndStop(2); phone_mc.ring.gotoAndStop(1); owner.combo_bookcnt = 0; owner.combo_ordercnt = 0; owner.combo_moneycnt = 0; owner.btn_pause._visible = true; owner.popupDisable(); var randomno = owner.getRandom(0, 2); owner.customerEnterInterval = setInterval(owner.CallCustomer, 1500, owner, owner.lobbyArr[randomno], "oldlady"); owner.lobbyArr.splice(randomno, 1); var randomno = owner.getRandom(0, owner.lobbyArr.length - 1); owner.customerEnterInterval2 = setInterval(owner.CallCustomer2, 2500, owner, owner.lobbyArr[randomno], "younglady"); owner.lobbyArr.splice(randomno, 1); owner.isPopup = false; owner.popup_info = "level2_start"; owner.bg.gotoAndStop(2); owner.shopopenClip._visible = true; owner.shopopenClip.gotoAndPlay(1); owner.ismoveready = true; owner.machineStatus = "ready"; owner.machine2Status = "ready"; owner.special_machineStatus = "ready"; owner.dusbinStatus = "ready"; owner.coffeeStatus = "ready"; owner.timerClip._visible = true; clearInterval(owner.gameInterval); owner.gametimer = 0; owner.gameInterval = setInterval(owner.GameTimeLimit, 660, owner); owner.Re_customerEnterInterval = setInterval(owner.CallNewCustomer, 3500, owner); owner.phone_mc.gotoAndStop(2); owner.phone_mc.ring.gotoAndStop(1); btn_pause.onRelease = function () { if (this._visible && (owner._parent.pauseClip._visible == false)) { owner.pauseTarget = "btn_continue"; owner.isPaused = true; owner.isPopup = true; this._visible = false; owner._parent.pauseClip._visible = true; owner._parent.pauseClip.gotoAndPlay(2); owner.CallPause(); } }; leve8Keyobj = new Object(); Key.addListener(leve8Keyobj); leve8Keyobj.onKeyUp = function () { if (Key.getCode() == 13) { if ((!owner.isPaused) && (!owner.isGameOver)) { owner.StoreInSequence(); } } }; leve8Keyobj.onKeyDown = function () { if (Key.getCode() == 37) { if (!owner.isPaused) { owner.LeftNavigation(); } } else if (Key.getCode() == 39) { if (!owner.isPaused) { owner.RightNavigation(); } } else if (Key.getCode() == 38) { if (!owner.isPaused) { owner.UpNavigation(); } else { owner.pauseUpNavigation(); } } else if (Key.getCode() == 40) { if (!owner.isPaused) { owner.DownNavigation(); } else { owner.pauseDownNavigation(); } } else if (Key.getCode() == 13) { if (owner.popup_mc._visible) { owner.popup_mc.btn_ok.onRelease(); } else if (owner.reportMc._visible) { if (owner.reportMc._currentframe == 1) { owner.reportMc.mc.btn_continue.onRelease(); } else { owner.reportMc.mc.btn_retry.onRelease(); } } else if (!owner.isPaused) { owner.EnterFunction(); } else { owner.PauseEnterFunction(); } } else if (Key.getAscii() == 27) { if (!owner.isPaused) { owner.btn_pause.onRelease(); } else if (owner.isPaused) { owner._parent.pauseClip.btn_continue.onRelease(); } } }; phone_mc.onRollOver = function () { if (((!owner.isPaused) && (owner.table4._visible == true)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); if (owner.ringstat == "off") { this.ring.gotoAndStop(1); eval ("owner.orderbook" + this.point).highlight.gotoAndStop(2); } else { this.gotoAndStop(3); } owner.moveTarget = "phone_mc"; } }; phone_mc.onRollOut = (phone_mc.onReleaseOutside = function () { this.gotoAndStop(2); if (owner.ringstat == "off") { this.ring.gotoAndStop(1); eval ("owner.orderbook" + this.point).highlight.gotoAndStop(1); } }); table1.onRollOver = (table2.onRollOver = (table3.onRollOver = (table4.onRollOver = function () { if ((!owner.isPaused) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = this._name; owner.moveTarget = this._name; eval ("this.orderbook" + this.point).highlight.gotoAndStop(2); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(2); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(2); } } }))); table1.onRollOut = (table2.onRollOut = (table3.onRollOut = (table4.onRollOut = function () { eval ("this.orderbook" + this.point).highlight.gotoAndStop(1); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(1); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(1); } }))); choco_machines.onRollOver = function () { if (((owner.machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "choco_machines"; owner.moveTarget = "choco_machines"; this.gotoAndStop(3); owner.dummy_highlight._visible = true; } }; choco_machines.onRollOut = (choco_machines.onReleaseOutside = function () { this.gotoAndStop(2); owner.dummy_highlight._visible = false; }); choco_machines2.onRollOver = function () { if (((owner.machine2Status == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "choco_machines2"; owner.moveTarget = "choco_machines2"; this.gotoAndStop(3); } }; choco_machines2.onRollOut = (choco_machines2.onReleaseOutside = function () { this.gotoAndStop(2); }); dusbin.onRollOver = function () { if ((owner.dusbinStatus == "ready") && (!owner.isPaused)) { owner.ObjectsRollOut(); owner.keyTarget = "dusbin"; owner.moveTarget = "dusbin"; this.gotoAndStop(3); } }; dusbin.onRollOut = (dusbin.onReleaseOutside = function () { this.gotoAndStop(2); }); coffee_machine.onRollOver = function () { if (((owner.coffeeStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "coffee_machine"; owner.moveTarget = "coffee_machine"; this.gotoAndStop(3); } }; coffee_machine.onRollOut = (coffee_machine.onReleaseOutside = function () { this.gotoAndStop(2); }); special_choco_machines.onRollOver = function () { if (((owner.special_machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "special_choco_machines"; owner.moveTarget = "special_choco_machines"; this.machine1.gotoAndStop(3); } }; special_choco_machines.onRollOut = (special_choco_machines.onReleaseOutside = function () { this.machine1.gotoAndStop(2); }); coffee_machine.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.coffee_machine); } }; coffee_machine.onPress = function () { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.coffeeStatus == "ready")) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "coffee_machine"; owner.calculateAngle(owner.coffee_indicate); this.pointer._visible = true; } }; choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.choco_machines); } }; choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); this.pointer._visible = true; } }; choco_machines2.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.choco_machines2); } }; choco_machines2.onPress = function () { if (((owner.isTargetReached && (owner.machine2Status == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines2"; owner.calculateAngle(owner.chomac_indicate2); this.pointer._visible = true; } }; special_choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.special_choco_machines); } }; special_choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); this.pointer._visible = true; } }; dusbin.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.dusbin); } }; dusbin.onPress = function () { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); this.pointer._visible = true; } }; table1.onRelease = (table2.onRelease = (table3.onRelease = (table4.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(this); } }))); table1.onPress = (table2.onPress = (table3.onPress = (table4.onPress = function () { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = this._name; if (owner.selectedTarget == "table1") { owner.calculateAngle(this); owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.calculateAngle(this); owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.calculateAngle(this); owner.selectedTable = 3; } else if (owner.selectedTarget == "table4") { owner.calculateAngle(owner.phone_indicate); owner.selectedTable = 4; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } }))); phone_mc.onRelease = function () { if ((((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) && (owner.table4._visible == true)) { owner.sequenceArr.push(owner.phone_mc); } }; phone_mc.onPress = function () { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.table4._visible == true)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "table4"; owner.calculateAngle(owner.phone_indicate); owner.selectedTable = 4; } }; } function LeftNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_box") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_triangle.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOut(); eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOver(); } } else if (keyTarget == "coffee_machine") { coffee_machine.onRollOut(); if (table3._visible) { table3.onRollOver(); } else if (table2._visible) { table2.onRollOver(); } else if (table1._visible) { table1.onRollOver(); } else if (table4._visible) { table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); coffee_machine.onRollOver(); } else if (keyTarget == "choco_machines2") { choco_machines2.onRollOut(); choco_machines.onRollOver(); } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); choco_machines2.onRollOver(); } } function RightNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_box.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOut(); eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOver(); } } else if (keyTarget == undefined) { coffee_machine.onRollOver(); } else if (keyTarget == "coffee_machine") { coffee_machine.onRollOut(); choco_machines.onRollOver(); } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); choco_machines2.onRollOver(); } else if (keyTarget == "choco_machines2") { choco_machines2.onRollOut(); special_choco_machines.onRollOver(); } else if ((((keyTarget == "table1") || (keyTarget == "table2")) || (keyTarget == "table3")) || (keyTarget == "table4")) { eval ("this." + keyTarget).onRollOut(); phone_mc.onRollOut(); coffee_machine.onRollOver(); } } function UpNavigation() { if (keyTarget == "table4") { if (table1._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOver(); } else if (table2._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table1") { if (table2._visible) { table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table2") { if (table3._visible) { table2.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "dusbin") { dusbin.onRollOut(); special_choco_machines.onRollOver(); } } function DownNavigation() { if (keyTarget == "table3") { if (table2._visible) { table3.onRollOut(); table2.onRollOver(); } else if (table1._visible) { table3.onRollOut(); table1.onRollOver(); } else if (table4._visible) { table3.onRollOut(); table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "table2") { if (table1._visible) { table2.onRollOut(); table1.onRollOver(); } else if (table4._visible) { table2.onRollOut(); table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "table1") { if (table4._visible) { table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); dusbin.onRollOver(); } } function EnterFunction() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_triangle.onRelease(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_round.onRelease(); } else if (keyTarget == "type_box") { chocolate_container.mc.type_box.onRelease(); } } else if (special_chocolate_container._visible) { eval ("this.special_chocolate_container.mc." + keyTarget).onRelease(); } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRelease(); } else if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRelease(); } } else { eval ("this." + keyTarget).onPress(); } } function PauseEnterFunction() { eval ("this._parent.pauseClip." + pauseTarget).onRelease(); } function pauseUpNavigation() { if (pauseTarget == "btn_premium") { _parent.pauseClip.btn_premium.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_continue.onRollOver(); } } function pauseDownNavigation() { if (pauseTarget == "pause") { _parent.pauseClip.btn_continue.onRollOver(); } else if (pauseTarget == "btn_continue") { _parent.pauseClip.btn_continue.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_premium.onRollOver(); } } function updateScore() { scoreClip.score_txt.text = score; scoreClip.loading.gotoAndStop(score); if ((score >= 350) && (scoreClip.target._currentframe == 1)) { scoreClip.target.gotoAndPlay(1); scoreIndicateClip._visible = true; scoreIndicateClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.target_score_Sound.start(); } } if ((score >= 670) && (scoreClip.expert._currentframe == 1)) { scoreClip.expert.gotoAndPlay(1); expertScoreClip._visible = true; expertScoreClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.expert_score_Sound.start(); } } } function onEnterFrame() { var owner = this; if (((!isPopup) && (!isTargetReached)) && (!owner.isPaused)) { shopperMovement(); } if (machineshake == "onn") { machinespeed = -machinespeed; choco_machines._x = choco_machines._x + ((2 * machinespeed) / 2); choco_machines._y = choco_machines._y + ((2 * machinespeed) / 2); } if (specialmachineshake == "onn") { specialmachinespeed = -specialmachinespeed; special_choco_machines._x = special_choco_machines._x + ((1 * specialmachinespeed) / 2); special_choco_machines._y = special_choco_machines._y + ((1 * specialmachinespeed) / 2); } else { special_choco_machines._x = 631; special_choco_machines._y = 101; } if (coffeemachineshake == "onn") { coffeemachinespeed = -coffeemachinespeed; coffee_machine._x = coffee_machine._x + ((1 * coffeemachinespeed) / 2); coffee_machine._y = coffee_machine._y + ((1 * coffeemachinespeed) / 2); } if (machine2shake == "onn") { machine2speed = -machine2speed; choco_machines2._x = choco_machines2._x + ((2 * machine2speed) / 2); choco_machines2._y = choco_machines2._y + ((2 * machine2speed) / 2); } _parent.pauseClip.btn_continue.onRollOver = (_parent.pauseClip.btn_restart.onRollOver = (_parent.pauseClip.btn_mainmenu.onRollOver = (_parent.pauseClip.btn_premium.onRollOver = function () { owner._parent.pauseClip.btn_continue.onRollOut(); owner._parent.pauseClip.btn_restart.onRollOut(); owner._parent.pauseClip.btn_mainmenu.onRollOut(); owner._parent.pauseClip.btn_premium.onRollOut(); owner.pauseTarget = this._name; this.gotoAndStop(2); }))); _parent.pauseClip.btn_continue.onRollOut = (_parent.pauseClip.btn_restart.onRollOut = (_parent.pauseClip.btn_mainmenu.onRollOut = (_parent.pauseClip.btn_premium.onRollOut = function () { this.gotoAndStop(1); }))); _parent.pauseClip.btn_continue.onRelease = function () { owner.isPaused = false; owner.isPopup = false; owner.btn_pause._visible = true; owner._parent.pauseClip._visible = false; owner.CallResume(); }; _parent.pauseClip.btn_restart.onRelease = function () { owner.Reset(); owner._parent.play(); }; _parent.pauseClip.btn_mainmenu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; _parent.pauseClip.btn_premium.onRelease = function () { this.getURL(_root.urlname, "_blank"); }; popup_mc.btn_ok.onRollOver = function () { this.gotoAndStop(2); }; popup_mc.btn_ok.onRollOut = (popup_mc.btn_ok.onReleaseOutside = function () { this.gotoAndStop(1); }); chocolate_container.mc.type_triangle.onRollOver = (chocolate_container.mc.type_round.onRollOver = (chocolate_container.mc.type_box.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.chocolate_container.mc.type_triangle.gotoAndStop(1); owner.chocolate_container.mc.type_round.gotoAndStop(1); owner.chocolate_container.mc.type_box.gotoAndStop(1); this.gotoAndStop(2); } })); chocolate_container.mc.type_triangle.onRelease = (chocolate_container.mc.type_round.onRelease = (chocolate_container.mc.type_box.onRelease = function () { if (!owner.isPaused) { if (owner.selectedTarget == "choco_machines") { owner.chocolateClip._visible = true; owner.chocolateClip.gotoAndStop(this._name); owner.chocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_box_chocolate = this._name; if (owner.choco_machines.status == "empty") { owner.choco_machines.status = "prepared"; } owner.machineshake = "onn"; owner.machineStatus = "ready"; owner.keyTarget = "choco_machines"; owner.preparecnt = 0; owner.process_interval = setInterval(owner.IdleProcess, 100, owner); } else if (owner.selectedTarget == "choco_machines2") { owner.chocolateClip2._visible = true; owner.chocolateClip2.gotoAndStop(this._name); owner.chocolateClip2.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_box2_chocolate = this._name; if (owner.choco_machines2.status == "empty") { owner.choco_machines2.status = "prepared"; } owner.machine2shake = "onn"; owner.machine2Status = "ready"; owner.keyTarget = "choco_machines2"; owner.prepare2cnt = 0; owner.process_interval2 = setInterval(owner.IdleProcess2, 100, owner); } owner.chocolate_container.gotoAndStop(2); owner.isPopup = false; owner.dusbinStatus = "ready"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } })); chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.machineStatus = "ready"; owner.machine2Status = "ready"; owner.chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; if (owner.selectedTarget == "choco_machines") { owner.keyTarget = "choco_machines"; } else { owner.keyTarget = "choco_machines2"; } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; special_chocolate_container.mc.type_rabbit.onRollOver = (special_chocolate_container.mc.type_fish.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.special_chocolate_container.mc.type_rabbit.gotoAndStop(1); owner.special_chocolate_container.mc.type_fish.gotoAndStop(1); this.gotoAndStop(2); } }); special_chocolate_container.mc.type_rabbit.onRelease = (special_chocolate_container.mc.type_fish.onRelease = function () { if (!owner.isPaused) { owner.infoClip._visible = false; owner.specialChocolateClip._visible = true; owner.specialChocolateClip.gotoAndStop(this._name); owner.specialChocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_special_chocolate = this._name; if (owner.special_choco_machines.status == "empty") { owner.special_choco_machines.status = "prepared"; } owner.spl_preparecnt = 0; owner.special_process_interval = setInterval(owner.SpecialIdleProcess, 100, owner); owner.special_chocolate_container.gotoAndStop(2); owner.isPopup = false; owner.dusbinStatus = "ready"; owner.special_machineStatus = "ready"; owner.specialmachineshake = "onn"; owner.keyTarget = "special_choco_machines"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }); special_chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.special_machineStatus = "ready"; owner.special_chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; owner.keyTarget = "special_choco_machines"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; dusbinContainer.mc.chocobox1.type_triangle.onRollOver = (dusbinContainer.mc.chocobox1.type_round.onRollOver = (dusbinContainer.mc.chocobox1.type_box.onRollOver = (dusbinContainer.mc.chocobox2.type_triangle.onRollOver = (dusbinContainer.mc.chocobox2.type_round.onRollOver = (dusbinContainer.mc.chocobox2.type_box.onRollOver = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox1.type_fish.onRollOver = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox2.type_fish.onRollOver = function () { owner.keyTarget = this._name; this.gotoAndStop(2); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRollOut = (dusbinContainer.mc.chocobox1.type_round.onRollOut = (dusbinContainer.mc.chocobox1.type_box.onRollOut = (dusbinContainer.mc.chocobox2.type_triangle.onRollOut = (dusbinContainer.mc.chocobox2.type_round.onRollOut = (dusbinContainer.mc.chocobox2.type_box.onRollOut = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox1.type_fish.onRollOut = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox2.type_fish.onRollOut = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_fish.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_fish.onReleaseOutside = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRelease = (dusbinContainer.mc.chocobox1.type_round.onRelease = (dusbinContainer.mc.chocobox1.type_box.onRelease = (dusbinContainer.mc.chocobox2.type_triangle.onRelease = (dusbinContainer.mc.chocobox2.type_round.onRelease = (dusbinContainer.mc.chocobox2.type_box.onRelease = (dusbinContainer.mc.chocobox1.type_rabbit.onRelease = (dusbinContainer.mc.chocobox1.type_fish.onRelease = (dusbinContainer.mc.chocobox2.type_rabbit.onRelease = (dusbinContainer.mc.chocobox2.type_fish.onRelease = function () { if (!owner.isPaused) { if (this._name == owner.preferred_chocolate1) { owner.preferred_chocolate1 = owner.preferred_chocolate2; owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } else { owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }))))))))); dusbinContainer.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; reportMc.mc.btn_continue.onRelease = function () { owner.Reset(); _global.calenderfrom = "game"; owner._parent.gotoAndStop("calender"); }; reportMc.mc.btn_menu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; reportMc.mc.btn_retry.onRelease = function () { owner.Reset(); owner._parent.play(); }; popup_mc.btn_ok.onRelease = function () { if (owner.popup_info == "welcome") { owner.btn_pause._visible = true; owner.popupDisable(); var _local1 = owner.getRandom(0, 2); owner.customerEnterInterval = setInterval(owner.CallCustomer, 2000, owner, owner.lobbyArr[_local1], "oldlady"); owner.isPopup = false; owner.popup_info = "level2_start"; owner.bg.gotoAndStop(2); owner.shopopenClip._visible = true; owner.shopopenClip.gotoAndPlay(1); owner.ismoveready = true; owner.machineStatus = "ready"; owner.machine2Status = "ready"; owner.special_machineStatus = "ready"; owner.dusbinStatus = "ready"; owner.coffeeStatus = "ready"; owner.timerClip._visible = true; clearInterval(owner.gameInterval); owner.gametimer = 0; owner.gameInterval = setInterval(owner.GameTimeLimit, 1000, owner); owner.phone_mc.gotoAndStop(2); owner.phone_mc.ring.gotoAndStop(1); } else if (owner.popup_info == "order") { owner.popupDisable(); owner.isPopup = false; owner.popup_info = ""; owner.selectClip._visible = true; owner.selectClip._x = owner.choco_machines._x; owner.selectClip._y = owner.choco_machines._y - 80; } else if (owner.popup_info == "mismatch") { owner.popupDisable(); owner.isPopup = false; } }; } function shopperMovement() { var _local3 = (salesGirl._x + salesGirl.pointer._x) - targetclip._x; var _local2 = (salesGirl._y + salesGirl.pointer._y) - targetclip._y; var _local5 = Math.sqrt((_local2 * _local2) + (_local3 * _local3)); var _local4 = 10; if (_local5 >= _local4) { salesGirl._x = salesGirl._x + (Math.cos(radian) * girlspeed); salesGirl._y = salesGirl._y + (Math.sin(radian) * girlspeed); } else if (!isTargetReached) { isTargetReached = true; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); Manipulate(); updateScore(); } } function GameStart(_arg2) { clearInterval(_arg2.gamestartInterval); _arg2.isPopup = true; _global.popupText = "Select the PHONE to answer a call. Take the order of the client and prepare it. A delivery boy will pick it up later."; _arg2.ShowPopup(_arg2); } function calculateAngle(mc) { if (!isPopup) { targetclip = mc; var x_diff = (eval (mc)._x - (salesGirl._x + salesGirl.pointer._x)); var y_diff = (eval (mc)._y - (salesGirl._y + salesGirl.pointer._y)); radian = Math.atan2(y_diff, x_diff); if (Math.abs(x_diff) > Math.abs(y_diff)) { if (x_diff > 0) { targetDirection = "right"; } else { targetDirection = "left"; } } else if (y_diff > 0) { targetDirection = "down"; } else { targetDirection = "up"; } if (curtarget != selectedTarget) { curtarget = selectedTarget; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe - 1); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); } } } function ShowPopup(_arg1) { clearInterval(_arg1.popup_interval); _arg1.isPopup = true; _arg1.popup_mc._visible = true; _arg1.popup_mc.swapDepths(_arg1.getNextHighestDepth()); _arg1.popup_mc.gotoAndPlay(1); } function popupDisable() { popup_mc.gotoAndStop(1); popup_mc._visible = false; } function CallNewCustomer(_arg2) { if (!_arg2.isGameOver) { trace((("new cus len=" + _arg2.lobbyArr.length) + ", ") + _arg2.lobbyArr); if (_arg2.table4._visible) { var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == 1) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } if ((_arg2.customerCount != 0) && (_arg2.moneyCount != 0)) { trace("call new cus"); _arg2.CallNextCustomerSet(); } } else { clearInterval(_arg2.Re_customerEnterInterval); } } function CallCustomer(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function CallCustomer2(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval2); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function CallCustomer3(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval3); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function Re_CallCustomer(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.Re_customerEnterInterval); if (!_arg1.isGameOver) { trace((("interval next customer=" + _arg3) + ", ") + _arg2); _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function customerEnter(_arg5, _arg4) { if (!isGameOver) { if (_arg4 == "phoneorder") { isphonecalled = true; ringstat = "onn"; phone_mc._visible = true; table4._visible = true; customer4 = phone_mc; phone_mc.ring._visible = true; phone_mc.ring.gotoAndPlay(2); orderbook4 = attachMovie("orderbook", "orderbook4", getNextHighestDepth(), {_x:170, _y:400}); orderbook4._visible = false; orderbook4.type = "phone"; customer4.type = _arg4; orderbook4.heatcnt = 0; orderbook4.heatInterval = setInterval(HeatFunction, 500, orderbook4, this, 4); phoneringcnt = 0; phoneInterval = setInterval(HidePhoneOrder, 1000, this); if (_global.soundstat == "onn") { _root.phonering_Sound.start(); } } else if (_arg5 == 1) { table1._visible = true; customer1 = attachMovie(_arg4, "customer1", depthArr[_arg5 - 1], {_x:115, _y:356}); orderbook1 = attachMovie("orderbook", "orderbook1", getNextHighestDepth(), {_x:170, _y:374}); orderbook1.type = "book"; customer1.type = _arg4; orderbook1.heatcnt = 0; if (_arg4 == "oldlady") { orderbook1.heatInterval = setInterval(HeatFunction, 500, orderbook1, this, 1); } else if (_arg4 == "younglady") { orderbook1.heatInterval = setInterval(HeatFunction, 250, orderbook1, this, 1); } } else if (_arg5 == 2) { table2._visible = true; customer2 = attachMovie(_arg4, "customer2", depthArr[_arg5 - 1], {_x:119, _y:235}); orderbook2 = attachMovie("orderbook", "orderbook2", getNextHighestDepth(), {_x:177, _y:278}); orderbook2.type = "book"; customer2.type = _arg4; orderbook2.heatcnt = 0; if (_arg4 == "oldlady") { orderbook2.heatInterval = setInterval(HeatFunction, 500, orderbook2, this, 2); } else if (_arg4 == "younglady") { orderbook2.heatInterval = setInterval(HeatFunction, 250, orderbook2, this, 2); } } else if (_arg5 == 3) { table3._visible = true; customer3 = attachMovie(_arg4, "customer3", depthArr[_arg5 - 1], {_x:127, _y:140}); orderbook3 = attachMovie("orderbook", "orderbook3", getNextHighestDepth(), {_x:184, _y:185}); orderbook3.type = "book"; customer3.type = _arg4; orderbook3.heatcnt = 0; if (_arg4 == "oldlady") { orderbook3.heatInterval = setInterval(HeatFunction, 500, orderbook3, this, 3); } else if (_arg4 == "younglady") { orderbook3.heatInterval = setInterval(HeatFunction, 250, orderbook3, this, 3); } } customerCount++; moneyCount++; orderTaken++; salesGirl.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); chocolate_container.swapDepths(getNextHighestDepth()); special_chocolate_container.swapDepths(getNextHighestDepth()); dusbinContainer.swapDepths(getNextHighestDepth()); comboClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); } } function HidePhoneOrder(owner) { if (!owner.isPaused) { owner.phoneringcnt++; if (owner.phoneringcnt >= 20) { clearInterval(owner.phoneInterval); clearInterval(owner.orderbook4.heatInterval); owner.moneyCount--; owner.customerCount--; owner.orderbook4._visible = false; owner.table4._visible = false; owner.orderbook4.type = "empty"; owner.ringstat = "off"; owner.phone_mc.ring.gotoAndStop(1); _root.phonering_Sound.stop(); if ((owner.customerCount == 0) && (owner.moneyCount == 0)) { if (!owner.isGameOver) { owner.CallNextCustomerSet(); } else { owner.callResult(); } } } } } function Manipulate() { var owner = this; if (selectedTarget == "coffee_machine") { coffee_machine.pointer._visible = false; if (coffee_machine.status == "empty") { coffee_machine.status = "prepared"; coffeeClip._visible = true; coffeeClip.gotoAndPlay(2); owner.isTargetReached = true; owner.coffee_preparecnt = 0; owner.coffee_process_interval = setInterval(owner.CoffeeIdleProcess, 100, owner); owner.isPopup = false; owner.coffeemachineshake = "onn"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (coffee_machine.status == "coffeeReady") { coffeeClip._visible = false; coffee_machine.status = "empty"; salesGirl.coffeeicon._visible = false; girlspeed = 12; orderTaken = 0; salesGirl.gotoAndStop(2); if (salesGirl.chocolateCount == 0) { girlwalkframe = 9; } else if (salesGirl.chocolateCount == 1) { girlwalkframe = 10; } else if (salesGirl.chocolateCount == 2) { girlwalkframe = 11; } salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.jumpLady.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.jumpLady.chocobox2.gotoAndStop(preferred_chocolate2); owner.machineStatus = "notready"; owner.special_machineStatus = "notready"; owner.dusbinStatus = "notready"; owner.coffeeStatus = "notready"; owner.isPopup = true; jumpInterval = setInterval(JumpFinished, 1100, this); } } else if (selectedTarget == "choco_machines") { choco_machines.pointer._visible = false; if (choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_round"; } } else if (choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_box_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_box_chocolate; } owner.salesGirl.chocolateCount++; chocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { if (orderbook1.book_mc._currentframe == 74) { orderbook1.green_highlight._visible = true; } } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { if (orderbook2.book_mc._currentframe == 74) { orderbook2.green_highlight._visible = true; } } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { if (orderbook3.book_mc._currentframe == 74) { orderbook3.green_highlight._visible = true; } } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { if (orderbook4.book_mc._currentframe == 74) { orderbook4.green_highlight._visible = true; } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "choco_machines2") { choco_machines2.pointer._visible = false; if (choco_machines2.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machine2Status = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_round"; } } else if (choco_machines2.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_box2_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_box2_chocolate; } owner.salesGirl.chocolateCount++; chocolateClip2._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); choco_machines2.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "special_choco_machines") { special_choco_machines.pointer._visible = false; if (special_choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { special_chocolate_container._visible = true; special_chocolate_container.gotoAndStop(1); special_chocolate_container.mc.gotoAndPlay(1); special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_rabbit"; } } else if (special_choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_special_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_special_chocolate; } owner.salesGirl.chocolateCount++; specialChocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); special_choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "dusbin") { dusbin.pointer._visible = false; if (salesGirl.chocolateCount == 1) { salesGirl.chocolateCount--; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); preferred_chocolate1 = null; preferred_chocolate2 = null; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (salesGirl.chocolateCount >= 2) { dusbinStatus = "notready"; isPopup = true; _global.preferred_chocolate1 = preferred_chocolate1; _global.preferred_chocolate2 = preferred_chocolate2; keyTarget = _global.preferred_chocolate1; dusbinContainer._visible = true; dusbinContainer.gotoAndStop(1); dusbinContainer.mc.gotoAndPlay(1); } } else if ((((selectedTarget == "table1") || (selectedTarget == "table2")) || (selectedTarget == "table3")) || (selectedTarget == "table4")) { eval ("this.orderbook" + selectedTable).pointer._visible = false; if (eval ("this.orderbook" + selectedTable).type == "phone") { isphonecalled = true; _root.phonering_Sound.stop(); clearInterval(phoneInterval); combo_bookcnt++; combo_ordercnt = 0; combo_moneycnt = 0; ringstat = "off"; phone_mc.ring.gotoAndStop(1); eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; var randomno = owner.getRandom(0, 4); eval ("this.orderbook" + selectedTable)._visible = true; eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.customer" + selectedTable).gotoAndStop(2); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); var heatcntchange = int(eval ("this.orderbook" + selectedTable).heatcnt / 4); if (heatcntchange > 1) { eval ("this.orderbook" + selectedTable).heatcnt = heatcntchange; } else { eval ("this.orderbook" + selectedTable).heatcnt = 1; } CheckForBookCombo(); } else if (eval ("this.orderbook" + selectedTable).type == "book") { combo_bookcnt++; combo_ordercnt = 0; combo_moneycnt = 0; eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; var randomno = owner.getRandom(0, 4); eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.customer" + selectedTable).gotoAndStop(3); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); var heatcntchange = int(eval ("this.orderbook" + selectedTable).heatcnt / 4); if (heatcntchange > 1) { eval ("this.orderbook" + selectedTable).heatcnt = heatcntchange; } else { eval ("this.orderbook" + selectedTable).heatcnt = 1; } CheckForBookCombo(); } else if (eval ("this.orderbook" + selectedTable).type == "chocolateOrder") { if ((salesGirl.chocolateCount >= 1) && (eval ("this.orderbook" + selectedTable).book_mc._currentframe >= 74)) { combo_bookcnt = 0; combo_moneycnt = 0; if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate1) { combo_ordercnt++; preferred_chocolate1 = preferred_chocolate2; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); if (selectedTarget == "table4") { orderbook4.type = "none"; orderbook4.temp_box._visible = false; orderbook4.green_highlight._visible = false; orderbook4.highlight._visible = false; orderbook4.timelimit._visible = false; phone_mc.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); deliveryboy._visible = true; deliveryboy.gotoAndPlay(2); clearInterval(deliveryinterval); deliveryinterval = setInterval(callDeliveryBoy, 1500, this); } else { eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { if (table4._visible) { var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; if (salesGirl.chocolateCount == 1) { preferred_chocolate1 = null; } salesGirl.chocolateCount--; owner.setGreenHighLight(); } else if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate2) { combo_ordercnt++; salesGirl.chocolateCount--; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); if (selectedTarget == "table4") { orderbook4.type = "none"; orderbook4.temp_box._visible = false; orderbook4.green_highlight._visible = false; orderbook4.highlight._visible = false; orderbook4.timelimit._visible = false; phone_mc.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); deliveryboy._visible = true; deliveryboy.gotoAndPlay(2); clearInterval(deliveryinterval); deliveryinterval = setInterval(callDeliveryBoy, 1500, this); } else { eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { if (table4._visible) { var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; owner.setGreenHighLight(); } } } else if (eval ("this.orderbook" + selectedTable).type == "money") { combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt++; moneyCount--; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(2); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable)._visible = false; eval ("this.table" + selectedTable)._visible = false; eval ("this.orderbook" + selectedTable).type = "empty"; if (owner.selectedTarget != "table4") { eval ("this.customer" + selectedTable)._visible = false; } if (orderTaken >= 6) { salesGirl.coffeeicon._visible = true; girlspeed = 6; } if (selectedTable != 4) { lobbyArr.push(selectedTable); } else if (table1._visible == false) { lobbyArr.push(1); } CheckForMoneyCombo(); if ((customerCount == 0) && (moneyCount == 0)) { if (!isGameOver) { customerCount = 0; moneyCount = 0; owner.table2._visible = (owner.table3._visible = false); owner.table1._visible = false; CallNextCustomerSet(); } else { callResult(); } } else if (isGameOver) { if ((((table1._visible == false) && (table2._visible == false)) && (table3._visible == false)) && (table4._visible == false)) { callResult(); } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } function CallNextCustomerSet() { var _local2 = this; if (lobbyArr.length >= 1) { if (lobbyArr.length == 1) { if (((!isphonecalled) && (table4._visible == false)) && (table1._visible == false)) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], "phoneorder"); } else { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } else if (lobbyArr.length == 2) { re_entry = "onn"; if (((!isphonecalled) && (table4._visible == false)) && (table1._visible == false)) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); if (_local2.lobbyArr[0] == 1) { _local3 = 1; } else if (_local2.lobbyArr[1] == 1) { _local3 = 0; } clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], "phoneorder"); } else { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 100, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } else if (lobbyArr.length == 3) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval3); _local2.customerEnterInterval3 = setInterval(_local2.CallCustomer3, 4000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } } function callDeliveryBoy(owner) { clearInterval(owner.deliveryinterval); owner.orderbook4.type = "money"; owner.coin_Anim4._visible = true; owner.coin_Anim4.gotoAndStop(1); owner.coin_Anim4.coin.gotoAndPlay(1); owner.orderbook4.gotoAndStop(3); if ((owner.orderbook4.heatcnt > 60) && (owner.orderbook4.heatcnt <= 100)) { owner.orderbook4.money_mc.gotoAndStop(2); owner.orderbook4.highlight._visible = false; } else if (owner.orderbook4.heatcnt > 100) { owner.orderbook4.money_mc.gotoAndStop(3); owner.orderbook4.highlight._visible = false; owner.orderbook4.highlight_small._visible = false; } if (!owner.isGameOver) { if (owner.table4._visible) { trace("table4visile"); var i = 0; while (i < owner.lobbyArr.length) { if (owner.lobbyArr[i] == 1) { owner.lobbyArr.splice(i, 1); } i++; } } owner.CallNextCustomerSet(); } } function JumpFinished(_arg1) { clearInterval(_arg1.jumpInterval); _arg1.machineStatus = "ready"; _arg1.special_machineStatus = "ready"; _arg1.dusbinStatus = "ready"; _arg1.coffeeStatus = "ready"; _arg1.isPopup = false; _arg1.sequenceArr.splice(0, 1); if (_arg1.sequenceArr.length >= 1) { _arg1.CallSequence(); } } function setGreenHighLight() { if (orderbook1.book_mc._currentframe >= 74) { if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } else { orderbook1.green_highlight._visible = false; } } if (orderbook2.book_mc._currentframe >= 74) { if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } else { orderbook2.green_highlight._visible = false; } } if (orderbook3.book_mc._currentframe >= 74) { if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } else { orderbook3.green_highlight._visible = false; } } if (orderbook4.book_mc._currentframe >= 74) { if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } else { orderbook4.green_highlight._visible = false; } } } function callResult() { clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); clearInterval(orderbook4.heatInterval); clearInterval(deliveryinterval); clearInterval(jumpInterval); clearInterval(phoneInterval); machineStatus = "notready"; special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; _global.report_moneyEarned = score; _global.report_tips = tips; _global.targetScore = 350; _global.expertScore = 670; btn_pause._visible = false; dusbinStatus = "notready"; score = score + tips; if (score < 350) { reportMc._visible = true; reportMc.gotoAndStop(2); reportMc.mc.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.level_failed_Sound.start(); } } else { if (_global.soundstat == "onn") { _root.level_complete_Sound.start(); } if (_global.levelSelected < 9) { _global.levelSelected = 9; } if (_global.levelFinished <= 8) { _global.levelFinished = 8; } if (score >= 670) { _global.level8Status = "expert"; } else { _global.level8Status = "target"; } _global.level8Score = score; if (((score >= 350) && (scoreClip.target._currentframe == 1)) || ((score >= 670) && (scoreClip.expert._currentframe == 1))) { reportInterval = setInterval(CallReport, 2300, this); } else { reportMc._visible = true; reportMc.gotoAndStop(1); reportMc.mc.gotoAndPlay(2); } } } function CallReport(_arg1) { clearInterval(_arg1.reportInterval); _arg1.reportMc._visible = true; _arg1.reportMc.gotoAndStop(1); _arg1.reportMc.mc.gotoAndPlay(2); } function HeatFunction(owner, myparent, curpoint) { if (!myparent.isPaused) { owner.heatcnt++; owner.timelimit.gotoAndStop(owner.heatcnt); if (owner.heatcnt == 100) { eval ("myparent.customer" + curpoint).gotoAndStop(4); } if (owner.heatcnt >= 120) { clearInterval(owner.heatInterval); myparent.moneyCount--; myparent.customerCount--; eval ("myparent.orderbook" + curpoint)._visible = false; eval ("myparent.table" + curpoint)._visible = false; if (eval ("myparent.customer" + curpoint).type == "oldlady") { eval ("myparent.customer" + curpoint).gotoAndStop(6); if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 10)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 10) { myparent.score = myparent.score - 10; myparent.curScoreClip.disp.score.text = -10; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } else if (eval ("myparent.customer" + curpoint).type == "younglady") { eval ("myparent.customer" + curpoint).gotoAndStop(6); if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 15)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 15) { myparent.score = myparent.score - 15; myparent.curScoreClip.disp.score.text = -15; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } eval ("myparent.orderbook" + curpoint).type = "empty"; myparent.lobbyArr.push(curpoint); if ((myparent.customerCount == 0) && (myparent.moneyCount == 0)) { if (!myparent.isGameOver) { myparent.CallNextCustomerSet(); } else { myparent.callResult(); } } } } } function GameTimeLimit(_arg1) { if (!_arg1.isPaused) { _arg1.gametimer++; _arg1.timerClip.gotoAndStop(_arg1.gametimer); if (_arg1.gametimer >= 90) { _arg1.isGameOver = true; _arg1.bg.gotoAndStop(1); _arg1.shopclosedClip._visible = true; _arg1.shopclosedClip.gotoAndPlay(1); _arg1.gametimer = 0; clearInterval(_arg1.gameInterval); } } } function CheckForBookCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_bookcnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_bookcnt); comboClip.combo.gotoAndPlay(1); score = score + 4; curScoreClip.disp.score.text = 4; tips = tips + 4; } else { score = score + 2; curScoreClip.disp.score.text = 2; tips = tips + 2; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_bookcnt) + "_Sound").start(); } } function CheckForOrderCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_ordercnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_ordercnt); comboClip.combo.gotoAndPlay(1); score = score + 20; curScoreClip.disp.score.text = 20; } else { score = score + 10; curScoreClip.disp.score.text = 10; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_ordercnt) + "_Sound").start(); } } function CheckForMoneyCombo() { if (_global.soundstat == "onn") { eval (("_root.money" + combo_moneycnt) + "_Sound").start(); } curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_moneycnt >= 2) { comboClip._x = eval ("this.orderbook" + selectedTable)._x - 20; comboClip._y = eval ("this.orderbook" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_moneycnt); comboClip.combo.gotoAndPlay(1); if (eval ("this.orderbook" + selectedTable).neededchocolate == "type_rabbit") { score = score + (combo_moneycnt * 30); curScoreClip.disp.score.text = combo_moneycnt * 30; } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 14); curScoreClip.disp.score.text = combo_moneycnt * 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 11); curScoreClip.disp.score.text = combo_moneycnt * 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 10); curScoreClip.disp.score.text = combo_moneycnt * 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 24); curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 21); curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 15); curScoreClip.disp.score.text = combo_moneycnt * 15; } } if (!isGameOver) { if (table4._visible) { var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 17; curScoreClip.disp.score.text = 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 14; curScoreClip.disp.score.text = 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 11; curScoreClip.disp.score.text = 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 10; curScoreClip.disp.score.text = 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 24; curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 21; curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 17; curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 15; curScoreClip.disp.score.text = combo_moneycnt * 15; } } } function IdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.preparecnt++; if (_arg3.preparecnt >= 20) { clearInterval(_arg3.process_interval); _arg3.machineStatus = "ready"; _arg3.machineshake = "off"; if (_arg3.choco_machines.status == "prepared") { _arg3.choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function IdleProcess2(_arg3) { if (!_arg3.isPaused) { _arg3.prepare2cnt++; if (_arg3.prepare2cnt >= 20) { clearInterval(_arg3.process_interval2); _arg3.machine2Status = "ready"; _arg3.machine2shake = "off"; if (_arg3.choco_machines2.status == "prepared") { _arg3.choco_machines2.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function SpecialIdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.spl_preparecnt++; if (_arg3.spl_preparecnt >= 40) { clearInterval(_arg3.special_process_interval); _arg3.special_machineStatus = "ready"; _arg3.specialmachineshake = "off"; if (_arg3.special_choco_machines.status == "prepared") { _arg3.special_choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function CoffeeIdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.coffee_preparecnt++; if (_arg3.coffee_preparecnt >= 20) { clearInterval(_arg3.coffee_process_interval); _arg3.coffeeStatus = "ready"; _arg3.coffeemachineshake = "off"; _arg3.coffee_machine.status = "coffeeReady"; if (_global.soundstat == "onn") { _root.hotchoco_done_Sound.start(); } } } } function getRandom(_arg4, _arg5) { var _local3 = _arg5 - _arg4; var _local2 = Math.random() * _local3; var _local1 = Math.round(_local2); _local1 = _local1 + _arg4; return(_local1); } function StoreInSequence() { var owner = this; eval ("this." + moveTarget).onRelease(); } function CallSequence() { var owner = this; if (sequenceArr[0] == choco_machines) { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == choco_machines2) { if (((owner.isTargetReached && (owner.machine2Status == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines2"; owner.calculateAngle(owner.chomac_indicate2); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == special_choco_machines) { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == dusbin) { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == coffee_machine) { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.coffeeStatus == "ready")) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "coffee_machine"; owner.calculateAngle(owner.coffee_indicate); sequenceArr[0].pointer._visible = true; } } else if ((((sequenceArr[0] == table1) || (sequenceArr[0] == table2)) || (sequenceArr[0] == table3)) || (sequenceArr[0] == table4)) { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = sequenceArr[0]._name; owner.calculateAngle(sequenceArr[0]); if (owner.selectedTarget == "table1") { owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.selectedTable = 3; } else if (owner.selectedTarget == "table4") { owner.selectedTable = 4; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } } } function CallPause() { var _local3 = this; stopAllSounds(); _local3.bg.blink.gotoAndStop(_local3.bg.blink._currentframe); _local3.customer1.customer.gotoAndStop(_local3.customer1.customer._currentframe); _local3.customer2.customer.gotoAndStop(_local3.customer2.customer._currentframe); _local3.customer3.customer.gotoAndStop(_local3.customer3.customer._currentframe); _local3.special_choco_machines.machine1.blink.gotoAndStop(_local3.special_choco_machines.machine1.blink._currentframe); _local3.choco_machines.single_machine.blink.gotoAndStop(_local3.choco_machines.single_machine.blink._currentframe); _local3.salesGirl.coffeeicon.smoke.gotoAndStop(_local3.salesGirl.coffeeicon.smoke._currentframe); _local3.customer4.customer.gotoAndStop(_local3.customer4.customer._currentframe); _local3.coin_Anim1.coin.gotoAndStop(_local3.coin_Anim1.coin._currentframe); _local3.coin_Anim2.coin.gotoAndStop(_local3.coin_Anim2.coin._currentframe); _local3.coin_Anim3.coin.gotoAndStop(_local3.coin_Anim3.coin._currentframe); _local3.coin_Anim4.coin.gotoAndStop(_local3.coin_Anim4.coin._currentframe); _local3.comboClip.combo.gotoAndStop(_local3.comboClip.combo._currentframe); _local3.orderbook1.heartinClip.gotoAndStop(_local3.orderbook1.heartinClip._currentframe); _local3.orderbook2.heartinClip.gotoAndStop(_local3.orderbook2.heartinClip._currentframe); _local3.orderbook3.heartinClip.gotoAndStop(_local3.orderbook3.heartinClip._currentframe); _local3.orderbook4.heartinClip.gotoAndStop(_local3.orderbook4.heartinClip._currentframe); _local3.curScoreClip.gotoAndStop(_local3.curScoreClip._currentframe); _local3.coin_Anim1.coin.coin_rotate.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate._currentframe); _local3.coin_Anim1.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate2._currentframe); _local3.coin_Anim1.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate3._currentframe); _local3.coin_Anim1.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate4._currentframe); _local3.coin_Anim2.coin.coin_rotate.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate._currentframe); _local3.coin_Anim2.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate2._currentframe); _local3.coin_Anim2.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate3._currentframe); _local3.coin_Anim2.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate4._currentframe); _local3.coin_Anim3.coin.coin_rotate.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate._currentframe); _local3.coin_Anim3.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate2._currentframe); _local3.coin_Anim3.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate3._currentframe); _local3.coin_Anim3.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate4._currentframe); _local3.coin_Anim4.coin.coin_rotate.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate._currentframe); _local3.coin_Anim4.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate2._currentframe); _local3.coin_Anim4.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate3._currentframe); _local3.coin_Anim4.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate4._currentframe); _local3.comboClip.combo.coin_rotate.gotoAndStop(_local3.comboClip.combo.coin_rotate._currentframe); if (_local3.scoreIndicateClip._visible) { _local3.scoreIndicateClip.gotoAndStop(_local3.scoreIndicateClip._currentframe); } if (_local3.expertScoreClip._visible) { _local3.expertScoreClip.gotoAndStop(_local3.expertScoreClip._currentframe); } _global.ringvisible = phone_mc.ring._visible; phone_mc.ring._visible = false; _local3.chocolateClip.mc.gotoAndStop(_local3.chocolateClip.mc._currentframe); _local3.specialChocolateClip.mc.gotoAndStop(_local3.specialChocolateClip.mc._currentframe); _local3.chocolateClip2.mc.gotoAndStop(_local3.chocolateClip2.mc._currentframe); _local3.coffeeClip.gotoAndStop(_local3.coffeeClip._currentframe); } function CallResume() { var _local4 = this; if (_global.soundstat == "onn") { _root.gameSound.start(); } _local4.bg.blink.gotoAndPlay(_local4.bg.blink._currentframe); _local4.customer1.customer.gotoAndPlay(_local4.customer1.customer._currentframe); _local4.customer2.customer.gotoAndPlay(_local4.customer2.customer._currentframe); _local4.customer3.customer.gotoAndPlay(_local4.customer3.customer._currentframe); _local4.special_choco_machines.machine1.blink.gotoAndPlay(_local4.special_choco_machines.machine1.blink._currentframe); _local4.choco_machines.single_machine.blink.gotoAndPlay(_local4.choco_machines.single_machine.blink._currentframe); _local4.salesGirl.coffeeicon.smoke.gotoAndPlay(_local4.salesGirl.coffeeicon.smoke._currentframe); _local4.customer4.customer.gotoAndPlay(_local4.customer4.customer._currentframe); _local4.coin_Anim1.coin.gotoAndPlay(_local4.coin_Anim1.coin._currentframe - 1); _local4.coin_Anim2.coin.gotoAndPlay(_local4.coin_Anim2.coin._currentframe - 1); _local4.coin_Anim3.coin.gotoAndPlay(_local4.coin_Anim3.coin._currentframe - 1); _local4.coin_Anim4.coin.gotoAndPlay(_local4.coin_Anim4.coin._currentframe - 1); _local4.comboClip.combo.gotoAndPlay(_local4.comboClip.combo._currentframe - 1); _local4.orderbook1.heartinClip.gotoAndPlay(_local4.orderbook1.heartinClip._currentframe - 1); _local4.orderbook2.heartinClip.gotoAndPlay(_local4.orderbook2.heartinClip._currentframe - 1); _local4.orderbook3.heartinClip.gotoAndPlay(_local4.orderbook3.heartinClip._currentframe - 1); _local4.orderbook4.heartinClip.gotoAndPlay(_local4.orderbook4.heartinClip._currentframe - 1); _local4.curScoreClip.gotoAndPlay(_local4.curScoreClip._currentframe); _local4.coin_Anim1.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate._currentframe); _local4.coin_Anim1.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate2._currentframe); _local4.coin_Anim1.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate3._currentframe); _local4.coin_Anim1.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate4._currentframe); _local4.coin_Anim2.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate._currentframe); _local4.coin_Anim2.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate2._currentframe); _local4.coin_Anim2.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate3._currentframe); _local4.coin_Anim2.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate4._currentframe); _local4.coin_Anim3.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate._currentframe); _local4.coin_Anim3.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate2._currentframe); _local4.coin_Anim3.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate3._currentframe); _local4.coin_Anim3.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate4._currentframe); _local4.coin_Anim4.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate._currentframe); _local4.coin_Anim4.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate2._currentframe); _local4.coin_Anim4.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate3._currentframe); _local4.coin_Anim4.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate4._currentframe); _local4.comboClip.combo.coin_rotate.gotoAndPlay(_local4.comboClip.combo.coin_rotate._currentframe); if (_local4.scoreIndicateClip._visible) { _local4.scoreIndicateClip.gotoAndPlay(_local4.scoreIndicateClip._currentframe - 1); } if (_local4.expertScoreClip._visible) { _local4.expertScoreClip.gotoAndPlay(_local4.expertScoreClip._currentframe - 1); } phone_mc.ring._visible = _global.ringvisible; _local4.chocolateClip.mc.gotoAndPlay(_local4.chocolateClip.mc._currentframe - 1); _local4.specialChocolateClip.mc.gotoAndPlay(_local4.specialChocolateClip.mc._currentframe - 1); _local4.chocolateClip2.mc.gotoAndPlay(_local4.chocolateClip2.mc._currentframe - 1); _local4.coffeeClip.gotoAndPlay(_local4.coffeeClip._currentframe - 1); } function ObjectsRollOut() { table1.onRollOut(); table2.onRollOut(); table3.onRollOut(); table4.onRollOut(); phone_mc.onRollOut(); choco_machines.onRollOut(); choco_machines2.onRollOut(); dusbin.onRollOut(); coffee_machine.onRollOut(); special_choco_machines.onRollOut(); } function Reset() { targetclip = "table1"; lobbyArr.length = 0; lobbyArr = new Array(1, 2, 3); currentDirection = "down"; targetDirection = ""; isPopup = false; popup_info = "welcome"; clearInterval(popup_interval); clearInterval(special_process_interval); clearInterval(process_interval); popup_interval = -1; isTargetReached = true; selectedTarget = ""; orderno = 0; score = 0; ismoveready = false; orderTaken = 0; customerCount = 0; machineStatus = "notready"; dusbinStatus = "notready"; girlwalkframe = 2; isFirstServeFinished = false; depthArr.length = 0; depthArr = new Array(-10313, -10315, -10317); chocolateTypeArr.length = 0; chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); customerEnterset = "firstset"; moneyCount = 0; clearInterval(gameInterval); gametimer = 0; isGameOver = false; combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt = 0; curtarget = ""; clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); clearInterval(orderbook4.heatInterval); clearInterval(deliveryinterval); isPaused = false; sequenceArr.length = 0; sequenceArr = new Array(); girlspeed = 12; clearInterval(jumpInterval); clearInterval(phoneInterval); Key.removeListener(leve8Keyobj); keyTarget = undefined; phoneringcnt = 0; isphonecalled = false; } var targetclip = "table1"; var lobbyArr = new Array(1, 2, 3); var currentDirection = "down"; var isPopup = false; var popup_info = "welcome"; var popup_interval = -1; var process_interval = -1; var special_process_interval = -1; var isTargetReached = true; var selectedTarget = ""; var orderno = 0; var ismoveready = false; var orderTaken = 0; var customerCount = 0; var machineStatus = "notready"; var machine2Status = "notready"; var special_machineStatus = "notready"; var dusbinStatus = "notready"; var coffeeStatus = "notready"; var girlwalkframe = 2; var isFirstServeFinished = false; var score = 0; var depthArr = new Array(-10313, -10315, -10317); var chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); var customerEnterset = "firstset"; var moneyCount = 0; var gameInterval = -1; var gametimer = 0; var isGameOver = false; var combo_bookcnt = 0; var combo_ordercnt = 0; var combo_moneycnt = 0; var gamestartInterval = -1; var curtarget = ""; var customerEnterInterval = -1; var customerEnterInterval2 = -1; var reportInterval = -1; var isPaused = false; var coffee_process_interval = -1; var ringstat = "off"; var phone_status = "notready"; var machinespeed = 1; var machineshake = "off"; var specialmachineshake = "off"; var coffeemachineshake = "off"; var machine2shake = "off"; var specialmachinespeed = 1; var coffeemachinespeed = 1; var machine2speed = 1; var girlspeed = 12; var sequenceArr = new Array(); var callwaitInterval = -1; var customerEnterInterval3 = -1; var deliveryinterval = -1; var jumpInterval = -1; var tips = 0; var phoneInterval = -1; var process_interval2 = -1; var Re_customerEnterInterval = -1; var phoneringcnt = 0; var cusArr = new Array("younglady", "oldlady", "younglady"); var isphonecalled = false; var preparecnt = 0; var prepare2cnt = 0; var spl_preparecnt = 0; var coffee_preparecnt = 0; }
Symbol 1706 MovieClip [__Packages.Level9] Frame 0
class Level9 extends MovieClip { var dummy_highlight, deliveryboy, salesGirl, _parent, choco_machines, choco_machines2, special_choco_machines, coffee_machine, scoreIndicateClip, shopclosedClip, timerClip, chocolate_container, special_chocolate_container, coffeeClip, chocolateClip, chocolateClip2, popup_mc, selectClip, heartinClip, shopopenClip, reportMc, cancel_mc, infoClip, comboClip, dusbinContainer, curScoreClip, specialChocolateClip, expertScoreClip, table4, table3, table2, table1, coin_Anim4, coin_Anim3, coin_Anim2, coin_Anim1, dusbin, phone_mc, btn_pause, leve9Keyobj, keyTarget, pauseTarget, scoreClip, radian, targetDirection, preferred_chocolate1, preferred_chocolate2, customer4, orderbook4, attachMovie, getNextHighestDepth, customer1, orderbook1, customer2, orderbook2, customer3, orderbook3, selectedTable, re_entry, moveTarget; function Level9 () { super(); } function onLoad() { var owner = this; clearInterval(popup_interval); clearInterval(process_interval); Reset(); dummy_highlight._visible = false; deliveryboy._visible = false; salesGirl.coffeeicon._visible = false; _parent.pauseClip._visible = false; salesGirl.gotoAndStop(currentDirection); salesGirl.chocolateCount = 0; choco_machines.status = "empty"; choco_machines2.status = "empty"; special_choco_machines.status = "empty"; coffee_machine.status = "empty"; salesGirl.girlwalk.gotoAndStop(girlwalkframe); scoreIndicateClip._visible = false; shopclosedClip._visible = false; timerClip._visible = false; chocolate_container._visible = false; special_chocolate_container._visible = false; special_chocolate_container.mc.gotoAndStop(1); coffeeClip._visible = false; chocolateClip._visible = false; chocolateClip2._visible = false; popup_mc._visible = false; selectClip._visible = false; heartinClip._visible = false; shopopenClip._visible = false; reportMc._visible = false; cancel_mc._visible = false; infoClip._visible = false; comboClip._visible = false; dusbinContainer._visible = false; curScoreClip._visible = false; specialChocolateClip._visible = false; expertScoreClip._visible = false; table3._visible = (table4._visible = false); table2._visible = false; table1._visible = false; coin_Anim3._visible = (coin_Anim4._visible = false); coin_Anim2._visible = false; coin_Anim1._visible = false; table1.point = 1; table2.point = 2; table3.point = 3; table4.point = 4; choco_machines._visible = true; choco_machines.gotoAndStop(2); dusbin._visible = true; dusbin.gotoAndStop(2); special_choco_machines._visible = true; special_choco_machines.gotoAndStop(1); special_choco_machines.machine1.gotoAndStop(2); coffee_machine._visible = true; coffee_machine.gotoAndStop(2); choco_machines2._visible = true; choco_machines2.gotoAndStop(2); phone_mc._visible = true; owner.combo_ordercnt = 0; owner.combo_moneycnt = 0; owner.btn_pause._visible = true; owner.popupDisable(); var randomno = owner.getRandom(0, 2); owner.customerEnterInterval = setInterval(owner.CallCustomer, 1500, owner, owner.lobbyArr[randomno], "oldlady"); owner.lobbyArr.splice(randomno, 1); var randomno = owner.getRandom(0, owner.lobbyArr.length - 1); owner.customerEnterInterval2 = setInterval(owner.CallCustomer2, 2500, owner, owner.lobbyArr[randomno], "younglady"); owner.lobbyArr.splice(randomno, 1); owner.isPopup = false; owner.popup_info = "level2_start"; owner.bg.gotoAndStop(2); owner.shopopenClip._visible = true; owner.shopopenClip.gotoAndPlay(1); owner.ismoveready = true; owner.machineStatus = "ready"; owner.machine2Status = "ready"; owner.special_machineStatus = "ready"; owner.dusbinStatus = "ready"; owner.coffeeStatus = "ready"; owner.timerClip._visible = true; clearInterval(owner.gameInterval); owner.gametimer = 0; owner.gameInterval = setInterval(owner.GameTimeLimit, 660, owner); owner.Re_customerEnterInterval = setInterval(owner.CallNewCustomer, 3500, owner); owner.phone_mc.gotoAndStop(2); owner.phone_mc.ring.gotoAndStop(1); btn_pause.onRelease = function () { if (this._visible && (owner._parent.pauseClip._visible == false)) { owner.pauseTarget = "btn_continue"; owner.isPaused = true; owner.isPopup = true; this._visible = false; owner._parent.pauseClip._visible = true; owner._parent.pauseClip.gotoAndPlay(2); owner.CallPause(); } }; leve9Keyobj = new Object(); Key.addListener(leve9Keyobj); leve9Keyobj.onKeyUp = function () { if (Key.getCode() == 13) { if ((!owner.isPaused) && (!owner.isGameOver)) { owner.StoreInSequence(); } } }; leve9Keyobj.onKeyDown = function () { if (Key.getCode() == 37) { if (!owner.isPaused) { owner.LeftNavigation(); } } else if (Key.getCode() == 39) { if (!owner.isPaused) { owner.RightNavigation(); } } else if (Key.getCode() == 38) { if (!owner.isPaused) { owner.UpNavigation(); } else { owner.pauseUpNavigation(); } } else if (Key.getCode() == 40) { if (!owner.isPaused) { owner.DownNavigation(); } else { owner.pauseDownNavigation(); } } else if (Key.getCode() == 13) { if (owner.popup_mc._visible) { owner.popup_mc.btn_ok.onRelease(); } else if (owner.reportMc._visible) { if (owner.reportMc._currentframe == 1) { owner.reportMc.mc.btn_continue.onRelease(); } else { owner.reportMc.mc.btn_retry.onRelease(); } } else if (!owner.isPaused) { owner.EnterFunction(); } else { owner.PauseEnterFunction(); } } else if (Key.getAscii() == 27) { if (!owner.isPaused) { owner.btn_pause.onRelease(); } else if (owner.isPaused) { owner._parent.pauseClip.btn_continue.onRelease(); } } }; phone_mc.onRollOver = function () { if (((!owner.isPaused) && (owner.table4._visible == true)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); if (owner.ringstat == "off") { this.ring.gotoAndStop(1); eval ("owner.orderbook" + this.point).highlight.gotoAndStop(2); } else { this.gotoAndStop(3); } owner.moveTarget = "phone_mc"; } }; phone_mc.onRollOut = (phone_mc.onReleaseOutside = function () { this.gotoAndStop(2); if (owner.ringstat == "off") { this.ring.gotoAndStop(1); eval ("owner.orderbook" + this.point).highlight.gotoAndStop(1); } }); table1.onRollOver = (table2.onRollOver = (table3.onRollOver = (table4.onRollOver = function () { if ((!owner.isPaused) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = this._name; owner.moveTarget = this._name; eval ("this.orderbook" + this.point).highlight.gotoAndStop(2); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(2); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(2); } } }))); table1.onRollOut = (table2.onRollOut = (table3.onRollOut = (table4.onRollOut = function () { eval ("this.orderbook" + this.point).highlight.gotoAndStop(1); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(1); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(1); } }))); choco_machines.onRollOver = function () { if (((owner.machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "choco_machines"; owner.moveTarget = "choco_machines"; this.gotoAndStop(3); owner.dummy_highlight._visible = true; } }; choco_machines.onRollOut = (choco_machines.onReleaseOutside = function () { this.gotoAndStop(2); owner.dummy_highlight._visible = false; }); choco_machines2.onRollOver = function () { if (((owner.machine2Status == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "choco_machines2"; owner.moveTarget = "choco_machines2"; this.gotoAndStop(3); } }; choco_machines2.onRollOut = (choco_machines2.onReleaseOutside = function () { this.gotoAndStop(2); }); dusbin.onRollOver = function () { if ((owner.dusbinStatus == "ready") && (!owner.isPaused)) { owner.ObjectsRollOut(); owner.keyTarget = "dusbin"; owner.moveTarget = "dusbin"; this.gotoAndStop(3); } }; dusbin.onRollOut = (dusbin.onReleaseOutside = function () { this.gotoAndStop(2); }); coffee_machine.onRollOver = function () { if (((owner.coffeeStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "coffee_machine"; owner.moveTarget = "coffee_machine"; this.gotoAndStop(3); } }; coffee_machine.onRollOut = (coffee_machine.onReleaseOutside = function () { this.gotoAndStop(2); }); special_choco_machines.onRollOver = function () { if (((owner.special_machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "special_choco_machines"; owner.moveTarget = "special_choco_machines"; this.machine1.gotoAndStop(3); } }; special_choco_machines.onRollOut = (special_choco_machines.onReleaseOutside = function () { this.machine1.gotoAndStop(2); }); coffee_machine.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.coffee_machine); } }; coffee_machine.onPress = function () { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.coffeeStatus == "ready")) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "coffee_machine"; owner.calculateAngle(owner.coffee_indicate); this.pointer._visible = true; } }; choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.choco_machines); } }; choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); this.pointer._visible = true; } }; choco_machines2.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.choco_machines2); } }; choco_machines2.onPress = function () { if (((owner.isTargetReached && (owner.machine2Status == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines2"; owner.calculateAngle(owner.chomac_indicate2); this.pointer._visible = true; } }; special_choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.special_choco_machines); } }; special_choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); this.pointer._visible = true; } }; dusbin.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.dusbin); } }; dusbin.onPress = function () { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); this.pointer._visible = true; } }; table1.onRelease = (table2.onRelease = (table3.onRelease = (table4.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(this); } }))); table1.onPress = (table2.onPress = (table3.onPress = (table4.onPress = function () { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = this._name; if (owner.selectedTarget == "table1") { owner.calculateAngle(this); owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.calculateAngle(this); owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.calculateAngle(this); owner.selectedTable = 3; } else if (owner.selectedTarget == "table4") { owner.calculateAngle(owner.phone_indicate); owner.selectedTable = 4; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } }))); phone_mc.onRelease = function () { if ((((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) && (owner.table4._visible == true)) { owner.sequenceArr.push(owner.phone_mc); } }; phone_mc.onPress = function () { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.table4._visible == true)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "table4"; owner.calculateAngle(owner.phone_indicate); owner.selectedTable = 4; } }; } function LeftNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_box") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_triangle.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOut(); eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOver(); } } else if (keyTarget == "coffee_machine") { coffee_machine.onRollOut(); if (table3._visible) { table3.onRollOver(); } else if (table2._visible) { table2.onRollOver(); } else if (table1._visible) { table1.onRollOver(); } else if (table4._visible) { table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); coffee_machine.onRollOver(); } else if (keyTarget == "choco_machines2") { choco_machines2.onRollOut(); choco_machines.onRollOver(); } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); choco_machines2.onRollOver(); } } function RightNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_box.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOut(); eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOver(); } } else if (keyTarget == undefined) { coffee_machine.onRollOver(); } else if (keyTarget == "coffee_machine") { coffee_machine.onRollOut(); choco_machines.onRollOver(); } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); choco_machines2.onRollOver(); } else if (keyTarget == "choco_machines2") { choco_machines2.onRollOut(); special_choco_machines.onRollOver(); } else if ((((keyTarget == "table1") || (keyTarget == "table2")) || (keyTarget == "table3")) || (keyTarget == "table4")) { eval ("this." + keyTarget).onRollOut(); phone_mc.onRollOut(); coffee_machine.onRollOver(); } } function UpNavigation() { if (keyTarget == "table4") { if (table1._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOver(); } else if (table2._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table1") { if (table2._visible) { table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table2") { if (table3._visible) { table2.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "dusbin") { dusbin.onRollOut(); special_choco_machines.onRollOver(); } } function DownNavigation() { if (keyTarget == "table3") { if (table2._visible) { table3.onRollOut(); table2.onRollOver(); } else if (table1._visible) { table3.onRollOut(); table1.onRollOver(); } else if (table4._visible) { table3.onRollOut(); table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "table2") { if (table1._visible) { table2.onRollOut(); table1.onRollOver(); } else if (table4._visible) { table2.onRollOut(); table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "table1") { if (table4._visible) { table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); dusbin.onRollOver(); } } function EnterFunction() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_triangle.onRelease(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_round.onRelease(); } else if (keyTarget == "type_box") { chocolate_container.mc.type_box.onRelease(); } } else if (special_chocolate_container._visible) { eval ("this.special_chocolate_container.mc." + keyTarget).onRelease(); } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRelease(); } else if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRelease(); } } else { eval ("this." + keyTarget).onPress(); } } function PauseEnterFunction() { eval ("this._parent.pauseClip." + pauseTarget).onRelease(); } function pauseUpNavigation() { if (pauseTarget == "btn_premium") { _parent.pauseClip.btn_premium.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_continue.onRollOver(); } } function pauseDownNavigation() { if (pauseTarget == "pause") { _parent.pauseClip.btn_continue.onRollOver(); } else if (pauseTarget == "btn_continue") { _parent.pauseClip.btn_continue.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_premium.onRollOver(); } } function updateScore() { scoreClip.score_txt.text = score; scoreClip.loading.gotoAndStop(score); if ((score >= 400) && (scoreClip.target._currentframe == 1)) { scoreClip.target.gotoAndPlay(1); scoreIndicateClip._visible = true; scoreIndicateClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.target_score_Sound.start(); } } if ((score >= 880) && (scoreClip.expert._currentframe == 1)) { scoreClip.expert.gotoAndPlay(1); expertScoreClip._visible = true; expertScoreClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.expert_score_Sound.start(); } } } function onEnterFrame() { var owner = this; if (((!isPopup) && (!isTargetReached)) && (!owner.isPaused)) { shopperMovement(); } if (machineshake == "onn") { machinespeed = -machinespeed; choco_machines._x = choco_machines._x + ((2 * machinespeed) / 2); choco_machines._y = choco_machines._y + ((2 * machinespeed) / 2); } if (specialmachineshake == "onn") { specialmachinespeed = -specialmachinespeed; special_choco_machines._x = special_choco_machines._x + ((1 * specialmachinespeed) / 2); special_choco_machines._y = special_choco_machines._y + ((1 * specialmachinespeed) / 2); } else { special_choco_machines._x = 631; special_choco_machines._y = 101; } if (coffeemachineshake == "onn") { coffeemachinespeed = -coffeemachinespeed; coffee_machine._x = coffee_machine._x + ((1 * coffeemachinespeed) / 2); coffee_machine._y = coffee_machine._y + ((1 * coffeemachinespeed) / 2); } if (machine2shake == "onn") { machine2speed = -machine2speed; choco_machines2._x = choco_machines2._x + ((2 * machine2speed) / 2); choco_machines2._y = choco_machines2._y + ((2 * machine2speed) / 2); } _parent.pauseClip.btn_continue.onRollOver = (_parent.pauseClip.btn_restart.onRollOver = (_parent.pauseClip.btn_mainmenu.onRollOver = (_parent.pauseClip.btn_premium.onRollOver = function () { owner._parent.pauseClip.btn_continue.onRollOut(); owner._parent.pauseClip.btn_restart.onRollOut(); owner._parent.pauseClip.btn_mainmenu.onRollOut(); owner._parent.pauseClip.btn_premium.onRollOut(); owner.pauseTarget = this._name; this.gotoAndStop(2); }))); _parent.pauseClip.btn_continue.onRollOut = (_parent.pauseClip.btn_restart.onRollOut = (_parent.pauseClip.btn_mainmenu.onRollOut = (_parent.pauseClip.btn_premium.onRollOut = function () { this.gotoAndStop(1); }))); _parent.pauseClip.btn_continue.onRelease = function () { owner.isPaused = false; owner.isPopup = false; owner.btn_pause._visible = true; owner._parent.pauseClip._visible = false; owner.CallResume(); }; _parent.pauseClip.btn_restart.onRelease = function () { owner.Reset(); owner._parent.play(); }; _parent.pauseClip.btn_mainmenu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; _parent.pauseClip.btn_premium.onRelease = function () { this.getURL(_root.urlname, "_blank"); }; popup_mc.btn_ok.onRollOver = function () { this.gotoAndStop(2); }; popup_mc.btn_ok.onRollOut = (popup_mc.btn_ok.onReleaseOutside = function () { this.gotoAndStop(1); }); chocolate_container.mc.type_triangle.onRollOver = (chocolate_container.mc.type_round.onRollOver = (chocolate_container.mc.type_box.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.chocolate_container.mc.type_triangle.gotoAndStop(1); owner.chocolate_container.mc.type_round.gotoAndStop(1); owner.chocolate_container.mc.type_box.gotoAndStop(1); this.gotoAndStop(2); } })); chocolate_container.mc.type_triangle.onRelease = (chocolate_container.mc.type_round.onRelease = (chocolate_container.mc.type_box.onRelease = function () { if (!owner.isPaused) { if (owner.selectedTarget == "choco_machines") { owner.chocolateClip._visible = true; owner.chocolateClip.gotoAndStop(this._name); owner.chocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_box_chocolate = this._name; if (owner.choco_machines.status == "empty") { owner.choco_machines.status = "prepared"; } owner.machineshake = "onn"; owner.machineStatus = "ready"; owner.keyTarget = "choco_machines"; owner.preparecnt = 0; owner.process_interval = setInterval(owner.IdleProcess, 100, owner); } else if (owner.selectedTarget == "choco_machines2") { owner.chocolateClip2._visible = true; owner.chocolateClip2.gotoAndStop(this._name); owner.chocolateClip2.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_box2_chocolate = this._name; if (owner.choco_machines2.status == "empty") { owner.choco_machines2.status = "prepared"; } owner.machine2shake = "onn"; owner.machine2Status = "ready"; owner.keyTarget = "choco_machines2"; owner.prepare2cnt = 0; owner.process_interval2 = setInterval(owner.IdleProcess2, 100, owner); } owner.chocolate_container.gotoAndStop(2); owner.isPopup = false; owner.dusbinStatus = "ready"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } })); chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.machineStatus = "ready"; owner.machine2Status = "ready"; owner.chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; if (owner.selectedTarget == "choco_machines") { owner.keyTarget = "choco_machines"; } else { owner.keyTarget = "choco_machines2"; } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; special_chocolate_container.mc.type_rabbit.onRollOver = (special_chocolate_container.mc.type_fish.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.special_chocolate_container.mc.type_rabbit.gotoAndStop(1); owner.special_chocolate_container.mc.type_fish.gotoAndStop(1); this.gotoAndStop(2); } }); special_chocolate_container.mc.type_rabbit.onRelease = (special_chocolate_container.mc.type_fish.onRelease = function () { if (!owner.isPaused) { owner.infoClip._visible = false; owner.specialChocolateClip._visible = true; owner.specialChocolateClip.gotoAndStop(this._name); owner.specialChocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_special_chocolate = this._name; if (owner.special_choco_machines.status == "empty") { owner.special_choco_machines.status = "prepared"; } owner.spl_preparecnt = 0; owner.special_process_interval = setInterval(owner.SpecialIdleProcess, 100, owner); owner.special_chocolate_container.gotoAndStop(2); owner.isPopup = false; owner.dusbinStatus = "ready"; owner.special_machineStatus = "ready"; owner.specialmachineshake = "onn"; owner.keyTarget = "special_choco_machines"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }); special_chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.special_machineStatus = "ready"; owner.special_chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; owner.keyTarget = "special_choco_machines"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; dusbinContainer.mc.chocobox1.type_triangle.onRollOver = (dusbinContainer.mc.chocobox1.type_round.onRollOver = (dusbinContainer.mc.chocobox1.type_box.onRollOver = (dusbinContainer.mc.chocobox2.type_triangle.onRollOver = (dusbinContainer.mc.chocobox2.type_round.onRollOver = (dusbinContainer.mc.chocobox2.type_box.onRollOver = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox1.type_fish.onRollOver = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox2.type_fish.onRollOver = function () { owner.keyTarget = this._name; this.gotoAndStop(2); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRollOut = (dusbinContainer.mc.chocobox1.type_round.onRollOut = (dusbinContainer.mc.chocobox1.type_box.onRollOut = (dusbinContainer.mc.chocobox2.type_triangle.onRollOut = (dusbinContainer.mc.chocobox2.type_round.onRollOut = (dusbinContainer.mc.chocobox2.type_box.onRollOut = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox1.type_fish.onRollOut = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox2.type_fish.onRollOut = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_fish.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_fish.onReleaseOutside = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRelease = (dusbinContainer.mc.chocobox1.type_round.onRelease = (dusbinContainer.mc.chocobox1.type_box.onRelease = (dusbinContainer.mc.chocobox2.type_triangle.onRelease = (dusbinContainer.mc.chocobox2.type_round.onRelease = (dusbinContainer.mc.chocobox2.type_box.onRelease = (dusbinContainer.mc.chocobox1.type_rabbit.onRelease = (dusbinContainer.mc.chocobox1.type_fish.onRelease = (dusbinContainer.mc.chocobox2.type_rabbit.onRelease = (dusbinContainer.mc.chocobox2.type_fish.onRelease = function () { if (!owner.isPaused) { if (this._name == owner.preferred_chocolate1) { owner.preferred_chocolate1 = owner.preferred_chocolate2; owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } else { owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }))))))))); dusbinContainer.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; reportMc.mc.btn_continue.onRelease = function () { owner.Reset(); _global.calenderfrom = "game"; owner._parent.gotoAndStop("calender"); }; reportMc.mc.btn_menu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; reportMc.mc.btn_retry.onRelease = function () { owner.Reset(); owner._parent.play(); }; popup_mc.btn_ok.onRelease = function () { if (owner.popup_info == "welcome") { owner.btn_pause._visible = true; owner.popupDisable(); var _local1 = owner.getRandom(0, 2); owner.customerEnterInterval = setInterval(owner.CallCustomer, 2000, owner, owner.lobbyArr[_local1], "oldlady"); owner.isPopup = false; owner.popup_info = "level2_start"; owner.bg.gotoAndStop(2); owner.shopopenClip._visible = true; owner.shopopenClip.gotoAndPlay(1); owner.ismoveready = true; owner.machineStatus = "ready"; owner.machine2Status = "ready"; owner.special_machineStatus = "ready"; owner.dusbinStatus = "ready"; owner.coffeeStatus = "ready"; owner.timerClip._visible = true; clearInterval(owner.gameInterval); owner.gametimer = 0; owner.gameInterval = setInterval(owner.GameTimeLimit, 658, owner); owner.phone_mc.gotoAndStop(2); owner.phone_mc.ring.gotoAndStop(1); } else if (owner.popup_info == "order") { owner.popupDisable(); owner.isPopup = false; owner.popup_info = ""; owner.selectClip._visible = true; owner.selectClip._x = owner.choco_machines._x; owner.selectClip._y = owner.choco_machines._y - 80; } else if (owner.popup_info == "mismatch") { owner.popupDisable(); owner.isPopup = false; } }; } function shopperMovement() { var _local3 = (salesGirl._x + salesGirl.pointer._x) - targetclip._x; var _local2 = (salesGirl._y + salesGirl.pointer._y) - targetclip._y; var _local5 = Math.sqrt((_local2 * _local2) + (_local3 * _local3)); var _local4 = 10; if (_local5 >= _local4) { salesGirl._x = salesGirl._x + (Math.cos(radian) * girlspeed); salesGirl._y = salesGirl._y + (Math.sin(radian) * girlspeed); } else if (!isTargetReached) { isTargetReached = true; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); Manipulate(); updateScore(); } } function GameStart(_arg2) { clearInterval(_arg2.gamestartInterval); _arg2.isPopup = true; _global.popupText = "Select the PHONE to answer a call. Take the order of the client and prepare it. A delivery boy will pick it up later."; _arg2.ShowPopup(_arg2); } function calculateAngle(mc) { if (!isPopup) { targetclip = mc; var x_diff = (eval (mc)._x - (salesGirl._x + salesGirl.pointer._x)); var y_diff = (eval (mc)._y - (salesGirl._y + salesGirl.pointer._y)); radian = Math.atan2(y_diff, x_diff); if (Math.abs(x_diff) > Math.abs(y_diff)) { if (x_diff > 0) { targetDirection = "right"; } else { targetDirection = "left"; } } else if (y_diff > 0) { targetDirection = "down"; } else { targetDirection = "up"; } if (curtarget != selectedTarget) { curtarget = selectedTarget; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe - 1); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); } } } function ShowPopup(_arg1) { clearInterval(_arg1.popup_interval); _arg1.isPopup = true; _arg1.popup_mc._visible = true; _arg1.popup_mc.swapDepths(_arg1.getNextHighestDepth()); _arg1.popup_mc.gotoAndPlay(1); } function popupDisable() { popup_mc.gotoAndStop(1); popup_mc._visible = false; } function CallNewCustomer(_arg2) { if (!_arg2.isGameOver) { if (_arg2.table4._visible) { var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == 1) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } if ((_arg2.customerCount != 0) && (_arg2.moneyCount != 0)) { _arg2.CallNextCustomerSet(); } } else { clearInterval(_arg2.Re_customerEnterInterval); } } function CallCustomer(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function CallCustomer2(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval2); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function CallCustomer3(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval3); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function Re_CallCustomer(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.Re_customerEnterInterval); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function customerEnter(_arg5, _arg4) { if (!isGameOver) { if (_arg4 == "phoneorder") { isphonecalled = true; ringstat = "onn"; phone_mc._visible = true; table4._visible = true; customer4 = phone_mc; phone_mc.ring._visible = true; phone_mc.ring.gotoAndPlay(2); orderbook4 = attachMovie("orderbook", "orderbook4", getNextHighestDepth(), {_x:170, _y:400}); orderbook4._visible = false; orderbook4.type = "phone"; customer4.type = _arg4; orderbook4.heatcnt = 0; orderbook4.heatInterval = setInterval(HeatFunction, 500, orderbook4, this, 4); phoneringcnt = 0; phoneInterval = setInterval(HidePhoneOrder, 1000, this); if (_global.soundstat == "onn") { _root.phonering_Sound.start(); } } else if (_arg5 == 1) { table1._visible = true; customer1 = attachMovie(_arg4, "customer1", depthArr[_arg5 - 1], {_x:115, _y:356}); orderbook1 = attachMovie("orderbook", "orderbook1", getNextHighestDepth(), {_x:170, _y:374}); orderbook1.type = "book"; customer1.type = _arg4; orderbook1.heatcnt = 0; if (_arg4 == "oldlady") { orderbook1.heatInterval = setInterval(HeatFunction, 400, orderbook1, this, 1); } else if (_arg4 == "younglady") { orderbook1.heatInterval = setInterval(HeatFunction, 200, orderbook1, this, 1); } } else if (_arg5 == 2) { table2._visible = true; customer2 = attachMovie(_arg4, "customer2", depthArr[_arg5 - 1], {_x:119, _y:235}); orderbook2 = attachMovie("orderbook", "orderbook2", getNextHighestDepth(), {_x:177, _y:278}); orderbook2.type = "book"; customer2.type = _arg4; orderbook2.heatcnt = 0; if (_arg4 == "oldlady") { orderbook2.heatInterval = setInterval(HeatFunction, 400, orderbook2, this, 2); } else if (_arg4 == "younglady") { orderbook2.heatInterval = setInterval(HeatFunction, 200, orderbook2, this, 2); } } else if (_arg5 == 3) { table3._visible = true; customer3 = attachMovie(_arg4, "customer3", depthArr[_arg5 - 1], {_x:127, _y:140}); orderbook3 = attachMovie("orderbook", "orderbook3", getNextHighestDepth(), {_x:184, _y:185}); orderbook3.type = "book"; customer3.type = _arg4; orderbook3.heatcnt = 0; if (_arg4 == "oldlady") { orderbook3.heatInterval = setInterval(HeatFunction, 400, orderbook3, this, 3); } else if (_arg4 == "younglady") { orderbook3.heatInterval = setInterval(HeatFunction, 200, orderbook3, this, 3); } } customerCount++; moneyCount++; orderTaken++; salesGirl.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); chocolate_container.swapDepths(getNextHighestDepth()); special_chocolate_container.swapDepths(getNextHighestDepth()); dusbinContainer.swapDepths(getNextHighestDepth()); comboClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); } } function HidePhoneOrder(owner) { if (!owner.isPaused) { owner.phoneringcnt++; if (owner.phoneringcnt >= 20) { clearInterval(owner.phoneInterval); clearInterval(owner.orderbook4.heatInterval); owner.moneyCount--; owner.customerCount--; owner.orderbook4._visible = false; owner.table4._visible = false; owner.orderbook4.type = "empty"; owner.ringstat = "off"; owner.phone_mc.ring.gotoAndStop(1); _root.phonering_Sound.stop(); if ((owner.customerCount == 0) && (owner.moneyCount == 0)) { if (!owner.isGameOver) { owner.CallNextCustomerSet(); } else { owner.callResult(); } } } } } function Manipulate() { var owner = this; if (selectedTarget == "coffee_machine") { coffee_machine.pointer._visible = false; if (coffee_machine.status == "empty") { coffee_machine.status = "prepared"; coffeeClip._visible = true; coffeeClip.gotoAndPlay(2); owner.isTargetReached = true; owner.coffee_preparecnt = 0; owner.coffee_process_interval = setInterval(owner.CoffeeIdleProcess, 100, owner); owner.isPopup = false; owner.coffeemachineshake = "onn"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (coffee_machine.status == "coffeeReady") { coffeeClip._visible = false; coffee_machine.status = "empty"; salesGirl.coffeeicon._visible = false; girlspeed = 12; orderTaken = 0; salesGirl.gotoAndStop(2); if (salesGirl.chocolateCount == 0) { girlwalkframe = 9; } else if (salesGirl.chocolateCount == 1) { girlwalkframe = 10; } else if (salesGirl.chocolateCount == 2) { girlwalkframe = 11; } salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.jumpLady.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.jumpLady.chocobox2.gotoAndStop(preferred_chocolate2); owner.machineStatus = "notready"; owner.special_machineStatus = "notready"; owner.dusbinStatus = "notready"; owner.coffeeStatus = "notready"; owner.isPopup = true; jumpInterval = setInterval(JumpFinished, 1100, this); } } else if (selectedTarget == "choco_machines") { choco_machines.pointer._visible = false; if (choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_round"; } } else if (choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_box_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_box_chocolate; } owner.salesGirl.chocolateCount++; chocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { if (orderbook1.book_mc._currentframe == 74) { orderbook1.green_highlight._visible = true; } } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { if (orderbook2.book_mc._currentframe == 74) { orderbook2.green_highlight._visible = true; } } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { if (orderbook3.book_mc._currentframe == 74) { orderbook3.green_highlight._visible = true; } } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { if (orderbook4.book_mc._currentframe == 74) { orderbook4.green_highlight._visible = true; } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "choco_machines2") { choco_machines2.pointer._visible = false; if (choco_machines2.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machine2Status = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_round"; } } else if (choco_machines2.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_box2_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_box2_chocolate; } owner.salesGirl.chocolateCount++; chocolateClip2._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); choco_machines2.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "special_choco_machines") { special_choco_machines.pointer._visible = false; if (special_choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { special_chocolate_container._visible = true; special_chocolate_container.gotoAndStop(1); special_chocolate_container.mc.gotoAndPlay(1); special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_rabbit"; } } else if (special_choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_special_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_special_chocolate; } owner.salesGirl.chocolateCount++; specialChocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); special_choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "dusbin") { dusbin.pointer._visible = false; if (salesGirl.chocolateCount == 1) { salesGirl.chocolateCount--; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); preferred_chocolate1 = null; preferred_chocolate2 = null; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (salesGirl.chocolateCount >= 2) { dusbinStatus = "notready"; isPopup = true; _global.preferred_chocolate1 = preferred_chocolate1; _global.preferred_chocolate2 = preferred_chocolate2; keyTarget = _global.preferred_chocolate1; dusbinContainer._visible = true; dusbinContainer.gotoAndStop(1); dusbinContainer.mc.gotoAndPlay(1); } } else if ((((selectedTarget == "table1") || (selectedTarget == "table2")) || (selectedTarget == "table3")) || (selectedTarget == "table4")) { eval ("this.orderbook" + selectedTable).pointer._visible = false; if (eval ("this.orderbook" + selectedTable).type == "phone") { isphonecalled = true; _root.phonering_Sound.stop(); clearInterval(phoneInterval); combo_bookcnt++; combo_ordercnt = 0; combo_moneycnt = 0; ringstat = "off"; phone_mc.ring.gotoAndStop(1); eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; var randomno = owner.getRandom(0, 4); eval ("this.orderbook" + selectedTable)._visible = true; eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.customer" + selectedTable).gotoAndStop(2); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); var heatcntchange = int(eval ("this.orderbook" + selectedTable).heatcnt / 4); if (heatcntchange > 1) { eval ("this.orderbook" + selectedTable).heatcnt = heatcntchange; } else { eval ("this.orderbook" + selectedTable).heatcnt = 1; } CheckForBookCombo(); } else if (eval ("this.orderbook" + selectedTable).type == "book") { combo_bookcnt++; combo_ordercnt = 0; combo_moneycnt = 0; eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; var randomno = owner.getRandom(0, 4); eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.customer" + selectedTable).gotoAndStop(3); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); var heatcntchange = int(eval ("this.orderbook" + selectedTable).heatcnt / 4); if (heatcntchange > 1) { eval ("this.orderbook" + selectedTable).heatcnt = heatcntchange; } else { eval ("this.orderbook" + selectedTable).heatcnt = 1; } CheckForBookCombo(); } else if (eval ("this.orderbook" + selectedTable).type == "chocolateOrder") { if ((salesGirl.chocolateCount >= 1) && (eval ("this.orderbook" + selectedTable).book_mc._currentframe >= 74)) { combo_bookcnt = 0; combo_moneycnt = 0; if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate1) { combo_ordercnt++; preferred_chocolate1 = preferred_chocolate2; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); if (selectedTarget == "table4") { orderbook4.type = "none"; orderbook4.temp_box._visible = false; orderbook4.green_highlight._visible = false; orderbook4.highlight._visible = false; orderbook4.timelimit._visible = false; phone_mc.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); deliveryboy._visible = true; deliveryboy.gotoAndPlay(2); clearInterval(deliveryinterval); deliveryinterval = setInterval(callDeliveryBoy, 1500, this); } else { eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { if (table4._visible) { var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; if (salesGirl.chocolateCount == 1) { preferred_chocolate1 = null; } salesGirl.chocolateCount--; owner.setGreenHighLight(); } else if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate2) { combo_ordercnt++; salesGirl.chocolateCount--; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); if (selectedTarget == "table4") { orderbook4.type = "none"; orderbook4.temp_box._visible = false; orderbook4.green_highlight._visible = false; orderbook4.highlight._visible = false; orderbook4.timelimit._visible = false; phone_mc.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); deliveryboy._visible = true; deliveryboy.gotoAndPlay(2); clearInterval(deliveryinterval); deliveryinterval = setInterval(callDeliveryBoy, 1500, this); } else { eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { if (table4._visible) { var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; owner.setGreenHighLight(); } } } else if (eval ("this.orderbook" + selectedTable).type == "money") { combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt++; moneyCount--; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(2); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable)._visible = false; eval ("this.table" + selectedTable)._visible = false; eval ("this.orderbook" + selectedTable).type = "empty"; if (owner.selectedTarget != "table4") { eval ("this.customer" + selectedTable)._visible = false; } CheckForMoneyCombo(); if (orderTaken >= 6) { salesGirl.coffeeicon._visible = true; girlspeed = 6; } if (selectedTable != 4) { lobbyArr.push(selectedTable); } else if (table1._visible == false) { lobbyArr.push(1); } if ((customerCount == 0) && (moneyCount == 0)) { if (!isGameOver) { customerCount = 0; moneyCount = 0; owner.table2._visible = (owner.table3._visible = false); owner.table1._visible = false; CallNextCustomerSet(); } else { callResult(); } } else if (isGameOver) { if ((((table1._visible == false) && (table2._visible == false)) && (table3._visible == false)) && (table4._visible == false)) { callResult(); } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } function CallNextCustomerSet() { var _local2 = this; if (lobbyArr.length >= 1) { if (lobbyArr.length == 1) { if (((!isphonecalled) && (table4._visible == false)) && (table1._visible == false)) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], "phoneorder"); } else { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } else if (lobbyArr.length == 2) { re_entry = "onn"; if (((!isphonecalled) && (table4._visible == false)) && (table1._visible == false)) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); if (_local2.lobbyArr[0] == 1) { _local3 = 1; } else if (_local2.lobbyArr[1] == 1) { _local3 = 0; } clearInterval(_local2.customerEnterInterval); trace("lobbyphone 2,1=" + _local2.lobbyArr[_local3]); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval2); trace("lobbyphone 2,2=" + _local2.lobbyArr[_local3]); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], "phoneorder"); } else { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); trace("lobby2,1=" + _local2.lobbyArr[_local3]); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 100, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval2); trace("lobby2,2=" + _local2.lobbyArr[_local3]); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } else if (lobbyArr.length == 3) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); trace("lobby3,1=" + _local2.lobbyArr[_local3]); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval2); trace("lobby3,2=" + _local2.lobbyArr[_local3]); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval3); trace("lobby3,3=" + _local2.lobbyArr[_local3]); _local2.customerEnterInterval3 = setInterval(_local2.CallCustomer3, 4000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } trace("after nextcus=" + lobbyArr); } function callDeliveryBoy(owner) { clearInterval(owner.deliveryinterval); owner.orderbook4.type = "money"; owner.coin_Anim4._visible = true; owner.coin_Anim4.gotoAndStop(1); owner.coin_Anim4.coin.gotoAndPlay(1); owner.orderbook4.gotoAndStop(3); if ((owner.orderbook4.heatcnt > 60) && (owner.orderbook4.heatcnt <= 100)) { owner.orderbook4.money_mc.gotoAndStop(2); owner.orderbook4.highlight._visible = false; } else if (owner.orderbook4.heatcnt > 100) { owner.orderbook4.money_mc.gotoAndStop(3); owner.orderbook4.highlight._visible = false; owner.orderbook4.highlight_small._visible = false; } if (!owner.isGameOver) { if (owner.table4._visible) { var i = 0; while (i < owner.lobbyArr.length) { if (owner.lobbyArr[i] == 1) { owner.lobbyArr.splice(i, 1); } i++; } } owner.CallNextCustomerSet(); } } function JumpFinished(_arg1) { clearInterval(_arg1.jumpInterval); _arg1.machineStatus = "ready"; _arg1.special_machineStatus = "ready"; _arg1.dusbinStatus = "ready"; _arg1.coffeeStatus = "ready"; _arg1.isPopup = false; _arg1.sequenceArr.splice(0, 1); if (_arg1.sequenceArr.length >= 1) { _arg1.CallSequence(); } } function setGreenHighLight() { if (orderbook1.book_mc._currentframe >= 74) { if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } else { orderbook1.green_highlight._visible = false; } } if (orderbook2.book_mc._currentframe >= 74) { if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } else { orderbook2.green_highlight._visible = false; } } if (orderbook3.book_mc._currentframe >= 74) { if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } else { orderbook3.green_highlight._visible = false; } } if (orderbook4.book_mc._currentframe >= 74) { if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } else { orderbook4.green_highlight._visible = false; } } } function callResult() { clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); clearInterval(orderbook4.heatInterval); clearInterval(deliveryinterval); clearInterval(jumpInterval); clearInterval(phoneInterval); machineStatus = "notready"; special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; _global.report_moneyEarned = score; _global.report_tips = tips; _global.targetScore = 400; _global.expertScore = 880; btn_pause._visible = false; dusbinStatus = "notready"; score = score + tips; if (score < 400) { reportMc._visible = true; reportMc.gotoAndStop(2); reportMc.mc.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.level_failed_Sound.start(); } } else { if (_global.soundstat == "onn") { _root.level_complete_Sound.start(); } if (_global.levelSelected < 10) { _global.levelSelected = 10; } if (_global.levelFinished <= 9) { _global.levelFinished = 9; } if (score >= 880) { _global.level9Status = "expert"; } else { _global.level9Status = "target"; } _global.level9Score = score; if (((score >= 400) && (scoreClip.target._currentframe == 1)) || ((score >= 880) && (scoreClip.expert._currentframe == 1))) { reportInterval = setInterval(CallReport, 2300, this); } else { reportMc._visible = true; reportMc.gotoAndStop(1); reportMc.mc.gotoAndPlay(2); } } } function CallReport(_arg1) { clearInterval(_arg1.reportInterval); _arg1.reportMc._visible = true; _arg1.reportMc.gotoAndStop(1); _arg1.reportMc.mc.gotoAndPlay(2); } function HeatFunction(owner, myparent, curpoint) { if (!myparent.isPaused) { owner.heatcnt++; owner.timelimit.gotoAndStop(owner.heatcnt); if (owner.heatcnt == 100) { eval ("myparent.customer" + curpoint).gotoAndStop(4); } if (owner.heatcnt >= 120) { clearInterval(owner.heatInterval); myparent.moneyCount--; myparent.customerCount--; eval ("myparent.orderbook" + curpoint)._visible = false; eval ("myparent.table" + curpoint)._visible = false; if (eval ("myparent.customer" + curpoint).type == "oldlady") { eval ("myparent.customer" + curpoint).gotoAndStop(6); if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 10)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 10) { myparent.score = myparent.score - 10; myparent.curScoreClip.disp.score.text = -10; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } else if (eval ("myparent.customer" + curpoint).type == "younglady") { eval ("myparent.customer" + curpoint).gotoAndStop(6); if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 15)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 15) { myparent.score = myparent.score - 15; myparent.curScoreClip.disp.score.text = -15; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } eval ("myparent.orderbook" + curpoint).type = "empty"; myparent.lobbyArr.push(curpoint); if ((myparent.customerCount == 0) && (myparent.moneyCount == 0)) { if (!myparent.isGameOver) { myparent.CallNextCustomerSet(); } else { myparent.callResult(); } } } } } function GameTimeLimit(_arg1) { if (!_arg1.isPaused) { _arg1.gametimer++; _arg1.timerClip.gotoAndStop(_arg1.gametimer); if (_arg1.gametimer >= 90) { _arg1.isGameOver = true; _arg1.bg.gotoAndStop(1); _arg1.shopclosedClip._visible = true; _arg1.shopclosedClip.gotoAndPlay(1); _arg1.gametimer = 0; clearInterval(_arg1.gameInterval); } } } function CheckForBookCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_bookcnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_bookcnt); comboClip.combo.gotoAndPlay(1); score = score + 4; curScoreClip.disp.score.text = 4; tips = tips + 4; } else { score = score + 2; curScoreClip.disp.score.text = 2; tips = tips + 2; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_bookcnt) + "_Sound").start(); } } function CheckForOrderCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_ordercnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_ordercnt); comboClip.combo.gotoAndPlay(1); score = score + 20; curScoreClip.disp.score.text = 20; } else { score = score + 10; curScoreClip.disp.score.text = 10; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_ordercnt) + "_Sound").start(); } } function CheckForMoneyCombo() { if (_global.soundstat == "onn") { eval (("_root.money" + combo_moneycnt) + "_Sound").start(); } curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_moneycnt >= 2) { comboClip._x = eval ("this.orderbook" + selectedTable)._x - 20; comboClip._y = eval ("this.orderbook" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_moneycnt); comboClip.combo.gotoAndPlay(1); if (eval ("this.orderbook" + selectedTable).neededchocolate == "type_rabbit") { score = score + (combo_moneycnt * 30); curScoreClip.disp.score.text = combo_moneycnt * 30; } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 14); curScoreClip.disp.score.text = combo_moneycnt * 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 11); curScoreClip.disp.score.text = combo_moneycnt * 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 10); curScoreClip.disp.score.text = combo_moneycnt * 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 24); curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 21); curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 15); curScoreClip.disp.score.text = combo_moneycnt * 15; } } if (!isGameOver) { if (table4._visible) { var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 17; curScoreClip.disp.score.text = 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 14; curScoreClip.disp.score.text = 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 11; curScoreClip.disp.score.text = 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 10; curScoreClip.disp.score.text = 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 24; curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 21; curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 17; curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 15; curScoreClip.disp.score.text = combo_moneycnt * 15; } } } function IdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.preparecnt++; if (_arg3.preparecnt >= 20) { clearInterval(_arg3.process_interval); _arg3.machineStatus = "ready"; _arg3.machineshake = "off"; if (_arg3.choco_machines.status == "prepared") { _arg3.choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function IdleProcess2(_arg3) { if (!_arg3.isPaused) { _arg3.prepare2cnt++; if (_arg3.prepare2cnt >= 20) { clearInterval(_arg3.process_interval2); _arg3.machine2Status = "ready"; _arg3.machine2shake = "off"; if (_arg3.choco_machines2.status == "prepared") { _arg3.choco_machines2.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function SpecialIdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.spl_preparecnt++; if (_arg3.spl_preparecnt >= 40) { clearInterval(_arg3.special_process_interval); _arg3.special_machineStatus = "ready"; _arg3.specialmachineshake = "off"; if (_arg3.special_choco_machines.status == "prepared") { _arg3.special_choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function CoffeeIdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.coffee_preparecnt++; if (_arg3.coffee_preparecnt >= 20) { clearInterval(_arg3.coffee_process_interval); _arg3.coffeeStatus = "ready"; _arg3.coffeemachineshake = "off"; _arg3.coffee_machine.status = "coffeeReady"; if (_global.soundstat == "onn") { _root.hotchoco_done_Sound.start(); } } } } function getRandom(_arg4, _arg5) { var _local3 = _arg5 - _arg4; var _local2 = Math.random() * _local3; var _local1 = Math.round(_local2); _local1 = _local1 + _arg4; return(_local1); } function StoreInSequence() { var owner = this; eval ("this." + moveTarget).onRelease(); } function CallSequence() { var owner = this; if (sequenceArr[0] == choco_machines) { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == choco_machines2) { if (((owner.isTargetReached && (owner.machine2Status == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines2"; owner.calculateAngle(owner.chomac_indicate2); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == special_choco_machines) { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == dusbin) { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == coffee_machine) { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.coffeeStatus == "ready")) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "coffee_machine"; owner.calculateAngle(owner.coffee_indicate); sequenceArr[0].pointer._visible = true; } } else if ((((sequenceArr[0] == table1) || (sequenceArr[0] == table2)) || (sequenceArr[0] == table3)) || (sequenceArr[0] == table4)) { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = sequenceArr[0]._name; owner.calculateAngle(sequenceArr[0]); if (owner.selectedTarget == "table1") { owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.selectedTable = 3; } else if (owner.selectedTarget == "table4") { owner.selectedTable = 4; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } } } function CallPause() { var _local3 = this; stopAllSounds(); _local3.bg.blink.gotoAndStop(_local3.bg.blink._currentframe); _local3.customer1.customer.gotoAndStop(_local3.customer1.customer._currentframe); _local3.customer2.customer.gotoAndStop(_local3.customer2.customer._currentframe); _local3.customer3.customer.gotoAndStop(_local3.customer3.customer._currentframe); _local3.special_choco_machines.machine1.blink.gotoAndStop(_local3.special_choco_machines.machine1.blink._currentframe); _local3.choco_machines.single_machine.blink.gotoAndStop(_local3.choco_machines.single_machine.blink._currentframe); _local3.salesGirl.coffeeicon.smoke.gotoAndStop(_local3.salesGirl.coffeeicon.smoke._currentframe); _local3.customer4.customer.gotoAndStop(_local3.customer4.customer._currentframe); _local3.coin_Anim1.coin.gotoAndStop(_local3.coin_Anim1.coin._currentframe); _local3.coin_Anim2.coin.gotoAndStop(_local3.coin_Anim2.coin._currentframe); _local3.coin_Anim3.coin.gotoAndStop(_local3.coin_Anim3.coin._currentframe); _local3.coin_Anim4.coin.gotoAndStop(_local3.coin_Anim4.coin._currentframe); _local3.comboClip.combo.gotoAndStop(_local3.comboClip.combo._currentframe); _local3.orderbook1.heartinClip.gotoAndStop(_local3.orderbook1.heartinClip._currentframe); _local3.orderbook2.heartinClip.gotoAndStop(_local3.orderbook2.heartinClip._currentframe); _local3.orderbook3.heartinClip.gotoAndStop(_local3.orderbook3.heartinClip._currentframe); _local3.orderbook4.heartinClip.gotoAndStop(_local3.orderbook4.heartinClip._currentframe); _local3.curScoreClip.gotoAndStop(_local3.curScoreClip._currentframe); _local3.coin_Anim1.coin.coin_rotate.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate._currentframe); _local3.coin_Anim1.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate2._currentframe); _local3.coin_Anim1.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate3._currentframe); _local3.coin_Anim1.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate4._currentframe); _local3.coin_Anim2.coin.coin_rotate.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate._currentframe); _local3.coin_Anim2.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate2._currentframe); _local3.coin_Anim2.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate3._currentframe); _local3.coin_Anim2.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate4._currentframe); _local3.coin_Anim3.coin.coin_rotate.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate._currentframe); _local3.coin_Anim3.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate2._currentframe); _local3.coin_Anim3.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate3._currentframe); _local3.coin_Anim3.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate4._currentframe); _local3.coin_Anim4.coin.coin_rotate.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate._currentframe); _local3.coin_Anim4.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate2._currentframe); _local3.coin_Anim4.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate3._currentframe); _local3.coin_Anim4.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate4._currentframe); _local3.comboClip.combo.coin_rotate.gotoAndStop(_local3.comboClip.combo.coin_rotate._currentframe); if (_local3.scoreIndicateClip._visible) { _local3.scoreIndicateClip.gotoAndStop(_local3.scoreIndicateClip._currentframe); } if (_local3.expertScoreClip._visible) { _local3.expertScoreClip.gotoAndStop(_local3.expertScoreClip._currentframe); } _global.ringvisible = phone_mc.ring._visible; phone_mc.ring._visible = false; _local3.chocolateClip.mc.gotoAndStop(_local3.chocolateClip.mc._currentframe); _local3.specialChocolateClip.mc.gotoAndStop(_local3.specialChocolateClip.mc._currentframe); _local3.chocolateClip2.mc.gotoAndStop(_local3.chocolateClip2.mc._currentframe); _local3.coffeeClip.gotoAndStop(_local3.coffeeClip._currentframe); } function CallResume() { var _local4 = this; if (_global.soundstat == "onn") { _root.gameSound.start(); } _local4.bg.blink.gotoAndPlay(_local4.bg.blink._currentframe); _local4.customer1.customer.gotoAndPlay(_local4.customer1.customer._currentframe); _local4.customer2.customer.gotoAndPlay(_local4.customer2.customer._currentframe); _local4.customer3.customer.gotoAndPlay(_local4.customer3.customer._currentframe); _local4.special_choco_machines.machine1.blink.gotoAndPlay(_local4.special_choco_machines.machine1.blink._currentframe); _local4.choco_machines.single_machine.blink.gotoAndPlay(_local4.choco_machines.single_machine.blink._currentframe); _local4.salesGirl.coffeeicon.smoke.gotoAndPlay(_local4.salesGirl.coffeeicon.smoke._currentframe); _local4.customer4.customer.gotoAndPlay(_local4.customer4.customer._currentframe); _local4.coin_Anim1.coin.gotoAndPlay(_local4.coin_Anim1.coin._currentframe - 1); _local4.coin_Anim2.coin.gotoAndPlay(_local4.coin_Anim2.coin._currentframe - 1); _local4.coin_Anim3.coin.gotoAndPlay(_local4.coin_Anim3.coin._currentframe - 1); _local4.coin_Anim4.coin.gotoAndPlay(_local4.coin_Anim4.coin._currentframe - 1); _local4.comboClip.combo.gotoAndPlay(_local4.comboClip.combo._currentframe - 1); _local4.orderbook1.heartinClip.gotoAndPlay(_local4.orderbook1.heartinClip._currentframe - 1); _local4.orderbook2.heartinClip.gotoAndPlay(_local4.orderbook2.heartinClip._currentframe - 1); _local4.orderbook3.heartinClip.gotoAndPlay(_local4.orderbook3.heartinClip._currentframe - 1); _local4.orderbook4.heartinClip.gotoAndPlay(_local4.orderbook4.heartinClip._currentframe - 1); _local4.curScoreClip.gotoAndPlay(_local4.curScoreClip._currentframe); _local4.coin_Anim1.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate._currentframe); _local4.coin_Anim1.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate2._currentframe); _local4.coin_Anim1.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate3._currentframe); _local4.coin_Anim1.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate4._currentframe); _local4.coin_Anim2.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate._currentframe); _local4.coin_Anim2.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate2._currentframe); _local4.coin_Anim2.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate3._currentframe); _local4.coin_Anim2.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate4._currentframe); _local4.coin_Anim3.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate._currentframe); _local4.coin_Anim3.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate2._currentframe); _local4.coin_Anim3.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate3._currentframe); _local4.coin_Anim3.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate4._currentframe); _local4.coin_Anim4.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate._currentframe); _local4.coin_Anim4.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate2._currentframe); _local4.coin_Anim4.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate3._currentframe); _local4.coin_Anim4.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate4._currentframe); _local4.comboClip.combo.coin_rotate.gotoAndPlay(_local4.comboClip.combo.coin_rotate._currentframe); if (_local4.scoreIndicateClip._visible) { _local4.scoreIndicateClip.gotoAndPlay(_local4.scoreIndicateClip._currentframe - 1); } if (_local4.expertScoreClip._visible) { _local4.expertScoreClip.gotoAndPlay(_local4.expertScoreClip._currentframe - 1); } phone_mc.ring._visible = _global.ringvisible; _local4.chocolateClip.mc.gotoAndPlay(_local4.chocolateClip.mc._currentframe - 1); _local4.specialChocolateClip.mc.gotoAndPlay(_local4.specialChocolateClip.mc._currentframe - 1); _local4.chocolateClip2.mc.gotoAndPlay(_local4.chocolateClip2.mc._currentframe - 1); _local4.coffeeClip.gotoAndPlay(_local4.coffeeClip._currentframe - 1); } function ObjectsRollOut() { table1.onRollOut(); table2.onRollOut(); table3.onRollOut(); table4.onRollOut(); phone_mc.onRollOut(); choco_machines.onRollOut(); choco_machines2.onRollOut(); dusbin.onRollOut(); coffee_machine.onRollOut(); special_choco_machines.onRollOut(); } function Reset() { targetclip = "table1"; lobbyArr.length = 0; lobbyArr = new Array(1, 2, 3); currentDirection = "down"; targetDirection = ""; isPopup = false; popup_info = "welcome"; clearInterval(popup_interval); clearInterval(special_process_interval); clearInterval(process_interval); popup_interval = -1; isTargetReached = true; selectedTarget = ""; orderno = 0; score = 0; ismoveready = false; orderTaken = 0; customerCount = 0; machineStatus = "notready"; dusbinStatus = "notready"; girlwalkframe = 2; isFirstServeFinished = false; depthArr.length = 0; depthArr = new Array(-10313, -10315, -10317); chocolateTypeArr.length = 0; chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); customerEnterset = "firstset"; moneyCount = 0; clearInterval(gameInterval); gametimer = 0; isGameOver = false; combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt = 0; curtarget = ""; clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); clearInterval(orderbook4.heatInterval); clearInterval(deliveryinterval); isPaused = false; sequenceArr.length = 0; sequenceArr = new Array(); girlspeed = 12; clearInterval(jumpInterval); clearInterval(phoneInterval); Key.removeListener(leve9Keyobj); keyTarget = undefined; phoneringcnt = 0; isphonecalled = false; } var targetclip = "table1"; var lobbyArr = new Array(1, 2, 3); var currentDirection = "down"; var isPopup = false; var popup_info = "welcome"; var popup_interval = -1; var process_interval = -1; var special_process_interval = -1; var isTargetReached = true; var selectedTarget = ""; var orderno = 0; var ismoveready = false; var orderTaken = 0; var customerCount = 0; var machineStatus = "notready"; var machine2Status = "notready"; var special_machineStatus = "notready"; var dusbinStatus = "notready"; var coffeeStatus = "notready"; var girlwalkframe = 2; var isFirstServeFinished = false; var score = 0; var depthArr = new Array(-10313, -10315, -10317); var chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); var customerEnterset = "firstset"; var moneyCount = 0; var gameInterval = -1; var gametimer = 0; var isGameOver = false; var combo_bookcnt = 0; var combo_ordercnt = 0; var combo_moneycnt = 0; var gamestartInterval = -1; var curtarget = ""; var customerEnterInterval = -1; var customerEnterInterval2 = -1; var reportInterval = -1; var isPaused = false; var coffee_process_interval = -1; var ringstat = "off"; var phone_status = "notready"; var machinespeed = 1; var machineshake = "off"; var specialmachineshake = "off"; var coffeemachineshake = "off"; var machine2shake = "off"; var specialmachinespeed = 1; var coffeemachinespeed = 1; var machine2speed = 1; var girlspeed = 12; var sequenceArr = new Array(); var customerEnterInterval3 = -1; var deliveryinterval = -1; var jumpInterval = -1; var tips = 0; var phoneInterval = -1; var process_interval2 = -1; var Re_customerEnterInterval = -1; var phoneringcnt = 0; var cusArr = new Array("younglady", "oldlady", "younglady"); var isphonecalled = false; var preparecnt = 0; var prepare2cnt = 0; var spl_preparecnt = 0; var coffee_preparecnt = 0; }
Symbol 1707 MovieClip [__Packages.Level10] Frame 0
class Level10 extends MovieClip { var dummy_highlight, deliveryboy, salesGirl, _parent, choco_machines, choco_machines2, special_choco_machines, coffee_machine, scoreIndicateClip, shopclosedClip, timerClip, chocolate_container, special_chocolate_container, coffeeClip, chocolateClip, chocolateClip2, popup_mc, selectClip, heartinClip, shopopenClip, reportMc, cancel_mc, infoClip, comboClip, dusbinContainer, curScoreClip, specialChocolateClip, expertScoreClip, table4, table3, table2, table1, coin_Anim4, coin_Anim3, coin_Anim2, coin_Anim1, dusbin, phone_mc, btn_pause, leve10Keyobj, keyTarget, pauseTarget, scoreClip, radian, targetDirection, preferred_chocolate1, preferred_chocolate2, customer4, orderbook4, attachMovie, getNextHighestDepth, customer1, orderbook1, customer2, orderbook2, customer3, orderbook3, selectedTable, re_entry, moveTarget; function Level10 () { super(); } function onLoad() { var owner = this; clearInterval(popup_interval); clearInterval(process_interval); Reset(); dummy_highlight._visible = false; deliveryboy._visible = false; salesGirl.coffeeicon._visible = false; _parent.pauseClip._visible = false; salesGirl.gotoAndStop(currentDirection); salesGirl.chocolateCount = 0; choco_machines.status = "empty"; choco_machines2.status = "empty"; special_choco_machines.status = "empty"; coffee_machine.status = "empty"; salesGirl.girlwalk.gotoAndStop(girlwalkframe); scoreIndicateClip._visible = false; shopclosedClip._visible = false; timerClip._visible = false; chocolate_container._visible = false; special_chocolate_container._visible = false; special_chocolate_container.mc.gotoAndStop(1); coffeeClip._visible = false; chocolateClip._visible = false; chocolateClip2._visible = false; popup_mc._visible = false; selectClip._visible = false; heartinClip._visible = false; shopopenClip._visible = false; reportMc._visible = false; cancel_mc._visible = false; infoClip._visible = false; comboClip._visible = false; dusbinContainer._visible = false; curScoreClip._visible = false; specialChocolateClip._visible = false; expertScoreClip._visible = false; table3._visible = (table4._visible = false); table2._visible = false; table1._visible = false; coin_Anim3._visible = (coin_Anim4._visible = false); coin_Anim2._visible = false; coin_Anim1._visible = false; table1.point = 1; table2.point = 2; table3.point = 3; table4.point = 4; choco_machines._visible = true; choco_machines.gotoAndStop(2); dusbin._visible = true; dusbin.gotoAndStop(2); special_choco_machines._visible = true; special_choco_machines.gotoAndStop(1); special_choco_machines.machine1.gotoAndStop(2); coffee_machine._visible = true; coffee_machine.gotoAndStop(2); choco_machines2._visible = true; choco_machines2.gotoAndStop(2); phone_mc._visible = true; owner.combo_ordercnt = 0; owner.combo_moneycnt = 0; owner.btn_pause._visible = true; owner.popupDisable(); var randomno = owner.getRandom(0, 2); owner.customerEnterInterval = setInterval(owner.CallCustomer, 1500, owner, owner.lobbyArr[randomno], "oldlady"); owner.lobbyArr.splice(randomno, 1); var randomno = owner.getRandom(0, owner.lobbyArr.length - 1); owner.customerEnterInterval2 = setInterval(owner.CallCustomer2, 2500, owner, owner.lobbyArr[randomno], "younglady"); owner.lobbyArr.splice(randomno, 1); owner.isPopup = false; owner.popup_info = "level2_start"; owner.bg.gotoAndStop(2); owner.shopopenClip._visible = true; owner.shopopenClip.gotoAndPlay(1); owner.ismoveready = true; owner.machineStatus = "ready"; owner.machine2Status = "ready"; owner.special_machineStatus = "ready"; owner.dusbinStatus = "ready"; owner.coffeeStatus = "ready"; owner.timerClip._visible = true; clearInterval(owner.gameInterval); owner.gametimer = 0; owner.gameInterval = setInterval(owner.GameTimeLimit, 750, owner); owner.Re_customerEnterInterval = setInterval(owner.CallNewCustomer, 3500, owner); owner.phone_mc.gotoAndStop(2); owner.phone_mc.ring.gotoAndStop(1); btn_pause.onRelease = function () { if (this._visible && (owner._parent.pauseClip._visible == false)) { owner.pauseTarget = "btn_continue"; owner.isPaused = true; owner.isPopup = true; this._visible = false; owner._parent.pauseClip._visible = true; owner._parent.pauseClip.gotoAndPlay(2); owner.CallPause(); } }; leve10Keyobj = new Object(); Key.addListener(leve10Keyobj); leve10Keyobj.onKeyUp = function () { if (Key.getCode() == 13) { if ((!owner.isPaused) && (!owner.isGameOver)) { owner.StoreInSequence(); } } }; leve10Keyobj.onKeyDown = function () { if (Key.getCode() == 37) { if (!owner.isPaused) { owner.LeftNavigation(); } } else if (Key.getCode() == 39) { if (!owner.isPaused) { owner.RightNavigation(); } } else if (Key.getCode() == 38) { if (!owner.isPaused) { owner.UpNavigation(); } else { owner.pauseUpNavigation(); } } else if (Key.getCode() == 40) { if (!owner.isPaused) { owner.DownNavigation(); } else { owner.pauseDownNavigation(); } } else if (Key.getCode() == 13) { if (owner.popup_mc._visible) { owner.popup_mc.btn_ok.onRelease(); } else if (owner.reportMc._visible) { if (owner.reportMc._currentframe == 1) { owner.reportMc.mc.btn_continue.onRelease(); } else { owner.reportMc.mc.btn_retry.onRelease(); } } else if (!owner.isPaused) { owner.EnterFunction(); } else { owner.PauseEnterFunction(); } } else if (Key.getAscii() == 27) { if (!owner.isPaused) { owner.btn_pause.onRelease(); } else if (owner.isPaused) { owner._parent.pauseClip.btn_continue.onRelease(); } } }; phone_mc.onRollOver = function () { if (((!owner.isPaused) && (owner.table4._visible == true)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); if (owner.ringstat == "off") { this.ring.gotoAndStop(1); eval ("owner.orderbook" + this.point).highlight.gotoAndStop(2); } else { this.gotoAndStop(3); } owner.moveTarget = "phone_mc"; } }; phone_mc.onRollOut = (phone_mc.onReleaseOutside = function () { this.gotoAndStop(2); if (owner.ringstat == "off") { this.ring.gotoAndStop(1); eval ("owner.orderbook" + this.point).highlight.gotoAndStop(1); } }); table1.onRollOver = (table2.onRollOver = (table3.onRollOver = (table4.onRollOver = function () { if ((!owner.isPaused) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = this._name; owner.moveTarget = this._name; eval ("this.orderbook" + this.point).highlight.gotoAndStop(2); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(2); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(2); } } }))); table1.onRollOut = (table2.onRollOut = (table3.onRollOut = (table4.onRollOut = function () { eval ("this.orderbook" + this.point).highlight.gotoAndStop(1); if (eval ("this.orderbook" + this.point).money_mc._currentframe == 2) { eval ("this.orderbook" + this.point).highlight_small.gotoAndStop(1); } else if (eval ("this.orderbook" + this.point).money_mc._currentframe == 3) { eval ("this.orderbook" + this.point).highlight_small_coin.gotoAndStop(1); } }))); choco_machines.onRollOver = function () { if (((owner.machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "choco_machines"; owner.moveTarget = "choco_machines"; this.gotoAndStop(3); owner.dummy_highlight._visible = true; } }; choco_machines.onRollOut = (choco_machines.onReleaseOutside = function () { this.gotoAndStop(2); owner.dummy_highlight._visible = false; }); choco_machines2.onRollOver = function () { if (((owner.machine2Status == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "choco_machines2"; owner.moveTarget = "choco_machines2"; this.gotoAndStop(3); } }; choco_machines2.onRollOut = (choco_machines2.onReleaseOutside = function () { this.gotoAndStop(2); }); dusbin.onRollOver = function () { if ((owner.dusbinStatus == "ready") && (!owner.isPaused)) { owner.ObjectsRollOut(); owner.keyTarget = "dusbin"; owner.moveTarget = "dusbin"; this.gotoAndStop(3); } }; dusbin.onRollOut = (dusbin.onReleaseOutside = function () { this.gotoAndStop(2); }); coffee_machine.onRollOver = function () { if (((owner.coffeeStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "coffee_machine"; owner.moveTarget = "coffee_machine"; this.gotoAndStop(3); } }; coffee_machine.onRollOut = (coffee_machine.onReleaseOutside = function () { this.gotoAndStop(2); }); special_choco_machines.onRollOver = function () { if (((owner.special_machineStatus == "ready") && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.ObjectsRollOut(); owner.keyTarget = "special_choco_machines"; owner.moveTarget = "special_choco_machines"; this.machine1.gotoAndStop(3); } }; special_choco_machines.onRollOut = (special_choco_machines.onReleaseOutside = function () { this.machine1.gotoAndStop(2); }); coffee_machine.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.coffee_machine); } }; coffee_machine.onPress = function () { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.coffeeStatus == "ready")) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "coffee_machine"; owner.calculateAngle(owner.coffee_indicate); this.pointer._visible = true; } }; choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.choco_machines); } }; choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); this.pointer._visible = true; } }; choco_machines2.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.choco_machines2); } }; choco_machines2.onPress = function () { if (((owner.isTargetReached && (owner.machine2Status == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines2"; owner.calculateAngle(owner.chomac_indicate2); this.pointer._visible = true; } }; special_choco_machines.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.special_choco_machines); } }; special_choco_machines.onPress = function () { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); this.pointer._visible = true; } }; dusbin.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(owner.dusbin); } }; dusbin.onPress = function () { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); this.pointer._visible = true; } }; table1.onRelease = (table2.onRelease = (table3.onRelease = (table4.onRelease = function () { if (((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) { owner.sequenceArr.push(this); } }))); table1.onPress = (table2.onPress = (table3.onPress = (table4.onPress = function () { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = this._name; if (owner.selectedTarget == "table1") { owner.calculateAngle(this); owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.calculateAngle(this); owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.calculateAngle(this); owner.selectedTable = 3; } else if (owner.selectedTarget == "table4") { owner.calculateAngle(owner.phone_indicate); owner.selectedTable = 4; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } }))); phone_mc.onRelease = function () { if ((((!owner.isPaused) && (owner.dusbinStatus == "ready")) && (!owner.isTargetReached)) && (owner.table4._visible == true)) { owner.sequenceArr.push(owner.phone_mc); } }; phone_mc.onPress = function () { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.table4._visible == true)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "table4"; owner.calculateAngle(owner.phone_indicate); owner.selectedTable = 4; } }; } function LeftNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_box") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_triangle.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOut(); eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOver(); } } else if (keyTarget == "coffee_machine") { coffee_machine.onRollOut(); if (table3._visible) { table3.onRollOver(); } else if (table2._visible) { table2.onRollOver(); } else if (table1._visible) { table1.onRollOver(); } else if (table4._visible) { table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); coffee_machine.onRollOver(); } else if (keyTarget == "choco_machines2") { choco_machines2.onRollOut(); choco_machines.onRollOver(); } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); choco_machines2.onRollOver(); } } function RightNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_box.onRollOver(); } } else if (special_chocolate_container._visible) { if (special_chocolate_container.mc.type_rabbit._currentframe == 2) { special_chocolate_container.mc.type_rabbit.onRollOut(); special_chocolate_container.mc.type_fish.onRollOver(); } else if (special_chocolate_container.mc.type_fish._currentframe == 2) { special_chocolate_container.mc.type_fish.onRollOut(); special_chocolate_container.mc.type_rabbit.onRollOver(); } } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRollOut(); eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRollOver(); } } else if (keyTarget == undefined) { coffee_machine.onRollOver(); } else if (keyTarget == "coffee_machine") { coffee_machine.onRollOut(); choco_machines.onRollOver(); } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); choco_machines2.onRollOver(); } else if (keyTarget == "choco_machines2") { choco_machines2.onRollOut(); special_choco_machines.onRollOver(); } else if ((((keyTarget == "table1") || (keyTarget == "table2")) || (keyTarget == "table3")) || (keyTarget == "table4")) { eval ("this." + keyTarget).onRollOut(); phone_mc.onRollOut(); coffee_machine.onRollOver(); } } function UpNavigation() { if (keyTarget == "table4") { if (table1._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOver(); } else if (table2._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table4.onRollOut(); phone_mc.onRollOut(); table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table1") { if (table2._visible) { table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table2") { if (table3._visible) { table2.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "dusbin") { dusbin.onRollOut(); special_choco_machines.onRollOver(); } } function DownNavigation() { if (keyTarget == "table3") { if (table2._visible) { table3.onRollOut(); table2.onRollOver(); } else if (table1._visible) { table3.onRollOut(); table1.onRollOver(); } else if (table4._visible) { table3.onRollOut(); table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "table2") { if (table1._visible) { table2.onRollOut(); table1.onRollOver(); } else if (table4._visible) { table2.onRollOut(); table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "table1") { if (table4._visible) { table1.onRollOut(); table4.onRollOver(); phone_mc.onRollOver(); } } else if (keyTarget == "special_choco_machines") { special_choco_machines.onRollOut(); dusbin.onRollOver(); } } function EnterFunction() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_triangle.onRelease(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_round.onRelease(); } else if (keyTarget == "type_box") { chocolate_container.mc.type_box.onRelease(); } } else if (special_chocolate_container._visible) { eval ("this.special_chocolate_container.mc." + keyTarget).onRelease(); } else if (dusbinContainer._visible) { if (keyTarget == _global.preferred_chocolate1) { eval ("this.dusbinContainer.mc.chocobox1." + _global.preferred_chocolate1).onRelease(); } else if (keyTarget == _global.preferred_chocolate2) { eval ("this.dusbinContainer.mc.chocobox2." + _global.preferred_chocolate2).onRelease(); } } else { eval ("this." + keyTarget).onPress(); } } function PauseEnterFunction() { eval ("this._parent.pauseClip." + pauseTarget).onRelease(); } function pauseUpNavigation() { if (pauseTarget == "btn_premium") { _parent.pauseClip.btn_premium.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_continue.onRollOver(); } } function pauseDownNavigation() { if (pauseTarget == "pause") { _parent.pauseClip.btn_continue.onRollOver(); } else if (pauseTarget == "btn_continue") { _parent.pauseClip.btn_continue.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_premium.onRollOver(); } } function updateScore() { scoreClip.score_txt.text = score; scoreClip.loading.gotoAndStop(score); if ((score >= 400) && (scoreClip.target._currentframe == 1)) { scoreClip.target.gotoAndPlay(1); scoreIndicateClip._visible = true; scoreIndicateClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.target_score_Sound.start(); } } if ((score >= 1180) && (scoreClip.expert._currentframe == 1)) { scoreClip.expert.gotoAndPlay(1); expertScoreClip._visible = true; expertScoreClip.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.expert_score_Sound.start(); } } } function onEnterFrame() { var owner = this; if (((!isPopup) && (!isTargetReached)) && (!owner.isPaused)) { shopperMovement(); } if (machineshake == "onn") { machinespeed = -machinespeed; choco_machines._x = choco_machines._x + ((2 * machinespeed) / 2); choco_machines._y = choco_machines._y + ((2 * machinespeed) / 2); } if (specialmachineshake == "onn") { specialmachinespeed = -specialmachinespeed; special_choco_machines._x = special_choco_machines._x + ((1 * specialmachinespeed) / 2); special_choco_machines._y = special_choco_machines._y + ((1 * specialmachinespeed) / 2); } else { special_choco_machines._x = 631; special_choco_machines._y = 101; } if (coffeemachineshake == "onn") { coffeemachinespeed = -coffeemachinespeed; coffee_machine._x = coffee_machine._x + ((1 * coffeemachinespeed) / 2); coffee_machine._y = coffee_machine._y + ((1 * coffeemachinespeed) / 2); } if (machine2shake == "onn") { machine2speed = -machine2speed; choco_machines2._x = choco_machines2._x + ((2 * machine2speed) / 2); choco_machines2._y = choco_machines2._y + ((2 * machine2speed) / 2); } _parent.pauseClip.btn_continue.onRollOver = (_parent.pauseClip.btn_restart.onRollOver = (_parent.pauseClip.btn_mainmenu.onRollOver = (_parent.pauseClip.btn_premium.onRollOver = function () { owner._parent.pauseClip.btn_continue.onRollOut(); owner._parent.pauseClip.btn_restart.onRollOut(); owner._parent.pauseClip.btn_mainmenu.onRollOut(); owner._parent.pauseClip.btn_premium.onRollOut(); owner.pauseTarget = this._name; this.gotoAndStop(2); }))); _parent.pauseClip.btn_continue.onRollOut = (_parent.pauseClip.btn_restart.onRollOut = (_parent.pauseClip.btn_mainmenu.onRollOut = (_parent.pauseClip.btn_premium.onRollOut = function () { this.gotoAndStop(1); }))); _parent.pauseClip.btn_continue.onRelease = function () { owner.isPaused = false; owner.isPopup = false; owner.btn_pause._visible = true; owner._parent.pauseClip._visible = false; owner.CallResume(); }; _parent.pauseClip.btn_restart.onRelease = function () { owner.Reset(); owner._parent.play(); }; _parent.pauseClip.btn_mainmenu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; _parent.pauseClip.btn_premium.onRelease = function () { this.getURL(_root.urlname, "_blank"); }; popup_mc.btn_ok.onRollOver = function () { this.gotoAndStop(2); }; popup_mc.btn_ok.onRollOut = (popup_mc.btn_ok.onReleaseOutside = function () { this.gotoAndStop(1); }); chocolate_container.mc.type_triangle.onRollOver = (chocolate_container.mc.type_round.onRollOver = (chocolate_container.mc.type_box.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.chocolate_container.mc.type_triangle.gotoAndStop(1); owner.chocolate_container.mc.type_round.gotoAndStop(1); owner.chocolate_container.mc.type_box.gotoAndStop(1); this.gotoAndStop(2); } })); chocolate_container.mc.type_triangle.onRelease = (chocolate_container.mc.type_round.onRelease = (chocolate_container.mc.type_box.onRelease = function () { if (!owner.isPaused) { if (owner.selectedTarget == "choco_machines") { owner.chocolateClip._visible = true; owner.chocolateClip.gotoAndStop(this._name); owner.chocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_box_chocolate = this._name; if (owner.choco_machines.status == "empty") { owner.choco_machines.status = "prepared"; } owner.machineshake = "onn"; owner.machineStatus = "ready"; owner.keyTarget = "choco_machines"; owner.preparecnt = 0; owner.process_interval = setInterval(owner.IdleProcess, 100, owner); } else if (owner.selectedTarget == "choco_machines2") { owner.chocolateClip2._visible = true; owner.chocolateClip2.gotoAndStop(this._name); owner.chocolateClip2.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_box2_chocolate = this._name; if (owner.choco_machines2.status == "empty") { owner.choco_machines2.status = "prepared"; } owner.machine2shake = "onn"; owner.machine2Status = "ready"; owner.keyTarget = "choco_machines2"; owner.prepare2cnt = 0; owner.process_interval2 = setInterval(owner.IdleProcess2, 100, owner); } owner.chocolate_container.gotoAndStop(2); owner.isPopup = false; owner.dusbinStatus = "ready"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } })); chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.machineStatus = "ready"; owner.machine2Status = "ready"; owner.chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; if (owner.selectedTarget == "choco_machines") { owner.keyTarget = "choco_machines"; } else { owner.keyTarget = "choco_machines2"; } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; special_chocolate_container.mc.type_rabbit.onRollOver = (special_chocolate_container.mc.type_fish.onRollOver = function () { if (!owner.isPaused) { owner.keyTarget = this._name; owner.special_chocolate_container.mc.type_rabbit.gotoAndStop(1); owner.special_chocolate_container.mc.type_fish.gotoAndStop(1); this.gotoAndStop(2); } }); special_chocolate_container.mc.type_rabbit.onRelease = (special_chocolate_container.mc.type_fish.onRelease = function () { if (!owner.isPaused) { owner.infoClip._visible = false; owner.specialChocolateClip._visible = true; owner.specialChocolateClip.gotoAndStop(this._name); owner.specialChocolateClip.mc.gotoAndPlay(1); owner.isTargetReached = true; owner.preferred_special_chocolate = this._name; if (owner.special_choco_machines.status == "empty") { owner.special_choco_machines.status = "prepared"; } owner.spl_preparecnt = 0; owner.special_process_interval = setInterval(owner.SpecialIdleProcess, 100, owner); owner.special_chocolate_container.gotoAndStop(2); owner.isPopup = false; owner.dusbinStatus = "ready"; owner.special_machineStatus = "ready"; owner.specialmachineshake = "onn"; owner.keyTarget = "special_choco_machines"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }); special_chocolate_container.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.special_machineStatus = "ready"; owner.special_chocolate_container._visible = false; owner.isPopup = false; owner.dusbinStatus = "ready"; owner.keyTarget = "special_choco_machines"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; dusbinContainer.mc.chocobox1.type_triangle.onRollOver = (dusbinContainer.mc.chocobox1.type_round.onRollOver = (dusbinContainer.mc.chocobox1.type_box.onRollOver = (dusbinContainer.mc.chocobox2.type_triangle.onRollOver = (dusbinContainer.mc.chocobox2.type_round.onRollOver = (dusbinContainer.mc.chocobox2.type_box.onRollOver = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox1.type_fish.onRollOver = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOver = (dusbinContainer.mc.chocobox2.type_fish.onRollOver = function () { owner.keyTarget = this._name; this.gotoAndStop(2); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRollOut = (dusbinContainer.mc.chocobox1.type_round.onRollOut = (dusbinContainer.mc.chocobox1.type_box.onRollOut = (dusbinContainer.mc.chocobox2.type_triangle.onRollOut = (dusbinContainer.mc.chocobox2.type_round.onRollOut = (dusbinContainer.mc.chocobox2.type_box.onRollOut = (dusbinContainer.mc.chocobox1.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox1.type_fish.onRollOut = (dusbinContainer.mc.chocobox2.type_rabbit.onRollOut = (dusbinContainer.mc.chocobox2.type_fish.onRollOut = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_triangle.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_round.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_box.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox1.type_fish.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_rabbit.onReleaseOutside = (dusbinContainer.mc.chocobox2.type_fish.onReleaseOutside = function () { this.gotoAndStop(1); }))))))))); dusbinContainer.mc.chocobox1.type_triangle.onRelease = (dusbinContainer.mc.chocobox1.type_round.onRelease = (dusbinContainer.mc.chocobox1.type_box.onRelease = (dusbinContainer.mc.chocobox2.type_triangle.onRelease = (dusbinContainer.mc.chocobox2.type_round.onRelease = (dusbinContainer.mc.chocobox2.type_box.onRelease = (dusbinContainer.mc.chocobox1.type_rabbit.onRelease = (dusbinContainer.mc.chocobox1.type_fish.onRelease = (dusbinContainer.mc.chocobox2.type_rabbit.onRelease = (dusbinContainer.mc.chocobox2.type_fish.onRelease = function () { if (!owner.isPaused) { if (this._name == owner.preferred_chocolate1) { owner.preferred_chocolate1 = owner.preferred_chocolate2; owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } else { owner.preferred_chocolate2 = null; owner.salesGirl.chocolateCount--; owner.girlwalkframe = owner.girlwalkframe / 2; owner.salesGirl.girlwalk.gotoAndStop(owner.girlwalkframe); owner.salesGirl.girlwalk.chocobox1.gotoAndStop(owner.preferred_chocolate1); owner.salesGirl.girlwalk.chocobox2.gotoAndStop(owner.preferred_chocolate2); } owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }))))))))); dusbinContainer.mc.btn_close.onRelease = function () { if (!owner.isPaused) { owner.dusbinStatus = "ready"; owner.dusbinContainer._visible = false; owner.isPopup = false; owner.keyTarget = "dusbin"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } }; reportMc.mc.btn_continue.onRelease = function () { owner.Reset(); _global.calenderfrom = "game"; stopAllSounds(); owner._parent.gotoAndStop("upshell"); }; reportMc.mc.btn_menu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; reportMc.mc.btn_retry.onRelease = function () { owner.Reset(); owner._parent.play(); }; popup_mc.btn_ok.onRelease = function () { if (owner.popup_info == "welcome") { owner.btn_pause._visible = true; owner.popupDisable(); var _local1 = owner.getRandom(0, 2); owner.customerEnterInterval = setInterval(owner.CallCustomer, 2000, owner, owner.lobbyArr[_local1], "oldlady"); owner.isPopup = false; owner.popup_info = "level2_start"; owner.bg.gotoAndStop(2); owner.shopopenClip._visible = true; owner.shopopenClip.gotoAndPlay(1); owner.ismoveready = true; owner.machineStatus = "ready"; owner.machine2Status = "ready"; owner.special_machineStatus = "ready"; owner.dusbinStatus = "ready"; owner.coffeeStatus = "ready"; owner.timerClip._visible = true; clearInterval(owner.gameInterval); owner.gametimer = 0; owner.gameInterval = setInterval(owner.GameTimeLimit, 1000, owner); owner.phone_mc.gotoAndStop(2); owner.phone_mc.ring.gotoAndStop(1); } else if (owner.popup_info == "order") { owner.popupDisable(); owner.isPopup = false; owner.popup_info = ""; owner.selectClip._visible = true; owner.selectClip._x = owner.choco_machines._x; owner.selectClip._y = owner.choco_machines._y - 80; } else if (owner.popup_info == "mismatch") { owner.popupDisable(); owner.isPopup = false; } }; } function shopperMovement() { var _local3 = (salesGirl._x + salesGirl.pointer._x) - targetclip._x; var _local2 = (salesGirl._y + salesGirl.pointer._y) - targetclip._y; var _local5 = Math.sqrt((_local2 * _local2) + (_local3 * _local3)); var _local4 = 10; if (_local5 >= _local4) { salesGirl._x = salesGirl._x + (Math.cos(radian) * girlspeed); salesGirl._y = salesGirl._y + (Math.sin(radian) * girlspeed); } else if (!isTargetReached) { isTargetReached = true; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); Manipulate(); updateScore(); } } function GameStart(_arg2) { clearInterval(_arg2.gamestartInterval); _arg2.isPopup = true; _global.popupText = "Select the PHONE to answer a call. Take the order of the client and prepare it. A delivery boy will pick it up later."; _arg2.ShowPopup(_arg2); } function calculateAngle(mc) { if (!isPopup) { targetclip = mc; var x_diff = (eval (mc)._x - (salesGirl._x + salesGirl.pointer._x)); var y_diff = (eval (mc)._y - (salesGirl._y + salesGirl.pointer._y)); radian = Math.atan2(y_diff, x_diff); if (Math.abs(x_diff) > Math.abs(y_diff)) { if (x_diff > 0) { targetDirection = "right"; } else { targetDirection = "left"; } } else if (y_diff > 0) { targetDirection = "down"; } else { targetDirection = "up"; } if (curtarget != selectedTarget) { curtarget = selectedTarget; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe - 1); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); } } } function ShowPopup(_arg1) { clearInterval(_arg1.popup_interval); _arg1.isPopup = true; _arg1.popup_mc._visible = true; _arg1.popup_mc.swapDepths(_arg1.getNextHighestDepth()); _arg1.popup_mc.gotoAndPlay(1); } function popupDisable() { popup_mc.gotoAndStop(1); popup_mc._visible = false; } function CallNewCustomer(_arg2) { if (!_arg2.isGameOver) { if (_arg2.table4._visible) { var _local1 = 0; while (_local1 < _arg2.lobbyArr.length) { if (_arg2.lobbyArr[_local1] == 1) { _arg2.lobbyArr.splice(_local1, 1); } _local1++; } } if ((_arg2.customerCount != 0) && (_arg2.moneyCount != 0)) { _arg2.CallNextCustomerSet(); } } else { clearInterval(_arg2.Re_customerEnterInterval); } } function CallCustomer(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function CallCustomer2(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval2); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function CallCustomer3(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval3); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function Re_CallCustomer(_arg1, _arg3, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.Re_customerEnterInterval); if (!_arg1.isGameOver) { _arg1.customerEnter(_arg3, _arg2); } else if ((_arg1.customerCount == 0) && (_arg1.moneyCount == 0)) { _arg1.callResult(); } } } function customerEnter(_arg5, _arg4) { if (!isGameOver) { if (_arg4 == "phoneorder") { isphonecalled = true; ringstat = "onn"; phone_mc._visible = true; table4._visible = true; customer4 = phone_mc; phone_mc.ring._visible = true; phone_mc.ring.gotoAndPlay(2); orderbook4 = attachMovie("orderbook", "orderbook4", getNextHighestDepth(), {_x:170, _y:400}); orderbook4._visible = false; orderbook4.type = "phone"; customer4.type = _arg4; orderbook4.heatcnt = 0; orderbook4.heatInterval = setInterval(HeatFunction, 400, orderbook4, this, 4); phoneringcnt = 0; phoneInterval = setInterval(HidePhoneOrder, 1000, this); if (_global.soundstat == "onn") { _root.phonering_Sound.start(); } } else if (_arg5 == 1) { table1._visible = true; customer1 = attachMovie(_arg4, "customer1", depthArr[_arg5 - 1], {_x:115, _y:356}); orderbook1 = attachMovie("orderbook", "orderbook1", getNextHighestDepth(), {_x:170, _y:374}); orderbook1.type = "book"; customer1.type = _arg4; orderbook1.heatcnt = 0; if (_arg4 == "oldlady") { orderbook1.heatInterval = setInterval(HeatFunction, 400, orderbook1, this, 1); } else if (_arg4 == "younglady") { orderbook1.heatInterval = setInterval(HeatFunction, 200, orderbook1, this, 1); } } else if (_arg5 == 2) { table2._visible = true; customer2 = attachMovie(_arg4, "customer2", depthArr[_arg5 - 1], {_x:119, _y:235}); orderbook2 = attachMovie("orderbook", "orderbook2", getNextHighestDepth(), {_x:177, _y:278}); orderbook2.type = "book"; customer2.type = _arg4; orderbook2.heatcnt = 0; if (_arg4 == "oldlady") { orderbook2.heatInterval = setInterval(HeatFunction, 400, orderbook2, this, 2); } else if (_arg4 == "younglady") { orderbook2.heatInterval = setInterval(HeatFunction, 200, orderbook2, this, 2); } } else if (_arg5 == 3) { table3._visible = true; customer3 = attachMovie(_arg4, "customer3", depthArr[_arg5 - 1], {_x:127, _y:140}); orderbook3 = attachMovie("orderbook", "orderbook3", getNextHighestDepth(), {_x:184, _y:185}); orderbook3.type = "book"; customer3.type = _arg4; orderbook3.heatcnt = 0; if (_arg4 == "oldlady") { orderbook3.heatInterval = setInterval(HeatFunction, 400, orderbook3, this, 3); } else if (_arg4 == "younglady") { orderbook3.heatInterval = setInterval(HeatFunction, 200, orderbook3, this, 3); } } customerCount++; moneyCount++; orderTaken++; trace((("in cus enter=" + customerCount) + ", ") + moneyCount); salesGirl.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); chocolate_container.swapDepths(getNextHighestDepth()); special_chocolate_container.swapDepths(getNextHighestDepth()); dusbinContainer.swapDepths(getNextHighestDepth()); comboClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); } } function HidePhoneOrder(owner) { if (!owner.isPaused) { owner.phoneringcnt++; if (owner.phoneringcnt >= 20) { clearInterval(owner.phoneInterval); clearInterval(owner.orderbook4.heatInterval); owner.moneyCount--; owner.customerCount--; owner.orderbook4._visible = false; owner.table4._visible = false; owner.orderbook4.type = "empty"; owner.ringstat = "off"; owner.phone_mc.ring.gotoAndStop(1); _root.phonering_Sound.stop(); if ((owner.customerCount == 0) && (owner.moneyCount == 0)) { if (!owner.isGameOver) { owner.CallNextCustomerSet(); } else { owner.callResult(); } } } } } function Manipulate() { var owner = this; if (selectedTarget == "coffee_machine") { coffee_machine.pointer._visible = false; if (coffee_machine.status == "empty") { coffee_machine.status = "prepared"; coffeeClip._visible = true; coffeeClip.gotoAndPlay(2); owner.isTargetReached = true; owner.coffee_preparecnt = 0; owner.coffee_process_interval = setInterval(owner.CoffeeIdleProcess, 100, owner); owner.isPopup = false; owner.coffeemachineshake = "onn"; owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (coffee_machine.status == "coffeeReady") { coffeeClip._visible = false; coffee_machine.status = "empty"; salesGirl.coffeeicon._visible = false; girlspeed = 12; orderTaken = 0; salesGirl.gotoAndStop(2); if (salesGirl.chocolateCount == 0) { girlwalkframe = 9; } else if (salesGirl.chocolateCount == 1) { girlwalkframe = 10; } else if (salesGirl.chocolateCount == 2) { girlwalkframe = 11; } salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.jumpLady.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.jumpLady.chocobox2.gotoAndStop(preferred_chocolate2); owner.machineStatus = "notready"; owner.special_machineStatus = "notready"; owner.dusbinStatus = "notready"; owner.coffeeStatus = "notready"; owner.isPopup = true; jumpInterval = setInterval(JumpFinished, 1100, this); } } else if (selectedTarget == "choco_machines") { choco_machines.pointer._visible = false; if (choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_round"; } } else if (choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_box_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_box_chocolate; } owner.salesGirl.chocolateCount++; chocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { if (orderbook1.book_mc._currentframe == 74) { orderbook1.green_highlight._visible = true; } } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { if (orderbook2.book_mc._currentframe == 74) { orderbook2.green_highlight._visible = true; } } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { if (orderbook3.book_mc._currentframe == 74) { orderbook3.green_highlight._visible = true; } } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { if (orderbook4.book_mc._currentframe == 74) { orderbook4.green_highlight._visible = true; } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "choco_machines2") { choco_machines2.pointer._visible = false; if (choco_machines2.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machine2Status = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_round"; } } else if (choco_machines2.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_box2_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_box2_chocolate; } owner.salesGirl.chocolateCount++; chocolateClip2._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); choco_machines2.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "special_choco_machines") { special_choco_machines.pointer._visible = false; if (special_choco_machines.status == "empty") { if (owner.salesGirl.chocolateCount < 3) { special_chocolate_container._visible = true; special_chocolate_container.gotoAndStop(1); special_chocolate_container.mc.gotoAndPlay(1); special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; keyTarget = "type_rabbit"; } } else if (special_choco_machines.status == "chocolateReady") { if (owner.salesGirl.chocolateCount < 2) { if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = owner.preferred_special_chocolate; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = owner.preferred_special_chocolate; } owner.salesGirl.chocolateCount++; specialChocolateClip._visible = false; salesGirl.gotoAndStop(2); girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); special_choco_machines.status = "empty"; if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } else if (selectedTarget == "dusbin") { dusbin.pointer._visible = false; if (salesGirl.chocolateCount == 1) { salesGirl.chocolateCount--; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); preferred_chocolate1 = null; preferred_chocolate2 = null; owner.setGreenHighLight(); owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } else if (salesGirl.chocolateCount >= 2) { dusbinStatus = "notready"; isPopup = true; _global.preferred_chocolate1 = preferred_chocolate1; _global.preferred_chocolate2 = preferred_chocolate2; keyTarget = _global.preferred_chocolate1; dusbinContainer._visible = true; dusbinContainer.gotoAndStop(1); dusbinContainer.mc.gotoAndPlay(1); } } else if ((((selectedTarget == "table1") || (selectedTarget == "table2")) || (selectedTarget == "table3")) || (selectedTarget == "table4")) { eval ("this.orderbook" + selectedTable).pointer._visible = false; if (eval ("this.orderbook" + selectedTable).type == "phone") { isphonecalled = true; _root.phonering_Sound.stop(); clearInterval(phoneInterval); combo_bookcnt++; combo_ordercnt = 0; combo_moneycnt = 0; ringstat = "off"; phone_mc.ring.gotoAndStop(1); eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; var randomno = owner.getRandom(0, 4); eval ("this.orderbook" + selectedTable)._visible = true; eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.customer" + selectedTable).gotoAndStop(2); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); var heatcntchange = int(eval ("this.orderbook" + selectedTable).heatcnt / 4); if (heatcntchange > 1) { eval ("this.orderbook" + selectedTable).heatcnt = heatcntchange; } else { eval ("this.orderbook" + selectedTable).heatcnt = 1; } CheckForBookCombo(); } else if (eval ("this.orderbook" + selectedTable).type == "book") { combo_bookcnt++; combo_ordercnt = 0; combo_moneycnt = 0; eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; var randomno = owner.getRandom(0, 4); eval ("this.orderbook" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.customer" + selectedTable).neededchocolate = chocolateTypeArr[randomno]; eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.customer" + selectedTable).gotoAndStop(3); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); var heatcntchange = int(eval ("this.orderbook" + selectedTable).heatcnt / 4); if (heatcntchange > 1) { eval ("this.orderbook" + selectedTable).heatcnt = heatcntchange; } else { eval ("this.orderbook" + selectedTable).heatcnt = 1; } CheckForBookCombo(); } else if (eval ("this.orderbook" + selectedTable).type == "chocolateOrder") { if ((salesGirl.chocolateCount >= 1) && (eval ("this.orderbook" + selectedTable).book_mc._currentframe >= 74)) { combo_bookcnt = 0; combo_moneycnt = 0; if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate1) { combo_ordercnt++; preferred_chocolate1 = preferred_chocolate2; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); if (selectedTarget == "table4") { orderbook4.type = "none"; orderbook4.temp_box._visible = false; orderbook4.green_highlight._visible = false; orderbook4.highlight._visible = false; orderbook4.timelimit._visible = false; phone_mc.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); deliveryboy._visible = true; deliveryboy.gotoAndPlay(2); clearInterval(deliveryinterval); deliveryinterval = setInterval(callDeliveryBoy, 1500, this); } else { eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { if (table4._visible) { var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; if (salesGirl.chocolateCount == 1) { preferred_chocolate1 = null; } salesGirl.chocolateCount--; owner.setGreenHighLight(); } else if (eval ("owner.customer" + owner.selectedTable).neededchocolate == owner.preferred_chocolate2) { combo_ordercnt++; salesGirl.chocolateCount--; preferred_chocolate2 = null; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); if (selectedTarget == "table4") { orderbook4.type = "none"; orderbook4.temp_box._visible = false; orderbook4.green_highlight._visible = false; orderbook4.highlight._visible = false; orderbook4.timelimit._visible = false; phone_mc.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); expertScoreClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); deliveryboy._visible = true; deliveryboy.gotoAndPlay(2); clearInterval(deliveryinterval); deliveryinterval = setInterval(callDeliveryBoy, 1500, this); } else { eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); if ((eval ("this.orderbook" + selectedTable).heatcnt > 60) && (eval ("this.orderbook" + selectedTable).heatcnt <= 100)) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(2); eval ("this.orderbook" + selectedTable).highlight._visible = false; } else if (eval ("this.orderbook" + selectedTable).heatcnt > 100) { eval ("this.orderbook" + selectedTable).money_mc.gotoAndStop(3); eval ("this.orderbook" + selectedTable).highlight._visible = false; eval ("this.orderbook" + selectedTable).highlight_small._visible = false; } if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } if (!isGameOver) { if (table4._visible) { var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } clearInterval(eval ("this.orderbook" + selectedTable).heatInterval); CheckForOrderCombo(); customerCount--; owner.setGreenHighLight(); } } } else if (eval ("this.orderbook" + selectedTable).type == "money") { combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt++; trace((("money before=" + customerCount) + ", ") + moneyCount); moneyCount--; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(2); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable)._visible = false; eval ("this.table" + selectedTable)._visible = false; eval ("this.orderbook" + selectedTable).type = "empty"; if (owner.selectedTarget != "table4") { eval ("this.customer" + selectedTable)._visible = false; } CheckForMoneyCombo(); if (orderTaken >= 6) { salesGirl.coffeeicon._visible = true; girlspeed = 6; } if (selectedTable != 4) { lobbyArr.push(selectedTable); } else if (table1._visible == false) { lobbyArr.push(1); } trace((("money after=" + customerCount) + ", ") + moneyCount); if ((customerCount == 0) && (moneyCount == 0)) { if (!isGameOver) { customerCount = 0; moneyCount = 0; owner.table2._visible = (owner.table3._visible = false); owner.table1._visible = false; CallNextCustomerSet(); } else { callResult(); } } else if (isGameOver) { if ((((table1._visible == false) && (table2._visible == false)) && (table3._visible == false)) && (table4._visible == false)) { callResult(); } } } owner.sequenceArr.splice(0, 1); if (owner.sequenceArr.length >= 1) { owner.CallSequence(); } } } function ReEntry() { var _local2 = this; var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); if (table4._visible) { _local3 = 1; } else { _local3 = 0; } _local2.Re_customerEnterInterval = setInterval(_local2.Re_CallCustomer, 100, _local2, _local2.lobbyArr[_local3], "younglady"); _local2.lobbyArr.splice(_local3, 1); } function CallNextCustomerSet() { var _local2 = this; if (lobbyArr.length >= 1) { if (lobbyArr.length == 1) { if (((!isphonecalled) && (table4._visible == false)) && (table1._visible == false)) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], "phoneorder"); } else { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } else if (lobbyArr.length == 2) { re_entry = "onn"; if (((!isphonecalled) && (table4._visible == false)) && (table1._visible == false)) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); if (_local2.lobbyArr[0] == 1) { _local3 = 1; } else if (_local2.lobbyArr[1] == 1) { _local3 = 0; } clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], "phoneorder"); } else { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 100, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } else if (lobbyArr.length == 3) { var _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); var _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval); _local2.customerEnterInterval = setInterval(_local2.CallCustomer, 1000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval2); _local2.customerEnterInterval2 = setInterval(_local2.CallCustomer2, 2000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); _local3 = _local2.getRandom(0, _local2.lobbyArr.length - 1); _local4 = Math.ceil((Math.random() * 3) - 1); clearInterval(_local2.customerEnterInterval3); _local2.customerEnterInterval3 = setInterval(_local2.CallCustomer3, 4000, _local2, _local2.lobbyArr[_local3], _local2.cusArr[_local4]); _local2.lobbyArr.splice(_local3, 1); } } } function callDeliveryBoy(owner) { clearInterval(owner.deliveryinterval); owner.orderbook4.type = "money"; owner.coin_Anim4._visible = true; owner.coin_Anim4.gotoAndStop(1); owner.coin_Anim4.coin.gotoAndPlay(1); owner.orderbook4.gotoAndStop(3); if ((owner.orderbook4.heatcnt > 60) && (owner.orderbook4.heatcnt <= 100)) { owner.orderbook4.money_mc.gotoAndStop(2); owner.orderbook4.highlight._visible = false; } else if (owner.orderbook4.heatcnt > 100) { owner.orderbook4.money_mc.gotoAndStop(3); owner.orderbook4.highlight._visible = false; owner.orderbook4.highlight_small._visible = false; } if (!owner.isGameOver) { if (owner.table4._visible) { var i = 0; while (i < owner.lobbyArr.length) { if (owner.lobbyArr[i] == 1) { owner.lobbyArr.splice(i, 1); } i++; } } owner.CallNextCustomerSet(); } } function JumpFinished(_arg1) { clearInterval(_arg1.jumpInterval); _arg1.machineStatus = "ready"; _arg1.special_machineStatus = "ready"; _arg1.dusbinStatus = "ready"; _arg1.coffeeStatus = "ready"; _arg1.isPopup = false; _arg1.sequenceArr.splice(0, 1); if (_arg1.sequenceArr.length >= 1) { _arg1.CallSequence(); } } function setGreenHighLight() { if (orderbook1.book_mc._currentframe >= 74) { if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } else { orderbook1.green_highlight._visible = false; } } if (orderbook2.book_mc._currentframe >= 74) { if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } else { orderbook2.green_highlight._visible = false; } } if (orderbook3.book_mc._currentframe >= 74) { if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } else { orderbook3.green_highlight._visible = false; } } if (orderbook4.book_mc._currentframe >= 74) { if ((orderbook4.neededchocolate == preferred_chocolate1) || (orderbook4.neededchocolate == preferred_chocolate2)) { orderbook4.green_highlight._visible = true; } else { orderbook4.green_highlight._visible = false; } } } function callResult() { clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); clearInterval(orderbook4.heatInterval); clearInterval(deliveryinterval); clearInterval(jumpInterval); clearInterval(phoneInterval); machineStatus = "notready"; special_machineStatus = "notready"; dusbinStatus = "notready"; isPopup = true; _global.report_moneyEarned = score; _global.report_tips = tips; _global.targetScore = 400; _global.expertScore = 1180; btn_pause._visible = false; dusbinStatus = "notready"; score = score + tips; if (score < 400) { reportMc._visible = true; reportMc.gotoAndStop(2); reportMc.mc.gotoAndPlay(2); if (_global.soundstat == "onn") { _root.level_failed_Sound.start(); } } else { if (_global.soundstat == "onn") { _root.level_complete_Sound.start(); } if (_global.levelSelected < 11) { _global.levelSelected = 11; } if (_global.levelFinished <= 10) { _global.levelFinished = 10; } if (score >= 1180) { _global.level10Status = "expert"; } else { _global.level10Status = "target"; } _global.level10Score = score; if (((score >= 400) && (scoreClip.target._currentframe == 1)) || ((score >= 1180) && (scoreClip.expert._currentframe == 1))) { reportInterval = setInterval(CallReport, 2300, this); } else { reportMc._visible = true; reportMc.gotoAndStop(1); reportMc.mc.gotoAndPlay(2); } } } function CallReport(_arg1) { clearInterval(_arg1.reportInterval); _arg1.reportMc._visible = true; _arg1.reportMc.gotoAndStop(1); _arg1.reportMc.mc.gotoAndPlay(2); } function HeatFunction(owner, myparent, curpoint) { if (!myparent.isPaused) { owner.heatcnt++; owner.timelimit.gotoAndStop(owner.heatcnt); if (owner.heatcnt == 100) { eval ("myparent.customer" + curpoint).gotoAndStop(4); } if (owner.heatcnt >= 120) { clearInterval(owner.heatInterval); trace((("lose before=" + myparent.customerCount) + ", ") + myparent.moneyCount); myparent.moneyCount--; myparent.customerCount--; trace((("lose after=" + myparent.customerCount) + ", ") + myparent.moneyCount); eval ("myparent.orderbook" + curpoint)._visible = false; eval ("myparent.table" + curpoint)._visible = false; if (eval ("myparent.customer" + curpoint).type == "oldlady") { eval ("myparent.customer" + curpoint).gotoAndStop(6); if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 10)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 10) { myparent.score = myparent.score - 10; myparent.curScoreClip.disp.score.text = -10; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } else if (eval ("myparent.customer" + curpoint).type == "younglady") { eval ("myparent.customer" + curpoint).gotoAndStop(6); if (myparent.score > 0) { myparent.curScoreClip._visible = true; myparent.curScoreClip.gotoAndPlay(1); if ((myparent.score >= 2) && (myparent.score < 15)) { myparent.score = myparent.score - 2; myparent.curScoreClip.disp.score.text = -2; } else if (myparent.score >= 15) { myparent.score = myparent.score - 15; myparent.curScoreClip.disp.score.text = -15; } myparent.scoreClip.score_txt.text = myparent.score; myparent.scoreClip.loading.gotoAndStop(myparent.score); } } eval ("myparent.orderbook" + curpoint).type = "empty"; myparent.lobbyArr.push(curpoint); if ((myparent.customerCount == 0) && (myparent.moneyCount == 0)) { if (!myparent.isGameOver) { myparent.CallNextCustomerSet(); } else { myparent.callResult(); } } } } } function GameTimeLimit(_arg1) { if (!_arg1.isPaused) { _arg1.gametimer++; _arg1.timerClip.gotoAndStop(_arg1.gametimer); if (_arg1.gametimer >= 90) { _arg1.isGameOver = true; _arg1.bg.gotoAndStop(1); _arg1.shopclosedClip._visible = true; _arg1.shopclosedClip.gotoAndPlay(1); _arg1.gametimer = 0; clearInterval(_arg1.gameInterval); } } } function CheckForBookCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_bookcnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_bookcnt); comboClip.combo.gotoAndPlay(1); score = score + 4; curScoreClip.disp.score.text = 4; tips = tips + 4; } else { score = score + 2; curScoreClip.disp.score.text = 2; tips = tips + 2; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_bookcnt) + "_Sound").start(); } } function CheckForOrderCombo() { curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_ordercnt >= 2) { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_ordercnt); comboClip.combo.gotoAndPlay(1); score = score + 20; curScoreClip.disp.score.text = 20; } else { score = score + 10; curScoreClip.disp.score.text = 10; } if (_global.soundstat == "onn") { eval (("_root.combo" + combo_ordercnt) + "_Sound").start(); } } function CheckForMoneyCombo() { if (_global.soundstat == "onn") { eval (("_root.money" + combo_moneycnt) + "_Sound").start(); } curScoreClip._visible = true; curScoreClip.gotoAndPlay(1); if (combo_moneycnt >= 2) { comboClip._x = eval ("this.orderbook" + selectedTable)._x - 20; comboClip._y = eval ("this.orderbook" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop(combo_moneycnt); comboClip.combo.gotoAndPlay(1); if (eval ("this.orderbook" + selectedTable).neededchocolate == "type_rabbit") { score = score + (combo_moneycnt * 30); curScoreClip.disp.score.text = combo_moneycnt * 30; } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 14); curScoreClip.disp.score.text = combo_moneycnt * 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 11); curScoreClip.disp.score.text = combo_moneycnt * 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 10); curScoreClip.disp.score.text = combo_moneycnt * 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + (combo_moneycnt * 24); curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + (combo_moneycnt * 21); curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + (combo_moneycnt * 17); curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + (combo_moneycnt * 15); curScoreClip.disp.score.text = combo_moneycnt * 15; } } if (!isGameOver) { if (table4._visible) { var i = 0; while (i < lobbyArr.length) { if (lobbyArr[i] == 1) { lobbyArr.splice(i, 1); } i++; } } CallNextCustomerSet(); } } else if (eval ("this.customer" + selectedTable).type == "oldlady") { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 17; curScoreClip.disp.score.text = 17; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 14; curScoreClip.disp.score.text = 14; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 11; curScoreClip.disp.score.text = 11; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 10; curScoreClip.disp.score.text = 10; } } else { var myheatcnt = eval ("this.orderbook" + selectedTable).heatcnt; if ((myheatcnt >= 0) && (myheatcnt <= 30)) { score = score + 24; curScoreClip.disp.score.text = combo_moneycnt * 24; } else if ((myheatcnt > 30) && (myheatcnt <= 60)) { score = score + 21; curScoreClip.disp.score.text = combo_moneycnt * 21; } else if ((myheatcnt > 60) && (myheatcnt <= 90)) { score = score + 17; curScoreClip.disp.score.text = combo_moneycnt * 17; } else if ((myheatcnt > 90) && (myheatcnt <= 119)) { score = score + 15; curScoreClip.disp.score.text = combo_moneycnt * 15; } } } function IdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.preparecnt++; if (_arg3.preparecnt >= 20) { clearInterval(_arg3.process_interval); _arg3.machineStatus = "ready"; _arg3.machineshake = "off"; if (_arg3.choco_machines.status == "prepared") { _arg3.choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function IdleProcess2(_arg3) { if (!_arg3.isPaused) { _arg3.prepare2cnt++; if (_arg3.prepare2cnt >= 20) { clearInterval(_arg3.process_interval2); _arg3.machine2Status = "ready"; _arg3.machine2shake = "off"; if (_arg3.choco_machines2.status == "prepared") { _arg3.choco_machines2.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function SpecialIdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.spl_preparecnt++; if (_arg3.spl_preparecnt >= 40) { clearInterval(_arg3.special_process_interval); _arg3.special_machineStatus = "ready"; _arg3.specialmachineshake = "off"; if (_arg3.special_choco_machines.status == "prepared") { _arg3.special_choco_machines.status = "chocolateReady"; } if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } } } } function CoffeeIdleProcess(_arg3) { if (!_arg3.isPaused) { _arg3.coffee_preparecnt++; if (_arg3.coffee_preparecnt >= 20) { clearInterval(_arg3.coffee_process_interval); _arg3.coffeeStatus = "ready"; _arg3.coffeemachineshake = "off"; _arg3.coffee_machine.status = "coffeeReady"; if (_global.soundstat == "onn") { _root.hotchoco_done_Sound.start(); } } } } function getRandom(_arg4, _arg5) { var _local3 = _arg5 - _arg4; var _local2 = Math.random() * _local3; var _local1 = Math.round(_local2); _local1 = _local1 + _arg4; return(_local1); } function StoreInSequence() { var owner = this; eval ("this." + moveTarget).onRelease(); } function CallSequence() { var owner = this; if (sequenceArr[0] == choco_machines) { if (((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == choco_machines2) { if (((owner.isTargetReached && (owner.machine2Status == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines2"; owner.calculateAngle(owner.chomac_indicate2); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == special_choco_machines) { if (((owner.isTargetReached && (owner.special_machineStatus == "ready")) && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "special_choco_machines"; owner.calculateAngle(owner.splmn_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == dusbin) { if ((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); sequenceArr[0].pointer._visible = true; } } else if (sequenceArr[0] == coffee_machine) { if (((owner.isTargetReached && (!owner.isPaused)) && (owner.coffeeStatus == "ready")) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = "coffee_machine"; owner.calculateAngle(owner.coffee_indicate); sequenceArr[0].pointer._visible = true; } } else if ((((sequenceArr[0] == table1) || (sequenceArr[0] == table2)) || (sequenceArr[0] == table3)) || (sequenceArr[0] == table4)) { if ((owner.isTargetReached && (!owner.isPaused)) && (owner.dusbinStatus == "ready")) { owner.isTargetReached = false; owner.selectedTarget = sequenceArr[0]._name; owner.calculateAngle(sequenceArr[0]); if (owner.selectedTarget == "table1") { owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.selectedTable = 3; } else if (owner.selectedTarget == "table4") { owner.selectedTable = 4; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } } } function CallPause() { var _local3 = this; stopAllSounds(); _local3.bg.blink.gotoAndStop(_local3.bg.blink._currentframe); _local3.customer1.customer.gotoAndStop(_local3.customer1.customer._currentframe); _local3.customer2.customer.gotoAndStop(_local3.customer2.customer._currentframe); _local3.customer3.customer.gotoAndStop(_local3.customer3.customer._currentframe); _local3.special_choco_machines.machine1.blink.gotoAndStop(_local3.special_choco_machines.machine1.blink._currentframe); _local3.choco_machines.single_machine.blink.gotoAndStop(_local3.choco_machines.single_machine.blink._currentframe); _local3.salesGirl.coffeeicon.smoke.gotoAndStop(_local3.salesGirl.coffeeicon.smoke._currentframe); _local3.customer4.customer.gotoAndStop(_local3.customer4.customer._currentframe); _local3.coin_Anim1.coin.gotoAndStop(_local3.coin_Anim1.coin._currentframe); _local3.coin_Anim2.coin.gotoAndStop(_local3.coin_Anim2.coin._currentframe); _local3.coin_Anim3.coin.gotoAndStop(_local3.coin_Anim3.coin._currentframe); _local3.coin_Anim4.coin.gotoAndStop(_local3.coin_Anim4.coin._currentframe); _local3.comboClip.combo.gotoAndStop(_local3.comboClip.combo._currentframe); _local3.orderbook1.heartinClip.gotoAndStop(_local3.orderbook1.heartinClip._currentframe); _local3.orderbook2.heartinClip.gotoAndStop(_local3.orderbook2.heartinClip._currentframe); _local3.orderbook3.heartinClip.gotoAndStop(_local3.orderbook3.heartinClip._currentframe); _local3.orderbook4.heartinClip.gotoAndStop(_local3.orderbook4.heartinClip._currentframe); _local3.curScoreClip.gotoAndStop(_local3.curScoreClip._currentframe); _local3.coin_Anim1.coin.coin_rotate.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate._currentframe); _local3.coin_Anim1.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate2._currentframe); _local3.coin_Anim1.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate3._currentframe); _local3.coin_Anim1.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim1.coin.coin_rotate4._currentframe); _local3.coin_Anim2.coin.coin_rotate.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate._currentframe); _local3.coin_Anim2.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate2._currentframe); _local3.coin_Anim2.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate3._currentframe); _local3.coin_Anim2.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim2.coin.coin_rotate4._currentframe); _local3.coin_Anim3.coin.coin_rotate.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate._currentframe); _local3.coin_Anim3.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate2._currentframe); _local3.coin_Anim3.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate3._currentframe); _local3.coin_Anim3.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim3.coin.coin_rotate4._currentframe); _local3.coin_Anim4.coin.coin_rotate.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate._currentframe); _local3.coin_Anim4.coin.coin_rotate2.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate2._currentframe); _local3.coin_Anim4.coin.coin_rotate3.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate3._currentframe); _local3.coin_Anim4.coin.coin_rotate4.gotoAndStop(_local3.coin_Anim4.coin.coin_rotate4._currentframe); _local3.comboClip.combo.coin_rotate.gotoAndStop(_local3.comboClip.combo.coin_rotate._currentframe); if (_local3.scoreIndicateClip._visible) { _local3.scoreIndicateClip.gotoAndStop(_local3.scoreIndicateClip._currentframe); } if (_local3.expertScoreClip._visible) { _local3.expertScoreClip.gotoAndStop(_local3.expertScoreClip._currentframe); } _global.ringvisible = phone_mc.ring._visible; phone_mc.ring._visible = false; _local3.chocolateClip.mc.gotoAndStop(_local3.chocolateClip.mc._currentframe); _local3.specialChocolateClip.mc.gotoAndStop(_local3.specialChocolateClip.mc._currentframe); _local3.chocolateClip2.mc.gotoAndStop(_local3.chocolateClip2.mc._currentframe); _local3.coffeeClip.gotoAndStop(_local3.coffeeClip._currentframe); } function CallResume() { var _local4 = this; if (_global.soundstat == "onn") { _root.gameSound.start(); } _local4.bg.blink.gotoAndPlay(_local4.bg.blink._currentframe); _local4.customer1.customer.gotoAndPlay(_local4.customer1.customer._currentframe); _local4.customer2.customer.gotoAndPlay(_local4.customer2.customer._currentframe); _local4.customer3.customer.gotoAndPlay(_local4.customer3.customer._currentframe); _local4.special_choco_machines.machine1.blink.gotoAndPlay(_local4.special_choco_machines.machine1.blink._currentframe); _local4.choco_machines.single_machine.blink.gotoAndPlay(_local4.choco_machines.single_machine.blink._currentframe); _local4.salesGirl.coffeeicon.smoke.gotoAndPlay(_local4.salesGirl.coffeeicon.smoke._currentframe); _local4.customer4.customer.gotoAndPlay(_local4.customer4.customer._currentframe); _local4.coin_Anim1.coin.gotoAndPlay(_local4.coin_Anim1.coin._currentframe - 1); _local4.coin_Anim2.coin.gotoAndPlay(_local4.coin_Anim2.coin._currentframe - 1); _local4.coin_Anim3.coin.gotoAndPlay(_local4.coin_Anim3.coin._currentframe - 1); _local4.coin_Anim4.coin.gotoAndPlay(_local4.coin_Anim4.coin._currentframe - 1); _local4.comboClip.combo.gotoAndPlay(_local4.comboClip.combo._currentframe - 1); _local4.orderbook1.heartinClip.gotoAndPlay(_local4.orderbook1.heartinClip._currentframe - 1); _local4.orderbook2.heartinClip.gotoAndPlay(_local4.orderbook2.heartinClip._currentframe - 1); _local4.orderbook3.heartinClip.gotoAndPlay(_local4.orderbook3.heartinClip._currentframe - 1); _local4.orderbook4.heartinClip.gotoAndPlay(_local4.orderbook4.heartinClip._currentframe - 1); _local4.curScoreClip.gotoAndPlay(_local4.curScoreClip._currentframe); _local4.coin_Anim1.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate._currentframe); _local4.coin_Anim1.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate2._currentframe); _local4.coin_Anim1.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate3._currentframe); _local4.coin_Anim1.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate4._currentframe); _local4.coin_Anim2.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate._currentframe); _local4.coin_Anim2.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate2._currentframe); _local4.coin_Anim2.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate3._currentframe); _local4.coin_Anim2.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate4._currentframe); _local4.coin_Anim3.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate._currentframe); _local4.coin_Anim3.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate2._currentframe); _local4.coin_Anim3.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate3._currentframe); _local4.coin_Anim3.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate4._currentframe); _local4.coin_Anim4.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate._currentframe); _local4.coin_Anim4.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate2._currentframe); _local4.coin_Anim4.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate3._currentframe); _local4.coin_Anim4.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate4._currentframe); _local4.comboClip.combo.coin_rotate.gotoAndPlay(_local4.comboClip.combo.coin_rotate._currentframe); if (_local4.scoreIndicateClip._visible) { _local4.scoreIndicateClip.gotoAndPlay(_local4.scoreIndicateClip._currentframe - 1); } if (_local4.expertScoreClip._visible) { _local4.expertScoreClip.gotoAndPlay(_local4.expertScoreClip._currentframe - 1); } phone_mc.ring._visible = _global.ringvisible; _local4.chocolateClip.mc.gotoAndPlay(_local4.chocolateClip.mc._currentframe - 1); _local4.specialChocolateClip.mc.gotoAndPlay(_local4.specialChocolateClip.mc._currentframe - 1); _local4.chocolateClip2.mc.gotoAndPlay(_local4.chocolateClip2.mc._currentframe - 1); _local4.coffeeClip.gotoAndPlay(_local4.coffeeClip._currentframe - 1); } function ObjectsRollOut() { table1.onRollOut(); table2.onRollOut(); table3.onRollOut(); table4.onRollOut(); phone_mc.onRollOut(); choco_machines.onRollOut(); choco_machines2.onRollOut(); dusbin.onRollOut(); coffee_machine.onRollOut(); special_choco_machines.onRollOut(); } function Reset() { targetclip = "table1"; lobbyArr.length = 0; lobbyArr = new Array(1, 2, 3); currentDirection = "down"; targetDirection = ""; isPopup = false; popup_info = "welcome"; clearInterval(popup_interval); clearInterval(special_process_interval); clearInterval(process_interval); popup_interval = -1; isTargetReached = true; selectedTarget = ""; orderno = 0; score = 0; ismoveready = false; orderTaken = 0; customerCount = 0; machineStatus = "notready"; dusbinStatus = "notready"; girlwalkframe = 2; isFirstServeFinished = false; depthArr.length = 0; depthArr = new Array(-10313, -10315, -10317); chocolateTypeArr.length = 0; chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); customerEnterset = "firstset"; moneyCount = 0; clearInterval(gameInterval); gametimer = 0; isGameOver = false; combo_bookcnt = 0; combo_ordercnt = 0; combo_moneycnt = 0; curtarget = ""; clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); clearInterval(customerEnterInterval3); clearInterval(Re_customerEnterInterval); clearInterval(reportInterval); clearInterval(orderbook1.heatInterval); clearInterval(orderbook2.heatInterval); clearInterval(orderbook3.heatInterval); clearInterval(orderbook4.heatInterval); clearInterval(deliveryinterval); clearInterval(jumpInterval); clearInterval(phoneInterval); isPaused = false; sequenceArr.length = 0; sequenceArr = new Array(); girlspeed = 12; Key.removeListener(leve10Keyobj); keyTarget = undefined; phoneringcnt = 0; isphonecalled = false; } var targetclip = "table1"; var lobbyArr = new Array(1, 2, 3); var currentDirection = "down"; var isPopup = false; var popup_info = "welcome"; var popup_interval = -1; var process_interval = -1; var special_process_interval = -1; var isTargetReached = true; var selectedTarget = ""; var orderno = 0; var ismoveready = false; var orderTaken = 0; var customerCount = 0; var machineStatus = "notready"; var machine2Status = "notready"; var special_machineStatus = "notready"; var dusbinStatus = "notready"; var coffeeStatus = "notready"; var girlwalkframe = 2; var isFirstServeFinished = false; var score = 0; var depthArr = new Array(-10313, -10315, -10317); var chocolateTypeArr = new Array("type_triangle", "type_fish", "type_round", "type_rabbit", "type_box"); var customerEnterset = "firstset"; var moneyCount = 0; var gameInterval = -1; var gametimer = 0; var isGameOver = false; var combo_bookcnt = 0; var combo_ordercnt = 0; var combo_moneycnt = 0; var gamestartInterval = -1; var curtarget = ""; var customerEnterInterval = -1; var customerEnterInterval2 = -1; var reportInterval = -1; var isPaused = false; var coffee_process_interval = -1; var ringstat = "off"; var phone_status = "notready"; var machinespeed = 1; var machineshake = "off"; var specialmachineshake = "off"; var coffeemachineshake = "off"; var machine2shake = "off"; var specialmachinespeed = 1; var coffeemachinespeed = 1; var machine2speed = 1; var girlspeed = 12; var sequenceArr = new Array(); var callwaitInterval = -1; var customerEnterInterval3 = -1; var deliveryinterval = -1; var jumpInterval = -1; var tips = 0; var phoneInterval = -1; var process_interval2 = -1; var Re_customerEnterInterval = -1; var phoneringcnt = 0; var cusArr = new Array("younglady", "oldlady", "younglady"); var isphonecalled = false; var preparecnt = 0; var prepare2cnt = 0; var spl_preparecnt = 0; var coffee_preparecnt = 0; }
Symbol 1708 MovieClip [__Packages.Level1] Frame 0
class Level1 extends MovieClip { var salesGirl, btn_pause, _parent, scoreIndicateClip, shopclosedClip, timerClip, chocolate_container, specialcho_container, coffeeClip, chocolateClip, phone_mc, popup_mc, selectClip, choco_machines, special_choco_machines, dusbin, coffee_machine, heartinClip, shopopenClip, reportMc, cancel_mc, infoClip, comboClip, table3, table2, table1, coin_Anim3, coin_Anim2, coin_Anim1, leve1Keyobj, keyTarget, pauseTarget, scoreClip, radian, targetDirection, preferred_chocolate1, preferred_chocolate2, customer1, attachMovie, orderbook1, getNextHighestDepth, customer2, orderbook2, customer3, orderbook3, intervalstatus, iscorrectChocolateChoose, selectedTable, rantable1, rantable2, customerOrderbook1, customerOrderbook2, keylistener; function Level1 () { super(); } function onLoad() { var owner = this; clearInterval(popup_interval); clearInterval(process_interval); Reset(); salesGirl.coffeeicon._visible = false; btn_pause._visible = false; _parent.pauseClip._visible = false; salesGirl.gotoAndStop(currentDirection); salesGirl.chocolateCount = 0; salesGirl.girlwalk.gotoAndStop(girlwalkframe); scoreIndicateClip._visible = false; shopclosedClip._visible = false; timerClip._visible = false; chocolate_container._visible = false; specialcho_container._visible = false; coffeeClip._visible = false; chocolateClip._visible = false; phone_mc._visible = false; popup_mc._visible = false; selectClip._visible = false; choco_machines._visible = false; special_choco_machines._visible = false; dusbin._visible = false; coffee_machine._visible = false; heartinClip._visible = false; shopopenClip._visible = false; reportMc._visible = false; cancel_mc._visible = false; infoClip._visible = false; comboClip._visible = false; table2._visible = (table3._visible = false); table1._visible = false; coin_Anim2._visible = (coin_Anim3._visible = false); coin_Anim1._visible = false; table1.point = 1; table2.point = 2; table3.point = 3; isPopup = true; _global.popupText = "Hi! Welcome to my chocolate shop. Let\u2019s have a look around! I\u2019ll show you 2 important things. Are you ready?"; ShowPopup(this); btn_pause.onRelease = function () { if (this._visible && (owner._parent.pauseClip._visible == false)) { owner.pauseTarget = "btn_continue"; owner.isPaused = true; owner.isPopup = true; this._visible = false; owner._parent.pauseClip._visible = true; owner._parent.pauseClip.gotoAndPlay(2); owner.CallPause(); } }; leve1Keyobj = new Object(); Key.addListener(leve1Keyobj); leve1Keyobj.onKeyDown = function () { if (Key.getCode() == 37) { if (!owner.isPaused) { owner.LeftNavigation(); } } else if (Key.getCode() == 39) { if (!owner.isPaused) { owner.RightNavigation(); } } else if (Key.getCode() == 38) { if (!owner.isPaused) { owner.UpNavigation(); } else { owner.pauseUpNavigation(); } } else if (Key.getCode() == 40) { if (!owner.isPaused) { owner.DownNavigation(); } else { owner.pauseDownNavigation(); } } else if (Key.getCode() == 13) { if (owner.popup_mc._visible) { owner.popup_mc.btn_ok.onRelease(); } else if (owner.reportMc._visible) { owner.reportMc.btn_continue.onRelease(); } else if (!owner.isPaused) { owner.EnterFunction(); } else { owner.PauseEnterFunction(); } } else if (Key.getAscii() == 27) { if (!owner.isPaused) { owner.btn_pause.onRelease(); } else if (owner.isPaused) { owner._parent.pauseClip.btn_continue.onRelease(); } } }; table1.onRollOver = (table2.onRollOver = (table3.onRollOver = function () { if (owner.isTargetReached && (!owner.isPaused)) { owner.ObjectsRollOut(); owner.keyTarget = this._name; eval ("this.orderbook" + this.point).highlight.gotoAndStop(2); } })); table1.onRollOut = (table2.onRollOut = (table3.onRollOut = function () { eval ("this.orderbook" + this.point).highlight.gotoAndStop(1); })); choco_machines.onRollOver = function () { if ((owner.machineStatus == "ready") && (!owner.isPaused)) { owner.ObjectsRollOut(); owner.keyTarget = "choco_machines"; this.single_machine.gotoAndStop(3); } }; choco_machines.onRollOut = (choco_machines.onReleaseOutside = function () { this.single_machine.gotoAndStop(2); }); dusbin.onRollOver = function () { if ((owner.dusbinStatus == "ready") && (!owner.isPaused)) { owner.ObjectsRollOut(); owner.keyTarget = "dusbin"; this.gotoAndStop(3); } }; dusbin.onRollOut = (dusbin.onReleaseOutside = function () { this.gotoAndStop(2); }); choco_machines.onPress = function () { trace((((owner.isTargetReached + ", ") + owner.machineStatus) + ", ") + owner.isPaused); if ((owner.isTargetReached && (owner.machineStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "choco_machines"; owner.calculateAngle(owner.chomac_indicate); this.pointer._visible = true; } }; dusbin.onPress = function () { if (((owner.isTargetReached && (owner.dusbinStatus == "ready")) && (owner.machineStatus == "ready")) && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = "dusbin"; owner.calculateAngle(owner.dusbin_indicate); this.pointer._visible = true; } }; table1.onPress = (table2.onPress = (table3.onPress = function () { if (owner.isTargetReached && (!owner.isPaused)) { owner.isTargetReached = false; owner.selectedTarget = this._name; owner.calculateAngle(this); if (owner.selectedTarget == "table1") { owner.selectedTable = 1; } else if (owner.selectedTarget == "table2") { owner.selectedTable = 2; } else if (owner.selectedTarget == "table3") { owner.selectedTable = 3; } eval ("owner.orderbook" + owner.selectedTable).pointer._visible = true; } })); } function LeftNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_box") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_triangle.onRollOver(); } } else if (keyTarget == undefined) { if (table1._visible) { table1.onRollOver(); } else if (table2._visible) { table2.onRollOver(); } else if (table3._visible) { table3.onRollOver(); } } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); if (table3._visible) { table3.onRollOver(); } else if (table2._visible) { table2.onRollOver(); } else if (table1._visible) { table1.onRollOver(); } } else if (keyTarget == "dusbin") { dusbin.onRollOut(); choco_machines.onRollOver(); } } function RightNavigation() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_round.onRollOver(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_box.onRollOver(); } } else if (keyTarget == undefined) { if (table1._visible) { table1.onRollOver(); } else if (table2._visible) { table2.onRollOver(); } else if (table3._visible) { table3.onRollOver(); } } else if (keyTarget == "choco_machines") { choco_machines.onRollOut(); dusbin.onRollOver(); } else if (((keyTarget == "table1") || (keyTarget == "table2")) || (keyTarget == "table3")) { eval ("this." + keyTarget).onRollOut(); choco_machines.onRollOver(); } } function UpNavigation() { if (keyTarget == "table1") { if (table2._visible) { table1.onRollOut(); table2.onRollOver(); } else if (table3._visible) { table1.onRollOut(); table3.onRollOver(); } } else if (keyTarget == "table2") { if (table3._visible) { table2.onRollOut(); table3.onRollOver(); } } } function DownNavigation() { if (keyTarget == "table3") { if (table2._visible) { table3.onRollOut(); table2.onRollOver(); } else if (table1._visible) { table3.onRollOut(); table1.onRollOver(); } } else if (keyTarget == "table2") { if (table1._visible) { table2.onRollOut(); table1.onRollOver(); } } } function EnterFunction() { if (chocolate_container._visible) { if (keyTarget == "type_triangle") { chocolate_container.mc.type_triangle.onRelease(); } else if (keyTarget == "type_round") { chocolate_container.mc.type_round.onRelease(); } else if (keyTarget == "type_box") { chocolate_container.mc.type_box.onRelease(); } } else { eval ("this." + keyTarget).onPress(); } } function PauseEnterFunction() { eval ("this._parent.pauseClip." + pauseTarget).onRelease(); } function pauseUpNavigation() { if (pauseTarget == "btn_premium") { _parent.pauseClip.btn_premium.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_continue.onRollOver(); } } function pauseDownNavigation() { if (pauseTarget == "pause") { _parent.pauseClip.btn_continue.onRollOver(); } else if (pauseTarget == "btn_continue") { _parent.pauseClip.btn_continue.onRollOut(); _parent.pauseClip.btn_restart.onRollOver(); } else if (pauseTarget == "btn_restart") { _parent.pauseClip.btn_restart.onRollOut(); _parent.pauseClip.btn_mainmenu.onRollOver(); } else if (pauseTarget == "btn_mainmenu") { _parent.pauseClip.btn_mainmenu.onRollOut(); _parent.pauseClip.btn_premium.onRollOver(); } } function updateScore() { scoreClip.score_txt.text = score; scoreClip.loading.gotoAndStop(score); if ((score >= 80) && (scoreClip.target._currentframe == 1)) { scoreClip.target.gotoAndPlay(1); if (_global.soundstat == "onn") { _root.target_score_Sound.start(); } } if ((score >= 150) && (scoreClip.expert._currentframe == 1)) { scoreClip.expert.gotoAndPlay(1); if (_global.soundstat == "onn") { _root.expert_score_Sound.start(); } } } function onEnterFrame() { var owner = this; if ((!isPopup) && (!owner.isPaused)) { shopperMovement(); } if (machineshake == "onn") { machinespeed = -machinespeed; choco_machines._x = choco_machines._x + ((1 * machinespeed) / 2); choco_machines._y = choco_machines._y + ((1 * machinespeed) / 2); } _parent.pauseClip.btn_continue.onRollOver = (_parent.pauseClip.btn_restart.onRollOver = (_parent.pauseClip.btn_mainmenu.onRollOver = (_parent.pauseClip.btn_premium.onRollOver = function () { owner._parent.pauseClip.btn_continue.onRollOut(); owner._parent.pauseClip.btn_restart.onRollOut(); owner._parent.pauseClip.btn_mainmenu.onRollOut(); owner._parent.pauseClip.btn_premium.onRollOut(); owner.pauseTarget = this._name; this.gotoAndStop(2); }))); _parent.pauseClip.btn_continue.onRollOut = (_parent.pauseClip.btn_restart.onRollOut = (_parent.pauseClip.btn_mainmenu.onRollOut = (_parent.pauseClip.btn_premium.onRollOut = function () { this.gotoAndStop(1); }))); _parent.pauseClip.btn_continue.onRelease = function () { owner.isPaused = false; owner.isPopup = false; owner.btn_pause._visible = true; owner._parent.pauseClip._visible = false; owner.CallResume(); }; _parent.pauseClip.btn_restart.onRelease = function () { owner.Reset(); owner._parent.play(); }; _parent.pauseClip.btn_mainmenu.onRelease = function () { owner.Reset(); owner._parent.gotoAndStop("mainmenu"); }; _parent.pauseClip.btn_premium.onRelease = function () { this.getURL(_root.urlname, "_blank"); }; popup_mc.btn_ok.onRollOver = function () { this.gotoAndStop(2); }; popup_mc.btn_ok.onRollOut = (popup_mc.btn_ok.onReleaseOutside = function () { this.gotoAndStop(1); }); chocolate_container.mc.type_triangle.onRollOver = (chocolate_container.mc.type_round.onRollOver = (chocolate_container.mc.type_box.onRollOver = function () { owner.keyTarget = this._name; owner.chocolate_container.mc.type_triangle.gotoAndStop(1); owner.chocolate_container.mc.type_round.gotoAndStop(1); owner.chocolate_container.mc.type_box.gotoAndStop(1); this.gotoAndStop(2); })); chocolate_container.mc.type_triangle.onRelease = (chocolate_container.mc.type_round.onRelease = (chocolate_container.mc.type_box.onRelease = function () { owner.infoClip._visible = false; owner.chocolateClip._visible = true; owner.chocolateClip.gotoAndStop(this._name); owner.chocolateClip.mc.gotoAndPlay(1); owner.intervalstatus = "chocolateready"; owner.isTargetReached = true; if (owner.salesGirl.chocolateCount == 0) { owner.preferred_chocolate1 = this._name; } else if (owner.salesGirl.chocolateCount == 1) { owner.preferred_chocolate2 = this._name; } owner.preparecnt = 0; owner.process_interval = setInterval(owner.IdleProcess, 100, owner); owner.chocolate_container.gotoAndStop(2); owner.machineshake = "onn"; owner.keyTarget = "choco_machines"; if (_global.soundstat == "onn") { _root.choco_producing_Sound.start(); } })); chocolate_container.mc.btn_close.onRelease = function () { owner.machineStatus = "ready"; owner.chocolate_container._visible = false; owner.isPopup = false; owner.keyTarget = "choco_machines"; }; reportMc.btn_continue.onRelease = function () { owner.Reset(); _global.calenderfrom = "game"; owner._parent.gotoAndStop("calender"); }; popup_mc.btn_ok.onRelease = function () { if (owner.popup_info == "welcome") { owner.popupDisable(); owner.popup_info = "chocolate_machine_intro"; owner.choco_machines._visible = true; owner.choco_machines.gotoAndStop(1); owner.choco_machines.single_machine.intro.gotoAndPlay(1); _global.popupText = "This is the BOXED CHOCOLATE machine. It produces round, square and triangle shaped chocolates."; owner.popup_interval = setInterval(owner.ShowPopup, 4000, owner); } else if (owner.popup_info == "chocolate_machine_intro") { owner.popupDisable(); owner.popup_info = "serve_start"; owner.dusbin._visible = true; owner.choco_machines.single_machine.gotoAndStop(2); owner.dusbin.dusbin_intro.gotoAndPlay(1); _global.popupText = "What happens if you make a mistake? No worries, just throw the unwanted chocolate to the TRASH BIN. Ready to start?"; owner.popup_interval = setInterval(owner.ShowPopup, 4000, owner); } else if (owner.popup_info == "serve_start") { owner.popupDisable(); owner.popup_info = ""; var _local2 = owner.getRandom(0, 2); owner.customerEnterInterval = setInterval(owner.CallCustomer, 2000, owner, owner.lobbyArr[_local2]); owner.isPopup = false; owner.popup_info = "level1_start"; owner.bg.gotoAndStop(2); owner.btn_pasue._visible = true; owner.shopopenClip._visible = true; owner.shopopenClip.gotoAndPlay(1); owner.infoClip._visible = true; owner.infoClip.gotoAndStop(2); owner.infoClip.info.text = "Learn the basics. Click on the customer to hand her a MENU."; owner.btn_pause._visible = true; } else if (owner.popup_info == "order") { owner.popupDisable(); owner.isPopup = false; owner.popup_info = ""; owner.selectClip._visible = true; owner.selectClip._x = owner.choco_machines._x; owner.selectClip._y = owner.choco_machines._y - 80; owner.btn_pause._visible = true; } else if (owner.popup_info == "mismatch") { owner.popupDisable(); owner.isPopup = false; owner.btn_pause._visible = true; } }; } function shopperMovement() { var _local3 = (salesGirl._x + salesGirl.pointer._x) - targetclip._x; var _local2 = (salesGirl._y + salesGirl.pointer._y) - targetclip._y; var _local5 = Math.sqrt((_local2 * _local2) + (_local3 * _local3)); var _local4 = 10; if (_local5 > _local4) { salesGirl._x = salesGirl._x + (Math.cos(radian) * 12); salesGirl._y = salesGirl._y + (Math.sin(radian) * 12); } else if (!isTargetReached) { isTargetReached = true; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); Manipulate(); updateScore(); } } function updateInfo(_arg1) { clearInterval(_arg1.infointerval); _arg1.infoClip._visible = true; _arg1.infoClip.gotoAndStop(2); _arg1.infoClip.info.text = "Nice! She wants a round box of chocolate. Click on the BOXED CHOCOLATE MACHINE and select the round box of chocolate to produce it."; _arg1.selectClip._visible = true; _arg1.selectClip._x = _arg1.choco_machines._x; _arg1.selectClip._y = _arg1.choco_machines._y - 80; } function calculateAngle(mc) { if (!isPopup) { targetclip = mc; var x_diff = (eval (mc)._x - (salesGirl._x + salesGirl.pointer._x)); var y_diff = (eval (mc)._y - (salesGirl._y + salesGirl.pointer._y)); radian = Math.atan2(y_diff, x_diff); if (Math.abs(x_diff) > Math.abs(y_diff)) { if (x_diff > 0) { targetDirection = "right"; } else { targetDirection = "left"; } } else if (y_diff > 0) { targetDirection = "down"; } else { targetDirection = "up"; } if (curtarget != selectedTarget) { curtarget = selectedTarget; salesGirl.gotoAndStop(targetDirection); salesGirl.girlwalk.gotoAndStop(girlwalkframe - 1); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); } } } function ShowPopup(_arg1) { clearInterval(_arg1.popup_interval); _arg1.btn_pause._visible = false; _arg1.isPopup = true; _arg1.popup_mc._visible = true; _arg1.popup_mc.swapDepths(_arg1.getNextHighestDepth()); _arg1.popup_mc.gotoAndPlay(1); } function popupDisable() { popup_mc.gotoAndStop(1); popup_mc._visible = false; } function CallCustomer(_arg1, _arg2) { if (!_arg1.isPaused) { clearInterval(_arg1.customerEnterInterval); _arg1.selectClip._visible = true; _arg1.customerEnter(_arg2); } } function CallCustomer2(owner, lobby) { if (!owner.isPaused) { clearInterval(owner.customerEnterInterval2); owner.customerEnter(lobby); owner.selectClip._visible = true; owner.selectClip._x = eval ("owner.orderbook" + owner.rantable1)._x - 20; owner.selectClip._y = eval ("owner.orderbook" + owner.rantable1)._y - 80; owner.infoClip._visible = true; owner.infoClip.gotoAndStop(2); owner.infoClip.info.text = "Excellent! Let\u2019s learn how to make COMBOS. Click on the next customer to hand her a MENU."; } } function customerEnter(_arg2) { if (_arg2 == 1) { table1._visible = true; customer1 = attachMovie("younglady", "younglady1", depthArr[_arg2 - 1], {_x:115, _y:356}); orderbook1 = attachMovie("orderbook", "orderbook1", getNextHighestDepth(), {_x:170, _y:374}); orderbook1.type = "book"; selectClip._x = orderbook1._x - 20; selectClip._y = orderbook1._y - 80; } else if (_arg2 == 2) { table2._visible = true; customer2 = attachMovie("younglady", "younglady2", depthArr[_arg2 - 1], {_x:119, _y:235}); orderbook2 = attachMovie("orderbook", "orderbook2", getNextHighestDepth(), {_x:177, _y:278}); orderbook2.type = "book"; selectClip._x = orderbook2._x - 20; selectClip._y = orderbook2._y - 80; } else if (_arg2 == 3) { table3._visible = true; customer3 = attachMovie("younglady", "younglady3", depthArr[_arg2 - 1], {_x:127, _y:140}); orderbook3 = attachMovie("orderbook", "orderbook3", getNextHighestDepth(), {_x:184, _y:185}); orderbook3.type = "book"; selectClip._x = orderbook3._x - 20; selectClip._y = orderbook3._y - 80; } customerCount++; salesGirl.swapDepths(getNextHighestDepth()); infoClip.swapDepths(getNextHighestDepth()); selectClip.swapDepths(getNextHighestDepth()); scoreIndicateClip.swapDepths(getNextHighestDepth()); chocolate_container.swapDepths(getNextHighestDepth()); comboClip.swapDepths(getNextHighestDepth()); reportMc.swapDepths(getNextHighestDepth()); } function Manipulate() { var owner = this; if (selectedTarget == "choco_machines") { choco_machines.pointer._visible = false; if (orderTaken <= 0) { cancel_mc._visible = true; cancel_mc._x = choco_machines._x + 100; cancel_mc._y = choco_machines._y + 100; cancel_mc.gotoAndPlay(1); } else if (salesGirl.chocolateCount < orderTaken) { if (intervalstatus == "chocolateready") { intervalstatus = "empty"; salesGirl.chocolateCount++; chocolateClip._visible = false; salesGirl.gotoAndStop(2); if ((orderTaken == 1) && (iscorrectChocolateChoose)) { infoClip._visible = true; owner.infoClip.gotoAndStop(3); infoClip.info.text = "Take the chocolate to the customer!"; selectClip._visible = true; selectClip._x = eval ("this.orderbook" + selectedTable)._x - 20; selectClip._y = eval ("this.orderbook" + selectedTable)._y - 80; } else if (((orderTaken == 2) && (iscorrectChocolateChoose)) && (salesGirl.chocolateCount == 1)) { infoClip._visible = true; owner.infoClip.gotoAndStop(2); infoClip.info.text = "Good! Now click on the BOXED CHOCOLATE MACHINE again to produce another box."; selectClip._visible = true; selectClip._x = choco_machines._x; selectClip._y = choco_machines._y - 80; } else if (!iscorrectChocolateChoose) { infoClip._visible = true; owner.infoClip.gotoAndStop(3); infoClip.info.text = "Take it to the TRASH BIN!"; selectClip._visible = true; selectClip._x = dusbin._x - 50; selectClip._y = dusbin._y - 100; } else { infoClip._visible = false; selectClip._visible = true; selectClip._x = eval ("this.orderbook" + rantable1)._x - 20; selectClip._y = eval ("this.orderbook" + rantable1)._y - 80; } girlwalkframe = salesGirl.chocolateCount * 4; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); if ((orderbook1.neededchocolate == preferred_chocolate1) || (orderbook1.neededchocolate == preferred_chocolate2)) { orderbook1.green_highlight._visible = true; } if ((orderbook2.neededchocolate == preferred_chocolate1) || (orderbook2.neededchocolate == preferred_chocolate2)) { orderbook2.green_highlight._visible = true; } if ((orderbook3.neededchocolate == preferred_chocolate1) || (orderbook3.neededchocolate == preferred_chocolate2)) { orderbook3.green_highlight._visible = true; } } else if ((!iscorrectChocolateChoose) && (salesGirl.chocolateCount >= 1)) { cancel_mc._visible = true; cancel_mc._x = choco_machines._x + 100; cancel_mc._y = choco_machines._y + 100; cancel_mc.gotoAndPlay(1); } else if (eval ("this.orderbook" + selectedTable).type == "money") { cancel_mc._visible = true; cancel_mc._x = choco_machines._x + 100; cancel_mc._y = choco_machines._y + 100; cancel_mc.gotoAndPlay(1); } else { chocolate_container._visible = true; chocolate_container.gotoAndStop(1); chocolate_container.mc.gotoAndPlay(1); machineStatus = "notready"; isPopup = true; keyTarget = "type_round"; } } else { cancel_mc._visible = true; cancel_mc._x = choco_machines._x + 100; cancel_mc._y = choco_machines._y + 100; cancel_mc.gotoAndPlay(1); } } else if (selectedTarget == "dusbin") { dusbin.pointer._visible = false; if (orderTaken <= 0) { cancel_mc._visible = true; cancel_mc._x = dusbin._x + 25; cancel_mc._y = dusbin._y + 50; cancel_mc.gotoAndPlay(1); } else if (orderTaken == 1) { if (salesGirl.chocolateCount >= 1) { if (eval ("owner.customer" + owner.selectedTable).neededchocolate != owner.preferred_chocolate1) { iscorrectChocolateChoose = true; salesGirl.chocolateCount--; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); selectClip._visible = true; selectClip._x = choco_machines._x; selectClip._y = choco_machines._y - 80; } else { cancel_mc._visible = true; cancel_mc._x = dusbin._x + 25; cancel_mc._y = dusbin._y + 50; cancel_mc.gotoAndPlay(1); } } else { cancel_mc._visible = true; cancel_mc._x = dusbin._x + 25; cancel_mc._y = dusbin._y + 50; cancel_mc.gotoAndPlay(1); } } else if (orderTaken == 2) { if (salesGirl.chocolateCount == 2) { if ((eval ("owner.customer" + owner.selectedTable).neededchocolate != owner.preferred_chocolate1) || (eval ("owner.customer" + owner.selectedTable).neededchocolate != owner.preferred_chocolate2)) { iscorrectChocolateChoose = true; salesGirl.chocolateCount--; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); selectClip._visible = true; selectClip._x = choco_machines._x; selectClip._y = choco_machines._y - 80; } else { cancel_mc._visible = true; cancel_mc._x = dusbin._x + 25; cancel_mc._y = dusbin._y + 50; cancel_mc.gotoAndPlay(1); } } else if (salesGirl.chocolateCount == 1) { if (eval ("owner.customer" + owner.selectedTable).neededchocolate != owner.preferred_chocolate1) { iscorrectChocolateChoose = true; salesGirl.chocolateCount--; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); selectClip._visible = true; selectClip._x = choco_machines._x; selectClip._y = choco_machines._y - 80; } else { cancel_mc._visible = true; cancel_mc._x = dusbin._x + 25; cancel_mc._y = dusbin._y + 50; cancel_mc.gotoAndPlay(1); } } else { cancel_mc._visible = true; cancel_mc._x = dusbin._x + 25; cancel_mc._y = dusbin._y + 50; cancel_mc.gotoAndPlay(1); } } } else if (((selectedTarget == "table1") || (selectedTarget == "table2")) || (selectedTarget == "table3")) { eval ("this.orderbook" + selectedTable).pointer._visible = false; if (eval ("this.orderbook" + selectedTable).type == "book") { eval ("this.orderbook" + selectedTable).type = "chocolateOrder"; eval ("this.orderbook" + selectedTable).neededchocolate = "type_round"; eval ("this.customer" + selectedTable).neededchocolate = "type_round"; eval ("this.orderbook" + selectedTable).gotoAndStop(2); eval ("this.customer" + selectedTable).gotoAndStop(3); eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).green_highlight._visible = false; selectClip._visible = false; infoClip._visible = false; orderTaken++; trace((("order=" + rantable1) + ", ") + rantable2); if (orderTaken == 1) { score = score + 2; if (popup_info != "level1_start") { infoClip._visible = true; owner.infoClip.gotoAndStop(3); infoClip.info.text = "Then click on the other customer to make a COMBO."; selectClip._visible = true; if (rantable2 != selectedTable) { selectClip._x = eval ("owner.orderbook" + rantable2)._x - 20; selectClip._y = eval ("owner.orderbook" + rantable2)._y - 80; } } else if (popup_info == "level1_start") { owner.machineStatus = "notready"; choco_interval = setInterval(ReadyToGetChocolate, 3000, this); popup_info = ""; owner.ismoveready = true; owner.dusbinStatus = "ready"; } if (_global.soundstat == "onn") { _root.combo1_Sound.start(); } } else if (orderTaken == 2) { infoClip._visible = true; owner.infoClip.gotoAndStop(1); infoClip.info.text = "Well done! Let\u2019s make another COMBO. Click on the BOXED CHOCOLATE MACHINE to produce a round box of chocolate."; score = score + 4; machineStatus = "ready"; dusbinStatus = "ready"; owner.selectClip._visible = true; owner.selectClip._x = owner.choco_machines._x; owner.selectClip._y = owner.choco_machines._y - 80; comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop("two"); comboClip.combo.gotoAndPlay(1); if (_global.soundstat == "onn") { _root.combo2_Sound.start(); } } } else if (eval ("this.orderbook" + selectedTable).type == "chocolateOrder") { if (salesGirl.chocolateCount >= 1) { if (orderTaken == 1) { if (eval ("owner.customer" + owner.selectedTable).neededchocolate != owner.preferred_chocolate1) { cancel_mc._visible = true; cancel_mc.swapDepths(getNextHighestDepth()); cancel_mc._x = eval ("this.orderbook" + selectedTable)._x + 40; cancel_mc._y = eval ("this.orderbook" + selectedTable)._y + 30; cancel_mc.gotoAndPlay(1); } else { if (!isFirstServeFinished) { score = score + 10; } else { score = score + 20; } salesGirl.chocolateCount--; girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); infoClip._visible = true; owner.infoClip.gotoAndStop(3); infoClip.info.text = "Great! Now collect the money on the counter!"; selectClip._visible = true; selectClip._x = eval ("this.orderbook" + selectedTable)._x - 20; selectClip._y = eval ("this.orderbook" + selectedTable)._y - 80; if (_global.soundstat == "onn") { _root.combo1_Sound.start(); } if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } } } else if ((orderTaken == 2) && (owner.salesGirl.chocolateCount == 2)) { if ((eval ("owner.customer" + owner.selectedTable).neededchocolate != owner.preferred_chocolate1) || (eval ("owner.customer" + owner.selectedTable).neededchocolate != owner.preferred_chocolate2)) { cancel_mc._visible = true; cancel_mc.swapDepths(getNextHighestDepth()); cancel_mc._x = eval ("this.orderbook" + selectedTable)._x + 40; cancel_mc._y = eval ("this.orderbook" + selectedTable)._y + 30; cancel_mc.gotoAndPlay(1); } else { girlwalkframe = girlwalkframe / 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); eval ("this.orderbook" + selectedTable).type = "money"; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(1); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable).gotoAndStop(3); eval ("this.customer" + selectedTable).gotoAndStop(5); infoClip._visible = true; if (infoClip.info.text == "Great! Now give the second box to the next customer.") { comboClip._x = eval ("this.customer" + selectedTable)._x - 20; comboClip._y = eval ("this.customer" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop("two"); comboClip.combo.gotoAndPlay(1); score = score + 20; owner.infoClip.gotoAndStop(1); infoClip.info.text = "Well done! You can gain COMBO bonuses by doing similar actions in a row. Collect the money and you have accomplished the first level."; } else { score = score + 10; owner.infoClip.gotoAndStop(3); infoClip.info.text = "Great! Now give the second box to the next customer."; if (eval ("this.orderbook" + rantable2).type != "money") { selectClip._visible = true; selectClip._x = eval ("this.orderbook" + rantable2)._x - 20; selectClip._y = eval ("this.orderbook" + rantable2)._y - 80; } } if (_global.soundstat == "onn") { _root.combo2_Sound.start(); } if (_global.soundstat == "onn") { _root.customer_happy_Sound.start(); } } } else { cancel_mc._visible = true; cancel_mc.swapDepths(getNextHighestDepth()); cancel_mc._x = eval ("this.orderbook" + selectedTable)._x + 40; cancel_mc._y = eval ("this.orderbook" + selectedTable)._y + 30; cancel_mc.gotoAndPlay(1); } } } else if (eval ("this.orderbook" + selectedTable).type == "money") { if (orderTaken == 1) { orderTaken--; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(2); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable)._visible = false; eval ("this.customer" + selectedTable)._visible = false; eval ("this.table" + selectedTable)._visible = false; eval ("this.orderbook" + selectedTable).type = "empty"; owner.selectClip._visible = false; if (orderTaken == 0) { salesGirl.chocolateCount = 0; girlwalkframe = 2; salesGirl.girlwalk.gotoAndStop(girlwalkframe); salesGirl.girlwalk.chocobox1.gotoAndStop(preferred_chocolate1); salesGirl.girlwalk.chocobox2.gotoAndStop(preferred_chocolate2); if (!isFirstServeFinished) { if (_global.soundstat == "onn") { _root.money1_Sound.start(); } score = score + 27; isFirstServeFinished = true; owner.selectClip._visible = false; owner.table2._visible = (owner.table3._visible = false); owner.table1._visible = false; var randomno = owner.getRandom(0, owner.lobbyArr.length - 1); owner.customerEnterInterval = setInterval(owner.CallCustomer, 2000, owner, owner.lobbyArr[randomno]); var tab1 = owner.lobbyArr[randomno]; customerOrderbook1 = tab1; owner.lobbyArr.splice(randomno, 1); var randomno = owner.getRandom(0, owner.lobbyArr.length - 1); owner.customerEnterInterval2 = setInterval(owner.CallCustomer2, 2500, owner, owner.lobbyArr[randomno]); var tab2 = owner.lobbyArr[randomno]; customerOrderbook2 = tab2; owner.lobbyArr.splice(randomno, 1); if (tab1 > tab2) { rantable1 = tab1; rantable2 = tab2; } else { rantable1 = tab2; rantable2 = tab1; } infoClip._visible = false; machineStatus = "notready"; dusbinStatus = "notready"; } else { if (_global.soundstat == "onn") { _root.money2_Sound.start(); } comboClip._x = eval ("this.orderbook" + selectedTable)._x - 20; comboClip._y = eval ("this.orderbook" + selectedTable)._y + 20; comboClip._visible = true; comboClip.gotoAndStop("two"); comboClip.combo.gotoAndPlay(1); score = score + 54; machineStatus = "notready"; isPopup = true; _global.report_moneyEarned = 120; _global.report_tips = 36; if (_global.levelSelected < 2) { _global.levelSelected = 2; } if (_global.levelFinished <= 1) { _global.levelFinished = 1; } _global.level1Score = score; _global.level1Status = "expert"; btn_pause._visible = false; dusbinStatus = "notready"; reportMc._visible = true; reportMc.gotoAndPlay(2); infoClip._visible = false; if (_global.soundstat == "onn") { _root.level_complete_Sound.start(); } } } } else if (orderTaken == 2) { if ((eval ("this.orderbook" + customerOrderbook1).type == "money") && (eval ("this.orderbook" + customerOrderbook2).type == "money")) { selectClip._visible = false; score = score + 27; orderTaken--; salesGirl.chocolateCount--; eval ("this.coin_Anim" + selectedTable)._visible = true; eval ("this.coin_Anim" + selectedTable).gotoAndStop(2); eval ("this.coin_Anim" + selectedTable).coin.gotoAndPlay(1); eval ("this.orderbook" + selectedTable)._visible = false; eval ("this.customer" + selectedTable)._visible = false; eval ("this.orderbook" + selectedTable).type = "empty"; if (_global.soundstat == "onn") { _root.money1_Sound.start(); } } else { cancel_mc._visible = true; cancel_mc.swapDepths(getNextHighestDepth()); cancel_mc._x = eval ("this.orderbook" + selectedTable)._x + 40; cancel_mc._y = eval ("this.orderbook" + selectedTable)._y + 30; cancel_mc.gotoAndPlay(1); } selectClip._visible = true; if (rantable2 != selectedTable) { selectClip._x = eval ("owner.orderbook" + rantable2)._x - 20; selectClip._y = eval ("owner.orderbook" + rantable2)._y - 80; } else { selectClip._x = eval ("owner.orderbook" + rantable1)._x - 20; selectClip._y = eval ("owner.orderbook" + rantable1)._y - 80; } } } } } function ReadyToGetChocolate(_arg1) { clearInterval(_arg1.choco_interval); _arg1.machineStatus = "ready"; _arg1.infoClip._visible = true; _arg1.infoClip.gotoAndStop(1); _arg1.infoClip.info.text = "Nice! She wants a round box of chocolate. Click on the BOXED CHOCOLATE MACHINE and select the round box of chocolate to produce it."; _arg1.selectClip._visible = true; _arg1.selectClip._x = _arg1.choco_machines._x; _arg1.selectClip._y = _arg1.choco_machines._y - 80; } function IdleProcess(owner) { if (!owner.isPaused) { owner.preparecnt++; if (owner.preparecnt >= 20) { clearInterval(owner.process_interval); if (owner.intervalstatus == "chocolateready") { owner.machineshake = "off"; owner.machineStatus = "ready"; owner.isPopup = false; if (_global.soundstat == "onn") { _root.choco_done_Sound.start(); } if (owner.orderTaken == 1) { if (eval ("owner.customer" + owner.selectedTable).neededchocolate != owner.preferred_chocolate1) { owner.iscorrectChocolateChoose = false; owner.popup_info = "mismatch"; _global.popupText = "Oops! You need to make a ROUND box of chocolate. Click on the chocolate to pick it up and then take it to the TRASH BIN!"; owner.ShowPopup(owner); } else { owner.iscorrectChocolateChoose = true; owner.infoClip._visible = true; owner.infoClip.gotoAndStop(2); owner.infoClip.info.text = "Great! Now click on the BOXED CHOCOLATE MACHINE to pick up the chocolate."; } } else if (owner.orderTaken == 2) { if (owner.salesGirl.chocolateCount == 0) { if (eval ("owner.customer" + owner.selectedTable).neededchocolate != owner.preferred_chocolate1) { owner.iscorrectChocolateChoose = false; owner.popup_info = "mismatch"; _global.popupText = "Oops! You need to make a ROUND box of chocolate. Click on the chocolate to pick it up and then take it to the TRASH BIN!"; owner.ShowPopup(owner); } else { owner.iscorrectChocolateChoose = true; owner.infoClip._visible = true; owner.infoClip.gotoAndStop(3); owner.infoClip.info.text = "Great! Pick up the round box of chocolate."; } } else if (owner.salesGirl.chocolateCount == 1) { if ((eval ("owner.customer" + owner.selectedTable).neededchocolate != owner.preferred_chocolate1) || (eval ("owner.customer" + owner.selectedTable).neededchocolate != owner.preferred_chocolate2)) { owner.iscorrectChocolateChoose = false; owner.popup_info = "mismatch"; _global.popupText = "Oops! You need to make a ROUND box of chocolate. Click on the chocolate to pick it up and then take it to the TRASH BIN!"; owner.ShowPopup(owner); } else { owner.iscorrectChocolateChoose = true; owner.infoClip._visible = true; owner.infoClip.gotoAndStop(2); owner.infoClip.info.text = "Nice! Pick up the second box and take the boxes to the customers."; owner.selectClip._visible = true; owner.selectClip._x = owner.choco_machines._x; owner.selectClip._y = owner.choco_machines._y - 80; } } } } } } } function getRandom(_arg4, _arg5) { var _local3 = _arg5 - _arg4; var _local2 = Math.random() * _local3; var _local1 = Math.round(_local2); _local1 = _local1 + _arg4; return(_local1); } function CallPause() { var _local2 = this; stopAllSounds(); _local2.bg.blink.gotoAndStop(_local2.bg.blink._currentframe); _local2.customer1.customer.gotoAndStop(_local2.customer1.customer._currentframe); _local2.customer2.customer.gotoAndStop(_local2.customer2.customer._currentframe); _local2.customer3.customer.gotoAndStop(_local2.customer3.customer._currentframe); _local2.special_choco_machines.machine1.blink.gotoAndStop(_local2.special_choco_machines.machine1.blink._currentframe); _local2.choco_machines.single_machine.blink.gotoAndStop(_local2.choco_machines.single_machine.blink._currentframe); _local2.salesGirl.coffeeicon.smoke.gotoAndStop(_local2.salesGirl.coffeeicon.smoke._currentframe); _local2.customer4.customer.gotoAndStop(_local2.customer4.customer._currentframe); _local2.coin_Anim1.coin.gotoAndStop(_local2.coin_Anim1.coin._currentframe); _local2.coin_Anim2.coin.gotoAndStop(_local2.coin_Anim2.coin._currentframe); _local2.coin_Anim3.coin.gotoAndStop(_local2.coin_Anim3.coin._currentframe); _local2.coin_Anim4.coin.gotoAndStop(_local2.coin_Anim4.coin._currentframe); _local2.comboClip.combo.gotoAndStop(_local2.comboClip.combo._currentframe); _local2.orderbook1.heartinClip.gotoAndStop(_local2.orderbook1.heartinClip._currentframe); _local2.orderbook2.heartinClip.gotoAndStop(_local2.orderbook2.heartinClip._currentframe); _local2.orderbook3.heartinClip.gotoAndStop(_local2.orderbook3.heartinClip._currentframe); _local2.orderbook4.heartinClip.gotoAndStop(_local2.orderbook4.heartinClip._currentframe); _local2.curScoreClip.gotoAndStop(_local2.curScoreClip._currentframe); _local2.coin_Anim1.coin.coin_rotate.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate._currentframe); _local2.coin_Anim1.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate2._currentframe); _local2.coin_Anim1.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate3._currentframe); _local2.coin_Anim1.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim1.coin.coin_rotate4._currentframe); _local2.coin_Anim2.coin.coin_rotate.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate._currentframe); _local2.coin_Anim2.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate2._currentframe); _local2.coin_Anim2.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate3._currentframe); _local2.coin_Anim2.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim2.coin.coin_rotate4._currentframe); _local2.coin_Anim3.coin.coin_rotate.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate._currentframe); _local2.coin_Anim3.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate2._currentframe); _local2.coin_Anim3.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate3._currentframe); _local2.coin_Anim3.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim3.coin.coin_rotate4._currentframe); _local2.coin_Anim4.coin.coin_rotate.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate._currentframe); _local2.coin_Anim4.coin.coin_rotate2.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate2._currentframe); _local2.coin_Anim4.coin.coin_rotate3.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate3._currentframe); _local2.coin_Anim4.coin.coin_rotate4.gotoAndStop(_local2.coin_Anim4.coin.coin_rotate4._currentframe); _local2.comboClip.combo.coin_rotate.gotoAndStop(_local2.comboClip.combo.coin_rotate._currentframe); _local2.chocolateClip.mc.gotoAndStop(_local2.chocolateClip.mc._currentframe); _local2.selectClip.gotoAndStop(_local2.selectClip._currentframe); } function CallResume() { var _local4 = this; if (_global.soundstat == "onn") { _root.gameSound.start(); } _local4.bg.blink.gotoAndPlay(_local4.bg.blink._currentframe); _local4.customer1.customer.gotoAndPlay(_local4.customer1.customer._currentframe); _local4.customer2.customer.gotoAndPlay(_local4.customer2.customer._currentframe); _local4.customer3.customer.gotoAndPlay(_local4.customer3.customer._currentframe); _local4.special_choco_machines.machine1.blink.gotoAndPlay(_local4.special_choco_machines.machine1.blink._currentframe); _local4.choco_machines.single_machine.blink.gotoAndPlay(_local4.choco_machines.single_machine.blink._currentframe); _local4.salesGirl.coffeeicon.smoke.gotoAndPlay(_local4.salesGirl.coffeeicon.smoke._currentframe); _local4.customer4.customer.gotoAndPlay(_local4.customer4.customer._currentframe); _local4.coin_Anim1.coin.gotoAndPlay(_local4.coin_Anim1.coin._currentframe - 1); _local4.coin_Anim2.coin.gotoAndPlay(_local4.coin_Anim2.coin._currentframe - 1); _local4.coin_Anim3.coin.gotoAndPlay(_local4.coin_Anim3.coin._currentframe - 1); _local4.coin_Anim4.coin.gotoAndPlay(_local4.coin_Anim4.coin._currentframe - 1); _local4.comboClip.combo.gotoAndPlay(_local4.comboClip.combo._currentframe - 1); _local4.orderbook1.heartinClip.gotoAndPlay(_local4.orderbook1.heartinClip._currentframe - 1); _local4.orderbook2.heartinClip.gotoAndPlay(_local4.orderbook2.heartinClip._currentframe - 1); _local4.orderbook3.heartinClip.gotoAndPlay(_local4.orderbook3.heartinClip._currentframe - 1); _local4.orderbook4.heartinClip.gotoAndPlay(_local4.orderbook4.heartinClip._currentframe - 1); _local4.curScoreClip.gotoAndPlay(_local4.curScoreClip._currentframe); _local4.coin_Anim1.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate._currentframe); _local4.coin_Anim1.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate2._currentframe); _local4.coin_Anim1.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate3._currentframe); _local4.coin_Anim1.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim1.coin.coin_rotate4._currentframe); _local4.coin_Anim2.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate._currentframe); _local4.coin_Anim2.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate2._currentframe); _local4.coin_Anim2.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate3._currentframe); _local4.coin_Anim2.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim2.coin.coin_rotate4._currentframe); _local4.coin_Anim3.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate._currentframe); _local4.coin_Anim3.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate2._currentframe); _local4.coin_Anim3.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate3._currentframe); _local4.coin_Anim3.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim3.coin.coin_rotate4._currentframe); _local4.coin_Anim4.coin.coin_rotate.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate._currentframe); _local4.coin_Anim4.coin.coin_rotate2.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate2._currentframe); _local4.coin_Anim4.coin.coin_rotate3.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate3._currentframe); _local4.coin_Anim4.coin.coin_rotate4.gotoAndPlay(_local4.coin_Anim4.coin.coin_rotate4._currentframe); _local4.comboClip.combo.coin_rotate.gotoAndPlay(_local4.comboClip.combo.coin_rotate._currentframe); _local4.chocolateClip.mc.gotoAndPlay(_local4.chocolateClip.mc._currentframe - 1); _local4.selectClip.gotoAndPlay(_local4.selectClip._currentframe); } function ObjectsRollOut() { table1.onRollOut(); table2.onRollOut(); table3.onRollOut(); choco_machines.onRollOut(); dusbin.onRollOut(); } function Reset() { targetclip = "table1"; lobbyArr.length = 0; lobbyArr = new Array(1, 2, 3); currentDirection = "down"; targetDirection = ""; isPopup = false; popup_info = "welcome"; clearInterval(popup_interval); clearInterval(process_interval); clearInterval(customerEnterInterval); clearInterval(customerEnterInterval2); popup_interval = -1; isTargetReached = true; selectedTarget = ""; orderno = 0; score = 0; ismoveready = false; Key.removeListener(keylistener); Key.removeListener(leve1Keyobj); keyTarget = undefined; infoClip._visible = false; } var targetclip = "table1"; var lobbyArr = new Array(1, 2, 3); var currentDirection = "down"; var isPopup = false; var popup_info = "welcome"; var popup_interval = -1; var process_interval = -1; var isTargetReached = true; var selectedTarget = ""; var orderno = 0; var ismoveready = false; var orderTaken = 0; var customerCount = 0; var machineStatus = "notready"; var dusbinStatus = "notready"; var girlwalkframe = 2; var isFirstServeFinished = false; var score = 0; var depthArr = new Array(-10313, -10315, -10317); var curtarget = ""; var infointerval = -1; var customerEnterInterval = -1; var customerEnterInterval2 = -1; var choco_interval = -1; var isPaused = false; var machinespeed = 1; var machineshake = "off"; var specialmachineshake = "off"; var preparecnt = 0; }
Symbol 271 Button
on (rollOver) { hud = true; } on (rollOut) { hud = false; }
Symbol 274 Button
on (release) { getURL (_root.urlname, "_blank"); }
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 2
stop();
Symbol 287 MovieClip Frame 132
_parent.gotoAndPlay("title");
Symbol 301 MovieClip Frame 1
version_info.text = _root.versionno; trace(_root.versionno);
Symbol 305 MovieClip Frame 126
_parent.gotoAndPlay("mainmenu");
Symbol 311 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 2
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 2
stop();
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 2
stop();
Symbol 327 Button
on (release) { getURL (_root.premiumurl, "_blank"); }
Symbol 330 MovieClip Frame 1
function menuNavigation(_arg1) { btn_play.gotoAndStop(1); btn_instructions.gotoAndStop(1); btn_moregames.gotoAndStop(1); if (_arg1 == 1) { btn_play.gotoAndStop(2); } else if (_arg1 == 2) { btn_moregames.gotoAndStop(2); } } var owner = this; var cnt = 1; var maxcnt = 2; var menuobj = new Object(); Key.addListener(menuobj); menuNavigation(cnt); menuobj.onKeyDown = function () { if (Key.getCode() == 38) { if (cnt <= 1) { cnt = maxcnt; } else { cnt--; } menuNavigation(cnt); } else if (Key.getCode() == 40) { if (cnt >= maxcnt) { cnt = 1; } else { cnt++; } menuNavigation(cnt); } else if ((Key.getCode() == 32) || (Key.getCode() == 13)) { if (cnt == 1) { Key.removeListener(menuobj); btn_play.onRelease(); } else if (cnt == 2) { Key.removeListener(menuobj); btn_moregames.onRelease(); } } }; btn_play.onRollOver = function () { cnt = 1; menuNavigation(cnt); }; btn_play.onRollOut = (btn_play.onReleaseOutside = function () { btn_play.gotoAndStop(1); }); btn_moregames.onRollOver = function () { cnt = 2; menuNavigation(cnt); }; btn_moregames.onRollOut = (btn_moregames.onReleaseOutside = function () { btn_moregames.gotoAndStop(1); }); btn_play.onRelease = function () { _root.menuSound.stop(); _global.calenderfrom = "mainmenu"; owner._parent.gotoAndStop("intro"); };
Instance of Symbol 324 MovieClip "btn_moregames" in Symbol 330 MovieClip Frame 1
on (release) { getURL (_root.urlname, "_blank"); }
Symbol 410 MovieClip Frame 1
function start_play(clip) { rectw = 700; recth = 500; xpos = random(rectw - 5); ypos = random(recth - 5); xyscale = random(100) + 100; eval (clip)._x = xpos; eval (clip)._rotation = random(10) - 5; eval (clip)._xscale = xyscale; eval (clip)._yscale = xyscale; clip.gotoAndPlay(3); } threshold = 28; num = random(30); if (threshold < num) { start_play(this); }
Symbol 410 MovieClip Frame 2
gotoAndPlay (1);
Symbol 410 MovieClip Frame 3
counter = random(5); gotoAndPlay("l" + counter);
Symbol 410 MovieClip Frame 133
gotoAndPlay (1);
Symbol 410 MovieClip Frame 327
gotoAndPlay (1);
Symbol 410 MovieClip Frame 449
stop(); gotoAndPlay (1);
Symbol 410 MovieClip Frame 623
stop(); gotoAndPlay (1);
Symbol 412 MovieClip Frame 1
var leafarr = new Array(); var k = 0; while (k < leafarr.length) { leafarr[k].removeMovieClip(); k++; } i = 1; while (i < 60) { duplicateMovieClip ("ani_clip", "ani_clip" + i, 16384 + i); leafarr.push(eval ("ani_clip" + i)); i++; }
Symbol 421 MovieClip Frame 1
function start_play(clip) { rectw = 700; recth = 500; xpos = random(rectw - 5); ypos = random(recth - 5); xyscale = random(100) + 100; eval (clip)._x = xpos; eval (clip)._rotation = random(10) - 5; eval (clip)._xscale = xyscale; eval (clip)._yscale = xyscale; clip.gotoAndPlay(3); } threshold = 28; num = random(30); if (threshold < num) { start_play(this); }
Symbol 421 MovieClip Frame 2
gotoAndPlay (1);
Symbol 421 MovieClip Frame 3
counter = random(20); gotoAndPlay("l" + counter);
Symbol 421 MovieClip Frame 45
gotoAndPlay (1);
Symbol 422 MovieClip Frame 1
var rainarr = new Array(); var j = 0; while (j < rainarr.length) { rainarr[j].removeMovieClip(); j++; } i = 1; while (i < 180) { duplicateMovieClip ("ani_clip", "ani_clip" + i, 16384 + i); rainarr.push(eval ("ani_clip" + i)); i++; }
Symbol 428 MovieClip Frame 15
stop();
Symbol 441 MovieClip Frame 15
stop();
Symbol 448 MovieClip Frame 1
function start_play(clip) { rectw = 700; recth = 500; xpos = random(rectw - 5); ypos = random(recth - 5); xyscale = random(100) + 100; eval (clip)._x = xpos; eval (clip)._rotation = random(10) - 5; eval (clip)._xscale = xyscale; eval (clip)._yscale = xyscale; clip.gotoAndPlay(3); } threshold = 28; num = random(30); if (threshold < num) { start_play(this); }
Symbol 448 MovieClip Frame 2
gotoAndPlay (1);
Symbol 448 MovieClip Frame 3
counter = random(5); gotoAndPlay("l" + counter);
Symbol 448 MovieClip Frame 133
gotoAndPlay (1);
Symbol 448 MovieClip Frame 327
gotoAndPlay (1);
Symbol 448 MovieClip Frame 449
stop(); gotoAndPlay (1);
Symbol 448 MovieClip Frame 623
stop(); gotoAndPlay (1);
Symbol 449 MovieClip Frame 1
var leafarr = new Array(); var k = 0; while (k < leafarr.length) { leafarr[k].removeMovieClip(); k++; } i = 1; while (i < 30) { duplicateMovieClip ("ani_clip", "ani_clip" + i, 16384 + i); leafarr.push(eval ("ani_clip" + i)); i++; }
Symbol 451 MovieClip Frame 12
stop();
Symbol 453 MovieClip Frame 15
stop();
Symbol 454 MovieClip Frame 20
stop();
Symbol 455 MovieClip Frame 13
stop(); var xScaleT = (new mx.transitions.Tween(sigla, "_y", mx.transitions.easing.Strong.easeOut, 520, 408.9, 1, true)); var mcTween = (new mx.transitions.Tween(box, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 3, true)); var snowarr = new Array(); var i = 0; while (i < snowarr.length) { snowarr[i].removeMovieClip(); i++; } k = 0; while (k < 100) { duplicateMovieClip (snow, "snow" + k, k); var eval (undefined) = undefined; snowarr.push(eval ("snow" + k)); k++; }
Symbol 456 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 2
stop();
Symbol 456 MovieClip Frame 3
stop();
Symbol 456 MovieClip Frame 4
stop();
Symbol 456 MovieClip Frame 5
stop();
Symbol 456 MovieClip Frame 6
stop();
Symbol 456 MovieClip Frame 7
stop();
Symbol 480 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 2
stop();
Symbol 485 MovieClip Frame 1
stop();
Symbol 485 MovieClip Frame 2
stop();
Symbol 490 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 2
stop();
Symbol 495 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 2
stop();
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 2
stop();
Symbol 524 MovieClip Frame 23
stop();
Symbol 538 MovieClip Frame 15
stop();
Symbol 549 MovieClip Frame 15
stop();
Symbol 550 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 2
stop();
Symbol 550 MovieClip Frame 3
stop();
Symbol 550 MovieClip Frame 4
stop();
Symbol 571 MovieClip Frame 1
if (_global.levelSelected > 9) { _global.calenderxPos = -100; seasonMc.gotoAndStop(2); } else { btn_left._visible = false; } monthMc._x = _global.calenderxPos; var total = 0; var curmc; var i = 1; while (i <= 10) { eval (("monthMc.level" + i) + ".hand_mc")._visible = false; i++; } if (_global.levelFinished == undefined) { _global.levelSelected = 1; _global.gotolevel = 1; _global.levelFinished = 0; eval (("monthMc.level" + _global.levelSelected) + ".hand_mc")._visible = true; monthMc.level1.gotoAndStop(2); } else { _global.gotolevel = _global.levelSelected; eval (("monthMc.level" + _global.levelSelected) + ".hand_mc")._visible = true; eval ("monthMc.level" + _global.levelSelected).gotoAndStop(2); var i = 1; while (i <= _global.levelFinished) { if (eval (("_global.level" + i) + "Status") == "expert") { eval ("monthMc.level" + i).gotoAndStop(3); if ((i != _global.levelFinished) && (_global.calenderfrom != "game")) { eval ("monthMc.level" + i).clip.gotoAndStop(10); } } else { eval ("monthMc.level" + i).gotoAndStop(4); if ((i != _global.levelFinished) && (_global.calenderfrom != "game")) { eval ("monthMc.level" + i).clip.gotoAndStop(10); } } eval ("monthMc.level" + i).blink_mc.gotoAndStop(1); eval ("monthMc.level" + i).score.text = eval (("_global.level" + i) + "Score"); total = total + eval (("_global.level" + i) + "Score"); i++; } totalscoreMc.score.text = total; } monthMc.level1.onRelease = function () { eval (("monthMc.level" + _global.gotolevel) + ".hand_mc")._visible = false; eval ("monthMc.level" + _global.gotolevel).blink_mc.gotoAndStop(1); monthMc.level1.hand_mc._visible = true; monthMc.level1.blink_mc.gotoAndPlay(1); _global.gotolevel = 1; btn_play.onRelease(); }; monthMc.level2.onRelease = function () { if (_global.levelFinished >= 1) { eval (("monthMc.level" + _global.gotolevel) + ".hand_mc")._visible = false; eval ("monthMc.level" + _global.gotolevel).blink_mc.gotoAndStop(1); monthMc.level2.hand_mc._visible = true; monthMc.level2.blink_mc.gotoAndPlay(1); _global.gotolevel = 2; btn_play.onRelease(); } }; monthMc.level3.onRelease = function () { if (_global.levelFinished >= 2) { eval (("monthMc.level" + _global.gotolevel) + ".hand_mc")._visible = false; eval ("monthMc.level" + _global.gotolevel).blink_mc.gotoAndStop(1); monthMc.level3.hand_mc._visible = true; monthMc.level3.blink_mc.gotoAndPlay(1); _global.gotolevel = 3; btn_play.onRelease(); } }; monthMc.level4.onRelease = function () { if (_global.levelFinished >= 3) { eval (("monthMc.level" + _global.gotolevel) + ".hand_mc")._visible = false; eval ("monthMc.level" + _global.gotolevel).blink_mc.gotoAndStop(1); monthMc.level4.hand_mc._visible = true; monthMc.level4.blink_mc.gotoAndPlay(1); _global.gotolevel = 4; btn_play.onRelease(); } }; monthMc.level5.onRelease = function () { if (_global.levelFinished >= 4) { eval (("monthMc.level" + _global.gotolevel) + ".hand_mc")._visible = false; eval ("monthMc.level" + _global.gotolevel).blink_mc.gotoAndStop(1); monthMc.level5.hand_mc._visible = true; monthMc.level5.blink_mc.gotoAndPlay(1); _global.gotolevel = 5; btn_play.onRelease(); } }; monthMc.level6.onRelease = function () { if (_global.levelFinished >= 5) { eval (("monthMc.level" + _global.gotolevel) + ".hand_mc")._visible = false; eval ("monthMc.level" + _global.gotolevel).blink_mc.gotoAndStop(1); monthMc.level6.hand_mc._visible = true; monthMc.level6.blink_mc.gotoAndPlay(1); _global.gotolevel = 6; btn_play.onRelease(); } }; monthMc.level7.onRelease = function () { if (_global.levelFinished >= 6) { eval (("monthMc.level" + _global.gotolevel) + ".hand_mc")._visible = false; eval ("monthMc.level" + _global.gotolevel).blink_mc.gotoAndStop(1); monthMc.level7.hand_mc._visible = true; monthMc.level7.blink_mc.gotoAndPlay(1); _global.gotolevel = 7; btn_play.onRelease(); } }; monthMc.level8.onRelease = function () { if (_global.levelFinished >= 7) { eval (("monthMc.level" + _global.gotolevel) + ".hand_mc")._visible = false; eval ("monthMc.level" + _global.gotolevel).blink_mc.gotoAndStop(1); monthMc.level8.hand_mc._visible = true; monthMc.level8.blink_mc.gotoAndPlay(1); _global.gotolevel = 8; btn_play.onRelease(); } }; monthMc.level9.onRelease = function () { if (_global.levelFinished >= 8) { eval (("monthMc.level" + _global.gotolevel) + ".hand_mc")._visible = false; eval ("monthMc.level" + _global.gotolevel).blink_mc.gotoAndStop(1); monthMc.level9.hand_mc._visible = true; monthMc.level9.blink_mc.gotoAndPlay(1); _global.gotolevel = 9; btn_play.onRelease(); } }; monthMc.level10.onRelease = function () { if (_global.levelFinished >= 9) { eval (("monthMc.level" + _global.gotolevel) + ".hand_mc")._visible = false; eval ("monthMc.level" + _global.gotolevel).blink_mc.gotoAndStop(1); monthMc.level10.hand_mc._visible = true; monthMc.level10.blink_mc.gotoAndPlay(1); _global.gotolevel = 10; btn_play.onRelease(); } }; btn_play.onRelease = function () { Key.removeListener(levelkeyobj); this._parent._parent.gotoAndStop("level" + _global.gotolevel); }; btn_menu.onRelease = function () { Key.removeListener(levelkeyobj); this._parent._parent.gotoAndStop("mainmenu"); }; function levelNavigationRight() { if (levelcnt < _global.levelSelected) { eval (("monthMc.level" + levelcnt) + ".hand_mc")._visible = false; eval ("monthMc.level" + levelcnt).blink_mc.gotoAndStop(1); levelcnt++; eval (("monthMc.level" + levelcnt) + ".hand_mc")._visible = true; eval ("monthMc.level" + levelcnt).blink_mc.gotoAndPlay(1); _global.gotolevel = levelcnt; } } function levelNavigationLeft() { if (levelcnt > 1) { eval (("monthMc.level" + levelcnt) + ".hand_mc")._visible = false; eval ("monthMc.level" + levelcnt).blink_mc.gotoAndStop(1); levelcnt--; eval (("monthMc.level" + levelcnt) + ".hand_mc")._visible = true; eval ("monthMc.level" + levelcnt).blink_mc.gotoAndPlay(1); _global.gotolevel = levelcnt; } } function seasonChange(_arg1) { if ((_arg1.monthMc._x < 500) && (_arg1.monthMc._x >= -90)) { if ((_arg1.seasonMc._currentframe != 1) && (_arg1.seasonMc._currentframe != 7)) { _arg1.seasonMc.gotoAndStop(1); } } else if ((_arg1.monthMc._x < -90) && (_arg1.monthMc._x >= -920)) { if ((_arg1.seasonMc._currentframe != 2) && (_arg1.seasonMc._currentframe != 6)) { _arg1.seasonMc.gotoAndStop(2); } } else if ((_arg1.monthMc._x < -920) && (_arg1.monthMc._x >= -1750)) { if ((_arg1.seasonMc._currentframe != 3) && (_arg1.seasonMc._currentframe != 5)) { _arg1.seasonMc.gotoAndStop(3); } } else if (_arg1.monthMc._x < -1750) { if (_arg1.seasonMc._currentframe != 4) { _arg1.seasonMc.gotoAndStop(4); } } } function seasonChangeReverse(_arg1) { if ((_arg1.monthMc._x < 500) && (_arg1.monthMc._x >= -90)) { if ((_arg1.seasonMc._currentframe != 7) && (_arg1.seasonMc._currentframe != 1)) { _arg1.seasonMc.gotoAndStop(7); } } else if ((_arg1.monthMc._x < -90) && (_arg1.monthMc._x >= -920)) { if ((_arg1.seasonMc._currentframe != 6) && (_arg1.seasonMc._currentframe != 2)) { _arg1.seasonMc.gotoAndStop(6); } } else if ((_arg1.monthMc._x < -920) && (_arg1.monthMc._x >= -1750)) { if ((_arg1.seasonMc._currentframe != 5) && (_arg1.seasonMc._currentframe != 3)) { _arg1.seasonMc.gotoAndStop(5); } } else if (_arg1.monthMc._x < -1750) { if (_arg1.seasonMc._currentframe != 4) { _arg1.seasonMc.gotoAndStop(4); } } } var levelkeyobj; var rightInterval = -1; var leftInterval = -1; var owner = this; var curframe = 1; var easing = 0.003; var easingright = 0.003; var targetX; var isRightready = false; var isLeftready = false; var levelcnt; levelcnt = _global.levelSelected; levelkeyobj = new Object(); Key.addListener(levelkeyobj); levelkeyobj.onKeyDown = function () { if (Key.getCode() == 39) { levelNavigationRight(); } else if (Key.getCode() == 37) { levelNavigationLeft(); } else if (Key.getCode() == 13) { btn_play.onRelease(); } else if (Key.getAscii() == 27) { btn_menu.onRelease(); } }; btn_right.onPress = function () { targetX = -10000; isRightready = true; }; btn_left.onPress = function () { targetX = 8000; isLeftready = true; }; btn_right.onRelease = function () { isRightready = false; }; btn_left.onRelease = function () { isLeftready = false; }; this.onEnterFrame = function () { if (isRightready) { var _local2 = (targetX - monthMc._x) * easingright; monthMc._x = monthMc._x + _local2; if (monthMc._x <= -2130) { btn_right._visible = false; monthMc._x = -2130; isRightready = false; } else { btn_left._visible = true; } seasonChange(this); } if (isLeftready) { var _local2 = (targetX - monthMc._x) * easing; monthMc._x = monthMc._x + _local2; if (monthMc._x >= 430) { btn_left._visible = false; monthMc._x = 430; isLeftready = false; } else { btn_right._visible = true; } seasonChangeReverse(this); } };
Symbol 579 MovieClip Frame 3
stop();
Symbol 587 MovieClip Frame 1
stop();
Symbol 587 MovieClip Frame 2
stop();
Symbol 588 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 2
stop();
Symbol 597 MovieClip Frame 66
stop();
Symbol 598 MovieClip Frame 16
stop();
Symbol 606 MovieClip Frame 10
stop();
Symbol 607 MovieClip Frame 1
stop();
Instance of Symbol 175 MovieClip "pointer" in Symbol 607 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Symbol 607 MovieClip Frame 2
stop();
Symbol 607 MovieClip Frame 3
stop();
Symbol 618 MovieClip Frame 61
stop();
Symbol 619 MovieClip Frame 15
stop();
Symbol 628 MovieClip Frame 9
stop();
Symbol 629 MovieClip Frame 1
stop();
Symbol 629 MovieClip Frame 2
stop();
Symbol 629 MovieClip Frame 3
stop();
Symbol 638 MovieClip Frame 1
stop();
Symbol 638 MovieClip Frame 2
stop();
Symbol 639 MovieClip Frame 1
stop();
Instance of Symbol 175 MovieClip "pointer" in Symbol 639 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Symbol 639 MovieClip Frame 2
stop();
Symbol 678 MovieClip Frame 26
stop();
Symbol 679 MovieClip Frame 51
stop();
Symbol 700 MovieClip Frame 26
stop();
Symbol 701 MovieClip Frame 58
stop();
Symbol 726 MovieClip Frame 25
stop();
Symbol 727 MovieClip Frame 72
stop();
Symbol 728 MovieClip Frame 1
stop();
Symbol 728 MovieClip Frame 2
stop();
Symbol 728 MovieClip Frame 3
stop();
Symbol 778 MovieClip Frame 1
stop();
Symbol 789 MovieClip Frame 64
stop();
Symbol 790 MovieClip Frame 16
stop();
Symbol 799 MovieClip Frame 10
stop();
Symbol 800 MovieClip Frame 1
stop();
Symbol 800 MovieClip Frame 2
stop();
Symbol 800 MovieClip Frame 3
stop();
Symbol 818 MovieClip Frame 64
stop();
Symbol 819 MovieClip Frame 16
stop();
Symbol 830 MovieClip Frame 1
stop();
Symbol 830 MovieClip Frame 2
stop();
Symbol 830 MovieClip Frame 3
stop();
Symbol 831 MovieClip Frame 1
stop();
Instance of Symbol 175 MovieClip "pointer" in Symbol 831 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Symbol 831 MovieClip Frame 2
stop();
Symbol 835 MovieClip Frame 26
stop();
Symbol 836 MovieClip Frame 121
stop();
Symbol 840 MovieClip Frame 26
stop();
Symbol 841 MovieClip Frame 123
stop();
Symbol 849 MovieClip Frame 26
stop();
Symbol 850 MovieClip Frame 151
stop();
Symbol 858 MovieClip Frame 26
stop();
Symbol 859 MovieClip Frame 151
stop();
Symbol 867 MovieClip Frame 26
stop();
Symbol 868 MovieClip Frame 151
stop();
Symbol 876 MovieClip Frame 26
stop();
Symbol 877 MovieClip Frame 150
stop();
Symbol 878 MovieClip Frame 1
stop();
Symbol 878 MovieClip Frame 2
stop();
Symbol 878 MovieClip Frame 3
stop();
Symbol 878 MovieClip Frame 4
stop();
Symbol 878 MovieClip Frame 5
stop();
Symbol 878 MovieClip Frame 6
stop();
Symbol 883 MovieClip Frame 75
stop();
Symbol 884 MovieClip Frame 1
stop();
Symbol 884 MovieClip Frame 15
stop();
Symbol 892 MovieClip Frame 10
stop();
Symbol 893 MovieClip Frame 1
stop();
Instance of Symbol 175 MovieClip "pointer" in Symbol 893 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Symbol 893 MovieClip Frame 2
stop();
Symbol 893 MovieClip Frame 3
stop();
Symbol 944 MovieClip Frame 1
stop();
Symbol 944 MovieClip Frame 126
stop();
Symbol 947 MovieClip Frame 55
stop();
Symbol 951 MovieClip Frame 10
stop();
Symbol 973 MovieClip Frame 1
stop();
Symbol 973 MovieClip Frame 2
stop();
Symbol 973 MovieClip Frame 3
stop();
Symbol 994 MovieClip Frame 32
stop(); this._visible = false;
Symbol 1025 MovieClip Frame 35
stop();
Symbol 1056 MovieClip Frame 1
stop();
Symbol 1056 MovieClip Frame 2
stop();
Symbol 1058 MovieClip Frame 1
stop();
Symbol 1058 MovieClip Frame 2
stop();
Symbol 1060 MovieClip Frame 1
stop();
Symbol 1060 MovieClip Frame 2
stop();
Symbol 1062 MovieClip Frame 1
stop();
Symbol 1062 MovieClip Frame 2
stop();
Symbol 1064 MovieClip Frame 1
stop();
Symbol 1064 MovieClip Frame 2
stop();
Symbol 1066 MovieClip Frame 1
stop();
Symbol 1066 MovieClip Frame 2
stop();
Symbol 1068 MovieClip Frame 1
stop();
Symbol 1068 MovieClip Frame 2
stop();
Symbol 1069 MovieClip Frame 1
stop();
Symbol 1069 MovieClip Frame 2
stop();
Symbol 1069 MovieClip Frame 3
stop();
Symbol 1069 MovieClip Frame 4
stop();
Symbol 1069 MovieClip Frame 5
stop();
Symbol 1069 MovieClip Frame 6
stop();
Symbol 1069 MovieClip Frame 7
stop();
Symbol 1069 MovieClip Frame 8
stop();
Symbol 1069 MovieClip Frame 9
stop();
Symbol 1087 MovieClip Frame 1
stop();
Symbol 1087 MovieClip Frame 2
stop();
Symbol 1087 MovieClip Frame 3
stop();
Symbol 1087 MovieClip Frame 4
stop();
Symbol 1087 MovieClip Frame 5
stop();
Symbol 1087 MovieClip Frame 6
stop();
Symbol 1150 MovieClip Frame 21
stop(); _parent._parent._parent.girlwalkframe = 2; _parent.gotoAndStop(2);
Symbol 1157 MovieClip Frame 21
stop(); _global.jump = true; _global.jump_choco1 = chocobox1._currentframe; _parent._parent._parent.girlwalkframe = 4; _parent.gotoAndStop(4);
Symbol 1164 MovieClip Frame 21
stop(); _global.jump = true; _global.jump_choco1 = chocobox1._currentframe; _global.jump_choco2 = chocobox2._currentframe; _parent._parent._parent.girlwalkframe = 8; _parent.gotoAndStop(8);
Symbol 1165 MovieClip Frame 1
stop();
Symbol 1165 MovieClip Frame 2
stop();
Symbol 1165 MovieClip Frame 3
stop();
Symbol 1165 MovieClip Frame 4
stop(); if (_global.jump == true) { _global.jump = false; chocobox1.gotoAndStop(_global.jump_choco1); }
Symbol 1165 MovieClip Frame 7
stop();
Symbol 1165 MovieClip Frame 8
stop(); if (_global.jump == true) { _global.jump = false; chocobox1.gotoAndStop(_global.jump_choco1); chocobox2.gotoAndStop(_global.jump_choco2); }
Symbol 1165 MovieClip Frame 9
stop();
Symbol 1165 MovieClip Frame 10
stop();
Symbol 1165 MovieClip Frame 11
stop();
Symbol 1227 MovieClip Frame 1
stop();
Symbol 1227 MovieClip Frame 2
stop();
Symbol 1227 MovieClip Frame 3
stop();
Symbol 1227 MovieClip Frame 4
stop();
Symbol 1227 MovieClip Frame 5
stop();
Symbol 1227 MovieClip Frame 6
stop();
Symbol 1227 MovieClip Frame 7
stop();
Symbol 1227 MovieClip Frame 8
stop();
Symbol 1231 MovieClip Frame 1
stop();
Symbol 1231 MovieClip Frame 2
stop();
Symbol 1231 MovieClip Frame 3
stop();
Symbol 1231 MovieClip Frame 4
stop();
Symbol 1231 MovieClip Frame 5
stop();
Symbol 1231 MovieClip Frame 6
stop();
Symbol 1231 MovieClip Frame 7
stop();
Symbol 1231 MovieClip Frame 8
stop();
Symbol 1232 MovieClip Frame 1
stop();
Symbol 1232 MovieClip Frame 2
stop();
Symbol 1232 MovieClip Frame 3
stop();
Symbol 1232 MovieClip Frame 4
stop();
Symbol 1237 MovieClip Frame 1
stop();
Symbol 1237 MovieClip Frame 2
stop();
Symbol 1238 MovieClip Frame 1
stop();
Symbol 1238 MovieClip Frame 2
stop();
Symbol 1239 MovieClip Frame 1
stop();
Symbol 1239 MovieClip Frame 2
stop();
Symbol 1245 MovieClip Frame 5
stop(); type_round.gotoAndStop(2);
Symbol 1246 MovieClip Frame 6
stop(); this._parent._visible = false;
Symbol 1247 MovieClip Frame 1
stop();
Symbol 1247 MovieClip Frame 2
stop();
Symbol 1256 MovieClip Frame 53
stop();
Symbol 1260 MovieClip Frame 53
stop();
Symbol 1264 MovieClip Frame 53
stop();
Symbol 1268 MovieClip Frame 53
stop();
Symbol 1269 MovieClip Frame 1
stop();
Symbol 1269 MovieClip Frame 2
stop();
Symbol 1269 MovieClip Frame 3
stop();
Symbol 1269 MovieClip Frame 4
stop();
Symbol 1269 MovieClip Frame 5
stop();
Symbol 1290 MovieClip Frame 1
stop();
Symbol 1290 MovieClip Frame 2
stop();
Symbol 1290 MovieClip Frame 3
stop();
Symbol 1291 MovieClip Frame 1
stop();
Symbol 1291 MovieClip Frame 7
stop(); popup_txt.text = _global.popupText;
Symbol 1299 MovieClip Frame 1
stop();
Symbol 1299 MovieClip Frame 2
stop();
Symbol 1299 MovieClip Frame 3
stop();
Symbol 1307 MovieClip Frame 1
stop();
Symbol 1307 MovieClip Frame 150
stop();
Symbol 1310 MovieClip Frame 1
stop();
Symbol 1310 MovieClip Frame 2
stop();
Symbol 1331 MovieClip Frame 1
stop();
Symbol 1331 MovieClip Frame 30
stop();
Symbol 1350 MovieClip Frame 1
stop();
Symbol 1350 MovieClip Frame 27
stop();
Symbol 1354 MovieClip Frame 1
stop();
Symbol 1398 MovieClip Frame 23
stop();
Symbol 1403 MovieClip Frame 23
stop();
Symbol 1404 MovieClip Frame 1
stop();
Symbol 1404 MovieClip Frame 2
stop();
Symbol 1406 MovieClip Frame 1
money_earned.text = _global.report_moneyEarned; tips.text = _global.report_tips; totalScore = _global.report_moneyEarned + _global.report_tips; total.text = totalScore; if ((totalScore >= _global.targetScore) && (totalScore < _global.expertScore)) { result.gotoAndStop(1); result.mc.gotoAndPlay(1); } else if (totalScore >= _global.expertScore) { result.gotoAndStop(2); result.mc.gotoAndPlay(1); }
Symbol 1414 MovieClip Frame 1
stop();
Symbol 1414 MovieClip Frame 7
stop(); starScore = _global.report_moneyEarned + _global.report_tips; star_anim._visible = false; if (starScore >= _global.expertScore) { star_anim._visible = true; }
Symbol 1421 MovieClip Frame 14
stop();
Symbol 1426 MovieClip Frame 8
stop();
Symbol 1427 MovieClip Frame 23
stop();
Symbol 1428 MovieClip Frame 21
stop();
Symbol 1429 MovieClip Frame 29
stop();
Symbol 1430 MovieClip Frame 1
stop();
Symbol 1430 MovieClip Frame 2
stop();
Symbol 1430 MovieClip Frame 3
stop();
Symbol 1431 MovieClip Frame 29
stop();
Symbol 1432 MovieClip Frame 25
stop();
Symbol 1433 MovieClip Frame 28
stop();
Symbol 1434 MovieClip Frame 1
stop();
Symbol 1434 MovieClip Frame 2
stop();
Symbol 1434 MovieClip Frame 3
stop();
Symbol 1435 MovieClip Frame 39
stop();
Symbol 1436 MovieClip Frame 27
stop();
Symbol 1437 MovieClip Frame 29
stop();
Symbol 1438 MovieClip Frame 1
stop();
Symbol 1438 MovieClip Frame 2
stop();
Symbol 1438 MovieClip Frame 3
stop();
Symbol 1439 MovieClip [level1] Frame 1
#initclip 26 Object.registerClass("level1", Level1); #endinitclip
Symbol 1460 MovieClip Frame 1
stop();
Symbol 1460 MovieClip Frame 2
stop();
Symbol 1461 Button
on (release) { getURL (_root.premiumurl, "_blank"); }
Symbol 1463 MovieClip Frame 1
stop();
Symbol 1463 MovieClip Frame 2
stop();
Symbol 1465 MovieClip Frame 1
stop();
Symbol 1465 MovieClip Frame 2
stop();
Symbol 1466 MovieClip Frame 1
stop();
Symbol 1466 MovieClip Frame 8
stop(); btn_continue.gotoAndStop(2);
Symbol 1468 MovieClip Frame 5
stop(); chocobox1.gotoAndStop(_global.preferred_chocolate1); chocobox2.gotoAndStop(_global.preferred_chocolate2);
Symbol 1470 MovieClip Frame 1
stop();
Symbol 1470 MovieClip Frame 2
stop();
Symbol 1473 MovieClip Frame 40
stop(); this._visible = false;
Symbol 1487 MovieClip Frame 1
stop();
Symbol 1487 MovieClip Frame 5
stop();
Symbol 1489 MovieClip Frame 1
stop();
Symbol 1489 MovieClip Frame 220
stop();
Symbol 1493 MovieClip Frame 1
stop();
Symbol 1512 MovieClip Frame 18
stop();
Symbol 1513 MovieClip Frame 1
stop();
Symbol 1513 MovieClip Frame 56
stop();
Symbol 1518 MovieClip Frame 1
stop();
Symbol 1518 MovieClip Frame 56
stop();
Symbol 1526 MovieClip Frame 1
stop(); goal.text = _global.targetScore; yougot.text = _global.report_moneyEarned + _global.report_tips;
Symbol 1533 MovieClip Frame 7
stop();
Symbol 1534 MovieClip Frame 1
stop();
Symbol 1534 MovieClip Frame 2
stop();
Symbol 1535 MovieClip [level2] Frame 1
#initclip 17 Object.registerClass("level2", Level2); #endinitclip
Symbol 1539 MovieClip Frame 1
stop();
Symbol 1539 MovieClip Frame 7
stop(); popup_txt.text = _global.popupText;
Symbol 1541 MovieClip Frame 1
stop();
Symbol 1541 MovieClip Frame 250
stop();
Symbol 1545 MovieClip Frame 1
stop();
Symbol 1547 MovieClip Frame 5
stop(); var firstclipx = 7; var firstclipy = 42; var secondclipx = 75; var secondclipy = 42; var random = Math.ceil((1 + (Math.random() * 2)) - 1); if (random == 1) { this.pos = 1; this._parent._parent.keyTarget = "type_rabbit"; type_rabbit.gotoAndStop(2); type_rabbit._x = firstclipx; type_rabbit._y = firstclipy; type_fish._x = secondclipx; type_fish._y = secondclipy; } else if (random == 2) { this.pos = 2; this._parent._parent.keyTarget = "type_fish"; type_fish.gotoAndStop(2); type_fish._x = firstclipx; type_fish._y = firstclipy; type_rabbit._x = secondclipx; type_rabbit._y = secondclipy; }
Symbol 1548 MovieClip Frame 6
stop(); this._parent._visible = false;
Symbol 1549 MovieClip Frame 1
stop();
Symbol 1549 MovieClip Frame 2
stop();
Symbol 1550 MovieClip [level3] Frame 1
#initclip 18 Object.registerClass("level3", Level3); #endinitclip
Symbol 1551 MovieClip [level4] Frame 1
#initclip 19 Object.registerClass("level4", Level4); #endinitclip
Symbol 1554 MovieClip Frame 1
stop();
Symbol 1554 MovieClip Frame 7
stop(); popup_txt.text = _global.popupText;
Symbol 1556 MovieClip Frame 1
stop();
Symbol 1556 MovieClip Frame 300
stop();
Symbol 1560 MovieClip Frame 1
stop();
Symbol 1563 MovieClip [level5] Frame 1
#initclip 20 Object.registerClass("level5", Level5); #endinitclip
Symbol 1596 MovieClip Frame 1
stop();
Symbol 1596 MovieClip Frame 55
stop();
Symbol 1598 MovieClip Frame 1
stop();
Symbol 1598 MovieClip Frame 480
stop();
Symbol 1602 MovieClip Frame 1
stop();
Symbol 1603 MovieClip [level6] Frame 1
#initclip 21 Object.registerClass("level6", Level6); #endinitclip
Symbol 1608 MovieClip Frame 61
stop();
Symbol 1612 MovieClip Frame 16
stop();
Symbol 1615 MovieClip Frame 10
stop();
Symbol 1616 MovieClip Frame 1
stop();
Instance of Symbol 175 MovieClip "pointer" in Symbol 1616 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Symbol 1616 MovieClip Frame 2
stop();
Symbol 1616 MovieClip Frame 3
stop();
Symbol 1624 MovieClip Frame 10
stop();
Symbol 1625 MovieClip Frame 1
stop();
Instance of Symbol 175 MovieClip "pointer" in Symbol 1625 MovieClip Frame 1
onClipEvent (load) { _visible = false; }
Symbol 1625 MovieClip Frame 2
stop();
Symbol 1625 MovieClip Frame 3
stop();
Symbol 1635 MovieClip Frame 1
stop();
Symbol 1635 MovieClip Frame 7
stop(); popup_txt.text = _global.popupText;
Symbol 1637 MovieClip Frame 1
stop();
Symbol 1637 MovieClip Frame 480
stop();
Symbol 1640 MovieClip Frame 1
stop();
Symbol 1641 MovieClip [level7] Frame 1
#initclip 22 Object.registerClass("level7", Level7); #endinitclip
Symbol 1643 MovieClip Frame 1
stop();
Symbol 1643 MovieClip Frame 670
stop();
Symbol 1647 MovieClip Frame 1
stop();
Symbol 1648 MovieClip [level8] Frame 1
#initclip 23 Object.registerClass("level8", Level8); #endinitclip
Symbol 1650 MovieClip Frame 1
stop();
Symbol 1650 MovieClip Frame 880
stop();
Symbol 1653 MovieClip Frame 1
stop();
Symbol 1653 MovieClip Frame 2
stop();
Symbol 1657 MovieClip Frame 1
stop();
Symbol 1658 MovieClip [level9] Frame 1
#initclip 24 Object.registerClass("level9", Level9); #endinitclip
Symbol 1660 MovieClip Frame 1
stop();
Symbol 1660 MovieClip Frame 1180
stop();
Symbol 1663 MovieClip Frame 1
stop();
Symbol 1663 MovieClip Frame 2
stop();
Symbol 1666 MovieClip Frame 1
stop();
Symbol 1667 MovieClip [level10] Frame 1
#initclip 25 Object.registerClass("level10", Level10); #endinitclip
Symbol 1674 MovieClip Frame 1
_global.calenderxPos = 430; Mouse.hide(); this.onEnterFrame = function () { mouseClip._x = _xmouse; mouseClip._y = _ymouse; if (Key.isDown(2)) { Mouse.hide(); } };
Symbol 1674 MovieClip Frame 2
stop();
Symbol 1674 MovieClip Frame 3
stop();
Symbol 1674 MovieClip Frame 4
stop(); _root.menuSound.stop(); _root.gameSound.stop(); _root.calenderSound.stop(); if (_global.soundstat == "onn") { _root.menuSound.start(); } music_btn.onRelease = function () { if (_global.soundstat == "onn") { _root.menuSound.stop(); _global.soundstat = "off"; music_btn.gotoAndStop(2); } else if (_global.soundstat == "off") { _root.menuSound.start(); _global.soundstat = "onn"; music_btn.gotoAndStop(1); } };
Symbol 1674 MovieClip Frame 5
stop(); _root.menuSound.stop(); _root.gameSound.stop(); _root.calenderSound.stop(); var intro_obj = new Object(); Key.addListener(intro_obj); intro_obj.onKeyDown = function () { if (Key.getCode() == 13) { btn_continue.onRelease(); } }; btn_continue.onRollOver = function () { this.gotoAndStop(2); }; btn_continue.onRollOut = (btn_continue.onReleaseOutside = function () { this.gotoAndStop(1); }); btn_continue.onRelease = function () { Key.removeListener(intro_obj); gotoAndStop ("Calender"); }; if (_global.soundstat == "onn") { _root.menuSound.start(); } music_btn.onRelease = function () { if (_global.soundstat == "onn") { _root.menuSound.stop(); _global.soundstat = "off"; music_btn.gotoAndStop(2); } else if (_global.soundstat == "off") { _root.menuSound.start(); _global.soundstat = "onn"; music_btn.gotoAndStop(1); } };
Symbol 1674 MovieClip Frame 6
stop(); _root.menuSound.stop(); _root.gameSound.stop(); _root.calenderSound.stop(); if (_global.soundstat == "onn") { _root.calenderSound.start(); } music_btn.onRelease = function () { if (_global.soundstat == "onn") { _root.calenderSound.stop(); _global.soundstat = "off"; music_btn.gotoAndStop(2); } else if (_global.soundstat == "off") { _root.calenderSound.start(); _global.soundstat = "onn"; music_btn.gotoAndStop(1); } };
Symbol 1674 MovieClip Frame 7
stop(); _root.menuSound.stop(); _root.gameSound.stop(); _root.calenderSound.stop(); if (_global.soundstat == "onn") { _root.gameSound.start(); } music_btn.onRelease = function () { if (_global.soundstat == "onn") { stopAllSounds(); _root.gameSound.stop(); _global.soundstat = "off"; music_btn.gotoAndStop(2); } else if (_global.soundstat == "off") { _root.gameSound.start(); _global.soundstat = "onn"; music_btn.gotoAndStop(1); } };
Symbol 1674 MovieClip Frame 8
gotoAndStop ("Level1");
Symbol 1674 MovieClip Frame 9
stop(); _root.menuSound.stop(); _root.gameSound.stop(); _root.calenderSound.stop(); if (_global.soundstat == "onn") { _root.gameSound.start(); } music_btn.onRelease = function () { if (_global.soundstat == "onn") { stopAllSounds(); _root.gameSound.stop(); _global.soundstat = "off"; music_btn.gotoAndStop(2); } else if (_global.soundstat == "off") { _root.gameSound.start(); _global.soundstat = "onn"; music_btn.gotoAndStop(1); } };
Symbol 1674 MovieClip Frame 10
gotoAndStop ("Level2");
Symbol 1674 MovieClip Frame 11
stop(); _root.menuSound.stop(); _root.gameSound.stop(); _root.calenderSound.stop(); if (_global.soundstat == "onn") { _root.gameSound.start(); } music_btn.onRelease = function () { if (_global.soundstat == "onn") { stopAllSounds(); _root.gameSound.stop(); _global.soundstat = "off"; music_btn.gotoAndStop(2); } else if (_global.soundstat == "off") { _root.gameSound.start(); _global.soundstat = "onn"; music_btn.gotoAndStop(1); } };
Symbol 1674 MovieClip Frame 12
gotoAndStop ("Level3");
Symbol 1674 MovieClip Frame 13
stop(); _root.menuSound.stop(); _root.gameSound.stop(); _root.calenderSound.stop(); if (_global.soundstat == "onn") { _root.gameSound.start(); } music_btn.onRelease = function () { if (_global.soundstat == "onn") { stopAllSounds(); _root.gameSound.stop(); _global.soundstat = "off"; music_btn.gotoAndStop(2); } else if (_global.soundstat == "off") { _root.gameSound.start(); _global.soundstat = "onn"; music_btn.gotoAndStop(1); } };
Symbol 1674 MovieClip Frame 14
gotoAndStop ("Level4");
Symbol 1674 MovieClip Frame 15
stop(); _root.menuSound.stop(); _root.gameSound.stop(); _root.calenderSound.stop(); if (_global.soundstat == "onn") { _root.gameSound.start(); } music_btn.onRelease = function () { if (_global.soundstat == "onn") { stopAllSounds(); _root.gameSound.stop(); _global.soundstat = "off"; music_btn.gotoAndStop(2); } else if (_global.soundstat == "off") { _root.gameSound.start(); _global.soundstat = "onn"; music_btn.gotoAndStop(1); } };
Symbol 1674 MovieClip Frame 16
gotoAndStop ("Level5");
Symbol 1674 MovieClip Frame 17
stop(); _root.menuSound.stop(); _root.gameSound.stop(); _root.calenderSound.stop(); if (_global.soundstat == "onn") { _root.gameSound.start(); } music_btn.onRelease = function () { if (_global.soundstat == "onn") { stopAllSounds(); _root.gameSound.stop(); _global.soundstat = "off"; music_btn.gotoAndStop(2); } else if (_global.soundstat == "off") { _root.gameSound.start(); _global.soundstat = "onn"; music_btn.gotoAndStop(1); } };
Symbol 1674 MovieClip Frame 18
gotoAndStop ("Level6");
Symbol 1674 MovieClip Frame 19
stop(); _root.menuSound.stop(); _root.gameSound.stop(); _root.calenderSound.stop(); if (_global.soundstat == "onn") { _root.gameSound.start(); } music_btn.onRelease = function () { if (_global.soundstat == "onn") { stopAllSounds(); _root.gameSound.stop(); _global.soundstat = "off"; music_btn.gotoAndStop(2); } else if (_global.soundstat == "off") { _root.gameSound.start(); _global.soundstat = "onn"; music_btn.gotoAndStop(1); } };
Symbol 1674 MovieClip Frame 20
gotoAndStop ("Level7");
Symbol 1674 MovieClip Frame 21
stop(); _root.menuSound.stop(); _root.gameSound.stop(); _root.calenderSound.stop(); if (_global.soundstat == "onn") { _root.gameSound.start(); } music_btn.onRelease = function () { if (_global.soundstat == "onn") { stopAllSounds(); _root.gameSound.stop(); _global.soundstat = "off"; music_btn.gotoAndStop(2); } else if (_global.soundstat == "off") { _root.gameSound.start(); _global.soundstat = "onn"; music_btn.gotoAndStop(1); } };
Symbol 1674 MovieClip Frame 22
gotoAndStop ("Level8");
Symbol 1674 MovieClip Frame 23
stop(); _root.menuSound.stop(); _root.gameSound.stop(); _root.calenderSound.stop(); if (_global.soundstat == "onn") { _root.gameSound.start(); } music_btn.onRelease = function () { if (_global.soundstat == "onn") { stopAllSounds(); _root.gameSound.stop(); _global.soundstat = "off"; music_btn.gotoAndStop(2); } else if (_global.soundstat == "off") { _root.gameSound.start(); _global.soundstat = "onn"; music_btn.gotoAndStop(1); } };
Symbol 1674 MovieClip Frame 24
gotoAndStop ("Level9");
Symbol 1674 MovieClip Frame 25
stop(); _root.menuSound.stop(); _root.gameSound.stop(); _root.calenderSound.stop(); if (_global.soundstat == "onn") { _root.gameSound.start(); } music_btn.onRelease = function () { if (_global.soundstat == "onn") { stopAllSounds(); _root.gameSound.stop(); _global.soundstat = "off"; music_btn.gotoAndStop(2); } else if (_global.soundstat == "off") { _root.gameSound.start(); _global.soundstat = "onn"; music_btn.gotoAndStop(1); } };
Symbol 1674 MovieClip Frame 26
gotoAndStop ("Level10");
Symbol 1674 MovieClip Frame 27
stop(); var upshell_obj = new Object(); Key.addListener(upshell_obj); upshell_obj.onKeyDown = function () { if (Key.getCode() == 13) { upshell_mc.btn_menu.onRelease(); } }; upshell_mc.btn_menu.onRelease = function () { Key.removeListener(upshell_obj); gotoAndStop ("Mainmenu"); };

Library Items

Symbol 1 ShapeTweeningUsed by:5
Symbol 2 BitmapUsed by:3
Symbol 3 GraphicUses:2Used by:5 46 71 1486
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:1 3 4Used by:77
Symbol 6 GraphicUsed by:77
Symbol 7 BitmapUsed by:8
Symbol 8 GraphicUses:7Used by:46 1486
Symbol 9 BitmapUsed by:10
Symbol 10 GraphicUses:9Used by:46 1486
Symbol 11 BitmapUsed by:12
Symbol 12 GraphicUses:11Used by:46 1486
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:13Used by:46 1486
Symbol 15 BitmapUsed by:16
Symbol 16 GraphicUses:15Used by:46 1486
Symbol 17 BitmapUsed by:18
Symbol 18 GraphicUses:17Used by:46 1486
Symbol 19 BitmapUsed by:20
Symbol 20 GraphicUses:19Used by:46 1486
Symbol 21 BitmapUsed by:22
Symbol 22 GraphicUses:21Used by:46 1486
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:46 1486
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:46 1486
Symbol 27 BitmapUsed by:28
Symbol 28 GraphicUses:27Used by:46 1486
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:29Used by:46 1486
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:46 1486
Symbol 33 BitmapUsed by:35 40 45
Symbol 34 BitmapUsed by:35
Symbol 35 GraphicUses:33 34Used by:46 1486
Symbol 36 BitmapUsed by:37
Symbol 37 GraphicUses:36Used by:46 1486
Symbol 38 BitmapUsed by:39
Symbol 39 GraphicUses:38Used by:46 1486
Symbol 40 GraphicUses:33Used by:46 1486
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:46 1486
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:46 1486
Symbol 45 GraphicUses:33Used by:46 1486
Symbol 46 MovieClipUses:3 8 10 12 14 16 18 20 22 24 26 28 30 32 35 37 39 40 42 44 45Used by:77
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:55
Symbol 49 BitmapUsed by:50
Symbol 50 GraphicUses:49Used by:55
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:55
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:55
Symbol 55 MovieClipUses:48 50 52 54Used by:77
Symbol 56 BitmapUsed by:57 73
Symbol 57 GraphicUses:56Used by:68
Symbol 58 BitmapUsed by:59
Symbol 59 GraphicUses:58Used by:68
Symbol 60 BitmapUsed by:61
Symbol 61 GraphicUses:60Used by:68
Symbol 62 BitmapUsed by:63
Symbol 63 GraphicUses:62Used by:68
Symbol 64 BitmapUsed by:65 73
Symbol 65 GraphicUses:64Used by:68
Symbol 66 BitmapUsed by:67
Symbol 67 GraphicUses:66Used by:68
Symbol 68 MovieClipUses:57 59 61 63 65 67Used by:77
Symbol 69 ShapeTweeningUsed by:71
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClipUses:69 3 70Used by:77
Symbol 72 ShapeTweeningUsed by:76
Symbol 73 GraphicUses:64 56Used by:74
Symbol 74 MovieClipUses:73Used by:76
Symbol 75 GraphicUsed by:76
Symbol 76 MovieClipUses:72 74 75Used by:77
Symbol 77 MovieClip [oldlady]Uses:5 6 46 55 68 71 76Used by:1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 78 ShapeTweeningUsed by:83
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:81 128
Symbol 81 MovieClipUses:80Used by:83 147
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:78 81 82Used by:152
Symbol 84 GraphicUsed by:152
Symbol 85 BitmapUsed by:86
Symbol 86 GraphicUses:85Used by:128
Symbol 87 BitmapUsed by:88
Symbol 88 GraphicUses:87Used by:128
Symbol 89 BitmapUsed by:90
Symbol 90 GraphicUses:89Used by:128
Symbol 91 BitmapUsed by:92
Symbol 92 GraphicUses:91Used by:128
Symbol 93 BitmapUsed by:94
Symbol 94 GraphicUses:93Used by:128
Symbol 95 BitmapUsed by:96
Symbol 96 GraphicUses:95Used by:128
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:128
Symbol 99 BitmapUsed by:100
Symbol 100 GraphicUses:99Used by:128
Symbol 101 BitmapUsed by:102
Symbol 102 GraphicUses:101Used by:128
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:128
Symbol 105 BitmapUsed by:106
Symbol 106 GraphicUses:105Used by:128
Symbol 107 BitmapUsed by:108
Symbol 108 GraphicUses:107Used by:128
Symbol 109 BitmapUsed by:110
Symbol 110 GraphicUses:109Used by:128
Symbol 111 BitmapUsed by:112
Symbol 112 GraphicUses:111Used by:128
Symbol 113 BitmapUsed by:114
Symbol 114 GraphicUses:113Used by:128
Symbol 115 BitmapUsed by:116 119
Symbol 116 GraphicUses:115Used by:128
Symbol 117 BitmapUsed by:118 119
Symbol 118 GraphicUses:117Used by:128
Symbol 119 GraphicUses:115 117Used by:128
Symbol 120 BitmapUsed by:121
Symbol 121 GraphicUses:120Used by:128
Symbol 122 BitmapUsed by:123
Symbol 123 GraphicUses:122Used by:128
Symbol 124 BitmapUsed by:125
Symbol 125 GraphicUses:124Used by:128
Symbol 126 BitmapUsed by:127
Symbol 127 GraphicUses:126Used by:128
Symbol 128 MovieClipUses:80 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 119 121 123 125 127Used by:152
Symbol 129 BitmapUsed by:130
Symbol 130 GraphicUses:129Used by:135
Symbol 131 BitmapUsed by:132
Symbol 132 GraphicUses:131Used by:135
Symbol 133 BitmapUsed by:134
Symbol 134 GraphicUses:133Used by:135
Symbol 135 MovieClipUses:130 132 134Used by:152
Symbol 136 BitmapUsed by:137
Symbol 137 GraphicUses:136Used by:144
Symbol 138 BitmapUsed by:139
Symbol 139 GraphicUses:138Used by:144
Symbol 140 BitmapUsed by:141 149
Symbol 141 GraphicUses:140Used by:144
Symbol 142 BitmapUsed by:143
Symbol 143 GraphicUses:142Used by:144
Symbol 144 MovieClipUses:137 139 141 143Used by:152
Symbol 145 ShapeTweeningUsed by:147
Symbol 146 GraphicUsed by:147
Symbol 147 MovieClipUses:145 81 146Used by:152
Symbol 148 ShapeTweeningUsed by:151
Symbol 149 GraphicUses:140Used by:151
Symbol 150 GraphicUsed by:151
Symbol 151 MovieClipUses:148 149 150Used by:152
Symbol 152 MovieClip [younglady]Uses:83 84 128 135 144 147 151Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 153 ShapeTweeningUsed by:156
Symbol 154 ShapeTweeningUsed by:156
Symbol 155 GraphicUsed by:156
Symbol 156 MovieClipUses:153 154 155Used by:157
Symbol 157 MovieClipUses:156Used by:259
Symbol 158 GraphicUsed by:159
Symbol 159 MovieClipUses:158Used by:179 259
Symbol 160 ShapeTweeningUsed by:169
Symbol 161 ShapeTweeningUsed by:169
Symbol 162 ShapeTweeningUsed by:169
Symbol 163 ShapeTweeningUsed by:166
Symbol 164 ShapeTweeningUsed by:166
Symbol 165 GraphicUsed by:166
Symbol 166 MovieClipUses:163 164 165Used by:169
Symbol 167 GraphicUsed by:169
Symbol 168 GraphicUsed by:169
Symbol 169 MovieClipUses:160 161 162 166 167 168Used by:259
Symbol 170 BitmapUsed by:171
Symbol 171 GraphicUses:170Used by:172
Symbol 172 MovieClipUses:171Used by:259
Symbol 173 BitmapUsed by:174
Symbol 174 GraphicUses:173Used by:175
Symbol 175 MovieClipUses:174Used by:259 607 639 831 893 1616 1625
Symbol 176 GraphicUsed by:177
Symbol 177 MovieClipUses:176Used by:178
Symbol 178 MovieClipUses:177Used by:259
Symbol 179 MovieClipUses:159Used by:259
Symbol 180 BitmapUsed by:181
Symbol 181 GraphicUses:180Used by:221 269
Symbol 182 BitmapUsed by:183 1520
Symbol 183 GraphicUses:182Used by:198
Symbol 184 BitmapUsed by:185
Symbol 185 GraphicUses:184Used by:198
Symbol 186 BitmapUsed by:187
Symbol 187 GraphicUses:186Used by:198
Symbol 188 BitmapUsed by:189
Symbol 189 GraphicUses:188Used by:198
Symbol 190 BitmapUsed by:191
Symbol 191 GraphicUses:190Used by:198
Symbol 192 BitmapUsed by:193
Symbol 193 GraphicUses:192Used by:198
Symbol 194 BitmapUsed by:195
Symbol 195 GraphicUses:194Used by:198
Symbol 196 BitmapUsed by:197
Symbol 197 GraphicUses:196Used by:198
Symbol 198 MovieClipUses:183 185 187 189 191 193 195 197Used by:221 1427 1428 1429 1431 1432 1433 1435 1436 1437
Symbol 199 BitmapUsed by:200 1055
Symbol 200 GraphicUses:199Used by:201 678 679
Symbol 201 MovieClipUses:200Used by:220
Symbol 202 BitmapUsed by:203 1059
Symbol 203 GraphicUses:202Used by:204 700 701
Symbol 204 MovieClipUses:203Used by:220
Symbol 205 BitmapUsed by:206 1057
Symbol 206 GraphicUses:205Used by:207 726 727
Symbol 207 MovieClipUses:206Used by:220
Symbol 208 GraphicUsed by:213
Symbol 209 ShapeTweeningUsed by:212
Symbol 210 ShapeTweeningUsed by:212
Symbol 211 GraphicUsed by:212
Symbol 212 MovieClipUses:209 210 211Used by:213 835
Symbol 213 MovieClipUses:208 212Used by:220 1069 1547
Symbol 214 GraphicUsed by:219
Symbol 215 ShapeTweeningUsed by:218
Symbol 216 ShapeTweeningUsed by:218
Symbol 217 GraphicUsed by:218
Symbol 218 MovieClipUses:215 216 217Used by:219 840
Symbol 219 MovieClipUses:214 218Used by:220 1069 1547
Symbol 220 MovieClipUses:201 204 207 213 219Used by:221
Symbol 221 MovieClipUses:181 198 220Used by:259
Symbol 222 ShapeTweeningUsed by:226
Symbol 223 GraphicUsed by:226
Symbol 224 ShapeTweeningUsed by:226
Symbol 225 GraphicUsed by:226
Symbol 226 MovieClipUses:222 223 224 225Used by:227
Symbol 227 MovieClipUses:226Used by:259
Symbol 228 ShapeTweeningUsed by:231
Symbol 229 ShapeTweeningUsed by:231
Symbol 230 GraphicUsed by:231
Symbol 231 MovieClipUses:228 229 230Used by:233 249
Symbol 232 GraphicUsed by:233 249
Symbol 233 MovieClipUses:231 232Used by:259
Symbol 234 ShapeTweeningUsed by:237
Symbol 235 ShapeTweeningUsed by:237
Symbol 236 GraphicUsed by:237
Symbol 237 MovieClipUses:234 235 236Used by:238
Symbol 238 MovieClipUses:237Used by:253 259
Symbol 239 BitmapUsed by:240
Symbol 240 GraphicUses:239Used by:246
Symbol 241 ShapeTweeningUsed by:244
Symbol 242 ShapeTweeningUsed by:244
Symbol 243 GraphicUsed by:244
Symbol 244 MovieClipUses:241 242 243Used by:246
Symbol 245 GraphicUsed by:246
Symbol 246 MovieClipUses:240 244 245Used by:254
Symbol 247 BitmapUsed by:248
Symbol 248 GraphicUses:247Used by:249
Symbol 249 MovieClipUses:248 231 232Used by:254
Symbol 250 BitmapUsed by:251
Symbol 251 GraphicUses:250Used by:253
Symbol 252 GraphicUsed by:253
Symbol 253 MovieClipUses:251 238 252Used by:254
Symbol 254 MovieClipUses:246 249 253Used by:259
Symbol 255 GraphicUsed by:256
Symbol 256 MovieClipUses:255Used by:257
Symbol 257 MovieClipUses:256Used by:258
Symbol 258 MovieClipUses:257Used by:259
Symbol 259 MovieClip [orderbook]Uses:157 159 169 172 175 178 179 221 227 233 238 254 258Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 260 ShapeTweeningUsed by:268
Symbol 261 GraphicUsed by:268
Symbol 262 FontUsed by:263 267
Symbol 263 TextUses:262Used by:268
Symbol 264 GraphicUsed by:268
Symbol 265 FontUsed by:266
Symbol 266 TextUses:265Used by:268
Symbol 267 EditableTextUses:262Used by:268
Symbol 268 MovieClipUses:260 261 263 264 266 267Used by:Timeline
Symbol 1693 MovieClip [__Packages.MochiAd]
Symbol 1694 MovieClip [__Packages.URLAndVersion]
Symbol 1695 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon]
Symbol 1696 MovieClip [__Packages.mx.transitions.BroadcasterMX]
Symbol 1697 MovieClip [__Packages.mx.transitions.Tween]
Symbol 1698 MovieClip [__Packages.mx.transitions.easing.Strong]
Symbol 1699 MovieClip [__Packages.Level2]
Symbol 1700 MovieClip [__Packages.Level3]
Symbol 1701 MovieClip [__Packages.Level4]
Symbol 1702 MovieClip [__Packages.Level5]
Symbol 1703 MovieClip [__Packages.Level6]
Symbol 1704 MovieClip [__Packages.Level7]
Symbol 1705 MovieClip [__Packages.Level8]
Symbol 1706 MovieClip [__Packages.Level9]
Symbol 1707 MovieClip [__Packages.Level10]
Symbol 1708 MovieClip [__Packages.Level1]
Symbol 269 MovieClipUses:181Used by:1674
Symbol 270 GraphicUsed by:271
Symbol 271 ButtonUses:270Used by:1674
Symbol 272 BitmapUsed by:273
Symbol 273 GraphicUses:272Used by:274
Symbol 274 ButtonUses:273Used by:1674
Symbol 275 GraphicUsed by:277
Symbol 276 GraphicUsed by:277
Symbol 277 MovieClipUses:275 276Used by:1674
Symbol 278 GraphicUsed by:1674
Symbol 279 BitmapUsed by:280
Symbol 280 GraphicUses:279Used by:283
Symbol 281 BitmapUsed by:282
Symbol 282 GraphicUses:281Used by:283
Symbol 283 MovieClipUses:280 282Used by:1674
Symbol 284 GraphicUsed by:305 381 571 836 841 850 859 868 877 1398 1403 1674
Symbol 285 BitmapUsed by:286
Symbol 286 GraphicUses:285Used by:287
Symbol 287 MovieClipUses:286Used by:1674
Symbol 288 BitmapUsed by:294
Symbol 289 BitmapUsed by:294
Symbol 290 BitmapUsed by:294
Symbol 291 BitmapUsed by:294
Symbol 292 BitmapUsed by:294
Symbol 293 BitmapUsed by:294
Symbol 294 GraphicUses:288 289 290 291 292 293Used by:305
Symbol 295 GraphicUsed by:301
Symbol 296 BitmapUsed by:297
Symbol 297 GraphicUses:296Used by:301
Symbol 298 GraphicUsed by:301
Symbol 299 FontUsed by:300
Symbol 300 EditableTextUses:299Used by:301
Symbol 301 MovieClipUses:295 297 298 300Used by:305
Symbol 302 ShapeTweeningUsed by:305
Symbol 303 GraphicUsed by:305 582
Symbol 304 ShapeTweeningUsed by:305
Symbol 305 MovieClipUses:294 301 284 302 303 304Used by:1674
Symbol 306 BitmapUsed by:307
Symbol 307 GraphicUses:306Used by:311
Symbol 308 BitmapUsed by:310
Symbol 309 BitmapUsed by:310
Symbol 310 GraphicUses:308 309Used by:311
Symbol 311 MovieClipUses:307 310Used by:1674
Symbol 312 BitmapUsed by:313
Symbol 313 GraphicUses:312Used by:330
Symbol 314 FontUsed by:315 317 320 322 525 1351 1352 1353 1471 1490 1491 1492 1542 1543 1544 1557 1558 1559 1599 1600 1601 1638 1639 1644 1645 1646 1654 1655 1656 1664 1665
Symbol 315 TextUses:314Used by:319
Symbol 316 GraphicUsed by:319
Symbol 317 TextUses:314Used by:319
Symbol 318 GraphicUsed by:319
Symbol 319 MovieClipUses:315 316 317 318Used by:330
Symbol 320 TextUses:314Used by:324
Symbol 321 GraphicUsed by:324
Symbol 322 TextUses:314Used by:324
Symbol 323 GraphicUsed by:324
Symbol 324 MovieClipUses:320 321 322 323Used by:330
Symbol 325 FontUsed by:326 1442 1459 1462 1464 1521 1522 1523 1524 1525 1672
Symbol 326 TextUses:325Used by:327 1461
Symbol 327 ButtonUses:326Used by:330 1673
Symbol 328 BitmapUsed by:329
Symbol 329 GraphicUses:328Used by:330
Symbol 330 MovieClipUses:313 319 324 327 329Used by:1674
Symbol 331 GraphicUsed by:334
Symbol 332 GraphicUsed by:333
Symbol 333 MovieClipUses:332Used by:334
Symbol 334 MovieClipUses:331 333Used by:381
Symbol 335 GraphicUsed by:381
Symbol 336 GraphicUsed by:340 343 349 368 371 374
Symbol 337 BitmapUsed by:338
Symbol 338 GraphicUses:337Used by:340
Symbol 339 GraphicUsed by:340 343 349 368 371 374
Symbol 340 MovieClipUses:336 338 339Used by:381
Symbol 341 BitmapUsed by:342
Symbol 342 GraphicUses:341Used by:343
Symbol 343 MovieClipUses:336 342 339Used by:381
Symbol 344 BitmapUsed by:345
Symbol 345 GraphicUses:344Used by:349
Symbol 346 GraphicUsed by:349
Symbol 347 FontUsed by:348 375 376 377 378 379 380
Symbol 348 TextUses:347Used by:349
Symbol 349 MovieClipUses:336 345 346 348 339Used by:381
Symbol 350 BitmapUsed by:351
Symbol 351 GraphicUses:350Used by:368
Symbol 352 BitmapUsed by:367
Symbol 353 BitmapUsed by:367
Symbol 354 BitmapUsed by:367
Symbol 355 BitmapUsed by:367
Symbol 356 BitmapUsed by:367
Symbol 357 BitmapUsed by:367
Symbol 358 BitmapUsed by:367
Symbol 359 BitmapUsed by:367
Symbol 360 BitmapUsed by:367
Symbol 361 BitmapUsed by:367
Symbol 362 BitmapUsed by:367
Symbol 363 BitmapUsed by:367
Symbol 364 BitmapUsed by:367
Symbol 365 BitmapUsed by:367
Symbol 366 BitmapUsed by:367
Symbol 367 GraphicUses:352 353 354 355 356 357 358 359 360 361 362 363 364 365 366Used by:368
Symbol 368 MovieClipUses:336 351 367 339Used by:381
Symbol 369 BitmapUsed by:370
Symbol 370 GraphicUses:369Used by:371
Symbol 371 MovieClipUses:336 370 339Used by:381
Symbol 372 BitmapUsed by:373
Symbol 373 GraphicUses:372Used by:374
Symbol 374 MovieClipUses:336 373 339Used by:381
Symbol 375 TextUses:347Used by:381
Symbol 376 TextUses:347Used by:381
Symbol 377 TextUses:347Used by:381
Symbol 378 TextUses:347Used by:381
Symbol 379 TextUses:347Used by:381
Symbol 380 TextUses:347Used by:381
Symbol 381 MovieClipUses:284 334 335 340 343 349 368 371 374 375 376 377 378 379 380Used by:1674
Symbol 382 BitmapUsed by:383
Symbol 383 GraphicUses:382Used by:386
Symbol 384 BitmapUsed by:385
Symbol 385 GraphicUses:384Used by:386
Symbol 386 ButtonUses:383 385Used by:1674
Symbol 387 BitmapUsed by:388
Symbol 388 GraphicUses:387Used by:413
Symbol 389 GraphicUsed by:390
Symbol 390 MovieClipUses:389Used by:391
Symbol 391 MovieClipUses:390Used by:413
Symbol 392 ShapeTweeningUsed by:395
Symbol 393 ShapeTweeningUsed by:395
Symbol 394 GraphicUsed by:395
Symbol 395 MovieClipUses:392 393 394Used by:413
Symbol 396 GraphicUsed by:413
Symbol 397 GraphicUsed by:398 399
Symbol 398 MovieClipUses:397Used by:413
Symbol 399 MovieClipUses:397Used by:413
Symbol 400 ShapeTweeningUsed by:403
Symbol 401 ShapeTweeningUsed by:403
Symbol 402 GraphicUsed by:403
Symbol 403 MovieClipUses:400 401 402Used by:413
Symbol 404 GraphicUsed by:406
Symbol 405 GraphicUsed by:406
Symbol 406 MovieClipUses:404 405Used by:407
Symbol 407 MovieClipUses:406Used by:408
Symbol 408 MovieClipUses:407Used by:409
Symbol 409 MovieClipUses:408Used by:410
Symbol 410 MovieClipUses:409Used by:412
Symbol 411 GraphicUsed by:412 422 449
Symbol 412 MovieClipUses:410 411Used by:413
Symbol 413 MovieClipUses:388 391 395 396 398 399 403 412Used by:428 455 456
Symbol 414 BitmapUsed by:415
Symbol 415 GraphicUses:414Used by:427 440
Symbol 416 GraphicUsed by:427
Symbol 417 GraphicUsed by:418
Symbol 418 MovieClipUses:417Used by:419
Symbol 419 MovieClipUses:418Used by:420
Symbol 420 MovieClipUses:419Used by:421
Symbol 421 MovieClipUses:420Used by:422
Symbol 422 MovieClipUses:421 411Used by:427
Symbol 423 ShapeTweeningUsed by:427
Symbol 424 ShapeTweeningUsed by:427
Symbol 425 ShapeTweeningUsed by:427
Symbol 426 ShapeTweeningUsed by:427
Symbol 427 MovieClipUses:415 416 422 423 424 425 426Used by:428 454
Symbol 428 MovieClipUses:427 413Used by:456
Symbol 429 BitmapUsed by:430
Symbol 430 GraphicUses:429Used by:439
Symbol 431 ShapeTweeningUsed by:434
Symbol 432 ShapeTweeningUsed by:434
Symbol 433 GraphicUsed by:434
Symbol 434 MovieClipUses:431 432 433Used by:437
Symbol 435 GraphicUsed by:436
Symbol 436 MovieClipUses:435Used by:437
Symbol 437 MovieClipUses:434 436Used by:438
Symbol 438 MovieClipUses:437Used by:439
Symbol 439 MovieClipUses:430 438Used by:441 451 453 454
Symbol 440 MovieClipUses:415Used by:441 455
Symbol 441 MovieClipUses:439 440Used by:456
Symbol 442 BitmapUsed by:443
Symbol 443 GraphicUses:442Used by:450 452
Symbol 444 GraphicUsed by:445
Symbol 445 MovieClipUses:444Used by:446
Symbol 446 MovieClipUses:445Used by:447
Symbol 447 MovieClipUses:446Used by:448
Symbol 448 MovieClipUses:447Used by:449
Symbol 449 MovieClipUses:448 411Used by:450
Symbol 450 MovieClipUses:443 449Used by:451
Symbol 451 MovieClipUses:450 439Used by:456
Symbol 452 MovieClipUses:443Used by:453
Symbol 453 MovieClipUses:439 452Used by:456
Symbol 454 MovieClipUses:427 439Used by:456
Symbol 455 MovieClipUses:440 413Used by:456
Symbol 456 MovieClipUses:413 428 441 451 453 454 455Used by:571
Symbol 457 BitmapUsed by:458
Symbol 458 GraphicUses:457Used by:461
Symbol 459 BitmapUsed by:460
Symbol 460 GraphicUses:459Used by:461
Symbol 461 ButtonUses:458 460Used by:571
Symbol 462 BitmapUsed by:475
Symbol 463 BitmapUsed by:475
Symbol 464 BitmapUsed by:475
Symbol 465 BitmapUsed by:475
Symbol 466 BitmapUsed by:475
Symbol 467 BitmapUsed by:475
Symbol 468 BitmapUsed by:475
Symbol 469 BitmapUsed by:475
Symbol 470 BitmapUsed by:475
Symbol 471 BitmapUsed by:475
Symbol 472 BitmapUsed by:475
Symbol 473 BitmapUsed by:475
Symbol 474 BitmapUsed by:475
Symbol 475 GraphicUses:462 463 464 465 466 467 468 469 470 471 472 473 474Used by:552
Symbol 476 BitmapUsed by:477
Symbol 477 GraphicUses:476Used by:480
Symbol 478 BitmapUsed by:479
Symbol 479 GraphicUses:478Used by:480
Symbol 480 MovieClipUses:477 479Used by:552
Symbol 481 BitmapUsed by:482
Symbol 482 GraphicUses:481Used by:485
Symbol 483 BitmapUsed by:484
Symbol 484 GraphicUses:483Used by:485
Symbol 485 MovieClipUses:482 484Used by:552
Symbol 486 BitmapUsed by:487
Symbol 487 GraphicUses:486Used by:490
Symbol 488 BitmapUsed by:489
Symbol 489 GraphicUses:488Used by:490
Symbol 490 MovieClipUses:487 489Used by:552
Symbol 491 BitmapUsed by:492
Symbol 492 GraphicUses:491Used by:495
Symbol 493 BitmapUsed by:494
Symbol 494 GraphicUses:493Used by:495
Symbol 495 MovieClipUses:492 494Used by:552
Symbol 496 GraphicUsed by:552
Symbol 497 BitmapUsed by:498 551
Symbol 498 GraphicUses:497Used by:552
Symbol 499 BitmapUsed by:500
Symbol 500 GraphicUses:499Used by:503
Symbol 501 BitmapUsed by:502
Symbol 502 GraphicUses:501Used by:503
Symbol 503 MovieClipUses:500 502Used by:552
Symbol 504 GraphicUsed by:550
Symbol 505 GraphicUsed by:508
Symbol 506 GraphicUsed by:507
Symbol 507 MovieClipUses:506Used by:508
Symbol 508 MovieClipUses:505 507Used by:519
Symbol 509 ShapeTweeningUsed by:519
Symbol 510 BitmapUsed by:511
Symbol 511 GraphicUses:510Used by:516
Symbol 512 GraphicUsed by:513
Symbol 513 MovieClipUses:512Used by:516
Symbol 514 BitmapUsed by:515
Symbol 515 GraphicUses:514Used by:516
Symbol 516 MovieClipUses:511 513 515Used by:519
Symbol 517 ShapeTweeningUsed by:519
Symbol 518 GraphicUsed by:519
Symbol 519 MovieClipUses:508 509 516 517 518Used by:550
Symbol 520 GraphicUsed by:524 550
Symbol 521 ShapeTweeningUsed by:524
Symbol 522 GraphicUsed by:524 550
Symbol 523 GraphicUsed by:524 550
Symbol 524 MovieClipUses:520 521 522 523Used by:550
Symbol 525 EditableTextUses:314Used by:550
Symbol 526 BitmapUsed by:527
Symbol 527 GraphicUses:526Used by:550
Symbol 528 BitmapUsed by:529
Symbol 529 GraphicUses:528Used by:538
Symbol 530 BitmapUsed by:531
Symbol 531 GraphicUses:530Used by:538
Symbol 532 BitmapUsed by:533
Symbol 533 GraphicUses:532Used by:538
Symbol 534 BitmapUsed by:535
Symbol 535 GraphicUses:534Used by:538
Symbol 536 BitmapUsed by:537 1515
Symbol 537 GraphicUses:536Used by:538
Symbol 538 MovieClipUses:529 531 533 535 537Used by:550
Symbol 539 BitmapUsed by:540
Symbol 540 GraphicUses:539Used by:549
Symbol 541 BitmapUsed by:542
Symbol 542 GraphicUses:541Used by:549
Symbol 543 BitmapUsed by:544
Symbol 544 GraphicUses:543Used by:549
Symbol 545 BitmapUsed by:546
Symbol 546 GraphicUses:545Used by:549
Symbol 547 BitmapUsed by:548 1495
Symbol 548 GraphicUses:547Used by:549
Symbol 549 MovieClipUses:540 542 544 546 548Used by:550
Symbol 550 MovieClipUses:504 519 524 520 523 522 525 527 538 549Used by:552
Symbol 551 GraphicUses:497Used by:552
Symbol 552 MovieClipUses:475 480 485 490 495 496 498 503 550 551Used by:571
Symbol 553 BitmapUsed by:554
Symbol 554 GraphicUses:553Used by:571
Symbol 555 FontUsed by:556 557 1366 1367 1368 1369 1370 1371 1382 1401 1405 1483 1484 1496 1516
Symbol 556 TextUses:555Used by:558
Symbol 557 EditableTextUses:555Used by:558
Symbol 558 MovieClipUses:556 557Used by:571
Symbol 559 BitmapUsed by:560
Symbol 560 GraphicUses:559Used by:565
Symbol 561 BitmapUsed by:562
Symbol 562 GraphicUses:561Used by:565
Symbol 563 GraphicUsed by:564 1413
Symbol 564 MovieClipUses:563Used by:565
Symbol 565 ButtonUses:560 562 564Used by:571
Symbol 566 BitmapUsed by:567
Symbol 567 GraphicUses:566Used by:570 1670
Symbol 568 BitmapUsed by:569
Symbol 569 GraphicUses:568Used by:570 1670
Symbol 570 ButtonUses:567 569Used by:571 1533
Symbol 571 MovieClipUses:284 456 461 552 554 558 565 570Used by:1674
Symbol 572 BitmapUsed by:573
Symbol 573 GraphicUses:572Used by:588
Symbol 574 BitmapUsed by:575
Symbol 575 GraphicUses:574Used by:579
Symbol 576 BitmapUsed by:578
Symbol 577 BitmapUsed by:578
Symbol 578 GraphicUses:576 577Used by:579
Symbol 579 MovieClipUses:575 578Used by:588
Symbol 580 BitmapUsed by:581
Symbol 581 GraphicUses:580Used by:582
Symbol 582 MovieClipUses:303 581Used by:588
Symbol 583 BitmapUsed by:584
Symbol 584 GraphicUses:583Used by:587
Symbol 585 BitmapUsed by:586
Symbol 586 GraphicUses:585Used by:587
Symbol 587 MovieClipUses:584 586Used by:588
Symbol 588 MovieClipUses:573 579 582 587Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 589 BitmapUsed by:590
Symbol 590 GraphicUses:589Used by:607 893
Symbol 591 BitmapUsed by:592
Symbol 592 GraphicUses:591Used by:598 607
Symbol 593 GraphicUsed by:598
Symbol 594 ShapeTweeningUsed by:598
Symbol 595 GraphicUsed by:598 606
Symbol 596 GraphicUsed by:597 618 789 818 883 947 1608
Symbol 597 MovieClipUses:596Used by:598
Symbol 598 MovieClipUses:592 593 594 595 597Used by:607
Symbol 599 ShapeTweeningUsed by:602
Symbol 600 ShapeTweeningUsed by:602
Symbol 601 GraphicUsed by:602
Symbol 602 MovieClipUses:599 600 601Used by:607
Symbol 603 BitmapUsed by:604
Symbol 604 GraphicUses:603Used by:607
Symbol 605 ShapeTweeningUsed by:606
Symbol 606 MovieClipUses:605 595Used by:607
Symbol 607 MovieClipUses:590 598 175 592 602 604 606Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 608 GraphicUsed by:609
Symbol 609 MovieClipUses:608Used by:629
Symbol 610 BitmapUsed by:611
Symbol 611 GraphicUses:610Used by:619 629
Symbol 612 GraphicUsed by:614
Symbol 613 GraphicUsed by:614
Symbol 614 MovieClipUses:612 613Used by:619 629
Symbol 615 GraphicUsed by:619
Symbol 616 ShapeTweeningUsed by:619
Symbol 617 GraphicUsed by:619
Symbol 618 MovieClipUses:596Used by:619
Symbol 619 MovieClipUses:611 614 615 616 617 618Used by:629
Symbol 620 ShapeTweeningUsed by:623
Symbol 621 ShapeTweeningUsed by:623
Symbol 622 GraphicUsed by:623
Symbol 623 MovieClipUses:620 621 622Used by:629
Symbol 624 BitmapUsed by:625
Symbol 625 GraphicUses:624Used by:629
Symbol 626 ShapeTweeningUsed by:628
Symbol 627 GraphicUsed by:628
Symbol 628 MovieClipUses:626 627Used by:629
Symbol 629 MovieClipUses:609 619 611 614 623 625 628Used by:639
Symbol 630 BitmapUsed by:631 1604 1606
Symbol 631 GraphicUses:630Used by:638
Symbol 632 ShapeTweeningUsed by:635
Symbol 633 ShapeTweeningUsed by:635
Symbol 634 GraphicUsed by:635
Symbol 635 MovieClipUses:632 633 634Used by:638
Symbol 636 BitmapUsed by:637 1621
Symbol 637 GraphicUses:636Used by:638
Symbol 638 MovieClipUses:631 635 637Used by:639
Symbol 639 MovieClipUses:629 175 638Used by:1439 1535 1550 1551 1563 1603
Symbol 640 GraphicUsed by:659 944
Symbol 641 BitmapUsed by:642
Symbol 642 GraphicUses:641Used by:659 944
Symbol 643 BitmapUsed by:644
Symbol 644 GraphicUses:643Used by:659 944
Symbol 645 BitmapUsed by:646
Symbol 646 GraphicUses:645Used by:659 944
Symbol 647 BitmapUsed by:648
Symbol 648 GraphicUses:647Used by:659 944
Symbol 649 BitmapUsed by:650
Symbol 650 GraphicUses:649Used by:659 944
Symbol 651 BitmapUsed by:652
Symbol 652 GraphicUses:651Used by:659 944
Symbol 653 BitmapUsed by:654
Symbol 654 GraphicUses:653Used by:659 944
Symbol 655 BitmapUsed by:656
Symbol 656 GraphicUses:655Used by:659 944
Symbol 657 BitmapUsed by:658
Symbol 658 GraphicUses:657Used by:659 944
Symbol 659 MovieClipUses:640 642 644 646 648 650 652 654 656 658Used by:679 701 727 836 841 850 859 868 877
Symbol 660 BitmapUsed by:661 1055
Symbol 661 GraphicUses:660Used by:679
Symbol 662 BitmapUsed by:663
Symbol 663 GraphicUses:662Used by:679
Symbol 664 BitmapUsed by:665
Symbol 665 GraphicUses:664Used by:679
Symbol 666 BitmapUsed by:667
Symbol 667 GraphicUses:666Used by:679
Symbol 668 BitmapUsed by:669
Symbol 669 GraphicUses:668Used by:679
Symbol 670 BitmapUsed by:671
Symbol 671 GraphicUses:670Used by:679
Symbol 672 BitmapUsed by:673
Symbol 673 GraphicUses:672Used by:679
Symbol 674 ShapeTweeningUsed by:677
Symbol 675 ShapeTweeningUsed by:677
Symbol 676 GraphicUsed by:677
Symbol 677 MovieClipUses:674 675 676Used by:678 1056 1239
Symbol 678 MovieClipUses:677 200Used by:679
Symbol 679 MovieClipUses:659 661 663 665 667 669 671 673 200 678Used by:728
Symbol 680 BitmapUsed by:681 1059
Symbol 681 GraphicUses:680Used by:701
Symbol 682 BitmapUsed by:683
Symbol 683 GraphicUses:682Used by:701
Symbol 684 BitmapUsed by:685
Symbol 685 GraphicUses:684Used by:701
Symbol 686 BitmapUsed by:687
Symbol 687 GraphicUses:686Used by:701
Symbol 688 BitmapUsed by:689
Symbol 689 GraphicUses:688Used by:701
Symbol 690 BitmapUsed by:691
Symbol 691 GraphicUses:690Used by:701
Symbol 692 BitmapUsed by:693
Symbol 693 GraphicUses:692Used by:701
Symbol 694 BitmapUsed by:695
Symbol 695 GraphicUses:694Used by:701
Symbol 696 ShapeTweeningUsed by:699
Symbol 697 ShapeTweeningUsed by:699
Symbol 698 GraphicUsed by:699
Symbol 699 MovieClipUses:696 697 698Used by:700 1060 1237
Symbol 700 MovieClipUses:699 203Used by:701
Symbol 701 MovieClipUses:659 681 683 685 687 689 691 693 695 203 700Used by:728
Symbol 702 BitmapUsed by:703 1057
Symbol 703 GraphicUses:702Used by:727
Symbol 704 BitmapUsed by:705
Symbol 705 GraphicUses:704Used by:727
Symbol 706 BitmapUsed by:707
Symbol 707 GraphicUses:706Used by:727
Symbol 708 BitmapUsed by:709
Symbol 709 GraphicUses:708Used by:727
Symbol 710 BitmapUsed by:711
Symbol 711 GraphicUses:710Used by:727
Symbol 712 BitmapUsed by:713
Symbol 713 GraphicUses:712Used by:727
Symbol 714 BitmapUsed by:715
Symbol 715 GraphicUses:714Used by:727
Symbol 716 BitmapUsed by:717
Symbol 717 GraphicUses:716Used by:727
Symbol 718 BitmapUsed by:719
Symbol 719 GraphicUses:718Used by:727
Symbol 720 BitmapUsed by:721
Symbol 721 GraphicUses:720Used by:727
Symbol 722 ShapeTweeningUsed by:725
Symbol 723 ShapeTweeningUsed by:725
Symbol 724 GraphicUsed by:725
Symbol 725 MovieClipUses:722 723 724Used by:726 1058 1238
Symbol 726 MovieClipUses:725 206Used by:727
Symbol 727 MovieClipUses:659 703 705 707 709 711 713 715 717 719 721 206 726Used by:728
Symbol 728 MovieClipUses:679 701 727Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 729 BitmapUsed by:731
Symbol 730 BitmapUsed by:731
Symbol 731 GraphicUses:729 730Used by:778
Symbol 732 ShapeTweeningUsed by:778
Symbol 733 BitmapUsed by:734
Symbol 734 GraphicUses:733Used by:778
Symbol 735 GraphicUsed by:736
Symbol 736 MovieClipUses:735Used by:778
Symbol 737 ShapeTweeningUsed by:778
Symbol 738 GraphicUsed by:778
Symbol 739 ShapeTweeningUsed by:778
Symbol 740 ShapeTweeningUsed by:778
Symbol 741 GraphicUsed by:778
Symbol 742 GraphicUsed by:778
Symbol 743 GraphicUsed by:778
Symbol 744 ShapeTweeningUsed by:778
Symbol 745 GraphicUsed by:778
Symbol 746 ShapeTweeningUsed by:778
Symbol 747 GraphicUsed by:778
Symbol 748 GraphicUsed by:778
Symbol 749 GraphicUsed by:778
Symbol 750 ShapeTweeningUsed by:778
Symbol 751 GraphicUsed by:778
Symbol 752 ShapeTweeningUsed by:778
Symbol 753 GraphicUsed by:778
Symbol 754 GraphicUsed by:778
Symbol 755 GraphicUsed by:778
Symbol 756 ShapeTweeningUsed by:778
Symbol 757 GraphicUsed by:778
Symbol 758 ShapeTweeningUsed by:778
Symbol 759 GraphicUsed by:778
Symbol 760 ShapeTweeningUsed by:778
Symbol 761 GraphicUsed by:778
Symbol 762 GraphicUsed by:778
Symbol 763 GraphicUsed by:778
Symbol 764 ShapeTweeningUsed by:778
Symbol 765 GraphicUsed by:778
Symbol 766 ShapeTweeningUsed by:778
Symbol 767 GraphicUsed by:778
Symbol 768 GraphicUsed by:778
Symbol 769 ShapeTweeningUsed by:778
Symbol 770 ShapeTweeningUsed by:778
Symbol 771 GraphicUsed by:778
Symbol 772 GraphicUsed by:778
Symbol 773 GraphicUsed by:778
Symbol 774 ShapeTweeningUsed by:778
Symbol 775 ShapeTweeningUsed by:778
Symbol 776 GraphicUsed by:778
Symbol 777 GraphicUsed by:778
Symbol 778 MovieClipUses:731 732 734 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 779 GraphicUsed by:780
Symbol 780 MovieClipUses:779Used by:800 830
Symbol 781 BitmapUsed by:782
Symbol 782 GraphicUses:781Used by:790 800
Symbol 783 GraphicUsed by:785
Symbol 784 GraphicUsed by:785
Symbol 785 MovieClipUses:783 784Used by:790 800
Symbol 786 GraphicUsed by:790
Symbol 787 ShapeTweeningUsed by:790
Symbol 788 GraphicUsed by:790 799
Symbol 789 MovieClipUses:596Used by:790
Symbol 790 MovieClipUses:782 785 786 787 788 789Used by:800
Symbol 791 BitmapUsed by:793
Symbol 792 BitmapUsed by:793
Symbol 793 GraphicUses:791 792Used by:800
Symbol 794 ShapeTweeningUsed by:797
Symbol 795 ShapeTweeningUsed by:797
Symbol 796 GraphicUsed by:797
Symbol 797 MovieClipUses:794 795 796Used by:800
Symbol 798 ShapeTweeningUsed by:799
Symbol 799 MovieClipUses:798 788Used by:800
Symbol 800 MovieClipUses:780 790 782 785 793 797 799Used by:831
Symbol 801 BitmapUsed by:802
Symbol 802 GraphicUses:801Used by:819 830
Symbol 803 GraphicUsed by:804
Symbol 804 MovieClipUses:803Used by:819
Symbol 805 GraphicUsed by:814
Symbol 806 BitmapUsed by:812
Symbol 807 BitmapUsed by:812
Symbol 808 BitmapUsed by:812
Symbol 809 BitmapUsed by:812
Symbol 810 BitmapUsed by:812
Symbol 811 BitmapUsed by:812
Symbol 812 GraphicUses:806 807 808 809 810 811Used by:813
Symbol 813 MovieClipUses:812Used by:814
Symbol 814 MovieClipUses:805 813Used by:819 830
Symbol 815 GraphicUsed by:819
Symbol 816 ShapeTweeningUsed by:819
Symbol 817 GraphicUsed by:819 829
Symbol 818 MovieClipUses:596Used by:819
Symbol 819 MovieClipUses:802 804 814 815 816 817 818Used by:830
Symbol 820 BitmapUsed by:821
Symbol 821 GraphicUses:820Used by:830
Symbol 822 ShapeTweeningUsed by:825
Symbol 823 ShapeTweeningUsed by:825
Symbol 824 GraphicUsed by:825
Symbol 825 MovieClipUses:822 823 824Used by:830
Symbol 826 BitmapUsed by:827
Symbol 827 GraphicUses:826Used by:830
Symbol 828 ShapeTweeningUsed by:829
Symbol 829 MovieClipUses:828 817Used by:830
Symbol 830 MovieClipUses:780 819 802 814 821 825 827 829Used by:831
Symbol 831 MovieClipUses:800 175 830Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 832 ShapeTweeningUsed by:836
Symbol 833 BitmapUsed by:834
Symbol 834 GraphicUses:833Used by:835 836
Symbol 835 MovieClipUses:212 834Used by:836
Symbol 836 MovieClipUses:659 832 834 284 835Used by:878
Symbol 837 ShapeTweeningUsed by:841
Symbol 838 BitmapUsed by:839
Symbol 839 GraphicUses:838Used by:840 841
Symbol 840 MovieClipUses:218 839Used by:841
Symbol 841 MovieClipUses:659 837 839 284 840Used by:878
Symbol 842 ShapeTweeningUsed by:850
Symbol 843 BitmapUsed by:844
Symbol 844 GraphicUses:843Used by:849 850
Symbol 845 ShapeTweeningUsed by:848
Symbol 846 ShapeTweeningUsed by:848
Symbol 847 GraphicUsed by:848
Symbol 848 MovieClipUses:845 846 847Used by:849 1064
Symbol 849 MovieClipUses:848 844Used by:850
Symbol 850 MovieClipUses:659 842 844 284 849Used by:878
Symbol 851 ShapeTweeningUsed by:859
Symbol 852 BitmapUsed by:853
Symbol 853 GraphicUses:852Used by:858 859
Symbol 854 ShapeTweeningUsed by:857
Symbol 855 ShapeTweeningUsed by:857
Symbol 856 GraphicUsed by:857
Symbol 857 MovieClipUses:854 855 856Used by:858 1066
Symbol 858 MovieClipUses:857 853Used by:859
Symbol 859 MovieClipUses:659 851 853 284 858Used by:878
Symbol 860 ShapeTweeningUsed by:868
Symbol 861 BitmapUsed by:862
Symbol 862 GraphicUses:861Used by:867 868
Symbol 863 ShapeTweeningUsed by:866
Symbol 864 ShapeTweeningUsed by:866
Symbol 865 GraphicUsed by:866
Symbol 866 MovieClipUses:863 864 865Used by:867 1068
Symbol 867 MovieClipUses:866 862Used by:868
Symbol 868 MovieClipUses:659 860 862 284 867Used by:878
Symbol 869 ShapeTweeningUsed by:877
Symbol 870 BitmapUsed by:871
Symbol 871 GraphicUses:870Used by:876 877
Symbol 872 ShapeTweeningUsed by:875
Symbol 873 ShapeTweeningUsed by:875
Symbol 874 GraphicUsed by:875
Symbol 875 MovieClipUses:872 873 874Used by:876 1062
Symbol 876 MovieClipUses:875 871Used by:877
Symbol 877 MovieClipUses:659 869 871 284 876Used by:878
Symbol 878 MovieClipUses:836 841 850 859 868 877Used by:1439 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 879 BitmapUsed by:880
Symbol 880 GraphicUses:879Used by:884 893
Symbol 881 GraphicUsed by:884
Symbol 882 GraphicUsed by:884 892
Symbol 883 MovieClipUses:596Used by:884
Symbol 884 MovieClipUses:880 881 882 883Used by:893
Symbol 885 ShapeTweeningUsed by:888
Symbol 886 ShapeTweeningUsed by:888
Symbol 887 GraphicUsed by:888
Symbol 888 MovieClipUses:885 886 887Used by:893
Symbol 889 BitmapUsed by:890
Symbol 890 GraphicUses:889Used by:893
Symbol 891 ShapeTweeningUsed by:892
Symbol 892 MovieClipUses:891 882Used by:893
Symbol 893 MovieClipUses:590 884 175 880 888 890 892Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 894 BitmapUsed by:895
Symbol 895 GraphicUses:894Used by:944
Symbol 896 BitmapUsed by:897
Symbol 897 GraphicUses:896Used by:944
Symbol 898 BitmapUsed by:899
Symbol 899 GraphicUses:898Used by:944
Symbol 900 BitmapUsed by:901
Symbol 901 GraphicUses:900Used by:944
Symbol 902 BitmapUsed by:903
Symbol 903 GraphicUses:902Used by:944
Symbol 904 BitmapUsed by:905
Symbol 905 GraphicUses:904Used by:944
Symbol 906 BitmapUsed by:907
Symbol 907 GraphicUses:906Used by:944
Symbol 908 BitmapUsed by:909
Symbol 909 GraphicUses:908Used by:944
Symbol 910 BitmapUsed by:911
Symbol 911 GraphicUses:910Used by:944
Symbol 912 BitmapUsed by:913
Symbol 913 GraphicUses:912Used by:944
Symbol 914 BitmapUsed by:915 921
Symbol 915 GraphicUses:914Used by:944 1092
Symbol 916 ShapeTweeningUsed by:919
Symbol 917 ShapeTweeningUsed by:919
Symbol 918 GraphicUsed by:919
Symbol 919 MovieClipUses:916 917 918Used by:944
Symbol 920 BitmapUsed by:921 922
Symbol 921 GraphicUses:920 914Used by:944
Symbol 922 GraphicUses:920Used by:943 944
Symbol 923 BitmapUsed by:924
Symbol 924 GraphicUses:923Used by:943 944
Symbol 925 BitmapUsed by:926
Symbol 926 GraphicUses:925Used by:943 944
Symbol 927 BitmapUsed by:928
Symbol 928 GraphicUses:927Used by:943 944
Symbol 929 BitmapUsed by:930
Symbol 930 GraphicUses:929Used by:943 944
Symbol 931 BitmapUsed by:932
Symbol 932 GraphicUses:931Used by:943 944
Symbol 933 BitmapUsed by:934
Symbol 934 GraphicUses:933Used by:943 944
Symbol 935 BitmapUsed by:936
Symbol 936 GraphicUses:935Used by:943 944
Symbol 937 BitmapUsed by:938
Symbol 938 GraphicUses:937Used by:943 944
Symbol 939 BitmapUsed by:940
Symbol 940 GraphicUses:939Used by:943 944
Symbol 941 BitmapUsed by:942
Symbol 942 GraphicUses:941Used by:943 944
Symbol 943 MovieClipUses:922 924 926 928 930 932 934 936 938 940 942Used by:944 1092 1455
Symbol 944 MovieClipUses:640 642 644 646 895 648 650 652 897 654 656 899 658 901 903 905 907 909 911 913 915 919 921 922 924 926 928 930 932 934 936 938 940 942 943Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 945 BitmapUsed by:946 953
Symbol 946 GraphicUses:945Used by:952 965
Symbol 947 MovieClipUses:596Used by:952
Symbol 948 GraphicUsed by:951
Symbol 949 ShapeTweeningUsed by:951
Symbol 950 GraphicUsed by:951
Symbol 951 MovieClipUses:948 949 950Used by:952
Symbol 952 MovieClipUses:946 947 951Used by:973
Symbol 953 GraphicUses:945Used by:965
Symbol 954 BitmapUsed by:956
Symbol 955 BitmapUsed by:956
Symbol 956 GraphicUses:954 955Used by:965
Symbol 957 BitmapUsed by:959
Symbol 958 BitmapUsed by:959
Symbol 959 GraphicUses:957 958Used by:965
Symbol 960 BitmapUsed by:962
Symbol 961 BitmapUsed by:962
Symbol 962 GraphicUses:960 961Used by:965
Symbol 963 BitmapUsed by:964
Symbol 964 GraphicUses:963Used by:965
Symbol 965 MovieClipUses:953 956 959 962 946 964Used by:973
Symbol 966 ShapeTweeningUsed by:969
Symbol 967 ShapeTweeningUsed by:969
Symbol 968 GraphicUsed by:969
Symbol 969 MovieClipUses:966 967 968Used by:973
Symbol 970 BitmapUsed by:972
Symbol 971 BitmapUsed by:972
Symbol 972 GraphicUses:970 971Used by:973
Symbol 973 MovieClipUses:952 965 969 972Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 974 BitmapUsed by:975
Symbol 975 GraphicUses:974Used by:994
Symbol 976 BitmapUsed by:977
Symbol 977 GraphicUses:976Used by:994
Symbol 978 BitmapUsed by:979
Symbol 979 GraphicUses:978Used by:994
Symbol 980 BitmapUsed by:981
Symbol 981 GraphicUses:980Used by:994
Symbol 982 BitmapUsed by:983
Symbol 983 GraphicUses:982Used by:994
Symbol 984 BitmapUsed by:985
Symbol 985 GraphicUses:984Used by:994
Symbol 986 BitmapUsed by:987
Symbol 987 GraphicUses:986Used by:994
Symbol 988 BitmapUsed by:989
Symbol 989 GraphicUses:988Used by:994
Symbol 990 BitmapUsed by:991
Symbol 991 GraphicUses:990Used by:994
Symbol 992 BitmapUsed by:993
Symbol 993 GraphicUses:992Used by:994
Symbol 994 MovieClipUses:975 977 979 981 983 985 987 989 991 993Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 995 BitmapUsed by:996
Symbol 996 GraphicUses:995Used by:1025
Symbol 997 BitmapUsed by:998
Symbol 998 GraphicUses:997Used by:1025
Symbol 999 BitmapUsed by:1000
Symbol 1000 GraphicUses:999Used by:1025
Symbol 1001 BitmapUsed by:1002
Symbol 1002 GraphicUses:1001Used by:1025
Symbol 1003 BitmapUsed by:1004
Symbol 1004 GraphicUses:1003Used by:1025
Symbol 1005 BitmapUsed by:1006
Symbol 1006 GraphicUses:1005Used by:1025
Symbol 1007 BitmapUsed by:1008
Symbol 1008 GraphicUses:1007Used by:1025
Symbol 1009 BitmapUsed by:1010
Symbol 1010 GraphicUses:1009Used by:1025
Symbol 1011 BitmapUsed by:1012
Symbol 1012 GraphicUses:1011Used by:1025
Symbol 1013 BitmapUsed by:1014
Symbol 1014 GraphicUses:1013Used by:1025
Symbol 1015 BitmapUsed by:1016
Symbol 1016 GraphicUses:1015Used by:1025
Symbol 1017 BitmapUsed by:1018
Symbol 1018 GraphicUses:1017Used by:1025
Symbol 1019 BitmapUsed by:1020
Symbol 1020 GraphicUses:1019Used by:1025
Symbol 1021 BitmapUsed by:1022
Symbol 1022 GraphicUses:1021Used by:1025
Symbol 1023 BitmapUsed by:1024
Symbol 1024 GraphicUses:1023Used by:1025
Symbol 1025 MovieClipUses:996 998 1000 1002 1004 1006 1008 1010 1012 1014 1016 1018 1020 1022 1024Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1026 GraphicUsed by:1087
Symbol 1027 BitmapUsed by:1028
Symbol 1028 GraphicUses:1027Used by:1039
Symbol 1029 BitmapUsed by:1030
Symbol 1030 GraphicUses:1029Used by:1039
Symbol 1031 BitmapUsed by:1032
Symbol 1032 GraphicUses:1031Used by:1039
Symbol 1033 BitmapUsed by:1034
Symbol 1034 GraphicUses:1033Used by:1039
Symbol 1035 BitmapUsed by:1036
Symbol 1036 GraphicUses:1035Used by:1039
Symbol 1037 BitmapUsed by:1038
Symbol 1038 GraphicUses:1037Used by:1039
Symbol 1039 MovieClipUses:1028 1030 1032 1034 1036 1038Used by:1087
Symbol 1040 BitmapUsed by:1041
Symbol 1041 GraphicUses:1040Used by:1087
Symbol 1042 BitmapUsed by:1043
Symbol 1043 GraphicUses:1042Used by:1054
Symbol 1044 BitmapUsed by:1045
Symbol 1045 GraphicUses:1044Used by:1054
Symbol 1046 BitmapUsed by:1047
Symbol 1047 GraphicUses:1046Used by:1054
Symbol 1048 BitmapUsed by:1049
Symbol 1049 GraphicUses:1048Used by:1054
Symbol 1050 BitmapUsed by:1051
Symbol 1051 GraphicUses:1050Used by:1054
Symbol 1052 BitmapUsed by:1053
Symbol 1053 GraphicUses:1052Used by:1054
Symbol 1054 MovieClipUses:1043 1045 1047 1049 1051 1053Used by:1087
Symbol 1055 GraphicUses:199 660Used by:1056 1239
Symbol 1056 MovieClipUses:1055 677Used by:1069
Symbol 1057 GraphicUses:205 702Used by:1058 1238
Symbol 1058 MovieClipUses:1057 725Used by:1069
Symbol 1059 GraphicUses:202 680Used by:1060 1237
Symbol 1060 MovieClipUses:1059 699Used by:1069
Symbol 1061 GraphicUsed by:1062
Symbol 1062 MovieClipUses:1061 875Used by:1069
Symbol 1063 GraphicUsed by:1064
Symbol 1064 MovieClipUses:1063 848Used by:1069
Symbol 1065 GraphicUsed by:1066
Symbol 1066 MovieClipUses:1065 857Used by:1069
Symbol 1067 GraphicUsed by:1068
Symbol 1068 MovieClipUses:1067 866Used by:1069
Symbol 1069 MovieClipUses:1056 1058 1060 213 219 1062 1064 1066 1068Used by:1087 1157 1164 1165 1227 1231 1468
Symbol 1070 BitmapUsed by:1071
Symbol 1071 GraphicUses:1070Used by:1087
Symbol 1072 BitmapUsed by:1073
Symbol 1073 GraphicUses:1072Used by:1084
Symbol 1074 BitmapUsed by:1075
Symbol 1075 GraphicUses:1074Used by:1084
Symbol 1076 BitmapUsed by:1077
Symbol 1077 GraphicUses:1076Used by:1084
Symbol 1078 BitmapUsed by:1079
Symbol 1079 GraphicUses:1078Used by:1084
Symbol 1080 BitmapUsed by:1081
Symbol 1081 GraphicUses:1080Used by:1084
Symbol 1082 BitmapUsed by:1083
Symbol 1083 GraphicUses:1082Used by:1084
Symbol 1084 MovieClipUses:1073 1075 1077 1079 1081 1083Used by:1087
Symbol 1085 BitmapUsed by:1086
Symbol 1086 GraphicUses:1085Used by:1087
Symbol 1087 MovieClipUses:1026 1039 1041 1054 1069 1071 1084 1086Used by:1232
Symbol 1088 GraphicUsed by:1089
Symbol 1089 MovieClipUses:1088Used by:1232
Symbol 1090 GraphicUsed by:1091
Symbol 1091 MovieClipUses:1090Used by:1092
Symbol 1092 MovieClipUses:1091 915 943Used by:1232
Symbol 1093 GraphicUsed by:1165
Symbol 1094 BitmapUsed by:1095
Symbol 1095 GraphicUses:1094Used by:1106
Symbol 1096 BitmapUsed by:1097
Symbol 1097 GraphicUses:1096Used by:1106
Symbol 1098 BitmapUsed by:1099
Symbol 1099 GraphicUses:1098Used by:1106
Symbol 1100 BitmapUsed by:1101
Symbol 1101 GraphicUses:1100Used by:1106
Symbol 1102 BitmapUsed by:1103
Symbol 1103 GraphicUses:1102Used by:1106
Symbol 1104 BitmapUsed by:1105
Symbol 1105 GraphicUses:1104Used by:1106
Symbol 1106 MovieClipUses:1095 1097 1099 1101 1103 1105Used by:1165
Symbol 1107 BitmapUsed by:1108
Symbol 1108 GraphicUses:1107Used by:1111 1150
Symbol 1109 BitmapUsed by:1110
Symbol 1110 GraphicUses:1109Used by:1111 1127 1143
Symbol 1111 MovieClipUses:1108 1110Used by:1165 1231
Symbol 1112 BitmapUsed by:1113
Symbol 1113 GraphicUses:1112Used by:1124
Symbol 1114 BitmapUsed by:1115
Symbol 1115 GraphicUses:1114Used by:1124
Symbol 1116 BitmapUsed by:1117
Symbol 1117 GraphicUses:1116Used by:1124
Symbol 1118 BitmapUsed by:1119
Symbol 1119 GraphicUses:1118Used by:1124
Symbol 1120 BitmapUsed by:1121
Symbol 1121 GraphicUses:1120Used by:1124
Symbol 1122 BitmapUsed by:1123
Symbol 1123 GraphicUses:1122Used by:1124
Symbol 1124 MovieClipUses:1113 1115 1117 1119 1121 1123Used by:1165
Symbol 1125 BitmapUsed by:1126
Symbol 1126 GraphicUses:1125Used by:1127 1157
Symbol 1127 MovieClipUses:1126 1110Used by:1165 1231
Symbol 1128 BitmapUsed by:1129
Symbol 1129 GraphicUses:1128Used by:1140
Symbol 1130 BitmapUsed by:1131
Symbol 1131 GraphicUses:1130Used by:1140
Symbol 1132 BitmapUsed by:1133
Symbol 1133 GraphicUses:1132Used by:1140
Symbol 1134 BitmapUsed by:1135
Symbol 1135 GraphicUses:1134Used by:1140
Symbol 1136 BitmapUsed by:1137
Symbol 1137 GraphicUses:1136Used by:1140
Symbol 1138 BitmapUsed by:1139
Symbol 1139 GraphicUses:1138Used by:1140
Symbol 1140 MovieClipUses:1129 1131 1133 1135 1137 1139Used by:1165
Symbol 1141 BitmapUsed by:1142
Symbol 1142 GraphicUses:1141Used by:1143 1164
Symbol 1143 MovieClipUses:1142 1110Used by:1165 1231
Symbol 1144 BitmapUsed by:1145
Symbol 1145 GraphicUses:1144Used by:1150
Symbol 1146 BitmapUsed by:1147
Symbol 1147 GraphicUses:1146Used by:1150
Symbol 1148 BitmapUsed by:1149
Symbol 1149 GraphicUses:1148Used by:1150
Symbol 1150 MovieClipUses:1145 1147 1149 1108Used by:1165
Symbol 1151 BitmapUsed by:1152
Symbol 1152 GraphicUses:1151Used by:1157
Symbol 1153 BitmapUsed by:1154
Symbol 1154 GraphicUses:1153Used by:1157
Symbol 1155 BitmapUsed by:1156
Symbol 1156 GraphicUses:1155Used by:1157
Symbol 1157 MovieClipUses:1152 1069 1154 1156 1126Used by:1165
Symbol 1158 BitmapUsed by:1159
Symbol 1159 GraphicUses:1158Used by:1164
Symbol 1160 BitmapUsed by:1161
Symbol 1161 GraphicUses:1160Used by:1164
Symbol 1162 BitmapUsed by:1163
Symbol 1163 GraphicUses:1162Used by:1164
Symbol 1164 MovieClipUses:1159 1069 1161 1163 1142Used by:1165
Symbol 1165 MovieClipUses:1093 1106 1111 1124 1069 1127 1140 1143 1150 1157 1164Used by:1232
Symbol 1166 GraphicUsed by:1227
Symbol 1167 BitmapUsed by:1168
Symbol 1168 GraphicUses:1167Used by:1179
Symbol 1169 BitmapUsed by:1170
Symbol 1170 GraphicUses:1169Used by:1179
Symbol 1171 BitmapUsed by:1172
Symbol 1172 GraphicUses:1171Used by:1179
Symbol 1173 BitmapUsed by:1174
Symbol 1174 GraphicUses:1173Used by:1179
Symbol 1175 BitmapUsed by:1176
Symbol 1176 GraphicUses:1175Used by:1179
Symbol 1177 BitmapUsed by:1178
Symbol 1178 GraphicUses:1177Used by:1179
Symbol 1179 MovieClipUses:1168 1170 1172 1174 1176 1178Used by:1227 1231
Symbol 1180 BitmapUsed by:1181
Symbol 1181 GraphicUses:1180Used by:1227
Symbol 1182 BitmapUsed by:1183
Symbol 1183 GraphicUses:1182Used by:1194
Symbol 1184 BitmapUsed by:1185
Symbol 1185 GraphicUses:1184Used by:1194
Symbol 1186 BitmapUsed by:1187
Symbol 1187 GraphicUses:1186Used by:1194
Symbol 1188 BitmapUsed by:1189
Symbol 1189 GraphicUses:1188Used by:1194
Symbol 1190 BitmapUsed by:1191
Symbol 1191 GraphicUses:1190Used by:1194
Symbol 1192 BitmapUsed by:1193
Symbol 1193 GraphicUses:1192Used by:1194
Symbol 1194 MovieClipUses:1183 1185 1187 1189 1191 1193Used by:1227 1231
Symbol 1195 BitmapUsed by:1196 1230
Symbol 1196 GraphicUses:1195Used by:1227
Symbol 1197 BitmapUsed by:1198
Symbol 1198 GraphicUses:1197Used by:1209
Symbol 1199 BitmapUsed by:1200
Symbol 1200 GraphicUses:1199Used by:1209
Symbol 1201 BitmapUsed by:1202
Symbol 1202 GraphicUses:1201Used by:1209
Symbol 1203 BitmapUsed by:1204
Symbol 1204 GraphicUses:1203Used by:1209
Symbol 1205 BitmapUsed by:1206
Symbol 1206 GraphicUses:1205Used by:1209
Symbol 1207 BitmapUsed by:1208
Symbol 1208 GraphicUses:1207Used by:1209
Symbol 1209 MovieClipUses:1198 1200 1202 1204 1206 1208Used by:1227 1231
Symbol 1210 BitmapUsed by:1211
Symbol 1211 GraphicUses:1210Used by:1227
Symbol 1212 BitmapUsed by:1213
Symbol 1213 GraphicUses:1212Used by:1224
Symbol 1214 BitmapUsed by:1215
Symbol 1215 GraphicUses:1214Used by:1224
Symbol 1216 BitmapUsed by:1217
Symbol 1217 GraphicUses:1216Used by:1224
Symbol 1218 BitmapUsed by:1219
Symbol 1219 GraphicUses:1218Used by:1224
Symbol 1220 BitmapUsed by:1221
Symbol 1221 GraphicUses:1220Used by:1224
Symbol 1222 BitmapUsed by:1223
Symbol 1223 GraphicUses:1222Used by:1224
Symbol 1224 MovieClipUses:1213 1215 1217 1219 1221 1223Used by:1227 1231
Symbol 1225 BitmapUsed by:1226
Symbol 1226 GraphicUses:1225Used by:1227
Symbol 1227 MovieClipUses:1166 1179 1181 1194 1069 1196 1209 1211 1224 1226Used by:1232
Symbol 1228 GraphicUsed by:1231
Symbol 1229 GraphicUsed by:1231
Symbol 1230 GraphicUses:1195Used by:1231
Symbol 1231 MovieClipUses:1228 1179 1229 1111 1209 1069 1127 1194 1230 1224 1143Used by:1232
Symbol 1232 MovieClipUses:1087 1089 1092 1165 1227 1231Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1233 BitmapUsed by:1236 1278 1293 1295 1297 1467 1546
Symbol 1234 BitmapUsed by:1236 1278 1467 1546
Symbol 1235 BitmapUsed by:1236 1278 1293 1295 1297 1467 1546
Symbol 1236 GraphicUses:1233 1234 1235Used by:1245 1246
Symbol 1237 MovieClipUses:1059 699Used by:1245
Symbol 1238 MovieClipUses:1057 725Used by:1245
Symbol 1239 MovieClipUses:1055 677Used by:1245
Symbol 1240 BitmapUsed by:1241
Symbol 1241 GraphicUses:1240Used by:1244
Symbol 1242 BitmapUsed by:1243
Symbol 1243 GraphicUses:1242Used by:1244
Symbol 1244 ButtonUses:1241 1243Used by:1245 1468 1547
Symbol 1245 MovieClipUses:1236 1237 1238 1239 1244Used by:1247
Symbol 1246 MovieClipUses:1236Used by:1247
Symbol 1247 MovieClipUses:1245 1246Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1248 GraphicUsed by:1251
Symbol 1249 FontUsed by:1250
Symbol 1250 TextUses:1249Used by:1251
Symbol 1251 MovieClipUses:1248 1250Used by:1252
Symbol 1252 MovieClipUses:1251Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1253 BitmapUsed by:1254
Symbol 1254 GraphicUses:1253Used by:1255
Symbol 1255 MovieClipUses:1254Used by:1256
Symbol 1256 MovieClipUses:1255Used by:1269
Symbol 1257 BitmapUsed by:1258
Symbol 1258 GraphicUses:1257Used by:1259
Symbol 1259 MovieClipUses:1258Used by:1260
Symbol 1260 MovieClipUses:1259Used by:1269
Symbol 1261 BitmapUsed by:1262
Symbol 1262 GraphicUses:1261Used by:1263
Symbol 1263 MovieClipUses:1262Used by:1264
Symbol 1264 MovieClipUses:1263Used by:1269
Symbol 1265 BitmapUsed by:1266
Symbol 1266 GraphicUses:1265Used by:1267
Symbol 1267 MovieClipUses:1266Used by:1268
Symbol 1268 MovieClipUses:1267Used by:1269
Symbol 1269 MovieClipUses:1256 1260 1264 1268Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1270 BitmapUsed by:1271
Symbol 1271 GraphicUses:1270Used by:1274
Symbol 1272 BitmapUsed by:1273
Symbol 1273 GraphicUses:1272Used by:1274
Symbol 1274 ButtonUses:1271 1273Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1275 GraphicUsed by:1291 1539 1554 1635
Symbol 1276 ShapeTweeningUsed by:1291
Symbol 1277 BitmapUsed by:1278
Symbol 1278 GraphicUses:1233 1235 1277 1234Used by:1279 1537
Symbol 1279 MovieClipUses:1278Used by:1291 1554 1635
Symbol 1280 BitmapUsed by:1281
Symbol 1281 GraphicUses:1280Used by:1282
Symbol 1282 MovieClipUses:1281Used by:1291 1539 1554 1635
Symbol 1283 GraphicUsed by:1291 1539 1554 1635
Symbol 1284 FontUsed by:1285 1294 1296 1298 1485 1538 1553 1634
Symbol 1285 EditableTextUses:1284Used by:1291
Symbol 1286 BitmapUsed by:1287
Symbol 1287 GraphicUses:1286Used by:1290
Symbol 1288 BitmapUsed by:1289
Symbol 1289 GraphicUses:1288Used by:1290
Symbol 1290 MovieClipUses:1287 1289Used by:1291 1539 1554 1635
Symbol 1291 MovieClipUses:1275 1276 1279 1282 1283 1285 1290Used by:1439 1603 1648 1658 1667
Symbol 1292 BitmapUsed by:1293 1295 1297
Symbol 1293 GraphicUses:1292 1233 1235Used by:1299
Symbol 1294 EditableTextUses:1284Used by:1299
Symbol 1295 GraphicUses:1292 1233 1235Used by:1299
Symbol 1296 EditableTextUses:1284Used by:1299
Symbol 1297 GraphicUses:1292 1233 1235Used by:1299
Symbol 1298 EditableTextUses:1284Used by:1299
Symbol 1299 MovieClipUses:1293 1294 1295 1296 1297 1298Used by:1439
Symbol 1300 BitmapUsed by:1302
Symbol 1301 BitmapUsed by:1302
Symbol 1302 GraphicUses:1300 1301Used by:1354 1493 1545 1560 1602 1640 1647 1657 1666
Symbol 1303 ShapeTweeningUsed by:1307
Symbol 1304 BitmapUsed by:1305
Symbol 1305 GraphicUses:1304Used by:1307 1489 1541 1556 1598 1637 1643 1650 1660
Symbol 1306 GraphicUsed by:1307 1489 1541 1556 1598 1637 1643 1650 1660
Symbol 1307 MovieClipUses:1303 1305 1306Used by:1354
Symbol 1308 GraphicUsed by:1310
Symbol 1309 GraphicUsed by:1310
Symbol 1310 MovieClipUses:1308 1309Used by:1354 1493 1545 1560 1602 1640 1647
Symbol 1311 BitmapUsed by:1312
Symbol 1312 GraphicUses:1311Used by:1331
Symbol 1313 BitmapUsed by:1314
Symbol 1314 GraphicUses:1313Used by:1331
Symbol 1315 BitmapUsed by:1316
Symbol 1316 GraphicUses:1315Used by:1331
Symbol 1317 BitmapUsed by:1318
Symbol 1318 GraphicUses:1317Used by:1331
Symbol 1319 BitmapUsed by:1320
Symbol 1320 GraphicUses:1319Used by:1331
Symbol 1321 BitmapUsed by:1322
Symbol 1322 GraphicUses:1321Used by:1331
Symbol 1323 BitmapUsed by:1324
Symbol 1324 GraphicUses:1323Used by:1331
Symbol 1325 BitmapUsed by:1326
Symbol 1326 GraphicUses:1325Used by:1331
Symbol 1327 BitmapUsed by:1328
Symbol 1328 GraphicUses:1327Used by:1331
Symbol 1329 BitmapUsed by:1330
Symbol 1330 GraphicUses:1329Used by:1331
Symbol 1331 MovieClipUses:1312 1314 1316 1318 1320 1322 1324 1326 1328 1330Used by:1354 1493 1545 1560 1602 1640 1647 1657 1666
Symbol 1332 BitmapUsed by:1333
Symbol 1333 GraphicUses:1332Used by:1350
Symbol 1334 BitmapUsed by:1335
Symbol 1335 GraphicUses:1334Used by:1350
Symbol 1336 BitmapUsed by:1337
Symbol 1337 GraphicUses:1336Used by:1350
Symbol 1338 BitmapUsed by:1339
Symbol 1339 GraphicUses:1338Used by:1350
Symbol 1340 BitmapUsed by:1341
Symbol 1341 GraphicUses:1340Used by:1350
Symbol 1342 BitmapUsed by:1343
Symbol 1343 GraphicUses:1342Used by:1350
Symbol 1344 BitmapUsed by:1345
Symbol 1345 GraphicUses:1344Used by:1350
Symbol 1346 BitmapUsed by:1347
Symbol 1347 GraphicUses:1346Used by:1350
Symbol 1348 BitmapUsed by:1349
Symbol 1349 GraphicUses:1348Used by:1350
Symbol 1350 MovieClipUses:1333 1335 1337 1339 1341 1343 1345 1347 1349Used by:1354 1493 1545 1560 1602 1640 1647 1657 1666
Symbol 1351 EditableTextUses:314Used by:1354
Symbol 1352 TextUses:314Used by:1354
Symbol 1353 TextUses:314Used by:1354
Symbol 1354 MovieClipUses:1302 1307 1310 1331 1350 1351 1352 1353Used by:1439
Symbol 1355 GraphicUsed by:1414 1466
Symbol 1356 GraphicUsed by:1414 1533
Symbol 1357 ShapeTweeningUsed by:1414
Symbol 1358 BitmapUsed by:1365
Symbol 1359 BitmapUsed by:1365
Symbol 1360 BitmapUsed by:1365 1520
Symbol 1361 BitmapUsed by:1365 1520
Symbol 1362 BitmapUsed by:1365 1520
Symbol 1363 BitmapUsed by:1365 1520
Symbol 1364 BitmapUsed by:1365 1520
Symbol 1365 GraphicUses:1358 1359 1360 1361 1362 1363 1364Used by:1406
Symbol 1366 TextUses:555Used by:1406
Symbol 1367 TextUses:555Used by:1406
Symbol 1368 TextUses:555Used by:1406
Symbol 1369 TextUses:555Used by:1406
Symbol 1370 EditableTextUses:555Used by:1406
Symbol 1371 EditableTextUses:555Used by:1406
Symbol 1372 BitmapUsed by:1373
Symbol 1373 GraphicUses:1372Used by:1398 1403
Symbol 1374 BitmapUsed by:1375
Symbol 1375 GraphicUses:1374Used by:1398 1403
Symbol 1376 BitmapUsed by:1377
Symbol 1377 GraphicUses:1376Used by:1398 1403
Symbol 1378 BitmapUsed by:1379
Symbol 1379 GraphicUses:1378Used by:1398 1403
Symbol 1380 BitmapUsed by:1381
Symbol 1381 GraphicUses:1380Used by:1398 1403
Symbol 1382 TextUses:555Used by:1383
Symbol 1383 MovieClipUses:1382Used by:1398
Symbol 1384 BitmapUsed by:1385
Symbol 1385 GraphicUses:1384Used by:1398
Symbol 1386 BitmapUsed by:1387
Symbol 1387 GraphicUses:1386Used by:1398 1403
Symbol 1388 BitmapUsed by:1389
Symbol 1389 GraphicUses:1388Used by:1398 1403
Symbol 1390 BitmapUsed by:1391
Symbol 1391 GraphicUses:1390Used by:1398 1403
Symbol 1392 BitmapUsed by:1393
Symbol 1393 GraphicUses:1392Used by:1398 1403
Symbol 1394 BitmapUsed by:1395
Symbol 1395 GraphicUses:1394Used by:1398 1403
Symbol 1396 BitmapUsed by:1397
Symbol 1397 GraphicUses:1396Used by:1398 1403
Symbol 1398 MovieClipUses:1373 284 1375 1377 1379 1381 1383 1385 1387 1389 1391 1393 1395 1397Used by:1404
Symbol 1399 BitmapUsed by:1400
Symbol 1400 GraphicUses:1399Used by:1403
Symbol 1401 TextUses:555Used by:1402
Symbol 1402 MovieClipUses:1401Used by:1403
Symbol 1403 MovieClipUses:1373 284 1375 1377 1379 1381 1400 1387 1402 1389 1391 1393 1395 1397Used by:1404
Symbol 1404 MovieClipUses:1398 1403Used by:1406
Symbol 1405 EditableTextUses:555Used by:1406
Symbol 1406 MovieClipUses:1365 1366 1367 1368 1369 1370 1371 1404 1405Used by:1414
Symbol 1407 GraphicUsed by:1414 1487
Symbol 1408 BitmapUsed by:1409
Symbol 1409 GraphicUses:1408Used by:1412
Symbol 1410 BitmapUsed by:1411
Symbol 1411 GraphicUses:1410Used by:1412
Symbol 1412 ButtonUses:1409 1411Used by:1414
Symbol 1413 MovieClipUses:563Used by:1414
Symbol 1414 MovieClipUses:1355 1356 1357 1406 1407 1412 1413Used by:1439 1534
Symbol 1415 GraphicUsed by:1416
Symbol 1416 MovieClipUses:1415Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1417 GraphicUsed by:1418
Symbol 1418 MovieClipUses:1417Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1419 GraphicUsed by:1420
Symbol 1420 MovieClipUses:1419Used by:1421
Symbol 1421 MovieClipUses:1420Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1422 GraphicUsed by:1423
Symbol 1423 MovieClipUses:1422Used by:1425
Symbol 1424 GraphicUsed by:1425
Symbol 1425 MovieClipUses:1423 1424Used by:1426
Symbol 1426 MovieClipUses:1425Used by:1427 1428 1429 1431 1432 1433 1435 1436 1437
Symbol 1427 MovieClipUses:198 1426Used by:1430
Symbol 1428 MovieClipUses:198 1426Used by:1430
Symbol 1429 MovieClipUses:198 1426Used by:1430
Symbol 1430 MovieClipUses:1427 1428 1429Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1431 MovieClipUses:198 1426Used by:1434
Symbol 1432 MovieClipUses:198 1426Used by:1434
Symbol 1433 MovieClipUses:198 1426Used by:1434
Symbol 1434 MovieClipUses:1431 1432 1433Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1435 MovieClipUses:198 1426Used by:1438
Symbol 1436 MovieClipUses:198 1426Used by:1438
Symbol 1437 MovieClipUses:198 1426Used by:1438
Symbol 1438 MovieClipUses:1435 1436 1437Used by:1439 1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1439 MovieClip [level1]Uses:588 607 639 728 778 831 878 893 944 973 994 1025 259 152 1232 1247 1252 1269 1274 1291 1299 1354 1414 1416 1418 1421 1430 1434 1438Used by:1674
Symbol 1440 GraphicUsed by:1441
Symbol 1441 MovieClipUses:1440Used by:1444
Symbol 1442 TextUses:325Used by:1444
Symbol 1443 GraphicUsed by:1444
Symbol 1444 MovieClipUses:1441 1442 1443Used by:1466
Symbol 1445 GraphicUsed by:1466
Symbol 1446 BitmapUsed by:1452 1476
Symbol 1447 BitmapUsed by:1452
Symbol 1448 BitmapUsed by:1452 1476
Symbol 1449 BitmapUsed by:1452
Symbol 1450 BitmapUsed by:1452 1476
Symbol 1451 BitmapUsed by:1452 1476
Symbol 1452 GraphicUses:1446 1447 1448 1449 1450 1451Used by:1458 1466
Symbol 1453 BitmapUsed by:1454
Symbol 1454 GraphicUses:1453Used by:1455
Symbol 1455 MovieClipUses:1454 943Used by:1466
Symbol 1456 GraphicUsed by:1457
Symbol 1457 MovieClipUses:1456Used by:1466
Symbol 1458 MovieClipUses:1452Used by:1466
Symbol 1459 TextUses:325Used by:1460
Symbol 1460 MovieClipUses:1459Used by:1466
Symbol 1461 ButtonUses:326Used by:1466
Symbol 1462 TextUses:325Used by:1463
Symbol 1463 MovieClipUses:1462Used by:1466
Symbol 1464 TextUses:325Used by:1465
Symbol 1465 MovieClipUses:1464Used by:1466
Symbol 1466 MovieClipUses:1444 1445 1355 1452 1455 1457 1458 1460 1461 1463 1465Used by:1674
Symbol 1467 GraphicUses:1233 1234 1235Used by:1468 1469
Symbol 1468 MovieClipUses:1467 1244 1069Used by:1470
Symbol 1469 MovieClipUses:1467Used by:1470
Symbol 1470 MovieClipUses:1468 1469Used by:1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1471 EditableTextUses:314Used by:1472
Symbol 1472 MovieClipUses:1471Used by:1473
Symbol 1473 MovieClipUses:1472Used by:1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1474 ShapeTweeningUsed by:1487
Symbol 1475 BitmapUsed by:1476
Symbol 1476 GraphicUses:1475 1446 1450 1448 1451Used by:1477
Symbol 1477 MovieClipUses:1476Used by:1487
Symbol 1478 BitmapUsed by:1479
Symbol 1479 GraphicUses:1478Used by:1482
Symbol 1480 BitmapUsed by:1481
Symbol 1481 GraphicUses:1480Used by:1482
Symbol 1482 ButtonUses:1479 1481Used by:1487
Symbol 1483 TextUses:555Used by:1487
Symbol 1484 TextUses:555Used by:1487
Symbol 1485 TextUses:1284Used by:1487
Symbol 1486 MovieClipUses:3 8 10 12 14 16 18 20 22 24 26 28 30 32 35 37 39 40 42 44 45Used by:1487
Symbol 1487 MovieClipUses:1474 1477 1407 1482 1483 1484 1485 1486Used by:1535 1551
Symbol 1488 ShapeTweeningUsed by:1489
Symbol 1489 MovieClipUses:1488 1305 1306Used by:1493
Symbol 1490 EditableTextUses:314Used by:1493
Symbol 1491 TextUses:314Used by:1493
Symbol 1492 TextUses:314Used by:1493
Symbol 1493 MovieClipUses:1302 1489 1310 1331 1350 1490 1491 1492Used by:1535
Symbol 1494 BitmapUsed by:1495
Symbol 1495 GraphicUses:547 1494Used by:1497
Symbol 1496 TextUses:555Used by:1497
Symbol 1497 MovieClipUses:1495 1496Used by:1513
Symbol 1498 BitmapUsed by:1499
Symbol 1499 GraphicUses:1498Used by:1512
Symbol 1500 BitmapUsed by:1501 1503 1505 1507 1509 1511
Symbol 1501 GraphicUses:1500Used by:1512
Symbol 1502 BitmapUsed by:1503 1505 1507 1509 1511
Symbol 1503 GraphicUses:1500 1502Used by:1512
Symbol 1504 BitmapUsed by:1505 1507 1509 1511
Symbol 1505 GraphicUses:1504 1500 1502Used by:1512
Symbol 1506 BitmapUsed by:1507 1509 1511
Symbol 1507 GraphicUses:1506 1504 1500 1502Used by:1512
Symbol 1508 BitmapUsed by:1509 1511
Symbol 1509 GraphicUses:1508 1506 1504 1500 1502Used by:1512
Symbol 1510 BitmapUsed by:1511
Symbol 1511 GraphicUses:1510 1508 1506 1504 1500 1502Used by:1512
Symbol 1512 MovieClipUses:1499 1501 1503 1505 1507 1509 1511Used by:1513 1518
Symbol 1513 MovieClipUses:1497 1512Used by:1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1514 BitmapUsed by:1515
Symbol 1515 GraphicUses:536 1514Used by:1517
Symbol 1516 TextUses:555Used by:1517
Symbol 1517 MovieClipUses:1515 1516Used by:1518
Symbol 1518 MovieClipUses:1517 1512Used by:1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1519 ShapeTweeningUsed by:1533
Symbol 1520 GraphicUses:182 1360 1361 1362 1363 1364Used by:1526
Symbol 1521 TextUses:325Used by:1526
Symbol 1522 EditableTextUses:325Used by:1526
Symbol 1523 EditableTextUses:325Used by:1526
Symbol 1524 TextUses:325Used by:1526
Symbol 1525 TextUses:325Used by:1526
Symbol 1526 MovieClipUses:1520 1521 1522 1523 1524 1525Used by:1533
Symbol 1527 GraphicUsed by:1533
Symbol 1528 BitmapUsed by:1529
Symbol 1529 GraphicUses:1528Used by:1532
Symbol 1530 BitmapUsed by:1531
Symbol 1531 GraphicUses:1530Used by:1532
Symbol 1532 ButtonUses:1529 1531Used by:1533
Symbol 1533 MovieClipUses:1519 1356 1526 1527 570 1532Used by:1534
Symbol 1534 MovieClipUses:1414 1533Used by:1535 1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1535 MovieClip [level2]Uses:588 607 639 778 831 893 944 973 994 1025 728 259 152 77 1232 1247 1252 1269 1470 1473 1274 1487 1493 1513 1518 1534 1416 1418 1421 1430 1434 1438Used by:1674
Symbol 1536 ShapeTweeningUsed by:1539
Symbol 1537 MovieClipUses:1278Used by:1539
Symbol 1538 TextUses:1284Used by:1539
Symbol 1539 MovieClipUses:1275 1536 1537 1282 1283 1538 1290Used by:1550
Symbol 1540 ShapeTweeningUsed by:1541
Symbol 1541 MovieClipUses:1540 1305 1306Used by:1545
Symbol 1542 EditableTextUses:314Used by:1545
Symbol 1543 TextUses:314Used by:1545
Symbol 1544 TextUses:314Used by:1545
Symbol 1545 MovieClipUses:1302 1541 1310 1331 1350 1542 1543 1544Used by:1550 1551
Symbol 1546 GraphicUses:1233 1234 1235Used by:1547 1548
Symbol 1547 MovieClipUses:1546 1244 213 219Used by:1549
Symbol 1548 MovieClipUses:1546Used by:1549
Symbol 1549 MovieClipUses:1547 1548Used by:1550 1551 1563 1603 1641 1648 1658 1667
Symbol 1550 MovieClip [level3]Uses:588 607 639 778 831 878 893 944 973 994 1025 728 259 152 77 1232 1247 1252 1269 1473 1470 1274 1539 1545 1513 1518 1534 1416 1418 1421 1430 1434 1438 1549Used by:1674
Symbol 1551 MovieClip [level4]Uses:588 607 639 778 831 878 893 944 973 994 1025 728 259 152 77 1232 1247 1252 1269 1473 1470 1274 1487 1545 1513 1518 1534 1416 1418 1421 1430 1434 1438 1549Used by:1674
Symbol 1552 ShapeTweeningUsed by:1554
Symbol 1553 TextUses:1284Used by:1554
Symbol 1554 MovieClipUses:1275 1552 1279 1282 1283 1553 1290Used by:1563
Symbol 1555 ShapeTweeningUsed by:1556
Symbol 1556 MovieClipUses:1555 1305 1306Used by:1560
Symbol 1557 EditableTextUses:314Used by:1560
Symbol 1558 TextUses:314Used by:1560
Symbol 1559 TextUses:314Used by:1560
Symbol 1560 MovieClipUses:1302 1556 1310 1331 1350 1557 1558 1559Used by:1563
Symbol 1561 GraphicUsed by:1562
Symbol 1562 MovieClipUses:1561Used by:1563 1603 1641 1648 1658 1667
Symbol 1563 MovieClip [level5]Uses:588 607 639 778 831 878 893 944 973 994 1025 728 259 152 77 1232 1247 1252 1269 1473 1470 1274 1554 1560 1513 1518 1534 1416 1562 1418 1421 1430 1434 1438 1549Used by:1674
Symbol 1564 BitmapUsed by:1565
Symbol 1565 GraphicUses:1564Used by:1596
Symbol 1566 BitmapUsed by:1567
Symbol 1567 GraphicUses:1566Used by:1596
Symbol 1568 BitmapUsed by:1569
Symbol 1569 GraphicUses:1568Used by:1596
Symbol 1570 BitmapUsed by:1571
Symbol 1571 GraphicUses:1570Used by:1596
Symbol 1572 BitmapUsed by:1573
Symbol 1573 GraphicUses:1572Used by:1596
Symbol 1574 BitmapUsed by:1575
Symbol 1575 GraphicUses:1574Used by:1596
Symbol 1576 BitmapUsed by:1577
Symbol 1577 GraphicUses:1576Used by:1596
Symbol 1578 BitmapUsed by:1579
Symbol 1579 GraphicUses:1578Used by:1596
Symbol 1580 BitmapUsed by:1581
Symbol 1581 GraphicUses:1580Used by:1596
Symbol 1582 BitmapUsed by:1583
Symbol 1583 GraphicUses:1582Used by:1596
Symbol 1584 BitmapUsed by:1585
Symbol 1585 GraphicUses:1584Used by:1596
Symbol 1586 BitmapUsed by:1587
Symbol 1587 GraphicUses:1586Used by:1596
Symbol 1588 BitmapUsed by:1589
Symbol 1589 GraphicUses:1588Used by:1596
Symbol 1590 BitmapUsed by:1591
Symbol 1591 GraphicUses:1590Used by:1596
Symbol 1592 BitmapUsed by:1593
Symbol 1593 GraphicUses:1592Used by:1596
Symbol 1594 BitmapUsed by:1595
Symbol 1595 GraphicUses:1594Used by:1596
Symbol 1596 MovieClipUses:1565 1567 1569 1571 1573 1575 1577 1579 1581 1583 1585 1587 1589 1591 1593 1595Used by:1603 1641 1648 1658 1667
Symbol 1597 ShapeTweeningUsed by:1598
Symbol 1598 MovieClipUses:1597 1305 1306Used by:1602
Symbol 1599 EditableTextUses:314Used by:1602
Symbol 1600 TextUses:314Used by:1602
Symbol 1601 TextUses:314Used by:1602 1640
Symbol 1602 MovieClipUses:1302 1598 1310 1331 1350 1599 1600 1601Used by:1603
Symbol 1603 MovieClip [level6]Uses:588 607 639 778 831 878 893 944 994 1025 973 728 259 152 77 1232 1596 1247 1252 1269 1473 1470 1274 1291 1602 1513 1518 1534 1416 1562 1418 1421 1430 1434 1438 1549Used by:1674
Symbol 1604 GraphicUses:630Used by:1605
Symbol 1605 MovieClipUses:1604Used by:1613 1616
Symbol 1606 GraphicUses:630Used by:1607
Symbol 1607 MovieClipUses:1606Used by:1613 1625
Symbol 1608 MovieClipUses:596Used by:1613
Symbol 1609 GraphicUsed by:1612
Symbol 1610 ShapeTweeningUsed by:1612
Symbol 1611 GraphicUsed by:1612 1615
Symbol 1612 MovieClipUses:1609 1610 1611Used by:1613
Symbol 1613 MovieClipUses:1605 1607 1608 1612Used by:1616 1625
Symbol 1614 ShapeTweeningUsed by:1615
Symbol 1615 MovieClipUses:1614 1611Used by:1616
Symbol 1616 MovieClipUses:1613 175 1605 1615Used by:1641 1648 1658 1667
Symbol 1617 ShapeTweeningUsed by:1620
Symbol 1618 ShapeTweeningUsed by:1620
Symbol 1619 GraphicUsed by:1620
Symbol 1620 MovieClipUses:1617 1618 1619Used by:1625
Symbol 1621 GraphicUses:636Used by:1625
Symbol 1622 ShapeTweeningUsed by:1624
Symbol 1623 GraphicUsed by:1624
Symbol 1624 MovieClipUses:1622 1623Used by:1625
Symbol 1625 MovieClipUses:1613 175 1607 1620 1621 1624Used by:1641 1648 1658 1667
Symbol 1626 GraphicUsed by:1632
Symbol 1627 ShapeTweeningUsed by:1630
Symbol 1628 ShapeTweeningUsed by:1630
Symbol 1629 GraphicUsed by:1630
Symbol 1630 MovieClipUses:1627 1628 1629Used by:1632
Symbol 1631 GraphicUsed by:1632
Symbol 1632 MovieClipUses:1626 1630 1631Used by:1641 1648 1658 1667
Symbol 1633 ShapeTweeningUsed by:1635
Symbol 1634 TextUses:1284Used by:1635
Symbol 1635 MovieClipUses:1275 1633 1279 1282 1283 1634 1290Used by:1641
Symbol 1636 ShapeTweeningUsed by:1637
Symbol 1637 MovieClipUses:1636 1305 1306Used by:1640
Symbol 1638 EditableTextUses:314Used by:1640
Symbol 1639 TextUses:314Used by:1640
Symbol 1640 MovieClipUses:1302 1637 1310 1331 1350 1638 1639 1601Used by:1641
Symbol 1641 MovieClip [level7]Uses:588 1616 607 1625 1632 778 831 878 893 944 994 1025 973 728 259 152 77 1232 1596 1247 1252 1269 1473 1470 1274 1635 1640 1549 1534 1416 1562 1418 1421 1430 1434 1438 1513 1518Used by:1674
Symbol 1642 ShapeTweeningUsed by:1643
Symbol 1643 MovieClipUses:1642 1305 1306Used by:1647
Symbol 1644 EditableTextUses:314Used by:1647
Symbol 1645 TextUses:314Used by:1647
Symbol 1646 TextUses:314Used by:1647
Symbol 1647 MovieClipUses:1302 1643 1310 1331 1350 1644 1645 1646Used by:1648
Symbol 1648 MovieClip [level8]Uses:588 1616 607 1625 1632 778 831 878 893 944 994 1025 973 728 259 152 77 1232 1596 1247 1252 1269 1473 1470 1274 1291 1647 1513 1518 1534 1416 1562 1418 1421 1430 1434 1438 1549Used by:1674
Symbol 1649 ShapeTweeningUsed by:1650
Symbol 1650 MovieClipUses:1649 1305 1306Used by:1657
Symbol 1651 GraphicUsed by:1653
Symbol 1652 GraphicUsed by:1653
Symbol 1653 MovieClipUses:1651 1652Used by:1657
Symbol 1654 EditableTextUses:314Used by:1657
Symbol 1655 TextUses:314Used by:1657 1666
Symbol 1656 TextUses:314Used by:1657
Symbol 1657 MovieClipUses:1302 1650 1653 1331 1350 1654 1655 1656Used by:1658
Symbol 1658 MovieClip [level9]Uses:588 1616 1625 607 1632 778 831 878 893 944 973 994 1025 728 259 152 77 1232 1596 1247 1252 1269 1473 1470 1274 1291 1657 1513 1518 1534 1416 1562 1418 1421 1430 1434 1438 1549Used by:1674
Symbol 1659 ShapeTweeningUsed by:1660
Symbol 1660 MovieClipUses:1659 1305 1306Used by:1666
Symbol 1661 GraphicUsed by:1663
Symbol 1662 GraphicUsed by:1663
Symbol 1663 MovieClipUses:1661 1662Used by:1666
Symbol 1664 EditableTextUses:314Used by:1666
Symbol 1665 TextUses:314Used by:1666
Symbol 1666 MovieClipUses:1302 1660 1663 1331 1350 1664 1655 1665Used by:1667
Symbol 1667 MovieClip [level10]Uses:588 1616 1625 607 1632 778 831 878 893 944 973 994 1025 728 259 152 77 1232 1596 1247 1252 1269 1473 1470 1274 1291 1666 1513 1518 1534 1416 1562 1418 1421 1430 1434 1438 1549Used by:1674
Symbol 1668 BitmapUsed by:1669
Symbol 1669 GraphicUses:1668Used by:1673
Symbol 1670 ButtonUses:567 569Used by:1673
Symbol 1671 GraphicUsed by:1673
Symbol 1672 TextUses:325Used by:1673
Symbol 1673 MovieClipUses:1669 1670 327 1671 1672Used by:1674
Symbol 1674 MovieClipUses:269 271 274 277 278 283 284 287 305 311 330 381 386 571 1439 1466 1535 1550 1551 1563 1603 1641 1648 1658 1667 1673Used by:Timeline
Symbol 1675 Sound [mainmenu.mp3]Used by:Timeline
Symbol 1676 Sound [gamebgsnd.mp3]Used by:Timeline
Symbol 1677 Sound [calendersnd.mp3]Used by:Timeline
Symbol 1678 Sound [choco_done.mp3]Used by:Timeline
Symbol 1679 Sound [combo1.mp3]Used by:Timeline
Symbol 1680 Sound [combo2.mp3]Used by:Timeline
Symbol 1681 Sound [combo3.mp3]Used by:Timeline
Symbol 1682 Sound [expert_score.mp3]Used by:Timeline
Symbol 1683 Sound [hotchoco_done.mp3]Used by:Timeline
Symbol 1684 Sound [phonering.mp3]Used by:Timeline
Symbol 1685 Sound [target_score.mp3]Used by:Timeline
Symbol 1686 Sound [customer_happy.mp3]Used by:Timeline
Symbol 1687 Sound [level_complete.mp3]Used by:Timeline
Symbol 1688 Sound [level_failed.mp3]Used by:Timeline
Symbol 1689 Sound [money1.mp3]Used by:Timeline
Symbol 1690 Sound [money2.mp3]Used by:Timeline
Symbol 1691 Sound [money3.mp3]Used by:Timeline
Symbol 1692 Sound [choco_producing.mp3]Used by:Timeline

Instance Names

"mc_loading"Frame 1Symbol 268 MovieClip
"main"Frame 10Symbol 1674 MovieClip
"customer"Symbol 77 MovieClip [oldlady] Frame 1Symbol 5 MovieClip
"customer"Symbol 77 MovieClip [oldlady] Frame 2Symbol 46 MovieClip
"customer"Symbol 77 MovieClip [oldlady] Frame 3Symbol 55 MovieClip
"customer"Symbol 77 MovieClip [oldlady] Frame 4Symbol 68 MovieClip
"customer"Symbol 77 MovieClip [oldlady] Frame 5Symbol 71 MovieClip
"customer"Symbol 77 MovieClip [oldlady] Frame 6Symbol 76 MovieClip
"customer"Symbol 152 MovieClip [younglady] Frame 1Symbol 83 MovieClip
"customer"Symbol 152 MovieClip [younglady] Frame 2Symbol 128 MovieClip
"customer"Symbol 152 MovieClip [younglady] Frame 3Symbol 135 MovieClip
"customer"Symbol 152 MovieClip [younglady] Frame 4Symbol 144 MovieClip
"customer"Symbol 152 MovieClip [younglady] Frame 5Symbol 147 MovieClip
"customer"Symbol 152 MovieClip [younglady] Frame 6Symbol 151 MovieClip
"box"Symbol 179 MovieClip Frame 1Symbol 159 MovieClip
"type_rabbit"Symbol 220 MovieClip Frame 4Symbol 213 MovieClip
"type_fish"Symbol 220 MovieClip Frame 5Symbol 219 MovieClip
"chocobox"Symbol 221 MovieClip Frame 74Symbol 220 MovieClip
"highlight_small_coin"Symbol 238 MovieClip Frame 2Symbol 237 MovieClip
"big_money"Symbol 254 MovieClip Frame 1Symbol 246 MovieClip
"small_money"Symbol 254 MovieClip Frame 2Symbol 249 MovieClip
"highlight"Symbol 259 MovieClip [orderbook] Frame 1Symbol 157 MovieClip
"timelimit"Symbol 259 MovieClip [orderbook] Frame 1Symbol 169 MovieClip
"pointer"Symbol 259 MovieClip [orderbook] Frame 1Symbol 175 MovieClip
"green_highlight"Symbol 259 MovieClip [orderbook] Frame 2Symbol 178 MovieClip
"temp_box"Symbol 259 MovieClip [orderbook] Frame 2Symbol 179 MovieClip
"book_mc"Symbol 259 MovieClip [orderbook] Frame 2Symbol 221 MovieClip
"highlight"Symbol 259 MovieClip [orderbook] Frame 3Symbol 227 MovieClip
"highlight_small"Symbol 259 MovieClip [orderbook] Frame 3Symbol 233 MovieClip
"highlight_small_coin"Symbol 259 MovieClip [orderbook] Frame 3Symbol 238 MovieClip
"money_mc"Symbol 259 MovieClip [orderbook] Frame 3Symbol 254 MovieClip
"heartinClip"Symbol 259 MovieClip [orderbook] Frame 3Symbol 258 MovieClip
"load_txt"Symbol 268 MovieClip Frame 1Symbol 267 EditableText
"version_info"Symbol 301 MovieClip Frame 1Symbol 300 EditableText
"btn_play"Symbol 330 MovieClip Frame 1Symbol 319 MovieClip
"btn_moregames"Symbol 330 MovieClip Frame 1Symbol 324 MovieClip
"btn_playpremium"Symbol 330 MovieClip Frame 1Symbol 327 Button
"ani_clip"Symbol 412 MovieClip Frame 1Symbol 410 MovieClip
"ani_clip"Symbol 422 MovieClip Frame 1Symbol 421 MovieClip
"ani_clip"Symbol 449 MovieClip Frame 1Symbol 448 MovieClip
"blink_mc"Symbol 519 MovieClip Frame 1Symbol 508 MovieClip
"hand_mc"Symbol 550 MovieClip Frame 1Symbol 519 MovieClip
"score"Symbol 550 MovieClip Frame 3Symbol 525 EditableText
"clip"Symbol 550 MovieClip Frame 3Symbol 538 MovieClip
"clip"Symbol 550 MovieClip Frame 4Symbol 549 MovieClip
"level1"Symbol 552 MovieClip Frame 1Symbol 550 MovieClip
"level2"Symbol 552 MovieClip Frame 1Symbol 550 MovieClip
"level3"Symbol 552 MovieClip Frame 1Symbol 550 MovieClip
"level4"Symbol 552 MovieClip Frame 1Symbol 550 MovieClip
"level5"Symbol 552 MovieClip Frame 1Symbol 550 MovieClip
"level6"Symbol 552 MovieClip Frame 1Symbol 550 MovieClip
"level7"Symbol 552 MovieClip Frame 1Symbol 550 MovieClip
"level8"Symbol 552 MovieClip Frame 1Symbol 550 MovieClip
"level9"Symbol 552 MovieClip Frame 1Symbol 550 MovieClip
"level10"Symbol 552 MovieClip Frame 1Symbol 550 MovieClip
"score"Symbol 558 MovieClip Frame 1Symbol 557 EditableText
"seasonMc"Symbol 571 MovieClip Frame 1Symbol 456 MovieClip
"btn_left"Symbol 571 MovieClip Frame 1Symbol 461 Button
"btn_right"Symbol 571 MovieClip Frame 1Symbol 461 Button
"monthMc"Symbol 571 MovieClip Frame 1Symbol 552 MovieClip
"totalscoreMc"Symbol 571 MovieClip Frame 1Symbol 558 MovieClip
"btn_play"Symbol 571 MovieClip Frame 1Symbol 565 Button
"btn_menu"Symbol 571 MovieClip Frame 1Symbol 570 Button
"blink"Symbol 588 MovieClip Frame 2Symbol 582 MovieClip
"dusbin_intro"Symbol 607 MovieClip Frame 1Symbol 598 MovieClip
"pointer"Symbol 607 MovieClip Frame 1Symbol 175 MovieClip
"intro"Symbol 629 MovieClip Frame 1Symbol 619 MovieClip
"blink"Symbol 629 MovieClip Frame 2Symbol 614 MovieClip
"single_machine"Symbol 639 MovieClip Frame 1Symbol 629 MovieClip
"pointer"Symbol 639 MovieClip Frame 1Symbol 175 MovieClip
"double_machine"Symbol 639 MovieClip Frame 2Symbol 638 MovieClip
"mc"Symbol 728 MovieClip Frame 1Symbol 679 MovieClip
"mc"Symbol 728 MovieClip Frame 2Symbol 701 MovieClip
"mc"Symbol 728 MovieClip Frame 3Symbol 727 MovieClip
"intro"Symbol 800 MovieClip Frame 1Symbol 790 MovieClip
"blink"Symbol 800 MovieClip Frame 2Symbol 785 MovieClip
"intro"Symbol 830 MovieClip Frame 1Symbol 819 MovieClip
"machine1"Symbol 831 MovieClip Frame 1Symbol 800 MovieClip
"pointer"Symbol 831 MovieClip Frame 1Symbol 175 MovieClip
"machine2"Symbol 831 MovieClip Frame 2Symbol 830 MovieClip
"mc"Symbol 878 MovieClip Frame 1Symbol 836 MovieClip
"mc"Symbol 878 MovieClip Frame 2Symbol 841 MovieClip
"mc"Symbol 878 MovieClip Frame 3Symbol 850 MovieClip
"mc"Symbol 878 MovieClip Frame 4Symbol 859 MovieClip
"mc"Symbol 878 MovieClip Frame 5Symbol 868 MovieClip
"mc"Symbol 878 MovieClip Frame 6Symbol 877 MovieClip
"intro"Symbol 893 MovieClip Frame 1Symbol 884 MovieClip
"pointer"Symbol 893 MovieClip Frame 1Symbol 175 MovieClip
"smoke"Symbol 944 MovieClip Frame 125Symbol 943 MovieClip
"ring"Symbol 973 MovieClip Frame 2Symbol 965 MovieClip
"type_triangle"Symbol 1069 MovieClip Frame 1Symbol 1056 MovieClip
"type_box"Symbol 1069 MovieClip Frame 2Symbol 1058 MovieClip
"type_round"Symbol 1069 MovieClip Frame 3Symbol 1060 MovieClip
"type_rabbit"Symbol 1069 MovieClip Frame 4Symbol 213 MovieClip
"type_fish"Symbol 1069 MovieClip Frame 5Symbol 219 MovieClip
"chocobox1"Symbol 1087 MovieClip Frame 3Symbol 1069 MovieClip
"chocobox2"Symbol 1087 MovieClip Frame 5Symbol 1069 MovieClip
"smoke"Symbol 1092 MovieClip Frame 1Symbol 943 MovieClip
"chocobox1"Symbol 1157 MovieClip Frame 1Symbol 1069 MovieClip
"chocobox1"Symbol 1164 MovieClip Frame 1Symbol 1069 MovieClip
"chocobox2"Symbol 1164 MovieClip Frame 1Symbol 1069 MovieClip
"chocobox1"Symbol 1165 MovieClip Frame 3Symbol 1069 MovieClip
"chocobox1"Symbol 1165 MovieClip Frame 7Symbol 1069 MovieClip
"chocobox2"Symbol 1165 MovieClip Frame 7Symbol 1069 MovieClip
"chocobox2"Symbol 1165 MovieClip Frame 8Symbol 1069 MovieClip
"jumpLady"Symbol 1165 MovieClip Frame 9Symbol 1150 MovieClip
"jumpLady"Symbol 1165 MovieClip Frame 10Symbol 1157 MovieClip
"jumpLady"Symbol 1165 MovieClip Frame 11Symbol 1164 MovieClip
"chocobox1"Symbol 1227 MovieClip Frame 3Symbol 1069 MovieClip
"chocobox2"Symbol 1227 MovieClip Frame 7Symbol 1069 MovieClip
"lefttoright"Symbol 1231 MovieClip Frame 1Symbol 1179 MovieClip
"chocobox1"Symbol 1231 MovieClip Frame 3Symbol 1069 MovieClip
"chocobox2"Symbol 1231 MovieClip Frame 7Symbol 1069 MovieClip
"girlwalk"Symbol 1232 MovieClip Frame 1Symbol 1087 MovieClip
"pointer"Symbol 1232 MovieClip Frame 1Symbol 1089 MovieClip
"coffeeicon"Symbol 1232 MovieClip Frame 1Symbol 1092 MovieClip
"girlwalk"Symbol 1232 MovieClip Frame 2Symbol 1165 MovieClip
"girlwalk"Symbol 1232 MovieClip Frame 3Symbol 1227 MovieClip
"girlwalk"Symbol 1232 MovieClip Frame 4Symbol 1231 MovieClip
"type_round"Symbol 1245 MovieClip Frame 5Symbol 1237 MovieClip
"type_box"Symbol 1245 MovieClip Frame 5Symbol 1238 MovieClip
"type_triangle"Symbol 1245 MovieClip Frame 5Symbol 1239 MovieClip
"btn_close"Symbol 1245 MovieClip Frame 5Symbol 1244 Button
"mc"Symbol 1247 MovieClip Frame 1Symbol 1245 MovieClip
"mc"Symbol 1247 MovieClip Frame 2Symbol 1246 MovieClip
"combo"Symbol 1269 MovieClip Frame 1Symbol 1256 MovieClip
"combo"Symbol 1269 MovieClip Frame 3Symbol 1260 MovieClip
"combo"Symbol 1269 MovieClip Frame 4Symbol 1264 MovieClip
"combo"Symbol 1269 MovieClip Frame 5Symbol 1268 MovieClip
"popup_txt"Symbol 1291 MovieClip Frame 7Symbol 1285 EditableText
"btn_ok"Symbol 1291 MovieClip Frame 7Symbol 1290 MovieClip
"info"Symbol 1299 MovieClip Frame 1Symbol 1294 EditableText
"info"Symbol 1299 MovieClip Frame 2Symbol 1296 EditableText
"info"Symbol 1299 MovieClip Frame 3Symbol 1298 EditableText
"loading"Symbol 1354 MovieClip Frame 1Symbol 1307 MovieClip
"target"Symbol 1354 MovieClip Frame 1Symbol 1331 MovieClip
"expert"Symbol 1354 MovieClip Frame 1Symbol 1350 MovieClip
"score_txt"Symbol 1354 MovieClip Frame 1Symbol 1351 EditableText
"mc"Symbol 1404 MovieClip Frame 1Symbol 1398 MovieClip
"mc"Symbol 1404 MovieClip Frame 2Symbol 1403 MovieClip
"money_earned"Symbol 1406 MovieClip Frame 1Symbol 1370 EditableText
"tips"Symbol 1406 MovieClip Frame 1Symbol 1371 EditableText
"result"Symbol 1406 MovieClip Frame 1Symbol 1404 MovieClip
"total"Symbol 1406 MovieClip Frame 1Symbol 1405 EditableText
"btn_continue"Symbol 1414 MovieClip Frame 7Symbol 1412 Button
"star_anim"Symbol 1414 MovieClip Frame 7Symbol 1413 MovieClip
"coin_rotate"Symbol 1427 MovieClip Frame 1Symbol 198 MovieClip
"coin_rotate"Symbol 1428 MovieClip Frame 1Symbol 198 MovieClip
"coin_rotate2"Symbol 1428 MovieClip Frame 6Symbol 198 MovieClip
"coin_rotate"Symbol 1428 MovieClip Frame 18Symbol 198 MovieClip
"coin_rotate"Symbol 1429 MovieClip Frame 1Symbol 198 MovieClip
"coin_rotate2"Symbol 1429 MovieClip Frame 6Symbol 198 MovieClip
"coin_rotate3"Symbol 1429 MovieClip Frame 10Symbol 198 MovieClip
"coin_rotate4"Symbol 1429 MovieClip Frame 13Symbol 198 MovieClip
"coin"Symbol 1430 MovieClip Frame 1Symbol 1427 MovieClip
"coin"Symbol 1430 MovieClip Frame 2Symbol 1428 MovieClip
"coin"Symbol 1430 MovieClip Frame 3Symbol 1429 MovieClip
"coin_rotate"Symbol 1431 MovieClip Frame 1Symbol 198 MovieClip
"coin_rotate"Symbol 1432 MovieClip Frame 1Symbol 198 MovieClip
"coin_rotate2"Symbol 1432 MovieClip Frame 6Symbol 198 MovieClip
"coin_rotate"Symbol 1433 MovieClip Frame 1Symbol 198 MovieClip
"coin_rotate2"Symbol 1433 MovieClip Frame 6Symbol 198 MovieClip
"coin_rotate3"Symbol 1433 MovieClip Frame 10Symbol 198 MovieClip
"coin_rotate4"Symbol 1433 MovieClip Frame 13Symbol 198 MovieClip
"coin"Symbol 1434 MovieClip Frame 1Symbol 1431 MovieClip
"coin"Symbol 1434 MovieClip Frame 2Symbol 1432 MovieClip
"coin"Symbol 1434 MovieClip Frame 3Symbol 1433 MovieClip
"coin_rotate"Symbol 1435 MovieClip Frame 1Symbol 198 MovieClip
"coin_rotate"Symbol 1436 MovieClip Frame 1Symbol 198 MovieClip
"coin_rotate2"Symbol 1436 MovieClip Frame 6Symbol 198 MovieClip
"coin_rotate"Symbol 1437 MovieClip Frame 1Symbol 198 MovieClip
"coin_rotate2"Symbol 1437 MovieClip Frame 6Symbol 198 MovieClip
"coin_rotate3"Symbol 1437 MovieClip Frame 10Symbol 198 MovieClip
"coin_rotate4"Symbol 1437 MovieClip Frame 13Symbol 198 MovieClip
"coin_rotate"Symbol 1437 MovieClip Frame 26Symbol 198 MovieClip
"coin"Symbol 1438 MovieClip Frame 1Symbol 1435 MovieClip
"coin"Symbol 1438 MovieClip Frame 2Symbol 1436 MovieClip
"coin"Symbol 1438 MovieClip Frame 3Symbol 1437 MovieClip
"bg"Symbol 1439 MovieClip [level1] Frame 1Symbol 588 MovieClip
"dusbin"Symbol 1439 MovieClip [level1] Frame 1Symbol 607 MovieClip
"choco_machines"Symbol 1439 MovieClip [level1] Frame 1Symbol 639 MovieClip
"chocolateClip"Symbol 1439 MovieClip [level1] Frame 1Symbol 728 MovieClip
"timerClip"Symbol 1439 MovieClip [level1] Frame 1Symbol 778 MovieClip
"special_choco_machines"Symbol 1439 MovieClip [level1] Frame 1Symbol 831 MovieClip
"specialcho_container"Symbol 1439 MovieClip [level1] Frame 1Symbol 878 MovieClip
"coffee_machine"Symbol 1439 MovieClip [level1] Frame 1Symbol 893 MovieClip
"coffeeClip"Symbol 1439 MovieClip [level1] Frame 1Symbol 944 MovieClip
"phone_mc"Symbol 1439 MovieClip [level1] Frame 1Symbol 973 MovieClip
"shopopenClip"Symbol 1439 MovieClip [level1] Frame 1Symbol 994 MovieClip
"shopclosedClip"Symbol 1439 MovieClip [level1] Frame 1Symbol 1025 MovieClip
"salesGirl"Symbol 1439 MovieClip [level1] Frame 1Symbol 1232 MovieClip
"chocolate_container"Symbol 1439 MovieClip [level1] Frame 1Symbol 1247 MovieClip
"selectClip"Symbol 1439 MovieClip [level1] Frame 1Symbol 1252 MovieClip
"comboClip"Symbol 1439 MovieClip [level1] Frame 1Symbol 1269 MovieClip
"btn_pause"Symbol 1439 MovieClip [level1] Frame 1Symbol 1274 Button
"popup_mc"Symbol 1439 MovieClip [level1] Frame 1Symbol 1291 MovieClip
"infoClip"Symbol 1439 MovieClip [level1] Frame 1Symbol 1299 MovieClip
"scoreClip"Symbol 1439 MovieClip [level1] Frame 1Symbol 1354 MovieClip
"reportMc"Symbol 1439 MovieClip [level1] Frame 1Symbol 1414 MovieClip
"chomac_indicate"Symbol 1439 MovieClip [level1] Frame 1Symbol 1416 MovieClip
"dusbin_indicate"Symbol 1439 MovieClip [level1] Frame 1Symbol 1416 MovieClip
"coffee_indicate"Symbol 1439 MovieClip [level1] Frame 1Symbol 1416 MovieClip
"splmn_indicate"Symbol 1439 MovieClip [level1] Frame 1Symbol 1416 MovieClip
"table3"Symbol 1439 MovieClip [level1] Frame 1Symbol 1418 MovieClip
"table2"Symbol 1439 MovieClip [level1] Frame 1Symbol 1418 MovieClip
"table1"Symbol 1439 MovieClip [level1] Frame 1Symbol 1418 MovieClip
"cancel_mc"Symbol 1439 MovieClip [level1] Frame 1Symbol 1421 MovieClip
"coin_Anim3"Symbol 1439 MovieClip [level1] Frame 1Symbol 1430 MovieClip
"coin_Anim2"Symbol 1439 MovieClip [level1] Frame 1Symbol 1434 MovieClip
"coin_Anim1"Symbol 1439 MovieClip [level1] Frame 1Symbol 1438 MovieClip
"pause_timer"Symbol 1466 MovieClip Frame 1Symbol 1444 MovieClip
"btn_continue"Symbol 1466 MovieClip Frame 8Symbol 1460 MovieClip
"btn_premium"Symbol 1466 MovieClip Frame 8Symbol 1461 Button
"btn_restart"Symbol 1466 MovieClip Frame 8Symbol 1463 MovieClip
"btn_mainmenu"Symbol 1466 MovieClip Frame 8Symbol 1465 MovieClip
"btn_close"Symbol 1468 MovieClip Frame 5Symbol 1244 Button
"chocobox1"Symbol 1468 MovieClip Frame 5Symbol 1069 MovieClip
"chocobox2"Symbol 1468 MovieClip Frame 5Symbol 1069 MovieClip
"mc"Symbol 1470 MovieClip Frame 1Symbol 1468 MovieClip
"score"Symbol 1472 MovieClip Frame 1Symbol 1471 EditableText
"disp"Symbol 1473 MovieClip Frame 1Symbol 1472 MovieClip
"btn_ok"Symbol 1487 MovieClip Frame 5Symbol 1482 Button
"loading"Symbol 1493 MovieClip Frame 1Symbol 1489 MovieClip
"target"Symbol 1493 MovieClip Frame 1Symbol 1331 MovieClip
"expert"Symbol 1493 MovieClip Frame 1Symbol 1350 MovieClip
"score_txt"Symbol 1493 MovieClip Frame 1Symbol 1490 EditableText
"goal"Symbol 1526 MovieClip Frame 1Symbol 1522 EditableText
"yougot"Symbol 1526 MovieClip Frame 1Symbol 1523 EditableText
"btn_menu"Symbol 1533 MovieClip Frame 7Symbol 570 Button
"btn_retry"Symbol 1533 MovieClip Frame 7Symbol 1532 Button
"mc"Symbol 1534 MovieClip Frame 1Symbol 1414 MovieClip
"mc"Symbol 1534 MovieClip Frame 2Symbol 1533 MovieClip
"bg"Symbol 1535 MovieClip [level2] Frame 1Symbol 588 MovieClip
"dusbin"Symbol 1535 MovieClip [level2] Frame 1Symbol 607 MovieClip
"choco_machines"Symbol 1535 MovieClip [level2] Frame 1Symbol 639 MovieClip
"timerClip"Symbol 1535 MovieClip [level2] Frame 1Symbol 778 MovieClip
"special_choco_machines"Symbol 1535 MovieClip [level2] Frame 1Symbol 831 MovieClip
"coffee_machine"Symbol 1535 MovieClip [level2] Frame 1Symbol 893 MovieClip
"coffeeClip"Symbol 1535 MovieClip [level2] Frame 1Symbol 944 MovieClip
"phone_mc"Symbol 1535 MovieClip [level2] Frame 1Symbol 973 MovieClip
"shopopenClip"Symbol 1535 MovieClip [level2] Frame 1Symbol 994 MovieClip
"shopclosedClip"Symbol 1535 MovieClip [level2] Frame 1Symbol 1025 MovieClip
"chocolateClip"Symbol 1535 MovieClip [level2] Frame 1Symbol 728 MovieClip
"salesGirl"Symbol 1535 MovieClip [level2] Frame 1Symbol 1232 MovieClip
"chocolate_container"Symbol 1535 MovieClip [level2] Frame 1Symbol 1247 MovieClip
"selectClip"Symbol 1535 MovieClip [level2] Frame 1Symbol 1252 MovieClip
"comboClip"Symbol 1535 MovieClip [level2] Frame 1Symbol 1269 MovieClip
"dusbinContainer"Symbol 1535 MovieClip [level2] Frame 1Symbol 1470 MovieClip
"curScoreClip"Symbol 1535 MovieClip [level2] Frame 1Symbol 1473 MovieClip
"btn_pause"Symbol 1535 MovieClip [level2] Frame 1Symbol 1274 Button
"popup_mc"Symbol 1535 MovieClip [level2] Frame 1Symbol 1487 MovieClip
"scoreClip"Symbol 1535 MovieClip [level2] Frame 1Symbol 1493 MovieClip
"scoreIndicateClip"Symbol 1535 MovieClip [level2] Frame 1Symbol 1513 MovieClip
"expertScoreClip"Symbol 1535 MovieClip [level2] Frame 1Symbol 1518 MovieClip
"reportMc"Symbol 1535 MovieClip [level2] Frame 1Symbol 1534 MovieClip
"chomac_indicate"Symbol 1535 MovieClip [level2] Frame 1Symbol 1416 MovieClip
"dusbin_indicate"Symbol 1535 MovieClip [level2] Frame 1Symbol 1416 MovieClip
"coffee_indicate"Symbol 1535 MovieClip [level2] Frame 1Symbol 1416 MovieClip
"splmn_indicate"Symbol 1535 MovieClip [level2] Frame 1Symbol 1416 MovieClip
"table3"Symbol 1535 MovieClip [level2] Frame 1Symbol 1418 MovieClip
"table2"Symbol 1535 MovieClip [level2] Frame 1Symbol 1418 MovieClip
"table1"Symbol 1535 MovieClip [level2] Frame 1Symbol 1418 MovieClip
"cancel_mc"Symbol 1535 MovieClip [level2] Frame 1Symbol 1421 MovieClip
"coin_Anim3"Symbol 1535 MovieClip [level2] Frame 1Symbol 1430 MovieClip
"coin_Anim2"Symbol 1535 MovieClip [level2] Frame 1Symbol 1434 MovieClip
"coin_Anim1"Symbol 1535 MovieClip [level2] Frame 1Symbol 1438 MovieClip
"btn_ok"Symbol 1539 MovieClip Frame 7Symbol 1290 MovieClip
"loading"Symbol 1545 MovieClip Frame 1Symbol 1541 MovieClip
"target"Symbol 1545 MovieClip Frame 1Symbol 1331 MovieClip
"expert"Symbol 1545 MovieClip Frame 1Symbol 1350 MovieClip
"score_txt"Symbol 1545 MovieClip Frame 1Symbol 1542 EditableText
"btn_close"Symbol 1547 MovieClip Frame 5Symbol 1244 Button
"type_rabbit"Symbol 1547 MovieClip Frame 5Symbol 213 MovieClip
"type_fish"Symbol 1547 MovieClip Frame 5Symbol 219 MovieClip
"mc"Symbol 1549 MovieClip Frame 1Symbol 1547 MovieClip
"mc"Symbol 1549 MovieClip Frame 2Symbol 1548 MovieClip
"bg"Symbol 1550 MovieClip [level3] Frame 1Symbol 588 MovieClip
"dusbin"Symbol 1550 MovieClip [level3] Frame 1Symbol 607 MovieClip
"choco_machines"Symbol 1550 MovieClip [level3] Frame 1Symbol 639 MovieClip
"timerClip"Symbol 1550 MovieClip [level3] Frame 1Symbol 778 MovieClip
"special_choco_machines"Symbol 1550 MovieClip [level3] Frame 1Symbol 831 MovieClip
"specialChocolateClip"Symbol 1550 MovieClip [level3] Frame 1Symbol 878 MovieClip
"coffee_machine"Symbol 1550 MovieClip [level3] Frame 1Symbol 893 MovieClip
"coffeeClip"Symbol 1550 MovieClip [level3] Frame 1Symbol 944 MovieClip
"phone_mc"Symbol 1550 MovieClip [level3] Frame 1Symbol 973 MovieClip
"shopopenClip"Symbol 1550 MovieClip [level3] Frame 1Symbol 994 MovieClip
"shopclosedClip"Symbol 1550 MovieClip [level3] Frame 1Symbol 1025 MovieClip
"chocolateClip"Symbol 1550 MovieClip [level3] Frame 1Symbol 728 MovieClip
"salesGirl"Symbol 1550 MovieClip [level3] Frame 1Symbol 1232 MovieClip
"chocolate_container"Symbol 1550 MovieClip [level3] Frame 1Symbol 1247 MovieClip
"selectClip"Symbol 1550 MovieClip [level3] Frame 1Symbol 1252 MovieClip
"comboClip"Symbol 1550 MovieClip [level3] Frame 1Symbol 1269 MovieClip
"curScoreClip"Symbol 1550 MovieClip [level3] Frame 1Symbol 1473 MovieClip
"dusbinContainer"Symbol 1550 MovieClip [level3] Frame 1Symbol 1470 MovieClip
"btn_pause"Symbol 1550 MovieClip [level3] Frame 1Symbol 1274 Button
"popup_mc"Symbol 1550 MovieClip [level3] Frame 1Symbol 1539 MovieClip
"scoreClip"Symbol 1550 MovieClip [level3] Frame 1Symbol 1545 MovieClip
"scoreIndicateClip"Symbol 1550 MovieClip [level3] Frame 1Symbol 1513 MovieClip
"expertScoreClip"Symbol 1550 MovieClip [level3] Frame 1Symbol 1518 MovieClip
"reportMc"Symbol 1550 MovieClip [level3] Frame 1Symbol 1534 MovieClip
"chomac_indicate"Symbol 1550 MovieClip [level3] Frame 1Symbol 1416 MovieClip
"dusbin_indicate"Symbol 1550 MovieClip [level3] Frame 1Symbol 1416 MovieClip
"coffee_indicate"Symbol 1550 MovieClip [level3] Frame 1Symbol 1416 MovieClip
"splmn_indicate"Symbol 1550 MovieClip [level3] Frame 1Symbol 1416 MovieClip
"table3"Symbol 1550 MovieClip [level3] Frame 1Symbol 1418 MovieClip
"table2"Symbol 1550 MovieClip [level3] Frame 1Symbol 1418 MovieClip
"table1"Symbol 1550 MovieClip [level3] Frame 1Symbol 1418 MovieClip
"cancel_mc"Symbol 1550 MovieClip [level3] Frame 1Symbol 1421 MovieClip
"coin_Anim3"Symbol 1550 MovieClip [level3] Frame 1Symbol 1430 MovieClip
"coin_Anim2"Symbol 1550 MovieClip [level3] Frame 1Symbol 1434 MovieClip
"coin_Anim1"Symbol 1550 MovieClip [level3] Frame 1Symbol 1438 MovieClip
"special_chocolate_container"Symbol 1550 MovieClip [level3] Frame 1Symbol 1549 MovieClip
"bg"Symbol 1551 MovieClip [level4] Frame 1Symbol 588 MovieClip
"dusbin"Symbol 1551 MovieClip [level4] Frame 1Symbol 607 MovieClip
"choco_machines"Symbol 1551 MovieClip [level4] Frame 1Symbol 639 MovieClip
"timerClip"Symbol 1551 MovieClip [level4] Frame 1Symbol 778 MovieClip
"special_choco_machines"Symbol 1551 MovieClip [level4] Frame 1Symbol 831 MovieClip
"specialChocolateClip"Symbol 1551 MovieClip [level4] Frame 1Symbol 878 MovieClip
"coffee_machine"Symbol 1551 MovieClip [level4] Frame 1Symbol 893 MovieClip
"coffeeClip"Symbol 1551 MovieClip [level4] Frame 1Symbol 944 MovieClip
"phone_mc"Symbol 1551 MovieClip [level4] Frame 1Symbol 973 MovieClip
"shopopenClip"Symbol 1551 MovieClip [level4] Frame 1Symbol 994 MovieClip
"shopclosedClip"Symbol 1551 MovieClip [level4] Frame 1Symbol 1025 MovieClip
"chocolateClip"Symbol 1551 MovieClip [level4] Frame 1Symbol 728 MovieClip
"salesGirl"Symbol 1551 MovieClip [level4] Frame 1Symbol 1232 MovieClip
"chocolate_container"Symbol 1551 MovieClip [level4] Frame 1Symbol 1247 MovieClip
"selectClip"Symbol 1551 MovieClip [level4] Frame 1Symbol 1252 MovieClip
"comboClip"Symbol 1551 MovieClip [level4] Frame 1Symbol 1269 MovieClip
"curScoreClip"Symbol 1551 MovieClip [level4] Frame 1Symbol 1473 MovieClip
"dusbinContainer"Symbol 1551 MovieClip [level4] Frame 1Symbol 1470 MovieClip
"btn_pause"Symbol 1551 MovieClip [level4] Frame 1Symbol 1274 Button
"popup_mc"Symbol 1551 MovieClip [level4] Frame 1Symbol 1487 MovieClip
"scoreClip"Symbol 1551 MovieClip [level4] Frame 1Symbol 1545 MovieClip
"scoreIndicateClip"Symbol 1551 MovieClip [level4] Frame 1Symbol 1513 MovieClip
"expertScoreClip"Symbol 1551 MovieClip [level4] Frame 1Symbol 1518 MovieClip
"reportMc"Symbol 1551 MovieClip [level4] Frame 1Symbol 1534 MovieClip
"chomac_indicate"Symbol 1551 MovieClip [level4] Frame 1Symbol 1416 MovieClip
"dusbin_indicate"Symbol 1551 MovieClip [level4] Frame 1Symbol 1416 MovieClip
"coffee_indicate"Symbol 1551 MovieClip [level4] Frame 1Symbol 1416 MovieClip
"splmn_indicate"Symbol 1551 MovieClip [level4] Frame 1Symbol 1416 MovieClip
"table3"Symbol 1551 MovieClip [level4] Frame 1Symbol 1418 MovieClip
"table2"Symbol 1551 MovieClip [level4] Frame 1Symbol 1418 MovieClip
"table1"Symbol 1551 MovieClip [level4] Frame 1Symbol 1418 MovieClip
"cancel_mc"Symbol 1551 MovieClip [level4] Frame 1Symbol 1421 MovieClip
"coin_Anim3"Symbol 1551 MovieClip [level4] Frame 1Symbol 1430 MovieClip
"coin_Anim2"Symbol 1551 MovieClip [level4] Frame 1Symbol 1434 MovieClip
"coin_Anim1"Symbol 1551 MovieClip [level4] Frame 1Symbol 1438 MovieClip
"special_chocolate_container"Symbol 1551 MovieClip [level4] Frame 1Symbol 1549 MovieClip
"btn_ok"Symbol 1554 MovieClip Frame 7Symbol 1290 MovieClip
"loading"Symbol 1560 MovieClip Frame 1Symbol 1556 MovieClip
"target"Symbol 1560 MovieClip Frame 1Symbol 1331 MovieClip
"expert"Symbol 1560 MovieClip Frame 1Symbol 1350 MovieClip
"score_txt"Symbol 1560 MovieClip Frame 1Symbol 1557 EditableText
"bg"Symbol 1563 MovieClip [level5] Frame 1Symbol 588 MovieClip
"dusbin"Symbol 1563 MovieClip [level5] Frame 1Symbol 607 MovieClip
"choco_machines"Symbol 1563 MovieClip [level5] Frame 1Symbol 639 MovieClip
"timerClip"Symbol 1563 MovieClip [level5] Frame 1Symbol 778 MovieClip
"special_choco_machines"Symbol 1563 MovieClip [level5] Frame 1Symbol 831 MovieClip
"specialChocolateClip"Symbol 1563 MovieClip [level5] Frame 1Symbol 878 MovieClip
"coffee_machine"Symbol 1563 MovieClip [level5] Frame 1Symbol 893 MovieClip
"coffeeClip"Symbol 1563 MovieClip [level5] Frame 1Symbol 944 MovieClip
"phone_mc"Symbol 1563 MovieClip [level5] Frame 1Symbol 973 MovieClip
"shopopenClip"Symbol 1563 MovieClip [level5] Frame 1Symbol 994 MovieClip
"shopclosedClip"Symbol 1563 MovieClip [level5] Frame 1Symbol 1025 MovieClip
"chocolateClip"Symbol 1563 MovieClip [level5] Frame 1Symbol 728 MovieClip
"salesGirl"Symbol 1563 MovieClip [level5] Frame 1Symbol 1232 MovieClip
"chocolate_container"Symbol 1563 MovieClip [level5] Frame 1Symbol 1247 MovieClip
"selectClip"Symbol 1563 MovieClip [level5] Frame 1Symbol 1252 MovieClip
"comboClip"Symbol 1563 MovieClip [level5] Frame 1Symbol 1269 MovieClip
"curScoreClip"Symbol 1563 MovieClip [level5] Frame 1Symbol 1473 MovieClip
"dusbinContainer"Symbol 1563 MovieClip [level5] Frame 1Symbol 1470 MovieClip
"btn_pause"Symbol 1563 MovieClip [level5] Frame 1Symbol 1274 Button
"popup_mc"Symbol 1563 MovieClip [level5] Frame 1Symbol 1554 MovieClip
"scoreClip"Symbol 1563 MovieClip [level5] Frame 1Symbol 1560 MovieClip
"scoreIndicateClip"Symbol 1563 MovieClip [level5] Frame 1Symbol 1513 MovieClip
"expertScoreClip"Symbol 1563 MovieClip [level5] Frame 1Symbol 1518 MovieClip
"reportMc"Symbol 1563 MovieClip [level5] Frame 1Symbol 1534 MovieClip
"chomac_indicate"Symbol 1563 MovieClip [level5] Frame 1Symbol 1416 MovieClip
"dusbin_indicate"Symbol 1563 MovieClip [level5] Frame 1Symbol 1416 MovieClip
"coffee_indicate"Symbol 1563 MovieClip [level5] Frame 1Symbol 1416 MovieClip
"splmn_indicate"Symbol 1563 MovieClip [level5] Frame 1Symbol 1416 MovieClip
"table3"Symbol 1563 MovieClip [level5] Frame 1Symbol 1562 MovieClip
"table2"Symbol 1563 MovieClip [level5] Frame 1Symbol 1418 MovieClip
"table1"Symbol 1563 MovieClip [level5] Frame 1Symbol 1418 MovieClip
"cancel_mc"Symbol 1563 MovieClip [level5] Frame 1Symbol 1421 MovieClip
"coin_Anim3"Symbol 1563 MovieClip [level5] Frame 1Symbol 1430 MovieClip
"coin_Anim2"Symbol 1563 MovieClip [level5] Frame 1Symbol 1434 MovieClip
"coin_Anim1"Symbol 1563 MovieClip [level5] Frame 1Symbol 1438 MovieClip
"special_chocolate_container"Symbol 1563 MovieClip [level5] Frame 1Symbol 1549 MovieClip
"loading"Symbol 1602 MovieClip Frame 1Symbol 1598 MovieClip
"target"Symbol 1602 MovieClip Frame 1Symbol 1331 MovieClip
"expert"Symbol 1602 MovieClip Frame 1Symbol 1350 MovieClip
"score_txt"Symbol 1602 MovieClip Frame 1Symbol 1599 EditableText
"bg"Symbol 1603 MovieClip [level6] Frame 1Symbol 588 MovieClip
"dusbin"Symbol 1603 MovieClip [level6] Frame 1Symbol 607 MovieClip
"choco_machines"Symbol 1603 MovieClip [level6] Frame 1Symbol 639 MovieClip
"timerClip"Symbol 1603 MovieClip [level6] Frame 1Symbol 778 MovieClip
"special_choco_machines"Symbol 1603 MovieClip [level6] Frame 1Symbol 831 MovieClip
"specialChocolateClip"Symbol 1603 MovieClip [level6] Frame 1Symbol 878 MovieClip
"coffee_machine"Symbol 1603 MovieClip [level6] Frame 1Symbol 893 MovieClip
"coffeeClip"Symbol 1603 MovieClip [level6] Frame 1Symbol 944 MovieClip
"shopopenClip"Symbol 1603 MovieClip [level6] Frame 1Symbol 994 MovieClip
"shopclosedClip"Symbol 1603 MovieClip [level6] Frame 1Symbol 1025 MovieClip
"phone_mc"Symbol 1603 MovieClip [level6] Frame 1Symbol 973 MovieClip
"chocolateClip"Symbol 1603 MovieClip [level6] Frame 1Symbol 728 MovieClip
"salesGirl"Symbol 1603 MovieClip [level6] Frame 1Symbol 1232 MovieClip
"deliveryboy"Symbol 1603 MovieClip [level6] Frame 1Symbol 1596 MovieClip
"chocolate_container"Symbol 1603 MovieClip [level6] Frame 1Symbol 1247 MovieClip
"selectClip"Symbol 1603 MovieClip [level6] Frame 1Symbol 1252 MovieClip
"comboClip"Symbol 1603 MovieClip [level6] Frame 1Symbol 1269 MovieClip
"curScoreClip"Symbol 1603 MovieClip [level6] Frame 1Symbol 1473 MovieClip
"dusbinContainer"Symbol 1603 MovieClip [level6] Frame 1Symbol 1470 MovieClip
"btn_pause"Symbol 1603 MovieClip [level6] Frame 1Symbol 1274 Button
"popup_mc"Symbol 1603 MovieClip [level6] Frame 1Symbol 1291 MovieClip
"scoreClip"Symbol 1603 MovieClip [level6] Frame 1Symbol 1602 MovieClip
"scoreIndicateClip"Symbol 1603 MovieClip [level6] Frame 1Symbol 1513 MovieClip
"expertScoreClip"Symbol 1603 MovieClip [level6] Frame 1Symbol 1518 MovieClip
"reportMc"Symbol 1603 MovieClip [level6] Frame 1Symbol 1534 MovieClip
"coffee_indicate"Symbol 1603 MovieClip [level6] Frame 1Symbol 1416 MovieClip
"table3"Symbol 1603 MovieClip [level6] Frame 1Symbol 1562 MovieClip
"table2"Symbol 1603 MovieClip [level6] Frame 1Symbol 1418 MovieClip
"table1"Symbol 1603 MovieClip [level6] Frame 1Symbol 1418 MovieClip
"cancel_mc"Symbol 1603 MovieClip [level6] Frame 1Symbol 1421 MovieClip
"coin_Anim3"Symbol 1603 MovieClip [level6] Frame 1Symbol 1430 MovieClip
"coin_Anim2"Symbol 1603 MovieClip [level6] Frame 1Symbol 1434 MovieClip
"coin_Anim1"Symbol 1603 MovieClip [level6] Frame 1Symbol 1438 MovieClip
"chomac_indicate"Symbol 1603 MovieClip [level6] Frame 1Symbol 1416 MovieClip
"coin_Anim4"Symbol 1603 MovieClip [level6] Frame 1Symbol 1438 MovieClip
"phone_indicate"Symbol 1603 MovieClip [level6] Frame 1Symbol 1416 MovieClip
"table4"Symbol 1603 MovieClip [level6] Frame 1Symbol 1418 MovieClip
"dusbin_indicate"Symbol 1603 MovieClip [level6] Frame 1Symbol 1416 MovieClip
"splmn_indicate"Symbol 1603 MovieClip [level6] Frame 1Symbol 1416 MovieClip
"special_chocolate_container"Symbol 1603 MovieClip [level6] Frame 1Symbol 1549 MovieClip
"star"Symbol 1613 MovieClip Frame 1Symbol 1608 MovieClip
"shadow"Symbol 1613 MovieClip Frame 1Symbol 1612 MovieClip
"pointer"Symbol 1616 MovieClip Frame 1Symbol 175 MovieClip
"intro"Symbol 1625 MovieClip Frame 1Symbol 1613 MovieClip
"pointer"Symbol 1625 MovieClip Frame 1Symbol 175 MovieClip
"btn_ok"Symbol 1635 MovieClip Frame 7Symbol 1290 MovieClip
"loading"Symbol 1640 MovieClip Frame 1Symbol 1637 MovieClip
"target"Symbol 1640 MovieClip Frame 1Symbol 1331 MovieClip
"expert"Symbol 1640 MovieClip Frame 1Symbol 1350 MovieClip
"score_txt"Symbol 1640 MovieClip Frame 1Symbol 1638 EditableText
"bg"Symbol 1641 MovieClip [level7] Frame 1Symbol 588 MovieClip
"choco_machines"Symbol 1641 MovieClip [level7] Frame 1Symbol 1616 MovieClip
"dusbin"Symbol 1641 MovieClip [level7] Frame 1Symbol 607 MovieClip
"choco_machines2"Symbol 1641 MovieClip [level7] Frame 1Symbol 1625 MovieClip
"dummy_highlight"Symbol 1641 MovieClip [level7] Frame 1Symbol 1632 MovieClip
"timerClip"Symbol 1641 MovieClip [level7] Frame 1Symbol 778 MovieClip
"special_choco_machines"Symbol 1641 MovieClip [level7] Frame 1Symbol 831 MovieClip
"specialChocolateClip"Symbol 1641 MovieClip [level7] Frame 1Symbol 878 MovieClip
"coffee_machine"Symbol 1641 MovieClip [level7] Frame 1Symbol 893 MovieClip
"coffeeClip"Symbol 1641 MovieClip [level7] Frame 1Symbol 944 MovieClip
"shopopenClip"Symbol 1641 MovieClip [level7] Frame 1Symbol 994 MovieClip
"shopclosedClip"Symbol 1641 MovieClip [level7] Frame 1Symbol 1025 MovieClip
"phone_mc"Symbol 1641 MovieClip [level7] Frame 1Symbol 973 MovieClip
"chocolateClip2"Symbol 1641 MovieClip [level7] Frame 1Symbol 728 MovieClip
"chocolateClip"Symbol 1641 MovieClip [level7] Frame 1Symbol 728 MovieClip
"salesGirl"Symbol 1641 MovieClip [level7] Frame 1Symbol 1232 MovieClip
"deliveryboy"Symbol 1641 MovieClip [level7] Frame 1Symbol 1596 MovieClip
"chocolate_container"Symbol 1641 MovieClip [level7] Frame 1Symbol 1247 MovieClip
"selectClip"Symbol 1641 MovieClip [level7] Frame 1Symbol 1252 MovieClip
"comboClip"Symbol 1641 MovieClip [level7] Frame 1Symbol 1269 MovieClip
"curScoreClip"Symbol 1641 MovieClip [level7] Frame 1Symbol 1473 MovieClip
"dusbinContainer"Symbol 1641 MovieClip [level7] Frame 1Symbol 1470 MovieClip
"btn_pause"Symbol 1641 MovieClip [level7] Frame 1Symbol 1274 Button
"popup_mc"Symbol 1641 MovieClip [level7] Frame 1Symbol 1635 MovieClip
"scoreClip"Symbol 1641 MovieClip [level7] Frame 1Symbol 1640 MovieClip
"special_chocolate_container"Symbol 1641 MovieClip [level7] Frame 1Symbol 1549 MovieClip
"reportMc"Symbol 1641 MovieClip [level7] Frame 1Symbol 1534 MovieClip
"chomac_indicate"Symbol 1641 MovieClip [level7] Frame 1Symbol 1416 MovieClip
"chomac_indicate2"Symbol 1641 MovieClip [level7] Frame 1Symbol 1416 MovieClip
"coffee_indicate"Symbol 1641 MovieClip [level7] Frame 1Symbol 1416 MovieClip
"table3"Symbol 1641 MovieClip [level7] Frame 1Symbol 1562 MovieClip
"table2"Symbol 1641 MovieClip [level7] Frame 1Symbol 1418 MovieClip
"table1"Symbol 1641 MovieClip [level7] Frame 1Symbol 1418 MovieClip
"cancel_mc"Symbol 1641 MovieClip [level7] Frame 1Symbol 1421 MovieClip
"coin_Anim3"Symbol 1641 MovieClip [level7] Frame 1Symbol 1430 MovieClip
"coin_Anim2"Symbol 1641 MovieClip [level7] Frame 1Symbol 1434 MovieClip
"coin_Anim1"Symbol 1641 MovieClip [level7] Frame 1Symbol 1438 MovieClip
"coin_Anim4"Symbol 1641 MovieClip [level7] Frame 1Symbol 1438 MovieClip
"phone_indicate"Symbol 1641 MovieClip [level7] Frame 1Symbol 1416 MovieClip
"table4"Symbol 1641 MovieClip [level7] Frame 1Symbol 1418 MovieClip
"dusbin_indicate"Symbol 1641 MovieClip [level7] Frame 1Symbol 1416 MovieClip
"splmn_indicate"Symbol 1641 MovieClip [level7] Frame 1Symbol 1416 MovieClip
"scoreIndicateClip"Symbol 1641 MovieClip [level7] Frame 1Symbol 1513 MovieClip
"expertScoreClip"Symbol 1641 MovieClip [level7] Frame 1Symbol 1518 MovieClip
"loading"Symbol 1647 MovieClip Frame 1Symbol 1643 MovieClip
"target"Symbol 1647 MovieClip Frame 1Symbol 1331 MovieClip
"expert"Symbol 1647 MovieClip Frame 1Symbol 1350 MovieClip
"score_txt"Symbol 1647 MovieClip Frame 1Symbol 1644 EditableText
"bg"Symbol 1648 MovieClip [level8] Frame 1Symbol 588 MovieClip
"choco_machines"Symbol 1648 MovieClip [level8] Frame 1Symbol 1616 MovieClip
"dusbin"Symbol 1648 MovieClip [level8] Frame 1Symbol 607 MovieClip
"choco_machines2"Symbol 1648 MovieClip [level8] Frame 1Symbol 1625 MovieClip
"dummy_highlight"Symbol 1648 MovieClip [level8] Frame 1Symbol 1632 MovieClip
"timerClip"Symbol 1648 MovieClip [level8] Frame 1Symbol 778 MovieClip
"special_choco_machines"Symbol 1648 MovieClip [level8] Frame 1Symbol 831 MovieClip
"specialChocolateClip"Symbol 1648 MovieClip [level8] Frame 1Symbol 878 MovieClip
"coffee_machine"Symbol 1648 MovieClip [level8] Frame 1Symbol 893 MovieClip
"coffeeClip"Symbol 1648 MovieClip [level8] Frame 1Symbol 944 MovieClip
"shopopenClip"Symbol 1648 MovieClip [level8] Frame 1Symbol 994 MovieClip
"shopclosedClip"Symbol 1648 MovieClip [level8] Frame 1Symbol 1025 MovieClip
"phone_mc"Symbol 1648 MovieClip [level8] Frame 1Symbol 973 MovieClip
"chocolateClip2"Symbol 1648 MovieClip [level8] Frame 1Symbol 728 MovieClip
"chocolateClip"Symbol 1648 MovieClip [level8] Frame 1Symbol 728 MovieClip
"salesGirl"Symbol 1648 MovieClip [level8] Frame 1Symbol 1232 MovieClip
"deliveryboy"Symbol 1648 MovieClip [level8] Frame 1Symbol 1596 MovieClip
"chocolate_container"Symbol 1648 MovieClip [level8] Frame 1Symbol 1247 MovieClip
"selectClip"Symbol 1648 MovieClip [level8] Frame 1Symbol 1252 MovieClip
"comboClip"Symbol 1648 MovieClip [level8] Frame 1Symbol 1269 MovieClip
"curScoreClip"Symbol 1648 MovieClip [level8] Frame 1Symbol 1473 MovieClip
"dusbinContainer"Symbol 1648 MovieClip [level8] Frame 1Symbol 1470 MovieClip
"btn_pause"Symbol 1648 MovieClip [level8] Frame 1Symbol 1274 Button
"popup_mc"Symbol 1648 MovieClip [level8] Frame 1Symbol 1291 MovieClip
"scoreClip"Symbol 1648 MovieClip [level8] Frame 1Symbol 1647 MovieClip
"scoreIndicateClip"Symbol 1648 MovieClip [level8] Frame 1Symbol 1513 MovieClip
"expertScoreClip"Symbol 1648 MovieClip [level8] Frame 1Symbol 1518 MovieClip
"reportMc"Symbol 1648 MovieClip [level8] Frame 1Symbol 1534 MovieClip
"chomac_indicate"Symbol 1648 MovieClip [level8] Frame 1Symbol 1416 MovieClip
"chomac_indicate2"Symbol 1648 MovieClip [level8] Frame 1Symbol 1416 MovieClip
"coffee_indicate"Symbol 1648 MovieClip [level8] Frame 1Symbol 1416 MovieClip
"table3"Symbol 1648 MovieClip [level8] Frame 1Symbol 1562 MovieClip
"table2"Symbol 1648 MovieClip [level8] Frame 1Symbol 1418 MovieClip
"table1"Symbol 1648 MovieClip [level8] Frame 1Symbol 1418 MovieClip
"cancel_mc"Symbol 1648 MovieClip [level8] Frame 1Symbol 1421 MovieClip
"coin_Anim3"Symbol 1648 MovieClip [level8] Frame 1Symbol 1430 MovieClip
"coin_Anim2"Symbol 1648 MovieClip [level8] Frame 1Symbol 1434 MovieClip
"coin_Anim1"Symbol 1648 MovieClip [level8] Frame 1Symbol 1438 MovieClip
"coin_Anim4"Symbol 1648 MovieClip [level8] Frame 1Symbol 1438 MovieClip
"phone_indicate"Symbol 1648 MovieClip [level8] Frame 1Symbol 1416 MovieClip
"table4"Symbol 1648 MovieClip [level8] Frame 1Symbol 1418 MovieClip
"dusbin_indicate"Symbol 1648 MovieClip [level8] Frame 1Symbol 1416 MovieClip
"splmn_indicate"Symbol 1648 MovieClip [level8] Frame 1Symbol 1416 MovieClip
"special_chocolate_container"Symbol 1648 MovieClip [level8] Frame 1Symbol 1549 MovieClip
"loading"Symbol 1657 MovieClip Frame 1Symbol 1650 MovieClip
"target"Symbol 1657 MovieClip Frame 1Symbol 1331 MovieClip
"expert"Symbol 1657 MovieClip Frame 1Symbol 1350 MovieClip
"score_txt"Symbol 1657 MovieClip Frame 1Symbol 1654 EditableText
"bg"Symbol 1658 MovieClip [level9] Frame 1Symbol 588 MovieClip
"choco_machines"Symbol 1658 MovieClip [level9] Frame 1Symbol 1616 MovieClip
"choco_machines2"Symbol 1658 MovieClip [level9] Frame 1Symbol 1625 MovieClip
"dusbin"Symbol 1658 MovieClip [level9] Frame 1Symbol 607 MovieClip
"dummy_highlight"Symbol 1658 MovieClip [level9] Frame 1Symbol 1632 MovieClip
"timerClip"Symbol 1658 MovieClip [level9] Frame 1Symbol 778 MovieClip
"special_choco_machines"Symbol 1658 MovieClip [level9] Frame 1Symbol 831 MovieClip
"specialChocolateClip"Symbol 1658 MovieClip [level9] Frame 1Symbol 878 MovieClip
"coffee_machine"Symbol 1658 MovieClip [level9] Frame 1Symbol 893 MovieClip
"coffeeClip"Symbol 1658 MovieClip [level9] Frame 1Symbol 944 MovieClip
"phone_mc"Symbol 1658 MovieClip [level9] Frame 1Symbol 973 MovieClip
"shopopenClip"Symbol 1658 MovieClip [level9] Frame 1Symbol 994 MovieClip
"shopclosedClip"Symbol 1658 MovieClip [level9] Frame 1Symbol 1025 MovieClip
"chocolateClip2"Symbol 1658 MovieClip [level9] Frame 1Symbol 728 MovieClip
"chocolateClip"Symbol 1658 MovieClip [level9] Frame 1Symbol 728 MovieClip
"salesGirl"Symbol 1658 MovieClip [level9] Frame 1Symbol 1232 MovieClip
"deliveryboy"Symbol 1658 MovieClip [level9] Frame 1Symbol 1596 MovieClip
"chocolate_container"Symbol 1658 MovieClip [level9] Frame 1Symbol 1247 MovieClip
"selectClip"Symbol 1658 MovieClip [level9] Frame 1Symbol 1252 MovieClip
"comboClip"Symbol 1658 MovieClip [level9] Frame 1Symbol 1269 MovieClip
"curScoreClip"Symbol 1658 MovieClip [level9] Frame 1Symbol 1473 MovieClip
"dusbinContainer"Symbol 1658 MovieClip [level9] Frame 1Symbol 1470 MovieClip
"btn_pause"Symbol 1658 MovieClip [level9] Frame 1Symbol 1274 Button
"popup_mc"Symbol 1658 MovieClip [level9] Frame 1Symbol 1291 MovieClip
"scoreClip"Symbol 1658 MovieClip [level9] Frame 1Symbol 1657 MovieClip
"scoreIndicateClip"Symbol 1658 MovieClip [level9] Frame 1Symbol 1513 MovieClip
"expertScoreClip"Symbol 1658 MovieClip [level9] Frame 1Symbol 1518 MovieClip
"reportMc"Symbol 1658 MovieClip [level9] Frame 1Symbol 1534 MovieClip
"chomac_indicate"Symbol 1658 MovieClip [level9] Frame 1Symbol 1416 MovieClip
"chomac_indicate2"Symbol 1658 MovieClip [level9] Frame 1Symbol 1416 MovieClip
"coffee_indicate"Symbol 1658 MovieClip [level9] Frame 1Symbol 1416 MovieClip
"table3"Symbol 1658 MovieClip [level9] Frame 1Symbol 1562 MovieClip
"table2"Symbol 1658 MovieClip [level9] Frame 1Symbol 1418 MovieClip
"table1"Symbol 1658 MovieClip [level9] Frame 1Symbol 1418 MovieClip
"cancel_mc"Symbol 1658 MovieClip [level9] Frame 1Symbol 1421 MovieClip
"coin_Anim3"Symbol 1658 MovieClip [level9] Frame 1Symbol 1430 MovieClip
"coin_Anim2"Symbol 1658 MovieClip [level9] Frame 1Symbol 1434 MovieClip
"coin_Anim1"Symbol 1658 MovieClip [level9] Frame 1Symbol 1438 MovieClip
"coin_Anim4"Symbol 1658 MovieClip [level9] Frame 1Symbol 1438 MovieClip
"phone_indicate"Symbol 1658 MovieClip [level9] Frame 1Symbol 1416 MovieClip
"table4"Symbol 1658 MovieClip [level9] Frame 1Symbol 1418 MovieClip
"dusbin_indicate"Symbol 1658 MovieClip [level9] Frame 1Symbol 1416 MovieClip
"splmn_indicate"Symbol 1658 MovieClip [level9] Frame 1Symbol 1416 MovieClip
"special_chocolate_container"Symbol 1658 MovieClip [level9] Frame 1Symbol 1549 MovieClip
"loading"Symbol 1666 MovieClip Frame 1Symbol 1660 MovieClip
"target"Symbol 1666 MovieClip Frame 1Symbol 1331 MovieClip
"expert"Symbol 1666 MovieClip Frame 1Symbol 1350 MovieClip
"score_txt"Symbol 1666 MovieClip Frame 1Symbol 1664 EditableText
"bg"Symbol 1667 MovieClip [level10] Frame 1Symbol 588 MovieClip
"choco_machines"Symbol 1667 MovieClip [level10] Frame 1Symbol 1616 MovieClip
"choco_machines2"Symbol 1667 MovieClip [level10] Frame 1Symbol 1625 MovieClip
"dusbin"Symbol 1667 MovieClip [level10] Frame 1Symbol 607 MovieClip
"dummy_highlight"Symbol 1667 MovieClip [level10] Frame 1Symbol 1632 MovieClip
"timerClip"Symbol 1667 MovieClip [level10] Frame 1Symbol 778 MovieClip
"special_choco_machines"Symbol 1667 MovieClip [level10] Frame 1Symbol 831 MovieClip
"specialChocolateClip"Symbol 1667 MovieClip [level10] Frame 1Symbol 878 MovieClip
"coffee_machine"Symbol 1667 MovieClip [level10] Frame 1Symbol 893 MovieClip
"coffeeClip"Symbol 1667 MovieClip [level10] Frame 1Symbol 944 MovieClip
"phone_mc"Symbol 1667 MovieClip [level10] Frame 1Symbol 973 MovieClip
"shopopenClip"Symbol 1667 MovieClip [level10] Frame 1Symbol 994 MovieClip
"shopclosedClip"Symbol 1667 MovieClip [level10] Frame 1Symbol 1025 MovieClip
"chocolateClip2"Symbol 1667 MovieClip [level10] Frame 1Symbol 728 MovieClip
"chocolateClip"Symbol 1667 MovieClip [level10] Frame 1Symbol 728 MovieClip
"salesGirl"Symbol 1667 MovieClip [level10] Frame 1Symbol 1232 MovieClip
"deliveryboy"Symbol 1667 MovieClip [level10] Frame 1Symbol 1596 MovieClip
"chocolate_container"Symbol 1667 MovieClip [level10] Frame 1Symbol 1247 MovieClip
"selectClip"Symbol 1667 MovieClip [level10] Frame 1Symbol 1252 MovieClip
"comboClip"Symbol 1667 MovieClip [level10] Frame 1Symbol 1269 MovieClip
"curScoreClip"Symbol 1667 MovieClip [level10] Frame 1Symbol 1473 MovieClip
"dusbinContainer"Symbol 1667 MovieClip [level10] Frame 1Symbol 1470 MovieClip
"btn_pause"Symbol 1667 MovieClip [level10] Frame 1Symbol 1274 Button
"popup_mc"Symbol 1667 MovieClip [level10] Frame 1Symbol 1291 MovieClip
"scoreClip"Symbol 1667 MovieClip [level10] Frame 1Symbol 1666 MovieClip
"scoreIndicateClip"Symbol 1667 MovieClip [level10] Frame 1Symbol 1513 MovieClip
"expertScoreClip"Symbol 1667 MovieClip [level10] Frame 1Symbol 1518 MovieClip
"reportMc"Symbol 1667 MovieClip [level10] Frame 1Symbol 1534 MovieClip
"chomac_indicate"Symbol 1667 MovieClip [level10] Frame 1Symbol 1416 MovieClip
"chomac_indicate2"Symbol 1667 MovieClip [level10] Frame 1Symbol 1416 MovieClip
"coffee_indicate"Symbol 1667 MovieClip [level10] Frame 1Symbol 1416 MovieClip
"table3"Symbol 1667 MovieClip [level10] Frame 1Symbol 1562 MovieClip
"table2"Symbol 1667 MovieClip [level10] Frame 1Symbol 1418 MovieClip
"table1"Symbol 1667 MovieClip [level10] Frame 1Symbol 1418 MovieClip
"cancel_mc"Symbol 1667 MovieClip [level10] Frame 1Symbol 1421 MovieClip
"coin_Anim3"Symbol 1667 MovieClip [level10] Frame 1Symbol 1430 MovieClip
"coin_Anim2"Symbol 1667 MovieClip [level10] Frame 1Symbol 1434 MovieClip
"coin_Anim1"Symbol 1667 MovieClip [level10] Frame 1Symbol 1438 MovieClip
"coin_Anim4"Symbol 1667 MovieClip [level10] Frame 1Symbol 1438 MovieClip
"phone_indicate"Symbol 1667 MovieClip [level10] Frame 1Symbol 1416 MovieClip
"table4"Symbol 1667 MovieClip [level10] Frame 1Symbol 1418 MovieClip
"dusbin_indicate"Symbol 1667 MovieClip [level10] Frame 1Symbol 1416 MovieClip
"splmn_indicate"Symbol 1667 MovieClip [level10] Frame 1Symbol 1416 MovieClip
"special_chocolate_container"Symbol 1667 MovieClip [level10] Frame 1Symbol 1549 MovieClip
"btn_menu"Symbol 1673 MovieClip Frame 1Symbol 1670 Button
"btn_playpremium"Symbol 1673 MovieClip Frame 1Symbol 327 Button
"dchoc_btn"Symbol 1674 MovieClip Frame 1Symbol 274 Button
"music_btn"Symbol 1674 MovieClip Frame 1Symbol 277 MovieClip
"mouseClip"Symbol 1674 MovieClip Frame 1Symbol 283 MovieClip
"menuMc"Symbol 1674 MovieClip Frame 4Symbol 330 MovieClip
"btn_continue"Symbol 1674 MovieClip Frame 5Symbol 386 Button
"calenderMc"Symbol 1674 MovieClip Frame 6Symbol 571 MovieClip
"main_level1"Symbol 1674 MovieClip Frame 7Symbol 1439 MovieClip [level1]
"pauseClip"Symbol 1674 MovieClip Frame 7Symbol 1466 MovieClip
"main_level2"Symbol 1674 MovieClip Frame 9Symbol 1535 MovieClip [level2]
"pauseClip"Symbol 1674 MovieClip Frame 9Symbol 1466 MovieClip
"main_level3"Symbol 1674 MovieClip Frame 11Symbol 1550 MovieClip [level3]
"pauseClip"Symbol 1674 MovieClip Frame 11Symbol 1466 MovieClip
"main_level4"Symbol 1674 MovieClip Frame 13Symbol 1551 MovieClip [level4]
"pauseClip"Symbol 1674 MovieClip Frame 13Symbol 1466 MovieClip
"main_level5"Symbol 1674 MovieClip Frame 15Symbol 1563 MovieClip [level5]
"pauseClip"Symbol 1674 MovieClip Frame 15Symbol 1466 MovieClip
"main_level6"Symbol 1674 MovieClip Frame 17Symbol 1603 MovieClip [level6]
"pauseClip"Symbol 1674 MovieClip Frame 17Symbol 1466 MovieClip
"main_level7"Symbol 1674 MovieClip Frame 19Symbol 1641 MovieClip [level7]
"pauseClip"Symbol 1674 MovieClip Frame 19Symbol 1466 MovieClip
"main_level8"Symbol 1674 MovieClip Frame 21Symbol 1648 MovieClip [level8]
"pauseClip"Symbol 1674 MovieClip Frame 21Symbol 1466 MovieClip
"main_level9"Symbol 1674 MovieClip Frame 23Symbol 1658 MovieClip [level9]
"pauseClip"Symbol 1674 MovieClip Frame 23Symbol 1466 MovieClip
"main_level10"Symbol 1674 MovieClip Frame 25Symbol 1667 MovieClip [level10]
"pauseClip"Symbol 1674 MovieClip Frame 25Symbol 1466 MovieClip
"upshell_mc"Symbol 1674 MovieClip Frame 27Symbol 1673 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 77 as "oldlady"
ExportAssets (56)Timeline Frame 1Symbol 152 as "younglady"
ExportAssets (56)Timeline Frame 1Symbol 259 as "orderbook"
ExportAssets (56)Timeline Frame 1Symbol 1693 as "__Packages.MochiAd"
ExportAssets (56)Timeline Frame 1Symbol 1694 as "__Packages.URLAndVersion"
ExportAssets (56)Timeline Frame 1Symbol 1695 as "__Packages.mx.transitions.OnEnterFrameBeacon"
ExportAssets (56)Timeline Frame 1Symbol 1696 as "__Packages.mx.transitions.BroadcasterMX"
ExportAssets (56)Timeline Frame 1Symbol 1697 as "__Packages.mx.transitions.Tween"
ExportAssets (56)Timeline Frame 1Symbol 1698 as "__Packages.mx.transitions.easing.Strong"
ExportAssets (56)Timeline Frame 1Symbol 1699 as "__Packages.Level2"
ExportAssets (56)Timeline Frame 1Symbol 1700 as "__Packages.Level3"
ExportAssets (56)Timeline Frame 1Symbol 1701 as "__Packages.Level4"
ExportAssets (56)Timeline Frame 1Symbol 1702 as "__Packages.Level5"
ExportAssets (56)Timeline Frame 1Symbol 1703 as "__Packages.Level6"
ExportAssets (56)Timeline Frame 1Symbol 1704 as "__Packages.Level7"
ExportAssets (56)Timeline Frame 1Symbol 1705 as "__Packages.Level8"
ExportAssets (56)Timeline Frame 1Symbol 1706 as "__Packages.Level9"
ExportAssets (56)Timeline Frame 1Symbol 1707 as "__Packages.Level10"
ExportAssets (56)Timeline Frame 1Symbol 1708 as "__Packages.Level1"
ExportAssets (56)Timeline Frame 10Symbol 1439 as "level1"
ExportAssets (56)Timeline Frame 10Symbol 1535 as "level2"
ExportAssets (56)Timeline Frame 10Symbol 1550 as "level3"
ExportAssets (56)Timeline Frame 10Symbol 1551 as "level4"
ExportAssets (56)Timeline Frame 10Symbol 1563 as "level5"
ExportAssets (56)Timeline Frame 10Symbol 1603 as "level6"
ExportAssets (56)Timeline Frame 10Symbol 1641 as "level7"
ExportAssets (56)Timeline Frame 10Symbol 1648 as "level8"
ExportAssets (56)Timeline Frame 10Symbol 1658 as "level9"
ExportAssets (56)Timeline Frame 10Symbol 1667 as "level10"
ExportAssets (56)Timeline Frame 10Symbol 1675 as "mainmenu.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1676 as "gamebgsnd.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1677 as "calendersnd.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1678 as "choco_done.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1679 as "combo1.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1680 as "combo2.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1681 as "combo3.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1682 as "expert_score.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1683 as "hotchoco_done.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1684 as "phonering.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1685 as "target_score.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1686 as "customer_happy.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1687 as "level_complete.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1688 as "level_failed.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1689 as "money1.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1690 as "money2.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1691 as "money3.mp3"
ExportAssets (56)Timeline Frame 10Symbol 1692 as "choco_producing.mp3"

Labels

"Googlead"Frame 3
"Mochiad1"Frame 6
"End"Frame 8
"Type_triangle"Symbol 220 MovieClip Frame 1
"Type_round"Symbol 220 MovieClip Frame 2
"Type_box"Symbol 220 MovieClip Frame 3
"Type_rabbit"Symbol 220 MovieClip Frame 4
"Type_fish"Symbol 220 MovieClip Frame 5
#"L0"Symbol 410 MovieClip Frame 3
"L1"Symbol 410 MovieClip Frame 134
"L2"Symbol 410 MovieClip Frame 328
"L3"Symbol 410 MovieClip Frame 450
#"L0"Symbol 421 MovieClip Frame 3
#"L0"Symbol 448 MovieClip Frame 3
"L1"Symbol 448 MovieClip Frame 134
"L2"Symbol 448 MovieClip Frame 328
"L3"Symbol 448 MovieClip Frame 450
"Type_triangle"Symbol 728 MovieClip Frame 1
"Type_round"Symbol 728 MovieClip Frame 2
"Type_box"Symbol 728 MovieClip Frame 3
"Type_rabbit"Symbol 878 MovieClip Frame 1
"Type_fish"Symbol 878 MovieClip Frame 2
"Type_triangle"Symbol 1069 MovieClip Frame 1
"Type_box"Symbol 1069 MovieClip Frame 2
"Type_round"Symbol 1069 MovieClip Frame 3
"Type_rabbit"Symbol 1069 MovieClip Frame 4
"Type_fish"Symbol 1069 MovieClip Frame 5
"Up"Symbol 1232 MovieClip Frame 1
"Down"Symbol 1232 MovieClip Frame 2
"Left"Symbol 1232 MovieClip Frame 3
"Right"Symbol 1232 MovieClip Frame 4
"One"Symbol 1269 MovieClip Frame 1
"Two"Symbol 1269 MovieClip Frame 2
"Three"Symbol 1269 MovieClip Frame 3
"Four"Symbol 1269 MovieClip Frame 4
"Five"Symbol 1269 MovieClip Frame 5
"Title"Symbol 1674 MovieClip Frame 3
"Mainmenu"Symbol 1674 MovieClip Frame 4
"Intro"Symbol 1674 MovieClip Frame 5
"Calender"Symbol 1674 MovieClip Frame 6
"Level1"Symbol 1674 MovieClip Frame 7
"Level2"Symbol 1674 MovieClip Frame 9
"Level3"Symbol 1674 MovieClip Frame 11
"Level4"Symbol 1674 MovieClip Frame 13
"Level5"Symbol 1674 MovieClip Frame 15
"Level6"Symbol 1674 MovieClip Frame 17
"Level7"Symbol 1674 MovieClip Frame 19
"Level8"Symbol 1674 MovieClip Frame 21
"Level9"Symbol 1674 MovieClip Frame 23
"Level10"Symbol 1674 MovieClip Frame 25
"Upshell"Symbol 1674 MovieClip Frame 27




http://swfchan.com/16/75287/info.shtml
Created: 6/4 -2019 08:17:58 Last modified: 6/4 -2019 08:17:58 Server time: 23/12 -2024 00:55:51