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

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

Cloprutopia (Cloptopia RUS) by StaSyaN1902.swf

This is the info page for
Flash #170456

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


ActionScript [AS1/AS2]
Combined Code
// unknown tag 88 length 218 // unknown tag 88 length 229 movieClip 19 { } movieClip 21 trait24 { } movieClip 24 { } movieClip 27 specialistIcon { } movieClip 29 sparklePop { } movieClip 33 { } movieClip 35 { } movieClip 37 { } movieClip 38 { } movieClip 44 { frame 1 { stop(); } } movieClip 46 { frame 1 { gotoAndStop(2); } } movieClip 48 { frame 1 { stop(); } } movieClip 50 { } movieClip 59 { frame 1 { stop(); } frame 9 { gotoAndStop(1); } } movieClip 62 { } movieClip 64 { } movieClip 66 { } movieClip 68 { } movieClip 70 { } movieClip 72 { } movieClip 73 { frame 1 { stop(); } } movieClip 78 { } movieClip 80 { } movieClip 82 { } movieClip 84 { } movieClip 85 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { stop(); } frame 30 { stop(); } frame 40 { stop(); } } movieClip 93 { frame 9 { x = _root.randRange(0, 100); if (x < 95) { gotoAndPlay(2); } else { gotoAndPlay('blink'); } } frame 10 { _parent.eyelashupper._alpha = 0; } frame 21 { gotoAndPlay(2); } frame 22 { _parent.eyelashupper._alpha = 100; } } movieClip 117 { } movieClip 121 { frame 1 { stop(); } frame 7 { stop(); } frame 13 { stop(); } frame 19 { stop(); } frame 28 { gotoAndStop(1); } } movieClip 124 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 135 { frame 1 { stop(); } frame 12 { gotoAndStop(1); } } movieClip 146 { frame 1 { stop(); } frame 11 { gotoAndStop(1); } } movieClip 149 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 152 { } movieClip 154 { } movieClip 156 { } movieClip 158 { } movieClip 160 { } movieClip 161 { } movieClip 163 { } movieClip 165 { } movieClip 167 { } movieClip 169 { } movieClip 171 { } movieClip 172 { frame 1 { stop(); } } movieClip 174 { } movieClip 176 { } movieClip 178 { frame 1 { function Director_EyesLook(number) { if (_root.EyesReBusy == false) { _root.EyesReBusy = true; if (_root.EyesRe == 0) { _parent.eyeballs.gotoAndPlay('look' + number); _root.EyesRe = 1; } else { _parent.eyeballs.play(); _root.EyesRe = 0; } } } var countHorse; var psudeoRandom = 0; } frame 10 { x = _root.randRange(0, 100 + psudeoRandom * 3); if (x > 97) { Director_EyesLook(_root.randRange(1, 6)); psudeoRandom = -10; } else { ++psudeoRandom; } gotoAndPlay(2); } } movieClip 180 { } movieClip 184 { } movieClip 185 { frame 1 { stop(); } frame 7 { stop(); } frame 16 { stop(); } frame 25 { stop(); } frame 35 { stop(); } } movieClip 192 { frame 9 { x = _root.randRange(0, 100); if (x < 95) { gotoAndPlay(2); } else { gotoAndPlay('blink'); } } } movieClip 205 { frame 1 { stop(); } frame 7 { stop(); } frame 13 { stop(); } frame 19 { stop(); } } movieClip 207 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 209 { } movieClip 214 { } movieClip 215 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { stop(); } frame 30 { stop(); } } movieClip 231 { frame 9 { x = _root.randRange(0, 100); if (x < 95) { gotoAndPlay(2); } else { gotoAndPlay('blink'); } } frame 59 { gotoAndPlay(2); } } movieClip 233 { } movieClip 235 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 237 { } movieClip 240 { } movieClip 244 { } movieClip 245 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { stop(); } frame 30 { stop(); } frame 40 { stop(); } frame 50 { stop(); } } movieClip 258 { frame 2 { _parent.eyelashupper._alpha = 100; } frame 16 { x = _root.randRange(0, 100); if (x < 95) { gotoAndPlay(2); } else { gotoAndPlay('blink'); } } frame 17 { _parent.eyelashupper._alpha = 0; } frame 36 { x = _root.randRange(0, 100); if (x < 75) { gotoAndPlay(2); } else { gotoAndPlay('loop2'); } } frame 38 { _parent.eyelashupper._alpha = 100; } frame 56 { x = _root.randRange(0, 100); if (x < 95) { gotoAndPlay('loop2'); } else { gotoAndPlay('blink2'); } } } movieClip 277 { } movieClip 283 { frame 1 { stop(); } frame 7 { stop(); } frame 13 { stop(); } frame 19 { stop(); } } movieClip 285 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 287 { } movieClip 290 { } movieClip 293 { } movieClip 294 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { stop(); } frame 30 { stop(); } frame 40 { stop(); } frame 50 { stop(); } frame 60 { stop(); } frame 70 { stop(); } } movieClip 305 { frame 9 { x = _root.randRange(0, 100); if (x < 95) { gotoAndPlay(2); } else { gotoAndPlay('blink'); } } frame 24 { gotoAndPlay(2); } } movieClip 310 { frame 1 { stop(); } frame 3 { stop(); } frame 5 { stop(); } } movieClip 312 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 314 { } movieClip 316 { } movieClip 319 { } movieClip 320 { frame 1 { stop(); } frame 5 { stop(); } frame 10 { stop(); } frame 15 { stop(); } frame 20 { stop(); } frame 25 { stop(); } } movieClip 329 { frame 9 { x = _root.randRange(0, 100); if (x < 95) { gotoAndPlay(2); } else { gotoAndPlay('blink'); } } frame 19 { gotoAndPlay(2); } } movieClip 331 { } movieClip 333 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 335 { } movieClip 337 { frame 1 { stop(); } instance of movieClip 180 { onClipEvent (release) { this._parent.eyeballs.play(); } } instance of movieClip 180 { onClipEvent (release) { this._parent.jaw.play(); } } } movieClip 339 pHead { } movieClip 342 { } movieClip 345 { } movieClip 346 { } movieClip 348 perk17 { } movieClip 349 perkBtn17 { } movieClip 352 { } movieClip 353 { } movieClip 355 perk16 { } movieClip 356 perkBtn16 { } movieClip 361 { } movieClip 362 { } movieClip 364 { } movieClip 366 { } movieClip 367 { } movieClip 369 perk15 { } movieClip 370 perkBtn15 { } movieClip 373 { } movieClip 374 { } movieClip 376 perk14 { } movieClip 377 perkBtn14 { } movieClip 379 { } movieClip 381 { } movieClip 383 { } movieClip 385 { } movieClip 387 { } movieClip 388 { } movieClip 390 perk13 { } movieClip 391 perkBtn13 { } movieClip 394 { } movieClip 395 { } movieClip 397 perk12 { } movieClip 398 perkBtn12 { } movieClip 401 { } movieClip 402 { } movieClip 404 perk11 { } movieClip 405 perkBtn11 { } movieClip 407 { } movieClip 409 perk10 { } movieClip 410 perkBtn10 { } movieClip 414 { frame 1 { stop(); } } movieClip 415 { } movieClip 417 perk9 { } movieClip 418 perkBtn9 { } movieClip 420 { } movieClip 422 perk8 { } movieClip 423 perkBtn8 { } movieClip 426 { } movieClip 428 { } movieClip 430 { } movieClip 431 { } movieClip 432 { } movieClip 434 perk7 { } movieClip 435 perkBtn7 { } movieClip 437 { } movieClip 439 perk6 { } movieClip 440 perkBtn6 { } movieClip 442 perk5 { } movieClip 443 perkBtn5 { } movieClip 447 { } movieClip 448 { } movieClip 449 { } movieClip 451 perk4 { } movieClip 452 perkBtn4 { } movieClip 455 { } movieClip 456 { } movieClip 458 perk3 { } movieClip 459 perkBtn3 { } movieClip 462 { } movieClip 463 { } movieClip 465 perk2 { } movieClip 466 perkBtn2 { } movieClip 468 { } movieClip 470 perk1 { } movieClip 471 perkBtn1 { } movieClip 473 Чулочки { } movieClip 475 Волосики { } movieClip 477 Освещение { } movieClip 479 Антро { } movieClip 485 { } movieClip 489 { frame 1 { gotoAndStop(_root.CharacterSkin + 1); } } movieClip 490 Подковы { } movieClip 492 Бантик { } movieClip 494 Футанари { } movieClip 496 Зеркалировать { } movieClip 498 Очки { } movieClip 500 example { } movieClip 502 Вымечко { } movieClip 504 Корсет { } movieClip 506 Аксессуары { } movieClip 508 Лифчик { } movieClip 510 Румянец { } movieClip 512 Повязка { } movieClip 514 Кляп { } movieClip 516 nodeTopReg { } movieClip 519 { frame 1 { stop(); } } movieClip 521 { } movieClip 523 { } movieClip 524 { frame 1 { stop(); } frame 61 { gotoAndPlay('loop'); } } movieClip 526 { } movieClip 533 { frame 1 { stop(); } } movieClip 536 { frame 1 { stop(); } } movieClip 539 { } movieClip 542 { } movieClip 545 { } movieClip 548 { } movieClip 551 { } movieClip 554 { } movieClip 557 { } movieClip 560 { } movieClip 563 { } movieClip 567 { } movieClip 568 { } movieClip 569 { } movieClip 572 { } movieClip 573 { instance timer of movieClip 572 { onClipEvent (enterFrame) { if (_root.gamePaused == false) { a = _parent._parent._parent; this.gotoAndStop(a.buildProgressPercent + 1); this.progressAnim.play(); a.buildProgress += 0.04166666666666666; a.buildProgressPercent = int(a.buildProgress / a.buildTime * 0.01); if (a.buildProgressPercent >= 100) { --_root.strCount[a.Catalog][a.ModeInt]; a.Name = _root.buildList[a.Catalog][0]; a.Mode = _root.modeList[a.Catalog][0][0]; a.ModeInt = 0; if (_root.modeList[a.Catalog][1][0] != NaN && a.Catalog != 8) { a.ModesEnabled = true; } else { a.ModesEnabled = false; } if (_root.modeList[a.Catalog][3][0] != NaN) { a.UpgradesEnabled = true; } else { a.UpgradesEnabled = false; } a.gotoAndStop('b' + a.Catalog); if (a.Mode != 'Basic') { a.NameDisplay = a.Name + ' (' + a.Mode + ')'; } else { a.NameDisplay = a.Name; } if (_root.nodeSelected == _parent._parent._parent) { _root.selectStructure(_parent._parent._parent); } if (a.Catalog == 6 && _root.tiersUnlocked[1] == false) { _root.UnlockTier2(); } else { if (a.Catalog == 11 && _root.tiersUnlocked[2] == false) { _root.UnlockTier3(); } } ++_root.strCount[a.Catalog][a.ModeInt]; _root.findBuffers(a, 1); _root.adviserHint(); _parent._parent.gotoAndStop(1); } } else { this.progressAnim.stop(); this.stop(); } } } } movieClip 574 { frame 1 { stop(); } } movieClip 578 { } movieClip 580 { } movieClip 583 { } movieClip 585 { } movieClip 588 { } movieClip 590 { } movieClip 593 { } movieClip 595 { } movieClip 599 { } movieClip 601 { frame 1 { stop(); } } movieClip 608 { } movieClip 610 { } movieClip 612 { } movieClip 614 { frame 1 { stop(); } } movieClip 617 { } movieClip 620 { } movieClip 623 { } movieClip 626 { } movieClip 627 { frame 1 { stop(); } } movieClip 630 { } movieClip 633 { frame 1 { stop(); } } movieClip 636 { } movieClip 639 { } movieClip 642 { } movieClip 645 { frame 1 { stop(); } } movieClip 648 { } movieClip 651 { } movieClip 654 { } movieClip 657 { frame 1 { stop(); } } movieClip 660 { } movieClip 665 { } movieClip 668 { } movieClip 671 { } movieClip 674 { } movieClip 677 { } movieClip 678 { } movieClip 679 { frame 1 { stop(); } } movieClip 684 { } movieClip 687 { } movieClip 689 { } movieClip 692 { } movieClip 695 { } movieClip 697 { } movieClip 701 { } movieClip 704 { } movieClip 705 { frame 1 { stop(); } } movieClip 708 { } movieClip 711 { } movieClip 714 { } movieClip 717 { } movieClip 718 { frame 1 { stop(); } } movieClip 722 { } movieClip 725 { } movieClip 726 { frame 1 { stop(); } } movieClip 731 { } movieClip 734 { } movieClip 737 { } movieClip 738 { frame 1 { stop(); } } movieClip 742 { } movieClip 744 { } movieClip 748 { } movieClip 749 { frame 1 { stop(); } } movieClip 753 { } movieClip 756 { } movieClip 757 { frame 1 { stop(); } } movieClip 760 { } movieClip 763 { } movieClip 764 { frame 1 { stop(); } } movieClip 769 { frame 1 { if (_root.ShieldLevel >= 100) { gotoAndPlay(20); } } frame 19 { if (_root.ShieldLevel < 100) { gotoAndPlay(1); } else { gotoAndPlay(20); } } frame 80 { gotoAndPlay(20); } } movieClip 772 { } movieClip 775 { } movieClip 776 { frame 1 { stop(); } } movieClip 779 { } movieClip 782 { } movieClip 785 { } movieClip 788 { frame 1 { stop(); } } movieClip 790 { } movieClip 791 { frame 60 { gotoAndPlay(1); } } movieClip 794 { } movieClip 795 { frame 1 { stop(); } frame 40 { gotoAndPlay(2); } } movieClip 798 { } movieClip 801 { } movieClip 804 { } movieClip 807 { } movieClip 810 { } movieClip 813 { } movieClip 816 { } movieClip 819 { } movieClip 822 { } movieClip 825 { } movieClip 828 { } movieClip 830 { } movieClip 832 { } movieClip 833 { frame 1 { stop(); } } movieClip 836 { frame 1 { stop(); } } movieClip 837 { } movieClip 840 { } movieClip 841 { frame 1 { stop(); } frame 84 { gotoAndStop(1); this._alpha = 0; } } movieClip 842 node { frame 1 { stop(); } instance btnNodeSelect of movieClip 533 { onClipEvent (rollOver) { if (_root.buildPlacement == 'remove') { this.gotoAndStop(6); } else { if (_parent.Catalog != -1) { this.gotoAndStop(2); } else { this.gotoAndStop(5); } } } onClipEvent (release) { if (_root.buildPlacement == 'remove') { this.gotoAndStop(6); } else { if (_parent.Catalog != -1) { this.gotoAndStop(2); } else { this.gotoAndStop(5); } } } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } } movieClip 845 { } movieClip 846 leChipWin { } movieClip 848 { } movieClip 850 leChip { } movieClip 852 snapIcon { } movieClip 854 trait23 { } movieClip 856 { } movieClip 858 trait22 { } movieClip 862 { } movieClip 865 { } movieClip 866 { } movieClip 867 trait11 { } movieClip 870 { } movieClip 871 trait10 { } movieClip 874 { } movieClip 875 { } movieClip 877 trait9 { } movieClip 880 { } movieClip 882 trait7 { } movieClip 884 { } movieClip 886 trait6 { } movieClip 889 { } movieClip 890 { } movieClip 892 trait5 { } movieClip 895 { } movieClip 896 trait4 { } movieClip 898 { } movieClip 900 trait3 { } movieClip 902 { } movieClip 904 trait2 { } movieClip 906 { } movieClip 908 trait??? { } movieClip 911 { } movieClip 913 Background { } movieClip 915 Hot Swap { } movieClip 917 Longsword { } movieClip 919 { } movieClip 921 trait14 { } movieClip 924 { } movieClip 925 { } movieClip 927 trait19 { } movieClip 929 { } movieClip 931 trait21 { } movieClip 934 { } movieClip 935 { } movieClip 937 trait15 { } movieClip 940 { } movieClip 941 { } movieClip 943 trait20 { } movieClip 945 { } movieClip 947 trait16 { } movieClip 950 { } movieClip 951 { } movieClip 953 trait17 { } movieClip 954 { } movieClip 956 trait13 { } movieClip 958 { } movieClip 960 trait18 { } movieClip 963 { } movieClip 964 { } movieClip 966 trait12 { } movieClip 969 { } movieClip 970 { } movieClip 972 trait8 { } movieClip 974 { } movieClip 975 { } movieClip 977 trait1 { } movieClip 983 BoundingBox { } movieClip 985 BrdrShdw { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'shadowColor'); } } movieClip 987 BrdrFace { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'buttonColor'); } } movieClip 988 SimpleButtonDown { } movieClip 990 BrdrBlk { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'borderColor'); } } movieClip 992 BrdrHilght { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'highlightColor'); } } movieClip 993 SimpleButtonIn { } movieClip 994 SimpleButtonUp { } movieClip 995 Defaults { #initclip Object.registerClass('Defaults', mx.skins.halo.Defaults); #endinitclip } movieClip 996 UIObjectExtensions { #initclip Object.registerClass('UIObjectExtensions', mx.core.ext.UIObjectExtensions); #endinitclip } movieClip 997 UIObject { #initclip Object.registerClass('UIObject', mx.core.UIObject); #endinitclip frame 1 { stop(); } } button 1000 { on (keyPress '<Tab>') { this.tabHandler(); } } movieClip 1001 { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--); } #endinitclip frame 1 { } } movieClip 1002 FocusRect { #initclip Object.registerClass('FocusRect', mx.skins.halo.FocusRect); #endinitclip } movieClip 1003 FocusManager { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); #endinitclip frame 1 { stop(); } } movieClip 1004 UIComponentExtensions { #initclip Object.registerClass('UIComponentExtensions', mx.core.ext.UIComponentExtensions); #endinitclip } movieClip 1005 UIComponent { #initclip Object.registerClass('UIComponent', mx.core.UIComponent); #endinitclip frame 1 { stop(); } } movieClip 1006 SimpleButton { #initclip Object.registerClass('SimpleButton', mx.controls.SimpleButton); #endinitclip frame 1 { stop(); } } movieClip 1007 Border { #initclip Object.registerClass('Border', mx.skins.Border); #endinitclip frame 1 { stop(); } } movieClip 1008 RectBorder { #initclip mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder)); Object.registerClass('RectBorder', mx.skins.halo.RectBorder); #endinitclip frame 1 { stop(); } } movieClip 1009 ButtonSkin { #initclip Object.registerClass('ButtonSkin', mx.skins.halo.ButtonSkin); #endinitclip } movieClip 1010 Button { #initclip Object.registerClass('Button', mx.controls.Button); #endinitclip frame 1 { stop(); } instance of movieClip 1006 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 1011 CustomBorder { #initclip Object.registerClass('CustomBorder', mx.skins.CustomBorder); mx.skins.SkinElement.registerElement('CustomBorder', mx.skins.CustomBorder); #endinitclip frame 1 { } } movieClip 1014 ScrollTrack { } movieClip 1021 ScrollDownArrowDisabled { } movieClip 1023 ScrollThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 1025 ScrollThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 1026 ScrollDownArrowDown { } movieClip 1027 ScrollDownArrowOver { } movieClip 1028 ScrollDownArrowUp { } movieClip 1034 ScrollThumbBottomDisabled { } movieClip 1036 ThumbThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 1038 ThumbThemeColor3 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 1039 ScrollThumbBottomDown { } movieClip 1040 ScrollThumbBottomOver { } movieClip 1041 ScrollThumbBottomUp { } movieClip 1043 ScrollThumbGripDisabled { } movieClip 1045 ThumbThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 1046 ScrollThumbGripDown { } movieClip 1047 ScrollThumbGripOver { } movieClip 1048 ScrollThumbGripUp { } movieClip 1050 ScrollThumbMiddleDisabled { } movieClip 1051 ScrollThumbMiddleDown { } movieClip 1052 { } movieClip 1054 { } movieClip 1055 ScrollThumbMiddleOver { } movieClip 1056 ScrollThumbMiddleUp { } movieClip 1057 ScrollThumbTopDisabled { } movieClip 1058 ScrollThumbTopDown { } movieClip 1059 ScrollThumbTopOver { } movieClip 1060 ScrollThumbTopUp { } movieClip 1061 ScrollTrackDisabled { } movieClip 1062 ScrollUpArrowDisabled { } movieClip 1063 ScrollUpArrowDown { } movieClip 1064 ScrollUpArrowOver { } movieClip 1065 ScrollUpArrowUp { } movieClip 1066 BtnDownArrow { #initclip Object.registerClass('BtnDownArrow', mx.controls.SimpleButton); #endinitclip } movieClip 1067 BtnUpArrow { #initclip Object.registerClass('BtnUpArrow', mx.controls.SimpleButton); #endinitclip } movieClip 1068 ScrollBarAssets { } movieClip 1069 VScrollBar { #initclip Object.registerClass('VScrollBar', mx.controls.VScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 1010 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 1006 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 1070 HScrollBar { #initclip Object.registerClass('HScrollBar', mx.controls.HScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 1010 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 1006 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 1071 UIScrollBar { #initclip Object.registerClass('UIScrollBar', mx.controls.UIScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 1069 VScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 1070 HScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } frame 1 { function endGameSession() { gamePaused = true; clearInterval(cycleTimer); clearInterval(cycleTimerBig); } function gotoMySite() { getURL('http://www.furaffinity.net/user/mittsies/', '_blank', 'GET'); } function gotoSaSite() { getURL('http://stasyan1902.tumblr.com/cloptopia.ru', '_blank', 'GET'); } function deadClick() {} function menuHandler() { if (_root.deselectRightClick == true) { _root.deselectAll(); } } stop(); stopAllSounds(); _quality = 'MEDIUM'; var percentloaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; var loadint = int(percentloaded); randRange = function (min, max) { var v3 = Math.floor(Math.random() * (max - min + 1)) + min; return v3; }; var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); myMenu.builtInItems.quality = true; myMenu.builtInItems.rewind = true; myMenu.builtInItems.zoom = false; var copyrightNotice = new ContextMenuItem('© Mittsies 2014', deadClick); var gotoMySite = new ContextMenuItem('Visit www.Mittsies.com', gotoMySite); var saCopyright = new ContextMenuItem('Перевод от St@SyaN', gotoSaSite); myMenu.customItems.push(gotoMySite); copyrightNotice.enabled = false; myMenu.customItems.push(copyrightNotice); myMenu.customItems.push(saCopyright); myMenu.onSelect = menuHandler; _root.menu = myMenu; var AlreadyWatchedIntro = false; var hideCustomCursor = true; var hotbarKeys = new Array(49, 50, 52, 51, 53, 54, 55, 56, 57); var hotbarMode = new Array(49, 50, 51); var hotbarUpgrade = new Array(85, 0); var hotbarMenu = new Array(112, 113, 114, 115, 116, Number.NaN, Number.NaN, Number.NaN, 120, 121); var scrolltemp; var keyListener = new Object(); keyListener.onKeyDown = function () { scrolltemp = _root.hudMSG.messages.scroll; if (Key.getCode() == 80 || Key.getCode() == 32) { _root.pauseGame(); _root.hudMSG.messages.scroll = scrolltemp; } if (Key.getCode() == 27) { _root.deselectAll(); } if (Key.getCode() == 17) { if (_root.showingExtraInfo == false) { _root.showingExtraInfo = true; } else { _root.showingExtraInfo = false; } _root.showExtraInfo(); } if (Key.getCode() == 82) { _root.showRadius(_root.nodeSelected, _root.nodeSelected.Catalog); } hk = 0; while (hk < 3) { if (Key.getCode() == hotbarMode[hk]) { if (!(_root.nodeSelected == Number.NaN && _root.nodeSelected.ModesEnabled == true)) { if (hk <= 3) { _root.changeMode(hk, _root.nodeSelected); } } } ++hk; } if (Key.getCode() == hotbarUpgrade[0]) { _root.UpgradeMode(_root.nodeSelected, false); } hk = 0; while (hk < 15) { if (Key.getCode() == hotbarMenu[hk]) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = hk + 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { if (_root.hudInfoToggle == hk + 2) { _root.deselectAll(); } else { _root.hudInfoToggle = hk + 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } } } ++hk; } }; if (!keyheard) { Key.addListener(keyListener); keyheard = true; } } movieClip 1103 { } movieClip 1105 { } movieClip 1107 { } movieClip 1108 { instance of movieClip 1107 { onClipEvent (release) { getURL('http://www.mittsies.com', '_blank'); } } } movieClip 1112 { } movieClip 1114 { } movieClip 1117 { frame 10 { stop(); } } movieClip 1118 { instance loadan of movieClip 1112 { onClipEvent (enterFrame) { _root.percentloaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; _root.percentloadedDisplay = int(_root.percentloaded); if (_root.percentloaded == 100) { _root.gotoAndStop('splash'); } _root.loadan.loadan.gotoAndStop(_root.percentloadedDisplay); } } instance of movieClip 1114 { onClipEvent (enterFrame) { if (_root.percentloaded > 80) { this._alpha = 25 + _root.percentloaded * 0.75 - (_root.percentloaded - 80) * 6; } else { this._alpha = 100; } } } } movieClip 1121 { } movieClip 1122 { } instance cursor of movieClip 1122 { onClipEvent (enterFrame) { this._x = _root._xmouse; this._y = _root._ymouse; if (_root.hideCustomCursor == false) { Mouse.hide(); _root.changeColor('_root.cursor.flowerColor', _root.flowerPaint); _root.cursor.cursor._alpha = 100; _root.cursor.cursorType._alpha = 100; if (_root.hideCustomCursor == true) { _root.cursor.flowerColor._alpha = 100; _root.cursor.cursorType.gotoAndStop('flower'); } else { _root.cursor.flowerColor._alpha = 0; } } else { Mouse.show(); _root.cursor.cursor._alpha = 0; _root.cursor.cursorType._alpha = 0; _root.cursor.flowerColor._alpha = 0; } } } movieClip 978 __Packages.mx.core.UIObject { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIObject) { var v1 = function () { super(); this.constructObject(); }; mx.core.UIObject = v1; var v2 = new MovieClip(); mx.core.UIObject.prototype = v2; v2.__get__width = function () { return this._width; }; v2.__get__height = function () { return this._height; }; v2.__get__left = function () { return this._x; }; v2.__get__x = function () { return this._x; }; v2.__get__top = function () { return this._y; }; v2.__get__y = function () { return this._y; }; v2.__get__right = function () { return this._parent.width - (this._x + this.__get__width()); }; v2.__get__bottom = function () { return this._parent.height - (this._y + this.__get__height()); }; v2.getMinHeight = function (Void) { return this._minHeight; }; v2.setMinHeight = function (h) { this._minHeight = h; }; v2.__get__minHeight = function () { return this.getMinHeight(); }; v2.__set__minHeight = function (h) { this.setMinHeight(h); return this.__get__minHeight(); }; v2.getMinWidth = function (Void) { return this._minWidth; }; v2.setMinWidth = function (w) { this._minWidth = w; }; v2.__get__minWidth = function () { return this.getMinWidth(); }; v2.__set__minWidth = function (w) { this.setMinWidth(w); return this.__get__minWidth(); }; v2.setVisible = function (x, noEvent) { if (x != this._visible) { this._visible = x; if (noEvent != true) { this.dispatchEvent({'type': x ? 'reveal' : 'hide'}); } } }; v2.__get__visible = function () { return this._visible; }; v2.__set__visible = function (x) { this.setVisible(x, false); return this.__get__visible(); }; v2.__get__scaleX = function () { return this._xscale; }; v2.__set__scaleX = function (x) { this._xscale = x; return this.__get__scaleX(); }; v2.__get__scaleY = function () { return this._yscale; }; v2.__set__scaleY = function (y) { this._yscale = y; return this.__get__scaleY(); }; v2.doLater = function (obj, fn) { if (this.methodTable == undefined) { this.methodTable = new Array(); } this.methodTable.push({'obj': obj, 'fn': fn}); this.onEnterFrame = this.doLaterDispatcher; }; v2.doLaterDispatcher = function (Void) { delete this.onEnterFrame; if (this.invalidateFlag) { this.redraw(); } var v3 = this.methodTable; this.methodTable = new Array(); if (v3.length > 0) { var v2; v2 = v3.shift(); while (v2 != undefined) { v2.obj[v2.fn](); } } }; v2.cancelAllDoLaters = function (Void) { delete this.onEnterFrame; this.methodTable = new Array(); }; v2.invalidate = function (Void) { this.invalidateFlag = true; this.onEnterFrame = this.doLaterDispatcher; }; v2.invalidateStyle = function (Void) { this.invalidate(); }; v2.redraw = function (bAlways) { if (this.invalidateFlag || bAlways) { this.invalidateFlag = false; var v2; for (v2 in this.tfList) { this.tfList[v2].draw(); } this.draw(); this.dispatchEvent({'type': 'draw'}); } }; v2.draw = function (Void) {}; v2.move = function (x, y, noEvent) { var v3 = this._x; var v2 = this._y; this._x = x; this._y = y; if (noEvent != true) { this.dispatchEvent({'type': 'move', 'oldX': v3, 'oldY': v2}); } }; v2.setSize = function (w, h, noEvent) { var v2 = this.__width; var v3 = this.__height; this.__width = w; this.__height = h; this.size(); if (noEvent != true) { this.dispatchEvent({'type': 'resize', 'oldWidth': v2, 'oldHeight': v3}); } }; v2.size = function (Void) { this._width = this.__width; this._height = this.__height; }; v2.drawRect = function (x1, y1, x2, y2) { this.moveTo(x1, y1); this.lineTo(x2, y1); this.lineTo(x2, y2); this.lineTo(x1, y2); this.lineTo(x1, y1); }; v2.createLabel = function (name, depth, text) { this.createTextField(name, depth, 0, 0, 0, 0); var v2 = this[name]; v2._color = mx.core.UIObject.textColorList; v2._visible = false; v2.__text = text; if (this.tfList == undefined) { this.tfList = new Object(); } this.tfList[name] = v2; v2.invalidateStyle(); this.invalidate(); v2.styleName = this; return v2; }; v2.createObject = function (linkageName, id, depth, initobj) { return this.attachMovie(linkageName, id, depth, initobj); }; v2.createClassObject = function (className, id, depth, initobj) { var v3 = className.symbolName == undefined; if (v3) { Object.registerClass(className.symbolOwner.symbolName, className); } var v4 = this.createObject(className.symbolOwner.symbolName, id, depth, initobj); if (v3) { Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner); } return v4; }; v2.createEmptyObject = function (id, depth) { return this.createClassObject(mx.core.UIObject, id, depth); }; v2.destroyObject = function (id) { var v2 = this[id]; if (v2.getDepth() < 0) { var v4 = this.buildDepthTable(); var v5 = this.findNextAvailableDepth(0, v4, 'up'); var v3 = v5; v2.swapDepths(v3); } v2.removeMovieClip(); delete this[id]; }; v2.getSkinIDName = function (tag) { return this.idNames[tag]; }; v2.setSkin = function (tag, linkageName, initObj) { if (_global.skinRegistry[linkageName] == undefined) { mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement); } return this.createObject(linkageName, this.getSkinIDName(tag), tag, initObj); }; v2.createSkin = function (tag) { var v2 = this.getSkinIDName(tag); this.createEmptyObject(v2, tag); return this[v2]; }; v2.createChildren = function (Void) {}; v2._createChildren = function (Void) { this.createChildren(); this.childrenCreated = true; }; v2.constructObject = function (Void) { if (this._name == undefined) { return undefined; } this.init(); this._createChildren(); this.createAccessibilityImplementation(); this._endInit(); if (this.validateNow) { this.redraw(true); } else { this.invalidate(); } }; v2.initFromClipParameters = function (Void) { var v4 = false; var v2; for (v2 in this.clipParameters) { if (this.hasOwnProperty(v2)) { v4 = true; this['def_' + v2] = this[v2]; delete this[v2]; } } if (v4) { for (v2 in this.clipParameters) { var v3 = this['def_' + v2]; if (v3 != undefined) { this[v2] = v3; } } } }; v2.init = function (Void) { this.__width = this._width; this.__height = this._height; if (this.initProperties == undefined) { this.initFromClipParameters(); } else { this.initProperties(); } if (_global.cascadingStyles == true) { this.stylecache = new Object(); } }; v2.getClassStyleDeclaration = function (Void) { var v4 = this; var v3 = this.className; while (v3 != undefined) { if (this.ignoreClassStyleDeclaration[v3] == undefined) { if (_global.styles[v3] != undefined) { return _global.styles[v3]; } } v4 = v4.__proto__; v3 = v4.className; } }; v2.setColor = function (color) {}; v2.__getTextFormat = function (tf, bAll) { var v8 = this.stylecache.tf; if (v8 != undefined) { var v3; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { tf[v3] = v8[v3]; } } } return false; } var v6 = false; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { var v5 = this._tf[v3]; if (v5 != undefined) { tf[v3] = v5; } else { if (v3 == 'font' && this.fontFamily != undefined) { tf[v3] = this.fontFamily; } else { if (v3 == 'size' && this.fontSize != undefined) { tf[v3] = this.fontSize; } else { if (v3 == 'color' && this.color != undefined) { tf[v3] = this.color; } else { if (v3 == 'leftMargin' && this.marginLeft != undefined) { tf[v3] = this.marginLeft; } else { if (v3 == 'rightMargin' && this.marginRight != undefined) { tf[v3] = this.marginRight; } else { if (v3 == 'italic' && this.fontStyle != undefined) { tf[v3] = this.fontStyle == v3; } else { if (v3 == 'bold' && this.fontWeight != undefined) { tf[v3] = this.fontWeight == v3; } else { if (v3 == 'align' && this.textAlign != undefined) { tf[v3] = this.textAlign; } else { if (v3 == 'indent' && this.textIndent != undefined) { tf[v3] = this.textIndent; } else { if (v3 == 'underline' && this.textDecoration != undefined) { tf[v3] = this.textDecoration == v3; } else { if (v3 == 'embedFonts' && this.embedFonts != undefined) { tf[v3] = this.embedFonts; } else { v6 = true; } } } } } } } } } } } } } } } if (v6) { var v9 = this.styleName; if (v9 != undefined) { if (typeof v9 != 'string') { v6 = v9.__getTextFormat(tf, true, this); } else { if (_global.styles[v9] != undefined) { v6 = _global.styles[v9].__getTextFormat(tf, true, this); } } } } if (v6) { var v10 = this.getClassStyleDeclaration(); if (v10 != undefined) { v6 = v10.__getTextFormat(tf, true, this); } } if (v6) { if (_global.cascadingStyles) { if (this._parent != undefined) { v6 = this._parent.__getTextFormat(tf, false); } } } if (v6) { v6 = _global.style.__getTextFormat(tf, true, this); } return v6; }; v2._getTextFormat = function (Void) { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2, true); this.stylecache.tf = v2; if (this.enabled == false) { var v3 = this.getStyle('disabledColor'); v2.color = v3; } return v2; }; v2.getStyleName = function (Void) { var v2 = this.styleName; if (v2 != undefined) { if (typeof v2 != 'string') { return v2.getStyleName(); } else { return v2; } } if (this._parent != undefined) { return this._parent.getStyleName(); } else { return undefined; } }; v2.getStyle = function (styleProp) { var v3; ++_global.getStyleCounter; if (this[styleProp] != undefined) { return this[styleProp]; } var v6 = this.styleName; if (v6 != undefined) { if (typeof v6 != 'string') { v3 = v6.getStyle(styleProp); } else { var v7 = _global.styles[v6]; v3 = v7.getStyle(styleProp); } } if (v3 != undefined) { return v3; } v7 = this.getClassStyleDeclaration(); if (v7 != undefined) { v3 = v7[styleProp]; } if (v3 != undefined) { return v3; } if (_global.cascadingStyles) { if (mx.styles.StyleManager.isInheritingStyle(styleProp) || mx.styles.StyleManager.isColorStyle(styleProp)) { var v5 = this.stylecache; if (v5 != undefined) { if (v5[styleProp] != undefined) { return v5[styleProp]; } } if (this._parent != undefined) { v3 = this._parent.getStyle(styleProp); } else { v3 = _global.style[styleProp]; } if (v5 != undefined) { v5[styleProp] = v3; } return v3; } } if (v3 == undefined) { v3 = _global.style[styleProp]; } return v3; }; v1.mergeClipParameters = function (o, p) { for (var v3 in p) { o[v3] = p[v3]; } return true; }; v1.symbolName = 'UIObject'; v1.symbolOwner = mx.core.UIObject; v1.version = '2.0.2.126'; v1.textColorList = {'color': 1, 'disabledColor': 1}; v2.invalidateFlag = false; v2.lineWidth = 1; v2.lineColor = 0; v2.tabEnabled = false; v2.clipParameters = {'visible': 1, 'minHeight': 1, 'minWidth': 1, 'maxHeight': 1, 'maxWidth': 1, 'preferredHeight': 1, 'preferredWidth': 1}; v2.addProperty('bottom', v2.__get__bottom, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('left', v2.__get__left, function () {}); v2.addProperty('minHeight', v2.__get__minHeight, v2.__set__minHeight); v2.addProperty('minWidth', v2.__get__minWidth, v2.__set__minWidth); v2.addProperty('right', v2.__get__right, function () {}); v2.addProperty('scaleX', v2.__get__scaleX, v2.__set__scaleX); v2.addProperty('scaleY', v2.__get__scaleY, v2.__set__scaleY); v2.addProperty('top', v2.__get__top, function () {}); v2.addProperty('visible', v2.__get__visible, v2.__set__visible); v2.addProperty('width', v2.__get__width, function () {}); v2.addProperty('x', v2.__get__x, function () {}); v2.addProperty('y', v2.__get__y, function () {}); ASSetPropFlags(mx.core.UIObject.prototype, null, 1); } #endinitclip } movieClip 979 __Packages.mx.core.UIComponent { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIComponent) { var v1 = function () { super(); }; mx.core.UIComponent = v1; var v2 = new mx.core.UIObject(); mx.core.UIComponent.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.setVisible = function (x, noEvent) { super.setVisible(x, noEvent); }; v2.enabledChanged = function (id, oldValue, newValue) { this.setEnabled(newValue); this.invalidate(); delete this.stylecache.tf; return newValue; }; v2.setEnabled = function (enabled) { this.invalidate(); }; v2.getFocus = function () { var selFocus = Selection.getFocus(); return (selFocus === null) ? null : eval(selFocus); }; v2.setFocus = function () { Selection.setFocus(this); }; v2.getFocusManager = function () { var v2 = this; while (v2 != undefined) { if (v2.focusManager != undefined) { return v2.focusManager; } v2 = v2._parent; } return undefined; }; v2.onKillFocus = function (newFocus) { this.removeEventListener('keyDown', this); this.removeEventListener('keyUp', this); this.dispatchEvent({'type': 'focusOut'}); this.drawFocus(false); }; v2.onSetFocus = function (oldFocus) { this.addEventListener('keyDown', this); this.addEventListener('keyUp', this); this.dispatchEvent({'type': 'focusIn'}); if ((this.getFocusManager()).bDrawFocus != false) { this.drawFocus(true); } }; v2.findFocusInChildren = function (o) { if (o.focusTextField != undefined) { return o.focusTextField; } if (o.tabEnabled == true) { return o; } return undefined; }; v2.findFocusFromObject = function (o) { if (o.tabEnabled != true) { if (o._parent == undefined) { return undefined; } if (o._parent.tabEnabled == true) { o = o._parent; return o; } if (o._parent.tabChildren) { o = this.findFocusInChildren(o._parent); return o; } o = this.findFocusFromObject(o._parent); } return o; }; v2.pressFocus = function () { var v3 = this.findFocusFromObject(this); var v2 = this.getFocus(); if (v3 != v2) { v2.drawFocus(false); if ((this.getFocusManager()).bDrawFocus != false) { v3.drawFocus(true); } } }; v2.releaseFocus = function () { var v2 = this.findFocusFromObject(this); if (v2 != this.getFocus()) { v2.setFocus(); } }; v2.isParent = function (o) { while (o != undefined) { if (o == this) { return true; } o = o._parent; } return false; }; v2.size = function () {}; v2.init = function () { super.init(); this._xscale = 100; this._yscale = 100; this._focusrect = _global.useFocusRect == false; this.watch('enabled', this.enabledChanged); if (this.enabled == false) { this.setEnabled(false); } }; v2.dispatchValueChangedEvent = function (value) { this.dispatchEvent({'type': 'valueChanged', 'value': value}); }; v1.symbolName = 'UIComponent'; v1.symbolOwner = mx.core.UIComponent; v1.version = '2.0.2.126'; v1.kStretch = 5000; v2.focusEnabled = true; v2.tabEnabled = true; v2.origBorderStyles = {'themeColor': 16711680}; v2.clipParameters = {}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.core.UIComponent.prototype, null, 1); } #endinitclip } movieClip 980 __Packages.mx.controls.scrollClasses.ScrollBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.scrollClasses) { _global.mx.controls.scrollClasses = new Object(); } if (!_global.mx.controls.scrollClasses.ScrollBar) { var v1 = function () { super(); }; mx.controls.scrollClasses.ScrollBar = v1; var v2 = new mx.core.UIComponent(); mx.controls.scrollClasses.ScrollBar.prototype = v2; v2.__get__scrollPosition = function () { return this._scrollPosition; }; v2.__set__scrollPosition = function (pos) { this._scrollPosition = pos; if (this.isScrolling != true) { pos = Math.min(pos, this.maxPos); pos = Math.max(pos, this.minPos); var v3 = (pos - this.minPos) * (this.scrollTrack_mc.height - this.scrollThumb_mc._height) / (this.maxPos - this.minPos) + this.scrollTrack_mc.top; this.scrollThumb_mc.move(0, v3); } return this.__get__scrollPosition(); }; v2.__get__pageScrollSize = function () { return this.largeScroll; }; v2.__set__pageScrollSize = function (lScroll) { this.largeScroll = lScroll; return this.__get__pageScrollSize(); }; v2.__set__lineScrollSize = function (sScroll) { this.smallScroll = sScroll; return this.__get__lineScrollSize(); }; v2.__get__lineScrollSize = function () { return this.smallScroll; }; v2.__get__virtualHeight = function () { return this.__height; }; v2.init = function (Void) { super.init(); this._scrollPosition = 0; this.tabEnabled = false; this.focusEnabled = false; this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; v2.createChildren = function (Void) { if (this.scrollTrack_mc == undefined) { this.setSkin(mx.controls.scrollClasses.ScrollBar.skinIDTrack, this.scrollTrackName); } this.scrollTrack_mc.visible = false; var v3 = new Object(); v3.enabled = false; v3.preset = mx.controls.SimpleButton.falseDisabled; v3.initProperties = 0; v3.autoRepeat = true; v3.tabEnabled = false; var v2; if (this.upArrow_mc == undefined) { v2 = this.createButton(this.upArrowName, 'upArrow_mc', mx.controls.scrollClasses.ScrollBar.skinIDUpArrow, v3); } v2.buttonDownHandler = this.onUpArrow; v2.clickHandler = this.onScrollChanged; this._minHeight = v2.height; this._minWidth = v2.width; if (this.downArrow_mc == undefined) { v2 = this.createButton(this.downArrowName, 'downArrow_mc', mx.controls.scrollClasses.ScrollBar.skinIDDownArrow, v3); } v2.buttonDownHandler = this.onDownArrow; v2.clickHandler = this.onScrollChanged; this._minHeight += v2.height; }; v2.createButton = function (linkageName, id, skinID, o) { if (skinID == mx.controls.scrollClasses.ScrollBar.skinIDUpArrow) { o.falseUpSkin = this.upArrowUpName; o.falseDownSkin = this.upArrowDownName; o.falseOverSkin = this.upArrowOverName; var v3 = this.createObject(linkageName, id, skinID, o); this[id].visible = false; this[id].useHandCursor = false; return v3; } o.falseUpSkin = this.downArrowUpName; o.falseDownSkin = this.downArrowDownName; o.falseOverSkin = this.downArrowOverName; var v3 = this.createObject(linkageName, id, skinID, o); this[id].visible = false; this[id].useHandCursor = false; return v3; }; v2.createThumb = function (Void) { var v2 = new Object(); v2.validateNow = true; v2.tabEnabled = false; v2.leftSkin = this.thumbTopName; v2.middleSkin = this.thumbMiddleName; v2.rightSkin = this.thumbBottomName; v2.gripSkin = this.thumbGripName; this.createClassObject(mx.controls.scrollClasses.ScrollThumb, 'scrollThumb_mc', mx.controls.scrollClasses.ScrollBar.skinIDThumb, v2); }; v2.setScrollProperties = function (pSize, mnPos, mxPos, ls) { var v4; var v2 = this.scrollTrack_mc; this.pageSize = pSize; this.largeScroll = (ls != undefined && ls > 0) ? ls : pSize; this.minPos = Math.max(mnPos, 0); this.maxPos = Math.max(mxPos, 0); this._scrollPosition = Math.max(this.minPos, this._scrollPosition); this._scrollPosition = Math.min(this.maxPos, this._scrollPosition); if (this.maxPos - this.minPos > 0 && this.enabled) { var v5 = this._scrollPosition; if (!this.initializing) { this.upArrow_mc.enabled = true; this.downArrow_mc.enabled = true; } v2.onDragOver = this.startTrackScroller; v2.onPress = v2.onDragOver; v2.onRelease = this.releaseScrolling; v2.stopScrolling = this.stopScrolling; v2.onDragOut = v2.stopScrolling; v2.onReleaseOutside = this.releaseScrolling; v2.useHandCursor = false; if (this.scrollThumb_mc == undefined) { this.createThumb(); } var v3 = this.scrollThumb_mc; if (this.scrollTrackOverName.length > 0) { v2.onRollOver = this.trackOver; v2.onRollOut = this.trackOut; } v4 = (this.pageSize / (this.maxPos - this.minPos + this.pageSize)) * v2.height; if (v4 < v3.minHeight) { if (v2.height < v3.minHeight) { v3.__set__visible(false); } else { v4 = v3.minHeight; v3.__set__visible(true); v3.setSize(this._minWidth, v3.minHeight + 0); } } else { v3.__set__visible(true); v3.setSize(this._minWidth, v4); } v3.setRange(this.upArrow_mc.__get__height() + 0, this.__get__virtualHeight() - this.downArrow_mc.__get__height() - v3.__get__height(), this.minPos, this.maxPos); v5 = Math.min(v5, this.maxPos); this.__set__scrollPosition(Math.max(v5, this.minPos)); } else { this.scrollThumb_mc.__set__visible(false); if (!this.initializing) { this.upArrow_mc.enabled = false; this.downArrow_mc.enabled = false; } delete v2.onPress; delete v2.onDragOver; delete v2.onRelease; delete v2.onDragOut; delete v2.onRollOver; delete v2.onRollOut; delete v2.onReleaseOutside; } if (this.initializing) { this.scrollThumb_mc.__set__visible(false); } }; v2.setEnabled = function (enabledFlag) { super.setEnabled(enabledFlag); this.setScrollProperties(this.pageSize, this.minPos, this.maxPos, this.largeScroll); }; v2.draw = function (Void) { if (this.initializing) { this.initializing = false; this.scrollTrack_mc.visible = true; this.upArrow_mc.__set__visible(true); this.downArrow_mc.__set__visible(true); } this.size(); }; v2.size = function (Void) { if (this._height == 1) { return undefined; } if (this.upArrow_mc == undefined) { return undefined; } var v3 = this.upArrow_mc.__get__height(); var v2 = this.downArrow_mc.__get__height(); this.upArrow_mc.move(0, 0); var v4 = this.scrollTrack_mc; v4._y = v3; v4._height = this.__get__virtualHeight() - v3 - v2; this.downArrow_mc.move(0, this.__get__virtualHeight() - v2); this.setScrollProperties(this.pageSize, this.minPos, this.maxPos, this.largeScroll); }; v2.dispatchScrollEvent = function (detail) { this.dispatchEvent({'type': 'scroll', 'detail': detail}); }; v2.isScrollBarKey = function (k) { if (k == 36) { if (this.__get__scrollPosition() != 0) { this.__set__scrollPosition(0); this.dispatchScrollEvent(this.minMode); } return true; return false; } if (k == 35) { if (this.__get__scrollPosition() < this.maxPos) { this.__set__scrollPosition(this.maxPos); this.dispatchScrollEvent(this.maxMode); } return true; } return false; }; v2.scrollIt = function (inc, mode) { var v3 = this.smallScroll; if (inc != 'Line') { v3 = (this.largeScroll == 0) ? this.pageSize : this.largeScroll; } var v2 = this._scrollPosition + mode * v3; if (v2 > this.maxPos) { v2 = this.maxPos; } else { if (v2 < this.minPos) { v2 = this.minPos; } } if (this.__get__scrollPosition() != v2) { this.__set__scrollPosition(v2); var v4 = mode < 0 ? this.minusMode : this.plusMode; this.dispatchScrollEvent(inc + v4); } }; v2.startTrackScroller = function (Void) { this._parent.pressFocus(); if (this._parent.scrollTrackDownName.length > 0) { if (this._parent.scrollTrackDown_mc == undefined) { this._parent.setSkin(mx.controls.scrollClasses.ScrollBar.skinIDTrackDown, this.scrollTrackDownName); } else { this._parent.scrollTrackDown_mc.visible = true; } } this._parent.trackScroller(); this._parent.scrolling = setInterval(this._parent, 'scrollInterval', this.getStyle('repeatDelay'), 'Page', -1); }; v2.scrollInterval = function (inc, mode) { clearInterval(this.scrolling); if (inc == 'Page') { this.trackScroller(); } else { this.scrollIt(inc, mode); } this.scrolling = setInterval(this, 'scrollInterval', this.getStyle('repeatInterval'), inc, mode); }; v2.trackScroller = function (Void) { if (this.scrollThumb_mc._y + this.scrollThumb_mc.__get__height() < this._ymouse) { this.scrollIt('Page', 1); } else { if (this.scrollThumb_mc._y > this._ymouse) { this.scrollIt('Page', -1); } } }; v2.dispatchScrollChangedEvent = function (Void) { this.dispatchEvent({'type': 'scrollChanged'}); }; v2.stopScrolling = function (Void) { clearInterval(this._parent.scrolling); this._parent.scrollTrackDown_mc.visible = false; }; v2.releaseScrolling = function (Void) { this._parent.releaseFocus(); this.stopScrolling(); this._parent.dispatchScrollChangedEvent(); }; v2.trackOver = function (Void) { if (this._parent.scrollTrackOverName.length > 0) { if (this._parent.scrollTrackOver_mc == undefined) { this._parent.setSkin(mx.controls.scrollClasses.ScrollBar.skinIDTrackOver, this.scrollTrackOverName); } else { this._parent.scrollTrackOver_mc.visible = true; } } }; v2.trackOut = function (Void) { this._parent.scrollTrackOver_mc.visible = false; }; v2.onUpArrow = function (Void) { this._parent.scrollIt('Line', -1); }; v2.onDownArrow = function (Void) { this._parent.scrollIt('Line', 1); }; v2.onScrollChanged = function (Void) { this._parent.dispatchScrollChangedEvent(); }; v1.symbolOwner = mx.core.UIComponent; v2.className = 'ScrollBar'; v2.minPos = 0; v2.maxPos = 0; v2.pageSize = 0; v2.largeScroll = 0; v2.smallScroll = 1; v2._scrollPosition = 0; v2.scrollTrackName = 'ScrollTrack'; v2.scrollTrackOverName = ''; v2.scrollTrackDownName = ''; v2.upArrowName = 'BtnUpArrow'; v2.upArrowUpName = 'ScrollUpArrowUp'; v2.upArrowOverName = 'ScrollUpArrowOver'; v2.upArrowDownName = 'ScrollUpArrowDown'; v2.downArrowName = 'BtnDownArrow'; v2.downArrowUpName = 'ScrollDownArrowUp'; v2.downArrowOverName = 'ScrollDownArrowOver'; v2.downArrowDownName = 'ScrollDownArrowDown'; v2.thumbTopName = 'ScrollThumbTopUp'; v2.thumbMiddleName = 'ScrollThumbMiddleUp'; v2.thumbBottomName = 'ScrollThumbBottomUp'; v2.thumbGripName = 'ScrollThumbGripUp'; v1.skinIDTrack = 0; v1.skinIDTrackOver = 1; v1.skinIDTrackDown = 2; v1.skinIDUpArrow = 3; v1.skinIDDownArrow = 4; v1.skinIDThumb = 5; v2.idNames = new Array('scrollTrack_mc', 'scrollTrackOver_mc', 'scrollTrackDown_mc', 'upArrow_mc', 'downArrow_mc'); v2.clipParameters = {'minPos': 1, 'maxPos': 1, 'pageSize': 1, 'scrollPosition': 1, 'lineScrollSize': 1, 'pageScrollSize': 1, 'visible': 1, 'enabled': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); v2.initializing = true; v2.addProperty('lineScrollSize', v2.__get__lineScrollSize, v2.__set__lineScrollSize); v2.addProperty('pageScrollSize', v2.__get__pageScrollSize, v2.__set__pageScrollSize); v2.addProperty('scrollPosition', v2.__get__scrollPosition, v2.__set__scrollPosition); v2.addProperty('virtualHeight', v2.__get__virtualHeight, function () {}); ASSetPropFlags(mx.controls.scrollClasses.ScrollBar.prototype, null, 1); } #endinitclip } movieClip 981 __Packages.mx.controls.UIScrollBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.UIScrollBar) { var v1 = function () { super(); }; mx.controls.UIScrollBar = v1; var v2 = new mx.controls.scrollClasses.ScrollBar(); mx.controls.UIScrollBar.prototype = v2; v2.init = function (Void) { super.init(); this.textField.owner = this; this.__set__horizontal(this.wasHorizontal); if (this.__get__horizontal()) { (this.textField != undefined) ? super.setSize(this.textField._width, 16) : super.setSize(this.__width, this.__height); } else { (this.textField != undefined) ? super.setSize(16, this.textField._height) : super.setSize(this.__width, this.__height); } if (this.__get__horizontal()) { var v3 = this.__width; this.__height = this.__width; this.width = v3; this.__width = 16; } this.textField.onScroller = function () { this.hPosition = this.hscroll; this.vPosition = this.scroll - 1; }; if (this.__get___targetInstanceName() != undefined) { this.setScrollTarget(this.__get___targetInstanceName()); (this.__get___targetInstanceName()).addListener(this); } }; v2.__get___targetInstanceName = function () { return this.textField; }; v2.__get__height = function () { if (this.wasHorizontal) { return this.__width; } else { return this.__height; } }; v2.__get__width = function () { if (this.wasHorizontal) { return this.__height; } else { return this.__width; } }; v2.size = function (Void) { super.size(); this.onTextChanged(); }; v2.draw = function () { super.draw(); }; v2.__set___targetInstanceName = function (t) { if (t == undefined) { this.textField.removeListener(this); delete this.textField[this.__get__horizontal() ? 'hScroller' : 'vScroller']; if (this.textField.hScroller != undefined && this.textField.vScroller != undefined) { this.textField.unwatch('text'); this.textField.unwatch('htmltext'); } } var v3 = this._parent[t]; this.textField = this._parent[t]; this.onTextChanged(); return this.__get___targetInstanceName(); }; v2.setSize = function (w, h) { if (this.__get__horizontal()) { super.setSize(h, w); } else { super.setSize(w, h); } }; v2.onTextChanged = function (Void) { if (this.textField == undefined) { return undefined; } clearInterval(this.synchScroll); if (this.__get__horizontal()) { var v2 = this.textField.hscroll; this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll); this.__set__scrollPosition(Math.min(v2, this.textField.maxhscroll)); } else { var v2 = this.textField.scroll; var v3 = this.textField.bottomScroll - this.textField.scroll; this.setScrollProperties(v3, 1, this.textField.maxscroll); this.__set__scrollPosition(Math.min(v2, this.textField.maxscroll)); } }; v2.__get__horizontal = function () { return this.wasHorizontal; }; v2.__set__horizontal = function (v) { this.wasHorizontal = v; if (v and this.initializing) { if (this._rotation == 90) { return undefined; } this._xscale = -100; this._rotation = -90; } if (!this.initializing) { if (v) { if (this._rotation == 0) { this._rotation = -90; this._xscale = -100; } } else { if (this._rotation == -90) { this._rotation = 0; this._xscale = 100; } } } return this.__get__horizontal(); }; v2.callback = function (prop, oldval, newval) { clearInterval(this.hScroller.synchScroll); clearInterval(this.vScroller.synchScroll); this.hScroller.synchScroll = setInterval(this.hScroller, 'onTextChanged', 50); this.vScroller.synchScroll = setInterval(this.vScroller, 'onTextChanged', 50); return newval; }; v2.setScrollTarget = function (tF) { if (tF == undefined) { this.textField.removeListener(this); delete this.textField[this.__get__horizontal() ? 'hScroller' : 'vScroller']; if (this.textField.hScroller != undefined && this.textField.vScroller != undefined) { this.textField.unwatch('text'); this.textField.unwatch('htmltext'); } } this.textField = undefined; if (!(tF instanceof TextField)) { return undefined; } this.textField = tF; if (this.__get__horizontal()) { this.textField.hScroller = this; this.textField.hScroller.lineScrollSize = 5; } else { this.textField.vScroller = this; this.textField.vScroller.lineScrollSize = 1; } this.onTextChanged(); this.onChanged = function (Void) { this.onTextChanged(); }; this.onScroller = function (Void) { if (!this.isScrolling) { if (!this.horizontal) { this.scrollPosition = this.textField.scroll; } else { this.scrollPosition = this.textField.hscroll; } } }; this.textField.addListener(this); this.textField.watch('text', this.callback); this.textField.watch('htmlText', this.callback); }; v2.scrollHandler = function (Void) { if (this.__get__horizontal()) { var v2 = this.textField.background; this.textField.hscroll = this.scrollPosition; this.textField.background = v2; } else { this.textField.scroll = this.scrollPosition; } }; v2.setEnabled = function (enable) { super.setEnabled(enable); if (enable) { this.textField.addListener(this); } else { this.textField.removeListener(); } }; v2.dispatchScrollEvent = function (detail) { this.dispatchEvent({'type': 'scroll'}); }; v1.symbolName = 'UIScrollBar'; v1.symbolOwner = mx.controls.UIScrollBar; v2.className = 'UIScrollBar'; v2.clipParameters = {'_targetInstanceName': 1, 'horizontal': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.UIScrollBar.prototype.clipParameters); v1.version = '2.0.2.126'; v2.addProperty('_targetInstanceName', v2.__get___targetInstanceName, v2.__set___targetInstanceName); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('horizontal', v2.__get__horizontal, v2.__set__horizontal); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.controls.UIScrollBar.prototype, null, 1); } #endinitclip } movieClip 1072 __Packages.mx.skins.SkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.SkinElement) { var v1 = function () { super(); }; mx.skins.SkinElement = v1; var v2 = new MovieClip(); mx.skins.SkinElement.prototype = v2; v1.registerElement = function (name, className) { Object.registerClass(name, (className == undefined) ? mx.skins.SkinElement : className); _global.skinRegistry[name] = true; }; v2.__set__visible = function (visible) { this._visible = visible; }; v2.move = function (x, y) { this._x = x; this._y = y; }; v2.setSize = function (w, h) { this._width = w; this._height = h; }; ASSetPropFlags(mx.skins.SkinElement.prototype, null, 1); } #endinitclip } movieClip 1073 __Packages.mx.styles.CSSTextStyles { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSTextStyles) { var v1 = function () {}; mx.styles.CSSTextStyles = v1; var v2 = v1.prototype; v1.addTextStyles = function (o, bColor) { o.addProperty('textAlign', function () { return this._tf.align; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.align = x; }); o.addProperty('fontWeight', function () { return (this._tf.bold != undefined) ? (this._tf.bold ? 'bold' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.bold = x == 'bold'; }); if (bColor) { o.addProperty('color', function () { return this._tf.color; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.color = x; }); } o.addProperty('fontFamily', function () { return this._tf.font; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.font = x; }); o.addProperty('textIndent', function () { return this._tf.indent; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.indent = x; }); o.addProperty('fontStyle', function () { return (this._tf.italic != undefined) ? (this._tf.italic ? 'italic' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.italic = x == 'italic'; }); o.addProperty('marginLeft', function () { return this._tf.leftMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.leftMargin = x; }); o.addProperty('marginRight', function () { return this._tf.rightMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.rightMargin = x; }); o.addProperty('fontSize', function () { return this._tf.size; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.size = x; }); o.addProperty('textDecoration', function () { return (this._tf.underline != undefined) ? (this._tf.underline ? 'underline' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.underline = x == 'underline'; }); o.addProperty('embedFonts', function () { return this._tf.embedFonts; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.embedFonts = x; }); }; ASSetPropFlags(mx.styles.CSSTextStyles.prototype, null, 1); } #endinitclip } movieClip 1074 __Packages.mx.styles.StyleManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.StyleManager) { var v1 = function () {}; mx.styles.StyleManager = v1; var v2 = v1.prototype; v1.registerInheritingStyle = function (styleName) { mx.styles.StyleManager.inheritingStyles[styleName] = true; }; v1.isInheritingStyle = function (styleName) { return mx.styles.StyleManager.inheritingStyles[styleName] == true; }; v1.registerColorStyle = function (styleName) { mx.styles.StyleManager.colorStyles[styleName] = true; }; v1.isColorStyle = function (styleName) { return mx.styles.StyleManager.colorStyles[styleName] == true; }; v1.registerColorName = function (colorName, colorValue) { mx.styles.StyleManager.colorNames[colorName] = colorValue; }; v1.isColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName] != undefined; }; v1.getColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName]; }; v1.inheritingStyles = {'color': true, 'direction': true, 'fontFamily': true, 'fontSize': true, 'fontStyle': true, 'fontWeight': true, 'textAlign': true, 'textIndent': true}; v1.colorStyles = {'barColor': true, 'trackColor': true, 'borderColor': true, 'buttonColor': true, 'color': true, 'dateHeaderColor': true, 'dateRollOverColor': true, 'disabledColor': true, 'fillColor': true, 'highlightColor': true, 'scrollTrackColor': true, 'selectedDateColor': true, 'shadowColor': true, 'strokeColor': true, 'symbolBackgroundColor': true, 'symbolBackgroundDisabledColor': true, 'symbolBackgroundPressedColor': true, 'symbolColor': true, 'symbolDisabledColor': true, 'themeColor': true, 'todayIndicatorColor': true, 'shadowCapColor': true, 'borderCapColor': true, 'focusColor': true}; v1.colorNames = {'black': 0, 'white': 16777215, 'red': 16711680, 'green': 65280, 'blue': 255, 'magenta': 16711935, 'yellow': 16776960, 'cyan': 65535, 'haloGreen': 8453965, 'haloBlue': 2881013, 'haloOrange': 16761344}; v1.TextFormatStyleProps = {'font': true, 'size': true, 'color': true, 'leftMargin': false, 'rightMargin': false, 'italic': true, 'bold': true, 'align': true, 'indent': true, 'underline': false, 'embedFonts': false}; v1.TextStyleMap = {'textAlign': true, 'fontWeight': true, 'color': true, 'fontFamily': true, 'textIndent': true, 'fontStyle': true, 'lineHeight': true, 'marginLeft': true, 'marginRight': true, 'fontSize': true, 'textDecoration': true, 'embedFonts': true}; ASSetPropFlags(mx.styles.StyleManager.prototype, null, 1); } #endinitclip } movieClip 1075 __Packages.mx.styles.CSSStyleDeclaration { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSStyleDeclaration) { var v1 = function () {}; mx.styles.CSSStyleDeclaration = v1; var v2 = v1.prototype; v2.__getTextFormat = function (tf, bAll) { var v5 = false; if (this._tf != undefined) { var v2; for (v2 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v2]) { if (tf[v2] == undefined) { var v3 = this._tf[v2]; if (v3 != undefined) { tf[v2] = v3; } else { v5 = true; } } } } return v5; } v5 = true; return v5; }; v2.getStyle = function (styleProp) { var v2 = this[styleProp]; var v3 = mx.styles.StyleManager.getColorName(v2); return (v3 == undefined) ? v2 : v3; }; v1.classConstruct = function () { mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true); return true; }; v1.classConstructed = mx.styles.CSSStyleDeclaration.classConstruct(); v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; ASSetPropFlags(mx.styles.CSSStyleDeclaration.prototype, null, 1); } #endinitclip } movieClip 1076 __Packages.mx.skins.Border { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.Border) { var v1 = function () { super(); }; mx.skins.Border = v1; var v2 = new mx.core.UIObject(); mx.skins.Border.prototype = v2; v2.init = function (Void) { super.init(); }; v1.symbolName = 'Border'; v1.symbolOwner = mx.skins.Border; v2.className = 'Border'; v2.tagBorder = 0; v2.idNames = new Array('border_mc'); ASSetPropFlags(mx.skins.Border.prototype, null, 1); } #endinitclip } movieClip 1077 __Packages.mx.skins.CustomBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.CustomBorder) { var v1 = function () { super(); }; mx.skins.CustomBorder = v1; var v2 = new mx.skins.Border(); mx.skins.CustomBorder.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.init = function (Void) { super.init(); }; v2.createChildren = function (Void) {}; v2.draw = function (Void) { if (this.l_mc == undefined) { var v2 = this.setSkin(mx.skins.CustomBorder.tagL, this.leftSkin); if (this.horizontal) { this.minHeight = this.l_mc._height; this.minWidth = this.l_mc._width; } else { this.minHeight = this.l_mc._height; this.minWidth = this.l_mc._width; } } if (this.m_mc == undefined) { this.setSkin(mx.skins.CustomBorder.tagM, this.middleSkin); if (this.horizontal) { this.minHeight = this.m_mc._height; this.minWidth += this.m_mc._width; } else { this.minHeight += this.m_mc._height; this.minWidth = this.m_mc._width; } } if (this.r_mc == undefined) { this.setSkin(mx.skins.CustomBorder.tagR, this.rightSkin); if (this.horizontal) { this.minHeight = this.r_mc._height; this.minWidth += this.r_mc._width; } else { this.minHeight += this.r_mc._height; this.minWidth = this.r_mc._width; } } this.size(); }; v2.size = function (Void) { this.l_mc.move(0, 0); if (this.horizontal) { this.r_mc.move(this.__get__width() - this.r_mc.width, 0); this.m_mc.move(this.l_mc.width, 0); this.m_mc.setSize(this.r_mc.x - this.m_mc.x, this.m_mc.height); } else { this.r_mc.move(0, this.__get__height() - this.r_mc.height, 0); this.m_mc.move(0, this.l_mc.height); this.m_mc.setSize(this.m_mc.width, this.r_mc.y - this.m_mc.y); } }; v1.symbolName = 'CustomBorder'; v1.symbolOwner = mx.skins.CustomBorder; v1.version = '2.0.2.126'; v2.className = 'CustomBorder'; v1.tagL = 0; v1.tagM = 1; v1.tagR = 2; v2.idNames = new Array('l_mc', 'm_mc', 'r_mc'); v2.leftSkin = 'F3PieceLeft'; v2.middleSkin = 'F3PieceMiddle'; v2.rightSkin = 'F3PieceRight'; v2.horizontal = true; v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.skins.CustomBorder.prototype, null, 1); } #endinitclip } movieClip 1078 __Packages.mx.controls.scrollClasses.ScrollThumb { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.scrollClasses) { _global.mx.controls.scrollClasses = new Object(); } if (!_global.mx.controls.scrollClasses.ScrollThumb) { var v1 = function () { super(); }; mx.controls.scrollClasses.ScrollThumb = v1; var v2 = new mx.skins.CustomBorder(); mx.controls.scrollClasses.ScrollThumb.prototype = v2; v2.createChildren = function (Void) { super.createChildren(); this.useHandCursor = false; }; v2.setRange = function (_ymin, _ymax, _datamin, _datamax) { this.ymin = _ymin; this.ymax = _ymax; this.datamin = _datamin; this.datamax = _datamax; }; v2.dragThumb = function (Void) { this.scrollMove = this._ymouse - this.lastY; this.scrollMove += this._y; if (this.scrollMove < this.ymin) { this.scrollMove = this.ymin; } else { if (this.scrollMove > this.ymax) { this.scrollMove = this.ymax; } } this._parent.isScrolling = true; this._y = this.scrollMove; var v2 = Math.round((this.datamax - this.datamin) * (this._y - this.ymin) / (this.ymax - this.ymin)) + this.datamin; this._parent.scrollPosition = v2; this._parent.dispatchScrollEvent('ThumbTrack'); updateAfterEvent(); }; v2.stopDragThumb = function (Void) { this._parent.isScrolling = false; this._parent.dispatchScrollEvent('ThumbPosition'); this._parent.dispatchScrollChangedEvent(); delete this.onMouseMove; }; v2.onPress = function (Void) { this._parent.pressFocus(); this.lastY = this._ymouse; this.onMouseMove = this.dragThumb; super.onPress(); }; v2.onRelease = function (Void) { this._parent.releaseFocus(); this.stopDragThumb(); super.onRelease(); }; v2.onReleaseOutside = function (Void) { this._parent.releaseFocus(); this.stopDragThumb(); super.onReleaseOutside(); }; v2.draw = function () { super.draw(); if (this.grip_mc == undefined) { this.setSkin(3, this.gripSkin); } }; v2.size = function () { super.size(); this.grip_mc.move((this.__get__width() - this.grip_mc.width) / 2, (this.__get__height() - this.grip_mc.height) / 2); }; v1.symbolOwner = mx.skins.CustomBorder.symbolOwner; v2.className = 'ScrollThumb'; v2.btnOffset = 0; v2.horizontal = false; v2.idNames = new Array('l_mc', 'm_mc', 'r_mc', 'grip_mc'); ASSetPropFlags(mx.controls.scrollClasses.ScrollThumb.prototype, null, 1); } #endinitclip } movieClip 1079 __Packages.mx.controls.SimpleButton { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.SimpleButton) { var v1 = function () { super(); }; mx.controls.SimpleButton = v1; var v2 = new mx.core.UIComponent(); mx.controls.SimpleButton.prototype = v2; v2.init = function (Void) { super.init(); if (this.preset == undefined) { this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; } this.useHandCursor = false; }; v2.createChildren = function (Void) { if (this.preset != undefined) { var v2 = this[this.idNames[this.preset]]; this[this.refNames[this.preset]] = v2; this.skinName = v2; if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } this.initializing = false; } else { if (this.__state == true) { this.setStateVar(true); } else { if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } } } }; v2.setIcon = function (tag, linkageName) { return this.setSkin(tag + 8, linkageName); }; v2.changeIcon = function (tag, linkageName) { this.linkLength = linkageName.length; var v2 = this.stateNames[tag] + 'Icon'; this[v2] = linkageName; this[this.idNames[tag + 8]] = v2; this.setStateVar(this.getState()); }; v2.changeSkin = function (tag, linkageName) { var v2 = this.stateNames[tag] + 'Skin'; this[v2] = linkageName; this[this.idNames[tag]] = v2; this.setStateVar(this.getState()); }; v2.viewIcon = function (varName) { var v4 = varName + 'Icon'; var v3 = this[v4]; if (typeof v3 == 'string') { var v5 = v3; if (this.__emphasized) { if (this[v3 + 'Emphasized'].length > 0) { v3 += 'Emphasized'; } } if (this[v3].length == 0) { return undefined; } v3 = this.setIcon(this.tagMap[v5], this[v3]); if (v3 == undefined && _global.isLivePreview) { v3 = this.setIcon(0, 'ButtonIcon'); } this[v4] = v3; } this.iconName._visible = false; this.iconName = v3; this.iconName._visible = true; }; v2.removeIcons = function () { var v3 = 0; while (v3 < 2) { var v2 = 8; while (v2 < 16) { this.destroyObject(this.idNames[v2]); this[this.stateNames[v2 - 8] + 'Icon'] = ''; ++v2; } ++v3; } this.refresh(); }; v2.setSkin = function (tag, linkageName, initobj) { if (initobj == undefined) { var v3 = super.setSkin(tag, linkageName, {'styleName': this}); this.calcSize(tag, v3); return v3; } var v3 = super.setSkin(tag, linkageName, initobj); this.calcSize(tag, v3); return v3; }; v2.calcSize = function (Void) { this.__width = this._width; this.__height = this._height; }; v2.viewSkin = function (varName, initObj) { var v3 = varName + 'Skin'; var v2 = this[v3]; if (typeof v2 == 'string') { var v4 = v2; if (this.__emphasized) { if (this[v2 + 'Emphasized'].length > 0) { v2 += 'Emphasized'; } } if (this[v2].length == 0) { return undefined; } v2 = this.setSkin(this.tagMap[v4], this[v2], (initObj != undefined) ? initObj : {'styleName': this}); this[v3] = v2; } this.skinName._visible = false; this.skinName = v2; this.skinName._visible = true; }; v2.showEmphasized = function (e) { if (e && !this.__emphatic) { if (mx.controls.SimpleButton.emphasizedStyleDeclaration != undefined) { this.__emphaticStyleName = this.styleName; this.styleName = mx.controls.SimpleButton.emphasizedStyleDeclaration; } this.__emphatic = true; } else { if (this.__emphatic) { this.styleName = this.__emphaticStyleName; } this.__emphatic = false; } }; v2.refresh = function (Void) { var v2 = this.getState(); if (this.enabled == false) { this.viewIcon('disabled'); this.viewSkin('disabled'); } else { this.viewSkin(this.phase); this.viewIcon(this.phase); } this.setView(this.phase == 'down'); this.iconName.enabled = this.enabled; }; v2.setView = function (offset) { if (this.iconName == undefined) { return undefined; } var v2 = offset ? this.btnOffset : 0; this.iconName._x = (this.__width - this.iconName._width) / 2 + v2; this.iconName._y = (this.__height - this.iconName._height) / 2 + v2; }; v2.setStateVar = function (state) { if (state) { if (this.trueOverSkin.length == 0) { this.rolloverSkin = this.tus; } else { this.rolloverSkin = this.trs; } if (this.trueOverIcon.length == 0) { this.rolloverIcon = this.tui; } else { this.rolloverIcon = this.tri; } this.upSkin = this.tus; this.downSkin = this.tds; this.disabledSkin = this.dts; this.upIcon = this.tui; this.downIcon = this.tdi; this.disabledIcon = this.dti; } else { if (this.falseOverSkin.length == 0) { this.rolloverSkin = this.fus; } else { this.rolloverSkin = this.frs; } if (this.falseOverIcon.length == 0) { this.rolloverIcon = this.fui; } else { this.rolloverIcon = this.fri; } this.upSkin = this.fus; this.downSkin = this.fds; this.disabledSkin = this.dfs; this.upIcon = this.fui; this.downIcon = this.fdi; this.disabledIcon = this.dfi; } this.__state = state; }; v2.setState = function (state) { if (state != this.__state) { this.setStateVar(state); this.invalidate(); } }; v2.size = function (Void) { this.refresh(); }; v2.draw = function (Void) { if (this.initializing) { this.initializing = false; this.skinName.visible = true; this.iconName.visible = true; } this.size(); }; v2.getState = function (Void) { return this.__state; }; v2.setToggle = function (val) { this.__toggle = val; if (this.__toggle == false) { this.setState(false); } }; v2.getToggle = function (Void) { return this.__toggle; }; v2.__set__toggle = function (val) { this.setToggle(val); return this.__get__toggle(); }; v2.__get__toggle = function () { return this.getToggle(); }; v2.__set__value = function (val) { this.setSelected(val); return this.__get__value(); }; v2.__get__value = function () { return this.getSelected(); }; v2.__set__selected = function (val) { this.setSelected(val); return this.__get__selected(); }; v2.__get__selected = function () { return this.getSelected(); }; v2.setSelected = function (val) { if (this.__toggle) { this.setState(val); } else { this.setState(this.initializing ? val : this.__state); } }; v2.getSelected = function () { return this.__state; }; v2.setEnabled = function (val) { if (this.enabled != val) { super.setEnabled(val); this.invalidate(); } }; v2.onPress = function (Void) { this.pressFocus(); this.phase = 'down'; this.refresh(); this.dispatchEvent({'type': 'buttonDown'}); if (this.autoRepeat) { this.interval = setInterval(this, 'onPressDelay', this.getStyle('repeatDelay')); } }; v2.onPressDelay = function (Void) { this.dispatchEvent({'type': 'buttonDown'}); if (this.autoRepeat) { clearInterval(this.interval); this.interval = setInterval(this, 'onPressRepeat', this.getStyle('repeatInterval')); } }; v2.onPressRepeat = function (Void) { this.dispatchEvent({'type': 'buttonDown'}); updateAfterEvent(); }; v2.onRelease = function (Void) { this.releaseFocus(); this.phase = 'rollover'; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } if (this.getToggle()) { this.setState(!this.getState()); } else { this.refresh(); } this.dispatchEvent({'type': 'click'}); }; v2.onDragOut = function (Void) { this.phase = 'up'; this.refresh(); this.dispatchEvent({'type': 'buttonDragOut'}); }; v2.onDragOver = function (Void) { if (this.phase != 'up') { this.onPress(); return undefined; } else { this.phase = 'down'; this.refresh(); } }; v2.onReleaseOutside = function (Void) { this.releaseFocus(); this.phase = 'up'; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } }; v2.onRollOver = function (Void) { this.phase = 'rollover'; this.refresh(); }; v2.onRollOut = function (Void) { this.phase = 'up'; this.refresh(); }; v2.getLabel = function (Void) { return this.fui.text; }; v2.setLabel = function (val) { if (typeof this.fui == 'string') { this.createLabel('fui', 8, val); this.fui.styleName = this; } else { this.fui.text = val; } var v4 = this.fui._getTextFormat(); var v2 = v4.getTextExtent2(val); this.fui._width = v2.width + 5; this.fui._height = v2.height + 5; this.iconName = this.fui; this.setView(this.__state); }; v2.__get__emphasized = function () { return this.__emphasized; }; v2.__set__emphasized = function (val) { this.__emphasized = val; var v2 = 0; while (v2 < 8) { this[this.idNames[v2]] = this.stateNames[v2] + 'Skin'; if (typeof this[this.idNames[v2 + 8]] == 'movieclip') { this[this.idNames[v2 + 8]] = this.stateNames[v2] + 'Icon'; } ++v2; } this.showEmphasized(this.__emphasized); this.setStateVar(this.__state); this.invalidateStyle(); return this.__get__emphasized(); }; v2.keyDown = function (e) { if (e.code == 32) { this.onPress(); } }; v2.keyUp = function (e) { if (e.code == 32) { this.onRelease(); } }; v2.onKillFocus = function (newFocus) { super.onKillFocus(); if (this.phase != 'up') { this.phase = 'up'; this.refresh(); } }; v1.symbolName = 'SimpleButton'; v1.symbolOwner = mx.controls.SimpleButton; v1.version = '2.0.2.126'; v2.className = 'SimpleButton'; v2.style3dInset = 4; v2.btnOffset = 1; v2.__toggle = false; v2.__state = false; v2.__emphasized = false; v2.__emphatic = false; v1.falseUp = 0; v1.falseDown = 1; v1.falseOver = 2; v1.falseDisabled = 3; v1.trueUp = 4; v1.trueDown = 5; v1.trueOver = 6; v1.trueDisabled = 7; v2.falseUpSkin = 'SimpleButtonUp'; v2.falseDownSkin = 'SimpleButtonIn'; v2.falseOverSkin = ''; v2.falseDisabledSkin = 'SimpleButtonUp'; v2.trueUpSkin = 'SimpleButtonIn'; v2.trueDownSkin = ''; v2.trueOverSkin = ''; v2.trueDisabledSkin = 'SimpleButtonIn'; v2.falseUpIcon = ''; v2.falseDownIcon = ''; v2.falseOverIcon = ''; v2.falseDisabledIcon = ''; v2.trueUpIcon = ''; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = ''; v2.phase = 'up'; v2.fui = 'falseUpIcon'; v2.fus = 'falseUpSkin'; v2.fdi = 'falseDownIcon'; v2.fds = 'falseDownSkin'; v2.frs = 'falseOverSkin'; v2.fri = 'falseOverIcon'; v2.dfi = 'falseDisabledIcon'; v2.dfs = 'falseDisabledSkin'; v2.tui = 'trueUpIcon'; v2.tus = 'trueUpSkin'; v2.tdi = 'trueDownIcon'; v2.tds = 'trueDownSkin'; v2.trs = 'trueOverSkin'; v2.tri = 'trueOverIcon'; v2.dts = 'trueDisabledSkin'; v2.dti = 'trueDisabledIcon'; v2.rolloverSkin = mx.controls.SimpleButton.prototype.frs; v2.rolloverIcon = mx.controls.SimpleButton.prototype.fri; v2.upSkin = mx.controls.SimpleButton.prototype.fus; v2.downSkin = mx.controls.SimpleButton.prototype.fds; v2.disabledSkin = mx.controls.SimpleButton.prototype.dfs; v2.upIcon = mx.controls.SimpleButton.prototype.fui; v2.downIcon = mx.controls.SimpleButton.prototype.fdi; v2.disabledIcon = mx.controls.SimpleButton.prototype.dfi; v2.initializing = true; v2.idNames = ['fus', 'fds', 'frs', 'dfs', 'tus', 'tds', 'trs', 'dts', 'fui', 'fdi', 'fri', 'dfi', 'tui', 'tdi', 'tri', 'dti']; v2.stateNames = ['falseUp', 'falseDown', 'falseOver', 'falseDisabled', 'trueUp', 'trueDown', 'trueOver', 'trueDisabled']; v2.refNames = ['upSkin', 'downSkin', 'rolloverSkin', 'disabledSkin']; v2.tagMap = {'falseUpSkin': 0, 'falseDownSkin': 1, 'falseOverSkin': 2, 'falseDisabledSkin': 3, 'trueUpSkin': 4, 'trueDownSkin': 5, 'trueOverSkin': 6, 'trueDisabledSkin': 7, 'falseUpIcon': 0, 'falseDownIcon': 1, 'falseOverIcon': 2, 'falseDisabledIcon': 3, 'trueUpIcon': 4, 'trueDownIcon': 5, 'trueOverIcon': 6, 'trueDisabledIcon': 7}; v2.addProperty('emphasized', v2.__get__emphasized, v2.__set__emphasized); v2.addProperty('selected', v2.__get__selected, v2.__set__selected); v2.addProperty('toggle', v2.__get__toggle, v2.__set__toggle); v2.addProperty('value', v2.__get__value, v2.__set__value); ASSetPropFlags(mx.controls.SimpleButton.prototype, null, 1); } #endinitclip } movieClip 1080 __Packages.mx.controls.VScrollBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.VScrollBar) { var v1 = function () { super(); }; mx.controls.VScrollBar = v1; var v2 = new mx.controls.scrollClasses.ScrollBar(); mx.controls.VScrollBar.prototype = v2; v2.init = function (Void) { super.init(); }; v2.isScrollBarKey = function (k) { if (k == 38) { this.scrollIt('Line', -1); return true; return super.isScrollBarKey(k); } if (k == 40) { this.scrollIt('Line', 1); return true; return super.isScrollBarKey(k); } if (k == 33) { this.scrollIt('Page', -1); return true; return super.isScrollBarKey(k); } if (k == 34) { this.scrollIt('Page', 1); return true; } return super.isScrollBarKey(k); }; v1.symbolName = 'VScrollBar'; v1.symbolOwner = mx.core.UIComponent; v1.version = '2.0.2.126'; v2.className = 'VScrollBar'; v2.minusMode = 'Up'; v2.plusMode = 'Down'; v2.minMode = 'AtTop'; v2.maxMode = 'AtBottom'; ASSetPropFlags(mx.controls.VScrollBar.prototype, null, 1); } #endinitclip } movieClip 1081 __Packages.mx.controls.Button { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.Button) { var v1 = function () { super(); }; mx.controls.Button = v1; var v2 = new mx.controls.SimpleButton(); mx.controls.Button.prototype = v2; v2.init = function (Void) { super.init(); }; v2.draw = function () { if (this.initializing) { this.labelPath.visible = true; } super.draw(); if (this.initIcon != undefined) { this._setIcon(this.initIcon); } delete this.initIcon; }; v2.onRelease = function (Void) { super.onRelease(); }; v2.createChildren = function (Void) { super.createChildren(); }; v2.setSkin = function (tag, linkageName, initobj) { return super.setSkin(tag, linkageName, initobj); }; v2.viewSkin = function (varName) { var v3 = this.getState() ? 'true' : 'false'; v3 += this.enabled ? this.phase : 'disabled'; super.viewSkin(varName, {'styleName': this, 'borderStyle': v3}); }; v2.invalidateStyle = function (c) { this.labelPath.invalidateStyle(c); super.invalidateStyle(c); }; v2.setColor = function (c) { var v2 = 0; while (v2 < 8) { this[this.idNames[v2]].redraw(true); ++v2; } }; v2.setEnabled = function (enable) { this.labelPath.enabled = enable; super.setEnabled(enable); }; v2.calcSize = function (tag, ref) { if (this.__width == undefined || this.__height == undefined) { return undefined; } if (tag < 7) { ref.setSize(this.__width, this.__height, true); } }; v2.size = function (Void) { this.setState(this.getState()); this.setHitArea(this.__width, this.__height); var v3 = 0; while (v3 < 8) { var v4 = this.idNames[v3]; if (typeof this[v4] == 'movieclip') { this[v4].setSize(this.__width, this.__height, true); } ++v3; } super.size(); }; v2.__set__labelPlacement = function (val) { this.__labelPlacement = val; this.invalidate(); return this.__get__labelPlacement(); }; v2.__get__labelPlacement = function () { return this.__labelPlacement; }; v2.getLabelPlacement = function (Void) { return this.__labelPlacement; }; v2.setLabelPlacement = function (val) { this.__labelPlacement = val; this.invalidate(); }; v2.getBtnOffset = function (Void) { if (this.getState()) { var v2 = this.btnOffset; return v2; } if (this.phase == 'down') { v2 = this.btnOffset; return v2; } v2 = 0; return v2; }; v2.setView = function (offset) { var v16 = offset ? this.btnOffset : 0; var v12 = this.getLabelPlacement(); var v7 = 0; var v6 = 0; var v9 = 0; var v8 = 0; var v5 = 0; var v4 = 0; var v3 = this.labelPath; var v2 = this.iconName; var v15 = v3.textWidth; var v14 = v3.textHeight; var v10 = this.__width - this.borderW - this.borderW; var v11 = this.__height - this.borderW - this.borderW; if (v2 != undefined) { v7 = v2._width; v6 = v2._height; } if (v12 == 'left' || v12 == 'right') { if (v3 != undefined) { v9 = Math.min(v10 - v7, v15 + 5); v3._width = v9; v8 = Math.min(v11, v14 + 5); v3._height = v8; } if (v12 == 'right') { v5 = v7; if (this.centerContent) { v5 += (v10 - v9 - v7) / 2; } v2._x = v5 - v7; } else { v5 = v10 - v9 - v7; if (this.centerContent) { v5 /= 2; } v2._x = v5 + v9; } v4 = 0; v2._y = v4; if (this.centerContent) { v2._y = (v11 - v6) / 2; v4 = (v11 - v8) / 2; } if (!this.centerContent) { v2._y += Math.max(0, (v8 - v6) / 2); } } else { if (v3 != undefined) { v9 = Math.min(v10, v15 + 5); v3._width = v9; v8 = Math.min(v11 - v6, v14 + 5); v3._height = v8; } v5 = (v10 - v9) / 2; v2._x = (v10 - v7) / 2; if (v12 == 'top') { v4 = v11 - v8 - v6; if (this.centerContent) { v4 /= 2; } v2._y = v4 + v8; } else { v4 = v6; if (this.centerContent) { v4 += (v11 - v8 - v6) / 2; } v2._y = v4 - v6; } } var v13 = this.borderW + v16; v3._x = v5 + v13; v3._y = v4 + v13; v2._x += v13; v2._y += v13; }; v2.__set__label = function (lbl) { this.setLabel(lbl); return this.__get__label(); }; v2.setLabel = function (label) { if (label == '') { this.labelPath.removeTextField(); this.refresh(); return undefined; } if (this.labelPath == undefined) { var v2 = this.createLabel('labelPath', 200, label); v2._width = v2.textWidth + 5; v2._height = v2.textHeight + 5; if (this.initializing) { v2.visible = false; } } else { delete this.labelPath.__text; this.labelPath.text = label; this.refresh(); } }; v2.getLabel = function (Void) { return (this.labelPath.__text != undefined) ? this.labelPath.__text : this.labelPath.text; }; v2.__get__label = function () { return this.getLabel(); }; v2._getIcon = function (Void) { return this._iconLinkageName; }; v2.__get__icon = function () { if (this.initializing) { return this.initIcon; } return this._iconLinkageName; }; v2._setIcon = function (linkage) { if (this.initializing) { if (linkage == '') { return undefined; } this.initIcon = linkage; } else { if (linkage == '') { this.removeIcons(); return undefined; } super.changeIcon(0, linkage); super.changeIcon(1, linkage); super.changeIcon(3, linkage); super.changeIcon(4, linkage); super.changeIcon(5, linkage); this._iconLinkageName = linkage; this.refresh(); } }; v2.__set__icon = function (linkage) { this._setIcon(linkage); return this.__get__icon(); }; v2.setHitArea = function (w, h) { if (this.hitArea_mc == undefined) { this.createEmptyObject('hitArea_mc', 100); } var v2 = this.hitArea_mc; v2.clear(); v2.beginFill(16711680); v2.drawRect(0, 0, w, h); v2.endFill(); v2.setVisible(false); }; v1.symbolName = 'Button'; v1.symbolOwner = mx.controls.Button; v2.className = 'Button'; v1.version = '2.0.2.126'; v2.btnOffset = 0; v2._color = 'buttonColor'; v2.__label = 'default value'; v2.__labelPlacement = 'right'; v2.falseUpSkin = 'ButtonSkin'; v2.falseDownSkin = 'ButtonSkin'; v2.falseOverSkin = 'ButtonSkin'; v2.falseDisabledSkin = 'ButtonSkin'; v2.trueUpSkin = 'ButtonSkin'; v2.trueDownSkin = 'ButtonSkin'; v2.trueOverSkin = 'ButtonSkin'; v2.trueDisabledSkin = 'ButtonSkin'; v2.falseUpIcon = ''; v2.falseDownIcon = ''; v2.falseOverIcon = ''; v2.falseDisabledIcon = ''; v2.trueUpIcon = ''; v2.trueDownIcon = ''; v2.trueOverIcon = ''; v2.trueDisabledIcon = ''; v2.clipParameters = {'labelPlacement': 1, 'icon': 1, 'toggle': 1, 'selected': 1, 'label': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters); v2.centerContent = true; v2.borderW = 1; v2.addProperty('icon', v2.__get__icon, v2.__set__icon); v2.addProperty('label', v2.__get__label, v2.__set__label); v2.addProperty('labelPlacement', v2.__get__labelPlacement, v2.__set__labelPlacement); ASSetPropFlags(mx.controls.Button.prototype, null, 1); } #endinitclip } movieClip 1082 __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 1083 __Packages.mx.events.UIEventDispatcher { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.events) { _global.mx.events = new Object(); } if (!_global.mx.events.UIEventDispatcher) { var v1 = function () { super(); }; mx.events.UIEventDispatcher = v1; var v2 = new mx.events.EventDispatcher(); mx.events.UIEventDispatcher.prototype = v2; v1.addKeyEvents = function (obj) { if (obj.keyHandler == undefined) { obj.keyHandler = new Object(); var v1 = obj.keyHandler; v1.owner = obj; v1.onKeyDown = mx.events.UIEventDispatcher._fEventDispatcher.onKeyDown; v1.onKeyUp = mx.events.UIEventDispatcher._fEventDispatcher.onKeyUp; } Key.addListener(obj.keyHandler); }; v1.removeKeyEvents = function (obj) { Key.removeListener(obj.keyHandler); }; v1.addLoadEvents = function (obj) { if (obj.onLoad == undefined) { obj.onLoad = mx.events.UIEventDispatcher._fEventDispatcher.onLoad; obj.onUnload = mx.events.UIEventDispatcher._fEventDispatcher.onUnload; if (obj.getBytesTotal() == obj.getBytesLoaded()) { obj.doLater(obj, 'onLoad'); } } }; v1.removeLoadEvents = function (obj) { delete obj.onLoad; delete obj.onUnload; }; v1.initialize = function (obj) { if (mx.events.UIEventDispatcher._fEventDispatcher == undefined) { mx.events.UIEventDispatcher._fEventDispatcher = new mx.events.UIEventDispatcher(); } obj.addEventListener = mx.events.UIEventDispatcher._fEventDispatcher.__addEventListener; obj.__origAddEventListener = mx.events.UIEventDispatcher._fEventDispatcher.addEventListener; obj.removeEventListener = mx.events.UIEventDispatcher._fEventDispatcher.removeEventListener; obj.dispatchEvent = mx.events.UIEventDispatcher._fEventDispatcher.dispatchEvent; obj.dispatchQueue = mx.events.UIEventDispatcher._fEventDispatcher.dispatchQueue; }; v2.dispatchEvent = function (eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + 'Handler'](eventObj); this.dispatchQueue(mx.events.EventDispatcher, eventObj); this.dispatchQueue(this, eventObj); }; v2.onKeyDown = function (Void) { this.owner.dispatchEvent({'type': 'keyDown', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)}); }; v2.onKeyUp = function (Void) { this.owner.dispatchEvent({'type': 'keyUp', 'code': Key.getCode(), 'ascii': Key.getAscii(), 'shiftKey': Key.isDown(16), 'ctrlKey': Key.isDown(17)}); }; v2.onLoad = function (Void) { if (this.__sentLoadEvent != true) { this.dispatchEvent({'type': 'load'}); } this.__sentLoadEvent = true; }; v2.onUnload = function (Void) { this.dispatchEvent({'type': 'unload'}); }; v2.__addEventListener = function (event, handler) { this.__origAddEventListener(event, handler); var v3 = mx.events.UIEventDispatcher.lowLevelEvents; for (var v5 in v3) { if (mx.events.UIEventDispatcher[v5][event] != undefined) { var v2 = v3[v5][0]; mx.events.UIEventDispatcher[v2](this); } } }; v2.removeEventListener = function (event, handler) { var v6 = '__q_' + event; mx.events.EventDispatcher._removeEventListener(this[v6], event, handler); if (this[v6].length == 0) { var v2 = mx.events.UIEventDispatcher.lowLevelEvents; for (var v5 in v2) { if (mx.events.UIEventDispatcher[v5][event] != undefined) { var v3 = v2[v5][1]; mx.events.UIEventDispatcher[v2[v5][1]](this); } } } }; v1.keyEvents = {'keyDown': 1, 'keyUp': 1}; v1.loadEvents = {'load': 1, 'unload': 1}; v1.lowLevelEvents = {'keyEvents': ['addKeyEvents', 'removeKeyEvents'], 'loadEvents': ['addLoadEvents', 'removeLoadEvents']}; v1._fEventDispatcher = undefined; ASSetPropFlags(mx.events.UIEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 1084 __Packages.mx.skins.ColoredSkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.ColoredSkinElement) { var v1 = function () {}; mx.skins.ColoredSkinElement = v1; var v2 = v1.prototype; v2.setColor = function (c) { if (c != undefined) { var v2 = new Color(this); v2.setRGB(c); } }; v2.draw = function (Void) { this.setColor(this.getStyle(this._color)); this.onEnterFrame = undefined; }; v2.invalidateStyle = function (Void) { this.onEnterFrame = this.draw; }; v1.setColorStyle = function (p, colorStyle) { if (p._color == undefined) { p._color = colorStyle; } p.setColor = mx.skins.ColoredSkinElement.mixins.setColor; p.invalidateStyle = mx.skins.ColoredSkinElement.mixins.invalidateStyle; p.draw = mx.skins.ColoredSkinElement.mixins.draw; p.setColor(p.getStyle(colorStyle)); }; v1.mixins = new mx.skins.ColoredSkinElement(); ASSetPropFlags(mx.skins.ColoredSkinElement.prototype, null, 1); } #endinitclip } movieClip 1085 __Packages.mx.core.ext.UIObjectExtensions { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ext) { _global.mx.core.ext = new Object(); } if (!_global.mx.core.ext.UIObjectExtensions) { var v1 = function () {}; mx.core.ext.UIObjectExtensions = v1; var v2 = v1.prototype; v1.addGeometry = function (tf, ui) { tf.addProperty('width', ui.__get__width, null); tf.addProperty('height', ui.__get__height, null); tf.addProperty('left', ui.__get__left, null); tf.addProperty('x', ui.__get__x, null); tf.addProperty('top', ui.__get__top, null); tf.addProperty('y', ui.__get__y, null); tf.addProperty('right', ui.__get__right, null); tf.addProperty('bottom', ui.__get__bottom, null); tf.addProperty('visible', ui.__get__visible, ui.__set__visible); }; v1.Extensions = function () { if (mx.core.ext.UIObjectExtensions.bExtended == true) { return true; } mx.core.ext.UIObjectExtensions.bExtended = true; var v6 = mx.core.UIObject.prototype; var v9 = mx.skins.SkinElement.prototype; mx.core.ext.UIObjectExtensions.addGeometry(v9, v6); mx.events.UIEventDispatcher.initialize(v6); var v13 = mx.skins.ColoredSkinElement; mx.styles.CSSTextStyles.addTextStyles(v6); var v5 = MovieClip.prototype; v5.getTopLevel = v6.getTopLevel; v5.createLabel = v6.createLabel; v5.createObject = v6.createObject; v5.createClassObject = v6.createClassObject; v5.createEmptyObject = v6.createEmptyObject; v5.destroyObject = v6.destroyObject; _global.ASSetPropFlags(v5, 'getTopLevel', 1); _global.ASSetPropFlags(v5, 'createLabel', 1); _global.ASSetPropFlags(v5, 'createObject', 1); _global.ASSetPropFlags(v5, 'createClassObject', 1); _global.ASSetPropFlags(v5, 'createEmptyObject', 1); _global.ASSetPropFlags(v5, 'destroyObject', 1); v5.__getTextFormat = v6.__getTextFormat; v5._getTextFormat = v6._getTextFormat; v5.getStyleName = v6.getStyleName; v5.getStyle = v6.getStyle; _global.ASSetPropFlags(v5, '__getTextFormat', 1); _global.ASSetPropFlags(v5, '_getTextFormat', 1); _global.ASSetPropFlags(v5, 'getStyleName', 1); _global.ASSetPropFlags(v5, 'getStyle', 1); var v7 = TextField.prototype; mx.core.ext.UIObjectExtensions.addGeometry(v7, v6); v7.addProperty('enabled', function () { return this.__enabled; }, function (x) { this.__enabled = x; this.invalidateStyle(); }); v7.move = v9.move; v7.setSize = v9.setSize; v7.invalidateStyle = function () { this.invalidateFlag = true; }; v7.draw = function () { if (this.invalidateFlag) { this.invalidateFlag = false; var v2 = this._getTextFormat(); this.setTextFormat(v2); this.setNewTextFormat(v2); this.embedFonts = v2.embedFonts == true; if (this.__text != undefined) { if (this.text == '') { this.text = this.__text; } delete this.__text; } this._visible = true; } }; v7.setColor = function (color) { this.textColor = color; }; v7.getStyle = v5.getStyle; v7.__getTextFormat = v6.__getTextFormat; v7.setValue = function (v) { this.text = v; }; v7.getValue = function () { return this.text; }; v7.addProperty('value', function () { return this.getValue(); }, function (v) { this.setValue(v); }); v7._getTextFormat = function () { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2); this.stylecache.tf = v2; if (this.__enabled == false) { if (this.enabledColor == undefined) { var v4 = this.getTextFormat(); this.enabledColor = v4.color; } var v3 = this.getStyle('disabledColor'); v2.color = v3; return v2; } if (this.enabledColor != undefined) { if (v2.color == undefined) { v2.color = this.enabledColor; } } return v2; }; v7.getPreferredWidth = function () { this.draw(); return this.textWidth + 4; }; v7.getPreferredHeight = function () { this.draw(); return this.textHeight + 4; }; TextFormat.prototype.getTextExtent2 = function (s) { var v3 = _root._getTextExtent; if (v3 == undefined) { _root.createTextField('_getTextExtent', -2, 0, 0, 1000, 100); v3 = _root._getTextExtent; v3._visible = false; } _root._getTextExtent.text = s; var v4 = this.align; this.align = 'left'; _root._getTextExtent.setTextFormat(this); this.align = v4; return {'width': v3.textWidth, 'height': v3.textHeight}; }; if (_global.style == undefined) { _global.style = new mx.styles.CSSStyleDeclaration(); _global.cascadingStyles = true; _global.styles = new Object(); _global.skinRegistry = new Object(); if (_global._origWidth == undefined) { _global.origWidth = Stage.width; _global.origHeight = Stage.height; } } var v4 = _root; while (v4._parent != undefined) { v4 = v4._parent; } v4.addProperty('width', function () { return Stage.width; }, null); v4.addProperty('height', function () { return Stage.height; }, null); _global.ASSetPropFlags(v4, 'width', 1); _global.ASSetPropFlags(v4, 'height', 1); return true; }; v1.bExtended = false; v1.UIObjectExtended = mx.core.ext.UIObjectExtensions.Extensions(); v1.UIObjectDependency = mx.core.UIObject; v1.SkinElementDependency = mx.skins.SkinElement; v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; v1.UIEventDispatcherDependency = mx.events.UIEventDispatcher; ASSetPropFlags(mx.core.ext.UIObjectExtensions.prototype, null, 1); } #endinitclip } movieClip 1086 __Packages.mx.skins.halo.Defaults { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.Defaults) { var v1 = function () {}; mx.skins.halo.Defaults = v1; var v2 = v1.prototype; v1.setThemeDefaults = function () { var v2 = _global.style; v2.themeColor = 8453965; v2.disabledColor = 8684164; v2.modalTransparency = 0; v2.filled = true; v2.stroked = true; v2.strokeWidth = 1; v2.strokeColor = 0; v2.fillColor = 16777215; v2.repeatInterval = 35; v2.repeatDelay = 500; v2.fontFamily = '_sans'; v2.fontSize = 12; v2.selectionColor = 13500353; v2.rollOverColor = 14942166; v2.useRollOver = true; v2.backgroundDisabledColor = 14540253; v2.selectionDisabledColor = 14540253; v2.selectionDuration = 200; v2.openDuration = 250; v2.borderStyle = 'inset'; v2.color = 734012; v2.textSelectedColor = 24371; v2.textRollOverColor = 2831164; v2.textDisabledColor = 16777215; v2.vGridLines = true; v2.hGridLines = false; v2.vGridLineColor = 6710886; v2.hGridLineColor = 6710886; v2.headerColor = 15395562; v2.indentation = 17; v2.folderOpenIcon = 'TreeFolderOpen'; v2.folderClosedIcon = 'TreeFolderClosed'; v2.defaultLeafIcon = 'TreeNodeIcon'; v2.disclosureOpenIcon = 'TreeDisclosureOpen'; v2.disclosureClosedIcon = 'TreeDisclosureClosed'; v2.popupDuration = 150; v2.todayColor = 6710886; _global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.ScrollSelectList; v2.backgroundColor = 16777215; v2.borderColor = 13290186; v2.borderStyle = 'inset'; _global.styles.ComboBox = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.ComboBox; v2.borderStyle = 'inset'; _global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.NumericStepper; v2.textAlign = 'center'; _global.styles.RectBorder = new mx.styles.CSSStyleDeclaration(); v2 = _global.styles.RectBorder; v2.borderColor = 14015965; v2.buttonColor = 7305079; v2.shadowColor = 15658734; v2.highlightColor = 12897484; v2.shadowCapColor = 14015965; v2.borderCapColor = 9542041; var v4 = new Object(); v4.borderColor = 16711680; v4.buttonColor = 16711680; v4.shadowColor = 16711680; v4.highlightColor = 16711680; v4.shadowCapColor = 16711680; v4.borderCapColor = 16711680; mx.core.UIComponent.prototype.origBorderStyles = v4; var v3; _global.styles.TextInput = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.TextInput; v3.backgroundColor = 16777215; v3.borderStyle = 'inset'; _global.styles.TextArea = _global.styles.TextInput; _global.styles.Window = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Window; v3.borderStyle = 'default'; _global.styles.windowStyles = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.windowStyles; v3.fontWeight = 'bold'; _global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.dataGridStyles; v3.fontWeight = 'bold'; _global.styles.Alert = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Alert; v3.borderStyle = 'alert'; _global.styles.ScrollView = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.ScrollView; v3.borderStyle = 'inset'; _global.styles.View = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.View; v3.borderStyle = 'none'; _global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.ProgressBar; v3.color = 11187123; v3.fontWeight = 'bold'; _global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.AccordionHeader; v3.fontWeight = 'bold'; v3.fontSize = '11'; _global.styles.Accordion = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.Accordion; v3.borderStyle = 'solid'; v3.backgroundColor = 16777215; v3.borderColor = 9081738; v3.headerHeight = 22; v3.marginBottom = -1; v3.marginTop = -1; v3.marginRight = -1; v3.marginLeft = -1; v3.verticalGap = -1; _global.styles.DateChooser = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.DateChooser; v3.borderColor = 9542041; v3.headerColor = 16777215; _global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.CalendarLayout; v3.fontSize = 10; v3.textAlign = 'right'; v3.color = 2831164; _global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.WeekDayStyle; v3.fontWeight = 'bold'; v3.fontSize = 11; v3.textAlign = 'center'; v3.color = 2831164; _global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.TodayStyle; v3.color = 16777215; _global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration(); v3 = _global.styles.HeaderDateText; v3.fontSize = 12; v3.fontWeight = 'bold'; v3.textAlign = 'center'; }; v2.drawRoundRect = function (x, y, w, h, r, c, alpha, rot, gradient, ratios) { if (typeof r == 'object') { var v18 = r.br; var v16 = r.bl; var v15 = r.tl; var v10 = r.tr; } else { var v10 = r; var v15 = v10; var v16 = v15; var v18 = v16; } if (typeof c == 'object') { if (typeof alpha != 'object') { var v9 = [alpha, alpha]; } else { var v9 = alpha; } if (ratios == undefined) { ratios = [0, 255]; } var v14 = h * 0.7; if (typeof rot != 'object') { var v11 = {'matrixType': 'box', 'x': -v14, 'y': v14, 'w': w * 2, 'h': h * 4, 'r': rot * 0.0174532925199433}; } else { var v11 = rot; } if (gradient == 'radial') { this.beginGradientFill('radial', c, v9, ratios, v11); } else { this.beginGradientFill('linear', c, v9, ratios, v11); } } else { if (c != undefined) { this.beginFill(c, alpha); } } r = v18; var v13 = r - r * Math.SQRT1_2; var v12 = r - r * 0.414213562373095; this.moveTo(x + w, y + h - r); this.lineTo(x + w, y + h - r); this.curveTo(x + w, y + h - v12, x + w - v13, y + h - v13); this.curveTo(x + w - v12, y + h, x + w - r, y + h); r = v16; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x + r, y + h); this.curveTo(x + v12, y + h, x + v13, y + h - v13); this.curveTo(x, y + h - v12, x, y + h - r); r = v15; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x, y + r); this.curveTo(x, y + v12, x + v13, y + v13); this.curveTo(x + v12, y, x + r, y); r = v10; v13 = r - r * Math.SQRT1_2; v12 = r - r * 0.414213562373095; this.lineTo(x + w - r, y); this.curveTo(x + w - v12, y, x + w - v13, y + v13); this.curveTo(x + w, y + v12, x + w, y + r); this.lineTo(x + w, y + h - r); if (c != undefined) { this.endFill(); } }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); mx.skins.halo.Defaults.setThemeDefaults(); mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return true; }; v1.classConstructed = mx.skins.halo.Defaults.classConstruct(); v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; v1.UIObjectDependency = mx.core.UIObject; ASSetPropFlags(mx.skins.halo.Defaults.prototype, null, 1); } #endinitclip } movieClip 1087 __Packages.mx.managers.DepthManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.DepthManager) { var v1 = function () { MovieClip.prototype.createClassChildAtDepth = this.createClassChildAtDepth; MovieClip.prototype.createChildAtDepth = this.createChildAtDepth; MovieClip.prototype.setDepthTo = this.setDepthTo; MovieClip.prototype.setDepthAbove = this.setDepthAbove; MovieClip.prototype.setDepthBelow = this.setDepthBelow; MovieClip.prototype.findNextAvailableDepth = this.findNextAvailableDepth; MovieClip.prototype.shuffleDepths = this.shuffleDepths; MovieClip.prototype.getDepthByFlag = this.getDepthByFlag; MovieClip.prototype.buildDepthTable = this.buildDepthTable; _global.ASSetPropFlags(MovieClip.prototype, 'createClassChildAtDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'createChildAtDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthTo', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthAbove', 1); _global.ASSetPropFlags(MovieClip.prototype, 'setDepthBelow', 1); _global.ASSetPropFlags(MovieClip.prototype, 'findNextAvailableDepth', 1); _global.ASSetPropFlags(MovieClip.prototype, 'shuffleDepths', 1); _global.ASSetPropFlags(MovieClip.prototype, 'getDepthByFlag', 1); _global.ASSetPropFlags(MovieClip.prototype, 'buildDepthTable', 1); }; mx.managers.DepthManager = v1; var v2 = v1.prototype; v1.sortFunction = function (a, b) { if (a.getDepth() > b.getDepth()) { return 1; } return -1; }; v1.test = function (depth) { if (depth == mx.managers.DepthManager.reservedDepth) { return false; } else { return true; } }; v1.createClassObjectAtDepth = function (className, depthSpace, initObj) { var v1; switch (depthSpace) { case mx.managers.DepthManager.kCursor: v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTopmost, initObj); return v1; case mx.managers.DepthManager.kTooltip: v1 = mx.managers.DepthManager.holder.createClassChildAtDepth(className, mx.managers.DepthManager.kTop, initObj); return v1; } return v1; }; v1.createObjectAtDepth = function (linkageName, depthSpace, initObj) { var v1; switch (depthSpace) { case mx.managers.DepthManager.kCursor: v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTopmost, initObj); return v1; case mx.managers.DepthManager.kTooltip: v1 = mx.managers.DepthManager.holder.createChildAtDepth(linkageName, mx.managers.DepthManager.kTop, initObj); return v1; } return v1; }; v2.createClassChildAtDepth = function (className, depthFlag, initObj) { if (this._childCounter == undefined) { this._childCounter = 0; } var v3 = this.buildDepthTable(); var v2 = this.getDepthByFlag(depthFlag, v3); var v6 = 'down'; if (depthFlag == mx.managers.DepthManager.kBottom) { v6 = 'up'; } var v5; if (v3[v2] != undefined) { v5 = v2; v2 = this.findNextAvailableDepth(v2, v3, v6); } var v4 = this.createClassObject(className, 'depthChild' + this._childCounter++, v2, initObj); if (v5 != undefined) { v3[v2] = v4; this.shuffleDepths(v4, v5, v3, v6); } if (depthFlag == mx.managers.DepthManager.kTopmost) { v4._topmost = true; } return v4; }; v2.createChildAtDepth = function (linkageName, depthFlag, initObj) { if (this._childCounter == undefined) { this._childCounter = 0; } var v3 = this.buildDepthTable(); var v2 = this.getDepthByFlag(depthFlag, v3); var v6 = 'down'; if (depthFlag == mx.managers.DepthManager.kBottom) { v6 = 'up'; } var v5; if (v3[v2] != undefined) { v5 = v2; v2 = this.findNextAvailableDepth(v2, v3, v6); } var v4 = this.createObject(linkageName, 'depthChild' + this._childCounter++, v2, initObj); if (v5 != undefined) { v3[v2] = v4; this.shuffleDepths(v4, v5, v3, v6); } if (depthFlag == mx.managers.DepthManager.kTopmost) { v4._topmost = true; } return v4; }; v2.setDepthTo = function (depthFlag) { var v2 = this._parent.buildDepthTable(); var v3 = this._parent.getDepthByFlag(depthFlag, v2); if (v2[v3] != undefined) { this.shuffleDepths(this, v3, v2, undefined); } else { this.swapDepths(v3); } if (depthFlag == mx.managers.DepthManager.kTopmost) { this._topmost = true; } else { delete this._topmost; } }; v2.setDepthAbove = function (targetInstance) { if (targetInstance._parent != this._parent) { return undefined; } var v2 = targetInstance.getDepth() + 1; var v3 = this._parent.buildDepthTable(); if (v3[v2] != undefined && this.getDepth() < v2) { v2 -= 1; } if (v2 > mx.managers.DepthManager.highestDepth) { v2 = mx.managers.DepthManager.highestDepth; } if (v2 == mx.managers.DepthManager.highestDepth) { this._parent.shuffleDepths(this, v2, v3, 'down'); } else { if (v3[v2] != undefined) { this._parent.shuffleDepths(this, v2, v3, undefined); } else { this.swapDepths(v2); } } }; v2.setDepthBelow = function (targetInstance) { if (targetInstance._parent != this._parent) { return undefined; } var v6 = targetInstance.getDepth() - 1; var v3 = this._parent.buildDepthTable(); if (v3[v6] != undefined && this.getDepth() > v6) { v6 += 1; } var v4 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; var v5; for (v5 in v3) { var v2 = v3[v5]; if (v2._parent != undefined) { v4 = Math.min(v4, v2.getDepth()); } } if (v6 < v4) { v6 = v4; } if (v6 == v4) { this._parent.shuffleDepths(this, v6, v3, 'up'); } else { if (v3[v6] != undefined) { this._parent.shuffleDepths(this, v6, v3, undefined); } else { this.swapDepths(v6); } } }; v2.findNextAvailableDepth = function (targetDepth, depthTable, direction) { var v5 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; if (targetDepth < v5) { targetDepth = v5; } if (depthTable[targetDepth] == undefined) { return targetDepth; } var v2 = targetDepth; var v1 = targetDepth; if (direction == 'down') { while (depthTable[v1] != undefined) { --v1; } return v1; } while (depthTable[v2] != undefined) { ++v2; } return v2; }; v2.shuffleDepths = function (subject, targetDepth, depthTable, direction) { var v9 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; var v8 = v9; var v5; for (v5 in depthTable) { var v7 = depthTable[v5]; if (v7._parent != undefined) { v9 = Math.min(v9, v7.getDepth()); } } if (direction == undefined) { if (subject.getDepth() > targetDepth) { direction = 'up'; } else { direction = 'down'; } } var v1 = new Array(); for (v5 in depthTable) { v7 = depthTable[v5]; if (v7._parent != undefined) { v1.push(v7); } } v1.sort(mx.managers.DepthManager.sortFunction); if (direction == 'up') { var v3; var v11; while (v1.length > 0) { v3 = v1.pop(); if (v3 == subject) { break; } } while (v1.length > 0) { v11 = subject.getDepth(); v3 = v1.pop(); var v4 = v3.getDepth(); if (v11 > v4 + 1) { if (v4 >= 0) { subject.swapDepths(v4 + 1); } else { if (v11 > v8 && v4 < v8) { subject.swapDepths(v8); } } } subject.swapDepths(v3); if (v4 == targetDepth) { break; } } } else { if (direction == 'down') { var v3; while (v1.length > 0) { v3 = v1.shift(); if (v3 == subject) { break; } } while (v1.length > 0) { var v11 = v3.getDepth(); v3 = v1.shift(); var v4 = v3.getDepth(); if (v11 < v4 - 1 && v4 > 0) { subject.swapDepths(v4 - 1); } subject.swapDepths(v3); if (v4 == targetDepth) { break; } } } } }; v2.getDepthByFlag = function (depthFlag, depthTable) { var v2 = 0; if (depthFlag == mx.managers.DepthManager.kTop || depthFlag == mx.managers.DepthManager.kNotopmost) { var v5 = 0; var v7 = false; var v8; for (v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { if (!v9._topmost) { v2 = Math.max(v2, v9.getDepth()); } else { if (!v7) { v5 = v9.getDepth(); v7 = true; } else { v5 = Math.min(v5, v9.getDepth()); } } } } } v2 += 20; if (v7) { if (v2 >= v5) { v2 = v5 - 1; } } } else { if (depthFlag == mx.managers.DepthManager.kBottom) { for (var v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { v2 = Math.min(v2, v9.getDepth()); } } } v2 -= 20; } else { if (depthFlag == mx.managers.DepthManager.kTopmost) { for (var v8 in depthTable) { var v9 = depthTable[v8]; var v3 = typeof v9; if (v3 == 'movieclip' || v3 == 'object' && v9.__getTextFormat != undefined) { if (v9.getDepth() <= mx.managers.DepthManager.highestDepth) { v2 = Math.max(v2, v9.getDepth()); } } } v2 += 100; } } } if (v2 >= mx.managers.DepthManager.highestDepth) { v2 = mx.managers.DepthManager.highestDepth; } var v6 = mx.managers.DepthManager.lowestDepth + mx.managers.DepthManager.numberOfAuthortimeLayers; for (v9 in depthTable) { var v4 = depthTable[v9]; if (v4._parent != undefined) { v6 = Math.min(v6, v4.getDepth()); } } if (v2 <= v6) { v2 = v6; } return v2; }; v2.buildDepthTable = function (Void) { var v5 = new Array(); var v4; for (v4 in this) { var v2 = this[v4]; var v3 = typeof v2; if (v3 == 'movieclip' || v3 == 'object' && v2.__getTextFormat != undefined) { if (v2._parent == this) { v5[v2.getDepth()] = v2; } } } return v5; }; v1.reservedDepth = 1048575; v1.highestDepth = 1048574; v1.lowestDepth = -16383; v1.numberOfAuthortimeLayers = 383; v1.kCursor = 101; v1.kTooltip = 102; v1.kTop = 201; v1.kBottom = 202; v1.kTopmost = 203; v1.kNotopmost = 204; v1.holder = _root.createEmptyMovieClip('reserved', mx.managers.DepthManager.reservedDepth); v1.__depthManager = new mx.managers.DepthManager(); ASSetPropFlags(mx.managers.DepthManager.prototype, null, 1); } #endinitclip } movieClip 1088 __Packages.mx.managers.SystemManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.SystemManager) { var v1 = function () {}; mx.managers.SystemManager = v1; var v2 = v1.prototype; v1.init = function (Void) { if (mx.managers.SystemManager._initialized == false) { mx.managers.SystemManager._initialized = true; mx.events.EventDispatcher.initialize(mx.managers.SystemManager); Mouse.addListener(mx.managers.SystemManager); Stage.addListener(mx.managers.SystemManager); mx.managers.SystemManager._xAddEventListener = mx.managers.SystemManager.addEventListener; mx.managers.SystemManager.addEventListener = mx.managers.SystemManager.__addEventListener; mx.managers.SystemManager._xRemoveEventListener = mx.managers.SystemManager.removeEventListener; mx.managers.SystemManager.removeEventListener = mx.managers.SystemManager.__removeEventListener; } }; v1.addFocusManager = function (f) { mx.managers.SystemManager.form = f; f.focusManager.activate(); }; v1.removeFocusManager = function (f) {}; v1.onMouseDown = function (Void) { var v1 = mx.managers.SystemManager.form; v1.focusManager._onMouseDown(); }; v1.onResize = function (Void) { var v7 = Stage.width; var v6 = Stage.height; var v9 = _global.origWidth; var v8 = _global.origHeight; var v3 = Stage.align; var v5 = (v9 - v7) / 2; var v4 = (v8 - v6) / 2; if (v3 == 'T') { v4 = 0; } else { if (v3 == 'B') { v4 = v8 - v6; } else { if (v3 == 'L') { v5 = 0; } else { if (v3 == 'R') { v5 = v9 - v7; } else { if (v3 == 'LT') { v4 = 0; v5 = 0; } else { if (v3 == 'TR') { v4 = 0; v5 = v9 - v7; } else { if (v3 == 'LB') { v4 = v8 - v6; v5 = 0; } else { if (v3 == 'RB') { v4 = v8 - v6; v5 = v9 - v7; } } } } } } } } if (mx.managers.SystemManager.__screen == undefined) { mx.managers.SystemManager.__screen = new Object(); } mx.managers.SystemManager.__screen.x = v5; mx.managers.SystemManager.__screen.y = v4; mx.managers.SystemManager.__screen.width = v7; mx.managers.SystemManager.__screen.height = v6; _root.focusManager.relocate(); mx.managers.SystemManager.dispatchEvent({'type': 'resize'}); }; v1.__get__screen = function () { mx.managers.SystemManager.init(); if (mx.managers.SystemManager.__screen == undefined) { mx.managers.SystemManager.onResize(); } return mx.managers.SystemManager.__screen; }; v1._initialized = false; v1.idleFrames = 0; v1.isMouseDown = false; v1.forms = new Array(); v1.addProperty('screen', v1.__get__screen, function () {}); ASSetPropFlags(mx.managers.SystemManager.prototype, null, 1); } #endinitclip } movieClip 1089 __Packages.mx.managers.FocusManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.FocusManager) { var v1 = function () { super(); }; mx.managers.FocusManager = v1; var v2 = new mx.core.UIComponent(); mx.managers.FocusManager.prototype = v2; v2.__get__defaultPushButton = function () { return this.__defaultPushButton; }; v2.__set__defaultPushButton = function (x) { if (x != this.__defaultPushButton) { this.__defaultPushButton.__set__emphasized(false); this.__defaultPushButton = x; this.defPushButton = x; x.__set__emphasized(true); } return this.__get__defaultPushButton(); }; v2.getMaxTabIndex = function (o) { var v3 = 0; var v6; for (v6 in o) { var v2 = o[v6]; if (v2._parent == o) { if (v2.tabIndex != undefined) { if (v2.tabIndex > v3) { v3 = v2.tabIndex; } } if (v2.tabChildren == true) { var v4 = this.getMaxTabIndex(v2); if (v4 > v3) { v3 = v4; } } } } return v3; }; v2.getNextTabIndex = function (Void) { return this.getMaxTabIndex(this.form) + 1; }; v2.__get__nextTabIndex = function () { return this.getNextTabIndex(); }; v2.relocate = function (Void) { var v2 = mx.managers.SystemManager.__get__screen(); this.move(v2.x - 1, v2.y - 1); }; v2.init = function (Void) { super.init(); this.tabEnabled = false; this._height = 1; this._width = 1; this._y = -1; this._x = -1; this._alpha = 0; this._parent.focusManager = this; this._parent.tabChildren = true; this._parent.tabEnabled = false; this.form = this._parent; this._parent.addEventListener('hide', this); this._parent.addEventListener('reveal', this); mx.managers.SystemManager.init(); mx.managers.SystemManager.addFocusManager(this.form); this.tabCapture.tabIndex = 0; this.watch('enabled', this.enabledChanged); Selection.addListener(this); this.lastMouse = new Object(); _global.ASSetPropFlags(this._parent, 'focusManager', 1); _global.ASSetPropFlags(this._parent, 'tabChildren', 1); _global.ASSetPropFlags(this._parent, 'tabEnabled', 1); }; v2.enabledChanged = function (id, oldValue, newValue) { this._visible = newValue; return newValue; }; v2.activate = function (Void) { Key.addListener(this); this._visible = true; this.activated = this._visible; if (this.lastFocus != undefined) { this.bNeedFocus = true; if (!mx.managers.SystemManager.isMouseDown) { this.doLater(this, 'restoreFocus'); } } }; v2.deactivate = function (Void) { Key.removeListener(this); this._visible = false; this.activated = this._visible; var v2 = this.getSelectionFocus(); var v3 = this.getActualFocus(v2); if (this.isOurFocus(v3)) { this.lastSelFocus = v2; this.lastFocus = v3; } this.cancelAllDoLaters(); }; v2.isOurFocus = function (o) { if (o.focusManager == this) { return true; } while (o != undefined) { if (o.focusManager != undefined) { return false; } if (o._parent == this._parent) { return true; } o = o._parent; } return false; }; v2.onSetFocus = function (o, n) { if (n == null) { if (this.activated) { this.bNeedFocus = true; } } else { var v2 = this.getFocus(); if (this.isOurFocus(v2)) { this.bNeedFocus = false; this.lastFocus = v2; this.lastSelFocus = n; } } }; v2.restoreFocus = function (Void) { var v2 = this.lastSelFocus.hscroll; if (v2 != undefined) { var v5 = this.lastSelFocus.scroll; var v4 = this.lastSelFocus.background; } this.lastFocus.setFocus(); var v3 = Selection; Selection.setSelection(v3.lastBeginIndex, v3.lastEndIndex); if (v2 != undefined) { this.lastSelFocus.scroll = v5; this.lastSelFocus.hscroll = v2; this.lastSelFocus.background = v4; } }; v2.onUnload = function (Void) { mx.managers.SystemManager.removeFocusManager(this.form); }; v2.setFocus = function (o) { if (o == null) { Selection.setFocus(null); } else { if (o.setFocus == undefined) { Selection.setFocus(o); } else { o.setFocus(); } } }; v2.getActualFocus = function (o) { var v1 = o._parent; while (v1 != undefined) { if (v1.focusTextField != undefined) { while (v1.focusTextField != undefined) { o = v1; v1 = v1._parent; if (v1 == undefined) { return undefined; } if (v1.focusTextField == undefined) { return o; } } } if (v1.tabEnabled != true) { return o; } o = v1; v1 = o._parent; } return undefined; }; v2.getSelectionFocus = function () { var m = Selection.getFocus(); var o = eval(m); return o; }; v2.getFocus = function (Void) { var v2 = this.getSelectionFocus(); return this.getActualFocus(v2); }; v2.walkTree = function (p, index, groupName, dir, lookup, firstChild) { var v5 = true; var v11; for (v11 in p) { var v2 = p[v11]; if (v2._parent == p && v2.enabled != false && v2._visible != false && (v2.tabEnabled == true || v2.tabEnabled != false && (v2.onPress != undefined || v2.onRelease != undefined || v2.onReleaseOutside != undefined || v2.onDragOut != undefined || v2.onDragOver != undefined || v2.onRollOver != undefined || v2.onRollOut != undefined || v2 instanceof TextField))) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; if (v2 != this._lastTarget) { if ((v2.groupName != undefined || groupName != undefined) && v2.groupName == groupName) { continue; } if (v2 instanceof TextField && v2.selectable == false) { continue; } if (v5 || v2.groupName != undefined && v2.groupName == this._firstNode.groupName && v2.selected == true) { if (firstChild) { this._firstNode = v2; firstChild = false; } } if (this._nextIsNext == true) { if (v2.groupName != undefined && v2.groupName == this._nextNode.groupName && v2.selected == true || this._nextNode == undefined && (v2.groupName == undefined || v2.groupName != undefined && v2.groupName != groupName)) { this._nextNode = v2; } } if (v2.groupName == undefined || groupName != v2.groupName) { if (this._lastx.groupName != undefined && v2.groupName == this._lastx.groupName && this._lastx.selected == true) { } else { this._lastx = v2; } } } else { this._prevNode = this._lastx; this._needPrev = false; this._nextIsNext = true; } if (v2.tabIndex != undefined) { if (v2.tabIndex == index) { if (this._foundList[v2._name] == undefined) { if (this._needPrev) { this._prevObj = v2; this._needPrev = false; } this._nextObj = v2; } } if (dir && v2.tabIndex > index) { if (this._nextObj == undefined || this._nextObj.tabIndex > v2.tabIndex && (v2.groupName == undefined || this._nextObj.groupName == undefined || v2.groupName != this._nextObj.groupName) || this._nextObj.groupName != undefined && this._nextObj.groupName == v2.groupName && this._nextObj.selected != true && (v2.selected == true || this._nextObj.tabIndex > v2.tabIndex)) { this._nextObj = v2; } } else { if (!dir && v2.tabIndex < index) { if (this._prevObj == undefined || this._prevObj.tabIndex < v2.tabIndex && (v2.groupName == undefined || this._prevObj.groupName == undefined || v2.groupName != this._prevObj.groupName) || this._prevObj.groupName != undefined && this._prevObj.groupName == v2.groupName && this._prevObj.selected != true && (v2.selected == true || this._prevObj.tabIndex < v2.tabIndex)) { this._prevObj = v2; } } } if (this._firstObj == undefined || v2.tabIndex < this._firstObj.tabIndex && (v2.groupName == undefined || this._firstObj.groupName == undefined || v2.groupName != this._firstObj.groupName) || this._firstObj.groupName != undefined && this._firstObj.groupName == v2.groupName && this._firstObj.selected != true && (v2.selected == true || v2.tabIndex < this._firstObj.tabIndex)) { this._firstObj = v2; } if (this._lastObj == undefined || v2.tabIndex > this._lastObj.tabIndex && (v2.groupName == undefined || this._lastObj.groupName == undefined || v2.groupName != this._lastObj.groupName) || this._lastObj.groupName != undefined && this._lastObj.groupName == v2.groupName && this._lastObj.selected != true && (v2.selected == true || v2.tabIndex > this._lastObj.tabIndex)) { this._lastObj = v2; } } if (v2.tabChildren) { this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild); } v5 = false; } else { if (v2._parent == p && v2.tabChildren == true && v2._visible != false) { if (v2 == this._lastTarget) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; if (this._prevNode == undefined) { var v3 = this._lastx; var v7 = false; while (v3 != undefined) { if (v3 == v2) { v7 = true; break; } v3 = v3._parent; } if (v7 == false) { this._prevNode = this._lastx; } } this._needPrev = false; if (this._nextNode == undefined) { this._nextIsNext = true; } } else { if (!(v2.focusManager != undefined && v2.focusManager._parent == v2)) { if (v2._searchKey == this._searchKey) { continue; } v2._searchKey = this._searchKey; this.getTabCandidateFromChildren(v2, index, groupName, dir, v5 && firstChild); } } v5 = false; } } } this._lastNode = this._lastx; if (lookup) { if (p._parent != undefined) { if (p != this._parent) { if (this._prevNode == undefined && dir) { this._needPrev = true; } else { if (this._nextNode == undefined && !dir) { this._nextIsNext = false; } } this._lastTarget = this._lastTarget._parent; this.getTabCandidate(p._parent, index, groupName, dir, true); } } } }; v2.getTabCandidate = function (o, index, groupName, dir, firstChild) { var v2; var v3 = true; if (o == this._parent) { v2 = o; v3 = false; } else { v2 = o._parent; if (v2 == undefined) { v2 = o; v3 = false; } } this.walkTree(v2, index, groupName, dir, v3, firstChild); }; v2.getTabCandidateFromChildren = function (o, index, groupName, dir, firstChild) { this.walkTree(o, index, groupName, dir, false, firstChild); }; v2.getFocusManagerFromObject = function (o) { while (o != undefined) { if (o.focusManager != undefined) { return o.focusManager; } o = o._parent; } return undefined; }; v2.tabHandler = function (Void) { this.bDrawFocus = true; var v5 = this.getSelectionFocus(); var v4 = this.getActualFocus(v5); if (v4 != v5) { v5 = v4; } if (this.getFocusManagerFromObject(v5) != this) { v5 == undefined; } if (v5 == undefined) { v5 = this.form; } else { if (v5.tabIndex != undefined) { if (this._foundList != undefined || this._foundList.tabIndex != v5.tabIndex) { this._foundList = new Object(); this._foundList.tabIndex = v5.tabIndex; } this._foundList[v5._name] = v5; } } var v3 = Key.isDown(16) != true; this._searchKey = getTimer(); this._needPrev = true; this._nextIsNext = false; this._lastx = undefined; this._firstNode = undefined; this._lastNode = undefined; this._nextNode = undefined; this._prevNode = undefined; this._firstObj = undefined; this._lastObj = undefined; this._nextObj = undefined; this._prevObj = undefined; this._lastTarget = v5; var v6 = v5; this.getTabCandidate(v6, (v5.tabIndex == undefined) ? 0 : v5.tabIndex, v5.groupName, v3, true); var v2; if (v3) { if (this._nextObj != undefined) { v2 = this._nextObj; } else { v2 = this._firstObj; } } else { if (this._prevObj != undefined) { v2 = this._prevObj; } else { v2 = this._lastObj; } } if (v2.tabIndex != v5.tabIndex) { this._foundList = new Object(); this._foundList.tabIndex = v2.tabIndex; this._foundList[v2._name] = v2; } else { if (this._foundList == undefined) { this._foundList = new Object(); this._foundList.tabIndex = v2.tabIndex; } this._foundList[v2._name] = v2; } if (v2 == undefined) { if (v3 == false) { if (this._nextNode != undefined) { v2 = this._nextNode; } else { v2 = this._firstNode; } } else { if (this._prevNode == undefined || v5 == this.form) { v2 = this._lastNode; } else { v2 = this._prevNode; } } } if (v2 == undefined) { return undefined; } this.lastTabFocus = v2; this.setFocus(v2); if (v2.emphasized != undefined) { if (this.defPushButton != undefined) { v5 = this.defPushButton; this.defPushButton = v2; v5.emphasized = false; v2.emphasized = true; } } else { if (this.defPushButton != undefined && this.defPushButton != this.__defaultPushButton) { v5 = this.defPushButton; this.defPushButton = this.__defaultPushButton; v5.emphasized = false; this.__defaultPushButton.__set__emphasized(true); } } }; v2.onKeyDown = function (Void) { mx.managers.SystemManager.idleFrames = 0; if (this.defaultPushButtonEnabled) { if (Key.getCode() == 13) { if (this.__get__defaultPushButton() != undefined) { this.doLater(this, 'sendDefaultPushButtonEvent'); } } } }; v2.sendDefaultPushButtonEvent = function (Void) { this.defPushButton.dispatchEvent({'type': 'click'}); }; v2.getMousedComponentFromChildren = function (x, y, o) { for (var v7 in o) { var v2 = o[v7]; if (v2._visible && v2.enabled && v2._parent == o && v2._searchKey != this._searchKey) { v2._searchKey = this._searchKey; if (v2.hitTest(x, y, true)) { if (v2.onPress != undefined || v2.onRelease != undefined) { return v2; } var v3 = this.getMousedComponentFromChildren(x, y, v2); if (v3 != undefined) { return v3; } return v2; } } } return undefined; }; v2.mouseActivate = function (Void) { if (!this.bNeedFocus) { return undefined; } this._searchKey = getTimer(); var v2 = this.getMousedComponentFromChildren(this.lastMouse.x, this.lastMouse.y, this.form); if (v2 instanceof mx.core.UIComponent) { return undefined; } v2 = this.findFocusFromObject(v2); if (v2 == this.lastFocus) { return undefined; } if (v2 == undefined) { this.doLater(this, 'restoreFocus'); return undefined; } var v3 = v2.hscroll; if (v3 != undefined) { var v6 = v2.scroll; var v5 = v2.background; } this.setFocus(v2); var v4 = Selection; Selection.setSelection(v4.lastBeginIndex, v4.lastEndIndex); if (v3 != undefined) { v2.scroll = v6; v2.hscroll = v3; v2.background = v5; } }; v2._onMouseDown = function (Void) { this.bDrawFocus = false; if (this.lastFocus != undefined) { this.lastFocus.drawFocus(false); } mx.managers.SystemManager.idleFrames = 0; var v3 = Selection; v3.lastBeginIndex = Selection.getBeginIndex(); v3.lastEndIndex = Selection.getEndIndex(); this.lastMouse.x = _root._xmouse; this.lastMouse.y = _root._ymouse; _root.localToGlobal(this.lastMouse); }; v2.onMouseUp = function (Void) { if (this._visible) { this.doLater(this, 'mouseActivate'); } }; v2.handleEvent = function (e) { if (e.type == 'reveal') { mx.managers.SystemManager.activate(this.form); } else { mx.managers.SystemManager.deactivate(this.form); } }; v1.enableFocusManagement = function () { if (!mx.managers.FocusManager.initialized) { mx.managers.FocusManager.initialized = true; Object.registerClass('FocusManager', mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, 'focusManager', mx.managers.DepthManager.highestDepth--); } } }; v1.symbolName = 'FocusManager'; v1.symbolOwner = mx.managers.FocusManager; v1.version = '2.0.2.126'; v2.className = 'FocusManager'; v2.bNeedFocus = false; v2.bDrawFocus = false; v2.defaultPushButtonEnabled = true; v2.activated = true; v1.initialized = false; v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; v2.addProperty('defaultPushButton', v2.__get__defaultPushButton, v2.__set__defaultPushButton); v2.addProperty('nextTabIndex', v2.__get__nextTabIndex, function () {}); ASSetPropFlags(mx.managers.FocusManager.prototype, null, 1); } #endinitclip } movieClip 1090 __Packages.mx.skins.halo.FocusRect { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.FocusRect) { var v1 = function () { super(); this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; mx.skins.halo.FocusRect = v1; var v2 = new mx.skins.SkinElement(); mx.skins.halo.FocusRect.prototype = v2; v2.draw = function (o) { o.adjustFocusRect(); }; v2.setSize = function (w, h, r, a, rectCol) { this._yscale = 100; this._xscale = 100; this.clear(); if (typeof r == 'object') { r.br = r.br > 2 ? r.br - 2 : 0; r.bl = r.bl > 2 ? r.bl - 2 : 0; r.tr = r.tr > 2 ? r.tr - 2 : 0; r.tl = r.tl > 2 ? r.tl - 2 : 0; this.beginFill(rectCol, a * 0.3); this.drawRoundRect(0, 0, w, h, r); this.drawRoundRect(2, 2, w - 4, h - 4, r); this.endFill(); r.br = r.br > 1 ? r.br + 1 : 0; r.bl = r.bl > 1 ? r.bl + 1 : 0; r.tr = r.tr > 1 ? r.tr + 1 : 0; r.tl = r.tl > 1 ? r.tl + 1 : 0; this.beginFill(rectCol, a * 0.3); this.drawRoundRect(1, 1, w - 2, h - 2, r); r.br = r.br > 1 ? r.br - 1 : 0; r.bl = r.bl > 1 ? r.bl - 1 : 0; r.tr = r.tr > 1 ? r.tr - 1 : 0; r.tl = r.tl > 1 ? r.tl - 1 : 0; this.drawRoundRect(2, 2, w - 4, h - 4, r); this.endFill(); } else { var v5; if (r != 0) { v5 = r - 2; } else { v5 = 0; } this.beginFill(rectCol, a * 0.3); this.drawRoundRect(0, 0, w, h, r); this.drawRoundRect(2, 2, w - 4, h - 4, v5); this.endFill(); this.beginFill(rectCol, a * 0.3); if (r != 0) { v5 = r - 2; r -= 1; } else { v5 = 0; r = 0; } this.drawRoundRect(1, 1, w - 2, h - 2, r); this.drawRoundRect(2, 2, w - 4, h - 4, v5); this.endFill(); } }; v2.handleEvent = function (e) { if (e.type == 'unload') { this._visible = true; } else { if (e.type == 'resize') { e.target.adjustFocusRect(); } else { if (e.type == 'move') { e.target.adjustFocusRect(); } } } }; v1.classConstruct = function () { mx.core.UIComponent.prototype.drawFocus = function (focused) { var v2 = this._parent.focus_mc; if (!focused) { v2._visible = false; this.removeEventListener('unload', v2); this.removeEventListener('move', v2); this.removeEventListener('resize', v2); } else { if (v2 == undefined) { v2 = this._parent.createChildAtDepth('FocusRect', mx.managers.DepthManager.kTop); v2.tabEnabled = false; this._parent.focus_mc = v2; } else { v2._visible = true; } v2.draw(this); if (v2.getDepth() < this.getDepth()) { v2.setDepthAbove(this); } this.addEventListener('unload', v2); this.addEventListener('move', v2); this.addEventListener('resize', v2); } }; mx.core.UIComponent.prototype.adjustFocusRect = function () { var v2 = this.getStyle('themeColor'); if (v2 == undefined) { v2 = 8453965; } var v3 = this._parent.focus_mc; v3.setSize(this.width + 4, this.height + 4, 0, 100, v2); v3.move(this.x - 2, this.y - 2); }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect; mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return true; }; v1.classConstructed = mx.skins.halo.FocusRect.classConstruct(); v1.DefaultsDependency = mx.skins.halo.Defaults; v1.UIComponentDependency = mx.core.UIComponent; ASSetPropFlags(mx.skins.halo.FocusRect.prototype, null, 1); } #endinitclip } movieClip 1091 __Packages.mx.managers.OverlappedWindows { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.managers) { _global.mx.managers = new Object(); } if (!_global.mx.managers.OverlappedWindows) { var v1 = function () {}; mx.managers.OverlappedWindows = v1; var v2 = v1.prototype; v1.checkIdle = function (Void) { if (mx.managers.SystemManager.idleFrames > 10) { mx.managers.SystemManager.dispatchEvent({'type': 'idle'}); } else { ++mx.managers.SystemManager.idleFrames; } }; v1.__addEventListener = function (e, o, l) { if (e == 'idle') { if (mx.managers.SystemManager.interval == undefined) { mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100); } } mx.managers.SystemManager._xAddEventListener(e, o, l); }; v1.__removeEventListener = function (e, o, l) { if (e == 'idle') { if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) { clearInterval(mx.managers.SystemManager.interval); } } else { mx.managers.SystemManager._xRemoveEventListener(e, o, l); } }; v1.onMouseDown = function (Void) { mx.managers.SystemManager.idleFrames = 0; mx.managers.SystemManager.isMouseDown = true; var v5 = _root; var v3; var v8 = _root._xmouse; var v7 = _root._ymouse; if (mx.managers.SystemManager.form.modalWindow == undefined) { if (mx.managers.SystemManager.forms.length > 1) { var v6 = mx.managers.SystemManager.forms.length; var v4; v4 = 0; while (v4 < v6) { var v2 = mx.managers.SystemManager.forms[v4]; if (v2._visible) { if (v2.hitTest(v8, v7)) { if (v3 == undefined) { v3 = v2.getDepth(); v5 = v2; } else { if (v3 < v2.getDepth()) { v3 = v2.getDepth(); v5 = v2; } } } } ++v4; } if (v5 != mx.managers.SystemManager.form) { mx.managers.SystemManager.activate(v5); } } } var v9 = mx.managers.SystemManager.form; v9.focusManager._onMouseDown(); }; v1.onMouseMove = function (Void) { mx.managers.SystemManager.idleFrames = 0; }; v1.onMouseUp = function (Void) { mx.managers.SystemManager.isMouseDown = false; mx.managers.SystemManager.idleFrames = 0; }; v1.activate = function (f) { if (mx.managers.SystemManager.form != undefined) { if (mx.managers.SystemManager.form != f && mx.managers.SystemManager.forms.length > 1) { var v1 = mx.managers.SystemManager.form; v1.focusManager.deactivate(); } } mx.managers.SystemManager.form = f; f.focusManager.activate(); }; v1.deactivate = function (f) { if (mx.managers.SystemManager.form != undefined) { if (mx.managers.SystemManager.form == f && mx.managers.SystemManager.forms.length > 1) { var v5 = mx.managers.SystemManager.form; v5.focusManager.deactivate(); var v3 = mx.managers.SystemManager.forms.length; var v1; var v2; v1 = 0; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1] == f) { v1 += 1; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1]._visible == true) { v2 = mx.managers.SystemManager.forms[v1]; } ++v1; } mx.managers.SystemManager.form = v2; break; } else { if (mx.managers.SystemManager.forms[v1]._visible == true) { v2 = mx.managers.SystemManager.forms[v1]; } } ++v1; } v5 = mx.managers.SystemManager.form; v5.focusManager.activate(); } } }; v1.addFocusManager = function (f) { mx.managers.SystemManager.forms.push(f); mx.managers.SystemManager.activate(f); }; v1.removeFocusManager = function (f) { var v3 = mx.managers.SystemManager.forms.length; var v1; v1 = 0; while (v1 < v3) { if (mx.managers.SystemManager.forms[v1] == f) { if (mx.managers.SystemManager.form == f) { mx.managers.SystemManager.deactivate(f); } mx.managers.SystemManager.forms.splice(v1, 1); return undefined; } ++v1; } }; v1.enableOverlappedWindows = function () { if (!mx.managers.OverlappedWindows.initialized) { mx.managers.OverlappedWindows.initialized = true; mx.managers.SystemManager.checkIdle = mx.managers.OverlappedWindows.checkIdle; mx.managers.SystemManager.__addEventListener = mx.managers.OverlappedWindows.__addEventListener; mx.managers.SystemManager.__removeEventListener = mx.managers.OverlappedWindows.__removeEventListener; mx.managers.SystemManager.onMouseDown = mx.managers.OverlappedWindows.onMouseDown; mx.managers.SystemManager.onMouseMove = mx.managers.OverlappedWindows.onMouseMove; mx.managers.SystemManager.onMouseUp = mx.managers.OverlappedWindows.onMouseUp; mx.managers.SystemManager.activate = mx.managers.OverlappedWindows.activate; mx.managers.SystemManager.deactivate = mx.managers.OverlappedWindows.deactivate; mx.managers.SystemManager.addFocusManager = mx.managers.OverlappedWindows.addFocusManager; mx.managers.SystemManager.removeFocusManager = mx.managers.OverlappedWindows.removeFocusManager; } }; v1.initialized = false; v1.SystemManagerDependency = mx.managers.SystemManager; ASSetPropFlags(mx.managers.OverlappedWindows.prototype, null, 1); } #endinitclip } movieClip 1092 __Packages.mx.styles.CSSSetStyle { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSSetStyle) { var v1 = function () {}; mx.styles.CSSSetStyle = v1; var v2 = v1.prototype; v2._setStyle = function (styleProp, newValue) { this[styleProp] = newValue; if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) { if (styleProp == 'color') { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } } _level0.changeTextStyleInChildren(styleProp); return undefined; } if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } if (styleProp == 'themeColor') { var v7 = mx.styles.StyleManager.colorNames.haloBlue; var v6 = mx.styles.StyleManager.colorNames.haloGreen; var v8 = mx.styles.StyleManager.colorNames.haloOrange; var v4 = {}; v4[v7] = 12188666; v4[v6] = 13500353; v4[v8] = 16766319; var v5 = {}; v5[v7] = 13958653; v5[v6] = 14942166; v5[v8] = 16772787; var v9 = v4[newValue]; var v10 = v5[newValue]; if (v9 == undefined) { v9 = newValue; } if (v10 == undefined) { v10 = newValue; } this.setStyle('selectionColor', v9); this.setStyle('rollOverColor', v10); } _level0.changeColorStyleInChildren(this.styleName, styleProp, newValue); } else { if (styleProp == 'backgroundColor' && isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } _level0.notifyStyleChangeInChildren(this.styleName, styleProp, newValue); } }; v2.changeTextStyleInChildren = function (styleProp) { var v4 = getTimer(); var v5; for (v5 in this) { var v2 = this[v5]; if (v2._parent == this) { if (v2.searchKey != v4) { if (v2.stylecache != undefined) { delete v2.stylecache.tf; delete v2.stylecache[styleProp]; } v2.invalidateStyle(styleProp); v2.changeTextStyleInChildren(styleProp); v2.searchKey = v4; } } } }; v2.changeColorStyleInChildren = function (sheetName, colorStyle, newValue) { var v6 = getTimer(); var v7; for (v7 in this) { var v2 = this[v7]; if (v2._parent == this) { if (v2.searchKey != v6) { if (v2.getStyleName() == sheetName || sheetName == undefined || sheetName == '_global') { if (v2.stylecache != undefined) { delete v2.stylecache[colorStyle]; } if (typeof v2._color == 'string') { if (v2._color == colorStyle) { var v4 = v2.getStyle(colorStyle); if (colorStyle == 'color') { if (this.stylecache.tf.color != undefined) { this.stylecache.tf.color = v4; } } v2.setColor(v4); } } else { if (v2._color[colorStyle] != undefined) { if (typeof v2 != 'movieclip') { v2._parent.invalidateStyle(); } else { v2.invalidateStyle(colorStyle); } } } } v2.changeColorStyleInChildren(sheetName, colorStyle, newValue); v2.searchKey = v6; } } } }; v2.notifyStyleChangeInChildren = function (sheetName, styleProp, newValue) { var v5 = getTimer(); var v6; for (v6 in this) { var v2 = this[v6]; if (v2._parent == this) { if (v2.searchKey != v5) { if (v2.styleName == sheetName || v2.styleName != undefined && typeof v2.styleName == 'movieclip' || sheetName == undefined) { if (v2.stylecache != undefined) { delete v2.stylecache[styleProp]; delete v2.stylecache.tf; } delete v2.enabledColor; v2.invalidateStyle(styleProp); } v2.notifyStyleChangeInChildren(sheetName, styleProp, newValue); v2.searchKey = v5; } } } }; v2.setStyle = function (styleProp, newValue) { if (this.stylecache != undefined) { delete this.stylecache[styleProp]; delete this.stylecache.tf; } this[styleProp] = newValue; if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } if (styleProp == 'themeColor') { var v10 = mx.styles.StyleManager.colorNames.haloBlue; var v9 = mx.styles.StyleManager.colorNames.haloGreen; var v11 = mx.styles.StyleManager.colorNames.haloOrange; var v6 = {}; v6[v10] = 12188666; v6[v9] = 13500353; v6[v11] = 16766319; var v7 = {}; v7[v10] = 13958653; v7[v9] = 14942166; v7[v11] = 16772787; var v12 = v6[newValue]; var v13 = v7[newValue]; if (v12 == undefined) { v12 = newValue; } if (v13 == undefined) { v13 = newValue; } this.setStyle('selectionColor', v12); this.setStyle('rollOverColor', v13); } if (typeof this._color == 'string') { if (this._color == styleProp) { if (styleProp == 'color') { if (this.stylecache.tf.color != undefined) { this.stylecache.tf.color = newValue; } } this.setColor(newValue); } } else { if (this._color[styleProp] != undefined) { this.invalidateStyle(styleProp); } } this.changeColorStyleInChildren(undefined, styleProp, newValue); } else { if (styleProp == 'backgroundColor' && isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return undefined; } } this.invalidateStyle(styleProp); } if (mx.styles.StyleManager.isInheritingStyle(styleProp) || styleProp == 'styleName') { var v8; var v5 = newValue; if (styleProp == 'styleName') { v8 = (typeof newValue == 'string') ? _global.styles[newValue] : v5; v5 = v8.themeColor; if (v5 != undefined) { v8.selectionColor = v5; v8.rollOverColor = v8.selectionColor; } } this.notifyStyleChangeInChildren(undefined, styleProp, newValue); } }; v1.enableRunTimeCSS = function () {}; v1.classConstruct = function () { var v2 = MovieClip.prototype; var v3 = mx.styles.CSSSetStyle.prototype; mx.styles.CSSStyleDeclaration.prototype.setStyle = v3._setStyle; v2.changeTextStyleInChildren = v3.changeTextStyleInChildren; v2.changeColorStyleInChildren = v3.changeColorStyleInChildren; v2.notifyStyleChangeInChildren = v3.notifyStyleChangeInChildren; v2.setStyle = v3.setStyle; _global.ASSetPropFlags(v2, 'changeTextStyleInChildren', 1); _global.ASSetPropFlags(v2, 'changeColorStyleInChildren', 1); _global.ASSetPropFlags(v2, 'notifyStyleChangeInChildren', 1); _global.ASSetPropFlags(v2, 'setStyle', 1); var v4 = TextField.prototype; v4.setStyle = v2.setStyle; v4.changeTextStyleInChildren = v3.changeTextStyleInChildren; return true; }; v1.classConstructed = mx.styles.CSSSetStyle.classConstruct(); v1.CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; ASSetPropFlags(mx.styles.CSSSetStyle.prototype, null, 1); } #endinitclip } movieClip 1093 __Packages.mx.core.ext.UIComponentExtensions { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ext) { _global.mx.core.ext = new Object(); } if (!_global.mx.core.ext.UIComponentExtensions) { var v1 = function () {}; mx.core.ext.UIComponentExtensions = v1; var v2 = v1.prototype; v1.Extensions = function () { if (mx.core.ext.UIComponentExtensions.bExtended == true) { return true; } mx.core.ext.UIComponentExtensions.bExtended = true; TextField.prototype.setFocus = function () { Selection.setFocus(this); }; TextField.prototype.onSetFocus = function (oldFocus) { if (this.tabEnabled != false) { if ((this.getFocusManager()).bDrawFocus) { this.drawFocus(true); } } }; TextField.prototype.onKillFocus = function (oldFocus) { if (this.tabEnabled != false) { this.drawFocus(false); } }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager; mx.managers.OverlappedWindows.enableOverlappedWindows(); mx.styles.CSSSetStyle.enableRunTimeCSS(); mx.managers.FocusManager.enableFocusManagement(); }; v1.bExtended = false; v1.UIComponentExtended = mx.core.ext.UIComponentExtensions.Extensions(); v1.UIComponentDependency = mx.core.UIComponent; v1.FocusManagerDependency = mx.managers.FocusManager; v1.OverlappedWindowsDependency = mx.managers.OverlappedWindows; ASSetPropFlags(mx.core.ext.UIComponentExtensions.prototype, null, 1); } #endinitclip } movieClip 1094 __Packages.mx.skins.RectBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.RectBorder) { var v1 = function () { super(); }; mx.skins.RectBorder = v1; var v2 = new mx.skins.Border(); mx.skins.RectBorder.prototype = v2; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.init = function (Void) { super.init(); }; v2.draw = function (Void) { this.size(); }; v2.getBorderMetrics = function (Void) { var v2 = this.offset; if (this.__borderMetrics == undefined) { this.__borderMetrics = {'left': v2, 'top': v2, 'right': v2, 'bottom': v2}; return this.__borderMetrics; } this.__borderMetrics.left = v2; this.__borderMetrics.top = v2; this.__borderMetrics.right = v2; this.__borderMetrics.bottom = v2; return this.__borderMetrics; }; v2.__get__borderMetrics = function () { return this.getBorderMetrics(); }; v2.drawBorder = function (Void) {}; v2.size = function (Void) { this.drawBorder(); }; v2.setColor = function (Void) { this.drawBorder(); }; v1.symbolName = 'RectBorder'; v1.symbolOwner = mx.skins.RectBorder; v1.version = '2.0.2.126'; v2.className = 'RectBorder'; v2.borderStyleName = 'borderStyle'; v2.borderColorName = 'borderColor'; v2.shadowColorName = 'shadowColor'; v2.highlightColorName = 'highlightColor'; v2.buttonColorName = 'buttonColor'; v2.backgroundColorName = 'backgroundColor'; v2.addProperty('borderMetrics', v2.__get__borderMetrics, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.skins.RectBorder.prototype, null, 1); } #endinitclip } movieClip 1095 __Packages.mx.skins.halo.RectBorder { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.RectBorder) { var v1 = function () { super(); }; mx.skins.halo.RectBorder = v1; var v2 = new mx.skins.RectBorder(); mx.skins.halo.RectBorder.prototype = v2; v2.init = function (Void) { this.borderWidths.default = 3; super.init(); }; v2.getBorderMetrics = function (Void) { if (this.offset == undefined) { var v3 = this.getStyle(this.borderStyleName); this.offset = this.borderWidths[v3]; } if (this.getStyle(this.borderStyleName) == 'default' || this.getStyle(this.borderStyleName) == 'alert') { this.__borderMetrics = {'left': 3, 'top': 1, 'right': 3, 'bottom': 3}; return this.__borderMetrics; } return super.getBorderMetrics(); }; v2.drawBorder = function (Void) { var v6 = _global.styles[this.className]; if (v6 == undefined) { v6 = _global.styles.RectBorder; } var v5 = this.getStyle(this.borderStyleName); var v7 = this.getStyle(this.borderColorName); if (v7 == undefined) { v7 = v6[this.borderColorName]; } var v8 = this.getStyle(this.backgroundColorName); if (v8 == undefined) { v8 = v6[this.backgroundColorName]; } var v16 = this.getStyle('backgroundImage'); if (v5 != 'none') { var v14 = this.getStyle(this.shadowColorName); if (v14 == undefined) { v14 = v6[this.shadowColorName]; } var v13 = this.getStyle(this.highlightColorName); if (v13 == undefined) { v13 = v6[this.highlightColorName]; } var v12 = this.getStyle(this.buttonColorName); if (v12 == undefined) { v12 = v6[this.buttonColorName]; } var v11 = this.getStyle(this.borderCapColorName); if (v11 == undefined) { v11 = v6[this.borderCapColorName]; } var v10 = this.getStyle(this.shadowCapColorName); if (v10 == undefined) { v10 = v6[this.shadowCapColorName]; } } this.offset = this.borderWidths[v5]; var v9 = this.offset; var v3 = this.__get__width(); var v4 = this.__get__height(); this.clear(); this._color = undefined; if (v5 == 'none') { } else { if (v5 == 'inset') { this._color = this.colorList; this.draw3dBorder(v11, v12, v7, v13, v14, v10); } else { if (v5 == 'outset') { this._color = this.colorList; this.draw3dBorder(v11, v7, v12, v14, v13, v10); } else { if (v5 == 'alert') { var v15 = this.getStyle('themeColor'); this.drawRoundRect(0, 5, v3, v4 - 5, 5, 6184542, 10); this.drawRoundRect(1, 4, v3 - 2, v4 - 5, 4, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, 3, v15, 50); this.drawRoundRect(3, 1, v3 - 6, v4 - 4, 2, 16777215, 100); } else { if (v5 == 'default') { this.drawRoundRect(0, 5, v3, v4 - 5, {'tl': 5, 'tr': 5, 'br': 0, 'bl': 0}, 6184542, 10); this.drawRoundRect(1, 4, v3 - 2, v4 - 5, {'tl': 4, 'tr': 4, 'br': 0, 'bl': 0}, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(2, 0, v3 - 4, v4 - 2, {'tl': 3, 'tr': 3, 'br': 0, 'bl': 0}, [12897484, 11844796], 100, 0, 'radial'); this.drawRoundRect(3, 1, v3 - 6, v4 - 4, {'tl': 2, 'tr': 2, 'br': 0, 'bl': 0}, 16777215, 100); } else { if (v5 == 'dropDown') { this.drawRoundRect(0, 0, v3 + 1, v4, {'tl': 4, 'tr': 0, 'br': 0, 'bl': 4}, [13290186, 7895160], 100, -10, 'linear'); this.drawRoundRect(1, 1, v3 - 1, v4 - 2, {'tl': 3, 'tr': 0, 'br': 0, 'bl': 3}, 16777215, 100); } else { if (v5 == 'menuBorder') { var v15 = this.getStyle('themeColor'); this.drawRoundRect(4, 4, v3 - 2, v4 - 3, 0, [6184542, 6184542], 10, 0, 'radial'); this.drawRoundRect(4, 4, v3 - 1, v4 - 2, 0, 6184542, 10); this.drawRoundRect(0, 0, v3 + 1, v4, 0, [0, 14342874], 100, 250, 'linear'); this.drawRoundRect(0, 0, v3 + 1, v4, 0, v15, 50); this.drawRoundRect(2, 2, v3 - 3, v4 - 4, 0, 16777215, 100); } else { if (v5 == 'comboNonEdit') { } else { this.beginFill(v7); this.drawRect(0, 0, v3, v4); this.drawRect(1, 1, v3 - 1, v4 - 1); this.endFill(); this._color = this.borderColorName; } } } } } } } } if (v8 != undefined) { this.beginFill(v8); this.drawRect(v9, v9, this.__get__width() - v9, this.__get__height() - v9); this.endFill(); } }; v2.draw3dBorder = function (c1, c2, c3, c4, c5, c6) { var v3 = this.__get__width(); var v2 = this.__get__height(); this.beginFill(c1); this.drawRect(0, 0, v3, v2); this.drawRect(1, 0, v3 - 1, v2); this.endFill(); this.beginFill(c2); this.drawRect(1, 0, v3 - 1, 1); this.endFill(); this.beginFill(c3); this.drawRect(1, v2 - 1, v3 - 1, v2); this.endFill(); this.beginFill(c4); this.drawRect(1, 1, v3 - 1, 2); this.endFill(); this.beginFill(c5); this.drawRect(1, v2 - 2, v3 - 1, v2 - 1); this.endFill(); this.beginFill(c6); this.drawRect(1, 2, v3 - 1, v2 - 2); this.drawRect(2, 2, v3 - 2, v2 - 2); this.endFill(); }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); _global.styles.rectBorderClass = mx.skins.halo.RectBorder; _global.skinRegistry.RectBorder = true; return true; }; v1.symbolName = 'RectBorder'; v1.symbolOwner = mx.skins.halo.RectBorder; v1.version = '2.0.2.126'; v2.borderCapColorName = 'borderCapColor'; v2.shadowCapColorName = 'shadowCapColor'; v2.colorList = {'highlightColor': 0, 'borderColor': 0, 'buttonColor': 0, 'shadowColor': 0, 'borderCapColor': 0, 'shadowCapColor': 0}; v2.borderWidths = {'none': 0, 'solid': 1, 'inset': 2, 'outset': 2, 'alert': 3, 'dropDown': 2, 'menuBorder': 2, 'comboNonEdit': 2}; v1.classConstructed = mx.skins.halo.RectBorder.classConstruct(); v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; ASSetPropFlags(mx.skins.halo.RectBorder.prototype, null, 1); } #endinitclip } movieClip 1096 __Packages.mx.skins.halo.ButtonSkin { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.halo) { _global.mx.skins.halo = new Object(); } if (!_global.mx.skins.halo.ButtonSkin) { var v1 = function () { super(); }; mx.skins.halo.ButtonSkin = v1; var v2 = new mx.skins.RectBorder(); mx.skins.halo.ButtonSkin.prototype = v2; v2.init = function () { super.init(); }; v2.size = function () { this.drawHaloRect(this.__get__width(), this.__get__height()); }; v2.drawHaloRect = function (w, h) { var v6 = this.getStyle('borderStyle'); var v4 = this.getStyle('themeColor'); var v5 = this._parent.emphasized; this.clear(); switch (v6) { case 'falseup': if (v5) { this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 75); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 75); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); } else { this.drawRoundRect(0, 0, w, h, 5, 9542041, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, 'radial'); this.drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, 'radial'); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100); } break; case 'falsedown': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, v4, 20); break; case 'falserollover': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 50); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 50); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case 'falsedisabled': this.drawRoundRect(0, 0, w, h, 5, 13159628, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); this.drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); break; case 'trueup': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 10066329, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16250871, 100); break; case 'truedown': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 10066329, 100); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 50); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, v4, 20); break; case 'truerollover': this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, 9542041, 100); this.drawRoundRect(this.__get__x(), this.__get__y(), w, h, 5, v4, 50); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 1, this.__get__y() + 1, w - 2, h - 2, 4, v4, 40); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, 'radial'); this.drawRoundRect(this.__get__x() + 2, this.__get__y() + 2, w - 4, h - 4, 3, v4, 40); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 3, w - 6, h - 6, 2, 16777215, 100); this.drawRoundRect(this.__get__x() + 3, this.__get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case 'truedisabled': this.drawRoundRect(0, 0, w, h, 5, 13159628, 100); this.drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); this.drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); this.drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); } }; v1.classConstruct = function () { mx.core.ext.UIObjectExtensions.Extensions(); _global.skinRegistry.ButtonSkin = true; return true; }; v1.symbolName = 'ButtonSkin'; v1.symbolOwner = mx.skins.halo.ButtonSkin; v2.className = 'ButtonSkin'; v2.backgroundColorName = 'buttonColor'; v1.classConstructed = mx.skins.halo.ButtonSkin.classConstruct(); v1.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; ASSetPropFlags(mx.skins.halo.ButtonSkin.prototype, null, 1); } #endinitclip } movieClip 1097 __Packages.mx.controls.HScrollBar { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.HScrollBar) { var v1 = function () { super(); }; mx.controls.HScrollBar = v1; var v2 = new mx.controls.scrollClasses.ScrollBar(); mx.controls.HScrollBar.prototype = v2; v2.getMinWidth = function (Void) { return this._minHeight; }; v2.getMinHeight = function (Void) { return this._minWidth; }; v2.init = function (Void) { super.init(); this._xscale = -100; this._rotation = -90; }; v2.__get__virtualHeight = function () { return this.__width; }; v2.isScrollBarKey = function (k) { if (k == 37) { this.scrollIt('Line', -1); return true; return super.isScrollBarKey(k); } if (k == 39) { this.scrollIt('Line', 1); return true; } return super.isScrollBarKey(k); }; v1.symbolName = 'HScrollBar'; v1.symbolOwner = mx.core.UIComponent; v1.version = '2.0.2.126'; v2.className = 'HScrollBar'; v2.minusMode = 'Left'; v2.plusMode = 'Right'; v2.minMode = 'AtLeft'; v2.maxMode = 'AtRight'; v2.addProperty('virtualHeight', v2.__get__virtualHeight, function () {}); ASSetPropFlags(mx.controls.HScrollBar.prototype, null, 1); } #endinitclip } frame 2 { function queuemusik(track) { _root.Musik.stop(); if (MusikTracks[track] == 'REPLAY') { _root.Musik.attachSound(MusikTracks[0], isStreaming); _root.MusikTrack = 0; } else { _root.Musik.attachSound(MusikTracks[track], isStreaming); _root.MusikTrack = track; } _root.MusikPos = 0; if (_root.MusikStatus == 'On') { if (MusikTracks[track] == 'Donuts') { _root.Musik.start(0, 2); } else { _root.Musik.start(); } _root.Musik.setVolume(MusikVolume * MVMaster); } _root.musicticker = String(MusikTracks[track]); } function queuemusikSingle(track) { _root.Musik.stop(); if (MusikTracks[track] == 'REPLAY') { _root.Musik.attachSound(MusikTracksSingle[0], isStreaming); _root.MusikTrack = 0; } else { _root.Musik.attachSound(MusikTracksSingle[track], isStreaming); _root.MusikTrack = track; } _root.MusikPos = 0; if (_root.MusikStatus == 'On') { _root.Musik.start(); _root.Musik.setVolume(MusikVolume * MVMaster); } _root.musicticker = String(MusikTracksSingle[track]); } function queuemusikBedroom(track) { _root.Musik.stop(); if (MusikTracks[track] == 'REPLAY') { _root.Musik.attachSound(MusikTracksBedroom[0], isStreaming); _root.MusikTrack = 0; } else { _root.Musik.attachSound(MusikTracksBedroom[track], isStreaming); _root.MusikTrack = track; } _root.MusikPos = 0; if (_root.MusikStatus == 'On') { _root.Musik.start(); _root.Musik.setVolume(MusikVolume * MVMaster); } _root.musicticker = String(MusikTracksBedroom[track]); } function playsfx1(array, soundbyte, volumee) { _root.sfxplayer1.sfx.attachSound(array[soundbyte]); _root.sfxplayer1.sfx.setVolume(sfxvolume * sfxmaster1 * volumee); _root.sfxplayer1.sfx.start(0, 1); } function playsfx2(array, soundbyte, volumee) { _root.sfxplayer2.sfx.attachSound(array[soundbyte]); _root.sfxplayer2.sfx.setVolume(sfxvolume * sfxmaster2 * volumee); _root.sfxplayer2.sfx.start(0, 1); } function playsound(soundbyte) { _root.sfxplayer1.sfx.attachSound(soundbyte); _root.sfxplayer1.sfx.setVolume(sfxvolume * sfxmaster1); _root.sfxplayer1.sfx.start(0, 1); } var Musik = new Sound(this); var MusikPos = 0; var MusikPos2 = 0; var MusikLaunched = 'No'; var MusikStatus = 'On'; var MusikTrack; var MusikTracksSingle = new Array('Stat Screen', 'Situation', 'Title'); var MusikTracks = new Array('Foundation', 'By the Butt', 'Donuts', '20 Knights in 20 Minutes', 'Bounce', 'Imperial', 'REPLAY'); var MusikTracksBedroom = new Array('Stratum', 'Vagus', 'Speculum', 'REPLAY'); var MVMaster = 0.8; var defaultvolumee = 50; var MusikVolume = defaultvolumee; var MVFadingOut = 0; var MusikLoop = 0; _root.Musik.onSoundComplete = function () { if (_root.MusikLoop == 1) { _root.Musik.start(); _root.MusikPos = 0; } else { _root.queuemusik(_root.MusikTrack + 1); } }; var sfxvolume = 50; var sfxmaster1 = 1; var sfxmaster2 = 1; var sfxmaster3 = 1; var sfxmaster4 = 1; var sfxbankGeneric = new Array(); var sfxbankWood = new Array('Wood1.wav', 'Wood2.wav', 'Wood3.wav'); var sfxbankCoin = new Array('Coin1.wav', 'Coin2.wav', 'Coin3.wav', 'Coin4.wav', 'Coin5.wav', 'Coin6.wav', 'Coin7.wav', 'Coin8.wav'); var sfxbankClick = new Array('Click2.wav'); var sfxbankChipper = new Array('SQUEAK.mp3'); } frame 2 { var UnlocksGeneric = new Array(['Сцена в саду', 'Теперь можно быстро перейти к клоп-сцене в саду.', 0], ['Черта: Старатель', 'Можно выбрать при создании нового города. Полезно для городов, что любят ударять по земле!', 0], ['Черта: Социалист', 'Можно выбрать при создании нового города. Обама заботится о каждом пони!', 0], ['Черта: Проклятье Бога Леса', 'Можно выбрать при создании нового города. Лучше не срезать деревья!', 0], ['Здания 2-го уровня', 'Вы получили доступ к улучшенным зданиям. Посмотрите их в соответствующей вкладке меню строительства.', 0], ['Персонаж: Пугливый Пегас', 'Посетите Приватные комнаты в таверне, чтобы поиграть с этим персонажем!', 0], ['Персонаж: Яблочная Лошадь', 'Посетите Приватные комнаты в таверне, чтобы поиграть с этим персонажем!', 0], ['Персонаж: Алмазный Единорог', 'Посетите Приватные комнаты в таверне, чтобы поиграть с этим персонажем!', 0], ['Черта: Ветеран', 'Можно выбрать при создании нового города.', 0], ['Черта: Суеверный', 'Можно выбрать при создании нового города.', 0], ['Черта: Чингиз-Понь', 'Можно выбрать при создании нового города.', 0], ['Черта: Венецианец', 'Можно выбрать при создании нового города.', 0], ['Черта: Волшебник', 'Можно выбрать при создании нового города.', 0], ['Черта: Беззаботный', 'Можно выбрать при создании нового города.', 0], ['Черта: Упитанный', 'Можно выбрать при создании нового города.', 0], ['Черта: Алкоголик', 'Можно выбрать при создании нового города.', 0], ['Черта: Тиран', 'Можно выбрать при создании нового города.', 0], ['Здания 3-го уровня', 'Вы получили доступ к улучшенным зданиям. Посмотрите их в соответствующей вкладке меню строительства.', 0], ['Персонаж: Розовая Выпечка', 'Посетите Приватные комнаты в таверне, чтобы поиграть с этим персонажем!', 0], ['Чиппер мертв', '', 0], ['Персонаж: Цветная быстрота', 'Посетите Приватные комнаты в таверне, чтобы поиграть с этим персонажем!', 0], [Number.NaN]); var UnlocksGallery = new Array(['Вы идете по жилому кварталу и замечаете знакомую пони. Похоже, что она "собирает деньги" для города, предлагая "уроки любви" горожанам. Прекрасно!', 0], ['Вы решили передохнуть от городской суеты и посетить местную ферму. Вдали вы видите двух знакомых трахающихся пони. Видимо, у них сегодня был отличный урожай, и они так празднуют!', 0], ['Вы заглянули в местный магазин, чтобы перекусить во время перерыва, как вдруг вы замечаете, что за кассой никого нет. Побродив рядом вы заметили знакомую пони, взявшую внеплановый перерыв. Она хихикает и предлагает вам присоединиться!', 0], ['Вы решили немного передохнуть от управленческих обязанностей и пройтись по округе, предлагая помощь пони. Постучав в дверь одного дома, вы обнаруживаете ее незакрытой и видите знакомо персонажа, "зарабатывающего деньги" для города расслабляющими процедурами.', 0], [Number.NaN]); var optionsTable = new Array(['Освещение', 'Сменить время суток.', 1], ['Подковы', 'Цок-клоп.', 1], ['Вымечко', 'Понячьи сисечки над промежностью.', 1], ['Футанари', 'Все горячее с членом.', 1], ['Румянец', 'Ой-ой, кто-то тут смутился? Или может просто возбудился!', 1], ['Бантик', 'Маленькое милое украшение в волосах.', 1], ['Очки', 'И прочее, что одевается на глаза', 1], ['Повязка', 'Для тех, кто стесняется смотреть в глаза.', 1], ['Аксессуары', 'Шарф, ожерелье и проч.', 1], ['Лифчик', 'Не туда, глупая пони!', 1], ['Корсет', 'Помогает спрятать животик.', 1], ['Чулочки', 'Чтобы держать ноги в тепле. Наверно.', 1], ['Кляп', 'Некоторые вещи лучше оставить промямленными', 1], ['Волосики', 'Для тех, кому нравятся волосатые.', 1], ['Антро', 'ВАШ персонаж (не партнер) становится антро.', 1], ['Зеркалировать', 'Отразить сцену горизонтально.', 1], [Number.NaN]); var optionsTableLocked = new Array(['Длинный меч', 'Со сталью действительно сексуальнее.', 0], ['Быстрая смена', 'Быстро сменить персонажа.', 0], ['Фон', 'Сменить фон.', 0], [Number.NaN]); } frame 2 { stop(); stopAllSounds(); endGameSession(); var cache = SharedObject.getLocal('userCloptopia', '/'); var version = 'Alpha v1.08ru1.0'; var initialization = cache.data.init; if (initialization != 'ran') { trace('resetting everything'); cache.data.init = 'ran'; cache.data.flushWarning = false; cache.data.volumee = 50; cache.data.GameDataUnlocked = new Array(100); i = 0; while (i < cache.data.GameDataUnlocked.length) { cache.data.GameDataUnlocked[i] = 0; ++i; } cache.data.OptionDataUnlocked = new Array(100); i = 0; while (i < cache.data.OptionDataUnlocked.length) { cache.data.OptionDataUnlocked[i] = 0; ++i; } cache.data.OptionGalleryUnlocked = new Array(100); i = 0; while (i < cache.data.OptionGalleryUnlocked.length) { cache.data.OptionGalleryUnlocked[i] = 0; ++i; } cache.data.PlayerDataOptions = new Array(true, true, false, true, true, false, true, false, false, true, NaN, NaN); cache.data.PlayerDataUpgrades = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); cache.data.PlayerDataEdicts = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); cache.data.PlayerDataStats = new Array(1, 1, 1, 1, 1, 30, 0); cache.data.PlayerDataSkills = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); cache.data.PlayerDataFreeStructure = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); cache.data.PlayerDataTraitsOwned = new Array(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); cache.data.PlayerDataPerksOwned = new Array(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); cache.data.PlayerDataEvilData = new Array(0, 0, 0); cache.data.PlayerDataSpecialistsStats = new Array(['name', 1, '', 0, 0, 0, 0, 0], ['name', 1, '', 0, 0, 0, 0, 0], ['name', 1, '', 0, 0, 0, 0, 0], ['name', 1, '', 0, 0, 0, 0, 0], ['name', 1, '', 0, 0, 0, 0, 0]); cache.data.StoryFlags = new Array(30); cache.data.Cosmetics = new Array(100, 0, 0, 0, 0, 0, 0, 0, 0); cache.data.StoryWatched = false; var maxNodes = 512; cache.data.NodeData = new Array(maxNodes); i = 0; while (i < cache.data.NodeData.length) { cache.data.NodeData[i] = new Array(15); j = 0; while (j < cache.data.NodeData[i].length) { cache.data.NodeData[i][j] = NaN; ++j; } ++i; } cache.data.NodeDataPonies = new Array(maxNodes); i = 0; while (i < cache.data.NodeDataPonies.length) { cache.data.NodeDataPonies[i] = new Array(6); j = 0; while (j < cache.data.NodeDataPonies[i].length) { cache.data.NodeDataPonies[i][j] = 0; ++j; } ++i; } cache.data.NodeDataPoniesMax = new Array(maxNodes); i = 0; while (i < cache.data.NodeDataPoniesMax.length) { cache.data.NodeDataPoniesMax[i] = new Array(6); j = 0; while (j < cache.data.NodeDataPoniesMax[i].length) { cache.data.NodeDataPoniesMax[i][j] = 0; ++j; } ++i; } cache.data.NodeDataValue = new Array(maxNodes); i = 0; while (i < cache.data.NodeDataValue.length) { cache.data.NodeDataValue[i] = new Array(6); j = 0; while (j < cache.data.NodeDataValue[i].length) { cache.data.NodeDataValue[i][j] = 0; ++j; } ++i; } cache.data.PlayerData = new Array(40); cache.data.PlayerData[7] = true; cache.data.PlayerDataResources = new Array(12); cache.data.PlayerDataResourcePerCycle = new Array(12); cache.data.PlayerDataBonusesPerCycle = new Array(12); cache.data.PlayerDataPopulation = new Array(12); i = 0; while (i < cache.data.PlayerDataResources.length) { cache.data.PlayerDataResources[i] = new Array(8); cache.data.PlayerDataResourcePerCycle[i] = new Array(8); cache.data.PlayerDataBonusesPerCycle[i] = new Array(8); cache.data.PlayerDataPopulation[i] = new Array(8); j = 0; while (j < cache.data.PlayerDataResources[i].length) { cache.data.PlayerDataResources[i][j] = 0; cache.data.PlayerDataResourcePerCycle[i][j] = 0; cache.data.PlayerDataBonusesPerCycle[i][j] = 0; cache.data.PlayerDataPopulation[i][j] = 0; ++j; } ++i; } cache.data.PlayerDataStrCount = new Array(30); i = 0; while (i < cache.data.PlayerDataStrCount.length) { cache.data.PlayerDataStrCount[i] = new Array(20); j = 0; while (j < cache.data.PlayerDataStrCount[i].length) { cache.data.PlayerDataStrCount[i][j] = 0; ++j; } ++i; } cache.data.PlayerDataTiersUnlocked = new Array(true, false, false, false, false); cache.data.PlayerDataTradeCooldown = new Array(30); cache.data.FileExists = false; } i = 0; while (i < cache.data.GameDataUnlocked.length) { UnlocksGeneric[i][2] = cache.data.GameDataUnlocked[i]; ++i; } i = 0; while (i < cache.data.OptionGalleryUnlocked.length) { UnlocksGallery[i][1] = cache.data.OptionGalleryUnlocked[i]; ++i; } i = 0; while (i < cache.data.OptionDataUnlocked.length) { optionsTableLocked[i][2] = cache.data.OptionDataUnlocked[i]; ++i; } var defeated = cache.data.PlayerData[17]; var defaultvolumee = cache.data.volumee; var StoryWatched = cache.data.StoryWatched; var StatBracket = new Array([11, 1], [13, 100]); var loadGame = false; var FAPMODE = 0; hideCustomCursor = cache.data.PlayerDataOptions[9]; } button 1126 { on (release) { play(); } } movieClip 1131 { } movieClip 1137 { frame 11 { stop(); } } movieClip 1143 { } movieClip 1144 { frame 55 { gotoAndPlay('loop1'); } } movieClip 1147 { } movieClip 1158 { } movieClip 1183 { frame 71 { stop(); } } button 1184 { on (release) { _root.gotoAndStop('title'); } } button 1185 { on (release) { getURL('http://www.comdotgame.com/', '_blank'); } } movieClip 1186 { frame 1 { if (_root.cache.data.flushWarning == false) { stop(); _root.cache.flush(1000000); _root.cache.data.flushWarning = true; } else { gotoAndPlay('splash'); } } instance of movieClip 1131 { onClipEvent (release) { System.showSettings(1); } } frame 110 { _root.gotoAndStop('title'); } frame 111 { _root.gotoAndStop('title'); } frame 112 { _root.gotoAndStop('title'); } frame 113 { _root.gotoAndStop('title'); } frame 114 { _root.gotoAndStop('title'); } frame 115 { _root.gotoAndStop('title'); } } frame 3 { stopAllSounds(); _root.MusikLaunched = 'No'; } movieClip 1202 { } frame 4 { function setColor() { var v2 = _root.maleColorRed; var v4 = _root.maleColorGreen; var v3 = _root.maleColorBlue; _root.maleColor[0] = rgb2col(v2 - 50, v4 - 50, v3 - 50); _root.maleColor[1] = rgb2col(v2, v4, v3); changeColor('_root.intro.input.charColor.BG', _root.maleColor[0]); changeColor('_root.intro.input.charColor.Skin', _root.maleColor[1]); maleColorRedPercent = String(int((maleColorRed - 50) / 1.5) + '%'); maleColorGreenPercent = String(int((maleColorGreen - 50) / 1.5) + '%'); maleColorBluePercent = String(int((maleColorBlue - 50) / 1.5) + '%'); } function rgb2col(red, green, blue) { return decColor2hex(red * 65536 + green * 256 + blue); } function decColor2hex(color) { colArr = ((color.toString(16)).toUpperCase()).split(''); numChars = colArr.length; a = 0; while (a < 6 - numChars) { colArr.unshift('0'); ++a; } return '0x' + colArr.join(''); } function changeColor(object, color) { var v1 = new Color(object); v1.setRGB(int(parseInt(String(color), 16))); } stop(); _root.MusikLaunched = 'No'; endGameSession(); FAPMODE = 0; var PaperPosition = 0; var MaxPaperMove = new Array(-300, 0); var PaperLock = 2; var loveDisplay = 99; var loadData = false; var DogeCredits = ''; var ContributorCredits = ''; var SupporterList = new Array('TheDarkman67', 'KingKronos', 'Serael', 'Bazinga', 'AshyMcHoof', 'Macavity', 'Reno', 'Man', 'Pairþra', 'Kyle_Thibodeau', 'Magmanox', 'DOGE@EndyJuice', 'Xaldon Ajide', 'Crono_Flash', 'Desmond', 'mathrick', 'Bra1nz', 'Mosaic', 'Caylen_Faux', 'Tobben', 'Strakur', 'Valkan_Koza', '6pony66', 'Linkie13233', 'S4th', 'Dusty_S_Hooves', 'twitch.tv/morrows', 'DJ_Squirrel', 'Aequitas_Telum', 'nimdraug', 'Horüs', 'Taharo', 'DOGE@Iratus', 'Darkscootaloo', 'Deadmoush', 'Holi', 'FInal_Starman', 'Danz', 'Ronka', 'Notmlpchan', 'Princess_Celestia', 'JayBoi', 'Dusk_Shine', 'DMM', 'Juri', 'Crossbow1701', 'Med_Unna', 'Yurka86rus', 'DubstepMaster', 'Sir_Erik', 'Shadwobnair', 'Railgun'); x = 0; while (x < SupporterList.length) { if (substring(SupporterList[x], 0, 5) == 'DOGE@') { DogeCredits += substring(SupporterList[x], 6, SupporterList[x].length - 5) + ' - '; } else { ContributorCredits += SupporterList[x] + ' - '; } ++x; } DogeCredits = substring(DogeCredits, 0, DogeCredits.length - 3); ContributorCredits = substring(ContributorCredits, 0, ContributorCredits.length - 3); var townName = 'Рай'; var charName = 'Мэр'; var StatMax = 9; var StatsLeft = 12; var TraitsLeft = 2; var statCharisma = 3; var statInsight = 3; var statCuriosity = 3; var statKarma = 3; var statWillpower = 3; var resources = new Array(['Битсы', 0], ['Еда', 50], ['Наука', 0], ['Камни', 0], ['LUXURY1', 0], ['LUXURY2', 0], ['LUXURY3', 0], ['LUXURY4', 0], ['LUXURY5', 0], ['LUXURY6', 0]); var traitsOwned = new Array(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); var skill_Leadership = 0; var skill_Diplomacy = 0; var skill_Knowledge = 0; var skill_Architecture = 0; var skill_Discipline = 0; var skill_Ecology = 0; var skill_Tradecraft = 0; var difficulty = 1; var maleColor = new Array(2); var maleColorRed = 100; var maleColorRedMin = 50; var maleColorRedMax = 200; var maleColorGreen = 100; var maleColorGreenMin = 50; var maleColorGreenMax = 200; var maleColorBlue = 100; var maleColorBlueMin = 50; var maleColorBlueMax = 200; var colorChangeRed = 0; var colorChangeGreen = 0; var colorChangeBlue = 0; var maleColorRedPercent; var maleColorGreenPercent; var maleColorBluePercent; var FuckingWait = 0; var FuckingWaitMax = 7; } frame 4 { globalvolumee = new Sound(); var volumeepos = 50; globalvolumee.setVolume(volumeepos); var globalvolumeeMOD = 1; var volumeeoffset = 0; volumee.volumeeBar._x = 0; volumee.volumeeBar.onPress = function () { startDrag(this, false, -40, this._y, 40, this._y); }; volumee.volumeeBar.onReleaseOutside = function () { stopDrag(); }; volumee.volumeeBar.onRelease = volumee.volumeeBar.onReleaseOutside; volumee.volumeeBar.onEnterFrame = function () { volumeepos = int((this._x - volumeeoffset - 40) * -1.25); _root.cache.data.volumee = volumeepos; globalvolumee.setVolume(volumeepos * globalvolumeeMOD); }; } movieClip 1206 { } movieClip 1207 { } movieClip 1210 { } movieClip 1213 { } movieClip 1215 { } button 1218 { on (release) { this.warning.gotoAndStop(1); } } movieClip 1219 { instance of movieClip 657 { onClipEvent (load) { gotoAndStop(1); } } instance of movieClip 627 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 627 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 657 { onClipEvent (load) { gotoAndStop(3); } } instance of movieClip 627 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 627 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 627 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 627 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 627 { onClipEvent (load) { gotoAndStop(1); } } } button 1222 { on (release) { getURL('http://stasyan1902.tumblr.com/cp_changes/', '_blank'); } on (rollOver) { descript = 'Посмотреть изменения'; } on (rollOut) { descript = ''; } } movieClip 1223 { } button 1224 { on (release) { if (_root.slider.decision == false) { if (_root.cache.data.FileExists == true) { this.warning.gotoAndStop(2); } else { _root.loadGame = false; _root.slider.gotoAndPlay('fadeout'); _root.slider.decision = true; } } } on (rollOver) { descript = 'Начать новую карту'; } on (rollOut) { descript = ''; } } button 1225 { on (release) { this.warning.gotoAndStop(3); } on (rollOver) { descript = 'Изменить настройки игры'; } on (rollOut) { descript = ''; } } button 1226 { on (release) { getURL('http://www.patreon.com/Mittsies', '_blank'); this.warning.gotoAndStop(4); } on (rollOver) { descript = 'Перейти на Patreon, чтобы поддержать игру'; } on (rollOut) { descript = ''; } } button 1228 { on (release) { getURL('http://www.mittsies.com/', '_blank'); } on (rollOver) { descript = 'Посетить Mittsies.com'; } on (rollOut) { descript = ''; } } button 1229 { on (release) { getURL('http://www.comdotgame.com/', '_blank'); } on (rollOver) { descript = 'Посетить сайт COMDOTGAME'; } on (rollOut) { descript = ''; } } button 1231 { on (release) { this.warning.gotoAndStop(5); } on (rollOver) { descript = 'Посмотреть разблокированные секс-сцены'; } on (rollOut) { descript = ''; } } movieClip 1234 { } movieClip 1238 { } button 1239 { on (release) { this.warning.gotoAndStop(7); } on (rollOver) { descript = 'Список тех, кто работал над игрой'; } on (rollOut) { descript = ''; } } button 1242 { on (release) { this.warning.gotoAndStop(4); } on (rollOver) { descript = 'Список щедрых спонсоров'; } on (rollOut) { descript = ''; } } button 1249 { on (release) { if (_parent._parent.decision != true) { _parent._parent.gotoAndPlay('fadeout'); _parent._parent.decision = true; _root.loadGame = false; } } } button 1250 { on (release) { gotoAndStop(1); } } movieClip 1258 { } movieClip 1267 { instance of movieClip 1258 { onClipEvent (load) { if (_root.cache.data.PlayerDataOptions[0] == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } onClipEvent (release) { if (_root.cache.data.PlayerDataOptions[0] == false) { _root.showRadiusOnSelect = true; _root.cache.data.PlayerDataOptions[0] = true; this.gotoAndStop(2); } else { _root.showRadiusOnSelect = false; _root.cache.data.PlayerDataOptions[0] = false; this.gotoAndStop(1); } } } instance of movieClip 1258 { onClipEvent (load) { if (_root.cache.data.PlayerDataOptions[2] == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } onClipEvent (release) { if (_root.cache.data.PlayerDataOptions[2] == false) { _root.selectBlanks = true; _root.cache.data.PlayerDataOptions[2] = true; this.gotoAndStop(2); } else { _root.selectBlanks = false; _root.cache.data.PlayerDataOptions[2] = false; this.gotoAndStop(1); } } } instance of movieClip 1258 { onClipEvent (load) { if (_root.cache.data.PlayerDataOptions[3] == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } onClipEvent (release) { if (_root.cache.data.PlayerDataOptions[3] == false) { _root.pauseDuringMeet = true; _root.cache.data.PlayerDataOptions[3] = true; this.gotoAndStop(2); } else { _root.pauseDuringMeet = false; _root.cache.data.PlayerDataOptions[3] = false; this.gotoAndStop(1); } } } instance of movieClip 1258 { onClipEvent (load) { if (_root.cache.data.PlayerDataOptions[4] == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } onClipEvent (release) { if (_root.cache.data.PlayerDataOptions[4] == false) { _root.deselectRightClick = true; _root.cache.data.PlayerDataOptions[4] = true; this.gotoAndStop(2); } else { _root.deselectRightClick = false; _root.cache.data.PlayerDataOptions[4] = false; this.gotoAndStop(1); } } } instance of movieClip 1258 { onClipEvent (load) { if (_root.cache.data.PlayerDataOptions[5] == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } onClipEvent (release) { if (_root.cache.data.PlayerDataOptions[5] == false) { _root.DragOnLeftClick = true; _root.cache.data.PlayerDataOptions[5] = true; this.gotoAndStop(2); } else { _root.DragOnLeftClick = false; _root.cache.data.PlayerDataOptions[5] = false; this.gotoAndStop(1); } if (_root.DragOnLeftClick == false) { _root.DragKeys[0] = 4; } else { _root.DragKeys[0] = 1; } } } instance of movieClip 1258 { onClipEvent (load) { if (_root.cache.data.PlayerDataOptions[6] == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } onClipEvent (release) { if (_root.cache.data.PlayerDataOptions[6] == false) { _root.pauseGameInitially = true; _root.cache.data.PlayerDataOptions[6] = true; this.gotoAndStop(2); } else { _root.pauseGameInitially = false; _root.cache.data.PlayerDataOptions[6] = false; this.gotoAndStop(1); } } } instance of movieClip 1258 { onClipEvent (load) { if (_root.cache.data.PlayerDataOptions[8] == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } onClipEvent (release) { if (_root.cache.data.PlayerDataOptions[8] == false) { _root.FutaMode = true; _root.cache.data.PlayerDataOptions[8] = true; this.gotoAndStop(2); } else { _root.FutaMode = false; _root.cache.data.PlayerDataOptions[8] = false; this.gotoAndStop(1); } } } instance of movieClip 1258 { onClipEvent (load) { if (_root.cache.data.PlayerDataOptions[9] == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } onClipEvent (release) { if (_root.cache.data.PlayerDataOptions[9] == false) { _root.hideCustomCursor = true; _root.cache.data.PlayerDataOptions[9] = true; this.gotoAndStop(2); } else { _root.hideCustomCursor = false; _root.cache.data.PlayerDataOptions[9] = false; this.gotoAndStop(1); } } } } movieClip 1275 { } movieClip 1278 { } movieClip 1281 { } movieClip 1283 { } movieClip 1285 { } movieClip 1286 { } movieClip 1287 { } movieClip 1291 { } movieClip 1292 { } movieClip 1293 { } movieClip 1296 { } movieClip 1297 { instance Mask of movieClip 1287 { onClipEvent (enterFrame) { this.gotoAndStop(_root.loveDisplay + 1); } } } movieClip 1301 { } movieClip 1302 { } movieClip 1305 { } movieClip 1308 { } movieClip 1312 { } movieClip 1315 { } movieClip 1321 { } button 1327 { on (release) { _root.cache.clear(); _root.gotoAndPlay(1); } } movieClip 1329 { frame 1 { stop(); } frame 5 { if (_root.UnlocksGallery[0][1] == 1) { this.u1.Locked._alpha = 0; this.u1.onRelease = function () { _root.MiniScene = 2; _root.unlockpop.gotoAndStop(5); }; } if (_root.UnlocksGallery[1][1] == 1) { this.u2.Locked._alpha = 0; this.u2.onRelease = function () { _root.MiniScene = 3; _root.unlockpop.gotoAndStop(5); }; } if (_root.UnlocksGallery[2][1] == 1) { this.u3.Locked._alpha = 0; this.u3.onRelease = function () { _root.MiniScene = 4; _root.unlockpop.gotoAndStop(5); }; } if (_root.UnlocksGallery[3][1] == 1) { this.u4.Locked._alpha = 0; this.u4.onRelease = function () { _root.MiniScene = 5; _root.unlockpop.gotoAndStop(5); }; } if (_root.UnlocksGeneric[0][2] == 1) { this.u0.Locked._alpha = 0; this.u0.onRelease = function () { if (_root.slider.decision == false && _root.cache.data.FileExists == true) { _root.loadGame = true; } else { _root.loadGame = false; } _root.FAPMODE = 1; _root.slider.gotoAndPlay('fadeout'); _root.slider.decision = true; this.gotoAndStop(1); }; } } } movieClip 1332 { frame 2 { gotoAndPlay(1); if (_root.paperScroll == 1) { if (_root.PaperPosition < _root.MaxPaperMove[1]) { this._parent.warning.changelogPaper._y += 30; _root.PaperPosition += 30; } } else { if (_root.paperScroll == -1) { if (_root.PaperPosition > _root.MaxPaperMove[0]) { this._parent.warning.changelogPaper._y -= 30; _root.PaperPosition -= 30; } } } } } movieClip 1339 { frame 1 { gotoAndStop(2); } } button 1341 { on (release) { this.warning.gotoAndStop(8); } } movieClip 1342 { frame 1 { var descript = ''; var mouseListener = new Object(); mouseListener.onMouseWheel = function (delta) { if (delta < 0 && _root.PaperPosition > _root.MaxPaperMove[0] || delta > 0 && _root.PaperPosition < _root.MaxPaperMove[1]) { _root.slider.optionstitle.warning.changelogPaper._y += delta * 5; _root.PaperPosition += delta * 5; } }; Mouse.addListener(mouseListener); } frame 1 { this.underlay.useHandCursor = false; } instance of movieClip 1223 { onClipEvent (load) { this.gotoAndStop(1); if (_root.cache.data.FileExists != true) { this._alpha = 50; } } onClipEvent (release) { if (_root.slider.decision == false && _root.cache.data.FileExists == true) { _root.loadGame = true; _root.slider.gotoAndPlay('fadeout'); _root.slider.decision = true; } this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } onClipEvent (press) { if (_root.cache.data.FileExists == true) { this.gotoAndStop(3); } } onClipEvent (rollOver) { this._parent.descript = 'Продолжить с последней карты'; if (_root.cache.data.FileExists == true) { this.gotoAndStop(2); } } onClipEvent (rollOut) { this._parent.descript = ''; this.gotoAndStop(1); } } instance of movieClip 1238 { onClipEvent (load) { if (_root.cache.data.FileExists == true) { this._alpha = 0; } else { this._alpha = 100; } } } instance of movieClip 1332 { onClipEvent (keyDown) { if (Key.getCode() == 38 || Key.getCode() == 87) { if (_root.PaperPosition < _root.MaxPaperMove[1]) { this._parent.warning.changelogPaper._y += 10; _root.PaperPosition += 10; } } if (Key.getCode() == 40 || Key.getCode() == 83) { if (_root.PaperPosition > _root.MaxPaperMove[0]) { this._parent.warning.changelogPaper._y -= 10; _root.PaperPosition -= 10; } } if (Key.getCode() == 32) { if (_root.PaperLock == 0) { _root.PaperLock = 1; _root.changelogPaper.gotoAndStop(2); } else { _root.PaperLock = 0; _root.changelogPaper.gotoAndStop(1); } } } } } movieClip 1346 { frame 2 { stop(); } frame 23 { stop(); } } movieClip 1348 { frame 2 { var decision = false; if (_root.AlreadyWatchedIntro == true) { if (!mfired) { _root.MusikLoop = 1; _root.queuemusikSingle(2); mfired = true; } gotoAndStop('end'); } } frame 29 { stop(); } instance of movieClip 1210 { onClipEvent (release) { _root.slider.play(); } } instance of movieClip 1210 { onClipEvent (release) { _root.slider.gotoAndStop('end'); } } frame 50 { if (!mfired) { _root.MusikLoop = 1; _root.queuemusikSingle(2); mfired = true; } } frame 134 { stop(); if (_root.AlreadyWatchedIntro == false) { _root.AlreadyWatchedIntro = true; } else { this.fader.gotoAndPlay('fadeIn'); } } frame 153 { if (_root.loadGame == true) { _root.gotoAndStop('game'); } else { _root.gotoAndStop('intro'); } } } button 1351 { on (release) { if (_quality == 'MEDIUM') { _quality = 'HIGH'; } else { if (_quality == 'HIGH') { _quality = 'LOW'; } else { if (_quality == 'LOW') { _quality = 'MEDIUM'; } } } _root.hoverText = _quality; } on (rollOver) { _root.hoverText = _quality; } on (rollOut) { _root.hoverText = ''; } } movieClip 1360 { } movieClip 1363 { } movieClip 1364 { } movieClip 1367 { } movieClip 1368 { } movieClip 1372 { } movieClip 1374 { } movieClip 1375 { } movieClip 1377 { } movieClip 1379 { } movieClip 1381 { } movieClip 1383 { } movieClip 1385 { } movieClip 1386 { } movieClip 1388 { } button 1389 { on (release) { gotoAndStop(1); if (_root.pauseDuringMeet == true && _root.gamePaused == true) { _root.pauseGame(); } } } // unknown tag 88 length 82 movieClip 1397 { } movieClip 1400 { } movieClip 1401 { } button 1404 { on (release) { gotoAndStop('negotiate'); } } movieClip 1406 { } button 1409 { on (release) { gotoAndStop('intimidate'); } } movieClip 1412 { } movieClip 1413 { } button 1416 { on (release) { gotoAndStop('fortify'); } } movieClip 1419 { } movieClip 1421 { } button 1424 { on (release) { gotoAndStop('counter'); } } button 1429 { on (release) { gotoAndStop('bribe'); } } button 1431 { on (release) { _root.Diplomacy('negotiate', 0); } } button 1433 { on (release) { _root.Diplomacy('negotiate', 2); } } button 1435 { on (release) { _root.Diplomacy('negotiate', 1); } } button 1437 { on (release) { gotoAndStop(1); } } button 1440 { on (release) { _root.Diplomacy('bribe', 1); } } button 1442 { on (release) { _root.Diplomacy('bribe', 2); } } button 1444 { on (release) { _root.Diplomacy('bribe', 3); } } button 1446 { on (release) { _root.Diplomacy('bribe', 4); } } button 1448 { on (release) { _root.Diplomacy('bribe', 5); } } button 1450 { on (release) { gotoAndStop('negotiate'); } } button 1455 { on (release) { _root.Diplomacy('intimidate', 0); } } button 1457 { on (release) { _root.Diplomacy('intimidate', 1); } } button 1463 { on (release) { _root.Diplomacy('fortify', 0); } } button 1465 { on (release) { _root.Diplomacy('fortify', 1); } } button 1467 { on (release) { if (StoryFlags[3] != 1) { _root.Diplomacy('fortify', 2); } } } button 1469 { on (release) { _root.Diplomacy('fortify', 3); } } button 1476 { on (release) { _root.Diplomacy('counter', 0); } } button 1478 { on (release) { _root.Diplomacy('counter', 1); } } movieClip 1480 { frame 1 { stop(); } } button 1484 { on (release) { gotoAndStop(5); } } movieClip 1490 { } movieClip 1492 { } movieClip 1494 { } movieClip 1496 { } movieClip 1498 { } movieClip 1500 { } movieClip 1502 { } movieClip 1504 { } movieClip 1506 { } movieClip 1508 { } movieClip 1510 { } movieClip 1512 { } movieClip 1514 { } movieClip 1516 { } movieClip 1518 { } movieClip 1520 { } movieClip 1522 { } movieClip 1524 { } movieClip 1526 { } movieClip 1528 { } movieClip 1530 { } movieClip 1532 { } movieClip 1534 { } movieClip 1536 { } movieClip 1546 { frame 11 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } } movieClip 1548 { } movieClip 1549 { } movieClip 1551 { } movieClip 1553 { } movieClip 1555 { } movieClip 1557 { } movieClip 1559 { } movieClip 1561 { } movieClip 1563 { } movieClip 1565 { } movieClip 1567 { } movieClip 1569 { } movieClip 1586 { frame 10 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } } movieClip 1591 { frame 1 { stop(); } } movieClip 1627 { frame 31 { stop(); } } movieClip 1647 { frame 31 { stop(); } } movieClip 1648 { } movieClip 1649 { } movieClip 1651 { } button 1652 { on (release) { Phase = 'loop1'; } } button 1654 { on (release) { Phase = 'loop2'; } } button 1656 { on (release) { Phase = 'loop3'; } } button 1658 { on (release) { Phase = 'cum'; } } movieClip 1725 { frame 1 { this.twihead.hair1.gotoAndPlay(Phase); this.twihead.hair2.gotoAndPlay(Phase); } frame 1 { if (!init) { init = true; var Phase = 'loop1'; } } frame 30 { gotoAndPlay(Phase); } frame 40 { this.twihead.hair1.gotoAndPlay(Phase); this.twihead.hair2.gotoAndPlay(Phase); } frame 59 { gotoAndPlay(Phase); } frame 68 { this.twihead.hair1.gotoAndPlay(Phase); this.twihead.hair2.gotoAndPlay(Phase); } frame 83 { this.twihead.hair1.gotoAndPlay(Phase + 're'); this.twihead.hair2.gotoAndPlay(Phase + 're'); } frame 96 { if (Phase == 'loop3') { gotoAndPlay(Phase + 're'); } } frame 97 { this.twihead.hair1.gotoAndPlay('loop1'); this.twihead.hair2.gotoAndPlay('loop1'); } frame 105 { gotoAndPlay(Phase); } frame 110 { this.twihead.hair1.gotoAndPlay(Phase); this.twihead.hair2.gotoAndPlay(Phase); } frame 111 { Phase = 'loop2'; } frame 213 { gotoAndPlay('loop2re'); } } movieClip 1726 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 1729 { } movieClip 1731 { } movieClip 1733 { } movieClip 1735 { } movieClip 1737 { } movieClip 1739 { } movieClip 1741 { } movieClip 1743 { } movieClip 1745 { } movieClip 1747 { } movieClip 1749 { } movieClip 1751 { } movieClip 1753 { } movieClip 1755 { } movieClip 1757 { } movieClip 1759 { } movieClip 1761 { } movieClip 1770 { frame 1 { stop(); } } movieClip 1772 { } movieClip 1774 { } movieClip 1776 { } movieClip 1778 { } movieClip 1780 { } movieClip 1782 { } movieClip 1784 { } movieClip 1800 { frame 10 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } frame 26 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(16); } } frame 50 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(45); } } } movieClip 1802 { } movieClip 1808 { frame 10 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } } movieClip 1810 { } movieClip 1812 { } movieClip 1814 { } movieClip 1816 { } movieClip 1818 { } movieClip 1828 { frame 9 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } } movieClip 1830 { } movieClip 1832 { } movieClip 1834 { } movieClip 1836 { } movieClip 1838 { } movieClip 1839 { frame 1 { stop(); } } movieClip 1840 { } movieClip 1842 { } movieClip 1852 { frame 1 { stop(); } } movieClip 1854 { } movieClip 1855 { frame 1 { if (!init) { init = true; var Phase = 'loop0'; } } frame 23 { gotoAndPlay(Phase); } frame 41 { gotoAndPlay(Phase); } frame 51 { this.head.hair.gotoAndPlay('bounce'); this.butt.gotoAndPlay('jiggle'); this.macbutt.gotoAndPlay('jiggle'); this.macbody.macbutt.gotoAndPlay('jiggle'); } frame 66 { gotoAndPlay(Phase); } frame 78 { this.head.hair.gotoAndPlay('bounce'); this.butt.gotoAndPlay('jiggle'); this.macbutt.gotoAndPlay('jiggle'); this.macbody.macbutt.gotoAndPlay('jiggle'); } frame 90 { gotoAndPlay(Phase); } frame 102 { this.head.hair.gotoAndPlay('bounce'); this.butt.gotoAndPlay('jiggle'); this.macbutt.gotoAndPlay('jiggle'); this.macbody.macbutt.gotoAndPlay('jiggle'); } frame 111 { if (Phase == 'loop3') { gotoAndPlay('loop3re'); } } frame 119 { gotoAndPlay(Phase); } frame 133 { this.head.hair.gotoAndPlay('bounce'); this.butt.gotoAndPlay('jiggle'); this.macbutt.gotoAndPlay('jiggle'); this.macbody.macbutt.gotoAndPlay('jiggle'); } frame 140 { if (Phase == 'loop4') { gotoAndPlay('loop4re'); } } frame 150 { gotoAndPlay(Phase); } frame 160 { this.head.hair.gotoAndPlay('bounce'); this.butt.gotoAndPlay('jiggle'); this.macbutt.gotoAndPlay('jiggle'); this.macbody.macbutt.gotoAndPlay('jiggle'); } frame 167 { gotoAndPlay(Phase); } } button 1856 { on (release) { this.char.Phase = 'loop0'; } } button 1858 { on (release) { this.char.Phase = 'loop0b'; } } button 1860 { on (release) { this.char.Phase = 'loop1'; } } button 1862 { on (release) { this.char.Phase = 'loop2'; } } button 1864 { on (release) { this.char.Phase = 'loop3'; } } movieClip 1867 { } movieClip 1869 { } movieClip 1872 { frame 1 { stop(); } } movieClip 1874 { } movieClip 1876 { } movieClip 1878 { } movieClip 1880 { } movieClip 1882 { } movieClip 1884 { } button 1889 { on (release) { nextFrame(); } } movieClip 1890 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 1895 { } movieClip 1905 { frame 10 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } } movieClip 1907 { } movieClip 1909 { } movieClip 1911 { } movieClip 1913 { } movieClip 1915 { } movieClip 1917 { } movieClip 1920 { } movieClip 1922 { } movieClip 1923 { frame 1 { stop(); } frame 45 { gotoAndStop(1); } frame 71 { gotoAndStop(1); } } movieClip 1925 { } movieClip 1927 { } movieClip 1929 { } movieClip 1932 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 1934 { frame 1 { stop(); } } movieClip 1936 { } movieClip 1938 { } movieClip 1940 { } movieClip 1942 { } movieClip 1944 { } movieClip 1946 { } movieClip 1948 { } movieClip 1950 { } movieClip 1952 { } movieClip 1957 { frame 1 { stop(); } } button 1958 { on (release) { Phase = 'idle'; } } button 1961 { on (release) { Phase = 'loop4'; } } movieClip 1969 { } movieClip 1970 { frame 1 { if (!init) { init = true; var Phase = 'idle'; } this.anus.gotoAndStop(1); } frame 40 { if (Phase != 'idle') { this.Flash.gotoAndPlay(2); this.anus.gotoAndStop(2); } gotoAndPlay(Phase); } frame 52 { this.butt1.gotoAndPlay('jiggle'); } frame 53 { this.butt2.butt1.gotoAndPlay('jiggle'); } frame 97 { if (Phase == 'idle') { this.Flash.play(); } gotoAndPlay(Phase); } frame 106 { this.butt1.gotoAndPlay('jiggle2'); this.butt2.butt1.gotoAndPlay('jiggle2'); } frame 117 { if (Phase == 'idle') { this.Flash.play(); } gotoAndPlay(Phase); } frame 123 { gotoAndPlay(Phase); } frame 125 { this.butt1.gotoAndPlay('jiggle2'); this.butt2.butt1.gotoAndPlay('jiggle2'); } frame 135 { if (Phase == 'idle') { this.Flash.play(); } gotoAndPlay(Phase); } frame 144 { this.butt1.gotoAndPlay('jiggle2'); this.butt2.butt1.gotoAndPlay('jiggle2'); } frame 150 { if (Phase == 'idle') { this.Flash.play(); } gotoAndPlay(Phase); } } movieClip 1973 { } movieClip 1975 { } movieClip 1977 { } movieClip 1979 { } movieClip 1981 { } movieClip 1983 { } movieClip 1985 { } movieClip 1987 { } movieClip 1989 { } movieClip 1991 { } movieClip 1993 { } movieClip 1995 { } movieClip 1997 { } movieClip 1999 { } movieClip 2012 { frame 10 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } } movieClip 2014 { } movieClip 2016 { } movieClip 2018 { } movieClip 2020 { } movieClip 2022 { } movieClip 2028 { frame 1 { stop(); } frame 52 { gotoAndStop(1); } } movieClip 2030 { } movieClip 2032 { } movieClip 2034 { } movieClip 2037 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 2039 { } movieClip 2041 { } movieClip 2043 { } movieClip 2045 { } movieClip 2104 { frame 1 { stop(); } } movieClip 2106 { } movieClip 2108 { } movieClip 2110 { } movieClip 2112 { } movieClip 2114 { } movieClip 2116 { } movieClip 2118 { } movieClip 2120 { } movieClip 2122 { } movieClip 2123 { frame 1 { if (!init) { init = true; var Phase = 'loop1'; } } frame 12 { if (Phase == 'loop1') { gotoAndPlay(Phase); } } frame 24 { if (Phase == 'loop2') { gotoAndPlay(Phase); } } frame 60 { if (Phase != 'loop1' && Phase != 'loop2') { gotoAndPlay(Phase); } else { gotoAndPlay('loop0'); } } frame 90 { if (Phase == 'loop1') { gotoAndPlay(Phase); } else { gotoAndPlay('junction1'); } } frame 127 { if (Phase == 'loop2') { gotoAndPlay(Phase); } else { gotoAndPlay('junction2'); } } frame 171 { if (Phase != 'loop1' && Phase != 'loop2') { gotoAndPlay(Phase); } else { gotoAndPlay('loop0'); } } frame 199 { if (Phase != 'loop1' && Phase != 'loop2') { gotoAndPlay(Phase); } else { gotoAndPlay('loop0'); } } frame 211 { this.dick.play(); this.head.nextFrame(); this.jaw.play(); } frame 257 { this.head.nextFrame(); } frame 257 { Phase = 'loop0'; } frame 287 { if (Phase != 'loop1' && Phase != 'loop2') { gotoAndPlay(Phase); } else { gotoAndPlay('loop0'); } } } button 2124 { on (release) { char.Phase = 'loop1'; } } button 2126 { on (release) { char.Phase = 'loop2'; } } button 2128 { on (release) { char.Phase = 'loop3'; } } button 2130 { on (release) { char.Phase = 'loop4'; } } button 2132 { on (release) { char.Phase = 'cum1'; } } movieClip 2134 { frame 1 { gotoAndStop(_root.MiniScene); } } button 2143 { on (release) { if (_root.EvilData[2] <= 0) { _root.EvilAttacks(); } else { gotoAndStop(1); if (_root.pauseDuringMeet == true && _root.gamePaused == true) { _root.pauseGame(); } } } } movieClip 2152 { frame 1 { stop(); } } button 2155 { on (release) { _root.musik.nextFrame(); if (_root.MusikStatus == 'Off') { _root.MusikStatus = 'On'; _root.Musik.start(_root.MusikPos / 1000); } else { _root.MusikStatus = 'Off'; _root.Musik.stop(); _root.MusikPos = _root.Musik.position; } } on (rollOver) { _root.feedText2 = 'Остановить музыку'; _root.feedText = 'Приостановить саундтрек.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } movieClip 2157 { frame 1 { gotoAndStop(2); } frame 4 { gotoAndStop(2); } } instance musik of movieClip 2157 { onClipEvent (enterFrame) { _root.Musik.setVolume(_root.MusikVolume * _root.MVMaster); } } movieClip 2161 { } movieClip 2163 { } movieClip 2164 { instance of movieClip 2163 { onClipEvent (enterFrame) { myColor = new Color(this); myColorTransform = new Object(); myColorTransform = {'bb': _root.volumeepos * 2}; myColor.setTransform(myColorTransform); } } } frame 5 { if (_root.StoryWatched == true) { stop(); } else { _root.gotoAndStop('story'); _root.StoryWatched = true; cache.data.StoryWatched = true; } var mouseyListener = new Object(); mouseyListener.onMouseWheel = function (delta) { if (delta < 0) { _root.intro.input.traits.nextFrame(); } else { if (delta > 0) { _root.intro.input.traits.prevFrame(); } } }; Mouse.addListener(mouseyListener); endGameSession(); setColor(); } button 2166 { on (rollOver) { descript = 'ХАРИЗМА\r• Определяет стартовое счастье.\r• Влияет на скорость въезда в дома.\r• Дополнительные диалоги с NPCs.\r• Уменьшает несчастье от перенаселения на 1% за 2 единицы.\r• Уровень 3: Старт со специалистом.\r• Уровень 7: Бонус от городской площади +5% на единицу.\r• Уровень 10: Старт с еще одним специалистом.'; } on (rollOut) { descript = ''; } } button 2167 { on (rollOver) { descript = 'ПОНИМАНИЕ\r• Уменьшает необходимую Магию любви для нового уровня (-1% на единицу).\r• Дает дополнительные очки навыков с уровнем (0.05 за единицу).\r• Повышает эффективность лабораторий и библиотек.\r• Повышает максимум маны на 5 за единицу.\r• Уровень 3: Увеличивает ману на 20.\r• Уровень 7: +25 Очков науки.\r• Уровень 10: Лаборатории и энергостанции дешевлее на 25%.'; } on (rollOut) { descript = ''; } } button 2168 { on (rollOver) { descript = 'ЛЮБОПЫТСТВО\r• +10 битс на единицу\r• Торговцы будут посещать город чаще.\r• Увеличивает число торговцев на 1 за 5 единиц.\r• СПециалисты быстрее собирают информацию в разведке.\r• Уровень 3: +50 битс +150 еды.\r• Уровень 7: +1 к числу сделок.\r• Уровень 10: Магазины и городские площади дешевлее на треть.'; } on (rollOut) { descript = ''; } } button 2169 { on (rollOver) { descript = 'КАРМА\r• Определяет число деревьев.\r• Увеличивает удачу.\r• Определяет состояние окружающей среды при старте (85 + 5% за единицу).\r• Уменьшает негативный эффект от зданий.\r• Уровень 3: Черная кошка не перейдет вам дорогу.\r• Уровень 7: Старт с +10 камнями.\r• Уровень 10: Приток Магии любви, если проваливается нападение Чейнжлингов.'; } on (rollOut) { descript = ''; } } button 2170 { on (rollOver) { descript = 'ВОЛЯ\r• Специалисты более эффективны.\r• Определяет начальную защиту.\r• Уменьшает частоту нападений Чейнжлингов.\r• Меньший негативный эффект от плохой экологии.\r• Уровень 3: Задерживает первое нападение на 15 дней.\r• Уровень 7: Наим специалистов дешевлее на 20%.\r• Уровень 10: Максимум счастья выше на 10.'; } on (rollOut) { descript = ''; } } button 2171 { on (rollOver) { descript = 'Название города!'; } on (rollOut) { descript = ''; } } button 2172 { on (rollOver) { descript = 'Имя персонажа!'; } on (rollOut) { descript = ''; } } movieClip 2175 { } button 2176 { on (rollOver) { StatBracketHint(); } on (rollOut) { descript = ''; } } movieClip 2180 { } button 2181 { on (release) { if (_root.statInsight > 1) { x = 0; while (x < _root.StatBracket.length) { if (_root.statInsight < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } _root.statInsight -= 1; _root.StatsLeft += statCost; this.checkstats(); } } on (rollOver) { StatBracketHint(); } on (rollOut) { descript = ''; } } button 2182 { on (release) { if (_root.statCuriosity > 1) { x = 0; while (x < _root.StatBracket.length) { if (_root.statCuriosity < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } _root.statCuriosity -= 1; _root.StatsLeft += statCost; this.checkstats(); } } on (rollOver) { StatBracketHint(); } on (rollOut) { descript = ''; } } button 2183 { on (release) { if (_root.statKarma > 1) { x = 0; while (x < _root.StatBracket.length) { if (_root.statKarma < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } _root.statKarma -= 1; _root.StatsLeft += statCost; this.checkstats(); } } on (rollOver) { StatBracketHint(); } on (rollOut) { descript = ''; } } button 2184 { on (release) { if (_root.statCharisma > 1) { x = 0; while (x < _root.StatBracket.length) { if (_root.statCharisma < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } _root.statCharisma -= 1; _root.StatsLeft += statCost; this.checkstats(); } } on (rollOver) { StatBracketHint(); } on (rollOut) { descript = ''; } } button 2185 { on (release) { x = 0; while (x < _root.StatBracket.length) { if (_root.statInsight + 1 < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } if (_root.statInsight < _root.StatMax + statCost && _root.StatsLeft >= statCost) { _root.statInsight += 1; _root.StatsLeft -= statCost; this.checkstats(); } } on (rollOver) { StatBracketHint(); } on (rollOut) { descript = ''; } } button 2186 { on (release) { x = 0; while (x < _root.StatBracket.length) { if (_root.statCuriosity + 1 < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } if (_root.statCuriosity < _root.StatMax + statCost && _root.StatsLeft >= statCost) { _root.statCuriosity += 1; _root.StatsLeft -= statCost; this.checkstats(); } } on (rollOver) { StatBracketHint(); } on (rollOut) { descript = ''; } } button 2187 { on (release) { x = 0; while (x < _root.StatBracket.length) { if (_root.statKarma + 1 < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } if (_root.statKarma < _root.StatMax + statCost && _root.StatsLeft >= statCost) { _root.statKarma += 1; _root.StatsLeft -= statCost; this.checkstats(); } } on (rollOver) { StatBracketHint(); } on (rollOut) { descript = ''; } } button 2188 { on (release) { x = 0; while (x < _root._root.StatBracket.length) { if (_root.statCharisma + 1 < _root._root.StatBracket[x][0]) { statCost = _root._root.StatBracket[x][1]; break; } ++x; } if (_root.statCharisma < _root.StatMax + statCost && _root.StatsLeft >= statCost) { _root.statCharisma += 1; _root.StatsLeft -= statCost; this.checkstats(); } } on (rollOver) { StatBracketHint(); } on (rollOut) { descript = ''; } } button 2189 { on (release) { if (_root.statWillpower > 1) { x = 0; while (x < _root.StatBracket.length) { if (_root.statWillpower < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } _root.statWillpower -= 1; _root.StatsLeft += statCost; this.checkstats(); } } on (rollOver) { StatBracketHint(); } on (rollOut) { descript = ''; } } button 2190 { on (release) { x = 0; while (x < _root.StatBracket.length) { if (_root.statWillpower + 1 < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } if (_root.statWillpower < _root.StatMax + statCost && _root.StatsLeft >= statCost) { _root.statWillpower += 1; _root.StatsLeft -= statCost; this.checkstats(); } } on (rollOver) { StatBracketHint(); } on (rollOut) { descript = ''; } } button 2193 { on (rollOver) { descript = 'НОРМАЛЬНЫЙ РЕЖИМ\rСтандартный, сбалансированный геймплей, доступный каждому.'; } on (rollOut) { descript = ''; } on (release) { if (_root.difficulty == 1) { _root.difficulty = 2; _root.intro.input.CB2.gotoAndStop(2); _root.intro.input.CB1.gotoAndStop(1); } else { _root.difficulty = 1; _root.intro.input.CB2.gotoAndStop(1); _root.intro.input.CB1.gotoAndStop(2); } } } button 2194 { on (rollOver) { descript = 'РЕЖИМ ЭКСПЕРТА\rБолее сложный вариант, требующий четкого понимания игровой механики.\r• Увеличивает частоту нападений Чейнжлингов.\r• Увеличивает несчатье от перенаселения.\r• Нельзя поставить на паузу.\r• Меньшая карта.'; } on (rollOut) { descript = ''; } on (release) { if (_root.difficulty == 1) { _root.difficulty = 2; _root.intro.input.CB2.gotoAndStop(2); _root.intro.input.CB1.gotoAndStop(1); } else { _root.difficulty = 1; _root.intro.input.CB2.gotoAndStop(1); _root.intro.input.CB1.gotoAndStop(2); } } } button 2207 { on (press) { _root.colorChangeRed = 1; } on (release) { _root.colorChangeRed = 0; } } button 2208 { on (press) { _root.colorChangeRed = -1; } on (release) { _root.colorChangeRed = 0; } } movieClip 2211 { } movieClip 2214 { frame 2 { if (_root.colorChangeRed != 0) { ++_root.FuckingWait; if (_root.FuckingWait > _root.FuckingWaitMax || _root.FuckingWait == 1) { _root.maleColorRed += _root.colorChangeRed * 5 * int(_root.FuckingWait / 10 + 1); if (_root.maleColorRed < _root.maleColorRedMin) { _root.maleColorRed = _root.maleColorRedMin; } if (_root.maleColorRed > _root.maleColorRedMax) { _root.maleColorRed = _root.maleColorRedMax; } } _root.setColor(); } else { if (_root.colorChangeGreen != 0) { ++_root.FuckingWait; if (_root.FuckingWait > _root.FuckingWaitMax || _root.FuckingWait == 1) { _root.maleColorGreen += _root.colorChangeGreen * 5 * int(_root.FuckingWait / 10 + 1); if (_root.maleColorGreen < _root.maleColorGreenMin) { _root.maleColorGreen = _root.maleColorGreenMin; } if (_root.maleColorGreen > _root.maleColorGreenMax) { _root.maleColorGreen = _root.maleColorGreenMax; } } _root.setColor(); } else { if (_root.colorChangeBlue != 0) { ++_root.FuckingWait; if (_root.FuckingWait > _root.FuckingWaitMax || _root.FuckingWait == 1) { _root.maleColorBlue += _root.colorChangeBlue * 5 * int(_root.FuckingWait / 10 + 1); if (_root.maleColorBlue < _root.maleColorBlueMin) { _root.maleColorBlue = _root.maleColorBlueMin; } if (_root.maleColorBlue > _root.maleColorBlueMax) { _root.maleColorBlue = _root.maleColorBlueMax; } } _root.setColor(); } else { _root.FuckingWait = 0; } } } gotoAndPlay(1); } } button 2215 { on (press) { _root.colorChangeGreen = 1; } on (release) { _root.colorChangeGreen = 0; } } button 2216 { on (press) { _root.colorChangeGreen = -1; } on (release) { _root.colorChangeGreen = 0; } } button 2218 { on (press) { _root.colorChangeBlue = 1; } on (release) { _root.colorChangeBlue = 0; } } button 2219 { on (press) { _root.colorChangeBlue = -1; } on (release) { _root.colorChangeBlue = 0; } } movieClip 2226 { } movieClip 2229 { } movieClip 2231 { } button 2235 { on (release) { _parent.play(); } } button 2236 { on (release) { _root.gotoAndStop('title'); } } movieClip 2240 { } movieClip 2241 { } movieClip 2242 { } movieClip 2243 { } movieClip 2244 { } movieClip 2245 { } movieClip 2246 { } movieClip 2247 { } movieClip 2248 { } movieClip 2249 { } movieClip 2250 { } movieClip 2251 { } movieClip 2252 { } movieClip 2253 { } movieClip 2254 { } movieClip 2255 { } movieClip 2256 { } movieClip 2257 { } movieClip 2258 { } movieClip 2259 { } movieClip 2260 { } movieClip 2261 { } movieClip 2262 { } movieClip 2263 { } button 2265 { on (release) { nextFrame(); } } button 2268 { on (release) { prevFrame(); } } movieClip 2273 { frame 1 { stop(); } } movieClip 2275 { frame 1 { townNameInput.tabIndex = 2; charNameInput.tabIndex = 1; Button1577.tabIndex = 3; Button1578.tabIndex = 4; Button1578.tabIndex = 5; } frame 1 { var traitEnabled = new Array(NaN, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0); if (_root.UnlocksGeneric[1][2] == 1) { traitEnabled[1] = 1; } else { traitEnabled[1] = 0; } if (_root.UnlocksGeneric[2][2] == 1) { traitEnabled[8] = 1; } else { traitEnabled[8] = 0; } if (_root.UnlocksGeneric[3][2] == 1) { traitEnabled[12] = 1; } else { traitEnabled[12] = 0; } if (_root.UnlocksGeneric[8][2] == 1) { traitEnabled[18] = 1; } else { traitEnabled[18] = 0; } if (_root.UnlocksGeneric[9][2] == 1) { traitEnabled[13] = 1; } else { traitEnabled[13] = 0; } if (_root.UnlocksGeneric[10][2] == 1) { traitEnabled[17] = 1; } else { traitEnabled[17] = 0; } if (_root.UnlocksGeneric[11][2] == 1) { traitEnabled[16] = 1; } else { traitEnabled[16] = 0; } if (_root.UnlocksGeneric[12][2] == 1) { traitEnabled[20] = 1; } else { traitEnabled[20] = 0; } if (_root.UnlocksGeneric[13][2] == 1) { traitEnabled[15] = 1; } else { traitEnabled[15] = 0; } if (_root.UnlocksGeneric[14][2] == 1) { traitEnabled[21] = 1; } else { traitEnabled[21] = 0; } if (_root.UnlocksGeneric[15][2] == 1) { traitEnabled[19] = 1; } else { traitEnabled[19] = 0; } if (_root.UnlocksGeneric[16][2] == 1) { traitEnabled[14] = 1; } else { traitEnabled[14] = 0; } } frame 1 { function StatBracketHint() { descript = 'Характеристики могут быть повышены до 10 и описывают вашего персонажа.'; } var descript = ''; var traitsDescription = new Array('', 'СТАРАТЕЛЬ\rНекоторые пони просто рождены исследователями, которым предназначено выкопать землю и изучить все ее богатства. Эта черта позволит вам строить карьеры около домов и они не будут беспокоить жителей, но сады не будут иметь экологического эффекта.', 'ГАРМОНИЧНЫЙ\rЛюбовь и ненависть. Война и мир. Для добрых в душе, выбор очевиден. Эта черта дает бонус счастья от защиты, но ваши нападения будут в два раза менее эффективны.', 'СКРЯГА\rИногда экономия на качестве позволит быстрее построить город. Эта черта не только удешевляет здания, но и ускоряет их постройку в два раза. Просто прекрасно для нетерпеливых и жадных пони!', 'ЭКОЛОГ\rСчастливым можно лишь тогда, когда здорова земля. Ну, по крайней мере, так считают экологи. Эта черта дает 1 единицу счастья за каждые 2 очка экологии больше 15, но если будет меньше 15, то счастье УМЕНЬШИТСЯ на такое же значение.', 'САДОВОД\rСадоводство может быть отличным хобби, особенно если вы очарованны жизнью растений. Ваши жители будут собираться со всего города, чтобы поглядеть на эти произведения искусства! Эта черта увеличивает радиус садов, делая его как у городской площади, но у карьеров радиус тоже увеличится.', 'ГЕДОНИСТ\rДеньги лишь препятствуют получению истинного наслаждения и исполнению желаний. Эта черта позволит вашим жителям объедаться и жить бесплатно, благодаря чему Магии любви будет вдвое больше.', 'ПОДГОТОВЛЕННЫЙ\rБыть готовым ко всему прекрасно для тех, кто знает, что делают другие, даже если ради этого придется работать больше. Эта черта позволит вам построить первую городскую площадь бесплатно, а также дает дополнительные битсы при старте, также как и камни с Очками науки, в зависимости от Понимания и Кармы, но ваш уровень будет расти медленнее.', 'СОЦИАЛИСТ\rАх, социализм, светлое будущее. Эта черта означает, что пони с таким замечательным лидером будет комфортно даже на задворках общества! Кто откажется поучаствовать в бессмысленной войне за этого парня? К сожалению, Ваша нелюбовь к индустриализации поднимает цену фабрикам и карьерам.', 'УЧЕНЫЙ\rБудучи озабоченным исследованиями и продвижением новых технологий, другие вещи могут потерять в приоритете, но пони науки считает, что оно будет того стоить. Очков науки будет вырабатываться больше, за счет Магии любви.', 'ИНВЕСТОР\rТерпение есть добродетель, особенно в ожидании хорошей сделки. Эта черта увеличит максимальное число торговцев и объем сделок также возрастает вдвое. Единственный недостаток - рыночные цены будут колебаться меньше, но это не проблема для терпеливого пони!', 'ТОРГОВЕЦ\rЖизнь торговца - хорошая жизнь, особенно, если вы любите общаться и торговать. Эта черта будет привлекать торговцев в ваш город в 4 раза быстрее и даст вам бонус счастья. Тем не менее, эти сделки будут единственным доходом, помимо домов.', 'ПРОКЛЯТЬЕ БОГА ЛЕСА\rЭто ужасно, когда тебя проклял Бог леса. Эта черта будет генерировать ману за счет деревьев; просто сохраняйте леса, чтобы не прогневать бога.', 'СУЕВЕРНЫЙ\rМногие из нас не позволяют сверхъестественному вмешиваться в свою жизнь, но другие спокойно дают этому ход. Вместо генерации маны за счет излишков счастья, вы будете стабильно получать 4 маны в день.', 'ТИРАН\rГолос, что должен быть слышен постоянно, ненормальный контроль, правитель, готовый пожертвовать благополучием граждан во имя правления. Указы вдвойне эффективны и длятся лишь один день, позволяя вам сменять их почти что во время действия, но, в качестве штрафа, максимальное счастье будет вдвое меньше.', 'БЕЗЗАБОТНЫЙ\rВ жизни случаются плохие вещи. Они буквально выводят из себя. От других же вещей хочется сквернословить и ругаться. Когда ты размышляешь о жизненных трудностях. Не ворчи, а лучше свистни. И это поможет всему разрешиться к лучшему... И всегда смотри на жизнь с хорошей стороны!', 'ВЕНЕЦИАНЕЦ\rВ воздухе витает аромат пасты и гондол! Одна из самых уникальных черт, дающая значительный бонус к защите и бонус к счастью во время торговли, но ваш город будет на нескольких островах.', 'ЧИНГИЗ-ПОНЬ\rДля тех воинственных пони, которым нравятся конфликты и не боятся вонючих чейнжлингов, эта черта предоставит еще одного специалиста и позволит нападать на противника в два раза чаще. Единственный минус, если вы это сможете назвать минусом, конечно, на вас тоже будут нападать в два раза чаще. Пффф.... мелочи!', 'ВЕТЕРАН\rИногда тот, у кого есть военный опыт, может быть хорошим лидером. Военное время сделало вас достаточно жестким по отношению к новобранцам, но зато вы пригласили боевого товарища помочь вам.', 'АЛКОГОЛИК\rПей трижды. Смотри дважды. Действуй единожды.', 'ДЕВСТВЕННИК\rЯ ПОНИМАЮ БОЛЬШЕ, ЧЕМ ТЫ МОЖЕШЬ ЗНАТЬ. Я ВОЛШЕБНИК, ЧЬЯ МОЩЬ НЕ ИМЕЕТ СЕБЕ РАВНЫХ, ДАЖЕ СРЕДИ ИНЫХ ТАЛАНТЛИВЫХ МАГОВ. ЭТО НАГРАДА ЗА ИГНОРИРОВАНИЕ ШЛЮХ. НЕТ МЕСТА СМЕРТНОМУ ПОЗОРУ.', 'УПИТАННЫЙ\rКлюч к существованию - полный животик. Ну или как-то так, по мнению любителей покушать. Даже если мир будет в мировой войне, вы не будете переживать об этом до тех пор, пока у вас есть горячий пирог!', 'РАВЕНСТВО\rЗабудь свой уникальный талант и познай истинное счастье.', 'ИССЛЕДОВАТЕЛЬ\rЖить всю жизнь на одном месте характерно для некоторых, но не для вас. Вы любите путешествовать, изучать достопримечательности, исследовать новые миры. К сожалению, ваши непоседливая привычка не дает сосредоточиться на том, что делают другие, и ваша область покрытия будет занижена, так что вы не будете точно знать, когда нападут чейнжлинги.', NaN); } frame 1 { function checkstats() { if (_root.statCharisma == 1) { this.charismadown._alpha = 15; } else { this.charismadown._alpha = 100; } if (_root.statCharisma == _root.StatMax + statCost) { this.charismaup._alpha = 15; } else { this.charismaup._alpha = 100; } if (_root.statInsight == 1) { this.insightdown._alpha = 15; } else { this.insightdown._alpha = 100; } if (_root.statInsight == _root.StatMax + statCost) { this.insightup._alpha = 15; } else { this.insightup._alpha = 100; } if (_root.statKarma == 1) { this.karmadown._alpha = 15; } else { this.karmadown._alpha = 100; } if (_root.statKarma == _root.StatMax + statCost) { this.karmaup._alpha = 15; } else { this.karmaup._alpha = 100; } if (_root.statCuriosity == 1) { this.curiositydown._alpha = 15; } else { this.curiositydown._alpha = 100; } if (_root.statCuriosity == _root.StatMax + statCost) { this.curiosityup._alpha = 15; } else { this.curiosityup._alpha = 100; } if (_root.statWillpower == 1) { this.willpowerdown._alpha = 15; } else { this.willpowerdown._alpha = 100; } if (_root.statWillpower == _root.StatMax + statCost) { this.willpowerup._alpha = 15; } else { this.willpowerup._alpha = 100; } } p = 1; while (p <= 9) { a = this.traits.traits['trait' + p]; a.Selected = false; if (traitEnabled[p]) { a.gotoAndStop(1); a.onPress = function () { this.gotoAndStop(4); this.Selected = true; }; a.onRelease = function () { if (_root.traitsOwned[(this._name.split(''))[5]] == 1) { _root.traitsOwned[(this._name.split(''))[5]] = 0; this.gotoAndStop(2); ++_root.TraitsLeft; } else { if (_root.TraitsLeft > 0) { _root.traitsOwned[(this._name.split(''))[5]] = 1; this.gotoAndStop(5); --_root.TraitsLeft; } else { this.gotoAndStop(2); } } this.Selected = false; }; a.onRollOver = function () { if (_root.traitsOwned[(this._name.split(''))[5]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } this.Selected = true; descript = traitsDescription[(this._name.split(''))[5]]; }; a.onRollOut = function () { if (_root.traitsOwned[(this._name.split(''))[5]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(1); } this.Selected = false; descript = ''; }; a.onReleaseOutside = function () { if (_root.traitsOwned[(this._name.split(''))[5]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(1); } this.Selected = false; descript = ''; }; } else { a.gotoAndStop(6); } ++p; } p = 10; while (p <= 23) { a = this.traits.traits['trait' + p]; a.Selected = false; if (traitEnabled[p]) { a.gotoAndStop(1); a.onPress = function () { this.gotoAndStop(4); this.Selected = true; }; a.onRelease = function () { if (_root.traitsOwned[Number(String((this._name.split(''))[5]) + String((this._name.split(''))[6]))] == 1) { _root.traitsOwned[Number(String((this._name.split(''))[5]) + String((this._name.split(''))[6]))] = 0; this.gotoAndStop(2); ++_root.TraitsLeft; } else { if (_root.TraitsLeft > 0) { _root.traitsOwned[Number(String((this._name.split(''))[5]) + String((this._name.split(''))[6]))] = 1; this.gotoAndStop(5); --_root.TraitsLeft; } else { this.gotoAndStop(2); } } this.Selected = false; }; a.onRollOver = function () { if (_root.traitsOwned[Number(String((this._name.split(''))[5]) + String((this._name.split(''))[6]))] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } this.Selected = true; descript = traitsDescription[Number(String((this._name.split(''))[5]) + String((this._name.split(''))[6]))]; }; a.onRollOut = function () { if (_root.traitsOwned[Number(String((this._name.split(''))[5]) + String((this._name.split(''))[6]))] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(1); } this.Selected = false; descript = ''; }; a.onReleaseOutside = function () { if (_root.traitsOwned[Number(String((this._name.split(''))[5]) + String((this._name.split(''))[6]))] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(1); } this.Selected = false; descript = ''; }; } else { a.gotoAndStop(6); } ++p; } } instance CB1 of movieClip 1258 { onClipEvent (load) { if (_root.difficulty == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance CB2 of movieClip 1258 { onClipEvent (load) { if (_root.difficulty == 2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } movieClip 2279 { frame 1 { var startresource = 'Стартовые ресурсы: нормально'; gotoAndPlay(2); } instance input of movieClip 2275 { onClipEvent (enterFrame) { _root.townName = String(_root.intro.input.townNameInput.text); _root.charName = String(_root.intro.input.charNameInput.text); } } frame 5 { _root.queuemusikSingle(0); _root.MusikLoop = 1; } frame 20 { stop(); } frame 42 { if (traitsOwned[22] == 0) { _root.resources[0][1] += 10 * _root.StatsLeft; } _root.StatsLeft = 0; if (_root.traitsOwned[11] == 1 && _root.traitsOwned[16] == 1) { _root.charName = 'Doge ' + _root.charName; } _root.gotoAndStop('game'); } } movieClip 2285 { } movieClip 2287 { } movieClip 2288 { } movieClip 2290 { } movieClip 2293 { } movieClip 2294 { } movieClip 2296 { } movieClip 2298 { } movieClip 2300 { } movieClip 2302 { } // unknown tag 88 length 67 movieClip 2309 { } button 2313 { on (release) { _root.gotoAndStop('intro'); } } movieClip 2316 { } movieClip 2320 { } movieClip 2321 { } movieClip 2325 { } movieClip 2330 { } // unknown tag 88 length 39 movieClip 2338 { } movieClip 2340 { frame 1 { gotoAndPlay(2); } frame 4 { _root.queuemusikSingle(1); } frame 38 { stop(); } instance of movieClip 1107 { onClipEvent (release) { _root.intro.cinepop.play(); } } frame 51 { stop(); } frame 90 { stop(); } frame 104 { _root.intro.nextFrame(); } frame 124 { stop(); } frame 151 { _root.intro.nextFrame(); } frame 172 { stop(); } frame 191 { _root.gotoAndStop('intro'); } } movieClip 2346 { } movieClip 2347 { } movieClip 2348 { frame 1 { stop(); } } button 2349 { on (press) { _root.deselectAll(); } } frame 10 { function eventAction1(CurrentEvent, choice) { if (CurrentEvent == 0) { if (eventPosition == 0) { if (choice == 1) { _root.resources[1][1] = int(_root.resources[1][1] * 1.1); } else { if (choice == 2) { _root.Love += 5; } else { if (choice == 3) { } else { if (choice == 4) { _root.resources[3][1] += 3; } } } } eventPosition = choice; writeEndEvent(); } else { eventPosition = -1; } } if (CurrentEvent == 1) { if (eventPosition == 0) { if (choice == 1) { _root.resources[0][1] = int(_root.resources[0][1] * 0.9); _root.resources[1][1] = int(_root.resources[1][1] * 0.9); love += 5; loveTotal += 5; } else { if (choice == 2) { _root.Happiness -= 20; } else { if (choice == 3) { _root.resources[1][1] -= 10; _root.resources[0][1] -= 5; } else { if (choice == 4) { } } } } eventPosition = choice; writeEndEvent(); } else { eventPosition = -1; } } if (CurrentEvent == 2) { if (eventPosition == 0) { if (choice == 1) { _root.resources[2][1] += int(_root.resources[0][1] * 0.05); _root.resources[0][1] = int(_root.resources[0][1] * 0.9); } else { if (choice == 2) { _root.resources[2][1] += int(_root.resources[0][1] * 0.08); _root.resources[0][1] = int(_root.resources[0][1] * 0.7); } else { if (choice == 3) { _root.resources[0][1] = int(_root.resources[0][1] * 0.5); } else { if (choice == 4) { } } } } eventPosition = choice; writeEndEvent(); } else { eventPosition = -1; } } if (eventPosition == 0) { _root.hudInfo.gotoAndStop('randomEvent2'); eventPosition = choice; writeRandomEvent(); } else { if (eventPosition == -1) { eventPosition = 0; _root.CurrentEvent = -1; _root.deselectAll(); _root.randomEvent.play(); } } } function writeEndEvent() { _root.REdescript = _root.eventList1[CurrentEvent][eventPosition][0]; _root.REchoice1 = _root.eventList1[CurrentEvent][eventPosition][1]; _root.REchoice2 = ''; _root.REchoice3 = ''; _root.REchoice4 = ''; } function writeRandomEvent() { _root.REdescript = _root.eventList1[CurrentEvent][eventPosition][0]; _root.REchoice1 = _root.eventList1[CurrentEvent][eventPosition][1]; _root.REchoice2 = _root.eventList1[CurrentEvent][eventPosition][2]; if (substring(_root.eventList1[CurrentEvent][eventPosition][3], 0, 7) == '(Карма)') { if (_root.statKarma >= int(_root.eventList1[CurrentEvent][eventPosition][3].substr(-2, 1))) { _root.REchoice3 = _root.eventList1[CurrentEvent][eventPosition][3].slice(0, -3); } else { _root.REchoice3 = ''; } } else { if (substring(_root.eventList1[CurrentEvent][eventPosition][3], 0, 7) == '(Очарование)') { if (_root.statCharisma >= int(_root.eventList1[CurrentEvent][eventPosition][3].substr(-2, 1))) { _root.REchoice3 = _root.eventList1[CurrentEvent][eventPosition][3].slice(0, -3); } else { _root.REchoice3 = ''; } } else { _root.REchoice3 = _root.eventList1[CurrentEvent][eventPosition][3]; } } if (substring(_root.eventList1[CurrentEvent][eventPosition][4], 0, 7) == '(Карма)') { if (_root.statKarma >= int(_root.eventList1[CurrentEvent][eventPosition][4].substr(-2, 1))) { _root.REchoice4 = _root.eventList1[CurrentEvent][eventPosition][4].slice(0, -3); } else { _root.REchoice4 = ''; } } else { if (substring(_root.eventList1[CurrentEvent][eventPosition][4], 0, 7) == '(Очарование)') { if (_root.statCharisma >= int(_root.eventList1[CurrentEvent][eventPosition][4].substr(-2, 1))) { _root.REchoice4 = _root.eventList1[CurrentEvent][eventPosition][4].slice(0, -3); } else { _root.REchoice4 = ''; } } else { _root.REchoice4 = _root.eventList1[CurrentEvent][eventPosition][3]; } } } var CurrentEvent = -1; var CurrentEventList = 1; var eventPosition = 0; var REdescript = ''; var REchoice1 = ''; var REchoice2 = ''; var REchoice3 = ''; var REchoice4 = ''; var eventList1 = new Array([['Караван с запасами, находящийся в собственности Королевского замка остановился в вашем городе, на случай, если вам нужны запасы. Бесплатно, конечно.', 'Немного еды не повредит', 'Поставка Вечеринок для поднятия настроения.', 'Благодарю, но не стоит', '(Карма) Немного камней не повредит...(7)'], ['Караван оставил немного еды. Запасы еды увеличены на 10%.', 'OK'], ['Караван оставил вам немного продукции из магазина приколов./r/nСчастье ' + _root.TownName + ' увеличено на 5.', 'OK'], ['Караван впечатлен вашей независимостью, но ничего вам не оставляет.', 'OK'], ['Один из рабочих подумал, что он может расстаться с парой камней. Он утверждает, что утром произошло что-то хорошее, и вы к этому причастны.', 'OK'], [NaN]], [['Обычная, бедная пони пришла из соседнего города, который разрушили чейнжлинги. Она движется в Королевский замок и просит немного еды и денег для путешествия.', 'Дать ей все, что она попросит.', 'Предложить ей экскурсию.', '(Карма) Дать ей 10 еды и 5 битсов.(7)', ''], ['Обычная пони приняла ваши подарки и уходит, довольная. А потом вы замечаете, что она забрала 10% от запасов денег и еды... чуть больше, чем реально необходимо. Тем не менее, горожане рады вашей щедрости.\r\nМагия любви чуть повысилась.', 'OK'], ['Обычная пони хмурится, но понимает, что вы не хотите ей помогать. Ваши жители замечают ваш эгоизм, счастье временно падает.', 'OK'], ['Обычной пони, почему-то, досадно, но она принимает ваш подарок и уходит, даже не сказав спасибо.', 'OK'][NaN]], [['Одна из жительниц решает провести рискованный эксперимент и ищет финансовой поддержки. В случае успеха она поделится с вами результатами, то есть Очками науки.', 'Дать ей 10% бюджета', 'Дать ей 30% бюджета', 'Дать ей 50% бюджета', 'Ничего не дать'], ['Неохотно пони принимает небольшие инвестиции. В конце дня она сообщает о небольшом успехе, принося чуть-чуть Очков науки.', 'OK'], ['Довольная, пони принимает скромные вложения с большой улыбкой. В конце дня она отчитывается о большом успехе, принося значительный бонус к Очкам науки.', 'OK'], ['Очень радостная, пони принимает инвестиции и убегает, чтобы приступить к работе. В конце дня она сообщает о полном провале и не знает, почему так случилось. Она плохо себя чувствует, понимая, что зря потратила большие вложения.', 'OK'][NaN]], [['QUESTION', 'CHOICE 1', 'CHOICE 2', 'CHOICE 3', ''], ['RESULT 1', 'OK'], ['RESULT 2', 'OK'], ['RESULT 3', 'OK'][NaN]]); } frame 10 { stop(); var SepDistance = 110; var SepStretch = 1; var SepXYRatio = 0.43; var xSep = SepDistance; var ySep = SepDistance * SepXYRatio; var MapSize = 9; var MapThird = 3; if (_root.loadGame == true) { difficulty = cache.data.PlayerData[27]; } if (difficulty == 2) { MapSize = 7; MapThird = 2; } var X9 = MapSize * xSep * SepStretch; var X3 = MapThird * xSep * SepStretch; var Y9 = MapSize * ySep * SepStretch; var Y3 = MapThird * ySep * SepStretch; var newLand = new Array([MapSize, MapSize, 0, 0], [MapThird, MapThird, X9, Y9], [MapThird, MapThird, X9 - X3, Y9 + Y3], [MapThird, MapThird, X9 - X3 - X3, Y9 + Y3 + Y3], [MapThird, MapThird, X9 + X3, Y9 + Y3], [MapThird, MapThird, X9, Y9 + Y3 + Y3], [MapThird, MapThird, X9 - X3, Y9 + Y9], [MapThird, MapThird, X9 + X3 + X3, Y9 + Y3 + Y3], [MapThird, MapThird, X9 + X3, Y9 + Y9], [MapThird, MapThird, X9, Y9 + Y9 + Y3], [MapThird, MapThird, -X9, Y9], [MapThird, MapThird, -X9 - X3, Y9 + Y3], [MapThird, MapThird, -X9 + X3, Y9 + Y3], [MapThird, MapThird, -X9, Y9 + Y3 + Y3], [MapThird, MapThird, -X9 - X3 - X3, Y9 + Y3 + Y3], [MapThird, MapThird, -X9 + X3 + X3, Y9 + Y3 + Y3], [MapThird, MapThird, -X9 - X3, Y9 + Y9], [MapThird, MapThird, -X9 + X3, Y9 + Y9], [MapThird, MapThird, -X9, Y9 + Y9 + Y3], [MapThird, MapThird, 0, Y9 * 2], [MapThird, MapThird, -X3, Y9 * 2 + Y3], [MapThird, MapThird, +X3, Y9 * 2 + Y3], [MapThird, MapThird, 0, Y9 * 2 + Y3 + Y3], [MapThird, MapThird, -X3 - X3, Y9 * 2 + Y3 + Y3], [MapThird, MapThird, +X3 + X3, Y9 * 2 + Y3 + Y3], [MapThird, MapThird, -X3, Y9 * 3], [MapThird, MapThird, +X3, Y9 * 3], [MapThird, MapThird, 0, Y9 * 3 + Y3], [NaN]); var buildList = new Array(['Городская площадь', 45, 0, 0, 0, 24, 110, 0, 0], ['Магазин', 15, 0, 0, 0, 16, 135, 0, 1], ['Библиотека', 75, 0, 0, 0, 32, 50, 0, 2], ['Дом', 10, 0, 0, 0, 8, 50, 0, 3], ['Сад', 20, 0, 0, 0, 8, 75, 0, 4], ['Карьер', 225, 0, 0, 0, 24, 230, 0, 5], ['Таверна', 250, 0, 0, 50, 64, 230, 0, 6], ['Лаборатория', 350, 0, 0, 50, 64, 50, 1, 0], ['Цветочная ферма', 280, 0, 0, 0, 16, 50, 1, 1], ['Дом на дереве', 40, 0, 0, 10, 32, 50, 1, 2], ['Энергостанция', 200, 0, 0, 100, 32, 110, 1, 3], ['Секс-фабрика', 1200, 0, 0, 50, 64, 180, 1, 4], ['Офис мэра', 150, 0, 0, 0, 16, 0, 1, 5], ['Оружейная', 250, 0, 0, 0, 32, 75, 1, 6], ['Генератор щита', 3000, 0, 0, 250, 128, 230, 1, 7], ['Академия', 1600, 0, 325, 0, 128, 110, 1, 7], [NaN]); var naturalList = new Array([['Дерево', 'Улучшает экологию. Уничтожается, если здесь что-то построить.'], ['Дерево', 'Улучшает экологию. Уничтожается, если здесь что-то построить.'], ['Дерево', 'Улучшает экологию. Уничтожается, если здесь что-то построить.'], ['Дерево', 'Улучшает экологию. Уничтожается, если здесь что-то построить.'], ['Дерево', 'Улучшает экологию. Уничтожается, если здесь что-то построить.'], ['Дерево', 'Улучшает экологию. Уничтожается, если здесь что-то построить.'], ['Дерево', 'Улучшает экологию. Уничтожается, если здесь что-то построить.'], ['Дерево', 'Улучшает экологию. Уничтожается, если здесь что-то построить.'], ['Дерево', 'Улучшает экологию. Уничтожается, если здесь что-то построить.'], ['Дерево', 'Улучшает экологию. Уничтожается, если здесь что-то построить.'], ['Дерево', 'Улучшает экологию. Уничтожается, если здесь что-то построить.'], ['Дерево', 'Улучшает экологию. Уничтожается, если здесь что-то построить.'], ['Дерево', 'Улучшает экологию. Уничтожается, если здесь что-то построить.'], ['Дерево', 'Улучшает экологию. Уничтожается, если здесь что-то построить.']], [['n2--', '?????'], ['n2++', '?????']]); var modeList = new Array(new Array(['Рост', 'Стимулирует рост населения, пони въезжают в дома быстрее. Глобальный эффект: прирост Магии любви +10%.'], ['Экономика', 'Пропогандирует стахановское движение, увеличивает доход, но счастье снижается. Глобальный эффект: торговцы посещают рынок чаще.'], ['Расслабленный', 'Создает расслабленную обстановку для жителей. Глобальный эффект: +4 счастья в день.'], [NaN]), new Array(['Пекарня', 'Выпекают теплые пироги и торты для всех пони, что в радиусе магазина. Создает 48 пищи в день, повышает счастье пони.', 'Магазин', 15, 0, 0, 0, true, true], ['Гастроном', 'Делает бутерброды, более сытно, менее счастливо. Создает 64 пищи в день.', 'Магазин', 15, 0, 0, 0, true, true], ['Вечеринка', 'Устраивает захватывающие вечеринки для жителей ближайших домов, значительно поднимая счастье.', 'Магазин', 15, 0, 0, 0, true, true], ['Обычный', 'Улучшенный универмаг. Не может переключаться между режимами, но зато создает 96 пищи в день, поднимает счастье и склады продуктов.', 'Универмаг', 120, 0, 0, 5, false], [NaN]), new Array(['Заказ книг', 'Обеспечивает дружелюбный сервис ради скромной прибыли. Приносит битсы в зависимости от населения. Несколько библиотек в этом режиме имеют меньший эффект.'], ['Исследования', 'Направляет библиотеку в сторону получения Очков науки. Несколько библиотек в этом режиме имеют меньший эффект.'], ['Симпозиум', 'Пони собираются в библиотеке, чтобы сотрудничать. Повышает прирост населения и счастье. Несколько библиотек в этом режиме имеют меньший эффект.'], [NaN]), new Array(['Обычный', 'Обычный дом. Вмещает до 8 земных пони. Каждая пара пони потребляет 4 еды, это значит, что для поддержания этого дома нужно 16 еды в день.', 'Дом', 10, 0, 0, 0, false, true], [NaN], [NaN], ['Обычный', 'Интересный дом. Вмещает до 12 земных пони. Каждая пара пони потребляет 4 еды, это значит, что для поддержания этого дома нужно 24 еды в день.', 'Поместье', 80, 0, 0, 0, false, true], ['Обычный', 'Роскошный дом. Вмещает до 16 земных пони. Каждая пара пони потребляет 4 еды, это значит, что для поддержания этого дома нужно 32 еды в день.', 'Вилла', 160, 0, 0, 20, false, false], [NaN]), new Array(['Обычный', 'Прекрасный сад, что увеличивает генерацию маги любви в два раза в ближайших домах. Немного улучшает экологию.'], [NaN], [NaN], [NaN]), new Array(['Добыча камней', 'Карьер работает только при населении больше 50. Несмотря на изобилие драгоценных камней, только самые ценные могут считаться валютой.'], ['Добыча золота', 'Карьер работает только при населении больше 50. Добывает золотую руду, которая приносит неплохой доход в битсах. Приносит 32 битса в день.'], ['Остановка', 'Прерывает процесс добычи. Также временно пропадают негативные эффекты на ближайшие дома.'], [NaN]), new Array(['Подача напитков', 'Продажа напитков по разумной цене. Повышает счастье в ближайших домах и приносит доход в битсах.'], ['Час веселья', 'Бесплатные напитки и идеальная обстановка, чтобы оторваться по-полной. Повышает счастье и Магию любви в каждом доме, входящему в радиус.'], ['Бордель', 'Обеспечивает бесплатные сексуальные развлечения гостям. Значительный прирост Магии любви в ближайших домах.'], [NaN]), new Array(['Исследования', 'Направляет лабораторию на получение очков науки.'], ['Экотехнологии', 'Медленно восстанавливает состояние окружающей среды на 1% в день. Не более 200%.'], ['Незаконные технологии', 'Подпольные исследования, приносящие Очки науки очень быстро, но с определенными рисками.'], [NaN]), new Array(['Обычный', 'Не готово для сбора урожая.'], ['Обычный', 'Не готово для сбора урожая.'], ['Цветущий', 'Если рядом будет магазин, то урожай будет скоро собран автоматически.'], [NaN]), new Array(['Обычный', 'Экологический дом. Вмещает до 4 земных пони. Улучшает экологию.'], [NaN], [NaN], [NaN]), new Array(['Обычный', 'Деревоприводная электростанция. Увеличивает очки экологии для каждого дерева рядом и позволяет функционировать лабораториям.'], [NaN], [NaN], [NaN]), new Array(['Секс-игрушки', 'Производит резиновые члены ради удовольствия пони. Увеличивает доход в битсах от ВСЕХ домов на 25%. Эффект накладывается.'], ['Латексные принадлежности', 'Производит атрибутику для бондажа ради удовольствия пони. Увеличивает поток Магии любви от ВСЕХ домов на 25%. Эффект накладывается.'], ['Нарезка камней', 'Автоматически конвертирует 60 битс в 4 камня. Рядом нужен магазин.'], [NaN]), new Array(['Обычный', 'Позволяет закупать дополнительную землю. А еще город становится красивее!'], [NaN], [NaN], [NaN]), new Array(['Обычный', 'Позволяет нанимать специалистов в оборону города. Дома около оружейной будут повышать рейтинг защиты.'], [NaN], [NaN], [NaN]), new Array(['Обычный', 'После активации город будет полностью защищен, а также станет возможным Возвышение.'], [NaN], [NaN], [NaN]), new Array(['Тренировка', 'Ежедневно требует 4 очка науки. Специалисты получают опыт каждый день. Ближайшие дома приносят дополнительный доход.'], ['Исследования', 'Увеличивает генерацию очков науки на 25% от всех зданий. Ближайшие дома генерируют счастье и битсы.'], ['Техника маны', 'Ежедневно требует 4 очка науки. Приносит 5 очков маны каждый день. Ближайшие дома генерируют счастье и битсы.'], [NaN])); var Specialist = new Array(['', 0, 0, 0, 0, 0, NaN, NaN], ['', 0, 0, 0, 0, 0, NaN, NaN], ['', 0, 0, 0, 0, 0, NaN, NaN], ['', 0, 0, 0, 0, 0, NaN, NaN], ['', 0, 0, 0, 0, 0, NaN, NaN], [NaN]); var upgradeStoreRank = 0; var upgradeStore = new Array([15, 'Более продуктивные магазины', 'Магазины производят +4 еды в день.'], [30, 'Самодостаточные жители', 'Каждый дом производит 4 еды в день.'], [65, 'Сервис доставки', 'Увеличивает радиус магазинов.'], [135, 'Холодильники', 'Магазинные склады еды увеличиваются на 150%'], [155, 'Пати-техника', 'Счастье от вечериночных магазинов выше на 20%.'], [400, 'Афродизиаки', 'В ближайших к магазину домах генерируется больше Магии любви.'], [600, 'Особые печеньки', '8% еды конвертируется в Магию любви каждый день. Необходимо население 400+.'], [NaN]); var upgradeStoreCost = 15; var upgradeLibraryRank = 0; var upgradeLibrary = new Array([25, 'Организованные проходы', 'Библиотеки производят на 10% больше счасться, науки и битсов.'], [75, 'Совместные исследования', 'Увеличение радиуса библотек. Подверженные дома генерируют больше науки.'], [200, 'Тайные знания', 'Дает 0.1 маны каждый день за библиотеку.'], [325, 'Индустриальная наука', 'Уменьшает стоимость нарезки камней в ближайших фабриках на 5.'], [400, 'Бесплатный Wi-Fi', 'Радиус библиотек увеличивается.'], [NaN]); var upgradeLibraryCost = 25; var upgradeTechLabRank = 0; var upgradeTechLab = new Array([150, 'Химические тесты', '+10% Очков науки от всех зданий.'], [275, 'Монетизация', 'Лаборатории также генерируют 40 битсов в день. (60 в режиме 3)'], [400, 'Аппарат брони', 'Специалисты на 50% эффективнее в подготовке.'], [525, 'Излучатели экстаза', 'Дома в радиусе лабораторий генерируют больше Магии любви.'], [650, 'Технологии защиты', 'Ускоряет генерацию щита на 100%.'], [NaN]); var upgradeTechLabCost = 150; var upgradeMoreTilesRank = 0; var upgradeMoreTiles = new Array([500, 'Дополнительная земля 1', 'Увеличивает количество участков на 9.'], [1000, 'Дополнительная земля 2', 'Увеличивает количество участков на 9.'], [1500, 'Дополнительная земля 3', 'Увеличивает количество участков на 9.'], [2000, 'Дополнительная земля 4', 'Увеличивает количество участков на 9.'], [2500, 'Дополнительная земля 5', 'Увеличивает количество участков на 9.'], [3000, 'Дополнительная земля 6', 'Увеличивает количество участков на 9.'], [3500, 'Дополнительная земля 7', 'Увеличивает количество участков на 9.'], [4000, 'Дополнительная земля 8', 'Увеличивает количество участков на 9.'], [4500, 'Дополнительная земля 9', 'Увеличивает количество участков на 9.'], [5000, 'Дополнительная земля 10', 'Увеличивает количество участков на 9.'], [5500, 'Дополнительная земля 11', 'Увеличивает количество участков на 9.'], [6000, 'Дополнительная земля 12', 'Увеличивает количество участков на 9.'], [6500, 'Дополнительная земля 13', 'Увеличивает количество участков на 9.'], [7000, 'Дополнительная земля 14', 'Увеличивает количество участков на 9.'], [7500, 'Дополнительная земля 15', 'Увеличивает количество участков на 9.'], [8000, 'Дополнительная земля 16', 'Увеличивает количество участков на 9.'], [8500, 'Дополнительная земля 17', 'Увеличивает количество участков на 9.'], [9000, 'Дополнительная земля 18', 'Увеличивает количество участков на 9.'], [9500, 'Дополнительная земля 19', 'Увеличивает количество участков на 9.'], [10000, 'Дополнительная земля 20', 'Увеличивает количество участков на 9.'], [11000, 'Дополнительная земля 21', 'Увеличивает количество участков на 9.'], [12000, 'Дополнительная земля 22', 'Увеличивает количество участков на 9.'], [13000, 'Дополнительная земля 23', 'Увеличивает количество участков на 9.'], [14000, 'Дополнительная земля 24', 'Увеличивает количество участков на 9.'], [15000, 'Дополнительная земля 25', 'Увеличивает количество участков на 9.'], [16000, 'Дополнительная земля 26', 'Увеличивает количество участков на 9.'], [17000, 'Дополнительная земля 27', 'Увеличивает количество участков на 9.'], [NaN]); var upgradeMoreTilesCost = 500; var specialistsTotal = 0; var upgradeHireSpecialistRank = _root.specialistsTotal; var upgradeHireSpecialist = new Array([100, 'Нанять 1-го специалиста', 'Нанять нового специалиста в вашу защиту.'], [500, 'Нанять 2-го специалиста', 'Нанять нового специалиста в вашу защиту.'], [1000, 'Нанять 3-го специалиста', 'Нанять нового специалиста в вашу защиту.'], [1500, 'Нанять 4-го специалиста', 'Нанять нового специалиста в вашу защиту.'], [2000, 'Нанять 5-го специалиста', 'Нанять нового специалиста в вашу защиту.'], [NaN]); var upgradeHireSpecialistCost = 250; var tradingPrices = new Array(['Рынок еды', 50, 40, 60, 3, 3, 3, 50, 40, 60, 3, 3, 3, true], ['Рынок камней', 5, 5, 5, 60, 40, 65, 5, 5, 5, 45, 30, 55, true]); var bankNameFirst = new Array('Яблочная', 'Звездная', 'Летняя', 'Ленточная', 'Сахарная', 'Ветреная', 'Облачная', 'Снежная', 'Ягодная', 'Дождливая', 'Алая', 'Шелковая', 'Ванильная', 'Изумрудная', 'Костная', 'Мисти', 'Эссенция', 'Осенняя', 'Бульк', 'Лайки', 'Глубокая', 'Прыгучая', 'Мокрая', 'Тендер', 'Розовая', 'Серебрянная', 'Небрежная', 'Закатная', 'Сниффи', 'Динки', 'Пахучка', 'Гипер', 'Быстрая', ' '); var bankNameSecond = new Array('Шлюшка', 'Сахарок', 'Газировка', 'Минутка', 'Мерцалка', 'Обнимашка', 'Вихрек', 'Букетик', 'Пивасик', 'Грейс', 'Цветочек', 'Пузырька', 'Маслинка', 'Хувс', 'Подкова', 'Скорость', 'Толстушка', 'Хлюпалка', 'Прыгунья', 'Шлепка', 'Рулетик', 'Бобик', 'Круп', 'Луна', 'Камушек', 'Любовь', 'Искорка', 'Дэш', 'Пироженка', 'Шепоток', 'Провалка', 'Тортинка', 'Хлоп', 'Мячик', 'Тык', 'Вертушка'); var charColor = new Array(['A76BC2', 'D19FE2', 'C390D4'], ['EAD463', 'FDF6AF', 'FEE78F'], ['F26F31', 'FFC261', 'EFB05D'], ['BEC2C3', 'EBEFF1', 'DEE3E4'], ['EB81B4', 'F3B6CF', 'EC9DC4'], ['77B0E0', '9EDBF9', '88C4EB']); } frame 10 { function rollPerks() { perkList = []; perkList.length = 0; perksLeft = 1; i = 1; while (i <= perkCount) { if (perksOwned[i] == 0) { perkList.push(i); } ++i; } p = 0; while (p < 4) { x = randRange(0, perkList.length - 1); perkChoice[p] = perkList[x]; perkList.splice(x, 1); ++p; } } function HireSpecialist() { ++specialistsTotal; specialistsStats[specialistsTotal - 1][1] = 1; specialistsStats[specialistsTotal - 1][2] = ''; specialistsStats[specialistsTotal - 1][3] = 0; specialistsStats[specialistsTotal - 1][4] = 0; specialistsStats[specialistsTotal - 1][0] = bankNameFirst[_root.randRange(0, bankNameFirst.length - 1)] + ' ' + bankNameSecond[_root.randRange(0, bankNameSecond.length - 1)]; newMSG('Новый специалист <font color=\'#ffcc00\'>' + specialistsStats[specialistsTotal - 1][0] + '</font> прибыл в ваш отряд защиты.'); CheckSpecialists(); } function LoseSpecialist() { specialistsStats[specialistsTotal - 1][1] = 1; specialistsStats[specialistsTotal - 1][2] = ''; specialistsStats[specialistsTotal - 1][3] = 0; specialistsStats[specialistsTotal - 1][4] = 0; newMSG('<font color=\'#ff0000\'>' + specialistsStats[specialistsTotal - 1][0] + '</font> потерян.'); --specialistsTotal; CheckSpecialists(); } function CheckSpecialists() { DefenseRatingMod = 0; ScoutDecayRate = 3 + 1.5 * (1 + clockTime / 100); if (perksOwned[15] == 1) { if (EvilData[0] < 50) { EvilData[0] = 50; } } else { if (EvilData[0] < 0) { EvilData[0] = 0; } } if (EvilData[0] > 100) { EvilData[0] = 100; } if (traitsOwned[23] == 1) { if (EvilData[0] > 50) { EvilData[0] = 50; } } wumbo = 0; while (wumbo < specialistsTotal) { j = 0; while (j < 5) { if (specialistsStats[wumbo][2] == '') { DefenseRatingMod += 40 + statWillpower * 1.5 + 6 * (specialistsStats[wumbo][1] * specialistsStats[wumbo][1] * 0.1); break; } specialistsStats[wumbo][4] = int(8 + 8 * (specialistsStats[wumbo][1] * specialistsStats[wumbo][1] * expGrowth)); ++j; } ++wumbo; } DefenseRatingMod += 50 * strCount[13][0]; if (perksOwned[1] == 1) { DefenseRatingMod += 25 * strCount[13][0]; } if (perksOwned[13] == 1) { DefenseRatingMod += 6 * TreeCount * 5; } else { DefenseRatingMod += 6 * TreeCount * 1; } if (_root.edictIndustrialActive == 3) { DefenseRatingMod += DefenseRating; } if (perksOwned[1] == 1) { Threat = (Math.pow(EvilData[1] / (DefenseRating + DefenseRatingMod) * 1.1, 0.5) - 1) * 50; } else { Threat = (Math.pow(EvilData[1] / (DefenseRating + DefenseRatingMod), 0.5) - 1) * 50; } if (Threat > MaxThreat) { Threat = MaxThreat; } ScoutDisplay = int(EvilData[0]) + '%'; if (EvilData[0] >= 85) { ThreatRatingDisplay = int(Threat) + '%'; NextAttackDisplay = int(EvilData[2] / 4) + ' Дней'; } else { if (EvilData[0] > 35) { if (Threat >= 90) { ThreatRatingDisplay = 'Экстремально'; } else { if (Threat > 80) { ThreatRatingDisplay = 'Очень высоко'; } else { if (Threat > 65) { ThreatRatingDisplay = 'Высоко'; } else { if (Threat > 40) { ThreatRatingDisplay = 'Средне'; } else { if (Threat > 15) { ThreatRatingDisplay = 'Низко'; } else { ThreatRatingDisplay = 'Безопасно'; } } } } } } else { NextAttackDisplay = 'Не скоро'; if (EvilData[2] > 30) { } else { NextAttackDisplay = 'Скоро'; if (EvilData[2] > 10) { NextAttackDisplay = 'Очень скоро'; } else { ThreatRatingDisplay = 'Неизвестно'; NextAttackDisplay = 'Неизвестно'; } } } } upgradeHireSpecialistRank = specialistsTotal; refreshResources(); } function TickSpecialists() { EvilData[0] -= ScoutDecayRate; CheckSpecialists(); wumbo = 0; while (wumbo < specialistsTotal) { j = 0; while (j < 5) { if (specialistsStats[wumbo][2] == 'snap' + j + 'a') { } else { DefenseRating += 1.5 * (_root.randRange(0.65, 1) * (1 + statWillpower * 2.5 / 100) * (1 + specialistsStats[wumbo][1] * 0.2)); if (upgradeTechLabRank >= 3) { DefenseRating += 1 * (_root.randRange(0.65, 1) * (1 + statWillpower * 2.5 / 100) * (1 + specialistsStats[wumbo][1] * 0.2)); } else { if (specialistsStats[wumbo][2] == 'snap' + j + 'b') { trainAmount = _root.randRange(0.5, 1.5) * (1 + skill_Discipline * 1.5 / 100) * (1 + statWillpower * 1.5 / 100); specialistsStats[wumbo][3] += trainAmount; if (specialistsStats[wumbo][3] > specialistsStats[wumbo][4]) { specialistsStats[wumbo][3] = 0; ++specialistsStats[wumbo][1]; newMSG('<font color=\'#ffcc00\'>Специалист ' + specialistsStats[wumbo][0] + '</font> получил <font color=\'#ffcc00\'>Уровень ' + specialistsStats[wumbo][1] + '</font>'); _root.hudInfo.specialistTable['specialist' + wumbo].nameRank = _root.specialistsStats[wumbo][0] + '\n' + 'Уровень ' + _root.specialistsStats[wumbo][1]; } } else { if (specialistsStats[wumbo][2] == 'snap' + j + 'c') { raidChance = 40 + int(skill_Discipline * 0.5); roll = randRange(0, 100); } else { if (traitsOwned[17] == 1) { raidCounter += 2; } else { raidCounter += 1; } if (roll < raidChance) { raidCounter = 0; bonusGET = randRange(5 + popMax / 40, 10 + popMax / 5); if (perksOwned[10] == 10) { roll = randRange(0, 110 + statWillpower); } else { roll = randRange(0, 100 + statWillpower); } if (raidCounter >= 6) { bonusGET = (1 + popMax / 100) * bonusGET * (1 + specialistsStats[wumbo][1] * 0.2) * (1 + skill_Discipline * 0.02); if (traitsOwned[2] == 1) { bonusGET *= 0.5; } newMSG('<font color=\'#93FF4D\'>Специалист ' + specialistsStats[wumbo][0] + ' успешно вернулся с рейда.</font>'); roll = randRange(1, 10); if (roll > 50) { bonusGET = int(1 * bonusGET); newMSG('<font color=\'#ffcc00\'>' + bonusGET + ' битс</font> украдено с форпоста Чейнжлингов.'); resources[0][1] += bonusGET; } else { if (roll == 1) { bonusGET = int(10 * bonusGET); newMSG('<font color=\'#ffcc00\'>' + bonusGET + ' Еды</font> украдено с ферм Чейнжлингов.'); resources[1][1] += bonusGET; } else { if (roll == 2) { bonusGET = int(0.25 * bonusGET); newMSG('<font color=\'#ffcc00\'>' + bonusGET + ' Очков науки</font> получено с лабораторий Чейнжлингов.'); resources[2][1] += bonusGET; } else { if (roll == 3) { bonusGET = int(0.1 * bonusGET); newMSG('<font color=\'#ffcc00\'>' + bonusGET + ' Камней </font> украдено с шахт Чейнжлингов.'); resources[3][1] += bonusGET; } else { if (roll == 4) { newMSG('Вражеский пост Чейнжлингов был разрушен, их силы временно ослаблены.'); EvilData[1] = int(EvilData[1] * 0.9); } else { if (roll == 5) { newMSG('Вражеский караван Чейнжлингов был остановлен, атака отсрочена на 2 дня. К сожалению, битсов нет.'); EvilData[2] += 8; } else { if (roll == 6) { newMSG('Захвачен заложник, территория покрытия 100%.'); EvilData[0] = 100; } else { if (roll == 7) { newMSG('Не удалось найти Чейнжлингов, зато удалось найти сексуальных пони-цыган в лесу. Магия любви увеличена на ' + loveToRank / 20 + '.'); loveGain(loveToRank / 20); } else { bonusGET = int(0.5 * bonusGET); newMSG('<font color=\'#ffcc00\'>' + bonusGET + ' битс</font> было украдено с каравана Чейнжлингов.'); resources[0][1] += bonusGET; if (roll == 8) { roll = randRange(1, 2); } else { newMSG('<font color=\'#ffcc00\'>Специалист ' + specialistsStats[wumbo][0] + '</font> вернулся из рейда с пустыми копытами.'); happiness -= 5; if (roll == 1) { } else { newMSG('<font color=\'#ff0000\'>Специалист ' + specialistsStats[wumbo][0] + ' вернулся из опасного рейда!</font>'); roll = randRange(1, 7); if (roll == 2) { newMSG('<font color=\'#ff0000\'>Он с трудом сумел сбежать из крепости Чейнжлингов, но из-за травм его уровень уменьшен на 1.</font>'); if (specialistsStats[wumbo][1] > 1) { specialistsStats[wumbo][1] -= 1; } happiness -= 15; if (roll == 1) { } else { bonusGET = int(0.33 * bonusGET); if (bonusGET > resources[0][1]) { bonusGET = resources[0][1]; } newMSG('<font color=\'#ff0000\'>Его поймали пони-бандиты и пришлось заплатить ' + bonusGET + ' битс в качестве выкупа.</font>'); happiness -= 15; resources[0][1] -= bonusGET; if (roll == 2) { } else { bonusGET = int(0.5 * bonusGET); if (bonusGET > resources[0][1]) { bonusGET = resources[0][1]; } newMSG('<font color=\'#ff0000\'>Он случайно атаковал дружелюбный город пони. ' + bonusGET + ' битс было выплачено в качестве компенсации.</font>'); happiness -= 15; resources[0][1] -= bonusGET; if (roll == 3) { } else { bonusGET = int(5 * bonusGET); if (bonusGET > resources[1][1]) { bonusGET = resources[1][1]; } newMSG('<font color=\'#ff0000\'>Он устроил засаду и съел ' + bonusGET + ' еды пока ждал.</font>'); happiness -= 15; resources[1][1] -= bonusGET; if (roll == 4) { } else { bonusGET = int(0.5 * bonusGET); if (bonusGET > resources[0][1]) { bonusGET = resources[0][1]; } newMSG('<font color=\'#ff0000\'>Он попал в плен к Чейнжлингам, и они забрали его в рабство!</font>'); happiness -= 30; if (roll == 5) { } else { newMSG('<font color=\'#ff0000\'>Он разозлил Империю чейнжлингов, спровоцировав их усилить армию!</font>'); EvilData[1] = int(EvilData[1] * 1.1); if (roll == 6) { if (roll == 7) { newMSG('<font color=\'#ff0000\'>Он разозлил Империю чейнжлингов, спровоцировав их атаковать быстрее!</font>'); EvilData[2] -= 5; } } else { if (specialistsStats[wumbo][2] == 'snap' + j + 'd') { EvilData[0] += _root.randRange(4 + int(statCuriosity * 1.25), 5 + int(specialistsStats[wumbo][1] * 1.5) + int(statCuriosity * 1.5)); if (traitsOwned[23] == 1) { bonusGET2 = 2000 + upgradeMoreTilesCost * 2; bonusGET = _root.randRange(0, bonusGET2 + int(statCuriosity * 1.5) + int(specialistsStats[wumbo][1] * 1.5)); if (bonusGET > bonusGET2) { ++_root.landOwned; if (_root.newLand[_root.landOwned][0] != NaN) { _root.generateMap(_root.newLand[_root.landOwned][0], _root.newLand[_root.landOwned][1], _root.newLand[_root.landOwned][2], _root.newLand[_root.landOwned][3]); } upgradeMoreTilesRank += 1; newMSG('<font color=\'#ffcc00\'>Специалист ' + specialistsStats[wumbo][0] + '</font> обнаружил новый участок для застройки!'); } } } } } } } } } } } } } } } } } } } } } } } } } } ++j; } ++wumbo; } EvilData[1] += clockTime / 150; EvilData[1] += randRange(2 + ascensionLevel * 2, 3 + ascensionLevel * 4); if (clockTime > 400) { EvilData[1] *= 1.004; } evilCometh = -1; EvilData[2] += evilCometh; if (EvilData[2] <= -99) { EvilAttacks(); } else { if (EvilData[2] <= 0) { EvilArrives(); EvilData[2] = -999; } } RefreshSpecalistSelected(); CheckSpecialists(); } function EvilAttacks() { if (ShieldLevel < 100) { CheckSpecialists(); EvilForce = EvilData[1]; EvilForceDisplay = int(EvilForce / 10); if (_root.gamePaused != true) { _root.pauseGame(); } _root.unlockpop.gotoAndStop('invasion3'); _root.unlockpop.DescriptHeader = 'НАПАДЕНИЕ'; roll = randRange(0, 100); if (roll < Threat) { fate = 1; goobs = 0; while (goobs < 5) { roll = randRange(0, 100); if (roll < Threat - statKarma * 0.1) { ++fate; } else { break; } ++goobs; } if (fate == 1) { rolls[0] = randRange(10 - int(statKarma * 0.25), 50 - int(statKarma * 0.25) + int(resources[0][1] * 0.33)); rolls[1] = randRange(10 - int(statKarma * 0.25), 50 - int(statKarma * 0.25) + int(resources[1][1] * 0.6)); rolls[2] = randRange(2, 2 + int(resources[3][1] * 0.2)); if (rolls[0] > resources[0][1]) { rolls[0] = resources[0][1]; } if (rolls[1] > resources[1][1]) { rolls[1] = resources[1][1]; } if (rolls[2] > resources[3][1]) { rolls[2] = resources[3][1]; } resources[0][1] -= rolls[0]; resources[1][1] -= rolls[1]; resources[3][1] -= rolls[2]; happiness -= 20 - statWillpower * 2 + int(happiness * 0.35); if (happiness < minHappiness) { } _root.unlockpop.Descript = 'Ой ой. Армия чейнжлингов пробила вашу оборону, но, к счастью, атака была не очень сильной. Им удалось украсть немного ресурсов.'; _root.unlockpop.DescriptGet = 'Вы потеряли ' + rolls[0] + ' битс, ' + rolls[1] + ' еды и ' + rolls[2] + ' камней. Счастье немного уменьшено.'; } if (fate == 2) { resources[0][1] = int(resources[0][1] * 0.1); resources[1][1] = int(resources[1][1] * 0.25); resources[3][1] = int(resources[3][1] * 0.15); LoseSpecialist(); happiness = minHappiness; _root._root.unlockpop.Descript = 'Ах! Армия чейнжлингов пробила вашу оборону, разрушив город!'; _root.unlockpop.DescriptGet = 'Захвачены почти все ресурсы. Один специалист попал в плен. Вся радость ушла из города ' + townName + '.'; } } else { if (fate > 2) { --extraLives; _root._root.unlockpop.Descript = 'Из-за слабой защиты чейнжлинги почти захватили ваш город.'; _root.unlockpop.DescriptGet = 'К счастью, ваша паранойя помогла избежать полного поражения.'; if (perksOwned[15] == 1 && extraLives > 0) { defeated = true; cache.data.PlayerData[17] = true; _root.gotoAndStop('rubble'); _root._root.unlockpop.Descript = 'Из-за слабой защиты чейнжлинги захватили вас в плен, а ваш город был разрушен.'; _root.unlockpop.DescriptGet = 'Вы побеждены. Вы должны начать строить город заново с нуля. Но все разблокированное ранее останется.'; } else { fate = 0; _root.unlockpop.Descript = 'Благодаря вашей развитой обороне, вы безо всякого ущерба для города и горожан отбили атаку чейнжлингов.'; _root.unlockpop.DescriptGet = 'Никакого ущерба. Счастье значительно увеличилось.'; happiness = maxHappiness; if (statKarma >= 10) { if (perksOwned[16] == 1) { loveGain(popTotal / 80 + EvilData[1] / 40); } else { loveGain(popTotal / 160 + EvilData[1] / 80); } } } } } EvilData[1] += _root.randRange(10, 20); prepareNextAttack(); writeData(); } else { EvilData[2] = 9999; } } function EvilArrives() { if (ShieldLevel < 100) { if (_root.gamePaused != true) { _root.pauseGame(); } _root.unlockpop.gotoAndStop('invasion'); _root.unlockpop.DescriptHeader = 'ДИПЛОМАТИЯ'; CheckSpecialists(); EvilForce = EvilData[1]; EvilForceDisplay = int(EvilForce / 10); Phrase = 'Армия чейнжлингов виднеется на горизонте и готовится напасть на ваш город. Вы можете попытаться использовать дипломатию, договорившись с их послом, либо применить силу до их нападения. '; if (Threat > 80) { Phrase += 'Их число огромно, даже бесконечно, вы чувствуете, что против них поможет лишь чудо. Их полчища чернеют на окраине города и смотрят голодным взглядом на все, что пахнет любовью.'; } else { if (Threat > 60) { Phrase += 'Их число велико, и вы начинаете беспокоиться. Куда бы вы не посмотрели, везде виднеются чейнжлинги, готовые напасть на вас и положить конец мирному существованию.'; } else { if (Threat > 40) { Phrase += 'У них среднего размера армия, с которой, безусловно, нужно считаться. Решение нужно принять с осторожностью.'; } else { if (Threat > -25) { Phrase += 'У них средняя армия.'; } else { Phrase += 'У них крошечный отряд, который едва ли тянет на армию.'; } } } } } _root.unlockpop.Descript = Phrase; writeData(); } function Diplomacy(style, type) { _root.unlockpop.gotoAndStop('invasion2'); _root.unlockpop.DescriptHeader = 'ДИПЛОМАТИЯ'; CheckSpecialists(); EvilForce = EvilData[1]; EvilForceDisplay = int(EvilForce / 10); roll = randRange(0, 100); if (Threat > 80) { roll -= 45; } else { if (Threat > 50) { roll -= 30; } else { if (Threat > 30) { roll -= 15; } } } if (style == 'negotiate') { if (type == 0) { Phrase = 'Посол чейнжлингов прибыл на окраину вашего города. Вы приветствуете его и пытаетесь договориться. '; roll += statCharisma; } else { Phrase += 'Вы говорите: "Война случается тогда, когда слова не помогают. Есть вещи, ради которых стоит умереть, но нет вещей, ради которых стоит убивать. Вернуться домой, я увижу лишь результат этой битвы, и ничего более." Посол чейнжлингов впечатлен. Он говорит, что атака будет отменена, и они проведут некоторое время пересматривая тактику борьбы с таким мудрым лидером, как вы.'; prepareNextAttack(); EvilData[2] += 20; if (roll > 100) { } else { Phrase += 'Вы говорите: "Давай будем благоразумными! Мы оба прекрасно знаем, что из этой войны ничего хорошего не выйдет. В лучшем случае, вы сможете ограбить пару пекарен, но уверяю, мы все равно одержим верх." Посол кивает головой -- он убежден, но самую малость. Он говорит, что атаки сейчас не будет, они подождут подкрепления.'; prepareNextAttack(); EvilData[2] -= 20; if (roll > 65) { } else { Phrase += 'Вы говорите: "Привет! Пожалуйста, отмените атаку, нет никакого смысла нападать на нас сегодня, потому что... Ну... Рядом есть другие города с гораздо более слабой зашитой. Легкая добыча, верно? Хех." Посол кивает головой и отворачивается, смеясь над вашей жалкой попыткой. Он призывает атаковать немедленно.'; EvilData[1] += _root.randRange(5, 10); if (roll > 25) { Phrase += 'Вы говорите: "Эм... Привет, меня зовут ' + charName + ' и было бы неплохо, если бы вы не нападали на нас сегодня. Вы видите, что мы мирное, тесное, обнимашечное сообщество, наполненное подгузочными фетишами. Пожалуйста, уходите." Посол испытывает отвращение и решает немедленно атаковать в полную силу.'; EvilData[1] += _root.randRange(20, 40); } else { if (type == 1) { roll += statInsight; roll += int((strCount[2][0] + strCount[2][1] + strCount[2][2]) * 0.5); roll += int((strCount[7][0] + strCount[7][1] + strCount[7][2]) * 3); roll += upgradeLibraryRank + upgradeStoreRank + upgradeTechLabRank; if (strCount[2][0] + strCount[2][1] + strCount[2][2] == 0 && resources[2][1] == 0) { roll = 0; } } else { Phrase += 'Он выглядит удивленным вашими исследованиями. Вы обсуждаете с ним некоторые идеи и он кивает, широко улыбаясь. "Вы могли бы быть полезными для нас, в конце концов," - говорит он с усмешкой. Посол решает отменить атаку сейчас, пока вы помогаете улучшить их вооружение.'; prepareNextAttack(); EvilData[1] += _root.randRange(20, 40); EvilData[2] += 20; if (roll > 90) { } else { Phrase += 'Он выглядит заинтересованным, кивает головой и постукивает копытом около себя в ожидании. "Меня заинтересовали ваши идеи, спасибо. А теперь вы будете атакованы," - он смеется своей шутке и командует атаку немедленно.'; EvilData[1] += _root.randRange(5, 10); if (roll > 40) { Phrase += 'После нескольких минут ковыряний, вы не можете придумать ничего интересного, что можете рассказать послу. Он возмущен вашей попыткой отвлечь их и приказывает напасть всеми силами немедленно.'; EvilData[1] += _root.randRange(20, 40); } else { if (type == 2) { EvilAttacks(); } } } } } } } } _root.unlockpop.Descript = Phrase; } if (style == 'bribe') { Phrase = 'Посол чейнжлингов прибыл в ваш город. Вы приветствуете его мешком с битсами в знак мира. '; roll += statCharisma + statCuriosity - 10; if (type == 1) { roll += int((resources[0][1] * 0.1 / (clockTime / 400)) * 2.5); resources[0][1] *= 0.9; } else { if (type == 2) { roll += int((resources[0][1] * 0.3 / (clockTime / 400)) * 2.5); resources[0][1] *= 0.7; } else { if (type == 3) { roll += int((resources[0][1] * 0.5 / (clockTime / 400)) * 2.5); resources[0][1] *= 0.5; } else { if (type == 4) { roll += int((resources[0][1] * 0.8 / (clockTime / 400)) * 2.5); resources[0][1] *= 0.2; } else { if (type == 5) { roll += int((resources[0][1] * 1 / (clockTime / 400)) * 2.5); resources[0][1] *= 0; } } } } } refreshResources(); if (roll > 125) { Phrase += 'Посол берет дань и счастливо улыбается: "О да, это... это хорошо." Кажущийся довольным, он предлагает не только остановить атаку, но и задержать ее на некоторое время.'; prepareNextAttack(); EvilData[2] += _root.randRange(10, 20); } else { if (roll > 100) { Phrase += 'Посол хватает мешок и трясет его, потирая подбородок и приговаривая: "Немного легковат... но пойдет, пока. Я прикажу остановить атаку, но в следующий раз этого будет мало..."'; prepareNextAttack(); } else { if (roll > 50) { Phase += 'Посол заглядывает в мешок с битсами и выдает: "Вы шутите, да? И это ваш откуп?" - он качает головой и кидает сумку своему товарищу: "Спасибо за монетки, но мы все равно атакуем."'; } else { Phase += 'Посол берет мешок и, даже не заглядывая, кидает его своему сопровождающему: "Спасибо за монетки, но такие мелкие подарки не принесут ничего хорошего. Я уверен, что силой мы сможем получить от вас больше."'; EvilData[1] += _root.randRange(5, 10); } } } _root.unlockpop.Descript = Phrase; } if (style == 'intimidate') { Phrase = 'Посол чейнжлингов появился на окраине вашего города. Вы подходите к нему, глядя уверено и пренебрежительно. '; if (type == 0) { roll += statCharisma + statWillpower - 10; } else { Phrase += 'Вы говорите: "Вы серьезно думаете, что ваша жалкая горстка сможет сделать что-то против защитников моего города? Я хочу посмотреть на это," - вы смеетесь, глядя ему в глаза: "Можете вернуться, когда найдете настоящую армию." Посол отступает назад и кивает: "Да, похоже, мы недооценили вас. Не волнуйтесь, мы скоро вернемся."'; prepareNextAttack(); EvilData[2] -= _root.randRange(10, 20); if (roll > 60) { Phrase += 'Вы играете мышцами и показываете свою технику сбивания яблок: "Если вы ищете хорошую драку, то вы нашли ее. Я не боюсь вас, сырноногие." Посол качает головой: "Я думал, что встречусь с дипломатом, а не клоуном." И решает немедленно атаковать.'; EvilData[1] += _root.randRange(15, 30); } else { if (type == 1) { roll += statCharisma + statWillpower - 10; if (roll > 60) { Phrase += 'Вы говорите, грозно глядя ему в глаза: "Вы пришли тратить мое время? Делайте что хотите, но если ваша мелкая вылазка провалится, то мы не будем брать пленных." Чейнжлинг выглядит полностью убежденным вашим поведением и отступает: "Вы показали свою позицию," - говорит он перед отъездом и отменяет атаку.'; prepareNextAttack(); EvilData[2] -= _root.randRange(10, 20); } else { Phrase += 'Вы рычите как лев и топаете копытами: "Рыыар! Если вы посмеете напасть на мой город, то я... я сделаю плохие вещи!" Посол закатывает глаза и приказывает атаковать немедленно.'; EvilData[1] += _root.randRange(15, 30); } } } } _root.unlockpop.Descript = Phrase; } if (style == 'fortify') { Tempy = 0; if (type == 0) { Tempy = mana * 10; DefenseRating += Tempy; mana = 0; } if (type == 1) { Tempy = DefenseRating * 0.1; DefenseRating += Tempy; } if (type == 2 && StoryFlags[3] != 1) { Tempy = DefenseRating; DefenseRating += Tempy; StoryFlags[3] = 1; } if (type == 3) { Tempy = 400; DefenseRating += Tempy; DefenseRating -= 100; } _root.unlockpop.Descript = Phrase; EvilAttacks(); DefenseRating -= Tempy; if (type == 1) { happiness -= 50; if (happiness < minHappiness) { happiness = minHappiness; } } } if (style == 'counter') { Tempy = 0; if (type == 0) { Tempy = DefenseRating * 0.4; DefenseRating -= Tempy; EvilData[1] *= 0.9; } if (type == 1) { Tempy = DefenseRating * 0.2; DefenseRating -= Tempy; EvilData[1] *= 0.9; bonusGET = randRange(5 + popMax / 40, 10 + popMax / 5); bonusGET = int(0.1 * bonusGET); newMSG('<font color=\'#ffcc00\'>' + bonusGET + ' камней</font> было украдено в вашей вылазке.'); resources[3][1] += bonusGET; bonusGET = randRange(5 + popMax / 40, 10 + popMax / 5); bonusGET = int(1 * bonusGET); newMSG('<font color=\'#ffcc00\'>' + bonusGET + ' Битс</font> было украдено в вашей вылазке.'); resources[0][1] += bonusGET; } _root.unlockpop.Descript = Phrase; EvilAttacks(); DefenseRating += Tempy; } writeData(); } function prepareNextAttack() { EvilData[2] = _root.randRange(60, 80) + statWillpower; if (traitsOwned[17] == 1) { EvilData[2] *= 0.5; } if (difficulty == 2) { EvilData[2] *= 0.5; } EvilData[2] *= 0.8 + (environment / 100) * 0.2; } function RefreshSpecalistSelected() { if (specialistSelected != -1) { _root.hudInfo.specialistTable.nameRank = _root.specialistsStats[specialistSelected][0] + ', Уровень ' + _root.specialistsStats[specialistSelected][1]; _root.hudInfo.specialistTable.expShow = 'EXP:'; _root.hudInfo.specialistTable.EXP = int(_root.specialistsStats[specialistSelected][3]) + '/' + _root.specialistsStats[specialistSelected][4]; } } function firstTimeBonuses() { if (traitsOwned[22] == 1) { statCharisma = 5; statCuriosity = 5; statWillpower = 5; statInsight = 5; statKarma = 5; } happiness += 4 * statCharisma - 20; if (statCuriosity >= 3) { resources[0][1] += 50; resources[1][1] += 50; } environment = 85 + statKarma * 5; resources[0][1] += 10 * statCuriosity + 70; if (resources[1][1] < 0) { resources[1][1] = 0; } if (statInsight >= 7) { if (perksOwned[16] == 1) { resources[2][1] += 50; } else { resources[2][1] += 25; } } if (statKarma >= 7) { if (perksOwned[16] == 1) { resources[3][1] += 20; } else { resources[3][1] += 10; } } if (perksOwned[2] == 1) { resources[0][1] += 100; } if (traitsOwned[7] == 1) { resources[0][1] *= 1.5; resources[2][1] *= 1.5; resources[3][1] *= 1.5; } if (statCharisma >= 3) { HireSpecialist(); } if (statCharisma >= 10) { if (perksOwned[16] == 1) { HireSpecialist(); HireSpecialist(); } else { HireSpecialist(); } } if (traitsOwned[17] == 1) { HireSpecialist(); } if (traitsOwned[18] == 1) { specialistsStats[0][0] = 'Ветеран'; specialistsStats[0][1] = 10; } EvilData[1] = 5; prepareNextAttack(); if (statWillpower < 3) { EvilData[2] -= 60; } DefenseRating = 25 + statWillpower * 5; if (traitsOwned[16] == 1) { DefenseRating += 150; } if (ascensionLevel == 0) { manaMax = 10 + statInsight * 5; if (statInsight >= 3) { manaMax += 20; } mana = int(manaMax / 3); } if (traitsOwned[20] == 1) { if (ascensionLevel == 0) { skill_Leadership += 2; skill_Diplomacy += 2; skill_Knowledge += 2; skill_Architecture += 2; skill_Discipline += 2; skill_Ecology += 2; skill_Tradecraft += 2; manaMax += 100; } } if (traitsOwned[15] == 1) { manaMax = 0; } if (traitsOwned[22] == 1) { statCharisma = 5; statCuriosity = 5; statWillpower = 5; statInsight = 5; statKarma = 5; } if (perksOwned[9] == 1) { ++_root.landOwned; if (_root.newLand[_root.landOwned][0] != NaN) { _root.generateMap(_root.newLand[_root.landOwned][0], _root.newLand[_root.landOwned][1], _root.newLand[_root.landOwned][2], _root.newLand[_root.landOwned][3]); } upgradeMoreTilesRank = 1; } } function statBonusInitialize() { if (_root.loadGame != true) { firstTimeBonuses(); } basePopHouse = 8; basePopTreeHouse = 4; if (perksOwned[12] == 1) { basePopHouse += 4; } if (perksOwned[3] == 1) { basePopTreeHouse += 8; } if (traitsOwned[3] == 1) { basePopHouse -= 2; } if (statWillpower >= 10) { if (perksOwned[16] == 1) { maxHappiness += 20; } else { maxHappiness += 10; } } if (traitsOwned[15] == 1) { maxHappiness += 50; } if (traitsOwned[14] == 1) { maxHappiness -= 50; } if (perksOwned[4] == 1) { maxHappiness += 10; } if (statCuriosity >= 10) { if (perksOwned[16] == 1) { buildList[0][1] -= 30; buildList[1][1] -= 10; } else { buildList[0][1] -= 15; buildList[1][1] -= 5; } } if (statInsight >= 10) { if (perksOwned[16] == 1) { buildList[7][1] = int(0.5 * buildList[7][1]); buildList[10][1] *= 0.5; buildList[7][4] = int(0.5 * buildList[7][4]); buildList[10][4] *= 0.5; } else { buildList[7][1] = int(0.75 * buildList[7][1]); buildList[10][1] *= 0.75; buildList[7][4] = int(0.75 * buildList[7][4]); buildList[10][4] *= 0.75; } } if (traitsOwned[3] == 1) { i = 0; while (i < buildList.length) { buildList[i][1] = int(buildList[i][1] * 0.9); buildList[i][5] = int(buildList[i][5] * 0.5); ++i; } } if (perksOwned[2] == 1) { i = 0; while (i < buildList.length) { buildList[i][1] = int(buildList[i][1] * 0.9); ++i; } } if (perksOwned[3] == 1) { buildList[9][4] = 0; buildList[4][1] = 0; } if (traitsOwned[5] == 1) { buildList[4][6] += 50; buildList[5][6] += 50; } if (traitsOwned[8] == 1) { buildList[0][6] += 50; buildList[5][1] *= 1.2; buildList[11][1] *= 1.2; buildList[11][4] *= 1.2; } if (traitsOwned[19] == 1) { buildList[6][6] += 50; } if (perksOwned[11] == 1) { buildList[14][6] += 50; } if (perksOwned[8] == 1) { buildList[0][6] += 50; } if (perksOwned[9] == 1) { i = 0; while (i < upgradeMoreTiles.length) { upgradeMoreTiles[i][0] *= 0.75; ++i; } upgradeMoreTilesCost *= 0.75; } if (statWillpower >= 7) { if (perksOwned[16] == 1) { i = 0; while (i < upgradeHireSpecialist.length) { upgradeHireSpecialist[i][0] *= 0.6; ++i; } upgradeHireSpecialistCost *= 0.6; } else { i = 0; while (i < upgradeHireSpecialist.length) { upgradeHireSpecialist[i][0] *= 0.8; ++i; } upgradeHireSpecialistCost *= 0.8; } } if (perksOwned[12] == 1) { buildList[5][6] -= 50; } if (traitsOwned[22] == 1) { maxHappiness = 50; minHappiness = 50; happiness = 50; } setLoveToRank(); hudDynamic.gotoAndStop('refresh'); } function setLoveToRank() { loveToRank = int(8 + 8 * (loveRank * loveRank * loveGrowth) * (1 - statInsight / 100)); if (traitsOwned[7] == 1) { loveToRank = int(loveToRank * 1.1); } } function loveGain(amount) { if (amount > 0) { if (ShieldLevel < 100) { if (amount == NaN || amount == undefined) { love = 0; loveTotal = 0; trace('ERROR, LOVE MAGIC GAINED: ' + amount); } else { love += amount; loveTotal += amount; } } if (love == NaN || love == undefined) { love = 0; loveTotal = 0; trace('ERROR, LOVE CORRUPTED'); } } loveDisplay = int((love / loveToRank) * 100); loveTotalDisplay = int(loveTotal); if (traitsOwned[20] == 1) { love = 0; loveDisplay = 0; loveTotalDisplay = 0; } if (loveDisplay > 100) { love -= loveToRank; setLoveToRank(); levelUp(1); } } function statBonusCheck() {} function newMSG(msg) { _root.hudMSG.messages.html = true; _root.hudMSG.messages.htmlText += msg; ++_root.hudMSG.messages.scroll; } function levelUp(amount) { _root.projspawner2.levelDeBurst = 0; _root.projspawner2.levelBurst = _root.projspawner2.levelBurstTime; _root.projspawner2.levelBurstMAX = _root.projspawner2.levelBurstTime; i = 0; while (i < amount) { _root.StatsLeftPartial += statInsight * 0.05; if (_root.StatsLeftPartial >= 1) { ++_root.StatsLeft; --_root.StatsLeftPartial; } ++_root.StatsLeft; ++loveRank; ++i; } } function showExtraInfo() { if (showingExtraInfo == true) { n = nodeDepthInitial + 1; while (n < nodeDepth + 1) { if (_root.world['node' + n].Catalog == 0) { _root.world['node' + n].extraInfo = 'Торговцев: ' + int((_root.tradeCooldown[0] + 5) / 5) + '\n' + 'Количество еды: ' + tradingPrices[0][7] + '\n' + 'Цена камней: ' + tradingPrices[1][10]; } ++n; } } else { n = nodeDepthInitial + 1; while (n < nodeDepth + 1) { _root.world['node' + n].extraInfo = ''; ++n; } } } function refreshResources() { var v2 = 0; resourceBits = int(resources[0][1]); resourceFood = int(resources[1][1]); resourceTech = int(resources[2][1]); resourceGems = int(resources[3][1]); maxHousingEarth = (basePopHouse + 0) * strCount[3][0] + (basePopHouse + 4) * strCount[3][3] + (basePopHouse + 8) * strCount[3][4] + basePopTreeHouse * strCount[9][0]; if (perksOwned[14] == 1) { maxHousingEarth += 50; } maxHousingPegasus = 0; maxHousingUnicorn = 0; maxHousing = maxHousingEarth + maxHousingPegasus + maxHousingUnicorn; popEarth = population[0][1]; if (perksOwned[14] == 1) { popEarth += 50; } popUnicorn = population[1][1]; popPegasus = population[2][1]; popTotal = popEarth + popUnicorn + popPegasus; popMax = maxHousing; popTotalMax = popTotal + '/' + '\n' + maxHousing; if (traitsOwned[8] == 1) { v2 = 0.5; } else { v2 = 1; } if (traitsOwned[6] == 0) { resourcePerCycle[0][1] = (popTotal / 80 + bonusPerCycle[0][1]) * v2 * factoryBuffIncome * (1 + skill_Leadership * 0.05); } else { resourcePerCycle[0][1] = bonusPerCycle[0][1]; } if (_root.edictResidentialActive == 1) { resourcePerCycle[0][1] *= 0.8; } if (_root.edictResidentialActive == 2) { if (traitsOwned[14] == 1) { resourcePerCycle[0][1] *= 1.4; } else { resourcePerCycle[0][1] *= 1.2; } } if (popTotal >= 50) { if (traitsOwned[11] == 0) { resourcePerCycle[0][1] += 1.5 * strCount[5][1]; } } if (_root.upgradeStoreRank >= 1) { v2 = 1; } else { v2 = 0; } resourcePerCycle[1][1] = (3 + v2) * strCount[1][0] + (4 + v2) * strCount[1][1] + (6 + v2) * strCount[1][3] + bonusPerCycle[1][1]; resourcePerCycle[2][1] = +bonusPerCycle[2][1]; if (popTotal >= 50) { quarryBonus = 1.2; if (_root.edictIndustrialActive == 1) { if (traitsOwned[14] == 1) { quarryBonus += 0.4; } else { quarryBonus += 0.2; } } if (StoryFlags[2] == 1) { quarryBonus += 1.25; } resourcePerCycle[3][1] = 0.125 * (strCount[5][0] * quarryBonus) + bonusPerCycle[3][1]; } if (perksOwned[7] == 1 && popTotal >= 100) { resourcePerCycle[3][1] += 0.02083333333333333 * (strCount[1][0] + strCount[1][1] + strCount[1][2] + strCount[1][3]); } if (_root.edictIndustrialActive == 3) { resourcePerCycle[0][1] = 0; resourcePerCycle[3][1] = 0; } resourceCap[1][1] = 300 + 100 * (strCount[1][0] + strCount[1][1] + strCount[1][2]) + 300 * strCount[1][3] + 10 * strCount[3][0] + 15 * strCount[3][3] + 20 * strCount[3][4] + 5 * strCount[9][0]; if (_root.upgradeStoreRank >= 4) { resourceCap[1][1] *= 2.5; resourceCap[1][1] = int(resourceCap[1][1]); } resourceCap[1][1]; resourceCapFood = resourceCap[1][1]; resourceBitsCycle = int(resourcePerCycle[0][1] * 16); resourceFoodCycle = int(resourcePerCycle[1][1] * 4); var v3 = 0.5; if (traitsOwned[21] == 1) { v3 *= 2; } if (_root.edictResidentialActive == 3) { if (traitsOwned[14] == 1) { v3 *= 0.25; } else { v3 *= 0.5; } } if (perksOwned[14] == 1) { resourceFoodCycleDisplay = int(resourceFoodCycle - (popTotal - 50) * v3) * 4; } else { resourceFoodCycleDisplay = int(resourceFoodCycle - popTotal * v3) * 4; } resourceTechCycle = int(resourcePerCycle[2][1] * 16); resourceGemsCycle = int(resourcePerCycle[3][1] * 16); environmentDisplay = int(environment); TopRightTicker = ''; if (edictResidentialTimer > 0 && edictResidentialActive != -1) { edictResidentalDaysLeft = 'Дней осталось: ' + int((edictResidentialTimer + 3) / 4); if (edictResidentialBuff[edictResidentialActive] != '' && edictResidentialBuff[edictResidentialActive] != NaN) { TopRightTicker += edictResidentialBuff[edictResidentialActive] + ' - ' + int((edictResidentialTimer + 3) / 4) + ' дней осталось' + '\n'; } } else { if (edictResidentialTimer <= 0) { if (renewEdicts != 1) { edictResidentialActive = 0; } else { if (edictResidentialActive != -1) { activateEdict(edictResidentialActive, 'Residential'); } } } } if (edictLibraryTimer > 0 && edictLibraryActive != -1) { edictLibraryDaysLeft = 'Дней осталось: ' + int((edictLibraryTimer + 3) / 4); if (edictLibraryBuff[edictLibraryActive] != '' && edictLibraryBuff[edictLibraryActive] != NaN) { TopRightTicker += edictLibraryBuff[edictLibraryActive] + ' - ' + int((edictLibraryTimer + 3) / 4) + ' дней осталось' + '\n'; } } else { if (edictLibraryTimer <= 0) { if (renewEdicts != 1) { edictLibraryActive = 0; } else { if (edictLibraryActive != -1) { activateEdict(edictLibraryActive, 'Library'); } } } } if (edictIndustrialTimer > 0 && edictIndustrialActive != -1) { edictIndustrialDaysLeft = 'Дней осталось: ' + int((edictIndustrialTimer + 3) / 4); if (edictIndustrialBuff[edictIndustrialActive] != '' && edictIndustrialBuff[edictIndustrialActive] != NaN) { TopRightTicker += edictIndustrialBuff[edictIndustrialActive] + ' - ' + int((edictIndustrialTimer + 3) / 4) + ' дней осталось' + '\n'; } } else { if (edictIndustrialTimer <= 0) { if (renewEdicts != 1) { edictIndustrialActive = 0; } else { if (edictIndustrialActive != -1) { activateEdict(edictIndustrialActive, 'Industrial'); } } } } happinessDisplay = int(happiness); resourceHappyCycle = int(happinessPerCycle * 4); if (resourceHappyCycle >= 0) { happinessScore = '+' + resourceHappyCycle; } else { happinessScore = resourceHappyCycle; } if (traitsOwned[15] == 1) { manaMax = 0; } if (mana > manaMax) { mana = manaMax; } manaDisplay = int(mana) + ' / ' + manaMax; loveDisplay = int((love / loveToRank) * 100); loveTotalDisplay = int(loveTotal); if (traitsOwned[20] == 1) { love = 0; loveDisplay = 0; loveTotalDisplay = 0; } if (loveDisplay > 100) { love -= loveToRank; setLoveToRank(); levelUp(1); } DefenseRatingDisplay = int(DefenseRating / 10) + ' +' + int(DefenseRatingMod / 10); DefenseRatingTotal = int(DefenseRating / 10) + int(DefenseRatingMod / 10); upgradeStoreCost = upgradeStore[upgradeStoreRank][0]; if (upgradeStoreCost == NaN) { upgradeStoreCost = 'MAX'; } upgradeLibraryCost = upgradeLibrary[upgradeLibraryRank][0]; if (upgradeLibraryCost == NaN) { upgradeLibraryCost = 'MAX'; } upgradeMoreTilesCost = upgradeMoreTiles[upgradeMoreTilesRank][0]; if (upgradeMoreTilesCost == NaN) { upgradeMoreTilesCost = 'MAX'; } upgradeHireSpecialistCost = upgradeHireSpecialist[upgradeHireSpecialistRank][0]; if (upgradeHireSpecialistCost == NaN || _root.upgradeHireSpecialistRank == _root.specialistsMax) { upgradeHireSpecialistCost = 'MAX'; } upgradeTechLabCost = upgradeTechLab[upgradeTechLabRank][0]; if (upgradeTechLabCost == NaN) { upgradeTechLabCost = 'MAX'; } checkForUnlocks(); } function order(a, b) { var v2 = Number(a[0]); var v1 = Number(b[0]); if (v2 < v1) { return 1; } if (v2 > v1) { return -1; } return 0; } function displayHappinessWhat() { _root.HW.msg.messages.html = true; _root.HW.msg.messages.htmlText = ''; _root.HW.msg.messages.htmlText += 'Счастье: ' + int(happiness * 100) / 100 + '\n'; _root.HW.msg.messages.htmlText += 'Счастья в день: ' + int(happinessPerCycle * 4 * 100) / 100 + '\n'; _root.HW.msg.messages.htmlText += '<font color=\'#999999\'>--------------------------------------------------------</font>'; happinessWhat.sort(order); i = 0; while (i < happinessWhat.length) { if (happinessWhat[i][0] != 0) { if (happinessWhat[i][0] > 0) { fontColor = '91FF79'; } else { fontColor = 'C94747'; } _root.HW.msg.messages.htmlText += '<font color=\'#' + fontColor + '\'>' + int(happinessWhat[i][0] * 4 * 100) / 100 + ', ' + happinessWhat[i][1] + '</font>' + '\n'; } ++i; } clearHappinessWhat(); } function clearHappinessWhat() { i = 0; while (i < 50) { happinessWhat[i][0] = 0; happinessWhat[i][1] = ''; ++i; } } function checkForUnlocks() { if (strCount[5][0] + strCount[5][1] + strCount[5][2] >= 3) { UnlockGeneric(1); } if (strCount[0][0] + strCount[0][1] + strCount[0][2] >= 5) { UnlockGeneric(2); } if (TreeCount == 1) { UnlockGeneric(3); } if (strCount[13][0] >= 5) { UnlockOption(0); } if (ascensionLevel >= 2) { UnlockOption(1); } if (ascensionLevel >= 1 && strCount[6][0] + strCount[6][1] + strCount[6][2] >= 1) { UnlockOption(2); } if (ascensionLevel >= 1) { UnlockGeneric(5); } if (resources[1][1] >= 5000) { UnlockGeneric(6); } if (resources[3][1] >= 300) { UnlockGeneric(7); } if (upgradeStoreRank >= 7) { UnlockGeneric(18); } if (ShieldLevel >= 100 && clockTime <= 200) { UnlockGeneric(20); } if (specialistsTotal == 5) { UnlockGeneric(8); } if (resourceHappyCycle >= 100) { UnlockGeneric(13); } if (strCount[1][1] >= 10) { UnlockGeneric(14); } if (strCount[6][0] + strCount[6][1] + strCount[6][2] >= 3) { UnlockGeneric(15); } if (skill_Diplomacy >= 5) { UnlockGeneric(16); } } function housePop() { if (currentlyPopping == false && traitsOwned[20] != 1) { i = randRange(nodeDepthInitial, nodeDepth); a = _root.world['node' + i]; goodToGo = false; if (a.Catalog != -1) { if (a.Catalog == 3 && a.UpgradeRank == 0) { MiniScene = 2; a.Pop.unlockgallery = 0; UnlocksGallery[0][1] = 1; _root.cache.data.OptionGalleryUnlocked[0] = 1; goodToGo = true; bonusGET = randRange(int(popMax / 40) * (a.Age + 1), int(popMax / 5) * (a.Age + 1)); resources[0][1] += bonusGET; refreshResources(); prizeDescript = bonusGET + ' битс добавлено в сокровищницу ' + townName + '.'; } else { if (a.Catalog == 3 && a.UpgradeRank == 1) { MiniScene = 5; a.Pop.unlockgallery = 3; UnlocksGallery[3][1] = 1; _root.cache.data.OptionGalleryUnlocked[3] = 1; goodToGo = true; bonusGET = 1.5 * randRange(int(popMax / 40) * (a.Age + 1), int(popMax / 5) * (a.Age + 1)); resources[0][1] += bonusGET; refreshResources(); prizeDescript = bonusGET + ' битс добавлено в сокровищницу ' + townName + '.'; } else { if (a.Catalog == 3 && a.UpgradeRank == 2) { MiniScene = 5; a.Pop.unlockgallery = 3; UnlocksGallery[3][1] = 1; _root.cache.data.OptionGalleryUnlocked[3] = 1; goodToGo = true; bonusGET = 2 * randRange(int(popMax / 40) * (a.Age + 1), int(popMax / 5) * (a.Age + 1)); resources[0][1] += bonusGET; refreshResources(); prizeDescript = bonusGET + ' битс добавлено в сокровищницу ' + townName + '.'; } else { if (a.Catalog == 8) { MiniScene = 3; a.Pop.unlockgallery = 1; UnlocksGallery[1][1] = 1; _root.cache.data.OptionGalleryUnlocked[1] = 1; goodToGo = true; bonusGET = 10 * randRange(int(popMax / 40) * (a.Age + 1), int(popMax / 5) * (a.Age + 1)); resources[1][1] += bonusGET; refreshResources(); prizeDescript = bonusGET + ' еды добавлено в склады ' + townName + '.'; } else { if (a.Catalog == 1) { MiniScene = 4; a.Pop.unlockgallery = 2; UnlocksGallery[2][1] = 1; _root.cache.data.OptionGalleryUnlocked[2] = 1; goodToGo = true; bonusGET = randRange(20, 200); happiness += bonusGET; refreshResources(); prizeDescript = 'Счастье увеличено на ' + bonusGET + '. Излишки переведены в ману.'; } } } } } if (goodToGo == true) { currentlyPopping = true; a.Pop.gotoAndPlay(2); a.Pop.popfloat.onPress = function () { if (_root.pauseDuringMeet == true && _root.gamePaused != true) { _root.pauseGame(); } _root.unlockpop.gotoAndStop(4); _root.unlockpop.DescriptHeader = 'Event'; _root.unlockpop.Descript = _root.UnlocksGallery[this._parent.unlockgallery][0]; _root.unlockpop.Descript += '\r\r' + prizeDescript; this._parent.gotoAndStop(1); currentlyPopping = false; }; } } } } function cycle() { if (gamePaused == false && autoSave == true) { refreshResources(); i = 0; while (i < 4) { resources[i][1] += resourcePerCycle[i][1]; if (resources[i][1] > resourceCap[i][1]) { resources[i][1] = resourceCap[i][1]; } ++i; } refreshResources(); } } function cycleBig() { if (gamePaused == false) { refreshResources(); ++clockTime; clock = clockType + ' ' + int(clockTime / clockDivider); var v17 = int(28 - statCuriosity * 0.5); if (clockTime % v17 == 0 && CurrentEvent == -1 && popTotal >= 32 && randomEventsEnabled == true) { CurrentEvent = randRange(0, _root.eventList1.length - 2); _root.randomEvent.play(); eventPosition = 0; writeRandomEvent(); } housePopper += randRange(5, 10 + statKarma); if (housePopper > 100) { _root.housePop(); housePopper = 0; } if (edictResidentialTimer > 0) { --edictResidentialTimer; } if (edictLibraryTimer > 0) { --edictLibraryTimer; } if (edictIndustrialTimer > 0) { --edictIndustrialTimer; } TickSpecialists(); happinessPerCycle = 0; var v2 = 0; clearHappinessWhat(); if (strCount[7][2] > 0) { happinessPerCycle += -8 * strCount[7][2]; happinessWhat[v2][0] = -8 * strCount[7][2]; happinessWhat[v2][1] = 'Лаборатории (Незаконные технологии)'; ++v2; } if (strCount[0][2] > 0) { if (traitsOwned[19] != 1) { happinessPerCycle += 1; happinessWhat[v2][0] = 1; happinessWhat[v2][1] = 'Бонус расслабленного режима ГП'; ++v2; } } var v15 = 1 + 0.25 * ascensionLevel; if (difficulty == 2) { happinessPerCycle -= (popTotal / 80) * v15; happinessWhat[v2][0] = -(popTotal / 80) * v15; happinessWhat[v2][1] = 'Режим эксперта'; ++v2; } if (traitsOwned[21] == 1) { v15 *= 0.65; } if (perksOwned[8] == 1) { v15 -= 0.02 * statCharisma; } if (popTotal > 100) { happinessPerCycle -= ((popTotal - 100) / 16) * v15; happinessWhat[v2][0] = -((popTotal - 100) / 16) * v15; happinessWhat[v2][1] = 'Население'; } ++v2; if (_root.edictIndustrialActive == 2) { if (traitsOwned[14] == 1) { DefenseRating += 25; } else { DefenseRating += 12.5; } } environmentPerCycle = 0; if (perksOwned[13] == 1) { environmentPerCycle += TreeCount * 1.25; } else { environmentPerCycle += TreeCount; } if (traitsOwned[1] == 0) { if (traitsOwned[5] == 0) { environmentPerCycle += 0.55 * strCount[4][0]; } else { environmentPerCycle += 0.5 * strCount[4][0]; } } if (_root.edictLibraryActive == 1) { environmentPerCycle -= 2 * strCount[2][1]; } environmentPerCycle += 1 * strCount[9][0]; environmentPerCycle -= (1 - skill_Ecology * 0.05) * (strCount[1][0] + strCount[1][1] + strCount[1][2]); environmentPerCycle -= (2 - skill_Ecology * 0.05) * (strCount[6][0] + strCount[6][1] + strCount[6][2]); environmentPerCycle -= (3 - skill_Ecology * 0.05) * (strCount[5][0] + strCount[5][1]); if (_root.edictIndustrialActive == 1) { environmentPerCycle -= 1 * (strCount[5][0] + strCount[5][1]); } var v11 = 20 + statCuriosity; if (traitsOwned[10] == 1) { v11 = 35 + statCuriosity; } i = 0; while (i < tradeCooldown.length) { if (tradeCooldown[i] < v11) { RN = 1 + statCuriosity * 0.0375 + skill_Tradecraft * 0.0375; if (strCount[0][1] > 0) { RN += 0.5; } if (traitsOwned[11] == 1) { RN *= 5; } tradeCooldown[i] += RN; } else { tradeCooldown[i] = v11; } ++i; } if (traitsOwned[19] != 1) { if (traitsOwned[11] == 1) { happinessPerCycle += 2; happinessWhat[v2][0] = 2; happinessWhat[v2][1] = 'Бонус торговца'; ++v2; } } if (traitsOwned[19] != 1) { if (traitsOwned[2] == 1) { if (DefenseRating > 800) { happinessPerCycle += 8; happinessWhat[v2][0] = 8; } else { happinessPerCycle += DefenseRating / 100; happinessWhat[v2][0] = DefenseRating / 100; } happinessWhat[v2][1] = 'Бонус гармонии'; ++v2; } } if (clockTime % 4 == 0 && traitsOwned[10] == 0 || clockTime % 20 == 0 && traitsOwned[10] == 1) { i = 0; while (i < tradingPrices.length) { tradingPrices[i][1] = randRange(tradingPrices[i][2], tradingPrices[i][3]); tradingPrices[i][4] = randRange(tradingPrices[i][5], tradingPrices[i][6]); tradingPrices[i][7] = randRange(tradingPrices[i][8], tradingPrices[i][9]); tradingPrices[i][10] = randRange(tradingPrices[i][11], tradingPrices[i][12]); if (tradingPrices[i][13] == true) { tradingPrices[i][1] = tradingPrices[i][7]; } ++i; } } showExtraInfo(); i = 0; while (i < 4) { _root.bonusPerCycle[i][1] = 0; ++i; } var v16 = 0.5; if (traitsOwned[21] == 1) { v16 *= 2; } if (_root.edictResidentialActive == 3) { if (traitsOwned[14] == 1) { v16 *= 0.25; } else { v16 *= 0.5; } } if (upgradeStoreRank >= 7 && popTotal > 400) { loveGain(resources[1][1] * 0.005); resources[1][1] *= 0.95; } if (perksOwned[7] == 1) { if (resources[3][1] > popTotal / 200) { resources[3][1] -= popTotal / 200; happinessPerCycle += popTotal / 32; happinessWhat[v2][0] = popTotal / 32; happinessWhat[v2][1] = 'Перк Каменные конфетки'; ++v2; } } if (perksOwned[14] == 1) { resources[1][1] -= (popTotal - 50) * v16; } else { resources[1][1] -= popTotal * v16; } var v9 = 100 + int(Karma / 2); i = 0; while (i < strCount[5][0] + strCount[5][1]) { j = randRange(1, v9); if (j >= 100) { u = randRange(1, 4); if (u == 1) { bonusGET = randRange(6, 13); newMSG('<font color=\'#ffcc00\'>Один из ваших шахтеров обнаружил огромные залежи, содержащие ' + bonusGET + ' камней!</font>'); resources[3][1] += bonusGET; } else { if (u == 2) { bonusGET = randRange(50, 150); newMSG('<font color=\'#ffcc00\'>Один из ваших шахтеров обнаружил редкий минерал, оцениваемый в ' + bonusGET + ' битс!</font>'); resources[0][1] += bonusGET; } else { if (u == 3) { bonusGET = randRange(1, 25); newMSG('<font color=\'#7F4AFF\'>Кажется, в одном из карьеров завелся жуткий призрак. Ой ой.</font>'); happiness -= bonusGET; if (happiness < minHappiness) { happiness = minHappiness; } } else { if (u == 4) { h = randRange(1, 25 * strCount[5][0] + strCount[5][1]); if (h >= 50) { newMSG('<font color=\'#FF0000\'>Во время копания карьера была обнаружена пещера с монстрами, потребовавшими дань.</font>'); u = randRange(1, 2); if (u == 1) { bonusGET = randRange(10, 50 + int(resources[1][1] * 0.33)); } else { resources[1][1] -= bonusGET; newMSG('<font color=\'#FF0000\'>Существа получили ' + bonusGET + ' еды и остались довольны.</font>'); if (resources[1][1] >= bonusGET) { newMSG('<font color=\'#FF0000\'>К сожалению, выкупа им оказалось недостаточно, и они все равно изнасиловали шахтеров.</font>'); happiness -= 20 - statWillpower; if (happiness < minHappiness) { happiness = minHappiness; } } else { if (u == 2) { bonusGET = randRange(10, 10 + int(resources[0][1] * 0.2)); if (resources[1][1] >= bonusGET) { resources[1][1] -= bonusGET; newMSG('<font color=\'#FF0000\'>Существа получили ' + bonusGET + ' битс и остались довольны.</font>'); } else { newMSG('<font color=\'#FF0000\'>К сожалению, выкупа им оказалось недостаточно, и они все равно изнасиловали шахтеров.</font>'); happiness -= 20 - statWillpower; if (happiness < minHappiness) { happiness = minHappiness; } } } } } } } } } } } ++i; } i = 0; while (i < strCount[6][0] + strCount[6][1] + strCount[6][2]) { j = randRange(1, v9); if (j >= 100) { u = randRange(1, 7); if (u == 1) { bonusGET = randRange(15 + int(loveToRank / 60), 30 + int(loveToRank / 40)); newMSG('<font color=\'#ffcc00\'>Жаркая понячья оргия началась в одной из таверн, сгенерировано ' + bonusGET + ' Магии любви!</font>'); loveGain(bonusGET); } else { if (u == 2) { bonusGET = randRange(250, 500); newMSG('<font color=\'#ffcc00\'>Одну из Таверн посетил невероятно пьяный бизнеспони, который выпил на ' + bonusGET + ' битс.</font>'); resources[0][1] += bonusGET; } else { if (u == 3) { bonusGET = randRange(1, 25); newMSG('<font color=\'#7F4AFF\'>Загадочная фигура в плаще посетила одну из ваших Таверн.</font>'); happiness -= bonusGET; if (happiness < minHappiness) { happiness = minHappiness; } } else { if (u == 4) { newMSG('Одна из ваших таверн получила награду "Самый залитый спермой пол".'); } else { if (u == 5) { newMSG('Пони по всему ' + townName + ' обсуждают захватывающую вчерашнюю партию в "Веселых торговцах".'); newMSG('Другие новости: в долговых организациях сегодня, почему-то, самые большие очереди за все время!'); } else { if (u == 6) { newMSG('Посетители местной таверны отзываются о прекрасном персонале и бесплатных спермовыводителях в каждом номере!'); } else { if (u == 7) { newMSG('Миака засветилась сегодня в местной таверне. Бармен упомянул, как сильно были удивлены посетители, когда она выдавала напитки.'); } } } } } } } } ++i; } j = randRange(1, 100); if (j >= 99) { if (popTotal > 50 && popTotal < 200) { u = randRange(1, 10); if (u == 1) { if (happiness > 80) { newMSG('Один из ваших жителей устроил очень веселую вечеринку целому кварталу.'); newMSG('Поговаривают, что там были "не только танцы".'); } else { newMSG('Один из жителей устроил вечер случайных встреч, чем поднял всем настроение.'); } } if (u == 2) { if (happiness > 90) { newMSG('Пони по всему ' + townName + ' обсуждают чистый воздух!'); } else { if (happiness < 60) { newMSG('Пони ' + townName + ' могли быть и счастливее, но, похоже, они стараются видеть во всем лучшую сторону.'); happiness += 5; } } } if (u == 3) { newMSG('Дерпи нашла блестящий битс на дороге и настаивает, что он указывал на хорошее место для библиотеки.'); newMSG('Суеверная пони-цыганка утверждает, что жуткий призрак украл его сегодня днем.'); resources[0][1] += 1; } if (u == 4) { newMSG('Дерпи нашла свежий яблочный пирог и настаивает, что он там был для тех, кому повезло меньше.'); newMSG('Владельцы булочных продолжают жаловаться на таинственного вора пирогов в ' + townName + '.'); resources[1][1] += 1; } if (u == 5) { if (happiness < 90) { newMSG('Пони в ' + townName + ' по-настоящему взволнованы предстоящим визитом знаменитости.'); happiness += 5; } } if (u == 6) { newMSG('Пони празднуют смерть раздражающего синего животного в ' + townName + '.'); happiness += 10; } if (u == 7) { newMSG('Сегодня состоялась конференция по вопросу, является ли гейская любовная магия такой же мощной, как и обычная.'); } } else { if (popTotal > 200) { u = randRange(1, 20); if (u == 1) { newMSG('Пони ' + townName + ' начинают опасаться, что, с населением ' + popTotal + ' пони, они скоро начнут выпадать из комнат!'); } if (u == 2) { newMSG('Цены на недвижимость в ' + townName + ' значительно выросли после того, как знаменитость посетила город и помастурбировала на публике.'); } if (u == 3) { newMSG('Эксперты военного дела в Королевском замке обсуждают оптимальную стратегию работы оружейных.'); } if (u == 4) { newMSG('Дерпи поливает и подкармливает растения каждый день, чтобы обеспечить здоровую окружающую среду.'); newMSG('Местные жители с каждым днем все больше жалуются на владельцев собак, чтобы они убирали за питомцами.'); } if (u == 5) { newMSG('С введением игры "Веселые торговцы" прибыль таверн стала невероятной.'); newMSG('А также: недавние репортажи о пьяных пони, бегающих по улицам и кричащих о бандитах.'); } if (u == 6) { newMSG('Социальная реклама в ' + townName + ': дружеское напоминание об опасности обезвоживания.'); } if (u == 7) { newMSG('Дерпи заявляет, что она знает, откуда в шахтепризраки, но никто ей не верит.'); } } } } var v7 = 0; var v10 = 0; var v6 = 0; var v8 = 0; var v13 = false; var v3 = 1; var v12 = false; var v4 = 1 * (1 + skill_Knowledge * 0.05) * (1 + statInsight * 0.2); if (traitsOwned[9] == 1) { v4 += 0.4; } if (upgradeTechLabRank >= 1) { v4 += 0.1; } if (_root.edictLibraryActive == 1) { if (traitsOwned[14] == 1) { resources[2][1] += 2 * (strCount[2][0] + strCount[2][1] + strCount[2][2]); } else { resources[2][1] += 1 * (strCount[2][0] + strCount[2][1] + strCount[2][2]); } } if (_root.edictLibraryActive == 2) { if (traitsOwned[11] == 0) { if (traitsOwned[14] == 1) { } else { _root.bonusPerCycle[0][1] += (environment / 8) * (strCount[2][0] + strCount[2][1] + strCount[2][2]); if (environment > 10) { _root.bonusPerCycle[0][1] += 0.625 * (strCount[2][0] + strCount[2][1] + strCount[2][2]); } else { if (environment > 10) { _root.bonusPerCycle[0][1] += (environment / 16) * (strCount[2][0] + strCount[2][1] + strCount[2][2]); } else { _root.bonusPerCycle[0][1] += 0.3125 * (strCount[2][0] + strCount[2][1] + strCount[2][2]); } } } } environment -= 2.5 * (strCount[2][0] + strCount[2][1] + strCount[2][2]); } var v14 = v2; if (popTotal >= 200) { factoryBuffIncome = 1 + 0.25 * strCount[11][0]; factoryBuffLove = 1 + 0.25 * strCount[11][1]; } else { factoryBuffIncome = 1; factoryBuffLove = 1; } if (strCount[15][0] > 0) { yubbo = 0; while (yubbo < strCount[15][0]) { if (resources[2][1] > 0) { wumbo = 0; while (wumbo < specialistsTotal) { trainAmount = _root.randRange(0.5, 0.75) * (1 + skill_Discipline * 1.5 / 100) * (1 + statWillpower * 1.5 / 100); specialistsStats[wumbo][3] += trainAmount; ++wumbo; } resources[2][1] -= 1; } ++yubbo; } } if (strCount[15][1] > 0) { yubbo = 0; while (yubbo < strCount[15][1]) { v4 += 0.25; ++yubbo; } } if (strCount[15][2] > 0) { yubbo = 0; while (yubbo < strCount[15][2]) { if (resources[2][1] > 0) { mana += 1.25; resources[2][1] -= 1; } ++yubbo; } } i = nodeDepthInitial + 1; while (i < nodeDepth + 1) { v2 = v14; a = _root.world['node' + i]; loveBuff = 1 + ascensionLevel * 1.5; if (traitsOwned[6] == 1) { loveBuff += 2; } if (strCount[0][0] > 0) { loveBuff += 0.1; } if (traitsOwned[9] == 1) { loveBuff *= 0.9; } if (a.Catalog != -1) { if (a.Catalog == 7) { if (a.ModeInt == 0 && a.Power >= 3) { _root.bonusPerCycle[2][1] += 0.5 * v4; if (upgradeTechLabRank >= 2) { _root.bonusPerCycle[0][1] += 2.5; } } if (a.ModeInt == 1 && a.Power >= 3) { if (environment < 200) { environment += 0.25; } if (upgradeTechLabRank >= 2) { _root.bonusPerCycle[0][1] += 2.5; } } if (a.ModeInt == 2 && a.Power >= 3) { _root.bonusPerCycle[2][1] += 0.75 * v4; if (upgradeTechLabRank >= 2) { _root.bonusPerCycle[0][1] += 3.75; } } } else { if (a.Catalog == 10) { environmentPerCycle += a.TreeCount; } else { if (a.Catalog == 8 && a.ModeInt != 10) { ++a.Age; a.Yield += randRange(26, 38); } else { if (a.Age >= 4) { a.Age = 0; a.FoodYield; ++a.ModeInt; changeMode(a.ModeInt, a); if (a.ModeInt < 2) { if (a.Buffs[1][0] > 0 || a.Buffs[1][1] > 0 || a.Buffs[1][3] > 0) { resources[1][1] += a.Yield; a.Yield = 0; a.Age = 0; a.ModeInt = 0; changeMode(a.ModeInt, a); } } else { if (a.Catalog == 11 && a.ModeInt != 10) { if (a.ModeInt == 2) { if (a.Buffs[1][0] > 0 || a.Buffs[1][1] > 0 || a.Buffs[1][3] > 0) { if (_root.upgradeLibraryRank >= 4 && (a.Buffs[2][0] > 0 || a.Buffs[2][1] > 0 || a.Buffs[2][2] > 0)) { if (resources[0][1] >= 10) { resources[0][1] -= 10; resources[3][1] += 1; } } else { if (resources[0][1] >= 10) { resources[0][1] -= 15; resources[3][1] += 1; } } } } if (perksOwned[5] == 1) { DefenseRating += 5; } } else { if ((a.Catalog == 3 || a.Catalog == 9) && a.buildProgressPercent >= 100) { Buffed = (1 * _root.happiness / 50) * (1 + statCharisma * 0.05); Penalty = 1 * (1 - skill_Diplomacy * 0.01) * (1 - statKarma * 0.02); if (_root.edictResidentialActive == 1) { if (traitsOwned[14] == 1) { Buffed *= 6; } else { Buffed *= 3; } } if (_root.edictResidentialActive == 2) { happinessPerCycle -= (a.Ponies[0] / 32) * (1 - skill_Diplomacy * 0.03); happinessWhat[v2][0] -= (a.Ponies[0] / 32) * (1 - skill_Diplomacy * 0.03); happinessWhat[v2][1] = 'Указ Подоходного налога'; } ++v2; if (_root.edictIndustrialActive == 2) { happinessPerCycle -= (a.Ponies[0] / 32) * (1 - skill_Diplomacy * 0.03); happinessWhat[v2][0] -= (a.Ponies[0] / 32) * (1 - skill_Diplomacy * 0.03); happinessWhat[v2][1] = 'Указ Оборонных работ'; } ++v2; if (_root.edictResidentialActive == 3) { Penalty *= 5; } if (_root.edictResidentialActive == 4) { if (traitsOwned[14] == 1) { if (traitsOwned[19] != 1) { happinessPerCycle += 2 * (a.Ponies[0] / 64); happinessWhat[v2][0] += 2 * a.Ponies[0] / 64; } loveGain(2 * (a.Ponies[0] / 128) * factoryBuffLove); } else { if (traitsOwned[19] != 1) { happinessPerCycle += a.Ponies[0] / 64; happinessWhat[v2][0] += a.Ponies[0] / 64; } loveGain((a.Ponies[0] / 128) * factoryBuffLove); } happinessWhat[v2][1] = 'Указ Недели свободы'; ++v2; } if (_root.upgradeStoreRank >= 2) { _root.bonusPerCycle[1][1] += 0.25; } j = randRange(1, v9); if (j >= 99 && happiness > 90 && v12 == false) { if (a.Age < 5) { a.Age += 1; } u = randRange(1, 5); if (u == 1 && a.Age >= 3 && a.ModeInt < 5) { UpgradeMode(a, true); a.Age = 0; } if (u == 2) { bonusGET = randRange(int(popMax / 40) * (a.Age + 1), int(popMax / 5) * (a.Age + 1)); newMSG('<font color=\'#ffcc00\'>Группа щедрых пони решила пожертвовать ' + bonusGET + ' битс в сокровищницу ' + townName + '.</font>'); resources[0][1] += bonusGET; } if (u == 3) { bonusGET = randRange(int(popMax / 40) * (a.Age + 1), int(popMax / 5) * (a.Age + 1)); newMSG('<font color=\'#ffcc00\'>Группа пони вырастила избыточный урожай и пожертвовала ' + bonusGET + ' еды в склад вашего города.</font>'); resources[1][1] += bonusGET; } if (u == 4) { if (ShieldLevel < 100) { bonusGET = randRange(5 + int(loveToRank / 100), 10 + int(loveToRank / 80)); newMSG('<font color=\'#ffcc00\'>Один из ' + a.Name + ' сгенерировал ' + bonusGET + ' дополнительной Магии любви. Они очень шаловливые на этой неделе!</font>'); loveGain(bonusGET); } } if (u == 5) { newMSG('Жители ' + townName + ' в последнее время ходят с хорошим настроением.'); } v12 = true; } var v5 = false; if (a.Buffs[0][0] > 0) { if (perksOwned[16] == 1) { Buffed += 2.5 * (1 + statCharisma * 0.1); } else { Buffed += 2.5 * (1 + statCharisma * 0.05); } v5 = true; } if (a.Buffs[0][1] > 0 && v5 == false) { if (traitsOwned[6] == 0) { _root.bonusPerCycle[0][1] += 0.375 * (_root.happiness / 100) * (1 + statCharisma * 0.05); happinessPerCycle -= 0.375 * Penalty; happinessWhat[v2][0] -= 0.375 * Penalty; happinessWhat[v2][1] = 'Штраф экономического режима ГП'; } v5 = true; } ++v2; if (a.Buffs[0][2] > 0 && v5 == false) { if (traitsOwned[19] != 1) { happinessPerCycle += 0.25 * (1 + statCharisma * 0.05); happinessWhat[v2][0] += 0.25 * (1 + statCharisma * 0.05); happinessWhat[v2][1] = 'Бонус расслабленного режима ГП'; } v5 = true; } ++v2; if (a.Buffs[4][0] > 0) { if (traitsOwned[5] == 1) { loveGain((a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove * 1.1); } else { loveGain((a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove); } } v5 = false; v3 = 1; if (traitsOwned[19] == 1) { v3 += 0.3; } if (a.Buffs[6][0] > 0) { if (traitsOwned[11] == 0) { _root.bonusPerCycle[0][1] += 0.1875 * (_root.happiness / 100); } happinessPerCycle += 0.03125 * a.Ponies[0]; loveGain((a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove * 0.33); happinessWhat[v2][0] += 0.03125 * a.Ponies[0]; happinessWhat[v2][1] = 'Бонус таверны'; v5 = true; } ++v2; if (a.Buffs[6][1] > 0 && v5 == false) { happinessPerCycle += 0.03125 * a.Ponies[0]; loveGain((a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove * 0.5); happinessWhat[v2][0] += 0.03125 * a.Ponies[0]; happinessWhat[v2][1] = 'Бонус таверны'; v5 = true; } ++v2; if (a.Buffs[6][2] > 0 && v5 == false) { loveGain((a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove * 1); v5 = true; } v5 = false; v3 = 1; if (a.Buffs[15][0] > 0 || a.Buffs[15][1] > 0 || a.Buffs[15][2] > 0) { _root.bonusPerCycle[0][1] += 0.1875 * (_root.happiness / 100); happinessPerCycle += 0.015625 * a.Ponies[0]; happinessWhat[v2][0] += 0.015625 * a.Ponies[0]; happinessWhat[v2][1] = 'Бонус академии'; v5 = true; } ++v2; v5 = false; if (a.Buffs[1][0] > 0 || a.Buffs[1][1] > 0 || a.Buffs[1][3] > 0) { if (a.Buffs[1][0] > 2 || a.Buffs[1][1] > 2 || a.Buffs[1][3] > 2) { happinessPerCycle -= 0.09375 * a.Ponies[0] * Penalty; happinessWhat[v2][0] -= 0.09375 * a.Ponies[0] * Penalty; happinessWhat[v2][1] = 'Штраф избытка магазинов'; } if (upgradeStoreRank >= 6) { loveGain((a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove); } } ++v2; if (a.Buffs[1][0] == 0 && a.Buffs[1][1] == 0 && a.Buffs[1][3] == 0 && v5 == false) { happinessPerCycle -= 0.0625 * a.Ponies[0] * Penalty; happinessWhat[v2][0] -= 0.0625 * a.Ponies[0] * Penalty; happinessWhat[v2][1] = 'Штраф отсутствия магазинов'; ++v2; } else { ++v2; if (a.Buffs[1][2] > 0 || a.Buffs[1][3] > 0 && v5 == false) { if (_root.upgradeStoreRank >= 5) { bonus = 1.2; } else { bonus = 1; } if (traitsOwned[19] != 1) { happinessPerCycle += 0.09375 * a.Ponies[0] * bonus; happinessWhat[v2][0] += 0.09375 * a.Ponies[0] * bonus; happinessWhat[v2][1] = 'Бонус вечериночных магазинов'; } } } ++v2; if (a.Buffs[1][0] > 0 && v5 == false) { if (traitsOwned[19] != 1) { happinessPerCycle += 0.03125 * a.Ponies[0]; happinessWhat[v2][0] += 0.03125 * a.Ponies[0]; happinessWhat[v2][1] = 'Бонус пекарен'; } } ++v2; if (a.Buffs[7][0] > 0 || a.Buffs[7][1] > 0 || a.Buffs[7][2] > 0) { if (_root.upgradeTechLabRank >= 4) { loveGain((a.Ponies[0] / 400) * (happiness / 100) * loveBuff * factoryBuffLove); } } v3 = 1; if (_root.upgradeLibraryRank >= 1) { v3 += 0.1; } if (_root.edictLibraryActive == 1) { v3 += 0.25; } if (_root.upgradeLibraryRank >= 2) { if (a.Buffs[2][0] + a.Buffs[2][1] + a.Buffs[2][2] > 0) { bonusPerCycle[2][1] += 0.005 * a.Ponies[0] * v3 * v4; v6 += 0.005 * a.Ponies[0] * v3 * v4; } } else { if (a.Buffs[2][0] + a.Buffs[2][1] + a.Buffs[2][2] > 0) { bonusPerCycle[2][1] += 0.002 * a.Ponies[0] * v3 * v4; v6 += 0.002 * a.Ponies[0] * v3 * v4; } } if (strCount[2][0] > 0) { _root.bonusPerCycle[0][1] += (strCount[2][0] / 40 * (strCount[2][0] + 1)) * a.Ponies[0] * v3; } if (strCount[2][1] > 0) { if (_root.edictLibraryActive != 3) { bonusPerCycle[2][1] += (strCount[2][1] / (strCount[2][1] - 0.4 + 0.4 * strCount[2][1])) * 0.0015625 * a.Ponies[0] * v3 * v4; v6 += (strCount[2][1] / (strCount[2][1] - 0.4 + 0.4 * strCount[2][1])) * 0.0015625 * a.Ponies[0] * v3 * v4; } else { loveGain((strCount[2][1] / (strCount[2][1] - 0.4 + 0.4 * strCount[2][1])) * 0.0015625 * a.Ponies[0] * v3 * v4); } } if (strCount[2][2] > 0) { Buffed += 0.5; if (traitsOwned[19] != 1) { happinessPerCycle += (strCount[2][2] / 40 * (strCount[2][2] + 0)) * a.Ponies[0] * v3; happinessWhat[v2][0] += (strCount[2][2] / 40 * (strCount[2][2] + 0)) * a.Ponies[0] * v3; happinessWhat[v2][1] = 'Бонус библиотек'; } } ++v2; if (a.Buffs[5][0] + a.Buffs[5][1] > 0 && a.Ponies[0] > 0 && traitsOwned[1] == 0) { happinessPerCycle -= 2 * Penalty; happinessWhat[v2][0] -= 2 * Penalty; happinessWhat[v2][1] = 'Штраф карьеров'; } ++v2; if (a.Buffs[11][0] + a.Buffs[11][1] + a.Buffs[11][2] > 0 && a.Ponies[0] > 0) { happinessPerCycle -= 2 * Penalty; Buffed -= 0.5 * Penalty; happinessWhat[v2][0] -= 2 * Penalty; happinessWhat[v2][1] = 'Штраф фабрик'; } ++v2; if (a.Buffs[13][0] + a.Buffs[13][1] + a.Buffs[13][2] > 0 && a.Ponies[0] > 0) { DefenseRating += 0.2; if (perksOwned[1] == 1) { DefenseRating += 0.1; } } if (a.Buffs[14][0] + a.Buffs[14][1] + a.Buffs[14][2] > 0 && a.Ponies[0] > 0) { if (ShieldLevel < 100) { if (perksOwned[11] == 1) { ShieldLevel += (a.Ponies[0] / 100) * 0.3; } if (_root.upgradeTechLabRank >= 5) { ShieldLevel += (a.Ponies[0] / 100) * 0.3; } ShieldLevel += (a.Ponies[0] / 100) * (1 + skill_Architecture * 0.1); } else { ShieldLevel = 100; } ShieldLevelDisplay = 'ЩИТ: ' + int(ShieldLevel) + '%'; } if (a.Ponies[0] < a.PoniesMax[0]) { } else { popRange = 4; if (a.Ponies[0] < 4) { popRange = 2; } else { popRange = 0; } } if (resources[1][1] < 0 || v13 == true) { popRange = -16; resources[1][1] = 0; v8 = 1; v13 = true; if (_root.happiness <= 20) { popRange = -16; v8 = 2; happyWarning = true; } } else { if (_root.happiness <= 20) { popRange = -16; v8 = 3; happyWarning = true; } } if (popRange < 0) { if (popRange > a.Ponies[0]) { popRange = a.Ponies[0]; } Buffed = 4; } v7 = int(randRange(1, popRange) * 0.25 * Buffed); v10 -= v7; population[0][1] += v7; a.Ponies[0] += v7; if (a.Ponies[0] < 0) { v10 -= -1 * a.Ponies[0]; population[0][1] += -1 * a.Ponies[0]; a.Ponies[0] += -1 * a.Ponies[0]; } if (a.Ponies[0] > a.PoniesMax[0]) { population[0][1] -= a.Ponies[0] - a.PoniesMax[0]; a.Ponies[0] -= a.Ponies[0] - a.PoniesMax[0]; } } } } } } } } } ++i; } v2 = v14; if (int(environmentPerCycle) >= 0) { environmentScore = '+' + int(environmentPerCycle); } else { environmentScore = int(environmentPerCycle); } if (traitsOwned[4] == 1) { happinessPerCycle += int((environmentScore - 15) * 1); happinessWhat[v2][0] += int((environmentScore - 15) * 1); happinessWhat[v2][1] = 'Черта эколога'; ++v2; } if (perksOwned[5] == 1) { if (environmentScore < 0) { happinessPerCycle += int(environmentScore * -0.25); happinessWhat[v2][0] += int(environmentScore * -0.25); happinessWhat[v2][1] = 'Индустриальный перк'; ++v2; } } if (environmentPerCycle < -1) { if (environment > 30) { } else { newMSG('<font color=\'#FF0000\'>Ваш экологический баланс негативен. Ваша природа будет со временем деградировать.</font>'); newMSG('<font color=\'#FF0000\'>Сады и деревья помогут уменьшить эффект.</font>'); EcoWarning = 5; if (EcoWarning == 0) { --EcoWarning; } else { if (environment < 30 && environment > 10) { } else { newMSG('<font color=\'#FF0000\'>Ваша экология в ужасном состоянии и продолжает деградировать, но медленно.</font>'); newMSG('<font color=\'#FF0000\'>Нападения чейнжлингов участятся, а жители будут несчастны.</font>'); EcoWarning = 10; if (EcoWarning == 0) { --EcoWarning; } else { if (environment < 10) { if (EcoWarning == 0) { newMSG('<font color=\'#FF0000\'>Ваша природа уничтожена.</font>'); EcoWarning = 10; } else { --EcoWarning; } } } } } } } if (environment < 30 && environment > 10) { if (environmentPerCycle <= -1) { environmentPerCycle = -1; } removeKebab = 12 - statWillpower * 0.8; if (removeKebab > 0) { happinessPerCycle -= removeKebab; happinessWhat[v2][0] -= removeKebab; happinessWhat[v2][1] = 'Плохая атмосфера'; } } else { if (environment < 10) { if (environmentPerCycle <= -1) { environmentPerCycle = -1; } removeKebab = 36 - statWillpower * 0.8; if (removeKebab > 0) { happinessPerCycle -= removeKebab; happinessWhat[v2][0] -= removeKebab; happinessWhat[v2][1] = 'Уничтоженная природа'; } } } if (environmentPerCycle > -1) { environmentPerCycle = 0; } ++v2; environment += environmentPerCycle; if (environment < -100) { environment = -100; } resourceEcoCycle = int(environmentPerCycle); environmentDisplay = int(environment); if (gRpops == true) { i = nodeDepthInitial + 1; while (i < nodeDepth + 1) { a = _root.world['node' + i]; if (a.Catalog == 1) { if (a.ModeInt == 0) { a.gR.gRTween.gRText.text = '+12 еды\r+1 счастье'; a.gR.play(); a.gR._alpha = 100; } else { if (a.ModeInt == 1) { a.gR.gRTween.gRText.text = '+16 еды'; a.gR.play(); a.gR._alpha = 100; } else { if (a.ModeInt == 2) { a.gR.gRTween.gRText.text = '+2 счастье'; a.gR.play(); a.gR._alpha = 100; } } } } if (a.Catalog == 2) { if (a.ModeInt == 1) { a.gR.gRTween.gRText.text = '+' + v6 + ' Очков науки' + '\n' + '-20 битс'; a.gR.play(); a.gR._alpha = 100; } } ++i; } } if (v10 != 0) { if (v8 == 1) { newMSG('<font color=\'#ff0000\'>' + v10 + ' пони из-за голода покинуло ' + townName + '!</font>'); } else { happiness -= 30 - statWillpower; if (happiness > 90) { } else { happiness -= 20 - int(statWillpower / 3); if (happiness > 70) { happiness -= 10 - int(statWillpower / 3); } else { if (v8 == 2) { newMSG('<font color=\'#ff0000\'>' + v10 + ' пони находилось в ужасном состоянии и ушло из ' + townName + '!</font>'); } else { happiness -= 30 - statWillpower; if (happiness > 90) { } else { happiness -= 20 - int(statWillpower / 3); if (happiness > 70) { happiness -= 10 - int(statWillpower / 3); } else { if (v8 == 3) { newMSG('<font color=\'#ff0000\'>' + v10 + ' пони было недовольно и ушло из ' + townName + '!</font>'); } } } } } } } } loveBuff += happinessPerCycle / 800; loveGain((a.Ponies[0] / 400) * (happiness / 100) * loveBuff * factoryBuffLove); happiness += happinessPerCycle; if (happiness > maxHappiness) { if (traitsOwned[13] != 1) { mana += (happiness - maxHappiness) * 0.1; } if (perksOwned[4] == 1) { loveGain((happiness - maxHappiness) * 0.1); } happiness = maxHappiness; } else { if (happiness < minHappiness) { happiness = minHappiness; } } if (upgradeLibraryRank >= 3) { mana += (_root.strCount[2][0] + _root.strCount[2][1] + _root.strCount[2][2]) * 0.025; } if (traitsOwned[13] == 1) { ++mana; } if (StoryFlags[1] == 1) { ++mana; } if (traitsOwned[12] == 1) { mana += TreeCount * 0.025; } refreshResources(); displayHappinessWhat(); if (autoSave == true) { writeData(); } findAllBuffers(); } } function selectStructure(building) { if (_root.buildPlacement == 'blank' && (building.Catalog != -1 || selectBlanks == true || building.AddOn != 1)) { deselectAll(); _root.nodeSelected = building; building.selectArrow.gotoAndPlay('loop'); building.selectArrow._alpha = 100; building.selectOutline._alpha = 100; _root.hudDynamic.gotoAndStop('displayNode'); if (building.UpgradeRank == 0) { building.Name = _root.buildList[building.Catalog][0]; } else { building.Name = _root.modeList[building.Catalog][building.UpgradeRank + 2][2]; } if (building.ModesEnabled == false) { } else { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(3); if (building.UpgradesEnabled == true) { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(4); } else { if (building.UpgradesEnabled == true) { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(1); } else { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(2); } } } if (building.ModeInt == 10) { building.Text = _root.modeList[building.Catalog][0][1]; building.BuildText = _root.modeList[building.Catalog][0][0].toUpperCase(); } else { building.Text = _root.modeList[a.Catalog][building.ModeInt][1]; building.BuildText = _root.modeList[AA.Catalog][building.ModeInt][0].toUpperCase(); } if (building.Mode != 'Обычный') { building.NameDisplay = building.Name + ' (' + building.Mode + ')'; } else { building.NameDisplay = building.Name; } _root.nodeDisplayName = building.NameDisplay; _root.nodeDisplayText = building.Text; if (showRadiusOnSelect == true) { showRadius(building, building.Catalog); } else { showRadius(NaN, -1); } updateHudCard(building); } else { if (_root.buildPlacement != 'blank') { _root.feedText2 = ''; _root.feedText = 'Нельзя сотворить здесь.'; } else { deselectAll(); } } } function updateHudCard(building) { if (building != NaN && building != undefined && building.Catalog != -1 && _root.hudInfoToggle != 2) { _root.hudCard._alpha = 100; _root.hudCard.field1.text = building.NameDisplay; _root.hudCard.trade.gotoAndStop(1); _root.hudCard.upgrades.gotoAndStop(1); var v3 = ''; if (building.ModeInt == 10) { v3 += 'Это здание еще строится.'; } else { _root.hudCard.upgrades.gotoAndStop(int(building.Catalog) + 3); _root.hudCard.needs.gotoAndStop(int(building.Catalog) + 3); } if (building.ModeInt != 10) { if (building.Catalog == 3) { v3 = 'Этот ' + building.Name + ' занят <font color=\'#C1FFB1\'>' + building.Ponies[0] + ' </font>из возможных <font color=\'#C1FFB1\'>' + building.PoniesMax[0] + '</font> пони.' + '\n'; var v4 = ''; if (building.Buffs[0][0] > 0) { v3 += 'Благодаря соседней городской площади, въезжать в этот дом будут быстрее, '; v4 = 'и'; } else { if (building.Buffs[0][1] > 0) { v3 += 'Благодаря соседней городской площади, пони в этом доме приносят больше дохода, '; v4 = 'и'; } else { if (building.Buffs[0][2] > 0) { v3 += 'Благодаря соседней городской площади, пони в этом доме более счастливы, чем обычно, '; v4 = 'и'; } else { v3 += 'Жители этого дома удивляются, почему рядом нет городской площади, '; v4 = 'но'; } } } if (building.Buffs[1][0] + building.Buffs[1][1] + building.Buffs[1][3] < 1) { if (v4 == 'но') { v4 = 'и'; } else { if (v4 == 'и') { v4 = 'но'; } } v3 += v4 + ' рядом нет магазинов, значит им приходится далеко ходить за продуктами.'; } else { if (building.Buffs[1][0] + building.Buffs[1][1] + building.Buffs[1][3] > 2) { if (v4 == 'но') { v4 = 'и'; } else { if (v4 == 'и') { v4 = 'но'; } } v3 += v4 + ' им некомфортно из-за переизбытка жилых зданий рядом.'; } else { v3 += v4 + ' они довольны, ведь рядом есть магазин.'; } } if (building.Buffs[5][0] > 0 && traitsOwned[1] == 0) { v3 += ' Из-за карьера рядом пони были несчастны и покинули дом.'; } } if (building.Catalog == 0) { if (building.ModeInt == 0) { v3 += 'Обеспечивает особую ауру в домах, пони въезжают в них быстрее. Также все дома в городе производят больше Магии любви в этом режиме.'; } if (building.ModeInt == 1) { v3 += 'Обеспечивает особую ауру в домах, увеличивая доход. Также торговцы будут посещать ваш город на 50% чаще.'; } if (building.ModeInt == 2) { v3 += 'Обеспечивает особую ауру в домах, значительно поднимая настроения их жителям. Также дает дополнительные 4 счастья в день.'; } v3 += '\n'; if (_root.tradeCooldown[0] >= 0) { _root.hudCard.trade.gotoAndStop(2); v3 += 'На вашем рынке сейчас есть торговцы. Вы можете осуществить <font color=\'#C1FFB1\'>' + int((_root.tradeCooldown[0] + 5) / 5) + '</font> сделок.'; } else { _root.hudCard.trade.gotoAndStop(3); } } if (building.Catalog == 4) { _root.hudCard.trade.gotoAndStop('Garden'); } if (building.Catalog == 6) { _root.hudCard.trade.gotoAndStop('Tavern'); } } _root.hudCard.field2.html = true; _root.hudCard.field2.htmlText = v3; } } function createNode(xPos, yPos, Natural) { ++_root.nodeDepth; var v5 = _root.world.attachMovie('node', 'node' + _root.nodeDepth, _root.nodeDepth); a = _root.world['node' + _root.nodeDepth]; v5.cacheAsBitmap = true; a._x = xPos; a._y = yPos; a._xscale = 100; a._yscale = 100; a.Catalog = -1; a.UpgradeRank = 0; a.Mode = 'Обычный'; a.ModeInt = 0; a.Natural = Natural; var v4 = 0; if (Natural == 'blank') { a.Name = 'Пустой участок'; a.Text = 'Тут пусто. Здесь можно что-то построить.'; } else { if (traitsOwned[12] == 1) { a.ModeInt = randRange(40, 41); } else { a.ModeInt = randRange(0, 10); } a.Name = naturalList[v4][a.ModeInt][0]; a.Text = naturalList[v4][a.ModeInt][1]; } a.Age = 0; a.Yield = 0; if (a.Mode != 'Обычный') { a.NameDisplay = a.Name + ' (' + a.Mode + ')'; } else { a.NameDisplay = a.Name; } a.AddOn = 1; a.buildProgress = 0; a.buildProgressPercent = 0; a.BuildText = ''; a.ModesEnabled = false; a.UpgradesEnabled = false; a.Buffs = new Array(30); glibs = 0; while (glibs < 30) { a.Buffs[glibs] = new Array(6); ++glibs; } a.Ponies = new Array(0, 0, 0); a.PoniesMax = new Array(0, 0, 0); a.Value = new Array(NaN, 0, 0, 0, 0); a.Power = 0; a.TreeCount = 0; a.gotoAndStop(a.Natural); a.sprite.gotoAndStop(a.ModeInt + 1); a.addOnBuilt.gotoAndStop('a' + a.AddOn); a.addOnPlace.gotoAndStop('a1'); if (a.Natural == 'n1') { var v3 = randRange(-20, 20); a.sprite._x += v3; a.selectArrow._x += v3; v3 = randRange(-10, 10); a.sprite._y += v3; a.selectArrow._y += v3; } a.btnNodeSelect.onPress = function () { if (_root.hudInfoToggle == 1) { _root.nodeSelected.selectArrow.gotoAndStop('disabled'); _root.nodeSelected.selectArrow._alpha = 0; _root.nodeSelected.selectOutline._alpha = 0; a = this._parent; if (buildPlacement == 'blank' || a.Catalog != -1 && buildPlacement != 'remove') { selectStructure(a); } else { if (FreeStructure[_root.buildCatalog] != 1) { k = 0; while (k < 4) { if (_root.resources[k][1] >= buildList[buildCatalog][k + 1]) { costOK = true; } else { costOK = false; goto 95884; } ++k; } } else { costOK = true; } label 95884: if (costOK == true) { } else { if (_root.buildCatalog == '??') { } else { if (_root.buildCatalog == 9 && a.Natural != 'n1') { } else { a.Catalog = _root.buildCatalog; a.buildTime = int(buildList[a.Catalog][5] / (1 + skill_Architecture * 0.15)); if (a.buildTime < 2) { a.buildTime = 2; } a.buildProgress = 0; a.buildProgressPercent = 0; a.Name = _root.buildList[a.Catalog][0]; a.Mode = 'Строится'; a.ModeInt = 10; a.ModesEnabled = false; a.UpgradesEnabled = false; if (a.Natural == 'n1') { if (traitsOwned[12] == 1) { happiness = minHappiness; mana = 0; newMSG('<font color=\'#ff0000\'>Вы разозлили Бога Леса.</font>'); } } a.Natural = 'blank'; if (a.Catalog == 3) { a.PoniesMax[0] = basePopHouse; } if (a.Catalog == 9) { a.PoniesMax[0] = basePopTreeHouse; } a.gotoAndStop('b' + a.Catalog); a.sprite.gotoAndStop('construction'); randsfx = _root.randRange(0, _root.sfxbankWood.length - 1); _root.playsfx1(_root.sfxbankWood, randsfx, 1); if (a.Mode != 'Обычный') { a.NameDisplay = a.Name + ' (' + a.Mode + ')'; } else { a.NameDisplay = a.Name; } a.Text = _root.modeList[a.Catalog][0][1]; a.BuildText = _root.modeList[a.Catalog][0][0].toUpperCase(); ++strCount[a.Catalog][a.ModeInt]; if (FreeStructure[_root.buildCatalog] != 1) { k = 0; while (k < 4) { _root.resources[k][1] -= buildList[a.Catalog][k + 1]; refreshResources(); a.Value[k + 1] = buildList[a.Catalog][k + 1]; ++k; } } else { FreeStructure[_root.buildCatalog] = 2; } if (!Key.isDown(16)) { _root.nodeSelected = a; _root.hudDynamic.gotoAndStop(tierSelected); if (a.ModesEnabled == false) { } else { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(3); if (a.UpgradesEnabled == true) { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(4); } else { if (a.UpgradesEnabled == true) { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(1); } else { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(2); } } } _root.nodeDisplayName = a.NameDisplay; _root.nodeDisplayText = a.Text; _root.buildPlacement = 'blank'; a.selectArrow.gotoAndPlay('loop'); a.selectArrow._alpha = 100; a.selectOutline._alpha = 100; } if (buildPlacement != 'remove') { if (a.Catalog != -1) { findBuffers(a, -1); --strCount[a.Catalog][a.ModeInt]; a.gotoAndStop(a.Natural); a.Name = 'Пустой участок'; a.Mode = ''; a.NameDisplay = a.Name; a.Text = 'Пустое место, которому очень хочется быть застроенным.'; a.BuildText = ''; a.ModesEnabled = false; a.UpgradeRank = 0; k = 0; while (k < 4) { if (a.ModeInt == 10 || perksOwned[10] == 1) { _root.resources[k][1] += int(1 * a.Value[k + 1]); } else { _root.resources[k][1] += int(0.6 * a.Value[k + 1]); } refreshResources(); ++k; } a.ModeInt = 0; a.Catalog = -1; if (!Key.isDown(16)) { _root.buildPlacement = 'blank'; deselectAll(); } g = 0; while (g < 3) { population[g][1] -= a.Ponies[g]; a.Ponies[g] = 0; ++g; } } } else { _root.feedText = 'Недостаточно ресурсов.'; } } } } } } }; a.btnNodeSelect.onRollOver = function () { a = this._parent; if (_root.buildPlacement != 'blank') { if (a.Catalog == -1) { } else { showRadius(a, _root.buildCatalog, false); if (_root.buildCatalog == 9 && a.Natural != 'n1') { } else { if (_root.buildCatalog == '??') { a.gotoAndStop('p' + _root.buildCatalog); showRadius(a, _root.buildCatalog, true); } else { showRadius(a, _root.buildCatalog, false); } } } } _root.nodeHighlighted = a; }; a.btnNodeSelect.onRollOut = function () { a = this._parent; if (a.Catalog == -1) { a.gotoAndStop(a.Natural); a.sprite.gotoAndStop(a.ModeInt + 1); } a.addOnBuilt.gotoAndStop('a' + a.AddOn); a.addOnPlace.gotoAndStop('a1'); _root.nodeHighlighted = NaN; }; a.btnNodeSelect.onReleaseOutside = function () { a = this._parent; if (a.Catalog == -1) { a.gotoAndStop(a.Natural); } a.addOnBuilt.gotoAndStop('a' + a.AddOn); a.addOnPlace.gotoAndStop('a1'); _root.nodeHighlighted = NaN; }; } function pickNodesRadius(node, radius) { h = nodeDepthInitial + 1; while (h < nodeDepth + 1) { var v3 = (node._x - _root.world['node' + h]._x) * SepXYRatio; var v2 = node._y - _root.world['node' + h]._y; nodeDistance = Math.sqrt(v3 * v3 + v2 * v2); if (nodeDistance < radius) { pickedNodes.push(_root.world['node' + h]); } ++h; } } function cycleClear() { if (clearLerp > 0) { --clearLerp; n = nodeDepthInitial + 1; while (n < nodeDepth + 1) { AA = _root.world['node' + n]; gloobs = 0; while (gloobs < 6) { AA.Buffs[clearLerp][gloobs] = 0; ++gloobs; } ++n; } } else { clearInterval(cycleTimerClear); n = nodeDepthInitial + 1; while (n < nodeDepth + 1) { AA = _root.world['node' + n]; if (AA.Catalog != -1 && buildList[AA.Catalog][6] > 0) { _root.findBuffers(AA, 1); } else { if (AA.Natural == 'n1') { ++TreeCount; } } ++n; } } } function findAllBuffers() { if (clearLerp == 0) { clearLerp = 30; } TreeCount = 0; clearInterval(cycleTimerClear); cycleTimerClear = setInterval(cycleClear, 10); } function findBuffers(object, buff) { if (object.Catalog == 10) { _root.findTrees(object); } if (object.ModeInt != 10) { pickedNodes = []; if (object.Natural == 'blank') { pickNodesRadius(object, buildList[object.Catalog][6]); } u = 0; while (u < pickedNodes.length) { pickedNodes[u].Buffs[object.Catalog][object.ModeInt] += buff; if (pickedNodes[u].Catalog == 7) { if (object.Catalog == 10) { if (object.Power >= 3) { pickedNodes[u].Power = 3; object.Power -= 3; } } if (pickedNodes[u].Power >= 3) { pickedNodes[u].sprite.noPower._alpha = 0; pickedNodes[u].sprite.glow.play(); } else { pickedNodes[u].sprite.noPower._alpha = 100; pickedNodes[u].sprite.glow.stop(); } } ++u; } } } function findTrees(object) { if (object.Catalog == 10 && object.ModeInt != 10) { object.TreeCount = 0; object.Power = 0; pickedNodes = []; pickNodesRadius(object, buildList[object.Catalog][6]); u = 0; while (u < pickedNodes.length) { if (pickedNodes[u].Natural == 'n1') { ++object.TreeCount; ++object.Power; } ++u; } } } function showRadius(building, catalog, placeOK) { if (_root.lastShownRadius == building && redundant == false) { redundant = true; } else { redundant = false; } pickedNodes = []; pickNodesRadius(_root.lastShownRadius, buildList[_root.lastShownRadiusCatalog][6]); u = 0; while (u < pickedNodes.length) { pickedNodes[u].btnNodeRadius.gotoAndStop(1); ++u; } if (!redundant) { pickedNodes = []; pickNodesRadius(building, buildList[catalog][6]); u = 0; while (u < pickedNodes.length) { if (placeOK == false) { pickedNodes[u].btnNodeRadius.gotoAndStop(4); } else { pickedNodes[u].btnNodeRadius.gotoAndStop(3); } ++u; } } _root.lastShownRadius = building; _root.lastShownRadiusCatalog = catalog; } function generateMap(xTiles, yTiles, xStart, yStart) { var v3 = int((xTiles + yTiles) / 1 + statKarma * 0.66); var v10; var v2 = 'blank'; var v5 = 40; if (xTiles > yTiles) { v10 = xTiles; } else { v10 = yTiles; } var v9 = _root.world.attachMovie('nodeTopReg', 'nodeFloor' + mapDepth, mapDepth); ++mapDepth; v9._x = xStart * SepStretch - xMapOffset; v9._y = yStart * SepStretch - yMapOffset - 40; v9._xscale = 105 * v10 * SepStretch; v9._yscale = 105 * v10 * SepStretch; x = 0; while (x < xTiles) { y = 0; while (y < yTiles) { v2 = 'blank'; z = randRange(0, 100); if (v3 > 0 && z < v5) { v2 = 'n1'; --v3; } createNode(xStart * SepStretch - xMapOffset + xSep * SepStretch * (x - y), yStart * SepStretch - yMapOffset + ySep * SepStretch * (x + y), v2); ++y; } ++x; } } function checkExtraPostLoad() { if (traitsOwned[10] == 1) { i = 0; while (i <= 2) { h = 1; while (h <= 12) { tradingPrices[i][h] *= 2; ++h; } ++i; } } if (statCuriosity >= 7) { if (perksOwned[16] == 1) { h = 1; while (h <= 3) { tradingPrices[0][h] += 30; tradingPrices[1][h] += 2; ++h; } h = 4; while (h <= 6) { tradingPrices[0][h] += 2; tradingPrices[1][h] += 40; ++h; } h = 7; while (h <= 9) { tradingPrices[0][h] += 30; tradingPrices[1][h] += 2; ++h; } h = 10; while (h <= 12) { tradingPrices[0][h] += 2; tradingPrices[1][h] += 40; ++h; } } else { h = 1; while (h <= 3) { tradingPrices[0][h] += 15; tradingPrices[1][h] += 1; ++h; } h = 4; while (h <= 6) { tradingPrices[0][h] += 1; tradingPrices[1][h] += 20; ++h; } h = 7; while (h <= 9) { tradingPrices[0][h] += 15; tradingPrices[1][h] += 1; ++h; } h = 10; while (h <= 12) { tradingPrices[0][h] += 1; tradingPrices[1][h] += 20; ++h; } } } if (traitsOwned[16] == 1) { SepStretch = 1.5; } if (traitsOwned[18] == 1) { specialistsMax = 1; } if (traitsOwned[19] == 1 && FreeStructure[6] == 0) { FreeStructure[6] = 1; } if (traitsOwned[7] == 1) { if (FreeStructure[0] == 0) { FreeStructure[0] = 1; } } checkDebugCodes(); rollPerks(); checkUpgrades(); findAllBuffers(); } function deleteMap() { while (_root.nodeDepth > nodeDepthInitial) { removeMovieClip(_root.world['node' + _root.nodeDepth]); --_root.nodeDepth; } while (_root.mapDepth > mapDepthInitial) { removeMovieClip(_root.world['nodeFloor' + _root.mapDepth]); --_root.mapDepth; } } function deselectAll() { _root.hudInfo.gambleScene.clearEm(false); _root.nodeSelected.selectArrow.gotoAndStop('disabled'); _root.nodeSelected.selectArrow._alpha = 0; _root.nodeSelected.selectOutline._alpha = 0; if (_root.nodeHighlighted.Catalog == -1) { _root.nodeHighlighted.gotoAndStop(_root.nodeHighlighted.a.Natural); } _root.nodeSelected = NaN; _root.hudDynamic.gotoAndStop(tierSelected); _root.buildPlacement = 'blank'; _root.hudInfo.gotoAndStop(1); _root.hudInfoToggle = 1; _root.showRadius(NaN, -1); _root.hudCard._alpha = 0; _root.hudCard.trade.gotoAndStop(1); _root.hudCard.upgrades.gotoAndStop(1); refreshResources(); } function changeMode(number, node) { AA = node; findBuffers(AA, -1); AA.Mode = _root.modeList[AA.Catalog][number][0]; if (AA.Mode != 'Обычный') { AA.NameDisplay = AA.Name + ' (' + AA.Mode + ')'; } else { AA.NameDisplay = AA.Name; } AA.Text = _root.modeList[AA.Catalog][number][1]; AA.BuildText = _root.modeList[AA.Catalog][number][0].toUpperCase(); if (node == _root.nodeSelected) { _root.nodeDisplayName = AA.NameDisplay; _root.nodeDisplayText = AA.Text; } AA.sprite.gotoAndStop(number + 1); --strCount[AA.Catalog][AA.ModeInt]; AA.ModeInt = number; ++strCount[AA.Catalog][AA.ModeInt]; findBuffers(AA, 1); } function UpgradeMode(building, ignoreUpgradeCost) { if (_root.modeList[building.Catalog][building.UpgradeRank + 3][0] != NaN) { zz = 0; while (zz < 4) { if (_root.resources[zz][1] >= _root.modeList[building.Catalog][building.UpgradeRank + 3][3 + zz]) { if (_root.modeList[building.Catalog][building.UpgradeRank + 3][3 + zz] != NaN && _root.modeList[building.Catalog][building.UpgradeRank + 3][3 + zz] != undefined) { costOK = true; } else { costOK = false; break; costOK = false; break; } } ++zz; } if (costOK == true || ignoreUpgradeCost == true) { ++building.UpgradeRank; if (ignoreUpgradeCost != true) { zz = 0; while (zz < 4) { _root.resources[zz][1] -= _root.modeList[building.Catalog][building.UpgradeRank + 2][3 + zz]; building.Value[zz + 1] = _root.modeList[building.Catalog][building.UpgradeRank + 2][3 + zz]; ++zz; } } refreshResources(); building.Name = _root.modeList[building.Catalog][building.UpgradeRank + 2][2]; building.Mode = _root.modeList[building.Catalog][building.UpgradeRank + 2][0]; if (building.Mode != 'Обычный') { building.NameDisplay = building.Name + ' (' + building.Mode + ')'; } else { building.NameDisplay = building.Name; } building.ModesEnabled = _root.modeList[building.Catalog][building.UpgradeRank + 2][7]; building.UpgradesEnabled = _root.modeList[building.Catalog][building.UpgradeRank + 2][8]; building.Text = _root.modeList[building.Catalog][building.UpgradeRank + 2][1]; building.BuildText = _root.modeList[building.Catalog][building.UpgradeRank + 2][0].toUpperCase(); building.sprite.gotoAndStop(building.UpgradeRank + 2 + 1); --strCount[building.Catalog][building.ModeInt]; findBuffers(building, -1); building.ModeInt = building.UpgradeRank + 2; ++strCount[building.Catalog][building.ModeInt]; findBuffers(building, 1); if (ignoreUpgradeCost == true) { newMSG('<font color=\'#ffcc00\'>Одно из ваших наиболее зажиточных семейств пони улучшило свой дом до ' + building.Name + '.'); } if (building.UpgradeRank == 1 && building.Catalog == 3) { building.PoniesMax[0] = basePopHouse + 4; } if (building.UpgradeRank == 2 && building.Catalog == 3) { building.PoniesMax[0] = basePopHouse + 8; } feedTextUpgradeMode(0); if (building.ModesEnabled == false) { } else { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(3); if (building.UpgradesEnabled == true) { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(4); } else { if (building.UpgradesEnabled == true) { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(1); } else { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(2); } } } if (_root.nodeSelected == building) { selectStructure(building); } _root.feedText2 = ''; _root.feedText = ''; } } } function feedTextMode(number) { if (_root.nodeSelected != NaN) { a = _root.nodeSelected; if (number != -1) { _root.feedText2 = 'Перейти в ' + _root.modeList[a.Catalog][number][0] + ' режим'; _root.feedText = _root.modeList[a.Catalog][number][1]; } else { _root.feedText2 = ''; _root.feedText = ''; } } } function feedTextUpgradeMode(number) { if (_root.nodeSelected != NaN) { a = _root.nodeSelected; if (number != -1) { if (_root.modeList[a.Catalog][a.UpgradeRank + 3][6] > 0) { _root.feedText2 = 'Улучшить до ' + _root.modeList[a.Catalog][a.UpgradeRank + 3][2] + ' - стоит ' + _root.modeList[a.Catalog][a.UpgradeRank + 3][3] + ' битс, ' + _root.modeList[a.Catalog][a.UpgradeRank + 3][6] + ' камней'; } else { _root.feedText2 = 'Улучшить до ' + _root.modeList[a.Catalog][a.UpgradeRank + 3][2] + ' - стоит ' + _root.modeList[a.Catalog][a.UpgradeRank + 3][3] + ' битс'; } _root.feedText = _root.modeList[a.Catalog][a.UpgradeRank + 3][1]; } else { _root.feedText2 = ''; _root.feedText = ''; } } } function pauseGame() { if (difficulty != 2) { if (_root.gamePaused != true) { _root.gamePaused = true; _root.pauseoverlay.gotoAndStop(2); _root.happyWheel.liquidAnim.stop(); _root.happyWheel.sun.stop(); _root.loveMeter.glow.stop(); _root.loveMeter.glow.bubbles.stop(); _root.loveMeter.Mask.wave.wave.stop(); _root.loveMeter.Mask.wave.b1.stop(); _root.loveMeter.Mask.wave.b2.stop(); _root.loveMeter.Mask.wave.b3.stop(); _root.loveMeter.Mask.wave.b4.stop(); _root.loveMeter.Mask.wave.b5.stop(); } else { if (showHints == 0) { _root.topRightHUD.adviserHintArrow.play(); showHints = 1; } _root.gamePaused = false; _root.pauseoverlay.gotoAndStop(1); _root.happyWheel.liquidAnim.play(); _root.happyWheel.sun.play(); _root.loveMeter.glow.play(); _root.loveMeter.glow.bubbles.play(); _root.loveMeter.Mask.wave.wave.play(); _root.loveMeter.Mask.wave.b1.play(); _root.loveMeter.Mask.wave.b2.play(); _root.loveMeter.Mask.wave.b3.play(); _root.loveMeter.Mask.wave.b4.play(); _root.loveMeter.Mask.wave.b5.play(); } } } function Zoomy(Amount) { _root.world.vcam._yscale += Amount; _root.world.vcam._xscale += Amount; if (_root.world.vcam._yscale < minZoom) { _root.world.vcam._yscale = minZoom; _root.world.vcam._xscale = minZoom; } else { if (_root.world.vcam._yscale > maxZoom) { _root.world.vcam._yscale = maxZoom; _root.world.vcam._xscale = maxZoom; } } } function activateEdict(number, type) { edictTimer = 28; if (traitsOwned[14] == 1) { edictTimer = 4; } if (type == 'Residential') { edictResidentialActive = number; edictResidentialTimer = edictTimer; edictResidentalDaysLeft = 'Дней осталось: ' + int((edictResidentialTimer + 3) / 4); if (number == 4) { edictLibraryActive = -1; edictIndustrialActive = -1; edictLibraryTimer = edictTimer; edictIndustrialTimer = edictTimer; } } if (type == 'Library') { edictLibraryActive = number; edictLibraryTimer = edictTimer; edictLibraryDaysLeft = 'Дней осталось: ' + int((edictLibraryTimer + 3) / 4); } if (type == 'Industrial') { edictIndustrialActive = number; edictIndustrialTimer = edictTimer; edictIndustrialDaysLeft = 'Дней осталось: ' + int((edictIndustrialTimer + 3) / 4); } } function writeData() { n = nodeDepthInitial + 1; while (n < nodeDepth + 1) { a = _root.world['node' + n]; m = n - (nodeDepthInitial + 1); cache.data.NodeData[m][0] = a.Catalog; cache.data.NodeData[m][1] = a.UpgradeRank; cache.data.NodeData[m][2] = a.Mode; cache.data.NodeData[m][3] = a.ModeInt; cache.data.NodeData[m][4] = a.Age; cache.data.NodeData[m][5] = a.BuildText; cache.data.NodeData[m][6] = a.ModesEnabled; cache.data.NodeData[m][7] = a.UpgradesEnabled; cache.data.NodeData[m][8] = a.Natural; cache.data.NodeData[m][9] = a.buildProgress; cache.data.NodeData[m][10] = a.buildProgressPercent; cache.data.NodeData[m][11] = a.AddOn; cache.data.NodeData[m][12] = a.Yield; i = 0; while (i < a.Ponies.length) { cache.data.NodeDataPonies[m][i] = a.Ponies[i]; ++i; } i = 0; while (i < a.PoniesMax.length) { cache.data.NodeDataPoniesMax[m][i] = a.PoniesMax[i]; ++i; } i = 0; while (i < a.Value.length) { cache.data.NodeDataValue[m][i] = a.Value[i]; ++i; } ++n; } i = 0; while (i < 4) { cache.data.PlayerDataResources[i][1] = resources[i][1]; ++i; } i = 0; while (i < resourcePerCycle.length) { cache.data.PlayerDataResourcePerCycle[i][1] = resourcePerCycle[i][1]; ++i; } i = 0; while (i < population.length) { cache.data.PlayerDataPopulation[i][1] = population[i][1]; ++i; } i = 0; while (i < cache.data.PlayerDataStrCount.length) { j = 0; while (j < cache.data.PlayerDataStrCount[i].length) { cache.data.PlayerDataStrCount[i][j] = strCount[i][j]; ++j; } ++i; } i = 0; while (i < tiersUnlocked.length) { cache.data.PlayerDataTiersUnlocked[i] = tiersUnlocked[i]; ++i; } i = 0; while (i < tradeCooldown.length) { cache.data.PlayerDataTradeCooldown[i] = tradeCooldown[i]; ++i; } i = 0; while (i < EvilData.length) { cache.data.PlayerDataEvilData[i] = EvilData[i]; ++i; } i = 0; while (i < cache.data.PlayerDataSpecialistsStats.length) { j = 0; while (j < cache.data.PlayerDataSpecialistsStats[i].length) { cache.data.PlayerDataSpecialistsStats[i][j] = specialistsStats[i][j]; ++j; } ++i; } cache.data.PlayerData[0] = happiness; cache.data.PlayerData[1] = environment; cache.data.PlayerData[3] = love; cache.data.PlayerData[4] = _root.hudMSG.messages.text; cache.data.PlayerData[5] = clockTime; cache.data.PlayerData[6] = townName; cache.data.PlayerData[8] = loveRank; cache.data.PlayerData[9] = charName; cache.data.PlayerData[10] = maleColorRed; cache.data.PlayerData[11] = maleColorGreen; cache.data.PlayerData[12] = maleColorBlue; cache.data.PlayerData[13] = loveTotal; cache.data.PlayerData[14] = landOwned; cache.data.PlayerData[15] = DefenseRating; cache.data.PlayerData[16] = specialistsTotal; cache.data.PlayerData[17] = defeated; cache.data.PlayerData[18] = mana; cache.data.PlayerData[19] = manaMax; cache.data.PlayerData[20] = funds; cache.data.PlayerData[21] = tokens; cache.data.PlayerData[22] = ascensionLevel; cache.data.PlayerData[23] = perksLeft; cache.data.PlayerData[24] = ShieldLevel; cache.data.PlayerData[25] = PrizeSkillTokens; cache.data.PlayerData[26] = extraLives; cache.data.PlayerData[27] = difficulty; cache.data.FileExists = true; cache.data.PlayerDataUpgrades[0] = upgradeStoreRank; cache.data.PlayerDataUpgrades[1] = upgradeLibraryRank; cache.data.PlayerDataUpgrades[2] = upgradeMoreTilesRank; cache.data.PlayerDataUpgrades[3] = upgradeHireSpecialistRank; cache.data.PlayerDataUpgrades[4] = upgradeTechLabRank; cache.data.PlayerDataEdicts[0] = edictResidentialActive; cache.data.PlayerDataEdicts[1] = edictResidentialTimer; cache.data.PlayerDataEdicts[2] = edictLibraryActive; cache.data.PlayerDataEdicts[3] = edictLibraryTimer; cache.data.PlayerDataEdicts[4] = edictIndustrialActive; cache.data.PlayerDataEdicts[5] = edictIndustrialTimer; cache.data.PlayerDataStats[0] = statCharisma; cache.data.PlayerDataStats[1] = statInsight; cache.data.PlayerDataStats[2] = statCuriosity; cache.data.PlayerDataStats[3] = statKarma; cache.data.PlayerDataStats[4] = statWillpower; cache.data.PlayerDataStats[5] = StatsLeft; cache.data.PlayerDataStats[6] = StatsLeftPartial; cache.data.PlayerDataSkills[0] = skill_Leadership; cache.data.PlayerDataSkills[1] = skill_Diplomacy; cache.data.PlayerDataSkills[2] = skill_Knowledge; cache.data.PlayerDataSkills[3] = skill_Architecture; cache.data.PlayerDataSkills[4] = skill_Discipline; cache.data.PlayerDataSkills[5] = skill_Ecology; cache.data.PlayerDataSkills[6] = skill_Tradecraft; cache.data.StoryFlags; i = 0; while (i < StoryFlags.length) { cache.data.StoryFlags[i] = StoryFlags[i]; ++i; } i = 0; while (i < FreeStructure.length) { cache.data.PlayerDataFreeStructure[i] = FreeStructure[i]; ++i; } i = 0; while (i < traitsOwned.length) { cache.data.PlayerDataTraitsOwned[i] = traitsOwned[i]; ++i; } i = 0; while (i < perksOwned.length) { cache.data.PlayerDataPerksOwned[i] = perksOwned[i]; ++i; } } function readData() { landOwned = cache.data.PlayerData[14]; if (landOwned > 0) { GL = 0; while (GL < landOwned) { generateMap(newLand[GL + 1][0], newLand[GL + 1][1], newLand[GL + 1][2], newLand[GL + 1][3]); ++GL; } } n = nodeDepthInitial + 1; while (n < nodeDepth + 1) { a = _root.world['node' + n]; m = n - (nodeDepthInitial + 1); a.Catalog = cache.data.NodeData[m][0]; a.UpgradeRank = cache.data.NodeData[m][1]; a.Mode = cache.data.NodeData[m][2]; a.ModeInt = cache.data.NodeData[m][3]; a.Age = cache.data.NodeData[m][4]; a.ModesEnabled = cache.data.NodeData[m][6]; a.UpgradesEnabled = cache.data.NodeData[m][7]; a.Natural = cache.data.NodeData[m][8]; a.buildProgress = cache.data.NodeData[m][9]; a.buildProgressPercent = cache.data.NodeData[m][10]; a.AddOn = cache.data.NodeData[m][11]; a.Yield = cache.data.NodeData[m][12]; if (a.Catalog != -1) { a.Name = _root.buildList[a.Catalog][0]; a.Text = _root.modeList[a.Catalog][0][1]; a.buildTime = buildList[a.Catalog][5]; a.gotoAndStop('b' + a.Catalog); } else { a.Mode = 'Строится'; a.sprite.gotoAndStop('construction'); if (a.ModeInt == 10) { a.sprite.gotoAndStop(a.ModeInt + 1); } else { if (a.Natural == 'blank') { a.Name = 'Пустой участок'; a.Text = 'Тут пусто. Здесь можно что-то построить.'; a.gotoAndStop(a.Natural); } else { a.Name = 'Дерево'; a.Text = 'Улучшает экологию. Уничтожается, если тут построить что-то другое.'; a.gotoAndStop(a.Natural); a.sprite.gotoAndStop(a.ModeInt + 1); } } } a.addOnBuilt.gotoAndStop('a' + a.AddOn); a.addOnPlace.gotoAndStop('a1'); if (a.Mode != 'Обычный') { a.NameDisplay = a.Name + ' (' + a.Mode + ')'; } else { a.NameDisplay = a.Name; } i = 0; while (i < a.Ponies.length) { a.Ponies[i] = cache.data.NodeDataPonies[m][i]; ++i; } i = 0; while (i < a.PoniesMax.length) { a.PoniesMax[i] = cache.data.NodeDataPoniesMax[m][i]; ++i; } i = 0; while (i < a.Value.length) { a.Value[i] = cache.data.NodeDataValue[m][i]; ++i; } ++n; } i = 0; while (i < 4) { resources[i][1] = cache.data.PlayerDataResources[i][1]; ++i; } i = 0; while (i < resourcePerCycle.length) { resourcePerCycle[i][1] = cache.data.PlayerDataResourcePerCycle[i][1]; ++i; } i = 0; while (i < population.length) { population[i][1] = cache.data.PlayerDataPopulation[i][1]; ++i; } i = 0; while (i < cache.data.PlayerDataStrCount.length) { j = 0; while (j < cache.data.PlayerDataStrCount[i].length) { strCount[i][j] = cache.data.PlayerDataStrCount[i][j]; ++j; } ++i; } i = 0; while (i < tiersUnlocked.length) { tiersUnlocked[i] = cache.data.PlayerDataTiersUnlocked[i]; if (tiersUnlocked[1] == true) { _root.tier2.locked._alpha = 0; } if (tiersUnlocked[2] == true) { _root.tier3.locked._alpha = 0; } ++i; } i = 0; while (i < tradeCooldown.length) { tradeCooldown[i] = cache.data.PlayerDataTradeCooldown[i]; ++i; } i = 0; while (i < EvilData.length) { EvilData[i] = cache.data.PlayerDataEvilData[i]; ++i; } i = 0; while (i < cache.data.PlayerDataSpecialistsStats.length) { j = 0; while (j < cache.data.PlayerDataSpecialistsStats[i].length) { specialistsStats[i][j] = cache.data.PlayerDataSpecialistsStats[i][j]; ++j; } ++i; } happiness = cache.data.PlayerData[0]; environment = cache.data.PlayerData[1]; love = cache.data.PlayerData[3]; clockTime = cache.data.PlayerData[5]; townName = cache.data.PlayerData[6]; loveRank = cache.data.PlayerData[8]; charName = cache.data.PlayerData[9]; maleColorRed = cache.data.PlayerData[10]; maleColorGreen = cache.data.PlayerData[11]; maleColorBlue = cache.data.PlayerData[12]; loveTotal = cache.data.PlayerData[13]; loveTotalDisplay = int(loveTotal); DefenseRating = cache.data.PlayerData[15]; specialistsTotal = cache.data.PlayerData[16]; defeated = cache.data.PlayerData[17]; mana = cache.data.PlayerData[18]; manaMax = cache.data.PlayerData[19]; funds = cache.data.PlayerData[20]; tokens = cache.data.PlayerData[21]; ascensionLevel = cache.data.PlayerData[22]; perksLeft = cache.data.PlayerData[23]; ShieldLevel = cache.data.PlayerData[24]; PrizeSkillTokens = cache.data.PlayerData[25]; extraLives = cache.data.PlayerData[26]; difficulty = cache.data.PlayerData[27]; if (ShieldLevel > 0) { ShieldLevelDisplay = 'ЩИТ: ' + int(ShieldLevel) + '%'; } else { ShieldLevelDisplay = ''; } if (ascensionLevel > 0) { ascensionLevelDisplay = 'ВОЗВЫШЕНИЕ ' + ascensionLevel; } PrizeSkillTokensDisplay = PrizeSkillTokens + ' жетонов'; upgradeStoreRank = cache.data.PlayerDataUpgrades[0]; upgradeLibraryRank = cache.data.PlayerDataUpgrades[1]; upgradeMoreTilesRank = cache.data.PlayerDataUpgrades[2]; upgradeHireSpecialistRank = cache.data.PlayerDataUpgrades[3]; upgradeTechLabRank = cache.data.PlayerDataUpgrades[4]; edictResidentialActive = cache.data.PlayerDataEdicts[0]; edictResidentialDaysLeft = 'Дней осталось: ' + int((edictResidentialTimer + 3) / 4); edictResidentialTimer = cache.data.PlayerDataEdicts[1]; edictLibraryActive = cache.data.PlayerDataEdicts[2]; edictLibraryDaysLeft = 'Дней осталось: ' + int((edictLibraryTimer + 3) / 4); edictLibraryTimer = cache.data.PlayerDataEdicts[3]; edictIndustrialActive = cache.data.PlayerDataEdicts[4]; edictIndustrialDaysLeft = 'Дней осталось: ' + int((edictIndustrialTimer + 3) / 4); edictIndustrialTimer = cache.data.PlayerDataEdicts[5]; statCharisma = cache.data.PlayerDataStats[0]; statInsight = cache.data.PlayerDataStats[1]; statCuriosity = cache.data.PlayerDataStats[2]; statKarma = cache.data.PlayerDataStats[3]; statWillpower = cache.data.PlayerDataStats[4]; StatsLeft = cache.data.PlayerDataStats[5]; StatsLeftPartial = cache.data.PlayerDataStats[6]; skill_Leadership = cache.data.PlayerDataSkills[0]; skill_Diplomacy = cache.data.PlayerDataSkills[1]; skill_Knowledge = cache.data.PlayerDataSkills[2]; skill_Architecture = cache.data.PlayerDataSkills[3]; skill_Discipline = cache.data.PlayerDataSkills[4]; skill_Ecology = cache.data.PlayerDataSkills[5]; skill_Tradecraft = cache.data.PlayerDataSkills[6]; i = 0; while (i < cache.data.StoryFlags.length) { StoryFlags[i] = cache.data.StoryFlags[i]; ++i; } i = 0; while (i < traitsOwned.length) { traitsOwned[i] = cache.data.PlayerDataTraitsOwned[i]; ++i; } i = 0; while (i < perksOwned.length) { perksOwned[i] = cache.data.PlayerDataPerksOwned[i]; ++i; } i = 0; while (i < cache.data.PlayerDataFreeStructure.length) { FreeStructure[i] = cache.data.PlayerDataFreeStructure[i]; ++i; } checkExtraPostLoad(); refreshResources(); statBonusInitialize(); clock = clockType + ' ' + int(clockTime / clockDivider); if (_root.defeated == true) { _root.gotoAndStop('rubble'); } } function ascensionNG() { ++ascensionLevel; if (ascensionLevel > 0) { ascensionLevelDisplay = 'ВОЗВЫШЕНИЕ ' + ascensionLevel; } deleteMap(); generateMap(newLand[0][0], newLand[0][1], newLand[0][2], newLand[0][3]); writeData(); i = 0; while (i < 4) { cache.data.PlayerDataResources[i][1] = 0; ++i; } i = 0; while (i < resourcePerCycle.length) { cache.data.PlayerDataResourcePerCycle[i][1] = 0; ++i; } i = 0; while (i < population.length) { cache.data.PlayerDataPopulation[i][1] = 0; ++i; } i = 0; while (i < cache.data.PlayerDataStrCount.length) { j = 0; while (j < cache.data.PlayerDataStrCount[i].length) { cache.data.PlayerDataStrCount[i][j] = 0; ++j; } ++i; } i = 0; while (i < tradeCooldown.length) { cache.data.PlayerDataTradeCooldown[i] = 0; ++i; } i = 0; while (i < EvilData.length) { cache.data.PlayerDataEvilData[i] = 0; ++i; } i = 0; while (i < cache.data.PlayerDataSpecialistsStats.length) { j = 0; while (j < cache.data.PlayerDataSpecialistsStats[i].length) { cache.data.PlayerDataSpecialistsStats[i][j] = 0; ++j; } ++i; } cache.data.PlayerData[0] = 50; cache.data.PlayerData[1] = 100; cache.data.PlayerData[4] = ''; cache.data.PlayerData[5] = 0; cache.data.PlayerData[14] = 0; cache.data.PlayerData[15] = 0; cache.data.PlayerData[16] = 0; cache.data.PlayerData[20] = 0; cache.data.PlayerData[21] = 0; cache.data.PlayerData[24] = 0; cache.data.FileExists = true; cache.data.PlayerDataUpgrades[0] = 0; cache.data.PlayerDataUpgrades[1] = 0; cache.data.PlayerDataUpgrades[2] = 0; cache.data.PlayerDataUpgrades[3] = 0; cache.data.PlayerDataUpgrades[4] = 0; cache.data.PlayerDataEdicts[0] = 0; cache.data.PlayerDataEdicts[1] = 0; cache.data.PlayerDataEdicts[2] = 0; cache.data.PlayerDataEdicts[3] = 0; cache.data.PlayerDataEdicts[4] = 0; cache.data.PlayerDataEdicts[5] = 0; cache.data.StoryFlags; i = 0; while (i < StoryFlags.length) { cache.data.StoryFlags[i] = 0; ++i; } i = 0; while (i < FreeStructure.length) { cache.data.PlayerDataFreeStructure[i] = 0; ++i; } readData(); if (_root.loadGame == true) { firstTimeBonuses(); } writeData(); _root.gotoAndStop('reset'); } function checkUpgrades() { if (_root.upgradeStoreRank >= 3) { _root.buildList[1][6] = 200; } if (_root.upgradeLibraryRank >= 5) { _root.buildList[2][6] = 135; } else { if (_root.upgradeLibraryRank >= 2) { _root.buildList[2][6] = 110; } else { _root.buildList[2][6] = 75; } } } function adviserHint() { if (_root.strCount[0][0] + _root.strCount[0][1] + _root.strCount[0][2] < 1) { } else { adviserDialogue = 'Привет, ' + charName + '! Чтобы начать строить город, я советую построить сначала городскую площадь, а затем окружить их домами и рядом поставить магазин.'; if (_root.strCount[3][0] < 1) { adviserDialogue = 'Эй, ' + charName + ', я вижу, что у тебя есть дома, но нет городской площади.'; } else { if (_root.strCount[3][0] < 1) { adviserDialogue = 'Так, у тебя есть городская площадь, это хорошо, но без домов рядом она бесполезна!'; } else { if (_root.strCount[1][0] + _root.strCount[1][1] < 1) { adviserDialogue = 'Построй магазин и выстави ему режим Пекарни или Гастронома, иначе пони будут голодать!'; } else { if (_root.strCount[4][0] < 1) { adviserDialogue = 'Ты построил основу города, это замечательно! Мое следующее предложение - построить сад возле некоторых домов. Что самое важное, там мы сможем встретиться и обговорить детали!'; } else { if (_root.strCount[6][0] < 1) { adviserDialogue = 'Все выглядит достаточно хорошо. Теперь ты должен работать над постройкой таверны, пони нужны развлечения! Встретимся в саду, чтобы обсудить все более подробно.'; } else { adviserDialogue = 'Я думаю, ты знаешь, что делаешь. С этого момента ты можешь работать самостоятельно.'; } } } } } } } function UnlockTier2() { if (_root.tiersUnlocked[1] != true) { _root.tiersUnlocked[1] = true; _root.tier2.locked._alpha = 0; UnlockGeneric(4); } } function UnlockTier3() { if (_root.tiersUnlocked[2] != true) { _root.tiersUnlocked[2] = true; _root.tier3.locked._alpha = 0; UnlockGeneric(17); } } function UnlockGeneric(Unlock) { if (_root.UnlocksGeneric[Unlock][2] != 1) { if (_root.pauseDuringMeet == true && _root.gamePaused != true) { _root.pauseGame(); } _root.cache.data.GameDataUnlocked[Unlock] = 1; _root.UnlocksGeneric[Unlock][2] = 1; _root.unlockpop.gotoAndStop(2); _root.unlockpop.iconOptions.gotoAndStop(1); _root.unlockpop.iconGeneric.gotoAndStop(Unlock + 2); _root.unlockpop.DescriptHeader = 'Разблокировано ' + _root.UnlocksGeneric[Unlock][0]; _root.unlockpop.Descript = _root.UnlocksGeneric[Unlock][1]; } } function UnlockOption(Unlock) { if (_root.optionsTableLocked[Unlock][2] != 1) { if (_root.pauseDuringMeet == true && _root.gamePaused != true) { _root.pauseGame(); } _root.cache.data.OptionDataUnlocked[Unlock] = 1; _root.optionsTableLocked[Unlock][2] = 1; _root.unlockpop.gotoAndStop(2); _root.unlockpop.iconOptions.gotoAndStop(Unlock + 2); _root.unlockpop.iconGeneric.gotoAndStop(1); _root.unlockpop.DescriptHeader = 'Разблокировано ' + _root.optionsTableLocked[Unlock][0]; _root.unlockpop.Descript = _root.optionsTableLocked[Unlock][1] + '\n' + 'Эту опцию можно выбрать в секс-сценах.'; } } function checkDebugCodes() { if (charName == 'Mittsies' && charName == 'Nutville') { newMSG('CHEAT ENABLED: DEBUG MODE'); resources[0][1] = 99999; resources[2][1] = 99999; resources[3][1] = 99999; skill_Architecture = 9999; StatsLeft = 100; } if (charName == 'StaSyaN' && townName == 'Cloprutopia') { newMSG('CHEAT ENABLED: UNLOCK EVERYTHING'); i = 0; while (i < UnlocksGeneric.length) { UnlocksGeneric[i][2] = 1; ++i; } i = 0; while (i < UnlocksGallery.length) { UnlocksGallery[i][1] = 1; ++i; } i = 0; while (i < optionsTableLocked.length) { optionsTableLocked[i][2] = 1; ++i; } } } function displayfps() { _root.Mittsies.FPScounter.text = feeps + '/30 FPS'; feeps = 0; } var gamePaused = false; var camSpeed = 5; var camSpeedBoost = 15; var nodeDisplayName = ''; var nodeDisplayText = ''; var nodeSelected = NaN; var nodeHighlighted = NaN; var mapDepthInitial = 900; var nodeDepthInitial = 1000; var extraDepthInitial = 800; var optionDepthInitial = 2000; var mapDepth = mapDepthInitial; var nodeDepth = nodeDepthInitial; var buildPlacement = 'blank'; var buildCatalog = -1; var resourceCap = new Array(['Битсы', 999999], ['Еда', 100], ['Наука', 999999], ['Камни', 999999], ['LUXURY1', 999999], ['LUXURY2', 999999], ['LUXURY3', 999999], ['LUXURY4', 999999], ['LUXURY5', 999999], ['LUXURY6', 999999]); var resourcePerCycle = new Array(['Битсы', 0], ['Еда', 0], ['Наука', 0], ['Камни', 0], ['LUXURY1', 0], ['LUXURY2', 0], ['LUXURY3', 0], ['LUXURY4', 0], ['LUXURY5', 0], ['LUXURY6', 0]); var funds = 0; var tokens = 0; var bonusPerCycle = new Array(['Битсы', 0], ['Еда', 0], ['Наука', 0], ['Камни', 0], ['LUXURY1', 0], ['LUXURY2', 0], ['LUXURY3', 0], ['LUXURY4', 0], ['LUXURY5', 0], ['LUXURY6', 0]); var population = new Array(['Земнопони', 0], ['Единороги', 0], ['Пегасы', 0]); var strCount = new Array(30); i = 0; while (i < strCount.length) { strCount[i] = new Array(20); j = 0; while (j < strCount[i].length) { strCount[i][j] = 0; ++j; } ++i; } var tiersUnlocked = new Array(true, false, false, false, false); var CurrentAdviser = 0; var charSelected = CurrentAdviser; var tierSelected = 'tier1'; var happinessPerCycle = 0; var resourceHappyCycle = 0; var feedText = 'О, привет!'; var feedText2 = ''; var resourceBits; var resourceFood; var resourceTech; var resourceGems; var resourceCapFood = 0; var happiness = 50; var happinessWhat = new Array(50); i = 0; while (i < 50) { happinessWhat[i] = new Array(0, ''); ++i; } var happinessWhatDisplay = ''; var minHappiness = 0; var maxHappiness = 100; var happinessDisplay = 50; var happinessScore = 0; var environment = 100; var environmentDisplay = 100; var environmentPerCycle = 0; var resourceEcoCycle = 0; var EcoWarning = 0; var TreeCount = 0; var mana = 0; var manaMax = 0; var manaDisplay = int(mana) + ' / ' + manaMax; var love = 1; var loveTotal = 0; var loveDisplay = 0; var loveTotalDisplay = 0; var loveToRank; var loveRank = 1; var loveGrowth = 0.5; var expGrowth = 0.25; var popEarth; var popUnicorn; var popPegasus; var popTotal; var popMax; var popTotalMax; var maxHousing = 0; var maxHousingEarth = 0; var maxHousingPegasus = 0; var maxHousingUnicorn = 0; var basePopHouse = 8; var basePopTreeHouse = 4; var hudInfoToggle = 1; _root.hudMSG.messages.text = ''; _root.HW.messages.text = ''; var tradeCooldown = new Array(0, 0, 0, 0, 0, 0); var clockTime = 4; var clockType = 'День'; var clockDivider = 4; var clock = clockType + ' ' + int(clockTime / clockDivider); townName = String(townName); charName = String(charName); var fadeOutTarget = 'title'; defeated = false; var ascensionLevel = 0; var ascensionLevelDisplay = ''; var ShieldLevel = 0; var ShieldLevelDisplay = ''; var extraLives = 1; var FreeStructure = new Array(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); var factoryBuffLove = 1; var factoryBuffIncome = 1; var loveBuff = 1; var StoryFlags = new Array(30); var landOwned = 0; var PrizeSkillTokens = 500; var sexScene = 'Garden'; var bonusGET = 0; var bonusGET2 = 0; if (difficulty != 1 && difficulty != 2) { difficulty = 1; } var specialistsStats = new Array(['name', 1, '', 0, 0, 0, 0, 0], ['name', 1, '', 0, 0, 0, 0, 0], ['name', 1, '', 0, 0, 0, 0, 0], ['name', 1, '', 0, 0, 0, 0, 0], ['name', 1, '', 0, 0, 0, 0, 0]); var DefenseRating = 0; var DefenseRatingMod = 0; var DefenseRatingDisplay = ''; var DefenseRatingTotal = 0; var EvilData = new Array(0, 0, 0); var EvilForce = 0; var ScoutDecayRate = 0; var ThreatRatingDisplay = ''; var NextAttackDisplay = ''; var Threat = 0; var MaxThreat = 90; var specialistsTotal = 0; var specialistsMax = 5; var perksLeft = 0; var perksOwned = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); var perkChoice = new Array(NaN, NaN, NaN, NaN); var perkList = new Array(); var perkCount = 16; var chipperwait = 0; var trainAmount = 0; var raidChance = 0; var raidCounter = 0; var evilCometh = 0; var EVDT = 0; var EVCT = 0; var EVDT2 = 0; evilForceTest = function (days, ascen) { trace('ВОЗВЫШЕНИЕ ' + ascen + ': СТАРТ'); EVDT = 5; EVCT = 0; EVDT2 = randRange(80, 120); i = 0; while (i <= days) { h = 0; while (h <= 4) { EVDT2 -= 1; EVDT += EVCT / 150; EVDT += randRange(2 + ascen * 2, 3 + ascen * 4); if (i > 100) { EVDT *= 1.004; } ++h; } trace('День ' + i + ', Changeling force = ' + EVDT / 10); if (EVDT2 < 0) { trace('* Invasion on day ' + i); EVDT += randRange(10, 20); EVDT2 = randRange(60, 80); } ++i; } trace('------END------'); trace(' '); }; var roll = 0; var rolls = new Array(0, 0, 0, 0); var fate = 0; var Phrase = ''; var Tempy = 0; var specialistSelected = -1; statBonusCheck(); var showRadiusOnSelect = cache.data.PlayerDataOptions[0]; var autoSave = false; var selectBlanks = cache.data.PlayerDataOptions[2]; var pauseDuringMeet = cache.data.PlayerDataOptions[3]; var deselectRightClick = cache.data.PlayerDataOptions[4]; var lastShownRadius = NaN; var lastShownRadiusCatalog = 0; var gRpops = false; var randomEventsEnabled = false; var DragOnLeftClick = cache.data.PlayerDataOptions[5]; var pauseGameInitially = cache.data.PlayerDataOptions[6]; var renewEdicts = cache.data.PlayerDataOptions[7]; var FutaMode = cache.data.PlayerDataOptions[8]; var EyesReBusy = false; var EyesRe = 0; if (_root.loadGame != true) { newMSG('Основан прекрасный город ' + townName + ' !'); statBonusInitialize(); } var pickedNodes = new Array(); _root.underlay.useHandCursor = false; var keyBreak = -1; var StatsLeftPartial = 0; var showingExtraInfo = false; var fontColor = ''; var MiniScene = 1; var goodToGo = false; var currentlyPopping = false; var prizeDescript = ''; refreshResources(); clearInterval(cycleTimer); clearInterval(cycleTimerBig); var cycleTimer = setInterval(cycle, 2000); var housePopper = 0; var cycleTimerBig = setInterval(cycleBig, 8000); var cycleTimerClear; var clearCode = 0; var clearLerp = 0; var redundant = false; var xMapOffset = 0; var yMapOffset = 0; if (_root.loadGame == false) { checkExtraPostLoad(); } else { i = 0; while (i < traitsOwned.length) { traitsOwned[i] = cache.data.PlayerDataTraitsOwned[i]; ++i; } if (traitsOwned[16] == 1) { SepStretch = 1.5; } } generateMap(newLand[0][0], newLand[0][1], newLand[0][2], newLand[0][3]); var maxZoom = 150; var minZoom = 50; var mouseListener = new Object(); mouseListener.onMouseWheel = function (delta) { if (!_root.hudMSG.hitTest(_xmouse, _ymouse, false)) { if (delta < 0 && _root.world.vcam._yscale < maxZoom || delta > 0 && _root.world.vcam._yscale > minZoom) { Zoomy(delta * -5); } } }; Mouse.addListener(mouseListener); var lastX = NaN; var lastY = NaN; var DragScrollSpeed = 1.5; var DragKeys = new Array(1, 2, 4); if (DragOnLeftClick == false) { DragKeys[0] = 4; } else { DragKeys[0] = 1; } _root.world.onEnterFrame = function () { var v2 = 0; if (Key.isDown(37) || Key.isDown(65)) { if (!_root.world.vcam.hitTest(_root.world.leftborder)) { _root.world.vcam._x -= _root.camSpeed + _root.camSpeedBoost; } } else { ++v2; } if (Key.isDown(39) || Key.isDown(68)) { if (!_root.world.vcam.hitTest(_root.world.rightborder)) { _root.world.vcam._x += _root.camSpeed + _root.camSpeedBoost; } } else { ++v2; } if (Key.isDown(40) || Key.isDown(83)) { if (!_root.world.vcam.hitTest(_root.world.bottomborder)) { _root.world.vcam._y += _root.camSpeed + _root.camSpeedBoost; } } else { ++v2; } if (Key.isDown(38) || Key.isDown(87)) { if (!_root.world.vcam.hitTest(_root.world.topborder)) { _root.world.vcam._y -= _root.camSpeed + _root.camSpeedBoost; } } else { ++v2; } if (v2 == 4) { if (_root.camSpeedBoost > 15) { _root.camSpeedBoost -= 3; } } else { if (_root.camSpeedBoost < 30) { _root.camSpeedBoost += 1; } } if (Key.isDown(DragKeys[0]) || Key.isDown(DragKeys[1]) || Key.isDown(DragKeys[2])) { if (lastX == NaN) { lastX = _xmouse; } if (lastY == NaN) { lastY = _ymouse; } if (_xmouse != lastX) { DragQueen = (lastX - _xmouse) * DragScrollSpeed; if (DragQueen < 0 && !_root.world.vcam.hitTest(_root.world.leftborder)) { _root.world.vcam._x += DragQueen; } else { if (DragQueen > 0 && !_root.world.vcam.hitTest(_root.world.rightborder)) { _root.world.vcam._x += DragQueen; } } } if (_ymouse != lastY) { DragQueen = (lastY - _ymouse) * DragScrollSpeed; if (DragQueen < 0 && !_root.world.vcam.hitTest(_root.world.topborder)) { _root.world.vcam._y += DragQueen; } else { if (DragQueen > 0 && !_root.world.vcam.hitTest(_root.world.bottomborder)) { _root.world.vcam._y += DragQueen; } } } lastX = _xmouse; lastY = _ymouse; } else { lastX = NaN; lastY = NaN; } }; var edictResidentialBuff = new Array('', 'Рост населения', 'Подоходный налог', 'Питание по карточкам', 'Неделя свободы'); var edictLibraryBuff = new Array('', 'Чрезмерная наука', 'Нестабильные опыты', 'Наука любви'); var edictIndustrialBuff = new Array('', 'Удар по земле', 'Оборонные работы', 'Аварийное отключение'); var edictResidentialActive = 0; var edictLibraryActive = 0; var edictIndustrialActive = 0; var edictResidentialTimer = 0; var edictLibraryTimer = 0; var edictIndustrialTimer = 0; var adviserDialogue = ''; var adviserHints = new Array(''); feeps = 0; onEnterFrame = function () { ++feeps; }; clearInterval(intervalID); var intervalID = setInterval(displayfps, 1000); deselectAll(); showExtraInfo(); CheckSpecialists(); showTutorial = cache.data.PlayerData[7]; if (showTutorial == true) { _root.hudInfo.gotoAndStop('help'); cache.data.PlayerData[7] = false; showHints = 0; } if (pauseGameInitially == true) { pauseGame(); } } frame 10 { function fireWeapon(projectileSource, projectileGraphic, projectileLifeMax, projectileSpeed, projectileSpread, projectileMass, projectileScaleMin, projectileScaleMax, projectileInitialAlpha) { var v3 = _root.attachMovie(projectileGraphic, 'shot' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); var v5; var v11; v3._x = projectileSource._x; v3._y = projectileSource._y; pscale = _root.randRange(projectileScaleMin, projectileScaleMax); v3._xscale = pscale; v3._yscale = pscale; v3._alpha = projectileInitialAlpha; v3.projectileLife = 0; v5 = random(projectileSpread) - projectileSpread / 2; projectileAngle = (projectileSource._rotation + v5) * Math.PI / 180; v3.pAn = projectileSource._rotation; v3.newprojectileAngle; v3._rotation = v3.pAn; v3.xMove = Math.cos(projectileAngle) * projectileSpeed; v3.yMove = Math.sin(projectileAngle) * projectileSpeed; v3.onEnterFrame = function () { if (projectileMass > 0) { this.yMove += projectileMass * gravityConstant * this.projectileLife * this.projectileLife / 10; } this._x += this.xMove; this._y += this.yMove; this._alpha = 100 - (this.projectileLife / projectileLifeMax) * 100; this._rotation += 3 - (this.projectileLife / projectileLifeMax) * 3; this._yscale += 1; this._xscale += 1; if (this.projectileLife > projectileLifeMax) { this.removeMovieClip(); } if (projectileLifeMax != 0) { ++this.projectileLife; } }; } var gravityConstant = 0.005; var targethits = 0; gamescale = 100; randRange = function (min, max) { var v1 = Math.floor(Math.random() * (max - min + 1)) + min; return v1; }; mouseListener = new Object(); mouseListener.onMouseDown = function () { mouseClicked = true; }; mouseListener.onMouseUp = function () { mouseClicked = false; }; Mouse.addListener(mouseListener); } movieClip 2352 { } movieClip 2353 { } movieClip 2354 { } movieClip 2355 { } movieClip 2357 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _parent._x = cX - this._x * v4; _parent._y = cY - this._y * v3; _parent._xscale = 100 * v4; _parent._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } this._visible = false; var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } movieClip 2358 { } movieClip 2360 { } instance of movieClip 2360 { onClipEvent (enterFrame) { if (_root.feedText == '') { this._alpha = 0; } else { this._alpha = 100; } } } movieClip 2361 { } instance of movieClip 2361 { onClipEvent (enterFrame) { if (_root.feedText2 == '') { this._alpha = 0; } else { this._alpha = 100; } } } movieClip 2363 { } movieClip 2365 { } movieClip 2368 { } button 2373 { on (release) { _root.pauseGame(); } } movieClip 2375 { frame 1 { stop(); } } movieClip 2381 { } movieClip 2382 { instance of movieClip 2381 { onClipEvent (press) { scrollan = -1; } onClipEvent (release) { scrollan = 0; } onClipEvent (enterFrame) { if (scrollan == -1) { --_parent.messages.scroll; } if (scrollan == 1) { ++_parent.messages.scroll; } } } instance of movieClip 2381 { onClipEvent (press) { scrollan = 1; } onClipEvent (release) { scrollan = 0; } onClipEvent (enterFrame) { if (scrollan == -1) { --_parent.messages.scroll; } if (scrollan == 1) { ++_parent.messages.scroll; } } } } movieClip 2385 { } movieClip 2387 { instance Mask of movieClip 1287 { onClipEvent (enterFrame) { this.gotoAndStop(_root.loveDisplay + 1); } } } instance loveMeter of movieClip 2387 { onClipEvent (rollOver) { _root.feedText2 = 'Магия любви: ' + _root.loveDisplay + '%'; _root.feedText = 'Отображает, сколько Магии любви сделали ваши пони.\rКак только этот измеритель заполнится, ваш ранк вырастет на 1.'; } onClipEvent (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } movieClip 2392 { } movieClip 2395 { } button 2397 { on (release) { _root.deselectAll(); _root.buildCatalog = -1; _root.buildPlacement = 'remove'; a = 0; while (a < 4) { _root.cost[a] = 0; ++a; } } on (rollOver) { _root.feedText = 'Снос здания и возврат 60% от стоимости, включая стоимость улучшений. \r100% возврат, если здание еще строится. Бесплатные здания не дают возврата.'; _root.feedText2 = 'Снести'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } movieClip 2400 { } movieClip 2401 { frame 1 { stop(); } } movieClip 2402 { } movieClip 2403 { frame 1 { stop(); } } movieClip 2404 { } movieClip 2405 { frame 1 { stop(); } } movieClip 2406 { } movieClip 2407 { frame 1 { stop(); } } movieClip 2410 { } movieClip 2411 { } movieClip 2412 { frame 1 { stop(); } } movieClip 2415 { } movieClip 2416 { } movieClip 2417 { frame 1 { stop(); } } movieClip 2418 { } movieClip 2419 { frame 1 { stop(); } } movieClip 2421 { } movieClip 2422 { frame 1 { stop(); } } movieClip 2423 { } movieClip 2424 { frame 1 { stop(); } } movieClip 2425 { } movieClip 2426 { frame 1 { stop(); } } movieClip 2427 { } movieClip 2428 { frame 1 { stop(); } } movieClip 2431 { } movieClip 2432 { } movieClip 2433 { frame 1 { stop(); } } movieClip 2436 { frame 1 { stop(); } } movieClip 2437 { } movieClip 2438 { frame 1 { stop(); } } movieClip 2439 { } movieClip 2440 { frame 1 { stop(); } } movieClip 2442 { } movieClip 2443 { frame 1 { stop(); } } movieClip 2444 { } movieClip 2445 { frame 1 { stop(); } } button 2447 { on (release) { _root.deselectAll(); } } movieClip 2450 { } button 2455 { on (release) { _root.changeMode(0, _root.nodeSelected); } on (rollOver) { _root.feedTextMode(0); } on (rollOut) { _root.feedTextMode(-1); } } button 2456 { on (release) { _root.changeMode(2, _root.nodeSelected); } on (rollOver) { _root.feedTextMode(2); } on (rollOut) { _root.feedTextMode(-1); } } button 2457 { on (release) { _root.changeMode(1, _root.nodeSelected); } on (rollOver) { _root.feedTextMode(1); } on (rollOut) { _root.feedTextMode(-1); } } // unknown tag 88 length 64 button 2460 { on (release) { _root.UpgradeMode(_root.nodeSelected, false); } on (rollOver) { _root.feedTextUpgradeMode(0); } on (rollOut) { _root.feedTextUpgradeMode(-1); } } movieClip 2463 { } movieClip 2464 { } movieClip 2465 { frame 1 { tooltipBuild = new Array(['Построить ' + _root.buildList[0][0] + ': ' + _root.buildList[0][1] + ' битс', 'Дает эффект ближайшим домам и может переключаться между 3 режимами. Дома могут быть под действием только одной городской площади одновременно. Эффект не складывается. Позволяет продавать ресурсы.'], ['Построить ' + _root.buildList[1][0] + ': ' + _root.buildList[1][1] + ' битс, -1 экологии', 'Производит еду и доставляет ближайшим домам. Дома, стоящие вне радиуса магазина или рядом с двумя сразу, будут несчастны.\rУвеличивает вмещение еды на 100. Дома должны быть в радиусе магазина, чтобы получить эффект.'], ['Построить ' + _root.buildList[2][0] + ': ' + _root.buildList[2][1] + ' битс', 'Глобально приносит прибыль (Режим 1), Очки науки (Режим 2) или счастье (Режим 3). Эффект складывается с уменьшением.\rДома в их радиусе приносят Очки науки, в зависимости от режима.'], ['Построить ' + _root.buildList[3][0] + ': ' + _root.buildList[3][1] + ' битс', 'Простой и недорогой дом для земных пони. Приносит прибыль и Магию любви. Вмещает до 8 пони.\rУвеличивает вмещение еды на +10. Может быть улучшен.'], ['Построить ' + _root.buildList[4][0] + ': ' + _root.buildList[4][1] + ' битс, +0.5 экологии', 'Сады, эти украшения города, пробуждают сердца и стимулируют романтические отношения.\rУвеличивает генерацию Магии любви для домов в радиусе в два раза. Немного поднимает экологию.'], ['Построить ' + _root.buildList[5][0] + ': ' + _root.buildList[5][1] + ' битс, -3 экологии', 'Добывает драгоценные камни или золото, чтобы приносить доход. Необходимо 50+ населения для работы.\rДома, стоящие в радиусе карьера, будут огорчены.'], ['Построить ' + _root.buildList[6][0] + ': ' + _root.buildList[6][1] + ' битс, ' + _root.buildList[6][4] + ' камней, -2 экологии', 'Прекрасное место, позволяющее пони расслабиться и оторваться после тяжелого рабочего дня, дающее счастье, приносящее Магию любви или приносит доход, будучи развращенным борделем. Дома могут быть под действием только одной таверны, эффект не складывается.'], ['Построить ' + _root.buildList[7][0] + ': ' + _root.buildList[7][1] + ' битс, ' + _root.buildList[7][4] + ' камней, 3 энергии', 'Улучшенное здание для исследований, требующее источник энергии для работы. Необходимо 3 энергии.\rПриносит Очки науки или восстанавливает экологию, зависит от режима.'], ['Построить ' + _root.buildList[8][0] + ': ' + _root.buildList[8][1] + ' битс', 'Требует несколько дней для созревания, но во время сбора приносит 128 еды в день.\rРядом должен быть магазин для сбора урожая.'], ['Построить ' + _root.buildList[9][0] + ': ' + _root.buildList[9][1] + ' битс, ' + _root.buildList[9][4] + ' камней, +1 экологии', 'Экологически чистый дом для земнопони. Нужно строить в дереве. Приносит доход.\rВмещает до 4 пони. Увеличивает вместимость еды на 5. Не считается деревом для энергостанции.'], ['Построить ' + _root.buildList[10][0] + ': ' + _root.buildList[10][1] + ' битс, ' + _root.buildList[10][4] + ' камней, +X экологии, +X энергии', 'Дерево-энергичная энергостанция. Улучшает экологию и производит энергию за каждое дерево в радиусе. Позволяет работать лабораториям в своем радиусе.\rДома на деревьях за деревья не считаются.'], ['Построить ' + _root.buildList[11][0] + ': ' + _root.buildList[11][1] + ' битс, ' + _root.buildList[11][4] + ' камней, -3 экологии', 'Производит секс-игрушки, давая бонус всем домам. Необходимо более 200 населения для функционирования.\rДома, стоящие в радиусе фабрики, будут недовольны. Эффект фабрик суммируется.'], ['Построить ' + _root.buildList[12][0] + ': ' + _root.buildList[12][1] + ' битс', 'Уникальное здание, позволяющее покупать участки земли.\rСтроить больше одного не имеет смысла.'], ['Построить ' + _root.buildList[13][0] + ': ' + _root.buildList[13][1] + ' битс', 'Наим новых специалистов. Постоянный прирост защиты за каждый дом в радиусе в день.\rНесколько оружейных не дают эффект одному дому.'], ['Построить ' + _root.buildList[14][0] + ': ' + _root.buildList[14][1] + ' битс, ' + _root.buildList[14][4] + ' Камней', 'Финальная защитная мера. Поглощает магию ближайших домов для зарядки щита. \rКаждый дом привязывается только к одному генератору. После зарядки можно применить Возвышение.'], ['Построить ' + _root.buildList[15][0] + ': ' + _root.buildList[15][1] + ' битс, ' + _root.buildList[15][3] + ' Очков науки', 'Обучающий объект. Переводит Очки науки в опыт специалистам (Режим 1) или в ману (Режим 3). Режим 2 ускоряет выработку Очков науки для всех зданий. Дома в их радиусе будут генерировать больше битсов и счастья. Эффект от нескольких академий суммируется.'], []); } frame 1 { p = 0; while (p < 7) { a = _root.hudDynamic['btn' + p]; a.onRelease = function () { randsfx = _root.randRange(0, _root.sfxbankClick.length - 1); _root.playsfx1(_root.sfxbankClick, randsfx, 2); _root.buildCatalog = (this._name.split(''))[3]; _root.deselectAll(); _root.buildPlacement = _root.buildList[_root.buildCatalog][0]; a = 0; while (a < 4) { _root.cost[a] = _root.buildList[_root.buildCatalog][a + 1]; ++a; } _root.hudDynamic.gotoAndStop('buildSelect'); _root.feedText = ''; _root.feedText2 = ''; }; a.onRollOver = function () { if (_root.FreeStructure[int(int((this._name.split(''))[3]))] == 1) { _root.feedText2 = 'Построить ' + _root.buildList[int(int((this._name.split(''))[3]))][0] + ' - БЕСПЛАТНО'; } else { _root.feedText2 = _root.hudDynamic.tooltipBuild[int(int((this._name.split(''))[3]))][0]; } _root.feedText = _root.hudDynamic.tooltipBuild[(this._name.split(''))[3]][1]; _root.hudDynamic['b' + (this._name.split(''))[3]].gotoAndStop(2); }; a.onRollOut = function () { _root.feedText = ''; _root.feedText2 = ''; _root.hudDynamic['b' + (this._name.split(''))[3]].gotoAndStop(1); }; ++p; } } frame 1 { stop(); } frame 2 { p = 0; while (p < 7) { a = _root.hudDynamic['btn' + p]; a.onRelease = function () { randsfx = _root.randRange(0, _root.sfxbankClick.length - 1); _root.playsfx1(_root.sfxbankClick, randsfx, 2); _root.buildCatalog = int(int((this._name.split(''))[3]) + 7); _root.deselectAll(); _root.buildPlacement = _root.buildList[_root.buildCatalog][0]; b = 0; while (b < 4) { _root.cost[b] = _root.buildList[_root.buildCatalog][b + 1]; ++b; } _root.hudDynamic.gotoAndStop('buildSelect'); _root.feedText = ''; _root.feedText2 = ''; }; a.onRollOver = function () { if (_root.FreeStructure[int(int((this._name.split(''))[3]) + 7)] == 1) { _root.feedText2 = 'Построить ' + _root.buildList[int(int((this._name.split(''))[3]) + 7)][0] + ' - БЕСПЛАТНО'; } else { _root.feedText2 = _root.hudDynamic.tooltipBuild[int(int((this._name.split(''))[3]) + 7)][0]; } _root.feedText = _root.hudDynamic.tooltipBuild[int(int((this._name.split(''))[3]) + 7)][1]; _root.hudDynamic['b' + (this._name.split(''))[3]].gotoAndStop(2); }; a.onRollOut = function () { _root.feedText = ''; _root.feedText2 = ''; _root.hudDynamic['b' + (this._name.split(''))[3]].gotoAndStop(1); }; ++p; } } frame 3 { p = 0; while (p < 7) { a = _root.hudDynamic['btn' + p]; a.onRelease = function () { randsfx = _root.randRange(0, _root.sfxbankClick.length - 1); _root.playsfx1(_root.sfxbankClick, randsfx, 2); _root.buildCatalog = int(int((this._name.split(''))[3]) + 14); _root.deselectAll(); _root.buildPlacement = _root.buildList[_root.buildCatalog][0]; b = 0; while (b < 4) { _root.cost[b] = _root.buildList[_root.buildCatalog][b + 1]; ++b; } _root.hudDynamic.gotoAndStop('buildSelect'); _root.feedText = ''; _root.feedText2 = ''; }; a.onRollOver = function () { if (_root.FreeStructure[int(int((this._name.split(''))[3]) + 14)] == 1) { _root.feedText2 = 'Построить ' + _root.buildList[int(int((this._name.split(''))[3]) + 14)][0] + ' - БЕСПЛАТНО'; } else { _root.feedText2 = _root.hudDynamic.tooltipBuild[int(int((this._name.split(''))[3]) + 14)][0]; } _root.feedText = _root.hudDynamic.tooltipBuild[int(int((this._name.split(''))[3]) + 14)][1]; _root.hudDynamic['b' + (this._name.split(''))[3]].gotoAndStop(2); }; a.onRollOut = function () { _root.feedText = ''; _root.feedText2 = ''; _root.hudDynamic['b' + (this._name.split(''))[3]].gotoAndStop(1); }; ++p; } } instance Display of movieClip 2450 { onClipEvent (load) { this.gotoAndStop(int(_root.buildCatalog) + 1); } onClipEvent (enterFrame) { this.gotoAndStop(int(_root.buildCatalog) + 1); } } instance of movieClip 1107 { onClipEvent (press) { } } frame 35 { gotoAndStop(1); } } movieClip 2468 { } movieClip 2471 { } movieClip 2474 { } movieClip 2477 { } movieClip 2480 { } movieClip 2484 { } movieClip 2485 { } movieClip 2488 { } movieClip 2489 { } instance happyWheel of movieClip 2489 { onClipEvent (release) { _root.HW.nextFrame(); } onClipEvent (enterFrame) { _root.happinessDisplay = int(_root.happiness); this.gotoAndStop(_root.happinessDisplay + 1); } onClipEvent (rollOver) { _root.feedText2 = 'Рейтинг счастья: ' + _root.happinessDisplay + '/' + _root.maxHappiness + ' ' + _root.happinessScore; _root.feedText = 'Это общая оценка для всего города. Если оно упадет слишком низко, то пони уйдут.\rТекущий рейтинг счастья: ' + _root.happinessDisplay + '. '; if (_root.happiness >= 110) { _root.feedText += 'Ваши пони просто на седьмом небе!'; } else { if (_root.happiness >= 100) { _root.feedText += 'Ваши пони в абсолятном восторге!'; } else { if (_root.happiness >= 85) { _root.feedText += 'Ваши пони необычайно счастливы'; } else { if (_root.happiness >= 70) { _root.feedText += 'Ваши пони достаточно веселы.'; } else { if (_root.happiness >= 45) { _root.feedText += 'Ваши пони довольны.'; } else { if (_root.happiness >= 30) { _root.feedText += 'Ваши пони ччем-то раздражены.'; } else { if (_root.happiness >= 10) { _root.feedText += 'Ваши пони очень недовольны.'; } else { if (_root.happiness >= 0) { _root.feedText += 'Ваши пони несчастны.'; } } } } } } } } } onClipEvent (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } movieClip 2492 { } movieClip 2504 { } instance tier1 of movieClip 2504 { onClipEvent (release) { if (_root.tiersUnlocked[0] == true) { _root.hudDynamic.gotoAndStop('tier1'); _root.tierSelected = 'tier1'; } } onClipEvent (rollOver) { _root.feedText2 = 'Здания 1-го уровня'; _root.feedText = 'Основные здания для размещения земных пони.'; } onClipEvent (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } movieClip 2507 { } movieClip 2508 { } instance tier2 of movieClip 2508 { onClipEvent (release) { if (_root.tiersUnlocked[1] == true) { _root.hudDynamic.gotoAndStop('tier2'); _root.tierSelected = 'tier2'; } } onClipEvent (rollOver) { if (_root.tiersUnlocked[1] == true) { _root.feedText2 = 'Здания второго уровня'; _root.feedText = 'Улучшенные здания для размещения земных пони.'; } else { _root.feedText2 = 'Закрыто (нужна таверна)'; _root.feedText = 'У вас нет доступа к этим зданиям.'; } } onClipEvent (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } movieClip 2510 { } instance tier3 of movieClip 2510 { onClipEvent (release) { if (_root.tiersUnlocked[2] == true) { _root.hudDynamic.gotoAndStop('tier3'); _root.tierSelected = 'tier3'; } } onClipEvent (rollOver) { if (_root.tiersUnlocked[2] == true) { _root.feedText2 = 'Здания 3-го уровня'; _root.feedText = 'Очень улучшенные здания.'; } else { _root.feedText2 = 'Закрыто (нужна фабрика)'; _root.feedText = 'У вас нет доступа к этим зданиям.'; } } onClipEvent (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } movieClip 2511 { } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Уровень Магии любви: ' + _root.loveRank; _root.feedText = 'Уровень Магии любви.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { _root.deselectAll(); } } } movieClip 2514 { } instance projspawner2 of movieClip 2514 { onClipEvent (load) { var shottime = 0; var shotinterval = 1; var shotvariety = 1; var aimcomp = 0; var levelBurst = 0; var levelBurstMAX = levelBurst; var levelDeBurst = 0; var levelBurstTime = 9; var burstComplexity = 3; } onClipEvent (enterFrame) { if (levelBurst > 0) { combo = 0; while (combo <= burstComplexity) { wombo = 0; while (wombo <= 1) { shottime += _root.randRange(1, shotvariety); if (shottime > shotinterval) { _root.fireWeapon(this, 'sparklePop', 75, 4, 10, 2.25, 100, 150, int((levelBurst / levelBurstMAX) * 100)); shottime = 0; } this._rotation += 10; ++wombo; } wombo = 0; while (wombo <= 2) { shottime += _root.randRange(1, shotvariety); if (shottime > shotinterval) { _root.fireWeapon(this, 'sparklePop', 75, 7, 40, 3.5, 50, 70, int((levelBurst / 12) * 100)); shottime = 0; } this._rotation += 6; ++wombo; } ++combo; } --levelBurst; ++levelDeBurst; _root.levelUpStat._alpha = -50 + (levelDeBurst / levelBurstMAX) * 150; } } } movieClip 2516 { } movieClip 2517 { } button 2518 { on (rollOver) { _root.feedText2 = 'Новый уровень'; _root.feedText = 'У вас есть неиспользованные Очки навыков.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } on (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { if (_root.hudInfoToggle == 2) { _root.deselectAll(); } else { _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } } } } movieClip 2521 { } movieClip 2522 { } movieClip 2524 { } instance levelUpStat of movieClip 2524 { onClipEvent (load) { if (_root.StatsLeft > 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.StatsLeft > 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = _root.resources[0][0] + ': ' + _root.resourceBits; _root.feedText = 'Битсы - это те монетки, что нужны для финансирования исследований и зданий.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { _root.deselectAll(); } } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = _root.resources[1][0] + ': ' + _root.resourceFood; _root.feedText = 'Еда нужна, что держать ваших пони довольными и с полными животиками.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { _root.deselectAll(); } } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = _root.resources[2][0] + ': ' + _root.resourceTech; _root.feedText = 'Очки науки используются для исследований и улучшений.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 3; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { if (_root.hudInfoToggle == 3) { _root.deselectAll(); } else { _root.hudInfoToggle = 3; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } } } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = _root.resources[3][0] + ': ' + _root.resourceGems; _root.feedText = 'Камни - это дорогой ресурс для разных вещей.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { _root.deselectAll(); } } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Всего населения: ' + _root.popTotal + ' / ' + _root.popMax; _root.feedText = 'Жители - основа любого города!'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { _root.deselectAll(); } } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Времени прошло'; _root.feedText = 'Вот этот день сейчас в игре.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { _root.deselectAll(); } } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Очки экологии: ' + _root.environmentScore; _root.feedText = 'Деревья увеличивают их на 1, но большинство зданий уменьшает их. Чем дольше это значение положительно, тем лучше природе.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { _root.deselectAll(); } } } movieClip 2530 { } movieClip 2532 { } movieClip 2533 { frame 1 { stop(); } frame 18 { stop(); } instance of movieClip 2532 { onClipEvent (release) { _root.hudInfo.gotoAndStop('randomEvent'); } onClipEvent (rollOver) { _root.feedText2 = 'Event!'; _root.feedText = 'There\'s an important event awaiting your decision.'; } onClipEvent (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } } movieClip 2539 { } movieClip 2542 { } movieClip 2545 { instance of movieClip 2539 { onClipEvent (load) { function updateText() { _root.hudInfo.descript.html = true; var v2 = ''; i = 0; while (i < _root.upgradeStore.length - 1) { if (_root.upgradeStoreRank < i) { v2 += '<font color = \'#999999\'>'; } else { if (_root.upgradeStoreRank == i) { v2 += '<font color = \'#C9C9C9\'>'; } else { v2 += '<font color = \'#ffcc00\'>'; } } v2 += 'Уровень ' + (i + 1) + ': ' + _root.upgradeStore[i][0] + ' Науки - ' + _root.upgradeStore[i][1] + ': ' + _root.upgradeStore[i][2]; v2 += '</font>\r'; _root.hudInfo.descript.htmlText = v2; ++i; } } if (_root.upgradeStore[_root.upgradeStoreRank][0] != NaN) { _parent.b1.gotoAndStop(1); } else { _parent.b1.gotoAndStop(4); } } onClipEvent (rollOver) { if (_root.upgradeStore[_root.upgradeStoreRank][0] != NaN) { _root.feedText2 = 'Улучшить магазины до уровня ' + (_root.upgradeStoreRank + 1) + ' - ' + _root.upgradeStore[_root.upgradeStoreRank][0] + ' Очков науки'; _root.feedText = _root.upgradeStore[_root.upgradeStoreRank][1] + ': ' + _root.upgradeStore[_root.upgradeStoreRank][2]; _parent.b1.gotoAndStop(2); } else { _root.feedText2 = 'Магазины на максимальном уровне'; _root.feedText = 'Нельзя еще улучшить.'; } updateText(); } onClipEvent (rollOut) { if (_root.upgradeStore[_root.upgradeStoreRank][0] != NaN) { _parent.b1.gotoAndStop(1); } _root.feedText2 = ''; _root.feedText = ''; _root.hudInfo.descript.htmlText = ''; } onClipEvent (press) { if (_root.upgradeStore[_root.upgradeStoreRank][0] != NaN) { _parent.b1.gotoAndStop(2); if (_root.resources[2][1] >= _root.upgradeStore[_root.upgradeStoreRank][0]) { _root.resources[2][1] -= _root.upgradeStore[_root.upgradeStoreRank][0]; ++_root.upgradeStoreRank; _root.refreshResources(); updateText(); _root.checkUpgrades(); if (_root.upgradeStore[_root.upgradeStoreRank][0] != NaN) { _root.upgradeStoreCost = _root.upgradeStore[_root.upgradeStoreRank][0]; _root.feedText2 = 'Улучшить магазины до уровня ' + (_root.upgradeStoreRank + 1) + ' - ' + _root.upgradeStore[_root.upgradeStoreRank][0] + ' Очков науки'; _root.feedText = _root.upgradeStore[_root.upgradeStoreRank][1] + ': ' + _root.upgradeStore[_root.upgradeStoreRank][2]; } else { _parent.b1.gotoAndStop(4); _root.upgradeStoreCost = 'MAX'; _root.feedText2 = 'Магазины на максимальном уровне'; _root.feedText = 'Нельзя еще улучшить.'; } } else { _root.feedText2 = ''; _root.feedText = 'Недостаточно Очков науки для улучшения.'; } } } onClipEvent (releaseOutside) { if (_root.upgradeStore[_root.upgradeStoreRank][0] != NaN) { _parent.b1.gotoAndStop(1); } } } } movieClip 2547 { } movieClip 2550 { instance of movieClip 2539 { onClipEvent (load) { function updateText() { _root.hudInfo.descript.html = true; var v2 = ''; i = 0; while (i < _root.upgradeLibrary.length - 1) { if (_root.upgradeLibraryRank < i) { v2 += '<font color = \'#999999\'>'; } else { if (_root.upgradeLibraryRank == i) { v2 += '<font color = \'#C9C9C9\'>'; } else { v2 += '<font color = \'#ffcc00\'>'; } } v2 += 'Уровень ' + (i + 1) + ': ' + _root.upgradeLibrary[i][0] + ' науки - ' + _root.upgradeLibrary[i][1] + ': ' + _root.upgradeLibrary[i][2]; v2 += '</font>\r'; _root.hudInfo.descript.htmlText = v2; ++i; } } if (_root.upgradeLibrary[_root.upgradeLibraryRank][0] != NaN) { _parent.b1.gotoAndStop(1); } else { _parent.b1.gotoAndStop(4); } } onClipEvent (rollOver) { if (_root.upgradeLibrary[_root.upgradeLibraryRank][0] != NaN) { _root.feedText2 = 'Улучшить библиотеки до уровня ' + (_root.upgradeLibraryRank + 1) + ' - ' + _root.upgradeLibrary[_root.upgradeLibraryRank][0] + ' Очков науки'; _root.feedText = _root.upgradeLibrary[_root.upgradeLibraryRank][1] + ': ' + _root.upgradeLibrary[_root.upgradeLibraryRank][2]; _parent.b1.gotoAndStop(2); } else { _root.feedText2 = 'Библиотеки на максимальном уровне'; _root.feedText = 'Нельзя еще улучшить.'; } updateText(); } onClipEvent (rollOut) { if (_root.upgradeLibrary[_root.upgradeLibraryRank][0] != NaN) { _parent.b1.gotoAndStop(1); } _root.feedText2 = ''; _root.feedText = ''; _root.hudInfo.descript.htmlText = ''; } onClipEvent (press) { if (_root.upgradeLibrary[_root.upgradeLibraryRank][0] != NaN) { _parent.b1.gotoAndStop(2); if (_root.resources[2][1] >= _root.upgradeLibrary[_root.upgradeLibraryRank][0]) { _root.resources[2][1] -= _root.upgradeLibrary[_root.upgradeLibraryRank][0]; ++_root.upgradeLibraryRank; _root.refreshResources(); updateText(); _root.checkUpgrades(); if (_root.upgradeLibrary[_root.upgradeLibraryRank][0] != NaN) { _root.upgradeLibraryCost = _root.upgradeLibrary[_root.upgradeLibraryRank][0]; _root.feedText2 = 'Улучшить библиотеки до уровня ' + (_root.upgradeLibraryRank + 1) + ' - ' + _root.upgradeLibrary[_root.upgradeLibraryRank][0] + ' Очков науки'; _root.feedText = _root.upgradeLibrary[_root.upgradeLibraryRank][1] + ': ' + _root.upgradeLibrary[_root.upgradeLibraryRank][2]; } else { _parent.b1.gotoAndStop(4); _root.upgradeLibraryCost = 'MAX'; _root.feedText2 = 'Библотеки на максимальном уровне'; _root.feedText = 'Нельзя еще улучшить.'; } } else { _root.feedText2 = ''; _root.feedText = 'Недостаточно очков науки.'; } } } onClipEvent (releaseOutside) { if (_root.upgradeLibrary[_root.upgradeLibraryRank][0] != NaN) { _parent.b1.gotoAndStop(1); } } } } movieClip 2552 { } movieClip 2555 { instance of movieClip 2539 { onClipEvent (load) { function updateText() { _root.hudInfo.descript.html = true; var v2 = ''; i = 0; while (i < _root.upgradeTechLab.length - 1) { if (_root.upgradeTechLabRank < i) { v2 += '<font color = \'#999999\'>'; } else { if (_root.upgradeTechLabRank == i) { v2 += '<font color = \'#C9C9C9\'>'; } else { v2 += '<font color = \'#ffcc00\'>'; } } v2 += 'Уровень ' + (i + 1) + ': ' + _root.upgradeTechLab[i][0] + ' науки - ' + _root.upgradeTechLab[i][1] + ': ' + _root.upgradeTechLab[i][2]; v2 += '</font>\r'; _root.hudInfo.descript.htmlText = v2; ++i; } } if (_root.upgradeTechLab[_root.upgradeTechLabRank][0] != NaN) { _parent.b1.gotoAndStop(1); } else { _parent.b1.gotoAndStop(4); } } onClipEvent (rollOver) { if (_root.upgradeTechLab[_root.upgradeTechLabRank][0] != NaN) { _root.feedText2 = 'Улучшить лаборатории до уровня ' + (_root.upgradeTechLabRank + 1) + ' - ' + _root.upgradeTechLab[_root.upgradeTechLabRank][0] + ' Очков науки'; _root.feedText = _root.upgradeTechLab[_root.upgradeTechLabRank][1] + ': ' + _root.upgradeTechLab[_root.upgradeTechLabRank][2]; _parent.b1.gotoAndStop(2); } else { _root.feedText2 = 'Лаборатории на максимальном уровне'; _root.feedText = 'Нельзя еще улучшить.'; } updateText(); } onClipEvent (rollOut) { if (_root.upgradeTechLab[_root.upgradeTechLabRank][0] != NaN) { _parent.b1.gotoAndStop(1); } _root.feedText2 = ''; _root.feedText = ''; _root.hudInfo.descript.htmlText = ''; } onClipEvent (press) { if (_root.upgradeTechLab[_root.upgradeTechLabRank][0] != NaN) { _parent.b1.gotoAndStop(2); if (_root.resources[2][1] >= _root.upgradeTechLab[_root.upgradeTechLabRank][0]) { _root.resources[2][1] -= _root.upgradeTechLab[_root.upgradeTechLabRank][0]; ++_root.upgradeTechLabRank; _root.refreshResources(); updateText(); _root.checkUpgrades(); if (_root.upgradeTechLab[_root.upgradeTechLabRank][0] != NaN) { _root.upgradeTechLabCost = _root.upgradeTechLab[_root.upgradeTechLabRank][0]; _root.feedText2 = 'Улучшить лаборатории до уровня ' + (_root.upgradeTechLabRank + 1) + ' - ' + _root.upgradeTechLab[_root.upgradeTechLabRank][0] + ' Очков науки'; _root.feedText = _root.upgradeTechLab[_root.upgradeTechLabRank][1] + ': ' + _root.upgradeTechLab[_root.upgradeTechLabRank][2]; } else { _parent.b1.gotoAndStop(4); _root.upgradeTechLabCost = 'MAX'; _root.feedText2 = 'Лаборатории на максимальном уровне'; _root.feedText = 'Нельзя еще улучшить.'; } } else { _root.feedText2 = ''; _root.feedText = 'Недостаточно битс для улучшения.'; } } } onClipEvent (releaseOutside) { if (_root.upgradeTechLab[_root.upgradeTechLabRank][0] != NaN) { _parent.b1.gotoAndStop(1); } } } } movieClip 2559 { } movieClip 2560 { } movieClip 2562 { } movieClip 2563 { } movieClip 2566 { instance of movieClip 2539 { onClipEvent (load) { function updateText() { _root.hudInfo.descript.html = true; var v2 = ''; i = 0; while (i < _root.upgradeMoreTiles.length - 1) { if (_root.upgradeMoreTilesRank < i) { v2 += '<font color = \'#999999\'>'; } else { if (_root.upgradeMoreTilesRank == i) { v2 += '<font color = \'#C9C9C9\'>'; } else { v2 += '<font color = \'#ffcc00\'>'; } } v2 += 'Уровень ' + (i + 1) + ': ' + _root.upgradeMoreTiles[i][0] + ' битс - ' + _root.upgradeMoreTiles[i][1] + ': ' + _root.upgradeMoreTiles[i][2]; v2 += '</font>\r'; _root.hudInfo.descript.htmlText = v2; ++i; } } if (_root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] != NaN) { _parent.b1.gotoAndStop(1); } else { _parent.b1.gotoAndStop(4); } } onClipEvent (rollOver) { if (_root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] != NaN) { _root.feedText2 = 'Улучшить пространство до уровня ' + (_root.upgradeMoreTilesRank + 1) + ' - ' + _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] + ' битс'; _root.feedText = _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][1] + ': ' + _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][2]; _parent.b1.gotoAndStop(2); } else { _root.feedText2 = 'Пространство на максимальном уровне'; _root.feedText = 'Нельзя еще улучшать.'; } updateText(); } onClipEvent (rollOut) { if (_root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] != NaN) { _parent.b1.gotoAndStop(1); } _root.feedText2 = ''; _root.feedText = ''; _root.hudInfo.descript.htmlText = ''; } onClipEvent (press) { if (_root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] != NaN) { _parent.b1.gotoAndStop(2); if (_root.resources[0][1] >= _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0]) { _root.resources[0][1] -= _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0]; ++_root.upgradeMoreTilesRank; _root.refreshResources(); updateText(); ++_root.landOwned; if (_root.newLand[_root.landOwned][0] != NaN) { _root.generateMap(_root.newLand[_root.landOwned][0], _root.newLand[_root.landOwned][1], _root.newLand[_root.landOwned][2], _root.newLand[_root.landOwned][3]); } if (_root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] != NaN) { _root.upgradeMoreTilesCost = _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0]; _root.feedText2 = 'Улучшить пространство до уровня ' + (_root.upgradeMoreTilesRank + 1) + ' - ' + _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] + ' битс'; _root.feedText = _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][1] + ': ' + _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][2]; } else { _parent.b1.gotoAndStop(4); _root.upgradeMoreTilesCost = 'MAX'; _root.feedText2 = 'Пространство на максимальном уровне'; _root.feedText = 'Нельзя еще улучшать.'; } } else { _root.feedText2 = ''; _root.feedText = 'Недостаточно битс для покупки участков.'; } } } onClipEvent (releaseOutside) { if (_root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] != NaN) { _parent.b1.gotoAndStop(1); } } } } // unknown tag 88 length 208 movieClip 2571 { frame 2 { stop(); } instance of movieClip 2539 { onClipEvent (load) { function updateText() { _root.hudInfo.descript.html = true; var v2 = ''; i = 0; while (i < _root.upgradeHireSpecialist.length - 1) { if (_root.upgradeHireSpecialistRank < i) { v2 += '<font color = \'#999999\'>'; } else { if (_root.upgradeHireSpecialistRank == i) { v2 += '<font color = \'#C9C9C9\'>'; } else { v2 += '<font color = \'#ffcc00\'>'; } } v2 += 'Hire Specialist: ' + _root.upgradeHireSpecialist[i][0] + ' Bits - ' + _root.upgradeHireSpecialist[i][1] + ': ' + _root.upgradeHireSpecialist[i][2]; v2 += '</font>\r'; _root.hudInfo.descript.htmlText = v2; if (_root.upgradeHireSpecialistRank == _root.specialistsMax) { _root.upgradeHireSpecialistCost = 'MAX'; } ++i; } } if (_root.upgradeHireSpecialistRank == _root.specialistsMax) { _root.upgradeHireSpecialistCost = 'MAX'; } } onClipEvent (rollOver) { if (_root.upgradeHireSpecialistRank != _root.specialistsMax) { _root.feedText2 = 'Hire Specialist - ' + _root.upgradeHireSpecialist[_root.upgradeHireSpecialistRank][0] + ' Bits'; _root.feedText = _root.upgradeHireSpecialist[_root.upgradeHireSpecialistRank][1] + ': ' + _root.upgradeHireSpecialist[_root.upgradeHireSpecialistRank][2]; _parent.b1.gotoAndStop(2); } else { _root.feedText2 = 'Maximum number of Specialists owned.'; _root.feedText = 'Cannot purchase any additional Specialists.'; } updateText(); } onClipEvent (rollOut) { _root.feedText2 = ''; _root.feedText = ''; _root.hudInfo.descript.htmlText = ''; } onClipEvent (press) { if (_root.upgradeHireSpecialistRank != _root.specialistsMax) { if (_root.resources[0][1] >= _root.upgradeHireSpecialist[_root.upgradeHireSpecialistRank][0]) { _root.resources[0][1] -= _root.upgradeHireSpecialist[_root.upgradeHireSpecialistRank][0]; ++_root.upgradeHireSpecialistRank; _root.refreshResources(); updateText(); _root.HireSpecialist(); if (_root.upgradeHireSpecialistRank != _root.specialistsMax) { _root.upgradeHireSpecialistCost = _root.upgradeHireSpecialist[_root.upgradeHireSpecialistRank][0]; _root.feedText2 = 'Hire Specialist - ' + _root.upgradeHireSpecialist[_root.upgradeHireSpecialistRank][0] + ' Bits'; _root.feedText = _root.upgradeHireSpecialist[_root.upgradeHireSpecialistRank][1] + ': ' + _root.upgradeHireSpecialist[_root.upgradeHireSpecialistRank][2]; } else { _parent.b1.gotoAndStop(4); _root.upgradeHireSpecialistCost = 'MAX'; _root.feedText2 = 'Maximum number of Specialists owned.'; _root.feedText = 'Cannot purchase any additional Specialists.'; } } else { _root.feedText2 = ''; _root.feedText = 'Insufficient Bits to hire additional Specialists.'; } } else { _root.feedText2 = 'Maximum number of Specialists owned.'; _root.feedText = 'Cannot purchase any additional Specialists.'; } } } instance of movieClip 2539 { onClipEvent (rollOver) { _root.feedText2 = 'Activate Ascension'; _root.feedText = 'Once shields are at 100% you can activate the Ascension process.'; } onClipEvent (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } onClipEvent (press) { if (_root.ShieldLevel >= 100) { _root.hudInfo.gotoAndStop('ascend'); } else { _root.feedText2 = 'Requires 100% Shield.'; _root.feedText = 'Cannot Ascend until shield is fully activated.'; } } } } movieClip 2592 { } movieClip 2598 { } button 2601 { on (release) { gotoAndStop(1); _root.deselectAll(); _root.hudInfo.gotoAndStop('fadeScene'); _root.NextScene = 'Garden'; _root.feedText2 = ''; _root.feedText = ''; } on (rollOver) { _root.feedText2 = 'Встретить советника'; _root.feedText = 'Встретиться здесь с советником.'; } on (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } button 2603 { on (release) { gotoAndStop(1); _root.charSelected = _root.CurrentAdviser; _root.deselectAll(); _root.fader.gotoAndPlay('fadeOut'); _root.fadeOutTarget = 'sex'; _root.sexScene = 'garden'; _root.feedText2 = ''; _root.feedText = ''; } on (rollOver) { _root.feedText2 = 'Клоп-сцена в саду'; _root.feedText = 'Быстрый доступ к интерактивной секс-сцене в саду.'; } on (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } button 2605 { on (release) { gotoAndStop(1); _root.deselectAll(); _root.hudInfo.gotoAndStop('fadeScene'); _root.NextScene = 'Tavern'; _root.feedText2 = ''; _root.feedText = ''; } on (rollOver) { _root.feedText2 = 'Посетить таверну'; _root.feedText = 'Встретиться здесь с советником.'; } on (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } movieClip 2607 { frame 1 { stop(); } frame 2 { var marketpriceBuy1 = _root.tradingPrices[0][1] + ' for $' + _root.tradingPrices[0][4]; var marketpriceSell1 = _root.tradingPrices[0][7] + ' for $' + _root.tradingPrices[0][10]; var marketpriceBuy2 = _root.tradingPrices[1][1] + ' for $' + _root.tradingPrices[1][4]; var marketpriceSell2 = _root.tradingPrices[1][7] + ' for $' + _root.tradingPrices[1][10]; gotoAndStop(2); a = this.b1; a.onRelease = function () { if (_root.resources[0][1] >= _root.tradingPrices[0][4]) { if (_root.resources[1][1] + _root.tradingPrices[0][1] <= _root.resourceCap[1][1]) { _root.resources[0][1] -= _root.tradingPrices[0][4]; _root.resources[1][1] += _root.tradingPrices[0][1]; _root.tradeCooldown[0] -= 5; if (_root.traitsOwned[16] == 1) { _root.happiness += _root.randRange(2, 8); } _root.refreshResources(); randsfx = _root.randRange(0, _root.sfxbankCoin.length - 1); _root.playsfx1(_root.sfxbankCoin, randsfx, 1); _root.updateHudCard(_root.nodeSelected); _root.showExtraInfo(); } else { _root.feedText = 'Not enough Storage Capacity to make this trade.'; _root.feedText2 = ''; } } else { _root.feedText = 'Not enough Bits to trade for this.'; _root.feedText2 = ''; } }; a.onRollOver = function () { _root.feedText2 = 'Buy Food'; _root.feedText = 'Exchange Bits for Food based on the current market price.'; }; a.onRollOut = function () { _root.feedText2 = ''; _root.feedText = ''; }; a = this.b2; a.onRelease = function () { if (_root.resources[0][1] >= _root.tradingPrices[1][4]) { if (_root.resources[3][1] + _root.tradingPrices[1][1] <= _root.resourceCap[1][1]) { _root.resources[0][1] -= _root.tradingPrices[1][4]; _root.resources[3][1] += _root.tradingPrices[1][1]; _root.tradeCooldown[0] -= 5; if (_root.traitsOwned[16] == 1) { _root.happiness += _root.randRange(12, 20); } _root.refreshResources(); randsfx = _root.randRange(0, _root.sfxbankCoin.length - 1); _root.playsfx1(_root.sfxbankCoin, randsfx, 1); _root.updateHudCard(_root.nodeSelected); _root.showExtraInfo(); } else { _root.feedText = 'Not enough Storage Capacity to make this trade.'; _root.feedText2 = ''; } } else { _root.feedText = 'Not enough Bits to trade for this.'; _root.feedText2 = ''; } }; a.onRollOver = function () { _root.feedText2 = 'Buy Gems'; _root.feedText = 'Exchange Bits for Gems based on the current market price.'; }; a.onRollOut = function () { _root.feedText2 = ''; _root.feedText = ''; }; a = this.s1; a.onRelease = function () { if (_root.resources[1][1] >= _root.tradingPrices[0][7]) { _root.resources[0][1] += _root.tradingPrices[0][10]; _root.resources[1][1] -= _root.tradingPrices[0][7]; _root.tradeCooldown[0] -= 5; if (_root.traitsOwned[16] == 1) { _root.happiness += 2; } _root.refreshResources(); randsfx = _root.randRange(0, _root.sfxbankCoin.length - 1); _root.playsfx1(_root.sfxbankCoin, randsfx, 1); _root.updateHudCard(_root.nodeSelected); _root.showExtraInfo(); } else { _root.feedText = 'Not enough Food to trade for this.'; _root.feedText2 = ''; } }; a.onRollOver = function () { _root.feedText2 = 'Sell Food'; _root.feedText = 'Exchange Food for Bits based on the current market price.'; }; a.onRollOut = function () { _root.feedText2 = ''; _root.feedText = ''; }; a = this.s2; a.onRelease = function () { if (_root.resources[3][1] >= _root.tradingPrices[1][7]) { _root.resources[0][1] += _root.tradingPrices[1][10]; _root.resources[3][1] -= _root.tradingPrices[1][7]; _root.tradeCooldown[0] -= 5; if (_root.traitsOwned[16] == 1) { _root.happiness += 2; } _root.refreshResources(); randsfx = _root.randRange(0, _root.sfxbankCoin.length - 1); _root.playsfx1(_root.sfxbankCoin, randsfx, 1); _root.updateHudCard(_root.nodeSelected); _root.showExtraInfo(); } else { _root.feedText = 'Not enough Gems to trade for this.'; _root.feedText2 = ''; } }; a.onRollOver = function () { _root.feedText2 = 'Sell Gems'; _root.feedText = 'Exchange Gems for Bits based on the current market price.'; }; a.onRollOut = function () { _root.feedText2 = ''; _root.feedText = ''; }; } instance of movieClip 2598 { onClipEvent (load) { this.useHandCursor = false; } onClipEvent (press) { } } frame 6 { if (_root.UnlocksGeneric[0][2] == 1) { gotoAndStop('Garden2'); } } } movieClip 2609 { frame 2 { stop(); } } movieClip 2610 { frame 12 { _root.updateHudCard(_root.nodeSelected); } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Единороги: ' + _root.popUnicorn; _root.feedText = 'Столько единорогов живет в вашем городе.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { _root.deselectAll(); } } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Пегасы: ' + _root.popPegasus; _root.feedText = 'Столько пегасов живет в вашем городе.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { _root.deselectAll(); } } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Земные пони: ' + _root.popEarth; _root.feedText = 'Столько земных пони живет в вашем городе.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { _root.deselectAll(); } } } movieClip 2614 { } instance sfxplayer1 of movieClip 2614 { onClipEvent (load) { sfx = new Sound(this); } } instance sfxplayer2 of movieClip 2614 { onClipEvent (load) { sfx = new Sound(this); } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Рейтинг защиты: ' + _root.DefenseRatingTotal; _root.feedText = 'Чтобы выдержать атаки чейнжлингов без потерь, город должен иметь хорошую защиту.\rЗащита зависит от воли, числа деревьев и специалистов.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 6; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { if (_root.hudInfoToggle == 6) { _root.deselectAll(); } else { _root.hudInfoToggle = 6; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } } } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Мана'; _root.feedText = 'Мана используется для активации способностей советника.\rЕсли город полностью счастлив, то 10% от избыточного счастья переходит в ману.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { _root.deselectAll(); } } } button 2619 { on (release) { _root.pauseGame(); } on (rollOver) { _root.feedText2 = 'Пауза'; _root.feedText = 'Остановка все действий в игре, если вам нужен перерыв, или хотите распланировать город.\rВ это время вы можете выполнять действия, строить здания, сменять режимы и проч.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } button 2624 { on (rollOver) { _root.feedText2 = 'Улучшения'; _root.feedText = 'Список доступных улучшений для вашего города.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } on (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 3; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { if (_root.hudInfoToggle == 3) { _root.deselectAll(); } else { _root.hudInfoToggle = 3; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } } } } button 2627 { on (rollOver) { _root.feedText2 = 'Статистика'; _root.feedText = 'Быстрый просмотр населения и ресурсов.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } on (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { if (_root.hudInfoToggle == 2) { _root.deselectAll(); } else { _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } } } } button 2630 { on (rollOver) { _root.feedText2 = 'Опции'; _root.feedText = 'Настроить игру.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } on (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 10; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { if (_root.hudInfoToggle == 10) { _root.deselectAll(); } else { _root.hudInfoToggle = 10; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } } } } movieClip 2633 { } button 2635 { on (rollOver) { _root.feedText2 = 'Указы'; _root.feedText = 'Список доступных указов, которыми можно задавать различные эффекты.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } on (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 4; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { if (_root.hudInfoToggle == 4) { _root.deselectAll(); } else { _root.hudInfoToggle = 4; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } } } } button 2638 { on (rollOver) { _root.feedText2 = 'Доступное'; _root.feedText = 'Все, что было разблокировано во время игры.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } on (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 5; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { if (_root.hudInfoToggle == 5) { _root.deselectAll(); } else { _root.hudInfoToggle = 5; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } } } } button 2639 { on (rollOver) { _root.feedText2 = 'Защита'; _root.feedText = 'Управление военной частью города.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } on (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 6; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { if (_root.hudInfoToggle == 6) { _root.deselectAll(); } else { _root.hudInfoToggle = 6; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } } } } button 2640 { on (rollOver) { _root.feedText2 = 'Приближение'; _root.feedText = 'Приблизить камеру.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } on (release) { _root.Zoomy(-5); } } button 2641 { on (rollOver) { _root.feedText2 = 'Отдаление'; _root.feedText = 'Отдалить камеру.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } on (release) { _root.Zoomy(5); } } movieClip 2643 { } button 2646 { on (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 11; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { if (_root.hudInfoToggle == 11) { _root.deselectAll(); } else { _root.hudInfoToggle = 11; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } } } on (rollOver) { _root.feedText2 = 'Игровое меню'; _root.feedText = 'Доступ к меню, где можно сохраниться, посмотреть обучение и проч.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } movieClip 2651 { } movieClip 2653 { } button 2654 { on (release) { _root.HW.gotoAndStop(1); } } movieClip 2656 { instance of movieClip 2381 { onClipEvent (press) { scrollan = -1; } onClipEvent (release) { scrollan = 0; } onClipEvent (enterFrame) { if (scrollan == -1) { --_parent.messages.scroll; } if (scrollan == 1) { ++_parent.messages.scroll; } } } instance of movieClip 2381 { onClipEvent (press) { scrollan = 1; } onClipEvent (release) { scrollan = 0; } onClipEvent (enterFrame) { if (scrollan == -1) { --_parent.messages.scroll; } if (scrollan == 1) { ++_parent.messages.scroll; } } } } movieClip 2658 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 2660 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 2662 { } instance of movieClip 2662 { onClipEvent (release) { _root.debug.nextFrame(); } } movieClip 2668 { } movieClip 2669 { frame 1 { if (_root.difficulty == 1) { gotoAndStop(2); } else { stop(); } } } button 2680 { on (release) { gotoAndStop(2); } } button 2684 { on (release) { gotoAndStop(3); } } button 2688 { on (release) { gotoAndStop(10); } } button 2689 { on (release) { _root.deselectAll(); } } button 2693 { on (release) { gotoAndStop(4); } } button 2697 { on (release) { gotoAndStop(5); } } button 2701 { on (release) { gotoAndStop(6); } } movieClip 2739 { frame 30 { x = _root.randRange(0, 100); if (x > 75) { this.head.ear1.gotoAndPlay('wiggle'); } y = _root.randRange(0, 100); if (y > 75) { this.head.ear2.gotoAndPlay('wiggle'); } } frame 60 { x = _root.randRange(0, 100); if (x > 90) { gotoAndPlay('loop2'); } else { gotoAndPlay('loop1'); } } frame 90 { x = _root.randRange(0, 100); if (x > 75) { this.head.ear1.gotoAndPlay('wiggle'); } y = _root.randRange(0, 100); if (y > 75) { this.head.ear2.gotoAndPlay('wiggle'); } } frame 132 { x = _root.randRange(0, 100); if (x > 80) { gotoAndPlay('loop3'); } else { gotoAndPlay('loop1'); } } frame 162 { x = _root.randRange(0, 100); if (x > 75) { this.head.ear1.gotoAndPlay('wiggle'); } y = _root.randRange(0, 100); if (y > 75) { this.head.ear2.gotoAndPlay('wiggle'); } } frame 192 { gotoAndPlay('loop1'); } } movieClip 2745 { } movieClip 2746 { frame 1 { if (_root.mana < 10) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 2749 { } movieClip 2750 { frame 1 { if (_root.mana < 32) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 2755 { } movieClip 2756 { frame 1 { if (_root.mana < 16) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 2757 { instance of movieClip 2746 { onClipEvent (enterFrame) { if (_root.mana < 10) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (rollOver) { _root.feedText2 = 'Мощное укрепление'; _root.feedText = 'Постоянное увеличение защиты города на 2.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.mana >= 10) { _root.DefenseRating += 20; _root.mana -= 10; if (_root.perksOwned[6] == 1) { _root.resources[3][1] += _root.manaMax / 10; } _root.refreshResources(); if (_root.mana < 10) { this.gotoAndStop(2); } } } } instance of movieClip 2750 { onClipEvent (enterFrame) { if (_root.mana < 15) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (release) { if (_root.environment < 200) { if (_root.mana >= 15) { _root.environment += 2; _root.mana -= 15; if (_root.perksOwned[6] == 1) { _root.resources[3][1] += _root.manaMax / 10; } _root.refreshResources(); if (_root.mana < 15) { this.gotoAndStop(2); } } } } } instance of movieClip 2756 { onClipEvent (enterFrame) { if (_root.mana < 20) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (rollOver) { _root.feedText2 = 'Ускорение науки'; _root.feedText = 'Переводит всю ману в очки науки.\rДает 3 + (0.5 * Дополнительные траты маны) Очков науки.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.mana >= 20) { _root.mana -= 20; _root.resources[2][1] += 3; _root.resources[2][1] += _root.mana * 0.5; _root.mana = 0; if (_root.perksOwned[6] == 1) { _root.resources[3][1] += _root.manaMax / 10; } _root.refreshResources(); if (_root.mana < 20) { this.gotoAndStop(2); } } } } } movieClip 2769 { } movieClip 2771 { } button 2780 { on (release) { x = 0; while (x < _root.StatBracket.length) { if (_root.skill_Diplomacy + 1 < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } if (_root.StatsLeft >= statCost) { _root.skill_Diplomacy += 1; _root.StatsLeft -= statCost; } } on (rollOver) { _parent.StatBracketHint(); } on (rollOut) { _parent.descript = ''; } } button 2781 { on (release) { x = 0; while (x < _root.StatBracket.length) { if (_root.skill_Knowledge + 1 < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } if (_root.StatsLeft >= statCost) { _root.skill_Knowledge += 1; _root.StatsLeft -= statCost; } } on (rollOver) { _parent.StatBracketHint(); } on (rollOut) { _parent.descript = ''; } } button 2782 { on (release) { x = 0; while (x < _root.StatBracket.length) { if (_root.skill_Architecture + 1 < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } if (_root.StatsLeft >= statCost) { _root.skill_Architecture += 1; _root.StatsLeft -= statCost; } } on (rollOver) { _parent.StatBracketHint(); } on (rollOut) { _parent.descript = ''; } } button 2783 { on (release) { x = 0; while (x < _root._root.StatBracket.length) { if (_root.skill_Leadership + 1 < _root._root.StatBracket[x][0]) { statCost = _root._root.StatBracket[x][1]; break; } ++x; } if (_root.StatsLeft >= statCost) { _root.skill_Leadership += 1; _root.StatsLeft -= statCost; } } } button 2784 { on (release) { x = 0; while (x < _root.StatBracket.length) { if (_root.skill_Discipline + 1 < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } if (_root.StatsLeft >= statCost) { _root.skill_Discipline += 1; _root.StatsLeft -= statCost; } } on (rollOver) { _parent.StatBracketHint(); } on (rollOut) { _parent.descript = ''; } } button 2785 { on (release) { x = 0; while (x < _root.StatBracket.length) { if (_root.skill_Ecology + 1 < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } if (_root.StatsLeft >= statCost) { _root.skill_Ecology += 1; _root.StatsLeft -= statCost; } } on (rollOver) { _parent.StatBracketHint(); } on (rollOut) { _parent.descript = ''; } } button 2786 { on (release) { x = 0; while (x < _root.StatBracket.length) { if (_root.skill_Tradecraft + 1 < _root.StatBracket[x][0]) { statCost = _root.StatBracket[x][1]; break; } ++x; } if (_root.StatsLeft >= statCost) { _root.skill_Tradecraft += 1; _root.StatsLeft -= statCost; } } on (rollOver) { _parent.StatBracketHint(); } on (rollOut) { _parent.descript = ''; } } movieClip 2787 { frame 1 { stop(); } } movieClip 2808 { } movieClip 2809 { frame 1 { function StatBracketHint() { descript = 'Навыки требуют больше очков с повышением уровня.\r'; descript += 'Уровень 2 - ' + (_root.StatBracket[0][0] - 1) + ' ' + _root.StatBracket[0][1] + ' очков на уровень навыка' + '\n'; descript += 'Уровень ' + _root.StatBracket[0][0] + ' - ' + (_root.StatBracket[1][0] - 1) + ' ' + _root.StatBracket[1][1] + ' очков на уровень навыка' + '\n'; descript += 'Уровень ' + _root.StatBracket[1][0] + ' - ' + (_root.StatBracket[2][0] - 1) + ' ' + _root.StatBracket[2][1] + ' очков на уровень навыка' + '\n'; descript += 'Уровень ' + _root.StatBracket[2][0] + ' - ' + (_root.StatBracket[3][0] - 1) + ' ' + _root.StatBracket[3][1] + ' очков на уровень навыка' + '\n'; descript += 'Уровень ' + _root.StatBracket[3][0] + ' - ' + (_root.StatBracket[4][0] - 1) + ' ' + _root.StatBracket[4][1] + ' очков на уровень навыка' + '\n'; descript += 'Уровень ' + _root.StatBracket[4][0] + '+ ' + _root.StatBracket[5][1] + ' очков на уровень навыка'; } var descript = ''; var traitGet1 = -1; var traitGet2 = -1; i = 0; while (i < _root.traitsOwned.length) { if (_root.traitsOwned[i] == 1) { traitGet1 = i; break; } ++i; } i = 0; while (i < _root.traitsOwned.length) { if (_root.traitsOwned[i] == 1 && traitGet1 != i) { traitGet2 = i; break; } ++i; } if (traitGet1 != -1) { this.firstTrait.attachMovie('trait' + String(traitGet1), 'ayylmao1', _root.extraDepthInitial); } else { this.firstTrait._alpha = 0; } if (traitGet2 != -1) { this.secondTrait.attachMovie('trait' + String(traitGet2), 'ayylmao2', _root.extraDepthInitial + 1); } else { this.secondTrait._alpha = 0; } var perkHave = 0; i = 0; while (i < _root.perksOwned.length) { if (_root.perksOwned[i] == 1) { ++perkHave; var perkicon = this.perkTable.attachMovie('perk' + String(i), 'ayylmao' + perkHave, _root.extraDepthInitial + i); if (perkHave < 4) { perkicon._x = -120.85; perkicon._y = -50 + 50 * perkHave; } else { perkicon._x = 88.2; perkicon._y = -200 + 50 * perkHave; } perkicon._xscale = 58.3; perkicon._yscale = 58.3; } ++i; } if (perkHave == 0) { this.perkTable._alpha = 0; } } instance of movieClip 2787 { onClipEvent (load) { if (_root.StatsLeft > 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.StatsLeft > 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } } } movieClip 2822 { } movieClip 2824 { } movieClip 2827 { } movieClip 2828 { } movieClip 2831 { } movieClip 2833 { } movieClip 2834 { } movieClip 2836 { } movieClip 2838 { } movieClip 2839 { } movieClip 2841 { } movieClip 2844 { } movieClip 2846 { } movieClip 2847 { } movieClip 2849 { } movieClip 2851 { } movieClip 2852 { } movieClip 2855 { } movieClip 2857 { } movieClip 2858 { } movieClip 2860 { } movieClip 2862 { } movieClip 2864 { } movieClip 2865 { } movieClip 2870 { } movieClip 2872 { } movieClip 2873 { } movieClip 2874 { } movieClip 2876 { } movieClip 2877 { } movieClip 2879 { } movieClip 2881 { } movieClip 2882 { } movieClip 2914 { frame 1 { var expShow = ''; var nameRank = ''; var exp = ''; } } button 2919 { on (release) { _root.writeData(); _root.fader.gotoAndPlay('fadeOut'); _root.fadeOutTarget = 'title'; } } button 2920 { on (release) { gotoAndStop('helpstart'); } } button 2921 { on (release) { _root.deselectAll(); } } button 2923 { on (release) { gotoAndStop('options'); } } button 2925 { on (release) { _root.pingy(); if (_quality == 'MEDIUM') { _quality = 'HIGH'; } else { if (_quality == 'HIGH') { _quality = 'LOW'; } else { if (_quality == 'LOW') { _quality = 'MEDIUM'; } } } var MSG = ''; if (_quality == 'MEDIUM') { MSG = 'высокое'; } else { if (_quality == 'HIGH') { MSG = 'низкое'; } else { if (_quality == 'LOW') { MSG = 'среднее'; } } } _root.feedText2 = 'Сменить качество на ' + MSG; _root.feedText = 'Если частота кадров низкая, попробуйте его уменьшить.'; } on (rollOver) { var MSG = ''; if (_quality == 'MEDIUM') { MSG = 'High'; } else { if (_quality == 'HIGH') { MSG = 'Low'; } else { if (_quality == 'LOW') { MSG = 'Medium'; } } } _root.feedText2 = 'Change Quality to ' + MSG; _root.feedText = 'If the game\'s framerate is being sluggish, consider lowering quality.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } button 2927 { on (release) { _root.queuemusik(_root.MusikTrack + 1); } } button 2929 { on (release) { if (_root.MusikLoop == 0) { _root.MusikLoop = 1; } else { _root.MusikLoop = 0; } } } movieClip 2944 { frame 20 { if (_root.NextScene == 'disabled') { _root.fader.gotoAndPlay('fadeinFast'); if (_root.pauseDuringMeet == true && _root.gamePaused == true) { _root.pauseGame(); } } _root.hudInfo.gotoAndStop(_root.NextScene); } frame 21 { stop(); } } movieClip 2948 { } movieClip 2955 { frame 1 { stop(); } } movieClip 2957 { } movieClip 2959 { } movieClip 2960 { frame 200 { gotoAndPlay(1); } } movieClip 2965 { } movieClip 2971 { } movieClip 2972 { frame 1 { stop(); } frame 2 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } instance choiceBtn1 of movieClip 1223 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } instance choiceBtn2 of movieClip 1223 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } instance choiceBtn3 of movieClip 1223 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } instance choiceBtn4 of movieClip 1223 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } frame 3 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 4 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 5 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 6 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 7 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 8 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 9 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 10 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } instance choiceBtn1 of movieClip 1223 { onClipEvent (release) { this._parent._parent.storyChoice(1); } onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } frame 11 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 12 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } instance choiceBtn2 of movieClip 1223 { onClipEvent (release) { this._parent._parent.storyChoice(2); } onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } frame 13 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } instance choiceBtn3 of movieClip 1223 { onClipEvent (release) { this._parent._parent.storyChoice(3); } onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } frame 14 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } stop(); } instance choiceBtn4 of movieClip 1223 { onClipEvent (release) { this._parent._parent.storyChoice(4); } onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } frame 15 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } instance choiceBtn4 of movieClip 1223 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } frame 16 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 17 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } instance choiceBtn3 of movieClip 1223 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } frame 18 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 19 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } instance choiceBtn2 of movieClip 1223 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } frame 20 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 21 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 22 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 23 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } instance choiceBtn1 of movieClip 1223 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } frame 24 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 25 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 26 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 27 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 28 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } frame 29 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } } button 2973 { on (release) { _root.hudInfo.leFadeFace.play(); _root.NextScene = 'disabled'; } } movieClip 2976 { frame 1 { function storyChoice(number) { this.choices.nextFrame(); this.choices.play(); choicesBusy = false; textcurrent = ''; textlength = 0; choiceID = choiceNumberID[number - 1]; if (choiceID == '01') { textmessage = 'Мы стараемся препятствовать строительству Цитаделей Чейнжлингов. Они пожирают нашу любовь и хотят уничтожить нас, но если мы будем создавать достаточно любви, то сможем держать их в страхе.'; this.choices.choice1 = 'А есть какая-нибудь более сильная магия против них?'; x = _root.randRange(0, ChoiceGeneric2.length - 1); this.choices.choice2 = ChoiceGeneric2[x]; x = _root.randRange(0, ChoiceGeneric3.length - 1); this.choices.choice3 = ChoiceGeneric3[x]; this.choices.choice4 = ''; choiceNumberID = new Array('01b', '02', '03', ''); } else { if (choiceID == '02') { textcurrent = ''; textmessage = 'Строй городские площади и окружай их домами. В идеале должно быть 2 гастронома на 8 домов. Постарайтесь достичь 100% счастья так скоро, как это возможно. Карьеры следует размещать как можно дальше от домов, а таверны наоборот, ближе.'; textlength = 0; x = _root.randRange(0, ChoiceGeneric1.length - 1); this.choices.choice1 = ChoiceGeneric1[x]; x = _root.randRange(0, ChoiceGeneric3.length - 1); this.choices.choice2 = ChoiceGeneric3[x]; this.choices.choice3 = ''; this.choices.choice4 = ''; choiceNumberID = new Array('01', '03', '', ''); } else { if (choiceID == '03') { textmessage = 'Хехе, спасибо! Мне очень приятно слышать это. Ты мне тоже нравишься, ' + _root.charName + '.'; choiceNumberID = new Array('03b', '03c', '', ''); this.choices.choice1 = 'Всегда пожалуйста. Может поговорим о чем-то еще?'; this.choices.choice2 = 'А сможешь объяснить, как работает Магия любви?'; if (!_root.StoryFlags[0]) { if (_root.statCharisma >= 6) { this.choices.choice3 = 'А давай создадим немного Магии любви. Хехе.'; choiceNumberID[2] = '03d'; } else { x = _root.randRange(0, ChoiceGeneric4b.length - 1); this.choices.choice3 = ChoiceGeneric4b[x]; choiceNumberID[2] = '03e'; } } else { this.choices.choice3 = ''; } this.choices.choice4 = ''; } else { if (choiceID == '03b') { textmessage = 'Конечно! О чем ты хочешь меня спросить?'; x = _root.randRange(0, ChoiceGeneric1.length - 1); this.choices.choice1 = ChoiceGeneric1[x]; x = _root.randRange(0, ChoiceGeneric2.length - 1); this.choices.choice2 = ChoiceGeneric2[x]; this.choices.choice3 = ''; this.choices.choice4 = ''; choiceNumberID = new Array('01', '02', '', ''); } else { if (choiceID == '03c') { textmessage = 'Естественно! В этом мире много разных типов магии, единороги могут управлять некоторыми наиболее известными с рождения. Различные мифические создания также владеют магией, кто-то меньше, кто-то больше.'; this.choices.choice1 = 'Я весь внимание.'; this.choices.choice2 = ''; this.choices.choice3 = ''; this.choices.choice4 = ''; choiceNumberID = new Array('03c2', '', '', ''); } else { if (choiceID == '03c2') { textmessage = 'Есть также магия дружбы и любви, которую, обычно, могут использовать только единороги, но создавать ее могут самые разные существа, и даже не пони! Эти типы магии могут быть крайне мощными при правильном использовании.'; this.choices.choice1 = 'Как именно Магия любви "создается"?'; this.choices.choice2 = 'А как насчет магии пердежа? Азазаззазаззз...'; this.choices.choice3 = 'Эммм, а можно еще разок?'; this.choices.choice4 = ''; choiceNumberID = new Array('03c3', '03e', '03c', ''); } else { if (choiceID == '03c3') { textmessage = 'Если два пони сильно любят друг друга, то они могут создавать магию столь мощную, что можно полностью уничтожить зло. Тем не менее, даже просто имея общество счастливых пони, можно получить достаточно магии. Но ее намного больше, когда пони занимаются сексом.'; this.choices.choice1 = 'Я бы хотел создать немного магии с тобой, если не против.'; this.choices.choice2 = 'Если ты написаешь мне в рот, то будет какая-нибудь магия?'; this.choices.choice3 = 'А можно заново? Я прослушал.'; this.choices.choice4 = ''; choiceNumberID = new Array('03c4', '03e', '03c', ''); } else { if (choiceID == '03c4' || choiceID == '03e4' || choiceID == '03d') { textmessage = 'Ты хочешь заняться со мной любовью? Ну, мы хорошие друзья, и я совсем не против, если эта магия поможет нам против врагов! Хехе. Хочешь прям здесь, в саду?'; this.choices.choice1 = 'Конечно!'; this.choices.choice2 = '...Давай сменим тему...'; this.choices.choice3 = 'Воу, воу, а можно все сначала? Я в замешательстве.'; this.choices.choice4 = 'Я просто наложил в свои подгузники с Рейнбоу Дэш.'; choiceNumberID = new Array('03c5', '03b', '03c', '03e'); } else { if (choiceID == '03c5') { if (traitsOwned[20] != 1) { _root.UnlockGeneric(0); _root.fader.gotoAndPlay('fadeOut'); _root.fadeOutTarget = 'sex'; _root.sexScene = 'garden'; } else { _root.hudInfo.gotoAndStop(1); } } else { if (choiceID == '04' && _root.statCharisma >= 6) { if (!_root.StoryFlags[0]) { textmessage = 'Хмм... ну, ты уже получил немного ресурсов, чтобы начать строить город, но я могу предположить, что тебе нужно больше. Что я могу тебе дать?'; this.choices.choice1 = 'Большую вечеринку, чтобы отпраздновать новый город!'; this.choices.choice2 = 'Немного камней и монет, чтобы я могу строить здания.'; this.choices.choice3 = 'Больше еды и науки, чтобы я мог выполнять исследования.'; this.choices.choice4 = ''; choiceNumberID = new Array('04b', '04c', '04d', ''); _root.StoryFlags[0] = true; } else { textmessage = 'рости, но у меня нет лишних запасов, которые я могу тебе отдать. Я не хочу рисковать.'; x = _root.randRange(0, ChoiceGeneric1.length - 1); this.choices.choice1 = ChoiceGeneric1[x]; x = _root.randRange(0, ChoiceGeneric2.length - 1); this.choices.choice2 = ChoiceGeneric2[x]; x = _root.randRange(0, ChoiceGeneric3.length - 1); this.choices.choice3 = ChoiceGeneric3[x]; this.choices.choice4 = ''; choiceNumberID = new Array('01', '02', '03', ''); } } else { if (choiceID == '04' && _root.statCharisma < 6 || choiceID == '03e') { textmessage = 'Оу... Я... Эм.. ладно. Это действительно странно... Давай сделаем вид, что этого не было. О чем ты там хотел спросить?'; x = _root.randRange(0, ChoiceGeneric1.length - 1); this.choices.choice1 = ChoiceGeneric1[x]; x = _root.randRange(0, ChoiceGeneric2.length - 1); this.choices.choice2 = ChoiceGeneric2[x]; x = _root.randRange(0, ChoiceGeneric3.length - 1); this.choices.choice3 = ChoiceGeneric3[x]; this.choices.choice4 = ''; choiceNumberID = new Array('01', '02', '03', ''); } else { if (choiceID == '01b') { textmessage = 'Любовь - это самая мощная магия из тех, что мы владеем. Однако, мы продолжаем надеяться, что технологии дадут нам что-то по-мощнее.'; x = _root.randRange(0, ChoiceGeneric2.length - 1); this.choices.choice1 = ChoiceGeneric2[x]; x = _root.randRange(0, ChoiceGeneric3.length - 1); this.choices.choice2 = ChoiceGeneric3[x]; this.choices.choice3 = ''; this.choices.choice4 = ''; choiceNumberID = new Array('02', '03', '', ''); } else { if (choiceID == '04b' || choiceID == '04c' || choiceID == '04d') { if (choiceID == '04b') { _root.happiness += 200; } if (choiceID == '04c') { _root.resources[0][1] += _root.randRange(20, 30); _root.resources[3][1] += _root.randRange(5, 10); } if (choiceID == '04d') { _root.resources[1][1] += _root.randRange(300, 500); _root.resources[2][1] += _root.randRange(10, 20); } _root.refreshResources(); textmessage = 'Хорошо, я сделаю это. Чем еще я могу помочь?'; x = _root.randRange(0, ChoiceGeneric1.length - 1); this.choices.choice1 = ChoiceGeneric1[x]; x = _root.randRange(0, ChoiceGeneric2.length - 1); this.choices.choice2 = ChoiceGeneric2[x]; x = _root.randRange(0, ChoiceGeneric3.length - 1); this.choices.choice3 = ChoiceGeneric3[x]; this.choices.choice4 = ''; choiceNumberID = new Array('01', '02', '03', ''); } } } } } } } } } } } } } } stop(); var textcurrent = ''; var textmessage = ''; var textlength = 0; var choicesBusy = false; var HelloTwilight = new Array('Привет еще раз, ' + _root.charName + ', я всегда рада тебя видеть!'); var PositiveTwilight = new Array('Похоже, что жители ' + _root.townName + ' чувствуют себя хорошо, отличная работа!'); var NeutralTwilight = new Array(_root.townName + ' выглядит неплохо, продолжай в том же духе.'); var NegativeTwilight = new Array('Чувствую я, что жители ' + _root.townName + ' чем-то недовольны.'); var QuestionTwilight = new Array('Итак, о чем же ты хотел меня спросить?'); var choiceID; x = _root.randRange(0, HelloTwilight.length - 1); var textcurrent = ''; var textmessage = HelloTwilight[x]; textmessage += ' '; if (happiness > 75) { x = _root.randRange(0, PositiveTwilight.length - 1); textmessage += PositiveTwilight[x]; } else { if (happiness < 50) { x = _root.randRange(0, NegativeTwilight.length - 1); textmessage += NegativeTwilight[x]; } else { x = _root.randRange(0, NeutralTwilight.length - 1); textmessage += NeutralTwilight[x]; } } textmessage += ' '; x = _root.randRange(0, QuestionTwilight.length - 1); textmessage += QuestionTwilight[x]; var ChoiceGeneric1 = new Array('Что я должен делать?', 'Какова моя цель, кроме постройки города?'); var ChoiceGeneric2 = new Array('Есть какие-нибудь советы?', 'Как лучше спланировать город?', 'Есть идеи, как лучше строить город?'); var ChoiceGeneric3 = new Array('Ты сегодня очень милая...', 'Знаешь, а ты мне всегда нравилась...', 'Этот сад пахнет так же приятно, как и ты...', 'Твоя грива и шерстка выглядят так мягко...', 'Твоя грива выглядит чудесно...'); var ChoiceGeneric4a = new Array('(ОЧАРОВАНИЕ) Можно мне немного материалов?'); var ChoiceGeneric4b = new Array('Я хочу понюхать твою задницу.', 'Я хочу помять твое вымя своим членом.', 'Я хочу нагнуть тебя и выебать.', 'Я хочу сделать с тобой то, что я делаю с собакой ЭйДжей.', 'Ты выглядишь усталой. Можешь переночевать в моем домике.', 'Давай поиграем в "Проткни пирата", только используя мой член.', 'Давай поиграем в "Вставь мой член в твою задницу".', 'Заткнись и отсоси у меня наконец!', 'Заткнись и нагнись, я готов к горячему сексу с пони!', 'Я хочу нюхать твои волосы и расчесывать тебя.', 'Т-ты тоже.'); x = _root.randRange(0, ChoiceGeneric1.length - 1); this.choices.choice1 = ChoiceGeneric1[x]; x = _root.randRange(0, ChoiceGeneric2.length - 1); this.choices.choice2 = ChoiceGeneric2[x]; x = _root.randRange(0, ChoiceGeneric3.length - 1); this.choices.choice3 = ChoiceGeneric3[x]; if (!_root.StoryFlags[0]) { if (_root.statCharisma >= 6) { x = _root.randRange(0, ChoiceGeneric4a.length - 1); this.choices.choice4 = ChoiceGeneric4a[x]; } else { x = _root.randRange(0, ChoiceGeneric4b.length - 1); this.choices.choice4 = ChoiceGeneric4b[x]; } } else { this.choices.choice4 = ''; } choiceID = '0'; choiceNumberID = new Array('01', '02', '03', '04'); } frame 1 { this.lighting.gotoAndStop(1); var clockDate = new Date(); var minutes = clockDate.getMinutes(); var hours = clockDate.getHours(); this.minutesHand._rotation = minutes * 6; this.hoursHand._rotation = hours * 30 + minutes / 2; if (hours >= 16 && hours <= 24) { light._visible = true; night._alpha = hours * 5 - 20; var i = 1; while (i < 38) { var mc = light['window' + i]; mc.ran = Math.random() * 10000; if (mc.ran > 9985) { mc._visible = !mc._visible; } ++i; } } else { if (hours >= 0 && hours <= 7) { light._visible = true; night._alpha = 100 - hours * 5; var i = 1; while (i < 38) { var mc = light['window' + i]; mc.ran = Math.random() * 10000; if (mc.ran > 9999) { mc._visible = !mc._visible; } ++i; } } else { light._visible = false; night._alpha = 0; } } switch (hours) { case 0: messageTxt.text = 'Настал час ведьм'; break; case 4: messageTxt.text = 'Улицы абсолютно пустынны'; break; case 6: messageTxt.text = 'Рабочие готовятся к новому дню'; break; case 8: messageTxt.text = 'Город встречает новый день'; break; case 12: messageTxt.text = 'Рабочие пошли на обед'; break; case 16: messageTxt.text = 'Город успокаивается после рабочего дня'; break; case 20: messageTxt.text = 'Жители готовы к вечеринке'; break; default: messageTxt.text = ''; } } instance textcontroller of movieClip 2965 { onClipEvent (load) { var textInterval = 0; var soundInterval = 2; var textSpeed = 4; var textWrap = 22; } onClipEvent (enterFrame) { ++textInterval; ++soundInterval; if (textInterval > 0) { x = 0; while (x < textSpeed) { if (this._parent.textlength <= this._parent.textmessage.length) { this._parent.textlength += 1; } this._parent.textcurrent += this._parent.textmessage.substr(this._parent.textlength - 1, 1); ++x; } textInterval = 0; } if (soundInterval > 2) { if (this._parent.textlength <= this._parent.textmessage.length) { } soundInterval = 0; } if (this._parent.textcurrent.length > this._parent.textmessage.length / 2 && this._parent.choicesBusy == false) { this._parent.choices.gotoAndPlay(2); this._parent.choicesBusy = true; } } } } movieClip 2978 { frame 21 { stop(); } } movieClip 2981 { } movieClip 2983 { } button 2986 { on (release) { _root.hudInfo.gotoAndStop('Gamble'); } } button 2988 { on (release) { if (traitsOwned[20] != 1) { _root.hudInfo.gotoAndStop('Private'); } } } movieClip 2990 { frame 1 { function storyChoice(number) { this.choices.nextFrame(); this.choices.play(); choicesBusy = false; textcurrent = ''; textlength = 0; choiceID = choiceNumberID[number - 1]; if (choiceID == '01') { textmessage = 'Что, ты думал, что это симулятор свиданий или что-то в этом роде? У нас есть и кое-что получше пустой болтовни!'; this.choices.choice1 = 'Я просто пытаюсь растопить лед...'; x = _root.randRange(0, ChoiceGeneric2.length - 1); this.choices.choice2 = ChoiceGeneric2[x]; x = _root.randRange(0, ChoiceGeneric3.length - 1); this.choices.choice3 = ChoiceGeneric3[x]; this.choices.choice4 = ''; choiceNumberID = new Array('01b', '02', '03', ''); } else { if (choiceID == '02') { textcurrent = ''; textmessage = 'Приватные комнаты, это то место, где ты можешь сотворить "Магию любви" с гостями таверны. Нет какого-либо ограничения на частоту посещения, и это полностью бесплатно'; textlength = 0; this.choices.choice1 = 'Я хочу заценить их.'; x = _root.randRange(0, ChoiceGeneric1.length - 1); this.choices.choice2 = ChoiceGeneric1[x]; x = _root.randRange(0, ChoiceGeneric3.length - 1); this.choices.choice3 = ChoiceGeneric3[x]; this.choices.choice4 = ''; choiceNumberID = new Array('02b', '01', '03', ''); } else { if (choiceID == '02b') { if (traitsOwned[20] != 1) { _root.hudInfo.gotoAndStop('Private'); } else { _root.hudInfo.gotoAndStop(1); } } else { if (choiceID == '03') { textmessage = 'Если ты чувствуешь себя везучим, то можешь сделать ставку и попробовать выиграть призы. Игра называется "Веселые торговцы".'; choiceNumberID = new Array('03b', '03c', '02', ''); this.choices.choice1 = 'А можешь объяснить правила?'; this.choices.choice2 = 'Я хочу заценить это.'; x = _root.randRange(0, ChoiceGeneric2.length - 1); this.choices.choice3 = ChoiceGeneric2[x]; this.choices.choice4 = ''; } else { if (choiceID == '03b') { textmessage = 'В Веселых торговцах ты делаешь ставки на разные территории, а затем бросают карту. Если была брошена карта с ресурсом, который соответствует выбранной территории, то ты выигрываешь. Если это была Карта бандита, то ты теряешь все ставки. Все ставки можно снять без штрафа/'; this.choices.choice1 = 'Я хочу заценить это.'; x = _root.randRange(0, ChoiceGeneric2.length - 1); this.choices.choice2 = ChoiceGeneric2[x]; this.choices.choice3 = ''; this.choices.choice4 = ''; choiceNumberID = new Array('03c', '02', '', ''); } else { if (choiceID == '03c') { _root.hudInfo.gotoAndStop('Gamble'); } else { if (choiceID == '01b') { textmessage = 'Ты можешь встретиться со мной в одной из Приватных комнат, если захочешь, хехе.'; x = _root.randRange(0, ChoiceGeneric2.length - 1); this.choices.choice1 = ChoiceGeneric2[x]; x = _root.randRange(0, ChoiceGeneric3.length - 1); this.choices.choice2 = ChoiceGeneric3[x]; this.choices.choice3 = ''; this.choices.choice4 = ''; choiceNumberID = new Array('02', '03', '', ''); } } } } } } } } stop(); var textcurrent = ''; var textmessage = ''; var textlength = 0; var choicesBusy = false; var HelloTwilight = new Array('Привет, ' + _root.charName + '! Управлять городом достаточно тяжело, никак расслабиться пришел?'); var PositiveTwilight = new Array('Похоже, что жители ' + _root.townName + ' чувствуют себя хорошо, отличная работа!'); var NeutralTwilight = new Array(_root.townName + ' выглядит неплохо, продолжай в том же духе.'); var NegativeTwilight = new Array('Чувствую я, что жители ' + _root.townName + ' чем-то недовольны.'); var QuestionTwilight = new Array('Итак, о чем же ты хотел меня спросить?'); var choiceID; x = _root.randRange(0, HelloTwilight.length - 1); var textcurrent = ''; var textmessage = HelloTwilight[x]; textmessage += ' '; if (happiness > 75) { x = _root.randRange(0, PositiveTwilight.length - 1); textmessage += PositiveTwilight[x]; } else { if (happiness < 50) { x = _root.randRange(0, NegativeTwilight.length - 1); textmessage += NegativeTwilight[x]; } else { x = _root.randRange(0, NeutralTwilight.length - 1); textmessage += NeutralTwilight[x]; } } var ChoiceGeneric1 = new Array('Так... что-то случилось?', 'Как поживаешь, в конце концов?', 'Как делишки?', 'Отличный день, правда?'); var ChoiceGeneric2 = new Array('А расскажешь мне о Приватных комнатах?'); var ChoiceGeneric3 = new Array('А расскажешь мне про Игровой стол?'); var ChoiceGeneric4a = new Array('(ОЧАРОВАНИЕ) Можно мне немного материалов?'); var ChoiceGeneric4b = new Array('Я хочу понюхать твою задницу.', 'Я хочу помять твое вымя своим членом.', 'Я хочу нагнуть тебя и выебать.', 'Я хочу сделать с тобой то, что я делаю с собакой ЭйДжей.', 'Ты выглядишь усталой. Можешь переночевать в моем домике.', 'Давай поиграем в "Проткни пирата", только используя мой член.', 'Давай поиграем в "Вставь мой член в твою задницу".', 'Заткнись и отсоси у меня наконец!', 'Заткнись и нагнись, я готов к горячему сексу с пони!', 'Я хочу нюхать твои волосы и расчесывать тебя.'); x = _root.randRange(0, ChoiceGeneric1.length - 1); this.choices.choice1 = ChoiceGeneric1[x]; x = _root.randRange(0, ChoiceGeneric2.length - 1); this.choices.choice2 = ChoiceGeneric2[x]; x = _root.randRange(0, ChoiceGeneric3.length - 1); this.choices.choice3 = ChoiceGeneric3[x]; this.choices.choice4 = ''; choiceID = '0'; choiceNumberID = new Array('01', '02', '03', '04'); } frame 1 { this.lighting.gotoAndStop(1); var clockDate = new Date(); var minutes = clockDate.getMinutes(); var hours = clockDate.getHours(); this.minutesHand._rotation = minutes * 6; this.hoursHand._rotation = hours * 30 + minutes / 2; if (hours >= 16 && hours <= 24) { light._visible = true; night._alpha = hours * 5 - 20; var i = 1; while (i < 38) { var mc = light['window' + i]; mc.ran = Math.random() * 10000; if (mc.ran > 9985) { mc._visible = !mc._visible; } ++i; } } else { if (hours >= 0 && hours <= 7) { light._visible = true; night._alpha = 100 - hours * 5; var i = 1; while (i < 38) { var mc = light['window' + i]; mc.ran = Math.random() * 10000; if (mc.ran > 9999) { mc._visible = !mc._visible; } ++i; } } else { light._visible = false; night._alpha = 0; } } switch (hours) { case 0: messageTxt.text = 'Настал час ведьм'; break; case 4: messageTxt.text = 'Улицы абсолютно пустынны'; break; case 6: messageTxt.text = 'Рабочие готовятся к новому дню'; break; case 8: messageTxt.text = 'Город встречает новый день'; break; case 12: messageTxt.text = 'Рабочие пошли на обед'; break; case 16: messageTxt.text = 'Город успокаивается после рабочего дня'; break; case 20: messageTxt.text = 'Жители готовы к вечеринке'; break; default: messageTxt.text = ''; } } instance textcontroller of movieClip 2965 { onClipEvent (load) { var textInterval = 0; var soundInterval = 2; var textSpeed = 4; var textWrap = 22; } onClipEvent (enterFrame) { ++textInterval; ++soundInterval; if (textInterval > 0) { x = 0; while (x < textSpeed) { if (this._parent.textlength <= this._parent.textmessage.length) { this._parent.textlength += 1; } this._parent.textcurrent += this._parent.textmessage.substr(this._parent.textlength - 1, 1); ++x; } textInterval = 0; } if (soundInterval > 2) { if (this._parent.textlength <= this._parent.textmessage.length) { } soundInterval = 0; } if (this._parent.textcurrent.length > this._parent.textmessage.length / 2 && this._parent.choicesBusy == false) { this._parent.choices.gotoAndPlay(2); this._parent.choicesBusy = true; } } } } movieClip 2992 { } movieClip 2995 { } movieClip 2998 { } movieClip 3001 { } movieClip 3004 { } movieClip 3007 { } movieClip 3010 { frame 1 { stop(); } } movieClip 3013 { } movieClip 3016 { } movieClip 3019 { } movieClip 3021 { } movieClip 3024 { frame 121 { _parent.lightText._alpha -= 3; gotoAndPlay(120); } } movieClip 3027 { frame 121 { if (_parent.lightText._alpha > 0) { _parent.lightText._alpha -= 3; gotoAndPlay(120); } else { gotoAndStop(1); } } } movieClip 3029 { } movieClip 3031 { } movieClip 3033 { } movieClip 3035 { } movieClip 3037 { } movieClip 3039 { } movieClip 3040 { } movieClip 3042 { } movieClip 3043 { frame 1 { stop(); } frame 7 { gotoAndStop(14); } frame 15 { gotoAndStop(1); } } movieClip 3058 { frame 1 { if (!init) { var init = true; if (_root.funds > 0 || _root.tokens > 0) { this.gotoAndStop(2); } else { stop(); } } } frame 3 { gotoAndStop(1); } } button 3067 { on (release) { rollEm(); } } button 3068 { on (release) { clearEm(false); } } movieClip 3097 { } movieClip 3098 { frame 1 { stop(); } frame 2 { _parent.showEm(); } frame 15 { _parent.payEm(); } frame 15 { stop(); } frame 20 { gotoAndPlay(2); } } button 3101 { on (release) { placeEmAll(); } } button 3103 { on (release) { clearEm(false); _root.hudInfo.gotoAndStop('Prize'); } } movieClip 3107 { } button 3108 { on (release) { if (_root.tokens >= 125) { _root.tokens -= 125; _root.funds += 100; } this.chiphint.gotoAndStop('disabled'); } } button 3110 { on (release) { if (_root.resources[0][1] >= 100) { _root.resources[0][1] -= 100; _root.funds += 100; } _root.refreshResources(); this.chiphint.gotoAndStop('disabled'); } } movieClip 3113 { } movieClip 3114 { frame 1 { if (_root.funds > 0 || _root.tokens > 0) { this.gotoAndStop('disabled'); } } frame 60 { gotoAndPlay(1); } } button 3115 { on (release) { this.hinty.nextFrame(); } } button 3117 { on (release) { placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); } } button 3119 { on (release) { clearEm(false); _root.hudInfo.gotoAndStop('Tavern'); } } movieClip 3121 { frame 1 { function rollEm() { if (!cardBusy) { roll1 = _root.randRange(1, 7); roll2 = _root.randRange(1, 7); rollResult = roll1 + roll2; if (rollResult == 14) { rollResult = 2; } this.card.play(); cardBusy = true; } } function showEm() { this.card.card.gotoAndStop(rollResult); } function payEm() { if (rollResult == 8) { clearEm(true); } else { if (rollResult == 3) { i = 1; while (i <= 7) { a = this['b' + i]; if (a.bet > 0) { a.bet += betPrice; ++a.betCurrent; var v3 = a.attachMovie('leChip', 'leChip' + a.betCurrent, a.getNextHighestDepth()); v3._x = _root.randRange(-5, 5); v3._y = 60 - 10 * a.betCurrent; v3.xpos = a._x; v3.ypos = a._y; } ++i; } } else { if (rollResult == 4) { payOutBonus = 2; } else { if (rollResult == 12) { rollResult = _root.randRange(4, 11); if (rollResult == 8) { rollResult = 2; } } } } } i = 1; while (i <= 7) { a = this['b' + i]; if (rollResult == a.hit) { if (a.bet > 0) { _root.tokens += int(a.bet * a.win * payOutBonus); _root.fundsDisplay = int(_root.funds); a.bet = 0; ++a.betCurrent; var v3 = a.attachMovie('leChipWin', 'leChip' + a.betCurrent, a.getNextHighestDepth()); v3._x = _root.randRange(-5, 5); v3._y = 60 - 10 * a.betCurrent; v3.xpos = a._x; v3.ypos = a._y; p = 1; while (p <= a.betCurrent) { fireWeapon(a['leChip' + p], 25, 4, 10, -1); ++p; } a.betCurrent = 0; payOutBonus = 1; } } ++i; } if (!chipMoving) { cardBusy = false; } _root.writeData(); } function clearEm(crap) { if (!cardBusy || crap) { i = 1; while (i <= 7) { a = this['b' + i]; if (a.bet > 0 && !crap) { _root.funds += a.bet; _root.fundsDisplay = int(_root.funds); } if (!crap) { p = 1; while (p <= a.betCurrent) { fireWeapon(a['leChip' + p], 25, 24, 10, -1); ++p; } } else { p = 1; while (p <= a.betCurrent) { fireWeapon(a['leChip' + p], 25, 8, 10, 1); ++p; } } a.betCurrent = 0; a.bet = 0; ++i; } } } function fireWeapon(projectileMC, projectileLifeMax, projectileSpeed, projectileSpread, projectileTarget) { cardBusy = true; chipMoving = true; var v7; var v4 = projectileMC.ypos - 450 * projectileTarget; if (projectileTarget == -1) { projectileTarget = -400; } var v5 = projectileMC.xpos - projectileTarget; projectileMC.projectileLife = 0; projectileAngle = Math.atan2(v4, v5); projectileMC.xMove = Math.cos(projectileAngle) * projectileSpeed; projectileMC.yMove = Math.sin(projectileAngle) * projectileSpeed; projectileMC.onEnterFrame = function () { this._x -= this.xMove * 1.5 * (this.projectileLife * this.projectileLife * 0.08); this._y += this.yMove * (this.projectileLife * this.projectileLife * 0.08); if (this.projectileLife > projectileLifeMax) { this.removeMovieClip(); cardBusy = false; chipMoving = false; } if (projectileLifeMax != 0) { ++this.projectileLife; } }; } function placeEm(which) { a = this['b' + which]; if (_root.funds >= betPrice && a.bet < maxBet) { _root.funds -= betPrice; _root.fundsDisplay = int(_root.funds); a.bet += betPrice; ++a.betCurrent; var v3 = a.attachMovie('leChip', 'leChip' + a.betCurrent, a.getNextHighestDepth()); v3._x = _root.randRange(-5, 5); v3._y = 60 - 10 * a.betCurrent; v3.xpos = a._x; v3.ypos = a._y; } } function placeEmAll() { if (!cardBusy) { i = 1; while (i <= 7) { placeEm(i); ++i; } } } function setEmUp() { i = 1; while (i <= 7) { a = this['b' + i]; a.bet = 0; a.betCurrent = 0; a.onRelease = function () { if (!cardBusy) { if (_root.funds >= betPrice && this.bet < maxBet) { _root.funds -= betPrice; _root.fundsDisplay = int(_root.funds); this.bet += betPrice; ++this.betCurrent; var v3 = this.attachMovie('leChip', 'leChip' + this.betCurrent, this.getNextHighestDepth()); v3._x = _root.randRange(-5, 5); v3._y = 60 - 10 * this.betCurrent; v3.xpos = this._x; v3.ypos = this._y; } } }; ++i; } this.b1.win = 2; this.b2.win = 1.5; this.b3.win = 1.2; this.b4.win = 3; this.b5.win = 1.2; this.b6.win = 1.5; this.b7.win = 2; this.b1.hit = 5; this.b2.hit = 6; this.b3.hit = 7; this.b4.hit = 2; this.b5.hit = 9; this.b6.hit = 10; this.b7.hit = 11; } stop(); var roll1 = 0; var roll2 = 0; var rollResult = 0; var fundsDisplay = int(_root.funds); var betPrice = 5; var cardBusy = false; var maxBet = 50; var payOutBonus = 1; var chipMoving = false; setEmUp(); } instance hinty of movieClip 3058 { onClipEvent (press) { this.gotoAndStop(2); } } } button 3131 { on (release) { if (_root.tokens >= 100) { _root.tokens -= 100; _root.happiness += 50; _root.refreshResources(); _root.writeData(); } } } button 3134 { on (release) { if (_root.tokens >= 300) { _root.tokens -= 300; _root.DefenseRating += 150; _root.refreshResources(); _root.writeData(); } } } button 3135 { on (release) { if (_root.ShieldLevel < 100) { if (_root.tokens >= _root.PrizeSkillTokens) { _root.tokens -= _root.PrizeSkillTokens; _root.PrizeSkillTokens += 750; _root.PrizeSkillTokensDisplay = _root.PrizeSkillTokens + ' Tokens'; _root.StatsLeft += 1; _root.refreshResources(); _root.writeData(); } } else { _root.newMSG('Oak\'s words echoed...' + _root.charName + '! There\'s a time and place for everything! But not now.'); } } } button 3138 { on (release) { if (_root.tokens >= 800) { _root.tokens -= 800; _root.StoryFlags[1] = 1; gotoAndStop(2); _root.refreshResources(); _root.writeData(); } } } movieClip 3140 { frame 1 { if (_root.StoryFlags[1] == 1) { gotoAndStop(2); } else { stop(); } } } movieClip 3145 { } button 3146 { on (release) { if (_root.tokens >= 1200) { _root.tokens -= 1200; _root.StoryFlags[2] = true; gotoAndStop(2); _root.refreshResources(); _root.writeData(); } } } movieClip 3148 { frame 1 { if (_root.StoryFlags[2] == 1) { gotoAndStop(2); } else { stop(); } } } movieClip 3152 { frame 1 { if (_root.UnlocksGeneric[9][2] != 1) { stop(); } else { gotoAndStop(2); } } instance of movieClip 908 trait??? { onClipEvent (release) { if (_root.tokens >= 500) { _root.tokens -= 500; _root.UnlockGeneric(9); _root.writeData(); _root.hudInfo.prizeScene.tt1.gotoAndStop(2); } } } } movieClip 3154 { frame 1 { if (_root.UnlocksGeneric[10][2] != 1) { stop(); } else { gotoAndStop(2); } } instance of movieClip 908 trait??? { onClipEvent (release) { if (_root.tokens >= 750) { _root.tokens -= 750; _root.UnlockGeneric(10); _root.writeData(); _root.hudInfo.prizeScene.tt2.gotoAndStop(2); } } } } movieClip 3156 { frame 1 { if (_root.UnlocksGeneric[11][2] != 1) { stop(); } else { gotoAndStop(2); } } instance of movieClip 908 trait??? { onClipEvent (release) { if (_root.tokens >= 1500) { _root.tokens -= 1500; _root.UnlockGeneric(11); _root.writeData(); _root.hudInfo.prizeScene.tt3.gotoAndStop(2); } } } } movieClip 3158 { frame 1 { if (_root.UnlocksGeneric[12][2] != 1) { stop(); } else { gotoAndStop(2); } } instance of movieClip 908 trait??? { onClipEvent (release) { if (_root.tokens >= 6000) { _root.tokens -= 6000; _root.UnlockGeneric(12); _root.writeData(); _root.hudInfo.prizeScene.tt4.gotoAndStop(2); } } } } button 3159 { on (release) { _root.hudInfo.gotoAndStop('Tavern'); } } movieClip 3160 { frame 1 { function rollEm() { if (!cardBusy) { roll1 = _root.randRange(1, 7); roll2 = _root.randRange(1, 7); rollResult = roll1 + roll2; if (rollResult == 14) { rollResult = 2; } this.card.play(); cardBusy = true; } } function showEm() { this.card.card.gotoAndStop(rollResult); } function payEm() { if (rollResult == 8) { clearEm(true); } else { if (rollResult == 3) { i = 1; while (i <= 7) { a = this['b' + i]; if (a.bet > 0) { a.bet += betPrice; ++a.betCurrent; var v3 = a.attachMovie('leChip', 'leChip' + a.betCurrent, a.getNextHighestDepth()); v3._x = _root.randRange(-5, 5); v3._y = 60 - 10 * a.betCurrent; v3.xpos = a._x; v3.ypos = a._y; } ++i; } } else { if (rollResult == 4) { payOutBonus = 2; } else { if (rollResult == 12) { rollResult = _root.randRange(4, 11); if (rollResult == 8) { rollResult = 2; } } } } } i = 1; while (i <= 7) { a = this['b' + i]; if (rollResult == a.hit) { if (a.bet > 0) { funds += a.bet * a.win * payOutBonus; fundsDisplay = int(funds); a.bet = 0; ++a.betCurrent; var v3 = a.attachMovie('leChipWin', 'leChip' + a.betCurrent, a.getNextHighestDepth()); v3._x = _root.randRange(-5, 5); v3._y = 60 - 10 * a.betCurrent; v3.xpos = a._x; v3.ypos = a._y; p = 1; while (p <= a.betCurrent) { fireWeapon(a['leChip' + p], 25, 4, 10, -1); ++p; } a.betCurrent = 0; payOutBonus = 1; } } ++i; } if (!chipMoving) { cardBusy = false; } } function clearEm(crap) { if (!cardBusy || crap) { i = 1; while (i <= 7) { a = this['b' + i]; if (a.bet > 0 && !crap) { funds += a.bet; fundsDisplay = int(funds); } if (!crap) { p = 1; while (p <= a.betCurrent) { fireWeapon(a['leChip' + p], 25, 24, 10, -1); ++p; } } else { p = 1; while (p <= a.betCurrent) { fireWeapon(a['leChip' + p], 25, 8, 10, 1); ++p; } } a.betCurrent = 0; a.bet = 0; ++i; } } } function fireWeapon(projectileMC, projectileLifeMax, projectileSpeed, projectileSpread, projectileTarget) { cardBusy = true; chipMoving = true; var v7; var v4 = projectileMC.ypos - 450 * projectileTarget; if (projectileTarget == -1) { projectileTarget = -400; } var v5 = projectileMC.xpos - projectileTarget; projectileMC.projectileLife = 0; projectileAngle = Math.atan2(v4, v5); projectileMC.xMove = Math.cos(projectileAngle) * projectileSpeed; projectileMC.yMove = Math.sin(projectileAngle) * projectileSpeed; projectileMC.onEnterFrame = function () { this._x -= this.xMove * 1.5 * (this.projectileLife * this.projectileLife * 0.08); this._y += this.yMove * (this.projectileLife * this.projectileLife * 0.08); if (this.projectileLife > projectileLifeMax) { this.removeMovieClip(); cardBusy = false; chipMoving = false; } if (projectileLifeMax != 0) { ++this.projectileLife; } }; } function placeEm(which) { a = this['b' + which]; if (funds >= betPrice && a.bet < maxBet) { funds -= betPrice; fundsDisplay = int(funds); a.bet += betPrice; ++a.betCurrent; var v3 = a.attachMovie('leChip', 'leChip' + a.betCurrent, a.getNextHighestDepth()); v3._x = _root.randRange(-5, 5); v3._y = 60 - 10 * a.betCurrent; v3.xpos = a._x; v3.ypos = a._y; } } function placeEmAll() { if (!cardBusy) { i = 1; while (i <= 7) { placeEm(i); ++i; } } } function setEmUp() { i = 1; while (i <= 7) { a = this['b' + i]; a.bet = 0; a.betCurrent = 0; a.onRelease = function () { if (!cardBusy) { if (funds >= betPrice && this.bet < maxBet) { funds -= betPrice; fundsDisplay = int(funds); this.bet += betPrice; ++this.betCurrent; var v3 = this.attachMovie('leChip', 'leChip' + this.betCurrent, this.getNextHighestDepth()); v3._x = _root.randRange(-5, 5); v3._y = 60 - 10 * this.betCurrent; v3.xpos = this._x; v3.ypos = this._y; } } }; ++i; } this.b1.win = 2; this.b2.win = 1.5; this.b3.win = 1.2; this.b4.win = 3; this.b5.win = 1.2; this.b6.win = 1.5; this.b7.win = 2; this.b1.hit = 5; this.b2.hit = 6; this.b3.hit = 7; this.b4.hit = 2; this.b5.hit = 9; this.b6.hit = 10; this.b7.hit = 11; } stop(); var roll1 = 0; var roll2 = 0; var rollResult = 0; var funds = 100; var fundsDisplay = int(funds); var betPrice = 5; var cardBusy = false; var maxBet = 50; var payOutBonus = 1; var chipMoving = false; setEmUp(); } } movieClip 3161 { } button 3164 { on (release) { _root.hudInfo.gotoAndStop('Tavern'); } } button 3165 { on (release) { _root.fader.gotoAndPlay('fadeOut'); _root.fadeOutTarget = 'sex'; _root.sexScene = 'tavern'; _root.feedText2 = ''; _root.feedText = ''; _root.deselectAll(); } } movieClip 3167 { frame 1 { function changeColor(object, color) { var v1 = new Color(object); v1.setRGB(int(parseInt(String(color), 16))); } stop(); var charTotal = 6; var charsUnlocked = new Array(1, 0, 0, 0, 0, 0); if (_root.UnlocksGeneric[5][2] == 1) { charsUnlocked[1] = 1; } if (_root.UnlocksGeneric[6][2] == 1) { charsUnlocked[2] = 1; } if (_root.UnlocksGeneric[7][2] == 1) { charsUnlocked[3] = 1; } if (_root.UnlocksGeneric[18][2] == 1) { charsUnlocked[4] = 1; } if (_root.UnlocksGeneric[20][2] == 1) { charsUnlocked[5] = 1; } wumbo = 0; while (wumbo < charTotal) { var charTile = lePrivate.attachMovie('pHead', 'p' + String(wumbo), _root.extraDepthInitial + wumbo); charTile.charX = -375 + wumbo * 150; charTile.charY = 100; charTile._x = charTile.charX; charTile._y = charTile.charY; if (charsUnlocked[wumbo] == 1) { charTile.gotoAndStop(1); charTile.head.gotoAndStop(wumbo + 1); charTile.head.eyelid.stop(); charTile.hairback.gotoAndStop(wumbo + 1); charTile.hairback2.gotoAndStop(wumbo + 1); changeColor('charTile.head.outline', _root.charColor[wumbo][0]); changeColor('charTile.head.fill', _root.charColor[wumbo][1]); changeColor('charTile.head.shade', _root.charColor[wumbo][2]); changeColor('charTile.head.ear1.outline', _root.charColor[wumbo][0]); changeColor('charTile.head.ear1.fill', _root.charColor[wumbo][1]); changeColor('charTile.head.ear1.shade', _root.charColor[wumbo][2]); changeColor('charTile.head.ear2.outline', _root.charColor[wumbo][0]); changeColor('charTile.head.ear2.fill', _root.charColor[wumbo][1]); changeColor('charTile.head.ear2.shade', _root.charColor[wumbo][2]); changeColor('charTile.head.horn.outline', _root.charColor[wumbo][0]); changeColor('charTile.head.horn.fill', _root.charColor[wumbo][1]); changeColor('charTile.head.horn.shade', _root.charColor[wumbo][2]); changeColor('charTile.neck.outline', _root.charColor[wumbo][0]); changeColor('charTile.neck.fill', _root.charColor[wumbo][1]); changeColor('charTile.neck.shade', _root.charColor[wumbo][2]); charTile.onRollOver = function () { this._xscale = 110; this._yscale = 110; this._y -= 10; }; charTile.onRollOut = function () { this._xscale = 100; this._yscale = 100; this._y += 10; }; charTile.onPress = function () { j = 0; while (j < charTotal) { lePrivate['p' + j].Highlight._alpha = 0; ++j; } this.Highlight._alpha = 100; _root.charSelected = int((this._name.split(''))[1]); _root.RefreshSpecalistSelected(); }; } else { charTile.gotoAndStop(2); } ++wumbo; } } } button 3174 { on (release) { nextFrame(); } } movieClip 3186 { } movieClip 3189 { } movieClip 3192 { } button 3196 { on (release) { gotoAndStop('help2'); } } button 3210 { on (release) { prevFrame(); } } movieClip 3218 { } button 3243 { on (release) { gotoAndStop('help'); } } button 3253 { on (release) { if (_root.perksLeft < 1) { _root.townName = String(_root.hudInfo.townNameInput.text); _root.ascensionNG(); } else { nextFrame(); } } } movieClip 3259 { } button 3261 { on (release) { _root.townName = String(_root.hudInfo.townNameInput.text); _root.ascensionNG(); } } movieClip 3267 { frame 1 { stop(); } frame 2 { if (showHints == 1) { _root.topRightHUD.adviserHintArrow.play(); showHints = 2; } } frame 2 { _root.hudInfo.underlay.useHandCursor = false; _root.hudCard._alpha = 0; _root.adviserHint(); } frame 2 { _root.playsound('click.wav'); } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Время'; _root.feedText = 'Именно этот день сейчас в игре.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 2; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { _root.deselectAll(); } } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = _root.resources[0][0] + ': ' + _root.resourceBits; _root.feedText = 'Битсы - это те монетки, что нужны для финансирования исследований и зданий.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Доход: ' + _root.resourceBitsCycle; _root.feedText = 'Столько битсов вы получаете в день. Большее население приносит больший доход.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = _root.resources[1][0] + ': ' + _root.resourceFood; _root.feedText = 'Еда нужна, что держать ваших пони довольными и с полными животиками.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Производство: ' + _root.resourceFoodCycleDisplay; _root.feedText = 'Именно столько еды производится в день. Магазины могут ускорить производство.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = _root.resources[2][0] + ': ' + _root.resourceTech; _root.feedText = 'Tech points can be spent to unlock new technologies and upgrades.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Исследование: ' + _root.resourceFoodCycle; _root.feedText = 'Столько очков науки вы получаете в день.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = _root.resources[3][0] + ': ' + _root.resourceGems; _root.feedText = 'Камни - это дорогой ресурс для разных вещей.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Добыча: ' + _root.resourceGemsCycle; _root.feedText = 'Столько камней добывается в день.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Счастье: ' + _root.happinessDisplay; _root.feedText = 'Счастливые пони - здоровые пони. Вы же не хотите кучку угрюмых кобыл, не так ли?'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Настроение: ' + _root.resourceHappyCycle; _root.feedText = 'Столько счастья вы получаете или теряете в день.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Население: ' + _root.popTotal; _root.feedText = 'Жители - основа любого города!'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Вместимость еды: ' + _root.resourceCapFood; _root.feedText = 'Именно столько еды может храниться в вашем городе. Магазины и дома увеличивают это число.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Состояние среды: ' + _root.environmentDisplay; _root.feedText = 'Деревья и сады понижают негативный эффект от зданий, но только продвинутые меры могут восстановить природу. Чейнжлинги будут атаковать чаще, если будет плохое состояние природы.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Очки экологии: ' + _root.environmentScore; _root.feedText = 'Деревья увеличивают их на 1, но большинство зданий уменьшает их. Чем дольше это значение положительно, тем лучше природе.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Лидерство'; _root.feedText = 'Население приносит +5% дохода с каждым уровнем этого навыка.\rНе влияет на карьеры, библиотеки и проч..'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Дипломатия'; _root.feedText = 'Уменьшает негативный эффект счастью от зданий на 1% за уровень навыка.\rУменьшает негативный эффект счастью от указов на 3% за уровень навыка.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Знание'; _root.feedText = 'Здания приносят на 5% очков науки больше.\rНе влияет на указы.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Архитектура'; _root.feedText = 'Ускоряет постройку зданий на 15% за уровень навыка.\rУскоряет работу генератора щита на 10% за уровень навыка.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Дисциплина'; _root.feedText = 'Специалисты на 2% эффективнее в рейдах и тренируются на 2% быстрее за уровень навыка.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Экология'; _root.feedText = 'Уменьшает негативный эффект экологии от зданий на 5%.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Торговля'; _root.feedText = 'Торговцы приходят быстрее.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Мана'; _root.feedText = 'Используются для сил советника.\rЕсли счастье вашего города полное, то 10% его каждый день переходят в ману'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2511 { onClipEvent (rollOver) { _root.feedText2 = 'Характеристики персонажа'; _root.feedText = 'Именно это вы выбрали при начале игры, да.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } frame 3 { _root.playsound('click.wav'); } frame 4 { p = 1; while (p < 6) { a = _root.hudInfo['re' + p]; a.gotoAndStop(1); a.Selected = false; if (_root.edictResidentialActive != 0 || _root.traitsOwned[15] == 1) { a.Disabled = true; if (_root.edictResidentialActive == (a._name.split(''))[2]) { a.gotoAndStop(5); } else { a.gotoAndStop(3); } } else { a.Disabled = false; } a.onEnterFrame = function () { if (_root.edictResidentialActive != 0 || _root.traitsOwned[15] == 1) { this.Disabled = true; if (_root.edictResidentialActive == (this._name.split(''))[2]) { this.gotoAndStop(5); } else { this.gotoAndStop(3); } } else { this.Disabled = false; if (this.Selected == false) { this.gotoAndStop(1); } } }; a.onPress = function () { if (this.Disabled == false) { this.gotoAndStop(4); } this.Selected = true; }; a.onRelease = function () { if (this.Disabled == false) { _root.activateEdict((this._name.split(''))[2], 'Residential'); this.gotoAndStop(2); } this.Selected = false; }; a.onRollOver = function () { if (_root.edictResidentialActive != 0 || _root.traitsOwned[15] == 1) { if (_root.edictResidentialActive == (this._name.split(''))[2]) { this.gotoAndStop(5); } else { this.gotoAndStop(3); } } else { _root.feedText2 = 'Применить указ'; _root.feedText = 'Изменение некоторых свойств города на одну неделю.\rУказы бесплатны, но их нельзя отменить или изменить до истечения срока действия.'; this.gotoAndStop(2); } this.Selected = true; }; a.onRollOut = function () { if (_root.edictResidentialActive != 0 || _root.traitsOwned[15] == 1) { if (_root.edictResidentialActive == (this._name.split(''))[2]) { this.gotoAndStop(5); } else { this.gotoAndStop(3); } } else { this.gotoAndStop(1); } _root.feedText2 = ''; _root.feedText = ''; this.Selected = false; }; a.onReleaseOutside = function () { if (_root.edictResidentialActive != 0 || _root.traitsOwned[15] == 1) { if (_root.edictResidentialActive == (this._name.split(''))[2]) { this.gotoAndStop(5); } else { this.gotoAndStop(3); } } else { this.gotoAndStop(1); } this.Selected = false; }; ++p; } p = 0; while (p < 6) { a = _root.hudInfo['le' + p]; a.gotoAndStop(1); a.Selected = false; if (_root.edictLibraryActive != 0 || _root.traitsOwned[15] == 1) { a.Disabled = true; if (_root.edictLibraryActive == (a._name.split(''))[2]) { a.gotoAndStop(5); } else { a.gotoAndStop(3); } } else { a.Disabled = false; } a.onEnterFrame = function () { if (_root.edictLibraryActive != 0 || _root.traitsOwned[15] == 1) { this.Disabled = true; if (_root.edictLibraryActive == (this._name.split(''))[2]) { this.gotoAndStop(5); } else { this.gotoAndStop(3); } } else { this.Disabled = false; if (this.Selected == false) { this.gotoAndStop(1); } } }; a.onPress = function () { if (this.Disabled == false) { this.gotoAndStop(4); } this.Selected = true; }; a.onRelease = function () { if (this.Disabled == false) { _root.activateEdict((this._name.split(''))[2], 'Library'); this.gotoAndStop(2); } this.Selected = false; }; a.onRollOver = function () { if (_root.edictLibraryActive != 0 || _root.traitsOwned[15] == 1) { if (_root.edictLibraryActive == (this._name.split(''))[2]) { this.gotoAndStop(5); } else { this.gotoAndStop(3); } } else { _root.feedText2 = 'Применить указ'; _root.feedText = 'Изменение некоторых свойств города на одну неделю.\rУказы бесплатны, но их нельзя отменить или изменить до истечения срока действия.'; this.gotoAndStop(2); } this.Selected = true; }; a.onRollOut = function () { if (_root.edictLibraryActive != 0 || _root.traitsOwned[15] == 1) { if (_root.edictLibraryActive == (this._name.split(''))[2]) { this.gotoAndStop(5); } else { this.gotoAndStop(3); } } else { this.gotoAndStop(1); } _root.feedText2 = ''; _root.feedText = ''; this.Selected = false; }; a.onReleaseOutside = function () { if (_root.edictLibraryActive != 0 || _root.traitsOwned[15] == 1) { if (_root.edictLibraryActive == (this._name.split(''))[2]) { this.gotoAndStop(5); } else { this.gotoAndStop(3); } } else { this.gotoAndStop(1); } this.Selected = false; }; ++p; } p = 0; while (p < 6) { a = _root.hudInfo['ie' + p]; a.gotoAndStop(1); a.Selected = false; if (_root.edictIndustrialActive != 0 || _root.traitsOwned[15] == 1) { a.Disabled = true; if (_root.edictIndustrialActive == (a._name.split(''))[2]) { a.gotoAndStop(5); } else { a.gotoAndStop(3); } } else { a.Disabled = false; } a.onEnterFrame = function () { if (_root.edictIndustrialActive != 0 || _root.traitsOwned[15] == 1) { this.Disabled = true; if (_root.edictIndustrialActive == (this._name.split(''))[2]) { this.gotoAndStop(5); } else { this.gotoAndStop(3); } } else { this.Disabled = false; if (this.Selected == false) { this.gotoAndStop(1); } } }; a.onPress = function () { if (this.Disabled == false) { this.gotoAndStop(4); } this.Selected = true; }; a.onRelease = function () { if (this.Disabled == false) { _root.activateEdict((this._name.split(''))[2], 'Industrial'); this.gotoAndStop(2); } this.Selected = false; }; a.onRollOver = function () { if (_root.edictIndustrialActive != 0 || _root.traitsOwned[15] == 1) { if (_root.edictIndustrialActive == (this._name.split(''))[2]) { this.gotoAndStop(5); } else { this.gotoAndStop(3); } } else { _root.feedText2 = 'Применить указ'; _root.feedText = 'Изменение некоторых свойств города на одну неделю.\rУказы бесплатны, но их нельзя отменить или изменить до истечения срока действия.'; this.gotoAndStop(2); } this.Selected = true; }; a.onRollOut = function () { if (_root.edictIndustrialActive != 0 || _root.traitsOwned[15] == 1) { if (_root.edictIndustrialActive == (this._name.split(''))[2]) { this.gotoAndStop(5); } else { this.gotoAndStop(3); } } else { this.gotoAndStop(1); } _root.feedText2 = ''; _root.feedText = ''; this.Selected = false; }; a.onReleaseOutside = function () { if (_root.edictIndustrialActive != 0 || _root.traitsOwned[15] == 1) { if (_root.edictIndustrialActive == (this._name.split(''))[2]) { this.gotoAndStop(5); } else { this.gotoAndStop(3); } } else { this.gotoAndStop(1); } this.Selected = false; }; ++p; } } frame 4 { _root.playsound('click.wav'); } instance of movieClip 1258 { onClipEvent (load) { if (_root.cache.data.PlayerDataOptions[7] == false) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } onClipEvent (release) { if (_root.cache.data.PlayerDataOptions[7] == false) { _root.renewEdicts = true; _root.cache.data.PlayerDataOptions[7] = true; this.gotoAndStop(2); } else { _root.renewEdicts = false; _root.cache.data.PlayerDataOptions[7] = false; this.gotoAndStop(1); } } } frame 5 { _root.playsound('click.wav'); } frame 5 { if (_root.UnlocksGallery[0][1] == 1) { this.u1.Locked._alpha = 0; this.u1.onRelease = function () { _root.MiniScene = 2; _root.unlockpop.gotoAndStop(5); }; } if (_root.UnlocksGallery[1][1] == 1) { this.u2.Locked._alpha = 0; this.u2.onRelease = function () { _root.MiniScene = 3; _root.unlockpop.gotoAndStop(5); }; } if (_root.UnlocksGallery[2][1] == 1) { this.u3.Locked._alpha = 0; this.u3.onRelease = function () { _root.MiniScene = 4; _root.unlockpop.gotoAndStop(5); }; } if (_root.UnlocksGallery[3][1] == 1) { this.u4.Locked._alpha = 0; this.u4.onRelease = function () { _root.MiniScene = 5; _root.unlockpop.gotoAndStop(5); }; } var counting = 0; if (_root.UnlocksGeneric[1][2] == 1) { ++counting; } if (_root.UnlocksGeneric[2][2] == 1) { ++counting; } if (_root.UnlocksGeneric[3][2] == 1) { ++counting; } if (_root.UnlocksGeneric[8][2] == 1) { ++counting; } if (_root.UnlocksGeneric[9][2] == 1) { ++counting; } if (_root.UnlocksGeneric[10][2] == 1) { ++counting; } if (_root.UnlocksGeneric[11][2] == 1) { ++counting; } if (_root.UnlocksGeneric[12][2] == 1) { ++counting; } if (_root.UnlocksGeneric[13][2] == 1) { ++counting; } if (_root.UnlocksGeneric[14][2] == 1) { ++counting; } if (_root.UnlocksGeneric[15][2] == 1) { ++counting; } if (_root.UnlocksGeneric[16][2] == 1) { ++counting; } var traitsunlocked = counting + ' из 12'; counting = 1; if (_root.UnlocksGeneric[5][2] == 1) { ++counting; } if (_root.UnlocksGeneric[6][2] == 1) { ++counting; } if (_root.UnlocksGeneric[7][2] == 1) { ++counting; } if (_root.UnlocksGeneric[18][2] == 1) { ++counting; } if (_root.UnlocksGeneric[20][2] == 1) { ++counting; } var charactersunlocked = counting + ' из 6'; counting = 0; i = 0; while (i < _root.optionsTableLocked.length - 1) { if (_root.optionsTableLocked[i][2] == 1) { ++counting; } ++i; } var optionsunlocked = counting + ' из 3'; } frame 6 { _root.playsound('click.wav'); } frame 6 { var dummyTile = specialistTable.attachMovie('specialistIcon', 'dummy', _root.extraDepthInitial + 50); dummyTile._x = 2000; dummyTile._y = 2000; _root.specialistSelected = -1; wumbo = 0; while (wumbo < _root.specialistsTotal) { var specialistTile = specialistTable.attachMovie('specialistIcon', 'specialist' + String(wumbo), _root.extraDepthInitial + wumbo); angle = 6.283185307179586 / _root.specialistsTotal; specialistTile.specialistX = +(Math.sin(angle * wumbo) * 100); specialistTile.specialistY = 190 + Math.cos(angle * wumbo) * 100; specialistTile._x = specialistTile.specialistX; specialistTile._y = specialistTile.specialistY; specialistTile.nameRank = _root.specialistsStats[wumbo][0] + '\n' + 'Уровень ' + _root.specialistsStats[wumbo][1]; j = 1; while (j < 5) { _root.hudInfo['snap' + j + 'a'].Slotted = false; _root.hudInfo['snap' + j + 'b'].Slotted = false; _root.hudInfo['snap' + j + 'c'].Slotted = false; _root.hudInfo['snap' + j + 'd'].Slotted = false; ++j; } var checkHit = false; j = 1; while (j < 5) { if (_root.specialistsStats[wumbo][2] == String('snap' + j + 'a')) { specialistTile._x = _root.hudInfo['snap' + j + 'a']._x; specialistTile._y = _root.hudInfo['snap' + j + 'a']._y - 80; _root.hudInfo['snap' + j + 'a'].Slotted = true; break; } if (_root.specialistsStats[wumbo][2] == String('snap' + j + 'b')) { specialistTile._x = _root.hudInfo['snap' + j + 'b']._x; specialistTile._y = _root.hudInfo['snap' + j + 'b']._y - 80; _root.hudInfo['snap' + j + 'b'].Slotted = true; break; } if (_root.specialistsStats[wumbo][2] == String('snap' + j + 'c')) { specialistTile._x = _root.hudInfo['snap' + j + 'c']._x; specialistTile._y = _root.hudInfo['snap' + j + 'c']._y - 80; _root.hudInfo['snap' + j + 'c'].Slotted = true; break; } if (_root.specialistsStats[wumbo][2] == String('snap' + j + 'd')) { specialistTile._x = _root.hudInfo['snap' + j + 'd']._x; specialistTile._y = _root.hudInfo['snap' + j + 'd']._y - 80; _root.hudInfo['snap' + j + 'd'].Slotted = true; break; } ++j; } specialistTile.onPress = function () { startDrag(this, true); this.swapDepths(dummyTile); j = 0; while (j < 5) { _root.hudInfo.specialistTable['specialist' + j].Highlight._alpha = 0; ++j; } this.Highlight._alpha = 100; _root.specialistSelected = int((this._name.split(''))[10]); _root.RefreshSpecalistSelected(); j = 1; while (j < 5) { if (_root.specialistsStats[int((this._name.split(''))[10])][2] == String('snap' + j + 'a')) { _root.hudInfo['snap' + j + 'a'].Slotted = false; } if (_root.specialistsStats[int((this._name.split(''))[10])][2] == String('snap' + j + 'b')) { _root.hudInfo['snap' + j + 'b'].Slotted = false; } if (_root.specialistsStats[int((this._name.split(''))[10])][2] == String('snap' + j + 'c')) { _root.hudInfo['snap' + j + 'c'].Slotted = false; } if (_root.specialistsStats[int((this._name.split(''))[10])][2] == String('snap' + j + 'd')) { _root.hudInfo['snap' + j + 'd'].Slotted = false; } ++j; } }; specialistTile.onRelease = function () { checkHit = false; this.swapDepths(dummyTile); j = 1; while (j < 5) { if (_root.hudInfo['snap' + j + 'a'].hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.hudInfo['snap' + j + 'a'].Slotted == false) { this._x = _root.hudInfo['snap' + j + 'a']._x; this._y = _root.hudInfo['snap' + j + 'a']._y - 80; _root.specialistsStats[int((this._name.split(''))[10])][2] = String('snap' + j + 'a'); _root.hudInfo['snap' + j + 'a'].Slotted = true; checkHit = true; break; } } else { if (_root.hudInfo['snap' + j + 'b'].hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.hudInfo['snap' + j + 'b'].Slotted == false) { this._x = _root.hudInfo['snap' + j + 'b']._x; this._y = _root.hudInfo['snap' + j + 'b']._y - 80; _root.specialistsStats[int((this._name.split(''))[10])][2] = String('snap' + j + 'b'); _root.hudInfo['snap' + j + 'b'].Slotted = true; checkHit = true; break; } } else { if (_root.hudInfo['snap' + j + 'c'].hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.hudInfo['snap' + j + 'c'].Slotted == false) { this._x = _root.hudInfo['snap' + j + 'c']._x; this._y = _root.hudInfo['snap' + j + 'c']._y - 80; _root.specialistsStats[int((this._name.split(''))[10])][2] = String('snap' + j + 'c'); _root.hudInfo['snap' + j + 'c'].Slotted = true; checkHit = true; break; } } else { if (_root.hudInfo['snap' + j + 'd'].hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.hudInfo['snap' + j + 'd'].Slotted == false) { this._x = _root.hudInfo['snap' + j + 'd']._x; this._y = _root.hudInfo['snap' + j + 'd']._y - 80; _root.specialistsStats[int((this._name.split(''))[10])][2] = String('snap' + j + 'd'); _root.hudInfo['snap' + j + 'd'].Slotted = true; checkHit = true; break; } } } } } ++j; } if (checkHit == false) { _root.specialistsStats[int((this._name.split(''))[10])][2] = ''; this._x = this.specialistX; this._y = this.specialistY; } _root.CheckSpecialists(); stopDrag(); }; ++wumbo; } } frame 10 { _root.playsound('click.wav'); } frame 11 { _root.playsound('click.wav'); } frame 12 { if (_root.REchoice2 == '') { choiceBtn2.unloadMovie(); } if (_root.REchoice3 == '') { choiceBtn3.unloadMovie(); } if (_root.REchoice4 == '') { choiceBtn4.unloadMovie(); } } instance of movieClip 1223 { onClipEvent (release) { _root.eventAction1(_root.CurrentEvent, 1); } onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } instance choiceBtn2 of movieClip 1223 { onClipEvent (release) { _root.eventAction1(_root.CurrentEvent, 2); } onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } instance choiceBtn3 of movieClip 1223 { onClipEvent (release) { _root.eventAction1(_root.CurrentEvent, 3); } onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } instance choiceBtn4 of movieClip 1223 { onClipEvent (release) { _root.eventAction1(_root.CurrentEvent, 4); } onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } frame 13 { gotoAndStop('randomEvent'); } frame 16 { _root.hudInfo.underlay.useHandCursor = false; if (_root.pauseDuringMeet == true && _root.gamePaused != true) { _root.pauseGame(); } } frame 17 { _root.hudInfo.underlay.useHandCursor = false; if (_root.pauseDuringMeet == true && _root.gamePaused != true) { _root.pauseGame(); } } frame 31 { _root.hudInfo.underlay.useHandCursor = false; if (_root.gamePaused != true) { _root.pauseGame(); } } frame 32 { p = 0; while (p < 4) { var perkTile = perkTable.attachMovie('perkBtn' + _root.perkChoice[p], 'perk' + _root.perkChoice[p], _root.extraDepthInitial + p); if (p == 0 || p == 2) { perkTile.perkX = -185; } else { perkTile.perkX = 190; } if (p == 0 || p == 1) { perkTile.perkY = 0; } else { perkTile.perkY = 100; } a = perkTile; a.Selected = false; a._x = perkTile.perkX; a._y = perkTile.perkY; if (_root.perksOwned[_root.perkChoice[p]] == 1) { a.gotoAndStop(5); } else { a.gotoAndStop(1); } a.onPress = function () { this.gotoAndStop(4); this.Selected = true; }; if (_root.perkChoice[p] < 10) { a.onRelease = function () { if (_root.perksOwned[(this._name.split(''))[4]] == 1) { _root.perksOwned[(this._name.split(''))[4]] = 0; this.gotoAndStop(2); ++_root.perksLeft; } else { if (_root.perksLeft > 0) { _root.perksOwned[(this._name.split(''))[4]] = 1; this.gotoAndStop(5); --_root.perksLeft; } else { this.gotoAndStop(2); } } this.Selected = false; }; a.onRollOver = function () { if (_root.perksOwned[(this._name.split(''))[4]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } this.Selected = true; }; a.onRollOut = function () { if (_root.perksOwned[(this._name.split(''))[4]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(1); } this.Selected = false; }; a.onReleaseOutside = function () { if (_root.perksOwned[(this._name.split(''))[4]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(1); } this.Selected = false; }; } else { a.onRelease = function () { if (_root.perksOwned['1' + (this._name.split(''))[5]] == 1) { _root.perksOwned['1' + (this._name.split(''))[5]] = 0; this.gotoAndStop(2); ++_root.perksLeft; } else { if (_root.perksLeft > 0) { _root.perksOwned['1' + (this._name.split(''))[5]] = 1; this.gotoAndStop(5); --_root.perksLeft; } else { this.gotoAndStop(2); } } this.Selected = false; }; a.onRollOver = function () { if (_root.perksOwned['1' + (this._name.split(''))[5]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } this.Selected = true; }; a.onRollOut = function () { if (_root.perksOwned['1' + (this._name.split(''))[5]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(1); } this.Selected = false; }; a.onReleaseOutside = function () { if (_root.perksOwned['1' + (this._name.split(''))[5]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(1); } this.Selected = false; }; } ++p; } } } movieClip 3271 { } movieClip 3278 { frame 2 { if (_root.loadGame == true) { _root.readData(); } _root.autoSave = _root.cache.data.PlayerDataOptions[1]; if (_root.FAPMODE == 1) { _root.charSelected = _root.CurrentAdviser; _root.deselectAll(); _root.gotoAndStop('sex'); _root.sexScene = 'garden'; _root.feedText2 = ''; _root.feedText = ''; } else { if (_root.MusikLaunched == 'No') { _root.MusikLaunched = 'Yes'; _root.queuemusik(0); _root.MusikLoop = 0; } } } frame 34 { stop(); } frame 55 { _root.writeData(); } frame 59 { stop(); _root.gotoAndStop(_root.fadeOutTarget); } frame 70 { stop(); } } frame 11 { var header = charName + ', Уровень ' + loveRank + ' мэр города ' + townName; var achievements = ' ' + clock + '\n'; } movieClip 3284 { frame 10 { _root.loadGame = true; _root.gotoAndStop('game'); } } frame 14 { function createOptions() { var v4 = 0; var v6 = 0; var v5 = 0; var v7 = 0; j = 0; while (j < optionsTable.length - 1) { if (optionsTable[j][2] == 1) { var v3 = _root.extraMenu.Pop.attachMovie(optionsTable[j][0], j + optionsTable[j][0], _root.optionDepthInitial + v7); v3._x = -45 + 38 * v6; v3._y = -15 + 38 * v4; if (j < 10) { v3.onPress = function () { pressOption(optionsTable[int((this._name.split(''))[0])][0]); }; v3.onRollOver = function () { _root.extraMenu.Descript = optionsTable[int((this._name.split(''))[0])][1]; _root.extraMenu.DescriptName = optionsTable[int((this._name.split(''))[0])][0]; }; v3.onRollOut = function () { _root.extraMenu.Descript = ''; _root.extraMenu.DescriptName = ''; }; } else { v3.onPress = function () { pressOption(optionsTable[int((this._name.split(''))[0] + (this._name.split(''))[1])][0]); }; v3.onRollOver = function () { _root.extraMenu.Descript = optionsTable[int((this._name.split(''))[0] + (this._name.split(''))[1])][1]; _root.extraMenu.DescriptName = optionsTable[int((this._name.split(''))[0] + (this._name.split(''))[1])][0]; }; v3.onRollOut = function () { _root.extraMenu.Descript = ''; _root.extraMenu.DescriptName = ''; }; } ++v7; ++v4; ++v5; if (v5 >= 10) { v5 = 0; ++v6; v4 = 0; } } ++j; } j = 0; while (j < optionsTableLocked.length - 1) { if (optionsTableLocked[j][2] == 1) { v3 = _root.extraMenu.Pop.attachMovie(optionsTableLocked[j][0], j + optionsTableLocked[j][0], _root.optionDepthInitial + v7); v3._x = -45 + 38 * v6; v3._y = 15 + 38 * v4; v3.onPress = function () { pressOption(optionsTableLocked[int((this._name.split(''))[0])][0]); }; v3.onRollOver = function () { _root.extraMenu.Descript = optionsTableLocked[int((this._name.split(''))[0])][1]; _root.extraMenu.DescriptName = optionsTableLocked[int((this._name.split(''))[0])][0]; }; v3.onRollOut = function () { _root.extraMenu.Descript = ''; _root.extraMenu.DescriptName = ''; }; ++v7; ++v4; ++v5; if (v5 >= 10) { v5 = 0; ++v6; v4 = 0; } } ++j; } } function showOptions() { _root.extraMenu.play(); if (optionsHidden == true) { optionsHidden = false; } else { optionsHidden = true; } } function toggleStockings() { _root.char.foot1.stocking.type.nextFrame(); _root.char.foot2.stocking.type.nextFrame(); _root.char.leg1.stocking.type.nextFrame(); _root.char.leg2.stocking.type.nextFrame(); } function pressOption(option) { if (option == NaN) { } else { if (option == 'Подковы') { if (_root.horseshoeAlpha == 100) { _root.horseshoeAlpha = 0; } else { _root.horseshoeAlpha = 100; } _root.char.foot1.horseshoe._alpha = _root.horseshoeAlpha; _root.char.foot2.horseshoe._alpha = _root.horseshoeAlpha; _root.cache.data.Cosmetics[0] = _root.horseshoeAlpha; } else { if (option == 'Вымечко') { if (_root.CrotchBoobs == 0) { _root.CrotchBoobs = 1; _root.char.crotchboobs.gotoAndStop(_root.CharacterSkin + 'a'); } else { _root.CrotchBoobs = 0; _root.char.crotchboobs.gotoAndStop('disabled'); } _root.cache.data.Cosmetics[1] = _root.CrotchBoobs; } else { if (option == 'Футанари') { if (_root.FutaMode == 0) { _root.FutaMode = 1; _root.char.cock.gotoAndStop(_root.CharacterSkin + 'a'); _root.char.balls.gotoAndStop(_root.CharacterSkin + 'a'); } else { if (_root.FutaMode == 1) { _root.FutaMode = 2; _root.char.cock.gotoAndStop(_root.CharacterSkin + 'a'); _root.char.balls.gotoAndStop('disabled'); } else { _root.FutaMode = 0; _root.char.cock.gotoAndStop('disabled'); _root.char.balls.gotoAndStop('disabled'); } } _root.cache.data.Cosmetics[2] = _root.FutaMode; } else { if (option == 'Зеркалировать') { _root.char._xscale *= -1; } else { if (option == 'Антро') { if (_root.maleType == 2) { _root.maleType = 1; } else { _root.maleType = 2; } _root.setMaleType(); } else { if (option == 'Очки') { _root.char.head.eyewear.nextFrame(); } else { if (option == 'Аксессуары') { _root.char.chest.scarf.nextFrame(); } else { if (option == 'Лифчик') { _root.char.chest.bra.nextFrame(); } else { if (option == 'Бантик') { _root.char.head.hairbow.nextFrame(); } else { if (option == 'Длинный меч') { _root.char.chest.sword.nextFrame(); } else { if (option == 'Румянец') { _root.char.head.blush.nextFrame(); } else { if (option == 'Чулочки') { if (_root.Stockings == 1) { _root.Stockings = 2; } else { if (_root.Stockings == 2) { _root.Stockings = 3; } else { _root.Stockings = 1; } } _root.char.foot1.stocking.gotoAndStop(_root.Stockings); _root.char.foot2.stocking.gotoAndStop(_root.Stockings); _root.char.leg1.stocking.gotoAndStop(_root.Stockings); _root.char.leg2.stocking.gotoAndStop(_root.Stockings); } else { if (option == 'Волосики') { _root.char.groin.pubes.pubes.nextFrame(); _root.char.vulvaupper.pubes.pubes.nextFrame(); } else { if (option == 'Кляп') { if (_root.Ballgag == 2) { _root.Ballgag = 1; } else { if (_root.Ballgag == 1) { _root.Ballgag = 2; } } _root.char.head.ballgag.gotoAndStop(Ballgag); } else { if (option == 'Быстрая смена') { _root.hotswap.nextFrame(); } else { if (option == 'Освещение') { _root.lighting.nextFrame(); } else { if (option == 'Фон') { _root.char.bg.nextFrame(); } else { if (option == 'Корсет') { _root.char.tummy.corset.nextFrame(); } else { if (option == 'Повязка') { if (_root.Blindfold == 2) { _root.char.head.eyelid.gotoAndPlay(2); _root.Blindfold = 1; } else { if (_root.Blindfold == 1) { _root.char.head.eyelid.gotoAndStop('closed'); _root.char.head.eyelashupper._alpha = 0; _root.Blindfold = 2; } } _root.char.head.blindfold.gotoAndStop(_root.Blindfold); } } } } } } } } } } } } } } } } } } } } } createOptions(); var optionsHidden = true; var horseshoeAlpha = _root.cache.data.Cosmetics[0]; var CrotchBoobs = _root.cache.data.Cosmetics[1]; var Stockings = 1; var StockingsType = 1; var Blindfold = 1; var Ballgag = 1; } frame 14 { function changePhase(scene, speed) { PhaseSpeed = speed; if (scene == 'idle' && _root.Phase != 'idle') { _root.Phase = scene; _root.char.gotoAndPlay(scene); _root.whiteflash.gotoAndPlay(2); _root.setMaleType(); } if (_root.Phase == 'idle' && scene != 'idle') { _root.whiteflash.gotoAndPlay(2); _root.setMaleType(); if (scene == 'tease' || scene == 'fuck') { _root.Phase = scene; _root.char.gotoAndPlay(scene + '_' + PhaseType + PhaseSpeed); } } else { if (scene == 'tease' || scene == 'fuck') { _root.Phase = scene; } } _root.navigation.navigation.phasetype2.gotoAndStop(Phase + PhaseSpeed); } function setColor() { var v2 = _root.maleColorRed; var v4 = _root.maleColorGreen; var v3 = _root.maleColorBlue; _root.maleColor[0] = rgb2col(v2 - 50, v4 - 50, v3 - 50); _root.maleColor[1] = rgb2col(v2, v4, v3); _root.recolorEveryPartMale(); } function rgb2col(red, green, blue) { return decColor2hex(red * 65536 + green * 256 + blue); } function decColor2hex(color) { colArr = ((color.toString(16)).toUpperCase()).split(''); numChars = colArr.length; a = 0; while (a < 6 - numChars) { colArr.unshift('0'); ++a; } return '0x' + colArr.join(''); } function changeColor(object, color) { var v1 = new Color(object); v1.setRGB(int(parseInt(String(color), 16))); } function setMaleType() { if (_root.maleType == 1) { _root.char.malearm1.gotoAndStop(_root.maleType); _root.char.malearm2.gotoAndStop(_root.maleType); _root.char.malearm1b.gotoAndStop(3); _root.char.malearm2b.gotoAndStop(3); } else { _root.char.malearm1.gotoAndStop(3); _root.char.malearm2.gotoAndStop(3); _root.char.malearm1b.gotoAndStop(_root.maleType); _root.char.malearm2b.gotoAndStop(_root.maleType); } _root.char.malearm1b.gotoAndStop(_root.maleType); _root.char.malearm2b.gotoAndStop(_root.maleType); _root.char.malearmup1.gotoAndStop(_root.maleType); _root.char.malearmup2.gotoAndStop(_root.maleType); _root.char.maletorso.gotoAndStop(_root.maleType); _root.char.malechest.gotoAndStop(_root.maleType); _root.char.malecock1.gotoAndStop(_root.maleType); _root.char.malecock2.gotoAndStop(_root.maleType); _root.char.maleleg1.gotoAndStop(_root.maleType); _root.char.maleleg2.gotoAndStop(_root.maleType); _root.char.malehand1.gotoAndStop(_root.maleType); _root.char.malehand2.gotoAndStop(_root.maleType); _root.char.malethumb1.gotoAndStop(_root.maleType); _root.char.malethumb2.gotoAndStop(_root.maleType); _root.char.malefoot1.gotoAndStop(_root.maleType); _root.char.malefoot2.gotoAndStop(_root.maleType); _root.recolorEveryPartMale(); } function recolorEveryPartMale() { changeColor('_root.char.malefoot1.outline', _root.maleColor[0]); changeColor('_root.char.malefoot2.outline', _root.maleColor[0]); changeColor('_root.char.malearm1.outline', _root.maleColor[0]); changeColor('_root.char.malearm2.outline', _root.maleColor[0]); changeColor('_root.char.malearm1b.outline', _root.maleColor[0]); changeColor('_root.char.malearm2b.outline', _root.maleColor[0]); changeColor('_root.char.malearmup1.outline', _root.maleColor[0]); changeColor('_root.char.malearmup2.outline', _root.maleColor[0]); changeColor('_root.char.maleleg1.outline', _root.maleColor[0]); changeColor('_root.char.maleleg2.outline', _root.maleColor[0]); changeColor('_root.char.maletorso.outline', _root.maleColor[0]); changeColor('_root.char.malechest.outline', _root.maleColor[0]); changeColor('_root.char.malehand1.outline', _root.maleColor[0]); changeColor('_root.char.malehand2.outline', _root.maleColor[0]); changeColor('_root.char.malethumb1.outline', _root.maleColor[0]); changeColor('_root.char.malethumb2.outline', _root.maleColor[0]); changeColor('_root.char.malecock1.outline1', _root.maleColor[0]); changeColor('_root.char.malecock1.outline2', _root.maleColor[0]); changeColor('_root.char.malecock1.balls.balloutline1', _root.maleColor[0]); changeColor('_root.char.malecock1.balls.balloutline2', _root.maleColor[0]); changeColor('_root.char.malecock2.outline', _root.maleColor[0]); changeColor('_root.char.malethumb2.outline', _root.maleColor[0]); changeColor('_root.char.malefoot1.fill', _root.maleColor[1]); changeColor('_root.char.malefoot2.fill', _root.maleColor[1]); changeColor('_root.char.malearm1.fill', _root.maleColor[1]); changeColor('_root.char.malearm2.fill', _root.maleColor[1]); changeColor('_root.char.malearm1b.fill', _root.maleColor[1]); changeColor('_root.char.malearm2b.fill', _root.maleColor[1]); changeColor('_root.char.malearmup1.fill', _root.maleColor[1]); changeColor('_root.char.malearmup2.fill', _root.maleColor[1]); changeColor('_root.char.maleleg1.fill', _root.maleColor[1]); changeColor('_root.char.maleleg2.fill', _root.maleColor[1]); changeColor('_root.char.maletorso.fill', _root.maleColor[1]); changeColor('_root.char.malechest.fill', _root.maleColor[1]); changeColor('_root.char.malehand1.fill', _root.maleColor[1]); changeColor('_root.char.malehand2.fill', _root.maleColor[1]); changeColor('_root.char.malethumb1.fill', _root.maleColor[1]); changeColor('_root.char.malethumb2.fill', _root.maleColor[1]); changeColor('_root.char.malecock1.fill1', _root.maleColor[1]); changeColor('_root.char.malecock1.fill2', _root.maleColor[1]); changeColor('_root.char.malecock1.balls.ballfill1', _root.maleColor[1]); changeColor('_root.char.malecock1.balls.ballfill2', _root.maleColor[1]); changeColor('_root.char.malecock2.fill', _root.maleColor[1]); changeColor('_root.char.malethumb2.fill', _root.maleColor[1]); } function recolorEveryPart(scheme) { _root.char.head.gotoAndStop(scheme + 1); _root.char.hairback.gotoAndStop(scheme + 1); _root.char.hairback2.gotoAndStop(scheme + 1); _root.char.tail.gotoAndStop(scheme + 1); _root.char.groin.gotoAndStop(String(scheme) + 'a'); _root.char.crotch.gotoAndStop(String(scheme) + 'a'); _root.char.vulvaupper.gotoAndStop(String(scheme) + 'a'); _root.char.vulvainner.gotoAndStop(String(scheme) + 'a'); _root.char.vulvalower.gotoAndStop(String(scheme) + 'a'); _root.char.vulvalabia.gotoAndStop(String(scheme) + 'a'); _root.char.vulvapussy.gotoAndStop(String(scheme) + 'a'); _root.char.analtop.gotoAndStop(String(scheme) + 'a'); _root.char.analbottom.gotoAndStop(String(scheme) + 'a'); recolorHooves(scheme); changeColor('_root.char.foot1.outline', _root.charColor[scheme][0]); changeColor('_root.char.foot1.fill', _root.charColor[scheme][1]); changeColor('_root.char.foot1.shade', _root.charColor[scheme][2]); changeColor('_root.char.foot2.outline', _root.charColor[scheme][0]); changeColor('_root.char.foot2.fill', _root.charColor[scheme][1]); changeColor('_root.char.foot2.shade', _root.charColor[scheme][2]); changeColor('_root.char.arm1.outline', _root.charColor[scheme][0]); changeColor('_root.char.arm1.fill', _root.charColor[scheme][1]); changeColor('_root.char.arm1.shade', _root.charColor[scheme][2]); changeColor('_root.char.arm2.outline', _root.charColor[scheme][0]); changeColor('_root.char.arm2.fill', _root.charColor[scheme][1]); changeColor('_root.char.arm2.shade', _root.charColor[scheme][2]); changeColor('_root.char.tummy.outline', _root.charColor[scheme][0]); changeColor('_root.char.tummy.fill', _root.charColor[scheme][1]); changeColor('_root.char.tummy.shade', _root.charColor[scheme][2]); changeColor('_root.char.chest.outline', _root.charColor[scheme][0]); changeColor('_root.char.chest.fill', _root.charColor[scheme][1]); changeColor('_root.char.chest.shade', _root.charColor[scheme][2]); changeColor('_root.char.neck.outline', _root.charColor[scheme][0]); changeColor('_root.char.neck.fill', _root.charColor[scheme][1]); changeColor('_root.char.neck.shade', _root.charColor[scheme][2]); changeColor('_root.char.butt1.outline', _root.charColor[scheme][0]); changeColor('_root.char.butt1.fill', _root.charColor[scheme][1]); changeColor('_root.char.butt1.shade', _root.charColor[scheme][2]); changeColor('_root.char.butt2.outline', _root.charColor[scheme][0]); changeColor('_root.char.butt2.fill', _root.charColor[scheme][1]); changeColor('_root.char.butt2.shade', _root.charColor[scheme][2]); changeColor('_root.char.leg1.outline', _root.charColor[scheme][0]); changeColor('_root.char.leg1.fill', _root.charColor[scheme][1]); changeColor('_root.char.leg1.shade', _root.charColor[scheme][2]); changeColor('_root.char.leg2.outline', _root.charColor[scheme][0]); changeColor('_root.char.leg2.fill', _root.charColor[scheme][1]); changeColor('_root.char.leg2.shade', _root.charColor[scheme][2]); changeColor('_root.char.head.outline', _root.charColor[scheme][0]); changeColor('_root.char.head.fill', _root.charColor[scheme][1]); changeColor('_root.char.head.shade', _root.charColor[scheme][2]); changeColor('_root.char.head.ear1.outline', _root.charColor[scheme][0]); changeColor('_root.char.head.ear1.fill', _root.charColor[scheme][1]); changeColor('_root.char.head.ear1.shade', _root.charColor[scheme][2]); changeColor('_root.char.head.ear2.outline', _root.charColor[scheme][0]); changeColor('_root.char.head.ear2.fill', _root.charColor[scheme][1]); changeColor('_root.char.head.ear2.shade', _root.charColor[scheme][2]); changeColor('_root.char.head.horn.outline', _root.charColor[scheme][0]); changeColor('_root.char.head.horn.fill', _root.charColor[scheme][1]); changeColor('_root.char.head.horn.shade', _root.charColor[scheme][2]); _root.char.foot1.horseshoe.gotoAndStop(scheme + 1); _root.char.foot2.horseshoe.gotoAndStop(scheme + 1); if (_root.Blindfold == 1) { _root.char.head.eyelid.gotoAndPlay(2); } else { if (_root.Blindfold == 2) { _root.char.head.eyelid.gotoAndStop('closed'); _root.char.head.eyelashupper._alpha = 0; } } _root.char.head.ballgag.gotoAndStop(Ballgag); if (_root.CrotchBoobs == 1) { _root.char.crotchboobs.gotoAndStop(String(scheme) + 'a'); } else { _root.char.crotchboobs.gotoAndStop('disabled'); } if (_root.FutaMode == 1) { _root.char.cock.gotoAndStop(String(scheme) + 'a'); _root.char.balls.gotoAndStop(String(scheme) + 'a'); } else { if (_root.FutaMode == 2) { _root.char.cock.gotoAndStop(String(scheme) + 'a'); _root.char.balls.gotoAndStop('disabled'); } else { _root.char.cock.gotoAndStop('disabled'); _root.char.balls.gotoAndStop('disabled'); } } } function recolorGotoPart(scheme) { changeColor('_root.char.foot1.outline', _root.charColor[scheme][0]); changeColor('_root.char.foot1.fill', _root.charColor[scheme][1]); changeColor('_root.char.foot1.shade', _root.charColor[scheme][2]); changeColor('_root.char.foot2.outline', _root.charColor[scheme][0]); changeColor('_root.char.foot2.fill', _root.charColor[scheme][1]); changeColor('_root.char.foot2.shade', _root.charColor[scheme][2]); changeColor('_root.char.tummy.outline', _root.charColor[scheme][0]); changeColor('_root.char.tummy.fill', _root.charColor[scheme][1]); changeColor('_root.char.tummy.shade', _root.charColor[scheme][2]); changeColor('_root.char.butt1.outline', _root.charColor[scheme][0]); changeColor('_root.char.butt1.fill', _root.charColor[scheme][1]); changeColor('_root.char.butt1.shade', _root.charColor[scheme][2]); changeColor('_root.char.butt2.outline', _root.charColor[scheme][0]); changeColor('_root.char.butt2.fill', _root.charColor[scheme][1]); changeColor('_root.char.butt2.shade', _root.charColor[scheme][2]); changeColor('_root.char.leg1.outline', _root.charColor[scheme][0]); changeColor('_root.char.leg1.fill', _root.charColor[scheme][1]); changeColor('_root.char.leg1.shade', _root.charColor[scheme][2]); changeColor('_root.char.leg2.outline', _root.charColor[scheme][0]); changeColor('_root.char.leg2.fill', _root.charColor[scheme][1]); changeColor('_root.char.leg2.shade', _root.charColor[scheme][2]); _root.char.foot1.horseshoe.gotoAndStop(scheme + 1); _root.char.foot2.horseshoe.gotoAndStop(scheme + 1); _root.char.groin.gotoAndStop(String(scheme) + 'a'); _root.char.crotch.gotoAndStop(String(scheme) + 'a'); _root.char.vulvaupper.gotoAndStop(String(scheme) + 'a'); _root.char.vulvainner.gotoAndStop(String(scheme) + 'a'); _root.char.vulvalower.gotoAndStop(String(scheme) + 'a'); _root.char.vulvalabia.gotoAndStop(String(scheme) + 'a'); _root.char.vulvapussy.gotoAndStop(String(scheme) + 'a'); } function gotoEveryPart(frame) { _root.char.leg1.gotoAndStop(frame); _root.char.leg2.gotoAndStop(frame); _root.char.foot1.gotoAndStop(frame); _root.char.foot2.gotoAndStop(frame); _root.char.tummy.gotoAndStop(frame); _root.char.groin.gotoAndStop(frame); _root.char.butt1.gotoAndStop(frame); _root.char.butt2.gotoAndStop(frame); _root.recolorGotoPart(_root.CharacterSkin); } function recolorHooves(scheme) { changeColor('_root.char.hoof1.hoof2.outline', _root.charColor[scheme][0]); changeColor('_root.char.hoof1.hoof2.fill', _root.charColor[scheme][1]); changeColor('_root.char.hoof1.hoof2.shade', _root.charColor[scheme][2]); changeColor('_root.char.hoof2.outline', _root.charColor[scheme][0]); changeColor('_root.char.hoof2.fill', _root.charColor[scheme][1]); changeColor('_root.char.hoof2.shade', _root.charColor[scheme][2]); changeColor('_root.char.hoof1.hoof2.outline2', _root.charColor[scheme][0]); changeColor('_root.char.hoof1.hoof2.fill2', _root.charColor[scheme][1]); changeColor('_root.char.hoof1.hoof2.shade2', _root.charColor[scheme][2]); changeColor('_root.char.hoof2.outline2', _root.charColor[scheme][0]); changeColor('_root.char.hoof2.fill2', _root.charColor[scheme][1]); changeColor('_root.char.hoof2.shade2', _root.charColor[scheme][2]); } stop(); endGameSession(); myMenu.builtInItems.zoom = true; var Phase = 'idle'; var PhaseType = 'pussy'; var PhaseSpeed = 1; this.char.bg.gotoAndStop(sexScene); var CharacterSkin = charSelected; var maleType = 1; if (_root.maleType == 1) { _root.char.malearm1.gotoAndStop(_root.maleType); _root.char.malearm2.gotoAndStop(_root.maleType); _root.char.malearm1b.gotoAndStop(3); _root.char.malearm2b.gotoAndStop(3); } else { _root.char.malearm1.gotoAndStop(3); _root.char.malearm2.gotoAndStop(3); _root.char.malearm1b.gotoAndStop(_root.maleType); _root.char.malearm2b.gotoAndStop(_root.maleType); } setColor(); _root.char.foot1.stop(); _root.char.foot2.stop(); _root.char.leg1.stop(); _root.char.leg2.stop(); _root.char.butt1.stop(); _root.char.butt2.stop(); _root.char.tummy.stop(); _root.char.groin.stop(); _root.char.hoof1.stop(); _root.char.hoof2.stop(); if (_root.CrotchBoobs == 1) { _root.char.crotchboobs.gotoAndStop(String(CharacterSkin) + 'a'); } else { _root.char.crotchboobs.gotoAndStop('disabled'); } if (_root.FutaMode == 1) { _root.char.cock.gotoAndStop(String(CharacterSkin) + 'a'); _root.char.balls.gotoAndStop(String(CharacterSkin) + 'a'); } else { if (_root.FutaMode == 2) { _root.char.cock.gotoAndStop(String(CharacterSkin) + 'a'); _root.char.balls.gotoAndStop('disabled'); } else { _root.char.cock.gotoAndStop('disabled'); _root.char.balls.gotoAndStop('disabled'); } } var moveDemHooves = true; } movieClip 3293 { } movieClip 3296 { frame 3 { gotoAndStop(1); } } movieClip 3298 { frame 1 { gotoAndStop(2); } } movieClip 3300 { } movieClip 3302 { } movieClip 3304 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3306 { frame 1 { gotoAndStop(2); } } movieClip 3308 { } movieClip 3310 { } movieClip 3312 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3314 { } movieClip 3316 { } movieClip 3318 { } movieClip 3320 { } movieClip 3321 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3323 { } movieClip 3325 { } movieClip 3327 { } movieClip 3329 { } movieClip 3330 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3332 { } movieClip 3333 { frame 1 { stop(); } frame 4 { gotoAndStop(1); } } movieClip 3335 { } movieClip 3337 { } movieClip 3339 { } button 3340 { on (release) { _root.moveDemHooves = true; } } movieClip 3345 { frame 1 { stop(); } frame 5 { gotoAndStop(1); } } movieClip 3351 { frame 1 { stop(); } frame 6 { gotoAndStop(1); } } movieClip 3352 { } movieClip 3354 { } movieClip 3356 { } movieClip 3358 { } movieClip 3361 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 3363 { } movieClip 3365 { } movieClip 3367 { } movieClip 3368 { } movieClip 3370 { } movieClip 3372 { } movieClip 3374 { } movieClip 3376 { } movieClip 3378 { } movieClip 3380 { } movieClip 3381 { } movieClip 3383 { } movieClip 3385 { } movieClip 3387 { } movieClip 3389 { } movieClip 3391 { } movieClip 3393 { } movieClip 3394 { } movieClip 3401 { } movieClip 3408 { frame 1 { gotoAndStop(_root.CharacterSkin + 'a'); } } movieClip 3410 { } movieClip 3412 { } movieClip 3414 { } movieClip 3416 { } movieClip 3417 { frame 33 { gotoAndStop(1); } frame 64 { gotoAndStop(1); } frame 85 { gotoAndStop(1); } } movieClip 3419 { } movieClip 3421 { } movieClip 3423 { } movieClip 3425 { } movieClip 3426 { } movieClip 3428 { } movieClip 3430 { } movieClip 3432 { } movieClip 3434 { } movieClip 3435 { } movieClip 3437 { } movieClip 3439 { } movieClip 3441 { } movieClip 3443 { } movieClip 3444 { } movieClip 3446 { } movieClip 3448 { } movieClip 3450 { } movieClip 3452 { } movieClip 3453 { } movieClip 3455 { } movieClip 3457 { } movieClip 3459 { } movieClip 3461 { } movieClip 3462 { } movieClip 3463 { frame 2 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } movieClip 3469 { } movieClip 3474 { frame 1 { stop(); } frame 6 { gotoAndStop(1); } } movieClip 3475 { frame 1 { gotoAndStop(_root.Stockings); } frame 7 { gotoAndStop(1); } } movieClip 3491 { instance pubes of movieClip 3475 { onClipEvent (release) { _root.char.groin.pubes.nextFrame(); _root.char.vulvaupper.pubes.nextFrame(); } } } movieClip 3493 { } movieClip 3495 { } movieClip 3497 { } movieClip 3500 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3503 { } movieClip 3505 { } movieClip 3507 { } movieClip 3510 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3511 { } movieClip 3514 { } movieClip 3516 { } movieClip 3518 { } movieClip 3521 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3523 { } movieClip 3525 { } movieClip 3527 { } movieClip 3530 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3531 { } movieClip 3538 { } movieClip 3545 { } movieClip 3552 { } movieClip 3554 { } movieClip 3556 { } movieClip 3558 { } movieClip 3561 { } movieClip 3563 { } movieClip 3565 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3567 { } movieClip 3569 { } movieClip 3571 { } movieClip 3573 { } movieClip 3574 { } movieClip 3576 { } movieClip 3578 { } movieClip 3580 { } movieClip 3582 { } movieClip 3585 { } movieClip 3587 { } movieClip 3589 { } movieClip 3591 { } movieClip 3593 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3596 { } movieClip 3602 { frame 1 { gotoAndStop(_root.CharacterSkin + 'a'); } } movieClip 3609 { } movieClip 3613 { } movieClip 3619 { } movieClip 3627 { } movieClip 3645 { } movieClip 3648 { frame 2 { stop(); } frame 27 { gotoAndStop(2); } frame 47 { gotoAndStop(2); } } movieClip 3650 { frame 2 { stop(); } } movieClip 3652 { frame 2 { stop(); } } movieClip 3654 { frame 2 { stop(); } } movieClip 3656 { frame 2 { stop(); } } movieClip 3658 { frame 2 { stop(); } } movieClip 3659 { frame 2 { stop(); } } movieClip 3686 { } movieClip 3689 { frame 1 { stop(); } frame 31 { gotoAndStop(1); } frame 49 { gotoAndStop(1); } frame 77 { gotoAndStop(1); } } movieClip 3691 { } movieClip 3693 { } movieClip 3695 { } movieClip 3697 { } movieClip 3699 { } movieClip 3700 { frame 2 { stop(); } } movieClip 3702 { } movieClip 3704 { } movieClip 3706 { } movieClip 3707 { } movieClip 3710 { } movieClip 3712 { } movieClip 3714 { } movieClip 3715 { } movieClip 3717 { } movieClip 3719 { } movieClip 3721 { } movieClip 3723 { } movieClip 3725 { } movieClip 3727 { } movieClip 3728 { frame 1 { stop(); } } movieClip 3730 { } movieClip 3732 { } movieClip 3734 { } movieClip 3735 { } movieClip 3737 { } movieClip 3739 { } movieClip 3741 { } movieClip 3743 { } movieClip 3744 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3746 { } movieClip 3748 { } movieClip 3750 { } movieClip 3752 { } movieClip 3753 { } movieClip 3755 { } movieClip 3757 { } movieClip 3759 { } movieClip 3761 { } movieClip 3762 { } movieClip 3764 { frame 1 { gotoAndStop(2); } } movieClip 3766 { } movieClip 3768 { } movieClip 3769 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3771 { frame 1 { gotoAndStop(2); } } movieClip 3773 { } movieClip 3775 { } movieClip 3776 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3778 { } movieClip 3780 { } movieClip 3782 { } movieClip 3787 { } movieClip 3791 { frame 1 { gotoAndStop(_root.CharacterSkin + 1); } } movieClip 3795 { frame 1 { gotoAndStop(_root.StockingsType); } frame 3 { gotoAndStop(1); } } movieClip 3796 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3798 { } movieClip 3800 { } movieClip 3802 { } movieClip 3809 { frame 1 { gotoAndStop(_root.CharacterSkin + 1); } } movieClip 3813 { frame 1 { gotoAndStop(_root.StockingsType); } frame 3 { gotoAndStop(1); } } movieClip 3814 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3815 { frame 1 { this.horseshoe._alpha = _root.horseshoeAlpha; } frame 3 { this.horseshoe._alpha = _root.horseshoeAlpha; } frame 5 { this.horseshoe._alpha = _root.horseshoeAlpha; } } movieClip 3817 { } movieClip 3819 { } movieClip 3821 { } movieClip 3828 { frame 1 { gotoAndStop(_root.CharacterSkin + 1); } } movieClip 3832 { frame 1 { gotoAndStop(_root.StockingsType); } frame 3 { gotoAndStop(1); } } movieClip 3833 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3835 { } movieClip 3837 { } movieClip 3839 { } movieClip 3843 { frame 1 { gotoAndStop(_root.StockingsType); } frame 3 { gotoAndStop(1); } } movieClip 3844 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3845 { frame 1 { this.horseshoe._alpha = _root.horseshoeAlpha; } frame 3 { this.horseshoe._alpha = _root.horseshoeAlpha; } frame 5 { this.horseshoe._alpha = _root.horseshoeAlpha; } } movieClip 3847 { } movieClip 3849 { } movieClip 3850 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3852 { } movieClip 3854 { } movieClip 3855 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3857 { } movieClip 3859 { } movieClip 3861 { } movieClip 3863 { } movieClip 3864 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3866 { frame 1 { gotoAndStop(2); } } movieClip 3868 { } movieClip 3870 { } movieClip 3871 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3873 { frame 1 { gotoAndStop(2); } } movieClip 3875 { } movieClip 3877 { } movieClip 3878 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3880 { } movieClip 3881 { frame 1 { _root.gotoEveryPart(5); _root.recolorEveryPart(_root.CharacterSkin); _root.setMaleType(); } frame 2 { if (!init) { gotoAndPlay(_root.Phase); init = true; var goobs = _root.randRange(2, 2); _root.queuemusikBedroom(goobs); _root.MusikLoop = 1; } } frame 49 { if (_root.PhaseType == 'pussy') { if (_root.Phase == 'tease') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType); } if (_root.Phase == 'fuck') { gotoAndPlay('penetrate_' + _root.PhaseType); } } else { gotoAndPlay('teasePussyToButt'); } } frame 62 { this.char.head.jaw.gotoAndPlay('gasp'); } frame 62 { this.balls.balls.gotoAndPlay('bounceQuick'); this.cock.cock.gotoAndPlay('bounceQuick'); this.crotchboobs.boobs.gotoAndPlay('bounceQuick'); } frame 80 { _root.gotoEveryPart(5); _root.setMaleType(); } frame 92 { this.balls.balls.gotoAndPlay('bounceGentle'); this.cock.cock.gotoAndPlay('bounceGentle'); this.crotchboobs.boobs.gotoAndPlay('bounceGentle'); } frame 109 { if (_root.PhaseType == 'pussy' && _root.Phase == 'fuck') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType + _root.PhaseSpeed); } else { gotoAndPlay('remove_pussy'); } } frame 116 { _root.gotoEveryPart(5); _root.setMaleType(); } frame 123 { this.balls.balls.gotoAndPlay('bounce'); this.cock.cock.gotoAndPlay('bounce'); this.crotchboobs.boobs.gotoAndPlay('bounce'); } frame 138 { if (_root.PhaseType == 'pussy' && _root.Phase == 'fuck') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType + _root.PhaseSpeed); } else { gotoAndPlay('remove_pussy'); } } frame 146 { _root.gotoEveryPart(5); _root.setMaleType(); } frame 150 { this.balls.balls.gotoAndPlay('bounceQuick'); this.cock.cock.gotoAndPlay('bounceQuick'); this.crotchboobs.boobs.gotoAndPlay('bounceQuick'); } frame 160 { if (_root.PhaseType == 'pussy' && _root.Phase == 'fuck') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType + _root.PhaseSpeed); } else { gotoAndPlay('remove_pussy'); } } frame 171 { _root.setMaleType(); } frame 189 { _root.setMaleType(); } frame 203 { if (_root.PhaseType == 'pussy') { if (_root.Phase == 'tease') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType); } if (_root.Phase == 'fuck') { gotoAndPlay('penetrate_' + _root.PhaseType); } } else { gotoAndPlay('teasePussyToButt'); } } frame 211 { _root.setMaleType(); } frame 213 { _root.gotoEveryPart(3); } frame 215 { _root.gotoEveryPart(5); } frame 226 { if (_root.PhaseType == 'pussy') { if (_root.Phase == 'tease') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType); } if (_root.Phase == 'fuck') { gotoAndPlay('penetrate_' + _root.PhaseType); } } else { gotoAndPlay('teasePussyToButt'); } } frame 234 { _root.setMaleType(); } frame 236 { _root.gotoEveryPart(3); } frame 238 { _root.gotoEveryPart(1); } frame 249 { if (_root.PhaseType == 'anal') { if (_root.Phase == 'tease') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType); } if (_root.Phase == 'fuck') { gotoAndPlay('penetrate_' + _root.PhaseType); } } else { gotoAndPlay('teaseButtToPussy'); } } frame 250 { _root.gotoEveryPart(1); _root.setMaleType(); } frame 289 { if (_root.PhaseType == 'anal') { if (_root.Phase == 'tease') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType); } if (_root.Phase == 'fuck') { gotoAndPlay('penetrate_' + _root.PhaseType); } } else { gotoAndPlay('teaseButtToPussy'); } } frame 313 { _root.setMaleType(); } frame 318 { this.char.head.jaw.gotoAndPlay('gasp'); } frame 318 { this.balls.balls.gotoAndPlay('bounceQuick'); this.cock.cock.gotoAndPlay('bounceQuick'); this.crotchboobs.boobs.gotoAndPlay('bounceQuick'); } frame 318 { _root.setMaleType(); } frame 327 { _root.gotoEveryPart(1); _root.setMaleType(); } frame 337 { this.balls.balls.gotoAndPlay('bounceGentle'); this.cock.cock.gotoAndPlay('bounceGentle'); this.crotchboobs.boobs.gotoAndPlay('bounceGentle'); } frame 355 { if (_root.PhaseType == 'anal' && _root.Phase == 'fuck') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType + _root.PhaseSpeed); } else { gotoAndPlay('remove_anal'); } } frame 363 { _root.gotoEveryPart(1); _root.setMaleType(); } frame 369 { this.balls.balls.gotoAndPlay('bounce'); this.cock.cock.gotoAndPlay('bounce'); this.crotchboobs.boobs.gotoAndPlay('bounce'); } frame 383 { if (_root.PhaseType == 'anal' && _root.Phase == 'fuck') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType + _root.PhaseSpeed); } else { gotoAndPlay('remove_anal'); } } frame 390 { _root.gotoEveryPart(1); _root.setMaleType(); } frame 394 { this.balls.balls.gotoAndPlay('bounceQuick'); this.cock.cock.gotoAndPlay('bounceQuick'); this.crotchboobs.boobs.gotoAndPlay('bounceQuick'); } frame 404 { if (_root.PhaseType == 'anal' && _root.Phase == 'fuck') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType + _root.PhaseSpeed); } else { gotoAndPlay('remove_anal'); } } frame 419 { _root.setMaleType(); } frame 424 { _root.setMaleType(); } frame 425 { if (_root.PhaseType == 'anal') { if (_root.Phase == 'tease') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType); } if (_root.Phase == 'fuck') { gotoAndPlay('penetrate_' + _root.PhaseType); } } else { gotoAndPlay('teaseButtToPussy'); } } frame 509 { gotoAndPlay(_root.Phase); } } movieClip 3882 { frame 1 { stop(); } frame 12 { gotoAndStop(1); } frame 15 { gotoAndStop(1); } } movieClip 3887 { frame 1 { stop(); } } button 3888 { on (release) { _root.showOptions(); } on (rollOver) { _root.hoverText = 'Extras'; } on (rollOut) { _root.hoverText = ''; } } button 3890 { on (release) { _root.queuemusikBedroom(0); } } button 3891 { on (release) { _root.queuemusikBedroom(1); } } button 3892 { on (release) { _root.queuemusikBedroom(2); } } movieClip 3893 { frame 1 { var dialogueStyle = ''; if (_root.raunchyText == 1) { dialogueStyle = 'Raunchy'; } else { dialogueStyle = 'Normal'; } } } movieClip 3897 { frame 1 { stop(); var Descript = ''; } frame 5 { stop(); } } movieClip 3900 { frame 1 { var current = 1; } frame 4 { if (_root.moveDemHooves == true) { current += 2; if (current == 9) { _root.moveDemHooves = false; } if (current == 17) { current = 1; _root.moveDemHooves = false; } _root.char.hoof2.gotoAndStop(current); _root.char.hoof1.hoof2.gotoAndStop(current); _root.recolorHooves(_root.CharacterSkin); } gotoAndPlay(2); } } movieClip 3902 { } button 3903 { on (release) { _root.changePhase('idle', 1); } } button 3905 { on (release) { _root.changePhase('tease', 1); } } button 3908 { on (release) { if (_root.PhaseType == 'pussy') { _root.PhaseType = 'anal'; } else { _root.PhaseType = 'pussy'; } _root.navigation.navigation.phasetype.gotoAndStop(_root.PhaseType); } } button 3911 { on (release) { _root.changePhase('fuck', 1); } } button 3913 { on (release) { if (_root.FAPMODE == 1) { _root.fader.gotoAndPlay('fadeOut'); _root.fadeOutTarget = 'title'; } else { _root.fader.gotoAndPlay('fadeOut'); _root.fadeOutTarget = 'game'; _root.loadGame = true; } } } button 3915 { on (release) { _root.changePhase('fuck', 2); } } button 3917 { on (release) { _root.changePhase('fuck', 3); } } movieClip 3921 { frame 1 { gotoAndStop(_root.PhaseType); } } movieClip 3927 { frame 1 { gotoAndStop(_root.Phase + _root.PhaseSpeed); } } movieClip 3928 { } movieClip 3931 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } button 3934 { on (release) { _root.CharacterSkin = 0; _root.recolorEveryPart(_root.CharacterSkin); } } button 3935 { on (release) { _root.CharacterSkin = 1; _root.recolorEveryPart(_root.CharacterSkin); } } button 3936 { on (release) { _root.CharacterSkin = 2; _root.recolorEveryPart(_root.CharacterSkin); } } button 3937 { on (release) { _root.CharacterSkin = 3; _root.recolorEveryPart(_root.CharacterSkin); } } button 3939 { on (release) { _root.CharacterSkin = 4; _root.recolorEveryPart(_root.CharacterSkin); } } button 3940 { on (release) { _root.CharacterSkin = 5; _root.recolorEveryPart(_root.CharacterSkin); } } movieClip 3942 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 3945 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 3950 { frame 34 { stop(); } frame 47 { stop(); _root.gotoAndStop(_root.fadeOutTarget); } frame 58 { stop(); } } // unknown tag 67108859 length -16843009 // unknown tag 712 length 3 // unknown tag 204 length 6 // unknown tag 437 length 35 // unknown tag 87 length 45 // unknown tag 340 length 13 // unknown tag 539 length 10 // unknown tag 689 length 61 // unknown tag 1008 length 3 // unknown tag 802 length 13 // unknown tag 594 length 51 // unknown tag 110 length 49 // unknown tag 527 length 48 // unknown tag 705 length 2 // unknown tag 388 length 28




http://swfchan.com/35/170456/info.shtml
Created: 7/10 -2018 05:20:02 Last modified: 7/10 -2018 05:20:02 Server time: 03/05 -2024 13:53:22