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

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

Baby Blimp.swf

This is the info page for
Flash #135055

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


ActionScript [AS1/AS2]
Combined Code
movieClip 1 SL_highscoreminiclip { #initclip Object.registerClass('SL_highscoreminiclip', asHighscore.MainMiniclip); #endinitclip } movieClip 3 { frame 1 { this._visible = false; } } movieClip 4 { } movieClip 10 { } button 13 { on (release) { gameURL = 'http://www.miniclip.com/' + gamename + '.htm'; getURL(gameURL, '_blank'); } } movieClip 15 miniclipHighscore { frame 1 { System.security.allowDomain('www.miniclip.com'); } instance mcHighscores of movieClip 3 { onClipEvent (load) { _visible = false; } } frame 2 { if (_url.indexOf('miniclip.com') == -1 && _url.indexOf('miniclip.net') == -1 && _url.indexOf('miniclip.co.uk') == -1 && _url.indexOf('miniclips.com')) { gotoAndStop(_currentframe + 1); } else { var noCache = getTimer() + random(100000); mcTarget.loadMovie('http://www.miniclip.com/swfcontent/highscore.swf?noCache=' + noCache); stop(); } } frame 3 { stop(); } } movieClip 17 { frame 1 { this.onPress = function () {}; this.useHandCursor = false; } } // unknown tag 88 length 68 // unknown tag 88 length 63 movieClip 27 closeTextBtn { #initclip Object.registerClass('closeTextBtn', asHighscore.Button); #endinitclip } movieClip 30 { frame 1 { var ct = this.attachMovie('highscoreBanner', 'highscoreBanner', 1); } } // unknown tag 88 length 103 movieClip 34 { } movieClip 35 { } movieClip 38 { frame 1 { stop(); } } movieClip 41 { } movieClip 42 { } movieClip 44 { } movieClip 46 loadingHighscoreScreen { #initclip Object.registerClass('loadingHighscoreScreen', asHighscore.Loader); #endinitclip frame 1 { stop(); } frame 8 { this.executeFunction(); stop(); } } movieClip 52 { } movieClip 54 { frame 1 { stop(); } } movieClip 61 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 62 SL_highscoredefault { #initclip Object.registerClass('SL_highscoredefault', asHighscore.Main); #endinitclip frame 1 { stop(); } } movieClip 67 { } movieClip 69 normalRow { } movieClip 98 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } } movieClip 99 babyCloud { } movieClip 104 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 105 toyboxCloud { } movieClip 108 { } movieClip 109 trashcanCloud { } movieClip 112 highscoreBanner { } movieClip 114 { } movieClip 118 { } movieClip 121 { } movieClip 123 { } // unknown tag 88 length 90 movieClip 127 { } movieClip 128 gameloader_mc { } movieClip 131 { } movieClip 134 { } movieClip 137 { } movieClip 140 { } movieClip 143 { } movieClip 144 youRock { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 34 { stop(); this.removeMovieClip(); } } frame 1 { stop(); Stage.showMenu = false; _global.stage_w = 800; _global.stage_h = 600; _global.playNext = function () { _root.play(); }; this.promoKeyListener = new Object(); promoKeyListener.onKeyDown = function () { if (_root.promo_mc.allowSkip) { _global.playNext(); } }; Key.addListener(promoKeyListener); _global.company = 'Youda'; _global.companylogo = 'coAffiliate'; if (_root.moreGamesUrl) { _global.coAffiliateLink = _root.moreGamesUrl; } else { if (_root.moregamesUrl) { _global.coAffiliateLink = _root.moregamesUrl; } else { if (_root.moregamesurl) { _global.coAffiliateLink = _root.moregamesurl; } } } Stage.scaleMode = 'showAll'; _global.gameName = 'BabyBlimp'; _global.aName = 'Alawar'; _global.g_id = '19'; if (_root.buyUrl) { _global.buygamelink = _root.buyUrl; } else { if (_root.buyurl) { _global.buygamelink = _root.buyurl; } else { _global.buygamelink = 'http://www.alawar.com'; } } } frame 1 { _global.exitMenu_mc = _root.exit_mc; this.externalModel = new as.external.ExternalModel({'root': this}); _global.appExtention = _url.substring(_url.length - 3); } movieClip 146 { } movieClip 147 { } movieClip 148 { frame 60 { _parent.gotoAndPlay('after_logo'); } } movieClip 149 AffiliateExtra { frame 2 { this.allowSkip = true; var basePath = ''; if (mdm.Application.path) { basePath = mdm.Application.path; } var logoImage = basePath + 'logo_affiliate.jpg'; this.logo_mc.stop(); var checkFile = new LoadVars(); checkFile.logo_mc = this.logo_mc; checkFile.obj = this; checkFile.fileName = logoImage; checkFile.onLoad = function (success) { if (success) { this.logo_mc.logo_anim_mc.loadMovie(this.fileName); this.logo_mc.onEnterFrame = function () { if (this.logo_anim_mc.getBytesLoaded() == this.logo_anim_mc.getBytesTotal() && this.logo_anim_mc.getBytesTotal() > 4) { if (!this._width) { return undefined; } this.play(); this._x = 320 - this._width / 2; this._y = 240 - this._height / 2; delete this.onEnterFrame; } }; } else { this.obj.gotoAndStop('png'); false; } }; checkFile.load(logoImage); stop(); } instance of movieClip 146 { onClipEvent (load) { if (_global.coAffiliateLink != '' && _global.coAffiliateLink != undefined) { this.onRelease = function () { getURL(_global.coAffiliateLink, '_blank'); }; } this._width = _global.stage_w; this._height = _global.stage_h; var point = {'x': 0, 'y': 0}; this._parent.globalToLocal(point); this._x = point.x; this._y = point.y; } } frame 3 { var basePath = ''; if (mdm.Application.path) { basePath = mdm.Application.path; } var logoImage = basePath + 'logo_affiliate.png'; this.logo_mc.stop(); var checkFile = new LoadVars(); checkFile.logo_mc = this.logo_mc; checkFile.obj = this; checkFile.fileName = logoImage; checkFile.onLoad = function (success) { if (success) { this.logo_mc.logo_anim_mc.loadMovie(this.fileName); this.logo_mc.onEnterFrame = function () { if (this.logo_anim_mc.getBytesLoaded() == this.logo_anim_mc.getBytesTotal() && this.logo_anim_mc.getBytesTotal() > 4) { if (!this._width) { return undefined; } this.play(); this._x = 320 - this._width / 2; this._y = 240 - this._height / 2; delete this.onEnterFrame; } }; } else { this.obj.play(); } }; checkFile.load(logoImage); stop(); } frame 11 { _global.playNext(); stop(); } } movieClip 9244 __Packages.as.external.ExternalModel { #initclip if (!_global.as) { _global.as = new Object(); } if (!_global.as.external) { _global.as.external = new Object(); } if (!_global.as.external.ExternalModel) { var v1 = function (__iObj) { this.root = __iObj.root; this.fullScreen = false; _global.externalModel = this; this.init(); }; as.external.ExternalModel = v1; var v2 = v1.prototype; v2.init = function () { delete this.wrapper; if (_global.mdm) { this.wrapper = new as.external.ZincModel({'root': this}); } else { if (_global.ssCore) { this.wrapper = new as.external.SwfStudioModel({'root': this}); } else { this.wrapper = false; fscommand('fullscreen', true); } } }; v2.setFullScreenStatus = function (__boolean) { this.fullScreen = __boolean; }; v2.toggleFullScreen = function (__boolean) { if (__boolean == undefined) { if (this.fullScreen) { this.wrapper.toggleFullScreen(false); } else { this.wrapper.toggleFullScreen(true); } } else { this.wrapper.toggleFullScreen(__boolean); } }; v2.showExitMenu = function () { if (_global.attachExitMenu) { _global.attachExitMenu(); } else { _global.exitMenu_mc._visible = true; } }; v2.processFocus = function (__boolean) { if (_global.processWindowFocus) { _global.processWindowFocus(__boolean); } }; v2.requestKill = function () { if (!this.wrapper) { this.killApplication(); } else { this.wrapper.requestKill(); } }; v2.killApplication = function () { fscommand('quit'); }; ASSetPropFlags(as.external.ExternalModel.prototype, null, 1); } #endinitclip } movieClip 9245 __Packages.as.external.ZincModel { #initclip if (!_global.as) { _global.as = new Object(); } if (!_global.as.external) { _global.as.external = new Object(); } if (!_global.as.external.ZincModel) { var v1 = function (__iObj) { this.root = __iObj.root; this.mdm = _global.mdm; this.fullScreenMethod = 'dirextX'; this.reset(); }; as.external.ZincModel = v1; var v2 = v1.prototype; v2.reset = function () { this.windowHeight = this.mdm.Forms.MainForm.height; this.windowWidth = this.mdm.Forms.MainForm.width; var v3 = this.mdm.System.getResolution(); this.res_width = v3[0]; this.res_height = v3[1]; this.res_colorDepth = v3[2]; this.addeptForm(true); this.mdm.Application.onAppExit = function () { _global.externalModel.showExitMenu(); }; this.mdm.Application.enableExitHandler(); this.mdm.Application.obj = this; this.mdm.Application.onAppChangeFocus = function (myObject) { if (myObject.status == true || myObject.status == 'true') { _global.externalModel.processFocus(true); } else { _global.externalModel.processFocus(false); } }; this.mdm.Application.onAppMinimize = function () { this.obj.isMinimized = true; _global.externalModel.processFocus(false); }; this.mdm.Application.onFormMaximize = function (myObject) { this.obj.isMinimized = false; _global.externalModel.processFocus(true); }; this.doFocusAction(true); return true; }; v2.doPendingEvents = function () { this.mdm.Application.doEvents(); }; v2.restore = function () { this.mdm.Application.restore(); }; v2.bringToFront = function () {}; v2.maximize = function () { this.mdm.Application.maximize(); }; v2.minimize = function () { this.mdm.Application.minimize(); }; v2.setResolution = function (__width, __height, __colorDepth) { this.mdm.System.setResolution(__width, __height, __colorDepth); }; v2.addeptForm = function (__boolean) { if (this.formStyle == __boolean) { return undefined; } this.formStyle = __boolean; this.mdm.Forms.thisForm.showFullScreen(__boolean); this.mdm.Forms.thisForm.hideCaption(__boolean); }; v2.delay = function (__amount) { if (!__amount) { return undefined; } this.mdm.Application.delay(__amount); }; v2.doFocusAction = function (__boolean, __force) { if (!__force) { if (this.lastFocus == __boolean) { return undefined; } this.lastFocus = __boolean; } if (__boolean) { this.bringToFront(); if (!__force) { this.maximize(); } this.doPendingEvents(); this.restore(); this.doPendingEvents(); this.setFullScreen(true); this.doPendingEvents(); this.bringToFront(); this.doPendingEvents(); } else { var v2 = this.fullscreen; this.beforeMinimized = v2; this.setFullScreen(false); if (!__force) { this.minimize(); } this.doPendingEvents(); } }; v2.toggleFullScreen = function (__boolean) { if (this.fullscreen == __boolean) { return undefined; } this.addeptForm(__boolean); this.restore(); this.doPendingEvents(); this.doFocusAction(__boolean, true); }; v2.setFullScreen = function (__boolean, __exit) { _global.externalModel.setFullScreenStatus(__boolean); if (__boolean) { if (!this.fullscreen) { this.fullscreen = true; if (this.fullScreenMethod == 'dirextX') { this.mdm.System.DirectX.enable(800, 600, 32); } else { this.setResolution(800, 600, 32); } this.maximize(); } } else { if (this.fullscreen) { this.fullscreen = false; if (this.fullScreenMethod == 'dirextX') { this.mdm.System.DirectX.disable(); } else { this.setResolution(this.res_width, this.res_height, this.res_colorDepth); } if (this.windowHeight) { this.mdm.Forms.MainForm.height = this.windowHeight; } if (this.windowWidth) { this.mdm.Forms.MainForm.width = this.windowWidth; } } } if (__exit) { this.killApplication(); } }; v2.requestKill = function () { this.killApplication(); }; v2.killApplication = function () { if (this.killingApp) { return undefined; } stopAllSounds(); this.killingApp = true; this.setFullScreen(); this.doPendingEvents(); this.mdm.Application.exit(); this.mdm.Application.delay(1000); }; ASSetPropFlags(as.external.ZincModel.prototype, null, 1); } #endinitclip } movieClip 9246 __Packages.as.external.SwfStudioModel { #initclip if (!_global.as) { _global.as = new Object(); } if (!_global.as.external) { _global.as.external = new Object(); } if (!_global.as.external.SwfStudioModel) { var v1 = function (__iObj) { this.root = __iObj.root; this.ssCore = _global.ssCore; this.ssEvents = _global.ssEvents; this.ssGlobals = _global.ssGlobals; this.reset(); }; as.external.SwfStudioModel = v1; var v2 = v1.prototype; v2.reset = function () { this.res_width = Number(this.ssGlobals.ssDesktopWidth); this.res_height = Number(this.ssGlobals.ssDesktopHeight); this.res_colorDepth = Number(this.ssGlobals.ssDesktopColorDepth); var v4 = new Object(); v4.onAppExit = function (__event_obj) { _global.externalModel.showExitMenu(); }; this.ssEvents.addEventListener({'listener': v4, 'event': 'App.onQuit', 'callback': 'onAppExit'}); var v3 = new Object(); v3.obj = this; v3.onAppChangeFocus = function (__event_obj) { if (__event_obj.result == 'LOSTFOCUS') { _global.externalModel.processFocus(false); this.obj.doFocusAction(false); } else { if (__event_obj.result == 'GOTFOCUS') { _global.externalModel.processFocus(true); this.obj.doFocusAction(true); } } }; this.ssCore.Win.setNotify({'event': 'onFocusChange'}, {'callback': 'onAppChangeFocus', 'scope': v3}); this.addeptForm(true); this.doFocusAction(true); return true; }; v2.restore = function () { this.ssCore.Win.restore(); }; v2.bringToFront = function () {}; v2.maximize = function () { this.ssCore.Win.maximize(); }; v2.minimize = function () { this.ssCore.Win.minimize(); this.ssCore.Win.flash(); }; v2.setResolution = function (__width, __height, __colorDepth, __userDirectDraw) { this.ssCore.Desktop.changeResolution({'width': __width, 'height': __height, 'colorDepth': __colorDepth, 'useDirectDraw': __userDirectDraw}); }; v2.addeptForm = function (__boolean) { if (this.formStyle == __boolean) { return undefined; } this.formStyle = __boolean; if (__boolean) { this.ssCore.Win.showCaption({'flag': false}); this.ssCore.Desktop.autoRestoreTaskbar({'flag': true}); this.ssCore.Desktop.autoHideTaskbar({'flag': true}); this.ssCore.Win.showBorder({'flag': false}); } else { this.ssCore.Win.showCaption({'flag': true}); this.ssCore.Desktop.showTaskbar({'flag': true}); this.ssCore.Win.showBorder({'flag': true}); } }; v2.doFocusAction = function (__boolean, __force) { if (this.noFullScreen && !__force) { return undefined; } if (!__force) { if (this.lastFocus == __boolean) { return undefined; } this.lastFocus = __boolean; } if (__boolean) { this.restore(); this.setFullScreen(true, false, __force); } else { var v3 = this.fullscreen; this.beforeMinimized = v3; this.setFullScreen(false, false, __force); } }; v2.toggleFullScreen = function (__boolean) { if (this.fullscreen == __boolean) { return undefined; } if (__boolean) { this.noFullScreen = false; this.restore(); this.addeptForm(true); this.doFocusAction(true, true); } else { this.noFullScreen = true; this.addeptForm(__boolean); this.doFocusAction(__boolean, true); } }; v2.setFullScreen = function (__boolean, __exit, __force) { _global.externalModel.setFullScreenStatus(__boolean); if (__boolean) { if (!this.fullscreen) { this.fullscreen = true; this.setResolution(800, 600, 16, false); this.maximize(); } } else { if (this.fullscreen) { this.fullscreen = false; this.setResolution(this.res_width, this.res_height, this.res_colorDepth); if (!__force) { this.minimize(); } else { this.restore(); } } } if (__exit) { this.killApplication(); } }; v2.requestKill = function () { this.killApplication(); }; v2.killApplication = function () { if (this.killingApp) { return undefined; } this.killingApp = true; this.ssCore.App.forceQuit(); }; ASSetPropFlags(as.external.SwfStudioModel.prototype, null, 1); } #endinitclip } movieClip 9247 __Packages.asHighscore.Button { #initclip if (!_global.asHighscore) { _global.asHighscore = new Object(); } if (!_global.asHighscore.Button) { var v1 = function () { super(); if (this.underline == undefined) { this.underline = true; } if (this.fontSize == undefined) { this.fontSize = 11; } }; asHighscore.Button = v1; asHighscore.Button extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(1); this.setText(); if (this.sel == true) { this.__set__selected(true); } }; v2.__set__selected = function (b) { this.sel = b; if (this.sel == true) { this.gotoAndStop(3); } else { this.gotoAndStop(1); } this.setText(); return this.__get__selected(); }; v2.__get__selected = function () { return this.sel; }; v2.setText = function () { this.btnText.text = this.title; this.btnText.autoSize = true; var v2 = new TextFormat(); if (this.sel != true) { v2.underline = this.underline; } v2.size = this.fontSize; this.btnText.setTextFormat(v2); this.useHandCursor = (this.sel == true) ? false : true; }; v2.onRollOver = function () { if (this.sel == true) { return null; } this.gotoAndStop(2); this.setText(); }; v2.onRollOut = function () { if (this.sel == true) { return null; } this.gotoAndStop(1); this.setText(); }; v2.onPress = function () { if (this.sel == true) { return null; } this.gotoAndStop(3); this.setText(); this.class.select(this.title); }; v2.addProperty('selected', v2.__get__selected, v2.__set__selected); ASSetPropFlags(asHighscore.Button.prototype, null, 1); } #endinitclip } movieClip 9248 __Packages.asHighscore.Loader { #initclip if (!_global.asHighscore) { _global.asHighscore = new Object(); } if (!_global.asHighscore.Loader) { var v1 = function () { super(); }; asHighscore.Loader = v1; asHighscore.Loader extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop((this.size == 'small') ? 1 : 9); }; v2.setSize = function (__size) { trace('__size : ' + __size); }; v2.callFunction = function (__target, __function, __size, __arg1, __arg2, __arg3) { this.fObj = {'size': __size, 'target': __target, 'func': __function, 'arg1': __arg1, 'arg2': __arg2, 'arg3': __arg3}; if (__size == this.size) { this.executeFunction(); } else { if (__size == 'big') { this.gotoAndPlay(2); } } }; v2.executeFunction = function () { if (this.fObj.func) { this.size = this.fObj.size; this.fObj.target[this.fObj.func](this.fObj.arg1, this.fObj.arg2, this.fObj.arg3); delete this.fObj; } }; ASSetPropFlags(asHighscore.Loader.prototype, null, 1); } #endinitclip } movieClip 9249 __Packages.asHighscore.Main { #initclip if (!_global.asHighscore) { _global.asHighscore = new Object(); } if (!_global.asHighscore.Main) { var v1 = function () { super(); this.submit_url = _global.highscorelink; this.visibilityViewAll = false; this.encryption = new asHighscore.Encryption(); this._x = 200; }; asHighscore.Main = v1; asHighscore.Main extends MovieClip; var v2 = v1.prototype; v2.showListView = function (__list, __extra) { this.gotoAndStop(3); if (__extra.message) { this.mc.gotoAndStop(2); this.mc.message.htmlText = __extra.message; } else { this.mc.top.title = 'HIGHSCORES TOP 20'; this.mc.loader.removeMovieClip(); this.mc.createEmptyMovieClip('loader', this.mc.getNextHighestDepth()); var v2 = 0; while (v2 < __list.length) { var v5 = this.mc['place' + (v2 + 1)]; if (!v5) { v5 = this.mc.loader.attachMovie('normalRow', 'normalRow' + v2, this.mc.loader.getNextHighestDepth(), {'_y': 195 + v2 * 15.6, '_x': -1}); v5.gotoAndStop(1 + (v2 + 1) % 2); v5.placeNumber.text = v2 + 1; if (v5.placeNumber.text.length < 2) { v5.placeNumber.text = '0' + v5.placeNumber.text; } } else { v5.placeNumber.text = v2 + 1; v5._alpha = 100; } if (__extra.highlight == v2) { v5.gotoAndStop(3); } v5.name.name.text = __list[v2].name; v5.name.name.autoSize = 'left'; if (v5.name._width > 184) { v5.name._width = 184; } v5.score.text = __list[v2].score; ++v2; } if (__extra.extraplayer) { v5 = this.mc.loader.attachMovie('normalRow', 'normalRowEPRdots', this.mc.loader.getNextHighestDepth(), {'_y': 507, '_x': -1}); v5.gotoAndStop(2); v5.placeNumber.text = '..'; v5.name.text = '..'; v5.score.text = '..'; var v7 = __extra.extraplayer.split('|'); v5 = this.mc.loader.attachMovie('normalRow', 'normalRowEPR', this.mc.loader.getNextHighestDepth(), {'_y': 522.5999999999999, '_x': -1}); v5.gotoAndStop(3); v5.placeNumber.text = v7[0]; v5.name.text = v7[1]; v5.score.text = v7[2]; } } this.mc.viewAllText._visible = this.visibilityViewAll; this.mc.viewAllText.title = 'view all highscores'; this.mc.viewAllText.class = this; var v3 = [{'btnName': 'overallText', 'btnTitle': 'Overall'}, {'btnName': 'todayText', 'btnTitle': 'Today'}, {'btnName': 'weekText', 'btnTitle': 'This week'}]; v2 = 0; while (v2 < v3.length) { this.mc[v3[v2].btnName].sel = false; this.mc[v3[v2].btnName].title = v3[v2].btnTitle; this.mc[v3[v2].btnName].gotoAndStop(1); if (this.mc[v3[v2].btnName].title == this.selectedListType) { this.mc[v3[v2].btnName].gotoAndStop(3); this.mc[v3[v2].btnName].sel = true; } this.mc[v3[v2].btnName].class = this; this.mc[v3[v2].btnName].setText(); ++v2; } this.mc.closeText.title = 'close'; this.mc.closeText.underline = false; this.mc.closeText.class = this; this.mc.top.closeBtn.onPress = function () { this._parent._parent._parent.close(); }; }; v2.triggerHackAttempt = function (__id, __message) {}; v2.submitValuesView = function () { if (this.mc.score.text != this.__get__score()) { this.triggerHackAttempt(1000, 'Userattempt to adjust score ' + this.__get__score() + ' to ' + this.mc.score.text); } this.submitValuesModel(); this.mc.closeBtn.onPress = function () { this._parent._parent._parent.close(); }; }; v2.submitListRequestModel = function (__list) { this.gotoAndStop(2); this.mc.size = 'big'; var v3 = new LoadVars(); var set_result = new LoadVars(); set_result.main = this; v3.mode = 'list'; v3.list = __list; v3.p_name = this.name; v3.g_id = _global.g_id; v3.a_id = _global.affiliateId; var v5 = this; set_result.onLoad = function (succes) { if (succes) { this.main.processPhp(set_result); } else { trace('fail'); } }; var v4 = (getTimer()).toString(); v3.sendAndLoad(this.submit_url + '?key=' + v4, set_result, 'POST'); this.mc.top.closeBtn.onPress = function () { this._parent._parent._parent.close(); }; }; v2.submitValuesModel = function () { this.name = this.mc.username.text; this.gotoAndStop(2); this.mc.top.closeBtn.onPress = function () { this._parent._parent._parent.close(); }; this.mc.size = 'small'; var v3 = new LoadVars(); var set_result = new LoadVars(); set_result.main = this; v3.mode = 'submit'; v3.g_score = this.score; v3.p_name = this.name; v3.g_id = _global.g_id; v3.key = this.encryption.getRandomString(); v3.key2 = this.encryption.getRandomString(); v3.key3 = this.encryption.encrypt(v3.key + '_' + v3.g_id.toString(), v3.key2 + '_' + this.__get__score(), 0); v3.key4 = this.encryption.getRandomString(); v3.a_id = _global.affiliateId; var v5 = this; set_result.onLoad = function (succes) { if (succes) { this.main.processPhp(set_result); } else { trace('fail'); } }; var v4 = (getTimer()).toString(); v3.sendAndLoad(this.submit_url + '?key=' + v4, set_result, 'POST'); this.mc.top.closeBtn.onPress = function () { this._parent._parent._parent.close(); }; }; v2.processPhp = function (__iObj) { if (__iObj.viewall == 'true' && !_global.blockViewAllHighScore) { this.visibilityViewAll = true; } switch (__iObj.view) { case 'listOverall': case 'listToday': case 'listThis week': this.selectedListType = __iObj.view.substr(4, __iObj.view.length - 4); if (this.selectedListType == undefined) { this.selectedListType = 'Overall'; } this.mc.callFunction(this, 'showListModel', 'big', this.generateList(__iObj.list), {'extraplayer': __iObj.extraplayer, 'message': __iObj.message, 'highlight': __iObj.highlight}); break; case 'submit': this.mc.callFunction(this, 'showSendView', 'small', this.__get__score(), this.name, {'message': __iObj.message}); } }; v2.showList = function () { this.submitListRequestModel('Today'); }; v2.select = function (__btnTitle) { switch (__btnTitle) { case 'Overall': case 'Today': case 'This week': this.submitListRequestModel(__btnTitle); break; case 'close': this.close(); break; case 'submit highscore': this.submitValuesView(); break; case 'view all highscores': this.getURL(this.submit_url + '?g_id=' + _global.g_id + '&a_id=' + _global.affiliateId, '_blank'); break; default: trace('button not configured : ' + __btnTitle); } }; v2.__set__score = function (t) { this.scBfr = t * 3; return this.__get__score(); }; v2.__get__score = function () { return Math.floor(this.scBfr / 3); }; v2.showSendView = function (__score, __name, __extra) { this.gotoAndStop(1); if (__extra.message) { this.mc.gotoAndStop(2); this.mc.message.htmlText = __extra.message; } this.mc.top.title = 'SUBMIT HIGHSCORE'; this.__set__score(__score); this.name = __name; this.mc.sendText.title = 'submit highscore'; this.mc.sendText.class = this; this.mc.score.text = this.score; this.mc.username.text = __name; this.mc.closeText.title = 'close'; this.mc.closeText.class = this; this.mc.top.closeBtn.onPress = function () { this._parent._parent._parent.close(); }; }; v2.showSend = function (__score, __name) { this.showSendView(__score, __name); }; v2.showListModel = function (__list, __extra) { this.showListView(__list, __extra); }; v2.generateList = function (__rawList) { var v3 = __rawList.split('||'); var v6 = []; var v1 = 0; while (v1 < v3.length) { var v2 = v3[v1].split('|'); v6.push({'name': v2[0], 'score': v2[1]}); ++v1; } return v6; }; v2.close = function () { this.removeMovieClip(); }; v2.addProperty('score', v2.__get__score, v2.__set__score); ASSetPropFlags(asHighscore.Main.prototype, null, 1); } #endinitclip } movieClip 9250 __Packages.asHighscore.Encryption { #initclip if (!_global.asHighscore) { _global.asHighscore = new Object(); } if (!_global.asHighscore.Encryption) { var v1 = function () { this.errors = new Array(); this.scramble1 = '! #$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~'; this.scramble2 = 'f^jAE]okIOzU[2&q1{3`h5w_794p@6s8?BgP>dFV=m D<TcS%Ze|r:lGK/uCy.Jx)HiQ!#$~(;Lt-R}Ma,NvW+Ynb*0X'; if (this.scramble1.length != this.scramble2.length) { this.trigger_error('** SCRAMBLE1 is not same length as SCRAMBLE2 **', 'E_USER_ERROR'); } this.adj = 1.75; this.mod = 3; }; asHighscore.Encryption = v1; var v2 = v1.prototype; v2.getRandomString = function () { var v4 = ''; var v3; var v2 = 0; while (v2 < 8) { v3 = Math.floor(Math.random() * this.scramble1.length); v4 += this.scramble1.substr(v3 - 1, 1); ++v2; } return v4; }; v2.trigger_error = function ($mess) { trace($mess); }; v2.encrypt = function ($key, $source, $sourcelen) { if (!$sourcelen) { $sourcelen = 0; } this.errors = new Array(); this.$fudgefactor = this._convertKey($key); if (this.errors.length > 0) { return undefined; } if (!$source) { trace('No value has been supplied for encryption'); return undefined; } while ($source.length < $sourcelen) { $source += ' '; } var v11 = ''; var v10 = 0; var v3 = 0; while (v3 < $source.length) { var v9 = $source.substr(v3, 1); var v5 = this.scramble1.indexOf(v9); if (v5 === false) { return undefined; } var v7 = this._applyFudgeFactor(this.$fudgefactor); var v6 = v10 + v7; var v2 = Math.round(v6) + v5; v2 = this._checkRange(v2); v10 = v6 + v2; var v8 = this.scramble2.substr(v2, 1); v11 += v8; ++v3; } return v11; }; v2._applyFudgeFactor = function () { var v2 = this.$fudgefactor.shift(); v2 += this.adj; this.$fudgefactor.push(v2); if (this.mod) { if (Math.floor(v2 % this.mod) == 0) { v2 *= -1; } } return v2; }; v2._checkRange = function ($num) { $num = Math.round($num); var v3 = this.scramble1.length; while ($num >= v3) { $num -= v3; } while ($num < 0) { $num += v3; } return $num; }; v2._convertKey = function ($key) { if (!$key) { trace('No value has been supplied for the encryption key'); return undefined; } var v7 = new Array(); v7.push($key.length); var v5 = 0; var v2 = 0; while (v2 < $key.length) { var v4 = $key.substr(v2, 1); var v3 = this.scramble1.indexOf(v4); if (v3 === false) { trace('Key contains an invalid character ($char)'); return undefined; } v7.push(v3); v5 += v3; ++v2; } v7.push(v5); return v7; }; ASSetPropFlags(asHighscore.Encryption.prototype, null, 1); } #endinitclip } movieClip 9251 __Packages.asHighscore.MainMiniclip { #initclip if (!_global.asHighscore) { _global.asHighscore = new Object(); } if (!_global.asHighscore.MainMiniclip) { var v1 = function () { super(); }; asHighscore.MainMiniclip = v1; asHighscore.MainMiniclip extends MovieClip; var v2 = v1.prototype; v2.showSend = function (__score) { this.showScoreBo = true; _root.mchscre = __score; this.render(); }; v2.showList = function () { this.showScoreBo = false; _root.mchscre = 0; this.render(); }; v2.render = function () { var v4 = this.attachMovie('miniclipHighscore', 'miniclipHighscore', 1, {'gamename': _global.gameName, 'scoreLocation': _root.mchscre, 'saveScore': this.showScoreBo}); v4._x = _global.stage_w / 2 - v4._width / 2; v4._y = _global.stage_h / 2 - v4._height / 2; }; ASSetPropFlags(asHighscore.MainMiniclip.prototype, null, 1); } #endinitclip } movieClip 9252 __Packages.utils.Fly { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.Fly) { var v1 = function (o, linkId_) { this.obj = o; this.linkId = linkId_; }; utils.Fly = v1; var v2 = v1.prototype; v2.flyTo = function (x, y) { this.pos_x = this.obj._x; this.pos_y = this.obj._y; this.start_x = this.obj._x; this.start_y = this.obj._y; this.old_x = 10; this.old_y = 50; this.once = false; var v3 = {'x': this.obj._x, 'y': this.obj._y - 70}; this.deltax = v3.x - this.start_x; this.deltay = v3.y - this.start_y; utils.Delegate.callDelayed(this.obj, this.obj.gotoAndPlay, 40, 26); this.finx = x - this.deltax; this.finy = y - this.deltay; this.destx = this.finx; this.desty = this.finy; this.t = 1; var v2 = Math.atan2(this.desty - this.start_y, this.destx - this.start_x); this.xmove = this.t * Math.cos(v2); this.ymove = this.t * Math.sin(v2); this.intervarid = setInterval(this, 'lineTo', 40); }; v2.changeMove = function () { if (this.curve) { this.radius = 20; if (this.arc == 0) { this.arc = 0.1; } var v3 = this.getXY12(this.obj._x, this.obj._y, this.radius, this.getOrthogonalK(this.obj._x, this.obj._y, this.start_x, this.start_y)); var v2 = 0; if (this.obj._x > this.finx) { this.orient = -1; if (v3[v2][0] > this.obj._x) { v2 = 1; } } else { this.orient = 1; if (v3[v2][0] < this.obj._x) { v2 = 1; } } var v11 = Math.atan2(v3[v2][1] - this.obj._y, v3[v2][0] - this.obj._x); var v18 = Math.PI + v11; this.degrees = v18 * 180 / Math.PI; this.radians = this.degrees * Math.PI / 180; this.pos_x = v3[v2][0]; this.pos_y = v3[v2][1]; var v17 = this.degrees + this.orient * this.speed; var v16 = this.degrees + -1 * this.orient * this.speed; var v6 = v17 * Math.PI / 180; var v5 = v16 * Math.PI / 180; var v8 = Math.sin(v6) * this.radius; var v10 = Math.cos(v6) * this.radius; var v7 = Math.sin(v5) * this.radius; var v9 = Math.cos(v5) * this.radius; var v15 = v10 + this.pos_x; var v13 = v8 + this.pos_y; var v14 = v9 + this.pos_x; var v12 = v7 + this.pos_y; if (this.distance(v15, v13, this.start_x, this.start_y) < this.distance(v14, v12, this.start_x, this.start_y)) { this.orient *= -1; } this.dest = this.degrees + this.orient * this.arc * 360; if (!this.once) { this.once = true; this.intervarid = setInterval(this, 'toCurve', 40); this.curve = false; } } else { this.start_x = this.obj._x; this.start_y = this.obj._y; var v19 = this.getXY(); if (!this.once) { this.destx = this.start_x; this.desty = this.start_y - 20; } else { this.destx = this.finx; this.desty = this.finy; } this.t = 1; var v4 = Math.atan2(this.desty - this.start_y, this.destx - this.start_x); this.xmove = this.t * Math.cos(v4); this.ymove = this.t * Math.sin(v4); this.intervarid = setInterval(this, 'lineTo', 40); this.curve = true; } }; v2.toCurve = function () { this.degrees += this.orient * this.speed; if (Math.abs(this.degrees - this.dest) < this.speed) { clearInterval(this.intervarid); this.changeMove(); } this.radians = this.degrees * Math.PI / 180; this.new_y = Math.sin(this.radians) * this.radius; this.new_x = Math.cos(this.radians) * this.radius; this.old_x = this.obj._x; this.old_y = this.obj._y; this.obj._x = this.new_x + this.pos_x; this.obj._y = this.new_y + this.pos_y; }; v2.lineTo = function () { var v2 = this.obj._x; var v3 = this.obj._y; v2 += this.xmove; v3 += this.ymove; var v8 = {'x': this.obj._x, 'y': this.obj._y - 70}; var v5 = this.distance(this.obj._x, this.obj._y, this.destx, this.desty); if (v5 < this.t) { this.obj._x = this.destx; this.obj._y = this.desty; clearInterval(this.intervarid); this.degrees = Math.atan2(this.desty - this.start_y, this.destx - this.start_x) * 180 / Math.PI; } else { this.obj._x = v2; this.obj._y = v3; } ++this.t; var v4 = Math.atan2(this.desty - this.start_y, this.destx - this.start_x); this.xmove = this.t * Math.cos(v4); this.ymove = this.t * Math.sin(v4); }; v2.distance = function (x1, y1, x2, y2) { return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); }; v2.distance2 = function (dx, dy) { return Math.sqrt(dx * dx + dy * dy); }; v2.getK = function (x1, y1, x2, y2) { return (y2 - y1) / (x2 - x1); }; v2.getOrthogonalK = function (x1, y1, x2, y2) { return -(x2 - x1) / (y2 - y1); }; v2.getB = function (x1, y1, k) { return y1 - k * x1; }; v2.getX12 = function (x1, y1, r, k) { var v3 = this.getB(x1, y1, k); var v4 = 1 + k * k; var v2 = 2 * (x1 - k * v3 + k * y1); var v8 = x1 * x1 + v3 * v3 - 2 * v3 * y1 + y1 * y1 - r * r; var v10 = (v2 + Math.sqrt(v2 * v2 - 4 * v4 * v8)) / 2 * v4; var v9 = (v2 - Math.sqrt(v2 * v2 - 4 * v4 * v8)) / 2 * v4; return [v10, v9]; }; v2.getXY12 = function (x1, y1, r, k) { var v2 = this.getX12(x1, y1, r, k); var v7 = Math.round(v2[0]); var v5 = Math.round(v2[1]); var v9 = Math.round(k * v2[0] + (y1 - k * x1)); var v8 = Math.round(k * v2[1] + (y1 - k * x1)); return [[v7, v9], [v5, v8]]; }; v2.getXY = function () { var v4; var v3; var v5 = 200; var v2 = this.getXY12(this.obj._x, this.obj._y, v5, this.getK(this.obj._x, this.obj._y, this.old_x, this.old_y)); if (this.distance(this.old_x, this.old_y, v2[0][0], v2[0][1]) > this.distance(this.old_x, this.old_y, v2[1][0], v2[1][1])) { v4 = v2[0][0]; v3 = v2[0][1]; return [v4, v3]; } v4 = v2[1][0]; v3 = v2[1][1]; return [v4, v3]; }; v2.radians = Math.PI; v2.degrees = 75; v2.radius = 50; v2.orient = -1; v2.arc = 0.01; v2.speed = 10; v2.t = 0.1; v2.curve = false; ASSetPropFlags(utils.Fly.prototype, null, 1); } #endinitclip } movieClip 9253 __Packages.utils.Delegate { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.Delegate) { var v1 = function (f) { super(); this.func = f; }; utils.Delegate = v1; utils.Delegate extends Object; var v2 = v1.prototype; v1.create = function (obj, func) { var v2 = function () { var v2 = arguments.callee.target; var v3 = arguments.callee.func; arguments = arguments.callee.arguments; return v3.apply(v2, arguments); }; v2.target = obj; v2.func = func; arguments.splice(0, 2); v2.arguments = arguments; return v2; }; v2.createDelegate = function (obj) { return utils.Delegate.create(obj, this.func); }; v1.callDelayed = function (obj, func, ival) { arguments.splice(0, 3); var v3 = new Object(); v3.f = function () { clearInterval(this.i); var v3 = arguments.callee.target; var v4 = arguments.callee.func; arguments = arguments.callee.arguments; return this.func.apply(this.target, this.arguments); }; v3.target = obj; v3.func = func; v3.arguments = arguments; v3.i = setInterval(v3, 'f', ival); }; ASSetPropFlags(utils.Delegate.prototype, null, 1); } #endinitclip } movieClip 9254 __Packages.MesgAnim.Fireworks { #initclip if (!_global.MesgAnim) { _global.MesgAnim = new Object(); } if (!_global.MesgAnim.Fireworks) { var v1 = function (density, sparkleType) { this.density = density; this.sp = new Array(); this.holder = new Array(); this.x = Math.random() * 800; this.y = Math.random() * 600; this.target = _root; this.speed = 2; this.time = 1900; this.sparkleType = sparkleType; }; MesgAnim.Fireworks = v1; var v2 = v1.prototype; v2.setProperties = function (target, x, y) { this.target = target; this.x = x; this.y = y; }; v2.changeSparkleProperties = function (s, t) { this.speed = s; this.time = t; }; v2.startFireworks = function () { var v2 = 1; while (v2 < this.density) { this.sp[v2] = new MesgAnim.Sparkle(this.time, this.speed, this.target); this.sp[v2].setExplosionPoint(this.x, this.y); this.sp[v2].fire(this.sparkleType); ++v2; } }; ASSetPropFlags(MesgAnim.Fireworks.prototype, null, 1); } #endinitclip } movieClip 9255 __Packages.MesgAnim.Sparkle { #initclip if (!_global.MesgAnim) { _global.MesgAnim = new Object(); } if (!_global.MesgAnim.Sparkle) { var v1 = function (t, speed, target) { this.target = target; this.lifetime = t; this.life = t; this.speed = speed - Math.random() * speed * 2; this.a = Math.random() * 5 - 17; this.g = 2; this.v = speed; }; MesgAnim.Sparkle = v1; var v2 = v1.prototype; v2.fire = function (linkId) { this.sparkle = this.target.attachMovie('sparkle', utils.StringUtils.getUniqueName(), this.target.getNextHighestDepth(), {'_x': this.expx, '_y': this.expy}); this.sparkle._xscale = Math.random() * 60 + 25; this.sparkle._yscale = Math.random() * 60 + 25; var v3 = flash.display.BitmapData.loadBitmap(linkId); if (v3) { utils.Delegate.callDelayed(this, this.attachSparkleBitmap, 10, linkId); } else { utils.Delegate.callDelayed(this, this.attachSparkleClip, 10, linkId); } clearInterval(this.intID); this.startT = getTimer(); this.intID = setInterval(this, 'loop', 40); }; v2.setExplosionPoint = function (x, y) { this.expx = x; this.expy = y; }; v2.attachSparkleBitmap = function (linkId) { var v2 = flash.display.BitmapData.loadBitmap(linkId); var v3 = new flash.geom.Matrix(); v3.translate(-v2.width / 2, -v2.height / 2); this.sparkle.sp.createEmptyMovieClip('clip', 0); this.sparkle.sp.clip.attachBitmap(v2, 0); this.sparkle.sp.clip._x -= v2.width / 2; this.sparkle.sp.clip._y -= v2.height / 2; }; v2.attachSparkleClip = function (linkId) { this.sparkle.sp.attachMovie(linkId, utils.StringUtils.getUniqueName(), 0); }; v2.loop = function () { var v2 = getTimer() - this.startT; this.life -= v2; if (this.life <= 0) { clearInterval(this.intID); this.sparkle._alpha = 0; this.remove(); } else { this.sparkle._x += this.speed; this.sparkle._y += int(this.a * v2 / 100 + this.g * v2 * v2 / 4700); this.sparkle._alpha -= v2 / 1000; } }; v2.remove = function () { var v2 = this.target; --v2.density; this.sparkle.removeMovieClip(); delete this.sparkle; if (v2.density <= 1) { false; } }; ASSetPropFlags(MesgAnim.Sparkle.prototype, null, 1); } #endinitclip } movieClip 9256 __Packages.utils.StringUtils { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.StringUtils) { var v1 = function () {}; utils.StringUtils = v1; var v2 = v1.prototype; v1.getUniqueName = function () { var v3 = ''; var v2 = 1; while (v2 <= 4) { var v1 = 1; while (v1 <= 4) { v3 += utils.StringUtils.getRandomChar(); ++v1; } if (v2 < 4) { v3 += '-'; } ++v2; } return v3; }; v1.getRandomChar = function () { switch (Math.round(Math.random() + 1)) { case 1: return String.fromCharCode(Math.round(Math.random() * 25) + 65); break; case 2: return String.fromCharCode(Math.round(Math.random() * 25) + 97); } }; v1.scrambleArray = function (arr) { var v2 = []; while (arr.length > 0) { v2.push(arr.splice(Math.round(Math.random() * (arr.length - 1)), 1)); } return v2; }; v1.getTimeString = function (t) { var v1 = Math.round(t / 1000); var v2 = Math.floor(v1 / 60); var v3 = Math.floor(v2 / 60); v1 %= 60; v2 %= 60; var v4 = v1 < 10 ? '0' + v1 : v1; var v5 = v2 + ':'; if (v3 <= 0) { var v6 = ''; var v7 = v6 + v5 + v4; return v7; } var v6 = v3 + ':'; var v7 = v6 + v5 + v4; return v7; }; v1.getHighScoreTimeString = function (t) { var v2 = Math.round(t / 1000); var v1 = Math.floor(v2 / 60); var v3 = Math.floor(v1 / 60); v2 %= 60; v1 %= 60; var v6 = v2 < 10 ? '0' + v2 : v2.toString(); var v4 = '00'; if (v1 > 0) { v4 = v1 < 10 ? '0' + v1 : v1.toString(); } var v5 = ''; if (v3 > 0) { v5 = v3 < 10 ? '0' + v3 : v3.toString(); } var v7 = v5 + v4 + v6; return v7; }; ASSetPropFlags(utils.StringUtils.prototype, null, 1); } #endinitclip } movieClip 9257 __Packages.as.FocusControl { #initclip if (!_global.as) { _global.as = new Object(); } if (!_global.as.FocusControl) { var v1 = function () { super(); _global.focusControl = this; this.init(); }; as.FocusControl = v1; as.FocusControl extends MovieClip; var v2 = v1.prototype; v2.init = function () { this._visible = false; this.isTextfieldFocusKilled = false; this.focus_mc = _root.createEmptyMovieClip('fmc', _root.getNextHighestDepth()); this.focus_mc.onRelease = function () {}; Selection.addListener(this.focus_mc); Selection.setFocus(this.focus_mc); _global.processWindowFocus = this.processWrapperFocus; _global.globalsound = new Sound(); this.interval = setInterval(this, 'update', 250); }; v2.update = function () { if (this.isTextfieldFocusKilled) { this.isTextfieldFocusKilled = false; Selection.setFocus(this.focus_mc); } if (Selection.getFocus() == null) { this.pauseGame(); } }; v2.processWrapperFocus = function (__boolean) { if (__boolean) { this.continueGame(); } else { Selection.setFocus(null); this.pauseGame(); } }; v2.pauseGame = function () { _global.globalsound.setVolume(0); this.doGameActions(true); this._visible = true; if (_global.level.delivery.PauseScreen.clip == undefined && _global.level.factory.PauseScreen.clip == undefined) { if (_global.level.delivery.FinalTrofejAnimation == undefined && _global.level.factory.FinalTrofejAnimation == undefined) { _global.level.pauseGame(); } Mouse.show(); _global.game.mousePointer.clip._visible = false; } if (_global.game._visible) { var v3 = _global.game; var v6 = this; var v4 = new flash.geom.Matrix(); v4.translate(v3._x, v3._y); var v5 = new flash.display.BitmapData(v3._width, v3._height, true, 0); v5.draw(v3, v4, new flash.geom.ColorTransform(), 1, undefined, true); v6.snapshot.attachBitmap(v5, 1); v3._visible = false; } }; v2.continueGame = function () { _global.game._visible = true; Selection.setFocus(this.focus_mc); this._visible = false; Mouse.hide(); _global.game.mousePointer.clip._visible = true; if (_global.level.delivery.holder) { if (_global.level.delivery.CurentPopUp == undefined) { if (_global.level.delivery.holder != undefined) { if (_global.level.delivery.PauseScreen.clip == undefined) { if (_global.level.delivery.FinalTrofejAnimation == undefined) { _global.level.continueGame(); } } } } } else { if (_global.level.factory.holder != undefined) { if (_global.level.factory.PauseScreen.clip == undefined) { if (_global.level.factory.FinalTrofejAnimation == undefined) { _global.level.continueGame(); } } } } if (!_global.soundTurnedOff) { _global.globalsound.setVolume(100); } this.doGameActions(); }; v2.doGameActions = function (__pause) { if (__pause) { if (!_global.setted) { _global.setted = true; _global.oldscreenOnTop = _global.game.screenOnTop; _global.game.screenOnTop = true; _global.oldRUSure = _global.game.RUSure; _global.game.RUSure = true; _global.ispaused = _global.game.LevelClip.pause; _global.game.LevelClip.pauseGame(); } } else { _global.setted = false; _global.game.screenOnTop = _global.oldscreenOnTop; _global.game.RUSure = _global.oldRUSure; if (!_global.ispaused) { _global.game.LevelClip.continueGame(); } } }; ASSetPropFlags(as.FocusControl.prototype, null, 1); } #endinitclip } movieClip 9258 __Packages.Game { #initclip if (!_global.Game) { var v1 = function () { super(); _global.game = this; this.delegate = utils.Delegate; this.musicVolume = 100; this.fxVolume = 100; this.maxCounter = 0; this.maxCombo = 0; this.maxRang = 0; this.canEsc = false; this.gameCanBePaused = true; this.moneySpendForUpgrade = 0; this.factoryCallTimes = 1; this.NoNegativePoints = true; this.levelState = 'F'; this.soundClip = this.createEmptyMovieClip('soundClip', -11000); this.sndCtrl = new ctrl.Sounds(100); this.sounds = new Array(); this.sounds = [['titlescreen_snd', 100, true], ['factory_snd', 100, true], ['delivery_snd', 100, true], ['restartlevel_snd', 100, true], ['goalreached_snd', 100, true], ['positivemessage_snd', 100, false], ['negativemessage_snd', 100, false], ['letterexplosion_snd', 100, false], ['medalwon_snd', 100, false], ['goalReachedText_snd', 100, false], ['goalNotReachedText_snd', 100, true], ['levelClearedAndincredible_snd', 100, false], ['readyText_snd', 100, false], ['upgradefirewors_snd', 100, false], ['mouseclick_snd', 100, false], ['oskarmuzika_snd', 100, false], ['applause_snd', 100, false], ['applausewisle_snd', 100, false], ['trophylevelpoints_snd', 100, false], ['trophyspeed_snd', 100, false], ['rankingPlus_snd', 100, false], ['rankingMinus_snd', 100, false], ['ace_snd', 100, false], ['windchimes_snd', 100, false], ['phenomenal_snd', 100, false], ['nicelyDone_snd', 100, false], ['excellentJob_snd', 100, false], ['marvelous_snd', 100, false], ['scaryGood_snd', 100, false], ['superbPerformance_snd', 100, false], ['thatWasAmazing_snd', 100, false], ['perfect_snd', 100, false], ['slikanje_snd', 100, false]]; this.pointsAreLostFactoryUpgrade = new Array(); this.wrongWishFactoryUpgrade = new Array(); this.bed1LevelUpgrades = new Array(); this.bed2LevelUpgrades = new Array(); this.bed3LevelUpgrades = new Array(); this.bath1LevelUpgrades = new Array(); this.bath2LevelUpgrades = new Array(); this.bath3LevelUpgrades = new Array(); this.strongStorkArray = new Array(); this.foodmakerLevelUpgrades = new Array(); this.EscSwitchLevelUpgrades = new Array(); this.toyboxLevelUpgrades = new Array(); this.cleaningLevelStork = new Array(); this.soundsId = new Array(); this.gamePointsFactory = new Array(); this.gamePointsDelivery = new Array(); this.attachSounds(); this.saveLoadSoundObj = new com.SaveLoadSound(this); this.keyboard = new com.Keyboard1(this); this.showWinFlag = false; _global.rolling = false; _global.handleFree = false; this.playMusicFlag = true; this.init(); }; _global.Game = v1; _global.Game extends MovieClip; var v2 = v1.prototype; v2.init = function () { this.Language = new config.LanguageSettings(); this.interface_ = new com.Interface(this); this.weatherMasterTrophyShown = false; this.levelNum = 1; this.maxLevelNum = 1; this.levelState = 'F'; this.justPointInFactory = 0; this.PopupForStrong1 = false; this.PopupForStrong2 = false; this.PopupForStrong3 = false; this.allUpgradesDelivery = false; this.allUpgradesFactory = false; this.gamePoints = 0; this.gameEarlyPoints = 0; this.levelPoints = 0; this.cleaningStorkApearing = 0; this.avoidingBadWeatherLevels = 0; this.bedUpgrades = [1, 0, 0]; this.StatusBeforeThisScreen = 'nameScreen'; var v3 = 0; while (v3 <= 25) { this.bed1LevelUpgrades[v3] = 1; this.bed2LevelUpgrades[v3] = 0; this.bed3LevelUpgrades[v3] = 0; this.bath1LevelUpgrades[v3] = 1; this.bath2LevelUpgrades[v3] = 0; this.bath3LevelUpgrades[v3] = 0; this.foodmakerLevelUpgrades[v3] = 1; this.EscSwitchLevelUpgrades[v3] = 0; this.toyboxLevelUpgrades[v3] = 1; this.cleaningLevelStork[v3] = 0; this.gamePointsFactory[v3] = 0; this.gamePointsDelivery[v3] = 0; this.pointsAreLostFactoryUpgrade[v3] = 0; this.wrongWishFactoryUpgrade[v3] = 0; ++v3; } this.bathUpgrades = [1, 0, 0]; this.avoidingBadWeatherLevelsArray = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.ExtraGoal = [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.Goal = [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.Stork0Speed = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.Stork0Power = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.Stork1Speed = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.Stork1Power = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.Stork2Speed = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.Stork2Power = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.Stork3Speed = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.Stork3Power = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.Stork4Speed = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.Stork4Power = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.Stork5Speed = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.Stork5Power = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.foodmakerUpgrades = 1; this.EscSwitchUpgrades = 0; this.toyboxUpgrades = 1; this.cleaningStork = 0; this.strongStork = 0; this.speed = 10; this.popUpPause = false; this.frstTime = false; this.goalReached = true; this.expertGoalReached = false; this.twinMasterTrophy = false; this.tripletMasterTrophy = false; this.quadrupletFanTrophy = false; this.expertGoalBusterTrophy = false; this.professorTrophy = false; this.innovatorTrophy = false; this.comboFreakTrophy = false; this.comboExpertTrophy = false; this.comboholicTrophy = false; this.fastestStorkTrophy = false; this.queenHeartsTrophy = false; this.kingHeartsTrophy = false; this.storkHeartsTrophy = false; this.weatherMasterTrophy = false; this.slotMashineTrophy = false; this.trophyHunter = false; this.twinMasterTrophyShown = false; this.tripletMasterTrophyShown = false; this.quadrupletFanTrophyShown = false; this.expertGoalBusterTrophyShown = false; this.professorTrophyShown = false; this.innovatorTrophyShown = false; this.comboFreakTrophyShown = false; this.comboExpertTrophyShown = false; this.comboholicTrophyShown = false; this.fastestStorkTrophyShown = false; this.queenHeartsTrophyShown = false; this.kingHeartsTrophyShown = false; this.storkHeartsTrophyShown = false; this.weatherMasterTrophyShown = false; this.slotMashineTrophyShown = false; this.trophyHunterShown = false; this.singelBoySacksArray = [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.singelGirlSacksArray = [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.twinBoySacksArray = [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.twinGirlSacksArray = [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.tripletBoySacksArray = [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.tripletGirlSacksArray = [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.quadrupletBoySacksArray = [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.quadrupletGirlSacksArray = [undefined, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.nextIsFactory = true; this.pointsAreLost = false; this.expertGoal = false; this.expertGoalInOrder = false; this.expertGoalNum = 0; this.expertGoalInOrderNum = 0; this.wrongWish = false; this.instandNeed = true; this.successAction = 0; this.Storks = []; var v4 = new mcs.DeliveryStork(this, 'stork', 705.4, -8.300000000000001, 5200, 1, 0, 0); this.Storks.push(v4); v4 = new mcs.DeliveryStork(this, 'stork', 708.3, 65.3, 5203, 1, 0, 0); this.Storks.push(v4); v4 = new mcs.DeliveryStork(this, 'stork', 712.5, 141.3, 5206, 1, 0, 0); this.Storks.push(v4); v4 = new mcs.DeliveryStork(this, 'stork', 714.5, 221.6, 5209, 1, 0, 0); this.Storks.push(v4); v4 = new mcs.DeliveryStork(this, 'stork', 717.5, 304.5, 5212, 1, 0, 0); this.Storks.push(v4); v4 = new mcs.DeliveryStork(this, 'stork', 721.4, 390.5, 5215, 1, 0, 0); this.Storks.push(v4); this.loadSoundSettings(); _global.flag = false; _global.bottleReady = false; this.helpOnOff = true; this.helpTips = new Array(); this.helpTips[0] = new mcs.PopUpFactory(this, 'popup0', 250, 220, 234567, 0, 'popup'); this.helpTips[0].shown = false; this.helpTips[1] = new mcs.PopUpFactory(this, 'popup1', 354.8, 138.8, 234567, 1, 'popUpDoleDesno1'); this.helpTips[1].shown = false; this.helpTips[2] = new mcs.PopUpFactory(this, 'popup2', 354.8, 138.8, 234567, 2, 'popUpDoleDesno1'); this.helpTips[2].shown = false; this.helpTips[3] = new mcs.PopUpFactory(this, 'popup3', 250, 220, 234567, 3, 'popup'); this.helpTips[3].shown = false; this.helpTips[4] = new mcs.PopUpFactory(this, 'popup4', 452.6, 234.7, 234567, 4, 'popUpDoleDesno1_bezStrelka'); this.helpTips[4].shown = false; this.helpTips[5] = new mcs.PopUpFactory(this, 'popup5', 283.1, 232.6, 234567, 5, 'popUpDoleDesno1'); this.helpTips[5].shown = false; this.helpTips[6] = new mcs.PopUpFactory(this, 'popup6', 283.1, 232.6, 234567, 6, 'popUpDoleDesno1'); this.helpTips[6].shown = false; this.helpTips[7] = new mcs.PopUpFactory(this, 'popup7', 206, 310.6, 234567, 7, 'popUpDoleDesno1'); this.helpTips[7].shown = false; this.helpTips[8] = new mcs.PopUpFactory(this, 'popup8', 280, 232.6, 234567, 8, 'popUpDoleDesno1'); this.helpTips[8].shown = false; this.helpTips[9] = new mcs.PopUpFactory(this, 'popup9', 230.1, 232.6, 234567, 9, 'popUpDoleDesno1_bezStrelka'); this.helpTips[9].shown = false; this.helpTips[10] = new mcs.PopUpFactory(this, 'popup10', 60, 300, 234567, 10, 'popUpDoleDesno1'); this.helpTips[10].shown = false; this.helpTips[11] = new mcs.PopUpFactory(this, 'popup11', 60, 300, 234567, 11, 'popUpDoleDesno1'); this.helpTips[11].shown = false; this.helpTips[12] = new mcs.PopUpFactory(this, 'popup12', 250, 232.6, 234567, 12, 'popUpDoleDesno1'); this.helpTips[12].shown = false; this.helpTips[13] = new mcs.PopUpFactory(this, 'popup13', 217.8, 324.1, 234567, 13, 'popUpDoleLevo1'); this.helpTips[13].shown = false; this.helpTips[14] = new mcs.PopUpFactory(this, 'popup14', 250, 232.6, 234567, 14, 'popUpDoleDesno1'); this.helpTips[14].shown = false; this.helpTips[15] = new mcs.PopUpFactory(this, 'popup15', 13, 350, 234567, 15, 'popUpDoleLevo1'); this.helpTips[15].shown = false; this.helpTips[16] = new mcs.PopUpFactory(this, 'popup16', 237, 95.7, 234567, 16, 'popUpDoleLevo1'); this.helpTips[16].shown = false; this.helpTips[17] = new mcs.PopUpFactory(this, 'popup17', 400, 117.7, 234567, 17, 'popUpDoleLevo1'); this.helpTips[17].shown = false; this.helpTips[18] = new mcs.PopUpFactory(this, 'popup18', -13.6, 260.4, 234567, 18, 'popUpDoleSrede'); this.helpTips[18].shown = false; this.helpTips[19] = new mcs.PopUpFactory(this, 'popup19', 190.8, 226.4, 234567, 19, 'popUpGoreLevo1'); this.helpTips[19].shown = false; this.helpTips[20] = new mcs.PopUpFactory(this, 'popup20', 276.9, 233.4, 234567, 20, 'popUpGoreLevo1'); this.helpTips[20].shown = false; this.helpTips[21] = new mcs.PopUpFactory(this, 'popup21', 250, 220, 234567, 21, 'popup'); this.helpTips[21].shown = false; this.helpTips[22] = new mcs.PopUpFactory(this, 'popup22', 250, 220, 234567, 22, 'popup'); this.helpTips[22].shown = false; this.helpTips[23] = new mcs.PopUpFactory(this, 'popup23', 250, 220, 234567, 23, 'popup'); this.helpTips[23].shown = false; this.helpTips[24] = new mcs.PopUpFactory(this, 'popup24', 250, 220, 234567, 24, 'popup'); this.helpTips[24].shown = false; this.helpTips[25] = new mcs.PopUpFactory(this, 'popup25', 250, 220, 234567, 25, 'popup'); this.helpTips[25].shown = false; this.helpTips[26] = new mcs.PopUpFactory(this, 'popup26', 385, 305, 234567, 26, 'popUpDoleDesno1_ok'); this.helpTips[26].shown = false; this.helpTips[27] = new mcs.PopUpFactory(this, 'popup27', -19, 256.6, 234567, 27, 'popUpDoleDesno1_ok'); this.helpTips[27].shown = false; this.helpTips[28] = new mcs.PopUpFactory(this, 'popup28', 57, 307, 234567, 28, 'popUpDoleDesno1_ok'); this.helpTips[28].shown = false; this.helpTips[29] = new mcs.PopUpFactory(this, 'popup29', 276.9, 223.4, 234567, 29, 'popUpGoreLevo1_ok'); this.helpTips[29].shown = false; this.helpTips[30] = new mcs.PopUpFactory(this, 'popup30', 397, 184.8, 234567, 30, 'popUpDoleDesno1_ok'); this.helpTips[30].shown = false; this.helpTips[31] = new mcs.PopUpFactory(this, 'popup31', 354.8, 138.8, 234567, 31, 'popUpDoleDesno1'); this.helpTips[31].shown = false; this.helpTips[32] = new mcs.PopUpFactory(this, 'popup32', 354.8, 138.8, 234567, 32, 'popUpDoleDesno1'); this.helpTips[32].shown = false; this.helpTips[33] = new mcs.PopUpFactory(this, 'popup33', 219.3, 183.4, 234567, 33, 'popUpDoleLevo1_ok'); this.helpTips[33].shown = false; this.helpTips[34] = new mcs.PopUpFactory(this, 'popup34', 355.8, 117.6, 234567, 34, 'popup'); this.helpTips[34].shown = false; this.helpTips[35] = new mcs.PopUpFactory(this, 'popup35', 250, 220, 234567, 35, 'popup'); this.helpTips[35].shown = false; this.helpTips[36] = new mcs.PopUpFactory(this, 'popup36', 250, 220, 234567, 36, 'popup'); this.helpTips[36].shown = false; this.helpTips[37] = new mcs.PopUpFactory(this, 'popup37', 250, 220, 234567, 37, 'popup'); this.helpTips[37].shown = false; this.helpTips[38] = new mcs.PopUpFactory(this, 'popup38', 354.8, 138.8, 234567, 38, 'popUpDoleDesno1_ok'); this.helpTips[38].shown = false; this.helpTips[39] = new mcs.PopUpFactory(this, 'popup39', 397, 184.8, 234567, 39, 'popUpDoleDesno1_ok'); this.helpTips[39].shown = false; this.helpTips[40] = new mcs.PopUpFactory(this, 'popup40', 393, 243.8, 234567, 40, 'popUpDoleDesno1_ok'); this.helpTips[40].shown = false; this.helpTips[41] = new mcs.PopUpFactory(this, 'popup41', 385, 305, 234567, 41, 'popUpDoleDesno1'); this.helpTips[41].shown = false; this.helpTipsDelivery = new Array(); this.helpTipsDelivery[1] = new mcs.PopUp(this, 'popupDelivery1', 452.6, 234.7, 234567, 1, 'popUpDoleDesno'); this.helpTipsDelivery[1].shown = false; this.helpTipsDelivery[2] = new mcs.PopUp(this, 'popupDelivery2', 335.1, 295, 234567, 2, 'popUpDoleDesno'); this.helpTipsDelivery[2].shown = false; this.helpTipsDelivery[3] = new mcs.PopUp(this, 'popupDelivery3', 161.9, 244.1, 234567, 3, 'popUpDoleLevo'); this.helpTipsDelivery[3].shown = false; this.helpTipsDelivery[4] = new mcs.PopUp(this, 'popupDelivery4', 110, 210, 234567, 4, 'popUpGoreDesno'); this.helpTipsDelivery[4].shown = false; this.helpTipsDelivery[5] = new mcs.PopUp(this, 'popupDelivery5', 79, 11, 234567, 5, 'popUpGoreDesno'); this.helpTipsDelivery[5].shown = false; this.helpTipsDelivery[6] = new mcs.PopUp(this, 'popupDelivery6', 4, 11, 234567, 6, 'popUpGoreDesno'); this.helpTipsDelivery[6].shown = false; this.helpTipsDelivery[7] = new mcs.PopUp(this, 'popupDelivery7', 459.3, 11, 234567, 7, 'popUpGoreLevo'); this.helpTipsDelivery[7].shown = false; this.helpTipsDelivery[8] = new mcs.PopUp(this, 'popupDelivery8', 241.8, 166.1, 234567, 8, 'popUpxxx'); this.helpTipsDelivery[8].shown = false; this.helpTipsDelivery[9] = new mcs.PopUp(this, 'popupDelivery9', 376.2, 315.6, 234567, 9, 'popUpDoleDesno'); this.helpTipsDelivery[9].shown = false; this.helpTipsDelivery[10] = new mcs.PopUp(this, 'popupDelivery10', 364.9, 254.1, 234567, 10, 'popUpDoleLevo'); this.helpTipsDelivery[10].shown = false; this.helpTipsDelivery[11] = new mcs.PopUp(this, 'popupDelivery11', 353.3, 100.6, 234567, 11, 'popUpxxx'); this.helpTipsDelivery[11].shown = false; this.helpTipsDelivery[12] = new mcs.PopUp(this, 'popupDelivery12', 150, 46, 234567, 12, 'popUpDoleLevo'); this.helpTipsDelivery[12].shown = false; this.helpTipsDelivery[13] = new mcs.PopUp(this, 'popupDelivery13', 301, 214, 234567, 32, 'popUpDoleDesno'); this.helpTipsDelivery[13].shown = false; this.helpTipsDelivery[14] = new mcs.PopUp(this, 'popupDelivery14', 109.4, 21.1, 234567, 14, 'popUpGoreDesno'); this.helpTipsDelivery[14].shown = false; this.helpTipsDelivery[15] = new mcs.PopUp(this, 'popupDelivery15', 323.7, 295, 234567, 15, 'popUpDoleDesno'); this.helpTipsDelivery[15].shown = false; this.helpTipsDelivery[32] = new mcs.PopUp(this, 'popupDelivery32', 301, 214, 234567, 32, 'popUpDoleDesno'); this.helpTipsDelivery[32].shown = false; this.helpTipsDelivery[16] = new mcs.PopUp(this, 'popupDelivery16', 213, 230.1, 234567, 30, 'popUpDoleLevo'); this.helpTipsDelivery[16].shown = false; this.helpTipsDelivery[17] = new mcs.PopUp(this, 'popupDelivery17', 155.4, 21.1, 234567, 17, 'popUpGoreDesno'); this.helpTipsDelivery[17].shown = false; this.helpTipsDelivery[18] = new mcs.PopUp(this, 'popupDelivery18', 376.2, 295, 234567, 18, 'popUpDoleDesno'); this.helpTipsDelivery[18].shown = false; this.helpTipsDelivery[30] = new mcs.PopUp(this, 'popupDelivery30', 213, 230.1, 234567, 30, 'popUpDoleLevo'); this.helpTipsDelivery[30].shown = false; this.helpTipsDelivery[19] = new mcs.PopUp(this, 'popupDelivery19', 213, 230.1, 234567, 31, 'popUpDoleLevo'); this.helpTipsDelivery[19].shown = false; this.helpTipsDelivery[20] = new mcs.PopUp(this, 'popupDelivery20', 39.4, 21.1, 234567, 20, 'popUpGoreDesno'); this.helpTipsDelivery[20].shown = false; this.helpTipsDelivery[21] = new mcs.PopUp(this, 'popupDelivery21', 376.2, 295, 234567, 21, 'popUpDoleDesno'); this.helpTipsDelivery[21].shown = false; this.helpTipsDelivery[31] = new mcs.PopUp(this, 'popupDelivery31', 213, 230.1, 234567, 31, 'popUpDoleLevo'); this.helpTipsDelivery[31].shown = false; this.helpTipsDelivery[22] = new mcs.PopUp(this, 'popupDelivery22', 310.1, 342.4, 234567, 22, 'popUpDoleDesno'); this.helpTipsDelivery[22].shown = false; this.helpTipsDelivery[23] = new mcs.PopUp(this, 'popupDelivery23', 364.9, 254.1, 234567, 23, 'popUpDoleLevo'); this.helpTipsDelivery[23].shown = false; this.helpTipsDelivery[24] = new mcs.PopUp(this, 'popupDelivery24', 310.1, 342.4, 234567, 24, 'popUpDoleDesno'); this.helpTipsDelivery[24].shown = false; this.helpTipsDelivery[25] = new mcs.PopUp(this, 'popupDelivery25', 310.1, 342.4, 234567, 25, 'popUpxxx'); this.helpTipsDelivery[25].shown = false; this.helpTipsDelivery[26] = new mcs.PopUp(this, 'popupDelivery26', 353.3, 100.6, 234567, 26, 'popUpxxx'); this.helpTipsDelivery[26].shown = false; this.helpTipsDelivery[27] = new mcs.PopUp(this, 'popupDelivery27', 170.1, 99, 234567, 27, 'popUpDoleLevoOk'); this.helpTipsDelivery[27].shown = false; this.helpTipsDelivery[28] = new mcs.PopUp(this, 'popupDelivery28', 353.3, 100.6, 234567, 28, 'popUpxxx'); this.helpTipsDelivery[28].shown = false; this.helpTipsDelivery[29] = new mcs.PopUp(this, 'popupDelivery29', 353.3, 100.6, 234567, 29, 'popUpDoleLevoOk'); this.helpTipsDelivery[29].shown = false; this.helpTipsDelivery[33] = new mcs.PopUp(this, 'popupDelivery33', 262.4, 191.1, 234567, 33, 'popUpxxx'); this.helpTipsDelivery[33].shown = false; this.helpTipsDelivery[34] = new mcs.PopUp(this, 'popupDelivery34', 262.4, 191.1, 234567, 34, 'popUpxxx'); this.helpTipsDelivery[34].shown = false; this.helpTipsDelivery[35] = new mcs.PopUp(this, 'popupDelivery35', 262.4, 191.1, 234567, 35, 'popUpxxx'); this.helpTipsDelivery[35].shown = false; this.helpTipsDelivery[36] = new mcs.PopUp(this, 'popupDelivery36', 262.4, 191.1, 234567, 36, 'popUpxxx'); this.helpTipsDelivery[36].shown = false; this.helpTipsDelivery[37] = new mcs.PopUp(this, 'popupDelivery37', 262.4, 191.1, 234567, 37, 'popUpxxx'); this.helpTipsDelivery[37].shown = false; this.helpTipsDelivery[38] = new mcs.PopUp(this, 'popupDelivery38', 262.4, 191.1, 234567, 38, 'popUpxxx'); this.helpTipsDelivery[38].shown = false; this.mousePointer = new MousePointer(this); this.startGame(); _global.attachExitMenu = this.attachExitMenu; }; v2.loadSoundSettings = function () { var v2 = SharedObject.getLocal('save_load_sound', '/'); if (v2.data.SaveGame != undefined) { this.fxVolume = v2.data.SaveGame.soundVol; this.musicVolume = v2.data.SaveGame.musicVol; } this.sndCtrl.setSoundFXVolume(this.fxVolume); this.sndCtrl.setMusicVolume(this.musicVolume); }; v2.initPopupHints = function () { this.helpOnOff = true; this.level_.factory.firstNeedPopup = false; this.helpTips[0].shown = false; this.helpTips[1].shown = false; this.helpTips[2].shown = false; this.helpTips[3].shown = false; this.helpTips[4].shown = false; this.helpTips[5].shown = false; this.helpTips[6].shown = false; this.helpTips[7].shown = false; this.helpTips[8].shown = false; this.helpTips[9].shown = false; this.helpTips[10].shown = false; this.helpTips[11].shown = false; this.helpTips[12].shown = false; this.helpTips[13].shown = false; this.helpTips[14].shown = false; this.helpTips[15].shown = false; this.helpTips[16].shown = false; this.helpTips[17].shown = false; this.helpTips[18].shown = false; this.helpTips[19].shown = false; this.helpTips[20].shown = false; this.helpTips[21].shown = false; this.helpTips[22].shown = false; this.helpTips[23].shown = false; this.helpTips[24].shown = false; this.helpTips[25].shown = false; this.helpTips[26].shown = false; this.helpTips[27].shown = false; this.helpTips[28].shown = false; this.helpTips[29].shown = false; this.helpTips[30].shown = false; this.helpTips[31].shown = false; this.helpTips[32].shown = false; this.helpTips[33].shown = false; this.helpTips[34].shown = false; this.helpTips[35].shown = false; this.helpTips[36].shown = false; this.helpTips[37].shown = false; this.helpTips[38].shown = false; this.helpTips[39].shown = false; this.helpTips[40].shown = false; this.helpTips[41].shown = false; this.helpTips[0].called = false; this.helpTips[1].called = false; this.helpTips[2].called = false; this.helpTips[3].called = false; this.helpTips[4].called = false; this.helpTips[5].called = false; this.helpTips[6].called = false; this.helpTips[7].called = false; this.helpTips[8].called = false; this.helpTips[9].called = false; this.helpTips[10].called = false; this.helpTips[11].called = false; this.helpTips[12].called = false; this.helpTips[13].called = false; this.helpTips[14].called = false; this.helpTips[15].called = false; this.helpTips[16].called = false; this.helpTips[17].called = false; this.helpTips[18].called = false; this.helpTips[19].called = false; this.helpTips[20].called = false; this.helpTips[21].called = false; this.helpTips[22].called = false; this.helpTips[23].called = false; this.helpTips[24].called = false; this.helpTips[25].called = false; this.helpTips[26].called = false; this.helpTips[27].called = false; this.helpTips[28].called = false; this.helpTips[29].called = false; this.helpTips[30].called = false; this.helpTips[31].called = false; this.helpTips[32].called = false; this.helpTips[33].called = false; this.helpTips[34].called = false; this.helpTips[35].called = false; this.helpTips[36].called = false; this.helpTips[37].called = false; this.helpTips[38].called = false; this.helpTips[39].called = false; this.helpTips[40].called = false; this.helpTips[41].called = false; this.setPriorityObject(); }; v2.setPriorityObject = function () { this.helpTips[0].PriorityObject.push(0); this.helpTips[1].PriorityObject.push(73); this.helpTips[2].PriorityObject.push(73); this.helpTips[3].PriorityObject.push(73); this.helpTips[4].PriorityObject.push(0); this.helpTips[5].PriorityObject.push(33); this.helpTips[6].PriorityObject.push(33); this.helpTips[6].PriorityObject.push(9); this.helpTips[6].PriorityObject.push(8); this.helpTips[7].PriorityObject.push(7); this.helpTips[7].PriorityObject.push(8); this.helpTips[8].PriorityObject.push(33); this.helpTips[9].PriorityObject.push(33); this.helpTips[10].PriorityObject.push(5); this.helpTips[11].PriorityObject.push(4); this.helpTips[11].PriorityObject.push(5); this.helpTips[12].PriorityObject.push(33); this.helpTips[13].PriorityObject.push(6); this.helpTips[14].PriorityObject.push(33); this.helpTips[15].PriorityObject.push(9); this.helpTips[16].PriorityObject.push(33); this.helpTips[17].PriorityObject.push(33); this.helpTips[18].PriorityObject.push(33); this.helpTips[19].PriorityObject.push(0); this.helpTips[20].PriorityObject.push(55); this.helpTips[21].PriorityObject.push(0); this.helpTips[22].PriorityObject.push(0); this.helpTips[23].PriorityObject.push(0); this.helpTips[24].PriorityObject.push(0); this.helpTips[25].PriorityObject.push(0); this.helpTips[26].PriorityObject.push(100); this.helpTips[27].PriorityObject.push(32); this.helpTips[28].PriorityObject.push(5); this.helpTips[29].PriorityObject.push(55); this.helpTips[30].PriorityObject.push(73); this.helpTips[31].PriorityObject.push(73); this.helpTips[32].PriorityObject.push(73); this.helpTips[38].PriorityObject.push(73); this.helpTips[39].PriorityObject.push(0); this.helpTips[40].PriorityObject.push(0); this.helpTips[41].PriorityObject.push(100); }; v2.startGame = function () { this.interface_.showMenu(); this.sndCtrl.stopAllFxSounds(); if (this.playMusicFlag) { this.sndCtrl.stopWithFadeOut(this.soundsId.factory_snd, 300); this.sndCtrl.stopWithFadeOut(this.soundsId.delivery_snd, 300); this.sndCtrl.stopWithFadeOut(this.soundsId.applause_snd, 300); this.sndCtrl.stopWithFadeOut(this.soundsId.applausewisle_snd, 300); this.sndCtrl.stopWithFadeOut(this.soundsId.slikanje_snd, 300); this.sndCtrl.playWithFadeIn(this.soundsId.titlescreen_snd, 300, 32000); } }; v2.startUpgreat = function () { this.interface_.showStartScreen(); }; v2.startLevel = function () { this.goalReached = false; this.expertGoalReached = false; if (this.level_ == undefined) { this.level_ = new com.Level(this); } this.level_.createFactory(); if (this.levelNum == 1) { this.initPopupHints(); } }; v2.newGame = function () { this.level_.timer.stop(); this.level_.clock.stop(); delete this.level_.timer; delete this.level_.clock; this.level_.keyboard.removeKeyboardListener(); delete this.level_.keyboard; this.level_.mouse.removeMouseListener(); delete this.level_.mouse; this.level_.factory.Track.stopMovingTrack(); delete this.level_.factory.Track.anim; delete this.level_.factory.Track; delete this.level_.factory.slots; this.level_.factory.holder.removeMovieClip(); this.level_.factory.holder = undefined; delete this.level_; delete this.interface_; delete utils.Delegate; delete this.Language; var v2 = 0; while (v2 < this.helpTips.length) { delete this.helpTips[v2]; ++v2; } utils.Delegate = this.delegate; this.init(); }; v2.endLevelForReal = function () { this.level_.timer.stop(); this.level_.clock.stop(); this.level_.keyboard.removeKeyboardListener(); delete this.level_.keyboard; this.level_.mouse.removeMouseListener(); delete this.level_.mouse; delete utils.Delegate; if (this.level_.delivery) { this.interface_.showLevelInfoScreen(); } delete this.level_.delivery; delete this.level_; }; v2.PopUpFalseSecondLevel = function () { this.helpTips[0].shown = true; this.helpTips[1].shown = true; this.helpTips[2].shown = true; this.helpTips[3].shown = true; this.helpTips[4].shown = true; this.helpTips[5].shown = true; this.helpTips[6].shown = true; this.helpTips[7].shown = true; this.helpTips[8].shown = true; this.helpTips[9].shown = true; this.helpTips[10].shown = true; this.helpTips[11].shown = true; this.helpTips[12].shown = true; this.helpTips[13].shown = true; this.helpTips[14].shown = true; this.helpTips[15].shown = true; this.helpTips[16].shown = true; this.helpTips[17].shown = true; this.helpTips[18].shown = true; this.helpTips[19].shown = true; this.helpTips[20].shown = true; this.helpTips[21].shown = true; this.helpTips[31].shown = true; this.helpTips[32].shown = true; this.helpTips[39].shown = true; this.helpTips[40].shown = true; }; v2.endLevel = function () { this.level_.timer.stop(); this.level_.clock.stop(); delete utils.Delegate; this.level_.factory.Track.stopMovingTrack(); delete this.level_.factory.slots; this.level_.factory.holder.removeMovieClip(); this.level_.factory.holder = undefined; delete this.level_.factory; this.nextIsFactory = false; this.interface_.showLevelInfoScreen(); }; v2.endGame = function () { this.level_.timer.stop(); this.level_.clock.stop(); delete utils.Delegate; }; v2.restartLevel = function () { this.level_.timer.stop(); this.level_.clock.stop(); delete utils.Delegate; this.level_.factory.Track.stopMovingTrack(); delete this.level_.factory.slots; this.level_.factory.holder.removeMovieClip(); this.level_.factory.holder = undefined; delete this.level_; utils.Delegate = this.delegate; this.level_ = new com.Level(this); this.level_.createFactory(); }; v2.gameOver = function () { this.level_.timer.stop(); delete utils.Delegate; }; v2.attachExitMenu = function () { _global.game.quitGame_mc = _root.attachMovie('quitPopUP', 'quitPopUP', 11112, {'_x': 400, '_y': 300}); _global.game.quitGame_mc.noBtn.onPress = function () { if (!_global.focusControl._visible) { _global.game.quitGame_mc.removeMovieClip(); this._parent.noQuit.gotoAndStop(3); } }; _global.game.quitGame_mc.noBtn.onRollOver = function () { if (!_global.focusControl._visible) { this._parent.noQuit.gotoAndStop(2); } }; _global.game.quitGame_mc.noBtn.onRollOut = function () { if (!_global.focusControl._visible) { this._parent.noQuit.gotoAndStop(1); } }; _global.game.quitGame_mc.noBtn.onReleaseOutside = function () { if (!_global.focusControl._visible) { this._parent.noQuit.gotoAndStop(1); } }; _global.game.quitGame_mc.yesBtn.onPress = function () { if (!_global.focusControl._visible) { _global.externalModel.requestKill(); this._parent.yesQuit.gotoAndStop(3); } }; _global.game.quitGame_mc.yesBtn.onRollOver = function () { if (!_global.focusControl._visible) { this._parent.yesQuit.gotoAndStop(2); } }; _global.game.quitGame_mc.yesBtn.onRollOut = function () { if (!_global.focusControl._visible) { this._parent.yesQuit.gotoAndStop(1); } }; _global.game.quitGame_mc.yesBtn.onReleaseOutside = function () { if (!_global.focusControl._visible) { this._parent.yesQuit.gotoAndStop(1); } }; }; v2.attachSounds = function () { var v2 = 0; while (v2 < this.sounds.length) { var v3 = this.soundClip.createEmptyMovieClip(utils.StringUtils.getUniqueName(), this.soundClip.getNextHighestDepth()); var v4 = new utils.SoundImpl(v3); v4.attachSoundImpl(this.sounds[v2][0], this.sounds[v2][1], this.sounds[v2][2]); this.soundsId[this.sounds[v2][0]] = this.sndCtrl.addSound(this.sounds[v2][0], v3, this.sounds[v2][1], this.sounds[v2][2]); ++v2; } }; ASSetPropFlags(_global.Game.prototype, null, 1); } #endinitclip } movieClip 9259 __Packages.com.Keyboard1 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Keyboard1) { var v1 = function (_game) { this.game = _game; trace('$$$ this.game' + this.game); trace('$$$ _game' + _game); this.KeyboardListener = new Object(); this.KeyboardListener.keyboard = this; this.KeyboardListener.onKeyDown = this.Press; this.KeyboardListener.onKeyUp = this.Release; Key.addListener(this.KeyboardListener); }; com.Keyboard1 = v1; var v2 = v1.prototype; v2.Press = function () { var v2 = this; var v3 = v2.keyboard; if (Key.getCode() == 13) { trace('pritisna enter ' + v2.keyboard.game.newUserPage_MC); trace('This.keyboard.game ' + v2.keyboard.game); if (v2.keyboard.game.newUserPage_MC) { v2.keyboard.game.newUserPage_MC.ok.gotoAndStop(1); v2.keyboard.game.userName = v2.keyboard.game.loginPage_MC.name.userName.text; if (v2.keyboard.game.interface_.saveLoadObject.addName(v2.keyboard.game.newUserPage_MC.userName.text) == 'ok') { v2.keyboard.game.userName = v2.keyboard.game.newUserPage_MC.userName.text; v2.keyboard.game.interface_.saveLoadObject.setLastUser(v2.keyboard.game.userName); v2.keyboard.game.frstTime = true; v2.keyboard.game.loginPage_MC.name.userName.text = v2.keyboard.game.newUserPage_MC.userName.text + ','; v2.keyboard.game.loginPage_MC.welcome.welcome.userName.text = v2.keyboard.game.newUserPage_MC.userName.text; if (!v2.keyboard.game.loginPage_MC) { trace('nema optozadi niso pa ke zakacam'); v2.keyboard.game.interface_.showLastUser(); v2.keyboard.game.loginPage_MC.name.userName.text = v2.keyboard.game.newUserPage_MC.userName.text + ','; v2.keyboard.game.loginPage_MC.welcome.welcome.userName.text = v2.keyboard.game.newUserPage_MC.userName.text; } v2.keyboard.game.newUserPage_MC.removeMovieClip(); } } } if (Key.getCode() == 27) { trace('pritisna enter ' + v2.keyboard.game.newUserPage_MC); trace('This.keyboard.game ' + v2.keyboard.game); if (v2.keyboard.game.newUserPage_MC && v2.keyboard.game.canEsc == true) { v2.keyboard.game.newUserPage_MC.removeMovieClip(); } } }; v2.Release = function () { var v2 = this; var v3 = v2.keyboard; }; v2.removeKeyboardListener = function () { Key.removeListener(this.KeyboardListener); }; ASSetPropFlags(com.Keyboard1.prototype, null, 1); } #endinitclip } movieClip 9260 __Packages.utils.SoundController { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.SoundController) { var v1 = function (vol) { this.volume = vol; this.sounds = new Array(); }; utils.SoundController = v1; var v2 = v1.prototype; v2.addSound = function (linkId, mc, initVol, loop) { if (arguments.length >= 2) { if (linkId != undefined && mc instanceof MovieClip) { var v4 = new utils.SoundImpl(mc); var v3 = v4.attachSoundImpl(linkId, initVol, loop); if (v3 != undefined) { this.sounds[v3] = v4; this.setSoundVolume(v3, this.volume); return v3; } else {} } else {} return undefined; } return undefined; }; v2.removeSound = function (soundID) { delete this.sounds[soundID]; }; v2.playSound = function (soundID, loop) { if (arguments.length == 1) { this.sounds[soundID].startImpl(); } else { if (arguments.length == 2) { this.sounds[soundID].startImpl(0, loop); } } }; v2.stopSound = function (soundID) { this.sounds[soundID].stopImpl(); }; v2.pauseSound = function (soundID) { this.sounds[soundID].pauseImpl(); }; v2.resumeSound = function (soundID) { this.sounds[soundID].resumeImpl(); }; v2.playWithFadeIn = function (soundID, duration, loop) { if (arguments.length == 3) { this.sounds[soundID].fadeIn(duration, loop); } else { this.sounds[soundID].fadeIn(duration); } }; v2.stopWithFadeOut = function (soundID, duration) { this.sounds[soundID].fadeOut(duration); }; v2.setSoundVolume = function (soundID, vol) { this.sounds[soundID].setVolumeImpl(vol); }; v2.getSoundVolume = function (soundID) { return this.sounds[soundID].getVolumeImpl(); }; v2.playAllSounds = function () { for (var v2 in this.sounds) { if (!this.sounds[v2].isLoop) { this.playSound(this.sounds[v2].soundID); } else { this.playSound(this.sounds[v2].soundID, 32000); } } }; v2.stopAllSounds = function () { for (var v2 in this.sounds) { this.stopSound(this.sounds[v2].soundID); } }; v2.stopAllFxSounds = function () { for (var v2 in this.sounds) { if (this.sounds[v2].isLoop == false && this.sounds[v2].playing == true) { this.stopSound(this.sounds[v2].soundID); } } }; v2.pauseAllSounds = function () { for (var v2 in this.sounds) { if (this.sounds[v2].isLoop == false && this.sounds[v2].playing == true) { this.pauseSound(this.sounds[v2].soundID); } } }; v2.resumeAllSounds = function () { for (var v2 in this.sounds) { if (this.sounds[v2].paused == true) { this.resumeSound(this.sounds[v2].soundID); } } }; v2.setOverallVolume = function (vol) { this.volume = vol; for (var v3 in this.sounds) { this.setSoundVolume(this.sounds[v3].soundID, vol); } }; v2.getOverallVolume = function () { return this.volume; }; ASSetPropFlags(utils.SoundController.prototype, null, 1); } #endinitclip } movieClip 9261 __Packages.utils.SoundImpl { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.SoundImpl) { var v1 = function (mc) { if (mc instanceof MovieClip) { this.sound = new Sound(mc); } else { this.sound = new Sound(); } this.isLoop = false; this.playing = false; this.paused = false; this.loopingTime = 1; }; utils.SoundImpl = v1; var v2 = v1.prototype; v2.attachSoundImpl = function (linkId, initVol, loop) { if (arguments.length > 0) { this.soundID = utils.StringUtils.getUniqueName(); this.linkID = linkId; this.initialVolume = 100; this.sound.attachSound(linkId); if (initVol != undefined) { this.initialVolume = initVol; } this.sound.setVolume(this.initialVolume); if (loop != undefined) { this.isLoop = loop; } this.volume = this.initialVolume; this.duration = this.sound.duration; this.position = this.sound.position; return this.soundID; } return undefined; }; v2.setVolumeImpl = function (vol) { this.volume = this.initialVolume * (vol / 100); this.fadeInVolume = this.volume; this.sound.setVolume(this.volume); }; v2.getVolumeImpl = function () { return this.sound.getVolume(); }; v2.startImpl = function (secondoffset, loop) { if (!this.playing) { switch (arguments.length) { case 0: this.sound.start(); this.playing = true; this.loopingTime = 1; break; case 1: this.sound.start(secondoffset); this.playing = true; this.loopingTime = 1; break; case 2: if (loop > 0) { this.sound.start(secondoffset, loop); this.playing = true; } this.loopingTime = loop; break; default: this.sound.start(); this.playing = true; this.loopingTime = 1; } var v4 = this; v4.sound.holder = this; this.sound.onSoundComplete = function () { var v2 = this; v2.holder.playing = false; }; } }; v2.stopImpl = function () { this.sound.stop(this.linkID); this.playing = false; this.paused = false; this.position = 0; }; v2.pauseImpl = function () { this.stopImpl(); this.position = this.sound.position; this.paused = true; }; v2.resumeImpl = function () { if (this.paused) { this.sound.start(this.position / 1000); var v2 = this; v2.sound.holder = this; this.sound.onSoundComplete = function () { var v2 = this; if (v2.holder.loopingTime > 1) { v2.holder.startImpl(0, v2.holder.loopingTime); } else { v2.holder.playing = false; } }; this.paused = false; } }; v2.fadeIn = function (dur, loop) { var v3 = this.fadeInVolume; this.volume = 0; this.sound.setVolume(this.volume); if (arguments.length == 2) { this.startImpl(0, loop); } else { this.startImpl(0); } if (v3 == 0) { v3 = 1; } clearInterval(this.intID); this.intID = setInterval(this, 'increseVolume', dur / v3, v3); }; v2.increseVolume = function (vol) { if (this.volume < vol) { ++this.volume; this.sound.setVolume(this.volume); } else { clearInterval(this.intID); } }; v2.fadeOut = function (dur) { var v2 = this.volume; if (v2 > 0) { clearInterval(this.intID); this.intID = setInterval(this, 'decreseVolume', dur / v2); } }; v2.decreseVolume = function () { if (this.getVolumeImpl() > 0) { --this.volume; this.sound.setVolume(this.volume); } else { this.stopImpl(); this.volume = this.fadeInVolume; this.sound.setVolume(this.volume); clearInterval(this.intID); } }; ASSetPropFlags(utils.SoundImpl.prototype, null, 1); } #endinitclip } movieClip 9262 __Packages.ctrl.Sounds { #initclip if (!_global.ctrl) { _global.ctrl = new Object(); } if (!_global.ctrl.Sounds) { var v1 = function (vol) { super(vol); this.musicVolume = vol; this.fxVolume = vol; }; ctrl.Sounds = v1; ctrl.Sounds extends utils.SoundController; var v2 = v1.prototype; v2.setSoundFXVolume = function (vol) { for (var v3 in this.sounds) { if (this.sounds[v3].isLoop == false) { this.fxVolume = vol; this.sounds[v3].setVolumeImpl(this.fxVolume); } } }; v2.getSoundFXVolume = function () { return int(this.fxVolume); }; v2.setMusicVolume = function (vol) { for (var v3 in this.sounds) { if (this.sounds[v3].isLoop) { this.musicVolume = vol; this.sounds[v3].setVolumeImpl(this.musicVolume); } } }; v2.getMusicVolume = function () { return int(this.musicVolume); }; v2.fxOff = function () { if (this.fxVolume > 0) { this.lastFxVolume = this.fxVolume; this.setSoundFXVolume(0); } }; v2.fxOn = function () { if (this.fxVolume == 0) { this.setSoundFXVolume(this.lastFxVolume); } }; v2.musicOff = function () { if (this.musicVolume > 0) { this.lastMusicVolume = this.musicVolume; this.setMusicVolume(0); } }; v2.musicOn = function () { if (this.musicVolume == 0) { this.setMusicVolume(this.lastMusicVolume); } }; ASSetPropFlags(ctrl.Sounds.prototype, null, 1); } #endinitclip } movieClip 9263 __Packages.MousePointer { #initclip if (!_global.MousePointer) { var v1 = function (_game) { this.game = _game; this.clip = _root.attachMovie('mousePointer', 'mousePointer', 794321, {'_x': _xmouse, '_y': _ymouse}); this.intID = setInterval(this, 'followMouse', 20); Mouse.hide(); }; _global.MousePointer = v1; var v2 = v1.prototype; v2.followMouse = function () { this.clip._x = _xmouse; this.clip._y = _ymouse; }; ASSetPropFlags(_global.MousePointer.prototype, null, 1); } #endinitclip } movieClip 9264 __Packages.com.SaveLoadSound { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.SaveLoadSound) { var v1 = function (game_) { this.game = game_; }; com.SaveLoadSound = v1; var v2 = v1.prototype; v2.saveGame = function () { var v4; var v3; var v2 = {'soundVol': this.game.fxVolume, 'musicVol': this.game.musicVolume}; this.so = SharedObject.getLocal('save_load_sound_YSDEMO', '/'); this.so.data.SaveGame = v2; this.so.flush(); }; v2.loadGame = function () { this.so = SharedObject.getLocal('save_load_sound_YSDEMO', '/'); this.game.fxVolume = this.so.data.SaveGame.soundVol; this.game.musicVolume = this.so.data.SaveGame.musicVol; var v2; }; ASSetPropFlags(com.SaveLoadSound.prototype, null, 1); } #endinitclip } movieClip 9265 __Packages.config.LanguageSettings { #initclip if (!_global.config) { _global.config = new Object(); } if (!_global.config.LanguageSettings) { var v1 = function () { this.language = new config.Language(); }; config.LanguageSettings = v1; var v2 = v1.prototype; v2.getLangText = function (objindex) { return this.language.getLangText(objindex); }; ASSetPropFlags(config.LanguageSettings.prototype, null, 1); } #endinitclip } movieClip 9266 __Packages.config.Language { #initclip if (!_global.config) { _global.config = new Object(); } if (!_global.config.Language) { var v1 = function () { this.mapping = new Array(); this.init(); }; config.Language = v1; var v2 = v1.prototype; v2.init = function () { this.mapping.backbtn = 'BACK'; this.mapping.popup1 = 'povleci ja \n rackata'; this.mapping.popup2 = 'zemi go bebeto i spudhti go nezno'; this.mapping.popup3 = 'daj mu na bebeto igracka'; this.mapping.popup4 = 'legni go da spie'; this.mapping.popup5 = 'izbanjaj go bebeto'; this.mapping.popup6 = 'daj mu na bebeto da jade'; this.mapping.popup7 = 'bebeto e povrateno iscisti go'; this.mapping.popupDelivery1 = 'Now it’s time to finally deliver all the babies you produced. First, click on this stork.'; this.mapping.popupDelivery2 = 'Good! Use this trick whenever you make a mistake. Now select the blue sack.'; this.mapping.popupDelivery3 = 'Ok now the stork is telling you to stop adding sacks and he waits for your final order so select the house you want this sack delivered to.'; this.mapping.popupDelivery4 = 'ke te pukaat'; this.mapping.popupDelivery5 = 'stavi mu KECE'; this.mapping.popupDelivery6 = 'stavi mu kapa za sneg'; this.mapping.popupDelivery7 = 'stavi mu gromobran'; this.mapping.popupDelivery8 = 'The stork is now ready to take off. Parents can become impatient but as long as you’re fast and you deliver according to their wish you’re on your way. Now click OK to continue.'; this.mapping.popupDelivery9 = 'This stork tells you that it can carry maximum one baby. Click on the red single baby sack. '; this.mapping.popupDelivery10 = 'It looks like we have made a mistake. The parents ask for a boy. First click on the red sack in the stork’s beak to unload it.'; this.mapping.popupDelivery11 = 'You have just made one very happy family. Delivering a wrong sack to the house will give you fewer points. Continue your mission.'; this.mapping.popupDelivery12 = 'Click this friendly cloud to blow away the bad weather so you can continue delivering sacks unhindered.'; this.mapping.popupDelivery13 = 'Rain clouds have started to block the houses. First, select the stork that will deliver the babies to the blocked house. '; this.mapping.popupDelivery14 = 'Now click on this helper to protect the stork from getting wet. '; this.mapping.popupDelivery15 = 'Now select the sack ...'; this.mapping.popupDelivery32 = '... and send it to the house.'; this.mapping.popupDelivery16 = 'Storms can make the stork look like he’s been in the sun for too long. Use this helper to neutralize the storm.'; this.mapping.popupDelivery17 = 'Now click on this helper to protect the stork from getting wet. '; this.mapping.popupDelivery18 = 'Now select the sack ...'; this.mapping.popupDelivery30 = '... send it to the house.'; this.mapping.popupDelivery19 = 'The snow keeps falling and… well, let’s say the storks are not really into the whole white Christmas thing. Use this helper or…. else.'; this.mapping.popupDelivery20 = 'Now click on this helper to protect the stork from getting wet. '; this.mapping.popupDelivery21 = 'Now select the sack ...'; this.mapping.popupDelivery31 = '.. send it to the house.'; this.mapping.popupDelivery22 = 'This stork can carry more than one baby. Select him '; this.mapping.popupDelivery23 = 'Use his maximum potential to receive multiplier bonus for each delivered sack. Choose houses in the same sequence you have chosen the sacks.'; this.mapping.popupDelivery24 = 'You have sacks with more than one baby in them. Use your stronger storks to deliver these sacks.'; this.mapping.popupDelivery25 = 'Here come the parents that are just happy with anything you give them. Remember, the choice you made in the factory really matters, so keep that in mind. Click OK to continue.'; this.mapping.popupDelivery26 = 'Some people are really annoyed from all the storks flying around so anytime you see a green target sign on one of the storks, you need to order your stork to get out of the way. Now click OK to continue'; this.mapping.popupDelivery27 = 'The people in these medium houses reward you some extra points but they expect you to be more agile when it comes to their house.'; this.mapping.popupDelivery28 = 'Talking about anxiety. A big house means…. Be quick.'; this.mapping.popupDelivery29 = 'The hospital should be on top of you emergency list. The reward will be more than enough.'; }; v2.getLangText = function (objindex) { trace('getLangText' + objindex); return this.mapping[objindex]; }; ASSetPropFlags(config.Language.prototype, null, 1); } #endinitclip } movieClip 9267 __Packages.com.Interface { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Interface) { var v1 = function (Game) { this.game = Game; this.saveLoadObject = new com.SaveLoad(this.game); this.init(); }; com.Interface = v1; var v2 = v1.prototype; v2.init = function () { this.UserScrFirstTime = false; this.f = new scr.FadeIn(); this.r = new scr.FadeOut(); this.hasAttachTransition = false; this.hasRemoveTransition = false; this.addRemoveTransition(this.r); this.tempName = ' '; }; v2.showStartScreen = function () { this.startScreen = this.game.attachMovie('startScreen_mc', 'startScreen', 10); this.addEvents(); }; v2.showWin = function () { this.WinScreen = new scr.WinScreen(this.game); }; v2.showMenu = function () { this.playIntro(); this.addEvents(); }; v2.playIntro = function () { if (this.saveLoadObject.chekForUser()) { this.showLastUser(); this.game.userName = this.saveLoadObject.getLastUser(); this.game.loginPage_MC.welcome.welcome.userName.text = this.saveLoadObject.getLastUser(); } else { this.UserScrFirstTime = true; this.showNewUserScreen(); } }; v2.showNewUserScreen = function () { if (this.UserScrFirstTime == true) { this.game.canEsc = false; this.game.attachMovie('newUserPage_MC', 'newUserPage_MC', 12, {'_x': 83.59999999999999, '_y': 93.2}); this.clip = this.game.attachMovie('loginPage_MC', 'loginPage_MC', 2, {'_x': 400, '_y': 300}); this.target = this.game; this.depth = 2; this.clip.screenHolder = this; this.addEvents(); } else { this.game.canEsc = true; this.game.attachMovie('newUserPage_MC', 'newUserPage_MC', 12, {'_x': 83.59999999999999, '_y': 93.2}); } }; v2.setNames = function () { this.saveLoadObject.ShowUsers(this.game); }; v2.showUserSelectioncreen = function () { if (!this.game.options_screen_mc) { var v2 = new trans.ClipTransitionUsers('CloudUD_in', 'chooseProfileScreen'); v2.setHolderPosition(this.game, 300, 400, 100001); v2.Screen = this; v2.startTransition(); v2.toPointTransition(400, 300, 6); this.addEvents(); } }; v2.showUserSelectioncreen1 = function () { this.saveLoadObject.ShowUsers(this.game); }; v2.showLastUser = function () { this.clip = this.game.attachMovie('loginPage_MC', 'loginPage_MC', 2, {'_x': 400, '_y': 300}); this.clip.screenHolder = this; this.target = this.game; this.depth = 2; this.saveLoadObject.ShowLastUsers(this.game); this.addEvents(); }; v2.showLevelInfoScreen = function () { this.levelInfoScreen = new scr.LevelInfoScreen(this.game); this.levelInfoScreen.attachLevelInfoScreen(); }; v2.showUpgradeScreen = function () { this.upgradeScreen = new scr.UpgradeScreen(this.game); }; v2.showDeliveriUpgradeScreen = function () { this.DeliveriUpgradeScreen = new scr.DeliveriUpgradeScreen(this.game); this.startScreen.removeMovieClip(); }; v2.showDeliveryScreen = function () {}; v2.hideDeliveryScreen = function () {}; v2.showMapPrepare = function () { this.clip.play_game.gotoAndPlay('next'); this.clip.optionss.gotoAndPlay('next'); this.clip.highscore.gotoAndPlay('next'); this.clip.more_games.gotoAndPlay('next'); this.clip.instructions.gotoAndPlay('next'); this.clip.new_player.gotoAndPlay('next'); this.clip.full_version.gotoAndPlay('next'); this.clip.exit.gotoAndPlay('next'); this.clip.baby_blimp.gotoAndPlay('next'); }; v2.showMap = function () { delete this.game.level_.delivery; this.removeInfoScreen(); }; v2.showGame = function () { this.game.userNam = this.game.newUserPage_MC.userName.text; this.loadPopUpsParam(); this.game.startLevel(); this.deleteScreen(); }; v2.deleteScreen = function () { this.game.newUserPage_MC.removeMovieClip(); var v2; v2 = 0; while (v2 < this.saveLoadObject.NumOfUser()) { this.game['Save_button' + v2].removeMovieClip(); ++v2; } return true; }; v2.showOptions = function () { this.OptionScreen = new scr.OptionScreen(this.game); this.OptionScreen.attachOptionScreen(); }; v2.loadPopUpsParam = function () { var v3 = SharedObject.getLocal('save_load_YSDEMO'); var v2; var v4; v4 = -1; v2 = 0; while (v2 < v3.data.SaveGame.length) { if (v3.data.SaveGame[v2].name_ == this.game.userName) { v4 = v2; } ++v2; } v2 = 0; while (v2 < this.game.helpTips.length) { this.game.helpTips[v2].shown = v3.data.SaveGame[v4].helpTipsShown[v2]; ++v2; } }; v2.addTranzition = function () { var v2 = new trans.ClipTransitionUsers('CloudDU_out', 'chooseProfileScreen'); v2.Screen = this; v2.setHolderPosition(this.game, 400, 300, 10001); v2.startTransition(false); utils.Delegate.callDelayed(v2, v2.toPointTransition, 160, 400, 300, 4); }; v2.addEvents = function () { this.startScreen.upgrade.holder = this; this.startScreen.upgrade.onPress = function () { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this.holder.showDeliveriUpgradeScreen(); }; this.startScreen.startBtn.holder = this; this.startScreen.startBtn.onPress = function () { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.startLevel(); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.startScreen.removeMovieClip(); }; this.game.newUserPage_MC.ok.onRelease = function () { this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.gotoAndStop(3); }; this.game.newUserPage_MC.ok.onRollOver = function () { this.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); }; this.game.newUserPage_MC.ok.onRollOut = function () { this.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.newUserPage_MC.ok.onReleaseOutside = function () { this.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.newUserPage_MC.ok.holder = this; this.game.newUserPage_MC.ok.onPress = function () { this.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.userName = this.holder.game.loginPage_MC.welcome.welcome.userName.text; if (this.holder.saveLoadObject.addName(this.holder.game.newUserPage_MC.userName.text) == 'ok') { this.holder.game.userName = this.holder.game.newUserPage_MC.userName.text; this.holder.saveLoadObject.setLastUser(this.holder.game.userName); this.holder.game.frstTime = true; this.holder.game.loginPage_MC.welcome.welcome.userName.text = this.holder.game.newUserPage_MC.userName.text; if (!this.holder.game.loginPage_MC) { this.holder.game.interface_.showLastUser(); this.holder.game.loginPage_MC.welcome.welcome.userName.text = this.holder.game.newUserPage_MC.userName.text; } this.holder.game.newUserPage_MC.removeMovieClip(); } }; var i; i = 0; while (i < this.saveLoadObject.NumOfUser()) { this.game.chooseProfileScreen['Save_button' + i].onPress = function () { this.gotoAndStop(3); }; ++i; } i = 0; while (i < this.saveLoadObject.NumOfUser()) { this.game.chooseProfileScreen['Save_button' + i].onRollOver = function () { this.gotoAndStop(2); }; ++i; } i = 0; while (i < this.saveLoadObject.NumOfUser()) { this.game.chooseProfileScreen['Save_button' + i].onRollOut = function () { this.gotoAndStop(1); }; ++i; } i = 0; while (i < this.saveLoadObject.NumOfUser()) { this.game.chooseProfileScreen['Save_button' + i].holder = this; this.game.chooseProfileScreen['Save_button' + i].onRelease = function () { this.gotoAndStop(1); this.holder.tempName = this.dinamikText.text; this.holder.game.chooseProfileScreen.Save_button0.dinamikText.textColor = 9306860; this.holder.game.chooseProfileScreen.Save_button1.dinamikText.textColor = 9306860; this.holder.game.chooseProfileScreen.Save_button2.dinamikText.textColor = 9306860; this.holder.game.chooseProfileScreen.Save_button3.dinamikText.textColor = 9306860; this.dinamikText.textColor = 16777215; }; ++i; } this.game.newUserPage_MC.txtOver.holder = this; this.game.newUserPage_MC.txtOver.onRollOver = function () { this.holder.game.mousePointer.clip._visible = false; }; this.game.newUserPage_MC.txtOver.onRollOut = function () { this.holder.game.mousePointer.clip._visible = true; }; this.game.newUserPage_MC.txtOver.onReleaseOutside = function () { this.holder.game.mousePointer.clip._visible = true; }; this.game.loginPage_MC.new_player.hitClip.onPress = function () { if (!this.holder.game.newUserPage_MC) { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this._parent.newPlayer.gotoAndStop(3); } }; this.game.loginPage_MC.new_player.hitClip.onRollOver = function () { if (!this.holder.game.newUserPage_MC) { this._parent.newPlayer.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); } }; this.game.loginPage_MC.new_player.hitClip.onRollOut = function () { this._parent.newPlayer.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.new_player.hitClip.onReleaseOutside = function () { this._parent.newPlayer.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.new_player.hitClip.holder = this; this.game.loginPage_MC.new_player.hitClip.onRelease = function () { if (!this.holder.game.newUserPage_MC) { this._parent.newPlayer.gotoAndStop(1); if (this.holder.game.newUserPage_MC == undefined) { this.holder.showUserSelectioncreen(); } } }; this.game.loginPage_MC.full_version.hitClip.onPress = function () { if (!this.holder.game.newUserPage_MC) { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this._parent.fullversion.gotoAndStop(3); getURL(_global.buygamelink, '_blank'); } }; this.game.loginPage_MC.full_version.hitClip.onRollOver = function () { if (!this.holder.game.newUserPage_MC) { this._parent.fullversion.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); } }; this.game.loginPage_MC.full_version.hitClip.onRollOut = function () { this._parent.fullversion.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.full_version.hitClip.onRelease = function () { if (!this.holder.game.newUserPage_MC) { this._parent.fullversion.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); } }; this.game.loginPage_MC.full_version.hitClip.holder = this; this.game.loginPage_MC.full_version.hitClip.onReleaseOutside = function () { this._parent.fullversion.gotoAndStop(1); }; this.game.loginPage_MC.instructions.hitClip.onPress = function () { if (!this.holder.game.newUserPage_MC) { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this._parent.instructions.gotoAndStop(3); } }; this.game.loginPage_MC.instructions.hitClip.onRollOver = function () { if (!this.holder.game.newUserPage_MC) { this._parent.instructions.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); } }; this.game.loginPage_MC.instructions.hitClip.onRollOut = function () { this._parent.instructions.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.instructions.hitClip.onReleaseOutside = function () { this._parent.instructions.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.instructions.hitClip.holder = this; this.game.loginPage_MC.instructions.hitClip.onRelease = function () { if (!this.holder.game.newUserPage_MC) { this._parent.instructions.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.buttonClick = 'goalScreen'; this.holder.removeInfoScreen(); } }; this.game.loginPage_MC.highscore.hitClip.onPress = function () { if (!this.holder.game.newUserPage_MC) { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this._parent.highscore.gotoAndStop(3); _root.showHighscore('view'); } }; this.game.loginPage_MC.highscore.hitClip.onRollOver = function () { if (!this.holder.game.newUserPage_MC) { this._parent.highscore.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); } }; this.game.loginPage_MC.highscore.hitClip.onRollOut = function () { this._parent.highscore.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.highscore.hitClip.onReleaseOutside = function () { this._parent.highscore.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.highscore.hitClip.holder = this; this.game.loginPage_MC.highscore.hitClip.onRelease = function () { if (!this.holder.game.newUserPage_MC) { this._parent.highscore.gotoAndStop(1); } }; this.game.loginPage_MC.more_games.hitClip.onPress = function () { if (!this.holder.game.newUserPage_MC) { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this._parent.moregames.gotoAndStop(3); getURL(_global.moregamelink, '_blank'); } }; this.game.loginPage_MC.more_games.hitClip.onRollOver = function () { if (!this.holder.game.newUserPage_MC) { this._parent.moregames.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); } }; this.game.loginPage_MC.more_games.hitClip.onRollOut = function () { this._parent.moregames.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.more_games.hitClip.onReleaseOutside = function () { this._parent.moregames.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.more_games.hitClip.holder = this; this.game.loginPage_MC.more_games.hitClip.onRelease = function () { this._parent.moregames.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.chooseProfileScreen.chooseBtn.btn.onPress = function () { this._parent.choose.gotoAndStop(1); this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); }; this.game.chooseProfileScreen.chooseBtn.btn.onRollOver = function () { this._parent.choose.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); }; this.game.chooseProfileScreen.chooseBtn.btn.onRollOut = function () { this._parent.choose.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.chooseProfileScreen.chooseBtn.btn.onReleaseOutside = function () { this._parent.choose.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.chooseProfileScreen.chooseBtn.btn.holder = this; this.game.chooseProfileScreen.chooseBtn.btn.onRelease = function () { this._parent.choose.gotoAndStop(1); if ((this.holder.game.loginPage_MC.welcome.welcome.userName.text == ' ' || this.holder.game.loginPage_MC.welcome.welcome.userName.text == '' || this.holder.game.loginPage_MC.welcome.welcome.userName.text == '---') && (this.holder.tempName == ' ' || this.holder.tempName == '' || this.holder.tempName == '---')) { } else { if (this.holder.tempName != ' ') { this.holder.game.loginPage_MC.welcome.welcome.userName.text = this.holder.tempName; this.holder.game.userName = this.holder.tempName; this.holder.tempName = ' '; } this.holder.userName = this.holder.game.loginPage_MC.welcome.welcome.userName.text; this.holder.game.chooseProfileScreen['Save_button' + i].removeMovieClip(); if (this.holder.game.loginPage_MC.welcome.welcome.userName.text != '' && this.holder.game.loginPage_MC.welcome.welcome.userName.text != ' ') { this.holder.saveLoadObject.setLastUser(this.holder.game.userName); if (this.holder.saveLoadObject.getLevelId(this.holder.game.userName) > 1) { this.holder.addTranzition(); this.holder.game.chooseProfileScreen.removeMovieClip(); } else { this.holder.addTranzition(); this.holder.game.chooseProfileScreen.removeMovieClip(); } } } }; var v4 = SharedObject.getLocal('save_load_YSDEMO', '/'); trace('so.data.SaveGame.length ' + v4.data.SaveGame.length); if (v4.data.SaveGame.length >= 4) { this.game.chooseProfileScreen.createBtn.create.gotoAndStop(4); } this.game.chooseProfileScreen.createBtn.btn.onPress = function () { var v2 = SharedObject.getLocal('save_load_YSDEMO', '/'); trace('so.data.SaveGame.length ' + v2.data.SaveGame.length); if (v2.data.SaveGame.length < 4) { this._parent.create.gotoAndStop(1); this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); } }; this.game.chooseProfileScreen.createBtn.btn.onRollOver = function () { var v2 = SharedObject.getLocal('save_load_YSDEMO', '/'); trace('so.data.SaveGame.length ' + v2.data.SaveGame.length); if (v2.data.SaveGame.length < 4) { this._parent.create.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); } }; this.game.chooseProfileScreen.createBtn.btn.onRollOut = function () { var v2 = SharedObject.getLocal('save_load_YSDEMO', '/'); trace('so.data.SaveGame.length ' + v2.data.SaveGame.length); if (v2.data.SaveGame.length < 4) { this._parent.create.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); } }; this.game.chooseProfileScreen.createBtn.btn.onReleaseOutside = function () { var v2 = SharedObject.getLocal('save_load_YSDEMO', '/'); trace('so.data.SaveGame.length ' + v2.data.SaveGame.length); if (v2.data.SaveGame.length < 4) { this._parent.create.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); } }; this.game.chooseProfileScreen.createBtn.btn.holder = this; this.game.chooseProfileScreen.createBtn.btn.onRelease = function () { var v2 = SharedObject.getLocal('save_load_YSDEMO', '/'); trace('so.data.SaveGame.length ' + v2.data.SaveGame.length); if (v2.data.SaveGame.length < 4) { this._parent.create.gotoAndStop(1); this.holder.UserScrFirstTime = false; this.holder.showNewUserScreen(); this.holder.addTranzition(); this.holder.game.chooseProfileScreen.removeMovieClip(); } }; this.game.chooseProfileScreen.cancelBtn.btn.onPress = function () { this._parent.cancel.gotoAndStop(1); this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); }; this.game.chooseProfileScreen.cancelBtn.btn.onRollOver = function () { this._parent.cancel.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); }; this.game.chooseProfileScreen.cancelBtn.btn.onRollOut = function () { this._parent.cancel.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.chooseProfileScreen.cancelBtn.btn.onReleaseOutside = function () { this._parent.cancel.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.chooseProfileScreen.cancelBtn.btn.holder = this; this.game.chooseProfileScreen.cancelBtn.btn.onRelease = function () { this._parent.cancel.gotoAndStop(1); if (this.holder.game.loginPage_MC.welcome.welcome.userName.text != ' ' && this.holder.game.loginPage_MC.welcome.welcome.userName.text != '' && this.holder.game.loginPage_MC.welcome.welcome.userName.text != '---') { if (this.holder.saveLoadObject.chekForUser()) { this.holder.addTranzition(); this.holder.game.chooseProfileScreen.removeMovieClip(); } else { this.holder.UserScrFirstTime = false; this.holder.showNewUserScreen(); this.holder.addTranzition(); this.holder.game.chooseProfileScreen.removeMovieClip(); } } else { this.holder.showNewUserScreen(); this.holder.addTranzition(); this.holder.game.chooseProfileScreen.removeMovieClip(); } }; this.game.chooseProfileScreen.deleteBtn.btn.onPress = function () { this._parent.deleteBtn.gotoAndStop(1); this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); }; this.game.chooseProfileScreen.deleteBtn.btn.onRollOver = function () { this._parent.deleteBtn.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); }; this.game.chooseProfileScreen.deleteBtn.btn.onRollOut = function () { this._parent.deleteBtn.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.chooseProfileScreen.deleteBtn.btn.onReleaseOutside = function () { this._parent.deleteBtn.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.chooseProfileScreen.deleteBtn.btn.holder = this; this.game.chooseProfileScreen.deleteBtn.btn.onRelease = function () { this._parent.deleteBtn.gotoAndStop(1); if (this.holder.tempName == this.holder.saveLoadObject.getLastUser()) { } this.holder.saveLoadObject.setLastUser(' '); if (this.holder.tempName != ' ') { this.holder.saveLoadObject.deleteAllUsers(this.holder.tempName); var v2 = SharedObject.getLocal('save_load_YSDEMO', '/'); trace('so.data.SaveGame.length ' + v2.data.SaveGame.length); if (v2.data.SaveGame.length < 4) { this.holder.game.chooseProfileScreen.createBtn.create.gotoAndStop(1); } } this.holder.game.userName = ' '; this.holder.game.loginPage_MC.welcome.welcome.userName.text = ' '; this.holder.tempName = ' '; this.holder.showUserSelectioncreen1(); }; this.game.loginPage_MC.optionss.hitClip.onPress = function () { if (!this.holder.game.newUserPage_MC) { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this._parent.options.gotoAndStop(3); } }; this.game.loginPage_MC.optionss.hitClip.onRollOver = function () { if (!this.holder.game.newUserPage_MC) { this._parent.options.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); } }; this.game.loginPage_MC.optionss.hitClip.onRollOut = function () { this._parent.options.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.optionss.hitClip.onReleaseOutside = function () { this._parent.options.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.optionss.hitClip.holder = this; this.game.loginPage_MC.optionss.hitClip.onRelease = function () { if (!this.holder.game.newUserPage_MC) { this._parent.options.gotoAndStop(1); this.holder.showOptions(); } }; this.game.loginPage_MC.exit.hitClip.onPress = function () { if (!this.holder.game.newUserPage_MC) { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this._parent.exitGame.gotoAndStop(3); if (_global.externalModel) { if (_global.attachExitMenu) { _global.attachExitMenu(); } else { _global.exitMenu_mc._visible = true; } } else { fscommand('quit'); } } }; this.game.loginPage_MC.exit.hitClip.onRollOver = function () { if (!this.holder.game.newUserPage_MC) { this._parent.exitGame.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); } }; this.game.loginPage_MC.exit.hitClip.onRollOut = function () { this._parent.exitGame.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.exit.hitClip.onReleaseOutside = function () { this._parent.exitGame.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.exit.hitClip.holder = this; this.game.loginPage_MC.exit.hitClip.onRelease = function () { if (!this.holder.game.newUserPage_MC) { this._parent.exitGame.gotoAndStop(1); } }; this.game.loginPage_MC.play_game.hitClip.onPress = function () { if (!this.holder.game.newUserPage_MC) { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this._parent.playGame.gotoAndStop(3); } }; this.game.loginPage_MC.play_game.hitClip.onRollOver = function () { if (!this.holder.game.newUserPage_MC) { this._parent.playGame.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); } }; this.game.loginPage_MC.play_game.hitClip.onRollOut = function () { this._parent.playGame.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.play_game.hitClip.onReleaseOutside = function () { this._parent.playGame.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.game.loginPage_MC.play_game.hitClip.holder = this; this.game.loginPage_MC.play_game.hitClip.onRelease = function () { if (!this.holder.game.newUserPage_MC) { this._parent.playGame.gotoAndStop(1); if (this.holder.game.newUserPage_MC == undefined && this.holder.game.loginPage_MC.welcome.welcome.userName.text != ' ' && this.holder.game.loginPage_MC.welcome.welcome.userName.text != ' ,') { this.holder.saveLoadObject.setLastUser(this.holder.game.userName); var v3 = this.holder.saveLoadObject.getLevelId(this.holder.game.userName); var v2 = this.holder.saveLoadObject.getLevelState(this.holder.game.userName); this.holder.buttonClick = 'playGame'; if (this.holder.saveLoadObject.getLevelId(this.holder.game.userName) > 1 || this.holder.saveLoadObject.getLevelId(this.holder.game.userName) == 1 && v2 == 'D') { this.holder.saveLoadObject.loadGame(this.holder.game.userName); this.holder.showMapPrepare(); this.holder.game.chooseProfileScreen.removeMovieClip(); } else { if (this.holder.game.frstTime) { this.holder.showMapPrepare(); this.holder.game.chooseProfileScreen.removeMovieClip(); } else { this.holder.showMapPrepare(); this.holder.game.chooseProfileScreen.removeMovieClip(); } } } } }; }; v2.removeInfoScreen = function () { if (this.hasRemoveTransition) { this.rTransition.startTransition(); } else { this.remove(); } }; v2.addAttachTransition = function (t) { this.aTransition = t; this.aTransition.addTransitionObject(this); this.aTransition.addEventListener('onAttach', this); this.hasAttachTransition = true; }; v2.addRemoveTransition = function (t) { this.rTransition = t; this.rTransition.addTransitionObject(this); this.rTransition.addEventListener('onRemove', this); this.hasRemoveTransition = true; }; v2.removeAttachTransition = function (t) { this.aTransition.removeEventListener('onAttach', this); this.hasAttachTransition = false; this.aTransition = undefined; }; v2.removeRemoveTransition = function (t) { this.rTransition.removeEventListener('onRemove', this); this.hasRemoveTransition = false; this.rTransition = undefined; }; v2.attach = function () { if (this.hasAttachTransition) { this.aTransition.startTransition(); } }; v2.remove = function () { this.deleteScreen(); this.clip.removeMovieClip(); if (this.buttonClick == 'playGame') { this.MapScreen = new scr.MapScreen(this.game); } else { if (this.buttonClick == 'goalScreen') { var v2 = new scr.GoalScreen(this.game); } } }; v2.onAttach = function () {}; v2.onRemove = function () { this.remove(); }; ASSetPropFlags(com.Interface.prototype, null, 1); } #endinitclip } movieClip 9268 __Packages.mx.events.EventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.EventDispatcher) { var v1 = function () {}; mx.events.EventDispatcher = v1; var v2 = v1.prototype; v1._removeEventListener = function (queue, event, handler) { if (queue != undefined) { var v4 = queue.length; var v1; v1 = 0; while (v1 < v4) { var v2 = queue[v1]; if (v2 == handler) { queue.splice(v1, 1); return undefined; } ++v1; } } }; v1.initialize = function (object) { if (mx.events.EventDispatcher._fEventDispatcher == undefined) { mx.events.EventDispatcher._fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = mx.events.EventDispatcher._fEventDispatcher.addEventListener; object.removeEventListener = mx.events.EventDispatcher._fEventDispatcher.removeEventListener; object.dispatchEvent = mx.events.EventDispatcher._fEventDispatcher.dispatchEvent; object.dispatchQueue = mx.events.EventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchQueue = function (queueObj, eventObj) { var v7 = '__q_' + eventObj.type; var v4 = queueObj[v7]; if (v4 != undefined) { var v5; for (v5 in v4) { var v1 = v4[v5]; var v3 = typeof v1; if (v3 == 'object' || v3 == 'movieclip') { if (v1.handleEvent != undefined) { v1.handleEvent(eventObj); } if (v1[eventObj.type] != undefined) { if (mx.events.EventDispatcher.exceptions[eventObj.type] == undefined) { v1[eventObj.type](eventObj); } } } else { v1.apply(queueObj, [eventObj]); } } } }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(this, eventObj); }; v2.addEventListener = function (event, handler) { var v3 = '__q_' + event; if (this[v3] == undefined) { this[v3] = new Array(); } _global.ASSetPropFlags(this, v3, 1); mx.events.EventDispatcher._removeEventListener(this[v3], event, handler); this[v3].push(handler); }; v2.removeEventListener = function (event, handler) { var v2 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v2], event, handler); }; v1._fEventDispatcher = undefined; v1.exceptions = {'move': 1, 'draw': 1, 'load': 1}; ASSetPropFlags(mx.events.EventDispatcher.prototype, null, 1); } #endinitclip } movieClip 9269 __Packages.trans.Transition { #initclip if (!_global.trans) { _global.trans = new Object(); } if (!_global.trans.Transition) { var v1 = function () { super(); }; trans.Transition = v1; trans.Transition extends mx.events.EventDispatcher; var v2 = v1.prototype; v2.addTransitionObject = function (transitionObject) { this.transitionObject = transitionObject; }; v2.getTransitionObject = function () { return this.transitionObject; }; v2.startTransition = function () {}; ASSetPropFlags(trans.Transition.prototype, null, 1); } #endinitclip } movieClip 9270 __Packages.trans.AttachTransition { #initclip if (!_global.trans) { _global.trans = new Object(); } if (!_global.trans.AttachTransition) { var v1 = function () { super(); }; trans.AttachTransition = v1; trans.AttachTransition extends trans.Transition; var v2 = v1.prototype; v2.stopTransition = function () { this.dispatchEvent({'type': 'onAttach', 'target': this}); }; ASSetPropFlags(trans.AttachTransition.prototype, null, 1); } #endinitclip } movieClip 9271 __Packages.trans.RemoveTransition { #initclip if (!_global.trans) { _global.trans = new Object(); } if (!_global.trans.RemoveTransition) { var v1 = function () { super(); }; trans.RemoveTransition = v1; trans.RemoveTransition extends trans.Transition; var v2 = v1.prototype; v2.stopTransition = function () { this.dispatchEvent({'type': 'onRemove', 'target': this}); }; ASSetPropFlags(trans.RemoveTransition.prototype, null, 1); } #endinitclip } movieClip 9272 __Packages.com.SaveLoad { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.SaveLoad) { var v1 = function (game_) { this.game = game_; }; com.SaveLoad = v1; var v2 = v1.prototype; v2.NumOfUser = function () { var v1 = SharedObject.getLocal('save_load_YSDEMO', '/'); return v1.data.SaveGame.length; }; v2.ShowUsers = function (game_) { var v2 = 0; while (v2 <= 3) { this.game.chooseProfileScreen['Save_button' + v2].dinamikText.text = '---'; ++v2; } var v3 = SharedObject.getLocal('save_load_YSDEMO', '/'); v2 = 0; while (v2 < v3.data.SaveGame.length) { this.game.chooseProfileScreen['Save_button' + v2].dinamikText.text = v3.data.SaveGame[v2].name_.toString(); ++v2; } }; v2.ShowLastUsers = function (game_) { var v1 = SharedObject.getLocal('save_load_YSDEMO', '/'); }; v2.chekForUser = function () { var v1 = SharedObject.getLocal('save_load_YSDEMO', '/'); if (v1.data.SaveGame.length == undefined || v1.data.SaveGame.length == 0) { return false; } return true; }; v2.saveGame = function (name_) { trace('SAVE GAME' + levelNum); var levelNum; var v71; var v134; var v128; var v130; var v63; var v83; var v129; var v132; var v133; var v43; var v30 = new Array(); var v33 = new Array(); var v37 = new Array(); var v24 = new Array(); var v22 = new Array(); var v15 = new Array(); var v25 = new Array(); var v38 = new Array(); var v16 = new Array(); var v39 = new Array(); var v31 = new Array(); var v34 = new Array(); var v7 = new Array(); var v9 = new Array(); var v119; var v114; var v111; var v51; var v53; var v60; var v84; var v54; var v55; var v124; var v64; var v120; var v44; var v65; var v66; var v72; var v45; var v125; var v67; var v102; var v76; var v56; var v77; var v46; var v99; var v94; var v73; var v115; var v108; var v100; var v61; var v103; var v68; var v47; var v101; var v121; var v112; var v85; var v109; var v74; var v48; var v116; var v78; var v79; var v95; var v104; var v80; var v105; var v131; var v96; var v89; var v122; var v69; var v90 = []; var v57 = []; var v58; var v35 = new Array(); var v6 = new Array(); var v17 = new Array(); var v18 = new Array(); var v26 = new Array(); var v10 = new Array(); var v19 = new Array(); var v40 = new Array(); var v12 = new Array(); var v13 = new Array(); var v23 = new Array(); var v20 = new Array(); var v27 = new Array(); var v8 = new Array(); var v14 = new Array(); var v11 = new Array(); var v21 = new Array(); var v28 = new Array(); var v32 = new Array(); var v29 = new Array(); var v36 = new Array(); var v2 = 0; while (v2 < this.game.avoidingBadWeatherLevelsArray.length) { v12[v2] = this.game.avoidingBadWeatherLevelsArray[v2]; ++v2; } v2 = 0; while (v2 < this.game.Stork0Speed.length) { v13[v2] = this.game.Stork0Speed[v2]; ++v2; } v2 = 0; while (v2 < this.game.Stork0Power.length) { v23[v2] = this.game.Stork0Power[v2]; ++v2; } v2 = 0; while (v2 < this.game.Stork1Speed.length) { v20[v2] = this.game.Stork1Speed[v2]; ++v2; } v2 = 0; while (v2 < this.game.Stork1Power.length) { v27[v2] = this.game.Stork1Power[v2]; ++v2; } v2 = 0; while (v2 < this.game.Stork2Speed.length) { v8[v2] = this.game.Stork2Speed[v2]; ++v2; } v2 = 0; while (v2 < this.game.Stork2Power.length) { v14[v2] = this.game.Stork2Power[v2]; ++v2; } v2 = 0; while (v2 < this.game.Stork3Speed.length) { v11[v2] = this.game.Stork3Speed[v2]; ++v2; } v2 = 0; while (v2 < this.game.Stork3Power.length) { v21[v2] = this.game.Stork3Power[v2]; ++v2; } v2 = 0; while (v2 < this.game.Stork4Speed.length) { v28[v2] = this.game.Stork4Speed[v2]; ++v2; } v2 = 0; while (v2 < this.game.Stork4Power.length) { v32[v2] = this.game.Stork4Power[v2]; ++v2; } v2 = 0; while (v2 < this.game.Stork5Speed.length) { v29[v2] = this.game.Stork5Speed[v2]; ++v2; } v2 = 0; while (v2 < this.game.Stork5Power.length) { v36[v2] = this.game.Stork5Power[v2]; ++v2; } v2 = 0; while (v2 < this.game.singelBoySacksArray.length) { v35[v2] = this.game.singelBoySacksArray[v2]; ++v2; } v2 = 0; while (v2 < this.game.singelGirlSacksArray.length) { v6[v2] = this.game.singelGirlSacksArray[v2]; ++v2; } v2 = 0; while (v2 < this.game.twinBoySacksArray.length) { v17[v2] = this.game.twinBoySacksArray[v2]; ++v2; } v2 = 0; while (v2 < this.game.twinGirlSacksArray.length) { v18[v2] = this.game.twinGirlSacksArray[v2]; ++v2; } v2 = 0; while (v2 < this.game.tripletBoySacksArray.length) { v26[v2] = this.game.tripletBoySacksArray[v2]; ++v2; } v2 = 0; while (v2 < this.game.tripletGirlSacksArray.length) { v10[v2] = this.game.tripletGirlSacksArray[v2]; ++v2; } v2 = 0; while (v2 < this.game.quadrupletBoySacksArray.length) { v19[v2] = this.game.quadrupletBoySacksArray[v2]; ++v2; } v2 = 0; while (v2 < this.game.quadrupletGirlSacksArray.length) { v40[v2] = this.game.quadrupletGirlSacksArray[v2]; ++v2; } var v3 = 0; while (v3 < 42) { v90.push(this.game.helpTips[v3].shown); ++v3; } v3 = 0; while (v3 < this.game.helpTipsDelivery.length) { v57.push(this.game.helpTipsDelivery[v3].shown); ++v3; } v3 = 0; while (v3 < 25) { v30[v3] = this.game.bed1LevelUpgrades[v3]; v33[v3] = this.game.bed2LevelUpgrades[v3]; v37[v3] = this.game.bed3LevelUpgrades[v3]; v24[v3] = this.game.bath1LevelUpgrades[v3]; v22[v3] = this.game.bath2LevelUpgrades[v3]; v15[v3] = this.game.bath3LevelUpgrades[v3]; v25[v3] = this.game.foodmakerLevelUpgrades[v3]; v38[v3] = this.game.toyboxLevelUpgrades[v3]; v16[v3] = this.game.cleaningLevelStork[v3]; v39[v3] = this.game.EscSwitchLevelUpgrades[v3]; v31[v3] = this.game.gamePointsFactory[v3]; v34[v3] = this.game.gamePointsDelivery[v3]; v7[v3] = this.game.pointsAreLostFactoryUpgrade[v3]; v9[v3] = this.game.wrongWishFactoryUpgrade[v3]; ++v3; } var v42 = {'name_': name_, 'avoidingBadWeatherLevelsArray': v12, 'singelBoySacks': v35, 'singelGirlSacks': v6, 'twinBoySacks': v17, 'twinGirlSacks': v18, 'tripletBoySacks': v26, 'tripletGirlSacks': v10, 'quadrupletBoySacks': v19, 'quadrupletGirlSacks': v40, 'NoNegativePoints': this.game.NoNegativePoints, 'levelNum': this.game.levelNum, 'goalReached': this.game.goalReached, 'gamePoints': this.game.gamePoints, 'strongStork': this.game.strongStork, 'speed': this.game.speed, 'twinMasterTrophy': this.game.twinMasterTrophy, 'tripletMasterTrophy': this.game.tripletMasterTrophy, 'quadrupletFanTrophy': this.game.quadrupletFanTrophy, 'expertGoalBusterTrophy': this.game.expertGoalBusterTrophy, 'professorTrophy': this.game.professorTrophy, 'innovatorTrophy': this.game.innovatorTrophy, 'comboFreakTrophy': this.game.comboFreakTrophy, 'comboExpertTrophy': this.game.comboExpertTrophy, 'comboholicTrophy': this.game.comboholicTrophy, 'fastestStorkTrophy': this.game.fastestStorkTrophy, 'queenHeartsTrophy': this.game.queenHeartsTrophy, 'kingHeartsTrophy': this.game.kingHeartsTrophy, 'storkHeartsTrophy': this.game.storkHeartsTrophy, 'weatherMasterTrophy': this.game.weatherMasterTrophy, 'slotMashineTrophy': this.game.slotMashineTrophy, 'trophyHunter': this.game.trophyHunter, 'twinMasterTrophyShown': this.game.twinMasterTrophyShown, 'tripletMasterTrophyShown': this.game.tripletMasterTrophyShown, 'quadrupletFanTrophyShown': this.game.quadrupletFanTrophyShown, 'expertGoalBusterTrophyShown': this.game.expertGoalBusterTrophyShown, 'professorTrophyShown': this.game.professorTrophyShown, 'innovatorTrophyShown': this.game.innovatorTrophyShown, 'comboFreakTrophyShown': this.game.comboFreakTrophyShown, 'comboExpertTrophyShown': this.game.comboExpertTrophyShown, 'comboholicTrophyShown': this.game.comboholicTrophyShown, 'fastestStorkTrophyShown': this.game.fastestStorkTrophyShown, 'queenHeartsTrophyShown': this.game.queenHeartsTrophyShown, 'kingHeartsTrophyShown': this.game.kingHeartsTrophyShown, 'storkHeartsTrophyShown': this.game.storkHeartsTrophyShown, 'weatherMasterTrophyShown': this.game.weatherMasterTrophyShown, 'slotMashineTrophyShown': this.game.slotMashineTrophyShown, 'trophyHunterShown': this.game.trophyHunterShown, 'pointsAreLost': this.game.pointsAreLost, 'expertGoal': this.game.expertGoal, 'cleaningStorkApearing': this.game.cleaningStorkApearing, 'expertGoalNum': this.game.expertGoalNum, 'expertGoalInOrderNum': this.game.expertGoalInOrderNum, 'wrongWish': this.game.wrongWish, 'successAction': this.game.successAction, 'helpTipsShown': v90, 'helpTipsDeliveryShown': v57, 'ExtraGoal': this.game.ExtraGoal, 'Goal': this.game.Goal, 'maxLevelNum': this.game.maxLevelNum, 'Stork0Speed': v13, 'Stork0Power': v23, 'Stork1Speed': v20, 'Stork1Power': v27, 'Stork2Speed': v8, 'Stork2Power': v14, 'Stork3Speed': v11, 'Stork3Power': v21, 'Stork4Speed': v28, 'Stork4Power': v32, 'Stork5Speed': v29, 'Stork5Power': v36, 'levelState': this.game.levelState, 'bed1LevelUpgrades': v30, 'bed2LevelUpgrades': v33, 'bed3LevelUpgrades': v37, 'bath1LevelUpgrades': v24, 'bath2LevelUpgrades': v22, 'bath3LevelUpgrades': v15, 'foodmakerLevelUpgrades': v25, 'toyboxLevelUpgrades': v38, 'cleaningLevelStork': v16, 'EscSwitchLevelUpgrades': v39, 'gamePointsFactory': v31, 'gamePointsDelivery': v34, 'pointsAreLostFactoryUpgrade': v7, 'wrongWishFactoryUpgrade': v9}; var v4 = SharedObject.getLocal('save_load_YSDEMO', '/'); if (v4.data.SaveGame.length == undefined) { v4.data.SaveGame = []; } var v5; v5 = -1; v3 = 0; while (v3 < v4.data.SaveGame.length) { if (v4.data.SaveGame[v3].name_ == name_) { v5 = v3; } ++v3; } if (v5 > -1) { v4.data.SaveGame[v5] = v42; } else { v4.data.SaveGame.push(v42); } v4.flush(); }; v2.setLastUser = function (name_) { var v1 = SharedObject.getLocal('LAST_PLAY_YSDEMO', '/'); v1.data.nameOfPlayer = name_; }; v2.getLastUser = function () { var v2 = SharedObject.getLocal('save_load_YSDEMO', '/'); var v1 = SharedObject.getLocal('LAST_PLAY_YSDEMO', '/'); return v1.data.nameOfPlayer; }; v2.addName = function (name_) { var v6 = {'name_': name_, 'game_': this.game}; var v4 = SharedObject.getLocal('save_load_YSDEMO', '/'); if (v4.data.SaveGame.length == undefined) { var v5 = ''; var v3 = 0; while (v3 < name_.length) { v5 += ' '; ++v3; } if (name_ == v5) { return 'prazno'; } if (name_ == ' ' || name_ == '') { return 'prazno'; } else { v4.data.SaveGame = []; v4.data.SaveGame.push(v6); v4.flush(); return 'ok'; } } else { var v5 = ''; var v3 = 0; while (v3 < name_.length) { v5 += ' '; ++v3; } if (name_ == v5) { return 'prazno'; } v3 = 0; while (v3 <= v4.data.SaveGame.length) { if (name_ == ' ' || name_ == '') { return 'prazno'; } else { if (v4.data.SaveGame[v3].name_ == name_) { return 'GO IMA OVOJ USER'; } } ++v3; } if (v4.data.SaveGame.length < 4) { v4.data.SaveGame.push(v6); v4.flush(); return 'ok'; } else { v4.data.SaveGame[0] = v6; return 'ok'; } } }; v2.getLevelId = function (name_) { var v2 = SharedObject.getLocal('save_load_YSDEMO', '/'); var v3; v3 = -1; var v1 = 0; while (v1 < v2.data.SaveGame.length) { if (v2.data.SaveGame[v1].name_ == name_) { v3 = v1; } ++v1; } var v5 = v2.data.SaveGame[v3].levelNum; return v5; }; v2.getLevelState = function (name_) { var v2 = SharedObject.getLocal('save_load_YSDEMO', '/'); var v3; v3 = -1; var v1 = 0; while (v1 < v2.data.SaveGame.length) { if (v2.data.SaveGame[v1].name_ == name_) { v3 = v1; } ++v1; } var v5 = v2.data.SaveGame[v3].levelState; return v5; }; v2.loadGame = function (name_) { trace('@@@LoadGame name_' + name_); var v2 = SharedObject.getLocal('save_load_YSDEMO', '/'); var v4; var v3; v3 = -1; v4 = 0; while (v4 < v2.data.SaveGame.length) { if (v2.data.SaveGame[v4].name_ == name_) { v3 = v4; } ++v4; } this.game.gamePoints = v2.data.SaveGame[v3].gamePoints; this.game.levelNum = v2.data.SaveGame[v3].levelNum; this.game.strongStork = v2.data.SaveGame[v3].strongStork; this.game.twinMasterTrophy = v2.data.SaveGame[v3].twinMasterTrophy; this.game.tripletMasterTrophy = v2.data.SaveGame[v3].tripletMasterTrophy; this.game.quadrupletFanTrophy = v2.data.SaveGame[v3].quadrupletFanTrophy; this.game.expertGoalBusterTrophy = v2.data.SaveGame[v3].expertGoalBusterTrophy; this.game.professorTrophy = v2.data.SaveGame[v3].professorTrophy; this.game.innovatorTrophy = v2.data.SaveGame[v3].innovatorTrophy; this.game.comboFreakTrophy = v2.data.SaveGame[v3].comboFreakTrophy; this.game.comboExpertTrophy = v2.data.SaveGame[v3].comboExpertTrophy; this.game.comboholicTrophy = v2.data.SaveGame[v3].comboholicTrophy; this.game.fastestStorkTrophy = v2.data.SaveGame[v3].fastestStorkTrophy; this.game.queenHeartsTrophy = v2.data.SaveGame[v3].queenHeartsTrophy; this.game.kingHeartsTrophy = v2.data.SaveGame[v3].kingHeartsTrophy; this.game.storkHeartsTrophy = v2.data.SaveGame[v3].storkHeartsTrophy; this.game.weatherMasterTrophy = v2.data.SaveGame[v3].weatherMasterTrophy; this.game.slotMashineTrophy = v2.data.SaveGame[v3].slotMashineTrophy; this.game.trophyHunter = v2.data.SaveGame[v3].trophyHunter; this.game.twinMasterTrophyShown = v2.data.SaveGame[v3].twinMasterTrophyShown; this.game.tripletMasterTrophyShown = v2.data.SaveGame[v3].tripletMasterTrophyShown; this.game.quadrupletFanTrophyShown = v2.data.SaveGame[v3].quadrupletFanTrophyShown; this.game.expertGoalBusterTrophyShown = v2.data.SaveGame[v3].expertGoalBusterTrophyShown; this.game.professorTrophyShown = v2.data.SaveGame[v3].professorTrophyShown; this.game.innovatorTrophyShown = v2.data.SaveGame[v3].innovatorTrophyShown; this.game.comboFreakTrophyShown = v2.data.SaveGame[v3].comboFreakTrophyShown; this.game.comboExpertTrophyShown = v2.data.SaveGame[v3].comboExpertTrophyShown; this.game.comboholicTrophyShown = v2.data.SaveGame[v3].comboholicTrophyShown; this.game.fastestStorkTrophyShown = v2.data.SaveGame[v3].fastestStorkTrophyShown; this.game.queenHeartsTrophyShown = v2.data.SaveGame[v3].queenHeartsTrophyShown; this.game.kingHeartsTrophyShown = v2.data.SaveGame[v3].kingHeartsTrophyShown; this.game.storkHeartsTrophyShown = v2.data.SaveGame[v3].storkHeartsTrophyShown; this.game.weatherMasterTrophyShown = v2.data.SaveGame[v3].weatherMasterTrophyShown; this.game.slotMashineTrophyShown = v2.data.SaveGame[v3].slotMashineTrophyShown; this.game.trophyHunterShown = v2.data.SaveGame[v3].trophyHunterShown; this.game.pointsAreLost = v2.data.SaveGame[v3].pointsAreLost; this.game.cleaningStorkApearing = v2.data.SaveGame[v3].cleaningStorkApearing; this.game.expertGoal = v2.data.SaveGame[v3].expertGoal; this.game.expertGoalNum = v2.data.SaveGame[v3].expertGoalNum; this.game.expertGoalInOrderNum = v2.data.SaveGame[v3].expertGoalInOrderNum; this.game.wrongWish = v2.data.SaveGame[v3].wrongWish; this.game.successAction = v2.data.SaveGame[v3].successAction; this.game.goalReached = v2.data.SaveGame[v3].goalReached; this.game.levelState = v2.data.SaveGame[v3].levelState; this.game.NoNegativePoints = v2.data.SaveGame[v3].NoNegativePoints; v4 = 0; while (v4 < 42) { this.game.helpTips[v4].shown = v2.data.SaveGame[v3].helpTipsShown[v4]; ++v4; } v4 = 0; while (v4 < this.game.helpTipsDelivery.length) { this.game.helpTipsDelivery[v4].shown = v2.data.SaveGame[v3].helpTipsDeliveryShown[v4]; ++v4; } this.game.bed1LevelUpgrades = v2.data.SaveGame[v3].bed1LevelUpgrades; this.game.bed2LevelUpgrades = v2.data.SaveGame[v3].bed2LevelUpgrades; this.game.bed3LevelUpgrades = v2.data.SaveGame[v3].bed3LevelUpgrades; this.game.bath1LevelUpgrades = v2.data.SaveGame[v3].bath1LevelUpgrades; this.game.bath2LevelUpgrades = v2.data.SaveGame[v3].bath2LevelUpgrades; this.game.bath3LevelUpgrades = v2.data.SaveGame[v3].bath3LevelUpgrades; this.game.foodmakerLevelUpgrades = v2.data.SaveGame[v3].foodmakerLevelUpgrades; this.game.toyboxLevelUpgrades = v2.data.SaveGame[v3].toyboxLevelUpgrades; this.game.cleaningLevelStork = v2.data.SaveGame[v3].cleaningLevelStork; this.game.EscSwitchLevelUpgrades = v2.data.SaveGame[v3].EscSwitchLevelUpgrades; this.game.gamePointsFactory = v2.data.SaveGame[v3].gamePointsFactory; this.game.gamePointsDelivery = v2.data.SaveGame[v3].gamePointsDelivery; this.game.pointsAreLostFactoryUpgrade = v2.data.SaveGame[v3].pointsAreLostFactoryUpgrade; this.game.wrongWishFactoryUpgrade = v2.data.SaveGame[v3].wrongWishFactoryUpgrade; this.game.ExtraGoal = v2.data.SaveGame[v3].ExtraGoal; this.game.Goal = v2.data.SaveGame[v3].Goal; this.game.maxLevelNum = v2.data.SaveGame[v3].maxLevelNum; this.game.Stork0Speed = v2.data.SaveGame[v3].Stork0Speed; this.game.Stork0Power = v2.data.SaveGame[v3].Stork0Power; this.game.Stork1Speed = v2.data.SaveGame[v3].Stork1Speed; this.game.Stork1Power = v2.data.SaveGame[v3].Stork1Power; this.game.Stork2Speed = v2.data.SaveGame[v3].Stork2Speed; this.game.Stork2Power = v2.data.SaveGame[v3].Stork2Power; this.game.Stork3Speed = v2.data.SaveGame[v3].Stork3Speed; this.game.Stork3Power = v2.data.SaveGame[v3].Stork3Power; this.game.Stork4Speed = v2.data.SaveGame[v3].Stork4Speed; this.game.Stork4Power = v2.data.SaveGame[v3].Stork4Power; this.game.Stork5Speed = v2.data.SaveGame[v3].Stork5Speed; this.game.Stork5Power = v2.data.SaveGame[v3].Stork5Power; this.game.Storks[0].speed = this.game.Stork0Speed[this.game.levelNum - 1]; this.game.Storks[0].power = this.game.Stork0Power[this.game.levelNum - 1]; this.game.Storks[1].speed = this.game.Stork1Speed[this.game.levelNum - 1]; this.game.Storks[1].power = this.game.Stork1Power[this.game.levelNum - 1]; this.game.Storks[2].speed = this.game.Stork2Speed[this.game.levelNum - 1]; this.game.Storks[2].power = this.game.Stork2Power[this.game.levelNum - 1]; this.game.Storks[3].speed = this.game.Stork3Speed[this.game.levelNum - 1]; this.game.Storks[3].power = this.game.Stork3Power[this.game.levelNum - 1]; this.game.Storks[4].speed = this.game.Stork4Speed[this.game.levelNum - 1]; this.game.Storks[4].power = this.game.Stork4Power[this.game.levelNum - 1]; this.game.Storks[5].speed = this.game.Stork5Speed[this.game.levelNum - 1]; this.game.Storks[5].power = this.game.Stork5Power[this.game.levelNum - 1]; this.game.singelBoySacksArray = v2.data.SaveGame[v3].singelBoySacks; this.game.singelGirlSacksArray = v2.data.SaveGame[v3].singelGirlSacks; this.game.twinBoySacksArray = v2.data.SaveGame[v3].twinBoySacks; this.game.twinGirlSacksArray = v2.data.SaveGame[v3].twinGirlSacks; this.game.tripletBoySacksArray = v2.data.SaveGame[v3].tripletBoySacks; this.game.tripletGirlSacksArray = v2.data.SaveGame[v3].tripletGirlSacks; this.game.quadrupletBoySacksArray = v2.data.SaveGame[v3].quadrupletBoySacks; this.game.quadrupletGirlSacksArray = v2.data.SaveGame[v3].quadrupletGirlSacks; this.game.level_.singelBoySacks = this.game.singelBoySacksArray[this.game.levelNum]; this.game.level_.singelGirlSacks = this.game.singelGirlSacksArray[this.game.levelNum]; this.game.level_.twinBoySacks = this.game.twinBoySacksArray[this.game.levelNum]; this.game.level_.twinGirlSacks = this.game.twinGirlSacksArray[this.game.levelNum]; this.game.level_.tripletBoySacks = this.game.tripletBoySacksArray[this.game.levelNum]; this.game.level_.tripletGirlSacks = this.game.tripletGirlSacksArray[this.game.levelNum]; this.game.level_.quadrupletBoySacks = this.game.quadrupletBoySacksArray[this.game.levelNum]; this.game.level_.quadrupletGirlSacks = this.game.quadrupletGirlSacksArray[this.game.levelNum]; trace('this.game.levelState ' + this.game.levelState); this.game.avoidingBadWeatherLevelsArray = v2.data.SaveGame[v3].avoidingBadWeatherLevelsArray; this.game.avoidingBadWeatherLevels = this.game.avoidingBadWeatherLevelsArray[this.game.levelNum - 1]; }; v2.isWinScreenShown = function (name_) { var v1 = SharedObject.getLocal('save_load_YSDEMO', '/'); if (v1.data.winScreenShown.length == undefined) { v1.data.winScreenShown = new Array(); } trace('so.data.winScreenShown[name_] ' + v1.data.winScreenShown[name_]); if (v1.data.winScreenShown[name_] == undefined) { v1.data.winScreenShown[name_] = true; trace('so.data.winScreenShown[name_] ' + v1.data.winScreenShown[name_]); v1.flush(); return false; } else { return true; } }; v2.clearWinScreenFlag = function (name_) { var v1 = SharedObject.getLocal('save_load_YSDEMO', '/'); if (v1.data.winScreenShown[name_] != undefined) { v1.data.winScreenShown[name_] = undefined; v1.flush(); } }; v2.deleteAllUsers = function (name_) { var v2 = SharedObject.getLocal('save_load_YSDEMO', '/'); var v3; v3 = -1; var v1 = 0; while (v1 < v2.data.SaveGame.length) { if (v2.data.SaveGame[v1].name_ == name_) { v3 = v1; v2.data.SaveGame.splice(v1, 1); break; } ++v1; } }; ASSetPropFlags(com.SaveLoad.prototype, null, 1); } #endinitclip } movieClip 9273 __Packages.trans.CustomTransition { #initclip if (!_global.trans) { _global.trans = new Object(); } if (!_global.trans.CustomTransition) { _global.trans.CustomTransition = function () {}; } #endinitclip } movieClip 9274 __Packages.scr.FadeIn { #initclip if (!_global.scr) { _global.scr = new Object(); } if (!_global.scr.FadeIn) { var v1 = function () { super(); }; scr.FadeIn = v1; scr.FadeIn extends trans.AttachTransition; var v2 = v1.prototype; _global.scr.FadeIn implements _global.trans.CustomTransition; v2.startTransition = function () { this.to = this.getTransitionObject(); var v2 = this.to.depth; this.snapshot = this.to.target.createEmptyMovieClip(utils.StringUtils.getUniqueName(), v2 + 1); var v3 = new flash.geom.Matrix(); v3.translate(this.to.clip._x, this.to.clip._y); this.bd = new flash.display.BitmapData(this.to.clip._width, this.to.clip._height, true, 0); this.bd.draw(this.to.clip, v3, new flash.geom.ColorTransform(), 1, undefined, true); this.snapshot.attachBitmap(this.bd, v2 + 1); this.to.clip.removeMovieClip(); this.snapshot._alpha = 0; this.intervalID = setInterval(this, 'playTransition', 10); }; v2.playTransition = function () { this.snapshot._alpha += 2; if (this.snapshot._alpha >= 100) { this.snapshot._alpha = 100; this.to.attachClip(); this.snapshot.removeMovieClip(); this.bd.dispose(); clearInterval(this.intervalID); this.stopTransition(); } }; ASSetPropFlags(scr.FadeIn.prototype, null, 1); } #endinitclip } movieClip 9275 __Packages.scr.FadeOut { #initclip if (!_global.scr) { _global.scr = new Object(); } if (!_global.scr.FadeOut) { var v1 = function () { super(); }; scr.FadeOut = v1; scr.FadeOut extends trans.RemoveTransition; var v2 = v1.prototype; _global.scr.FadeOut implements _global.trans.CustomTransition; v2.startTransition = function () { this.to = this.getTransitionObject(); var v2 = this.to.depth; this.snapshot = this.to.target.createEmptyMovieClip(utils.StringUtils.getUniqueName(), v2 + 1); var v3 = new flash.geom.Matrix(); v3.translate(this.to.clip._x, this.to.clip._y); this.bd = new flash.display.BitmapData(this.to.clip._width, this.to.clip._height, true, 0); this.bd.draw(this.to.clip, v3, new flash.geom.ColorTransform(), 1, undefined, true); this.snapshot.attachBitmap(this.bd, v2 + 1); this.to.clip.removeMovieClip(); this.snapshot._alpha = 100; this.intervalID = setInterval(this, 'playTransition', 10); }; v2.playTransition = function () { this.snapshot._alpha -= 2; if (this.snapshot._alpha <= 0) { this.snapshot._alpha = 0; trace('remove snapshot na kraj na stop tranzition vo FadeOut'); this.snapshot.removeMovieClip(); this.bd.dispose(); clearInterval(this.intervalID); this.stopTransition(); } }; ASSetPropFlags(scr.FadeOut.prototype, null, 1); } #endinitclip } movieClip 9276 __Packages.utils.MovieClipProperties { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.MovieClipProperties) { var v1 = function (linkID, x, y, rot, xs, ys) { this.linkID = linkID; this.x = x; this.y = y; if (xs == undefined) { this.xs = 100; } else { this.xs = xs; } 100; if (ys == undefined) { this.ys = 100; } else { this.ys = ys; } 100; this.rot = rot; this.currentFrame = 1; this.tint = 0; }; utils.MovieClipProperties = v1; var v2 = v1.prototype; v2.attachClip = function (target) { var v2 = target.translateCameraToStage(this.x, this.y); trace('this.xs ' + this.xs); this.clip = target.attachMovie(this.linkID, utils.StringUtils.getUniqueName(), this.depth, {'_x': v2.x, '_y': v2.y, '_rotation': this.rot, '_xscale': this.xs, '_yscale': this.ys}); this.clip.gotoAndStop(this.currentFrame); this.setTint(this.tint); }; v2.setTint = function (tnt) { this.tint = tnt; utils.ClipUtils.setTint(this.clip, 0, this.tint); }; v2.removeClip = function () { this.currentFrame = this.clip._currentframe; this.clip.removeMovieClip(); this.clip = undefined; }; v2.getClip = function () { return this.clip; }; ASSetPropFlags(utils.MovieClipProperties.prototype, null, 1); } #endinitclip } movieClip 9277 __Packages.utils.ClipUtils { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.ClipUtils) { var v1 = function () {}; utils.ClipUtils = v1; var v2 = v1.prototype; v1.getFreeDepthNum = function (mc, dep) { var v1 = 0; while (mc.getInstanceAtDepth(dep + v1)) { ++v1; } return dep + v1; }; v1.setTint = function (mc, rgb, percent) { var v1 = new flash.geom.ColorTransform(); var v4 = new flash.geom.Transform(mc); var v6 = rgb >> 16; var v7 = rgb >> 8 & 255; var v5 = rgb & 255; var v2 = percent / 100; v1.redOffset = v6 * v2; v1.greenOffset = v7 * v2; v1.blueOffset = v5 * v2; v1.blueMultiplier = (100 - percent) / 100; v1.greenMultiplier = v1.blueMultiplier; v1.redMultiplier = v1.blueMultiplier; v4.colorTransform = v1; }; v1.setBmpTint = function (bmp, rgb, percent) { var v2 = utils.ClipUtils.getTintTransform(rgb, percent); var v1 = bmp.clone(); bmp.draw(v1, new flash.geom.Matrix(), v2); v1.dispose(); false; }; v1.getTintTransform = function (rgb, percent) { var v1 = new flash.geom.ColorTransform(); var v5 = rgb >> 16; var v6 = rgb >> 8 & 255; var v4 = rgb & 255; var v2 = percent / 100; v1.redOffset = v5 * v2; v1.greenOffset = v6 * v2; v1.blueOffset = v4 * v2; v1.blueMultiplier = (100 - percent) / 100; v1.greenMultiplier = v1.blueMultiplier; v1.redMultiplier = v1.blueMultiplier; return v1; }; v1.createFeeler = function (name, col, w) { var v2 = _global.stage.createEmptyMovieClip(name, _global.stage.getNextHighestDepth()); v2.lineStyle(1, col); v2.beginFill(col); v2.moveTo(-w, -w); v2.lineTo(w, -w); v2.lineTo(w, w); v2.lineTo(-w, w); v2.lineTo(-w, -w); v2.endFill(); return v2; }; ASSetPropFlags(utils.ClipUtils.prototype, null, 1); } #endinitclip } movieClip 9278 __Packages.utils.IClipEvents { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.IClipEvents) { _global.utils.IClipEvents = function () {}; } #endinitclip } movieClip 9279 __Packages.scr.WinScreen { #initclip if (!_global.scr) { _global.scr = new Object(); } if (!_global.scr.WinScreen) { var v1 = function (game_) { super(); trace('!!! WinScreen' + utils.Delegate.callDelayed); this.game = game_; this.game.mousePointer.clip.gotoAndStop('normal'); utils.Delegate = this.game.delegate; this.upgradScreenEntered = false; this.f = new scr.FadeIn(); this.r = new scr.FadeOut(); this.hasAttachTransition = false; this.hasRemoveTransition = false; this.isRemoving = false; this.addAttachTransition(this.f); this.addRemoveTransition(this.r); this.attachWinScreen(); }; scr.WinScreen = v1; scr.WinScreen extends utils.MovieClipProperties; var v2 = v1.prototype; _global.scr.WinScreen implements _global.utils.IClipEvents; v2.attachWinScreen = function () { this.depth = 1; this.clip = this.game.attachMovie('PROMOScreen_mc', 'PROMOScreen_mc', this.depth); this.target = MovieClip(this.game); this.game.sndCtrl.playWithFadeIn(this.game.soundsId.applause_snd, 1000, 32000); this.game.sndCtrl.playWithFadeIn(this.game.soundsId.applausewisle_snd, 1000, 32000); this.game.sndCtrl.playWithFadeIn(this.game.soundsId.slikanje_snd, 1000, 32000); this.game.sndCtrl.stopWithFadeOut(this.game.soundsId.titlescreen_snd, 1000); if (this.hasAttachTransition) { this.aTransition.startTransition(); } }; v2.attachClip = function () { this.clip = this.game.attachMovie('PROMOScreen_mc', 'PROMOScreen_mc', 1); if (this.game.interface_.saveLoadObject.isWinScreenShown(this.game.userName)) { this.clip.submitBtn._visible = false; } }; v2.addEvents = function () { this.clip.playDemo.btn.holder = this; this.clip.playDemo.btn.onPress = function () { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this._parent.playDemo.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.removeWinScreen(); }; this.clip.playDemo.btn.onRollOver = function () { this._parent.playDemo.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); }; this.clip.playDemo.btn.onRollOut = function () { this._parent.playDemo.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.clip.playDemo.btn.onReleaseOutside = function () { this._parent.playDemo.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.clip.downloadBtn.btn.holder = this; this.clip.downloadBtn.btn.onRelease = function () { getURL(_global.buygamelink, '_blank'); this._parent.download.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.clip.downloadBtn.btn.onRollOver = function () { this._parent.download.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); }; this.clip.downloadBtn.btn.onRollOut = function () { this._parent.download.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.clip.downloadBtn.btn.onReleaseOutside = function () { this._parent.download.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.clip.submitBtn.btn.holder = this; this.clip.submitBtn.btn.onPress = function () { this._parent.submit.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); _root.showHighscore('submit'); this._parent._visible = false; }; this.clip.submitBtn.btn.onRollOver = function () { this._parent.submit.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); }; this.clip.submitBtn.btn.onRollOut = function () { this._parent.submit.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.clip.submitBtn.btn.onReleaseOutside = function () { this._parent.submit.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; }; v2.checkForTrophies = function () { if (this.game.fastestStorkTrophy == true) { this.trophyRoom.FastestStorkOfTheWest.gotoAndStop(2); } if (this.game.weatherMasterTrophy == true) { this.trophyRoom.weatherMasterTrophy.gotoAndStop(2); } if (this.game.twinMasterTrophy == true) { this.trophyRoom.twinMaster.gotoAndStop(2); } if (this.game.tripletMasterTrophy == true) { this.trophyRoom.tripletMaster.gotoAndStop(2); if (this.game.tripletMasterTrophyShown == false) { this.game.tripletMasterTrophyShown = true; } } if (this.game.quadrupletFanTrophy == true) { this.trophyRoom.quadrupletFan.gotoAndStop(2); } if (this.game.expertGoalBusterTrophy == true) { this.trophyRoom.expertGoalBuster.gotoAndStop(2); } if (this.game.professorTrophy == true) { this.trophyRoom.professor.gotoAndStop(2); if (this.game.professorTrophyShown == false) { this.game.professorTrophyShown = true; } } if (this.game.innovatorTrophy == true) { this.trophyRoom.innovator.gotoAndStop(2); } if (this.game.slotMashineTrophy == true) { this.trophyRoom.slotMashineFreek.gotoAndStop(2); } if (this.game.comboFreakTrophy == true) { this.trophyRoom.comboFreek.gotoAndStop(2); } if (this.game.comboExpertTrophy == true) { this.trophyRoom.comboExpert.gotoAndStop(2); } if (this.game.comboholicTrophy == true) { this.trophyRoom.comboholic.gotoAndStop(2); } if (this.game.queenHeartsTrophy == true) { this.trophyRoom.queenHearts.gotoAndStop(2); } if (this.game.kingHeartsTrophy == true) { this.trophyRoom.kingHearts.gotoAndStop(2); } if (this.game.storkHeartsTrophy == true) { this.trophyRoom.storkHearts.gotoAndStop(2); } if (this.game.trophyHunter == true) { this.trophyRoom.TrophyHiunter.gotoAndStop(2); } }; v2.removeWinScreen = function () { this.isRemoving = true; if (this.hasRemoveTransition) { this.rTransition.startTransition(); } else { this.remove(); } }; v2.addAttachTransition = function (t) { this.aTransition = t; this.aTransition.addTransitionObject(this); this.aTransition.addEventListener('onAttach', this); this.hasAttachTransition = true; }; v2.addRemoveTransition = function (t) { this.rTransition = t; this.rTransition.addTransitionObject(this); this.rTransition.addEventListener('onRemove', this); this.hasRemoveTransition = true; }; v2.removeAttachTransition = function (t) { this.aTransition.removeEventListener('onAttach', this); this.hasAttachTransition = false; this.aTransition = undefined; }; v2.removeRemoveTransition = function (t) { this.rTransition.removeEventListener('onRemove', this); this.hasRemoveTransition = false; this.rTransition = undefined; }; v2.attach = function () { this.addEvents(); }; v2.remove = function () { delete utils.Delegate; this.game.newGame(); this.clip.removeMovieClip(); }; v2.onAttach = function () { this.attach(); }; v2.onRemove = function () { this.remove(); }; ASSetPropFlags(scr.WinScreen.prototype, null, 1); } #endinitclip } movieClip 9280 __Packages.trans.ClipTransitionUsers { #initclip if (!_global.trans) { _global.trans = new Object(); } if (!_global.trans.ClipTransitionUsers) { var v1 = function (holderClip, displayClip) { super(); this.holderClip = holderClip; this.displayClip = displayClip; this.frames = 6; this.showSparkle = false; this.appearing = true; }; trans.ClipTransitionUsers = v1; trans.ClipTransitionUsers extends utils.MovieClipProperties; var v2 = v1.prototype; v2.setHolderPosition = function (target, x, y, depth) { this.target = target; this.x = x; this.y = y; this.depth = depth; }; v2.takeSnapShot = function (mc) { var v6 = mc.getDepth(); this.snapShot = _root.createEmptyMovieClip('snapshot', 1500); var v4 = new flash.geom.Matrix(); v4.translate(mc._x, mc._y); var v5 = new flash.display.BitmapData(mc._width, mc._height, true, 0); v5.draw(mc, v4, new flash.geom.ColorTransform(), 1, undefined, true); this.snapShot.attachBitmap(v5, v6 + 1); mc._visible = false; }; v2.startTransition = function (appearing) { if (appearing != undefined) { this.appearing = appearing; } this.takeSnapShot(this.target); this.clip = this.snapShot.attachMovie(this.holderClip, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.x, '_y': this.y}); var v3 = this.clip.emptyClip; var v2 = v3.attachMovie(this.displayClip, utils.StringUtils.getUniqueName(), v3.getNextHighestDepth()); this.Screen.game.chooseProfileScreen = v2; this.Screen.setNames(); this.Screen.addEvents(); this.popupHolder = v3.createEmptyMovieClip(utils.StringUtils.getUniqueName(), v3.getNextHighestDepth()); var v5 = new flash.geom.Matrix(); this.popupHolder._x = -v2._width / 2; this.popupHolder._y = -v2._height / 2; var v4 = new flash.display.BitmapData(v2._width, v2._height, true, 13421772); v4.draw(v2, v5, new flash.geom.ColorTransform(), 1, undefined, true); this.popupHolder.attachBitmap(v4, this.depth, 'auto', true); v2.removeMovieClip(); this.clip.holder = this; utils.Delegate.callDelayed(this.clip, gotoAndPlay, 10, 2); }; v2.toPointTransition = function (destx, desty, tframe) { if (destx != undefined && desty != undefined) { this.destx = destx; this.desty = desty; if (tframe != undefined) { this.frames = tframe; } var v2 = this.frames * 40; this.startx = this.clip._x; this.starty = this.clip._y; this.xmove = (destx - this.clip._x) / v2; this.ymove = (desty - this.clip._y) / v2; this.t0 = getTimer(); clearInterval(this.intId); this.intId = setInterval(this, 'move', 40); } }; v2.move = function () { var v3 = getTimer(); var v2 = v3 - this.t0; if (v2 <= this.frames * 40) { this.clip._x = this.startx + v2 * this.xmove; this.clip._y = this.starty + v2 * this.ymove; } else { this.clip._x = this.destx; this.clip._y = this.desty; clearInterval(this.intId); if (this.appearing) { this.toClip(); } else { this.removeClip(); } } }; v2.toClip = function () { var v2 = this; v2.holder = this; v2.holder.popupHolder.removeMovieClip(); var v4 = v2.holder.clip.emptyClip; var v3 = v4.attachMovie(v2.holder.displayClip, utils.StringUtils.getUniqueName(), v4.getNextHighestDepth()); v2.holder.Screen.game.chooseProfileScreen = v3; v2.holder.Screen.setNames(); v2.holder.Screen.addEvents(); v3._x = -v3._width / 2; v3._y = -v3._height / 2; }; v2.removeClip = function () { var v3 = this; v3.holder = this; if (this.showSparkle) { var v2 = new MesgAnim.Fireworks(20, 'star'); v2.changeSparkleProperties(11.1, 3600); v2.setProperties(this.target, this.clip._x + 40, this.clip._y + 40); v2.startFireworks(); clearInterval(this.intId); } this.target._visible = true; this.snapShot.removeMovieClip(); this.clip.removeMovieClip(); }; ASSetPropFlags(trans.ClipTransitionUsers.prototype, null, 1); } #endinitclip } movieClip 9281 __Packages.scr.LevelInfoScreen { #initclip if (!_global.scr) { _global.scr = new Object(); } if (!_global.scr.LevelInfoScreen) { var v1 = function (game_) { super(); this.game = game_; this.game.mousePointer.clip.gotoAndStop('normal'); utils.Delegate = this.game.delegate; this.upgradScreenEntered = false; this.f = new scr.FadeIn(); this.r = new scr.FadeOut(); this.hasAttachTransition = false; this.hasRemoveTransition = false; this.isRemoving = false; this.addAttachTransition(this.f); this.addRemoveTransition(this.r); }; scr.LevelInfoScreen = v1; scr.LevelInfoScreen extends utils.MovieClipProperties; var v2 = v1.prototype; _global.scr.LevelInfoScreen implements _global.utils.IClipEvents; v2.attachLevelInfoScreen = function () { this.isRemoving = false; this.clip = this.game.attachMovie('levelInfoScreen_mc', 'levelInfoScreen_mc', 10); if (this.game.expertGoalReached == false && this.game.goalReached == false) { this.clip.continueBtn.ss._visible = false; this.clip.continueBtn.done._visible = false; } this.tabla1 = this.clip.attachMovie('tabla1', 'tabla1', 1, {'_x': 4, '_y': 414.3}); this.tabla2 = this.clip.attachMovie('tabla2', 'tabla2', 2, {'_x': 569.4, '_y': 414.3}); this.clip.continueBtn.swapDepths(7); this.tabla2.game = this.game; if (this.game.levelState == 'D') { this.tabla2.gotoAndStop(2); this.game.sndCtrl.stopWithFadeOut(this.game.soundsId.delivery_snd, 700); } else { if (this.game.levelState == 'F') { this.game.sndCtrl.stopWithFadeOut(this.game.soundsId.factory_snd, 700); this.tabla2.gotoAndStop(1); } } this.target = this.game; this.depth = 10; this.clip.levelNum.text = this.game.levelNum.toString(); this.game.sndCtrl.stopAllSounds(); if (this.game.expertGoalReached == true) { this.clip.attachMovie('StorkMedal', 'StorkMedal', 4, {'_x': 296, '_y': 243}); this.clip.reachedGoals.text = 'expert goal reached'; this.game.sndCtrl.playWithFadeIn(this.game.soundsId.goalreached_snd, 700, 32000); } else { if (this.game.goalReached == true) { this.clip.reachedGoals.text = 'goal reached'; this.clip.attachMovie('strkaverage', 'strkaverage', 4, {'_x': 316.9, '_y': 251}); this.game.sndCtrl.playWithFadeIn(this.game.soundsId.goalreached_snd, 700, 32000); } else { this.clip.reachedGoals.text = 'goal is not reached'; this.clip.attachMovie('Storksadcrying', 'Storksadcrying', 4, {'_x': 220, '_y': 369.9}); this.clip.nextLevel.gotoAndStop(2); this.game.sndCtrl.playWithFadeIn(this.game.soundsId.restartlevel_snd, 700, 32000); } } trace('trophyPopUp ' + this.clip.trophyPopUp()); this.checkForTrophies(); if (this.hasAttachTransition) { this.aTransition.startTransition(); } }; v2.setGlow = function (mc, blur) { var color = 16777215; var alpha = 0.9; var blurX = 0; var blurY = 0; var strength = 1; var quality = 3; var inner = false; var knockout = false; var sign = 1; mc.onEnterFrame = function () { if (blurX >= blur) { sign = -1; } blurX += sign * 3; blurY += sign * 3; var v3 = new flash.filters.GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout); var v2 = new Array(); v2.push(v3); this.filters = v2; if (blurX <= 0) { delete this.onEnterFrame; } }; }; v2.attachlevelPoints = function () { if (!this.isRemoving) { this.game.sndCtrl.stopSound(this.game.soundsId.trophylevelpoints_snd); this.game.sndCtrl.playSound(this.game.soundsId.trophylevelpoints_snd); } trace('attachlevelPoints'); this.tabla1.levelPoints.text = this.game.levelPoints.toString(); utils.Delegate.callDelayed(this, this.attachtotalPoints, 1000); }; v2.attachtotalPoints = function () { trace('attachtotalPoints'); if (!this.isRemoving) { this.game.sndCtrl.stopSound(this.game.soundsId.trophylevelpoints_snd); this.game.sndCtrl.playSound(this.game.soundsId.trophylevelpoints_snd); } this.tabla1.totalPoints.text = this.game.gamePoints.toString(); utils.Delegate.callDelayed(this, this.attachMEdal, 1000); }; v2.attachPlay = function () { trace('attachPlay'); this.tabla2.efficiency_clip.play(); this.tabla2.efficiency_clip.gotoAndPlay(2); utils.Delegate.callDelayed(this, this.attachmaxCombo, 1000); }; v2.attachmaxCombo = function () { trace('attachmaxCombo'); if (!this.isRemoving) { this.game.sndCtrl.stopSound(this.game.soundsId.trophylevelpoints_snd); this.game.sndCtrl.playSound(this.game.soundsId.trophylevelpoints_snd); } this.tabla2.maxCombo.text = this.game.maxCombo.toString(); }; v2.attachMEdal = function () { trace('attachMEdal'); if (this.game.expertGoalReached == true) { var v2 = this.clip.attachMovie('medal', 'medal', 3, {'_x': 192.4, '_y': 453.3}); v2.game = this.game; utils.Delegate.callDelayed(this, this.attachPlay, 1000); } else { utils.Delegate.callDelayed(this, this.attachPlay, 5); } }; v2.attachClip = function () { this.clip = this.game.attachMovie('levelInfoScreen_mc', 'levelInfoScreen_mc', 10); if (this.game.expertGoalReached == false && this.game.goalReached == false) { this.clip.continueBtn.ss._visible = false; this.clip.continueBtn.done._visible = false; } this.tabla1 = this.clip.attachMovie('tabla1', 'tabla1', 1, {'_x': 4, '_y': 414.3}); this.tabla2 = this.clip.attachMovie('tabla2', 'tabla2', 2, {'_x': 569.4, '_y': 414.3}); this.clip.continueBtn.swapDepths(7); this.tabla2.game = this.game; utils.Delegate.callDelayed(this, this.attachlevelPoints, 500); if (this.game.levelState == 'D') { this.tabla2.gotoAndStop(2); } else { if (this.game.levelState == 'F') { this.tabla2.gotoAndStop(1); } } this.clip.levelNum.text = this.game.levelNum.toString(); if (this.game.expertGoalReached == true) { this.clip.attachMovie('StorkMedal', 'StorkMedal', 4, {'_x': 296, '_y': 243}); this.clip.reachedGoals.text = 'expert goal reached'; } else { if (this.game.goalReached == true) { this.clip.reachedGoals.text = 'goal reached'; this.clip.attachMovie('strkaverage', 'strkaverage', 4, {'_x': 316.9, '_y': 251}); } else { this.clip.reachedGoals.text = 'goal is not reached'; this.clip.attachMovie('Storksadcrying', 'Storksadcrying', 4, {'_x': 220, '_y': 369.9}); this.clip.nextLevel.gotoAndStop(2); } } }; v2.removeLevelInfoScreen = function () { this.isRemoving = true; if (this.hasRemoveTransition) { this.rTransition.startTransition(); } else { this.remove(); } }; v2.checkForTrophies = function () { if (this.game.fastestStorkTrophy == true) { this.clip.FastestStorkOfTheWest.gotoAndStop(2); if (this.game.fastestStorkTrophyShown == false) { this.game.fastestStorkTrophyShown = true; } } if (this.game.weatherMasterTrophy == true) { this.clip.weatherMasterTrophy.gotoAndStop(2); if (this.game.weatherMasterTrophyShown == false) { this.game.weatherMasterTrophyShown = true; } } if (this.game.twinMasterTrophy == true) { this.clip.twinMaster.gotoAndStop(2); if (this.game.twinMasterTrophyShown == false) { this.game.twinMasterTrophyShown = true; } } if (this.game.tripletMasterTrophy == true) { this.clip.tripletMaster.gotoAndStop(2); if (this.game.tripletMasterTrophyShown == false) { this.game.tripletMasterTrophyShown = true; } } if (this.game.quadrupletFanTrophy == true) { this.clip.quadrupletFan.gotoAndStop(2); if (this.game.quadrupletFanTrophyShown == false) { this.game.quadrupletFanTrophyShown = true; } } if (this.game.expertGoalBusterTrophy == true) { this.clip.expertGoalBuster.gotoAndStop(2); if (this.game.expertGoalBusterTrophyShown == false) { this.game.expertGoalBusterTrophyShown = true; } } if (this.game.professorTrophy == true) { this.clip.professor.gotoAndStop(2); if (this.game.professorTrophyShown == false) { this.game.professorTrophyShown = true; } } if (this.game.innovatorTrophy == true) { this.clip.innovator.gotoAndStop(2); if (this.game.innovatorTrophyShown == false) { this.game.innovatorTrophyShown = true; } } if (this.game.slotMashineTrophy == true) { this.clip.slotMashineFreek.gotoAndStop(2); if (this.game.slotMashineTrophyShown == false) { this.game.slotMashineTrophyShown = true; } } if (this.game.comboFreakTrophy == true) { this.clip.comboFreek.gotoAndStop(2); if (this.game.comboFreakTrophyShown == false) { this.game.comboFreakTrophyShown = true; } } if (this.game.comboExpertTrophy == true) { this.clip.comboExpert.gotoAndStop(2); if (this.game.comboExpertTrophyShown == false) { this.game.comboExpertTrophyShown = true; } } if (this.game.comboholicTrophy == true) { this.clip.comboholic.gotoAndStop(2); if (this.game.comboholicTrophyShown == false) { this.game.comboholicTrophyShown = true; } } if (this.game.queenHeartsTrophy == true) { this.clip.queenHearts.gotoAndStop(2); if (this.game.queenHeartsTrophyShown == false) { this.game.queenHeartsTrophyShown = true; } } if (this.game.kingHeartsTrophy == true) { this.clip.kingHearts.gotoAndStop(2); if (this.game.kingHeartsTrophyShown == false) { this.game.kingHeartsTrophyShown = true; } } if (this.game.storkHeartsTrophy == true) { this.clip.storkHearts.gotoAndStop(2); if (this.game.storkHeartsTrophyShown == false) { this.game.storkHeartsTrophyShown = true; } } if (this.game.trophyHunter == true) { this.clip.TrophyHiunter.gotoAndStop(2); if (this.game.trophyHunterShown == false) { this.game.trophyHunterShown = true; } } }; v2.addEvents = function () { this.clip.nextLevel.holder = this; this.clip.nextLevel.onPress = function () { this.holder.stateRemove = 'startLevel'; this.holder.removeLevelInfoScreen(); }; this.clip.continueBtn.continueBtn.holder = this; this.clip.continueBtn.continueBtn.onPress = function () { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this.holder.stateRemove = 'showMap'; trace('%%%%showMap'); if (this.holder.game.expertGoalReached == true || this.holder.game.goalReached == true) { } else {} this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.removeLevelInfoScreen(); this._parent.ss.gotoAndStop(1); this._parent.restart.gotoAndStop(1); }; this.clip.continueBtn.continueBtn.onRollOver = function () { this._parent.ss.gotoAndStop(2); this._parent.restart.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); }; this.clip.continueBtn.continueBtn.onRollOut = function () { this._parent.ss.gotoAndStop(1); this._parent.restart.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.clip.continueBtn.continueBtn.onReleaseOutside = function () { this._parent.ss.gotoAndStop(1); this._parent.restart.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.clip.twinMaster.holder = this; this.clip.twinMaster.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop(2); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.twinMaster.holder = this; this.clip.twinMaster.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.twinMaster.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.tripletMaster.holder = this; this.clip.tripletMaster.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop(3); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.tripletMaster.holder = this; this.clip.tripletMaster.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.tripletMaster.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.quadrupletFan.holder = this; this.clip.quadrupletFan.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop(4); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.quadrupletFan.holder = this; this.clip.quadrupletFan.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.quadrupletFan.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.professor.holder = this; this.clip.professor.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop(6); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.professor.holder = this; this.clip.professor.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.professor.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.innovator.holder = this; this.clip.innovator.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop(7); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.innovator.holder = this; this.clip.innovator.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.innovator.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.slotMashineFreek.holder = this; this.clip.slotMashineFreek.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop(8); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.slotMashineFreek.holder = this; this.clip.slotMashineFreek.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.slotMashineFreek.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.comboFreek.holder = this; this.clip.comboFreek.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop(9); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.comboFreek.holder = this; this.clip.comboFreek.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.comboFreek.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.comboExpert.holder = this; this.clip.comboExpert.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop(10); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.comboExpert.holder = this; this.clip.comboExpert.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.comboExpert.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.comboholic.holder = this; this.clip.comboholic.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop(11); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.comboholic.holder = this; this.clip.comboholic.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.comboholic.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.queenHearts.holder = this; this.clip.queenHearts.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop(12); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.queenHearts.holder = this; this.clip.queenHearts.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.queenHearts.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.kingHearts.holder = this; this.clip.kingHearts.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop(5); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.kingHearts.holder = this; this.clip.kingHearts.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.kingHearts.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.storkHearts.holder = this; this.clip.storkHearts.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop(13); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.storkHearts.holder = this; this.clip.storkHearts.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.storkHearts.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.weatherMasterTrophy.holder = this; this.clip.weatherMasterTrophy.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop('weatherMasterTrophy'); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.weatherMasterTrophy.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.weatherMasterTrophy.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.FastestStorkOfTheWest.holder = this; this.clip.FastestStorkOfTheWest.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop('FastestStorkOfTheWest'); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.FastestStorkOfTheWest.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.FastestStorkOfTheWest.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.expertGoalBuster.holder = this; this.clip.expertGoalBuster.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop('expertGoalBuster'); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.expertGoalBuster.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.expertGoalBuster.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.TrophyHiunter.holder = this; this.clip.TrophyHiunter.onRollOver = function () { this.holder.clip.trophyPopUp.gotoAndStop('TrophyHiunter'); startDrag(this.holder.clip.trophyPopUp, true); }; this.clip.TrophyHiunter.onRollOut = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; this.clip.TrophyHiunter.onReleaseOutside = function () { this.holder.clip.trophyPopUp.stopDrag(); this.holder.clip.trophyPopUp.gotoAndStop(1); }; }; v2.addAttachTransition = function (t) { this.aTransition = t; this.aTransition.addTransitionObject(this); this.aTransition.addEventListener('onAttach', this); this.hasAttachTransition = true; }; v2.addRemoveTransition = function (t) { this.rTransition = t; this.rTransition.addTransitionObject(this); this.rTransition.addEventListener('onRemove', this); this.hasRemoveTransition = true; }; v2.removeAttachTransition = function (t) { this.aTransition.removeEventListener('onAttach', this); this.hasAttachTransition = false; this.aTransition = undefined; }; v2.removeRemoveTransition = function (t) { this.rTransition.removeEventListener('onRemove', this); this.hasRemoveTransition = false; this.rTransition = undefined; }; v2.attach = function () { this.addEvents(); this.checkForTrophies(); }; v2.remove = function () { delete utils.Delegate; this.clip.removeMovieClip(); if (this.stateRemove == 'newGame') { this.game.newGame(); } else { if (this.stateRemove == 'startLevel') { this.game.startLevel(); } else { if (this.stateRemove == 'showMap') { if (this.game.expertGoalReached == false && this.game.goalReached == false) { trace('this.game.gameEarlyPoints ' + this.game.gameEarlyPoints); trace('this.game.levelNum ' + this.game.levelNum); trace('this.game.Stork0Speed[this.game.levelNum-2] ' + this.game.Stork0Speed[this.game.levelNum - 2]); trace('this.game.Stork0Speed ' + this.game.Stork0Speed); trace('this.game.Storks[0].speed ' + this.game.Storks[0].speed); this.game.gamePoints = this.game.gameEarlyPoints; var v2 = this.game.levelNum - 2; if (this.game.levelNum == 1) { v2 = 0; } this.game.Storks[0].speed = this.game.Stork0Speed[v2]; this.game.Storks[0].power = this.game.Stork0Power[v2]; this.game.Storks[1].speed = this.game.Stork1Speed[v2]; this.game.Storks[1].power = this.game.Stork1Power[v2]; this.game.Storks[2].speed = this.game.Stork2Speed[v2]; this.game.Storks[2].power = this.game.Stork2Power[v2]; this.game.Storks[3].speed = this.game.Stork3Speed[v2]; this.game.Storks[3].power = this.game.Stork3Power[v2]; this.game.Storks[4].speed = this.game.Stork4Speed[v2]; this.game.Storks[4].power = this.game.Stork4Power[v2]; this.game.Storks[5].speed = this.game.Stork5Speed[v2]; this.game.Storks[5].power = this.game.Stork5Power[v2]; trace('$$$$ this.game.Storks[0].speed ' + this.game.Storks[0].speed); } else { if (this.game.levelState == 'D') { this.game.levelNum += 1; this.game.levelState = 'F'; } else { if (this.game.levelState == 'F') { this.game.levelState = 'D'; } } this.game.interface_.saveLoadObject.saveGame(this.game.userName); } if (this.game.levelNum == 5) { var v2 = this.game.levelNum - 2; if (this.game.levelNum == 1) { v2 = 0; } this.game.Stork0Speed[v2] = this.game.Stork0Speed[v2 - 1]; this.game.Stork0Power[v2] = this.game.Stork0Power[v2 - 1]; this.game.Stork1Speed[v2] = this.game.Stork1Speed[v2 - 1]; this.game.Stork1Power[v2] = this.game.Stork1Power[v2 - 1]; this.game.Stork2Speed[v2] = this.game.Stork2Speed[v2 - 1]; this.game.Stork2Power[v2] = this.game.Stork2Power[v2 - 1]; this.game.Stork3Speed[v2] = this.game.Stork3Speed[v2 - 1]; this.game.Stork3Power[v2] = this.game.Stork3Power[v2 - 1]; this.game.Stork4Speed[v2] = this.game.Stork4Speed[v2 - 1]; this.game.Stork4Power[v2] = this.game.Stork4Power[v2 - 1]; this.game.Stork5Speed[v2] = this.game.Stork5Speed[v2 - 1]; this.game.Stork5Power[v2] = this.game.Stork5Power[v2 - 1]; trace('$$$$ this.game.Storks[0].speed ' + this.game.Storks[0].speed); this.game.interface_.saveLoadObject.saveGame(this.game.userName); this.game.interface_.showWin(); } else { this.game.interface_.showMap(); } trace('RESTARTISHAMMM'); } } } }; v2.onAttach = function () { this.attach(); }; v2.onRemove = function () { this.remove(); }; ASSetPropFlags(scr.LevelInfoScreen.prototype, null, 1); } #endinitclip } movieClip 9282 __Packages.scr.UpgradeScreen { #initclip if (!_global.scr) { _global.scr = new Object(); } if (!_global.scr.UpgradeScreen) { var v1 = function (_game) { super(); this.game = _game; trace('UpgradeScreen'); trace('this.game.levelNum ' + this.game.levelNum); utils.Delegate = this.game.delegate; this.game.bedUpgrades[0] = this.game.bed1LevelUpgrades[this.game.levelNum - 2]; this.game.bedUpgrades[1] = this.game.bed2LevelUpgrades[this.game.levelNum - 2]; this.game.bedUpgrades[2] = this.game.bed3LevelUpgrades[this.game.levelNum - 2]; this.game.bathUpgrades[0] = this.game.bath1LevelUpgrades[this.game.levelNum - 2]; this.game.bathUpgrades[1] = this.game.bath2LevelUpgrades[this.game.levelNum - 2]; this.game.bathUpgrades[2] = this.game.bath3LevelUpgrades[this.game.levelNum - 2]; this.game.foodmakerUpgrades = this.game.foodmakerLevelUpgrades[this.game.levelNum - 2]; trace('this.game.foodmakerUpgrades ' + this.game.foodmakerUpgrades); this.game.EscSwitchUpgrades = this.game.EscSwitchLevelUpgrades[this.game.levelNum - 2]; this.game.toyboxUpgrades = this.game.toyboxLevelUpgrades[this.game.levelNum - 2]; this.game.cleaningStork = this.game.cleaningLevelStork[this.game.levelNum - 2]; this.game.gamePoints = this.game.gamePointsDelivery[this.game.levelNum - 2]; this.game.gameEarlyPoints = this.game.gamePoints; this.Bed = new Array(); this.Bath = new Array(); this.strelkaBedNum = new Array(); this.strelkaBathNum = new Array(); this.StrelkaBed = new Array(); this.StrelkaBath = new Array(); this.BedPrizes = [400, 570, 800]; this.BathPrizes = [400, 570, 800]; this.ToyboxPrizes = [0, 230, 960]; this.CleaningStorkPrizes = [1100, 2000]; this.FoodmakerPrizes = [0, 450, 1000]; this.StronstorkPrizes = [0, 2000, 3000]; this.EscSwitchPrizes = 1300; this.game.moneySpendForUpgrade = 0; this.f = new scr.FadeIn(); this.r = new scr.FadeOut(); this.hasAttachTransition = false; this.hasRemoveTransition = false; this.addAttachTransition(this.f); this.addRemoveTransition(this.r); this.attachUpgradeScreen(); }; scr.UpgradeScreen = v1; scr.UpgradeScreen extends utils.MovieClipProperties; var v2 = v1.prototype; _global.scr.UpgradeScreen implements _global.utils.IClipEvents; v2.showPopup = function () {}; v2.markObject = function () {}; v2.upgrade = function () {}; v2.attachUpgradeScreen = function () { trace('upgrade screen'); this.holder = this.game.attachMovie('holder', 'holder', 15, {'_x': 0, '_y': 0}); this.clip = this.holder; this.target = this.game; this.depth = 15; this.Background = this.holder.attachMovie('upgradeScreen_mc', 'upgradeScreen', 10); this.score_mc1 = this.holder.attachMovie('ZelenoOblace', 'ZelenoOblace', 11, {'_x': 3, '_y': -0.7}); this.score_mc1.textMsg.gotoAndStop('points'); this.score_mc1.num.text = this.game.gamePoints; var v3 = 26; var v2 = 0; while (v2 < this.game.bedUpgrades.length) { if (this.game.bedUpgrades[v2] > 0) { if (v2 == 0) { var v6 = 370.6; var v5 = 290; } else { if (v2 == 1) { var v6 = 456.7; var v5 = 290.6; } else { var v6 = 543; var v5 = 291.2; } } this.Bed[v2] = this.holder.attachMovie('upgrateKrevetcinja', 'upgrateKrevetcinja' + v2.toString(), v3++, {'_x': v6, '_y': v5}); if (this.game.bedUpgrades[v2] == 3) { this.Bed[v2].gotoAndStop(5); } else { var v4 = this.game.bedUpgrades[v2] + 1; this.Bed[v2].gotoAndStop(v4); } } else { trace('else ' + v2); if (v2 == 0) { var v6 = 370.6; var v5 = 290; } else { if (v2 == 1) { var v6 = 456.7; var v5 = 290.6; } else { var v6 = 543; var v5 = 291.2; } } this.Bed[v2] = this.holder.attachMovie('upgrateKrevetcinja', 'upgrateKrevetcinja' + v2.toString(), v3++, {'_x': v6, '_y': v5}); this.Bed[v2].gotoAndStop(1); } ++v2; } v2 = 0; while (v2 < this.game.bathUpgrades.length) { if (this.game.bathUpgrades[v2] > 0) { if (v2 == 0) { v6 = 156.6; v5 = 227; } else { if (v2 == 1) { v6 = 251.6; v5 = 276.9; } else { v6 = 128.3; v5 = 308; } } this.Bath[v2] = this.holder.attachMovie('upgrateKadi', 'upgrateKadi' + v2.toString(), v3++, {'_x': v6, '_y': v5}); if (this.game.bathUpgrades[v2] == 3) { this.Bath[v2].gotoAndStop(5); } else { var v4 = this.game.bathUpgrades[v2] + 1; this.Bath[v2].gotoAndStop(v4); } } else { trace('else ' + v2); if (v2 == 0) { v6 = 156.6; v5 = 227; } else { if (v2 == 1) { v6 = 251.6; v5 = 276.9; } else { v6 = 128.3; v5 = 308; } } this.Bath[v2] = this.holder.attachMovie('upgrateKadi', 'upgrateKadi' + v2.toString(), v3++, {'_x': v6, '_y': v5}); this.Bath[v2].gotoAndStop(1); } ++v2; } this.ToyBox = this.holder.attachMovie('upgrateToyBox', 'upgrateToyBox', v3++, {'_x': 475.3, '_y': 494.2}); if (this.game.toyboxUpgrades == 3) { this.ToyBox.gotoAndStop(4); } else { this.ToyBox.gotoAndStop(this.game.toyboxUpgrades); this.ToyBox.buy = false; } this.EscSwitch = this.holder.attachMovie('EscapeSwitch_upg', 'EscapeSwitch_upg', v3++, {'_x': 92.8, '_y': 461.4}); if (this.game.EscSwitchUpgrades == 0) { this.EscSwitch.gotoAndStop(1); } else { this.EscSwitch.gotoAndStop(3); } this.EscSwitch.buy = false; this.Continue = this.holder.attachMovie('continue_new', 'continue_new', v3++, {'_x': 646.3, '_y': 527.9}); this.Continue.ss._visible = false; this.Continue.restart._visible = false; this.Foodmaker = this.holder.attachMovie('upgrateFoodmakers', 'upgrateFoodmakers', v3++, {'_x': 302, '_y': 471}); if (this.game.foodmakerUpgrades == 3) { this.Foodmaker.gotoAndStop(4); } else { this.Foodmaker.gotoAndStop(this.game.foodmakerUpgrades); this.Foodmaker.buy = false; } this.cleaningStork = this.holder.attachMovie('upgradeCleaningStork', 'upgradeCleaningStork', v3++, {'_x': 223.5, '_y': 404}); if (this.game.cleaningStork == 0) { this.cleaningStork.gotoAndStop(1); } else { if (this.game.cleaningStork == 1) { this.cleaningStork.gotoAndStop(2); } else { if (this.game.cleaningStork == 2) { this.cleaningStork.gotoAndStop(4); } } } if (this.hasAttachTransition) { this.aTransition.startTransition(); } }; v2.attachClip = function () { this.holder = this.game.attachMovie('holder', 'holder', 15, {'_x': 0, '_y': 0}); this.clip = this.holder; this.target = this.game; this.depth = 15; this.Background = this.holder.attachMovie('upgradeScreen_mc', 'upgradeScreen', 10); this.score_mc1 = this.holder.attachMovie('ZelenoOblace', 'ZelenoOblace', 11, {'_x': 3, '_y': -0.7}); this.score_mc1.textMsg.gotoAndStop('points'); this.score_mc1.num.text = this.game.gamePoints; var v3 = 26; var v2 = 0; while (v2 < this.game.bedUpgrades.length) { if (this.game.bedUpgrades[v2] > 0) { if (v2 == 0) { var v6 = 370.6; var v5 = 290; } else { if (v2 == 1) { var v6 = 456.7; var v5 = 290.6; } else { var v6 = 543; var v5 = 291.2; } } this.Bed[v2] = this.holder.attachMovie('upgrateKrevetcinja', 'upgrateKrevetcinja' + v2.toString(), v3++, {'_x': v6, '_y': v5}); var v4 = this.game.bedUpgrades[v2] + 1; this.Bed[v2].gotoAndStop(v4); if (this.game.bedUpgrades[v2] == 3) { v4 = this.game.bedUpgrades[v2] + 2; this.Bed[v2].gotoAndStop(v4); } } else { trace('else ' + v2); if (v2 == 0) { var v6 = 370.6; var v5 = 290; } else { if (v2 == 1) { var v6 = 456.7; var v5 = 290.6; } else { var v6 = 543; var v5 = 291.2; } } this.Bed[v2] = this.holder.attachMovie('upgrateKrevetcinja', 'upgrateKrevetcinja' + v2.toString(), v3++, {'_x': v6, '_y': v5}); this.Bed[v2].gotoAndStop(1); } ++v2; } v2 = 0; while (v2 < this.game.bathUpgrades.length) { if (this.game.bathUpgrades[v2] > 0) { if (v2 == 0) { v6 = 156.6; v5 = 227; } else { if (v2 == 1) { v6 = 251.6; v5 = 276.9; } else { v6 = 128.3; v5 = 308; } } this.Bath[v2] = this.holder.attachMovie('upgrateKadi', 'upgrateKadi' + v2.toString(), v3++, {'_x': v6, '_y': v5}); var v4 = this.game.bathUpgrades[v2] + 1; this.Bath[v2].gotoAndStop(v4); if (this.game.bathUpgrades[v2] == 3) { v4 = this.game.bathUpgrades[v2] + 2; this.Bath[v2].gotoAndStop(v4); } } else { trace('else ' + v2); if (v2 == 0) { v6 = 156.6; v5 = 227; } else { if (v2 == 1) { v6 = 251.6; v5 = 276.9; } else { v6 = 128.3; v5 = 308; } } this.Bath[v2] = this.holder.attachMovie('upgrateKadi', 'upgrateKadi' + v2.toString(), v3++, {'_x': v6, '_y': v5}); this.Bath[v2].gotoAndStop(1); } ++v2; } this.ToyBox = this.holder.attachMovie('upgrateToyBox', 'upgrateToyBox', v3++, {'_x': 475.3, '_y': 494.2}); if (this.game.toyboxUpgrades == 3) { this.ToyBox.gotoAndStop(4); } else { this.ToyBox.gotoAndStop(this.game.toyboxUpgrades); this.ToyBox.buy = false; } this.EscSwitch = this.holder.attachMovie('EscapeSwitch_upg', 'EscapeSwitch_upg', v3++, {'_x': 92.8, '_y': 461.4}); if (this.game.EscSwitchUpgrades == 0) { this.EscSwitch.gotoAndStop(1); } else { this.EscSwitch.gotoAndStop(3); } this.Continue = this.holder.attachMovie('continue_new', 'continue_new', v3++, {'_x': 646.3, '_y': 527.9}); this.Continue.ss._visible = false; this.Continue.restart._visible = false; this.Foodmaker = this.holder.attachMovie('upgrateFoodmakers', 'upgrateFoodmakers', v3++, {'_x': 302, '_y': 471}); if (this.game.foodmakerUpgrades == 3) { this.Foodmaker.gotoAndStop(4); } else { this.Foodmaker.gotoAndStop(this.game.foodmakerUpgrades); this.Foodmaker.buy = false; } this.cleaningStork = this.holder.attachMovie('upgradeCleaningStork', 'upgradeCleaningStork', v3++, {'_x': 223.5, '_y': 404}); if (this.game.cleaningStork == 0) { this.cleaningStork.gotoAndStop(1); } else { if (this.game.cleaningStork == 1) { this.cleaningStork.gotoAndStop(2); } else { if (this.game.cleaningStork == 2) { this.cleaningStork.gotoAndStop(4); } } } this.holder.attachMovie('AnimationBlimp', 'AnimationBlimp', 111111, {'_x': 400, '_y': 300}); this.game.sndCtrl.stopSound(this.game.soundsId.readyText_snd); this.game.sndCtrl.playSound(this.game.soundsId.readyText_snd); this.addEvents(); }; v2.removeUpgradeScreen = function () {}; v2.attachUpgradePopup = function (what, where, frame, string, frame1) { this.black_back = this.holder.attachMovie('black_background', 'black_background', 9500, {'_x': 0, '_y': 0}); var v2 = new trans.ClipTransitionFactory('Cloud_scale_IN', 'upgrade_popUp'); trace('what._x ' + what._x + ' what._y ' + what._y); v2.setHolderPosition(this.holder, what._x + what.arrow._x, what._y + what.arrow._y, 10000, frame, string, frame1); v2.startTransition(); v2.toPointTransition(400, 300, 6); v2.screen = this; v2.klip = what; v2.where = where; v2.string = string; v2.frame = frame; v2.frame1 = frame1; v2.num = 3; }; v2.removeUpgradePopup = function () { trace('removeUpgradePopup()'); this.UpgradePopup.removeMovieClip(); this.UpgradePopup = undefined; }; v2.checkForUpgrades = function () { this.game.allUpgradesFactory = true; var v2 = 0; while (v2 < 3) { if (this.game.bedUpgrades[v2] == 3 && this.game.bathUpgrades[v2] == 3) { trace('continue'); } else { this.game.allUpgradesFactory = false; break; } ++v2; } if (this.game.allUpgradesFactory == true) { if (this.game.foodmakerUpgrades == 3 && this.game.toyboxUpgrades == 3 && this.game.cleaningStork >= 2 && this.game.EscSwitchUpgrades == 1) { trace('you win the innovatorTrophy'); } else { this.game.allUpgradesFactory = false; } } }; v2.addEvents1 = function () { this.UpgradePopup.cancel_btn.holder = this; this.UpgradePopup.cancel_btn.onRollOver = function () { this.gotoAndStop(2); }; this.UpgradePopup.cancel_btn.holder = this; this.UpgradePopup.cancel_btn.onRollOut = function () { this.gotoAndStop(1); }; this.UpgradePopup.cancel_btn.holder = this; this.UpgradePopup.cancel_btn.onPress = function () { trace('this.UpgradePopup.cancel_btn.onPress'); trace('this.holder.UpgradePopup.where ' + this.holder.UpgradePopup.where); this.holder.UpgradePopup.clip.gotoAndStop(this.holder.UpgradePopup.where); this.holder.removeUpgradePopup(); this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); }; this.UpgradePopup.upgrade_btn.holder = this; this.UpgradePopup.upgrade_btn.onRollOver = function () { this.gotoAndStop(2); }; this.UpgradePopup.upgrade_btn.holder = this; this.UpgradePopup.upgrade_btn.onRollOut = function () { this.gotoAndStop(1); }; this.UpgradePopup.upgrade_btn.holder = this; this.UpgradePopup.upgrade_btn.onPress = function () { trace('this.UpgradePopup.upgrade_btn.onPress'); this.holder.ActionOnPress(this.holder.UpgradePopup.clip); this.holder.removeUpgradePopup(); this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); }; }; v2.addEvents = function () { this.Continue.continueBtn.holder_ = this; this.Continue.continueBtn.onPress = function () { this.holder_.game.sndCtrl.stopSound(this.holder_.game.soundsId.mouseclick_snd); this.holder_.game.sndCtrl.playSound(this.holder_.game.soundsId.mouseclick_snd); this.holder_.game.mousePointer.clip.gotoAndStop('normal'); this._parent.done.gotoAndStop(1); if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { trace('<upgeat<createDelivery'); if (this.holder_.hasRemoveTransition) { this.holder_.rTransition.startTransition(); } else { this.holder_.remove(); } } } }; this.Continue.continueBtn.onRollOver = function () { this._parent.done.gotoAndStop(2); this.holder_.game.mousePointer.clip.gotoAndStop('finger'); }; this.Continue.continueBtn.onRollOut = function () { this._parent.done.gotoAndStop(1); this.holder_.game.mousePointer.clip.gotoAndStop('normal'); }; this.Continue.continueBtn.onReleaseOutside = function () { this._parent.done.gotoAndStop(1); this.holder_.game.mousePointer.clip.gotoAndStop('normal'); }; var v2 = 0; while (v2 <= 2) { trace('i ' + v2); trace('@@@@@@@@@this.strelkaBedNum[i] ' + this.strelkaBedNum[v2]); trace('######################this.strelkaBedNum[i] ' + this.strelkaBedNum[v2]); this.Bed[v2].clip.holder_ = this; this.Bed[v2].clip.index = v2; this.Bed[v2].clip.onRollOver = function () { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { if (this.holder_.game.bedUpgrades[this.index] < 3) { this.holder_.explPopUpBed = this.holder_.holder.attachMovie('ExplainClouds', utils.StringUtils.getUniqueName(), 1000, {'_x': this.holder_.Bed[this.index]._x - 50, '_y': this.holder_.Bed[this.index]._y - 100}); var v3 = this.holder_.game.bedUpgrades[this.index] + 1; var v2 = 'bed' + v3.toString(); trace('placeForStop ' + v2); this.holder_.explPopUpBed.textForHelpCloud.gotoAndStop(v2); this.holder_.explPopUpBed.whichHelpCloud.gotoAndStop(v2); if (this.holder_.BedPrizes[this.holder_.game.bedUpgrades[this.index]] <= this.holder_.game.gamePoints) { this.holder_.explPopUpBed.gotoAndStop(1); var v4 = this.holder_.game.bedUpgrades[this.index] + 2; this.holder_.Bed[this.index].gotoAndStop(v4); } else { this.holder_.explPopUpBed.gotoAndStop(2); var v4 = this.holder_.game.bedUpgrades[this.index] + 1; this.holder_.Bed[this.index].gotoAndStop(v4); } this.holder_.mcFadeIn(this.holder_.explPopUpBed, 500); } } } }; this.Bed[v2].clip.holder_ = this; this.Bed[v2].clip.index = v2; this.Bed[v2].clip.onRollOut = function () { if (this.holder_.game.bedUpgrades[this.index] < 3) { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { var v2 = this.holder_.game.bedUpgrades[this.index] + 1; this.holder_.Bed[this.index].gotoAndStop(v2); this.holder_.mcFadeOut(this.holder_.explPopUpBed, 500); } } } }; this.Bed[v2].clip.holder_ = this; this.Bed[v2].clip.index = v2; this.Bed[v2].clip.onPress = function () { if (!this.holder_.black_back) { if (this.holder_.game.bedUpgrades[this.index] < 3) { this.holder_.game.sndCtrl.stopSound(this.holder_.game.soundsId.mouseclick_snd); this.holder_.game.sndCtrl.playSound(this.holder_.game.soundsId.mouseclick_snd); this.holder_.explPopUpBed.removeMovieClip(); if (this.holder_.BedPrizes[this.holder_.game.bedUpgrades[this.index]] <= this.holder_.game.gamePoints) { var v3 = this.holder_.game.bedUpgrades[this.index] + 1; var v2 = 'bed' + (this.holder_.game.bedUpgrades[this.index] + 1).toString(); this.holder_.attachUpgradePopup(this.holder_.Bed[this.index], v3, 1, v2, 1); } else { var v3 = this.holder_.game.bedUpgrades[this.index] + 1; var v2 = 'bed' + (this.holder_.game.bedUpgrades[this.index] + 1).toString(); this.holder_.attachUpgradePopup(this.holder_.Bed[this.index], v3, 2, v2, 1); } } } }; ++v2; } v2 = 0; while (v2 <= 2) { this.Bath[v2].clip.holder_ = this; this.Bath[v2].clip.index = v2; this.Bath[v2].clip.onRollOver = function () { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { if (this.holder_.game.bathUpgrades[this.index] < 3) { this.holder_.explPopUpBath = this.holder_.holder.attachMovie('ExplainClouds', utils.StringUtils.getUniqueName(), 1010, {'_x': this.holder_.Bath[this.index]._x - 15, '_y': this.holder_.Bath[this.index]._y - 50}); var v3 = this.holder_.game.bathUpgrades[this.index] + 1; var v2 = 'bath' + v3.toString(); trace('placeForStop ' + v2); this.holder_.explPopUpBath.textForHelpCloud.gotoAndStop(v2); this.holder_.explPopUpBath.whichHelpCloud.gotoAndStop(v2); if (this.holder_.BathPrizes[this.holder_.game.bathUpgrades[this.index]] <= this.holder_.game.gamePoints) { this.holder_.explPopUpBath.gotoAndStop(1); var v4 = this.holder_.game.bathUpgrades[this.index] + 2; this.holder_.Bath[this.index].gotoAndStop(v4); } else { this.holder_.explPopUpBath.gotoAndStop(2); var v4 = this.holder_.game.bathUpgrades[this.index] + 1; this.holder_.Bath[this.index].gotoAndStop(v4); } this.holder_.mcFadeIn(this.holder_.explPopUpBath, 500); } } } }; this.Bath[v2].clip.holder_ = this; this.Bath[v2].clip.index = v2; this.Bath[v2].clip.onRollOut = function () { if (this.holder_.game.bathUpgrades[this.index] < 3) { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { var v2 = this.holder_.game.bathUpgrades[this.index] + 1; this.holder_.Bath[this.index].gotoAndStop(v2); this.holder_.mcFadeOut(this.holder_.explPopUpBath, 500); } } } }; this.Bath[v2].clip.holder_ = this; this.Bath[v2].clip.index = v2; this.Bath[v2].clip.onPress = function () { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { if (this.holder_.game.bathUpgrades[this.index] < 3) { this.holder_.game.sndCtrl.stopSound(this.holder_.game.soundsId.mouseclick_snd); this.holder_.game.sndCtrl.playSound(this.holder_.game.soundsId.mouseclick_snd); this.holder_.explPopUpBath.removeMovieClip(); if (this.holder_.BathPrizes[this.holder_.game.bathUpgrades[this.index]] <= this.holder_.game.gamePoints) { var v2 = 'bath' + (this.holder_.game.bathUpgrades[this.index] + 1).toString(); var v3 = this.holder_.game.bathUpgrades[this.index] + 1; this.holder_.attachUpgradePopup(this.holder_.Bath[this.index], v3, 1, v2, 1); } else { var v2 = 'bath' + (this.holder_.game.bathUpgrades[this.index] + 1).toString(); var v3 = this.holder_.game.bathUpgrades[this.index] + 1; this.holder_.attachUpgradePopup(this.holder_.Bath[this.index], v3, 2, v2, 1); } } } } }; ++v2; } this.Foodmaker.holder_ = this; this.Foodmaker.onRollOver = function () { trace('FOODMAKER ON ROLLOVER'); if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { if (this.holder_.game.foodmakerUpgrades < 3) { this.holder_.explPopUpFoodmaker = this.holder_.holder.attachMovie('ExplainClouds', utils.StringUtils.getUniqueName(), 1020, {'_x': this._x - 50, '_y': this._y - 100}); var v3 = this.holder_.game.foodmakerUpgrades + 1; var v2 = 'foodmaker' + v3.toString(); trace('placeForStop ' + v2); this.holder_.explPopUpFoodmaker.textForHelpCloud.gotoAndStop(v2); this.holder_.explPopUpFoodmaker.whichHelpCloud.gotoAndStop(v2); if (this.holder_.FoodmakerPrizes[this.holder_.game.foodmakerUpgrades] <= this.holder_.game.gamePoints) { this.holder_.explPopUpFoodmaker.gotoAndStop(1); v3 = this.holder_.game.foodmakerUpgrades + 1; this.gotoAndStop(v3); } else { this.holder_.explPopUpFoodmaker.gotoAndStop(2); v3 = this.holder_.game.foodmakerUpgrades; this.gotoAndStop(v3); } this.holder_.mcFadeIn(this.holder_.explPopUpFoodmaker, 500); } } } }; this.Foodmaker.holder_ = this; this.Foodmaker.onRollOut = function () { if (this.holder_.game.foodmakerUpgrades < 3) { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { var v2 = this.holder_.game.foodmakerUpgrades; this.gotoAndStop(v2); this.holder_.mcFadeOut(this.holder_.explPopUpFoodmaker, 500); } } } }; this.Foodmaker.holder_ = this; this.Foodmaker.onPress = function () { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { if (this.holder_.game.foodmakerUpgrades < 3) { this.holder_.game.sndCtrl.stopSound(this.holder_.game.soundsId.mouseclick_snd); this.holder_.game.sndCtrl.playSound(this.holder_.game.soundsId.mouseclick_snd); this.holder_.explPopUpFoodmaker.removeMovieClip(); if (this.holder_.FoodmakerPrizes[this.holder_.game.foodmakerUpgrades] <= this.holder_.game.gamePoints) { var v2 = 'foodmaker' + (this.holder_.game.foodmakerUpgrades + 1).toString(); trace('s ' + v2); var v3 = this.holder_.game.foodmakerUpgrades; this.holder_.attachUpgradePopup(this, v3, 1, v2, 1); } else { var v2 = 'foodmaker' + (this.holder_.game.foodmakerUpgrades + 1).toString(); trace('s ' + v2); var v3 = this.holder_.game.foodmakerUpgrades; this.holder_.attachUpgradePopup(this, v3, 2, v2, 1); } } } } }; this.ToyBox.holder_ = this; this.ToyBox.onRollOver = function () { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { trace('this.ToyBox.onRollOver'); trace('this.holder_.game.toyboxUpgrades ' + this.holder_.game.toyboxUpgrades); if (this.holder_.game.toyboxUpgrades < 3) { this.holder_.explPopUpToybox = this.holder_.holder.attachMovie('ExplainClouds', utils.StringUtils.getUniqueName(), 1030, {'_x': this._x - 70, '_y': this._y - 130}); var v3 = this.holder_.game.toyboxUpgrades + 1; var v2 = 'toybox' + v3.toString(); trace('placeForStop ' + v2); this.holder_.explPopUpToybox.textForHelpCloud.gotoAndStop(v2); this.holder_.explPopUpToybox.whichHelpCloud.gotoAndStop(v2); if (this.holder_.ToyboxPrizes[this.holder_.game.toyboxUpgrades] <= this.holder_.game.gamePoints) { this.holder_.explPopUpToybox.gotoAndStop(1); v3 = this.holder_.game.toyboxUpgrades + 1; this.gotoAndStop(v3); } else { this.holder_.explPopUpToybox.gotoAndStop(2); v3 = this.holder_.game.toyboxUpgrades; this.gotoAndStop(v3); } this.holder_.mcFadeIn(this.holder_.explPopUpToybox, 500); } } } }; this.ToyBox.holder_ = this; this.ToyBox.onRollOut = function () { if (this.holder_.game.toyboxUpgrades < 3) { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { trace('this.ToyBox.onRollOut'); trace('this.holder_.game.toyboxUpgrades ' + this.holder_.game.toyboxUpgrades); var v2 = this.holder_.game.toyboxUpgrades; this.gotoAndStop(v2); this.holder_.mcFadeOut(this.holder_.explPopUpToybox, 500); } } } }; this.ToyBox.holder_ = this; this.ToyBox.onPress = function () { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { trace('this.ToyBox.onPress'); if (this.holder_.game.toyboxUpgrades < 3) { this.holder_.game.sndCtrl.stopSound(this.holder_.game.soundsId.mouseclick_snd); this.holder_.game.sndCtrl.playSound(this.holder_.game.soundsId.mouseclick_snd); this.holder_.explPopUpToybox.removeMovieClip(); if (this.holder_.ToyboxPrizes[this.holder_.game.toyboxUpgrades] <= this.holder_.game.gamePoints) { var v2 = 'toybox' + (this.holder_.game.toyboxUpgrades + 1).toString(); var v3 = this.holder_.game.toyboxUpgrades; this.holder_.attachUpgradePopup(this, v3, 1, v2, 1); } else { var v2 = 'toybox' + (this.holder_.game.toyboxUpgrades + 1).toString(); var v3 = this.holder_.game.toyboxUpgrades; this.holder_.attachUpgradePopup(this, v3, 2, v2, 1); } } } } }; this.EscSwitch.holder_ = this; this.EscSwitch.onRollOver = function () { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { trace('this.ToyBox.onRollOver'); trace('this.holder_.game.toyboxUpgrades ' + this.holder_.game.EscSwitchUpgrades); if (this.holder_.game.EscSwitchUpgrades == 0) { var v3 = this.holder_.game.EscSwitchUpgrades + 2; this.gotoAndStop(v3); this.holder_.explPopUpEscSwitch = this.holder_.holder.attachMovie('ExplainClouds', utils.StringUtils.getUniqueName(), 1030, {'_x': this._x + 100, '_y': this._y - 130}); var v2 = 'EscSwitch1'; trace('placeForStop ' + v2); this.holder_.explPopUpEscSwitch.textForHelpCloud.gotoAndStop(v2); this.holder_.explPopUpEscSwitch.whichHelpCloud.gotoAndStop(v2); if (this.holder_.EscSwitchPrizes <= this.holder_.game.gamePoints) { this.holder_.explPopUpEscSwitch.gotoAndStop(1); v3 = this.holder_.game.EscSwitchUpgrades + 2; this.gotoAndStop(v3); } else { this.holder_.explPopUpEscSwitch.gotoAndStop(2); v3 = this.holder_.game.EscSwitchUpgrades + 1; this.gotoAndStop(v3); } this.holder_.mcFadeIn(this.holder_.explPopEscSwitch, 500); } } } }; this.EscSwitch.holder_ = this; this.EscSwitch.onRollOut = function () { if (this.holder_.game.EscSwitchUpgrades == 0) { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { trace('this.ToyBox.onRollOut'); trace('this.holder_.game.toyboxUpgrades ' + this.holder_.game.EscSwitchUpgrades); var v2 = this.holder_.game.EscSwitchUpgrades + 1; this.gotoAndStop(v2); this.holder_.mcFadeOut(this.holder_.explPopUpEscSwitch, 500); } } } }; this.EscSwitch.holder_ = this; this.EscSwitch.onPress = function () { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { trace('this.ToyBox.onPress'); if (this.holder_.game.EscSwitchUpgrades == 0) { this.holder_.game.sndCtrl.stopSound(this.holder_.game.soundsId.mouseclick_snd); this.holder_.game.sndCtrl.playSound(this.holder_.game.soundsId.mouseclick_snd); this.holder_.explPopUpEscSwitch.removeMovieClip(); if (this.holder_.EscSwitchPrizes <= this.holder_.game.gamePoints) { var v2 = 'EscSwitch1'; var v3 = this.holder_.game.EscSwitchUpgrades + 1; this.holder_.attachUpgradePopup(this, v3, 1, v2, 1); } else { var v2 = 'EscSwitch1'; var v3 = this.holder_.game.EscSwitchUpgrades + 1; this.holder_.attachUpgradePopup(this, v3, 2, v2, 1); } } } } }; this.cleaningStork.clip.holder_ = this; this.cleaningStork.clip.onRollOver = function () { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { if (this.holder_.game.cleaningStork < 2) { this.holder_.explPopUpStork = this.holder_.holder.attachMovie('ExplainClouds', utils.StringUtils.getUniqueName(), 1040, {'_x': this.holder_.cleaningStork._x - 50, '_y': this.holder_.cleaningStork._y - 50}); var v3 = this.holder_.game.cleaningStork + 1; var v2 = 'cleaningStork' + v3.toString(); trace('placeForStop ' + v2); this.holder_.explPopUpStork.textForHelpCloud.gotoAndStop(v2); this.holder_.explPopUpStork.whichHelpCloud.gotoAndStop(v2); if (this.holder_.CleaningStorkPrizes[this.holder_.game.cleaningStork] <= this.holder_.game.gamePoints) { this.holder_.explPopUpStork.gotoAndStop(1); var v4 = this.holder_.game.cleaningStork + 2; this.holder_.cleaningStork.gotoAndStop(v4); } else { this.holder_.explPopUpStork.gotoAndStop(2); var v4 = this.holder_.game.cleaningStork + 1; this.holder_.cleaningStork.gotoAndStop(v4); } this.holder_.mcFadeIn(this.holder_.explPopUpStork, 500); } } } }; this.cleaningStork.clip.holder_ = this; this.cleaningStork.clip.onRollOut = function () { if (this.holder_.game.cleaningStork < 2) { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { trace('this.holder_.game.cleaningStork+1 ' + this.holder_.game.cleaningStork + 1); var v2 = this.holder_.game.cleaningStork + 1; this.holder_.cleaningStork.gotoAndStop(v2); this.holder_.mcFadeOut(this.holder_.explPopUpStork, 500); } } } }; this.cleaningStork.clip.holder_ = this; this.cleaningStork.clip.onPress = function () { if (!this.holder_.black_back) { if (!this.holder_.UpgradePopup) { if (this.holder_.game.cleaningStork < 2) { this.holder_.game.sndCtrl.stopSound(this.holder_.game.soundsId.mouseclick_snd); this.holder_.game.sndCtrl.playSound(this.holder_.game.soundsId.mouseclick_snd); this.holder_.explPopUpStork.removeMovieClip(); if (this.holder_.CleaningStorkPrizes[this.holder_.game.cleaningStork] <= this.holder_.game.gamePoints) { var v2 = 'cleaningstork' + (this.holder_.game.cleaningStork + 1).toString(); var v3 = this.holder_.game.cleaningStork + 2; this.holder_.attachUpgradePopup(this.holder_.cleaningStork, v3, 1, v2, 2); } else { var v2 = 'empty' + (this.holder_.game.cleaningStork + 1).toString(); var v3 = this.holder_.game.cleaningStork + 2; this.holder_.attachUpgradePopup(this.holder_.cleaningStork, v3, 2, v2, 1); } } } } }; }; v2.ActionOnPress = function (clip) { trace('ActionOnPress'); this.black_back.removeMovieClip(); this.black_back = undefined; var v2 = 0; while (v2 <= 2) { if (clip == this.Bed[v2]) { trace('krevet e'); if (this.game.bedUpgrades[v2] < 3) { if (this.BedPrizes[this.game.bedUpgrades[v2]] <= this.game.gamePoints) { var v4 = this.game.bedUpgrades[v2] + 2; this.Bed[v2].gotoAndStop(v4); this.Bed[v2].buy = true; this.game.bedUpgrades[v2] += 1; if (this.game.bedUpgrades[v2] == 3) { this.Bed[v2].gotoAndStop(5); } this.game.gamePoints -= this.BedPrizes[this.game.bedUpgrades[v2] - 1]; this.game.moneySpendForUpgrade += this.BedPrizes[this.game.bedUpgrades[v2] - 1]; this.score_mc1.num.text = this.game.gamePoints; } } } ++v2; } v2 = 0; while (v2 <= 2) { if (clip == this.Bath[v2]) { trace('kada e'); if (this.game.bathUpgrades[v2] < 3) { if (this.BathPrizes[this.game.bathUpgrades[v2]] <= this.game.gamePoints) { v4 = this.game.bathUpgrades[v2] + 2; this.Bath[v2].gotoAndStop(v4); this.Bath[v2].buy = true; this.game.bathUpgrades[v2] += 1; if (this.game.bathUpgrades[v2] == 3) { this.Bath[v2].gotoAndStop(5); } this.game.gamePoints -= this.BathPrizes[this.game.bathUpgrades[v2] - 1]; this.game.moneySpendForUpgrade += this.BathPrizes[this.game.bathUpgrades[v2] - 1]; this.score_mc1.num.text = this.game.gamePoints; } } } ++v2; } if (clip == this.Foodmaker) { trace('foodmaker e'); if (this.game.foodmakerUpgrades < 3) { if (this.FoodmakerPrizes[this.game.foodmakerUpgrades] <= this.game.gamePoints) { if (this.game.foodmakerUpgrades < 3) { v4 = this.game.foodmakerUpgrades + 1; this.Foodmaker.gotoAndStop(v4); this.game.foodmakerUpgrades += 1; if (this.game.foodmakerUpgrades == 3) { this.Foodmaker.gotoAndStop(4); } this.game.gamePoints -= this.FoodmakerPrizes[this.game.foodmakerUpgrades - 1]; this.game.moneySpendForUpgrade += this.FoodmakerPrizes[this.game.foodmakerUpgrades - 1]; this.score_mc1.num.text = this.game.gamePoints; this.Foodmaker.buy = true; } } } } if (clip == this.ToyBox) { trace('toybox e'); if (this.game.toyboxUpgrades < 3) { if (this.ToyboxPrizes[this.game.toyboxUpgrades] <= this.game.gamePoints) { if (this.game.toyboxUpgrades < 3) { v4 = this.game.toyboxUpgrades + 1; this.ToyBox.gotoAndStop(v4); this.game.toyboxUpgrades += 1; if (this.game.toyboxUpgrades == 3) { this.ToyBox.gotoAndStop(4); } this.game.gamePoints -= this.ToyboxPrizes[this.game.toyboxUpgrades - 1]; this.game.moneySpendForUpgrade += this.ToyboxPrizes[this.game.toyboxUpgrades - 1]; this.score_mc1.num.text = this.game.gamePoints; this.ToyBox.buy = true; trace('this.holder_.game.gamePoints ' + this.game.gamePoints); } } } } if (clip == this.cleaningStork) { trace('cleaningStork e'); if (this.CleaningStorkPrizes[this.game.cleaningStork] <= this.game.gamePoints) { if (this.game.cleaningStork < 2) { if (this.game.cleaningStork == 0) { this.game.cleaningStork = 1; this.game.cleaningStorkApearing = 0; v4 = this.game.cleaningStork + 1; this.cleaningStork.gotoAndStop(v4); this.cleaningStork.buy = true; } else { if (this.game.cleaningStork == 1) { this.game.cleaningStork = 2; this.cleaningStork.gotoAndStop(4); this.cleaningStork.buy = true; } } } this.game.gamePoints -= this.CleaningStorkPrizes[this.game.cleaningStork - 1]; this.score_mc1.num.text = this.game.gamePoints; this.game.moneySpendForUpgrade += this.CleaningStorkPrizes[this.game.cleaningStork - 1]; } } if (clip == this.EscSwitch) { trace('cleaningStork e'); if (this.EscSwitchPrizes <= this.game.gamePoints) { if (this.game.EscSwitchUpgrades == 0) { this.game.EscSwitchUpgrades = 1; v4 = this.game.EscSwitchUpgrades + 2; this.EscSwitch.gotoAndStop(v4); this.EscSwitch.buy = true; } this.game.gamePoints -= this.EscSwitchPrizes; this.score_mc1.num.text = this.game.gamePoints; this.game.moneySpendForUpgrade += this.EscSwitchPrizes; } } }; v2.addAttachTransition = function (t) { this.aTransition = t; this.aTransition.addTransitionObject(this); this.aTransition.addEventListener('onAttach', this); this.hasAttachTransition = true; }; v2.addRemoveTransition = function (t) { this.rTransition = t; this.rTransition.addTransitionObject(this); this.rTransition.addEventListener('onRemove', this); this.hasRemoveTransition = true; }; v2.removeAttachTransition = function (t) { this.aTransition.removeEventListener('onAttach', this); this.hasAttachTransition = false; this.aTransition = undefined; }; v2.removeRemoveTransition = function (t) { this.rTransition.removeEventListener('onRemove', this); this.hasRemoveTransition = false; this.rTransition = undefined; }; v2.attach = function () {}; v2.remove = function () { trace('remove'); this.checkForUpgrades(); this.game.interface_.saveLoadObject.saveGame(this.game.userName); delete utils.Delegate; this.game.interface_.showGame(); this.holder.removeMovieClip(); }; v2.onAttach = function () { trace('onAttach'); this.addEvents(); }; v2.onRemove = function () { trace('onRemove'); this.remove(); }; v2.mcFadeIn = function (mc, time) { var v4 = time * 0.025; mc.oeftime = v4; mc.step = 100 / v4; mc._alpha = 0; mc.onEnterFrame = function () { --this.oeftime; if (this.oeftime > 0) { this._alpha += this.step; } else { this._alpha = 100; delete this.onEnterFrame; } _root.fadein.text = int(this._alpha); }; }; v2.mcFadeOut = function (mc, time) { var v3 = time * 0.025; mc.oeftime = v3; mc.step = 100 / v3; mc._alpha = 100; mc.help = 100; mc.onEnterFrame = function () { --this.oeftime; if (this.oeftime > 0) { this.help -= this.step; } else { this.help = 0; mc.removeMovieClip(); delete this.onEnterFrame; } this._alpha = this.help; _root.fadeout.text = int(this._alpha); }; }; ASSetPropFlags(scr.UpgradeScreen.prototype, null, 1); } #endinitclip } movieClip 9283 __Packages.trans.ClipTransitionFactory { #initclip if (!_global.trans) { _global.trans = new Object(); } if (!_global.trans.ClipTransitionFactory) { var v1 = function (holderClip, displayClip) { super(); this.holderClip = holderClip; this.displayClip = displayClip; this.frames = 6; this.showSparkle = false; this.appearing = true; }; trans.ClipTransitionFactory = v1; trans.ClipTransitionFactory extends utils.MovieClipProperties; var v2 = v1.prototype; v2.setHolderPosition = function (target, x, y, depth, frame, string, frame1) { this.target = target; this.x = x; this.y = y; this.depth = depth; this.frame = frame; this.frame1 = frame1; this.string = string; }; v2.startTransition = function (appearing) { if (appearing != undefined) { this.appearing = appearing; } this.clip = this.target.attachMovie(this.holderClip, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.x, '_y': this.y}); var v3 = this.clip.emptyClip; var v2 = v3.attachMovie(this.displayClip, utils.StringUtils.getUniqueName(), v3.getNextHighestDepth()); v2.gotoAndStop(this.frame); v2.oblace.gotoAndStop(this.frame1); if (this.string == 'cleaningstork1' || this.string == 'cleaningstork2') { v2.noPoints.gotoAndStop(this.frame1); } v2.obj.gotoAndStop(this.string); v2.tekst.gotoAndStop(this.string); v2.naslov_text.gotoAndStop(this.string); this.popupHolder = v3.createEmptyMovieClip(utils.StringUtils.getUniqueName(), v3.getNextHighestDepth()); var v5 = new flash.geom.Matrix(); this.popupHolder._x = -v2._width / 2; this.popupHolder._y = -v2._height / 2; var v4 = new flash.display.BitmapData(v2._width, v2._height, true, 0); v4.draw(v2, v5, new flash.geom.ColorTransform(), 1, undefined, true); this.popupHolder.attachBitmap(v4, this.depth, 'auto', true); v2.removeMovieClip(); this.clip.holder = this; utils.Delegate.callDelayed(this.clip, gotoAndPlay, 10, 2); }; v2.toPointTransition = function (destx, desty, tframe) { if (destx != undefined && desty != undefined) { this.destx = destx; this.desty = desty; if (tframe != undefined) { this.frames = tframe; } var v2 = this.frames * 40; this.startx = this.clip._x; this.starty = this.clip._y; this.xmove = (destx - this.clip._x) / v2; this.ymove = (desty - this.clip._y) / v2; this.t0 = getTimer(); clearInterval(this.intId); this.intId = setInterval(this, 'move', 40); } }; v2.move = function () { var v3 = getTimer(); var v2 = v3 - this.t0; if (v2 <= this.frames * 40) { this.clip._x = this.startx + v2 * this.xmove; this.clip._y = this.starty + v2 * this.ymove; } else { this.clip._x = this.destx; this.clip._y = this.desty; clearInterval(this.intId); if (this.appearing) { this.toClip(); } else { this.removeClip(); } } }; v2.toClip = function () { var v3 = this; v3.holder = this; v3.holder.popupHolder.removeMovieClip(); var v6 = v3.holder.clip.emptyClip; var v2 = v6.attachMovie(v3.holder.displayClip, utils.StringUtils.getUniqueName(), v6.getNextHighestDepth()); v2.gotoAndStop(v3.holder.frame); v2.oblace.gotoAndStop(v3.holder.frame1); v2.obj.gotoAndStop(v3.holder.string); v2.tekst.gotoAndStop(v3.holder.string); utils.Delegate.callDelayed(v2.naslov_text, v2.naslov_text.gotoAndStop, 40, v3.holder.string); v2._x = -v2._width / 2; v2._y = -v2._height / 2; v2.cancelBtn.holder = v3.holder; v2.cancelBtn.onRollOver = function () { this.holder.screen.game.mousePointer.clip.gotoAndStop('finger'); this._parent.cancel.gotoAndStop(2); }; v2.cancelBtn.onRollOut = function () { this.holder.screen.game.mousePointer.clip.gotoAndStop('normal'); this._parent.cancel.gotoAndStop(1); }; v2.cancelBtn.onReleaseOutside = function () { this.holder.screen.game.mousePointer.clip.gotoAndStop('normal'); this._parent.cancel.gotoAndStop(1); }; v2.cancelBtn.onPress = function () { this.holder.screen.game.mousePointer.clip.gotoAndStop('normal'); this.holder.screen.black_back.removeMovieClip(); this.holder.screen.black_back = undefined; var v2 = this.holder.screen.game; v2.sndCtrl.stopSound(v2.soundsId.mouseclick_snd); v2.sndCtrl.playSound(v2.soundsId.mouseclick_snd); var v5 = this.holder.klip._x + this.holder.klip.arrow._x; var v4 = this.holder.klip._y + this.holder.klip.arrow._y; this.holder.klip.gotoAndStop(this.holder.where); var v3 = new trans.ClipTransitionFactory('Cloud_scale_OUT', 'upgrade_popUp'); v3.setHolderPosition(this.holder.target, 400, 300, this.holder.depth, this.holder.frame, this.holder.string, this.holder.frame1); v3.startTransition(false); utils.Delegate.callDelayed(v3, v3.toPointTransition, 160, v5, v4, 4); }; v2.upgradeBtn.holder = v3.holder; v2.upgradeBtn.onRollOver = function () { this.holder.screen.game.mousePointer.clip.gotoAndStop('finger'); this._parent.upgrade.gotoAndStop(2); }; v2.upgradeBtn.onRollOut = function () { this.holder.screen.game.mousePointer.clip.gotoAndStop('normal'); this._parent.upgrade.gotoAndStop(1); }; v2.upgradeBtn.onReleaseOutside = function () { this.holder.screen.game.mousePointer.clip.gotoAndStop('normal'); this._parent.upgrade.gotoAndStop(1); }; v2.upgradeBtn.onPress = function () { var v5 = this.holder.klip._x + this.holder.klip.arrow._x; var v4 = this.holder.klip._y + this.holder.klip.arrow._y; this.holder.screen.ActionOnPress(this.holder.klip); this.holder.screen.game.mousePointer.clip.gotoAndStop('normal'); var v3 = this.holder.screen.game; v3.sndCtrl.stopSound(v3.soundsId.mouseclick_snd); v3.sndCtrl.playSound(v3.soundsId.mouseclick_snd); var v2 = new trans.ClipTransitionFactory('Cloud_scale_OUT', 'upgrade_popUp'); v2.setHolderPosition(this.holder.target, 400, 300, this.holder.depth, this.holder.frame, this.holder.string, this.holder.frame1); v2.startTransition(false); utils.Delegate.callDelayed(v2, v2.toPointTransition, 160, v5, v4, 4); v2.showSparkle = true; }; }; v2.removeClip = function () { var v2 = this; v2.holder = this; if (v2.holder.showSparkle) { var v4 = new MesgAnim.Fireworks(30, 'star'); v4.changeSparkleProperties(11.1, 3600); v4.setProperties(v2.holder.target, v2.holder.clip._x, v2.holder.clip._y); v4.startFireworks(); clearInterval(this.intId); var v3 = this.target._parent; v3.sndCtrl.stopSound(v3.soundsId.upgradefirewors_snd); v3.sndCtrl.playSound(v3.soundsId.upgradefirewors_snd); } v2.holder.clip.removeMovieClip(); }; ASSetPropFlags(trans.ClipTransitionFactory.prototype, null, 1); } #endinitclip } movieClip 9284 __Packages.scr.DeliveriUpgradeScreen { #initclip if (!_global.scr) { _global.scr = new Object(); } if (!_global.scr.DeliveriUpgradeScreen) { var v1 = function (_game) { super(); this.game = _game; this.game.gamePoints = this.game.gamePointsFactory[this.game.levelNum - 1]; this.storkClips = [undefined, undefined, undefined, undefined, undefined, undefined, undefined]; delete this.game.level_.delivery; this.storkLength = this.game.Storks.length; this.f = new scr.FadeIn(); this.r = new scr.FadeOut(); this.hasAttachTransition = false; this.hasRemoveTransition = false; this.addAttachTransition(this.f); this.addRemoveTransition(this.r); this.storkSpeedPrice = [0, 400, 700, 1100]; this.storkPowerPrice = [0, 720, 1200, 2000]; this.init(); }; scr.DeliveriUpgradeScreen = v1; scr.DeliveriUpgradeScreen extends utils.MovieClipProperties; var v2 = v1.prototype; _global.scr.DeliveriUpgradeScreen implements _global.utils.IClipEvents; v2.init = function () { this.target = this.game; utils.Delegate = this.game.delegate; this.depth = this.game.level_.depth.getDepth('streets'); this.interfaceMC = this.clip.attachMovie('upgradeDeliveryScreenMC', 'upgradeDeliveryScreenMC', 1, {'_x': 0, '_y': 0}); this.score_mc1 = this.interfaceMC.attachMovie('ZelenoOblace', 'ZelenoOblace', this.level.depth.getDepth('fBackground') + 1, {'_x': 3, '_y': -0.7}); trace('this.score_mc1 ' + this.score_mc1 + ' ' + this.score_mc1.getDepth()); this.score_mc1.textMsg.gotoAndStop('points'); this.score_mc1.num.text = this.game.gamePoints; this.interfaceMC.closeGates.gotoAndStop(21); this.interfaceMC.numberScrin._visible = false; this.interfaceMC.numbers._visible = false; this.interfaceMC.quadrupletGirlSacks._visible = false; this.interfaceMC.tripletGirlSacks._visible = false; this.interfaceMC.twinGirlSacks._visible = false; this.interfaceMC.singelGirlSacks._visible = false; this.interfaceMC.quadrupletBoySacks._visible = false; this.interfaceMC.tripletBoySacks._visible = false; this.interfaceMC.twinBoySacks._visible = false; this.interfaceMC.singelBoySacks._visible = false; this.continueBtn = this.interfaceMC.attachMovie('continue_new', 'continue_new', this.game.Storks[0].depth + 300, {'_x': 646.3, '_y': 527.9}); this.continueBtn.ss._visible = false; this.continueBtn.restart._visible = false; var v2 = 0; while (v2 < this.storkLength) { this.storkClips[v2] = this.interfaceMC.attachMovie('StorkUpgrade', utils.StringUtils.getUniqueName(), this.game.Storks[v2].depth, {'_x': this.game.Storks[v2].x, '_y': this.game.Storks[v2].y}); this.storkClips[v2].PoverUp.Stork = this.game.Storks[v2]; this.storkClips[v2].SpedUp.Stork = this.game.Storks[v2]; this.storkClips[v2].PoverUp.clip = this.storkClips[v2]; this.storkClips[v2].SpedUp.clip = this.storkClips[v2]; var v3 = 'Standing' + this.game.Storks[v2].power + this.game.Storks[v2].speed; this.storkClips[v2].gotoAndStop(v3); if (this.game.Storks[v2].power == 3) { this.storkClips[v2].PoverUp._visible = false; } if (this.game.Storks[v2].speed == 3) { this.storkClips[v2].SpedUp._visible = false; } ++v2; } if (this.hasAttachTransition) { this.aTransition.startTransition(); } }; v2.attachClip = function () { this.holder = this.game.attachMovie('holder', 'holder', 1, {'_x': 0, '_y': 0}); this.clip = this.holder; this.interfaceMC = this.clip.attachMovie('upgradeDeliveryScreenMC', 'upgradeDeliveryScreenMC', 1, {'_x': 0, '_y': 0}); this.score_mc1 = this.interfaceMC.attachMovie('ZelenoOblace', 'ZelenoOblace', this.level.depth.getDepth('fBackground') + 1, {'_x': 3, '_y': -0.7}); trace('this.score_mc1 ' + this.score_mc1 + ' ' + this.score_mc1.getDepth()); this.score_mc1.textMsg.gotoAndStop('points'); this.score_mc1.num.text = this.game.gamePoints; this.interfaceMC.closeGates.gotoAndStop(21); this.interfaceMC.numberScrin._visible = false; this.interfaceMC.numbers._visible = false; this.interfaceMC.quadrupletGirlSacks._visible = false; this.interfaceMC.tripletGirlSacks._visible = false; this.interfaceMC.twinGirlSacks._visible = false; this.interfaceMC.singelGirlSacks._visible = false; this.interfaceMC.quadrupletBoySacks._visible = false; this.interfaceMC.tripletBoySacks._visible = false; this.interfaceMC.twinBoySacks._visible = false; this.interfaceMC.singelBoySacks._visible = false; this.continueBtn = this.interfaceMC.attachMovie('continue_new', 'continue_new', this.game.Storks[0].depth + 300, {'_x': 646.3, '_y': 527.9}); this.continueBtn.ss._visible = false; this.continueBtn.restart._visible = false; var v2 = 0; while (v2 < this.storkLength) { this.storkClips[v2] = this.interfaceMC.attachMovie('StorkUpgrade', utils.StringUtils.getUniqueName(), this.game.Storks[v2].depth, {'_x': this.game.Storks[v2].x, '_y': this.game.Storks[v2].y}); this.storkClips[v2].PoverUp.Stork = this.game.Storks[v2]; this.storkClips[v2].SpedUp.Stork = this.game.Storks[v2]; this.storkClips[v2].PoverUp.clip = this.storkClips[v2]; this.storkClips[v2].SpedUp.clip = this.storkClips[v2]; var v3 = 'Standing' + this.game.Storks[v2].power + this.game.Storks[v2].speed; this.storkClips[v2].gotoAndStop(v3); if (this.game.Storks[v2].power == 3) { this.storkClips[v2].PoverUp._visible = false; } if (this.game.Storks[v2].speed == 3) { this.storkClips[v2].SpedUp._visible = false; } ++v2; } this.holder.attachMovie('AnimationARMY', 'AnimationARMY', 200, {'_x': 400, '_y': 300}); this.holder.AnimationARMY.Screen = this; this.game.gameEarlyPoints = this.game.gamePoints; this.target.sndCtrl.stopSound(this.target.soundsId.readyText_snd); this.target.sndCtrl.playSound(this.target.soundsId.readyText_snd); }; v2.showArrows = function () { this.clip.attachMovie('strkStrelki', 'strkStrelki0', 101, {'_x': 399.6, '_y': 300.5}); this.clip.attachMovie('strkStrelki', 'strkStrelki1', 102, {'_x': 399.6, '_y': 380}); this.clip.attachMovie('strkStrelki', 'strkStrelki2', 103, {'_x': 399.6, '_y': 459.5}); this.clip.attachMovie('strkStrelki', 'strkStrelki3', 104, {'_x': 399.6, '_y': 540}); this.clip.attachMovie('strkStrelki', 'strkStrelki4', 105, {'_x': 399.6, '_y': 619}); this.clip.attachMovie('strkStrelki', 'strkStrelki5', 106, {'_x': 399.6, '_y': 699.5}); this.storkClips[0].PoverUp = this.clip.strkStrelki0.celaAnim.PoverUp; this.storkClips[0].SpedUp = this.clip.strkStrelki0.celaAnim.SpedUp; this.storkClips[1].PoverUp = this.clip.strkStrelki1.celaAnim.PoverUp; this.storkClips[1].SpedUp = this.clip.strkStrelki1.celaAnim.SpedUp; this.storkClips[2].PoverUp = this.clip.strkStrelki2.celaAnim.PoverUp; this.storkClips[2].SpedUp = this.clip.strkStrelki2.celaAnim.SpedUp; this.storkClips[3].PoverUp = this.clip.strkStrelki3.celaAnim.PoverUp; this.storkClips[3].SpedUp = this.clip.strkStrelki3.celaAnim.SpedUp; this.storkClips[4].PoverUp = this.clip.strkStrelki4.celaAnim.PoverUp; this.storkClips[4].SpedUp = this.clip.strkStrelki4.celaAnim.SpedUp; this.storkClips[5].PoverUp = this.clip.strkStrelki5.celaAnim.PoverUp; this.storkClips[5].SpedUp = this.clip.strkStrelki5.celaAnim.SpedUp; var v2 = 0; while (v2 < this.storkLength) { if (this.game.Storks[v2].power == 3) { this.storkClips[v2].PoverUp._visible = false; } if (this.game.Storks[v2].speed == 3) { this.storkClips[v2].SpedUp._visible = false; } this.storkClips[v2].PoverUp.Stork = this.game.Storks[v2]; this.storkClips[v2].SpedUp.Stork = this.game.Storks[v2]; this.storkClips[v2].PoverUp.clip = this.storkClips[v2]; this.storkClips[v2].SpedUp.clip = this.storkClips[v2]; ++v2; } this.addEvents(); }; v2.CancelPopup = function (screen) { this.black_back.removeMovieClip(); }; v2.markObject = function () {}; v2.upgradeSpeed = function () {}; v2.upgradePover = function () {}; v2.attachUpgradeScreen = function () {}; v2.removeMapScreen = function () { if (this.hasRemoveTransition) { this.rTransition.startTransition(); } else { this.remove(); } }; v2.SpedUp = function (Stork, clipSmall) { this.black_back.removeMovieClip(); if (Stork.speed < 3 && this.storkSpeedPrice[Stork.speed + 1] <= this.game.gamePoints) { this.game.gamePoints -= this.storkSpeedPrice[Stork.speed + 1]; ++Stork.speed; } if (Stork.speed == 3) { clipSmall.SpedUp._visible = false; } var v3 = 'Standing' + Stork.power + Stork.speed; clipSmall.gotoAndStop(v3); this.score_mc1.num.text = this.game.gamePoints; }; v2.PoverUp = function (Stork, clipSmall) { this.black_back.removeMovieClip(); if (Stork.power < 3 && this.storkPowerPrice[Stork.power + 1] <= this.game.gamePoints) { this.game.gamePoints -= this.storkPowerPrice[Stork.power + 1]; ++Stork.power; } if (Stork.power == 3) { clipSmall.PoverUp._visible = false; } if (this.game.strongStork < Stork.power) { this.game.strongStork = Stork.power; } var v3 = 'Standing' + Stork.power + Stork.speed; clipSmall.gotoAndStop(v3); this.score_mc1.num.text = this.game.gamePoints; }; v2.addEvents = function () { this.black_back.onPress = function () {}; this.black_back.onRollOver = function () {}; this.black_back.onRollOut = function () {}; this.continueBtn.continueBtn.holder = this; this.continueBtn.continueBtn.onPress = function () { this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this._parent.done.gotoAndStop(1); this.holder.removeMapScreen(); }; this.continueBtn.continueBtn.onRollOver = function () { this._parent.done.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); }; this.continueBtn.continueBtn.onRollOut = function () { this._parent.done.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.continueBtn.continueBtn.onReleaseOutside = function () { this._parent.done.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; var v2 = 0; while (v2 < this.storkLength) { this.storkClips[v2].SpedUp.holder = this; this.storkClips[v2].SpedUp.onPress = function () { this.gotoAndStop(3); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); }; this.storkClips[v2].SpedUp.onRelease = function () { this.gotoAndStop(1); this.holder.explPopUp.removeMovieClip(); this.holder.black_back = this.holder.clip.attachMovie('black_background', 'black_background', 9500, {'_x': 0, '_y': 0}); this.holder.addEvents(); var v2 = new trans.ClipTransition('Cloud_scale_IN', 'displClip'); v2.setHolderPosition(this.holder.clip, this.Stork.x, this.Stork.y, this.holder.clip.getNextHighestDepth()); v2.Stork = this.Stork; v2.num = 1; v2.game = this.holder.game; v2.Screen = this.holder; v2.clipSmall = this.clip; v2.startTransition(); v2.toPointTransition(400, 300, 6); v2.finalClip.strk.attachMovie('StandStork' + this.Stork.power + (this.Stork.speed + 1), utils.StringUtils.getUniqueName(), 1); }; this.storkClips[v2].SpedUp.onRollOver = function () { this.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); this.holder.explPopUp = this.holder.interfaceMC.attachMovie('ExplainClouds', utils.StringUtils.getUniqueName(), 22, {'_x': this.Stork.x - 350, '_y': this.Stork.y + 95}); if (this.holder.explPopUp._y > 440) { this.holder.explPopUp._y = 410; } var v2 = 'Standing0' + (this.Stork.speed + 1); this.holder.explPopUp.textForHelpCloud.gotoAndStop(v2); this.holder.explPopUp.whichHelpCloud.gotoAndStop(v2); if (this.holder.storkSpeedPrice[this.Stork.speed + 1] <= this.holder.game.gamePoints) { v2 = 'Standing' + this.Stork.power + (this.Stork.speed + 1); this.clip.gotoAndStop(v2); } else { this.holder.explPopUp.gotoAndStop(2); } this.holder.mcFadeIn(this.holder.explPopUp, 1000); }; this.storkClips[v2].SpedUp.onReleaseOutside = function () { this.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.explPopUp.removeMovieClip(); var v2 = 'Standing' + this.Stork.power + this.Stork.speed; this.clip.gotoAndStop(v2); }; this.storkClips[v2].SpedUp.onRollOut = function () { this.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.explPopUp.removeMovieClip(); var v2 = 'Standing' + this.Stork.power + this.Stork.speed; this.clip.gotoAndStop(v2); }; this.storkClips[v2].PoverUp.holder = this; this.storkClips[v2].PoverUp.onPress = function () { this.gotoAndStop(3); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); }; this.storkClips[v2].PoverUp.onRelease = function () { this.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.explPopUp.removeMovieClip(); this.holder.black_back = this.holder.clip.attachMovie('black_background', 'black_background', 9500, {'_x': 0, '_y': 0}); this.holder.addEvents(); var v2 = new trans.ClipTransition('Cloud_scale_IN', 'displClip'); v2.setHolderPosition(this.holder.clip, this.Stork.x + 30, this.Stork.y + 20, this.holder.clip.getNextHighestDepth()); v2.Stork = this.Stork; v2.clipSmall = this.clip; v2.num = 2; v2.Screen = this.holder; v2.game = this.holder.game; v2.startTransition(); v2.toPointTransition(400, 300, 6); }; this.storkClips[v2].PoverUp.onRollOver = function () { this.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); this.holder.explPopUp.removeMovieClip(); this.holder.explPopUp = this.holder.interfaceMC.attachMovie('ExplainClouds', utils.StringUtils.getUniqueName(), 22, {'_x': this.Stork.x - 350, '_y': this.Stork.y + 95}); if (this.holder.explPopUp._y > 440) { this.holder.explPopUp._y = 420; } var v2 = 'Standing' + (this.Stork.power + 1) + '1'; this.holder.explPopUp.textForHelpCloud.gotoAndStop(v2); this.holder.explPopUp.whichHelpCloud.gotoAndStop(v2); if (this.holder.storkPowerPrice[this.Stork.power + 1] <= this.holder.game.gamePoints) { v2 = 'Standing' + (this.Stork.power + 1) + this.Stork.speed; this.clip.gotoAndStop(v2); } else { this.holder.explPopUp.gotoAndStop(2); } this.holder.mcFadeIn(this.holder.explPopUp, 1000); }; this.storkClips[v2].PoverUp.onReleaseOutside = function () { this.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.explPopUp.removeMovieClip(); var v2 = 'Standing' + this.Stork.power + this.Stork.speed; this.clip.gotoAndStop(v2); }; this.storkClips[v2].PoverUp.onRollOut = function () { this.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.explPopUp.removeMovieClip(); var v2 = 'Standing' + this.Stork.power + this.Stork.speed; this.clip.gotoAndStop(v2); }; ++v2; } }; v2.addAttachTransition = function (t) { this.aTransition = t; this.aTransition.addTransitionObject(this); this.aTransition.addEventListener('onAttach', this); this.hasAttachTransition = true; }; v2.addRemoveTransition = function (t) { this.rTransition = t; this.rTransition.addTransitionObject(this); this.rTransition.addEventListener('onRemove', this); this.hasRemoveTransition = true; }; v2.removeAttachTransition = function (t) { this.aTransition.removeEventListener('onAttach', this); this.hasAttachTransition = false; this.aTransition = undefined; }; v2.removeRemoveTransition = function (t) { this.rTransition.removeEventListener('onRemove', this); this.hasRemoveTransition = false; this.rTransition = undefined; }; v2.attach = function () { this.attachClip(); if (this.hasAttachTransition) { this.aTransition.startTransition(); } }; v2.remove = function () { var v3; v3 = true; var v2 = 0; while (v2 < 6) { if (this.game.Storks[v2].speed < 3) { trace('this.game.Storks[' + v2 + '].speed ' + this.game.Storks[v2].speed); v3 = false; } if (this.game.Storks[v2].power < 3) { trace('this.game.Storks[' + v2 + '].power ' + this.game.Storks[v2].power); v3 = false; } this.game['Stork' + v2 + 'Speed'][this.game.levelNum - 1] = this.game.Storks[v2].speed; this.game['Stork' + v2 + 'Power'][this.game.levelNum - 1] = this.game.Storks[v2].power; ++v2; } if (v3) { this.game.allUpgradesDelivery = true; } delete utils.Delegate; this.game.level_.createDelivery(); this.clip.removeMovieClip(); }; v2.onAttach = function () { this.addEvents(); }; v2.onRemove = function () { this.remove(); }; v2.mcFadeIn = function (mc, time) { var v4 = time * 0.025; mc.oeftime = v4; mc.step = 100 / v4; mc._alpha = 0; mc.onEnterFrame = function () { --this.oeftime; if (this.oeftime > 0) { this._alpha += this.step; } else { this._alpha = 100; delete this.onEnterFrame; } _root.fadein.text = int(this._alpha); }; }; v2.mcFadeOut = function (mc, time) { var v4 = time * 0.025; mc.oeftime = v4; mc.step = 100 / v4; mc._alpha = 100; mc.help = 100; mc.onEnterFrame = function () { --this.oeftime; if (this.oeftime > 0) { this.help -= this.step; } else { this.help = 0; delete this.onEnterFrame; } this._alpha = this.help; _root.fadeout.text = int(this._alpha); }; }; v2.k = 5; ASSetPropFlags(scr.DeliveriUpgradeScreen.prototype, null, 1); } #endinitclip } movieClip 9285 __Packages.trans.ClipTransition { #initclip if (!_global.trans) { _global.trans = new Object(); } if (!_global.trans.ClipTransition) { var v1 = function (holderClip, displayClip) { super(); this.holderClip = holderClip; this.displayClip = displayClip; this.frames = 6; this.showSparkle = false; this.appearing = true; }; trans.ClipTransition = v1; trans.ClipTransition extends utils.MovieClipProperties; var v2 = v1.prototype; v2.setHolderPosition = function (target, x, y, depth) { this.target = target; this.x = x; this.y = y; this.depth = depth; }; v2.startTransition = function (appearing) { if (appearing != undefined) { this.appearing = appearing; } this.clip = this.target.attachMovie(this.holderClip, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.x, '_y': this.y}); var v3 = this.clip.emptyClip; var v2 = v3.attachMovie(this.displayClip, utils.StringUtils.getUniqueName(), v3.getNextHighestDepth()); if (this.num == 1) { v2.strk.attachMovie('StandStork' + this.Stork.power + (this.Stork.speed + 1), utils.StringUtils.getUniqueName(), 1); var v5 = 'Standing0' + (this.Stork.speed + 1); v2.PopUpText.gotoAndStop(v5); v2.Naslov_text.gotoAndStop(v5); if (this.Screen.storkSpeedPrice[this.Stork.speed + 1] > this.game.gamePoints) { v2.gotoAndStop(2); } } else { v2.strk.attachMovie('StandStork' + (this.Stork.power + 1) + this.Stork.speed, utils.StringUtils.getUniqueName(), 1); var v5 = 'Standing' + (this.Stork.power + 1) + '1'; v2.PopUpText.gotoAndStop(v5); v2.Naslov_text.gotoAndStop(v5); if (this.Screen.storkPowerPrice[this.Stork.power + 1] > this.game.gamePoints) { v2.gotoAndStop(2); } } this.popupHolder = v3.createEmptyMovieClip(utils.StringUtils.getUniqueName(), v3.getNextHighestDepth()); var v6 = new flash.geom.Matrix(); this.popupHolder._x = -v2._width / 2; this.popupHolder._y = -v2._height / 2; var v4 = new flash.display.BitmapData(v2._width, v2._height, true, 0); v4.draw(v2, v6, new flash.geom.ColorTransform(), 1, undefined, true); this.popupHolder.attachBitmap(v4, this.depth, 'auto', true); v2.removeMovieClip(); this.clip.holder = this; utils.Delegate.callDelayed(this.clip, gotoAndPlay, 10, 2); }; v2.toPointTransition = function (destx, desty, tframe) { if (destx != undefined && desty != undefined) { this.destx = destx; this.desty = desty; if (tframe != undefined) { this.frames = tframe; } var v2 = this.frames * 40; this.startx = this.clip._x; this.starty = this.clip._y; this.xmove = (destx - this.clip._x) / v2; this.ymove = (desty - this.clip._y) / v2; this.t0 = getTimer(); clearInterval(this.intId); this.intId = setInterval(this, 'move', 40); } }; v2.move = function () { var v3 = getTimer(); var v2 = v3 - this.t0; if (v2 <= this.frames * 40) { this.clip._x = this.startx + v2 * this.xmove; this.clip._y = this.starty + v2 * this.ymove; } else { this.clip._x = this.destx; this.clip._y = this.desty; clearInterval(this.intId); if (this.appearing) { this.toClip(); } else { this.removeClip(); } } }; v2.toClip = function () { var This = this; This.holder = this; This.holder.popupHolder.removeMovieClip(); var v5 = This.holder.clip.emptyClip; var v2 = v5.attachMovie(This.holder.displayClip, utils.StringUtils.getUniqueName(), v5.getNextHighestDepth()); if (This.holder.num == 1) { v2.strk.attachMovie('StandStork' + This.holder.Stork.power + (This.holder.Stork.speed + 1), utils.StringUtils.getUniqueName(), 1); var v6 = 'Standing0' + (This.holder.Stork.speed + 1); v2.PopUpText.gotoAndStop(v6); v2.Naslov_text.gotoAndStop(v6); if (This.holder.Screen.storkSpeedPrice[This.holder.Stork.speed + 1] > This.holder.game.gamePoints) { v2.gotoAndStop(2); } } else { v2.strk.attachMovie('StandStork' + (This.holder.Stork.power + 1) + This.holder.Stork.speed, utils.StringUtils.getUniqueName(), 1); var v6 = 'Standing' + (This.holder.Stork.power + 1) + '1'; v2.PopUpText.gotoAndStop(v6); v2.Naslov_text.gotoAndStop(v6); if (This.holder.Screen.storkPowerPrice[This.holder.Stork.power + 1] > This.holder.game.gamePoints) { v2.gotoAndStop(2); } } v2._x = -v2._width / 2; v2._y = -v2._height / 2; v2.cancelBtn.holder = This.holder; v2.cancelBtn.onRollOver = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('finger'); this._parent.cancel.gotoAndStop(2); }; v2.cancelBtn.onRollOut = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); this._parent.cancel.gotoAndStop(1); }; v2.cancelBtn.onReleaseOutside = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); this._parent.cancel.gotoAndStop(1); }; v2.cancelBtn.onPress = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); this.holder.Screen.CancelPopup(this.holder.Screen); var v3 = this.holder.Screen.game; v3.sndCtrl.stopSound(v3.soundsId.mouseclick_snd); v3.sndCtrl.playSound(v3.soundsId.mouseclick_snd); var v5 = this.holder.x; var v4 = this.holder.y; var v2 = new trans.ClipTransition('Cloud_scale_OUT', 'displClip'); v2.num = This.holder.num; v2.Stork = This.holder.Stork; v2.game = This.holder.game; v2.Screen = This.holder.Screen; v2.setHolderPosition(this.holder.target, 400, 300, this.holder.depth); v2.startTransition(false); utils.Delegate.callDelayed(v2, v2.toPointTransition, 160, v5, v4, 4); }; v2.upgradeBtn.holder = This.holder; v2.upgradeBtn.onRollOver = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('finger'); this._parent.upgrade.gotoAndStop(2); }; v2.upgradeBtn.onRollOut = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); this._parent.upgrade.gotoAndStop(1); }; v2.upgradeBtn.onReleaseOutside = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); this._parent.upgrade.gotoAndStop(1); }; v2.upgradeBtn.onPress = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); if (this.holder.num == 1) { this.holder.Screen.SpedUp(this.holder.Stork, this.holder.clipSmall); } else { if (this.holder.num == 2) { this.holder.Screen.PoverUp(this.holder.Stork, this.holder.clipSmall); } } var v3 = this.holder.Screen.game; v3.sndCtrl.stopSound(v3.soundsId.mouseclick_snd); v3.sndCtrl.playSound(v3.soundsId.mouseclick_snd); var v5 = this.holder.Stork.x; var v4 = this.holder.Stork.y; var v2 = new trans.ClipTransition('Cloud_scale_OUT', 'displClip'); v2.setHolderPosition(this.holder.target, 400, 300, this.holder.depth); v2.num = This.holder.num; if (this.holder.num == 1) { v2.Stork = {'power': This.holder.Stork.power, 'speed': This.holder.Stork.speed - 1}; } else { v2.Stork = {'power': This.holder.Stork.power - 1, 'speed': This.holder.Stork.speed}; } v2.startTransition(false); utils.Delegate.callDelayed(v2, v2.toPointTransition, 160, v5, v4, 4); v2.showSparkle = true; }; }; v2.removeClip = function () { var v4 = this; v4.holder = this; if (this.showSparkle) { var v3 = new MesgAnim.Fireworks(30, 'star'); v3.changeSparkleProperties(11.1, 3600); v3.setProperties(this.target, this.clip._x + 40, this.clip._y + 40); v3.startFireworks(); clearInterval(this.intId); var v2 = this.target._parent; v2.sndCtrl.stopSound(v2.soundsId.upgradefirewors_snd); v2.sndCtrl.playSound(v2.soundsId.upgradefirewors_snd); } this.clip.removeMovieClip(); }; ASSetPropFlags(trans.ClipTransition.prototype, null, 1); } #endinitclip } movieClip 9286 __Packages.scr.OptionScreen { #initclip if (!_global.scr) { _global.scr = new Object(); } if (!_global.scr.OptionScreen) { var v1 = function (_game) { super(); this.game = _game; this.range = 193; this.tempBarMusic = this.game.musicVolume; this.tempBarSound = this.game.fxVolume; }; scr.OptionScreen = v1; scr.OptionScreen extends utils.MovieClipProperties; var v2 = v1.prototype; _global.scr.OptionScreen implements _global.utils.IClipEvents; v2.attachOptionScreen = function () { var v2 = new trans.ClipTransitionOptions('CloudLR_in', 'optionsScreen'); v2.setHolderPosition(this.game, 300, 400, 100001); v2.Screen = this; v2.startTransition(); v2.toPointTransition(400, 300, 6); this.clip = v2.clip; }; v2.removeOptionScreen = function () { this.clip.removeMovieClip(); }; v2.addEvents = function () { this.range = 193; this.tempBarMusic = this.game.musicVolume; this.tempBarSound = this.game.fxVolume; trace('tempBarMusic ' + this.tempBarMusic); trace('tempBarSound ' + this.tempBarSound); this.clip.soundBar._xscale = this.tempBarSound; this.clip.musicBar._xscale = this.tempBarMusic; this.clip.soundSlider._x = 75 + this.tempBarSound * this.range / 100; this.clip.musicSlider._x = 330 + this.tempBarMusic * this.range / 100; this.clip.mainMenu.holder = this; this.clip.mainMenu.onRelease = function () { this.gotoAndStop(1); }; this.clip.mainMenu.onReleaseOutside = function () { this.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.clip.mainMenu.onRollOver = function () { this.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); }; this.clip.mainMenu.onRollOut = function () { this.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.clip.mainMenu.onPress = function () { this.gotoAndStop(3); this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this.holder.removeOptionScreen(); }; this.clip.soundDown.holder = this; this.clip.soundDown.onPress = function () { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); trace('this.game.options_screen_mc.soundDown'); this.holder.clip.onEnterFrame = function () { this.soundDown.holder.tempBarMusic = this.soundDown.holder.game.musicVolume; this.soundDown.holder.tempBarSound = this.soundDown.holder.game.fxVolume; trace('onEnterFrame'); if (this.soundDown.holder.tempBarSound > 0) { trace('this.game.options_screen_mc.soundDown##########'); this.soundDown.holder.tempBarSound -= 5; this.soundDown.holder.clip.soundBar._xscale -= 5; this.soundDown.holder.clip.soundSlider._x = this.soundDown.holder.tempBarSound * this.soundDown.holder.range / 100 + 75; this.soundDown.holder.game.fxVolume = this.soundDown.holder.tempBarSound; this.soundDown.holder.game.sndCtrl.setSoundFXVolume(this.soundDown.holder.tempBarSound); this.soundDown.holder.game.saveLoadSoundObj.saveGame(); } }; }; this.clip.soundDown.onRelease = function () { delete this.holder.clip.onEnterFrame; }; this.clip.soundDown.onReleaseOutside = function () { delete this.holder.clip.onEnterFrame; }; this.clip.soundUp.holder = this; this.clip.soundUp.onPress = function () { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); trace('this.game.options_screen_mc.soundUp'); this.holder.clip.onEnterFrame = function () { this.soundUp.holder.tempBarMusic = this.soundUp.holder.game.musicVolume; this.soundUp.holder.tempBarSound = this.soundUp.holder.game.fxVolume; trace('onEnterFrame'); if (this.soundUp.holder.tempBarSound < 100) { trace('this.game.options_screen_mc.soundUp##################'); this.soundUp.holder.tempBarSound += 5; this.soundUp.holder.clip.soundBar._xscale += 5; this.soundUp.holder.clip.soundSlider._x = this.soundUp.holder.tempBarSound * this.soundUp.holder.range / 100 + 75; this.soundUp.holder.game.fxVolume = this.soundUp.holder.tempBarSound; this.soundUp.holder.game.sndCtrl.setSoundFXVolume(this.soundUp.holder.tempBarSound); this.soundUp.holder.game.saveLoadSoundObj.saveGame(); } }; }; this.clip.soundUp.onRelease = function () { delete this.holder.clip.onEnterFrame; }; this.clip.soundUp.onReleaseOutside = function () { delete this.holder.clip.onEnterFrame; }; this.clip.soundSlider.holder = this; this.clip.soundSlider.onPress = function () { startDrag(this, false, 75, 199, 268, 199); this.holder.clip.onEnterFrame = function () { this.soundBar._xscale = (this.soundSlider._x - 75) / 1.93; this.soundSlider.holder.tempBarSound = (this.soundSlider._x - 75) / 1.93; this.soundSlider.holder.game.fxVolume = this.soundSlider.holder.tempBarSound; trace('SET SOUND FX ' + (this.soundSlider._x - 75) / 1.93); this.soundSlider.holder.game.sndCtrl.setSoundFXVolume((this.soundSlider._x - 75) / 1.93); this.soundSlider.holder.game.saveLoadSoundObj.saveGame(); }; }; this.clip.soundSlider.onRelease = function () { this.stopDrag(); this.holder.clip.soundBar._xscale = (this._x - 75) / 1.93; this.holder.tempBarSound = (this._x - 75) / 1.93; this.holder.game.fxVolume = this.holder.tempBarSound; trace('SET SOUND FX ' + (this._x - 75) / 1.93); this.holder.game.sndCtrl.setSoundFXVolume((this._x - 75) / 1.93); this.holder.game.saveLoadSoundObj.saveGame(); delete this.holder.clip.onEnterFrame; }; this.clip.soundSlider.onReleaseOutside = function () { this.stopDrag(); this.holder.clip.soundBar._xscale = (this._x - 75) / 1.93; this.holder.tempBarSound = (this._x - 75) / 1.93; this.holder.game.fxVolume = this.holder.tempBarSound; trace('SET SOUND FX ' + (this._x - 75) / 1.93); this.holder.game.sndCtrl.setSoundFXVolume((this._x - 75) / 1.93); this.holder.game.saveLoadSoundObj.saveGame(); delete this.holder.clip.onEnterFrame; }; this.clip.musicDown.holder = this; this.clip.musicDown.onPress = function () { trace('this.game.options_screen_mc.musicDown'); this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this.holder.clip.onEnterFrame = function () { this.musicDown.holder.tempBarMusic = this.musicDown.holder.game.musicVolume; this.musicDown.holder.tempBarSound = this.musicDown.holder.game.fxVolume; trace('onEnterFrame'); if (this.musicDown.holder.tempBarMusic > 0) { trace('this.game.options_screen_mc.musicDown##############'); this.musicDown.holder.tempBarMusic -= 5; this.musicDown.holder.clip.musicBar._xscale -= 5; this.musicDown.holder.clip.musicSlider._x = this.musicDown.holder.tempBarMusic * this.musicDown.holder.range / 100 + 330; this.musicDown.holder.game.musicVolume = this.musicDown.holder.tempBarMusic; this.musicDown.holder.game.sndCtrl.setMusicVolume(this.musicDown.holder.tempBarMusic); this.musicDown.holder.game.saveLoadSoundObj.saveGame(); } }; }; this.clip.musicDown.onRelease = function () { delete this.holder.clip.onEnterFrame; }; this.clip.musicDown.onReleaseOutside = function () { delete this.holder.clip.onEnterFrame; }; this.clip.musicUp.holder = this; this.clip.musicUp.onPress = function () { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); trace('this.game.options_screen_mc.musicUp'); this.holder.clip.onEnterFrame = function () { this.musicUp.holder.tempBarMusic = this.musicUp.holder.game.musicVolume; this.musicUp.holder.tempBarSound = this.musicUp.holder.game.fxVolume; trace('onEnterFrame'); if (this.musicUp.holder.tempBarMusic < 100) { trace('this.game.options_screen_mc.musicUp#############################'); this.musicUp.holder.tempBarMusic += 5; this.musicUp.holder.clip.musicBar._xscale += 5; this.musicUp.holder.clip.musicSlider._x = this.musicUp.holder.tempBarMusic * this.musicUp.holder.range / 100 + 330; this.musicUp.holder.game.musicVolume = this.musicUp.holder.tempBarMusic; this.musicUp.holder.game.sndCtrl.setMusicVolume(this.musicUp.holder.tempBarMusic); this.musicUp.holder.game.saveLoadSoundObj.saveGame(); } }; }; this.clip.musicUp.onRelease = function () { delete this.holder.clip.onEnterFrame; }; this.clip.musicUp.onReleaseOutside = function () { delete this.holder.clip.onEnterFrame; }; this.clip.musicSlider.holder = this; this.clip.musicSlider.onPress = function () { startDrag(this, false, 330, 199, 523, 199); this.holder.clip.onEnterFrame = function () { this.musicBar._xscale = (this.musicSlider._x - 330) / 1.93; this.musicSlider.holder.tempBarMusic = (this.musicSlider._x - 330) / 1.93; this.musicSlider.holder.game.musicVolume = this.musicSlider.holder.tempBarMusic; trace('SET MUSIC VOLUME ' + (this.musicSlider._x - 330) / 1.93); this.musicSlider.holder.game.sndCtrl.setMusicVolume((this.musicSlider._x - 330) / 1.93); this.musicSlider.holder.game.saveLoadSoundObj.saveGame(); }; }; this.clip.musicSlider.onRelease = function () { this.stopDrag(); this.holder.clip.musicBar._xscale = (this._x - 330) / 1.93; this.holder.tempBarMusic = (this._x - 330) / 1.93; this.holder.game.musicVolume = this.holder.tempBarMusic; trace('SET MUSIC VOLUME ' + (this._x - 330) / 1.93); this.holder.game.sndCtrl.setMusicVolume((this._x - 330) / 1.93); this.holder.game.saveLoadSoundObj.saveGame(); delete this.holder.clip.onEnterFrame; }; this.clip.musicSlider.onReleaseOutside = function () { this.stopDrag(); this.holder.clip.musicBar._xscale = (this._x - 330) / 1.93; this.holder.tempBarMusic = (this._x - 330) / 1.93; this.holder.game.musicVolume = this.holder.tempBarMusic; trace('SET MUSIC VOLUME ' + (this._x - 330) / 1.93); this.holder.game.sndCtrl.setMusicVolume((this._x - 330) / 1.93); this.holder.game.saveLoadSoundObj.saveGame(); delete this.holder.clip.onEnterFrame; }; }; ASSetPropFlags(scr.OptionScreen.prototype, null, 1); } #endinitclip } movieClip 9287 __Packages.trans.ClipTransitionOptions { #initclip if (!_global.trans) { _global.trans = new Object(); } if (!_global.trans.ClipTransitionOptions) { var v1 = function (holderClip, displayClip) { super(); this.holderClip = holderClip; this.displayClip = displayClip; this.frames = 6; this.showSparkle = false; this.appearing = true; }; trans.ClipTransitionOptions = v1; trans.ClipTransitionOptions extends utils.MovieClipProperties; var v2 = v1.prototype; v2.takeSnapShot = function (mc) { var v6 = mc.getDepth(); this.snapShot = _root.createEmptyMovieClip('snapshot', 1500); var v4 = new flash.geom.Matrix(); v4.translate(mc._x, mc._y); var v5 = new flash.display.BitmapData(mc._width, mc._height, true, 0); v5.draw(mc, v4, new flash.geom.ColorTransform(), 1, undefined, true); this.snapShot.attachBitmap(v5, v6 + 1); mc._visible = false; }; v2.setHolderPosition = function (target, x, y, depth) { this.target = target; this.x = x; this.y = y; this.depth = depth; }; v2.startTransition = function (appearing) { if (appearing != undefined) { this.appearing = appearing; } this.takeSnapShot(this.target); this.clip = this.snapShot.attachMovie(this.holderClip, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.x, '_y': this.y}); var v3 = this.clip.emptyClip; var v2 = v3.attachMovie(this.displayClip, utils.StringUtils.getUniqueName(), v3.getNextHighestDepth()); this.Screen.range = 193; this.Screen.tempBarMusic = this.Screen.game.musicVolume; this.Screen.tempBarSound = this.Screen.game.fxVolume; trace('tempBarMusic ' + this.Screen.tempBarMusic); trace('tempBarSound ' + this.Screen.tempBarSound); v2.soundBar._xscale = this.Screen.tempBarSound; v2.musicBar._xscale = this.Screen.tempBarMusic; v2.soundSlider._x = 75 + this.Screen.tempBarSound * this.Screen.range / 100; v2.musicSlider._x = 330 + this.Screen.tempBarMusic * this.Screen.range / 100; this.popupHolder = v3.createEmptyMovieClip(utils.StringUtils.getUniqueName(), v3.getNextHighestDepth()); var v5 = new flash.geom.Matrix(); this.popupHolder._x = -v2._width / 2; this.popupHolder._y = -v2._height / 2; var v4 = new flash.display.BitmapData(v2._width, v2._height, true, 0); v4.draw(v2, v5, new flash.geom.ColorTransform(), 1, undefined, true); this.popupHolder.attachBitmap(v4, this.depth, 'auto', true); v2.removeMovieClip(); this.clip.holder = this; utils.Delegate.callDelayed(this.clip, gotoAndPlay, 10, 2); }; v2.toPointTransition = function (destx, desty, tframe) { if (destx != undefined && desty != undefined) { this.destx = destx; this.desty = desty; if (tframe != undefined) { this.frames = tframe; } var v2 = this.frames * 40; this.startx = this.clip._x; this.starty = this.clip._y; this.xmove = (destx - this.clip._x) / v2; this.ymove = (desty - this.clip._y) / v2; this.t0 = getTimer(); clearInterval(this.intId); this.intId = setInterval(this, 'move', 40); } }; v2.move = function () { var v3 = getTimer(); var v2 = v3 - this.t0; if (v2 <= this.frames * 40) { this.clip._x = this.startx + v2 * this.xmove; this.clip._y = this.starty + v2 * this.ymove; } else { this.clip._x = this.destx; this.clip._y = this.desty; clearInterval(this.intId); if (this.appearing) { this.toClip(); } else { this.removeClip(); } } }; v2.toClip = function () { var This = this; This.holder = this; This.holder.popupHolder.removeMovieClip(); var v5 = This.holder.clip.emptyClip; var v3 = v5.attachMovie(This.holder.displayClip, utils.StringUtils.getUniqueName(), v5.getNextHighestDepth()); This.holder.Screen.range = 193; This.holder.Screen.tempBarMusic = This.holder.Screen.game.musicVolume; This.holder.Screen.tempBarSound = This.holder.Screen.game.fxVolume; trace('tempBarMusic ' + This.holder.Screen.tempBarMusic); trace('tempBarSound ' + This.holder.Screen.tempBarSound); v3.soundBar._xscale = This.holder.Screen.tempBarSound; v3.musicBar._xscale = This.holder.Screen.tempBarMusic; v3.soundSlider._x = 75 + This.holder.Screen.tempBarSound * This.holder.Screen.range / 100; v3.musicSlider._x = 330 + This.holder.Screen.tempBarMusic * This.holder.Screen.range / 100; v3._x = -v3._width / 2; v3._y = -v3._height / 2; v3.mainMenu.btn.holder = This.holder; v3.mainMenu.btn.onRelease = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); this.holder.Screen.CancelPopup(this.holder.Screen); this._parent.mainMenu.gotoAndStop(3); this.holder.Screen.factory.continueGame(); this.holder.Screen.factory.continueGame(); var v4 = this.holder.x; var v3 = this.holder.y; var v2 = new trans.ClipTransitionOptions('CloudLR_out', 'optionsScreen'); v2.Screen = This.holder.Screen; v2.setHolderPosition(This.holder.target, 400, 300, This.holder.depth); v2.startTransition(false); utils.Delegate.callDelayed(v2, v2.toPointTransition, 160, v4, v3, 4); }; v3.backToGame.onRollOver = function () { this.gotoAndStop(2); }; v3.backToGame.onRollOut = function () { this.gotoAndStop(1); }; v3.backToGame.onPress = function () { this.holder.Screen.game.sndCtrl.stopSound(this.holder.Screen.game.soundsId.mouseclick_snd); this.holder.Screen.game.sndCtrl.playSound(this.holder.Screen.game.soundsId.mouseclick_snd); }; v3.mainMenu.btn.onPress = function () { this.holder.Screen.game.sndCtrl.stopSound(this.holder.Screen.game.soundsId.mouseclick_snd); this.holder.Screen.game.sndCtrl.playSound(this.holder.Screen.game.soundsId.mouseclick_snd); }; v3.mainMenu.btn.onReleaseOutside = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); this._parent.mainMenu.gotoAndStop(1); }; v3.mainMenu.btn.onRollOver = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('finger'); this._parent.mainMenu.gotoAndStop(2); }; v3.mainMenu.btn.onRollOut = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); this._parent.mainMenu.gotoAndStop(1); }; v3.toggleFullScreen.btn.holder = This.holder; v3.toggleFullScreen.btn.onRelease = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); this._parent.modeBtn.gotoAndStop(3); _global.externalModel.toggleFullScreen(); if (_global.externalModel.fullScreen) { this._parent.gotoAndStop(1); } else { this._parent.gotoAndStop(2); } }; v3.toggleFullScreen.btn.onPress = function () { this.holder.Screen.factory.target.sndCtrl.stopSound(this.holder.Screen.factory.target.soundsId.mouseclick_snd); this.holder.Screen.factory.target.sndCtrl.playSound(this.holder.Screen.factory.target.soundsId.mouseclick_snd); }; v3.toggleFullScreen.btn.onReleaseOutside = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); this._parent.modeBtn.gotoAndStop(1); }; v3.toggleFullScreen.btn.onRollOver = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('finger'); this._parent.modeBtn.gotoAndStop(2); }; v3.toggleFullScreen.btn.onRollOut = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); this._parent.modeBtn.gotoAndStop(1); }; v3.soundDown.holder = This.holder; v3.soundDown.holder.popup = v3; v3.soundDown.onPress = function () { trace('this.holder ' + this.holder); trace('this.holder.popup ' + this.holder.popup); trace('this.holder.Screen ' + this.holder.Screen); this.holder.popup.soundDown.holder.Screen = this.holder.Screen; this.holder.popup.onEnterFrame = function () { this.soundDown.holder.Screen.tempBarMusic = this.soundDown.holder.Screen.game.musicVolume; this.soundDown.holder.Screen.tempBarSound = this.soundDown.holder.Screen.game.fxVolume; trace('onEnterFrame'); if (this.soundDown.holder.Screen.tempBarSound > 0) { trace('this.game.options_screen_mc.soundDown##########'); this.soundDown.holder.Screen.tempBarSound -= 5; this.soundDown.holder.popup.soundBar._xscale -= 5; this.soundDown.holder.popup.soundSlider._x = this.soundDown.holder.Screen.tempBarSound * this.soundDown.holder.Screen.range / 100 + 75; this.soundDown.holder.Screen.game.fxVolume = this.soundDown.holder.Screen.tempBarSound; this.soundDown.holder.Screen.game.sndCtrl.setSoundFXVolume(this.soundDown.holder.Screen.tempBarSound); this.soundDown.holder.Screen.game.saveLoadSoundObj.saveGame(); } }; }; v3.soundDown.onRelease = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.soundDown.onReleaseOutside = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.soundDown.onRollOver = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('finger'); delete this.holder.popup.onEnterFrame; }; v3.soundDown.onRollOut = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.soundUp.holder = This.holder; v3.soundUp.holder.popup = v3; v3.soundUp.onPress = function () { trace('this.game.options_screen_mc.soundUp'); this.holder.popup.soundUp.holder.Screen = this.holder.Screen; this.holder.popup.onEnterFrame = function () { this.soundUp.holder.Screen.tempBarMusic = this.soundUp.holder.Screen.game.musicVolume; this.soundUp.holder.Screen.tempBarSound = this.soundUp.holder.Screen.game.fxVolume; trace('onEnterFrame'); if (this.soundUp.holder.Screen.tempBarSound < 100) { trace('this.game.options_screen_mc.soundUp##################'); this.soundUp.holder.Screen.tempBarSound += 5; this.soundUp.holder.popup.soundBar._xscale += 5; this.soundUp.holder.popup.soundSlider._x = this.soundUp.holder.Screen.tempBarSound * this.soundUp.holder.Screen.range / 100 + 75; this.soundUp.holder.Screen.game.fxVolume = this.soundUp.holder.Screen.tempBarSound; this.soundUp.holder.Screen.game.sndCtrl.setSoundFXVolume(this.soundUp.holder.Screen.tempBarSound); this.soundUp.holder.Screen.game.saveLoadSoundObj.saveGame(); } }; }; v3.soundUp.onRelease = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.soundUp.onReleaseOutside = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.soundUp.onRollOver = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('finger'); delete this.holder.popup.onEnterFrame; }; v3.soundUp.onRollOut = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.soundSlider.holder = This.holder; v3.soundSlider.holder.popup = v3; v3.soundSlider.onPress = function () { startDrag(this, false, 75, 199, 268, 199); this.holder.popup.soundSlider.holder.Screen = this.holder.Screen; this.holder.popup.onEnterFrame = function () { this.soundBar._xscale = (this.soundSlider._x - 75) / 1.93; this.soundSlider.holder.Screen.tempBarSound = (this.soundSlider._x - 75) / 1.93; this.soundSlider.holder.Screen.game.fxVolume = this.soundSlider.holder.Screen.tempBarSound; this.soundSlider.holder.Screen.game.sndCtrl.setSoundFXVolume((this.soundSlider._x - 75) / 1.93); this.soundSlider.holder.Screen.game.saveLoadSoundObj.saveGame(); }; }; v3.soundSlider.onRelease = function () { delete this.onEnterFrame; this.stopDrag(); }; v3.soundSlider.onReleaseOutside = function () { delete this.onEnterFrame; this.stopDrag(); }; v3.musicSlider.onRelease = function () { delete this.onEnterFrame; this.stopDrag(); }; v3.musicSlider.onReleaseOutside = function () { delete this.onEnterFrame; this.stopDrag(); }; v3.musicDown.holder = This.holder; v3.musicDown.holder.popup = v3; v3.musicDown.onPress = function () { trace('this.game.options_screen_mc.musicDown'); this.holder.popup.musicDown.holder.Screen = this.holder.Screen; this.holder.popup.onEnterFrame = function () { this.musicDown.holder.Screen.tempBarMusic = this.musicDown.holder.Screen.game.musicVolume; this.musicDown.holder.Screen.tempBarSound = this.musicDown.holder.Screen.game.fxVolume; trace('onEnterFrame'); if (this.musicDown.holder.Screen.tempBarMusic > 0) { trace('this.game.options_screen_mc.musicDown##############'); this.musicDown.holder.Screen.tempBarMusic -= 5; this.musicDown.holder.popup.musicBar._xscale -= 5; this.musicDown.holder.popup.musicSlider._x = this.musicDown.holder.Screen.tempBarMusic * this.musicDown.holder.Screen.range / 100 + 330; this.musicDown.holder.Screen.game.musicVolume = this.musicDown.holder.Screen.tempBarMusic; this.musicDown.holder.Screen.game.sndCtrl.setMusicVolume(this.musicDown.holder.Screen.tempBarMusic); this.musicDown.holder.Screen.game.saveLoadSoundObj.saveGame(); } }; }; v3.musicDown.onRelease = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.musicDown.onReleaseOutside = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.musicDown.onRollOver = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('finger'); delete this.holder.popup.onEnterFrame; }; v3.musicDown.onRollOut = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.musicUp.holder = This.holder; v3.musicUp.holder.popup = v3; v3.musicUp.onPress = function () { trace('this.game.options_screen_mc.musicUp'); this.holder.popup.musicUp.holder.Screen = this.holder.Screen; this.holder.popup.onEnterFrame = function () { if (this.musicUp.holder.factory) { this.musicUp.holder.Screen.tempBarMusic = this.musicUp.holder.Screen.game.musicVolume; this.musicUp.holder.Screen.tempBarSound = this.musicUp.holder.Screen.game.fxVolume; } trace('onEnterFrame'); if (this.musicUp.holder.Screen.tempBarMusic < 100) { trace('this.game.options_screen_mc.musicUp#############################'); this.musicUp.holder.Screen.tempBarMusic += 5; this.musicUp.holder.popup.musicBar._xscale += 5; this.musicUp.holder.popup.musicSlider._x = this.musicUp.holder.Screen.tempBarMusic * this.musicUp.holder.Screen.range / 100 + 330; this.musicUp.holder.Screen.game.musicVolume = this.musicUp.holder.Screen.tempBarMusic; this.musicUp.holder.Screen.game.sndCtrl.setMusicVolume(this.musicUp.holder.Screen.tempBarMusic); this.musicUp.holder.Screen.game.saveLoadSoundObj.saveGame(); } }; }; v3.musicUp.onRelease = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.musicUp.onReleaseOutside = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.musicUp.onRollOver = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('finger'); delete this.holder.popup.onEnterFrame; }; v3.musicUp.onRollOut = function () { this.holder.Screen.game.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.musicSlider.holder = This.holder; v3.musicSlider.holder.popup = v3; v3.musicSlider.onPress = function () { startDrag(this, false, 330, 199, 523, 199); this.holder.popup.musicSlider.holder.Screen = this.holder.Screen; this.holder.popup.onEnterFrame = function () { this.musicBar._xscale = (this.musicSlider._x - 330) / 1.93; this.musicSlider.holder.Screen.tempBarMusic = (this.musicSlider._x - 330) / 1.93; this.musicSlider.holder.Screen.game.musicVolume = this.musicSlider.holder.Screen.tempBarMusic; this.musicSlider.holder.Screen.game.sndCtrl.setMusicVolume((this.musicSlider._x - 330) / 1.93); this.musicSlider.holder.Screen.game.saveLoadSoundObj.saveGame(); }; }; }; v2.removeClip = function () { var v3 = this; v3.holder = this; if (this.showSparkle) { var v2 = new MesgAnim.Fireworks(20, 'star'); v2.changeSparkleProperties(11.1, 3600); v2.setProperties(this.target, this.clip._x + 40, this.clip._y + 40); v2.startFireworks(); clearInterval(this.intId); } this.target._visible = true; this.snapShot.removeMovieClip(); this.clip.removeMovieClip(); }; ASSetPropFlags(trans.ClipTransitionOptions.prototype, null, 1); } #endinitclip } movieClip 9288 __Packages.scr.MapScreen { #initclip if (!_global.scr) { _global.scr = new Object(); } if (!_global.scr.MapScreen) { var v1 = function (_game) { super(); this.game = _game; this.storkClips = [undefined, undefined, undefined, undefined, undefined, undefined, undefined]; this.Dots = []; this.Dots.push(undefined); this.init(); }; scr.MapScreen = v1; scr.MapScreen extends utils.MovieClipProperties; var v2 = v1.prototype; _global.scr.MapScreen implements _global.utils.IClipEvents; v2.init = function () { this.f = new scr.FadeIn(); this.r = new scr.FadeOut(); this.hasAttachTransition = false; this.hasRemoveTransition = false; this.addAttachTransition(this.f); this.addRemoveTransition(this.r); if (this.game.levelState == 'D') { this.tempLevelNum = this.game.levelNum * 2; } else { if (this.game.levelState == 'F') { this.tempLevelNum = this.game.levelNum * 2 - 1; } } trace('this.game.levelState ' + this.game.levelState); trace('this.tempLevelNum ' + this.tempLevelNum); utils.Delegate = this.game.delegate; this.attachMapScreen(); }; v2.attachMapScreen = function () { this.holder = this.game.attachMovie('holder', 'holder', 1, {'_x': 0, '_y': 0}); this.depth = 0; this.target = this.holder; this.backGround = this.holder.attachMovie('Mapa', 'Mapa', this.depth, {'_x': 0, '_y': 0}); this.clip = this.backGround; this.clip.levelNum = this.game.levelNum; var v5 = 'map' + this.game.levelState + this.game.levelNum; this.backGround.gotoAndStop(v5); this.continue_MC = this.backGround.attachMovie('continue_new', 'continue_new', 8, {'_x': 646.3, '_y': 527.9}); var v2 = 1; while (v2 <= this.tempLevelNum) { this.Dots.push(this.backGround['dots' + v2.toString()]); if (v2 % 2 == 1) { this.Dots[v2].levelState = 'F'; this.Dots[v2].levelId = int(v2 / 2) + 1; } else { if (v2 % 2 == 0) { this.Dots[v2].levelState = 'D'; this.Dots[v2].levelId = int(v2 / 2); } } ++v2; } this.Dots[this.tempLevelNum].gotoAndStop('plavo'); v2 = 1; while (v2 < this.tempLevelNum) { if (this.game.ExtraGoal[v2]) { this.Dots[v2].attachMovie('paricka', 'paricka', 40, {'_x': -13.1, '_y': -39}); } else { if (this.game.Goal[v2]) { } } ++v2; } if (this.hasAttachTransition) { this.aTransition.startTransition(); } if (this.game.StatusBeforeThisScreen == 'nameScreen') { this.game.StatusBeforeThisScreen = 'LevelInfoScreen'; } else { this.game.sndCtrl.playWithFadeIn(this.game.soundsId.titlescreen_snd, 1000, 32000); this.game.sndCtrl.stopWithFadeOut(this.game.soundsId.goalreached_snd, 1000); this.game.sndCtrl.stopWithFadeOut(this.game.soundsId.restartlevel_snd, 1000); } }; v2.attachClip = function () { delete utils.Delegate; utils.Delegate = this.game.delegate; this.backGround = this.holder.attachMovie('Mapa', 'Mapa', this.depth, {'_x': 0, '_y': 0}); this.clip = this.backGround; this.clip.levelNum = this.game.levelNum; var v3 = 'map' + this.game.levelState + this.game.levelNum; this.backGround.gotoAndStop(v3); this.continue_MC = this.backGround.attachMovie('continue_new', 'continue_new', 8, {'_x': 646.3, '_y': 527.9}); this.Dots = []; this.Dots.push(undefined); var v2 = 1; while (v2 <= this.tempLevelNum) { this.Dots.push(this.backGround['dots' + v2.toString()]); if (v2 % 2 == 1) { this.Dots[v2].levelState = 'F'; this.Dots[v2].levelId = int(v2 / 2) + 1; } else { if (v2 % 2 == 0) { this.Dots[v2].levelState = 'D'; this.Dots[v2].levelId = int(v2 / 2); } } ++v2; } trace('!!!!!!!!!!!!!!this.game.ExtraGoal ' + this.game.ExtraGoal); this.Dots[this.tempLevelNum].gotoAndStop('plavo'); v2 = 1; while (v2 < this.tempLevelNum) { if (this.game.ExtraGoal[v2]) { this.Dots[v2].attachMovie('paricka', 'paricka', 40, {'_x': -13.1, '_y': -39}); } else { if (this.game.Goal[v2]) { } } ++v2; } if (this.game.levelNum == 5) { this.MapArrow = this.backGround.attachMovie('MapArrow', utils.StringUtils.getUniqueName(), 25, {'_x': -100, '_y': -100}); } else { if (this.tempLevelNum != undefined) { this.MapArrow = this.backGround.attachMovie('MapArrow', utils.StringUtils.getUniqueName(), 25, {'_x': this.Dots[this.tempLevelNum]._x - 9.1 * (this.Dots[this.tempLevelNum]._xscale / 100), '_y': this.Dots[this.tempLevelNum]._y - 37 * (this.Dots[this.tempLevelNum]._yscale / 100), '_xscale': this.Dots[this.tempLevelNum]._xscale, '_yscale': this.Dots[this.tempLevelNum]._yscale}); } } this.addEvents(); }; v2.removeMapScreen = function () { if (this.game.level_ == undefined) { this.game.level_ = new com.Level(this.game); trace('removeMapScreen this.game.levelNum ' + this.game.levelNum); this.game.level_.singelBoySacks = this.game.singelBoySacksArray[this.game.levelNum]; this.game.level_.singelGirlSacks = this.game.singelGirlSacksArray[this.game.levelNum]; this.game.level_.twinBoySacks = this.game.twinBoySacksArray[this.game.levelNum]; this.game.level_.twinGirlSacks = this.game.twinGirlSacksArray[this.game.levelNum]; this.game.level_.tripletBoySacks = this.game.tripletBoySacksArray[this.game.levelNum]; this.game.level_.tripletGirlSacks = this.game.tripletGirlSacksArray[this.game.levelNum]; this.game.level_.quadrupletBoySacks = this.game.quadrupletBoySacksArray[this.game.levelNum]; this.game.level_.quadrupletGirlSacks = this.game.quadrupletGirlSacksArray[this.game.levelNum]; } if (this.hasRemoveTransition) { this.rTransition.startTransition(); } else { this.remove(); } }; v2.Yes = function () { this.game.levelNum = this.templevelId; this.game.levelState = this.templevelState; if (this.game.levelState == 'F') { var v5 = this.game.levelNum * 2 - 1; } else { if (this.game.levelState == 'D') { var v5 = this.game.levelNum * 2; } } var v4 = v5; while (v4 < 24) { this.game.ExtraGoal[v4] = 0; this.game.Goal[v4] = 0; ++v4; } var v2 = this.game.levelNum; while (v2 < 12) { this.game.avoidingBadWeatherLevelsArray[v2] = 0; this.game.Stork0Speed[v2] = 0; this.game.Stork0Power[v2] = 0; this.game.Stork1Speed[v2] = 0; this.game.Stork1Power[v2] = 0; this.game.Stork2Speed[v2] = 0; this.game.Stork2Power[v2] = 0; this.game.Stork3Speed[v2] = 0; this.game.Stork3Power[v2] = 0; this.game.Stork4Speed[v2] = 0; this.game.Stork4Power[v2] = 0; this.game.Stork5Speed[v2] = 0; this.game.Stork5Power[v2] = 0; ++v2; } var v3 = 0; while (v3 < 6) { this.game.Storks[v3].speed = this.game['Stork' + v3 + 'Speed'][this.game.levelNum - 1]; this.game.Storks[v3].power = this.game['Stork' + v3 + 'Power'][this.game.levelNum - 1]; ++v3; } this.game.strongStork = 0; v4 = 0; while (v4 <= 5) { if (this.game.Storks[v4].power > this.game.strongStork) { this.game.strongStork = this.game.Storks[v4].power; } ++v4; } trace('this.game.avoidingBadWeatherLevelsArray ' + this.game.avoidingBadWeatherLevelsArray); trace('this.game.levelNum ' + this.game.levelNum); this.game.avoidingBadWeatherLevels = this.game.avoidingBadWeatherLevelsArray[this.game.levelNum - 1]; this.game.interface_.saveLoadObject.saveGame(this.game.userName); this.removeMapScreen(); }; v2.addEvents = function () { this.YesNo.yes.holder = this; this.YesNo.yes.onPress = function () { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.Yes(); }; this.YesNo.yes.onRollOver = function () { this.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); }; this.YesNo.yes.onRollOut = function () { this.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.YesNo.yes.onReleaseOutside = function () { this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.gotoAndStop(1); }; this.YesNo.no.holder = this; this.YesNo.no.onPress = function () { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.YesNo.removeMovieClip(); }; this.YesNo.no.onRollOver = function () { this.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); }; this.YesNo.no.onRollOut = function () { this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.gotoAndStop(1); }; this.YesNo.no.onReleaseOutside = function () { this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.gotoAndStop(1); }; this.continue_MC.continueBtn.holder = this; this.continue_MC.continueBtn.onPress = function () { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this._parent.ss.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.removeMapScreen(); }; this.continue_MC.continueBtn.onRollOver = function () { this._parent.ss.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); }; this.continue_MC.continueBtn.onRollOut = function () { this._parent.ss.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.continue_MC.continueBtn.onReleaseOutside = function () { this._parent.ss.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; var v2 = 0; while (v2 <= this.tempLevelNum) { this.Dots[v2].hitClip.holder = this; this.Dots[v2].hitClip.onRollOver = function () { this.holder.game.mousePointer.clip.gotoAndStop('finger'); if (this.holder.Dots[this.holder.tempLevelNum] == this._parent) { this._parent.gotoAndStop('plavoRollOver'); } else { this._parent.gotoAndStop('crvenoRollOver'); } }; this.Dots[v2].hitClip.onReleaseOutside = function () { this.holder.game.mousePointer.clip.gotoAndStop('normal'); if (this.holder.Dots[this.holder.tempLevelNum] == this._parent) { this._parent.gotoAndStop('plavo'); } else { this._parent.gotoAndStop('crveno'); } }; this.Dots[v2].hitClip.onRollOut = function () { this.holder.game.mousePointer.clip.gotoAndStop('normal'); if (this.holder.Dots[this.holder.tempLevelNum] == this._parent) { this._parent.gotoAndStop('plavo'); } else { this._parent.gotoAndStop('crveno'); } }; this.Dots[v2].hitClip.onPress = function () { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); if (this.holder.Dots[this.holder.tempLevelNum] == this._parent) { this._parent.gotoAndStop('plavoPress'); } else { this._parent.gotoAndStop('crvenoPress'); } }; this.Dots[v2].hitClip.onRelease = function () { this.holder.game.mousePointer.clip.gotoAndStop('normal'); if (this.holder.Dots[this.holder.tempLevelNum] == this._parent) { this.holder.removeMapScreen(); } else { this.holder.YesNo = this.holder.backGround.attachMovie('yes-no', utils.StringUtils.getUniqueName(), 200, {'_x': 400, '_y': 300}); this.holder.templevelId = this._parent.levelId; this.holder.templevelState = this._parent.levelState; this.holder.MapArrow._x = this._parent._x - 9.1 * (this._parent._xscale / 100); this.holder.MapArrow._y = this._parent._y - 37 * (this._parent._yscale / 100); this.holder.MapArrow._xscale = this._parent._xscale; this.holder.MapArrow._yscale = this._parent._yscale; this.holder.addEvents(); return undefined; } }; ++v2; } }; v2.addAttachTransition = function (t) { this.aTransition = t; this.aTransition.addTransitionObject(this); this.aTransition.addEventListener('onAttach', this); this.hasAttachTransition = true; }; v2.addRemoveTransition = function (t) { this.rTransition = t; this.rTransition.addTransitionObject(this); this.rTransition.addEventListener('onRemove', this); this.hasRemoveTransition = true; }; v2.removeAttachTransition = function (t) { this.aTransition.removeEventListener('onAttach', this); this.hasAttachTransition = false; this.aTransition = undefined; }; v2.removeRemoveTransition = function (t) { this.rTransition.removeEventListener('onRemove', this); this.hasRemoveTransition = false; this.rTransition = undefined; }; v2.attach = function () { this.attachClip(); if (this.hasAttachTransition) { this.aTransition.startTransition(); } }; v2.remove = function () { delete utils.Delegate; trace('!!! this.game.levelNum ' + this.game.levelNum); if (this.game.levelNum == 5) { this.game.interface_.showWin(); } else { if (this.game.levelNum > 1) { if (this.game.levelState == 'F') { this.game.interface_.showUpgradeScreen(); } else { if (this.game.levelState == 'D') { this.game.interface_.showDeliveriUpgradeScreen(); } } } else { if (this.game.levelState == 'F') { this.game.interface_.saveLoadObject.saveGame(this.game.userName); this.game.interface_.showGame(); } else { if (this.game.levelState == 'D') { var v2 = 0; while (v2 < 6) { trace('remove this.game.levelNum ' + this.game.levelNum); trace('LOAD DELIVERY ' + this.game.Storks[v2].speed); this.game['Stork' + v2 + 'Speed'][this.game.levelNum - 1] = this.game.Storks[v2].speed; this.game['Stork' + v2 + 'Power'][this.game.levelNum - 1] = this.game.Storks[v2].power; ++v2; } this.game.interface_.saveLoadObject.saveGame(this.game.userName); this.game.level_.createDelivery(); } } } } this.holder.removeMovieClip(); }; v2.onAttach = function () {}; v2.onRemove = function () { this.remove(); }; ASSetPropFlags(scr.MapScreen.prototype, null, 1); } #endinitclip } movieClip 9289 __Packages.com.Level { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Level) { var v1 = function (_game) { super(); _global.level = this; this.game = _game; this.heartPoints = 0; this.deliveryTime = false; this.sm = new utils.ScoreMessage(); this.pointsArray = []; this.singelBoySacks = this.game.singelBoySacksArray[this.game.levelNum]; this.singelGirlSacks = this.game.singelGirlSacksArray[this.game.levelNum]; this.twinBoySacks = this.game.twinBoySacksArray[this.game.levelNum]; this.twinGirlSacks = this.game.twinGirlSacksArray[this.game.levelNum]; this.tripletBoySacks = this.game.tripletBoySacksArray[this.game.levelNum]; this.tripletGirlSacks = this.game.tripletGirlSacksArray[this.game.levelNum]; this.quadrupletBoySacks = this.game.quadrupletBoySacksArray[this.game.levelNum]; this.quadrupletGirlSacks = this.game.quadrupletGirlSacksArray[this.game.levelNum]; this.levelWrongWish = false; this.pauseScreenAttached = false; this.allBabiesSendHappy = true; this.CleaningStorkOldCounter = 0; this.StorkOldCounter = 0; this.CleaningStorkCounter = 0; this.StorkCounter = 0; this.game.maxCounter = 0; this.game.maxCombo = 0; this.comboNum = 0; this.halt = false; this.LastComboIndex = 0; this.rankPointsBonus = 10; this.hc = undefined; this.YouRockWon = false; this.goingOnPause = false; this.succesesClick = 100000; this.succesesClickFlag = false; this.storkCarringFlag = false; this.PointedObject = undefined; this.init(); }; com.Level = v1; com.Level extends MovieClip; var v2 = v1.prototype; v2.init = function () { delete utils.Delegate; this.keyboard = new com.Keyboard(this); this.mouse = new com.MouseImpl(this); this.pause = false; this.clock = new utils.Clock(); this.clock.addEventListener('onClockTick', this); this.timer = new utils.Timer(); this.timer.addEventListener('onTimerTick', this); }; v2.createFactory = function () { this.halt = false; this.pause = false; delete this.depth; this.depth = new ctrl.DepthController(this); this.clock.start(0); this.timer.start(); this.deliveryTime = false; this.LevelConfig = new config.LevelConfig(this); this.factory = new com.Factory(this); this.game.maxCombo = 0; this.game.levelPoints = 0; this.YouRockWon = false; this.game.gameCanBePaused = true; }; v2.onTimerTick = function () { if (!this.pause) { if (getTimer() - this.succesesClick > 4000 && this.deliveryTime == false && this.storkCarringFlag == true) { var v5 = getTimer(); if (this.PointedObject == undefined) { this.factory.Stork.PointStorkNextAction(); } this.storkCarringFlag = false; } if (getTimer() - this.succesesClick > 8000 && this.deliveryTime == false && this.succesesClickFlag == true) { v5 = getTimer(); if (this.PointedObject == undefined) { this.factory.Stork.FindNextAction(); } this.succesesClickFlag = false; } if (this.BabyForPointedObjectFlag == true) { if (this.BabyForPointedObject.inSackMashine == true) { this.BabyForPointedObjectFlag = false; var v4 = true; if (this.NeedForPointedObject > 0) { var v3 = 0; while (v3 <= this.factory.babies.length) { if (this.factory.babies[v3].need == this.NeedForPointedObject && this.factory.babies[v3] != this.BabyForPointedObject) { v4 = false; this.BabyForPointedObject = this.factory.babies[v3]; break; } ++v3; } } if (v4 == true) { this.factory.UnpointObject(this.PointedObject); } else { this.BabyForPointedObjectFlag = true; } } } if (this.deliveryTime && this.pause == false) { this.delivery.update(); } else { this.mouse.update(); this.update(); updateAfterEvent(); } } else { if (this.game.popUpPause == true) { if (_global.bottleReady == true) { _global.bottleReady = false; } } } }; v2.createDelivery = function () { delete this.depth; this.depth = new ctrl.DepthController(this); this.clock.start(0); this.timer.start(); this.deliveryTime = true; this.delivery = new com.Delivery(this); this.negativePoints = false; this.game.maxCombo = 0; this.game.maxRang = 0; this.game.levelPoints = 0; this.game.gameCanBePaused = true; }; v2.onClockTick = function () {}; v2.update = function () { if (this.game.cleaningStorkApearing > 1) { if (getTimer() - this.sleepingTimer > this.factory.sleepDelay && this.factory.storkTimeToSleep == false) { this.factory.storkTimeToSleep = true; this.factory.CleaningStork.fallSleep(); } } if (this.factory.babiesInRoom == 0 && this.factory.servedBabies < this.factory.maxLevelBabies && this.factory.babies.length > 1 && this.factory.babies.length < this.factory.maxLevelBabies) { this.factory.slotMachineBlinking(); this.factory.babies[this.factory.babies.length - 1].blinkingCalled = true; } if (_global.bottleReady == true) { _global.bottleReady = false; this.factory.Foodmaker.attachBottles(); } this.factory.Brojac.brojce.text = this.game.successAction.toString(); if (this.factory.animation == false) { if (this.factory.clickArray.length == 0) { if (this.factory.Stork.clip._x != 694 && this.factory.Stork.clip._y != 416 && this.factory.flagOnWayBack == false && this.factory.factoryStarted == true) { this.factory.flagOnWayBack = true; var v4 = 694 - this.factory.Stork.clip._x; this.game.sndCtrl.stopSound(this.factory.soundsId.storkgo_snd); this.game.sndCtrl.playSound(this.factory.soundsId.storkgo_snd); this.factory.attachOblache(this.factory.Stork.clip._x + 13 + v4 / 3, this.factory.Stork.clip._y + 17, 60131); utils.Delegate.callDelayed(this.factory, this.factory.attachOblache, 150, this.factory.Stork.clip._x + 13 + 2 * v4 / 3, this.factory.Stork.clip._y + 17, 60132); utils.Delegate.callDelayed(this.factory, this.factory.StorkIsBack, 150); } } this.factory.getClick(); } if (this.factory.animation1 == false) { if (this.factory.CleaningStork.sleep == false) { if (this.factory.CleaningStork.stand == false) { if (this.factory.CleaningStork.hasTowel == false) { if (this.CleaningStorkOldCounter >= 3) { if (this.factory.CleaningStork.sleep == false) { this.factory.CleaningStork.GotoAndStop('tired'); this.game.sndCtrl.stopSound(this.factory.Stork.soundsId.disenje_snd); this.game.sndCtrl.playSound(this.factory.Stork.soundsId.disenje_snd); this.CleaningStorkOldCounter = 0; } } else { if (this.factory.CleaningStork.sleep == false) { this.factory.CleaningStork.GotoAndStop('dise'); } } } else { if (this.factory.CleaningStork.sleep == false) { if (this.factory.CleaningStork.Towel.isDirty == false) { this.factory.CleaningStork.GotoAndStop('dise_Towel'); } else { this.factory.CleaningStork.GotoAndStop('dise_DirtyTowel'); } } } this.factory.CleaningStork.stand = true; } this.factory.getClick1(); } } if (this.factory.startBlinking == true) { this.factory.slotMachineBlinking(); } var v3 = 0; while (v3 <= this.factory.babies.length - 1) { if (this.factory.babies[v3].moodFlag == true) { if (this.factory.babies[v3].need == 6) { if (getTimer() - this.factory.babies[v3].moodNeed >= this.factory.babies[v3].changeMood / 3) { this.factory.babies[v3].ChangeBabyMood(); } } else { if (getTimer() - this.factory.babies[v3].moodNeed >= this.factory.babies[v3].changeMood) { this.factory.babies[v3].ChangeBabyMood(); } } } ++v3; } }; v2.pauseGame = function () { if (this.game.gameCanBePaused == true) { if (!this.pause && this.halt == false) { this.pause = true; this.clock.stop(); this.timer.stop(); this.pausedTime = getTimer(); this.game.sndCtrl.pauseAllSounds(); if (this.game.popUpPause == false) { this.factory.pause = true; } if (this.factory.going == true) { this.goingOnPause = true; } else { this.goingOnPause = false; } if (this.factory.trackIsMoving == true && this.factory.holder != undefined) { this.factory.Track.stopMovingTrack(); this.factory.trackIsMoving = true; } else { if (this.factory.holder != undefined) { this.factory.Track.stopMovingTrack(); } } } else { if (!this.pause && this.halt == true) { this.pause = true; this.clock.stop(); if (this.game.popUpPause == false) { this.game.sndCtrl.pauseAllSounds(); this.factory.pause = true; } } } } }; v2.haltGame = function () { this.halt = true; this.timer.stop(); this.pausedTime = getTimer(); if (this.factory.going == true) { this.goingOnPause = true; } else { this.goingOnPause = false; } if (this.factory.trackIsMoving == true) { this.factory.Track.stopMovingTrack(); this.factory.trackIsMoving = true; } else { this.factory.Track.stopMovingTrack(); } }; v2.resumeGame = function () { this.halt = false; this.game.popUpPause = false; this.factory.pause = false; this.clock.start(); this.timer.start(); var v3 = getTimer() - this.pausedTime; this.succesesClick += v3; this.sleepingTimer += v3; if (this.factory.going == true) { } else {} var v2 = 0; while (v2 <= this.factory.babies.length - 1) { if (this.factory.babies[v2].moodFlag == true) { this.factory.babies[v2].moodNeed += v3; } ++v2; } if (this.factory.shakeFlag == true) { this.factory.shakeTime += v3; } if (this.factory.trackIsMoving == true) { this.factory.Track.moveTrack(); this.factory.trackIsMoving = true; } if (this.factory.babyToGetOut == true) { this.factory.babyToGetOut = false; this.factory.babyOut(); } }; v2.continueGame = function () { if (this.pause && this.halt == false) { this.factory.PauseScreen.clip = undefined; this.delivery.PauseScreen.clip = undefined; _global.pause = false; this.pause = false; this.factory.pause = false; this.clock.start(); this.timer.start(); var v5 = getTimer() - this.pausedTime; this.succesesClick += v5; this.sleepingTimer += v5; this.game.sndCtrl.resumeAllSounds(); if (this.delivery && this.delivery.holder != undefined) { this.delivery.WinBlowerTime += v5; this.delivery.timeForEvent += v5; this.delivery.RangTime += v5; this.delivery.alianceTime += v5; var v3 = 0; while (v3 < this.delivery.HouseLength) { if (this.delivery.levelAssets.Houses[v3].wish) { this.delivery.levelAssets.Houses[v3].timeWithNeed += v5; } ++v3; } } else { if (this.factory && this.factory.holder != undefined) { if (this.factory.going == true) { } else {} var v4 = 0; while (v4 <= this.factory.babies.length - 1) { if (this.factory.babies[v4].moodFlag == true) { this.factory.babies[v4].moodNeed += v5; } ++v4; } if (this.factory.shakeFlag == true) { this.factory.shakeTime += v5; } if (this.factory.trackIsMoving == true) { this.factory.Track.moveTrack(); this.factory.trackIsMoving = true; } if (this.factory.babyToGetOut == true) { this.factory.babyToGetOut = false; this.factory.babyOut(); } } } this.factory.afterPause(this.factory.objOnPause, this.factory.funcOnPause); this.factory.objOnPause = undefined; this.factory.funcOnPause = ''; } else { if (this.pause && this.halt == true) { this.pause = false; this.clock.start(); this.game.sndCtrl.resumeAllSounds(); this.factory.PauseScreen.clip = undefined; this.delivery.PauseScreen.clip = undefined; } } }; v2.getSavingParameters = function () { return 0; }; v2.setLoadedParameters = function (saveObject) {}; v2.changePointsInDelivery = function (points, clip, multyIndex, comboIndex, HitTheWeather) { this.heartPoints; var v6 = 0; if (this.game == undefined) { this.game = this.delivery.level.game; } if (comboIndex > this.game.maxCombo) { this.game.maxCombo = comboIndex; } if (comboIndex != undefined) { if (comboIndex > this.LastComboIndex && comboIndex == 2) { this.comboNum += 1; } else { if (comboIndex == this.LastComboIndex && comboIndex == 1) { this.comboNum = 0; } } this.LastComboIndex = comboIndex; } if (comboIndex > 1) { this.delivery.RangScore += 18; if (this.delivery.RangScore > 164) { this.delivery.RangScore = 164; } this.delivery.OldRang = this.delivery.Rang; if (this.delivery.RangScore >= 35 && this.delivery.RangScore < 55 && this.delivery.Rang != 'officer') { this.delivery.Rang = 'officer'; this.game.helpTipsDelivery[35].showPopUp(); this.pointsArray.push({'type': 3, 'points': this.rankPointsBonus.toString()}); this.delivery.holder.attachMovie('FadeInRank', 'FadeInRank', this.depth.getDepth('streets') - 65, {'_x': clip._x, '_y': clip._y}); this.delivery.holder.FadeInRank.object = this; v6 = 10; } else { if (this.delivery.RangScore >= 55 && this.delivery.RangScore < 75 && this.delivery.Rang != 'commander') { this.delivery.Rang = 'commander'; this.pointsArray.push({'type': 3, 'points': this.rankPointsBonus.toString()}); this.delivery.holder.attachMovie('AddRank', 'AddRank', this.depth.getDepth('streets') - 65, {'_x': clip._x, '_y': clip._y}); this.delivery.holder.AddRank.object = this; this.delivery.holder.AddRank.clip1.attachMovie(this.delivery.Rang, this.delivery.Rang, 1, {'_x': 0, '_y': 0}); this.delivery.holder.AddRank.clip2.attachMovie(this.delivery.OldRang, this.delivery.OldRang, 1, {'_x': 0, '_y': 0}); v6 = 10; } else { if (this.delivery.RangScore >= 75 && this.delivery.RangScore < 95 && this.delivery.Rang != 'captain') { this.delivery.Rang = 'captain'; this.pointsArray.push({'type': 3, 'points': this.rankPointsBonus.toString()}); this.delivery.holder.attachMovie('AddRank', 'AddRank', this.depth.getDepth('streets') - 65, {'_x': clip._x, '_y': clip._y}); this.delivery.holder.AddRank.object = this; this.delivery.holder.AddRank.clip1.attachMovie(this.delivery.Rang, this.delivery.Rang, 1, {'_x': 0, '_y': 0}); this.delivery.holder.AddRank.clip2.attachMovie(this.delivery.OldRang, this.delivery.OldRang, 1, {'_x': 0, '_y': 0}); v6 = 10; } else { if (this.delivery.RangScore >= 95 && this.delivery.RangScore < 115 && this.delivery.Rang != 'general') { this.delivery.Rang = 'general'; this.pointsArray.push({'type': 3, 'points': this.rankPointsBonus.toString()}); this.delivery.holder.attachMovie('AddRank', 'AddRank', this.depth.getDepth('streets') - 65, {'_x': clip._x, '_y': clip._y}); this.delivery.holder.AddRank.object = this; this.delivery.holder.AddRank.clip1.attachMovie(this.delivery.Rang, this.delivery.Rang, 1, {'_x': 0, '_y': 0}); this.delivery.holder.AddRank.clip2.attachMovie(this.delivery.OldRang, this.delivery.OldRang, 1, {'_x': 0, '_y': 0}); v6 = 10; } else { if (this.delivery.RangScore >= 115 && this.delivery.RangScore < 135 && this.delivery.Rang != 'Aeronaut') { this.delivery.Rang = 'Aeronaut'; this.pointsArray.push({'type': 3, 'points': this.rankPointsBonus.toString()}); this.delivery.holder.attachMovie('AddRank', 'AddRank', this.depth.getDepth('streets') - 65, {'_x': clip._x, '_y': clip._y}); this.delivery.holder.AddRank.object = this; this.delivery.holder.AddRank.clip1.attachMovie(this.delivery.Rang, this.delivery.Rang, 1, {'_x': 0, '_y': 0}); this.delivery.holder.AddRank.clip2.attachMovie(this.delivery.OldRang, this.delivery.OldRang, 1, {'_x': 0, '_y': 0}); v6 = 10; } else { if (this.delivery.RangScore >= 135 && this.delivery.RangScore < 155 && this.delivery.Rang != 'TopGun') { this.delivery.Rang = 'TopGun'; this.pointsArray.push({'type': 3, 'points': this.rankPointsBonus.toString()}); this.delivery.holder.attachMovie('AddRank', 'AddRank', this.depth.getDepth('streets') - 65, {'_x': clip._x, '_y': clip._y}); this.delivery.holder.AddRank.object = this; this.delivery.holder.AddRank.clip1.attachMovie(this.delivery.Rang, this.delivery.Rang, 1, {'_x': 0, '_y': 0}); this.delivery.holder.AddRank.clip2.attachMovie(this.delivery.OldRang, this.delivery.OldRang, 1, {'_x': 0, '_y': 0}); v6 = 10; } else { if (this.delivery.RangScore >= 155 && this.delivery.Rang != 'Ace') { this.delivery.Rang = 'Ace'; this.game.helpTipsDelivery[38].showPopUp(); this.pointsArray.push({'type': 3, 'points': this.rankPointsBonus.toString()}); if (this.hc == undefined) { v6 = 10; this.hc = this.delivery.holder.attachMovie('addRang2', 'AddRank', this.depth.getDepth('streets') + 2, {'_x': clip._x, '_y': clip._y}); this.delivery.holder.AddRank.object = this; this.delivery.holder.AddRank.holder = this.delivery.holder; this.delivery.holder.AddRank.clip = clip; this.delivery.holder.AddRank.CurentPopUp = this.delivery.CurentPopUp; this.delivery.holder.AddRank.levelTemp = this; this.game.sndCtrl.stopSound(this.game.soundsId.ace_snd); this.game.sndCtrl.playSound(this.game.soundsId.ace_snd); this.game.sndCtrl.stopSound(this.game.soundsId.windchimes_snd); this.game.sndCtrl.playSound(this.game.soundsId.windchimes_snd, 32000); } if (this.YouRockWon && !this.game.fastestStorkTrophy) { this.game.fastestStorkTrophy = true; this.delivery.showTrofej('TekstfastestStork', 'TrofejfastestStork'); } } } } } } } } if (this.delivery.RangScore > this.game.maxRang) { this.game.maxRang = this.delivery.RangScore; } if (this.delivery.OldRang != this.delivery.Rang) { if (this.delivery.Rang != 'WinScreen') { this.game.sndCtrl.stopSound(this.game.soundsId.rankingPlus_snd); this.game.sndCtrl.playSound(this.game.soundsId.rankingPlus_snd); } } } if (comboIndex == undefined) { comboIndex = 1; } if (points <= 0) { if (this.delivery.score + points < 0) { this.pointsArray = []; return undefined; } if (clip._y > 30) { var v8 = this.delivery.holder.attachMovie('numbers', 'numbers', this.delivery.holder.getNextHighestDepth() + 203, {'_x': clip._x, '_y': clip._y}); } else { var v8 = this.delivery.holder.attachMovie('numbers', 'numbers', this.delivery.holder.getNextHighestDepth() + 203, {'_x': clip._x, '_y': clip._y + 600}); } if (points == 0) { var v11 = this.sm.getPointsLoseMessage(v8.anim, 1, '', this.pointsArray); } else { var v11 = this.sm.getPointsLoseMessage(v8.anim, 1, (points * -1).toString(), this.pointsArray); this.negativePoints = true; this.game.pointsAreLost = true; this.game.successAction = 0; clip.attachMovie('blekhart', 'blekhart', 3, {'_x': 40, '_y': 2}); } this.pointsArray = []; this.game.sndCtrl.stopSound(this.game.soundsId.negativemessage_snd); this.game.sndCtrl.playSound(this.game.soundsId.negativemessage_snd); } else { this.game.successAction += 1; if (multyIndex > 1) { this.game.helpTipsDelivery[37].showPopUp(); this.pointsArray.push({'type': 7, 'points': multyIndex.toString()}); } if (comboIndex > 1) { this.game.helpTipsDelivery[36].showPopUp(); this.pointsArray.push({'type': 1, 'points': comboIndex.toString()}); } if (HitTheWeather == 1) { this.pointsArray.push({'type': 5, 'points': '10'}); } var v8 = this.delivery.holder.attachMovie('numbers', 'numbers', this.delivery.holder.getNextHighestDepth() + 203, {'_x': clip._x, '_y': clip._y}); var v11 = this.sm.getPointsWonMessage(v8.anim, 1, {'pnts': points.toString(), 'mplr': ''}, this.pointsArray); this.pointsArray = []; this.game.sndCtrl.stopSound(this.game.soundsId.positivemessage_snd); this.game.sndCtrl.playSound(this.game.soundsId.positivemessage_snd); } if (multyIndex > 1) { points = v6 + points + multyIndex + (comboIndex - 1) * points; } else { points = v6 + points + (comboIndex - 1) * points; } if (HitTheWeather == 1) { points += 10; } if (this.comboNum == 4 && !this.game.comboFreakTrophy) { this.game.comboFreakTrophy = true; if (!this.pause) { this.pauseGame(); } this.delivery.showTrofej('TekstComboFreak', 'TrofejComboFreak'); } if (this.comboNum == 5 && !this.game.comboExpertTrophy) { this.game.comboExpertTrophy = true; if (!this.pause) { this.pauseGame(); } this.delivery.showTrofej('TekstComboExpert', 'TrofejComboExpert'); } if (this.comboNum == 6 && !this.game.comboholicTrophy) { this.game.comboholicTrophy = true; if (!this.pause) { this.pauseGame(); } this.delivery.showTrofej('TekstComboHolick', 'TrofejComboHolic'); } this.heartPoints += points; this.game.levelPoints += points; this.delivery.score += points; this.game.gamePoints += points; this.delivery.score_mc.num.text = this.delivery.score; if (this.delivery.score >= this.delivery.levelAssets.PointForGoal && this.game.goalReached == false) { this.game.goalReached = true; this.game.Goal[this.game.levelNum * 2] = 1; this.delivery.holder.attachMovie('goalReached', 'goalReached', 987500, {'_x': 225.4, '_y': 160.3}); this.game.sndCtrl.stopSound(this.game.soundsId.goalReachedText_snd); this.game.sndCtrl.playSound(this.game.soundsId.goalReachedText_snd); this.delivery.score_mc1.textMsg.gotoAndStop('expert'); this.delivery.score_mc1.num.text = this.delivery.levelAssets.PointForExpertGoal; } if (this.delivery.score >= this.delivery.levelAssets.PointForExpertGoal && this.game.expertGoalReached == false) { this.game.expertGoalReached = true; this.game.ExtraGoal[this.game.levelNum * 2] = 1; this.delivery.holder.attachMovie('expertReached', 'expertReached', 987553, {'_x': 225.4, '_y': 160.3}); this.game.sndCtrl.stopSound(this.game.soundsId.goalReachedText_snd); this.game.sndCtrl.playSound(this.game.soundsId.goalReachedText_snd); this.delivery.getExpertGoal = true; this.game.expertGoalNum = 0; this.game.expertGoalInOrderNum = 0; var v2 = 0; while (v2 < this.game.ExtraGoal.length) { if (this.game.ExtraGoal[v2] == 1) { this.game.expertGoalNum += 1; if (this.game.ExtraGoal[v2 - 1] != 0) { this.game.expertGoalInOrderNum += 1; } else { this.game.expertGoalInOrderNum = 0; } } ++v2; } if (this.game.expertGoalNum >= 24 && this.game.expertGoalBusterTrophy == false) { this.game.expertGoalBusterTrophy = true; if (!this.pause) { this.pauseGame(); } this.delivery.showTrofej('TekstExpertGoalBuster', 'TrofejExpertGoalBuster'); } if (this.game.expertGoalInOrderNum >= 15 && this.game.professorTrophy == false) { this.game.professorTrophy = true; if (!this.pause) { this.pauseGame(); } this.delivery.showTrofej('TekstProfesor', 'TrofejProfesor'); } this.delivery.Goal.removeMovieClip(); } if (this.delivery.score >= 350 && this.game.queenHeartsTrophy == false) { this.game.queenHeartsTrophy = true; if (!this.pause) { this.pauseGame(); } this.delivery.showTrofej('TekstQueeOfHearts', 'TrofejQueenOfHarts'); } if (this.game.gamePoints >= 5000 && this.game.kingHeartsTrophy == false) { this.game.kingHeartsTrophy = true; if (!this.pause) { this.pauseGame(); } this.delivery.showTrofej('TekstKingsOfHarts', 'TrofejKingsOfHarts'); } if (this.game.gamePoints >= 10000 && this.game.storkHeartsTrophy == false) { this.game.storkHeartsTrophy = true; if (!this.pause) { this.pauseGame(); } this.delivery.showTrofej('TekstStorkOfharts', 'TrofejStorkOfHarts'); } }; v2.changePoints = function (points, x, y) { points /= 5; if (!this.pause) { if (points == 0) { } else { if (points < 0) { this.game.pointsAreLost = true; this.game.successAction = 0; } else { this.factory.UnpointObject(this.PointedObject); this.game.successAction += 1; var v9 = false; if (this.game.successAction > 2) { this.pointsArray.push({'type': 4, 'points': '2'}); v9 = true; this.heartPoints += 2; this.game.levelPoints += 2; this.game.gamePoints += 2; if (this.factory.tripletBarPercent < 100 && this.game.strongStork >= 2) { this.factory.tripletBarPercent += this.game.successAction + 2; var v8 = int(this.factory.tripletBarPercent * 0.4); this.factory.Triplets.polni.gotoAndStop(v8); if (this.factory.tripletBarPercent >= 100 && this.factory.tripletsFlag == false) { this.factory.Triplets.gotoAndStop(2); this.factory.target.sndCtrl.stopSound(this.factory.soundsId.indicatorfull_snd); this.factory.target.sndCtrl.playSound(this.factory.soundsId.indicatorfull_snd); this.factory.tripletsFlag = true; this.game.helpTips[26].showPopUp(); this.factory.addEvents26(); } } if (this.factory.tripletBarPercent >= 100) { this.factory.ChackForNextPopup(); } } } } if (this.game.successAction < 6) { this.factory.comboCounterFlag = false; } if (this.game.successAction >= 6 && this.factory.comboCounterFlag == false) { this.factory.comboCounterFlag = true; this.factory.comboNum += 1; if (this.factory.comboNum == 3 && this.game.comboFreakTrophy == false) { this.game.comboFreakTrophy = true; this.pauseGame(); this.factory.showTrofej('TekstComboFreak', 'TrofejComboFreak'); } if (this.factory.comboNum == 4 && this.game.comboExpertTrophy == false) { this.game.comboExpertTrophy = true; this.pauseGame(); this.factory.showTrofej('TekstComboExpert', 'TrofejComboExpert'); } if (this.factory.comboNum == 5 && this.game.comboholicTrophy == false) { this.game.comboholicTrophy = true; this.pauseGame(); this.factory.showTrofej('TekstComboHolick', 'TrofejComboHolic'); } } this.heartPoints += points; this.game.levelPoints += points; this.game.gamePoints += points; if (this.heartPoints <= 0) { this.game.levelPoints -= this.heartPoints; this.game.gamePoints -= this.heartPoints; this.heartPoints = 0; } this.factory.RedCloud.num.text = this.heartPoints.toString(); if (points > 0 && this.factory.twinBarPercent < 100 && this.game.strongStork > 0) { this.factory.twinBarPercent += 5; v8 = int((this.factory.twinBarPercent / 5) * 2); this.factory.Twins.polni.gotoAndStop(v8); if (this.factory.twinBarPercent >= 100 && this.factory.twinsFlag == false) { this.factory.twinsFlag = true; this.factory.Twins.gotoAndStop(2); this.factory.target.sndCtrl.stopSound(this.factory.soundsId.indicatorfull_snd); this.factory.target.sndCtrl.playSound(this.factory.soundsId.indicatorfull_snd); this.game.helpTips[26].showPopUp(); this.factory.addEvents26(); } } if (this.factory.twinBarPercent >= 100) { this.factory.ChackForNextPopup(); } if (this.heartPoints >= 350 && this.game.queenHeartsTrophy == false) { this.pauseGame(); this.factory.showTrofej('TekstQueeOfHearts', 'TrofejQueenOfHarts'); this.game.queenHeartsTrophy = true; } if (this.game.gamePoints >= 5000 && this.game.kingHeartsTrophy == false) { this.pauseGame(); this.factory.showTrofej('TekstKingsOfHarts', 'TrofejKingsOfHarts'); this.game.kingHeartsTrophy = true; } if (this.game.gamePoints >= 10000 && this.game.storkHeartsTrophy == false) { this.pauseGame(); this.factory.showTrofej('TekstStorkOfharts', 'TrofejStorkOfHarts'); this.game.storkHeartsTrophy = true; } if (this.heartPoints >= this.LevelConfig.levelGoal && this.heartPoints <= this.LevelConfig.levelExpertGoal && this.game.goalReached == false) { this.game.Goal[this.game.levelNum * 2 - 1] = 1; this.factory.GreenCloud.num.text = this.LevelConfig.levelExpertGoal; this.factory.GreenCloud.textMsg.gotoAndStop(2); this.game.goalReached = true; this.factory.Goal.gotoAndStop(2); this.factory.holder.attachMovie('goalReached', 'goalReached', 987553, {'_x': 225.4, '_y': 160.3}); this.game.sndCtrl.stopSound(this.game.soundsId.goalReachedText_snd); this.game.sndCtrl.playSound(this.game.soundsId.goalReachedText_snd); } else { if (this.heartPoints >= this.LevelConfig.levelExpertGoal && this.game.expertGoalReached == false) { this.game.ExtraGoal[this.game.levelNum * 2 - 1] = 1; this.factory.holder.attachMovie('expertReached', 'expertReached', 987553, {'_x': 225.4, '_y': 160.3}); this.game.sndCtrl.stopSound(this.game.soundsId.goalReachedText_snd); this.game.sndCtrl.playSound(this.game.soundsId.goalReachedText_snd); this.game.expertGoalReached = true; this.factory.getExpertGoal = true; this.game.expertGoalNum = 0; this.game.expertGoalInOrderNum = 0; var v2 = 0; while (v2 < this.game.ExtraGoal.length) { if (this.game.ExtraGoal[v2] == 1) { this.game.expertGoalNum += 1; if (this.game.ExtraGoal[v2 - 1] != 0) { this.game.expertGoalInOrderNum += 1; } else { this.game.expertGoalInOrderNum = 0; } } ++v2; } if (this.game.expertGoalNum >= 24 && this.game.expertGoalBusterTrophy == false) { this.pauseGame(); this.game.expertGoalBusterTrophy = true; this.factory.showTrofej('TekstExpertGoalBuster', 'TrofejExpertGoalBuster'); } if (this.game.expertGoalInOrderNum >= 15 && this.game.professorTrophy == false) { this.game.professorTrophy = true; this.pauseGame(); this.factory.showTrofej('TekstProfesor', 'TrofejProfesor'); } this.factory.Goal.removeMovieClip(); } } if (points <= 0) { this.game.sndCtrl.stopSound(this.game.soundsId.negativemessage_snd); this.game.sndCtrl.playSound(this.game.soundsId.negativemessage_snd); if (!(x == this.factory.Trashcan.clip._x + 50 && y == this.factory.Trashcan.clip._y) && !(x == this.factory.SlotMashine.clip._x && y == this.factory.SlotMashine.clip._y)) { this.factory.holder.attachMovie('blekhart', 'blekhart', 100333, {'_x': x + 15, '_y': y}); this.pointsArray.push(1); } var v6 = this.factory.holder.attachMovie('numbers', 'numbers', this.factory.holder.getNextHighestDepth() + 203, {'_x': x, '_y': y}); if (points == 0) { var v12 = this.sm.getPointsLoseMessage(v6.anim, 1, '2'); } else { var v12 = this.sm.getPointsLoseMessage(v6.anim, 1, (points * -1).toString(), this.pointsArray); } this.pointsArray = []; } else { if (points > 0) { this.game.sndCtrl.stopSound(this.game.soundsId.positivemessage_snd); this.game.sndCtrl.playSound(this.game.soundsId.positivemessage_snd); var v6 = this.factory.holder.attachMovie('numbers', 'numbers', this.factory.holder.getNextHighestDepth() + 203, {'_x': x, '_y': y}); var v7 = 0; if (v7 > 1) { var v12 = this.sm.getPointsWonMessage(v6.anim, 1, {'pnts': points.toString(), 'mplr': v7.toString()}, this.pointsArray); } else { var v12 = this.sm.getPointsWonMessage(v6.anim, 1, {'pnts': points.toString(), 'mplr': ''}, this.pointsArray); } this.pointsArray = []; if (this.game.successAction > this.game.maxCounter) { this.game.maxCounter = this.game.successAction; } if (this.game.successAction == 3) { if (this.game.levelNum >= 2) { this.game.helpTips[36].showPopUp(); this.addEventsPopup36(); } this.factory.holder.attachMovie('youAreFast', 'youAreFast', 907753, {'_x': x, '_y': y}); this.factory.holder.youAreFast.object = this; this.game.sndCtrl.stopSound(this.factory.soundsId.youarefast_snd); this.game.sndCtrl.playSound(this.factory.soundsId.youarefast_snd); } else { if (this.game.successAction == 4) { this.factory.holder.attachMovie('great', 'great', 917753, {'_x': x, '_y': y}); this.factory.holder.great.object = this; this.game.sndCtrl.stopSound(this.factory.soundsId.great_snd); this.game.sndCtrl.playSound(this.factory.soundsId.great_snd); } else { if (this.game.successAction == 5) { this.factory.holder.attachMovie('awesome', 'awesome', 927753, {'_x': x, '_y': y}); this.factory.holder.awesome.object = this; this.game.sndCtrl.stopSound(this.factory.soundsId.awesome_snd); this.game.sndCtrl.playSound(this.factory.soundsId.awesome_snd); } else { if (this.game.successAction == 6) { this.factory.holder.attachMovie('wow', 'wow', 937753, {'_x': x, '_y': y}); this.factory.holder.wow.object = this; this.game.sndCtrl.stopSound(this.factory.soundsId.wow_snd); this.game.sndCtrl.playSound(this.factory.soundsId.wow_snd); } else { if (this.game.successAction == 7) { this.factory.holder.attachMovie('genius', 'genius', 947753, {'_x': x, '_y': y}); this.factory.holder.genius.object = this; this.game.sndCtrl.stopSound(this.factory.soundsId.genius_snd); this.game.sndCtrl.playSound(this.factory.soundsId.genius_snd); } else { if (this.game.successAction == 8) { this.factory.holder.attachMovie('toHot', 'toHot', 957753, {'_x': x, '_y': y}); this.factory.holder.toHot.object = this; this.game.sndCtrl.stopSound(this.factory.soundsId.tohot_snd); this.game.sndCtrl.playSound(this.factory.soundsId.tohot_snd); } else { if (this.game.successAction == 9) { this.factory.holder.attachMovie('youRock', 'youRock', 967753, {'_x': x, '_y': y}); this.factory.holder.youRock.object = this; this.YouRockWon = true; this.game.sndCtrl.stopSound(this.factory.soundsId.youRock_snd); this.game.sndCtrl.playSound(this.factory.soundsId.youRock_snd); this.game.successAction = 2; } } } } } } } if (this.factory.clickArray.length == 0 && this.factory.clickArray1.length == 0 && this.factory.animation == false && this.factory.animation1 == false) { this.game.successAction = 0; } } } } }; v2.addEventsPopup36 = function () { this.game.helpTips[36].clip.OK.holder = this; this.game.helpTips[36].clip.OK.onPress = function () { this.holder.game.helpTips[36].hidePopUp(); }; }; v2.checkCombo = function () {}; v2.makeDelivery = function () { this.delivery = new com.Delivery(); this.factory.removeFactoryScreen(); }; v2.getParentWish = function () { return 0; }; v2.getUniqueName = function () { var v4 = ''; var v3 = 1; while (v3 <= 4) { var v2 = 1; while (v2 <= 4) { v4 += this.getRandomChar(); ++v2; } if (v3 < 4) { v4 += '-'; } ++v3; } return v4; }; v2.getRandomChar = function () { switch (Math.round(Math.random() + 1)) { case 1: return String.fromCharCode(Math.round(Math.random() * 25) + 65); break; case 2: return String.fromCharCode(Math.round(Math.random() * 25) + 97); } }; ASSetPropFlags(com.Level.prototype, null, 1); } #endinitclip } movieClip 9290 __Packages.utils.BaseClass { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.BaseClass) { var v1 = function () {}; utils.BaseClass = v1; var v2 = v1.prototype; v2.addEventListener = function (evt, listener) { if (this.events == undefined) { this.events = new mx.events.EventDispatcher(); } this.events.addEventListener(evt, listener); }; v2.removeEventListener = function (evt, listener) { this.events.removeEventListener(evt, listener); }; v2.destroy = function () { var v2 = false; trace('deleted: ' + v2); }; v2.pi = Math.PI; v2.cos = Math.cos; v2.acos = Math.acos; v2.sin = Math.sin; v2.asin = Math.asin; v2.atan2 = Math.atan2; v2.abs = Math.abs; v2.round = Math.round; ASSetPropFlags(utils.BaseClass.prototype, null, 1); } #endinitclip } movieClip 9291 __Packages.utils.Timer { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.Timer) { var v1 = function () { super(); }; utils.Timer = v1; utils.Timer extends utils.BaseClass; var v2 = v1.prototype; v2.start = function () { clearInterval(this._ival); this._ival = setInterval(this, 'doTick', 40); }; v2.stop = function () { clearInterval(this._ival); }; v2.doTick = function () { this.events.dispatchEvent({'type': 'onTimerTick', 'target': this}); }; ASSetPropFlags(utils.Timer.prototype, null, 1); } #endinitclip } movieClip 9292 __Packages.utils.Clock { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.Clock) { var v1 = function () { super(); this.init(); }; utils.Clock = v1; utils.Clock extends utils.BaseClass; var v2 = v1.prototype; v2.init = function () { this.second = 0; this.minute = 0; this.hour = 0; this.day = 0; this.month = 0; }; v2.clockTick = function () { ++this.second; if (this.second == 60) { this.second = 0; ++this.minute; if (this.minute == 60) { this.minute = 0; ++this.hour; if (this.hour == 24) { this.hour = 0; ++this.day; if (this.day == 30) { this.day = 0; ++this.month; } } } } this.events.dispatchEvent({'type': 'onClockTick', 'target': this}); }; v2.getSecond = function () { return this.second; }; v2.getMinute = function () { return this.minute; }; v2.getHour = function () { return this.hour; }; v2.getDay = function () { return this.day; }; v2.getMonth = function () { return this.month; }; v2.toMinutes = function () { return this.getMonth() * 30 + this.getDay() * 24 + this.getHour() * 60 + this.getMinute(); }; v2.toSeconds = function () { return this.getMonth() * 30 + this.getDay() * 24 + this.getHour() * 60 + this.getMinute() * 60 + this.getSecond(); }; v2.reset = function () { stop(); this.init(); }; v2.start = function (sec) { if (arguments.length > 0) { this.second = sec; } this.intervalID = setInterval(this, 'clockTick', 1000); }; v2.stop = function () { clearInterval(this.intervalID); }; ASSetPropFlags(utils.Clock.prototype, null, 1); } #endinitclip } movieClip 9293 __Packages.com.MouseImpl { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.MouseImpl) { var v1 = function (_level) { this.level = _level; this.init(); }; com.MouseImpl = v1; var v2 = v1.prototype; v2.init = function () { this.mouseListener = new Object(); this.mouseListener.mouse = this; this.mouseListener.onMouseDown = this.Click; this.mouseListener.onMouseUp = this.Release; this.mouseListener.onMouseMove = this.onMove; Mouse.addListener(this.mouseListener); this.pressed = false; this.xcoord = _xmouse; this.ycoord = _ymouse; this.now = getTimer(); this.br = 0; this.greater = false; this.angleTolerance = 20; this.timess = 3; this.shake = false; this.leftBaby = false; this.changeForm = false; }; v2.show = function () { this.frame = 'normal'; this.clip.gotoAndStop(this.frame); Mouse.show(); }; v2.hide = function () { Mouse.hide(); }; v2.onMove = function () { var v3 = this; var v2 = v3.mouse; v2.shakeMouse(); }; v2.Click = function () { var v2 = this; var v3 = v2.mouse; v2.mouse.level.getMouseClick = true; v2.mouse.level.getMouseClickTime = getTimer(); }; v2.Release = function () { var v2 = this; var v3 = v2.mouse; }; v2.update = function () { if (this.Baby) { var v2 = 0; while (v2 < 9) { if (this.level.factory.slots[v2].clip.hitTest(_xmouse, _ymouse, true) && this.Baby.draging) { this.Baby.GotoAndStop('Drop'); this.Baby.changeClip = false; this.changeForm = true; break; } ++v2; } v2 = 0; while (v2 <= 2) { if (this.level.factory.Bath[v2].BathFront.kada.hitClip.hitTest(_xmouse, _ymouse, true) && this.level.factory.Bath[v2].hasBaby == false && this.Baby.draging) { this.Baby.where.BathFront.kada.gotoAndStop(1); this.level.factory.Bath[v2].BathFront.kada.gotoAndStop(4); this.Baby.GotoAndStop('Drop'); this.Baby.oldDepth = this.Baby.bebeClip.getDepth(); clearInterval(this.Baby.intID); this.Baby.clip.bebe.gotoAndStop(1); this.leftBaby = true; this.Baby.overBath = true; this.Baby.bebeClip._x = this.level.factory.Bath[v2].x + 30; this.Baby.bebeClip._y = this.level.factory.Bath[v2].y - 25; this.Baby.changeClip = true; this.changeForm = true; break; } else { if (this.level.factory.Bed[v2].BedFront.bed.hitClip.hitTest(_xmouse, _ymouse, true) && this.level.factory.Bed[v2].hasBaby == false && this.Baby.draging && this.level.factory.Bed[v2].isClean == true && !this.level.game.helpTips[16].clip) { var v3 = this.level.factory.Bed[v2].clip.getDepth() + 2; clearInterval(this.Baby.intID); this.Baby.oldDepth = this.Baby.bebeClip.getDepth(); this.Baby.bebeClip.swapDepths(v3); var v4 = this.Baby.bebeClip.getDepth(); this.Baby.bebeClip._x = this.level.factory.Bed[v2].x + 5; this.Baby.bebeClip._y = this.level.factory.Bed[v2].y + 50; this.leftBaby = true; this.Baby.overBed = true; this.Baby.GotoAndStop('Happy'); this.Baby.clip.happybebe.gotoAndStop('bed'); this.Baby.changeClip = true; this.changeForm = true; break; } } ++v2; } if (this.changeForm == false) { if (this.Baby.changeClip == true) { if (this.leftBaby == true) { this.Baby.startDragging(); this.Baby.bebeClip._x = _xmouse; this.Baby.bebeClip._y = _ymouse; this.Baby.bebeClip.swapDepths(777777); this.Baby.draging = true; this.leftBaby = false; this.Baby.overBath = false; v2 = 0; while (v2 <= 2) { if (this.level.factory.Bath[v2].Baby == undefined) { this.level.factory.Bath[v2].BathFront.kada.gotoAndStop(1); } ++v2; } } v2 = 0; while (v2 <= 2) { if (this.level.factory.Bath[v2].Baby == undefined) { this.level.factory.Bath[v2].BathFront.kada.gotoAndStop(1); } ++v2; } this.Baby.GotoAndStop('Drag'); this.Baby.changeClip = false; } } this.Baby.changeClip = true; this.changeForm = false; } }; v2.shakeMouse = function () { var v2 = 180 * Math.atan2(_ymouse - this.ycoord, _xmouse - this.xcoord) / Math.PI; if (!this.greater && Math.abs(v2) <= this.angleTolerance || this.greater && Math.abs(v2) >= 180 - this.angleTolerance) { ++this.br; } if (Math.abs(v2) <= this.angleTolerance) { this.greater = true; if (this.level.factory.CleaningStork.pressed == true && this.level.factory.CleaningStork.right == false && this.level.factory.CleaningStork.weakingUp == false) { this.level.factory.CleaningStork.clip.gotoAndStop('right'); this.level.factory.CleaningStork.right = true; this.level.factory.CleaningStork.left = false; } } else { if (Math.abs(v2) >= 180 - this.angleTolerance) { this.greater = false; if (this.level.factory.CleaningStork.pressed == true && this.level.factory.CleaningStork.left == false && this.level.factory.CleaningStork.weakingUp == false) { this.level.factory.CleaningStork.clip.gotoAndStop('left'); this.level.factory.CleaningStork.right = false; this.level.factory.CleaningStork.left = true; } } } this.xcoord = _xmouse; this.ycoord = _ymouse; if (getTimer() - this.now > 350) { this.now = getTimer(); if (this.br > this.timess) { this.level.factory.CleaningStork.weakingUp = true; if (this.level.factory.CleaningStork.pressed == true && this.level.factory.CleaningStork.sleep == true) { this.level.factory.CleaningStork.clip.gotoAndPlay('weak_up'); this.level.factory.CleaningStork.sleep = false; } } this.br = 0; this.xcoord = _xmouse; this.ycoord = _ymouse; } }; v2.removeMouseListener = function () { Mouse.removeListener(this.mouseListener); }; ASSetPropFlags(com.MouseImpl.prototype, null, 1); } #endinitclip } movieClip 9294 __Packages.com.Keyboard { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Keyboard) { var v1 = function (_level) { this.level = _level; this.keyboardListener = new Object(); this.keyboardListener.keyboard = this; this.keyboardListener.onKeyDown = this.Press; this.keyboardListener.onKeyUp = this.Release; Key.addListener(this.keyboardListener); this.flegForPopup = false; }; com.Keyboard = v1; var v2 = v1.prototype; v2.Press = function () { var v2 = this; var v3 = v2.keyboard; }; v2.Release = function () { var v2 = this; var v4 = v2.keyboard; if (Key.getCode() == 80) { if (v2.keyboard.level.delivery.CurentPopUp != undefined) { if (v2.keyboard.flegForPopup == false) { v2.keyboard.flegForPopup = true; v2.keyboard.level.delivery.PauseScreen = new scr.PauseScreen(v2.keyboard.level.delivery); v2.keyboard.level.delivery.PauseScreen.attachPauseScreen(); } else { v2.keyboard.flegForPopup = false; var v3 = new trans.ClipTransitionPause('CloudLR_out', 'pauseScreen'); v3.Screen = v2.keyboard.level.delivery.PauseScreen; v3.setHolderPosition(v2.keyboard.level.delivery.holder, 400, 300, 100001); v3.startTransition(false); utils.Delegate.callDelayed(v3, v3.toPointTransition, 160, 800, 300, 4); } } else { if (!v2.keyboard.level.pause && v2.keyboard.level.factory.factory.PauseScreen.clip == undefined && v2.keyboard.level.factory.delivery.PauseScreen.clip == undefined) { v2.keyboard.flegForPopup = false; v2.keyboard.level.factory.pauseInGame(); v2.keyboard.level.delivery.pauseInGame(); } else { v2.keyboard.flegForPopup = false; if (v2.keyboard.level.factory != undefined) { var v3 = new trans.ClipTransitionPause('CloudLR_out', 'pauseScreen'); v3.Screen = v2.keyboard.level.factory.PauseScreen; v3.setHolderPosition(v2.keyboard.level.factory.holder, 400, 300, 100001); v3.startTransition(false); utils.Delegate.callDelayed(v3, v3.toPointTransition, 160, 800, 300, 4); } else { var v3 = new trans.ClipTransitionPause('CloudLR_out', 'pauseScreen'); v3.Screen = v2.keyboard.level.delivery.PauseScreen; v3.setHolderPosition(v2.keyboard.level.delivery.holder, 400, 300, 100001); v3.startTransition(false); utils.Delegate.callDelayed(v3, v3.toPointTransition, 160, 800, 300, 4); } } } } }; v2.removeKeyboardListener = function () { Key.removeListener(this.keyboardListener); }; ASSetPropFlags(com.Keyboard.prototype, null, 1); } #endinitclip } movieClip 9295 __Packages.scr.PauseScreen { #initclip if (!_global.scr) { _global.scr = new Object(); } if (!_global.scr.PauseScreen) { var v1 = function (factory_) { super(); this.factory = factory_; this.range = 193; }; scr.PauseScreen = v1; scr.PauseScreen extends utils.MovieClipProperties; var v2 = v1.prototype; _global.scr.PauseScreen implements _global.utils.IClipEvents; v2.attachPauseScreen = function () { trace('attachPauseScreen '); var v2 = new trans.ClipTransitionPause('CloudLR_in', 'pauseScreen'); v2.setHolderPosition(this.factory.holder, 300, 400, 100001); v2.Screen = this; v2.startTransition(); v2.toPointTransition(400, 300, 6); this.clip = v2.clip; this.addEvents(); }; v2.removePauseScreen = function () { this.clip.removeMovieClip(); }; v2.addEvents = function () {}; ASSetPropFlags(scr.PauseScreen.prototype, null, 1); } #endinitclip } movieClip 9296 __Packages.trans.ClipTransitionPause { #initclip if (!_global.trans) { _global.trans = new Object(); } if (!_global.trans.ClipTransitionPause) { var v1 = function (holderClip, displayClip) { super(); this.holderClip = holderClip; this.displayClip = displayClip; this.frames = 6; this.showSparkle = false; this.appearing = true; }; trans.ClipTransitionPause = v1; trans.ClipTransitionPause extends utils.MovieClipProperties; var v2 = v1.prototype; v2.setHolderPosition = function (target, x, y, depth) { this.target = target; this.x = x; this.y = y; this.depth = depth; }; v2.takeSnapShot = function (mc) { var v6 = mc.getDepth(); this.snapShot = _root.createEmptyMovieClip('snapshot', 1500); var v4 = new flash.geom.Matrix(); v4.translate(mc._x, mc._y); var v5 = new flash.display.BitmapData(mc._width, mc._height, true, 0); v5.draw(mc, v4, new flash.geom.ColorTransform(), 1, undefined, true); this.snapShot.attachBitmap(v5, v6 + 1); mc._visible = false; }; v2.startTransition = function (appearing) { if (appearing != undefined) { this.appearing = appearing; } _global.level.pauseScreenAttached = true; this.takeSnapShot(this.target); this.clip = this.snapShot.attachMovie(this.holderClip, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.x, '_y': this.y}); var v4 = this.clip.emptyClip; var v3 = v4.attachMovie(this.displayClip, utils.StringUtils.getUniqueName(), v4.getNextHighestDepth()); this.Screen.range = 193; this.Screen.tempBarMusic = this.Screen.factory.level.game.musicVolume; this.Screen.tempBarSound = this.Screen.factory.level.game.fxVolume; trace('tempBarMusic ' + this.Screen.tempBarMusic); trace('tempBarSound ' + this.Screen.tempBarSound); v3.soundBar._xscale = this.Screen.tempBarSound; v3.musicBar._xscale = this.Screen.tempBarMusic; v3.soundSlider._x = 75 + this.Screen.tempBarSound * this.Screen.range / 100; v3.musicSlider._x = 330 + this.Screen.tempBarMusic * this.Screen.range / 100; this.popupHolder = v4.createEmptyMovieClip(utils.StringUtils.getUniqueName(), v4.getNextHighestDepth()); var v6 = new flash.geom.Matrix(); this.popupHolder._x = -v3._width / 2; this.popupHolder._y = -v3._height / 2; var v5 = new flash.display.BitmapData(v3._width, v3._height, true, 0); v5.draw(v3, v6, new flash.geom.ColorTransform(), 1, undefined, true); this.popupHolder.attachBitmap(v5, this.depth, 'auto', true); v3.removeMovieClip(); this.clip.holder = this; utils.Delegate.callDelayed(this.clip, gotoAndPlay, 10, 2); }; v2.toPointTransition = function (destx, desty, tframe) { if (destx != undefined && desty != undefined) { this.destx = destx; this.desty = desty; if (tframe != undefined) { this.frames = tframe; } var v2 = this.frames * 40; this.startx = this.clip._x; this.starty = this.clip._y; this.xmove = (destx - this.clip._x) / v2; this.ymove = (desty - this.clip._y) / v2; this.t0 = getTimer(); trace('toPointTransition '); clearInterval(this.intId); this.intId = setInterval(this, 'move', 40); } }; v2.move = function () { var v3 = getTimer(); var v2 = v3 - this.t0; trace('diff ' + v2); trace('%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ' + this.frames * 40); if (v2 <= this.frames * 40) { this.clip._x = this.startx + v2 * this.xmove; this.clip._y = this.starty + v2 * this.ymove; } else { this.clip._x = this.destx; this.clip._y = this.desty; clearInterval(this.intId); if (this.appearing) { this.toClip(); } else { this.removeClip(); } trace('%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' + this.appearing); } }; v2.addEvent = function () { var v3 = this; v3.holder = this; this.clip.exitPopUP.yesBtn.holder = v3.holder; this.clip.exitPopUP.yesBtn.onPress = function () { this._parent.yes.gotoAndStop(3); trace('Press Yess ' + this.holder.clip.exitPopUP + ' ' + this.holder.Screen.factory.level.game.newGame); var v2; v2 = this.holder; this.holder.removeClip(); v2.Screen.factory.holder.removeMovieClip(); v2.Screen.factory.target.sndCtrl.stopSound(this.holder.Screen.factory.target.soundsId.mouseclick_snd); v2.Screen.factory.target.sndCtrl.playSound(this.holder.Screen.factory.target.soundsId.mouseclick_snd); v2.Screen.factory.level.game.newGame(); }; this.clip.exitPopUP.yesBtn.onReleaseOutside = function () { this._parent.yes.gotoAndStop(1); this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.exitPopUP.yesBtn.onRelease = function () { this._parent.yes.gotoAndStop(1); this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.exitPopUP.yesBtn.onRollOver = function () { this._parent.yes.gotoAndStop(2); this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('finger'); }; this.clip.exitPopUP.yesBtn.onRollOut = function () { this._parent.yes.gotoAndStop(1); this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.exitPopUP.noBtn.holder = v3.holder; this.clip.exitPopUP.noBtn.onPress = function () { this._parent.no.gotoAndStop(3); trace('Press no ' + this.clip.exitPopUP); trace('exitPopUP.no this._parent. ' + this._parent); this._parent.popup._visible = true; this.holder.Screen.factory.target.sndCtrl.stopSound(this.holder.Screen.factory.target.soundsId.mouseclick_snd); this.holder.Screen.factory.target.sndCtrl.playSound(this.holder.Screen.factory.target.soundsId.mouseclick_snd); this.holder.clip.exitPopUP.removeMovieClip(); }; this.clip.exitPopUP.noBtn.onReleaseOutside = function () { this._parent.no.gotoAndStop(1); this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.exitPopUP.noBtn.onRelease = function () { this._parent.no.gotoAndStop(1); this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.exitPopUP.noBtn.onRollOver = function () { this._parent.no.gotoAndStop(2); this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('finger'); }; this.clip.exitPopUP.noBtn.onRollOut = function () { this._parent.no.gotoAndStop(1); this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); }; }; v2.toClip = function () { var This = this; This.holder = this; _global.level.pauseScreenAttached = false; This.holder.popupHolder.removeMovieClip(); var v5 = This.holder.clip.emptyClip; var v3 = v5.attachMovie(This.holder.displayClip, utils.StringUtils.getUniqueName(), v5.getNextHighestDepth()); This.holder.Screen.range = 193; This.holder.Screen.tempBarMusic = This.holder.Screen.factory.level.game.musicVolume; This.holder.Screen.tempBarSound = This.holder.Screen.factory.level.game.fxVolume; trace('tempBarMusic ' + This.holder.Screen.tempBarMusic); trace('tempBarSound ' + This.holder.Screen.tempBarSound); v3.soundBar._xscale = This.holder.Screen.tempBarSound; v3.musicBar._xscale = This.holder.Screen.tempBarMusic; v3.soundSlider._x = 75 + This.holder.Screen.tempBarSound * This.holder.Screen.range / 100; v3.musicSlider._x = 330 + This.holder.Screen.tempBarMusic * This.holder.Screen.range / 100; v3._x = -v3._width / 2; v3._y = -v3._height / 2; v3.backToGame.btn.holder = This.holder; v3.backToGame.btn.onRelease = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); this.holder.Screen.CancelPopup(this.holder.Screen); this._parent.backToGame.gotoAndStop(3); this.holder.Screen.factory.continueGame(); this.holder.Screen.factory.continueGame(); var v4 = this.holder.x; var v3 = this.holder.y; trace('dx ' + v4); trace('dy ' + v3); trace('this.holder.x ' + this.holder.x); trace('this.holder.y ' + this.holder.y); trace('this.holder ' + this.holder); var v2 = new trans.ClipTransitionPause('CloudLR_out', 'pauseScreen'); v2.Screen = This.holder.Screen; v2.setHolderPosition(This.holder.target, 400, 300, This.holder.depth); v2.startTransition(false); utils.Delegate.callDelayed(v2, v2.toPointTransition, 160, 800, 300, 4); }; v3.backToGame.btn.onPress = function () { this.holder.Screen.factory.target.sndCtrl.stopSound(this.holder.Screen.factory.target.soundsId.mouseclick_snd); this.holder.Screen.factory.target.sndCtrl.playSound(this.holder.Screen.factory.target.soundsId.mouseclick_snd); }; v3.backToGame.btn.onReleaseOutside = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); this._parent.backToGame.gotoAndStop(1); }; v3.backToGame.btn.onRollOver = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('finger'); this._parent.backToGame.gotoAndStop(2); }; v3.backToGame.btn.onRollOut = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); this._parent.backToGame.gotoAndStop(1); }; v3.toggleFullScreen.btn.holder = This.holder; v3.toggleFullScreen.btn.onRelease = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); this._parent.modeBtn.gotoAndStop(3); _global.externalModel.toggleFullScreen(); if (_global.externalModel.fullScreen) { this._parent.gotoAndStop(1); } else { this._parent.gotoAndStop(2); } }; v3.toggleFullScreen.btn.onPress = function () { this.holder.Screen.factory.target.sndCtrl.stopSound(this.holder.Screen.factory.target.soundsId.mouseclick_snd); this.holder.Screen.factory.target.sndCtrl.playSound(this.holder.Screen.factory.target.soundsId.mouseclick_snd); }; v3.toggleFullScreen.btn.onReleaseOutside = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); this._parent.modeBtn.gotoAndStop(1); }; v3.toggleFullScreen.btn.onRollOver = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('finger'); this._parent.modeBtn.gotoAndStop(2); }; v3.toggleFullScreen.btn.onRollOut = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); this._parent.modeBtn.gotoAndStop(1); }; v3.mainMenu.btn.onRelease = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); this._parent.mainMenu.gotoAndStop(1); }; v3.mainMenu.btn.onReleaseOutside = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); this._parent.mainMenu.gotoAndStop(1); }; v3.mainMenu.btn.onRollOver = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('finger'); this._parent.mainMenu.gotoAndStop(2); }; v3.mainMenu.btn.onRollOut = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); this._parent.mainMenu.gotoAndStop(1); }; v3.mainMenu.btn.holder = This.holder; v3.mainMenu.btn.onPress = function () { this.holder.Screen.factory.target.sndCtrl.stopSound(this.holder.Screen.factory.target.soundsId.mouseclick_snd); this.holder.Screen.factory.target.sndCtrl.playSound(this.holder.Screen.factory.target.soundsId.mouseclick_snd); this.holder.clip.attachMovie('exitPopUP', 'exitPopUP', 98, {'_x': 0, '_y': 0}); this.holder.clip.exitPopUP.popup = this._parent._parent; trace('this.holder.clip.exitPopUP.popup ' + this.holder.clip.exitPopUP.popup); this._parent._parent._visible = false; this.holder.addEvent(); this._parent.mainMenu.gotoAndStop(3); }; v3.soundDown.holder = This.holder; v3.soundDown.holder.popup = v3; v3.soundDown.onPress = function () { trace('this.holder ' + this.holder); trace('this.holder.popup ' + this.holder.popup); trace('this.holder.Screen ' + this.holder.Screen); this.holder.popup.soundDown.holder.Screen = this.holder.Screen; this.holder.popup.onEnterFrame = function () { this.soundDown.holder.Screen.tempBarMusic = this.soundDown.holder.Screen.factory.level.game.musicVolume; this.soundDown.holder.Screen.tempBarSound = this.soundDown.holder.Screen.factory.level.game.fxVolume; trace('onEnterFrame'); if (this.soundDown.holder.Screen.tempBarSound > 0) { trace('this.factory.level.game.options_screen_mc.soundDown##########'); this.soundDown.holder.Screen.tempBarSound -= 5; this.soundDown.holder.popup.soundBar._xscale -= 5; this.soundDown.holder.popup.soundSlider._x = this.soundDown.holder.Screen.tempBarSound * this.soundDown.holder.Screen.range / 100 + 75; this.soundDown.holder.Screen.factory.level.game.fxVolume = this.soundDown.holder.Screen.tempBarSound; this.soundDown.holder.Screen.factory.level.game.sndCtrl.setSoundFXVolume(this.soundDown.holder.Screen.tempBarSound); this.soundDown.holder.Screen.factory.level.game.saveLoadSoundObj.saveGame(); } }; }; v3.soundDown.onRelease = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.soundDown.onReleaseOutside = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.soundDown.onRollOver = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('finger'); delete this.holder.popup.onEnterFrame; }; v3.soundDown.onRollOut = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.soundUp.holder = This.holder; v3.soundUp.holder.popup = v3; v3.soundUp.onPress = function () { trace('this.factory.level.game.options_screen_mc.soundUp'); this.holder.popup.soundUp.holder.Screen = this.holder.Screen; this.holder.popup.onEnterFrame = function () { this.soundUp.holder.Screen.tempBarMusic = this.soundUp.holder.Screen.factory.level.game.musicVolume; this.soundUp.holder.Screen.tempBarSound = this.soundUp.holder.Screen.factory.level.game.fxVolume; trace('onEnterFrame'); if (this.soundUp.holder.Screen.tempBarSound < 100) { trace('this.factory.level.game.options_screen_mc.soundUp##################'); this.soundUp.holder.Screen.tempBarSound += 5; this.soundUp.holder.popup.soundBar._xscale += 5; this.soundUp.holder.popup.soundSlider._x = this.soundUp.holder.Screen.tempBarSound * this.soundUp.holder.Screen.range / 100 + 75; this.soundUp.holder.Screen.factory.level.game.fxVolume = this.soundUp.holder.Screen.tempBarSound; this.soundUp.holder.Screen.factory.level.game.sndCtrl.setSoundFXVolume(this.soundUp.holder.Screen.tempBarSound); this.soundUp.holder.Screen.factory.level.game.saveLoadSoundObj.saveGame(); } }; }; v3.soundUp.onRelease = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.soundUp.onReleaseOutside = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.soundUp.onRollOver = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('finger'); delete this.holder.popup.onEnterFrame; }; v3.soundUp.onRollOut = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.soundSlider.holder = This.holder; v3.soundSlider.holder.popup = v3; v3.soundSlider.onPress = function () { startDrag(this, false, 75, 199, 268, 199); this.holder.popup.soundSlider.holder.Screen = this.holder.Screen; this.holder.popup.onEnterFrame = function () { this.soundBar._xscale = (this.soundSlider._x - 75) / 1.93; this.soundSlider.holder.Screen.tempBarSound = (this.soundSlider._x - 75) / 1.93; this.soundSlider.holder.Screen.factory.level.game.fxVolume = this.soundSlider.holder.Screen.tempBarSound; this.soundSlider.holder.Screen.factory.level.game.sndCtrl.setSoundFXVolume((this.soundSlider._x - 75) / 1.93); this.soundSlider.holder.Screen.factory.level.game.saveLoadSoundObj.saveGame(); }; }; v3.soundSlider.onRelease = function () { delete this.onEnterFrame; this.stopDrag(); }; v3.soundSlider.onReleaseOutside = function () { delete this.onEnterFrame; this.stopDrag(); }; v3.musicSlider.onRelease = function () { delete this.onEnterFrame; this.stopDrag(); }; v3.musicSlider.onReleaseOutside = function () { delete this.onEnterFrame; this.stopDrag(); }; v3.musicDown.holder = This.holder; v3.musicDown.holder.popup = v3; v3.musicDown.onPress = function () { trace('this.factory.level.game.options_screen_mc.musicDown'); this.holder.popup.musicDown.holder.Screen = this.holder.Screen; this.holder.popup.onEnterFrame = function () { this.musicDown.holder.Screen.tempBarMusic = this.musicDown.holder.Screen.factory.level.game.musicVolume; this.musicDown.holder.Screen.tempBarSound = this.musicDown.holder.Screen.factory.level.game.fxVolume; trace('onEnterFrame'); if (this.musicDown.holder.Screen.tempBarMusic > 0) { trace('this.factory.level.game.options_screen_mc.musicDown##############'); this.musicDown.holder.Screen.tempBarMusic -= 5; this.musicDown.holder.popup.musicBar._xscale -= 5; this.musicDown.holder.popup.musicSlider._x = this.musicDown.holder.Screen.tempBarMusic * this.musicDown.holder.Screen.range / 100 + 330; this.musicDown.holder.Screen.factory.level.game.musicVolume = this.musicDown.holder.Screen.tempBarMusic; this.musicDown.holder.Screen.factory.level.game.sndCtrl.setMusicVolume(this.musicDown.holder.Screen.tempBarMusic); this.musicDown.holder.Screen.factory.level.game.saveLoadSoundObj.saveGame(); } }; }; v3.musicDown.onRelease = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.musicDown.onReleaseOutside = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.musicDown.onRollOver = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('finger'); delete this.holder.popup.onEnterFrame; }; v3.musicDown.onRollOut = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.musicUp.holder = This.holder; v3.musicUp.holder.popup = v3; v3.musicUp.onPress = function () { trace('this.factory.level.game.options_screen_mc.musicUp'); this.holder.popup.musicUp.holder.Screen = this.holder.Screen; this.holder.popup.onEnterFrame = function () { if (this.musicUp.holder.factory) { this.musicUp.holder.Screen.tempBarMusic = this.musicUp.holder.Screen.factory.level.game.musicVolume; this.musicUp.holder.Screen.tempBarSound = this.musicUp.holder.Screen.factory.level.game.fxVolume; } trace('onEnterFrame'); if (this.musicUp.holder.Screen.tempBarMusic < 100) { trace('this.factory.level.game.options_screen_mc.musicUp#############################'); this.musicUp.holder.Screen.tempBarMusic += 5; this.musicUp.holder.popup.musicBar._xscale += 5; this.musicUp.holder.popup.musicSlider._x = this.musicUp.holder.Screen.tempBarMusic * this.musicUp.holder.Screen.range / 100 + 330; this.musicUp.holder.Screen.factory.level.game.musicVolume = this.musicUp.holder.Screen.tempBarMusic; this.musicUp.holder.Screen.factory.level.game.sndCtrl.setMusicVolume(this.musicUp.holder.Screen.tempBarMusic); this.musicUp.holder.Screen.factory.level.game.saveLoadSoundObj.saveGame(); } }; }; v3.musicUp.onRelease = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.musicUp.onReleaseOutside = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.musicUp.onRollOver = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('finger'); delete this.holder.popup.onEnterFrame; }; v3.musicUp.onRollOut = function () { this.holder.Screen.factory.target.mousePointer.clip.gotoAndStop('normal'); delete this.holder.popup.onEnterFrame; }; v3.musicSlider.holder = This.holder; v3.musicSlider.holder.popup = v3; v3.musicSlider.onPress = function () { startDrag(this, false, 330, 199, 523, 199); this.holder.popup.musicSlider.holder.Screen = this.holder.Screen; this.holder.popup.onEnterFrame = function () { this.musicBar._xscale = (this.musicSlider._x - 330) / 1.93; this.musicSlider.holder.Screen.tempBarMusic = (this.musicSlider._x - 330) / 1.93; this.musicSlider.holder.Screen.factory.level.game.musicVolume = this.musicSlider.holder.Screen.tempBarMusic; this.musicSlider.holder.Screen.factory.level.game.sndCtrl.setMusicVolume((this.musicSlider._x - 330) / 1.93); this.musicSlider.holder.Screen.factory.level.game.saveLoadSoundObj.saveGame(); }; }; }; v2.removeClip = function () { trace('removeClip '); var v4 = this; v4.holder = this; if (this.showSparkle) { var v3 = new MesgAnim.Fireworks(20, 'star'); v3.changeSparkleProperties(11.1, 3600); v3.setProperties(this.target, this.clip._x + 40, this.clip._y + 40); v3.startFireworks(); clearInterval(this.intId); } trace('this.target._visible ' + this.target._visible); trace('this.snapShot ' + this.snapShot); this.target._visible = true; trace('++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'); trace('this.target.factoryObject.goingOnPause ' + this.target.factoryObject.goingOnPause); trace('this.target.factoryObject.factory.Stork.clip ' + this.target.factoryObject.factory.Stork.clip); if (this.holderClip == 'CloudLR_out') { _global.level.pauseScreenAttached = false; } this.snapShot.removeMovieClip(); _global.level.continueGame(); this.clip.removeMovieClip(); this.clip = undefined; }; ASSetPropFlags(trans.ClipTransitionPause.prototype, null, 1); } #endinitclip } movieClip 9297 __Packages.com.Factory { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Factory) { var v1 = function (level_) { super(); this.f = new scr.FadeIn(); this.r = new scr.FadeOut(); this.hasAttachTransition = false; this.hasRemoveTransition = false; this.addAttachTransition(this.f); this.addRemoveTransition(this.r); this.level = level_; this.level.factory = this; this.holder = this.level.game.attachMovie('holder', 'holder', 1, {'_x': 0, '_y': 0}); this.clip = this.holder; this.holder.factoryObject = this.level; this.target = this.level.game; this.level.game.mousePointer.clip.gotoAndStop('normal'); this.depth = 1; this.CallForBaby = false; this.sounds = new Array(); utils.Delegate = this.level.game.delegate; this.sounds = [['productionline_snd', 100, false], ['horn_snd', 100, false], ['slotMachineOK_snd', 100, false], ['handleclick_snd', 100, false], ['slotMachineWRONG_snd', 100, false], ['waitinggirl_snd', 100, false], ['waitingboy_snd', 100, false], ['waitingboygirl_snd', 100, false], ['boygirlrolling_snd', 100, false], ['boy&girldone_snd', 100, false], ['boy&girlwaiting_snd', 100, false], ['genius_snd', 100, false], ['great_snd', 100, false], ['tohot_snd', 100, false], ['youRock_snd', 100, false], ['wow_snd', 100, false], ['youarefast_snd', 100, false], ['awesome_snd', 100, false], ['srce_snd', 100, false], ['foodmakerCook_snd', 100, false], ['foodmakerBottle_snd', 100, false], ['foodmakerDamage_snd', 100, false], ['foodmakerBroken_snd', 100, false], ['storkgo_snd', 100, false], ['tube_snd', 100, false], ['clouddisappear_snd', 100, false], ['twins_snd', 100, false], ['babyinlauncher_snd', 100, false], ['screw_snd', 100, false], ['honk_snd', 100, false], ['jackbox_snd', 100, false], ['indicatorfull_snd', 100, false], ['escapeswitchok_snd', 100, false], ['escapeswitchup_snd', 100, false]]; this.soundsId = new Array(); this.attachSounds(); this.init(); }; com.Factory = v1; com.Factory extends utils.MovieClipProperties; var v2 = v1.prototype; v2.init = function () { this.ime = 0; this.isLastWish = false; this.d = 1; this.level.factory = this; this.pause = false; this.twins = false; this.triplets = false; this.quadruplets = false; this.objOnPause = undefined; this.funcOnPause = ''; this.twinsNum = 0; this.tripletsNum = 0; this.quadrupletsNum = 0; this.tretPopup = false; this.sleepy = 1; this.dirty = 2; this.needToy = 3; this.hungry = 5; this.vomited = 4; this.tumbeledOver = 6; this.carryNothing = 0; this.carryToy = 1; this.carryTowel = 2; this.carryBottle = 3; this.babiesInRoom = 0; this.servedBabies = 0; this.makingTwins = false; this.makingTriplets = false; this.makingQuadruplets = false; this.stopedFromEsc = false; this.blinkinkSpeed = this.level.LevelConfig.levelBlinkingSpeed; this.level.game.speed = this.level.LevelConfig.levelSpeed; this.level.game.slotMashineTrophy = false; this.level.game.trophyHunter = false; this.level.game.slotMashineTrophyShown = false; this.level.game.trophyHunterShown = false; this.babiesSendNum = 0; this.trackIsMoving = false; this.lastSlotMove = false; this.isGirl = false; this.going = false; this.maxLevelBabies = this.level.LevelConfig.babyType.length; this.automaticBlinking = false; this.startBlinking = false; this.cleanPrepare = false; this.shakeer = false; this.shakeFlag = false; this.correctGender = false; this.twinsFlag = false; this.tripletsFlag = false; this.quadrupletsFlag = false; this.combo = new Array(); this.combo1 = new Array(); this.clickArray = new Array(); this.clickArray1 = new Array(); this.starArray = new Array(); this.ballArray = new Array(); this.Sack = new Array(); this.needComboMade = false; this.animation = false; this.animation1 = false; this.makeShift = false; this.makeShift1 = false; this.firstNeedPopup = false; this.firstPopup = false; this.atEndLevel = false; this.comboNum = 0; this.comboCounterFlag = false; this.getExpertGoal = false; this.handlePopup = false; this.trackIsStoped = false; this.twinDrag = false; this.tripletDrag = false; this.quadrupletDrag = false; this.flagOnWayBack = false; this.factoryStarted = false; this.storkTimeToSleep = false; this.level.singelBoySacks = 0; this.level.singelGirlSacks = 0; this.level.twinBoySacks = 0; this.level.twinGirlSacks = 0; this.level.tripletBoySacks = 0; this.level.tripletGirlSacks = 0; this.level.quadrupletBoySacks = 0; this.level.quadrupletGirlSacks = 0; this.level.game.successAction = 0; this.babyToGetOut = false; this.level.heartPoints = 0; this.endlevelMessages = [['YouWereIncredible', 'levelClearedAndincredible_snd'], ['phenomenal', 'phenomenal_snd'], ['nicelyDone', 'nicelyDone_snd'], ['excellentJob', 'excellentJob_snd'], ['marvelous', 'marvelous_snd'], ['scaryGood', 'scaryGood_snd'], ['superbPerformance', 'superbPerformance_snd'], ['thatWasAmazing', 'thatWasAmazing_snd'], ['perfect', 'perfect_snd']]; if (this.level.game.levelNum == 1) { var v2 = 0; while (v2 <= 25) { this.level.game.bed1LevelUpgrades[v2] = 1; this.level.game.bed2LevelUpgrades[v2] = 0; this.level.game.bed3LevelUpgrades[v2] = 0; this.level.game.bath1LevelUpgrades[v2] = 1; this.level.game.bath2LevelUpgrades[v2] = 0; this.level.game.bath3LevelUpgrades[v2] = 0; this.level.game.foodmakerLevelUpgrades[v2] = 1; this.level.game.EscSwitchLevelUpgrades[v2] = 0; this.level.game.toyboxLevelUpgrades[v2] = 1; this.level.game.cleaningLevelStork[v2] = 0; this.level.game.gamePointsFactory[v2] = 0; this.level.game.gamePointsDelivery[v2] = 0; ++v2; } this.level.game.gamePoints = 0; } if (this.level.game.levelNum > 1) { this.level.game.PopUpFalseSecondLevel(); this.firstNeedPopup = true; } this.GreenCloud = this.holder.attachMovie('ZelenoOblace', 'ZelenoOblace', 200010, {'_x': 2.8, '_y': -0.7}); this.RedCloud = this.holder.attachMovie('CrvenoOblace', 'CrvenoOblace', 200020, {'_x': 0.9, '_y': 57.5}); this.BoyCloud = this.holder.attachMovie('MaskoOblace', 'MaskoOblace', 200030, {'_x': 5.3, '_y': 93.3}); this.GirlCloud = this.holder.attachMovie('ZenskoOblace', 'ZenskoOblace', 200040, {'_x': 2.6, '_y': 134.3}); this.LevelNumBtn = this.holder.attachMovie('Level_buttonce', 'Level_buttonce', 200045, {'_x': 1.1, '_y': 176.8}); this.MainMenuCloud = this.holder.attachMovie('main_Menu_Oblace', 'main_Menu_Oblace', 200050, {'_x': 93.59999999999999, '_y': 277.6}); this.GreenCloud.num.text = this.level.LevelConfig.levelGoal; this.RedCloud.num.text = this.level.heartPoints.toString(); this.BoyCloud.num.text = '0'; this.GirlCloud.num.text = '0'; this.LevelNumBtn.level_num.level_num_txt.text = this.level.game.levelNum.toString(); this.factoryBitmapData = flash.display.BitmapData.loadBitmap('background'); this.holder.attachMovie('fBackground', 'fBackground', this.level.depth.getDepth('fBackground'), {'_x': 0, '_y': 0}); this.holder.fBackground.attachBitmap(this.factoryBitmapData, 1); this.holder.attachMovie('senki', 'senki', this.level.depth.getDepth('fBackground') + 5, {'_x': 0, '_y': 0}); this.Track = new mcs.Track(this, 'lenta', 400, 300, this.level.depth.getDepth('lenta')); this.Track.attachTrack(); this.Bath = [new mcs.Bath(this, 'bathBack', 179, 289, 100, 100, 11030), new mcs.Bath(this, 'bathBack', 271, 334.4, 100, 100, 11050), new mcs.Bath(this, 'bathBack', 150, 367, 100, 100, 11070)]; this.Bed = [new mcs.Bed(this, 'bed1back', 393.3, 306, 11100), new mcs.Bed(this, 'bed1back', 479.9, 306, 11120), new mcs.Bed(this, 'bed1back', 566, 306, 11140)]; v2 = 0; while (v2 < this.level.game.bathUpgrades.length) { if (this.level.game.bathUpgrades[v2] > 0) { this.Bath[v2].upgrade = this.level.game.bathUpgrades[v2]; this.Bath[v2].attachBath(); } ++v2; } v2 = 0; while (v2 < this.level.game.bedUpgrades.length) { if (this.level.game.bedUpgrades[v2] > 0) { this.Bed[v2].upgrade = this.level.game.bedUpgrades[v2]; this.Bed[v2].attachBed(); } ++v2; } this.SlotMashine = new mcs.SlotMashine(this, 'slotMashine', 649.6, 311.9, this.level.depth.getDepth('slotMashine')); this.SlotMashine.attachSlotMashine(); this.SlotMashine.indicator.gotoAndStop(3); this.SackMachine = new mcs.SackMachine(this, 'teleporte_box', 6.5, 319.35, this.level.depth.getDepth('teleporte_box')); this.SackMachine.attachSackMachine(); this.SackSpot = new mcs.SackSpot(this, 'sackSpot', 104.9, 228.9, this.level.depth.getDepth('sackSpot')); this.SackSpot.attachSackSpot(); this.Tube = new mcs.Tube(this, 'launcher', 259.2, 36.7, this.level.depth.getDepth('Launcher_box')); this.Tube.attachTube(); if (this.level.game.toyboxUpgrades < 3) { this.ToyBox = new mcs.Toybox(this, 'toy_box', 481, 503.9, this.level.depth.getDepth('toy_box')); this.ToyBox.attachToybox(); this.ToyBox.clip.gotoAndStop(this.level.game.toyboxUpgrades); this.ToyBox.addEvents(); } else { this.ToyBox = new mcs.Toybox(this, 'jack', 445, 393, this.level.depth.getDepth('toy_box')); this.ToyBox.attachToybox(); } this.Towel = new mcs.Towel(this, 'towel', 167.3, 479.1, this.level.depth.getDepth('towel')); this.Towel.attachTowel(); this.Trashcan = new mcs.Trashcan(this, 'trash_back', 12.6, 522.5, this.level.depth.getDepth('trashcan')); this.Trashcan.attachTrashcan(); if (this.level.game.EscSwitchUpgrades > 0) { this.escSwitch = new mcs.EscapeSwitch(this, 'escSwitch', 109.85, 470.45, this.level.depth.getDepth('escSwitch')); this.escSwitch.attachEscapeSwitch(); } if (this.level.game.strongStork > 0) { if (this.level.game.strongStork == 1) { this.Twins = this.holder.attachMovie('twin', 'twin', 37600, {'_x': 688, '_y': 481.3}); this.twins = true; } else { if (this.level.game.strongStork == 2) { this.Twins = this.holder.attachMovie('twin', 'twin', 37600, {'_x': 688, '_y': 481.3}); this.twins = true; this.Triplets = this.holder.attachMovie('triplet', 'triplet', 37601, {'_x': 729.5, '_y': 481.2}); this.triplets = true; } else { if (this.level.game.strongStork == 3) { this.Twins = this.holder.attachMovie('twin', 'twin', 37600, {'_x': 688, '_y': 481.3}); this.twins = true; this.Triplets = this.holder.attachMovie('triplet', 'triplet', 37601, {'_x': 729.5, '_y': 481.2}); this.triplets = true; this.Quadruplets = this.holder.attachMovie('quadriplet', 'quadriplet', 37602, {'_x': 708.6, '_y': 507.1}); this.quadruplets = true; } } } this.twinBarPercent = 0; this.tripletBarPercent = 0; this.quadrupletBarPercent = 0; } this.Stork = new mcs.Stork(this, 'stork_f', 694, 416, this.level.depth.getDepth('stork')); this.Stork.attachStork(); this.Stork.upgrade = this.level.game.strongStork; if (this.level.game.cleaningStork > 0) { var v5 = 'storkClip'; this.CleaningStork = new mcs.Stork(this, v5, 223.5, 404.1, this.level.depth.getDepth('cleaning_stork')); this.CleaningStork.upgrade = this.level.game.cleaningStork; this.CleaningStork.attachStork(); } this.Horn = this.holder.attachMovie('horn', 'horn', this.level.depth.getDepth('horn'), {'_x': 103.7, '_y': 141.8}); this.Horn.gotoAndStop(1); this.PackingStork = this.holder.attachMovie('packingStork', 'packingStork', this.level.depth.getDepth('packingStork'), {'_x': 103.6, '_y': 141.8}); this.PackingStork.factoryObject = this; this.Bottle = new Array(); this.Foodmaker = new mcs.FoodMaker(this, 'foodmaker_mc', 340, 431, this.level.depth.getDepth('foodmaker')); this.Foodmaker.attachFoodMaker(); this.slots = new Array(); this.xpoceten = 70; var v3 = 140; var v4 = 470; this.slots = [new mcs.Slot(this, 'slot1', v3, v4, this.level.depth.getDepth('slot1')), new mcs.Slot(this, 'slot2', v3 + 70, v4, this.level.depth.getDepth('slot2')), new mcs.Slot(this, 'slot3', v3 + 140, v4, this.level.depth.getDepth('slot3')), new mcs.Slot(this, 'slot4', v3 + 210, v4, this.level.depth.getDepth('slot4')), new mcs.Slot(this, 'slot5', v3 + 280, v4, this.level.depth.getDepth('slot5')), new mcs.Slot(this, 'slot6', v3 + 350, v4, this.level.depth.getDepth('slot6')), new mcs.Slot(this, 'slot7', v3 + 420, v4, this.level.depth.getDepth('slot7')), new mcs.Slot(this, 'slot8', v3 + 490, v4, this.level.depth.getDepth('slot8')), new mcs.Slot(this, 'slot9', v3 + 560, v4, this.level.depth.getDepth('slot9'))]; this.babies = new Array(); v2 = 0; while (v2 < 9) { this.slots[v2].attachSlot(); ++v2; } if (this.level.game.toyboxUpgrades == 1) { this.Toys = [new mcs.Toy(this, 'toy3', 503.6, 497.1, this.level.depth.getDepth('toy1'))]; this.Toys[0].attachToy(); } else { if (this.level.game.toyboxUpgrades == 2) { this.Toys = [new mcs.Toy(this, 'toy1', 497.4, 495.6, this.level.depth.getDepth('toy1')), new mcs.Toy(this, 'toy2', 502.1, 485.3, this.level.depth.getDepth('toy2'))]; v2 = 0; while (v2 < 2) { this.Toys[v2].attachToy(); ++v2; } } } if (this.hasAttachTransition) { this.aTransition.startTransition(); } this.target.sndCtrl.stopWithFadeOut(this.target.soundsId.titlescreen_snd, 700); this.target.sndCtrl.playWithFadeIn(this.target.soundsId.factory_snd, 700, 32000); }; v2.attachSounds = function () { var v2 = 0; while (v2 < this.sounds.length) { var v3 = this.level.game.soundClip.createEmptyMovieClip(utils.StringUtils.getUniqueName(), this.level.game.soundClip.getNextHighestDepth()); var v4 = new utils.SoundImpl(v3); v4.attachSoundImpl(this.sounds[v2][0], this.sounds[v2][1], this.sounds[v2][2]); this.soundsId[this.sounds[v2][0]] = this.level.game.sndCtrl.addSound(this.sounds[v2][0], v3, this.sounds[v2][1], this.sounds[v2][2]); if (this.sounds[v2][2]) { this.level.game.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.level.game.sndCtrl.getMusicVolume()); } else { this.level.game.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.level.game.sndCtrl.getSoundFXVolume()); } ++v2; } }; v2.attachClip = function () { this.holder = this.level.game.attachMovie('holder', 'holder', 1, {'_x': 0, '_y': 0}); this.clip = this.holder; this.holder.factoryObject = this.level; this.GreenCloud = this.holder.attachMovie('ZelenoOblace', 'ZelenoOblace', 200010, {'_x': 2.8, '_y': -0.7}); this.RedCloud = this.holder.attachMovie('CrvenoOblace', 'CrvenoOblace', 200020, {'_x': 0.9, '_y': 57.5}); this.BoyCloud = this.holder.attachMovie('MaskoOblace', 'MaskoOblace', 200030, {'_x': 5.3, '_y': 93.3}); this.GirlCloud = this.holder.attachMovie('ZenskoOblace', 'ZenskoOblace', 200040, {'_x': 2.6, '_y': 134.3}); this.LevelNumBtn = this.holder.attachMovie('Level_buttonce', 'Level_buttonce', 200045, {'_x': 1.1, '_y': 176.8}); this.MainMenuCloud = this.holder.attachMovie('main_Menu_Oblace', 'main_Menu_Oblace', 200050, {'_x': 93.59999999999999, '_y': 277.6}); this.GreenCloud.num.text = this.level.LevelConfig.levelGoal; this.RedCloud.num.text = this.level.heartPoints.toString(); this.BoyCloud.num.text = '0'; this.GirlCloud.num.text = '0'; this.LevelNumBtn.level_num.level_num_txt.text = this.level.game.levelNum.toString(); this.LevelNumberTxt = this.holder.attachMovie('levelNumberTxt', 'levelNumberTxt', 59770, {'_x': 690, '_y': 10}); this.LevelNumber = this.holder.attachMovie('levelNumber', 'levelNumber', 59669, {'_x': 750, '_y': 10}); this.LevelNumber._number.text = this.level.game.levelNum.toString(); this.factoryBitmapData = flash.display.BitmapData.loadBitmap('background'); this.holder.attachMovie('fBackground', 'fBackground', this.level.depth.getDepth('fBackground'), {'_x': 0, '_y': 0}); this.holder.fBackground.attachBitmap(this.factoryBitmapData, 1); this.holder.attachMovie('senki', 'senki', this.level.depth.getDepth('fBackground') + 5, {'_x': 0, '_y': 0}); this.Track = new mcs.Track(this, 'lenta', 400, 300, this.level.depth.getDepth('lenta')); this.Track.attachTrack(); this.Bath = [new mcs.Bath(this, 'bathBack', 179, 289, 100, 100, 11030), new mcs.Bath(this, 'bathBack', 271, 334.4, 100, 100, 11050), new mcs.Bath(this, 'bathBack', 150, 367, 100, 100, 11070)]; this.Bed = [new mcs.Bed(this, 'bed1back', 393.3, 306, 11100), new mcs.Bed(this, 'bed1back', 479.9, 306, 11120), new mcs.Bed(this, 'bed1back', 566, 306, 11140)]; var v2 = 0; while (v2 < this.level.game.bathUpgrades.length) { if (this.level.game.bathUpgrades[v2] > 0) { this.Bath[v2].upgrade = this.level.game.bathUpgrades[v2]; this.Bath[v2].attachBath(); } ++v2; } v2 = 0; while (v2 < this.level.game.bedUpgrades.length) { if (this.level.game.bedUpgrades[v2] > 0) { this.Bed[v2].upgrade = this.level.game.bedUpgrades[v2]; this.Bed[v2].attachBed(); } ++v2; } this.SlotMashine = new mcs.SlotMashine(this, 'slotMashine', 649.6, 311.9, this.level.depth.getDepth('slotMashine')); this.SlotMashine.attachSlotMashine(); this.SlotMashine.indicator.gotoAndStop(3); this.SackMachine = new mcs.SackMachine(this, 'teleporte_box', 6.5, 319.35, this.level.depth.getDepth('teleporte_box')); this.SackMachine.attachSackMachine(); this.SackSpot = new mcs.SackSpot(this, 'sackSpot', 104.9, 228.9, this.level.depth.getDepth('sackSpot')); this.SackSpot.attachSackSpot(); this.Tube = new mcs.Tube(this, 'launcher', 259.2, 36.7, this.level.depth.getDepth('Launcher_box')); this.Tube.attachTube(); if (this.level.game.toyboxUpgrades < 3) { this.ToyBox = new mcs.Toybox(this, 'toy_box', 481, 503.9, this.level.depth.getDepth('toy_box')); this.ToyBox.attachToybox(); this.ToyBox.clip.gotoAndStop(this.level.game.toyboxUpgrades); this.ToyBox.addEvents(); } else { this.ToyBox = new mcs.Toybox(this, 'jack', 445, 393, this.level.depth.getDepth('toy_box')); this.ToyBox.attachToybox(); } this.Towel = new mcs.Towel(this, 'towel', 167.3, 479.1, this.level.depth.getDepth('towel')); this.Towel.attachTowel(); this.Trashcan = new mcs.Trashcan(this, 'trash_back', 12.6, 522.5, this.level.depth.getDepth('trashcan')); this.Trashcan.attachTrashcan(); if (this.level.game.EscSwitchUpgrades > 0) { this.escSwitch = new mcs.EscapeSwitch(this, 'escSwitch', 109.85, 470.45, this.level.depth.getDepth('escSwitch')); this.escSwitch.attachEscapeSwitch(); } if (this.level.game.strongStork > 0) { this.emptyMovie = this.holder.attachMovie('emptyMovie', 'emptyMovie', 37598, {'_x': 0, '_y': 0}); if (this.level.game.strongStork == 1) { this.Twins = this.holder.attachMovie('twin', 'twin', 37600, {'_x': 688, '_y': 481.3}); this.Twins.factory = this; this.twins = true; } if (this.level.game.strongStork == 2) { this.Twins = this.holder.attachMovie('twin', 'twin', 37600, {'_x': 688, '_y': 481.3}); this.Twins.factory = this; this.twins = true; this.Triplets = this.holder.attachMovie('triplet', 'triplet', 37601, {'_x': 729.5, '_y': 481.2}); this.Triplets.factory = this; this.triplets = true; } if (this.level.game.strongStork == 3) { this.Twins = this.holder.attachMovie('twin', 'twin', 37600, {'_x': 688, '_y': 481.3}); this.Twins.factory = this; this.twins = true; this.Triplets = this.holder.attachMovie('triplet', 'triplet', 37601, {'_x': 729.5, '_y': 481.2}); this.Triplets.factory = this; this.triplets = true; this.Quadruplets = this.holder.attachMovie('quadriplet', 'quadriplet', 37602, {'_x': 708.6, '_y': 507.1}); this.Quadruplets.factory = this; this.quadruplets = true; } this.twinBarPercent = 0; this.tripletBarPercent = 0; this.quadrupletBarPercent = 0; } this.Stork = new mcs.Stork(this, 'stork_f', 694, 416, this.level.depth.getDepth('stork')); this.Stork.attachStork(); this.Stork.upgrade = this.level.game.strongStork; if (this.level.game.cleaningStork > 0) { var v5 = 'storkClip'; this.CleaningStork = new mcs.Stork(this, v5, 223.5, 404.1, this.level.depth.getDepth('cleaning_stork')); this.CleaningStork.upgrade = this.level.game.cleaningStork; this.CleaningStork.attachStork(); if (this.level.game.cleaningStork == 1 || this.level.game.cleaningStork == 2) { this.level.game.cleaningStorkApearing += 1; } } this.Bottle = new Array(); this.Foodmaker = new mcs.FoodMaker(this, 'foodmaker_mc', 340, 431, this.level.depth.getDepth('foodmaker')); this.Foodmaker.attachFoodMaker(); this.slots = new Array(); this.xpoceten = 70; var v3 = 140; var v4 = 470; this.slots = [new mcs.Slot(this, 'slot1', v3, v4, this.level.depth.getDepth('slot1')), new mcs.Slot(this, 'slot2', v3 + 70, v4, this.level.depth.getDepth('slot2')), new mcs.Slot(this, 'slot3', v3 + 140, v4, this.level.depth.getDepth('slot3')), new mcs.Slot(this, 'slot4', v3 + 210, v4, this.level.depth.getDepth('slot4')), new mcs.Slot(this, 'slot5', v3 + 280, v4, this.level.depth.getDepth('slot5')), new mcs.Slot(this, 'slot6', v3 + 350, v4, this.level.depth.getDepth('slot6')), new mcs.Slot(this, 'slot7', v3 + 420, v4, this.level.depth.getDepth('slot7')), new mcs.Slot(this, 'slot8', v3 + 490, v4, this.level.depth.getDepth('slot8')), new mcs.Slot(this, 'slot9', v3 + 560, v4, this.level.depth.getDepth('slot9'))]; this.babies = new Array(); this.addEvents(); v2 = 0; while (v2 < 9) { this.slots[v2].attachSlot(); ++v2; } if (this.level.game.toyboxUpgrades == 1) { this.Toys = [new mcs.Toy(this, 'toy3', 503.6, 497.1, this.level.depth.getDepth('toy1'))]; this.Toys[0].attachToy(); } else { if (this.level.game.toyboxUpgrades == 2) { this.Toys = [new mcs.Toy(this, 'toy1', 497.4, 495.6, this.level.depth.getDepth('toy1')), new mcs.Toy(this, 'toy2', 502.1, 485.3, this.level.depth.getDepth('toy2'))]; v2 = 0; while (v2 < 2) { this.Toys[v2].attachToy(); ++v2; } } } this.level.getMouseClickTime = getTimer(); this.level.getMouseClick = false; this.level.game.setPriorityObject(); this.startSequence(); }; v2.startSequence = function () { this.level.game.gameCanBePaused = false; this.Horn = this.holder.attachMovie('horn', 'horn', this.level.depth.getDepth('horn'), {'_x': 103.7, '_y': 141.8}); this.Horn.gotoAndStop(1); this.PackingStork = this.holder.attachMovie('packingStork', 'packingStork', this.level.depth.getDepth('packingStork'), {'_x': 103.6, '_y': 141.8}); this.PackingStork.factoryObject = this; this.StartSequence = this.holder.attachMovie('start_sequence_factory', 'start_sequence_factory', 10151, {'_x': 0, '_y': 0}); this.StartSequence.object = this; this.ReadyAnim = this.holder.attachMovie('ready_anim', 'ready_anim', 111155, {'_x': 400, '_y': 300}); this.target.sndCtrl.stopSound(this.target.soundsId.readyText_snd); this.target.sndCtrl.playSound(this.target.soundsId.readyText_snd); this.target.sndCtrl.stopSound(this.soundsId.horn_snd); utils.Delegate.callDelayed(this.target.sndCtrl, this.target.sndCtrl.playSound, 1400, this.soundsId.horn_snd); }; v2.FirstPopUp = function () { _global.rolling = false; _global.handleFree = false; this.factoryStarted = true; this.level.game.gameCanBePaused = true; this.sleepDelay = (50 - this.level.game.levelNum + random(10)) * 1000; this.level.sleepingTimer = getTimer(); this.level.storkCarringFlag = true; this.level.succesesClickFlag = true; if (this.level.game.helpOnOff == true) { if (this.level.game.levelNum == 1) { this.level.game.helpTips[0].showPopUp(); this.addEventsPopup(); } else { if (this.level.game.levelNum == 2) { if (this.level.game.helpTips[35].shown == false) { this.level.game.helpTips[35].showPopUp(); this.addEventsPopup35(); } else { this.startBlinking = false; this.slotMachineBlinking(); } } else { if (this.level.game.strongStork == 1 && this.level.game.helpTips[23].shown == false) { this.level.game.helpTips[23].showPopUp(); this.level.game.PopupForStrong1 = true; this.addEvents23(); } else { if (this.level.game.strongStork == 2 && this.level.game.helpTips[24].shown == false) { this.level.game.helpTips[24].showPopUp(); this.level.game.PopupForStrong2 = true; this.addEvents24(); } else { if (this.level.game.strongStork == 3 && this.level.game.helpTips[25].shown == false) { this.level.game.helpTips[25].showPopUp(); this.level.game.PopupForStrong3 = true; this.addEvents25(); } else { this.startBlinking = false; this.slotMachineBlinking(); } } } } } } else { this.startBlinking = false; this.slotMachineBlinking(); } if (this.level.game.levelNum > 1) { if (this.level.game.pointsAreLostFactoryUpgrade[this.level.game.levelNum - 1] == 0) { this.level.game.pointsAreLost = false; } else { this.level.game.pointsAreLost = true; } if (this.level.game.wrongWishFactoryUpgrade[this.level.game.levelNum - 2] == 0) { this.level.game.wrongWish = false; } else { this.level.game.wrongWish = true; } } if (this.level.game.innovatorTrophy == false && this.level.game.allUpgradesDelivery == true && this.level.game.allUpgradesFactory == true) { this.level.game.innovatorTrophy = true; this.showTrofej('TekstInovator', 'TrofejInovator'); } }; v2.addEventsPopup35 = function () { this.level.game.helpTips[35].clip.OK.holder = this; this.level.game.helpTips[35].clip.OK.onPress = function () { var v2 = this.holder; this.holder.level.game.helpTips[35].hidePopUp(); v2.trackIsStoped = false; v2.startBlinking = false; v2.slotMachineBlinking(); }; }; v2.addEvents23 = function () { this.level.game.helpTips[23].clip.OK.holder = this; this.level.game.helpTips[23].clip.OK.onPress = function () { var v2 = this.holder; this.holder.level.game.helpTips[23].hidePopUp(); v2.trackIsStoped = false; v2.startBlinking = false; v2.slotMachineBlinking(); }; }; v2.addEvents24 = function () { this.level.game.helpTips[24].clip.OK.holder = this; this.level.game.helpTips[24].clip.OK.onPress = function () { var v2 = this.holder; this.holder.level.game.helpTips[24].hidePopUp(); v2.trackIsStoped = false; v2.startBlinking = false; v2.slotMachineBlinking(); }; }; v2.addEvents25 = function () { this.level.game.helpTips[25].clip.OK.holder = this; this.level.game.helpTips[25].clip.OK.onPress = function () { var v2 = this.holder; this.holder.level.game.helpTips[25].hidePopUp(); v2.trackIsStoped = false; v2.startBlinking = false; v2.slotMachineBlinking(); }; }; v2.addEvents26 = function () { this.level.game.helpTips[26].clip.OK.holder = this; this.level.game.helpTips[26].clip.OK.onPress = function () { var v2 = this.holder; this.holder.level.game.helpTips[26].hidePopUp(); v2.ChackForNextPopup(); }; }; v2.ChackForNextPopup = function () { if (this.level.game.helpTips[41].shown == false && this.level.game.helpTips[26].shown == true) { var v2 = 0; while (v2 <= this.babies.length) { if (this.babies[v2].clip && this.babies[v2].launcherNeed == true && this.babies[v2].where.ID == 1) { this.level.game.helpTips[41].showPopUp(); break; } ++v2; } } }; v2.IfIndicatorFull = function () { if (this.level.game.helpTips[41].shown == false && this.level.game.helpTips[26].shown == true) { if (this.level.game.strongStork > 0) { if (this.twinBarPercent >= 100 || this.tripletBarPercent >= 100 || this.quadrupletBarPercent >= 100) { this.level.game.helpTips[41].showPopUp(); } } } }; v2.addEventsPopup = function () { this.level.game.helpTips[0].clip.OK.holder = this; this.level.game.helpTips[0].clip.OK.onPress = function () { this.holder.level.game.helpTips[0].hidePopUp(); }; }; v2.ShowPopUp39 = function () { this.level.game.helpTips[39].showPopUp(); this.addEvents39(); }; v2.addEvents39 = function () { this.level.game.helpTips[39].clip.OK.holder = this; this.level.game.helpTips[39].clip.OK.onPress = function () { var v2 = this.holder; this.holder.level.game.helpTips[39].hidePopUp(); v2.ShowPopUp40(); }; }; v2.ShowPopUp40 = function () { this.level.game.helpTips[40].showPopUp(); this.addEvents40(); }; v2.addEvents40 = function () { this.level.game.helpTips[40].clip.OK.holder = this; this.level.game.helpTips[40].clip.OK.onPress = function () { var v2 = this.holder; this.holder.level.game.helpTips[40].hidePopUp(); v2.level.game.helpTips[1].showPopUp(); }; }; v2.addEvents30 = function () { this.level.game.helpTips[30].clip.OK.holder = this; this.level.game.helpTips[30].clip.OK.onPress = function () { this.holder.redLight = true; this.holder.blinkingTime = getTimer(); this.holder.slotMachineBlinking(); this.holder.level.game.helpTips[30].hidePopUp(); }; }; v2.addEvents38 = function () { this.level.game.helpTips[38].clip.OK.holder = this; this.level.game.helpTips[38].clip.OK.onPress = function () { this.holder.level.game.helpTips[38].hidePopUp(); }; }; v2.callBlinking = function () { this.Horn = this.holder.attachMovie('horn', 'horn', this.level.depth.getDepth('horn'), {'_x': 103.7, '_y': 141.8}); this.Horn.gotoAndStop(1); this.PackingStork = this.holder.attachMovie('packingStork', 'packingStork', this.level.depth.getDepth('packingStork'), {'_x': 103.6, '_y': 141.8}); this.startBlinking = false; this.slotMachineBlinking(); }; v2.slotMachineBlinking = function () { if (this.servedBabies < this.maxLevelBabies) { if (!this.level.pause) { if (this.servedBabies < this.maxLevelBabies) { if (this.level.game.helpTips[38].shown == false && this.stopedFromEsc == true) { this.level.game.helpTips[38].showPopUp(); this.addEvents38(); } if (this.startBlinking == false) { if (_global.rolling == false) { this.ShowPopUp39(); if (this.babies.length == 1) { this.level.game.helpTips[31].showPopUp(); } this.gender = this.level.LevelConfig.parentWish[this.babies.length]; if (this.servedBabies == this.level.LevelConfig.parentWish.length - 1) { this.isLastWish = true; } this.startBlinking = true; this.SlotMashine.indicator.gotoAndStop(2); this.SlotMashine.handle.gotoAndStop('ready'); _global.handleFree = true; this.SelectObject(this.SlotMashine); if (this.gender == 1) { this.SlotMashine.WishScreen.gotoAndStop('girlWish'); this.target.sndCtrl.stopSound(this.soundsId.waitinggirl_snd); this.target.sndCtrl.playSound(this.soundsId.waitinggirl_snd); } else { if (this.gender == 2) { this.SlotMashine.WishScreen.gotoAndStop('boyWish'); this.target.sndCtrl.stopSound(this.soundsId.waitingboy_snd); this.target.sndCtrl.playSound(this.soundsId.waitingboy_snd); } else { this.SlotMashine.WishScreen.gotoAndStop('neutralWish'); this.target.sndCtrl.stopSound(this.soundsId.waitingboygirl_snd); this.target.sndCtrl.playSound(this.soundsId.waitingboygirl_snd); this.level.game.helpTips[30].showPopUp(); this.addEvents30(); } } this.redLight = true; this.blinkingTime = getTimer(); this.ShowPopUp39(); } else { utils.Delegate.callDelayed(this, this.slotMachineBlinking, 1000); } } if (this.startBlinking == true) { var v5 = getTimer(); if (v5 - this.blinkingTime >= this.blinkinkSpeed) { if (this.handlePopup == false) { this.blinkinkSpeed -= 50; } if (this.redLight == true) { this.SlotMashine.indicator.gotoAndStop(1); this.blinkingTime = getTimer(); this.redLight = false; } else { this.SlotMashine.indicator.gotoAndStop(2); this.blinkingTime = getTimer(); this.redLight = true; } if (this.blinkinkSpeed <= 0) { var v3 = 0; if (this.gender == 1) { this.babyLinkId = 'zensko_bebe'; this.SlotMashine.WishScreen.gotoAndStop('girlToGirl'); this.SlotMashine.indicator.gotoAndStop('zenskopogodeno'); v3 = 1; } else { if (this.gender == 2) { this.babyLinkId = 'masko_bebe'; v3 = 2; this.SlotMashine.WishScreen.gotoAndStop('boyToBoy'); this.SlotMashine.indicator.gotoAndStop('maskopogodeno'); } else { var v4 = Math.floor(Math.random() * 2) + 1; if (v4 == 1) { this.SlotMashine.WishScreen.gotoAndStop('neutralToGirl'); this.SlotMashine.indicator.gotoAndStop('zenskopogodeno'); this.babyLinkId = 'zensko_bebe'; v3 = 1; this.ParentWish.removeMovieClip(); this.ParentWishHit.gotoAndStop(3); } else { this.SlotMashine.WishScreen.gotoAndStop('neutralToBoy'); this.SlotMashine.indicator.gotoAndStop('maskopogodeno'); this.babyLinkId = 'masko_bebe'; v3 = 2; } } } this.blinkinkSpeed = this.level.LevelConfig.levelBlinkingSpeed; this.level.game.wrongWish = false; this.level.levelWrongWish = false; if (this.trackIsMoving == false) { this.Track.moveTrack(); this.trackIsMoving == true; } this.level.game.helpTips[3].showPopUp(); this.addEvents3(); this.SlotMashine.handle.gotoAndPlay('pull'); this.babyOut(); this.target.sndCtrl.stopSound(this.soundsId.boygirlrolling_snd); this.target.sndCtrl.playSound(this.soundsId.boygirlrolling_snd); utils.Delegate.callDelayed(this, this.gotoWaiting, 3800, v3); } } } } } else { utils.Delegate.callDelayed(this, this.slotMachineBlinking, 1000); } } }; v2.addEvents3 = function () { this.level.game.helpTips[3].clip.OK.holder = this; this.level.game.helpTips[3].clip.OK.onPress = function () { this.holder.level.game.helpTips[3].hidePopUp(); }; }; v2.addEvents33 = function () { this.level.game.helpTips[33].clip.OK.holder = this; this.level.game.helpTips[33].clip.OK.onPress = function () { this.holder.level.game.helpTips[33].hidePopUp(); }; }; v2.movingSlots = function () { var v5 = 140; var v6 = 470; var v2 = 0; while (v2 < 9) { this.slots[v2].clip._x -= 1; if (this.slots[v2].Baby.onLine == true) { this.slots[v2].Baby.bebeClip._x = this.slots[v2].clip._x - 35; this.slots[v2].Baby.bebeClip._y = this.slots[v2].clip._y + 10; if (this.slots[v2].Baby.bebeClip._x < 200 && this.slots[v2].Baby.cloudShaking == false && this.slots[v2].Baby.explode == false && this.slots[v2].Baby.launcherNeed == false) { this.level.game.helpTips[33].showPopUp(); this.addEvents33(); this.slots[v2].Baby.cloudShaking = true; this.slots[v2].Baby.shakeCloudLeft(300); } if (this.slots[v2].Baby.bebeClip._x < 100 && this.slots[v2].Baby.launcherNeed == true && this.slots[v2].Baby.sendHappy == false) { this.slots[v2].Baby.sendHappy = true; } if (this.slots[v2].Baby.bebeClip._x < 100 && this.slots[v2].Baby.launcherNeed == false && this.slots[v2].Baby.need != 11 && this.slots[v2].Baby.explode == false) { if (this.slots[v2].Baby == this.level.PointedObject) { this.UnpointObject(this.level.PointedObject); } this.holder.attachMovie('expolode_mc', 'expolode_mc', 99887, {'_x': this.slots[v2].Baby.bebeClip._x + 40, '_y': this.slots[v2].Baby.bebeClip._y - 90}); this.target.sndCtrl.stopSound(this.soundsId.clouddisappear_snd); this.target.sndCtrl.playSound(this.soundsId.clouddisappear_snd); if (this.slots[v2].Baby.need != 6) { this.slots[v2].Baby.disapearCloud(this.slots[v2].Baby.clip.cloud); } else { this.slots[v2].Baby.disapearCloud(this.slots[v2].Baby.clip.bebe.cloud); } this.slots[v2].Baby.explode = true; } if (this.slots[v2].Baby.bebeClip._x < 71 && this.slots[v2].Baby.sendHappy == true && this.slots[v2].Baby.rotAnimPlay == false) { this.holder.attachMovie('rot_teleport', 'rot_teleport', 99599, {'_x': 67, '_y': 431.3}); this.level.changePoints(10, 187, 431.3); this.level.game.helpTips[19].showPopUp(); this.PackingStork.gotoAndStop('handUp'); this.slots[v2].Baby.rotAnimPlay = true; this.slots[v2].Baby.need = undefined; } else { if (this.slots[v2].Baby.bebeClip._x < 71 && this.slots[v2].Baby.sendHappy == false && this.slots[v2].Baby.rotAnimPlay == false) { this.holder.attachMovie('rot_teleport_red', 'rot_teleport_red', 99601, {'_x': 67, '_y': 431.3}); this.PackingStork.gotoAndStop('handDown'); this.slots[v2].Baby.rotAnimPlay = true; this.slots[v2].Baby.need = undefined; } } if (this.slots[v2].Baby.bebeClip._x < 50 && this.slots[v2].Baby.inSackMashine == false) { this.slots[v2].Baby.inSackMashine = true; this.slots[v2].Baby.prepareBaby(); } if (this.slots[v2].Baby.firstNeedApear == false && this.slots[v2].clip._x < 630 && this.babies.length > 1) { this.slots[v2].Baby.firstNeedApear = true; this.slots[v2].Baby.changeNeed(); } if (this.slots[v2].Baby.firstNeedApear == false && this.slots[v2].clip._x < 630 && this.babies.length <= 1) { this.slots[v2].Baby.firstNeedApear = true; this.slots[v2].Baby.changeNeed(); } } if (this.slots[v2].Toy.onLine == true) { this.slots[v2].Toy.clip._x = this.slots[v2].clip._x + 5; this.slots[v2].Toy.clip._y = this.slots[v2].clip._y - 10; } if (this.slots[v2].Baby.hasBottle == true && this.slots[v2].Baby.Bottle.onLine == true) { this.slots[v2].Baby.Bottle.clip._x = this.slots[v2].clip._x + 5; this.slots[v2].Baby.Bottle.clip._y = this.slots[v2].clip._y - 10; } ++v2; } }; v2.setSlotsCoord = function () { var v3 = 140; var v4 = 470; var v5 = this.slots[0].linkID; if (this.slots[0].Baby != undefined) { this.slots[0].Baby.removeBaby(); this.RedStork.removeStork(); this.RedStork.attachStork(); this.slots[0].Baby = undefined; } this.slots[0].clip.removeMovieClip(); this.slots.shift(); this.slots[8] = new mcs.Slot(this, v5, v3 + 560, v4, this.level.depth.getDepth(v5)); this.slots[8].attachSlot(); this.slots[8].linkId = v5; var v2 = 0; while (v2 <= 8) { this.slots[v2].clip._x = v3 + v2 * 70; this.slots[v2].clip._y = v4; ++v2; } }; v2.removeFactoryScreen = function () {}; v2.pauseInGame = function () { if (this.level.game.gameCanBePaused == true) { this.level.pauseGame(); this.PauseScreen = new scr.PauseScreen(this); this.PauseScreen.attachPauseScreen(); } }; v2.continueGame = function () { this.level.continueGame(); this.PauseScreen.removePauseScreen(); }; v2.StopMakingTwins = function () { this.makingTwins = false; if (this.makingTwins == false && this.makingTriplets == false && this.makingQuadruplets == false) { this.level.resumeGame(); } }; v2.StopMakingTriplets = function () { this.makingTriplets = false; if (this.makingTwins == false && this.makingTriplets == false && this.makingQuadruplets == false) { this.level.resumeGame(); } }; v2.StopMakingQuadruplets = function () { this.makingQuadruplets = false; if (this.makingTwins == false && this.makingTriplets == false && this.makingQuadruplets == false) { this.level.resumeGame(); } }; v2.MakeTwins = function (what, baby) { var v6 = baby.bebeClip._x; var v5 = baby.bebeClip._y; baby.GotoAndStop(what); this.holder.attachMovie('srce_twins', 'srce_twins', 95559, {'_x': baby.bebeClip._x + 30, '_y': baby.bebeClip._y - 70}); this.holder.srce_twins.factory = this; this.target.sndCtrl.stopSound(this.soundsId.srce_snd); this.target.sndCtrl.playSound(this.soundsId.srce_snd); }; } else { goto 68968; } storedv2.addEvents = function () { this.MainMenuCloud.mainMenuBtn.holder_ = this; this.MainMenuCloud.mainMenuBtn.onPress = function () { this.holder_.target.sndCtrl.stopSound(this.holder_.target.soundsId.mouseclick_snd); this.holder_.target.sndCtrl.playSound(this.holder_.target.soundsId.mouseclick_snd); this.holder_.target.mousePointer.clip.gotoAndStop('normal'); this.holder_.pauseInGame(); }; this.MainMenuCloud.mainMenuBtn.onRelease = function () { this.holder_.pauseInGame(); }; this.MainMenuCloud.mainMenuBtn.onReleaseOutside = function () { this._parent.mainMenu.gotoAndStop(1); this.holder_.target.mousePointer.clip.gotoAndStop('normal'); }; this.MainMenuCloud.mainMenuBtn.onRollOver = function () { this._parent.mainMenu.gotoAndStop(2); this.holder_.target.mousePointer.clip.gotoAndStop('finger'); }; this.MainMenuCloud.mainMenuBtn.onRollOut = function () { this._parent.mainMenu.gotoAndStop(1); this.holder_.target.mousePointer.clip.gotoAndStop('normal'); }; this.Pause.holder_ = this; this.Pause.onPress = function () { if (!this.holder_.level.pause) { this.holder_.pauseInGame(); } else { this.holder_.continueGame(); } }; this.Restart.holder_ = this; this.Restart.onPress = function () { this.holder_.level.game.restartLevel(); }; this.changeSpeed.holder_ = this; this.changeSpeed.onPress = function () { if (!this.holder_.level.pause && this.holder_.trackIsStoped == false && this.holder_.trackIsMoving == true) { if (this.holder_.level.game.speed == 5) { this.holder_.level.game.speed = 15; this.holder_.Track.moveTrack(); } else { this.holder_.level.game.speed = 5; this.holder_.Track.moveTrack(); } } }; this.SlotMashine.handle.slotArea.holder_ = this; this.SlotMashine.handle.slotArea.onRollOver = function () { if (_global.handleFree == true) { this.holder_.target.mousePointer.clip.gotoAndStop('finger'); } }; this.SlotMashine.handle.slotArea.onRollOut = function () { this.holder_.target.mousePointer.clip.gotoAndStop('normal'); }; this.SlotMashine.handle.slotArea.onReleaseOutside = function () { this.holder_.target.mousePointer.clip.gotoAndStop('normal'); }; this.SlotMashine.handle.slotArea.onPress = function () { if (_global.handleFree == true) { if (this.holder_.level.game.currentPopUp != 30) { if (this.holder_.level.game.helpTips[this.holder_.level.game.currentPopUp].clip) { var v4 = this.holder_.level.game.helpTips[this.holder_.level.game.currentPopUp].checkIfAvailable(73); if (this.holder_.level.game.helpTips[this.holder_.level.game.currentPopUp].checkIfAvailable(73) == false) { return undefined; } } } var v3 = 0; if (!this.holder_.level.pause && this.holder_.handlePopup == false) { if (this.holder_.startBlinking == true) { this.holder_.UnselectObject(this.holder_.SlotMashine); this.holder_.level.game.helpTips[1].hidePopUp(); this.holder_.SlotMashine.handle.gotoAndPlay('pull'); this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.handleclick_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.handleclick_snd); this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.boygirlrolling_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.boygirlrolling_snd); if (this.holder_.redLight == true && this.holder_.gender == 1 || this.holder_.redLight == false && this.holder_.gender == 2) { this.holder_.level.changePoints(50, this.holder_.SlotMashine.clip._x, this.holder_.SlotMashine.clip._y); this.holder_.holder.attachMovie('rot_spot', 'rot_spot', 999853, {'_x': 717.4, '_y': 493.3}); this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.slotMachineOK_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.slotMachineOK_snd); this.holder_.correctGender = true; } else { if (this.holder_.gender != 0) { this.holder_.holder.attachMovie('rot_spot_red1', 'rot_spot_red1', 999853, {'_x': 717.4, '_y': 493.3}); if (this.holder_.clickArray.length == 0) { this.holder_.level.game.successAction = 0; } this.holder_.holder.pop_up.gotoAndStop(2); this.holder_.level.changePoints(-50, this.holder_.SlotMashine.clip._x, this.holder_.SlotMashine.clip._y); this.holder_.level.game.wrongWish = true; this.holder_.level.levelWrongWish = true; this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.slotMachineWRONG_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.slotMachineWRONG_snd); this.holder_.correctGender = false; } else { if (this.holder_.gender == 0) { this.holder_.level.changePoints(50, this.holder_.SlotMashine.clip._x, this.holder_.SlotMashine.clip._y); this.holder_.holder.attachMovie('rot_spot', 'rot_spot', 999853, {'_x': 717.4, '_y': 493.3}); this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.slotMachineOK_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.slotMachineOK_snd); } } } if (this.holder_.gender == 1) { if (this.holder_.correctGender == true) { this.holder_.SlotMashine.WishScreen.gotoAndStop('girlToGirl'); this.holder_.SlotMashine.indicator.gotoAndStop('zenskopogodeno'); this.holder_.babyLinkId = 'zensko_bebe'; v3 = 1; this.holder_.isGirl = true; } else { this.holder_.SlotMashine.WishScreen.gotoAndStop('girlToBoy'); this.holder_.SlotMashine.indicator.gotoAndStop('maskopromaseno'); this.holder_.babyLinkId = 'masko_bebe'; v3 = 2; this.holder_.isGirl = false; } } else { if (this.holder_.gender == 2) { if (this.holder_.correctGender == true) { this.holder_.SlotMashine.WishScreen.gotoAndStop('boyToBoy'); this.holder_.SlotMashine.indicator.gotoAndStop('maskopogodeno'); this.holder_.babyLinkId = 'masko_bebe'; v3 = 2; this.holder_.isGirl = false; } else { this.holder_.SlotMashine.WishScreen.gotoAndStop('boyToGirl'); this.holder_.SlotMashine.indicator.gotoAndStop('zenskopromaseno'); this.holder_.babyLinkId = 'zensko_bebe'; v3 = 1; this.holder_.isGirl = true; } } else { if (this.holder_.redLight == true) { v4 = 1; } else { v4 = 2; } if (v4 == 1) { this.holder_.SlotMashine.WishScreen.gotoAndStop('neutralToGirl'); this.holder_.SlotMashine.indicator.gotoAndStop('zenskopogodeno'); this.holder_.babyLinkId = 'zensko_bebe'; v3 = 1; this.holder_.isGirl = true; } else { this.holder_.SlotMashine.WishScreen.gotoAndStop('neutralToBoy'); this.holder_.SlotMashine.indicator.gotoAndStop('maskopogodeno'); this.holder_.babyLinkId = 'masko_bebe'; v3 = 2; this.holder_.isGirl = false; } } } this.holder_.blinkinkSpeed = this.holder_.level.LevelConfig.levelBlinkingSpeed; this.holder_.babyOut(); utils.Delegate.callDelayed(this.holder_, this.holder_.gotoWaiting, 3800, v3); } } else { if (this.holder_.level.game.popUpPause) { this.holder_.UnselectObject(this.holder_.SlotMashine); if (this.holder_.level.game.currentPopUp == 1 || this.holder_.level.game.currentPopUp == 2) { if (this.holder_.redLight == true && this.holder_.gender == 1 || this.holder_.redLight == false && this.holder_.gender == 2) { this.holder_.level.continueGame(); this.holder_.level.game.helpTips[1].hidePopUp(); if (this.holder_.startBlinking == true) { this.holder_.level.game.helpTips[1].hidePopUp(); if (!this.holder_.level.pause) { this.holder_.movingSlots(); this.holder_.Track.moveTrack(); } else { this.holder_.trackIsMoving = true; } this.holder_.SlotMashine.handle.gotoAndPlay('pull'); if (this.holder_.redLight == true && this.holder_.gender == 1 || this.holder_.redLight == false && this.holder_.gender == 2) { this.holder_.level.changePoints(50, this.holder_.SlotMashine.clip._x, this.holder_.SlotMashine.clip._y); this.holder_.holder.attachMovie('rot_spot', 'rot_spot', 999853, {'_x': 717.4, '_y': 493.3}); this.holder_.correctGender = true; this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.handleclick_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.handleclick_snd); this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.boygirlrolling_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.boygirlrolling_snd); this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.slotMachineOK_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.slotMachineOK_snd); } else { if (this.holder_.gender != 0) { this.holder_.holder.attachMovie('minus3', 'minus3', 987654, {'_x': this.holder_.SlotMashine.clip._x + 10, '_y': this.holder_.SlotMashine.clip._y - 10}); this.holder_.holder.attachMovie('rot_spot_red1', 'rot_spot_red1', 999853, {'_x': 717.4, '_y': 493.3}); if (this.holder_.clickArray.length == 0) { this.holder_.level.game.successAction = 0; } this.holder_.holder.pop_up.gotoAndStop(2); this.holder_.level.changePoints(-50, this.holder_.SlotMashine.clip._x, this.holder_.SlotMashine.clip._y); this.holder_.level.game.wrongWish = true; this.holder_.level.levelWrongWish = true; this.holder_.correctGender = false; this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.handleclick_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.handleclick_snd); this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.boygirlrolling_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.boygirlrolling_snd); this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.slotMachineWRONG_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.slotMachineWRONG_snd); } else { if (this.holder_.gender == 0) { this.holder_.level.changePoints(50, this.holder_.SlotMashine.clip._x, this.holder_.SlotMashine.clip._y); this.holder_.holder.attachMovie('rot_spot', 'rot_spot', 999853, {'_x': 717.4, '_y': 493.3}); this.holder_.correctGender = true; } } } if (this.holder_.gender == 1) { if (this.holder_.correctGender == true) { this.holder_.SlotMashine.WishScreen.gotoAndStop('girlToGirl'); this.holder_.SlotMashine.indicator.gotoAndStop('zenskopogodeno'); this.holder_.babyLinkId = 'zensko_bebe'; v3 = 1; this.holder_.isGirl = true; } else { this.holder_.SlotMashine.WishScreen.gotoAndStop('girlToBoy'); this.holder_.SlotMashine.indicator.gotoAndStop('maskopromaseno'); this.holder_.babyLinkId = 'masko_bebe'; v3 = 2; this.holder_.isGirl = false; } } else { if (this.holder_.gender == 2) { if (this.holder_.correctGender == true) { this.holder_.SlotMashine.WishScreen.gotoAndStop('boyToBoy'); this.holder_.SlotMashine.indicator.gotoAndStop('maskopogodeno'); this.holder_.babyLinkId = 'masko_bebe'; v3 = 2; this.holder_.isGirl = false; } else { this.holder_.SlotMashine.WishScreen.gotoAndStop('boyToGirl'); this.holder_.SlotMashine.indicator.gotoAndStop('zenskopromaseno'); this.holder_.babyLinkId = 'zensko_bebe'; v3 = 1; this.holder_.isGirl = true; } } else { v4 = Math.floor(Math.random() * 2) + 1; if (v4 == 1) { this.holder_.SlotMashine.WishScreen.gotoAndStop('neutralToGirl'); this.holder_.SlotMashine.indicator.gotoAndStop('zenskopogodeno'); this.holder_.babyLinkId = 'zensko_bebe'; v3 = 1; this.holder_.isGirl = true; } else { this.holder_.SlotMashine.WishScreen.gotoAndStop('neutralToBoy'); this.holder_.SlotMashine.indicator.gotoAndStop('maskopogodeno'); this.holder_.babyLinkId = 'masko_bebe'; v3 = 2; this.holder_.isGirl = false; } } } this.holder_.blinkinkSpeed = this.holder_.level.LevelConfig.levelBlinkingSpeed; this.holder_.babyOut(); utils.Delegate.callDelayed(this.holder_, this.holder_.gotoWaiting, 3800, v3); } } else { if (this.holder_.level.game.currentPopUp == 1) { this.holder_.level.game.helpTips[1].hidePopUp(); this.holder_.level.game.helpTips[2].showPopUp(); } } } else { if (this.holder_.level.game.currentPopUp == 31 || this.holder_.level.game.currentPopUp == 32) { if (this.holder_.redLight == true && this.holder_.gender == 1 || this.holder_.redLight == false && this.holder_.gender == 2) { this.holder_.level.continueGame(); this.holder_.level.game.helpTips[31].hidePopUp(); if (this.holder_.startBlinking == true) { this.holder_.level.game.helpTips[31].hidePopUp(); if (!this.holder_.level.pause) { this.holder_.movingSlots(); this.holder_.Track.moveTrack(); } else { this.holder_.trackIsMoving = true; } this.holder_.SlotMashine.handle.gotoAndPlay('pull'); if (this.holder_.redLight == true && this.holder_.gender == 1 || this.holder_.redLight == false && this.holder_.gender == 2) { this.holder_.level.changePoints(50, this.holder_.SlotMashine.clip._x, this.holder_.SlotMashine.clip._y); this.holder_.holder.attachMovie('rot_spot', 'rot_spot', 999853, {'_x': 717.4, '_y': 493.3}); this.holder_.correctGender = true; this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.handleclick_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.handleclick_snd); this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.boygirlrolling_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.boygirlrolling_snd); this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.slotMachineOK_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.slotMachineOK_snd); } else { if (this.holder_.gender != 0) { this.holder_.holder.attachMovie('minus3', 'minus3', 987654, {'_x': this.holder_.SlotMashine.clip._x + 10, '_y': this.holder_.SlotMashine.clip._y - 10}); this.holder_.holder.attachMovie('rot_spot_red1', 'rot_spot_red1', 999853, {'_x': 717.4, '_y': 493.3}); if (this.holder_.clickArray.length == 0) { this.holder_.level.game.successAction = 0; } this.holder_.holder.pop_up.gotoAndStop(2); this.holder_.level.changePoints(-50, this.holder_.SlotMashine.clip._x, this.holder_.SlotMashine.clip._y); this.holder_.level.game.wrongWish = true; this.holder_.level.levelWrongWish = true; this.holder_.correctGender = false; this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.handleclick_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.handleclick_snd); this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.boygirlrolling_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.boygirlrolling_snd); this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.slotMachineWRONG_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.slotMachineWRONG_snd); } else { if (this.holder_.gender == 0) { this.holder_.level.changePoints(50, this.holder_.SlotMashine.clip._x, this.holder_.SlotMashine.clip._y); this.holder_.holder.attachMovie('rot_spot', 'rot_spot', 999853, {'_x': 717.4, '_y': 493.3}); this.holder_.correctGender = true; } } } if (this.holder_.gender == 1) { if (this.holder_.correctGender == true) { this.holder_.SlotMashine.WishScreen.gotoAndStop('girlToGirl'); this.holder_.SlotMashine.indicator.gotoAndStop('zenskopogodeno'); this.holder_.babyLinkId = 'zensko_bebe'; v3 = 1; this.holder_.isGirl = true; } else { this.holder_.SlotMashine.WishScreen.gotoAndStop('girlToBoy'); this.holder_.SlotMashine.indicator.gotoAndStop('maskopromaseno'); this.holder_.babyLinkId = 'masko_bebe'; v3 = 2; this.holder_.isGirl = false; } } else { if (this.holder_.gender == 2) { if (this.holder_.correctGender == true) { this.holder_.SlotMashine.WishScreen.gotoAndStop('boyToBoy'); this.holder_.SlotMashine.indicator.gotoAndStop('maskopogodeno'); this.holder_.babyLinkId = 'masko_bebe'; v3 = 2; this.holder_.isGirl = false; } else { this.holder_.SlotMashine.WishScreen.gotoAndStop('boyToGirl'); this.holder_.SlotMashine.indicator.gotoAndStop('zenskopromaseno'); this.holder_.babyLinkId = 'zensko_bebe'; v3 = 1; this.holder_.isGirl = true; } } else { v4 = Math.floor(Math.random() * 2) + 1; if (v4 == 1) { this.holder_.SlotMashine.WishScreen.gotoAndStop('neutralToGirl'); this.holder_.SlotMashine.indicator.gotoAndStop('zenskopogodeno'); this.holder_.babyLinkId = 'zensko_bebe'; v3 = 1; this.holder_.isGirl = true; } else { this.holder_.SlotMashine.WishScreen.gotoAndStop('neutralToBoy'); this.holder_.SlotMashine.indicator.gotoAndStop('maskopogodeno'); this.holder_.babyLinkId = 'masko_bebe'; v3 = 2; this.holder_.isGirl = false; } } } this.holder_.blinkinkSpeed = this.holder_.level.LevelConfig.levelBlinkingSpeed; this.holder_.babyOut(); utils.Delegate.callDelayed(this.holder_, this.holder_.gotoWaiting, 3800, v3); } } else { if (this.holder_.level.game.currentPopUp == 31) { this.holder_.level.game.helpTips[31].hidePopUp(); this.holder_.level.game.helpTips[32].showPopUp(); } } } } } } } }; this.Twins.holder_ = this; this.Twins.onPress = function () { if (this.holder_.level.game.helpTips[this.holder_.level.game.currentPopUp].clip) { if (this.holder_.level.game.helpTips[this.holder_.level.game.currentPopUp].checkIfAvailable(100) == false) { return undefined; } } if (this.holder_.twinsFlag == true) { if (this.holder_.twinBarPercent >= 100) { this.holder_.target.mousePointer.clip.gotoAndStop('drag'); this.startDrag(); this.holder_.twinDrag = true; } } }; this.Twins.onRollOver = function () { if (this.holder_.twinBarPercent >= 100) { this.holder_.target.mousePointer.clip.gotoAndStop('drag'); } }; this.Twins.onRollOut = function () { this.holder_.target.mousePointer.clip.gotoAndStop('normal'); }; this.Twins.holder_ = this; this.Twins.onRelease = function () { if (this.holder_.twinDrag == true) { var v2 = 0; while (v2 <= this.holder_.babies.length) { if (this.hitTest(this.holder_.babies[v2].clip) && this.holder_.babies[v2].where.ID != 2 && this.holder_.babies[v2].where.ID != 3 && this.holder_.babies[v2].twins == false && this.holder_.babies[v2].triplets == false && this.holder_.babies[v2].quadruplets == false) { this.stopDrag(); this.holder_.level.game.helpTips[26].hidePopUp(); this.holder_.level.game.helpTips[41].hidePopUp(); if (this.holder_.twins == true) { this.holder_.babies[v2].twins = true; var v4 = this.holder_.babies[v2].bebeClip.getDepth() + 2; var v3 = this.holder_.holder.attachMovie('makeTwins', 'makeTwins', v4, {'_x': this.holder_.babies[v2].bebeClip._x - 190.4, '_y': this.holder_.babies[v2].bebeClip._y + 9.800000000000001}); v3.baby = this.holder_.babies[v2]; v3.what = 'Twins'; v3.factory = this.holder_; this.holder_.makingTwins = true; this.holder_.babies[v2].clip._visible = false; this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.twins_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.twins_snd); this.holder_.babies[v2].launcherNeed = true; this.holder_.twinsNum += 1; this.holder_.checkForTrophy(); } this.holder_.twinsFlag = false; this.holder_.twinBarPercent = 0; this.polni.gotoAndStop(1); if (this.holder_.babies[v2].Bottle) { this.holder_.babies[v2].Bottle.removeMovieClip(); this.holder_.babies[v2].Bottle = undefined; this.holder_.babies[v2].hasBottle = false; } if (this.holder_.babies[v2].Toy) { this.holder_.babies[v2].Toy.removeToy(); this.holder_.babies[v2].Toy.attachToy(); this.holder_.babies[v2].Toy.onLine = false; this.holder_.babies[v2].Toy.inToyBox = true; this.holder_.babies[v2].Toy = undefined; this.holder_.babies[v2].where.Toy = undefined; this.holder_.babies[v2].hasToy = false; } this.holder_.babies[v2].need = 100; this.holder_.babies[v2].angry = false; this.holder_.babies[v2].moodFlag = false; this.holder_.level.changePoints(20, this._x, this._y); if (this.holder_.twins == true) { this._x = 688; this._y = 481.3; } this.holder_.level.haltGame(); utils.Delegate.callDelayed(this.holder_, this.holder_.StopMakingTwins, 5000); break; } ++v2; } if (this.holder_.twins == true) { this._x = 688; this._y = 481.3; } this.stopDrag(); this.holder_.target.mousePointer.clip.gotoAndStop('normal'); this.holder_.twinDrag = false; if (this.holder_.twinsFlag == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } }; this.Twins.holder_ = this; this.Twins.onReleaseOutside = function () { if (this.holder_.twinDrag == true) { var v2 = 0; while (v2 <= this.holder_.babies.length) { if (this.hitTest(this.holder_.babies[v2].clip) && this.holder_.babies[v2].where.ID != 2 && this.holder_.babies[v2].where.ID != 3 && this.holder_.babies[v2].twins == false && this.holder_.babies[v2].triplets == false && this.holder_.babies[v2].quadruplets == false) { this.stopDrag(); this.holder_.level.game.helpTips[26].hidePopUp(); this.holder_.level.game.helpTips[41].hidePopUp(); if (this.holder_.twins == true) { this.holder_.babies[v2].twins = true; var v4 = this.holder_.babies[v2].bebeClip.getDepth() + 2; var v3 = this.holder_.holder.attachMovie('makeTwins', 'makeTwins', v4, {'_x': this.holder_.babies[v2].bebeClip._x - 190.4, '_y': this.holder_.babies[v2].bebeClip._y + 9.800000000000001}); v3.what = 'Twins'; v3.baby = this.holder_.babies[v2]; v3.factory = this.holder_; this.holder_.makingTwins = true; this.holder_.babies[v2].clip._visible = false; this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.twins_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.twins_snd); this.holder_.babies[v2].launcherNeed = true; this.holder_.twinsNum += 1; this.holder_.checkForTrophy(); } this.holder_.twinsFlag = false; this.holder_.twinBarPercent = 0; this.polni.gotoAndStop(1); if (this.holder_.babies[v2].Bottle) { this.holder_.babies[v2].Bottle.removeMovieClip(); this.holder_.babies[v2].Bottle = undefined; this.holder_.babies[v2].hasBottle = false; } if (this.holder_.babies[v2].Toy) { this.holder_.babies[v2].Toy.removeToy(); this.holder_.babies[v2].Toy.attachToy(); this.holder_.babies[v2].Toy.onLine = false; this.holder_.babies[v2].Toy.inToyBox = true; this.holder_.babies[v2].Toy = undefined; this.holder_.babies[v2].where.Toy = undefined; this.holder_.babies[v2].hasToy = false; } this.holder_.babies[v2].need = 100; this.holder_.babies[v2].angry = false; this.holder_.babies[v2].moodFlag = false; this.holder_.level.changePoints(20, this._x, this._y); if (this.holder_.twins == true) { this._x = 688; this._y = 481.3; } this.holder_.level.haltGame(); utils.Delegate.callDelayed(this.holder_, this.holder_.StopMakingTwins, 5000); break; } ++v2; } if (this.holder_.twins == true) { this._x = 688; this._y = 481.3; } this.stopDrag(); this.holder_.target.mousePointer.clip.gotoAndStop('normal'); this.holder_.twinDrag = false; if (this.holder_.twinsFlag == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } }; this.Triplets.holder_ = this; this.Triplets.onPress = function () { if (this.holder_.level.game.helpTips[this.holder_.level.game.currentPopUp].clip) { if (this.holder_.level.game.helpTips[this.holder_.level.game.currentPopUp].checkIfAvailable(100) == false) { return undefined; } } if (this.holder_.tripletsFlag == true) { if (this.holder_.tripletBarPercent >= 100) { this.holder_.target.mousePointer.clip.gotoAndStop('drag'); this.startDrag(); this.holder_.tripletDrag = true; } } }; this.Triplets.onRollOver = function () { if (this.holder_.tripletBarPercent >= 100) { this.holder_.target.mousePointer.clip.gotoAndStop('drag'); } }; this.Triplets.onRollOut = function () { this.holder_.target.mousePointer.clip.gotoAndStop('normal'); }; this.Triplets.holder_ = this; this.Triplets.onRelease = function () { if (this.holder_.tripletDrag == true) { var v2 = 0; while (v2 <= this.holder_.babies.length) { if (this.hitTest(this.holder_.babies[v2].clip) && this.holder_.babies[v2].where.ID != 2 && this.holder_.babies[v2].where.ID != 3 && this.holder_.babies[v2].twins == false && this.holder_.babies[v2].triplets == false && this.holder_.babies[v2].quadruplets == false) { this.stopDrag(); this.holder_.level.game.helpTips[26].hidePopUp(); this.holder_.level.game.helpTips[41].hidePopUp(); if (this.holder_.triplets == true) { this.holder_.babies[v2].triplets = true; this.holder_.babies[v2].clip._visible = false; var v4 = this.holder_.babies[v2].bebeClip.getDepth() + 2; var v3 = this.holder_.holder.attachMovie('makeTwins', 'makeTwins', v4, {'_x': this.holder_.babies[v2].bebeClip._x - 190.4, '_y': this.holder_.babies[v2].bebeClip._y + 9.800000000000001}); v3.what = 'Triplets'; v3.baby = this.holder_.babies[v2]; v3.factory = this.holder_; this.holder_.makingTriplets = true; this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.twins_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.twins_snd); this.holder_.babies[v2].launcherNeed = true; this.holder_.tripletsNum += 1; this.holder_.checkForTrophy(); } this.holder_.tripletsFlag = false; this.holder_.tripletBarPercent = 0; this.polni.gotoAndStop(1); if (this.holder_.babies[v2].Bottle) { this.holder_.babies[v2].Bottle.removeMovieClip(); this.holder_.babies[v2].Bottle = undefined; this.holder_.babies[v2].hasBottle = false; } if (this.holder_.babies[v2].Toy) { this.holder_.babies[v2].Toy.removeToy(); this.holder_.babies[v2].Toy.attachToy(); this.holder_.babies[v2].Toy.onLine = false; this.holder_.babies[v2].Toy.inToyBox = true; this.holder_.babies[v2].Toy = undefined; this.holder_.babies[v2].where.Toy = undefined; this.holder_.babies[v2].hasToy = false; } this.holder_.babies[v2].need = 100; this.holder_.babies[v2].angry = false; this.holder_.babies[v2].moodFlag = false; this.holder_.level.changePoints(40, this._x, this._y); if (this.holder_.triplets == true) { this._x = 729.5; this._y = 481.2; } this.holder_.level.haltGame(); utils.Delegate.callDelayed(this.holder_, this.holder_.StopMakingTriplets, 5000); break; } ++v2; } this.stopDrag(); this.holder_.target.mousePointer.clip.gotoAndStop('normal'); this.holder_.tripletDrag = false; if (this.holder_.triplets == true) { this._x = 729.5; this._y = 481.2; } if (this.holder_.tripletsFlag == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } }; this.Triplets.holder_ = this; this.Triplets.onReleaseOutside = function () { if (this.holder_.tripletDrag == true) { var v2 = 0; while (v2 <= this.holder_.babies.length) { if (this.hitTest(this.holder_.babies[v2].clip) && this.holder_.babies[v2].where.ID != 2 && this.holder_.babies[v2].where.ID != 3 && this.holder_.babies[v2].twins == false && this.holder_.babies[v2].triplets == false && this.holder_.babies[v2].quadruplets == false) { this.stopDrag(); this.holder_.level.game.helpTips[26].hidePopUp(); this.holder_.level.game.helpTips[41].hidePopUp(); if (this.holder_.triplets == true) { var v4 = this.holder_.babies[v2].bebeClip.getDepth() + 2; this.holder_.babies[v2].triplets = true; this.holder_.babies[v2].clip._visible = false; var v3 = this.holder_.holder.attachMovie('makeTwins', 'makeTwins', v4, {'_x': this.holder_.babies[v2].bebeClip._x - 190.4, '_y': this.holder_.babies[v2].bebeClip._y + 9.800000000000001}); v3.what = 'Triplets'; v3.baby = this.holder_.babies[v2]; v3.factory = this.holder_; this.holder_.makingTriplets = true; this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.twins_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.twins_snd); this.holder_.babies[v2].launcherNeed = true; this.holder_.tripletsNum += 1; this.holder_.checkForTrophy(); } this.holder_.tripletsFlag = false; this.holder_.tripletBarPercent = 0; this.polni.gotoAndStop(1); if (this.holder_.babies[v2].Bottle) { this.holder_.babies[v2].Bottle.removeMovieClip(); this.holder_.babies[v2].Bottle = undefined; this.holder_.babies[v2].hasBottle = false; } if (this.holder_.babies[v2].Toy) { this.holder_.babies[v2].Toy.removeToy(); this.holder_.babies[v2].Toy.attachToy(); this.holder_.babies[v2].Toy.onLine = false; this.holder_.babies[v2].Toy.inToyBox = true; this.holder_.babies[v2].Toy = undefined; this.holder_.babies[v2].where.Toy = undefined; this.holder_.babies[v2].hasToy = false; } this.holder_.babies[v2].need = 100; this.holder_.babies[v2].angry = false; this.holder_.babies[v2].moodFlag = false; this.holder_.level.changePoints(40, this._x, this._y); if (this.holder_.triplets == true) { this._x = 729.5; this._y = 481.2; } this.holder_.level.haltGame(); utils.Delegate.callDelayed(this.holder_, this.holder_.StopMakingTriplets, 5000); break; } ++v2; } this.stopDrag(); this.holder_.target.mousePointer.clip.gotoAndStop('normal'); this.holder_.tripletDrag = false; if (this.holder_.triplets == true) { this._x = 729.5; this._y = 481.2; } if (this.holder_.tripletsFlag == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } }; this.Quadruplets.holder_ = this; this.Quadruplets.onPress = function () { if (this.holder_.level.game.helpTips[this.holder_.level.game.currentPopUp].clip) { if (this.holder_.level.game.helpTips[this.holder_.level.game.currentPopUp].checkIfAvailable(100) == false) { return undefined; } } if (this.holder_.quadrupletsFlag == true) { if (this.holder_.quadrupletBarPercent >= 100) { this.holder_.target.mousePointer.clip.gotoAndStop('drag'); this.startDrag(); this.holder_.quadrupletDrag = true; } } }; this.Quadruplets.onRollOver = function () { if (this.holder_.quadrupletBarPercent >= 100) { this.holder_.target.mousePointer.clip.gotoAndStop('drag'); } }; this.Quadruplets.onRollOut = function () { this.holder_.target.mousePointer.clip.gotoAndStop('normal'); }; this.Quadruplets.holder_ = this; this.Quadruplets.onRelease = function () { if (this.holder_.quadrupletDrag == true) { var v2 = 0; while (v2 <= this.holder_.babies.length) { if (this.hitTest(this.holder_.babies[v2].clip) && this.holder_.babies[v2].where.ID != 2 && this.holder_.babies[v2].where.ID != 3 && this.holder_.babies[v2].twins == false && this.holder_.babies[v2].triplets == false && this.holder_.babies[v2].quadruplets == false) { this.stopDrag(); this.holder_.level.game.helpTips[26].hidePopUp(); this.holder_.level.game.helpTips[41].hidePopUp(); if (this.holder_.quadruplets == true) { this.holder_.babies[v2].quadruplets = true; this.holder_.babies[v2].clip._visible = false; var v4 = this.holder_.babies[v2].bebeClip.getDepth() + 2; var v3 = this.holder_.holder.attachMovie('makeTwins', 'makeTwins', v4, {'_x': this.holder_.babies[v2].bebeClip._x - 190.4, '_y': this.holder_.babies[v2].bebeClip._y + 9.800000000000001}); v3.what = 'Quadriplets'; v3.baby = this.holder_.babies[v2]; v3.factory = this.holder_; this.holder_.makingQuadruplets = true; this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.twins_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.twins_snd); this.holder_.babies[v2].launcherNeed = true; this.holder_.quadrupletsNum += 1; this.holder_.checkForTrophy(); } this.holder_.quadrupletsFlag = false; this.holder_.quadrupletBarPercent = 0; this.polni.gotoAndStop(1); if (this.holder_.babies[v2].Bottle) { this.holder_.babies[v2].Bottle.removeMovieClip(); this.holder_.babies[v2].Bottle = undefined; this.holder_.babies[v2].hasBottle = false; } if (this.holder_.babies[v2].Toy) { this.holder_.babies[v2].Toy.removeToy(); this.holder_.babies[v2].Toy.attachToy(); this.holder_.babies[v2].Toy.onLine = false; this.holder_.babies[v2].Toy.inToyBox = true; this.holder_.babies[v2].Toy = undefined; this.holder_.babies[v2].where.Toy = undefined; this.holder_.babies[v2].hasToy = false; } this.holder_.babies[v2].need = 100; this.holder_.babies[v2].angry = false; this.holder_.babies[v2].moodFlag = false; this.holder_.level.changePoints(80, this._x, this._y); this._x = 708.6; this._y = 507.1; this.holder_.level.haltGame(); utils.Delegate.callDelayed(this.holder_, this.holder_.StopMakingQuadruplets, 5000); break; } ++v2; } this.stopDrag(); this.holder_.target.mousePointer.clip.gotoAndStop('normal'); this.holder_.quadrupletDrag = false; this._x = 708.6; this._y = 507.1; if (this.holder_.quadrupletsFlag == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } }; this.Quadruplets.holder_ = this; this.Quadruplets.onReleaseOutside = function () { if (this.holder_.quadrupletDrag == true) { var v2 = 0; while (v2 <= this.holder_.babies.length) { if (this.hitTest(this.holder_.babies[v2].clip) && this.holder_.babies[v2].where.ID != 2 && this.holder_.babies[v2].where.ID != 3 && this.holder_.babies[v2].twins == false && this.holder_.babies[v2].triplets == false && this.holder_.babies[v2].quadruplets == false) { this.stopDrag(); this.holder_.level.game.helpTips[26].hidePopUp(); this.holder_.level.game.helpTips[41].hidePopUp(); if (this.holder_.quadruplets == true) { var v4 = this.holder_.babies[v2].bebeClip.getDepth() + 2; this.holder_.babies[v2].quadruplets = true; this.holder_.babies[v2].clip._visible = false; var v3 = this.holder_.holder.attachMovie('makeTwins', 'makeTwins', v4, {'_x': this.holder_.babies[v2].bebeClip._x - 190.4, '_y': this.holder_.babies[v2].bebeClip._y + 9.800000000000001}); v3.what = 'Quadriplets'; v3.baby = this.holder_.babies[v2]; v3.factory = this.holder_; this.holder_.makingQuadruplets = true; this.holder_.target.sndCtrl.stopSound(this.holder_.soundsId.twins_snd); this.holder_.target.sndCtrl.playSound(this.holder_.soundsId.twins_snd); this.holder_.babies[v2].launcherNeed = true; this.holder_.quadrupletsNum += 1; this.holder_.checkForTrophy(); } this.holder_.quadrupletsFlag = false; this.holder_.quadrupletBarPercent = 0; this.polni.gotoAndStop(1); if (this.holder_.babies[v2].Bottle) { this.holder_.babies[v2].Bottle.removeMovieClip(); this.holder_.babies[v2].Bottle = undefined; this.holder_.babies[v2].hasBottle = false; } if (this.holder_.babies[v2].Toy) { this.holder_.babies[v2].Toy.removeToy(); this.holder_.babies[v2].Toy.attachToy(); this.holder_.babies[v2].Toy.onLine = false; this.holder_.babies[v2].Toy.inToyBox = true; this.holder_.babies[v2].Toy = undefined; this.holder_.babies[v2].where.Toy = undefined; this.holder_.babies[v2].hasToy = false; } this.holder_.babies[v2].need = 100; this.holder_.babies[v2].angry = false; this.holder_.babies[v2].moodFlag = false; this.holder_.level.changePoints(80, this._x, this._y); this._x = 708.6; this._y = 507.1; this.holder_.level.haltGame(); utils.Delegate.callDelayed(this.holder_, this.holder_.StopMakingQuadruplets, 5000); break; } ++v2; } this.stopDrag(); this.holder_.target.mousePointer.clip.gotoAndStop('normal'); this.holder_.quadrupletDrag = false; this._x = 708.6; this._y = 507.1; if (this.holder_.quadrupletsFlag == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } }; }; storedv2.getClick = function () { if (this.makeShift == true) { this.makeShift = false; var v4 = this.clickArray.shift(); v4.hasStarNum -= 1; var v5 = this.starArray.shift(); v5.removeMovieClip(); var v2 = 0; while (v2 < this.starArray.length) { this.starArray[v2].numHouse.text = (v2 + 1).toString(); ++v2; } if (this.clickArray.length == 0) { this.level.StorkCounter = 0; } if (this.clickArray.length == 0 && this.clickArray1.length == 0) { this.level.game.successAction = 0; } } if (this.animation == false && this.clickArray.length > 0) { this.animation = true; this.makeShift = true; this.Stork.stand = false; var v3 = this.clickArray[0]; if (v3.ID == this.level.PointedObject.ID) { this.UnpointObject(this.level.PointedObject); } if (this.level.PointedObject.ID == this.ToyBox.ID && v3.ID == 7) { this.UnpointObject(this.level.PointedObject); } if (this.level.PointedObject.ID == this.Foodmaker.ID && v3.ID == 4) { this.UnpointObject(this.level.PointedObject); } if (this.level.PointedObject.ID == 4 && v3.ID == 5) { this.UnpointObject(this.level.PointedObject); } v3.onClick(); } }; storedv2.StorkGo = function () { this.going = true; var v3 = this.Stork.clip.getDepth() + 1; if (this.Stork.clip._x == 694 && this.Stork.clip._y == 416 && this.Stork.clip._visible == true) { this.holder.getInstanceAtDepth(v3); } else { this.holder.attachMovie('oblace', 'oblace', v3, {'_x': this.Stork.clip._x + 13, '_y': this.Stork.clip._y + 17}); } this.target.sndCtrl.stopSound(this.soundsId.storkgo_snd); this.target.sndCtrl.playSound(this.soundsId.storkgo_snd); this.Stork.clip.gotoAndStop('stand'); this.Stork.clip._visible = false; var v2 = this.clickArray[0]; var v5 = v2.clip; if (v2.ID == 33) { v5 = v2.bebeClip; } var v4 = v5._x - this.Stork.clip._x; utils.Delegate.callDelayed(this, this.storkArrive, 500); utils.Delegate.callDelayed(this, this.attachOblache, 150, this.Stork.clip._x + 13 + v4 / 3, this.Stork.clip._y + 17, 60131); utils.Delegate.callDelayed(this, this.attachOblache, 300, this.Stork.clip._x + 13 + 2 * v4 / 3, this.Stork.clip._y + 17, 60132); }; storedv2.attachOblache = function (x, y, d) { _root.attachMovie('perduvi1', 'perduvi1', d, {'_x': x, '_y': y}); }; storedv2.StorkIsBack = function () { this.Stork.clip._visible = true; this.flagOnWayBack = false; this.Stork.clip._x = 694; this.Stork.clip._y = 416; this.Stork.clip.swapDepths(999009); if (this.level.StorkOldCounter >= 3 && this.Stork.carring == 0) { this.Stork.clip.gotoAndStop('tired'); this.level.game.sndCtrl.stopSound(this.Stork.soundsId.disenje_snd); this.level.game.sndCtrl.playSound(this.Stork.soundsId.disenje_snd); this.level.StorkOldCounter = 0; } else { if (this.Stork.carring == 0) { this.Stork.clip.gotoAndStop('stand'); } else { if (this.Stork.carring == 1) { if (this.Stork.Toy.linkID == 'toy2') { this.Stork.clip.gotoAndStop('stand_Turtle'); } else { this.Stork.clip.gotoAndStop('stand_Bear'); } } else { if (this.Stork.carring == 3) { this.Stork.clip.gotoAndStop('stand_Bottle'); } else { if (this.Stork.carring == 2) { if (this.Stork.Towel.isDirty == false) { this.Stork.clip.gotoAndStop('stand_Towel'); } else { this.Stork.clip.gotoAndStop('stand_DirtyTowel'); } } } } } } }; storedv2.onWay = function (x, y, d) { var v2 = this.clickArray[0]; if (v2.ID == 33) { var v6 = (v2.bebeClip._x - x) / 2 + x; var v5 = (v2.bebeClip._y - y) / 2 + y; } else { var v6 = (v2.clip._x - x) / 2 + x; var v5 = (v2.clip._y - y) / 2 + y; } this.holder.attachMovie('perduvi1', 'perduvi1', d, {'_x': v6, '_y': v5}); }; storedv2.storkArrive = function () { this.Stork.clip._visible = true; var v2 = this.clickArray[0]; v2.onClickAction(); this.going = false; }; storedv2.getClick1 = function () { if (this.makeShift1 == true) { this.makeShift1 = false; var v3 = this.clickArray1.shift(); v3.hasBallNum -= 1; if (this.clickArray1.length == 0) { this.level.CleaningStorkCounter = 0; } if (this.clickArray.length == 0 && this.clickArray1.length == 0) { this.level.game.successAction = 0; } } if (this.animation1 == false && this.clickArray1.length > 0) { this.animation1 = true; this.CleaningStork.stand = false; var v2 = this.clickArray1[0]; this.makeShift1 = true; v2.onClick1(); if (v2.ID == this.level.PointedObject.ID) { this.UnpointObject(this.level.PointedObject); } if (this.level.PointedObject.ID == this.ToyBox.ID && v2.ID == 7) { this.UnpointObject(this.level.PointedObject); } if (this.level.PointedObject.ID == this.Foodmaker.ID && v2.ID == 4) { this.UnpointObject(this.level.PointedObject); } if (this.level.PointedObject.ID == 4 && v2.ID == 5) { this.UnpointObject(this.level.PointedObject); } } }; storedv2.removePopup = function (callTime, delay) { if (this.level.clock.toSeconds() - callTime >= delay) { this.ParentWish.removeMovieClip(); this.ParentWishHit.removeMovieClip(); this.SlotMashine.indicator.gotoAndStop(3); } else { var v2 = this.level.clock.toSeconds(); var v3 = delay - (v2 - callTime); utils.Delegate.callDelayed(this, this.removePopup, v3 * 1000, v2, v3); } }; storedv2.callMashineBlinking = function (callTime, delay, Baby) { if (Baby == this.babies[this.babies.length - 1]) { if (this.level.clock.toSeconds() - callTime >= delay) { if (Baby.blinkingCalled == false) { Baby.blinkingCalled = true; this.startBlinking = false; this.slotMachineBlinking(); } } else { var v2 = this.level.clock.toSeconds(); var v4 = delay - (v2 - callTime); utils.Delegate.callDelayed(this, this.callMashineBlinking, v4 * 1000, v2, v4, Baby); } } }; storedv2.babyOut = function () { _global.handleFree = false; if (this.servedBabies < this.maxLevelBabies) { if (!this.level.pause) { if (this.slots[8].clip && this.slots[8].Baby == undefined) { if (this.babies.length > 0) { this.level.game.PopUpFalse(); } this.startBlinking = false; this.level.game.helpTips[30].hidePopUp(); this.level.game.helpTips[1].hidePopUp(); this.level.game.helpTips[2].hidePopUp(); this.level.game.helpTips[31].hidePopUp(); this.level.game.helpTips[32].hidePopUp(); this.level.game.helpTips[4].showPopUp(); this.handlePopup = false; var v3; var v5 = this.level.LevelConfig.babyType[this.babies.length]; var v6 = this.level.depth.getDepth(this.slots[8].linkID) + 10; if (this.level.levelWrongWish == false && this.isLastWish == true) { var v4 = 2 * this.maxLevelBabies; this.level.pointsArray.push({'type': 2, 'points': v4.toString()}); this.level.changePoints(10 * this.maxLevelBabies, this.SlotMashine.clip._x, this.SlotMashine.clip._y); } if (this.level.game.wrongWish == false && this.isLastWish == true && this.level.game.levelNum == 25 && this.level.game.slotMashineTrophy == false) { this.level.game.slotMashineTrophy = true; this.showTrofej('TekstSlotMachine', 'TrofejSlotMachine'); } v3 = new mcs.Baby(this, this.slots[8].clip._x - 35, this.slots[8].clip._y + 10, 0, 0, 0, this.level.depth.getDepth(this.slots[8].linkID) + 3, v5); this.babies.push(v3); this.UnselectObject(this.SlotMashine); if (this.babyLinkId == 'zensko_bebe') { v3.gender = 1; } else { v3.gender = 2; } v3.attachBaby(); v3.isGirl = this.isGirl; this.babiesInRoom += 1; this.servedBabies += 1; this.lastBaby = v3; v3.bebeClip._x = this.slots[8].clip._x - 35; v3.bebeClip._y = this.slots[8].clip._y + 10; v3.where = this.slots[8]; this.slots[8].Baby = v3; this.slots[8].hasBaby = true; v3.onLine = true; v3.GotoAndStop('Happy'); this.automaticBlinking = true; this.SlotMashine.clip.red.gotoAndStop(1); this.SlotMashine.clip.blue.gotoAndStop(1); if (this.trackIsMoving == false) { this.Track.moveTrack(); this.trackIsMoving == true; } utils.Delegate.callDelayed(this, this.removePopup, 1500, this.level.clock.toSeconds(), 1.5); } else { utils.Delegate.callDelayed(this, this.babyOut, 1000); } } else { this.babyToGetOut = true; } } }; storedv2.gotoWaiting = function (from) { if (from == 1) { if (this.isLastWish == false) { this.SlotMashine.WishScreen.gotoAndStop('girlToWaiting'); if (!this.level.pause) { this.target.sndCtrl.stopSound(this.soundsId.boy&girlwaiting_snd); this.target.sndCtrl.playSound(this.soundsId.boy&girlwaiting_snd); } } else { this.SlotMashine.WishScreen.gotoAndStop('girlToDone'); if (!this.level.pause) { this.target.sndCtrl.stopSound(this.soundsId.boy&girldone_snd); this.target.sndCtrl.playSound(this.soundsId.boy&girldone_snd); } } } else { if (this.isLastWish == false) { this.SlotMashine.WishScreen.gotoAndStop('boyToWaiting'); if (!this.level.pause) { this.target.sndCtrl.stopSound(this.soundsId.boy&girlwaiting_snd); this.target.sndCtrl.playSound(this.soundsId.boy&girlwaiting_snd); } } else { this.SlotMashine.WishScreen.gotoAndStop('boyToDone'); if (!this.level.pause) { this.target.sndCtrl.stopSound(this.soundsId.boy&girldone_snd); this.target.sndCtrl.playSound(this.soundsId.boy&girldone_snd); } } } }; goto 68973; label 68968: goto 84806; label 68973: storedv2.ChackForNexBaby = function () { if (this.trackIsMoving == true) { if (this.level.LevelConfig.onEvent[this.babies.length - 1] == 1) { this.startBlinking = false; utils.Delegate.callDelayed(this, this.slotMachineBlinking, 1000); } } else { this.CallForBaby = true; } }; storedv2.Animation = function () { var v2 = this.Stork.clip.getDepth() + 1; if (this.clickArray.length == 1 && !(this.Stork.clip._x == 694 && this.Stork.clip._y == 416)) { this.holder.getInstanceAtDepth(v2); this.Stork.clip._visible = false; } else { this.holder.getInstanceAtDepth(v2); } utils.Delegate.callDelayed(this, this.Animation3, 300); }; storedv2.Animation3 = function () { this.animation = false; if (this.clickArray.length == 0 && this.clickArray1.length == 0 && this.animation == false && this.animation1 == false) { this.level.game.successAction = 0; } }; storedv2.Animation1 = function () { utils.Delegate.callDelayed(this, this.Animation0, 200); }; storedv2.Animation0 = function () { this.animation1 = false; if (this.storkTimeToSleep == true) { } else { this.level.sleepingTimer += 2000; } if (this.clickArray.length == 0 && this.clickArray1.length == 0 && this.animation == false && this.animation1 == false) { this.level.game.successAction = 0; } }; storedv2.afterPause = function (obj, func) { if (func != '') { if (func == 'onClickAction') { obj.onClickAction(); } else { if (func == 'onClick') { obj.onClick(); } } } }; storedv2.combo1Check = function (baby) {}; storedv2.comboCheck = function (need) { if (this.combo[this.combo.length - 1] == need || this.combo.length == 0) { this.combo.push(need); if (this.combo.length > this.level.game.maxCombo) { this.level.game.maxCombo = this.combo.length; } if (this.combo.length >= 2) { this.needComboMade = true; if (this.level.game.levelNum >= 3) { this.level.game.helpTips[37].showPopUp(); this.addEvents37(); } return true; } else { return false; } } else { this.combo.splice(0, this.combo.length); this.combo.push(need); if (this.combo.length > this.level.game.maxCombo) { this.level.game.maxCombo = this.combo.length; } return false; } }; storedv2.addEvents37 = function () { this.level.game.helpTips[37].clip.OK.holder = this; this.level.game.helpTips[37].clip.OK.onPress = function () { this.holder.level.game.helpTips[37].hidePopUp(); }; }; storedv2.pushInClickArray = function (object) { if (this.clickArray[this.clickArray.length - 1] != object) { this.clickArray.push(object); var v3 = this.level.getUniqueName(); object.hasStarNum += 1; if (object.ID == 33) { var v4 = 9 + object.hasStarNum; var v5 = object.bebeClip.attachMovie('simbol_house', v3, v4, {'_x': object.hasStarNum * 15, '_y': 0}); } else { if (object.ID == 5) { var v4 = 3 + object.hasStarNum; var v5 = object.clip.attachMovie('simbol_house', v3, v4, {'_x': object.hasStarNum * 15, '_y': 15}); } else { var v4 = 3 + object.hasStarNum; var v5 = object.clip.attachMovie('simbol_house', v3, v4, {'_x': 30 + object.hasStarNum * 15, '_y': -13}); } } this.starArray.push(v5); this.starArray[this.starArray.length - 1].numHouse.text = this.starArray.length.toString(); } }; storedv2.pushInClickArray1 = function (object) { if (this.clickArray1[this.clickArray1.length - 1] != object) { if (object.ID == 32) { this.clickArray1.push(object); var v4 = this.Towel; var v5 = this.level.getUniqueName(); v4.hasBallNum += 1; var v6 = 2 + v4.hasBallNum; var v7 = v4.clip.attachMovie('star1', v5, v6, {'_x': v4.hasBallNum * 15, '_y': 0}); this.ballArray.push(v7); this.ballArray[this.ballArray.length - 1].ballNum.text = this.ballArray.length.toString(); } else { if (this.level.game.cleaningStork == 1) { this.clickArray1.push(object); var v5 = this.level.getUniqueName(); object.hasBallNum += 1; var v6 = 9 + object.hasBallNum; var v7 = object.bebeClip.attachMovie('star1', v5, v6, {'_x': object.hasBallNum * 15, '_y': 0}); this.ballArray.push(v7); this.ballArray[this.ballArray.length - 1].ballNum.text = this.ballArray.length.toString(); var v4 = this.Trashcan; v6 = 5 + v4.hasBallNum; v7 = v4.clip.attachMovie('star1', v5, v6, {'_x': v4.hasBallNum * 15, '_y': 0}); this.ballArray.push(v7); this.ballArray[this.ballArray.length - 1].ballNum.text = this.ballArray.length.toString(); } else { var v4 = this.Towel; var v6 = 3 + v4.hasBallNum; var v7 = v4.clip.attachMovie('star1', storedv5, v6, {'_x': v4.hasBallNum * 15, '_y': 0}); this.ballArray.push(v7); this.ballArray[this.ballArray.length - 1].ballNum.text = this.ballArray.length.toString(); this.clickArray1.push(object); var v5 = this.level.getUniqueName(); object.hasBallNum += 1; v6 = 9 + object.hasBallNum; v7 = object.bebeClip.attachMovie('star1', v5, v6, {'_x': object.hasBallNum * 15, '_y': 0}); this.ballArray.push(v7); this.ballArray[this.ballArray.length - 1].ballNum.text = this.ballArray.length.toString(); var v3 = this.Trashcan; v6 = 5 + v3.hasBallNum; v7 = v3.clip.attachMovie('star1', v5, v6, {'_x': v3.hasBallNum * 15, '_y': 0}); this.ballArray.push(v7); this.ballArray[this.ballArray.length - 1].ballNum.text = this.ballArray.length.toString(); } } } }; storedv2.spliceClickArray = function () { this.clickArray.splice(0, this.clickArray.length); this.level.StorkCounter = 0; var v2 = 0; while (v2 < this.starArray.length) { this.starArray[v2].removeMovieClip(); ++v2; } this.starArray.splice(0, this.starArray.length); v2 = 0; while (v2 < this.babies.length) { this.babies[v2].hasStarNum = 0; ++v2; } v2 = 0; while (v2 < this.Bed.length) { this.Bed[v2].hasStarNum = 0; ++v2; } this.Foodmaker.hasStarNum = 0; this.Trashcan.hasStarNum = 0; this.ToyBox.hasStarNum = 0; this.Towel.hasStarNum = 0; v2 = 0; while (v2 < this.Toys.length) { this.Toys[v2].hasStarNum = 0; ++v2; } v2 = 0; while (v2 < this.Bottle.length) { this.Bottle[v2].hasStarNum = 0; ++v2; } }; storedv2.spliceClickArray1 = function () { this.clickArray1.splice(0, this.clickArray1.length); this.level.CleaningStorkCounter = 0; var v2 = 0; while (v2 < this.ballArray.length) { this.ballArray[v2].removeMovieClip(); ++v2; } this.ballArray.splice(0, this.ballArray.length); v2 = 0; while (v2 < this.babies.length) { this.babies[v2].hasBallNum = 0; ++v2; } this.CleaningStork.hasBallNum = 0; }; storedv2.takeSnapShot = function (mc) { var v6 = mc.getDepth(); var v3 = _root.createEmptyMovieClip('snapshot', 1500); var v4 = new flash.geom.Matrix(); v4.translate(mc._x, mc._y); var v5 = new flash.display.BitmapData(mc._width, mc._height, true, 0); v5.draw(mc, v4, new flash.geom.ColorTransform(), 1, undefined, true); v3.attachBitmap(v5, v6 + 1); mc._visible = false; return v3; }; storedv2.endGame3 = function () { utils.Delegate.callDelayed(this, this.endFactoryGame, 110); }; storedv2.endGame2 = function () { if (this.StartSequence) { this.StartSequence.removeMovieClip(); } this.CleaningStork.GotoAndStop('dise'); this.snapshot = this.takeSnapShot(this.holder); this.holder.visible = false; this.level.game.singelBoySacksArray[this.level.game.levelNum] = this.level.singelBoySacks; this.level.game.singelGirlSacksArray[this.level.game.levelNum] = this.level.singelGirlSacks; this.level.game.twinBoySacksArray[this.level.game.levelNum] = this.level.twinBoySacks; this.level.game.twinGirlSacksArray[this.level.game.levelNum] = this.level.twinGirlSacks; this.level.game.tripletBoySacksArray[this.level.game.levelNum] = this.level.tripletBoySacks; this.level.game.tripletGirlSacksArray[this.level.game.levelNum] = this.level.tripletGirlSacks; this.level.game.quadrupletBoySacksArray[this.level.game.levelNum] = this.level.quadrupletBoySacks; this.level.game.quadrupletGirlSacksArray[this.level.game.levelNum] = this.level.quadrupletGirlSacks; if (this.level.game.expertGoalReached) { var v2 = this.level.game.levelNum - 1; while (v2 < 25) { this.level.game.bed1LevelUpgrades[v2] = this.level.game.bedUpgrades[0]; this.level.game.bed2LevelUpgrades[v2] = this.level.game.bedUpgrades[1]; this.level.game.bed3LevelUpgrades[v2] = this.level.game.bedUpgrades[2]; this.level.game.bath1LevelUpgrades[v2] = this.level.game.bathUpgrades[0]; this.level.game.bath2LevelUpgrades[v2] = this.level.game.bathUpgrades[1]; this.level.game.bath3LevelUpgrades[v2] = this.level.game.bathUpgrades[2]; this.level.game.foodmakerLevelUpgrades[v2] = this.level.game.foodmakerUpgrades; this.level.game.EscSwitchLevelUpgrades[v2] = this.level.game.EscSwitchUpgrades; this.level.game.toyboxLevelUpgrades[v2] = this.level.game.toyboxUpgrades; this.level.game.cleaningLevelStork[v2] = this.level.game.cleaningStork; this.level.game.gamePointsFactory[v2] = this.level.game.gamePoints; this.level.game.gamePointsDelivery[v2] = this.level.game.gamePoints; this.level.game.pointsAreLostFactoryUpgrade[v2] = this.level.game.pointsAreLost; this.level.game.wrongWishFactoryUpgrade[v2] = this.level.game.wrongWish; ++v2; } this.level.game.factoryCallTimes = 1; var v3 = this.endlevelMessages[Math.floor(Math.random() * this.endlevelMessages.length)]; this.snapshot.attachMovie(v3[0], 'YouWereIncredible', 200, {'_x': 400, '_y': 300}); this.target.sndCtrl.stopSound(this.target.soundsId[v3[1]]); this.target.sndCtrl.playSound(this.target.soundsId[v3[1]]); this.snapshot.YouWereIncredible.delivery = this; } else { if (this.level.game.goalReached) { var v2 = this.level.game.levelNum - 1; while (v2 < 25) { this.level.game.bed1LevelUpgrades[v2] = this.level.game.bedUpgrades[0]; this.level.game.bed2LevelUpgrades[v2] = this.level.game.bedUpgrades[1]; this.level.game.bed3LevelUpgrades[v2] = this.level.game.bedUpgrades[2]; this.level.game.bath1LevelUpgrades[v2] = this.level.game.bathUpgrades[0]; this.level.game.bath2LevelUpgrades[v2] = this.level.game.bathUpgrades[1]; this.level.game.bath3LevelUpgrades[v2] = this.level.game.bathUpgrades[2]; this.level.game.foodmakerLevelUpgrades[v2] = this.level.game.foodmakerUpgrades; this.level.game.EscSwitchLevelUpgrades[v2] = this.level.game.EscSwitchUpgrades; this.level.game.toyboxLevelUpgrades[v2] = this.level.game.toyboxUpgrades; this.level.game.cleaningLevelStork[v2] = this.level.game.cleaningStork; this.level.game.gamePointsFactory[v2] = this.level.game.gamePoints; this.level.game.gamePointsDelivery[v2] = this.level.game.gamePoints; this.level.game.pointsAreLostFactoryUpgrade[v2] = this.level.game.pointsAreLost; this.level.game.wrongWishFactoryUpgrade[v2] = this.level.game.wrongWish; ++v2; } this.level.game.factoryCallTimes = 1; this.snapshot.attachMovie('levelCleared', 'levelCleared', 200, {'_x': 400, '_y': 300}); this.target.sndCtrl.stopSound(this.target.soundsId.levelClearedAndincredible_snd); this.target.sndCtrl.playSound(this.target.soundsId.levelClearedAndincredible_snd); this.snapshot.levelCleared.delivery = this; } else { this.level.game.gamePoints += this.level.game.moneySpendForUpgrade; this.level.game.moneySpendForUpgrade = 0; this.level.game.factoryCallTimes += 1; this.snapshot.attachMovie('YOUFAILED', 'YOUFAILED', 200, {'_x': 400, '_y': 300}); this.target.sndCtrl.stopSound(this.target.soundsId.goalNotReachedText_snd); this.target.sndCtrl.playSound(this.target.soundsId.goalNotReachedText_snd); this.snapshot.YOUFAILED.delivery = this; } } }; storedv2.endFactoryGame = function () { this.holder._visible = true; this.snapshot.removeMovieClip(); if (this.level.game.goalReached == true) { this.level.game.nextIsFactory = false; } else { this.level.game.nextIsFactory = true; } if (this.hasRemoveTransition) { this.rTransition.startTransition(); } else { this.remove(); } }; storedv2.endSequence = function () { this.level.game.gameCanBePaused = false; this.factoryStarted = false; this.Track.stopMovingTrack(); this.StartSequence = this.holder.attachMovie('end_sequence_factory', 'end_sequence_factory', 10151, {'_x': 0, '_y': 0}); this.StartSequence.object = this; this.target.sndCtrl.stopSound(this.soundsId.horn_snd); utils.Delegate.callDelayed(this.target.sndCtrl, this.target.sndCtrl.playSound, 1400, this.soundsId.horn_snd); }; storedv2.checkForTrophy = function () { if (this.twinsNum >= 6) { if (this.atEndLevel == false && this.level.game.twinMasterTrophy == false) { this.level.game.twinMasterTrophy = true; this.showTrofej('TekstTwinMaster', 'TrofejTwinMaster'); this.level.pauseGame(); } } if (this.tripletsNum >= 4) { if (this.atEndLevel == false && this.level.game.tripletMasterTrophy == false) { this.level.game.tripletMasterTrophy = true; this.showTrofej('TekstTripletMaster', 'TrofejTripletMaster'); this.level.pauseGame(); } } if (this.quadrupletsNum >= 4) { if (this.atEndLevel == false && this.level.game.quadrupletFanTrophy == false) { this.level.game.quadrupletFanTrophy = true; this.showTrofej('TekstQuadriplets', 'TrofejQuadriplets'); this.level.pauseGame(); } } }; storedv2.addEvants1 = function () { this.winTrophyPopup.continueBtn.holder = this; this.winTrophyPopup.continueBtn.onPress = function () { this.holder.level.continueGame(); this.holder.winTrophyPopup.removeMovieClip(); }; }; storedv2.PointObject = function (ob, baby, need) { if (this.level.PointedObject == undefined) { this.level.BabyForPointedObject = baby; this.level.BabyForPointedObjectFlag = true; if (need != undefined) { this.level.NeedForPointedObject = need; } else { this.level.NeedForPointedObject = 0; } if (ob.ID == 33) { this.setBrightness(ob.bebeClip, 100); } else { this.setBrightness(ob.clip, 100); } if (ob.ID == 4) { this.setBrightness(this.Foodmaker.clip, 100); } if (ob.ID == 3) { this.setBrightness(ob.BedFront, 100); } if (ob.ID == 33) { this.Strelkicka = ob.bebeClip.attachMovie('strelkicka', 'strelkicka', 10, {'_x': ob.bebeClip._x - 50, '_y': ob.bebeClip._y - 75}); } else { if (ob.ID == 2) { this.Strelkicka = ob.BathFront.attachMovie('strelkicka', 'strelkicka', 10, {'_x': -30, '_y': -30}); this.setBrightness(ob.BathFront, 100); } else { if (ob.ID == 5 || ob.ID == 4) { this.Strelkicka = this.Foodmaker.clip.attachMovie('strelkicka', 'strelkicka', 10, {'_x': -50, '_y': 20}); } else { if (ob.ID == 9) { this.Strelkicka = ob.clip.attachMovie('strelkicka', 'strelkicka', 10, {'_x': -35, '_y': -50}); this.setBrightness(ob.Front, 100); } else { if (ob.ID == 8) { if (ob.linkID == 'jack') { this.Strelkicka = ob.clip.attachMovie('strelkicka', 'strelkicka', 10, {'_x': -15, '_y': 55}); } else { this.Strelkicka = ob.clip.attachMovie('strelkicka', 'strelkicka', 10, {'_x': -30, '_y': -30}); } } else { this.Strelkicka = ob.clip.attachMovie('strelkicka', 'strelkicka', 10, {'_x': -30, '_y': -30}); } } } } } } else { this.level.succesesClick = getTimer(); this.level.storkCarringFlag = true; this.level.succesesClickFlag = true; } }; storedv2.UnpointObject = function (ob) { if (ob.ID == 33) { this.setBrightness(ob.bebeClip, 0); } else { this.setBrightness(ob.clip, 0); } if (ob.ID == 9) { this.setBrightness(ob.Front, 0); } if (ob.ID == 4) { this.setBrightness(this.Foodmaker.clip, 0); } if (ob.ID == 5) { this.setBrightness(this.Bottle.clip, 0); } if (ob.ID == 2) { this.setBrightness(ob.BathFront, 0); } if (ob.ID == 3) { this.setBrightness(ob.BedFront, 0); } if (this.level.PointedObject.bebeClip) { this.setBrightness(this.level.PointedObject.bebeClip, 0); } this.setBrightness(this.Foodmaker.clip, 0); this.setBrightness(this.Bottle.clip, 0); this.setBrightness(this.Trashcan.clip, 0); this.setBrightness(this.Trashcan.Front, 0); this.setBrightness(this.Bath.clip, 0); this.setBrightness(this.Bath.BathFront, 0); this.setBrightness(this.Bed.clip, 0); this.setBrightness(this.Bed.BedFront, 0); this.setBrightness(this.Towel.clip, 0); this.setBrightness(this.ToyBox.clip, 0); this.setBrightness(this.Toys[0].clip, 0); this.setBrightness(this.Toys[1].clip, 0); var v2 = 0; while (v2 < this.babies.length) { this.setBrightness(this.babies[v2].clip, 0); ++v2; } if (this.ClipClick) { this.ClipClick.removeMovieClip(); } this.Strelkicka.removeMovieClip(); this.level.PointedObject = undefined; this.level.storkCarringFlag = true; this.level.succesesClickFlag = true; this.level.succesesClick = getTimer(); this.Stork.clip.strk.sise.gotoAndStop(1); }; storedv2.SelectObject = function (ob) {}; storedv2.UnselectObject = function (ob) {}; storedv2.showTrofej = function (tekst, trofej) { this.level.pauseGame(); if (this.FinalTrofejAnimation != undefined || (this.holder.goalReached != undefined || this.holder.expertReached != undefined)) { utils.Delegate.callDelayed(this, this.showTrofej, 2000, tekst, trofej); return undefined; } this.snapshot = this.takeSnapShot(this.holder); this.snapshot._visible = false; this.holder._visible = false; this.FinalTrofejAnimation = _root.attachMovie('CelosnaTrofejAnimacija', 'CelosnaTrofejAnimacija', 775000, {'_x': 375, '_y': 330}); this.FinalTrofejAnimation.TrofejAnimation.tekstCombo.attachMovie(tekst, tekst, 5); this.FinalTrofejAnimation.TrofejAnimation.trofej.attachMovie(trofej, trofej, 10); this.target.sndCtrl.stopSound(this.target.soundsId.oskarmuzika_snd); this.target.sndCtrl.playSound(this.target.soundsId.oskarmuzika_snd); this.target.sndCtrl.stopSound(this.target.soundsId.applause_snd); this.target.sndCtrl.playWithFadeIn(this.target.soundsId.applause_snd, 500, 32000); this.target.sndCtrl.stopSound(this.target.soundsId.applausewisle_snd); this.target.sndCtrl.playWithFadeIn(this.target.soundsId.applausewisle_snd, 500, 32000); this.addEvent1(); }; storedv2.funct = function () { this.holder._visible = false; }; storedv2.addEvent1 = function () { trace('this.FinalTrofejAnimation ' + this.FinalTrofejAnimation); trace('this.FinalTrofejAnimation.continueBtn ' + this.FinalTrofejAnimation.continueBtn); trace('this.FinalTrofejAnimation.continueBtn.continueBtn ' + this.FinalTrofejAnimation.continueBtn.continueBtn); this.FinalTrofejAnimation.continueBtn.continueBtn.holder_ = this; this.FinalTrofejAnimation.continueBtn.continueBtn.onPress = function () { trace('this.FinalTrofejAnimation.continueBtn.onPress'); this.holder_.target.sndCtrl.stopSound(this.holder_.target.soundsId.mouseclick_snd); this.holder_.target.sndCtrl.playSound(this.holder_.target.soundsId.mouseclick_snd); this.holder_.target.mousePointer.clip.gotoAndStop('normal'); this._parent.ss.gotoAndStop(1); this.holder_.FinalTrofejAnimation.publika.gotoAndStop('gogo'); this.holder_.FinalTrofejAnimation.pozadina.gotoAndStop('go'); this.holder_.FinalTrofejAnimation.TrofejAnimation.gotoAndStop('gogogo'); this.holder_.snapshot._visible = true; utils.Delegate.callDelayed(this.holder_, this.holder_.OnContinueBtn, 500); }; this.FinalTrofejAnimation.continueBtn.continueBtn.onRollOver = function () { this.holder_.target.mousePointer.clip.gotoAndStop('finger'); this._parent.ss.gotoAndStop(2); }; this.FinalTrofejAnimation.continueBtn.continueBtn.onRollOut = function () { this.holder_.target.mousePointer.clip.gotoAndStop('normal'); this._parent.ss.gotoAndStop(1); }; this.FinalTrofejAnimation.continueBtn.continueBtn.onReleaseOutside = function () { this.holder_.target.mousePointer.clip.gotoAndStop('normal'); this._parent.ss.gotoAndStop(1); }; }; storedv2.OnContinueBtn = function () { trace('OnContinueBtn'); this.target.sndCtrl.stopWithFadeOut(this.target.soundsId.applause_snd, 500); this.target.sndCtrl.stopWithFadeOut(this.target.soundsId.applausewisle_snd, 500); this.holder._visible = true; this.FinalTrofejAnimation = undefined; this.snapshot.removeMovieClip(); if (this.level.halt == true) { trace('OnContinueBtn continueGame'); this.level.resumeGame(); } this.continueGame(); this.CheckForLastTrophy(); }; storedv2.CheckForLastTrophy = function () { if (this.level.game.twinMasterTrophy == true && this.level.game.tripletMasterTrophy == true && this.level.game.quadrupletFanTrophy == true && this.level.game.expertGoalBusterTrophy == true && this.level.game.professorTrophy == true && this.level.game.innovatorTrophy == true && this.level.game.comboFreakTrophy == true && this.level.game.comboExpertTrophy == true && this.level.game.comboholicTrophy == true && this.level.game.fastestStorkTrophy == true && this.level.game.queenHeartsTrophy == true && this.level.game.kingHeartsTrophy == true && this.level.game.storkHeartsTrophy == true && this.level.game.weatherMasterTrophy == true && this.level.game.slotMashineTrophy == true && this.level.game.trophyHunter == false) { this.level.game.trophyHunter = true; utils.Delegate.callDelayed(this, this.showTrofej, 500, 'TekstTrophyHunter', 'TrofejTrophyHunter'); } }; storedv2.setBrightness = function (mc, blur) { var v4 = 16777215; var v10 = 1; var v7 = 2; var v6 = 2; var v8 = 6; var v2 = 3; var v5 = false; var v9 = false; var v12 = 1; if (blur == 0) { mc.filters = new Array(); } else { var v3 = new flash.filters.GlowFilter(v4, v10, v7, v6, v8, v2, v5, v9); var v1 = new Array(); v1.push(v3); mc.filters = v1; } }; storedv2.FindBabyAction = function () { var v3 = false; var v2 = 0; while (v2 < this.babies.length) { if (this.babies[v2].need != 11 && this.babies[v2].need != 30 && this.babies[v2].clip && this.babies[v2].launcherNeed == false) { this.babies[v2].PointBabyAction(); v3 = true; break; } ++v2; } if (v3 == false) { this.level.succesesClick = getTimer(); this.level.storkCarringFlag = true; this.level.succesesClickFlag = true; } }; storedv2.addAttachTransition = function (t) { this.aTransition = t; this.aTransition.addTransitionObject(this); this.aTransition.addEventListener('onAttach', this); this.hasAttachTransition = true; }; storedv2.addRemoveTransition = function (t) { this.rTransition = t; this.rTransition.addTransitionObject(this); this.rTransition.addEventListener('onRemove', this); this.hasRemoveTransition = true; }; storedv2.removeAttachTransition = function (t) { this.aTransition.removeEventListener('onAttach', this); this.hasAttachTransition = false; this.aTransition = undefined; }; storedv2.removeRemoveTransition = function (t) { this.rTransition.removeEventListener('onRemove', this); this.hasRemoveTransition = false; this.rTransition = undefined; }; storedv2.attach = function () {}; storedv2.remove = function () { this.level.game.justPointInFactory = this.level.game.levelPoints; this.level.game.successAction = 0; if (this.getExpertGoal == true) { this.level.game.expertGoalNum += int(this.level.heartPoints / 1000); this.level.game.expertGoalInOrderNum += 1; } else { this.level.game.expertGoalInOrderNum = 0; } if (this.level.game.expertGoalReached == false && this.level.game.goalReached == false) { this.level.game.gamePoints -= this.level.game.levelPoints; } this.level.game.gameCanBePaused = true; this.atEndLevel = true; this.checkForTrophy(); utils.Delegate.callDelayed(this.level.game, this.level.game.endLevel, 100); }; storedv2.onAttach = function () {}; storedv2.onRemove = function () { this.remove(); }; label 84806: ASSetPropFlags(com.Factory.prototype, null, 1); #endinitclip } movieClip 9298 __Packages.mcs.Track { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Track) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; this.anima = new Array(); this.anima = [this.anim1, this.anim2, this.anim3, this.anim4, this.anim5, this.anim6, this.anim7, this.anim8, this.anim9, this.anim10, this.anim11, this.anim12, this.anim13, this.anim14, this.anim15, this.anim16, this.anim17, this.anim18, this.anim19]; }; mcs.Track = v1; mcs.Track extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.Track implements _global.utils.IClipEvents; v2.stopMovingTrack = function () { this.factory.target.sndCtrl.stopWithFadeOut(this.factory.soundsId.productionline_snd, 100); this.factory.trackIsMoving = false; this.anim.stopAnimation(); var v2 = 0; while (v2 <= 19) { this.anima[v2].stopAnimation(); clearInterval(this.intervalId); ++v2; } }; v2.moveTrack = function () { this.factory.stopedFromEsc = false; this.factory.escSwitch.raiseUp(); this.stopMovingTrack(); this.factory.trackIsMoving = true; this.factory.trackIsStoped = false; if (this.factory.CallForBaby == true) { this.factory.ChackForNexBaby(); this.factory.CallForBaby = false; } this.anim.startAnimation(this.factory.level.game.speed); var v2 = 0; while (v2 <= 19) { this.anima[v2].startAnimation(this.factory.level.game.speed); ++v2; } this.factory.target.sndCtrl.stopSound(this.factory.soundsId.productionline_snd); this.factory.target.sndCtrl.playWithFadeIn(this.factory.soundsId.productionline_snd, 100, 32000); }; v2.attachTrack = function () { this.ProductionLine = this.factory.holder.attachMovie('productionline', 'productionline', this.factory.level.depth.getDepth('productionline'), {'_x': 114.6, '_y': 463.55}); this.Wheel = this.factory.holder.attachMovie('trkalca', 'trkalca', this.factory.level.depth.getDepth('trkalca'), {'_x': 110.8, '_y': 488.35}); this.clip = this.factory.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.clip.factory = this.factory; this.anim = new utils.Animation(this.clip, this.factory.level.game.speed); var v2 = 0; while (v2 <= 19) { this.anima[v2] = new utils.Animation(this.Wheel['t' + v2.toString()], this.factory.level.game.speed); ++v2; } this.clip.gotoAndStop(1); }; v2.removeTrack = function () {}; v2.addEvents = function () {}; ASSetPropFlags(mcs.Track.prototype, null, 1); } #endinitclip } movieClip 9299 __Packages.utils.Animation { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.Animation) { var v1 = function (mc, _fps) { this.movieClip = mc; this.fps = _fps; }; utils.Animation = v1; var v2 = v1.prototype; v2.startAnimation = function (speed) { this.fps = speed; var v2 = 1000 / this.fps; clearInterval(this.intervalID); this.intervalID = setInterval(this, 'gotoNextFrame', v2); }; v2.stopAnimation = function () { clearInterval(this.intervalID); }; v2.gotoNextFrame = function () { trace('^^^^^^^^^^^^this.movieClip._currentframe ' + this.movieClip._currentframe); this.movieClip.nextFrame(); this.movieClip.factory.movingSlots(); if (this.movieClip._currentframe == this.movieClip._totalframes) { this.movieClip.gotoAndStop(1); } }; ASSetPropFlags(utils.Animation.prototype, null, 1); } #endinitclip } movieClip 9300 __Packages.mcs.Bath { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Bath) { var v1 = function (factory_, linkID, x, y, xs, ys, depth) { super(linkID, x, y, 0, xs, ys); this.depth = depth; this.factory = factory_; this.hasBaby = false; this.washingTime = 0; this.ID = 2; this.shine = false; this.shined = false; this.soundsId = new Array(); this.sounds = new Array(); this.sounds = [['bathwashing_snd', 70, false]]; this.attachSounds(); }; mcs.Bath = v1; mcs.Bath extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.Bath implements _global.utils.IClipEvents; v2.attachSounds = function () { trace('BATH attachSounds'); var v2 = 0; while (v2 < this.sounds.length) { var v3 = this.factory.level.game.soundClip.createEmptyMovieClip(utils.StringUtils.getUniqueName(), this.factory.level.game.soundClip.getNextHighestDepth()); var v4 = new utils.SoundImpl(v3); v4.attachSoundImpl(this.sounds[v2][0], this.sounds[v2][1], this.sounds[v2][2]); this.soundsId[this.sounds[v2][0]] = this.factory.level.game.sndCtrl.addSound(this.sounds[v2][0], v3, this.sounds[v2][1], this.sounds[v2][2]); if (this.sounds[v2][2]) { this.factory.level.game.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.factory.level.game.sndCtrl.getMusicVolume()); } else { this.factory.level.game.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.factory.level.game.sndCtrl.getSoundFXVolume()); } trace('soundsId[i] ' + this.soundsId[this.sounds[v2][0]]); ++v2; } }; v2.bathBaby = function (b) { if (this.factory.level.game.popUpPause) { this.factory.level.continueGame(); } this.factory.level.game.helpTips[16].hidePopUp(); this.factory.level.game.helpTips[17].showPopUp(); this.factory.UnselectObject(this); trace('bathBaby'); this.Baby = b; if (this.Baby.need == this.factory.sleepy) { this.factory.level.changePoints(0, this.clip._x + 15, this.clip._y); } if (this.factory.level.PointedObject.ID == this.ID) { trace('unpoint vo Bath'); this.factory.UnpointObject(this.factory.level.PointedObject); } this.Baby.bebeClip._x = this.clip._x + 30; this.Baby.bebeClip._y = this.clip._y + 70; this.Baby.bebeClip._visible = false; this.BathFront.kada.gotoAndPlay('startBath'); this.factory.target.sndCtrl.stopSound(this.soundsId.bathwashing_snd); this.factory.target.sndCtrl.playSound(this.soundsId.bathwashing_snd); this.clip.back.gotoAndPlay(2); this.Baby.washing = true; this.washingTime = 2300 + 1500 * (3 - this.upgrade); trace('this.washingTime ' + this.washingTime); }; v2.bathBabyEnd = function () { trace('this.Baby.clip ' + this.Baby.clip); trace('this.Baby.clip._y ' + this.Baby.clip._y); this.Baby.bebeClip._visible = true; this.Baby.GotoAndStop('Happy'); this.Baby.bebeClip._x = this.clip._x + 30; this.Baby.bebeClip._y = this.clip._y - 25; if (this.Baby.need == this.factory.dirty) { this.Baby.changeNeed(); } else { var v2 = this.Baby.ChackNeedName(this.Baby.need); this.Baby.GotoAndStop(v2); if (this.Baby.angry == true) { this.Baby.GotoAndStop('Angry'); v2 = 'need' + this.Baby.need.toString(); this.Baby.clip.cloud.gotoAndStop(v2); } } trace('this.Baby.clip._y1 ' + this.Baby.clip._y); this.BathFront.kada.gotoAndStop('giveBaby'); this.factory.target.sndCtrl.stopWithFadeOut(this.soundsId.bathwashing_snd, 100); this.Baby.washing = false; this.clip.back.gotoAndStop(1); }; v2.attachBath = function () { var v7 = this.factory.level.getUniqueName(); var v6 = this.factory.level.getUniqueName(); this.clip = this.factory.holder.attachMovie(this.linkID, v7, this.depth, {'_x': this.x, '_y': this.y, '_xscale': this.xs, '_yscale': this.ys}); this.clip.level = this.factory; var v3; var v4; var v2 = flash.display.BitmapData.loadBitmap('bathshadow'); if (this.x == 179) { v3 = 179; v4 = 284; this.factory.factoryBitmapData.copyPixels(v2, v2.rectangle, new flash.geom.Point(170.4, 332.4), undefined, undefined, true); } else { if (this.x == 271) { v3 = 271; v4 = 328.9; this.factory.factoryBitmapData.copyPixels(v2, v2.rectangle, new flash.geom.Point(264.4, 380.4), undefined, undefined, true); } else { v3 = 150; v4 = 362; this.factory.factoryBitmapData.copyPixels(v2, v2.rectangle, new flash.geom.Point(142.4, 412.4), undefined, undefined, true); } } var v5 = this.depth + 10; this.BathFront = this.factory.holder.attachMovie('bathFront', v6, v5, {'_x': v3, '_y': v4, '_xscale': 100, '_yscale': 100}); this.BathFront.level = this.factory; this.BathFront.object = this; trace('this.upgrade ' + this.upgrade); this.clip.gotoAndStop(this.upgrade); this.BathFront.gotoAndStop(this.upgrade); this.addEvents(); }; v2.removeBath = function () { this.clip.removeMovieClip(); }; v2.addEvents = function () {}; ASSetPropFlags(mcs.Bath.prototype, null, 1); } #endinitclip } movieClip 9301 __Packages.mcs.Bed { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Bed) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; this.hasBaby = false; this.isClean = true; this.hasStarNum = 0; this.ID = 3; this.shine = false; this.shined = false; }; mcs.Bed = v1; mcs.Bed extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.Bed implements _global.utils.IClipEvents; v2.babySleep = function (b) { if (this.factory.level.PointedObject.ID == this.ID) { trace('unpoint vo baby sleep'); this.factory.UnpointObject(this.factory.level.PointedObject); } if (this.factory.level.game.popUpPause) { this.factory.level.continueGame(); } if (this.isClean == true) { this.factory.level.game.helpTips[17].hidePopUp(); this.factory.UnselectObject(this); this.Baby = b; this.sleepingTime = this.Baby.sleepingTime + (3 - this.upgrade) * 1500; this.Baby.GotoAndStop('PutInBed'); this.Baby.bebeClip._y += 10; this.Baby.sleeping = true; if (this.Baby.need == this.factory.sleepy) { utils.Delegate.callDelayed(this, this.callChangeNeed, this.sleepingTime, this.factory.level.clock.toSeconds(), this.sleepingTime / 1000, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } else { if (this.Baby.need == this.factory.dirty) { this.factory.level.changePoints(0, this.clip._x + 15, this.clip._y); utils.Delegate.callDelayed(this, this.makeMess, this.sleepingTime, this.factory.level.clock.toSeconds(), this.sleepingTime / 1000, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } } } else { this.makeMess(); } }; v2.callChangeNeed = function (callTime, delay, level, callTimes) { if (level == this.factory.level.game.levelNum && this.factory.holder && callTimes == this.factory.level.game.factoryCallTimes) { this.factory.level.game.helpTips[18].showPopUp(); if (this.factory.level.clock.toSeconds() - callTime >= delay) { this.Baby.sleeping = false; this.Baby.GotoAndStop('Happy'); this.Baby.bebeClip._y = this.clip._y + 50; this.Baby.changeNeed(); } else { var v2 = this.factory.level.clock.toSeconds(); var v3 = delay - (v2 - callTime); utils.Delegate.callDelayed(this, this.callChangeNeed, v3 * 1000, v2, v3, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } } }; v2.addEvents34 = function () { this.factory.level.game.helpTips[34].clip.OK.holder = this; this.factory.level.game.helpTips[34].clip.OK.onPress = function () { this.holder.factory.level.game.helpTips[34].hidePopUp(); }; }; v2.makeMess = function (callTime, delay, level, callTimes) { if (level == this.factory.level.game.levelNum && this.factory.holder && callTimes == this.factory.level.game.factoryCallTimes) { if (this.factory.level.clock.toSeconds() - callTime >= delay) { this.factory.level.game.helpTips[34].showPopUp(); this.addEvents34(); this.clip.gotoAndStop(this.upgrade + 3); this.BedFront.gotoAndStop(this.upgrade + 3); this.Baby.sleeping = false; this.Baby.GotoAndStop('Pooped'); this.Baby.angry = false; this.Baby.BabyMood(); this.Baby.bebeClip._y = this.clip._y + 50; this.isClean = false; } else { var v2 = this.factory.level.clock.toSeconds(); var v3 = delay - (v2 - callTime); utils.Delegate.callDelayed(this, this.makeMess, v3 * 1000, v2, v3, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } } }; v2.cleanMess = function () { this.clip.gotoAndStop(this.upgrade); this.BedFront.gotoAndStop(this.upgrade); this.factory.Stork.clip._x = this.BedFront._x + 17; this.factory.Stork.clip._y = this.BedFront._y - 37; var v2 = 11153; this.factory.Stork.clip.swapDepths(v2); this.factory.Stork.clip.gotoAndStop('clean'); this.factory.target.sndCtrl.stopSound(this.factory.Stork.soundsId.storkclean_snd); this.factory.target.sndCtrl.playSound(this.factory.Stork.soundsId.storkclean_snd); utils.Delegate.callDelayed(this, this.CleaningFinished, 1300, this.factory.level.clock.toSeconds(), 1.3, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); this.isClean = true; }; v2.CleaningFinished = function (callTime, delay, level, callTimes) { if (level == this.factory.level.game.levelNum && this.factory.holder && callTimes == this.factory.level.game.factoryCallTimes) { if (this.factory.level.clock.toSeconds() - callTime >= delay) { this.clip.gotoAndStop(this.upgrade); this.BedFront.gotoAndStop(this.upgrade); this.isClean = true; } else { var v2 = this.factory.level.clock.toSeconds(); var v3 = delay - (v2 - callTime); utils.Delegate.callDelayed(this, this.CleaningFinished, v3 * 1000, v2, v3, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } } }; v2.attachBed = function () { var v6 = this.factory.level.getUniqueName(); var v5 = this.factory.level.getUniqueName(); this.clip = this.factory.holder.attachMovie(this.linkID, v6, this.depth, {'_x': this.x, '_y': this.y}); var v3; var v4; var v2 = flash.display.BitmapData.loadBitmap('bedshadow'); if (this.x == 393.3) { v3 = 371.4; v4 = 292.3; trace('attachBed this.factory.factoryBitmapData ' + this.factory.factoryBitmapData); this.factory.factoryBitmapData.copyPixels(v2, v2.rectangle, new flash.geom.Point(390.6, 331.5), undefined, undefined, true); } else { if (this.x == 479.9) { v3 = 457.1; v4 = 292.3; this.factory.factoryBitmapData.copyPixels(v2, v2.rectangle, new flash.geom.Point(476.4, 331.5), undefined, undefined, true); } else { v3 = 543.3; v4 = 292.3; this.factory.factoryBitmapData.copyPixels(v2, v2.rectangle, new flash.geom.Point(563.4, 331.5), undefined, undefined, true); } } var v7 = this.depth + 10; this.BedFront = this.factory.holder.attachMovie('bed1front', v5, v7, {'_x': int(v3), '_y': int(v4)}); v7 = this.BedFront.getDepth(); this.clip.gotoAndStop(this.upgrade); this.BedFront.gotoAndStop(this.upgrade); this.addEvents(); }; v2.removeBed = function () {}; v2.onClickAction = function () { if (!this.factory.level.pause) { if (this.isClean == false && this.hasBaby == false) { this.cleanMess(); } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; } utils.Delegate.callDelayed(this.factory, this.factory.Animation, 1000); } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClickAction'; this.factory.Stork.clip._x = this.BedFront._x + 17; this.factory.Stork.clip._y = this.BedFront._y - 37; var v2 = 11153; this.factory.Stork.clip.swapDepths(v2); } }; v2.onClick = function () { if (!this.factory.level.pause) { if (this.isClean == false && this.hasBaby == false && this.factory.Stork.carring == 0) { this.factory.StorkGo(); } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; utils.Delegate.callDelayed(this.factory, this.factory.Animation, 1000); } } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClick'; } }; v2.addEvents = function () { this.clip.holder_ = this; this.clip.onPress = function () { if (this.holder_.factory.level.game.helpTips[this.holder_.factory.level.game.currentPopUp].clip) { if (this.holder_.factory.level.game.helpTips[this.holder_.factory.level.game.currentPopUp].checkIfAvailable(3) == false) { return undefined; } } this.holder_.factory.pushInClickArray(this.holder_); if (this.holder_.factory.level.pause && this.holder_.isClean == false && this.holder_.hasBaby == false && this.holder_.factory.level.game.popUpPause) { this.holder_.cleanMess(); } }; this.clip.onRollOver = function () { this.holder_.factory.target.mousePointer.clip.gotoAndStop('finger'); }; this.clip.onRollOut = function () { this.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.onReleaseOutside = function () { this.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); }; }; ASSetPropFlags(mcs.Bed.prototype, null, 1); } #endinitclip } movieClip 9302 __Packages.mcs.SlotMashine { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.SlotMashine) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; this.hasBaby = false; this.shine = false; this.shined = false; this.ID = 73; }; mcs.SlotMashine = v1; mcs.SlotMashine extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.SlotMashine implements _global.utils.IClipEvents; v2.attachBaby = function (b) {}; v2.attachSlotMashine = function () { this.clip = this.factory.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.back = this.factory.holder.attachMovie('slotmachine_back', 'slotmachine_back', this.factory.level.depth.getDepth('slotmachine_back'), {'_x': 646.65, '_y': 403.25}); this.handle = this.factory.holder.attachMovie('Slotswitch', 'Slotswitch', this.factory.level.depth.getDepth('Slotswitch'), {'_x': 644, '_y': 325.1}); this.indicator = this.factory.holder.attachMovie('Blue_pink_indicator', 'Blue_pink_indicator', this.factory.level.depth.getDepth('Blue_pink_indicator'), {'_x': 688.5, '_y': 416.2}); this.WishScreen = this.factory.holder.attachMovie('rollingAnim', 'rollingAnim', this.factory.level.depth.getDepth('wishScreen'), {'_x': 671.1, '_y': 353.7}); this.WishScreen.factory = this.factory; this.WishScreenBack = this.factory.holder.attachMovie('wishScreen', 'wishScreen', 14497, {'_x': 671.1, '_y': 353.7}); this.addEvents(); }; v2.removeSackSpot = function () {}; v2.addEvents = function () {}; ASSetPropFlags(mcs.SlotMashine.prototype, null, 1); } #endinitclip } movieClip 9303 __Packages.mcs.SackMachine { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.SackMachine) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; this.numOfSacks = 0; }; mcs.SackMachine = v1; mcs.SackMachine extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.SackMachine implements _global.utils.IClipEvents; v2.addSpot = function (s) {}; v2.addBaby = function (b) {}; v2.putInSack = function () {}; v2.attachSackMachine = function () { this.clip = this.factory.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.telepTube = this.factory.holder.attachMovie('Telep_Tube', 'Telep_Tube', this.factory.level.depth.getDepth('Telep_Tube'), {'_x': 100.9, '_y': 238.95}); this.telepTube.factory = this.factory; this.TeleporterBack = this.factory.holder.attachMovie('TeleporterBack', 'TeleporterBack', this.factory.level.depth.getDepth('TeleporterBack'), {'_x': 116.4, '_y': 405.9}); this.addEvents(); }; v2.removeSackMachine = function () {}; v2.addEvents = function () {}; ASSetPropFlags(mcs.SackMachine.prototype, null, 1); } #endinitclip } movieClip 9304 __Packages.mcs.SackSpot { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.SackSpot) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; this.hasBaby = false; }; mcs.SackSpot = v1; mcs.SackSpot extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.SackSpot implements _global.utils.IClipEvents; v2.attachBaby = function (b) {}; v2.attachSackSpot = function () { this.clip = this.factory.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.addEvents(); }; v2.removeSackSpot = function () {}; v2.addEvents = function () {}; ASSetPropFlags(mcs.SackSpot.prototype, null, 1); } #endinitclip } movieClip 9305 __Packages.mcs.Tube { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Tube) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; this.sackBabies = new Array(); this.sackNum = 0; this.redNum = 0; this.blueNum = 0; this.arrowMove = false; this.demaged = false; this.toBeDemaged = false; this.greenArrow = false; this.shine = false; this.shined = false; this.demageShaking = false; this.isShaking = false; this.ID = 55; this.sounds = [['launcherfires_snd', 100, false], ['launcherdemaged_snd', 100, false], ['launchershake_snd', 100, false], ['screw_snd', 100, false]]; this.soundsId = new Array(); this.attachSounds(); }; mcs.Tube = v1; mcs.Tube extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.Tube implements _global.utils.IClipEvents; v2.attachSounds = function () { var v2 = 0; while (v2 < this.sounds.length) { var v3 = this.factory.level.game.soundClip.createEmptyMovieClip(utils.StringUtils.getUniqueName(), this.factory.level.game.soundClip.getNextHighestDepth()); var v4 = new utils.SoundImpl(v3); v4.attachSoundImpl(this.sounds[v2][0], this.sounds[v2][1], this.sounds[v2][2]); this.soundsId[this.sounds[v2][0]] = this.factory.level.game.sndCtrl.addSound(this.sounds[v2][0], v3, this.sounds[v2][1], this.sounds[v2][2]); if (this.sounds[v2][2]) { this.factory.level.game.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.factory.level.game.sndCtrl.getMusicVolume()); } else { this.factory.level.game.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.factory.level.game.sndCtrl.getSoundFXVolume()); } ++v2; } }; v2.babyStack = function () {}; v2.shake = function () { if (this.demageShaking == false) { this.clip.gotoAndStop('shake'); if (this.isShaking == false) { this.factory.target.sndCtrl.stopSound(this.soundsId.launchershake_snd); this.factory.target.sndCtrl.playSound(this.soundsId.launchershake_snd, 32000); this.isShaking = true; } } this.factory.shakeTime = getTimer(); this.factory.shakeer = true; this.factory.shakeFlag = true; this.losePoints(); }; v2.shakeDemaged = function () { this.clip.gotoAndStop('shake'); this.demageShaking = true; }; v2.addEvents29 = function () { this.factory.level.game.helpTips[29].clip.OK.holder = this; this.factory.level.game.helpTips[29].clip.OK.onPress = function () { this.holder.demagedTube(); this.holder.factory.level.game.helpTips[29].hidePopUp(); }; }; v2.demagedTube = function () { if (this.factory.level.game.helpTips[29].shown == false) { this.factory.level.game.helpTips[29].showPopUp(); this.addEvents29(); } else { this.demaged = true; this.Activation_btn.gotoAndStop('demaged'); this.Activation_btn.object = this.factory.level; this.factory.target.sndCtrl.stopSound(this.soundsId.launcherdemaged_snd); this.factory.target.sndCtrl.playSound(this.soundsId.launcherdemaged_snd); this.shakeDemaged(); if (this.Activation_btn.hitTest(_xmouse, _ymouse, true)) { this.factory.target.mousePointer.clip.gotoAndStop('finger'); } this.addEvents(); } }; v2.callLaunch = function () { trace('callLaunch'); if (this.demaged == true) { this.demaged = false; this.Activation_btn.gotoAndStop(1); this.demageShaking = false; this.launch(); } }; v2.repairTube = function () { this.factory.level.game.helpTips[29].hidePopUp(); this.demaged = false; this.demageShaking = false; if (this.factory.shakeer == false) { this.clip.gotoAndStop('stand'); } this.Activation_btn.gotoAndStop(1); this.Activation_btn.attachMovie('kljuc', 'kljuc', 1001, {'_x': 19, '_y': 7}); this.factory.level.game.successAction += 1; this.factory.target.sndCtrl.stopSound(this.soundsId.launchershake_snd); this.factory.target.sndCtrl.stopSound(this.soundsId.launcherdemaged_snd); this.factory.target.sndCtrl.stopSound(this.factory.soundsId.screw_snd); this.factory.target.sndCtrl.playSound(this.factory.soundsId.screw_snd); }; v2.endLaunch = function () { trace('endLaunch function'); this.clip.gotoAndStop('stand'); this.Launcher_back._visible = true; this.Launcher_tube._visible = true; }; v2.launch = function () { trace('@@@@@@@@@@@@@@@@ launch function'); this.factory.level.game.helpTips[29].hidePopUp(); this.factory.level.game.helpTips[20].hidePopUp(); if (this.factory.level.game.helpOnOff == true) { if (this.factory.level.game.levelNum == 1 && this.factory.servedBabies == 1) { this.factory.level.game.helpTips[21].showPopUp(); this.addEventsPopup(); } } else { if (this.factory.level.game.levelNum == 1 && this.factory.servedBabies == 1) { this.factory.slotMachineBlinking(); } } this.demaged = false; this.demageShaking = false; var v3 = this.factory.level.singelGirlSacks + this.factory.level.twinGirlSacks + this.factory.level.tripletGirlSacks + this.factory.level.quadrupletGirlSacks; this.factory.GirlCloud.num.text = v3.toString(); var v4 = this.factory.level.singelBoySacks + this.factory.level.twinBoySacks + this.factory.level.tripletBoySacks + this.factory.level.quadrupletBoySacks; this.factory.BoyCloud.num.text = v4.toString(); _global.flag = true; this.arrowMove = false; this.factory.shakeer = false; this.factory.shakeFlag = false; this.greenArrow = false; this.toBeDemaged = false; this.clip.gotoAndStop('shut'); trace('222222222222222 STOPIRAM launchershake_snd'); this.factory.target.sndCtrl.stopSound(this.soundsId.launchershake_snd); this.factory.target.sndCtrl.stopSound(this.soundsId.launcherfires_snd); this.factory.target.sndCtrl.playSound(this.soundsId.launcherfires_snd); this.Launcher_back._visible = false; this.Launcher_tube._visible = false; trace('call endLaunch'); this.Arrow.removeMovieClip(); this.Arrow = this.factory.holder.attachMovie('Arrow', 'Arrow', this.factory.level.depth.getDepth('Arrow'), {'_x': 305.85, '_y': 316.85}); this.isShaking = false; this.demageShaking = false; this.factory.shakeer = false; this.factory.shakeFlag = false; utils.Delegate.callDelayed(this, this.endLaunch, 1000); trace('this.factory.babiesInRoom1 ' + this.factory.babiesInRoom); this.factory.babiesInRoom -= this.sackNum; trace('this.factory.babiesInRoom2 ' + this.factory.babiesInRoom); this.sackNum = 0; this.clip.sack_num.text = this.sackNum.toString(); this.Activation_btn.gotoAndPlay(1); this.Slycer_blue.gotoAndStop(1); this.Slycer_red.gotoAndStop(1); this.clip.girlNum.text = '0'; this.clip.boyNum.text = '0'; this.redNum = 0; this.blueNum = 0; trace('this.factory.babiesInRoom ' + this.factory.babiesInRoom); trace('this.factory.servedBabies ' + this.factory.servedBabies); trace('this.factory.maxLevelBabies ' + this.factory.maxLevelBabies); trace('this.factory.babiesSendNum ' + this.factory.babiesSendNum); if (this.factory.babiesInRoom == 0 && this.factory.servedBabies == this.factory.maxLevelBabies && this.factory.babiesSendNum == this.factory.maxLevelBabies) { trace('call endLevel'); utils.Delegate.callDelayed(this, this.removeTube, 2000, this.factory.level.clock.toSeconds(), 2, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } }; v2.moveArrow = function (callTime, delay, level, callTimes) { if (level == this.factory.level.game.levelNum && this.factory.holder && callTimes == this.factory.level.game.factoryCallTimes) { if (this.factory.level.clock.toSeconds() - callTime >= delay) { if (this.arrowMove == true) { trace('arrowMoving'); this.Arrow._y -= 1.655; if (this.Arrow._y <= 299.85 && this.Arrow._y > 282.85) { trace('STRELKATA E ZOLTA'); this.Arrow.gotoAndStop(2); this.greenArrow = true; if (this.toBeDemaged == true) { trace('DAMAGE VO TUBE'); this.demagedTube(); this.toBeDemaged = false; } } if (this.Arrow._y <= 283.85) { this.Arrow.gotoAndStop(3); this.greenArrow = false; trace('moveArrow this.factory.shakeer ' + this.factory.shakeer); if (this.factory.shakeer == false) { this.factory.shakeFlag = false; trace('moveArrow SHAKE'); this.shake(); } } if (this.Arrow._y <= 271.85) { this.factory.shakeFlag = false; trace('launch from arrow'); this.factory.Tube.launch(); this.factory.level.game.helpTips[22].showPopUp(); this.addEvents22(); } utils.Delegate.callDelayed(this, this.moveArrow, 1000, this.factory.level.clock.toSeconds(), 1, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } } else { var v2 = this.factory.level.clock.toSeconds(); var v3 = delay - (v2 - callTime); utils.Delegate.callDelayed(this, this.moveArrow, v3 * 1000, v2, v3, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } } }; v2.attachTube = function () { this.clip = this.factory.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.clip.factory = this.factory; _global.provider = this; this.Launcher_counter = this.factory.holder.attachMovie('Launcher_counter', 'Launcher_counter', this.factory.level.depth.getDepth('Launcher_counter'), {'_x': 291.35, '_y': 250.85}); this.Activation_btn = this.factory.holder.attachMovie('Activation_btn', 'Activation_btn', this.factory.level.depth.getDepth('Activation_btn'), {'_x': 296.85, '_y': 248.85}); this.Activation_btn.object = this.factory.level; this.Arrow = this.factory.holder.attachMovie('Arrow', 'Arrow', this.factory.level.depth.getDepth('Arrow'), {'_x': 305.85, '_y': 316.85}); this.addEvents(); }; v2.getParameters = function () { return [this.blueNum, this.redNum]; }; v2.removeTube = function (callTime, delay, level, callTimes) { trace('removeTube'); if (level == this.factory.level.game.levelNum && this.factory.holder && callTimes == this.factory.level.game.factoryCallTimes) { if (this.factory.level.clock.toSeconds() - callTime >= delay) { this.factory.endSequence(); } else { var v2 = this.factory.level.clock.toSeconds(); var v3 = delay - (v2 - callTime); utils.Delegate.callDelayed(this, this.removeTube, v3 * 1000, v2, v3, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } } }; v2.Test = function (callTime, delay, level, callTimes) { if (level == this.factory.level.game.levelNum && this.factory.holder && callTimes == this.factory.level.game.factoryCallTimes) { if (this.factory.level.clock.toSeconds() - callTime >= delay) { utils.Delegate.callDelayed(this, this.Test, 1000, this.factory.level.clock.toSeconds(), 1, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } else { var v2 = this.factory.level.clock.toSeconds(); var v3 = delay - (v2 - callTime); utils.Delegate.callDelayed(this, this.Test, v3 * 1000, v2, v3, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } } }; v2.losePoints = function () {}; v2.addEventsPopup = function () { this.factory.level.game.helpTips[21].clip.OK.holder = this; this.factory.level.game.helpTips[21].clip.OK.onPress = function () { var v2 = this.holder; this.holder.factory.level.game.helpTips[21].hidePopUp(); v2.factory.trackIsStoped = false; v2.factory.startBlinking = false; v2.factory.slotMachineBlinking(); }; }; v2.addEvents22 = function () { this.factory.level.game.helpTips[22].clip.OK.holder = this; this.factory.level.game.helpTips[22].clip.OK.onPress = function () { this.holder.factory.level.game.helpTips[22].hidePopUp(); }; }; v2.addEvents = function () { this.Activation_btn.btn.holder = this; this.Activation_btn.btn.onPress = function () { if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip) { if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].checkIfAvailable(55) == false) { return undefined; } } if (!this.holder.factory.level.pause) { if (this.holder.demaged == false) { if (this.holder.sackNum > 0) { if (this.holder.sackNum > 3) { if (this.holder.factory.quadrupletBarPercent < 100 && this.holder.factory.level.game.strongStork == 3) { this.holder.factory.quadrupletBarPercent += this.holder.sackNum * 21; var v2 = int((this.holder.factory.quadrupletBarPercent / 100) * 40); this.holder.factory.Quadruplets.polni.gotoAndStop(v2); if (this.holder.factory.quadrupletBarPercent >= 100 && this.holder.factory.quadrupletsFlag == false) { this.holder.factory.Quadruplets.gotoAndStop(2); this.holder.factory.target.sndCtrl.stopSound(this.holder.factory.soundsId.indicatorfull_snd); this.holder.factory.target.sndCtrl.playSound(this.holder.factory.soundsId.indicatorfull_snd); this.holder.factory.quadrupletsFlag = true; this.holder.factory.level.game.helpTips[26].showPopUp(); this.holder.factory.addEvents26(); } } if (this.holder.factory.quadrupletBarPercent >= 100) { this.holder.factory.ChackForNextPopup(); } } this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this._parent.gotoAndPlay(1); this.holder.factory.target.sndCtrl.stopSound(this.holder.soundsId.launcherdemaged_snd); v2 = 10 + (this.holder.sackNum - 1) * 20; if (this.holder.sackNum > 1) { this.holder.factory.level.pointsArray.push({'type': 6, 'points': this.holder.sackNum.toString()}); } this.holder.factory.level.changePoints(v2, this._parent._x, this._parent._y - 10); this.holder.launch(); this.holder.factory.UnselectObject(this.holder); if (this.holder.factory.clickArray.length == 0) { this.holder.factory.level.game.successAction = 0; } } } else { this.holder.repairTube(); } } }; this.Activation_btn.btn.onRollOver = function () { if (this.holder.demaged == true) { this.holder.factory.target.mousePointer.clip.gotoAndStop('repair'); } else { this.holder.factory.target.mousePointer.clip.gotoAndStop('finger'); } }; this.Activation_btn.btn.onRollOut = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.Activation_btn.btn.onReleaseOutside = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; }; ASSetPropFlags(mcs.Tube.prototype, null, 1); } #endinitclip } movieClip 9306 __Packages.mcs.Toybox { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Toybox) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; trace('this.factory.level.game.toyboxUpgrades ' + this.factory.level.game.toyboxUpgrades); this.upgrade = this.factory.level.game.toyboxUpgrades; this.toyNum = this.upgrade; trace('TOOOOOOOOOOOOOOOY this.toyNum ' + this.toyNum); this.hasStarNum = 0; this.shine = false; this.shined = false; this.animation = false; this.ID = 8; }; mcs.Toybox = v1; mcs.Toybox extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.Toybox implements _global.utils.IClipEvents; v2.attachToys = function () {}; v2.returnToy = function () {}; v2.attachToybox = function () { this.clip = this.factory.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.addEvents(); }; v2.removeToybox = function () {}; v2.EndAnimation = function () { this.animation = false; }; v2.onClickAction = function () { if (!this.factory.level.pause) { this.factory.cleanPrepare = false; if (this.factory.Stork.carring == this.factory.carryToy) { trace('STRKOT NOSI VO TOYBOX IGRACKA'); this.toyNum += 1; this.factory.UnselectObject(this); this.factory.UnselectObject(this.factory.Toys[0]); this.factory.Stork.removeStork(); this.factory.Stork.attachStork(); if (this.factory.Stork.Toy.linkID == 'toy1') { this.factory.Stork.clip._x = 478.5; this.factory.Stork.clip._y = 393.1; this.factory.Stork.clip.gotoAndStop('liftToy1'); } else { if (this.factory.Stork.Toy.linkID == 'toy2') { this.factory.Stork.clip._x = 478.5; this.factory.Stork.clip._y = 393.1; this.factory.Stork.clip.gotoAndStop('liftToy2'); } else { this.factory.Stork.clip._x = 478.9; this.factory.Stork.clip._y = 392.6; this.factory.Stork.clip.gotoAndStop('liftToy3'); } } utils.Delegate.callDelayed(this.factory.Stork.Toy, this.factory.Stork.Toy.attachToy, 300); this.factory.Stork.Toy.inToyBox = true; this.factory.Stork.carring = this.factory.carryNothing; this.factory.Stork.Toy = undefined; } else { if (this.factory.Stork.carring == this.factory.carryNothing && this.upgrade < 3 && this.toyNum > 0) { trace('STRKOT ZEMA IGRACKA OD TOYBOX'); this.toyNum -= 1; this.factory.Stork.removeStork(); this.factory.Stork.attachStork(); var v2 = 0; while (v2 <= this.factory.Toys.length) { if (this.factory.Toys[v2].inToyBox == true) { this.factory.Stork.Toy = this.factory.Toys[v2]; this.factory.UnselectObject(this.factory.Toys[v2]); break; } ++v2; } if (this.factory.Stork.Toy.linkID == 'toy1') { this.factory.Stork.clip._x = 478.5; this.factory.Stork.clip._y = 393.1; this.factory.Stork.clip.gotoAndStop('takeToy1'); } else { if (this.factory.Stork.Toy.linkID == 'toy2') { this.factory.Stork.clip._x = 478.5; this.factory.Stork.clip._y = 393.1; this.factory.Stork.clip.gotoAndStop('takeToy2'); } else { this.factory.Stork.clip._x = 478.9; this.factory.Stork.clip._y = 392.6; this.factory.Stork.clip.gotoAndStop('takeToy3'); } } this.factory.level.StorkCounter += 1; this.factory.level.StorkOldCounter = this.factory.level.StorkCounter; this.factory.Stork.Toy.removeToy(); this.factory.Stork.Toy.inToyBox = false; this.factory.Stork.carring = this.factory.carryToy; } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; } } utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400); } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClickAction'; if (this.factory.Stork.carring == this.factory.carryToy) { if (this.factory.Stork.Toy.linkID == 'toy1') { this.factory.Stork.clip._x = 478.5; this.factory.Stork.clip._y = 393.1; } else { if (this.factory.Stork.Toy.linkID == 'toy2') { this.factory.Stork.clip._x = 478.5; this.factory.Stork.clip._y = 393.1; } else { this.factory.Stork.clip._x = 478.9; this.factory.Stork.clip._y = 392.6; } } } else { if (this.factory.Stork.carring == this.factory.carryNothing && this.upgrade < 3 && this.toyNum > 0) { var v2 = 0; while (v2 <= this.factory.Toys.length) { if (this.factory.Toys[v2].inToyBox == true) { this.factory.Stork.Toy = this.factory.Toys[v2]; this.factory.UnselectObject(this.factory.Toys[v2]); break; } ++v2; } if (this.factory.Stork.Toy.linkID == 'toy1') { this.factory.Stork.clip._x = 478.5; this.factory.Stork.clip._y = 393.1; } else { if (this.factory.Stork.Toy.linkID == 'toy2') { this.factory.Stork.clip._x = 478.5; this.factory.Stork.clip._y = 393.1; } else { this.factory.Stork.clip._x = 478.9; this.factory.Stork.clip._y = 392.6; } } } } } }; v2.onClick = function () { if (!this.factory.level.pause) { this.factory.cleanPrepare = false; if (this.factory.Stork.carring == this.factory.carryToy) { this.factory.StorkGo(); } else { if (this.factory.Stork.carring == this.factory.carryNothing && this.upgrade < 3 && this.toyNum > 0) { this.factory.StorkGo(); } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400); } } } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClick'; } }; v2.addEvents = function () { this.clip.holder = this; this.clip.onPress = function () { if (this.holder.factory.level.game.levelNum == 1 && this.holder.factory.level.game.helpOnOff == true && this.holder.factory.babies.length == 1 && (this.holder.factory.babies[0].need != this.holder.factory.needToy || this.holder.factory.babies[0].hasToy == true || this.holder.factory.babies[0].hasBottle == true) || this.holder.factory.level.game.levelNum == 1 && this.holder.factory.level.game.helpOnOff == true && this.holder.factory.babies.length == 0) { return undefined; } if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip) { if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].checkIfAvailable(8) == false) { return undefined; } } trace('this.holder.factory.Stork.carring ' + this.holder.factory.Stork.carring); trace('this.holder.factory.carryToy ' + this.holder.factory.carryToy); trace('toybox pressed'); if (!this.holder.factory.level.pause) { if (this.holder.upgrade == 3 && this.holder.animation == false && this._currentframe == 1) { trace('upgrade 3'); this.holder.clip.gotoAndPlay(2); this.holder.animation = true; this.holder.factory.target.sndCtrl.stopSound(this.holder.factory.soundsId.jackbox_snd); this.holder.factory.target.sndCtrl.playSound(this.holder.factory.soundsId.jackbox_snd); utils.Delegate.callDelayed(this.holder, this.holder.EndAnimation, 400); var v3 = 0; while (v3 <= this.holder.factory.babies.length) { var v2 = this.holder.factory.babies[v3]; if (v2.need == this.holder.factory.needToy) { v2.changeNeed(); trace('CHANGE POINTS FOR JCK IN THE BOX ' + v3); this.holder.factory.level.changePoints(10, v2.bebeClip._x, v2.bebeClip._y - 70); } ++v3; } } else { trace('upgrade<3'); this.holder.factory.pushInClickArray(this.holder); this.holder.factory.level.game.helpTips[7].hidePopUp(); this.holder.factory.level.game.helpTips[8].showPopUp(); } } else { if (this.holder.factory.level.game.popUpPause && this.holder.factory.level.game.currentPopUp == 6 && this.holder.factory.Stork.carring == this.holder.factory.carryToy) { this.holder.factory.level.continueGame(); this.holder.factory.level.game.helpTips[6].hidePopUp(); this.holder.toyNum += 1; this.holder.factory.UnselectObject(this.holder); this.holder.factory.UnselectObject(this.holder.factory.Toys[0]); if (this.holder.factory.Stork.Toy.linkID == 'toy1') { this.holder.factory.Stork.clip._x = 478.5; this.holder.factory.Stork.clip._y = 393.1; this.holder.factory.Stork.clip.gotoAndStop('liftToy1'); } else { if (this.holder.factory.Stork.Toy.linkID == 'toy2') { this.holder.factory.Stork.clip._x = 478.5; this.holder.factory.Stork.clip._y = 393.1; this.holder.factory.Stork.clip.gotoAndStop('liftToy2'); } else { this.holder.factory.Stork.clip._x = 478.9; this.holder.factory.Stork.clip._y = 392.6; this.holder.factory.Stork.clip.gotoAndStop('liftToy3'); } } utils.Delegate.callDelayed(this.factory.Stork.Toy, this.factory.Stork.Toy.attachToy, 300); this.holder.factory.Stork.Toy.inToyBox = true; this.holder.factory.Stork.carring = this.holder.factory.carryNothing; this.holder.factory.Stork.Toy = undefined; } } }; this.clip.onRollOver = function () { if (this._currentframe == 1 && this.holder.upgrade == 3 || this.holder.upgrade < 3) { this.holder.factory.target.mousePointer.clip.gotoAndStop('finger'); } }; this.clip.onRollOut = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.onReleaseOutside = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; }; ASSetPropFlags(mcs.Toybox.prototype, null, 1); } #endinitclip } movieClip 9307 __Packages.mcs.Towel { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Towel) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; this.isDirty = true; this.hasStarNum = 0; this.shine = false; this.shined = false; this.hasBallNum = 0; this.ID = 6; }; mcs.Towel = v1; mcs.Towel extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.Towel implements _global.utils.IClipEvents; v2.takeTowel = function () { var v3 = true; var v2 = 0; while (v2 < this.factory.babiesInRoom) { trace('this.factory.babies[i].need2 ' + this.factory.babies[v2].need); trace('this.factory.babies[i].Toy ' + this.factory.babies[v2].Toy); trace('this.factory.babies[i].Bottle ' + this.factory.babies[v2].Bottle); if (this.factory.babies[v2].need == 4 && this.factory.babies[v2].Toy == undefined && this.factory.babies[v2].Bottle == undefined) { v3 = false; } ++v2; } if (v3 == true) { this.factory.SelectObject(this.factory.Trashcan); } }; v2.attachTowel = function () { this.clip = this.factory.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.isDirty = false; this.addEvents(); }; v2.removeTowel = function () { this.clip.removeMovieClip(); }; v2.onClickAction = function () { trace('onClickAction11111111111'); if (!this.factory.level.pause) { trace('onClickAction22222222222222222'); if (this.factory.Stork.carring == this.factory.carryNothing) { this.isDirty = false; this.factory.UnselectObject(this); this.clip.gotoAndStop(2); utils.Delegate.callDelayed(this, this.changeClip, 1000); this.factory.Stork.removeStork(); this.factory.Stork.attachStork(); this.factory.Stork.Towel = this; this.factory.Stork.Towel.isDirty = false; this.factory.Stork.clip._x = 223.5; this.factory.Stork.clip._y = 404.1; this.factory.Stork.carring = this.factory.carryTowel; this.factory.Stork.clip.gotoAndStop('take'); this.factory.level.StorkCounter += 1; this.factory.level.StorkOldCounter = this.factory.level.StorkCounter; this.takeTowel(); } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; } utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400); } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClickAction'; this.factory.Stork.clip._x = 223.5; this.factory.Stork.clip._y = 404.1; } }; v2.onClick = function () { trace('onClick111111111111'); if (!this.factory.level.pause) { trace('onClick2222222222222'); if (this.factory.Stork.carring == this.factory.carryNothing) { this.factory.StorkGo(); } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400); } } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClick'; } }; v2.changeClip = function () { this.clip.gotoAndStop(1); }; v2.addEvents = function () { this.clip.holder = this; this.clip.onPress = function () { if (this.holder.factory.level.game.levelNum == 1 && this.holder.factory.level.game.helpOnOff == true && this.holder.factory.babies.length == 1 && (this.holder.factory.babies[0].need != this.holder.factory.vomited || this.holder.factory.babies[0].hasToy == true || this.holder.factory.babies[0].hasBottle == true) || this.holder.factory.level.game.levelNum == 1 && this.holder.factory.level.game.helpOnOff == true && this.holder.factory.babies.length == 0) { return undefined; } if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip) { if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].checkIfAvailable(6) == false) { return undefined; } } trace('on press towel ' + this.holder.factory.level.game.cleaningStork); if (this.holder.factory.level.game.cleaningStork == 1) { if (!this.holder.factory.level.pause) { if (this.holder.factory.CleaningStork.sleep == false && this.holder.factory.CleaningStork.hasTowel == false || this.holder.factory.CleaningStork.sleep == false && this.holder.factory.CleaningStork.hasTowel == true && this.holder.factory.CleaningStork.Towel.isDirty == true) { this.holder.factory.pushInClickArray1(this.holder.factory.CleaningStork); this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); } } } if (this.holder.factory.level.game.cleaningStork == 0) { this.holder.factory.level.game.helpTips[13].hidePopUp(); this.holder.factory.level.game.helpTips[14].showPopUp(); if (!this.holder.factory.level.pause) { this.holder.factory.pushInClickArray(this.holder); this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); } else { if (this.holder.factory.level.game.popUpPause) { if (this.holder.factory.Stork.carring == this.holder.factory.carryNothing && this.holder.factory.level.game.currentPopUp == 7) { this.holder.factory.level.continueGame(); this.holder.factory.level.game.helpTips[7].hidePopUp(); this.holder.isDirty = false; this.holder.factory.UnselectObject(this.holder); this.holder.factory.Stork.Towel = this.holder; this.factory.Stork.clip._x = 223.5; this.factory.Stork.clip._y = 404.1; this.holder.factory.Stork.carring = this.holder.factory.carryTowel; this.holder.factory.Stork.clip.gotoAndPlay('take'); this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); } } } } }; this.clip.onRollOver = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('finger'); }; this.clip.onRollOut = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.onReleaseOutside = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; }; ASSetPropFlags(mcs.Towel.prototype, null, 1); } #endinitclip } movieClip 9308 __Packages.mcs.Trashcan { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Trashcan) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; this.hasStarNum = 0; this.shine = false; this.hasBallNum = 0; this.ID = 9; }; mcs.Trashcan = v1; mcs.Trashcan extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.Trashcan implements _global.utils.IClipEvents; v2.emptyTrashcan = function () {}; v2.throwTrash = function () {}; v2.attachTrashcan = function () { this.clip = this.factory.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.Front = this.factory.holder.attachMovie('trash_front', 'trash_front', this.depth + 10, {'_x': 12.7, '_y': 532.4}); this.addEvents(); }; v2.removeTrashcan = function () { this.clip.removeMovieClip(); }; v2.onClickAction = function () { trace('onClickAction111111111111Trashcan'); if (!this.factory.level.pause) { trace('onClickAction2222222222222Trashcan'); if (this.factory.Stork.carring == this.factory.carryTowel) { if (this.factory.Stork.Towel.isDirty == false) { this.factory.level.changePoints(-10, this.clip._x + 50, this.clip._y); } this.factory.UnselectObject(this); this.factory.Stork.clip._x = 0.5; this.factory.Stork.clip._y = 399.4; var v2 = this.clip.getDepth() + 3; this.factory.Stork.clip.swapDepths(v2); this.factory.Stork.carring = this.factory.carryNothing; this.factory.Stork.clip.gotoAndStop('drop'); this.factory.level.StorkCounter += 1; this.factory.level.StorkOldCounter = this.factory.level.StorkCounter; } else { if (this.factory.Stork.carring == this.factory.carryBottle) { if (this.factory.Stork.Bottle.empty == false) { this.factory.level.changePoints(-10, this.clip._x + 50, this.clip._y); } this.factory.UnselectObject(this); this.factory.Stork.clip._x = 0.5; this.factory.Stork.clip._y = 402.6; this.factory.Stork.carring = this.factory.carryNothing; this.factory.Stork.clip.gotoAndStop('drop_bottle'); this.factory.level.StorkCounter += 1; this.factory.level.StorkOldCounter = this.factory.level.StorkCounter; } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; } } utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400); } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClickAction'; if (this.factory.Stork.carring == this.factory.carryTowel) { this.factory.Stork.clip._x = 0.5; this.factory.Stork.clip._y = 399.4; var v2 = this.clip.getDepth() + 3; this.factory.Stork.clip.swapDepths(v2); } else { if (this.factory.Stork.carring == this.factory.carryBottle) { this.factory.Stork.clip._x = 0.5; this.factory.Stork.clip._y = 402.6; var v2 = this.clip.getDepth() + 3; this.factory.Stork.clip.swapDepths(v2); } } } }; v2.onClick = function () { trace('onClick11111111Trashcan'); if (!this.factory.level.pause) { trace('onClick22222222222Trashcan'); if (this.factory.Stork.carring == this.factory.carryTowel) { this.factory.StorkGo(); } else { if (this.factory.Stork.carring == this.factory.carryBottle) { this.factory.StorkGo(); } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400, this.factory.level.clock.toSeconds(), 0.4); } } } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClick'; } }; v2.addEvents = function () { this.Front.holder = this; this.Front.onPress = function () { if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip) { if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].checkIfAvailable(9) == false) { return undefined; } } this.holder.factory.level.game.helpTips[15].hidePopUp(); this.holder.factory.level.game.helpTips[16].showPopUp(); if (!this.holder.factory.level.pause) { this.holder.factory.pushInClickArray(this.holder); this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); } else { if (this.holder.factory.level.game.popUpPause && this.holder.factory.level.game.currentPopUp == 7 && this.holder.factory.Stork.carring == this.holder.factory.carryTowel) { this.holder.factory.level.continueGame(); this.holder.factory.level.game.helpTips[7].hidePopUp(); this.holder.factory.UnselectObject(this.holder); this.holder.factory.Stork.clip._x = 0.5; this.holder.factory.Stork.clip._y = 399.4; this.holder.factory.Stork.carring = this.holder.factory.carryNothing; this.holder.factory.Stork.clip.gotoAndStop('drop'); this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); utils.Delegate.callDelayed(this.holder.factory, this.holder.factory.Animation, 400, this.holder.factory.level.clock.toSeconds(), 0.4); } else { if (this.holder.factory.level.game.popUpPause && this.holder.factory.level.game.currentPopUp == 7 && this.holder.factory.Stork.carring == this.holder.factory.carryBottle) { this.holder.factory.level.continueGame(); this.holder.factory.level.game.helpTips[7].hidePopUp(); this.holder.factory.UnselectObject(this.holder); this.holder.factory.Stork.clip._x = 0.5; this.holder.factory.Stork.clip._y = 402.6; this.holder.factory.Stork.carring = this.holder.factory.carryNothing; this.holder.factory.Stork.clip.gotoAndStop('drop_bottle'); this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); utils.Delegate.callDelayed(this.holder.factory, this.holder.factory.Animation, 400, this.holder.factory.level.clock.toSeconds(), 0.4); } } } }; this.Front.onRollOver = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('finger'); }; this.Front.onRollOut = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.Front.onReleaseOutside = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; }; ASSetPropFlags(mcs.Trashcan.prototype, null, 1); } #endinitclip } movieClip 9309 __Packages.mcs.EscapeSwitch { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.EscapeSwitch) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; clearInterval(this.intID); }; mcs.EscapeSwitch = v1; mcs.EscapeSwitch extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.EscapeSwitch implements _global.utils.IClipEvents; v2.stopTrack = function () { this.factory.Track.stopMovingTrack(); }; v2.attachEscapeSwitch = function () { this.clip = this.factory.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.clip.factory = this.factory; var v2 = flash.display.BitmapData.loadBitmap('ecsswitchshadow'); this.factory.factoryBitmapData.copyPixels(v2, v2.rectangle, new flash.geom.Point(96.59999999999999, 466.8), undefined, undefined, true); this.addEvents(); }; v2.removeEscapeSwitch = function () { this.clip.removeMovieClip(); }; v2.raiseUp = function () { trace('raiseUp'); if (this.clip._currentframe >= 4) { clearInterval(this.intID); this.intID = setInterval(this, 'handleUp', 1000); } }; v2.handleUp = function () { if (!this.factory.level.pause) { if (this.clip._currentframe >= 4) { if (this.clip._currentframe == this.clip._totalframes) { this.clip.gotoAndStop(1); clearInterval(this.intID); this.factory.target.sndCtrl.stopSound(this.factory.soundsId.escapeswitchup_snd); this.factory.target.sndCtrl.stopSound(this.factory.soundsId.escapeswitchok_snd); this.factory.target.sndCtrl.playSound(this.factory.soundsId.escapeswitchok_snd); } else { this.clip.gotoAndStop(this.clip._currentframe + 1); this.factory.target.sndCtrl.stopSound(this.factory.soundsId.escapeswitchup_snd); this.factory.target.sndCtrl.playSound(this.factory.soundsId.escapeswitchup_snd); } } } trace('handleUp ' + this.factory.holder); if (this.factory.holder == undefined) { clearInterval(this.intID); } }; v2.StartMovingTrack = function () { if (this.factory.level.halt == false && this.factory.level.pause == false) { this.factory.Track.moveTrack(); } }; v2.addEvents = function () { this.clip.holder_ = this; this.clip.onPress = function () { if (!this.holder_.factory.level.pause) { if (this.holder_.factory.trackIsMoving == true) { if (this._currentframe == 1) { this.holder_.factory.target.sndCtrl.stopSound(this.holder_.factory.soundsId.handleclick_snd); this.holder_.factory.target.sndCtrl.playSound(this.holder_.factory.soundsId.handleclick_snd); this.holder_.factory.trackIsStoped = true; this.holder_.stopTrack(); utils.Delegate.callDelayed(this.holder_, this.holder_.StartMovingTrack, 12000); this.holder_.factory.trackIsMoving == true; this.holder_.factory.stopedFromEsc = true; this.gotoAndPlay(1); } } } }; this.clip.onRollOver = function () { this.holder_.factory.target.mousePointer.clip.gotoAndStop('finger'); }; this.clip.onRollOut = function () { this.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.onReleaseOutside = function () { this.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); }; }; ASSetPropFlags(mcs.EscapeSwitch.prototype, null, 1); } #endinitclip } movieClip 9310 __Packages.mcs.Stork { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Stork) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; this.carring = 0; this.hasSack = false; this.pressed = false; this.sleep = false; this.right = false; this.left = false; this.weakingUp = false; this.hasBallNum = 0; this.ID = 32; this.hasTowel = false; this.sounds = new Array(); this.stand = true; this.sounds = [['disenje_snd', 33, false], ['storkclean_snd', 100, false], ['storkstartsleep_snd', 100, false], ['storksleep_snd', 100, false], ['takeBabyUp_snd', 100, false], ['takeBabyUp_snd', 100, false]]; this.soundsId = new Array(); this.attachSounds(); }; mcs.Stork = v1; mcs.Stork extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.Stork implements _global.utils.IClipEvents; v2.attachSounds = function () { trace('STORK attachSounds'); var v2 = 0; while (v2 < this.sounds.length) { var v3 = this.factory.level.game.soundClip.createEmptyMovieClip(utils.StringUtils.getUniqueName(), this.factory.level.game.soundClip.getNextHighestDepth()); var v4 = new utils.SoundImpl(v3); v4.attachSoundImpl(this.sounds[v2][0], this.sounds[v2][1], this.sounds[v2][2]); this.soundsId[this.sounds[v2][0]] = this.factory.level.game.sndCtrl.addSound(this.sounds[v2][0], v3, this.sounds[v2][1], this.sounds[v2][2]); if (this.sounds[v2][2]) { this.factory.level.game.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.factory.level.game.sndCtrl.getMusicVolume()); } else { this.factory.level.game.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.factory.level.game.sndCtrl.getSoundFXVolume()); } ++v2; } }; v2.playAnimation = function (id) {}; v2.cleaningStork = function (baby) { this.GotoAndStop('clean'); this.factory.target.sndCtrl.stopSound(this.soundsId.storkclean_snd); this.factory.target.sndCtrl.playSound(this.soundsId.storkclean_snd); this.Towel.isDirty = true; this.factory.level.CleaningStorkCounter += 1; this.factory.level.CleaningStorkOldCounter = this.factory.level.CleaningStorkCounter; baby.clip.cloud._visible = false; if (baby.angry == true) { } else { this.factory.level.changePoints(10, baby.bebeClip._x + 10, baby.bebeClip._y - 20); } utils.Delegate.callDelayed(this, this.shiftBallArray, 1300, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); baby.angry = false; baby.moodFlag = false; this.factory.comboCheck(baby.need); this.factory.combo1Check(baby); utils.Delegate.callDelayed(baby, baby.changeNeed, 1100, this.factory.level.clock.toSeconds(), 1.3); utils.Delegate.callDelayed(this, this.trowTowel, 1300); }; v2.cleaningStork2 = function (baby) { trace('cleaningStork2()'); this.GotoAndStop('clean'); this.Towel.isDirty = true; this.factory.target.sndCtrl.stopSound(this.soundsId.storkclean_snd); this.factory.target.sndCtrl.playSound(this.soundsId.storkclean_snd); this.factory.level.CleaningStorkCounter += 1; this.factory.level.CleaningStorkOldCounter = this.factory.level.CleaningStorkCounter; baby.clip.cloud._visible = false; if (baby.angry == true) { } else { this.factory.level.changePoints(10, baby.bebeClip._x + 10, baby.bebeClip._y - 20); } utils.Delegate.callDelayed(this, this.shiftBallArray, 1300, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); baby.angry = false; baby.moodFlag = false; this.factory.comboCheck(baby.need); this.factory.combo1Check(baby); utils.Delegate.callDelayed(baby, baby.changeNeed, 1100, this.factory.level.clock.toSeconds(), 1.3); utils.Delegate.callDelayed(this, this.trowTowel, 1300); }; v2.trowTowel = function () { trace('trowTowel()'); if (this.sleep == false) { trace('drop'); utils.Delegate.callDelayed(this, this.shiftBallArray, 400, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); this.storkClip.swapDepths(this.depth); this.storkClip._x = 0.5; this.storkClip._y = 399.4; this.GotoAndStop('drop'); this.factory.level.CleaningStorkCounter += 1; this.factory.level.CleaningStorkOldCounter = this.factory.level.CleaningStorkCounter; this.factory.level.game.successAction += 1; this.hasTowel = false; utils.Delegate.callDelayed(this, this.setCoord2, 1005); utils.Delegate.callDelayed(this.factory, this.factory.Animation1, 400); } else { trace('spliceClickArray1 7'); this.factory.spliceClickArray1(); this.factory.animation1 = false; } }; v2.target = function () {}; v2.setHelper = function (h) {}; v2.removeHelper = function () {}; v2.fallSleep = function () { trace('this.factory.animation1 ' + this.factory.animation1); trace('this.hasTowel ' + this.hasTowel); trace('FALL SLEEP'); if (this.sleep == false) { if (this.factory.animation1 == false) { if (this.factory.level.game.helpTips[27].shown == false) { this.factory.level.game.helpTips[27].showPopUp(); this.addEvents27(); } else { this.sleep = true; this.GotoAndStop('sleep'); this.clip.strkRef = this; this.factory.target.sndCtrl.stopSound(this.soundsId.storkstartsleep_snd); this.factory.target.sndCtrl.playSound(this.soundsId.storkstartsleep_snd); this.factory.sleepDelay = (50 - this.factory.level.game.levelNum + random(10)) * 1000; this.factory.level.sleepingTimer = getTimer(); this.factory.storkTimeToSleep = false; } } else { utils.Delegate.callDelayed(this, this.fallSleep, 3500); } } }; v2.addEvents27 = function () { this.factory.level.game.helpTips[27].clip.OK.holder = this; this.factory.level.game.helpTips[27].clip.OK.onPress = function () { this.holder.fallSleep(); this.holder.factory.level.game.helpTips[27].hidePopUp(); }; }; v2.attachStork = function () { trace('attachStork'); if (this.linkID == 'stork_f') { this.clip = this.factory.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.clip.level = this.factory; this.clip.gotoAndStop('stand'); } else { trace('zakacuvam cleaning stork'); this.storkClip = this.factory.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); if (this.sleep == false) { this.GotoAndStop('dise'); } else { this.GotoAndStop('sleep'); trace('spie'); } } this.clip.object = this; utils.Delegate.callDelayed(this, this.addEvents, 300); }; v2.setCoord2 = function () { this.storkClip._x = this.x; this.storkClip._y = this.y; if (this.sleep == false) { this.GotoAndStop('dise'); } else { this.GotoAndStop('sleep'); trace('spie'); } this.clip.object = this; utils.Delegate.callDelayed(this, this.addEvents, 300); }; v2.removeStork = function () { if (this.linkID == 'stork_f') { this.clip.removeMovieClip(); } else { this.storkClip.removeMovieClip(); } }; v2.takeTowel = function () { trace('takeTowel()'); trace('this.sleep ' + this.sleep); if (this.sleep == false) { trace('take'); this.storkClip._x = 223.5; this.storkClip._y = 404.1; this.GotoAndStop('take'); this.factory.level.CleaningStorkCounter += 1; this.factory.level.CleaningStorkOldCounter = this.factory.level.CleaningStorkCounter; this.hasTowel = true; this.Towel = this.factory.Towel; this.Towel.isDirty = false; this.factory.cleanPrepare = true; this.factory.level.game.successAction += 1; utils.Delegate.callDelayed(this, this.shiftBallArray, 400, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); utils.Delegate.callDelayed(this.factory, this.factory.Animation1, 400); } else { trace('spliceClickArray1 4'); this.factory.spliceClickArray1(); this.factory.animation1 = false; } }; v2.takeTowel2 = function (baby) { if (this.sleep == false) { this.storkClip._x = 223.5; this.storkClip._y = 404.1; this.GotoAndStop('take'); this.factory.level.CleaningStorkCounter += 1; this.factory.level.CleaningStorkOldCounter = this.factory.level.CleaningStorkCounter; this.Towel = this.factory.Towel; this.Towel.isDirty = false; this.factory.level.game.successAction += 1; utils.Delegate.callDelayed(this, this.shiftBallArray, 400, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); utils.Delegate.callDelayed(this, this.cleanBaby, 400, baby, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } else { trace('spliceClickArray1 5'); this.factory.spliceClickArray1(); this.factory.animation1 = false; } }; v2.cleanBaby = function (baby, level, callTimes) { if (level == this.factory.level.game.levelNum && this.factory.holder && callTimes == this.factory.level.game.factoryCallTimes) { var v3 = baby.bebeClip.getDepth() + 3; this.storkClip.swapDepths(v3); this.storkClip._x = baby.bebeClip._x - 30; this.storkClip._y = 367.4; this.cleaningStork2(baby); } }; v2.onClick1 = function () { if (!this.factory.level.pause) { if (this.hasTowel == false) { trace('!!!!!!!!!!!!!!!!!!!!!!!!!!!!this.factory.animation1 ' + this.factory.animation1); this.takeTowel(); } else { this.factory.animation1 = false; } } else { trace('spliceClickArray1 6'); this.factory.spliceClickArray1(); this.factory.animation1 = false; } }; v2.shiftBallArray = function (level, callTimes) { if (level == this.factory.level.game.levelNum && this.factory.holder && callTimes == this.factory.level.game.factoryCallTimes) { var v3 = this.factory.ballArray.shift(); v3.removeMovieClip(); var v2 = 0; while (v2 < this.factory.ballArray.length) { this.factory.ballArray[v2].ballNum.text = (v2 + 1).toString(); ++v2; } } }; v2.StorkAweak = function () { if (this.hasTowel == false) { this.GotoAndStop('dise'); } else { this.GotoAndStop('dise_Towel'); } }; v2.addEvents = function () { trace('^^^^^^^ this.clip.strk.strkArea1 ' + this.clip.strk.strkArea1); this.clip.strkArea1.holder = this; this.clip.strkArea1.onPress = function () { trace('this.holder.factory.level.game.helpTips[27].PriorityObject[0] ' + this.holder.factory.level.game.helpTips[27].PriorityObject[0]); trace('this.holder.factory.level.game.helpTips[27].PriorityObject[1] ' + this.holder.factory.level.game.helpTips[27].PriorityObject[1]); trace('this.holder.factory.level.game.helpTips[27].PriorityObject[2] ' + this.holder.factory.level.game.helpTips[27].PriorityObject[2]); trace('this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip ' + this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip); trace('this.holder.factory.level.game.currentPopUp ' + this.holder.factory.level.game.currentPopUp); var v2 = this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].checkIfAvailable(32); trace('a ' + v2); if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip) { if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].checkIfAvailable(32) == false) { return undefined; } } trace('pritisnat e shtrk'); if (this.holder.upgrade == 1) { this.holder.pressed = true; if (this.holder.sleep == false) { if (this.holder.hasTowel == false) { this.holder.factory.pushInClickArray1(this.holder); } } else { this.holder.factory.level.game.helpTips[27].hidePopUp(); this.holder.sleep = false; this.holder.pressed = false; var v3 = {'x': _xmouse, 'y': _ymouse}; this.holder.storkClip.globalToLocal(v3); this.holder.storkClip.attachMovie('truba', 'truba', 1001, {'_x': 106, '_y': 33}); this.holder.factory.target.sndCtrl.stopSound(this.holder.soundsId.storkstartsleep_snd); this.holder.factory.target.sndCtrl.stopSound(this.holder.factory.soundsId.honk_snd); this.holder.factory.target.sndCtrl.playSound(this.holder.factory.soundsId.honk_snd); this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); this.holder.GotoAndStop('weakUp'); } } else { if (this.holder.upgrade == 2) { if (this.holder.sleep == true) { this.holder.factory.level.game.helpTips[27].hidePopUp(); this.holder.sleep = false; this.holder.pressed = false; var v3 = {'x': _xmouse, 'y': _ymouse}; this.holder.storkClip.globalToLocal(v3); this.holder.storkClip.attachMovie('truba', 'truba', 1001, {'_x': 106, '_y': 33}); this.holder.factory.target.sndCtrl.stopSound(this.holder.soundsId.storkstartsleep_snd); this.holder.factory.target.sndCtrl.stopSound(this.holder.factory.soundsId.honk_snd); this.holder.factory.target.sndCtrl.playSound(this.holder.factory.soundsId.honk_snd); this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); this.holder.GotoAndStop('weakUp'); } } } }; this.clip.strkArea2.holder = this; this.clip.strkArea2.onPress = function () { trace('this.holder.factory.level.game.helpTips[27].PriorityObject[0] ' + this.holder.factory.level.game.helpTips[27].PriorityObject[0]); trace('this.holder.factory.level.game.helpTips[27].PriorityObject[1] ' + this.holder.factory.level.game.helpTips[27].PriorityObject[1]); trace('this.holder.factory.level.game.helpTips[27].PriorityObject[2] ' + this.holder.factory.level.game.helpTips[27].PriorityObject[2]); trace('this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip ' + this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip); trace('this.holder.factory.level.game.currentPopUp ' + this.holder.factory.level.game.currentPopUp); var v2 = this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].checkIfAvailable(32); trace('a ' + v2); if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip) { if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].checkIfAvailable(32) == false) { return undefined; } } trace('pritisnat e shtrk'); if (this.holder.upgrade == 1) { this.holder.pressed = true; if (this.holder.sleep == false) { if (this.holder.hasTowel == false) { this.holder.factory.pushInClickArray1(this.holder); } } else { this.holder.factory.level.game.helpTips[27].hidePopUp(); this.holder.sleep = false; this.holder.pressed = false; var v3 = {'x': _xmouse, 'y': _ymouse}; this.holder.storkClip.globalToLocal(v3); this.holder.storkClip.attachMovie('truba', 'truba', 1001, {'_x': 106, '_y': 33}); this.holder.factory.target.sndCtrl.stopSound(this.holder.soundsId.storkstartsleep_snd); this.holder.factory.target.sndCtrl.stopSound(this.holder.factory.soundsId.honk_snd); this.holder.factory.target.sndCtrl.playSound(this.holder.factory.soundsId.honk_snd); this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); this.holder.GotoAndStop('weakUp'); } } else { if (this.holder.upgrade == 2) { if (this.holder.sleep == true) { this.holder.factory.level.game.helpTips[27].hidePopUp(); this.holder.sleep = false; this.holder.pressed = false; var v3 = {'x': _xmouse, 'y': _ymouse}; this.holder.storkClip.globalToLocal(v3); this.holder.storkClip.attachMovie('truba', 'truba', 1001, {'_x': 106, '_y': 33}); this.holder.factory.target.sndCtrl.stopSound(this.holder.soundsId.storkstartsleep_snd); this.holder.factory.target.sndCtrl.stopSound(this.holder.factory.soundsId.honk_snd); this.holder.factory.target.sndCtrl.playSound(this.holder.factory.soundsId.honk_snd); this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); this.holder.GotoAndStop('weakUp'); } } } }; this.clip.strkArea3.holder = this; this.clip.strkArea3.onPress = function () { trace('this.holder.factory.level.game.helpTips[27].PriorityObject[0] ' + this.holder.factory.level.game.helpTips[27].PriorityObject[0]); trace('this.holder.factory.level.game.helpTips[27].PriorityObject[1] ' + this.holder.factory.level.game.helpTips[27].PriorityObject[1]); trace('this.holder.factory.level.game.helpTips[27].PriorityObject[2] ' + this.holder.factory.level.game.helpTips[27].PriorityObject[2]); trace('this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip ' + this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip); trace('this.holder.factory.level.game.currentPopUp ' + this.holder.factory.level.game.currentPopUp); var v2 = this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].checkIfAvailable(32); trace('a ' + v2); if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip) { if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].checkIfAvailable(32) == false) { return undefined; } } trace('pritisnat e shtrk'); if (this.holder.upgrade == 1) { this.holder.pressed = true; if (this.holder.sleep == false) { if (this.holder.hasTowel == false) { this.holder.factory.pushInClickArray1(this.holder); } } else { this.holder.factory.level.game.helpTips[27].hidePopUp(); this.holder.sleep = false; this.holder.pressed = false; var v3 = {'x': _xmouse, 'y': _ymouse}; this.holder.storkClip.globalToLocal(v3); this.holder.storkClip.attachMovie('truba', 'truba', 1001, {'_x': 106, '_y': 33}); this.holder.factory.target.sndCtrl.stopSound(this.holder.soundsId.storkstartsleep_snd); this.holder.factory.target.sndCtrl.stopSound(this.holder.factory.soundsId.honk_snd); this.holder.factory.target.sndCtrl.playSound(this.holder.factory.soundsId.honk_snd); this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); this.holder.GotoAndStop('weakUp'); } } else { if (this.holder.upgrade == 2) { if (this.holder.sleep == true) { this.holder.factory.level.game.helpTips[27].hidePopUp(); this.holder.sleep = false; this.holder.pressed = false; var v3 = {'x': _xmouse, 'y': _ymouse}; this.holder.storkClip.globalToLocal(v3); this.holder.storkClip.attachMovie('truba', 'truba', 1001, {'_x': 106, '_y': 33}); this.holder.factory.target.sndCtrl.stopSound(this.holder.soundsId.storkstartsleep_snd); this.holder.factory.target.sndCtrl.stopSound(this.holder.factory.soundsId.honk_snd); this.holder.factory.target.sndCtrl.playSound(this.holder.factory.soundsId.honk_snd); this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); this.holder.GotoAndStop('weakUp'); } } } }; this.clip.strkArea1.onRollOver = function () { if (this.holder.sleep == false) { this.holder.factory.target.mousePointer.clip.gotoAndStop('finger'); } else { trace('on rollOver111 truba ' + this.holder.sleep); this.holder.factory.target.mousePointer.clip.gotoAndStop('wakeUp'); } }; this.clip.strkArea1.onRollOut = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.strkArea1.onReleaseOutside = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.strkArea2.onRollOver = function () { if (this.holder.sleep == false) { this.holder.factory.target.mousePointer.clip.gotoAndStop('finger'); } else { trace('on rollOver222 truba ' + this.holder.sleep); this.holder.factory.target.mousePointer.clip.gotoAndStop('wakeUp'); } }; this.clip.strkArea2.onRollOut = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.strkArea2.onReleaseOutside = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.strkArea3.onRollOver = function () { if (this.holder.sleep == false) { this.holder.factory.target.mousePointer.clip.gotoAndStop('finger'); } else { trace('on rollOver333 truba ' + this.holder.sleep); this.holder.factory.target.mousePointer.clip.gotoAndStop('wakeUp'); } }; this.clip.strkArea3.onRollOut = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.strkArea3.onReleaseOutside = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; }; v2.FindNextAction = function () { trace('FindNextAction()'); if (this.carring == 0) { this.factory.FindBabyAction(); } else { this.PointStorkNextAction(); } }; v2.GotoAndStop = function (where) { if (this.upgrade == 1) { var v3 = 'cs1'; } else { var v3 = 'cs2'; } var v2 = v3 + where.toString(); this.clip = this.storkClip.attachMovie(v2, v2, 5, {'_x': 0, '_y': 0}); this.clip.object = this; this.clip.factory = this.factory; this.addEvents(); }; v2.PointStorkNextAction = function () { trace('PointStorkNextAction()'); if (this.carring == 1 && this.clip._x == 694 && this.clip._y == 416 && this.clip._visible == true) { trace('this.carring == 1'); var v2 = 0; while (v2 <= this.factory.babies.length) { var v3 = false; if (this.factory.babies[v2].need == 3 && this.factory.babies[v2].hasToy == false) { this.factory.PointObject(this.factory.babies[v2], this.factory.babies[v2]); this.factory.level.PointedObject = this.factory.babies[v2]; this.factory.ClipClick = this.factory.holder.attachMovie('babyCloud', 'babyCloud', 987753, {'_x': 647, '_y': 503.6}); this.factory.ClipClick.cloud.gotoAndStop(this.factory.babies[v2].index); this.factory.ClipClick.gotoAndPlay(this.clip.strk._currentframe); v3 = true; trace('bebe1'); break; } ++v2; } if (v3 == false) { trace('toybox'); this.factory.PointObject(this.factory.ToyBox); this.factory.level.PointedObject = this.factory.ToyBox; this.clip.strk.sise.gotoAndStop(2); this.factory.ClipClick = this.factory.holder.attachMovie('toyboxCloud', 'toyboxCloud', 987753, {'_x': 647, '_y': 503.6}); this.factory.ClipClick.cloud.gotoAndStop(this.factory.level.game.toyboxUpgrades); this.factory.ClipClick.gotoAndPlay(this.clip.strk._currentframe); } } else { if (this.carring == 2 && this.clip._x == 694 && this.clip._y == 416 && this.clip._visible == true) { trace('this.carring == 2'); if (this.Towel.isDirty == true) { this.factory.PointObject(this.factory.Trashcan); this.factory.level.PointedObject = this.factory.Trashcan; this.clip.strk.sise.gotoAndStop(2); this.factory.ClipClick = this.factory.holder.attachMovie('trashcanCloud', 'trashcanCloud', 987753, {'_x': 647, '_y': 503.6}); this.factory.ClipClick.gotoAndPlay(this.clip.strk._currentframe); } else { var v2 = 0; while (v2 <= this.factory.babies.length) { var v3 = false; if (this.factory.babies[v2].need == 4) { this.factory.PointObject(this.factory.babies[v2], this.factory.babies[v2]); this.factory.level.PointedObject = this.factory.babies[v2]; this.factory.ClipClick = this.factory.holder.attachMovie('babyCloud', 'babyCloud', 987753, {'_x': 647, '_y': 503.6}); this.factory.ClipClick.cloud.gotoAndStop(this.factory.babies[v2].index); this.factory.ClipClick.gotoAndPlay(this.clip.strk._currentframe); v3 = true; trace('bebe2'); break; } ++v2; } if (v3 == false) { trace('kanta'); this.factory.PointObject(this.factory.Trashcan); this.factory.level.PointedObject = this.factory.Trashcan; this.clip.strk.sise.gotoAndStop(2); this.factory.ClipClick = this.factory.holder.attachMovie('trashcanCloud', 'trashcanCloud', 987753, {'_x': 647, '_y': 503.6}); this.factory.ClipClick.gotoAndPlay(this.clip.strk._currentframe); } } } else { if (this.carring == 3 && this.clip._x == 694 && this.clip._y == 416 && this.clip._visible == true) { trace('this.carring == 3'); var v2 = 0; while (v2 <= this.factory.babies.length) { var v3 = false; if (this.factory.babies[v2].need == 5 && this.factory.babies[v2].hasBottle == false) { this.factory.PointObject(this.factory.babies[v2], this.factory.babies[v2]); this.factory.level.PointedObject = this.factory.babies[v2]; this.factory.ClipClick = this.factory.holder.attachMovie('babyCloud', 'babyCloud', 987753, {'_x': 647, '_y': 503.6}); this.factory.ClipClick.cloud.gotoAndStop(this.factory.babies[v2].index); this.factory.ClipClick.gotoAndPlay(this.clip.strk._currentframe); v3 = true; trace('bebe3'); break; } ++v2; } if (v3 == false) { trace('kanta'); this.factory.PointObject(this.factory.Trashcan); this.factory.level.PointedObject = this.factory.Trashcan; this.clip.strk.sise.gotoAndStop(2); this.factory.ClipClick = this.factory.holder.attachMovie('trashcanCloud', 'trashcanCloud', 987753, {'_x': 647, '_y': 503.6}); this.factory.ClipClick.gotoAndPlay(this.clip.strk._currentframe); } } else { if (this.factory.level.succesesClickFlag == false) { trace('reset'); this.factory.level.PointedObject = undefined; this.factory.level.succesesClick = getTimer(); this.factory.level.storkCarringFlag = true; this.factory.level.succesesClickFlag = true; } } } } }; ASSetPropFlags(mcs.Stork.prototype, null, 1); } #endinitclip } movieClip 9311 __Packages.mcs.FoodMaker { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.FoodMaker) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; this.hasBottle = false; this.numBottle = 0; this.bottleDepth = this.depth + 1; this.working = false; this.hasStarNum = 0; this.demaged = false; this.shine = false; this.shined = false; this.ID = 5; }; mcs.FoodMaker = v1; mcs.FoodMaker extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.FoodMaker implements _global.utils.IClipEvents; v2.playAnimation = function () { this.factory.target.sndCtrl.stopSound(this.factory.soundsId.foodmakerCook_snd); this.factory.target.sndCtrl.playSound(this.factory.soundsId.foodmakerCook_snd, 32000); this.clip.foodmaker.gotoAndPlay(2); _global.bottleReady = false; }; v2.attachBottles = function () { this.factory.target.sndCtrl.stopSound(this.factory.soundsId.foodmakerCook_snd); this.factory.target.sndCtrl.stopSound(this.factory.soundsId.foodmakerBottle_snd); this.factory.target.sndCtrl.playSound(this.factory.soundsId.foodmakerBottle_snd); _global.bottleReady = false; this.factory.Bottle = new Array(); this.numBottle = 0; this.factory.timeForEat = 1000 * this.upgrade; if (this.factory.level.game.foodmakerUpgrades == 1) { this.bottleDepth = this.factory.level.depth.getDepth('foodmaker') + 10; this.factory.Bottle[0] = new mcs.Bottle(this.factory, 'bottle', 372.1, 508.4, this.factory.level.depth.getDepth(this.linkID) + 10); this.factory.Bottle[0].attachBottle(); this.factory.Bottle[0].byFoodmaker = true; this.numBottle = 1; this.factory.Bottle[0].shine = false; this.factory.SelectObject(this.factory.Bottle[0]); this.factory.UnselectObject(this); } if (this.factory.level.game.foodmakerUpgrades == 2) { var v3 = 0; while (v3 <= 1) { this.bottleDepth = this.factory.level.depth.getDepth('foodmaker') + (v3 + 1) * 10; this.factory.Bottle[v3] = new mcs.Bottle(this.factory, 'bottle', 364 + v3 * 17, 508.5, this.factory.level.depth.getDepth(this.linkID) + (v3 + 1) * 10); this.factory.Bottle[v3].attachBottle(); this.factory.Bottle[v3].byFoodmaker = true; ++v3; } this.numBottle = 2; this.factory.Bottle[0].shine = false; this.factory.SelectObject(this.factory.Bottle[0]); this.factory.UnselectObject(this); } if (this.factory.level.game.foodmakerUpgrades == 3) { v3 = 0; while (v3 <= 2) { this.bottleDepth = this.factory.level.depth.getDepth('foodmaker') + (v3 + 1) * 10; this.factory.Bottle[v3] = new mcs.Bottle(this.factory, 'bottle', 358 + v3 * 16, 508, this.factory.level.depth.getDepth(this.linkID) + (v3 + 1) * 10); this.factory.Bottle[v3].attachBottle(); this.factory.Bottle[v3].byFoodmaker = true; ++v3; } this.numBottle = 3; this.factory.Bottle[0].shine = false; this.factory.SelectObject(this.factory.Bottle[0]); this.factory.UnselectObject(this); } this.hasBottle = true; this.working = false; }; v2.attachFoodMaker = function () { this.clip = this.factory.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.clip.gotoAndStop(this.factory.level.game.foodmakerUpgrades); this.clip.foodmaker.object = this.factory.level; this.clip.foodmaker.factory = this; this.addEvents(); }; v2.removeFoodMaker = function () { this.clip.removeMovieClip(); }; v2.demagedFoodmaker = function () { if (this.hasBottle == true && this.numBottle != 0) { if (this.factory.level.game.helpTips[28].called == false) { this.factory.level.game.helpTips[28].showPopUp(); this.addEventsPopup(); } else { this.working = false; this.demaged = true; this.clip.gotoAndStop(this.factory.level.game.foodmakerUpgrades); var v2 = 0; while (v2 <= this.factory.level.game.foodmakerUpgrades - 1) { if (this.factory.Bottle[v2].byFoodmaker == true) { this.factory.Bottle[v2].clip._visible = false; } ++v2; } this.clip.foodmaker.object = this.factory.level; this.clip.foodmaker.gotoAndStop(64); this.factory.target.sndCtrl.stopSound(this.factory.soundsId.foodmakerDamage_snd); this.factory.target.sndCtrl.playSound(this.factory.soundsId.foodmakerDamage_snd); } } }; v2.addEventsPopup = function () { this.factory.level.game.helpTips[28].clip.OK.holder = this; this.factory.level.game.helpTips[28].clip.OK.onPress = function () { this.holder.demagedFoodmaker(); this.holder.factory.level.game.helpTips[28].hidePopUp(); }; }; v2.BottleBroken = function () { trace('BottleBroken()'); if (this.demaged == true) { this.numBottle = 0; this.demaged = false; this.hasBottle = false; this.clip.foodmaker.gotoAndStop(1); this.working = false; } }; v2.BrokeBottle = function () { trace('BrokeBottle()'); if (this.demaged == true) { this.hasBottle = false; this.factory.level.game.helpTips[28].hidePopUp(); trace('this.clip.foodmaker.demage ' + this.clip.foodmaker.demage); this.factory.target.sndCtrl.stopSound(this.factory.soundsId.foodmakerBroken_snd); this.factory.target.sndCtrl.playSound(this.factory.soundsId.foodmakerBroken_snd); var v2 = 0; while (v2 <= this.factory.level.game.foodmakerUpgrades - 1) { if (this.factory.Bottle[v2].byFoodmaker) { this.numBottle -= 1; this.factory.Bottle[v2].byFoodmaker = false; this.factory.Bottle[v2].removeBottle(); } ++v2; } this.numBottle = 0; } }; v2.repairFoodmaker = function () { this.factory.level.game.helpTips[28].hidePopUp(); this.demaged = false; this.clip.gotoAndStop(this.factory.level.game.foodmakerUpgrades); this.clip.foodmaker.gotoAndStop(63); var v2 = 0; while (v2 <= this.factory.level.game.foodmakerUpgrades - 1) { trace('repair na foodmaker'); trace('this.factory.Bottle[i].byFoodmaker ' + this.factory.Bottle[v2].byFoodmaker); if (this.factory.Bottle[v2].byFoodmaker == true) { this.factory.Bottle[v2].clip._visible = true; } ++v2; } var v3 = {'x': _xmouse, 'y': _ymouse}; this.clip.globalToLocal(v3); this.clip.attachMovie('kljuc', 'kljuc', 1001, {'_x': 36, '_y': 67}); this.factory.level.game.successAction += 1; this.factory.target.sndCtrl.stopSound(this.factory.soundsId.foodmakerDamage_snd); this.factory.target.sndCtrl.stopSound(this.factory.soundsId.screw_snd); this.factory.target.sndCtrl.playSound(this.factory.soundsId.screw_snd); }; v2.onClickAction = function () { trace('onClick on foodmaker'); if (!this.factory.level.pause) { if (this.factory.Stork.carring == this.factory.carryNothing) { if (this.hasBottle == false && this.working == false) { this.factory.level.game.helpTips[10].hidePopUp(); this.factory.level.game.helpTips[11].showPopUp(); this.working = true; this.factory.UnselectObject(this); this.factory.Stork.removeStork(); this.factory.Stork.attachStork(); this.factory.Stork.clip._x = 355.9; this.factory.Stork.clip._y = 406.4; this.factory.Stork.clip.gotoAndStop('click_foodmaker'); this.factory.level.StorkCounter += 1; this.factory.level.StorkOldCounter = this.factory.level.StorkCounter; this.playAnimation(); } else { if (this.hasBottle == true && this.demaged == false) { var v2 = 0; while (v2 < this.factory.Bottle.length) { if (this.factory.Bottle[v2].clip && this.factory.Bottle[v2].byFoodmaker == true) { this.numBottle -= 1; this.factory.level.game.helpTips[11].hidePopUp(); this.factory.level.game.helpTips[12].showPopUp(); this.factory.Bottle[v2].byFoodmaker = false; this.factory.Bottle[v2].empty = false; this.factory.Stork.removeStork(); this.factory.Stork.attachStork(); this.factory.Stork.clip._x = 355.9; this.factory.Stork.clip._y = 406.4; this.factory.Stork.clip.gotoAndStop('take_bottle'); this.factory.level.StorkCounter += 1; this.factory.level.StorkOldCounter = this.factory.level.StorkCounter; this.factory.Stork.carring = this.factory.carryBottle; this.factory.Stork.Bottle = this.factory.Bottle[v2]; this.factory.Stork.Bottle.empty = false; if (this.numBottle == 0) { trace('##################numBottle==0'); this.hasBottle = false; this.clip.foodmaker.gotoAndStop(1); } this.working = false; this.factory.Bottle[v2].removeBottle(); break; } ++v2; } } } } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; } utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400, this.factory.level.clock.toSeconds(), 0.4); } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClickAction'; this.factory.Stork.clip._x = 355.9; this.factory.Stork.clip._y = 406.4; } }; v2.onClick = function () { trace('onClick on foodmaker'); if (!this.factory.level.pause) { if (this.factory.Stork.carring == this.factory.carryNothing && this.demaged == false) { this.factory.level.game.helpTips[10].hidePopUp(); this.factory.level.game.helpTips[11].showPopUp(); this.factory.StorkGo(); } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400); } } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClick'; } }; v2.addEvents = function () { this.clip.holder = this; this.clip.onPress = function () { if (this.holder.factory.level.game.levelNum == 1 && this.holder.factory.level.game.helpOnOff == true && this.holder.factory.babies.length == 1 && (this.holder.factory.babies[0].need != this.holder.factory.hungry || this.holder.factory.babies[0].hasToy == true || this.holder.factory.babies[0].hasBottle == true) || this.holder.factory.level.game.levelNum == 1 && this.holder.factory.level.game.helpOnOff == true && this.holder.factory.babies.length == 0) { return undefined; } if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip) { if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].checkIfAvailable(5) == false) { return undefined; } } if (!this.holder.factory.level.pause) { if (this.holder.demaged == true && this.holder.hasBottle == true) { this.holder.repairFoodmaker(); this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); } else { if (this.holder.demaged == false) { trace('push in array foodmaker'); this.holder.factory.pushInClickArray(this.holder); this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); } } } else { if (this.holder.factory.level.game.popUpPause) { if (this.holder.factory.Stork.carring == this.holder.factory.carryNothing && this.holder.factory.level.game.currentPopUp == 6) { if (this.holder.hasBottle == false && this.holder.working == false) { this.holder.factory.level.continueGame(); this.holder.factory.level.game.helpTips[6].hidePopUp(); this.holder.working = true; this.holder.factory.UnselectObject(this.holder); this.holder.factory.Stork.removeStork(); this.holder.factory.Stork.attachStork(); this.factory.Stork.clip._x = 355.9; this.factory.Stork.clip._y = 406.4; this.factory.Stork.clip.gotoAndStop('click_foodmaker'); this.holder.playAnimation(); this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); } } } } }; this.clip.onRollOver = function () { if (this.holder.demaged == true) { this.holder.factory.target.mousePointer.clip.gotoAndStop('repair'); } else { this.holder.factory.target.mousePointer.clip.gotoAndStop('finger'); } }; this.clip.onRollOut = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.onReleaseOutside = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; }; ASSetPropFlags(mcs.FoodMaker.prototype, null, 1); } #endinitclip } movieClip 9312 __Packages.mcs.Bottle { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Bottle) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; this.onLine = false; this.empty = false; this.byFoodmaker = true; this.hasStarNum = 0; this.shine = false; this.shined = false; this.ID = 4; }; mcs.Bottle = v1; mcs.Bottle extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.Bottle implements _global.utils.IClipEvents; v2.trowBottle = function () { var v3 = true; var v2 = 0; while (v2 < this.factory.babiesInRoom) { trace('this.factory.babies[i].need5 ' + this.factory.babies[v2].need); trace('this.factory.babies[i].Toy ' + this.factory.babies[v2].Toy); trace('this.factory.babies[i].Bottle ' + this.factory.babies[v2].Bottle); if (this.factory.babies[v2].need == 5 && this.factory.babies[v2].Toy == undefined && this.factory.babies[v2].Bottle == undefined) { v3 = false; } ++v2; } if (v3 == true) { this.factory.SelectObject(this.factory.Trashcan); } }; v2.shiftLeft = function () {}; v2.attachBottle = function () { trace('attachBottle() vo Bottle'); var v2 = this.factory.level.getUniqueName(); trace('this.linkID ' + this.linkID); trace('this.depth ' + this.depth); trace('this.x ' + this.x); trace('this.y ' + this.y); this.clip = this.factory.holder.attachMovie(this.linkID, v2, this.depth, {'_x': this.x, '_y': this.y}); trace('this.clip ' + this.clip); this.addEvents(); }; v2.removeBottle = function () { trace('remove Bottle'); this.clip.removeMovieClip(); }; v2.onClickAction = function () { if (!this.factory.level.pause) { if (this.factory.Stork.carring == this.factory.carryNothing) { if (this.byFoodmaker == true && this.factory.Foodmaker.demaged == false) { this.factory.level.game.helpTips[11].hidePopUp(); this.factory.level.game.helpTips[12].showPopUp(); this.empty = false; this.factory.UnselectObject(this); this.factory.Stork.removeStork(); this.factory.Stork.attachStork(); this.factory.Stork.clip._x = 355.9; this.factory.Stork.clip._y = 406.4; this.factory.Stork.clip.gotoAndStop('take_bottle'); this.factory.level.StorkCounter += 1; this.factory.level.StorkOldCounter = this.factory.level.StorkCounter; this.factory.Stork.carring = this.factory.carryBottle; this.factory.Stork.Bottle = this; this.factory.Stork.Bottle.empty = false; this.factory.Foodmaker.numBottle -= 1; this.factory.Foodmaker.working = false; this.byFoodmaker = false; if (this.factory.Foodmaker.numBottle == 0) { trace('FOODMAKER GOTO 1'); this.factory.Foodmaker.clip.foodmaker.gotoAndStop(1); } if (this.factory.Foodmaker.numBottle == 0) { trace('numBottle==0'); this.factory.Foodmaker.hasBottle = false; } this.removeBottle(); this.trowBottle(); } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; } } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; } utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400); } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClickAction'; this.factory.Stork.clip._x = 355.9; this.factory.Stork.clip._y = 406.4; } }; v2.onClick = function () { trace('on Click Bottle'); if (!this.factory.level.pause) { if (this.factory.Stork.carring == this.factory.carryNothing) { if (this.factory.Foodmaker.demaged == false) { this.factory.StorkGo(); } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400); } } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400); } } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClick'; } }; v2.addEvents = function () { this.clip.holder = this; this.clip.onPress = function () { if (this.holder.factory.level.game.levelNum == 1 && this.holder.factory.level.game.helpOnOff == true && this.holder.factory.babies.length == 1 && (this.holder.factory.babies[0].need != this.holder.factory.hungry || this.holder.factory.babies[0].hasToy == true || this.holder.factory.babies[0].hasBottle == true) || this.holder.factory.level.game.levelNum == 1 && this.holder.factory.level.game.helpOnOff == true && this.holder.factory.babies.length == 0) { return undefined; } if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip) { if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].checkIfAvailable(4) == false) { return undefined; } } if (!this.holder.factory.level.pause) { this.holder.factory.pushInClickArray(this.holder); this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); } else { if (this.holder.factory.level.game.popUpPause) { if (this.holder.factory.Stork.carring == this.holder.factory.carryNothing && this.holder.factory.level.game.currentPopUp == 6) { trace('continue game u bottle0'); if (this.holder.byFoodmaker == true) { trace('continue game u bottle1'); this.holder.factory.level.continueGame(); this.holder.factory.level.game.helpTips[6].hidePopUp(); this.holder.empty = false; this.factory.UnselectObject(this); this.holder.factory.Foodmaker.clip.gotoAndStop(1); this.holder.factory.Foodmaker.clip.foodmaker.gotoAndStop(1); this.holder.factory.Stork.clip._x = this._x; this.holder.factory.Stork.clip._y = this._y; this.holder.factory.Stork.gotoAndStop('stand'); this.holder.factory.Stork.carring = this.holder.factory.carryBottle; this.holder.factory.Stork.Bottle = this.holder; this.holder.factory.Stork.Bottle.empty = false; this.holder.factory.Foodmaker.numBottle -= 1; this.holder.byFoodmaker = false; if (this.holder.factory.Foodmaker.numBottle == 0) { trace('numBottle==0'); this.holder.factory.Foodmaker.hasBottle = false; } this.holder.removeBottle(); this.trowBottle(); this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); } } else { if (this.holder.factory.level.game.currentPopUp == 7) { trace('continue game u bottle2'); this.holder.factory.level.continueGame(); this.holder.factory.level.game.helpTips[7].hidePopUp(); this.holder.empty = true; this.holder.factory.UnselectObject(this.holder); this.holder.factory.Stork.clip._x = this._x; this.holder.factory.Stork.clip._y = this._y; this.holder.factory.Stork.gotoAndStop('stand'); this.holder.factory.Stork.carring = this.holder.factory.carryBottle; this.holder.factory.Stork.Bottle = this; this.holder.factory.Stork.Bottle.empty = true; this.holder.onLine = false; this.holder.Baby.hasBottle = false; this.holder.Baby.Bottle = undefined; this.holder.Baby = undefined; this.holder.removeBottle(); this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); } } } } }; this.clip.onRollOver = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('finger'); }; this.clip.onRollOut = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.onReleaseOutside = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; }; ASSetPropFlags(mcs.Bottle.prototype, null, 1); } #endinitclip } movieClip 9313 __Packages.mcs.Slot { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Slot) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; this.hasBaby = false; this.ID = 1; }; mcs.Slot = v1; mcs.Slot extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.Slot implements _global.utils.IClipEvents; v2.attachBaby = function (b) {}; v2.attachSlot = function () { this.clip = this.factory.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.addEvents(); }; v2.removeSackSpot = function () {}; v2.addEvents = function () {}; ASSetPropFlags(mcs.Slot.prototype, null, 1); } #endinitclip } movieClip 9314 __Packages.mcs.Toy { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Toy) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; this.inToyBox = true; this.onLine = false; this.hasStarNum = 0; this.shine = false; this.shined = false; this.ID = 7; }; mcs.Toy = v1; mcs.Toy extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.Toy implements _global.utils.IClipEvents; v2.trowToy = function () { var v3 = true; var v2 = 0; while (v2 < this.factory.babiesInRoom) { if (this.factory.babies[v2].need == 3 && this.factory.babies[v2].Toy == undefined && this.factory.babies[v2].Bottle == undefined) { v3 = false; } ++v2; } if (v3 == true) { this.factory.SelectObject(this.factory.Toybox); } }; v2.shiftLeft = function () {}; v2.attachToy = function () { this.clip = this.factory.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.addEvents(); }; v2.removeToy = function () { this.clip.removeMovieClip(); }; v2.onClickAction = function () { if (!this.factory.level.pause) { if (this.factory.Stork.carring == this.factory.carryNothing) { if (this.inToyBox == true) { this.factory.ToyBox.toyNum -= 1; this.inToyBox = false; this.factory.UnselectObject(this.factory.ToyBox); this.factory.UnselectObject(this); this.factory.Stork.removeStork(); this.factory.Stork.attachStork(); this.factory.Stork.clip._x = this.factory.ToyBox.clip._x; this.factory.Stork.clip._y = this.factory.ToyBox.clip._y; this.factory.Stork.carring = this.factory.carryToy; if (this.linkID == 'toy1') { this.factory.Stork.clip._x = 478.5; this.factory.Stork.clip._y = 393.1; this.factory.Stork.clip.gotoAndStop('takeToy1'); } else { if (this.linkID == 'toy2') { this.factory.Stork.clip._x = 478.5; this.factory.Stork.clip._y = 393.1; this.factory.Stork.clip.gotoAndStop('takeToy2'); } else { this.factory.Stork.clip._x = 478.9; this.factory.Stork.clip._y = 392.6; this.factory.Stork.clip.gotoAndStop('takeToy3'); } } this.factory.level.StorkCounter += 1; this.factory.level.StorkOldCounter = this.factory.level.StorkCounter; this.factory.Stork.Toy = this; this.removeToy(); this.trowToy(); } } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; } utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400); } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClickAction'; if (this.linkID == 'toy1') { this.factory.Stork.clip._x = 478.5; this.factory.Stork.clip._y = 393.1; } else { if (this.linkID == 'toy2') { this.factory.Stork.clip._x = 478.5; this.factory.Stork.clip._y = 393.1; } else { this.factory.Stork.clip._x = 478.9; this.factory.Stork.clip._y = 392.6; } } } }; v2.onClick = function () { if (!this.factory.level.pause) { if (this.factory.Stork.carring == this.factory.carryNothing) { this.factory.StorkGo(); } else { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400); } } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClick'; } }; v2.addEvents = function () { this.clip.holder = this; this.clip.onPress = function () { if (this.holder.factory.level.game.levelNum == 1 && this.holder.factory.level.game.helpOnOff == true && this.holder.factory.babies.length == 1 && (this.holder.factory.babies[0].need != this.holder.factory.needToy || this.holder.factory.babies[0].hasToy == true || this.holder.factory.babies[0].hasBottle == true) || this.holder.factory.level.game.levelNum == 1 && this.holder.factory.level.game.helpOnOff == true && this.holder.factory.babies.length == 0) { return undefined; } if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].clip) { if (this.holder.factory.level.game.helpTips[this.holder.factory.level.game.currentPopUp].checkIfAvailable(7) == false) { return undefined; } } if (!this.holder.factory.level.pause) { this.holder.factory.level.game.helpTips[7].hidePopUp(); this.holder.factory.level.game.helpTips[8].showPopUp(); this.holder.factory.pushInClickArray(this.holder); this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); } else { if (this.holder.factory.level.game.popUpPause) { if (this.holder.factory.Stork.carring == this.holder.factory.carryNothing && this.holder.factory.level.game.currentPopUp == 3) { this.holder.factory.level.continueGame(); this.holder.inToyBox = false; this.holder.factory.UnselectObject(this.holder.factory.ToyBox); this.holder.factory.UnselectObject(this.holder); this.holder.factory.Stork.clip._x = this.holder.factory.ToyBox.clip._x; this.holder.factory.Stork.clip._y = this.holder.factory.ToyBox.clip._y; this.holder.factory.Stork.carring = this.holder.factory.carryToy; this.holder.factory.Stork.clip.gotoAndStop('stand'); this.holder.factory.Stork.Toy = this.holder; this.holder.removeToy(); this.holder.factory.level.game.sndCtrl.stopSound(this.holder.factory.level.game.soundsId.mouseclick_snd); this.holder.factory.level.game.sndCtrl.playSound(this.holder.factory.level.game.soundsId.mouseclick_snd); } } } }; this.clip.onRollOver = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('finger'); }; this.clip.onRollOut = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.onReleaseOutside = function () { this.holder.factory.target.mousePointer.clip.gotoAndStop('normal'); }; }; ASSetPropFlags(mcs.Toy.prototype, null, 1); } #endinitclip } movieClip 9315 __Packages.mcs.Baby { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Baby) { var v1 = function (factory_, x, y, rot, xs, ys, depth, type) { super(this.linkID, x, y, rot, xs, ys); this.factory = factory_; this.depth = depth; this.type_ = type; this.need = 0; this.onLine = false; this.draging = false; this.changeNeedFlag = false; this.hitObject = false; this.sleeping = false; this.washing = false; this.plaingToy = false; this.hasToy = false; this.hasBottle = false; this.eating = false; this.animPlay = ''; this.numNeeds = 0; this.angry = false; this.moodFlag = false; this.inSackMashine = false; this.needOrder = new Array(); this.changeClip = false; this.released = false; this.twins = false; this.triplets = false; this.quadruplets = false; this.hasStarNum = 0; this.hasBallNum = 0; this.sameObject = false; this.firstNeedApear = false; this.overBath = false; this.overBed = false; this.onReleaseBaby = false; this.lastActionBath = false; this.lastActionBed = false; this.indexArray = new Array(); this.launcherNeed = false; this.explode = false; this.delayFlag = false; this.delayTime = 0; this.blinkingCalled = false; this.ID = 33; this.sendHappy = false; this.rotAnimPlay = false; this.cloudShaking = false; this.sounds = new Array(); this.sounds = [['srce_snd', 100, false], ['baby_clicked', 100, false]]; this.soundsId = new Array(); this.attachSounds(); this.setBabyProperties(this.type_); }; mcs.Baby = v1; mcs.Baby extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.Baby implements _global.utils.IClipEvents; v2.attachSounds = function () { var v2 = 0; while (v2 < this.sounds.length) { var v3 = this.factory.level.game.soundClip.createEmptyMovieClip(utils.StringUtils.getUniqueName(), this.factory.level.game.soundClip.getNextHighestDepth()); var v4 = new utils.SoundImpl(v3); v4.attachSoundImpl(this.sounds[v2][0], this.sounds[v2][1], this.sounds[v2][2]); this.soundsId[this.sounds[v2][0]] = this.factory.level.game.sndCtrl.addSound(this.sounds[v2][0], v3, this.sounds[v2][1], this.sounds[v2][2]); if (this.sounds[v2][2]) { this.factory.level.game.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.factory.level.game.sndCtrl.getMusicVolume()); } else { this.factory.level.game.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.factory.level.game.sndCtrl.getSoundFXVolume()); } ++v2; } }; v2.prepareBaby = function () { this.inSackMashine = true; this.need = 30; if (this.launcherNeed == false) { this.factory.level.allBabiesSendHappy = false; } if (this.Toy != undefined) { this.Toy.removeToy(); this.Toy.attachToy(); this.Toy.inToyBox = true; this.factory.ToyBox.toyNum += 1; this.Toy = undefined; } if (this.Bottle != undefined) { this.Bottle.removeBottle(); this.Bottle = undefined; } this.angry = false; this.moodFlag = false; this.Sackce = new mcs.Sack(this.factory, 'sack', 30, 370, 1105); this.factory.Sack.push(this.Sackce); if (this.isGirl == true) { this.Sackce.sackType = 1; if (this.twins == false && this.triplets == false && this.quadruplets == false) { this.Sackce.twinType = 1; } else { if (this.twins == true && this.triplets == false && this.quadruplets == false) { this.Sackce.twinType = 2; } else { if (this.twins == false && this.triplets == true && this.quadruplets == false) { this.Sackce.twinType = 3; } else { if (this.twins == false && this.triplets == false && this.quadruplets == true) { this.Sackce.twinType = 4; } } } } } else { this.Sackce.sackType = 2; if (this.twins == false && this.triplets == false && this.quadruplets == false) { this.Sackce.twinType = 1; } else { if (this.twins == true && this.triplets == false && this.quadruplets == false) { this.Sackce.twinType = 2; } else { if (this.twins == false && this.triplets == true && this.quadruplets == false) { this.Sackce.twinType = 3; } else { if (this.twins == false && this.triplets == false && this.quadruplets == true) { this.Sackce.twinType = 4; } } } } } this.Sackce.Baby = this; this.clip.removeMovieClip(); this.clip = undefined; utils.Delegate.callDelayed(this.Sackce, this.Sackce.sendBaby, 1000, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); }; v2.playAnimation = function (id) { this.animPlay = id; if (this.animPlay == 'playingToy') { if (this.Toy.linkID == 'toy2') { this.GotoAndStop('Play_Zelce'); } else { this.GotoAndStop('Play_Mece'); } utils.Delegate.callDelayed(this, this.stopAnimation, this.playingTime, this.factory.level.clock.toSeconds(), this.playingTime / 1000, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } if (this.animPlay == 'drink') { this.GotoAndStop('DrinkMilk'); utils.Delegate.callDelayed(this, this.stopAnimation, this.eatingTime, this.factory.level.clock.toSeconds(), this.eatingTime / 1000, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } }; v2.stopAnimation = function (callTime, delay, level, callTimes) { if (level == this.factory.level.game.levelNum && this.factory.holder && callTimes == this.factory.level.game.factoryCallTimes) { if (this.factory.level.clock.toSeconds() - callTime >= delay) { if (this.animPlay == 'playingToy') { this.Toy.attachToy(); this.Toy.inToyBox = true; this.factory.ToyBox.toyNum += 1; this.Toy.Baby = undefined; this.Toy = undefined; this.hasToy = false; } if (this.animPlay == 'drink') { this.eating = false; this.Bottle = undefined; this.hasBottle = false; } if (this.twins == false && this.triplets == false && this.quadruplets == false) { this.GotoAndStop('Happy'); } this.angry = false; this.moodFlag = false; this.changeNeed(); } else { var v2 = this.factory.level.clock.toSeconds(); var v3 = delay - (v2 - callTime); utils.Delegate.callDelayed(this, this.stopAnimation, v3 * 1000, v2, v3, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } } }; v2.changeNeed = function () { if (this.need != 30) { if (this.factory.level.game.instandNeed == false) { this.GotoAndStop('Happy'); this.previosNeed = this.need; this.need = 11; utils.Delegate.callDelayed(this, this.callChangeNeed1, 1500, this.factory.level.clock.toSeconds(), 1.5, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } else { this.changeNeed1(); } } }; v2.callChangeNeed1 = function (callTime, delay, level, callTimes) { if (level == this.factory.level.game.levelNum && this.factory.holder && callTimes == this.factory.level.game.factoryCallTimes) { if (this.factory.level.clock.toSeconds() - callTime >= delay) { this.need = this.previosNeed; this.changeNeed1(); } else { var v2 = this.factory.clock.toSeconds(); var v3 = delay - (v2 - callTime); utils.Delegate.callDelayed(this, this.callChangeNeed1, v3 * 1000, v2, v3, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } } }; v2.changeNeed1 = function () { if (this.twins == false && this.launcherNeed == false && this.triplets == false && this.quadruplets == false && this.explode == false) { if (this.numNeeds < this.needOrder.length) { var v2 = this.factory.level.LevelConfig.onEvent[this.factory.babies.length - 1]; if (this.need == this.needOrder[v2 - 1] && this.factory.level.LevelConfig.onEvent[this.factory.babies.length - 1] > 1 && this.numNeeds != 1) { this.factory.callMashineBlinking(this.factory.level.clock.toSeconds(), 0, this); } this.numNeeds += 1; this.need = this.needOrder[this.numNeeds - 1]; var v4 = this.ChackNeedName(this.need); this.GotoAndStop(v4); this.factory.level.game.helpTips[4].hidePopUp(); if (this.need != 2) { var v3 = this.getPopUpNum(this.need); this.factory.level.game.helpTips[v3].showPopUp(); } this.angry = false; this.moodFlag = false; this.BabyMood(); this.plaingToy = false; if (this.changeNeedFlag == false) { this.changeNeedFlag = true; } if (this.foodmakerDemage[this.numNeeds - 1] == 1) { this.factory.Foodmaker.demagedFoodmaker(); } } else { this.need = 11; this.launcherNeed = true; this.GotoAndStop('Happy'); if (this.where.ID != 1) { this.clip.cloud.gotoAndStop(2); } if (this.where.ID == 1) { this.factory.IfIndicatorFull(); } this.angry = false; this.moodFlag = false; this.BabyMood(); } this.selectNeededObject(this.need); if (this.need == 1 && this.where.ID == 3) { if (this.factory.level.game.popUpPause) { } this.where.babySleep(this); } if (this.need == 2 && this.where.ID == 2) { if (this.factory.level.game.popUpPause) { } this.where.bathBaby(this); } } }; v2.shiftLeft = function () { this.bebeClip._x -= 1; }; v2.firstPopUp = function () { if (this.factory.firstNeedPopup == false) { // An attempt to read a value from empty stack (this.factory.popupShown != false) ? undefined; } }; v2.getPopUpNum = function (need) { switch (need) { return this._popupid; case 1: this._popupid = 17; return this._popupid; case 2: return this._popupid; case 3: this._popupid = 7; return this._popupid; case 4: this._popupid = 13; return this._popupid; case 5: this.factory.level.game.helpTips[9].hidePopUp(); this._popupid = 10; return this._popupid; case 6: this._popupid = 5; return this._popupid; } return this._popupid; }; v2.attachBaby = function () { if (this.gender == 1) { this.index = 'b' + this.indexArray[1].toString(); } else { this.index = 'b' + this.indexArray[0].toString(); } var v2 = this.factory.level.getUniqueName(); this.bebeClip = this.factory.holder.createEmptyMovieClip(v2, this.depth); this.bebeClip._x = this.x; this.bebeClip._y = this.y; this.bebeClip.level = this.factory; if (this.factory.level.LevelConfig.onEvent[this.factory.babies.length - 1] == 1) { this.startBlinkingTime = 0; } else { this.startBlinkingTime = this.factory.level.LevelConfig.onTime[this.factory.babies.length - 1]; } this.GotoAndStop('Happy'); if (this.startBlinkingTime > 0) { utils.Delegate.callDelayed(this.factory, this.factory.callMashineBlinking, this.startBlinkingTime * 1000, this.factory.level.clock.toSeconds(), this.startBlinkingTime, this); } this.addEvents(); }; v2.removeBabyClip = function () { this.clip.removeMovieClip(); }; v2.removeBaby = function () { this.bebeClip.removeMovieClip(); }; v2.onClick1 = function () { if (!this.factory.level.pause) { if (this.need == this.factory.vomited && this.factory.level.game.cleaningStork == 2 && this.factory.CleaningStork.sleep == false) { this.factory.CleaningStork.takeTowel2(this); this.lastActionBath = false; this.lastActionBed = false; } else { if (this.need == this.factory.vomited && this.factory.level.game.cleaningStork == 1 && this.factory.CleaningStork.sleep == false && this.factory.CleaningStork.hasTowel == true) { this.factory.CleaningStork.removeStork(); this.factory.CleaningStork.attachStork(); var v2 = this.bebeClip.getDepth() + 3; this.factory.CleaningStork.storkClip.swapDepths(v2); this.factory.CleaningStork.storkClip._x = this.bebeClip._x - 30; this.factory.CleaningStork.storkClip._y = 367.4; this.factory.CleaningStork.cleaningStork(this); this.factory.cleanPrepare = false; this.lastActionBath = false; this.lastActionBed = false; } else { if (this.need == this.factory.vomited && this.factory.level.game.cleaningStork == 1) { this.factory.spliceClickArray1(); this.factory.animation1 = false; } else { this.factory.spliceClickArray1(); this.factory.animation1 = false; } } } } else { this.factory.spliceClickArray1(); this.factory.animation1 = false; } }; v2.onClickAction = function () { if (!this.factory.level.pause) { if (this.need == this.factory.tumbeledOver && this.factory.Stork.carring == this.factory.carryNothing) { this.factory.level.game.helpTips[2].hidePopUp(); if (this.angry == true) { this.factory.level.game.successAction = 0; } else { if (this.factory.comboCheck(this.need) == false) { this.factory.level.changePoints(10, this.bebeClip._x, this.bebeClip._y - 70); } else { this.factory.level.pointsArray.push({'type': 1, 'points': this.factory.combo.length.toString()}); this.factory.level.changePoints((this.factory.combo.length - 1) * 10, this.bebeClip._x, this.bebeClip._y - 70); } } var v2 = 14703; this.factory.Stork.clip.swapDepths(v2); this.factory.Stork.clip._x = this.bebeClip._x - 30; this.factory.Stork.clip._y = 367.4; this.factory.level.game.helpTips[5].hidePopUp(); this.factory.level.game.helpTips[6].hidePopUp(); this.factory.Stork.clip.gotoAndStop('takeBabyUp'); this.factory.Stork.clip.object = this; this.factory.target.sndCtrl.stopSound(this.factory.Stork.soundsId.takeBabyUp_snd); this.factory.target.sndCtrl.playSound(this.factory.Stork.soundsId.takeBabyUp_snd); this.factory.level.StorkCounter += 1; this.factory.level.StorkOldCounter = this.factory.level.StorkCounter; this.released = false; this.angry = false; this.moodFlag = false; this.lastActionBath = false; this.lastActionBed = false; this.factory.combo1Check(this); } else { if (this.factory.Stork.carring == this.factory.carryToy && this.plaingToy == false && this.need == this.factory.needToy && this.where.ID != this.factory.Bed[0].ID && this.where.ID != this.factory.Bath[0].ID) { var v2 = 14703; this.factory.Stork.clip.swapDepths(v2); this.factory.Stork.clip._x = this.bebeClip._x - 10; this.factory.Stork.clip._y = 363.6; if (this.factory.Stork.Toy.linkID == 'toy1' || this.factory.Stork.Toy.linkID == 'toy3') { this.factory.Stork.clip.gotoAndStop('giveBear'); } else { if (this.factory.Stork.Toy.linkID == 'toy2') { this.factory.Stork.clip.gotoAndStop('giveTurtle'); } } this.factory.level.StorkCounter += 1; this.factory.level.StorkOldCounter = this.factory.level.StorkCounter; this.Toy = this.factory.Stork.Toy; this.Toy.Baby = this; this.Toy.Slot = this.where; this.where.Toy = this.factory.Stork.Toy; this.factory.Stork.carring = this.factory.carryNothing; this.plaingToy = true; this.hasToy = true; this.lastActionBath = false; this.lastActionBed = false; this.GotoAndStop('Happy'); if (this.angry == true) { this.factory.level.game.successAction = 0; } else { if (this.factory.comboCheck(this.need) == false) { this.factory.level.changePoints(10, this.bebeClip._x, this.bebeClip._y - 70); } else { this.factory.level.pointsArray.push({'type': 1, 'points': this.factory.combo.length.toString()}); this.factory.level.changePoints((this.factory.combo.length - 1) * 10, this.bebeClip._x, this.bebeClip._y - 70); } } this.angry = false; this.moodFlag = false; this.factory.combo1Check(this); this.playAnimation('playingToy'); utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400); } else { if (this.factory.Stork.carring == this.factory.carryTowel && this.factory.Stork.Towel.isDirty == false && this.need == this.factory.vomited && this.where.ID != this.factory.Bed[0].ID && this.where.ID != this.factory.Bath[0].ID) { this.factory.Stork.Towel.isDirty = true; this.factory.level.game.helpTips[7].hidePopUp(); this.factory.level.game.helpTips[15].showPopUp(); this.factory.Stork.clip._x = this.bebeClip._x - 30; this.factory.Stork.clip._y = 360; var v2 = 14703; this.factory.Stork.clip.swapDepths(v2); this.factory.Stork.clip.gotoAndStop('clean'); this.factory.target.sndCtrl.stopSound(this.factory.Stork.soundsId.storkclean_snd); this.factory.target.sndCtrl.playSound(this.factory.Stork.soundsId.storkclean_snd); utils.Delegate.callDelayed(this.factory, this.factory.Animation, 1160); this.factory.level.StorkCounter += 1; this.factory.level.StorkOldCounter = this.factory.level.StorkCounter; this.clip.cloud._visible = false; utils.Delegate.callDelayed(this, this.finishCleaning, 1000, this.factory.level.clock.toSeconds(), 1, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } else { if (this.factory.Stork.carring == this.factory.carryBottle && this.factory.Stork.Bottle.empty == false && this.need == this.factory.hungry && this.where.ID != this.factory.Bed[0].ID && this.where.ID != this.factory.Bath[0].ID) { this.factory.level.game.helpTips[12].hidePopUp(); this.Bottle = this.factory.Stork.Bottle; this.factory.Stork.clip._x = this.bebeClip._x - 10; this.factory.Stork.clip._y = 370.4; var v2 = 14703; this.factory.Stork.clip.swapDepths(v2); this.factory.Stork.clip.gotoAndStop('give_bottle'); utils.Delegate.callDelayed(this.factory, this.factory.Animation, 400); this.factory.level.StorkCounter += 1; this.factory.level.StorkOldCounter = this.factory.level.StorkCounter; this.factory.Stork.Bottle.Baby = this; this.factory.Stork.carring = this.factory.carryNothing; this.factory.Stork.Bottle = undefined; this.eating = true; this.hasBottle = true; this.lastActionBath = false; this.lastActionBed = false; this.GotoAndStop('Happy'); if (this.angry == true) { this.factory.level.game.successAction = 0; } else { if (this.factory.comboCheck(this.need) == false) { this.factory.level.changePoints(10, this.bebeClip._x, this.bebeClip._y - 70); } else { this.factory.level.pointsArray.push({'type': 1, 'points': this.factory.combo.length.toString()}); this.factory.level.changePoints((this.factory.combo.length - 1) * 10, this.bebeClip._x, this.bebeClip._y - 70); } this.factory.holder.attachMovie('plus1', 'plus1', 987654, {'_x': this.bebeClip._x + 10, '_y': this.bebeClip._y - 20}); } this.angry = false; this.moodFlag = false; this.factory.combo1Check(this); this.playAnimation('drink'); } else { if (this.hasToy == true || this.hasBottle == true || this.sleeping == true || this.washing == true) { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; this.factory.animation = false; } else { this.factory.animation = false; } } } } } } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClickAction'; if (this.need == this.factory.tumbeledOver && this.factory.Stork.carring == this.factory.carryNothing) { var v2 = 14703; this.factory.Stork.clip.swapDepths(v2); this.factory.Stork.clip._x = this.bebeClip._x - 30; this.factory.Stork.clip._y = 367.4; } else { if (this.factory.Stork.carring == this.factory.carryToy && this.plaingToy == false && this.need == this.factory.needToy && this.where.ID != this.factory.Bed[0].ID && this.where.ID != this.factory.Bath[0].ID) { var v2 = 14703; this.factory.Stork.clip.swapDepths(v2); this.factory.Stork.clip._x = this.bebeClip._x - 10; this.factory.Stork.clip._y = 363.6; } else { if (this.factory.Stork.carring == this.factory.carryTowel && this.factory.Stork.Towel.isDirty == false && this.need == this.factory.vomited && this.where.ID != this.factory.Bed[0].ID && this.where.ID != this.factory.Bath[0].ID) { this.factory.Stork.clip._x = this.bebeClip._x - 30; this.factory.Stork.clip._y = 360; var v2 = 14703; this.factory.Stork.clip.swapDepths(v2); } else { if (this.factory.Stork.carring == this.factory.carryBottle && this.factory.Stork.Bottle.empty == false && this.need == this.factory.hungry && this.where.ID != this.factory.Bed[0].ID && this.where.ID != this.factory.Bath[0].ID) { this.factory.Stork.clip._x = this.bebeClip._x - 10; this.factory.Stork.clip._y = 370.4; var v2 = 14703; this.factory.Stork.clip.swapDepths(v2); } } } } } }; v2.onClick = function () { if (!this.factory.level.pause) { if (this.need == this.factory.tumbeledOver && this.factory.Stork.carring == this.factory.carryNothing) { this.factory.StorkGo(); } else { if (this.factory.Stork.carring == this.factory.carryToy && this.plaingToy == false && this.need == this.factory.needToy && this.where.ID != this.factory.Bed[0].ID && this.where.ID != this.factory.Bath[0].ID) { this.factory.level.game.helpTips[8].hidePopUp(); this.factory.level.game.helpTips[9].showPopUp(); this.factory.StorkGo(); } else { if (this.factory.Stork.carring == this.factory.carryTowel && this.factory.Stork.Towel.isDirty == false && this.need == this.factory.vomited && this.where.ID != this.factory.Bed[0].ID && this.where.ID != this.factory.Bath[0].ID) { this.factory.StorkGo(); } else { if (this.factory.Stork.carring == this.factory.carryBottle && this.factory.Stork.Bottle.empty == false && this.need == this.factory.hungry && this.where.ID != this.factory.Bed[0].ID && this.where.ID != this.factory.Bath[0].ID) { this.factory.StorkGo(); } else { if (this.hasToy == true || this.hasBottle == true || this.sleeping == true || this.washing == true) { this.factory.spliceClickArray(); this.factory.level.game.successAction = 0; this.factory.animation = false; } else { this.factory.animation = false; } } } } } } else { this.factory.objOnPause = this; this.factory.funcOnPause = 'onClick'; } }; v2.finishCleaning = function (callTime, delay, level, callTimes) { if (level == this.factory.level.game.levelNum && this.factory.holder && callTimes == this.factory.level.game.factoryCallTimes) { if (this.factory.level.clock.toSeconds() - callTime >= delay) { this.GotoAndStop('Happy'); this.clip.cloud._visible = true; this.factory.SelectObject(this.factory.Trashcan); this.lastActionBath = false; this.lastActionBed = false; if (this.angry == true) { this.factory.level.game.successAction = 0; } else { if (this.factory.comboCheck(this.need) == false) { this.factory.level.changePoints(10, this.bebeClip._x, this.bebeClip._y - 70); } else { this.factory.level.pointsArray.push({'type': 1, 'points': this.factory.combo.length.toString()}); this.factory.level.changePoints((this.factory.combo.length - 1) * 10, this.bebeClip._x, this.bebeClip._y - 70); } } this.angry = false; this.moodFlag = false; this.factory.combo1Check(this); this.changeNeed(); } else { var v2 = this.factory.level.clock.toSeconds(); var v3 = delay - (v2 - callTime); utils.Delegate.callDelayed(this, this.finishCleaning, v3 * 1000, v2, v3, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } } }; v2.GotoAndStop = function (where) { if (this.explode == false) { var v2 = this.index + where.toString(); var v3 = this.factory.level.getUniqueName(); this.removeBabyClip(); this.clip = this.bebeClip.attachMovie(v2, v2, 5, {'_x': 7, '_y': 0}); this.factory.target.sndCtrl.stopSound(this.soundsId[v2 + '_snd']); this.factory.target.sndCtrl.playSound(this.soundsId[v2 + '_snd']); if (this.cloudShaking == true && this.explode == false) { this.shakeCloudLeft(300); } } }; v2.startDragging = function () { this.where.hasBaby = false; if (this.where.ID == 2) { this.where.BathFront.kada.gotoAndStop(1); } this.cloudShaking = false; this.factory.target.mousePointer.clip.gotoAndStop('drag'); clearInterval(this.intID); this.intID = setInterval(this, 'dragBaby', 40); }; v2.dragBaby = function () { this.bebeClip._x = _xmouse - 25; this.bebeClip._y = _ymouse + 25; }; v2.addEvents = function () { this.bebeClip.holder_ = this; this.bebeClip.onPress = function () { if (this.holder_.factory.level.game.helpTips[this.holder_.factory.level.game.currentPopUp].clip) { if (this.holder_.factory.level.game.helpTips[this.holder_.factory.level.game.currentPopUp].checkIfAvailable(33) == false) { return undefined; } } if (!this.holder_.factory.level.pause) { if (this._x > 100) { this.holder_.factory.target.sndCtrl.stopSound(this.holder_.soundsId.baby_clicked); this.holder_.factory.target.sndCtrl.playSound(this.holder_.soundsId.baby_clicked); if (this.holder_.hasToy == false && this.holder_.hasBottle == false && this.holder_.sleeping == false && this.holder_.washing == false) { if (this.holder_.draging == false) { if (this.holder_.need == this.holder_.factory.sleepy || this.holder_.need == this.holder_.factory.dirty || this.holder_.where.ID == this.holder_.factory.Bed[0].ID || this.holder_.where.ID == this.holder_.factory.Bath[0].ID) { if (this.holder_.where.ID == this.holder_.factory.Bath[0].ID) { this.holder_.where.BathFront.kada.gotoAndPlay('handsDown'); } this.holder_.where.hasBaby = false; this.holder_.onLine = false; this.holder_.draging = true; this.holder_.where.Baby = undefined; this.holder_.cloudShaking = false; this.holder_.startDragging(); this.holder_.onReleaseBaby = false; this.swapDepths(777777); this.holder_.factory.level.mouse.Baby = this.holder_; } else { if (this.holder_.need == this.holder_.factory.vomited && ((this.holder_.factory.level.game.cleaningStork == 2 || this.holder_.factory.level.game.cleaningStork == 1) && this.holder_.factory.CleaningStork.sleep == false)) { this.holder_.factory.pushInClickArray1(this.holder_); } else { this.holder_.factory.pushInClickArray(this.holder_); } } } } } } else { if (this.holder_.factory.level.game.popUpPause) { if (this.holder_.hasToy == false && this.holder_.hasBottle == false && this.holder_.sleeping == false && this.holder_.washing == false) { if (this.holder_.draging == false) { this.holder_.factory.level.continueGame(); this.holder_.factory.level.game.helpTips[3].hidePopUp(); if (this.holder_.need == this.holder_.factory.sleepy || this.holder_.need == this.holder_.factory.dirty || this.holder_.where.ID == this.holder_.factory.Bed[0].ID || this.holder_.where.ID == this.holder_.factory.Bath[0].ID) { this.holder_.where.hasBaby = false; this.holder_.onLine = false; this.holder_.draging = true; this.holder_.where.Baby = undefined; this.holder_.cloudShaking = false; this.holder_.startDragging(); this.holder_.onReleaseBaby = false; this.swapDepths(777777); this.holder_.factory.level.mouse.Baby = this.holder_; } } } this.holder_.factory.level.game.sndCtrl.stopSound('baby_clicked'); this.holder_.factory.level.game.sndCtrl.playSound('baby_clicked'); if (this.holder_.draging == false) { if (this.holder_.need == this.holder_.factory.sleepy && this.holder_.factory.level.game.currentPopUp == 4) { this.holder_.where.hasBaby = false; this.holder_.onLine = false; this.holder_.draging = true; this.holder_.where.Baby = undefined; this.holder_.cloudShaking = false; this.holder_.startDragging(); this.swapDepths(777777); this.holder_.factory.level.mouse.Baby = this.holder_; } else { if (this.holder_.need == this.holder_.factory.dirty && this.holder_.factory.level.game.currentPopUp == 5) { this.holder_.where.hasBaby = false; this.holder_.onLine = false; this.holder_.draging = true; this.holder_.where.Baby = undefined; this.holder_.cloudShaking = false; this.holder_.startDragging(); this.swapDepths(777777); this.holder_.factory.level.mouse.Baby = this.holder_; } else { if (this.holder_.need == this.holder_.factory.tumbeledOver && this.holder_.factory.level.game.currentPopUp == 2 && this.holder_.factory.Stork.carring == this.holder_.factory.carryNothing) { this.holder_.factory.level.continueGame(); this.holder_.factory.level.game.helpTips[2].hidePopUp(); if (this.holder_.angry == true) { this.holder_.factory.level.game.successAction = 0; } else { if (this.holder_.factory.comboCheck(this.holder_.need) == false) { this.holder_.factory.level.changePoints(10, this._x, this._y - 70); } else { this.holder_.factory.level.pointsArray.push({'type': 1, 'points': this.holder_.factory.combo.length.toString()}); this.holder_.factory.level.changePoints((this.holder_.factory.combo.length - 1) * 10, this._x, this._y - 70); } } this.holder_.factory.Stork.clip._x = this._x; this.holder_.factory.Stork.clip._y = this._y - 150; this.holder_.clip.gotoAndStop('Happy'); this.holder_.released = false; this.holder_.angry = false; this.holder_.moodFlag = false; this.holder_.factory.combo1Check(this.holder_); this.holder_.changeNeed(); } } } } } } }; this.bebeClip.holder_ = this; this.bebeClip.onRelease = this.onrelease; this.bebeClip.holder_ = this; this.bebeClip.onReleaseOutside = this.onreleasoutside; this.bebeClip.onRollOver = function () { if (this.holder_.need == 1 || (this.holder_.need == 2 || this.holder_.launcherNeed)) { this.holder_.factory.target.mousePointer.clip.gotoAndStop('drag'); } else { this.holder_.factory.target.mousePointer.clip.gotoAndStop('finger'); } }; this.bebeClip.onRollOut = function () { this.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); }; }; v2.BabyMood = function () { this.moodNeed = getTimer(); this.moodFlag = true; this.angry = false; }; v2.ChangeBabyMood = function () { this.moodFlag = false; if (this.need == 11 && this.where.ID == 1) { } else { if (this.need == 2) { this.GotoAndStop('Angry_pooped'); } else { if (this.need == 4) { this.GotoAndStop('Angry_Vomit'); } else { if (this.need == 6) { this.factory.level.game.helpTips[5].hidePopUp(); this.factory.level.game.helpTips[6].showPopUp(); this.clip.bebe.gotoAndPlay('fall'); } else { this.GotoAndStop('Angry'); var v2 = 'need' + this.need.toString(); this.clip.cloud.gotoAndStop(v2); } } } this.angry = true; utils.Delegate.callDelayed(this, this.losePoints, 5000); } }; v2.losePoints = function () { if (this.angry == true) { if (!this.factory.level.pause) { this.factory.level.changePoints(-5, this.bebeClip._x, this.bebeClip._y - 70); this.factory.holder.attachMovie('minus3', 'minus3', 987654, {'_x': this.bebeClip._x + 10, '_y': this.bebeClip._y - 20}); } utils.Delegate.callDelayed(this, this.losePoints, 5000); } }; v2.setBabyProperties = function (type) { switch (type) { case 1: this.needOrder = [this.factory.tumbeledOver, this.factory.needToy, this.factory.hungry, this.factory.vomited, this.factory.dirty, this.factory.sleepy]; if (this.factory.level.game.levelNum >= 7) { this.foodmakerDemage = [0, 0, 1, 0, 0, 0]; } else { this.foodmakerDemage = [0, 0, 0, 0, 0, 0]; } this.indexArray = [1, 7]; this.siblingNum = 0; this.cleaningTime = 1000; this.sleepingTime = 1500; this.eatingTime = 3000; this.playingTime = 3000; this.bathingTime = 3000; this.changeMood = 22000; break; case 2: this.needOrder = [this.factory.needToy, this.factory.hungry, this.factory.vomited, this.factory.dirty, this.factory.sleepy]; if (this.factory.level.game.levelNum >= 9) { this.foodmakerDemage = [0, 0, 0, 1, 0]; } else { this.foodmakerDemage = [0, 0, 0, 0, 0]; } this.indexArray = [2, 8]; this.siblingNum = 0; this.cleaningTime = 1100; this.sleepingTime = 1000; this.eatingTime = 2500; this.playingTime = 2500; this.bathingTime = 2500; this.changeMood = 18000; break; case 3: this.needOrder = [this.factory.tumbeledOver, this.factory.needToy, this.factory.hungry, this.factory.vomited, this.factory.sleepy]; if (this.factory.level.game.levelNum >= 15) { this.foodmakerDemage = [0, 0, 1, 0, 0]; } else { this.foodmakerDemage = [0, 0, 0, 0, 0]; } this.indexArray = [3, 9]; this.siblingNum = 0; this.cleaningTime = 3000; this.sleepingTime = 2200; this.eatingTime = 2200; this.playingTime = 2200; this.bathingTime = 2200; this.changeMood = 12500; break; case 4: this.needOrder = [this.factory.needToy, this.factory.hungry, this.factory.vomited, this.factory.dirty, this.factory.sleepy]; if (this.factory.level.game.levelNum >= 16) { this.foodmakerDemage = [0, 0, 1, 0, 0, 0]; } else { this.foodmakerDemage = [0, 0, 0, 0, 0, 0]; } this.indexArray = [4, 10]; this.siblingNum = 0; this.cleaningTime = 1000; this.sleepingTime = 2000; this.eatingTime = 2000; this.playingTime = 2000; this.bathingTime = 2000; this.changeMood = 10000; break; case 5: this.needOrder = [this.factory.needToy, this.factory.hungry, this.factory.vomited, this.factory.sleepy]; this.foodmakerDemage = [0, 0, 0, 0]; this.indexArray = [5, 11]; this.siblingNum = 0; this.cleaningTime = 1500; this.sleepingTime = 1800; this.eatingTime = 1800; this.playingTime = 1800; this.bathingTime = 1800; this.changeMood = 8000; break; case 6: this.needOrder = [this.factory.tumbeledOver, this.factory.needToy, this.factory.hungry, this.factory.vomited, this.factory.dirty, this.factory.sleepy]; if (this.factory.level.game.levelNum >= 20) { this.foodmakerDemage = [0, 0, 1, 0, 0]; } else { this.foodmakerDemage = [0, 0, 0, 0, 0]; } this.indexArray = [6, 12]; this.siblingNum = 0; this.cleaningTime = 3000; this.sleepingTime = 1500; this.eatingTime = 1500; this.playingTime = 1500; this.bathingTime = 1500; this.changeMood = 6500; } }; v2.selectNeededObject = function (need) { switch (need) { case 1: this.factory.SelectObject(this.factory.Bed[0]); break; case 2: this.factory.SelectObject(this.factory.Bath[0]); break; case 3: this.factory.SelectObject(this.factory.ToyBox); this.factory.SelectObject(this.factory.Toys[0]); break; case 4: this.factory.SelectObject(this.factory.Towel); break; case 5: this.factory.SelectObject(this.factory.Foodmaker); } }; v2.shakeCloudRight = function (time) { if (this.cloudShaking == true) { if (this.need != 6) { if (this.clip.cloud) { this.clip.cloud._x += 3; if (time > 50) { time -= 10; } utils.Delegate.callDelayed(this, this.shakeCloudLeft, time, time); } } else { this.clip.bebe.cloud._x += 3; if (time > 50) { time -= 10; } utils.Delegate.callDelayed(this, this.shakeCloudLeft, time, time); } } }; v2.shakeCloudLeft = function (time) { if (this.cloudShaking == true) { if (this.need != 6) { if (this.clip.cloud) { this.clip.cloud._x -= 3; if (time > 50) { time -= 10; } utils.Delegate.callDelayed(this, this.shakeCloudRight, time, time); } } else { this.clip.bebe.cloud._x -= 3; if (time > 50) { time -= 10; } utils.Delegate.callDelayed(this, this.shakeCloudRight, time, time); } } }; v2.disapearCloud = function (mc) { this.need = 30; var v3 = mc._alpha; if (v3 > 0) { mc._alpha -= 50; utils.Delegate.callDelayed(this, this.disapearCloud, 20, mc); } else { mc.gotoAndStop(5); } }; v2.ChackNeedName = function (need) { var v1; switch (need) { return v1; case 1: v1 = 'Sleepy'; return v1; case 2: v1 = 'Pooped'; return v1; case 3: v1 = 'cryToy'; return v1; case 4: v1 = 'Vomit'; return v1; case 5: v1 = 'Hungry'; return v1; case 6: v1 = 'TryWallk'; return v1; } return v1; }; v2.PointBabyAction = function () { if (this.factory.Stork.carring == 0) { if (this.hasToy == true) { this.factory.level.PointedObject = undefined; this.factory.level.succesesClick = getTimer(); this.factory.level.storkCarringFlag = true; this.factory.level.succesesClickFlag = true; } else { if (this.hasBottle == true) { this.factory.level.PointedObject = undefined; this.factory.level.succesesClick = getTimer(); this.factory.level.storkCarringFlag = true; this.factory.level.succesesClickFlag = true; } else { if (this.need == 1) { this.factory.PointObject(this.factory.Bed[0], this, this.need); this.factory.level.PointedObject = this.factory.Bed[0]; } else { if (this.need == 2) { this.factory.PointObject(this.factory.Bath[0], this, this.need); this.factory.level.PointedObject = this.factory.Bath[0]; } else { if (this.need == 3) { this.factory.PointObject(this.factory.ToyBox, this, this.need); this.factory.level.PointedObject = this.factory.ToyBox; } else { if (this.need == 4) { if (this.factory.level.game.cleaningStork == 2 || this.factory.level.game.cleaningStork == 1 && this.factory.CleaningStork.hasTowel == true) { this.factory.PointObject(this, this, this.need); this.factory.level.PointedObject = this; } else { this.factory.PointObject(this.factory.Towel, this, this.need); this.factory.level.PointedObject = this.factory.Towel; } } else { if (this.need == 5) { if (this.factory.Foodmaker.hasBottle == true) { this.factory.PointObject(this.factory.Bottle[this.factory.level.game.foodmakerUpgrades - 1], this); this.factory.level.PointedObject = this.factory.Bottle[this.factory.level.game.foodmakerUpgrades - 1]; } else { this.factory.PointObject(this.factory.Foodmaker, this, this.need); this.factory.level.PointedObject = this.factory.Foodmaker; } } else { if (this.need == 6) { this.factory.PointObject(this, this, this.need); this.factory.level.PointedObject = this; } else { this.factory.level.PointedObject = undefined; this.factory.level.succesesClick = getTimer(); this.factory.level.storkCarringFlag = true; this.factory.level.succesesClickFlag = true; } } } } } } } } } else { this.factory.level.PointedObject = undefined; this.factory.level.succesesClick = getTimer(); this.factory.level.storkCarringFlag = true; this.factory.level.succesesClickFlag = true; } }; } else { goto 48208; } storedv2.onreleasoutside = function () { var v2 = this; v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); v2.holder_.onReleaseBaby = true; v2.holder_.released = false; trace('This.holder_.factory.Bath[0].hasBaby ' + v2.holder_.factory.Bath[0].hasBaby); trace('This.holder_.factory.Bath[1].hasBaby ' + v2.holder_.factory.Bath[0].hasBaby); trace('This.holder_.factory.Bath[2].hasBaby ' + v2.holder_.factory.Bath[0].hasBaby); trace('This.holder_.released ' + v2.holder_.released); trace('This.holder_.need ' + v2.holder_.need); trace('This.holder_.draging ' + v2.holder_.draging); trace('This.holder_.where.ID ' + v2.holder_.where.ID); trace('This.holder_.factory.Bath[0].BathFront.kada.hitClip ' + v2.holder_.factory.Bath[0].BathFront.kada.hitClip); trace('this.holder_.factory.Bath[1].BathFront.kada.hitClip ' + v2.holder_.factory.Bath[1].BathFront.kada.hitClip); trace('this.holder_.factory.Bath[2].BathFront.kada.hitClip ' + v2.holder_.factory.Bath[2].BathFront.kada.hitClip); if (v2.holder_.hasToy == false && v2.holder_.hasBottle == false && v2.holder_.draging == true) { if (v2.holder_.angry == true) { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); var v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } if (v2.holder_.draging == true) { var v3 = 0; while (v3 <= 2) { var v4 = v2.holder_.factory.Bed[v3].BedFront.bed.hitClip.hitTest(_xmouse, _ymouse, true) && v2.holder_.factory.Bed[v3].hasBaby == false && v2.holder_.factory.Bed[v3].isClean == true && v2.holder_.released == false && (v2.holder_.need == v2.holder_.factory.sleepy || v2.holder_.need == v2.holder_.factory.dirty) && !v2.holder_.factory.level.game.helpTips[16].clip; if (v4) { v2.holder_.factory.level.mouse.Baby = undefined; clearInterval(v2.holder_.intID); v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); v2.holder_.sameObject = false; if (v2.holder_.where.ID != undefined) { if (v2.holder_.where.ID == v2.holder_.factory.Bed[v3].ID) { v2.holder_.sameObject = true; } } v2.holder_.released = true; v2.holder_.draging = false; v2.holder_.factory.Bed[v3].hasBaby = true; v2.holder_.where.Baby = undefined; if (v2.holder_.need == 11 && v2.holder_.launcherNeed == true) { if (v2.holder_.angry == true) { v2.holder_.GotoAndStop('Angry'); v2.holder_.clip.cloud.gotoAndStop('need11'); } else { v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.happybebe.gotoAndPlay(1); v2.holder_.clip.cloud.gotoAndStop(2); } } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } v2.holder_.where = v2.holder_.factory.Bed[v3]; var v7 = v2.holder_.where.clip.getDepth() + 3; v2.swapDepths(v7); v2._x = v2.holder_.where.clip._x + 5; v2._y = v2.holder_.where.clip._y + 50; v2.holder_.where.ID = v2.holder_.factory.Bed[v3].ID; v2.holder_.hitObject = true; v2.holder_.where.Baby = v2.holder_; if (v2.holder_.lastActionBed == false) { if (v2.holder_.need == v2.holder_.factory.sleepy || v2.holder_.need == v2.holder_.factory.dirty) { if (v2.holder_.need == v2.holder_.factory.sleepy) { if (v2.holder_.factory.level.game.popUpPause) { } if (v2.holder_.angry == true) { v2.holder_.factory.level.game.successAction = 0; } else { if (v2.holder_.factory.comboCheck(v2.holder_.need) == false) { v2.holder_.factory.level.changePoints(10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } else { v2.holder_.factory.level.pointsArray.push({'type': 1, 'points': v2.holder_.factory.combo.length.toString()}); v2.holder_.factory.level.changePoints((v2.holder_.factory.combo.length - 1) * 10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } } v2.holder_.angry = false; v2.holder_.moodFlag = false; } v2.holder_.lastActionBath = false; v2.holder_.lastActionBed = true; v2.holder_.factory.Bed[v3].babySleep(v2.holder_); v2.holder_.factory.combo1Check(v2.holder_); v2.holder_.sameObject = false; } } break; } ++v3; } trace('This.holder_.released ' + v2.holder_.released); trace('This.holder_.hitObject ' + v2.holder_.hitObject); v3 = 0; while (v3 <= 2) { trace('iiiiiiiiiiiiiiiiiiiiiiiiii ' + v3); trace('This.holder_.factory.Bath[0].hasBaby ' + v2.holder_.factory.Bath[0].hasBaby); trace('This.holder_.factory.Bath[1].hasBaby ' + v2.holder_.factory.Bath[0].hasBaby); trace('This.holder_.factory.Bath[2].hasBaby ' + v2.holder_.factory.Bath[0].hasBaby); trace('This.holder_.released ' + v2.holder_.released); trace('This.holder_.need ' + v2.holder_.need); trace('This.holder_.draging ' + v2.holder_.draging); trace('This.holder_.where.ID ' + v2.holder_.where.ID); trace('This.holder_.factory.Bath[0].BathFront.kada.hitClip ' + v2.holder_.factory.Bath[0].BathFront.kada.hitClip); trace('this.holder_.factory.Bath[1].BathFront.kada.hitClip ' + v2.holder_.factory.Bath[1].BathFront.kada.hitClip); trace('this.holder_.factory.Bath[2].BathFront.kada.hitClip ' + v2.holder_.factory.Bath[2].BathFront.kada.hitClip); trace('(This.holder_.factory.Bath[i].BathFront.kada.hitClip.hitTest(_xmouse, _ymouse, true) ' + v2.holder_.factory.Bath[v3].BathFront.kada.hitClip.hitTest(_xmouse, _ymouse, true)); trace('This.holder_.factory.sleepy ' + v2.holder_.factory.sleepy); trace('This.holder_.factory.dirty ' + v2.holder_.factory.dirty); var v9 = v2.holder_.factory.Bath[v3].BathFront.kada.hitClip.hitTest(_xmouse, _ymouse, true) && v2.holder_.factory.Bath[v3].hasBaby == false && v2.holder_.released == false && (v2.holder_.need == v2.holder_.factory.sleepy || v2.holder_.need == v2.holder_.factory.dirty); trace('uslov ' + v9); trace('((This.holder_.need == This.holder_.factory.sleepy) || (This.holder_.need == This.holder_.factory.dirty)) ' + (v2.holder_.need == v2.holder_.factory.sleepy || v2.holder_.need == v2.holder_.factory.dirty)); if (v9) { trace('HIT BATH'); v2.holder_.factory.level.mouse.Baby = undefined; clearInterval(v2.holder_.intID); v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); v2.holder_.sameObject = false; if (v2.holder_.where.ID != undefined) { if (v2.holder_.where.ID == v2.holder_.factory.Bath[v3].ID) { v2.holder_.sameObject = true; } } v2.holder_.released = true; v2.holder_.where.BathFront.kada.gotoAndStop(4); v2.holder_.draging = false; v2.holder_.factory.Bath[v3].hasBaby = true; v2.holder_.where.Baby = undefined; v2.holder_.where = v2.holder_.factory.Bath[v3]; v7 = v2.holder_.where.clip.getDepth() + 3; v2.swapDepths(v7); if (v2.holder_.need == 11 && v2.holder_.launcherNeed == true) { if (v2.holder_.angry == true) { v2.holder_.GotoAndStop('Angry'); v2.holder_.clip.cloud.gotoAndStop('need11'); } else { v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.cloud.gotoAndStop(2); } } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } v2._x = v2.holder_.where.clip._x + 30; v2._y = v2.holder_.where.clip._y - 25; v2.holder_.hitObject = true; v2.holder_.where.ID = v2.holder_.factory.Bath[v3].ID; v2.holder_.where.Baby = v2.holder_; if (v2.holder_.lastActionBath == false) { if (v2.holder_.need == v2.holder_.factory.dirty) { v2.holder_.lastActionBath = true; v2.holder_.lastActionBed = false; if (v2.holder_.angry == true) { v2.holder_.factory.level.game.successAction = 0; } else { if (v2.holder_.factory.comboCheck(v2.holder_.need) == false) { v2.holder_.factory.level.changePoints(10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } else { v2.holder_.factory.level.pointsArray.push({'type': 1, 'points': v2.holder_.factory.combo.length.toString()}); v2.holder_.factory.level.changePoints((v2.holder_.factory.combo.length - 1) * 10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } } v2.holder_.angry = false; v2.holder_.moodFlag = false; v2.holder_.factory.combo1Check(v2.holder_); if (v2.holder_.factory.level.game.popUpPause) { } v2.holder_.factory.Bath[v3].bathBaby(v2.holder_); } if (v2.holder_.need == v2.holder_.factory.sleepy) { v2.holder_.lastActionBath = true; v2.holder_.lastActionBed = false; v2.holder_.factory.Bath[v3].bathBaby(v2.holder_); v2.holder_.factory.combo1Check(v2.holder_); } } v2.holder_.sameObject = false; break; } ++v3; } if (v2.holder_.where.ID == 2 && v2.holder_.released == false && v2.holder_.factory.level.mouse.leftBaby == true) { v2.holder_.released = true; v2.holder_.factory.level.mouse.leftBaby = false; v2.holder_.factory.level.mouse.Baby = undefined; v2.clip.bebe.gotoAndStop(1); v2.holder_.where.BathFront.kada.gotoAndStop(4); if (v2.holder_.need == 11 && v2.holder_.launcherNeed == true) { if (v2.holder_.angry == true) { v2.holder_.GotoAndStop('Angry'); v2.holder_.clip.cloud.gotoAndStop('need11'); } else { v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.cloud.gotoAndStop(2); } } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } v2._x = v2.holder_.where.clip._x + 30; v2._y = v2.holder_.where.clip._y - 25; v2.holder_.draging = false; v2.holder_.where.hasBaby = true; v7 = v2.holder_.where.clip.getDepth() + 3; v2.swapDepths(v7); clearInterval(v2.holder_.intID); v2.holder_.hitObject = true; v2.holder_.where.Baby = v2.holder_; if (v2.holder_.lastActionBath == false) { if (v2.holder_.need == v2.holder_.factory.dirty) { v2.holder_.lastActionBath = true; v2.holder_.lastActionBed = false; v2._x = v2.holder_.where.clip._x + 30; v2._y = v2.holder_.where.clip._y - 20; if (v2.holder_.angry == true) { v2.holder_.factory.level.game.successAction = 0; } else { if (v2.holder_.factory.comboCheck(v2.holder_.need) == false) { v2.holder_.factory.level.changePoints(10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } else { v2.holder_.factory.level.pointsArray.push({'type': 1, 'points': v2.holder_.factory.combo.length.toString()}); v2.holder_.factory.level.changePoints((v2.holder_.factory.combo.length - 1) * 10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } } v2.holder_.angry = false; v2.holder_.moodFlag = false; v2.holder_.factory.combo1Check(v2.holder_); if (v2.holder_.factory.level.game.popUpPause) { } v2.holder_.where.bathBaby(v2.holder_); } if (v2.holder_.need == v2.holder_.factory.sleepy) { v2._x = v2.holder_.where.clip._x + 30; v2._y = v2.holder_.where.clip._y + 50; v2.holder_.lastActionBath = true; v2.holder_.lastActionBed = false; v2.holder_.where.bathBaby(v2.holder_); v2.holder_.factory.combo1Check(v2.holder_); } } } if (v2.holder_.where.ID == 3 && v2.holder_.released == false && v2.holder_.factory.level.mouse.leftBaby == true && v2.holder_.where.isClean == true && !v2.holder_.factory.level.game.helpTips[16].clip) { v2.holder_.factory.level.mouse.leftBaby = false; v2.holder_.released = true; v2.holder_.factory.level.mouse.Baby = undefined; if (v2.holder_.need == 11 && v2.holder_.launcherNeed == true) { if (v2.holder_.angry == true) { v2.holder_.GotoAndStop('Angry'); v2.holder_.clip.cloud.gotoAndStop('need11'); } else { v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.happybebe.gotoAndPlay(1); v2.holder_.clip.cloud.gotoAndStop(2); } } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } v2.holder_.draging = false; v2.holder_.where.hasBaby = true; v7 = v2.holder_.where.clip.getDepth() + 3; v2.swapDepths(v7); clearInterval(v2.holder_.intID); v2._x = v2.holder_.where.clip._x + 5; v2._y = v2.holder_.where.clip._y + 50; v2.holder_.hitObject = true; v2.holder_.where.Baby = v2.holder_; if (v2.holder_.need == v2.holder_.factory.sleepy || v2.holder_.need == v2.holder_.factory.dirty) { v2._x = v2.holder_.where.clip._x + 5; v2._y = v2.holder_.where.clip._y + 50; if (v2.holder_.lastActionBed == false) { if (v2.holder_.need == v2.holder_.factory.sleepy) { if (v2.holder_.factory.level.game.popUpPause) { } if (v2.holder_.angry == true) { v2.holder_.factory.level.game.successAction = 0; } else { if (v2.holder_.factory.comboCheck(v2.holder_.need) == false) { v2.holder_.factory.level.changePoints(10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } else { v2.holder_.factory.level.pointsArray.push({'type': 1, 'points': v2.holder_.factory.combo.length.toString()}); v2.holder_.factory.level.changePoints((v2.holder_.factory.combo.length - 1) * 10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } } v2.holder_.angry = false; v2.holder_.moodFlag = false; } v2.holder_.lastActionBath = false; v2.holder_.lastActionBed = true; v2.holder_.where.babySleep(v2.holder_); v2.holder_.factory.combo1Check(v2.holder_); } v2.holder_.sameObject = false; } } if (v2.holder_.released == false && v2.holder_.hitObject == false) { v3 = 0; while (v3 <= v2.holder_.factory.slots.length - 1) { if (v2.hitTest(v2.holder_.factory.slots[v3].clip) && v2.holder_.factory.slots[v3].hasBaby == false && v2.holder_.where.ID != v2.holder_.factory.slots[v3].ID) { if (v2.holder_.factory.slots[v3] != v2.holder_.factory.slots[8]) { v2.holder_.factory.level.game.helpTips[18].hidePopUp(); v2.holder_.onLine = true; v2.holder_.factory.level.mouse.Baby = undefined; clearInterval(v2.holder_.intID); v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); v2.holder_.draging = false; v2.holder_.factory.slots[v3].hasBaby = true; v2.holder_.where.Baby = undefined; v2.holder_.where = v2.holder_.factory.slots[v3]; v2._x = v2.holder_.where.clip._x - 35; v2._y = v2.holder_.where.clip._y + 10; v7 = v2.holder_.where.clip.getDepth() + 3; v2.swapDepths(v7); v2.holder_.hitObject = true; v2.holder_.where.linkID = v2.holder_.factory.slots[v3].linkID; v2.holder_.where.Baby = v2.holder_; v2.holder_.factory.slots[v3].hasBaby = true; v2.holder_.lastActionBath = false; v2.holder_.lastActionBed = false; v2.holder_.released = true; if (v2.holder_.need == 11) { if (v2.holder_.launcherNeed == true) { v2.holder_.factory.IfIndicatorFull(); if (v2.holder_.factory.comboCheck(v2.holder_.need) == false) { v2.holder_.factory.level.changePoints(10, v2._x, v2._y - 70); } else { v2.holder_.factory.level.pointsArray.push({'type': 1, 'points': v2.holder_.factory.combo.length.toString()}); v2.holder_.factory.level.changePoints((v2.holder_.factory.combo.length - 1) * 10, v2._x, v2._y - 70); } v2.holder_.factory.holder.attachMovie('srce', 'srce', 99599, {'_x': v2._x + 30, '_y': v2._y - 70}); v2.holder_.factory.holder.srce.factory = v2.holder_.factory; v2.holder_.factory.target.sndCtrl.stopSound(v2.holder_.soundsId.srce_snd); v2.holder_.factory.target.sndCtrl.playSound(v2.holder_.soundsId.srce_snd); } v2.holder_.angry = false; v2.holder_.moodFlag = false; v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.cloud.gotoAndStop(1); } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } break; } break; } ++v3; } } if (v2.holder_.hitObject == false && v2.holder_.released == false) { v2.holder_.factory.level.mouse.Baby = undefined; v2.holder_.draging = false; if (v2.holder_.where.ID == 1) { if (v2.holder_.where.linkID == v2.holder_.factory.slots[8].linkID) { v3 = 8; while (v3 >= 0) { if (v2.holder_.factory.slots[v3].hasBaby == false) { v2.holder_.factory.level.game.helpTips[18].hidePopUp(); v2.holder_.onLine = true; clearInterval(v2.holder_.intID); v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); v2.holder_.where = undefined; v2.holder_.where.Baby = undefined; v2.holder_.where = v2.holder_.factory.slots[v3]; v2.holder_.where.hasBaby = true; v2.holder_.where.Baby = v2.holder_; v2._x = v2.holder_.factory.slots[v3].clip._x - 35; v2._y = v2.holder_.factory.slots[v3].clip._y + 10; v2.holder_.released = true; if (v2.holder_.need == 11) { v2.holder_.angry = false; v2.holder_.moodFlag = false; v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.cloud.gotoAndStop(1); } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } v7 = v2.holder_.factory.slots[v3].clip.getDepth() + 3; v2.holder_.lastActionBath = false; v2.holder_.lastActionBed = false; v2.swapDepths(v7); if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } break; } --v3; } } else { v2._x = v2.holder_.where.clip._x - 35; v2._y = v2.holder_.where.clip._y + 10; clearInterval(v2.holder_.intID); v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); v2.holder_.released = true; if (v2.holder_.need == 11) { v2.holder_.angry = false; v2.holder_.moodFlag = false; v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.cloud.gotoAndStop(1); } if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } v7 = v2.holder_.where.clip.getDepth() + 3; v2.swapDepths(v7); v2.holder_.lastActionBath = false; v2.holder_.lastActionBed = false; v2.holder_.where.hasBaby = true; v2.holder_.where.Baby = v2.holder_; v2.holder_.factory.level.game.helpTips[18].hidePopUp(); v2.holder_.onLine = true; } } else { clearInterval(v2.holder_.intID); v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); v2.holder_.released = true; if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } if (v2.holder_.where.ID == 2) { v2._x = v2.holder_.where.clip._x + 30; v2._y = v2.holder_.where.clip._y - 25; v2.holder_.lastActionBath = true; v2.holder_.lastActionBed = false; v2.holder_.where.BathFront.kada.gotoAndStop(4); if (v2.holder_.need == 11 && v2.holder_.launcherNeed == true) { if (v2.holder_.angry == true) { v2.holder_.GotoAndStop('Angry'); v2.holder_.clip.cloud.gotoAndStop('need11'); } else { v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.cloud.gotoAndStop(2); } } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } if (v2.holder_.need == v2.holder_.factory.dirty) { v2.holder_.lastActionBath = true; v2.holder_.lastActionBed = false; if (v2.holder_.angry == true) { v2.holder_.factory.level.game.successAction = 0; } else { if (v2.holder_.factory.comboCheck(v2.holder_.need) == false) { v2.holder_.factory.level.changePoints(10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } else { v2.holder_.factory.level.pointsArray.push({'type': 1, 'points': v2.holder_.factory.combo.length.toString()}); v2.holder_.factory.level.changePoints((v2.holder_.factory.combo.length - 1) * 10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } } v2.holder_.angry = false; v2.holder_.moodFlag = false; v2.holder_.factory.combo1Check(v2.holder_); if (v2.holder_.factory.level.game.popUpPause) { } v2.holder_.where.bathBaby(v2.holder_); } } } if (v2.holder_.where.ID == 3) { v2._x = v2.holder_.where.clip._x + 5; v2._y = v2.holder_.where.clip._y + 50; if (v2.holder_.need == 11 && v2.holder_.launcherNeed == true) { if (v2.holder_.angry == true) { v2.holder_.GotoAndStop('Angry'); v2.holder_.clip.cloud.gotoAndStop('need11'); } else { v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.cloud.gotoAndStop(2); } } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } if (v2.holder_.need == v2.holder_.factory.sleepy) { v2.holder_.lastActionBath = true; v2.holder_.lastActionBed = false; if (v2.holder_.angry == true) { v2.holder_.factory.level.game.successAction = 0; } else { if (v2.holder_.factory.comboCheck(v2.holder_.need) == false) { v2.holder_.factory.level.changePoints(10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } else { v2.holder_.factory.level.pointsArray.push({'type': 1, 'points': v2.holder_.factory.combo.length.toString()}); v2.holder_.factory.level.changePoints((v2.holder_.factory.combo.length - 1) * 10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } } if (v2.holder_.factory.level.game.popUpPause) { } v2.holder_.angry = false; v2.holder_.moodFlag = false; v2.holder_.factory.combo1Check(v2.holder_); v2.holder_.where.babySleep(v2.holder_); } else { if (v2.holder_.lastActionBed == false) { v2.holder_.where.babySleep(v2.holder_); } } } v2.holder_.lastActionBath = false; v2.holder_.lastActionBed = true; } v7 = v2.holder_.where.clip.getDepth() + 3; v2.swapDepths(v7); v2.holder_.where.Baby = v2.holder_; v2.holder_.where.hasBaby = true; } } v2.holder_.hitObject = false; v9 = v2.holder_.where.getDepth() + 1; } v3 = 0; while (v3 <= 2) { if (this.factory.Bath[v3].Baby == undefined) { this.factory.Bath[v3].BathFront.kada.gotoAndStop(1); } ++v3; } }; goto 48213; label 48208: goto 66275; label 48213: storedv2.onrelease = function () { var v2 = this; v2.holder_.onReleaseBaby = true; v2.holder_.released = false; trace('This.holder_.factory.Bath[0].hasBaby ' + v2.holder_.factory.Bath[0].hasBaby); trace('This.holder_.factory.Bath[1].hasBaby ' + v2.holder_.factory.Bath[0].hasBaby); trace('This.holder_.factory.Bath[2].hasBaby ' + v2.holder_.factory.Bath[0].hasBaby); trace('This.holder_.released ' + v2.holder_.released); trace('This.holder_.need ' + v2.holder_.need); trace('This.holder_.draging ' + v2.holder_.draging); trace('This.holder_.where.ID ' + v2.holder_.where.ID); trace('This.holder_.factory.Bath[0].BathFront.kada.hitClip ' + v2.holder_.factory.Bath[0].BathFront.kada.hitClip); trace('this.holder_.factory.Bath[1].BathFront.kada.hitClip ' + v2.holder_.factory.Bath[1].BathFront.kada.hitClip); trace('this.holder_.factory.Bath[2].BathFront.kada.hitClip ' + v2.holder_.factory.Bath[2].BathFront.kada.hitClip); if (v2.holder_.hasToy == false && v2.holder_.hasBottle == false && v2.holder_.draging == true) { if (v2.holder_.angry == true) { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); var v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } if (v2.holder_.draging == true) { var v3 = 0; while (v3 <= 2) { var v4 = v2.holder_.factory.Bed[v3].BedFront.bed.hitClip.hitTest(_xmouse, _ymouse, true) && v2.holder_.factory.Bed[v3].hasBaby == false && v2.holder_.factory.Bed[v3].isClean == true && v2.holder_.released == false && (v2.holder_.need == v2.holder_.factory.sleepy || v2.holder_.need == v2.holder_.factory.dirty) && !v2.holder_.factory.level.game.helpTips[16].clip; if (v4) { v2.holder_.draging = false; v2.holder_.factory.level.mouse.Baby = undefined; clearInterval(v2.holder_.intID); v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); v2.holder_.sameObject = false; if (v2.holder_.where.ID != undefined) { if (v2.holder_.where.ID == v2.holder_.factory.Bed[v3].ID) { v2.holder_.sameObject = true; } } v2.holder_.released = true; if (v2.holder_.need == 11 && v2.holder_.launcherNeed == true) { if (v2.holder_.angry == true) { v2.holder_.GotoAndStop('Angry'); v2.holder_.clip.cloud.gotoAndStop('need11'); } else { v2.holder_.GotoAndStop('Happy'); v2.happybebe.gotoAndPlay(1); v2.holder_.clip.cloud.gotoAndStop(2); } } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } v2.holder_.draging = false; v2.holder_.factory.Bed[v3].hasBaby = true; v2.holder_.where.Baby = undefined; v2.holder_.where = v2.holder_.factory.Bed[v3]; var v7 = v2.holder_.where.clip.getDepth() + 3; v2.swapDepths(v7); v2._x = v2.holder_.where.clip._x + 5; v2._y = v2.holder_.where.clip._y + 50; v2.holder_.where.ID = v2.holder_.factory.Bed[v3].ID; v2.holder_.hitObject = true; v2.holder_.where.Baby = v2.holder_; if (v2.holder_.lastActionBed == false) { if (v2.holder_.need == v2.holder_.factory.sleepy || v2.holder_.need == v2.holder_.factory.dirty) { if (v2.holder_.need == v2.holder_.factory.sleepy) { if (v2.holder_.factory.level.game.popUpPause) { } if (v2.holder_.angry == true) { v2.holder_.factory.level.game.successAction = 0; } else { if (v2.holder_.factory.comboCheck(v2.holder_.need) == false) { v2.holder_.factory.level.changePoints(10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } else { v2.holder_.factory.level.pointsArray.push({'type': 1, 'points': v2.holder_.factory.combo.length.toString()}); v2.holder_.factory.level.changePoints((v2.holder_.factory.combo.length - 1) * 10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } } v2.holder_.angry = false; v2.holder_.moodFlag = false; } v2.holder_.lastActionBath = false; v2.holder_.lastActionBed = true; v2.holder_.where.babySleep(v2.holder_); v2.holder_.factory.combo1Check(v2.holder_); } } v2.holder_.sameObject = false; break; } ++v3; } v3 = 0; while (v3 <= 2) { trace('iiiiiiiiiiiiiiiiiiiiiiiiii ' + v3); trace('This.holder_.factory.Bath[0].hasBaby ' + v2.holder_.factory.Bath[0].hasBaby); trace('This.holder_.factory.Bath[1].hasBaby ' + v2.holder_.factory.Bath[0].hasBaby); trace('This.holder_.factory.Bath[2].hasBaby ' + v2.holder_.factory.Bath[0].hasBaby); trace('This.holder_.released ' + v2.holder_.released); trace('This.holder_.need ' + v2.holder_.need); trace('This.holder_.draging ' + v2.holder_.draging); trace('This.holder_.where.ID ' + v2.holder_.where.ID); trace('This.holder_.factory.Bath[0].BathFront.kada.hitClip ' + v2.holder_.factory.Bath[0].BathFront.kada.hitClip); trace('this.holder_.factory.Bath[1].BathFront.kada.hitClip ' + v2.holder_.factory.Bath[1].BathFront.kada.hitClip); trace('this.holder_.factory.Bath[2].BathFront.kada.hitClip ' + v2.holder_.factory.Bath[2].BathFront.kada.hitClip); trace('(This.holder_.factory.Bath[i].BathFront.kada.hitClip.hitTest(_xmouse, _ymouse, true) ' + v2.holder_.factory.Bath[v3].BathFront.kada.hitClip.hitTest(_xmouse, _ymouse, true)); trace('This.holder_.factory.sleepy ' + v2.holder_.factory.sleepy); trace('This.holder_.factory.dirty ' + v2.holder_.factory.dirty); var v9 = v2.holder_.factory.Bath[v3].BathFront.kada.hitClip.hitTest(_xmouse, _ymouse, true) && v2.holder_.factory.Bath[v3].hasBaby == false && v2.holder_.released == false && (v2.holder_.need == v2.holder_.factory.sleepy || v2.holder_.need == v2.holder_.factory.dirty); trace('uslov ' + v9); trace('((This.holder_.need == This.holder_.factory.sleepy) || (This.holder_.need == This.holder_.factory.dirty)) ' + (v2.holder_.need == v2.holder_.factory.sleepy || v2.holder_.need == v2.holder_.factory.dirty)); if (v9) { trace('HIT BATH'); v2.holder_.factory.level.mouse.Baby = undefined; clearInterval(v2.holder_.intID); v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); v2.holder_.sameObject = false; if (v2.holder_.where.ID != undefined) { if (v2.holder_.where.ID == v2.holder_.factory.Bath[v3].ID) { v2.holder_.sameObject = true; } } v2.holder_.released = true; if (v2.holder_.need == 11 && v2.holder_.launcherNeed == true) { if (v2.holder_.angry == true) { v2.holder_.GotoAndStop('Angry'); v2.holder_.clip.cloud.gotoAndStop('need11'); } else { v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.cloud.gotoAndStop(2); } } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } v2.holder_.where.BathFront.kada.gotoAndStop(4); v2.holder_.draging = false; v2.holder_.factory.Bath[v3].hasBaby = true; v2.holder_.where.Baby = undefined; v2.holder_.where = v2.holder_.factory.Bath[v3]; v7 = v2.holder_.where.clip.getDepth() + 3; v2.swapDepths(v7); v2._x = v2.holder_.where.clip._x + 30; v2._y = v2.holder_.where.clip._y - 25; v2.holder_.hitObject = true; v2.holder_.where.ID = v2.holder_.factory.Bath[v3].ID; v2.holder_.where.Baby = v2.holder_; if (v2.holder_.lastActionBath == false) { if (v2.holder_.need == v2.holder_.factory.dirty) { v2.holder_.lastActionBath = true; v2.holder_.lastActionBed = false; if (v2.holder_.angry == true) { v2.holder_.factory.level.game.successAction = 0; } else { if (v2.holder_.factory.comboCheck(v2.holder_.need) == false) { v2.holder_.factory.level.changePoints(10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } else { v2.holder_.factory.level.pointsArray.push({'type': 1, 'points': v2.holder_.factory.combo.length.toString()}); v2.holder_.factory.level.changePoints((v2.holder_.factory.combo.length - 1) * 10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } } v2.holder_.angry = false; v2.holder_.moodFlag = false; v2.holder_.factory.combo1Check(v2.holder_); if (v2.holder_.factory.level.game.popUpPause) { } v2.holder_.factory.Bath[v3].bathBaby(v2.holder_); } if (v2.holder_.need == v2.holder_.factory.sleepy) { v2.holder_.lastActionBath = true; v2.holder_.lastActionBed = false; v2.holder_.factory.Bath[v3].bathBaby(v2.holder_); v2.holder_.factory.combo1Check(v2.holder_); } } v2.holder_.sameObject = false; break; } ++v3; } if (v2.holder_.where.ID == 2 && v2.holder_.released == false && v2.holder_.factory.level.mouse.leftBaby == true) { clearInterval(v2.holder_.intID); v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); v2.holder_.factory.level.mouse.leftBaby = false; v2.holder_.released = true; v2.holder_.factory.level.mouse.Baby = undefined; v2.holder_.draging = false; v2.holder_.where.hasBaby = true; v7 = v2.holder_.where.clip.getDepth() + 3; v2.swapDepths(v7); v2.holder_.where.BathFront.kada.gotoAndStop(4); if (v2.holder_.need == 11 && v2.holder_.launcherNeed == true) { if (v2.holder_.angry == true) { v2.holder_.GotoAndStop('Angry'); v2.holder_.clip.cloud.gotoAndStop('need11'); } else { v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.cloud.gotoAndStop(2); } } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } v2._x = v2.holder_.where.clip._x + 30; v2._y = v2.holder_.where.clip._y - 25; v2.holder_.hitObject = true; v2.holder_.where.Baby = v2.holder_; if (v2.holder_.lastActionBath == false) { if (v2.holder_.need == v2.holder_.factory.dirty) { v2.holder_.lastActionBath = true; v2.holder_.lastActionBed = false; if (v2.holder_.angry == true) { v2.holder_.factory.level.game.successAction = 0; } else { if (v2.holder_.factory.comboCheck(v2.holder_.need) == false) { v2.holder_.factory.level.changePoints(10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } else { v2.holder_.factory.level.pointsArray.push({'type': 1, 'points': v2.holder_.factory.combo.length.toString()}); v2.holder_.factory.level.changePoints((v2.holder_.factory.combo.length - 1) * 10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } } v2.holder_.angry = false; v2.holder_.moodFlag = false; v2.holder_.factory.combo1Check(v2.holder_); if (v2.holder_.factory.level.game.popUpPause) { } v2.holder_.where.bathBaby(v2.holder_); } if (v2.holder_.need == v2.holder_.factory.sleepy) { v2._x = v2.holder_.where.clip._x + 30; v2._y = v2.holder_.where.clip._y + 50; v2.holder_.lastActionBath = true; v2.holder_.lastActionBed = false; v2.holder_.where.bathBaby(v2.holder_); v2.holder_.factory.combo1Check(v2.holder_); } } } if (v2.holder_.where.ID == 3 && v2.holder_.released == false && v2.holder_.factory.level.mouse.leftBaby == true && v2.holder_.where.isClean == true && !v2.holder_.factory.level.game.helpTips[16].clip) { clearInterval(v2.holder_.intID); v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); v2.holder_.draging = false; v2.holder_.factory.level.mouse.leftBaby = false; v2.holder_.released = true; v2.holder_.factory.level.mouse.Baby = undefined; if (v2.holder_.need == 11 && v2.holder_.launcherNeed == true) { if (v2.holder_.angry == true) { v2.holder_.GotoAndStop('Angry'); v2.holder_.clip.cloud.gotoAndStop('need11'); } else { v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.happybebe.gotoAndPlay(1); v2.holder_.clip.cloud.gotoAndStop(2); } } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } v2.holder_.draging = false; v2.holder_.where.hasBaby = true; v7 = v2.holder_.where.clip.getDepth() + 3; v2.swapDepths(v7); v2._x = v2.holder_.where.clip._x + 5; v2._y = v2.holder_.where.clip._y + 50; v2.holder_.hitObject = true; v2.holder_.where.Baby = v2.holder_; if (v2.holder_.need == v2.holder_.factory.sleepy || v2.holder_.need == v2.holder_.factory.dirty) { v2._x = v2.holder_.where.clip._x + 5; v2._y = v2.holder_.where.clip._y + 50; if (v2.holder_.lastActionBed == false) { if (v2.holder_.need == v2.holder_.factory.sleepy) { if (v2.holder_.factory.level.game.popUpPause) { } if (v2.holder_.angry == true) { v2.holder_.factory.level.game.successAction = 0; } else { if (v2.holder_.factory.comboCheck(v2.holder_.need) == false) { v2.holder_.factory.level.changePoints(10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } else { v2.holder_.factory.level.pointsArray.push({'type': 1, 'points': v2.holder_.factory.combo.length.toString()}); v2.holder_.factory.level.changePoints((v2.holder_.factory.combo.length - 1) * 10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } } v2.holder_.angry = false; v2.holder_.moodFlag = false; } v2.holder_.lastActionBath = false; v2.holder_.lastActionBed = true; v2.holder_.where.babySleep(v2.holder_); v2.holder_.factory.combo1Check(v2.holder_); } v2.holder_.sameObject = false; } } trace('This.holder_.released ' + v2.holder_.released); trace('This.holder_.hitObject ' + v2.holder_.hitObject); if (v2.holder_.released == false && v2.holder_.hitObject == false) { v3 = 0; while (v3 <= v2.holder_.factory.slots.length - 1) { if (v2.hitTest(v2.holder_.factory.slots[v3].clip) && v2.holder_.factory.slots[v3].hasBaby == false && v2.holder_.where.ID != v2.holder_.factory.slots[v3].ID) { if (v2.holder_.factory.slots[v3] != v2.holder_.factory.slots[8]) { v2.holder_.onLine = true; v2.holder_.factory.level.mouse.Baby = undefined; v2.holder_.factory.level.game.helpTips[18].hidePopUp(); clearInterval(v2.holder_.intID); v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); v2.holder_.draging = false; v2.holder_.factory.slots[v3].hasBaby = true; v2.holder_.where.Baby = undefined; v2.holder_.where = v2.holder_.factory.slots[v3]; v7 = v2.holder_.where.clip.getDepth() + 2; v2.swapDepths(v7); v2.holder_.hitObject = true; v2.holder_.where.linkID = v2.holder_.factory.slots[v3].linkID; v2._x = v2.holder_.where.clip._x - 35; v2._y = v2.holder_.where.clip._y + 10; v2.holder_.where.Baby = v2.holder_; v2.holder_.factory.slots[v3].hasBaby = true; v2.holder_.lastActionBath = false; v2.holder_.lastActionBed = false; v2.holder_.released = true; if (v2.holder_.need == 11) { if (v2.holder_.launcherNeed == true) { v2.holder_.factory.IfIndicatorFull(); if (v2.holder_.factory.comboCheck(v2.holder_.need) == false) { v2.holder_.factory.level.changePoints(10, v2._x, v2._y - 70); } else { v2.holder_.factory.level.pointsArray.push({'type': 1, 'points': v2.holder_.factory.combo.length.toString()}); v2.holder_.factory.level.changePoints((v2.holder_.factory.combo.length - 1) * 10, v2._x, v2._y - 70); } v2.holder_.factory.holder.attachMovie('srce', 'srce', 95559, {'_x': v2._x + 30, '_y': v2._y - 70}); v2.holder_.factory.holder.srce.factory = v2.holder_.factory; v2.holder_.factory.target.sndCtrl.stopSound(v2.holder_.soundsId.srce_snd); v2.holder_.factory.target.sndCtrl.playSound(v2.holder_.soundsId.srce_snd); } v2.holder_.angry = false; v2.holder_.moodFlag = false; v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.cloud.gotoAndStop(1); } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } break; } break; } ++v3; } } if (v2.holder_.hitObject == false && v2.holder_.released == false) { v2.holder_.lastActionBath = false; v2.holder_.lastActionBed = false; v2.holder_.released = true; v2.holder_.factory.level.mouse.Baby = undefined; v2.holder_.draging = false; if (v2.holder_.where.ID == 1) { if (v2.holder_.where.linkID == v2.holder_.factory.slots[8].linkID) { v3 = 8; while (v3 >= 0) { if (v2.holder_.factory.slots[v3].hasBaby == false) { v2.holder_.factory.level.game.helpTips[18].hidePopUp(); v2.holder_.onLine = true; clearInterval(v2.holder_.intID); v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); v2.holder_.where.Baby = undefined; v2.holder_.where = undefined; v2.holder_.where = v2.holder_.factory.slots[v3]; v2._x = v2.holder_.factory.slots[v3].clip._x - 35; v2._y = v2.holder_.factory.slots[v3].clip._y + 10; v7 = v2.holder_.factory.slots[v3].clip.getDepth() + 2; v2.swapDepths(v7); v2.holder_.where.hasBaby = true; v2.holder_.where.Baby = v2.holder_; if (v2.holder_.need == 11) { v2.holder_.angry = false; v2.holder_.moodFlag = false; v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.cloud.gotoAndStop(1); } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } break; } --v3; } } else { v2._x = v2.holder_.where.clip._x - 35; v2._y = v2.holder_.where.clip._y + 10; clearInterval(v2.holder_.intID); v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); v2.holder_.lastActionBath = false; v2.holder_.lastActionBed = false; v7 = v2.holder_.where.clip.getDepth() + 2; v2.swapDepths(v7); v2.holder_.where.hasBaby = true; v2.holder_.where.Baby = v2.holder_; v2.holder_.factory.level.game.helpTips[18].hidePopUp(); v2.holder_.onLine = true; if (v2.holder_.need == 11) { v2.holder_.angry = false; v2.holder_.moodFlag = false; v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.cloud.gotoAndStop(1); } if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } } } else { clearInterval(v2.holder_.intID); v2.holder_.factory.target.mousePointer.clip.gotoAndStop('normal'); if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } if (v2.holder_.where.ID == 2) { v2._x = v2.holder_.where.clip._x + 30; v2._y = v2.holder_.where.clip._y - 25; v2.holder_.lastActionBath = true; v2.holder_.lastActionBed = false; v2.holder_.where.BathFront.kada.gotoAndStop(4); if (v2.holder_.need == 11 && v2.holder_.launcherNeed == true) { if (v2.holder_.angry == true) { v2.holder_.GotoAndStop('Angry'); v2.holder_.clip.cloud.gotoAndStop('need11'); } else { v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.cloud.gotoAndStop(2); } } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } if (v2.holder_.need == v2.holder_.factory.dirty) { v2.holder_.lastActionBath = true; v2.holder_.lastActionBed = false; if (v2.holder_.angry == true) { v2.holder_.factory.level.game.successAction = 0; } else { if (v2.holder_.factory.comboCheck(v2.holder_.need) == false) { v2.holder_.factory.level.changePoints(10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } else { v2.holder_.factory.level.pointsArray.push({'type': 1, 'points': v2.holder_.factory.combo.length.toString()}); v2.holder_.factory.level.changePoints((v2.holder_.factory.combo.length - 1) * 10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } } v2.holder_.angry = false; v2.holder_.moodFlag = false; v2.holder_.factory.combo1Check(v2.holder_); if (v2.holder_.factory.level.game.popUpPause) { } v2.holder_.where.bathBaby(v2.holder_); } } v2._x = v2.holder_.where.clip._x + 30; v2._y = v2.holder_.where.clip._y - 25; } if (v2.holder_.where.ID == 3) { if (v2.holder_.need == 11 && v2.holder_.launcherNeed == true) { if (v2.holder_.angry == true) { v2._x = v2.holder_.where.clip._x + 5; v2._y = v2.holder_.where.clip._y + 50; v2.holder_.GotoAndStop('Angry'); v2.holder_.clip.cloud.gotoAndStop('need11'); } else { v2._x = v2.holder_.where.clip._x + 5; v2._y = v2.holder_.where.clip._y + 50; v2.holder_.GotoAndStop('Happy'); v2.holder_.clip.cloud.gotoAndStop(2); } } else { if (v2.holder_.angry == false) { v8 = v2.holder_.ChackNeedName(v2.holder_.need); v2.holder_.GotoAndStop(v8); } else { if (v2.holder_.need == 2) { v2.holder_.GotoAndStop('Angry_pooped'); } else { if (v2.holder_.need == 4) { v2.holder_.GotoAndStop('Angry_Vomit'); } else { v2.holder_.GotoAndStop('Angry'); v8 = 'need' + v2.holder_.need.toString(); v2.holder_.clip.cloud.gotoAndStop(v8); } } } v2._x = v2.holder_.where.clip._x + 5; v2._y = v2.holder_.where.clip._y + 50; if (v2.holder_.need == v2.holder_.factory.sleepy) { v2.holder_.lastActionBath = true; v2.holder_.lastActionBed = false; if (v2.holder_.angry == true) { v2.holder_.factory.level.game.successAction = 0; } else { if (v2.holder_.factory.comboCheck(v2.holder_.need) == false) { v2.holder_.factory.level.changePoints(10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } else { v2.holder_.factory.level.pointsArray.push({'type': 1, 'points': v2.holder_.factory.combo.length.toString()}); v2.holder_.factory.level.changePoints((v2.holder_.factory.combo.length - 1) * 10, v2.holder_.where.clip._x, v2.holder_.where.clip._y); } } if (v2.holder_.factory.level.game.popUpPause) { } v2.holder_.angry = false; v2.holder_.moodFlag = false; v2.holder_.factory.combo1Check(v2.holder_); v2.holder_.where.babySleep(v2.holder_); } else { if (v2.holder_.lastActionBed == false) { v2.holder_.where.babySleep(v2.holder_); } } } v2.holder_.lastActionBath = false; v2.holder_.lastActionBed = true; } v7 = v2.holder_.where.clip.getDepth() + 2; v2.swapDepths(v7); v2.holder_.where.Baby = v2.holder_; v2.holder_.where.hasBaby = true; } } v2.holder_.hitObject = false; v9 = v2.holder_.where.getDepth() + 1; } v3 = 0; while (v3 <= 2) { if (this.factory.Bath[v3].Baby == undefined) { this.factory.Bath[v3].BathFront.kada.gotoAndStop(1); } ++v3; } }; label 66275: ASSetPropFlags(mcs.Baby.prototype, null, 1); #endinitclip } movieClip 9316 __Packages.mcs.Sack { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Sack) { var v1 = function (factory_, linkID, x, y, depth) { super(linkID, x, y); this.depth = depth; this.factory = factory_; this.sackType = 0; this.twinType = 0; }; mcs.Sack = v1; mcs.Sack extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.Sack implements _global.utils.IClipEvents; v2.sendBaby = function (level, callTimes) { if (!this.factory.level.pause) { if (level == this.factory.level.game.levelNum && this.factory.Tube.clip && callTimes == this.factory.level.game.factoryCallTimes) { this.factory.target.sndCtrl.stopSound(this.factory.soundsId.tube_snd); this.factory.target.sndCtrl.playSound(this.factory.soundsId.tube_snd); this.factory.SackMachine.telepTube.gotoAndStop(2); utils.Delegate.callDelayed(this, this.attachSack, 280, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } } else { utils.Delegate.callDelayed(this, this.sendBaby, 500, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } }; v2.attachSack = function (level, callTimes) { if (!this.factory.level.pause) { trace('attachSack'); if (level == this.factory.level.game.levelNum && this.factory.Tube.clip && callTimes == this.factory.level.game.factoryCallTimes) { trace('attachSack vnatre'); this.factory.level.game.helpTips[19].hidePopUp(); this.factory.level.game.helpTips[20].showPopUp(); this.factory.SackMachine.numOfSacks += 1; this.factory.babiesSendNum += 1; var v3 = this.sackType + 1; this.factory.PackingStork.gotoAndStop(v3); this.packingAnim = new utils.Animation(this.factory.PackingStork.anim, int(this.factory.level.LevelConfig.packingSpeed)); this.packingAnim.startAnimation(int(this.factory.level.LevelConfig.packingSpeed)); this.factory.PackingStork.sack = this; var v2 = (24 / this.factory.level.LevelConfig.packingSpeed) * 1000; utils.Delegate.callDelayed(this, this.sendToOrphanage, v2, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } } else { utils.Delegate.callDelayed(this, this.attachSack, 500, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } }; v2.removeSack = function () { this.clip.removeMovieClip(); }; v2.sendToOrphanage = function (level, callTimes) { trace('sendToOrphanage 111'); if (!this.factory.level.pause) { if (level == this.factory.level.game.levelNum && this.factory.Tube.clip && callTimes == this.factory.level.game.factoryCallTimes) { this.factory.SelectObject(this.factory.Tube); if (this.factory.level.LevelConfig.launcherDemage[this.factory.babiesSendNum - 1] == 1) { this.factory.Tube.toBeDemaged = true; } trace('sendToOrphanage 222'); if (this.factory.Tube.sackNum == 0) { this.factory.shakeFlag = true; this.factory.shakeTime = getTimer(); } trace('sendToOrphanage 333'); this.factory.Tube.sackNum += 1; if (this.factory.level.allBabiesSendHappy == true && this.factory.babiesSendNum == this.factory.maxLevelBabies) { var v3 = this.factory.babiesSendNum * 2; this.factory.level.pointsArray.push({'type': 2, 'points': v3.toString()}); this.factory.level.changePoints(this.factory.babiesSendNum * 10, this.factory.SackSpot.x + 50, this.factory.SackSpot.y); } this.factory.SackMachine.numOfSacks = 0; this.factory.Tube.clip.sack_num.text = this.factory.Tube.sackNum.toString(); if (this.factory.Tube.toBeDemaged == true && this.factory.Tube.greenArrow == true) { this.factory.Tube.demagedTube(); this.factory.Tube.toBeDemaged = false; } this.factory.target.sndCtrl.stopSound(this.factory.soundsId.babyinlauncher_snd); this.factory.target.sndCtrl.playSound(this.factory.soundsId.babyinlauncher_snd); if (this.sackType == 1) { if (this.twinType == 1) { this.factory.level.singelGirlSacks += 1; this.factory.Tube.redNum += 1; _global.launcher.setFemaleNum(this.factory.Tube.redNum); } else { if (this.twinType == 2) { this.factory.level.twinGirlSacks += 1; this.factory.Tube.redNum += 1; _global.launcher.setFemaleNum(this.factory.Tube.redNum); } else { if (this.twinType == 3) { this.factory.level.tripletGirlSacks += 1; this.factory.Tube.redNum += 1; _global.launcher.setFemaleNum(this.factory.Tube.redNum); } else { if (this.twinType == 4) { this.factory.level.quadrupletGirlSacks += 1; this.factory.Tube.redNum += 1; _global.launcher.setFemaleNum(this.factory.Tube.redNum); } } } } } else { if (this.twinType == 1) { this.factory.level.singelBoySacks += 1; this.factory.Tube.blueNum += 1; _global.launcher.setMaleNum(this.factory.Tube.blueNum); } else { if (this.twinType == 2) { this.factory.level.twinBoySacks += 1; this.factory.Tube.blueNum += 1; _global.launcher.setMaleNum(this.factory.Tube.blueNum); } else { if (this.twinType == 3) { this.factory.level.tripletBoySacks += 1; this.factory.Tube.blueNum += 1; _global.launcher.setMaleNum(this.factory.Tube.blueNum); } else { if (this.twinType == 4) { this.factory.level.quadrupletBoySacks += 1; this.factory.Tube.blueNum += 1; _global.launcher.setMaleNum(this.factory.Tube.blueNum); } } } } } trace('sendToOrphanage 444'); if (this.factory.Tube.arrowMove == false) { this.factory.Tube.arrowMove = true; this.factory.Tube.moveArrow(this.factory.level.clock.toSeconds(), 0, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } this.factory.RedStork.removeStork(); this.factory.RedStork.attachStork(); this.factory.RedStork.clip._x = this.factory.Tube.clip._x - 100; this.factory.RedStork.clip._y = this.factory.Tube.clip._y; this.factory.Tube.sackBabies.push(this.factory.RedStork.Sack.Baby); this.factory.RedStork.Sack = undefined; trace('sendToOrphanage 555'); } } else { utils.Delegate.callDelayed(this, this.sendToOrphanage, 500, this.factory.level.game.levelNum, this.factory.level.game.factoryCallTimes); } }; v2.addEvents = function () { this.clip.holder = this; this.clip.onPress = function () {}; }; ASSetPropFlags(mcs.Sack.prototype, null, 1); } #endinitclip } movieClip 9317 __Packages.com.Delivery { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.Delivery) { var v1 = function (level_) { super(); this.CurentPopUp = undefined; this.endGameFlag = false; this.GameIsRuning = false; this.f = new scr.FadeIn(); this.r = new scr.FadeOut(); this.hasAttachTransition = false; this.hasRemoveTransition = false; this.addAttachTransition(this.f); this.addRemoveTransition(this.r); this.tempFlag1 = false; this.flegForPopup = false; this.NextHighestDepthCounter = 1; this.removeDeliveryScreenFlaf = false; this.level = level_; this.level.game.mousePointer.clip.gotoAndStop('normal'); utils.Delegate = this.level.game.delegate; this.sounds = new Array(); this.sounds = [['snowballmiss_snd', 100, false], ['snowballhit_snd', 100, false], ['snowballShoot_snd', 100, false], ['deliverytube_snd', 100, false], ['handleclick_snd', 100, false], ['gates_snd', 100, false], ['gatesclose_snd', 100, false], ['windblowerBlows_snd', 100, false], ['windblowerFly_snd', 100, false]]; this.soundsId = new Array(); this.attachSounds(); this.init(); trace('WRONG WISH array ' + _global.game.wrongWishFactoryUpgrade); trace('WRONG WISH flag ' + _global.game.wrongWish); }; com.Delivery = v1; com.Delivery extends utils.MovieClipProperties; var v2 = v1.prototype; v2.chouseLevel = function () { trace('$$$ chouseLevel ' + this.level.game.levelNum); switch (this.level.game.levelNum) { case 1: this.levelAssets = new config.level1Assets(this); break; case 2: this.levelAssets = new config.level2Assets(this); break; case 3: this.levelAssets = new config.level3Assets(this); break; case 4: this.levelAssets = new config.level4Assets(this); this.level.game.interface_.saveLoadObject.clearWinScreenFlag(this.level.game.userName); } }; v2.init = function () { this.chouseLevel(); this.storkReadiForWork = undefined; this.deptsForSork = 1101; this.getExpertGoal = false; this.comboCounterFlag = false; this.score = 0; this.comboColor = 1; this.comboNum = 0; this.WishNumber = 0; this.WishStep = 0; this.Stars = []; this.houseSimbols = []; this.PastActions = []; this.tempArray = []; this.tempArray2 = []; this.servedHouse = 0; this.WinBlowerSpeed = this.levelAssets.WinBlowerSpeed; this.TargetetStork = undefined; this.alianceTime = getTimer(); this.WinBlowerTime = getTimer(); this.WinBlowerRunTime = false; this.avoidingBadWeather = true; this.winBlowerSide = 'ToLeft'; this.ExtraGoal = false; this.GoalScore = false; this.StorksLength = this.level.game.Storks.length; this.HouseLength = this.levelAssets.Houses.length; this.level.game.goalReached = false; this.level.game.expertGoalReached = false; delete this.level.LevelConfig; this.level.LevelConfig = new config.LevelConfig(this.level); if (this.level.game.levelNum == 1) { trace('this.level.game.levelNum == 1'); this.level.game.gamePoints = this.level.game.gamePointsFactory[this.level.game.levelNum - 1]; delete this.level.LevelConfig; this.level.LevelConfig = new config.LevelConfig(this.level); } this.endlevelMessages = [['YouWereIncredible', 'levelClearedAndincredible_snd'], ['phenomenal', 'phenomenal_snd'], ['nicelyDone', 'nicelyDone_snd'], ['excellentJob', 'excellentJob_snd'], ['marvelous', 'marvelous_snd'], ['scaryGood', 'scaryGood_snd'], ['superbPerformance', 'superbPerformance_snd'], ['thatWasAmazing', 'thatWasAmazing_snd'], ['perfect', 'perfect_snd']]; this.RangScore = 0; this.Rang = undefined; this.OldRang = undefined; this.RangTime = getTimer(); this.delayTime = 0; this.target = this.level.game; this.depth = this.level.depth.getDepth('streets'); this.holder = this.level.game.attachMovie('holder', 'holder', 1, {'_x': 0, '_y': 0}); this.clip = this.holder; this.holder.attachMovie('startDelivery', 'startDelivery', this.level.depth.getDepth('streets') - 5, {'_x': 400, '_y': 300}); this.interfaceMC = this.holder.startDelivery.interfaceMC; this.backGround = this.holder.attachMovie(this.levelAssets.backGround, this.levelAssets.backGround, -10, {'_x': 63.8, '_y': 62.2}); this.backGround.levelId.text = 'Level ' + this.levelAssets.id; if (this.level.game.levelNum <= 2) { this.holder.startDelivery.interfaceMC.interfacePart3.gotoAndStop(1); } else { if (this.level.game.levelNum <= 5) { this.holder.startDelivery.interfaceMC.interfacePart3.gotoAndStop(2); this.rainHelper = new mcs.Helper('rainHelper', this, 'rainHelper', 359.9, -13.3, this.level.depth.getDepth('snowHelper')); this.rainHelper.attachWindBlower(); } else { if (this.level.game.levelNum <= 10) { this.holder.startDelivery.interfaceMC.interfacePart3.gotoAndStop(3); this.lightningHelper = new mcs.Helper('lightningHelper', this, 'lightningHelper', 400.8, -9.1, this.level.depth.getDepth('snowHelper')); this.lightningHelper.attachWindBlower(); this.rainHelper = new mcs.Helper('rainHelper', this, 'rainHelper', 324.9, -13.3, this.level.depth.getDepth('snowHelper')); this.rainHelper.attachWindBlower(); } else { this.holder.startDelivery.interfaceMC.interfacePart3.gotoAndStop(4); this.snowHelper = new mcs.Helper('snowHelper', this, 'snowHelper', 288.3, -11.6, this.level.depth.getDepth('snowHelper')); this.snowHelper.attachWindBlower(); this.lightningHelper = new mcs.Helper('lightningHelper', this, 'lightningHelper', 430.8, -9.1, this.level.depth.getDepth('snowHelper')); this.lightningHelper.attachWindBlower(); this.rainHelper = new mcs.Helper('rainHelper', this, 'rainHelper', 359.9, -13.3, this.level.depth.getDepth('snowHelper')); this.rainHelper.attachWindBlower(); } } } this.startTime = getTimer(); this.lastHouseEvent = getTimer(); this.timeForEvent = getTimer(); if (this.levelAssets.CanonFlag) { this.holder.attachMovie('Canon', 'gun', this.level.depth.getDepth('gun'), {'_x': 88.7, '_y': 361.9}); } this.score_mc1 = this.interfaceMC.attachMovie('ZelenoOblace', 'ZelenoOblace', this.level.depth.getDepth('fBackground') + 1, {'_x': 2.8, '_y': -0.7}); this.score_mc1.num.text = this.levelAssets.PointForGoal; this.score_mc = this.interfaceMC.attachMovie('CrvenoOblace', 'CrvenoOblace', this.level.depth.getDepth('fBackground') + 2, {'_x': 0.9, '_y': 57.5}); this.score_mc.num.text = this.score; this.score_mc2 = this.interfaceMC.attachMovie('MaskoOblace', 'MaskoOblace', this.level.depth.getDepth('fBackground') + 3, {'_x': 5.3, '_y': 93.3}); this.score_mc2.num.text = this.level.singelBoySacks + this.level.twinBoySacks + this.level.tripletBoySacks + this.level.quadrupletBoySacks; this.score_mc3 = this.interfaceMC.attachMovie('ZenskoOblace', 'ZenskoOblace', this.level.depth.getDepth('fBackground') + 4, {'_x': 2.6, '_y': 134.3}); this.score_mc3.num.text = this.level.singelGirlSacks + this.level.twinGirlSacks + this.level.tripletGirlSacks + this.level.quadrupletGirlSacks; this.LevelNumBtn = this.holder.attachMovie('Level_buttonce', 'Level_buttonce', 200045, {'_x': 1.1, '_y': 176.8}); this.MainMenuCloud = this.holder.attachMovie('main_Menu_Oblace', 'main_Menu_Oblace', 200050, {'_x': 93.59999999999999, '_y': 277.6}); this.LevelNumBtn.level_num.level_num_txt.text = this.level.game.levelNum.toString(); var v2 = 0; while (v2 < this.StorksLength) { this.level.game.Storks[v2].init(); this.level.game.Storks[v2].delivery = this; this.level.game.Storks[v2].attachFirsTimeStork(this); ++v2; } var v3 = 0; while (v3 < this.HouseLength) { this.levelAssets.Houses[v3].attachHouse(); ++v3; } if (this.levelAssets.backGround == 'Prolet') { this.holder.attachMovie('drvoprolet1', 'drvoprolet1', 1260, {'_x': 89.3, '_y': 390.6}); this.holder.attachMovie('drvo2prolet', 'drvo2prolet', 1262, {'_x': 99.59999999999999, '_y': 144.5}); this.holder.attachMovie('drvo3prolet', 'drvo3prolet', 1264, {'_x': 645.4, '_y': 141.8}); this.holder.attachMovie('drvoprolet3', 'drvoprolet3', 1256, {'_x': 470.8, '_y': 180.3}); } else { this.holder.attachMovie('drvozima1', 'drvozima1', 1260, {'_x': 90.3, '_y': 393.8}); this.holder.attachMovie('drvo2zima', 'drvo2zima', 1262, {'_x': 99.59999999999999, '_y': 144.5}); this.holder.attachMovie('drvo3zima', 'drvo3zima', 1264, {'_x': 645.4, '_y': 141.8}); this.holder.attachMovie('drvozima3', 'drvozima3', 1256, {'_x': 472.3, '_y': 183}); } if (this.hasAttachTransition) { this.aTransition.startTransition(); } this.target.sndCtrl.stopWithFadeOut(this.target.soundsId.titlescreen_snd, 700); this.level.game.sndCtrl.playWithFadeIn(this.level.game.soundsId.delivery_snd, 700, 32000); }; v2.attachSounds = function () { var v2 = 0; while (v2 < this.sounds.length) { var v3 = this.level.game.soundClip.createEmptyMovieClip(utils.StringUtils.getUniqueName(), this.level.game.soundClip.getNextHighestDepth()); var v4 = new utils.SoundImpl(v3); v4.attachSoundImpl(this.sounds[v2][0], this.sounds[v2][1], this.sounds[v2][2]); this.soundsId[this.sounds[v2][0]] = this.level.game.sndCtrl.addSound(this.sounds[v2][0], v3, this.sounds[v2][1], this.sounds[v2][2]); if (this.sounds[v2][2]) { this.level.game.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.level.game.sndCtrl.getMusicVolume()); } else { this.level.game.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.level.game.sndCtrl.getSoundFXVolume()); } ++v2; } }; v2.attachClip = function () { this.holder = this.level.game.attachMovie('holder', 'holder', 1, {'_x': 0, '_y': 0}); this.clip = this.holder; this.holder.attachMovie('startDelivery', 'startDelivery', this.level.depth.getDepth('streets') - 5, {'_x': 400, '_y': 300}); this.holder.startDelivery.delivery = this; this.interfaceMC = this.holder.startDelivery.interfaceMC; this.target.sndCtrl.stopSound(this.soundsId.deliverytube_snd); this.target.sndCtrl.playSound(this.soundsId.deliverytube_snd); this.backGround = this.holder.attachMovie(this.levelAssets.backGround, this.levelAssets.backGround, -10, {'_x': 63.8, '_y': 62.2}); this.backGround.levelId.text = 'Level ' + this.levelAssets.id; if (this.level.game.levelNum <= 2) { this.holder.startDelivery.interfaceMC.interfacePart3.gotoAndStop(1); } else { if (this.level.game.levelNum <= 5) { this.holder.startDelivery.interfaceMC.interfacePart3.gotoAndStop(2); this.rainHelper = new mcs.Helper('rainHelper', this, 'rainHelper', 359.9, -13.3, this.level.depth.getDepth('snowHelper')); this.rainHelper.attachWindBlower(); } else { if (this.level.game.levelNum <= 10) { this.holder.startDelivery.interfaceMC.interfacePart3.gotoAndStop(3); this.lightningHelper = new mcs.Helper('lightningHelper', this, 'lightningHelper', 400.8, -9.1, this.level.depth.getDepth('snowHelper')); this.lightningHelper.attachWindBlower(); this.rainHelper = new mcs.Helper('rainHelper', this, 'rainHelper', 324.9, -13.3, this.level.depth.getDepth('snowHelper')); this.rainHelper.attachWindBlower(); } else { this.holder.startDelivery.interfaceMC.interfacePart3.gotoAndStop(4); this.snowHelper = new mcs.Helper('snowHelper', this, 'snowHelper', 288.3, -11.6, this.level.depth.getDepth('snowHelper')); this.snowHelper.attachWindBlower(); this.lightningHelper = new mcs.Helper('lightningHelper', this, 'lightningHelper', 430.8, -9.1, this.level.depth.getDepth('snowHelper')); this.lightningHelper.attachWindBlower(); this.rainHelper = new mcs.Helper('rainHelper', this, 'rainHelper', 359.9, -13.3, this.level.depth.getDepth('snowHelper')); this.rainHelper.attachWindBlower(); } } } this.startTime = getTimer(); this.lastHouseEvent = getTimer(); this.timeForEvent = getTimer(); if (this.levelAssets.CanonFlag) { this.holder.attachMovie('Canon', 'gun', this.level.depth.getDepth('gun'), {'_x': 88.7, '_y': 361.9}); } this.score_mc1 = this.interfaceMC.attachMovie('ZelenoOblace', 'ZelenoOblace', this.level.depth.getDepth('fBackground') + 1, {'_x': 2.8, '_y': -0.7}); this.score_mc1.num.text = this.levelAssets.PointForGoal; this.score_mc = this.interfaceMC.attachMovie('CrvenoOblace', 'CrvenoOblace', this.level.depth.getDepth('fBackground') + 2, {'_x': 0.9, '_y': 57.5}); this.score_mc.num.text = this.score; this.score_mc2 = this.interfaceMC.attachMovie('MaskoOblace', 'MaskoOblace', this.level.depth.getDepth('fBackground') + 3, {'_x': 5.3, '_y': 93.3}); this.score_mc2.num.text = this.level.singelBoySacks + this.level.twinBoySacks + this.level.tripletBoySacks + this.level.quadrupletBoySacks; this.score_mc3 = this.interfaceMC.attachMovie('ZenskoOblace', 'ZenskoOblace', this.level.depth.getDepth('fBackground') + 4, {'_x': 2.6, '_y': 134.3}); this.score_mc3.num.text = this.level.singelGirlSacks + this.level.twinGirlSacks + this.level.tripletGirlSacks + this.level.quadrupletGirlSacks; this.LevelNumBtn = this.holder.attachMovie('Level_buttonce', 'Level_buttonce', 200045, {'_x': 1.1, '_y': 176.8}); this.MainMenuCloud = this.holder.attachMovie('main_Menu_Oblace', 'main_Menu_Oblace', 200050, {'_x': 93.59999999999999, '_y': 277.6}); this.LevelNumBtn.level_num.level_num_txt.text = this.level.game.levelNum.toString(); this.interfaceMC.tube.boyBag1._visible = false; this.interfaceMC.tube.girlBag1._visible = false; this.interfaceMC.tube.boyBag2._visible = false; this.interfaceMC.tube.girlBag2._visible = false; this.interfaceMC.tube.boyBag3._visible = false; this.interfaceMC.tube.girlBag3._visible = false; this.interfaceMC.tube.boyBag4._visible = false; this.interfaceMC.tube.girlBag4._visible = false; if (this.level.singelBoySacks > 0) { this.singelBoySacks = this.interfaceMC.tube.boyBag1; this.interfaceMC.tube.boyBag1._visible = true; this.singelBoySacks.num = this.interfaceMC.singelBoySacks.num; this.displayNumber(this.interfaceMC.singelBoySacks.num, this.level.singelBoySacks, 0); } if (this.level.singelGirlSacks > 0) { this.singelGirlSacks = this.interfaceMC.tube.girlBag1; this.interfaceMC.tube.girlBag1._visible = true; this.singelGirlSacks.num = this.interfaceMC.singelGirlSacks.num; this.displayNumber(this.interfaceMC.singelGirlSacks.num, this.level.singelGirlSacks, 0); } if (this.level.twinBoySacks > 0) { this.twinBoySacks = this.interfaceMC.tube.boyBag2; this.interfaceMC.tube.boyBag2._visible = true; this.twinBoySacks.num = this.interfaceMC.twinBoySacks.num; this.displayNumber(this.interfaceMC.twinBoySacks.num, this.level.twinBoySacks, 0); } if (this.level.twinGirlSacks > 0) { this.twinGirlSacks = this.interfaceMC.tube.girlBag2; this.interfaceMC.tube.girlBag2._visible = true; this.twinGirlSacks.num = this.interfaceMC.twinGirlSacks.num; this.displayNumber(this.interfaceMC.twinGirlSacks.num, this.level.twinGirlSacks, 0); } if (this.level.tripletBoySacks > 0) { this.tripletBoySacks = this.interfaceMC.tube.boyBag3; this.interfaceMC.tube.boyBag3._visible = true; this.tripletBoySacks.num = this.interfaceMC.tripletBoySacks.num; this.displayNumber(this.interfaceMC.tripletBoySacks.num, this.level.tripletBoySacks, 0); } if (this.level.tripletGirlSacks > 0) { this.tripletGirlSacks = this.interfaceMC.tube.girlBag3; this.interfaceMC.tube.girlBag3._visible = true; this.tripletGirlSacks.num = this.interfaceMC.tripletGirlSacks.num; this.displayNumber(this.interfaceMC.tripletGirlSacks.num, this.level.tripletGirlSacks, 0); } if (this.level.quadrupletBoySacks > 0) { this.quadrupletBoySacks = this.interfaceMC.tube.boyBag4; this.interfaceMC.tube.boyBag4._visible = true; this.quadrupletBoySacks.num = this.interfaceMC.quadrupletBoySacks.num; this.displayNumber(this.interfaceMC.quadrupletBoySacks.num, this.level.quadrupletBoySacks, 0); } if (this.level.quadrupletGirlSacks > 0) { this.quadrupletGirlSacks = this.interfaceMC.tube.girlBag4; this.interfaceMC.tube.girlBag4._visible = true; this.displayNumber(this.interfaceMC.quadrupletGirlSacks.num, this.level.quadrupletGirlSacks, 0); this.quadrupletGirlSacks.num = this.interfaceMC.quadrupletGirlSacks.num; } var v2 = 0; while (v2 < this.StorksLength) { this.level.game.Storks[v2].init(); this.level.game.Storks[v2].attachFirsTimeStork(this); ++v2; } var v3 = 0; while (v3 < this.HouseLength) { this.levelAssets.Houses[v3].attachHouse(); ++v3; } if (this.levelAssets.backGround == 'Prolet') { this.holder.attachMovie('drvoprolet1', 'drvoprolet1', 1260, {'_x': 89.3, '_y': 390.6}); this.holder.attachMovie('drvo2prolet', 'drvo2prolet', 1262, {'_x': 99.59999999999999, '_y': 144.5}); this.holder.attachMovie('drvo3prolet', 'drvo3prolet', 1264, {'_x': 645.4, '_y': 141.8}); this.holder.attachMovie('drvoprolet3', 'drvoprolet3', 1256, {'_x': 470.8, '_y': 180.3}); } else { this.holder.attachMovie('drvozima1', 'drvozima1', 1260, {'_x': 90.3, '_y': 393.8}); this.holder.attachMovie('drvo2zima', 'drvo2zima', 1262, {'_x': 99.59999999999999, '_y': 144.5}); this.holder.attachMovie('drvo3zima', 'drvo3zima', 1264, {'_x': 645.4, '_y': 141.8}); this.holder.attachMovie('drvozima3', 'drvozima3', 1256, {'_x': 472.3, '_y': 183}); } this.level.delivery = this; this.holder.delivery = this; if (this.level.game.innovatorTrophy == false && this.level.game.allUpgradesDelivery == true && this.level.game.allUpgradesFactory == true) { this.level.game.innovatorTrophy = true; this.showTrofej('TekstInovator', 'TrofejInovator'); } }; v2.displayNumber = function (place, finalValue, lastValue) { place.text = lastValue.toString(); if (finalValue > lastValue) { utils.Delegate.callDelayed(this, this.displayNumber, 300, place, finalValue, lastValue + 1); } }; v2.chekRank = function () {}; v2.update = function () { if (this.endGameFlag) { return undefined; } this.timeNow = getTimer(); var v7 = this.timeNow - this.startTime; if (this.levelAssets.WINDBLOWERFLAG && this.CurentPopUp == undefined && this.timeNow - this.WinBlowerTime >= this.levelAssets.WinBlowerTime * 1000 && this.WinBlowerRunTime == false) { this.target.sndCtrl.stopSound(this.soundsId.windblowerFly_snd); this.target.sndCtrl.playSound(this.soundsId.windblowerFly_snd); if (this.levelAssets.backGround == 'Prolet') { var v5 = 'winBlowerSummer'; } else { var v5 = 'winBlowerWinter'; } if (this.winBlowerSide == 'ToLeft') { this.winBlower = this.holder.attachMovie(v5, v5, this.level.depth.getDepth('streets') - 55, {'_x': 765.3, '_y': 170.2}); this.winBlower.Level = this.level; } else { this.winBlower = this.holder.attachMovie(v5, v5, this.level.depth.getDepth('streets') - 55, {'_x': 18, '_y': 170.2}); this.winBlower.Level = this.level; this.winBlower._xscale *= -1; } this.addEvents(); this.WinBlowerRunTime = true; this.WinBlowerTime = this.timeNow; } if (this.WinBlowerRunTime) { if (this.winBlowerSide == 'ToLeft') { if (this.winBlower._x > -220) { this.winBlower._x -= this.WinBlowerSpeed; } else { if (this.winBlower._x <= -220) { this.WinBlowerRunTime = false; this.winBlower.removeMovieClip(); this.winBlowerSide = 'ToRight'; } } } else { if (this.winBlowerSide == 'ToRight') { if (this.winBlower._x < 1038.8) { this.winBlower._x += this.WinBlowerSpeed; if (this.winBlower._x >= 306 && this.level.game.helpTipsDelivery[12].shown == false) { this.level.game.helpTipsDelivery[12].showPopUp(); this.level.game.helpTipsDelivery[12].PriorityObject = [this.winBlower]; this.level.levelNum - 2(); } } else { if (this.winBlower._x >= 1038.8) { this.WinBlowerRunTime = false; this.winBlower.removeMovieClip(); this.winBlowerSide = 'ToLeft'; } } } } } if (this.timeNow - this.timeForEvent >= this.levelAssets.TimesForNeed[0] * 1000) { if (this.CurentPopUp == undefined) { if (this.levelAssets.TimesForNeed.length >= 2) { this.levelAssets.TimesForNeed.splice(0, 1); } this.timeForEvent = this.timeNow; this.setNeed(); } else { this.timeForEvent += 500; utils.Delegate.callDelayed(this, this.SetNeedCall, 500); } } var v3 = 0; while (v3 < this.HouseLength) { if (this.levelAssets.Houses[v3].wish) { if (this.timeNow - this.levelAssets.Houses[v3].timeWithNeed > this.levelAssets.Houses[v3].timeforFirstFase) { this.levelAssets.Houses[v3].oblak.gotoAndStop(2); this.levelAssets.Houses[v3].oblak2.gotoAndStop(2); if (this.levelAssets.Houses[v3].FirstTimeFlag) { this.levelAssets.Houses[v3].FirstTimeFlag = false; } else { this.level.pointsArray.push(1); this.level.changePointsInDelivery(this.levelAssets.Houses[v3].losePoints, this.levelAssets.Houses[v3].clip, 1); this.comboColor = 1; this.PastActions = []; } this.levelAssets.Houses[v3].timeWithNeed = getTimer(); } } ++v3; } if (this.timeNow - this.RangTime > 50000) { this.RangScore -= 10; this.OldRang = this.Rang; if (this.RangScore <= 35 && this.Rang == 'officer') { this.Rang = 'undefined'; this.holder.startDelivery.racka.attachMovie('fadeOutRank', 'fadeOutRank', 1900, {'_x': 530, '_y': 220}); this.holder.startDelivery.racka.fadeOutRank.object = this.level; this.target.sndCtrl.stopSound(this.target.soundsId.rankingMinus_snd); this.target.sndCtrl.playSound(this.target.soundsId.rankingMinus_snd); } else { if (this.RangScore <= 55 && this.Rang == 'commander') { this.Rang = 'officer'; this.holder.startDelivery.racka.attachMovie('LoseRank', 'LoseRank', 1900, {'_x': 530, '_y': 220}); this.holder.startDelivery.racka.LoseRank.object = this.level; this.holder.startDelivery.racka.LoseRank.clip1.attachMovie(this.Rang, this.Rang, 1, {'_x': 0, '_y': 0}); this.holder.startDelivery.racka.LoseRank.clip2.attachMovie(this.OldRang, this.OldRang, 1, {'_x': 0, '_y': 0}); this.target.sndCtrl.stopSound(this.target.soundsId.rankingMinus_snd); this.target.sndCtrl.playSound(this.target.soundsId.rankingMinus_snd); } else { if (this.RangScore <= 75 && this.Rang == 'captain') { this.Rang = 'commander'; this.holder.startDelivery.racka.attachMovie('LoseRank', 'LoseRank', 1900, {'_x': 530, '_y': 220}); this.holder.startDelivery.racka.LoseRank.object = this.level; this.holder.startDelivery.racka.LoseRank.clip1.attachMovie(this.Rang, this.Rang, 1, {'_x': 0, '_y': 0}); this.holder.startDelivery.racka.LoseRank.clip2.attachMovie(this.OldRang, this.OldRang, 1, {'_x': 0, '_y': 0}); this.target.sndCtrl.stopSound(this.target.soundsId.rankingMinus_snd); this.target.sndCtrl.playSound(this.target.soundsId.rankingMinus_snd); } else { if (this.RangScore <= 95 && this.Rang == 'general') { this.Rang = 'captain'; this.holder.startDelivery.racka.attachMovie('LoseRank', 'LoseRank', 1900, {'_x': 530, '_y': 220}); this.holder.startDelivery.racka.LoseRank.object = this.level; this.holder.startDelivery.racka.LoseRank.clip1.attachMovie(this.Rang, this.Rang, 1, {'_x': 0, '_y': 0}); this.holder.startDelivery.racka.LoseRank.clip2.attachMovie(this.OldRang, this.OldRang, 1, {'_x': 0, '_y': 0}); this.target.sndCtrl.stopSound(this.target.soundsId.rankingMinus_snd); this.target.sndCtrl.playSound(this.target.soundsId.rankingMinus_snd); } else { if (this.RangScore <= 115 && this.Rang == 'Aeronaut') { this.Rang = 'general'; this.holder.startDelivery.racka.attachMovie('LoseRank', 'LoseRank', 1900, {'_x': 530, '_y': 220}); this.holder.startDelivery.racka.LoseRank.object = this.level; this.holder.startDelivery.racka.LoseRank.clip1.attachMovie(this.Rang, this.Rang, 1, {'_x': 0, '_y': 0}); this.holder.startDelivery.racka.LoseRank.clip2.attachMovie(this.OldRang, this.OldRang, 1, {'_x': 0, '_y': 0}); this.target.sndCtrl.stopSound(this.target.soundsId.rankingMinus_snd); this.target.sndCtrl.playSound(this.target.soundsId.rankingMinus_snd); } else { if (this.RangScore <= 135 && this.Rang == 'TopGun') { this.Rang = 'Aeronaut'; this.holder.startDelivery.racka.attachMovie('LoseRank', 'LoseRank', 1900, {'_x': 530, '_y': 220}); this.holder.startDelivery.racka.LoseRank.object = this.level; this.holder.startDelivery.racka.LoseRank.clip1.attachMovie(this.Rang, this.Rang, 1, {'_x': 0, '_y': 0}); this.holder.startDelivery.racka.LoseRank.clip2.attachMovie(this.OldRang, this.OldRang, 1, {'_x': 0, '_y': 0}); this.target.sndCtrl.stopSound(this.target.soundsId.rankingMinus_snd); this.target.sndCtrl.playSound(this.target.soundsId.rankingMinus_snd); } else { if (this.RangScore <= 155 && this.Rang == 'Ace') { this.Rang = 'TopGun'; this.target.sndCtrl.stopSound(this.target.soundsId.windchimes_snd); this.holder.AddRank.removeMovieClip(); this.level.hc.removeMovieClip(); this.holder.startDelivery.racka.attachMovie('LoseRank', 'LoseRank', 1900, {'_x': 530, '_y': 220}); this.holder.startDelivery.racka.LoseRank.object = this.level; this.holder.startDelivery.racka.LoseRank.clip1.attachMovie(this.Rang, this.Rang, 1, {'_x': 0, '_y': 0}); this.holder.startDelivery.racka.LoseRank.clip2.attachMovie(this.OldRang, this.OldRang, 1, {'_x': 0, '_y': 0}); this.target.sndCtrl.stopSound(this.target.soundsId.rankingMinus_snd); this.target.sndCtrl.playSound(this.target.soundsId.rankingMinus_snd); this.level.hc = undefined; } } } } } } } if (this.RangScore < 0) { this.RangScore = 0; } this.RangTime = getTimer(); } if (this.levelAssets.CanonFlag && this.timeNow - this.alianceTime > this.levelAssets.AlianceTime * 1000) { this.addAliance(); } if (this.timeNow - this.alianceTime > 16035) { } var v2 = 0; while (v2 < this.StorksLength) { if (this.level.game.Storks[v2].TiredTime > 0) { var timeNow = getTimer(); var v4 = int(this.level.game.Storks[v2].TiredTime - (timeNow - this.level.game.Storks[v2].PitStop) / 1000); if (v4 <= 0) { this.level.game.Storks[v2].TiredTime = 0; this.level.game.Storks[v2].clip.gotoAndPlay(34); this.target.sndCtrl.stopSound(this.level.game.Storks[v2].soundsId.disenje_snd); this.level.game.Storks[v2].addEvents(); } this.level.game.Storks[v2].clip.storkOblak.Time.text = v4.toString(); } if (!this.level.game.Storks[v2].fleg && this.level.game.Storks[v2].Houses.length > 0 || this.level.game.Storks[v2].GoHomeFlag) { this.level.game.Storks[v2].fly(); } ++v2; } }; v2.SetNeedCall = function () { if (this.CurentPopUp == undefined) { return undefined; } else { this.timeForEvent += 500; utils.Delegate.callDelayed(this, this.SetNeedCall, 500); } }; v2.showTrofej = function (tekst, trofej) { if (this.holder.closeGates != undefined) { return undefined; } if (this.FinalTrofejAnimation != undefined || (this.holder.goalReached != undefined || this.holder.expertReached != undefined)) { utils.Delegate.callDelayed(this, this.showTrofej, 2000, tekst, trofej); return undefined; } if (this.CurentPopUp != undefined) { utils.Delegate.callDelayed(this, this.showTrofej, 1000, tekst, trofej); return undefined; } if (this.level.hc != undefined && this.level.hc._x != 626 && this.level.hc._y != 70) { utils.Delegate.callDelayed(this, this.showTrofej, 1000, tekst, trofej); return undefined; } this.level.levelNum - 2(); utils.Delegate.callDelayed(this, this.funct, 500); this.FinalTrofejAnimation = _root.attachMovie('CelosnaTrofejAnimacija', 'CelosnaTrofejAnimacija', 775000, {'_x': 375, '_y': 330}); this.FinalTrofejAnimation.TrofejAnimation.tekstCombo.attachMovie(tekst, tekst, 5); this.FinalTrofejAnimation.TrofejAnimation.trofej.attachMovie(trofej, trofej, 10); this.target.sndCtrl.stopSound(this.target.soundsId.oskarmuzika_snd); this.target.sndCtrl.playSound(this.target.soundsId.oskarmuzika_snd); this.target.sndCtrl.stopSound(this.target.soundsId.applause_snd); this.target.sndCtrl.playWithFadeIn(this.target.soundsId.applause_snd, 500, 32000); this.target.sndCtrl.stopSound(this.target.soundsId.applausewisle_snd); this.target.sndCtrl.playWithFadeIn(this.target.soundsId.applausewisle_snd, 500, 32000); this.addEvent1(); }; v2.funct = function () { this.holder._visible = false; }; v2.addEvent1 = function () { trace('this.FinalTrofejAnimation ' + this.FinalTrofejAnimation); trace('this.FinalTrofejAnimation.continueBtn ' + this.FinalTrofejAnimation.continueBtn); trace('this.FinalTrofejAnimation.continueBtn.continueBtn ' + this.FinalTrofejAnimation.continueBtn.continueBtn); this.FinalTrofejAnimation.continueBtn.continueBtn.holder_ = this; this.FinalTrofejAnimation.continueBtn.continueBtn.onPress = function () { trace('this.FinalTrofejAnimation.continueBtn.onPress'); this.holder_.target.sndCtrl.stopSound(this.holder.target.soundsId.mouseclick_snd); this.holder_.target.sndCtrl.playSound(this.holder.target.soundsId.mouseclick_snd); this.holder_.target.mousePointer.clip.gotoAndStop('normal'); this._parent.ss.gotoAndStop(1); this.holder_.FinalTrofejAnimation.publika.gotoAndStop('gogo'); this.holder_.FinalTrofejAnimation.pozadina.gotoAndStop('go'); this.holder_.FinalTrofejAnimation.TrofejAnimation.gotoAndStop('gogogo'); utils.Delegate.callDelayed(this.holder_, this.holder_.OnContinueBtn, 500); }; this.FinalTrofejAnimation.continueBtn.continueBtn.onRollOver = function () { this.holder_.target.mousePointer.clip.gotoAndStop('finger'); this._parent.ss.gotoAndStop(2); }; this.FinalTrofejAnimation.continueBtn.continueBtn.onRollOut = function () { this.holder_.target.mousePointer.clip.gotoAndStop('normal'); this._parent.ss.gotoAndStop(1); }; this.FinalTrofejAnimation.continueBtn.continueBtn.onReleaseOutside = function () { this.holder_.target.mousePointer.clip.gotoAndStop('normal'); this._parent.ss.gotoAndStop(1); }; }; v2.OnContinueBtn = function () { this.target.sndCtrl.stopWithFadeOut(this.target.soundsId.applause_snd, 500); this.target.sndCtrl.stopWithFadeOut(this.target.soundsId.applausewisle_snd, 500); this.FinalTrofejAnimation = undefined; this.holder._visible = true; trace('OnContinueBtn'); if (this.CurentPopUp == undefined) { trace('OnContinueBtn continueGame'); this.continueGame(); this.CheckForLastTrophy(); } }; v2.CheckForLastTrophy = function () { if (this.level.game.twinMasterTrophy == true && this.level.game.tripletMasterTrophy == true && this.level.game.quadrupletFanTrophy == true && this.level.game.expertGoalBusterTrophy == true && this.level.game.professorTrophy == true && this.level.game.innovatorTrophy == true && this.level.game.comboFreakTrophy == true && this.level.game.comboExpertTrophy == true && this.level.game.comboholicTrophy == true && this.level.game.fastestStorkTrophy == true && this.level.game.queenHeartsTrophy == true && this.level.game.kingHeartsTrophy == true && this.level.game.storkHeartsTrophy == true && this.level.game.weatherMasterTrophy == true && this.level.game.slotMashineTrophy == true && this.level.game.trophyHunter == false) { this.level.game.trophyHunter = true; utils.Delegate.callDelayed(this, this.showTrofej, 500, 'TekstTrophyHunter', 'TrofejTrophyHunter'); } }; v2.setNeed = function () { trace('setNeed() '); this.timeForEvent = this.timeNow; if (!this.GameIsRuning) { trace('nemash GameIsRuning '); return undefined; } if (!this.backGround) { trace('nemash pozadina '); return undefined; } var v5 = true; var v2 = 0; while (v2 < this.HouseLength) { if (this.levelAssets.Houses[v2].wish != undefined) { v5 = false; break; } ++v2; } if (this.levelAssets.wishArray[this.WishStep].length == undefined) { v2 = 0; while (v2 < this.level.game.Storks.length) { if (!this.level.game.Storks[v2].fleg && this.level.game.Storks[v2].Houses.length > 0 || this.level.game.Storks[v2].GoHomeFlag) { utils.Delegate.callDelayed(this, this.setNeed, 2000); return undefined; } ++v2; } } if (this.holder.AddRank != undefined && this.level.hc == undefined) { utils.Delegate.callDelayed(this, this.setNeed, 2000); return undefined; } if (this.FinalTrofejAnimation != undefined || (this.holder.goalReached != undefined || this.holder.expertReached != undefined)) { utils.Delegate.callDelayed(this, this.setNeed, 2000); trace('VRATIUV BIDEJKI IMA TROFEJ ILI GOL REACH'); return undefined; } if (this.levelAssets.wishArray[this.WishStep].length == undefined && v5) { if (this.level.negativePoints == true) { this.level.game.NoNegativePoints = false; } if (this.avoidingBadWeather) { ++this.level.game.avoidingBadWeatherLevels; this.level.game.avoidingBadWeatherLevelsArray[this.level.game.levelNum] = this.level.game.avoidingBadWeatherLevels; trace('this.level.game.levelNum' + this.level.game.levelNum); trace('!! this.level.game.avoidingBadWeatherLevels ' + this.level.game.avoidingBadWeatherLevels); trace('!! this.level.game.avoidingBadWeatherLevelsArray ' + this.level.game.avoidingBadWeatherLevelsArray); if (this.level.game.avoidingBadWeatherLevels >= 10 && !this.level.game.weatherMasterTrophy) { this.level.game.weatherMasterTrophy = true; this.showTrofej('TekstWeatherStork', 'TrofejWeatherStork'); utils.Delegate.callDelayed(this, this.setNeed, 500); return undefined; } } else { this.level.avoidingBadWeatherLevels = 0; this.level.game.avoidingBadWeatherLevelsArray[this.level.game.levelNum] = this.level.game.avoidingBadWeatherLevels; } this.GameIsRuning = false; trace('!!! ### this.StorksLength ' + this.StorksLength); v2 = 0; while (v2 < this.StorksLength) { if (this.level.game['Stork' + v2 + 'Speed'][this.levelAssets.id] < this.level.game.Storks[v2].speed) { this.level.game['Stork' + v2 + 'Speed'][this.levelAssets.id] = this.level.game.Storks[v2].speed; } if (this.level.game['Stork' + v2 + 'Power'][this.levelAssets.id] < this.level.game.Storks[v2].power) { this.level.game['Stork' + v2 + 'Power'][this.levelAssets.id] = this.level.game.Storks[v2].power; } ++v2; } if (this.level.game.expertGoalReached || this.level.game.goalReached) { } else {} if (this.holder.closeGates == undefined) { this.holder.target.removeMovieClip(); this.target.sndCtrl.stopSound(this.soundsId.snowballShoot_snd); this.target.sndCtrl.stopSound(this.target.soundsId.windchimes_snd); this.holder.startDelivery.racka.fadeOutRank.removeMovieClip(); this.holder.startDelivery.racka.LoseRank.removeMovieClip(); this.holder.AddRank.hc.gotoAndPlay(41); this.holder.AddRank.removeMovieClip(); this.holder.startDelivery.racka.gotoAndPlay(75); this.holder.attachMovie('closeGates', 'closeGates', this.level.depth.getDepth('streets') - 55, {'_x': 0, '_y': 0}); this.endGameFlag = true; this.holder.closeGates.delivery = this; } } var v3 = 0; while (v3 < this.levelAssets.wishArray[this.WishStep].length) { if (this.levelAssets.Houses[this.levelAssets.wishArray[this.WishStep][v3]].wish == undefined) { this.levelAssets.Houses[this.levelAssets.wishArray[this.WishStep][v3]].changeState(this.level.LevelConfig.parentWish[this.WishNumber], this.levelAssets.Weather[this.WishNumber]); } else { this.tempArray.push(this.levelAssets.wishArray[this.WishStep][v3]); var v4 = this.level.LevelConfig.parentWish[this.WishNumber]; this.level.LevelConfig.parentWish.splice(this.WishNumber + 1, 0, v4); this.levelAssets.Weather.push(this.levelAssets.Weather[this.WishNumber]); this.levelAssets.eventNumber.push(1); } if (this.tempArray.length > 0) { this.levelAssets.wishArray.splice(this.WishStep + 1, 0, this.tempArray); this.tempArray = []; } ++this.WishNumber; ++v3; } ++this.WishStep; }; v2.takeSnapShot = function (mc) { var v6 = mc.getDepth(); var v3 = _root.createEmptyMovieClip('snapshot', 1500); var v4 = new flash.geom.Matrix(); v4.translate(mc._x, mc._y); var v5 = new flash.display.BitmapData(mc._width, mc._height, true, 0); v5.draw(mc, v4, new flash.geom.ColorTransform(), 1, undefined, true); v3.attachBitmap(v5, v6 + 1); mc._visible = false; return v3; }; v2.endGame3 = function () { this.snapshot.removeMovieClip(); this.removeDeliveryScreen(); this.removeDeliveryScreenFlaf = true; }; v2.endGame2 = function () { var v2 = 0; while (v2 < 6) { this.level.game.Storks[v2].attachStendingStork2(); this.level.game.Storks[v2].TiredTime = -1; this.level.game.Storks[v2].clip.gotoAndPlay(47); this.target.sndCtrl.stopSound(this.level.game.Storks[v2].soundsId.disenje_snd); ++v2; } this.snapshot = this.takeSnapShot(this.holder); this.holder.visible = false; if (this.level.game.expertGoalReached) { var v3 = this.endlevelMessages[Math.floor(Math.random() * this.endlevelMessages.length)]; this.snapshot.attachMovie(v3[0], 'YouWereIncredible', 200, {'_x': 400, '_y': 300}); this.target.sndCtrl.stopSound(this.target.soundsId[v3[1]]); this.target.sndCtrl.playSound(this.target.soundsId[v3[1]]); v2 = this.level.game.levelNum - 1; while (v2 < 25) { this.level.game.gamePointsDelivery[v2] = this.level.game.gamePoints; ++v2; } v2 = this.level.game.levelNum; while (v2 < 25) { this.level.game.gamePointsFactory[v2] = this.level.game.gamePoints; ++v2; } this.snapshot.YouWereIncredible.delivery = this; } else { if (this.level.game.goalReached) { this.snapshot.attachMovie('levelCleared', 'levelCleared', 200, {'_x': 400, '_y': 300}); this.target.sndCtrl.stopSound(this.target.soundsId.levelClearedAndincredible_snd); this.target.sndCtrl.playSound(this.target.soundsId.levelClearedAndincredible_snd); v2 = this.level.game.levelNum - 1; while (v2 < 25) { this.level.game.gamePointsDelivery[v2] = this.level.game.gamePoints; ++v2; } this.snapshot.levelCleared.delivery = this; } else { this.snapshot.attachMovie('YOUFAILED', 'YOUFAILED', 200, {'_x': 400, '_y': 300}); this.target.sndCtrl.stopSound(this.target.soundsId.goalNotReachedText_snd); this.target.sndCtrl.playSound(this.target.soundsId.goalNotReachedText_snd); this.snapshot.YOUFAILED.delivery = this; } } }; v2.endGame = function () { utils.Delegate.callDelayed(this, this.endGame2, 100); }; v2.addAliance = function () { this.alianceTime = getTimer(); this.TargetetStork = random(this.StorksLength) + 1; var v2 = 0; while (this.level.game.Storks[this.TargetetStork - 1].prepareForWork == true) { this.TargetetStork = random(this.StorksLength) + 1; ++v2; if (v2 > 30) { return undefined; } } this.level.game.helpTipsDelivery[26].showPopUp(); this.holder.attachMovie('target', 'target', this.level.depth.getDepth('target'), {'_x': this.level.game.Storks[this.TargetetStork - 1].x + 30, '_y': this.level.game.Storks[this.TargetetStork - 1].y + 20}); trace('this.holder.target dlabocina ' + this.holder.target.getDepth()); if (this.level.game.Storks[this.TargetetStork - 1].TiredTime > 0) { this.level.game.Storks[this.TargetetStork - 1].TiredTime = 0; this.target.sndCtrl.stopSound(this.level.game.Storks[this.TargetetStork - 1].soundsId.disenje_snd); this.level.game.Storks[this.TargetetStork - 1].clip.gotoAndPlay(34); this.level.game.Storks[this.TargetetStork - 1].addEvents(); } utils.Delegate.callDelayed(this, this.ShootBall, this.levelAssets.targetTime * 1000); }; v2.ShootBall = function () { this.holder.target.gotoAndPlay(18); if (this.levelAssets.backGround == 'Prolet') { var v2 = this.holder.attachMovie('KallBall' + this.TargetetStork, 'ball', this.level.depth.getDepth('ball'), {'_x': 406.4, '_y': 299}); v2.Level = this.level; trace('ballSoKal dlabocina ' + v2.getDepth()); if (this.TargetetStork != undefined) { this.target.sndCtrl.stopSound(this.soundsId.snowballShoot_snd); this.target.sndCtrl.playSound(this.soundsId.snowballShoot_snd); } } else { var v2 = this.holder.attachMovie('ball' + this.TargetetStork, 'ball', this.level.depth.getDepth('ball'), {'_x': 406.4, '_y': 299}); v2.Level = this.level; trace('ballSoKal dlabocina ' + v2.getDepth()); if (this.TargetetStork != undefined) { this.target.sndCtrl.stopSound(this.soundsId.snowballShoot_snd); this.target.sndCtrl.playSound(this.soundsId.snowballShoot_snd); } } if (this.TargetetStork != undefined) { utils.Delegate.callDelayed(this, this.hitStork, 1000); } if (this.level.game.helpTipsDelivery[4].clip) { this.holder.ball.stop(); } }; v2.hitStork = function () { if (this.holder.ball) { utils.Delegate.callDelayed(this, this.hitStork, 100); } else { this.target.sndCtrl.stopSound(this.soundsId.snowballShoot_snd); this.holder.gun.ball.removeMovieClip(); this.alianceTime = getTimer(); this.holder.target.removeMovieClip(); if (this.level.game.Storks[this.TargetetStork - 1].prepareForWork != false) { this.target.sndCtrl.stopSound(this.soundsId.snowballmiss_snd); this.target.sndCtrl.playSound(this.soundsId.snowballmiss_snd); return undefined; } else { this.target.sndCtrl.stopSound(this.soundsId.snowballhit_snd); this.target.sndCtrl.playSound(this.soundsId.snowballhit_snd); if (this.levelAssets.backGround == 'Prolet') { this.level.game.Storks[this.TargetetStork - 1].clip.kall.attachMovie('kalUFaca', 'kalUFaca', 1); } else { this.level.game.Storks[this.TargetetStork - 1].clip.kall.attachMovie('snegUFaca', 'kalUFaca', 1); } trace('TargetetStork i odzemi eden ' + this.TargetetStork); trace('clip.x ' + this.level.game.Storks[this.TargetetStork - 1].clip._y); this.level.pointsArray.push(2); if (this.TargetetStork == 1) { this.level.changePointsInDelivery(-20, this.level.game.Storks[1].clip, 1, undefined); } else { this.level.changePointsInDelivery(-20, this.level.game.Storks[this.TargetetStork - 1].clip, 1, undefined); } this.TargetetStork = undefined; } } }; v2.winBlowerFunction = function () { var v2 = 0; while (v2 < this.HouseLength) { if (this.levelAssets.Houses[v2].SnowCloud) { this.level.pointsArray.push({'type': 5, 'points': '10'}); this.level.changePointsInDelivery(10, this.levelAssets.Houses[v2].clip, 1); this.levelAssets.Houses[v2].SnowCloud.removeMovieClip(); this.levelAssets.Houses[v2].SnowCloud = undefined; this.levelAssets.Houses[v2].snow = false; this.levelAssets.Houses[v2].storm = false; this.levelAssets.Houses[v2].rain = false; this.target.sndCtrl.stopSound(this.levelAssets.Houses[v2].soundsId.cloudthunder_snd); this.target.sndCtrl.stopSound(this.levelAssets.Houses[v2].soundsId.cloudrain_snd); this.target.sndCtrl.stopSound(this.levelAssets.Houses[v2].soundsId.cloudsnow_snd); } ++v2; } }; v2.addEvents1 = function () { this.winTrophyPopup.holder = this; this.winTrophyPopup.onPress = function () { this.holder.level.continueGame(); this.removeMovieClip(); }; }; } else { goto 64591; } storedv2.addEvents = function () { if (this.level.game.innovatorTrophy == false && this.level.game.allUpgradesDelivery == true && this.level.game.allUpgradesFactory == true) { this.level.game.innovatorTrophy = true; this.showTrofej('TekstInovator', 'TrofejInovator'); } this.level.game.helpTipsDelivery[1].showPopUp(); this.level.game.helpTipsDelivery[1].PriorityObject = [this.level.game.Storks[5]]; if (this.levelAssets.FirstTimeFlat && this.CurentPopUp == undefined) { this.level.game.helpTipsDelivery[27].showPopUp(); } if (this.levelAssets.FirstTimeskyscraper && this.CurentPopUp == undefined) { this.level.game.helpTipsDelivery[28].showPopUp(); } if (this.levelAssets.FirstTimeHospital && this.CurentPopUp == undefined) { this.level.game.helpTipsDelivery[29].showPopUp(); } var v2 = 0; while (v2 < this.StorksLength) { if ((this.levelAssets.Weather[0] != 3 || this.level.game.helpTipsDelivery[32].shown) && (this.levelAssets.Weather[0] != 2 || this.level.game.helpTipsDelivery[30].shown) && (this.levelAssets.Weather[0] != 1 || this.level.game.helpTipsDelivery[31].shown) && this.level.game.Storks[v2].power >= 1 && this.level.game.Storks[v2].prepareForWork == false && this.CurentPopUp == undefined) { this.level.game.helpTipsDelivery[22].showPopUp(); this.level.game.helpTipsDelivery[22].PriorityObject = [this.level.game.Storks[v2]]; this.level.game.helpTipsDelivery[22].stork = this.level.game.Storks[v2]; this.level.game.helpTipsDelivery[22].clip._x = this.level.game.Storks[v2].x - 250; this.level.game.helpTipsDelivery[22].clip._y = this.level.game.Storks[v2].y - 150; } this.level.game.Storks[v2].addEvents(); ++v2; } if ((this.levelAssets.Weather[0] != 3 || this.level.game.helpTipsDelivery[32].shown) && (this.levelAssets.Weather[0] != 2 || this.level.game.helpTipsDelivery[30].shown) && (this.levelAssets.Weather[0] != 1 || this.level.game.helpTipsDelivery[31].shown) && this.level.twinBoySacks > 0 && this.CurentPopUp == undefined) { this.level.game.helpTipsDelivery[24].showPopUp(); this.level.game.helpTipsDelivery[24].PriorityObject = [this.twinBoySacks, this.twinGirlSacks]; v2 = 0; while (v2 < this.StorksLength) { if (this.level.game.Storks[v2].power >= 1) { this.level.game.helpTipsDelivery[24].PriorityObject.push(this.level.game.Storks[v2]); } ++v2; } this.level.game.helpTipsDelivery[24].SpecialObject = this.twinBoySacks; this.level.game.helpTipsDelivery[24].clip._x = this.twinBoySacks._x - 250; this.level.game.helpTipsDelivery[24].clip._y = this.twinBoySacks._y + 350; } if ((this.levelAssets.Weather[0] != 3 || this.level.game.helpTipsDelivery[32].shown) && (this.levelAssets.Weather[0] != 2 || this.level.game.helpTipsDelivery[30].shown) && (this.levelAssets.Weather[0] != 1 || this.level.game.helpTipsDelivery[31].shown) && this.level.twinGirlSacks > 0 && this.CurentPopUp == undefined) { this.level.game.helpTipsDelivery[24].showPopUp(); this.level.game.helpTipsDelivery[24].SpecialObject = this.twinGirlSacks; this.level.game.helpTipsDelivery[24].PriorityObject = [this.twinBoySacks, this.twinGirlSacks]; v2 = 0; while (v2 < this.StorksLength) { if (this.level.game.Storks[v2].power >= 1) { this.level.game.helpTipsDelivery[24].PriorityObject.push(this.level.game.Storks[v2]); } ++v2; } this.level.game.helpTipsDelivery[24].clip._x = this.twinGirlSacks._x - 250; this.level.game.helpTipsDelivery[24].clip._y = this.twinGirlSacks._y + 350; } if ((this.levelAssets.Weather[0] != 3 || this.level.game.helpTipsDelivery[32].shown) && (this.levelAssets.Weather[0] != 2 || this.level.game.helpTipsDelivery[30].shown) && (this.levelAssets.Weather[0] != 1 || this.level.game.helpTipsDelivery[31].shown) && this.level.tripletBoySacks > 0 && this.CurentPopUp == undefined) { this.level.game.helpTipsDelivery[24].showPopUp(); this.level.game.helpTipsDelivery[24].SpecialObject = this.tripletBoySacks; this.level.game.helpTipsDelivery[24].PriorityObject = [this.tripletBoySacks, this.tripletGirlSacks]; v2 = 0; while (v2 < this.StorksLength) { if (this.level.game.Storks[v2].power >= 2) { this.level.game.helpTipsDelivery[24].PriorityObject.push(this.level.game.Storks[v2]); } ++v2; } this.level.game.helpTipsDelivery[24].clip._x = this.tripletBoySacks._x - 250; this.level.game.helpTipsDelivery[24].clip._y = this.tripletBoySacks._y + 350; } if ((this.levelAssets.Weather[0] != 3 || this.level.game.helpTipsDelivery[32].shown) && (this.levelAssets.Weather[0] != 2 || this.level.game.helpTipsDelivery[30].shown) && (this.levelAssets.Weather[0] != 1 || this.level.game.helpTipsDelivery[31].shown) && this.level.tripletGirlSacks > 0 && this.CurentPopUp == undefined) { this.level.game.helpTipsDelivery[24].showPopUp(); this.level.game.helpTipsDelivery[24].SpecialObject = this.tripletGirlSacks; this.level.game.helpTipsDelivery[24].PriorityObject = [this.tripletGirlSacks, this.tripletGirlSacks]; v2 = 0; while (v2 < this.StorksLength) { if (this.level.game.Storks[v2].power >= 2) { this.level.game.helpTipsDelivery[24].PriorityObject.push(this.level.game.Storks[v2]); } ++v2; } this.level.game.helpTipsDelivery[24].clip._x = this.tripletGirlSacks._x - 250; this.level.game.helpTipsDelivery[24].clip._y = this.tripletGirlSacks._y + 350; } if ((this.levelAssets.Weather[0] != 3 || this.level.game.helpTipsDelivery[32].shown) && (this.levelAssets.Weather[0] != 2 || this.level.game.helpTipsDelivery[30].shown) && (this.levelAssets.Weather[0] != 1 || this.level.game.helpTipsDelivery[31].shown) && this.level.quadrupletBoySacks > 0 && this.CurentPopUp == undefined) { this.level.game.helpTipsDelivery[24].showPopUp(); this.level.game.helpTipsDelivery[24].SpecialObject = this.quadrupletBoySacks; this.level.game.helpTipsDelivery[24].PriorityObject = [this.quadrupletGirlSacks, this.quadrupletBoySacks]; v2 = 0; while (v2 < this.StorksLength) { if (this.level.game.Storks[v2].power >= 3) { this.level.game.helpTipsDelivery[24].PriorityObject.push(this.level.game.Storks[v2]); } ++v2; } this.level.game.helpTipsDelivery[24].clip._x = this.quadrupletBoySacks._x - 250; this.level.game.helpTipsDelivery[24].clip._y = this.quadrupletBoySacks._y + 350; } if ((this.levelAssets.Weather[0] != 3 || this.level.game.helpTipsDelivery[32].shown) && (this.levelAssets.Weather[0] != 2 || this.level.game.helpTipsDelivery[30].shown) && (this.levelAssets.Weather[0] != 1 || this.level.game.helpTipsDelivery[31].shown) && this.level.quadrupletGirlSacks > 0 && this.CurentPopUp == undefined) { this.level.game.helpTipsDelivery[24].showPopUp(); this.level.game.helpTipsDelivery[24].SpecialObject = this.quadrupletGirlSacks; this.level.game.helpTipsDelivery[24].PriorityObject = [this.quadrupletGirlSacks, this.quadrupletBoySacks]; v2 = 0; while (v2 < this.StorksLength) { if (this.level.game.Storks[v2].power >= 3) { this.level.game.helpTipsDelivery[24].PriorityObject.push(this.level.game.Storks[v2]); } ++v2; } this.level.game.helpTipsDelivery[24].clip._x = this.quadrupletGirlSacks._x - 250; this.level.game.helpTipsDelivery[24].clip._y = this.quadrupletGirlSacks._y + 350; } this.winBlower.holder = this; this.winBlower.onPress = function () { if (this.holder.CurentPopUp.chekPrestObject(this) == false) { return undefined; } if (this.holder.winBlowerSide == 'ToLeft') { this.holder.winBlowerSide = 'ToRight'; this.holder.level.game.helpTipsDelivery[12].hidePopUp(); this.holder.level.game.helpTipsDelivery[12].shown = true; this.holder.level.continueGame(); this.holder.winBlower.gotoAndPlay(10); this.holder.target.sndCtrl.stopSound(this.holder.soundsId.windblowerBlows_snd); this.holder.target.sndCtrl.playSound(this.holder.soundsId.windblowerBlows_snd); utils.Delegate.callDelayed(this.holder, this.holder.winBlowerFunction, 1120); this.holder.WinBlowerRunTime = false; return undefined; } this.holder.winBlowerSide = 'ToLeft'; this.holder.level.game.helpTipsDelivery[12].hidePopUp(); this.holder.level.game.helpTipsDelivery[12].shown = true; this.holder.level.continueGame(); this.holder.winBlower.gotoAndPlay(10); this.holder.target.sndCtrl.stopSound(this.holder.soundsId.windblowerBlows_snd); this.holder.target.sndCtrl.playSound(this.holder.soundsId.windblowerBlows_snd); utils.Delegate.callDelayed(this.holder, this.holder.winBlowerFunction, 1120); this.holder.WinBlowerRunTime = false; return undefined; }; this.winBlower.onRelease = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); }; this.winBlower.onRollOver = function () { this.holder.target.mousePointer.clip.gotoAndStop('finger'); }; this.winBlower.onRollOut = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); }; this.winBlower.onReleaseOutside = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); }; this.singelBoySacks.HitArea.holder = this; this.singelBoySacks.HitArea.onRollOver = function () { this.holder.singelBoySacks.gotoAndStop(2); this.holder.target.mousePointer.clip.gotoAndStop('finger'); }; this.singelBoySacks.HitArea.onRollOut = function () { this.holder.singelBoySacks.gotoAndStop(1); this.holder.target.mousePointer.clip.gotoAndStop('normal'); }; this.singelBoySacks.HitArea.onReleaseOutside = function () { this.holder.singelBoySacks.gotoAndStop(1); this.holder.target.mousePointer.clip.gotoAndStop('normal'); }; this.singelBoySacks.HitArea.onPress = function () { if (this.holder.CurentPopUp.chekPrestObject(this.holder.singelBoySacks) == false) { return undefined; } this.holder.singelBoySacks.gotoAndStop(1); if (this.holder.level.singelBoySacks > 0 && this.holder.storkReadiForWork != undefined && this.holder.storkReadiForWork.checkPower(1) && this.holder.storkReadiForWork.Houses.length == 0) { --this.holder.level.singelBoySacks; if (this.holder.level.game.helpTipsDelivery[18].clip) { this.holder.level.game.helpTipsDelivery[18].hidePopUp(); this.holder.level.game.helpTipsDelivery[30].showPopUp(); this.holder.level.game.helpTipsDelivery[30].PriorityObject = []; var v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].storm) { this.holder.level.game.helpTipsDelivery[30].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[21].clip) { this.holder.level.game.helpTipsDelivery[21].hidePopUp(); this.holder.level.game.helpTipsDelivery[31].showPopUp(); this.holder.level.game.helpTipsDelivery[31].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].snow) { this.holder.level.game.helpTipsDelivery[31].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[15].clip) { this.holder.level.game.helpTipsDelivery[15].hidePopUp(); this.holder.level.game.helpTipsDelivery[32].showPopUp(); this.holder.level.game.helpTipsDelivery[32].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].rain) { this.holder.level.game.helpTipsDelivery[32].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } this.holder.level.game.helpTipsDelivery[2].hidePopUp(); this.holder.level.game.helpTipsDelivery[3].showPopUp(); this.holder.level.game.helpTipsDelivery[3].PriorityObject = [this.holder.levelAssets.Houses[0]]; var v3 = this.holder.interfaceMC.tube.attachMovie('simbol_house', utils.StringUtils.getUniqueName(), this.holder.interfaceMC.tube.getNextHighestDepth(), {'_x': 10 + 10 * this.holder.houseSimbols.length, '_y': this.holder.level.singelBoySacks * 3 + 40}); v3._x += this.holder.singelBoySacks._x; v3._y += this.holder.singelBoySacks._y; this.holder.houseSimbols.push(v3); this.holder.houseSimbols[this.holder.houseSimbols.length - 1].numHouse.text = this.holder.houseSimbols.length; this.holder.singelBoySacks.num.text = this.holder.level.singelBoySacks; this.holder.storkReadiForWork.Sack = new mcs.DeliverySack(this.holder, 'DeliverySack', 300, 300, this.holder.deptsForSork++, 2, 1, 1); this.holder.storkReadiForWork.Sack.simbolZvezda = v3; this.holder.storkReadiForWork.setBabyNum(); this.holder.storkReadiForWork.Sack.attachSack(); if (this.holder.level.singelBoySacks == 0) { this.holder.singelBoySacks._visible = false; } this.holder.target.sndCtrl.stopSound(this.holder.target.soundsId.mouseclick_snd); this.holder.target.sndCtrl.playSound(this.holder.target.soundsId.mouseclick_snd); } }; this.singelGirlSacks.HitArea.holder = this; this.singelGirlSacks.HitArea.onRollOver = function () { this.holder.singelGirlSacks.gotoAndStop(2); this.holder.target.mousePointer.clip.gotoAndStop('finger'); }; this.singelGirlSacks.HitArea.onRollOut = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this.holder.singelGirlSacks.gotoAndStop(1); }; this.singelGirlSacks.HitArea.onReleaseOutside = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this.holder.singelGirlSacks.gotoAndStop(1); }; this.singelGirlSacks.HitArea.onPress = function () { if (this.holder.CurentPopUp.chekPrestObject(this.holder.singelGirlSacks) == false) { return undefined; } this.holder.singelGirlSacks.gotoAndStop(1); if (this.holder.level.singelGirlSacks > 0 && this.holder.storkReadiForWork != undefined && this.holder.storkReadiForWork.checkPower(1) && this.holder.storkReadiForWork.Houses.length == 0) { if (this.holder.level.game.helpTipsDelivery[18].clip) { this.holder.level.game.helpTipsDelivery[18].hidePopUp(); this.holder.level.game.helpTipsDelivery[30].showPopUp(); this.holder.level.game.helpTipsDelivery[30].PriorityObject = []; var v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].storm) { this.holder.level.game.helpTipsDelivery[30].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[21].clip) { this.holder.level.game.helpTipsDelivery[21].hidePopUp(); this.holder.level.game.helpTipsDelivery[31].showPopUp(); this.holder.level.game.helpTipsDelivery[31].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].snow) { this.holder.level.game.helpTipsDelivery[31].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[15].clip) { this.holder.level.game.helpTipsDelivery[15].hidePopUp(); this.holder.level.game.helpTipsDelivery[32].showPopUp(); this.holder.level.game.helpTipsDelivery[32].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].rain) { this.holder.level.game.helpTipsDelivery[32].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } this.holder.level.game.helpTipsDelivery[9].hidePopUp(); this.holder.level.game.helpTipsDelivery[10].showPopUp(); --this.holder.level.singelGirlSacks; var v3 = this.holder.interfaceMC.tube.attachMovie('simbol_house', utils.StringUtils.getUniqueName(), this.holder.interfaceMC.tube.getNextHighestDepth(), {'_x': 10 + 10 * this.holder.houseSimbols.length, '_y': this.holder.level.singelGirlSacks * 3 + 40}); v3._x += this.holder.singelGirlSacks._x; v3._y += this.holder.singelGirlSacks._y; this.holder.houseSimbols.push(v3); this.holder.houseSimbols[this.holder.houseSimbols.length - 1].numHouse.text = this.holder.houseSimbols.length; this.holder.singelGirlSacks.num.text = this.holder.level.singelGirlSacks; this.holder.storkReadiForWork.Sack = new mcs.DeliverySack(this.holder, 'DeliverySack', 300, 300, this.holder.deptsForSork++, 1, 1, 2); this.holder.storkReadiForWork.Sack.simbolZvezda = v3; this.holder.level.game.helpTipsDelivery[10].PriorityObject = [this.holder.storkReadiForWork.Sack]; this.holder.storkReadiForWork.setBabyNum(); this.holder.storkReadiForWork.Sack.attachSack(); if (this.holder.level.singelGirlSacks == 0) { this.holder.singelGirlSacks._visible = false; } this.holder.target.sndCtrl.stopSound(this.holder.target.soundsId.mouseclick_snd); this.holder.target.sndCtrl.playSound(this.holder.target.soundsId.mouseclick_snd); } }; this.twinBoySacks.HitArea.holder = this; this.twinBoySacks.HitArea.onRollOver = function () { this.holder.target.mousePointer.clip.gotoAndStop('finger'); this.holder.twinBoySacks.gotoAndStop(2); }; this.twinBoySacks.HitArea.onRollOut = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this.holder.twinBoySacks.gotoAndStop(1); }; this.twinBoySacks.HitArea.onReleaseOutside = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this.holder.twinBoySacks.gotoAndStop(1); }; this.twinBoySacks.HitArea.onPress = function () { if (this.holder.CurentPopUp.chekPrestObject(this.holder.twinBoySacks) == false) { return undefined; } this.holder.twinBoySacks.gotoAndStop(1); if (this.holder.level.twinBoySacks > 0 && this.holder.storkReadiForWork != undefined && this.holder.storkReadiForWork.checkPower(2) && this.holder.storkReadiForWork.Houses.length == 0) { if (this.holder.level.game.helpTipsDelivery[18].clip) { this.holder.level.game.helpTipsDelivery[18].hidePopUp(); this.holder.level.game.helpTipsDelivery[30].showPopUp(); this.holder.level.game.helpTipsDelivery[30].PriorityObject = []; var v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].storm) { this.holder.level.game.helpTipsDelivery[30].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[21].clip) { this.holder.level.game.helpTipsDelivery[21].hidePopUp(); this.holder.level.game.helpTipsDelivery[31].showPopUp(); this.holder.level.game.helpTipsDelivery[31].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].snow) { this.holder.level.game.helpTipsDelivery[31].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[15].clip) { this.holder.level.game.helpTipsDelivery[15].hidePopUp(); this.holder.level.game.helpTipsDelivery[32].showPopUp(); this.holder.level.game.helpTipsDelivery[32].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].rain) { this.holder.level.game.helpTipsDelivery[32].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[24].clip) { this.holder.level.game.helpTipsDelivery[24].hidePopUp(); } --this.holder.level.twinBoySacks; var v3 = this.holder.interfaceMC.tube.attachMovie('simbol_house', utils.StringUtils.getUniqueName(), this.holder.interfaceMC.tube.getNextHighestDepth(), {'_x': 10 + 10 * this.holder.houseSimbols.length, '_y': this.holder.level.twinBoySacks * 3 + 40}); v3._x += this.holder.twinBoySacks._x; v3._y += this.holder.twinBoySacks._y; this.holder.houseSimbols.push(v3); this.holder.houseSimbols[this.holder.houseSimbols.length - 1].numHouse.text = this.holder.houseSimbols.length; this.holder.twinBoySacks.num.text = this.holder.level.twinBoySacks; this.holder.storkReadiForWork.Sack = new mcs.DeliverySack(this.holder, 'DeliverySack', 300, 300, this.holder.deptsForSork++, 2, 2, 3); this.holder.storkReadiForWork.Sack.simbolZvezda = v3; this.holder.storkReadiForWork.setBabyNum(); this.holder.storkReadiForWork.Sack.attachSack(); if (this.holder.level.twinBoySacks == 0) { this.holder.twinBoySacks._visible = false; } this.holder.target.sndCtrl.stopSound(this.holder.target.soundsId.mouseclick_snd); this.holder.target.sndCtrl.playSound(this.holder.target.soundsId.mouseclick_snd); } }; this.twinGirlSacks.HitArea.holder = this; this.twinGirlSacks.HitArea.onRollOver = function () { this.holder.target.mousePointer.clip.gotoAndStop('finger'); this.holder.twinGirlSacks.gotoAndStop(2); }; this.twinGirlSacks.HitArea.onRollOut = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this.holder.twinGirlSacks.gotoAndStop(1); }; this.twinGirlSacks.HitArea.onReleaseOutside = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this.holder.twinGirlSacks.gotoAndStop(1); }; this.twinGirlSacks.HitArea.onPress = function () { if (this.holder.CurentPopUp.chekPrestObject(this.holder.twinGirlSacks) == false) { return undefined; } this.holder.twinGirlSacks.gotoAndStop(1); if (this.holder.level.twinGirlSacks > 0 && this.holder.storkReadiForWork != undefined && this.holder.storkReadiForWork.checkPower(2) && this.holder.storkReadiForWork.Houses.length == 0) { if (this.holder.level.game.helpTipsDelivery[18].clip) { this.holder.level.game.helpTipsDelivery[18].hidePopUp(); this.holder.level.game.helpTipsDelivery[30].showPopUp(); this.holder.level.game.helpTipsDelivery[30].PriorityObject = []; var v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].storm) { this.holder.level.game.helpTipsDelivery[30].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[15].clip) { this.holder.level.game.helpTipsDelivery[15].hidePopUp(); this.holder.level.game.helpTipsDelivery[32].showPopUp(); this.holder.level.game.helpTipsDelivery[32].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].rain) { this.holder.level.game.helpTipsDelivery[32].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[21].clip) { this.holder.level.game.helpTipsDelivery[21].hidePopUp(); this.holder.level.game.helpTipsDelivery[31].showPopUp(); this.holder.level.game.helpTipsDelivery[31].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].snow) { this.holder.level.game.helpTipsDelivery[31].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[24].clip) { this.holder.level.game.helpTipsDelivery[24].hidePopUp(); } --this.holder.level.twinGirlSacks; var v3 = this.holder.interfaceMC.tube.attachMovie('simbol_house', utils.StringUtils.getUniqueName(), this.holder.interfaceMC.tube.getNextHighestDepth(), {'_x': 10 + 10 * this.holder.houseSimbols.length, '_y': this.holder.level.twinGirlSacks * 3 + 40}); v3._x += this.holder.twinGirlSacks._x; v3._y += this.holder.twinGirlSacks._y; this.holder.houseSimbols.push(v3); this.holder.houseSimbols[this.holder.houseSimbols.length - 1].numHouse.text = this.holder.houseSimbols.length; this.holder.twinGirlSacks.num.text = this.holder.level.twinGirlSacks; this.holder.storkReadiForWork.Sack = new mcs.DeliverySack(this.holder, 'DeliverySack', 300, 300, this.holder.deptsForSork++, 1, 2, 4); this.holder.storkReadiForWork.Sack.simbolZvezda = v3; this.holder.storkReadiForWork.setBabyNum(); this.holder.storkReadiForWork.Sack.attachSack(); if (this.holder.level.twinGirlSacks == 0) { this.holder.twinGirlSacks._visible = false; } this.holder.target.sndCtrl.stopSound(this.holder.target.soundsId.mouseclick_snd); this.holder.target.sndCtrl.playSound(this.holder.target.soundsId.mouseclick_snd); } }; this.tripletBoySacks.HitArea.holder = this; this.tripletBoySacks.HitArea.onRollOver = function () { this.holder.target.mousePointer.clip.gotoAndStop('finger'); this.holder.tripletBoySacks.gotoAndStop(2); }; this.tripletBoySacks.HitArea.onRollOut = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this.holder.tripletBoySacks.gotoAndStop(1); }; this.tripletBoySacks.HitArea.onReleaseOutside = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this.holder.tripletBoySacks.gotoAndStop(1); }; this.tripletBoySacks.HitArea.onPress = function () { if (this.holder.CurentPopUp.chekPrestObject(this.holder.tripletBoySacks) == false) { return undefined; } this.holder.tripletBoySacks.gotoAndStop(1); if (this.holder.level.tripletBoySacks > 0 && this.holder.storkReadiForWork != undefined && this.holder.storkReadiForWork.checkPower(3) && this.holder.storkReadiForWork.Houses.length == 0) { if (this.holder.level.game.helpTipsDelivery[18].clip) { this.holder.level.game.helpTipsDelivery[18].hidePopUp(); this.holder.level.game.helpTipsDelivery[30].showPopUp(); this.holder.level.game.helpTipsDelivery[30].PriorityObject = []; var v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].storm) { this.holder.level.game.helpTipsDelivery[30].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[15].clip) { this.holder.level.game.helpTipsDelivery[15].hidePopUp(); this.holder.level.game.helpTipsDelivery[32].showPopUp(); this.holder.level.game.helpTipsDelivery[32].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].rain) { this.holder.level.game.helpTipsDelivery[32].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[21].clip) { this.holder.level.game.helpTipsDelivery[21].hidePopUp(); this.holder.level.game.helpTipsDelivery[31].showPopUp(); this.holder.level.game.helpTipsDelivery[31].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].snow) { this.holder.level.game.helpTipsDelivery[31].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[24].clip) { this.holder.level.game.helpTipsDelivery[24].hidePopUp(); } --this.holder.level.tripletBoySacks; var v3 = this.holder.interfaceMC.tube.attachMovie('simbol_house', utils.StringUtils.getUniqueName(), this.holder.interfaceMC.tube.getNextHighestDepth(), {'_x': 10 + 10 * this.holder.houseSimbols.length, '_y': this.holder.level.tripletBoySacks * 3 + 40}); v3._x += this.holder.tripletBoySacks._x; v3._y += this.holder.tripletBoySacks._y; this.holder.houseSimbols.push(v3); this.holder.houseSimbols[this.holder.houseSimbols.length - 1].numHouse.text = this.holder.houseSimbols.length; this.holder.tripletBoySacks.num.text = this.holder.level.tripletBoySacks; this.holder.storkReadiForWork.Sack = new mcs.DeliverySack(this.holder, 'DeliverySack', 300, 300, this.holder.deptsForSork++, 2, 3, 5); this.holder.storkReadiForWork.Sack.simbolZvezda = v3; this.holder.storkReadiForWork.setBabyNum(); this.holder.storkReadiForWork.Sack.attachSack(); if (this.holder.level.tripletBoySacks == 0) { this.holder.tripletBoySacks._visible = false; } this.holder.target.sndCtrl.stopSound(this.holder.target.soundsId.mouseclick_snd); this.holder.target.sndCtrl.playSound(this.holder.target.soundsId.mouseclick_snd); } }; this.tripletGirlSacks.HitArea.holder = this; this.tripletGirlSacks.HitArea.onRollOver = function () { this.holder.target.mousePointer.clip.gotoAndStop('finger'); this.holder.tripletGirlSacks.gotoAndStop(2); }; this.tripletGirlSacks.HitArea.onRollOut = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this.holder.tripletGirlSacks.gotoAndStop(1); }; this.tripletGirlSacks.HitArea.onReleaseOutside = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this.holder.tripletGirlSacks.gotoAndStop(1); }; this.tripletGirlSacks.HitArea.onPress = function () { if (this.holder.CurentPopUp.chekPrestObject(this.holder.tripletGirlSacks) == false) { return undefined; } this.holder.tripletGirlSacks.gotoAndStop(1); if (this.holder.level.tripletGirlSacks > 0 && this.holder.storkReadiForWork != undefined && this.holder.storkReadiForWork.checkPower(3) && this.holder.storkReadiForWork.Houses.length == 0) { if (this.holder.level.game.helpTipsDelivery[18].clip) { this.holder.level.game.helpTipsDelivery[18].hidePopUp(); this.holder.level.game.helpTipsDelivery[30].showPopUp(); this.holder.level.game.helpTipsDelivery[30].PriorityObject = []; var v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].storm) { this.holder.level.game.helpTipsDelivery[30].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[21].clip) { this.holder.level.game.helpTipsDelivery[21].hidePopUp(); this.holder.level.game.helpTipsDelivery[31].showPopUp(); this.holder.level.game.helpTipsDelivery[31].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].snow) { this.holder.level.game.helpTipsDelivery[31].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[15].clip) { this.holder.level.game.helpTipsDelivery[15].hidePopUp(); this.holder.level.game.helpTipsDelivery[32].showPopUp(); this.holder.level.game.helpTipsDelivery[32].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].rain) { this.holder.level.game.helpTipsDelivery[32].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } } if (this.holder.level.game.helpTipsDelivery[24].clip) { this.holder.level.game.helpTipsDelivery[24].hidePopUp(); } --this.holder.level.tripletGirlSacks; var v3 = this.holder.interfaceMC.tube.attachMovie('simbol_house', utils.StringUtils.getUniqueName(), this.holder.interfaceMC.tube.getNextHighestDepth(), {'_x': 10 + 10 * this.holder.houseSimbols.length, '_y': this.holder.level.tripletGirlSacks * 3 + 40}); v3._x += this.holder.tripletGirlSacks._x; v3._y += this.holder.tripletGirlSacks._y; this.holder.houseSimbols.push(v3); this.holder.houseSimbols[this.holder.houseSimbols.length - 1].numHouse.text = this.holder.houseSimbols.length; this.holder.tripletGirlSacks.num.text = this.holder.level.tripletGirlSacks; this.holder.storkReadiForWork.Sack = new mcs.DeliverySack(this.holder, 'DeliverySack', 300, 300, this.holder.deptsForSork++, 1, 3, 6); this.holder.storkReadiForWork.Sack.simbolZvezda = v3; this.holder.storkReadiForWork.setBabyNum(); this.holder.storkReadiForWork.Sack.attachSack(); if (this.holder.level.tripletGirlSacks == 0) { this.holder.tripletGirlSacks._visible = false; } this.holder.target.sndCtrl.stopSound(this.holder.target.soundsId.mouseclick_snd); this.holder.target.sndCtrl.playSound(this.holder.target.soundsId.mouseclick_snd); } }; this.quadrupletBoySacks.HitArea.holder = this; this.quadrupletBoySacks.HitArea.onRollOver = function () { this.holder.target.mousePointer.clip.gotoAndStop('finger'); this.holder.quadrupletBoySacks.gotoAndStop(2); }; this.quadrupletBoySacks.HitArea.onRollOut = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this.holder.quadrupletBoySacks.gotoAndStop(1); }; this.quadrupletBoySacks.HitArea.onReleaseOutside = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this.holder.quadrupletBoySacks.gotoAndStop(1); }; this.quadrupletBoySacks.HitArea.onPress = function () { if (this.holder.CurentPopUp.chekPrestObject(this.holder.quadrupletBoySacks) == false) { return undefined; } this.holder.quadrupletBoySacks.gotoAndStop(1); if (this.holder.level.quadrupletBoySacks > 0 && this.holder.storkReadiForWork != undefined && this.holder.storkReadiForWork.checkPower(4) && this.holder.storkReadiForWork.Houses.length == 0) { this.holder.level.game.helpTipsDelivery[18].hidePopUp(); this.holder.level.game.helpTipsDelivery[30].showPopUp(); this.holder.level.game.helpTipsDelivery[30].PriorityObject = []; var v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].storm) { this.holder.level.game.helpTipsDelivery[30].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } this.holder.level.game.helpTipsDelivery[15].hidePopUp(); this.holder.level.game.helpTipsDelivery[32].showPopUp(); this.holder.level.game.helpTipsDelivery[32].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].rain) { this.holder.level.game.helpTipsDelivery[32].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } this.holder.level.game.helpTipsDelivery[21].hidePopUp(); this.holder.level.game.helpTipsDelivery[31].showPopUp(); this.holder.level.game.helpTipsDelivery[31].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].snow) { this.holder.level.game.helpTipsDelivery[31].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } if (this.holder.level.game.helpTipsDelivery[24].clip) { this.holder.level.game.helpTipsDelivery[24].hidePopUp(); } --this.holder.level.quadrupletBoySacks; var v3 = this.holder.interfaceMC.tube.attachMovie('simbol_house', utils.StringUtils.getUniqueName(), this.holder.interfaceMC.tube.getNextHighestDepth(), {'_x': 10 + 10 * this.holder.houseSimbols.length, '_y': this.holder.level.quadrupletBoySacks * 3 + 40}); v3._x += this.holder.quadrupletBoySacks._x; v3._y += this.holder.quadrupletBoySacks._y; this.holder.houseSimbols.push(v3); this.holder.houseSimbols[this.holder.houseSimbols.length - 1].numHouse.text = this.holder.houseSimbols.length; this.holder.quadrupletBoySacks.num.text = this.holder.level.quadrupletBoySacks; this.holder.storkReadiForWork.Sack = new mcs.DeliverySack(this.holder, 'DeliverySack', 300, 300, this.holder.deptsForSork++, 2, 4, 7); this.holder.storkReadiForWork.Sack.simbolZvezda = v3; this.holder.storkReadiForWork.setBabyNum(); this.holder.storkReadiForWork.Sack.attachSack(); if (this.holder.level.quadrupletBoySacks == 0) { this.holder.quadrupletBoySacks._visible = false; } this.holder.target.sndCtrl.stopSound(this.holder.target.soundsId.mouseclick_snd); this.holder.target.sndCtrl.playSound(this.holder.target.soundsId.mouseclick_snd); } }; this.quadrupletGirlSacks.HitArea.holder = this; this.quadrupletGirlSacks.HitArea.onRollOver = function () { this.holder.target.mousePointer.clip.gotoAndStop('finger'); this.holder.quadrupletGirlSacks.gotoAndStop(2); }; this.quadrupletGirlSacks.HitArea.onRollOut = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this.holder.quadrupletGirlSacks.gotoAndStop(1); }; this.quadrupletGirlSacks.HitArea.onReleaseOutside = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this.holder.quadrupletGirlSacks.gotoAndStop(1); }; this.quadrupletGirlSacks.HitArea.onPress = function () { if (this.holder.CurentPopUp.chekPrestObject(this.holder.quadrupletGirlSacks) == false) { return undefined; } this.holder.quadrupletGirlSacks.gotoAndStop(1); if (this.holder.level.quadrupletGirlSacks > 0 && this.holder.storkReadiForWork != undefined && this.holder.storkReadiForWork.checkPower(4) && this.holder.storkReadiForWork.Houses.length == 0) { this.holder.level.game.helpTipsDelivery[18].hidePopUp(); this.holder.level.game.helpTipsDelivery[30].showPopUp(); this.holder.level.game.helpTipsDelivery[30].PriorityObject = []; var v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].storm) { this.holder.level.game.helpTipsDelivery[30].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } this.holder.level.game.helpTipsDelivery[21].hidePopUp(); this.holder.level.game.helpTipsDelivery[31].showPopUp(); this.holder.level.game.helpTipsDelivery[31].PriorityObject = []; v2 = 0; while (v2 < this.holder.levelAssets.Houses.length) { if (this.holder.levelAssets.Houses[v2].snow) { this.holder.level.game.helpTipsDelivery[31].PriorityObject.push(this.holder.levelAssets.Houses[v2]); } ++v2; } if (this.holder.level.game.helpTipsDelivery[24].clip) { this.holder.level.game.helpTipsDelivery[24].hidePopUp(); } --this.holder.level.quadrupletGirlSacks; var v3 = this.holder.interfaceMC.tube.attachMovie('simbol_house', utils.StringUtils.getUniqueName(), this.holder.interfaceMC.tube.getNextHighestDepth(), {'_x': 10 + 10 * this.holder.houseSimbols.length, '_y': this.holder.level.quadrupletGirlSacks * 3 + 40}); v3._x += this.holder.quadrupletGirlSacks._x; v3._y += this.holder.quadrupletGirlSacks._y; this.holder.houseSimbols.push(v3); this.holder.houseSimbols[this.holder.houseSimbols.length - 1].numHouse.text = this.holder.houseSimbols.length; this.holder.quadrupletGirlSacks.num.text = this.holder.level.quadrupletGirlSacks; this.holder.storkReadiForWork.Sack = new mcs.DeliverySack(this.holder, 'DeliverySack', 300, 300, this.holder.deptsForSork++, 1, 4, 8); this.holder.storkReadiForWork.Sack.simbolZvezda = v3; this.holder.storkReadiForWork.setBabyNum(); this.holder.storkReadiForWork.Sack.attachSack(); if (this.holder.level.quadrupletGirlSacks == 0) { this.holder.quadrupletGirlSacks._visible = false; } this.holder.target.sndCtrl.stopSound(this.holder.target.soundsId.mouseclick_snd); this.holder.target.sndCtrl.playSound(this.holder.target.soundsId.mouseclick_snd); } }; this.MainMenuCloud.mainMenuBtn.holder = this; this.MainMenuCloud.mainMenuBtn.onRollOver = function () { this.holder.target.mousePointer.clip.gotoAndStop('finger'); this._parent.mainMenu.gotoAndStop(2); }; this.MainMenuCloud.mainMenuBtn.onRollOut = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this._parent.mainMenu.gotoAndStop(1); }; this.MainMenuCloud.mainMenuBtn.onReleaseOutside = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); this._parent.mainMenu.gotoAndStop(1); }; this.MainMenuCloud.mainMenuBtn.onPress = function () { this.holder.target.sndCtrl.stopSound(this.holder.target.soundsId.mouseclick_snd); this.holder.target.sndCtrl.playSound(this.holder.target.soundsId.mouseclick_snd); this.holder.target.mousePointer.clip.gotoAndStop('normal'); this._parent.mainMenu.gotoAndStop(1); if (this.holder.CurentPopUp != undefined) { if (this.holder.flegForPopup == false) { this.holder.level.keyboard.flegForPopup = true; this.holder.PauseScreen = new scr.PauseScreen(this.holder); this.holder.PauseScreen.attachPauseScreen(); } else { this.holder.flegForPopup = false; var v2 = new trans.ClipTransitionPause('CloudLR_out', 'pauseScreen'); v2.Screen = this.holder.PauseScreen; v2.setHolderPosition(this.holder.holder, 400, 300, 100001); v2.startTransition(false); utils.Delegate.callDelayed(v2, v2.toPointTransition, 160, 800, 300, 4); } } else { if (!this.holder.level.pause) { this.holder.pauseInGame(); } else { var v2 = new trans.ClipTransitionPause('CloudLR_out', 'pauseScreen'); v2.Screen = this.PauseScreen; v2.setHolderPosition(this.holder.interfaceMC, 400, 300, 100001); v2.startTransition(false); utils.Delegate.callDelayed(v2, v2.toPointTransition, 160, 800, 300, 4); this.holder.continueGame(); } } }; this.holder.startDelivery.racka.holder = this; this.holder.startDelivery.racka.onPress = function () { this.gotoAndPlay(75); this.holder.target.mousePointer.clip.gotoAndStop('normal'); if (this.holder.CurentPopUp != undefined) { if (this.holder.flegForPopup == false) { this.holder.level.keyboard.flegForPopup = true; this.holder.PauseScreen = new scr.PauseScreen(this.holder); this.holder.PauseScreen.attachPauseScreen(); } else { this.holder.flegForPopup = false; var v2 = new trans.ClipTransitionPause('CloudLR_out', 'pauseScreen'); v2.Screen = this.holder.PauseScreen; v2.setHolderPosition(this.holder.holder, 400, 300, 100001); v2.startTransition(false); utils.Delegate.callDelayed(v2, v2.toPointTransition, 160, 800, 300, 4); } } else { if (!this.holder.level.pause) { this.holder.pauseInGame(); } else { var v2 = new trans.ClipTransitionPause('CloudLR_out', 'pauseScreen'); v2.Screen = this.PauseScreen; v2.setHolderPosition(this.holder.interfaceMC, 400, 300, 100001); v2.startTransition(false); utils.Delegate.callDelayed(v2, v2.toPointTransition, 160, 800, 300, 4); this.holder.continueGame(); } } }; this.holder.startDelivery.racka.onRollOver = function () { this.holder.target.mousePointer.clip.gotoAndStop('finger'); }; this.holder.startDelivery.racka.onRollOut = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); }; this.holder.startDelivery.racka.onReleaseOutside = function () { this.holder.target.mousePointer.clip.gotoAndStop('normal'); }; }; storedv2.startDeliveryGame = function () { this.addEvents(); this.GameIsRuning = true; if (this.level.game.levelNum == 1 && this.level.game.helpOnOff && (this.level.game.helpTipsDelivery[9].shown == false || this.level.game.helpTipsDelivery[9].clip)) { return undefined; } if (this.levelAssets.Weather[0] == 3 && this.level.game.helpTipsDelivery[32].shown == false) { this.target.sndCtrl.stopSound(this.soundsId.gates_snd); this.setNeed(); } else { if (this.levelAssets.Weather[0] == 2 && this.level.game.helpTipsDelivery[30].shown == false) { this.target.sndCtrl.stopSound(this.soundsId.gates_snd); this.setNeed(); } else { if (this.levelAssets.Weather[0] == 1 && this.level.game.helpTipsDelivery[31].shown == false) { this.target.sndCtrl.stopSound(this.soundsId.gates_snd); this.setNeed(); } else { utils.Delegate.callDelayed(this, this.setNeed, 2000); } } } }; storedv2.pauseInGame = function () { this.level.pauseGame(); this.PauseScreen = new scr.PauseScreen(this); this.PauseScreen.attachPauseScreen(); }; storedv2.continueGame = function () { this.level.continueGame(); this.PauseScreen.removePauseScreen(); }; storedv2.targetStork = function () {}; storedv2.markSack = function () {}; storedv2.markStork = function () {}; storedv2.snowballStork = function () {}; storedv2.removeDeliveryScreen = function () { if (this.removeDeliveryScreenFlaf) { return undefined; } if (this.hasRemoveTransition) { this.rTransition.startTransition(); } else { this.remove(); } }; storedv2.addAttachTransition = function (t) { this.aTransition = t; this.aTransition.addTransitionObject(this); this.aTransition.addEventListener('onAttach', this); this.hasAttachTransition = true; }; storedv2.addRemoveTransition = function (t) { this.rTransition = t; this.rTransition.addTransitionObject(this); this.rTransition.addEventListener('onRemove', this); this.hasRemoveTransition = true; }; storedv2.removeAttachTransition = function (t) { this.aTransition.removeEventListener('onAttach', this); this.hasAttachTransition = false; this.aTransition = undefined; }; storedv2.removeRemoveTransition = function (t) { this.rTransition.removeEventListener('onRemove', this); this.hasRemoveTransition = false; this.rTransition = undefined; }; storedv2.attach = function () { this.init(); }; storedv2.remove = function () { if (this.getExpertGoal == true) { this.level.game.expertGoalNum += int(this.level.heartPoints / 1000); this.level.game.expertGoalInOrderNum += 1; } else { this.level.game.expertGoalInOrderNum = 0; } if (this.level.game.expertGoalReached == false && this.level.game.goalReached == false) { this.level.game.gamePoints -= this.level.game.levelPoints; } this.level.game.nextIsFactory = true; this.level.game.endLevelForReal(); this.clip.removeMovieClip(); }; storedv2.onAttach = function () {}; storedv2.onRemove = function () { this.remove(); }; storedv2.tempSingelBoySacks = 0; label 64591: ASSetPropFlags(com.Delivery.prototype, null, 1); #endinitclip } movieClip 9318 __Packages.mcs.PopUp { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.PopUp) { var v1 = function (game, linkID, x, y, depth, id_, linkSide_) { super(linkID, x, y); this.depth = depth; this.game = game; this.shown = false; this.id = id_; this.linkSide = linkSide_; }; mcs.PopUp = v1; mcs.PopUp extends utils.MovieClipProperties; var v2 = v1.prototype; v2.attachClip = function () { if (this.game.level_.factory) { this.clip = this.game.level_.factory.holder.attachMovie(this.linkSide, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.clip.info.text = this.game.Language.getLangText(this.linkID); this.object = this.game.level_.factory; } else { if (this.game.level_.delivery) { this.clip = this.game.level_.delivery.holder.attachMovie(this.linkSide, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.clip.tekstInfo.gotoAndStop(this.linkID); this.object = this.game.level_.delivery; } } this.addEvents(); }; v2.removeClip = function () { this.clip.removeMovieClip(); this.clip = undefined; }; v2.showPopUp = function (game_) { if (this.shown == false) { if (this.game.helpOnOff) { this.game.level_.delivery.CurentPopUp = this; this.attachClip(); this.game.popUpPause = true; this.object.popupShown = true; this.game.currentPopUp = this.id; if (this.id == 1) { this.game.level_.factory.handlePopup = true; } else { if (this.id != 13 && this.id != 14 && this.id != 15 && this.id != 17 && this.id != 18 && this.id != 19 && this.id != 20 && this.id != 21 && this.id != 16) { this.game.level_.pauseGame(); } } } this.shown = true; } }; v2.hidePopUp = function () { if (this.id == 1) { this.game.popUpPause = false; } else { if (this.id == 30 || this.id == 31 || this.id == 32) { this.game.level_.delivery.addEvents(); } else { if (this.id == 9 && this.game.helpTipsDelivery[2].shown == false) { trace('!!!! KE VIKAM SET NEED odPOP UP ' + this.id); this.game.level_.delivery.setNeed(); } } } if (!this.game.level_.factory.holder) { } if (this.id == 38) { this.game.level_.hc.gotoAndPlay(24); } if (this.clip) { this.game.level_.delivery.CurentPopUp = undefined; this.removeClip(); this.game.popUpPause = false; this.object.popupShown = false; } }; v2.addEvents = function () { this.clip.ok_Btn.holder = this; this.clip.ok_Btn.onPress = function () { this.holder.game.level_.delivery.continueGame(); this.holder.hidePopUp(); }; }; v2.hideAndShowNext = function () { this.hidePopUp(); if (this.game.currentPopUp == this.id) { this.game.helpTips[this.id + 1].showPopUp(); } }; v2.chekPrestObject = function (PrestetBoject) { if (!this.game.helpOnOff) { return true; } var v2 = 0; while (v2 < this.PriorityObject.length) { if (PrestetBoject == this.PriorityObject[v2]) { return true; } ++v2; } return false; }; ASSetPropFlags(mcs.PopUp.prototype, null, 1); } #endinitclip } movieClip 9319 __Packages.config.level1Assets { #initclip if (!_global.config) { _global.config = new Object(); } if (!_global.config.level1Assets) { var v1 = function (delivery) { trace('level1Assets'); this.delivery = delivery; this.level = delivery.level; this.game = this.level.game; this.Storks = []; this.Houses = []; this.WINDBLOWERFLAG = false; this.singelBoySacks = []; this.singelGirlSacks = []; this.twinBoySacks = []; this.twinGirlSacks = []; this.tripletBoySacks = []; this.tripletGirlSacks = []; this.quadrupletBoySacks = []; this.quadrupletGirlSacks = []; this.id = 1; this.targetTime = 3; this.AlianceTime = 20; this.WinBlowerTime = 250000; this.WinBlowerSpeed = 5; this.CanonFlag = false; this.PointForGoal = 45; this.PointForExpertGoal = 90; this.backGround = 'Prolet'; this.init(); }; config.level1Assets = v1; var v2 = v1.prototype; v2.init = function () { trace('init<<level1Assets ' + this.delivery); this.Houses.push(new mcs.House(this.delivery, 'house2', 178.6, 377.1, this.level.depth.getDepth('House'), 'house', 239.2, 350.9, false, 182.6, 313.2)); this.Houses.push(new mcs.House(this.delivery, 'house4', 331.9, 354.3, this.level.depth.getDepth('House'), 'house', 355.9, 319.8, false, 317.9, 283.7)); this.Houses.push(new mcs.House(this.delivery, 'house5', 416, 412.5, this.level.depth.getDepth('House'), 'house', 459.4, 392.6, true, 436.6, 351.6)); this.Houses.push(new mcs.House(this.delivery, 'house8', 635, 252, this.level.depth.getDepth('House'), 'house', 660.6, 221.3, true, 626.3, 183.7)); this.Houses.push(new mcs.House(this.delivery, 'house10', 563.4, 237.9, this.level.depth.getDepth('House'), 'house', 583.8, 191.8, true, 548.5, 149.4)); trace('this.Houses ' + this.Houses); this.wishArray = [[0], [3, 1], [2, 4]]; this.eventNumber = [1, 1, 2, 2]; this.Weather = [0, 0, 0, 0, 0]; this.TimesForNeed = [36, 25, 40, 20, 25, 30, 30, 40]; }; ASSetPropFlags(config.level1Assets.prototype, null, 1); } #endinitclip } movieClip 9320 __Packages.mcs.House { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.House) { var v1 = function (delivery_, linkID, x, y, depth, tupe_, cloudX_, cloudY_, cloudFlip_, weatherX_, weatherY_) { super(linkID, x, y); this.X = x; this.Y = y; this.tupe = tupe_; this.depth = depth; this.delivery = delivery_; this.state = 1; this.starNum = 0; this.storm = false; this.snow = false; this.rain = false; this.Selected = false; this.weatherX = weatherX_; this.weatherY = weatherY_; this.FirstTimeFlag = true; if (cloudX_ != undefined) { this.cloudX = cloudX_; this.cloudY = cloudY_; this.cloudFlip = cloudFlip_; } else { this.cloudX = this.x + 10; this.cloudY = this.y - 30; } switch (tupe_) { case 'house': this.addPoints = 15; this.losePoints = -10; this.loseTime = 15; this.timeforFirstFase = 30000; this.timeMinus = 12000; break; case 'flat': this.addPoints = 25; this.losePoints = -20; this.loseTime = 15; this.timeforFirstFase = 21000; this.timeMinus = 8000; break; case 'skyscraper': this.addPoints = 40; this.losePoints = -40; this.loseTime = 15; this.timeforFirstFase = 14000; this.timeMinus = 5000; break; case 'hospital': this.addPoints = 65; this.losePoints = -65; this.loseTime = 15; this.timeforFirstFase = 10000; this.timeMinus = 3000; } this.sounds = [['cloudrain_snd', 100, false], ['cloudsnow_snd', 100, false], ['cloudthunder_snd', 100, false]]; this.soundsId = new Array(); this.attachSounds(); }; mcs.House = v1; mcs.House extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.House implements _global.utils.IClipEvents; v2.attachSounds = function () { var v2 = 0; while (v2 < this.sounds.length) { var v3 = this.delivery.level.game.soundClip.createEmptyMovieClip(utils.StringUtils.getUniqueName(), this.delivery.level.game.soundClip.getNextHighestDepth()); var v4 = new utils.SoundImpl(v3); v4.attachSoundImpl(this.sounds[v2][0], this.sounds[v2][1], this.sounds[v2][2]); this.soundsId[this.sounds[v2][0]] = this.delivery.level.game.sndCtrl.addSound(this.sounds[v2][0], v3, this.sounds[v2][1], this.sounds[v2][2]); if (this.sounds[v2][2]) { this.delivery.level.game.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.delivery.level.game.sndCtrl.getMusicVolume()); } else { this.delivery.level.game.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.delivery.level.game.sndCtrl.getSoundFXVolume()); } ++v2; } }; v2.changeState = function (wish_, num_) { trace('changeState ' + wish_ + ' num_ ' + num_); this.wish = wish_; if (this.delivery.levelAssets.wishArray[this.delivery.WishStep + 1].length == undefined) { this.delivery.level.pointsArray.push(8); this.delivery.level.changePointsInDelivery(0, this.clip, 1, undefined); } this.timeWithNeed = getTimer() + this.timeMinus; this.clip.gotoAndStop(2); switch (wish_) { case 0: this.oblak = this.delivery.holder.attachMovie('ParentsWishesTwins', 'oblak', this.depth + 60, {'_x': this.cloudX, '_y': this.cloudY}); this.oblak2 = this.delivery.holder.attachMovie('ParentsWishesTwins', 'oblak2', this.depth + 2060, {'_x': this.cloudX, '_y': this.cloudY}); this.delivery.level.game.helpTipsDelivery[25].showPopUp(); this.delivery.level.game.helpTipsDelivery[25].SpecialObject = this.clip; this.delivery.level.game.helpTipsDelivery[25].clip._x = this.clip._x - 150; this.delivery.level.game.helpTipsDelivery[25].clip._y = this.clip._y - 250; break; case 1: this.oblak = this.delivery.holder.attachMovie('ParentsWishesGirl', 'oblak', this.depth + 60, {'_x': this.cloudX, '_y': this.cloudY}); this.oblak2 = this.delivery.holder.attachMovie('ParentsWishesGirl', 'oblak2', this.depth + 2060, {'_x': this.cloudX, '_y': this.cloudY}); break; case 2: this.oblak = this.delivery.holder.attachMovie('ParentsWishesBoy', 'oblak', this.depth + 60, {'_x': this.cloudX, '_y': this.cloudY}); this.oblak2 = this.delivery.holder.attachMovie('ParentsWishesBoy', 'oblak2', this.depth + 2060, {'_x': this.cloudX, '_y': this.cloudY}); } this.FirstTimeFlag = true; if (this.cloudFlip) { this.oblak._xscale *= -1; this.oblak2._xscale *= -1; } var v2 = num_; if (v2 == 1) { this.SnowCloud = this.delivery.holder.attachMovie('SnowCloud', 'SnowCloud', this.depth + 1060, {'_x': this.weatherX, '_y': this.weatherY}); this.delivery.level.game.helpTipsDelivery[19].showPopUp(); this.delivery.level.game.helpTipsDelivery[19].PriorityObject = [this.delivery.level.game.Storks[5], this.delivery.level.game.Storks[4], this.delivery.level.game.Storks[3], this.delivery.level.game.Storks[2], this.delivery.level.game.Storks[1], this.delivery.level.game.Storks[0]]; this.snow = true; this.delivery.target.sndCtrl.stopSound(this.soundsId.cloudsnow_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.cloudsnow_snd, 32000); } else { if (v2 == 2) { this.SnowCloud = this.delivery.holder.attachMovie('StormCloud', 'StormCloud', this.depth + 1060, {'_x': this.weatherX, '_y': this.weatherY}); this.delivery.level.game.helpTipsDelivery[16].showPopUp(); this.delivery.level.game.helpTipsDelivery[16].PriorityObject = [this.delivery.level.game.Storks[5], this.delivery.level.game.Storks[4], this.delivery.level.game.Storks[3], this.delivery.level.game.Storks[2], this.delivery.level.game.Storks[1], this.delivery.level.game.Storks[0]]; this.storm = true; this.delivery.target.sndCtrl.stopSound(this.soundsId.cloudthunder_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.cloudthunder_snd, 32000); } else { if (v2 == 3) { this.SnowCloud = this.delivery.holder.attachMovie('RainCloud', 'RainCloud', this.depth + 1060, {'_x': this.weatherX, '_y': this.weatherY}); this.delivery.level.game.helpTipsDelivery[13].showPopUp(); this.delivery.level.game.helpTipsDelivery[13].PriorityObject = [this.delivery.level.game.Storks[5], this.delivery.level.game.Storks[4], this.delivery.level.game.Storks[3], this.delivery.level.game.Storks[2], this.delivery.level.game.Storks[1], this.delivery.level.game.Storks[0]]; this.rain = true; this.delivery.target.sndCtrl.stopSound(this.soundsId.cloudrain_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.cloudrain_snd, 32000); } } } this.addEvents(); }; v2.clearClouds = function () { this.SnowCloud.removeMovieClip(); this.SnowCloud = undefined; this.delivery.target.sndCtrl.stopSound(this.soundsId.cloudrain_snd); this.delivery.target.sndCtrl.stopSound(this.soundsId.cloudthunder_snd); this.delivery.target.sndCtrl.stopSound(this.soundsId.cloudsnow_snd); }; v2.takeBaby = function () {}; v2.attachHouse = function () { this.clip = this.delivery.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.addEvents(); }; v2.removeHouse = function () { this.clip.removeMovieClip(); }; v2.addEvents = function () { this.oblak.HitArea.holder = this; this.oblak.HitArea.onPress = function () { if (this.holder.delivery.CurentPopUp.chekPrestObject(this.holder) == false) { return undefined; } if (this.holder.delivery.storkReadiForWork.Sacks.length > 0 && this.holder.delivery.storkReadiForWork.Sacks.length >= this.holder.delivery.storkReadiForWork.Houses.length + 1 && this.holder.delivery.storkReadiForWork != undefined && this.holder.wish != undefined && !this.holder.Selected) { if (this.holder != this.holder.delivery.storkReadiForWork.Houses[this.holder.delivery.storkReadiForWork.Houses.length - 1] && this.holder.delivery.storkReadiForWork.Houses.length < 8 && !this.holder.delivery.storkReadiForWork.GoHomeFlag) { if (this.holder.delivery.level.game.helpTipsDelivery[25].SpecialObject == this.holder.clip) { this.holder.delivery.level.game.helpTipsDelivery[25].hidePopUp(); } this.holder.delivery.storkReadiForWork.Houses.push(this.holder); this.holder.delivery.level.game.helpTipsDelivery[32].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[30].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[31].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[3].hidePopUp(); this.holder.delivery.level.continueGame(); this.holder.delivery.level.game.helpTipsDelivery[8].showPopUp(); if (this.holder.starNum < 4) { ++this.holder.starNum; } else { this.holder.starNum = 0; } this.holder.Selected = true; this.holder.star = this.holder.clip.attachMovie('simbol_house1', 'simbol_house1', 1, {'_x': 20, '_y': 45}); this.holder.delivery.Stars.push(this.holder.star); this.holder.delivery.Stars[this.holder.delivery.Stars.length - 1].starNum.text = this.holder.delivery.Stars.length.toString(); this.holder.delivery.target.sndCtrl.stopSound(this.holder.delivery.target.soundsId.mouseclick_snd); this.holder.delivery.target.sndCtrl.playSound(this.holder.delivery.target.soundsId.mouseclick_snd); } else {} } else {} }; this.clip.HitArea.holder = this; this.clip.HitArea.onPress = function () { if (this.hitTest(_xmouse, _ymouse, true)) { if (this.holder.delivery.CurentPopUp.chekPrestObject(this.holder) == false) { return undefined; } if (this.holder.delivery.storkReadiForWork.Sacks.length > 0 && this.holder.delivery.storkReadiForWork.Sacks.length >= this.holder.delivery.storkReadiForWork.Houses.length + 1 && this.holder.delivery.storkReadiForWork != undefined && this.holder.wish != undefined && !this.holder.Selected) { if (this.holder.delivery.level.game.helpTipsDelivery[25].SpecialObject == this.holder.clip) { this.holder.delivery.level.game.helpTipsDelivery[25].hidePopUp(); } if (this.holder != this.holder.delivery.storkReadiForWork.Houses[this.holder.delivery.storkReadiForWork.Houses.length - 1] && this.holder.delivery.storkReadiForWork.Houses.length < 8 && !this.holder.delivery.storkReadiForWork.GoHomeFlag) { this.holder.delivery.storkReadiForWork.Houses.push(this.holder); this.holder.delivery.level.game.helpTipsDelivery[32].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[30].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[31].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[3].hidePopUp(); this.holder.delivery.level.continueGame(); this.holder.delivery.level.game.helpTipsDelivery[8].showPopUp(); if (this.holder.starNum < 4) { ++this.holder.starNum; } else { this.holder.starNum = 0; } this.holder.Selected = true; this.holder.star = this.holder.clip.attachMovie('simbol_house1', 'simbol_house1', 1, {'_x': 20, '_y': 45}); this.holder.delivery.Stars.push(this.holder.star); this.holder.delivery.Stars[this.holder.delivery.Stars.length - 1].starNum.text = this.holder.delivery.Stars.length.toString(); this.holder.delivery.target.sndCtrl.stopSound(this.holder.delivery.target.soundsId.mouseclick_snd); this.holder.delivery.target.sndCtrl.playSound(this.holder.delivery.target.soundsId.mouseclick_snd); } else {} } else {} } }; this.oblak.HitArea.onRollOver = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('finger'); }; this.oblak.HitArea.onRollOut = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; this.oblak.HitArea.onReleaseOutside = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.HitArea.onRollOver = function () { if (this.hitTest(_xmouse, _ymouse, true)) { this.holder.delivery.target.mousePointer.clip.gotoAndStop('finger'); } }; this.clip.HitArea.onRollOut = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.HitArea.onReleaseOutside = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; }; ASSetPropFlags(mcs.House.prototype, null, 1); } #endinitclip } movieClip 9321 __Packages.config.level2Assets { #initclip if (!_global.config) { _global.config = new Object(); } if (!_global.config.level2Assets) { var v1 = function (delivery) { trace('level2Assets'); this.delivery = delivery; this.level = delivery.level; this.game = this.level.game; this.Storks = []; this.Houses = []; this.WINDBLOWERFLAG = false; this.singelBoySacks = []; this.singelGirlSacks = []; this.twinBoySacks = []; this.twinGirlSacks = []; this.tripletBoySacks = []; this.tripletGirlSacks = []; this.quadrupletBoySacks = []; this.quadrupletGirlSacks = []; this.PointForGoal = 75; this.targetTime = 3; this.AlianceTime = 20; this.WinBlowerTime = 1000000; this.WinBlowerSpeed = 5; this.CanonFlag = false; this.PointForExpertGoal = 105; this.backGround = 'Prolet'; this.id = 2; this.init(); }; config.level2Assets = v1; var v2 = v1.prototype; v2.init = function () { trace('init<<level2Assets ' + this.delivery); this.Houses.push(new mcs.House(this.delivery, 'house2', 178.6, 377.1, this.level.depth.getDepth('House'), 'house', 239.2, 350.9, false, 182.6, 313.2)); this.Houses.push(new mcs.House(this.delivery, 'house4', 331.9, 354.3, this.level.depth.getDepth('House'), 'house', 355.9, 319.8, false, 317.9, 283.7)); this.Houses.push(new mcs.House(this.delivery, 'house5', 416, 412.5, this.level.depth.getDepth('House'), 'house', 459.4, 392.6, true, 436.6, 351.6)); this.Houses.push(new mcs.House(this.delivery, 'house6', 617, 418.5, this.level.depth.getDepth('House'), 'house', 653.6, 392.1, true, 627.6, 353.6)); this.Houses.push(new mcs.House(this.delivery, 'house8', 635, 252, this.level.depth.getDepth('House'), 'house', 660.6, 221.3, true, 626.3, 183.7)); this.Houses.push(new mcs.House(this.delivery, 'house10', 563.4, 237.9, this.level.depth.getDepth('House'), 'house', 583.8, 191.8, true, 548.5, 149.4)); trace('this.Houses ' + this.Houses); this.wishArray = [[0, 5], [2, 4, 1], [3]]; this.eventNumber = [1, 1, 2, 3]; this.Weather = [0, 0, 0, 0, 0, 0, 0]; this.TimesForNeed = [25, 40, 60, 40, 60, 40, 60, 40]; }; ASSetPropFlags(config.level2Assets.prototype, null, 1); } #endinitclip } movieClip 9322 __Packages.config.level3Assets { #initclip if (!_global.config) { _global.config = new Object(); } if (!_global.config.level3Assets) { var v1 = function (delivery) { trace('level3Assets'); this.delivery = delivery; this.level = delivery.level; this.game = this.level.game; this.Storks = []; this.Houses = []; this.singelBoySacks = []; this.singelGirlSacks = []; this.twinBoySacks = []; this.twinGirlSacks = []; this.tripletBoySacks = []; this.tripletGirlSacks = []; this.quadrupletBoySacks = []; this.quadrupletGirlSacks = []; this.PointForGoal = 130; this.PointForExpertGoal = 210; this.targetTime = 3; this.CanonFlag = false; this.AlianceTime = 20; this.WINDBLOWERFLAG = false; this.WinBlowerTime = 250000; this.WinBlowerSpeed = 5; this.backGround = 'Prolet'; var backGround; this.id = 3; this.init(); }; config.level3Assets = v1; var v2 = v1.prototype; v2.init = function () { trace('init<<level3Assets ' + this.delivery); trace('init<<level1Assets ' + this.delivery); this.Houses.push(new mcs.House(this.delivery, 'house1', 151.7, 421.5, this.level.depth.getDepth('House'), 'house', 207.4, 388.4, false, 144.1, 345.4)); this.Houses.push(new mcs.House(this.delivery, 'house2', 178.6, 377.1, this.level.depth.getDepth('House'), 'house', 239.2, 350.9, false, 182.6, 313.2)); this.Houses.push(new mcs.House(this.delivery, 'house4', 331.9, 354.3, this.level.depth.getDepth('House'), 'house', 355.9, 319.8, false, 317.9, 283.7)); this.Houses.push(new mcs.House(this.delivery, 'house5', 416, 412.5, this.level.depth.getDepth('House'), 'house', 459.4, 392.6, true, 436.6, 351.6)); this.Houses.push(new mcs.House(this.delivery, 'house6', 617, 418.5, this.level.depth.getDepth('House'), 'house', 653.6, 392.1, true, 627.6, 353.6)); this.Houses.push(new mcs.House(this.delivery, 'house8', 635, 252, this.level.depth.getDepth('House'), 'house', 660.6, 221.3, true, 626.3, 183.7)); this.Houses.push(new mcs.House(this.delivery, 'house10', 563.4, 237.9, this.level.depth.getDepth('House'), 'house', 583.8, 191.8, true, 548.5, 149.4)); trace('this.Houses ' + this.Houses); this.wishArray = [[4], [3, 0, 6], [1, 2, 5], [4]]; this.eventNumber = [1, 2, 2, 2, 1]; this.Weather = [3, 0, 0, 0, 0, 3, 3, 0]; this.TimesForNeed = [30, 20, 30, 40, 60, 40, 60, 40]; }; ASSetPropFlags(config.level3Assets.prototype, null, 1); } #endinitclip } movieClip 9323 __Packages.config.level4Assets { #initclip if (!_global.config) { _global.config = new Object(); } if (!_global.config.level4Assets) { var v1 = function (delivery) { trace('level4Assets'); this.delivery = delivery; this.level = delivery.level; this.game = this.level.game; this.Storks = []; this.Houses = []; this.singelBoySacks = []; this.singelGirlSacks = []; this.twinBoySacks = []; this.twinGirlSacks = []; this.tripletBoySacks = []; this.tripletGirlSacks = []; this.quadrupletBoySacks = []; this.quadrupletGirlSacks = []; this.PointForGoal = 215; this.targetTime = 3; this.AlianceTime = 20; this.CanonFlag = false; this.WINDBLOWERFLAG = false; this.WinBlowerTime = 250000; this.WinBlowerSpeed = 5; this.PointForExpertGoal = 370; this.backGround = 'Prolet'; this.id = 4; this.init(); }; config.level4Assets = v1; var v2 = v1.prototype; v2.init = function () { trace('init<<level4Assets ' + this.delivery); this.Houses.push(new mcs.House(this.delivery, 'house1', 151.7, 421.5, this.level.depth.getDepth('House'), 'house', 207.4, 388.4, false, 144.1, 345.4)); this.Houses.push(new mcs.House(this.delivery, 'house2', 178.6, 377.1, this.level.depth.getDepth('House'), 'house', 239.2, 350.9, false, 182.6, 313.2)); this.Houses.push(new mcs.House(this.delivery, 'house3', 243.3, 375.6, this.level.depth.getDepth('House'), 'house', 287.1, 343.6, false, 234.1, 298.3)); this.Houses.push(new mcs.House(this.delivery, 'house4', 331.9, 354.3, this.level.depth.getDepth('House'), 'house', 355.9, 319.8, false, 317.9, 283.7)); this.Houses.push(new mcs.House(this.delivery, 'house5', 416, 412.5, this.level.depth.getDepth('House'), 'house', 459.4, 392.6, true, 436.6, 351.6)); this.Houses.push(new mcs.House(this.delivery, 'house6', 617, 418.5, this.level.depth.getDepth('House'), 'house', 653.6, 392.1, true, 627.6, 353.6)); this.Houses.push(new mcs.House(this.delivery, 'house8', 635, 252, this.level.depth.getDepth('House'), 'house', 660.6, 221.3, true, 626.3, 183.7)); this.Houses.push(new mcs.House(this.delivery, 'house10', 563.4, 237.9, this.level.depth.getDepth('House'), 'house', 583.8, 191.8, true, 548.5, 149.4)); trace('this.Houses ' + this.Houses); this.wishArray = [[0, 4], [7], [1, 3], [6], [5, 2], [0, 7], [4]]; this.eventNumber = [1, 1, 1, 2, 1, 1, 1]; this.Weather = [0, 0, 3, 0, 3, 3, 0, 3, 3, 0, 3]; this.TimesForNeed = [20, 15, 60, 30, 30, 30, 60, 40]; }; ASSetPropFlags(config.level4Assets.prototype, null, 1); } #endinitclip } movieClip 9324 __Packages.config.LevelConfig { #initclip if (!_global.config) { _global.config = new Object(); } if (!_global.config.LevelConfig) { var v1 = function (level_) { this.level = level_; this.game = this.level.game; this.babyType = new Array(); this.parentWish = new Array(); this.launcherDemage = new Array(); this.babyGirl = 1; this.babyBoy = 2; this.init(); }; config.LevelConfig = v1; var v2 = v1.prototype; v2.init = function () { trace('config.LevelConfig + levelConfg ' + this.level.game.levelNum); switch (this.level.game.levelNum) { case 1: trace('case 1'); this.babyType = [1, 1, 2, 2, 1]; this.parentWish = [2, 1, 1, 2, 1]; this.launcherDemage = [0, 0, 0, 0, 0]; this.onEvent = [0, 5, 4, 4]; this.onTime = [0, 25, 20, 35]; this.levelGoal = 70; this.levelExpertGoal = 112; this.levelBlinkingSpeed = 1000; this.levelSpeed = 10; this.packingSpeed = 25; break; case 2: this.babyType = [2, 1, 3, 3, 3, 1]; this.parentWish = [1, 2, 0, 2, 2, 1]; this.launcherDemage = [0, 0, 0, 0, 0, 0]; this.onEvent = [4, 3, 5, 2, 3]; this.onTime = [15, 25, 12, 16, 15]; this.levelGoal = 104; this.levelExpertGoal = 158; this.levelBlinkingSpeed = 1000; this.levelSpeed = 12; this.packingSpeed = 25; break; case 3: this.babyType = [2, 4, 3, 3, 4, 2, 1, 2]; this.parentWish = [2, 2, 1, 2, 1, 1, 2, 2]; this.launcherDemage = [0, 0, 1, 0, 0, 1, 0, 0]; this.onEvent = [2, 3, 2, 2, 5, 2, 3]; this.onTime = [30, 40, 40, 40, 25, 15, 20]; this.levelGoal = 146; this.levelExpertGoal = 220; this.levelBlinkingSpeed = 950; this.levelSpeed = 13; this.packingSpeed = 25; break; case 4: this.babyType = [4, 3, 3, 1, 3, 4, 2, 3, 2, 4, 3]; this.parentWish = [1, 0, 2, 1, 1, 0, 2, 1, 2, 1, 2]; this.launcherDemage = [0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0]; this.onEvent = [2, 3, 3, 6, 3, 2, 2, 3, 4, 2]; this.onTime = [10, 15, 25, 10, 15, 15, 11, 20, 30, 12]; this.levelGoal = 202; this.levelExpertGoal = 298; this.levelBlinkingSpeed = 920; this.levelSpeed = 15; this.packingSpeed = 25; break; case 5: this.babyType = [3, 1, 2, 3, 1, 4, 2, 2, 3, 4, 4, 3, 3]; this.parentWish = [0, 1, 2, 0, 2, 1, 2, 1, 0, 2, 2, 1, 0]; this.launcherDemage = [0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]; this.onEvent = [3, 3, 3, 2, 4, 2, 3, 3, 2, 4, 1, 3]; this.onTime = [15, 15, 25, 15, 15, 15, 19, 18, 11, 25, 13, 19]; this.levelGoal = 300; this.levelExpertGoal = 425; this.levelBlinkingSpeed = 890; this.levelSpeed = 16; this.packingSpeed = 25; break; case 6: this.babyType = [1, 1, 4, 4, 3, 4, 2, 1, 4, 4, 3, 3, 2, 1]; this.parentWish = [1, 0, 1, 2, 2, 0, 1, 2, 1, 2, 1, 2, 2, 1]; this.launcherDemage = [0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0]; this.onEvent = [2, 4, 3, 2, 2, 5, 4, 2, 2, 3, 5, 1, 3]; this.onTime = [30, 30, 25, 25, 15, 20, 20, 11, 13, 23, 33, 15, 24]; this.levelGoal = 350; this.levelExpertGoal = 438; this.levelBlinkingSpeed = 870; this.levelSpeed = 16; this.packingSpeed = 25; break; case 7: this.babyType = [4, 3, 2, 1, 4, 1, 3, 3, 2, 2, 1, 4, 4, 2, 3]; this.parentWish = [1, 1, 0, 0, 1, 2, 2, 1, 2, 1, 2, 2, 1, 0, 2]; this.launcherDemage = [0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; this.onEvent = [2, 2, 2, 5, 3, 2, 3, 5, 3, 4, 1, 3, 2, 2]; this.onTime = [15, 15, 55, 45, 15, 25, 60, 30, 20, 20, 13, 25, 16, 18]; this.levelGoal = 404; this.levelExpertGoal = 474; this.levelBlinkingSpeed = 860; this.levelSpeed = 17; this.packingSpeed = 27; break; case 8: this.babyType = [1, 2, 1, 4, 4, 3, 2, 2, 3, 4, 3, 2, 3, 3, 4, 2, 4]; this.parentWish = [2, 0, 1, 1, 2, 2, 0, 0, 2, 1, 1, 1, 2, 1, 2, 2, 1]; this.launcherDemage = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.onEvent = [2, 3, 2, 3, 5, 3, 3, 2, 2, 5, 1, 3, 2, 2, 4, 2]; this.onTime = [15, 15, 15, 35, 25, 15, 20, 20, 10, 13, 11, 25, 15, 13, 44, 22]; this.levelGoal = 448; this.levelExpertGoal = 518; this.levelBlinkingSpeed = 840; this.levelSpeed = 18; this.packingSpeed = 27; break; case 9: this.babyType = [4, 3, 1, 4, 4, 2, 3, 2, 4, 3, 3, 4, 2, 1, 4, 3, 1, 1]; this.parentWish = [0, 0, 2, 1, 0, 1, 2, 1, 1, 2, 1, 1, 2, 0, 2, 1, 2, 2]; this.launcherDemage = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0]; this.onEvent = [2, 1, 3, 2, 3, 4, 4, 3, 2, 2, 3, 4, 2, 1, 3, 2, 2]; this.onTime = [15, 15, 15, 15, 55, 45, 20, 20, 20, 20, 27, 46, 56, 15, 35, 25, 25]; this.levelGoal = 484; this.levelExpertGoal = 582; this.levelBlinkingSpeed = 840; this.levelSpeed = 19; this.packingSpeed = 27; break; case 10: this.babyType = [3, 5, 5, 4, 4, 3, 5, 4, 5, 3, 3, 2, 2, 4, 3, 3, 2, 1, 4]; this.parentWish = [1, 1, 2, 0, 1, 2, 2, 1, 2, 1, 0, 1, 1, 0, 2, 1, 1, 2, 0]; this.launcherDemage = [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]; this.onEvent = [2, 3, 4, 2, 2, 2, 3, 4, 2, 1, 3, 3, 2, 5, 2, 1, 3, 3]; this.onTime = [15, 45, 30, 15, 15, 45, 25, 25, 20, 19, 37, 46, 15, 45, 22, 10, 20, 19]; this.levelGoal = 512; this.levelExpertGoal = 610; this.levelBlinkingSpeed = 830; this.levelSpeed = 19; this.packingSpeed = 27; break; case 11: this.babyType = [4, 4, 5, 3, 5, 4, 2, 3, 5, 4, 2, 5, 3, 4, 5, 2, 3, 2, 1, 5]; this.parentWish = [1, 0, 1, 0, 1, 0, 1, 1, 2, 2, 1, 2, 0, 2, 2, 1, 2, 1, 1, 0]; this.launcherDemage = [0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]; this.onEvent = [3, 1, 2, 4, 4, 1, 1, 2, 2, 4, 2, 4, 1, 2, 4, 2, 3, 1, 3]; this.onTime = [25, 15, 18, 55, 15, 15, 20, 20, 40, 20, 47, 16, 23, 13, 25, 25, 25, 25, 19]; this.levelGoal = 536; this.levelExpertGoal = 644; this.levelBlinkingSpeed = 820; this.levelSpeed = 20; this.packingSpeed = 27; break; case 12: this.babyType = [2, 1, 5, 4, 3, 5, 2, 3, 1, 5, 2, 3, 4, 2, 5, 2, 5, 3, 2, 4, 3]; this.parentWish = [2, 2, 1, 0, 0, 1, 2, 2, 1, 0, 2, 0, 2, 1, 2, 1, 1, 2, 1, 2, 0]; this.launcherDemage = [0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0]; this.onEvent = [4, 2, 1, 2, 1, 3, 1, 2, 4, 4, 3, 4, 2, 2, 3, 3, 1, 5, 1, 3]; this.onTime = [45, 15, 18, 15, 25, 15, 20, 45, 40, 30, 47, 16, 23, 33, 15, 16, 56, 16, 16, 16]; this.levelGoal = 570; this.levelExpertGoal = 670; this.levelBlinkingSpeed = 810; this.levelSpeed = 21; this.packingSpeed = 27; break; case 13: this.babyType = [5, 4, 3, 4, 5, 3, 5, 4, 4, 3, 5, 5, 4, 3, 4, 3, 3, 4, 5, 2, 1, 3]; this.parentWish = [1, 1, 1, 2, 2, 1, 2, 2, 1, 1, 2, 1, 1, 1, 2, 2, 1, 2, 1, 1, 2, 1]; this.launcherDemage = [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0]; this.onEvent = [3, 3, 4, 4, 1, 1, 4, 2, 3, 4, 4, 4, 2, 1, 2, 4, 2, 3, 1, 5, 3]; this.onTime = [35, 45, 48, 15, 15, 35, 20, 25, 40, 40, 47, 26, 13, 23, 55, 15, 25, 18, 18, 59, 25]; this.levelGoal = 590; this.levelExpertGoal = 704; this.levelBlinkingSpeed = 800; this.levelSpeed = 21; this.packingSpeed = 27; break; case 14: this.babyType = [6, 5, 4, 6, 4, 6, 5, 3, 5, 4, 6, 3, 4, 5, 5, 4, 6, 3, 6, 5, 2, 4, 3]; this.parentWish = [2, 0, 2, 1, 1, 0, 2, 1, 1, 2, 1, 2, 2, 0, 0, 0, 1, 1, 2, 2, 2, 1, 1]; this.launcherDemage = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0]; this.onEvent = [3, 2, 1, 5, 1, 2, 2, 2, 4, 3, 4, 3, 2, 2, 1, 4, 1, 3, 2, 3, 5, 2]; this.onTime = [35, 45, 48, 19, 19, 35, 20, 25, 40, 40, 47, 26, 13, 23, 55, 15, 15, 25, 20, 20, 50, 20]; this.levelGoal = 633; this.levelExpertGoal = 730; this.levelBlinkingSpeed = 780; this.levelSpeed = 22; this.packingSpeed = 27; break; case 15: this.babyType = [5, 6, 6, 5, 6, 6, 5, 4, 5, 4, 6, 6, 5, 4, 6, 4, 6, 5, 6, 4, 4, 4, 4, 4]; this.parentWish = [1, 2, 1, 2, 0, 2, 2, 1, 2, 1, 1, 1, 2, 2, 1, 1, 2, 2, 2, 2, 1, 2, 1, 2]; this.launcherDemage = [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1]; this.onEvent = [1, 3, 2, 1, 2, 3, 4, 1, 3, 2, 1, 2, 2, 5, 1, 3, 1, 1, 5, 1, 3, 1, 2]; this.onTime = [35, 25, 18, 15, 20, 55, 50, 35, 20, 10, 17, 16, 43, 53, 25, 15, 15, 10, 45, 10, 25, 10, 16]; this.levelGoal = 668; this.levelExpertGoal = 765; this.levelBlinkingSpeed = 770; this.levelSpeed = 23; this.packingSpeed = 27; break; case 16: this.babyType = [3, 4, 6, 5, 6, 3, 5, 4, 6, 1, 6, 3, 4, 6, 2, 5, 6, 6, 5, 2, 1, 2, 3, 4, 6]; this.parentWish = [1, 0, 2, 2, 2, 0, 1, 1, 1, 0, 2, 1, 2, 1, 2, 2, 2, 1, 1, 0, 2, 1, 2, 1, 2]; this.launcherDemage = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.onEvent = [2, 2, 1, 3, 4, 5, 1, 3, 3, 3, 1, 6, 3, 2, 1, 4, 4, 2, 1, 3, 2, 4, 2, 1]; this.onTime = [25, 15, 38, 35, 50, 15, 20, 25, 20, 18, 67, 46, 16, 13, 25, 45, 15, 18, 15, 15, 30, 14, 18, 14]; this.levelGoal = 696; this.levelExpertGoal = 804; this.levelBlinkingSpeed = 770; this.levelSpeed = 24; this.packingSpeed = 27; break; case 17: this.babyType = [2, 1, 6, 5, 4, 3, 6, 4, 5, 1, 6, 5, 4, 5, 4, 4, 6, 6, 5, 5, 4, 4, 4, 3, 5, 6, 5]; this.parentWish = [0, 0, 0, 1, 2, 1, 1, 1, 2, 2, 2, 1, 2, 1, 1, 1, 2, 2, 1, 1, 2, 1, 2, 2, 1, 0, 2]; this.launcherDemage = [0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]; this.onEvent = [3, 1, 2, 1, 3, 4, 1, 2, 1, 2, 1, 5, 3, 2, 1, 3, 2, 4, 2, 2, 3, 1, 4, 3, 2, 2]; this.onTime = [15, 25, 18, 15, 50, 55, 20, 15, 20, 10, 67, 46, 56, 13, 25, 15, 15, 50, 25, 33, 43, 40, 30, 20, 20, 10]; this.levelGoal = 718; this.levelExpertGoal = 840; this.levelBlinkingSpeed = 750; this.levelSpeed = 24; this.packingSpeed = 27; break; case 18: this.babyType = [5, 6, 4, 6, 4, 3, 5, 5, 6, 4, 5, 1, 5, 6, 5, 4, 6, 5, 3, 4, 6, 5, 6, 4, 6, 5, 2, 5]; this.parentWish = [1, 1, 2, 1, 1, 2, 0, 2, 2, 1, 2, 1, 1, 0, 0, 1, 1, 2, 2, 2, 1, 1, 2, 0, 2, 1, 2, 1]; this.launcherDemage = [0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]; this.onEvent = [4, 3, 2, 1, 1, 2, 2, 3, 4, 4, 3, 2, 2, 2, 1, 3, 3, 2, 4, 3, 2, 2, 3, 4, 1, 2, 1]; this.onTime = [35, 25, 18, 35, 20, 25, 20, 55, 50, 50, 67, 16, 16, 13, 55, 25, 45, 20, 15, 23, 23, 55, 13, 23, 13, 33, 13]; this.levelGoal = 736; this.levelExpertGoal = 858; this.levelBlinkingSpeed = 750; this.levelSpeed = 25; this.packingSpeed = 27; break; case 19: this.babyType = [6, 4, 6, 5, 3, 2, 5, 6, 1, 6, 4, 1, 5, 3, 5, 6, 4, 6, 3, 4, 4, 6, 6, 3, 5, 4, 6, 5, 2]; this.parentWish = [2, 0, 1, 0, 1, 1, 1, 2, 1, 2, 2, 2, 0, 0, 2, 1, 1, 1, 2, 1, 2, 1, 1, 1, 2, 1, 2, 0, 2]; this.launcherDemage = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]; this.onEvent = [3, 3, 4, 1, 2, 3, 1, 3, 4, 2, 2, 3, 1, 2, 4, 4, 3, 1, 4, 3, 4, 2, 3, 1, 3, 1, 2, 1]; this.onTime = [35, 25, 18, 35, 20, 25, 20, 55, 50, 50, 67, 16, 16, 13, 55, 25, 45, 20, 15, 23, 23, 55, 23, 13, 24, 12, 18, 11]; this.levelGoal = 764; this.levelExpertGoal = 886; this.levelBlinkingSpeed = 730; this.levelSpeed = 25; this.packingSpeed = 27; break; case 20: this.babyType = [2, 3, 6, 5, 1, 4, 6, 5, 1, 3, 4, 6, 5, 4, 2, 3, 1, 6, 5, 4, 3, 2, 1, 5, 5, 6, 4, 6, 5, 3]; this.parentWish = [1, 2, 0, 0, 1, 1, 2, 2, 1, 2, 1, 2, 2, 1, 1, 0, 1, 1, 2, 1, 2, 1, 1, 1, 2, 1, 0, 1, 2, 2]; this.launcherDemage = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]; this.onEvent = [1, 1, 5, 2, 2, 3, 1, 3, 4, 2, 2, 2, 4, 2, 2, 1, 3, 3, 4, 4, 2, 2, 3, 1, 5, 1, 2, 2, 1]; this.onTime = [11, 44, 50, 15, 15, 25, 20, 55, 50, 17, 17, 16, 46, 16, 15, 25, 25, 30, 35, 53, 63, 15, 23, 45, 55, 15, 25, 19, 10]; this.levelGoal = 802; this.levelExpertGoal = 920; this.levelBlinkingSpeed = 730; this.levelSpeed = 25; this.packingSpeed = 27; break; case 21: this.babyType = [2, 3, 6, 5, 1, 4, 6, 5, 1, 3, 4, 6, 5, 4, 2, 3, 1, 6, 5, 4, 3, 2, 1, 5, 5, 6, 6, 4, 3, 2, 4]; this.parentWish = [2, 1, 0, 0, 2, 2, 1, 1, 2, 1, 2, 1, 1, 2, 2, 0, 2, 2, 1, 2, 1, 2, 2, 2, 1, 2, 1, 2, 1, 0, 2]; this.launcherDemage = [0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0]; this.onEvent = [1, 2, 4, 2, 1, 3, 1, 4, 1, 4, 2, 3, 3, 2, 2, 3, 3, 4, 4, 1, 5, 1, 3, 1, 5, 1, 2, 3, 3, 2]; this.onTime = [11, 44, 50, 15, 15, 25, 20, 55, 50, 17, 17, 16, 46, 16, 15, 25, 25, 30, 35, 35, 43, 15, 23, 45, 55, 10, 15, 24, 24, 15]; this.levelGoal = 838; this.levelExpertGoal = 956; this.levelBlinkingSpeed = 720; this.levelSpeed = 26; this.packingSpeed = 27; break; case 22: this.babyType = [5, 6, 4, 6, 4, 3, 5, 5, 6, 4, 5, 3, 5, 6, 5, 4, 6, 5, 3, 4, 6, 5, 6, 4, 6, 6, 5, 5, 4, 5, 6, 5]; this.parentWish = [2, 2, 0, 2, 2, 1, 1, 1, 2, 1, 2, 1, 1, 2, 0, 2, 2, 1, 1, 1, 2, 2, 1, 2, 1, 2, 0, 0, 2, 1, 2, 2]; this.launcherDemage = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]; this.onEvent = [2, 3, 2, 1, 4, 2, 2, 3, 6, 1, 4, 2, 1, 2, 3, 2, 1, 5, 1, 4, 2, 2, 1, 5, 2, 3, 1, 4, 1, 2, 2]; this.onTime = [35, 25, 18, 35, 20, 25, 20, 55, 50, 50, 67, 16, 16, 13, 55, 25, 45, 20, 15, 23, 23, 55, 20, 20, 11, 25, 11, 16, 15, 25, 16]; this.levelGoal = 864; this.levelExpertGoal = 1014; this.levelBlinkingSpeed = 710; this.levelSpeed = 27; this.packingSpeed = 27; break; case 23: this.babyType = [5, 6, 4, 6, 4, 3, 5, 5, 6, 4, 5, 3, 5, 6, 5, 4, 6, 5, 3, 4, 6, 5, 6, 4, 6, 6, 5, 6, 4, 6, 4, 3, 5]; this.babyType = this.babyType; this.parentWish = [1, 1, 2, 1, 1, 2, 2, 1, 0, 2, 1, 2, 2, 1, 0, 1, 1, 2, 2, 2, 1, 1, 2, 1, 2, 1, 2, 2, 1, 2, 2, 1, 1]; this.launcherDemage = [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]; this.onEvent = [2, 2, 2, 3, 1, 1, 4, 4, 1, 3, 2, 2, 2, 1, 1, 5, 3, 2, 3, 3, 1, 4, 3, 1, 2, 2, 1, 4, 1, 3, 2, 1]; this.onTime = [35, 25, 18, 35, 20, 25, 20, 55, 50, 50, 67, 16, 16, 13, 55, 25, 45, 20, 15, 23, 23, 55, 30, 20, 20, 30, 11, 41, 11, 33, 22, 11]; this.levelGoal = 892; this.levelExpertGoal = 1048; this.levelBlinkingSpeed = 710; this.levelSpeed = 28; this.packingSpeed = 27; break; case 24: this.babyType = [5, 1, 6, 5, 4, 3, 6, 4, 5, 1, 6, 5, 4, 5, 4, 4, 6, 6, 5, 5, 4, 4, 5, 6, 3, 6, 4, 5, 3, 4, 6, 5, 6, 4]; this.parentWish = [0, 2, 0, 1, 2, 1, 1, 2, 2, 1, 0, 1, 1, 1, 2, 1, 2, 2, 2, 1, 2, 0, 0, 2, 1, 2, 1, 1, 0, 2, 2, 1, 2, 2]; this.launcherDemage = [0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]; this.onEvent = [3, 1, 3, 1, 2, 3, 3, 2, 3, 2, 1, 1, 1, 3, 1, 2, 2, 1, 5, 2, 3, 2, 3, 4, 3, 1, 4, 1, 3, 2, 2, 1, 3]; this.onTime = [15, 25, 18, 15, 50, 55, 20, 15, 20, 10, 67, 46, 56, 13, 25, 15, 15, 50, 25, 33, 43, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]; this.levelGoal = 920; this.levelExpertGoal = 1082; this.levelBlinkingSpeed = 700; this.levelSpeed = 28; this.packingSpeed = 27; break; case 25: this.babyType = [5, 1, 6, 5, 4, 3, 6, 4, 5, 1, 6, 5, 4, 5, 4, 4, 6, 6, 5, 5, 4, 4, 5, 6, 3, 6, 4, 5, 6, 6, 3, 3, 5, 6, 4, 6]; this.parentWish = [2, 1, 0, 2, 1, 2, 2, 1, 0, 1, 0, 2, 2, 1, 2, 1, 1, 1, 2, 0, 2, 1, 1, 2, 0, 2, 1, 1, 0, 0, 2, 1, 2, 2, 2, 1]; this.launcherDemage = [0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0]; this.onEvent = [1, 1, 5, 1, 2, 3, 1, 2, 4, 4, 1, 1, 5, 4, 2, 3, 2, 2, 5, 1, 1, 1, 1, 4, 2, 4, 1, 4, 1, 2, 1, 4, 3, 2, 1]; this.onTime = [15, 25, 28, 15, 50, 55, 20, 15, 20, 10, 67, 46, 56, 13, 25, 15, 15, 50, 25, 33, 43, 20, 20, 20, 20, 20, 20, 25, 25, 25, 15, 29, 21, 16, 13]; this.levelGoal = 980; this.levelExpertGoal = 1150; this.levelBlinkingSpeed = 690; this.levelSpeed = 29; this.packingSpeed = 27; } }; ASSetPropFlags(config.LevelConfig.prototype, null, 1); } #endinitclip } movieClip 9325 __Packages.mcs.Helper { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.Helper) { var v1 = function (tupe_, delivery_, linkID, x, y, depth) { super(linkID, x, y); this.tupe = tupe_; this.depth = depth; this.delivery = delivery_; }; mcs.Helper = v1; mcs.Helper extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.Helper implements _global.utils.IClipEvents; v2.attachWindBlower = function () { this.clip = this.delivery.holder.attachMovie(this.linkID, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); this.addEvents(); }; v2.removeWindBlower = function () {}; v2.addEvents = function () { this.clip.holder = this; this.clip.onRollOver = function () { this.gotoAndStop(2); this.holder.delivery.target.mousePointer.clip.gotoAndStop('finger'); }; this.clip.onRollOut = function () { this.gotoAndStop(1); this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.onPress = function () { this.holder.delivery.target.sndCtrl.stopSound(this.holder.delivery.target.soundsId.mouseclick_snd); this.holder.delivery.target.sndCtrl.playSound(this.holder.delivery.target.soundsId.mouseclick_snd); }; this.clip.onReleaseOutside = function () { this.gotoAndStop(1); this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.onRelease = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); if (this.holder.delivery.CurentPopUp.chekPrestObject(this.holder) == false) { return undefined; } this.gotoAndStop(1); if (this.holder.delivery.storkReadiForWork.Houses.length < 1) { if (this.holder.tupe == 'rainHelper') { if (this.holder.delivery.level.game.helpTipsDelivery[14].clip) { this.holder.delivery.level.game.helpTipsDelivery[14].hidePopUp(); if (this.holder.delivery.storkReadiForWork.Sacks.length == 0) { this.holder.delivery.level.game.helpTipsDelivery[15].showPopUp(); this.holder.delivery.level.game.helpTipsDelivery[15].PriorityObject = [this.holder.delivery.singelBoySacks, this.holder.delivery.singelGirlSacks, this.holder.delivery.twinBoySacks, this.holder.delivery.twinGirlSacks, this.holder.delivery.tripletBoySacks, this.holder.delivery.tripletGirlSacks, this.holder.delivery.quadrupletBoySacks, this.holder.delivery.quadrupletGirlSacks]; } else { this.holder.delivery.level.game.helpTipsDelivery[15].shown = true; } } } if (this.holder.tupe == 'snowHelper') { if (this.holder.delivery.level.game.helpTipsDelivery[20].clip) { this.holder.delivery.level.game.helpTipsDelivery[20].hidePopUp(); if (this.holder.delivery.storkReadiForWork.Sacks.length == 0) { this.holder.delivery.level.game.helpTipsDelivery[21].showPopUp(); this.holder.delivery.level.game.helpTipsDelivery[21].PriorityObject = [this.holder.delivery.singelBoySacks, this.holder.delivery.singelGirlSacks, this.holder.delivery.twinBoySacks, this.holder.delivery.twinGirlSacks, this.holder.delivery.tripletBoySacks, this.holder.delivery.tripletGirlSacks, this.holder.delivery.quadrupletBoySacks, this.holder.delivery.quadrupletGirlSacks]; } else { this.holder.delivery.level.game.helpTipsDelivery[21].shown = true; } } } if (this.holder.tupe == 'lightningHelper') { if (this.holder.delivery.level.game.helpTipsDelivery[17].clip) { this.holder.delivery.level.game.helpTipsDelivery[17].hidePopUp(); if (this.holder.delivery.storkReadiForWork.Sacks.length == 0) { this.holder.delivery.level.game.helpTipsDelivery[18].showPopUp(); this.holder.delivery.level.game.helpTipsDelivery[18].PriorityObject = [this.holder.delivery.singelBoySacks, this.holder.delivery.singelGirlSacks, this.holder.delivery.twinBoySacks, this.holder.delivery.twinGirlSacks, this.holder.delivery.tripletBoySacks, this.holder.delivery.tripletGirlSacks, this.holder.delivery.quadrupletBoySacks, this.holder.delivery.quadrupletGirlSacks]; } else { this.holder.delivery.level.game.helpTipsDelivery[18].shown = true; } } } if (this.holder.tupe == 'snowHelper') { this.holder.delivery.storkReadiForWork.clip.salce.attachMovie('shalce', 'shalce', 1, {'_x': 0, '_y': 0}); this.holder.delivery.storkReadiForWork.clip.kapa3.attachMovie('smal_shalce', 'smal_shalce', 3); this.holder.delivery.storkReadiForWork.clip.kapa2.smal_rainhelper.removeMovieClip(); this.holder.delivery.storkReadiForWork.clip.kapa.smal_lightninghelp.removeMovieClip(); this.holder.delivery.storkReadiForWork.clip.cador.Chadorce.removeMovieClip(); this.holder.delivery.storkReadiForWork.clip.gromobran.gromobrancence.removeMovieClip(); } else { if (this.holder.tupe == 'rainHelper') { this.holder.delivery.storkReadiForWork.clip.cador.attachMovie('Chadorce', 'Chadorce', 1, {'_x': 0, '_y': 0}); this.holder.delivery.storkReadiForWork.clip.kapa2.attachMovie('smal_rainhelper', 'smal_rainhelper', 2); this.holder.delivery.storkReadiForWork.clip.kapa3.smal_shalce.removeMovieClip(); this.holder.delivery.storkReadiForWork.clip.kapa.smal_lightninghelp.removeMovieClip(); this.holder.delivery.storkReadiForWork.clip.gromobran.gromobrancence.removeMovieClip(); this.holder.delivery.storkReadiForWork.clip.salce.shalce.removeMovieClip(); } else { if (this.holder.tupe == 'lightningHelper') { this.holder.delivery.storkReadiForWork.clip.gromobran.attachMovie('gromobrancence', 'gromobrancence', 1, {'_x': 0, '_y': 0}); this.holder.delivery.storkReadiForWork.clip.kapa.attachMovie('smal_lightninghelp', 'smal_lightninghelp', 1); this.holder.delivery.storkReadiForWork.clip.cador.Chadorce.removeMovieClip(); this.holder.delivery.storkReadiForWork.clip.kapa3.smal_rainhelper.removeMovieClip(); this.holder.delivery.storkReadiForWork.clip.kapa2.smal_lightninghelp.removeMovieClip(); this.holder.delivery.storkReadiForWork.clip.salce.shalce.removeMovieClip(); } } } this.holder.delivery.storkReadiForWork.snowHelper = false; this.holder.delivery.storkReadiForWork.lightningHelper = false; this.holder.delivery.storkReadiForWork.rainHelper = false; this.holder.delivery.storkReadiForWork[this.holder.tupe] = true; } this.holder.attachWindBlower(); }; }; ASSetPropFlags(mcs.Helper.prototype, null, 1); } #endinitclip } movieClip 9326 __Packages.mcs.DeliverySack { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.DeliverySack) { var v1 = function (delivery_, linkID, x, y, depth, gender_, numOfBabies_, tupe_) { super(linkID, x, y); this.linkID = linkID; this.depth = depth; this.delivery = delivery_; this.sackType = 0; this.selected = false; this.gender = gender_; this.numOfBabies = numOfBabies_; this.tupe = tupe_; this.addPoints = numOfBabies_ * 10; }; mcs.DeliverySack = v1; mcs.DeliverySack extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.DeliverySack implements _global.utils.IClipEvents; v2.attachSack = function () { var v6 = this.delivery.storkReadiForWork.maxBabyCare - this.delivery.storkReadiForWork.BabyCareInMoment; this.delivery.storkReadiForWork.clip.gotoAndStop('finger' + v6); var v3 = 1; var v2 = 1; while (v2 < 5) { if (this.delivery.storkReadiForWork.SacksPlace[v2] == false) { v3 = v2; this.delivery.storkReadiForWork.SacksPlace[v2] = true; break; } ++v2; } var v4 = 'vrekja' + v3.toString(); var v5 = 'cvor' + v3.toString(); if (this.gender == 2 && (v3 == 1 || v3 == 3)) { this.clip2 = this.delivery.storkReadiForWork.clip[v5].attachMovie('cvorplavanormal', 'cvorplavanormal', 1); this.clip = this.delivery.storkReadiForWork.clip[v4].attachMovie('plavanormal', 'plavanormal', 1); } else { if (this.gender == 2 && (v3 == 2 || v3 == 4)) { this.clip2 = this.delivery.storkReadiForWork.clip[v5].attachMovie('cvorplavaflip', 'cvorplavaflip', 1); this.clip = this.delivery.storkReadiForWork.clip[v4].attachMovie('plavaflip', 'plavaflip', 1); } else { if (this.gender == 1 && (v3 == 1 || v3 == 3)) { this.clip2 = this.delivery.storkReadiForWork.clip[v5].attachMovie('cvorrozevanormal', 'cvorrozevanormal', 1); this.clip = this.delivery.storkReadiForWork.clip[v4].attachMovie('rozevanormal', 'rozevanormal', 1); } else { if (this.gender == 1 && (v3 == 2 || v3 == 4)) { this.clip2 = this.delivery.storkReadiForWork.clip[v5].attachMovie('cvorrozevaflip', 'cvorrozevaflip', 1); this.clip = this.delivery.storkReadiForWork.clip[v4].attachMovie('rozevaflip', 'rozevaflip', 1); } } } } this.clip.gotoAndStop(this.numOfBabies); this.clip.num = v3; this.addEvents(); }; v2.removeSack = function () { var v2 = this.delivery.storkReadiForWork.maxBabyCare - this.delivery.storkReadiForWork.BabyCareInMoment; this.delivery.storkReadiForWork.clip.gotoAndStop('finger' + v2); this.delivery.storkReadiForWork.SacksPlace[this.clip.num] = false; this.clip.removeMovieClip(); this.clip2.removeMovieClip(); }; v2.removeSack1 = function () { if (this.delivery.CurentPopUp.chekPrestObject(this) == false) { return undefined; } this.delivery.level.game.sndCtrl.stopSound(this.delivery.level.game.soundsId.mouseclick_snd); this.delivery.level.game.sndCtrl.playSound(this.delivery.level.game.soundsId.mouseclick_snd); switch (this.tupe) { case 1: ++this.delivery.level.singelBoySacks; this.delivery.singelBoySacks.num.text = this.delivery.level.singelBoySacks; this.delivery.singelBoySacks._visible = true; break; case 2: this.delivery.level.game.helpTipsDelivery[10].hidePopUp(); this.delivery.level.game.helpTipsDelivery[2].showPopUp(); this.delivery.level.game.helpTipsDelivery[2].PriorityObject = [this.delivery.singelBoySacks]; ++this.delivery.level.singelGirlSacks; this.delivery.singelGirlSacks.num.text = this.delivery.level.singelGirlSacks; this.delivery.singelGirlSacks._visible = true; break; case 3: ++this.delivery.level.twinBoySacks; this.delivery.storkReadiForWork.MultyIndex /= 2; this.delivery.twinBoySacks.num.text = this.delivery.level.twinBoySacks; this.delivery.twinBoySacks._visible = true; break; case 4: ++this.delivery.level.twinGirlSacks; this.delivery.storkReadiForWork.MultyIndex /= 2; this.delivery.twinGirlSacks.num.text = this.delivery.level.twinGirlSacks; this.delivery.twinGirlSacks._visible = true; break; case 5: ++this.delivery.level.tripletBoySacks; this.delivery.storkReadiForWork.MultyIndex /= 3; this.delivery.tripletBoySacks.num.text = this.delivery.level.tripletBoySacks; this.delivery.tripletBoySacks._visible = true; break; case 6: ++this.delivery.level.tripletGirlSacks; this.delivery.storkReadiForWork.MultyIndex /= 3; this.delivery.tripletGirlSacks.num.text = this.delivery.level.tripletGirlSacks; this.delivery.tripletGirlSacks._visible = true; break; case 7: ++this.delivery.level.quadrupletBoySacks; this.delivery.storkReadiForWork.MultyIndex /= 4; this.delivery.quadrupletBoySacks.num.text = this.delivery.level.quadrupletBoySacks; this.delivery.quadrupletBoySacks._visible = true; break; case 8: ++this.delivery.level.quadrupletGirlSacks; this.delivery.storkReadiForWork.MultyIndex /= 4; this.delivery.quadrupletGirlSacks.num.text = this.delivery.level.quadrupletGirlSacks; this.delivery.quadrupletGirlSacks._visible = true; } var v2 = 0; while (v2 < this.delivery.houseSimbols.length) { if (this.delivery.houseSimbols[v2] == this.simbolZvezda) { trace('brisham zvezda'); this.simbolZvezda.removeMovieClip(); this.simbolZvezda = undefined; this.delivery.houseSimbols.splice(v2, 1); } ++v2; } v2 = 0; while (v2 < this.delivery.houseSimbols.length) { this.delivery.houseSimbols[v2].numHouse.text = v2 + 1; ++v2; } this.delivery.storkReadiForWork.backSack(this); this.removeSack(); }; v2.addEvents = function () { this.clip.holder = this; this.clip.onPress = function () { if (this.holder.delivery.CurentPopUp.chekPrestObject(this.holder) == false) { return undefined; } this.holder.delivery.level.game.sndCtrl.stopSound(this.holder.delivery.level.game.soundsId.mouseclick_snd); this.holder.delivery.level.game.sndCtrl.playSound(this.holder.delivery.level.game.soundsId.mouseclick_snd); switch (this.holder.tupe) { case 1: ++this.holder.delivery.level.singelBoySacks; this.holder.delivery.singelBoySacks.num.text = this.holder.delivery.level.singelBoySacks; this.holder.delivery.singelBoySacks._visible = true; break; case 2: this.holder.delivery.level.game.helpTipsDelivery[10].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[2].showPopUp(); this.holder.delivery.level.game.helpTipsDelivery[2].PriorityObject = [this.holder.delivery.singelBoySacks]; ++this.holder.delivery.level.singelGirlSacks; this.holder.delivery.singelGirlSacks.num.text = this.holder.delivery.level.singelGirlSacks; this.holder.delivery.singelGirlSacks._visible = true; break; case 3: ++this.holder.delivery.level.twinBoySacks; this.holder.delivery.storkReadiForWork.MultyIndex /= 2; this.holder.delivery.twinBoySacks.num.text = this.holder.delivery.level.twinBoySacks; this.holder.delivery.twinBoySacks._visible = true; break; case 4: ++this.holder.delivery.level.twinGirlSacks; this.holder.delivery.storkReadiForWork.MultyIndex /= 2; this.holder.delivery.twinGirlSacks.num.text = this.holder.delivery.level.twinGirlSacks; this.holder.delivery.twinGirlSacks._visible = true; break; case 5: ++this.holder.delivery.level.tripletBoySacks; this.holder.delivery.storkReadiForWork.MultyIndex /= 3; this.holder.delivery.tripletBoySacks.num.text = this.holder.delivery.level.tripletBoySacks; this.holder.delivery.tripletBoySacks._visible = true; break; case 6: ++this.holder.delivery.level.tripletGirlSacks; this.holder.delivery.storkReadiForWork.MultyIndex /= 3; this.holder.delivery.tripletGirlSacks.num.text = this.holder.delivery.level.tripletGirlSacks; this.holder.delivery.tripletGirlSacks._visible = true; break; case 7: ++this.holder.delivery.level.quadrupletBoySacks; this.holder.delivery.storkReadiForWork.MultyIndex /= 4; this.holder.delivery.quadrupletBoySacks.num.text = this.holder.delivery.level.quadrupletBoySacks; this.holder.delivery.quadrupletBoySacks._visible = true; break; case 8: ++this.holder.delivery.level.quadrupletGirlSacks; this.holder.delivery.storkReadiForWork.MultyIndex /= 4; this.holder.delivery.quadrupletGirlSacks.num.text = this.holder.delivery.level.quadrupletGirlSacks; this.holder.delivery.quadrupletGirlSacks._visible = true; } this.holder.delivery.storkReadiForWork.setStar(); this.holder.delivery.storkReadiForWork.backSack(this.holder); this.holder.removeSack(); }; this.clip.onRollOver = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('finger'); }; this.clip.onRollOut = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.onReleaseOutside = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; }; ASSetPropFlags(mcs.DeliverySack.prototype, null, 1); } #endinitclip } movieClip 9327 __Packages.utils.ScoreMessage { #initclip if (!_global.utils) { _global.utils = new Object(); } if (!_global.utils.ScoreMessage) { var v1 = function () {}; utils.ScoreMessage = v1; var v2 = v1.prototype; v2.getPointsLoseMessage = function (where, depth, points, textIDs) { var v6 = new Array(); var v7 = new Array(); if (points != undefined) { var v4 = 0; while (v4 < points.length) { v6.push(points.charAt(v4)); ++v4; } } v4 = 0; while (v4 < textIDs.length) { if (textIDs[v4] != undefined) { v7.push(this.negativeMessages[textIDs[v4]]); } ++v4; } if (where == undefined) { where = _root; } if (isNaN(depth)) { depth = where.getNextHighestDepth(); } var v11 = where.createEmptyMovieClip('holder_mc', depth); var v10 = v11.createEmptyMovieClip('points_mc', v11.getNextHighestDepth()); var v12 = 0; if (points.length > 0) { v6.unshift('-'); } v4 = 0; while (v4 < v6.length) { var v9 = flash.display.BitmapData.loadBitmap(v6[0] + v6[v4]); var v5 = v10.createEmptyMovieClip('digit' + v4, v10.getNextHighestDepth()); v5.attachBitmap(v9, 0); v5._x = v12; v12 += v5._width - 9; ++v4; } v10._x = -v10._width / 2; var v13 = v10._height - 10; v4 = 0; while (v4 < v7.length) { v9 = flash.display.BitmapData.loadBitmap(v7[v4]); var v3 = v11.createEmptyMovieClip('txt' + v4, v11.getNextHighestDepth()); v3.attachBitmap(v9, 0); v3._x = -v3._width / 2; v3._y = v13; v13 += v3._height - 10; ++v4; } return v11; }; v2.getPointsWonMessage = function (where, depth, points, bonuses) { var v12 = new Array(); var v4 = new Array(); if (points != undefined) { var v3 = 0; while (v3 < points.pnts.length) { v12.push(points.pnts.charAt(v3)); ++v3; } } v3 = 0; while (v3 < bonuses.length) { if (bonuses != undefined) { v4.push({'type': bonuses[v3].type, 'txt': this.positiveMessages[bonuses[v3].type], 'points': bonuses[v3].points}); } ++v3; } if (where == undefined) { where = _root; } if (isNaN(depth)) { depth = where.getNextHighestDepth(); } var v16 = where.createEmptyMovieClip('holder_mc', depth); if (points.pnts.length > 0) { var v15 = v16.createEmptyMovieClip('points_mc', v16.getNextHighestDepth()); var v9 = 0; if (points.pnts.length > 0) { v12.unshift('+'); } v3 = 0; while (v3 < v12.length) { var v14 = flash.display.BitmapData.loadBitmap(v12[0] + v12[v3]); var v21 = v15.createEmptyMovieClip('digit' + v3, v15.getNextHighestDepth()); v21.attachBitmap(v14, 0); v21._x = v9; v9 += v21._width - 9; ++v3; } v15._x = -v15._width / 2; if (points.mplr) { v14 = flash.display.BitmapData.loadBitmap('+X'); v21 = v15.createEmptyMovieClip('digitx', v15.getNextHighestDepth()); v21.attachBitmap(v14, 0); v21._x = v9 + 9; v14 = flash.display.BitmapData.loadBitmap('+' + points.mplr); v21 = v15.createEmptyMovieClip('digitx2', v15.getNextHighestDepth()); v21.attachBitmap(v14, 0); v21._x = v9 + v21._width; } } var v18 = 0; if (points.pnts.length > 0) { v18 = v15._height - 10; } v3 = 0; while (v3 < v4.length) { v14 = flash.display.BitmapData.loadBitmap(v4[v3].txt); var v6 = v16.createEmptyMovieClip('messages' + v3, v16.getNextHighestDepth()); if (v4[v3].type == 1 || v4[v3].type == 6) { v4[v3].points = 'X' + v4[v3].points; } var v13 = v6.createEmptyMovieClip('combo_mc', v6.getNextHighestDepth()); v13.attachBitmap(v14, 0); if (v4[v3].type != 0) { var v8 = v6.createEmptyMovieClip('bonusDigits_mc', v6.getNextHighestDepth()); v8._x = v13._width; v9 = 0; var v5 = 0; while (v5 < v4[v3].points.length) { var v10 = flash.display.BitmapData.loadBitmap('+' + v4[v3].points.charAt(v5)); var v7 = v8.createEmptyMovieClip('comboDigit' + v5, v8.getNextHighestDepth()); v7.attachBitmap(v10, 0); v7._x = v9; v9 += v7._width - 9; ++v5; } } v6.attachBitmap(v14, 0); v6._x = -v6._width / 2; v6._y = v18; v18 += v6._height - 10; ++v3; } return v16; }; v2.positiveMessages = ['ATTACKAVOIDED', 'COMBOBONUS', 'PERFECTIONBONUS', 'RANKBONUS', 'SPEEDBONUS', 'WEATHERBONUS', 'LAUNCHBONUS', 'STRENGTHBONUS']; v2.negativeMessages = ['DELIVERYCANCELLED', 'HURRYUP', 'I’MHIT', 'WEATHERSETBACK', 'PLATFORM-OCCUPIED', 'SACKS-RETURNED', 'WRONG-GENDER', 'NO-POINTS', 'LAST-ORDER', 'ImHit', 'ImTired']; ASSetPropFlags(utils.ScoreMessage.prototype, null, 1); } #endinitclip } movieClip 9328 __Packages.ctrl.DepthController { #initclip if (!_global.ctrl) { _global.ctrl = new Object(); } if (!_global.ctrl.DepthController) { var v1 = function (game_) { this.game = game_; this.Background = 0; this.streets = 5000; this.House = 1250; this.snowHelper = 181008; this.DeliverySack = this.streets + 80; this.tracka = 13300; this.Bath = 11040; this.BathBack = 11030; this.Bed = 11100; this.BedFront = 11110; this.slotMashine = 14500; this.teleporte_box = 14300; this.sackSpot = 10050; this.Launcher_box = 150; this.Launcher_back = 93; this.Launcher_tube = 100; this.Launcher_counter = 200; this.Arrow = 300; this.Activation_btn = 350; this.Postolje_za_sliders = 245; this.Slycer_blue = 250; this.Slycer_red = 260; this.Slyder_front1 = 270; this.Slyder_front2 = 280; this.red_stork = 500; this.toy_box = 16000; this.towel = 17200; this.trashcan = 16500; this.points_txt = 18000; this.pointss = 18100; this.twinsTxt = 18200; this.twins_bar = 18300; this.twinsIndicator = 18350; this.twins = 18400; this.stork = 91000; this.cleaning_stork = 77877; this.toy1 = 16060; this.toy2 = 16030; this.slotmachine_back = 13000; this.Slotswitch = 14700; this.Blue_pink_indicator = 14600; this.wishScreen = 14498; this.productionline = 13250; this.trkalca = 13330; this.Telep_Tube = 10100; this.TeleporterBack = 11250; this.slot1 = 13400; this.slot2 = 13450; this.slot3 = 13500; this.slot4 = 13550; this.slot5 = 13600; this.slot6 = 13650; this.slot7 = 13700; this.slot8 = 13750; this.slot9 = 13800; this.foodmaker = 17001; this.escSwitch = 17100; this.oblak = 80308; this.gun = this.House + 3; this.ball = this.stork + 50; this.target = this.stork + 60; this.mapDots = 10; this.simbol_house = 10; this.packingStork = 10150; this.Horn = 10149; this.tempFlyingStork = this.House + 80; this.FlyingStork = this.House + 80; this.pointsDepth = this.House + 13560; }; ctrl.DepthController = v1; var v2 = v1.prototype; v2.getDepth = function (name_) { switch (name_) { return this.depth_; case 'fBackground': this.depth_ = this.Background; this.Background; trace('depth_ ' + this.depth_); return this.depth_; case 'lenta': this.depth_ = this.tracka; this.tracka; return this.depth_; case 'bathFront': this.depth_ = this.Bath; this.Bath += 20; return this.depth_; case 'bathBack': this.depth_ = this.BathBack; this.BathBack += 20; return this.depth_; case 'bed': this.depth_ = this.Bed; this.Bed += 20; return this.depth_; case 'bedFront': this.depth_ = this.BedFront; this.BedFront += 20; return this.depth_; case 'slotMashine': this.depth_ = this.slotMashine; this.slotMashine; return this.depth_; case 'teleporte_box': this.depth_ = this.teleporte_box; this.teleporte_box; return this.depth_; case 'sackSpot': this.depth_ = this.sackSpot; this.sackSpot; return this.depth_; case 'Launcher_box': this.depth_ = this.Launcher_box; this.Launcher_box; return this.depth_; case 'red_stork': this.depth_ = this.red_stork; this.red_stork; return this.depth_; case 'toy_box': this.depth_ = this.toy_box; this.toy_box; return this.depth_; case 'towel': this.depth_ = this.towel; this.towel; return this.depth_; case 'trashcan': this.depth_ = this.trashcan; this.trashcan; return this.depth_; case 'points_txt': this.depth_ = this.points_txt; this.points_txt; return this.depth_; case 'pointss': this.depth_ = this.pointss; this.pointss; return this.depth_; case 'twinsTxt': this.depth_ = this.twinsTxt; this.twinsTxt; return this.depth_; case 'twins_bar': this.depth_ = this.twins_bar; this.twins_bar; return this.depth_; case 'twinsIndicator': this.depth_ = this.twinsIndicator; this.twinsIndicator; return this.depth_; case 'twins': this.depth_ = this.twins; this.twins; return this.depth_; case 'stork': this.depth_ = this.stork; this.stork; return this.depth_; case 'cleaning_stork': this.depth_ = this.cleaning_stork; this.cleaning_stork; return this.depth_; case 'toy1': this.depth_ = this.toy1; this.toy1; return this.depth_; case 'toy2': this.depth_ = this.toy2; this.toy2; return this.depth_; case 'slotmachine_back': this.depth_ = this.slotmachine_back; this.slotmachine_back; return this.depth_; case 'Slotswitch': this.depth_ = this.Slotswitch; this.Slotswitch; return this.depth_; case 'Blue_pink_indicator': this.depth_ = this.Blue_pink_indicator; this.Blue_pink_indicator; return this.depth_; case 'wishScreen': this.depth_ = this.wishScreen; this.wishScreen; return this.depth_; case 'productionline': this.depth_ = this.productionline; this.productionline; return this.depth_; case 'trkalca': this.depth_ = this.trkalca; ++this.trkalca; return this.depth_; case 'Telep_Tube': this.depth_ = this.Telep_Tube; this.Telep_Tube; return this.depth_; case 'Launcher_counter': this.depth_ = this.Launcher_counter; this.Launcher_counter; return this.depth_; case 'launcher_back': this.depth_ = this.Launcher_back; this.Launcher_back; return this.depth_; case 'Arrow': this.depth_ = this.Arrow; this.Arrow; return this.depth_; case 'Launcher_tube': this.depth_ = this.Launcher_tube; this.Launcher_tube; return this.depth_; case 'Activation_btn': this.depth_ = this.Activation_btn; this.Activation_btn; return this.depth_; case 'Slycer_blue': this.depth_ = this.Slycer_blue; this.Slycer_blue; return this.depth_; case 'Slycer_red': this.depth_ = this.Slycer_red; this.Slycer_red; return this.depth_; case 'Slyder_front1': this.depth_ = this.Slyder_front1; this.Slyder_front1; return this.depth_; case 'Slyder_front2': this.depth_ = this.Slyder_front2; this.Slyder_front2; return this.depth_; case 'slot1': this.depth_ = this.slot1; this.slot1; return this.depth_; case 'slot2': this.depth_ = this.slot2; this.slot2; return this.depth_; case 'slot3': this.depth_ = this.slot3; this.slot3; return this.depth_; case 'slot4': this.depth_ = this.slot4; this.slot4; return this.depth_; case 'slot5': this.depth_ = this.slot5; this.slot5; return this.depth_; case 'slot6': this.depth_ = this.slot6; this.slot6; return this.depth_; case 'slot7': this.depth_ = this.slot7; this.slot7; return this.depth_; case 'slot8': this.depth_ = this.slot8; this.slot8; return this.depth_; case 'slot9': this.depth_ = this.slot9; this.slot9; return this.depth_; case 'foodmaker': this.depth_ = this.foodmaker; this.foodmaker; return this.depth_; case 'escSwitch': this.depth_ = this.escSwitch; this.escSwitch; return this.depth_; case 'TeleporterBack': this.depth_ = this.TeleporterBack; this.TeleporterBack; return this.depth_; case 'streets': this.depth_ = this.streets; this.streets; return this.depth_; case 'DeliverySack': this.depth_ = this.DeliverySack; this.DeliverySack; return this.depth_; case 'House': this.depth_ = this.House; this.House -= 2; this.House; return this.depth_; case 'oblak': this.depth_ = this.oblak; this.oblak += 1; return this.depth_; case 'target': this.depth_ = this.target; return this.depth_; case 'gun': this.depth_ = this.gun; ++this.gun; return this.depth_; case 'snowHelper': this.depth_ = this.snowHelper; ++this.snowHelper; return this.depth_; case 'winBlower': this.depth_ = this.winBlower; ++this.winBlower; return this.depth_; case 'mapDots': this.depth_ = this.mapDots; ++this.mapDots; return this.depth_; case 'simbol_house': this.depth_ = this.simbol_house; ++this.simbol_house; return this.depth_; case 'packingStork': this.depth_ = this.packingStork; return this.depth_; case 'horn': this.depth_ = this.Horn; return this.depth_; case 'FlyingStork': this.depth_ = this.FlyingStork; ++this.FlyingStork; if (this.FlyingStork > this.tempFlyingStork + 19) { this.FlyingStork = this.tempFlyingStork; trace('!!!! PREGOLEMA DLABOCINA NA FLYING STRK'); } return this.depth_; case 'ball': this.depth_ = this.ball; ++this.ball; return this.depth_; case 'postolje_za_sliders': this.depth_ = this.Postolje_za_sliders; this.Postolje_za_sliders; return this.depth_; case 'pointsDepth': this.depth_ = this.pointsDepth; ++this.pointsDepth; return this.depth_; } return this.depth_; }; ASSetPropFlags(ctrl.DepthController.prototype, null, 1); } #endinitclip } movieClip 9329 __Packages.scr.GoalScreen { #initclip if (!_global.scr) { _global.scr = new Object(); } if (!_global.scr.GoalScreen) { var v1 = function (_game) { super(); this.game = _game; this.depth = 1; this.init(); }; scr.GoalScreen = v1; scr.GoalScreen extends utils.MovieClipProperties; var v2 = v1.prototype; _global.scr.GoalScreen implements _global.utils.IClipEvents; v2.init = function () { this.f = new scr.FadeIn(); this.r = new scr.FadeOut(); this.hasAttachTransition = false; this.hasRemoveTransition = false; this.addAttachTransition(this.f); this.addRemoveTransition(this.r); this.attach(); }; v2.attachClip = function () { this.clip = this.game.attachMovie('GoalScreen', 'GoalScreen', 1, {'_x': 400, '_y': 300}); this.target = MovieClip(this.game); this.continueBtn = this.clip.continueBtn; this.addEvents(); }; v2.removeGoalScreen = function () { trace('this.hasRemoveTransition ' + this.hasRemoveTransition); if (this.hasRemoveTransition) { this.rTransition.startTransition(); } else { this.remove(); } }; v2.addEvents = function () { this.continueBtn.continueBtn.holder = this; this.continueBtn.continueBtn.onPress = function () { this.holder.game.sndCtrl.stopSound(this.holder.game.soundsId.mouseclick_snd); this.holder.game.sndCtrl.playSound(this.holder.game.soundsId.mouseclick_snd); this._parent.ss.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); this.holder.removeGoalScreen(); }; this.continueBtn.continueBtn.onRollOver = function () { this._parent.ss.gotoAndStop(2); this.holder.game.mousePointer.clip.gotoAndStop('finger'); }; this.continueBtn.continueBtn.onRollOut = function () { this._parent.ss.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; this.continueBtn.continueBtn.onReleaseOutside = function () { this._parent.ss.gotoAndStop(1); this.holder.game.mousePointer.clip.gotoAndStop('normal'); }; }; v2.addAttachTransition = function (t) { this.aTransition = t; this.aTransition.addTransitionObject(this); this.aTransition.addEventListener('onAttach', this); this.hasAttachTransition = true; }; v2.addRemoveTransition = function (t) { this.rTransition = t; this.rTransition.addTransitionObject(this); this.rTransition.addEventListener('onRemove', this); this.hasRemoveTransition = true; }; v2.removeAttachTransition = function (t) { this.aTransition.removeEventListener('onAttach', this); this.hasAttachTransition = false; this.aTransition = undefined; }; v2.removeRemoveTransition = function (t) { this.rTransition.removeEventListener('onRemove', this); this.hasRemoveTransition = false; this.rTransition = undefined; }; v2.attach = function () { this.attachClip(); trace('this.hasAttachTransition ' + this.hasAttachTransition); if (this.hasAttachTransition) { this.aTransition.startTransition(); } }; v2.remove = function () { this.clip.removeMovieClip(); this.game.playMusicFlag = false; this.game.newGame(); this.game.playMusicFlag = true; }; v2.onAttach = function () {}; v2.onRemove = function () { this.remove(); }; ASSetPropFlags(scr.GoalScreen.prototype, null, 1); } #endinitclip } movieClip 9330 __Packages.mcs.DeliveryStork { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.DeliveryStork) { var v1 = function (delivery_, linkID, x, y, depth, upgrade, speed, power) { super(linkID, x, y); this.alfaPArametar = false; this.MultyIndex = 1; this.depth = depth; this.delivery = delivery_; this.carring = 0; this.StartX = 368.1; this.StartY = 386.7; this.PitStop = getTimer(); this.hasSack = false; this.pressed = false; this.sleep = false; this.right = false; this.left = false; this.fleg = false; this.GoHomeFlag = false; this.atachStorkFlag = false; this.Sacks = []; this.Houses = []; this.tempFalgForBagStork = false; this.houseSimbols = []; this.weakingUp = false; this.BabyCareInMoment = 0; this.upgrade = upgrade; this.speed = speed; this.power = power; this.FlySide = 'down'; this.Stars = []; this.TiredTime = 0; this.snowHelper = false; this.lightningHelper = false; this.rainHelper = false; this.ContaEfekt = undefined; this.HitTheWeather = 0; this.HouseLength = this.delivery.levelAssets.Houses.length; this.StrkHitbyLightning = undefined; this.sounds = [['storkgo_snd', 100, false], ['storkarrive_snd', 100, false], ['storkdive_snd', 100, false], ['storkwingflap_snd', 100, false], ['storkisfrozen_snd', 100, false], ['storkiswet_snd', 100, false], ['storkiselectroduced_snd', 100, false], ['disenje_snd', 20, false], ['storkgetsfrozen_snd', 100, false], ['storkgetswet_snd', 100, false], ['storkgetselectroduced_snd', 100, false], ['srce_snd', 100, false], ['YesSir_snd', 100, false], ['Iamfull_snd', 100, false], ['givememore_snd', 100, false]]; this.soundsId = new Array(); this.attachSounds(); this.init(); }; mcs.DeliveryStork = v1; mcs.DeliveryStork extends utils.MovieClipProperties; var v2 = v1.prototype; _global.mcs.DeliveryStork implements _global.utils.IClipEvents; v2.attachSounds = function () { var v2 = 0; while (v2 < this.sounds.length) { var v3 = this.delivery.soundClip.createEmptyMovieClip(utils.StringUtils.getUniqueName(), this.delivery.soundClip.getNextHighestDepth()); var v4 = new utils.SoundImpl(v3); v4.attachSoundImpl(this.sounds[v2][0], this.sounds[v2][1], this.sounds[v2][2]); this.soundsId[this.sounds[v2][0]] = this.delivery.sndCtrl.addSound(this.sounds[v2][0], v3, this.sounds[v2][1], this.sounds[v2][2]); if (this.sounds[v2][2]) { this.delivery.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.delivery.sndCtrl.getMusicVolume()); } else { this.delivery.sndCtrl.setSoundVolume(this.soundsId[this.sounds[v2][0]], this.delivery.sndCtrl.getSoundFXVolume()); } ++v2; } }; v2.init = function () { this.prepareForWork = false; this.Houses = []; this.Sacks = []; this.Stars = []; this.houseSimbols = []; this.BabyCareInMoment = 0; this.weakingUp = false; this.FlySide = 'down'; this.snowHelper = false; this.lightningHelper = false; this.rainHelper = false; this.TiredTime = 0; this.SacksPlace = [undefined, false, false, false, false]; if (this.power == 1) { this.maxBabyCare = 2; } else { if (this.power == 2) { this.maxBabyCare = 3; } else { if (this.power == 3) { this.maxBabyCare = 4; } else { this.maxBabyCare = 1; } } } }; v2.playAnimation = function (id) {}; v2.target = function () {}; v2.attachStorkWithBags = function () { var v2; var v3 = 'StorkWithBags' + this.power.toString() + this.speed.toString(); v2 = this.delivery.holder.attachMovie(v3, utils.StringUtils.getUniqueName(), this.delivery.level.depth.getDepth('streets') - 10, {'_x': this.StartX, '_y': this.StartY}); v2.stork = this; return v2; }; v2.attachStork = function (delivery_) { if (this.LastContaEfekt != undefined) { var v4 = this.clip; v4.swapDepths(this.depth - 1); trace('ke pravi mcFadeOut' + v4 + 'a glabocinata mu e ' + v4.getDepth()); this.alfaPArametar = true; this.mcFadeOut(v4, 400); } if (this.ContaEfekt != undefined) { this.LastContaEfekt = this.ContaEfekt; var v5 = this.ContaEfekt.toString() + this.power.toString() + this.speed.toString(); if (this.ContaEfekt == 'WetStork') { this.TiredTime = 8 + Math.random() * 4; this.clip = this.delivery.holder.attachMovie(v5, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.x + 8.4, '_y': this.y + 10.4}); this.clip.fleg = 'WetStork'; this.clip.Level = this.delivery.level; this.delivery.target.sndCtrl.stopSound(this.soundsId.storkiswet_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.storkiswet_snd, 32000); } else { if (this.ContaEfekt == 'Frozen') { trace('attachStork FROZEN this.depth ' + this.depth); this.TiredTime = 8 + Math.random() * 4; this.clip = this.delivery.holder.attachMovie(v5, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.x + 13.5, '_y': this.y + 10}); this.clip.fleg = 'Frozen'; this.clip.Level = this.delivery.level; this.delivery.target.sndCtrl.stopSound(this.soundsId.storkisfrozen_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.storkisfrozen_snd, 32000); } else { if (this.ContaEfekt == 'Smoked') { this.StrkHitbyLightning.removeMovieClip(); this.TiredTime = 8 + Math.random() * 4; this.clip = this.delivery.holder.attachMovie(v5, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.x - 12.4, '_y': this.y - 52}); this.clip.fleg = 'Smoked'; this.clip.Level = this.delivery.level; this.delivery.target.sndCtrl.stopSound(this.soundsId.storkiselectroduced_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.storkiselectroduced_snd, 32000); this.StrkHitbyLightning = undefined; } } } this.delivery.level.game.helpTipsDelivery[34].showPopUp(); this.addEvents(); this.ContaEfekt = undefined; utils.Delegate.callDelayed(this, this.attachStork, this.TiredTime * 1000, this.delivery); } else { if (this.TiredTime > 0) { var v5 = 'Tired' + this.power.toString() + this.speed.toString(); this.clip = this.delivery.holder.attachMovie(v5, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.x + 2.2, '_y': this.y + 13.9}); this.clip.fleg = undefined; this.clip.Level = this.delivery.level; var v6; v6 = this; this.clip.Stork = v6; this.delivery.target.sndCtrl.stopSound(this.soundsId.disenje_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.disenje_snd, 32000); this.delivery.target.sndCtrl.stopSound(this.soundsId.storkiselectroduced_snd); this.delivery.target.sndCtrl.stopSound(this.soundsId.storkisfrozen_snd); this.delivery.target.sndCtrl.stopSound(this.soundsId.storkiswet_snd); } else { if (this.ContaEfekt == undefined && this.TiredTime == 0) { trace('attachStork StandStork this.depth ' + this.depth); var v5 = 'StandStork' + this.power.toString() + this.speed.toString(); this.clip = this.delivery.holder.attachMovie(v5, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.x, '_y': this.y}); this.clip.fleg = undefined; if (this.LastContaEfekt != undefined) { this.LastContaEfekt = undefined; this.mcFadeIn(this.clip, 400); this.delivery.target.sndCtrl.stopSound(this.soundsId.storkiselectroduced_snd); this.delivery.target.sndCtrl.stopSound(this.soundsId.storkisfrozen_snd); this.delivery.target.sndCtrl.stopSound(this.soundsId.storkiswet_snd); } } } } this.strengthMeter = this.clip.attachMovie('strengthMeter', 'strengthMeter', 5, {'_x': 60, '_y': 40}); var v3 = 1; while (v3 <= 5) { this.strengthMeter['str' + v3]._visible = false; ++v3; } var v2 = 1; while (v2 <= this.maxBabyCare) { this.strengthMeter['str' + v2]._visible = true; ++v2; } this.addEvents(); }; v2.attachFirsTimeStork = function (delivery_) { var v4 = 'StandStork' + this.power.toString() + this.speed.toString(); this.clip = this.delivery.holder.attachMovie(v4, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.x, '_y': this.y}); this.clip.fleg = undefined; this.strengthMeter = this.clip.attachMovie('strengthMeter', 'strengthMeter', 5, {'_x': 60, '_y': 40}); var v3 = 1; while (v3 <= 5) { this.strengthMeter['str' + v3]._visible = false; ++v3; } var v2 = 1; while (v2 <= this.maxBabyCare) { this.strengthMeter['str' + v2]._visible = true; ++v2; } }; v2.setBabyNum = function () { this.Sacks.push(this.Sack); this.BabyCareInMoment += this.Sacks[this.Sacks.length - 1].numOfBabies; this.clip.multyIndex.index.text = this.MultyIndex; if (this.delivery.level.game.helpTipsDelivery[23].clip) { this.delivery.level.game.helpTipsDelivery[23].hidePopUp(); } if (this.maxBabyCare == this.BabyCareInMoment) { if (this.maxBabyCare == 2) { this.MultyIndex = 20; } else { if (this.maxBabyCare == 3) { this.MultyIndex = 60; } else { if (this.maxBabyCare == 4) { this.MultyIndex = 100; } } } if (this.maxBabyCare > 1) { this.delivery.level.game.helpTipsDelivery[33].showPopUp(); } this.clip.attachMovie('ImFullBlue', utils.StringUtils.getUniqueName(), 55, {'_x': 0, '_y': 20}); this.delivery.target.sndCtrl.stopSound(this.soundsId.Iamfull_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.Iamfull_snd); } else { this.MultyIndex = 0; this.clip.attachMovie('gimmyMore', utils.StringUtils.getUniqueName(), 55, {'_x': 0, '_y': 20}); this.delivery.target.sndCtrl.stopSound(this.soundsId.givememore_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.givememore_snd); } }; v2.backSack = function (casks_) { this.clip.multyIndex.index.text = this.MultyIndex; var v2 = 0; while (v2 < this.Sacks.length) { if (this.Sacks[v2] == casks_) { this.Sacks.splice(v2, 1); break; } ++v2; } this.BabyCareInMoment -= casks_.numOfBabies; var v5 = this.maxBabyCare - this.BabyCareInMoment; var v4 = 1; while (v4 <= 5) { this.strengthMeter['str' + v4]._visible = false; ++v4; } var v3 = 1; while (v3 <= v5) { this.strengthMeter['str' + v3]._visible = true; ++v3; } }; v2.checkPower = function (babyNumber) { if (this.BabyCareInMoment + babyNumber <= this.maxBabyCare) { var v4 = this.maxBabyCare - (this.BabyCareInMoment + babyNumber); var v3 = 1; while (v3 <= 5) { this.strengthMeter['str' + v3]._visible = false; ++v3; } var v2 = 1; while (v2 <= v4) { this.strengthMeter['str' + v2]._visible = true; ++v2; } return true; } else { if (this.Houses.length == 0) { this.strengthMeter.play(); if (this.BabyCareInMoment == this.maxBabyCare) { this.clip.attachMovie('ImFullRed', utils.StringUtils.getUniqueName(), 55, {'_x': 0, '_y': 20}); this.delivery.target.sndCtrl.stopSound(this.delivery.target.soundsId.negativemessage_snd); this.delivery.target.sndCtrl.playSound(this.delivery.target.soundsId.negativemessage_snd); return false; } if (this.BabyCareInMoment + babyNumber >= this.maxBabyCare) { this.clip.attachMovie('TooMuch', utils.StringUtils.getUniqueName(), 55, {'_x': 0, '_y': 20}); this.delivery.target.sndCtrl.stopSound(this.delivery.target.soundsId.negativemessage_snd); this.delivery.target.sndCtrl.playSound(this.delivery.target.soundsId.negativemessage_snd); } return false; } } }; v2.removeStork = function () { this.clip.removeMovieClip(); }; v2.setStar = function () { var v2 = 0; while (v2 < this.delivery.Stars.length) { this.delivery.Stars[v2].starNum.text = v2 + 1; ++v2; } var v3 = 0; while (v3 < this.delivery.houseSimbols.length) { if (this.delivery.houseSimbols[v3] == this.Sacks[0].simbolZvezda) { this.Sacks[0].simbolZvezda.removeMovieClip(); this.Sacks[0].simbolZvezda = undefined; this.delivery.houseSimbols.splice(v3, 1); } ++v3; } v3 = 0; while (v3 < this.delivery.houseSimbols.length) { this.delivery.houseSimbols[v3].numHouse.text = v3 + 1; ++v3; } }; v2.setStar1 = function () { var v2 = 0; while (v2 < this.delivery.Stars.length) { this.delivery.Stars[v2].starNum.text = v2 + 1; ++v2; } }; v2.cashEvent = function () { if (this.delivery.servedHouse >= this.delivery.levelAssets.eventNumber[0]) { this.delivery.setNeed(); this.delivery.levelAssets.eventNumber.splice(0, 1); this.delivery.servedHouse = 0; } }; v2.AttachFlyStork = function () { this.tempClip.removeMovieClip(); this.clip.removeMovieClip(); var v7 = 'StorkFlying' + this.power.toString() + this.speed.toString(); var v8 = this.delivery.level.depth.getDepth('FlyingStork'); this.clip = this.delivery.holder.attachMovie(v7, utils.StringUtils.getUniqueName(), v8, {'_x': this.Houses[0].x + 2.2, '_y': this.Houses[0].Y - 46}); this.clip.Level = this.delivery.level; var v6 = this.delivery.holder.getNextHighestDepth(); this.delivery.holder.attachMovie('izgubuvanje', utils.StringUtils.getUniqueName(), v6, {'_x': 399.9, '_y': 299.9}); this.delivery.target.sndCtrl.stopSound(this.soundsId.storkdive_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.storkdive_snd); if (this.Sacks.length % 2 == 0) { this.clip._x = 810; } else { this.FlySide = 'down'; this.clip._x = -110; } if (this.lightningHelper) { this.clip.kapa.attachMovie('smal_lightninghelp', 'smal_lightninghelp', 1); } else { if (this.rainHelper) { this.clip.kapa2.attachMovie('smal_rainhelper', 'smal_rainhelper', 2); } else { if (this.snowHelper) { this.clip.kapa3.attachMovie('smal_shalce', 'smal_shalce', 3); } } } var v2 = 0; while (v2 < this.Sacks.length) { var v3 = v2 + 1; var v4 = 'blue0' + v3; if (this.Sacks[v2].gender == 2) { v4 = 'blue0' + v3; this.Sacks[v2].sacksBag = this.clip['blue' + v3 + 'attach'].attachMovie(v4, v4, v2); this.Sacks[v2].sacksBagName = v4; } else { v4 = 'pink0' + v3; this.Sacks[v2].sacksBag = this.clip['blue' + v3 + 'attach'].attachMovie(v4, v4, v2); this.Sacks[v2].sacksBagName = v4; } ++v2; } if (this.Houses[0].SnowCloud) { var v5 = this.Houses[0].SnowCloud.getDepth(); this.clip.swapDepths(v5 - 1); var v11 = v5 - 1; } this.strengthMeter._visible = false; this.clip.multyIndex.removeMovieClip(); if (this.BabyCareInMoment != this.maxBabyCare) { this.MultyIndex = 1; } }; v2.removeCLouds = function (house) { trace('removeCLouds'); house.wish = undefined; house.clip.gotoAndStop(1); house.oblak.removeMovieClip(); house.oblak2.removeMovieClip(); house.Selected = false; }; v2.fly = function () { if (this.clip._visible == false && this.StrkHitbyLightning != undefined) { return undefined; } this.clip.stork = this; if (this.GoHomeFlag && this.clip._x < this.x + 200) { if (this.delivery.Rang != 'Ace') { if (this.FlySide == 'up') { this.clip._x += this.speed * 2 + 8; } else { if (this.FlySide == 'down') { this.clip._x -= this.speed * 2 + 8; } } } else { if (this.delivery.Rang == 'Ace') { if (this.FlySide == 'up') { this.clip._x += 16; } else { if (this.FlySide == 'down') { this.clip._x -= 16; } } } } if (this.FlySide == 'up' && this.clip._x > 921.4) { this.FlySide = 'down'; this.clip._y = this.Houses[0].Y - 46; this.clip._xscale *= -1; } if (this.FlySide == 'down' && this.clip._x < -18.6) { this.FlySide = 'up'; this.clip._y = this.Houses[0].Y - 46; this.clip._xscale *= -1; } return undefined; } else { if (this.Houses.length == 0 && this.clip._x >= this.x + 40) { this.GoHomeFlag = false; this.SacksPlace = [undefined, false, false, false, false]; this.TiredTime = (this.BabyCareInMoment / this.maxBabyCare) * 9; this.PitStop = getTimer(); this.FlySide = 'down'; this.clip.removeMovieClip(); utils.Delegate.callDelayed(this, this.attachStork, 100, this.delivery); this.MultyIndex = 1; this.clip.multyIndex.removeMovieClip(); this.snowHelper = false; this.lightningHelper = false; this.rainHelper = false; this.clip.snowHelper.removeMovieClip(); this.clip.lightningHelper.removeMovieClip(); this.clip.rainHelper.removeMovieClip(); var v2 = 1; while (v2 <= 5) { this.strengthMeter['str' + v2]._visible = false; ++v2; } var v5 = 1; while (v5 <= this.maxBabyCare) { this.strengthMeter['str' + v5]._visible = true; ++v5; } this.delivery.target.sndCtrl.stopSound(this.soundsId.storkarrive_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.storkarrive_snd); this.clip.attachMovie('storkOblak', 'storkOblak', 4, {'_x': -10, '_y': -10, '_xscale': 50, '_yscale': 50}); if (this.delivery.level.game.Storks[0] == this) { this.delivery.holder.attachMovie('storkBackHome', utils.StringUtils.getUniqueName(), this.depth + 1, {'_x': 626.6, '_y': 56.8}); } else { if (this.delivery.level.game.Storks[1] == this) { this.delivery.holder.attachMovie('storkBackHome', utils.StringUtils.getUniqueName(), this.depth + 1, {'_x': 630.1, '_y': 100}); } else { if (this.delivery.level.game.Storks[2] == this) { this.delivery.holder.attachMovie('storkBackHome', utils.StringUtils.getUniqueName(), this.depth + 1, {'_x': 636.1, '_y': 185}); } else { if (this.delivery.level.game.Storks[3] == this) { this.delivery.holder.attachMovie('storkBackHome', utils.StringUtils.getUniqueName(), this.depth + 1, {'_x': 642.1, '_y': 270}); } else { if (this.delivery.level.game.Storks[4] == this) { this.delivery.holder.attachMovie('storkBackHome', utils.StringUtils.getUniqueName(), this.depth + 1, {'_x': 646.9, '_y': 335}); } else { if (this.delivery.level.game.Storks[5] == this) { this.delivery.holder.attachMovie('doluStrkBack', utils.StringUtils.getUniqueName(), this.depth + 1, {'_x': 400.1, '_y': 300}); } } } } } } trace('dlabocina na toa so se vraka ' + (this.depth + 1)); this.prepareForWork = false; this.BabyCareInMoment = 0; this.fleg = false; v5 = 0; while (v5 < this.Sacks.length) { this.setStar(); this.backUnUseSacks(this.Sacks[v5].tupe); ++v5; } v2 = 0; while (v2 < this.Sacks.length) { var v3 = 0; while (v3 < this.delivery.houseSimbols.length) { if (this.delivery.houseSimbols[v3] == this.Sacks[v2].simbolZvezda) { this.Sacks[v2].simbolZvezda.removeMovieClip(); this.Sacks[v2].simbolZvezda = undefined; this.delivery.houseSimbols.splice(v3, 1); } ++v3; } ++v2; } this.setStar(); if (this.ContaEfekt) { this.Sacks[0].clip.removeMovieClip(); this.Sacks[1].clip.removeMovieClip(); this.Sacks[2].clip.removeMovieClip(); this.Sacks[3].clip.removeMovieClip(); this.Sacks = []; } this.Sacks = []; if (this.delivery.storkReadiForWork == this) { this.delivery.storkReadiForWork = undefined; } var v6 = true; var v7 = this.delivery.levelAssets.Houses.length; var v4 = 0; while (v4 < v7) { if (this.delivery.levelAssets.Houses[v4].wish != undefined) { v6 = false; break; } ++v4; } if (v6 && this.delivery.CurentPopUp == undefined && this.delivery.levelAssets.wishArray[this.delivery.WishStep].length == undefined) { this.delivery.setNeed(); } else { if (v6) { utils.Delegate.callDelayed(this, this.repetForNeeds, 3000); } } return undefined; } } if (this.strengthMeter._visible) { if (this.atachStorkFlag == false) { this.clip.attachMovie('YesSir', utils.StringUtils.getUniqueName(), 55, {'_x': 0, '_y': 20}); this.delivery.target.sndCtrl.stopSound(this.soundsId.YesSir_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.YesSir_snd); this.tempClip = this.clip; utils.Delegate.callDelayed(this.tempClip, this.tempClip.gotoAndPlay, 5, 13); this.clip = undefined; utils.Delegate.callDelayed(this, this.AttachFlyStork, 1000); this.fleg = true; this.atachStorkFlag = true; } } if (this.delivery.Rang != 'Ace') { if (this.FlySide == 'up') { this.clip._x += this.speed * 2 + 3; } else { if (this.FlySide == 'down') { this.clip._x -= this.speed * 2 + 3; } } } else { if (this.delivery.Rang == 'Ace') { if (this.FlySide == 'up') { this.clip._x += 11; } else { if (this.FlySide == 'down') { this.clip._x -= 11; } } } } if (this.FlySide == 'up' && this.clip._x > 921.4) { this.FlySide = 'down'; if (this.Houses[0].SnowCloud) { this.clip.swapDepths(this.Houses[0].SnowCloud.getDepth() - 1); } else { this.clip.swapDepths(this.delivery.level.depth.getDepth('FlyingStork')); } this.clip._y = this.Houses[0].Y - 46; this.clip._xscale *= -1; } if (this.FlySide == 'down' && this.clip._x < -18.6) { this.FlySide = 'up'; if (this.Houses[0].SnowCloud) { this.clip.swapDepths(this.Houses[0].SnowCloud.getDepth() - 1); } else { this.clip.swapDepths(this.delivery.level.depth.getDepth('FlyingStork')); } this.clip._y = this.Houses[0].Y - 46; this.clip._xscale *= -1; } if (this.clip.testArea.hitTest(this.Houses[0].clip) && int(this.clip._y) == int(this.Houses[0].Y - 46)) { this.atachStorkFlag = false; if (!this.Houses[0].snow && !this.Houses[0].storm && !this.Houses[0].rain || this.Houses[0].snow && this.snowHelper || this.Houses[0].storm && this.lightningHelper || this.Houses[0].rain && this.rainHelper) { if (this.Houses[0].snow || this.Houses[0].storm || this.Houses[0].rain) { this.HitTheWeather = 1; } if (this.Sacks[0].gender == 2) { this.delivery.score_mc2.num.text -= 1; } else { if (this.Sacks[0].gender == 1) { this.delivery.score_mc3.num.text -= 1; } } if (this.Houses[0].wish == this.Sacks[0].gender && this.Houses[0].wish != undefined) { utils.Delegate.callDelayed(this, this.removeCLouds, 400, this.Houses[0]); this.Houses[0].clip.attachMovie('srce', 'srce', 3, {'_x': 40, '_y': 20}); this.Houses[0].clip.srce.factory = this.delivery; this.delivery.target.sndCtrl.stopSound(this.soundsId.srce_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.srce_snd); utils.Delegate.callDelayed(this.Houses[0], this.Houses[0].clearClouds, 400); this.Houses[0].snow = false; this.Houses[0].storm = false; this.Houses[0].rain = false; ++this.delivery.servedHouse; utils.Delegate.callDelayed(this, this.cashEvent, 1000); this.delivery.level.game.helpTipsDelivery[11].showPopUp(); if (this.delivery.PastActions[this.delivery.PastActions.length - 1] == this.Sacks[0].gender) { ++this.delivery.comboColor; if (this.Sacks.length == 1) { utils.Delegate.callDelayed(this.delivery.level, this.delivery.level.changePointsInDelivery, 400, this.Houses[0].addPoints, this.Houses[0].clip, this.MultyIndex, this.delivery.comboColor, this.HitTheWeather); } else { utils.Delegate.callDelayed(this.delivery.level, this.delivery.level.changePointsInDelivery, 400, this.Houses[0].addPoints, this.Houses[0].clip, 1, this.delivery.comboColor, this.HitTheWeather); } } else { this.delivery.comboColor = 1; if (this.Sacks.length == 1) { utils.Delegate.callDelayed(this.delivery.level, this.delivery.level.changePointsInDelivery, 400, this.Houses[0].addPoints, this.Houses[0].clip, this.MultyIndex, this.delivery.comboColor, this.HitTheWeather); } else { utils.Delegate.callDelayed(this.delivery.level, this.delivery.level.changePointsInDelivery, 400, this.Houses[0].addPoints, this.Houses[0].clip, 1, this.delivery.comboColor, this.HitTheWeather); } } this.HitTheWeather = 0; this.delivery.PastActions.push(this.Sacks[0].gender); } else { if (this.Houses[0].wish == 0 && this.Sacks.length > 0) { utils.Delegate.callDelayed(this, this.removeCLouds, 400, this.Houses[0]); this.Houses[0].clip.attachMovie('srce', 'srce', 3, {'_x': 40, '_y': 2}); this.Houses[0].clip.srce.factory = this.delivery; this.delivery.target.sndCtrl.stopSound(this.soundsId.srce_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.srce_snd); utils.Delegate.callDelayed(this.Houses[0], this.Houses[0].clearClouds, 400); this.Houses[0].snow = false; this.Houses[0].storm = false; this.Houses[0].rain = false; ++this.delivery.servedHouse; utils.Delegate.callDelayed(this, this.cashEvent, 1000); if (this.delivery.PastActions[this.delivery.PastActions.length - 1] == this.Sacks[0].gender) { ++this.delivery.comboColor; } if (this.Sacks.length == 1) { utils.Delegate.callDelayed(this.delivery.level, this.delivery.level.changePointsInDelivery, 400, this.Houses[0].addPoints, this.Houses[0].clip, this.MultyIndex, this.delivery.comboColor, this.HitTheWeather); } else { utils.Delegate.callDelayed(this.delivery.level, this.delivery.level.changePointsInDelivery, 400, this.Houses[0].addPoints, this.Houses[0].clip, 1, this.delivery.comboColor, this.HitTheWeather); } this.delivery.PastActions.push(this.Sacks[0].gender); this.HitTheWeather = 0; } else { if (this.Sacks.length > 0) { utils.Delegate.callDelayed(this, this.removeCLouds, 400, this.Houses[0]); ++this.delivery.servedHouse; utils.Delegate.callDelayed(this, this.cashEvent, 1000); utils.Delegate.callDelayed(this.Houses[0], this.Houses[0].clearClouds, 400); this.Houses[0].snow = false; this.Houses[0].storm = false; this.Houses[0].rain = false; this.delivery.comboColor = 1; this.delivery.level.pointsArray.push(6); this.delivery.level.pointsArray.push(7); utils.Delegate.callDelayed(this.delivery.level, this.delivery.level.changePointsInDelivery, 400, 0, this.Houses[0].clip, 0, 0, 0); this.HitTheWeather = 0; this.delivery.PastActions.push(-1); this.delivery.RangScore -= 30; if (this.delivery.RangScore < 0) { this.delivery.RangScore = 0; } } } } } else { this.LastHouse = this.Houses[0]; trace('PRED ' + this.clip.getDepth()); this.clip.swapDepths(this.delivery.level.depth.getDepth('FlyingStork')); trace('posle ' + this.clip.getDepth()); if (this.Houses[0].snow) { this.clip.attachMovie('storkLetaSneg', 'storkLetaSneg', 1, {'_x': 54, '_y': 14.3}); this.clip.storkLetaSneg.gotoAndPlay(this.clip._currentframe); this.ContaEfekt = 'Frozen'; this.delivery.target.sndCtrl.stopSound(this.soundsId.storkgetsfrozen_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.storkgetsfrozen_snd); } else { if (this.Houses[0].storm) { this.clip.attachMovie('storkLetaGrom', 'storkLetaGrom', 1, {'_x': 54.7, '_y': 16.6}); this.clip.storkLetaGrom.gotoAndPlay(this.clip._currentframe); this.ContaEfekt = 'Smoked'; this.lastXCordinate = this.clip._x; this.clip._visible = false; var v9 = this.delivery.holder.getNextHighestDepth() + this.delivery.NextHighestDepthCounter; trace(' *** dubina() ' + v9); ++this.delivery.NextHighestDepthCounter; this.StrkHitbyLightning = this.delivery.holder.attachMovie('StrkHitbyLightning', utils.StringUtils.getUniqueName(), v9, {'_x': this.clip._x - 42.5, '_y': this.clip._y - 23}); var v11; v11 = this; this.StrkHitbyLightning.stork = v11; this.delivery.target.sndCtrl.stopSound(this.soundsId.storkgetselectroduced_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.storkgetselectroduced_snd); } else { if (this.Houses[0].rain) { this.clip.attachMovie('storkLetaDozd', 'storkLetaDozd', 1, {'_x': 52, '_y': 16.6}); this.clip.storkLetaDozd.gotoAndPlay(this.clip._currentframe); this.ContaEfekt = 'WetStork'; this.delivery.target.sndCtrl.stopSound(this.soundsId.storkgetswet_snd); this.delivery.target.sndCtrl.playSound(this.soundsId.storkgetswet_snd); } } } this.delivery.level.pointsArray.push(0); this.delivery.level.pointsArray.push(3); this.delivery.level.changePointsInDelivery(-25, this.clip, 1, undefined); v2 = 0; while (v2 < this.delivery.Stars.length) { v3 = 0; while (v3 < this.Houses.length) { if (this.delivery.Stars[v2] == this.Houses[v3].star) { this.Houses[v3].star.removeMovieClip(); this.delivery.Stars.splice(v2, 1); } ++v3; } ++v2; } v2 = 0; while (v2 < this.Sacks.length) { v3 = 0; while (v3 < this.delivery.houseSimbols.length) { if (this.delivery.houseSimbols[v3] == this.Sacks[v2].simbolZvezda) { this.Sacks[v2].simbolZvezda.removeMovieClip(); this.Sacks[v2].simbolZvezda = undefined; this.delivery.houseSimbols.splice(v3, 1); } ++v3; } ++v2; } this.Houses[0].SnowCloud.play(); this.Houses[0].Selected = false; this.Houses[1].Selected = false; this.Houses[2].Selected = false; this.Houses[3].Selected = false; this.delivery.comboColor = 1; this.MultyIndex = 1; this.delivery.PastActions = []; this.delivery.avoidingBadWeather = false; this.Houses = []; } if (!this.ContaEfekt) { var v8 = {'x': 3, 'y': 0}; this.Sacks[0].sacksBag.localToGlobal(v8); var v10 = this.Sacks[0].sacksBagName; this.Sacks[0].sacksBag.removeMovieClip(); var v12 = this.Houses[0].clip.attachMovie(v10, v10, 122, {'_x': v8.x - this.Houses[0].clip._x, '_y': v8.y - this.Houses[0].clip._y}); utils.Delegate.callDelayed(v12, gotoAndPlay, 10, 15); } v3 = 0; while (v3 < this.delivery.Stars.length) { if (this.delivery.Stars[v3] == this.Houses[0].star) { this.Houses[0].star.removeMovieClip(); this.delivery.Stars.splice(v3, 1); break; } ++v3; } this.Houses.splice(0, 1); if (!this.ContaEfekt) { this.setStar(); } else { this.setStar1(); } if (!this.ContaEfekt) { this.Sacks[0].clip.removeMovieClip(); this.Sacks.splice(0, 1); } if (this.Houses.length > 0) { utils.Delegate.callDelayed(this, this.wait, 2000); } else { this.GoHomeFlag = true; utils.Delegate.callDelayed(this, this.wait, 2000); } } else { this.fleg = false; } }; v2.repetForNeeds = function () { var v4 = this.delivery.levelAssets.Houses.length; var v3 = true; var v2 = 0; while (v2 < v4) { if (this.delivery.levelAssets.Houses[v2].wish != undefined) { v3 = false; return undefined; } ++v2; } if (v3 && this.delivery.CurentPopUp == undefined) { this.delivery.setNeed(); } else { if (v3) { utils.Delegate.callDelayed(this, this.repetForNeeds, 100); } } }; v2.wait = function () { if (this.LastHouse) { this.LastHouse = undefined; } this.fleg = false; }; v2.backUnUseSacks = function (tupe) { this.delivery.level.pointsArray = []; switch (tupe) { case 1: ++this.delivery.level.singelBoySacks; this.delivery.singelBoySacks.num.text = this.delivery.level.singelBoySacks; this.delivery.singelBoySacks._visible = true; this.delivery.level.pointsArray.push(5); this.delivery.level.changePointsInDelivery(0, this.delivery.singelBoySacks, 1, undefined); break; case 2: ++this.delivery.level.singelGirlSacks; this.delivery.singelGirlSacks.num.text = this.delivery.level.singelGirlSacks; this.delivery.singelGirlSacks._visible = true; this.delivery.level.pointsArray.push(5); this.delivery.level.changePointsInDelivery(0, this.delivery.singelGirlSacks, 1, undefined); break; case 3: ++this.delivery.level.twinBoySacks; this.delivery.twinBoySacks.num.text = this.delivery.level.twinBoySacks; this.delivery.twinBoySacks._visible = true; this.delivery.level.pointsArray.push(5); this.delivery.level.changePointsInDelivery(0, this.delivery.twinBoySacks, 1, undefined); break; case 4: ++this.delivery.level.twinGirlSacks; this.delivery.twinGirlSacks.num.text = this.delivery.level.twinGirlSacks; this.delivery.twinGirlSacks._visible = true; this.delivery.level.pointsArray.push(5); this.delivery.level.changePointsInDelivery(0, this.delivery.twinGirlSacks, 1, undefined); break; case 5: ++this.delivery.level.tripletBoySacks; this.delivery.tripletBoySacks.num.text = this.delivery.level.tripletBoySacks; this.delivery.tripletBoySacks._visible = true; this.delivery.level.pointsArray.push(5); this.delivery.level.changePointsInDelivery(0, this.delivery.tripletBoySacks, 1, undefined); break; case 6: ++this.delivery.level.tripletGirlSacks; this.delivery.tripletGirlSacks.num.text = this.delivery.level.tripletGirlSacks; this.delivery.tripletGirlSacks._visible = true; this.delivery.level.pointsArray.push(5); this.delivery.level.changePointsInDelivery(0, this.delivery.tripletGirlSacks, 1, undefined); break; case 7: ++this.delivery.level.quadrupletBoySacks; this.delivery.quadrupletBoySacks.num.text = this.delivery.level.quadrupletBoySacks; this.delivery.quadrupletBoySacks._visible = true; this.delivery.level.pointsArray.push(5); this.delivery.level.changePointsInDelivery(0, this.delivery.quadrupletBoySacks, 1, undefined); break; case 8: ++this.delivery.level.quadrupletGirlSacks; this.delivery.quadrupletGirlSacks.num.text = this.delivery.level.quadrupletGirlSacks; this.delivery.quadrupletGirlSacks._visible = true; this.delivery.level.pointsArray.push(5); this.delivery.level.changePointsInDelivery(0, this.delivery.quadrupletGirlSacks, 1, undefined); } }; v2.showClip = function () { if (this.clip._visible == false) { this.clip._visible = true; } }; v2.attachPerduviSide = function () { this.delivery.holder.attachMovie('perduvi1', utils.StringUtils.getUniqueName(), this.depth + 1, {'_x': this.x, '_y': this.y + 50}); }; v2.attachPerduviPlatform = function () { var v2 = this.delivery.holder.attachMovie('perduvi1', utils.StringUtils.getUniqueName(), this.delivery.holder.getNextHighestDepth(), {'_x': this.StartX, '_y': this.StartY + 70}); }; v2.attachOblache = function (x, y, d) { _root.attachMovie('perduvi1', 'perduvi1', d, {'_x': x, '_y': y}); }; v2.attachStendingStork = function () { this.clip.removeMovieClip(); var v2 = 'StandStork' + this.power.toString() + this.speed.toString(); this.clip = this.delivery.holder.attachMovie(v2, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.x, '_y': this.y}); this.addEvents(); }; v2.attachStendingStork1 = function () { var v2 = 'StandStork' + this.power.toString() + this.speed.toString(); this.clip.removeMovieClip(); this.clip = this.delivery.holder.attachMovie(v2, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.x, '_y': this.y}); this.addEvents(); }; v2.attachStendingStork2 = function () { var v2 = 'StandStork' + this.power.toString() + this.speed.toString(); this.clip.removeMovieClip(); this.clip = this.delivery.holder.attachMovie(v2, utils.StringUtils.getUniqueName(), this.depth, {'_x': this.x, '_y': this.y}); }; } else { goto 38120; } storedv2.addEvents = function () { if (this.Houses.length > 0) { return undefined; } if (this.clip.fleg == 'WetStork') { this.clip.holder = this; this.clip.onPress = function () { this.holder.clip.attachMovie('ImWet', utils.StringUtils.getUniqueName(), 55, {'_x': 0, '_y': 20}); this.holder.delivery.target.sndCtrl.stopSound(this.holder.delivery.target.soundsId.negativemessage_snd); this.holder.delivery.target.sndCtrl.playSound(this.holder.delivery.target.soundsId.negativemessage_snd); }; this.clip.onRollOver = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('finger'); }; this.clip.onRollOut = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.onReleaseOutside = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; } else { if (this.clip.fleg == 'Smoked') { this.clip.holder = this; this.clip.onPress = function () { this.holder.clip.attachMovie('ImSmoked', utils.StringUtils.getUniqueName(), 55, {'_x': 0, '_y': 30}); this.holder.delivery.target.sndCtrl.stopSound(this.holder.delivery.target.soundsId.negativemessage_snd); this.holder.delivery.target.sndCtrl.playSound(this.holder.delivery.target.soundsId.negativemessage_snd); }; this.clip.onRollOver = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('finger'); }; this.clip.onRollOut = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.onReleaseOutside = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; } else { if (this.clip.fleg == 'Frozen') { this.clip.holder = this; this.clip.onPress = function () { this.holder.clip.attachMovie('ImFrozen', utils.StringUtils.getUniqueName(), 55, {'_x': 0, '_y': 20}); this.holder.delivery.target.sndCtrl.stopSound(this.holder.delivery.target.soundsId.negativemessage_snd); this.holder.delivery.target.sndCtrl.playSound(this.holder.delivery.target.soundsId.negativemessage_snd); }; this.clip.onRollOver = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('finger'); }; this.clip.onRollOut = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.onReleaseOutside = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; } else { this.clip.holder = this; this.clip.onPress = function () { if (this.hitTest(_xmouse, _ymouse, true)) { var v2 = 0; while (v2 < this.holder.Sacks.length) { if (this.holder.Sacks[v2].clip.hitTest(_xmouse, _ymouse, true)) { this.holder.Sacks[v2].removeSack1(); return undefined; } ++v2; } if (this.holder.delivery.CurentPopUp.chekPrestObject(this.holder) == false) { return undefined; } var v13 = getTimer(); var v10 = (this.holder.TiredTime * 1000 - (v13 - this.holder.PitStop)) / 1000; if (this.holder.TiredTime > 0) { this.holder.clip.attachMovie('ImTired', utils.StringUtils.getUniqueName(), 55, {'_x': 0, '_y': 20}); this.holder.delivery.target.sndCtrl.stopSound(this.holder.delivery.target.soundsId.negativemessage_snd); this.holder.delivery.target.sndCtrl.playSound(this.holder.delivery.target.soundsId.negativemessage_snd); } else { if (this.kall.kalUFaca != '' && this.kall.kalUFaca != undefined) { this.holder.clip.attachMovie('ImHit', utils.StringUtils.getUniqueName(), 55, {'_x': 0, '_y': 20}); this.holder.delivery.target.sndCtrl.stopSound(this.holder.delivery.target.soundsId.negativemessage_snd); this.holder.delivery.target.sndCtrl.playSound(this.holder.delivery.target.soundsId.negativemessage_snd); } else { if (!this.holder.delivery.storkReadiForWork.GoHomeFlag && this.holder.delivery.storkReadiForWork.Houses.length == 0 && v10 <= 0 && !this.holder.prepareForWork && (this.holder.delivery.storkReadiForWork != undefined && this.holder.delivery.storkReadiForWork.Sacks.length == 0)) { if (this.holder == this.holder.delivery.level.game.Storks[this.holder.delivery.TargetetStork - 1]) { this.holder.delivery.level.pointsArray.push({'type': 0, 'points': '10'}); this.holder.delivery.level.changePointsInDelivery(10, this.holder.clip, 1, undefined); this.holder.delivery.holder.ball.removeMovieClip(); this.holder.delivery.alianceTime = getTimer(); this.holder.delivery.holder.target.removeMovieClip(); this.holder.delivery.TargetetStork = undefined; this.holder.delivery.level.continueGame(); this.holder.delivery.target.sndCtrl.stopSound(this.holder.delivery.soundsId.snowballShoot_snd); } if (this.holder.delivery.level.game.helpTipsDelivery[4].clip) { this.holder.delivery.level.game.helpTipsDelivery[4].hidePopUp(); } if (this.holder.delivery.level.game.helpTipsDelivery[24].clip) { this.holder.delivery.level.game.helpTipsDelivery[24].hidePopUp(); } this.holder.delivery.level.game.helpTipsDelivery[4].hidePopUp(); if (this.holder.delivery.level.game.helpTipsDelivery[13].clip) { this.holder.delivery.level.game.helpTipsDelivery[13].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[14].showPopUp(); this.holder.delivery.level.game.helpTipsDelivery[14].PriorityObject = [this.holder.delivery.rainHelper]; } if (this.holder.delivery.level.game.helpTipsDelivery[16].clip) { this.holder.delivery.level.game.helpTipsDelivery[16].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[17].showPopUp(); this.holder.delivery.level.game.helpTipsDelivery[17].PriorityObject = [this.holder.delivery.lightningHelper]; } if (this.holder.delivery.level.game.helpTipsDelivery[19].clip) { this.holder.delivery.level.game.helpTipsDelivery[19].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[20].showPopUp(); this.holder.delivery.level.game.helpTipsDelivery[20].PriorityObject = [this.holder.delivery.snowHelper]; } this.holder.delivery.storkReadiForWork.snowHelper = false; this.holder.delivery.storkReadiForWork.lightningHelper = false; this.holder.delivery.storkReadiForWork.rainHelper = false; this.holder.delivery.storkReadiForWork.prepareForWork = false; var v7 = this.holder.delivery.storkReadiForWork.clip._x; var v6 = this.holder.delivery.storkReadiForWork.clip._y; var v9 = this.holder.delivery.storkReadiForWork.x - v7; var v8 = this.holder.delivery.storkReadiForWork.y - v6; utils.Delegate.callDelayed(this.holder.delivery.storkReadiForWork, this.holder.delivery.storkReadiForWork.attachStendingStork, 300); utils.Delegate.callDelayed(this.holder, this.holder.attachOblache, 100, v7 + 15 + v9 / 3, v6 + 15 + v8 / 3, 60133); utils.Delegate.callDelayed(this.holder, this.holder.attachOblache, 200, v7 + 15 + 2 * v9 / 3, v6 + 15 + 2 * v8 / 3, 60134); this.holder.delivery.storkReadiForWork = undefined; this.holder.delivery.storkReadiForWork = this.holder; this.holder.prepareForWork = true; utils.Delegate.callDelayed(this.holder, this.holder.attachPerduviSide, 10); utils.Delegate.callDelayed(this.holder, this.holder.attachPerduviPlatform, 250); var v3 = this.holder; var v5 = v3.clip._x; var v4 = v3.clip._y; this.holder.clip.removeMovieClip(); v3.clip = v3.attachStorkWithBags(); v3.clip._visible = false; var v12 = v3.clip._x - v5; var v11 = v3.clip._y - v4; utils.Delegate.callDelayed(v3, v3.showClip, 300); utils.Delegate.callDelayed(v3, v3.attachOblache, 100, v5 + 15 + v12 / 3, v4 + 15 + v11 / 3, 60131); utils.Delegate.callDelayed(v3, v3.attachOblache, 200, v5 + 15 + 2 * v12 / 3, v4 + 15 + 2 * v11 / 3, 60132); v3.strengthMeter = v3.clip.attachMovie('strengthMeter', 'strengthMeter', 5, {'_x': 60, '_y': 40}); v3.delivery.level.game.sndCtrl.stopSound(v3.soundsId.storkgo_snd); v3.delivery.level.game.sndCtrl.playSound(v3.soundsId.storkgo_snd); v3.addEvents(); v3.delivery.target.sndCtrl.stopSound(v3.delivery.target.soundsId.mouseclick_snd); v3.delivery.target.sndCtrl.playSound(v3.delivery.target.soundsId.mouseclick_snd); } else { if (v10 <= 0 && !this.holder.prepareForWork && (this.holder.delivery.storkReadiForWork == undefined || this.holder.delivery.storkReadiForWork.Houses.length > 0) || this.holder.delivery.storkReadiForWork.GoHomeFlag) { if (this.holder == this.holder.delivery.level.game.Storks[this.holder.delivery.TargetetStork - 1]) { this.holder.delivery.level.pointsArray.push({'type': 0, 'points': '10'}); this.holder.delivery.level.changePointsInDelivery(10, this.holder.clip, 1, undefined); this.holder.delivery.ball.removeMovieClip(); this.holder.delivery.alianceTime = getTimer(); this.holder.delivery.holder.target.removeMovieClip(); this.holder.delivery.TargetetStork = undefined; this.holder.delivery.level.continueGame(); this.holder.delivery.target.sndCtrl.stopSound(this.holder.delivery.soundsId.snowballShoot_snd); } if (this.holder.delivery.level.game.helpTipsDelivery[4].clip) { this.holder.delivery.level.game.helpTipsDelivery[4].hidePopUp(); } if (this.holder.delivery.level.game.helpTipsDelivery[24].clip) { this.holder.delivery.level.game.helpTipsDelivery[24].hidePopUp(); } if (this.holder.delivery.level.game.helpTipsDelivery[13].clip) { this.holder.delivery.level.game.helpTipsDelivery[13].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[14].showPopUp(); this.holder.delivery.level.game.helpTipsDelivery[14].PriorityObject = [this.holder.delivery.rainHelper]; } if (this.holder.delivery.level.game.helpTipsDelivery[16].clip) { this.holder.delivery.level.game.helpTipsDelivery[16].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[17].showPopUp(); this.holder.delivery.level.game.helpTipsDelivery[17].PriorityObject = [this.holder.delivery.lightningHelper]; } if (this.holder.delivery.level.game.helpTipsDelivery[19].clip) { this.holder.delivery.level.game.helpTipsDelivery[19].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[20].showPopUp(); this.holder.delivery.level.game.helpTipsDelivery[20].PriorityObject = [this.holder.delivery.snowHelper]; } if (this.holder.delivery.level.game.helpTipsDelivery[22].stork == this.holder) { this.holder.delivery.level.game.helpTipsDelivery[22].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[23].showPopUp(); this.holder.delivery.level.game.helpTipsDelivery[23].PriorityObject = [this.holder.delivery.singelBoySacks, this.holder.delivery.singelGirlSacks, this.holder.delivery.twinBoySacks, this.holder.delivery.twinGirlSacks, this.holder.delivery.tripletBoySacks, this.holder.delivery.tripletGirlSacks, this.holder.delivery.quadrupletBoySacks, this.holder.delivery.quadrupletGirlSacks]; this.holder.delivery.level.continueGame(); } this.holder.delivery.storkReadiForWork = this.holder; this.holder.delivery.level.game.helpTipsDelivery[1].hidePopUp(); this.holder.delivery.level.game.helpTipsDelivery[9].showPopUp(); this.holder.delivery.level.game.helpTipsDelivery[9].PriorityObject = [this.holder.delivery.singelGirlSacks]; this.holder.delivery.holder.attachMovie('perduvi', utils.StringUtils.getUniqueName(), this.holder.depth + 1, {'_x': this.holder.x, '_y': this.holder.y + 50}); this.holder.prepareForWork = true; var v3 = this.holder; var v5 = v3.clip._x; var v4 = v3.clip._y; this.holder.clip.removeMovieClip(); v3.clip = v3.attachStorkWithBags(); var v12 = v3.clip._x - v5; var v11 = v3.clip._y - v4; utils.Delegate.callDelayed(v3, v3.attachOblache, 10, v5 + 15 + v12 / 3, v4 + 15 + v11 / 3, 60131); utils.Delegate.callDelayed(v3, v3.attachOblache, 30, v5 + 15 + 2 * v12 / 3, v4 + 15 + 2 * v11 / 3, 60132); v3.strengthMeter = v3.clip.attachMovie('strengthMeter', 'strengthMeter', 5, {'_x': 60, '_y': 40}); v3.addEvents(); v3.delivery.level.game.sndCtrl.stopSound(v3.soundsId.storkgo_snd); v3.delivery.level.game.sndCtrl.playSound(v3.soundsId.storkgo_snd); v3.delivery.target.sndCtrl.stopSound(v3.delivery.target.soundsId.mouseclick_snd); v3.delivery.target.sndCtrl.playSound(v3.delivery.target.soundsId.mouseclick_snd); } else { if (this.holder.Sacks.length == 0 && this.holder.Houses.length == 0 && this.holder.delivery.storkReadiForWork == this.holder) { this.holder.delivery.storkReadiForWork.snowHelper = false; this.holder.delivery.storkReadiForWork.lightningHelper = false; this.holder.delivery.storkReadiForWork.rainHelper = false; this.holder.delivery.storkReadiForWork = undefined; this.holder.prepareForWork = false; this.holder.delivery.holder.attachMovie('perduvi', utils.StringUtils.getUniqueName(), this.holder.delivery.holder.getNextHighestDepth(), {'_x': this.holder.StartX, '_y': this.holder.StartY + 70}); var v17 = 'StandStork' + this.holder.power.toString() + this.holder.speed.toString(); var v3 = this.holder; var v5 = v3.clip._x; var v4 = v3.clip._y; var v12 = v3.x - v5; var v11 = v3.y - v4; utils.Delegate.callDelayed(this.holder, this.holder.attachStendingStork1, 300); v3.delivery.level.game.sndCtrl.stopSound(v3.soundsId.storkgo_snd); v3.delivery.level.game.sndCtrl.playSound(v3.soundsId.storkgo_snd); v3.delivery.target.sndCtrl.stopSound(v3.delivery.target.soundsId.mouseclick_snd); v3.delivery.target.sndCtrl.playSound(v3.delivery.target.soundsId.mouseclick_snd); utils.Delegate.callDelayed(v3, v3.attachOblache, 100, v5 + 15 + v12 / 3, v4 + 15 + v11 / 3, 60131); utils.Delegate.callDelayed(v3, v3.attachOblache, 200, v5 + 15 + 2 * v12 / 3, v4 + 15 + 2 * v11 / 3, 60132); } else { this.holder.delivery.level.pointsArray.push(4); this.holder.delivery.level.changePointsInDelivery(0, this.holder.delivery.storkReadiForWork.clip, 4); } } } } } } }; } } } this.clip.onRollOver = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('finger'); }; this.clip.onRollOut = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; this.clip.onReleaseOutside = function () { this.holder.delivery.target.mousePointer.clip.gotoAndStop('normal'); }; }; storedv2.mcFadeIn = function (mc, time) { function fadein() { --mc.oeftime; trace('fadein'); if (mc.oeftime > 0) { mc._alpha += mc.step; } else { mc._alpha = 100; clearInterval(intID); trace('go prikazav klipot ' + mc + ' dlabocina ' + mc.getDepth()); return undefined; } } var v1 = time * 0.025; mc.oeftime = v1; mc.step = 100 / v1; mc._alpha = 0; var intID; clearInterval(intID); intID = setInterval(fadein, 40); }; storedv2.mcFadeOut = function (mc, time) { function fadeout() { --mc.oeftime; trace('fadeout'); if (mc.oeftime > 0) { mc.help -= mc.step; } else { mc.help = 0; trace('this.holder.alfaPArametar ' + mc.holder.alfaPArametar); mc.holder.alfaPArametar = false; trace('this.holder.alfaPArametar ' + mc.holder.alfaPArametar); trace('ke go brisham klipot ' + mc); mc.removeMovieClip(); clearInterval(intID); trace('### go izbrishav klipot ' + mc); return undefined; } mc._alpha = mc.help; trace('mc ' + mc + ' ' + mc._alpha); } var v2 = time * 0.025; mc.oeftime = v2; mc.step = 100 / v2; mc._alpha = 100; mc.help = 100; mc.holder = this; var intID; clearInterval(intID); intID = setInterval(fadeout, 40); }; label 38120: ASSetPropFlags(mcs.DeliveryStork.prototype, null, 1); #endinitclip } movieClip 9331 __Packages.mcs.PopUpFactory { #initclip if (!_global.mcs) { _global.mcs = new Object(); } if (!_global.mcs.PopUpFactory) { var v1 = function (game, linkID, x, y, depth, id_, linkSide_) { super(linkID, x, y); this.depth = depth; this.game = game; this.shown = false; this.called = false; this.id = id_; this.linkSide = linkSide_; trace('init popup vo popup ' + this.id); this.PriorityObject = new Array(); }; mcs.PopUpFactory = v1; mcs.PopUpFactory extends utils.MovieClipProperties; var v2 = v1.prototype; v2.attachClip = function () { trace('attachClip in PopUp'); this.clip = this.game.level_.factory.holder.attachMovie(this.linkSide, this.linkID, this.depth, {'_x': this.x, '_y': this.y}); trace('clip for this.id ' + this.clip); this.object = this.game.level_.factory; var v3 = this.clip.clipce.attachMovie('popUpTextFactory', 'popUpTextFactory', 5, {'_x': 0, '_y': 0}); trace('PopUpTekst ' + v3); var v2 = this.id + 1; trace('frame ' + v2); trace('attachClip vo popup na frame ' + v2); v3.gotoAndStop(v2); }; v2.removeClip = function () { this.clip.removeMovieClip(); this.clip = undefined; }; v2.showPopUp = function () { trace('showPopUp <<PopUp ' + this.id); trace('this.game.helpOnOff ' + this.game.helpOnOff); trace('this.shown ' + this.shown); if (this.called == false && this.id != 31 && this.id != 32) { this.called = true; } if (this.shown == false) { if (this.game.helpOnOff) { trace('ATTACHING POPUP'); this.attachClip(); if (this.id < 3 || this.id == 31 || this.id == 32) { this.game.popUpPause = true; this.object.popupShown = true; } this.game.currentPopUp = this.id; if (this.id == 1 || this.id == 2 || this.id == 31 || this.id == 32 || this.id == 39 || this.id == 40) { this.game.level_.factory.handlePopup = true; } else { if (this.id == 28 || this.id == 29 || this.id == 33 || this.id == 30 || this.id == 37 || this.id == 38 || this.id == 3 || this.id == 21 || this.id == 22 || this.id == 23 || this.id == 24 || this.id == 25 || this.id == 26 || this.id == 27 || this.id == 34 || this.id == 35 || this.id == 36 || this.id == 41) { this.game.level_.haltGame(); } else { if (this.id != 9 && this.id != 19 && this.id != 20 && this.id != 21 && this.id != 30 && this.id != 34) { this.game.level_.factory.Track.stopMovingTrack(); } } } } this.shown = true; } }; v2.hidePopUp = function () { trace('hidePopUp() ' + this.id); if (this.id == 1) { this.game.popUpPause = false; } if (!this.game.level_.factory.holder) { } if (this.called == true) { this.shown = true; } if (this.clip) { this.removeClip(); this.game.popUpPause = false; this.object.popupShown = false; if (this.id == 0) { this.game.level_.factory.startBlinking = false; this.game.level_.factory.slotMachineBlinking(); } else { if (this.id == 28 || this.id == 29 || this.id == 33 || this.id == 30 || this.id == 37 || this.id == 38 || this.id == 3 || this.id == 21 || this.id == 22 || this.id == 23 || this.id == 24 || this.id == 25 || this.id == 26 || this.id == 27 || this.id == 34 || this.id == 35 || this.id == 36 || this.id == 41) { this.game.level_.resumeGame(); } else { if (this.id != 9 && this.id != 19 && this.id != 20 && this.id != 21 && this.id != 30 && this.id != 34) { this.game.level_.factory.Track.moveTrack(); } } } } }; v2.hideAndShowNext = function () { this.hidePopUp(); if (this.game.currentPopUp == this.id) { this.game.helpTips[this.id + 1].showPopUp(); } }; v2.checkIfAvailable = function (PressedObject) { if (!this.game.helpOnOff) { return true; } var v2 = 0; while (v2 < this.PriorityObject.length) { if (PressedObject == this.PriorityObject[v2]) { trace('isti se sporedenite objekti'); return true; } ++v2; } return false; }; ASSetPropFlags(mcs.PopUpFactory.prototype, null, 1); } #endinitclip } movieClip 9332 __Packages.mx.lang.Locale { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.lang) { _global.mx.lang = new Object(); } if (!_global.mx.lang.Locale) { var v1 = function () {}; mx.lang.Locale = v1; var v2 = v1.prototype; v1.__get__autoReplace = function () { return mx.lang.Locale.autoReplacment; }; v1.__set__autoReplace = function (auto) { mx.lang.Locale.autoReplacment = auto; return mx.lang.Locale.__get__autoReplace(); }; v1.__get__languageCodeArray = function () { var v1 = new Array(); for (var v2 in mx.lang.Locale.xmlMap) { if (v2 != undefined) { v1.push(v2); } } return v1; }; v1.__get__stringIDArray = function () { var v1 = new Array(); for (var v2 in mx.lang.Locale.stringMap) { if (v2 != '') { v1.push(v2); } } return v1; }; v1.setFlaName = function (name) { mx.lang.Locale.flaName = name; }; v1.getDefaultLang = function () { return mx.lang.Locale.defaultLang; }; v1.setDefaultLang = function (langCode) { mx.lang.Locale.defaultLang = langCode; }; v1.addXMLPath = function (langCode, path) { if (mx.lang.Locale.xmlMap[langCode] == undefined) { mx.lang.Locale.xmlMap[langCode] = new Array(); } mx.lang.Locale.xmlMap[langCode].push(path); }; v1.addDelayedInstance = function (instance, stringID) { mx.lang.Locale.delayedInstanceArray.push({'inst': instance, 'strID': stringID}); var v1 = mx.lang.Locale.delayedInstanceArray.length; }; v1.checkXMLStatus = function () { var v1 = mx.lang.Locale.xmlDoc.loaded && mx.lang.Locale.xmlDoc.status == 0; return v1; }; v1.setLoadCallback = function (loadCallback) { mx.lang.Locale.callback = loadCallback; }; v1.loadString = function (id) { return mx.lang.Locale.stringMap[id]; }; v1.loadStringEx = function (stringID, languageCode) { var v1 = mx.lang.Locale.stringMapList[languageCode]; if (v1 != undefined) { return v1[stringID]; } else { return ''; } }; v1.setString = function (stringID, languageCode, stringValue) { var v1 = mx.lang.Locale.stringMapList[languageCode]; if (v1 != undefined) { v1[stringID] = stringValue; } else { v1 = new Object(); v1[stringID] = stringValue; mx.lang.Locale.stringMapList[languageCode] = v1; } }; v1.initialize = function () { mx.lang.Locale.xmlDoc = new XML(); mx.lang.Locale.xmlDoc.ignoreWhite = true; mx.lang.Locale.xmlDoc.onLoad = function (success) { mx.lang.Locale.onXMLLoad(success); mx.lang.Locale.callback.call(null, success); }; var v1 = mx.lang.Locale.xmlLang; if (mx.lang.Locale.xmlMap[mx.lang.Locale.xmlLang] == undefined) { v1 = mx.lang.Locale.defaultLang; } mx.lang.Locale.currentXMLMapIndex = 0; mx.lang.Locale.xmlDoc.load(mx.lang.Locale.xmlMap[v1][0]); }; v1.loadLanguageXML = function (xmlLanguageCode, customXmlCompleteCallback) { var v1 = (xmlLanguageCode == '') ? System.capabilities.language : xmlLanguageCode; if (mx.lang.Locale.xmlMap[v1] == undefined) { v1 = mx.lang.Locale.defaultLang; } if (customXmlCompleteCallback) { mx.lang.Locale.callback = customXmlCompleteCallback; } if (mx.lang.Locale.stringMapList[xmlLanguageCode] == undefined) { if (mx.lang.Locale.xmlDoc) { delete mx.lang.Locale.xmlDoc; } mx.lang.Locale.xmlDoc = new XML(); mx.lang.Locale.xmlDoc.ignoreWhite = true; mx.lang.Locale.xmlDoc.onLoad = function (success) { mx.lang.Locale.onXMLLoad(success); mx.lang.Locale.callback.call(null, success); }; mx.lang.Locale.xmlDoc.load(mx.lang.Locale.xmlMap[v1][0]); } else { mx.lang.Locale.stringMap = mx.lang.Locale.stringMapList[v1]; if (mx.lang.Locale.callback) { mx.lang.Locale.callback.call(null, true); } } mx.lang.Locale.currentLang = v1; }; v1.onXMLLoad = function (success) { if (success == true) { delete mx.lang.Locale.stringMap; mx.lang.Locale.stringMap = new Object(); mx.lang.Locale.parseStringsXML(mx.lang.Locale.xmlDoc); if (mx.lang.Locale.stringMapList[mx.lang.Locale.currentLang] == undefined) { mx.lang.Locale.stringMapList[mx.lang.Locale.currentLang] = mx.lang.Locale.stringMap; } if (mx.lang.Locale.autoReplacment) { mx.lang.Locale.assignDelayedInstances(); } } }; v1.parseStringsXML = function (doc) { if (doc.childNodes.length > 0 && doc.childNodes[0].nodeName == 'xliff') { mx.lang.Locale.parseXLiff(doc.childNodes[0]); } }; v1.parseXLiff = function (node) { if (node.childNodes.length > 0 && node.childNodes[0].nodeName == 'file') { mx.lang.Locale.parseFile(node.childNodes[0]); } }; v1.parseFile = function (node) { if (node.childNodes.length > 1 && node.childNodes[1].nodeName == 'body') { mx.lang.Locale.parseBody(node.childNodes[1]); } }; v1.parseBody = function (node) { var v1 = 0; while (v1 < node.childNodes.length) { if (node.childNodes[v1].nodeName == 'trans-unit') { mx.lang.Locale.parseTransUnit(node.childNodes[v1]); } ++v1; } }; v1.parseTransUnit = function (node) { var v2 = node.attributes.resname; if (v2.length > 0 && node.childNodes.length > 0 && node.childNodes[0].nodeName == 'source') { var v1 = mx.lang.Locale.parseSource(node.childNodes[0]); if (v1.length > 0) { mx.lang.Locale.stringMap[v2] = v1; } } }; v1.parseSource = function (node) { if (node.childNodes.length > 0) { return node.childNodes[0].nodeValue; } return ''; }; v1.assignDelayedInstances = function () { var v1 = 0; while (v1 < mx.lang.Locale.delayedInstanceArray.length) { if (mx.lang.Locale.delayedInstanceArray[v1] != undefined) { var v3 = mx.lang.Locale.delayedInstanceArray[v1].inst; var v2 = mx.lang.Locale.delayedInstanceArray[v1].strID; v3.text = mx.lang.Locale.loadString(v2); } ++v1; } }; v1.xmlLang = System.capabilities.language; v1.xmlMap = new Object(); v1.stringMap = new Object(); v1.delayedInstanceArray = new Array(); v1.currentXMLMapIndex = -1; v1.autoReplacment = true; v1.stringMapList = new Object(); v1.addProperty('autoReplace', v1.__get__autoReplace, v1.__set__autoReplace); v1.addProperty('languageCodeArray', v1.__get__languageCodeArray, function () {}); v1.addProperty('stringIDArray', v1.__get__stringIDArray, function () {}); ASSetPropFlags(mx.lang.Locale.prototype, null, 1); } #endinitclip } frame 2 { stop(); } movieClip 150 { } movieClip 152 { } movieClip 155 { } movieClip 157 { } movieClip 159 { } movieClip 164 { } movieClip 169 { } movieClip 171 { } movieClip 175 YoudaGames { frame 1 { this.allowSkip = true; } instance of movieClip 150 { onClipEvent (load) { if (_global.youdagames != '' && _global.youdagames != undefined) { this.onRelease = function () { getURL(_global.youdagames, '_blank'); }; } this._width = _global.stage_w; this._height = _global.stage_h; var point = {'x': 0, 'y': 0}; this._parent.globalToLocal(point); this._x = point.x; this._y = point.y; } } frame 99 { _global.playNext(); stop(); } } frame 3 { stop(); } movieClip 179 { } movieClip 181 { } movieClip 185 { } movieClip 186 YoudaPreloader { instance of movieClip 146 { onClipEvent (load) { this._width = _global.stage_w; this._height = _global.stage_h; var point = {'x': 0, 'y': 0}; this._parent.globalToLocal(point); this._x = point.x; this._y = point.y; } } frame 2 { var loaded = 0; this.onEnterFrame = function () { if (_root.getBytesTotal() < 20) { return undefined; } loaded = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); if (loaded == 100) { loaded = undefined; this.onEnterFrame = undefined; play(); } else { this.youdapreloader.percentloaded_bar_mc._xscale = loaded; this.youdapreloader.loaded_txt.text = loaded + '%'; this.youdapreloader._visible = true; stop(); } }; stop(); } instance youdapreloader of movieClip 185 { onClipEvent (load) { this._visible = false; } } frame 6 { _global.playNext(); stop(); } } frame 4 { delete this.promoKeyListener; _root.stopAllSounds(); } movieClip 187 emptyMovie { } movieClip 192 { } movieClip 199 { frame 1 { stop(); } } movieClip 206 { frame 1 { stop(); } } movieClip 213 { frame 1 { stop(); } } movieClip 216 continue_new { } movieClip 217 GoalScreen { } movieClip 218 storkClip { } movieClip 221 upgradeDeliveryScreenMC { } movieClip 224 wishScreen { } movieClip 227 GatesClose { } movieClip 252 closeGates { frame 31 { var delivery = this.delivery; delivery.target.sndCtrl.stopSound(delivery.soundsId.gatesclose_snd); delivery.target.sndCtrl.playSound(delivery.soundsId.gatesclose_snd); } frame 52 { stop(); this._parent.delivery.endGame(); stop(); undefined; undefined; } } movieClip 255 RangText { frame 30 { this.removeMovieClip(); } } movieClip 260 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 263 main_Menu_Oblace { } movieClip 266 { } movieClip 269 { } movieClip 270 { } movieClip 450 { } movieClip 453 { } movieClip 456 { } movieClip 459 { } movieClip 462 { } movieClip 466 { } movieClip 482 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 58 { } frame 59 { this._parent.object.factory.Foodmaker.BrokeBottle(); } frame 76 { this._parent.object.factory.Foodmaker.BottleBroken(); this._parent.gotoAndStop(1); } } movieClip 483 { frame 1 { stop(); } frame 2 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 62 { this.factory.attachBottles(); delete onEnterFrame; } frame 63 { stop(); this.gotoAndStop(1); } frame 64 { stop(); } } movieClip 486 { } movieClip 487 { } movieClip 488 { frame 1 { stop(); } frame 2 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 62 { this.factory.attachBottles(); delete onEnterFrame; } frame 63 { stop(); this.gotoAndStop(1); } frame 64 { stop(); } } movieClip 491 { } movieClip 492 { } movieClip 493 { frame 1 { stop(); } frame 2 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 62 { this.factory.attachBottles(); delete onEnterFrame; } frame 63 { stop(); this.gotoAndStop(1); } frame 64 { stop(); } } movieClip 494 foodmaker_mc { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 496 { } movieClip 498 { } // unknown tag 88 length 195 movieClip 502 { } movieClip 506 { } movieClip 509 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 512 { } movieClip 514 { } movieClip 516 { } movieClip 517 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 518 { } movieClip 522 { } movieClip 524 { } movieClip 525 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 526 { } movieClip 528 { } movieClip 530 { } movieClip 531 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 532 { } movieClip 534 { } movieClip 542 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 547 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 552 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 557 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 558 chooseProfileScreen { } movieClip 561 star_zuto { } movieClip 563 slot1 { } movieClip 564 slot2 { } movieClip 566 slot3 { } movieClip 567 slot4 { } movieClip 568 slot5 { } movieClip 569 slot6 { } movieClip 570 slot7 { } movieClip 571 slot8 { } movieClip 572 slot9 { } movieClip 573 holder { } movieClip 574 Game { #initclip Object.registerClass('Game', Game); #endinitclip } movieClip 577 teleporte_box { } movieClip 590 { frame 1 { } frame 7 { this._parent.gotoAndStop(1); } } movieClip 591 Telep_Tube { frame 1 { stop(); } frame 2 { stop(); } } movieClip 594 sackSpot { } movieClip 623 { } movieClip 624 Slotswitch { frame 1 { stop(); } frame 10 { gotoAndStop(1); } frame 11 { stop(); } } movieClip 633 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 634 trkalca { } movieClip 635 fBackground { } movieClip 643 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 58 { this._parent.object.factory.Tube.callLaunch(); } } movieClip 644 Activation_btn { frame 1 { stop(); } frame 8 { this.gotoAndStop(1); } frame 9 { stop(); } frame 10 { stop(); } } movieClip 647 { } movieClip 648 Arrow { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 681 escSwitch { frame 1 { stop(); } frame 4 { stop(); } } movieClip 682 senki111 { } movieClip 685 trash_back { } movieClip 688 trash_front { } movieClip 691 toy1 { } movieClip 694 toy2 { } movieClip 698 { } movieClip 701 { } movieClip 705 { } movieClip 708 { } movieClip 711 { } movieClip 719 { } movieClip 726 { } movieClip 729 { } movieClip 731 { } movieClip 736 { } movieClip 739 { } movieClip 741 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 744 { } movieClip 747 { } movieClip 750 { } movieClip 752 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 753 { } movieClip 754 pauseScreen { } movieClip 757 { } movieClip 760 { } movieClip 764 { } movieClip 766 { } movieClip 768 { } movieClip 770 { } movieClip 778 { } movieClip 785 { } movieClip 788 { } movieClip 790 { } movieClip 791 optionsScreen { } movieClip 792 strengthMeter { frame 1 { stop(); } } movieClip 793 storkOblak { } movieClip 796 bottle { } movieClip 799 emptyBottle { } movieClip 804 toy_box { frame 1 { stop(); } frame 2 { stop(); } } movieClip 808 { } movieClip 811 house10 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 815 { } movieClip 818 house9 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 822 { } movieClip 825 house8 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 829 { } movieClip 832 house7 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 837 { } movieClip 840 house6 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 844 { } movieClip 847 house5 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 851 { } movieClip 854 house4 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 858 { } movieClip 861 house3 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 866 { } movieClip 869 house2 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 873 { } movieClip 876 house1 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 879 Prolet { } movieClip 883 ZenskoOblace { } movieClip 887 MaskoOblace { } movieClip 893 { frame 1 { stop(); } } movieClip 897 { frame 1 { stop(); } } movieClip 899 ZelenoOblace { frame 1 { stop(); } frame 2 { stop(); } } movieClip 901 { } movieClip 902 DeliverySackBoy4 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 907 DeliverySackBoy2 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 912 DeliverySackBoy1 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 913 DeliverySackBoy3 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 914 DeliverySackGirl4 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 919 DeliverySackGirl2 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 924 DeliverySackGirl1 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 925 DeliverySackGirl3 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 929 CrvenoOblace { } movieClip 932 toy3 { } movieClip 936 { } movieClip 939 { } movieClip 940 ParentsWishesTwins { frame 1 { stop(); } frame 2 { stop(); } } movieClip 945 { } movieClip 946 ParentsWishesGirl { frame 1 { stop(); } frame 2 { stop(); } } movieClip 951 { } movieClip 952 ParentsWishesBoy { frame 1 { stop(); } frame 2 { stop(); } } movieClip 955 { } movieClip 956 rot_spot { frame 29 { stop(); this.removeMovieClip(); } } movieClip 957 rot_teleport { frame 30 { stop(); this.removeMovieClip(); } } movieClip 1006 expolode_mc { frame 26 { this.removeMovieClip(); } } movieClip 1023 { frame 29 { this._parent.gotoAndStop(3); } } movieClip 1027 { frame 22 { this._parent.gotoAndStop(3); } } movieClip 1030 Blue_pink_indicator { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } movieClip 1036 { } movieClip 1037 StandStork00 { } movieClip 1040 StandStork01 { } movieClip 1043 StandStork02 { } movieClip 1046 StandStork03 { } movieClip 1049 StandStork10 { } movieClip 1051 StandStork11 { } movieClip 1053 StandStork12 { } movieClip 1055 StandStork13 { } movieClip 1058 StandStork20 { } movieClip 1060 StandStork21 { } movieClip 1062 StandStork22 { } movieClip 1064 StandStork23 { } movieClip 1067 StandStork30 { } movieClip 1069 StandStork31 { } movieClip 1071 StandStork32 { } movieClip 1073 StandStork33 { } movieClip 1074 StorkUpgrade { frame 1 { stop(); } } movieClip 1077 drvoprolet2 { } movieClip 1080 drvoprolet1 { } movieClip 1083 drvoprolet3 { } movieClip 1086 slotMashine { } movieClip 1087 postolje_za_sliders { } movieClip 1095 { } movieClip 1098 { } movieClip 1101 { } movieClip 1106 { } movieClip 1107 WetStork00 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1110 { } movieClip 1111 WetStork01 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1114 { } movieClip 1115 WetStork02 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1118 { } movieClip 1119 WetStork03 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1122 { } movieClip 1123 WetStork10 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1125 WetStork11 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1126 WetStork12 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1127 WetStork13 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1130 { } movieClip 1131 WetStork20 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1132 WetStork21 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1133 WetStork22 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1134 WetStork23 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1137 { } movieClip 1138 WetStork30 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1139 WetStork31 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1140 WetStork32 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1141 WetStork33 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 1144 Launcher_counter { } movieClip 1148 rot_spot_red1 { frame 22 { this.removeMovieClip(); } } movieClip 1151 { } movieClip 1152 rot_spot_red { frame 17 { this.removeMovieClip(); } } movieClip 1154 rot_teleport_red { frame 16 { this.removeMovieClip(); } } movieClip 1156 blekhart { frame 23 { this.removeMovieClip(); } } movieClip 1159 toolbar { } movieClip 1162 { } movieClip 1165 { } movieClip 1169 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 1171 { } movieClip 1173 { } movieClip 1174 { } movieClip 1177 { } movieClip 1179 { } movieClip 1180 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 1182 newUserPage_MC { frame 1 { Selection.setFocus(userName); userName.onKillFocus = function (newFocus) { _global.focusControl.isTextfieldFocusKilled = true; }; } } movieClip 1187 rainHelper { frame 1 { stop(); } } movieClip 1206 paricka { } movieClip 1208 Strkcence { } movieClip 1210 Strkce { } movieClip 1212 Strkot { } movieClip 1215 { } movieClip 1216 MapArrow { } movieClip 1219 { } movieClip 1220 { } movieClip 1226 popup { } movieClip 1229 { } movieClip 1232 { } movieClip 1271 { } movieClip 1272 popUpDoleDesno { } movieClip 1273 popUpDoleDEsnoOk { } movieClip 1274 popUpDoleDesno1 { } movieClip 1275 popUpDoleSrede { } movieClip 1276 popUpDoleDesno1_ok { } movieClip 1277 popUpDoleDesno1_bezStrelka { } movieClip 1278 popUpDoleLevo { } movieClip 1279 popUpDoleLevoOk { } movieClip 1280 popUpDoleLevo1 { } movieClip 1281 popUpDoleLevo1_ok { } movieClip 1282 popUpGoreDesno { } movieClip 1283 popUpGoreDesno1 { } movieClip 1284 popUpGoreLevo { } movieClip 1285 popUpGoreLevo1 { } movieClip 1286 popUpGoreLevo1_ok { } movieClip 1287 smal_lightninghelp { } movieClip 1288 srce2 { frame 35 { this.removeMovieClip(); } } movieClip 1291 smal_rainhelper { } movieClip 1292 smal_shalce { } movieClip 1293 blekhart2 { frame 23 { this.removeMovieClip(); } } movieClip 1301 { } movieClip 1302 { } movieClip 1305 { } movieClip 1356 StorkFlying00 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1363 StorkFlying01 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1368 StorkFlying02 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1371 StorkFlying03 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1386 StorkFlying10 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { trace('$$$$$$$ stork @@@@@@ ' + stork); stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1388 StorkFlying11 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { trace('$$$$$$$ stork @@@@@@ ' + stork); stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1389 StorkFlying12 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { trace('$$$$$$$ stork @@@@@@ ' + stork); stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1390 StorkFlying13 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { trace('$$$$$$$ stork @@@@@@ ' + stork); stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1403 StorkFlying20 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { trace('$$$$$$$ stork @@@@@@ ' + stork); stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1404 StorkFlying21 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { trace('$$$$$$$ stork @@@@@@ ' + stork); stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1405 StorkFlying22 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { trace('$$$$$$$ stork @@@@@@ ' + stork); stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1406 StorkFlying23 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { trace('$$$$$$$ stork @@@@@@ ' + stork); stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1419 StorkFlying30 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { trace('$$$$$$$ stork @@@@@@ ' + stork); stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1420 StorkFlying31 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { trace('$$$$$$$ stork @@@@@@ ' + stork); stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1421 StorkFlying32 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { trace('$$$$$$$ stork @@@@@@ ' + stork); stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1422 StorkFlying33 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } instance blue1attach of movieClip 1302 { } frame 10 { trace('$$$$$$$ stork @@@@@@ ' + stork); stork.delivery.target.sndCtrl.stopSound(stork.soundsId.storkwingflap_snd); stork.delivery.target.sndCtrl.playSound(stork.soundsId.storkwingflap_snd); } } movieClip 1425 { } movieClip 1426 blue01 { frame 1 { stop(); } frame 25 { this.removeMovieClip(); } } movieClip 1429 { } movieClip 1430 blue02 { frame 1 { stop(); } frame 25 { this.removeMovieClip(); } } movieClip 1433 { } movieClip 1434 blue03 { frame 1 { stop(); } frame 25 { this.removeMovieClip(); } } movieClip 1437 { } movieClip 1438 blue04 { frame 1 { stop(); } frame 25 { this.removeMovieClip(); } } movieClip 1441 { } movieClip 1442 pink01 { frame 1 { stop(); } frame 25 { this.removeMovieClip(); } } movieClip 1445 { } movieClip 1446 pink02 { frame 1 { stop(); } frame 25 { this.removeMovieClip(); } } movieClip 1449 { } movieClip 1450 pink03 { frame 1 { stop(); } frame 25 { this.removeMovieClip(); } } movieClip 1453 { } movieClip 1454 pink04 { frame 1 { stop(); } frame 25 { this.removeMovieClip(); } } movieClip 1455 { } movieClip 1458 { } movieClip 1459 { } movieClip 1460 AddRank { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 95 { delete this.onEnterFrame; } frame 95 { this.removeMovieClip(); } } movieClip 1463 TopGun { } movieClip 1470 { } movieClip 1471 { } movieClip 1472 { frame 40 { gotoAndPlay(1); } frame 50 { stop(); } } movieClip 1473 addRang2 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 23 { if (this.CurentPopUp != undefined) { stop(); } } frame 24 { trace('HC ' + this.hc); trace('HC ' + this); var f = new utils.Fly(this); trace('ffffffffff ' + f); f.flyTo(626, 70); this.levelTemp.hc = this; } instance txtClip of movieClip 1472 { onClipEvent (load) { } } frame 34 { delete this.onEnterFrame; } frame 34 { stop(); } } movieClip 1476 general { } movieClip 1479 { } movieClip 1480 { } movieClip 1481 LoseRank { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 95 { delete this.onEnterFrame; } frame 95 { this.removeMovieClip(); } } movieClip 1484 officer { } movieClip 1485 fadeOutRank { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 70 { delete this.onEnterFrame; } frame 70 { this.removeMovieClip(); } } movieClip 1486 FadeInRank { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 1 { } frame 70 { delete this.onEnterFrame; } frame 70 { this.removeMovieClip(); } } movieClip 1489 commander { } movieClip 1492 captain { } movieClip 1495 Aeronaut { } movieClip 1498 Ace { } movieClip 1506 { } movieClip 1507 { } movieClip 1508 { } movieClip 1555 StorkWithBags00 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 12 { stop(); } frame 24 { stop(); } } movieClip 1558 StorkWithBags01 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 24 { stop(); } } movieClip 1561 StorkWithBags02 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 24 { stop(); } } movieClip 1564 StorkWithBags03 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 24 { stop(); } } movieClip 1567 StorkWithBags10 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 24 { stop(); } } movieClip 1568 StorkWithBags11 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 24 { stop(); } } movieClip 1569 StorkWithBags12 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 24 { stop(); } } movieClip 1570 StorkWithBags13 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 24 { stop(); } } movieClip 1573 StorkWithBags20 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 25 { stop(); } } movieClip 1574 StorkWithBags21 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 24 { stop(); } } movieClip 1575 StorkWithBags22 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 24 { stop(); } } movieClip 1576 StorkWithBags23 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 24 { stop(); } } movieClip 1579 StorkWithBags30 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 24 { stop(); } } movieClip 1580 StorkWithBags31 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 24 { stop(); } } movieClip 1581 StorkWithBags32 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 24 { stop(); } } movieClip 1582 StorkWithBags33 { frame 1 { trace(' this.stork.maxBabyCare ' + this.stork.maxBabyCare); } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 1 { } frame 7 { if (this.stork.maxBabyCare == 4) { stop(); } } frame 8 { if (this.stork.maxBabyCare == 3) { stop(); } } frame 9 { if (this.stork.maxBabyCare == 2) { stop(); } } frame 10 { if (this.stork.maxBabyCare == 1) { stop(); } } frame 24 { stop(); } } movieClip 1585 cvorplavaflip { } movieClip 1587 cvorplavanormal { } movieClip 1590 cvorrozevaflip { } movieClip 1592 cvorrozevanormal { } movieClip 1603 plavaflip { frame 1 { stop(); } } movieClip 1609 plavanormal { frame 1 { stop(); } } movieClip 1612 rozevaflip { frame 1 { stop(); } } movieClip 1614 rozevanormal { frame 1 { stop(); } } movieClip 1679 { } movieClip 1682 izgubuvanje { frame 25 { this.removeMovieClip(); } } movieClip 1692 perduvi { frame 1 { gotoAndPlay(8); } frame 45 { this.removeMovieClip(); } } movieClip 1693 oblace { frame 18 { this.removeMovieClip(); } } movieClip 1704 storkBackHome { frame 8 { this.removeMovieClip(); } } movieClip 1709 doluStrkBack { frame 3 { this.removeMovieClip(); } } movieClip 1789 Tired00 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1793 { } movieClip 1805 Tired01 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1819 Tired02 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1834 Tired03 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1859 Tired10 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1860 Tired11 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1861 Tired12 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1862 Tired13 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1887 Tired20 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1888 Tired21 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1889 Tired22 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1890 Tired23 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1915 Tired30 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1916 Tired31 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1917 Tired32 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1918 Tired33 { frame 1 { var paused = false; this.onEnterFrame = function () { if (this.Level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.Level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 15 { if (this.Stork.TiredTime == 0) { trace('NOW 2'); this.gotoAndPlay(34); } } frame 33 { gotoAndPlay(15); } frame 34 { delete this.onEnterFrame; } frame 47 { stop(); } } movieClip 1921 { } movieClip 1922 { } movieClip 1925 { } movieClip 1926 RainCloud { frame 30 { stop(); } } movieClip 1929 Chadorce { } movieClip 1930 { } movieClip 1931 sparkle { frame 1 { var sp = this.empty; } } movieClip 1934 cros { } movieClip 1938 { } movieClip 1941 { } movieClip 1942 makeTwins { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.factory.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.factory.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 75 { trace('this.factory ' + this.factory); trace('this.what ' + this.what); trace('this.baby ' + this.baby); this.factory.MakeTwins(this.what, this.baby); } frame 78 { this.removeMovieClip(); } } movieClip 1944 storkLetaDozd { } movieClip 2016 horn { frame 78 { stop(); } } movieClip 2019 { } movieClip 2022 { } movieClip 2025 { } movieClip 2028 { } movieClip 2031 { } movieClip 2032 { } movieClip 2033 ready_anim { frame 26 { stop(); this.removeMovieClip(); } } movieClip 2089 { frame 1 { this._parent.object.Horn._visible = false; this._parent.object.PackingStork._visible = false; } frame 78 { stop(); this._parent.object.Horn._visible = true; this._parent.object.PackingStork._visible = true; this._parent.object.FirstPopUp(); this._parent.removeMovieClip(); } } movieClip 2090 start_sequence_factory { } movieClip 2091 { frame 1 { this._parent.object.Horn._visible = false; this._parent.object.PackingStork._visible = false; } frame 78 { stop(); this._parent.object.Horn._visible = true; this._parent.object.PackingStork._visible = true; this._parent.object.endGame2(); this._parent.removeMovieClip(); } } movieClip 2092 end_sequence_factory { } movieClip 2100 { } movieClip 2101 { frame 1 { stop(); } frame 40 { this._parent.gotoAndStop('puno'); } } movieClip 2104 { } movieClip 2113 { } movieClip 2114 quadriplet { frame 1 { stop(); } frame 2 { stop(); var fo = new Object(); fo.x = 12.5; fo.y = 12.5; } } movieClip 2117 { } movieClip 2124 { } movieClip 2125 triplet { frame 1 { stop(); } frame 2 { stop(); var fo = new Object(); fo.x = 12.5; fo.y = 12.5; } } movieClip 2128 { } movieClip 2135 { } movieClip 2136 twin { frame 1 { stop(); } frame 2 { stop(); var fo = new Object(); fo.x = 12.5; fo.y = 12.5; } } movieClip 2139 { } movieClip 2144 tabla1 { } movieClip 2145 { } movieClip 2165 { frame 1 { stop(); } frame 2 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxCounter == 1) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 5 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxCounter == 2) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 8 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxCounter == 3) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 11 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxCounter == 4) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 14 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxCounter == 5) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 17 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxCounter == 6) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 20 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxCounter == 7) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 23 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxCounter == 8) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 26 { stop(); utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } frame 26 { stop(); } } movieClip 2183 { frame 1 { stop(); } frame 2 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); trace('this._parent ' + this._parent); trace('this._parent.game ' + this._parent.game); trace('this._parent.game.maxRang ' + this._parent.game.maxRang); if (this._parent.game.maxRang <= 0) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 5 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxRang <= 34) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 8 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxRang <= 54) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 11 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxRang <= 74) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 14 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxRang <= 94) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 17 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxRang <= 114) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 20 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxRang <= 134) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 23 { utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); if (this._parent.game.maxRang <= 154) { stop(); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } else { this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophyspeed_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophyspeed_snd); } } frame 26 { stop(); utils.Delegate.callDelayed(this._parent, this._parent.setGlow, 500, this, 7); this._parent.game.sndCtrl.stopSound(this._parent.game.soundsId.trophylevelpoints_snd); this._parent.game.sndCtrl.playSound(this._parent.game.soundsId.trophylevelpoints_snd); } } movieClip 2184 tabla2 { frame 1 { stop(); } frame 1 { function setGlow(mc, blur) { trace('!@#'); var color = 16777215; var alpha = 0.9; var blurX = 0; var blurY = 0; var strength = 1; var quality = 3; var inner = false; var knockout = false; var sign = 1; mc.onEnterFrame = function () { if (blurX >= blur) { sign = -1; } blurX += sign * 3; blurY += sign * 3; var v3 = new flash.filters.GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout); var v2 = new Array(); v2.push(v3); this.filters = v2; if (blurX <= 0) { delete this.onEnterFrame; } }; } } frame 2 { stop(); } } movieClip 2187 { } movieClip 2209 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } } movieClip 2212 { } movieClip 2215 { } movieClip 2217 { } movieClip 2218 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 2220 { } movieClip 2222 { } movieClip 2223 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 2243 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } } movieClip 2244 { } movieClip 2247 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2249 displClip { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2250 { } movieClip 2251 CloudLR_in { frame 1 { stop(); } frame 14 { stop(); this.toClip(); } } movieClip 2252 CloudLR_out { frame 1 { stop(); } frame 10 { stop(); this.removeClip(); } } movieClip 2253 CloudUD_in { frame 1 { stop(); } frame 11 { stop(); this.toClip(); } } movieClip 2254 CloudDU_out { frame 1 { stop(); } frame 10 { stop(); this.removeClip(); } } movieClip 2255 Cloud_scale_IN { frame 1 { stop(); } frame 16 { stop(); this.toClip(); } } movieClip 2256 Cloud_scale_OUT { frame 1 { stop(); } frame 9 { stop(); this.removeClip(); } } movieClip 2279 { } movieClip 2280 { } movieClip 2281 { } movieClip 2282 medal { frame 6 { var cx = 0; var cy = 0; var fr = new MesgAnim.Fireworks(25, 'ray'); fr.changeSparkleProperties(11.1, 3600); fr.setProperties(this, cx, cy); fr.startFireworks(); this.game.sndCtrl.stopSound(this.game.soundsId.medalwon_snd); this.game.sndCtrl.playSound(this.game.soundsId.medalwon_snd); } frame 35 { stop(); } } movieClip 2394 Storksadcrying { } movieClip 2425 { } movieClip 2426 { } movieClip 2488 StorkMedal { frame 97 { gotoAndPlay(6); } } movieClip 2521 strkaverage { } movieClip 2524 { } movieClip 2553 { frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } frame 22 { stop(); } frame 23 { stop(); } frame 24 { stop(); } frame 25 { stop(); } frame 26 { stop(); } frame 27 { stop(); } frame 28 { stop(); } } movieClip 2594 { frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } frame 22 { stop(); } frame 23 { stop(); } frame 24 { stop(); } frame 25 { stop(); } frame 26 { stop(); } frame 27 { stop(); } frame 28 { stop(); } } movieClip 2595 ExplainClouds { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2600 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2620 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } } movieClip 2642 { } movieClip 2655 { } movieClip 2677 objForUpgrade { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } } movieClip 2682 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2687 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2705 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } } movieClip 2706 upgrade_popUp { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2710 { } movieClip 2713 { } movieClip 2714 { } movieClip 2719 upgradeCleaningStork { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 2722 { } movieClip 2724 { } movieClip 2727 { } movieClip 2731 { } movieClip 2740 upgrateKadi { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 2743 { } movieClip 2745 { } movieClip 2753 { } movieClip 2754 { } movieClip 2762 { } movieClip 2785 { } movieClip 2786 { } movieClip 2789 upgrateKrevetcinja { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 2792 { } movieClip 2795 { } movieClip 2798 { } movieClip 2799 upgrateFoodmakers { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 2802 { } movieClip 2805 { } movieClip 2808 { } movieClip 2809 upgrateToyBox { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 2812 upgradeScreen_mc { } movieClip 2819 { } movieClip 2822 { } movieClip 2825 { } movieClip 2828 { } movieClip 2831 { } movieClip 2832 { frame 1 { stop(); } } movieClip 2835 { } movieClip 2838 { } movieClip 2841 { } movieClip 2844 { } movieClip 2845 { frame 1 { _global.rolling = true; } frame 38 { stop(); } } movieClip 2848 { } movieClip 2851 { } movieClip 2854 { } movieClip 2857 { } movieClip 2858 { frame 1 { _global.rolling = true; } frame 38 { stop(); } } movieClip 2861 { } movieClip 2864 { } movieClip 2867 { } movieClip 2870 { } movieClip 2871 { frame 1 { _global.rolling = true; } frame 38 { stop(); } } movieClip 2874 { } movieClip 2877 { } movieClip 2880 { } movieClip 2883 { } movieClip 2886 { } movieClip 2889 { } movieClip 2892 { } movieClip 2895 { } movieClip 2896 { frame 1 { _global.rolling = true; } frame 70 { stop(); } } movieClip 2897 { frame 1 { _global.rolling = true; } frame 70 { stop(); } } movieClip 2898 { frame 1 { _global.rolling = true; } frame 33 { stop(); _global.rolling = false; this._parent.factory.ChackForNexBaby(); } } movieClip 2899 { frame 1 { _global.rolling = true; } frame 33 { stop(); _global.rolling = false; this._parent.factory.ChackForNexBaby(); } } movieClip 2900 { frame 1 { _global.rolling = true; } frame 70 { stop(); } } movieClip 2901 { frame 1 { _global.rolling = true; } frame 70 { stop(); } } movieClip 2902 { frame 1 { _global.rolling = true; } frame 70 { stop(); } } movieClip 2903 { frame 1 { _global.rolling = true; } frame 70 { stop(); } } movieClip 2906 { } movieClip 2909 { } movieClip 2912 { } movieClip 2915 { } movieClip 2916 { frame 1 { _global.rolling = true; } frame 33 { stop(); } } movieClip 2917 { frame 1 { _global.rolling = true; } frame 33 { stop(); } } movieClip 2918 rollingAnim { frame 1 { stop(); } frame 2 { stop(); this.wait.gotoAndPlay(1); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } } movieClip 3059 lenta { frame 1 { this.factory.setSlotsCoord(); } } movieClip 3105 { } movieClip 3106 perduvi1 { frame 30 { stop(); this.removeMovieClip(); } } movieClip 3107 popUpxxx { } movieClip 3108 { } movieClip 3109 numbers { frame 25 { this.swapDepths(48000); this.removeMovieClip(); } } movieClip 3112 { } movieClip 3113 sacksReturned { frame 25 { this.swapDepths(48000); this.removeMovieClip(); } } movieClip 3116 { } movieClip 3117 platformOccupied { frame 25 { this.swapDepths(48000); this.removeMovieClip(); } } movieClip 3160 popUpTextFactory { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } frame 22 { stop(); } frame 23 { stop(); } frame 24 { stop(); } frame 25 { stop(); } frame 26 { stop(); } frame 27 { stop(); } frame 28 { stop(); } frame 29 { stop(); } frame 30 { stop(); } frame 31 { stop(); } frame 32 { stop(); } frame 33 { stop(); } frame 34 { stop(); } frame 35 { stop(); } frame 36 { stop(); } frame 37 { stop(); } frame 38 { stop(); } frame 39 { stop(); } frame 40 { stop(); } frame 41 { stop(); } frame 42 { stop(); } } movieClip 3163 black_background { } movieClip 3167 { frame 1 { stop(); } } movieClip 3169 { frame 1 { stop(); } } movieClip 3173 { } movieClip 3176 { } movieClip 3177 { frame 1 { stop(); } } movieClip 3179 { } movieClip 3181 { } movieClip 3182 { frame 1 { stop(); } } movieClip 3183 yes-no { } movieClip 3184 { } movieClip 3185 { } movieClip 3195 { } movieClip 3196 { } movieClip 3197 { frame 21 { stop(); } } movieClip 3198 trofejAnimation { frame 19 { stop(); } frame 81 { play(); } frame 103 { stop(); } } movieClip 3203 { } movieClip 3204 { frame 16 { stop(); } } movieClip 3205 TrofejQueenOfHarts { } movieClip 3208 TrofejComboFreak { } movieClip 3211 TrofejComboHolic { } movieClip 3214 TrofejTwinMaster { } movieClip 3217 TrofejComboExpert { } movieClip 3220 TekstComboExpert { } movieClip 3223 TekstComboFreak { } movieClip 3226 TekstComboHolick { } movieClip 3229 TekstQueeOfHearts { } movieClip 3232 TekstTwinMaster { } movieClip 3235 { } movieClip 3238 { } movieClip 3243 { } movieClip 3248 { } movieClip 3251 { } movieClip 3254 { } movieClip 3257 { } movieClip 3258 { } movieClip 3262 { } movieClip 3264 { } movieClip 3267 { } movieClip 3269 { } movieClip 3272 { frame 80 { gotoAndPlay(30); } frame 80 { gotoAndPlay(30); } frame 81 { play(); } frame 104 { stop(); } } movieClip 3291 { } movieClip 3310 { } movieClip 3329 { } movieClip 3348 { } movieClip 3367 { } movieClip 3386 { } movieClip 3401 { } movieClip 3402 { frame 20 { stop(); } frame 81 { play(); } frame 105 { trace('izbrisi anim'); stop(); this._parent.removeMovieClip(); } } movieClip 3405 { } movieClip 3410 { frame 1 { stop(); } } movieClip 3415 { frame 1 { stop(); } } movieClip 3420 { frame 1 { stop(); } } movieClip 3421 { } movieClip 3422 CelosnaTrofejAnimacija { } movieClip 3423 { } movieClip 3425 allPop { } movieClip 3428 drvo2prolet { } movieClip 3431 drvo3prolet { } movieClip 3435 EscapeSwitch_upg { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 3438 { } movieClip 3439 strelkicka { } button 3441 { on (press) { trace(' '); } on (release) { trace(' '); } on (rollOver) { trace(' '); } } movieClip 3445 { frame 1 { stop(); } } movieClip 3447 { frame 1 { stop(); } } movieClip 3450 { } movieClip 3452 { } movieClip 3453 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 3454 { } movieClip 3455 { } movieClip 3456 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 3461 exitPopUP { } movieClip 3463 { frame 1 { stop(); } } movieClip 3465 { frame 1 { stop(); } } movieClip 3466 quitPopUP { } movieClip 3474 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 3481 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 3484 { } movieClip 3485 { } movieClip 3486 strkStrelki { frame 10 { stop(); } } movieClip 3492 { } movieClip 3503 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } } movieClip 3557 { } movieClip 3563 { } movieClip 3566 { } movieClip 3569 { } movieClip 3570 Mapa { frame 1 { trace('this.popUp' + this.popUp); trace('this.levelNum ' + this.levelNum); var i = random(this.levelNum * 2) + 1; if (i > 25) { i = 25; } trace('random brojot e ' + i); this.popUp.gotoAndStop(i); } } movieClip 3573 { } movieClip 3574 ImTired { frame 25 { this.swapDepths(48000); this.removeMovieClip(); } } movieClip 3577 { } movieClip 3578 ImFrozen { frame 25 { this.swapDepths(48000); this.removeMovieClip(); } } movieClip 3581 { } movieClip 3582 ImSmoked { frame 25 { this.swapDepths(48000); this.removeMovieClip(); } } movieClip 3585 { } movieClip 3586 ImWet { frame 25 { this.swapDepths(48000); this.removeMovieClip(); } } movieClip 3589 { } movieClip 3590 ImFullRed { frame 25 { this.swapDepths(48000); this.removeMovieClip(); } } movieClip 3593 { } movieClip 3594 ImFullBlue { frame 25 { this.swapDepths(48000); this.removeMovieClip(); } } movieClip 3597 { } movieClip 3598 TooMuch { frame 25 { this.swapDepths(48000); this.removeMovieClip(); } } movieClip 3601 { } movieClip 3602 YesSir { frame 25 { this.swapDepths(48000); this.removeMovieClip(); } } movieClip 3605 { } movieClip 3606 gimmyMore { frame 25 { this.swapDepths(48000); this.removeMovieClip(); } } movieClip 3609 { } movieClip 3610 ImHit { frame 25 { this.swapDepths(48000); this.removeMovieClip(); } } movieClip 3623 { } movieClip 3626 { } movieClip 3627 goalReached { frame 30 { stop(); this.removeMovieClip(); } } movieClip 3635 { } movieClip 3636 expertReached { frame 30 { stop(); this.removeMovieClip(); } } movieClip 3639 { } movieClip 3642 { } movieClip 3645 { } movieClip 3646 { frame 32 { stop(); } frame 44 { stop(); } } movieClip 3647 { } movieClip 3648 { frame 1 { if (_global.companylogo !== 'coAffiliate') { this.gotoAndStop(2); } stop(); } frame 2 { if (_global.coAffiliateLink != '' && _global.coAffiliateLink != undefined) { this._parent.onRelease = function () { getURL(_global.coAffiliateLink, '_blank'); }; } var basePath = ''; if (mdm.Application.path) { basePath = mdm.Application.path; } var logoImage = basePath + 'logo_affiliate_small.jpg'; var checkFile = new LoadVars(); this._visible = false; checkFile.obj = this; checkFile.onLoad = function (success) { if (success) { this.obj.logo_holder_mc.loadMovie(logoImage); this.obj.onEnterFrame = function () { if (this.logo_holder_mc.getBytesLoaded() == this.logo_holder_mc.getBytesTotal() && this.logo_holder_mc.getBytesTotal() > 4) { if (!this.logo_holder_mc._width) { return undefined; } this.logo_holder_mc._y -= this.logo_holder_mc._height; this.logo_holder_mc._x -= this.logo_holder_mc._width; this._visible = true; delete this.onEnterFrame; } }; } else { this.obj.gotoAndStop('png'); } }; checkFile.load(logoImage); stop(); } frame 3 { if (_global.coAffiliateLink != '' && _global.coAffiliateLink != undefined) { this._parent.onRelease = function () { getURL(_global.coAffiliateLink, '_blank'); }; } var basePath = ''; if (mdm.Application.path) { basePath = mdm.Application.path; } var logoImage = basePath + 'logo_affiliate_small.png'; var checkFile = new LoadVars(); this._visible = false; checkFile.obj = this; checkFile.onLoad = function (success) { if (success) { this.obj.logo_holder_mc.loadMovie(logoImage); this.obj.onEnterFrame = function () { if (this.logo_holder_mc.getBytesLoaded() == this.logo_holder_mc.getBytesTotal() && this.logo_holder_mc.getBytesTotal() > 4) { if (!this.logo_holder_mc._width) { return undefined; } this.logo_holder_mc._y -= this.logo_holder_mc._height; this.logo_holder_mc._x -= this.logo_holder_mc._width; this._visible = true; delete this.onEnterFrame; } }; } else {} }; checkFile.load(logoImage); stop(); } } movieClip 3656 { } movieClip 3659 { } movieClip 3660 { } movieClip 3663 { } movieClip 3665 { } movieClip 3667 { } movieClip 3669 { } movieClip 3671 { } movieClip 3695 { } movieClip 3697 { frame 27 { stop(); } } movieClip 3704 { } movieClip 3706 { } movieClip 3708 { } movieClip 3709 { } movieClip 3714 { } movieClip 3716 { } movieClip 3719 { } movieClip 3721 { } movieClip 3723 { } movieClip 3725 { } movieClip 3726 { } movieClip 3727 { } movieClip 3728 { } movieClip 3729 { } movieClip 3730 { } movieClip 3731 { } movieClip 3732 { } movieClip 3733 { } // unknown tag 88 length 40 movieClip 3744 { } movieClip 3745 { } movieClip 3761 { } movieClip 3764 { } movieClip 3765 { } movieClip 3766 { frame 1 { if (_global.coAffiliateLink != '' && _global.coAffiliateLink != undefined) { this._parent.onRelease = function () { getURL(_global.coAffiliateLink, '_blank'); }; } var basePath = ''; if (mdm.Application.path) { basePath = mdm.Application.path; } var logoImage = basePath + 'logo_affiliate_small.jpg'; var checkFile = new LoadVars(); this._visible = false; checkFile.obj = this; checkFile.onLoad = function (success) { if (success) { this.obj.logo_holder_mc.loadMovie(logoImage); this.obj.onEnterFrame = function () { if (this.logo_holder_mc.getBytesLoaded() == this.logo_holder_mc.getBytesTotal() && this.logo_holder_mc.getBytesTotal() > 4) { if (!this.logo_holder_mc._width) { return undefined; } this.logo_holder_mc._x -= this.logo_holder_mc._width; this._visible = true; delete this.onEnterFrame; } }; } else { this.obj.gotoAndStop('png'); } }; checkFile.load(logoImage); stop(); } frame 2 { if (_global.coAffiliateLink != '' && _global.coAffiliateLink != undefined) { this._parent.onRelease = function () { getURL(_global.coAffiliateLink, '_blank'); }; } var basePath = ''; if (mdm.Application.path) { basePath = mdm.Application.path; } var logoImage = basePath + 'logo_affiliate_small.png'; var checkFile = new LoadVars(); this._visible = false; checkFile.obj = this; checkFile.onLoad = function (success) { if (success) { this.obj.logo_holder_mc.loadMovie(logoImage); this.obj.onEnterFrame = function () { if (this.logo_holder_mc.getBytesLoaded() == this.logo_holder_mc.getBytesTotal() && this.logo_holder_mc.getBytesTotal() > 4) { if (!this.logo_holder_mc._width) { return undefined; } this.logo_holder_mc._x -= this.logo_holder_mc._width; this._visible = true; delete this.onEnterFrame; } }; } else {} }; checkFile.load(logoImage); stop(); } } movieClip 3768 { } movieClip 3769 { instance of movieClip 3768 { onClipEvent (release) { getURL(_root.localization_url1, '_blank'); } } } movieClip 3772 { } movieClip 3775 { } movieClip 3778 { } movieClip 3780 { } movieClip 3781 { } movieClip 3783 { } movieClip 3784 { } movieClip 3785 { instance of movieClip 3781 { onClipEvent (release) { getURL(_root.localization_url1, '_blank'); } } } movieClip 3787 { } movieClip 3788 { } movieClip 3790 { } movieClip 3791 { } movieClip 3792 { instance of movieClip 3788 { onClipEvent (release) { getURL(_root.localization_url1, '_blank'); } } } movieClip 3796 { } movieClip 3797 { } movieClip 3800 { } movieClip 3803 { } movieClip 3806 { } movieClip 3809 { } movieClip 3810 { frame 1 { stop(); } instance of movieClip 3785 { onClipEvent (release) { getURL('http://www.jeux.fr/moregames/?utm_source=brandedgames&utm_medium=youda_games', '_blank'); } } instance of movieClip 3792 { onClipEvent (release) { getURL('http://www.jetztspielen.de/moregames/?utm_source=brandedgames&utm_medium=youda_games', '_blank'); } } } movieClip 3811 { instance of movieClip 3810 { onClipEvent (load) { if (!_global.companylogo || _global.companylogo == '') { return undefined; } this.gotoAndStop(_global.companylogo.toLowerCase()); if (_global.moregamelink != '' && _global.moregamelink != undefined && _global.companylogo !== 'coAffiliate') { this.onRelease = function () { this.getURL(_global.moregamelink, '_blank'); }; } } } } movieClip 3813 { } movieClip 3814 { instance of movieClip 3813 { onClipEvent (load) { if (_global.youdagames != '' && _global.youdagames != undefined) { this.onRelease = function () { getURL(_global.youdagames, '_blank'); }; } } } } movieClip 3819 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 3822 { frame 39 { stop(); } frame 55 { stop(); } } movieClip 3827 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 3830 { frame 39 { stop(); } frame 55 { stop(); } } movieClip 3835 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 3838 { frame 39 { stop(); } frame 55 { stop(); } } movieClip 3843 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 3846 { frame 39 { stop(); } frame 55 { stop(); } } movieClip 3851 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 3854 { frame 39 { stop(); } frame 55 { stop(); } } movieClip 3859 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 3862 { frame 39 { stop(); } frame 55 { stop(); } } movieClip 3868 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 3869 { frame 39 { stop(); } frame 55 { stop(); } } movieClip 3874 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 3877 { frame 39 { stop(); } frame 55 { stop(); } } movieClip 3882 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 3885 { frame 39 { stop(); } frame 54 { this._parent.screenHolder.showMap(); } frame 55 { stop(); } } movieClip 3886 loginPage_MC { frame 1 { if (_global.highscorelink == '' || _global.highscorelink == undefined) { this.highscore._visible = false; } if (_global.moregamelink == '' || _global.moregamelink == undefined) { this.more_games._visible = false; } } instance exit of movieClip 3830 { onClipEvent (load) { if (_url.lastIndexOf('.swf') !== -1) { this._visible = false; } } } } movieClip 3890 { } movieClip 3892 { } movieClip 3893 Level_buttonce { } movieClip 3942 srce_twins { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.factory.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.factory.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 24 { this.removeMovieClip(); } } movieClip 3987 srce { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.factory.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.factory.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 22 { this.removeMovieClip(); } } movieClip 3994 kljuc { frame 26 { stop(); this.swapDepths(63131); this.removeMovieClip(); } } movieClip 3999 truba { frame 10 { stop(); this.swapDepths(63131); this.removeMovieClip(); } } movieClip 4002 { } movieClip 4007 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4012 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4017 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4022 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4027 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4032 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4037 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4042 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4047 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4052 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4057 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4062 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4067 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4072 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4077 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4082 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4099 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } } movieClip 4100 levelInfoScreen_mc { frame 1 { trophyPopUp.swapDepths(100); } } movieClip 4109 mousePointer { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 4208 { frame 1 { stop(); trace('prv frame'); } frame 2 { trace('take baby'); } frame 4 { stop(); trace('frame 4'); } frame 5 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 5 { trace('BANJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJ'); play(); } frame 84 { this._parent.object.bathBabyEnd(); delete this.onEnterFrame; } frame 85 { stop(); trace('stop na banjaj'); } frame 86 { trace('give baby'); } } movieClip 4293 { frame 1 { stop(); } frame 4 { stop(); } frame 5 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 5 { play(); } frame 60 { this._parent.object.bathBabyEnd(); delete this.onEnterFrame; } frame 61 { stop(); } } movieClip 4294 bathFront { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 4324 { frame 1 { cframe = this._currentframe; delete this.onEnterFrame; } frame 1 { stop(); } frame 2 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 4326 { frame 1 { cframe = this._currentframe; } frame 1 { stop(); delete this.onEnterFrame; } frame 1 { stop(); } frame 2 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 4327 bathBack { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 4354 { } movieClip 4555 { frame 1 { stop(); } frame 1 { } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } frame 22 { stop(); } frame 23 { stop(); } frame 24 { stop(); } frame 24 { } frame 24 { stop(); this._parent.sack.packingAnim.stopAnimation(); this._parent.gotoAndStop('stand'); } } movieClip 4596 { frame 1 { stop(); } frame 1 { } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } frame 22 { stop(); } frame 23 { stop(); } frame 24 { stop(); } frame 24 { } frame 24 { stop(); this._parent.sack.packingAnim.stopAnimation(); this._parent.gotoAndStop('stand'); } } movieClip 4611 { frame 33 { stop(); } } movieClip 4633 { frame 32 { stop(); } } movieClip 4634 packingStork { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 4635 { } movieClip 4636 HolderClip { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } instance txtClip of movieClip 4635 { onClipEvent (load) { } } frame 15 { stop(); } } movieClip 4663 { frame 1 { stop(); } } movieClip 4664 { frame 1 { stop(); } } movieClip 4670 { } movieClip 4671 { frame 1 { stop(); } } movieClip 4674 { } movieClip 4675 { frame 1 { stop(); } } movieClip 4679 { frame 1 { function setMaleNum(num) { maleNum.gotoAndStop(num + 1); blue.gotoAndStop(num * 2 + 1); } function setFemaleNum(num) { femaleNum.gotoAndStop(num + 1); red.gotoAndStop(num * 2 + 1); } _global.launcher = this; var param = _global.provider.getParameters(); var mnum = param[0]; var fnum = param[1]; setMaleNum(mnum); setFemaleNum(fnum); } } movieClip 4680 { } movieClip 4681 { } movieClip 4710 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent.factory.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent.factory.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 25 { this._parent.gotoAndStop(1); } } movieClip 4711 { } movieClip 4712 launcher { frame 1 { stop(); } } movieClip 4716 { } movieClip 4717 awesome { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 29 { stop(); this.removeMovieClip(); } } movieClip 4719 { } movieClip 4722 { } movieClip 4723 genius { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 22 { stop(); this.removeMovieClip(); } } movieClip 4726 { } movieClip 4729 { } movieClip 4732 { } movieClip 4735 { } movieClip 4738 { } movieClip 4741 { } movieClip 4744 { } movieClip 4751 { } movieClip 4754 great { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 29 { stop(); this.removeMovieClip(); } } movieClip 4757 { } movieClip 4782 { } movieClip 4783 { } movieClip 4784 { } movieClip 4785 toHot { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 39 { stop(); this.removeMovieClip(); } } movieClip 4788 { } movieClip 4819 wow { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 26 { stop(); this.removeMovieClip(); } } movieClip 4822 { } movieClip 4823 youAreFast { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this.object.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this.object.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 29 { stop(); this.removeMovieClip(); } } movieClip 4829 towel { frame 1 { stop(); } frame 2 { stop(); } } movieClip 4874 { } movieClip 4895 jack { frame 1 { stop(); } frame 21 { this.gotoAndStop(1); } } movieClip 4898 { } movieClip 4901 { } movieClip 4902 bed1back { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 4907 { } movieClip 4912 { } movieClip 4913 bed1front { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 4918 { } movieClip 4920 { } movieClip 4922 { } movieClip 4923 cs1stand { instance strkArea1 of movieClip 4918 { onClipEvent (load) { } } } movieClip 4926 { } movieClip 4929 { } movieClip 4932 { } movieClip 4935 { } movieClip 4938 { } movieClip 4941 { } movieClip 4944 { } movieClip 4945 { } movieClip 4948 { } movieClip 4951 { } movieClip 4954 { } movieClip 4957 { } movieClip 4958 { } movieClip 4959 AnimationBlimp { frame 25 { stop(); this.removeMovieClip(); } } movieClip 4962 { } movieClip 4965 { } movieClip 4966 levelCleared { frame 25 { stop(); var centers = new Array(); var letnum = 12; var i = 1; while (i <= letnum) { var cx = this['b' + i]._x + this['b' + i]._width / 2; var cy = this['b' + i]._y + this['b' + i]._height / 2; centers[i] = [cx, cy]; ++i; } var i = 1; while (i <= letnum) { var fr = new MesgAnim.Fireworks(6, 'cros'); fr.changeSparkleProperties(11.1, 3600); fr.setProperties(this, centers[i][0], centers[i][1]); fr.startFireworks(); ++i; } this.delivery.target.sndCtrl.stopSound(this.delivery.target.soundsId.letterexplosion_snd); this.delivery.target.sndCtrl.playSound(this.delivery.target.soundsId.letterexplosion_snd); utils.Delegate.callDelayed(this, gotoAndStop, 130, 26); } instance b1 of movieClip 4926 { onClipEvent (load) { } } instance b2 of movieClip 2022 { onClipEvent (load) { } } instance b3 of movieClip 4962 { onClipEvent (load) { } } instance b4 of movieClip 2022 { onClipEvent (load) { } } instance b5 of movieClip 4926 { onClipEvent (load) { } } instance b6 of movieClip 4965 { onClipEvent (load) { } } instance b7 of movieClip 4926 { onClipEvent (load) { } } instance b8 of movieClip 2022 { onClipEvent (load) { } } instance b9 of movieClip 4945 { onClipEvent (load) { } } instance b10 of movieClip 2019 { onClipEvent (load) { } } instance b11 of movieClip 2022 { onClipEvent (load) { } } instance b12 of movieClip 2028 { onClipEvent (load) { } } frame 26 { stop(); trace('this.delivery' + this.delivery); utils.Delegate.callDelayed(this.delivery, this.delivery.endGame3, 3000, 41); } } movieClip 4969 { } movieClip 4972 { } movieClip 4975 { } movieClip 4976 superbPerformance { frame 55 { stop(); var centers = new Array(); var letnum = 17; var i = 1; while (i <= letnum) { var cx = this['b' + i]._x + this['b' + i]._width / 2; var cy = this['b' + i]._y + this['b' + i]._height / 2; centers[i] = [cx, cy]; ++i; } var i = 1; while (i <= letnum) { var fr = new MesgAnim.Fireworks(6, 'cros'); fr.changeSparkleProperties(11.1, 3600); fr.setProperties(this, centers[i][0], centers[i][1]); fr.startFireworks(); ++i; } this.delivery.target.sndCtrl.stopSound(this.delivery.target.soundsId.letterexplosion_snd); this.delivery.target.sndCtrl.playSound(this.delivery.target.soundsId.letterexplosion_snd); utils.Delegate.callDelayed(this, gotoAndStop, 130, 56); } instance b1 of movieClip 4935 { onClipEvent (load) { } } instance b2 of movieClip 4938 { onClipEvent (load) { } } instance b3 of movieClip 4941 { onClipEvent (load) { } } instance b4 of movieClip 2022 { onClipEvent (load) { } } instance b5 of movieClip 2019 { onClipEvent (load) { } } instance b6 of movieClip 4951 { onClipEvent (load) { } } instance b7 of movieClip 4941 { onClipEvent (load) { } } instance b8 of movieClip 2022 { onClipEvent (load) { } } instance b9 of movieClip 2019 { onClipEvent (load) { } } instance b10 of movieClip 4969 { onClipEvent (load) { } } instance b11 of movieClip 4972 { onClipEvent (load) { } } instance b12 of movieClip 2019 { onClipEvent (load) { } } instance b13 of movieClip 4957 { onClipEvent (load) { } } instance b14 of movieClip 4945 { onClipEvent (load) { } } instance b15 of movieClip 4975 { onClipEvent (load) { } } instance b16 of movieClip 4965 { onClipEvent (load) { } } instance b17 of movieClip 2022 { onClipEvent (load) { } } frame 56 { stop(); trace('this.delivery' + this.delivery); utils.Delegate.callDelayed(this.delivery, this.delivery.endGame3, 3000, 41); } } movieClip 4977 scaryGood { frame 52 { stop(); var centers = new Array(); var letnum = 9; var i = 1; while (i <= letnum) { var cx = this['b' + i]._x + this['b' + i]._width / 2; var cy = this['b' + i]._y + this['b' + i]._height / 2; centers[i] = [cx, cy]; ++i; } var i = 1; while (i <= letnum) { var fr = new MesgAnim.Fireworks(9, 'cros'); fr.changeSparkleProperties(11.1, 3600); fr.setProperties(this, centers[i][0], centers[i][1]); fr.startFireworks(); ++i; } this.delivery.target.sndCtrl.stopSound(this.delivery.target.soundsId.letterexplosion_snd); this.delivery.target.sndCtrl.playSound(this.delivery.target.soundsId.letterexplosion_snd); utils.Delegate.callDelayed(this, gotoAndStop, 130, 53); } instance b6 of movieClip 4944 { onClipEvent (load) { } } instance b7 of movieClip 4972 { onClipEvent (load) { } } instance b8 of movieClip 4972 { onClipEvent (load) { } } instance b9 of movieClip 2028 { onClipEvent (load) { } } instance b5 of movieClip 2031 { onClipEvent (load) { } } instance b2 of movieClip 4965 { onClipEvent (load) { } } instance b4 of movieClip 2019 { onClipEvent (load) { } } instance b3 of movieClip 4945 { onClipEvent (load) { } } instance b1 of movieClip 4935 { onClipEvent (load) { } } frame 53 { stop(); trace('this.delivery' + this.delivery); utils.Delegate.callDelayed(this.delivery, this.delivery.endGame3, 3000, 41); } } movieClip 4978 marvelous { frame 47 { stop(); var centers = new Array(); var letnum = 9; var i = 1; while (i <= letnum) { var cx = this['b' + i]._x + this['b' + i]._width / 2; var cy = this['b' + i]._y + this['b' + i]._height / 2; centers[i] = [cx, cy]; ++i; } var i = 1; while (i <= letnum) { var fr = new MesgAnim.Fireworks(10, 'cros'); fr.changeSparkleProperties(11.1, 3600); fr.setProperties(this, centers[i][0], centers[i][1]); fr.startFireworks(); ++i; } this.delivery.target.sndCtrl.stopSound(this.delivery.target.soundsId.letterexplosion_snd); this.delivery.target.sndCtrl.playSound(this.delivery.target.soundsId.letterexplosion_snd); utils.Delegate.callDelayed(this, gotoAndStop, 130, 48); } instance b1 of movieClip 4957 { onClipEvent (load) { } } instance b2 of movieClip 4945 { onClipEvent (load) { } } instance b3 of movieClip 2019 { onClipEvent (load) { } } instance b4 of movieClip 4962 { onClipEvent (load) { } } instance b5 of movieClip 2022 { onClipEvent (load) { } } instance b6 of movieClip 4926 { onClipEvent (load) { } } instance b7 of movieClip 4972 { onClipEvent (load) { } } instance b8 of movieClip 4938 { onClipEvent (load) { } } instance b9 of movieClip 4935 { onClipEvent (load) { } } frame 48 { stop(); trace('this.delivery' + this.delivery); utils.Delegate.callDelayed(this.delivery, this.delivery.endGame3, 3000, 41); } } movieClip 4981 { } movieClip 4984 { } movieClip 4985 thatWasAmazing { frame 72 { stop(); var centers = new Array(); var letnum = 14; var i = 1; while (i <= letnum) { var cx = this['b' + i]._x + this['b' + i]._width / 2; var cy = this['b' + i]._y + this['b' + i]._height / 2; centers[i] = [cx, cy]; ++i; } var i = 1; while (i <= letnum) { var fr = new MesgAnim.Fireworks(6, 'cros'); fr.changeSparkleProperties(11.1, 3600); fr.setProperties(this, centers[i][0], centers[i][1]); fr.startFireworks(); ++i; } this.delivery.target.sndCtrl.stopSound(this.delivery.target.soundsId.letterexplosion_snd); this.delivery.target.sndCtrl.playSound(this.delivery.target.soundsId.letterexplosion_snd); utils.Delegate.callDelayed(this, gotoAndStop, 130, 73); } instance b1 of movieClip 4929 { onClipEvent (load) { } } instance b2 of movieClip 4948 { onClipEvent (load) { } } instance b3 of movieClip 4945 { onClipEvent (load) { } } instance b4 of movieClip 4929 { onClipEvent (load) { } } instance b5 of movieClip 4981 { onClipEvent (load) { } } instance b6 of movieClip 4945 { onClipEvent (load) { } } instance b7 of movieClip 4935 { onClipEvent (load) { } } instance b8 of movieClip 4945 { onClipEvent (load) { } } instance b9 of movieClip 4957 { onClipEvent (load) { } } instance b10 of movieClip 4945 { onClipEvent (load) { } } instance b11 of movieClip 4984 { onClipEvent (load) { } } instance b12 of movieClip 4954 { onClipEvent (load) { } } instance b13 of movieClip 4975 { onClipEvent (load) { } } instance b14 of movieClip 4944 { onClipEvent (load) { } } frame 73 { stop(); trace('this.delivery' + this.delivery); utils.Delegate.callDelayed(this.delivery, this.delivery.endGame3, 3000, 41); } } movieClip 4986 nicelyDone { frame 41 { stop(); var centers = new Array(); var letnum = 10; var i = 1; while (i <= letnum) { var cx = this['b' + i]._x + this['b' + i]._width / 2; var cy = this['b' + i]._y + this['b' + i]._height / 2; centers[i] = [cx, cy]; ++i; } var i = 1; while (i <= letnum) { var fr = new MesgAnim.Fireworks(9, 'cros'); fr.changeSparkleProperties(11.1, 3600); fr.setProperties(this, centers[i][0], centers[i][1]); fr.startFireworks(); ++i; } this.delivery.target.sndCtrl.stopSound(this.delivery.target.soundsId.letterexplosion_snd); this.delivery.target.sndCtrl.playSound(this.delivery.target.soundsId.letterexplosion_snd); utils.Delegate.callDelayed(this, gotoAndStop, 130, 42); } instance b1 of movieClip 4975 { onClipEvent (load) { } } instance b2 of movieClip 4954 { onClipEvent (load) { } } instance b3 of movieClip 4965 { onClipEvent (load) { } } instance b4 of movieClip 2022 { onClipEvent (load) { } } instance b5 of movieClip 4926 { onClipEvent (load) { } } instance b6 of movieClip 2031 { onClipEvent (load) { } } instance b7 of movieClip 2028 { onClipEvent (load) { } } instance b8 of movieClip 4972 { onClipEvent (load) { } } instance b9 of movieClip 4975 { onClipEvent (load) { } } instance b10 of movieClip 2022 { onClipEvent (load) { } } frame 42 { stop(); trace('this.delivery' + this.delivery); utils.Delegate.callDelayed(this.delivery, this.delivery.endGame3, 3000, 41); } } movieClip 4987 phenomenal { frame 55 { stop(); var centers = new Array(); var letnum = 10; var i = 1; while (i <= letnum) { var cx = this['b' + i]._x + this['b' + i]._width / 2; var cy = this['b' + i]._y + this['b' + i]._height / 2; centers[i] = [cx, cy]; ++i; } var i = 1; while (i <= letnum) { var fr = new MesgAnim.Fireworks(9, 'cros'); fr.changeSparkleProperties(11.1, 3600); fr.setProperties(this, centers[i][0], centers[i][1]); fr.startFireworks(); ++i; } this.delivery.target.sndCtrl.stopSound(this.delivery.target.soundsId.letterexplosion_snd); this.delivery.target.sndCtrl.playSound(this.delivery.target.soundsId.letterexplosion_snd); utils.Delegate.callDelayed(this, gotoAndStop, 130, 56); } instance b1 of movieClip 4941 { onClipEvent (load) { } } instance b2 of movieClip 4948 { onClipEvent (load) { } } instance b3 of movieClip 2022 { onClipEvent (load) { } } instance b4 of movieClip 4975 { onClipEvent (load) { } } instance b5 of movieClip 4972 { onClipEvent (load) { } } instance b6 of movieClip 4957 { onClipEvent (load) { } } instance b7 of movieClip 2022 { onClipEvent (load) { } } instance b8 of movieClip 4975 { onClipEvent (load) { } } instance b9 of movieClip 4945 { onClipEvent (load) { } } instance b10 of movieClip 4926 { onClipEvent (load) { } } frame 56 { stop(); trace('this.delivery' + this.delivery); utils.Delegate.callDelayed(this.delivery, this.delivery.endGame3, 3000, 41); } } movieClip 4990 { } movieClip 4993 { } movieClip 4994 excellentJob { frame 35 { stop(); var centers = new Array(); var letnum = 12; var i = 1; while (i <= letnum) { var cx = this['b' + i]._x + this['b' + i]._width / 2; var cy = this['b' + i]._y + this['b' + i]._height / 2; centers[i] = [cx, cy]; ++i; } var i = 1; while (i <= letnum) { var fr = new MesgAnim.Fireworks(6, 'cros'); fr.changeSparkleProperties(11.1, 3600); fr.setProperties(this, centers[i][0], centers[i][1]); fr.startFireworks(); ++i; } this.delivery.target.sndCtrl.stopSound(this.delivery.target.soundsId.letterexplosion_snd); this.delivery.target.sndCtrl.playSound(this.delivery.target.soundsId.letterexplosion_snd); utils.Delegate.callDelayed(this, gotoAndStop, 130, 36); } instance b1 of movieClip 2022 { onClipEvent (load) { } } instance b2 of movieClip 4990 { onClipEvent (load) { } } instance b3 of movieClip 4965 { onClipEvent (load) { } } instance b4 of movieClip 2022 { onClipEvent (load) { } } instance b5 of movieClip 4926 { onClipEvent (load) { } } instance b6 of movieClip 4926 { onClipEvent (load) { } } instance b7 of movieClip 2022 { onClipEvent (load) { } } instance b8 of movieClip 4975 { onClipEvent (load) { } } instance b9 of movieClip 4929 { onClipEvent (load) { } } instance b10 of movieClip 4993 { onClipEvent (load) { } } instance b11 of movieClip 4972 { onClipEvent (load) { } } instance b12 of movieClip 4951 { onClipEvent (load) { } } frame 36 { stop(); trace('this.delivery' + this.delivery); utils.Delegate.callDelayed(this.delivery, this.delivery.endGame3, 3000, 41); } } movieClip 4995 perfect { frame 45 { stop(); var centers = new Array(); var letnum = 7; var i = 1; while (i <= letnum) { var cx = this['b' + i]._x + this['b' + i]._width / 2; var cy = this['b' + i]._y + this['b' + i]._height / 2; centers[i] = [cx, cy]; ++i; } var i = 1; while (i <= letnum) { var fr = new MesgAnim.Fireworks(10, 'cros'); fr.changeSparkleProperties(11.1, 3600); fr.setProperties(this, centers[i][0], centers[i][1]); fr.startFireworks(); ++i; } this.delivery.target.sndCtrl.stopSound(this.delivery.target.soundsId.letterexplosion_snd); this.delivery.target.sndCtrl.playSound(this.delivery.target.soundsId.letterexplosion_snd); utils.Delegate.callDelayed(this, gotoAndStop, 130, 46); } instance b7 of movieClip 4929 { onClipEvent (load) { } } instance b6 of movieClip 4965 { onClipEvent (load) { } } instance b5 of movieClip 2022 { onClipEvent (load) { } } instance b4 of movieClip 4969 { onClipEvent (load) { } } instance b3 of movieClip 2019 { onClipEvent (load) { } } instance b2 of movieClip 2022 { onClipEvent (load) { } } instance b1 of movieClip 4941 { onClipEvent (load) { } } frame 46 { stop(); trace('this.delivery' + this.delivery); utils.Delegate.callDelayed(this.delivery, this.delivery.endGame3, 3000, 41); } } movieClip 5079 { frame 1 { } frame 30 { stop(); } } movieClip 5128 { frame 7 { stop(); } } movieClip 5191 { frame 10 { stop(); } } movieClip 5238 { frame 9 { stop(); } } movieClip 5258 { frame 10 { stop(); } } movieClip 5288 { frame 10 { stop(); } } movieClip 5299 { frame 9 { stop(); } } movieClip 5303 { } movieClip 5313 { } movieClip 5377 { frame 9 { stop(); } } movieClip 5378 { } movieClip 5381 { } movieClip 5384 { } movieClip 5385 { frame 9 { stop(); } } movieClip 5407 { frame 9 { stop(); } } movieClip 5427 { frame 10 { stop(); } } movieClip 5428 { frame 10 { stop(); } } movieClip 5438 { frame 1 { trace('in stork animation take baby up'); } frame 16 { stop(); this._parent.object.changeNeed(); trace('and of stork animation'); utils.Delegate.callDelayed(this._parent.object.factory, this._parent.object.factory.Animation, 120, this._parent.object.factory.level.clock.toSeconds(), 0.12); this._parent.gotoAndStop('stand'); } } movieClip 5549 { frame 33 { } frame 52 { } frame 92 { gotoAndPlay(53); } } movieClip 5550 { frame 9 { stop(); } } movieClip 5551 { frame 9 { stop(); } frame 9 { stop(); } } movieClip 5552 { frame 9 { stop(); } } movieClip 5553 { } movieClip 5556 { } movieClip 5557 { } movieClip 5558 { } movieClip 5561 { } movieClip 5562 { } movieClip 5565 { } movieClip 5566 { } movieClip 5567 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5568 { } movieClip 5571 { } movieClip 5572 { } movieClip 5573 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5574 { } movieClip 5577 { } movieClip 5578 { } movieClip 5579 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5580 { } movieClip 5583 { } movieClip 5586 { } movieClip 5587 { } movieClip 5588 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 5589 { } movieClip 5590 stork_f { frame 1 { stop(); trace('cleeean'); } frame 2 { stop(); trace('drooop'); } frame 3 { stop(); trace('takeeee'); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } frame 22 { stop(); } frame 23 { stop(); } frame 24 { stop(); } } movieClip 5673 cs1clean { frame 30 { stop(); } } movieClip 5721 cs1drop { frame 7 { stop(); } } movieClip 5784 cs1take { frame 10 { stop(); } } movieClip 5869 cs1tired { frame 33 { this.object.GotoAndStop('dise'); } } movieClip 5894 cs1dise { } movieClip 5900 { } movieClip 5903 { } movieClip 5909 cs1dise_towel { } movieClip 5912 { } movieClip 5913 cs1dise_DirtyTowel { } movieClip 5982 cs1weakUp { frame 17 { stop(); this.object.StorkAweak(); } } movieClip 5983 { } button 5984 { on (press) { trace(' '); } on (release) { trace(' '); } on (rollOver) { trace(' '); } } movieClip 5986 { frame 1 { stop(); } } movieClip 5988 { } movieClip 5993 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } button 5995 { on (press) { ok_btn.gotoAndStop(4); this.continueGame(); } on (rollOver) { ok_btn.gotoAndStop(2); } on (release) { ok_btn.gotoAndStop(1); } on (releaseOutside) { ok_btn.gotoAndStop(1); } on (rollOut) { ok_btn.gotoAndStop(1); } } movieClip 5996 OutOfFocusPopUP { #initclip Object.registerClass('OutOfFocusPopUP', as.FocusControl); #endinitclip frame 1 { b.useHandCursor = false; } } movieClip 5999 { } movieClip 6002 { } movieClip 6003 click_toybox { } movieClip 6006 { } movieClip 6007 click_trashcan { } movieClip 6010 particle { } movieClip 6018 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 6021 { } movieClip 6026 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 6027 { } movieClip 6032 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 6035 { } movieClip 6037 PROMOScreen_mc { frame 1 { download.onRollOver = function () { this.gotoAndStop(2); }; download.onRollOut = function () { this.gotoAndStop(1); }; submit.onRollOver = function () { this.gotoAndStop(2); }; submit.onRollOut = function () { this.gotoAndStop(1); }; playdemo.onRollOver = function () { this.gotoAndStop(2); }; playdemo.onRollOut = function () { this.gotoAndStop(1); }; if (_global.highscorelink == '' || _global.highscorelink == undefined) { this.submitBtn._visible = false; } } } movieClip 6054 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 36 { this.gotoAndPlay(1); } } movieClip 6055 b1DrinkMilk { } movieClip 6066 { } movieClip 6152 { } movieClip 6172 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 57 { gotoAndPlay(36); } frame 102 { this.gotoAndPlay(89); } } movieClip 6173 b1TryWallk { } movieClip 6176 { } movieClip 6177 b1PutInBed { } movieClip 6178 { } movieClip 6179 b1Drag { } movieClip 6181 { } movieClip 6182 b1Drop { } movieClip 6267 { } movieClip 6268 b1Twins { } movieClip 6296 { } movieClip 6297 b1Triplets { } movieClip 6299 { } movieClip 6300 b1Quadriplets { } movieClip 6344 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 105 { this.gotoAndPlay(27); } } movieClip 6354 { frame 5 { stop(); } } movieClip 6355 b1Angry { } movieClip 6360 { } movieClip 6361 b1Angry_pooped { } movieClip 6366 { } movieClip 6411 { } movieClip 6417 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 105 { this.gotoAndPlay(27); } } movieClip 6420 { } movieClip 6421 b1Angry_Vomit { } movieClip 6446 { } movieClip 6450 { } movieClip 6451 { } movieClip 6466 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 129 { this.gotoAndPlay(33); } frame 129 { gotoAndPlay(33); } } movieClip 6469 { } movieClip 6470 b1cryToy { } movieClip 6471 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 6474 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 6475 b1Happy { } movieClip 6519 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(71); } } movieClip 6522 { } movieClip 6523 b1Hungry { } movieClip 6543 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 16 { this.gotoAndPlay(1); } } movieClip 6545 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 6546 b1Play_Zelce { } movieClip 6548 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 6549 b1Play_Mece { } movieClip 6556 { frame 38 { stop(); } } movieClip 6572 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 355 { this.gotoAndPlay(127); } } movieClip 6575 { } movieClip 6576 b1Pooped { } movieClip 6605 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 310 { this.gotoAndStop(10); } } movieClip 6608 { } movieClip 6609 b1Sleepy { } movieClip 6677 { } movieClip 6710 { } movieClip 6711 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!_global.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 320 { this.gotoAndPlay(101); } } movieClip 6714 { } movieClip 6715 b1Vomit { } movieClip 6716 b1 { } movieClip 6727 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 36 { this.gotoAndPlay(1); } } movieClip 6728 b2DrinkMilk { } movieClip 6794 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 57 { gotoAndPlay(36); } frame 102 { this.gotoAndPlay(89); } } movieClip 6795 b2TryWallk { } movieClip 6798 { } movieClip 6799 b2PutInBed { } movieClip 6800 { } movieClip 6801 b2Drag { } movieClip 6803 { } movieClip 6804 b2Drop { } movieClip 6866 { } movieClip 6867 b2Twins { } movieClip 6886 { } movieClip 6887 b2Triplets { } movieClip 6889 { } movieClip 6890 b2Quadriplets { } movieClip 6930 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 105 { this.gotoAndPlay(27); } } movieClip 6931 b2Angry { } movieClip 6932 b2Angry_pooped { } movieClip 6938 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 105 { this.gotoAndPlay(27); } } movieClip 6939 b2Angry_Vomit { } movieClip 6964 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 129 { this.gotoAndPlay(33); } frame 129 { gotoAndPlay(33); } } movieClip 6965 b2cryToy { } movieClip 6966 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 6967 b2Happy { } movieClip 6999 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(71); } } movieClip 7000 b2Hungry { } movieClip 7014 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 16 { this.gotoAndPlay(1); } } movieClip 7015 b2Play_Zelce { } movieClip 7016 b2Play_Mece { } movieClip 7034 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 355 { this.gotoAndPlay(127); } } movieClip 7035 b2Pooped { } movieClip 7053 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 310 { this.gotoAndPlay(10); } } movieClip 7054 b2Sleepy { } movieClip 7067 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 320 { this.gotoAndPlay(101); } } movieClip 7068 b2Vomit { } movieClip 7069 b2 { } movieClip 7074 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 36 { this.gotoAndPlay(1); } } movieClip 7075 b3DrinkMilk { } movieClip 7111 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 57 { gotoAndPlay(36); } frame 102 { this.gotoAndPlay(89); } } movieClip 7112 b3TryWallk { } movieClip 7115 { } movieClip 7116 b3PutInBed { } movieClip 7117 { } movieClip 7118 b3Drag { } movieClip 7120 { } movieClip 7121 b3Drop { } movieClip 7135 { } movieClip 7136 { } movieClip 7137 b3Twins { } movieClip 7143 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 7144 { } movieClip 7145 b3Triplets { } movieClip 7146 { } movieClip 7147 b3Quadriplets { } movieClip 7153 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 105 { this.gotoAndPlay(27); } } movieClip 7154 b3Angry { } movieClip 7155 b3Angry_pooped { } movieClip 7161 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 105 { this.gotoAndPlay(27); } } movieClip 7162 b3Angry_Vomit { } movieClip 7170 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 129 { this.gotoAndPlay(33); } frame 129 { gotoAndPlay(33); } } movieClip 7171 b3cryToy { } movieClip 7172 b3Happy { } movieClip 7190 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(71); } } movieClip 7191 b3Hungry { } movieClip 7195 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 16 { this.gotoAndPlay(1); } } movieClip 7196 b3Play_Zelce { } movieClip 7197 b3Play_Mece { } movieClip 7207 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 355 { this.gotoAndPlay(127); } } movieClip 7208 b3Pooped { } movieClip 7210 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 310 { this.gotoAndPlay(10); } } movieClip 7211 b3Sleepy { } movieClip 7216 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 320 { this.gotoAndPlay(101); } } movieClip 7217 b3Vomit { } movieClip 7218 b3 { } movieClip 7228 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 36 { this.gotoAndPlay(1); } } movieClip 7229 b4DrinkMilk { } movieClip 7287 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 57 { gotoAndPlay(36); } frame 102 { this.gotoAndPlay(89); } } movieClip 7288 b4TryWallk { } movieClip 7291 { } movieClip 7292 b4PutInBed { } movieClip 7293 { } movieClip 7294 b4Drag { } movieClip 7295 { } movieClip 7296 b4Drop { } movieClip 7333 { } movieClip 7334 { } movieClip 7335 b4Twins { } movieClip 7350 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 7351 { } movieClip 7352 b4Triplets { } movieClip 7353 { } movieClip 7354 b4Quadriplets { } movieClip 7394 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 105 { this.gotoAndPlay(27); } } movieClip 7395 b4Angry { } movieClip 7396 b4Angry_pooped { } movieClip 7406 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 105 { this.gotoAndPlay(27); } } movieClip 7407 b4Angry_Vomit { } movieClip 7429 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 129 { this.gotoAndPlay(33); } frame 129 { gotoAndPlay(33); } } movieClip 7430 b4cryToy { } movieClip 7431 b4Happy { } movieClip 7456 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(71); } } movieClip 7457 b4Hungry { } movieClip 7471 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 16 { this.gotoAndPlay(1); } } movieClip 7472 b4Play_Zelce { } movieClip 7473 b4Play_Mece { } movieClip 7489 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 355 { this.gotoAndPlay(127); } } movieClip 7490 b4Pooped { } movieClip 7509 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 310 { this.gotoAndPlay(10); } } movieClip 7510 b4Sleepy { } movieClip 7523 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 320 { this.gotoAndPlay(101); } } movieClip 7524 b4Vomit { } movieClip 7525 b4 { } movieClip 7543 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 36 { this.gotoAndPlay(1); } } movieClip 7544 b7DrinkMilk { } movieClip 7656 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 57 { gotoAndPlay(36); } frame 102 { this.gotoAndPlay(89); } } movieClip 7657 b7TryWallk { } movieClip 7660 { } movieClip 7661 b7PutInBed { } movieClip 7663 { } movieClip 7664 b7Drag { } movieClip 7666 { } movieClip 7667 b7Drop { } movieClip 7725 { frame 1 { var cframe; var csoundTime; var paused = false; var sound1 = undefined; this.onEnterFrame = function () { if (_global.pause && !paused) { cframe = this._currentframe; sound.stop(sound.soundName); sound1.stop(sound1.soundName); csoundTime = sound.position; this.stop(); paused = true; } if (!_global.pause && paused) { this.gotoAndPlay(cframe); trace('sound1 ' + sound1); paused = false; } }; } } movieClip 7726 { } movieClip 7727 b7Twins { } movieClip 7745 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 7746 { } movieClip 7747 b7Triplets { } movieClip 7748 { } movieClip 7749 b7Quadriplets { } movieClip 7794 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(27); } } movieClip 7795 b7Angry { } movieClip 7796 b7Angry_pooped { } movieClip 7801 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(27); } } movieClip 7802 b7Angry_Vomit { } movieClip 7832 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 129 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 129 { this.gotoAndPlay(33); } } movieClip 7833 b7cryToy { } movieClip 7834 b7Happy { } movieClip 7865 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(71); } } movieClip 7866 b7Hungry { } movieClip 7878 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 16 { this.gotoAndPlay(1); } } movieClip 7879 b7Play_Zelce { } movieClip 7880 b7Play_Mece { } movieClip 7892 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 349 { this.gotoAndPlay(127); } } movieClip 7893 b7Pooped { } movieClip 7914 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 310 { this.gotoAndPlay(10); } } movieClip 7915 b7Sleepy { } movieClip 7938 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 321 { this.gotoAndPlay(101); } } movieClip 7939 b7Vomit { } movieClip 7940 b7 { } movieClip 7955 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 36 { this.gotoAndPlay(1); } } movieClip 7956 b8DrinkMilk { } movieClip 8046 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 57 { gotoAndPlay(36); } frame 102 { this.gotoAndPlay(89); } } movieClip 8047 b8TryWallk { } movieClip 8050 { } movieClip 8051 b8PutInBed { } movieClip 8053 { } movieClip 8054 b8Drag { } movieClip 8056 { } movieClip 8057 b8Drop { } movieClip 8110 { frame 1 { var cframe; var csoundTime; var paused = false; var sound1 = undefined; this.onEnterFrame = function () { if (_global.pause && !paused) { cframe = this._currentframe; sound.stop(sound.soundName); sound1.stop(sound1.soundName); csoundTime = sound.position; this.stop(); paused = true; } if (!_global.pause && paused) { this.gotoAndPlay(cframe); trace('sound1 ' + sound1); paused = false; } }; } } movieClip 8111 { } movieClip 8112 b8Twins { } movieClip 8128 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 8129 { } movieClip 8130 b8Triplets { } movieClip 8131 { } movieClip 8132 b8Quadriplets { } movieClip 8176 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(27); } } movieClip 8177 b8Angry { } movieClip 8178 b8Angry_pooped { } movieClip 8203 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 321 { this.gotoAndPlay(27); } } movieClip 8204 b8Angry_Vomit { } movieClip 8229 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 129 { this.gotoAndPlay(33); } } movieClip 8230 b8cryToy { } movieClip 8231 b8Happy { } movieClip 8253 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(71); } } movieClip 8254 b8Hungry { } movieClip 8260 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 16 { this.gotoAndPlay(1); } } movieClip 8261 b8Play_Zelce { } movieClip 8262 b8Play_Mece { } movieClip 8273 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 349 { this.gotoAndPlay(127); } } movieClip 8274 b8Pooped { } movieClip 8291 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 310 { this.gotoAndPlay(10); } } movieClip 8292 b8Sleepy { } movieClip 8293 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 321 { this.gotoAndPlay(101); } } movieClip 8294 b8Vomit { } movieClip 8295 b8 { } movieClip 8301 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 36 { this.gotoAndPlay(1); } } movieClip 8302 b9DrinkMilk { } movieClip 8330 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 57 { gotoAndPlay(36); } frame 102 { this.gotoAndPlay(89); } } movieClip 8331 b9TryWallk { } movieClip 8334 { } movieClip 8335 b9PutInBed { } movieClip 8337 { } movieClip 8338 b9Drag { } movieClip 8340 { } movieClip 8341 b9Drop { } movieClip 8350 { frame 1 { var cframe; var csoundTime; var paused = false; var sound1 = undefined; this.onEnterFrame = function () { if (_global.pause && !paused) { cframe = this._currentframe; sound.stop(sound.soundName); sound1.stop(sound1.soundName); csoundTime = sound.position; this.stop(); paused = true; } if (!_global.pause && paused) { this.gotoAndPlay(cframe); trace('sound1 ' + sound1); paused = false; } }; } } movieClip 8351 { } movieClip 8352 b9Twins { } movieClip 8362 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 8363 { } movieClip 8364 b9Triplets { } movieClip 8365 { } movieClip 8366 b9Quadriplets { } movieClip 8368 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(27); } } movieClip 8369 b9Angry { } movieClip 8370 b9Angry_pooped { } movieClip 8372 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(27); } } movieClip 8373 b9Angry_Vomit { } movieClip 8381 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 129 { this.gotoAndPlay(33); } } movieClip 8382 b9cryToy { } movieClip 8383 b9Happy { } movieClip 8394 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(71); } } movieClip 8395 b9Hungry { } movieClip 8399 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 16 { this.gotoAndPlay(1); } } movieClip 8400 b9Play_Zelce { } movieClip 8401 b9Play_Mece { } movieClip 8407 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 349 { this.gotoAndPlay(127); } } movieClip 8408 b9Pooped { } movieClip 8411 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 310 { this.gotoAndPlay(10); } } movieClip 8412 b9Sleepy { } movieClip 8417 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 321 { this.gotoAndPlay(101); } } movieClip 8418 b9Vomit { } movieClip 8419 b9 { } movieClip 8434 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 36 { this.gotoAndPlay(1); } } movieClip 8435 b10DrinkMilk { } movieClip 8527 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 57 { gotoAndPlay(36); } frame 102 { this.gotoAndPlay(89); } } movieClip 8528 b10TryWallk { } movieClip 8531 { } movieClip 8532 b10PutInBed { } movieClip 8534 { } movieClip 8535 b10Drag { } movieClip 8537 { } movieClip 8538 b10Drop { } movieClip 8595 { frame 1 { var cframe; var csoundTime; var paused = false; var sound1 = undefined; this.onEnterFrame = function () { if (_global.pause && !paused) { cframe = this._currentframe; sound.stop(sound.soundName); sound1.stop(sound1.soundName); csoundTime = sound.position; this.stop(); paused = true; } if (!_global.pause && paused) { this.gotoAndPlay(cframe); trace('sound1 ' + sound1); paused = false; } }; } } movieClip 8596 { } movieClip 8597 b10Twins { } movieClip 8613 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } } movieClip 8614 { } movieClip 8615 b10Triplets { } movieClip 8616 { } movieClip 8617 b10Quadriplets { } movieClip 8659 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(27); } } movieClip 8660 b10Angry { } movieClip 8661 b10Angry_pooped { } movieClip 8665 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(27); } } movieClip 8666 b10Angry_Vomit { } movieClip 8694 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 129 { this.gotoAndPlay(33); } } movieClip 8695 b10cryToy { } movieClip 8696 b10Happy { } movieClip 8721 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 104 { this.gotoAndPlay(71); } } movieClip 8722 b10Hungry { } movieClip 8728 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 16 { this.gotoAndPlay(1); } } movieClip 8729 b10Play_Zelce { } movieClip 8730 b10Play_Mece { } movieClip 8742 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 349 { this.gotoAndPlay(127); } } movieClip 8743 b10Pooped { } movieClip 8757 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 310 { this.gotoAndPlay(10); } } movieClip 8758 b10Sleepy { } movieClip 8777 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent._parent.level.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent._parent.level.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 321 { this.gotoAndPlay(101); } } movieClip 8778 b10Vomit { } movieClip 8779 b10 { } movieClip 8788 { } movieClip 8795 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 8796 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 8797 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 8798 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 8803 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 8808 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 8813 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 8818 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 8835 { frame 50 { stop(); } } movieClip 8845 { } // unknown tag 88 length 35 movieClip 8849 { } movieClip 8852 { } movieClip 8855 { } movieClip 8858 { } movieClip 8861 { } movieClip 8863 { } movieClip 8865 { } movieClip 8867 { } movieClip 8872 { } movieClip 8875 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 8876 Interface { } movieClip 8908 Rucka { frame 76 { var delivery = this._parent.delivery; trace('delivery $$$$$' + delivery); delivery.target.sndCtrl.stopSound(delivery.soundsId.handleclick_snd); delivery.target.sndCtrl.playSound(delivery.soundsId.handleclick_snd); } frame 106 { stop(); } } movieClip 8909 { frame 85 { var delivery = this._parent.delivery; delivery.target.sndCtrl.stopSound(delivery.soundsId.gates_snd); delivery.target.sndCtrl.playSound(delivery.soundsId.gates_snd); } frame 104 { } frame 115 { stop(); this._parent._parent.delivery.startDeliveryGame(); } frame 116 { var delivery = this._parent.delivery; } } movieClip 8910 { frame 50 { var delivery = this._parent.delivery; delivery.target.sndCtrl.stopSound(delivery.target.soundsId.readyText_snd); delivery.target.sndCtrl.playSound(delivery.target.soundsId.readyText_snd); } frame 75 { stop(); } } movieClip 8911 startDelivery { } movieClip 8912 YOUFAILED { frame 62 { stop(); this.delivery.endGame3(); } } movieClip 8913 { } movieClip 8914 AnimationARMY { frame 25 { stop(); trace('### this.Screen ' + this.Screen); this.Screen.showArrows(); } } movieClip 8915 YouWereIncredible { frame 40 { stop(); var centers = new Array(); var letnum = 17; var i = 1; while (i <= letnum) { var cx = this['b' + i]._x + this['b' + i]._width / 2; var cy = this['b' + i]._y + this['b' + i]._height / 2; centers[i] = [cx, cy]; ++i; } var i = 1; while (i <= letnum) { var fr = new MesgAnim.Fireworks(6, 'cros'); fr.changeSparkleProperties(11.1, 3600); fr.setProperties(this, centers[i][0], centers[i][1]); fr.startFireworks(); ++i; } this.delivery.target.sndCtrl.stopSound(this.delivery.target.soundsId.letterexplosion_snd); this.delivery.target.sndCtrl.playSound(this.delivery.target.soundsId.letterexplosion_snd); utils.Delegate.callDelayed(this, gotoAndStop, 130, 41); } instance b1 of movieClip 2031 { onClipEvent (load) { } } instance b2 of movieClip 4972 { onClipEvent (load) { } } instance b3 of movieClip 4938 { onClipEvent (load) { } } instance b4 of movieClip 4981 { onClipEvent (load) { } } instance b5 of movieClip 2022 { onClipEvent (load) { } } instance b6 of movieClip 2019 { onClipEvent (load) { } } instance b7 of movieClip 2022 { onClipEvent (load) { } } instance b8 of movieClip 4954 { onClipEvent (load) { } } instance b9 of movieClip 4975 { onClipEvent (load) { } } instance b10 of movieClip 4965 { onClipEvent (load) { } } instance b11 of movieClip 2019 { onClipEvent (load) { } } instance b12 of movieClip 2022 { onClipEvent (load) { } } instance b13 of movieClip 2028 { onClipEvent (load) { } } instance b14 of movieClip 4954 { onClipEvent (load) { } } instance b15 of movieClip 4951 { onClipEvent (load) { } } instance b16 of movieClip 4926 { onClipEvent (load) { } } instance b17 of movieClip 2022 { onClipEvent (load) { } } frame 41 { stop(); trace('this.delivery' + this.delivery); utils.Delegate.callDelayed(this.delivery, this.delivery.endGame3, 3000, 41); } } movieClip 8919 star1 { } movieClip 8921 simbol_house1 { } movieClip 8925 simbol_house { } movieClip 9026 { frame 130 { gotoAndPlay(70); } } movieClip 9109 { frame 1 { var cframe; var paused = false; this.onEnterFrame = function () { if (this._parent.factory.pause && !paused) { cframe = this._currentframe; this.stop(); paused = true; } if (!this._parent.factory.pause && paused) { this.gotoAndPlay(cframe); paused = false; } }; } frame 39 { var strk = this._parent.strkRef; strk.factory.target.sndCtrl.stopSound(strk.soundsId.storksleep_snd); strk.factory.target.sndCtrl.playSound(strk.soundsId.storksleep_snd); } frame 79 { gotoAndPlay(39); } } movieClip 9110 cs1sleep { instance strkArea1 of movieClip 4918 { onClipEvent (load) { } } } movieClip 9134 { } movieClip 9243 { frame 1 { stop(); } } frame 10 { function showHighscore(__mode) { var v3 = _root.attachMovie('SL_highscore' + _global.highscoreType, 'SL_highscore', 794221, {'_y': 5}); switch (__mode) { case 'submit': v3.showSend(_global.game.gamePoints, _global.game.userName); break; default: v3.showList(); } } stop(); tb.swapDepths(56003); gamepaused.swapDepths(776600); } frame 10 { _global.focusMc = this.createEmptyMovieClip('fmc', 56632); _global.focusMc.onRelease = function () {}; Selection.addListener(_global.focusMc); Selection.setFocus(_global.focusMc); stop(); }




http://swfchan.com/28/135055/info.shtml
Created: 9/2 -2019 16:51:56 Last modified: 9/2 -2019 16:51:56 Server time: 05/11 -2024 08:38:49