STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #92665 |
R |
R |
R |
R |
R |
EXCELLENT |
EXCELLENT |
High Scores |
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. |
Player 1 Player 2 Player 3 Player 4 Player 5 Player 6 Player 7 Player 8 Player 9 Player 10 |
999,999 999,999 999,999 999,999 999,999 999,999 999,999 999,999 999,999 999,999 |
Status Text Here |
ActionScript [AS1/AS2]
Frame 1_root.kongregateServices.connect(); var progressBmp_ = flash.display.BitmapData.loadBitmap("first_progress"); var resultBmp_ = (new flash.display.BitmapData(Stage.width, Stage.height, true, 0)); stop(); var OnMovieBlur; sliderLoading.ReadOnly = true; var INGAMECLICK = true; _root.loadingPhase = 0; var loading_target = _root; var languageXml = new XML(); var urlXml = new XML(); var levelsXml = new XML(); EndLoading = function () { delete amovie.onPress; amovie.removeMovieClip(); _root.onEnterFrame = null; gotoAndStop (3); }; _root.languageXml.ignoreWhite = true; var loaded = 0; var total = 100; var amovie = _root.createEmptyMovieClip("loader", _root.getNextHighestDepth()); var firstBitmap = flash.display.BitmapData.loadBitmap("menu_back"); amovie.attachBitmap(firstBitmap, amovie.getNextHighestDepth()); if (INGAMECLICK == true) { amovie.onPress = function () { getURL (Helper.ADSLINK, "_blank"); }; } if (Game.SMILEGAMERADS == true) { System.security.allowDomain("server.cpmstar.com"); var CPMStarPoolID = 1378; var CPMStarSubPoolID = 1295; var adBox = amovie.attachMovie("adBox", "adBox2", 1000); adBox._x = (Stage.width / 2) - (adBox._width / 2); adBox._y = (Stage.height / 2) - (adBox._height / 2); adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID); } _root.onEnterFrame = function () { var swf_loaded = _root.getBytesLoaded(); var swf_total = _root.getBytesTotal(); var percs = 0; if ((swf_total != 0) && (swf_total != undefined)) { percs = percs + Math.floor((swf_loaded * 100) / swf_total); } if (!((percs >= 0) && (percs <= 100))) { percs = 0; } if (isNaN(percs)) { percs = 0; } if (!((percs >= 0) && (percs <= 100))) { percs = 0; } var out_percs = 0; if (percs >= 0) { if (percs <= 100) { out_percs = percs; } } if (out_percs == Number.NaN) { out_percs = 0; } firstBitmap.copyPixels(progressBmp_, new flash.geom.Rectangle(0, 0, (progressBmp_.width / 100) * out_percs, progressBmp_.height), new flash.geom.Point(18, 175)); var percs_str = String(out_percs); if (percs_str == "NaN") { percs_str = "0"; } strLoading = ("LOADING " + percs_str) + "%"; if (percs == 100) { _root.EndLoading(); } }; _root.createEmptyMovieClip("custom_logo", _root.getNextHighestDepth()); _root.custom_logo._x = 5; _root.custom_logo._y = 5; _root.createEmptyMovieClip("custom_logo2", _root.getNextHighestDepth());Instance of Symbol 303 MovieClip [sLoader] "sLoader" in Frame 2/* no clip actions */Frame 3_root.loader.removeMovieClip; _root.createEmptyMovieClip("snd", -10); _root.createEmptyMovieClip("mus", -20); attachMovie("Symbol", "Game1", 1); Game1.Create(); stop();Symbol 6 MovieClip [Symbol] Frame 1#initclip 82 Object.registerClass("Symbol", Game); #endinitclipSymbol 8 MovieClip [Symbol_Menu] Frame 1#initclip 63 Object.registerClass("Symbol_Menu", MenuBase); #endinitclipSymbol 9 MovieClip [Symbol_menuItem] Frame 1#initclip 64 Object.registerClass("Symbol_menuItem", MenuItem); #endinitclipSymbol 15 MovieClip [Hotel] Frame 1#initclip 65 Object.registerClass("Hotel", Hotel); #endinitclipSymbol 23 MovieClip [Human] Frame 1#initclip 66 Object.registerClass("Human", Human); #endinitclipSymbol 33 MovieClip [Mebel] Frame 1#initclip 67 Object.registerClass("Mebel", Mebel); #endinitclipSymbol 55 MovieClip [AnimStates] Frame 1#initclip 68 Object.registerClass("AnimStates", AnimStates); #endinitclipSymbol 61 MovieClip [Room] Frame 1#initclip 69 Object.registerClass("Room", Room); #endinitclipSymbol 67 MovieClip [Customer] Frame 1#initclip 70 Object.registerClass("Customer", Customer); #endinitclipSymbol 130 MovieClip [ServiceWindow] Frame 1#initclip 71 Object.registerClass("ServiceWindow", ServiceWindow); #endinitclipSymbol 140 MovieClip [Personal] Frame 1#initclip 72 Object.registerClass("Personal", Personal); #endinitclipSymbol 160 MovieClip [ShopSym] Frame 1#initclip 73 Object.registerClass("ShopSym", ShopSym); #endinitclipSymbol 185 MovieClip [Leaf] Frame 1#initclip 74 Object.registerClass("Leaf", Leaf); #endinitclipSymbol 186 MovieClip [CashWindow] Frame 1#initclip 75 Object.registerClass("CashWindow", CashWindow); #endinitclipSymbol 202 MovieClip [MenuItem] Frame 1#initclip 76 Object.registerClass("MenuItem", MenuItem); #endinitclipSymbol 223 MovieClip [ClientsWindow] Frame 1#initclip 77 Object.registerClass("ClientsWindow", ClientsWindow); #endinitclipSymbol 227 MovieClip [Submenu] Frame 1#initclip 78 Object.registerClass("Submenu", Submenu); #endinitclipSymbol 233 MovieClip [CashBar] Frame 1#initclip 79 Object.registerClass("CashBar", CashBar); #endinitclipSymbol 242 MovieClip [LoadingMenu] Frame 1#initclip 80 Object.registerClass("LoadingMenu", LoadingMenu); #endinitclipSymbol 270 MovieClip [mc_ADS] Frame 1#initclip 81 Object.registerClass("mc_ADS", mc_ADS); #endinitclipSymbol 303 MovieClip [sLoader] Frame 1stop();Instance of Symbol 6 MovieClip [Symbol] in Symbol 303 MovieClip [sLoader] Frame 1onClipEvent (load) { this._visible = false; }Symbol 326 MovieClip [__Packages.Game] Frame 0class Game extends MovieClip { static var MUSICSOUND, GAMEINSTANCE, userName_, ACTFROMMENU, currLoading, prevLoading, timeDelta, scaleFactorX, scaleFactorY; var levelcash_, wndCash_, cashBar_, moneyWaitingTime, minusValue_, programState_, loadingMenu_, reachShowed_, goal_, cash_, levelNum_, customersArr_, dictXML, boughtArray_, menuBtn_mc_, startTime_, lastClicked_, mapObjects_, mapObjsNames_, menuStQue, HotelMenu, swapAbleArr_, aPorter, aJane, ShopMenu, aShop, totalCustomers_, nowCustomers_, lastGoingTime_, attachMovie, getNextHighestDepth, bankPayed_, namePressed_, loadFuncArr_, getURL, url_xml_, subMenu_, NewMenu, shopMC, congrShowed_, totalEarned_, ResumeMenu, maxCustomers_, aMaid, wndClients_, hotelMc, map_, levelPopularity_, populMoney_, reqsPossible_, maxMoney_, wndServiceL_, xmlObjects, wndServiceR_, cutArray_, roomsXMLArr, objsToCreate, lastrepaired, currFakeWaiting_, AdMenu, xmlToLoad, FactoryXML, loading_, startNewItms, brightUp_, gameAdShowed_, transparent_, gamePlay_, key_clip, keyVisible_, pathArr_, dbgClip, _ymouse, _xmouse, yelowPoints, createEmptyMovieClip, mapObjsXMLArr_, scaleMatrix, orderVal_, _url, hasStatistic_, humanHelper, factoryStack_, factoryAnimObject, reqMan_, aRoomArr, _x, _y, onEnterFrame, onMouseMove; function Game () { super(); GameHelper.aGame_ = this; } static function CreateMusic() { MUSICSOUND = new Sound(_root.mus); } function countMoney() { var aObj = getMO("RECEPTION1"); levelcash_ = levelcash_ + aObj.clearMoney(); wndCash_.updateCashData(); if (cashBar_.indexValue_ > 0) { moneyWaitingTime = 300; } else { moneyWaitingTime = 0; } waitingTime_ = moneyWaitingTime; minusValue_ = Math.floor(cashBar_.maxIndex_ / 10); if (minusValue_ < 1) { minusValue_ = 1; } programState_ = PST_MONEY_COUNT; } function gotoShop() { loadingMenu_.removeMovieClip(); loadingMenu_ = null; reachShowed_ = false; stopAndShop(); } function restartGame() { loadingMenu_.removeMovieClip(); loadingMenu_ = null; reachShowed_ = false; afterInterLevel(); } function stopAndShop() { var aObj = getMO("FLOWER_LEFT"); if (aObj != undefined) { aObj.leafTime_ = 0; aObj.uncheckFirst(); aObj.clearLeaves(); aObj.animObject.sendSignalState([aObj.animObject.getName()], "green"); aObj.isYellow_ = false; aObj.animObject.quant(0); aObj.drawIt(); } var aObj = getMO("FLOWER_RIGHT"); if (aObj != undefined) { aObj.leafTime_ = 0; aObj.uncheckFirst(); aObj.clearLeaves(); aObj.animObject.sendSignalState([aObj.animObject.getName()], "green"); aObj.isYellow_ = false; aObj.animObject.quant(0); aObj.drawIt(); } if (levelcash_ >= goal_) { cash_ = cash_ + levelcash_; levelNum_++; } levelcash_ = 0; setClientsCount(); stopGame(); registerShopMenu(); } function getRequestName(aMebName) { var i = 0; while (i < MEBARR.length) { if (MEBARR[i] == aMebName) { return(REQARR[i]); } i++; } } function getXMLPartName(reqName) { var i = 0; while (i < REQARR.length) { if (REQARR[i] == reqName) { return(XMLPARTS[i]); } i++; } } function getMebName(reqName) { var i = 0; while (i < REQARR.length) { if (REQARR[i] == reqName) { return(MEBARR[i]); } i++; } } function getCustomersInState(aState) { var retArr = new Array(); var i = 0; while (i < customersArr_.length) { if (customersArr_[i].currCmd_ == aState) { retArr.push(customersArr_[i]); } i++; } return(retArr); } function goGame(mc) { mc.unloadMovie(); mc = undefined; GameHelper.ShowStartTextAnimation(dictXML.firstChild.attributes.menu_GO, "eraseText"); programState_ = PST_GAME_START; var ba = 0; while (ba < boughtArray_.length) { boughtArray_[ba]._alpha = 100; ba++; } boughtArray_.splice(0, boughtArray_.length); BtnFactory.enableButton(menuBtn_mc_); startTime_ = getTimer(); lastClicked_ = startTime_; } function eraseLevelDone(mc) { mc.unloadMovie(); mc = undefined; programState_ = PST_WAITING_STOPING; } function eraseText(mc) { mc.unloadMovie(); mc = undefined; } function eraseLevelUp(mc) { mc.unloadMovie(); mc = undefined; programState_ = PST_MONEY_TAKED; } static function showHint(aKey, aObj) { var hintClip = GAMEINSTANCE.createEmptyMovieClip("aHint", GAMEINSTANCE.getNextHighestDepth()); var atext = hintClip.createTextField("hintText", 10, 0, 0, 100, 100); atext.text = aKey; TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, atext); atext.setTextFormat(TextStyles.txtStyleCommon); atext._x = 0; var bdata = (new flash.display.BitmapData(hintClip._width + 3, hintClip._height)); var myMatrix = (new flash.geom.Matrix()); myMatrix.scale(hintClip._width + 3, 1.2); var myColorTransform = (new flash.geom.ColorTransform(1.5, 1.5, 1.5, 1, 0, 0, 0, 0)); var aSource = flash.display.BitmapData.loadBitmap("yellow_center_normal"); bdata.draw(flash.display.BitmapData.loadBitmap("yellow_center_normal"), myMatrix, myColorTransform); hintClip.attachBitmap(bdata, 0); hintClip._x = (aObj._x - hintClip._width) - 20; hintClip._y = (aObj._y + (aObj._height / 2)) - (hintClip._height / 2); } static function hideHint() { removeMovieClip(GAMEINSTANCE.aHint); } function showGoalReached() { if (reachShowed_ != true) { GameHelper.ShowStartTextAnimation(dictXML.firstChild.attributes.game_GOAL_REACHED, "eraseText", GoalReachedAnimationTime); reachShowed_ = true; Helper.PlaySound("goal", 1); } } function getEmptyRoom() { var retArr = new Array(); var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i] instanceof Room) { var currRoom = mapObjects_[i]; if (currRoom.ordered_ == false) { switch (currRoom.getPersName()) { case "ROOM1" : retArr.push(Customer.CMD_GO_ROOM1); break; case "ROOM2" : retArr.push(Customer.CMD_GO_ROOM2); break; case "ROOM3" : retArr.push(Customer.CMD_GO_ROOM3); break; case "ROOM4" : retArr.push(Customer.CMD_GO_ROOM4); break; case "ROOM5" : retArr.push(Customer.CMD_GO_ROOM5); } } } i++; } if (retArr.length > 0) { var randVal = Math.random(); var randInd = Math.floor(randVal * (retArr.length - 1)); return(retArr[randInd]); } return(-1); } function hasMapName(aname) { var i = 0; while (i < mapObjsNames_.length) { if (mapObjsNames_[i] == aname) { return(true); } i++; } return(false); } function getMObyName(aname) { var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i]._name == aname) { return(mapObjects_[i]); } i++; } return(null); } function getMO(objID) { var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i].getPersName() == objID) { return(mapObjects_[i]); } i++; } return(null); } function hasClientsOrder(orderNum) { var i = 0; while (i < customersArr_.length) { if (customersArr_[i].orderNum_ == orderNum) { return(true); } i++; } return(false); } function addRedStar() { } function disableWindows() { var i = 0; while (i < menuStQue.length) { menuStQue[i].disableMenu(); i++; } } function releaseMenu(menuCode, dataArr) { } function pushMenuCode(menuBase) { } function popMenuCode() { menuStQue.pop(); } static function recalcSize(aclip) { aclip._width = aclip._width * (Stage.width / 1024); aclip._height = aclip._height * (Stage.height / 768); } function customerStateChecker(timeDone) { } function janeStateChecker(timeDone) { } function getFreeBelowMeb(aMebDepth) { var i = aMebDepth; while (i > 0) { if (HotelMenu.getInstanceAtDepth(i) == undefined) { return(i); } i--; } } function getFreeAboveMeb(aMebDepth) { var i = aMebDepth; while (i < 9000) { if (HotelMenu.getInstanceAtDepth(i) == undefined) { return(i); } i++; } } function updateDepths(changedMC) { var i = 0; while (i < swapAbleArr_.length) { if ((((changedMC != swapAbleArr_[i]) && (changedMC.hitTest(swapAbleArr_[i]))) && (swapAbleArr_[i].under_ != true)) && (!(swapAbleArr_[i] instanceof Customer))) { var zyPoint = swapAbleArr_[i].zyPoint_; var checkPoint; if (zyPoint != undefined) { checkPoint = Number(swapAbleArr_[i]._y) + Number(zyPoint); } else { checkPoint = swapAbleArr_[i]._y + swapAbleArr_[i]._height; } if (swapAbleArr_[i].request_.name != "") { checkPoint = checkPoint - 20; } if (((changedMC._y + changedMC._height) > checkPoint) && (changedMC.getDepth() < swapAbleArr_[i].getDepth())) { changedMC.swapDepths(getNextEmptyDepth(swapAbleArr_[i].getDepth() + 2)); } else if (((changedMC._y + changedMC._height) < checkPoint) && (changedMC.getDepth() > swapAbleArr_[i].getDepth())) { changedMC.swapDepths(getPrevEmptyDepth(swapAbleArr_[i].getDepth() - 2)); } } i++; } if (changedMC instanceof Customer) { if ((changedMC.hitTest(aPorter) == true) && (aPorter._alpha != 0)) { var checkPoint; checkPoint = (aPorter._y + aPorter._height) - 2; if ((((changedMC._y + changedMC._height) - 20) >= checkPoint) && (changedMC.getDepth() < aPorter.getDepth())) { changedMC.swapDepths(getNextEmptyDepth(aPorter.getDepth() + 1)); } else if ((((changedMC._y + changedMC._height) - 20) < checkPoint) && (changedMC.getDepth() > aPorter.getDepth())) { changedMC.swapDepths(getPrevEmptyDepth(aPorter.getDepth() - 1)); } } } if (changedMC == aJane) { var i = 0; while (i < customersArr_.length) { if ((((changedMC.hitTest(customersArr_[i]) == true) && (customersArr_[i]._alpha != 0)) && (customersArr_[i].whereIs_ != "ARMCHAIR_RIGHT")) && (customersArr_[i].whereIs_ != "ARMCHAIR_LEFT")) { var checkPoint; if (customersArr_[i].request_.name == "") { checkPoint = customersArr_[i]._y + customersArr_[i]._height; } else { checkPoint = (customersArr_[i]._y + customersArr_[i]._height) - 20; } if (((changedMC._y + changedMC._height) >= checkPoint) && (changedMC.getDepth() < customersArr_[i].getDepth())) { changedMC.swapDepths(getNextEmptyDepth(customersArr_[i].getDepth() + 1)); } else if (((changedMC._y + changedMC._height) < checkPoint) && (changedMC.getDepth() > customersArr_[i].getDepth())) { changedMC.swapDepths(getPrevEmptyDepth(customersArr_[i].getDepth() - 1)); } } i++; } if ((changedMC.hitTest(aPorter) == true) && (aPorter._alpha != 0)) { var checkPoint; if (customersArr_[i].request_.name == "") { checkPoint = aPorter._y + aPorter._height; } if (((changedMC._y + changedMC._height) >= checkPoint) && (changedMC.getDepth() < aPorter.getDepth())) { changedMC.swapDepths(getNextEmptyDepth(aPorter.getDepth() + 1)); } else if (((changedMC._y + changedMC._height) < checkPoint) && (changedMC.getDepth() > aPorter.getDepth())) { changedMC.swapDepths(getPrevEmptyDepth(aPorter.getDepth() - 1)); } } } } function afterInterLevel() { ShopMenu.removeMovieClip(); aShop.removeMovieClip(); popMenuCode(); menuStQue[menuStQue.length - 1].enableMenu(); totalCustomers_ = 0; nowCustomers_ = 0; lastGoingTime_ = NEXTVISITDELAY / 3; loadingMenu_.update(); setPopularity(); setClientsCount(); setGoal(); loadingMenu_ = attachMovie("LoadingMenu", "loading", getNextHighestDepth()); loadingMenu_.create(this, true); loadingMenu_.loadIndex_ = 0; loadingMenu_.addText((dictXML.firstChild.attributes.menu_LEVEL + ": ") + String(levelNum_ + 1), new flash.geom.Point(loadingMenu_._width / 2, 170)); loadingMenu_.addText((dictXML.firstChild.attributes.menu_GOAL + ": ") + goal_, new flash.geom.Point(loadingMenu_._width / 2, 220)); loadingMenu_.addText((((((bankPayed_ + " ") + dictXML.firstChild.attributes.menu_OF) + " ") + BANKTOPAY) + " ") + dictXML.firstChild.attributes.menu_HAS, new flash.geom.Point(loadingMenu_._width / 2, 245)); loadingMenu_.addText(dictXML.firstChild.attributes.menu_PAYED, new flash.geom.Point(loadingMenu_._width / 2, 270)); loadingMenu_.addText((dictXML.firstChild.attributes.menu_LEVEL + ": ") + String(levelNum_ + 1), new flash.geom.Point(loadingMenu_._width / 2, 170)); loadingMenu_.mcBody._visible = true; var k = 0; while (k < boughtArray_.length) { reInitMap(boughtArray_[k]); k++; } startFakeWaiting(); } function afterHighScoreSend() { _root.Game1.ResumeMenu.DisAppear(); _root.Game1.HotelMenu.removeMovieClip(); _root.Game1.Epizode.removeMovieClip(); _root.Game1.hotelMc = undefined; var i = 0; while (i < _root.Game1.menuStQue.length) { if (_root.Game1.menuStQue[i]._name == "HotelMenu") { _root.Game1.menuStQue.splice(i, 1); break; } i++; } _root.Game1.HotelMenu.removeMovieClip(); _root.Game1.square_mc.removeMovieClip(); _root.Game1.NewMenu.enableMenu(); _root.Game1.programState_ = PST_LOADING_FIRST; _root.Game1.clearLoadedData(); _root.Game1.wndServiceL_.hideWcan(); } function setRetCode(retCode) { if ((Helper.SHOW_MOCHIADS == true) || (Helper.SCORESTYPE == "SMILE")) { if (retCode == undefined) { if (namePressed_ == 1) { if (Helper.SHOW_MOCHIADS == true) { if (Helper.HASMOCHIPRE == true) { MUSICSOUND.stop(); MochiAd.showPreGameAd({id:"5be07b936863d57a", res:"550x400", ad_finished:GameHelper.registerMainMenu}); namePressed_ = 0; if (loadingMenu_.inputName_.text == undefined) { loadingMenu_.inputName_.text = "Player"; } userName_ = loadingMenu_.inputName_.text; if ((userName_.length == 0) || (userName_ == undefined)) { userName_ = "Player"; } loadingMenu_.removeMovieClip(); loadingMenu_ = null; return(undefined); } namePressed_ = 0; if (loadingMenu_.inputName_.text == undefined) { loadingMenu_.inputName_.text = "Player"; } userName_ = loadingMenu_.inputName_.text; if ((userName_.length == 0) || (userName_ == undefined)) { userName_ = "Player"; } loadingMenu_.removeMovieClip(); loadingMenu_ = null; GameHelper.registerMainMenu(); return(undefined); } if (Helper.SCORESTYPE == "SMILE") { namePressed_ = 0; if (loadingMenu_.inputName_.text == undefined) { loadingMenu_.inputName_.text = "Player"; } userName_ = loadingMenu_.inputName_.text; if ((userName_.length == 0) || (userName_ == undefined)) { userName_ = "Player"; } loadingMenu_.removeMovieClip(); loadingMenu_ = null; GameHelper.registerMainMenu(); return(undefined); } } else { if (namePressed_ == 2) { namePressed_ = 0; if (loadingMenu_.inputName_.text == undefined) { userName_ = "Player"; loadingMenu_.inputName_.text = "Player"; } else { userName_ = loadingMenu_.inputName_.text; } if ((userName_.length == 0) || (userName_ == undefined)) { userName_ = "Player"; } loadingMenu_.removeMovieClip(); loadingMenu_ = null; menuStQue[menuStQue.length - 1].enableMenu(); return(undefined); } if (namePressed_ == undefined) { restartGame(); } else if (namePressed_ == 3) { namePressed_ = 0; loadingMenu_.removeMovieClip(); loadingMenu_ = null; menuStQue[menuStQue.length - 1].enableMenu(); return(undefined); } } } } if (menuStQue.length > 0) { switch (retCode) { case MenuBase.RCODE_KONKURS : ACTFROMMENU = true; _root.attachMovie("mc_Action", "theAction", _root.getNextHighestDepth()); menuStQue[menuStQue.length - 1].disableMenu(); return; case MenuBase.RCODE_MMENU_PLAYER : loadingMenu_ = attachMovie("LoadingMenu", "loading", getNextHighestDepth()); loadingMenu_.create(this, false, true, "OK", "INPUTNAME"); loadingMenu_.setWaitPress(PST_CREATING_OBJS, 2); programState_ = PST_LOADING_FIRST; currLoading = loadFuncArr_.length; menuStQue[menuStQue.length - 1].disableMenu(); return; case MenuBase.RCODE_MMENU_STATISTIC : if (Helper.SCORESTYPE == "SMILE") { (getURL("http://www.smileygamer.com/highscores/1295/janes-hotel-family-hero.html?gameref=1295", "_blank"));// not popped } else { loadingMenu_ = attachMovie("LoadingMenu", "loading", getNextHighestDepth()); loadingMenu_.create(this, false, true, "OK", "SCORES"); loadingMenu_.setWaitPress(PST_CREATING_OBJS, 3); var ascore_table = loadingMenu_.attachMovie("score_table", "score_table1", loadingMenu_.getNextHighestDepth()); var table = new TextScoreTable(ascore_table); table.reset("Fetching high scores..."); var hasNetwork = MochiAd.fetchHighScores({id:"5be07b936863d57a"}, table, "gotScores"); if (!hasNetwork) { table.reset("Local sandbox does not allow network, try playing online."); } ascore_table._x = 165; ascore_table._y = 170; } return; case MenuBase.RCODE_GAMEAD_GETIT : (getURL(url_xml_.firstChild.attributes.url, "_blank"));// not popped return; case MenuBase.RCODE_GAMEAD_OK : programState_ = PST_EXIT_GAMEAD; return; case MenuBase.RCODE_SOUND_EXIT : menuStQue[menuStQue.length - 1].enableMenu(); subMenu_.removeMovieClip(); subMenu_ = undefined; return; case MenuBase.RCODE_SOUND : NewMenu.adBox2.removeMovieClip(); subMenu_ = attachMovie("Submenu", "soundMenu", getNextHighestDepth()); subMenu_.create(this); subMenu_._x = (Stage.width / 2) - (subMenu_._width / 2); subMenu_._y = ((Stage.height / 2) - (subMenu_._height / 2)) + 40; subMenu_.update(); menuStQue[menuStQue.length - 1].disableMenu(); return; case MenuBase.RCODE_OPTIONS : return; case MenuBase.RCODE_BUY_FURN : var selected_ = shopMC.selectedIt; if (selected_ != undefined) { Helper.PlaySound("shop_buy", 1); shopMC.extractSelected(); shopMC.selectedIt = undefined; } return; case MenuBase.RCODE_EXIT_SHOP : if ((((levelNum_ % 10) == 0) || (levelNum_ == 1)) && (Helper.SHOW_INGAMEADS == true)) { mc_ADS.showIngameAds(_root, afterInterLevel, this, undefined, undefined, undefined); } else if (((levelNum_ % 5) == 0) && (Helper.SHOW_INGAMEADS == true)) { mc_ADS.showIngameAds(_root, afterInterLevel, this, undefined, undefined, undefined); } else { afterInterLevel(); } return; case MenuBase.RCODE_GET_IT : (getURL(url_xml_.firstChild.attributes.url, "_blank"));// not popped return; case MenuBase.RCODE_HOTEL : NewMenu.adBox2.removeMovieClip(); loadingMenu_ = attachMovie("LoadingMenu", "loading", getNextHighestDepth()); loadingMenu_.create(this, true); loadingMenu_.mcBody._visible = true; loadingMenu_.loadIndex_ = 0; loadingMenu_.addText(dictXML.firstChild.attributes.menu_PAYED, new flash.geom.Point(loadingMenu_._width / 2, 270)); loadingMenu_.addText((dictXML.firstChild.attributes.menu_LEVEL + ": ") + 1, new flash.geom.Point(loadingMenu_._width / 2, 170)); loadingMenu_.addText((dictXML.firstChild.attributes.menu_GOAL + ": ") + 90, new flash.geom.Point(loadingMenu_._width / 2, 220)); loadingMenu_.addText((((("0 " + dictXML.firstChild.attributes.menu_OF) + " ") + 7000) + " ") + dictXML.firstChild.attributes.menu_HAS, new flash.geom.Point(loadingMenu_._width / 2, 245)); loadingMenu_.addText(dictXML.firstChild.attributes.menu_PAYED, new flash.geom.Point(loadingMenu_._width / 2, 270)); loadingMenu_.update(); congrShowed_ = true; bankPayed_ = 0; totalEarned_ = 0; registerHotelMenu(); return; case MenuBase.RCODE_SHOP : registerShopMenu(); return; case MenuBase.RCODE_RESUME : ResumeMenu.DisAppear(); HotelMenu.enableMenu(); if ((nowCustomers_ == 0) && (totalCustomers_ == maxCustomers_)) { countMoney(); } else { programState_ = PST_GAME_START; } Helper.musicPlay("music1"); startTime_ = getTimer(); lastClicked_ = startTime_; return; case MenuBase.RCODE_ABORT : var return_obj = function () { }; return_obj.prototype.DoAction = function () { }; var retobj = new return_obj(); if ((totalEarned_ > 0) && (Helper.SHOW_MOCHIADS == true)) { MochiAd.sendHighScore({id:"5be07b936863d57a", name:userName_, score:totalEarned_}, retobj, "DoAction"); } if ((totalEarned_ > 0) && (Helper.KONGREGATE == true)) { _root.kongregateScores.submit(totalEarned_); } _root.Game1.afterHighScoreSend(); return; case MenuBase.RCODE_JANE : if (programState_ == PST_GAME_START) { programState_ = PST_GAME_PAUSE; GameHelper.registerResumeMenu(); ResumeMenu.enableMenu(); } return; case undefined : if (namePressed_ == true) { break; } if (restartGame_ == true) { restartGame_ = false; restartGame(); } else { gotoShop(); } } } } function clearLoadedData() { resetLevel(); levelNum_ = 0; cash_ = 0; levelcash_ = 0; mapObjects_.splice(0, mapObjects_.length); swapAbleArr_.splice(0, swapAbleArr_.length); mapObjsNames_.splice(0, mapObjsNames_.length); customersArr_.splice(0, customersArr_.length); registerDefNames(); } function getPrevEmptyDepth(aVal) { var i = aVal; while (i > 0) { if (((HotelMenu.getInstanceAtDepth(i) == undefined) && (i != 7103)) && (i != 7106)) { return(i); } i--; } } function getNextEmptyDepth(aVal) { var i = aVal; while (i < 20000) { if (((HotelMenu.getInstanceAtDepth(i) == undefined) && (i != 7103)) && (i != 7106)) { return(i); } i++; } } function doDrop(values) { } function doFreeRight(values) { values[0].animObject.setState(["JANE", "MOVING", "BODY", "BACK", "HANDRIGHT", "FREE"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "FRONT", "HANDRIGHT", "FREE"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "SIDELEFT", "HANDRIGHT", "FREE"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "SIDERIGHT", "HANDRIGHT", "FREE"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "BACKSIDELEFT", "HANDRIGHT", "FREE"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "BACKSIDERIGHT", "HANDRIGHT", "FREE"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "FRONTSIDELEFT", "HANDRIGHT", "FREE"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "FRONTSIDERIGHT", "HANDRIGHT", "FREE"]); } function doFreeLeft(values) { values[0].animObject.setState(["JANE", "MOVING", "BODY", "BACK", "HANDLEFT", "FREE"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "FRONT", "HANDLEFT", "FREE"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "SIDELEFT", "HANDLEFT", "FREE"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "SIDERIGHT", "HANDLEFT", "FREE"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "BACKSIDELEFT", "HANDLEFT", "FREE"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "BACKSIDERIGHT", "HANDLEFT", "FREE"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "FRONTSIDELEFT", "HANDLEFT", "FREE"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "FRONTSIDERIGHT", "HANDLEFT", "FREE"]); } function doTakingLeft(values) { values[0].animObject.setState(["JANE", "MOVING", "BODY", "FRONT", "HANDLEFT", "T2"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "SIDELEFT", "HANDLEFT", "T2"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "SIDERIGHT", "HANDLEFT", "T2"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "FRONTSIDERIGHT", "HANDLEFT", "T2"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "FRONTSIDELEFT", "HANDLEFT", "T2"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "BACK", "HANDLEFT", "T2"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "BACKSIDERIGHT", "HANDLEFT", "T2"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "BACKSIDELEFT", "HANDLEFT", "T2"]); } function doTakingRight(values) { values[0].animObject.setState(["JANE", "MOVING", "BODY", "FRONT", "HANDRIGHT", "T2"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "SIDELEFT", "HANDRIGHT", "T2"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "SIDERIGHT", "HANDRIGHT", "T2"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "FRONTSIDERIGHT", "HANDRIGHT", "T2"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "FRONTSIDELEFT", "HANDRIGHT", "T2"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "BACK", "HANDRIGHT", "T2"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "BACKSIDERIGHT", "HANDRIGHT", "T2"]); values[0].animObject.setState(["JANE", "MOVING", "BODY", "BACKSIDELEFT", "HANDRIGHT", "T2"]); } function makeOptArray(optKey) { var retArr = new Array(); if (!(optKey === MenuBase.OPT_CODE_TYPE_LABEL)) { } else { retArr.push(optKey); retArr.push(null); retArr.push(null); retArr.push(null); return(retArr); } } function stopGame() { var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i].request_.name_ != "") { mapObjects_[i].request_.resetRequest(true); mapObjects_[i].counter_ = 0; } i++; } aPorter._x = 330; aPorter._y = 150; aPorter.reset(); aMaid._x = -30; aMaid._y = 195; aMaid._alpha = 0; aMaid.reset(); programState_ = PST_GAME_STOPED; } function startGame() { programState_ = PST_CREATING_OBJS; wndCash_.updateCashData(); wndClients_.updateData(); } function registerShopMenu() { GameHelper.registerShopMenu(this); } function load0() { currLoading++; } function load1() { var xSize = Stage.width; var ySize = Stage.height; hotelMc = attachMovie("Hotel", "Epizode", getNextHighestDepth()); hotelMc._alpha = 0; hotelMc.create("Epizod1", this); map_ = new Map(); map_.W = (Stage.width / Map.CELL_SIZE) + 1; map_.H = (Stage.height / Map.CELL_SIZE) + 1; map_.X = 0; map_.Y = 0; currLoading++; } function load2() { currLoading++; } function getFullTaskPrice() { var sumPrice = 0; var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i].price_ != undefined) { sumPrice = sumPrice + mapObjects_[i].price_; } i++; } return(sumPrice); } function getAverageTaskPrice() { var priceObjs = 0; var sumPrice = 0; var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i].price_ != undefined) { priceObjs++; sumPrice = sumPrice + mapObjects_[i].price_; } i++; } return(Math.floor(sumPrice / priceObjs)); } function setPopularity() { levelPopularity_ = 5; var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i].popularityAdd_ != undefined) { levelPopularity_ = levelPopularity_ + mapObjects_[i].popularityAdd_; } i++; } } function setGoal() { if (maxCustomers_ == 3) { Customer.ROOM_WAIT_TIME = 10000; } else if (maxCustomers_ == 4) { Customer.ROOM_WAIT_TIME = 13000; } else if (maxCustomers_ == 5) { Customer.ROOM_WAIT_TIME = 16000; } else { Customer.ROOM_WAIT_TIME = 19000; } goal_ = (maxCustomers_ * getFullTaskPrice()) + (maxCustomers_ * 10); populMoney_ = Math.floor(((reqsPossible_.length + 2) * maxCustomers_) * (levelPopularity_ / 5)); maxMoney_ = goal_ + populMoney_; cashBar_.maxIndex_ = populMoney_; cashBar_.indexValue_ = 0; cashBar_.update(); var addGoal = 0; var badRequests = 0; var maxRequests = (maxCustomers_ * (reqsPossible_.length + 2)); if (bankPayed_ >= BANKTOPAY) { badRequests = 3; } else if (levelNum_ > 6) { badRequests = 5; } else if (levelNum_ > 4) { badRequests = maxRequests / 3; } else if (levelNum_ > 2) { badRequests = maxRequests / 2; } else if (levelNum_ >= 0) { badRequests = maxRequests; } addGoal = populMoney_ - (badRequests * (levelPopularity_ / 5)); if (Math.floor(addGoal) > 0) { goal_ = goal_ + Math.floor(addGoal); } wndCash_.updateCashData(); } function setClientsCount() { var baseClientsCount = 3; var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i].clientsAdd_ != undefined) { baseClientsCount = baseClientsCount + mapObjects_[i].clientsAdd_; } i++; } maxCustomers_ = baseClientsCount; } function load3() { var menuDataArr = new Array(); var codeArr = new Array("0", "HotelMenu"); var alignGroups = new Array(); var dataBack = new Array(); var txtLblsArr = new Array(); var alignObjs = new Array(); var counter = txtLblsArr.length; var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(dictXML.firstChild.attributes.menu_MENU); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_JANE); aBtnInfo.settxtStyle(TextStyles.txtStyleGameMenuBtn); var optArr = new Array(); var statesArr = new Array(); statesArr.push("gamemenu"); optArr.push(statesArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_BMPFILL); optArr.push(descrArray); aBtnInfo.setOptArr(optArr); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); var alignArray = new Array(); alignArray.push(alignObjs); alignArray.push(new flash.geom.Rectangle(358, 356, 50, 40)); alignArray.push(MenuBase.DISTRIB_CNTR_VERT); alignGroups.push(alignArray); codeArr.push(alignGroups); codeArr.push(MenuBase.WNDSTYLE_MODAL); dataBack.push(""); dataBack.push(new flash.geom.Point(Stage.width, Stage.height)); menuDataArr.push(codeArr); menuDataArr.push(dataBack); menuDataArr.push(txtLblsArr); var adepts = new Array(); MenuFactory.registerMenu(this, "HotelMenu", menuDataArr, new flash.geom.Point(0, 0), true); HotelMenu._alpha = 0; BtnFactory.disableButton(HotelMenu[aBtnInfo.getid()]); menuBtn_mc_ = HotelMenu[aBtnInfo.getid()]; menuBtn_mc_.swapDepths(21000); wndServiceL_ = HotelMenu.attachMovie("ServiceWindow", "ServiceWindowL", IFACEDEPTH + 10); wndServiceL_.createByXML(xmlObjects["data//serviceL.xml"], this); wndServiceL_._y = Stage.height - wndServiceL_._height; wndServiceL_._x = -10; wndServiceL_._alpha = 0; wndServiceR_ = HotelMenu.attachMovie("ServiceWindow", "ServiceWindowR", IFACEDEPTH + 40); wndServiceR_.createByXML(xmlObjects["data//serviceR.xml"], this); wndServiceR_._y = Stage.height - wndServiceR_._height; wndServiceR_._x = Stage.width - wndServiceR_._width; wndServiceR_._alpha = 0; cashBar_ = HotelMenu.attachMovie("CashBar", "aCashbar", IFACEDEPTH + 20); cashBar_.Create(this); cashBar_.maxIndex_ = 100; cashBar_.indexValue_ = 0; cashBar_.update(); cashBar_._x = 195; cashBar_._y = Stage.height - 25; maxCustomers_ = Number(xmlObjects["data//levels.xml"].firstChild.childNodes[levelNum_].attributes.clients); currLoading++; } function isCutting(aname) { var i = 0; while (i < cutArray_.length) { if (cutArray_[i] == aname) { return(true); } i++; } return(false); } function load4() { var i = 1; while (i < (roomsXMLArr.length + 1)) { var under = roomsXMLArr[i - 1].firstChild.attributes.under; var zorder = roomsXMLArr[i - 1].firstChild.attributes.zorder; var aRoom = HotelMenu.attachMovie("Room", "Room" + String(i), zorder); aRoom.CreateByXML(roomsXMLArr[i - 1], this); aRoom.under_ = under; aRoom._alpha = 0; RegisterMapObject(aRoom); i++; } objsToCreate = new Array(); var i = 0; while (i < mapObjsNames_.length) { objsToCreate.push(mapObjsNames_[i]); i++; } currLoading++; } function load5() { if (objsToCreate.length > 0) { var aname = String(objsToCreate.pop()); if (isCutting(aname) == false) { CreateMO(aname); } } else { cutArray_.splice(0, cutArray_.length); initMap(); currLoading++; } } function load6() { setPopularity(); setClientsCount(); setGoal(); wndCash_ = HotelMenu.attachMovie("CashWindow", "aCash", IFACEDEPTH + 9); wndCash_.create(this); wndCash_._y = Stage.height - wndCash_._height; wndCash_._x = 97; wndCash_._alpha = 0; wndClients_ = HotelMenu.attachMovie("ClientsWindow", "aClients", IFACEDEPTH + 30); wndClients_.create(this); wndClients_._y = Stage.height - wndClients_._height; wndClients_._x = 355; wndClients_._alpha = 0; aMaid = HotelMenu.attachMovie("Personal", "Maid", MAIDDEPTH); aMaid.CreateByXML(xmlObjects["data//maid.xml"], this); swapAbleArr_.push(aMaid); aMaid._x = -30; aMaid._y = 195; aMaid._alpha = 0; aMaid.reset(); aPorter = HotelMenu.attachMovie("Personal", "Porter", PORTERDEPTH); aPorter.CreateByXML(xmlObjects["data//porter.xml"], this); swapAbleArr_.push(aPorter); aPorter._x = 330; aPorter._y = 150; aPorter.reset(); currLoading++; } function load7() { if (customersArr_.length == 8) { currLoading++; } else { var aCustomer; aCustomer = HotelMenu.attachMovie("Customer", "Customer" + customersArr_.length, getNextEmptyDepth(JANEDEPTH)); if (customersArr_.length > 4) { aCustomer.CreateByXML(xmlObjects["data//eng_anim.xml"], this); } else { aCustomer.CreateByXML(xmlObjects["data//boy_anim.xml"], this); } aCustomer._x = Stage.width; aCustomer._y = Stage.height; customersArr_.push(aCustomer); swapAbleArr_.push(aCustomer); aCustomer.currCmd_ = Customer.CMD_STAND_OUT; } } function load8() { aJane = HotelMenu.attachMovie("Human", "Jane1", getNextEmptyDepth(JANEDEPTH)); aJane._alpha = 0; aJane.CreateByXML(xmlObjects["data//animation.xml"], this); aJane.registerOperation("TakeObjLeft", doTakingLeft); aJane.registerOperation("TakeObjRight", doTakingRight); aJane.registerOperation("FreeLeft", doFreeLeft); aJane.registerOperation("FreeRight", doFreeRight); swapAbleArr_.push(aJane); aJane._x = 50; aJane._y = 140; currLoading++; } function registerHotelMenu() { loadFuncArr_ = new Array(); lastrepaired = 0; loadFuncArr_.push(load0); loadFuncArr_.push(load1); loadFuncArr_.push(load2); loadFuncArr_.push(load3); loadFuncArr_.push(load4); loadFuncArr_.push(load5); loadFuncArr_.push(load6); loadFuncArr_.push(load7); loadFuncArr_.push(load8); currLoading = 0; prevLoading = -1; } function registerGameAdMenu() { var menuDataArr = new Array(); var codeArr = new Array("0", "AdMenu"); var alignGroups = new Array(); var dataBack = new Array(); var txtLblsArr = new Array(); var alignLbls = new Array(); var alignArraylbl = new Array(); var alignObjs = new Array(); var counter = txtLblsArr.length; var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(dictXML.firstChild.attributes.menu_GETIT); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_GAMEAD_GETIT); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 100); optArr.push(statesArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); aBtnInfo.setOptArr(optArr); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(dictXML.firstChild.attributes.menu_OK); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_GAMEAD_OK); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 100); optArr.push(statesArr); aBtnInfo.setOptArr(optArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); var alignArray = new Array(); alignArray.push(alignObjs); alignArray.push(new flash.geom.Rectangle(390, 260, 90, 150)); alignArray.push(MenuBase.DISTRIB_CNTR_VERT); alignGroups.push(alignArray); codeArr.push(alignGroups); codeArr.push(MenuBase.WNDSTYLE_MODAL); menuDataArr.push(codeArr); menuDataArr.push(dataBack); menuDataArr.push(txtLblsArr); MenuFactory.registerMenu(this, "AdMenu", menuDataArr, new flash.geom.Point(0, 0), true); } function getFreeOuterMebels() { var retArr = new Array(); var iMO = 0; while (iMO < mapObjects_.length) { if ((mapObjects_[iMO].getPersName() == "ARMCHAIR_LEFT") || (mapObjects_[iMO].getPersName() == "ARMCHAIR_RIGHT")) { if (mapObjects_[iMO].counter_ == 0) { retArr.push(mapObjects_[iMO]); } } iMO++; } return(retArr); } function getCustomerInPlace(whereIs) { var i = 0; while (i < customersArr_.length) { if (customersArr_[i].whereIs_ == whereIs) { return(customersArr_[i]); } i++; } return(undefined); } function getCustomerRequest(whereIs) { var i = 0; while (i < customersArr_.length) { if (customersArr_[i].whereIs_ == whereIs) { return(customersArr_[i].request_.name_); } i++; } return(""); } function unvisibleGame() { } function visibleGame() { hotelMc._alpha = 100; HotelMenu._alpha = 100; aJane._alpha = 100; wndServiceL_._alpha = 100; wndServiceR_._alpha = 100; wndCash_._alpha = 100; wndClients_._alpha = 100; var i = 0; while (i < mapObjects_.length) { mapObjects_[i]._alpha = 100; i++; } } function showGameAd() { loadingMenu_ = attachMovie("LoadingMenu", "loading", getNextHighestDepth()); loadingMenu_.create(this, false, false); loadingMenu_.loadIndex_ = 0; loadingMenu_.mcBody._visible = true; loadingMenu_.update(); programState_ = PST_WAITING_FOR_GAMEAD; loadingMenu_.addText(dictXML.firstChild.attributes.ad_1, new flash.geom.Point(loadingMenu_._width / 2, 170)); loadingMenu_.addText(dictXML.firstChild.attributes.ad_2, new flash.geom.Point(loadingMenu_._width / 2, 220)); loadingMenu_.addText(dictXML.firstChild.attributes.ad_3, new flash.geom.Point(loadingMenu_._width / 2, 245)); loadingMenu_.addText(dictXML.firstChild.attributes.ad_4, new flash.geom.Point(loadingMenu_._width / 2, 265)); loadingMenu_.addText(dictXML.firstChild.attributes.ad_5, new flash.geom.Point(loadingMenu_._width / 2, 295)); loadingMenu_.addText(dictXML.firstChild.attributes.ad_6, new flash.geom.Point(loadingMenu_._width / 2, 325)); registerGameAdMenu(); } function startFakeWaiting() { currFakeWaiting_ = 0; startTime_ = getTimer(); programState_ = PST_FAKE_WAITING; } function afterFakeWait() { if (Helper.SHOW_MOCHIADS == true) { Helper.musicPlay("music_menu"); } _root.Game1.loadingMenu_.setWaitPress(PST_CREATING_OBJS); } function aenterFrame() { switch (programState_) { case PST_EXIT_GAMEAD : AdMenu.removeMovieClip(); loadingMenu_.removeMovieClip(); popMenuCode(); programState_ = PST_AD_SHOWED; break; case PST_GAME_CREATING : if (XMLFactory.isLoading == false) { var isDone = true; var i = 0; while (i < xmlToLoad.length) { if ((xmlObjects[xmlToLoad[i]].loaded == false) || (xmlObjects[xmlToLoad[i]].loaded == undefined)) { isDone = false; var retXML = FactoryXML.loadExt(xmlToLoad[i], xmlObjects[xmlToLoad[i]]); if (retXML != undefined) { xmlObjects[xmlToLoad[i]] = retXML; } break; } i++; } } if (XMLFactory.isLoading == false) { var loaded = true; if (roomsXMLArr.length < 5) { var aRoomXML = FactoryXML.loadExt("data//room1.xml", null); roomsXMLArr.push(aRoomXML); var aRoomXML = FactoryXML.loadExt("data//room2.xml", null); roomsXMLArr.push(aRoomXML); var aRoomXML = FactoryXML.loadExt("data//room3.xml", null); roomsXMLArr.push(aRoomXML); var aRoomXML = FactoryXML.loadExt("data//room4.xml", null); roomsXMLArr.push(aRoomXML); var aRoomXML = FactoryXML.loadExt("data//room5.xml", null); roomsXMLArr.push(aRoomXML); } else { loading_ = false; } } if ((isDone == true) && (loading_ == false)) { loadMO(); if ((Helper.SHOW_MOCHIADS == true) || (Helper.SCORESTYPE == "SMILE")) { loadingMenu_ = attachMovie("LoadingMenu", "loading", getNextHighestDepth()); loadingMenu_.create(this, false, true, "OK", "INPUTNAME"); loadingMenu_.setWaitPress(PST_CREATING_OBJS, 1); } else { GameHelper.registerMainMenu(); } programState_ = PST_LOADING_FIRST; } break; case PST_LOADING_FIRST : if (currLoading != prevLoading) { prevLoading = currLoading; loadingMenu_.loadIndex_ = (100 * currLoading) / loadFuncArr_.length; loadingMenu_.update(); if (currLoading < loadFuncArr_.length) { loadFuncArr_[currLoading].call(this); } else { setPopularity(); setClientsCount(); setGoal(); programState_ = PST_WAITING_FOR_PRESS; loadingMenu_.setWaitPress(PST_CREATING_OBJS); loadingMenu_.addText((dictXML.firstChild.attributes.menu_LEVEL + ": ") + String(levelNum_ + 1), new flash.geom.Point(loadingMenu_._width / 2, 170)); loadingMenu_.addText((dictXML.firstChild.attributes.menu_GOAL + ": ") + goal_, new flash.geom.Point(loadingMenu_._width / 2, 220)); loadingMenu_.addText((((((bankPayed_ + " ") + dictXML.firstChild.attributes.menu_OF) + " ") + BANKTOPAY) + " ") + dictXML.firstChild.attributes.menu_HAS, new flash.geom.Point(loadingMenu_._width / 2, 245)); loadingMenu_.addText(dictXML.firstChild.attributes.menu_PAYED, new flash.geom.Point(loadingMenu_._width / 2, 270)); } } else { loadFuncArr_[currLoading].call(this); } break; case PST_CREATING_OBJS : loadingMenu_.removeMovieClip(); loadingMenu_ = null; Helper.musicPlay("music1"); visibleGame(); programState_ = PST_GET_READY; startNewItms = getTimer(); brightUp_ = false; GameHelper.ShowStartTextAnimation(dictXML.firstChild.attributes.menu_DAY + String(levelNum_ + 1), "goGame", 4000); Helper.PlaySound("get_ready", 1); lastrepaired = 0; var aCoff = getMO("COFFEE"); if (aCoff != undefined) { aCoff.request_.eraseRepair(); } aCoff = getMO("ADD_RIGHT"); if (aCoff == undefined) { break; } aCoff.request_.eraseRepair(); } switch (programState_) { case PST_GET_READY : if (boughtArray_.length > 0) { var currNewItms = getTimer(); var tDone = (currNewItms - startNewItms); var koef = (tDone / 700); var alphaval = (100 * koef); if (tDone >= 700) { startNewItms = currNewItms; } } var ba = 0; while (ba < boughtArray_.length) { boughtArray_[ba]._alpha = alphaval; ba++; } return; case PST_AD_SHOWED : if (levelcash_ >= goal_) { totalEarned_ = totalEarned_ + levelcash_; } if ((bankPayed_ < BANKTOPAY) && (levelcash_ >= goal_)) { bankPayed_ = bankPayed_ + levelcash_; } if (bankPayed_ > BANKTOPAY) { bankPayed_ = BANKTOPAY; } var btnText; if (levelcash_ >= goal_) { btnText = dictXML.firstChild.attributes.menu_LEVELUP; } else { btnText = dictXML.firstChild.attributes.game_TRYAGAIN; } loadingMenu_ = attachMovie("LoadingMenu", "loading", getNextHighestDepth()); loadingMenu_.create(this, false, true, btnText); loadingMenu_.loadIndex_ = 0; loadingMenu_.update(); programState_ = PST_WAITING_FOR_PRESS; if ((levelcash_ >= goal_) || (levelNum_ > 0)) { loadingMenu_.setWaitPress(PST_GOTO_SHOP); } else if (levelNum_ == 0) { loadingMenu_.setWaitPress(PST_RESTART_GAME); restartGame_ = true; } else { loadingMenu_.setWaitPress(PST_GOTO_SHOP); } Helper.musicPlay("music_menu"); if ((bankPayed_ >= BANKTOPAY) && (congrShowed_ == false)) { congrShowed_ = true; loadingMenu_.addText(dictXML.firstChild.attributes.menu_CONGRATE, new flash.geom.Point(loadingMenu_._width / 2, 170)); loadingMenu_.addText(dictXML.firstChild.attributes.menu_YOU_HAVE_MADE, new flash.geom.Point(loadingMenu_._width / 2, 200)); loadingMenu_.addText(dictXML.firstChild.attributes.menu_GET_FULL, new flash.geom.Point(loadingMenu_._width / 2, 230)); loadingMenu_.addText(dictXML.firstChild.attributes.menu_NEXT_EPIZODES, new flash.geom.Point(loadingMenu_._width / 2, 260)); } else { if (levelcash_ >= goal_) { loadingMenu_.addText(dictXML.firstChild.attributes.menu_PERFECT, new flash.geom.Point(loadingMenu_._width / 2, 170)); } else { loadingMenu_.addText(dictXML.firstChild.attributes.menu_TRY_AGAIN, new flash.geom.Point(loadingMenu_._width / 2, 170)); } loadingMenu_.addText((dictXML.firstChild.attributes.menu_GOAL + ": ") + goal_, new flash.geom.Point(loadingMenu_._width / 2, 195)); loadingMenu_.addText((dictXML.firstChild.attributes.menu_MONEY_EARNED + ": ") + levelcash_, new flash.geom.Point(loadingMenu_._width / 2, 220)); loadingMenu_.addText((dictXML.firstChild.attributes.menu_GRAND_TOTAL + ": ") + totalEarned_, new flash.geom.Point(loadingMenu_._width / 2, 245)); loadingMenu_.addText((dictXML.firstChild.attributes.menu_BANK_DEPT + ": ") + String(BANKTOPAY - bankPayed_), new flash.geom.Point(loadingMenu_._width / 2, 270)); } return; case PST_MONEY_TAKED : disableWindows(); if (levelNum_ < 4) { programState_ = PST_AD_SHOWED; } else { showGameAd(); } return; case PST_MONEY_COUNT : case PST_GAME_START : case PST_WAITING_STOPING : case PST_WAIT_MONEY_TAKE : case PST_FAKE_WAITING : timeDelta = getTimer(); timeDone_ = timeDelta - startTime_; startTime_ = timeDelta; if (programState_ == PST_MONEY_COUNT) { waitingTime_ = waitingTime_ - timeDone_; if (waitingTime_ <= 0) { waitingTime_ = moneyWaitingTime; if (cashBar_.indexValue_ > 0) { var outVal; if ((cashBar_.indexValue_ - minusValue_) >= 0) { cashBar_.indexValue_ = cashBar_.indexValue_ - minusValue_; levelcash_ = levelcash_ + minusValue_; outVal = minusValue_; } else { outVal = cashBar_.indexValue_; levelcash_ = levelcash_ + cashBar_.indexValue_; cashBar_.indexValue_ = 0; } cashBar_.update(); GameHelper.showMoneyUp("+" + outVal, "eraseText", cashBar_._x + cashBar_.fillength, Stage.height - 50, -10, -10, 0.5, 0.5); Helper.PlaySound("action_case", 1); wndCash_.updateCashData(); } else { if (levelcash_ >= goal_) { GameHelper.ShowStartTextAnimation(dictXML.firstChild.attributes.game_LEVELUP, "eraseLevelUp", StartTextAnimation_TIME, 250); MUSICSOUND.stop(); Helper.PlaySound("levelup", 1); } else { GameHelper.ShowStartTextAnimation(dictXML.firstChild.attributes.game_TRYAGAIN, "eraseLevelUp", StartTextAnimation_TIME, 250); MUSICSOUND.stop(); Helper.PlaySound("leveldefeat", 1); } programState_ = PST_WAIT_MONEY_TAKE; gameAdShowed_ = false; } } } else if (programState_ == PST_FAKE_WAITING) { if (loadingMenu_.loadIndex_ < 100) { currFakeWaiting_ = currFakeWaiting_ + timeDone_; if (currFakeWaiting_ < 3000) { loadingMenu_.loadIndex_ = 100 * (currFakeWaiting_ / 3000); loadingMenu_.update(); return(undefined); } currFakeWaiting_ = 0; loadingMenu_.loadIndex_ = 100; programState_ = PST_WAITING_FOR_PRESS; if ((Helper.SHOW_MOCHIADS == true) && ((levelNum_ % 4) == 0)) { MUSICSOUND.stop(); MochiAd.showInterLevelAd({id:"5be07b936863d57a", res:"550x400", ad_finished:afterFakeWait}); } else { afterFakeWait(); } return(undefined); } } if (programState_ == PST_GAME_START) { lastrepaired = lastrepaired + timeDone_; if (lastrepaired >= REPAIRPAUSE) { if (Math.random() > 0.4) { var aMeb = getMO("COFFEE"); } else { var aMeb = getMO("ADD_RIGHT"); } if (((aMeb != undefined) && (aMeb.canBreak_ == true)) && (aMeb.request_.name_ != "repair")) { aMeb.callBrokeRequest(); } lastrepaired = 0; } else if (aMeb.request_.name_ == "repair") { lastrepaired = 0; } } aJane.quant(timeDone_); if (aJane.isChanged()) { aJane.resultBitmap.colorTransform(aJane.resultBitmap.rectangle, transparent_); aJane.setChanged(false); aJane.drawIt(); } aMaid.quant(timeDone_); if (aMaid.isChanged()) { aMaid.resultBitmap.colorTransform(aMaid.resultBitmap.rectangle, transparent_); aMaid.setChanged(false); aMaid.drawIt(); } aPorter.quant(timeDone_); if (aPorter.isChanged()) { aPorter.resultBitmap.colorTransform(aPorter.resultBitmap.rectangle, transparent_); aPorter.setChanged(false); aPorter.drawIt(); } if (programState_ == PST_WAITING_STOPING) { if ((aPorter.inKitchen_ == true) && (aMaid.inKitchen_ == true)) { stopAndShop(); return; } } else { var i = 0; while (i < customersArr_.length) { var currCust = customersArr_[i]; if (currCust.currCmd_ != Customer.CMD_STAND_OUT) { currCust.quant(timeDone_); if (currCust.isChanged()) { currCust.resultBitmap.colorTransform(currCust.resultBitmap.rectangle, transparent_); currCust.setChanged(false); currCust.drawIt(); } } i++; } var iMO = 0; while (iMO < mapObjects_.length) { mapObjects_[iMO].quant(timeDone_); if (mapObjects_[iMO].isChanged()) { var bData = mapObjects_[iMO].getResultBmp(); bData.colorTransform(bData.rectangle, transparent_); mapObjects_[iMO].setChanged(false); mapObjects_[iMO].drawIt(); } iMO++; } wndServiceL_.quant(timeDone_); if (wndServiceL_.isChanged()) { wndServiceL_.resultBitmap.colorTransform(wndServiceL_.resultBitmap.rectangle, transparent_); wndServiceL_.setChanged(false); wndServiceL_.drawIt(); } wndServiceR_.quant(timeDone_); if (wndServiceR_.isChanged()) { wndServiceR_.resultBitmap.colorTransform(wndServiceR_.resultBitmap.rectangle, transparent_); wndServiceR_.setChanged(false); wndServiceR_.drawIt(); } if (gamePlay_ != true) { break; } if (hasRequests() == false) { lastClicked_ = timeDelta; } if ((timeDelta - lastClicked_) >= 8000) { programState_ = PST_GAME_PAUSE; GameHelper.registerResumeMenu(); ResumeMenu.enableMenu(); return(undefined); } if (!((totalCustomers_ != maxCustomers_) && (canCustomerGo()))) { break; } if (((lastGoingTime_ == undefined) || (lastGoingTime_ >= NEXTVISITDELAY)) && (getEmptyRoom() != -1)) { var aCustomer = getFirstOutCustomer(); if (aCustomer == undefined) { aCustomer = HotelMenu.attachMovie("Customer", "Customer" + customersArr_.length, getNextEmptyDepth(JANEDEPTH)); aCustomer.CreateByXML(xmlObjects["data//boy_anim.xml"], this); aCustomer._x = Stage.width; aCustomer._y = Stage.height; customersArr_.push(aCustomer); swapAbleArr_.push(aCustomer); } aCustomer._x = Stage.width; aCustomer._y = Stage.height; totalCustomers_++; nowCustomers_++; aCustomer.init(); aCustomer.enterHotel(); wndClients_.updateData(); lastGoingTime_ = 0; } else { if (getEmptyRoom() == -1) { break; } lastGoingTime_ = lastGoingTime_ + timeDone_; } } } } function getFirstOutCustomer() { var tempArr = new Array(); var i = 0; while (i < customersArr_.length) { if (customersArr_[i].currCmd_ == Customer.CMD_STAND_OUT) { tempArr.push(customersArr_[i]); } i++; } if (tempArr.length > 0) { return(tempArr[Math.floor(Math.random() * (tempArr.length - 1))]); } return(undefined); } function canCustomerGo() { var i = 0; while (i < customersArr_.length) { if (((((customersArr_[i].currCmd_ == Customer.CMD_ENTERING_HTL) || (customersArr_[i].currCmd_ == Customer.CMD_AWAITING_ENTR)) || (customersArr_[i].currCmd_ == Customer.CMD_GO_RECEPTION)) || (customersArr_[i].currCmd_ == Customer.CMD_AWAITING_RECEPTION)) || (customersArr_[i].currCmd_ == Customer.CMD_RESET)) { return(false); } i++; } return(true); } function hideKey() { key_clip.removeMovieClip(); keyVisible_ = false; } function isKeyNeeded() { if (countRequests("add") == 0) { key_clip.removeMovieClip(); keyVisible_ = false; } } function scaleJPoints() { var i = 0; while (i < mapObjects_.length) { var entry = mapObjects_[i].getJentry(); if (entry != undefined) { entry.x = entry.x * scaleFactorX; entry.y = entry.y * scaleFactorY; entry.width = entry.width * scaleFactorY; entry.height = entry.height * scaleFactorY; mapObjects_[i].setEntry(entry); } entry = mapObjects_[i].getCentry(); if (entry != undefined) { entry.x = entry.x * scaleFactorX; entry.y = entry.y * scaleFactorY; entry.width = entry.width * scaleFactorY; entry.height = entry.height * scaleFactorY; mapObjects_[i].setCEntry(entry); } i++; } } function drawPath() { var i = 0; while (i < pathArr_.length) { var xPoint = Number(pathArr_[i][1]); var yPoint = Number(pathArr_[i][0]); xPoint = map_.XConvertToLocal(xPoint); yPoint = map_.YConvertToLocal(yPoint); dbgClip.beginFill(16776960, 80); dbgClip.moveTo(xPoint - 2, yPoint - 2); dbgClip.lineTo(xPoint + 2, yPoint - 2); dbgClip.lineTo(xPoint + 2, yPoint + 2); dbgClip.lineTo(xPoint - 2, yPoint + 2); dbgClip.lineTo(xPoint - 2, yPoint - 2); dbgClip.endFill(); i++; } } function drawJPoints() { var i = 0; while (i < mapObjects_.length) { var entry = mapObjects_[i].getJentry(); if (entry != undefined) { dbgClip.beginFill(255, 80); dbgClip.moveTo(entry.x, entry.y); dbgClip.lineTo(entry.x + entry.width, entry.y); dbgClip.lineTo(entry.x + entry.width, entry.y + entry.height); dbgClip.lineTo(entry.x, entry.y + entry.height); dbgClip.lineTo(entry.x, entry.y); dbgClip.endFill(); } entry = mapObjects_[i].getCentry(); if (entry != undefined) { dbgClip.beginFill(65535, 80); dbgClip.moveTo(entry.x, entry.y); dbgClip.lineTo(entry.x + entry.width, entry.y); dbgClip.lineTo(entry.x + entry.width, entry.y + entry.height); dbgClip.lineTo(entry.x, entry.y + entry.height); dbgClip.lineTo(entry.x, entry.y); dbgClip.endFill(); } i++; } } function heroToPoint(xpos, ypos) { var pathArray = Pathfinding.findPath(map_.map, map_.YConvertToMap((aJane._y + aJane._height) + 2), map_.XConvertToMap(aJane._x + (aJane._width / 2)), map_.YConvertToMap(ypos), map_.XConvertToMap(xpos)); pathArray.shift(); aJane.MoveToPath(pathArray); } function MoveHero() { var pathArray = Pathfinding.findPath(map_.map, map_.YConvertToMap((aJane._y + aJane._height) + 2), map_.XConvertToMap(aJane._x + (aJane._width / 2)), map_.YConvertToMap(_ymouse), map_.XConvertToMap(_xmouse)); pathArray.shift(); aJane.MoveToPath(pathArray); } function RegisterMOName(aName) { mapObjsNames_.push(aName); } function unRegMOName(aName) { var i = 0; while (i < mapObjsNames_.length) { if (mapObjsNames_[i] == aName) { mapObjsNames_.splice(0, 1); } i++; } } function RegisterMapObject(mo) { mapObjects_.push(mo); } function getYellowPoint(aName) { return(yelowPoints.aName); } function startInitMap() { yelowPoints = new Array(); yelowPoints.KITCHEN = new flash.geom.Rectangle(-20, 220, 75, 20); yelowPoints.TRLEFT = new flash.geom.Rectangle(140, 190, 20, 20); yelowPoints.TRRIGHT = new flash.geom.Rectangle(389, 200, 10, 10); var depth; if (dbgClip == undefined) { depth = 25000; } else { depth = 25000; } dbgClip = createEmptyMovieClip("square_mc", getNextHighestDepth()); if (map_.map != undefined) { map_.map.splice(0, map_.map.length); } } function reInitMap(mo) { var aMC = MovieClip(mo.getMC()); if (aMC.blocking_ != false) { var mY = 0; while (mY < map_.H) { var celly = (mY * Map.CELL_SIZE); var mX = 0; while (mX < map_.W) { var cellx = (mX * Map.CELL_SIZE); var full = false; if (aMC.hitTest(cellx + Map.CELL_SIZE, (celly + Map.CELL_SIZE) - 1, true) || (aMC.hitTest(cellx + 1, celly + 1, true))) { map_.map[mY][mX] = 0; } var aJep = mo.getJentry(); if (aJep.intersects(new flash.geom.Rectangle(cellx + 1, celly + 1, Map.CELL_SIZE, Map.CELL_SIZE))) { map_.map[mY][mX] = 1; } aJep = aMC.getCentry(); if (aJep.intersects(new flash.geom.Rectangle(cellx + 1, celly + 1, Map.CELL_SIZE, Map.CELL_SIZE))) { map_.map[mY][mX] = 1; } var i = 0; while (i < pointsNames.length) { if (yelowPoints[pointsNames[i]].intersects(new flash.geom.Rectangle(cellx + 1, celly + 1, Map.CELL_SIZE, Map.CELL_SIZE))) { map_.map[mY][mX] = 1; } i++; } mX++; } mY++; } } } function initMap() { startInitMap(); var mY = 0; while (mY < map_.H) { map_.map.push(new Array()); var celly = (mY * Map.CELL_SIZE); var mX = 0; while (mX < map_.W) { var cellx = (mX * Map.CELL_SIZE); if (hotelMc.hitArea.hitTest(cellx + 1, celly + 1, true) && (hotelMc.mc_MovingMask.hitTest(cellx + Map.CELL_SIZE, (celly + Map.CELL_SIZE) - 1, true))) { var full = false; var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i].blocking_ != false) { var aMC = MovieClip(mapObjects_[i].getMC()); if (aMC.hitTest(cellx + Map.CELL_SIZE, (celly + Map.CELL_SIZE) - 1, true) || (aMC.hitTest(cellx + 1, celly + 1, true))) { full = true; break; } } i++; } if (full == false) { map_.map[mY].push(1); } else { map_.map[mY].push(0); } } else { map_.map[mY].push(0); } var i = 0; while (i < mapObjects_.length) { var aJep = mapObjects_[i].getJentry(); if (aJep.intersects(new flash.geom.Rectangle(cellx + 1, celly + 1, Map.CELL_SIZE, Map.CELL_SIZE))) { map_.map[mY][mX] = 1; } aJep = mapObjects_[i].getCentry(); if (aJep.intersects(new flash.geom.Rectangle(cellx + 1, celly + 1, Map.CELL_SIZE, Map.CELL_SIZE))) { map_.map[mY][mX] = 1; } i++; } var i = 0; while (i < pointsNames.length) { if (yelowPoints[pointsNames[i]].intersects(new flash.geom.Rectangle(cellx + 1, celly + 1, Map.CELL_SIZE, Map.CELL_SIZE))) { map_.map[mY][mX] = 1; } i++; } mX++; } mY++; } } function DrawMap() { dbgClip.clear(); var mY = 0; while (mY < map_.H) { var mX = 0; while (mX < map_.W) { var cellx = map_.XConvertToLocal(mX); var celly = map_.YConvertToLocal(mY); if (map_.map[mY][mX] == 0) { dbgClip.beginFill(11141290, 40); dbgClip.moveTo(cellx, celly); dbgClip.lineTo(cellx + Map.CELL_SIZE, celly); dbgClip.lineTo(cellx + Map.CELL_SIZE, celly + Map.CELL_SIZE); dbgClip.lineTo(cellx, celly + Map.CELL_SIZE); dbgClip.lineTo(cellx, celly); dbgClip.endFill(); } else if (map_.map[mY][mX] == 1) { dbgClip.beginFill(65280, 40); dbgClip.moveTo(cellx, celly); dbgClip.lineTo(cellx + Map.CELL_SIZE, celly); dbgClip.lineTo(cellx + Map.CELL_SIZE, celly + Map.CELL_SIZE); dbgClip.lineTo(cellx, celly + Map.CELL_SIZE); dbgClip.lineTo(cellx, celly); dbgClip.endFill(); } mX++; } mY++; } } function loadMO() { var i = 0; while (i < mapObjsNames_.length) { if (mapObjsXMLArr_[mapObjsNames_[i] + ".xml"] == undefined) { mapObjsXMLArr_[mapObjsNames_[i] + ".xml"] = xmlObjects[("data//" + mapObjsNames_[i]) + ".xml"]; } i++; } } function doScale(aObj) { var tmpMatrix = aObj.transform.matrix; tmpMatrix.concat(scaleMatrix); aObj.transform.matrix = tmpMatrix; } function CreateMO(objName) { var under = mapObjsXMLArr_[objName + ".xml"].firstChild.attributes.under; var zorder = mapObjsXMLArr_[objName + ".xml"].firstChild.attributes.zorder; var zypoint = mapObjsXMLArr_[objName + ".xml"].firstChild.attributes.zypoint; var aClip = HotelMenu.getInstanceAtDepth(zorder); if (((aClip != undefined) && (objName != "coffee_u")) && (objName != "reception_u")) { aClip.swapDepths(getNextEmptyDepth(Number(zorder) + 1)); } var aMebel = HotelMenu.attachMovie("Mebel", objName, zorder); aMebel.CreateByXML(mapObjsXMLArr_[objName + ".xml"], this); aMebel.zorder_ = zorder; aMebel.under_ = under; aMebel.zyPoint_ = zypoint; RegisterMapObject(aMebel); if (under != "true") { swapAbleArr_.push(aMebel); } aMebel._alpha = 0; return(aMebel); } function getOrder() { return(++orderVal_); } function initLevel() { } function resetLevel() { reqsPossible_.splice(0, reqsPossible_.length); totalCustomers_ = 0; nowCustomers_ = 0; } 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; 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); } u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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); } function Create() { GAMEINSTANCE = this; Helper.snd_ = new Sound(_root.snd); CreateMusic(); if (Helper.LOCKEDTO != undefined) { if (_url.indexOf(Helper.LOCKEDTO) == -1) { return(undefined); } } userName_ = "Player"; if (Helper.HASMOCHIBOT == true) { __com_mochibot__("561f06f2", this, 10301, true); } hasStatistic_ = true; congrShowed_ = true; if (Helper.SINGLEFILE == false) { url_xml_ = new XML(); } bankPayed_ = 0; lastGoingTime_ = NEXTVISITDELAY - (NEXTVISITDELAY / 3); humanHelper = new HumanHelper(this); boughtArray_ = new Array(); cutArray_ = new Array(); programState_ = PST_GAME_CREATING; FactoryXML = new XMLFactory(); if (Helper.SINGLEFILE == false) { FactoryXML.loadExt("data//url.xml", url_xml_); } else { url_xml_ = FactoryXML.loadExt("data//url.xml", null); } if (Helper.SINGLEFILE == false) { dictXML = new XML(); } xmlToLoad = new Array("data//phone.xml", "data//maid.xml", "data//porter.xml", "data//animation.xml", "data//ashop.xml", "data//eng_anim.xml", "data//boy_anim.xml", "data//levels.xml", "data//serviceL.xml", "data//serviceR.xml", "data//hand.xml", "data//eat.xml", "data//paper.xml", "data//reception_u.xml", "data//reception1.xml", "data//coffee.xml", "data//coffee_u.xml", "data//ladder_left_btm.xml", "data//ladder_left_up.xml", "data//ladder_right_btm.xml", "data//ladder_right_up.xml", "data//add_left.xml", "data//add_right.xml", "data//lamp_left.xml", "data//lamp_right.xml", "data//arch1.xml", "data//arch2.xml", "data//arch3.xml", "data//arch4.xml", "data//arch5.xml", "data//shield_left.xml", "data//shield_right.xml", "data//chair.xml", "data//armchair_left.xml", "data//armchair_right.xml", "data//kitchen.xml", "data//fontain_old.xml", "data//flower_left.xml", "data//flower_right.xml", "data//armor_right.xml", "data//armor_left.xml"); if (Helper.SINGLEFILE == false) { xmlToLoad.push("data//translate.xml"); } xmlObjects = new Array(); xmlObjects["data//eng_anim.xml"] = FactoryXML.loadExt("data//eng_anim.xml", null); xmlObjects["data//boy_anim.xml"] = FactoryXML.loadExt("data//boy_anim.xml", null); xmlObjects["data//hand.xml"] = FactoryXML.loadExt("data//hand.xml", null); xmlObjects["data//eat.xml"] = FactoryXML.loadExt("data//eat.xml", null); xmlObjects["data//paper.xml"] = FactoryXML.loadExt("data//paper.xml", null); if (Helper.SINGLEFILE == false) { xmlObjects["data//translate.xml"] = dictXML; } else { xmlObjects["data//translate.xml"] = FactoryXML.loadExt("data//translate.xml", null); dictXML = xmlObjects["data//translate.xml"]; } xmlObjects["data//ashop.xml"] = FactoryXML.loadExt("data//ashop.xml", null); xmlObjects["data//maid.xml"] = FactoryXML.loadExt("data//maid.xml", null); xmlObjects["data//porter.xml"] = FactoryXML.loadExt("data//porter.xml", null); xmlObjects["data//phone.xml"] = FactoryXML.loadExt("data//phone.xml", null); xmlObjects["data//animation.xml"] = FactoryXML.loadExt("data//animation.xml", null); xmlObjects["data//serviceL.xml"] = FactoryXML.loadExt("data//serviceL.xml", null); xmlObjects["data//serviceR.xml"] = FactoryXML.loadExt("data//serviceR.xml", null); xmlObjects["data//reception_u.xml"] = FactoryXML.loadExt("data//reception_u.xml", null); xmlObjects["data//reception1.xml"] = FactoryXML.loadExt("data//reception1.xml", null); xmlObjects["data//levels.xml"] = FactoryXML.loadExt("data//levels.xml", null); xmlObjects["data//coffee.xml"] = FactoryXML.loadExt("data//coffee.xml", null); xmlObjects["data//ladder_left_btm.xml"] = FactoryXML.loadExt("data//ladder_left_btm.xml", null); xmlObjects["data//ladder_left_up.xml"] = FactoryXML.loadExt("data//ladder_left_up.xml", null); xmlObjects["data//ladder_right_btm.xml"] = FactoryXML.loadExt("data//ladder_right_btm.xml", null); xmlObjects["data//ladder_right_up.xml"] = FactoryXML.loadExt("data//ladder_right_up.xml", null); xmlObjects["data//add_left.xml"] = FactoryXML.loadExt("data//add_left.xml", null); xmlObjects["data//add_right.xml"] = FactoryXML.loadExt("data//add_right.xml", null); xmlObjects["data//lamp_left.xml"] = FactoryXML.loadExt("data//lamp_left.xml", null); xmlObjects["data//lamp_right.xml"] = FactoryXML.loadExt("data//lamp_right.xml", null); xmlObjects["data//arch1.xml"] = FactoryXML.loadExt("data//arch1.xml", null); xmlObjects["data//arch2.xml"] = FactoryXML.loadExt("data//arch2.xml", null); xmlObjects["data//arch3.xml"] = FactoryXML.loadExt("data//arch3.xml", null); xmlObjects["data//arch4.xml"] = FactoryXML.loadExt("data//arch4.xml", null); xmlObjects["data//arch5.xml"] = FactoryXML.loadExt("data//arch5.xml", null); xmlObjects["data//shield_left.xml"] = FactoryXML.loadExt("data//shield_left.xml", null); xmlObjects["data//shield_right.xml"] = FactoryXML.loadExt("data//shield_right.xml", null); xmlObjects["data//coffee_u.xml"] = FactoryXML.loadExt("data//coffee_u.xml", null); xmlObjects["data//chair.xml"] = FactoryXML.loadExt("data//chair.xml", null); xmlObjects["data//armchair_left.xml"] = FactoryXML.loadExt("data//armchair_left.xml", null); xmlObjects["data//armchair_right.xml"] = FactoryXML.loadExt("data//armchair_right.xml", null); xmlObjects["data//kitchen.xml"] = FactoryXML.loadExt("data//kitchen.xml", null); xmlObjects["data//fontain_old.xml"] = FactoryXML.loadExt("data//fontain_old.xml", null); xmlObjects["data//flower_left.xml"] = FactoryXML.loadExt("data//flower_left.xml", null); xmlObjects["data//flower_right.xml"] = FactoryXML.loadExt("data//flower_right.xml", null); xmlObjects["data//armor_right.xml"] = FactoryXML.loadExt("data//armor_right.xml", null); xmlObjects["data//armor_left.xml"] = FactoryXML.loadExt("data//armor_left.xml", null); reqsPossible_ = new Array(); totalCustomers_ = 0; nowCustomers_ = 0; levelNum_ = 0; cash_ = 0; levelcash_ = 0; scaleMatrix = new flash.geom.Matrix(); scaleMatrix.scale(Stage.width / 1024, Stage.height / 768); scaleFactorX = Stage.width / 1024; scaleFactorY = Stage.height / 768; factoryStack_ = new CmdStackFactory(); gamePlay_ = false; orderVal_ = 0; keyVisible_ = false; swapAbleArr_ = new Array(); menuStQue = new Array(); factoryAnimObject = new FactoryAnimObject(); reqMan_ = new RequestsManager(this); roomsXMLArr = new Array(); customersArr_ = new Array(); mapObjsNames_ = new Array(); mapObjsXMLArr_ = new Array(); mapObjects_ = new Array(); aRoomArr = new Array(); var astyles = new TextStyles(); registerDefNames(); transparent_ = new flash.geom.ColorTransform(0, 0, 0, 0, 0, 0, 0, 0); loading_ = true; Helper.musicPlay("music_menu"); _x = 0; _y = 0; onEnterFrame = aenterFrame; onMouseMove = function () { if (this.keyVisible_) { this.key_clip._x = _root._xmouse; this.key_clip._y = _root._ymouse; } }; } function registerDefNames() { RegisterMOName("reception1"); RegisterMOName("coffee"); RegisterMOName("fontain_old"); RegisterMOName("ladder_left_btm"); RegisterMOName("ladder_left_up"); RegisterMOName("ladder_right_up"); RegisterMOName("ladder_right_btm"); } function getCheckedArr(requestName) { var outArr = new Array(); var i = 0; while (i < customersArr_.length) { if (customersArr_[i].hasCheckedRequest(requestName)) { outArr.push(customersArr_[i]); } i++; } var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i] instanceof Room) { var currRoom = mapObjects_[i]; if (currRoom.hasCheckedRequest(requestName)) { outArr.push(currRoom); } } i++; } return(outArr); } function countcheckedRequests(requestName) { var outNum = 0; var i = 0; while (i < customersArr_.length) { if (customersArr_[i].hasCheckedRequest(requestName)) { outNum++; } i++; } var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i] instanceof Room) { var currRoom = mapObjects_[i]; if (currRoom.hasCheckedRequest(requestName)) { outNum++; } } i++; } return(outNum); } function hasEmptyChair() { } function hasRequests() { var i = 0; while (i < customersArr_.length) { if (customersArr_[i].hasRequests()) { return(true); } i++; } var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i] instanceof Room) { var currRoom = mapObjects_[i]; if (currRoom.hasRequests()) { return(true); } } i++; } var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i] instanceof Mebel) { var currMeb = mapObjects_[i]; if (currMeb.hasRequests()) { return(true); } } i++; } return(false); } function countRequests(requestName) { var outNum = 0; var i = 0; while (i < customersArr_.length) { if (customersArr_[i].hasRequest(requestName)) { outNum++; } i++; } var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i] instanceof Room) { var currRoom = mapObjects_[i]; if (currRoom.hasRequest(requestName)) { outNum++; } } i++; } var i = 0; while (i < mapObjects_.length) { if (mapObjects_[i] instanceof Mebel) { var currMeb = mapObjects_[i]; if (currMeb.hasRequest(requestName)) { outNum++; } } i++; } return(outNum); } static var LOCKED = false; static var LANGUAGE = "ENG"; static var SMILEGAMERADS = false; static var restartGame_ = false; static var BANKTOPAY = 7000; static var SOUNDVLM = 100; static var MUSICVLM = 50; static var NEXTVISITDELAY = 8000; static var StartTextAnimation_TIME = 3800; static var GoalReachedAnimationTime = 2800; static var BELOWDEPTH = 500; static var MEBDEPTH = 5000; static var ABOVEDEPTH = 15000; static var JANEDEPTH = 4000; static var MAIDDEPTH = 5300; static var PORTERDEPTH = 5400; static var IFACEDEPTH = 20000; static var KEYDEPTH = 25000; static var REPAIRPAUSE = 30000; static var GR_1_H_X = 16; static var GR_1_H_Y = 100; static var GR_1_H_WIDTH = Stage.width / 3.2; static var GR_1_H_HEIGHT = Stage.height / 9; static var GR_1_B_X = 16; static var GR_1_B_Y = 160; static var GR_1_B_WIDTH = Stage.width / 3.2; static var GR_1_B_HEIGHT = Stage.height / 1.8; static var GR_2_H_X = 0; static var GR_2_H_Y = 0; static var GR_2_H_WIDTH = Stage.width / 3.2; static var GR_2_H_HEIGHT = 50; static var GR_2_B_X = 0; static var GR_2_B_Y = GR_2_H_HEIGHT; static var GR_2_B_WIDTH = Stage.width / 3.2; static var GR_2_B_HEIGHT = Stage.height / 3.2; static var MEB_COFFEE = 0; static var MEBARR = new Array("COFFEE", "ADD_LEFT", "ADD_RIGHT", "KITCHEN", "NONE"); static var REQARR = new Array("cup", "daily", "phone", "eat", "clean"); static var XMLPARTS = new Array("CUP", "DAILY", "PHONE", "EAT", "CLEAN"); static var MENU_STATE_NONE = 0; var janeCount = 0; var timeDone_ = 0; var waitingTime_ = 300; static var PST_LOADING_FIRST = 1; static var PST_GAME_START = 2; static var PST_CREATING_OBJS = 4; static var PST_GAME_CREATING = 5; static var PST_GET_READY = 6; static var PST_GAME_STOPED = 7; static var PST_WAITING_STOPING = 8; static var PST_GAME_PAUSE = 9; static var PST_MONEY_COUNT = 10; static var PST_MONEY_COUNTED = 11; static var PST_WAIT_MONEY_TAKE = 12; static var PST_MONEY_TAKED = 13; static var PST_WAITING_FOR_PRESS = 14; static var PST_GOTO_SHOP = 15; static var PST_WAITING_FOR_GAMEAD = 16; static var PST_AD_SHOWED = 17; static var PST_EXIT_GAMEAD = 18; static var PST_FAKE_WAITING = 19; static var PST_RESTART_GAME = 20; var counter = 0; var pointsNames = new Array("KITCHEN", "TRLEFT", "TRRIGHT"); }Symbol 327 MovieClip [__Packages.TextScoreTable] Frame 0class TextScoreTable { var mc_, max_scores; function TextScoreTable (mc) { mc_ = mc; max_scores = 10; reset(""); } function reset(statusText) { mc_.ranks_text = ""; mc_.names_text = ""; mc_.scores_text = ""; mc_.dates_text = ""; mc_.status_text = statusText; } function gotScores(scores, playerIndex) { reset(""); if (playerIndex === undefined) { playerIndex = -1; } var num_scores = Math.min(max_scores, scores.length); if (num_scores == 0) { mc_.status_text = "No high scores yet!"; } var i = 0; while (i < num_scores) { var item = scores[i]; var rank = ((i + 1) + "."); if (i === playerIndex) { rank = "*" + rank; } var name = item[0]; var score = commafy(item[1]); mc_.ranks_text = mc_.ranks_text + (rank + newline); mc_.names_text = mc_.names_text + (name + newline); mc_.scores_text = mc_.scores_text + (score + newline); i++; } } function commafy(n) { var s = (parseInt(n, 10) + ""); var res = []; while (s.length > 3) { res.unshift(s.slice(s.length - 3, s.length)); s = s.slice(0, s.length - 3); } res.unshift(s); return(res.join(",")); } }Symbol 328 MovieClip [__Packages.HumanHelper] Frame 0class HumanHelper { static var parentGame_; function HumanHelper (parentGame) { parentGame_ = parentGame; } static function doHumanRoomCmd(human, aCmd) { var targetx; var targety; switch (aCmd) { case Human.CMD_GIVE_PHONE_LEFTARM : var aCust = parentGame_.getCustomerInPlace("ARMCHAIR_LEFT"); if ((aCust != undefined) && (aCust.request_.name_ == "phone")) { aCust.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_COFFEE_LEFTARM : var aCust = parentGame_.getCustomerInPlace("ARMCHAIR_LEFT"); if ((aCust != undefined) && (aCust.request_.name_ == "cup")) { aCust.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_EAT : var aCust = parentGame_.getCustomerInPlace("CHAIR"); if ((aCust != undefined) && (aCust.request_.name_ == "eat")) { aCust.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_DAILY_LEFTARM : var aCust = parentGame_.getCustomerInPlace("ARMCHAIR_LEFT"); if ((aCust != undefined) && (aCust.request_.name_ == "daily")) { aCust.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_PHONE_RIGHTARM : var aCust = parentGame_.getCustomerInPlace("ARMCHAIR_RIGHT"); if ((aCust != undefined) && (aCust.request_.name_ == "phone")) { aCust.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_COFFEE_RIGHTARM : var aCust = parentGame_.getCustomerInPlace("ARMCHAIR_RIGHT"); if ((aCust != undefined) && (aCust.request_.name_ == "cup")) { aCust.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_DAILY_RIGHTARM : var aCust = parentGame_.getCustomerInPlace("ARMCHAIR_RIGHT"); if ((aCust != undefined) && (aCust.request_.name_ == "daily")) { aCust.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GO_UP_ROOM1 : human._y = 18; human._x = human._x + 20; parentGame_.updateDepths(human); return; case Human.CMD_GO_UP_ROOM5 : human._y = 18; human._x = human._x - 20; parentGame_.updateDepths(human); return; case Human.CMD_GIVE_COFFEE_ROOM1 : var aRoom = Room(parentGame_.getMO("ROOM1")); if (aRoom.request_.name_ == "cup") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_COFFEE_ROOM5 : var aRoom = Room(parentGame_.getMO("ROOM5")); if (aRoom.request_.name_ == "cup") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_COFFEE_ROOM2 : var aRoom = Room(parentGame_.getMO("ROOM2")); if (aRoom.request_.name_ == "cup") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_COFFEE_ROOM3 : var aRoom = Room(parentGame_.getMO("ROOM3")); if (aRoom.request_.name_ == "cup") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_COFFEE_ROOM4 : var aRoom = Room(parentGame_.getMO("ROOM4")); if (aRoom.request_.name_ == "cup") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GO_DOWN_ROOM1 : var aLadder = parentGame_.getMO("LADDER_LEFT_BTM"); human._x = aLadder.jEntry_.x + 1; human._y = (aLadder.jEntry_.y + (aLadder.jEntry_.height / 2)) - human._height; human.doNextCommand(); return; case Human.CMD_GO_DOWN_ROOM5 : var aLadder = parentGame_.getMO("LADDER_RIGHT_BTM"); human._x = aLadder.jEntry_.x + 1; human._y = (aLadder.jEntry_.y + (aLadder.jEntry_.height / 2)) - human._height; human.doNextCommand(); return; case Human.CMD_GO_ROOM1_TOP : var aRoom = Room(parentGame_.getMO("ROOM1")); targetx = (aRoom.jEntry_.x + (aRoom.jEntry_.width / 2)) - 30; targety = 25; parentGame_.heroToPoint(targetx, targety); return; case Human.CMD_GO_ROOM5_TOP : var aRoom = Room(parentGame_.getMO("ROOM5")); targetx = (aRoom.jEntry_.x + (aRoom.jEntry_.width / 2)) + 10; targety = aRoom.jEntry_.y + 2; parentGame_.heroToPoint(targetx, targety); return; case Human.CMD_GIVE_DAILY_ROOM4 : var aRoom = Room(parentGame_.getMO("ROOM4")); if (aRoom.request_.name_ == "daily") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_DAILY_ROOM3 : var aRoom = Room(parentGame_.getMO("ROOM3")); if (aRoom.request_.name_ == "daily") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_DAILY_ROOM2 : var aRoom = Room(parentGame_.getMO("ROOM2")); if (aRoom.request_.name_ == "daily") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_DAILY_ROOM1 : var aRoom = Room(parentGame_.getMO("ROOM1")); if (aRoom.request_.name_ == "daily") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_DAILY_ROOM5 : var aRoom = Room(parentGame_.getMO("ROOM5")); if (aRoom.request_.name_ == "daily") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_PHONE_ROOM5 : var aRoom = Room(parentGame_.getMO("ROOM5")); if (aRoom.request_.name_ == "phone") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_PHONE_ROOM1 : var aRoom = Room(parentGame_.getMO("ROOM1")); if (aRoom.request_.name_ == "phone") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_PHONE_ROOM2 : var aRoom = Room(parentGame_.getMO("ROOM2")); if (aRoom.request_.name_ == "phone") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_PHONE_ROOM3 : var aRoom = Room(parentGame_.getMO("ROOM3")); if (aRoom.request_.name_ == "phone") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GIVE_PHONE_ROOM4 : var aRoom = Room(parentGame_.getMO("ROOM4")); if (aRoom.request_.name_ == "phone") { aRoom.doneRequest(); } human.doNextCommand(); return; case Human.CMD_GO_ROOM2 : var i = 0; while (i < parentGame_.mapObjects_.length) { if (parentGame_.mapObjects_[i].getPersName() == "ROOM2") { targetx = parentGame_.mapObjects_[i].jEntry_.x + (parentGame_.mapObjects_[i].jEntry_.width / 2); targety = parentGame_.mapObjects_[i].jEntry_.y + (parentGame_.mapObjects_[i].jEntry_.height / 2); break; } i++; } parentGame_.heroToPoint(targetx, targety); return; case Human.CMD_GO_ROOM3 : var i = 0; while (i < parentGame_.mapObjects_.length) { if (parentGame_.mapObjects_[i].getPersName() == "ROOM3") { targetx = parentGame_.mapObjects_[i].jEntry_.x + (parentGame_.mapObjects_[i].jEntry_.width / 2); targety = parentGame_.mapObjects_[i].jEntry_.y + (parentGame_.mapObjects_[i].jEntry_.height / 2); break; } i++; } parentGame_.heroToPoint(targetx, targety); return; case Human.CMD_GO_ROOM4 : var i = 0; while (i < parentGame_.mapObjects_.length) { if (parentGame_.mapObjects_[i].getPersName() == "ROOM4") { targetx = parentGame_.mapObjects_[i].jEntry_.x + (parentGame_.mapObjects_[i].jEntry_.width / 2); targety = parentGame_.mapObjects_[i].jEntry_.y + (parentGame_.mapObjects_[i].jEntry_.height / 2); break; } i++; } parentGame_.heroToPoint(targetx, targety); return; case Human.CMD_GO_ROOM1 : var aRoom = Room(parentGame_.getMO("ROOM1")); targetx = aRoom.jEntry_.x + (aRoom.jEntry_.width / 2); targety = 25; parentGame_.heroToPoint(targetx, targety); return; case Human.CMD_GO_ROOM5 : var aRoom = Room(parentGame_.getMO("ROOM5")); targetx = aRoom.jEntry_.x + 2; targety = aRoom.jEntry_.y + 2; parentGame_.heroToPoint(targetx, targety); return; case Human.CMD_GO_ROOM5_BTM : var ladderLeft = parentGame_.getMO("LADDER_RIGHT_BTM"); targetx = ladderLeft.jEntry_.x + (ladderLeft.jEntry_.width / 2); targety = ladderLeft.jEntry_.y + (ladderLeft.jEntry_.height / 2); parentGame_.heroToPoint(targetx, targety); return; case Human.CMD_GO_ROOM1_BTM : var ladderLeft = parentGame_.getMO("LADDER_LEFT_BTM"); targetx = ladderLeft.jEntry_.x + (ladderLeft.jEntry_.width / 2); targety = ladderLeft.jEntry_.y + (ladderLeft.jEntry_.height / 2); parentGame_.heroToPoint(targetx, targety); } } }Symbol 329 MovieClip [__Packages.IDrawAble] Frame 0interface IDrawAble { }Symbol 330 MovieClip [__Packages.IMoveable] Frame 0interface IMoveable { }Symbol 331 MovieClip [__Packages.Human] Frame 0class Human extends MovieClip implements IDrawAble, IMoveable { var requests_, parentGame_, cmdStacks_, currBlockInd_, leftCarry_, rightCarry_, currBlockName_, _y, _x, animObject, currCmd_, startDisTime_, persName_, changed_, checkFunction, moving_direction, target_move, path, _width, _height, _alpha, resultBitmap, attachBitmap, operations_, inRoom_, shadowX_, shadowY_, shadowClip_, attachMovie; function Human () { super(); } function eraseRequest(aObj) { var g = 0; while (g < requests_.length) { if (requests_[g] == aObj) { requests_.splice(g, 1); return; } g++; } } function bringPhoneToRoom(aRoom) { var cmdStack; switch (aRoom.getPersName()) { case "ROOM2" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM2]); break; case "ROOM3" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM3]); break; case "ROOM4" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM4]); break; case "ROOM1" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM1]); break; case "ROOM5" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM5]); } cmdStacks_.push(cmdStack); } function bringDailyToRoom(aRoom) { var cmdStack; switch (aRoom.getPersName()) { case "ROOM2" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM2]); break; case "ROOM3" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM3]); break; case "ROOM4" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM4]); break; case "ROOM1" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM1]); break; case "ROOM5" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM5]); } cmdStacks_.push(cmdStack); } function bringSmthToSomeWhere(receptor) { if (receptor instanceof Customer) { switch (Customer(receptor).whereIs_) { case "ARMCHAIR_RIGHT" : switch (Customer(receptor).request_.name_) { case "phone" : cmdStacks_.push(parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_RIGHTARM])); break; case "cup" : cmdStacks_.push(parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_RIGHTARM])); break; case "daily" : cmdStacks_.push(parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_RIGHTARM])); } return; case "ARMCHAIR_LEFT" : switch (Customer(receptor).request_.name_) { case "phone" : cmdStacks_.push(parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_LEFTARM])); break; case "cup" : cmdStacks_.push(parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_LEFTARM])); break; case "daily" : cmdStacks_.push(parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_LEFTARM])); } return; case "CHAIR" : if (Customer(receptor).request_.name_ != "eat") { break; } cmdStacks_.push(parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_EAT])); } } } function bringCoffeToRoom(aRoom) { var cmdStack; switch (aRoom.getPersName()) { case "ROOM2" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM2]); break; case "ROOM3" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM3]); break; case "ROOM4" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM4]); break; case "ROOM1" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM1]); break; case "ROOM5" : cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM5]); } cmdStacks_.push(cmdStack); } function goForEat() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.TAKE_EAT]); cmdStacks_.push(cmdStack); } function goForPhone() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.TAKE_PHONE]); cmdStacks_.push(cmdStack); } function goForPaper() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.TAKE_DAILY]); cmdStacks_.push(cmdStack); } function goForCoffee() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.TAKE_COFFEE]); cmdStacks_.push(cmdStack); } function doNextCommand() { cmdStacks_[currBlockInd_].cmdArr_.shift(); if (cmdStacks_[currBlockInd_].cmdArr_.length > 0) { doCommand(cmdStacks_[currBlockInd_].cmdArr_[0]); } else if (cmdStacks_.length > 0) { doNextBlock(); } } function getVirtualRequests() { var retArray = new Array(); var i = 0; while (i < requests_.length) { if (!requests_[i].isChecked()) { retArray.push(requests_[i]); } i++; } return(retArray); } function eraseRequestByName(aName) { var i = (requests_.length - 1); while (i >= 0) { if (requests_[i].getRequestName() == aName) { requests_.splice(i, 1); } i--; } } function hasRequest(aName) { var i = 0; while (i < requests_.length) { if (requests_[i].getRequestName() == aName) { return(true); } i++; } return(false); } function isBlockDoneAble(blockName) { switch (blockName) { case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM2] : var aRoom = Room(parentGame_.getMO("ROOM2")); var aMeb = parentGame_.getMO("COFFEE"); if ((aRoom.request_.name_ != "cup") || (((aMeb.request_.redState_ == true) && (leftCarry_ != "COFFEE")) && (rightCarry_ != "COFFEE"))) { cutBlock(blockName); return(false); } if ((leftCarry_ != "COFFEE") && (rightCarry_ != "COFFEE")) { return(false); } return(true); case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM5] : var aRoom = Room(parentGame_.getMO("ROOM5")); var aMeb = parentGame_.getMO("COFFEE"); if ((aRoom.request_.name_ != "cup") || (((aMeb.request_.redState_ == true) && (leftCarry_ != "COFFEE")) && (rightCarry_ != "COFFEE"))) { cutBlock(blockName); return(false); } if ((leftCarry_ != "COFFEE") && (rightCarry_ != "COFFEE")) { return(false); } return(true); case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM1] : var aRoom = Room(parentGame_.getMO("ROOM1")); var aMeb = parentGame_.getMO("COFFEE"); if ((aRoom.request_.name_ != "cup") || (((aMeb.request_.redState_ == true) && (leftCarry_ != "COFFEE")) && (rightCarry_ != "COFFEE"))) { cutBlock(blockName); return(false); } if ((leftCarry_ != "COFFEE") && (rightCarry_ != "COFFEE")) { return(false); } return(true); case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM3] : var aRoom = Room(parentGame_.getMO("ROOM3")); var aMeb = parentGame_.getMO("COFFEE"); if ((aRoom.request_.name_ != "cup") || (((aMeb.request_.redState_ == true) && (leftCarry_ != "COFFEE")) && (rightCarry_ != "COFFEE"))) { cutBlock(blockName); return(false); } if ((leftCarry_ != "COFFEE") && (rightCarry_ != "COFFEE")) { return(false); } return(true); case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM4] : var aRoom = Room(parentGame_.getMO("ROOM4")); var aMeb = parentGame_.getMO("COFFEE"); if ((aRoom.request_.name_ != "cup") || (((aMeb.request_.redState_ == true) && (leftCarry_ != "COFFEE")) && (rightCarry_ != "COFFEE"))) { cutBlock(blockName); return(false); } if ((leftCarry_ != "COFFEE") && (rightCarry_ != "COFFEE")) { return(false); } return(true); case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM2] : var aRoom = Room(parentGame_.getMO("ROOM2")); if (aRoom.request_.name_ != "phone") { cutBlock(blockName); return(false); } if ((leftCarry_ != "ADD_RIGHT") && (rightCarry_ != "ADD_RIGHT")) { return(false); } return(true); case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM1] : var aRoom = Room(parentGame_.getMO("ROOM1")); if (aRoom.request_.name_ != "phone") { cutBlock(blockName); return(false); } if ((leftCarry_ != "ADD_RIGHT") && (rightCarry_ != "ADD_RIGHT")) { return(false); } return(true); case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM3] : var aRoom = Room(parentGame_.getMO("ROOM3")); if (aRoom.request_.name_ != "phone") { cutBlock(blockName); return(false); } if ((leftCarry_ != "ADD_RIGHT") && (rightCarry_ != "ADD_RIGHT")) { return(false); } return(true); case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM4] : var aRoom = Room(parentGame_.getMO("ROOM4")); if (aRoom.request_.name_ != "phone") { cutBlock(blockName); return(false); } if ((leftCarry_ != "ADD_RIGHT") && (rightCarry_ != "ADD_RIGHT")) { return(false); } return(true); case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM2] : var aRoom = Room(parentGame_.getMO("ROOM2")); if (aRoom.request_.name_ != "daily") { cutBlock(blockName); return(false); } if ((leftCarry_ != "ADD_LEFT") && (rightCarry_ != "ADD_LEFT")) { return(false); } return(true); case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_LEFTARM] : case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_LEFTARM] : case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_LEFTARM] : var aReq = parentGame_.getCustomerRequest("ARMCHAIR_LEFT"); if (aReq == "") { cutBlock(blockName); return(false); } switch (aReq) { case "cup" : var aMeb = parentGame_.getMO("COFFEE"); if (((aMeb.request_.redState_ == true) && (leftCarry_ != "COFFEE")) && (rightCarry_ != "COFFEE")) { cutBlock(blockName); return(false); } if (blockName != CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_LEFTARM]) { cutBlock(blockName); return(false); } if ((leftCarry_ != "COFFEE") && (rightCarry_ != "COFFEE")) { return(false); } break; case "daily" : if (blockName != CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_LEFTARM]) { cutBlock(blockName); return(false); } if ((leftCarry_ != "ADD_LEFT") && (rightCarry_ != "ADD_LEFT")) { return(false); } break; case "phone" : if (blockName != CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_LEFTARM]) { cutBlock(blockName); return(false); } if (!((leftCarry_ != "ADD_RIGHT") && (rightCarry_ != "ADD_RIGHT"))) { break; } return(false); } break; case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_RIGHTARM] : case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_RIGHTARM] : case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_RIGHTARM] : var aReq = parentGame_.getCustomerRequest("ARMCHAIR_RIGHT"); if (aReq == "") { cutBlock(blockName); return(false); } switch (aReq) { case "cup" : var aMeb = parentGame_.getMO("COFFEE"); if (((aMeb.request_.redState_ == true) && (leftCarry_ != "COFFEE")) && (rightCarry_ != "COFFEE")) { cutBlock(blockName); return(false); } if (blockName != CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_RIGHTARM]) { cutBlock(blockName); return(false); } if ((leftCarry_ != "COFFEE") && (rightCarry_ != "COFFEE")) { return(false); } break; case "daily" : if (blockName != CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_RIGHTARM]) { cutBlock(blockName); return(false); } if ((leftCarry_ != "ADD_LEFT") && (rightCarry_ != "ADD_LEFT")) { return(false); } break; case "phone" : if (blockName != CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_RIGHTARM]) { cutBlock(blockName); return(false); } if (!((leftCarry_ != "ADD_RIGHT") && (rightCarry_ != "ADD_RIGHT"))) { break; } return(false); } break; case CmdStack.CMD_DICT[CmdStack.GIVE_EAT] : var aReq = parentGame_.getCustomerRequest("CHAIR"); if (aReq == "") { cutBlock(blockName); return(false); } if ((leftCarry_ != "KITCHEN") && (rightCarry_ != "KITCHEN")) { return(false); } return(true); case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM1] : var aRoom = Room(parentGame_.getMO("ROOM1")); if (aRoom.request_.name_ != "daily") { cutBlock(blockName); return(false); } if ((leftCarry_ != "ADD_LEFT") && (rightCarry_ != "ADD_LEFT")) { return(false); } return(true); case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM3] : var aRoom = Room(parentGame_.getMO("ROOM3")); if (aRoom.request_.name_ != "daily") { cutBlock(blockName); return(false); } if ((leftCarry_ != "ADD_LEFT") && (rightCarry_ != "ADD_LEFT")) { return(false); } return(true); case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM4] : var aRoom = Room(parentGame_.getMO("ROOM4")); if (aRoom.request_.name_ != "daily") { cutBlock(blockName); return(false); } if ((leftCarry_ != "ADD_LEFT") && (rightCarry_ != "ADD_LEFT")) { return(false); } return(true); case CmdStack.CMD_DICT[CmdStack.TAKE_EAT] : var requered = parentGame_.countRequests("eat"); var aObj = parentGame_.getMO("KITCHEN"); if ((requered == 0) || (aObj.chkSmbArr_.length == 0)) { cutBlock(blockName); if (requered == 0) { aObj.counter_ = 0; } return(false); } if (((aObj.nowObjects_ > 0) && ((leftCarry_ == "") || (rightCarry_ == ""))) && (requered > howMuchCarry(aObj.getPersName()))) { return(true); } return(false); case CmdStack.CMD_DICT[CmdStack.TAKE_PHONE] : var requered = parentGame_.countRequests("phone"); var aObj = parentGame_.getMO("ADD_RIGHT"); if (aObj.request_.redState_ == true) { return(false); } if ((requered == 0) || (aObj.chkSmbArr_.length == 0)) { cutBlock(blockName); if (requered == 0) { aObj.counter_ = 0; } return(false); } if (((aObj.nowObjects_ > 0) && ((leftCarry_ == "") || (rightCarry_ == ""))) && (requered > howMuchCarry(aObj.getPersName()))) { return(true); } return(false); case CmdStack.CMD_DICT[CmdStack.TAKE_DAILY] : var requered = parentGame_.countRequests("daily"); var aObj = parentGame_.getMO("ADD_LEFT"); if ((requered == 0) || (aObj.chkSmbArr_.length == 0)) { cutBlock(blockName); if (requered == 0) { aObj.counter_ = 0; } return(false); } if (((aObj.nowObjects_ > 0) && ((leftCarry_ == "") || (rightCarry_ == ""))) && (requered > howMuchCarry(aObj.getPersName()))) { return(true); } return(false); case CmdStack.CMD_DICT[CmdStack.TAKE_COFFEE] : var requered = parentGame_.countRequests("cup"); var aObj = parentGame_.getMO("COFFEE"); if ((requered == 0) || (aObj.chkSmbArr_.length == 0)) { cutBlock(blockName); if (requered == 0) { aObj.counter_ = 0; } return(false); } if (aObj.request_.redState_ == true) { return(false); } if (((aObj.nowObjects_ > 0) && ((leftCarry_ == "") || (rightCarry_ == ""))) && (requered > howMuchCarry(aObj.getPersName()))) { return(true); } return(false); case CmdStack.CMD_DICT[CmdStack.GIVE_A_KEY] : if (parentGame_.getCustomersInState(Customer.CMD_AWAITING_RECEPTION).length != 0) { break; } cutBlock(blockName); return(false); } return(true); } function cutBlock(blockName) { var i = 0; while (i < cmdStacks_.length) { if (cmdStacks_[i].stackName_ == blockName) { if (i != currBlockInd_) { cmdStacks_.splice(i, 1); } return; } i++; } } function ShowStacks() { } function doNextBlock() { var prevBlock = currBlockName_; if (prevBlock != "NONE") { cmdStacks_.splice(currBlockInd_, 1); } currBlockInd_ = -1; var prevLength = cmdStacks_.length; var i = 0; while (i < prevLength) { var aBlock = cmdStacks_[i]; if (isBlockDoneAble(aBlock.stackName_) == true) { currBlockName_ = aBlock.stackName_; currBlockInd_ = i; break; } if (prevLength > cmdStacks_.length) { prevLength--; } else { i++; } } if (currBlockInd_ == -1) { returnAtReception(); currBlockInd_ = cmdStacks_.length - 1; currBlockName_ = cmdStacks_[cmdStacks_.length - 1].stackName_; } if (cmdStacks_.length > 0) { var upperPos = false; var rightPos = false; var nextBlock = cmdStacks_[currBlockInd_]; if (_y < (Stage.height / 8)) { upperPos = true; if (_x > (Stage.width / 2)) { rightPos = true; } } else { upperPos = false; } ShowStacks(); switch (nextBlock.stackName_) { case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM1] : case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM1] : case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM1] : if (upperPos == false) { cmdStacks_[currBlockInd_].cmdArr_ = addRoom1Commands(); } else if (rightPos == true) { cmdStacks_[currBlockInd_].cmdArr_ = downfromRoom5(); var nextArr = addRoom1Commands(); var i = 0; while (i < nextArr.length) { cmdStacks_[currBlockInd_].cmdArr_.push(nextArr[i]); i++; } } break; case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM5] : case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM5] : case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM5] : if (upperPos == false) { cmdStacks_[currBlockInd_].cmdArr_ = addRoom5Commands(); } else if (rightPos != true) { cmdStacks_[currBlockInd_].cmdArr_ = downfromRoom1(); var nextArr = addRoom5Commands(); var i = 0; while (i < nextArr.length) { cmdStacks_[currBlockInd_].cmdArr_.push(nextArr[i]); i++; } } break; case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM2] : case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM3] : case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM4] : case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM2] : case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM3] : case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM4] : case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM2] : case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM3] : case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM4] : case CmdStack.CMD_DICT[CmdStack.GIVE_A_KEY] : case CmdStack.CMD_DICT[CmdStack.GO_FOR_MONEY] : case CmdStack.CMD_DICT[CmdStack.GO_TO_RECEPTION] : case CmdStack.CMD_DICT[CmdStack.TAKE_KEY] : case CmdStack.CMD_DICT[CmdStack.TAKE_MONEY] : case CmdStack.CMD_DICT[CmdStack.TAKE_DAILY] : case CmdStack.CMD_DICT[CmdStack.TAKE_PHONE] : case CmdStack.CMD_DICT[CmdStack.TAKE_COFFEE] : case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_LEFTARM] : case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_RIGHTARM] : case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_LEFTARM] : case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_RIGHTARM] : case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_LEFTARM] : case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_RIGHTARM] : case CmdStack.CMD_DICT[CmdStack.GIVE_EAT] : case CmdStack.CMD_DICT[CmdStack.TAKE_EAT] : if (upperPos != true) { break; } if (rightPos == true) { cmdStacks_[currBlockInd_].cmdArr_ = downfromRoom5(); } else { cmdStacks_[currBlockInd_].cmdArr_ = downfromRoom1(); } } switch (nextBlock.stackName_) { case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_LEFTARM] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_LEFTARM); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_COFFEE_LEFTARM); break; case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_LEFTARM] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_LEFTARM); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_DAILY_LEFTARM); break; case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_LEFTARM] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_LEFTARM); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_PHONE_LEFTARM); break; case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_RIGHTARM] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_RIGHTARM); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_COFFEE_RIGHTARM); break; case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_RIGHTARM] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_RIGHTARM); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_DAILY_RIGHTARM); break; case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_RIGHTARM] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_RIGHTARM); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_PHONE_RIGHTARM); break; case CmdStack.CMD_DICT[CmdStack.GIVE_EAT] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_EATING); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_EAT); break; case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM1] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_DAILY_ROOM1); break; case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM1] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_PHONE_ROOM1); break; case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM1] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_COFFEE_ROOM1); break; case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM5] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_COFFEE_ROOM5); break; case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM5] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_PHONE_ROOM5); break; case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM5] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_DAILY_ROOM5); break; case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM2] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_ROOM2); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_DAILY_ROOM2); break; case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM2] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_ROOM2); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_PHONE_ROOM2); break; case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM3] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_ROOM3); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_DAILY_ROOM3); break; case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM3] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_ROOM3); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_PHONE_ROOM3); break; case CmdStack.CMD_DICT[CmdStack.GIVE_DAILY_TO_ROOM4] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_ROOM4); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_DAILY_ROOM4); break; case CmdStack.CMD_DICT[CmdStack.GIVE_PHONE_TO_ROOM4] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_ROOM4); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_PHONE_ROOM4); break; case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM2] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_ROOM2); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_COFFEE_ROOM2); break; case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM3] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_ROOM3); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_COFFEE_ROOM3); break; case CmdStack.CMD_DICT[CmdStack.GIVE_COFFEE_TO_ROOM4] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_ROOM4); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_COFFEE_ROOM4); break; case CmdStack.CMD_DICT[CmdStack.GO_FOR_MONEY] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_RECEPTION); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_TAKE_MONEY); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_AWAITING_RECEPTION); break; case CmdStack.CMD_DICT[CmdStack.GIVE_A_KEY] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_RECEPTION); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_AWAITING_RECEPTION); break; case CmdStack.CMD_DICT[CmdStack.GO_TO_RECEPTION] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_RECEPTION); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_AWAITING_RECEPTION); break; case CmdStack.CMD_DICT[CmdStack.TAKE_KEY] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_TAKE_KEY); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_AWAITING_RECEPTION); break; case CmdStack.CMD_DICT[CmdStack.TAKE_MONEY] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_TAKE_MONEY); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_AWAITING_RECEPTION); break; case CmdStack.CMD_DICT[CmdStack.TAKE_DAILY] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_DAILY); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_TAKE_DAILY); break; case CmdStack.CMD_DICT[CmdStack.TAKE_PHONE] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_PHONE); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_TAKE_PHONE); break; case CmdStack.CMD_DICT[CmdStack.TAKE_COFFEE] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_COFFEE); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_TAKE_COFFEE); break; case CmdStack.CMD_DICT[CmdStack.TAKE_EAT] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_KITCHEN); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_DISAPPEAR); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_TURN3); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_TAKE_EAT); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_APPEAR); } if (((cmdStacks_[currBlockInd_].cmdArr_[0] != CMD_AWAITING_RECEPTION) && (cmdStacks_[currBlockInd_].cmdArr_[0] != CMD_TAKE_KEY)) && (cmdStacks_[currBlockInd_].cmdArr_[0] != CMD_TAKE_MONEY)) { animObject.sendSignalState([animObject.getName()], "move"); } doCommand(cmdStacks_[currBlockInd_].cmdArr_[0]); } } function takeMoneyWaiting() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.TAKE_MONEY]); cmdStacks_.push(cmdStack); } function takeKeyWaiting() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.TAKE_KEY]); cmdStacks_.push(cmdStack); } function returnAtReception() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GO_TO_RECEPTION]); cmdStacks_.push(cmdStack); } function goForMoney() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GO_FOR_MONEY]); cmdStacks_.push(cmdStack); } function goForKey() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_A_KEY]); cmdStacks_.push(cmdStack); } function bringToRoom1(objectCmd) { var cmdArray = addRoom1Commands(); cmdArray.push(objectCmd); return(cmdArray); } function bringToMidRoom(goingInd, objectCmd) { var cmdStack = new Array(); cmdStack.push(goingInd); cmdStack.push(objectCmd); cmdStacks_.push(cmdStack); } function addRoom1Commands() { var cmdStack = new Array(); cmdStack.push(CMD_GO_ROOM1_BTM); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_UP_ROOM1); cmdStack.push(CMD_TURN3); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_ROOM1); return(cmdStack); } function addRoom5Commands() { var cmdStack = new Array(); cmdStack.push(CMD_GO_ROOM5_BTM); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_UP_ROOM5); cmdStack.push(CMD_TURN9); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_ROOM5); return(cmdStack); } function addComands(commands) { cmdStacks_.push(commands); } function doTurnCommand(aCmd) { switch (aCmd) { case CMD_TURN12 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "back"); doNextCommand(); return; case CMD_TURN6 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "front"); doNextCommand(); return; case CMD_TURN3 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "sideright"); doNextCommand(); return; case CMD_TURN9 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "sideleft"); doNextCommand(); return; case CMD_TURN1_5 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "backsideright"); doNextCommand(); return; case CMD_TURN4_5 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "frontsideright"); doNextCommand(); return; case CMD_TURN7_5 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "frontsideleft"); doNextCommand(); return; case CMD_TURN10_5 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "backsideleft"); doNextCommand(); } } function doCommand(aCmd) { var targetx; var targety; currCmd_ = aCmd; switch (aCmd) { case CMD_GIVE_COFFEE_ROOM1 : case CMD_GIVE_COFFEE_ROOM2 : case CMD_GIVE_COFFEE_ROOM3 : case CMD_GIVE_COFFEE_ROOM4 : case CMD_GIVE_COFFEE_ROOM5 : case CMD_GO_ROOM1_BTM : case CMD_GO_ROOM5_BTM : case CMD_GO_ROOM5 : case CMD_GO_ROOM1 : case CMD_GO_ROOM4 : case CMD_GO_ROOM3 : case CMD_GO_ROOM2 : case CMD_GIVE_PHONE_ROOM5 : case CMD_GIVE_PHONE_ROOM4 : case CMD_GIVE_PHONE_ROOM3 : case CMD_GIVE_PHONE_ROOM2 : case CMD_GIVE_PHONE_ROOM1 : case CMD_GIVE_DAILY_ROOM1 : case CMD_GIVE_DAILY_ROOM2 : case CMD_GIVE_DAILY_ROOM3 : case CMD_GIVE_DAILY_ROOM4 : case CMD_GIVE_DAILY_ROOM5 : case CMD_GO_ROOM1_TOP : case CMD_GO_ROOM5_TOP : case CMD_GO_DOWN_ROOM1 : case CMD_GO_DOWN_ROOM5 : case CMD_GO_UP_ROOM1 : case CMD_GO_UP_ROOM5 : case CMD_GIVE_PHONE_LEFTARM : case CMD_GIVE_COFFEE_LEFTARM : case CMD_GIVE_DAILY_LEFTARM : case CMD_GIVE_EAT : case CMD_GIVE_PHONE_RIGHTARM : case CMD_GIVE_COFFEE_RIGHTARM : case CMD_GIVE_DAILY_RIGHTARM : HumanHelper.doHumanRoomCmd(this, aCmd); return; case CMD_TURN12 : case CMD_TURN6 : case CMD_TURN3 : case CMD_TURN9 : case CMD_TURN1_5 : case CMD_TURN4_5 : case CMD_TURN7_5 : case CMD_TURN10_5 : doTurnCommand(currCmd_); return; case CMD_AWAITING_RECEPTION : animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "wait")); var aObj = parentGame_.getMO("RECEPTION1"); if (aObj.moneyCheck_ != undefined) { parentGame_.levelcash_ = parentGame_.levelcash_ + aObj.clearMoney(); parentGame_.wndCash_.updateCashData(); aObj.moneyCheck_.removeMovieClip(); aObj.moneyCheck_ = undefined; } return; case CMD_TAKE_MONEY : var aObj = parentGame_.getMO("RECEPTION1"); parentGame_.levelcash_ = parentGame_.levelcash_ + aObj.clearMoney(); parentGame_.wndCash_.updateCashData(); return; case CMD_TAKE_KEY : var custArr = parentGame_.getCustomersInState(Customer.CMD_AWAITING_RECEPTION); var aReceptn = parentGame_.getMO("RECEPTION1"); if (custArr.length == 0) { var aClip = parentGame_.createEmptyMovieClip("key_clip", Game.KEYDEPTH); aClip.attachBitmap(flash.display.BitmapData.loadBitmap("key"), 0); aClip._x = _root._xmouse; aClip._y = _root._ymouse; parentGame_.keyVisible_ = true; Helper.PlaySound("pickup_key"); aReceptn.animObject.sendSignalState([aReceptn.animObject.getName(), "DEFAULT", "NOKEY"], "select"); } else if (custArr[0].chkSmb_ == undefined) { var aClip = parentGame_.createEmptyMovieClip("key_clip", Game.KEYDEPTH); aClip.attachBitmap(flash.display.BitmapData.loadBitmap("key"), 0); aClip._x = _root._xmouse; aClip._y = _root._ymouse; parentGame_.keyVisible_ = true; Helper.PlaySound("pickup_key"); aReceptn.animObject.sendSignalState([aReceptn.animObject.getName(), "DEFAULT", "NOKEY"], "select"); } else { aReceptn.setUncheck(custArr[0].orderNum_); custArr[0].eraseCheck(); custArr[0].takeKey(parentGame_.getEmptyRoom()); } return; case CMD_APPEAR : startDisTime_ = 0; return; case CMD_DISAPPEAR : startDisTime_ = 0; return; case CMD_TAKE_PHONE : var aObj = parentGame_.getMO("ADD_RIGHT"); var requered = parentGame_.countRequests("phone"); if (aObj.request_.redState_ == true) { doNextBlock(); return(undefined); } if (requered == 0) { doNextBlock(); aObj.counter_ = 0; } else if ((aObj.nowObjects_ > 0) && ((leftCarry_ == "") || (rightCarry_ == ""))) { aObj.uncheckFirst(); aObj.nowObjects_--; if (leftCarry_ == "") { doOperation("TakeObjLeft", [this]); addToHand(parentGame_.xmlObjects["data//phone.xml"].firstChild, "LEFT"); leftCarry_ = "ADD_RIGHT"; } else if (rightCarry_ == "") { doOperation("TakeObjRight", [this]); addToHand(parentGame_.xmlObjects["data//phone.xml"].firstChild, "RIGHT"); rightCarry_ = "ADD_RIGHT"; } doNextCommand(); } return; case CMD_TAKE_DAILY : var aObj = parentGame_.getMO("ADD_LEFT"); var requered = parentGame_.countRequests("daily"); if (requered == 0) { doNextBlock(); aObj.counter_ = 0; } else if ((aObj.nowObjects_ > 0) && ((leftCarry_ == "") || (rightCarry_ == ""))) { aObj.uncheckFirst(); aObj.nowObjects_--; if (leftCarry_ == "") { doOperation("TakeObjLeft", [this]); addToHand(parentGame_.xmlObjects["data//paper.xml"].firstChild, "LEFT"); leftCarry_ = "ADD_LEFT"; } else if (rightCarry_ == "") { doOperation("TakeObjRight", [this]); addToHand(parentGame_.xmlObjects["data//paper.xml"].firstChild, "RIGHT"); rightCarry_ = "ADD_LEFT"; } doNextCommand(); } return; case CMD_TAKE_COFFEE : var aObj = parentGame_.getMO("COFFEE"); var requered = parentGame_.countRequests("cup"); if (aObj.request_.redState_ == true) { doNextBlock(); return(undefined); } if (requered == 0) { doNextBlock(); aObj.counter_ = 0; } else if ((aObj.nowObjects_ > 0) && ((leftCarry_ == "") || (rightCarry_ == ""))) { aObj.uncheckFirst(); aObj.nowObjects_--; if (aObj.maxObjects_ == 1) { aObj.animObject.sendSignalState([aObj.animObject.getName(), "DEFAULT", "CUP1"], "uncheck"); } else if (aObj.nowObjects_ < 1) { aObj.animObject.sendSignalState([aObj.animObject.getName(), "DEFAULT", "CUP2"], "uncheck"); } else if (aObj.nowObjects_ == 1) { aObj.animObject.sendSignalState([aObj.animObject.getName(), "DEFAULT", "CUP1"], "uncheck"); } Helper.PlaySound("pickup_coffee", 1); if (leftCarry_ == "") { doOperation("TakeObjLeft", [this]); addToHand(parentGame_.xmlObjects["data//hand.xml"].firstChild, "LEFT"); leftCarry_ = "COFFEE"; } else if (rightCarry_ == "") { doOperation("TakeObjRight", [this]); addToHand(parentGame_.xmlObjects["data//hand.xml"].firstChild, "RIGHT"); rightCarry_ = "COFFEE"; } doNextCommand(); } return; case CMD_GO_PHONE : var aCoffee = parentGame_.getMO("RECEPTION1"); targetx = aCoffee.jEntry_.x + (aCoffee.jEntry_.width / 2); targety = aCoffee.jEntry_.y + (aCoffee.jEntry_.height / 2); parentGame_.heroToPoint(targetx, targety); return; case CMD_GO_DAILY : var aCoffee = parentGame_.getMO("RECEPTION1"); targetx = aCoffee.jEntry_.x + (aCoffee.jEntry_.width / 2); targety = aCoffee.jEntry_.y + (aCoffee.jEntry_.height / 2); parentGame_.heroToPoint(targetx, targety); return; case CMD_GO_COFFEE : var aCoffee = parentGame_.getMO("COFFEE"); targetx = aCoffee.jEntry_.x + (aCoffee.jEntry_.width / 2); targety = aCoffee.jEntry_.y + (aCoffee.jEntry_.height / 2); parentGame_.heroToPoint(targetx, targety); return; case CMD_GO_RECEPTION : var aReceptn = parentGame_.getMO("RECEPTION1"); targetx = aReceptn.jEntry_.x + (aReceptn.jEntry_.width / 2); targety = aReceptn.jEntry_.y + (aReceptn.jEntry_.height / 2); parentGame_.heroToPoint(targetx, targety); return; case CMD_GO_LEFTARM : var target = parentGame_.getMO("ARMCHAIR_LEFT"); var cEntry = target.getCentry(); parentGame_.heroToPoint(cEntry.x + (cEntry.width / 2), cEntry.y + cEntry.height); return; case CMD_TAKE_EAT : var aObj = parentGame_.getMO("KITCHEN"); var requered = parentGame_.countRequests("eat"); if (requered == 0) { doNextCommand(); aObj.counter_ = 0; } else if ((aObj.nowObjects_ > 0) && ((leftCarry_ == "") || (rightCarry_ == ""))) { aObj.uncheckFirst(); aObj.nowObjects_--; if (leftCarry_ == "") { doOperation("TakeObjLeft", [this]); addToHand(parentGame_.xmlObjects["data//eat.xml"].firstChild, "LEFT"); leftCarry_ = "KITCHEN"; } else if (rightCarry_ == "") { doOperation("TakeObjRight", [this]); addToHand(parentGame_.xmlObjects["data//eat.xml"].firstChild, "RIGHT"); rightCarry_ = "KITCHEN"; } doNextCommand(); } return; case CMD_GO_KITCHEN : var target = parentGame_.getMO("KITCHEN"); var jEntry = target.getJentry(); parentGame_.heroToPoint(jEntry.x + 10, (jEntry.y + jEntry.height) - 2); return; case CMD_GO_EATING : var target = parentGame_.getMO("CHAIR"); var jEntry = target.getCentry(); parentGame_.heroToPoint(jEntry.x + (jEntry.width / 2), jEntry.y + jEntry.height); return; case CMD_GO_RIGHTARM : var target = parentGame_.getMO("ARMCHAIR_RIGHT"); var cEntry = target.getCentry(); parentGame_.heroToPoint(cEntry.x + (cEntry.width / 2), cEntry.y + cEntry.height); } } function startNewBlock() { if (cmdStacks_.length > 0) { var curStack = cmdStacks_[cmdStacks_.length - 1]; if (curStack.length == 0) { cmdStacks_.pop(); if (cmdStacks_.length > 0) { curStack = cmdStacks_[cmdStacks_.length - 1]; } } if (curStack.length > 0) { currCmd_ = Number(curStack.shift()); } } doCommand(currCmd_); } function getpersName() { return(persName_); } function setChanged(aVal) { changed_ = aVal; } function isChanged() { return(changed_); } function removePartsByName(aName) { var MebName = parentGame_.getMebName(aName); var XMLPart = parentGame_.getXMLPartName(aName); if (leftCarry_ == MebName) { leftCarry_ = ""; removeFromHand("LEFT", XMLPart); doOperation("FreeLeft", [this]); if (currCmd_ == CMD_AWAITING_RECEPTION) { animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "wait")); } } if (rightCarry_ == MebName) { rightCarry_ = ""; removeFromHand("RIGHT", XMLPart); doOperation("FreeRight", [this]); if (currCmd_ == CMD_AWAITING_RECEPTION) { animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "wait")); } } } function removePartByName(aName) { var MebName = parentGame_.getMebName(aName); var XMLPart = parentGame_.getXMLPartName(aName); if (leftCarry_ == MebName) { leftCarry_ = ""; removeFromHand("LEFT", XMLPart); doOperation("FreeLeft", [this]); if (currCmd_ == CMD_AWAITING_RECEPTION) { animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "wait")); } } else if (rightCarry_ == MebName) { rightCarry_ = ""; removeFromHand("RIGHT", XMLPart); doOperation("FreeRight", [this]); if (currCmd_ == CMD_AWAITING_RECEPTION) { animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "wait")); } } } function removeFromHand(hand, object) { var objectName = (object + hand); animObject.removePart(["MOVING", "BODY"], objectName); animObject.removePart(["WAITING", "BODY"], objectName); changed_ = true; } function addToHand(xmlScript, hand) { var objName = xmlScript.nodeName; var i = 0; while (i < xmlScript.firstChild.childNodes.length) { var stateName = xmlScript.firstChild.childNodes[i].nodeName; var partsNode = xmlScript.firstChild.childNodes[i].childNodes[0]; var partNode; if (partsNode.childNodes[0].nodeName == (objName + hand)) { partNode = partsNode.childNodes[0]; } else if (partsNode.childNodes[1].nodeName == (objName + hand)) { partNode = partsNode.childNodes[1]; } var aObject = parentGame_.factoryAnimObject.getByXML(partNode, this, false); animObject.insertPart(["MOVING", "BODY", stateName], partNode.attributes.after, aObject); animObject.insertPart(["WAITING", "BODY", stateName], partNode.attributes.after, aObject); i++; } } function addAttachment(path, attachment, cover) { animObject.addAttachmentP(path, attachment, cover); } function setStateChecker(aFunction) { checkFunction = aFunction; } function stateChecker(aFunction) { } function updateAnimation() { var newDirect = getTurnAnim(moving_direction); if (newDirect != prev_turn) { prev_turn = newDirect; } } function setMovingDirection(aVal) { moving_direction = aVal; } function startDisappear() { startDisTime_ = 0; } function getTargetMove() { return(target_move); } function processMoving(timeDone) { } function DoPathMove() { if (HasPath()) { var nextpoint = path.shift(); target_move = new flash.geom.Point(parentGame_.map_.XConvertToLocal(nextpoint[1]), parentGame_.map_.YConvertToLocal(nextpoint[0])); target_move.x; target_move.y = target_move.y + (Map.CELL_SIZE / 2); var dx = ((target_move.x - (_width / 2)) - _x); var dy = (((target_move.y - _height) + 2) - _y); setMovingDirection(Math.atan2(dy, dx)); } else { target_move = undefined; } } function downfromRoom1() { var cmdStack = new Array(); cmdStack.push(CMD_TURN6); cmdStack.push(CMD_GO_ROOM1_TOP); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_DOWN_ROOM1); cmdStack.push(CMD_TURN3); cmdStack.push(CMD_APPEAR); return(cmdStack); } function downfromRoom5() { var cmdStack = new Array(); cmdStack.push(CMD_TURN6); cmdStack.push(CMD_GO_ROOM5_TOP); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_DOWN_ROOM5); cmdStack.push(CMD_TURN9); cmdStack.push(CMD_APPEAR); return(cmdStack); } function gotoReception() { } function quant(timeDone) { if ((currCmd_ == -1) && (cmdStacks_.length == 0)) { doNextBlock(); } if ((currCmd_ == CMD_AWAITING_RECEPTION) && (cmdStacks_.length == 0)) { } if (((currCmd_ == CMD_AWAITING_RECEPTION) && (cmdStacks_.length > 1)) && (cmdStacks_[1].stackName_ != CmdStack.CMD_DICT[CmdStack.TAKE_KEY])) { doNextBlock(); } if (target_move != undefined) { var dx = ((target_move.x - (_width / 2)) - _x); var dy = (((target_move.y - _height) + 2) - _y); var ang = Math.atan2(dy, dx); var speedx = (((Math.cos(ang) * velocity_) * timeDone) / 1000); var speedy = (((Math.sin(ang) * velocity_) * timeDone) / 1000); var speed = ((velocity_ * timeDone) / 1000); if ((Math.abs(dx) <= speed) && (Math.abs(dy) <= speed)) { _x = target_move.x - (_width / 2); _y = (target_move.y - _height) + 2; parentGame_.updateDepths(this); if (HasPath()) { DoPathMove(); } else { target_move = undefined; } } else { var xchanged = false; if ((_x + speedx) != _x) { xchanged = true; } _x = _x + speedx; var ychanged = false; if ((_y + speedy) != _y) { ychanged = true; } _y = _y + speedy; if ((ychanged == true) || (xchanged == true)) { parentGame_.updateDepths(this); } } if (target_move != undefined) { } updateAnimation(); } else { switch (currCmd_) { case CMD_GO_RECEPTION : case CMD_TAKE_KEY : case CMD_TAKE_MONEY : case CMD_GO_COFFEE : case CMD_GO_DAILY : case CMD_GO_PHONE : case CMD_GO_ROOM1_BTM : case CMD_GO_ROOM5_BTM : case CMD_GO_ROOM1_TOP : case CMD_GO_ROOM5_TOP : case CMD_GO_ROOM1 : case CMD_GO_ROOM2 : case CMD_GO_ROOM3 : case CMD_GO_ROOM4 : case CMD_GO_ROOM5 : case CMD_GO_LEFTARM : case CMD_GO_RIGHTARM : case CMD_GO_KITCHEN : case CMD_GO_EATING : doNextCommand(); } } switch (currCmd_) { case CMD_AWAITING_RECEPTION : var aReceptn = parentGame_.getMO("RECEPTION1"); if ((aReceptn.orderArr_.length > 0) && (parentGame_.keyVisible_ == false)) { var custArr = parentGame_.getCustomersInState(Customer.CMD_AWAITING_RECEPTION); if (custArr.length > 0) { if (custArr[0].orderNum_ == aReceptn.orderArr_[0]) { aReceptn.setUncheck(custArr[0].orderNum_); custArr[0].eraseCheck(); custArr[0].takeKey(parentGame_.getEmptyRoom()); } } } break; case CMD_APPEAR : startDisTime_ = startDisTime_ + timeDone; _alpha = 100 * (startDisTime_ / DISAPPLENGTH); if (_alpha >= 100) { startDisTime_ = 0; doNextCommand(); } break; case CMD_GO_UP_ROOM1 : case CMD_GO_UP_ROOM5 : startDisTime_ = startDisTime_ + timeDone; if (startDisTime_ >= UPPINGLENTH) { doNextCommand(); startDisTime_ = 0; } break; case CMD_DISAPPEAR : startDisTime_ = startDisTime_ + timeDone; _alpha = 100 - (100 * (startDisTime_ / DISAPPLENGTH)); if (_alpha > 0) { break; } doNextCommand(); startDisTime_ = 0; } animObject.quant(timeDone); } function drawIt() { resultBitmap = animObject.drawIt(resultBitmap, 10, 0); attachBitmap(resultBitmap, 1, "auto", true); } function attachResBitmap(bData) { attachBitmap(resultBitmap, 0, "auto", true); } function registerOperation(operName, operbody) { operations_[operName] = operbody; } function doOperation(operName, operData) { operations_[operName](operData); } function CreateByXML(xmlScript, parentGame) { requests_ = new Array(); leftCarry_ = ""; rightCarry_ = ""; currBlockName_ = "NONE"; inRoom_ = undefined; currCmd_ = -1; cmdStacks_ = new Array(); operations_ = new Array(); parentGame_ = parentGame; resultBitmap = new flash.display.BitmapData(Number(xmlScript.firstChild.childNodes[0].attributes.width), Number(xmlScript.firstChild.childNodes[0].attributes.height), true, 0); persName_ = xmlScript.firstChild.childNodes[ANIMATIONIND].nodeName; animObject = parentGame.factoryAnimObject.getByXML(xmlScript.firstChild.childNodes[ANIMATIONIND], this, false); shadowX_ = Number(xmlScript.firstChild.childNodes[0].attributes.shadowx); shadowY_ = Number(xmlScript.firstChild.childNodes[0].attributes.shadowy); shadowClip_ = attachMovie("mc_shadow", "shadow1", 0); shadowClip_._y = shadowY_; shadowClip_._x = shadowX_; drawIt(); } function howMuchCarry(aname) { var retVal = 0; if (leftCarry_ == aname) { retVal++; } if (rightCarry_ == aname) { retVal++; } return(retVal); } function isCarry(aname) { if ((leftCarry_ == aname) || (rightCarry_ == aname)) { return(true); } return(false); } function hasRequestObj(aObj) { var i = 0; while (i < requests_.length) { if (requests_[i] == aObj) { return(true); } i++; } return(false); } function MoveTo(p) { target_move = p; } function MoveToPath(path_array) { path = path_array; DoPathMove(); } function StopMove() { target_move = undefined; moving_direction = -4; } function HasPath() { return((path != undefined) && (path.length > 0)); } function drawPath() { var i = 0; while (i < path.length) { var xPoint = Number(path[i][1]); var yPoint = Number(path[i][0]); xPoint = parentGame_.map_.XConvertToLocal(xPoint); yPoint = parentGame_.map_.YConvertToLocal(yPoint); parentGame_.dbgClip.beginFill(16764074, 80); parentGame_.dbgClip.moveTo(xPoint - 2, yPoint - 2); parentGame_.dbgClip.lineTo(xPoint + 2, yPoint - 2); parentGame_.dbgClip.lineTo(xPoint + 2, yPoint + 2); parentGame_.dbgClip.lineTo(xPoint - 2, yPoint + 2); parentGame_.dbgClip.lineTo(xPoint - 2, yPoint - 2); parentGame_.dbgClip.endFill(); i++; } } function getTurnAnim(tang) { if ((tang >= -0.5) && (tang <= 0.5)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "sideright"); } else if ((tang <= 2.1) && (tang >= 1.5)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "front"); } else if (((tang > 2.7) && (tang <= 3.2)) || ((tang > -3.2) && (tang <= -2.7))) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "sideleft"); } else if ((tang >= -1.8) && (tang <= -1.4)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "back"); } else if ((tang > 2.1) && (tang < 2.7)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "frontsideleft"); } else if ((tang < 1.5) && (tang > 0.5)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "frontsideright"); } else if ((tang > -2.7) && (tang < -1.8)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "backsideleft"); } else if ((tang > -1.4) && (tang < -0.5)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "backsideright"); } } static var ANIMATIONIND = 0; static var DISAPPLENGTH = 160; static var UPPINGLENTH = 500; static var CMD_AWAITING_RECEPTION = 1; static var CMD_GO_RECEPTION = 2; static var CMD_GO_ROOM1_BTM = 3; static var CMD_DISAPPEAR = 4; static var CMD_GO_UP_ROOM1 = 5; static var CMD_APPEAR = 6; static var CMD_GO_ROOM1 = 7; static var CMDON_ROOM1 = 8; static var CMD_GO_ROOM5_BTM = 9; static var CMDDISAPP_ROOM5_BTM = 10; static var CMD_GO_UP_ROOM5 = 11; static var CMD_GO_ROOM5 = 13; static var CMDON_ROOM5 = 14; static var CMD_GO_ROOM2 = 15; static var CMDON_ROOM2 = 16; static var CMD_GO_ROOM3 = 17; static var CMDON_ROOM3 = 18; static var CMD_GO_ROOM4 = 19; static var CMDON_ROOM4 = 20; static var CMD_OFF_ROOM1 = 21; static var CMD_DISAPP_OFF_ROOM1 = 22; static var CMD_GO_DOWN_OFF_ROOM1 = 23; static var CMD_TAKE_KEY = 25; static var CMD_GO_COFFEE = 26; static var CMD_TAKE_COFFEE = 27; static var CMD_TURN12 = 29; static var CMD_TURN6 = 30; static var CMD_TURN3 = 31; static var CMD_TURN9 = 32; static var CMD_TURN10_5 = 33; static var CMD_TURN1_5 = 34; static var CMD_TURN4_5 = 35; static var CMD_TURN7_5 = 36; static var CMD_GO_ROOM1_TOP = 37; static var CMD_GO_DOWN_ROOM1 = 38; static var CMD_GIVE_COFFEE_ROOM1 = 39; static var CMD_GIVE_COFFEE_ROOM2 = 40; static var CMD_GIVE_COFFEE_ROOM3 = 41; static var CMD_GIVE_COFFEE_ROOM4 = 42; static var CMD_GIVE_COFFEE_ROOM5 = 43; static var CMD_TAKE_DAILY = 44; static var CMD_GIVE_DAILY_ROOM1 = 45; static var CMD_GIVE_DAILY_ROOM2 = 46; static var CMD_GIVE_DAILY_ROOM3 = 47; static var CMD_GIVE_DAILY_ROOM4 = 48; static var CMD_GIVE_DAILY_ROOM5 = 49; static var CMD_GO_DAILY = 50; static var CMD_TAKE_PHONE = 51; static var CMD_GO_PHONE = 52; static var CMD_GIVE_PHONE_ROOM1 = 53; static var CMD_GIVE_PHONE_ROOM2 = 54; static var CMD_GIVE_PHONE_ROOM3 = 55; static var CMD_GIVE_PHONE_ROOM4 = 56; static var CMD_GIVE_PHONE_ROOM5 = 57; static var CMD_GO_LEFTARM = 58; static var CMD_GO_RIGHTARM = 59; static var CMD_GIVE_COFFEE_LEFTARM = 60; static var CMD_GIVE_DAILY_LEFTARM = 61; static var CMD_GIVE_PHONE_LEFTARM = 62; static var CMD_GIVE_COFFEE_RIGHTARM = 63; static var CMD_GIVE_DAILY_RIGHTARM = 64; static var CMD_GIVE_PHONE_RIGHTARM = 65; static var CMD_GO_KITCHEN = 66; static var CMD_TAKE_EAT = 67; static var CMD_GO_EATING = 68; static var CMD_GIVE_EAT = 69; static var CMD_GO_DOWN_ROOM5 = 70; static var CMD_GO_ROOM5_TOP = 71; static var CMD_TAKE_MONEY = 72; var velocity_ = 180; var prev_turn = -1; }Symbol 332 MovieClip [__Packages.IMapObject] Frame 0interface IMapObject { }Symbol 333 MovieClip [__Packages.IRequestAble] Frame 0interface IRequestAble { }Symbol 334 MovieClip [__Packages.Room] Frame 0class Room extends MovieClip implements IDrawAble, IMapObject, IRequestAble { static var bevel_; var _x, _y, chkSmb_, jEntry_, request_, aAvatar_, parentGame_, occupied_, attachMovie, persName_, bDataAvatar_, aCrug_, createEmptyMovieClip, customer_, interactive_, changed_, resultBitmap, orderNum_, getNextHighestDepth, animObject, attachBitmap, ordered_, useHandCursor, onPress; function Room () { super(); if (bevel_ == undefined) { var color = Number("0xFFFD00"); var alpha = 1; var blurX = 3; var blurY = 3; var strength = 5; var quality = 3; var inner = false; var knockout = false; bevel_ = new flash.filters.GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout); } } function getX() { return(_x); } function getY() { return(_y); } function getChkSmb() { return(chkSmb_); } function getJentry() { return(jEntry_); } function isRequesting() { if (request_.name_ == "") { return(false); } return(true); } function getRequestName() { return(request_.name_); } function isChecked() { if (chkSmb_ == undefined) { return(false); } return(true); } function doneRequest() { Helper.PlaySound("service_accepted"); aAvatar_._visible = false; switch (request_.name_) { case "daily" : case "cup" : case "phone" : case "eat" : var theObj = parentGame_.getMO(parentGame_.getMebName(request_.name_)); parentGame_.levelcash_ = parentGame_.levelcash_ + theObj.price_; GameHelper.showMoneyUp("+" + theObj.price_, "eraseText", _x, _y, -20, -20, 4); parentGame_.wndCash_.updateCashData(); break; case "clean" : if (occupied_ != true) { break; } parentGame_.levelcash_ = parentGame_.levelcash_ + 10; GameHelper.showMoneyUp("+10", "eraseText", _x, _y, -20, -20, 4); parentGame_.wndCash_.updateCashData(); } request_.resetRequest(false); } function hasCheckedRequest(aName) { if ((request_.name_ == aName) && (chkSmb_ != undefined)) { return(true); } return(false); } function hasRequests() { if ((request_.name_ != "") && (chkSmb_ == undefined)) { return(true); } return(false); } function hasRequest(aName) { if (request_.name_ == aName) { return(true); } return(false); } function activateRequest(aName) { if (aAvatar_ == undefined) { aAvatar_ = attachMovie("avatar_cld", "avatar_cld" + persName_, AVATARDEPTH); aAvatar_._x = (-aAvatar_._width) / 2; if ((persName_ == "ROOM1") || (persName_ == "ROOM5")) { aAvatar_._y = 0; } else { aAvatar_._y = -35; } bDataAvatar_ = new flash.display.BitmapData(aAvatar_._width, aAvatar_._height, true, 0); } else { aAvatar_._visible = true; } if (aCrug_ == undefined) { aCrug_ = createEmptyMovieClip("krug" + persName_, KRUGDEPTH); aCrug_._y = aAvatar_._y + (aAvatar_._height / 2); } bDataAvatar_.colorTransform(bDataAvatar_.rectangle, parentGame_.transparent_); bDataAvatar_.copyPixels(customer_.bmpNorm_, customer_.bmpNorm_.rectangle, new flash.geom.Point(((aAvatar_._width / 2) - (customer_.bmpNorm_.width / 2)) - 6, (aAvatar_._height / 2) - (customer_.bmpNorm_.height / 2))); aAvatar_.attachBitmap(bDataAvatar_, 10, "auto", true); if (aName == "clean") { request_.activate(aName, Customer.CLEAN_WAIT_TIME, aCrug_, this); } else { request_.activate(aName, Customer.ROOM_WAIT_TIME, aCrug_, this); } } function requestFail(aName) { aAvatar_._visible = false; if (aName == "cup") { switch (persName_) { case "ROOM1" : parentGame_.aJane.cutBlock("GIVE_COFFEE_TO_ROOM1"); return; case "ROOM2" : parentGame_.aJane.cutBlock("GIVE_COFFEE_TO_ROOM2"); return; case "ROOM3" : parentGame_.aJane.cutBlock("GIVE_COFFEE_TO_ROOM3"); return; case "ROOM4" : parentGame_.aJane.cutBlock("GIVE_COFFEE_TO_ROOM4"); } } } function setEntry(aVal) { jEntry_ = aVal; } function getPersName() { return(persName_); } function isInteractive() { return(interactive_); } function setChecked(aValue) { checkedState_ = aValue; } function setChanged(aVal) { changed_ = aVal; } function isChanged() { return(changed_); } function getMC() { return(this); } function getResultBmp() { return(resultBitmap); } function isBusy() { return(false); } function isWorkable() { return(true); } function eraseCheck() { chkSmb_.removeMovieClip(); chkSmb_ = undefined; orderNum_ = -1; } function setCheck(order) { orderNum_ = order; chkSmb_ = attachMovie("check_smb", "check_smb" + persName_, getNextHighestDepth() + order); chkSmb_._x = 41; if ((persName_ == "ROOM1") || (persName_ == "ROOM5")) { chkSmb_._y = 60; } else { chkSmb_._y = 25; } } function quant(timeDone) { animObject.quant(timeDone); request_.quant(timeDone); } function selectIt() { selctnState_ = SELECTION_DONE; changed_ = true; } function unselectIt() { selctnState_ = SELECTION_NONE; } function drawIt() { resultBitmap = animObject.drawIt(resultBitmap, 0, 0); if (selctnState_ == SELECTION_DONE) { resultBitmap.applyFilter(resultBitmap, resultBitmap.rectangle, new flash.geom.Point(0, 0), bevel_); } attachBitmap(resultBitmap, 0, "auto", true); } function orderIt() { animObject.sendSignalState([animObject.getName(), "CLOSED", "ORDERED"], "check"); } function unOrderIt() { animObject.sendSignalState([animObject.getName(), "CLOSED", "ORDERED"], "uncheck"); } function deselect() { animObject.sendSignalState([animObject.getName(), "CLOSED", "SELECTION"], "unselect"); animObject.sendSignalState([animObject.getName(), "OPENED", "SELECTION"], "unselect"); aAvatar_.filters = new Array(); } function selectYelow() { animObject.sendSignalState([animObject.getName(), "CLOSED", "SELECTION"], "select"); animObject.sendSignalState([animObject.getName(), "OPENED", "SELECTION"], "select"); if ((request_.name_ != "") && (aAvatar_.filters.length == 0)) { var myFilters = aAvatar_.filters; myFilters.push(bevel_); aAvatar_.filters = myFilters; } } function CreateByXML(xmlScript, parentgame) { orderNum_ = -1; ordered_ = false; occupied_ = false; parentGame_ = parentgame; request_ = new custRequest(parentGame_); persName_ = xmlScript.firstChild.nodeName; if ((xmlScript.firstChild.attributes.interactive == "true") || (xmlScript.firstChild.attributes.interactive == undefined)) { interactive_ = true; } else { interactive_ = false; } var timestart = getTimer(); resultBitmap = new flash.display.BitmapData(Number(xmlScript.firstChild.attributes.width), Number(xmlScript.firstChild.attributes.height), true, 0); animObject = new AnimObject(); animObject.createByXML(xmlScript.firstChild, this); drawIt(); _x = Number(xmlScript.firstChild.attributes.regx); _y = Number(xmlScript.firstChild.attributes.regy); if ((((xmlScript.firstChild.attributes.jx != undefined) && (xmlScript.firstChild.attributes.jy != undefined)) && (xmlScript.firstChild.attributes.jsx != undefined)) && (xmlScript.firstChild.attributes.jsy != undefined)) { jEntry_ = new flash.geom.Rectangle(_x + Number(xmlScript.firstChild.attributes.jx), _y + Number(xmlScript.firstChild.attributes.jy), Number(xmlScript.firstChild.attributes.jsx), Number(xmlScript.firstChild.attributes.jsy)); } useHandCursor = false; onPress = function () { if ((this.chkSmb_ == undefined) && (this.request_.name_ != "")) { if (this.request_.name_ == "clean") { if (this.parentGame_.aMaid.inKitchen_ == false) { this.setCheck(0); switch (this.persName_) { case "ROOM1" : this.parentGame_.aMaid.cleanRoom1(); break; case "ROOM2" : this.parentGame_.aMaid.cleanRoom2(); break; case "ROOM3" : this.parentGame_.aMaid.cleanRoom3(); break; case "ROOM4" : this.parentGame_.aMaid.cleanRoom4(); break; case "ROOM5" : this.parentGame_.aMaid.cleanRoom5(); } } else { Helper.PlaySound("key_denied", 1); } } else { var aMebname = this.parentGame_.getMebName(this.request_.name_); var aMeb = this.parentGame_.getMO(aMebname); var checkedRequest = this.parentGame_.countcheckedRequests(this.request_.name_); var ordersCount = (this.parentGame_.aJane.howMuchCarry(aMebname) + aMeb.chkSmbArr_.length); if (aMeb.repareChecked_ == true) { ordersCount--; } if (ordersCount > 0) { this.setCheck(0); switch (this.request_.name_) { case "cup" : this.parentGame_.aJane.bringCoffeToRoom(this); break; case "daily" : this.parentGame_.aJane.bringDailyToRoom(this); break; case "phone" : this.parentGame_.aJane.bringPhoneToRoom(this); break; default : Helper.PlaySound("key_denied", 1); } } else { Helper.PlaySound("key_denied", 1); } } } else { Helper.PlaySound("key_denied", 1); } }; } static var SELECTION_NONE = 0; static var SELECTION_DONE = 1; static var CHECKED_NONE = 0; static var CHECKED_DONE = 1; static var KRUGDEPTH = 2; static var AVATARDEPTH = 1; var selctnState_ = SELECTION_NONE; var checkedState_ = CHECKED_NONE; }Symbol 335 MovieClip [__Packages.custRequest] Frame 0class custRequest { static var bmpCheck_; var aColorObj, name_, parentGame_, resSprite, resSpritePict, currStateCount_, currStateTime_, wideState_, redState_, receptor_, requestNum_, checked_, maxTime_, sectdone_, parentMovie_, lastSect_, blinklength_, fillClip, sectdone; function custRequest (parentGame) { aColorObj = new flash.geom.ColorTransform(); name_ = ""; parentGame_ = parentGame; radius_ = 15; resSprite = new flash.display.BitmapData(radius_ * 2, radius_ * 2, true, 0); resSpritePict = new flash.display.BitmapData(radius_ * 2, radius_ * 2, true, 0); if (bmpCheck_ == undefined) { bmpCheck_ = flash.display.BitmapData.loadBitmap("checkMark"); } } function activate(req_Name, maxTime, parentcust, receptor) { currStateCount_ = STATE_COUNT; currStateTime_ = STATE_TIME; wideState_ = -1; var aTree = parentGame_.getMO("FLOWER_LEFT"); if ((aTree != undefined) && (aTree.isYellow_ == true)) { maxTime = maxTime - 3000; } var aTree = parentGame_.getMO("FLOWER_RIGHT"); if ((aTree != undefined) && (aTree.isYellow_ == true)) { maxTime = maxTime - 3000; } redState_ = false; var aMeb = parentGame_.getMO(parentGame_.getMebName(req_Name)); if (aMeb != undefined) { aMeb.counter_++; } receptor_ = receptor; currTime_ = 0; prevTime_ = 0; requestNum_ = staticNum; staticNum++; checked_ = false; maxTime_ = maxTime; currTime_ = 0; name_ = req_Name; sectdone_ = -Math.round(sectors_ / 2); parentMovie_ = parentcust; lastSect_ = -1; aColorObj.alphaMultiplier = 1; aColorObj.alphaOffset = 255; aColorObj.blueMultiplier = 1; aColorObj.blueOffset = 0; aColorObj.greenMultiplier = 1; aColorObj.greenOffset = 255; aColorObj.redMultiplier = 1; aColorObj.redOffset = 0; blinked_ = false; blinklength_ = ((maxTime / 4) / 4) / 2; var aBitmap = SpriteFactory.getSharedSprite(req_Name).bitmap_; var aCloud = SpriteFactory.getSharedSprite("task_cloud").bitmap_; resSprite.copyPixels(aCloud, aCloud.rectangle, new flash.geom.Point(((radius_ * 2) - aCloud.width) / 2, ((radius_ * 2) - aCloud.height) / 2)); resSpritePict.copyPixels(aBitmap, aBitmap.rectangle, new flash.geom.Point(((radius_ * 2) - aBitmap.width) / 2, ((radius_ * 2) - aBitmap.height) / 2)); parentMovie_.attachBitmap(resSprite, 0, "auto", false); fillClip = parentMovie_.createEmptyMovieClip("Fill", 1); fillClip._x = 0; fillClip._y = 0; parentMovie_.attachBitmap(resSpritePict, 2); } function resetRequest(failed) { if (failed == false) { if (sectdone <= 40) { Fx.CreateTrailToPoint(parentGame_, new flash.geom.Point(receptor_.getX(), receptor_.getY()), new flash.geom.Point(300, 350), "AddGreen", "StarGreen"); parentGame_.cashBar_.indexValue_ = parentGame_.cashBar_.indexValue_ + Math.floor(parentGame_.levelPopularity_ / 5); GameHelper.ShowStimulationText(parentGame_.dictXML.firstChild.attributes[POPANS[Math.floor(Math.random() * POPANS.length)]], "eraseText", receptor_.getX() - 30, receptor_.getY() - 30, -30, -31, 2, 0.1); parentGame_.cashBar_.update(); parentGame_.wndCash_.updateCashData(); Helper.PlaySound("plus", 1); } } var requests; requests = parentGame_.countRequests(name_); if (name_ == "clean") { if (requests <= 1) { if (parentGame_.aMaid.inKitchen_ == false) { parentGame_.aMaid.goKitchen(); } } if (failed == true) { } if (receptor_.getChkSmb() != undefined) { receptor_.eraseCheck(); } } else { var aMeb = parentGame_.getMO(parentGame_.getMebName(name_)); aMeb.counter_--; if (failed == false) { if (requests <= 1) { parentGame_.aJane.removePartByName(name_); aMeb.nowObjects_++; if (name_ == "cup") { if (aMeb.maxObjects_ == 1) { aMeb.animObject.sendSignalState([aMeb.animObject.getName(), "DEFAULT", "CUP1"], "check"); } else if (aMeb.nowObjects_ >= 2) { aMeb.animObject.sendSignalState([aMeb.animObject.getName(), "DEFAULT", "CUP1"], "check"); aMeb.animObject.sendSignalState([aMeb.animObject.getName(), "DEFAULT", "CUP2"], "check"); } else if (aMeb.nowObjects_ == 1) { aMeb.animObject.sendSignalState([aMeb.animObject.getName(), "DEFAULT", "CUP1"], "check"); } } } } else if (requests <= 1) { if (parentGame_.aJane.isCarry(parentGame_.getMebName(name_))) { aMeb.nowObjects_ = aMeb.nowObjects_ + parentGame_.aJane.howMuchCarry(aMeb.getPersName()); parentGame_.aJane.removePartsByName(name_); if (name_ == "cup") { if (aMeb.maxObjects_ == 1) { aMeb.animObject.sendSignalState([aMeb.animObject.getName(), "DEFAULT", "CUP1"], "check"); } else if (aMeb.nowObjects_ >= 2) { aMeb.animObject.sendSignalState([aMeb.animObject.getName(), "DEFAULT", "CUP1"], "check"); aMeb.animObject.sendSignalState([aMeb.animObject.getName(), "DEFAULT", "CUP2"], "check"); } else if (aMeb.nowObjects_ == 1) { aMeb.animObject.sendSignalState([aMeb.animObject.getName(), "DEFAULT", "CUP1"], "check"); } } } while (aMeb.chkSmbArr_.length > 0) { aMeb.uncheckFirst(); } } else if (aMeb.chkSmbArr_.length > 0) { aMeb.uncheckFirst(); } else if ((requests - 1) < parentGame_.aJane.howMuchCarry(aMeb.getPersName())) { parentGame_.aJane.removePartByName(name_); aMeb.nowObjects_++; if (name_ == "cup") { if (aMeb.maxObjects_ == 1) { aMeb.animObject.sendSignalState([aMeb.animObject.getName(), "DEFAULT", "CUP1"], "check"); } else if (aMeb.nowObjects_ >= 2) { aMeb.animObject.sendSignalState([aMeb.animObject.getName(), "DEFAULT", "CUP1"], "check"); aMeb.animObject.sendSignalState([aMeb.animObject.getName(), "DEFAULT", "CUP2"], "check"); } else if (aMeb.nowObjects_ == 1) { aMeb.animObject.sendSignalState([aMeb.animObject.getName(), "DEFAULT", "CUP1"], "check"); } } } if (receptor_.getChkSmb() != undefined) { receptor_.eraseCheck(); } } name_ = ""; parentMovie_.clear(); fillClip.clear(); resSprite.colorTransform(resSprite.rectangle, parentGame_.transparent_); resSpritePict.colorTransform(resSprite.rectangle, parentGame_.transparent_); } function drawSect(prevSect) { if (prevSect <= ((-sectors_) - (sectors_ / 2))) { if (wideState_ == -1) { wideState_ = STATE_WIDE; } } else if (wideState_ == -1) { fillClip.beginFill(aColorObj.rgb, aColorObj.alphaOffset); fillClip.moveTo(resSprite.width / 2, resSprite.height / 2); fillClip.lineTo((resSprite.width / 2) + (radius_ * Math.sin((pi2 * prevSect) / sectors_)), (resSprite.height / 2) + (radius_ * Math.cos((pi2 * prevSect) / sectors_))); fillClip.lineTo((resSprite.width / 2) + (radius_ * Math.sin((pi2 * (prevSect - 1)) / sectors_)), (resSprite.height / 2) + (radius_ * Math.cos((pi2 * (prevSect - 1)) / sectors_))); fillClip.lineTo(resSprite.width / 2, resSprite.height / 2); fillClip.moveTo(0, 0); fillClip.endFill(); if (checked_ == true) { resSpritePict.copyPixels(bmpCheck_, bmpCheck_.rectangle, new flash.geom.Point(0, 0), null, null, true); } } } function eraseRepair() { redState_ = false; parentMovie_.clear(); fillClip.clear(); var nameout = name_; name_ = ""; receptor_.requestFail(nameout); resSprite.colorTransform(resSprite.rectangle, parentGame_.transparent_); resSpritePict.colorTransform(resSprite.rectangle, parentGame_.transparent_); } function FinishRequestFail() { var myPoint = (new flash.geom.Point(0, 0)); parentMovie_.localToGlobal(myPoint); if (!redState_) { Fx.CreateTrailToPoint(parentGame_, myPoint, new flash.geom.Point(350, 350), "MinusRed", "StarRed"); Helper.PlaySound("minus", 1); parentGame_.levelPopularity_--; if (parentGame_.levelPopularity_ < 0) { parentGame_.levelPopularity_ = 0; } } if (name_ != "repair") { parentMovie_.clear(); fillClip.clear(); var nameout = name_; resetRequest(true); name_ = ""; wideState_ = -1; receptor_.requestFail(nameout); resSprite.colorTransform(resSprite.rectangle, parentGame_.transparent_); resSpritePict.colorTransform(resSprite.rectangle, parentGame_.transparent_); } else if (!redState_) { wideState_ = -1; lastSect_ = -1; redState_ = true; aColorObj.redOffset = 255; aColorObj.greenOffset = 0; var inHands = parentGame_.aJane.howMuchCarry(receptor_.getPersName()); var checkedRequests = parentGame_.countcheckedRequests(parentGame_.getRequestName(receptor_.getPersName())); var requests = parentGame_.countRequests(name_); var toEraseinMeb = 0; var toEraseRequests = 0; toEraseRequests = checkedRequests; if (Mebel(receptor_).repareChecked_ == false) { toEraseinMeb = Mebel(receptor_).chkSmbArr_.length; } else { toEraseinMeb = Mebel(receptor_).chkSmbArr_.length - 1; } var checkedArr = parentGame_.getCheckedArr(parentGame_.getRequestName(receptor_.getPersName())); var i = 0; while (i < toEraseRequests) { checkedArr[i].eraseCheck(); i++; } var i = 0; while (i < toEraseinMeb) { Mebel(receptor_).uncheckFirst(); i++; } } } function quant(theTime) { if ((name_ != "") && (wideState_ != -1)) { currStateTime_ = currStateTime_ - theTime; var size; if (currStateTime_ <= 0) { if (currStateCount_ > 0) { currStateCount_--; currStateTime_ = STATE_TIME; if (wideState_ == STATE_WIDE) { wideState_ = STATE_SHORT; } else { wideState_ = STATE_WIDE; } } else { FinishRequestFail(); } } else { var deltaN = (currStateTime_ / STATE_TIME); if ((wideState_ = STATE_WIDE)) { size = MIN_SIZE + ((MAX_SIZE - MIN_SIZE) * deltaN); } else { size = MAX_SIZE - ((MAX_SIZE - MIN_SIZE) * deltaN); } var sdvigx = (size - fillClip._width); var sdvigy = (size - fillClip._height); if (Math.abs(sdvigy / 2) >= 1) { fillClip._y = fillClip._y - (sdvigy / 2); fillClip._height = size; } if (Math.abs(sdvigx / 2) >= 1) { fillClip._x = fillClip._x - (sdvigx / 2); fillClip._width = size; } } } else if ((name_ != "") && (!redState_)) { sectdone = Math.floor(currTime_ * (sectors_ / maxTime_)); if (sectdone != lastSect_) { var sectDelt = (sectdone - lastSect_); lastSect_ = sectdone; var i = 0; while (i < sectDelt) { var nSectDone = ((-(sectdone - i)) - Math.floor(sectors_ / 2)); drawSect(nSectDone); if (name_ == "") { return(undefined); } i++; } } currTime_ = currTime_ + theTime; if (lastSect_ > (sectors_ - (sectors_ / 4))) { if (blinked_ == false) { lastSect_ = -1; fillClip.clear(); sectdone = Math.floor(currTime_ * (sectors_ / maxTime_)); if (sectdone != lastSect_) { var sectDelt = (sectdone - lastSect_); lastSect_ = sectdone; var i = 0; while (i < sectDelt) { var nSectDone = ((-(sectdone - i)) - Math.floor(sectors_ / 2)); drawSect(nSectDone); if (name_ == "") { return(undefined); } i++; } } blinked_ = true; } } if ((!redState_) && (!blinked_)) { var clrOffset = ((currTime_ * (255 / maxTime_)) * 2); if (aColorObj.redOffset < 255) { aColorObj.redOffset = Math.round(clrOffset); if (aColorObj.redOffset >= 255) { aColorObj.redOffset = 255; var clrOffset = ((((maxTime_ - currTime_) / 2) * (255 / maxTime_)) * 2); aColorObj.greenOffset = Math.round(clrOffset) - 255; lastSect_ = -1; fillClip.clear(); sectdone = Math.floor(currTime_ * (sectors_ / maxTime_)); if (sectdone != lastSect_) { var sectDelt = (sectdone - lastSect_); lastSect_ = sectdone; var i = 0; while (i < sectDelt) { var nSectDone = ((-(sectdone - i)) - Math.floor(sectors_ / 2)); drawSect(nSectDone); if (name_ == "") { return(undefined); } i++; } } } } else { var clrOffset = ((((maxTime_ - currTime_) / 2) * (255 / maxTime_)) * 2); aColorObj.greenOffset = Math.round(clrOffset) - 255; } } } } static var POPANS = new Array("pop_EXCELLENT", "pop_GOOD", "pop_INCREDIBLE", "pop_IMPRESSIVE"); static var staticNum = 0; static var sectors_ = 80; static var pi2 = (Math.PI*2); static var radius_ = 5; static var MAX_SIZE = 38; static var MIN_SIZE = 30; static var STATE_WIDE = 1; static var STATE_SHORT = 2; static var STATE_TIME = 900; static var STATE_COUNT = 5; var currTime_ = 0; var prevTime_ = 0; var blinked_ = false; }Symbol 336 MovieClip [__Packages.Mebel] Frame 0class Mebel extends MovieClip implements IDrawAble, IMapObject, IRequestAble { static var bevel_; var moneyArr_, attachMovie, getNextHighestDepth, aCrug_, createEmptyMovieClip, persName_, request_, swapable_, swapDepths, parentGame_, _y, cEntry_, jEntry_, resultBitmap, interactive_, changed_, leafarr_, animObject, leafTime_, isYellow_, fallTime_, _width, _x, orderArr_, moneyCheck_, chkSmbArr_, _height, repareChecked_, counter_, blocking_, canBreak_, repared_, maxObjects_, nowObjects_, price_, wait_, clientsAdd_, popularityAdd_, useHandCursor, onPress, attachBitmap; function Mebel () { super(); moneyArr_ = new Array(); if (bevel_ == undefined) { var color = Number("0xFFFD00"); var alpha = 1; var blurX = 9; var blurY = 9; var strength = 5; var quality = 3; var inner = false; var knockout = false; bevel_ = new flash.filters.GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout); } } function clearMoney() { var retValue_ = 0; var i = 0; while (i < moneyArr_.length) { retValue_ = retValue_ + moneyArr_[i].count; i++; } var i = 0; while (i < moneyArr_.length) { moneyArr_[i].removeMovieClip(); moneyArr_[i] = undefined; i++; } moneyArr_.splice(0, moneyArr_.length); return(retValue_); } function dropMoney(count) { var aMoney = attachMovie("Money", "Money" + moneyArr_.length, getNextHighestDepth()); aMoney._y = 6; aMoney._x = 25 + (moneyArr_.length * (aMoney._width / 3)); aMoney.count = count; moneyArr_.push(aMoney); } function callBrokeRequest() { Helper.PlaySound("broke", 1); if (aCrug_ == undefined) { aCrug_ = createEmptyMovieClip("krug" + persName_, KRUGDEPTH); } request_.activate("repair", 30000, aCrug_, this); aCrug_._x = 13; aCrug_._y = (-aCrug_._height) + (aCrug_._height / 3); if (swapable_ == true) { swapDepths(parentGame_.getNextEmptyDepth((_y * 20) + 600)); } } function getCentry() { return(cEntry_); } function setCentry(aVal) { cEntry_ = aVal; } function getJentry() { return(jEntry_); } function setEntry(aVal) { jEntry_ = aVal; } function getPersName() { return(persName_); } function setChecked(aValue) { checkedState_ = aValue; } function getResultBmp() { return(resultBitmap); } function isInteractive() { return(interactive_); } function setChanged(aVal) { changed_ = aVal; } function isChanged() { return(changed_); } function getMC() { return(this); } function removeLeaf(aLeaf) { var i = 0; while (i < leafarr_.length) { if (Leaf(leafarr_[i]) == aLeaf) { leafarr_.splice(i, 1); return; } i++; } } function clearLeaves() { var i = 0; while (i < leafarr_.length) { leafarr_[i].removeMovieClip(); i++; } leafarr_.splice(0, leafarr_.length); } function quant(timeDone) { animObject.quant(timeDone); request_.quant(timeDone); if (((persName_ == "FLOWER_LEFT") || (persName_ == "FLOWER_RIGHT")) && (parentGame_.programState_ == Game.PST_GAME_START)) { var i = 0; while (i < leafarr_.length) { if (Leaf(leafarr_[i]).stoped_ != true) { Leaf(leafarr_[i]).quant(timeDone); } i++; } leafTime_ = leafTime_ + timeDone; if (leafTime_ >= YELLOWTIME) { if (isYellow_ != true) { isYellow_ = true; animObject.sendSignalState([animObject.getName()], "yellow"); } fallTime_ = fallTime_ + timeDone; if ((fallTime_ >= 600) && (leafarr_.length < 30)) { fallTime_ = 0; var LeafMC = attachMovie("Leaf", ("L" + persName_) + String(leafTime_), getNextHighestDepth()); if (persName_ == "FLOWER_LEFT") { LeafMC._x = Math.floor(Math.random() * (_width - 15)) + 8; } else { LeafMC._x = (-Math.floor(Math.random() * 20)) - 10; } LeafMC._y = Math.floor(Math.random() * 5); Leaf(LeafMC).create(false); leafarr_.push(LeafMC); } } else if (leafTime_ >= GREENTIME) { fallTime_ = fallTime_ + timeDone; if (fallTime_ >= 400) { fallTime_ = 0; var LeafMC = attachMovie("Leaf", ("L" + persName_) + String(leafTime_), getNextHighestDepth()); if (persName_ == "FLOWER_LEFT") { LeafMC._x = Math.floor(Math.random() * (_width - 15)) + 8; } else { LeafMC._x = Math.floor(Math.random() * 20) - 10; } Leaf(LeafMC).create(true); leafarr_.push(LeafMC); } } } } function getChkSmb() { return(undefined); } function getRequestName() { return(request_.name_); } function getX() { return(_x); } function getY() { return(_y); } function isChecked() { return(false); } function requestFail(aName) { } function eraseCheck() { } function getOrders() { return(orderArr_); } function setMoneyCheck() { if (moneyCheck_ == undefined) { moneyCheck_ = attachMovie("check_smb", "moneyCheck" + persName_, getNextHighestDepth()); } moneyCheck_._x = 50; moneyCheck_._y = 20; } function setCheck(order, repare) { orderArr_.push(order); var checkMC = attachMovie("check_smb", "check_smb" + persName_, getNextHighestDepth() + chkSmbArr_.length); chkSmbArr_.push(checkMC); if (repare == true) { checkMC._x = aCrug_._x + 41; checkMC._y = aCrug_._y + 36; } else if (persName_ != "RECEPTION1") { checkMC._x = checkMC._x + (_width / 3); checkMC._y = checkMC._y + (_height / 2); } else { checkMC._x = _width / 2; checkMC._y = _height / 2; } if (chkSmbArr_.length > 1) { checkMC._x = chkSmbArr_[chkSmbArr_.length - 2]._x + 6; checkMC._y = chkSmbArr_[chkSmbArr_.length - 2]._y + 6; } } function hasRequests() { if (((request_.name_ != "") && (chkSmbArr_.length == 0)) && (moneyCheck_ == undefined)) { return(true); } return(false); } function hasRequest(aName) { if (request_.name_ == aName) { return(true); } return(false); } function uncheckFirst() { var retCode = -1; if (chkSmbArr_.length > 0) { chkSmbArr_[0].removeMovieClip(); chkSmbArr_.splice(0, 1); } return(retCode); } function setUncheck(order) { var i = 0; while (i < orderArr_.length) { if (orderArr_[i] == order) { orderArr_.splice(i, 1); chkSmbArr_[i].removeMovieClip(); chkSmbArr_.splice(i, 1); return(undefined); } i++; } } function deselect() { animObject.sendSignalState([animObject.getName(), "DEFAULT", "SELECTION"], "unselect"); aCrug_.filters = new Array(); } function selectYelow() { animObject.sendSignalState([animObject.getName(), "YELLOW", "SELECTION"], "select"); animObject.sendSignalState([animObject.getName(), "DEFAULT", "SELECTION"], "select"); if ((request_.name_ != "") && (aCrug_.filters.length == 0)) { var myFilters = aCrug_.filters; myFilters.push(Room.bevel_); aCrug_.filters = myFilters; } } function doSignal(path, signal) { animObject.sendSignalState(path, signal); } function CreateByXML(xmlScript, parentgame) { leafarr_ = new Array(); leafTime_ = 0; fallTime_ = 0; repareChecked_ = false; counter_ = 0; orderArr_ = new Array(); chkSmbArr_ = new Array(); parentGame_ = parentgame; request_ = new custRequest(parentGame_); if (xmlScript.firstChild.attributes.blocking != undefined) { blocking_ = xmlScript.firstChild.attributes.blocking == "true"; } if (xmlScript.firstChild.attributes.request != undefined) { parentGame_.reqsPossible_.push(xmlScript.firstChild.attributes.request); } if ((xmlScript.firstChild.attributes.interactive == "true") || (xmlScript.firstChild.attributes.interactive == undefined)) { interactive_ = true; } else { interactive_ = false; } if (xmlScript.firstChild.attributes.canBreak == "true") { canBreak_ = true; repared_ = false; } else { canBreak_ = false; } if (xmlScript.firstChild.attributes.maxobjects != undefined) { maxObjects_ = Number(xmlScript.firstChild.attributes.maxobjects); nowObjects_ = maxObjects_; } if (xmlScript.firstChild.attributes.price != undefined) { price_ = Number(xmlScript.firstChild.attributes.price); } if (xmlScript.firstChild.attributes.wait != undefined) { wait_ = Number(xmlScript.firstChild.attributes.wait); } if (xmlScript.firstChild.attributes.clients != undefined) { clientsAdd_ = Number(xmlScript.firstChild.attributes.clients); } if (xmlScript.firstChild.attributes.popularity != undefined) { popularityAdd_ = Number(xmlScript.firstChild.attributes.popularity); } persName_ = xmlScript.firstChild.nodeName; if (persName_ == "FLOWER_LEFT") { parentGame_.wndServiceL_.showWcan(); } var timestart = getTimer(); resultBitmap = new flash.display.BitmapData(Number(xmlScript.firstChild.attributes.width), Number(xmlScript.firstChild.attributes.height), true, 0); animObject = new AnimObject(); animObject.createByXML(xmlScript.firstChild, this); drawIt(); _x = Number(xmlScript.firstChild.attributes.regx); _y = Number(xmlScript.firstChild.attributes.regy); if ((((xmlScript.firstChild.attributes.jx != undefined) && (xmlScript.firstChild.attributes.jy != undefined)) && (xmlScript.firstChild.attributes.jsx != undefined)) && (xmlScript.firstChild.attributes.jsy != undefined)) { jEntry_ = new flash.geom.Rectangle(_x + Number(xmlScript.firstChild.attributes.jx), _y + Number(xmlScript.firstChild.attributes.jy), Number(xmlScript.firstChild.attributes.jsx), Number(xmlScript.firstChild.attributes.jsy)); } if ((((xmlScript.firstChild.attributes.cx != undefined) && (xmlScript.firstChild.attributes.cy != undefined)) && (xmlScript.firstChild.attributes.csx != undefined)) && (xmlScript.firstChild.attributes.csy != undefined)) { cEntry_ = new flash.geom.Rectangle(_x + Number(xmlScript.firstChild.attributes.cx), _y + Number(xmlScript.firstChild.attributes.cy), Number(xmlScript.firstChild.attributes.csx), Number(xmlScript.firstChild.attributes.csy)); } useHandCursor = false; if (interactive_ == true) { onPress = pressFunction; } } function pressFunction() { parentGame_.hotelMc.onPress(); } function Create(aId) { MebelFactory.Create(this, aId); } function drawIt() { resultBitmap = animObject.drawIt(resultBitmap, 0, 0); if (selctnState_ == SELECTION_DONE) { resultBitmap.applyFilter(resultBitmap, resultBitmap.rectangle, new flash.geom.Point(0, 0), bevel_); } attachBitmap(resultBitmap, 0, "auto", true); } function Disable() { } function Enable() { } static var SELECTION_NONE = 0; static var SELECTION_DONE = 1; static var CHECKED_NONE = 0; static var CHECKED_DONE = 1; static var KRUGDEPTH = 2; static var GREENTIME = 60000; static var YELLOWTIME = 90000; var selctnState_ = SELECTION_NONE; var checkedState_ = CHECKED_NONE; }Symbol 337 MovieClip [__Packages.Helper] Frame 0class Helper { static var _Music, mySoundTransformObjectMono, mySndTransformObjectMono, _Music_name, OnMusicLoaded, _get_it_url, _get_it_target; function Helper () { } static function getRoot() { var retStr = _root._url; if (retStr.indexOf("file:") != -1) { retStr = "localFile"; } return(retStr); } static function get PlayerName() { return(_playerName); } static function set PlayerName(value) { _playerName = value; globalSharedObject.data.PlayerName = _playerName; //return(PlayerName); } static function get isMusicLoaded() { return((_Music != undefined) && (_Music.getBytesTotal() == _Music.getBytesLoaded())); } static function get isMusicPlaying() { return(_Music_playing); } static function get Music() { return(_Music); } static function musicPlay(sndName_) { if (Game.MUSICSOUND == undefined) { Game.CreateMusic(); } Game.MUSICSOUND.stop(); Game.MUSICSOUND.attachSound(sndName_); Game.MUSICSOUND.start(0, 1000); if (mySoundTransformObjectMono == undefined) { mySoundTransformObjectMono = new Object(); } mySoundTransformObjectMono.ll = 0; mySoundTransformObjectMono.lr = Game.MUSICVLM; mySoundTransformObjectMono.rr = Game.MUSICVLM; mySoundTransformObjectMono.rl = 0; Game.MUSICSOUND.setTransform(mySoundTransformObjectMono); } static function PlaySound(name, loop, Sndvolume) { if (Sndvolume == undefined) { Sndvolume = Game.SOUNDVLM; } var snd = new Sound(_root.snd); snd.attachSound(name); mySndTransformObjectMono = new Object(); mySndTransformObjectMono.ll = 0; mySndTransformObjectMono.lr = Sndvolume; mySndTransformObjectMono.rr = Sndvolume; mySndTransformObjectMono.rl = 0; snd.setTransform(mySndTransformObjectMono); snd.start(0, loop); } static function PlayMusic(name) { if (name == undefined) { name = _Music_name; } else { _Music_name = name; } Tracer.info("Play music: " + _Music_name); if ((_Music != undefined) && (_Music_playing == false)) { _Music.setVolume(_MusicVolume); var mySoundTransformObject = new Object(); mySoundTransformObject.ll = MUSIC_LOUD_VALUE; mySoundTransformObject.lr = 0; mySoundTransformObject.rr = MUSIC_LOUD_VALUE; mySoundTransformObject.rl = 0; _Music.setTransform(mySoundTransformObject); _Music.start(0, 1000); _Music_playing = true; } } static function StopMusic() { Tracer.info("Stop music"); if ((_Music != undefined) && (_Music_playing == true)) { _Music.stop(); _Music_playing = false; } } static function LoadMusic(url) { Tracer.info("Start load music from: " + url); _Music_name = url; if (_Music == undefined) { _Music = new Sound(); } _Music.onLoad = function (success) { var mySoundTransformObject = new Object(); mySoundTransformObject.ll = Helper.MUSIC_LOUD_VALUE; mySoundTransformObject.lr = Helper.MUSIC_LOUD_VALUE; mySoundTransformObject.rr = 0; mySoundTransformObject.rl = 0; Helper._Music.setTransform(mySoundTransformObject); if (Helper.OnMusicLoaded != undefined) { Helper.OnMusicLoaded(success); } }; _Music.loadSound(url, false); } static function AbortMusicLoad() { if (_Music != undefined) { delete _Music; _Music = undefined; if (OnMusicLoaded != undefined) { OnMusicLoaded(false); } } } static function ConvertSeconds2TimeString(seconds) { var remine_time_secs = seconds; var remine_time_mins = Math.floor(remine_time_secs / 60); remine_time_secs = remine_time_secs % 60; return((((Math.abs(remine_time_mins) < 10) ? ("0" + remine_time_mins) : (remine_time_mins)) + ":") + ((Math.abs(remine_time_secs) < 10) ? ("0" + remine_time_secs) : (remine_time_secs))); } static function LoadUrlXML(xml) { var node = xml.firstChild; _get_it_url = node.attributes.url; _get_it_target = node.attributes.window; Tracer.info(((("UrlXML loaded: \"" + _get_it_url) + "\", \"") + _get_it_target) + "\""); } static function GetIt() { if (_get_it_url == undefined) { Tracer.trace("Get it url not loaded!"); return(undefined); } getURL (_get_it_url, _get_it_target); } static function SubtractArray(from, what) { if (what.length == 0) { return(from); } var ret = new Array(); var i = 0; while (i < from.length) { var j = 0; while (j < what.length) { if (from[i] == what[j]) { break; } if (j == (what.length - 1)) { ret.push(from[i]); } j++; } i++; } return(ret); } static function IntersectArray(from, what) { if (what.length == 0) { return(null); } if (from.length == 0) { return(null); } var ret = new Array(); var i = 0; while (i < from.length) { var j = 0; while (j < what.length) { if (from[i] == what[j]) { ret.push(from[i]); break; } j++; } i++; } return(ret); } static function SearchArray(arr, what) { var i = 0; while (i < arr.length) { if (arr[i] == what) { return(i); } i++; } return(-1); } static function SearchArray2(needle, arr) { var i = 0; while (i < arr.length) { if (arr[i] == needle) { return(i); } i++; } return(-1); } static function GetRandomFromArray(arr) { if (arr.length == 0) { return(undefined); } return(arr[Math.floor(arr.length * Math.random())]); } static function ClearArray(arr) { if (arr == undefined) { return(undefined); } while (arr.length != 0) { arr.pop(); } } static function ClearArray2(arr) { if (arr == undefined) { return(undefined); } while (arr.length != 0) { var obj = arr.pop(); if (((obj != null) && (obj != undefined)) && (obj instanceof MovieClip)) { MovieClip(obj).removeMovieClip(); obj = undefined; } } } static function FillArray(arr, filler) { if (arr == undefined) { return(undefined); } var i = 0; while (i < arr.length) { arr[i] = filler; i++; } } static function CopyArray(arr) { var a = new Array(); for (var i in arr) { if (arr[i] instanceof Array) { a[i] = Array(arr[i]).slice(); } else { a[i] = arr[i]; } } return(a); } static function CreateFPSCounter() { _root._fps = 0; var fpsmc = _root.createEmptyMovieClip("fps_mc", 20000); fpsmc.onEnterFrame = function () { _root._fps++; }; fpsmc._x = 200; fpsmc.createTextField("tf", 10000, 0, 0, 60, 20); fpsmc.tf.selectable = false; fpsmc.tf.backgroundColor = 16777215 /* 0xFFFFFF */; fpsmc.tf.background = true; setInterval(function () { _root.fps_mc.tf.text = "fps:" + _root._fps; _root._fps = 0; }, 1000); } static function setTimeout(functionReference, delay, args) { return(_global.setTimeout(functionReference, delay, args)); } static function StopMovies(mc) { for (var propname in mc) { if (mc[propname] instanceof MovieClip) { MovieClip(mc[propname]).stop(); StopMovies(MovieClip(mc[propname])); } } } static function PlayMovies(mc) { for (var name in mc) { if ((mc[name] instanceof MovieClip) && (name != "mcCarryObject")) { MovieClip(mc[name]).play(); PlayMovies(MovieClip(mc[name])); } } } static function SetHighlite(mc) { mc.filters = HighliteFilterOn; } static function ClearHighlite(mc) { mc.filters = HighliteFilterOff; } static function SetGrayscale(mc) { mc.filters = GrayscaleFilterOn; } static function ClearGrayscale(mc) { mc.filters = GrayscaleFilterOff; } static var GAMEID = "HotelFHOnline"; static var FREEARCADESCORES = false; static var INGAMECLICK = true; static var SINGLEFILE = true; static var SHOW_MOCHIADS = false; static var SHOW_INGAMEADS = true; static var MOCHI_EVERY_LEVEL = false; static var MOCHI_SHOW_PRELOADER = false; static var HASMOCHIBOT = true; static var HASMOCHIPRE = false; static var HASMOCHISCORES = false; static var KONGREGATE = true; static var KONKURS = false; static var GOTOPATH = "http://realore.com"; static var DOWNLOADPATH = "http://realore.com/games/janes-hotel-family-hero/"; static var ADSLINK = (((("http://realore.com/bitrix/redirect.php?event1=FLA_ADS&event2=" + getRoot()) + "&event3=") + GAMEID) + "&goto=") + GOTOPATH; static var DNLDLINK = (((("http://realore.com/bitrix/redirect.php?event1=FLA_GET&event2=" + getRoot()) + "&event3=") + GAMEID) + "&goto=") + DOWNLOADPATH; static var DEBUG = false; static var DEBUG_START_LEVEL = 4; static var DEBUG2 = false; static var DEBUG_MAP = false; static var SKIP_MENU = false; static var DEBUG_CLIENT_IN_FIRST_ROOM = false; static var DEBUG_FLOWERS = false; static var DEBUG_ALL_UPGRADES_AVAILABLE = false; static var DEBUG_START_MONEYS = 5000; static var MochiAdId = "9d5719ed7edb9420"; static var GLOBAL_STORE_ID = "RealoreFlashGames"; static var GLOBAL_GAME_ID = "JanesHoteliYZIdgwg"; static var globalSharedObject = SharedObject.getLocal(GLOBAL_STORE_ID); static var globalGameSharedObject = SharedObject.getLocal(GLOBAL_GAME_ID); static var _playerName = ((globalSharedObject.data.PlayerName != undefined) ? (globalSharedObject.data.PlayerName) : ""); static var globalGameScore = 0; static var globalGameLevelStartScore = 0; static var globalGameLevelStartSpend = 0; static var globalGameLevelStartUpgrades = new Array(); static var globalGameLevelStartLevel = 0; static var MUSIC_LOUD_VALUE = 50; static var SoundVolume = 10; static var _MusicVolume = 100; static var _Music_playing = false; static var MusicEnabled = true; static var HighliteFilter = new flash.filters.GlowFilter(16773263, 0.9, 5, 5, 100, 1); static var HighliteFilterOn = new Array(HighliteFilter); static var HighliteFilterOff = new Array(); static var grayscale_matrix = [0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0, 0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0, 0.308600008487701, 0.609399974346161, 0.0820000246167183, 0, 0, 0, 0, 0, 1, 0]; static var GrayscaleFilter = new flash.filters.ColorMatrixFilter(grayscale_matrix); static var GrayscaleFilterOn = new Array(GrayscaleFilter); static var GrayscaleFilterOff = new Array(); }Symbol 338 MovieClip [__Packages.Tracer] Frame 0class Tracer { static var _traceBox, trace, traceProperties, info, error; function Tracer () { } static function Init(rootMC) { var traceBox; traceBox = rootMC.createTextField("traceBox", 11000, 0, 10, 150, 400); with (traceBox) { backgroundColor = 16777215 /* 0xFFFFFF */; background = true; multiline = true; wordWrap = true; html = true; } var traceBoxFormat = new TextFormat(); traceBoxFormat.font = "Courier"; traceBoxFormat.size = 12; traceBox.setNewTextFormat(traceBoxFormat); _traceBox = traceBox; rootMC.tr = function (obj) { var s = newline; var i = 0; while (i < arguments.length) { s = s + String(arguments[i]); if (i != (arguments.length - 1)) { s = s + ", "; } i++; } rootMC.traceBox.text = rootMC.traceBox.text + s; traceBox.scroll = traceBox.maxscroll; }; rootMC.trprops = function (obj) { rootMC.traceBox.text = rootMC.traceBox.text + ("\n---Trace props of: " + String(obj)); for (var prop in obj) { rootMC.traceBox.text = rootMC.traceBox.text + (((newline + String(prop)) + ":") + String(obj[prop])); } traceBox.scroll = traceBox.maxscroll; }; rootMC.err = function (obj) { var s = String(obj); rootMC.traceBox.htmlText = rootMC.traceBox.htmlText + (("\n<b>" + s) + "</b>"); traceBox.scroll = traceBox.maxscroll; }; trace = mx.utils.Delegate.create(rootMC, rootMC.tr); traceProperties = mx.utils.Delegate.create(rootMC, rootMC.trprops); info = trace; error = mx.utils.Delegate.create(rootMC, rootMC.err); trace("---Start tracing---"); var btnToggleVisible; btnToggleVisible = rootMC.createEmptyMovieClip("btnToggleVisible", 11001); with (btnToggleVisible) { _x = 0; _y = 0; beginFill(16776960); lineStyle(0, 16777215); moveTo(0, 0); lineTo(10, 0); lineTo(10, 10); lineTo(0, 10); lineTo(0, 0); } btnToggleVisible.onPress = function () { rootMC.traceBox._visible = !rootMC.traceBox._visible; }; var btnClearTrace; btnClearTrace = rootMC.createEmptyMovieClip("btnClearTrace", 11002); with (btnClearTrace) { _x = 12; _y = 0; beginFill(16711935); lineStyle(0, 16777215); moveTo(0, 0); lineTo(10, 0); lineTo(10, 10); lineTo(0, 10); lineTo(0, 0); } btnClearTrace.onPress = function () { rootMC.traceBox.text = ""; }; } static function Show() { if (_traceBox != undefined) { _traceBox._visible = true; } } static function Hide() { if (_traceBox != undefined) { _traceBox._visible = false; } } }Symbol 339 MovieClip [__Packages.mx.utils.Delegate] Frame 0class mx.utils.Delegate extends Object { var func; function Delegate (f) { super(); func = f; } static function create(obj, func) { var f = function () { var target = arguments.callee.target; var func = arguments.callee.func; return(func.apply(target, arguments)); }; f.target = obj; f.func = func; return(f); } function createDelegate(obj) { return(create(obj, func)); } }Symbol 340 MovieClip [__Packages.AnimObject] Frame 0class AnimObject { var __get__signalState, objectName_, objectStates_, currStateInd_, transitions_, attachments_; function AnimObject () { } function set signalState(signal) { signalState_ = signal; //return(__get__signalState()); } function getName() { return(objectName_); } function getStatesByPath(path) { if (path.length == 0) { return(objectStates_); } var nextState = objectStates_.getState(path[0]); var nextObj = nextState.getObject(path[1]); path.splice(0, 2); return(nextObj.getStatesByPath(path)); } function getStateByPath(path) { var nextState = objectStates_.getState(path[0]); if (nextState == undefined) { return(undefined); } if (path.length == 1) { return(nextState); } var nextObj = nextState.getObject(path[1]); if (nextObj == undefined) { return(undefined); } path.splice(0, 2); return(nextObj.getStateByPath(path)); } function removePart(statePath, aName) { var aStates = getStatesByPath(statePath); var i = 0; while (i < aStates.possibleStates_.length) { var aState = aStates.possibleStates_[i]; aState.removeObject(aName); i++; } } function insertPart(statePath, afterWhich, aObject) { var targetState = getStateByPath(statePath); if (targetState != undefined) { targetState.insertObject(afterWhich, aObject); } } function sendSignalState(path, signal) { if ((path[0] == getName()) && (path.length == 1)) { signalState_ = signal; } else { path.splice(0, 2); var nextObj = path[0]; var target = getChildObject(nextObj); target.sendSignalState(path, signal); } } function getCurrState() { return(objectStates_.getStateByInd(currStateInd_)); } function quant(aTime) { if (signalState_ != "") { if (transitions_[signalState_] != undefined) { if (getCurrState().getStateName() != transitions_[signalState_].destState) { setState([objectName_, transitions_[signalState_].destState]); getCurrState().rootAnim_.setChanged(true); var i = 0; while (i < attachments_.length) { attachments_[i].setState([attachments_[i].objectName_, transitions_[signalState_].destState]); i++; } signalState_ = ""; } } } objectStates_.getStateByInd(currStateInd_).quant(aTime); var i = 0; while (i < attachments_.length) { attachments_[i].quant(aTime); i++; } } function drawIt(bData, prevX, prevY) { return(objectStates_.drawCurrent(bData, prevX, prevY)); } function getChildObject(ObjectName) { var aState = getCurrState(); if (aState != null) { return(aState.getObject(ObjectName)); } return(null); } function changeState(stateName) { var newInd = objectStates_.getStateInd(stateName); if (newInd != currStateInd_) { currStateInd_ = newInd; objectStates_.setState(newInd); } } function updatePartState(path) { if ((path[0] == getName()) && (path.length == 2)) { changeState(path[1]); } else { path.splice(0, 2); var nextObj = path[0]; var target = getChildObject(nextObj); target.updatePartState(path); } } function setState(path) { if (path[0] == getName()) { changeState(path[1]); path.splice(0, 2); if (path.length > 1) { var nextObj = path[0]; var nextState = path[1]; var target = getChildObject(nextObj); target.setState(path); } } } function traceIt(level) { var indentStr = ""; var i = 0; while (i < level) { indentStr = indentStr + " "; i++; } objectStates_.traceIt(level); } function addAttachmentP(path, attachment, cover) { path.splice(0, 1); objectStates_.addAttachmentP(path, attachment, cover); } function getChildObjectByState(nextObj, nextState) { var aState = objectStates_.getState(nextState); if (aState != null) { return(aState.getObject(nextObj)); } return(null); } function addAttachment(attachment) { attachments_.push(attachment); } function setRegX(stateName, attValue) { var aState = objectStates_.getState(stateName); aState.regX_ = attValue; } function setRegY(stateName, attValue) { var aState = objectStates_.getState(stateName); aState.regY_ = attValue; } function reset() { objectStates_.reset(); } function createByXML(xmlScript, rootAnim) { attachments_ = new Array(); transitions_ = new Array(); objectName_ = xmlScript.nodeName; objectStates_ = new AnimStates(this); objectStates_.Create(xmlScript.childNodes[STATESIND], rootAnim, this); currStateInd_ = objectStates_.currentState_; if (xmlScript.childNodes[TRANSITIONS] != undefined) { var i = 0; while (i < xmlScript.childNodes[TRANSITIONS].childNodes.length) { var transAnim = new TransitionAnim(this); transAnim.createByXML(xmlScript.childNodes[TRANSITIONS].childNodes[i]); transitions_[transAnim.signal_] = transAnim; i++; } } } var signalState_ = ""; static var STATESIND = 0; static var TRANSITIONS = 1; }Symbol 341 MovieClip [__Packages.AnimStates] Frame 0class AnimStates { var possibleStates_, currentState_, masterObject_, defaultStateName; function AnimStates () { possibleStates_ = new Array(); } function insertParts(xmlScript) { } function reset() { var i = 0; while (i < possibleStates_.length) { possibleStates_[i].reset(); i++; } } function getCurrStateFrame(frameNum) { var aState = possibleStates_[currentState_]; var adata = aState.getFrame(frameNum); return(adata); } function getCurrStateCurrFrame() { var aState = possibleStates_[currentState_]; if (aState.__get__animated() != undefined) { if (aState.__get__animated() == true) { if (aState.hasFrame(aState.__get__currFrame())) { var adata = aState.getCurrFrame(); return(adata); } } else { var adata = aState.getCurrFrame(); return(adata); } } } function addAttachmentP(path, attachment, cover) { if (path.length == 1) { var aState = getState(path[0]); if (aState != null) { aState.addAttachment(attachment, cover); } } else { var nextState = String(path[0]); var nextObj = String(path[1]); path.splice(0, 1); var aState = getState(nextState); if (aState != null) { var target = aState.getObject(nextObj); target.addAttachmentP(path, attachment, cover); } } } function getStateInd(stateName) { var i = 0; while (i < possibleStates_.length) { if (possibleStates_[i].getStateName() == stateName) { return(i); } i++; } return(-1); } function getCurrStateName() { return(possibleStates_[currentState_].getStateName()); } function getStateByInd(ind) { return(possibleStates_[ind]); } function getState(stateName) { var i = 0; while (i < possibleStates_.length) { if (possibleStates_[i].getStateName() == stateName) { return(possibleStates_[i]); } i++; } return(null); } function traceIt(indent) { var indentStr = ""; var i = 0; while (i < indent) { indentStr = indentStr + " "; i++; } var i = 0; while (i < possibleStates_.length) { possibleStates_[i].traceIt(indent); i++; } } function addPossibleState(stateScript, rootAnim) { var aState = new AnimState(); aState.createByXML(stateScript, rootAnim, this); possibleStates_.push(aState); } function drawCurrent(bData, newX, newY) { var aState = getStateByInd(currentState_); var i = 0; while (i < aState.attcovers_.length) { if (aState.attX_ > 0) { } bData = aState.attcovers_[i].drawIt(bData, newX + aState.attX_, newY + aState.attY_); i++; } var objBitmap = getCurrStateCurrFrame(); if (objBitmap != null) { bData.copyPixels(objBitmap, new flash.geom.Rectangle(0, 0, objBitmap.width, objBitmap.height), new flash.geom.Point(newX + aState.regX_, newY + aState.regY_), null, null, true); } var stateObjsArr = aState.getObjectsArray(); var i = 0; while (i < stateObjsArr.length) { bData = stateObjsArr[i].drawIt(bData, newX + aState.regX_, newY + aState.regY_); i++; } var i = 0; while (i < aState.attbacks_.length) { bData = aState.attbacks_[i].drawIt(bData, newX + aState.attX_, newY + aState.attY_); i++; } return(bData); } function Create(animScript, rootAnim, masterObject) { masterObject_ = masterObject; defaultStateName = animScript.attributes.def; var l = animScript.childNodes.length; var i = 0; while (i < l) { addPossibleState(animScript.childNodes[i], rootAnim); if (animScript.childNodes[i].nodeName == defaultStateName) { currentState_ = i; } i++; } } function registerChildByName(aName) { var aChild = new AnimStates(); } function setState(stateId) { possibleStates_[stateId].timeLast_ = possibleStates_[currentState_].timeLast_; currentState_ = stateId; } static var XMLPARTSLVL = 0; static var XMLPOSSIBLESTLVL = 0; }Symbol 342 MovieClip [__Packages.AnimState] Frame 0class AnimState { var objects_, attcovers_, attbacks_, animated_, bitmapArray_, totalTime_, totalFrames_, loop_, masterStates_, nextState_, rootAnim_, stateName_, attX_, attY_; function AnimState () { objects_ = new Array(); attcovers_ = new Array(); attbacks_ = new Array(); timeLast_ = 0; } function get currFrame() { return(currFrame_); } function set currFrame(aValue) { currFrame_ = aValue; //return(currFrame); } function get animated() { return(animated_); } function reset() { timeLast_ = 0; } function isUpdated() { return(updated_); } function hasFrames() { if (bitmapArray_ == undefined) { return(false); } return(true); } function addAttachment(attachment, cover) { if (cover == true) { attcovers_.push(attachment); } else { attbacks_.push(attachment); } } function hasFrame(frameNum) { if ((bitmapArray_ == undefined) || (bitmapArray_[frameNum] == undefined)) { return(false); } return(true); } function quant(timeDone) { if (animated_ == true) { var newFrame = Math.floor(totalFrames_ * ((timeLast_ % totalTime_) / totalTime_)); if (newFrame != currFrame_) { if ((loop_ == false) && (newFrame < currFrame_)) { masterStates_.masterObject_.changeState(nextState_); } else { currFrame_ = newFrame; updated_ = true; rootAnim_.setChanged(true); } } timeLast_ = timeLast_ + timeDone; } var k = 0; while (k < objects_.length) { objects_[k].quant(timeDone); k++; } } function getObject(objectName) { var i = 0; while (i < objects_.length) { if (objects_[i].getName() == objectName) { return(objects_[i]); } i++; } return(null); } function getObjectsArray() { return(objects_); } function getStateName() { return(stateName_); } function getFrame(frameNum) { return(bitmapArray_[frameNum]); } function getCurrFrame() { if (bitmapArray_[currFrame_] != undefined) { return(bitmapArray_[currFrame_]); } return(null); } function getstateName() { return(stateName_); } function createByXML(xmlValue, rootAnim, masterStates) { rootAnim_ = rootAnim; masterStates_ = masterStates; if (xmlValue.attributes.attx != undefined) { attX_ = Number(xmlValue.attributes.attx); } else { attX_ = 0; } if (xmlValue.attributes.atty != undefined) { attY_ = Number(xmlValue.attributes.atty); } else { attY_ = 0; } if (xmlValue.attributes.regx != undefined) { regX_ = Number(xmlValue.attributes.regx); } else { regX_ = 0; } if (xmlValue.attributes.regy != undefined) { regY_ = Number(xmlValue.attributes.regy); } else { regY_ = 0; } if (xmlValue.attributes.loop == "false") { loop_ = false; } if (xmlValue.attributes.nextstate != undefined) { nextState_ = xmlValue.attributes.nextstate; } stateName_ = xmlValue.nodeName; var startTime = getTimer(); if (xmlValue.attributes.bitmap != undefined) { var fullFrame = SpriteFactory.getSharedSprite(xmlValue.attributes.bitmap).bitmap_; var FullHeight = fullFrame.height; var FullWidth = fullFrame.width; totalFrames_ = Number(xmlValue.attributes.frames); bitmapArray_ = new Array(); var frameHeight = (FullHeight / totalFrames_); var effXML = xmlValue.childNodes[EFFECTSIND]; if (xmlValue.attributes.time != undefined) { animated_ = true; totalTime_ = Number(xmlValue.attributes.time); var i = 0; while (i < totalFrames_) { var sourceY = (i * frameHeight); if (xmlValue.attributes.reversed == "true") { bitmapArray_.unshift(SpriteFactory.getSharedSprite(xmlValue.attributes.bitmap, new flash.geom.Point(0, sourceY), new flash.geom.Point(FullWidth, frameHeight), new flash.geom.Point(0, 0), xmlValue.attributes.flipHor == "true", xmlValue.childNodes[EFFECTSIND]).bitmap_); } else { bitmapArray_.push(SpriteFactory.getSharedSprite(xmlValue.attributes.bitmap, new flash.geom.Point(0, sourceY), new flash.geom.Point(FullWidth, frameHeight), new flash.geom.Point(0, 0), xmlValue.attributes.flipHor == "true", xmlValue.childNodes[EFFECTSIND]).bitmap_); } i++; } } else { animated_ = false; var sourceY = (Number(xmlValue.attributes.frame) * frameHeight); bitmapArray_.push(SpriteFactory.getSharedSprite(xmlValue.attributes.bitmap, new flash.geom.Point(0, sourceY), new flash.geom.Point(FullWidth, frameHeight), new flash.geom.Point(0, 0), xmlValue.attributes.flipHor == "true", xmlValue.childNodes[EFFECTSIND]).bitmap_); currFrame_ = 0; } } if (xmlValue.hasChildNodes) { if (xmlValue.childNodes[PARTSIND].nodeName == "PARTS") { var k = xmlValue.childNodes[PARTSIND].childNodes.length; var s = 0; while (s < k) { var newObject = new AnimObject(); newObject.createByXML(xmlValue.childNodes[PARTSIND].childNodes[s], rootAnim); objects_.push(newObject); s++; } } } } function insertObject(afterWhich, aObject) { if (afterWhich == "root") { objects_.unshift(aObject); return(undefined); } if (afterWhich == "last") { objects_.push(aObject); return(undefined); } var i = 0; while (i < objects_.length) { if (objects_[i].objectName_ == afterWhich) { objects_.splice(i + 1, 0, aObject); return(undefined); } i++; } } function removeObject(objName) { var remInd; var i = 0; while (i < objects_.length) { if (objects_[i].objectName_ == objName) { objects_.splice(i, 1); return; } i++; } } function traceIt(indent) { var indentStr = ""; var i = 0; while (i < indent) { indentStr = indentStr + " "; i++; } indent++; var k = 0; while (k < objects_.length) { objects_[k].traceIt(indent); k++; } } var regX_ = 0; var regY_ = 0; var currFrame_ = 0; var timeLast_ = 0; var updated_ = false; static var PARTSIND = 0; static var EFFECTSIND = 1; }Symbol 343 MovieClip [__Packages.SpriteFactory] Frame 0class SpriteFactory { static var stores_, filterStores_; function SpriteFactory () { } static function getSharedSprite(sourceName, fromPoint, size, destPoint, flipHor, effXML) { if ((stores_ == undefined) || (stores_[sourceName] == undefined)) { var aSprite = new XSprite(); aSprite.bitmap_ = flash.display.BitmapData.loadBitmap(sourceName); aSprite.bitmapName_ = sourceName; if (stores_ == undefined) { stores_ = new Array(); } stores_[sourceName] = aSprite; } else { var aSprite = stores_[sourceName]; } if (fromPoint == undefined) { return(aSprite); } var resSprite = new XSprite(); var aName = (((((sourceName + fromPoint.toString()) + size.toString()) + destPoint.toString()) + flipHor.toString()) + effXML.toString()); if (stores_[aName] == undefined) { var frameData = (new flash.display.BitmapData(size.x, size.y)); frameData.copyPixels(aSprite.bitmap_, new flash.geom.Rectangle(fromPoint.x, fromPoint.y, size.x, size.y), destPoint); if (flipHor == true) { var rotatedData = (new flash.display.BitmapData(size.x, size.y, true, 0)); var myMatrix = (new flash.geom.Matrix()); myMatrix.scale(-1, 1); myMatrix.translate(size.x, 0); rotatedData.draw(frameData, myMatrix); resSprite.bitmap_ = rotatedData; } else { resSprite.bitmap_ = frameData; } if (effXML != undefined) { var effLength = effXML.childNodes.length; var i = 0; while (i < effLength) { var currNode = effXML.childNodes[i]; if (!(currNode.attributes.filterName === "glow")) { } else { if (filterStores_ == undefined) { filterStores_ = new Array(); } var aglowName = ("glow" + currNode.toString()); if (filterStores_[aglowName] == undefined) { var color = Number(currNode.childNodes[PARAMSIND].attributes.color); var alpha = Number(currNode.childNodes[PARAMSIND].attributes.alpha); var blurX = Number(currNode.childNodes[PARAMSIND].attributes.blurx); var blurY = Number(currNode.childNodes[PARAMSIND].attributes.blury); var strength = Number(currNode.childNodes[PARAMSIND].attributes.strength); var quality = Number(currNode.childNodes[PARAMSIND].attributes.quality); var inner = (currNode.childNodes[PARAMSIND].attributes.inner == "true"); var knockout = (currNode.childNodes[PARAMSIND].attributes.knockout == "true"); var aFilter = (new flash.filters.GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout)); filterStores_[aglowName] = aFilter; } resSprite.bitmap_.applyFilter(resSprite.bitmap_, resSprite.bitmap_.rectangle, new flash.geom.Point(0, 0), filterStores_[aglowName]); } i++; } } stores_[aName] = resSprite; } return(stores_[aName]); } static var PARAMSIND = 0; }Symbol 344 MovieClip [__Packages.XSprite] Frame 0class XSprite { var bitmap_; function XSprite () { } function Create(fullFrame, size, destPoint, sourcePoint, flipHor_) { var fullSprite = SpriteFactory.getSharedSprite(fullFrame); var frameData = (new flash.display.BitmapData(size.x, size.y)); frameData.copyPixels(fullSprite.bitmap_, new flash.geom.Rectangle(sourcePoint.x, sourcePoint.y, size.x, size.y), new flash.geom.Point(0, 0)); if (flipHor_ == true) { } else { bitmap_ = frameData; } } }Symbol 345 MovieClip [__Packages.TransitionAnim] Frame 0class TransitionAnim { var holder_, sourceArr_, destState_, signal_; function TransitionAnim (holder) { holder_ = holder; } function get sourceArr() { return(sourceArr_); } function get destState() { return(destState_); } function get signal() { return(signal_); } function Fire() { if (holder_.getCurrState().getStateName() != destState_) { holder_.setState([holder_.getName(), destState_]); } } function createByXML(XMLtext) { var beforeStr = XMLtext.attributes.before; destState_ = XMLtext.attributes.after; signal_ = XMLtext.attributes.signal; } }Symbol 346 MovieClip [__Packages.Leaf] Frame 0class Leaf extends MovieClip { static var YELLOWDATA, GREENDATA; var currFrame_, starty_, _y, lastTime_, green_, leafBitmap_, attachBitmap, endPos_, stoped_; function Leaf () { super(); } function create(green) { currFrame_ = 0; starty_ = _y; lastTime_ = 0; green_ = green; if (YELLOWDATA == undefined) { YELLOWDATA = flash.display.BitmapData.loadBitmap("leaves_orange"); GREENDATA = flash.display.BitmapData.loadBitmap("leaves_green"); } leafBitmap_ = new flash.display.BitmapData(YELLOWDATA.height / TOTALFRAMES, YELLOWDATA.width, true, 0); if (green_ == true) { leafBitmap_.copyPixels(GREENDATA, new flash.geom.Rectangle(0, 0, YELLOWDATA.height / TOTALFRAMES, YELLOWDATA.width), new flash.geom.Point(0, 0)); } else { leafBitmap_.copyPixels(YELLOWDATA, new flash.geom.Rectangle(0, 0, YELLOWDATA.height / TOTALFRAMES, YELLOWDATA.width), new flash.geom.Point(0, 0)); } attachBitmap(leafBitmap_, 0); endPos_ = 130 + Math.floor(Math.random() * 8); } function quant(dTime) { lastTime_ = lastTime_ + dTime; _y = starty_ + ((lastTime_ / 1000) * VELOCITY); if (_y >= endPos_) { _y = endPos_; stoped_ = true; } var newFrame = Math.floor(TOTALFRAMES * ((lastTime_ % TOTALTIME) / TOTALTIME)); if (currFrame_ != newFrame) { } } static var VELOCITY = 50; static var TOTALFRAMES = 16; static var TOTALTIME = 500; }Symbol 347 MovieClip [__Packages.MebelFactory] Frame 0class MebelFactory { function MebelFactory () { } static function Create(Creator, mebelId) { var bdata = flash.display.BitmapData.loadBitmap(bdata_names[mebelId]); Creator.attachBitmap(bdata, Creator.getNextHighestDepth(), "auto", true); if (!(mebelId === RECEPTION)) { return; } } static var RECEPTION = 0; static var bdata_names = ["reception"]; static var x_mebelpos = [100]; static var y_mebelpos = [300]; }Symbol 348 MovieClip [__Packages.Fx] Frame 0class Fx { static var bdArr; function Fx () { } static function CreateTrailToPoint(parentmc, fly_from, fly_to, head_mc_name, trail_mc_name) { if (bdArr == undefined) { bdArr = new Array(); } var d = parentmc.getNextHighestDepth(); if (bdArr[head_mc_name] == undefined) { var head_bdata = flash.display.BitmapData.loadBitmap(head_mc_name); bdArr[head_mc_name] = head_bdata; } else { var head_bdata = bdArr[head_mc_name]; } if (bdArr[trail_mc_name] == undefined) { var trail_bdata = flash.display.BitmapData.loadBitmap(trail_mc_name); bdArr[trail_mc_name] = trail_bdata; } else { var trail_bdata = bdArr[trail_mc_name]; } var head_mc = parentmc.createEmptyMovieClip(head_mc_name + d, d); head_mc.attachBitmap(head_bdata, head_mc.getNextHighestDepth()); head_mc.direct = Math.atan2(ANIM_TRAIL_START_DIRECT_Y, ANIM_TRAIL_START_DIRECT_X); head_mc._x = fly_from.x; head_mc._y = fly_from.y; head_mc.fly_to = fly_to; head_mc.trail_mc_name = trail_mc_name; head_mc.speed = ANIM_TRAIL_START_SPEED; head_mc.fly_distance = 0; head_mc.trail_distance = 0; head_mc.finish_phase = 0; head_mc.ang_change_summ = 0; head_mc.onEnterFrame = function () { if (this.finish_phase > 0) { if (this.finish_phase == 1) { this._x = fly_to.x; this._y = fly_to.y; this._alpha = 60; this.finish_phase = 2; } else if (this.finish_phase == 2) { this.finish_phase = 3; MovieClip(this).removeMovieClip(); this = undefined; } return(undefined); } var targ_ang = Math.atan2(this.fly_to.y - this._y, this.fly_to.x - this._x); var diff_ang = (targ_ang - this.direct); if (Math.abs(diff_ang) > Math.PI) { diff_ang = ((diff_ang > 0) ? -1 : 1) * ((Math.PI*2) - Math.abs(diff_ang)); } this.direct = this.direct + (diff_ang * Fx.ANIM_TRAIL_ANGLE_CHANGE_COEFF); if (this.direct > Math.PI) { this.direct = this.direct - (Math.PI*2); } else if (this.direct < -3.14159265358979) { this.direct = this.direct + (Math.PI*2); } var targ_dist1 = Math.sqrt(((this.fly_to.x - this._x) * (this.fly_to.x - this._x)) + ((this.fly_to.y - this._y) * (this.fly_to.y - this._y))); if (this._prev_time == undefined) { this._prev_time = getTimer(); } var dtime = (getTimer() - this._prev_time); this._prev_time = getTimer(); var speed2 = ((this.speed * ((Math.PI*2) - Math.abs(diff_ang * Fx.ANIM_TRAIL_ANGLE_CHANGE_COEFF_FOR_SPEED))) / (Math.PI*2)); var fly_length = ((speed2 * dtime) / 1000); this._x = this._x + (Math.cos(this.direct) * fly_length); this._y = this._y + (Math.sin(this.direct) * fly_length); this.fly_distance = this.fly_distance + fly_length; this.trail_distance = this.trail_distance + fly_length; this.ang_change_summ = this.ang_change_summ + Math.abs(diff_ang); if (this.trail_distance > Fx.ANIM_TRAIL_TRAIL_EACH_DISTANCE) { this.trail_distance = this.trail_distance - Fx.ANIM_TRAIL_TRAIL_EACH_DISTANCE; var td = MovieClip(this)._parent.getNextHighestDepth(); var tmc = MovieClip(this)._parent.createEmptyMovieClip(this.trail_mc_name + td, td); tmc.attachBitmap(trail_bdata, 0); tmc._x = this._x - (Math.cos(this.direct) * Fx.ANIM_TRAIL_TRAIL_DIST_DELAY); tmc._y = this._y - (Math.sin(this.direct) * Fx.ANIM_TRAIL_TRAIL_DIST_DELAY); var trail_to_x = (tmc._x + (Math.cos(this.direct) * fly_length)); var trail_to_y = (tmc._y + (Math.sin(this.direct) * fly_length)); com.mosesSupposes.fuse.ZigoEngine.doTween(tmc, "_alpha,_x,_y", [0, trail_to_x, trail_to_y], Fx.ANIM_TRAIL_TRAIL_LIFE_TIME, mx.transitions.easing.None.easeNone, 0, {scope:Fx, func:"RemoveMeCallback", args:tmc}); } var targ_dist2 = Math.sqrt(((this.fly_to.x - this._x) * (this.fly_to.x - this._x)) + ((this.fly_to.y - this._y) * (this.fly_to.y - this._y))); if (((targ_dist2 > targ_dist1) && (targ_dist2 < (fly_length * 2.5))) || (this.ang_change_summ > 30)) { this.finish_phase = 1; } }; } static function CreateGrowUp(parentmc, fly_from, mc_name, count_multiply) { var pieces = (ANIM_GROW_PIECES + ((ANIM_GROW_PIECES * count_multiply) / 2)); var i = 0; while (i < pieces) { var d = parentmc.getNextHighestDepth(); var mc = parentmc.attachMovie(mc_name, mc_name + d, d); mc._x = fly_from.x + (ANIM_GROW_WIDTH * (Math.random() - 0.5)); mc._y = fly_from.y + (ANIM_GROW_HEIGHT * (Math.random() - 0.5)); mc._xscale = (mc._yscale = ANIM_GROW_PIECE_SIZE_FROM + ((ANIM_GROW_PIECE_SIZE_TO - ANIM_GROW_PIECE_SIZE_FROM) * Math.random())); mc.speed = ANIM_GROW_MIN_SPEED + (ANIM_GROW_SPEED_DELTA * Math.random()); var life_time = (ANIM_GROW_LIFETIME_FROM + (ANIM_GROW_LIFETIME_DELTA * Math.random())); com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y,_alpha", [mc._y - mc.speed, 0], life_time, mx.transitions.easing.Regular.easeIn, 0, {scope:Fx, func:"RemoveMeCallback", args:mc}); com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_x", mc._x + (10 * ((Math.random() > 0.5) ? 1 : -1)), life_time, mx.transitions.easing.Elastic.easeIn, 0); i++; } } static function CreateParticlesEmmiterUp(parentmc, fly_from, mc_name) { var d = parentmc.getNextHighestDepth(); var head_mc = parentmc.createEmptyMovieClip("particlesEmmiterUp" + d, d); head_mc._x = fly_from.x; head_mc._y = fly_from.y; head_mc.EmmitCounter = 0; head_mc.ParticleMCName = mc_name; head_mc.onEnterFrame = function () { if (this.EmmitCounter >= Fx.EMIT_EACH_FRAME) { var td = MovieClip(this).getNextHighestDepth(); var tmc = MovieClip(this).attachMovie(this.ParticleMCName, this.ParticleMCName + td, td); tmc._y = 0; tmc._x = ((-Fx.EMIT_WIDTH) / 2) + (Math.random() * Fx.EMIT_WIDTH); var life_time = (Fx.EMIT_LIFE_TIME + (Math.random() * Fx.EMIT_LIFE_TIME_DELTA)); var to_y = (tmc._y - (Fx.EMIT_GROW_UP_FROM + (Math.random() * Fx.EMIT_GROW_UP_DELTA))); com.mosesSupposes.fuse.ZigoEngine.doTween(tmc, "_y,_alpha", [to_y, 0], life_time, mx.transitions.easing.Regular.easeIn, 0, {scope:Fx, func:"RemoveMeCallback", args:tmc}); this.EmmitCounter = 0; } this.EmmitCounter++; }; head_mc.Terminate = function () { this.removeMovieClip(); this = undefined; }; return(head_mc); } static function PlayAppearAnimation(target) { var f = (new com.mosesSupposes.fuse.Fuse()); f.__set__target(target); f.push({delay:0.25}); f.push({label:"appear", start_alpha:0, time:2.3, ease:"easeOutBack", trigger:0.5}); f.push({alpha:10, scale:104, ease:"easeInOutQuad", cycles:2, time:0.5, delay:0.1}); f.push({alpha:100, time:0.1}); f.start(true); } static function RemoveMeCallback(mc) { mc.removeMovieClip(); mc = undefined; } static var ANIM_TRAIL_START_DIRECT_X = 2; static var ANIM_TRAIL_START_DIRECT_Y = -20; static var ANIM_TRAIL_START_SPEED = 350; static var ANIM_TRAIL_TRAIL_EACH_DISTANCE = 50; static var ANIM_TRAIL_TRAIL_DIST_DELAY = 50; static var ANIM_TRAIL_TRAIL_LIFE_TIME = 0.3; static var ANIM_TRAIL_ANGLE_CHANGE_COEFF = 0.14; static var ANIM_TRAIL_ANGLE_CHANGE_COEFF_FOR_SPEED = 1; static var ANIM_GROW_PIECES = 4; static var ANIM_GROW_PIECE_SIZE_FROM = 60; static var ANIM_GROW_PIECE_SIZE_TO = 100; static var ANIM_GROW_WIDTH = 50; static var ANIM_GROW_HEIGHT = 20; static var ANIM_GROW_SPEED_DELTA = 15; static var ANIM_GROW_MIN_SPEED = 22; static var ANIM_GROW_LIFETIME_FROM = 0.4; static var ANIM_GROW_LIFETIME_DELTA = 0.5; static var EMIT_EACH_FRAME = 1; static var EMIT_WIDTH = 30; static var EMIT_GROW_UP_FROM = 10; static var EMIT_GROW_UP_DELTA = 10; static var EMIT_LIFE_TIME = 1; static var EMIT_LIFE_TIME_DELTA = 1; }Symbol 349 MovieClip [__Packages.com.mosesSupposes.fuse.FuseKitCommon] Frame 0class com.mosesSupposes.fuse.FuseKitCommon { static var logOutput; function FuseKitCommon () { } static function _cts() { return("|_tint|_tintPercent|_brightness|_brightOffset|_contrast|_invertColor|_colorReset|_colorTransform|"); } static function _resetTo100() { return("|_alpha|_contrast|_invertColor|_tintPercent|_xscale|_yscale|_scale|"); } static function _resetTo0() { return("|_brightness|_brightOffset|_colorReset|_rotation|"); } static function _underscoreable() { return(_cts() + "_frame|_x|_y|_xscale|_yscale|_scale|_width|_height|_size|_rotation|_alpha|_fade|_visible|"); } static function _cbprops() { return("|skipLevel|cycles|roundResults|extra1|extra2|func|scope|args|startfunc|startscope|startargs|updfunc|updscope|updargs|"); } static function _fuseEvents() { return("|onStart|onStop|onPause|onResume|onAdvance|onComplete|"); } static function _fuseprops() { return("|command|label|delay|event|eventparams|target|addTarget|trigger|startAt|ease|easing|seconds|duration|time|"); } static function _validateFuseCommand(c, inGroup, hasArg, outputLevel, simple) { var valid = false; var misplaced = false; switch (c) { case "start" : case "stop" : case "pause" : case "resume" : case "setStartProps" : if (inGroup != true) { valid = true; } break; case "delay" : case "trigger" : if (simple == true) { if (hasArg == true) { valid = true; } } else { misplaced = true; } inGroup = false; break; case "skipTo" : if (!((hasArg == true) && (inGroup != true))) { break; } valid = true; } if ((outputLevel > 0) && (valid == false)) { error("109", c, inGroup, misplaced); } return(valid); } static function output(s) { if (typeof(logOutput) == "function") { logOutput(s); } } static function error(errorCode) { var a1 = arguments[1]; var a2 = arguments[2]; var a3 = arguments[3]; if (VERBOSE != true) { output(("[FuseKitCommon#" + errorCode) + "]"); return(undefined); } var es = ""; var _newline = newline; switch (errorCode) { case "001" : es = es + "** ERROR: When using simpleSetup to extend prototypes, you must pass the Shortcuts class. **"; es = es + (_newline + " import com.mosesSupposes.fuse.*;"); es = es + ((_newline + " ZigoEngine.simpleSetup(Shortcuts);") + _newline); break; case "002" : es = es + "** ZigoEngine.doShortcut: shortcuts missing. Use the setup commands: import com.mosesSupposes.fuse.*; ZigoEngine.register(Shortcuts); **"; break; case "003" : es = es + ((_newline + "*** Error: DO NOT use #include \"lmc_tween.as\" with this version of ZigoEngine! ***") + _newline); break; case "004" : es = es + (("** ZigoEngine.doTween - too few arguments [" + a1) + "]."); if (Boolean(a2) == true) { es = es + " If you are trying to use Object Syntax without Fuse, pass FuseItem in your register() or simpleSetup() call. **"; } else { es = es + " Object syntax call failed. **"; } break; case "005" : es = es + (((("** ZigoEngine.doTween - missing targets[" + a1) + "] and/or props[") + a2) + "] **"); break; case "006" : es = es + (("** Error: easing shortcut string not recognized (\"" + a1) + "\"). You may need to pass the in PennerEasing class during register or simpleSetup. **"); break; case "007" : es = es + (((("- ZigoEngine: Target locked [" + a1) + "], ignoring tween call [") + a2) + "]"); break; case "008" : es = es + "** You must register the Shortcuts class in order to use easy string-type callback parsing. **"; break; case "009" : es = es + (("** ZigoEngine: A callback parameter \"" + a1) + "\" was not recognized. **"); break; case "010" : es = es + ((((("** " + ((a1 == true) ? "ZigoEngine" : "FuseItem")) + " unable to parse ") + ((a2 == 1) ? "callback[" : (String(a2) + " callbacks["))) + a3) + "]. Try using the syntax {scope:this, func:\"myFunction\"} **"); break; case "011" : es = es + (((("- ZigoEngine: Callbacks discarded via skipLevel 2 option [" + a1) + "|") + a2) + "]."); break; case "012" : es = es + (((((("- Engine set props or ignored no-change tween on: " + a1) + ", props passed:[") + a2) + "], endvals passed:[") + a3) + "]"); break; case "013" : es = es + (((((("- Engine added tween on:\n\ttargets:[" + a1) + "]\n\tprops:[") + a2) + "]\n\tendvals:[") + a3) + "]"); break; case "014" : es = es + "** Error: easing function passed is not usable with this engine. Functions need to follow the Robert Penner model. **"; break; case "015" : es = es + "** Error: The CustomEasing class must be passed during setup (register or simpleSetup) to use custom easing Arrays. **"; break; case "016" : es = es + (("[ ZigoEngine.TIME_MULTIPLIER: " + String(Number(Number(a1) * 100))) + "% ]"); break; case "101" : es = es + "** ERROR: Fuse simpleSetup was removed in version 2.0! **"; es = es + (_newline + " You must now use the following commands:"); es = es + ((_newline + _newline) + "\timport com.mosesSupposes.fuse.*;"); es = es + (_newline + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);"); es = es + ((_newline + "Note that PennerEasing is optional, and FuseFMP is also accepted. (FuseFMP.simpleSetup is run automatically if included.)") + _newline); break; case "102" : es = es + (((("** Fuse " + a1) + " index or label not found (") + a2) + ") or out of range. **"); break; case "103" : es = es + (((("** Fuse skipTo (" + a1) + ") ignored - targets the current index (") + a2) + "). **"); break; case "104" : es = es + (("** Fuse fastForward index out of play range (" + a1) + ") - skipTo has been called instead. **"); break; case "105" : es = es + "** An unsupported Array method was called on Fuse. **"; break; case "106" : es = es + "** ERROR: You have not set up Fuse correctly. **"; es = es + (_newline + "You must now use the following commands (PennerEasing is optional)."); es = es + (_newline + "\timport com.mosesSupposes.fuse.*;"); es = es + ((_newline + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);") + _newline); break; case "107" : es = es + "** Fuse :: id not found - Aborting open(). **"; break; case "108" : es = es + "** Fuse.startRecent: No recent Fuse found to start! **"; break; case "109" : es = es + (("** Command \"" + a1) + "\" discarded. "); if (a2 == true) { es = es + "Not allowed within a group. **"; } else if (a3 == true) { es = es + (("Not supported in Object Syntax, use the " + a1) + " property instead. **"); } else { es = es + "The command may be unrecognized or missing an argument. **"; } break; case "110" : es = es + (((("** " + a1) + " illegal Fuse property discarded:\"") + a2) + "\". Bezier keywords other than x and y cannot be set as start values. **"); break; case "112" : es = es + "** Fuse: missing com.mosesSupposes.fuse.ZigoEngine! Cannot tween. **"; break; case "113" : es = es + "** FuseItem: A callback has been discarded. Actions with a command may only contain: label, delay, scope, args. **"; break; case "115" : es = es + ((a1 + " overlapping prop discarded: ") + a2); break; case "116" : es = es + ("** FuseItem Error: Delays within groups (arrays) and start/update callbacks are not supported when using Fuse without ZigoEngine. Although you need to restructure your Fuse, it should be possible to achieve the same results. **" + _newline); break; case "117" : es = es + (("** " + a1) + ": infinite cycles are not allowed within Fuses - discarded. **"); break; case "118" : es = es + ((("** " + a1) + ": No targets found!") + ((a2 == true) ? " [Unable to set start props] **" : " [Skipping tween parameters in this action] **")); break; case "119" : es = es + ((((("** " + a1) + ": ") + ((a2 == 1) ? "" : (a2 + " actions in the group"))) + " missing targets") + ((a3 == true) ? " during setStartProps **" : " **")); break; case "120" : es = es + (((("** " + a1) + ": conflict with \"") + a2) + "\". Property might be doubled within a grouped-action array. **"); break; case "121" : es = es + "** Fuse timecode formatting requires \"00:\" formatting (example:\"01:01:33\" yields 61.33 seconds.) **"; break; case "122" : es = es + (("** Event \"" + a1) + "\" reserved by Fuse. **"); break; case "123" : es = es + (("** A Fuse event parameter failed in " + a1) + " **"); break; case "124" : es = es + (((("** " + a1) + ": trigger:") + a2) + " ignored - only one trigger is allowed per action **"); break; case "125" : es = es + (a1 + " Warning - fastForward hit an item during its tween cycle, may malfunction."); break; case "201" : es = es + (("**** FuseFMP cannot initialize argument " + a1) + " (BitmapFilters cannot be applied to this object type) ****"); break; case "202" : es = es + (((("** FuseFMP error: A " + a1) + " could not be created for ") + a2) + " **"); break; case "203" : es = es + (("** FuseFMP.setFilterProps - too few arguments passed (" + a1) + ") - minimum 2 required. **"); break; case "204" : es = es + (("** FuseFMP.setFilterProps could not locate the filter passed. (" + a1) + ") **"); } output(es); } static function parseCallback(callback, targets, outputLevel, callerIsEngine, addprefix) { if (callback._vcb == true) { return(callback); } var validCBs = {_vcb:true, skipLevel:_global.com.mosesSupposes.fuse.ZigoEngine.SKIP_LEVEL, cycles:1}; if (callback == undefined) { return(validCBs); } var cbErrors = []; if (typeof(callback) == "object") { if (((callback.skipLevel != undefined) && (typeof(callback.skipLevel) == "number")) && (callback.skipLevel != _global.com.mosesSupposes.fuse.ZigoEngine.SKIP_LEVEL)) { if ((callback.skipLevel >= 0) && (callback.skipLevel <= 2)) { validCBs.skipLevel = callback.skipLevel; } } if (callback.cycles != undefined) { if ((typeof(callback.cycles) == "number") && (callback.cycles > -1)) { validCBs.cycles = callback.cycles; } else if (callback.cycles.toUpperCase() == "LOOP") { validCBs.cycles = 0; } } if (callback.extra1 != undefined) { validCBs.extra1 = callback.extra1; } if (callback.extra2 != undefined) { validCBs.extra2 = callback.extra2; } if ((callback.roundResults === true) || (callback.roundResults === false)) { validCBs.roundResults = callback.roundResults; } } else { callback = {func:callback}; } var prefixes = ["start", "upd", ""]; var easyfuncparse = _global.com.mosesSupposes.fuse.Shortcuts.parseStringTypeCallback; for (var i in prefixes) { var prefix = prefixes[i]; var fstr = callback[prefix + "func"]; if (((fstr != undefined) && (typeof(fstr) == "string")) && (fstr.indexOf("(") > -1)) { if (easyfuncparse != undefined) { var efc = easyfuncparse(fstr); if (efc.func != undefined) { callback[prefix + "scope"] = efc.scope; callback[prefix + "func"] = efc.func; callback[prefix + "args"] = efc.args; } } else if (outputLevel > 0) { error("008"); } } } var basescope = callback.scope; for (var i in callback) { var fi = i.toLowerCase().indexOf("func"); if (fi > -1) { var prefix = i.slice(0, fi); var func = callback[i]; var args = callback[prefix + "args"]; var scope = ((callback[prefix + "scope"] == undefined) ? (basescope) : (callback[prefix + "scope"])); if ((typeof(func) == "string") && (scope[func] == undefined)) { for (var j in targets) { var targ = targets[j]; if (typeof(targ[func]) == "function") { scope = targ; break; } if (typeof(targ._parent[func]) == "function") { scope = targ._parent; break; } } if ((scope == undefined) && (_level0[func] != undefined)) { scope = _level0; } if ((scope == undefined) && (_global[func] != undefined)) { scope = _global; } } if (typeof(func) != "function") { if (typeof(scope[String(func)]) == "function") { func = scope[String(func)]; } else { func = eval (String(func)); } } if (func == undefined) { cbErrors.push(String((((((((addprefix == null) ? (i) : (addprefix + i)) + ":") + ((typeof(callback[i]) == "string") ? (("\"" + callback[i]) + "\"") : (callback[i]))) + "/") + prefix) + "scope:") + scope)); } else { if ((args != undefined) && (!(args instanceof Array))) { args = [args]; } if (prefix == "") { prefix = "end"; } validCBs[prefix] = {s:scope, f:func, a:args}; if (callerIsEngine == true) { validCBs[prefix].id = ++cbTicker; } if (prefix == "start") { validCBs.start.fired = false; } } } else if (_cbprops().indexOf(("|" + i) + "|") == -1) { error("009", i); } } if ((cbErrors.length > 0) && (outputLevel > 0)) { if (outputLevel > 0) { error("010", callerIsEngine, cbErrors.length, cbErrors.toString()); } } return(validCBs); } static var VERSION = "Fuse Kit 2.1.3r1 Copyright (c) 2006 Moses Gunesch, MosesSupposes.com under MIT Open Source License"; static var VERBOSE = true; static var ALL = "ALL"; static var ALLCOLOR = "ALLCOLOR"; static var cbTicker = 0; }Symbol 350 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine] Frame 0class com.mosesSupposes.fuse.ZigoEngine { static var extensions, updateTime, tweenHolder, instance, _listeners, broadcastMessage, updateIntId; function ZigoEngine () { } static function addListener(handler) { AsBroadcaster.initialize(com.mosesSupposes.fuse.ZigoEngine); addListener(handler); } static function removeListener(handler) { } static function isPlaying() { return(_playing); } static function simpleSetup(shortcutsClass) { if (arguments.length > 0) { register.apply(com.mosesSupposes.fuse.ZigoEngine, arguments); } _global.ZigoEngine = com.mosesSupposes.fuse.ZigoEngine; if (extensions.fuse != undefined) { _global.Fuse = extensions.fuse; } if (extensions.fuseFMP != undefined) { extensions.fuseFMP.simpleSetup(); } initialize(MovieClip.prototype, Button.prototype, TextField.prototype); if (extensions.shortcuts == undefined) { com.mosesSupposes.fuse.FuseKitCommon.error("001"); } } static function register(classReference) { if (extensions == undefined) { extensions = {}; } var supported = "|fuse|fuseItem|fuseFMP|shortcuts|pennerEasing|customEasing|"; for (var i in arguments) { var key = arguments[i].registryKey; if ((extensions[key] == undefined) && (supported.indexOf(("|" + key) + "|") > -1)) { extensions[key] = arguments[i]; if ((key == "fuseFMP") || (key == "shortcuts")) { Object(extensions[key]).initialize(); } } } } static function initialize(target) { if (arguments.length > 0) { initializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments); if (extensions.shortcuts != undefined) { extensions.shortcuts.addShortcutsTo.apply(extensions.shortcuts, arguments); } } } static function deinitialize(target) { if ((arguments.length == 0) || (target == null)) { arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype); } deinitializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments); if (extensions.shortcuts != undefined) { extensions.shortcuts.removeShortcutsFrom.apply(extensions.shortcuts, arguments); } } static function getUpdateInterval() { return(updateTime); } static function setUpdateInterval(time) { if (_playing) { setup(true); updateTime = time; setup(); } else { updateTime = time; } } static function getControllerDepth() { return(tweenHolder.getDepth()); } static function setControllerDepth(depth) { if ((depth == null) || (_global.isNaN(depth) == true)) { depth = 6789; } if (Object(tweenHolder).proof != null) { tweenHolder.swapDepths(depth); } else { tweenHolder = _root.createEmptyMovieClip("ZigoEnginePulse", depth); } } static function doShortcut(targets, methodName) { if (extensions.shortcuts == undefined) { if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("002"); } return(null); } return(extensions.shortcuts.doShortcut.apply(extensions.shortcuts, arguments)); } static function doTween(targets, props, endvals, seconds, ease, delay, callback) { if (extensions.fuse.addBuildItem(arguments) == true) { return(null); } if (TIME_MULTIPLIER != prevTimeMult) { TIME_MULTIPLIER = Math.abs(TIME_MULTIPLIER); if (_global.isNaN(TIME_MULTIPLIER) == true) { TIME_MULTIPLIER = 1; } if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("016", TIME_MULTIPLIER); } prevTimeMult = TIME_MULTIPLIER; } if ((instance == undefined) || ((Object(tweenHolder).proof == undefined) && (updateTime == undefined))) { if ((MovieClip.prototype.tween != null) && (typeof(_global.$tweenManager) == "object")) { com.mosesSupposes.fuse.FuseKitCommon.error("003"); } instance = new com.mosesSupposes.fuse.ZManager(); _playing = false; } var params = instance.paramsObj(targets, props, endvals, true); var ta = (((params.tg[0] == null) || (params.tg.length == 0)) ? undefined : (params.tg)); if (((params.pa == undefined) || (ta == undefined)) || (arguments.length < 3)) { if (((extensions.fuseItem != null) && (arguments.length == 1)) && (typeof(arguments[0]) == "object")) { return(extensions.fuseItem.doTween(arguments[0])); } if (OUTPUT_LEVEL > 0) { if (arguments.length < 3) { com.mosesSupposes.fuse.FuseKitCommon.error("004", (((arguments.length == 1) && (arguments[0] == null)) ? "1 (null)" : (String(arguments.length))), Boolean(extensions.fuseItem == null)); } else { com.mosesSupposes.fuse.FuseKitCommon.error("005", ta.toString(), params.pa.toString()); } } return(null); } if (_playing != true) { setup(); } if ((seconds == null) || (_global.isNaN(seconds) == true)) { seconds = DURATION || 1; } else if (seconds < 0.01) { seconds = 0; } seconds = seconds * TIME_MULTIPLIER; if (((delay < 0.01) || (delay == null)) || (_global.isNaN(delay) == true)) { delay = 0; } delay = delay * TIME_MULTIPLIER; var validCBs = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(callback, ta, OUTPUT_LEVEL, true); var eqf; if (typeof(ease) == "function") { if (typeof(Function(ease).call(null, 1, 1, 1, 1)) == "number") { eqf = Function(ease); } else if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("014", ease); } } else if ((ease == null) || (ease == "")) { if (EASING instanceof Function) { eqf = Function(EASING); } else if (extensions.pennerEasing != undefined) { ease = EASING; } } if ((typeof(ease) == "string") && (ease != "")) { if (extensions.pennerEasing[ease] != undefined) { eqf = extensions.pennerEasing[ease]; } else if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("006", ease); } } else if (ease instanceof Array) { if (extensions.customEasing != undefined) { validCBs.extra1 = ease; if (typeof(ease[0]) == "number") { eqf = extensions.customEasing.precalced; } else { eqf = extensions.customEasing.fromCurve; } } else if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("015", ease); } } if (typeof(eqf) != "function") { eqf = function (t, b, c, d) { return((c * (((((((t = (t / d) - 1)) * t) * t) * t) * t) + 1)) + b); }; } if (_listeners.length > 0) { broadcastMessage.call(com.mosesSupposes.fuse.ZigoEngine, "onTweenAdd", ta, params.pa, params.va, seconds, eqf, delay, validCBs); } var propsAdded = ""; for (var i in ta) { var o = ta[i]; if (o.__zigoID__ == null) { initializeTargets(o); } else if (instance.getStatus("locked", o) == true) { if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("007", ((o._name != undefined) ? (o._name) : (o.toString())), params.pa.toString()); } continue; } var pStr = instance.addTween(o, params.pa, params.va, seconds, eqf, delay, validCBs); propsAdded = ((pStr == null) ? "|" : (pStr + "|")) + propsAdded; } propsAdded = propsAdded.slice(0, -1); return((((propsAdded == "") || (propsAdded == "|")) ? null : (propsAdded))); } static function removeTween(targs, props) { instance.removeTween(targs, props); } static function isTweening(targ, prop) { return(Boolean(instance.getStatus("active", targ, prop))); } static function getTweens(targ) { if (instance == undefined) { return(0); } return(Number(instance.getStatus("count", targ))); } static function lockTween(targ, setLocked) { instance.alterTweens("lock", targ, setLocked == true); } static function isTweenLocked(targ) { return(Boolean(instance.getStatus("locked", targ))); } static function ffTween(targs, props, suppressEndEvents) { instance.alterTweens("ff", targs, props, null, suppressEndEvents); } static function skipTweenTo(seconds, targs, props) { instance.alterTweens("skipTo", targs, props, false, false, seconds); } static function rewTween(targs, props, pauseFlag, suppressStartEvents) { instance.alterTweens("rewind", targs, props, pauseFlag, suppressStartEvents); } static function isTweenPaused(targ, prop) { return(Boolean(instance.getStatus("paused", targ, prop))); } static function pauseTween(targs, props) { instance.alterTweens("pause", targs, props); } static function unpauseTween(targs, props) { instance.alterTweens("unpause", targs, props); } static function resumeTween(targs, props) { instance.alterTweens("unpause", targs, props); } static function setColorByKey(targetObj, type, amt, rgb) { new Color(targetObj).setTransform(getColorTransObj(type, amt, rgb)); } static function getColorTransObj(type, amt, rgb) { switch (type) { case "brightness" : var percent = (100 - Math.abs(amt)); var offset = ((amt > 0) ? (255 * (amt / 100)) : 0); return({ra:percent, rb:offset, ga:percent, gb:offset, ba:percent, bb:offset}); case "brightOffset" : return({ra:100, rb:255 * (amt / 100), ga:100, gb:255 * (amt / 100), ba:100, bb:255 * (amt / 100)}); case "contrast" : return({ra:amt, rb:128 - (1.28 * amt), ga:amt, gb:128 - (1.28 * amt), ba:amt, bb:128 - (1.28 * amt)}); case "invertColor" : return({ra:100 - (2 * amt), rb:amt * 2.55, ga:100 - (2 * amt), gb:amt * 2.55, ba:100 - (2 * amt), bb:amt * 2.55}); case "tint" : if (rgb == null) { break; } var rgbnum; if (typeof(rgb) == "string") { if (rgb.charAt(0) == "#") { rgb = rgb.slice(1); } rgb = ((rgb.charAt(1).toLowerCase() != "x") ? ("0x" + rgb) : (rgb)); } rgbnum = Number(rgb); return({ra:100 - amt, rb:(rgbnum >> 16) * (amt / 100), ga:100 - amt, gb:((rgbnum >> 8) & 255) * (amt / 100), ba:100 - amt, bb:(rgbnum & 255) * (amt / 100)}); } return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100}); } static function getColorKeysObj(targOrTransObj) { var trans = ((targOrTransObj.ra != undefined) ? (targOrTransObj) : (new Color(targOrTransObj).getTransform())); var sim_a = ((trans.ra == trans.ga) && (trans.ga == trans.ba)); var sim_b = ((trans.rb == trans.gb) && (trans.gb == trans.bb)); var o = {tintPercent:Number(((sim_a == true) ? (100 - trans.ra) : 0))}; if (o.tintPercent != 0) { var ratio = (100 / o.tintPercent); o.tint = (((trans.rb * ratio) << 16) | ((trans.gb * ratio) << 8)) | (trans.bb * ratio); var hexStr = o.tint.toString(16); var toFill = (6 - hexStr.length); while ((toFill--) > 0) { hexStr = "0" + hexStr; } o.tintString = "0x" + hexStr.toUpperCase(); } if ((sim_a == true) && (sim_b == true)) { if (trans.ra < 0) { o.invertColor = trans.rb * 0.392156862745098; } else if ((trans.ra == 100) && (trans.rb != 0)) { o.brightOffset = trans.rb * 0.392156862745098; } if (trans.ra != 100) { if ((trans.rb == 0) || ((trans.rb != 0) && (((255 * ((100 - trans.ra) / 100)) - trans.rb) <= 1))) { o.brightness = ((trans.rb != 0) ? (100 - trans.ra) : (trans.ra - 100)); } if (((128 - (1.28 * trans.ra)) - trans.rb) <= 1) { o.contrast = trans.ra; } } } return(o); } static function initializeTargets() { for (var i in arguments) { var obj = arguments[i]; if ((((obj == MovieClip.prototype) || (obj == Button.prototype)) || (obj == TextField.prototype)) || (obj == Object.prototype)) { if (obj.oldAddListener == undefined) { if (obj == TextField.prototype) { obj.oldAddListener = obj.addListener; _global.ASSetPropFlags(obj, "oldAddListener", 7, 1); } obj.addListener = function (o) { if (this.__zigoID__ == undefined) { com.mosesSupposes.fuse.ZigoEngine.initializeTargets(this); } if (this instanceof TextField) { Function(this.oldAddListener).call(this, o); } else { this.addListener(o); } }; if (obj == MovieClip.prototype) { _global.ASSetPropFlags(obj, "addListener", 7, 1); } } } else if (obj.__zigoID__ == undefined) { obj.__zigoID__ = zigoIDs; _global.ASSetPropFlags(obj, "__zigoID__", 7, 1); zigoIDs++; if ((obj._listeners == null) || (obj.addListener == null)) { AsBroadcaster.initialize(obj); } } } } static function deinitializeTargets() { for (var i in arguments) { var obj = arguments[i]; if (obj.__zigoID__ != undefined) { _global.ASSetPropFlags(obj, "__zigoID__,_listeners,broadcastMessage,addListener,removeListener", 0, 2); delete obj.__zigoID__; delete obj._listeners; delete obj.broadcastMessage; delete obj.addListener; delete obj.removeListener; } if (obj.oldAddListener != undefined) { _global.ASSetPropFlags(obj, "oldAddListener", 0, 2); obj.addListener = obj.oldAddListener; delete obj.oldAddListener; } } } static function __mgrRelay(inst, method, args) { if (inst == instance) { Function(com.mosesSupposes.fuse.ZigoEngine[method]).apply(com.mosesSupposes.fuse.ZigoEngine, args); } } static function setup(deinitFlag) { if (deinitFlag == true) { _playing = false; clearInterval(updateIntId); delete tweenHolder.onEnterFrame; return(undefined); } instance.cleanUp(); clearInterval(updateIntId); delete updateIntId; if ((updateTime != null) && (updateTime > 0)) { updateIntId = setInterval(instance, "update", updateTime); } else { if (Object(tweenHolder).proof == null) { setControllerDepth(6789); Object(tweenHolder).proof = 1; } var _inst = instance; tweenHolder.onEnterFrame = function () { _inst.update.call(_inst); }; } _playing = true; instance.now = getTimer(); } static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION + ", ZigoEngine based on concepts by L.Zigo"; static var EASING = "easeOutQuint"; static var DURATION = 1; static var TIME_MULTIPLIER = 1; static var ROUND_RESULTS = false; static var OUTPUT_LEVEL = 1; static var AUTOSTOP = false; static var SKIP_LEVEL = 0; static var _playing = false; static var zigoIDs = 0; static var prevTimeMult = 1; }Symbol 351 MovieClip [__Packages.com.mosesSupposes.fuse.ZManager] Frame 0class com.mosesSupposes.fuse.ZManager { var tweens, now; function ZManager () { tweens = {}; numTweens = 0; } function addTween(obj, props, endvals, seconds, ease, delay, callback) { var skipLevel = ((callback.skipLevel == undefined) ? 0 : (callback.skipLevel)); var cycles = ((callback.cycles == undefined) ? 1 : (callback.cycles)); var extra1 = callback.extra1; var extra2 = callback.extra2; var ip = []; var fmp = _global.com.mosesSupposes.fuse.FuseFMP; var fmps = String(("|" + fmp.getAllShortcuts().join("|")) + "|"); var cts = com.mosesSupposes.fuse.FuseKitCommon._cts(); var propsAdded = ""; var valsAdded = ""; var zID = obj.__zigoID__; var to = tweens[String(zID)]; if ((to != undefined) && (com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP == true)) { if (obj._listeners.length > 0) { for (var j in to.props) { ip.unshift(j); } } to.numProps = 0; cleanUp(true); } for (var i in props) { var prop = props[i]; var ep = endvals[i]; var fade = 0; if (prop == "_fade") { prop = "_alpha"; fade = ((ep < 50) ? -1 : 1); } var isCT = (cts.indexOf(("|" + prop) + "|") > -1); var oldCP = to.colorProp; if (to != undefined) { if ((isCT == true) && (oldCP != undefined)) { ip.unshift(oldCP); delete to.props[oldCP]; delete to.colorProp; to.numProps--; } else if (to.props[prop] != undefined) { ip.unshift(prop); delete to[prop]; to.numProps--; } } var o = {c:-1, fmp:-1, complex:-1}; var isImmed = (((skipLevel == 0) && ((seconds + delay) == 0)) || ((skipLevel > 0) && (seconds == 0))); var propChanged = false; var isFMP = ((fmp != undefined) && (fmps.indexOf(("|" + prop) + "|") > -1)); var isColorsArray = ((prop.toLowerCase().indexOf("colors") > -1) && (ep instanceof Array)); var isFMPC = (((isFMP == true) && (prop.indexOf("lor") > -1)) && (prop.charAt(2) != "l")); if (isFMP == true) { o.fmp = fmp; o.ps = fmp.getFilterProp(obj, prop, true); o.special = true; } if (((isCT == true) || (isColorsArray == true)) || (isFMPC && (isImmed == false))) { o.complex = 1; if (isCT == true) { o.c = new Color(obj); o.ps = Color(o.c).getTransform(); var cp = ((((prop == "_tint") || (prop == "_tintPercent")) || (prop == "_colorReset")) ? "tint" : (prop.slice(1))); var amt = null; var tint = null; if (prop != "_colorTransform") { if (cp == "tint") { if (typeof(ep) == "object") { tint = ep.tint; amt = ((_global.isNaN(ep.percent) == true) ? 100 : (ep.percent)); } else if ((prop == "_tintPercent") || (prop == "_colorReset")) { var curPct = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tintPercent; if (prop == "_colorReset") { amt = Math.min(curPct, 100 - Math.abs(Number(ep))); } else { amt = ((typeof(ep) == "string") ? ((curPct || 0) + Number(ep)) : Number(ep)); } amt = Math.max(0, Math.min(amt, 100)); tint = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tint || 0; } else { tint = ep; amt = 100; } } else { amt = ((typeof(ep) == "string") ? ((com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj)[cp] || 0) + Number(ep)) : (ep)); } ep = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj(cp, amt, tint); } if (isImmed == true) { if (prop == "_colorTransform") { Color(o.c).setTransform(ep); } else { com.mosesSupposes.fuse.ZigoEngine.setColorByKey(obj, cp, amt, tint); } } else { var chObj = getChangeObj(o.ps, ep, false, false); o.ch = chObj.map; if (chObj.changed == true) { propChanged = true; } } } else if (isImmed == true) { fmp.setFilterProp(obj, prop, ep); } else if (isColorsArray == true) { o.c = 2; o.ch = []; for (var j in ep) { if (ep[j] != null) { if (o.ps == null) { o.ps = []; } o.ps[j] = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, ((o.ps[j] == null) ? obj[prop][j] : o.ps[j])); var chObj = getChangeObj(o.ps[j], com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, ep[j]), true, false); o.ch[j] = chObj.map; if (chObj.changed == true) { propChanged = true; } } } } else { o.c = 1; o.ps = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, o.ps); var chObj = getChangeObj(o.ps, com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, ep), true, false); o.ch = chObj.map; if (chObj.changed == true) { propChanged = true; } } } else if (prop == "_bezier_") { removeTween(obj, "_x,_y", true); if (isImmed == true) { if ((ep.x != null) && (_global.isNaN(Number(ep.x)) == false)) { obj._x = ((typeof(ep.x) == "string") ? (obj._x + Number(ep.x)) : (ep.x)); } if ((ep.y != null) && (_global.isNaN(Number(ep.y)) == false)) { obj._y = ((typeof(ep.y) == "string") ? (obj._y + Number(ep.y)) : (ep.y)); } } else { o.special = true; o.ps = 0; o.ch = 1; o.bz = {sx:obj._x, sy:obj._y}; if ((ep.x == null) || (_global.isNaN(Number(ep.x)))) { ep.x = o.bz.sx; } if ((ep.y == null) || (_global.isNaN(Number(ep.y)))) { ep.y = o.bz.sy; } o.bz.chx = ((typeof(ep.x) == "string") ? (Number(ep.x)) : (ep.x - o.bz.sx)); if (_global.isNaN(o.bz.chx) == true) { o.bx.chx = 0; } o.bz.chy = ((typeof(ep.y) == "string") ? (Number(ep.y)) : (ep.y - o.bz.sy)); if (_global.isNaN(o.bz.chy) == true) { o.bx.chy = 0; } if ((ep.controlX == null) || (_global.isNaN(Number(ep.controlX)))) { o.bz.ctrlx = o.bz.sx + (o.bz.chx / 2); } else { o.bz.ctrlx = ((typeof(ep.controlX) == "string") ? (o.bz.sx + Number(ep.controlX)) : (ep.controlX)); } if ((ep.controlY == null) || (_global.isNaN(Number(ep.controlY)))) { o.bz.ctrly = o.bz.sy + (o.bz.chy / 2); } else { o.bz.ctrly = ((typeof(ep.controlY) == "string") ? (o.bz.sy + Number(ep.controlY)) : (ep.controlY)); } o.bz.ctrlx = o.bz.ctrlx - o.bz.sx; o.bz.ctrly = o.bz.ctrly - o.bz.sy; propChanged = (o.bz.chx + o.bz.chy) != 0; } } else { if (typeof(ep) == "object") { o.complex = ((ep instanceof Array) ? 0 : 1); } if ((prop == "_x") || (prop == "_y")) { removeTween(obj, "_bezier_", true); } if ((prop == "_frame") && (typeof(obj) == "movieclip")) { o.ps = obj._currentframe; o.special = true; } else if (isFMP == false) { if (o.complex > -1) { o.ps = ((o.complex == 0) ? ([]) : ({})); for (var j in ep) { o.ps[j] = obj[prop][j]; } } else { o.ps = obj[prop]; } } if (isImmed == true) { if (isFMP == true) { fmp.setFilterProp(obj, prop, ((typeof(ep) == "string") ? (o.ps + Number(ep)) : (ep))); } else if (o.complex > -1) { for (var j in ep) { if ((ep[j] != null) && (_global.isNaN(Number(ep[j])) == false)) { obj[prop][j] = ((typeof(ep[j]) == "string") ? (o.ps[j] + Number(ep[j])) : ep[j]); if (_global.isNaN(obj[prop][j]) == true) { obj[prop][j] = 0; } } } } else { obj[prop] = ((typeof(ep) == "string") ? (o.ps + Number(ep)) : (ep)); if (fade == 1) { obj._visible = true; } else if (fade == -1) { obj._visible = false; } } } else if (o.complex > -1) { var chObj = getChangeObj(o.ps, ep, isFMP, o.complex == 0); o.ch = chObj.map; if (chObj.changed == true) { propChanged = true; } } else { if ((ep == null) || (_global.isNaN(Number(ep)))) { ep = o.ps; } o.ch = ((typeof(ep) == "string") ? (Number(ep)) : (Number(ep) - o.ps)); if (_global.isNaN(o.ch) == true) { o.ch = 0; } propChanged = o.ch != 0; } } if (((skipLevel == 0) && ((propChanged == true) || (isImmed == false))) || ((propChanged == true) && (isImmed == false))) { if ((o.complex > -1) && (!(o.c === 2))) { o.ps = [o.ps]; o.ch = [o.ch]; } o.ts = now + (delay * 1000); o.pt = -1; o.d = seconds * 1000; o.ef = ease; o.sf = false; o.cycles = cycles; if (extra1 != undefined) { o.e1 = extra1; } if (extra2 != undefined) { o.e2 = extra2; } o.v = fade; if (callback.start != undefined) { o.scb = callback.start; } if (callback.upd != undefined) { o.ucb = callback.upd; } if (callback.end != undefined) { o.ecb = callback.end; } if (callback.roundResults != undefined) { o.rr = callback.roundResults; } if (tweens[String(zID)] == undefined) { to = (tweens[String(zID)] = {numProps:0, locked:false, targ:obj, targID:String(("\"" + ((obj._name != undefined) ? (obj._name) : (obj.toString()))) + "\""), targZID:zID, props:{}}); numTweens++; } if (isCT == true) { to.colorProp = prop; } to.props[prop] = o; to.numProps++; propsAdded = (prop + ",") + propsAdded; valsAdded = (((typeof(ep) == "string") ? (("\"" + ep) + "\"") : (ep)) + ",") + valsAdded; } o = undefined; } if ((to == undefined) || (to.numProps <= 0)) { cleanUp(); } if ((ip.length > 0) && (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0)) { com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:obj, props:ip, __zigoID__:zID, during:"add"}); } if (propsAdded == "") { if (skipLevel == 2) { if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) { com.mosesSupposes.fuse.FuseKitCommon.error("011", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString()); } } else { var de = (obj._listeners.length > 0); if (de == true) { obj.broadcastMessage("onTweenStart", {target:obj, props:props}); } if (callback.start != undefined) { callback.start.f.apply(callback.start.s, callback.start.a); } if (de == true) { obj.broadcastMessage("onTweenUpdate", {target:obj, props:props}); } if (callback.upd != undefined) { callback.upd.f.apply(callback.upd.s, callback.upd.a); } if (de == true) { obj.broadcastMessage("onTweenEnd", {target:obj, props:props}); } if (callback.end != undefined) { callback.end.f.apply(callback.end.s, callback.end.a); } } cleanUp(); } if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) { if (propsAdded == "") { com.mosesSupposes.fuse.FuseKitCommon.error("012", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString(), endvals.toString()); } else { com.mosesSupposes.fuse.FuseKitCommon.error("013", ((obj._name != undefined) ? (obj._name) : (obj.toString())), propsAdded.slice(0, -1), valsAdded.slice(0, -1)); } } return(((propsAdded == "") ? null : (propsAdded.slice(0, -1)))); } function removeTween(targs, props, noInit) { var ip = {}; var o = paramsObj(targs, props); if (o.none == true) { return(undefined); } var all = o.all; var allp = o.allprops; var tg = ((all == true) ? (tweens) : (Object(o.tg))); var missing = false; for (var j in tg) { var id = ((all == true) ? (j) : (String(tg[j].__zigoID__))); var to = tweens[id]; var po = ((allp == true) ? (to.props) : (o.props)); for (var i in po) { var allcolor = ((i == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) && (to.colorProp != undefined)); if ((to.props[i] != undefined) || (allcolor == true)) { if (ip[id] == null) { ip[id] = []; } ip[id].unshift(i); if ((i == to.colorProp) || (allcolor == true)) { delete to.props[to.colorProp]; delete to.colorProp; } else { delete to.props[i]; } to.numProps--; if (to.numProps <= 0) { missing = true; break; } } } } if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) { for (var k in ip) { var t = tweens[k].targ; com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(t.addProperty) == "function") ? (t) : (("[MISSING(\"" + tweens[k].targID) + "\")]")), props:ip[k], __zigoID__:tweens[k].targZID, during:((noInit == true) ? "add" : "remove")}); } } if (missing == true) { cleanUp(noInit); } } function alterTweens(type, targs, props, pauseFlag, noEvents, skipTo) { if (type == "lock") { tweens[String(targs.__zigoID__)].locked = props; return(undefined); } var o = paramsObj(targs, props); if (o.none == true) { return(undefined); } var all = o.all; var allp = o.allprops; var tg = ((all == true) ? (tweens) : (Object(o.tg))); var hits = 0; for (var j in tg) { var id = ((all == true) ? (j) : (String(tg[j].__zigoID__))); var to = tweens[id]; var po = ((allp == true) ? (to.props) : (o.props)); if (po.ALLCOLOR == true) { po[to.colorProp] = true; delete po.ALLCOLOR; } for (var prop in po) { hits++; var t = to.props[prop]; if (type == "rewind") { if (pauseFlag == true) { t.pt = now; } t.ts = now; if (noEvents != true) { t.sf = false; if (t.scb != undefined) { t.scb.fired = false; } } } else if (type == "ff") { if (noEvents == true) { t.suppressEnd = true; } t.o = true; t.pt = -1; t.ts = now - t.d; } else if (type == "skipTo") { t.ts = Math.min(now, (t.ts + (now - t.ts)) - (skipTo * 1000)); } else if (type == "pause") { if (t.pt == -1) { t.pt = now; } } else if (type == "unpause") { if (t.pt != -1) { t.ts = now - (t.pt - t.ts); t.pt = -1; } } } } if ((type == "ff") && (hits > 0)) { update(); } else if ((type == "rewind") && (hits > 0)) { update(true); } } function getStatus(type, targ, param) { if (targ == null) { return(null); } var all = (String(targ).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL); var t = tweens[String(targ.__zigoID__)]; switch (type) { case "paused" : var props = t.props; if (param != null) { if (props[String(param)] == undefined) { return(false); } return(Boolean(props[String(param)].pt != -1)); } for (var i in props) { if (props[i].pt != -1) { return(true); } } return(false); case "active" : if (param == null) { return(Boolean(t != undefined)); } if (String(param).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) { return(Boolean(t.colorProp != undefined)); } return(Boolean(t.props[String(param)] != undefined)); case "count" : if (!all) { return(t.numProps); } var count = 0; for (var i in tweens) { count = count + tweens[i].numProps; } return(count); case "locked" : return(t.locked); } } function update(force) { var scb = {}; var ucb = {}; var ecb = {}; var sp = {}; var up = {}; var ep = {}; var missing = false; var RR = com.mosesSupposes.fuse.ZigoEngine.ROUND_RESULTS; for (var i in tweens) { var to = tweens[i]; var targ = to.targ; var props = to.props; var evtFlag = (targ._listeners.length > 0); if (targ.__zigoID__ == undefined) { missing = true; if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) { var plist = []; for (var prop in props) { plist.unshift(prop); } com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(targ.addProperty) == "function") ? (targ) : (("[MISSING:" + to.targID) + "]")), props:plist, __zigoID__:to.targZID, during:"update"}); } continue; } for (var prop in props) { var t = props[prop]; if (((t.ts > now) || (t.pt != -1)) && (force != true)) { continue; } var done = (now >= (t.ts + t.d)); if (t.complex == -1) { var val; if (done == true) { val = t.ps + t.ch; if ((t.cycles > 1) || (t.cycles == 0)) { if (t.cycles > 1) { t.cycles--; } t.ps = val; t.ch = -t.ch; t.ts = now; done = false; } } else { val = t.ef(now - t.ts, t.ps, t.ch, t.d, t.e1, t.e2); } if (_global.isNaN(val) == false) { if ((prop != "_bezier_") && ((t.rr == true) || ((RR == true) && (!(t.rr === false))))) { val = Math.round(Number(val)); } if (t.special != true) { targ[prop] = val; } else if (t.fmp != -1) { t.fmp.setFilterProp(targ, prop, val); } else if (prop == "_bezier_") { var bz = t.bz; var x = (bz.sx + (val * (((2 * (1 - val)) * bz.ctrlx) + (val * bz.chx)))); var y = (bz.sy + (val * (((2 * (1 - val)) * bz.ctrly) + (val * bz.chy)))); if ((t.rr == true) || ((RR == true) && (!(t.rr === false)))) { x = Math.round(Number(x)); y = Math.round(Number(y)); } targ._x = x; targ._y = y; } else if (prop == "_frame") { MovieClip(targ).gotoAndStop(Math.ceil(val)); } } } else { var loop = ((done == true) && ((t.cycles > 1) || (t.cycles == 0))); var tta = []; for (var k in t.ch) { var tt = ((t.complex == 0) ? ([]) : ({})); for (var j in t.ch[k]) { var cv = t.ch[k][j]; var sv = t.ps[k][j]; if (done == true) { tt[j] = sv + cv; if (loop == true) { t.ch[k][j] = -cv; } } else { tt[j] = t.ef(now - t.ts, sv, cv, t.d, t.e1, t.e2); } if (_global.isNaN(tt[j]) == false) { if ((t.rr == true) || ((RR == true) && (!(t.rr === false)))) { tt[j] = Math.round(tt[j]); } } if ((t.fmp == -1) && (t.c == -1)) { targ[prop][j] = tt[j]; } } tta.push(tt); if ((t.fmp == -1) && (t.c == 2)) { targ[prop][k] = Number(((tt.rb << 16) | (tt.gb << 8)) | tt.bb); } } if (t.fmp != -1) { if (t.c == 1) { t.fmp.setFilterProp(targ, prop, ((tta[0].rb << 16) | (tta[0].gb << 8)) | tta[0].bb); } else if (t.c == 2) { var copy = []; for (var j in tta) { copy.unshift(((tta[j].rb << 16) | (tta[j].gb << 8)) | tta[j].bb); } t.fmp.setFilterProp(targ, prop, copy); } } else if (t.c != -1) { t.c.setTransform(tta[0]); } if (loop == true) { if (t.cycles > 1) { t.cycles--; } done = false; t.ts = now; t.ps = tta; } } if (t.sf == false) { if (t.v != 0) { targ._visible = true; } if (evtFlag == true) { if (sp[i] == undefined) { sp[i] = [targ, []]; } sp[i][1].unshift(prop); } t.sf = true; } if (t.scb.fired == false) { scb[String(t.scb.id)] = t.scb; t.scb.fired = true; } if (evtFlag == true) { if (up[i] == undefined) { up[i] = [targ, []]; } up[i][1].unshift(prop); } if (t.ucb != undefined) { ucb[String(t.ucb.id)] = t.ucb; } if (done == true) { if (t.v === -1) { targ._visible = false; } if (t.suppressEnd != true) { if (evtFlag == true) { if (ep[i] == undefined) { ep[i] = [targ, []]; } ep[i][1].unshift(prop); } if (t.ecb != undefined) { ecb[String(t.ecb.id)] = t.ecb; } } delete props[prop]; if (prop == to.colorProp) { delete to.colorProp; } to.numProps--; if (to.numProps <= 0) { missing = true; } } delete t.suppressEnd; } } for (var i in sp) { sp[i][0].broadcastMessage("onTweenStart", {target:sp[i][0], props:sp[i][1]}); } for (var i in scb) { scb[i].f.apply(scb[i].s, scb[i].a); } for (var i in up) { up[i][0].broadcastMessage("onTweenUpdate", {target:up[i][0], props:up[i][1]}); } for (var i in ucb) { ucb[i].f.apply(ucb[i].s, ucb[i].a); } for (var i in ep) { ep[i][0].broadcastMessage("onTweenEnd", {target:ep[i][0], props:ep[i][1]}); } for (var i in ecb) { ecb[i].f.apply(ecb[i].s, ecb[i].a); } if (missing) { cleanUp(); } now = getTimer(); } function cleanUp(noInit) { for (var i in tweens) { var targ = tweens[i].targ; if ((tweens[i].numProps <= 0) || (targ.__zigoID__ == undefined)) { if ((((targ != undefined) && (targ.tween == undefined)) && (noInit != true)) && (targ._listeners.length <= 0)) { com.mosesSupposes.fuse.ZigoEngine.deinitializeTargets(targ); } delete tweens[i]; numTweens--; } } if (numTweens <= 0) { numTweens = 0; delete tweens; tweens = {}; if (noInit != true) { com.mosesSupposes.fuse.ZigoEngine.__mgrRelay(this, "setup", [true]); } } } function paramsObj(targs, props, endvals, retainFade) { var o = {}; o.all = String(targs).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL; o.none = Boolean(targs == null); if (o.all == true) { o.tg = [null]; } else { o.tg = ((targs instanceof Array) ? (targs) : ([targs])); for (var i in o.tg) { var t = o.tg[i]; if ((t == null) || (!((typeof(t) == "object") || (typeof(t) == "movieclip")))) { o.tg.splice(Number(i), 1); } } } o.allprops = props == null; var pa; var va; var pobj = {}; if (o.allprops == false) { if ((typeof(props) == "string") && ((String(props).indexOf(" ") > -1) || (String(props).indexOf(",") > -1))) { props = String(props.split(" ").join("")).split(","); } pa = ((props instanceof Array) ? (props.slice()) : ([props])); if (endvals != undefined) { if ((typeof(endvals) == "string") && ((String(endvals).indexOf(" ") > -1) || (String(endvals).indexOf(",") > -1))) { endvals = String(endvals.split(" ").join("")).split(","); } va = ((endvals instanceof Array) ? (endvals.slice()) : ([endvals])); while (va.length < pa.length) { va.push(va[va.length - 1]); } va.splice(pa.length, va.length - pa.length); } for (var i in pa) { var insert = Number(i); if ((pa[i] != "_scale") && (pa[i] != "_size")) { if (pobj[pa[i]] == undefined) { if ((pa[i] == "_fade") && (retainFade != true)) { pa[i] = "_alpha"; } if (String(pa[i]).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) { pa[i] = com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR; } pobj[pa[i]] = true; } else { pa.splice(insert, 1); va.splice(insert, 1); } } else { var prop = String(pa.splice(insert, 1)[0]); var val = va.splice(insert, 1)[0]; if (prop == "_scale") { if (pobj._xscale == undefined) { pa.splice(insert, 0, "_xscale"); va.splice(insert, 0, val); pobj._xscale = true; insert++; } if (pobj._yscale == undefined) { pa.splice(insert, 0, "_yscale"); va.splice(insert, 0, val); pobj._yscale = true; } } if (prop == "_size") { if (pobj._width == undefined) { pa.splice(insert, 0, "_width"); va.splice(insert, 0, val); pobj._width = true; insert++; } if (pobj._yscale == undefined) { pa.splice(insert, 0, "_height"); va.splice(insert, 0, val); pobj._height = true; } } } } for (var i in pa) { if (((pa[i] == "_xscale") && (pobj._width == true)) || ((pa[i] == "_yscale") && (pobj._height == true))) { pa.splice(Number(i), 1); va.splice(Number(i), 1); delete pobj[pa[i]]; } } } o.pa = pa; o.va = va; o.props = pobj; return(o); } function getChangeObj(ps, ep, isFMP, useArray) { var ch = {map:((useArray == true) ? ([]) : ({})), changed:false}; for (var j in ep) { if ((((((isFMP == true) && (j.charAt(1) == "b")) || (ep[j] != ps[j])) || (useArray == true)) && (ep[j] != null)) && (_global.isNaN(Number(ep[j])) == false)) { ch.map[j] = ((typeof(ep[j]) == "string") ? (Number(ep[j])) : (ep[j] - ps[j])); if (_global.isNaN(ch.map[j]) == true) { ch.map[j] = 0; } else if (ch.map[j] != 0) { ch.changed = true; } } } return(ch); } var numTweens = 0; }Symbol 352 MovieClip [__Packages.mx.transitions.easing.None] Frame 0class mx.transitions.easing.None { function None () { } static function easeNone(t, b, c, d) { return(((c * t) / d) + b); } static function easeIn(t, b, c, d) { return(((c * t) / d) + b); } static function easeOut(t, b, c, d) { return(((c * t) / d) + b); } static function easeInOut(t, b, c, d) { return(((c * t) / d) + b); } static var version = "1.1.0.52"; }Symbol 353 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0class mx.transitions.easing.Regular { function Regular () { } static function easeIn(t, b, c, d) { return(((c * ((t = t / d))) * t) + b); } static function easeOut(t, b, c, d) { return((((-c) * ((t = t / d))) * (t - 2)) + b); } static function easeInOut(t, b, c, d) { if (((t = t / (d / 2))) < 1) { return((((c / 2) * t) * t) + b); } return((((-c) / 2) * (((--t) * (t - 2)) - 1)) + b); } static var version = "1.1.0.52"; }Symbol 354 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0class mx.transitions.easing.Elastic { function Elastic () { } static function easeIn(t, b, c, d, a, p) { if (t == 0) { return(b); } if (((t = t / d)) == 1) { return(b + c); } if (!p) { p = d * 0.3; } if ((!a) || (a < Math.abs(c))) { a = c; var s = (p / 4); } else { var s = ((p / (Math.PI*2)) * Math.asin(c / a)); } return((-((a * Math.pow(2, 10 * ((t = t - 1)))) * Math.sin((((t * d) - s) * (Math.PI*2)) / p))) + b); } static function easeOut(t, b, c, d, a, p) { if (t == 0) { return(b); } if (((t = t / d)) == 1) { return(b + c); } if (!p) { p = d * 0.3; } if ((!a) || (a < Math.abs(c))) { a = c; var s = (p / 4); } else { var s = ((p / (Math.PI*2)) * Math.asin(c / a)); } return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - s) * (Math.PI*2)) / p)) + c) + b); } static function easeInOut(t, b, c, d, a, p) { if (t == 0) { return(b); } if (((t = t / (d / 2))) == 2) { return(b + c); } if (!p) { p = d * 0.45; } if ((!a) || (a < Math.abs(c))) { a = c; var s = (p / 4); } else { var s = ((p / (Math.PI*2)) * Math.asin(c / a)); } if (t < 1) { return((-0.5 * ((a * Math.pow(2, 10 * ((t = t - 1)))) * Math.sin((((t * d) - s) * (Math.PI*2)) / p))) + b); } return(((((a * Math.pow(2, -10 * ((t = t - 1)))) * Math.sin((((t * d) - s) * (Math.PI*2)) / p)) * 0.5) + c) + b); } static var version = "1.1.0.52"; }Symbol 355 MovieClip [__Packages.com.mosesSupposes.fuse.Fuse] Frame 0class com.mosesSupposes.fuse.Fuse extends Array { var _nID, _aDefaultTargs, length, scope, _nIndex, _oDel1, dispatchEvent, label, autoClear, duration, easing; function Fuse (fuseAction) { super(); mx.events.EventDispatcher.initialize(this); _nID = registerInstance(this); _nState = -1; _aDefaultTargs = new Array(); if (arguments.length > 0) { splice.apply(this, new Array(0, 0).concat(arguments)); } var unsupport = ["concat", "join", "sort", "sortOn"]; for (var i in unsupport) { com.mosesSupposes.fuse.Fuse.prototype[unsupport[i]] = function () { if (com.mosesSupposes.fuse.Fuse.OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("105"); } }; } } function addEventListener(event, handler) { } function removeEventListener(event, handler) { } function destroy() { if (OUTPUT_LEVEL > 1) { com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " destroy."); } stop(true); splice(0, length); _aDefaultTargs = null; scope = null; _global.ASSetPropFlags(this, null, 0, 7); var id = _nID; for (var i in this) { delete this[i]; } removeInstanceAt(id, true); delete id; delete this; } static function getInstance(idOrLabel) { if (typeof(idOrLabel) == "number") { return(_aInstances[idOrLabel]); } if (typeof(idOrLabel) == "string") { for (var i in _aInstances) { if (com.mosesSupposes.fuse.Fuse(_aInstances[i]).label == idOrLabel) { return(_aInstances[i]); } } } return(null); } static function getInstances(stateFilter, targets) { var all = ((stateFilter == null) || (stateFilter.toUpperCase() == "ALL")); if (!(targets instanceof Array)) { targets = arguments.slice(1); } var a = []; for (var i in _aInstances) { var instance = _aInstances[i]; if (_aInstances[i] == null) { continue; } if ((all == false) && (instance.__get__state() != stateFilter)) { continue; } var found = (targets.length == 0); if (found == false) { if (found == true) { continue; } var instTargs = instance.getActiveTargets(true); for (var j in targets) { for (var k in instTargs) { if (instTargs[k] == targets[j]) { found = true; break; } } } } if (found == true) { a.unshift(instance); } } return(a); } function get id() { return(_nID); } function get state() { switch (_nState) { case -1 : return("stopped"); case 0 : return("paused"); case 1 : return("playing"); } return(undefined); } function get currentIndex() { return(_nIndex); } function get currentLabel() { return(this[_nIndex].label); } function get target() { return(((_aDefaultTargs.length == 1) ? (_aDefaultTargs[0]) : (_aDefaultTargs))); } function set target(t) { delete _aDefaultTargs; if (t != null) { addTarget(t); } //return(target); } function addTarget(t) { if (_aDefaultTargs == null) { _aDefaultTargs = []; } if (arguments[0] instanceof Array) { arguments = arguments[0]; } for (var i in arguments) { var found = false; for (var j in _aDefaultTargs) { if (arguments[i] == _aDefaultTargs[j]) { found = true; break; } } if (found == false) { _aDefaultTargs.push(arguments[i]); } } } function removeTarget(t) { if ((_aDefaultTargs == null) || (_aDefaultTargs.length == 0)) { return(undefined); } if (arguments[0] instanceof Array) { arguments = arguments[0]; } for (var i in arguments) { for (var j in _aDefaultTargs) { if (arguments[i] == _aDefaultTargs[j]) { _aDefaultTargs.splice(Number(j), 1); } } } } function getActiveTargets(includeDefaults) { if (_nState == -1) { return([]); } var targetList; if (includeDefaults == true) { targetList = _aDefaultTargs.slice(); } else { targetList = []; } return(com.mosesSupposes.fuse.FuseItem(this[_nIndex]).getActiveTargets(targetList)); } function clone() { var initObjs = []; var i = 0; while (i < length) { initObjs.push(com.mosesSupposes.fuse.FuseItem(this[i]).getInitObj()); i++; } var f = (new com.mosesSupposes.fuse.Fuse()); f.push.apply(f, initObjs); f.scope = scope; f.__set__target(target); return(f); } function push(fuseAction) { splice.apply(this, new Array(length, 0).concat(arguments)); return(length); } function pushTween(targets, props, endvals, seconds, ease, delay, callback) { push({__buildMode:true, tweenargs:arguments}); return(length); } function pop() { var o = com.mosesSupposes.fuse.FuseItem(this[length - 1]).getInitObj(); splice(length - 1, 1); return(o); } function unshift(fuseAction) { splice.apply(this, new Array(0, 0).concat(arguments)); return(length); } function shift() { var o = com.mosesSupposes.fuse.FuseItem(this[0]).getInitObj(); splice(0, 1); return(o); } function splice(startIndex, deleteCount, fuseAction) { stop(true); var si = Number(arguments.shift()); if (si < 0) { si = length + si; } deleteCount = Number(arguments.shift()); var newItems = new Array(); var i = 0; while (i < arguments.length) { var item = ((arguments[i] instanceof com.mosesSupposes.fuse.Fuse) ? (arguments[i]) : (new com.mosesSupposes.fuse.FuseItem(si + i, arguments[i], _nID))); addEventListener("onStop", item); addEventListener("evtSetStart", item); newItems.push(item); i++; } var deadItems = super.splice.apply(this, new Array(si, deleteCount).concat(newItems)); for (var j in deadItems) { var item = deadItems[j]; removeEventListener("onStop", item); removeEventListener("evtSetStart", item); if (item instanceof com.mosesSupposes.fuse.Fuse) { item.removeEventListener("onComplete", _oDel1); } else { item.destroy(); delete item; } } var i = 0; while (i < length) { com.mosesSupposes.fuse.FuseItem(this[i])._nItemID = i; i++; } } function slice(indexA, indexB) { var a = super.slice(indexA, indexB); var initObjs = new Array(); var i = 0; while (i < arguments.length) { initObjs.push(com.mosesSupposes.fuse.FuseItem(this[i]).getInitObj()); i++; } return(initObjs); } function reverse() { stop(true); super.reverse(); var i = 0; while (i < length) { com.mosesSupposes.fuse.FuseItem(this[i])._nItemID = i; i++; } } function traceItems(indexA, indexB) { var s = ""; var a = super.slice(indexA, indexB); s = s + ((getHandle() + " traceItems:") + "\n----------\n"); var i = 0; while (i < a.length) { if (a[i] instanceof com.mosesSupposes.fuse.Fuse) { s = s + (((((getHandle() + ">Item#") + i) + ": [Nested Fuse] ") + a[i]) + newline); } else { s = s + (a[i] + newline); } i++; } s = s + "----------"; com.mosesSupposes.fuse.FuseKitCommon.output(s); } function toString() { return(((getHandle() + " (contains ") + length) + ((length == 1) ? " item)" : " items)")); } function setStartProps(trueOrItemIDs) { var all = (((arguments.length == 0) || (trueOrItemIDs === true)) || (trueOrItemIDs == com.mosesSupposes.fuse.FuseKitCommon.ALL)); dispatchEvent({target:this, type:"evtSetStart", all:all, filter:((trueOrItemIDs instanceof Array) ? (trueOrItemIDs) : (arguments)), curIndex:((_nState == 1) ? (_nIndex) : -1), targs:_aDefaultTargs, scope:scope}); } function start(setStart) { close(); stop(true); _nState = 1; if (length == 0) { advance(false, true, false); } if ((setStart != null) && (setStart != false)) { setStartProps.apply(this, arguments); } dispatchEvent({target:this, type:"onStart"}); if (OUTPUT_LEVEL > 1) { com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " start."); } playCurrentItem(); } function stop() { if (_nState != -1) { var i = 0; while (i < length) { if (this[i] instanceof com.mosesSupposes.fuse.Fuse) { com.mosesSupposes.fuse.Fuse(this[i]).removeEventListener("onComplete", _oDel1); if (com.mosesSupposes.fuse.Fuse(this[i]).__get__state() == "playing") { com.mosesSupposes.fuse.Fuse(this[i]).stop(); } } else if ((i == _nIndex) || (com.mosesSupposes.fuse.FuseItem(this[i]).hasTriggerFired() == true)) { com.mosesSupposes.fuse.FuseItem(this[i]).stop(); } i++; } } var prevstate = _nState; _nState = -1; if ((!(arguments[0] === true)) && (prevstate != -1)) { dispatchEvent({target:this, type:"onStop"}); if (OUTPUT_LEVEL > 1) { com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " stop."); } } _nIndex = 0; clearInterval(_nDelay); _nTimeCache = (_nDelay = -1); } function skipTo(indexOrLabel) { close(); var index = normalizeIndex(indexOrLabel); if (index == null) { if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("102", "skipTo", String(indexOrLabel)); } return(undefined); } if ((index == _nIndex) && (arguments[1] === true)) { if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("103", String(indexOrLabel), _nIndex); } } if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) { com.mosesSupposes.fuse.Fuse(this[_nIndex]).removeEventListener("onComplete", _oDel1); } stop(true); _nIndex = index; var s = _nState; _nState = 1; if (s == -1) { dispatchEvent({target:this, type:"onStart"}); } playCurrentItem(); if (OUTPUT_LEVEL > 1) { com.mosesSupposes.fuse.FuseKitCommon.output("skipTo:" + index); } } function pause() { if (_nState == 1) { var i = 0; while (i <= _nIndex) { if ((this[i].state === "playing") || (this[i]._nPlaying > 0)) { this[i].pause(); } i++; } if (_nTimeCache != -1) { _nTimeCache = _nTimeCache - getTimer(); clearInterval(_nDelay); } _nState = 0; if (OUTPUT_LEVEL > 1) { com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " pause."); } dispatchEvent({target:this, type:"onPause"}); } } function resume() { if (_nState != 0) { return(undefined); } close(); _nState = 1; if (OUTPUT_LEVEL > 1) { com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " resume."); } dispatchEvent({target:this, type:"onResume"}); if (_nTimeCache != -1) { playCurrentItem(false, true); } var i = 0; while (i <= _nIndex) { if ((this[i] instanceof com.mosesSupposes.fuse.Fuse) && (this[i].state == "paused")) { com.mosesSupposes.fuse.Fuse(this[i]).resume(); } else if (this[i]._nPlaying == 0) { com.mosesSupposes.fuse.FuseItem(this[i]).pause(true); } i++; } } function fastForward(resumeAtIndexOrLabel) { var index = ((resumeAtIndexOrLabel == null) ? (length) : (normalizeIndex(resumeAtIndexOrLabel))); if (index == null) { if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("102", "fastForward", String(resumeAtIndexOrLabel)); } return(undefined); } if ((index == 0) || (index <= _nIndex)) { if (OUTPUT_LEVEL > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("104", index); } skipTo(index); return(undefined); } clearInterval(_nDelay); var i = _nIndex; while (i < index) { this[i].fastForward(null, _aDefaultTargs, scope); advance(false, true, !((i == (index - 1)) && (index < length))); i++; } } function getHandle() { return("-Fuse" + ((label != undefined) ? ((" \"" + label) + "\"") : ("#" + String(_nID)))); } function advance(wasTriggered, silentStop, isFF) { if (_nState < 1) { if (OUTPUT_LEVEL > 1) { com.mosesSupposes.fuse.FuseKitCommon.output(((((("** DEVELOPER ALERT: " + getHandle()) + " advance called out of turn! (state:") + state) + " currentIndex:") + currentIndex) + ") Please report this Fuse's details to MosesSupposes.com. **"); } return(undefined); } var isLastFinal = false; if ((_nIndex == (length - 1)) && (isFF != true)) { var i = (length - 1); while (i > -1) { if (com.mosesSupposes.fuse.FuseItem(this[i])._nPlaying > -1) { return(undefined); } i--; } isLastFinal = true; } if ((wasTriggered == true) && (isLastFinal == false)) { return(undefined); } if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) { com.mosesSupposes.fuse.Fuse(this[_nIndex]).removeEventListener("onComplete", _oDel1); } if ((_nIndex + 1) >= length) { stop(silentStop); if (OUTPUT_LEVEL > 1) { com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " complete."); } _nIndex = length - 1; dispatchEvent({target:this, type:"onComplete"}); if ((autoClear == true) || ((!(autoClear === false)) && (AUTOCLEAR == true))) { destroy(); } return(undefined); } _nIndex++; if (isFF == true) { return(undefined); } if (OUTPUT_LEVEL > 1) { com.mosesSupposes.fuse.FuseKitCommon.output((getHandle() + " advance: ") + _nIndex); } dispatchEvent({target:this, type:"onAdvance"}); playCurrentItem(); } function playCurrentItem(postDelay, resumeDelay) { clearInterval(_nDelay); if ((postDelay != true) || (resumeDelay == true)) { var d = 0; if (resumeDelay != true) { d = (com.mosesSupposes.fuse.FuseItem(this[_nIndex]).evalDelay(scope) || 0) * 1000; } if ((d > 0) || (resumeDelay == true)) { if (resumeDelay == true) { d = _nTimeCache; _nTimeCache = _nTimeCache + getTimer(); } else { var multiplier = Math.abs(_global.com.mosesSupposes.fuse.ZigoEngine.TIME_MULTIPLIER); if (_global.isNaN(multiplier) == true) { multiplier = 1; } d = d * multiplier; _nTimeCache = getTimer() + d; } _nDelay = setInterval(this, "playCurrentItem", d, true); return(undefined); } } _nTimeCache = (_nDelay = -1); if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) { if (_oDel1 == null) { _oDel1 = mx.utils.Delegate.create(this, advance); } com.mosesSupposes.fuse.Fuse(this[_nIndex]).addEventListener("onComplete", _oDel1); com.mosesSupposes.fuse.Fuse(this[_nIndex]).start(_aDefaultTargs, scope); } else { var propsTweened = com.mosesSupposes.fuse.FuseItem(this[_nIndex]).startItem(_aDefaultTargs, scope, duration, easing); if (OUTPUT_LEVEL > 1) { com.mosesSupposes.fuse.FuseKitCommon.output((getHandle() + " props tweened: ") + propsTweened); } } } function evtSetStart(o) { setStartProps.apply(this, o.filter); } static function open(fuseOrID) { var _ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine; if (_ZigoEngine == undefined) { com.mosesSupposes.fuse.FuseKitCommon.error("106"); return(null); } _ZigoEngine.register(com.mosesSupposes.fuse.Fuse, com.mosesSupposes.fuse.FuseItem); if (_oBuildMode == null) { _oBuildMode = {curID:-1, prevID:-1, curGroup:null}; } else if ((_oBuildMode != null) && (_oBuildMode.curID > -1)) { close(); } if (fuseOrID != null) { if (fuseOrID instanceof com.mosesSupposes.fuse.Fuse) { _oBuildMode.curID = fuseOrID.id; } else if (getInstance(fuseOrID) != null) { _oBuildMode.curID = getInstance(fuseOrID).id; } else { com.mosesSupposes.fuse.FuseKitCommon.error("107"); return(null); } } else { _oBuildMode.curID = (new com.mosesSupposes.fuse.Fuse()).id; } _oBuildMode.prevID = _oBuildMode.curID; return(getInstance(_oBuildMode.curID)); } static function openGroup(fuseOrID) { if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) { open(fuseOrID); } else if (_oBuildMode.curGroup != null) { closeGroup(); } _oBuildMode.curGroup = new Array(); return(getInstance(_oBuildMode.curID)); } static function closeGroup() { if ((_oBuildMode.curGroup == null) || (!((_oBuildMode != null) && (_oBuildMode.curID > -1)))) { return(undefined); } getInstance(_oBuildMode.curID).push(_oBuildMode.curGroup); _oBuildMode.curGroup = null; } static function close() { if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) { return(undefined); } if (_oBuildMode.curGroup != null) { closeGroup(); } _oBuildMode.curID = -1; } static function closeAndStart(setStart) { if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) { return(undefined); } var f = getInstance(_oBuildMode.curID); close(); f.start.apply(f, arguments); } static function startRecent(setStart) { var f = getInstance(_oBuildMode.prevID); if (f != null) { f.start.apply(f, arguments); } else { com.mosesSupposes.fuse.FuseKitCommon.error("108"); } } static function addCommand(commandOrScope, indexOrFunc, argument) { if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) { return(undefined); } var inGroup = (_oBuildMode.curGroup != null); var into = ((inGroup == true) ? (_oBuildMode.curGroup) : (getInstance(_oBuildMode.curID))); if (typeof(commandOrScope) == "string") { var hasArg = (indexOrFunc != undefined); var valid = com.mosesSupposes.fuse.FuseKitCommon._validateFuseCommand(String(commandOrScope), inGroup, hasArg, OUTPUT_LEVEL, true); if (valid == true) { into.push({__buildMode:true, command:commandOrScope, commandargs:indexOrFunc}); } } else { into.push({__buildMode:true, scope:commandOrScope, func:indexOrFunc, args:arguments.slice(2)}); } } static function addBuildItem(args) { if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) { return(false); } var into = ((_oBuildMode.curGroup != null) ? (_oBuildMode.curGroup) : (getInstance(_oBuildMode.curID))); if ((args.length == 1) && (typeof(args[0]) == "object")) { into.push(args[0]); } else { into.push({__buildMode:true, tweenargs:args}); } return(true); } function normalizeIndex(indexOrLabel) { var index; if (typeof(indexOrLabel) == "string") { index = -1; var i = 0; while (i < length) { if (this[i].label == String(indexOrLabel)) { index = i; break; } i++; } if (index == -1) { return(null); } } else { index = Number(indexOrLabel); } if ((_global.isNaN(index) == true) || (Math.abs(index) >= length)) { return(null); } if (index < 0) { index = Math.max(0, length + index); } return(index); } static function registerInstance(s) { if (_aInstances == null) { _aInstances = new Array(); } return(_aInstances.push(s) - 1); } static function removeInstanceAt(id, isDestroyCall) { if (isDestroyCall != true) { com.mosesSupposes.fuse.Fuse(_aInstances[id]).destroy(); } delete _aInstances[id]; } static var registryKey = "fuse"; static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION; static var OUTPUT_LEVEL = 1; static var AUTOCLEAR = false; static var AUTOSTOP = true; var _nState = -1; var _nDelay = -1; var _nTimeCache = -1; static var _aInstances = null; static var _oBuildMode = null; }Symbol 356 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0class mx.events.EventDispatcher { function EventDispatcher () { } static function _removeEventListener(queue, event, handler) { if (queue != undefined) { var l = queue.length; var i; i = 0; while (i < l) { var o = queue[i]; if (o == handler) { queue.splice(i, 1); return(undefined); } i++; } } } static function initialize(object) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = _fEventDispatcher.addEventListener; object.removeEventListener = _fEventDispatcher.removeEventListener; object.dispatchEvent = _fEventDispatcher.dispatchEvent; object.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchQueue(queueObj, eventObj) { var queueName = ("__q_" + eventObj.type); var queue = queueObj[queueName]; if (queue != undefined) { var i; for (i in queue) { var o = queue[i]; var oType = typeof(o); if ((oType == "object") || (oType == "movieclip")) { if (o.handleEvent != undefined) { o.handleEvent(eventObj); } if (o[eventObj.type] != undefined) { if (exceptions[eventObj.type] == undefined) { o[eventObj.type](eventObj); } } } else { o.apply(queueObj, [eventObj]); } } } } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(this, eventObj); } function addEventListener(event, handler) { var queueName = ("__q_" + event); if (this[queueName] == undefined) { this[queueName] = new Array(); } _global.ASSetPropFlags(this, queueName, 1); _removeEventListener(this[queueName], event, handler); this[queueName].push(handler); } function removeEventListener(event, handler) { var queueName = ("__q_" + event); _removeEventListener(this[queueName], event, handler); } static var _fEventDispatcher = undefined; static var exceptions = {move:1, draw:1, load:1}; }Symbol 357 MovieClip [__Packages.com.mosesSupposes.fuse.FuseItem] Frame 0class com.mosesSupposes.fuse.FuseItem { static var _ZigoEngine, _aInstances; var _nItemID, _nFuseID, _initObj, _aProfiles, _oElements, _oTemps, _sImage, _aTweens, _oTwBeingAdded; function FuseItem (id, o, fuseID) { _ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine; _nItemID = id; _nFuseID = fuseID; _initObj = o; _aProfiles = []; _oElements = {aEvents:[]}; _oTemps = {}; if (!(o instanceof Array)) { o = [o]; } var fuse = _global.com.mosesSupposes.fuse.Fuse; _oTemps.outputLevel = ((fuse != undefined) ? (fuse.OUTPUT_LEVEL) : (_global.com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL)); if (o.length == 1) { var o0 = o[0]; var obj = ((o0.action != undefined) ? (o0.action) : (o0)); if ((obj.__buildMode != true) && (obj.command != undefined)) { _oElements.command = obj.command; _oElements.scope = obj.scope; _oElements.args = obj.args; _sImage = " Elements:[" + ("command" + ((typeof(obj.command) == "string") ? ((":\"" + obj.command) + "\", ") : ", ")); if (obj.delay != undefined) { _sImage = _sImage + "delay, "; _oElements.delay = obj.delay; } _sImage = _sImage.slice(0, -2) + "]"; if ((obj.func != undefined) && (_oTemps.outputLevel > 0)) { com.mosesSupposes.fuse.FuseKitCommon.error("113"); } return; } } _oTemps.sImgS = ""; _oTemps.sImgE = ""; _oTemps.sImgB = ""; _oTemps.afl = 0; _oTemps.ael = 0; _oTemps.twDelayFlag = false; _oTemps.nActions = o.length; _oTemps.fuseProps = com.mosesSupposes.fuse.FuseKitCommon._fuseprops(); _oTemps.cbProps = com.mosesSupposes.fuse.FuseKitCommon._cbprops(); _oTemps.sUP = com.mosesSupposes.fuse.FuseKitCommon._underscoreable(); _oTemps.sCT = com.mosesSupposes.fuse.FuseKitCommon._cts(); _oTemps.bTriggerFound = false; for (var i in o) { var item = o[i]; if ((item.label != undefined) && (typeof(item.label) == "string")) { _oElements.label = item.label; } var aap; var bApplied = Boolean(typeof(item.action) == "object"); if (bApplied == true) { var a = ((item.action instanceof Array) ? (item.action) : ([item.action])); aap = {delay:item.delay, target:item.target, addTarget:item.addTarget, label:item.label, trigger:item.trigger}; for (var j in a) { var oPr = parseProfile(a[j], aap); if (oPr != undefined) { _aProfiles.unshift(oPr); } } } else { var a = item; var oPr = parseProfile(a, aap); if (oPr != undefined) { _aProfiles.unshift(oPr); } } } _sImage = ""; var str = ""; if (_oTemps.afl > 0) { str = str + ((_oTemps.afl > 1) ? (_oTemps.afl + " callbacks, ") : "callback, "); } if ((_oElements.delay != undefined) || (_oTemps.twDelayFlag == true)) { str = str + "delay, "; } if (_oTemps.bTriggerFound == true) { str = str + "trigger, "; } if (_oTemps.ael > 0) { str = str + ((_oTemps.ael > 1) ? (_oTemps.ael + " events, ") : "event, "); } if (str != "") { _sImage = _sImage + ((" Elements:[" + str.slice(0, -2)) + "]"); } if (_oTemps.sImgS != "") { _sImage = _sImage + ((" StartProps:[" + _oTemps.sImgS.slice(0, -2)) + "]"); } if (_oTemps.sImgE != "") { _sImage = _sImage + ((" Props:[" + _oTemps.sImgE.slice(0, -2)) + "]"); } if (_oTemps.sImgB != "") { _sImage = _sImage + ((" Simple Syntax Props:[" + _oTemps.sImgB.slice(0, -1)) + "]"); } if (_sImage.slice(-2) == ", ") { _sImage = _sImage.slice(0, -2); } delete _oTemps; } static function doTween() { for (var i in arguments) { if (typeof(arguments[i]) == "object") { if (_aInstances == undefined) { _aInstances = new Array(); } var o = (new com.mosesSupposes.fuse.FuseItem(_aInstances.length, arguments[i], -1)); return(o.startItem()); } } } function get label() { return(_oElements.label); } function hasTriggerFired() { return(_bTrigger == true); } function getInitObj() { return(_initObj); } function getActiveTargets(targetList) { if (_aTweens.length <= 0) { return(targetList); } var found = false; for (var i in _aTweens) { for (var j in targetList) { if (targetList[j] == _aTweens[i].targ) { found = true; break; } } if (found == false) { targetList.unshift(_aTweens[i].targ); } } return(targetList); } function toString() { return(String((_sID() + ":") + _sImage)); } function evalDelay(scope) { var d = _oElements.delay; if (d instanceof Function) { d = d.apply(((_oElements.delayscope != undefined) ? (_oElements.delayscope) : (scope))); } if (typeof(d) == "string") { d = parseClock(String(d)); } if (_global.isNaN(Number(d)) == true) { return(0); } return(Number(d)); } function startItem(targs, scope, duration, easing) { _ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine; var fuse = _global.com.mosesSupposes.fuse.Fuse; var outputLevel = ((fuse != undefined) ? (fuse.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL)); if (_oElements.command != null) { var cs = (_oElements.scope || (scope)); var command = ((_oElements.command instanceof Function) ? (String(_oElements.command.apply(cs))) : (String(_oElements.command))); var args = ((_oElements.args instanceof Function) ? (_oElements.args.apply(cs)) : (_oElements.args)); var valid = com.mosesSupposes.fuse.FuseKitCommon._validateFuseCommand(command, _aProfiles.length > 0, (args != null) && (!((args instanceof Array) && (args.length == 0))), outputLevel, false); if (valid == true) { _nPlaying = 1; if (!(args instanceof Array)) { args = ((args == null) ? ([]) : ([args])); } dispatchRequest(String(command), args); } if ((valid == false) || (command == "setStartProps")) { complete(); } return(null); } if (_aTweens.length > 0) { stop(); } _ZigoEngine.addListener(this); _nPlaying = 2; var propsAdded = null; if (_aProfiles.length > 0) { if (_ZigoEngine == undefined) { com.mosesSupposes.fuse.FuseKitCommon.error("112"); } else { propsAdded = doTweens(targs, scope, duration, easing, false, false); } } _nPlaying = 1; var fa = _oElements.aEvents; for (var i in fa) { if (((propsAdded == null) && (_aTweens.length > 0)) && (fa[i].skipLevel == 2)) { continue; } fireEvents(fa[i], scope, outputLevel, targs); } if (((propsAdded == null) && (_aTweens.length <= 0)) && (_nPlaying == 1)) { if (outputLevel == 3) { com.mosesSupposes.fuse.FuseKitCommon.output(((_sID() + " no tweens added - item done. [getTimer()=") + getTimer()) + "]"); } complete(); } return(propsAdded); } function stop() { var doOnStop = (_nPlaying > -1); _nPlaying = -1; if (doOnStop == true) { onStop(); } _ZigoEngine.removeListener(this); } static function removeInstance(id) { com.mosesSupposes.fuse.FuseItem(_aInstances[id]).destroy(); delete _aInstances[id]; } function onStop() { _bStartSet = false; for (var i in _aTweens) { var to = _aTweens[i]; to.targ.removeListener(this); _ZigoEngine.removeTween(to.targ, to.props); delete _aTweens[i]; } delete _aTweens; _bTrigger = false; } function evtSetStart(o) { if ((_sImage.indexOf("StartProps:") == -1) || (o.curIndex == _nItemID)) { return(undefined); } if (o.all != true) { var match = false; for (var i in o.filter) { if ((Number(o.filter[i]) == _nItemID) || (String(o.filter[i]) == _oElements.label)) { match = true; } } if (match == false) { return(undefined); } } _nPlaying = 2; doTweens(o.targs, o.scope, null, null, true, false); _nPlaying = -1; _bStartSet = true; } function pause(resume) { if (_nPlaying == -1) { return(undefined); } _nPlaying = ((resume == true) ? 1 : 0); for (var i in _aTweens) { var o = _aTweens[i]; var t = o.targ; var p = o.props; if (resume == true) { var missing = []; var oldTL = _aTweens.length; for (var j in p) { if (_ZigoEngine.isTweenPaused(t, p[j]) == false) { missing.push(p[j]); } } if (missing.length > 0) { onTweenEnd({__zigoID__:o.targZID, props:missing, isResume:true}); } if (_aTweens.length == oldTL) { t.addListener(this); _ZigoEngine.unpauseTween(t, o.props); } } else { t.removeListener(this); _ZigoEngine.pauseTween(t, o.props); } } if ((resume == true) && (_aTweens.length <= 0)) { complete(); } else if (resume == true) { _ZigoEngine.addListener(this); } else { _ZigoEngine.removeListener(this); } } function fastForward(ignore, targs, scope) { if (_nPlaying == 1) { for (var i in _aTweens) { var o = _aTweens[i]; var t = o.targ; t.removeListener(this); _ZigoEngine.ffTween(t, o.props, true); } return(undefined); } if (_nPlaying == 2) { com.mosesSupposes.fuse.FuseKitCommon.error("125", _nItemID); } _nPlaying = 2; doTweens(targs, scope, null, null, false, true); stop(); } function destroy() { var doRemove = (_nPlaying > -1); _nPlaying = -1; for (var i in _aTweens) { var o = _aTweens[i]; o.targ.removeListener(this); if (doRemove == true) { _ZigoEngine.removeTween(o.targ, o.props); } delete _aTweens[i]; } for (var j in this) { delete this[j]; } } function dispatchRequest(type, args) { var f = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID); if ((!(args instanceof Array)) && (args != null)) { args = new Array(args); } Function(f[type]).apply(f, args); } function _sID() { var str; if (_nFuseID == -1) { str = "-One-off tween "; } else { str = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID).getHandle(); } str = str + (">Item #" + String(_nItemID)); if (_oElements.label != undefined) { str = str + ((" \"" + _oElements.label) + "\""); } return(str); } function parseProfile(obj, aap) { var i; var j; var k; if (obj.__buildMode == true) { if (obj.command != undefined) { if (obj.command == "delay") { _oElements.delay = obj.commandargs; } else if (obj.command == "trigger") { if (_oTemps.bTriggerFound == false) { _oTemps.bTriggerFound = true; return({trigger:obj.commandargs, _doTimer:true}); } if (_oTemps.outputLevel > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("124", _sID(), obj.commandargs); } } else { _oElements.command = obj.command; _oElements.args = obj.commandargs; } } if (obj.func != undefined) { _oTemps.afl++; _oElements.aEvents.unshift({scope:obj.scope, func:obj.func, args:obj.args}); } if (obj.tweenargs != undefined) { _oTemps.sImgB = _oTemps.sImgB + (obj.tweenargs[1].toString() + ","); return(obj); } return(null); } var oPr = {delay:((aap.delay != undefined) ? (aap.delay) : (obj.delay)), ease:obj.ease, seconds:obj.seconds, event:obj.event, eventparams:obj.eventparams, skipLevel:((((typeof(obj.skipLevel) == "number") && (obj.skipLevel >= 0)) && (obj.skipLevel <= 2)) ? (obj.skipLevel) : (_ZigoEngine.SKIP_LEVEL)), roundResults:obj.roundResults, oSP:{}, oEP:{}, oAFV:{}}; var trigger = ((aap.trigger != undefined) ? (aap.trigger) : (obj.trigger)); if (trigger != undefined) { if (_oTemps.bTriggerFound == false) { oPr.trigger = trigger; _oTemps.bTriggerFound = true; } else if (_oTemps.outputLevel > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("124", _sID(), trigger); } } if (oPr.delay == undefined) { oPr.delay = obj.startAt; } if (oPr.ease == undefined) { oPr.ease = obj.easing; } if (oPr.seconds == undefined) { oPr.seconds = ((obj.duration != undefined) ? (obj.duration) : (obj.time)); } if (aap.target != undefined) { oPr.target = ((aap.target instanceof Array) ? (aap.target) : ([aap.target])); } else if (obj.target != undefined) { oPr.target = ((obj.target instanceof Array) ? (obj.target) : ([obj.target])); } if (obj.addTarget != undefined) { oPr.addTarget = ((obj.addTarget instanceof Array) ? (obj.addTarget) : ([obj.addTarget])); } if (aap.addTarget != undefined) { if (oPr.addTarget == undefined) { oPr.addTarget = ((aap.addTarget instanceof Array) ? (aap.addTarget) : ([aap.addTarget])); } else { oPr.addTarget = ((oPr.addTarget instanceof Array) ? (oPr.addTarget.concat(aap.addTarget)) : (new Array(oPr.addTarget).concat(aap.addTarget))); } } var bTwFlag = false; for (j in obj) { var v = obj[j]; if (_oTemps.cbProps.indexOf(("|" + j) + "|") > -1) { if (j != "skipLevel") { oPr[j] = v; } continue; } if (_oTemps.fuseProps.indexOf(("|" + j) + "|") > -1) { if (((j == "command") && (_oTemps.nActions > 1)) && (_oTemps.outputLevel > 0)) { com.mosesSupposes.fuse.FuseKitCommon.error("109", String(v), true); } continue; } if (typeof(v) == "object") { var copy = ((v instanceof Array) ? ([]) : ({})); for (k in v) { copy[k] = v[k]; } v = copy; } var se; var seCP; if (j.indexOf("start_") == 0) { if (((j == "start_controlX") || (j == "start_controlY")) || (j.indexOf("_bezier_") > -1)) { if (_oTemps.outputLevel > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("110", _sID(), j); } continue; } j = j.slice(6); se = oPr.oSP; } else { se = oPr.oEP; } if ((ADD_UNDERSCORES == true) && (_oTemps.sUP.indexOf(("|_" + j) + "|") > -1)) { j = "_" + j; } if (_oTemps.sCT.indexOf(("|" + j) + "|") > -1) { var addPct = ((j == "_tintPercent") && (se.colorProp.p == "_tint")); var addTint = ((j == "_tint") && (se.colorProp.p == "_tintPercent")); if (((se.colorProp == undefined) || (addPct == true)) || (addTint == true)) { if (addPct == true) { se.colorProp = {p:"_tint", v:{tint:se.colorProp.v, percent:v}}; } else if (addTint == true) { se.colorProp = {p:"_tint", v:{tint:v, percent:se.colorProp.v}}; } else { se.colorProp = {p:j, v:v}; } bTwFlag = true; } else if (_oTemps.outputLevel > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), j); } } else if (v != null) { se[j] = v; bTwFlag = true; } } if ((bTwFlag == false) && ((oPr.trigger != undefined) || (((oPr.delay != undefined) || (oPr.seconds != undefined)) && (((oPr.startfunc != undefined) || (oPr.updfunc != undefined)) || ((oPr.func != undefined) && (_oTemps.nActions > 1)))))) { if (_ZigoEngine == undefined) { com.mosesSupposes.fuse.FuseKitCommon.error("116"); } else { if (oPr.func != undefined) { _oTemps.afl++; } if (oPr.event != undefined) { _oTemps.ael++; } oPr._doTimer = true; if (oPr.delay != undefined) { _oTemps.twDelayFlag = true; } return(oPr); } } if (bTwFlag == true) { var bEC = (oPr.oEP.colorProp != undefined); var l = 0; while (l < 2) { var se = ((l == 0) ? (oPr.oSP) : (oPr.oEP)); var str = ((l == 0) ? (_oTemps.sImgS) : (_oTemps.sImgE)); var sCP = se.colorProp.p; if (sCP != undefined) { se[sCP] = se.colorProp.v; delete se.colorProp; } if (((se._xscale != undefined) || (se._scale != undefined)) && ((se._width != undefined) || (se._size != undefined))) { var discard = ((se._xscale != undefined) ? "_xscale" : "_scale"); delete se[discard]; if (_oTemps.outputLevel > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), discard); } } if (((se._yscale != undefined) || (se._scale != undefined)) && ((se._height != undefined) || (se._size != undefined))) { var discard = ((se._yscale != undefined) ? "_yscale" : "_scale"); delete se[discard]; if (_oTemps.outputLevel > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), discard); } } if ((se._fade != undefined) && (se._alpha != undefined)) { delete se._alpha; if (_oTemps.outputLevel > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), "_alpha"); } } for (j in se) { if (str.indexOf(j + ", ") == -1) { str = str + (j + ", "); } if (se == oPr.oSP) { if ((oPr.oEP[j] == undefined) && (!((j == sCP) && (bEC == true)))) { oPr.oAFV[j] = true; oPr.oEP[j] = []; } } } ((l == 0) ? ((_oTemps.sImgS = str)) : ((_oTemps.sImgE = str))); l++; } return(oPr); } if ((oPr.delay != undefined) && (_oTemps.nActions == 1)) { _oElements.delay = oPr.delay; _oElements.delayscope = oPr.scope; } if (oPr.event != undefined) { _oTemps.ael++; _oElements.aEvents.unshift({scope:oPr.scope, e:oPr.event, ep:oPr.eventparams, skipLevel:oPr.skipLevel}); } var oldL = _oElements.aEvents.length; if (oPr.func != undefined) { _oElements.aEvents.push({func:oPr.func, scope:oPr.scope, args:oPr.args, skipLevel:oPr.skipLevel}); } _oTemps.afl = _oTemps.afl + (_oElements.aEvents.length - oldL); delete oPr; return(undefined); } function doTweens(targs, defaultScope, defaultSeconds, defaultEase, setStart, isFF) { if (_aTweens == null) { _aTweens = []; } var tba = ((_oTwBeingAdded = {})); var ZE = _ZigoEngine; var addTween = function (target, props, endvals, seconds, ease, delay, callback) { if (target.__zigoID__ == null) { ZE.initializeTargets(target); } tba[target.__zigoID__] = true; var sProps = ZE.doTween.apply(ZE, arguments); tba[target.__zigoID__] = false; return(((sProps == null) ? ([]) : (sProps.split(",")))); }; var fuse = _global.com.mosesSupposes.fuse.Fuse; var outputLevel = ((fuse != undefined) ? (fuse.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL)); var propsAdded = ""; var nTgErrors = 0; var i; var j; var k; var doSetStarts = ((_bStartSet != true) && ((setStart == true) || (_sImage.indexOf("StartProps:") > -1))); var h = 0; while (h < _aProfiles.length) { if (_nPlaying < 2) { return(null); } var pr = _aProfiles[h]; if (pr.__buildMode == true) { var twArgs = _aProfiles[h].tweenargs; var prevPropsAdded = propsAdded; if ((twArgs[6].cycles === 0) || (twArgs[6].cycles.toUpperCase() == "LOOP")) { delete twArgs[6].cycles; if (outputLevel > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("117", _sID()); } } var cb = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(twArgs[6]); if (!(twArgs[0] instanceof Array)) { twArgs[0] = [twArgs[0]]; } for (i in twArgs[0]) { if (isFF == true) { addTween(twArgs[0][i], twArgs[1], twArgs[2], 0, null, 0, {skipLevel:0}); if (outputLevel == 3) { com.mosesSupposes.fuse.FuseKitCommon.output(((((("\n-" + _sID()) + " FF(simple syntax)\ttargets:[") + twArgs[0][i]) + "]\tprops:[") + twArgs[1]) + "]"); } } else { var aProps = addTween(twArgs[0][i], twArgs[1], twArgs[2], twArgs[3], twArgs[4], twArgs[5], cb); if (aProps.length > 0) { _aTweens.push({targ:twArgs[0][i], props:aProps, targZID:twArgs[0][i].__zigoID__}); twArgs[0][i].addListener(this); for (j in aProps) { if (propsAdded.indexOf(aProps[j] + ",") == -1) { propsAdded = propsAdded + (aProps[j] + ","); } } } if (outputLevel == 3) { com.mosesSupposes.fuse.FuseKitCommon.output(((((("\n-" + _sID()) + " TWEEN(simple syntax)\ttargets:[") + twArgs[0][i]) + "]\tprops tweened:[") + aProps.toString()) + "]"); } } } if ((isFF == false) && ((prevPropsAdded == propsAdded) || (propsAdded == ""))) { nTgErrors++; } } else { var scope = defaultScope; var targets = []; var aBase = ((pr.target == undefined) ? (targs) : (pr.target)); var aTemp = []; var bTgError = false; for (i in aBase) { var v = aBase[i]; aTemp = aTemp.concat(((v instanceof Function) ? (v.apply(scope)) : (v))); } for (i in pr.addTarget) { var v = pr.addTarget[i]; aTemp = aTemp.concat(((v instanceof Function) ? (v.apply(scope)) : (v))); } for (i in aTemp) { var v = aTemp[i]; if (v != null) { var exists = false; for (j in targets) { if (targets[j] == v) { exists = true; break; } } if (exists == false) { targets.unshift(v); } } else { bTgError = true; } } var doTimer = (((pr._doTimer == true) && (targets.length == 0)) && (isFF == false)); if ((bTgError == true) || ((targets.length == 0) && (pr._doTimer != true))) { nTgErrors++; } if (doSetStarts == true) { for (i in targets) { if (_nPlaying < 2) { return(null); } var targ = targets[i]; var aSP = []; var aSV = []; if (setStart == true) { for (var q in pr.oEP) { _global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(targ, q, true); } } for (var p in pr.oSP) { var v = pr.oSP[p]; if (v instanceof Function) { v = v.apply(scope); } if ((v === true) || (v === false)) { targ[p] = v; if (pr.oAFV[p] == true) { for (k in pr.oEP[p]) { if (pr.oEP[p][k].targ == targ) { pr.oEP[p].splice(Number(k), 1); } } pr.oEP[p].push({targ:targ, val:"IGNORE", _isAF:true}); } continue; } if (((pr.oAFV[p] == true) && (!((p == "_colorReset") && (v == 100)))) && (!((p == "_tintPercent") && (v == 0)))) { var afv; if ((p == "_tint") || (p == "_colorTransform")) { afv = _ZigoEngine.getColorTransObj(); } else if ((String(com.mosesSupposes.fuse.FuseKitCommon._resetTo100()).indexOf(("|" + p) + "|") > -1) || ((p == "_fade") && (v < 50))) { afv = 100; } else if ((String(com.mosesSupposes.fuse.FuseKitCommon._resetTo0()).indexOf(("|" + p) + "|") > -1) || (p == "_fade")) { afv = 0; } else { var fmpVal = _global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(targ, p, true); if (fmpVal != null) { afv = fmpVal; } else { afv = ((_global.isNaN(targ[p]) == false) ? targ[p] : 0); } } for (k in pr.oEP[p]) { if (pr.oEP[p][k].targ == targ) { pr.oEP[p].splice(Number(k), 1); } } pr.oEP[p].push({targ:targ, val:afv, _isAF:true}); } if (typeof(v) == "object") { var copy = ((v instanceof Array) ? ([]) : ({})); for (k in v) { copy[k] = ((v[k] instanceof Function) ? Function(v[k]).apply(scope) : v[k]); } v = copy; } aSP.push(p); aSV.push(v); } if (aSV.length > 0) { if (outputLevel == 3) { com.mosesSupposes.fuse.FuseKitCommon.output((((_sID() + " ") + targ) + " SET STARTS: ") + [("[" + aSP) + "]", ("[" + aSV) + "]"]); } addTween(targ, aSP, aSV, 0); } } } if (setStart == true) { } else { var event; var skipLevel; var oSimpleCB; var oCB; var triggerTrue; var triggerTime; var cbstr = ""; if (isFF == false) { if (pr.scope != undefined) { scope = pr.scope; } skipLevel = ((pr.skipLevel instanceof Function) ? (pr.skipLevel.apply(scope)) : (pr.skipLevel)); var extra1 = ((pr.extra1 instanceof Function) ? (pr.extra1.apply(scope)) : (pr.extra1)); var extra2 = ((pr.extra2 instanceof Function) ? (pr.extra2.apply(scope)) : (pr.extra2)); var roundResults = ((pr.roundResults instanceof Function) ? (pr.roundResults.apply(scope)) : (pr.roundResults)); oSimpleCB = {skipLevel:skipLevel, extra1:extra1, extra2:extra2, roundResults:roundResults}; oCB = {skipLevel:skipLevel, extra1:extra1, extra2:extra2, roundResults:roundResults}; if (pr.cycles != undefined) { var cycles = ((pr.cycles instanceof Function) ? (pr.cycles.apply(scope)) : (pr.cycles)); if (((Number(cycles) == 0) || (String(cycles).toUpperCase() == "LOOP")) && (fuse != undefined)) { delete pr.cycles; if (outputLevel > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("117", _sID()); } } else { oSimpleCB.cycles = (oCB.cycles = cycles); } } if (((pr.func != undefined) || (pr.startfunc != undefined)) || (pr.updfunc != undefined)) { for (i in pr) { if (i.indexOf("func") > -1) { oCB[i] = pr[i]; } else if (((i == "startscope") || (i == "updscope")) || (i.indexOf("args") > -1)) { oCB[i] = pr[i]; } } if (scope != undefined) { if ((oCB.func != undefined) && (oCB.scope == undefined)) { oCB.scope = scope; } if ((oCB.updfunc != undefined) && (oCB.updscope == undefined)) { oCB.updscope = scope; } if ((oCB.startfunc != undefined) && (oCB.startscope == undefined)) { oCB.startscope = scope; } } } for (j in oCB) { cbstr = cbstr + (((j + ":") + oCB[j]) + "|"); } if (pr.event != undefined) { event = {scope:pr.scope, e:pr.event, ep:pr.eventparams, skipLevel:skipLevel}; } triggerTrue = pr.trigger === true; triggerTime = undefined; if ((triggerTrue == false) && (pr.trigger != undefined)) { triggerTime = ((pr.trigger instanceof Function) ? (pr.trigger.apply(scope)) : (pr.trigger)); if (typeof(triggerTime) == "string") { triggerTime = ((String(triggerTime).charAt(0) == "-") ? (-parseClock(String(triggerTime).slice(1))) : (parseClock(String(triggerTime)))); } if (_global.isNaN(triggerTime) == true) { triggerTime = undefined; } } } var delay; var seconds; var ease; var booleans; var tweenSuccess = false; var targsOrProxy = ((doTimer == false) ? (targets) : ([0])); var nBezError = -1; for (i in targsOrProxy) { if (_nPlaying < 2) { return(null); } if (isFF == false) { if (pr.ease != null) { ease = pr.ease; if (ease instanceof Function) { var ef = Function(ease); if (typeof(ef(1, 1, 1, 1)) != "number") { ease = ef.apply(scope); } } } if (ease == null) { ease = defaultEase; } seconds = ((pr.seconds instanceof Function) ? (pr.seconds.apply(scope)) : (pr.seconds)); if (seconds != undefined) { if (typeof(seconds) == "string") { seconds = parseClock(String(seconds)); } if (_global.isNaN(seconds) == true) { seconds = _ZigoEngine.DURATION || 0; } } if (seconds == null) { seconds = defaultSeconds; } delay = ((pr.delay instanceof Function) ? (pr.delay.apply(scope)) : (pr.delay)); if (typeof(delay) == "string") { delay = parseClock(String(delay)); } if ((delay == null) || (_global.isNaN(delay) == true)) { delay = 0; } if (doTimer == true) { continue; } } var targ = targsOrProxy[i]; var aEP = []; var aEV = []; var numBools = 0; var bezIndex = -2; for (var p in pr.oEP) { var v = pr.oEP[p]; if (v instanceof Function) { v = v.apply(scope); } if ((v === true) || (v === false)) { if (booleans == undefined) { booleans = {}; } booleans[p] = v; numBools++; continue; } if (typeof(v) == "object") { if (v[0]._isAF == true) { for (k in v) { if (v[k].targ == targ) { v = v[k].val; break; } } } else { var copy = ((v instanceof Array) ? [] : {}); for (k in v) { copy[k] = ((v[k] instanceof Function) ? Function(v[k]).apply(scope) : v[k]); } v = copy; } } if (v != "IGNORE") { if (p == "_bezier_") { bezIndex = aEP.length; } else if ((bezIndex == -2) && ((p == "controlX") || (p == "controlY"))) { bezIndex = -1; } aEP.push(p); aEV.push(v); } } if (aEV.length > 0) { if (bezIndex > -2) { if (bezIndex == -1) { bezIndex = aEP.length; } aEP[bezIndex] = "_bezier_"; if (typeof(aEV[bezIndex]) != "object") { aEV[bezIndex] = {}; } var bezObj = aEV[bezIndex]; for (j in aEP) { if ("|x|y|_x|_y|controlX|controlY|".indexOf(("|" + aEP[j]) + "|") > -1) { if (aEP[j].charAt(0) == "_") { aEP[j] = aEP[j].slice(-1); } if (typeof(bezObj[aEP[j]]) == "number") { if ((outputLevel > 0) && ((nBezError == -1) || (nBezError == i))) { com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), aEP[j]); nBezError = Number(i); } } else { bezObj[aEP[j]] = aEV[j]; } aEP.splice(Number(j), 1); aEV.splice(Number(j), 1); } } } if (isFF == true) { if (outputLevel == 3) { com.mosesSupposes.fuse.FuseKitCommon.output(((((("\n-" + _sID()) + " FF\ttargets:[") + targ) + "]\tprops:[") + aEP.toString()) + "]"); } addTween(targ, aEP, aEV, 0, null, 0, {skipLevel:0}); continue; } var listener = {caught:false, onTweenEnd:function (evto) { this.caught = true; }}; targ.addListener(listener); var aProps = addTween(targ, aEP, aEV, seconds, ease, delay, oCB); targ.removeListener(listener); if (aProps.length == 0) { if (listener.caught == true) { oCB = oSimpleCB; } } else { if (aProps.length > 0) { var to = {targ:targ, props:aProps, bools:booleans, targZID:targ.__zigoID__}; if (tweenSuccess == false) { oCB = oSimpleCB; to.event = event; event = (booleans = undefined); to.trigger = triggerTrue; } _aTweens.push(to); targ.addListener(this); tweenSuccess = true; for (j in aProps) { if (propsAdded.indexOf(aProps[j] + ",") == -1) { propsAdded = propsAdded + (aProps[j] + ","); } } } if (outputLevel == 3) { var epstr = aEP.toString(); if (aProps.length > aEP.length) { epstr = epstr + (("\n\t[NO-CHANGE PROPS DISCARDED (disregard this for double props like _scale). KEPT:" + aProps.toString()) + "]"); } var evstr = ""; for (j in aEV) { evstr = (((typeof(aEV[j]) == "string") ? (("\"" + aEV[j]) + "\"") : aEV[j]) + ", ") + evstr; } com.mosesSupposes.fuse.FuseKitCommon.output((("\n-" + _sID()) + " TWEEN:\n") + [("\t[getTimer():" + getTimer()) + "] ", "targ: " + targ, "props: " + epstr, "endVals: " + evstr, "time: " + ((seconds == undefined) ? _ZigoEngine.DURATION : seconds), "easing: " + ((ease == undefined) ? _ZigoEngine.EASING : ease), "delay: " + ((delay == undefined) ? 0 : delay), "callbacks: " + ((cbstr == "") ? "(none)" : cbstr)].join("\n\t")); } } listener = undefined; } } if ((_global.isNaN(seconds) == true) || (pr.seconds == null)) { seconds = 0; } var time = (delay + seconds); if (triggerTime != undefined) { if (triggerTime < 0) { triggerTime = triggerTime + time; } if ((triggerTime > 0) && ((time == 0) || (triggerTime < time))) { if (time == 0) { if (outputLevel == 3) { com.mosesSupposes.fuse.FuseKitCommon.output(((((((((_sID() + " graft a timed trigger (") + triggerTime) + " sec). [has callback:") + (oCB != oSimpleCB)) + ", has event:") + (event != undefined)) + ", has booleans:") + (booleans != undefined)) + "]"); } doTimerTween(null, triggerTime, 0, true, booleans, oCB, event); tweenSuccess = true; } else { if (outputLevel == 3) { com.mosesSupposes.fuse.FuseKitCommon.output(((_sID() + " graft a timed trigger (") + triggerTime) + " sec)."); } doTimerTween(null, triggerTime, 0, true); } } else if (outputLevel == 3) { com.mosesSupposes.fuse.FuseKitCommon.output(((((_sID() + " timed trigger discarded: out of range. [") + triggerTime) + "/") + time) + "]"); } } if ((tweenSuccess == false) && (((oCB != oSimpleCB) || (event != undefined)) || (booleans != undefined))) { if ((skipLevel == 0) && (time > 0)) { if (outputLevel == 3) { com.mosesSupposes.fuse.FuseKitCommon.output(((((((((_sID() + " no props tweened - graft a delay (") + time) + " sec). [has callback:") + (oCB != oSimpleCB)) + ", has event:") + (event != undefined)) + ", has booleans:") + (booleans != undefined)) + "]"); } doTimerTween(targets, seconds, delay, triggerTrue, booleans, oCB, event); } else { if (outputLevel == 3) { com.mosesSupposes.fuse.FuseKitCommon.output(((((((_sID() + " no props tweened, executing nontween items. [has callback:") + (oCB != oSimpleCB)) + ", has event:") + (event != undefined)) + ", has booleans:") + (booleans != undefined)) + "]"); } for (i in targets) { for (j in booleans) { targets[i][j] = booleans[j]; } } if (skipLevel < 2) { if (oCB != undefined) { fireEvents(oCB, scope, outputLevel, targets); } if (event != undefined) { fireEvents(event, scope, outputLevel); } } } } } } h++; } if ((nTgErrors > 0) && (outputLevel > 0)) { if ((nTgErrors == _aProfiles.length) && (propsAdded == "")) { com.mosesSupposes.fuse.FuseKitCommon.error("118", _sID(), setStart); } else { com.mosesSupposes.fuse.FuseKitCommon.error("119", _sID(), nTgErrors, doSetStarts); } } tba = undefined; _oTwBeingAdded = undefined; return(((propsAdded == "") ? null : (propsAdded.slice(0, -1)))); } function doTimerTween(actualTargets, duration, delay, trigger, booleans, callback, event) { var proxy = {__TweenedDelay:0}; _ZigoEngine.initializeTargets(proxy); _aTweens.push({targ:proxy, props:["__TweenedDelay"], trigger:trigger, bools:booleans, event:event, actualTargs:actualTargets, targZID:proxy.__zigoID__}); var canceled = (_ZigoEngine.doTween(proxy, "__TweenedDelay", 1, duration, null, delay, callback) == null); if (canceled == true) { onTweenEnd({target:proxy, props:["__TweenedDelay"]}); } else { proxy.addListener(this); } } function onTweenEnd(o, doAutoStop) { if (_nPlaying < 1) { return(undefined); } var fuse = _global.com.mosesSupposes.fuse.Fuse; var outputLevel = ((fuse != undefined) ? (fuse.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL)); var id = ((!(o.__zigoID__ === undefined)) ? (o.__zigoID__) : (o.target.__zigoID__)); for (var i in _aTweens) { var to = _aTweens[i]; if (to.targZID == id) { for (var j in o.props) { var pa = to.props; for (var k in pa) { var p = pa[k]; if (p == o.props[j]) { pa.splice(Number(k), 1); if (doAutoStop == true) { var inst = fuse.getInstance(_nFuseID); var interruptedByLocalFuse = ((((_bTrigger == true) && (o.during == "add")) && (inst[inst.currentIndex]._oTwBeingAdded[id] === true)) && (inst.state == "playing")); if (interruptedByLocalFuse == false) { to.targ.removeListener(this); for (i in _aTweens) { if (_aTweens[i].targZID == id) { for (j in o.props) { for (k in _aTweens[i].props) { if (_aTweens[i].props[k] == o.props[j]) { _aTweens[i].props.splice(Number(k), 1); } } } if (_aTweens[i].props.length == 0) { _aTweens.splice(Number(i), 1); } } } if (outputLevel == 3) { com.mosesSupposes.fuse.FuseKitCommon.output(_sID() + " triggering auto-stop due to interruption"); } if ((inst.autoClear == true) || ((!(inst.autoClear === false)) && (fuse.AUTOCLEAR == true))) { dispatchRequest("destroy"); } else { dispatchRequest("stop"); } return(undefined); } if (outputLevel == 3) { com.mosesSupposes.fuse.FuseKitCommon.output(((("note -" + _sID()) + " interrupted one of its own properties \"") + p) + "\". (Autostop not triggered.)"); } } if ((_nPlaying == 2) && (p != "__TweenedDelay")) { if (outputLevel > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("120", _sID(), p); } } if (pa.length == 0) { if (to.event != undefined) { fireEvents(to.event, null, outputLevel); } if (p == "__TweenedDelay") { _ZigoEngine.deinitializeTargets(to.targ); delete to.targ; for (var m in to.bools) { for (var t in to.actualTargs) { to.actualTargs[t][m] = to.bools[m]; } } } else { var found = false; for (var m in to.bools) { to.targ[m] = to.bools[m]; } for (var l in _aTweens) { if ((l != i) && (_aTweens[l].targ == to.targ)) { found = true; } } if (found == false) { to.targ.removeListener(this); } } if (to.trigger == true) { if (((_bTrigger == false) && (o.isResume != true)) && (_aTweens.length > 1)) { _bTrigger = true; if (outputLevel == 3) { com.mosesSupposes.fuse.FuseKitCommon.output(_sID() + " trigger fired!"); } var breakChainInt; breakChainInt = setInterval(function (fi) { clearInterval(breakChainInt); fi.dispatchRequest("advance", [false, false, false]); }, 1, this); } } _aTweens.splice(Number(i), 1); } } } } } } if (((_aTweens.length == 0) && (_nPlaying == 1)) && (o.isResume != true)) { complete(outputLevel); } } function onTweenInterrupt(o) { if (_nPlaying == -1) { return(undefined); } var fuse = _global.com.mosesSupposes.fuse.Fuse; var parentfuse = fuse.getInstance(_nFuseID); var autoStop = ((parentfuse.autoStop == true) || ((!(parentfuse.autoStop === false)) && (fuse.AUTOSTOP == true))); var id = o.__zigoID__; var outputLevel = ((fuse != undefined) ? (fuse.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL)); if ((autoStop == true) || ((!(autoStop === false)) && (fuse.AUTOSTOP == true))) { onTweenEnd(o, true); return(undefined); } if (typeof(o.target) != "string") { onTweenEnd(o); return(undefined); } for (var i in _aTweens) { if (_aTweens[i].targZID == id) { _aTweens.splice(Number(i), 1); } } if ((_aTweens.length == 0) && (_nPlaying == 1)) { complete(outputLevel); } } function complete(outputLevel) { if (outputLevel == 3) { com.mosesSupposes.fuse.FuseKitCommon.output(_sID() + " complete."); } var breakChainInt; breakChainInt = setInterval(function (fi, trigger) { clearInterval(breakChainInt); var itemstate = fi._nPlaying; if (trigger != true) { if (itemstate < 1) { return(undefined); } } fi.stop(); if (itemstate > 0) { fi.dispatchRequest("advance", [trigger, false, false]); } }, 1, this, _bTrigger); } function parseClock(str) { if (str.indexOf(":") != 2) { com.mosesSupposes.fuse.FuseKitCommon.error("121"); return(_ZigoEngine.DURATION || 0); } var time = 0; var spl = str.split(":"); spl.reverse(); var t; if ((String(spl[0]).length == 2) && (_global.isNaN((t = Math.abs(Number(spl[0])))) == false)) { time = time + (t / 100); } if (((String(spl[1]).length == 2) && (_global.isNaN((t = Math.abs(Number(spl[1])))) == false)) && (t < 60)) { time = time + t; } if (((String(spl[2]).length == 2) && (_global.isNaN((t = Math.abs(Number(spl[2])))) == false)) && (t < 60)) { time = time + (t * 60); } if (((String(spl[3]).length == 2) && (_global.isNaN((t = Math.abs(Number(spl[3])))) == false)) && (t < 24)) { time = time + (t * 3600); } return(time); } function fireEvents(o, scope, outputLevel, targets) { if (o.scope == undefined) { o.scope = scope; } if (o.e == undefined) { var callback = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(o, targets, outputLevel, false); if (callback.start.f != null) { callback.start.f.apply(callback.start.s, callback.start.a); } if (callback.upd.f != null) { callback.upd.f.apply(callback.upd.s, callback.upd.a); } if (callback.end.f != null) { callback.end.f.apply(callback.end.s, callback.end.a); } } else { var type = ((o.e instanceof Function) ? (String(o.e.apply(scope))) : (String(o.e))); if ((type != "undefined") && (type.length > 0)) { if (String(com.mosesSupposes.fuse.FuseKitCommon._fuseEvents()).indexOf(("|" + type) + "|") > -1) { if (outputLevel > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("122", type); } } else { var fuse = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID); var evObj = ((o.ep instanceof Function) ? (o.ep.apply(scope)) : (o.ep)); if ((evObj == null) || (typeof(evObj) != "object")) { evObj = {}; } evObj.target = fuse; evObj.type = type; fuse.dispatchEvent.call(fuse, evObj); } } else if (outputLevel > 0) { com.mosesSupposes.fuse.FuseKitCommon.error("123", _sID()); } } } static var registryKey = "fuseItem"; static var ADD_UNDERSCORES = true; var _nPlaying = -1; var _bStartSet = false; var _bTrigger = false; }Symbol 358 MovieClip [__Packages.GameHelper] Frame 0class GameHelper { static var aGame_; function GameHelper () { } static function ShowStartTextAnimation(aText, nextFunc, animTime, charY) { if (animTime == undefined) { animTime = Game.StartTextAnimation_TIME; } var between_chars = 34; var char_x = ((Stage.width / 2) - ((aText.length * between_chars) / 2)); if (charY != undefined) { var char_y = charY; } else { var char_y = (Stage.height / 2); } var start_fall_dy_min = 100; var start_fall_dy_diff = 50; var fall_time = (animTime / 1000); var fade_time = ((animTime / 1000) * 0.2); var i = 0; while (i < aText.length) { var ch = aText.charAt(i); var d = aGame_.HotelMenu.getNextHighestDepth(); var mc = aGame_.HotelMenu.attachMovie("BeginTextSymbolAnim", "beginTextSymbolAnim" + d, d); mc._x = char_x; mc._y = char_y - (start_fall_dy_min + (Math.random() * start_fall_dy_diff)); mc.strValue = ch; mc.strValue2 = ch; mc.strValue3 = ch; MovieClip(mc.mcMasked).setMask(mc.textMask); var f = (new com.mosesSupposes.fuse.Fuse()); f.__set__target(mc); f.push({label:"appear", y:char_y, start_alpha:0, time:fall_time, ease:mx.transitions.easing.Elastic.easeOut}); f.push({_alpha:0, time:fade_time}); f.push({scope:aGame_, func:nextFunc, args:mc}); f.start(true); char_x = char_x + between_chars; i++; } } static function ShowStimulationText(str, nextFunc, startX, startY, dy_min, dy_diff, fall, fade) { var char_x = startX; if (startY == undefined) { var char_y = (Stage.height - 50); } else { var char_y = startY; } var between_chars = 10; if (dy_min == undefined) { var start_fall_dy_min = -10; } else { var start_fall_dy_min = dy_min; } if (dy_diff == undefined) { var start_fall_dy_diff = -20; } else { var start_fall_dy_diff = dy_diff; } if (fall == undefined) { var fall_time = 3; } else { var fall_time = fall; } if (fade == undefined) { var fade_time = 0.8; } else { var fade_time = fade; } var d = aGame_.HotelMenu.getNextHighestDepth(); var mc = aGame_.HotelMenu.attachMovie("StimulationTextAnim", "stimulationTextAnim_" + d, d); mc._y = char_y - start_fall_dy_min; mc.strValue = str; mc.strValue2 = str; MovieClip(mc.mcMasked).setMask(mc.textMask); mc._x = startX + (mc._width / 2); var f = (new com.mosesSupposes.fuse.Fuse()); f.__set__target(mc); f.push({label:"appear", y:startY, start_alpha:0, time:fall, trigger:1}); f.push({_alpha:0, time:fade}); f.push({scope:aGame_, func:nextFunc, args:mc}); f.start(true); } static function showTextUp(aText, nextFunc, startX, startY, dy_min, dy_diff, fall, fade) { var char_x = startX; if (startY == undefined) { var char_y = (Stage.height - 50); } else { var char_y = startY; } var between_chars = 10; if (dy_min == undefined) { var start_fall_dy_min = -10; } else { var start_fall_dy_min = dy_min; } if (dy_diff == undefined) { var start_fall_dy_diff = -20; } else { var start_fall_dy_diff = dy_diff; } if (fall == undefined) { var fall_time = 3; } else { var fall_time = fall; } if (fade == undefined) { var fade_time = 0.8; } else { var fade_time = fade; } var ch = aText; var d = aGame_.HotelMenu.getNextHighestDepth(); var mc = aGame_.HotelMenu.attachMovie("MoneyText", "MoneyText" + d, d); mc._x = char_x; mc._y = char_y - start_fall_dy_min; mc.strValue = ch; mc.strValue2 = ch; mc.strValue3 = ch; MovieClip(mc.mcMasked).setMask(mc.textMask); mc._x = char_x + (mc._width / 2); var f = (new com.mosesSupposes.fuse.Fuse()); f.__set__target(mc); f.push({label:"appear", y:char_y, start_alpha:0, time:fall_time, trigger:1}); f.push({_alpha:0, time:fade_time}); f.push({scope:aGame_, func:nextFunc, args:mc}); f.start(true); char_x = char_x + between_chars; } static function showMoneyUp(aText, nextFunc, startX, startY, dy_min, dy_diff, fall, fade) { var char_x = startX; if (startY == undefined) { var char_y = (Stage.height - 50); } else { var char_y = startY; } var between_chars = 10; if (dy_min == undefined) { var start_fall_dy_min = -10; } else { var start_fall_dy_min = dy_min; } if (dy_diff == undefined) { var start_fall_dy_diff = -20; } else { var start_fall_dy_diff = dy_diff; } if (fall == undefined) { var fall_time = 3; } else { var fall_time = fall; } if (fade == undefined) { var fade_time = 0.8; } else { var fade_time = fade; } var i = 0; while (i < aText.length) { var ch = aText.charAt(i); var d = aGame_.HotelMenu.getNextHighestDepth(); var mc = aGame_.HotelMenu.attachMovie("MoneyText", "MoneyText" + d, d); mc._x = char_x; mc._y = char_y - start_fall_dy_min; mc.strValue = ch; mc.strValue2 = ch; mc.strValue3 = ch; MovieClip(mc.mcMasked).setMask(mc.textMask); var f = (new com.mosesSupposes.fuse.Fuse()); f.__set__target(mc); f.push({label:"appear", y:char_y, start_alpha:0, time:fall_time, trigger:1}); f.push({_alpha:0, time:fade_time}); f.push({scope:aGame_, func:nextFunc, args:mc}); f.start(true); char_x = char_x + between_chars; i++; } } static function registerShopMenu(aGame) { aGame.shopMC = aGame.attachMovie("ShopSym", "aShop", aGame.getNextHighestDepth()); var menuDataArr = new Array(); var codeArr = new Array("0", "ShopMenu"); var alignGroups = new Array(); var dataBack = new Array(); var txtLblsArr = new Array(); var alignObjs = new Array(); var counter = txtLblsArr.length; var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(aGame.dictXML.firstChild.attributes.shop_BUY); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_BUY_FURN); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 80); optArr.push(statesArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); aBtnInfo.setOptArr(optArr); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(aGame.dictXML.firstChild.attributes.shop_PLAY); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_EXIT_SHOP); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 80); optArr.push(statesArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); aBtnInfo.setOptArr(optArr); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); var alignArray = new Array(); alignArray.push(alignObjs); alignArray.push(new flash.geom.Rectangle(350, 320, 120, 80)); alignArray.push(MenuBase.DISTRIB_CNTR_VERT); alignGroups.push(alignArray); codeArr.push(alignGroups); codeArr.push(MenuBase.WNDSTYLE_MODAL); dataBack.push(""); dataBack.push(new flash.geom.Point(Stage.width, Stage.height)); menuDataArr.push(codeArr); menuDataArr.push(dataBack); menuDataArr.push(txtLblsArr); MenuFactory.registerMenu(aGame, "ShopMenu", menuDataArr, new flash.geom.Point(0, 0), true); aGame.shopMC.create(aGame); } static function registerResumeMenu() { var menuDataArr = new Array(); var codeArr = new Array("0", "ResumeMenu"); var alignGroups = new Array(); var dataBack = new Array(); var txtLblsArr = new Array(); var alignLbls = new Array(); var alignArraylbl = new Array(); var alignObjs = new Array(); var counter = txtLblsArr.length; var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(aGame_.dictXML.firstChild.attributes.menu_RESUME); aBtnInfo.setHint(aGame_.dictXML.firstChild.attributes.hnt_RESUME); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_RESUME); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 120); optArr.push(statesArr); aBtnInfo.setOptArr(optArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(aGame_.dictXML.firstChild.attributes.menu_ABORT); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_ABORT); aBtnInfo.setHint(aGame_.dictXML.firstChild.attributes.hnt_ABORT); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 120); optArr.push(statesArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); aBtnInfo.setOptArr(optArr); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); if ((Helper.HASMOCHISCORES == true) || (Helper.SCORESTYPE == "SMILE")) { var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(aGame_.dictXML.firstChild.attributes.menu_PLAYER); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_MMENU_PLAYER); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 120); optArr.push(statesArr); aBtnInfo.setOptArr(optArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(aGame_.dictXML.firstChild.attributes.menu_STATISTIC); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_MMENU_STATISTIC); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 120); optArr.push(statesArr); aBtnInfo.setOptArr(optArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); } var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(aGame_.dictXML.firstChild.attributes.menu_GETIT); aBtnInfo.setHint(aGame_.dictXML.firstChild.attributes.hnt_GETIT); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_GET_IT); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 120); optArr.push(statesArr); aBtnInfo.setOptArr(optArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(aGame_.dictXML.firstChild.attributes.menu_OPTIONS); aBtnInfo.setHint(aGame_.dictXML.firstChild.attributes.hnt_OPTIONS); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_SOUND); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 120); optArr.push(statesArr); aBtnInfo.setOptArr(optArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); var alignArray = new Array(); alignArray.push(alignObjs); alignArray.push(new flash.geom.Rectangle(350, 210, 120, 180)); alignArray.push(MenuBase.DISTRIB_CNTR_VERT); alignGroups.push(alignArray); codeArr.push(alignGroups); codeArr.push(MenuBase.WNDSTYLE_MODAL); dataBack.push("back_menu"); dataBack.push(new flash.geom.Point(Stage.width, Stage.height)); menuDataArr.push(codeArr); menuDataArr.push(dataBack); menuDataArr.push(txtLblsArr); MenuFactory.registerMenu(aGame_, "resume_menu", menuDataArr, new flash.geom.Point(0, 0), true); Helper.musicPlay("music_menu"); } static function registerMainMenu() { if (Helper.SHOW_MOCHIADS == true) { Helper.musicPlay("music_menu"); } var menuDataArr = new Array(); var codeArr = new Array("0", "NewMenu"); var alignGroups = new Array(); var dataBack = new Array(); var txtLblsArr = new Array(); var alignLbls = new Array(); var alignArraylbl = new Array(); var alignObjs = new Array(); var counter = txtLblsArr.length; var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(aGame_.dictXML.firstChild.attributes.menu_START); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_HOTEL); aBtnInfo.setHint(aGame_.dictXML.firstChild.attributes.hnt_START); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 120); optArr.push(statesArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); aBtnInfo.setOptArr(optArr); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); if ((Helper.HASMOCHISCORES == true) || (Helper.SCORESTYPE == "SMILE")) { var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(aGame_.dictXML.firstChild.attributes.menu_PLAYER); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_MMENU_PLAYER); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 120); optArr.push(statesArr); aBtnInfo.setOptArr(optArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(aGame_.dictXML.firstChild.attributes.menu_STATISTIC); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_MMENU_STATISTIC); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 120); optArr.push(statesArr); aBtnInfo.setOptArr(optArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); } var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(aGame_.dictXML.firstChild.attributes.menu_GETIT); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_GET_IT); aBtnInfo.setHint(aGame_.dictXML.firstChild.attributes.hnt_GETIT); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 120); optArr.push(statesArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); aBtnInfo.setOptArr(optArr); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); if (Helper.KONKURS == true) { var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(aGame_.dictXML.firstChild.attributes.konkurs); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_KONKURS); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 120); optArr.push(statesArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); aBtnInfo.setOptArr(optArr); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); } var aBtnInfo = new BtnItemInfo(); aBtnInfo.addText(aGame_.dictXML.firstChild.attributes.menu_OPTIONS); aBtnInfo.setHint(aGame_.dictXML.firstChild.attributes.hnt_OPTIONS); aBtnInfo.setId((codeArr[MenuBase.SENCODE_NAME] + "_Item_") + txtLblsArr.length); aBtnInfo.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); aBtnInfo.setReturnCode(MenuBase.RCODE_SOUND); var optArr = new Array(); var statesArr = new Array(); statesArr.push("yellow", 120); optArr.push(statesArr); aBtnInfo.setOptArr(optArr); var descrArray = new Array(); descrArray.push(BtnFactory.CODE_AUTOFILL); optArr.push(descrArray); txtLblsArr.push(aBtnInfo); alignObjs.push(aBtnInfo); var alignArray = new Array(); alignArray.push(alignObjs); alignArray.push(new flash.geom.Rectangle(350, 230, 120, 170)); alignArray.push(MenuBase.DISTRIB_CNTR_VERT); alignGroups.push(alignArray); codeArr.push(alignGroups); codeArr.push(MenuBase.WNDSTYLE_MODAL); dataBack.push("back_menu"); dataBack.push(new flash.geom.Point(Stage.width, Stage.height)); menuDataArr.push(codeArr); menuDataArr.push(dataBack); menuDataArr.push(txtLblsArr); MenuFactory.registerMenu(aGame_, "NewMenu", menuDataArr, new flash.geom.Point(0, 0), true); if (Game.SMILEGAMERADS == true) { var CPMStarPoolID = 1378; var CPMStarSubPoolID = 1295; var adBox = aGame_.NewMenu.attachMovie("adBox", "adBox2", 1000); adBox._x = 0; adBox._y = Stage.height - adBox._height; adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID); } if (Game.TARGETSITE == "www.smileygamer.com") { aGame_.NewMenu.attachMovie("minilogo", "minilogo1", 1000); aGame_.NewMenu.minilogo1._x = (Stage.width / 2) - (aGame_.NewMenu.minilogo1._width / 2); aGame_.NewMenu.minilogo1._y = Stage.height - aGame_.NewMenu.minilogo1._height; aGame_.NewMenu.minilogo1.onRelease = function () { if (this._parent.enabled == true) { getURL ("http://www.smileygamer.com/?gameref=1295", "_blank"); } }; } } }Symbol 359 MovieClip [__Packages.IMenuItemDescriptor] Frame 0interface IMenuItemDescriptor { }Symbol 360 MovieClip [__Packages.BtnItemInfo] Frame 0class BtnItemInfo extends MovieClip implements IMenuItemDescriptor { var aHint, txtStyle_, Position_, mc_Id_, clsId_, linesArr_, ret_code_, optArr_; function BtnItemInfo () { super(); } function setHint(aVal) { aHint = aVal; } function getHint() { return(aHint); } function gettxtStyle() { return(txtStyle_); } function settxtStyle(aVal) { return((txtStyle_ = aVal)); } function SetPos(xp, yp) { Position_ = new flash.geom.Point(xp, yp); } function setId(mc_Id) { mc_Id_ = mc_Id; } function getid() { return(mc_Id_); } function setClsId(clsId) { Debugger.dTrace(["settingClsId:", clsId]); clsId_ = clsId; } function getClsId() { return(clsId_); } function addText(atext) { if (linesArr_ == undefined) { linesArr_ = new Array(); } linesArr_.push(atext); } function getLinesArr() { return(linesArr_); } function setReturnCode(retCode) { ret_code_ = retCode; } function getReturnCode() { return(ret_code_); } function getOptArr() { return(optArr_); } function setOptArr(theArr) { optArr_ = theArr; } }Symbol 361 MovieClip [__Packages.Debugger] Frame 0class Debugger { function Debugger () { } static function dTrace(adata) { var result_str = ""; var arg = 0; while (arg < adata.length) { result_str = result_str + adata[arg].toString(); arg++; } } static function sTrace(adata) { if (_root.sTrace == null) { var afield = _root.createTextField("sTrace", _root.getNextHighestDepth(), 100, 10); afield.setTextFormat(TextStyles.txtStyleCommon); TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, afield); } var result_str = ""; var arg = 0; while (arg < adata.length) { result_str = result_str + adata[arg].toString(); arg++; } _root.sTrace.text = result_str; } static function dRect(mc, arect, fill) { mc.createEmptyMovieClip("holder", mc.getNextHighestDepth()); with (mc.holder) { lineStyle(1, 255, 70); if (fill > 0) { beginFill(fill, 70); } moveTo(arect.x, arect.y); lineTo(arect.x, arect.height); lineTo(arect.width, arect.height); lineTo(arect.width, arect.y); lineTo(arect.x, arect.y); if (fill > 0) { endFill(); } } } static function dLines(mc, adata) { mc.createEmptyMovieClip("holder", mc.getNextHighestDepth()); with (mc.holder) { lineStyle(1, 16711680, 70); moveTo(adata[0].x, adata[0].y); var arg = 1; while (arg < adata.length) { lineTo(adata[arg].x, adata[arg].y); arg++; } } } static function dFillRect(mc, area, clr) { with (mc) { lineStyle(1, 255, 70); moveTo(0, 0); lineTo(0, mc._height); lineTo(mc._width, mc._height); lineTo(mc._width, 0); lineTo(0, 0); } } static function dAim(mc, aPoint, radius) { mc.createEmptyMovieClip("holder", mc.getNextHighestDepth()); with (mc.holder) { lineStyle(1, 16711680, 70); moveTo(aPoint.x - radius, aPoint.y - radius); lineTo(aPoint.x + radius, aPoint.y + radius); moveTo(aPoint.x + radius, aPoint.y - radius); lineTo(aPoint.x - radius, aPoint.y + radius); } } }Symbol 362 MovieClip [__Packages.TextStyles] Frame 0class TextStyles { static var txtStyleCommonCenter, txtStyleGameMenuBtn, txtStyleCommonGreen, txtStyleCommon, txtStyleGameFace, txtStyleShopHint, txtStyleShopLarge, txtLoadingLarge; function TextStyles () { txtStyleCommonCenter = new TextFormat("Arial Black", 14, 13369344, false, undefined, undefined, undefined, undefined, "center"); txtStyleGameMenuBtn = new TextFormat("Arial Black", 9, 16447744, false); txtStyleCommonGreen = new TextFormat("Arial Black", 14, 52224, false); txtStyleCommon = new TextFormat("Arial Black", 14, 13369344, false); txtStyleGameFace = new TextFormat("Arial Black", 9, 16777215, false); txtStyleShopHint = new TextFormat("Arial Black", 8, 0, false); txtStyleShopLarge = new TextFormat("Arial Black", 14, 0, false); txtLoadingLarge = new TextFormat("Arial Black", 24, 14823472, false); } static function setFieldStyle(styleId, afield) { switch (styleId) { case FSTYLE_INACT_CNTR : afield.autoSize = "center"; afield.antiAliasType = "advanced"; afield.selectable = false; afield.embedFonts = true; return; case FSTYLE_INACT_LEFT_CNTR : afield.autoSize = "left"; afield.antiAliasType = "advanced"; afield.selectable = false; afield.embedFonts = true; return; case FSTYLE_EDT_CNTR : afield.autoSize = false; afield.antiAliasType = "advanced"; afield.selectable = true; afield.embedFonts = true; afield.type = "input"; afield.border = true; afield.borderColor = 16711935 /* 0xFF00FF */; afield.maxChars = 12; afield.multiline = false; } } static var FSTYLE_INACT_CNTR = 0; static var FSTYLE_EDT_CNTR = 1; static var FSTYLE_INACT_LEFT_CNTR = 2; }Symbol 363 MovieClip [__Packages.MenuBase] Frame 0class MenuBase extends MovieClip { var isVisible_, _visible, isEnable_, wndStyle_, swapDepths, enabled, menuData_, oldTransform, _name, attachBitmap, getNextHighestDepth, createEmptyMovieClip, attachMovie; function MenuBase () { super(); } function get isVisible() { return(isVisible_); } function set isVisible(aval) { isVisible_ = aval; _visible = isVisible_; //return(isVisible); } function get isEnable() { return(isEnable_); } function set isEnable(aval) { isEnable_ = aval; ((aval == true) ? (enableMenu()) : (disableMenu())); //return(isEnable); } function get wndStyle() { return(wndStyle_); } function set wndStyle(val) { wndStyle_ = val; //return(wndStyle); } function Show() { } function ShowModal() { } function Appear() { _visible = true; swapDepths(_root.Game1.getNextHighestDepth()); } function Hide() { } function DisAppear() { _visible = false; } function disableMenu() { enabled = false; if (menuData_.length >= (DSCR_TXTLBLS + 1)) { if ((menuData_[DSCR_TXTLBLS] != undefined) && (menuData_[DSCR_TXTLBLS].length > 0)) { var i = 0; while (i < menuData_[DSCR_TXTLBLS].length) { var currclip = this[menuData_[DSCR_TXTLBLS][i].getid()]; var itemClsId = currclip.getClsId(); if (!(itemClsId === CLSID_TEXTBTNSIMPL)) { } else { BtnFactory.disableButton(currclip); } i++; } currclip.cacheAsBitmap = true; } } } function enableMenu() { var trans = (new flash.geom.Transform(this)); trans.colorTransform = oldTransform; Debugger.dTrace([_name, "Enabling"]); enabled = true; if (menuData_.length >= (DSCR_TXTLBLS + 1)) { if ((menuData_[DSCR_TXTLBLS] != undefined) && (menuData_[DSCR_TXTLBLS].length > 0)) { var i = 0; while (i < menuData_[DSCR_TXTLBLS].length) { var currclip = this[menuData_[DSCR_TXTLBLS][i].getid()]; var itemClsId = currclip.getClsId(); if (!(itemClsId === CLSID_TEXTBTNSIMPL)) { } else { BtnFactory.enableButton(currclip); } i++; } currclip.cacheAsBitmap = true; } } } function DistribControls() { if ((menuData_[DSCR_ENCODING][SENCODE_DISTR] != null) && (menuData_[DSCR_ENCODING][SENCODE_DISTR].length > 0)) { if ((menuData_[DSCR_ENCODING][SENCODE_DISTR][DISTR_OBJECTS] != null) && (menuData_[DSCR_ENCODING][SENCODE_DISTR][DISTR_OBJECTS].length > 0)) { Debugger.dTrace(new Array("\u043A\u043E\u043B-\u0432\u043E \u0433\u0440\u0443\u043F\u043F", menuData_[DSCR_ENCODING][SENCODE_DISTR].length)); var groups = 0; while (groups < menuData_[DSCR_ENCODING][SENCODE_DISTR].length) { var currGroup = menuData_[DSCR_ENCODING][SENCODE_DISTR][groups]; if (currGroup[DISTR_ALIGN] != null) { var area_height = currGroup[DISTR_RECT].height; var area_width = currGroup[DISTR_RECT].width; var area_topleftX = currGroup[DISTR_RECT].x; var area_topleftY = currGroup[DISTR_RECT].y; switch (currGroup[DISTR_ALIGN]) { case DISTRIB_CNTR_VERT : var distr_height = 0; var i = 0; while (i < currGroup[DISTR_OBJECTS].length) { distr_height = distr_height + this[currGroup[DISTR_OBJECTS][i].getid()]._height; i++; } var PointsNum = currGroup[DISTR_OBJECTS].length; var step = ((area_height - distr_height) / (PointsNum + 1)); var ypos = (currGroup[DISTR_RECT].y + step); var prev_y = ypos; var prev_height = 0; var i = 0; while (i < currGroup[DISTR_OBJECTS].length) { this[currGroup[DISTR_OBJECTS][i].getid()]._y = prev_y + prev_height; this[currGroup[DISTR_OBJECTS][i].getid()]._x = currGroup[DISTR_RECT].x + (currGroup[DISTR_RECT].width / 2); prev_height = this[currGroup[DISTR_OBJECTS][i].getid()]._height + step; prev_y = this[currGroup[DISTR_OBJECTS][i].getid()]._y; i++; } break; case DISTRIB_CNTR_HOR : var distr_width = 0; var i = 0; while (i < currGroup[DISTR_OBJECTS].length) { distr_width = distr_width + this[currGroup[DISTR_OBJECTS][i].getid()]._width; i++; } var PointsNum = currGroup[DISTR_OBJECTS].length; var deltawidth = (area_width - distr_width); var betweenstep = (deltawidth / (PointsNum + 1)); var xpos = currGroup[DISTR_RECT].x; var prev_x = xpos; var prev_width = (this[currGroup[DISTR_OBJECTS][0].getid()]._width / 2); Debugger.dTrace(["DISTRIBUTING: ", "DistrWidth:", distr_width, "AREA_WIDTH: ", area_width, " betweenStep: ", betweenstep]); var i = 0; for(;;){ if (i >= currGroup[DISTR_OBJECTS].length) { break; } this[currGroup[DISTR_OBJECTS][i].getid()]._x = (prev_width + prev_x) + betweenstep; this[currGroup[DISTR_OBJECTS][i].getid()]._y = (currGroup[DISTR_RECT].y + (currGroup[DISTR_RECT].height / 2)) - (this[currGroup[DISTR_OBJECTS][i].getid()]._height / 2); prev_width = this[currGroup[DISTR_OBJECTS][i].getid()]._width; prev_x = this[currGroup[DISTR_OBJECTS][i].getid()]._x; i++; }; } } groups++; } } } } function DataEquiv(adata) { if ((adata != undefined) && (adata.length > 0)) { if (adata[DSCR_ENCODING][SENCODE_NAME] == menuData_[DSCR_ENCODING][SENCODE_NAME]) { return(true); } return(false); } return(false); } function Create(mc_parent, menuData, bShow) { if ((menuData != null) && (menuData.length > 0)) { menuData_ = menuData; if (menuData.length >= (DSCR_BCKGRND + 1)) { _name = menuData[DSCR_ENCODING][SENCODE_NAME]; Debugger.dTrace(["MENU BASE CREATE:", _name]); var backArr = menuData[DSCR_BCKGRND]; var bdataname = backArr[SBCKGRND_NAME]; if (bdataname != null) { switch (backArr.length) { case SBCKGRND_NAME + 1 : attachBitmap(flash.display.BitmapData.loadBitmap(bdataname), getNextHighestDepth()); break; case SBCKGRND_SIZE + 1 : var xSize = backArr[SBCKGRND_SIZE].x; var ySize = backArr[SBCKGRND_SIZE].y; var mc_1 = createEmptyMovieClip("mc", getNextHighestDepth()); var abdata = flash.display.BitmapData.loadBitmap(bdataname); mc_1.attachBitmap(abdata, getNextHighestDepth()); var scaleMatrix = (new flash.geom.Matrix()); scaleMatrix.scale(xSize / mc_1._width, ySize / mc_1._height); var tmpMatrix = mc_1.transform.matrix; tmpMatrix.concat(scaleMatrix); mc_1.transform.matrix = tmpMatrix; break; case SBCKGRND_SOURCERECT + 1 : var xSize = backArr[SBCKGRND_SIZE].x; var ySize = backArr[SBCKGRND_SIZE].y; var sourceRect = backArr[SBCKGRND_SOURCERECT]; var mc_1 = createEmptyMovieClip("mc", getNextHighestDepth()); var sourcedata = flash.display.BitmapData.loadBitmap(bdataname); var resdata = (new flash.display.BitmapData(sourceRect.width, sourceRect.height)); resdata.copyPixels(sourcedata, sourceRect, new flash.geom.Point(0, 0)); mc_1.attachBitmap(resdata, getNextHighestDepth()); var scaleMatrix = (new flash.geom.Matrix()); scaleMatrix.scale(xSize / mc_1._width, ySize / mc_1._height); var tmpMatrix = mc_1.transform.matrix; tmpMatrix.concat(scaleMatrix); mc_1.transform.matrix = tmpMatrix; } } } if (menuData.length >= (DSCR_TXTLBLS + 1)) { if ((menuData[DSCR_TXTLBLS] != undefined) && (menuData[DSCR_TXTLBLS].length > 0)) { var i = 0; while (i < menuData[DSCR_TXTLBLS].length) { var itemClsId = menuData[DSCR_TXTLBLS][i].getClsId(); attachMovie("Symbol_menuItem", menuData[DSCR_TXTLBLS][i].getid(), mc_parent[menuData[DSCR_ENCODING][SENCODE_NAME]].getNextHighestDepth()); switch (itemClsId) { case CLSID_TEXTLABEL : var afield = this[menuData[DSCR_TXTLBLS][i].getid()].createTextField((_name + "lblText_") + menuData[DSCR_TXTLBLS][i].getid(), getNextHighestDepth(), 0, 0, 0, 0); afield.text = menuData[DSCR_TXTLBLS][i].linesArr_[0]; TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, afield); afield.setTextFormat(TextStyles.txtStyleCommon); break; case CLSID_TEXTBTNSIMPL : case CLSID_TEXTEDTSIMPL : case CLSID_LBLEDTSIMPL : case CLSID_SLIDERSIMPL : this[menuData[DSCR_TXTLBLS][i].getid()].setReturnCode(menuData[DSCR_TXTLBLS][i].getReturnCode()); this[menuData[DSCR_TXTLBLS][i].getid()].setClsId(itemClsId); BtnFactory.createButton(this, menuData[DSCR_TXTLBLS][i]); } i++; } } } DistribControls(); if (bShow == false) { isVisible = (false); } else { isVisible = (true); if (wndStyle == WNDSTYLE_MODAL) { _root.Game1.disableWindows(); } } return(this); } return(null); } static var CLSID_TEXTLABEL = 0; static var CLSID_TEXTBTNSIMPL = 1; static var CLSID_TEXTEDTSIMPL = 2; static var CLSID_LBLEDTSIMPL = 3; static var CLSID_SLIDERSIMPL = 4; static var RCODE_NONE = -1; static var RCODE_OK = 0; static var RCODE_CANCEL = 1; static var RCODE_HOTEL = 2; static var RCODE_SHOP = 3; static var RCODE_SCHOOL = 4; static var RCODE_MAP = 5; static var RCODE_JANE = 6; static var RCODE_REDSTAR = 7; static var RCODE_ROOM1 = 8; static var RCODE_CUST = 9; static var RCODE_PLACEOBJS = 10; static var RCODE_BUY_FURN = 11; static var RCODE_EXIT_SHOP = 12; static var RCODE_START = 13; static var RCODE_OPTIONS = 14; static var RCODE_GET_IT = 15; static var RCODE_ABORT = 16; static var RCODE_RESUME = 17; static var RCODE_SOUND = 18; static var RCODE_SOUND_EXIT = 19; static var RCODE_NEXT_LEVEL = 20; static var RCODE_GAMEAD_OK = 21; static var RCODE_GAMEAD_GETIT = 22; static var RCODE_MMENU_PLAYER = 23; static var RCODE_MMENU_STATISTIC = 24; static var RCODE_KONKURS = 25; static var OPT_CODE_TYPE = 0; static var OPT_CODE_TYPE_LABEL = 0; static var OPT_CODE_TYPE_HINT = 1; static var OPT_CODE_LBL_DSCR = 1; static var OPT_CODE_LBL_PLACE = 2; static var OPT_LBL_PLACE_TOP = 0; static var OPT_LBL_PLACE_RIGHT = 1; static var OPT_LBL_PLACE_BOTTOM = 2; static var OPT_LBL_PLACE_LEFT = 3; static var OPT_CODE_LBL_ALIGN = 3; static var OPT_LBL_ALIGN_MIN = 0; static var OPT_LBL_ALIGN_MID = 1; static var OPT_LBL_ALIGN_MAX = 2; static var DSCR_ENCODING = 0; static var DSCR_BCKGRND = 1; static var DSCR_TXTLBLS = 2; static var DSCR_TXTBTNS = 3; static var SBCKGRND_NAME = 0; static var SBCKGRND_SIZE = 1; static var SBCKGRND_SOURCERECT = 2; static var SENCODE_NAME = 1; static var SENCODE_DISTR = 2; static var SENCODE_WNDSTYLE = 3; static var WNDSTYLE_NORMAL = 0; static var WNDSTYLE_MODAL = 1; static var WNDSTYLE_ONTOP = 2; static var DISTR_OBJECTS = 0; static var DISTR_RECT = 1; static var DISTR_ALIGN = 2; static var DISTRIB_CNTR_VERT = 0; static var DISTRIB_CNTR_HOR = 1; }Symbol 364 MovieClip [__Packages.BtnFactory] Frame 0class BtnFactory { function BtnFactory () { } static function enableButton(theClip) { var childName; childName = "btnSimple" + theClip._name; theClip[childName].useHandCursor = true; theClip[childName].onRollOver = function () { if (theClip[childName].fillsArray_.active != undefined) { Helper.PlaySound("pickup_key", 1); if (theClip["btnSimple" + theClip._name].aHint != undefined) { Game.showHint(theClip["btnSimple" + theClip._name].aHint, theClip); } theClip[childName].attachBitmap(theClip[childName].fillsArray_.active, 10); } else { theClip[childName].SelAr._visible = true; } }; theClip[childName].onDragOut = function () { theClip[childName].SelAr._visible = false; if (theClip[childName].pressed == true) { theClip[childName]._y = theClip[childName].sourceY_; theClip[childName].pressed = false; } if (theClip[childName].fillsArray_.normal != undefined) { theClip[childName].attachBitmap(theClip[childName].fillsArray_.normal, 10); } else { if (BtnFactory.emptyBitmap_ == undefined) { BtnFactory.emptyBitmap_ = new flash.display.BitmapData(1, 1, true, 0); } theClip[childName].attachBitmap(BtnFactory.emptyBitmap_, 10); } }; theClip[childName].onRollOut = function () { Game.hideHint(); theClip[childName].SelAr._visible = false; if (theClip[childName].pressed == true) { theClip[childName]._y = theClip[childName].sourceY_; theClip[childName].pressed = false; } if (theClip[childName].fillsArray_.normal != undefined) { theClip[childName].attachBitmap(theClip[childName].fillsArray_.normal, 10); } else { if (BtnFactory.emptyBitmap_ == undefined) { BtnFactory.emptyBitmap_ = new flash.display.BitmapData(1, 1, true, 0); } theClip[childName].attachBitmap(BtnFactory.emptyBitmap_, 10); } }; theClip[childName].onPress = function () { Game.hideHint(); theClip[childName].doPress(); Helper.PlaySound("menu_click", 1); theClip[childName].sourceY_ = theClip[childName]._y; theClip[childName]._y = theClip[childName]._y + 1; }; theClip[childName].onRelease = function () { Game.hideHint(); theClip[childName]._y = theClip[childName].sourceY_; theClip[childName].pressed = false; _root.Game1.setRetCode(theClip.getReturnCode()); }; if (theClip[childName].fillsArray_.normal != undefined) { theClip[childName].attachBitmap(theClip[childName].fillsArray_.normal, 10); } } static function disableButton(btnClip) { var childName; if (!(btnClip.getClsId() === MenuBase.CLSID_TEXTBTNSIMPL)) { } else { childName = "btnSimple" + btnClip._name; } btnClip[childName].SelAr._visible = false; btnClip[childName].useHandCursor = false; btnClip[childName].onRollOver = null; btnClip[childName].onDragOut = null; btnClip[childName].onRollOut = null; btnClip[childName].onRelease = null; btnClip[childName].onPress = null; btnClip[childName].focusEnabled = false; if (btnClip[childName].fillsArray_.disabled != undefined) { btnClip[childName].attachBitmap(btnClip[childName].fillsArray_.disabled, 10); } } static function createButton(aBase, aBtnInfo) { var master = aBase[aBtnInfo.getid()]; var theClip; var clsId = aBtnInfo.getClsId(); switch (clsId) { case MenuBase.CLSID_SLIDERSIMPL : var theClip = master.createEmptyMovieClip("MySlider", master.getNextHighestDepth()); var adata = flash.display.BitmapData.loadBitmap("bar_dark"); theClip.attachBitmap(adata, theClip.getNextHighestDepth()); theClip._x = theClip._x - (adata.width / 2); theClip.sliderVal = 0.45; var afield = theClip.createTextField("lblText", theClip.getNextHighestDepth(), 0, 0, 0, 0); afield.text = String(Math.floor(theClip.sliderVal * 100)) + "%"; TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, afield); afield.setTextFormat(TextStyles.txtStyleCommon); afield._x = afield._x + (adata.width / 2); return; case MenuBase.CLSID_TEXTBTNSIMPL : var theClip = master.attachMovie("MenuItem", "btnSimple" + master._name, master.getNextHighestDepth()); var optArray = aBtnInfo.getOptArr(); var maxWidth = 0; if (optArray != undefined) { if ((optArray[DESCRBCKGR_INDEX] != undefined) && (optArray[DESCRBCKGR_INDEX].length > 0)) { if ((optArray[DESCRBCKGR_TYPE_INDEX] != undefined) && (optArray[DESCRBCKGR_TYPE_INDEX].length > 0)) { switch (Number(optArray[DESCRBCKGR_TYPE_INDEX][DESCRBCKGR_TYPE_CODE_INDEX])) { case CODE_AUTOFILL : var baseBackName = String(optArray[DESCRBCKGR_INDEX][0]); var btnWidth = Number(optArray[DESCRBCKGR_INDEX][1]); theClip.generateFill(baseBackName, btnWidth); if (theClip.fillsArray_.normal != undefined) { theClip.attachBitmap(theClip.fillsArray_.normal, 10); } break; case CODE_BMPFILL : var baseBackName = String(optArray[DESCRBCKGR_INDEX][0]); theClip.loadBMPFill(baseBackName); if (theClip.fillsArray_.normal == undefined) { break; } theClip.attachBitmap(theClip.fillsArray_.normal, 10); } } } } if (theClip._width == 0) { maxWidth = flash.display.BitmapData(theClip.fillsArray_.active).width; } else { maxWidth = theClip._width; } var afield = theClip.createTextField("lblText", 100, 0, 0, 0, 0); afield._x = maxWidth / 2; afield.text = aBtnInfo.getLinesArr()[0]; TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, afield); theClip.aHint = aBtnInfo.getHint(); if (aBtnInfo.gettxtStyle() == undefined) { afield.setTextFormat(TextStyles.txtStyleCommon); } else { afield.setTextFormat(aBtnInfo.gettxtStyle()); } afield._y = (theClip._height / 2) - (afield._height / 2); enableButton(master); createHitArea(master); createSelArea(theClip); return; case MenuBase.CLSID_TEXTEDTSIMPL : var theClip = master.createEmptyMovieClip("edtSimple" + master._name, master.getNextHighestDepth()); var afield = theClip.createTextField("lblText", theClip.getNextHighestDepth(), 0, 0, 0, 0); afield.text = aBtnInfo.getLinesArr()[0]; TextStyles.setFieldStyle(TextStyles.FSTYLE_EDT_CNTR, afield); afield.setTextFormat(TextStyles.txtStyleCommon); return; case MenuBase.CLSID_LBLEDTSIMPL : var theClip = master.createEmptyMovieClip("edtSimple" + master._name, master.getNextHighestDepth()); var afield = theClip.createTextField("lblText", theClip.getNextHighestDepth(), 0, 15, 0, 0); afield.text = aBtnInfo.getLinesArr()[0]; TextStyles.setFieldStyle(TextStyles.FSTYLE_EDT_CNTR, afield); afield.setTextFormat(TextStyles.txtStyleCommon); var optArray = aBtnInfo.getOptArr(); if (optArray == null) { break; } ProcessOptions(optArray, theClip); } } static function ProcessOptions(optArr, theClip) { var i = 0; while (i < optArr.length) { var currOpt = optArr[i]; if (!(currOpt[0] === MenuBase.OPT_CODE_TYPE_LABEL)) { } else { var aLabel = currOpt[1]; var afield = theClip.createTextField("lblText", theClip.getNextHighestDepth(), 0, 0, 0, 0); theClip.lblText.y = theClip.lblText.y + 10; afield.text = aLabel.getLinesArr()[0]; TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, afield); afield.setTextFormat(TextStyles.txtStyleCommon); } i++; } } static function createSelArea(mc) { var afield = mc.lblText; if (afield != null) { var selClip = mc.createEmptyMovieClip("SelAr", mc.getNextHighestDepth()); Debugger.dRect(selClip, new flash.geom.Rectangle((-afield._width) / 2, 0, afield._width / 2, afield._height), 65280); selClip._visible = false; } } static function killHitArea(master) { var childName; if (!(master.getClsId() === MenuBase.CLSID_TEXTBTNSIMPL)) { } else { childName = "btnSimple" + master._name; } var mc = master[childName]; mc.hitAr.removeMovieClip(); mc.hitArea = null; } static function createHitArea(master) { var childName; if (!(master.getClsId() === MenuBase.CLSID_TEXTBTNSIMPL)) { } else { childName = "btnSimple" + master._name; } var mc = master[childName]; var hitClip = mc.createEmptyMovieClip("hitAr", mc.getNextHighestDepth()); Debugger.dRect(hitClip, new flash.geom.Rectangle(mc._x, 0, mc._width, mc._height), 65280); mc.hitArea = hitClip; hitClip._visible = false; } static var DESCRBCKGR_INDEX = 0; static var DESCRBCKGR_TYPE_INDEX = 1; static var DESCRBCKGR_TYPE_CODE_INDEX = 0; static var CODE_AUTOFILL = 0; static var CODE_BMPFILL = 1; }Symbol 365 MovieClip [__Packages.MenuFactory] Frame 0class MenuFactory { function MenuFactory () { } static function registerMenu(mc_parent, menuName, menuData, position, bShow, depthsArr) { if (mc_parent[menuData[MenuBase.DSCR_ENCODING][MenuBase.SENCODE_NAME]] == undefined) { var adepth = Number(depthsArr[menuData[MenuBase.DSCR_ENCODING][MenuBase.SENCODE_NAME]]); if (!isNaN(adepth)) { mc_parent.attachMovie("Symbol_Menu", menuData[MenuBase.DSCR_ENCODING][MenuBase.SENCODE_NAME], adepth); } else { mc_parent.attachMovie("Symbol_Menu", menuData[MenuBase.DSCR_ENCODING][MenuBase.SENCODE_NAME], mc_parent.getNextHighestDepth()); } mc_parent[menuData[MenuBase.DSCR_ENCODING][MenuBase.SENCODE_NAME]].wndStyle = menuData[MenuBase.DSCR_ENCODING][MenuBase.SENCODE_WNDSTYLE]; mc_parent[menuData[MenuBase.DSCR_ENCODING][MenuBase.SENCODE_NAME]].Create(mc_parent, menuData, bShow); mc_parent[menuData[MenuBase.DSCR_ENCODING][MenuBase.SENCODE_NAME]]._x = position.x; mc_parent[menuData[MenuBase.DSCR_ENCODING][MenuBase.SENCODE_NAME]]._y = position.y; } else { mc_parent[menuData[MenuBase.DSCR_ENCODING][MenuBase.SENCODE_NAME]].Appear(); } Debugger.dTrace(["_root", mc_parent[menuData[MenuBase.DSCR_ENCODING][MenuBase.SENCODE_NAME]], " :", _root.Game1.menuStQue]); _root.Game1.menuStQue.push(mc_parent[menuData[MenuBase.DSCR_ENCODING][MenuBase.SENCODE_NAME]]); Debugger.dTrace(["menuStQue", _root.Game1.menuStQue[0]]); } }Symbol 366 MovieClip [__Packages.Customer] Frame 0class Customer extends MovieClip implements IDrawAble, IMoveable, IRequestAble { var operations_, changed_, chkSmb_, animObject, _x, _y, currRoom_, leaving_, cmdStacks_, between_interval_, currCmd_, parentGame_, request_, orderNum_, attachMovie, persName_, getNextHighestDepth, circleX_, resultBitmap, attachBitmap, target_move, _width, _height, moving_direction, filters, aFilter, whereIs_, last_request_end, shadowX_, shadowClip_, shadowY_, inRoom_, _alpha, waitingTime_, shadowSLx_, shadowSy_, swapDepths, shadowSRx_, hallo_snd_, startDisTime_, path, hitTest, requestsArr_, checkFunction, bmpNorm_, aCrug, createEmptyMovieClip; function Customer () { super(); operations_ = new Array(); } function setChanged(aVal) { changed_ = aVal; } function isChanged() { return(changed_); } function getChkSmb() { return(chkSmb_); } function isChecked() { if (chkSmb_ == undefined) { return(true); } return(false); } function reset() { animObject.reset(); } function getX() { return(_x); } function getY() { return(_y); } function returnAtRoom() { switch (currRoom_.getPersName()) { case "ROOM1" : goToRoom(CMD_GO_ROOM1); return; case "ROOM2" : goToRoom(CMD_GO_ROOM2); return; case "ROOM3" : goToRoom(CMD_GO_ROOM3); return; case "ROOM4" : goToRoom(CMD_GO_ROOM4); return; case "ROOM5" : goToRoom(CMD_GO_ROOM5); } } function leaveHotel() { leaving_ = true; cmdStacks_.splice(0, cmdStacks_.length); switch (currRoom_.getPersName()) { case "ROOM1" : cmdStacks_.push(outFromRoom1()); resetTargetMove(); return; case "ROOM2" : cmdStacks_.push(outFromRoom2()); resetTargetMove(); return; case "ROOM3" : cmdStacks_.push(outFromRoom3()); resetTargetMove(); return; case "ROOM4" : cmdStacks_.push(outFromRoom4()); resetTargetMove(); return; case "ROOM5" : cmdStacks_.push(outFromRoom5()); resetTargetMove(); } } function init() { between_interval_ = Math.floor(MINTIME_BETWEEN_REQUESTS + (Math.random() * 2000)); } function enterHotel() { cmdStacks_.splice(0, cmdStacks_.length); currCmd_ = -1; var cmdArray = new Array(); cmdArray.push(CMD_RESET); cmdArray.push(CMD_ENTERING_HTL); cmdArray.push(CMD_AWAITING_ENTR); cmdArray.push(CMD_GO_RECEPTION); cmdArray.push(CMD_HALLO); cmdArray.push(CMD_AWAITING_RECEPTION); cmdStacks_.push(cmdArray); reset(); } function exitOtel() { var cmdArray = new Array(); cmdArray.push(CMD_GO_OUT); cmdArray.push(CMD_STAND_OUT); cmdStacks_.push(cmdArray); resetTargetMove(); } function doChairRequest() { var exitArr; switch (currRoom_.getPersName()) { case "ROOM1" : exitArr = exitRoom1(); break; case "ROOM2" : case "ROOM3" : case "ROOM4" : exitArr = exitRoom234(); break; case "ROOM5" : exitArr = exitRoom5(); } if (exitArr != undefined) { exitArr.push(CMD_GO_CHAIR); exitArr.push(CMD_SIT_CHAIR); exitArr.push(CMD_POP_REQUEST); cmdStacks_.push(exitArr); resetTargetMove(); } } function doArmChairLeftRequest() { var exitArr; switch (currRoom_.getPersName()) { case "ROOM1" : exitArr = exitRoom1(); break; case "ROOM2" : case "ROOM3" : case "ROOM4" : exitArr = exitRoom234(); break; case "ROOM5" : exitArr = exitRoom5(); } if (exitArr != undefined) { exitArr.push(CMD_GO_ARMCHAIR_LEFT); exitArr.push(CMD_SIT_ARMCHAIR_LEFT); exitArr.push(CMD_POP_REQUEST); cmdStacks_.push(exitArr); var aObj = parentGame_.getMO("ARMCHAIR_LEFT"); aObj.counter_++; resetTargetMove(); } } function doArmChairRightRequest() { var exitArr; switch (currRoom_.getPersName()) { case "ROOM1" : exitArr = exitRoom1(); break; case "ROOM2" : case "ROOM3" : case "ROOM4" : exitArr = exitRoom234(); break; case "ROOM5" : exitArr = exitRoom5(); } if (exitArr != undefined) { exitArr.push(CMD_GO_ARMCHAIR_RIGHT); exitArr.push(CMD_SIT_ARMCHAIR_RIGHT); exitArr.push(CMD_POP_REQUEST); cmdStacks_.push(exitArr); var aObj = parentGame_.getMO("ARMCHAIR_RIGHT"); aObj.counter_++; resetTargetMove(); } } function outFromRoom1() { var cmdStack = new Array(); cmdStack.push(CMD_TURN6); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_ROOM1_TOP); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_DOWN_ROOM1); cmdStack.push(CMD_TURN3); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_RECEPTION); cmdStack.push(CMD_PUSH_MONEY); cmdStack.push(CMD_UNSET_ROOM1_DND); cmdStack.push(CMD_GO_OUT); cmdStack.push(CMD_STAND_OUT); return(cmdStack); } function outFromRoom2() { var cmdStack = new Array(); cmdStack.push(CMD_TURN6); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_RECEPTION); cmdStack.push(CMD_PUSH_MONEY); cmdStack.push(CMD_UNSET_ROOM2_DND); cmdStack.push(CMD_GO_OUT); cmdStack.push(CMD_STAND_OUT); return(cmdStack); } function outFromRoom3() { var cmdStack = new Array(); cmdStack.push(CMD_TURN6); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_RECEPTION); cmdStack.push(CMD_PUSH_MONEY); cmdStack.push(CMD_UNSET_ROOM3_DND); cmdStack.push(CMD_GO_OUT); cmdStack.push(CMD_STAND_OUT); return(cmdStack); } function outFromRoom4() { var cmdStack = new Array(); cmdStack.push(CMD_TURN6); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_RECEPTION); cmdStack.push(CMD_PUSH_MONEY); cmdStack.push(CMD_UNSET_ROOM4_DND); cmdStack.push(CMD_GO_OUT); cmdStack.push(CMD_STAND_OUT); return(cmdStack); } function outFromRoom5() { var cmdStack = new Array(); cmdStack.push(CMD_TURN6); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_ROOM5_TOP); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_DOWN_ROOM5); cmdStack.push(CMD_TURN3); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_RECEPTION); cmdStack.push(CMD_PUSH_MONEY); cmdStack.push(CMD_UNSET_ROOM5_DND); cmdStack.push(CMD_GO_OUT); cmdStack.push(CMD_STAND_OUT); return(cmdStack); } function exitRoom5() { var cmdStack = new Array(); cmdStack.push(CMD_OPEN_ROOM5); cmdStack.push(CMD_LEAVE_ROOM); cmdStack.push(CMD_TURN6); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_CLOSE_ROOM5); cmdStack.push(CMD_GO_ROOM5_TOP); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_DOWN_ROOM5); cmdStack.push(CMD_TURN3); cmdStack.push(CMD_APPEAR); return(cmdStack); } function exitRoom1() { var cmdStack = new Array(); cmdStack.push(CMD_OPEN_ROOM1); cmdStack.push(CMD_LEAVE_ROOM); cmdStack.push(CMD_TURN6); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_CLOSE_ROOM1); cmdStack.push(CMD_GO_ROOM1_TOP); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_DOWN_ROOM1); cmdStack.push(CMD_TURN3); cmdStack.push(CMD_APPEAR); return(cmdStack); } function exitRoom234() { var cmdStack = new Array(); cmdStack.push(CMD_LEAVE_ROOM); cmdStack.push(CMD_TURN6); cmdStack.push(CMD_APPEAR); return(cmdStack); } function getRequestName() { return(request_.name_); } function eraseCheck() { chkSmb_.removeMovieClip(); chkSmb_ = undefined; orderNum_ = -1; } function setCheck(order) { orderNum_ = order; chkSmb_ = attachMovie("check_smb", "check_smb" + persName_, getNextHighestDepth() + order); chkSmb_._x = circleX_ + 40; chkSmb_._y = 20; } function addWaitCommand() { var cmdStack = new Array(); cmdStack.push(CMD_WAITING); return(cmdStack); } function addRoom1Commands(first_time) { var cmdStack = new Array(); if (first_time != true) { cmdStack.push(CMD_GO_ROOM1_BTM); cmdStack.push(CMD_TURN9); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_UP_ROOM1); cmdStack.push(CMD_TURN3); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_ROOM1); cmdStack.push(CMD_TURN12); cmdStack.push(CMD_OPEN_ROOM1); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_OCCUPY_ROOM1); } else { cmdStack.push(CMD_SET_ROOM1_DND); cmdStack.push(CMD_OPEN_ROOM1); cmdStack.push(CMD_GO_ROOM1_BTM); cmdStack.push(CMD_TURN9); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_UP_ROOM1); cmdStack.push(CMD_TURN3); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_ROOM1); cmdStack.push(CMD_TURN12); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_OCCUPY_ROOM1); } return(cmdStack); } function addRoom2Commands(first_time) { var cmdStack = new Array(); if (first_time != true) { cmdStack.push(CMD_GO_ROOM2); cmdStack.push(CMD_TURN12); cmdStack.push(CMD_OPEN_ROOM2); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_OCCUPY_ROOM2); } else { cmdStack.push(CMD_SET_ROOM2_DND); cmdStack.push(CMD_OPEN_ROOM2); cmdStack.push(CMD_GO_ROOM2); cmdStack.push(CMD_TURN12); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_OCCUPY_ROOM2); } return(cmdStack); } function addRoom3Commands(first_time) { var cmdStack = new Array(); if (first_time != true) { cmdStack.push(CMD_GO_ROOM3); cmdStack.push(CMD_TURN12); cmdStack.push(CMD_OPEN_ROOM3); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_OCCUPY_ROOM3); } else { cmdStack.push(CMD_SET_ROOM3_DND); cmdStack.push(CMD_OPEN_ROOM3); cmdStack.push(CMD_GO_ROOM3); cmdStack.push(CMD_TURN12); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_OCCUPY_ROOM3); } return(cmdStack); } function addRoom4Commands(first_time) { var cmdStack = new Array(); if (first_time != true) { cmdStack.push(CMD_GO_ROOM4); cmdStack.push(CMD_TURN12); cmdStack.push(CMD_OPEN_ROOM4); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_OCCUPY_ROOM4); } else { cmdStack.push(CMD_SET_ROOM4_DND); cmdStack.push(CMD_OPEN_ROOM4); cmdStack.push(CMD_GO_ROOM4); cmdStack.push(CMD_TURN12); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_OCCUPY_ROOM4); } return(cmdStack); } function addRoom5Commands(first_time) { var cmdStack = new Array(); if (first_time != true) { cmdStack.push(CMD_GO_ROOM5_BTM); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_UP_ROOM5); cmdStack.push(CMD_TURN9); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_ROOM5); cmdStack.push(CMD_TURN12); cmdStack.push(CMD_OPEN_ROOM5); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_OCCUPY_ROOM5); } else { cmdStack.push(CMD_SET_ROOM5_DND); cmdStack.push(CMD_OPEN_ROOM5); cmdStack.push(CMD_GO_ROOM5_BTM); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_UP_ROOM5); cmdStack.push(CMD_TURN9); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_ROOM5); cmdStack.push(CMD_TURN12); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_OCCUPY_ROOM5); } return(cmdStack); } function drawIt() { resultBitmap = animObject.drawIt(resultBitmap, 0, 0); if (selected_ == true) { } attachBitmap(resultBitmap, 0, "auto", true); } function getPersName() { return(persName_); } function getTurnAnim(tang) { if ((tang >= -0.5) && (tang <= 0.5)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "sideright"); } else if ((tang <= 2.1) && (tang >= 1.5)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "front"); } else if (((tang > 2.7) && (tang <= 3.2)) || ((tang > -3.2) && (tang <= -2.7))) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "sideleft"); } else if ((tang >= -1.8) && (tang <= -1.4)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "back"); } else if ((tang > 2.1) && (tang < 2.7)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "frontsideleft"); } else if ((tang < 1.5) && (tang > 0.5)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "frontsideright"); } else if ((tang > -2.7) && (tang < -1.8)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "backsideleft"); } else if ((tang > -1.4) && (tang < -0.5)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "backsideright"); } } function MoveTo(p) { target_move = p; } function processMoving(timeDone) { if (target_move != null) { var dx = ((target_move.x + (_width / 2)) - _x); var dy = (((target_move.y - _height) + 2) - _y); if ((Math.abs(dx) < ((velocity_ * timeDone) / 1000)) && (Math.abs(dy) < ((velocity_ * timeDone) / 1000))) { target_move = null; } else { var ang = Math.atan2(dy, dx); var speedx = (((Math.cos(ang) * velocity_) * timeDone) / 1000); var speedy = (((Math.sin(ang) * velocity_) * timeDone) / 1000); _x = _x + speedx; _y = _y + speedy; } } } function resetTargetMove() { currCmd_ = -1; var currCmd = -1; target_move = undefined; if (cmdStacks_.length > 0) { var curStack = cmdStacks_[cmdStacks_.length - 1]; if (curStack.length == 0) { cmdStacks_.pop(); if (cmdStacks_.length > 0) { curStack = cmdStacks_[cmdStacks_.length - 1]; } } if (curStack.length > 0) { currCmd = Number(curStack.shift()); } } doCommand(currCmd); } function getTargetMove() { return(target_move); } function setMovingDirection(aVal) { moving_direction = aVal; } function updateAnimation() { var newDirect = getTurnAnim(moving_direction); if (newDirect != prev_turn) { prev_turn = newDirect; } } function unselectIt() { selected_ = false; filters = new Array(); } function selectIt() { if (aFilter == undefined) { var color = 16776448; var alpha = 1; var blurX = 3; var blurY = 3; var strength = 5; var quality = 3; var inner = false; var knockout = false; aFilter = new flash.filters.GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout); } selected_ = true; if (filters.length == 0) { var myFilters = filters; myFilters.push(Room.bevel_); filters = myFilters; } } function doneRequest() { Helper.PlaySound("service_accepted"); switch (request_.name_) { case "daily" : case "cup" : case "eat" : var theObj = parentGame_.getMO(parentGame_.getMebName(request_.name_)); parentGame_.levelcash_ = parentGame_.levelcash_ + theObj.price_; GameHelper.showMoneyUp("+" + theObj.price_, "eraseText", _x, _y - 10, -20, -20, 4); eraseCheck(); switch (whereIs_) { case "ARMCHAIR_LEFT" : case "ARMCHAIR_RIGHT" : } switch (whereIs_) { case "ARMCHAIR_LEFT" : switch (request_.name_) { case "cup" : animObject.sendSignalState([animObject.getName()], "drink_left"); cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addWaitCommand()); resetTargetMove(); break; case "daily" : animObject.sendSignalState([animObject.getName()], "reading_left"); cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addWaitCommand()); resetTargetMove(); Helper.PlaySound("action_newspaper", 4); } break; case "ARMCHAIR_RIGHT" : switch (request_.name_) { case "cup" : animObject.sendSignalState([animObject.getName()], "drink_right"); cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addWaitCommand()); resetTargetMove(); break; case "daily" : animObject.sendSignalState([animObject.getName()], "reading_right"); cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addWaitCommand()); resetTargetMove(); } break; case "CHAIR" : animObject.sendSignalState([animObject.getName()], "eat"); var aChair = parentGame_.getMO("CHAIR"); aChair.doSignal([theObj.animObject.getName(), "DEFAULT", "PLATE"], "check"); cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addWaitCommand()); resetTargetMove(); } } parentGame_.wndCash_.updateCashData(); last_request_end = 0; request_.resetRequest(false); } function goChairLeft() { } function goToRoomFirst(roomCmd) { switch (roomCmd) { case CMD_GO_ROOM1 : cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addRoom1Commands(true)); break; case CMD_GO_ROOM2 : cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addRoom2Commands(true)); break; case CMD_GO_ROOM3 : cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addRoom3Commands(true)); break; case CMD_GO_ROOM4 : cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addRoom4Commands(true)); break; case CMD_GO_ROOM5 : cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addRoom5Commands(true)); } resetTargetMove(); } function goToRoom(roomCmd) { switch (roomCmd) { case CMD_GO_ROOM1 : cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addRoom1Commands()); break; case CMD_GO_ROOM2 : cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addRoom2Commands()); break; case CMD_GO_ROOM3 : cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addRoom3Commands()); break; case CMD_GO_ROOM4 : cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addRoom4Commands()); break; case CMD_GO_ROOM5 : cmdStacks_.splice(0, cmdStacks_.length); cmdStacks_.push(addRoom5Commands()); } resetTargetMove(); } function takeKey(roomCmd) { doneRequest(); goToRoomFirst(roomCmd); } function requestFail(aName) { switch (aName) { case "add" : var arecpt = parentGame_.getMO("RECEPTION1"); arecpt.uncheckFirst(); eraseCheck(); cmdStacks_.splice(0, cmdStacks_.length); exitOtel(); arecpt.animObject.sendSignalState([arecpt.animObject.getName(), "DEFAULT", "NOKEY"], "unselect"); parentGame_.isKeyNeeded(); return; case "daily" : case "cup" : case "phone" : case "eat" : eraseCheck(); animObject.sendSignalState([animObject.getName()], "moving"); switch (whereIs_) { case "CHAIR" : var aObject = parentGame_.getMO(whereIs_); aObject.counter_ = 0; whereIs_ = ""; break; case "ARMCHAIR_LEFT" : case "ARMCHAIR_RIGHT" : var aObject = parentGame_.getMO(whereIs_); aObject.counter_ = 0; whereIs_ = ""; } shadowClip_._x = shadowX_; shadowClip_._y = shadowY_; returnAtRoom(); } } function doCommand(aCommand) { var targetx; var targety; switch (aCommand) { case CMD_LEAVE_ROOM : inRoom_ = false; return; case CMD_RESET : currCmd_ = CMD_RESET; return; case CMD_PUSH_MONEY : var reception = parentGame_.getMO("RECEPTION1"); reception.dropMoney(reception.price_); parentGame_.wndCash_.updateCashData(); currRoom_.ordered_ = false; currRoom_ = undefined; return; case CMD_STAND_OUT : currCmd_ = CMD_STAND_OUT; parentGame_.nowCustomers_--; parentGame_.wndClients_.updateData(); _alpha = 0; if ((parentGame_.nowCustomers_ == 0) && (parentGame_.totalCustomers_ == parentGame_.maxCustomers_)) { parentGame_.countMoney(); } return; case CMD_WAIT_1000 : waitingTime_ = 1000; return; case CMD_SIT_ARMCHAIR_LEFT : whereIs_ = "ARMCHAIR_LEFT"; animObject.sendSignalState([animObject.getName()], "siting_left"); var aObj = parentGame_.getMO("ARMCHAIR_LEFT"); _x = aObj._x + 5; _y = aObj._y - 10; shadowClip_._x = shadowSLx_; shadowClip_._y = shadowSy_; swapDepths(aObj.getDepth() + 1); return; case CMD_SIT_ARMCHAIR_RIGHT : whereIs_ = "ARMCHAIR_RIGHT"; animObject.sendSignalState([animObject.getName()], "siting_right"); var aObj = parentGame_.getMO("ARMCHAIR_RIGHT"); _x = aObj._x - 1; _y = aObj._y - 15; swapDepths(aObj.getDepth() + 1); shadowClip_._x = shadowSRx_; shadowClip_._y = shadowSy_; return; case CMD_SIT_CHAIR : whereIs_ = "CHAIR"; animObject.sendSignalState([animObject.getName()], "siting_chair"); var aObj = parentGame_.getMO("CHAIR"); _x = aObj._x + 50; _y = aObj._y - 8; shadowClip_._x = shadowSRx_; shadowClip_._y = shadowSy_; swapDepths(parentGame_.getNextEmptyDepth(aObj.getDepth())); return; case CMD_POP_REQUEST : popRequest(); return; case CMD_TURN12 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "back"); return; case CMD_TURN6 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "front"); return; case CMD_TURN3 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "sideright"); return; case CMD_TURN9 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "sideleft"); return; case CMD_TURN1_5 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "backsideright"); return; case CMD_TURN4_5 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "frontsideright"); return; case CMD_TURN7_5 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "frontsideleft"); return; case CMD_TURN10_5 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "backsideleft"); return; case CMD_LEAVE_ROOM1 : case CMD_LEAVE_ROOM2 : case CMD_LEAVE_ROOM3 : case CMD_LEAVE_ROOM4 : case CMD_LEAVE_ROOM5 : aRoom.ocupied_ = false; aRoom = undefined; return; case CMD_OCCUPY_ROOM1 : whereIs_ = "ROOM1"; var aRoom = Room(parentGame_.getMO("ROOM1")); aRoom.animObject.sendSignalState(["ROOM1"], "closing"); currRoom_ = aRoom; inRoom_ = true; aRoom.occupied_ = true; Helper.PlaySound("door_close"); return; case CMD_UNSET_ROOM1_DND : var aRoom = Room(parentGame_.getMO("ROOM1")); aRoom.unOrderIt(); return; case CMD_UNSET_ROOM2_DND : var aRoom = Room(parentGame_.getMO("ROOM2")); aRoom.unOrderIt(); return; case CMD_UNSET_ROOM3_DND : var aRoom = Room(parentGame_.getMO("ROOM3")); aRoom.unOrderIt(); return; case CMD_UNSET_ROOM4_DND : var aRoom = Room(parentGame_.getMO("ROOM4")); aRoom.unOrderIt(); return; case CMD_UNSET_ROOM5_DND : var aRoom = Room(parentGame_.getMO("ROOM5")); aRoom.unOrderIt(); return; case CMD_SET_ROOM1_DND : var aRoom = Room(parentGame_.getMO("ROOM1")); aRoom.orderIt(); return; case CMD_SET_ROOM2_DND : var aRoom = Room(parentGame_.getMO("ROOM2")); aRoom.orderIt(); return; case CMD_SET_ROOM3_DND : var aRoom = Room(parentGame_.getMO("ROOM3")); aRoom.orderIt(); return; case CMD_SET_ROOM4_DND : var aRoom = Room(parentGame_.getMO("ROOM4")); aRoom.orderIt(); return; case CMD_SET_ROOM5_DND : var aRoom = Room(parentGame_.getMO("ROOM5")); aRoom.orderIt(); return; case CMD_OCCUPY_ROOM2 : whereIs_ = "ROOM2"; var aRoom = Room(parentGame_.getMO("ROOM2")); aRoom.animObject.sendSignalState(["ROOM2"], "closing"); currRoom_ = aRoom; inRoom_ = true; aRoom.occupied_ = true; Helper.PlaySound("door_close"); return; case CMD_OCCUPY_ROOM3 : whereIs_ = "ROOM3"; var aRoom = Room(parentGame_.getMO("ROOM3")); aRoom.animObject.sendSignalState(["ROOM3"], "closing"); currRoom_ = aRoom; inRoom_ = true; aRoom.occupied_ = true; Helper.PlaySound("door_close"); return; case CMD_OCCUPY_ROOM4 : whereIs_ = "ROOM4"; var aRoom = Room(parentGame_.getMO("ROOM4")); aRoom.animObject.sendSignalState(["ROOM4"], "closing"); currRoom_ = aRoom; inRoom_ = true; aRoom.occupied_ = true; Helper.PlaySound("door_close"); return; case CMD_CLOSE_ROOM5 : var aRoom = Room(parentGame_.getMO("ROOM5")); aRoom.animObject.sendSignalState(["ROOM5"], "closing"); Helper.PlaySound("door_close"); return; case CMD_CLOSE_ROOM1 : var aRoom = Room(parentGame_.getMO("ROOM1")); aRoom.animObject.sendSignalState(["ROOM1"], "closing"); Helper.PlaySound("door_close"); return; case CMD_OCCUPY_ROOM5 : whereIs_ = "ROOM5"; var aRoom = Room(parentGame_.getMO("ROOM5")); aRoom.animObject.sendSignalState(["ROOM5"], "closing"); currRoom_ = aRoom; inRoom_ = true; aRoom.occupied_ = true; Helper.PlaySound("door_close"); return; case CMD_OPEN_ROOM1 : var aRoom = Room(parentGame_.getMO("ROOM1")); aRoom.animObject.sendSignalState(["ROOM1"], "opening"); currCmd_ = CMD_OPEN_ROOM1; Helper.PlaySound("door_open", 1); return; case CMD_OPEN_ROOM2 : var aRoom = Room(parentGame_.getMO("ROOM2")); aRoom.animObject.sendSignalState(["ROOM2"], "opening"); currCmd_ = CMD_OPEN_ROOM2; Helper.PlaySound("door_open", 1); return; case CMD_OPEN_ROOM3 : var aRoom = Room(parentGame_.getMO("ROOM3")); aRoom.animObject.sendSignalState(["ROOM3"], "opening"); currCmd_ = CMD_OPEN_ROOM3; Helper.PlaySound("door_open", 1); return; case CMD_OPEN_ROOM4 : var aRoom = Room(parentGame_.getMO("ROOM4")); aRoom.animObject.sendSignalState(["ROOM4"], "opening"); currCmd_ = CMD_OPEN_ROOM4; Helper.PlaySound("door_open", 1); return; case CMD_OPEN_ROOM5 : var aRoom = Room(parentGame_.getMO("ROOM5")); aRoom.animObject.sendSignalState(["ROOM5"], "opening"); currCmd_ = CMD_OPEN_ROOM5; Helper.PlaySound("door_open", 1); return; case CMD_GO_ROOM5 : if (currCmd_ != CMD_GO_ROOM5) { currCmd_ = CMD_GO_ROOM5; var aRoom = Room(parentGame_.getMO("ROOM5")); targetx = aRoom.jEntry_.x + 2; targety = aRoom.jEntry_.y + (aRoom.jEntry_.height / 2); heroToPoint(targetx, targety); } return; case CMD_GO_ROOM1 : if (currCmd_ != CMD_GO_ROOM1) { currCmd_ = CMD_GO_ROOM1; var aRoom = Room(parentGame_.getMO("ROOM1")); targetx = aRoom.jEntry_.x + 30; targety = aRoom.jEntry_.y + (aRoom.jEntry_.height / 2); heroToPoint(targetx, targety); } return; case CMD_GO_ROOM2 : if (currCmd_ != CMD_GO_ROOM2) { currCmd_ = CMD_GO_ROOM2; animObject.sendSignalState([animObject.getName()], "moving"); var aRoom = Room(parentGame_.getMO("ROOM2")); targetx = aRoom.jEntry_.x + (aRoom.jEntry_.width / 2); targety = aRoom.jEntry_.y + (aRoom.jEntry_.height / 2); aRoom.ordered_ = true; aRoom.customer_ = this; heroToPoint(targetx, targety); } return; case CMD_GO_ROOM3 : if (currCmd_ != CMD_GO_ROOM3) { currCmd_ = CMD_GO_ROOM3; animObject.sendSignalState([animObject.getName()], "moving"); var aRoom = Room(parentGame_.getMO("ROOM3")); targetx = aRoom.jEntry_.x + (aRoom.jEntry_.width / 2); targety = aRoom.jEntry_.y + (aRoom.jEntry_.height / 2); aRoom.ordered_ = true; aRoom.customer_ = this; heroToPoint(targetx, targety); } return; case CMD_GO_ROOM4 : if (currCmd_ != CMD_GO_ROOM4) { currCmd_ = CMD_GO_ROOM4; animObject.sendSignalState([animObject.getName()], "moving"); var aRoom = Room(parentGame_.getMO("ROOM4")); targetx = aRoom.jEntry_.x + (aRoom.jEntry_.width / 2); targety = aRoom.jEntry_.y + (aRoom.jEntry_.height / 2); aRoom.ordered_ = true; aRoom.customer_ = this; heroToPoint(targetx, targety); } return; case CMD_HALLO : Helper.PlaySound(hallo_snd_, 1); return; case CMD_APPEAR : currCmd_ = CMD_APPEAR; return; case CMD_GO_UP_ROOM1 : if (currCmd_ != CMD_GO_UP_ROOM1) { currCmd_ = CMD_GO_UP_ROOM1; _y = 20; _x = _x - 10; } return; case CMD_GO_UP_ROOM5 : if (currCmd_ != CMD_GO_UP_ROOM5) { currCmd_ = CMD_GO_UP_ROOM5; _y = 20; _x = _x - 10; parentGame_.updateDepths(this); } return; case CMD_GO_DOWN_ROOM5 : var aLadder = parentGame_.getMO("LADDER_RIGHT_BTM"); _x = aLadder.jEntry_.x + 1; _y = (aLadder.jEntry_.y + (aLadder.jEntry_.height / 2)) - _height; return; case CMD_GO_DOWN_ROOM1 : var aLadder = parentGame_.getMO("LADDER_LEFT_BTM"); _x = aLadder.jEntry_.x + 1; _y = (aLadder.jEntry_.y + (aLadder.jEntry_.height / 2)) - _height; return; case CMD_GO_ROOM1_TOP : var aRoom = Room(parentGame_.getMO("ROOM1")); targetx = (aRoom.jEntry_.x + (aRoom.jEntry_.width / 2)) - 30; targety = aRoom.jEntry_.y + (aRoom.jEntry_.height / 2); heroToPoint(targetx, targety); return; case CMD_GO_ROOM5_TOP : var aRoom = Room(parentGame_.getMO("ROOM5")); targetx = (aRoom.jEntry_.x + (aRoom.jEntry_.width / 2)) - 30; targety = aRoom.jEntry_.y + (aRoom.jEntry_.height / 2); heroToPoint(targetx, targety); return; case CMD_WAITING : currCmd_ = CMD_WAITING; startDisTime_ = 0; return; case CMD_DISAPPEAR : if (currCmd_ != CMD_DISAPPEAR) { currCmd_ = CMD_DISAPPEAR; startDisTime_ = 0; } return; case CMD_GO_ROOM1_BTM : if (currCmd_ != CMD_GO_ROOM1_BTM) { currCmd_ = CMD_GO_ROOM1_BTM; animObject.sendSignalState([animObject.getName()], "moving"); } var aRoom = Room(parentGame_.getMO("ROOM1")); aRoom.ordered_ = true; aRoom.customer_ = this; var aLadder = parentGame_.getMO("LADDER_LEFT_BTM"); targetx = aLadder.jEntry_.x + (aLadder.jEntry_.width / 2); targety = aLadder.jEntry_.y + (aLadder.jEntry_.height / 2); heroToPoint(targetx, targety); return; case CMD_GO_ROOM5_BTM : if (currCmd_ != CMD_GO_ROOM5_BTM) { currCmd_ = CMD_GO_ROOM5_BTM; animObject.sendSignalState([animObject.getName()], "moving"); } var aRoom = Room(parentGame_.getMO("ROOM5")); aRoom.ordered_ = true; aRoom.customer_ = this; var aLadder = parentGame_.getMO("LADDER_RIGHT_BTM"); targetx = (aLadder.jEntry_.x + aLadder.jEntry_.width) - 1; targety = aLadder.jEntry_.y + (aLadder.jEntry_.height / 2); heroToPoint(targetx, targety); return; case CMD_AWAITING_RECEPTION : currCmd_ = CMD_AWAITING_RECEPTION; animObject.sendSignalState([animObject.getName()], "stay"); return; case CMD_GO_OUT : currCmd_ = CMD_GO_OUT; animObject.sendSignalState([animObject.getName()], "moving"); heroToPoint(ENTERX - 5, ENTERY); return; case CMD_GO_ENTR : currCmd_ = CMD_ENTERING_HTL; animObject.sendSignalState([animObject.getName()], "moving"); heroToPoint(WAITINGX, WAITINGY); return; case CMD_ENTERING_HTL : _x = ENTERX - (_width / 2); _y = ENTERY - _height; currCmd_ = CMD_ENTERING_HTL; Helper.PlaySound("door_main_bell"); animObject.sendSignalState([animObject.getName()], "moving"); heroToPoint(WAITINGX, WAITINGY); return; case CMD_AWAITING_ENTR : currCmd_ = CMD_AWAITING_ENTR; return; case CMD_GO_ARMCHAIR_RIGHT : currCmd_ = CMD_GO_ARMCHAIR_RIGHT; var aReceptn = parentGame_.getMO("ARMCHAIR_RIGHT"); var cEntry = aReceptn.getCentry(); heroToPoint(cEntry.x + (cEntry.width / 2), cEntry.y + cEntry.height); return; case CMD_GO_CHAIR : currCmd_ == aCommand; var aChair = parentGame_.getMO("CHAIR"); var cEntry = aChair.getCentry(); heroToPoint(cEntry.x + (cEntry.width / 2), cEntry.y + 1); return; case CMD_GO_ARMCHAIR_LEFT : currCmd_ = CMD_GO_ARMCHAIR_LEFT; var aReceptn = parentGame_.getMO("ARMCHAIR_LEFT"); var cEntry = aReceptn.getCentry(); heroToPoint(cEntry.x + (cEntry.width / 2), cEntry.y + cEntry.height); return; case CMD_GO_RECEPTION : currCmd_ = CMD_GO_RECEPTION; var aReceptn = parentGame_.getMO("RECEPTION1"); var cEntry = aReceptn.getCentry(); heroToPoint(cEntry.x + (cEntry.width / 2), cEntry.y + 24); } } function DoPathMove() { if (HasPath()) { drawPath(path); var nextpoint = path.shift(); target_move = new flash.geom.Point(parentGame_.map_.XConvertToLocal(nextpoint[1]), parentGame_.map_.YConvertToLocal(nextpoint[0])); target_move.x = target_move.x + Map.CELL_SIZE; target_move.y = target_move.y + Map.CELL_SIZE; var dx = ((target_move.x - (_width / 2)) - _x); var dy = (((target_move.y - _height) + 2) - _y); setMovingDirection(Math.atan2(dy, dx)); } } function hasCheckedRequest(aName) { if ((request_.name_ == aName) && (chkSmb_ != undefined)) { return(true); } return(false); } function hasRequests() { if ((request_.name_ != "") && (chkSmb_ == undefined)) { return(true); } return(false); } function hasRequest(aName) { if (request_.name_ == aName) { return(true); } return(false); } function quant(timeDone) { if (hitTest(parentGame_._xmouse, parentGame_._ymouse, true) && (_alpha != 0)) { selectIt(); } else { unselectIt(); } if (target_move != undefined) { var dx = ((target_move.x - (_width / 2)) - _x); var dy = (((target_move.y - _height) + 2) - _y); var ang = Math.atan2(dy, dx); var speedx = (((Math.cos(ang) * velocity_) * timeDone) / 1000); var speedy = (((Math.sin(ang) * velocity_) * timeDone) / 1000); if ((Math.abs(dx) <= ((velocity_ * timeDone) / 1000)) && (Math.abs(dy) <= ((velocity_ * timeDone) / 1000))) { _x = target_move.x - (_width / 2); _y = (target_move.y - _height) + 2; parentGame_.updateDepths(this); if (HasPath()) { DoPathMove(); // unexpected jump } resetTargetMove(); return(undefined); } var xchanged = false; if ((_x + speedx) != _x) { xchanged = true; } _x = _x + speedx; var ychanged = false; if ((_y + speedy) != _y) { ychanged = true; } _y = _y + speedy; if ((ychanged == true) || (xchanged == true)) { parentGame_.updateDepths(this); } if (((ychanged == false) && (xchanged == false)) && (!HasPath())) { resetTargetMove(); return(undefined); } if (target_move != undefined) { updateAnimation(); } } else if ((currCmd_ == -1) && (cmdStacks_.length > 0)) { resetTargetMove(); } switch (currCmd_) { case CMD_RESET : leaving_ = false; inRoom_ = false; requestsArr_.splice(0, requestsArr_.length); var tempArr = new Array(); tempArr.push("clean"); var i = 0; while (i < parentGame_.reqsPossible_.length) { tempArr.push(parentGame_.reqsPossible_[i]); i++; } while (tempArr.length > 0) { var tempInd = Math.floor(Math.random() * tempArr.length); var aVal = tempArr[tempInd]; requestsArr_.push(aVal); tempArr.splice(tempInd, 1); } if (Math.random() > 0.5) { requestsArr_.reverse(); } requestsArr_.unshift("add"); popRequest(); resetTargetMove(); _alpha = 100; break; case CMD_ENTERING_HTL : break; case CMD_AWAITING_ENTR : resetTargetMove(); break; case CMD_AWAITING_RECEPTION : break; case CMD_OPEN_ROOM1 : var aRoom = Room(parentGame_.getMO("ROOM1")); if (aRoom.animObject.getCurrState().getStateName() == "OPENED") { resetTargetMove(); } break; case CMD_OPEN_ROOM2 : var aRoom = Room(parentGame_.getMO("ROOM2")); if (aRoom.animObject.getCurrState().getStateName() == "OPENED") { resetTargetMove(); } break; case CMD_OPEN_ROOM3 : var aRoom = Room(parentGame_.getMO("ROOM3")); if (aRoom.animObject.getCurrState().getStateName() == "OPENED") { resetTargetMove(); } break; case CMD_OPEN_ROOM4 : var aRoom = Room(parentGame_.getMO("ROOM4")); if (aRoom.animObject.getCurrState().getStateName() == "OPENED") { resetTargetMove(); } break; case CMD_OPEN_ROOM5 : var aRoom = Room(parentGame_.getMO("ROOM5")); if (aRoom.animObject.getCurrState().getStateName() == "OPENED") { resetTargetMove(); } break; case CMD_APPEAR : startDisTime_ = startDisTime_ + timeDone; _alpha = 100 * (startDisTime_ / DISAPPLENGTH); if (_alpha >= 100) { startDisTime_ = 0; resetTargetMove(); } break; case CMD_GO_UP_ROOM1 : startDisTime_ = startDisTime_ + timeDone; if (startDisTime_ >= UPPINGLENTH) { resetTargetMove(); startDisTime_ = 0; } break; case CMD_GO_UP_ROOM5 : startDisTime_ = startDisTime_ + timeDone; if (startDisTime_ >= UPPINGLENTH) { resetTargetMove(); startDisTime_ = 0; } break; case CMD_WAITING : startDisTime_ = startDisTime_ + timeDone; if (startDisTime_ >= WAITINGLENGTH) { startDisTime_ = 0; var aObject = parentGame_.getMO(whereIs_); aObject.counter_ = 0; if (whereIs_ == "CHAIR") { aObject.doSignal([aObject.animObject.getName(), "DEFAULT", "PLATE"], "uncheck"); } whereIs_ = ""; returnAtRoom(); shadowClip_._x = shadowX_; shadowClip_._y = shadowY_; } break; case CMD_DISAPPEAR : startDisTime_ = startDisTime_ + timeDone; _alpha = 100 - (100 * (startDisTime_ / DISAPPLENGTH)); if (_alpha > 0) { break; } resetTargetMove(); startDisTime_ = 0; } if (request_.name_ == "") { if ((currRoom_ == undefined) && (leaving_ == false)) { last_request_end = last_request_end + timeDone; if (last_request_end >= between_interval_) { popRequest(); } } else if ((currRoom_.isRequesting() == false) && (inRoom_ == true)) { last_request_end = last_request_end + timeDone; if (last_request_end >= between_interval_) { var freeMebel = parentGame_.getFreeOuterMebels(); if (requestsArr_[0] == "eat") { var eatFree = false; var aChair = parentGame_.getMO("CHAIR"); if (aChair.counter_ == 0) { eatFree = true; } if (eatFree == true) { aChair.counter_ = 1; doChairRequest(); } else { requestsArr_.reverse(); last_request_end = 0; } } else if (((((Math.random() > 0.1) && (freeMebel.length > 0)) && (requestsArr_.length > 0)) && (requestsArr_[0] != "clean")) && (requestsArr_[0] != "phone")) { if (freeMebel.length > 0) { var mebInd = Math.floor((freeMebel.length - 1) * Math.random()); var aMeb = freeMebel[mebInd]; last_request_end = 0; switch (aMeb.getPersName()) { case "ARMCHAIR_LEFT" : doArmChairLeftRequest(); break; case "ARMCHAIR_RIGHT" : doArmChairRightRequest(); } } } else { popRequest(); } } } } if (_alpha > 0) { animObject.quant(timeDone); } if (request_.name_ != "") { request_.quant(timeDone); } } function setStateChecker(aFunction) { checkFunction = aFunction; } function CreateByXML(xmlScript, parentGame) { inRoom_ = false; waitingTime_ = 0; currRoom_ = undefined; requestsArr_ = new Array(); orderNum_ = -1; cmdStacks_ = new Array(); currCmd_ = -1; request_ = new custRequest(parentGame); request_.parentCust_ = this; parentGame_ = parentGame; var timestart = getTimer(); circleX_ = Number(xmlScript.firstChild.childNodes[0].attributes.circlex); shadowX_ = Number(xmlScript.firstChild.childNodes[0].attributes.shadowx); shadowY_ = Number(xmlScript.firstChild.childNodes[0].attributes.shadowy); shadowSy_ = Number(xmlScript.firstChild.childNodes[0].attributes.shadow_sy); shadowSRx_ = Number(xmlScript.firstChild.childNodes[0].attributes.shadow_srx); shadowSLx_ = Number(xmlScript.firstChild.childNodes[0].attributes.shadow_slx); hallo_snd_ = xmlScript.firstChild.childNodes[0].attributes.hallo; resultBitmap = new flash.display.BitmapData(Number(xmlScript.firstChild.childNodes[0].attributes.width), Number(xmlScript.firstChild.childNodes[0].attributes.height), true, 0); persName_ = xmlScript.firstChild.childNodes[ANIMATIONIND].nodeName + parentGame.customersArr_.length; animObject = new AnimObject(); animObject.createByXML(xmlScript.firstChild.childNodes[ANIMATIONIND], this); bmpNorm_ = flash.display.BitmapData.loadBitmap(xmlScript.firstChild.childNodes[PORTSIND].attributes.normal); drawIt(); shadowClip_ = attachMovie("mc_shadow", "shadow1", getNextHighestDepth()); shadowClip_._y = shadowY_; shadowClip_._x = shadowX_; } function popRequest() { last_request_end = 0; if (requestsArr_.length == 0) { leaveHotel(); return(undefined); } if (inRoom_ == false) { if (requestsArr_.length > 0) { if (aCrug == undefined) { aCrug = createEmptyMovieClip("krug", getNextHighestDepth()); aCrug._x = circleX_; aCrug._y = -20; } var reqName = String(requestsArr_.shift()); var wait = AVERAGE_WAIT_TIME; switch (whereIs_) { case "ARMCHAIR_LEFT" : case "ARMCHAIR_RIGHT" : wait = wait + 10000; } switch (reqName) { case "add" : var aObj = parentGame_.getMO("RECEPTION1"); wait = wait + aObj.wait_; break; case "cup" : var aObj = parentGame_.getMO("COFFEE"); wait = wait + aObj.wait_; break; case "daily" : var aObj = parentGame_.getMO("ADD_LEFT"); wait = wait + aObj.wait_; break; case "phone" : var aObj = parentGame_.getMO("ADD_RIGHT"); wait = wait + aObj.wait_; Helper.PlaySound("call", 1); break; case "eat" : var aObj = parentGame_.getMO("CHAIR"); wait = wait + aObj.wait_; } request_.activate(reqName, wait, aCrug, this); } } else { var reqName = String(requestsArr_.shift()); currRoom_.activateRequest(reqName); } } function MoveToPath(path_array) { path = path_array; DoPathMove(); } function drawPath(pathArray) { parentGame_.pathArr_ = pathArray; } function HasPath() { return((path != undefined) && (path.length > 0)); } function heroToPoint(xpos, ypos) { var pathArray = Pathfinding.findPath(parentGame_.map_.map, parentGame_.map_.YConvertToMap((_y + _height) + 2), parentGame_.map_.XConvertToMap(_x + (_width / 2)), parentGame_.map_.YConvertToMap(ypos), parentGame_.map_.XConvertToMap(xpos)); pathArray.shift(); pathArray.shift(); MoveToPath(pathArray); } static var AVERAGE_WAIT_TIME = 12000; static var ROOM_WAIT_TIME = 22000; static var CLEAN_WAIT_TIME = 22000; static var DISAPPLENGTH = 140; static var UPPINGLENTH = 200; static var WAITINGLENGTH = 8000; static var CMD_ENTERING_HTL = 0; static var CMD_AWAITING_ENTR = 1; static var CMD_GO_RECEPTION = 2; static var CMD_AWAITING_RECEPTION = 3; static var CMD_GO_OUT = 4; static var CMD_GO_ENTR = 5; static var CMD_GO_ROOM1_BTM = 6; static var CMD_DISAPPEAR = 7; static var CMD_GO_UP_ROOM1 = 8; static var CMD_APPEAR = 9; static var CMD_GO_ROOM1 = 10; static var CMD_ON_ROOM1 = 11; static var CMD_OPEN_ROOM1 = 12; static var CMD_OCCUPY_ROOM1 = 14; static var CMD_GO_ROOM2 = 15; static var CMDON_ROOM2 = 16; static var CMD_OPEN_ROOM2 = 17; static var CMD_OCCUPY_ROOM2 = 19; static var CMD_GO_ROOM3 = 20; static var CMDON_ROOM3 = 21; static var CMD_OPEN_ROOM3 = 22; static var CMD_OCCUPY_ROOM3 = 24; static var CMD_GO_ROOM4 = 25; static var CMDON_ROOM4 = 21; static var CMD_OPEN_ROOM4 = 26; static var CMD_OCCUPY_ROOM4 = 28; static var CMD_GO_ROOM5 = 29; static var CMDON_ROOM5 = 30; static var CMD_OPEN_ROOM5 = 31; static var CMD_OCCUPY_ROOM5 = 33; static var CMD_LEAVE_ROOM1 = 34; static var CMD_CLOSE_ROOM1 = 35; static var CMD_LEAVE_ROOM2 = 36; static var CMD_CLOSE_ROOM2 = 37; static var CMD_LEAVE_ROOM3 = 38; static var CMD_CLOSE_ROOM3 = 39; static var CMD_LEAVE_ROOM4 = 40; static var CMD_CLOSE_ROOM4 = 41; static var CMD_LEAVE_ROOM5 = 42; static var CMD_CLOSE_ROOM5 = 43; static var CMD_GOTOPAY = 44; static var CMD_TURN12 = 46; static var CMD_TURN6 = 47; static var CMD_TURN3 = 48; static var CMD_TURN9 = 49; static var CMD_TURN10_5 = 50; static var CMD_TURN1_5 = 51; static var CMD_TURN4_5 = 52; static var CMD_TURN7_5 = 53; static var CMD_GO_ROOM1_TOP = 54; static var CMD_GO_DOWN_ROOM1 = 55; static var CMD_PUSH_MONEY = 56; static var CMD_STAND_OUT = 57; static var CMD_RESET = 58; static var CMD_WAIT_SMTH = 59; static var CMD_WAIT_1000 = 62; static var CMD_GO_ARMCHAIR_LEFT = 63; static var CMD_SIT_ARMCHAIR_LEFT = 64; static var CMD_SIT_ARMCHAIR_RIGHT = 65; static var CMD_LEAVE_ROOM = 66; static var CMD_POP_REQUEST = 67; static var CMD_GO_ARMCHAIR_RIGHT = 68; static var CMD_GO_CHAIR = 69; static var CMD_SIT_CHAIR = 70; static var CMD_GO_DOWN_ROOM5 = 71; static var CMD_GO_ROOM5_BTM = 72; static var CMD_GO_UP_ROOM5 = 73; static var CMD_GO_ROOM5_TOP = 74; static var CMD_SIT_COFFE_DRINK = 75; static var CMD_WAITING = 76; static var CMD_SET_ROOM1_DND = 77; static var CMD_SET_ROOM2_DND = 78; static var CMD_SET_ROOM3_DND = 79; static var CMD_SET_ROOM4_DND = 80; static var CMD_SET_ROOM5_DND = 81; static var CMD_UNSET_ROOM1_DND = 82; static var CMD_UNSET_ROOM2_DND = 83; static var CMD_UNSET_ROOM3_DND = 84; static var CMD_UNSET_ROOM4_DND = 85; static var CMD_UNSET_ROOM5_DND = 86; static var CMD_HALLO = 87; static var MINTIME_BETWEEN_REQUESTS = 5000; static var MAXTIME_BETWEEN_REQUESTS = 20000; static var ENTERX = Stage.width - 5; static var ENTERY = 255; static var WAITINGX = Stage.width - 50; static var WAITINGY = 255; var selected_ = true; static var ANIMATIONIND = 0; static var PORTSIND = 1; var velocity_ = 160; var prev_turn = -1; }Symbol 367 MovieClip [__Packages.Map] Frame 0class Map { var map, X, Y; function Map () { map = new Array(); } function XConvertToLocal(mapx) { return(X + (mapx * CELL_SIZE)); } function YConvertToLocal(mapy) { return(Y + (mapy * CELL_SIZE)); } function XConvertToMap(locx) { return(Math.floor((locx - X) / CELL_SIZE)); } function YConvertToMap(locy) { return(Math.floor((locy - Y) / CELL_SIZE)); } static var CELL_SIZE = 20; }Symbol 368 MovieClip [__Packages.Pathfinding] Frame 0class Pathfinding { var mapStatus, openList; function Pathfinding () { } function isOpen(y, x) { return(mapStatus[y][x].open); } function isClosed(y, x) { return(mapStatus[y][x].closed); } function nearerSquare() { var minimum = 999999; var indexFound = 0; var thisF = undefined; var thisSquare = undefined; var i = openList.length; while ((i--) > 0) { thisSquare = mapStatus[openList[i][0]][openList[i][1]]; thisF = thisSquare.heuristic + thisSquare.movementCost; if (thisF <= minimum) { minimum = thisF; indexFound = i; } } return(indexFound); } function closeSquare(y, x) { var len = openList.length; var i = 0; while (i < len) { if (openList[i][0] == y) { if (openList[i][1] == x) { openList.splice(i, 1); break; } } i++; } mapStatus[y][x].open = false; mapStatus[y][x].closed = true; } function openSquare(y, x, parent, movementCost, heuristic, replacing) { if (!replacing) { openList.push([y, x]); mapStatus[y][x] = {heuristic:heuristic, open:true, closed:false}; } mapStatus[y][x].parent = parent; mapStatus[y][x].movementCost = movementCost; } function findPathInternal(map, startY, startX, endY, endX) { if ((startY == undefined) || (startX == undefined)) { return(null); } if ((endY == undefined) || (endX == undefined)) { return(null); } var mapH = map.length; var mapW = map[0].length; mapStatus = new Array(); var i = 0; while (i < mapH) { mapStatus[i] = new Array(); i++; } openList = new Array(); openSquare(startY, startX, undefined, 0); while ((openList.length > 0) && (!isClosed(endY, endX))) { var i = nearerSquare(); var nowY = openList[i][0]; var nowX = openList[i][1]; closeSquare(nowY, nowX); var j = (nowY - 1); while (j < (nowY + 2)) { var k = (nowX - 1); while (k < (nowX + 2)) { if (((((((j >= 0) && (j < mapH)) && (k >= 0)) && (k < mapW)) && (!((j == nowY) && (k == nowX)))) && ((ALLOW_DIAGONAL || (j == nowY)) || (k == nowX))) && (((ALLOW_DIAGONAL_CORNERING || (j == nowY)) || (k == nowX)) || ((map[j][nowX] != 0) && (map[nowY][k])))) { if (map[j][k] != 0) { if (!isClosed(j, k)) { var movementCost = (mapStatus[nowY][nowX].movementCost + ((((j == nowY) || (k == nowX)) ? (HV_COST) : (D_COST)) * map[j][k])); if (isOpen(j, k)) { if (movementCost < mapStatus[j][k].movementCost) { openSquare(j, k, [nowY, nowX], movementCost, undefined, true); } } else { var heuristic = ((Math.abs(j - endY) + Math.abs(k - endX)) * 10); openSquare(j, k, [nowY, nowX], movementCost, heuristic, false); } } } } k++; } j++; } } var pFound = isClosed(endY, endX); if (pFound) { var returnPath = new Array(); var nowY = endY; var nowX = endX; while ((nowY != startY) || (nowX != startX)) { returnPath.push([nowY, nowX]); var newY = mapStatus[nowY][nowX].parent[0]; var newX = mapStatus[nowY][nowX].parent[1]; nowY = newY; nowX = newX; } returnPath.push([startY, startX]); returnPath.reverse(); return(returnPath); } return(null); } static function findPath(map, startY, startX, endY, endX) { var pf = new Pathfinding(); var ret = pf.findPathInternal(map, startY, startX, endY, endX); delete pf; return(ret); } var HV_COST = 10; var D_COST = 14; var ALLOW_DIAGONAL = true; var ALLOW_DIAGONAL_CORNERING = false; }Symbol 369 MovieClip [__Packages.CmdStack] Frame 0class CmdStack { var cmdArr_; function CmdStack () { } function addCommands(cmdArr) { var i = 0; while (i < cmdArr.length) { cmdArr_.push(cmdArr[i]); i++; } } static var GIVE_COFFEE_TO_ROOM2 = 0; static var GIVE_COFFEE_TO_ROOM1 = 1; static var GIVE_A_KEY = 2; static var TAKE_COFFEE = 3; static var GO_TO_RECEPTION = 4; static var TAKE_KEY = 5; static var TAKE_DAILY = 6; static var GIVE_DAILY_TO_ROOM1 = 7; static var GIVE_COFFEE_TO_ROOM3 = 8; static var GIVE_COFFEE_TO_ROOM4 = 9; static var GIVE_COFFEE_TO_ROOM5 = 10; static var GIVE_DAILY_TO_ROOM2 = 11; static var GIVE_DAILY_TO_ROOM3 = 12; static var GIVE_DAILY_TO_ROOM4 = 13; static var GIVE_DAILY_TO_ROOM5 = 14; static var TAKE_PHONE = 15; static var GIVE_PHONE_TO_ROOM1 = 16; static var GIVE_PHONE_TO_ROOM2 = 17; static var GIVE_PHONE_TO_ROOM3 = 18; static var GIVE_PHONE_TO_ROOM4 = 19; static var GIVE_PHONE_TO_ROOM5 = 20; static var GIVE_COFFEE_TO_LEFTARM = 21; static var GIVE_COFFEE_TO_RIGHTARM = 22; static var GIVE_PHONE_TO_LEFTARM = 23; static var GIVE_PHONE_TO_RIGHTARM = 24; static var GIVE_DAILY_TO_LEFTARM = 25; static var GIVE_DAILY_TO_RIGHTARM = 26; static var TAKE_EAT = 27; static var GIVE_EAT = 28; static var GIVE_CLEAN_TO_ROOM1 = 29; static var GIVE_CLEAN_TO_ROOM2 = 30; static var GIVE_CLEAN_TO_ROOM3 = 31; static var GIVE_CLEAN_TO_ROOM4 = 32; static var GIVE_CLEAN_TO_ROOM5 = 33; static var GIVE_WATER_PLANT_LEFT = 34; static var GIVE_WATER_PLANT_RIGHT = 35; static var GO_KITCHEN = 36; static var LEAVE_KITCHEN = 37; static var REPAIR_COFFEE = 38; static var REPAIR_ADD_LEFT = 39; static var REPAIR_ADD_RIGHT = 40; static var WATER_FLOWER_LEFT = 41; static var WATER_FLOWER_RIGHT = 42; static var TAKE_MONEY = 43; static var GO_FOR_MONEY = 44; static var CMD_DICT = new Array("GIVE_COFFEE_TO_ROOM2", "GIVE_COFFEE_TO_ROOM1", "GIVE_A_KEY", "TAKE_COFFEE", "GO_TO_RECEPTION", "TAKE_KEY", "TAKE_DAILY", "GIVE_DAILY_TO_ROOM1", "GIVE_COFFEE_TO_ROOM3", "GIVE_COFFEE_TO_ROOM4", "GIVE_COFFEE_TO_ROOM5", "GIVE_DAILY_TO_ROOM2", "GIVE_DAILY_TO_ROOM3", "GIVE_DAILY_TO_ROOM4", "GIVE_DAILY_TO_ROOM5", "TAKE_PHONE", "GIVE_PHONE_TO_ROOM1", "GIVE_PHONE_TO_ROOM2", "GIVE_PHONE_TO_ROOM3", "GIVE_PHONE_TO_ROOM4", "GIVE_PHONE_TO_ROOM5", "GIVE_COFFEE_TO_LEFTARM", "GIVE_COFFEE_TO_RIGHTARM", "GIVE_PHONE_TO_LEFTARM", "GIVE_PHONE_TO_RIGHTARM", "GIVE_DAILY_TO_LEFTARM", "GIVE_DAILY_TO_RIGHTARM", "TAKE_EAT", "GIVE_EAT", "GIVE_CLEAN_TO_ROOM1", "GIVE_CLEAN_TO_ROOM2", "GIVE_CLEAN_TO_ROOM3", "GIVE_CLEAN_TO_ROOM4", "GIVE_CLEAN_TO_ROOM5", "GIVE_WATER_PLANT_LEFT", "GIVE_WATER_PLANT_RIGHT", "GO_KITCHEN", "LEAVE_KITCHEN", "REPAIR_COFFEE", "REPAIR_ADD_LEFT", "REPAIR_ADD_RIGHT", "WATER_FLOWER_LEFT", "WATER_FLOWER_RIGHT", "TAKE_MONEY", "GO_FOR_MONEY"); }Symbol 370 MovieClip [__Packages.RequestsManager] Frame 0class RequestsManager { var aGame_, reqQuery_, freeCustoms_; function RequestsManager (aGame) { aGame_ = aGame; reqQuery_ = new Array(); freeCustoms_ = new Array(); } function quant(dTime) { } }Symbol 371 MovieClip [__Packages.CmdStackFactory] Frame 0class CmdStackFactory { var stackArray_; function CmdStackFactory () { stackArray_ = new Array(); } function getStack(aName) { var aStack; if (stackArray_.length == 0) { aStack = new CmdStack(); aStack.stackName_ = aName; aStack.cmdArr_ = new Array(); return(aStack); } aStack = stackArray_[0]; aStack.cmdArr_.splice(0, aStack.cmdArr_.length); aStack.stackName_ = aName; stackArray_.splice(0, 1); return(aStack); } function storeStack(aStack) { stackArray_.push(aStack); } }Symbol 372 MovieClip [__Packages.Personal] Frame 0class Personal extends MovieClip implements IDrawAble, IMoveable { var currBlockInd_, cmdStacks_, parentGame_, inKitchen_, currBlockName_, _y, _x, persName_, animObject, _alpha, _height, currCmd_, startDisTime_, changed_, checkFunction, moving_direction, target_move, path, _width, resultBitmap, attachBitmap, operations_, shadowX_, shadowY_, shadowClip_, attachMovie; function Personal () { super(); } function doNextCommand() { cmdStacks_[currBlockInd_].cmdArr_.shift(); if (cmdStacks_[currBlockInd_].cmdArr_.length > 0) { doCommand(cmdStacks_[currBlockInd_].cmdArr_[0]); } else if (cmdStacks_.length > 0) { doNextBlock(); } } function isBlockDoneAble(blockName) { switch (blockName) { case CmdStack.CMD_DICT[CmdStack.REPAIR_COFFEE] : var aObj = parentGame_.getMO("COFFEE"); if (aObj.request_.name_ == "repair") { return(true); } cutBlock(blockName); return(false); case CmdStack.CMD_DICT[CmdStack.REPAIR_ADD_LEFT] : var aObj = parentGame_.getMO("ADD_LEFT"); if (aObj.request_.name_ == "repair") { return(true); } cutBlock(blockName); return(false); case CmdStack.CMD_DICT[CmdStack.REPAIR_ADD_RIGHT] : var aObj = parentGame_.getMO("ADD_RIGHT"); if (aObj.request_.name_ == "repair") { return(true); } cutBlock(blockName); return(false); case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM1] : var aRoom = Room(parentGame_.getMO("ROOM1")); if (aRoom.request_.name_ != "clean") { cutBlock(blockName); return(false); } break; case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM2] : var aRoom = Room(parentGame_.getMO("ROOM2")); if (aRoom.request_.name_ != "clean") { cutBlock(blockName); return(false); } break; case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM3] : var aRoom = Room(parentGame_.getMO("ROOM3")); if (aRoom.request_.name_ != "clean") { cutBlock(blockName); return(false); } break; case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM4] : var aRoom = Room(parentGame_.getMO("ROOM4")); if (aRoom.request_.name_ != "clean") { cutBlock(blockName); return(false); } break; case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM5] : var aRoom = Room(parentGame_.getMO("ROOM5")); if (aRoom.request_.name_ != "clean") { cutBlock(blockName); return(false); } break; case CmdStack.CMD_DICT[CmdStack.GO_KITCHEN] : if (inKitchen_ == true) { cutBlock(blockName); return(false); } break; case CmdStack.CMD_DICT[CmdStack.LEAVE_KITCHEN] : if (inKitchen_ != false) { break; } cutBlock(blockName); return(false); } return(true); } function cutBlock(blockName) { var i = 0; while (i < cmdStacks_.length) { if (cmdStacks_[i].stackName_ == blockName) { if (i != currBlockInd_) { cmdStacks_.splice(i, 1); } return; } i++; } } function doNextBlock() { var prevBlock = currBlockName_; if (prevBlock != "NONE") { cmdStacks_.splice(currBlockInd_, 1); } currBlockInd_ = -1; var i = 0; while (i < cmdStacks_.length) { var aBlock = cmdStacks_[i]; if (isBlockDoneAble(aBlock.stackName_) == true) { currBlockName_ = aBlock.stackName_; currBlockInd_ = i; break; } i++; } if (currBlockInd_ == -1) { goKitchen(); currBlockInd_ = cmdStacks_.length - 1; currBlockName_ = cmdStacks_[cmdStacks_.length - 1].stackName_; } if (cmdStacks_.length > 0) { var upperPos = false; var rightPos = false; var nextBlock = cmdStacks_[currBlockInd_]; if (_y < (Stage.height / 8)) { upperPos = true; if (_x > (Stage.width / 2)) { rightPos = true; } } else { upperPos = false; } switch (nextBlock.stackName_) { case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM1] : if (upperPos == false) { cmdStacks_[currBlockInd_].cmdArr_ = addRoom1Commands(); } else if (rightPos == true) { cmdStacks_[currBlockInd_].cmdArr_ = downfromRoom5(); var nextArr = addRoom1Commands(); var i = 0; while (i < nextArr.length) { cmdStacks_[currBlockInd_].cmdArr_.push(nextArr[i]); i++; } } break; case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM5] : if (upperPos == false) { cmdStacks_[currBlockInd_].cmdArr_ = addRoom5Commands(); } else if (rightPos == false) { cmdStacks_[currBlockInd_].cmdArr_ = downfromRoom1(); var nextArr = addRoom5Commands(); var i = 0; while (i < nextArr.length) { cmdStacks_[currBlockInd_].cmdArr_.push(nextArr[i]); i++; } } break; case CmdStack.CMD_DICT[CmdStack.WATER_FLOWER_LEFT] : case CmdStack.CMD_DICT[CmdStack.WATER_FLOWER_RIGHT] : case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM2] : case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM3] : case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM4] : case CmdStack.CMD_DICT[CmdStack.GO_KITCHEN] : if (upperPos != true) { break; } if (rightPos != true) { cmdStacks_[currBlockInd_].cmdArr_ = downfromRoom1(); } else { cmdStacks_[currBlockInd_].cmdArr_ = downfromRoom5(); } } switch (nextBlock.stackName_) { case CmdStack.CMD_DICT[CmdStack.WATER_FLOWER_LEFT] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_FLOWER_LEFT); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_WATER_FLOWER_LEFT); break; case CmdStack.CMD_DICT[CmdStack.WATER_FLOWER_RIGHT] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_FLOWER_RIGHT); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_WATER_FLOWER_RIGHT); break; case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM1] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_CLEAN_ROOM1); break; case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM2] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_ROOM2); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_CLEAN_ROOM2); break; case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM3] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_ROOM3); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_CLEAN_ROOM3); break; case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM4] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_ROOM4); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_CLEAN_ROOM4); break; case CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM5] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GIVE_CLEAN_ROOM5); break; case CmdStack.CMD_DICT[CmdStack.REPAIR_COFFEE] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_COFFEE); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_REPAIR_COFFEE); break; case CmdStack.CMD_DICT[CmdStack.REPAIR_ADD_RIGHT] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_PHONE); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_REPAIR_ADD_RIGHT); break; case CmdStack.CMD_DICT[CmdStack.GIVE_WATER_PLANT_LEFT] : break; case CmdStack.CMD_DICT[CmdStack.GIVE_WATER_PLANT_RIGHT] : break; case CmdStack.CMD_DICT[CmdStack.GO_KITCHEN] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_KITCHEN); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_SET_KITCHEN); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_DISAPPEAR); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_KITCHEN_AWAITING); break; case CmdStack.CMD_DICT[CmdStack.LEAVE_KITCHEN] : cmdStacks_[currBlockInd_].cmdArr_.push(CMD_UNSET_KITCHEN); if (persName_ == "MAID") { cmdStacks_[currBlockInd_].cmdArr_.push(CMD_TURN3); } else { cmdStacks_[currBlockInd_].cmdArr_.push(CMD_TURN9); } cmdStacks_[currBlockInd_].cmdArr_.push(CMD_APPEAR); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_GO_HALL); cmdStacks_[currBlockInd_].cmdArr_.push(CMD_AWAITING_HALL); } if ((cmdStacks_[currBlockInd_].cmdArr_[0] != CMD_AWAITING_RECEPTION) && (cmdStacks_[currBlockInd_].cmdArr_[0] != CMD_TAKE_KEY)) { animObject.sendSignalState([animObject.getName()], "move"); } doCommand(cmdStacks_[currBlockInd_].cmdArr_[0]); } } function reset() { switch (persName_) { case "PORTER" : _alpha = 0; _x = Stage.width; _y = 130; return; case "MAID" : _x = -30; _y = 240 - _height; _alpha = 0; } } function waterFlowerLeft() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.WATER_FLOWER_LEFT]); cmdStacks_.push(cmdStack); } function waterFlowerRight() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.WATER_FLOWER_RIGHT]); cmdStacks_.push(cmdStack); } function leaveKitchen() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.LEAVE_KITCHEN]); cmdStacks_.push(cmdStack); } function goKitchen() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GO_KITCHEN]); cmdStacks_.push(cmdStack); } function cleanRoom1() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM1]); cmdStacks_.push(cmdStack); } function cleanRoom2() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM2]); cmdStacks_.push(cmdStack); } function cleanRoom3() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM3]); cmdStacks_.push(cmdStack); } function cleanRoom4() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM4]); cmdStacks_.push(cmdStack); } function cleanRoom5() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.GIVE_CLEAN_TO_ROOM5]); cmdStacks_.push(cmdStack); } function repairCoffee() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.REPAIR_COFFEE]); cmdStacks_.push(cmdStack); } function repairAddLeft() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.REPAIR_ADD_LEFT]); cmdStacks_.push(cmdStack); } function repairAddRight() { var cmdStack = parentGame_.factoryStack_.getStack(CmdStack.CMD_DICT[CmdStack.REPAIR_ADD_RIGHT]); cmdStacks_.push(cmdStack); } function addRoom5Commands() { var cmdStack = new Array(); cmdStack.push(CMD_GO_ROOM5_BTM); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_UP_ROOM5); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_ROOM5); return(cmdStack); } function addRoom1Commands() { var cmdStack = new Array(); cmdStack.push(CMD_GO_ROOM1_BTM); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_UP_ROOM1); cmdStack.push(CMD_TURN3); cmdStack.push(CMD_APPEAR); cmdStack.push(CMD_GO_ROOM1); return(cmdStack); } function addComands(commands) { cmdStacks_.push(commands); } function doCommand(aCmd) { var targetx; var targety; currCmd_ = aCmd; switch (aCmd) { case CMD_REPAIR_COFFEE : Helper.PlaySound("action_repair", 3); var aCoffee = parentGame_.getMO("COFFEE"); aCoffee.request_.eraseRepair(); parentGame_.lastrepaired = 0; aCoffee.uncheckFirst(); startDisTime_ = 0; aCoffee.repareChecked_ = false; animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "repare")); return; case CMD_REPAIR_ADD_RIGHT : Helper.PlaySound("action_repair", 3); var aMeb = parentGame_.getMO("ADD_RIGHT"); aMeb.request_.eraseRepair(); parentGame_.lastrepaired = 0; aMeb.uncheckFirst(); startDisTime_ = 0; aMeb.repareChecked_ = false; animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "repare_flip")); return; case CMD_SET_KITCHEN : if (persName_ == "MAID") { if (((parentGame_.countcheckedRequests("clean") > 0) || (parentGame_.getMO("FLOWER_LEFT").chkSmbArr_.length > 0)) || (parentGame_.getMO("FLOWER_RIGHT").chkSmbArr_.length > 0)) { doNextBlock(); } else { inKitchen_ = true; } } else { inKitchen_ = true; } return; case CMD_UNSET_KITCHEN : inKitchen_ = false; return; case CMD_AWAITING_HALL : animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "wait")); if (persName_ == "MAID") { Helper.PlaySound("servant_appear1", 1); } return; case CMD_GO_HALL : if (persName_ == "MAID") { var jEntry = parentGame_.yelowPoints.KITCHEN; heroToPoint((jEntry.x + jEntry.width) - 2, (jEntry.y + jEntry.height) - 2); } else { var target = parentGame_.getMO("COFFEE"); var jEntry = target.getJentry(); heroToPoint(jEntry.x + 2, jEntry.y + 4); } return; case CMD_GO_DOWN_ROOM1 : var aLadder = parentGame_.getMO("LADDER_LEFT_BTM"); _x = aLadder.jEntry_.x + 1; _y = (aLadder.jEntry_.y + (aLadder.jEntry_.height / 2)) - _height; doNextCommand(); return; case CMD_GO_DOWN_ROOM5 : var aLadder = parentGame_.getMO("LADDER_RIGHT_BTM"); _x = aLadder.jEntry_.x + 1; _y = (aLadder.jEntry_.y + (aLadder.jEntry_.height / 2)) - _height; doNextCommand(); return; case CMD_GO_ROOM1_TOP : var aRoom = Room(parentGame_.getMO("ROOM1")); targetx = aRoom.jEntry_.x - 10; targety = aRoom.jEntry_.y + 1; heroToPoint(targetx, targety); return; case CMD_GO_ROOM5_TOP : var aRoom = Room(parentGame_.getMO("ROOM5")); targetx = (aRoom.jEntry_.x + (aRoom.jEntry_.width / 2)) + 10; targety = aRoom.jEntry_.y + 2; heroToPoint(targetx, targety); heroToPoint(targetx, targety); return; case CMD_TURN12 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "back"); doNextCommand(); return; case CMD_TURN6 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "front"); doNextCommand(); return; case CMD_TURN3 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "sideright"); doNextCommand(); return; case CMD_TURN9 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "sideleft"); doNextCommand(); return; case CMD_TURN1_5 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "backsideright"); doNextCommand(); return; case CMD_TURN4_5 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "frontsideright"); doNextCommand(); return; case CMD_TURN7_5 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "frontsideleft"); doNextCommand(); return; case CMD_TURN10_5 : animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "backsideleft"); doNextCommand(); return; case CMD_WATER_FLOWER_LEFT : var aObj = parentGame_.getMO("FLOWER_LEFT"); aObj.leafTime_ = 0; startDisTime_ = 0; aObj.uncheckFirst(); aObj.clearLeaves(); aObj.animObject.sendSignalState([aObj.animObject.getName()], "green"); aObj.isYellow_ = false; animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "watering")); return; case CMD_WATER_FLOWER_RIGHT : var aObj = parentGame_.getMO("FLOWER_RIGHT"); aObj.leafTime_ = 0; startDisTime_ = 0; aObj.uncheckFirst(); aObj.clearLeaves(); aObj.isYellow_ = false; aObj.animObject.sendSignalState([aObj.animObject.getName()], "green"); animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "watering")); return; case CMD_GIVE_CLEAN_ROOM1 : var aRoom = Room(parentGame_.getMO("ROOM1")); if (aRoom.request_.name_ == "clean") { aRoom.doneRequest(); startDisTime_ = 0; animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "clean")); Helper.PlaySound("cleaning", 1); } else { doNextCommand(); } return; case CMD_GIVE_CLEAN_ROOM2 : var aRoom = Room(parentGame_.getMO("ROOM2")); if (aRoom.request_.name_ == "clean") { aRoom.doneRequest(); startDisTime_ = 0; animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "clean")); Helper.PlaySound("cleaning", 1); } else { doNextCommand(); } return; case CMD_GIVE_CLEAN_ROOM3 : var aRoom = Room(parentGame_.getMO("ROOM3")); if (aRoom.request_.name_ == "clean") { aRoom.doneRequest(); startDisTime_ = 0; animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "clean")); Helper.PlaySound("cleaning", 1); } else { doNextCommand(); } return; case CMD_GIVE_CLEAN_ROOM4 : var aRoom = Room(parentGame_.getMO("ROOM4")); if (aRoom.request_.name_ == "clean") { aRoom.doneRequest(); startDisTime_ = 0; animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "clean")); Helper.PlaySound("cleaning", 1); } else { doNextCommand(); } return; case CMD_GIVE_CLEAN_ROOM5 : var aRoom = Room(parentGame_.getMO("ROOM5")); if (aRoom.request_.name_ == "clean") { animObject.sendSignalState(animObject.sendSignalState([animObject.getName()], "clean")); startDisTime_ = 0; aRoom.doneRequest(); Helper.PlaySound("cleaning", 1); } else { doNextCommand(); } return; case CMD_APPEAR : startDisTime_ = 0; return; case CMD_GO_UP_ROOM1 : _y = 18; _x = _x + 20; parentGame_.updateDepths(this); return; case CMD_GO_UP_ROOM5 : _y = 20; _x = _x - 10; parentGame_.updateDepths(this); return; case CMD_DISAPPEAR : startDisTime_ = 0; return; case CMD_GO_KITCHEN : if (persName_ == "MAID") { var jEntry = parentGame_.yelowPoints.KITCHEN; heroToPoint(jEntry.x + (jEntry.width / 2), jEntry.y + (jEntry.height / 2)); } else { var target = parentGame_.getMO("COFFEE"); var jEntry = target.getJentry(); heroToPoint((jEntry.x + jEntry.width) - 1, jEntry.y + 2); } return; case CMD_GO_PHONE : var aMeb = parentGame_.getMO("ADD_RIGHT"); targetx = (aMeb.jEntry_.x + aMeb.jEntry_.width) - 1; targety = aMeb.jEntry_.y + 3; heroToPoint(targetx, targety); return; case CMD_GO_COFFEE : var aCoffee = parentGame_.getMO("COFFEE"); targetx = aCoffee.jEntry_.x - 20; targety = aCoffee.jEntry_.y + (aCoffee.jEntry_.height / 2); heroToPoint(targetx, targety); return; case CMD_GO_FLOWER_LEFT : var aObj = parentGame_.getMO("FLOWER_LEFT"); heroToPoint(aObj.jEntry_.x + 2, aObj.jEntry_.y + 2); return; case CMD_GO_FLOWER_RIGHT : var aObj = parentGame_.getMO("FLOWER_RIGHT"); heroToPoint(aObj.jEntry_.x + 2, aObj.jEntry_.y + 2); return; case CMD_GO_ROOM2 : var i = 0; while (i < parentGame_.mapObjects_.length) { if (parentGame_.mapObjects_[i].getPersName() == "ROOM2") { targetx = parentGame_.mapObjects_[i].jEntry_.x + (parentGame_.mapObjects_[i].jEntry_.width / 2); targety = parentGame_.mapObjects_[i].jEntry_.y - 15; break; } i++; } heroToPoint(targetx, targety); return; case CMD_GO_ROOM3 : var i = 0; while (i < parentGame_.mapObjects_.length) { if (parentGame_.mapObjects_[i].getPersName() == "ROOM3") { targetx = parentGame_.mapObjects_[i].jEntry_.x + (parentGame_.mapObjects_[i].jEntry_.width / 2); targety = parentGame_.mapObjects_[i].jEntry_.y - 5; break; } i++; } heroToPoint(targetx, targety); return; case CMD_GO_ROOM4 : var i = 0; while (i < parentGame_.mapObjects_.length) { if (parentGame_.mapObjects_[i].getPersName() == "ROOM4") { targetx = parentGame_.mapObjects_[i].jEntry_.x + (parentGame_.mapObjects_[i].jEntry_.width / 2); targety = parentGame_.mapObjects_[i].jEntry_.y - 15; break; } i++; } heroToPoint(targetx, targety); return; case CMD_GO_ROOM5 : var aRoom = Room(parentGame_.getMO("ROOM5")); targetx = aRoom.jEntry_.x + 2; targety = aRoom.jEntry_.y + 2; heroToPoint(targetx, targety); return; case CMD_GO_ROOM1 : var aRoom = Room(parentGame_.getMO("ROOM1")); targetx = (aRoom.jEntry_.x + (aRoom.jEntry_.width / 2)) - 5; targety = aRoom.jEntry_.y + 2; heroToPoint(targetx, targety); return; case CMD_GO_ROOM1_BTM : var ladderLeft = parentGame_.getMO("LADDER_LEFT_BTM"); targetx = ladderLeft.jEntry_.x + (ladderLeft.jEntry_.width / 2); targety = ladderLeft.jEntry_.y + (ladderLeft.jEntry_.height / 2); heroToPoint(targetx, targety); return; case CMD_GO_ROOM5_BTM : var ladderLeft = parentGame_.getMO("LADDER_RIGHT_BTM"); targetx = ladderLeft.jEntry_.x + (ladderLeft.jEntry_.width / 2); targety = ladderLeft.jEntry_.y + (ladderLeft.jEntry_.height / 2); heroToPoint(targetx, targety); } } function startNewBlock() { if (cmdStacks_.length > 0) { var curStack = cmdStacks_[cmdStacks_.length - 1]; if (curStack.length == 0) { cmdStacks_.pop(); if (cmdStacks_.length > 0) { curStack = cmdStacks_[cmdStacks_.length - 1]; } } if (curStack.length > 0) { currCmd_ = Number(curStack.shift()); } } doCommand(currCmd_); } function getpersName() { return(persName_); } function setChanged(aVal) { changed_ = aVal; } function isChanged() { return(changed_); } function setStateChecker(aFunction) { checkFunction = aFunction; } function stateChecker(aFunction) { } function updateAnimation() { var newDirect = getTurnAnim(moving_direction); if (newDirect != prev_turn) { prev_turn = newDirect; } } function setMovingDirection(aVal) { moving_direction = aVal; } function startDisappear() { startDisTime_ = 0; } function getTargetMove() { return(target_move); } function drawPath(pathArray) { parentGame_.pathArr_ = pathArray; } function processMoving(timeDone) { } function DoPathMove() { if (HasPath()) { drawPath(path); var nextpoint = path.shift(); target_move = new flash.geom.Point(parentGame_.map_.XConvertToLocal(nextpoint[1]), parentGame_.map_.YConvertToLocal(nextpoint[0])); target_move.x = target_move.x + (Map.CELL_SIZE / 2); target_move.y = target_move.y + (Map.CELL_SIZE / 2); var dx = ((target_move.x - (_width / 2)) - _x); var dy = (((target_move.y - _height) + 2) - _y); setMovingDirection(Math.atan2(dy, dx)); } else { target_move = undefined; } } function downfromRoom1() { var cmdStack = new Array(); cmdStack.push(CMD_TURN6); cmdStack.push(CMD_GO_ROOM1_TOP); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_DOWN_ROOM1); cmdStack.push(CMD_TURN3); cmdStack.push(CMD_APPEAR); return(cmdStack); } function downfromRoom5() { var cmdStack = new Array(); cmdStack.push(CMD_TURN6); cmdStack.push(CMD_GO_ROOM5_TOP); cmdStack.push(CMD_DISAPPEAR); cmdStack.push(CMD_GO_DOWN_ROOM5); cmdStack.push(CMD_TURN3); cmdStack.push(CMD_APPEAR); return(cmdStack); } function quant(timeDone) { if ((currCmd_ == -1) && (cmdStacks_.length > 0)) { doNextBlock(); } if (((currCmd_ == CMD_AWAITING_HALL) || (currCmd_ == CMD_KITCHEN_AWAITING)) && (cmdStacks_.length > 1)) { doNextBlock(); } if (target_move != undefined) { var dx = ((target_move.x - (_width / 2)) - _x); var dy = (((target_move.y - _height) + 2) - _y); var ang = Math.atan2(dy, dx); var speedx = (((Math.cos(ang) * velocity_) * timeDone) / 1000); var speedy = (((Math.sin(ang) * velocity_) * timeDone) / 1000); if ((Math.abs(dx) <= ((velocity_ * timeDone) / 1000)) && (Math.abs(dy) <= ((velocity_ * timeDone) / 1000))) { _x = target_move.x - (_width / 2); _y = (target_move.y - _height) + 2; parentGame_.updateDepths(this); if (HasPath()) { DoPathMove(); } else { target_move = undefined; } } else { var xchanged = false; if ((_x + speedx) != _x) { xchanged = true; } _x = _x + speedx; var ychanged = false; if ((_y + speedy) != _y) { ychanged = true; } _y = _y + speedy; if ((ychanged == true) || (xchanged == true)) { parentGame_.updateDepths(this); } } } if (target_move != undefined) { updateAnimation(); } else { switch (currCmd_) { case CMD_GO_ROOM1_BTM : case CMD_GO_ROOM5_BTM : case CMD_GO_ROOM1_TOP : case CMD_GO_ROOM5_TOP : case CMD_GO_ROOM1 : case CMD_GO_ROOM2 : case CMD_GO_ROOM3 : case CMD_GO_ROOM4 : case CMD_GO_ROOM5 : case CMD_GO_KITCHEN : case CMD_GO_HALL : case CMD_SET_KITCHEN : case CMD_UNSET_KITCHEN : case CMD_GO_COFFEE : case CMD_GO_PHONE : case CMD_GO_FLOWER_LEFT : case CMD_GO_FLOWER_RIGHT : doNextCommand(); } } switch (currCmd_) { case CMD_APPEAR : startDisTime_ = startDisTime_ + timeDone; _alpha = 100 * (startDisTime_ / DISAPPLENGTH); if (_alpha >= 100) { startDisTime_ = 0; doNextCommand(); } break; case CMD_WATER_FLOWER_LEFT : case CMD_WATER_FLOWER_RIGHT : startDisTime_ = startDisTime_ + timeDone; if (startDisTime_ >= WATERLENGTH) { startDisTime_ = 0; doNextCommand(); } break; case CMD_GIVE_CLEAN_ROOM1 : case CMD_GIVE_CLEAN_ROOM2 : case CMD_GIVE_CLEAN_ROOM3 : case CMD_GIVE_CLEAN_ROOM4 : case CMD_GIVE_CLEAN_ROOM5 : startDisTime_ = startDisTime_ + timeDone; if (startDisTime_ >= CLEANLENGTH) { startDisTime_ = 0; doNextCommand(); } break; case CMD_REPAIR_COFFEE : case CMD_REPAIR_ADD_RIGHT : startDisTime_ = startDisTime_ + timeDone; if (startDisTime_ >= REPARELENGTH) { parentGame_.lastrepaired = 0; startDisTime_ = 0; doNextCommand(); } break; case CMD_GO_UP_ROOM1 : startDisTime_ = startDisTime_ + timeDone; if (startDisTime_ >= UPPINGLENTH) { doNextCommand(); startDisTime_ = 0; } break; case CMD_GO_UP_ROOM5 : startDisTime_ = startDisTime_ + timeDone; if (startDisTime_ >= UPPINGLENTH) { doNextCommand(); startDisTime_ = 0; } break; case CMD_DISAPPEAR : startDisTime_ = startDisTime_ + timeDone; _alpha = 100 - (100 * (startDisTime_ / DISAPPLENGTH)); if (_alpha > 0) { break; } doNextCommand(); startDisTime_ = 0; } if (_alpha > 0) { animObject.quant(timeDone); } } function drawIt() { resultBitmap = animObject.drawIt(resultBitmap, 10, 0); attachBitmap(resultBitmap, 1, "auto", true); } function attachResBitmap(bData) { attachBitmap(resultBitmap, 0, "auto", true); } function registerOperation(operName, operbody) { operations_[operName] = operbody; } function doOperation(operName, operData) { operations_[operName](operData); } function CreateByXML(xmlScript, parentGame) { shadowX_ = Number(xmlScript.firstChild.childNodes[0].attributes.shadowx); shadowY_ = Number(xmlScript.firstChild.childNodes[0].attributes.shadowy); inKitchen_ = true; currBlockName_ = "NONE"; currCmd_ = -1; cmdStacks_ = new Array(); operations_ = new Array(); parentGame_ = parentGame; resultBitmap = new flash.display.BitmapData(Number(xmlScript.firstChild.childNodes[0].attributes.width), Number(xmlScript.firstChild.childNodes[0].attributes.height), true, 0); persName_ = xmlScript.firstChild.childNodes[ANIMATIONIND].nodeName; animObject = parentGame.factoryAnimObject.getByXML(xmlScript.firstChild.childNodes[ANIMATIONIND], this, false); shadowClip_ = attachMovie("mc_shadow", "shadow1", 0); shadowClip_._y = shadowY_; shadowClip_._x = shadowX_; drawIt(); } function heroToPoint(xpos, ypos) { var pathArray = Pathfinding.findPath(parentGame_.map_.map, parentGame_.map_.YConvertToMap((_y + _height) + 2), parentGame_.map_.XConvertToMap(_x + (_width / 2)), parentGame_.map_.YConvertToMap(ypos), parentGame_.map_.XConvertToMap(xpos)); pathArray.shift(); MoveToPath(pathArray); } function MoveTo(p) { target_move = p; } function MoveToPath(path_array) { path = path_array; DoPathMove(); } function StopMove() { target_move = undefined; moving_direction = -4; } function HasPath() { return((path != undefined) && (path.length > 0)); } function getTurnAnim(tang) { if ((tang >= -0.5) && (tang <= 0.5)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "sideright"); } else if ((tang <= 2.1) && (tang >= 1.5)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "front"); } else if (((tang > 2.7) && (tang <= 3.2)) || ((tang > -3.2) && (tang <= -2.7))) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "sideleft"); } else if ((tang >= -1.8) && (tang <= -1.4)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "back"); } else if ((tang > 2.1) && (tang < 2.7)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "frontsideleft"); } else if ((tang < 1.5) && (tang > 0.5)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "frontsideright"); } else if ((tang > -2.7) && (tang < -1.8)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "backsideleft"); } else if ((tang > -1.4) && (tang < -0.5)) { animObject.sendSignalState([animObject.getName(), "MOVING", "BODY"], "backsideright"); } } static var ANIMATIONIND = 0; static var DISAPPLENGTH = 160; static var UPPINGLENTH = 200; static var REPARELENGTH = 5000; static var CLEANLENGTH = 4000; static var WATERLENGTH = 3000; static var CMD_AWAITING_RECEPTION = 1; static var CMD_GO_RECEPTION = 2; static var CMD_GO_ROOM1_BTM = 3; static var CMD_DISAPPEAR = 4; static var CMD_GO_UP_ROOM1 = 5; static var CMD_APPEAR = 6; static var CMD_GO_ROOM1 = 7; static var CMDON_ROOM1 = 8; static var CMD_GO_ROOM5_BTM = 9; static var CMDDISAPP_ROOM5_BTM = 10; static var CMD_GO_UP_ROOM5 = 11; static var CMD_GO_ROOM5 = 13; static var CMDON_ROOM5 = 14; static var CMD_GO_ROOM2 = 15; static var CMDON_ROOM2 = 16; static var CMD_GO_ROOM3 = 17; static var CMDON_ROOM3 = 18; static var CMD_GO_ROOM4 = 19; static var CMDON_ROOM4 = 20; static var CMD_OFF_ROOM1 = 21; static var CMD_DISAPP_OFF_ROOM1 = 22; static var CMD_GO_DOWN_OFF_ROOM1 = 23; static var CMD_TAKE_KEY = 25; static var CMD_GO_COFFEE = 26; static var CMD_TAKE_COFFEE = 27; static var CMD_TURN12 = 29; static var CMD_TURN6 = 30; static var CMD_TURN3 = 31; static var CMD_TURN9 = 32; static var CMD_TURN10_5 = 33; static var CMD_TURN1_5 = 34; static var CMD_TURN4_5 = 35; static var CMD_TURN7_5 = 36; static var CMD_GO_ROOM1_TOP = 37; static var CMD_GO_DOWN_ROOM1 = 38; static var CMD_GO_KITCHEN = 66; static var CMD_GIVE_CLEAN_ROOM1 = 67; static var CMD_GIVE_CLEAN_ROOM2 = 68; static var CMD_GIVE_CLEAN_ROOM3 = 69; static var CMD_GIVE_CLEAN_ROOM4 = 70; static var CMD_GIVE_CLEAN_ROOM5 = 71; static var CMD_GIVE_WATER_PLANT_LEFT = 72; static var CMD_GIVE_WATER_PLANT_RIGHT = 73; static var CMD_GO_HALL = 74; static var CMD_AWAITING_HALL = 75; static var CMD_KITCHEN_AWAITING = 76; static var CMD_SET_KITCHEN = 77; static var CMD_UNSET_KITCHEN = 78; static var CMD_REPAIR_COFFEE = 79; static var CMD_REPAIR_ADD_RIGHT = 80; static var CMD_GO_PHONE = 81; static var CMD_WATER_FLOWER_LEFT = 82; static var CMD_WATER_FLOWER_RIGHT = 83; static var CMD_GO_FLOWER_LEFT = 84; static var CMD_GO_FLOWER_RIGHT = 85; static var CMD_GO_ROOM5_TOP = 86; static var CMD_GO_DOWN_ROOM5 = 87; var velocity_ = 120; var prev_turn = -1; }Symbol 373 MovieClip [__Packages.CashBar] Frame 0class CashBar extends MovieClip { var indexValue_, emptyData_, fullData_, indexData_, resultBitmap_, parentGame_, fillength, maxIndex_, attachBitmap; function CashBar () { super(); indexValue_ = 0; emptyData_ = flash.display.BitmapData.loadBitmap("bar_filled"); fullData_ = flash.display.BitmapData.loadBitmap("bar_full"); indexData_ = flash.display.BitmapData.loadBitmap("bar_index"); resultBitmap_ = new flash.display.BitmapData(emptyData_.width, emptyData_.height, true, 0); } function Create(parentGame) { parentGame_ = parentGame; } function update() { resultBitmap_.colorTransform(resultBitmap_.rectangle, parentGame_.transparent_); resultBitmap_.copyPixels(emptyData_, emptyData_.rectangle, new flash.geom.Point(0, 0)); fillength = fullData_.width * (indexValue_ / maxIndex_); resultBitmap_.copyPixels(fullData_, new flash.geom.Rectangle(0, 0, fillength, fullData_.height), new flash.geom.Point(15, 13)); attachBitmap(resultBitmap_, 0); } }Symbol 374 MovieClip [__Packages.ServiceWindow] Frame 0class ServiceWindow extends MovieClip implements IDrawAble { var changed_, animObject, wcanVisible_, useHandCursor, persName_, parentGame_, instrArray_, resultBitmap, onMouseMove, onRollOver, onRollOut, onDragOut, onRelease, onPress, attachBitmap; function ServiceWindow () { super(); } function setChanged(aVal) { changed_ = aVal; } function isChanged() { return(changed_); } function showWcan() { animObject.sendSignalState([animObject.getName(), "SELECTED", "WCAN"], "default"); animObject.sendSignalState([animObject.getName(), "DEFAULT", "WCAN"], "default"); animObject.sendSignalState([animObject.getName(), "SELECTED", "WCAN"], "default"); animObject.sendSignalState([animObject.getName(), "DEFAULT", "WCAN"], "default"); wcanVisible_ = true; } function hideWcan() { animObject.sendSignalState([animObject.getName(), "SELECTED", "WCAN"], "default"); wcanVisible_ = false; } function createByXML(xmlScript, parentGame) { wcanVisible_ = false; useHandCursor = false; persName_ = xmlScript.firstChild.childNodes[0].nodeName; parentGame_ = parentGame; instrArray_ = new Array(); resultBitmap = new flash.display.BitmapData(Number(xmlScript.firstChild.childNodes[0].attributes.width), Number(xmlScript.firstChild.childNodes[0].attributes.height), true, 0); animObject = parentGame.factoryAnimObject.getByXML(xmlScript.firstChild.childNodes[0], this, false); drawIt(); onMouseMove = function () { if (this.persName_ == "SERVICELEFT") { if ((((this._xmouse >= ServiceWindow.CLEANERX) && (this._xmouse <= (ServiceWindow.CLEANERX + ServiceWindow.CLEANER_WIDTH))) && (this._ymouse >= ServiceWindow.CLEANERY)) && (this._ymouse <= (ServiceWindow.CLEANERY + ServiceWindow.CLEANER_HEIGHT))) { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "SELWCAN"], "unselect"); this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "SELCLEAN"], "select"); } else { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "SELCLEAN"], "unselect"); if (((((this.wcanVisible_ == true) && (this._xmouse >= ServiceWindow.WCANX)) && (this._xmouse <= (ServiceWindow.WCANX + ServiceWindow.WCAN_WIDTH))) && (this._ymouse >= ServiceWindow.WCANY)) && (this._ymouse <= (ServiceWindow.WCANY + ServiceWindow.WCAN_HEIGHT))) { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "SELWCAN"], "select"); } else { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "SELWCAN"], "unselect"); } } } else if ((((this._xmouse >= ServiceWindow.REPAIRX) && (this._xmouse <= (ServiceWindow.REPAIRX + ServiceWindow.REPAIR_WIDTH))) && (this._ymouse >= ServiceWindow.REPAIRY)) && (this._ymouse <= (ServiceWindow.REPAIRY + ServiceWindow.REPAIR_HEIGHT))) { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "SELREPAIR"], "select"); } else { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "SELREPAIR"], "unselect"); } }; onRollOver = function () { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "PRESSEDPERS"], "unpress"); this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "CLEANER"], "default"); this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "REPAIR"], "default"); if (this.wcanVisible_ == true) { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "WCAN"], "default"); this.animObject.sendSignalState([this.animObject.getName(), "DEFAULT", "WCAN"], "default"); } }; onRollOut = function () { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "PRESSEDPERS"], "unpress"); this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "CLEANER"], "default"); this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "REPAIR"], "default"); if (this.wcanVisible_ == true) { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "WCAN"], "default"); } }; onDragOut = function () { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "PRESSEDPERS"], "unpress"); this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "CLEANER"], "default"); this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "REPAIR"], "default"); if (this.wcanVisible_ == true) { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "WCAN"], "default"); } }; onRelease = function () { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "PRESSEDPERS"], "unpress"); this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "CLEANER"], "default"); this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "REPAIR"], "default"); if (this.wcanVisible_ == true) { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "WCAN"], "default"); } }; onPress = function () { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "PRESSEDPERS"], "press"); if (this.persName_ == "SERVICELEFT") { if ((((this._xmouse >= ServiceWindow.CLEANERX) && (this._xmouse <= (ServiceWindow.CLEANERX + ServiceWindow.CLEANER_WIDTH))) && (this._ymouse >= ServiceWindow.CLEANERY)) && (this._ymouse <= (ServiceWindow.CLEANERY + ServiceWindow.CLEANER_HEIGHT))) { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "CLEANER"], "press"); } else if (((((this.wcanVisible_ == true) && (this._xmouse >= ServiceWindow.WCANX)) && (this._xmouse <= (ServiceWindow.WCANX + ServiceWindow.WCAN_WIDTH))) && (this._ymouse >= ServiceWindow.WCANY)) && (this._ymouse <= (ServiceWindow.WCANY + ServiceWindow.WCAN_HEIGHT))) { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "WCAN"], "press"); } } else if (this.persName_ == "SERVICERIGHT") { if ((((this._xmouse >= ServiceWindow.REPAIRX) && (this._xmouse <= (ServiceWindow.REPAIRX + ServiceWindow.REPAIR_WIDTH))) && (this._ymouse >= ServiceWindow.REPAIRY)) && (this._ymouse <= (ServiceWindow.REPAIRY + ServiceWindow.REPAIR_HEIGHT))) { this.animObject.sendSignalState([this.animObject.getName(), "SELECTED", "REPAIR"], "press"); } } if (this.parentGame_.programState_ != Game.PST_GAME_START) { return(undefined); } switch (this.persName_) { case "SERVICELEFT" : if ((((this.parentGame_.countRequests("clean") > 0) || ((parentGame.getMO("FLOWER_LEFT").leafTime_ >= Mebel.GREENTIME) && (parentGame.getMO("FLOWER_LEFT").leafTime_ != undefined))) || ((parentGame.getMO("FLOWER_RIGHT").leafTime_ >= Mebel.GREENTIME) && (parentGame.getMO("FLOWER_RIGHT").leafTime_ != undefined))) && (this.parentGame_.aMaid.inKitchen_ == true)) { this.parentGame_.aMaid.leaveKitchen(); } else { Helper.PlaySound("key_denied", 1); } return; case "SERVICERIGHT" : if ((this.parentGame_.countRequests("repair") > 0) && (this.parentGame_.aPorter.inKitchen_ == true)) { this.parentGame_.aPorter.leaveKitchen(); } else { Helper.PlaySound("key_denied", 1); } } }; } function drawIt() { resultBitmap = animObject.drawIt(resultBitmap, 10, 0); attachBitmap(resultBitmap, 0, "auto", true); } function quant(timeDone) { animObject.quant(timeDone); } static var CLEANERX = 6; static var CLEANERY = 15; static var CLEANER_WIDTH = 35; static var CLEANER_HEIGHT = 27; static var REPAIRX = 98; static var REPAIRY = 15; static var REPAIR_WIDTH = 34; static var REPAIR_HEIGHT = 27; static var WCANX = 37; static var WCANY = 25; static var WCAN_WIDTH = 39; static var WCAN_HEIGHT = 25; }Symbol 375 MovieClip [__Packages.CashWindow] Frame 0class CashWindow extends MovieClip { var parentGame_, text_, _width, goaltext_, attachBitmap, createTextField, getNextHighestDepth; function CashWindow () { super(); } function updateCashData() { text_.text = parentGame_.levelcash_ + "$"; text_._x = ((_width / 2) - (text_._width / 2)) - 10; text_._y = 17; text_.setTextFormat(TextStyles.txtStyleGameFace); goaltext_.text = (parentGame_.dictXML.firstChild.attributes.menu_GOAL + ": ") + parentGame_.goal_; goaltext_._x = ((_width / 2) - (goaltext_._width / 2)) - 10; goaltext_._y = text_._y + 13; goaltext_.setTextFormat(TextStyles.txtStyleGameFace); if (parentGame_.levelcash_ >= parentGame_.goal_) { parentGame_.showGoalReached(); } } function create(parentGame) { parentGame_ = parentGame; attachBitmap(flash.display.BitmapData.loadBitmap("cash"), 0); text_ = createTextField("my_txt", getNextHighestDepth(), 0, 0, 0, 0); text_.text = "1"; text_.setTextFormat(TextStyles.txtStyleGameFace); TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, text_); goaltext_ = createTextField("mygoal_txt", getNextHighestDepth(), 0, 0, 0, 0); goaltext_.text = "1"; goaltext_.setTextFormat(TextStyles.txtStyleGameFace); TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, goaltext_); updateCashData(); } }Symbol 376 MovieClip [__Packages.ClientsWindow] Frame 0class ClientsWindow extends MovieClip { var parentGame_, text_, _width, attachBitmap, createTextField, getNextHighestDepth; function ClientsWindow () { super(); } function updateData() { text_.text = ((((parentGame_.dictXML.firstChild.attributes.menu_CLIENTS + ": ") + String(parentGame_.totalCustomers_)) + "/") + parentGame_.maxCustomers_) + " "; text_._x = ((_width / 2) - (text_._width / 2)) - 10; text_._y = 32; text_.setTextFormat(TextStyles.txtStyleGameFace); } function create(parentGame) { parentGame_ = parentGame; attachBitmap(flash.display.BitmapData.loadBitmap("clients"), 0); text_ = createTextField("my_txt", getNextHighestDepth(), 0, 0, 0, 0); text_.text = "1"; text_.setTextFormat(TextStyles.txtStyleGameFace); TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, text_); updateData(); } }Symbol 377 MovieClip [__Packages.XMLFactory] Frame 0class XMLFactory { var internalArr; function XMLFactory () { internalArr = new Array(); internalArr["data//coffee.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><COFFEE height=\"74\" width=\"65\" regx=\"450\" regy=\"160\" jx=\"10\" jy=\"80\" jsx=\"115\" jsy=\"40\" maxobjects=\"1\" canBreak=\"true\" price=\"10\" wait=\"0\" request=\"cup\" zorder=\"5000\" under=\"true\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"coffee\" frames=\"1\" frame=\"0\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"coffee\" frames=\"1\" frame=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"3\" blury=\"3\" strength=\"5\" quality=\"3\" inner=\"true\" knockout=\"true\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED><CUP1><POSSIBLESTATES def=\"CHECKED\"><CHECKED bitmap=\"cup\" frames=\"1\" frame=\"0\" regx=\"22\" regy=\"15\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CUP1></PARTS></DEFAULT></POSSIBLESTATES></COFFEE>"); internalArr["data//levels.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><LEVELS><LEVEL1 clients=\"3\" /><LEVEL2 clients=\"3\" /><LEVEL3 clients=\"3\" /><LEVEL4 clients=\"3\" /></LEVELS>"); internalArr["data//ladder_left_btm.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><LADDER_LEFT_BTM height=\"163\" width=\"42\" regy=\"220\" jx=\"0\" jy=\"90\" jsx=\"45\" jsy=\"75\" depth=\"below\" interactive=\"false\" zorder=\"8101\" zypoint=\"10\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"ladder_bottom\" frames=\"1\" frame=\"0\"></DEFAULT></POSSIBLESTATES></LADDER_LEFT_BTM>"); internalArr["data//ladder_left_up.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><LADDER_LEFT_UP height=\"111\" interactive=\"false\" width=\"114\" regy=\"60\" zorder=\"10100\" under=\"true\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"ladder_up\" frames=\"1\" frame=\"0\"></DEFAULT></POSSIBLESTATES></LADDER_LEFT_UP>"); internalArr["data//ladder_right_btm.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><LADDER_RIGHT_BTM height=\"163\" width=\"40\" regy=\"220\" regx=\"510\" jx=\"-45\" jy=\"90\" jsx=\"45\" jsy=\"75\" depth=\"below\" interactive=\"false\" zorder=\"8102\" zypoint=\"10\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"ladder_bottom\" frames=\"1\" frame=\"0\" flipHor=\"true\"></DEFAULT></POSSIBLESTATES></LADDER_RIGHT_BTM>"); internalArr["data//ladder_right_up.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><LADDER_RIGH_UP height=\"225\" blocking=\"false\" interactive=\"false\" width=\"114\" regy=\"60\" regx=\"436\" tjx=\"35\" tjy=\"170\" tjsx=\"60\" tjsy=\"40\" zorder=\"10101\" under=\"true\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"ladder_up\" frames=\"1\" frame=\"0\" flipHor=\"true\"><PARTS><JAMB><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"jamb_door\" frames=\"1\" frame=\"0\" flipHor=\"true\" regx=\"104\" regy=\"65\" /></POSSIBLESTATES></JAMB></PARTS></DEFAULT></POSSIBLESTATES></LADDER_RIGH_UP>"); internalArr["data//add_left.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ADD_LEFT height=\"40\" width=\"40\" regx=\"200\" regy=\"327\" maxobjects=\"2\" price=\"10\" wait=\"0\" request=\"daily\" zorder=\"9102\" popularity=\"5\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"add_left\" frames=\"1\" frame=\"0\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"add_left\" frames=\"1\" frame=\"0\" regx=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"3\" blury=\"3\" strength=\"5\" quality=\"3\" inner=\"true\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED><ICON><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"4\" regy=\"-4\" frames=\"1\" frame=\"0\" /></POSSIBLESTATES></ICON></PARTS></DEFAULT></POSSIBLESTATES></ADD_LEFT>"); internalArr["data//add_right.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ADD_RIGHT height=\"40\" width=\"35\" regx=\"307\" regy=\"327\" jx=\"0\" jy=\"50\" jsx=\"20\" jsy=\"10\" maxobjects=\"1\" canBreak=\"true\" price=\"10\" wait=\"0\" request=\"phone\" zorder=\"9104\" popularity=\"10\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"add_left\" flipHor=\"true\" frames=\"1\" frame=\"0\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"add_left\" frames=\"1\" frame=\"0\" regx=\"0\" flipHor=\"true\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"3\" blury=\"3\" strength=\"5\" quality=\"3\" inner=\"true\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED><ICON><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"4\" regy=\"0\" frames=\"1\" frame=\"0\" /></POSSIBLESTATES></ICON></PARTS></DEFAULT></POSSIBLESTATES></ADD_RIGHT>"); internalArr["data//lamp_left.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><LAMP_LEFT height=\"27\" width=\"26\" regx=\"10\" regy=\"10\" interactive=\"false\" zorder=\"5080\" under=\"true\" clients=\"1\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"lamp\" frames=\"1\" frame=\"0\"></DEFAULT></POSSIBLESTATES></LAMP_LEFT>"); internalArr["data//lamp_right.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><LAMP_RIGHT height=\"27\" width=\"26\" regx=\"520\" regy=\"10\" interactive=\"false\" zorder=\"5070\" under=\"true\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"lamp\" frames=\"1\" frame=\"0\"></DEFAULT></POSSIBLESTATES></LAMP_RIGHT>"); internalArr["data//arch1.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ARCH1 height=\"111\" width=\"69\" regx=\"44\" regy=\"-2\" interactive=\"false\" blocking=\"false\" zorder=\"5101\" under=\"true\" clients=\"1\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"arch_1_5\" frames=\"1\" frame=\"0\"></DEFAULT></POSSIBLESTATES></ARCH1>"); internalArr["data//arch2.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ARCH2 height=\"117\" width=\"69\" regx=\"151\" regy=\"37\" interactive=\"false\" blocking=\"false\" zorder=\"5103\" under=\"true\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"arch_2_4\" frames=\"1\" frame=\"0\"></DEFAULT></POSSIBLESTATES></ARCH2>"); internalArr["data//arch3.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ARCH3 height=\"111\" width=\"69\" regx=\"239\" regy=\"31\" interactive=\"false\" blocking=\"false\" zorder=\"5105\" under=\"true\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"arch_3\" frames=\"1\" frame=\"0\"></DEFAULT></POSSIBLESTATES></ARCH3>"); internalArr["data//arch4.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ARCH4 height=\"117\" width=\"69\" regx=\"337\" regy=\"37\" interactive=\"false\" blocking=\"false\" zorder=\"5107\" under=\"true\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"arch_2_4\" flipHor=\"true\" frames=\"1\" frame=\"0\"></DEFAULT></POSSIBLESTATES></ARCH4>"); internalArr["data//arch5.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ARCH5 height=\"111\" width=\"69\" regx=\"445\" regy=\"-2\" interactive=\"false\" blocking=\"false\" zorder=\"5109\" under=\"true\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"arch_1_5\" frames=\"1\" frame=\"0\"></DEFAULT></POSSIBLESTATES></ARCH5>"); internalArr["data//shield_left.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><SHIELD_LEFT height=\"29\" width=\"48\" regx=\"200\" regy=\"20\" interactive=\"false\" zorder=\"5090\" under=\"true\" clients=\"1\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"armor_wall_left\" frames=\"1\" frame=\"0\"></DEFAULT></POSSIBLESTATES></SHIELD_LEFT>"); internalArr["data//shield_right.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><SHIELD_RIGHT height=\"29\" width=\"48\" regx=\"300\" regy=\"20\" interactive=\"false\" zorder=\"5091\" under=\"true\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"armor_wall_left\" frames=\"1\" frame=\"0\"></DEFAULT></POSSIBLESTATES></SHIELD_RIGHT>"); internalArr["data//coffee_u.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><COFFEE height=\"86\" width=\"65\" regx=\"445\" regy=\"145\" jx=\"10\" jy=\"80\" jsx=\"115\" jsy=\"40\" maxobjects=\"1\" price=\"20\" wait=\"0\" zorder=\"5000\" under=\"true\" popularity=\"10\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"coffee_u\" frames=\"1\" frame=\"0\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"coffee_u\" frames=\"1\" frame=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"3\" blury=\"3\" strength=\"5\" quality=\"3\" inner=\"true\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED><CUP1><POSSIBLESTATES def=\"CHECKED\"><CHECKED bitmap=\"cup\" frames=\"1\" frame=\"0\" regx=\"23\" regy=\"28\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CUP1></PARTS></DEFAULT></POSSIBLESTATES></COFFEE>"); internalArr["data//chair.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><CHAIR height=\"90\" wait=\"6000\" width=\"115\" cx=\"65\" cy=\"15\" csx=\"10\" csy=\"10\" regx=\"20\" depth=\"below\" interactive=\"true\" regy=\"218\" zorder=\"8050\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"chair\" frames=\"1\" flipHor1=\"true\" frame=\"0\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"chair\" frames=\"1\" flipHor1=\"true\" frame=\"0\" regx=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"3\" blury=\"3\" strength=\"5\" quality=\"3\" inner=\"true\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED><PLATE><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"hand_eat\" frames=\"1\" frame=\"0\" regx=\"30\" regy=\"25\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></PLATE></PARTS></DEFAULT></POSSIBLESTATES></CHAIR>"); internalArr["data//armchair_left.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ARMCHAIR_LEFT height=\"81\" width=\"58\" regx=\"172\" cx=\"30\" cy=\"80\" csx=\"30\" csy=\"10\" regy=\"210\" interactive=\"true\" zorder=\"7202\" wait=\"3000\" popularity=\"5\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"armchair_left\" frames=\"1\" frame=\"0\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"armchair_left\" frames=\"1\" frame=\"0\" regy=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"3\" blury=\"3\" strength=\"5\" quality=\"3\" inner=\"true\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION></PARTS></DEFAULT></POSSIBLESTATES></ARMCHAIR_LEFT>"); internalArr["data//armchair_right.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ARMCHAIR_RIGHT height=\"81\" width=\"58\" regx=\"320\" regy=\"210\" cx=\"0\" cy=\"80\" csx=\"10\" csy=\"10\" interactive=\"true\" zorder=\"7205\" zypoint=\"10\" wait=\"3000\" popularity=\"5\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"armchair_left\" frames=\"1\" frame=\"0\" flipHor=\"true\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"armchair_left\" flipHor=\"true\" frames=\"1\" frame=\"0\" regy=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"3\" blury=\"3\" strength=\"5\" quality=\"3\" inner=\"true\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION></PARTS></DEFAULT></POSSIBLESTATES></ARMCHAIR_RIGHT>"); internalArr["data//kitchen.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><KITCHEN height=\"60\" width=\"47\" regx=\"30\" regy=\"160\" jx=\"-20\" jy=\"70\" jsx=\"120\" jsy=\"10\" maxobjects=\"1\" request=\"eat\" price=\"10\" zorder=\"5118\" under=\"true\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"kitchen\" frames=\"1\" frame=\"0\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"kitchen\" frames=\"1\" frame=\"0\" regx=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"3\" blury=\"3\" strength=\"5\" quality=\"3\" inner=\"true\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED></PARTS></DEFAULT></POSSIBLESTATES></KITCHEN>"); internalArr["data//fontain_old.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><FONTAIN height=\"74\" width=\"90\" regx=\"230\" regy=\"195\" zorder=\"6900\" interactive=\"false\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"fountain_old\" frames=\"1\" frame=\"0\"><PARTS><FLOWERS><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"flowerst_fountain_old\" frames=\"1\" frame=\"0\" regx=\"18\" regy=\"18\" /></POSSIBLESTATES></FLOWERS></PARTS></DEFAULT></POSSIBLESTATES></FONTAIN>"); internalArr["data//flower_left.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><FLOWER_LEFT height=\"157\" width=\"32\" regx=\"125\" regy=\"50\" jx=\"35\" jy=\"155\" jsx=\"10\" jsy=\"10\" maxobjects=\"1\" zorder=\"7100\" clients=\"2\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"tree_left\" frames=\"1\" frame=\"0\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"tree_left\" frames=\"1\" frame=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"3\" blury=\"3\" strength=\"5\" quality=\"3\" inner=\"true\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED></PARTS></DEFAULT><YELLOW bitmap=\"tree_left\" frames=\"1\" frame=\"0\"><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"tree_withering\" frames=\"1\" frame=\"0\" /></POSSIBLESTATES></BODY><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"tree_left\" frames=\"1\" frame=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"3\" blury=\"3\" strength=\"5\" quality=\"3\" inner=\"true\" knockout=\"true\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED></PARTS></YELLOW></POSSIBLESTATES><TRANSITIONS><TRYELLOW before=\"*\" after=\"YELLOW\" signal=\"yellow\" /><TRDEFAULT before=\"*\" after=\"DEFAULT\" signal=\"green\" /></TRANSITIONS></FLOWER_LEFT>"); internalArr["data//flower_right.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><FLOWER_RIGHT height=\"157\" width=\"32\" regx=\"389\" regy=\"50\" jx=\"0\" jy=\"150\" jsx=\"10\" jsy=\"10\" zorder=\"7101\" maxobjects=\"1\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"tree_left\" frames=\"1\" frame=\"0\" flipHor=\"true\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"tree_left\" flipHor=\"true\" frames=\"1\" frame=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"3\" blury=\"3\" strength=\"5\" quality=\"3\" inner=\"true\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED></PARTS></DEFAULT><YELLOW bitmap=\"tree_left\" frames=\"1\" flipHor=\"true\" frame=\"0\"><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"tree_withering\" flipHor=\"true\" frames=\"1\" frame=\"0\" /></POSSIBLESTATES></BODY><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"tree_left\" frames=\"1\" flipHor=\"true\" frame=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"3\" blury=\"3\" strength=\"5\" quality=\"3\" inner=\"true\" knockout=\"true\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED></PARTS></YELLOW></POSSIBLESTATES><TRANSITIONS><TRYELLOW before=\"*\" after=\"YELLOW\" signal=\"yellow\" /><TRDEFAULT before=\"*\" after=\"DEFAULT\" signal=\"green\" /></TRANSITIONS></FLOWER_RIGHT>"); internalArr["data//armor_left.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ARMOR_LEFT height=\"128\" width=\"44\" regx=\"200\" regy=\"44\" interactive=\"false\" zorder=\"5112\" under=\"true\" clients=\"1\" cx=\"5\" cy=\"130\" csx=\"120\" csy=\"10\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"armor_left\" frames=\"1\" frame=\"0\"></DEFAULT></POSSIBLESTATES></ARMOR_LEFT>"); internalArr["data//armor_right.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ARMOR_RIGHT height=\"128\" width=\"44\" regx=\"302\" regy=\"44\" interactive=\"false\" zorder=\"5113\" under=\"true\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"armor_left\" frames=\"1\" frame=\"0\" flipHor=\"true\"></DEFAULT></POSSIBLESTATES></ARMOR_RIGHT>"); internalArr["data//reception_u.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><RECEPTION1 height=\"66\" width=\"99\" regx=\"224\" regy=\"315\" jx=\"-10\" jy=\"72\" jsx=\"160\" jsy=\"10\" cx=\"-10\" cy=\"-5\" csx=\"90\" csy=\"25\" price=\"20\" wait=\"6000\" zorder=\"9100\" clients=\"1\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"reception_u\" frames=\"1\" frame=\"0\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"reception_u\" frames=\"1\" frame=\"0\" regx=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"3\" blury=\"3\" strength=\"5\" quality=\"3\" inner=\"true\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED></PARTS></DEFAULT></POSSIBLESTATES></RECEPTION1>"); internalArr["data//reception1.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><RECEPTION1 height=\"66\" width=\"99\" regx=\"222\" regy=\"317\" jx=\"-10\" jy=\"72\" jsx=\"160\" jsy=\"10\" cx=\"-10\" cy=\"-5\" csx=\"90\" csy=\"25\" price=\"10\" wait=\"5000\" zorder=\"9100\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"reception1\" frames=\"1\" frame=\"0\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"reception1\" frames=\"1\" frame=\"0\" regx=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"3\" blury=\"3\" strength=\"5\" quality=\"3\" inner=\"true\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED><NOKEY><POSSIBLESTATES def=\"UNSELECTED\"><UNSELECTED /><SELECTED bitmap=\"blacksqr\" frames=\"1\" frame=\"0\" regx=\"41\" regy=\"28\" /></POSSIBLESTATES><TRANSITIONS><TRKEY before=\"*\" after=\"UNSELECTED\" signal=\"unselect\" /><TRNOKEY before=\"*\" after=\"SELECTED\" signal=\"select\" /></TRANSITIONS></NOKEY></PARTS></DEFAULT></POSSIBLESTATES></RECEPTION1>"); internalArr["data//room1.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ROOM1 height=\"90\" width=\"46\" regx=\"53\" regy=\"7\" jx=\"-20\" jy=\"110\" jsx=\"70\" jsy=\"10\" zorder=\"5102\" under=\"true\"><POSSIBLESTATES def=\"CLOSED\"><OPENING bitmap=\"door_1_3_5\" frames=\"8\" time=\"600\" reversed=\"true\" loop=\"false\" nextstate=\"OPENED\" regx=\"0\" regy=\"0\"><PARTS></PARTS></OPENING><OPENED bitmap=\"door_1_3_5\" frames=\"8\" frame=\"0\"><PARTS><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED></PARTS></OPENED><CLOSING bitmap=\"door_1_3_5\" frames=\"8\" time=\"600\" loop=\"false\" nextstate=\"CLOSED\"><PARTS></PARTS></CLOSING><CLOSED bitmap=\"door_1_3_5\" frames=\"8\" frame=\"7\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"door_1_3_5_a\" frames=\"1\" frame=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"1\" blury=\"1\" strength=\"3\" quality=\"3\" inner=\"false\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED><ORDERED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"dnd\" frames=\"1\" frame=\"0\" regx=\"0\" regy=\"40\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></ORDERED></PARTS></CLOSED></POSSIBLESTATES><TRANSITIONS><TROPENING before=\"CLOSED\" after=\"OPENING\" signal=\"opening\" /><TROPENED before=\"OPENING\" after=\"OPENED\" signal=\"opened\" /><TRCLOSING before=\"OPENED\" after=\"CLOSING\" signal=\"closing\" /><TRCLOSED before=\"CLOSING\" after=\"CLOSED\" signal=\"closed\" /></TRANSITIONS></ROOM1>"); internalArr["data//room2.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ROOM2 height=\"99\" width=\"43\" regx=\"160\" regy=\"51\" jx=\"20\" jy=\"130\" jsx=\"20\" jsy=\"20\" zorder=\"5104\" under=\"true\"><POSSIBLESTATES def=\"CLOSED\"><OPENING frames=\"8\" bitmap=\"door_2\" time=\"600\" reversed=\"true\" loop=\"false\" nextstate=\"OPENED\"><PARTS></PARTS></OPENING><OPENED bitmap=\"door_2\" frames=\"8\" frame=\"0\"><PARTS><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED></PARTS></OPENED><CLOSING bitmap=\"door_2\" frames=\"8\" time=\"600\" loop=\"false\" nextstate=\"CLOSED\"><PARTS></PARTS></CLOSING><CLOSED bitmap=\"door_2\" frames=\"8\" frame=\"7\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"door_2_4_a\" frames=\"1\" regx=\"2\" regy=\"2\" frame=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"1\" blury=\"1\" strength=\"3\" quality=\"3\" inner=\"false\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED><ORDERED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"dnd\" frames=\"1\" frame=\"0\" regx=\"0\" regy=\"40\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></ORDERED></PARTS></CLOSED></POSSIBLESTATES><TRANSITIONS><TROPENING before=\"CLOSED\" after=\"OPENING\" signal=\"opening\" /><TROPENED before=\"OPENING\" after=\"OPENED\" signal=\"opened\" /><TRCLOSING before=\"OPENED\" after=\"CLOSING\" signal=\"closing\" /><TRCLOSED before=\"CLOSING\" after=\"CLOSED\" signal=\"closed\" /></TRANSITIONS></ROOM2>"); internalArr["data//room3.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ROOM3 height=\"99\" width=\"46\" regx=\"253\" regy=\"42\" jx=\"0\" jy=\"140\" jsx=\"60\" jsy=\"10\" zorder=\"5106\" under=\"true\"><POSSIBLESTATES def=\"CLOSED\"><OPENING bitmap=\"door_1_3_5\" frames=\"8\" time=\"600\" reversed=\"true\" loop=\"false\" nextstate=\"OPENED\" regx=\"0\" regy=\"0\"><PARTS></PARTS></OPENING><OPENED bitmap=\"door_1_3_5\" frames=\"8\" frame=\"0\"><PARTS><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED></PARTS></OPENED><CLOSING bitmap=\"door_1_3_5\" frames=\"8\" time=\"600\" loop=\"false\" nextstate=\"CLOSED\"><PARTS></PARTS></CLOSING><CLOSED bitmap=\"door_1_3_5\" frames=\"8\" frame=\"7\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"door_1_3_5_a\" frames=\"1\" frame=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"1\" blury=\"1\" strength=\"3\" quality=\"3\" inner=\"false\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED><ORDERED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"dnd\" frames=\"1\" frame=\"0\" regx=\"0\" regy=\"40\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></ORDERED></PARTS></CLOSED></POSSIBLESTATES><TRANSITIONS><TROPENING before=\"CLOSED\" after=\"OPENING\" signal=\"opening\" /><TROPENED before=\"OPENING\" after=\"OPENED\" signal=\"opened\" /><TRCLOSING before=\"OPENED\" after=\"CLOSING\" signal=\"closing\" /><TRCLOSED before=\"CLOSING\" after=\"CLOSED\" signal=\"closed\" /></TRANSITIONS></ROOM3>"); internalArr["data//room4.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ROOM4 height=\"99\" width=\"38\" regx=\"351\" jx=\"0\" jy=\"140\" jsx=\"20\" jsy=\"20\" regy=\"50\" zorder=\"5108\" under=\"true\"><POSSIBLESTATES def=\"CLOSED\"><OPENING bitmap=\"door_4\" frames=\"8\" time=\"600\" reversed=\"true\" loop=\"false\" nextstate=\"OPENED\"><PARTS></PARTS></OPENING><OPENED bitmap=\"door_4\" frames=\"8\" frame=\"0\"><PARTS><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED></PARTS></OPENED><CLOSING bitmap=\"door_4\" frames=\"8\" time=\"600\" loop=\"false\" nextstate=\"CLOSED\"><PARTS></PARTS></CLOSING><CLOSED bitmap=\"door_4\" frames=\"8\" frame=\"7\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"door_2_4_a\" frames=\"1\" frame=\"0\" flipHor=\"true\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"1\" blury=\"1\" strength=\"3\" quality=\"3\" inner=\"false\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED><ORDERED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"dnd\" frames=\"1\" frame=\"0\" regx=\"-3\" regy=\"38\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></ORDERED></PARTS></CLOSED></POSSIBLESTATES><TRANSITIONS><TROPENING before=\"*\" after=\"OPENING\" signal=\"opening\" /><TROPENED before=\"OPENING\" after=\"OPENED\" signal=\"opened\" /><TRCLOSING before=\"OPENED\" after=\"CLOSING\" signal=\"closing\" /><TRCLOSED before=\"CLOSING\" after=\"CLOSED\" signal=\"closed\" /></TRANSITIONS></ROOM4>"); internalArr["data//room5.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><ROOM5 height=\"90\" width=\"46\" regx=\"453\" regy=\"7\" jx=\"20\" jy=\"110\" jsx=\"60\" jsy=\"10\" zorder=\"5110\" under=\"true\"><POSSIBLESTATES def=\"CLOSED\"><OPENING bitmap=\"door_1_3_5\" frames=\"8\" time=\"600\" reversed=\"true\" loop=\"false\" nextstate=\"OPENED\" regx=\"0\" regy=\"0\"><PARTS></PARTS></OPENING><OPENED bitmap=\"door_1_3_5\" frames=\"8\" reversed=\"true\" frame=\"0\"><PARTS><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED></PARTS></OPENED><CLOSING bitmap=\"door_1_3_5\" frames=\"8\" time=\"600\" loop=\"false\" nextstate=\"CLOSED\"><PARTS></PARTS></CLOSING><CLOSED bitmap=\"door_1_3_5\" frames=\"8\" frame=\"7\"><PARTS><SELECTION><POSSIBLESTATES def=\"UNSELECTED\"><SELECTED bitmap=\"door_1_3_5_a\" frames=\"1\" frame=\"0\"><PARTS /><EFFECTS><EFF1 dynamic=\"false\" filterName=\"glow\"><PARAMS color=\"0xFFFD00\" alpha=\"1\" blurx=\"1\" blury=\"1\" strength=\"3\" quality=\"3\" inner=\"false\" knockout=\"false\" /></EFF1></EFFECTS></SELECTED><UNSELECTED /></POSSIBLESTATES><TRANSITIONS><TRACTIVATE before=\"UNSELECTED\" after=\"SELECTED\" signal=\"select\" /><TRDEACTIVATE before=\"SELECTED\" after=\"UNSELECTED\" signal=\"unselect\" /></TRANSITIONS></SELECTION><CHECKED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"checkmark\" frames=\"1\" frame=\"0\" regx=\"10\" regy=\"10\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></CHECKED><ORDERED><POSSIBLESTATES def=\"UNCHECKED\"><CHECKED bitmap=\"dnd\" frames=\"1\" frame=\"0\" regx=\"0\" regy=\"40\"></CHECKED><UNCHECKED /></POSSIBLESTATES><TRANSITIONS><TRCHECK before=\"UNCHECKED\" after=\"CHECKED\" signal=\"check\" /><TRUNCHECK before=\"CHECKED\" after=\"UNCHECKED\" signal=\"uncheck\" /></TRANSITIONS></ORDERED></PARTS></CLOSED></POSSIBLESTATES><TRANSITIONS><TROPENING before=\"CLOSED\" after=\"OPENING\" signal=\"opening\" /><TROPENED before=\"OPENING\" after=\"OPENED\" signal=\"opened\" /><TRCLOSING before=\"OPENED\" after=\"CLOSING\" signal=\"closing\" /><TRCLOSED before=\"CLOSING\" after=\"CLOSED\" signal=\"closed\" /></TRANSITIONS></ROOM5>"); internalArr["data//serviceL.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><DATA><SERVICELEFT width=\"120\" height=\"110\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"windowservice_left\" frames=\"1\" frame=\"0\" /></POSSIBLESTATES></BODY><PHOTO><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"parlourmaid\" frames=\"1\" frame=\"0\" regy=\"50\" regx=\"5\" /><SELECTED sss=\"\" bitmap=\"parlourmaid_a\" frames=\"1\" frame=\"0\" regy=\"100\" regx=\"10\" /></POSSIBLESTATES><TRANSITIONS><TRDEFAULT before=\"*\" after=\"DEFAULT\" signal=\"default\" /><TRSELECTED before=\"*\" after=\"SELECTED\" signal=\"select\" /></TRANSITIONS></PHOTO><CLEANER><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"iwaterclean\" frames=\"1\" frame=\"0\" regx=\"6\" regy=\"18\" /><PRESSED bitmap=\"iwaterclean\" frames=\"1\" frame=\"0\" regy=\"2\" /></POSSIBLESTATES><TRANSITIONS><TRDEFAULT before=\"*\" after=\"DEFAULT\" signal=\"default\" /><TRPRESSED before=\"*\" after=\"PRESSED\" signal=\"press\" /></TRANSITIONS></CLEANER><WCAN><POSSIBLESTATES def=\"NONE\"><DEFAULT bitmap=\"iwateringcan\" frames=\"1\" frame=\"0\" regx=\"37\" regy=\"26\" /><PRESSED bitmap=\"iwateringcan\" frames=\"1\" frame=\"0\" regy=\"27\" regx=\"37\" /><NONE /></POSSIBLESTATES><TRANSITIONS><TRDEFAULT before=\"*\" after=\"DEFAULT\" signal=\"default\" /><TRPRESSED before=\"*\" after=\"PRESSED\" signal=\"press\" /><TRNONE before=\"*\" after=\"NONE\" signal=\"none\" /></TRANSITIONS></WCAN></PARTS></DEFAULT><SELECTED><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"windowservice_left\" frames=\"1\" frame=\"0\"></DEFAULT></POSSIBLESTATES></BODY><PRESSEDPERS><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT></DEFAULT><CHECKED bitmap=\"windowservice_persona_a\" regy=\"47\" frames=\"1\" frame=\"0\"></CHECKED></POSSIBLESTATES><TRANSITIONS><TRPRESS before=\"*\" after=\"CHECKED\" signal=\"press\" /><TRUNPRESS before=\"*\" after=\"DEFAULT\" signal=\"unpress\" /></TRANSITIONS></PRESSEDPERS><PHOTO><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"parlourmaid\" frames=\"1\" frame=\"0\" regy=\"50\" regx=\"5\" /><SELECTED bitmap=\"parlourmaid_a\" frames=\"1\" frame=\"0\" regy=\"50\" regx=\"5\" /></POSSIBLESTATES><TRANSITIONS><TRDEFAULT before=\"*\" after=\"DEFAULT\" signal=\"default\" /><TRSELECTED before=\"*\" after=\"SELECTED\" signal=\"select\" /></TRANSITIONS></PHOTO><SELCLEAN><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT></DEFAULT><CHECKED bitmap=\"but_stroke_a\" regy=\"15\" frames=\"1\" frame=\"0\" regx=\"2\"></CHECKED></POSSIBLESTATES><TRANSITIONS><TRSEL before=\"*\" after=\"CHECKED\" signal=\"select\" /><TRUNSEL before=\"*\" after=\"DEFAULT\" signal=\"unselect\" /></TRANSITIONS></SELCLEAN><CLEANER><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"iwaterclean\" frames=\"1\" frame=\"0\" regx=\"6\" regy=\"18\" /><PRESSED bitmap=\"iwaterclean\" frames=\"1\" frame=\"0\" regx=\"6\" regy=\"19\" /></POSSIBLESTATES><TRANSITIONS><TRDEFAULT before=\"*\" after=\"DEFAULT\" signal=\"default\" /><TRPRESSED before=\"*\" after=\"PRESSED\" signal=\"press\" /></TRANSITIONS></CLEANER><SELWCAN><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT></DEFAULT><CHECKED bitmap=\"but_stroke_a\" regy=\"23\" frames=\"1\" frame=\"0\" regx=\"36\"></CHECKED></POSSIBLESTATES><TRANSITIONS><TRSEL before=\"*\" after=\"CHECKED\" signal=\"select\" /><TRUNSEL before=\"*\" after=\"DEFAULT\" signal=\"unselect\" /></TRANSITIONS></SELWCAN><WCAN><POSSIBLESTATES def=\"NONE\"><DEFAULT bitmap=\"iwateringcan\" frames=\"1\" frame=\"0\" regx=\"37\" regy=\"26\" /><PRESSED bitmap=\"iwateringcan\" frames=\"1\" regy=\"27\" regx=\"37\" frame=\"0\" /><NONE /></POSSIBLESTATES><TRANSITIONS><TRDEFAULT before=\"*\" after=\"DEFAULT\" signal=\"default\" /><TRPRESSED before=\"*\" after=\"PRESSED\" signal=\"press\" /><TRNONE before=\"*\" after=\"NONE\" signal=\"none\" /></TRANSITIONS></WCAN></PARTS></SELECTED></POSSIBLESTATES><TRANSITIONS><TRDEFAULT before=\"*\" after=\"DEFAULT\" signal=\"default\" /><TRSELECTED before=\"*\" after=\"SELECTED\" signal=\"select\" /></TRANSITIONS></SERVICELEFT></DATA>"); internalArr["data//serviceR.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><DATA><SERVICERIGHT width=\"130\" height=\"110\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"windowservice_left\" frames=\"1\" frame=\"0\" flipHor=\"true\" /></POSSIBLESTATES></BODY><PHOTO><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"porter\" frames=\"1\" frame=\"0\" regy=\"50\" regx=\"64\" /><SELECTED bitmap=\"porter\" frames=\"1\" frame=\"0\" regy=\"50\" regx=\"64\" /></POSSIBLESTATES><TRANSITIONS><TRDEFAULT before=\"*\" after=\"DEFAULT\" signal=\"default\" /><TRSELECTED before=\"*\" after=\"SELECTED\" signal=\"select\" /></TRANSITIONS></PHOTO><REPAIR><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"irepair\" frames=\"1\" frame=\"0\" regx=\"89\" regy=\"17\" /><PRESSED bitmap=\"irepair\" frames=\"1\" frame=\"0\" regy=\"18\" regx=\"89\" /></POSSIBLESTATES><TRANSITIONS><TRDEFAULT before=\"*\" after=\"DEFAULT\" signal=\"default\" /><TRPRESSED before=\"*\" after=\"PRESSED\" signal=\"press\" /></TRANSITIONS></REPAIR></PARTS></DEFAULT><SELECTED><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"windowservice_left\" frames=\"1\" frame=\"0\" flipHor=\"true\"></DEFAULT></POSSIBLESTATES></BODY><PRESSEDPERS><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT></DEFAULT><CHECKED bitmap=\"windowservice_persona_a\" regy=\"47\" regx=\"58\" frames=\"1\" frame=\"0\"></CHECKED></POSSIBLESTATES><TRANSITIONS><TRPRESS before=\"*\" after=\"CHECKED\" signal=\"press\" /><TRUNPRESS before=\"*\" after=\"DEFAULT\" signal=\"unpress\" /></TRANSITIONS></PRESSEDPERS><PHOTO><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"porter\" frames=\"1\" frame=\"0\" regy=\"50\" regx=\"64\" /><SELECTED bitmap=\"porter_a\" frames=\"1\" frame=\"0\" regy=\"50\" regx=\"64\" /></POSSIBLESTATES><TRANSITIONS><TRDEFAULT before=\"*\" after=\"DEFAULT\" signal=\"default\" /><TRSELECTED before=\"*\" after=\"SELECTED\" signal=\"select\" /></TRANSITIONS></PHOTO><SELREPAIR><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT></DEFAULT><CHECKED bitmap=\"but_stroke_a\" regy=\"15\" frames=\"1\" frame=\"0\" regx=\"88\"></CHECKED></POSSIBLESTATES><TRANSITIONS><TRSEL before=\"*\" after=\"CHECKED\" signal=\"select\" /><TRUNSEL before=\"*\" after=\"DEFAULT\" signal=\"unselect\" /></TRANSITIONS></SELREPAIR><REPAIR><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"irepair\" frames=\"1\" frame=\"0\" regx=\"89\" regy=\"17\" /><PRESSED bitmap=\"irepair\" frames=\"1\" frame=\"0\" regy=\"18\" regx=\"89\" /></POSSIBLESTATES><TRANSITIONS><TRDEFAULT before=\"*\" after=\"DEFAULT\" signal=\"default\" /><TRPRESSED before=\"*\" after=\"PRESSED\" signal=\"press\" /></TRANSITIONS></REPAIR></PARTS></SELECTED></POSSIBLESTATES><TRANSITIONS><TRDEFAULT before=\"*\" after=\"DEFAULT\" signal=\"default\" /><TRSELECTED before=\"*\" after=\"SELECTED\" signal=\"select\" /></TRANSITIONS></SERVICERIGHT></DATA>"); internalArr["data//animation.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><DATA><JANE width=\"46\" height=\"93\" shadowx=\"16\" shadowy=\"83\"><POSSIBLESTATES def=\"MOVING\"><MOVING><PARTS><BODY><POSSIBLESTATES def=\"FRONT\"><BACK><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Jane_Back\" frames=\"16\" time=\"450\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE regx=\"9\" regy=\"22\" bitmap=\"Jane_HL_Back_Free\" frames=\"16\" time=\"450\" /><T2 bitmap=\"Jane_HL_Back_T2\" regx=\"-3\" regy=\"21\" frames=\"16\" time=\"450\" attx=\"30\" atty=\"30\" /></POSSIBLESTATES></HANDLEFT><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE regx=\"8.5\" regy=\"22\" bitmap=\"Jane_HR_Back_Free\" frames=\"16\" time=\"450\" /><T2 bitmap=\"Jane_HR_Back_T2\" frames=\"16\" regx=\"-3\" regy=\"21\" time=\"450\" atty=\"30\" attx=\"30\" /></POSSIBLESTATES></HANDRIGHT></PARTS></BACK><BACKSIDELEFT><PARTS><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Jane_HR_BackSide_Free\" regy=\"22\" frames=\"16\" regx=\"9.5\" time=\"450\" /><T2 bitmap=\"Jane_HR_BackSide_T2\" regx=\"-2\" regy=\"21\" frames=\"16\" time=\"450\" /></POSSIBLESTATES></HANDRIGHT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Jane_BackSide\" frames=\"16\" time=\"450\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Jane_HL_BackSide_Free\" regx=\"9\" regy=\"22\" frames=\"16\" time=\"450\" /><T2 regy=\"21\" regx=\"-2\" bitmap=\"Jane_HL_BackSide_T2\" frames=\"16\" time=\"450\" /></POSSIBLESTATES></HANDLEFT></PARTS></BACKSIDELEFT><BACKSIDERIGHT><PARTS><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Jane_HR_BackSide_Free\" regx=\"10\" regy=\"22\" frames=\"16\" time=\"450\" flipHor=\"true\" /><T2 regy=\"21\" regx=\"6.5\" bitmap=\"Jane_HR_BackSide_T2\" frames=\"16\" time=\"450\" flipHor=\"true\" /></POSSIBLESTATES></HANDLEFT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Jane_BackSide\" flipHor=\"true\" frames=\"16\" time=\"450\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Jane_HL_BackSide_Free\" regx=\"10\" regy=\"22\" frames=\"16\" time=\"450\" flipHor=\"true\" /><T2 regy=\"21\" regx=\"6.5\" bitmap=\"Jane_HL_BackSide_T2\" frames=\"16\" time=\"450\" flipHor=\"true\" /></POSSIBLESTATES></HANDRIGHT></PARTS></BACKSIDERIGHT><FRONT><PARTS><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Jane_HL_Front_Free\" regx=\"9.5\" regy=\"24\" frames=\"16\" time=\"450\"></FREE><T2 regx=\"-3\" bitmap=\"Jane_HL_Front_T2\" regy=\"21\" frames=\"16\" time=\"450\" /></POSSIBLESTATES></HANDLEFT><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Jane_HR_Front_Free\" regx=\"9\" regy=\"24\" frames=\"16\" time=\"450\"></FREE><T2 bitmap=\"Jane_HR_Front_T2\" regx=\"-3\" regy=\"21\" frames=\"16\" time=\"450\" attx=\"-30\" atty=\"9.5\" /></POSSIBLESTATES></HANDRIGHT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Jane_Front\" frames=\"16\" time=\"450\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY></PARTS></FRONT><FRONTSIDELEFT><PARTS><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Jane_HR_FrontSide_Free\" regx=\"8.5\" regy=\"22\" frames=\"16\" time=\"450\" /><T2 bitmap=\"Jane_HR_FrontSide_T2\" regx=\"-6\" frames=\"16\" regy=\"21\" time=\"450\" /></POSSIBLESTATES></HANDRIGHT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Jane_FrontSide\" frames=\"16\" time=\"450\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Jane_HL_FrontSide_Free\" regy=\"22\" regx=\"8.5\" frames=\"16\" time=\"450\" /><T2 bitmap=\"Jane_HL_FrontSide_T2\" regx=\"-3\" frames=\"16\" regy=\"21\" time=\"450\" /></POSSIBLESTATES></HANDLEFT></PARTS></FRONTSIDELEFT><FRONTSIDERIGHT><PARTS><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE flipHor=\"true\" regy=\"22\" regx=\"10\" bitmap=\"Jane_HR_FrontSide_Free\" frames=\"16\" time=\"450\" /><T2 regy=\"21\" regx=\"6\" flipHor=\"true\" bitmap=\"Jane_HR_FrontSide_T2\" frames=\"16\" time=\"450\" attx=\"30\" atty=\"30\" /></POSSIBLESTATES></HANDLEFT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Jane_FrontSide\" regy=\"0\" regx=\"0\" flipHor=\"true\" frames=\"16\" time=\"450\" /></POSSIBLESTATES></BODY><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE flipHor=\"true\" regx=\"10\" regy=\"22\" bitmap=\"Jane_HL_FrontSide_Free\" frames=\"16\" time=\"450\" /><T2 flipHor=\"true\" bitmap=\"Jane_HL_FrontSide_T2\" regy=\"21\" regx=\"6\" frames=\"16\" time=\"450\" atty=\"30\" attx=\"30\" /></POSSIBLESTATES></HANDRIGHT></PARTS></FRONTSIDERIGHT><SIDELEFT><PARTS><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Jane_HR_Side_Free\" regy=\"22\" regx=\"8.5\" frames=\"16\" time=\"450\" depth=\"bottom\" /><T2 bitmap=\"Jane_HR_Side_T2\" frames=\"16\" regy=\"21\" regx=\"-3\" time=\"450\" /></POSSIBLESTATES></HANDRIGHT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Jane_Side\" frames=\"16\" time=\"450\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Jane_HL_Side_Free\" regy=\"22\" regx=\"8.5\" frames=\"16\" time=\"450\" /><T2 bitmap=\"Jane_HL_Side_T2\" frames=\"16\" regx=\"-3\" time=\"450\" regy=\"21\" /></POSSIBLESTATES></HANDLEFT></PARTS></SIDELEFT><SIDERIGHT><PARTS><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE regx=\"9.5\" regy=\"24\" flipHor=\"true\" bitmap=\"Jane_HL_Side_Free\" frames=\"16\" time=\"450\" /><T2 flipHor=\"true\" bitmap=\"Jane_HR_Side_T2\" frames=\"16\" time=\"450\" regx=\"6\" regy=\"22\" /></POSSIBLESTATES></HANDLEFT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT flipHor=\"true\" bitmap=\"Jane_Side\" frames=\"16\" time=\"450\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE regx=\"9.5\" regy=\"24\" flipHor=\"true\" bitmap=\"Jane_HL_Side_Free\" frames=\"16\" time=\"450\" /><T2 flipHor=\"true\" regx=\"6\" regy=\"22\" bitmap=\"Jane_HL_Side_T2\" frames=\"16\" time=\"450\" /></POSSIBLESTATES></HANDRIGHT></PARTS></SIDERIGHT></POSSIBLESTATES><TRANSITIONS><TRBACK before=\"*\" after=\"BACK\" signal=\"back\" /><TRBACKSIDELEFT before=\"*\" after=\"BACKSIDELEFT\" signal=\"backsideleft\" /><TRBACKSIDERIGHT before=\"*\" after=\"BACKSIDERIGHT\" signal=\"backsideright\" /><TRFRONT before=\"*\" after=\"FRONT\" signal=\"front\" /><TRFRONTSIDELEFT before=\"*\" after=\"FRONTSIDELEFT\" signal=\"frontsideleft\" /><TRFRONTSIDERIGHT before=\"*\" after=\"FRONTSIDERIGHT\" signal=\"frontsideright\" /><TRSIDELEFT before=\"*\" after=\"SIDELEFT\" signal=\"sideleft\" /><TRSIDERIGHT before=\"*\" after=\"SIDERIGHT\" signal=\"sideright\" /></TRANSITIONS></BODY></PARTS></MOVING><WAITING><PARTS><BODY><POSSIBLESTATES def=\"FRONT\"><FRONT><PARTS><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Jane_HL_Front_Free\" regx=\"9.5\" regy=\"24\" frames=\"16\" frame=\"12\"></FREE><T2 regx=\"-6\" bitmap=\"Jane_HL_Front_T2\" regy=\"21\" frames=\"16\" frame=\"12\" /></POSSIBLESTATES></HANDLEFT><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Jane_HR_Front_Free\" regx=\"9\" regy=\"24\" frames=\"16\" frame=\"0\"></FREE><T2 bitmap=\"Jane_HR_Front_T2\" regx=\"-6\" regy=\"21\" frames=\"16\" frame=\"0\" attx=\"-30\" atty=\"9.5\" /></POSSIBLESTATES></HANDRIGHT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Jane_Stay\" frames=\"1\" frame=\"0\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY></PARTS></FRONT></POSSIBLESTATES></BODY></PARTS></WAITING></POSSIBLESTATES><TRANSITIONS><TRWAITING before=\"*\" after=\"WAITING\" signal=\"wait\" /><TRMOVING before=\"*\" after=\"MOVING\" signal=\"move\" /></TRANSITIONS></JANE></DATA>"); internalArr["data//phone.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><PHONE width=\"100\" regx=\"-10\" zorder=\"9105\"><POSSIBLESTATES def=\"BACK\"><BACK><PARTS><PHONELEFT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"-10\" regy=\"10\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONELEFT><PHONERIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"0\" regy=\"10\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONERIGHT></PARTS></BACK><FRONT><PARTS><PHONELEFT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONELEFT><PHONERIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"0\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONERIGHT></PARTS></FRONT><BACKSIDELEFT><PARTS><PHONELEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"0\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONELEFT><PHONERIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"0\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONERIGHT></PARTS></BACKSIDELEFT><BACKSIDERIGHT><PARTS><PHONELEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"0\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONELEFT><PHONERIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"0\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONERIGHT></PARTS></BACKSIDERIGHT><FRONTSIDELEFT><PARTS><PHONELEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"-10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONELEFT><PHONERIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"-10\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONERIGHT></PARTS></FRONTSIDELEFT><FRONTSIDERIGHT><PARTS><PHONELEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"-10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONELEFT><PHONERIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"5\" regy=\"20\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONERIGHT></PARTS></FRONTSIDERIGHT><SIDELEFT><PARTS><PHONELEFT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"-10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONELEFT><PHONERIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"-10\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONERIGHT></PARTS></SIDELEFT><SIDERIGHT><PARTS><PHONELEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"8\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONELEFT><PHONERIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"phone\" regx=\"8\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></PHONERIGHT></PARTS></SIDERIGHT></POSSIBLESTATES></PHONE>"); internalArr["data//maid.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><DATA><MAID width=\"63\" shadowx=\"20\" shadowy=\"83\" height=\"94\"><POSSIBLESTATES def=\"MOVING\"><MOVING><PARTS><BODY><POSSIBLESTATES def=\"FRONT\"><BACK bitmap=\"maid_Back\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /><BACKSIDELEFT bitmap=\"maid_BackSide\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /><BACKSIDERIGHT bitmap=\"maid_BackSide\" flipHor=\"true\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /><FRONT bitmap=\"maid_Front\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /><FRONTSIDELEFT bitmap=\"maid_FrontSide\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /><FRONTSIDERIGHT bitmap=\"maid_FrontSide\" regy=\"0\" regx=\"0\" flipHor=\"true\" frames=\"16\" time=\"600\" /><SIDELEFT bitmap=\"maid_Side\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /><SIDERIGHT flipHor=\"true\" bitmap=\"maid_Side\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES><TRANSITIONS><TRBACK before=\"*\" after=\"BACK\" signal=\"back\" /><TRBACKSIDELEFT before=\"*\" after=\"BACKSIDELEFT\" signal=\"backsideleft\" /><TRBACKSIDERIGHT before=\"*\" after=\"BACKSIDERIGHT\" signal=\"backsideright\" /><TRFRONT before=\"*\" after=\"FRONT\" signal=\"front\" /><TRFRONTSIDELEFT before=\"*\" after=\"FRONTSIDELEFT\" signal=\"frontsideleft\" /><TRFRONTSIDERIGHT before=\"*\" after=\"FRONTSIDERIGHT\" signal=\"frontsideright\" /><TRSIDELEFT before=\"*\" after=\"SIDELEFT\" signal=\"sideleft\" /><TRSIDERIGHT before=\"*\" after=\"SIDERIGHT\" signal=\"sideright\" /></TRANSITIONS></BODY></PARTS></MOVING><CLEANING><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"maid_CleanRoom\" frames=\"13\" time=\"600\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY></PARTS></CLEANING><WATERING><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"maid_Flowers\" frames=\"1\" frame=\"0\" /></POSSIBLESTATES></BODY></PARTS></WATERING><WAITING><PARTS><BODY><POSSIBLESTATES def=\"FRONT\"><FRONT bitmap=\"maid_Front\" frames=\"16\" frame=\"0\" /></POSSIBLESTATES></BODY></PARTS></WAITING></POSSIBLESTATES><TRANSITIONS><TRWAITING before=\"*\" after=\"WAITING\" signal=\"wait\" /><TRWATERING before=\"*\" after=\"WATERING\" signal=\"watering\" /><TRMOVING before=\"*\" after=\"MOVING\" signal=\"move\" /><TRCLEANING before=\"*\" after=\"CLEANING\" signal=\"clean\" /></TRANSITIONS></MAID></DATA>"); internalArr["data//porter.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><DATA><PORTER width=\"58\" shadowy=\"83\" shadowx=\"16\" height=\"92\"><POSSIBLESTATES def=\"MOVING\"><MOVING><PARTS><BODY><POSSIBLESTATES def=\"FRONT\"><BACK><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Porter_Back\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE regx=\"0\" regy=\"22\" bitmap=\"Porter_HL_Back_Free\" frames=\"16\" time=\"600\" /></POSSIBLESTATES></HANDLEFT><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE regx=\"0\" regy=\"22\" bitmap=\"Porter_HR_Back_Free\" frames=\"16\" time=\"600\" /></POSSIBLESTATES></HANDRIGHT></PARTS></BACK><BACKSIDELEFT><PARTS><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Porter_HR_BackSide_Free\" regy=\"22\" frames=\"16\" regx=\"0\" time=\"600\" /></POSSIBLESTATES></HANDRIGHT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Porter_BackSide\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Porter_HL_BackSide_Free\" regx=\"0\" regy=\"22\" frames=\"16\" time=\"600\" /></POSSIBLESTATES></HANDLEFT></PARTS></BACKSIDELEFT><BACKSIDERIGHT><PARTS><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Porter_HR_BackSide_Free\" regx=\"0\" regy=\"22\" frames=\"16\" time=\"600\" flipHor=\"true\" /></POSSIBLESTATES></HANDLEFT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Porter_BackSide\" flipHor=\"true\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Porter_HL_BackSide_Free\" regx=\"0\" regy=\"22\" frames=\"16\" time=\"600\" flipHor=\"true\" /></POSSIBLESTATES></HANDRIGHT></PARTS></BACKSIDERIGHT><FRONT><PARTS><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Porter_HL_Front_Free\" regx=\"0\" regy=\"22\" frames=\"16\" time=\"600\"></FREE></POSSIBLESTATES></HANDLEFT><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Porter_HR_Front_Free\" regx=\"0\" regy=\"22\" frames=\"16\" time=\"600\"></FREE></POSSIBLESTATES></HANDRIGHT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Porter_Front\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY></PARTS></FRONT><FRONTSIDELEFT><PARTS><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Porter_HR_FrontSide_Free\" regx=\"0\" regy=\"22\" frames=\"16\" time=\"600\" /></POSSIBLESTATES></HANDRIGHT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Porter_FrontSide\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Porter_HL_FrontSide_Free\" regy=\"22\" regx=\"0\" frames=\"16\" time=\"600\" /></POSSIBLESTATES></HANDLEFT></PARTS></FRONTSIDELEFT><FRONTSIDERIGHT><PARTS><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE flipHor=\"true\" regy=\"22\" regx=\"0\" bitmap=\"Porter_HR_FrontSide_Free\" frames=\"16\" time=\"600\" /></POSSIBLESTATES></HANDLEFT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Porter_FrontSide\" regy=\"0\" regx=\"0\" flipHor=\"true\" frames=\"16\" time=\"600\" /></POSSIBLESTATES></BODY><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE flipHor=\"true\" regx=\"0\" regy=\"22\" bitmap=\"Porter_HL_FrontSide_Free\" frames=\"16\" time=\"600\" /></POSSIBLESTATES></HANDRIGHT></PARTS></FRONTSIDERIGHT><SIDELEFT><PARTS><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Porter_HR_Side_Free\" regy=\"22\" regx=\"0\" frames=\"16\" time=\"600\" depth=\"bottom\" /></POSSIBLESTATES></HANDRIGHT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Porter_Side\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Porter_HL_Side_Free\" regy=\"22\" regx=\"0\" frames=\"16\" time=\"600\" /></POSSIBLESTATES></HANDLEFT></PARTS></SIDELEFT><SIDERIGHT><PARTS><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE regx=\"0\" regy=\"22\" flipHor=\"true\" bitmap=\"Porter_HL_Side_Free\" frames=\"16\" time=\"600\" /></POSSIBLESTATES></HANDLEFT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT flipHor=\"true\" bitmap=\"Porter_Side\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE regx=\"0\" regy=\"22\" flipHor=\"true\" bitmap=\"Porter_HL_Side_Free\" frames=\"16\" time=\"600\" /></POSSIBLESTATES></HANDRIGHT></PARTS></SIDERIGHT></POSSIBLESTATES><TRANSITIONS><TRBACK before=\"*\" after=\"BACK\" signal=\"back\" /><TRBACKSIDELEFT before=\"*\" after=\"BACKSIDELEFT\" signal=\"backsideleft\" /><TRBACKSIDERIGHT before=\"*\" after=\"BACKSIDERIGHT\" signal=\"backsideright\" /><TRFRONT before=\"*\" after=\"FRONT\" signal=\"front\" /><TRFRONTSIDELEFT before=\"*\" after=\"FRONTSIDELEFT\" signal=\"frontsideleft\" /><TRFRONTSIDERIGHT before=\"*\" after=\"FRONTSIDERIGHT\" signal=\"frontsideright\" /><TRSIDELEFT before=\"*\" after=\"SIDELEFT\" signal=\"sideleft\" /><TRSIDERIGHT before=\"*\" after=\"SIDERIGHT\" signal=\"sideright\" /></TRANSITIONS></BODY></PARTS></MOVING><REPARING><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"porter_Repair\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY></PARTS></DEFAULT></POSSIBLESTATES></BODY></PARTS></REPARING><REPARING_FLIP><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"porter_Repair\" frames=\"16\" time=\"600\" regy=\"0\" regx=\"0\" flipHor=\"true\" /></POSSIBLESTATES></BODY></PARTS></DEFAULT></POSSIBLESTATES></BODY></PARTS></REPARING_FLIP><WAITING><PARTS><BODY><POSSIBLESTATES def=\"FRONT\"><FRONT><PARTS><HANDLEFT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Porter_HL_Front_Free\" regx=\"0\" regy=\"22\" frames=\"16\" frame=\"0\"></FREE></POSSIBLESTATES></HANDLEFT><HANDRIGHT><POSSIBLESTATES def=\"FREE\"><FREE bitmap=\"Porter_HR_Front_Free\" regx=\"0\" regy=\"22\" frames=\"16\" frame=\"0\"></FREE></POSSIBLESTATES></HANDRIGHT><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"Porter_Front\" frames=\"16\" frame=\"4\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES></BODY></PARTS></FRONT></POSSIBLESTATES></BODY></PARTS></WAITING></POSSIBLESTATES><TRANSITIONS><TRWAITING before=\"*\" after=\"WAITING\" signal=\"wait\" /><TRMOVING before=\"*\" after=\"MOVING\" signal=\"move\" /><TRREPARE before=\"*\" after=\"REPARING\" signal=\"repare\" /><TRREPAREFLIP before=\"*\" after=\"REPARING_FLIP\" signal=\"repare_flip\" /></TRANSITIONS></PORTER></DATA>"); internalArr["data//ashop.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><SHOP><ITEMS><ADD_LEFT sprite=\"shop_newspaper\" price=\"70\" mapObj=\"add_left\"><ADDS><add_left sprite=\"add_left\" place_x=\"200\" place_y=\"330\" mapObj=\"add_left\" /><ADD2 sprite=\"daily\" place_x=\"200\" place_y=\"330\" mapObj=\"paper\" /></ADDS></ADD_LEFT><ARCH1 sprite=\"shop_arch\" price=\"140\" mapObj=\"arch1\"><ADDS><ARCH4 sprite=\"arch_2_4\" place_x=\"337\" place_y=\"37\" flipHor=\"true\" mapObj=\"arch4\" /><ARCH3 sprite=\"arch_3\" place_x=\"239\" place_y=\"31\" mapObj=\"arch3\" /><ARCH5 sprite=\"arch_1_5\" place_x=\"445\" place_y=\"-2\" mapObj=\"arch5\" /><ARCH2 sprite=\"arch_2_4\" place_x=\"151\" place_y=\"37\" mapObj=\"arch2\" /><ARCH1 sprite=\"arch_1_5\" place_x=\"44\" place_y=\"-5\" mapObj=\"arch1\" /></ADDS></ARCH1><ADD_RIGHT sprite=\"shop_phone\" price=\"170\" mapObj=\"add_right\"><ADDS><ADD1 sprite=\"add_left\" place_x=\"308\" place_y=\"330\" mapObj=\"add_right\" flipHor=\"true\" /><ADD2 sprite=\"phone\" place_y=\"330\" place_x=\"308\" mapObj=\"phone\" /></ADDS></ADD_RIGHT><SHIELD_LEFT sprite=\"shop_shield\" price=\"200\" mapObj=\"shield_left\"><ADDS><shield_left sprite=\"shield\" place_x=\"200\" place_y=\"20\" mapObj=\"shield_left\" /><shield_right sprite=\"shield\" place_x=\"300\" place_y=\"20\" mapObj=\"shield_right\" /></ADDS></SHIELD_LEFT><ARMCHAIR_LEFT sprite=\"shop_armchair_left\" price=\"250\" mapObj=\"armchair_left\"><ADDS><ADD1 sprite=\"armchair_left\" mapObj=\"armchair_left\" place_x=\"170\" place_y=\"195\" /></ADDS></ARMCHAIR_LEFT><ARMCHAIR_RIGHT sprite=\"shop_armchair_right\" price=\"250\" mapObj=\"armchair_right\"><ADDS><ADD1 sprite=\"armchair_left\" flipHor=\"true\" mapObj=\"armchair_right\" place_x=\"320\" place_y=\"195\" /></ADDS></ARMCHAIR_RIGHT><RECEPTION_U sprite=\"shop_reception_u\" price=\"270\" mapObj=\"reception_u\"><ADDS><ADD1 sprite=\"reception_u\" place_x=\"222\" place_y=\"317\" mapObj=\"reception_u\" /></ADDS><DELS><reception1 /></DELS></RECEPTION_U><TABLEFOREAT sprite=\"shop_table\" price=\"300\" mapObj=\"chair\"><ADDS><CHAIR sprite=\"chair\" place_x=\"10\" place_y=\"280\" mapObj=\"chair\" /><KITCHEN sprite=\"kitchen\" place_x=\"30\" place_y=\"150\" mapObj=\"kitchen\" /></ADDS></TABLEFOREAT><COFFEE_U sprite=\"shop_coffee_u\" price=\"350\" mapObj=\"coffee_u\"><ADDS><ADD1 sprite=\"coffee_u\" place_x=\"460\" place_y=\"150\" mapObj=\"coffee_u\" /><ADD2 sprite=\"table_coffee\" place_x=\"430\" place_y=\"180\" mapObj=\"coffee_table\" /></ADDS><DELS><coffee /></DELS></COFFEE_U><TREE_LEFT sprite=\"shop_tree\" price=\"400\" mapObj=\"flower_left\"><ADDS><ADD1 sprite=\"tree_left\" place_x=\"125\" place_y=\"50\" mapObj=\"flower_left\" /><ADD2 sprite=\"tree_left\" place_y=\"50\" place_x=\"389\" flipHor=\"true\" mapObj=\"flower_right\" /></ADDS></TREE_LEFT><LAMP_LEFT sprite=\"shop_lamp\" price=\"400\" mapObj=\"lamp_left\"><ADDS><LAMP_LEFT sprite=\"lamp\" place_x=\"10\" place_y=\"10\" mapObj=\"lamp_left\" /><LAMP_RIGHT sprite=\"lamp\" place_y=\"10\" place_x=\"520\" mapObj=\"lamp_right\" /></ADDS></LAMP_LEFT><ARMOR_LEFT sprite=\"shop_armor\" price=\"500\" mapObj=\"armor_left\"><ADDS><ARMOR_LEFT sprite=\"armor_left\" place_x=\"200\" place_y=\"44\" mapObj=\"armor_left\" /><ARMOR_RIGHT sprite=\"armor_left\" flipHor=\"true\" place_y=\"44\" place_x=\"302\" mapObj=\"armor_right\" /></ADDS></ARMOR_LEFT><KNIGHT sprite=\"shop_knight\" price=\"450\" restricted=\"true\"></KNIGHT><FLOOR_U sprite=\"shop_floor\" price=\"500\" restricted=\"true\" /><WALLS_U_OLD sprite=\"shop_wall\" price=\"500\" restricted=\"true\" /><FOUNTAIN_U sprite=\"shop_fountain\" price=\"800\" restricted=\"true\"></FOUNTAIN_U></ITEMS><INTERFACE><BACKGROUND sprite=\"shop_back\" /></INTERFACE></SHOP>"); internalArr["data//eng_anim.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><DATA><ENG_MAN width=\"59\" height=\"100\" circlex=\"40\" hallo=\"hello_male2\" shadowx=\"20\" shadow_slx=\"30\" shadow_srx=\"0\" shadow_sy=\"70\" shadowy=\"90\"><POSSIBLESTATES def=\"MOVING\"><MOVING><PARTS><BODY><POSSIBLESTATES def=\"FRONT\"><BACK bitmap=\"eng_Back\" frames=\"14\" time=\"450\" regy=\"0\" regx=\"0\" /><BACKSIDELEFT bitmap=\"eng_BackSide\" frames=\"14\" time=\"450\" regy=\"0\" regx=\"0\" /><BACKSIDERIGHT bitmap=\"eng_BackSide\" flipHor=\"true\" frames=\"14\" time=\"450\" regy=\"0\" regx=\"0\" /><FRONT bitmap=\"eng_Front\" frames=\"14\" time=\"450\" regy=\"0\" regx=\"0\" /><FRONTSIDELEFT bitmap=\"eng_FrontSide\" frames=\"14\" time=\"450\" regy=\"0\" regx=\"0\" /><FRONTSIDERIGHT bitmap=\"eng_FrontSide\" regy=\"0\" regx=\"0\" flipHor=\"true\" frames=\"14\" time=\"450\" /><SIDELEFT bitmap=\"eng_Side\" frames=\"14\" time=\"450\" regy=\"0\" regx=\"0\" /><SIDERIGHT flipHor=\"true\" bitmap=\"eng_Side\" frames=\"14\" time=\"450\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES><TRANSITIONS><TRBACK before=\"*\" after=\"BACK\" signal=\"back\" /><TRBACKSIDELEFT before=\"*\" after=\"BACKSIDELEFT\" signal=\"backsideleft\" /><TRBACKSIDERIGHT before=\"*\" after=\"BACKSIDERIGHT\" signal=\"backsideright\" /><TRFRONT before=\"*\" after=\"FRONT\" signal=\"front\" /><TRFRONTSIDELEFT before=\"*\" after=\"FRONTSIDELEFT\" signal=\"frontsideleft\" /><TRFRONTSIDERIGHT before=\"*\" after=\"FRONTSIDERIGHT\" signal=\"frontsideright\" /><TRSIDELEFT before=\"*\" after=\"SIDELEFT\" signal=\"sideleft\" /><TRSIDERIGHT before=\"*\" after=\"SIDERIGHT\" signal=\"sideright\" /></TRANSITIONS></BODY></PARTS></MOVING><SIT_COFFEE_DRINK_LEFT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"eng_Sit_Coffee_Drink\" frames=\"31\" time=\"2000\" /></POSSIBLESTATES></BODY></PARTS></SIT_COFFEE_DRINK_LEFT><SIT_COFFEE_DRINK_RIGHT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"eng_Sit_Coffee_Drink\" frames=\"31\" time=\"2000\" flipHor=\"true\" /></POSSIBLESTATES></BODY></PARTS></SIT_COFFEE_DRINK_RIGHT><SIT_READING_LEFT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"eng_Sit_Magazin_Reading\" frames=\"11\" time=\"2000\" /></POSSIBLESTATES></BODY></PARTS></SIT_READING_LEFT><SIT_READING_RIGHT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"eng_Sit_Magazin_Reading\" flipHor=\"true\" frames=\"11\" time=\"2000\" /></POSSIBLESTATES></BODY></PARTS></SIT_READING_RIGHT><SIT_EATING><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"eng_Eat\" frames=\"17\" time=\"2000\" flipHor=\"true\" regy=\"-2\" /></POSSIBLESTATES></BODY></PARTS></SIT_EATING><SITING_CHAIR><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"eng_Sit_Chair\" frames=\"1\" frame=\"0\" flipHor=\"true\" /></POSSIBLESTATES></BODY></PARTS></SITING_CHAIR><SITING_LEFT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"eng_Sit\" frames=\"1\" frame=\"0\" /></POSSIBLESTATES></BODY></PARTS></SITING_LEFT><SITING_RIGHT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"eng_Sit\" frames=\"1\" flipHor=\"true\" frame=\"0\" /></POSSIBLESTATES></BODY></PARTS></SITING_RIGHT><STAY><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"eng_Stay\" frames=\"1\" frame=\"0\" /></POSSIBLESTATES></BODY></PARTS></STAY></POSSIBLESTATES><TRANSITIONS><TRMOVING before=\"*\" after=\"MOVING\" signal=\"moving\" /><TREATING before=\"*\" after=\"SIT_EATING\" signal=\"eat\" /><TRSITING_LEFT before=\"*\" after=\"SITING_LEFT\" signal=\"siting_left\" /><TRSITING_RIGHT before=\"*\" after=\"SITING_RIGHT\" signal=\"siting_right\" /><TRSITING_CHAIR before=\"*\" after=\"SITING_CHAIR\" signal=\"siting_chair\" /><TRSIT_COFFEE_DRINK_LEFT before=\"*\" after=\"SIT_COFFEE_DRINK_LEFT\" signal=\"drink_left\" /><TRSIT_COFFEE_DRINK_RIGHT before=\"*\" after=\"SIT_COFFEE_DRINK_RIGHT\" signal=\"drink_right\" /><TRREADING_LEFT before=\"*\" after=\"SIT_READING_LEFT\" signal=\"reading_left\" /><TRREADING_RIGHT before=\"*\" after=\"SIT_READING_RIGHT\" signal=\"reading_right\" /><TRSTAY before=\"*\" after=\"STAY\" signal=\"stay\" /></TRANSITIONS></ENG_MAN><PORTRAITS normal=\"eng_norm\" angry=\"eng_angry\" smile=\"eng_smile\" /></DATA>"); internalArr["data//boy_anim.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><DATA><AUDIO_BOY width=\"63\" height=\"107\" hallo=\"hello_male2\" circlex=\"25\" shadowx=\"12\" shadow_srx=\"0\" shadow_slx=\"35\" shadow_sy=\"70\" shadowy=\"97\"><POSSIBLESTATES def=\"MOVING\"><MOVING><PARTS><BODY><POSSIBLESTATES def=\"FRONT\"><BACK bitmap=\"boy_Back\" frames=\"16\" time=\"450\" regy=\"0\" regx=\"0\" /><BACKSIDELEFT bitmap=\"boy_BackSide\" frames=\"16\" time=\"450\" regy=\"0\" regx=\"0\" /><BACKSIDERIGHT bitmap=\"boy_BackSide\" flipHor=\"true\" frames=\"16\" time=\"450\" regy=\"0\" regx=\"0\" /><FRONT bitmap=\"boy_Front\" frames=\"16\" time=\"450\" regy=\"0\" regx=\"0\" /><FRONTSIDELEFT bitmap=\"boy_FrontSide\" frames=\"16\" time=\"450\" regy=\"0\" regx=\"0\" /><FRONTSIDERIGHT bitmap=\"boy_FrontSide\" regy=\"0\" regx=\"0\" flipHor=\"true\" frames=\"16\" time=\"450\" /><SIDELEFT bitmap=\"boy_Side\" frames=\"16\" time=\"450\" regy=\"0\" regx=\"0\" /><SIDERIGHT flipHor=\"true\" bitmap=\"boy_Side\" frames=\"16\" time=\"450\" regy=\"0\" regx=\"0\" /></POSSIBLESTATES><TRANSITIONS><TRBACK before=\"*\" after=\"BACK\" signal=\"back\" /><TRBACKSIDELEFT before=\"*\" after=\"BACKSIDELEFT\" signal=\"backsideleft\" /><TRBACKSIDERIGHT before=\"*\" after=\"BACKSIDERIGHT\" signal=\"backsideright\" /><TRFRONT before=\"*\" after=\"FRONT\" signal=\"front\" /><TRFRONTSIDELEFT before=\"*\" after=\"FRONTSIDELEFT\" signal=\"frontsideleft\" /><TRFRONTSIDERIGHT before=\"*\" after=\"FRONTSIDERIGHT\" signal=\"frontsideright\" /><TRSIDELEFT before=\"*\" after=\"SIDELEFT\" signal=\"sideleft\" /><TRSIDERIGHT before=\"*\" after=\"SIDERIGHT\" signal=\"sideright\" /></TRANSITIONS></BODY></PARTS></MOVING><SIT_COFFEE_DRINK_LEFT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"boy_Sit_Coffee_Drink\" frames=\"12\" time=\"2500\" /></POSSIBLESTATES></BODY></PARTS></SIT_COFFEE_DRINK_LEFT><SIT_COFFEE_DRINK_RIGHT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"boy_Sit_Coffee_Drink\" frames=\"12\" time=\"2500\" flipHor=\"true\" /></POSSIBLESTATES></BODY></PARTS></SIT_COFFEE_DRINK_RIGHT><SIT_READING_LEFT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"boy_Sit_Magazine_Reading\" frames=\"19\" time=\"2500\" /></POSSIBLESTATES></BODY></PARTS></SIT_READING_LEFT><SIT_READING_RIGHT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"boy_Sit_Magazine_Reading\" flipHor=\"true\" frames=\"19\" time=\"2500\" /></POSSIBLESTATES></BODY></PARTS></SIT_READING_RIGHT><SIT_EATING><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"boy_Eat\" frames=\"15\" time=\"2000\" flipHor=\"true\" regy=\"-3\" regx=\"-2\" /></POSSIBLESTATES></BODY></PARTS></SIT_EATING><SITING_LEFT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"boy_Sit\" frames=\"1\" frame=\"0\" /></POSSIBLESTATES></BODY></PARTS></SITING_LEFT><SITING_CHAIR><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"boy_Sit_Chair\" frames=\"1\" frame=\"0\" flipHor=\"true\" regy=\"-3\" regx=\"-2\" /></POSSIBLESTATES></BODY></PARTS></SITING_CHAIR><SITING_RIGHT><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"boy_Sit\" frames=\"1\" flipHor=\"true\" frame=\"0\" /></POSSIBLESTATES></BODY></PARTS></SITING_RIGHT><STAY><PARTS><BODY><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"boy_Stay\" frames=\"1\" frame=\"0\" /></POSSIBLESTATES></BODY></PARTS></STAY></POSSIBLESTATES><TRANSITIONS><TRMOVING before=\"*\" after=\"MOVING\" signal=\"moving\" /><TREATING before=\"*\" after=\"SIT_EATING\" signal=\"eat\" /><TRSITING_LEFT before=\"*\" after=\"SITING_LEFT\" signal=\"siting_left\" /><TRSITING_CHAIR before=\"*\" after=\"SITING_CHAIR\" signal=\"siting_chair\" /><TRSITING_RIGHT before=\"*\" after=\"SITING_RIGHT\" signal=\"siting_right\" /><TRSIT_COFFEE_DRINK_LEFT before=\"*\" after=\"SIT_COFFEE_DRINK_LEFT\" signal=\"drink_left\" /><TRSIT_COFFEE_DRINK_RIGHT before=\"*\" after=\"SIT_COFFEE_DRINK_RIGHT\" signal=\"drink_right\" /><TRREADING_LEFT before=\"*\" after=\"SIT_READING_LEFT\" signal=\"reading_left\" /><TRREADING_RIGHT before=\"*\" after=\"SIT_READING_RIGHT\" signal=\"reading_right\" /><TRSTAY before=\"*\" after=\"STAY\" signal=\"stay\" /></TRANSITIONS></AUDIO_BOY><PORTRAITS normal=\"boy_norm\" angry=\"boy_angry\" smile=\"boy_smile\" /></DATA>"); internalArr["data//eat.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><EAT width=\"100\" regx=\"-10\"><POSSIBLESTATES def=\"BACK\"><BACK><PARTS><EATLEFT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"-10\" regy=\"10\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATLEFT><EATRIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"0\" regy=\"10\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATRIGHT></PARTS></BACK><FRONT><PARTS><EATLEFT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATLEFT><EATRIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"0\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATRIGHT></PARTS></FRONT><BACKSIDELEFT><PARTS><EATLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"0\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATLEFT><EATRIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"0\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATRIGHT></PARTS></BACKSIDELEFT><BACKSIDERIGHT><PARTS><EATLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"0\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATLEFT><EATRIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"0\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATRIGHT></PARTS></BACKSIDERIGHT><FRONTSIDELEFT><PARTS><EATLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"-10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATLEFT><EATRIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"-10\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATRIGHT></PARTS></FRONTSIDELEFT><FRONTSIDERIGHT><PARTS><EATLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"-10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATLEFT><EATRIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"5\" regy=\"20\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATRIGHT></PARTS></FRONTSIDERIGHT><SIDELEFT><PARTS><EATLEFT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"-10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATLEFT><EATRIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"-10\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATRIGHT></PARTS></SIDELEFT><SIDERIGHT><PARTS><EATLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"8\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATLEFT><EATRIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"hand_eat\" regx=\"8\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></EATRIGHT></PARTS></SIDERIGHT></POSSIBLESTATES></EAT>"); internalArr["data//hand.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><CUP width=\"100\" regx=\"-10\"><POSSIBLESTATES def=\"BACK\"><BACK><PARTS><CUPLEFT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"-10\" regy=\"10\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPLEFT><CUPRIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"0\" regy=\"10\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPRIGHT></PARTS></BACK><FRONT><PARTS><CUPLEFT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPLEFT><CUPRIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"0\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPRIGHT></PARTS></FRONT><BACKSIDELEFT><PARTS><CUPLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"0\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPLEFT><CUPRIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"0\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPRIGHT></PARTS></BACKSIDELEFT><BACKSIDERIGHT><PARTS><CUPLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"0\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPLEFT><CUPRIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"0\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPRIGHT></PARTS></BACKSIDERIGHT><FRONTSIDELEFT><PARTS><CUPLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"-10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPLEFT><CUPRIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"-10\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPRIGHT></PARTS></FRONTSIDELEFT><FRONTSIDERIGHT><PARTS><CUPLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"-10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPLEFT><CUPRIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"5\" regy=\"20\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPRIGHT></PARTS></FRONTSIDERIGHT><SIDELEFT><PARTS><CUPLEFT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"-10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPLEFT><CUPRIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"-10\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPRIGHT></PARTS></SIDELEFT><SIDERIGHT><PARTS><CUPLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"8\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPLEFT><CUPRIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"cup\" regx=\"8\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></CUPRIGHT></PARTS></SIDERIGHT></POSSIBLESTATES></CUP>"); internalArr["data//paper.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><DAILY width=\"100\" regx=\"-10\" zorder=\"9103\"><POSSIBLESTATES def=\"BACK\"><BACK><PARTS><DAILYLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"-10\" regy=\"10\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYLEFT><DAILYRIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"0\" regy=\"10\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYRIGHT></PARTS></BACK><FRONT><PARTS><DAILYLEFT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYLEFT><DAILYRIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"0\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYRIGHT></PARTS></FRONT><BACKSIDELEFT><PARTS><DAILYLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"0\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYLEFT><DAILYRIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"0\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYRIGHT></PARTS></BACKSIDELEFT><BACKSIDERIGHT><PARTS><DAILYLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"0\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYLEFT><DAILYRIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"0\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYRIGHT></PARTS></BACKSIDERIGHT><FRONTSIDELEFT><PARTS><DAILYLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"-10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYLEFT><DAILYRIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"-10\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYRIGHT></PARTS></FRONTSIDELEFT><FRONTSIDERIGHT><PARTS><DAILYLEFT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"-10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYLEFT><DAILYRIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"5\" regy=\"20\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYRIGHT></PARTS></FRONTSIDERIGHT><SIDELEFT><PARTS><DAILYLEFT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"-10\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYLEFT><DAILYRIGHT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"-10\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYRIGHT></PARTS></SIDELEFT><SIDERIGHT><PARTS><DAILYLEFT after=\"root\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"8\" regy=\"15\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYLEFT><DAILYRIGHT after=\"last\"><POSSIBLESTATES def=\"DEFAULT\"><DEFAULT bitmap=\"daily\" regx=\"8\" regy=\"25\" frames=\"1\" time=\"600\" /></POSSIBLESTATES></DAILYRIGHT></PARTS></SIDERIGHT></POSSIBLESTATES></DAILY>"); if (Helper.SINGLEFILE == true) { if (Game.LANGUAGE == "RUS") { internalArr["data//translate.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><DICTIONARY konkurs=\"\u041A\u041E\u041D\u041A\u0423\u0420\u0421\" client=\"\u041A\u043B\u0438\u0435\u043D\u0442\" hint_ARCH1=\"\u0421\u0440\u0435\u0434\u043D\u0435\u0432\u0435\u043A\u043E\u0432\u044B\u0435 \u0430\u0440\u043A\u0438. \u042D\u0442\u0438 \u0430\u0440\u043A\u0438 \u0432\u043E\u0441\u0441\u043E\u0437\u0434\u0430\u043D\u044B \u043F\u043E \u0447\u0435\u0440\u0442\u0435\u0436\u0430\u043C 13\u0433\u043E \u0432\u0435\u043A\u0430\" hint_ADD_LEFT=\"\u041A\u043B\u0438\u0435\u043D\u0442\u044B \u0432\u0430\u0448\u0435\u0433\u043E \u043E\u0442\u0435\u043B\u044F \u0441\u043C\u043E\u0433\u0443\u0442 \u0437\u0430\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u0432\u0435\u0436\u0438\u0435 \u0433\u0430\u0437\u0435\u0442\u044B. \u041F\u043E\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043F\u0440\u043E\u0441\u044C\u0431\u0430 "\u041F\u0440\u0438\u043D\u0435\u0441\u0442\u0438 \u0433\u0430\u0437\u0435\u0442\u0443"\" hint_ADD_RIGHT=\"\u0422\u0435\u043B\u0435\u0444\u043E\u043D "Phone 2130". \u041F\u043E\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043F\u0440\u043E\u0441\u044C\u0431\u0430 "\u043F\u0440\u0438\u043D\u0435\u0441\u0442\u0438 \u0442\u0435\u043B\u0435\u0444\u043E\u043D".\" hint_COFFEE_U=\"\u041A\u043E\u0444\u0435\u0439\u043D\u044B\u0439 \u0430\u043F\u043F\u0430\u0440\u0430\u0442 "\u041A\u043E\u0444\u0435 \u041C \u041F\u0440\u043E-2000".\" hint_LAMP_LEFT=\"\u041B\u0430\u043C\u043F\u044B \u0438\u0437 \u0424\u043B\u043E\u0440\u0435\u043D\u0442\u0438\u0439\u0441\u043A\u043E\u0433\u043E \u0445\u0440\u0443\u0441\u0442\u0430\u043B\u044F. \u0411\u043E\u043B\u044C\u0448\u0435 \u0441\u0432\u0435\u0442\u0430 \u0438 \u044F\u0440\u043A\u0438\u0445 \u043A\u0440\u0430\u0441\u043E\u043A, \u0434\u043E\u043B\u043E\u0439 \u0443\u043D\u044B\u043D\u0438\u0435 \u0438 \u0431\u0443\u0434\u043D\u0438\u0447\u043D\u0443\u044E \u0441\u0435\u0440\u043E\u0441\u0442\u044C.\" hint_ARMCHAIR_LEFT=\"\u0420\u0435\u0437\u043D\u043E\u0435 \u043A\u0440\u0435\u0441\u043B\u043E \u0438\u0437 \u0431\u0443\u043A\u0430. \u0428\u0438\u043A\u0430\u0440\u043D\u043E\u0435 \u043A\u0440\u0435\u0441\u043B\u043E \u0438\u0437 \u0440\u0435\u0434\u043A\u0438\u0445 \u043F\u043E\u0440\u043E\u0434 \u0431\u0443\u043A\u0430.\" hint_ARMCHAIR_RIGHT=\"\u0420\u0435\u0437\u043D\u043E\u0435 \u043A\u0440\u0435\u0441\u043B\u043E \u0438\u0437 \u0431\u0443\u043A\u0430. \u0428\u0438\u043A\u0430\u0440\u043D\u043E\u0435 \u043A\u0440\u0435\u0441\u043B\u043E \u0438\u0437 \u0440\u0435\u0434\u043A\u0438\u0445 \u043F\u043E\u0440\u043E\u0434 \u0431\u0443\u043A\u0430.\" hint_SHIELD_LEFT=\"\u041A\u043E\u043B\u043B\u0435\u043A\u0446\u0438\u044F \u043E\u0440\u0443\u0436\u0438\u044F \u043D\u0430 \u0441\u0442\u0435\u043D\u0430\u0445 \u0441\u043E\u0437\u0434\u0430\u0441\u0442 \u043F\u043E\u0438\u0441\u0442\u0438\u043D\u0435 \u0440\u044B\u0446\u0430\u0440\u0441\u043A\u0438\u0439 \u0434\u0443\u0445 \u0432 \u0432\u0430\u0448\u0435\u043C \u043E\u0442\u0435\u043B\u0435.\" hint_RECEPTION_U=\"\u0421\u0442\u043E\u043B-\u0441\u0442\u043E\u0439\u043A\u0430 \u0438\u0437 \u043A\u0440\u0430\u0441\u043D\u043E\u0433\u043E \u0434\u0435\u0440\u0435\u0432\u0430. \u042D\u0442\u043E\u0442 \u0441\u0442\u043E\u043B \u0432\u044B\u0433\u043B\u044F\u0434\u0438\u0442 \u043F\u043E\u0438\u0441\u0442\u0438\u043D\u0435 \u043A\u043E\u0440\u043E\u043B\u0435\u0432\u0441\u043A\u0438\u043C\" hint_TABLEFOREAT=\"\u0420\u0435\u0441\u0442\u043E\u0440\u0430\u043D. \u0422\u0435\u043F\u0435\u0440\u044C, \u0432\u044B \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0434\u0430\u0432\u0430\u0442\u044C \u0433\u043E\u0440\u044F\u0447\u0438\u0435 \u0431\u043B\u044E\u0434\u0430 \u043F\u0440\u044F\u043C\u043E \u0432 \u0437\u0430\u043B.\" hint_TREE_LEFT=\"\u0426\u0432\u0435\u0442\u044B. \u042D\u0442\u0438 \u0447\u0443\u0434\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u044B \u0441\u0434\u0435\u043B\u0430\u044E\u0442 \u043E\u0442\u0435\u043B\u044C \u0431\u043E\u043B\u0435\u0435 \u043A\u0440\u0430\u0441\u0438\u0432\u044B\u043C \u0438 \u0443\u044E\u0442\u043D\u044B\u043C.		\" hint_ARMOR_LEFT=\"\u0420\u044B\u0446\u0430\u0440\u0441\u043A\u0438\u0435 \u0434\u043E\u0441\u043F\u0435\u0445\u0438. \u042D\u0442\u0438 \u0434\u043E\u0441\u043F\u0435\u0445\u0438 \u0441\u043E\u0437\u0434\u0430\u044E\u0442 \u0437\u0430\u0433\u0430\u0434\u043E\u0447\u043D\u0443\u044E \u0430\u0442\u043C\u043E\u0441\u0444\u0435\u0440\u0443 \u0441\u0440\u0435\u0434\u043D\u0435\u0432\u0435\u043A\u043E\u0432\u044C\u044F.\" hint_KNIGHT=\"\u0414\u043E\u0441\u043F\u0435\u0445\u0438 \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0433\u043E \u0440\u044B\u0446\u0430\u0440\u044F. \u0414\u043E\u0441\u043F\u0435\u0445\u0438 \u0440\u044B\u0446\u0430\u0440\u044F, \u0440\u0430\u0431\u043E\u0442\u0430 \u043C\u0430\u0441\u0442\u0435\u0440\u0430 \u0413\u0430\u0440\u0435\u0442\u0430, 13 \u0432\u0435\u043A.\" hint_FLOOR_U=\"\u041C\u043E\u0437\u0430\u0438\u0447\u043D\u044B\u0439 \u043F\u043E\u043B \u0438\u0437 \u0444\u0440\u0430\u043D\u0446\u0443\u0437\u0441\u043A\u043E\u0433\u043E \u043C\u0440\u0430\u043C\u043E\u0440\u0430 \u043F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u0438\u0442 \u0432\u0430\u0448 \u043E\u0442\u0435\u043B\u044C.\" hint_WALLS_U_OLD=\"\u041D\u043E\u0432\u044B\u0435 \u0441\u0442\u0435\u043D\u044B \u0438\u0437 \u0438\u0442\u0430\u043B\u044C\u044F\u043D\u0441\u043A\u043E\u0439 \u0433\u043B\u0438\u043D\u044B, \u0443\u043A\u0440\u0430\u0448\u0435\u043D\u043D\u044B\u0435 \u043F\u043B\u0438\u0442\u043A\u043E\u0439 \u0438\u0437 \u0436\u0435\u043B\u0442\u043E-\u0440\u043E\u0437\u043E\u0432\u043E\u0433\u043E \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044F\u043A\u0430.\" hint_FOUNTAIN_U=\"\u0424\u043E\u043D\u0442\u0430\u043D \u0438\u0437 \u0430\u043D\u0442\u0438\u0447\u043D\u043E\u0433\u043E \u043C\u0440\u0430\u043C\u043E\u0440\u0430 \u0441 \u043E\u0447\u0430\u0440\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u043C\u0438 \u0440\u044B\u0431\u043A\u0430\u043C\u0438, \u044D\u0442\u043E \u0442\u043E, \u0447\u0442\u043E \u043D\u0430\u043C \u043D\u0443\u0436\u043D\u043E.\" hint_add_ARCH1=\"+1 \u043A\u043B\u0438\u0435\u043D\u0442\" hint_add_ADD_LEFT=\"+10 \u043F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u043E\u0441\u0442\u0438\" hint_add_ADD_RIGHT=\"+10 \u043F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u043E\u0441\u0442\u0438\" hint_add_COFFEE_U=\"+10$ \u0437\u0430 \u0443\u0441\u043B\u0443\u0433\u0443<BR>+10 \u043F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u043E\u0441\u0442\u0438<BR>\u043D\u0435 \u043B\u043E\u043C\u0430\u0435\u0442\u0441\u044F\" hint_add_MAGAZINE=\"+1 \u043A\u043B\u0438\u0435\u043D\u0442<BR>+3 \u0441\u0435\u043A. \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F\" hint_add_LAMP_LEFT=\"+1 \u043A\u043B\u0438\u0435\u043D\u0442\" hint_add_ARMCHAIR_LEFT=\"+10 \u0441\u0435\u043A. \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F<BR>+5 \u043F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u043E\u0441\u0442\u0438\" hint_add_ARMCHAIR_RIGHT=\"+10 \u0441\u0435\u043A. \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F<BR>+5 \u043F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u043E\u0441\u0442\u0438\" hint_add_SHIELD_LEFT=\"+1 \u043A\u043B\u0438\u0435\u043D\u0442\" hint_add_RECEPTION_U=\"+1 \u043A\u043B\u0438\u0435\u043D\u0442<BR>+6 \u0441\u0435\u043A. \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F\" hint_add_TABLEFOREAT=\"+15 \u043F\u043E\u043F\u0443\u043B\u044F\u0440\u043D\u043E\u0441\u0442\u0438\" hint_add_TREE_LEFT=\"+2 \u043A\u043B\u0438\u0435\u043D\u0442\u0430\" hint_add_ARMOR_LEFT=\"+1 \u043A\u043B\u0438\u0435\u043D\u0442\" hint_add_KNIGHT=\"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u0432 \u043F\u043E\u043B\u043D\u043E\u0439 \u0432\u0435\u0440\u0441\u0438\u0438\" hint_add_FLOOR_U=\"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u0432 \u043F\u043E\u043B\u043D\u043E\u0439 \u0432\u0435\u0440\u0441\u0438\u0438\" hint_add_WALLS_U_OLD=\"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u0432 \u043F\u043E\u043B\u043D\u043E\u0439 \u0432\u0435\u0440\u0441\u0438\u0438\" hint_add_FOUNTAIN_U=\"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u0432 \u043F\u043E\u043B\u043D\u043E\u0439 \u0432\u0435\u0440\u0441\u0438\u0438\" menu_DAY=\"\u0414\u0415\u041D\u042C \" menu_GO=\"\u0421\u0422\u0410\u0420\u0422!\" menu_START=\"\u0421\u0422\u0410\u0420\u0422\" menu_GETIT=\"\u0421\u041A\u0410\u0427\u0410\u0422\u042C\" menu_SOUND=\"\u0417\u0412\u0423\u041A\" menu_LEVEL=\"\u0423\u0420\u041E\u0412\u0415\u041D\u042C\" menu_GOAL=\"\u0426\u0415\u041B\u042C\" menu_CLIENTS_COMING=\"\u041A\u041B\u0418\u0415\u041D\u0422\u041E\u0412\" menu_OF=\"\u0418\u0417\" menu_HAS=\"\" menu_PAYED=\"\u0412\u042B\u041F\u041B\u0410\u0427\u0415\u041D\u041E \u0411\u0410\u041D\u041A\u0423\" menu_PRESS_TO_START=\"\u041D\u0410\u0416\u041C\u0418\u0422\u0415 \u041B\u0415\u0412\u0423\u042E \u041A\u041D\u041E\u041F\u041A\u0423\" menu_TRY_AGAIN=\"\u0421\u042B\u0413\u0420\u0410\u0422\u042C \u0421\u041D\u041E\u0412\u0410!\" menu_CONGRATE=\"\u041F\u041E\u0417\u0414\u0420\u0410\u0412\u041B\u042F\u0415\u041C!\" menu_YOU_HAVE_MADE=\"\u0412\u042B \u0414\u041E\u0421\u0422\u0418\u0413\u041B\u0418 \u0426\u0415\u041B\u0418\" menu_GET_FULL=\"\u041F\u041E\u041B\u0423\u0427\u0418\u0422\u0415 \u041F\u041E\u041B\u041D\u0423\u042E \u0412\u0415\u0420\u0421\u0418\u042E, \u0427\u0422\u041E\u0411\u042B\" menu_NEXT_EPIZODES=\"\u0421\u042B\u0413\u0420\u0410\u0422\u042C \u0412 \u0414\u0420\u0423\u0413\u0418\u0415 \u042D\u041F\u0418\u0417\u041E\u0414\u042B\" menu_PERFECT=\"\u041E\u0422\u041B\u0418\u0427\u041D\u041E!\" menu_MONEY_EARNED=\"\u0414\u0415\u041D\u0415\u0413 \u0417\u0410\u0420\u0410\u0411\u041E\u0422\u0410\u041D\u041E\" menu_GRAND_TOTAL=\"\u0412\u0421\u0415\u0413\u041E \u0414\u0415\u041D\u0415\u0413\" menu_BANK_DEPT=\"\u0414\u041E\u041B\u0413 \u0411\u0410\u041D\u041A\u0423\" menu_ABORT=\"\u041F\u0420\u0415\u0420\u0412\u0410\u0422\u042C\" menu_RESUME=\"\u041D\u0410\u0417\u0410\u0414\" menu_OPTIONS=\"\u041D\u0410\u0421\u0422\u041E\u0419\u041A\u0418\" menu_OK=\"OK\" ad_1=\"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043F\u043E\u043B\u043D\u0443\u044E \u0432\u0435\u0440\u0441\u0438\u044E \u0438\" ad_2=\"\u0440\u0430\u0437\u043C\u0435\u0441\u0442\u0438\u0442\u0435 \u043E\u0442\u0435\u043B\u0438 \u043F\u043E \u0432\u0441\u0435\u043C\u0443\" ad_3=\" \u043C\u0438\u0440\u0443: \u0432 \u0410\u043D\u0433\u043B\u0438\u0438, \u042F\u043F\u043E\u043D\u0438\u0438,\" ad_4=\"\u0424\u0440\u0430\u043D\u0446\u0438\u0438 \u0438 \u043D\u0430 \u041A\u0430\u043D\u0430\u0440\u0430\u0445!\" ad_5=\"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u043C\u0430\u0441\u0441\u0443 \u0430\u043F\u0433\u0440\u0435\u0439\u0434\u043E\u0432\" ad_6=\"\u0438 \u043F\u0440\u0438\u044F\u0442\u043D\u044B\u0445 \u0441\u044E\u0440\u043F\u0440\u0438\u0437\u043E\u0432!\" menu_STATISTIC=\"\u0420\u0415\u0417\u0423\u041B\u042C\u0422\u0410\u0422\u042B\" pop_EXCELLENT=\"\u041E\u0422\u041B\u0418\u0427\u041D\u041E!\" pop_GOOD=\"\u0425\u041E\u0420\u041E\u0428\u041E!\" pop_INCREDIBLE=\"\u0421\u041F\u0410\u0421\u0418\u0411\u041E!\" pop_IMPRESSIVE=\"\u0423\u0420\u0410!\" menu_PLAYER=\"\u0418\u0413\u0420\u041E\u041A\" menu_ENTER_NAME=\"\u0412\u0412\u0415\u0414\u0418\u0422\u0415 \u0412\u0410\u0428\u0415 \u0418\u041C\u042F\" game_LEVELUP=\"\u041F\u0420\u041E\u0414\u041E\u041B\u0416\u0418\u0422\u042C!\" game_GOAL_REACHED=\"\u0426\u0415\u041B\u042C \u0414\u041E\u0421\u0422\u0418\u0413\u041D\u0423\u0422\u0410!\" game_TRYAGAIN=\"\u041F\u041E\u0412\u0422\u041E\u0420\u0418\u0422\u042C\" menu_CLIENTS=\"\u041A\u043B\u0438\u0435\u043D\u0442\u044B\" menu_MENU=\"\u041C\u0415\u041D\u042E\" menu_LEVELUP=\"\u0414\u0410\u041B\u0415\u0415\" shop_CASH=\"\u0414\u0415\u041D\u042C\u0413\u0418\" shop_CLIENTS=\"\u041A\u041B\u0418\u0415\u041D\u0422\u042B\" shop_POPULARITY=\"\u041F\u041E\u041F\u0423\u041B\u042F\u0420\u041D\u041E\u0421\u0422\u042C\" shop_BUY=\"\u041A\u0423\u041F\u0418\u0422\u042C\" shop_PLAY=\"\u0418\u0413\u0420\u0410\u0422\u042C\" />"); internalArr["data//url.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><URL url=\"http://realore.ru/janeshotel2/\" />"); } else { internalArr["data//translate.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><DICTIONARY client=\"client\" hint_ARCH1=\"Medieval arches.These arches were recreated based on the 13th century sketches.\" hint_ADD_LEFT=\"City news.Your hotel guests can order the newspapers at any time. The request 'Bring the newspaper' appears.\" hint_ADD_RIGHT=\"Phone 'Phone 2130'.Now the client will be able to make calls from your hotel at any time.\" hint_COFFEE_U=\"Coffee machine 'Coffee M Pro-2000'.Now you can make two cups of coffee simultaneously.\" hint_MAGAZINE=\"Magazines. Your customers can read it while waiting for the room.\" hint_LAMP_LEFT=\"Lamps. These lamps make your hotel more cosy and attractive for customers.\" hint_ARMCHAIR_LEFT=\"Beech wood windsor chair Luxury carver made of rare species of beech wood, your guests will be impressed by this luxury.\" hint_ARMCHAIR_RIGHT=\"Beech wood windsor chair Luxury carver made of rare species of beech wood, your guests will be impressed by this luxury.\" hint_SHIELD_LEFT=\"Wall decoration. Collection of arms on the walls would cerate a true knightly spirit in your hotel.\" hint_RECEPTION_U=\"Mahogany bureau. This desk will look truly royal, your guests will be impressed by its luxury.\" hint_TABLEFOREAT=\"Restaurant. Once you buy a restaurant, you will be able to serve hot meals for your guests at the hall.\" hint_TREE_LEFT=\"Flowers. These beautiful flowers will make your hotel nicer and cozier.\" hint_ARMOR_LEFT=\"Knight\u2019s armor. This armor creates the atmosphere of the Middle Ages, it will bring more clients to the hotel.\" hint_KNIGHT=\"An unknown knight\u2019s armor. An armor of an unknown knight, made by master Garret, 13th century.\" hint_FLOOR_U=\"Mosaic tile floors It is time to make renovations and replace the floor. French marble mosaics will be a perfect choice.\" hint_WALLS_U_OLD=\"Lining walls with yellow and pink limestone. The guests will certainly like the new walls made of Italian clay.\" hint_FOUNTAIN_U=\"Antique marble fountain. Fountain made of antique marble, comes with adorible fishes, is exactly what we need!\" hint_add_ARCH1=\"+1 client\" hint_add_ADD_LEFT=\"+10 popularity\" hint_add_ADD_RIGHT=\"+10 popularity\" hint_add_COFFEE_U=\"+10$ for services<BR>+10 popularity<BR>can't be broken\" hint_add_MAGAZINE=\"+1 client<BR>+3 sec of waiting\" hint_add_LAMP_LEFT=\"+1 client\" hint_add_ARMCHAIR_LEFT=\"+10 sec of waiting<BR>+5 popularity\" hint_add_ARMCHAIR_RIGHT=\"+10 sec of waiting<BR>+5 popularity\" hint_add_SHIELD_LEFT=\"+1 client\" hint_add_RECEPTION_U=\"+1 client<BR>+6 sec of waiting\" hint_add_TABLEFOREAT=\"+15 popularity\" hint_add_TREE_LEFT=\"+2 clients\" hint_add_ARMOR_LEFT=\"+1 client\" hint_add_KNIGHT=\"Available in full version\" hint_add_FLOOR_U=\"Available in full version\" hint_add_WALLS_U_OLD=\"Available in full version\" hint_add_FOUNTAIN_U=\"Available in full version\" menu_DAY=\"DAY \" menu_GO=\"GO!\" menu_START=\"START\" menu_GETIT=\"GET FULL\" menu_SOUND=\"SOUND\" menu_LEVEL=\"LEVEL\" menu_GOAL=\"GOAL\" menu_CLIENTS_COMING=\"CLIENTS COMING\" menu_OF=\"OF\" menu_HAS=\"HAS\" menu_PAYED=\"BEEN PAYED OUT\" menu_PRESS_TO_START=\"PRESS LEFT BUTTON TO START\" menu_TRY_AGAIN=\"TRY AGAIN!\" menu_CONGRATE=\"CONGRATULATIONS!\" menu_YOU_HAVE_MADE=\"YOU HAVE MADE IT\" menu_GET_FULL=\"GET FULL VERSION TO PLAY\" menu_NEXT_EPIZODES=\"NEXT EPIZODES\" menu_PERFECT=\"PERFECT!\" menu_MONEY_EARNED=\"MONEY EARNED\" menu_GRAND_TOTAL=\"GRAND TOTAL\" menu_BANK_DEPT=\"BANK DEPT\" menu_ABORT=\"ABORT\" menu_RESUME=\"RESUME\" menu_OPTIONS=\"OPTIONS\" menu_OK=\"OK\" ad_1=\"Download the full version to get:\" ad_2=\"hotels all over the world\" ad_3=\"in Canary Islands, England,\" ad_4=\"France and Japan!\" ad_5=\"Dozens of upgrades to buy.\" ad_6=\"A variety of exciting levels!\" menu_STATISTIC=\"STATISTIC\" pop_EXCELLENT=\"EXCELLENT!\" pop_GOOD=\"GOOD!\" pop_INCREDIBLE=\"INCREDIBLE!\" pop_IMPRESSIVE=\"IMPRESSIVE!\" menu_PLAYER=\"PLAYER\" menu_ENTER_NAME=\"ENTER YOUR NAME\" game_LEVELUP=\"LEVEL UP!\" game_GOAL_REACHED=\"GOAL REACHED\" game_TRYAGAIN=\"TRY AGAIN\" menu_CLIENTS=\"Clients\" menu_MENU=\"MENU\" menu_LEVELUP=\"LEVEL UP\" shop_CASH=\"CASH\" shop_CLIENTS=\"CLIENTS\" shop_POPULARITY=\"POPULARITY\" shop_BUY=\"BUY\" shop_PLAY=\"PLAY\" />"); internalArr["data//url.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><URL url=\"http://realore.com/games/janes-hotel-family-hero/\" />"); } } } function loadExt(aFile, aObject) { var internalF = false; if (internalArr[aFile] != undefined) { internalArr[aFile].ignoreWhite = true; isLoading = false; internalF = true; internalArr[aFile].loaded = true; return(internalArr[aFile]); } if (internalF == false) { aObject.ignoreWhite = true; aObject.onLoad = function (success) { XMLFactory.isLoading = false; }; aObject.load(aFile); isLoading = true; } } static var isLoading = false; }Symbol 378 MovieClip [__Packages.FactoryAnimObject] Frame 0class FactoryAnimObject { var stores_; function FactoryAnimObject () { stores_ = new Array(); } function getByXML(xmlScript, rootAnim, shared) { var timestart = getTimer(); var retObject; if (shared == false) { retObject = new AnimObject(); retObject.createByXML(xmlScript, rootAnim); return(retObject); } retObject = stores_[xmlScript.toString()]; if (retObject == undefined) { retObject = new AnimObject(); retObject.createByXML(xmlScript, rootAnim); stores_[xmlScript.toString()] = retObject; } return(retObject); } }Symbol 379 MovieClip [__Packages.MochiAd] Frame 0class MochiAd { function MochiAd () { } static function getVersion() { return("2.2"); } static function showPreGameAd(options) { var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }}; options = _parseOptions(options, DEFAULTS); var clip = options.clip; var ad_msec = 11000; var ad_timeout = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var wh = _getRes(options); var w = wh[0]; var h = wh[1]; mc._x = w * 0.5; mc._y = h * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk._x = w * -0.5; chk._y = h * -0.5; var bar = chk.createEmptyMovieClip("_mochiad_bar", 4); bar._x = 10; bar._y = h - 20; var bar_color = options.color; delete options.color; var bar_background = options.background; delete options.background; var bar_outline = options.outline; delete options.outline; var backing = bar.createEmptyMovieClip("_outline", 1); backing.beginFill(bar_background); backing.moveTo(0, 0); backing.lineTo(w - 20, 0); backing.lineTo(w - 20, 10); backing.lineTo(0, 10); backing.lineTo(0, 0); backing.endFill(); var inside = bar.createEmptyMovieClip("_inside", 2); inside.beginFill(bar_color); inside.moveTo(0, 0); inside.lineTo(w - 20, 0); inside.lineTo(w - 20, 10); inside.lineTo(0, 10); inside.lineTo(0, 0); inside.endFill(); inside._xscale = 0; var outline = bar.createEmptyMovieClip("_outline", 3); outline.lineStyle(0, bar_outline, 100); outline.moveTo(0, 0); outline.lineTo(w - 20, 0); outline.lineTo(w - 20, 10); outline.lineTo(0, 10); outline.lineTo(0, 0); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (p > 0) { this._parent._alpha = p; } else { var _clip = this._parent._parent; MochiAd.unload(_clip); delete this.onEnterFrame; } }; mc.lc.adLoaded = function (width, height) { }; mc.lc.adjustProgress = function (msec) { var _chk = this.mc._mochiad_wait; _chk.server_control = true; _chk.started = getTimer(); _chk.ad_msec = msec; }; chk.onEnterFrame = function () { var _clip = this._parent._parent; var ad_clip = this._parent._mochiad_ctr; var elapsed = (getTimer() - this.started); var finished = false; var clip_total = _clip.getBytesTotal(); var clip_loaded = _clip.getBytesLoaded(); var clip_pcnt = ((100 * clip_loaded) / clip_total); var ad_pcnt = ((100 * elapsed) / chk.ad_msec); var _inside = this._mochiad_bar._inside; var pcnt = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt)); pcnt = Math.max(this.last_pcnt, pcnt); this.last_pcnt = pcnt; _inside._xscale = pcnt; if (!chk.showing) { var total = ad_clip.getBytesTotal(); if ((total > 0) || (typeof(total) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (elapsed > chk.ad_timeout) { finished = true; } } if (elapsed > chk.ad_msec) { finished = true; } if (((clip_total > 0) && (clip_loaded >= clip_total)) && (finished)) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; } static function showInterLevelAd(options) { var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }}; options = _parseOptions(options, DEFAULTS); var clip = options.clip; var ad_msec = 11000; var ad_timeout = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var wh = _getRes(options); var w = wh[0]; var h = wh[1]; mc._x = w * 0.5; mc._y = h * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (p > 0) { this._parent._alpha = p; } else { var _clip = this._parent._parent; MochiAd.unload(_clip); delete this.onEnterFrame; } }; mc.lc.adLoaded = function (width, height) { }; mc.lc.adjustProgress = function (msec) { var _chk = this.mc._mochiad_wait; _chk.server_control = true; _chk.started = getTimer(); _chk.ad_msec = msec - 250; }; chk.onEnterFrame = function () { var ad_clip = this._parent._mochiad_ctr; var elapsed = (getTimer() - this.started); var finished = false; if (!chk.showing) { var total = ad_clip.getBytesTotal(); if ((total > 0) || (typeof(total) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (elapsed > chk.ad_timeout) { finished = true; } } if (elapsed > chk.ad_msec) { finished = true; } if (finished) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; } static function showTimedAd(options) { showInterLevelAd(options); } static function showPreloaderAd(options) { showPreGameAd(options); } static function _allowDomains(server) { var hostname = server.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(hostname); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(hostname); } } return(hostname); } static function _loadCommunicator(options) { var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"}; options = _parseOptions(options, DEFAULTS); options.swfv = options.clip.getSWFVersion() || 6; options.mav = getVersion(); var clip = options.clip; var clipname = ("_mochiad_com_" + options.id); if (!_isNetworkAvailable()) { return(null); } if (clip[clipname]) { return(clip[clipname].lc); } var server = (options.com_server + options.id); _allowDomains(server); delete options.id; delete options.com_server; var depth = options.depth; delete options.depth; var mc = clip.createEmptyMovieClip(clipname, depth); var lv = mc.createEmptyMovieClip("_mochiad_com", 1); for (var k in options) { lv[k] = options[k]; } var lc = new LocalConnection(); var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); lc.mc = mc; lc.name = name; lc.allowDomain = function (d) { return(true); }; lc.allowInsecureDomain = lc.allowDomain; lc.connect(name); mc.lc = lc; lv.lc = name; lc._id = 0; lc._queue = []; lc.rpcResult = function (cb_arg) { var cb = parseInt(cb_arg); var cblst = this._callbacks[cb]; if (!cblst) { return(undefined); } delete this._callbacks[cb]; var args = []; var i = 2; while (i < cblst.length) { args.push(cblst[i]); i++; } var i = 1; while (i < arguments.length) { args.push(arguments[i]); i++; } var method = cblst[1]; var obj = cblst[0]; if (obj && (typeof(method) == "string")) { method = obj[method]; } if (method) { method.apply(obj, args); } }; lc._didConnect = function (endpoint) { this._endpoint = endpoint; var q = this._queue; delete this._queue; var ds = this.doSend; var i = 0; while (i < q.length) { var item = q[i]; ds.apply(this, item); i++; } }; lc.doSend = function (args, cbobj, cbfn) { if (this._endpoint == null) { var qargs = []; var i = 0; while (i < arguments.length) { qargs.push(arguments[i]); i++; } this._queue.push(qargs); return(undefined); } this._id = this._id + 1; var id = this._id; if ((cbfn === undefined) || (cbfn === null)) { cbfn = cbobj; } this._callbacks[id] = [cbobj, cbfn]; var slc = new LocalConnection(); var ss = slc.send(this._endpoint, "rpc", id, args); }; lc._callbacks = {}; lc._callbacks[0] = [lc, "_didConnect"]; lv.st = getTimer(); lv.loadMovie(server + ".swf", "POST"); return(lc); } static function fetchHighScores(options, callbackObj, callbackMethod) { var lc = _loadCommunicator({id:options.id}); if (!lc) { return(false); } var fncall = ["fetchHighScores", options]; lc.doSend(["fetchHighScores", options], callbackObj, callbackMethod); return(true); } static function sendHighScore(options, callbackObj, callbackMethod) { var lc = _loadCommunicator({id:options.id}); if (!lc) { return(false); } var fncall = ["sendHighScore", options]; lc.doSend(["sendHighScore", options], callbackObj, callbackMethod); return(true); } static function load(options) { var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = _parseOptions(options, DEFAULTS); options.swfv = options.clip.getSWFVersion() || 6; options.mav = getVersion(); var clip = options.clip; if (!_isNetworkAvailable()) { return(null); } if (clip._mochiad_loaded) { return(null); } var depth = options.depth; delete options.depth; var mc = clip.createEmptyMovieClip("_mochiad", depth); var wh = _getRes(options); options.res = (wh[0] + "x") + wh[1]; options.server = options.server + options.id; delete options.id; clip._mochiad_loaded = true; var lv = mc.createEmptyMovieClip("_mochiad_ctr", 1); for (var k in options) { lv[k] = options[k]; } var server = lv.server; delete lv.server; var hostname = _allowDomains(server); mc.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; MochiAd.unload(this._parent); } }; } }; var lc = new LocalConnection(); var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); lc.mc = mc; lc.name = name; lc.hostname = hostname; lc.allowDomain = function (d) { return(true); }; lc.allowInsecureDomain = lc.allowDomain; lc.connect(name); mc.lc = lc; lv.lc = name; lv.st = getTimer(); lv.loadMovie(server + ".swf", "POST"); return(mc); } static function unload(clip) { if (typeof(clip) == "undefined") { clip = _root; } if (clip.clip && (clip.clip._mochiad)) { clip = clip.clip; } if (!clip._mochiad) { return(false); } clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return(true); } static function _isNetworkAvailable() { if (System.security) { var o = System.security; if (o.sandboxType == "localWithFile") { return(false); } } return(true); } static function _getRes(options) { var b = options.clip.getBounds(); var w = 0; var h = 0; if (typeof(options.res) != "undefined") { var xy = options.res.split("x"); w = parseFloat(xy[0]); h = parseFloat(xy[1]); } else { w = b.xMax - b.xMin; h = b.yMax - b.yMin; } if ((w == 0) || (h == 0)) { w = Stage.width; h = Stage.height; } return([w, h]); } static function _parseOptions(options, defaults) { var optcopy = {}; for (var k in defaults) { optcopy[k] = defaults[k]; } if (options) { for (var k in options) { optcopy[k] = options[k]; } } if (_root.mochiad_options) { var pairs = _root.mochiad_options.split("&"); var i = 0; while (i < pairs.length) { var kv = pairs[i].split("="); optcopy[unescape(kv[0])] = unescape(kv[1]); i++; } } if (optcopy.id == "test") { } return(optcopy); } }Symbol 380 MovieClip [__Packages.ShopItem] Frame 0class ShopItem { var replacesArr_, bdata_, price_, restricted_, descr_, sourceName_, showingItems_; function ShopItem () { } function create(dataname, descr, addValls, addParams, showing, flipHor, replacing, price, restricted) { replacesArr_ = new Array(); if (replacing != undefined) { var i = 0; while (i < replacing.childNodes.length) { replacesArr_.push(replacing.childNodes[i].nodeName); i++; } } bdata_ = flash.display.BitmapData.loadBitmap(dataname); price_ = price; if (flipHor == true) { var rotatedData = (new flash.display.BitmapData(bdata_.width, bdata_.height, true, 0)); var myMatrix = (new flash.geom.Matrix()); myMatrix.scale(-1, 1); myMatrix.translate(bdata_.width, 0); rotatedData.draw(bdata_, myMatrix); bdata_ = rotatedData; } restricted_ = restricted; if (restricted == true) { var restrBdata = flash.display.BitmapData.loadBitmap("closed"); bdata_.copyPixels(restrBdata, restrBdata.rectangle, new flash.geom.Point(0, 0), null, null, true); } descr_ = descr; sourceName_ = dataname; showingItems_ = new Array(); var i = 0; while (i < showing.childNodes.length) { var bData = flash.display.BitmapData.loadBitmap(showing.childNodes[i].attributes.sprite); if (showing.childNodes[i].attributes.flipHor == "true") { var rotatedData = (new flash.display.BitmapData(bData.width, bData.height, true, 0)); var myMatrix = (new flash.geom.Matrix()); myMatrix.scale(-1, 1); myMatrix.translate(bData.width, 0); rotatedData.draw(bData, myMatrix); bData = rotatedData; } var aName = showing.childNodes[i].nodeName; var aPoint = (new flash.geom.Point(Number(showing.childNodes[i].attributes.place_x), Number(showing.childNodes[i].attributes.place_y))); showingItems_.push(new ShowingItem(bData, aPoint, aName, showing.childNodes[i].attributes.mapObj)); i++; } } }Symbol 381 MovieClip [__Packages.ShowingItem] Frame 0class ShowingItem { var bData_, aPos_, aName_, mapName_, visible_; function ShowingItem (bData, aPos, aName, mapName) { bData_ = bData; aPos_ = aPos; aName_ = aName; mapName_ = mapName; visible_ = true; } }Symbol 382 MovieClip [__Packages.mc_ADS] Frame 0class mc_ADS extends MovieClip { static var hasChild, exFunc, exCaller, exArgs, CLIPINSTANCE, remId, clockId, clockTxt; var createEmptyMovieClip, onRelease, removeMovieClip, attachBitmap; function mc_ADS () { super(); } static function showIngameAds(mc_Parent, aFunc, aCaller, aArgs, aChild, clockLength) { hasChild = false; var adsmc = mc_Parent.attachMovie("mc_ADS", "mc_ADS1", mc_Parent.getNextHighestDepth(), {_alpha:0}); if (clockLength != undefined) { CLOCKLENGTH = clockLength; } if (aChild != undefined) { var childClip = mc_Parent.mc_ADS1.attachMovie(aChild, aChild + "1", CHILDDEPTH); hasChild = true; } adsmc.create(aFunc, aCaller, aArgs); } function create(aFunc, aCaller, aArgs) { exFunc = aFunc; exCaller = aCaller; exArgs = aArgs; if (addBitmap()) { CLIPINSTANCE = this; remId = setInterval(this, "removeIt", CLOCKLENGTH); clockId = setInterval(this, "showClock", 1000); clockTxt = createEmptyMovieClip("mc_Clock", CLOCKDEPTH); var aText = clockTxt.createTextField("mc_txt", 0, Stage.width - 50, 0, 50, 30); var aFormat = new TextFormat(); aFormat.bold = true; aText.setTextFormat(aFormat); aText.setNewTextFormat(aFormat); aText.selectable = false; aText.text = String(CLOCKLENGTH / 1000); com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_alpha", [100], 1, mx.transitions.easing.Regular.easeIn, 0); } else { removeIt(); } if (Helper.INGAMECLICK == true) { if (hasChild == false) { onRelease = function () { (this.getURL(Helper.ADSLINK, "_blank"));// not popped }; } } } function showClock() { if ((Number(CLIPINSTANCE.mc_Clock.mc_txt.text) - 1) >= 10) { CLIPINSTANCE.mc_Clock.mc_txt.text = String(Number(CLIPINSTANCE.mc_Clock.mc_txt.text) - 1); } else { CLIPINSTANCE.mc_Clock.mc_txt.text = "0" + String(Number(CLIPINSTANCE.mc_Clock.mc_txt.text) - 1); } } function removeIt() { exFunc.apply(exCaller, exArgs); clearInterval(remId); clearInterval(clockId); removeMovieClip(); } function addBitmap() { var bName = ("splash" + LASTNUM); LASTNUM++; if (LASTNUM > 3) { LASTNUM = 1; } var aBitmap = flash.display.BitmapData.loadBitmap(bName); if (aBitmap == undefined) { return(false); } attachBitmap(aBitmap, BITMAPDEPTH); return(true); } static var CLOCKDEPTH = 1000; static var CHILDDEPTH = 100; static var BITMAPDEPTH = 50; static var LASTNUM = 1; static var CLOCKLENGTH = 7000; }Symbol 383 MovieClip [__Packages.MenuItem] Frame 0class MenuItem extends MovieClip implements IMenuItemDescriptor { static var clsId_; var fillsArray_, aHint, txtStyle_, pressed, mc_Id_, ret_code_; function MenuItem () { super(); fillsArray_ = new Array(); } function setHint(aVal) { aHint = aVal; } function getHint() { return(aHint); } function gettxtStyle() { return(txtStyle_); } function settxtStyle(aVal) { return((txtStyle_ = aVal)); } function doPress() { pressed = true; } function loadBMPFill(baseName) { var i = 0; while (i < stateNames.length) { var bName = ((baseName + "_") + stateNames[i]); var stateBdata = flash.display.BitmapData.loadBitmap(bName); if (stateBdata == undefined) { } else { fillsArray_[stateNames[i]] = stateBdata; } i++; } } function generateFill(baseName, fillWidth) { var leftData = (baseName + "_left_"); var centerData = (baseName + "_center_"); var i = 0; while (i < stateNames.length) { var leftDatas = (leftData + stateNames[i]); var centerDatas = (centerData + stateNames[i]); var leftBdata = flash.display.BitmapData.loadBitmap(leftDatas); if (leftBdata == undefined) { } else { var centerBdata = flash.display.BitmapData.loadBitmap(centerDatas); var rightBdata = (new flash.display.BitmapData(leftBdata.width, leftBdata.height, true, 0)); var myMatrix = (new flash.geom.Matrix()); myMatrix.scale(-1, 1); myMatrix.translate(leftBdata.width, 0); rightBdata.draw(leftBdata, myMatrix); var resultBitmap = (new flash.display.BitmapData(fillWidth, leftBdata.height)); resultBitmap.copyPixels(leftBdata, leftBdata.rectangle, new flash.geom.Point(0, 0)); var k = 0; while (k < (fillWidth - (leftBdata.width * 2))) { resultBitmap.copyPixels(centerBdata, centerBdata.rectangle, new flash.geom.Point(k + leftBdata.width, 0)); k++; } resultBitmap.copyPixels(rightBdata, rightBdata.rectangle, new flash.geom.Point(fillWidth - rightBdata.width, 0)); fillsArray_[stateNames[i]] = resultBitmap; } i++; } } function setId(mc_Id) { mc_Id_ = mc_Id; } function getid() { return(mc_Id_); } function setClsId(clsId) { clsId_ = clsId; } function getClsId() { return(clsId_); } function setReturnCode(retCode) { ret_code_ = retCode; } function getReturnCode() { return(ret_code_); } function getLinesArr() { return(null); } function getOptArr() { return(null); } function setOptArr(theArr) { } function addText(atext) { } static var stateNames = new Array("normal", "pressed", "active", "disabled"); }Symbol 384 MovieClip [__Packages.Hotel] Frame 0class Hotel extends MovieClip { var screen_state_, myPoint_, parentGame_, attachBitmap, getNextHighestDepth, mc_MovingMask, attachMovie, hitArea, useHandCursor, onPress, onMouseMove; function Hotel () { super(); Start(); } function disableControls() { } function addactiveObj(objData) { } function enableControls() { } function changeState(oldState, newState) { switch (newState) { case STATE_FADING_OUT : disableControls(); break; case STATE_ACTIVE : enableControls(); } screen_state_ = newState; } function Start() { screen_state_ = STATE_FADING_IN; } function create(hotelName, parentGame) { myPoint_ = new Object(); parentGame_ = parentGame; var abdata = flash.display.BitmapData.loadBitmap(hotelName); attachBitmap(abdata, getNextHighestDepth()); mc_MovingMask = attachMovie("ep1_move", hotelName + "_move1", getNextHighestDepth()); mc_MovingMask._visible = false; mc_MovingMask.useHandCursor = false; hitArea = mc_MovingMask; useHandCursor = false; onPress = function () { this.parentGame_.lastClicked_ = getTimer(); var objClicked = false; var i = 0; while (i < this.parentGame_.customersArr_.length) { if (this.parentGame_.customersArr_[i].hitTest(this.parentGame_._xmouse, this.parentGame_._ymouse, true)) { if (this.parentGame_.customersArr_[i].request_.name_ != "") { switch (this.parentGame_.customersArr_[i].request_.name_) { case "add" : if (this.parentGame_.keyVisible_ == true) { if ((this.parentGame_.customersArr_[i].currCmd_ == Customer.CMD_AWAITING_RECEPTION) && (parentGame.aJane.currCmd_ == Human.CMD_AWAITING_RECEPTION)) { this.parentGame_.customersArr_[i].takeKey(this.parentGame_.getEmptyRoom()); var arecptn = parentGame.getMO("RECEPTION1"); arecptn.uncheckFirst(); this.parentGame_.hideKey(); arecptn.animObject.sendSignalState([arecptn.animObject.getName(), "DEFAULT", "NOKEY"], "unselect"); } } else { var arecptn = this.parentGame_.getMO("RECEPTION1"); if (arecptn.orderArr_.length > 0) { var ords = 0; while (ords < arecptn.orderArr_.length) { var currOrd = arecptn.orderArr_[ords]; if (this.parentGame_.hasClientsOrder(currOrd) == false) { this.parentGame_.customersArr_[i].setCheck(currOrd); return(undefined); } ords++; } } } break; case "cup" : case "phone" : var aMebname = this.parentGame_.getMebName(this.parentGame_.customersArr_[i].request_.name_); var aMeb = this.parentGame_.getMO(aMebname); var checkedRequest = this.parentGame_.countcheckedRequests(this.parentGame_.customersArr_[i].request_.name_); var ordersCount = (this.parentGame_.aJane.howMuchCarry(aMebname) + aMeb.chkSmbArr_.length); if (aMeb.repareChecked_ == true) { ordersCount--; } if ((ordersCount > 0) && (this.parentGame_.customersArr_[i].chkSmb_ == undefined)) { this.parentGame_.customersArr_[i].setCheck(0); switch (this.parentGame_.customersArr_[i].whereIs_) { case "ARMCHAIR_LEFT" : case "ARMCHAIR_RIGHT" : this.parentGame_.aJane.bringSmthToSomeWhere(this.parentGame_.customersArr_[i]); } } break; case "daily" : var aMebname = this.parentGame_.getMebName(this.parentGame_.customersArr_[i].request_.name_); var aMeb = this.parentGame_.getMO(aMebname); var checkedRequest = this.parentGame_.countcheckedRequests(this.parentGame_.customersArr_[i].request_.name_); var ordersCount = (this.parentGame_.aJane.howMuchCarry(aMebname) + aMeb.chkSmbArr_.length); if (!((ordersCount > 0) && (this.parentGame_.customersArr_[i].chkSmb_ == undefined))) { break; } this.parentGame_.customersArr_[i].setCheck(0); if (!((this.parentGame_.customersArr_[i].whereIs_ == "ARMCHAIR_LEFT") || (this.parentGame_.customersArr_[i].whereIs_ == "ARMCHAIR_RIGHT"))) { break; } this.parentGame_.aJane.bringSmthToSomeWhere(this.parentGame_.customersArr_[i]); } } } i++; } var i = 0; while (i < this.parentGame_.mapObjects_.length) { if (this.parentGame_.mapObjects_[i].interactive_ == true) { var hittested = false; if ((this.parentGame_.mapObjects_[i].persName_ == "ADD_LEFT") || (this.parentGame_.mapObjects_[i].persName_ == "ADD_RIGHT")) { if (this.parentGame_.mapObjects_[i].getMC().hitTest(this.parentGame_._xmouse, this.parentGame_._ymouse, false)) { hittested = true; } } else if (this.parentGame_.mapObjects_[i].getMC().hitTest(this.parentGame_._xmouse, this.parentGame_._ymouse, true)) { hittested = true; } if (hittested) { objClicked = true; if ((this.parentGame_.mapObjects_[i].request_.redState_ == true) && (this.parentGame_.mapObjects_[i].request_.name_ == "repair")) { if ((this.parentGame_.aPorter.inKitchen_ == false) && (this.parentGame_.mapObjects_[i].repareChecked_ != true)) { this.parentGame_.mapObjects_[i].setCheck(this.parentGame_.getOrder(), true); this.parentGame_.mapObjects_[i].repareChecked_ = true; switch (this.parentGame_.mapObjects_[i].getPersName()) { case "COFFEE" : this.parentGame_.aPorter.repairCoffee(); break; case "ADD_RIGHT" : this.parentGame_.aPorter.repairAddRight(); } } } else if (((this.parentGame_.mapObjects_[i].request_.name_ == "repair") && (this.parentGame_.mapObjects_[i].repareChecked_ != true)) && (this.parentGame_.aPorter.inKitchen_ == false)) { this.parentGame_.mapObjects_[i].setCheck(this.parentGame_.getOrder(), true); this.parentGame_.mapObjects_[i].repareChecked_ = true; switch (this.parentGame_.mapObjects_[i].getPersName()) { case "COFFEE" : this.parentGame_.aPorter.repairCoffee(); break; case "ADD_RIGHT" : this.parentGame_.aPorter.repairAddRight(); } } else { switch (this.parentGame_.mapObjects_[i].getPersName()) { case "RECEPTION1" : if (this.parentGame_.mapObjects_[i].moneyArr_.length > 0) { if (parentGame.aJane.currCmd_ == Human.CMD_AWAITING_RECEPTION) { this.parentGame_.aJane.takeMoneyWaiting(); break; } if (this.parentGame_.mapObjects_[i].moneyCheck_ == undefined) { this.parentGame_.mapObjects_[i].setMoneyCheck(); } else { var custArray = this.parentGame_.getCustomersInState(Customer.CMD_AWAITING_RECEPTION); if ((custArray.length > 0) && (parentGame.aJane.currCmd_ == Human.CMD_AWAITING_RECEPTION)) { this.parentGame_.aJane.takeKeyWaiting(); this.parentGame_.aJane.doNextBlock(); } else { var reqCount = parentGame.countRequests("add"); var ordCount = this.parentGame_.mapObjects_[i].orderArr_.length; if (reqCount > ordCount) { this.parentGame_.mapObjects_[i].setCheck(this.parentGame_.getOrder()); this.parentGame_.aJane.goForKey(); } else { Helper.PlaySound("key_denied", 1); } } break; var checkLength_ = this.parentGame_.mapObjects_[i].chkSmbArr_.length; if (((this.parentGame_.mapObjects_[i].counter_ > 0) && (checkLength_ == 0)) && (this.parentGame_.aJane.howMuchCarry(this.parentGame_.mapObjects_[i].persName_) == 0)) { this.parentGame_.mapObjects_[i].setCheck(this.parentGame_.getOrder()); this.parentGame_.aJane.goForPaper(); } else { Helper.PlaySound("key_denied", 1); } break; var checkLength_ = this.parentGame_.mapObjects_[i].chkSmbArr_.length; if (this.parentGame_.mapObjects_[i].repareChecked_ == true) { checkLength_--; } if (((this.parentGame_.mapObjects_[i].counter_ > 0) && (checkLength_ == 0)) && (this.parentGame_.aJane.howMuchCarry(this.parentGame_.mapObjects_[i].persName_) == 0)) { this.parentGame_.mapObjects_[i].setCheck(this.parentGame_.getOrder()); this.parentGame_.aJane.goForPhone(); } else { Helper.PlaySound("key_denied", 1); } break; var checkLength_ = this.parentGame_.mapObjects_[i].chkSmbArr_.length; if (this.parentGame_.mapObjects_[i].repareChecked_ == true) { checkLength_--; } if (((this.parentGame_.mapObjects_[i].counter_ > 0) && (checkLength_ == 0)) && (this.parentGame_.aJane.howMuchCarry(this.parentGame_.mapObjects_[i].persName_) == 0)) { this.parentGame_.mapObjects_[i].setCheck(this.parentGame_.getOrder()); this.parentGame_.aJane.goForCoffee(); } else { Helper.PlaySound("key_denied", 1); } break; if (this.parentGame_.mapObjects_[i].counter_ != (this.parentGame_.mapObjects_[i].chkSmbArr_.length + this.parentGame_.aJane.howMuchCarry(this.parentGame_.mapObjects_[i].persName_))) { this.parentGame_.mapObjects_[i].setCheck(this.parentGame_.getOrder()); this.parentGame_.aJane.goForEat(); } else { Helper.PlaySound("key_denied", 1); } break; if (this.parentGame_.mapObjects_[i].counter_ > 0) { var c = 0; while (c < this.parentGame_.customersArr_.length) { if (this.parentGame_.customersArr_[c].whereIs_ == "CHAIR") { var aMebname = this.parentGame_.getMebName(this.parentGame_.customersArr_[c].request_.name_); var aMeb = this.parentGame_.getMO(aMebname); var checkedRequest = this.parentGame_.countcheckedRequests(this.parentGame_.customersArr_[c].request_.name_); var ordersCount = (this.parentGame_.aJane.howMuchCarry(aMebname) + aMeb.chkSmbArr_.length); if (checkedRequest < ordersCount) { this.parentGame_.customersArr_[c].setCheck(0); this.parentGame_.aJane.bringSmthToSomeWhere(this.parentGame_.customersArr_[c]); break; } } c++; } } Helper.PlaySound("key_denied", 1); break; if (this.parentGame_.mapObjects_[i].leafTime_ >= Mebel.GREENTIME) { if ((this.parentGame_.aMaid.inKitchen_ == false) && (this.parentGame_.mapObjects_[i].chkSmbArr_.length == 0)) { this.parentGame_.mapObjects_[i].setCheck(0); this.parentGame_.aMaid.waterFlowerLeft(); } } else { Helper.PlaySound("key_denied", 1); } break; if (this.parentGame_.mapObjects_[i].leafTime_ >= Mebel.GREENTIME) { if ((this.parentGame_.aMaid.inKitchen_ == false) && (this.parentGame_.mapObjects_[i].chkSmbArr_.length == 0)) { this.parentGame_.mapObjects_[i].setCheck(0); this.parentGame_.aMaid.waterFlowerRight(); } } else { Helper.PlaySound("key_denied", 1); } } } var custArray = this.parentGame_.getCustomersInState(Customer.CMD_AWAITING_RECEPTION); if ((custArray.length > 0) && (parentGame.aJane.currCmd_ == Human.CMD_AWAITING_RECEPTION)) { this.parentGame_.aJane.takeKeyWaiting(); this.parentGame_.aJane.doNextBlock(); } else { var reqCount = parentGame.countRequests("add"); var ordCount = this.parentGame_.mapObjects_[i].orderArr_.length; if (reqCount > ordCount) { this.parentGame_.mapObjects_[i].setCheck(this.parentGame_.getOrder()); this.parentGame_.aJane.goForKey(); } else { Helper.PlaySound("key_denied", 1); } } break; case "ADD_LEFT" : var checkLength_ = this.parentGame_.mapObjects_[i].chkSmbArr_.length; if (((this.parentGame_.mapObjects_[i].counter_ > 0) && (checkLength_ == 0)) && (this.parentGame_.aJane.howMuchCarry(this.parentGame_.mapObjects_[i].persName_) == 0)) { this.parentGame_.mapObjects_[i].setCheck(this.parentGame_.getOrder()); this.parentGame_.aJane.goForPaper(); } else { Helper.PlaySound("key_denied", 1); } break; case "ADD_RIGHT" : var checkLength_ = this.parentGame_.mapObjects_[i].chkSmbArr_.length; if (this.parentGame_.mapObjects_[i].repareChecked_ == true) { checkLength_--; } if (((this.parentGame_.mapObjects_[i].counter_ > 0) && (checkLength_ == 0)) && (this.parentGame_.aJane.howMuchCarry(this.parentGame_.mapObjects_[i].persName_) == 0)) { this.parentGame_.mapObjects_[i].setCheck(this.parentGame_.getOrder()); this.parentGame_.aJane.goForPhone(); } else { Helper.PlaySound("key_denied", 1); } break; case "COFFEE" : var checkLength_ = this.parentGame_.mapObjects_[i].chkSmbArr_.length; if (this.parentGame_.mapObjects_[i].repareChecked_ == true) { checkLength_--; } if (((this.parentGame_.mapObjects_[i].counter_ > 0) && (checkLength_ == 0)) && (this.parentGame_.aJane.howMuchCarry(this.parentGame_.mapObjects_[i].persName_) == 0)) { this.parentGame_.mapObjects_[i].setCheck(this.parentGame_.getOrder()); this.parentGame_.aJane.goForCoffee(); } else { Helper.PlaySound("key_denied", 1); } break; case "KITCHEN" : if (this.parentGame_.mapObjects_[i].counter_ != (this.parentGame_.mapObjects_[i].chkSmbArr_.length + this.parentGame_.aJane.howMuchCarry(this.parentGame_.mapObjects_[i].persName_))) { this.parentGame_.mapObjects_[i].setCheck(this.parentGame_.getOrder()); this.parentGame_.aJane.goForEat(); } else { Helper.PlaySound("key_denied", 1); } break; case "CHAIR" : if (this.parentGame_.mapObjects_[i].counter_ > 0) { var c = 0; while (c < this.parentGame_.customersArr_.length) { if (this.parentGame_.customersArr_[c].whereIs_ == "CHAIR") { var aMebname = this.parentGame_.getMebName(this.parentGame_.customersArr_[c].request_.name_); var aMeb = this.parentGame_.getMO(aMebname); var checkedRequest = this.parentGame_.countcheckedRequests(this.parentGame_.customersArr_[c].request_.name_); var ordersCount = (this.parentGame_.aJane.howMuchCarry(aMebname) + aMeb.chkSmbArr_.length); if (checkedRequest < ordersCount) { this.parentGame_.customersArr_[c].setCheck(0); this.parentGame_.aJane.bringSmthToSomeWhere(this.parentGame_.customersArr_[c]); break; } } c++; } } Helper.PlaySound("key_denied", 1); break; case "FLOWER_LEFT" : if (this.parentGame_.mapObjects_[i].leafTime_ >= Mebel.GREENTIME) { if ((this.parentGame_.aMaid.inKitchen_ == false) && (this.parentGame_.mapObjects_[i].chkSmbArr_.length == 0)) { this.parentGame_.mapObjects_[i].setCheck(0); this.parentGame_.aMaid.waterFlowerLeft(); } } else { Helper.PlaySound("key_denied", 1); } break; case "FLOWER_RIGHT" : if (this.parentGame_.mapObjects_[i].leafTime_ >= Mebel.GREENTIME) { if ((this.parentGame_.aMaid.inKitchen_ == false) && (this.parentGame_.mapObjects_[i].chkSmbArr_.length == 0)) { this.parentGame_.mapObjects_[i].setCheck(0); this.parentGame_.aMaid.waterFlowerRight(); } } else { Helper.PlaySound("key_denied", 1); } } } } } i++; } }; onMouseMove = function () { this.parentGame_.lastClicked_ = getTimer(); this.myPoint_.x = this.parentGame_._xmouse; this.myPoint_.y = this.parentGame_._ymouse; var i = 0; while (i < this.parentGame_.mapObjects_.length) { if (this.parentGame_.mapObjects_[i].interactive_ == true) { if (this.parentGame_.mapObjects_[i].getMC().hitTest(this.parentGame_._xmouse, this.parentGame_._ymouse, true)) { this.parentGame_.mapObjects_[i].globalToLocal(this.myPoint_); var alpha = ((this.parentGame_.mapObjects_[i].resultBitmap.getPixel32(this.myPoint_.x, this.myPoint_.y) >> 24) & 255); if ((((alpha != 0) || (this.parentGame_.mapObjects_[i] instanceof Room)) || (this.parentGame_.mapObjects_[i].persName_ == "ADD_LEFT")) || (this.parentGame_.mapObjects_[i].persName_ == "ADD_RIGHT")) { this.parentGame_.mapObjects_[i].selectYelow(); } else { this.parentGame_.mapObjects_[i].deselect(); } } else { this.parentGame_.mapObjects_[i].deselect(); } } i++; } this.myPoint_.x = this.parentGame_._xmouse; this.myPoint_.y = this.parentGame_._ymouse; if (this.parentGame_.wndServiceL_.hitTest(this.parentGame_._xmouse, this.parentGame_._ymouse, true)) { this.parentGame_.wndServiceL_.globalToLocal(this.myPoint_); var alpha = ((this.parentGame_.wndServiceL_.resultBitmap.getPixel32(this.myPoint_.x, this.myPoint_.y) >> 24) & 255); if (alpha != 0) { this.parentGame_.wndServiceL_.animObject.sendSignalState([this.parentGame_.wndServiceL_.animObject.getName()], "select"); if (this.parentGame_.wndServiceL_.wcanVisible_ == true) { this.parentGame_.wndServiceL_.animObject.sendSignalState([this.parentGame_.wndServiceL_.animObject.getName(), "SELECTED", "WCAN"], "default"); } } else { this.parentGame_.wndServiceL_.animObject.sendSignalState([this.parentGame_.wndServiceL_.animObject.getName()], "default"); } } else { this.parentGame_.wndServiceL_.animObject.sendSignalState([this.parentGame_.wndServiceL_.animObject.getName()], "default"); } this.myPoint_.x = this.parentGame_._xmouse; this.myPoint_.y = this.parentGame_._ymouse; if (this.parentGame_.wndServiceR_.hitTest(this.parentGame_._xmouse, this.parentGame_._ymouse, true)) { this.parentGame_.wndServiceR_.globalToLocal(this.myPoint_); var alpha = ((this.parentGame_.wndServiceR_.resultBitmap.getPixel32(this.myPoint_.x, this.myPoint_.y) >> 24) & 255); if (alpha != 0) { this.parentGame_.wndServiceR_.animObject.sendSignalState([this.parentGame_.wndServiceR_.animObject.getName()], "select"); } else { this.parentGame_.wndServiceR_.animObject.sendSignalState([this.parentGame_.wndServiceR_.animObject.getName()], "default"); } } else { this.parentGame_.wndServiceR_.animObject.sendSignalState([this.parentGame_.wndServiceR_.animObject.getName()], "default"); } }; } var STATE_ACTIVE = 0; var STATE_FADING_OUT = 1; var STATE_FADING_IN = 2; var STATE_DISABLED = 3; }Symbol 385 MovieClip [__Packages.ShopSym] Frame 0class ShopSym extends MovieClip { static var shDataArray; var itemsArr_, selectedIt, showingItArray_, parentGame_, updated_, buyBtn_, itemsData_, firstItem_, emptyTransform, highLightTransform, resultBitmap_, leftBtnS_, rightBtnS_, bmpHotel, hotelSrc_, selectedSh, alphaTransform, previewBitmap_, leftBtnP_, rightBtnP_, cashField, clientsField, populField, created_, createTextField, normalTransform, useHandCursor, onPress, onRelease, onMouseMove, onEnterFrame; function ShopSym () { super(); } function extractSelected() { var i = 0; while (i < itemsArr_.length) { if (itemsArr_[i] == selectedIt) { itemsArr_.splice(i, 1); break; } i++; } if (selectedIt.showingItems_.length > 0) { var k = 0; while (k < selectedIt.showingItems_.length) { showingItArray_.push(selectedIt.showingItems_[k]); if (selectedIt.showingItems_[k].mapName_ != undefined) { parentGame_.mapObjsNames_.push(selectedIt.showingItems_[k].mapName_); parentGame_.loadMO(); var aMeb = parentGame_.CreateMO(selectedIt.showingItems_[k].mapName_); parentGame_.boughtArray_.push(aMeb); } k++; } parentGame_.cash_ = parentGame_.cash_ - selectedIt.price_; parentGame_.setClientsCount(); var k = 0; while (k < selectedIt.replacesArr_.length) { parentGame_.cutArray_.push(selectedIt.replacesArr_[k]); k++; } } selectedIt = undefined; updateFields(); updateItems(); updated_ = true; } function setBuyBtn() { buyBtn_ = parentGame_.ShopMenu.ShopMenu_Item_0; } function loadItems() { var i = 0; while (i < parentGame_.xmlObjects["data//ashop.xml"].firstChild.childNodes[IND_ITEMS].childNodes.length) { var currName = parentGame_.xmlObjects["data//ashop.xml"].firstChild.childNodes[IND_ITEMS].childNodes[i].nodeName; var aItem = new ShopItem(); aItem.create(parentGame_.xmlObjects["data//ashop.xml"].firstChild.childNodes[IND_ITEMS].childNodes[i].attributes.sprite, currName, null, null, parentGame_.xmlObjects["data//ashop.xml"].firstChild.childNodes[IND_ITEMS].childNodes[i].firstChild, parentGame_.xmlObjects["data//ashop.xml"].firstChild.childNodes[IND_ITEMS].childNodes[i].attributes.flipHor == "true", parentGame_.xmlObjects["data//ashop.xml"].firstChild.childNodes[IND_ITEMS].childNodes[i].childNodes[1], Number(parentGame_.xmlObjects["data//ashop.xml"].firstChild.childNodes[IND_ITEMS].childNodes[i].attributes.price), parentGame_.xmlObjects["data//ashop.xml"].firstChild.childNodes[IND_ITEMS].childNodes[i].attributes.restricted == "true"); if (parentGame_.hasMapName(parentGame_.xmlObjects["data//ashop.xml"].firstChild.childNodes[IND_ITEMS].childNodes[i].attributes.mapObj) == false) { itemsArr_.push(aItem); } var k = 0; while (k < aItem.showingItems_.length) { if (shDataArray[aItem.showingItems_[k].mapName_] == undefined) { shDataArray[aItem.showingItems_[k].mapName_] = aItem.showingItems_[k]; } k++; } i++; } } function updateItems() { itemsData_.colorTransform(itemsData_.rectangle, parentGame_.transparent_); var cr = 0; var i = firstItem_; while ((i < (firstItem_ + VISIBLEITEMS)) && (i < itemsArr_.length)) { itemsData_.copyPixels(itemsArr_[i].bdata_, itemsArr_[i].bdata_.rectangle, new flash.geom.Point(cr * itemsArr_[i].bdata_.rectangle.width, 0)); if (selectedIt == itemsArr_[i]) { var tempData = (new flash.display.BitmapData(itemsArr_[i].bdata_.width, itemsArr_[i].bdata_.height, true, 0)); tempData.draw(selectedIt.bdata_, emptyTransform, highLightTransform); itemsData_.copyPixels(tempData, tempData.rectangle, new flash.geom.Point(cr * itemsArr_[i].bdata_.rectangle.width, 0)); } else { itemsData_.copyPixels(itemsArr_[i].bdata_, itemsArr_[i].bdata_.rectangle, new flash.geom.Point(cr * itemsArr_[i].bdata_.rectangle.width, 0)); } cr++; i++; } resultBitmap_.copyPixels(itemsData_, itemsData_.rectangle, new flash.geom.Point(ITEMSX, ITEMSY)); } function clearLeftBtnSelected() { resultBitmap_.colorTransform(new flash.geom.Rectangle(BTN_LEFTX1, BTN_LEFTY1, leftBtnS_.width, leftBtnS_.height), parentGame_.transparent_); } function clearRightBtnSelected() { resultBitmap_.colorTransform(new flash.geom.Rectangle(BTN_RIGHTX1, BTN_RIGHTY1, rightBtnS_.width, rightBtnS_.height), parentGame_.transparent_); } function clearResult() { resultBitmap_.colorTransform(resultBitmap_.rectangle, parentGame_.transparent_); } function stairsUp() { var i = 0; while (i < showingItArray_.length) { if (((showingItArray_[i].aName_ == "ladder_right_up") || (showingItArray_[i].aName_ == "ladder_left_up")) && (i < (showingItArray_.length - 1))) { showingItArray_.push(showingItArray_[i]); showingItArray_.splice(i, 1); break; } i++; } var i = 0; while (i < showingItArray_.length) { if (((showingItArray_[i].aName_ == "ladder_right_up") || (showingItArray_[i].aName_ == "ladder_left_up")) && (i < (showingItArray_.length - 1))) { showingItArray_.push(showingItArray_[i]); showingItArray_.splice(i, 1); return; } i++; } } function createBdataArray() { shDataArray = new Array(); var stairsLeft = flash.display.BitmapData.loadBitmap("ladder_up"); var rotatedData = (new flash.display.BitmapData(stairsLeft.width, stairsLeft.height, true, 0)); var myMatrix = (new flash.geom.Matrix()); myMatrix.scale(-1, 1); myMatrix.translate(stairsLeft.width, 0); rotatedData.draw(stairsLeft, myMatrix); var stairsBtm = flash.display.BitmapData.loadBitmap("ladder_bottom"); var rotatedBtmData = (new flash.display.BitmapData(stairsBtm.width, stairsBtm.height, true, 0)); var myMatrix = (new flash.geom.Matrix()); myMatrix.scale(-1, 1); myMatrix.translate(stairsBtm.width, 0); rotatedBtmData.draw(stairsBtm, myMatrix); shDataArray.ladder_left_btm = new ShowingItem(stairsBtm, new flash.geom.Point(0, STAIRSBTMLEFTY), "ladder_left_btm"); shDataArray.ladder_right_btm = new ShowingItem(rotatedBtmData, new flash.geom.Point(STAIRSBTMRIGHTX, STAIRSBTMLEFTY), "ladder_right_btm"); shDataArray.ladder_right_up = new ShowingItem(rotatedData, new flash.geom.Point(STAIRSRIGHTX, STAIRSLEFTY), "ladder_right_up"); shDataArray.ladder_left_up = new ShowingItem(stairsLeft, new flash.geom.Point(0, STAIRSLEFTY), "ladder_left_up"); var reception = flash.display.BitmapData.loadBitmap("reception1"); shDataArray.reception1 = new ShowingItem(reception, new flash.geom.Point(222, 317), "reception1", "RECEPTION1"); var room135 = flash.display.BitmapData.loadBitmap("door_1_3_5"); var room2f = flash.display.BitmapData.loadBitmap("door_2"); var room4f = flash.display.BitmapData.loadBitmap("door_4"); var room1 = (new flash.display.BitmapData(room135.width, room135.height / 8)); room1.copyPixels(room135, new flash.geom.Rectangle(0, room135.height - (room135.height / 8), room135.width, room135.height / 8), new flash.geom.Point(0, 0)); var room5 = (new flash.display.BitmapData(room135.width, room135.height / 8)); room5.copyPixels(room135, new flash.geom.Rectangle(0, room135.height - (room135.height / 8), room135.width, room135.height / 8), new flash.geom.Point(0, 0)); var room3 = (new flash.display.BitmapData(room135.width, room135.height / 8)); room3.copyPixels(room135, new flash.geom.Rectangle(0, room135.height - (room135.height / 8), room135.width, room135.height / 8), new flash.geom.Point(0, 0)); var room2 = (new flash.display.BitmapData(room2f.width, room2f.height / 8)); room2.copyPixels(room2f, new flash.geom.Rectangle(0, room2f.height - (room2f.height / 8), room2.width, room2f.height / 8), new flash.geom.Point(0, 0)); var room4 = (new flash.display.BitmapData(room4f.width, room4f.height / 8)); room4.copyPixels(room4f, new flash.geom.Rectangle(0, room4f.height - (room4f.height / 8), room2.width, room4f.height / 8), new flash.geom.Point(0, 0)); var fountain = flash.display.BitmapData.loadBitmap("fountain_old"); var coffee = flash.display.BitmapData.loadBitmap("coffee"); var fountain = flash.display.BitmapData.loadBitmap("fountain_old"); shDataArray.room1 = new ShowingItem(room1, new flash.geom.Point(ROOM1X, ROOM1Y), "room1", "ROOM1"); shDataArray.room5 = new ShowingItem(room5, new flash.geom.Point(ROOM5X, ROOM5Y), "room5", "ROOM5"); shDataArray.room3 = new ShowingItem(room3, new flash.geom.Point(ROOM3X, ROOM3Y), "room3", "ROOM3"); shDataArray.room2 = new ShowingItem(room2, new flash.geom.Point(ROOM2X, ROOM2Y), "room2", "ROOM2"); shDataArray.room4 = new ShowingItem(room4, new flash.geom.Point(ROOM4X, ROOM4Y), "room4", "ROOM4"); shDataArray.coffee = new ShowingItem(coffee, new flash.geom.Point(COFFEEX, COFFEEY), "coffee", "COFFEE"); shDataArray.fontain_old = new ShowingItem(fountain, new flash.geom.Point(230, 195), "fontain", "FONTAIN"); } function generateShowingItems() { if (shDataArray == undefined) { createBdataArray(); } showingItArray_.push(shDataArray.room1); showingItArray_.push(shDataArray.room2); showingItArray_.push(shDataArray.room3); showingItArray_.push(shDataArray.room4); showingItArray_.push(shDataArray.room5); var i = 0; while (i < parentGame_.mapObjsNames_.length) { if (shDataArray[parentGame_.mapObjsNames_[i]] != undefined) { showingItArray_.push(shDataArray[parentGame_.mapObjsNames_[i]]); } i++; } stairsUp(); } function addShowingItem(aItem) { showingItArray_.push(aItem); } function updatePreviewContent() { bmpHotel.copyPixels(hotelSrc_, hotelSrc_.rectangle, new flash.geom.Point(0, 0), null, null, false); var i = 0; while (i < showingItArray_.length) { if ((showingItArray_[i].visible_ == true) || (showingItArray_[i].visible_ == undefined)) { bmpHotel.copyPixels(showingItArray_[i].bData_, showingItArray_[i].bData_.rectangle, showingItArray_[i].aPos_); } i++; } var i = 0; while (i < selectedSh.length) { var tempData = (new flash.display.BitmapData(selectedSh[i].bData_.width, selectedSh[i].bData_.height, true, 0)); tempData.draw(selectedSh[i].bData_, emptyTransform, alphaTransform); bmpHotel.copyPixels(tempData, tempData.rectangle, selectedSh[i].aPos_); i++; } var scaleMatrix = (new flash.geom.Matrix()); scaleMatrix.scale(PREVIEWWIDTH / bmpHotel.rectangle.width, PREVIEWHEIGHT / bmpHotel.rectangle.height); previewBitmap_.draw(bmpHotel, scaleMatrix); } function createPreviewBase() { previewBitmap_ = new flash.display.BitmapData(PREVIEWWIDTH, PREVIEWHEIGHT); bmpHotel = flash.display.BitmapData.loadBitmap("Epizod1"); hotelSrc_ = flash.display.BitmapData.loadBitmap("Epizod1"); generateShowingItems(); updatePreviewContent(); } function createPreview() { createPreviewBase(); } function updatePreview() { resultBitmap_.copyPixels(previewBitmap_, previewBitmap_.rectangle, new flash.geom.Point(PREVIEWX, PREVIEWY)); } function drawLeftBtnSelected() { resultBitmap_.copyPixels(leftBtnS_, leftBtnS_.rectangle, new flash.geom.Point(BTN_LEFTX1, BTN_LEFTY1)); } function pressLeft() { if (firstItem_ > 0) { firstItem_--; updateItems(); } } function pressRight() { if ((firstItem_ + VISIBLEITEMS) < itemsArr_.length) { firstItem_++; updateItems(); } } function drawLeftBtnPressed() { resultBitmap_.copyPixels(leftBtnP_, leftBtnP_.rectangle, new flash.geom.Point(BTN_LEFTX1, BTN_LEFTY1)); } function drawRightBtnPressed() { resultBitmap_.copyPixels(rightBtnP_, rightBtnP_.rectangle, new flash.geom.Point(BTN_RIGHTX1, BTN_RIGHTY1)); } function drawRightBtnSelected() { resultBitmap_.copyPixels(rightBtnS_, rightBtnS_.rectangle, new flash.geom.Point(BTN_RIGHTX1, BTN_RIGHTY1)); } function restoreVisibleAll() { var i = 0; while (i < showingItArray_.length) { showingItArray_[i].visible_ = true; i++; } } function unvisibleShowing(aName) { var i = 0; while (i < showingItArray_.length) { if (showingItArray_[i].aName_ == aName) { showingItArray_[i].visible_ = false; return(undefined); } i++; } var i = 0; while (i < itemsArr_.length) { var k = 0; while (k < itemsArr_[i].showingItems_.length) { if (itemsArr_[i].showingItems_[k].aName_ == aName) { itemsArr_[i].showingItems_[k].visible_ = false; return(undefined); } k++; } i++; } } function updateFields() { cashField.text = (parentGame_.dictXML.firstChild.attributes.shop_CASH + " ") + parentGame_.cash_; clientsField.text = (parentGame_.dictXML.firstChild.attributes.shop_CLIENTS + " ") + parentGame_.maxCustomers_; parentGame_.setPopularity(); populField.text = (parentGame_.dictXML.firstChild.attributes.shop_POPULARITY + " ") + parentGame_.levelPopularity_; cashField.setTextFormat(TextStyles.txtStyleShopLarge); clientsField.setTextFormat(TextStyles.txtStyleShopLarge); populField.setTextFormat(TextStyles.txtStyleShopLarge); } function create(aGame) { parentGame_ = aGame; created_ = false; leftBtnS_ = flash.display.BitmapData.loadBitmap("arrow_left_a"); leftBtnP_ = flash.display.BitmapData.loadBitmap("arrow_left_p"); rightBtnS_ = flash.display.BitmapData.loadBitmap("arrow_right_a"); rightBtnP_ = flash.display.BitmapData.loadBitmap("arrow_right_p"); cashField = createTextField("cashText", cashField_DEPTH, 370, 240, 200, 60); cashField.text = "CASH "; cashField.setTextFormat(TextStyles.txtStyleShopLarge); clientsField = createTextField("clientsText", clientsField_DEPTH, 370, 270, 200, 60); clientsField.text = "CLIENTS "; clientsField.setTextFormat(TextStyles.txtStyleShopLarge); populField = createTextField("\u0437\u0449\u0437\u0433\u0434Text", populField_DEPTH, 370, 290, 300, 60); populField.text = "POPULARITY "; populField.setTextFormat(TextStyles.txtStyleShopLarge); updateFields(); emptyTransform = new flash.geom.Matrix(); selectedSh = new Array(); alphaTransform = new flash.geom.ColorTransform(); highLightTransform = new flash.geom.ColorTransform(); highLightTransform.blueOffset = 50; highLightTransform.redOffset = 50; highLightTransform.greenOffset = 50; normalTransform = new flash.geom.ColorTransform(); normalTransform.alphaMultiplier = 1; itemsArr_ = new Array(); showingItArray_ = new Array(); setBuyBtn(); loadItems(); firstItem_ = 0; itemsData_ = new flash.display.BitmapData(5 * ITEMWIDTH, ITEMHEIGHT); resultBitmap_ = new flash.display.BitmapData(Stage.width, Stage.height, true, 0); createPreview(); useHandCursor = false; onPress = function () { if (this.created_ != true) { return(undefined); } var clicked = false; var cr = 0; var i = this.firstItem_; while ((i < (this.firstItem_ + ShopSym.VISIBLEITEMS)) && (i < this.itemsArr_.length)) { if ((((this.parentGame_._xmouse >= (ShopSym.ITEMSX + (cr * ShopSym.ITEMWIDTH))) && (this.parentGame_._xmouse <= ((ShopSym.ITEMSX + (cr * ShopSym.ITEMWIDTH)) + ShopSym.ITEMWIDTH))) && (this.parentGame_._ymouse >= ShopSym.ITEMSY)) && (this.parentGame_._ymouse <= (ShopSym.ITEMSY + ShopSym.ITEMHEIGHT))) { clicked = true; this.selectedSh.splice(0, this.selectedSh.length); this.selectedIt = this.itemsArr_[i]; if ((this.selectedIt.price_ > this.parentGame_.cash_) || (this.selectedIt.restricted_ == true)) { BtnFactory.disableButton(this.buyBtn_); } else { BtnFactory.enableButton(this.buyBtn_); } this.restoreVisibleAll(); var s = 0; while (s < this.selectedIt.replacesArr_.length) { this.unvisibleShowing(this.selectedIt.replacesArr_[s]); s++; } var myText = this.createTextField("hintText", ShopSym.ITEMHINT_DEPTH, 40, 270, 200, 60); myText.multiline = true; myText.html = true; myText.wordWrap = true; myText.htmlText = this.parentGame_.dictXML.firstChild.attributes["hint_" + this.itemsArr_[i].descr_]; myText.setTextFormat(TextStyles.txtStyleShopHint); var addText = this.createTextField("addText", ShopSym.ITEMHINT_DEPTH + 1, 245, 270, 100, 50); addText.multiline = true; addText.html = true; addText.wordWrap = true; addText.htmlText = this.parentGame_.dictXML.firstChild.attributes["hint_add_" + this.itemsArr_[i].descr_]; addText.setTextFormat(TextStyles.txtStyleShopHint); var shIt = 0; while (shIt < this.itemsArr_[i].showingItems_.length) { var aShItem = this.itemsArr_[i].showingItems_[shIt]; this.selectedSh.push(aShItem); this.updated_ = true; shIt++; } this.updatePreviewContent(); this.lastblinking_ = 0; this.startTime_ = getTimer(); break; } cr++; i++; } if ((((this._xmouse >= ShopSym.BTN_RIGHTX1) && (this._xmouse <= ShopSym.BTN_RIGHTX2)) && (this._ymouse >= ShopSym.BTN_RIGHTY1)) && (this._ymouse <= ShopSym.BTN_RIGHTY3)) { this.drawRightBtnPressed(); this.pressRight(); } else if ((((this._xmouse >= ShopSym.BTN_LEFTX1) && (this._xmouse <= ShopSym.BTN_LEFTX3)) && (this._ymouse >= ShopSym.BTN_LEFTY1)) && (this._ymouse <= ShopSym.BTN_LEFTY3)) { this.drawLeftBtnPressed(); this.pressLeft(); } }; onRelease = function () { if ((((this._xmouse >= ShopSym.BTN_RIGHTX1) && (this._xmouse <= ShopSym.BTN_RIGHTX2)) && (this._ymouse >= ShopSym.BTN_RIGHTY1)) && (this._ymouse <= ShopSym.BTN_RIGHTY3)) { this.drawRightBtnSelected(); } else if ((((this._xmouse >= ShopSym.BTN_LEFTX1) && (this._xmouse <= ShopSym.BTN_LEFTX3)) && (this._ymouse >= ShopSym.BTN_LEFTY1)) && (this._ymouse <= ShopSym.BTN_LEFTY3)) { this.drawLeftBtnSelected(); } }; onMouseMove = function () { if ((((this._xmouse >= ShopSym.BTN_RIGHTX1) && (this._xmouse <= ShopSym.BTN_RIGHTX2)) && (this._ymouse >= ShopSym.BTN_RIGHTY1)) && (this._ymouse <= ShopSym.BTN_RIGHTY3)) { if (this.btn_right_selected_ != true) { this.btn_right_selected_ = true; this.drawRightBtnSelected(); } } else if ((((this._xmouse >= ShopSym.BTN_LEFTX1) && (this._xmouse <= ShopSym.BTN_LEFTX3)) && (this._ymouse >= ShopSym.BTN_LEFTY1)) && (this._ymouse <= ShopSym.BTN_LEFTY3)) { if (this.btn_left_selected_ != true) { this.btn_left_selected_ = true; this.drawLeftBtnSelected(); } } else { if (this.btn_left_selected_ == true) { this.clearLeftBtnSelected(); this.btn_left_selected_ = false; } if (this.btn_right_selected_ == true) { this.clearRightBtnSelected(); this.btn_right_selected_ = false; } } }; onEnterFrame = function () { this.created_ = true; if ((this.selectedSh.length > 0) && (this.selectedIt.restricted_ != true)) { var nowTime = getTimer(); var deltaT = (nowTime - this.startTime_); if (deltaT >= ShopSym.BLINKTIME) { this.startTime_ = nowTime; deltaT = 1000; } var alphaVal = (100 / deltaT); if (this.alphaTransform.alphaMultiplier != alphaVal) { this.alphaTransform.alphaMultiplier = alphaVal; this.updatePreviewContent(); this.updated_ = true; } } if (this.updated_ == true) { this.updateItems(); this.updatePreview(); this.updated_ = false; this.attachBitmap(this.resultBitmap_, 100); } }; updated_ = true; } static var IND_ITEMS = 0; static var VISIBLEITEMS = 5; static var ITEMWIDTH = 62; static var ITEMHEIGHT = 70; static var ITEMSY = 320; static var ITEMSX = 25; static var PREVIEWHEIGHT = 250; static var PREVIEWWIDTH = 344; static var PREVIEWX = 8; static var PREVIEWY = 6; static var STAIRSLEFTY = 60; static var STAIRSRIGHTX = 436; static var STAIRSBTMLEFTY = 300; static var STAIRSBTMRIGHTX = 510; static var ITEMHINT_DEPTH = 1000; static var ROOM1X = 53; static var ROOM1Y = 7; static var ROOM2X = 161; static var ROOM2Y = 52; static var ROOM3X = 253; static var ROOM3Y = 42; static var ROOM4X = 351; static var ROOM4Y = 52; static var ROOM5X = 453; static var ROOM5Y = 7; static var FOUNTX = 230; static var FOUNTY = 195; static var COFFEEX = 460; static var COFFEEY = 150; static var BTN_RIGHTX1 = 333; static var BTN_RIGHTY1 = 320; static var BTN_RIGHTX2 = 352; static var BTN_RIGHTY2 = 323; static var BTN_RIGHTX3 = 352; static var BTN_RIGHTY3 = 386; static var BTN_RIGHTX4 = 336; static var BTN_RIGHTY4 = 386; static var BTN_LEFTX1 = 5; static var BTN_LEFTY1 = 320; static var BTN_LEFTX3 = 23; static var BTN_LEFTY3 = 386; static var cashField_DEPTH = 200; static var clientsField_DEPTH = 201; static var populField_DEPTH = 202; static var BLINKTIME = 800; }Symbol 386 MovieClip [__Packages.Submenu] Frame 0class Submenu extends MovieClip { var musicResultBmp_, parentGame_, soundResultBMP_, musicEmptyBMP_, musicEmptyX_, soundEmptyBMP_, musicFullBMP_, musicIndex_, soundFullBMP_, soundIndex_, attachBitmap, _width, _height, soundEmptyX_, soundVolume_, musicVolume_, SoundText_, createTextField, MusicText_, theButton, attachMovie, useHandCursor, onMouseMove, onRelease, onPress; function Submenu () { super(); } function update() { musicResultBmp_.colorTransform(musicResultBmp_.rectangle, parentGame_.transparent_); soundResultBMP_.colorTransform(soundResultBMP_.rectangle, parentGame_.transparent_); musicResultBmp_.copyPixels(musicEmptyBMP_, musicEmptyBMP_.rectangle, new flash.geom.Point(musicEmptyX_, BARMUSICY)); soundResultBMP_.copyPixels(soundEmptyBMP_, soundEmptyBMP_.rectangle, new flash.geom.Point(musicEmptyX_, BARSOUNDY)); musicResultBmp_.copyPixels(musicFullBMP_, new flash.geom.Rectangle(0, 0, musicIndex_, musicFullBMP_.height), new flash.geom.Point(musicEmptyX_, BARMUSICY)); soundResultBMP_.copyPixels(soundFullBMP_, new flash.geom.Rectangle(0, 0, soundIndex_, soundFullBMP_.height), new flash.geom.Point(musicEmptyX_, BARSOUNDY)); attachBitmap(musicResultBmp_, BARMUSICDEPTH); attachBitmap(soundResultBMP_, BARSOUNDDEPTH); } function create(parentGame) { parentGame_ = parentGame; musicResultBmp_ = new flash.display.BitmapData(_width, _height, true, 0); soundResultBMP_ = new flash.display.BitmapData(_width, _height, true, 0); musicEmptyBMP_ = flash.display.BitmapData.loadBitmap("sbar_empty"); soundEmptyBMP_ = flash.display.BitmapData.loadBitmap("sbar_empty"); musicFullBMP_ = flash.display.BitmapData.loadBitmap("sbar_full"); soundFullBMP_ = flash.display.BitmapData.loadBitmap("sbar_full"); musicEmptyX_ = (_width / 2) - (musicEmptyBMP_.width / 2); soundEmptyX_ = (_width / 2) - (soundEmptyBMP_.width / 2); soundVolume_ = Game.SOUNDVLM; musicVolume_ = Game.MUSICVLM; musicIndex_ = musicVolume_ * (musicEmptyBMP_.width / 100); soundIndex_ = soundVolume_ * (musicEmptyBMP_.width / 100); SoundText_ = createTextField("mysound_txt", BARSOUNDTEXTDEPTH, _width / 2, 0, 0, 0); SoundText_.text = "SOUND VOLUME"; SoundText_.setTextFormat(TextStyles.txtStyleCommon); TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, SoundText_); SoundText_._y = BARSOUNDY - 20; MusicText_ = createTextField("mymusic_txt", BARMUSICTEXTDEPTH, _width / 2, 0, 0, 0); MusicText_.text = "MUSIC VOLUME"; MusicText_.setTextFormat(TextStyles.txtStyleCommon); TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, MusicText_); MusicText_._y = BARMUSICY - 20; theButton = attachMovie("MenuItem", "btnSimple", BUTTONDEPTH); theButton.generateFill("yellow", 100); if (theButton.fillsArray_.normal != undefined) { theButton.attachBitmap(theButton.fillsArray_.normal, 10); } theButton._y = 100; var afield = theButton.createTextField("lblText", 100, theButton._width / 2, 0, 0, 0); afield.text = "OK"; TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, afield); afield.setTextFormat(TextStyles.txtStyleCommon); afield._y = (theButton._height / 2) - (afield._height / 2); theButton._x = (_width / 2) - (theButton._width / 2); theButton._y = _height - theButton._height; theButton.useHandCursor = true; theButton.onRollOver = function () { if (this.fillsArray_.active != undefined) { this.attachBitmap(this.fillsArray_.active, 10); } }; theButton.onDragOut = function () { if (this.pressed == true) { this._y = this.sourceY_; this.pressed = false; } if (this.fillsArray_.normal != undefined) { this.attachBitmap(this.fillsArray_.normal, 10); } }; theButton.onRollOut = function () { if (this.pressed == true) { this._y = this.sourceY_; this.pressed = false; } if (this.fillsArray_.normal != undefined) { this.attachBitmap(this.fillsArray_.normal, 10); } }; theButton.onPress = function () { this.pressed_ = true; Helper.PlaySound("menu_click", 1); this.sourceY_ = this._y; this._y = this._y + 1; }; theButton.onRelease = function () { if (this.pressed_ == true) { this._y = this.sourceY_; this.pressed = false; _root.Game1.setRetCode(MenuBase.RCODE_SOUND_EXIT); } }; useHandCursor = false; onMouseMove = function () { if ((((this._xmouse >= this.theButton._x) && (this._xmouse <= (this.theButton._x + this.theButton._width))) && (this._ymouse >= this.theButton._y)) && (this._ymouse <= (this.theButton._y + this.theButton._height))) { this.theButton.onRollOver(); } else { this.theButton.onRollOut(); } }; onRelease = function () { if ((((this._xmouse >= this.theButton._x) && (this._xmouse <= (this.theButton._x + this.theButton._width))) && (this._ymouse >= this.theButton._y)) && (this._ymouse <= (this.theButton._y + this.theButton._height))) { this.theButton.onRelease(); } else if (this.theButton.pressed_ == true) { this.pressed = false; this.theButton._y = this.theButton.sourceY_; } }; onPress = function () { if ((((this._xmouse >= this.musicEmptyX_) && (this._xmouse <= (this.musicEmptyX_ + this.musicEmptyBMP_.width))) && (this._ymouse >= Submenu.BARMUSICY)) && (this._ymouse <= (Submenu.BARMUSICY + this.musicEmptyBMP_.height))) { var fillwidth = (this._xmouse - this.musicEmptyX_); this.musicIndex_ = fillwidth; var offset = ((fillwidth / this.musicEmptyBMP_.width) * 100); this.update(); Game.MUSICVLM = offset; Helper.mySoundTransformObjectMono = new Object(); Helper.mySoundTransformObjectMono.ll = 0; Helper.mySoundTransformObjectMono.lr = Game.MUSICVLM - 1; Helper.mySoundTransformObjectMono.rr = Game.MUSICVLM - 1; Helper.mySoundTransformObjectMono.rl = 0; Game.MUSICSOUND.setTransform(Helper.mySoundTransformObjectMono); } else if ((((this._xmouse >= this.musicEmptyX_) && (this._xmouse <= (this.musicEmptyX_ + this.musicEmptyBMP_.width))) && (this._ymouse >= Submenu.BARSOUNDY)) && (this._ymouse <= (Submenu.BARSOUNDY + this.musicEmptyBMP_.height))) { var fillwidth = (this._xmouse - this.musicEmptyX_); this.soundIndex_ = fillwidth; var offset = ((fillwidth / this.musicEmptyBMP_.width) * 100); Game.SOUNDVLM = offset; Helper.PlaySound("shop_buy", 1); this.update(); } else if ((((this._xmouse >= this.theButton._x) && (this._xmouse <= (this.theButton._x + this.theButton._width))) && (this._ymouse >= this.theButton._y)) && (this._ymouse <= (this.theButton._y + this.theButton._height))) { this.theButton.onPress(); } }; } static var BARSOUNDDEPTH = 0; static var BARMUSICDEPTH = 1; static var BARSOUNDTEXTDEPTH = 2; static var BARMUSICTEXTDEPTH = 3; static var BUTTONDEPTH = 4; static var BARSOUNDY = 80; static var BARMUSICY = 140; }Symbol 387 MovieClip [__Packages.LoadingMenu] Frame 0class LoadingMenu extends MovieClip { static var parentGame_; var createTextField, getNextHighestDepth, exitCode_, showOK_, attachMovie, _name, okText_, _width, _height, mcBody, pressWaiting_, pressed_, loadIndex_, inputName_, lEmptyBMP_, lFullBMP_, lResultBMP_, showProgress_, onMouseUp, onMouseDown, attachBitmap; function LoadingMenu () { super(); } function addText(aText, aPos) { var afield = createTextField("lblText" + aPos.toString(), getNextHighestDepth(), aPos.x, aPos.y, 0, 0); afield.text = aText; TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, afield); afield.setTextFormat(TextStyles.txtStyleCommon); } function setWaitPress(exitCode, btnOut) { exitCode_ = exitCode; if (showOK_ == true) { var theClip = attachMovie("MenuItem", "btnSimple" + _name, getNextHighestDepth()); theClip.setClsId(MenuBase.CLSID_TEXTBTNSIMPL); var baseBackName = "yellow"; var btnWidth = 100; theClip.setReturnCode(MenuBase.RCODE_NEXT_LEVEL); theClip.generateFill(baseBackName, btnWidth); if (theClip.fillsArray_.normal != undefined) { theClip.attachBitmap(theClip.fillsArray_.normal, 10); } var maxWidth; if (theClip._width == 0) { maxWidth = flash.display.BitmapData(theClip.fillsArray_.active).width; } else { maxWidth = theClip._width; } var afield = theClip.createTextField("lblText", 100, 0, 0, 0, 0); afield._x = maxWidth / 2; afield.text = okText_; TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, afield); afield.setTextFormat(TextStyles.txtStyleCommon); afield._y = (theClip._height / 2) - (afield._height / 2); BtnFactory.enableButton(this); BtnFactory.createHitArea(this); BtnFactory.createSelArea(theClip); theClip._x = (_width / 2) - (theClip._width / 2); theClip._y = _height - 50; theClip.onPress = function () { if (btnOut != undefined) { LoadingMenu.parentGame_.namePressed_ = btnOut; } }; mcBody._visible = true; } else { pressWaiting_ = true; var afield = createTextField("lblText", TEXTDEPTH, _width / 2, 0, 0, 0); afield.text = parentGame_.dictXML.firstChild.attributes.menu_PRESS_TO_START; TextStyles.setFieldStyle(TextStyles.FSTYLE_INACT_CNTR, afield); afield.setTextFormat(TextStyles.txtStyleCommonGreen); afield._y = _height - 80; mcBody._visible = true; } } function create(parentGame, showProgress, showOK, okText, mType) { okText_ = okText; showOK_ = showOK; pressed_ = false; pressWaiting_ = false; loadIndex_ = 0; parentGame_ = parentGame; if (mType == "INPUTNAME") { inputName_ = createTextField("inpName", getNextHighestDepth(), _width / 2, 220, 0, 0); inputName_.text = Game.userName_; TextStyles.setFieldStyle(TextStyles.FSTYLE_EDT_CNTR, inputName_); inputName_.setTextFormat(TextStyles.txtStyleCommonCenter); inputName_.setNewTextFormat(TextStyles.txtStyleCommonCenter); inputName_._width = 120; inputName_._height = 30; inputName_._x = (_width / 2) - (inputName_._width / 2); addText(parentGame_.dictXML.firstChild.attributes.menu_ENTER_NAME, new flash.geom.Point(_width / 2, 180)); } else if (mType == "SCORES") { } else { lEmptyBMP_ = flash.display.BitmapData.loadBitmap("lbar_empty"); lFullBMP_ = flash.display.BitmapData.loadBitmap("lbar_full"); lResultBMP_ = new flash.display.BitmapData(_width, _height, true, 0); mcBody._visible = false; showProgress_ = showProgress; onMouseUp = function () { if (((LoadingMenu.parentGame_.loadingMenu_ != undefined) && (LoadingMenu.parentGame_.loadingMenu_.pressWaiting_ == true)) && (this.pressed_ == true)) { if (this.exitCode_ == Game.PST_CREATING_OBJS) { LoadingMenu.parentGame_.programState_ = Game.PST_CREATING_OBJS; LoadingMenu.parentGame_.gamePlay_ = true; LoadingMenu.parentGame_.wndCash_.updateCashData(); LoadingMenu.parentGame_.wndClients_.updateData(); } else if (this.exitCode_ == Game.PST_GOTO_SHOP) { LoadingMenu.parentGame_.gotoShop(); } else if (this.exitCode_ == Game.PST_RESTART_GAME) { LoadingMenu.parentGame_.restartGame(); } } }; onMouseDown = function () { this.pressed_ = true; }; } } function update() { if (showProgress_ != false) { lResultBMP_.colorTransform(lResultBMP_.rectangle, parentGame_.transparent_); lResultBMP_.copyPixels(lEmptyBMP_, lEmptyBMP_.rectangle, new flash.geom.Point((_width / 2) - (lEmptyBMP_.width / 2), _height - 50)); lResultBMP_.copyPixels(lFullBMP_, new flash.geom.Rectangle(0, 0, lFullBMP_.width * (loadIndex_ / 100), lFullBMP_.height), new flash.geom.Point((_width / 2) - (lEmptyBMP_.width / 2), _height - 50)); attachBitmap(lResultBMP_, BMPDEPTH); } } static var TEXTDEPTH = 400; static var BMPDEPTH = 300; }
Library Items
Symbol 1 Sound [get_ready] | Used by:303 | |
Symbol 2 Bitmap [first_progress] | ||
Symbol 3 Bitmap [menu_back] | Used by:7 | |
Symbol 4 Graphic | Used by:5 | |
Symbol 5 MovieClip [adBox] | Uses:4 | |
Symbol 6 MovieClip [Symbol] | Used by:303 | |
Symbol 7 Graphic | Uses:3 | Used by:303 |
Symbol 8 MovieClip [Symbol_Menu] | Used by:303 | |
Symbol 9 MovieClip [Symbol_menuItem] | Used by:303 | |
Symbol 10 Font [Arial Black] | Used by:11 195 259 | |
Symbol 11 EditableText | Uses:10 | Used by:303 |
Symbol 12 Bitmap [bar_light] | Used by:14 | |
Symbol 13 Bitmap [bar_dark] | Used by:14 | |
Symbol 14 Graphic | Uses:12 13 | Used by:303 |
Symbol 15 MovieClip [Hotel] | Used by:303 | |
Symbol 16 Bitmap [Jane_FrontSide] | Used by:22 | |
Symbol 17 Bitmap [Jane_Side] | Used by:22 | |
Symbol 18 Bitmap [Jane_Front] | Used by:22 | |
Symbol 19 Bitmap [Jane_BackSide] | Used by:22 | |
Symbol 20 Bitmap [Jane_Back] | Used by:22 | |
Symbol 21 Bitmap [Shop] | Used by:22 159 | |
Symbol 22 Graphic | Uses:16 17 18 19 20 21 | Used by:303 |
Symbol 23 MovieClip [Human] | Used by:303 | |
Symbol 24 Bitmap [Epizod1] | Used by:25 | |
Symbol 25 Graphic | Uses:24 | Used by:303 |
Symbol 26 Graphic | Used by:27 | |
Symbol 27 MovieClip [ep1_move] | Uses:26 | Used by:303 |
Symbol 28 Bitmap [StarRed] | Used by:32 | |
Symbol 29 Bitmap [StarGreen] | Used by:32 | |
Symbol 30 Bitmap [MinusRed] | Used by:32 | |
Symbol 31 Bitmap [AddGreen] | Used by:32 | |
Symbol 32 Graphic | Uses:28 29 30 31 | Used by:303 |
Symbol 33 MovieClip [Mebel] | Used by:303 | |
Symbol 34 Bitmap [Jane_HR_Side_T2] | Used by:54 | |
Symbol 35 Bitmap [Jane_HR_Side_Free] | Used by:54 | |
Symbol 36 Bitmap [Jane_HR_FrontSide_T2] | Used by:54 | |
Symbol 37 Bitmap [Jane_HR_FrontSide_Free] | Used by:54 | |
Symbol 38 Bitmap [Jane_HR_Front_T2] | Used by:54 | |
Symbol 39 Bitmap [Jane_HR_Front_Free] | Used by:54 | |
Symbol 40 Bitmap [Jane_HR_BackSide_T2] | Used by:54 | |
Symbol 41 Bitmap [Jane_HR_BackSide_Free] | Used by:54 | |
Symbol 42 Bitmap [Jane_HR_Back_T2] | Used by:54 | |
Symbol 43 Bitmap [Jane_HR_Back_Free] | Used by:54 | |
Symbol 44 Bitmap [Jane_HL_Side_T2] | Used by:54 | |
Symbol 45 Bitmap [Jane_HL_Side_Free] | Used by:54 | |
Symbol 46 Bitmap [Jane_HL_FrontSide_T2] | Used by:54 | |
Symbol 47 Bitmap [Jane_HL_FrontSide_Free] | Used by:54 | |
Symbol 48 Bitmap [Jane_HL_Front_T2] | Used by:54 | |
Symbol 49 Bitmap [Jane_HL_Front_Free] | Used by:54 | |
Symbol 50 Bitmap [Jane_HL_BackSide_T2] | Used by:54 | |
Symbol 51 Bitmap [Jane_HL_BackSide_Free] | Used by:54 | |
Symbol 52 Bitmap [Jane_HL_Back_T2] | Used by:54 | |
Symbol 53 Bitmap [Jane_HL_Back_Free] | Used by:54 | |
Symbol 54 Graphic | Uses:34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | Used by:303 |
Symbol 55 MovieClip [AnimStates] | Used by:303 | |
Symbol 56 Bitmap [door_4] | Used by:60 | |
Symbol 57 Bitmap [door_2] | Used by:60 | |
Symbol 58 Bitmap [door_1_3_5] | Used by:60 | |
Symbol 59 Bitmap [cup] | Used by:60 | |
Symbol 60 Graphic | Uses:56 57 58 59 | Used by:303 |
Symbol 61 MovieClip [Room] | Used by:303 | |
Symbol 62 Bitmap [reception1_a] | Used by:66 | |
Symbol 63 Bitmap [reception1] | Used by:66 | |
Symbol 64 Bitmap [door_1_3_5_a] | Used by:66 | |
Symbol 65 Bitmap [door_2_4_a] | Used by:66 | |
Symbol 66 Graphic | Uses:62 63 64 65 | Used by:303 |
Symbol 67 MovieClip [Customer] | Used by:303 | |
Symbol 68 Bitmap [eng_Side] | Used by:73 | |
Symbol 69 Bitmap [eng_FrontSide] | Used by:73 | |
Symbol 70 Bitmap [eng_Front] | Used by:73 | |
Symbol 71 Bitmap [eng_BackSide] | Used by:73 | |
Symbol 72 Bitmap [eng_Back] | Used by:73 | |
Symbol 73 Graphic | Uses:68 69 70 71 72 | Used by:303 |
Symbol 74 Bitmap [armor_left] | Used by:108 | |
Symbol 75 Bitmap [flowerst_fountain_old] | Used by:108 | |
Symbol 76 Bitmap [fountain_old] | Used by:108 | |
Symbol 77 Bitmap [key] | Used by:108 | |
Symbol 78 Bitmap [checkmark] | Used by:108 109 | |
Symbol 79 Bitmap [jamb_door_apgrade] | Used by:108 | |
Symbol 80 Bitmap [ladder_up] | Used by:108 | |
Symbol 81 Bitmap [ladder_bottom] | Used by:108 | |
Symbol 82 Bitmap [stainedglass_effect_add] | Used by:108 | |
Symbol 83 Bitmap [fountain_up] | Used by:108 | |
Symbol 84 Bitmap [fountain_shine] | Used by:108 | |
Symbol 85 Bitmap [fountain_reflection] | Used by:108 | |
Symbol 86 Bitmap [fountain_old_basis_up] | Used by:108 | |
Symbol 87 Bitmap [fountain_basis_up] | Used by:108 | |
Symbol 88 Bitmap [fountain_basis] | Used by:108 | |
Symbol 89 Bitmap [wall_old_floor_update] | Used by:108 | |
Symbol 90 Bitmap [wall_new_floor_update] | Used by:108 | |
Symbol 91 Bitmap [lamp] | Used by:108 | |
Symbol 92 Bitmap [floor_update] | Used by:108 | |
Symbol 93 Bitmap [cloth_left] | Used by:108 | |
Symbol 94 Bitmap [armor_wall_left] | Used by:108 | |
Symbol 95 Bitmap [arch_3] | Used by:108 | |
Symbol 96 Bitmap [arch_2_4] | Used by:108 | |
Symbol 97 Bitmap [arch_1_5] | Used by:108 | |
Symbol 98 Bitmap [chair_a] | Used by:108 | |
Symbol 99 Bitmap [chair] | Used by:108 | |
Symbol 100 Bitmap [armor_a] | Used by:108 | |
Symbol 101 Bitmap [armor] | Used by:108 | |
Symbol 102 Bitmap [armchair_left] | Used by:108 | |
Symbol 103 Bitmap [coffee] | Used by:108 | |
Symbol 104 Bitmap [table_for_eat_a] | Used by:108 | |
Symbol 105 Bitmap [table_for_eat] | Used by:108 184 | |
Symbol 106 Bitmap [task_cloud] | Used by:108 | |
Symbol 107 Bitmap [add] | Used by:108 | |
Symbol 108 Graphic | Uses:74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | Used by:303 |
Symbol 109 Graphic | Uses:78 | Used by:110 |
Symbol 110 MovieClip [check_smb] | Uses:109 | Used by:303 |
Symbol 111 Bitmap [eng_smile] | Used by:114 | |
Symbol 112 Bitmap [eng_norm] | Used by:114 | |
Symbol 113 Bitmap [eng_angry] | Used by:114 | |
Symbol 114 Graphic | Uses:111 112 113 | Used by:303 |
Symbol 115 Bitmap [avatar_cloud] | Used by:116 | |
Symbol 116 Graphic | Uses:115 | Used by:117 |
Symbol 117 MovieClip [avatar_cld] | Uses:116 | Used by:303 |
Symbol 118 Bitmap [windowservice_left] | Used by:129 | |
Symbol 119 Bitmap [hand_eat] | Used by:129 | |
Symbol 120 Bitmap [eat] | Used by:129 | |
Symbol 121 Bitmap [kitchen] | Used by:129 | |
Symbol 122 Bitmap [Jane_Stay] | Used by:129 | |
Symbol 123 Bitmap [eng_Sit] | Used by:129 | |
Symbol 124 Bitmap [phone] | Used by:129 | |
Symbol 125 Bitmap [add_left_ar] | Used by:129 | |
Symbol 126 Bitmap [add_left_al] | Used by:129 | |
Symbol 127 Bitmap [add_left] | Used by:129 | |
Symbol 128 Bitmap [daily] | Used by:129 | |
Symbol 129 Graphic | Uses:118 119 120 121 122 123 124 125 126 127 128 | Used by:303 |
Symbol 130 MovieClip [ServiceWindow] | Used by:303 | |
Symbol 131 Bitmap [maid_Side] | Used by:139 | |
Symbol 132 Bitmap [maid_FrontSide] | Used by:139 | |
Symbol 133 Bitmap [maid_Front] | Used by:139 | |
Symbol 134 Bitmap [maid_Flowers] | Used by:139 | |
Symbol 135 Bitmap [maid_BackSide] | Used by:139 | |
Symbol 136 Bitmap [maid_Back] | Used by:139 | |
Symbol 137 Bitmap [clean] | Used by:139 | |
Symbol 138 Bitmap [parlourmaid] | Used by:139 | |
Symbol 139 Graphic | Uses:131 132 133 134 135 136 137 138 | Used by:303 |
Symbol 140 MovieClip [Personal] | Used by:303 | |
Symbol 141 Bitmap [Porter_HR_Side_free] | Used by:158 | |
Symbol 142 Bitmap [Porter_HR_FrontSide_free] | Used by:158 | |
Symbol 143 Bitmap [Porter_HR_Front_Free] | Used by:158 | |
Symbol 144 Bitmap [Porter_HR_BackSide_free] | Used by:158 | |
Symbol 145 Bitmap [Porter_HR_Back_free] | Used by:158 | |
Symbol 146 Bitmap [Porter_HL_Side_free] | Used by:158 | |
Symbol 147 Bitmap [Porter_HL_FrontSide_free] | Used by:158 | |
Symbol 148 Bitmap [Porter_HL_Front_free] | Used by:158 | |
Symbol 149 Bitmap [Porter_HL_BackSide_free] | Used by:158 | |
Symbol 150 Bitmap [Porter_HL_Back_free] | Used by:158 | |
Symbol 151 Bitmap [porter_Side] | Used by:158 | |
Symbol 152 Bitmap [porter_FrontSide] | Used by:158 | |
Symbol 153 Bitmap [porter_Front] | Used by:158 | |
Symbol 154 Bitmap [porter_BackSide] | Used by:158 | |
Symbol 155 Bitmap [porter_Back] | Used by:158 | |
Symbol 156 Bitmap [repair] | Used by:158 | |
Symbol 157 Bitmap [porter] | Used by:158 | |
Symbol 158 Graphic | Uses:141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | Used by:303 |
Symbol 159 Graphic | Uses:21 | Used by:160 |
Symbol 160 MovieClip [ShopSym] | Uses:159 | Used by:303 |
Symbol 161 Bitmap [leaves_orange] | Used by:184 | |
Symbol 162 Bitmap [leaves_green] | Used by:184 | |
Symbol 163 Bitmap [tree_left_a] | Used by:184 | |
Symbol 164 Bitmap [tree_withering] | Used by:184 | |
Symbol 165 Bitmap [tree_left] | Used by:184 | |
Symbol 166 Bitmap [maid_CleanRoom] | Used by:184 | |
Symbol 167 Bitmap [porter_Repair] | Used by:184 | |
Symbol 168 Bitmap [eng_Stay] | Used by:184 | |
Symbol 169 Bitmap [table_for_eat_u_a] | Used by:184 | |
Symbol 170 Bitmap [table_for_eat_u] | Used by:184 | |
Symbol 171 Bitmap [reception_u_a] | Used by:184 | |
Symbol 172 Bitmap [reception_u] | Used by:184 | |
Symbol 173 Bitmap [newspaper_u_a] | Used by:184 | |
Symbol 174 Bitmap [newspaper_u] | Used by:184 | |
Symbol 175 Bitmap [magazine] | Used by:184 | |
Symbol 176 Bitmap [coffee_u] | Used by:184 | |
Symbol 177 Bitmap [shield] | Used by:184 | |
Symbol 178 Bitmap [armor_u_a] | Used by:184 | |
Symbol 179 Bitmap [armor_u] | Used by:184 | |
Symbol 180 Bitmap [arrow_right_p] | Used by:184 | |
Symbol 181 Bitmap [arrow_right_a] | Used by:184 | |
Symbol 182 Bitmap [arrow_left_p] | Used by:184 | |
Symbol 183 Bitmap [arrow_left_a] | Used by:184 | |
Symbol 184 Graphic | Uses:161 162 163 164 165 166 167 168 169 170 105 171 172 173 174 175 176 177 178 179 180 181 182 183 | Used by:303 |
Symbol 185 MovieClip [Leaf] | Used by:303 | |
Symbol 186 MovieClip [CashWindow] | Used by:303 | |
Symbol 187 Bitmap [eng_Sit_Coffee_Drink] | Used by:189 | |
Symbol 188 Bitmap [cash] | Used by:189 | |
Symbol 189 Graphic | Uses:187 188 | Used by:303 |
Symbol 190 Font | Used by:191 194 258 261 262 264 265 266 267 268 | |
Symbol 191 EditableText | Uses:190 | Used by:196 |
Symbol 192 Graphic | Used by:193 | |
Symbol 193 MovieClip | Uses:192 | Used by:196 260 263 |
Symbol 194 EditableText | Uses:190 | Used by:196 |
Symbol 195 EditableText | Uses:10 | Used by:196 |
Symbol 196 MovieClip [BeginTextSymbolAnim] | Uses:191 193 194 195 | Used by:303 |
Symbol 197 Bitmap [shop_armchair_right] | Used by:201 | |
Symbol 198 Bitmap [eng_Sit_Magazin_Reading] | Used by:201 | |
Symbol 199 Bitmap [dnd] | Used by:201 | |
Symbol 200 Bitmap [eng_Eat] | Used by:201 | |
Symbol 201 Graphic | Uses:197 198 199 200 | Used by:303 |
Symbol 202 MovieClip [MenuItem] | Used by:303 | |
Symbol 203 Bitmap [clients] | Used by:222 | |
Symbol 204 Bitmap [boy_Stay] | Used by:222 | |
Symbol 205 Bitmap [boy_Sit_Magazine_Reading] | Used by:222 | |
Symbol 206 Bitmap [boy_Sit_Coffee_Drink] | Used by:222 | |
Symbol 207 Bitmap [boy_Sit] | Used by:222 | |
Symbol 208 Bitmap [boy_Side] | Used by:222 | |
Symbol 209 Bitmap [boy_norm] | Used by:222 | |
Symbol 210 Bitmap [boy_FrontSide] | Used by:222 | |
Symbol 211 Bitmap [boy_Front] | Used by:222 | |
Symbol 212 Bitmap [boy_Eat] | Used by:222 | |
Symbol 213 Bitmap [boy_BackSide] | Used by:222 | |
Symbol 214 Bitmap [boy_Back] | Used by:222 | |
Symbol 215 Bitmap [closed] | Used by:222 | |
Symbol 216 Bitmap [yellow_center_active] | Used by:222 | |
Symbol 217 Bitmap [yellow_center_normal] | Used by:222 | |
Symbol 218 Bitmap [yellow_left_normal] | Used by:222 | |
Symbol 219 Bitmap [yellow_left_disabled] | Used by:222 | |
Symbol 220 Bitmap [yellow_left_active] | Used by:222 | |
Symbol 221 Bitmap [yellow_center_disabled] | Used by:222 | |
Symbol 222 Graphic | Uses:203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | Used by:303 |
Symbol 223 MovieClip [ClientsWindow] | Used by:303 | |
Symbol 224 Bitmap [back_menu] | Used by:225 | |
Symbol 225 Graphic | Uses:224 | Used by:242 303 |
Symbol 226 Graphic | Used by:227 | |
Symbol 227 MovieClip [Submenu] | Uses:226 | Used by:303 |
Symbol 228 Bitmap [bar_index] | Used by:232 | |
Symbol 229 Bitmap [bar_full] | Used by:232 | |
Symbol 230 Bitmap [bar_filled] | Used by:232 | |
Symbol 231 Bitmap [jamb_door] | Used by:232 | |
Symbol 232 Graphic | Uses:228 229 230 231 | Used by:303 |
Symbol 233 MovieClip [CashBar] | Used by:303 | |
Symbol 234 Bitmap [sbar_full] | Used by:236 | |
Symbol 235 Bitmap [sbar_empty] | Used by:236 | |
Symbol 236 Graphic | Uses:234 235 | Used by:303 |
Symbol 237 Bitmap | Used by:238 | |
Symbol 238 Graphic | Uses:237 | Used by:239 |
Symbol 239 MovieClip [Money] | Uses:238 | Used by:303 |
Symbol 240 Graphic | Used by:241 | |
Symbol 241 MovieClip | Uses:240 | Used by:242 |
Symbol 242 MovieClip [LoadingMenu] | Uses:225 241 | Used by:303 |
Symbol 243 Bitmap [blacksqr] | Used by:249 | |
Symbol 244 Bitmap [iwateringcan] | Used by:249 | |
Symbol 245 Bitmap [iwaterclean] | Used by:249 | |
Symbol 246 Bitmap [irepair] | Used by:249 | |
Symbol 247 Bitmap [lbar_full] | Used by:249 | |
Symbol 248 Bitmap [lbar_empty] | Used by:249 | |
Symbol 249 Graphic | Uses:243 244 245 246 247 248 | Used by:303 |
Symbol 250 Bitmap [shadow] | Used by:251 | |
Symbol 251 Graphic | Uses:250 | Used by:252 |
Symbol 252 MovieClip [mc_shadow] | Uses:251 | Used by:303 |
Symbol 253 Bitmap [but_stroke_a] | Used by:257 | |
Symbol 254 Bitmap [windowservice_persona_a] | Used by:257 | |
Symbol 255 Bitmap [eng_Sit_Chair] | Used by:257 | |
Symbol 256 Bitmap [boy_Sit_Chair] | Used by:257 | |
Symbol 257 Graphic | Uses:253 254 255 256 | Used by:303 |
Symbol 258 EditableText | Uses:190 | Used by:260 |
Symbol 259 EditableText | Uses:10 | Used by:260 |
Symbol 260 MovieClip [MoneyText] | Uses:193 258 259 | Used by:303 |
Symbol 261 EditableText | Uses:190 | Used by:263 |
Symbol 262 EditableText | Uses:190 | Used by:263 |
Symbol 263 MovieClip [StimulationTextAnim] | Uses:261 262 193 | Used by:303 |
Symbol 264 Text | Uses:190 | Used by:269 |
Symbol 265 EditableText | Uses:190 | Used by:269 |
Symbol 266 EditableText | Uses:190 | Used by:269 |
Symbol 267 EditableText | Uses:190 | Used by:269 |
Symbol 268 EditableText | Uses:190 | Used by:269 |
Symbol 269 MovieClip [score_table] | Uses:264 265 266 267 268 | Used by:303 |
Symbol 270 MovieClip [mc_ADS] | Used by:303 | |
Symbol 271 Bitmap [splash3] | Used by:273 | |
Symbol 272 Bitmap [splash2] | Used by:273 | |
Symbol 273 Graphic | Uses:271 272 | Used by:303 |
Symbol 274 Bitmap [gamemenu_normal] | Used by:277 | |
Symbol 275 Bitmap [gamemenu_active] | Used by:277 | |
Symbol 276 Bitmap [splash1] | Used by:277 | |
Symbol 277 Graphic | Uses:274 275 276 | Used by:303 |
Symbol 278 Sound [music_menu] | Used by:303 | |
Symbol 279 Sound [music1] | Used by:303 | |
Symbol 280 Sound [hello_male2] | Used by:303 | |
Symbol 281 Sound [broke] | Used by:303 | |
Symbol 282 Sound [door_open] | Used by:303 | |
Symbol 283 Sound [door_close] | Used by:303 | |
Symbol 284 Sound [door_main_bell] | Used by:303 | |
Symbol 285 Sound [menu_click] | Used by:303 | |
Symbol 286 Sound [goal] | Used by:303 | |
Symbol 287 Sound [levelup] | Used by:303 | |
Symbol 288 Sound [leveldefeat] | Used by:303 | |
Symbol 289 Sound [shop_buy] | Used by:303 | |
Symbol 290 Sound [pickup_coffee] | Used by:303 | |
Symbol 291 Sound [pickup_key] | Used by:303 | |
Symbol 292 Sound [pickup_money] | Used by:303 | |
Symbol 293 Sound [service_accepted] | Used by:303 | |
Symbol 294 Sound [servant_appear1] | Used by:303 | |
Symbol 295 Sound [cleaning] | Used by:303 | |
Symbol 296 Sound [call] | Used by:303 | |
Symbol 297 Sound [action_newspaper] | Used by:303 | |
Symbol 298 Sound [plus] | Used by:303 | |
Symbol 299 Sound [minus] | Used by:303 | |
Symbol 300 Sound [key_denied] | Used by:303 | |
Symbol 301 Sound [action_case] | Used by:303 | |
Symbol 302 Sound [action_repair] | Used by:303 | |
Symbol 303 MovieClip [sLoader] | Uses:6 7 8 9 11 14 15 22 23 25 27 32 33 54 55 60 61 66 67 73 108 110 114 117 129 130 139 140 158 160 184 185 186 189 196 201 202 222 223 225 227 232 233 236 239 242 249 252 257 260 263 269 270 273 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 1 295 296 297 298 299 300 301 302 | Used by:Timeline |
Symbol 304 Bitmap [shop_wall] | Used by:325 | |
Symbol 305 Bitmap [shop_tree] | Used by:325 | |
Symbol 306 Bitmap [shop_table_u] | Used by:325 | |
Symbol 307 Bitmap [shop_table] | Used by:325 | |
Symbol 308 Bitmap [shop_shield] | Used by:325 | |
Symbol 309 Bitmap [shop_reception_u] | Used by:325 | |
Symbol 310 Bitmap [shop_phone_u] | Used by:325 | |
Symbol 311 Bitmap [shop_phone] | Used by:325 | |
Symbol 312 Bitmap [shop_newspaper_u] | Used by:325 | |
Symbol 313 Bitmap [shop_newspaper] | Used by:325 | |
Symbol 314 Bitmap [shop_magazine] | Used by:325 | |
Symbol 315 Bitmap [shop_lamp_u] | Used by:325 | |
Symbol 316 Bitmap [shop_lamp] | Used by:325 | |
Symbol 317 Bitmap [shop_knight_u] | Used by:325 | |
Symbol 318 Bitmap [shop_knight] | Used by:325 | |
Symbol 319 Bitmap [shop_fountain] | Used by:325 | |
Symbol 320 Bitmap [shop_floor] | Used by:325 | |
Symbol 321 Bitmap [shop_coffee_u] | Used by:325 | |
Symbol 322 Bitmap [shop_armor] | Used by:325 | |
Symbol 323 Bitmap [shop_armchair_left] | Used by:325 | |
Symbol 324 Bitmap [shop_arch] | Used by:325 | |
Symbol 325 Graphic | Uses:304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 | Used by:Timeline |
Symbol 326 MovieClip [__Packages.Game] | ||
Symbol 327 MovieClip [__Packages.TextScoreTable] | ||
Symbol 328 MovieClip [__Packages.HumanHelper] | ||
Symbol 329 MovieClip [__Packages.IDrawAble] | ||
Symbol 330 MovieClip [__Packages.IMoveable] | ||
Symbol 331 MovieClip [__Packages.Human] | ||
Symbol 332 MovieClip [__Packages.IMapObject] | ||
Symbol 333 MovieClip [__Packages.IRequestAble] | ||
Symbol 334 MovieClip [__Packages.Room] | ||
Symbol 335 MovieClip [__Packages.custRequest] | ||
Symbol 336 MovieClip [__Packages.Mebel] | ||
Symbol 337 MovieClip [__Packages.Helper] | ||
Symbol 338 MovieClip [__Packages.Tracer] | ||
Symbol 339 MovieClip [__Packages.mx.utils.Delegate] | ||
Symbol 340 MovieClip [__Packages.AnimObject] | ||
Symbol 341 MovieClip [__Packages.AnimStates] | ||
Symbol 342 MovieClip [__Packages.AnimState] | ||
Symbol 343 MovieClip [__Packages.SpriteFactory] | ||
Symbol 344 MovieClip [__Packages.XSprite] | ||
Symbol 345 MovieClip [__Packages.TransitionAnim] | ||
Symbol 346 MovieClip [__Packages.Leaf] | ||
Symbol 347 MovieClip [__Packages.MebelFactory] | ||
Symbol 348 MovieClip [__Packages.Fx] | ||
Symbol 349 MovieClip [__Packages.com.mosesSupposes.fuse.FuseKitCommon] | ||
Symbol 350 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine] | ||
Symbol 351 MovieClip [__Packages.com.mosesSupposes.fuse.ZManager] | ||
Symbol 352 MovieClip [__Packages.mx.transitions.easing.None] | ||
Symbol 353 MovieClip [__Packages.mx.transitions.easing.Regular] | ||
Symbol 354 MovieClip [__Packages.mx.transitions.easing.Elastic] | ||
Symbol 355 MovieClip [__Packages.com.mosesSupposes.fuse.Fuse] | ||
Symbol 356 MovieClip [__Packages.mx.events.EventDispatcher] | ||
Symbol 357 MovieClip [__Packages.com.mosesSupposes.fuse.FuseItem] | ||
Symbol 358 MovieClip [__Packages.GameHelper] | ||
Symbol 359 MovieClip [__Packages.IMenuItemDescriptor] | ||
Symbol 360 MovieClip [__Packages.BtnItemInfo] | ||
Symbol 361 MovieClip [__Packages.Debugger] | ||
Symbol 362 MovieClip [__Packages.TextStyles] | ||
Symbol 363 MovieClip [__Packages.MenuBase] | ||
Symbol 364 MovieClip [__Packages.BtnFactory] | ||
Symbol 365 MovieClip [__Packages.MenuFactory] | ||
Symbol 366 MovieClip [__Packages.Customer] | ||
Symbol 367 MovieClip [__Packages.Map] | ||
Symbol 368 MovieClip [__Packages.Pathfinding] | ||
Symbol 369 MovieClip [__Packages.CmdStack] | ||
Symbol 370 MovieClip [__Packages.RequestsManager] | ||
Symbol 371 MovieClip [__Packages.CmdStackFactory] | ||
Symbol 372 MovieClip [__Packages.Personal] | ||
Symbol 373 MovieClip [__Packages.CashBar] | ||
Symbol 374 MovieClip [__Packages.ServiceWindow] | ||
Symbol 375 MovieClip [__Packages.CashWindow] | ||
Symbol 376 MovieClip [__Packages.ClientsWindow] | ||
Symbol 377 MovieClip [__Packages.XMLFactory] | ||
Symbol 378 MovieClip [__Packages.FactoryAnimObject] | ||
Symbol 379 MovieClip [__Packages.MochiAd] | ||
Symbol 380 MovieClip [__Packages.ShopItem] | ||
Symbol 381 MovieClip [__Packages.ShowingItem] | ||
Symbol 382 MovieClip [__Packages.mc_ADS] | ||
Symbol 383 MovieClip [__Packages.MenuItem] | ||
Symbol 384 MovieClip [__Packages.Hotel] | ||
Symbol 385 MovieClip [__Packages.ShopSym] | ||
Symbol 386 MovieClip [__Packages.Submenu] | ||
Symbol 387 MovieClip [__Packages.LoadingMenu] |
Instance Names
"sLoader" | Frame 2 | Symbol 303 MovieClip [sLoader] |
"mcMasked" | Symbol 196 MovieClip [BeginTextSymbolAnim] Frame 1 | Symbol 193 MovieClip |
"textMask" | Symbol 196 MovieClip [BeginTextSymbolAnim] Frame 1 | Symbol 194 EditableText |
"mcBody" | Symbol 242 MovieClip [LoadingMenu] Frame 1 | Symbol 241 MovieClip |
"mcMasked" | Symbol 260 MovieClip [MoneyText] Frame 1 | Symbol 193 MovieClip |
"textMask" | Symbol 260 MovieClip [MoneyText] Frame 1 | Symbol 258 EditableText |
"textMask" | Symbol 263 MovieClip [StimulationTextAnim] Frame 1 | Symbol 262 EditableText |
"mcMasked" | Symbol 263 MovieClip [StimulationTextAnim] Frame 1 | Symbol 193 MovieClip |
"ranks_tf" | Symbol 269 MovieClip [score_table] Frame 1 | Symbol 265 EditableText |
"ranks_tf" | Symbol 269 MovieClip [score_table] Frame 1 | Symbol 266 EditableText |
"ranks_tf" | Symbol 269 MovieClip [score_table] Frame 1 | Symbol 267 EditableText |
"Arial Black" | Symbol 303 MovieClip [sLoader] Frame 1 | Symbol 11 EditableText |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access network only, Metadata not present, AS1/AS2. |
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "get_ready" |
ExportAssets (56) | Timeline Frame 1 | Symbol 2 as "first_progress" |
ExportAssets (56) | Timeline Frame 1 | Symbol 3 as "menu_back" |
ExportAssets (56) | Timeline Frame 1 | Symbol 5 as "adBox" |
ExportAssets (56) | Timeline Frame 2 | Symbol 6 as "Symbol" |
ExportAssets (56) | Timeline Frame 2 | Symbol 8 as "Symbol_Menu" |
ExportAssets (56) | Timeline Frame 2 | Symbol 9 as "Symbol_menuItem" |
ExportAssets (56) | Timeline Frame 2 | Symbol 10 as "Arial Black" |
ExportAssets (56) | Timeline Frame 2 | Symbol 12 as "bar_light" |
ExportAssets (56) | Timeline Frame 2 | Symbol 13 as "bar_dark" |
ExportAssets (56) | Timeline Frame 2 | Symbol 15 as "Hotel" |
ExportAssets (56) | Timeline Frame 2 | Symbol 16 as "Jane_FrontSide" |
ExportAssets (56) | Timeline Frame 2 | Symbol 17 as "Jane_Side" |
ExportAssets (56) | Timeline Frame 2 | Symbol 18 as "Jane_Front" |
ExportAssets (56) | Timeline Frame 2 | Symbol 19 as "Jane_BackSide" |
ExportAssets (56) | Timeline Frame 2 | Symbol 20 as "Jane_Back" |
ExportAssets (56) | Timeline Frame 2 | Symbol 21 as "Shop" |
ExportAssets (56) | Timeline Frame 2 | Symbol 23 as "Human" |
ExportAssets (56) | Timeline Frame 2 | Symbol 24 as "Epizod1" |
ExportAssets (56) | Timeline Frame 2 | Symbol 27 as "ep1_move" |
ExportAssets (56) | Timeline Frame 2 | Symbol 28 as "StarRed" |
ExportAssets (56) | Timeline Frame 2 | Symbol 29 as "StarGreen" |
ExportAssets (56) | Timeline Frame 2 | Symbol 30 as "MinusRed" |
ExportAssets (56) | Timeline Frame 2 | Symbol 31 as "AddGreen" |
ExportAssets (56) | Timeline Frame 2 | Symbol 33 as "Mebel" |
ExportAssets (56) | Timeline Frame 2 | Symbol 34 as "Jane_HR_Side_T2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 35 as "Jane_HR_Side_Free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 36 as "Jane_HR_FrontSide_T2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 37 as "Jane_HR_FrontSide_Free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 38 as "Jane_HR_Front_T2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 39 as "Jane_HR_Front_Free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 40 as "Jane_HR_BackSide_T2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 41 as "Jane_HR_BackSide_Free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 42 as "Jane_HR_Back_T2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 43 as "Jane_HR_Back_Free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 44 as "Jane_HL_Side_T2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 45 as "Jane_HL_Side_Free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 46 as "Jane_HL_FrontSide_T2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 47 as "Jane_HL_FrontSide_Free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 48 as "Jane_HL_Front_T2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 49 as "Jane_HL_Front_Free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 50 as "Jane_HL_BackSide_T2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 51 as "Jane_HL_BackSide_Free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 52 as "Jane_HL_Back_T2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 53 as "Jane_HL_Back_Free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 55 as "AnimStates" |
ExportAssets (56) | Timeline Frame 2 | Symbol 56 as "door_4" |
ExportAssets (56) | Timeline Frame 2 | Symbol 57 as "door_2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 58 as "door_1_3_5" |
ExportAssets (56) | Timeline Frame 2 | Symbol 59 as "cup" |
ExportAssets (56) | Timeline Frame 2 | Symbol 61 as "Room" |
ExportAssets (56) | Timeline Frame 2 | Symbol 62 as "reception1_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 63 as "reception1" |
ExportAssets (56) | Timeline Frame 2 | Symbol 64 as "door_1_3_5_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 65 as "door_2_4_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 67 as "Customer" |
ExportAssets (56) | Timeline Frame 2 | Symbol 68 as "eng_Side" |
ExportAssets (56) | Timeline Frame 2 | Symbol 69 as "eng_FrontSide" |
ExportAssets (56) | Timeline Frame 2 | Symbol 70 as "eng_Front" |
ExportAssets (56) | Timeline Frame 2 | Symbol 71 as "eng_BackSide" |
ExportAssets (56) | Timeline Frame 2 | Symbol 72 as "eng_Back" |
ExportAssets (56) | Timeline Frame 2 | Symbol 74 as "armor_left" |
ExportAssets (56) | Timeline Frame 2 | Symbol 75 as "flowerst_fountain_old" |
ExportAssets (56) | Timeline Frame 2 | Symbol 76 as "fountain_old" |
ExportAssets (56) | Timeline Frame 2 | Symbol 77 as "key" |
ExportAssets (56) | Timeline Frame 2 | Symbol 78 as "checkmark" |
ExportAssets (56) | Timeline Frame 2 | Symbol 79 as "jamb_door_apgrade" |
ExportAssets (56) | Timeline Frame 2 | Symbol 80 as "ladder_up" |
ExportAssets (56) | Timeline Frame 2 | Symbol 81 as "ladder_bottom" |
ExportAssets (56) | Timeline Frame 2 | Symbol 82 as "stainedglass_effect_add" |
ExportAssets (56) | Timeline Frame 2 | Symbol 83 as "fountain_up" |
ExportAssets (56) | Timeline Frame 2 | Symbol 84 as "fountain_shine" |
ExportAssets (56) | Timeline Frame 2 | Symbol 85 as "fountain_reflection" |
ExportAssets (56) | Timeline Frame 2 | Symbol 86 as "fountain_old_basis_up" |
ExportAssets (56) | Timeline Frame 2 | Symbol 87 as "fountain_basis_up" |
ExportAssets (56) | Timeline Frame 2 | Symbol 88 as "fountain_basis" |
ExportAssets (56) | Timeline Frame 2 | Symbol 89 as "wall_old_floor_update" |
ExportAssets (56) | Timeline Frame 2 | Symbol 90 as "wall_new_floor_update" |
ExportAssets (56) | Timeline Frame 2 | Symbol 91 as "lamp" |
ExportAssets (56) | Timeline Frame 2 | Symbol 92 as "floor_update" |
ExportAssets (56) | Timeline Frame 2 | Symbol 93 as "cloth_left" |
ExportAssets (56) | Timeline Frame 2 | Symbol 94 as "armor_wall_left" |
ExportAssets (56) | Timeline Frame 2 | Symbol 95 as "arch_3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 96 as "arch_2_4" |
ExportAssets (56) | Timeline Frame 2 | Symbol 97 as "arch_1_5" |
ExportAssets (56) | Timeline Frame 2 | Symbol 98 as "chair_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 99 as "chair" |
ExportAssets (56) | Timeline Frame 2 | Symbol 100 as "armor_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 101 as "armor" |
ExportAssets (56) | Timeline Frame 2 | Symbol 102 as "armchair_left" |
ExportAssets (56) | Timeline Frame 2 | Symbol 103 as "coffee" |
ExportAssets (56) | Timeline Frame 2 | Symbol 104 as "table_for_eat_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 105 as "table_for_eat" |
ExportAssets (56) | Timeline Frame 2 | Symbol 106 as "task_cloud" |
ExportAssets (56) | Timeline Frame 2 | Symbol 107 as "add" |
ExportAssets (56) | Timeline Frame 2 | Symbol 110 as "check_smb" |
ExportAssets (56) | Timeline Frame 2 | Symbol 111 as "eng_smile" |
ExportAssets (56) | Timeline Frame 2 | Symbol 112 as "eng_norm" |
ExportAssets (56) | Timeline Frame 2 | Symbol 113 as "eng_angry" |
ExportAssets (56) | Timeline Frame 2 | Symbol 115 as "avatar_cloud" |
ExportAssets (56) | Timeline Frame 2 | Symbol 117 as "avatar_cld" |
ExportAssets (56) | Timeline Frame 2 | Symbol 118 as "windowservice_left" |
ExportAssets (56) | Timeline Frame 2 | Symbol 119 as "hand_eat" |
ExportAssets (56) | Timeline Frame 2 | Symbol 120 as "eat" |
ExportAssets (56) | Timeline Frame 2 | Symbol 121 as "kitchen" |
ExportAssets (56) | Timeline Frame 2 | Symbol 122 as "Jane_Stay" |
ExportAssets (56) | Timeline Frame 2 | Symbol 123 as "eng_Sit" |
ExportAssets (56) | Timeline Frame 2 | Symbol 124 as "phone" |
ExportAssets (56) | Timeline Frame 2 | Symbol 125 as "add_left_ar" |
ExportAssets (56) | Timeline Frame 2 | Symbol 126 as "add_left_al" |
ExportAssets (56) | Timeline Frame 2 | Symbol 127 as "add_left" |
ExportAssets (56) | Timeline Frame 2 | Symbol 128 as "daily" |
ExportAssets (56) | Timeline Frame 2 | Symbol 130 as "ServiceWindow" |
ExportAssets (56) | Timeline Frame 2 | Symbol 131 as "maid_Side" |
ExportAssets (56) | Timeline Frame 2 | Symbol 132 as "maid_FrontSide" |
ExportAssets (56) | Timeline Frame 2 | Symbol 133 as "maid_Front" |
ExportAssets (56) | Timeline Frame 2 | Symbol 134 as "maid_Flowers" |
ExportAssets (56) | Timeline Frame 2 | Symbol 135 as "maid_BackSide" |
ExportAssets (56) | Timeline Frame 2 | Symbol 136 as "maid_Back" |
ExportAssets (56) | Timeline Frame 2 | Symbol 137 as "clean" |
ExportAssets (56) | Timeline Frame 2 | Symbol 138 as "parlourmaid" |
ExportAssets (56) | Timeline Frame 2 | Symbol 140 as "Personal" |
ExportAssets (56) | Timeline Frame 2 | Symbol 141 as "Porter_HR_Side_free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 142 as "Porter_HR_FrontSide_free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 143 as "Porter_HR_Front_Free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 144 as "Porter_HR_BackSide_free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 145 as "Porter_HR_Back_free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 146 as "Porter_HL_Side_free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 147 as "Porter_HL_FrontSide_free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 148 as "Porter_HL_Front_free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 149 as "Porter_HL_BackSide_free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 150 as "Porter_HL_Back_free" |
ExportAssets (56) | Timeline Frame 2 | Symbol 151 as "porter_Side" |
ExportAssets (56) | Timeline Frame 2 | Symbol 152 as "porter_FrontSide" |
ExportAssets (56) | Timeline Frame 2 | Symbol 153 as "porter_Front" |
ExportAssets (56) | Timeline Frame 2 | Symbol 154 as "porter_BackSide" |
ExportAssets (56) | Timeline Frame 2 | Symbol 155 as "porter_Back" |
ExportAssets (56) | Timeline Frame 2 | Symbol 156 as "repair" |
ExportAssets (56) | Timeline Frame 2 | Symbol 157 as "porter" |
ExportAssets (56) | Timeline Frame 2 | Symbol 160 as "ShopSym" |
ExportAssets (56) | Timeline Frame 2 | Symbol 161 as "leaves_orange" |
ExportAssets (56) | Timeline Frame 2 | Symbol 162 as "leaves_green" |
ExportAssets (56) | Timeline Frame 2 | Symbol 163 as "tree_left_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 164 as "tree_withering" |
ExportAssets (56) | Timeline Frame 2 | Symbol 165 as "tree_left" |
ExportAssets (56) | Timeline Frame 2 | Symbol 166 as "maid_CleanRoom" |
ExportAssets (56) | Timeline Frame 2 | Symbol 167 as "porter_Repair" |
ExportAssets (56) | Timeline Frame 2 | Symbol 168 as "eng_Stay" |
ExportAssets (56) | Timeline Frame 2 | Symbol 169 as "table_for_eat_u_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 170 as "table_for_eat_u" |
ExportAssets (56) | Timeline Frame 2 | Symbol 171 as "reception_u_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 172 as "reception_u" |
ExportAssets (56) | Timeline Frame 2 | Symbol 173 as "newspaper_u_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 174 as "newspaper_u" |
ExportAssets (56) | Timeline Frame 2 | Symbol 175 as "magazine" |
ExportAssets (56) | Timeline Frame 2 | Symbol 176 as "coffee_u" |
ExportAssets (56) | Timeline Frame 2 | Symbol 177 as "shield" |
ExportAssets (56) | Timeline Frame 2 | Symbol 178 as "armor_u_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 179 as "armor_u" |
ExportAssets (56) | Timeline Frame 2 | Symbol 180 as "arrow_right_p" |
ExportAssets (56) | Timeline Frame 2 | Symbol 181 as "arrow_right_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 182 as "arrow_left_p" |
ExportAssets (56) | Timeline Frame 2 | Symbol 183 as "arrow_left_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 185 as "Leaf" |
ExportAssets (56) | Timeline Frame 2 | Symbol 186 as "CashWindow" |
ExportAssets (56) | Timeline Frame 2 | Symbol 187 as "eng_Sit_Coffee_Drink" |
ExportAssets (56) | Timeline Frame 2 | Symbol 188 as "cash" |
ExportAssets (56) | Timeline Frame 2 | Symbol 196 as "BeginTextSymbolAnim" |
ExportAssets (56) | Timeline Frame 2 | Symbol 197 as "shop_armchair_right" |
ExportAssets (56) | Timeline Frame 2 | Symbol 198 as "eng_Sit_Magazin_Reading" |
ExportAssets (56) | Timeline Frame 2 | Symbol 199 as "dnd" |
ExportAssets (56) | Timeline Frame 2 | Symbol 200 as "eng_Eat" |
ExportAssets (56) | Timeline Frame 2 | Symbol 202 as "MenuItem" |
ExportAssets (56) | Timeline Frame 2 | Symbol 203 as "clients" |
ExportAssets (56) | Timeline Frame 2 | Symbol 204 as "boy_Stay" |
ExportAssets (56) | Timeline Frame 2 | Symbol 205 as "boy_Sit_Magazine_Reading" |
ExportAssets (56) | Timeline Frame 2 | Symbol 206 as "boy_Sit_Coffee_Drink" |
ExportAssets (56) | Timeline Frame 2 | Symbol 207 as "boy_Sit" |
ExportAssets (56) | Timeline Frame 2 | Symbol 208 as "boy_Side" |
ExportAssets (56) | Timeline Frame 2 | Symbol 209 as "boy_norm" |
ExportAssets (56) | Timeline Frame 2 | Symbol 210 as "boy_FrontSide" |
ExportAssets (56) | Timeline Frame 2 | Symbol 211 as "boy_Front" |
ExportAssets (56) | Timeline Frame 2 | Symbol 212 as "boy_Eat" |
ExportAssets (56) | Timeline Frame 2 | Symbol 213 as "boy_BackSide" |
ExportAssets (56) | Timeline Frame 2 | Symbol 214 as "boy_Back" |
ExportAssets (56) | Timeline Frame 2 | Symbol 215 as "closed" |
ExportAssets (56) | Timeline Frame 2 | Symbol 216 as "yellow_center_active" |
ExportAssets (56) | Timeline Frame 2 | Symbol 217 as "yellow_center_normal" |
ExportAssets (56) | Timeline Frame 2 | Symbol 218 as "yellow_left_normal" |
ExportAssets (56) | Timeline Frame 2 | Symbol 219 as "yellow_left_disabled" |
ExportAssets (56) | Timeline Frame 2 | Symbol 220 as "yellow_left_active" |
ExportAssets (56) | Timeline Frame 2 | Symbol 221 as "yellow_center_disabled" |
ExportAssets (56) | Timeline Frame 2 | Symbol 223 as "ClientsWindow" |
ExportAssets (56) | Timeline Frame 2 | Symbol 224 as "back_menu" |
ExportAssets (56) | Timeline Frame 2 | Symbol 227 as "Submenu" |
ExportAssets (56) | Timeline Frame 2 | Symbol 228 as "bar_index" |
ExportAssets (56) | Timeline Frame 2 | Symbol 229 as "bar_full" |
ExportAssets (56) | Timeline Frame 2 | Symbol 230 as "bar_filled" |
ExportAssets (56) | Timeline Frame 2 | Symbol 231 as "jamb_door" |
ExportAssets (56) | Timeline Frame 2 | Symbol 233 as "CashBar" |
ExportAssets (56) | Timeline Frame 2 | Symbol 234 as "sbar_full" |
ExportAssets (56) | Timeline Frame 2 | Symbol 235 as "sbar_empty" |
ExportAssets (56) | Timeline Frame 2 | Symbol 239 as "Money" |
ExportAssets (56) | Timeline Frame 2 | Symbol 242 as "LoadingMenu" |
ExportAssets (56) | Timeline Frame 2 | Symbol 243 as "blacksqr" |
ExportAssets (56) | Timeline Frame 2 | Symbol 244 as "iwateringcan" |
ExportAssets (56) | Timeline Frame 2 | Symbol 245 as "iwaterclean" |
ExportAssets (56) | Timeline Frame 2 | Symbol 246 as "irepair" |
ExportAssets (56) | Timeline Frame 2 | Symbol 247 as "lbar_full" |
ExportAssets (56) | Timeline Frame 2 | Symbol 248 as "lbar_empty" |
ExportAssets (56) | Timeline Frame 2 | Symbol 250 as "shadow" |
ExportAssets (56) | Timeline Frame 2 | Symbol 252 as "mc_shadow" |
ExportAssets (56) | Timeline Frame 2 | Symbol 253 as "but_stroke_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 254 as "windowservice_persona_a" |
ExportAssets (56) | Timeline Frame 2 | Symbol 255 as "eng_Sit_Chair" |
ExportAssets (56) | Timeline Frame 2 | Symbol 256 as "boy_Sit_Chair" |
ExportAssets (56) | Timeline Frame 2 | Symbol 260 as "MoneyText" |
ExportAssets (56) | Timeline Frame 2 | Symbol 263 as "StimulationTextAnim" |
ExportAssets (56) | Timeline Frame 2 | Symbol 269 as "score_table" |
ExportAssets (56) | Timeline Frame 2 | Symbol 270 as "mc_ADS" |
ExportAssets (56) | Timeline Frame 2 | Symbol 271 as "splash3" |
ExportAssets (56) | Timeline Frame 2 | Symbol 272 as "splash2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 274 as "gamemenu_normal" |
ExportAssets (56) | Timeline Frame 2 | Symbol 275 as "gamemenu_active" |
ExportAssets (56) | Timeline Frame 2 | Symbol 276 as "splash1" |
ExportAssets (56) | Timeline Frame 2 | Symbol 278 as "music_menu" |
ExportAssets (56) | Timeline Frame 2 | Symbol 279 as "music1" |
ExportAssets (56) | Timeline Frame 2 | Symbol 280 as "hello_male2" |
ExportAssets (56) | Timeline Frame 2 | Symbol 281 as "broke" |
ExportAssets (56) | Timeline Frame 2 | Symbol 282 as "door_open" |
ExportAssets (56) | Timeline Frame 2 | Symbol 283 as "door_close" |
ExportAssets (56) | Timeline Frame 2 | Symbol 284 as "door_main_bell" |
ExportAssets (56) | Timeline Frame 2 | Symbol 285 as "menu_click" |
ExportAssets (56) | Timeline Frame 2 | Symbol 286 as "goal" |
ExportAssets (56) | Timeline Frame 2 | Symbol 287 as "levelup" |
ExportAssets (56) | Timeline Frame 2 | Symbol 288 as "leveldefeat" |
ExportAssets (56) | Timeline Frame 2 | Symbol 289 as "shop_buy" |
ExportAssets (56) | Timeline Frame 2 | Symbol 290 as "pickup_coffee" |
ExportAssets (56) | Timeline Frame 2 | Symbol 291 as "pickup_key" |
ExportAssets (56) | Timeline Frame 2 | Symbol 292 as "pickup_money" |
ExportAssets (56) | Timeline Frame 2 | Symbol 293 as "service_accepted" |
ExportAssets (56) | Timeline Frame 2 | Symbol 294 as "servant_appear1" |
ExportAssets (56) | Timeline Frame 2 | Symbol 295 as "cleaning" |
ExportAssets (56) | Timeline Frame 2 | Symbol 296 as "call" |
ExportAssets (56) | Timeline Frame 2 | Symbol 297 as "action_newspaper" |
ExportAssets (56) | Timeline Frame 2 | Symbol 298 as "plus" |
ExportAssets (56) | Timeline Frame 2 | Symbol 299 as "minus" |
ExportAssets (56) | Timeline Frame 2 | Symbol 300 as "key_denied" |
ExportAssets (56) | Timeline Frame 2 | Symbol 301 as "action_case" |
ExportAssets (56) | Timeline Frame 2 | Symbol 302 as "action_repair" |
ExportAssets (56) | Timeline Frame 2 | Symbol 303 as "sLoader" |
ExportAssets (56) | Timeline Frame 2 | Symbol 304 as "shop_wall" |
ExportAssets (56) | Timeline Frame 2 | Symbol 305 as "shop_tree" |
ExportAssets (56) | Timeline Frame 2 | Symbol 306 as "shop_table_u" |
ExportAssets (56) | Timeline Frame 2 | Symbol 307 as "shop_table" |
ExportAssets (56) | Timeline Frame 2 | Symbol 308 as "shop_shield" |
ExportAssets (56) | Timeline Frame 2 | Symbol 309 as "shop_reception_u" |
ExportAssets (56) | Timeline Frame 2 | Symbol 310 as "shop_phone_u" |
ExportAssets (56) | Timeline Frame 2 | Symbol 311 as "shop_phone" |
ExportAssets (56) | Timeline Frame 2 | Symbol 312 as "shop_newspaper_u" |
ExportAssets (56) | Timeline Frame 2 | Symbol 313 as "shop_newspaper" |
ExportAssets (56) | Timeline Frame 2 | Symbol 314 as "shop_magazine" |
ExportAssets (56) | Timeline Frame 2 | Symbol 315 as "shop_lamp_u" |
ExportAssets (56) | Timeline Frame 2 | Symbol 316 as "shop_lamp" |
ExportAssets (56) | Timeline Frame 2 | Symbol 317 as "shop_knight_u" |
ExportAssets (56) | Timeline Frame 2 | Symbol 318 as "shop_knight" |
ExportAssets (56) | Timeline Frame 2 | Symbol 319 as "shop_fountain" |
ExportAssets (56) | Timeline Frame 2 | Symbol 320 as "shop_floor" |
ExportAssets (56) | Timeline Frame 2 | Symbol 321 as "shop_coffee_u" |
ExportAssets (56) | Timeline Frame 2 | Symbol 322 as "shop_armor" |
ExportAssets (56) | Timeline Frame 2 | Symbol 323 as "shop_armchair_left" |
ExportAssets (56) | Timeline Frame 2 | Symbol 324 as "shop_arch" |
ExportAssets (56) | Timeline Frame 2 | Symbol 326 as "__Packages.Game" |
ExportAssets (56) | Timeline Frame 2 | Symbol 327 as "__Packages.TextScoreTable" |
ExportAssets (56) | Timeline Frame 2 | Symbol 328 as "__Packages.HumanHelper" |
ExportAssets (56) | Timeline Frame 2 | Symbol 329 as "__Packages.IDrawAble" |
ExportAssets (56) | Timeline Frame 2 | Symbol 330 as "__Packages.IMoveable" |
ExportAssets (56) | Timeline Frame 2 | Symbol 331 as "__Packages.Human" |
ExportAssets (56) | Timeline Frame 2 | Symbol 332 as "__Packages.IMapObject" |
ExportAssets (56) | Timeline Frame 2 | Symbol 333 as "__Packages.IRequestAble" |
ExportAssets (56) | Timeline Frame 2 | Symbol 334 as "__Packages.Room" |
ExportAssets (56) | Timeline Frame 2 | Symbol 335 as "__Packages.custRequest" |
ExportAssets (56) | Timeline Frame 2 | Symbol 336 as "__Packages.Mebel" |
ExportAssets (56) | Timeline Frame 2 | Symbol 337 as "__Packages.Helper" |
ExportAssets (56) | Timeline Frame 2 | Symbol 338 as "__Packages.Tracer" |
ExportAssets (56) | Timeline Frame 2 | Symbol 339 as "__Packages.mx.utils.Delegate" |
ExportAssets (56) | Timeline Frame 2 | Symbol 340 as "__Packages.AnimObject" |
ExportAssets (56) | Timeline Frame 2 | Symbol 341 as "__Packages.AnimStates" |
ExportAssets (56) | Timeline Frame 2 | Symbol 342 as "__Packages.AnimState" |
ExportAssets (56) | Timeline Frame 2 | Symbol 343 as "__Packages.SpriteFactory" |
ExportAssets (56) | Timeline Frame 2 | Symbol 344 as "__Packages.XSprite" |
ExportAssets (56) | Timeline Frame 2 | Symbol 345 as "__Packages.TransitionAnim" |
ExportAssets (56) | Timeline Frame 2 | Symbol 346 as "__Packages.Leaf" |
ExportAssets (56) | Timeline Frame 2 | Symbol 347 as "__Packages.MebelFactory" |
ExportAssets (56) | Timeline Frame 2 | Symbol 348 as "__Packages.Fx" |
ExportAssets (56) | Timeline Frame 2 | Symbol 349 as "__Packages.com.mosesSupposes.fuse.FuseKitCommon" |
ExportAssets (56) | Timeline Frame 2 | Symbol 350 as "__Packages.com.mosesSupposes.fuse.ZigoEngine" |
ExportAssets (56) | Timeline Frame 2 | Symbol 351 as "__Packages.com.mosesSupposes.fuse.ZManager" |
ExportAssets (56) | Timeline Frame 2 | Symbol 352 as "__Packages.mx.transitions.easing.None" |
ExportAssets (56) | Timeline Frame 2 | Symbol 353 as "__Packages.mx.transitions.easing.Regular" |
ExportAssets (56) | Timeline Frame 2 | Symbol 354 as "__Packages.mx.transitions.easing.Elastic" |
ExportAssets (56) | Timeline Frame 2 | Symbol 355 as "__Packages.com.mosesSupposes.fuse.Fuse" |
ExportAssets (56) | Timeline Frame 2 | Symbol 356 as "__Packages.mx.events.EventDispatcher" |
ExportAssets (56) | Timeline Frame 2 | Symbol 357 as "__Packages.com.mosesSupposes.fuse.FuseItem" |
ExportAssets (56) | Timeline Frame 2 | Symbol 358 as "__Packages.GameHelper" |
ExportAssets (56) | Timeline Frame 2 | Symbol 359 as "__Packages.IMenuItemDescriptor" |
ExportAssets (56) | Timeline Frame 2 | Symbol 360 as "__Packages.BtnItemInfo" |
ExportAssets (56) | Timeline Frame 2 | Symbol 361 as "__Packages.Debugger" |
ExportAssets (56) | Timeline Frame 2 | Symbol 362 as "__Packages.TextStyles" |
ExportAssets (56) | Timeline Frame 2 | Symbol 363 as "__Packages.MenuBase" |
ExportAssets (56) | Timeline Frame 2 | Symbol 364 as "__Packages.BtnFactory" |
ExportAssets (56) | Timeline Frame 2 | Symbol 365 as "__Packages.MenuFactory" |
ExportAssets (56) | Timeline Frame 2 | Symbol 366 as "__Packages.Customer" |
ExportAssets (56) | Timeline Frame 2 | Symbol 367 as "__Packages.Map" |
ExportAssets (56) | Timeline Frame 2 | Symbol 368 as "__Packages.Pathfinding" |
ExportAssets (56) | Timeline Frame 2 | Symbol 369 as "__Packages.CmdStack" |
ExportAssets (56) | Timeline Frame 2 | Symbol 370 as "__Packages.RequestsManager" |
ExportAssets (56) | Timeline Frame 2 | Symbol 371 as "__Packages.CmdStackFactory" |
ExportAssets (56) | Timeline Frame 2 | Symbol 372 as "__Packages.Personal" |
ExportAssets (56) | Timeline Frame 2 | Symbol 373 as "__Packages.CashBar" |
ExportAssets (56) | Timeline Frame 2 | Symbol 374 as "__Packages.ServiceWindow" |
ExportAssets (56) | Timeline Frame 2 | Symbol 375 as "__Packages.CashWindow" |
ExportAssets (56) | Timeline Frame 2 | Symbol 376 as "__Packages.ClientsWindow" |
ExportAssets (56) | Timeline Frame 2 | Symbol 377 as "__Packages.XMLFactory" |
ExportAssets (56) | Timeline Frame 2 | Symbol 378 as "__Packages.FactoryAnimObject" |
ExportAssets (56) | Timeline Frame 2 | Symbol 379 as "__Packages.MochiAd" |
ExportAssets (56) | Timeline Frame 2 | Symbol 380 as "__Packages.ShopItem" |
ExportAssets (56) | Timeline Frame 2 | Symbol 381 as "__Packages.ShowingItem" |
ExportAssets (56) | Timeline Frame 2 | Symbol 382 as "__Packages.mc_ADS" |
ExportAssets (56) | Timeline Frame 2 | Symbol 383 as "__Packages.MenuItem" |
ExportAssets (56) | Timeline Frame 2 | Symbol 384 as "__Packages.Hotel" |
ExportAssets (56) | Timeline Frame 2 | Symbol 385 as "__Packages.ShopSym" |
ExportAssets (56) | Timeline Frame 2 | Symbol 386 as "__Packages.Submenu" |
ExportAssets (56) | Timeline Frame 2 | Symbol 387 as "__Packages.LoadingMenu" |
EnableDebugger2 (64) | Timeline Frame 1 | 31 bytes "..$1$8N$dUqZ6osJf1hk.4G2n9n35.." |
DebugMX1 (63) | Timeline Frame 1 |
Labels
"Preloader" | Frame 1 |
"Loading" | Frame 2 |
Dynamic Text Variables
strValue | Symbol 191 EditableText | "R" |
strValue2 | Symbol 194 EditableText | "R" |
strValue3 | Symbol 195 EditableText | "R" |
strValue2 | Symbol 258 EditableText | "R" |
strValue3 | Symbol 259 EditableText | "R" |
strValue | Symbol 261 EditableText | "EXCELLENT" |
strValue2 | Symbol 262 EditableText | "EXCELLENT" |
ranks_text | Symbol 265 EditableText | "1. 2. 3. 4. 5. 6. 7. 8. 9. 10." |
names_text | Symbol 266 EditableText | "Player 1 Player 2 Player 3 Player 4 Player 5 Player 6 Player 7 Player 8 Player 9 Player 10" |
scores_text | Symbol 267 EditableText | "999,999 999,999 999,999 999,999 999,999 999,999 999,999 999,999 999,999 999,999" |
status_text | Symbol 268 EditableText | "Status Text Here" |
|