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

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

ashtons-family-resort.swf

This is the info page for
Flash #121749

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


Text
TextButton1

Upgraded houses increases the rent and gets you 2 stars of prestige for winning the contest

not enough money

580 $

UPGRADE HOUSES dfhjfdjkfdkj

34 /100

0

score:

WELCOME

PLAYER

PLAYER

<p align="center"><font face="Arial Black" size="17" color="#cccccc" letterSpacing="-1.000000" kerning="0">ENTER YOUR NAME</font></p>

<p align="center"><font face="Arial Black" size="17" color="#cccccc" letterSpacing="-1.000000" kerning="0">OPTIONS</font></p>

MUTE

MUSIC VOLUME

SOUND VOLUME

Goals

Level Total

Money Total

0

0

0

NOT BAD

Your Score

0

100

Upgraded houses increases the rent and gets you 2 stars of prestige for winning the contest

not enough money

580 $

UPGRADE HOUSES ghfgj fdjdfjfd fdsjfdsjd

MENU

You did not purchase the recommended thing

LEVEL

1

GOAL

100

LOADING

TIPS

TIPS

TIPS

Are you sure you want to restart?

MENU

You can download full version for free!
You get:
- 4 main parts with 10 levels in each one!
- fascinating mini-games!
- morning/day/evening changing!
- characters in the interface smile or frown depending on your actions!

Upgraded houses increases the rent and gets you 2 stars of prestige for winning the contest

ActionScript [AS1/AS2]

Frame 1
stop(); this.mcProgress.onMouseDown = function () { Helper.MoreGames(); }; _root.onEnterFrame = function () { var swf_loaded = _root.getBytesLoaded(); var swf_total = _root.getBytesTotal(); percs = Math.floor((swf_loaded * 100) / swf_total); this.mcProgress._width = 4.62 * percs; if (percs >= 100) { delete this.mcProgress.onMouseDown; delete _root.onEnterFrame; gotoAndPlay ("MOCHIPRE"); } };
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = "__mochibot__"; mbc = "mochibot.com"; g = (_global ? (_global) : (_level0._root)); if (g[mb + swfid]) { return(g[mb + swfid]); } s = System.security; x = mc._root.getSWFVersion; fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5))); if (!s) { s = {}; } sb = s.sandboxType; if (sb == "localWithFile") { return(null); } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version)); u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : ""); lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv)))); g[mb + "level"] = lv; if (fv == 5) { res = "_level" + lv; if (!eval (res)) { loadMovieNum (u, lv); } } else { res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); } return(res); } __com_mochibot__("28e1b787", this, 10301, true); if (Helper.SHOWMOCHIPRELOADER == true) { MochiAd.showPreGameAd({id:Helper.MOCHIID, res:"640x480"}); }
Frame 4
var aGame = this.attachMovie("Game", "aGame", this.getNextHighestDepth()); aGame.Create(); if (Helper.MOCHISCORES == true) { mochi.MochiServices.connect("26e76e97bd41d333", Game.GAMEINSTANCE); mochi.MochiScores.setBoardID("97cd36e738581860"); } stop();
Symbol 11 MovieClip [TextButton] Frame 1
#initclip 52 Object.registerClass("TextButton", TextButton); #endinitclip
Symbol 16 MovieClip [BuyDlg] Frame 1
#initclip 51 Object.registerClass("BuyDlg", BuyDlg); #endinitclip
Symbol 461 MovieClip [__Packages.Helper] Frame 0
class Helper { function Helper () { } static function getRoot() { var retStr = _root._url; if (retStr.indexOf("file:") != -1) { retStr = "localFile"; } return(retStr); } static function inArray(aVal, array) { for (var key in array) { if (array[key] == aVal) { return(true); } } return(false); } static function GetIt() { getURL (DOWNLOADPATH, "_blank"); } static function MoreGames() { getURL (GOTOPATH, "_blank"); } static var USEMOCHIBOT = true; static var MOCHIARRAY = new Array(1, 3, 5, 7, 9); static var REALOREARRAY = new Array(0, 2, 4, 6, 8, 10); static var INGAMECLICK = true; static var MOCHISCORES = true; static var SHOWMOCHIPRELOADER = true; static var SHOWMOCHIADS = true; static var MOCHIID = "26e76e97bd41d333"; static var GAMEID = "ResortOnline"; static var EXTURL = false; static var EXTLANG = false; static var GOTOPATH = "http://realore.com"; static var DOWNLOADPATH = "http://www.realore.com/games/ashtonsfamilyresort/"; 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; }
Symbol 462 MovieClip [__Packages.BuyDlg] Frame 0
class BuyDlg extends MovieClip { static var MENUINSTANCE; function BuyDlg () { super(); } static function initbtnsObjs() { btnsObjs.TextButton1 = {rcode:"BUY_CLICK", caption:"BUY"}; btnsObjs.TextButton2 = {rcode:"BUY_CANCEL", caption:"CANCEL"}; } function create() { MENUINSTANCE = this; initbtnsObjs(); MenuHelper.processControls(this, btnsObjs); } static var btnsObjs = new Array(); }
Symbol 463 MovieClip [__Packages.MenuHelper] Frame 0
class MenuHelper { function MenuHelper () { } static function detachButtons(MENUINSTANCE) { for (var key in MENUINSTANCE) { if (key.indexOf("TextButton") != -1) { delete MENUINSTANCE[key].onPress; MENUINSTANCE[key].onPress = undefined; delete MENUINSTANCE[key].onRollOver; MENUINSTANCE[key].onRollOver = undefined; delete MENUINSTANCE[key].onRelease; MENUINSTANCE[key].onRollOver = undefined; delete MENUINSTANCE[key].onReleaseOutside; MENUINSTANCE[key].onReleaseOutside = undefined; delete MENUINSTANCE[key].onRollOut; MENUINSTANCE[key].onRollOut = undefined; MENUINSTANCE[key].useHandCursor = false; } } } static function distribControls(distribObj) { var btnsArray = new Array(); for (var key in distribObj.aClip) { if (((key.indexOf("TextButton") != -1) && (distribObj.aClip[key]._visible == true)) && (distribObj.aClip[key]._x == distribObj.firstPos.x)) { btnsArray.push(distribObj.aClip[key]); } } btnsArray.sortOn([_y], [Array.DESCENDING, Array.NUMERIC]); var btnHeight = btnsArray[0]._height; var i = 0; while (i < btnsArray.length) { btnsArray[i]._y = (distribObj.firstPos.y + (i * btnHeight)) + (i * (distribObj.intervalV || 0)); i++; } } static function processControls(aClip, btnsObjs) { for (var key in aClip) { if (key.indexOf("TextButton") != -1) { aClip[key].swapDepths(aClip.getNextHighestDepth()); var xpos = aClip[key]._x; var ypos = aClip[key]._y; var caption = aClip[key].btntext; aClip[key].removeMovieClip(); delete aClip[key]; aClip.attachMovie("TextButton", key, aClip.getNextHighestDepth()); aClip[key]._x = xpos; aClip[key]._y = ypos; btnsObjs[key].parentMenu = aClip; aClip[key].create(btnsObjs[key]); } else if (key.indexOf("TextLabel") != -1) { aClip[key].text = btnsObjs[key].caption; } if (btnsObjs[key].visible == false) { aClip[key]._visible = false; } } } }
Symbol 464 MovieClip [__Packages.TextButton] Frame 0
class TextButton extends MovieClip { var btnCaption_, mctext, btnState_, attachMovie, txtX, txtY, rcode, onRollOver, onRollOut, onReleaseOutside, onPress, onRelease; function TextButton () { super(); } function set btnCaption(aVal) { btnCaption_ = aVal; mctext.btntext = aVal; //return(btnCaption); } function get btnCaption() { return(btnCaption_); } function set btnState(aVal) { if (btnState_ != aVal) { btnState_ = aVal; var btnClip = attachMovie(STATES_DATA[btnState_], "btnSrc", BTNSRCDEPTH); } //return(btnState); } function get btnState() { return(btnState_); } function create(initObj) { mctext.swapDepths(TEXTSRCDEPTH); txtX = mctext._x; txtY = mctext._y; if (initObj.btnState != undefined) { btnState = (initObj.btnState); } else { btnState = (BTN_STATE_NORMAL); } rcode = initObj.rcode; btnCaption = (initObj.caption); onRollOver = function () { this.btnState = TextButton.BTN_STATE_ACTIVE; SoundHelper.soundPlay("menu_toggle"); }; onRollOut = function () { this.btnState = TextButton.BTN_STATE_NORMAL; }; onReleaseOutside = function () { this.mctext._y = this.txtY; this.btnState = TextButton.BTN_STATE_NORMAL; }; onPress = function () { SoundHelper.soundPlay("menu_click"); this.mctext._y = 6; }; onRelease = function () { this.mctext._y = this.txtY; Game.onCommand(this.rcode); }; } static var BTN_STATE_NORMAL = 0; static var BTN_STATE_ACTIVE = 1; static var BTN_STATE_PRESSED = 2; static var BTN_STATE_DISABLED = 3; static var STATES_DATA = new Array("mcBtnYellow", "mcBtnBlue", "mcBtnBlue", "mcBtnYellow"); static var BTNSRCDEPTH = 0; static var TEXTSRCDEPTH = 1; }
Symbol 465 MovieClip [__Packages.SoundHelper] Frame 0
class SoundHelper { function SoundHelper () { } static function musicVolume(aVol) { if (Game.musicOBJ_ != undefined) { Game.musicOBJ_.setVolume(aVol); } } static function musicPlay(aMus, aVolume) { if (Game.musicOBJ_ != undefined) { Game.musicOBJ_.stop(); delete Game.musicOBJ_; } Game.musicOBJ_ = new Sound(Game.musicClip_); Game.musicOBJ_.attachSound(aMus); if (aVolume == undefined) { Game.musicOBJ_.setVolume(OptionsMenu.__get__musicVal()); } else { Game.musicOBJ_.setVolume(aVolume); } Game.musicOBJ_.start(0, 1000); } static function soundPlay(aSnd, times) { if (!OptionsMenu.__get__mute()) { if (times == undefined) { times = 1; } var aSound = new Sound(Game.soundClip_); aSound.attachSound(aSnd); aSound.setVolume(OptionsMenu.__get__soundVal()); aSound.start(0, times); return(aSound); } } static function stopMusic() { Game.musicOBJ_.stop(); delete Game.musicOBJ_; } static var MUSIC_GAME1 = 0; static var musicClipArray = new Array(); static var musicObjArray = new Array(); }
Symbol 466 MovieClip [__Packages.Map] Frame 0
class 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 467 MovieClip [__Packages.Game] Frame 0
class Game extends MovieClip { static var gameState_, TOPODEPTH, GAMEINSTANCE, TOPOCLIP, SHOPCLIP, SHOPMENUCLIP, maxLevelMoney, SCENECLIP, GAMEMENUCLIP, MAINMENUCLIP, RESULTMENUCLIP, PROFILEMENUCLIP, afterScoreVisible, MAPMENUCLIP, OPTIONSCLIP, INSHOPCLIP, INGAMECLIP, DLGBUYCLIP, LOADINGMENUCLIP, SUREDLGCLIP, FINISHCLIP, musicClip_, soundClip_, SCORESMENUCLIP, musicOBJ_; var createEmptyMovieClip, getNextHighestDepth; function Game () { super(); } static function set playerName(aVal) { PLAYERNAME_ = aVal; if (MainMenu.MENUINSTANCE._name != undefined) { MainMenu.MENUINSTANCE.gr1_display.dText.text = aVal; } //return(playerName); } static function get playerName() { return(PLAYERNAME_); } static function get totalMoney() { return(totalMoney_); } static function set totalMoney(aVal) { totalMoney_ = aVal; ShopMenu.MENUINSTANCE.TextLabel1.text = totalMoney_; //return(totalMoney); } static function get levelScore() { return(levelScore_); } static function set levelScore(aVal) { levelScore_ = aVal; //return(levelScore); } static function get totalScore() { return(totalScore_); } static function set totalScore(aVal) { totalScore_ = aVal; GameMenu.MENUINSTANCE.scoresBar.textVal.text = totalScore_; //return(totalScore); } static function get levelMoney() { return(levelMoney_); } static function set levelMoney(aVal) { levelMoney_ = aVal; GameMenu.setLevelMoney(); //return(levelMoney); } static function initGameXMLs() { gameXMLs["coin.xml"] = new XML("<?xml version=\"1.0\" encoding=\"utf-8\"?><COIN frames=\"13\" playtime=\".5\" loops=\"1\" looptype=\"0\" bitmap_=\"coin\" xpos=\"0\" ypos=\"0\" classname=\"SimpleAnim\" startingframe=\"0\" poscorner=\"ra\" mpy=\"0\" />"); } function set gameState(aVal) { gameState_ = aVal; //return(gameState); } function get gameState() { return(gameState_); } static function initMap() { map_.W = (640 / Map.CELL_SIZE) + 1; map_.H = (480 / Map.CELL_SIZE) + 1; map_.X = 0; map_.Y = 0; 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) { map_.map[mY].push(0); mX++; } mY++; } var i = 0; while (i < openedArr.length) { map_.map[openedArr[i].x][openedArr[i].y] = 1; i++; } } static function copyTopo() { var cpd = new Array(); var mY = 0; while (mY < map_.H) { var mX = 0; while (mX < map_.W) { if (map_.map[mY][mX] == 1) { cpd.push(new flash.geom.Point(mY, mX)); } mX++; } mY++; } } static function getTurnAnim(tang) { if ((tang >= -0.5) && (tang <= 0.5)) { return(TURNRIGHT); } if ((tang <= 2.1) && (tang >= 1.5)) { return(TURNFRONT); } if (((tang > 2.7) && (tang <= 3.2)) || ((tang > -3.2) && (tang <= -2.7))) { return(TURNLEFT); } if ((tang >= -1.8) && (tang <= -1.4)) { return(TURNBACK); } if ((tang > 2.1) && (tang < 2.7)) { return(TURNFRONT); } if ((tang < 1.5) && (tang > 0.5)) { return(TURNFRONT); } if ((tang > -2.7) && (tang < -1.8)) { return(TURNBACK); } if ((tang > -1.4) && (tang < -0.5)) { return(TURNBACK); } } static function drawMap() { TOPODEPTH = GAMEINSTANCE.getNextHighestDepth(); TOPOCLIP.removeMovieClip(); delete TOPOCLIP; TOPOCLIP = GAMEINSTANCE.createEmptyMovieClip("topo", TOPODEPTH); TOPOCLIP._alpha = 40; var mY = 0; while (mY < map_.H) { var mX = 0; while (mX < map_.W) { if (map_.map[mY][mX] == 1) { TOPOCLIP.beginFill(16711680); TOPOCLIP.moveTo(mX * Map.CELL_SIZE, mY * Map.CELL_SIZE); TOPOCLIP.lineTo((mX * Map.CELL_SIZE) + Map.CELL_SIZE, mY * Map.CELL_SIZE); TOPOCLIP.lineTo((mX * Map.CELL_SIZE) + Map.CELL_SIZE, (mY * Map.CELL_SIZE) + Map.CELL_SIZE); TOPOCLIP.lineTo(mX * Map.CELL_SIZE, (mY * Map.CELL_SIZE) + Map.CELL_SIZE); TOPOCLIP.lineTo(mX * Map.CELL_SIZE, mY * Map.CELL_SIZE); TOPOCLIP.endFill(); } else { TOPOCLIP.beginFill(65280); TOPOCLIP.moveTo(mX * Map.CELL_SIZE, mY * Map.CELL_SIZE); TOPOCLIP.lineTo((mX * Map.CELL_SIZE) + Map.CELL_SIZE, mY * Map.CELL_SIZE); TOPOCLIP.lineTo((mX * Map.CELL_SIZE) + Map.CELL_SIZE, (mY * Map.CELL_SIZE) + Map.CELL_SIZE); TOPOCLIP.lineTo(mX * Map.CELL_SIZE, (mY * Map.CELL_SIZE) + Map.CELL_SIZE); TOPOCLIP.lineTo(mX * Map.CELL_SIZE, mY * Map.CELL_SIZE); TOPOCLIP.endFill(); } mX++; } mY++; } } static function opencell(xpos, ypos) { var logx = Math.floor(xpos / Map.CELL_SIZE); var logy = Math.floor(ypos / Map.CELL_SIZE); if (map_.map[logy][logx] == 1) { map_.map[logy][logx] = 0; } else { map_.map[logy][logx] = 1; } } static function initShop() { SHOPCLIP = GAMEINSTANCE.attachMovie("Shop", "Shop", GAMEINSTANCE.getNextHighestDepth()); SHOPCLIP.create(); SHOPMENUCLIP = GAMEINSTANCE.attachMovie("ShopMenu", "ShopMenu", GAMEINSTANCE.getNextHighestDepth()); SHOPMENUCLIP.create(); } static function initGame() { maxLevelMoney = 0; levelMoney = (0); levelScore = (0); SCENECLIP = GAMEINSTANCE.attachMovie("Scene", "aScene", GAMEINSTANCE.getNextHighestDepth()); SCENECLIP.Create(); GAMEMENUCLIP = GAMEINSTANCE.attachMovie("GameMenu", "aGamemenu", GAMEINSTANCE.getNextHighestDepth()); GAMEMENUCLIP.create(); for (var key in Shop.LEVELBOUGHT) { com.mosesSupposes.fuse.ZigoEngine.doTween(Scene.GAMESERVICES[key].displayClip_, ["_alpha", "_brightness"], [30, 50], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {cycles:8}); } } static function stopMoving(aObj, nextAction) { var objFuse = com.mosesSupposes.fuse.Fuse.getInstance("Moving Actions " + aObj._name); objFuse.destroy(); delete objFuse; } static function initMainMenu() { MAINMENUCLIP = GAMEINSTANCE.attachMovie("MainMenu", "menuMain", GAMEINSTANCE.getNextHighestDepth()); MAINMENUCLIP.create(); } static function initResultMenu() { if (levelMoney >= maxLevelMoney) { totalMoney = totalMoney + levelMoney; } else { totalScore = totalScore - levelScore; } RESULTMENUCLIP = GAMEINSTANCE.attachMovie("ResultMenu", "ResultMenu", GAMEINSTANCE.getNextHighestDepth()); RESULTMENUCLIP.create(); RESULTMENUCLIP._x = (GAMEINSTANCE._width / 2) - (RESULTMENUCLIP._width / 2); RESULTMENUCLIP._y = (GAMEINSTANCE._height / 2) - (RESULTMENUCLIP._height / 2); if (Helper.MOCHISCORES == true) { mochi.MochiScores.submit(totalScore, playerName); } Scene.fadeScene(); } static function initProfileMenu(activate) { PROFILEMENUCLIP = GAMEINSTANCE.attachMovie("ProfileMenu", "menuProfile", GAMEINSTANCE.getNextHighestDepth()); PROFILEMENUCLIP.create(activate); PROFILEMENUCLIP._x = (GAMEINSTANCE._width / 2) - (PROFILEMENUCLIP._width / 2); PROFILEMENUCLIP._y = (GAMEINSTANCE._height / 2) - (PROFILEMENUCLIP._height / 2); } function initScoresMenu(activate) { afterScoreVisible = MovieClip(activate); activate._visible = false; mochi.MochiScores.showLeaderboard({clip:GAMEINSTANCE, showTableRank:true, preloaderDisplay:true, onClose:function () { Game.GAMEINSTANCE.scoresClosed(); }, onError:function (errorCode) { Game.GAMEINSTANCE.scoresClosed(); }}); } function scoresClosed() { afterScoreVisible._visible = true; MainMenu.showControls(); } static function initMapmenu() { MAPMENUCLIP = GAMEINSTANCE.attachMovie("MapMenu", "menuMap", GAMEINSTANCE.getNextHighestDepth()); MAPMENUCLIP.create(); } static function initOptionsMenu(aprev) { OPTIONSCLIP = GAMEINSTANCE.attachMovie("OptionsMenu", "menuOpt", GAMEINSTANCE.getNextHighestDepth()); OPTIONSCLIP.create(aprev); OPTIONSCLIP._x = 320 - (OPTIONSCLIP._width / 2); OPTIONSCLIP._y = 240 - (OPTIONSCLIP._height / 2); } static function initInShopMenu() { Shop.disableObjects(); ShopMenu.disableButtons(); INSHOPCLIP = GAMEINSTANCE.attachMovie("InShopMenu", "InShopMenu", GAMEINSTANCE.getNextHighestDepth()); INSHOPCLIP.create(); } static function initIngameMenu() { GameMenu.disableMenu(); Scene.SCENEINSTANCE.onPauseLevel(); Scene.SCENEINSTANCE.disableMouse(); INGAMECLIP = GAMEINSTANCE.attachMovie("IngameMenu", "IngameMenu", GAMEINSTANCE.getNextHighestDepth()); INGAMECLIP.create(); } static function initBuyMenu() { Shop.disableObjects(); ShopMenu.disableButtons(); DLGBUYCLIP = GAMEINSTANCE.attachMovie("DlgBuy", "DlgBuy", GAMEINSTANCE.getNextHighestDepth()); DLGBUYCLIP.create(); } static function initLoadingMenuADS() { initLoadingMenu("LOADING_PRESSED_MAP", true); } static function initLoadingMenu(retcode, startMusic) { if (startMusic == true) { SoundHelper.musicPlay("music1"); } retcode = "LOADING_PRESSED_MAP"; var levMoney = 10; for (var key in LevelsHelper.levelsData[CURRLEVEL].objects) { var sname = LevelsHelper.levelsData[CURRLEVEL].objects[key]; if (Scene.SERVICESDATA[sname].taskName != undefined) { levMoney = levMoney + 10; } } levMoney = levMoney * 5; LOADINGMENUCLIP = GAMEINSTANCE.attachMovie("LoadingMenu", "LoadingMenu", GAMEINSTANCE.getNextHighestDepth()); LOADINGMENUCLIP.create(retcode); LOADINGMENUCLIP.TextLabel2.text = CURRLEVEL + 1; LOADINGMENUCLIP.TextLabel4.text = levMoney; } static function initDlgSure(toDisable, rcode) { SUREDLGCLIP = GAMEINSTANCE.attachMovie("DlgSure", "DlgSure", GAMEINSTANCE.getNextHighestDepth()); SUREDLGCLIP.create(toDisable, rcode); } static function initFinishScreen() { FINISHCLIP = GAMEINSTANCE.attachMovie("FinishDlg", "FinishDlg", GAMEINSTANCE.getNextHighestDepth()); FINISHCLIP.create(); } function Create() { musicClip_ = createEmptyMovieClip("musClip", getNextHighestDepth()); soundClip_ = createEmptyMovieClip("sndClip", getNextHighestDepth()); TutorHelper.init(); TipsHelper.initTipsArray(); Scene.initStatic(); initGameXMLs(); GAMEINSTANCE = this; Dict.initDict(); LevelsHelper.initLevelsData(); initMap(); initMainMenu(); SoundHelper.musicPlay("music1"); } static function onCommand(rCode) { switch (rCode) { case "FIN_GETFULL" : case "ING_GETFULL" : case "INS_GETFULL" : case "MAIN_FULL" : Helper.GetIt(); return; case "ING_MOREGAMES" : case "INS_MOREGAMES" : case "MAIN_MOREGAMES" : Helper.MoreGames(); return; case "INS_ABORT" : initDlgSure(INSHOPCLIP, "INS_ABORTGAME"); return; case "INS_RESUME" : Shop.enableObjects(); ShopMenu.enableButtons(); INSHOPCLIP.removeMovieClip(); delete INSHOPCLIP; return; case "MAP_BACK" : MapMenu.MENUINSTANCE.destroy(); initMainMenu(); return; case "SURE_CANCEL" : DlgSure.toDisable._visible = true; SUREDLGCLIP.removeMovieClip(); delete SUREDLGCLIP; return; case "FIN_MENU" : FINISHCLIP.removeMovieClip(); delete FINISHCLIP; Scene.SCENEINSTANCE.destroy(); Scene.SCENEINSTANCE.removeMovieClip(); GameMenu.MENUINSTANCE.removeMovieClip(); LevelsHelper.resetServiceData(); totalMoney = (0); totalScore = (0); CURRLEVEL = 0; initMainMenu(); return; case "SURE_OK" : switch (DlgSure.retCode) { case "RESTARTLEVEL" : totalScore = totalScore - levelScore; DlgSure.toDisable.removeMovieClip(); delete DlgSure.toDisable; SUREDLGCLIP.removeMovieClip(); delete SUREDLGCLIP; Scene.SCENEINSTANCE.destroy(); Scene.SCENEINSTANCE.removeMovieClip(); GameMenu.MENUINSTANCE.removeMovieClip(); initMapmenu(); break; case "ABORTGAME" : DlgSure.toDisable.removeMovieClip(); delete DlgSure.toDisable; SUREDLGCLIP.removeMovieClip(); delete SUREDLGCLIP; Scene.SCENEINSTANCE.destroy(); Scene.SCENEINSTANCE.removeMovieClip(); GameMenu.MENUINSTANCE.removeMovieClip(); LevelsHelper.resetServiceData(); Shop.resetBoughtArray(); for (var key in Shop.LEVELBOUGHT) { delete Shop.LEVELBOUGHT[key]; } totalMoney = (0); totalScore = (0); CURRLEVEL = 0; initMainMenu(); break; case "INS_ABORTGAME" : DlgSure.toDisable.removeMovieClip(); delete DlgSure.toDisable; SUREDLGCLIP.removeMovieClip(); delete SUREDLGCLIP; Shop.SHOPINSTANCE.removeMovieClip(); delete Shop.SHOPINSTANCE; ShopMenu.MENUINSTANCE.removeMovieClip(); delete ShopMenu.MENUINSTANCE; Shop.resetBoughtArray(); for (var key in Shop.LEVELBOUGHT) { delete Shop.LEVELBOUGHT[key]; } LevelsHelper.resetServiceData(); totalMoney = (0); totalScore = (0); CURRLEVEL = 0; initMainMenu(); } return; case "ING_ABORT" : initDlgSure(INGAMECLIP, "ABORTGAME"); return; case "ING_RESTART" : initDlgSure(INGAMECLIP, "RESTARTLEVEL"); return; case "LOADING_PRESSED_MAP" : LOADINGMENUCLIP.removeMovieClip(); delete LOADINGMENUCLIP; initGame(); Scene.attachHero(Hero.HERO_MAN); Scene.attachHero(Hero.HERO_WOMAN); Scene.carEnter(Customers.COLOR_RED); return; case "LOADING_PRESSED_SHOP" : return; case "SCORES_OK" : if (SCORESMENUCLIP.toActivate instanceof MainMenu) { MainMenu.showControls(); } SCORESMENUCLIP.removeMovieClip(); delete SCORESMENUCLIP; return; case "MAIN_SCORES" : GAMEINSTANCE.initScoresMenu(MAINMENUCLIP); MainMenu.hideControls(); return; case "DLGBUY_OK" : SoundHelper.soundPlay("buy"); Shop.enableObjects(); ShopMenu.enableButtons(); DLGBUYCLIP.removeMovieClip(); delete DLGBUYCLIP; return; case "ING_RESUME" : INGAMECLIP.removeMovieClip(); delete INGAMECLIP; Scene.SCENEINSTANCE.onResumeLevel(); Scene.SCENEINSTANCE.enableMouse(); GameMenu.enableMenu(); return; case "GAMEMENU_MENU" : initIngameMenu(); return; case "SHOP_MENU" : initInShopMenu(); return; case "MAIN_PLAY" : MainMenu.detachButtons(); MainMenu.MENUINSTANCE.removeMovieClip(); delete MainMenu.MENUINSTANCE; initMapmenu(); return; case "MAIN_CHANGE" : MainMenu.hideControls(); initProfileMenu(MainMenu); return; case "CHANGE_OK" : ProfileMenu.MENUINSTANCE.toActivate.showControls(); var inputtext = trimText(ProfileMenu.MENUINSTANCE.EditText1.text); if ((inputtext == "") || (inputtext == undefined)) { inputtext = "Player"; } playerName = (inputtext); ProfileMenu.MENUINSTANCE.removeMovieClip(); return; case "OPTIONS_OK" : MainMenu.showControls(); InShopMenu.MENUINSTANCE._visible = true; IngameMenu.MENUINSTANCE._visible = true; OPTIONSCLIP.removeMovieClip(); delete OPTIONSCLIP; return; case "ING_OPTIONS" : IngameMenu.MENUINSTANCE._visible = false; initOptionsMenu(IngameMenu.MENUINSTANCE); return; case "INS_OPTIONS" : InShopMenu.MENUINSTANCE._visible = false; initOptionsMenu(InShopMenu.MENUINSTANCE); return; case "MAIN_OPTIONS" : MainMenu.hideControls(); initOptionsMenu(); return; case "SHOP_PLAY" : var bought = false; for (var key in Shop.LEVELBOUGHT) { bought = true; break; } if ((bought == true) || (maxLevelMoney > levelMoney)) { Shop.SHOPINSTANCE.removeMovieClip(); delete Shop.SHOPINSTANCE; ShopMenu.MENUINSTANCE.removeMovieClip(); delete ShopMenu.MENUINSTANCE; var boughtObjs = new Array(); for (var key in Shop.LEVELBOUGHT) { boughtObjs.push(key); } LevelsHelper.appendBoughtItems(CURRLEVEL, boughtObjs); if (Helper.inArray(CURRLEVEL, Helper.MOCHIARRAY)) { if (Helper.SHOWMOCHIADS == true) { musicOBJ_.stop(); MochiAd.showInterLevelAd({id:Helper.MOCHIID, res:"640x480", ad_finished:initLoadingMenuADS}); } else { initLoadingMenu("LOADING_PRESSED_MAP"); } } else if (Helper.inArray(CURRLEVEL, Helper.REALOREARRAY)) { mc_ADS.showIngameAds(GAMEINSTANCE, initLoadingMenu, Game, undefined, undefined, undefined); } else { initLoadingMenu("LOADING_PRESSED_MAP"); } } else { initBuyMenu(); } return; case "MAP_PLAY" : MapMenu.MENUINSTANCE.destroy(); if (CURRLEVEL >= 12) { initFinishScreen(); } else if (CURRLEVEL > 0) { initShop(); Shop.hideSelections(); Shop.initObjects(); Shop.enableObjects(); Shop.hideArrows(); Shop.initStars(); } else { initLoadingMenu("LOADING_PRESSED_MAP"); } return; case "RESULT_OK" : Scene.SCENEINSTANCE.destroy(); Scene.SCENEINSTANCE.removeMovieClip(); ResultMenu.MENUINSTANCE.removeMovieClip(); GameMenu.MENUINSTANCE.removeMovieClip(); if (levelMoney >= maxLevelMoney) { CURRLEVEL++; LevelsHelper.copyPrevData(CURRLEVEL); } initMapmenu(); return; case "BUY_CANCEL" : Shop.SHOPINSTANCE.BuyDlg.removeMovieClip(); delete Shop.SHOPINSTANCE.BuyDlg; Shop.SHOPINSTANCE.tovar1.removeMovieClip(); delete Shop.SHOPINSTANCE.tovar1; Shop.SHOPINSTANCE.signNo.removeMovieClip(); delete Shop.SHOPINSTANCE.signNo; ShopMenu.enableButtons(); Shop.enableObjects(); return; case "BUY_CLICK" : Shop.buyTovar(); } } static function trimText(stroka) { while ((stroka.charAt(0) == " ") && (stroka.length > 1)) { stroka = stroka.substr(1, stroka.length - 1); } while ((stroka.charAt(stroka.length - 1) == " ") && (stroka.length > 1)) { stroka = stroka.substr(0, stroka.length - 1); } if (stroka == " ") { stroka = " "; } return(stroka); } static function CreateTrailToPoint(parentmc, fly_from, fly_to, head_mc_name, trail_mc_name, money) { var d = parentmc.getNextHighestDepth(); var head_mc = Scene.SCENEINSTANCE.attachMovie("SimpleAnim", "aCoin" + Scene.SCENEINSTANCE.getNextHighestDepth(), Scene.SCENEINSTANCE.getNextHighestDepth()); head_mc.createByXML(gameXMLs["coin.xml"], GAMEINSTANCE); head_mc.xPos_ = fly_from.x; head_mc.yPos_ = fly_from.y; head_mc.setPosition(fly_from.x, fly_from.y); head_mc.playCycle(); head_mc.direct = Math.atan2(ANIM_TRAIL_START_DIRECT_Y, ANIM_TRAIL_START_DIRECT_X); head_mc._x = fly_from.x; head_mc.yPos_ = 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.xPos_ = fly_to.x; this.yPos_ = fly_to.y; this.finish_phase = 2; } else if (this.finish_phase == 2) { this.finish_phase = 3; Game.moneyLeftCount_++; if (Game.moneyLeft_._name == undefined) { Game.moneyLeft_ = this; Game.moneyLeft_.onPress = function () { Game.levelMoney = Game.levelMoney + (10 * Game.moneyLeftCount_); Game.moneyLeftCount_ = 0; Game.startCoins(Game.moneyLeft_._x + (Game.moneyLeft_._width / 2), Game.moneyLeft_._y); Game.moneyLeft_.removeMovieClip(); delete Game.moneyLeft_; }; } else { MovieClip(this).removeMovieClip(); this = undefined; } } return(undefined); } var targ_ang = Math.atan2(this.fly_to.y - this.yPos_, this.fly_to.x - this.xPos); 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 * Game.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.xPos_) * (this.fly_to.x - this.xPos_)) + ((this.fly_to.y - this.yPos_) * (this.fly_to.y - this.yPos_))); 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 * Game.ANIM_TRAIL_ANGLE_CHANGE_COEFF_FOR_SPEED))) / (Math.PI*2)); var fly_length = ((speed2 * dtime) / 1000); this.xPos_ = this.xPos_ + (Math.cos(this.direct) * fly_length); this.yPos_ = this.yPos_ + (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 > Game.ANIM_TRAIL_TRAIL_EACH_DISTANCE) { this.trail_distance = this.trail_distance - Game.ANIM_TRAIL_TRAIL_EACH_DISTANCE; var td = MovieClip(this)._parent.getNextHighestDepth(); var tmc = MovieClip(this)._parent.attachMovie(this.trail_mc_name, this.trail_mc_name + td, td); var tmc = Scene.SCENEINSTANCE.attachMovie(Game.gameXMLs["coin.xml"].firstChild.attributes.classname, "aCoinn" + td, Scene.SCENEINSTANCE.getNextHighestDepth()); tmc.createByXML(Game.gameXMLs["coin.xml"], Game.GAMEINSTANCE); tmc.xPos_ = this.xPos_ - (Math.cos(this.direct) * Game.ANIM_TRAIL_TRAIL_DIST_DELAY); tmc.yPos_ = this.yPos_ - (Math.sin(this.direct) * Game.ANIM_TRAIL_TRAIL_DIST_DELAY); tmc.setPosition(tmc.xPos_, tmc.yPos_); tmc.playCycle(); tmc.xPos_ = this.xPos_ - (Math.cos(this.direct) * Game.ANIM_TRAIL_TRAIL_DIST_DELAY); tmc.yPos_ = this.yPos_ - (Math.sin(this.direct) * Game.ANIM_TRAIL_TRAIL_DIST_DELAY); var trail_to_x = (tmc.xPos_ + (Math.cos(this.direct) * fly_length)); var trail_to_y = (tmc.yPos_ + (Math.sin(this.direct) * fly_length)); com.mosesSupposes.fuse.ZigoEngine.doTween(tmc, "_alpha,xPos_,yPos_", [0, trail_to_x, trail_to_y], Game.ANIM_TRAIL_TRAIL_LIFE_TIME, com.mosesSupposes.fuse.PennerEasing.easeInQuad, 0, {scope:Game, func:"RemoveMeCallback", args:tmc}); } var targ_dist2 = Math.sqrt(((this.fly_to.x - this.xPos_) * (this.fly_to.x - this.xPos_)) + ((this.fly_to.y - this.yPos_) * (this.fly_to.y - this.yPos_))); if (((targ_dist2 > targ_dist1) && (targ_dist2 < (fly_length * 2.5))) || (this.ang_change_summ > 30)) { this.finish_phase = 1; } }; } static function RemoveMeCallback(mc) { mc.removeMovieClip(); mc = undefined; } static function coinDone(aCoin) { com.mosesSupposes.fuse.ZigoEngine.removeTween(aCoin); aCoin.removeMovieClip(); delete aCoin; } static function removeGift(aClip) { aClip.removeMovieClip(); delete aClip; } static function giftDowned(aClip) { aClip.mcShadow._visible = true; aClip.swapDepths(Number(Scene.DEPTHSARRAY[aClip._name])); com.mosesSupposes.fuse.ZigoEngine.doTween(aClip, ["_alpha"], [20], 10, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:Game, func:"removeGift", args:aClip}); } static function startCoins(x, y) { var i = 0; while (i < 10) { var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.label = "coin" + i; aFuse.autoClear = true; aFuse.scope = Game; aFuse.push({func:"miniCoinStart", args:[i, x, y, aFuse], delay:Math.random() / 2}); aFuse.start(); i++; } } static function startHearts(x, y) { var i = 0; while (i < 10) { var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.label = "heart" + i; aFuse.autoClear = true; aFuse.scope = CCloud; aFuse.push({func:"startHeart", args:[i, x, y, aFuse], delay:Math.random() / 2}); aFuse.start(); i++; } } static function miniCoinStart(aNum, aX, aY, fuse) { fuse.destroy(); delete fuse; var aVal = Scene.SCENEINSTANCE.attachMovie("SimpleAnim", "aCoinnn" + Scene.SCENEINSTANCE.getNextHighestDepth(), Scene.SCENEINSTANCE.getNextHighestDepth()); aVal.createByXML(gameXMLs["coin.xml"], GAMEINSTANCE); aVal.xPos_ = aX; aVal.yPos_ = aY; aVal.setPosition(aX, aY); var offset = (Math.random() * 9); com.mosesSupposes.fuse.ZigoEngine.doTween(aVal, "_y", [aVal._y - 60], 1 + Math.random(), com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:CCloud, func:"fadeOutHeart", args:aVal}); if (Math.random() > 0.5) { CCloud.sineLeft(aVal, offset); } else { CCloud.sineRight(aVal, offset); } } static function startGift(startPoint, endPoint) { if (endPoint == undefined) { endPoint = new flash.geom.Point(500, 10); } var aGift = Scene.SCENEINSTANCE.attachMovie("mcGift", "mcGift" + Claus.giftCount, Scene.SCENEINSTANCE.getNextHighestDepth()); aGift._x = startPoint.x; aGift._y = startPoint.y; aGift.mcShadow._visible = false; aGift.onPress = function () { Game.levelMoney = Game.levelMoney + 2; Game.startHearts(aGift._x, aGift._y); aGift.removeMovieClip(); delete aGift; }; if (Math.abs(startPoint.x - endPoint.x) > Math.abs(startPoint.y - endPoint.y)) { com.mosesSupposes.fuse.ZigoEngine.doTween(aGift, "_bezier_", {x:String(endPoint.x - startPoint.x), y:String(endPoint.y - startPoint.y), controlY:"-150"}, flash.geom.Point.distance(startPoint, endPoint) / 130, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:Game, func:"giftDowned", args:aGift}); } else { com.mosesSupposes.fuse.ZigoEngine.doTween(aGift, "_bezier_", {x:String(endPoint.x - startPoint.x), y:String(endPoint.y - startPoint.y), controlX:"-150"}, flash.geom.Point.distance(startPoint, endPoint) / 130, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:Game, func:"giftDowned", args:aGift}); } } static function startCoin(startPoint, endPoint) { if (startPoint == undefined) { startPoint = new flash.geom.Point(320, 450); } if (endPoint == undefined) { endPoint = new flash.geom.Point(500, 10); } CreateTrailToPoint(Scene.SCENEINSTANCE, startPoint, endPoint, "head_mc_name", "trail_mc_name", 10); } static var moneyLeftCount_ = 0; static var PLAYERNAME_ = "Player"; static var totalMoney_ = 0; static var levelScore_ = 0; static var totalScore_ = 0; static var levelMoney_ = 0; static var MAXLEVELNUM = 10; static var CURRLEVEL = 0; static var TURNRIGHT = 0; static var TURNFRONT = 1; static var TURNLEFT = 2; static var TURNBACK = 3; static var gameXMLs = new Array(); static var transparent_ = new flash.geom.ColorTransform(0, 0, 0, 0, 0, 0, 0, 0); static var openedArr = new Array(new flash.geom.Point(6, 13), new flash.geom.Point(6, 14), new flash.geom.Point(6, 15), new flash.geom.Point(6, 16), new flash.geom.Point(6, 17), new flash.geom.Point(6, 18), new flash.geom.Point(7, 8), new flash.geom.Point(7, 9), new flash.geom.Point(7, 10), new flash.geom.Point(7, 11), new flash.geom.Point(7, 12), new flash.geom.Point(7, 13), new flash.geom.Point(7, 14), new flash.geom.Point(7, 15), new flash.geom.Point(7, 16), new flash.geom.Point(7, 17), new flash.geom.Point(7, 18), new flash.geom.Point(7, 19), new flash.geom.Point(7, 20), new flash.geom.Point(7, 21), new flash.geom.Point(7, 22), new flash.geom.Point(7, 23), new flash.geom.Point(8, 3), new flash.geom.Point(8, 4), new flash.geom.Point(8, 7), new flash.geom.Point(8, 8), new flash.geom.Point(8, 9), new flash.geom.Point(8, 22), new flash.geom.Point(8, 23), new flash.geom.Point(8, 24), new flash.geom.Point(9, 3), new flash.geom.Point(9, 4), new flash.geom.Point(9, 5), new flash.geom.Point(9, 6), new flash.geom.Point(9, 7), new flash.geom.Point(9, 8), new flash.geom.Point(9, 24), new flash.geom.Point(9, 25), new flash.geom.Point(9, 28), new flash.geom.Point(10, 5), new flash.geom.Point(10, 6), new flash.geom.Point(10, 25), new flash.geom.Point(10, 26), new flash.geom.Point(10, 27), new flash.geom.Point(10, 28), new flash.geom.Point(11, 5), new flash.geom.Point(11, 6), new flash.geom.Point(11, 26), new flash.geom.Point(11, 27), new flash.geom.Point(11, 28), new flash.geom.Point(11, 29), new flash.geom.Point(11, 30), new flash.geom.Point(12, 5), new flash.geom.Point(12, 25), new flash.geom.Point(12, 26), new flash.geom.Point(12, 27), new flash.geom.Point(12, 28), new flash.geom.Point(12, 29), new flash.geom.Point(12, 30), new flash.geom.Point(13, 5), new flash.geom.Point(13, 6), new flash.geom.Point(13, 7), new flash.geom.Point(13, 26), new flash.geom.Point(14, 2), new flash.geom.Point(14, 3), new flash.geom.Point(14, 4), new flash.geom.Point(14, 5), new flash.geom.Point(14, 26), new flash.geom.Point(15, 2), new flash.geom.Point(15, 3), new flash.geom.Point(15, 4), new flash.geom.Point(15, 5), new flash.geom.Point(15, 25), new flash.geom.Point(15, 26), new flash.geom.Point(16, 4), new flash.geom.Point(16, 5), new flash.geom.Point(16, 6), new flash.geom.Point(16, 25), new flash.geom.Point(16, 26), new flash.geom.Point(17, 6), new flash.geom.Point(17, 7), new flash.geom.Point(17, 25), new flash.geom.Point(17, 26), new flash.geom.Point(18, 6), new flash.geom.Point(18, 7), new flash.geom.Point(18, 8), new flash.geom.Point(18, 13), new flash.geom.Point(18, 14), new flash.geom.Point(18, 15), new flash.geom.Point(18, 16), new flash.geom.Point(18, 17), new flash.geom.Point(18, 23), new flash.geom.Point(18, 24), new flash.geom.Point(18, 25), new flash.geom.Point(18, 26), new flash.geom.Point(18, 27), new flash.geom.Point(19, 8), new flash.geom.Point(19, 9), new flash.geom.Point(19, 10), new flash.geom.Point(19, 15), new flash.geom.Point(19, 21), new flash.geom.Point(19, 22), new flash.geom.Point(19, 23), new flash.geom.Point(20, 10), new flash.geom.Point(20, 11), new flash.geom.Point(20, 12), new flash.geom.Point(20, 13), new flash.geom.Point(20, 14), new flash.geom.Point(20, 15), new flash.geom.Point(20, 16), new flash.geom.Point(20, 17), new flash.geom.Point(20, 18), new flash.geom.Point(20, 19), new flash.geom.Point(20, 20), new flash.geom.Point(20, 21), new flash.geom.Point(21, 17), new flash.geom.Point(18, 18), new flash.geom.Point(18, 19), new flash.geom.Point(17, 19), new flash.geom.Point(16, 19), new flash.geom.Point(15, 19), new flash.geom.Point(14, 19), new flash.geom.Point(14, 18)); static var map_ = new Map(); static var ANIM_TRAIL_START_DIRECT_X = 2; static var ANIM_TRAIL_START_DIRECT_Y = -20; static var ANIM_TRAIL_START_SPEED = 450; static var ANIM_TRAIL_TRAIL_EACH_DISTANCE = 25; static var ANIM_TRAIL_TRAIL_DIST_DELAY = 25; static var ANIM_TRAIL_TRAIL_LIFE_TIME = 0.8; static var ANIM_TRAIL_ANGLE_CHANGE_COEFF = 0.14; static var ANIM_TRAIL_ANGLE_CHANGE_COEFF_FOR_SPEED = 1; }
Symbol 468 MovieClip [__Packages.MainMenu] Frame 0
class MainMenu extends MovieClip { static var MENUINSTANCE; var gr1_display; function MainMenu () { super(); } static function initbtnsObjs() { btnsObjs.TextButton1 = {rcode:"MAIN_PLAY", caption:"PLAY"}; btnsObjs.TextButton2 = {rcode:"MAIN_OPTIONS", caption:"OPTIONS"}; btnsObjs.TextButton3 = {rcode:"MAIN_SCORES", caption:"SCORES", visible:true}; btnsObjs.TextButton4 = {rcode:"MAIN_MOREGAMES", caption:"MORE GAMES"}; btnsObjs.TextButton5 = {rcode:"MAIN_FULL", caption:"GET FULL"}; btnsObjs.gr1TextButton7 = {rcode:"MAIN_CHANGE", caption:"Change Player", visible:true}; } static function detachButtons() { MenuHelper.detachButtons(MENUINSTANCE); } static function showControls() { for (var key in MENUINSTANCE) { if (btnsObjs[MENUINSTANCE[key]._name].visible != false) { MENUINSTANCE[key]._visible = true; } } } static function hideControls() { for (var key in MENUINSTANCE) { MENUINSTANCE[key]._visible = false; } } function create() { MENUINSTANCE = this; initbtnsObjs(); MenuHelper.processControls(this, btnsObjs); MenuHelper.distribControls({aClip:this, firstPos:new flash.geom.Point(467, 84), intervalV:5}); gr1_display.dText.text = Game.playerName; } static var btnsObjs = new Array(); }
Symbol 469 MovieClip [__Packages.ShopMenu] Frame 0
class ShopMenu extends MovieClip { static var MENUINSTANCE; var TextButton2, getNextHighestDepth, TextButton1, TextButton3, TextLabel1; function ShopMenu () { super(); } static function disableButtons() { delete MENUINSTANCE.mcHitMenu.onRollOver; delete MENUINSTANCE.mcHitPlayGame.onRollOver; delete MENUINSTANCE.mcHitMenu.onRollOut; delete MENUINSTANCE.mcHitPlayGame.onRollOut; delete MENUINSTANCE.mcHitMenu.onPress; delete MENUINSTANCE.mcHitPlayGame.onPress; } static function enableButtons() { MENUINSTANCE.mcHitMenu.onRollOver = function () { this._parent.TextButton1._visible = true; }; MENUINSTANCE.mcHitMenu.onRollOut = function () { this._parent.TextButton1._visible = false; }; MENUINSTANCE.mcHitMenu.onPress = function () { Game.onCommand("SHOP_MENU"); }; MENUINSTANCE.mcHitPlayGame.onRollOver = function () { this._parent.TextButton3._visible = true; }; MENUINSTANCE.mcHitPlayGame.onRollOut = function () { this._parent.TextButton3._visible = false; }; MENUINSTANCE.mcHitPlayGame.onPress = function () { Game.onCommand("SHOP_PLAY"); }; } function create() { MENUINSTANCE = this; TextButton2.swapDepths(getNextHighestDepth()); TextButton1.swapDepths(getNextHighestDepth()); TextButton3.swapDepths(getNextHighestDepth()); TextButton1._visible = false; TextButton3._visible = false; TextLabel1.text = Game.totalMoney; enableButtons(); } }
Symbol 470 MovieClip [__Packages.GameMenu] Frame 0
class GameMenu extends MovieClip { static var MENUINSTANCE; var TextButton2, getNextHighestDepth, TextButton1, mcMore; function GameMenu () { super(); } static function setLevelMoney() { MENUINSTANCE.moneyBar.textVal.text = (Game.__get__levelMoney() + "/") + Game.maxLevelMoney; MENUINSTANCE.scoresBar.textVal.text = Game.totalScore; } static function disableMenu() { MENUINSTANCE.mcHit.onRollOut(); MENUINSTANCE.mcMore.onRollOut(); delete MENUINSTANCE.mcHit.onRollOver; delete MENUINSTANCE.mcHit.onRollOut; delete MENUINSTANCE.mcHit.onPress; delete MENUINSTANCE.mcMore.onRollOut; delete MENUINSTANCE.mcMore.onRollOver; delete MENUINSTANCE.mcMore.onPress; } static function enableMenu() { MENUINSTANCE.mcHit.onRollOver = function () { this._parent.TextButton1._visible = true; }; MENUINSTANCE.mcHit.onRollOut = function () { this._parent.TextButton1._visible = false; }; MENUINSTANCE.mcHit.onPress = function () { Game.onCommand("GAMEMENU_MENU"); }; MENUINSTANCE.mcMore.onRollOver = function () { GameMenu.MENUINSTANCE.mcMore.active._visible = true; }; MENUINSTANCE.mcMore.onRollOut = function () { GameMenu.MENUINSTANCE.mcMore.active._visible = false; }; MENUINSTANCE.mcMore.onPress = function () { Helper.MoreGames(); }; } function create() { MENUINSTANCE = this; setLevelMoney(); TextButton2.swapDepths(getNextHighestDepth()); TextButton1.swapDepths(getNextHighestDepth()); TextButton1._visible = false; mcMore.active._visible = false; enableMenu(); } static var MAXBARWIDTH = 138; }
Symbol 471 MovieClip [__Packages.Shop] Frame 0
class Shop extends MovieClip { static var SHOPINSTANCE; function Shop () { super(); } function destroy() { } static function initPriceArray() { PRICEARRAY.MulledWine = 450; PRICEARRAY.Rink02 = 450; PRICEARRAY.Road01 = 400; PRICEARRAY.Ski = 400; PRICEARRAY.Star = 350; PRICEARRAY.Kitchen = 350; PRICEARRAY.Rocket01 = 300; PRICEARRAY.House_Illumination1 = 300; PRICEARRAY.House_Illumination2 = 300; PRICEARRAY.House_Illumination3 = 300; PRICEARRAY.House_Illumination4 = 300; PRICEARRAY.House_Illumination5 = 300; PRICEARRAY.Snowboard = 250; PRICEARRAY.Spruse01 = 250; PRICEARRAY.Rink01 = 200; } static function initObjectAdditions() { } static function initObjectChains() { OBJECTSCHAINS.Rink01 = new Array(); OBJECTSCHAINS.Rink01.Rink02 = "last"; OBJECTSCHAINS.Spruse01 = new Array(); OBJECTSCHAINS.Spruse01.Star = "last"; } static function initObjects() { for (var key in SHOPINSTANCE) { if (OBJECTSCHAINS[SHOPINSTANCE[key]._name] != undefined) { if (BOUGHTARRAY[SHOPINSTANCE[key]._name] == undefined) { if (OBJECTSCHAINS[SHOPINSTANCE[key]._name] != "last") { for (var sub1 in OBJECTSCHAINS[SHOPINSTANCE[key]._name]) { SHOPINSTANCE[sub1]._visible = false; if (OBJECTSCHAINS[SHOPINSTANCE[key]._name][sub1] != "last") { for (var sub2 in OBJECTSCHAINS[SHOPINSTANCE[key]._name][sub1]) { SHOPINSTANCE[sub2]._visible = false; } } } } } } } if (BOUGHTARRAY.Rink01 == undefined) { SHOPINSTANCE.Skates._visible = false; } else { SHOPINSTANCE.Skates._visible = true; } } function create() { SHOPINSTANCE = this; initObjectChains(); initPriceArray(); for (var key in LEVELBOUGHT) { delete LEVELBOUGHT[key]; } } static function resetBoughtArray() { for (var key in BOUGHTARRAY) { delete BOUGHTARRAY[key]; } } static function buyTovar() { if (SHOPINSTANCE.BuyDlg.tovar._name.indexOf("Illumination") != -1) { Game.__set__totalMoney(Game.__get__totalMoney() - Number(PRICEARRAY.House_Illumination1)); BOUGHTARRAY.House_Illumination1 = true; BOUGHTARRAY.House_Illumination2 = true; BOUGHTARRAY.House_Illumination3 = true; BOUGHTARRAY.House_Illumination4 = true; BOUGHTARRAY.House_Illumination5 = true; LEVELBOUGHT.House_Illumination1 = true; LEVELBOUGHT.House_Illumination2 = true; LEVELBOUGHT.House_Illumination3 = true; LEVELBOUGHT.House_Illumination4 = true; LEVELBOUGHT.House_Illumination5 = true; } else { BOUGHTARRAY[SHOPINSTANCE.BuyDlg.tovar._name] = true; LEVELBOUGHT[SHOPINSTANCE.BuyDlg.tovar._name] = true; Game.__set__totalMoney(Game.__get__totalMoney() - Number(PRICEARRAY[SHOPINSTANCE.BuyDlg.tovar._name])); } initStars(); Game.onCommand("BUY_CANCEL"); } static function buyDlgShow(tovar) { SHOPINSTANCE.attachMovie("BuyDlg", "BuyDlg", SHOPINSTANCE.getNextHighestDepth()); SHOPINSTANCE.BuyDlg._x = 320 - (SHOPINSTANCE.BuyDlg._width / 2); SHOPINSTANCE.BuyDlg._y = 240 - (SHOPINSTANCE.BuyDlg._height / 2); SHOPINSTANCE.BuyDlg.create(); SHOPINSTANCE.BuyDlg.tovar = tovar; duplicateMovieClip (tovar, "tovar1", SHOPINSTANCE.getNextHighestDepth()); if (tovar._name == "Road01") { SHOPINSTANCE.tovar1._xscale = 25; SHOPINSTANCE.tovar1._yscale = 25; } for (var key in SHOPINSTANCE.tovar1) { SHOPINSTANCE.tovar1[key].swapDepths(SHOPINSTANCE.tovar1.getNextHighestDepth()); SHOPINSTANCE.tovar1[key].removeMovieClip(); delete SHOPINSTANCE.tovar1[key]; } SHOPINSTANCE.tovar1._y = (SHOPINSTANCE.BuyDlg._y + (SHOPINSTANCE.BuyDlg._height / 2)) - (SHOPINSTANCE.tovar1._height / 2); SHOPINSTANCE.tovar1._x = ((SHOPINSTANCE.BuyDlg._x + (SHOPINSTANCE.BuyDlg._width / 2)) + (SHOPINSTANCE.BuyDlg._width / 4)) - (SHOPINSTANCE.tovar1._width / 2); if (PRICEARRAY[tovar._name] > Game.__get__totalMoney()) { SHOPINSTANCE.BuyDlg.txtMoneytext.visible = true; SHOPINSTANCE.BuyDlg.txtMoneytext.text = Dict.transl("NOT_ENOUGH_MONEY"); SHOPINSTANCE.attachMovie("signNo", "signNo", SHOPINSTANCE.getNextHighestDepth()); SHOPINSTANCE.signNo._x = (SHOPINSTANCE.tovar1._x + (SHOPINSTANCE.tovar1._width / 2)) - (SHOPINSTANCE.signNo._width / 2); SHOPINSTANCE.signNo._y = (SHOPINSTANCE.tovar1._y + (SHOPINSTANCE.tovar1._height / 2)) - (SHOPINSTANCE.signNo._height / 2); SHOPINSTANCE.BuyDlg.TextButton1._visible = false; } else { SHOPINSTANCE.BuyDlg.txtMoneytext._visible = false; SHOPINSTANCE.BuyDlg.TextButton1._visible = true; } SHOPINSTANCE.BuyDlg.txtMoneySum.text = "$" + PRICEARRAY[tovar._name]; SHOPINSTANCE.BuyDlg.txtMoneytext.text = Dict.transl("NOT_ENOUGH_MONEY"); switch (tovar._name) { case "Road01" : SHOPINSTANCE.BuyDlg.txtOperate.text = Dict.transl("UPGRADE_PATHS"); SHOPINSTANCE.BuyDlg.txtHint.text = Dict.transl("UPGRADE_PATHS_HINT"); return; case "House_Illumination1" : case "House_Illumination2" : case "House_Illumination3" : case "House_Illumination4" : case "House_Illumination5" : SHOPINSTANCE.BuyDlg.txtOperate.text = Dict.transl("UPGRADE_HOUSES"); SHOPINSTANCE.BuyDlg.txtHint.text = Dict.transl("UPGRADE_HOUSES_HINT"); return; case "Spruse00" : case "Spruse01" : case "Star" : SHOPINSTANCE.BuyDlg.txtOperate.text = Dict.transl("UPGRADE_TREE"); SHOPINSTANCE.BuyDlg.txtHint.text = Dict.transl("UPGRADE_TREE_HINT"); return; case "Rink01" : SHOPINSTANCE.BuyDlg.txtOperate.text = Dict.transl("BUY_RINK"); SHOPINSTANCE.BuyDlg.txtHint.text = Dict.transl("BUY_SKATING_HINT"); return; case "Rink02" : SHOPINSTANCE.BuyDlg.txtOperate.text = Dict.transl("UPGRADE_RINK"); SHOPINSTANCE.BuyDlg.txtHint.text = Dict.transl("UPGRADE_RINK_HINT"); return; case "MulledWine" : SHOPINSTANCE.BuyDlg.txtOperate.text = Dict.transl("BUY_MULEDWINE"); SHOPINSTANCE.BuyDlg.txtHint.text = Dict.transl("BUY_MULEDWINE_HINT"); return; case "Rocket01" : SHOPINSTANCE.BuyDlg.txtOperate.text = Dict.transl("BUY_FIREWORK"); SHOPINSTANCE.BuyDlg.txtHint.text = Dict.transl("BUY_FIREWORK_HINT"); return; case "Snowboard" : SHOPINSTANCE.BuyDlg.txtOperate.text = Dict.transl("BUY_SNOWBOARD"); SHOPINSTANCE.BuyDlg.txtHint.text = Dict.transl("BUY_SNOWBOARD_HINT"); return; case "Ski" : SHOPINSTANCE.BuyDlg.txtOperate.text = Dict.transl("BUY_SKI"); SHOPINSTANCE.BuyDlg.txtHint.text = Dict.transl("BUY_SKI_HINT"); return; case "Kitchen" : SHOPINSTANCE.BuyDlg.txtOperate.text = Dict.transl("BUY_KITCHEN"); SHOPINSTANCE.BuyDlg.txtHint.text = Dict.transl("BUY_KITCHEN_HINT"); } } static function hintDlgShow(tovar) { SHOPINSTANCE.attachMovie("PriceBack", "PriceBack", SHOPINSTANCE.getNextHighestDepth()); SHOPINSTANCE.PriceBack.txtMoneySum.text = "$" + PRICEARRAY[tovar._name]; if (PRICEARRAY[tovar._name] > Game.__get__totalMoney()) { SHOPINSTANCE.PriceBack.txtMoneytext.visible = true; SHOPINSTANCE.PriceBack.txtMoneytext.text = Dict.transl("NOT_ENOUGH_MONEY"); } else { SHOPINSTANCE.PriceBack.txtMoneytext._visible = false; } switch (tovar._name) { case "Road01" : SHOPINSTANCE.PriceBack._x = 70; SHOPINSTANCE.PriceBack._y = 200; SHOPINSTANCE.PriceBack.txtOperate.text = Dict.transl("UPGRADE_PATHS"); SHOPINSTANCE.PriceBack.txtHint.text = Dict.transl("UPGRADE_PATHS_HINT"); break; case "House_Illumination1" : case "House_Illumination2" : case "House_Illumination3" : case "House_Illumination4" : case "House_Illumination5" : SHOPINSTANCE.PriceBack._x = 220; SHOPINSTANCE.PriceBack._y = 200; SHOPINSTANCE.PriceBack.txtOperate.text = Dict.transl("UPGRADE_HOUSES"); SHOPINSTANCE.PriceBack.txtHint.text = Dict.transl("UPGRADE_HOUSES_HINT"); break; case "Spruse00" : case "Spruse01" : case "Star" : SHOPINSTANCE.PriceBack._x = 220; SHOPINSTANCE.PriceBack._y = 250; SHOPINSTANCE.PriceBack.txtOperate.text = Dict.transl("UPGRADE_TREE"); SHOPINSTANCE.PriceBack.txtHint.text = Dict.transl("UPGRADE_TREE_HINT"); break; case "Rink01" : SHOPINSTANCE.PriceBack._x = 220; SHOPINSTANCE.PriceBack._y = 80; SHOPINSTANCE.PriceBack.txtOperate.text = Dict.transl("BUY_RINK"); SHOPINSTANCE.PriceBack.txtHint.text = Dict.transl("BUY_SKATING_HINT"); break; case "Rink02" : SHOPINSTANCE.PriceBack._x = 220; SHOPINSTANCE.PriceBack._y = 80; SHOPINSTANCE.PriceBack.txtOperate.text = Dict.transl("UPGRADE_RINK"); SHOPINSTANCE.PriceBack.txtHint.text = Dict.transl("UPGRADE_RINK_HINT"); break; case "MulledWine" : SHOPINSTANCE.PriceBack._x = 70; SHOPINSTANCE.PriceBack._y = 200; SHOPINSTANCE.PriceBack.txtOperate.text = Dict.transl("BUY_MULEDWINE"); SHOPINSTANCE.PriceBack.txtHint.text = Dict.transl("BUY_MULEDWINE_HINT"); break; case "Rocket01" : SHOPINSTANCE.PriceBack._x = 110; SHOPINSTANCE.PriceBack._y = 190; SHOPINSTANCE.PriceBack.txtOperate.text = Dict.transl("BUY_FIREWORK"); SHOPINSTANCE.PriceBack.txtHint.text = Dict.transl("BUY_FIREWORK_HINT"); break; case "Snowboard" : SHOPINSTANCE.PriceBack._x = 140; SHOPINSTANCE.PriceBack._y = 220; SHOPINSTANCE.PriceBack.txtOperate.text = Dict.transl("BUY_SNOWBOARD"); SHOPINSTANCE.PriceBack.txtHint.text = Dict.transl("BUY_SNOWBOARD_HINT"); break; case "Ski" : SHOPINSTANCE.PriceBack._x = 250; SHOPINSTANCE.PriceBack._y = 220; SHOPINSTANCE.PriceBack.txtOperate.text = Dict.transl("BUY_SKI"); SHOPINSTANCE.PriceBack.txtHint.text = Dict.transl("BUY_SKI_HINT"); break; case "Kitchen" : SHOPINSTANCE.PriceBack._x = 350; SHOPINSTANCE.PriceBack._y = 170; SHOPINSTANCE.PriceBack.txtOperate.text = Dict.transl("BUY_KITCHEN"); SHOPINSTANCE.PriceBack.txtHint.text = Dict.transl("BUY_KITCHEN_HINT"); } SHOPINSTANCE.PriceBack._alpha = 10; com.mosesSupposes.fuse.ZigoEngine.doTween(SHOPINSTANCE.PriceBack, ["_alpha"], [100], 0.4, com.mosesSupposes.fuse.PennerEasing.linear, 0); } static function boughtDlgHide(tovar) { SHOPINSTANCE.PriceBack.removeMovieClip(); delete SHOPINSTANCE.PriceBack; } static function disableObjects() { for (var key in SHOPINSTANCE) { delete SHOPINSTANCE[key].onRollOver; delete SHOPINSTANCE[key].onRollOut; delete SHOPINSTANCE[key].onPress; } } static function enableObjects() { for (var key in SHOPINSTANCE) { if (BOUGHTARRAY[SHOPINSTANCE[key]._name] == undefined) { for (var subs in SHOPINSTANCE[key]) { if (SHOPINSTANCE[key][subs]._name == "selection") { SHOPINSTANCE[key].onRollOver = function () { this.selection._visible = true; Shop.hintDlgShow(this); }; SHOPINSTANCE[key].onRollOut = function () { this.selection._visible = false; Shop.boughtDlgHide(this); }; SHOPINSTANCE[key].onPress = function () { this.onRollOut(); Shop.disableObjects(); ShopMenu.disableButtons(); Shop.boughtDlgHide(this); Shop.buyDlgShow(this); }; break; } } } else { delete SHOPINSTANCE[key].onRollOver; delete SHOPINSTANCE[key].onRollOut; delete SHOPINSTANCE[key].onPress; } } } static function stopAnimatingStar(mc_source) { mc_source.newstarup.removeMovieClip(); delete mc_source.newstarup; mc_source.newstar1.removeMovieClip(); delete mc_source.newstar1; mc_source.newstar2.removeMovieClip(); delete mc_source.newstar2; mc_source.newstar3.removeMovieClip(); delete mc_source.newstar3; } static function animateStar(mc_source) { mc_source.newstarup = mc_source.duplicateMovieClip("newMc0", 500); mc_source.newstar1 = mc_source.duplicateMovieClip("newMc1", 400); mc_source.newstar2 = mc_source.duplicateMovieClip("newMc2", 410); mc_source.newstar3 = mc_source.duplicateMovieClip("newMc3", 420); com.mosesSupposes.fuse.ZigoEngine.doTween(mc_source.newstar1, ["_width", "_height", "_x", "_y", "_alpha"], [mc_source.newstar1._width + 20, mc_source.newstar1._height + 20, mc_source.newstar1._x - 10, mc_source.newstar1._y - 10, 30], 0.8, com.mosesSupposes.fuse.PennerEasing.linear, 0, {cycles:"LOOP"}); com.mosesSupposes.fuse.ZigoEngine.doTween(mc_source.newstar2, ["_width", "_height", "_x", "_y", "_alpha"], [mc_source.newstar2._width + 20, mc_source.newstar2._height + 20, mc_source.newstar2._x - 10, mc_source.newstar2._y - 10, 30], 0.8, com.mosesSupposes.fuse.PennerEasing.linear, 0.2, {cycles:"LOOP"}); com.mosesSupposes.fuse.ZigoEngine.doTween(mc_source.newstar3, ["_width", "_height", "_x", "_y", "_alpha"], [mc_source.newstar3._width + 20, mc_source.newstar3._height + 20, mc_source.newstar3._x - 10, mc_source.newstar3._y - 10, 30], 0.8, com.mosesSupposes.fuse.PennerEasing.linear, 0.4, {cycles:"LOOP"}); } static function initStars() { for (var key in SHOPINSTANCE) { if (BOUGHTARRAY[SHOPINSTANCE[key]._name] == undefined) { for (var subs in SHOPINSTANCE[key]) { if ((SHOPINSTANCE[key][subs]._name == "selection") || (SHOPINSTANCE[key].ar_red != undefined)) { if (SHOPINSTANCE[key]._name != undefined) { if (PRICEARRAY[SHOPINSTANCE[key]._name] > Game.__get__totalMoney()) { SHOPINSTANCE[key].star_red._visible = false; stopAnimatingStar(SHOPINSTANCE[key].star_red); SHOPINSTANCE[key].star_bw._visible = true; SHOPINSTANCE[key].ar_red._visible = false; SHOPINSTANCE[key].ar_bw._visible = true; stopAnimatingStar(SHOPINSTANCE[key].ar_red); } else if (PRICEARRAY[SHOPINSTANCE[key]._name] <= Game.__get__totalMoney()) { SHOPINSTANCE[key].star_bw._visible = false; SHOPINSTANCE[key].star_red._visible = true; SHOPINSTANCE[key].ar_bw._visible = false; SHOPINSTANCE[key].ar_red._visible = true; if (SHOPINSTANCE[key].star_red != undefined) { animateStar(SHOPINSTANCE[key].star_red); } if (SHOPINSTANCE[key].ar_red != undefined) { animateStar(SHOPINSTANCE[key].ar_red); } } break; } } } if (SHOPINSTANCE[key]._name == "Road01") { SHOPINSTANCE[key].ar_red.onRollOver = function () { this.selection._visible = true; Shop.hintDlgShow(this._parent); }; SHOPINSTANCE[key].ar_red.onRollOut = function () { this.selection._visible = false; Shop.boughtDlgHide(this._parent); }; SHOPINSTANCE[key].ar_red.onPress = function () { this.onRollOut(); Shop.disableObjects(); ShopMenu.disableButtons(); Shop.boughtDlgHide(this._parent); Shop.buyDlgShow(this._parent); }; } } else { stopAnimatingStar(SHOPINSTANCE[key].star_red); stopAnimatingStar(SHOPINSTANCE[key].ar_red); SHOPINSTANCE[key].star_red._visible = false; SHOPINSTANCE[key].star_bw._visible = false; SHOPINSTANCE[key].ar_red._visible = false; SHOPINSTANCE[key].ar_bw._visible = false; } } } static function hideArrows() { for (var key in SHOPINSTANCE) { for (var subs in SHOPINSTANCE[key]) { if (SHOPINSTANCE[key][subs]._name == "ar_red") { SHOPINSTANCE[key][subs]._visible = false; } else if (SHOPINSTANCE[key][subs]._name == "ar_bw") { SHOPINSTANCE[key][subs]._visible = false; } else if (SHOPINSTANCE[key][subs]._name == "star_red") { SHOPINSTANCE[key][subs]._visible = false; } else if (SHOPINSTANCE[key][subs]._name == "star_bw") { SHOPINSTANCE[key][subs]._visible = false; } } } } static function hideSelections() { for (var key in SHOPINSTANCE) { for (var subs in SHOPINSTANCE[key]) { if (SHOPINSTANCE[key][subs]._name == "selection") { SHOPINSTANCE[key][subs]._visible = false; } } } } static function traceIt() { for (var key in SHOPINSTANCE) { for (var subs in SHOPINSTANCE[key]) { } } } static var PRICEARRAY = new Array(); static var BOUGHTARRAY = new Array(); static var LEVELBOUGHT = new Array(); static var OBJECTSCHAINS = new Array(); static var OBJECTADDITIONS = new Array(); }
Symbol 472 MovieClip [__Packages.Dict] Frame 0
class Dict { function Dict () { } static function transl(aText) { return(dict_[aText]); } static function initDict() { dict_.UPGRADE_TREE = "UPGRADE A CRISTMAS-TREE"; dict_.UPGRADE_HOUSES = "UPGRADE HOUSES"; dict_.BUY_FIREWORK = "PURCHASE A FIREWORK"; dict_.UPGRADE_PATHS = "UPGRADE PATHS"; dict_.BUY_SKI = "FIT OUT A SKI TRACK"; dict_.UPGRADE_RINK = "UPGRADE THE SKATING RINK"; dict_.BUY_RINK = "PURCHASE THE SKATING RINK"; dict_.BUY_SNOWBOARD = "PURCHASE SNOWBOARDS"; dict_.BUY_MULEDWINE = "PURCHASE A MULLED WINE PRODUCTION"; dict_.BUY_KITCHEN = "BUILD A KITCHEN"; dict_.BUY_SKATING = "BUILD A SKATING RINK"; dict_.UPGRADE_PATHS_HINT = "Well-groomed paths will make the master move faster."; dict_.BUY_SKATING_HINT = "The skating rink is excellent entertainment for guests. It gets you extra tips."; dict_.UPGRADE_HOUSES_HINT = "Upgraded houses increases the rent and gets you extra scores"; dict_.UPGRADE_TREE_HINT = "The christmas-tree will get guests into festive mood and will give extra scores"; dict_.NOT_ENOUGH_MONEY = "not enough money!"; dict_.UPGRADE_RINK_HINT = "The upgraded skating rink will give extra scores"; dict_.BUY_MULEDWINE_HINT = "The guests order some tasty and flavoured mulled wine right to their houses."; dict_.BUY_FIREWORK_HINT = "fireworks will get you more tips."; dict_.BUY_SNOWBOARD_HINT = "Snowboards as a supplemental service will help you make more tips."; dict_.BUY_SKI_HINT = "The ski-track as a supplemental service will help you make more tips."; dict_.BUY_KITCHEN_HINT = "A kitchen will offer the guests an additional service. It will let you earn more money."; dict_.TUT_PICK = "These are the clients. They want to settle down in the camping. Click this family."; dict_.TUT_HOUSE = "Now click the house to settle the family there."; dict_.TUT_WOODS = "The family asks for some firewood to stoke a fireplace. Click the firewood, then click the house to bring the firewood there"; dict_.TUT_HAT = "The family needs some decoration for a snowman. Click the icon."; dict_.TUT_MOP = "The family is asking to clean up the house. Click the \u00ABCleaning\u00BB button. Then click the house with the demand to clean it up."; dict_.TUT_GIVEHAT = "Click the request space to fulfil it."; dict_.MENU_TIPS = "TIPS"; dict_.TIP_CLEANING_HEADER = "CLEANING"; dict_.TIP_CLEANING_TEXT = "Customer asks to clean the room. Click on 'Cleaning' button"; dict_.TIP_MULLED_HEADER = "MULLED WINE"; dict_.TIP_MULLED_TEXT = "The guests order some tasty and flavoured mulled wine right to their houses."; dict_.TIP_FOOD_HEADER = "FOOD"; dict_.TIP_FOOD_TEXT = "The guests order some food from the kitchen right to their houses."; dict_.DLG_SURERESTART = "Are you sure you want to restart level?"; dict_.DLG_SUREREABORT = "Are you sure you want to abort game?"; dict_.FINISH_TEXT = "You can download full version for free!\nYou get:\n- 4 main parts with 10 levels in each one!\n- fascinating mini-games!\n- morning/day/evening changing!\n- characters in the interface smile or frown depending on your actions!\n- you can create your own unique design by choosing colours and furniture you like!"; } static var dict_ = new Array(); }
Symbol 473 MovieClip [__Packages.com.mosesSupposes.fuse.FuseKitCommon] Frame 0
class 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.4 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 474 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine] Frame 0
class 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 475 MovieClip [__Packages.com.mosesSupposes.fuse.ZManager] Frame 0
class 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 { t.fmp.setFilterProp(targ, prop, tta[0]); } } 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 476 MovieClip [__Packages.com.mosesSupposes.fuse.PennerEasing] Frame 0
class com.mosesSupposes.fuse.PennerEasing { function PennerEasing () { } static function linear(t, b, c, d) { return(((c * t) / d) + b); } static function easeInQuad(t, b, c, d) { return(((c * ((t = t / d))) * t) + b); } static function easeOutQuad(t, b, c, d) { return((((-c) * ((t = t / d))) * (t - 2)) + b); } static function easeInOutQuad(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 function easeInExpo(t, b, c, d) { return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b))); } static function easeOutExpo(t, b, c, d) { return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b))); } static function easeInOutExpo(t, b, c, d) { if (t == 0) { return(b); } if (t == d) { return(b + c); } if (((t = t / (d / 2))) < 1) { return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b); } return(((c / 2) * ((-Math.pow(2, -10 * (--t))) + 2)) + b); } static function easeOutInExpo(t, b, c, d) { if (t == 0) { return(b); } if (t == d) { return(b + c); } if (((t = t / (d / 2))) < 1) { return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b); } return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b); } static function easeInElastic(t, b, c, d, a, p) { var s; 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; s = p / 4; } else { 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 easeOutElastic(t, b, c, d, a, p) { var s; 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; s = p / 4; } else { 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 easeInOutElastic(t, b, c, d, a, p) { var s; 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; s = p / 4; } else { 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 function easeOutInElastic(t, b, c, d, a, p) { var s; 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; s = p / 4; } else { s = (p / (Math.PI*2)) * Math.asin(c / a); } if (t < 1) { return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - s) * (Math.PI*2)) / p))) + (c / 2)) + b); } return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - s) * (Math.PI*2)) / p)))) + b); } static function easeInBack(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } return((((c * ((t = t / d))) * t) * (((s + 1) * t) - s)) + b); } static function easeOutBack(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } return((c * (((((t = (t / d) - 1)) * t) * (((s + 1) * t) + s)) + 1)) + b); } static function easeInOutBack(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } if (((t = t / (d / 2))) < 1) { return(((c / 2) * ((t * t) * (((((s = s * 1.525)) + 1) * t) - s))) + b); } return(((c / 2) * (((((t = t - 2)) * t) * (((((s = s * 1.525)) + 1) * t) + s)) + 2)) + b); } static function easeOutInBack(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } if (((t = t / (d / 2))) < 1) { return(((c / 2) * ((((--t) * t) * (((((s = s * 1.525)) + 1) * t) + s)) + 1)) + b); } return(((c / 2) * ((((--t) * t) * (((((s = s * 1.525)) + 1) * t) - s)) + 1)) + b); } static function easeOutBounce(t, b, c, d) { if (((t = t / d)) < 0.363636363636364) { return((c * ((7.5625 * t) * t)) + b); } if (t < 0.727272727272727) { return((c * (((7.5625 * ((t = t - 0.545454545454545))) * t) + 0.75)) + b); } if (t < 0.909090909090909) { return((c * (((7.5625 * ((t = t - 0.818181818181818))) * t) + 0.9375)) + b); } return((c * (((7.5625 * ((t = t - 0.954545454545455))) * t) + 0.984375)) + b); } static function easeInBounce(t, b, c, d) { return((c - easeOutBounce(d - t, 0, c, d)) + b); } static function easeInOutBounce(t, b, c, d) { if (t < (d / 2)) { return((easeInBounce(t * 2, 0, c, d) * 0.5) + b); } return(((easeOutBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b); } static function easeOutInBounce(t, b, c, d) { if (t < (d / 2)) { return((easeOutBounce(t * 2, 0, c, d) * 0.5) + b); } return(((easeInBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b); } static function easeInCubic(t, b, c, d) { return((((c * ((t = t / d))) * t) * t) + b); } static function easeOutCubic(t, b, c, d) { return((c * (((((t = (t / d) - 1)) * t) * t) + 1)) + b); } static function easeInOutCubic(t, b, c, d) { if (((t = t / (d / 2))) < 1) { return(((((c / 2) * t) * t) * t) + b); } return(((c / 2) * (((((t = t - 2)) * t) * t) + 2)) + b); } static function easeOutInCubic(t, b, c, d) { t = t / (d / 2); return(((c / 2) * ((((--t) * t) * t) + 1)) + b); } static function easeInQuart(t, b, c, d) { return(((((c * ((t = t / d))) * t) * t) * t) + b); } static function easeOutQuart(t, b, c, d) { return(((-c) * ((((((t = (t / d) - 1)) * t) * t) * t) - 1)) + b); } static function easeInOutQuart(t, b, c, d) { if (((t = t / (d / 2))) < 1) { return((((((c / 2) * t) * t) * t) * t) + b); } return((((-c) / 2) * ((((((t = t - 2)) * t) * t) * t) - 2)) + b); } static function easeOutInQuart(t, b, c, d) { if (((t = t / (d / 2))) < 1) { return((((-c) / 2) * (((((--t) * t) * t) * t) - 1)) + b); } return(((c / 2) * (((((--t) * t) * t) * t) + 1)) + b); } static function easeInQuint(t, b, c, d) { return((((((c * ((t = t / d))) * t) * t) * t) * t) + b); } static function easeOutQuint(t, b, c, d) { return((c * (((((((t = (t / d) - 1)) * t) * t) * t) * t) + 1)) + b); } static function easeInOutQuint(t, b, c, d) { if (((t = t / (d / 2))) < 1) { return(((((((c / 2) * t) * t) * t) * t) * t) + b); } return(((c / 2) * (((((((t = t - 2)) * t) * t) * t) * t) + 2)) + b); } static function easeOutInQuint(t, b, c, d) { t = t / (d / 2); return(((c / 2) * ((((((--t) * t) * t) * t) * t) + 1)) + b); } static function easeInSine(t, b, c, d) { return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b); } static function easeOutSine(t, b, c, d) { return((c * Math.sin((t / d) * (Math.PI/2))) + b); } static function easeInOutSine(t, b, c, d) { return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b); } static function easeOutInSine(t, b, c, d) { if (((t = t / (d / 2))) < 1) { return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b); } return((((-c) / 2) * (Math.cos((Math.PI * (--t)) / 2) - 2)) + b); } static function easeInCirc(t, b, c, d) { return(((-c) * (Math.sqrt(1 - (((t = t / d)) * t)) - 1)) + b); } static function easeOutCirc(t, b, c, d) { return((c * Math.sqrt(1 - (((t = (t / d) - 1)) * t))) + b); } static function easeInOutCirc(t, b, c, d) { if (((t = t / (d / 2))) < 1) { return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b); } return(((c / 2) * (Math.sqrt(1 - (((t = t - 2)) * t)) + 1)) + b); } static function easeOutInCirc(t, b, c, d) { if (((t = t / (d / 2))) < 1) { return(((c / 2) * Math.sqrt(1 - ((--t) * t))) + b); } return(((c / 2) * (2 - Math.sqrt(1 - ((--t) * t)))) + b); } static var registryKey = "pennerEasing"; }
Symbol 477 MovieClip [__Packages.Scene] Frame 0
class Scene extends MovieClip { static var SCENEINSTANCE, PICKEDCUSTOMER, firstChecked, SELECTEDPOPUPBTN, LASTCAR; var getDepth, onMouseMove, onMouseDown; function Scene () { super(); } static function initButtonsPoses() { addButtonsPoses[Hero.HERO_WOMAN] = new Array(); addButtonsPoses[Hero.HERO_MAN] = new Array(); addButtonsPoses[Hero.HERO_WOMAN].SLOT1 = new flash.geom.Point(520, UPPOPBUTTONY); addButtonsPoses[Hero.HERO_WOMAN].SLOT2 = new flash.geom.Point(480, UPPOPBUTTONY); addButtonsPoses[Hero.HERO_WOMAN].SLOT3 = new flash.geom.Point(440, UPPOPBUTTONY); addButtonsPoses[Hero.HERO_MAN].SLOT1 = new flash.geom.Point(95, UPPOPBUTTONY); addButtonsPoses[Hero.HERO_MAN].SLOT2 = new flash.geom.Point(124, UPPOPBUTTONY); addButtonsPoses[Hero.HERO_MAN].SLOT3 = new flash.geom.Point(152, UPPOPBUTTONY); } static function initTasksdata() { TASKSDATA.FOOD = new Object({carrys:"Dish_Food", cloudSign:"Sign_Mini_Food", btnAdd:"Sign_Carry_Mop", executor:Hero.HERO_WOMAN, firstObj:"Kitchen"}); TASKSDATA.GLEENTWINE = new Object({carrys:"Dish_Wine", cloudSign:"Sign_Mini_Gleentwine", btnAdd:"Sign_Mini_Gleentwine", executor:Hero.HERO_WOMAN, firstObj:"MulledWine"}); TASKSDATA.MOP = new Object({carrys:"Sign_Carry_Mop", cloudSign:"Sign_Mini_Mop", btnAdd:"Sign_Carry_Mop", executor:Hero.HERO_WOMAN, firstObj:"MOP"}); TASKSDATA.WOODS = new Object({carrys:"Sign_Carry_Woods", cloudSign:"Sign_Mini_Woods", executor:Hero.HERO_MAN, firstObj:"WOODS"}); TASKSDATA.HAT = new Object({carrys:"Sign_Carry_Hat", cloudSign:"Sign_Mini_Hat", firstObj:"HAT", executor:Hero.HERO_MAN, herox:524, heroy:273}); TASKSDATA.PLACE = new Object({cloudSign:"Sign_Mini_House"}); TASKSDATA.Ski = new Object({carrys:"Sign_Carry_Ski", cloudSign:"Sign_Mini_Ski", firstObj:"Ski", executor:Hero.HERO_MAN, herox:524, heroy:283}); TASKSDATA.Skates = new Object({carrys:"Sign_Carry_Skates", cloudSign:"Sign_Mini_Skates", firstObj:"Skates", executor:Hero.HERO_MAN, herox:366, heroy:291}); TASKSDATA.Snowboard = new Object({carrys:"Sign_Carry_Snowboard", cloudSign:"Sign_Mini_Snowboard", firstObj:"Snowboard", executor:Hero.HERO_MAN, herox:97, heroy:299}); TASKSDATA.Rocket01 = new Object({carrys:"Sign_Carry_Rocket", cloudSign:"Sign_Mini_Rocket", firstObj:"Rocket01", executor:Hero.HERO_MAN, herox:137, heroy:270}); TASKSDATA.Rocket02 = new Object({cloudSign:"Sign_Mini_Rocket01"}); TASKSDATA.Snowboard_Broken = new Object({carrys:"Sign_Mini_Repair", cloudSign:"Sign_Mini_Repair", btnAdd:"Sign_Mini_Repair", executor:Hero.HERO_MAN, firstObj:"MOP"}); } static function initColors() { } static function initBrokeData() { BROKEDATA.Snowboard_Broken = {repared:"Snowboard", checkx:10, checky:10, herox:223, heroy:411, xpos:230, ypos:400, bitmap:"Snowboard_Broken", interact:true, selClip:{bitmap:"Snowboard_Broken_sel", xpos:-3, ypos:-3}, cloud:{bitmap:"Cloud", xpos:0, ypos:-40, animHOffset:0, cloudType:1}}; } static function initServicesData() { SERVICESDATA.Road00 = {xpos:0, ypos:80, bitmap:"Roads00"}; SERVICESDATA.Road01 = {xpos:0, ypos:80, bitmap:"Roads01", addsvelocity:50}; SERVICESDATA.MOP = {herox:82, heroy:182, xpos:-25, ypos:85, bitmap:"Building_Masters", taskName:"MOP"}; SERVICESDATA.HOUSE1 = {herox:170, heroy:156, xpos:65, ypos:40, bitmap:"House00", flipHor:false, interact:true, selClip:{bitmap:"House00_sel", flipHor:false, xpos:-3, ypos:-3}, cloud:{bitmap:"Cloud", flipHor:false, xpos:40, ypos:20, animHOffset:0, cloudType:1}}; SERVICESDATA.House_Illumination1 = {xpos:105, ypos:75, bitmap:"House_Illumination", flipHor:false, addsscore:1}; SERVICESDATA.HOUSE2 = {herox:271, heroy:126, xpos:170, ypos:10, bitmap:"House00", flipHor:false, interact:true, selClip:{bitmap:"House00_sel", flipHor:false, xpos:-3, ypos:-3}, cloud:{bitmap:"Cloud", flipHor:false, xpos:40, ypos:20, animHOffset:0, cloudType:1}}; SERVICESDATA.House_Illumination2 = {xpos:215, ypos:45, bitmap:"House_Illumination", flipHor:false, addsscore:1}; SERVICESDATA.HOUSE3 = {herox:367, heroy:127, xpos:320, ypos:10, bitmap:"House00", flipHor:true, interact:true, selClip:{bitmap:"House00_sel", flipHor:true, xpos:-3, ypos:-3}, cloud:{bitmap:"Cloud", flipHor:true, xpos:40, ypos:20, animHOffset:4, cloudType:-1}}; SERVICESDATA.House_Illumination3 = {xpos:320, ypos:45, bitmap:"House_Illumination", flipHor:true, addsscore:1}; SERVICESDATA.HOUSE4 = {herox:470, heroy:152, xpos:425, ypos:40, bitmap:"House00", flipHor:true, interact:true, selClip:{bitmap:"House00_sel", flipHor:true, xpos:-3, ypos:-3}, cloud:{bitmap:"Cloud", flipHor:true, xpos:40, ypos:20, animHOffset:4, cloudType:-1}}; SERVICESDATA.House_Illumination4 = {xpos:422, ypos:75, bitmap:"House_Illumination", flipHor:true}; SERVICESDATA.HOUSE5 = {herox:569, heroy:196, xpos:530, ypos:90, bitmap:"House00", flipHor:true, interact:true, selClip:{bitmap:"House00_sel", flipHor:true, xpos:-3, ypos:-3}, cloud:{bitmap:"Cloud", flipHor:true, xpos:40, ypos:20, animHOffset:4, cloudType:-1}}; SERVICESDATA.House_Illumination5 = {xpos:530, ypos:128, bitmap:"House_Illumination", flipHor:true, addsscore:1}; SERVICESDATA.PLACE = {cloud:{bitmap:"Cloud_Round", xpos:0, ypos:-110, animHOffset:0, cloudType:0}}; SERVICESDATA.Skates = {herox:349, heroy:432, checkx:10, checky:10, xpos:290, ypos:415, bitmap:"Skates", interact:true, selClip:{bitmap:"Skates_sel", xpos:-3, ypos:-3}, taskName:"Skates", unique:true, cloud:{bitmap:"Cloud", xpos:0, ypos:-120, animHOffset:0, cloudType:1}}; SERVICESDATA.HAT = {herox:206, heroy:412, xpos:160, ypos:390, bitmap:"Cilinder", interact:true, selClip:{bitmap:"Cilinder_sel", xpos:-1, ypos:-3}, taskName:"HAT", unique:true, cloud:{bitmap:"Cloud", xpos:0, ypos:-120, animHOffset:0, cloudType:1}}; SERVICESDATA.WOODS = {herox:469, heroy:389, xpos:460, ypos:370, bitmap:"Firewood", flipHor:true, interact:true, selClip:{flipHor:true, bitmap:"Firewood_sel", xpos:-3, ypos:-3}, taskName:"WOODS"}; SERVICESDATA.MulledWine = {herox:88, heroy:327, xpos:-20, ypos:300, bitmap:"MulledWine", interact:true, selClip:{bitmap:"MulledWine_sel", xpos:-3, ypos:-3}, taskName:"GLEENTWINE"}; SERVICESDATA.Table_Masters = {xpos:60, ypos:210, bitmap:"Table_Masters", flipHor:true, interact:true, selClip:{flipHor:true, bitmap:"Table_Masters_sel", xpos:-3, ypos:-3}}; SERVICESDATA.Rocket01 = {herox:125, heroy:368, xpos:120, ypos:340, bitmap:"Rocket01", interact:true, selClip:{bitmap:"Rocket01_sel", xpos:-1, ypos:-3}, taskName:"Rocket01", unique:true, cloud:{bitmap:"Cloud", xpos:0, ypos:-140, animHOffset:0, cloudType:1}}; SERVICESDATA.Kitchen = {herox:548, heroy:369, xpos:555, ypos:295, bitmap:"Kitchen", interact:true, selClip:{bitmap:"Kitchen_sel", xpos:-3, ypos:-3}, taskName:"FOOD"}; SERVICESDATA.Snowboard = {broken:{srv:"Snowboard_Broken"}, checkx:10, checky:10, herox:223, heroy:411, xpos:230, ypos:400, bitmap:"Snowboard", interact:true, selClip:{bitmap:"Snowboard_sel", xpos:1, ypos:-3}, taskName:"Snowboard", unique:true, cloud:{bitmap:"Cloud", xpos:0, ypos:-140, animHOffset:0, cloudType:1}}; SERVICESDATA.Ski = {checkx:10, checky:10, herox:432, heroy:406, xpos:370, ypos:380, bitmap:"Ski", interact:true, selClip:{bitmap:"Ski_sel", xpos:-1, ypos:-2}, taskName:"Ski", unique:true, cloud:{bitmap:"Cloud", xpos:0, ypos:-140, animHOffset:0, cloudType:1}}; SERVICESDATA.Rink01 = {xpos:215, ypos:230, bitmap:"Rink01"}; SERVICESDATA.Rink02 = {xpos:215, ypos:230, bitmap:"Rink02", addsscore:10}; SERVICESDATA.Spruse00 = {xpos:270, ypos:60, bitmap:"Spruse00"}; SERVICESDATA.Spruse01 = {xpos:270, ypos:50, bitmap:"Spruse01", addsscore:10}; SERVICESDATA.Light01_1 = {xpos:190, ypos:220, bitmap:"Light01_off"}; SERVICESDATA.Light01_2 = {xpos:420, ypos:220, bitmap:"Light01_off"}; SERVICESDATA.Fireworx_Place01 = {xpos:150, ypos:200, bitmap:"Fireworx_Place01"}; SERVICESDATA.Fireworx_Place02 = {xpos:150, ypos:200, bitmap:"Fireworx_Place02"}; SERVICESDATA.Star = {xpos:298, ypos:35, bitmap:"Star", addsscore:20}; } function initDepths() { DEPTHSARRAY.Road00 = 1; DEPTHSARRAY.Road01 = 2; DEPTHSARRAY.Road02 = 3; DEPTHSARRAY.mcGift0 = 4; DEPTHSARRAY.mcGift1 = 5; DEPTHSARRAY.mcGift2 = 6; DEPTHSARRAY.Table_Masters = 20; DEPTHSARRAY.HOUSE2 = 30; DEPTHSARRAY.House_Illumination2 = 31; DEPTHSARRAY.HOUSE1 = 40; DEPTHSARRAY.House_Illumination1 = 41; DEPTHSARRAY.MOP = 50; DEPTHSARRAY.HOUSE3 = 60; DEPTHSARRAY.House_Illumination3 = 61; DEPTHSARRAY.HOUSE4 = 70; DEPTHSARRAY.House_Illumination4 = 71; DEPTHSARRAY.HOUSE5 = 80; DEPTHSARRAY.House_Illumination5 = 81; DEPTHSARRAY.Skates = 90; DEPTHSARRAY.Rink01 = 100; DEPTHSARRAY.Rink02 = 110; DEPTHSARRAY.Fireworx_Place01 = 135; DEPTHSARRAY[Customers.CUSTOMER_ROCKET1_ASK] = 136; DEPTHSARRAY.Light01_1 = 137; DEPTHSARRAY.Fireworx_Place02 = 150; DEPTHSARRAY.Kitchen = 151; DEPTHSARRAY[Customers.CUSTOMER_ENTERING] = 155; DEPTHSARRAY.CLAUS = 190; DEPTHSARRAY.HAT = 200; DEPTHSARRAY.WOODS = 210; DEPTHSARRAY.Rocket01 = 230; DEPTHSARRAY.Rocket02 = 240; DEPTHSARRAY.MulledWine = 250; DEPTHSARRAY.MulledWine00 = 260; DEPTHSARRAY.Snowboard = 280; DEPTHSARRAY.Snowboard_Broken = 290; DEPTHSARRAY.Ski = 300; DEPTHSARRAY.Spruse00 = 330; DEPTHSARRAY.Spruse01 = 340; DEPTHSARRAY.Star = 380; DEPTHSARRAY[Customers.CUSTOMER_HAT_ASK] = 390; DEPTHSARRAY.Light01_2 = 400; } static function getNextPopupDepth() { return(SCENEINSTANCE.getNextHighestDepth()); } static function getNextHeroDepth(aType) { return(HEROESDEPTH[aType]); } static function getNextCloudDepth() { return(SCENEINSTANCE.getNextHighestDepth()); } static function getNextCarDepth() { var i = MINCARDEPTH; while (i < (MAXCARDEPTH + 1)) { if (SCENEINSTANCE.getInstanceAtDepth(i) == undefined) { return(i); } i++; } } static function getNextCustomerDepth() { return(SCENEINSTANCE.getNextHighestDepth()); } static function tryToBroke() { var candidates = new Array(); for (var key in SERVICESDATA) { if (SERVICESDATA[key].broken != undefined) { candidates.push(key); } } if (candidates.length > 0) { GAMESERVICES[candidates[Math.floor(Math.random() * candidates.length)]].broke_state = Service.BROKE_STATE_PRE_BROKEN; } } function sortByDepth(a, b) { var depth1 = a.getDepth(); var depth2 = getDepth(); if (depth1 < depth2) { return(-1); } if (depth1 > depth2) { return(1); } return(0); } function replayLevel(levelData) { createLevel(); } function playLevel() { if (Game.CURRLEVEL == 0) { } } function createLevel() { santaWas = false; var objectsNames = LevelsHelper.levelsData[Game.CURRLEVEL].objects; for (var key in objectsNames) { var aService = new Service(); aService.create(objectsNames[key]); aService.attach2Game(objectsNames[key]); GAMESERVICES[objectsNames[key]] = aService; } for (var key in GAMESERVICES) { if ((TASKSDATA[GAMESERVICES[key].aName_] != undefined) || (SERVICESDATA[GAMESERVICES[key].aName_].taskName != undefined)) { Game.maxLevelMoney = Game.maxLevelMoney + 10; } addsScore = 0; Hero.velocity = Hero.basevelocity; Hero.addsvelocity = 0; if (SERVICESDATA[GAMESERVICES[key].aName_].addsvelocity != undefined) { Hero.addsvelocity = Hero.addsvelocity + SERVICESDATA[GAMESERVICES[key].aName_].addsvelocity; } Hero.velocity = Hero.velocity + Hero.addsvelocity; if (SERVICESDATA[GAMESERVICES[key].aName_].addsscore != undefined) { addsScore = addsScore + SERVICESDATA[GAMESERVICES[key].aName_].addsscore; } } Game.maxLevelMoney = Game.maxLevelMoney * 5; } function onShopExit() { createLevel(); } function onCreateLevel() { startLevel(); } function startLevel() { } function onEndLevel() { } function onPauseLevel() { pausedFuses = com.mosesSupposes.fuse.Fuse.getInstances(); var i = 0; while (i < pausedFuses.length) { pausedFuses[i].pause(); i++; } com.mosesSupposes.fuse.ZigoEngine.pauseTween(com.mosesSupposes.fuse.FuseKitCommon.ALL); } function onResumeLevel() { var i = 0; while (i < pausedFuses.length) { pausedFuses[i].resume(); i++; } com.mosesSupposes.fuse.ZigoEngine.resumeTween(com.mosesSupposes.fuse.FuseKitCommon.ALL); pausedFuses.splice(0, pausedFuses.length); } function destroy() { freeLevel(); HEROESARR[Hero.HERO_MAN].destroy(); HEROESARR[Hero.HERO_WOMAN].destroy(); delete HEROESARR[Hero.HERO_MAN]; delete HEROESARR[Hero.HERO_WOMAN]; } function freeLevel() { for (var key in GAMESERVICES) { GAMESERVICES[key].destroy(); delete GAMESERVICES[key]; } var i = 0; while (i < GAMECUSTOMERS.length) { GAMECUSTOMERS[i].destroy(); GAMECUSTOMERS[i].removeMovieClip(); delete GAMECUSTOMERS[i]; i++; } GAMECUSTOMERS.splice(0, GAMECUSTOMERS.length); PICKEDCUSTOMER = undefined; customerEntered = 0; } function storeLevelData() { } static function initStatic() { initServicesData(); } function Create() { customerEntered = 0; initButtonsPoses(); SCENEINSTANCE = this; initTasksdata(); initDepths(); initBrokeData(); createLevel(); enableMouse(); } function disableMouse() { delete onMouseMove; delete onMouseDown; } function enableMouseMove() { onMouseMove = function () { if (TutorHelper.tutorStarted == true) { TutorHelper.tutorMouseMove(); } else if (Scene.PICKEDCUSTOMER != undefined) { Scene.PICKEDCUSTOMER._x = this._xmouse - Scene.PICKEDX; Scene.PICKEDCUSTOMER._y = this._ymouse - Scene.PICKEDY; if (Scene.PICKEDCUSTOMER.cloud_ != undefined) { Scene.PICKEDCUSTOMER.cloud_._x = Scene.PICKEDCUSTOMER._x + Scene.SERVICESDATA.PLACE.cloud.xpos; Scene.PICKEDCUSTOMER.cloud_._y = Scene.PICKEDCUSTOMER._y + Scene.SERVICESDATA.PLACE.cloud.ypos; } var yeloowarr = new Array(); var whiteArr = new Array(); for (var key in Scene.GAMESERVICES) { if ((((Scene.GAMESERVICES[key].selectn != Service.SELECTIONNONE) && (Scene.GAMESERVICES[key].displayClip_.hitTest(this._xmouse, this._ymouse, false))) && (Scene.SERVICESDATA[key].interact == true)) && (Scene.GAMESERVICES[key].bitmapData_.getPixel32(Scene.GAMESERVICES[key].displayClip_._xmouse, Scene.GAMESERVICES[key].displayClip_._ymouse) != 0)) { whiteArr.push(Scene.GAMESERVICES[key]); } else if (Scene.GAMESERVICES[key].selectn == Service.SELECTIONW) { yeloowarr.push(Scene.GAMESERVICES[key]); } } whiteArr.sort(this.sortByDepth); whiteArr[0].selectn = Service.SELECTIONW; whiteArr.shift(); var i = 0; while (i < yeloowarr.length) { yeloowarr[i].selectn = Service.SELECTIONY; i++; } var i = 0; while (i < whiteArr.length) { whiteArr[i].selectn = Service.SELECTIONY; i++; } } else { var yeloowarr = new Array(); var whiteArr = new Array(); for (var key in Scene.GAMESERVICES) { if (((Scene.GAMESERVICES[key].selectn != Service.SELECTIONNONE) && (Scene.GAMESERVICES[key].displayClip_.hitTest(this._xmouse, this._ymouse, false))) && (Scene.SERVICESDATA[key].interact == true)) { whiteArr.push(Scene.GAMESERVICES[key]); } else if (Scene.GAMESERVICES[key].selectn == Service.SELECTIONW) { yeloowarr.push(Scene.GAMESERVICES[key]); } } for (var key in Scene.GAMECUSTOMERS) { if ((Scene.GAMECUSTOMERS[key].hitTest(this._xmouse, this._ymouse, false) && (Scene.GAMECUSTOMERS[key]._visible == true)) && (Scene.GAMECUSTOMERS[key].selectn == Service.SELECTIONY)) { Scene.GAMECUSTOMERS[key].selectn = Service.SELECTIONW; } else if (((!Scene.GAMECUSTOMERS[key].hitTest(this._xmouse, this._ymouse, false)) && (Scene.GAMECUSTOMERS[key]._visible == true)) && (Scene.GAMECUSTOMERS[key].selectn == Service.SELECTIONW)) { Scene.GAMECUSTOMERS[key].selectn = Service.SELECTIONY; } } if ((yeloowarr.length == 0) && (whiteArr.length == 0)) { } else { whiteArr.sort(this.sortByDepth); whiteArr[0].selectn = Service.SELECTIONW; whiteArr.shift(); var i = 0; while (i < yeloowarr.length) { yeloowarr[i].selectn = Service.SELECTIONY; i++; } var i = 0; while (i < whiteArr.length) { whiteArr[i].selectn = Service.SELECTIONY; i++; } } } }; } function enableMouse() { enableMouseMove(); onMouseDown = function () { if (TutorHelper.tutorStarted == true) { TutorHelper.tutorMouseDown(); } else { for (var key in Scene.GAMESERVICES) { if ((((((Scene.PICKEDCUSTOMER != undefined) && (Scene.GAMESERVICES[key].aName_.indexOf("HOUSE") != -1)) && (Scene.GAMESERVICES[key].selectn == Service.SELECTIONW)) && (Scene.GAMESERVICES[key].displayClip_.hitTest(this._xmouse, this._ymouse, false))) && (Scene.SERVICESDATA[key].interact == true)) && (Scene.GAMESERVICES[key].bitmapData_.getPixel32(Scene.GAMESERVICES[key].displayClip_._xmouse, Scene.GAMESERVICES[key].displayClip_._ymouse) != 0)) { Scene.PICKEDCUSTOMER.place(Scene.GAMESERVICES[key]); return(undefined); } if (((((Scene.PICKEDCUSTOMER != undefined) && (Scene.GAMESERVICES[key].selectn == Service.SELECTIONNONE)) && (Scene.GAMESERVICES[key].displayClip_.hitTest(this._xmouse, this._ymouse, false))) && (Scene.SERVICESDATA[key].interact == true)) && (Scene.GAMESERVICES[key].bitmapData_.getPixel32(Scene.GAMESERVICES[key].displayClip_._xmouse, Scene.GAMESERVICES[key].displayClip_._ymouse) != 0)) { Customers.dropPlacingBack(Scene.PICKEDCUSTOMER); return(undefined); } if (((((Scene.PICKEDCUSTOMER == undefined) && (Scene.CLOUDSARRAY[key].checking == Service.CHECK_NONE)) && (Scene.GAMESERVICES[key].displayClip_.hitTest(this._xmouse, this._ymouse, false))) && (Scene.GAMESERVICES[key].aName_.indexOf("HOUSE") != -1)) && (Scene.GAMESERVICES[key].selectn != Service.SELECTIONNONE)) { Scene.CLOUDSARRAY[key].checking = Service.CHECK_GIRL; var firstObj = Scene.TASKSDATA[Scene.CLOUDSARRAY[key].taskKey_].firstObj; var actPack = Actions.getGotoPack(firstObj); actPack.packTarget = Scene.CLOUDSARRAY[key]; actPack.packTask = Scene.CLOUDSARRAY[key].taskKey_; if (Scene.CLOUDSARRAY[key].taskKey_ == "WOODS") { actPack = Actions.getTakeServicePack(Scene.SERVICESDATA.WOODS.taskName, actPack); if (Scene.GAMESERVICES.WOODS.checking != Service.CHECK_NONE) { Scene.GAMESERVICES.WOODS.setCheckColor(Service.CHECK_BOY); } Scene.CLOUDSARRAY[key].setCheckColor(Service.CHECK_BOY); var nochecked = 0; for (var all in Scene.CLOUDSARRAY) { if ((Scene.CLOUDSARRAY[all].taskKey_ == "WOODS") && (Scene.CLOUDSARRAY[all].checking == Service.CHECK_NONE)) { nochecked++; } } if (nochecked > 0) { Scene.GAMESERVICES.WOODS.selectn = Service.SELECTIONW; } else { Scene.GAMESERVICES.WOODS.selectn = Service.SELECTIONNONE; } } else { actPack = Actions.getTakeServicePack(Scene.CLOUDSARRAY[key].taskKey_, actPack); var unchecked = Scene.countUncheckTasks(Scene.CLOUDSARRAY[key].taskKey_); if (unchecked == 0) { Scene.fusePopupDown(Scene.CLOUDSARRAY[key].popBtn_); } } actPack = Actions.getDelayedPack(0.5, actPack); actPack = Actions.getGotoPack(key, actPack); actPack = Actions.getCloudDonePack(key, Scene.CLOUDSARRAY[key].taskKey_, actPack); actPack = Actions.addFinalActs(actPack); Scene.HEROESARR[Scene.TASKSDATA[Scene.CLOUDSARRAY[key].taskKey_].executor].startPack(actPack); return(undefined); } if (((((Scene.PICKEDCUSTOMER == undefined) && (Scene.GAMESERVICES[key].displayClip_._visible == true)) && (Scene.GAMESERVICES[key].displayClip_.hitTest(this._xmouse, this._ymouse, false))) && (Scene.GAMESERVICES[key].aName_.indexOf("HOUSE") == -1)) && (Scene.GAMESERVICES[key].selectn != Service.SELECTIONNONE)) { if (Scene.firstChecked != Scene.GAMESERVICES[key]) { if (Scene.SELECTEDPOPUPBTN != undefined) { Scene.deselectServices(Scene.SELECTEDPOPUPBTN.taskKey); } if (key != "WOODS") { Scene.deselectWoodsRequests(); } Scene.deselectButtons(); Scene.SELECTEDPOPUPBTN = undefined; if (Scene.firstChecked != undefined) { Scene.deselectCustomers(Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName); if (Scene.firstChecked.__get__checking() == Service.CHECK_UNSELECTED) { Scene.firstChecked.__set__checking(Service.CHECK_NONE); } Scene.firstChecked = undefined; } if (key == "Snowboard_Broken") { Scene.repareClicked(Scene.GAMESERVICES[key]); } Scene.checkServiceFirst(Scene.GAMESERVICES[key]); } else if (Scene.GAMESERVICES[key].checking == Service.CHECK_NONE) { Scene.checkServiceFirst(Scene.GAMESERVICES[key]); } } } for (var key in Scene.GAMECUSTOMERS) { if (Scene.GAMECUSTOMERS[key].hitTest(this._xmouse, this._ymouse, false) && (Scene.GAMECUSTOMERS[key]._visible == true)) { Customers.processMouseDown(Scene.GAMECUSTOMERS[key]); return(undefined); } } for (var key in Scene.CLOUDSARRAY) { if (Scene.CLOUDSARRAY[key].hitTest(this._xmouse, this._ymouse, false)) { Customers.processMouseDown(Scene.CLOUDSARRAY[key].parentClip_); } } } }; } function desableMouse() { } static function repareClicked(aService) { aService.__set__checking(Service.CHECK_BOY); var firstObj = TASKSDATA[CLOUDSARRAY[aService.aName_].taskKey_].firstObj; var actPack = Actions.getGotoPack(firstObj); CLOUDSARRAY[aService.aName_].checking = Service.CHECK_BOY; actPack.packTarget = CLOUDSARRAY[aService.aName_]; actPack.packTask = CLOUDSARRAY[aService.aName_].taskKey_; actPack = Actions.getTakeServicePack(CLOUDSARRAY[aService.aName_].taskKey_, actPack); var unchecked = countUncheckTasks(CLOUDSARRAY[aService.aName_].taskKey_); if (unchecked == 0) { fusePopupDown(CLOUDSARRAY[aService.aName_].popBtn_); } actPack = Actions.getDelayedPack(0.5, actPack); actPack = Actions.getGotoPack(aService.aName_, actPack); actPack = Actions.getCloudDonePack(aService.aName_, CLOUDSARRAY[aService.aName_].taskKey_, actPack); actPack = Actions.addFinalActs(actPack); HEROESARR[Hero.HERO_MAN].startPack(actPack); var unchecked = 0; unchecked = unchecked + countUncheckTasks("Snowboard_Broken"); if (unchecked == 0) { fusePopupDown(CLOUDSARRAY[aService.aName_].popBtn_); } } static function checkServiceFirst(aClip) { if ((aClip.__get__selectn() != Service.SELECTIONNONE) && ((aClip.__get__checking() == Service.CHECK_NONE) || (aClip.__get__checking() == undefined))) { if (firstChecked.__get__checking() == Service.CHECK_UNSELECTED) { firstChecked.__set__checking(Service.CHECK_NONE); } firstChecked = aClip; firstChecked.__set__checking(Service.CHECK_UNSELECTED); if (aClip.aName_ == "WOODS") { TutorHelper.tutorials.WOODS.done = true; selectWoodsRequests(); } else { selectYellowCustomers(aClip.aName_); } } } static function getCustomerByHouse(aHouse) { for (var key in GAMECUSTOMERS) { if (GAMECUSTOMERS[key].houseClip_ == aHouse) { return(GAMECUSTOMERS[key]); } } } static function selectObjects(objects, selType) { for (var key in objects) { objects[key].selectn = selType; } } static function getServicesByName(aname) { var retArr = new Array(); for (var key in GAMESERVICES) { if (GAMESERVICES[key].aName_.indexOf(aname) != -1) { retArr.push(GAMESERVICES[key]); } } return(retArr); } static function getServicesByData(findData) { var retArr = new Array(); for (var key in GAMESERVICES) { if (GAMESERVICES[key].dataArr_[findData.key] == findData.value) { retArr.push(GAMESERVICES[key]); } } return(retArr); } static function cloudToCustomer(Customer, cloudType, taskKey) { var aCloud = SCENEINSTANCE.attachMovie("CCloud", Customer._name + "aCloud", getNextCloudDepth(), {parentClip_:Customer, taskKey_:taskKey}); aCloud.create(SERVICESDATA[taskKey].cloud.bitmap, SERVICESDATA[taskKey].cloud, TASKSDATA[taskKey].cloudSign); CLOUDSARRAY[taskKey] = aCloud; return(aCloud); } static function deselectCustomers(taskKey) { for (var key in GAMECUSTOMERS) { if ((GAMECUSTOMERS[key].cloud_.taskKey_ == taskKey) && (GAMECUSTOMERS[key].cloud_.checking == Service.CHECK_NONE)) { GAMECUSTOMERS[key].selectn = Service.SELECTIONNONE; } } } static function selectYellowCustomers(taskKey) { for (var key in GAMECUSTOMERS) { if ((GAMECUSTOMERS[key].cloud_.taskKey_ == taskKey) && (GAMECUSTOMERS[key].cloud_.checking == Service.CHECK_NONE)) { GAMECUSTOMERS[key].selectn = Service.SELECTIONY; } } } static function deselectWoodsRequests() { for (var key in CLOUDSARRAY) { if (CLOUDSARRAY[key].taskKey_ == "WOODS") { GAMESERVICES[key].selectn = Service.SELECTIONNONE; } } } static function selectWoodsRequests() { for (var key in CLOUDSARRAY) { if ((CLOUDSARRAY[key].taskKey_ == "WOODS") && (CLOUDSARRAY[key].checking == Service.CHECK_NONE)) { GAMESERVICES[key].selectn = Service.SELECTIONY; } } } static function deselectServices(taskKey) { if (taskKey == "WOODS") { GAMESERVICES.WOODS.selectn = Service.SELECTIONNONE; } else { for (var key in CLOUDSARRAY) { if ((CLOUDSARRAY[key].taskKey_ == taskKey) && (CLOUDSARRAY[key].checking_ == Service.CHECK_NONE)) { GAMESERVICES[key].selectn = Service.SELECTIONNONE; } } } } static function selectYellowServices(taskKey) { if (taskKey == "WOODS") { GAMESERVICES.WOODS.selectn = Service.SELECTIONY; } else { for (var key in CLOUDSARRAY) { if ((CLOUDSARRAY[key].taskKey_ == taskKey) && (CLOUDSARRAY[key].checking_ == Service.CHECK_NONE)) { GAMESERVICES[key].selectn = Service.SELECTIONY; } } } } static function startClaus() { var aClaus = SCENEINSTANCE.attachMovie("Claus", "Claus", DEPTHSARRAY.CLAUS); aClaus.create(); aClaus._y = 340; aClaus._x = -50; } static function attachCloud(serviceName, cloudType, taskKey, dataSource) { if (dataSource == undefined) { dataSource = SERVICESDATA; } if ((taskKey == "WOODS") && ((GAMESERVICES.WOODS.checking != Service.CHECK_NONE) || (HEROESARR[Hero.HERO_MAN].carryClip_._name == "WOODS"))) { GAMESERVICES[serviceName].selectn = SELECTWHITE; } var aCloud = SCENEINSTANCE.attachMovie("CCloud", serviceName + "aCloud", getNextCloudDepth(), {parentClip_:GAMESERVICES[serviceName].displayClip_, taskKey_:taskKey, serviceName_:serviceName}); aCloud.create(dataSource[serviceName].cloud.bitmap, dataSource[serviceName].cloud, TASKSDATA[taskKey].cloudSign); CLOUDSARRAY[serviceName] = aCloud; if ((SELECTEDPOPUPBTN.taskKey != undefined) && (SELECTEDPOPUPBTN.taskKey == taskKey)) { GAMESERVICES[serviceName].selectn = SELECTWHITE; } return(aCloud); } static function countTasks(reqName) { var outVal = 0; for (var key in CLOUDSARRAY) { if (CLOUDSARRAY[key].taskKey_ == reqName) { outVal++; } } return(outVal); } static function countCheckedTasks(reqName) { var outVal = 0; for (var key in CLOUDSARRAY) { if ((CLOUDSARRAY[key].taskKey_ == reqName) && (CLOUDSARRAY[key].checking != Service.CHECK_NONE)) { outVal++; } } return(outVal); } static function countUncheckTasks(reqName) { var outVal = 0; for (var key in CLOUDSARRAY) { if ((CLOUDSARRAY[key].taskKey_ == reqName) && (CLOUDSARRAY[key].checking == Service.CHECK_NONE)) { outVal++; } } return(outVal); } static function countPopTasks(reqName) { var outVal = 0; for (var key in CLOUDSARRAY) { if (CLOUDSARRAY[key].taskKey_ == reqName) { outVal++; } } return(outVal); } static function attachHero(aType) { if (HEROESARR[aType]._name == undefined) { var heroClip = SCENEINSTANCE.attachMovie("Hero", "Hero" + aType, getNextHeroDepth(aType)); heroClip.create(aType); if (aType == Hero.HERO_MAN) { heroClip.heroX = Hero.WAITINGPOINTS[aType].x; heroClip.heroY = Hero.WAITINGPOINTS[aType].y; HEROESARR[aType] = heroClip; } else { heroClip.heroX = Hero.WAITINGPOINTS[aType].x; heroClip.heroY = Hero.WAITINGPOINTS[aType].y; HEROESARR[aType] = heroClip; } } } static function popuped(aBtn) { } static function fusePopupUp(aBtn) { com.mosesSupposes.fuse.ZigoEngine.doTween(aBtn, "_y", UPPOPBUTTONY, 0.4, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:Scene, func:"popuped", args:aBtn}); } static function fusePopupDown(aBtn) { com.mosesSupposes.fuse.ZigoEngine.removeTween(aBtn); GAMESERVICES[aBtn.taskKey].selectn = Service.SELECTIONNONE; delete aBtn.onPress; aBtn._width = POPUBTNSMAXSIZE; aBtn._height = POPUBTNSMAXSIZE; for (var key in HEROESARR[TASKSDATA[aBtn.taskKey].executor].buttonsArr) { if (HEROESARR[TASKSDATA[aBtn.taskKey].executor].buttonsArr[key] == aBtn) { delete HEROESARR[TASKSDATA[aBtn.taskKey].executor].buttonsArr[key]; } } com.mosesSupposes.fuse.ZigoEngine.doTween(aBtn, "_y", INITPOPBUTTONY, 0.4, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:Scene, func:removePopUpBtn, args:[aBtn]}); } static function removePopUpBtn(aBtn) { if (SELECTEDPOPUPBTN == aBtn) { delete SELECTEDPOPUPBTN; SELECTEDPOPUPBTN = undefined; } aBtn.removeMovieClip(); delete aBtn; aBtn = undefined; } static function getEmptySlot(arr) { if (arr.SLOT1 == undefined) { return("SLOT1"); } if (arr.SLOT2 == undefined) { return("SLOT2"); } if (arr.SLOT3 == undefined) { return("SLOT3"); } } static function fuseSizeDown(aBtn) { com.mosesSupposes.fuse.ZigoEngine.doTween(aBtn, ["_width", "_height", "_x", "_y"], [POPUBTNSMINSIZE, POPUBTNSMINSIZE, aBtn._x + ((aBtn._width - POPUBTNSMINSIZE) / 2), aBtn._y + ((aBtn._height - POPUBTNSMINSIZE) / 2)], 0.01, com.mosesSupposes.fuse.PennerEasing.easeOutBounce, 0, {scope:Scene, func:"fuseSizeUp", args:[aBtn]}); } static function fuseSizeUp(aBtn) { com.mosesSupposes.fuse.ZigoEngine.doTween(aBtn, ["_width", "_height", "_x", "_y"], [POPUBTNSMAXSIZE, POPUBTNSMAXSIZE, aBtn._x + ((aBtn._width - POPUBTNSMAXSIZE) / 2), aBtn._y + ((aBtn._height - POPUBTNSMAXSIZE) / 2)], 0.2, com.mosesSupposes.fuse.PennerEasing.easeInBounce, 0); } static function canSelectPopupBtn(btnMc) { if (((btnMc != SELECTEDPOPUPBTN) && (PICKEDCUSTOMER == undefined)) && (com.mosesSupposes.fuse.ZigoEngine.isTweening(btnMc, "_y") == false)) { return(true); } return(false); } static function deselectButtons() { for (var key in HEROESARR) { for (var all in HEROESARR[key].buttonsArr) { deselectPopupButton(HEROESARR[key].buttonsArr[all]); } } } static function deselectAllServices() { for (var key in GAMESERVICES) { GAMESERVICES[key].selectn = Service.SELECTIONNONE; } } static function attachImageToBtn(aBtn) { var imageCanvas = (new flash.display.BitmapData(aBtn._width, aBtn._height, true, 0)); var srcBmp = flash.display.BitmapData.loadBitmap(TASKSDATA[aBtn.taskKey].btnAdd); imageCanvas.copyPixels(srcBmp, srcBmp.rectangle, new flash.geom.Point((imageCanvas.width - srcBmp.width) / 2, (imageCanvas.height - srcBmp.height) / 2)); aBtn.attachBitmap(imageCanvas, POPBTNIMAGEDEPTH); } static function deselectPopupButton(btnMc) { btnMc.attachBitmap(flash.display.BitmapData.loadBitmap(POPUPBTNSRCS[TASKSDATA[btnMc.taskKey].executor].normal), POPBTNCANVASDEPTH); delete SELECTEDPOPUPBTN; } static function selectPopupButton(btnMc) { fuseSizeDown(btnMc); SELECTEDPOPUPBTN = btnMc; btnMc.attachBitmap(flash.display.BitmapData.loadBitmap(POPUPBTNSRCS[TASKSDATA[btnMc.taskKey].executor].active), POPBTNCANVASDEPTH); } static function deselect(serviceName) { GAMESERVICES[serviceName].selectn = Service.SELECTIONNONE; if (firstChecked == GAMESERVICES[serviceName]) { firstChecked = undefined; } } static function hasPopup(reqName) { for (var key in HEROESARR[TASKSDATA[reqName].executor].buttonsArr) { if (HEROESARR[TASKSDATA[reqName].executor].buttonsArr[key].taskKey == reqName) { return(HEROESARR[TASKSDATA[reqName].executor].buttonsArr[key]); } } return(undefined); } static function addPopupButton(reqName) { if (TASKSDATA[reqName].btnAdd != undefined) { var popupbtn = hasPopup(reqName); if (popupbtn == undefined) { var btnSlot = getEmptySlot(HEROESARR[TASKSDATA[reqName].executor].buttonsArr); var btnMc = SCENEINSTANCE.createEmptyMovieClip((("btn" + TASKSDATA[reqName].executor) + btnSlot) + getTimer(), getNextPopupDepth()); btnMc.executor = TASKSDATA[reqName].executor; btnMc.taskKey = reqName; HEROESARR[TASKSDATA[reqName].executor].buttonsArr[btnSlot] = btnMc; deselectPopupButton(btnMc); attachImageToBtn(btnMc); btnMc._x = addButtonsPoses[TASKSDATA[reqName].executor][btnSlot].x; btnMc._y = INITPOPBUTTONY; fusePopupUp(btnMc); btnMc.onPress = function () { TutorHelper.tutorials.MOP.done = true; if (TutorHelper.tutorStarted == true) { TutorHelper.tutorMouseDown(this); } else if (Scene.canSelectPopupBtn(this)) { Scene.deselectButtons(); Scene.selectPopupButton(this); var houses = Scene.getServicesByName("HOUSE"); Scene.selectObjects(houses, Service.SELECTIONNONE); if (Scene.firstChecked != undefined) { Scene.deselectCustomers(Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName); if (Scene.firstChecked.__get__checking() == Service.CHECK_UNSELECTED) { Scene.firstChecked.__set__checking(Service.CHECK_NONE); Scene.firstChecked = undefined; } } Scene.selectYellowServices(this.taskKey); } }; return(btnMc); } return(popupbtn); } if (reqName == "WOODS") { } } static function removeCustomer(aClip) { } static function fadeScene() { MenuHelper.detachButtons(GameMenu.MENUINSTANCE); com.mosesSupposes.fuse.ZigoEngine.doTween(SCENEINSTANCE, "_brightness", -50, 1, com.mosesSupposes.fuse.PennerEasing.linear); com.mosesSupposes.fuse.ZigoEngine.doTween(GameMenu.MENUINSTANCE, "_brightness", -50, 1, com.mosesSupposes.fuse.PennerEasing.linear); } static function removeCar(another) { com.mosesSupposes.fuse.ZigoEngine.removeTween(LASTCAR); LASTCAR.removeMovieClip(); delete LASTCAR; SCENEINSTANCE.aCar.removeMovieClip(); delete SCENEINSTANCE.aCar; if (another == true) { if (GAMECUSTOMERS.length < 5) { carEnter(0); } } else if (GAMECUSTOMERS.length == 0) { if (Game.moneyLeft_._name != undefined) { Game.moneyLeft_.onPress(); } Game.initResultMenu(); } } static function carLeaveEnter(aCustomer) { LASTCAR = SCENEINSTANCE.createEmptyMovieClip("aCar", getNextCarDepth()); LASTCAR.attachBitmap(flash.display.BitmapData.loadBitmap("Car_Red"), 0); LASTCAR._x = -90; LASTCAR._y = 190; com.mosesSupposes.fuse.ZigoEngine.doTween(LASTCAR, ["_x", "_y"], [0, 220], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 3, {scope:Scene, func:"carLeaveOut", args:aCustomer}); } static function carLeaveOut(aCustomer) { var i = 0; while (i < GAMECUSTOMERS.length) { if (GAMECUSTOMERS[i] == aCustomer) { GAMECUSTOMERS.splice(i, 1); aCustomer.destroy(); } i++; } aCustomer.removeMovieClip(); delete aCustomer; com.mosesSupposes.fuse.ZigoEngine.doTween(LASTCAR, ["_x", "_y"], [-90, 190], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:Scene, func:"removeCar", args:false}); } static function carEnter(aColor) { SoundHelper.soundPlay("car_ep3"); LASTCAR = SCENEINSTANCE.createEmptyMovieClip("aCar" + customerEntered, getNextCarDepth()); LASTCAR.attachBitmap(flash.display.BitmapData.loadBitmap("Car_Red"), 0); LASTCAR._x = -90; LASTCAR._y = 190; com.mosesSupposes.fuse.ZigoEngine.doTween(LASTCAR, ["_x", "_y"], [0, 220], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:Scene, func:"attachCustomer", args:[Customers.CUSTOMER_ENTERING, customerEntered, Customers.CHILDBOY]}); customerEntered++; } static function carOut(another) { com.mosesSupposes.fuse.ZigoEngine.doTween(LASTCAR, ["_x", "_y"], [-90, 190], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:Scene, func:"removeCar", args:another}); } static function attachCustomer(aType, aColor, aChild) { var customerClip = SCENEINSTANCE.attachMovie("Customers", "customers" + GAMECUSTOMERS.length, getNextCustomerDepth()); customerClip.create(aType, aColor, aChild); GAMECUSTOMERS.push(customerClip); customerClip.selectn = Customers.SELECTIONY; customerClip.tryNext(); } static function customerOut(aClip) { var i = 0; while (i < GAMECUSTOMERS.length) { if (GAMECUSTOMERS[i] == aClip) { GAMECUSTOMERS.splice(i, 1); aClip.destroy(); } i++; } aClip.removeMovieClip(); delete aClip; PICKEDCUSTOMER = undefined; var houses = getServicesByName("HOUSE"); selectObjects(houses, Service.SELECTIONNONE); if (customerEntered < 4) { carOut(true); } else { carOut(); } } static var SERVICES = new Array(); static var DEPTHSARRAY = new Array(); static var POSITSARRAY = new Array(); static var SERVICESDATA = new Array(); static var BROKEDATA = new Array(); static var GAMESERVICES = new Array(); static var GAMECUSTOMERS = new Array(); static var SELECTYELLOW = 0; static var SELECTWHITE = 1; static var CLOUDLEFT = -1; static var CLOUDRIGHT = 1; static var CLOUDCIRCLE = 0; static var POPBTNCANVASDEPTH = 0; static var POPBTNIMAGEDEPTH = 1; static var pausedTweens = new Array(); static var pausedFuses = new Array(); static var DEFSERVICES = new Array(); static var HEROESARR = new Array(); static var POPUPBTNSRCS = new Array({normal:"Butt2Left", active:"Butt_Left_Sel"}, {normal:"Butt2Right", active:"Butt_Right_Sel"}); static var addButtonsPoses = new Array(); static var INITPOPBUTTONY = 470; static var UPPOPBUTTONY = 440; static var POPUBTNSMINSIZE = 20; static var POPUBTNSMAXSIZE = 41; static var HEROESDEPTH = new Array(160, 170); static var MAXCARDEPTH = 149; static var MINCARDEPTH = 140; static var CLOUDSARRAY = new Array(); static var TASKSDATA = new Array(); static var CUSTOMERSCOLORS = new Array(); static var addsScore = 0; static var playedLevels = new Array(); static var santaWas = false; static var customerEntered = 0; }
Symbol 478 MovieClip [__Packages.Service] Frame 0
class Service { var broke_state_, displayClip_, aName_, checking_, selectn_, prevselctn_, selectnClip_, selectnWhite_, selectnYellow_, dataArr_, bitmapData_; function Service () { } function set broke_state(aVal) { if (broke_state_ != aVal) { broke_state_ = aVal; switch (broke_state_) { case BROKE_STATE_NONE : break; case BROKE_STATE_PRE_BROKEN : displayClip_._visible = false; var aService = new Service(); aService.create(Scene.SERVICESDATA[aName_].broken.srv, Scene.BROKEDATA); aService.attach2Game(Scene.SERVICESDATA[aName_].broken.srv, Scene.BROKEDATA); Scene.GAMESERVICES[aService.aName_] = aService; Scene.attachCloud(aService.aName_, -1, aService.aName_, Scene.BROKEDATA); break; case BROKE_STATE_BROKEN : break; case BROKE_STATE_REPARING : } } //return(broke_state); } function get broke_state() { return(broke_state_); } function set checking(aVal) { checking_ = aVal; var checkClip = displayClip_.createEmptyMovieClip("checkClip", CHECKDEPTH); checkClip.attachBitmap(flash.display.BitmapData.loadBitmap(CHECKBMPS[aVal]), 0); if (checking_ != CHECK_NONE) { var startw = checkClip._width; var starth = checkClip._height; checkClip._width = checkClip._width * 2; checkClip._height = checkClip._height * 2; checkClip._x = Scene.SERVICESDATA[aName_].checkx - (checkClip._width / 2); checkClip._y = Scene.SERVICESDATA[aName_].checky - (checkClip._height / 2); checkClip._alpha = 50; com.mosesSupposes.fuse.ZigoEngine.doTween(checkClip, ["_width", "_height", "_x", "_y", "_alpha"], [checkClip._width / 2, checkClip._height / 2, Scene.SERVICESDATA[aName_].checkx - (startw / 2), Scene.SERVICESDATA[aName_].checky - (starth / 2), 100], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0); } //return(checking); } function setCheckColor(aVal) { displayClip_.checkClip.attachBitmap(flash.display.BitmapData.loadBitmap(CHECKBMPS[aVal]), 0); checking_ = aVal; } function get checking() { return(checking_); } function get selectn() { return(selectn_); } function set selectn(aVal) { if (selectn_ != aVal) { if (displayClip_.cloud_._name != undefined) { if (aVal == SELECTIONNONE) { displayClip_.cloud_.deselect(); } else { displayClip_.cloud_.select(aVal); } } prevselctn_ = selectn_; selectn_ = aVal; if (selectnClip_ == undefined) { selectnClip_ = displayClip_.createEmptyMovieClip("seClip", SELECTIONDEPTH); selectnClip_._x = Scene.SERVICESDATA[aName_].selClip.xpos; selectnClip_._y = Scene.SERVICESDATA[aName_].selClip.ypos; } switch (selectn) { case SELECTIONW : selectnClip_.attachBitmap(selectnWhite_, 0); break; case SELECTIONY : selectnClip_.attachBitmap(selectnYellow_, 0); break; case SELECTIONNONE : selectnClip_.removeMovieClip(); delete selectnClip_; } } //return(selectn); } function create(aName, dataSource) { if (dataSource == undefined) { dataSource = Scene.SERVICESDATA; } broke_state_ = BROKE_STATE_NONE; dataArr_ = new Array(); aName_ = aName; selectn_ = (prevselctn_ = SELECTIONNONE); checking_ = CHECK_NONE; bitmapData_ = BF.getBitmap(dataSource[aName].bitmap, dataSource[aName]); if (dataSource[aName].interact == true) { selectnWhite_ = BF.getBitmap(dataSource[aName].selClip.bitmap, dataSource[aName].selClip); selectnYellow_ = new flash.display.BitmapData(selectnWhite_.width, selectnWhite_.height, true, 0); selectnYellow_.copyPixels(selectnWhite_, selectnWhite_.rectangle, new flash.geom.Point(0, 0)); var colorTrans = (new flash.geom.ColorTransform()); colorTrans.blueOffset = 100; selectnYellow_.colorTransform(selectnYellow_.rectangle, new flash.geom.ColorTransform(1, 0, 0, 1, 255, 100, 0, 0)); } if (aName.indexOf("HOUSE") != -1) { dataArr_.owned = false; } if (dataSource == Scene.BROKEDATA) { } } function attach2Game(gameName, dataSource) { if (dataSource == undefined) { dataSource = Scene.SERVICESDATA; } displayClip_ = Game.SCENECLIP.createEmptyMovieClip(gameName, Scene.DEPTHSARRAY[gameName]); displayClip_.attachBitmap(bitmapData_, 0); displayClip_._x = dataSource[gameName].xpos; displayClip_._y = dataSource[gameName].ypos; if (dataSource == Scene.BROKEDATA) { } } function destroy() { displayClip_.removeMovieClip(); delete displayClip_; selectnClip_.removeMovieClip(); delete selectnClip_; for (var key in dataArr_) { delete dataArr_[key]; } delete dataArr_; delete selectnWhite_; delete selectnYellow_; delete bitmapData_; } static var SELECTIONW = 0; static var SELECTIONY = 1; static var SELECTIONNONE = -1; static var CHECK_BOY = 0; static var CHECK_GIRL = 1; static var CHECK_UNSELECTED = 2; static var CHECK_NONE = 3; static var CHECKDEPTH = 2; static var SELECTIONDEPTH = 1; static var CHECKBMPS = new Array("Check_Mini_Boy", "Check_Mini_Girl", "Check_Mini_Unsel"); static var BROKE_STATE_NONE = 0; static var BROKE_STATE_PRE_BROKEN = 1; static var BROKE_STATE_BROKEN = 2; static var BROKE_STATE_REPARING = 3; }
Symbol 479 MovieClip [__Packages.BF] Frame 0
class BF { function BF () { } static function getAnimFrames2(aData) { if (aData.destPointx == undefined) { aData.destPointx = 0; } if (aData.destPointy == undefined) { aData.destPointy = 0; } if (aData.flipHor != true) { var aObject = flash.display.BitmapData.loadBitmap(aData.bitmapName); if (aObject == undefined) { } var srcBitmap = (new flash.display.BitmapData(aObject.width, aObject.height, true, 0)); if (aData.colorTransform != undefined) { var myColorTransform = aData.colorTransform; } else { var myColorTransform = (new flash.geom.ColorTransform()); } srcBitmap.draw(aObject, new flash.geom.Matrix(), myColorTransform); } else { var aObject = flash.display.BitmapData.loadBitmap(aData.bitmapName); if (aObject == undefined) { } var srcBitmap = (new flash.display.BitmapData(aObject.width, aObject.height, true, 0)); var myMatrix = (new flash.geom.Matrix()); myMatrix.scale(-1, 1); myMatrix.translate(aObject.width, 0); var myColorTransform = (new flash.geom.ColorTransform()); srcBitmap.draw(aObject, myMatrix, myColorTransform); } if (aData.repPixels != undefined) { var x1 = 0; while (x1 < srcBitmap.width) { var y1 = 0; while (y1 < srcBitmap.height) { var aColor = srcBitmap.getPixel32(x1, y1); if ((aColor >> 24) & true) { if ((((aColor >> 16) & 255) + (aColor & 255)) < ((aColor >> 8) & 255)) { var HSB = RGBtoHSB(aColor); HSB[0] = aData.repPixels.saturation; var newRGB = HSBtoRGB(HSB[0], HSB[1], HSB[2]); srcBitmap.setPixel(x1, y1, newRGB); } } y1++; } x1++; } } var retArray = new Array(); if (aData.frameHeight == undefined) { aData.frameHeight = srcBitmap.height / aData.framesCount; } if (aData.frameWidth == undefined) { aData.frameWidth = srcBitmap.width; } var i = 0; while (i < aData.framesCount) { var retBitmap = (new flash.display.BitmapData(aData.frameWidth, aData.frameHeight, true, 0)); retBitmap.copyPixels(srcBitmap, new flash.geom.Rectangle(0, i * aData.frameHeight, aData.frameWidth, aData.frameHeight), new flash.geom.Point(aData.destPointx, aData.destPointy)); retArray.push(retBitmap); i++; } return(retArray); } static function HSBtoRGB(H, S, Br) { Br = (Br / 100) * 255; var R; var G; var B; if (S == 0) { R = (G = (B = Br)); } else { var resH = ((H / 60) - Math.floor(H / 60)); var bot = (Br * (1 - (S / 100))); var dec = (Br * (1 - ((S * resH) / 100))); var inc = (Br * (1 - ((S * (1 - resH)) / 100))); switch (Math.floor(H / 60)) { case 0 : R = Br; G = inc; B = bot; break; case 1 : R = dec; G = Br; B = bot; break; case 2 : R = bot; G = Br; B = inc; break; case 3 : R = bot; G = dec; B = Br; break; case 4 : R = inc; G = bot; B = Br; break; case 5 : R = Br; G = bot; B = dec; } } return(((Math.round(R) << 16) | (Math.round(G) << 8)) | Math.round(B)); } static function RGBtoHSB(rgb) { var R = ((rgb & 16711680) >> 16); var G = ((rgb & 65280) >> 8); var B = (rgb & 255); var Br = Math.max(R, G, B); var minVal = Math.min(R, G, B); var delta = (Br - minVal); var S; var H; if (Br == 0) { S = 0; } else { S = (delta / Br) * 100; } if (S == 0) { H = 0; } else if (R == Br) { H = (60 * (G - B)) / delta; } else if (G == Br) { H = 120 + ((60 * (B - R)) / delta); } else { H = 240 + ((60 * (R - G)) / delta); } if (H < 0) { H = H + 360; } return([Math.round(H), Math.round(S), Math.round((Br / 255) * 100)]); } static function getBitmap2(aData) { if (aData.flipHor != true) { if (aData.repPixels != undefined) { var srcBitmap = flash.display.BitmapData.loadBitmap(aData.bitmapName); var x1 = 0; while (x1 < srcBitmap.width) { var y1 = 0; while (y1 < srcBitmap.height) { var aColor = srcBitmap.getPixel32(x1, y1); if ((aColor >> 24) & true) { if ((((aColor >> 16) & 255) + (aColor & 255)) < ((aColor >> 8) & 255)) { var HSB = RGBtoHSB(aColor); HSB[0] = aData.repPixels.saturation; var newRGB = HSBtoRGB(HSB[0], HSB[1], HSB[2]); srcBitmap.setPixel(x1, y1, newRGB); } } y1++; } x1++; } return(srcBitmap); } return(flash.display.BitmapData.loadBitmap(aData.bitmapName)); } var aObject = flash.display.BitmapData.loadBitmap(aData.bitmapName); var rotatedData = (new flash.display.BitmapData(aObject.width, aObject.height, true, 0)); var myMatrix = (new flash.geom.Matrix()); myMatrix.scale(-1, 1); myMatrix.translate(aObject.width, 0); rotatedData.draw(aObject, myMatrix); if (aData.repPixels != undefined) { var x1 = 0; while (x1 < rotatedData.width) { var y1 = 0; while (y1 < rotatedData.height) { var aColor = rotatedData.getPixel32(x1, y1); if ((aColor >> 24) & true) { if ((((aColor >> 16) & 255) + (aColor & 255)) < ((aColor >> 8) & 255)) { var HSB = RGBtoHSB(aColor); HSB[0] = aData.repPixels.saturation; var newRGB = HSBtoRGB(HSB[0], HSB[1], HSB[2]); rotatedData.setPixel(x1, y1, newRGB); } } y1++; } x1++; } } return(rotatedData); } static function getAnimFrames(aData) { var srcBitmap = flash.display.BitmapData.loadBitmap(aData.bitmapName); var retArray = new Array(); if (aData.framesCount == undefined) { } if (aData.frameHeight == undefined) { aData.frameHeight = srcBitmap.height / aData.framesCount; } if (aData.frameWidth == undefined) { aData.frameWidth = srcBitmap.width; } if (aData.frameVInterval == undefined) { aData.frameVInterval = 0; } if (aData.frameHOffset == undefined) { aData.frameHOffset0; } var i = 0; while (i < aData.framesCount) { var retBitmap = (new flash.display.BitmapData(aData.frameWidth, aData.frameHeight, true, 0)); retBitmap.copyPixels(srcBitmap, new flash.geom.Rectangle(0, i * (aData.sourceHeight + aData.frameVInterval), 33, aData.sourceHeight), new flash.geom.Point(aData.frameHOffset, 0)); retArray.push(retBitmap); i++; } return(retArray); } static function getBitmap(aname, aData) { if (aData.flipHor != true) { return(flash.display.BitmapData.loadBitmap(aname)); } var aObject = flash.display.BitmapData.loadBitmap(aname); var rotatedData = (new flash.display.BitmapData(aObject.width, aObject.height, true, 0)); var myMatrix = (new flash.geom.Matrix()); myMatrix.scale(-1, 1); myMatrix.translate(aObject.width, 0); rotatedData.draw(aObject, myMatrix); return(rotatedData); } }
Symbol 480 MovieClip [__Packages.Hero] Frame 0
class Hero extends MovieClip { var movementState_, heroX_, _x, resultBitmap_, heroY_, _y, goingFrame_, mt_state_, currentState_, carryClip_, turnState_, getNextHighestDepth, createEmptyMovieClip, topGoLeftArr, topOffsetsx, legsGoLeftArr, legsOffsetsx, bodyHeight_, topBringLeft, topBringRight, legsGoRightArr, topGoRightArr, legsGoVArr, topDefV, topBringV, topBringN, legsGoNArr, topGoNArr, packsArray_, legsStandN, topDefN, legsStandV, legsStandLeft, topDefLeft, legsStandRight, topDefRight, taskArray, currentPack, pathArray_, prevPoint_, hitTest, heroType_, getDepth, swapDepths, currentAct, buttonsArr, optArr, attachBitmap, removeMovieClip; function Hero () { super(); } function set movementState(aval) { movementState_ = aval; //return(movementState); } function get movementState() { return(movementState_); } function set heroX(aVal) { heroX_ = aVal; _x = aVal - (resultBitmap_.width / 2); //return(heroX); } function get heroX() { return(heroX_); } function set heroY(aVal) { heroY_ = aVal; _y = aVal - resultBitmap_.height; //return(heroY); } function get heroY() { return(heroY_); } function get goingFrame() { return(goingFrame_); } function set turnState(aVal) { switch (aVal) { case Game.TURNRIGHT : switch (mt_state_) { case MT_STAY : break; case MT_GO_EMP : if (currentState_ != STATE_GO_RIGHT) { changeState(STATE_GO_RIGHT); } break; case MT_GO_CARRY : if (currentState_ == STATE_BRING_RIGHT) { break; } carryClip_.swapDepths(DEPTH_CARRY_RIGHT); changeState(STATE_BRING_RIGHT); } break; case Game.TURNLEFT : switch (mt_state_) { case MT_STAY : break; case MT_GO_EMP : if (currentState_ != STATE_GO_LEFT) { changeState(STATE_GO_LEFT); } break; case MT_GO_CARRY : if (currentState_ == STATE_BRING_LEFT) { break; } carryClip_.swapDepths(DEPTH_CARRY_LEFT); changeState(STATE_BRING_LEFT); } break; case Game.TURNBACK : switch (mt_state_) { case MT_STAY : break; case MT_GO_EMP : if (currentState_ != STATE_GO_V) { changeState(STATE_GO_V); } break; case MT_GO_CARRY : if (currentState_ == STATE_BRING_V) { break; } carryClip_.swapDepths(DEPTH_CARRY_V); changeState(STATE_BRING_V); } break; case Game.TURNFRONT : switch (mt_state_) { case MT_STAY : break; case MT_GO_EMP : if (currentState_ != STATE_GO_N) { changeState(STATE_GO_N); } break; case MT_GO_CARRY : if (currentState_ == STATE_BRING_N) { break; } carryClip_.swapDepths(DEPTH_CARRY_N); changeState(STATE_BRING_N); } } //return(turnState); } function get turnState() { return(turnState_); } function attachCarry(aName) { if (carryClip_ != undefined) { carryClip_.swapDepths(getNextHighestDepth()); carryClip_.removeMovieClip(); delete carryClip_; } carryClip_ = createEmptyMovieClip(aName, 10000); carryClip_.attachBitmap(flash.display.BitmapData.loadBitmap(Scene.TASKSDATA[aName].carrys), 0); carryClip_._y = 10; carryClip_.serviceName = aName; mt_state_ = MT_GO_CARRY; } function detachCarry() { mt_state_ = MT_GO_EMP; carryClip_.swapDepths(getNextHighestDepth()); carryClip_.removeMovieClip(); delete carryClip_; carryClip_ = undefined; } function set goingFrame(aVal) { goingFrame_ = Math.floor(aVal); switch (currentState_) { case STATE_GO_LEFT : resultBitmap_.colorTransform(resultBitmap_.rectangle, Game.transparent_); resultBitmap_.copyPixels(topGoLeftArr[goingFrame_], topGoLeftArr[goingFrame_].rectangle, new flash.geom.Point(topOffsetsx[currentState_], 0)); resultBitmap_.copyPixels(legsGoLeftArr[goingFrame_], legsGoLeftArr[goingFrame_].rectangle, new flash.geom.Point(legsOffsetsx[currentState_], bodyHeight_), null, null, true); break; case STATE_BRING_LEFT : resultBitmap_.colorTransform(resultBitmap_.rectangle, Game.transparent_); resultBitmap_.copyPixels(topBringLeft, topBringLeft.rectangle, new flash.geom.Point(topOffsetsx[currentState_], 0)); resultBitmap_.copyPixels(legsGoLeftArr[goingFrame_], legsGoLeftArr[goingFrame_].rectangle, new flash.geom.Point(legsOffsetsx[currentState_], bodyHeight_), null, null, true); break; case STATE_BRING_RIGHT : resultBitmap_.colorTransform(resultBitmap_.rectangle, Game.transparent_); resultBitmap_.copyPixels(topBringRight, topBringRight.rectangle, new flash.geom.Point(topOffsetsx[currentState_], 0)); resultBitmap_.copyPixels(legsGoRightArr[goingFrame_], legsGoRightArr[goingFrame_].rectangle, new flash.geom.Point(legsOffsetsx[currentState_], bodyHeight_), null, null, true); break; case STATE_GO_RIGHT : resultBitmap_.colorTransform(resultBitmap_.rectangle, Game.transparent_); resultBitmap_.copyPixels(topGoRightArr[goingFrame_], topGoRightArr[goingFrame_].rectangle, new flash.geom.Point(topOffsetsx[currentState_], 0)); resultBitmap_.copyPixels(legsGoRightArr[goingFrame_], legsGoRightArr[goingFrame_].rectangle, new flash.geom.Point(legsOffsetsx[currentState_], bodyHeight_), null, null, true); break; case STATE_GO_V : resultBitmap_.colorTransform(resultBitmap_.rectangle, Game.transparent_); resultBitmap_.copyPixels(legsGoVArr[goingFrame_], legsGoVArr[goingFrame_].rectangle, new flash.geom.Point(legsOffsetsx[currentState_], bodyHeight_), null, null, true); resultBitmap_.copyPixels(topDefV, topDefV.rectangle, new flash.geom.Point(topOffsetsx[currentState_], 0), null, null, true); break; case STATE_BRING_V : resultBitmap_.colorTransform(resultBitmap_.rectangle, Game.transparent_); resultBitmap_.copyPixels(legsGoVArr[goingFrame_], legsGoVArr[goingFrame_].rectangle, new flash.geom.Point(legsOffsetsx[currentState_], bodyHeight_), null, null, true); resultBitmap_.copyPixels(topBringV, topBringV.rectangle, new flash.geom.Point(topOffsetsx[currentState_], 0), null, null, true); break; case STATE_BRING_N : resultBitmap_.colorTransform(resultBitmap_.rectangle, Game.transparent_); resultBitmap_.copyPixels(topBringN, topBringN.rectangle, new flash.geom.Point(topOffsetsx[currentState_], 0)); resultBitmap_.copyPixels(legsGoNArr[goingFrame_], legsGoNArr[goingFrame_].rectangle, new flash.geom.Point(legsOffsetsx[currentState_], bodyHeight_), null, null, true); break; case STATE_GO_N : resultBitmap_.colorTransform(resultBitmap_.rectangle, Game.transparent_); resultBitmap_.copyPixels(legsGoNArr[goingFrame_], legsGoNArr[goingFrame_].rectangle, new flash.geom.Point(legsOffsetsx[currentState_], bodyHeight_), null, null, true); resultBitmap_.copyPixels(topGoNArr[goingFrame_], topGoNArr[goingFrame_].rectangle, new flash.geom.Point(topOffsetsx[currentState_], 0), null, null, true); } //return(goingFrame); } function nextCycle() { goingFrame_ = 0; playMoving(); } function playMoving() { com.mosesSupposes.fuse.ZigoEngine.doTween(this, "goingFrame", [7], playTime_, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"nextCycle"}); } function addPack(aPack) { packsArray_.push(aPack); } function changeState(aState) { currentState_ = aState; switch (aState) { case STATE_STAND_N : resultBitmap_.colorTransform(resultBitmap_.rectangle, Game.transparent_); resultBitmap_.copyPixels(legsStandN, legsStandN.rectangle, new flash.geom.Point(legsOffsetsx[aState], bodyHeight_), null, null, true); resultBitmap_.copyPixels(topDefN, topDefN.rectangle, new flash.geom.Point(topOffsetsx[aState], 0), null, null, true); return; case STATE_STAND_V : resultBitmap_.colorTransform(resultBitmap_.rectangle, Game.transparent_); resultBitmap_.copyPixels(legsStandV, legsStandV.rectangle, new flash.geom.Point(0, bodyHeight_)); resultBitmap_.copyPixels(topDefV, topDefV.rectangle, new flash.geom.Point(topOffsetsx[aState], 0), null, null, true); return; case STATE_STAND_L : resultBitmap_.colorTransform(resultBitmap_.rectangle, Game.transparent_); resultBitmap_.copyPixels(legsStandLeft, legsStandLeft.rectangle, new flash.geom.Point(0, bodyHeight_)); resultBitmap_.copyPixels(topDefLeft, topDefLeft.rectangle, new flash.geom.Point(topOffsetsx[aState], 0), null, null, true); return; case STATE_STAND_R : resultBitmap_.colorTransform(resultBitmap_.rectangle, Game.transparent_); resultBitmap_.copyPixels(legsStandRight, legsStandRight.rectangle, new flash.geom.Point(legsOffsetsx[aState], bodyHeight_)); resultBitmap_.copyPixels(topDefRight, topDefRight.rectangle, new flash.geom.Point(topOffsetsx[aState], 0), null, null, true); return; case STATE_GO_LEFT : case STATE_GO_RIGHT : case STATE_GO_V : case STATE_GO_N : case STATE_BRING_LEFT : case STATE_BRING_RIGHT : case STATE_BRING_V : case STATE_BRING_N : goingFrame = (0); playMoving(); } } function addTask(taskdata) { taskArray.push(taskdata); } function addActionPack(packData) { taskArray.push(packData); } function startPack(aPack) { if (currentPack == undefined) { currentPack = aPack; if ((carryClip_.serviceName != undefined) && (aPack.packTask == carryClip_.serviceName)) { currentPack = Actions.clearGotoAct(Scene.TASKSDATA[carryClip_.serviceName].firstObj, currentPack); currentPack = Actions.clearTakeServicePack(carryClip_.serviceName, currentPack); } doNextAct(); } else { addPack(aPack); } } function doMove() { if (pathArray_.length == 0) { delete prevPoint_; prevPoint_ = undefined; doNextAct(); } else { var nextPointa = pathArray_.shift(); var nextX = Game.map_.XConvertToLocal(nextPointa[1]); var nextY = Game.map_.YConvertToLocal(nextPointa[0]); if (prevPoint_ == undefined) { prevPoint_ = new flash.geom.Point(heroX, heroY); } var nextPoint = (new flash.geom.Point(nextX + 10, nextY + 10)); var dx = ((nextX - heroX) + 10); var dy = ((nextY - heroY) + 10); var dirAngle = Math.atan2(dy, dx); var distance = flash.geom.Point.distance(prevPoint_, nextPoint); if (carryClip_._name == undefined) { mt_state_ = MT_GO_EMP; } else { mt_state_ = MT_GO_CARRY; } var turningState = Game.getTurnAnim(dirAngle); turnState = (turningState); com.mosesSupposes.fuse.ZigoEngine.doTween(this, ["heroX", "heroY"], [nextX + 10, nextY + 10], distance / velocity, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"doMove", updfunc:"checkDepth"}); prevPoint_.x = nextX + 10; prevPoint_.y = nextY + 10; delete nextPoint; } } function checkDepth() { if (hitTest(Scene.HEROESARR[(MAX_HEROES - heroType_) - 1])) { if (((heroY > Scene.HEROESARR[(MAX_HEROES - heroType_) - 1].heroY) && (getDepth() < Scene.HEROESARR[(MAX_HEROES - heroType_) - 1].getDepth())) || ((heroY < Scene.HEROESARR[(MAX_HEROES - heroType_) - 1].heroY) && (getDepth() > Scene.HEROESARR[(MAX_HEROES - heroType_) - 1].getDepth()))) { swapDepths(Scene.HEROESARR[(MAX_HEROES - heroType_) - 1]); } } } function startMoving(aPos) { pathArray_ = Pathfinding.findPath(Game.map_.map, Game.map_.YConvertToMap(heroY), Game.map_.XConvertToMap(heroX), Game.map_.YConvertToMap(aPos.y), Game.map_.XConvertToMap(aPos.x)); doMove(); } function doNextAct() { if (currentPack.length > 0) { var aAction = currentPack.shift(); doAction(aAction); } else if (packsArray_.length > 0) { delete currentPack; currentPack = undefined; var nextPack = packsArray_.shift(); startPack(nextPack); } else { delete currentPack; currentPack = undefined; } } function doAction(aAction) { currentAct = aAction; switch (aAction.acttype) { case "TAKESERVICE" : Scene.GAMESERVICES[aAction.serviceName].checking = Service.CHECK_NONE; if (aAction.serviceName != "WOODS") { Scene.GAMESERVICES[aAction.serviceName].selectn = Service.SELECTIONNONE; } if (Scene.GAMESERVICES[aAction.serviceName] == Scene.firstChecked) { delete Scene.firstChecked; Scene.firstChecked = undefined; } attachCarry(aAction.serviceName); doNextAct(); return; case "CLOUDEDONE" : if (Scene.CLOUDSARRAY[aAction.serviceName].taskKey_ == aAction.cloudTask) { Scene.CLOUDSARRAY[aAction.serviceName].cloudDone(); } if ((Scene.countCheckedTasks(carryClip_.serviceName) == 0) || (packsArray_[0].packTask != carryClip_.serviceName)) { if ((carryClip_.serviceName == "WOODS") && (Scene.GAMESERVICES.WOODS.checking == Service.CHECK_NONE)) { Scene.deselectWoodsRequests(); } detachCarry(); } doNextAct(); return; case "MOVEMENTCUST" : if (((aAction.movmenttarget.checking != Service.CHECK_NONE) && (aAction.movmenttarget._name != undefined)) && (Customers.getServicesByTask(aAction.movmenttarget.customerstate) == aAction.targetTask)) { var aPos = (new flash.geom.Point(Scene.TASKSDATA[aAction.movmenttarget.cloud_.taskKey_].herox, Scene.TASKSDATA[aAction.movmenttarget.cloud_.taskKey_].heroy)); startMoving(aPos); } else if (packsArray_.length == 0) { startMoving(WAITINGPOINTS[heroType_]); } else { currentPack.splice(0, currentPack.length); doNextAct(); } return; case "MOVEMENT" : if (aAction.movmenttarget == "RETURNPOINT") { if (packsArray_.length == 0) { startMoving(WAITINGPOINTS[heroType_]); } else { currentPack.pop(); currentPack.pop(); doNextAct(); } } else { if ((currentPack.packTask == "Snowboard_Broken") && (aAction.movmenttarget == currentPack.packTask)) { var aPos = (new flash.geom.Point(Scene.BROKEDATA[aAction.movmenttarget].herox, Scene.BROKEDATA[aAction.movmenttarget].heroy)); } else { var aPos = (new flash.geom.Point(Scene.SERVICESDATA[aAction.movmenttarget].herox, Scene.SERVICESDATA[aAction.movmenttarget].heroy)); } startMoving(aPos); } return; case "SETDELAY" : var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.push({func:"doNextAct", scope:this, delay:aAction.delayLength}); aFuse.start(); return; case "CHANGEMTSTATE" : if (aAction.newState == STATE_STAND_N) { changeState(STATE_STAND_N); } doNextAct(); } } static function removePack(packTarget, targetTask) { for (var key in Scene.HEROESARR) { var i = 0; while (i < Scene.HEROESARR[key].packsArray_.length) { if ((Scene.HEROESARR[key].packsArray_[i].packTarget == packTarget) && (Scene.HEROESARR[key].packsArray_[i].packTask == targetTask)) { Scene.HEROESARR[key].packsArray_.splice(i, 1); break; } i++; } if ((Scene.HEROESARR[key].currentPack.packTarget == packTarget) && (Scene.HEROESARR[key].currentPack.packTask == targetTask)) { Scene.HEROESARR[key].detachCarry(); Scene.HEROESARR[key].currentPack.splice(0, Scene.HEROESARR[key].currentPack.length); Scene.HEROESARR[key].pathArray_.splice(0, Scene.HEROESARR[key].pathArray_.length); var retAct = new Array(); retAct = Actions.addFinalActs(retAct); Scene.HEROESARR[key].startPack(retAct); } } } function create(aType) { buttonsArr = new Array(); packsArray_ = new Array(); heroType_ = aType; mt_state_ = MT_STAY; switch (aType) { case HERO_MAN : legsOffsetsx = new Array(); topOffsetsx = new Array(); bodyHeight_ = BODY_HEIGHT_MAN; legsOffsetsx[STATE_STAND_N] = -3; legsOffsetsx[STATE_STAND_L] = 0; legsOffsetsx[STATE_STAND_V] = 0; legsOffsetsx[STATE_STAND_R] = -3; topOffsetsx[STATE_STAND_N] = 0; topOffsetsx[STATE_STAND_L] = 0; topOffsetsx[STATE_STAND_V] = 0; topOffsetsx[STATE_STAND_R] = 0; legsOffsetsx[STATE_GO_LEFT] = -3; topOffsetsx[STATE_GO_LEFT] = 2; legsOffsetsx[STATE_GO_RIGHT] = -5; topOffsetsx[STATE_GO_RIGHT] = 5; topOffsetsx[STATE_GO_V] = 0; legsOffsetsx[STATE_GO_V] = -3; topOffsetsx[STATE_GO_N] = 3; legsOffsetsx[STATE_GO_N] = 0; topOffsetsx[STATE_BRING_LEFT] = 1; legsOffsetsx[STATE_BRING_LEFT] = -3; topOffsetsx[STATE_BRING_RIGHT] = 4; legsOffsetsx[STATE_BRING_RIGHT] = -6; topOffsetsx[STATE_BRING_N] = 2; legsOffsetsx[STATE_BRING_N] = 0; topOffsetsx[STATE_BRING_V] = 0; legsOffsetsx[STATE_BRING_V] = -2; legsGoLeftArr = BF.getAnimFrames2({bitmapName:"MMLegs_Go_L", framesCount:8}); legsGoRightArr = BF.getAnimFrames2({bitmapName:"MMLegs_Go_L", framesCount:8, flipHor:true}); legsGoNArr = BF.getAnimFrames2({bitmapName:"MMLegs_Go_N", framesCount:8}); legsGoVArr = BF.getAnimFrames2({bitmapName:"MMLegs_Go_V", framesCount:8}); topGoLeftArr = BF.getAnimFrames2({bitmapName:"MMTop_Go_L", framesCount:8}); topGoRightArr = BF.getAnimFrames2({bitmapName:"MMTop_Go_L", framesCount:8, flipHor:true}); topGoNArr = BF.getAnimFrames2({bitmapName:"MMTop_Go_N", framesCount:8}); optArr = BF.getAnimFrames2({bitmapName:"MMTop_Repair_N", framesCount:3}); topBringLeft = BF.getBitmap2({bitmapName:"MMTop_Bring_L"}); topBringRight = BF.getBitmap2({bitmapName:"MMTop_Bring_L", flipHor:true}); topBringV = BF.getBitmap2({bitmapName:"MMTop_Bring_V"}); topBringN = BF.getBitmap2({bitmapName:"MMTop_Def_N"}); topDefLeft = BF.getBitmap2({bitmapName:"MMTop_Def_L"}); topDefRight = BF.getBitmap2({bitmapName:"MMTop_Def_L", flipHor:true}); topDefN = BF.getBitmap2({bitmapName:"MMTop_Def_N"}); topDefV = BF.getBitmap2({bitmapName:"MMTop_Def_V"}); legsStandV = BF.getBitmap2({bitmapName:"MMLegs_Stand_V"}); legsStandN = BF.getBitmap2({bitmapName:"MMLegs_Stand_N"}); legsStandLeft = BF.getBitmap2({bitmapName:"MMLegs_Stand_L"}); legsStandRight = BF.getBitmap2({bitmapName:"MMLegs_Stand_L", flipHor:true}); resultBitmap_ = new flash.display.BitmapData(MAN_SPRITE_WIDTH, MAN_SPRITE_HEIGHT, true, 0); attachBitmap(resultBitmap_, 0); changeState(STATE_STAND_N); return; case HERO_WOMAN : legsOffsetsx = new Array(); topOffsetsx = new Array(); bodyHeight_ = BODY_HEIGHT_WOMAN; legsOffsetsx[STATE_STAND_N] = -3; topOffsetsx[STATE_STAND_N] = 2; legsOffsetsx[STATE_STAND_L] = 0; legsOffsetsx[STATE_STAND_V] = 0; topOffsetsx[STATE_STAND_V] = 3; legsOffsetsx[STATE_STAND_R] = -3; legsOffsetsx[STATE_GO_LEFT] = -4; topOffsetsx[STATE_GO_LEFT] = 0; legsOffsetsx[STATE_GO_RIGHT] = -9; topOffsetsx[STATE_GO_RIGHT] = 3; legsOffsetsx[STATE_GO_V] = 1; topOffsetsx[STATE_GO_V] = 2; topOffsetsx[STATE_GO_N] = 4; legsOffsetsx[STATE_GO_N] = 0; topOffsetsx[STATE_BRING_LEFT] = 1; legsOffsetsx[STATE_BRING_LEFT] = -8; topOffsetsx[STATE_BRING_RIGHT] = 5; legsOffsetsx[STATE_BRING_RIGHT] = -8; legsOffsetsx[STATE_BRING_V] = 1; topOffsetsx[STATE_BRING_V] = 4; topOffsetsx[STATE_BRING_N] = 6; legsGoLeftArr = BF.getAnimFrames2({bitmapName:"MWLegs_Go_L", framesCount:8}); legsGoRightArr = BF.getAnimFrames2({bitmapName:"MWLegs_Go_L", framesCount:8, flipHor:true}); legsGoNArr = BF.getAnimFrames2({bitmapName:"MWLegs_Go_N", framesCount:8}); legsGoVArr = BF.getAnimFrames2({bitmapName:"MWLegs_Go_V", framesCount:8}); topGoLeftArr = BF.getAnimFrames2({bitmapName:"MWTop_Go_L", framesCount:8}); topGoRightArr = BF.getAnimFrames2({bitmapName:"MWTop_Go_L", framesCount:8, flipHor:true}); topGoNArr = BF.getAnimFrames2({bitmapName:"MWTop_Go_N", framesCount:8}); optArr = BF.getAnimFrames2({bitmapName:"MWTop_Cleaning_N", framesCount:3}); topBringLeft = BF.getBitmap2({bitmapName:"MWTop_Bring_L"}); topBringRight = BF.getBitmap2({bitmapName:"MWTop_Bring_L", flipHor:true}); topBringV = BF.getBitmap2({bitmapName:"MWTop_Bring_V"}); topBringN = BF.getBitmap2({bitmapName:"MWTop_Bring_N"}); topDefLeft = BF.getBitmap2({bitmapName:"MWTop_Def_L"}); topDefRight = BF.getBitmap2({bitmapName:"MWTop_Def_L", flipHor:true}); topDefN = BF.getBitmap2({bitmapName:"MWTop_Def_N"}); topDefV = BF.getBitmap2({bitmapName:"MWTop_Def_V"}); legsStandV = BF.getBitmap2({bitmapName:"MWLegs_Stand_V"}); legsStandN = BF.getBitmap2({bitmapName:"MWLegs_Stand_N"}); legsStandLeft = BF.getBitmap2({bitmapName:"MWLegs_Stand_L"}); legsStandRight = BF.getBitmap2({bitmapName:"MWLegs_Stand_L", flipHor:true}); resultBitmap_ = new flash.display.BitmapData(WOMAN_SPRITE_WIDTH, WOMAN_SPRITE_HEIGHT, true, 0); attachBitmap(resultBitmap_, 0); changeState(STATE_STAND_N); } } function destroy() { carryClip_.swapDepths(getNextHighestDepth()); carryClip_.removeMovieClip(); legsGoLeftArr.splice(0, legsGoLeftArr.length); legsGoRightArr.splice(0, legsGoRightArr.length); legsGoNArr.splice(0, legsGoNArr.length); legsGoVArr.splice(0, legsGoVArr.length); topGoLeftArr.splice(0, topGoLeftArr.length); topGoRightArr.splice(0, topGoRightArr.length); topGoNArr.splice(0, topGoNArr.length); optArr.splice(0, optArr.length); removeMovieClip(); } static var HERO_MAN = 0; static var HERO_WOMAN = 1; static var MAX_HEROES = 2; static var MAN_SPRITE_WIDTH = 34; static var MAN_SPRITE_HEIGHT = 70; static var WOMAN_SPRITE_WIDTH = 34; static var WOMAN_SPRITE_HEIGHT = 68; static var WAITINGPOINTS = new Array(new flash.geom.Point(342, 374), new flash.geom.Point(293, 374)); static var MST_ONWAITINGPOINT = 0; static var basevelocity = 200; static var addsvelocity = 0; static var velocity = 350; static var STATE_STAND_N = 0; static var STATE_STAND_V = 1; static var STATE_STAND_L = 2; static var STATE_STAND_R = 3; static var STATE_GO_LEFT = 4; static var STATE_GO_RIGHT = 5; static var STATE_GO_V = 6; static var STATE_GO_N = 7; static var STATE_BRING_LEFT = 8; static var STATE_BRING_RIGHT = 9; static var STATE_BRING_V = 10; static var STATE_BRING_N = 11; static var DEPTH_CARRY_N = 100; static var DEPTH_CARRY_V = -100; static var DEPTH_CARRY_LEFT = 50; static var DEPTH_CARRY_RIGHT = 50; static var BODY_HEIGHT_MAN = 41; static var BODY_HEIGHT_WOMAN = 36; static var playTime_ = 0.2; static var MT_STAY = 0; static var MT_GO_EMP = 1; static var MT_GO_CARRY = 2; }
Symbol 481 MovieClip [__Packages.com.mosesSupposes.fuse.Fuse] Frame 0
class 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 482 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class 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 483 MovieClip [__Packages.com.mosesSupposes.fuse.FuseItem] Frame 0
class 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 484 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class 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 485 MovieClip [__Packages.Actions] Frame 0
class Actions { function Actions () { } static function getTakeServicePack(serviceName, actPack) { var action = new Object(); action.acttype = "TAKESERVICE"; action.serviceName = serviceName; actPack.push(action); return(actPack); } static function getCloudDonePack(serviceName, taskkey, actPack) { if (actPack == undefined) { var actPack = new Array(); actPack.packName = "Cloud Done: " + taskkey; } var action = new Object(); action.acttype = "CLOUDEDONE"; action.cloudTask = taskkey; action.serviceName = serviceName; actPack.push(action); return(actPack); } static function getDelayedPack(delayLength, actPack) { if (actPack == undefined) { var actPack = new Array(); actPack.packName = "Delayed "; } var action = new Object(); action.acttype = "SETDELAY"; action.delayLength = delayLength; actPack.push(action); return(actPack); } static function getGotoCustPack(targetCust, actPack) { if (actPack == undefined) { var actPack = new Array(); actPack.packName = "Goto: " + targetCust._name; } var action = new Object(); action.acttype = "MOVEMENTCUST"; action.targetTask = Customers.getServicesByTask(targetCust.customerstate); action.movmenttarget = targetCust; actPack.push(action); var action = new Object(); action.acttype = "CHANGEMTSTATE"; action.newState = Hero.STATE_STAND_N; actPack.push(action); return(actPack); } static function getGotoPack(whereGo, actPack) { if (actPack == undefined) { var actPack = new Array(); actPack.packName = "Goto: " + whereGo; } var action = new Object(); action.acttype = "MOVEMENT"; action.movmenttarget = whereGo; actPack.push(action); var action = new Object(); action.acttype = "CHANGEMTSTATE"; action.newState = Hero.STATE_STAND_N; actPack.push(action); return(actPack); } static function addFinalActs(actPack) { var action = new Object(); action.acttype = "MOVEMENT"; action.movmenttarget = "RETURNPOINT"; actPack.push(action); var action = new Object(); action.acttype = "CHANGEMTSTATE"; action.newState = Hero.STATE_STAND_N; actPack.push(action); return(actPack); } static function clearGotoAct(whereGo, actPack) { var i = 0; while (i < actPack.length) { if ((actPack[i].acttype == "MOVEMENT") && (actPack[i].movmenttarget == whereGo)) { actPack.splice(i, 2); break; } i++; } return(actPack); } static function clearTakeServicePack(serviceName, actPack) { var i = 0; while (i < actPack.length) { if ((actPack[i].acttype == "TAKESERVICE") && (actPack[i].serviceName == serviceName)) { actPack.splice(i, 1); break; } i++; } return(actPack); } }
Symbol 486 MovieClip [__Packages.Customers] Frame 0
class Customers extends MovieClip { static var CHILDSBMPSELARR, PARENTSBMPSELARR, CHILDSBMPARR, PARENTSBMPARR; var cloud_, fatherClip_, motherClip_, childClip_, removeMovieClip, selectn_, checking_, cusomer_state_, reqsArr, customer_color_, skateCounter_, _height, currentTask_, placed_, _visible, swapDepths, houseClip_, customer_child_, customer_emotion_, clapw_, clapm_, snowframe_, iceman_, getNextHighestDepth, createEmptyMovieClip, _x, _y; function Customers () { super(); } function destroy() { cloud_.askFuse.destroy(); delete cloud_.askFuse; cloud_.removeMovieClip(); delete cloud_; fatherClip_.removeMovieClip(); delete fatherClip_; motherClip_.removeMovieClip(); delete motherClip_; childClip_.removeMovieClip(); delete childClip_; removeMovieClip(); delete this; } function get selectn() { return(selectn_); } function set selectn(aVal) { if (selectn_ != aVal) { if (cloud_._name != undefined) { if (aVal == SELECTIONNONE) { cloud_.deselect(); } else { cloud_.select(aVal); } } selectn_ = aVal; fatherClip_.selClip = fatherClip_.createEmptyMovieClip("selection", DEPTH_SELECTION); if (aVal != SELECTIONNONE) { fatherClip_.selClip.attachBitmap(PARENTSDATASEL[fatherClip_.currentState][aVal], 0); fatherClip_.selClip._x = PARENTSDATASELPOSES[fatherClip_.currentState].x; fatherClip_.selClip._y = PARENTSDATASELPOSES[fatherClip_.currentState].y; } childClip_.selClip = childClip_.createEmptyMovieClip("selection", DEPTH_SELECTION); if (aVal != SELECTIONNONE) { childClip_.selClip.attachBitmap(CHILDSDATASEL[childClip_.currentState][aVal], 0); childClip_.selClip._x = CHILDSDATASELPOSES[childClip_.currentState].x; childClip_.selClip._y = CHILDSDATASELPOSES[childClip_.currentState].y; } motherClip_.selClip = motherClip_.createEmptyMovieClip("selection", DEPTH_SELECTION); if (aVal != SELECTIONNONE) { motherClip_.selClip.attachBitmap(PARENTSDATASEL[motherClip_.currentState][aVal], 0); motherClip_.selClip._x = PARENTSDATASELPOSES[motherClip_.currentState].x; motherClip_.selClip._y = PARENTSDATASELPOSES[motherClip_.currentState].y; } } //return(selectn); } static function setStateDepths() { } function set checking(aVal) { checking_ = aVal; if (checking_ != Service.CHECK_NONE) { var checkClip = cloud_.createEmptyMovieClip("checkClip", DEPTH_CHECK); checkClip.attachBitmap(flash.display.BitmapData.loadBitmap(Service.CHECKBMPS[aVal]), 0); var servicename = getServicesByTask(cusomer_state_); var startw = checkClip._width; var starth = checkClip._height; checkClip._width = checkClip._width * 2; checkClip._height = checkClip._height * 2; checkClip._x = checkClip._width / 2; checkClip._y = checkClip._height / 2; checkClip._alpha = 50; com.mosesSupposes.fuse.ZigoEngine.doTween(checkClip, ["_width", "_height", "_alpha"], [checkClip._width / 2, checkClip._height / 2, 100], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0); selectn = (SELECTIONNONE); } Scene.GAMESERVICES[servicename].setCheckColor(aVal); //return(checking); } function get checking() { return(checking_); } static function setStateToTaskArr() { STATETOTASKARR.PLACE = CUSTOMER_ENTERING; STATETOTASKARR.Skates = CUSTOMER_SKATING_ASK; STATETOTASKARR.Ski = CUSTOMER_LG_ASK; STATETOTASKARR.Snowboard = CUSTOMER_BOARD_ASK; STATETOTASKARR.Rocket01 = CUSTOMER_ROCKET1_ASK; STATETOTASKARR.Rocket02 = CUSTOMER_ROCKET2_ASK; STATETOTASKARR.HAT = CUSTOMER_HAT_ASK; STATETOTASKARR.OUT = CUSTOMER_OUT; STATETOTASKARR.WOODS = CUSTOMER_WOOD_ASK; } static function getServicesByTask(TaskID) { var retArr = new Array(); for (var key in STATETOTASKARR) { if (STATETOTASKARR[key] == TaskID) { retArr.push(key); } } return(retArr[0]); } function sortRandom(a, b) { var rand1 = Math.random(); var rand2 = Math.random(); if (rand1 < rand2) { return(-1); } if (rand1 > rand2) { return(1); } return(0); } function fillReqsArr() { var objectsNames = LevelsHelper.levelsData[Game.CURRLEVEL].objects; for (var key in objectsNames) { if (Scene.SERVICESDATA[objectsNames[key]].taskName != undefined) { reqsArr.push(Scene.SERVICESDATA[objectsNames[key]].taskName); } } reqsArr.sort(sortRandom); reqsArr.unshift("PLACE"); reqsArr.push("OUT"); } function skateLeft() { childClip_.attachBitmap(CHILDSDATA[customer_color_].boy_Skates_L, 0); com.mosesSupposes.fuse.ZigoEngine.doTween(childClip_, "_x", [-30], 1, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"skateRight"}); } function skateRight() { skateCounter_--; if (skateCounter_ == 0) { com.mosesSupposes.fuse.ZigoEngine.removeTween(childClip_); childClip_.attachBitmap(CHILDSDATA[customer_color_].boy_Stop_N[0], 0); childClip_._x = CHARPOSES[CUSTOMER_SKATING_ASK][customeremotion].child.xpos; childClip_._y = _height - childClip_._height; CCloud.hideCustomer(this); } else { childClip_.attachBitmap(CHILDSDATA[customer_color_].boy_Skates_P, 0); com.mosesSupposes.fuse.ZigoEngine.doTween(childClip_, "_x", [60], 1, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"skateLeft"}); } } function startSkating() { skateCounter_ = SKATE_COUNT_MAX; skateRight(); } function activateRequest(taskName) { currentTask_ = taskName; if ((Scene.TASKSDATA[taskName].btnAdd != undefined) || (taskName == "WOODS")) { cloud_ = Scene.attachCloud(placed_.aName_, 0, taskName); } else if (taskName == "WOODS") { } else { if (taskName != "PLACE") { customerstate = (STATETOTASKARR[taskName]); } customeremotion = (EMO_NORMAL); customerstate = (STATETOTASKARR[taskName]); setStatePosition(); cloud_ = Scene.cloudToCustomer(this, 0, taskName); if (taskName != "PLACE") { Scene.selectYellowServices(taskName); } _visible = true; } } static function canStart(taskname, exclude) { if (Scene.TASKSDATA[taskname].btnAdd != undefined) { return(true); } var i = 0; while (i < Scene.GAMECUSTOMERS.length) { if ((Scene.GAMECUSTOMERS[i] != exclude) && (STATETOTASKARR[taskname] == Scene.GAMECUSTOMERS[i].customerstate)) { return(false); } if ((taskname == "Skates") && (Scene.GAMECUSTOMERS[i].customerstate == CUSTOMER_SKATING)) { return(false); } if ((taskname == "HAT") && (Scene.GAMECUSTOMERS[i].customerstate == CUSTOMER_HATTING)) { return(false); } if ((taskname == "Rocket01") && (Scene.GAMECUSTOMERS[i].customerstate == CUSTOMER_ROCKETING)) { return(false); } if ((taskname == "OUT") && (Scene.LASTCAR != undefined)) { return(false); } i++; } return(true); } function tryNext() { if (reqsArr.length > 1) { var i = 0; while (i < (reqsArr.length - 1)) { if (canStart(reqsArr[i], this)) { var aTask = String(reqsArr[i]); reqsArr.splice(i, 1); if (cloud_ != undefined) { cloud_.cloudDone(); } _visible = false; activateRequest(aTask); return(undefined); } i++; } currentTask_ = "IDLE"; CCloud.hideCustomer(this); } else if (reqsArr.length == 1) { if (canStart(reqsArr[0], this)) { var aTask = String(reqsArr[0]); reqsArr.splice(0, 1); if (cloud_ != undefined) { cloud_.cloudDone(); } _visible = false; activateRequest(aTask); return(undefined); } currentTask_ = "IDLE"; CCloud.hideCustomer(this); } } function place(aHouse) { TutorHelper.tutorials.PLACE.done = true; swapDepths(Scene.SCENEINSTANCE.getNextHighestDepth()); placed_ = aHouse; cloud_.cloudDone(); _visible = false; Scene.PICKEDCUSTOMER = undefined; cusomer_state_ = CUSTOMER_IDLE; aHouse.dataArr_.owned = true; var houses = Scene.getServicesByName("HOUSE"); Scene.selectObjects(houses, Service.SELECTIONNONE); FX.houseEffect(aHouse); houseClip_ = aHouse.displayClip_; if (Scene.customerEntered < 5) { Scene.carOut(true); } else { Scene.carOut(false); } var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.__set__target(this); aFuse.autoClear = true; aFuse.push({func:"tryNext", scope:this, delay:1.5}); aFuse.start(); selectn = (SELECTIONNONE); } static function setCustomersPoses() { CUSTOMERSPOSES[CUSTOMER_ENTERING] = new flash.geom.Point(160, 340); CUSTOMERSPOSES[CUSTOMER_SKATING_ASK] = new flash.geom.Point(280, 290); CUSTOMERSPOSES[CUSTOMER_HAT_ASK] = new flash.geom.Point(420, 270); CUSTOMERSPOSES[CUSTOMER_HATTING] = new flash.geom.Point(420, 270); CUSTOMERSPOSES[CUSTOMER_BOARD_ASK] = new flash.geom.Point(20, 310); CUSTOMERSPOSES[CUSTOMER_LG_ASK] = new flash.geom.Point(560, 305); CUSTOMERSPOSES[CUSTOMER_ROCKET1_ASK] = new flash.geom.Point(175, 255); CUSTOMERSPOSES[CUSTOMER_ROCKET2_ASK] = new flash.geom.Point(175, 255); CUSTOMERSPOSES[CUSTOMER_OUT] = new flash.geom.Point(200, 300); } static function setColor(target, aVal, key) { if (aVal[key].framesCount != undefined) { target[key] = BF.getAnimFrames2(aVal[key]); } else { target[key] = BF.getBitmap2(aVal[key]); } } static function setColors() { for (var key in CHILDSBMPSELARR) { for (var all in CHILDSBMPSELARR[key]) { CHILDSDATASEL[all] = new Array(); CHILDSDATASEL[all][SELECTIONW] = BF.getBitmap2(CHILDSBMPSELARR[key][all]); CHILDSDATASELPOSES[all] = CHILDSBMPSELARR[key][all].pos; var selectnYellow_ = (new flash.display.BitmapData(CHILDSDATASEL[all][SELECTIONW].width, CHILDSDATASEL[all][SELECTIONW].height, true, 0)); selectnYellow_.copyPixels(CHILDSDATASEL[all][SELECTIONW], CHILDSDATASEL[all][SELECTIONW].rectangle, new flash.geom.Point(0, 0)); selectnYellow_.colorTransform(selectnYellow_.rectangle, new flash.geom.ColorTransform(1, 0, 0, 1, 255, 100, 0, 0)); CHILDSDATASEL[all][SELECTIONY] = selectnYellow_; } } for (var key in PARENTSBMPSELARR) { for (var all in PARENTSBMPSELARR[key]) { PARENTSDATASEL[all] = new Array(); PARENTSDATASEL[all][SELECTIONW] = BF.getBitmap2(PARENTSBMPSELARR[key][all]); PARENTSDATASELPOSES[all] = PARENTSBMPSELARR[key][all].pos; var selectnYellow_ = (new flash.display.BitmapData(PARENTSDATASEL[all][SELECTIONW].width, PARENTSDATASEL[all][SELECTIONW].height, true, 0)); selectnYellow_.copyPixels(PARENTSDATASEL[all][SELECTIONW], PARENTSDATASEL[all][SELECTIONW].rectangle, new flash.geom.Point(0, 0)); selectnYellow_.colorTransform(selectnYellow_.rectangle, new flash.geom.ColorTransform(1, 0, 0, 1, 255, 100, 0, 0)); PARENTSDATASEL[all][SELECTIONY] = selectnYellow_; } } } static function setChildsBmpArr() { CHILDSBMPARR = new Array(); PARENTSBMPARR = new Array(); CHILDSBMPSELARR = new Array(); PARENTSBMPSELARR = new Array(); CHILDSBMPSELARR[CHILDBOY] = {boy_Stop_Hi_N:{bitmapName:"boy_Stop_Hi_N_Sel"}, boy_Stop_N:{bitmapName:"boy_Stop_N_Sel", pos:new flash.geom.Point(5, -2)}}; CHILDSBMPSELARR[CHILDGIRL] = {girl_Stop_Hi_N:{bitmapName:"girl_Stop_Hi_N_Sel"}, girl_Stop_N:{bitmapName:"girl_Stop_N_Sel", pos:new flash.geom.Point(5, -2)}}; PARENTSBMPSELARR[PARENTFATHER] = {man_Stop_Hi_N:{bitmapName:"man_Stop_Hi_N_Sel"}, man_Stop_N:{bitmapName:"man_Stop_N_Sel", pos:new flash.geom.Point(2, -2)}}; PARENTSBMPSELARR[PARENTMOTHER] = {wman_Stop_Hi_N:{bitmapName:"wman_Stop_Hi_N_Sel"}, wman_Stop_N:{bitmapName:"wman_Stop_N_Sel", pos:new flash.geom.Point(2, -2)}}; CHILDSBMPARR[CHILDBOY] = new Array(); CHILDSBMPARR[CHILDBOY][COLOR_GREEN] = {boy_Skates_P:{bitmapName:"boy_Skates_P"}, boy_Skates_L:{bitmapName:"boy_Skates_P", flipHor:true}, boy_Snowman_N:{bitmapName:"boy_Snowman_N", framesCount:2}, boy_Stop_Angry_N:{bitmapName:"boy_Stop_Angry_N", framesCount:2}, boy_Stop_Hi_N:{bitmapName:"boy_Stop_Hi_N"}, boy_Stop_N:{bitmapName:"boy_Stop_N", framesCount:4}}; CHILDSBMPARR[CHILDBOY][COLOR_RED] = {boy_Skates_P:{bitmapName:"boy_Skates_P", repPixels:{saturation:SATURATION_RED}}, boy_Skates_L:{bitmapName:"boy_Skates_P", flipHor:true, repPixels:{saturation:SATURATION_RED}}, boy_Snowman_N:{bitmapName:"boy_Snowman_N", framesCount:2, repPixels:{saturation:SATURATION_RED}}, boy_Stop_Angry_N:{bitmapName:"boy_Stop_Angry_N", framesCount:2, repPixels:{saturation:SATURATION_RED}}, boy_Stop_Hi_N:{bitmapName:"boy_Stop_Hi_N", repPixels:{saturation:SATURATION_RED}}, boy_Stop_N:{bitmapName:"boy_Stop_N", framesCount:4, repPixels:{saturation:SATURATION_RED}}}; CHILDSBMPARR[CHILDBOY][COLOR_BLUE] = {boy_Skates_P:{bitmapName:"boy_Skates_P", repPixels:{saturation:SATURATION_BLUE}}, boy_Skates_L:{bitmapName:"boy_Skates_P", flipHor:true, repPixels:{saturation:SATURATION_BLUE}}, boy_Snowman_N:{bitmapName:"boy_Snowman_N", framesCount:2, repPixels:{saturation:SATURATION_BLUE}}, boy_Stop_Angry_N:{bitmapName:"boy_Stop_Angry_N", framesCount:2, repPixels:{saturation:SATURATION_BLUE}}, boy_Stop_Hi_N:{bitmapName:"boy_Stop_Hi_N", repPixels:{saturation:SATURATION_BLUE}}, boy_Stop_N:{bitmapName:"boy_Stop_N", framesCount:4, repPixels:{saturation:SATURATION_BLUE}}}; CHILDSBMPARR[CHILDBOY][COLOR_YELLOW] = {boy_Skates_P:{bitmapName:"boy_Skates_P", repPixels:{saturation:SATURATION_YELLOW}}, boy_Skates_L:{bitmapName:"boy_Skates_P", flipHor:true, repPixels:{saturation:SATURATION_YELLOW}}, boy_Snowman_N:{bitmapName:"boy_Snowman_N", framesCount:2, repPixels:{saturation:SATURATION_YELLOW}}, boy_Stop_Angry_N:{bitmapName:"boy_Stop_Angry_N", framesCount:2, repPixels:{saturation:SATURATION_YELLOW}}, boy_Stop_Hi_N:{bitmapName:"boy_Stop_Hi_N", repPixels:{saturation:SATURATION_YELLOW}}, boy_Stop_N:{bitmapName:"boy_Stop_N", framesCount:4, repPixels:{saturation:SATURATION_YELLOW}}}; CHILDSBMPARR[CHILDBOY][COLOR_VIOLETT] = {boy_Skates_P:{bitmapName:"boy_Skates_P", repPixels:{saturation:SATURATION_CYAN}}, boy_Skates_L:{bitmapName:"boy_Skates_P", flipHor:true, repPixels:{saturation:SATURATION_CYAN}}, boy_Snowman_N:{bitmapName:"boy_Snowman_N", framesCount:2, repPixels:{saturation:SATURATION_CYAN}}, boy_Stop_Angry_N:{bitmapName:"boy_Stop_Angry_N", framesCount:2, repPixels:{saturation:SATURATION_CYAN}}, boy_Stop_Hi_N:{bitmapName:"boy_Stop_Hi_N", repPixels:{saturation:SATURATION_CYAN}}, boy_Stop_N:{bitmapName:"boy_Stop_N", framesCount:4, repPixels:{saturation:SATURATION_CYAN}}}; CHILDSBMPARR[CHILDGIRL] = {girl_Skates_P:{bitmapName:"boy_Skates_P"}, girl_Skates_L:{bitmapName:"girl_Skates_P", flipHor:true}, girl_Snowman_N:{bitmapName:"boy_Snowman_N", framesCount:2}, girl_Stop_Angry_N:{bitmapName:"girl_Stop_Angry_N", framesCount:2}, girl_Stop_Hi_N:{bitmapName:"girl_Stop_Hi_N"}, girl_Stop_N:{bitmapName:"boy_Stop_N", framesCount:4}}; PARENTSBMPARR[PARENTFATHER] = new Array(); PARENTSBMPARR[PARENTFATHER][COLOR_GREEN] = {man_Stop_Angry_N:{bitmapName:"man_Stop_Angry_N", framesCount:2}, man_Rocket_P:{bitmapName:"man_Rocket_P"}, man_Stop_Clap_N:{bitmapName:"man_Stop_Clap_N", framesCount:2}, man_Stop_Hi_N:{bitmapName:"man_Stop_Hi_N"}, man_Stop_Joy_N:{bitmapName:"man_Stop_Joy_N"}, man_Stop_N:{bitmapName:"man_Stop_N", framesCount:4}}; PARENTSBMPARR[PARENTFATHER][COLOR_RED] = {man_Stop_Angry_N:{bitmapName:"man_Stop_Angry_N", framesCount:2, repPixels:{saturation:SATURATION_RED}}, man_Rocket_P:{bitmapName:"man_Rocket_P", repPixels:{saturation:SATURATION_RED}}, man_Stop_Clap_N:{bitmapName:"man_Stop_Clap_N", framesCount:2, repPixels:{saturation:SATURATION_RED}}, man_Stop_Hi_N:{bitmapName:"man_Stop_Hi_N", repPixels:{saturation:SATURATION_RED}}, man_Stop_Joy_N:{bitmapName:"man_Stop_Joy_N", repPixels:{saturation:SATURATION_RED}}, man_Stop_N:{bitmapName:"man_Stop_N", framesCount:4, repPixels:{saturation:SATURATION_RED}}}; PARENTSBMPARR[PARENTFATHER][COLOR_BLUE] = {man_Stop_Angry_N:{bitmapName:"man_Stop_Angry_N", framesCount:2, repPixels:{saturation:SATURATION_BLUE}}, man_Rocket_P:{bitmapName:"man_Rocket_P", repPixels:{saturation:SATURATION_BLUE}}, man_Stop_Clap_N:{bitmapName:"man_Stop_Clap_N", framesCount:2, repPixels:{saturation:SATURATION_BLUE}}, man_Stop_Hi_N:{bitmapName:"man_Stop_Hi_N", repPixels:{saturation:SATURATION_BLUE}}, man_Stop_Joy_N:{bitmapName:"man_Stop_Joy_N", repPixels:{saturation:SATURATION_BLUE}}, man_Stop_N:{bitmapName:"man_Stop_N", framesCount:4, repPixels:{saturation:SATURATION_BLUE}}}; PARENTSBMPARR[PARENTFATHER][COLOR_YELLOW] = {man_Stop_Angry_N:{bitmapName:"man_Stop_Angry_N", framesCount:2, repPixels:{saturation:SATURATION_YELLOW}}, man_Rocket_P:{bitmapName:"man_Rocket_P", repPixels:{saturation:SATURATION_YELLOW}}, man_Stop_Clap_N:{bitmapName:"man_Stop_Clap_N", framesCount:2, repPixels:{saturation:SATURATION_YELLOW}}, man_Stop_Hi_N:{bitmapName:"man_Stop_Hi_N", repPixels:{saturation:SATURATION_YELLOW}}, man_Stop_Joy_N:{bitmapName:"man_Stop_Joy_N", repPixels:{saturation:SATURATION_YELLOW}}, man_Stop_N:{bitmapName:"man_Stop_N", framesCount:4, repPixels:{saturation:SATURATION_YELLOW}}}; PARENTSBMPARR[PARENTFATHER][COLOR_VIOLETT] = {man_Stop_Angry_N:{bitmapName:"man_Stop_Angry_N", framesCount:2, repPixels:{saturation:SATURATION_CYAN}}, man_Rocket_P:{bitmapName:"man_Rocket_P", repPixels:{saturation:SATURATION_CYAN}}, man_Stop_Clap_N:{bitmapName:"man_Stop_Clap_N", framesCount:2, repPixels:{saturation:SATURATION_CYAN}}, man_Stop_Hi_N:{bitmapName:"man_Stop_Hi_N", repPixels:{saturation:SATURATION_CYAN}}, man_Stop_Joy_N:{bitmapName:"man_Stop_Joy_N", repPixels:{saturation:SATURATION_CYAN}}, man_Stop_N:{bitmapName:"man_Stop_N", framesCount:4, repPixels:{saturation:SATURATION_CYAN}}}; PARENTSBMPARR[PARENTMOTHER] = new Array(); PARENTSBMPARR[PARENTMOTHER][COLOR_GREEN] = {wman_Stop_Angry_N:{bitmapName:"wman_Stop_Angry_N", framesCount:2}, wman_Stop_Clap_N:{bitmapName:"wman_Stop_Clap_N", framesCount:2}, wman_Stop_Hi_N:{bitmapName:"wman_Stop_Hi_N"}, wman_Stop_Joy_N:{bitmapName:"wman_Stop_Joy_N"}, wman_Stop_N:{bitmapName:"wman_Stop_N", framesCount:4}}; PARENTSBMPARR[PARENTMOTHER][COLOR_RED] = {wman_Stop_Angry_N:{bitmapName:"wman_Stop_Angry_N", framesCount:2, repPixels:{saturation:SATURATION_RED}}, wman_Stop_Clap_N:{bitmapName:"wman_Stop_Clap_N", framesCount:2, repPixels:{saturation:SATURATION_RED}}, wman_Stop_Hi_N:{bitmapName:"wman_Stop_Hi_N", repPixels:{saturation:SATURATION_RED}}, wman_Stop_Joy_N:{bitmapName:"wman_Stop_Joy_N", repPixels:{saturation:SATURATION_RED}}, wman_Stop_N:{bitmapName:"wman_Stop_N", framesCount:4, repPixels:{saturation:SATURATION_RED}}}; PARENTSBMPARR[PARENTMOTHER][COLOR_YELLOW] = {wman_Stop_Angry_N:{bitmapName:"wman_Stop_Angry_N", framesCount:2, repPixels:{saturation:SATURATION_YELLOW}}, wman_Stop_Clap_N:{bitmapName:"wman_Stop_Clap_N", framesCount:2, repPixels:{saturation:SATURATION_YELLOW}}, wman_Stop_Hi_N:{bitmapName:"wman_Stop_Hi_N", repPixels:{saturation:SATURATION_YELLOW}}, wman_Stop_Joy_N:{bitmapName:"wman_Stop_Joy_N", repPixels:{saturation:SATURATION_YELLOW}}, wman_Stop_N:{bitmapName:"wman_Stop_N", framesCount:4, repPixels:{saturation:SATURATION_YELLOW}}}; PARENTSBMPARR[PARENTMOTHER][COLOR_BLUE] = {wman_Stop_Angry_N:{bitmapName:"wman_Stop_Angry_N", framesCount:2, repPixels:{saturation:SATURATION_BLUE}}, wman_Stop_Clap_N:{bitmapName:"wman_Stop_Clap_N", framesCount:2, repPixels:{saturation:SATURATION_BLUE}}, wman_Stop_Hi_N:{bitmapName:"wman_Stop_Hi_N", repPixels:{saturation:SATURATION_BLUE}}, wman_Stop_Joy_N:{bitmapName:"wman_Stop_Joy_N", repPixels:{saturation:SATURATION_BLUE}}, wman_Stop_N:{bitmapName:"wman_Stop_N", framesCount:4, repPixels:{saturation:SATURATION_BLUE}}}; PARENTSBMPARR[PARENTMOTHER][COLOR_VIOLETT] = {wman_Stop_Angry_N:{bitmapName:"wman_Stop_Angry_N", framesCount:2, repPixels:{saturation:SATURATION_CYAN}}, wman_Stop_Clap_N:{bitmapName:"wman_Stop_Clap_N", framesCount:2, repPixels:{saturation:SATURATION_CYAN}}, wman_Stop_Hi_N:{bitmapName:"wman_Stop_Hi_N", repPixels:{saturation:SATURATION_CYAN}}, wman_Stop_Joy_N:{bitmapName:"wman_Stop_Joy_N", repPixels:{saturation:SATURATION_CYAN}}, wman_Stop_N:{bitmapName:"wman_Stop_N", framesCount:4, repPixels:{saturation:SATURATION_CYAN}}}; setColors(); } static function setCharPoses() { CHARPOSES[CUSTOMER_ENTERING] = new Array(); CHARPOSES[CUSTOMER_ENTERING][EMO_NORMAL] = {mother:{xpos:0, ypos:0}, child:{xpos:20, ypos:0}, father:{xpos:40, ypos:0}}; CHARPOSES[CUSTOMER_SKATING_ASK] = new Array(); CHARPOSES[CUSTOMER_SKATING_ASK][EMO_NORMAL] = {mother:{xpos:0, ypos:0}, child:{xpos:30, ypos:0}, father:{xpos:60, ypos:0}}; CHARPOSES[CUSTOMER_SKATING_ASK][EMO_HI] = {mother:{xpos:0, ypos:0}, child:{xpos:24, ypos:0}, father:{xpos:56, ypos:0}}; CHARPOSES[CUSTOMER_HAT_ASK] = new Array(); CHARPOSES[CUSTOMER_HAT_ASK][EMO_NORMAL] = {mother:{xpos:0, ypos:0}, child:{xpos:30, ypos:0}, father:{xpos:60, ypos:0}}; CHARPOSES[CUSTOMER_HAT_ASK][EMO_HI] = {mother:{xpos:0, ypos:0}, child:{xpos:30, ypos:0}, father:{xpos:60, ypos:0}}; CHARPOSES[CUSTOMER_BOARD_ASK] = new Array(); CHARPOSES[CUSTOMER_BOARD_ASK][EMO_NORMAL] = {mother:{xpos:0, ypos:0}, child:{xpos:20, ypos:0}, father:{xpos:40, ypos:0}}; CHARPOSES[CUSTOMER_BOARD_ASK][EMO_HI] = {mother:{xpos:0, ypos:0}, child:{xpos:20, ypos:0}, father:{xpos:40, ypos:0}}; CHARPOSES[CUSTOMER_LG_ASK] = new Array(); CHARPOSES[CUSTOMER_LG_ASK][EMO_NORMAL] = {mother:{xpos:0, ypos:0}, child:{xpos:20, ypos:0}, father:{xpos:40, ypos:0}}; CHARPOSES[CUSTOMER_LG_ASK][EMO_HI] = {mother:{xpos:0, ypos:0}, child:{xpos:20, ypos:0}, father:{xpos:40, ypos:0}}; CHARPOSES[CUSTOMER_ROCKET1_ASK] = new Array(); CHARPOSES[CUSTOMER_ROCKET1_ASK][EMO_NORMAL] = {mother:{xpos:0, ypos:0}, child:{xpos:20, ypos:0}, father:{xpos:40, ypos:0}}; CHARPOSES[CUSTOMER_ROCKET1_ASK][EMO_HI] = {mother:{xpos:0, ypos:0}, child:{xpos:20, ypos:0}, father:{xpos:40, ypos:0}}; CHARPOSES[CUSTOMER_ROCKET2_ASK] = new Array(); CHARPOSES[CUSTOMER_ROCKET2_ASK][EMO_NORMAL] = {mother:{xpos:10, ypos:0}, child:{xpos:20, ypos:0}, father:{xpos:30, ypos:0}}; CHARPOSES[CUSTOMER_OUT] = new Array(); CHARPOSES[CUSTOMER_OUT][EMO_NORMAL] = {mother:{xpos:10, ypos:0}, child:{xpos:20, ypos:0}, father:{xpos:30, ypos:0}}; CHARPOSES[CUSTOMER_SKATING] = new Array(); CHARPOSES[CUSTOMER_SKATING][EMO_NORMAL] = {mother:{xpos:0, ypos:0}, child:{xpos:20, ypos:10}, father:{xpos:60, ypos:0}}; CHARPOSES[CUSTOMER_SKATING][EMO_HI] = {mother:{xpos:0, ypos:0}, child:{xpos:20, ypos:10}, father:{xpos:60, ypos:0}}; } function set custmerchild(aVal) { customer_child_ = aVal; //return(custmerchild); } function get custmerchild() { return(customer_child_); } function set customeremotion(aVal) { customer_emotion_ = aVal; switch (aVal) { case EMO_HI : setCharsPositions(); break; case EMO_NORMAL : setCharsPositions(); } //return(customeremotion); } function get customeremotion() { return(customer_emotion_); } function set customercolor(aVal) { customer_color_ = aVal; //return(customercolor); } function handsDown() { fatherClip_.attachBitmap(PARENTSDATA[PARENTFATHER][customer_color_].man_Stop_N[0], 0); fatherClip_.currentState = "man_Stop_N"; motherClip_.attachBitmap(PARENTSDATA[PARENTMOTHER][customer_color_].wman_Stop_N[0], 0); motherClip_.currentState = "wman_Stop_N"; childClip_.attachBitmap(CHILDSDATA[customer_color_].boy_Stop_N[0], 0); childClip_.currentState = "boy_Stop_N"; setStatePosition(); customeremotion = (EMO_NORMAL); } function setState(aState) { customerstate = (aState); } function thanx() { fatherClip_.attachBitmap(PARENTSDATA[PARENTFATHER][customer_color_].man_Stop_Joy_N, 0); fatherClip_.currentState = "man_Stop_Hi_N"; motherClip_.attachBitmap(PARENTSDATA[PARENTMOTHER][customer_color_].wman_Stop_Joy_N, 0); motherClip_.currentState = "wman_Stop_Joy_N"; childClip_.attachBitmap(CHILDSDATA[customer_color_].boy_Stop_Hi_N, 0); childClip_.currentState = "boy_Stop_Hi_N"; customeremotion = (EMO_HI); switch (customerstate) { case CUSTOMER_ROCKET1_ASK : var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.__set__target(this); aFuse.autoClear = true; aFuse.push({func:"handsDown", scope:this, delay:1.5}); aFuse.push({func:"setState", args:CUSTOMER_ROCKETING, scope:this}); aFuse.start(); return; case CUSTOMER_ROCKET2_ASK : var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.__set__target(this); aFuse.autoClear = true; aFuse.push({func:"handsDown", scope:this, delay:1.5}); aFuse.push({func:"setState", args:CUSTOMER_ROCKETING, scope:this}); aFuse.start(); return; case CUSTOMER_SKATING_ASK : var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.__set__target(this); aFuse.autoClear = true; aFuse.push({func:"handsDown", scope:this, delay:1.5}); aFuse.push({func:"setState", args:CUSTOMER_SKATING, scope:this}); aFuse.start(); return; case CUSTOMER_HAT_ASK : var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.__set__target(this); aFuse.autoClear = true; aFuse.push({func:"handsDown", scope:this, delay:1.5}); aFuse.push({func:"setState", args:CUSTOMER_HATTING, scope:this}); aFuse.start(); return; default : var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.__set__target(this); aFuse.autoClear = true; aFuse.push({func:"handsDown", scope:this, delay:1.5}); aFuse.push({func:"alphaOutCustomer", scope:CCloud, args:this}); aFuse.start(); } } function get customercolor() { return(customer_color_); } function set clapw(aVal) { if (aVal != clapw_) { clapw_ = aVal; motherClip_.attachBitmap(PARENTSDATA[PARENTMOTHER][customer_color_].wman_Stop_Clap_N[aVal], 0); } //return(clapw); } function set clapm(aVal) { if (aVal != clapm_) { clapm_ = aVal; fatherClip_.attachBitmap(PARENTSDATA[PARENTFATHER][customer_color_].man_Stop_Clap_N[aVal], 0); } //return(clapm); } function get clapw() { return(clapw_); } function get clapm() { return(clapm_); } function set snowframe(aVal) { if (((aVal == 0) || (aVal == 1)) && (snowframe_ != aVal)) { snowframe_ = aVal; childClip_.attachBitmap(CHILDSDATA[customer_color_].boy_Snowman_N[aVal], 0); if (aVal != 0) { iceman_.bitmapInd++; iceman_.attachBitmap(flash.display.BitmapData.loadBitmap("Iceman01_" + iceman_.bitmapInd), 0); } } //return(snowframe); } function get snowframe() { return(snowframe_); } function endRocketing() { } function endHatting() { com.mosesSupposes.fuse.ZigoEngine.removeTween(childClip_); childClip_.attachBitmap(CHILDSDATA[customer_color_].boy_Stop_N[0], 0); childClip_._x = CHARPOSES[CUSTOMER_HAT_ASK][customeremotion].child.xpos; iceman_.swapDepths(getNextHighestDepth()); iceman_.removeMovieClip(); delete iceman_; CCloud.hideCustomer(this); } static function destroyFire(sparkle) { sparkle.swapDepths(sparkle._parent.getNextHighestDepth()); sparkle.removeMovieClip(); delete sparkle; } static function fireOut(sparkle) { destroyFire(sparkle); } function fireWork(sparkle) { var center_x = (sparkle._x + (sparkle._width / 2)); var center_y = (sparkle._y + (sparkle._height / 2)); var fireBmp = flash.display.BitmapData.loadBitmap("Fireworx01"); var blueColorTransform = (new flash.geom.ColorTransform(0, 0, 0, 1, 255, 126, 32, 0)); fireBmp.colorTransform(fireBmp.rectangle, blueColorTransform); sparkle.attachBitmap(fireBmp, 0); var sizeInd = (Math.random() * 3); var maxWidth = (sparkle._width * sizeInd); var maxHeight = (sparkle._height * sizeInd); sparkle._alpha = 100; sparkle._width = 5; sparkle._height = 5; com.mosesSupposes.fuse.ZigoEngine.doTween(sparkle, ["_width", "_height", "_x", "_y", "_alpha"], [maxWidth, maxHeight, center_x - (maxWidth / 2), center_y - (maxHeight / 2), 30], 0.6, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:Customers, func:"fireOut", args:sparkle}); if (com.mosesSupposes.fuse.ZigoEngine.isTweening(this, "clapm") == false) { clapm = (0); com.mosesSupposes.fuse.ZigoEngine.doTween(this, "clapm", 1, 0.3, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:CCloud, cycles:8, roundResults:true, func:"alphaOutCustomer", args:this}); SoundHelper.soundPlay("parents_clap", 2); } } function prepareRocket() { SoundHelper.soundPlay("fireworks"); var rocketBitmap = flash.display.BitmapData.loadBitmap("Sparks"); var blueColorTransform = (new flash.geom.ColorTransform(0, 0, 0, 1, 255, 126, 32, 0)); rocketBitmap.colorTransform(rocketBitmap.rectangle, blueColorTransform); clapw = (0); com.mosesSupposes.fuse.ZigoEngine.doTween(this, "clapw", 1, 0.3, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, cycles:8, roundResults:true}); var i = 0; while (i < 22) { var rocketMc = createEmptyMovieClip("mcRocket" + i, -100 + i); rocketMc.attachBitmap(rocketBitmap, 0); rocketMc._y = -30; com.mosesSupposes.fuse.ZigoEngine.doTween(rocketMc, ["_x", "_y", "_alpha"], [-80 + (Math.random() * 160), -150 + (Math.random() * 30), 30], 0.3, com.mosesSupposes.fuse.PennerEasing.linear, (Math.random() * i) / 10, {scope:this, func:"fireWork", args:rocketMc}); i++; } } function startRocketing() { var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.__set__target(this); aFuse.autoClear = true; aFuse.push({func:"prepareRocket", scope:this, delay:0.5}); aFuse.start(); } function startHatting() { snowframe = (0); iceman_ = createEmptyMovieClip("mc_IceMan", -100); iceman_._x = -5; iceman_._y = -90; iceman_.bitmapInd = 1; iceman_.attachBitmap(flash.display.BitmapData.loadBitmap("Iceman01_1"), 0); com.mosesSupposes.fuse.ZigoEngine.doTween(this, "snowframe", 1, 0.8, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, cycles:8, roundResults:true, func:"endHatting"}); } function set customerstate(aVal) { if (cusomer_state_ != aVal) { cusomer_state_ = aVal; switch (cusomer_state_) { case CUSTOMER_ROCKETING : fatherClip_.attachBitmap(PARENTSDATA[PARENTFATHER][customer_color_].man_Rocket_P, 0); startRocketing(); break; case CUSTOMER_HATTING : childClip_.currentState = "boy_Snowman_N"; setStatePosition(); setCharsPositions(); startHatting(); break; case CUSTOMER_SKATING : customeremotion = (EMO_NORMAL); childClip_.attachBitmap(CHILDSDATA[customer_color_].boy_Skates_P, 0); setStatePosition(); setCharsPositions(); startSkating(); SoundHelper.soundPlay("skating", 2); break; case CUSTOMER_ENTERING : childClip_.attachBitmap(CHILDSDATA[customer_color_].boy_Stop_N[0], 0); childClip_.currentState = "boy_Stop_N"; motherClip_.attachBitmap(PARENTSDATA[PARENTMOTHER][customer_color_].wman_Stop_N[0], 0); motherClip_.currentState = "wman_Stop_N"; fatherClip_.attachBitmap(PARENTSDATA[PARENTFATHER][customer_color_].man_Stop_N[0], 0); fatherClip_.currentState = "man_Stop_N"; swapDepths(Scene.DEPTHSARRAY[CUSTOMER_ENTERING]); break; case CUSTOMER_SKATING_ASK : SoundHelper.soundPlay("family_appear"); break; case CUSTOMER_HAT_ASK : SoundHelper.soundPlay("family_appear"); swapDepths(Scene.DEPTHSARRAY[CUSTOMER_HAT_ASK]); break; case CUSTOMER_BOARD_ASK : SoundHelper.soundPlay("family_appear"); break; case CUSTOMER_LG_ASK : SoundHelper.soundPlay("family_appear"); break; case CUSTOMER_ROCKET1_ASK : SoundHelper.soundPlay("family_appear"); swapDepths(Scene.DEPTHSARRAY[CUSTOMER_ROCKET1_ASK]); break; case CUSTOMER_ROCKET2_ASK : break; case CUSTOMER_OUT : SoundHelper.soundPlay("family_appear"); placed_.dataArr_.owned = false; Scene.carLeaveEnter(this); setStatePosition(); Game.startCoin(new flash.geom.Point(_x, _y - 60), new flash.geom.Point(85, 200)); break; case CUSTOMER_WOOD_ASK : setStatePosition(); } } //return(customerstate); } function setCharsPositions() { motherClip_._x = CHARPOSES[customerstate][customeremotion].mother.xpos - (motherClip_._width / 2); fatherClip_._x = CHARPOSES[customerstate][customeremotion].father.xpos - (fatherClip_._width / 2); childClip_._x = CHARPOSES[customerstate][customeremotion].child.xpos - (childClip_._width / 2); motherClip_._y = CHARPOSES[customerstate][customeremotion].mother.ypos - motherClip_._height; fatherClip_._y = CHARPOSES[customerstate][customeremotion].father.ypos - fatherClip_._height; childClip_._y = CHARPOSES[customerstate][customeremotion].child.ypos - childClip_._height; } function setStatePosition(xpos, ypos) { if (customerstate == CUSTOMER_WOOD_ASK) { _visible = false; } else { _x = CUSTOMERSPOSES[customerstate].x; _y = CUSTOMERSPOSES[customerstate].y; } } function get customerstate() { return(cusomer_state_); } function create(aType, aColor, aChild) { reqsArr = new Array(); fillReqsArr(); if (CHILDSBMPARR == undefined) { setStateDepths(); setStateToTaskArr(); setCharPoses(); setCustomersPoses(); setChildsBmpArr(); } fatherClip_ = createEmptyMovieClip("father", DEPTH_FATHER); motherClip_ = createEmptyMovieClip("father", DEPTH_MOTHER); childClip_ = createEmptyMovieClip("child", DEPTH_CHILD); customercolor = (aColor); customeremotion = (EMO_NORMAL); custmerchild = (aChild); customerstate = (aType); } static function dropPlacingBack(aClip) { aClip.setStatePosition(); if (aClip.cloud_ != undefined) { aClip.cloud_._x = aClip._x + Scene.SERVICESDATA.PLACE.cloud.xpos; aClip.cloud_._y = aClip._y + Scene.SERVICESDATA.PLACE.cloud.ypos; } Scene.PICKEDCUSTOMER = undefined; var houses = Scene.getServicesByName("HOUSE"); Scene.selectObjects(houses, Service.SELECTIONNONE); aClip.swapDepths(Scene.DEPTHSARRAY[CUSTOMER_ENTERING]); } static function processMouseDown(aClip) { switch (aClip.customerstate) { case CUSTOMER_ENTERING : if ((((Scene.PICKEDCUSTOMER == undefined) && (aClip.cloud_.aScale >= 100)) && (TutorHelper.tutorials.PICKCUSTOMER.done == false)) || (((TutorHelper.tutorials.PICKCUSTOMER.done == true) && (Scene.PICKEDCUSTOMER == undefined)) && (TutorHelper.tutorStarted == false))) { Scene.PICKEDCUSTOMER = aClip; Scene.PICKEDX = aClip._xmouse; Scene.PICKEDY = aClip._ymouse; Scene.deselectButtons(); if ((Scene.firstChecked != undefined) && (Scene.firstChecked.__get__checking() == Service.CHECK_UNSELECTED)) { Scene.firstChecked.__set__checking(Service.CHECK_NONE); Scene.firstChecked = undefined; } var emptyHouses = Scene.getServicesByData({key:"owned", value:false}); Scene.selectObjects(emptyHouses, Service.SELECTIONY); emptyHouses = Scene.getServicesByData({key:"owned", value:true}); Scene.selectObjects(emptyHouses, Service.SELECTIONNONE); if ((TutorHelper.tutorials.PICKCUSTOMER.done == false) && (TutorHelper.tutorStarted == false)) { aClip._visible = false; aClip.cloud_._visible = false; TutorHelper.tutorStart({taskKey:"PICKCUSTOMER"}); aClip._visible = true; aClip.cloud_._visible = true; } aClip.swapDepths(Scene.SCENEINSTANCE.getNextHighestDepth()); aClip.cloud_.swapDepths(Scene.SCENEINSTANCE.getNextHighestDepth()); } else { dropPlacingBack(aClip); } return; case CUSTOMER_BOARD_ASK : if (Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName == "Snowboard") { var firstObj = Scene.firstChecked.aName_; var actPack = new Array(); actPack = Actions.getGotoPack(firstObj); actPack.packTarget = aClip.cloud_; actPack.packTask = aClip.cloud_.taskKey_; actPack = Actions.getTakeServicePack(Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName, actPack); actPack = Actions.getDelayedPack(0.5, actPack); actPack = Actions.getGotoCustPack(aClip, actPack); actPack = Actions.getCloudDonePack(Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName, Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName, actPack); actPack = Actions.addFinalActs(actPack); Scene.HEROESARR[Hero.HERO_MAN].startPack(actPack); aClip.checking = Service.CHECK_BOY; Scene.deselect(Scene.firstChecked.aName_); } return; case CUSTOMER_LG_ASK : if (Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName == "Ski") { var firstObj = Scene.firstChecked.aName_; var actPack = Actions.getGotoPack(firstObj); actPack.packTarget = aClip.cloud_; actPack.packTask = aClip.cloud_.taskKey_; actPack = Actions.getTakeServicePack(Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName, actPack); actPack = Actions.getDelayedPack(0.5, actPack); actPack = Actions.getGotoCustPack(aClip, actPack); actPack = Actions.getCloudDonePack(Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName, Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName, actPack); actPack = Actions.addFinalActs(actPack); Scene.HEROESARR[Hero.HERO_MAN].startPack(actPack); aClip.checking = Service.CHECK_BOY; Scene.deselect(Scene.firstChecked.aName_); } return; case CUSTOMER_SKATING_ASK : if (Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName == "Skates") { var firstObj = Scene.firstChecked.aName_; var actPack = Actions.getGotoPack(firstObj); actPack.packTarget = aClip.cloud_; actPack.packTask = aClip.cloud_.taskKey_; actPack = Actions.getTakeServicePack(Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName, actPack); actPack = Actions.getDelayedPack(0.5, actPack); actPack = Actions.getGotoCustPack(aClip, actPack); actPack = Actions.getCloudDonePack(Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName, Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName, actPack); actPack = Actions.addFinalActs(actPack); Scene.HEROESARR[Hero.HERO_MAN].startPack(actPack); aClip.checking = Service.CHECK_BOY; Scene.deselect(Scene.firstChecked.aName_); } return; case CUSTOMER_ROCKET1_ASK : if (Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName == "Rocket01") { var firstObj = Scene.firstChecked.aName_; var actPack = Actions.getGotoPack(firstObj); actPack.packTarget = aClip.cloud_; actPack.packTask = aClip.cloud_.taskKey_; actPack = Actions.getTakeServicePack(Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName, actPack); actPack = Actions.getGotoCustPack(aClip, actPack); actPack = Actions.getCloudDonePack("Rocket01", "Rocket01", actPack); actPack = Actions.addFinalActs(actPack); Scene.HEROESARR[Hero.HERO_MAN].startPack(actPack); aClip.checking = Service.CHECK_BOY; Scene.deselect(Scene.firstChecked.aName_); } return; case CUSTOMER_HAT_ASK : if (!(((Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName == "HAT") && (TutorHelper.tutorials.HAT.done == true)) || (((Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName == "HAT") && (TutorHelper.tutorials.HAT.done == true)) && (aClip.cloud_.aScale >= 100)))) { break; } var firstObj = Scene.firstChecked.aName_; var actPack = Actions.getGotoPack(firstObj); actPack = Actions.getTakeServicePack(Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName, actPack); actPack.packTarget = aClip.cloud_; actPack.packTask = aClip.cloud_.taskKey_; actPack = Actions.getDelayedPack(0.5, actPack); actPack = Actions.getGotoCustPack(aClip, actPack); actPack = Actions.getCloudDonePack(Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName, Scene.SERVICESDATA[Scene.firstChecked.aName_].taskName, actPack); actPack = Actions.addFinalActs(actPack); Scene.HEROESARR[Hero.HERO_MAN].startPack(actPack); aClip.checking = Service.CHECK_BOY; Scene.deselect(Scene.firstChecked.aName_); } } static var SATURATION_RED = 8; static var SATURATION_YELLOW = 62; static var SATURATION_CYAN = 164; static var SATURATION_BLUE = 237; static var SATURATION_MAGENTA = 311; static var SELECTIONW = 0; static var SELECTIONY = 1; static var SELECTIONNONE = -1; static var CUSTOMER_TIMER = -2; static var CUSTOMER_IDLE = -1; static var CUSTOMER_ENTERING = 0; static var CUSTOMER_SKATING_ASK = 1; static var CUSTOMER_SKATING = 2; static var CUSTOMER_HAT_ASK = 3; static var CUSTOMER_BOARD_ASK = 4; static var CUSTOMER_LG_ASK = 5; static var CUSTOMER_ROCKET1_ASK = 6; static var CUSTOMER_ROCKET2_ASK = 7; static var CUSTOMER_OUT = 8; static var CUSTOMER_WOOD_ASK = 9; static var CUSTOMER_HATTING = 10; static var CUSTOMER_ROCKETING = 11; static var COLOR_VIOLETT = 0; static var COLOR_GREEN = 1; static var COLOR_YELLOW = 2; static var COLOR_RED = 3; static var COLOR_BLUE = 4; static var EMO_NORMAL = 0; static var EMO_HI = 1; static var CHILDBOY = 0; static var CHILDGIRL = 1; static var PARENTFATHER = 0; static var PARENTMOTHER = 1; static var DEPTH_FATHER = 5; static var DEPTH_MOTHER = 6; static var DEPTH_CHILD = 7; static var DEPTH_CHECK = 8; static var DEPTH_PICTURE = 0; static var DEPTH_SELECTION = 1; static var SKATE_COUNT_MAX = 4; static var STATETOTASKARR = new Array(); static var CHARPOSES = new Array(); static var CUSTOMERSPOSES = new Array(); static var PARENTSDATA = new Array(); static var CHILDSDATA = new Array(); static var CHILDSDATASEL = new Array(); static var CHILDSDATASELPOSES = new Array(); static var PARENTSDATASELPOSES = new Array(); static var PARENTSDATASEL = new Array(); static var STATE_DEPTHS = new Array(); }
Symbol 487 MovieClip [__Packages.LevelsHelper] Frame 0
class LevelsHelper { function LevelsHelper () { } static function initServiceReplace() { serviceReplace.Rink02 = ["Rink01"]; serviceReplace.Spruse01 = ["Spruse00"]; } static function initServiceAdds() { serviceAdds.Rocket01 = ["Fireworx_Place01"]; serviceAdds.Rink01 = ["Skates"]; serviceAdds.Light01_1 = ["Light01_2"]; } static function resetServiceData() { var i = 1; while (i < 15) { levelsData[i].objects.splice(0, levelsData[i].objects.length); delete levelsData[i]; i++; } } static function initLevelsData() { levelsData[0] = {objects:new Array("HAT", "WOODS", "Road00", "HOUSE1", "HOUSE2", "HOUSE3", "HOUSE4", "HOUSE5", "PLACE", "Table_Masters", "MOP", "Spruse00")}; initServiceReplace(); initServiceAdds(); } static function extractOld(newService, levelNum) { for (var key in serviceReplace[newService]) { } } static function getAddition(aService) { var retArr = new Array(); for (var key in serviceAdds[aService]) { retArr.push(serviceAdds[aService][key]); } return(retArr); } static function addBoughtData(aNumber) { extractOld(boughtData[aNumber], aNumber); var additionArr = getAddition(boughtData[aNumber]); levelsData[aNumber].objects.push(boughtData[aNumber]); for (var key in additionArr) { levelsData[aNumber].objects.push(additionArr[key]); } } static function copyPrevData(aNumber) { if (levelsData[aNumber] == undefined) { levelsData[aNumber] = new Object(); levelsData[aNumber].objects = new Array(); } for (var key in levelsData[aNumber - 1].objects) { levelsData[aNumber].objects.push(levelsData[aNumber - 1].objects[key]); } } static function addLevelData(aNumber, aData) { levelsData[aNumber] = aData; } static function resetLevel(level) { levelsData[level].objects.splice(0, levelsData[level].objects.length); } static function appendBoughtItems(level, objects) { if (levelsData[level] != undefined) { for (var key in objects) { levelsData[level].objects.push(objects[key]); var additionArr = getAddition(objects[key]); for (var all in additionArr) { levelsData[level].objects.push(additionArr[all]); } } } else { levelsData[level] = {objects:objects}; } } static function addBoughtItems(level, objects) { if (levelsData[level] != undefined) { } else { levelsData[level] = {objects:objects}; } } static function clearLevelsData() { for (var key in levelsData) { delete levelsData[key]; } } static var levelsData = new Array(); static var serviceAdds = new Array(); static var serviceReplace = new Array(); static var boughtData = new Array("", "Light01_1", "Rocket01", "Rink01", "MulledWine", "Kitchen", "Snowboard", "Ski", "Spruse01", "Rink02", "Star", "House_Illumination1"); }
Symbol 488 MovieClip [__Packages.CCloud] Frame 0
class CCloud extends MovieClip { var aScale_, _xscale, _yscale, cloudType, _y, _height, maxHeight_, yPoint_, _x, _width, maxWidth_, xPoint_, checking_, serviceName_, createEmptyMovieClip, checkClip, askFuse, _name, taskKey_, parentClip_, selClip, currSegment, FRAMEHOFFSET, popBtn_, animFrames, cloudBitmap_, attachBitmap, signName_, removeMovieClip; function CCloud () { super(); } function get aScale() { return(aScale_); } function set aScale(aVal) { aScale_ = aVal; _xscale = aVal; _yscale = aVal; if (cloudType == -1) { _y = (yPoint_ + maxHeight_) - _height; } else if (cloudType == 1) { _y = (yPoint_ + maxHeight_) - _height; _x = (xPoint_ + maxWidth_) - _width; } //return(aScale); } function set checking(aVal) { checking_ = aVal; if (serviceName_ != undefined) { Scene.GAMESERVICES[serviceName_].selectn = Service.SELECTIONNONE; if (Scene.GAMESERVICES[serviceName_].checking != Service.CHECK_NONE) { return; } } if (checking_ != Service.CHECK_NONE) { var checkClip = createEmptyMovieClip("checkClip", CHECKDEPTH); checkClip.attachBitmap(flash.display.BitmapData.loadBitmap(Service.CHECKBMPS[aVal]), 0); var startw = checkClip._width; var starth = checkClip._height; checkClip._width = checkClip._width * 2; checkClip._height = checkClip._height * 2; checkClip._x = checkClip._width / 2; checkClip._y = checkClip._height / 2; checkClip._alpha = 50; com.mosesSupposes.fuse.ZigoEngine.doTween(checkClip, ["_width", "_height", "_alpha"], [checkClip._width / 2, checkClip._height / 2, 100], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0); } //return(checking); } function setCheckColor(aVal) { checkClip.attachBitmap(flash.display.BitmapData.loadBitmap(Service.CHECKBMPS[aVal]), 0); } function get checking() { return(checking_); } function endScaling() { askFuse = new com.mosesSupposes.fuse.Fuse(); askFuse.label = "Ask Actions " + _name; askFuse.__set__target(this); addSegments(askFuse, 1.5); askFuse.start(); if ((((taskKey_ != undefined) && (TutorHelper.tutorials[taskKey_].done == false)) && (Scene.PICKEDCUSTOMER == undefined)) && (TutorHelper.tutorStarted == false)) { TutorHelper.tutorStart({taskKey:taskKey_, customer:parentClip_}); } } function select(aval) { selClip.swapDepths(selClip._parent.getNextHighestDepth()); selClip.removeMovieClip(); delete selClip; selClip = createEmptyMovieClip("mcSelection", SELECTNSDEPTH); selClip.attachBitmap(SELECTIONS[aval][cloudType], 0); selClip._x = SELECTIONSOFFSETS[cloudType].x; selClip._y = SELECTIONSOFFSETS[cloudType].y; } function deselect() { selClip.swapDepths(selClip._parent.getNextHighestDepth()); selClip.removeMovieClip(); delete selClip; } function create(aname, initObj, signName) { if (SELECTIONS[Customers.SELECTIONW][0] == undefined) { SELECTIONS[Customers.SELECTIONW] = new Array(); SELECTIONS[Customers.SELECTIONY] = new Array(); SELECTIONS[Customers.SELECTIONW][-1] = BF.getBitmap2({bitmapName:"Cloud_Select", flipHor:true}); SELECTIONS[Customers.SELECTIONW][0] = BF.getBitmap2({bitmapName:"Cloud_Round_Select"}); SELECTIONS[Customers.SELECTIONW][1] = BF.getBitmap2({bitmapName:"Cloud_Select"}); SELECTIONS[Customers.SELECTIONY][-1] = new flash.display.BitmapData(SELECTIONS[Customers.SELECTIONW][-1].width, SELECTIONS[Customers.SELECTIONW][-1].height, true, 0); SELECTIONS[Customers.SELECTIONY][-1].copyPixels(SELECTIONS[Customers.SELECTIONW][-1], SELECTIONS[Customers.SELECTIONW][-1].rectangle, new flash.geom.Point(0, 0)); SELECTIONS[Customers.SELECTIONY][-1].colorTransform(SELECTIONS[Customers.SELECTIONY][-1].rectangle, new flash.geom.ColorTransform(1, 0, 0, 1, 255, 100, 0, 0)); SELECTIONS[Customers.SELECTIONY][0] = new flash.display.BitmapData(SELECTIONS[Customers.SELECTIONW][0].width, SELECTIONS[Customers.SELECTIONW][0].height, true, 0); SELECTIONS[Customers.SELECTIONY][0].copyPixels(SELECTIONS[Customers.SELECTIONW][0], SELECTIONS[Customers.SELECTIONW][0].rectangle, new flash.geom.Point(0, 0)); SELECTIONS[Customers.SELECTIONY][0].colorTransform(SELECTIONS[Customers.SELECTIONY][0].rectangle, new flash.geom.ColorTransform(1, 0, 0, 1, 255, 100, 0, 0)); SELECTIONS[Customers.SELECTIONY][1] = new flash.display.BitmapData(SELECTIONS[Customers.SELECTIONW][1].width, SELECTIONS[Customers.SELECTIONW][1].height, true, 0); SELECTIONS[Customers.SELECTIONY][1].copyPixels(SELECTIONS[Customers.SELECTIONW][1], SELECTIONS[Customers.SELECTIONW][1].rectangle, new flash.geom.Point(0, 0)); SELECTIONS[Customers.SELECTIONY][1].colorTransform(SELECTIONS[Customers.SELECTIONY][1].rectangle, new flash.geom.ColorTransform(1, 0, 0, 1, 255, 100, 0, 0)); SELECTIONSOFFSETS[-1] = new flash.geom.Point(-0.8, 0); SELECTIONSOFFSETS[0] = new flash.geom.Point(-2.7, -2.7); SELECTIONSOFFSETS[1] = new flash.geom.Point(0, 0); } currSegment = 0; checking_ = Service.CHECK_NONE; parentClip_.cloud_ = this; cloudType = initObj.cloudType; FRAMEHOFFSET = initObj.animHOffset; if (taskKey_ == "WOODS") { Scene.GAMESERVICES.WOODS.selectn = Scene.SELECTWHITE; } else { popBtn_ = Scene.addPopupButton(taskKey_); } if (animFrames == undefined) { if (aname == "Cloud_Round") { animFrames = BF.getAnimFrames2({bitmapName:"cloudmini_anim", framesCount:FRAMESCOUNT}); } else if (initObj.cloudType == -1) { animFrames = BF.getAnimFrames2({bitmapName:"cloud_anim", framesCount:FRAMESCOUNT, destPointx:5}); } else { animFrames = BF.getAnimFrames2({bitmapName:"cloud_anim", framesCount:FRAMESCOUNT}); } } cloudBitmap_ = BF.getBitmap(aname, initObj); attachBitmap(cloudBitmap_, CANVASDEPTH); var signBitmap = (new flash.display.BitmapData(animFrames[0].width + initObj.animHOffset, animFrames[0].height, true, 0)); var signSource = BF.getBitmap(signName); signName_ = signName; signBitmap.copyPixels(signSource, signSource.rectangle, new flash.geom.Point(((initObj.animHOffset / 2) + (signBitmap.width / 2)) - (signSource.width / 2), (signBitmap.height / 2) - (signSource.height / 2))); attachBitmap(signBitmap, IMAGEDEPTH); _x = (xPoint_ = initObj.xpos + parentClip_._x); _y = (yPoint_ = initObj.ypos + parentClip_._y); maxWidth_ = _width; maxHeight_ = _height; aScale = (10); com.mosesSupposes.fuse.ZigoEngine.doTween(this, "aScale", [100], 0.8, com.mosesSupposes.fuse.PennerEasing.easeOutElastic, 0, {scope:this, func:endScaling}); } function drawSegment(aNum, segmentColor) { if (taskKey_ == "WOODS") { if (((Scene.GAMESERVICES[serviceName_].selectn == Service.SELECTIONNONE) && (Scene.GAMESERVICES[serviceName_].checking == Service.CHECK_NONE)) && (checking == Service.CHECK_NONE)) { if (Scene.GAMESERVICES.WOODS.checking != Service.CHECK_NONE) { Scene.GAMESERVICES[serviceName_].selectn = Service.SELECTIONY; } else if ((checking == Service.CHECK_NONE) && (Scene.GAMESERVICES.WOODS.checking == Service.CHECK_NONE)) { Scene.GAMESERVICES.WOODS.selectn = Service.SELECTIONY; Scene.GAMESERVICES[serviceName_].selectn = Service.SELECTIONNONE; } } } if ((((taskKey_ != undefined) && (TutorHelper.tutorials[taskKey_].done == false)) && (Scene.PICKEDCUSTOMER == undefined)) && (TutorHelper.tutorStarted == false)) { TutorHelper.tutorStart({taskKey:taskKey_, customer:parentClip_}, popBtn_); } currSegment = aNum; animFrames[aNum].colorTransform(animFrames[aNum].rectangle, segmentColor); attachBitmap(animFrames[aNum], SEGMENTSDEPTH); } static function fadeOutHeart(aVal) { com.mosesSupposes.fuse.ZigoEngine.doTween(aVal, "_y", [aVal._y - 20], 2, com.mosesSupposes.fuse.PennerEasing.linear, 0); com.mosesSupposes.fuse.ZigoEngine.doTween(aVal, "_alpha", [20], 0.3, com.mosesSupposes.fuse.PennerEasing.easeOutSine, 0, {scope:CCloud, func:"removeHeart", args:aVal}); } static function removeHeart(aVal) { com.mosesSupposes.fuse.ZigoEngine.removeTween(aVal); aVal.removeMovieClip(); delete aVal; } static function sineLeft(aVal, offset) { com.mosesSupposes.fuse.ZigoEngine.doTween(aVal, "_x", [(aVal._x - 10) - offset], 0.4, com.mosesSupposes.fuse.PennerEasing.easeInOutSine, 0, {scope:CCloud, func:"sineRight", args:[aVal, offset]}); } static function sineRight(aVal, offset) { com.mosesSupposes.fuse.ZigoEngine.doTween(aVal, "_x", [(aVal._x + 10) + offset], 0.4, com.mosesSupposes.fuse.PennerEasing.easeInOutSine, 0, {scope:CCloud, func:"sineLeft", args:[aVal, offset]}); } static function startHeart(aNum, aX, aY, fuse) { fuse.destroy(); delete fuse; var aVal = Scene.SCENEINSTANCE.createEmptyMovieClip("aheart" + aNum, Scene.SCENEINSTANCE.getNextHighestDepth()); aVal.attachBitmap(flash.display.BitmapData.loadBitmap("heart"), 0); var xrand = (Math.random() * 20); xrand = xrand - 10; aVal._x = aX + xrand; aVal._y = aY + xrand; var offset = (Math.random() * 9); com.mosesSupposes.fuse.ZigoEngine.doTween(aVal, "_y", [aVal._y - 60], 1 + Math.random(), com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:CCloud, func:"fadeOutHeart", args:aVal}); if (Math.random() > 0.5) { sineLeft(aVal, offset); } else { sineRight(aVal, offset); } } function startHearts() { var i = 0; while (i < 10) { var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.label = "heart" + i; aFuse.autoClear = true; aFuse.scope = CCloud; aFuse.push({func:"startHeart", args:[i, _x + 10, _y - 10, aFuse], delay:Math.random() / 2}); aFuse.start(); i++; } } function cloudDone() { SoundHelper.soundPlay("bonus_money"); if ((Scene.GAMECUSTOMERS.length >= 4) && (Scene.santaWas == false)) { Scene.santaWas = true; var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.label = "Santa"; aFuse.autoClear = true; aFuse.scope = Scene; aFuse.push({func:"startClaus", delay:Math.random() * 30}); aFuse.start(); if (TutorHelper.tutorStarted == true) { aFuse.pause(); Scene.pausedFuses.push(aFuse); } } startHearts(); com.mosesSupposes.fuse.ZigoEngine.removeTween(checkClip); com.mosesSupposes.fuse.ZigoEngine.removeTween(this); com.mosesSupposes.fuse.ZigoEngine.removeTween(parentClip_.cloud_); com.mosesSupposes.fuse.ZigoEngine.removeTween(parentClip_.cloud_.checkClip); delete parentClip_.cloud_; askFuse.stop(); askFuse.destroy(); if (popBtn_ != undefined) { var tasksCount = Scene.countPopTasks(taskKey_); if (tasksCount == 1) { Scene.fusePopupDown(popBtn_); } delete popBtn_; popBtn_ = undefined; } else if (taskKey_ == "WOODS") { if (Scene.countTasks("WOODS") == 1) { Scene.GAMESERVICES[taskKey_].checking = Service.CHECK_NONE; Scene.GAMESERVICES[taskKey_].selectn = Service.SELECTIONNONE; } } Scene.deselect(serviceName_); if (taskKey_ != undefined) { if ((parentClip_ instanceof Customers) && (cloudType != 0)) { var aCust = parentClip_; } else { var aCust = Scene.getCustomerByHouse(parentClip_); } if (aCust != undefined) { aCust.thanx(); } delete Scene.CLOUDSARRAY[taskKey_]; } else { delete Scene.CLOUDSARRAY[serviceName_]; } if (taskKey_ == "Snowboard_Broken") { Scene.GAMESERVICES[Scene.BROKEDATA[taskKey_].repared].displayClip_._visible = true; Scene.GAMESERVICES[taskKey_].displayClip_._visible = false; Scene.GAMESERVICES[taskKey_].broke_state = Service.BROKE_STATE_NONE; delete Scene.GAMESERVICES[taskKey_]; } else { if (taskKey_ != "PLACE") { Game.levelMoney = Game.levelMoney + 10; } var adds = (((Scene.addsScore + 10) - Math.floor(currSegment / 2)) + 10); Game.totalScore = Game.totalScore + adds; Game.levelScore = Game.levelScore + adds; } removeMovieClip(); } static function alphaOutCustomer(aCust) { com.mosesSupposes.fuse.ZigoEngine.doTween(aCust, ["_alpha"], [10], 1, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:CCloud, func:hideCustomer, args:aCust}); } static function hideCustomer(aCust) { aCust._visible = false; aCust._alpha = 100; aCust.checking = Service.CHECK_NONE; aCust.customerstate = Customers.CUSTOMER_IDLE; var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.autoClear = true; aFuse.push({func:"tryNext", scope:aCust, delay:1.5}); aFuse.start(); } function cloudFailed() { if (taskKey_ == "Snowboard_Broken") { return(undefined); } if (taskKey_ == "WOODS") { if (Scene.countTasks("WOODS") == 1) { Scene.GAMESERVICES[taskKey_].checking = Service.CHECK_NONE; Scene.GAMESERVICES[taskKey_].selectn = Service.SELECTIONNONE; } } Scene.GAMESERVICES[taskKey_].checking = Service.CHECK_NONE; checking = (Service.CHECK_NONE); parentClip_.checking = Service.CHECK_NONE; parentClip_.customerstate = Customers.CUSTOMER_IDLE; Hero.removePack(this, taskKey_); if (taskKey_ == "PLACE") { Scene.deselect(serviceName_); Scene.customerOut(parentClip_); } else { if (Scene.SERVICESDATA[taskKey_].unique == true) { Scene.deselect(serviceName_); Scene.deselect(taskKey_); } else { var cloudsNoChecked = 0; for (var key in Scene.CLOUDSARRAY) { if ((((Scene.CLOUDSARRAY[key]._name != undefined) && (Scene.CLOUDSARRAY[key].taskKey_ == taskKey_)) && (Scene.CLOUDSARRAY[key] != this)) && (Scene.CLOUDSARRAY[key].checking == Service.CHECK_NONE)) { cloudsNoChecked++; } } if (cloudsNoChecked == 0) { Scene.deselect(taskKey_); } } if (parentClip_._name.indexOf("HOUSE") == -1) { if (taskKey_ == "Snowboard_Broken") { } else { parentClip_._visible = false; var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.push({func:"tryNext", scope:parentClip_, delay:1.5}); aFuse.start(); } } else { var aCust = Scene.getCustomerByHouse(parentClip_); var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.push({func:"tryNext", scope:aCust, delay:1.5}); aFuse.start(); } } if (taskKey_ != "Snowboard_Broken") { delete parentClip_.cloud_; var tasksCount = Scene.countPopTasks(taskKey_); if (tasksCount == 1) { Scene.fusePopupDown(popBtn_); } delete popBtn_; popBtn_ = undefined; delete Scene.CLOUDSARRAY[serviceName_]; delete Scene.CLOUDSARRAY[taskKey_]; removeMovieClip(); } } function setCheck() { } function addSegments(toFuse, addDelay) { if (addDelay == undefined) { addDelay = 0; } toFuse.push({func:"drawSegment", args:[0, new flash.geom.ColorTransform(0, 0, 0, 1, 0, 255, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[1, new flash.geom.ColorTransform(0, 0, 0, 1, 0, 255, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[2, new flash.geom.ColorTransform(0, 0, 0, 1, 10, 255, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[3, new flash.geom.ColorTransform(0, 0, 0, 1, 40, 255, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[4, new flash.geom.ColorTransform(0, 0, 0, 1, 70, 254, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[5, new flash.geom.ColorTransform(0, 0, 0, 1, 112, 250, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[6, new flash.geom.ColorTransform(0, 0, 0, 1, 137, 247, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[7, new flash.geom.ColorTransform(0, 0, 0, 1, 162, 243, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[8, new flash.geom.ColorTransform(0, 0, 0, 1, 178, 240, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[9, new flash.geom.ColorTransform(0, 0, 0, 1, 226, 227, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[10, new flash.geom.ColorTransform(0, 0, 0, 1, 231, 217, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[11, new flash.geom.ColorTransform(0, 0, 0, 1, 237, 207, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[12, new flash.geom.ColorTransform(0, 0, 0, 1, 243, 197, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[13, new flash.geom.ColorTransform(0, 0, 0, 1, 250, 187, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[14, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 168, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[15, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 128, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[16, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 88, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[17, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 58, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[18, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 28, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[19, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 0, 0, 0)]}); toFuse.push({delay:SEGMENTDELAY + addDelay, func:"cloudFailed"}); } var SEGMENTDELAY = 0.1; static var SELECTIONS = new Array(); static var SELECTIONSOFFSETS = new Array(); static var FRAMESCOUNT = 20; static var FRAMEWIDTH = 55; static var FRAMEHEIGHT = 55; static var SOURCEHEIGHT = 33; static var FRAMEVINTERVAL = 0; static var CANVASDEPTH = 0; static var SELECTNSDEPTH = -1; static var SEGMENTSDEPTH = 2; static var IMAGEDEPTH = 3; static var CHECKDEPTH = 4; }
Symbol 489 MovieClip [__Packages.TutorHelper] Frame 0
class TutorHelper { static var tutorKey, kruglikBMP, mcTip, mcArrow, tutorClip; function TutorHelper () { } static function init() { tutorials.PICKCUSTOMER = {done:false}; tutorials.PLACE = {done:false}; tutorials.HAT = {done:false}; tutorials.WOODS = {done:false}; tutorials.MOP = {done:false}; tutorials.GIVEHAT = {done:false}; } static function getTutByInd(ind) { return(tutorials[ind]); } static function getTutByName(aName) { return(tutorials[aName]); } static function tutorMouseDown(onClip) { switch (tutorKey) { case "GIVEHAT" : if ((((Scene.SCENEINSTANCE._xmouse >= POS_KRUGLIK_GIVEHATX) && (Scene.SCENEINSTANCE._xmouse <= (POS_KRUGLIK_GIVEHATX + kruglikBMP.width))) && (Scene.SCENEINSTANCE._ymouse >= POS_KRUGLIK_GIVEHATY)) && (Scene.SCENEINSTANCE._ymouse <= (POS_KRUGLIK_GIVEHATY + kruglikBMP.height))) { tutorEnd(); Scene.SCENEINSTANCE.onMouseDown(); } return; case "MOP" : if (onClip.hitTest(Scene.SCENEINSTANCE._xmouse, Scene.SCENEINSTANCE._ymouse, false)) { tutorEnd(); onClip.onPress(); } return; case "PLACE" : if ((((Scene.SCENEINSTANCE._xmouse >= POS_KRUGLIK_PLACEX) && (Scene.SCENEINSTANCE._xmouse <= (POS_KRUGLIK_PLACEX + kruglikBMP.width))) && (Scene.SCENEINSTANCE._ymouse >= POS_KRUGLIK_PLACEY)) && (Scene.SCENEINSTANCE._ymouse <= (POS_KRUGLIK_PLACEY + kruglikBMP.height))) { tutorEnd(); Scene.SCENEINSTANCE.onMouseDown(); } return; case "PICKCUSTOMER" : if (Scene.GAMESERVICES.HOUSE1.displayClip_.hitTest(Scene.SCENEINSTANCE._xmouse, Scene.SCENEINSTANCE._ymouse, false)) { tutorEnd(); Scene.SCENEINSTANCE.onMouseDown(); } return; case "HAT" : if (Scene.GAMESERVICES.HAT.displayClip_.hitTest(Scene.SCENEINSTANCE._xmouse, Scene.SCENEINSTANCE._ymouse, false)) { tutorEnd(); Scene.SCENEINSTANCE.onMouseDown(); } return; case "WOODS" : if (!((((Scene.SCENEINSTANCE._xmouse >= POS_KRUGLIK_WOODSX) && (Scene.SCENEINSTANCE._xmouse <= (POS_KRUGLIK_WOODSX + kruglikBMP.width))) && (Scene.SCENEINSTANCE._ymouse >= POS_KRUGLIK_WOODSY)) && (Scene.SCENEINSTANCE._ymouse <= (POS_KRUGLIK_WOODSY + kruglikBMP.height)))) { break; } tutorEnd(); Scene.SCENEINSTANCE.onMouseDown(); } } static function tutorMouseMove() { switch (tutorKey) { case "PLACE" : for (var key in Scene.GAMECUSTOMERS) { if ((Scene.GAMECUSTOMERS[key].hitTest(Scene.SCENEINSTANCE._xmouse, Scene.SCENEINSTANCE._ymouse, false) && (Scene.GAMECUSTOMERS[key]._visible == true)) && (Scene.GAMECUSTOMERS[key].selectn == Service.SELECTIONY)) { Scene.GAMECUSTOMERS[key].selectn = Service.SELECTIONW; } else if (((!Scene.GAMECUSTOMERS[key].hitTest(Scene.SCENEINSTANCE._xmouse, Scene.SCENEINSTANCE._ymouse, false)) && (Scene.GAMECUSTOMERS[key]._visible == true)) && (Scene.GAMECUSTOMERS[key].selectn == Service.SELECTIONW)) { Scene.GAMECUSTOMERS[key].selectn = Service.SELECTIONY; } } return; case "PICKCUSTOMER" : if (Scene.PICKEDCUSTOMER == undefined) { break; } Scene.PICKEDCUSTOMER._x = Scene.SCENEINSTANCE._xmouse - Scene.PICKEDX; Scene.PICKEDCUSTOMER._y = Scene.SCENEINSTANCE._ymouse - Scene.PICKEDY; if (Scene.PICKEDCUSTOMER.cloud_ != undefined) { Scene.PICKEDCUSTOMER.cloud_._x = Scene.PICKEDCUSTOMER._x + Scene.SERVICESDATA.PLACE.cloud.xpos; Scene.PICKEDCUSTOMER.cloud_._y = Scene.PICKEDCUSTOMER._y + Scene.SERVICESDATA.PLACE.cloud.ypos; } var yeloowarr = new Array(); var whiteArr = new Array(); for (var key in Scene.GAMESERVICES) { if ((((Scene.GAMESERVICES[key].selectn != Service.SELECTIONNONE) && (Scene.GAMESERVICES[key].displayClip_.hitTest(Scene.SCENEINSTANCE._xmouse, Scene.SCENEINSTANCE._ymouse, false))) && (Scene.SERVICESDATA[key].interact == true)) && (Scene.GAMESERVICES[key].bitmapData_.getPixel32(Scene.GAMESERVICES[key].displayClip_._xmouse, Scene.GAMESERVICES[key].displayClip_._ymouse) != 0)) { whiteArr.push(Scene.GAMESERVICES[key]); } else if (Scene.GAMESERVICES[key].selectn == Service.SELECTIONW) { yeloowarr.push(Scene.GAMESERVICES[key]); } } whiteArr.sort(Scene.SCENEINSTANCE.sortByDepth); whiteArr[0].selectn = Service.SELECTIONW; whiteArr.shift(); var i = 0; while (i < yeloowarr.length) { yeloowarr[i].selectn = Service.SELECTIONY; i++; } var i = 0; for(;;){ if (i >= whiteArr.length) { break; } whiteArr[i].selectn = Service.SELECTIONY; i++; }; } } static function tutorEnd() { GameMenu.enableMenu(); mcTip.removeMovieClip(); delete mcTip; mcArrow.removeMovieClip(); delete mcArrow; tutorClip.removeMovieClip(); delete tutorClip; tutorStarted = false; if (tutorKey == "HAT") { tutorKey = undefined; Scene.SCENEINSTANCE.onMouseDown(); tutorStart({taskKey:"GIVEHAT"}); } else { tutorKey = undefined; com.mosesSupposes.fuse.ZigoEngine.doTween(GameMenu.MENUINSTANCE, "_brightness", 0, 0.5, com.mosesSupposes.fuse.PennerEasing.linear); Scene.SCENEINSTANCE.onResumeLevel(); } } static function tutorStart(tutObject, btn) { GameMenu.disableMenu(); tutorStarted = true; tutorKey = tutObject.taskKey; tutorials[tutorKey].done = true; tutorClip = Scene.SCENEINSTANCE.createEmptyMovieClip("aTutor", Scene.SCENEINSTANCE.getNextHighestDepth()); var sceneBmp = (new flash.display.BitmapData(Scene.SCENEINSTANCE._width, Scene.SCENEINSTANCE._height, true, 0)); var colorTrans = (new flash.geom.ColorTransform(0.5, 0.5, 0.5, 1)); sceneBmp.draw(Scene.SCENEINSTANCE); tutorClip.attachBitmap(sceneBmp, 0); Scene.SCENEINSTANCE.onPauseLevel(); mcTip = Scene.SCENEINSTANCE.attachMovie("TipsBack", "TipsBack1", Scene.SCENEINSTANCE.getNextHighestDepth()); switch (tutObject.taskKey) { case "GIVEHAT" : kruglikBMP = flash.display.BitmapData.loadBitmap("kruglik"); sceneBmp.copyChannel(kruglikBMP, kruglikBMP.rectangle, new flash.geom.Point(POS_KRUGLIK_GIVEHATX, POS_KRUGLIK_GIVEHATY), 8, 8); mcArrow = Scene.SCENEINSTANCE.createEmptyMovieClip("mcArray", Scene.SCENEINSTANCE.getNextHighestDepth()); mcArrow.attachBitmap(flash.display.BitmapData.loadBitmap("tips_arrow"), mcArrow.getNextHighestDepth()); mcArrow._x = POS_KRUGLIK_GIVEHATX + kruglikBMP.width; mcArrow._y = (POS_KRUGLIK_GIVEHATY + (kruglikBMP.height / 2)) - (mcArrow._height / 2); com.mosesSupposes.fuse.ZigoEngine.doTween(mcArrow, "_x", (POS_KRUGLIK_GIVEHATX + kruglikBMP.width) + 15, 0.4, com.mosesSupposes.fuse.PennerEasing.easeInBounce, 0, {cycles:"LOOP"}); mcTip._x = (320 - (mcTip._width / 2)) - 40; mcTip._y = 110; mcTip.txtHint.text = Dict.transl("TUT_GIVEHAT"); break; case "MOP" : kruglikBMP = flash.display.BitmapData.loadBitmap("kruglik"); sceneBmp.copyChannel(kruglikBMP, kruglikBMP.rectangle, new flash.geom.Point((btn._x - (kruglikBMP.width / 2)) + (btn._width / 2), (btn._y - (kruglikBMP.height / 2)) + (btn._height / 2)), 8, 8); mcArrow = GameMenu.MENUINSTANCE.createEmptyMovieClip("mcArray", GameMenu.MENUINSTANCE.getNextHighestDepth()); mcArrow.attachBitmap(flash.display.BitmapData.loadBitmap("tips_arrow"), mcArrow.getNextHighestDepth()); mcArrow._x = btn._x + 45; mcArrow._y = btn._y; com.mosesSupposes.fuse.ZigoEngine.doTween(mcArrow, "_x", btn._x + 35, 0.4, com.mosesSupposes.fuse.PennerEasing.easeInBounce, 0, {cycles:"LOOP"}); mcTip._x = 320 - (mcTip._width / 2); mcTip._y = 240 - (mcTip._height / 2); mcTip.txtHint.text = Dict.transl("TUT_MOP"); break; case "PLACE" : kruglikBMP = flash.display.BitmapData.loadBitmap("kruglik"); sceneBmp.copyChannel(kruglikBMP, kruglikBMP.rectangle, new flash.geom.Point(POS_KRUGLIK_PLACEX, POS_KRUGLIK_PLACEY), 8, 8); mcArrow = Scene.SCENEINSTANCE.createEmptyMovieClip("mcArray", Scene.SCENEINSTANCE.getNextHighestDepth()); mcArrow.attachBitmap(flash.display.BitmapData.loadBitmap("tips_arrow"), mcArrow.getNextHighestDepth()); mcArrow._x = POS_KRUGLIK_PLACEX + kruglikBMP.width; mcArrow._y = (POS_KRUGLIK_PLACEY + (kruglikBMP.height / 2)) - (mcArrow._height / 2); com.mosesSupposes.fuse.ZigoEngine.doTween(mcArrow, "_x", (POS_KRUGLIK_PLACEX + kruglikBMP.width) + 15, 0.4, com.mosesSupposes.fuse.PennerEasing.easeInBounce, 0, {cycles:"LOOP"}); mcTip._x = (mcArrow._x + mcArrow._width) + 30; mcTip._y = mcArrow._y; mcTip.txtHint.text = Dict.transl("TUT_PICK"); break; case "PICKCUSTOMER" : kruglikBMP = flash.display.BitmapData.loadBitmap("kruglik"); sceneBmp.copyChannel(kruglikBMP, kruglikBMP.rectangle, new flash.geom.Point(POS_KRUGLIK_HOUSE1X, POS_KRUGLIK_HOUSE1Y), 8, 8); mcArrow = Scene.SCENEINSTANCE.createEmptyMovieClip("mcArray", Scene.SCENEINSTANCE.getNextHighestDepth()); mcArrow.attachBitmap(flash.display.BitmapData.loadBitmap("tips_arrow"), mcArrow.getNextHighestDepth()); mcArrow._x = POS_KRUGLIK_HOUSE1X + kruglikBMP.width; mcArrow._y = (POS_KRUGLIK_HOUSE1Y + (kruglikBMP.height / 2)) - (mcArrow._height / 2); com.mosesSupposes.fuse.ZigoEngine.doTween(mcArrow, "_x", (POS_KRUGLIK_HOUSE1X + kruglikBMP.width) + 15, 0.4, com.mosesSupposes.fuse.PennerEasing.easeInBounce, 0, {cycles:"LOOP"}); mcTip._x = (mcArrow._x + mcArrow._width) + 30; mcTip._y = mcArrow._y; mcTip.txtHint.text = Dict.transl("TUT_HOUSE"); break; case "HAT" : kruglikBMP = flash.display.BitmapData.loadBitmap("kruglik"); sceneBmp.copyChannel(kruglikBMP, kruglikBMP.rectangle, new flash.geom.Point(POS_KRUGLIK_HATX, POS_KRUGLIK_HATY), 8, 8); mcArrow = Scene.SCENEINSTANCE.createEmptyMovieClip("mcArray", Scene.SCENEINSTANCE.getNextHighestDepth()); mcArrow.attachBitmap(flash.display.BitmapData.loadBitmap("tips_arrow"), mcArrow.getNextHighestDepth()); mcArrow._x = POS_KRUGLIK_HATX + kruglikBMP.width; mcArrow._y = (POS_KRUGLIK_HATY + (kruglikBMP.height / 2)) - (mcArrow._height / 2); com.mosesSupposes.fuse.ZigoEngine.doTween(mcArrow, "_x", (POS_KRUGLIK_HATX + kruglikBMP.width) + 15, 0.4, com.mosesSupposes.fuse.PennerEasing.easeInBounce, 0, {cycles:"LOOP"}); mcTip._x = (mcArrow._x + mcArrow._width) + 30; mcTip._y = 310; mcTip.txtHint.text = Dict.transl("TUT_HAT"); break; case "WOODS" : kruglikBMP = flash.display.BitmapData.loadBitmap("kruglik"); sceneBmp.copyChannel(kruglikBMP, kruglikBMP.rectangle, new flash.geom.Point(POS_KRUGLIK_WOODSX, POS_KRUGLIK_WOODSY), 8, 8); mcArrow = GameMenu.MENUINSTANCE.createEmptyMovieClip("mcArray", GameMenu.MENUINSTANCE.getNextHighestDepth()); mcArrow.attachBitmap(flash.display.BitmapData.loadBitmap("tips_arrow"), mcArrow.getNextHighestDepth()); mcArrow._x = POS_KRUGLIK_WOODSX + kruglikBMP.width; mcArrow._y = (POS_KRUGLIK_WOODSY + (kruglikBMP.height / 2)) - (mcArrow._height / 2); com.mosesSupposes.fuse.ZigoEngine.doTween(mcArrow, "_x", (POS_KRUGLIK_WOODSX + kruglikBMP.width) + 15, 0.4, com.mosesSupposes.fuse.PennerEasing.easeInBounce, 0, {cycles:"LOOP"}); mcTip._x = 170; mcTip._y = 310; mcTip.txtHint.text = Dict.transl("TUT_WOODS"); } com.mosesSupposes.fuse.ZigoEngine.doTween(tutorClip, "_brightness", -50, 1, com.mosesSupposes.fuse.PennerEasing.linear); com.mosesSupposes.fuse.ZigoEngine.doTween(GameMenu.MENUINSTANCE, "_brightness", -50, 1, com.mosesSupposes.fuse.PennerEasing.linear); } static var tutorials = new Array(); static var tutorStarted = false; static var POS_KRUGLIK_PLACEX = 120; static var POS_KRUGLIK_PLACEY = 217; static var POS_KRUGLIK_HATX = 115; static var POS_KRUGLIK_HATY = 360; static var POS_KRUGLIK_GIVEHATX = 385; static var POS_KRUGLIK_GIVEHATY = 145; static var POS_KRUGLIK_WOODSX = 435; static var POS_KRUGLIK_WOODSY = 345; static var POS_KRUGLIK_MOPX = 435; static var POS_KRUGLIK_MOPY = 385; static var POS_KRUGLIK_HOUSE1X = 90; static var POS_KRUGLIK_HOUSE1Y = 50; }
Symbol 490 MovieClip [__Packages.FX] Frame 0
class FX { function FX () { } static function houseRemove(aHouse) { aHouse.removeMovieClip(); delete aHouse; } static function houseEffect(aHouse) { var houseData = (new flash.display.BitmapData(aHouse.displayClip_._width, aHouse.displayClip_._height, true, 0)); houseData.draw(aHouse.displayClip_); var houseeff = aHouse.displayClip_.createEmptyMovieClip("effHouse", aHouse.displayClip_.getNextHighestDepth()); houseeff.attachBitmap(houseData, 0); houseeff._alpha = 70; com.mosesSupposes.fuse.ZigoEngine.doTween(houseeff, "_xscale,_yscale,_alpha,_x,_y", [150, 150, 20, -37.5, -37.5], 0.3, com.mosesSupposes.fuse.PennerEasing.easeInCubic, 0, {scope:Scene, func:houseRemove, args:houseeff}); } }
Symbol 491 MovieClip [__Packages.Pathfinding] Frame 0
class 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 = 10; var ALLOW_DIAGONAL = true; var ALLOW_DIAGONAL_CORNERING = true; }
Symbol 492 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores { static var boardID, onClose, onError; function MochiScores () { } static function setBoardID(boardID) { mochi.MochiScores.boardID = boardID; mochi.MochiServices.send("scores_setBoardID", {boardID:boardID}); } static function showLeaderboard(options) { if (options.clip != null) { if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) { mochi.MochiServices.disconnect(); mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip); } delete options.clip; } if (options.name != null) { if (typeof(options.name) == "object") { if (options.name.text != undefined) { options.name = options.name.text; } } } if (options.score != null) { if (typeof(options.score) == "object") { if (options.score.text != undefined) { options.score = options.score.text; } } } if (options.onDisplay != null) { options.onDisplay(); } else { mochi.MochiServices.__get__clip().stop(); } if (options.onClose != null) { onClose = options.onClose; } else { onClose = function () { mochi.MochiServices.__get__clip().play(); }; } if (options.onError != null) { onError = options.onError; } else { onError = onClose; } if (options.boardID == null) { if (boardID != null) { options.boardID = boardID; } } mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose); } static function closeLeaderboard() { mochi.MochiServices.send("scores_closeLeaderboard"); } static function getPlayerInfo(callbackObj, callbackMethod) { mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod); } static function submit(score, name, callbackObj, callbackMethod) { mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod); } static function requestList(callbackObj, callbackMethod) { mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod); } static function scoresArrayToObjects(scores) { var so = {}; var i; var j; var o; var row_obj; for (var item in scores) { if (typeof(scores[item]) == "object") { if ((scores[item].cols != null) && (scores[item].rows != null)) { so[item] = []; o = scores[item]; j = 0; while (j < o.rows.length) { row_obj = {}; i = 0; while (i < o.cols.length) { row_obj[o.cols[i]] = o.rows[j][i]; i++; } so[item].push(row_obj); j++; } } else { so[item] = {}; for (var param in scores[item]) { so[item][param] = scores[item][param]; } } } else { so[item] = scores[item]; } } return(so); } static function doClose(args) { if (args.error == true) { if (args.errorCode == undefined) { args.errorCode = "IOError"; } onError.apply(null, [args.errorCode]); } else { onClose.apply(); } } }
Symbol 493 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices { static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel; function MochiServices () { } static function get id() { return(_id); } static function get clip() { return(_container); } static function get childClip() { return(_clip); } static function getVersion() { return("1.35"); } 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 get isNetworkAvailable() { if (System.security) { var o = System.security; if (o.sandboxType == "localWithFile") { return(false); } } return(true); } static function set comChannelName(val) { if (val != undefined) { if (val.length > 3) { _sendChannelName = val + "_fromgame"; _rcvChannelName = val; initComChannels(); } } //return(__get__comChannelName()); } static function get connected() { return(_connected); } static function connect(id, clip, onError) { if ((!_connected) && (_clip == undefined)) { _connecting = true; init(id, clip); } if (onError != undefined) { mochi.MochiServices.onError = onError; } else if (mochi.MochiServices.onError == undefined) { mochi.MochiServices.onError = function (errorCode) { }; } } static function disconnect() { if (_connected || (_connecting)) { _connecting = (_connected = false); flush(true); if (_clip != undefined) { _clip.removeMovieClip(); delete _clip; } _listenChannel.close(); _rcvChannel.close(); } } static function init(id, clip) { _id = id; if (clip != undefined) { _container = clip; } else { _container = _root; } loadCommunicator(id, _container); } static function loadCommunicator(id, clip) { var clipname = ("_mochiservices_com_" + id); if (_clip != null) { return(_clip); } if (!isNetworkAvailable) { return(null); } allowDomains(_gatewayURL); _clip = clip.createEmptyMovieClip(clipname, 10336, false); _loader = new MovieClipLoader(); if (_loaderListener.waitInterval != null) { clearInterval(_loaderListener.waitInterval); } _loaderListener = {}; _loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) { mochi.MochiServices.disconnect(); mochi.MochiServices.onError.apply(null, [errorCode]); }; _loaderListener.onLoadStart = function (target_mc) { this.isLoading = true; }; _loaderListener.startTime = getTimer(); _loaderListener.wait = function () { if ((getTimer() - this.startTime) > 10000) { if (!this.isLoading) { mochi.MochiServices.disconnect(); mochi.MochiServices.onError.apply(null, ["IOError"]); } clearInterval(this.waitInterval); } }; _loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000); _loader.addListener(_loaderListener); _loader.loadClip(_gatewayURL, _clip); _sendChannel = new LocalConnection(); _sendChannel._queue = []; _rcvChannel = new LocalConnection(); _rcvChannel.allowDomain = function (d) { return(true); }; _rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain; _rcvChannel._nextcallbackID = 0; _rcvChannel._callbacks = {}; listen(); return(_clip); } static function onStatus(infoObject) { if (!(infoObject.level === "error")) { } else { _connected = false; _listenChannel.connect(_listenChannelName); } } static function listen() { _listenChannel = new LocalConnection(); _listenChannel.handshake = function (args) { mochi.MochiServices.__set__comChannelName(args.newChannel); }; _listenChannel.allowDomain = function (d) { return(true); }; _listenChannel.allowInsecureDomain = _listenChannel.allowDomain; _listenChannel.connect(_listenChannelName); } static function initComChannels() { if (!_connected) { _sendChannel.onStatus = function (infoObject) { mochi.MochiServices.onStatus(infoObject); }; _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()}); _rcvChannel.onStatus = function (infoObject) { mochi.MochiServices.onStatus(infoObject); }; _rcvChannel.onReceive = function (pkg) { var cb = pkg.callbackID; var cblst = this._callbacks[cb]; if (!cblst) { return(undefined); } var method = cblst.callbackMethod; var obj = cblst.callbackObject; if (obj && (typeof(method) == "string")) { method = obj[method]; } if (method != undefined) { method.apply(obj, pkg.args); } delete this._callbacks[cb]; }; _rcvChannel.onError = function () { mochi.MochiServices.onError.apply(null, ["IOError"]); }; _rcvChannel.connect(_rcvChannelName); _connecting = false; _connected = true; _listenChannel.close(); while (_sendChannel._queue.length > 0) { _sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift()); } } } static function flush(error) { var request; var callback; while (_sendChannel._queue.length > 0) { request = _sendChannel._queue.shift(); delete callback; if (request.callbackID != null) { callback = _rcvChannel._callbacks[request.callbackID]; } delete _rcvChannel._callbacks[request.callbackID]; if (error) { handleError(request.args, callback.callbackObject, callback.callbackMethod); } } } static function handleError(args, callbackObject, callbackMethod) { if (args != null) { if (args.onError != null) { args.onError.apply(null, ["NotConnected"]); } if ((args.options != null) && (args.options.onError != null)) { args.options.onError.apply(null, ["NotConnected"]); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = "NotConnected"; if ((callbackObject != null) && (typeof(callbackMethod) == "string")) { callbackObject[callbackMethod](args); } else if (callbackMethod != null) { callbackMethod.apply(args); } } } static function send(methodName, args, callbackObject, callbackMethod) { if (_connected) { _sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID}); } else { if ((_clip == undefined) || (!_connecting)) { onError.apply(null, ["NotConnected"]); handleError(args, callbackObject, callbackMethod); flush(true); return(undefined); } _sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID}); } _rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod}; _rcvChannel._nextcallbackID++; } static function addLinkEvent(url, btn, onClick) { var vars = new Object(); vars.mav = getVersion(); vars.swfv = btn.getSWFVersion() || 6; vars.swfurl = btn._url; vars.fv = System.capabilities.version; vars.os = System.capabilities.os; vars.lang = System.capabilities.language; vars.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY; var s = "?"; var i = 0; for (var x in vars) { if (i != 0) { s = s + "&"; } i++; s = ((s + x) + "=") + escape(vars[x]); } var clk = btn.createEmptyMovieClip("clk", 1001); clk._alpha = 0; clk.beginFill(1044735); clk.moveTo(0, 0); clk.lineTo(0, btn._height); clk.lineTo(btn._width, btn._height); clk.lineTo(btn._width, 0); clk.lineTo(0, 0); clk.endFill(); clk.onRelease = function () { getURL (url + s, "_blank"); if (onClick != undefined) { onClick(); } }; } static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf"; static var _listenChannelName = "__mochiservices"; static var _connecting = false; static var _connected = false; }
Symbol 494 MovieClip [__Packages.TipsHelper] Frame 0
class TipsHelper { function TipsHelper () { } static function initTipsArray() { tipsArray_[0] = {image:"Sign_Mini_Mop", tipHeader:"TIP_CLEANING_HEADER", tipText:"TIP_CLEANING_TEXT"}; tipsArray_[1] = {image:"Sign_Mini_Gleentwine", tipHeader:"TIP_MULLED_HEADER", tipText:"TIP_MULLED_TEXT"}; tipsArray_[2] = {image:"Sign_Mini_Food", tipHeader:"TIP_FOOD_HEADER", tipText:"TIP_FOOD_TEXT"}; tipsArray_[3] = {image:"Sign_Mini_Mop", tipHeader:"TIP_CLEANING_HEADER", tipText:"TIP_CLEANING_TEXT"}; tipsArray_[4] = {image:"Sign_Mini_Gleentwine", tipHeader:"TIP_MULLED_HEADER", tipText:"TIP_MULLED_TEXT"}; tipsArray_[5] = {image:"Sign_Mini_Food", tipHeader:"TIP_FOOD_HEADER", tipText:"TIP_FOOD_TEXT"}; tipsArray_[6] = {image:"Sign_Mini_Mop", tipHeader:"TIP_CLEANING_HEADER", tipText:"TIP_CLEANING_TEXT"}; tipsArray_[7] = {image:"Sign_Mini_Gleentwine", tipHeader:"TIP_MULLED_HEADER", tipText:"TIP_MULLED_TEXT"}; tipsArray_[8] = {image:"Sign_Mini_Food", tipHeader:"TIP_FOOD_HEADER", tipText:"TIP_FOOD_TEXT"}; tipsArray_[9] = {image:"Sign_Mini_Mop", tipHeader:"TIP_CLEANING_HEADER", tipText:"TIP_CLEANING_TEXT"}; tipsArray_[10] = {image:"Sign_Mini_Gleentwine", tipHeader:"TIP_MULLED_HEADER", tipText:"TIP_MULLED_TEXT"}; tipsArray_[11] = {image:"Sign_Mini_Food", tipHeader:"TIP_FOOD_HEADER", tipText:"TIP_FOOD_TEXT"}; tipsArray_[12] = {image:"Sign_Mini_Mop", tipHeader:"TIP_CLEANING_HEADER", tipText:"TIP_CLEANING_TEXT"}; tipsArray_[13] = {image:"Sign_Mini_Gleentwine", tipHeader:"TIP_MULLED_HEADER", tipText:"TIP_MULLED_TEXT"}; } static var tipsArray_ = new Array(); }
Symbol 495 MovieClip [__Packages.MapMenu] Frame 0
class MapMenu extends MovieClip { static var MENUINSTANCE; var removeMovieClip, createEmptyMovieClip, getNextHighestDepth; function MapMenu () { super(); } static function initbtnsObjs() { btnsObjs.TextButton1 = {rcode:"MAP_BACK", caption:"BACK"}; btnsObjs.TextButton2 = {rcode:"MAP_PLAY", caption:"PLAY"}; } function destroy() { removeMovieClip(); } function create() { MENUINSTANCE = this; initbtnsObjs(); MenuHelper.processControls(this, btnsObjs); loadStars(); } function setSignMC(mc, aSign) { var prex = (mc._x + (mc._width / 2)); var prey = (mc._y + (mc._height / 2)); mc.attachBitmap(flash.display.BitmapData.loadBitmap(aSign), 0); mc._x = prex - (mc._width / 2); mc._y = prey - (mc._height / 2); mc.sign = aSign; } function setSign(starInd, aSign) { var aClip = this["aStar" + starInd]; setSignMC(aClip, aSign); } function setActive(starInd) { com.mosesSupposes.fuse.ZigoEngine.doTween(this["aStar" + starInd], ["_width", "_height", "_x", "_y"], [this["aStar" + starInd]._width - 10, this["aStar" + starInd]._width - 10, this["aStar" + starInd]._x + 5, this["aStar" + starInd]._y + 5], 0.8, com.mosesSupposes.fuse.PennerEasing.linear, 0, {cycles:"LOOP"}); } function loadStars() { var i = 0; while (i < 12) { var starClip = createEmptyMovieClip("aStar" + i, getNextHighestDepth()); starClip._x = this["star" + i]._x; starClip._y = this["star" + i]._y; starClip.attachBitmap(flash.display.BitmapData.loadBitmap("Sign_Point"), 0, "auto", true); this["star" + i].swapDepths(getNextHighestDepth()); this["star" + i].removeMovieClip(); delete this["star" + i]; starClip.useHandCursor = false; i++; } var i = 0; while (i < Game.CURRLEVEL) { setSign(i, "Sign_Star"); i++; } setActive(Game.CURRLEVEL); } static var btnsObjs = new Array(); static var STARSPOINT = new Array(new flash.geom.Point(144, 268), new flash.geom.Point(153, 288), new flash.geom.Point(168, 305), new flash.geom.Point(186, 319), new flash.geom.Point(217, 319), new flash.geom.Point(258, 316), new flash.geom.Point(280, 298), new flash.geom.Point(280, 265), new flash.geom.Point(262, 239), new flash.geom.Point(263, 204), new flash.geom.Point(283, 187), new flash.geom.Point(308, 167)); }
Symbol 496 MovieClip [__Packages.DlgSure] Frame 0
class DlgSure extends MovieClip { static var retCode, MENUINSTANCE, toDisable; var txtLabel1, _x, _width, _y, _height; function DlgSure () { super(); } static function initbtnsObjs() { btnsObjs.TextButton1 = {rcode:"SURE_OK", caption:"OK"}; btnsObjs.TextButton2 = {rcode:"SURE_CANCEL", caption:"CANCEL"}; } function create(disableClip, rcode) { retCode = rcode; MENUINSTANCE = this; toDisable = disableClip; initbtnsObjs(); if ((rcode == "ABORTGAME") || (rcode == "INS_ABORTGAME")) { txtLabel1.text = Dict.transl("DLG_SUREREABORT"); } MenuHelper.processControls(this, btnsObjs); disableClip._visible = false; _x = 320 - (_width / 2); _y = 240 - (_height / 2); } static var btnsObjs = new Array(); }
Symbol 497 MovieClip [__Packages.ProfileMenu] Frame 0
class ProfileMenu extends MovieClip { static var MENUINSTANCE; var toActivate, getNextHighestDepth, attachMovie; function ProfileMenu () { super(); } static function initbtnsObjs() { btnsObjs.TextButton1 = {rcode:"CHANGE_OK", caption:"OK"}; } function create(activate) { toActivate = activate; MENUINSTANCE = this; initbtnsObjs(); for (var key in this) { if (key.indexOf("TextButton") != -1) { this[key].swapDepths(getNextHighestDepth()); var xpos = this[key]._x; var ypos = this[key]._y; var caption = this[key].btntext; this[key].removeMovieClip(); delete this[key]; attachMovie("TextButton", key, getNextHighestDepth()); this[key]._x = xpos; this[key]._y = ypos; btnsObjs[key].parentMenu = this; this[key].create(btnsObjs[key]); } else if (key.indexOf("EditText") != -1) { if (key == "EditText1") { this[key].text = Game.playerName; } else if (key == "EditText2") { this[key].text = "Enter your Name"; } } } } static var btnsObjs = new Array(); }
Symbol 498 MovieClip [__Packages.InShopMenu] Frame 0
class InShopMenu extends MovieClip { static var MENUINSTANCE; var _x, _width, _y, _height; function InShopMenu () { super(); } static function initbtnsObjs() { btnsObjs.TextButton1 = {rcode:"INS_RESUME", caption:"RESUME"}; btnsObjs.TextButton2 = {rcode:"INS_ABORT", caption:"ABORT"}; btnsObjs.TextButton3 = {rcode:"INS_OPTIONS", caption:"OPTIONS"}; btnsObjs.TextButton4 = {rcode:"INS_GETFULL", caption:"GET FULL"}; btnsObjs.TextButton5 = {rcode:"INS_STATIST", caption:"STATISTICS", visible:false}; btnsObjs.TextButton6 = {rcode:"INS_MOREGAMES", caption:"MORE GAMES"}; } function showControls() { for (var key in MENUINSTANCE) { MENUINSTANCE[key]._visible = true; } } function hideControls() { for (var key in MENUINSTANCE) { MENUINSTANCE[key]._visible = false; } } function create() { MENUINSTANCE = this; initbtnsObjs(); MenuHelper.processControls(this, btnsObjs); _x = 320 - (_width / 2); _y = 240 - (_height / 2); } static var btnsObjs = new Array(); }
Symbol 499 MovieClip [__Packages.IngameMenu] Frame 0
class IngameMenu extends MovieClip { static var MENUINSTANCE; var _x, _width, _y, _height; function IngameMenu () { super(); } static function initbtnsObjs() { btnsObjs.TextButton1 = {rcode:"ING_RESUME", caption:"RESUME"}; btnsObjs.TextButton2 = {rcode:"ING_RESTART", caption:"RESTART"}; btnsObjs.TextButton3 = {rcode:"ING_ABORT", caption:"ABORT"}; btnsObjs.TextButton4 = {rcode:"ING_OPTIONS", caption:"OPTIONS"}; btnsObjs.TextButton5 = {rcode:"ING_MOREGAMES", caption:"MORE GAMES"}; btnsObjs.TextButton6 = {rcode:"ING_GETFULL", caption:"GET FULL"}; btnsObjs.TextButton7 = {rcode:"ING_STATIST", caption:"STATISTICS", visible:false}; } function showControls() { for (var key in MENUINSTANCE) { MENUINSTANCE[key]._visible = true; } } function hideControls() { for (var key in MENUINSTANCE) { MENUINSTANCE[key]._visible = false; } } function create() { MENUINSTANCE = this; initbtnsObjs(); MenuHelper.processControls(this, btnsObjs); _x = 320 - (_width / 2); _y = 240 - (_height / 2); MenuHelper.distribControls({aClip:this, firstPos:new flash.geom.Point(26, 62), intervalV:5}); } static var btnsObjs = new Array(); }
Symbol 500 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd { function MochiAd () { } static function getVersion() { return("2.7"); } static function showPreGameAd(options) { var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }, ad_failed:function () { }, ad_loaded:function (width, height) { }, ad_skipped:function () { }, ad_progress:function (percent) { }}; options = _parseOptions(options, DEFAULTS); if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") { options.ad_started(); options.ad_finished(); return(undefined); } 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_failed(); 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); if (options.no_progress_bar) { bar._visible = false; delete options.no_progress_bar; } else { 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.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; var sendHostProgress = false; mc.lc.sendHostLoadProgress = function (lc_name) { sendHostProgress = true; }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var _chk = this.mc._mochiad_wait; _chk.server_control = true; _chk.started = getTimer(); _chk.ad_msec = msec; }; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { return(s); }; 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; options.ad_progress(pcnt); if (sendHostProgress) { clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:clip_pcnt}); if (clip_pcnt == 100) { sendHostProgress = 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) && (clip_pcnt == 100)) { options.ad_failed(); 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 showClickAwayAd(options) { var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () { }, ad_finished:function () { }, ad_loaded:function (width, height) { }, ad_failed:function () { }, ad_skipped:function () { }}; options = _parseOptions(options, DEFAULTS); var clip = options.clip; var ad_timeout = options.ad_timeout; delete options.ad_timeout; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var 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_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { return(s); }; var sendHostProgress = false; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; 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")) { finished = true; chk.showing = true; chk.started = getTimer(); } else if (elapsed > chk.ad_timeout) { options.ad_failed(); finished = true; } } if (finished) { delete this.onEnterFrame; } }; } 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(); }, ad_failed:function () { }, ad_loaded:function (width, height) { }, ad_skipped:function () { }}; 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_failed(); 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 = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var _chk = this.mc._mochiad_wait; _chk.server_control = true; _chk.started = getTimer(); _chk.ad_msec = msec - 250; }; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { return(s); }; 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) { options.ad_failed(); 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 showPreloaderAd(options) { showPreGameAd(options); } static function showTimedAd(options) { showInterLevelAd(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 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); } if (clip._mochiad._containerLCName != undefined) { clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"}); } 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); } static function rpc(clip, callbackID, arg) { switch (arg.id) { case "setValue" : setValue(clip, arg.objectName, arg.value); return; case "getValue" : var val = getValue(clip, arg.objectName); clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, val); return; case "runMethod" : var ret = runMethod(clip, arg.method, arg.args); clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, ret); } } static function setValue(base, objectName, value) { var nameArray = objectName.split("."); var i; i = 0; while (i < (nameArray.length - 1)) { if ((base[nameArray[i]] == undefined) || (base[nameArray[i]] == null)) { return(undefined); } base = base[nameArray[i]]; i++; } base[nameArray[i]] = value; } static function getValue(base, objectName) { var nameArray = objectName.split("."); var i; i = 0; while (i < (nameArray.length - 1)) { if ((base[nameArray[i]] == undefined) || (base[nameArray[i]] == null)) { return(undefined); } base = base[nameArray[i]]; i++; } return(base[nameArray[i]]); } static function runMethod(base, methodName, argsArray) { var nameArray = methodName.split("."); var i; i = 0; while (i < (nameArray.length - 1)) { if ((base[nameArray[i]] == undefined) || (base[nameArray[i]] == null)) { return(undefined); } base = base[nameArray[i]]; i++; } if (typeof(base[nameArray[i]]) == "function") { return(base[nameArray[i]].apply(base, argsArray)); } return(undefined); } }
Symbol 501 MovieClip [__Packages.mc_ADS] Frame 0
class 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"); }; } } } 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 502 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class 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 503 MovieClip [__Packages.ResultMenu] Frame 0
class ResultMenu extends MovieClip { static var MENUINSTANCE; var TextLabel6, TextLabel9, TextLabel10, TextLabel13, TextLabel11; function ResultMenu () { super(); } static function initbtnsObjs() { btnsObjs.TextButton1 = {rcode:"RESULT_OK", caption:"OK"}; btnsObjs.TextLabel1 = {caption:"Goal"}; btnsObjs.TextLabel2 = {caption:"Expert goal"}; btnsObjs.TextLabel3 = {caption:"Rent"}; btnsObjs.TextLabel4 = {caption:"Level total"}; btnsObjs.TextLabel5 = {caption:"Money total"}; btnsObjs.TextLabel6 = {caption:"0"}; btnsObjs.TextLabel7 = {caption:"0"}; btnsObjs.TextLabel8 = {caption:"0"}; btnsObjs.TextLabel9 = {caption:"0"}; btnsObjs.TextLabel10 = {caption:"0"}; btnsObjs.TextLabel11 = {caption:"NOT BAD"}; btnsObjs.TextLabel12 = {caption:"Your Score"}; btnsObjs.TextLabel13 = {caption:"0"}; } function create() { MENUINSTANCE = this; initbtnsObjs(); MenuHelper.processControls(this, btnsObjs); TextLabel6.text = Game.maxLevelMoney; TextLabel9.text = Game.levelMoney; TextLabel10.text = Game.totalMoney; TextLabel13.text = Game.totalScore; if (Game.__get__levelMoney() >= Game.maxLevelMoney) { TextLabel11.text = "Good Job!"; } } static var btnsObjs = new Array(); }
Symbol 504 MovieClip [__Packages.Claus] Frame 0
class Claus extends MovieClip { static var tempGiftPoses, CLAUSINSTANCE; var currFrame_, attachBitmap, bitmapArray, bonusdone, _width, _x, _y, frameBitmap_; function Claus () { super(); } function set currFrame(aNumber) { currFrame_ = aNumber; drawFrame(aNumber); //return(currFrame); } function get currFrame() { return(currFrame_); } function drawFrame(aNumber) { attachBitmap(bitmapArray[aNumber], 0); } function testDepth(aClip) { if (((bonusdone == false) && ((_x + (_width / 2)) >= 320)) && (giftCount < 3)) { var nowTime = getTimer(); if ((nowTime - lastTime) >= 300) { lastTime = nowTime; var newPos = flash.geom.Point(tempGiftPoses.pop()); Game.startGift(new flash.geom.Point(_x + (_width / 2), _y), new flash.geom.Point(newPos.x, newPos.y)); giftCount++; } } } function removeSanta(aClip) { aClip.removeMovieClip(); delete aClip; } function sortRand(a, b) { var rand1 = Math.random(); var rand2 = Math.random(); if (rand1 < rand2) { return(-1); } if (rand1 > rand2) { return(1); } return(0); } function create() { lastTime = 0; giftCount = 0; tempGiftPoses = new Array(); var i = 0; while (i < giftPosesArr.length) { tempGiftPoses.push(giftPosesArr[i]); i++; } tempGiftPoses.sort(sortRand); bonusdone = false; CLAUSINSTANCE = this; bitmapArray = BF.getAnimFrames2({bitmapName:"deer_santa", framesCount:3}); frameBitmap_ = new flash.display.BitmapData(bitmapArray[0]._width, bitmapArray[0]._height, true, 0); currFrame = (0); com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_x", 640, 7, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:removeSanta, args:this, updfunc:testDepth, updargs:this}); com.mosesSupposes.fuse.ZigoEngine.doTween(this, "currFrame", 2, 0.3, com.mosesSupposes.fuse.PennerEasing.linear, 0, {cycles:"LOOP", roundResults:true}); } static var giftCount = 0; static var lastTime = 0; static var giftPosesArr = new Array(new flash.geom.Point(233, 167), new flash.geom.Point(191, 195), new flash.geom.Point(141, 286), new flash.geom.Point(190, 351), new flash.geom.Point(302, 382), new flash.geom.Point(389, 369), new flash.geom.Point(465, 340), new flash.geom.Point(480, 283)); }
Symbol 505 MovieClip [__Packages.OptionsMenu] Frame 0
class OptionsMenu extends MovieClip { static var MENUINSTANCE, prevMenu; var musicarea, musSlide, soundarea, sndSlide, getNextHighestDepth, muteClip, onMouseDown; function OptionsMenu () { super(); } static function set soundVal(aVal) { soundVal_ = aVal; //return(soundVal); } static function get soundVal() { return(soundVal_); } static function set musicVal(aVal) { musicVal_ = aVal; //return(musicVal); } static function get musicVal() { return(musicVal_); } static function set mute(aVal) { if (!mute) { SoundHelper.stopMusic(); } else { SoundHelper.musicPlay("music1"); } mute_ = aVal; //return(mute); } static function get mute() { return(mute_); } static function initbtnsObjs() { btnsObjs.TextButton1 = {rcode:"OPTIONS_OK", caption:"OK"}; } function create(mc_prev) { MENUINSTANCE = this; prevMenu = mc_prev; initbtnsObjs(); MenuHelper.processControls(this, btnsObjs); musSlide._x = ((musicVal / 100) * musicarea._width) + 24; sndSlide._x = ((soundVal / 100) * soundarea._width) + 24; musicarea.swapDepths(getNextHighestDepth()); musicarea.onPress = function () { this._parent.musSlide._x = this._xmouse + 24; SoundHelper.musicVolume((this._xmouse / this._width) * 100); OptionsMenu.__set__musicVal((this._xmouse / this._width) * 100); }; soundarea.onPress = function () { this._parent.sndSlide._x = this._xmouse + 24; OptionsMenu.__set__soundVal((this._xmouse / this._width) * 100); }; muteClip._visible = mute; onMouseDown = function () { if ((((this._xmouse >= 52) && (this._xmouse <= 70)) && (this._ymouse >= 148)) && (this._ymouse <= 165)) { this.muteClip._visible = !this.muteClip._visible; OptionsMenu.__set__mute(!OptionsMenu.__get__mute()); } }; } static var btnsObjs = new Array(); static var STARTXPOSITION = 48; static var ENDXPOSITION = 162; static var MUSICY1 = 80; static var MUSICY2 = 104; static var SOUNDY1 = 119; static var SOUNDY2 = 144; static var soundVal_ = 90; static var musicVal_ = 50; static var mute_ = false; }
Symbol 506 MovieClip [__Packages.DlgBuy] Frame 0
class DlgBuy extends MovieClip { static var MENUINSTANCE; var _x, _width, _y, _height; function DlgBuy () { super(); } static function initbtnsObjs() { btnsObjs.TextButton1 = {rcode:"DLGBUY_OK", caption:"OK"}; } function create() { MENUINSTANCE = this; initbtnsObjs(); MenuHelper.processControls(this, btnsObjs); _x = 320 - (_width / 2); _y = 240 - (_height / 2); } static var btnsObjs = new Array(); }
Symbol 507 MovieClip [__Packages.ScoresMenu] Frame 0
class ScoresMenu extends MovieClip { static var MENUINSTANCE; var toActivate; function ScoresMenu () { super(); } static function initbtnsObjs() { btnsObjs.TextButton1 = {rcode:"SCORES_OK", caption:"OK"}; } function create(activating) { MENUINSTANCE = this; toActivate = activating; initbtnsObjs(); MenuHelper.processControls(this, btnsObjs); } static var btnsObjs = new Array(); }
Symbol 508 MovieClip [__Packages.LoadingMenu] Frame 0
class LoadingMenu extends MovieClip { static var MENUINSTANCE; var TextLabel5, onMouseDown, progressBar, returnCode, _x, _width, _y, _height, TextLabel6, tipHeader, tipText, mcTipImage; function LoadingMenu () { super(); } function afterLoad() { TextLabel5.text = "PRESS LEFT BUTTON"; onMouseDown = function () { Game.onCommand(this.returnCode); }; } function setProgressWidth(aVal) { progressBar._width = aVal; } function create(retCode) { returnCode = retCode; MENUINSTANCE = this; _x = 320 - (_width / 2); _y = 240 - (_height / 2); progressBar._width = 0; var aFuse = (new com.mosesSupposes.fuse.Fuse()); aFuse.autoClear = true; aFuse.scope = Customers; if (Customers.CHILDSBMPARR == undefined) { Customers.setStateDepths(); Customers.setStateToTaskArr(); Customers.setCharPoses(); Customers.setCustomersPoses(); Customers.setChildsBmpArr(); var percs = 0; for (var key in Customers.CHILDSBMPARR) { for (var colors in Customers.CHILDSBMPARR[key]) { Customers.CHILDSDATA[colors] = new Array(); for (var all in Customers.CHILDSBMPARR[key][colors]) { aFuse.push({func:"setProgressWidth", args:[percs * 2], scope:this}); aFuse.push({func:"setColor", args:[Customers.CHILDSDATA[colors], Customers.CHILDSBMPARR[key][colors], all]}); percs++; } } } for (var key in Customers.PARENTSBMPARR) { Customers.PARENTSDATA[key] = new Array(); for (var colors in Customers.PARENTSBMPARR[key]) { Customers.PARENTSDATA[key][colors] = new Array(); for (var all in Customers.PARENTSBMPARR[key][colors]) { percs++; aFuse.push({func:"setProgressWidth", args:[percs * 2], scope:this}); aFuse.push({func:"setColor", args:[Customers.PARENTSDATA[key][colors], Customers.PARENTSBMPARR[key][colors], all]}); } } } aFuse.push({func:"setColors"}); aFuse.pushTween(progressBar, "_width", [462], 3, com.mosesSupposes.fuse.PennerEasing.linear); } else { aFuse.pushTween(progressBar, "_width", [462], 7, com.mosesSupposes.fuse.PennerEasing.linear); } aFuse.push({func:"afterLoad", scope:this}); aFuse.start(); TextLabel6.text = Dict.transl("MENU_TIPS"); tipHeader.text = Dict.transl(TipsHelper.tipsArray_[Game.CURRLEVEL].tipHeader); tipText.text = Dict.transl(TipsHelper.tipsArray_[Game.CURRLEVEL].tipText); mcTipImage.attachBitmap(flash.display.BitmapData.loadBitmap(TipsHelper.tipsArray_[Game.CURRLEVEL].image), 0); } static var LOADINGTIME = 7000; }
Symbol 509 MovieClip [__Packages.SimpleAnim] Frame 0
class SimpleAnim extends MovieClip { var currFrame_, mpYOffset_, _y, data_, frames_, playTime_, loops_, srcBitmap_, looptype_, startingFrame_, frameWidth_, frameHeight_, frameBitmap_, attachBitmap, posCorner_, xPos_, yPos_, _x, _width; function SimpleAnim () { super(); } function set currFrame(aNumber) { drawFrame(aNumber); //return(currFrame); } function get currFrame() { return(currFrame_); } function getMPY() { return(_y + mpYOffset_); } function createByXML(aXML, parentGame_) { data_ = new Array(); frames_ = Number(aXML.firstChild.attributes.frames); playTime_ = Number(aXML.firstChild.attributes.playtime); loops_ = Number(aXML.firstChild.attributes.loops); srcBitmap_ = flash.display.BitmapData.loadBitmap(aXML.firstChild.attributes.bitmap_); looptype_ = Number(aXML.firstChild.attributes.looptype); startingFrame_ = Number(aXML.firstChild.attributes.startingframe); mpYOffset_ = Number(aXML.firstChild.attributes.mpy); currFrame_ = -1; frameWidth_ = srcBitmap_.width; frameHeight_ = srcBitmap_.height / frames_; frameBitmap_ = new flash.display.BitmapData(frameWidth_, frameHeight_, true, 0); attachBitmap(frameBitmap_, FRAMEBMPDEPTH); drawFrame(startingFrame_); switch (aXML.firstChild.attributes.poscorner) { case "ra" : posCorner_ = CORNERRA; break; case "la" : posCorner_ = CORNERLA; } xPos_ = Number(aXML.firstChild.attributes.xpos); yPos_ = Number(aXML.firstChild.attributes.ypos); setPosition(xPos_, yPos_); } function get yPos() { return(yPos_); } function get xPos() { return(xPos_); } function set xPos(aVal) { switch (posCorner_) { case CORNERRA : _x = aVal - _width; xPos_ = aVal; break; case CORNERLA : _x = aVal; xPos_ = aVal; } //return(xPos); } function set yPos(aVal) { switch (posCorner_) { case CORNERRA : case CORNERLA : _y = aVal; yPos_ = aVal; } //return(yPos); } function setPosition(x, y) { switch (posCorner_) { case CORNERRA : _x = x - _width; _y = y; return; case CORNERLA : xPos = (x); yPos = (y); _x = x; _y = y; } } function drawFrame(aNumber) { if (currFrame_ != Math.abs(Math.floor(aNumber))) { currFrame_ = Math.abs(Math.floor(aNumber)); frameBitmap_.colorTransform(frameBitmap_.rectangle, Game.transparent_); frameBitmap_.copyPixels(srcBitmap_, new flash.geom.Rectangle(0, currFrame_ * frameHeight_, frameWidth_, frameHeight_), new flash.geom.Point(0, 0)); setPosition(xPos_, yPos_); } } function nextCycle() { currFrame = (-1); playCycle(); } function playCycle() { com.mosesSupposes.fuse.ZigoEngine.doTween(this, "currFrame", [frames_ - 1], playTime_, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"nextCycle"}); } function playForward(startFrame, endFrame, playTime) { if (startFrame == undefined) { startFrame = currFrame_; } if (endFrame == undefined) { endFrame = frames_ - 1; } if (playTime == undefined) { playTime = playTime_; } com.mosesSupposes.fuse.ZigoEngine.doTween(this, "currFrame", [frames_ - 1], playTime_, com.mosesSupposes.fuse.PennerEasing.linear, 0); } function playBack(startFrame, endFrame, playTime) { if (startFrame == undefined) { startFrame = currFrame_; } if (endFrame == undefined) { endFrame = frames_ - 1; } if (playTime == undefined) { playTime = playTime_; } com.mosesSupposes.fuse.ZigoEngine.doTween(this, "currFrame", [0], playTime_, com.mosesSupposes.fuse.PennerEasing.linear, 0); } static var LOOP_FWD_BACK = 0; static var FRAMEBMPDEPTH = 10; static var CORNERRA = 0; static var CORNERLA = 1; }
Symbol 510 MovieClip [__Packages.FinishDlg] Frame 0
class FinishDlg extends MovieClip { static var MENUINSTANCE; var _x, _width, _y, _height, textFinish; function FinishDlg () { super(); } static function initbtnsObjs() { btnsObjs.TextButton1 = {rcode:"FIN_MENU", caption:"MENU"}; btnsObjs.TextButton2 = {rcode:"FIN_GETFULL", caption:"GET FULL"}; } function create() { MENUINSTANCE = this; initbtnsObjs(); MenuHelper.processControls(this, btnsObjs); _x = 320 - (_width / 2); _y = 240 - (_height / 2); textFinish.text = Dict.transl("FINISH_TEXT"); } static var btnsObjs = new Array(); }
Symbol 23 MovieClip [Game] Frame 1
#initclip 75 Object.registerClass("Game", Game); #endinitclip
Symbol 27 MovieClip [Scene] Frame 1
#initclip 53 Object.registerClass("Scene", Scene); #endinitclip
Symbol 53 MovieClip Frame 2
stop();
Symbol 63 MovieClip [GameMenu] Frame 1
#initclip 54 Object.registerClass("GameMenu", GameMenu); #endinitclip
Symbol 64 MovieClip [CCloud] Frame 1
#initclip 55 Object.registerClass("CCloud", CCloud); #endinitclip
Symbol 65 MovieClip [Hero] Frame 1
#initclip 56 Object.registerClass("Hero", Hero); #endinitclip
Symbol 66 MovieClip [Customers] Frame 1
#initclip 57 Object.registerClass("Customers", Customers); #endinitclip
Symbol 82 MovieClip [MainMenu] Frame 1
#initclip 58 Object.registerClass("MainMenu", MainMenu); #endinitclip
Symbol 87 MovieClip [ProfileMenu] Frame 1
#initclip 59 Object.registerClass("ProfileMenu", ProfileMenu); #endinitclip
Symbol 100 MovieClip Frame 1
stop();
Symbol 103 MovieClip [OptionsMenu] Frame 1
#initclip 60 Object.registerClass("OptionsMenu", OptionsMenu); #endinitclip
Symbol 115 MovieClip [ResultMenu] Frame 1
#initclip 61 Object.registerClass("ResultMenu", ResultMenu); #endinitclip
Symbol 117 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 2
stop();
Symbol 126 MovieClip [ShopMenu] Frame 1
#initclip 62 Object.registerClass("ShopMenu", ShopMenu); #endinitclip
Symbol 221 MovieClip [Shop] Frame 1
#initclip 63 Object.registerClass("Shop", Shop); #endinitclip
Symbol 236 MovieClip [IngameMenu] Frame 1
#initclip 64 Object.registerClass("IngameMenu", IngameMenu); #endinitclip
Symbol 240 MovieClip [DlgBuy] Frame 1
#initclip 65 Object.registerClass("DlgBuy", DlgBuy); #endinitclip
Symbol 243 MovieClip [ScoresMenu] Frame 1
#initclip 66 Object.registerClass("ScoresMenu", ScoresMenu); #endinitclip
Symbol 258 MovieClip [LoadingMenu] Frame 1
#initclip 67 Object.registerClass("LoadingMenu", LoadingMenu); #endinitclip
Symbol 259 MovieClip [Claus] Frame 1
#initclip 68 Object.registerClass("Claus", Claus); #endinitclip
Symbol 260 MovieClip [SimpleAnim] Frame 1
#initclip 69 Object.registerClass("SimpleAnim", SimpleAnim); #endinitclip
Symbol 262 MovieClip [DlgSure] Frame 1
#initclip 70 Object.registerClass("DlgSure", DlgSure); #endinitclip
Symbol 264 MovieClip [InShopMenu] Frame 1
#initclip 71 Object.registerClass("InShopMenu", InShopMenu); #endinitclip
Symbol 269 MovieClip [FinishDlg] Frame 1
#initclip 72 Object.registerClass("FinishDlg", FinishDlg); #endinitclip
Symbol 270 MovieClip [mc_ADS] Frame 1
#initclip 73 Object.registerClass("mc_ADS", mc_ADS); #endinitclip
Symbol 412 MovieClip [MapMenu] Frame 1
#initclip 74 Object.registerClass("MapMenu", MapMenu); #endinitclip
Symbol 460 MovieClip Frame 1
stop();
Symbol 460 MovieClip Frame 2
stop();

Library Items

Symbol 1 BitmapUsed by:2 245
Symbol 2 GraphicUses:1Used by:16
Symbol 3 BitmapUsed by:6
Symbol 4 BitmapUsed by:6
Symbol 5 BitmapUsed by:6
Symbol 6 GraphicUses:3 4 5Used by:7
Symbol 7 MovieClip [mcBtnYellow]Uses:6Used by:11 460
Symbol 8 FontUsed by:9 12 13 14 15 34 43 44 73 75 85 86 90 91 98 101 106 107 108 109 110 111 112 113 114 125 225 226 227 228 235 239 249 250 251 252 253 254 256 257 261 263 267 427
Symbol 9 EditableTextUses:8Used by:10
Symbol 10 MovieClipUses:9Used by:11
Symbol 11 MovieClip [TextButton]Uses:7 10Used by:16 82 87 103 115 236 240 243 262 264 269 412
Symbol 12 EditableTextUses:8Used by:16
Symbol 13 EditableTextUses:8Used by:16
Symbol 14 EditableTextUses:8Used by:16
Symbol 15 EditableTextUses:8Used by:16
Symbol 16 MovieClip [BuyDlg]Uses:2 11 12 13 14 15Used by:275
Symbol 17 BitmapUsed by:18
Symbol 18 GraphicUses:17Used by:Timeline
Symbol 19 BitmapUsed by:20
Symbol 20 GraphicUses:19Used by:21
Symbol 21 MovieClipUses:20Used by:Timeline
Symbol 461 MovieClip [__Packages.Helper]
Symbol 462 MovieClip [__Packages.BuyDlg]
Symbol 463 MovieClip [__Packages.MenuHelper]
Symbol 464 MovieClip [__Packages.TextButton]
Symbol 465 MovieClip [__Packages.SoundHelper]
Symbol 466 MovieClip [__Packages.Map]
Symbol 467 MovieClip [__Packages.Game]
Symbol 468 MovieClip [__Packages.MainMenu]
Symbol 469 MovieClip [__Packages.ShopMenu]
Symbol 470 MovieClip [__Packages.GameMenu]
Symbol 471 MovieClip [__Packages.Shop]
Symbol 472 MovieClip [__Packages.Dict]
Symbol 473 MovieClip [__Packages.com.mosesSupposes.fuse.FuseKitCommon]
Symbol 474 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine]
Symbol 475 MovieClip [__Packages.com.mosesSupposes.fuse.ZManager]
Symbol 476 MovieClip [__Packages.com.mosesSupposes.fuse.PennerEasing]
Symbol 477 MovieClip [__Packages.Scene]
Symbol 478 MovieClip [__Packages.Service]
Symbol 479 MovieClip [__Packages.BF]
Symbol 480 MovieClip [__Packages.Hero]
Symbol 481 MovieClip [__Packages.com.mosesSupposes.fuse.Fuse]
Symbol 482 MovieClip [__Packages.mx.events.EventDispatcher]
Symbol 483 MovieClip [__Packages.com.mosesSupposes.fuse.FuseItem]
Symbol 484 MovieClip [__Packages.mx.utils.Delegate]
Symbol 485 MovieClip [__Packages.Actions]
Symbol 486 MovieClip [__Packages.Customers]
Symbol 487 MovieClip [__Packages.LevelsHelper]
Symbol 488 MovieClip [__Packages.CCloud]
Symbol 489 MovieClip [__Packages.TutorHelper]
Symbol 490 MovieClip [__Packages.FX]
Symbol 491 MovieClip [__Packages.Pathfinding]
Symbol 492 MovieClip [__Packages.mochi.MochiScores]
Symbol 493 MovieClip [__Packages.mochi.MochiServices]
Symbol 494 MovieClip [__Packages.TipsHelper]
Symbol 495 MovieClip [__Packages.MapMenu]
Symbol 496 MovieClip [__Packages.DlgSure]
Symbol 497 MovieClip [__Packages.ProfileMenu]
Symbol 498 MovieClip [__Packages.InShopMenu]
Symbol 499 MovieClip [__Packages.IngameMenu]
Symbol 500 MovieClip [__Packages.MochiAd]
Symbol 501 MovieClip [__Packages.mc_ADS]
Symbol 502 MovieClip [__Packages.mx.transitions.easing.Regular]
Symbol 503 MovieClip [__Packages.ResultMenu]
Symbol 504 MovieClip [__Packages.Claus]
Symbol 505 MovieClip [__Packages.OptionsMenu]
Symbol 506 MovieClip [__Packages.DlgBuy]
Symbol 507 MovieClip [__Packages.ScoresMenu]
Symbol 508 MovieClip [__Packages.LoadingMenu]
Symbol 509 MovieClip [__Packages.SimpleAnim]
Symbol 510 MovieClip [__Packages.FinishDlg]
Symbol 22 GraphicUsed by:275
Symbol 23 MovieClip [Game]Used by:275
Symbol 24 Bitmap [Bush]Used by:26 129 396
Symbol 25 BitmapUsed by:26 127
Symbol 26 GraphicUses:24 25Used by:27
Symbol 27 MovieClip [Scene]Uses:26Used by:275
Symbol 28 GraphicUsed by:63
Symbol 29 BitmapUsed by:30 42
Symbol 30 GraphicUses:29Used by:35
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:33
Symbol 33 MovieClipUses:32Used by:35 45
Symbol 34 EditableTextUses:8Used by:35
Symbol 35 MovieClipUses:30 33 34Used by:63
Symbol 36 BitmapUsed by:41
Symbol 37 BitmapUsed by:41
Symbol 38 BitmapUsed by:41
Symbol 39 BitmapUsed by:41
Symbol 40 BitmapUsed by:41
Symbol 41 GraphicUses:36 37 38 39 40Used by:63
Symbol 42 GraphicUses:29Used by:45
Symbol 43 EditableTextUses:8Used by:45
Symbol 44 EditableTextUses:8Used by:45
Symbol 45 MovieClipUses:42 33 43 44Used by:63
Symbol 46 BitmapUsed by:47
Symbol 47 GraphicUses:46Used by:48
Symbol 48 MovieClipUses:47Used by:63 126
Symbol 49 BitmapUsed by:50
Symbol 50 GraphicUses:49Used by:51
Symbol 51 MovieClipUses:50Used by:63 126
Symbol 52 GraphicUsed by:53
Symbol 53 MovieClipUses:52Used by:63
Symbol 54 BitmapUsed by:56
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:54 55Used by:63
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:62
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:61
Symbol 61 MovieClipUses:60Used by:62
Symbol 62 MovieClipUses:58 61Used by:63
Symbol 63 MovieClip [GameMenu]Uses:28 35 41 45 48 51 53 56 62Used by:275
Symbol 64 MovieClip [CCloud]Used by:275
Symbol 65 MovieClip [Hero]Used by:275
Symbol 66 MovieClip [Customers]Used by:275
Symbol 67 BitmapUsed by:69 245 268 396 408
Symbol 68 BitmapUsed by:69
Symbol 69 GraphicUses:67 68Used by:82
Symbol 70 BitmapUsed by:71
Symbol 71 GraphicUses:70Used by:72
Symbol 72 MovieClipUses:71Used by:82
Symbol 73 EditableTextUses:8Used by:82
Symbol 74 GraphicUsed by:76
Symbol 75 EditableTextUses:8Used by:76
Symbol 76 MovieClipUses:74 75Used by:82
Symbol 77 BitmapUsed by:79 402
Symbol 78 BitmapUsed by:79 402
Symbol 79 GraphicUses:77 78Used by:82
Symbol 80 BitmapUsed by:81
Symbol 81 GraphicUses:80Used by:82
Symbol 82 MovieClip [MainMenu]Uses:69 11 72 73 76 79 81Used by:275
Symbol 83 BitmapUsed by:84
Symbol 84 GraphicUses:83Used by:87
Symbol 85 EditableTextUses:8Used by:87
Symbol 86 EditableTextUses:8Used by:87
Symbol 87 MovieClip [ProfileMenu]Uses:84 11 85 86Used by:275
Symbol 88 BitmapUsed by:89
Symbol 89 GraphicUses:88Used by:103
Symbol 90 EditableTextUses:8Used by:103
Symbol 91 EditableTextUses:8Used by:103
Symbol 92 BitmapUsed by:93
Symbol 93 GraphicUses:92Used by:94
Symbol 94 MovieClipUses:93Used by:103
Symbol 95 BitmapUsed by:96
Symbol 96 GraphicUses:95Used by:97
Symbol 97 MovieClipUses:96Used by:103
Symbol 98 EditableTextUses:8Used by:100
Symbol 99 GraphicUsed by:100
Symbol 100 MovieClipUses:98 99Used by:103
Symbol 101 EditableTextUses:8Used by:102
Symbol 102 MovieClipUses:101Used by:103
Symbol 103 MovieClip [OptionsMenu]Uses:89 11 90 91 94 97 100 102Used by:275
Symbol 104 BitmapUsed by:105
Symbol 105 GraphicUses:104Used by:115
Symbol 106 EditableTextUses:8Used by:115
Symbol 107 EditableTextUses:8Used by:115
Symbol 108 EditableTextUses:8Used by:115
Symbol 109 EditableTextUses:8Used by:115
Symbol 110 EditableTextUses:8Used by:115
Symbol 111 EditableTextUses:8Used by:115
Symbol 112 EditableTextUses:8Used by:115
Symbol 113 EditableTextUses:8Used by:115
Symbol 114 EditableTextUses:8Used by:115
Symbol 115 MovieClip [ResultMenu]Uses:105 106 107 108 11 109 110 111 112 113 114Used by:275
Symbol 116 GraphicUsed by:117
Symbol 117 MovieClipUses:116Used by:126
Symbol 118 BitmapUsed by:119
Symbol 119 GraphicUses:118Used by:126
Symbol 120 BitmapUsed by:121
Symbol 121 GraphicUses:120Used by:122
Symbol 122 MovieClipUses:121Used by:126
Symbol 123 GraphicUsed by:124
Symbol 124 MovieClipUses:123Used by:126
Symbol 125 EditableTextUses:8Used by:126
Symbol 126 MovieClip [ShopMenu]Uses:117 119 48 51 122 124 125Used by:275
Symbol 127 GraphicUses:25Used by:128
Symbol 128 MovieClipUses:127Used by:221
Symbol 129 GraphicUses:24Used by:221
Symbol 130 Bitmap [Roads01]Used by:131 396
Symbol 131 GraphicUses:130Used by:138
Symbol 132 BitmapUsed by:133
Symbol 133 GraphicUses:132Used by:134
Symbol 134 MovieClipUses:133Used by:138 158 196 202 214
Symbol 135 BitmapUsed by:136
Symbol 136 GraphicUses:135Used by:137
Symbol 137 MovieClipUses:136Used by:138 158 196 202 214
Symbol 138 MovieClipUses:131 134 137Used by:221
Symbol 139 Bitmap [MulledWine00]Used by:140 396
Symbol 140 GraphicUses:139Used by:150
Symbol 141 Bitmap [MulledWine00_Sel]Used by:142 396
Symbol 142 GraphicUses:141Used by:143
Symbol 143 MovieClipUses:142Used by:150
Symbol 144 BitmapUsed by:145
Symbol 145 GraphicUses:144Used by:146
Symbol 146 MovieClipUses:145Used by:150 169 181 187 193 208 220
Symbol 147 BitmapUsed by:148
Symbol 148 GraphicUses:147Used by:149
Symbol 149 MovieClipUses:148Used by:150 169 181 187 193 208 220
Symbol 150 MovieClipUses:140 143 146 149Used by:221
Symbol 151 Bitmap [House00]Used by:152 194 396
Symbol 152 GraphicUses:151Used by:158
Symbol 153 Bitmap [House00_Sel]Used by:154 396
Symbol 154 GraphicUses:153Used by:155
Symbol 155 MovieClipUses:154Used by:158 196
Symbol 156 Bitmap [House_Illumination]Used by:157 195 396
Symbol 157 GraphicUses:156Used by:158
Symbol 158 MovieClipUses:152 155 157 134 137Used by:221
Symbol 159 Bitmap [Building_Masters]Used by:160 396
Symbol 160 GraphicUses:159Used by:161
Symbol 161 MovieClipUses:160Used by:221
Symbol 162 Bitmap [Table_Masters]Used by:163 396
Symbol 163 GraphicUses:162Used by:221
Symbol 164 Bitmap [Rocket01]Used by:165 396
Symbol 165 GraphicUses:164Used by:169
Symbol 166 Bitmap [Rocket01_Sel]Used by:167 396
Symbol 167 GraphicUses:166Used by:168
Symbol 168 MovieClipUses:167Used by:169
Symbol 169 MovieClipUses:165 168 149 146Used by:221
Symbol 170 Bitmap [Firewood]Used by:172 396
Symbol 171 Bitmap [Cilinder]Used by:172 396
Symbol 172 GraphicUses:170 171Used by:221
Symbol 173 Bitmap [Skates]Used by:174 396
Symbol 174 GraphicUses:173Used by:175
Symbol 175 MovieClipUses:174Used by:221
Symbol 176 Bitmap [SnowBoard]Used by:177 396
Symbol 177 GraphicUses:176Used by:181
Symbol 178 Bitmap [SnowBoard_Sel]Used by:179 396
Symbol 179 GraphicUses:178Used by:180
Symbol 180 MovieClipUses:179Used by:181
Symbol 181 MovieClipUses:177 180 149 146Used by:221
Symbol 182 Bitmap [Ski]Used by:183 396
Symbol 183 GraphicUses:182Used by:187
Symbol 184 Bitmap [Ski_Sel]Used by:185 396
Symbol 185 GraphicUses:184Used by:186
Symbol 186 MovieClipUses:185Used by:187
Symbol 187 MovieClipUses:183 186 149 146Used by:221
Symbol 188 Bitmap [Kitchen]Used by:189 396
Symbol 189 GraphicUses:188Used by:193
Symbol 190 Bitmap [Kitchen_Sel]Used by:191 396
Symbol 191 GraphicUses:190Used by:192
Symbol 192 MovieClipUses:191Used by:193
Symbol 193 MovieClipUses:189 192 149 146Used by:221
Symbol 194 GraphicUses:151Used by:196
Symbol 195 GraphicUses:156Used by:196
Symbol 196 MovieClipUses:194 155 195 134 137Used by:221
Symbol 197 Bitmap [Spruse01]Used by:198 396
Symbol 198 GraphicUses:197Used by:202
Symbol 199 Bitmap [Spruse01_Sel]Used by:200 396
Symbol 200 GraphicUses:199Used by:201
Symbol 201 MovieClipUses:200Used by:202
Symbol 202 MovieClipUses:198 201 134 137Used by:221
Symbol 203 Bitmap [Rink01]Used by:204 396
Symbol 204 GraphicUses:203Used by:208
Symbol 205 Bitmap [Rink01_Sel]Used by:206 396
Symbol 206 GraphicUses:205Used by:207
Symbol 207 MovieClipUses:206Used by:208
Symbol 208 MovieClipUses:204 207 149 146Used by:221
Symbol 209 Bitmap [Rink02]Used by:210 396
Symbol 210 GraphicUses:209Used by:214
Symbol 211 Bitmap [Rink02_Sel]Used by:212 396
Symbol 212 GraphicUses:211Used by:213
Symbol 213 MovieClipUses:212Used by:214
Symbol 214 MovieClipUses:210 213 134 137Used by:221
Symbol 215 Bitmap [Star]Used by:216 396
Symbol 216 GraphicUses:215Used by:220
Symbol 217 Bitmap [Star_Sel]Used by:218 396
Symbol 218 GraphicUses:217Used by:219
Symbol 219 MovieClipUses:218Used by:220
Symbol 220 MovieClipUses:216 219 149 146Used by:221
Symbol 221 MovieClip [Shop]Uses:128 129 138 150 158 161 163 169 172 175 181 187 193 196 202 208 214 220Used by:275
Symbol 222 BitmapUsed by:224
Symbol 223 BitmapUsed by:224
Symbol 224 GraphicUses:222 223Used by:229 428
Symbol 225 EditableTextUses:8Used by:229
Symbol 226 EditableTextUses:8Used by:229
Symbol 227 EditableTextUses:8Used by:229
Symbol 228 EditableTextUses:8Used by:229
Symbol 229 MovieClip [PriceBack]Uses:224 225 226 227 228Used by:275
Symbol 230 BitmapUsed by:231
Symbol 231 GraphicUses:230Used by:232
Symbol 232 MovieClip [signNo]Uses:231Used by:275
Symbol 233 BitmapUsed by:234
Symbol 234 GraphicUses:233Used by:236 264
Symbol 235 EditableTextUses:8Used by:236
Symbol 236 MovieClip [IngameMenu]Uses:234 11 235Used by:275
Symbol 237 BitmapUsed by:238
Symbol 238 GraphicUses:237Used by:240 262
Symbol 239 EditableTextUses:8Used by:240
Symbol 240 MovieClip [DlgBuy]Uses:238 11 239Used by:275
Symbol 241 BitmapUsed by:242
Symbol 242 GraphicUses:241Used by:243
Symbol 243 MovieClip [ScoresMenu]Uses:242 11Used by:275
Symbol 244 BitmapUsed by:245
Symbol 245 GraphicUses:67 1 244Used by:258
Symbol 246 BitmapUsed by:247
Symbol 247 GraphicUses:246Used by:248
Symbol 248 MovieClipUses:247Used by:258
Symbol 249 EditableTextUses:8Used by:258
Symbol 250 EditableTextUses:8Used by:258
Symbol 251 EditableTextUses:8Used by:258
Symbol 252 EditableTextUses:8Used by:258
Symbol 253 EditableTextUses:8Used by:258
Symbol 254 EditableTextUses:8Used by:258
Symbol 255 MovieClipUsed by:258
Symbol 256 EditableTextUses:8Used by:258
Symbol 257 EditableTextUses:8Used by:258
Symbol 258 MovieClip [LoadingMenu]Uses:245 248 249 250 251 252 253 254 255 256 257Used by:275
Symbol 259 MovieClip [Claus]Used by:275
Symbol 260 MovieClip [SimpleAnim]Used by:275 460
Symbol 261 EditableTextUses:8Used by:262
Symbol 262 MovieClip [DlgSure]Uses:238 11 261Used by:275
Symbol 263 EditableTextUses:8Used by:264
Symbol 264 MovieClip [InShopMenu]Uses:234 11 263Used by:275
Symbol 265 BitmapUsed by:266
Symbol 266 GraphicUses:265Used by:269
Symbol 267 EditableTextUses:8Used by:269
Symbol 268 GraphicUses:67Used by:269
Symbol 269 MovieClip [FinishDlg]Uses:266 11 267 268Used by:275
Symbol 270 MovieClip [mc_ADS]Used by:275
Symbol 271 Bitmap [splash3]Used by:274
Symbol 272 Bitmap [splash2]Used by:274
Symbol 273 Bitmap [splash1]Used by:274
Symbol 274 GraphicUses:271 272 273Used by:275
Symbol 275 MovieClipUses:22 23 27 63 64 65 66 82 87 103 115 126 221 229 16 232 236 240 243 258 259 260 262 264 269 270 274Used by:Timeline
Symbol 276 Bitmap [Fireworx01]Used by:396
Symbol 277 Bitmap [Sparks]Used by:396
Symbol 278 Bitmap [Iceman01_4]Used by:396
Symbol 279 Bitmap [Iceman01_3]Used by:396
Symbol 280 Bitmap [Iceman01_2]Used by:396
Symbol 281 Bitmap [Iceman01_1]Used by:396
Symbol 282 Bitmap [Dish_Wine]Used by:396
Symbol 283 Bitmap [Dish_Food]Used by:396
Symbol 284 Bitmap [Check_Mini_Unsel]Used by:396
Symbol 285 Bitmap [Check_Mini_Girl]Used by:396
Symbol 286 Bitmap [Check_Mini_Boy]Used by:396
Symbol 287 Bitmap [cloudmini_anim]Used by:396
Symbol 288 Bitmap [Car_Red]Used by:396
Symbol 289 Bitmap [wman_Stop_N_Sel]Used by:396
Symbol 290 Bitmap [wman_Stop_N]Used by:396
Symbol 291 Bitmap [wman_Stop_Joy_N]Used by:396
Symbol 292 Bitmap [wman_Stop_Hi_N_Sel]Used by:396
Symbol 293 Bitmap [wman_Stop_Hi_N]Used by:396
Symbol 294 Bitmap [wman_Stop_Clap_N]Used by:396
Symbol 295 Bitmap [wman_Stop_Angry_N]Used by:396
Symbol 296 Bitmap [man_Stop_N_Sel]Used by:396
Symbol 297 Bitmap [man_Stop_N]Used by:396
Symbol 298 Bitmap [man_Stop_Joy_N]Used by:396
Symbol 299 Bitmap [man_Stop_Hi_N_Sel]Used by:396
Symbol 300 Bitmap [man_Stop_Hi_N]Used by:396
Symbol 301 Bitmap [man_Stop_Clap_N]Used by:396
Symbol 302 Bitmap [man_Stop_Angry_N]Used by:396
Symbol 303 Bitmap [man_Rocket_P]Used by:396
Symbol 304 Bitmap [girl_Stop_N_Sel]Used by:396
Symbol 305 Bitmap [girl_Stop_N]Used by:396
Symbol 306 Bitmap [girl_Stop_Hi_N_Sel]Used by:396
Symbol 307 Bitmap [girl_Stop_Hi_N]Used by:396
Symbol 308 Bitmap [girl_Stop_Angry_N]Used by:396
Symbol 309 Bitmap [girl_Snowman_N]Used by:396
Symbol 310 Bitmap [girl_Skates_P]Used by:396
Symbol 311 Bitmap [boy_Stop_N_Sel]Used by:396
Symbol 312 Bitmap [boy_Stop_N]Used by:396
Symbol 313 Bitmap [boy_Stop_Hi_N_Sel]Used by:396
Symbol 314 Bitmap [boy_Stop_Hi_N]Used by:396
Symbol 315 Bitmap [boy_Stop_Angry_N]Used by:396
Symbol 316 Bitmap [boy_Snowman_N]Used by:396
Symbol 317 Bitmap [boy_Skates_P]Used by:396
Symbol 318 Bitmap [Butt2Right]Used by:396
Symbol 319 Bitmap [Butt2Left]Used by:396
Symbol 320 Bitmap [Butt_Shadow]Used by:396
Symbol 321 Bitmap [Butt_Sel]Used by:396
Symbol 322 Bitmap [Butt_Right_Sel]Used by:396
Symbol 323 Bitmap [Butt_Right]Used by:396
Symbol 324 Bitmap [Butt_Left_Sel]Used by:396
Symbol 325 Bitmap [Butt_Left]Used by:396
Symbol 326 Bitmap [Sign_Mini_Woods]Used by:396
Symbol 327 Bitmap [Sign_Mini_Food]Used by:396
Symbol 328 Bitmap [Sign_Mini_Snowboard]Used by:396
Symbol 329 Bitmap [Sign_Mini_Ski]Used by:396
Symbol 330 Bitmap [Sign_Mini_Skates]Used by:396
Symbol 331 Bitmap [Sign_Mini_Rocket01]Used by:396
Symbol 332 Bitmap [Sign_Mini_Rocket]Used by:396
Symbol 333 Bitmap [Sign_Mini_Repair]Used by:396
Symbol 334 Bitmap [Sign_Mini_Mop]Used by:396
Symbol 335 Bitmap [Sign_Mini_IceClean]Used by:396
Symbol 336 Bitmap [Sign_Mini_House]Used by:396
Symbol 337 Bitmap [Sign_Mini_Hat]Used by:396
Symbol 338 Bitmap [Sign_Mini_Gleentwine]Used by:396
Symbol 339 Bitmap [cloud_anim]Used by:396
Symbol 340 Bitmap [Cloud_Round]Used by:396
Symbol 341 Bitmap [Cloud]Used by:396
Symbol 342 Bitmap [MMTop_Repair_N]Used by:396
Symbol 343 Bitmap [MMTop_Go_N]Used by:396
Symbol 344 Bitmap [MMTop_Go_L]Used by:396
Symbol 345 Bitmap [MMTop_Def_V]Used by:396
Symbol 346 Bitmap [MMTop_Def_N]Used by:396
Symbol 347 Bitmap [MMTop_Def_L]Used by:396
Symbol 348 Bitmap [MMTop_Bring_V]Used by:396
Symbol 349 Bitmap [MMTop_Bring_L]Used by:396
Symbol 350 Bitmap [MMLegs_Stand_V]Used by:396
Symbol 351 Bitmap [MMLegs_Stand_N]Used by:396
Symbol 352 Bitmap [MMLegs_Stand_L]Used by:396
Symbol 353 Bitmap [MMLegs_Go_V]Used by:396
Symbol 354 Bitmap [MMLegs_Go_N]Used by:396
Symbol 355 Bitmap [MMLegs_Go_L]Used by:396
Symbol 356 Bitmap [MWTop_Go_N]Used by:396
Symbol 357 Bitmap [MWTop_Go_L]Used by:396
Symbol 358 Bitmap [MWTop_Def_V]Used by:396
Symbol 359 Bitmap [MWTop_Def_N]Used by:396
Symbol 360 Bitmap [MWTop_Def_L]Used by:396
Symbol 361 Bitmap [MWTop_Cleaning_N]Used by:396
Symbol 362 Bitmap [MWTop_Bring_V]Used by:396
Symbol 363 Bitmap [MWTop_Bring_N]Used by:396
Symbol 364 Bitmap [MWTop_Bring_L]Used by:396
Symbol 365 Bitmap [MWLegs_Stand_V]Used by:396
Symbol 366 Bitmap [MWLegs_Stand_N]Used by:396
Symbol 367 Bitmap [MWLegs_Stand_L]Used by:396
Symbol 368 Bitmap [MWLegs_Go_V]Used by:396
Symbol 369 Bitmap [MWLegs_Go_N]Used by:396
Symbol 370 Bitmap [MWLegs_Go_L]Used by:396
Symbol 371 Bitmap [House_Illumination_Sel]Used by:396
Symbol 372 Bitmap [Fireworx_Place02]Used by:396
Symbol 373 Bitmap [Fireworx_Place01_Sel]Used by:396
Symbol 374 Bitmap [Fireworx_Place01]Used by:396
Symbol 375 Bitmap [Light02_off_Sel]Used by:396
Symbol 376 Bitmap [Light02_off]Used by:396
Symbol 377 Bitmap [Light01_off_Sel]Used by:396
Symbol 378 Bitmap [Light01_off]Used by:396
Symbol 379 Bitmap [Spruse00_Sel]Used by:396
Symbol 380 Bitmap [Spruse00]Used by:396
Symbol 381 Bitmap [Rocket02_Sel]Used by:396
Symbol 382 Bitmap [Rocket02]Used by:396
Symbol 383 Bitmap [Table_Masters_Sel]Used by:396
Symbol 384 Bitmap [Firewood_Sel]Used by:396
Symbol 385 Bitmap [Cilinder_Sel]Used by:396
Symbol 386 Bitmap [SnowBoard_Broken_Sel]Used by:396
Symbol 387 Bitmap [SnowBoard_Broken]Used by:396
Symbol 388 Bitmap [Ski_Broken_Sel]Used by:396
Symbol 389 Bitmap [Ski_Broken]Used by:396
Symbol 390 Bitmap [Skates_Sel]Used by:396
Symbol 391 Bitmap [MulledWine_Sel]Used by:396
Symbol 392 Bitmap [MulledWine]Used by:396
Symbol 393 Bitmap [Roads00]Used by:396
Symbol 394 Bitmap [Roads02]Used by:396
Symbol 395 Bitmap [Building_Masters_Sel]Used by:396
Symbol 396 GraphicUses:67 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 190 153 217 215 371 156 372 373 374 375 376 377 378 199 197 379 380 211 209 205 203 381 382 166 164 383 162 384 170 385 171 178 386 387 176 184 388 389 182 390 173 141 139 391 392 188 24 151 393 394 130 395 159Used by:460
Symbol 397 BitmapUsed by:400
Symbol 398 BitmapUsed by:400
Symbol 399 BitmapUsed by:400
Symbol 400 GraphicUses:397 398 399Used by:401
Symbol 401 MovieClip [mcBtnBlue]Uses:400Used by:460
Symbol 402 GraphicUses:78 77Used by:460
Symbol 403 BitmapUsed by:408
Symbol 404 BitmapUsed by:408
Symbol 405 BitmapUsed by:408
Symbol 406 BitmapUsed by:408
Symbol 407 BitmapUsed by:408
Symbol 408 GraphicUses:67 403 404 405 406 407Used by:412
Symbol 409 Bitmap [Sign_Point]Used by:410 420
Symbol 410 GraphicUses:409Used by:411
Symbol 411 MovieClipUses:410Used by:412
Symbol 412 MovieClip [MapMenu]Uses:408 411 11Used by:460
Symbol 413 Bitmap [coin]Used by:420
Symbol 414 Bitmap [deer_santa]Used by:420
Symbol 415 Bitmap [heart]Used by:420
Symbol 416 Bitmap [Sign_Heart]Used by:420
Symbol 417 Bitmap [Sign_Star_Big]Used by:420
Symbol 418 Bitmap [Sign_Star]Used by:420
Symbol 419 Bitmap [Sign_Heart_Big]Used by:420
Symbol 420 GraphicUses:413 414 415 416 417 418 409 419Used by:460
Symbol 421 Bitmap [House00_mask]Used by:426
Symbol 422 Bitmap [tips_arrow]Used by:426
Symbol 423 Bitmap [kruglik]Used by:426
Symbol 424 Bitmap [Cloud_Select]Used by:426
Symbol 425 Bitmap [Cloud_Round_Select]Used by:426
Symbol 426 GraphicUses:421 422 423 424 425Used by:460
Symbol 427 EditableTextUses:8Used by:428
Symbol 428 MovieClip [TipsBack]Uses:224 427Used by:460
Symbol 429 GraphicUsed by:430
Symbol 430 MovieClipUses:429Used by:433
Symbol 431 BitmapUsed by:432
Symbol 432 GraphicUses:431Used by:433
Symbol 433 MovieClip [mcGift]Uses:430 432Used by:460
Symbol 434 Bitmap [Sign_Carry_Snowboard]Used by:442
Symbol 435 Bitmap [Sign_Carry_Ski]Used by:442
Symbol 436 Bitmap [Sign_Carry_Skates]Used by:442
Symbol 437 Bitmap [Sign_Carry_Rocket]Used by:442
Symbol 438 Bitmap [Sign_Carry_Mop]Used by:442
Symbol 439 Bitmap [Sign_Carry_Hat]Used by:442
Symbol 440 Bitmap [Sign_Carry_Gleentwine]Used by:442
Symbol 441 Bitmap [Sign_Carry_Woods]Used by:442
Symbol 442 GraphicUses:434 435 436 437 438 439 440 441Used by:460
Symbol 443 Sound [music1]Used by:460
Symbol 444 Sound [ambient_ep2_day]Used by:460
Symbol 445 Sound [bonus_money]Used by:460
Symbol 446 Sound [buy]Used by:460
Symbol 447 Sound [car_ep3]Used by:460
Symbol 448 Sound [coin_up]Used by:460
Symbol 449 Sound [family_appear]Used by:460
Symbol 450 Sound [fireworks]Used by:460
Symbol 451 Sound [goal_excellent]Used by:460
Symbol 452 Sound [menu_click]Used by:460
Symbol 453 Sound [menu_toggle]Used by:460
Symbol 454 Sound [parents_clap]Used by:460
Symbol 455 Sound [request_disappear]Used by:460
Symbol 456 Sound [skating]Used by:460
Symbol 457 Sound [text_level_complete]Used by:460
Symbol 458 Sound [text_try_again]Used by:460
Symbol 459 Sound [wood_boards]Used by:460
Symbol 460 MovieClipUses:396 401 7 402 412 420 260 426 428 433 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459Used by:Timeline

Instance Names

"mcProgress"Frame 1Symbol 21 MovieClip
"textFld"Symbol 10 MovieClip Frame 1Symbol 9 EditableText
"mctext"Symbol 11 MovieClip [TextButton] Frame 1Symbol 10 MovieClip
"TextButton1"Symbol 16 MovieClip [BuyDlg] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton2"Symbol 16 MovieClip [BuyDlg] Frame 1Symbol 11 MovieClip [TextButton]
"txtHint"Symbol 16 MovieClip [BuyDlg] Frame 1Symbol 12 EditableText
"txtMoneytext"Symbol 16 MovieClip [BuyDlg] Frame 1Symbol 13 EditableText
"txtMoneySum"Symbol 16 MovieClip [BuyDlg] Frame 1Symbol 14 EditableText
"txtOperate"Symbol 16 MovieClip [BuyDlg] Frame 1Symbol 15 EditableText
"mc_green"Symbol 35 MovieClip Frame 1Symbol 33 MovieClip
"textVal"Symbol 35 MovieClip Frame 1Symbol 34 EditableText
"mc_green"Symbol 45 MovieClip Frame 1Symbol 33 MovieClip
"textVal"Symbol 45 MovieClip Frame 1Symbol 43 EditableText
"active"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"moneyBar"Symbol 63 MovieClip [GameMenu] Frame 1Symbol 35 MovieClip
"scoresBar"Symbol 63 MovieClip [GameMenu] Frame 1Symbol 45 MovieClip
"TextButton2"Symbol 63 MovieClip [GameMenu] Frame 1Symbol 48 MovieClip
"TextButton1"Symbol 63 MovieClip [GameMenu] Frame 1Symbol 51 MovieClip
"mcHit"Symbol 63 MovieClip [GameMenu] Frame 1Symbol 53 MovieClip
"mcMore"Symbol 63 MovieClip [GameMenu] Frame 1Symbol 62 MovieClip
"dText"Symbol 76 MovieClip Frame 1Symbol 75 EditableText
"TextButton1"Symbol 82 MovieClip [MainMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton2"Symbol 82 MovieClip [MainMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton3"Symbol 82 MovieClip [MainMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton4"Symbol 82 MovieClip [MainMenu] Frame 1Symbol 11 MovieClip [TextButton]
"gr1canvas"Symbol 82 MovieClip [MainMenu] Frame 1Symbol 72 MovieClip
"gr1_label"Symbol 82 MovieClip [MainMenu] Frame 1Symbol 73 EditableText
"gr1_display"Symbol 82 MovieClip [MainMenu] Frame 1Symbol 76 MovieClip
"gr1TextButton7"Symbol 82 MovieClip [MainMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton5"Symbol 82 MovieClip [MainMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton1"Symbol 87 MovieClip [ProfileMenu] Frame 1Symbol 11 MovieClip [TextButton]
"EditText1"Symbol 87 MovieClip [ProfileMenu] Frame 1Symbol 85 EditableText
"EditText2"Symbol 87 MovieClip [ProfileMenu] Frame 1Symbol 86 EditableText
"txtMusicVolume"Symbol 100 MovieClip Frame 1Symbol 98 EditableText
"txtSoundVolume"Symbol 102 MovieClip Frame 1Symbol 101 EditableText
"TextButton1"Symbol 103 MovieClip [OptionsMenu] Frame 1Symbol 11 MovieClip [TextButton]
"EditText1"Symbol 103 MovieClip [OptionsMenu] Frame 1Symbol 90 EditableText
"txtSoundVolume"Symbol 103 MovieClip [OptionsMenu] Frame 1Symbol 91 EditableText
"muteClip"Symbol 103 MovieClip [OptionsMenu] Frame 1Symbol 94 MovieClip
"musSlide"Symbol 103 MovieClip [OptionsMenu] Frame 1Symbol 97 MovieClip
"sndSlide"Symbol 103 MovieClip [OptionsMenu] Frame 1Symbol 97 MovieClip
"musicarea"Symbol 103 MovieClip [OptionsMenu] Frame 1Symbol 100 MovieClip
"soundarea"Symbol 103 MovieClip [OptionsMenu] Frame 1Symbol 102 MovieClip
"TextLabel1"Symbol 115 MovieClip [ResultMenu] Frame 1Symbol 106 EditableText
"TextLabel4"Symbol 115 MovieClip [ResultMenu] Frame 1Symbol 107 EditableText
"TextLabel5"Symbol 115 MovieClip [ResultMenu] Frame 1Symbol 108 EditableText
"TextButton1"Symbol 115 MovieClip [ResultMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextLabel6"Symbol 115 MovieClip [ResultMenu] Frame 1Symbol 109 EditableText
"TextLabel9"Symbol 115 MovieClip [ResultMenu] Frame 1Symbol 110 EditableText
"TextLabel10"Symbol 115 MovieClip [ResultMenu] Frame 1Symbol 111 EditableText
"TextLabel11"Symbol 115 MovieClip [ResultMenu] Frame 1Symbol 112 EditableText
"TextLabel12"Symbol 115 MovieClip [ResultMenu] Frame 1Symbol 113 EditableText
"TextLabel13"Symbol 115 MovieClip [ResultMenu] Frame 1Symbol 114 EditableText
"mcHitPlayGame"Symbol 126 MovieClip [ShopMenu] Frame 1Symbol 117 MovieClip
"TextButton2"Symbol 126 MovieClip [ShopMenu] Frame 1Symbol 48 MovieClip
"TextButton1"Symbol 126 MovieClip [ShopMenu] Frame 1Symbol 51 MovieClip
"TextButton3"Symbol 126 MovieClip [ShopMenu] Frame 1Symbol 122 MovieClip
"mcHitMenu"Symbol 126 MovieClip [ShopMenu] Frame 1Symbol 124 MovieClip
"TextLabel1"Symbol 126 MovieClip [ShopMenu] Frame 1Symbol 125 EditableText
"ar_red"Symbol 138 MovieClip Frame 1Symbol 134 MovieClip
"ar_bw"Symbol 138 MovieClip Frame 1Symbol 137 MovieClip
"selection"Symbol 150 MovieClip Frame 1Symbol 143 MovieClip
"star_bw"Symbol 150 MovieClip Frame 1Symbol 146 MovieClip
"star_red"Symbol 150 MovieClip Frame 1Symbol 149 MovieClip
"selection"Symbol 158 MovieClip Frame 1Symbol 155 MovieClip
"ar_red"Symbol 158 MovieClip Frame 1Symbol 134 MovieClip
"ar_bw"Symbol 158 MovieClip Frame 1Symbol 137 MovieClip
"selection"Symbol 169 MovieClip Frame 1Symbol 168 MovieClip
"star_red"Symbol 169 MovieClip Frame 1Symbol 149 MovieClip
"star_bw"Symbol 169 MovieClip Frame 1Symbol 146 MovieClip
"selection"Symbol 181 MovieClip Frame 1Symbol 180 MovieClip
"star_red"Symbol 181 MovieClip Frame 1Symbol 149 MovieClip
"star_bw"Symbol 181 MovieClip Frame 1Symbol 146 MovieClip
"selection"Symbol 187 MovieClip Frame 1Symbol 186 MovieClip
"star_red"Symbol 187 MovieClip Frame 1Symbol 149 MovieClip
"star_bw"Symbol 187 MovieClip Frame 1Symbol 146 MovieClip
"selection"Symbol 193 MovieClip Frame 1Symbol 192 MovieClip
"star_red"Symbol 193 MovieClip Frame 1Symbol 149 MovieClip
"star_bw"Symbol 193 MovieClip Frame 1Symbol 146 MovieClip
"selection"Symbol 196 MovieClip Frame 1Symbol 155 MovieClip
"ar_red"Symbol 196 MovieClip Frame 1Symbol 134 MovieClip
"ar_bw"Symbol 196 MovieClip Frame 1Symbol 137 MovieClip
"selection"Symbol 202 MovieClip Frame 1Symbol 201 MovieClip
"ar_red"Symbol 202 MovieClip Frame 1Symbol 134 MovieClip
"ar_bw"Symbol 202 MovieClip Frame 1Symbol 137 MovieClip
"selection"Symbol 208 MovieClip Frame 1Symbol 207 MovieClip
"star_red"Symbol 208 MovieClip Frame 1Symbol 149 MovieClip
"star_bw"Symbol 208 MovieClip Frame 1Symbol 146 MovieClip
"selection"Symbol 214 MovieClip Frame 1Symbol 213 MovieClip
"ar_red"Symbol 214 MovieClip Frame 1Symbol 134 MovieClip
"ar_bw"Symbol 214 MovieClip Frame 1Symbol 137 MovieClip
"selection"Symbol 220 MovieClip Frame 1Symbol 219 MovieClip
"star_red"Symbol 220 MovieClip Frame 1Symbol 149 MovieClip
"star_bw"Symbol 220 MovieClip Frame 1Symbol 146 MovieClip
"Road01"Symbol 221 MovieClip [Shop] Frame 1Symbol 138 MovieClip
"MulledWine"Symbol 221 MovieClip [Shop] Frame 1Symbol 150 MovieClip
"House_Illumination2"Symbol 221 MovieClip [Shop] Frame 1Symbol 158 MovieClip
"House_Illumination1"Symbol 221 MovieClip [Shop] Frame 1Symbol 158 MovieClip
"MastersBuilding"Symbol 221 MovieClip [Shop] Frame 1Symbol 161 MovieClip
"Rocket01"Symbol 221 MovieClip [Shop] Frame 1Symbol 169 MovieClip
"Skates"Symbol 221 MovieClip [Shop] Frame 1Symbol 175 MovieClip
"Snowboard"Symbol 221 MovieClip [Shop] Frame 1Symbol 181 MovieClip
"Ski"Symbol 221 MovieClip [Shop] Frame 1Symbol 187 MovieClip
"Kitchen"Symbol 221 MovieClip [Shop] Frame 1Symbol 193 MovieClip
"House_Illumination3"Symbol 221 MovieClip [Shop] Frame 1Symbol 196 MovieClip
"House_Illumination4"Symbol 221 MovieClip [Shop] Frame 1Symbol 196 MovieClip
"House_Illumination5"Symbol 221 MovieClip [Shop] Frame 1Symbol 196 MovieClip
"Spruse01"Symbol 221 MovieClip [Shop] Frame 1Symbol 202 MovieClip
"Rink01"Symbol 221 MovieClip [Shop] Frame 1Symbol 208 MovieClip
"Rink02"Symbol 221 MovieClip [Shop] Frame 1Symbol 214 MovieClip
"Star"Symbol 221 MovieClip [Shop] Frame 1Symbol 220 MovieClip
"txtHint"Symbol 229 MovieClip [PriceBack] Frame 1Symbol 225 EditableText
"txtMoneytext"Symbol 229 MovieClip [PriceBack] Frame 1Symbol 226 EditableText
"txtMoneySum"Symbol 229 MovieClip [PriceBack] Frame 1Symbol 227 EditableText
"txtOperate"Symbol 229 MovieClip [PriceBack] Frame 1Symbol 228 EditableText
"TextButton1"Symbol 236 MovieClip [IngameMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton2"Symbol 236 MovieClip [IngameMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton3"Symbol 236 MovieClip [IngameMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton7"Symbol 236 MovieClip [IngameMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton4"Symbol 236 MovieClip [IngameMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton6"Symbol 236 MovieClip [IngameMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton5"Symbol 236 MovieClip [IngameMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton1"Symbol 240 MovieClip [DlgBuy] Frame 1Symbol 11 MovieClip [TextButton]
"txtLabel1"Symbol 240 MovieClip [DlgBuy] Frame 1Symbol 239 EditableText
"TextButton1"Symbol 243 MovieClip [ScoresMenu] Frame 1Symbol 11 MovieClip [TextButton]
"progressBar"Symbol 258 MovieClip [LoadingMenu] Frame 1Symbol 248 MovieClip
"TextLabel1"Symbol 258 MovieClip [LoadingMenu] Frame 1Symbol 249 EditableText
"TextLabel2"Symbol 258 MovieClip [LoadingMenu] Frame 1Symbol 250 EditableText
"TextLabel3"Symbol 258 MovieClip [LoadingMenu] Frame 1Symbol 251 EditableText
"TextLabel4"Symbol 258 MovieClip [LoadingMenu] Frame 1Symbol 252 EditableText
"TextLabel5"Symbol 258 MovieClip [LoadingMenu] Frame 1Symbol 253 EditableText
"TextLabel6"Symbol 258 MovieClip [LoadingMenu] Frame 1Symbol 254 EditableText
"mcTipImage"Symbol 258 MovieClip [LoadingMenu] Frame 1Symbol 255 MovieClip
"tipHeader"Symbol 258 MovieClip [LoadingMenu] Frame 1Symbol 256 EditableText
"tipText"Symbol 258 MovieClip [LoadingMenu] Frame 1Symbol 257 EditableText
"TextButton1"Symbol 262 MovieClip [DlgSure] Frame 1Symbol 11 MovieClip [TextButton]
"txtLabel1"Symbol 262 MovieClip [DlgSure] Frame 1Symbol 261 EditableText
"TextButton2"Symbol 262 MovieClip [DlgSure] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton1"Symbol 264 MovieClip [InShopMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton2"Symbol 264 MovieClip [InShopMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton3"Symbol 264 MovieClip [InShopMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton4"Symbol 264 MovieClip [InShopMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton5"Symbol 264 MovieClip [InShopMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton6"Symbol 264 MovieClip [InShopMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton1"Symbol 269 MovieClip [FinishDlg] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton2"Symbol 269 MovieClip [FinishDlg] Frame 1Symbol 11 MovieClip [TextButton]
"textFinish"Symbol 269 MovieClip [FinishDlg] Frame 1Symbol 267 EditableText
"star0"Symbol 412 MovieClip [MapMenu] Frame 1Symbol 411 MovieClip
"star1"Symbol 412 MovieClip [MapMenu] Frame 1Symbol 411 MovieClip
"star2"Symbol 412 MovieClip [MapMenu] Frame 1Symbol 411 MovieClip
"star3"Symbol 412 MovieClip [MapMenu] Frame 1Symbol 411 MovieClip
"star5"Symbol 412 MovieClip [MapMenu] Frame 1Symbol 411 MovieClip
"star4"Symbol 412 MovieClip [MapMenu] Frame 1Symbol 411 MovieClip
"star6"Symbol 412 MovieClip [MapMenu] Frame 1Symbol 411 MovieClip
"star7"Symbol 412 MovieClip [MapMenu] Frame 1Symbol 411 MovieClip
"star8"Symbol 412 MovieClip [MapMenu] Frame 1Symbol 411 MovieClip
"star10"Symbol 412 MovieClip [MapMenu] Frame 1Symbol 411 MovieClip
"star11"Symbol 412 MovieClip [MapMenu] Frame 1Symbol 411 MovieClip
"star9"Symbol 412 MovieClip [MapMenu] Frame 1Symbol 411 MovieClip
"TextButton1"Symbol 412 MovieClip [MapMenu] Frame 1Symbol 11 MovieClip [TextButton]
"TextButton2"Symbol 412 MovieClip [MapMenu] Frame 1Symbol 11 MovieClip [TextButton]
"txtHint"Symbol 428 MovieClip [TipsBack] Frame 1Symbol 427 EditableText
"mcShadow"Symbol 433 MovieClip [mcGift] Frame 1Symbol 430 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata not present, AS1/AS2.
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 256, ScriptTimeout: 60 seconds
ExportAssets (56)Timeline Frame 1Symbol 7 as "mcBtnYellow"
ExportAssets (56)Timeline Frame 1Symbol 11 as "TextButton"
ExportAssets (56)Timeline Frame 1Symbol 16 as "BuyDlg"
ExportAssets (56)Timeline Frame 1Symbol 461 as "__Packages.Helper"
ExportAssets (56)Timeline Frame 1Symbol 462 as "__Packages.BuyDlg"
ExportAssets (56)Timeline Frame 1Symbol 463 as "__Packages.MenuHelper"
ExportAssets (56)Timeline Frame 1Symbol 464 as "__Packages.TextButton"
ExportAssets (56)Timeline Frame 1Symbol 465 as "__Packages.SoundHelper"
ExportAssets (56)Timeline Frame 1Symbol 466 as "__Packages.Map"
ExportAssets (56)Timeline Frame 1Symbol 467 as "__Packages.Game"
ExportAssets (56)Timeline Frame 1Symbol 468 as "__Packages.MainMenu"
ExportAssets (56)Timeline Frame 1Symbol 469 as "__Packages.ShopMenu"
ExportAssets (56)Timeline Frame 1Symbol 470 as "__Packages.GameMenu"
ExportAssets (56)Timeline Frame 1Symbol 471 as "__Packages.Shop"
ExportAssets (56)Timeline Frame 1Symbol 472 as "__Packages.Dict"
ExportAssets (56)Timeline Frame 1Symbol 473 as "__Packages.com.mosesSupposes.fuse.FuseKitCommon"
ExportAssets (56)Timeline Frame 1Symbol 474 as "__Packages.com.mosesSupposes.fuse.ZigoEngine"
ExportAssets (56)Timeline Frame 1Symbol 475 as "__Packages.com.mosesSupposes.fuse.ZManager"
ExportAssets (56)Timeline Frame 1Symbol 476 as "__Packages.com.mosesSupposes.fuse.PennerEasing"
ExportAssets (56)Timeline Frame 1Symbol 477 as "__Packages.Scene"
ExportAssets (56)Timeline Frame 1Symbol 478 as "__Packages.Service"
ExportAssets (56)Timeline Frame 1Symbol 479 as "__Packages.BF"
ExportAssets (56)Timeline Frame 1Symbol 480 as "__Packages.Hero"
ExportAssets (56)Timeline Frame 1Symbol 481 as "__Packages.com.mosesSupposes.fuse.Fuse"
ExportAssets (56)Timeline Frame 1Symbol 482 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 483 as "__Packages.com.mosesSupposes.fuse.FuseItem"
ExportAssets (56)Timeline Frame 1Symbol 484 as "__Packages.mx.utils.Delegate"
ExportAssets (56)Timeline Frame 1Symbol 485 as "__Packages.Actions"
ExportAssets (56)Timeline Frame 1Symbol 486 as "__Packages.Customers"
ExportAssets (56)Timeline Frame 1Symbol 487 as "__Packages.LevelsHelper"
ExportAssets (56)Timeline Frame 1Symbol 488 as "__Packages.CCloud"
ExportAssets (56)Timeline Frame 1Symbol 489 as "__Packages.TutorHelper"
ExportAssets (56)Timeline Frame 1Symbol 490 as "__Packages.FX"
ExportAssets (56)Timeline Frame 1Symbol 491 as "__Packages.Pathfinding"
ExportAssets (56)Timeline Frame 1Symbol 492 as "__Packages.mochi.MochiScores"
ExportAssets (56)Timeline Frame 1Symbol 493 as "__Packages.mochi.MochiServices"
ExportAssets (56)Timeline Frame 1Symbol 494 as "__Packages.TipsHelper"
ExportAssets (56)Timeline Frame 1Symbol 495 as "__Packages.MapMenu"
ExportAssets (56)Timeline Frame 1Symbol 496 as "__Packages.DlgSure"
ExportAssets (56)Timeline Frame 1Symbol 497 as "__Packages.ProfileMenu"
ExportAssets (56)Timeline Frame 1Symbol 498 as "__Packages.InShopMenu"
ExportAssets (56)Timeline Frame 1Symbol 499 as "__Packages.IngameMenu"
ExportAssets (56)Timeline Frame 1Symbol 500 as "__Packages.MochiAd"
ExportAssets (56)Timeline Frame 1Symbol 501 as "__Packages.mc_ADS"
ExportAssets (56)Timeline Frame 1Symbol 502 as "__Packages.mx.transitions.easing.Regular"
ExportAssets (56)Timeline Frame 1Symbol 503 as "__Packages.ResultMenu"
ExportAssets (56)Timeline Frame 1Symbol 504 as "__Packages.Claus"
ExportAssets (56)Timeline Frame 1Symbol 505 as "__Packages.OptionsMenu"
ExportAssets (56)Timeline Frame 1Symbol 506 as "__Packages.DlgBuy"
ExportAssets (56)Timeline Frame 1Symbol 507 as "__Packages.ScoresMenu"
ExportAssets (56)Timeline Frame 1Symbol 508 as "__Packages.LoadingMenu"
ExportAssets (56)Timeline Frame 1Symbol 509 as "__Packages.SimpleAnim"
ExportAssets (56)Timeline Frame 1Symbol 510 as "__Packages.FinishDlg"
ExportAssets (56)Timeline Frame 3Symbol 23 as "Game"
ExportAssets (56)Timeline Frame 3Symbol 24 as "Bush"
ExportAssets (56)Timeline Frame 3Symbol 27 as "Scene"
ExportAssets (56)Timeline Frame 3Symbol 63 as "GameMenu"
ExportAssets (56)Timeline Frame 3Symbol 64 as "CCloud"
ExportAssets (56)Timeline Frame 3Symbol 65 as "Hero"
ExportAssets (56)Timeline Frame 3Symbol 66 as "Customers"
ExportAssets (56)Timeline Frame 3Symbol 82 as "MainMenu"
ExportAssets (56)Timeline Frame 3Symbol 87 as "ProfileMenu"
ExportAssets (56)Timeline Frame 3Symbol 103 as "OptionsMenu"
ExportAssets (56)Timeline Frame 3Symbol 115 as "ResultMenu"
ExportAssets (56)Timeline Frame 3Symbol 126 as "ShopMenu"
ExportAssets (56)Timeline Frame 3Symbol 130 as "Roads01"
ExportAssets (56)Timeline Frame 3Symbol 139 as "MulledWine00"
ExportAssets (56)Timeline Frame 3Symbol 141 as "MulledWine00_Sel"
ExportAssets (56)Timeline Frame 3Symbol 151 as "House00"
ExportAssets (56)Timeline Frame 3Symbol 153 as "House00_Sel"
ExportAssets (56)Timeline Frame 3Symbol 156 as "House_Illumination"
ExportAssets (56)Timeline Frame 3Symbol 159 as "Building_Masters"
ExportAssets (56)Timeline Frame 3Symbol 162 as "Table_Masters"
ExportAssets (56)Timeline Frame 3Symbol 164 as "Rocket01"
ExportAssets (56)Timeline Frame 3Symbol 166 as "Rocket01_Sel"
ExportAssets (56)Timeline Frame 3Symbol 170 as "Firewood"
ExportAssets (56)Timeline Frame 3Symbol 171 as "Cilinder"
ExportAssets (56)Timeline Frame 3Symbol 173 as "Skates"
ExportAssets (56)Timeline Frame 3Symbol 176 as "SnowBoard"
ExportAssets (56)Timeline Frame 3Symbol 178 as "SnowBoard_Sel"
ExportAssets (56)Timeline Frame 3Symbol 182 as "Ski"
ExportAssets (56)Timeline Frame 3Symbol 184 as "Ski_Sel"
ExportAssets (56)Timeline Frame 3Symbol 188 as "Kitchen"
ExportAssets (56)Timeline Frame 3Symbol 190 as "Kitchen_Sel"
ExportAssets (56)Timeline Frame 3Symbol 197 as "Spruse01"
ExportAssets (56)Timeline Frame 3Symbol 199 as "Spruse01_Sel"
ExportAssets (56)Timeline Frame 3Symbol 203 as "Rink01"
ExportAssets (56)Timeline Frame 3Symbol 205 as "Rink01_Sel"
ExportAssets (56)Timeline Frame 3Symbol 209 as "Rink02"
ExportAssets (56)Timeline Frame 3Symbol 211 as "Rink02_Sel"
ExportAssets (56)Timeline Frame 3Symbol 215 as "Star"
ExportAssets (56)Timeline Frame 3Symbol 217 as "Star_Sel"
ExportAssets (56)Timeline Frame 3Symbol 221 as "Shop"
ExportAssets (56)Timeline Frame 3Symbol 229 as "PriceBack"
ExportAssets (56)Timeline Frame 3Symbol 232 as "signNo"
ExportAssets (56)Timeline Frame 3Symbol 236 as "IngameMenu"
ExportAssets (56)Timeline Frame 3Symbol 240 as "DlgBuy"
ExportAssets (56)Timeline Frame 3Symbol 243 as "ScoresMenu"
ExportAssets (56)Timeline Frame 3Symbol 258 as "LoadingMenu"
ExportAssets (56)Timeline Frame 3Symbol 259 as "Claus"
ExportAssets (56)Timeline Frame 3Symbol 260 as "SimpleAnim"
ExportAssets (56)Timeline Frame 3Symbol 262 as "DlgSure"
ExportAssets (56)Timeline Frame 3Symbol 264 as "InShopMenu"
ExportAssets (56)Timeline Frame 3Symbol 269 as "FinishDlg"
ExportAssets (56)Timeline Frame 3Symbol 270 as "mc_ADS"
ExportAssets (56)Timeline Frame 3Symbol 271 as "splash3"
ExportAssets (56)Timeline Frame 3Symbol 272 as "splash2"
ExportAssets (56)Timeline Frame 3Symbol 273 as "splash1"
ExportAssets (56)Timeline Frame 3Symbol 276 as "Fireworx01"
ExportAssets (56)Timeline Frame 3Symbol 277 as "Sparks"
ExportAssets (56)Timeline Frame 3Symbol 278 as "Iceman01_4"
ExportAssets (56)Timeline Frame 3Symbol 279 as "Iceman01_3"
ExportAssets (56)Timeline Frame 3Symbol 280 as "Iceman01_2"
ExportAssets (56)Timeline Frame 3Symbol 281 as "Iceman01_1"
ExportAssets (56)Timeline Frame 3Symbol 282 as "Dish_Wine"
ExportAssets (56)Timeline Frame 3Symbol 283 as "Dish_Food"
ExportAssets (56)Timeline Frame 3Symbol 284 as "Check_Mini_Unsel"
ExportAssets (56)Timeline Frame 3Symbol 285 as "Check_Mini_Girl"
ExportAssets (56)Timeline Frame 3Symbol 286 as "Check_Mini_Boy"
ExportAssets (56)Timeline Frame 3Symbol 287 as "cloudmini_anim"
ExportAssets (56)Timeline Frame 3Symbol 288 as "Car_Red"
ExportAssets (56)Timeline Frame 3Symbol 289 as "wman_Stop_N_Sel"
ExportAssets (56)Timeline Frame 3Symbol 290 as "wman_Stop_N"
ExportAssets (56)Timeline Frame 3Symbol 291 as "wman_Stop_Joy_N"
ExportAssets (56)Timeline Frame 3Symbol 292 as "wman_Stop_Hi_N_Sel"
ExportAssets (56)Timeline Frame 3Symbol 293 as "wman_Stop_Hi_N"
ExportAssets (56)Timeline Frame 3Symbol 294 as "wman_Stop_Clap_N"
ExportAssets (56)Timeline Frame 3Symbol 295 as "wman_Stop_Angry_N"
ExportAssets (56)Timeline Frame 3Symbol 296 as "man_Stop_N_Sel"
ExportAssets (56)Timeline Frame 3Symbol 297 as "man_Stop_N"
ExportAssets (56)Timeline Frame 3Symbol 298 as "man_Stop_Joy_N"
ExportAssets (56)Timeline Frame 3Symbol 299 as "man_Stop_Hi_N_Sel"
ExportAssets (56)Timeline Frame 3Symbol 300 as "man_Stop_Hi_N"
ExportAssets (56)Timeline Frame 3Symbol 301 as "man_Stop_Clap_N"
ExportAssets (56)Timeline Frame 3Symbol 302 as "man_Stop_Angry_N"
ExportAssets (56)Timeline Frame 3Symbol 303 as "man_Rocket_P"
ExportAssets (56)Timeline Frame 3Symbol 304 as "girl_Stop_N_Sel"
ExportAssets (56)Timeline Frame 3Symbol 305 as "girl_Stop_N"
ExportAssets (56)Timeline Frame 3Symbol 306 as "girl_Stop_Hi_N_Sel"
ExportAssets (56)Timeline Frame 3Symbol 307 as "girl_Stop_Hi_N"
ExportAssets (56)Timeline Frame 3Symbol 308 as "girl_Stop_Angry_N"
ExportAssets (56)Timeline Frame 3Symbol 309 as "girl_Snowman_N"
ExportAssets (56)Timeline Frame 3Symbol 310 as "girl_Skates_P"
ExportAssets (56)Timeline Frame 3Symbol 311 as "boy_Stop_N_Sel"
ExportAssets (56)Timeline Frame 3Symbol 312 as "boy_Stop_N"
ExportAssets (56)Timeline Frame 3Symbol 313 as "boy_Stop_Hi_N_Sel"
ExportAssets (56)Timeline Frame 3Symbol 314 as "boy_Stop_Hi_N"
ExportAssets (56)Timeline Frame 3Symbol 315 as "boy_Stop_Angry_N"
ExportAssets (56)Timeline Frame 3Symbol 316 as "boy_Snowman_N"
ExportAssets (56)Timeline Frame 3Symbol 317 as "boy_Skates_P"
ExportAssets (56)Timeline Frame 3Symbol 318 as "Butt2Right"
ExportAssets (56)Timeline Frame 3Symbol 319 as "Butt2Left"
ExportAssets (56)Timeline Frame 3Symbol 320 as "Butt_Shadow"
ExportAssets (56)Timeline Frame 3Symbol 321 as "Butt_Sel"
ExportAssets (56)Timeline Frame 3Symbol 322 as "Butt_Right_Sel"
ExportAssets (56)Timeline Frame 3Symbol 323 as "Butt_Right"
ExportAssets (56)Timeline Frame 3Symbol 324 as "Butt_Left_Sel"
ExportAssets (56)Timeline Frame 3Symbol 325 as "Butt_Left"
ExportAssets (56)Timeline Frame 3Symbol 326 as "Sign_Mini_Woods"
ExportAssets (56)Timeline Frame 3Symbol 327 as "Sign_Mini_Food"
ExportAssets (56)Timeline Frame 3Symbol 328 as "Sign_Mini_Snowboard"
ExportAssets (56)Timeline Frame 3Symbol 329 as "Sign_Mini_Ski"
ExportAssets (56)Timeline Frame 3Symbol 330 as "Sign_Mini_Skates"
ExportAssets (56)Timeline Frame 3Symbol 331 as "Sign_Mini_Rocket01"
ExportAssets (56)Timeline Frame 3Symbol 332 as "Sign_Mini_Rocket"
ExportAssets (56)Timeline Frame 3Symbol 333 as "Sign_Mini_Repair"
ExportAssets (56)Timeline Frame 3Symbol 334 as "Sign_Mini_Mop"
ExportAssets (56)Timeline Frame 3Symbol 335 as "Sign_Mini_IceClean"
ExportAssets (56)Timeline Frame 3Symbol 336 as "Sign_Mini_House"
ExportAssets (56)Timeline Frame 3Symbol 337 as "Sign_Mini_Hat"
ExportAssets (56)Timeline Frame 3Symbol 338 as "Sign_Mini_Gleentwine"
ExportAssets (56)Timeline Frame 3Symbol 339 as "cloud_anim"
ExportAssets (56)Timeline Frame 3Symbol 340 as "Cloud_Round"
ExportAssets (56)Timeline Frame 3Symbol 341 as "Cloud"
ExportAssets (56)Timeline Frame 3Symbol 342 as "MMTop_Repair_N"
ExportAssets (56)Timeline Frame 3Symbol 343 as "MMTop_Go_N"
ExportAssets (56)Timeline Frame 3Symbol 344 as "MMTop_Go_L"
ExportAssets (56)Timeline Frame 3Symbol 345 as "MMTop_Def_V"
ExportAssets (56)Timeline Frame 3Symbol 346 as "MMTop_Def_N"
ExportAssets (56)Timeline Frame 3Symbol 347 as "MMTop_Def_L"
ExportAssets (56)Timeline Frame 3Symbol 348 as "MMTop_Bring_V"
ExportAssets (56)Timeline Frame 3Symbol 349 as "MMTop_Bring_L"
ExportAssets (56)Timeline Frame 3Symbol 350 as "MMLegs_Stand_V"
ExportAssets (56)Timeline Frame 3Symbol 351 as "MMLegs_Stand_N"
ExportAssets (56)Timeline Frame 3Symbol 352 as "MMLegs_Stand_L"
ExportAssets (56)Timeline Frame 3Symbol 353 as "MMLegs_Go_V"
ExportAssets (56)Timeline Frame 3Symbol 354 as "MMLegs_Go_N"
ExportAssets (56)Timeline Frame 3Symbol 355 as "MMLegs_Go_L"
ExportAssets (56)Timeline Frame 3Symbol 356 as "MWTop_Go_N"
ExportAssets (56)Timeline Frame 3Symbol 357 as "MWTop_Go_L"
ExportAssets (56)Timeline Frame 3Symbol 358 as "MWTop_Def_V"
ExportAssets (56)Timeline Frame 3Symbol 359 as "MWTop_Def_N"
ExportAssets (56)Timeline Frame 3Symbol 360 as "MWTop_Def_L"
ExportAssets (56)Timeline Frame 3Symbol 361 as "MWTop_Cleaning_N"
ExportAssets (56)Timeline Frame 3Symbol 362 as "MWTop_Bring_V"
ExportAssets (56)Timeline Frame 3Symbol 363 as "MWTop_Bring_N"
ExportAssets (56)Timeline Frame 3Symbol 364 as "MWTop_Bring_L"
ExportAssets (56)Timeline Frame 3Symbol 365 as "MWLegs_Stand_V"
ExportAssets (56)Timeline Frame 3Symbol 366 as "MWLegs_Stand_N"
ExportAssets (56)Timeline Frame 3Symbol 367 as "MWLegs_Stand_L"
ExportAssets (56)Timeline Frame 3Symbol 368 as "MWLegs_Go_V"
ExportAssets (56)Timeline Frame 3Symbol 369 as "MWLegs_Go_N"
ExportAssets (56)Timeline Frame 3Symbol 370 as "MWLegs_Go_L"
ExportAssets (56)Timeline Frame 3Symbol 371 as "House_Illumination_Sel"
ExportAssets (56)Timeline Frame 3Symbol 372 as "Fireworx_Place02"
ExportAssets (56)Timeline Frame 3Symbol 373 as "Fireworx_Place01_Sel"
ExportAssets (56)Timeline Frame 3Symbol 374 as "Fireworx_Place01"
ExportAssets (56)Timeline Frame 3Symbol 375 as "Light02_off_Sel"
ExportAssets (56)Timeline Frame 3Symbol 376 as "Light02_off"
ExportAssets (56)Timeline Frame 3Symbol 377 as "Light01_off_Sel"
ExportAssets (56)Timeline Frame 3Symbol 378 as "Light01_off"
ExportAssets (56)Timeline Frame 3Symbol 379 as "Spruse00_Sel"
ExportAssets (56)Timeline Frame 3Symbol 380 as "Spruse00"
ExportAssets (56)Timeline Frame 3Symbol 381 as "Rocket02_Sel"
ExportAssets (56)Timeline Frame 3Symbol 382 as "Rocket02"
ExportAssets (56)Timeline Frame 3Symbol 383 as "Table_Masters_Sel"
ExportAssets (56)Timeline Frame 3Symbol 384 as "Firewood_Sel"
ExportAssets (56)Timeline Frame 3Symbol 385 as "Cilinder_Sel"
ExportAssets (56)Timeline Frame 3Symbol 386 as "SnowBoard_Broken_Sel"
ExportAssets (56)Timeline Frame 3Symbol 387 as "SnowBoard_Broken"
ExportAssets (56)Timeline Frame 3Symbol 388 as "Ski_Broken_Sel"
ExportAssets (56)Timeline Frame 3Symbol 389 as "Ski_Broken"
ExportAssets (56)Timeline Frame 3Symbol 390 as "Skates_Sel"
ExportAssets (56)Timeline Frame 3Symbol 391 as "MulledWine_Sel"
ExportAssets (56)Timeline Frame 3Symbol 392 as "MulledWine"
ExportAssets (56)Timeline Frame 3Symbol 393 as "Roads00"
ExportAssets (56)Timeline Frame 3Symbol 394 as "Roads02"
ExportAssets (56)Timeline Frame 3Symbol 395 as "Building_Masters_Sel"
ExportAssets (56)Timeline Frame 3Symbol 401 as "mcBtnBlue"
ExportAssets (56)Timeline Frame 3Symbol 409 as "Sign_Point"
ExportAssets (56)Timeline Frame 3Symbol 412 as "MapMenu"
ExportAssets (56)Timeline Frame 3Symbol 413 as "coin"
ExportAssets (56)Timeline Frame 3Symbol 414 as "deer_santa"
ExportAssets (56)Timeline Frame 3Symbol 415 as "heart"
ExportAssets (56)Timeline Frame 3Symbol 416 as "Sign_Heart"
ExportAssets (56)Timeline Frame 3Symbol 417 as "Sign_Star_Big"
ExportAssets (56)Timeline Frame 3Symbol 418 as "Sign_Star"
ExportAssets (56)Timeline Frame 3Symbol 419 as "Sign_Heart_Big"
ExportAssets (56)Timeline Frame 3Symbol 421 as "House00_mask"
ExportAssets (56)Timeline Frame 3Symbol 422 as "tips_arrow"
ExportAssets (56)Timeline Frame 3Symbol 423 as "kruglik"
ExportAssets (56)Timeline Frame 3Symbol 424 as "Cloud_Select"
ExportAssets (56)Timeline Frame 3Symbol 425 as "Cloud_Round_Select"
ExportAssets (56)Timeline Frame 3Symbol 428 as "TipsBack"
ExportAssets (56)Timeline Frame 3Symbol 433 as "mcGift"
ExportAssets (56)Timeline Frame 3Symbol 434 as "Sign_Carry_Snowboard"
ExportAssets (56)Timeline Frame 3Symbol 435 as "Sign_Carry_Ski"
ExportAssets (56)Timeline Frame 3Symbol 436 as "Sign_Carry_Skates"
ExportAssets (56)Timeline Frame 3Symbol 437 as "Sign_Carry_Rocket"
ExportAssets (56)Timeline Frame 3Symbol 438 as "Sign_Carry_Mop"
ExportAssets (56)Timeline Frame 3Symbol 439 as "Sign_Carry_Hat"
ExportAssets (56)Timeline Frame 3Symbol 440 as "Sign_Carry_Gleentwine"
ExportAssets (56)Timeline Frame 3Symbol 441 as "Sign_Carry_Woods"
ExportAssets (56)Timeline Frame 3Symbol 443 as "music1"
ExportAssets (56)Timeline Frame 3Symbol 444 as "ambient_ep2_day"
ExportAssets (56)Timeline Frame 3Symbol 445 as "bonus_money"
ExportAssets (56)Timeline Frame 3Symbol 446 as "buy"
ExportAssets (56)Timeline Frame 3Symbol 447 as "car_ep3"
ExportAssets (56)Timeline Frame 3Symbol 448 as "coin_up"
ExportAssets (56)Timeline Frame 3Symbol 449 as "family_appear"
ExportAssets (56)Timeline Frame 3Symbol 450 as "fireworks"
ExportAssets (56)Timeline Frame 3Symbol 451 as "goal_excellent"
ExportAssets (56)Timeline Frame 3Symbol 452 as "menu_click"
ExportAssets (56)Timeline Frame 3Symbol 453 as "menu_toggle"
ExportAssets (56)Timeline Frame 3Symbol 454 as "parents_clap"
ExportAssets (56)Timeline Frame 3Symbol 455 as "request_disappear"
ExportAssets (56)Timeline Frame 3Symbol 456 as "skating"
ExportAssets (56)Timeline Frame 3Symbol 457 as "text_level_complete"
ExportAssets (56)Timeline Frame 3Symbol 458 as "text_try_again"
ExportAssets (56)Timeline Frame 3Symbol 459 as "wood_boards"
EnableDebugger2 (64)Timeline Frame 131 bytes "..$1$ty$3WdbssE/U7jIzM5Kuzvj9/."
DebugMX1 (63)Timeline Frame 1

Labels

"MOCHIPRE"Frame 2
"FRGAME"Frame 4

Dynamic Text Variables

btntextSymbol 9 EditableText"TextButton1"
txt_welcomeSymbol 73 EditableText"WELCOME"




http://swfchan.com/25/121749/info.shtml
Created: 4/3 -2019 07:27:23 Last modified: 4/3 -2019 07:27:23 Server time: 22/12 -2024 12:13:12