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

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

Cloptopia_v1.swf

This is the info page for
Flash #169927

(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 5 { stop(); } frame 10 { stop(); } frame 15 { stop(); } frame 20 { stop(); } frame 25 { stop(); } frame 30 { gotoAndStop(1); } 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 { } movieClip 182 { } movieClip 183 { frame 1 { stop(); } frame 7 { stop(); } frame 16 { stop(); } frame 25 { stop(); } frame 35 { stop(); } } movieClip 190 { frame 9 { x = _root.randRange(0, 100); if (x < 95) { gotoAndPlay(2); } else { gotoAndPlay('blink'); } } } movieClip 203 { frame 1 { stop(); } frame 7 { stop(); } frame 13 { stop(); } frame 19 { stop(); } } movieClip 205 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 207 { } movieClip 212 { } movieClip 213 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { stop(); } frame 30 { stop(); } } movieClip 229 { frame 9 { x = _root.randRange(0, 100); if (x < 95) { gotoAndPlay(2); } else { gotoAndPlay('blink'); } } frame 59 { gotoAndPlay(2); } } movieClip 231 { } movieClip 233 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 235 { } movieClip 238 { } movieClip 242 { } movieClip 243 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { stop(); } frame 30 { stop(); } frame 40 { stop(); } frame 50 { stop(); } } movieClip 256 { 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 275 { } movieClip 281 { frame 1 { stop(); } frame 7 { stop(); } frame 13 { stop(); } frame 19 { stop(); } } movieClip 283 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 285 { } movieClip 288 { } movieClip 291 { } movieClip 292 { 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 303 { frame 9 { x = _root.randRange(0, 100); if (x < 95) { gotoAndPlay(2); } else { gotoAndPlay('blink'); } } frame 24 { gotoAndPlay(2); } } movieClip 308 { frame 1 { stop(); } frame 3 { stop(); } frame 5 { stop(); } } movieClip 310 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 312 { } movieClip 314 { } movieClip 317 { } movieClip 318 { frame 1 { stop(); } frame 5 { stop(); } frame 10 { stop(); } frame 15 { stop(); } frame 20 { stop(); } frame 25 { stop(); } } movieClip 327 { frame 9 { x = _root.randRange(0, 100); if (x < 95) { gotoAndPlay(2); } else { gotoAndPlay('blink'); } } frame 19 { gotoAndPlay(2); } } movieClip 329 { } movieClip 331 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 333 { } movieClip 335 { frame 1 { stop(); } instance of movieClip 178 { onClipEvent (release) { this._parent.eyeballs.play(); } } instance of movieClip 178 { onClipEvent (release) { this._parent.jaw.play(); } } } movieClip 337 pHead { } movieClip 340 { } movieClip 343 { } movieClip 344 { } movieClip 346 perk17 { } movieClip 347 perkBtn17 { } movieClip 350 { } movieClip 351 { } movieClip 353 perk16 { } movieClip 354 perkBtn16 { } movieClip 359 { } movieClip 360 { } movieClip 362 { } movieClip 364 { } movieClip 365 { } movieClip 367 perk15 { } movieClip 368 perkBtn15 { } movieClip 371 { } movieClip 372 { } movieClip 374 perk14 { } movieClip 375 perkBtn14 { } movieClip 377 { } movieClip 379 { } movieClip 381 { } movieClip 383 { } movieClip 385 { } movieClip 386 { } movieClip 388 perk13 { } movieClip 389 perkBtn13 { } movieClip 392 { } movieClip 393 { } movieClip 395 perk12 { } movieClip 396 perkBtn12 { } movieClip 399 { } movieClip 400 { } movieClip 402 perk11 { } movieClip 403 perkBtn11 { } movieClip 405 { } movieClip 407 perk10 { } movieClip 408 perkBtn10 { } movieClip 413 { } movieClip 414 { frame 2 { 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 474 { } movieClip 476 Wings { } movieClip 478 Stockings { } movieClip 480 Pubes (Groin) { } movieClip 482 Lighting { } movieClip 484 Anthro Mode { } movieClip 490 { } movieClip 494 { frame 1 { gotoAndStop(_root.CharacterSkin + 1); } } movieClip 495 Horseshoes { } movieClip 497 Hairbow { } movieClip 499 Futa Mode { } movieClip 501 Mirror Scene { } movieClip 503 Eyewear { } movieClip 505 example { } movieClip 507 Crotch Boobs { } movieClip 509 Corset { } movieClip 511 Chest Items { } movieClip 513 Bra { } movieClip 515 Blush { } movieClip 517 Blindfold { } movieClip 519 Ballgag { } movieClip 521 nodeTopReg { } movieClip 524 { } movieClip 527 { } movieClip 530 { } movieClip 533 { } movieClip 534 { frame 2 { if (_parent.TileType == undefined || _parent.TileType == NaN || _parent.TileType == '') { stop(); } else { gotoAndStop(_parent.TileType); } } } movieClip 536 { } movieClip 538 { } movieClip 539 { frame 1 { stop(); } frame 61 { gotoAndPlay('loop'); } } movieClip 541 { } movieClip 548 { frame 1 { stop(); } } movieClip 551 { frame 2 { stop(); } } movieClip 554 { } movieClip 557 { } movieClip 560 { } movieClip 563 { } movieClip 566 { } movieClip 569 { } movieClip 572 { } movieClip 575 { } movieClip 578 { } movieClip 582 { } movieClip 583 { } movieClip 584 { } movieClip 587 { } movieClip 588 { instance timer of movieClip 587 { 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 589 { frame 1 { stop(); } } movieClip 593 { } movieClip 595 { } movieClip 598 { } movieClip 600 { } movieClip 603 { } movieClip 605 { } movieClip 608 { } movieClip 610 { } movieClip 614 { } movieClip 616 { frame 1 { stop(); } } movieClip 623 { } movieClip 625 { } movieClip 627 { } movieClip 629 { frame 1 { stop(); } } movieClip 632 { } movieClip 635 { } movieClip 638 { } movieClip 641 { } movieClip 642 { frame 1 { stop(); } } movieClip 645 { } movieClip 648 { frame 1 { stop(); } } movieClip 651 { } movieClip 654 { } movieClip 657 { } movieClip 660 { frame 1 { stop(); } } movieClip 663 { } movieClip 666 { } movieClip 669 { } movieClip 672 { frame 1 { stop(); } } movieClip 675 { } movieClip 680 { } movieClip 683 { } movieClip 686 { } movieClip 689 { } movieClip 692 { } movieClip 693 { } movieClip 694 { frame 1 { stop(); } } movieClip 699 { } movieClip 702 { } movieClip 704 { } movieClip 707 { } movieClip 710 { } movieClip 712 { } movieClip 716 { } movieClip 719 { } movieClip 720 { frame 1 { stop(); } } movieClip 723 { } movieClip 726 { } movieClip 729 { } movieClip 732 { } movieClip 733 { frame 1 { stop(); } } movieClip 737 { } movieClip 740 { } movieClip 741 { frame 1 { stop(); } } movieClip 746 { } movieClip 749 { } movieClip 752 { } movieClip 753 { frame 1 { stop(); } } movieClip 757 { } movieClip 759 { } movieClip 763 { } movieClip 764 { frame 1 { stop(); } } movieClip 768 { } movieClip 771 { } movieClip 772 { frame 1 { stop(); } } movieClip 775 { } movieClip 778 { } movieClip 779 { frame 1 { stop(); } } movieClip 784 { frame 1 { if (_root.ShieldLevel >= 100) { gotoAndPlay(20); } } frame 19 { if (_root.ShieldLevel < 100) { gotoAndPlay(1); } else { gotoAndPlay(20); } } frame 80 { gotoAndPlay(20); } } movieClip 787 { } movieClip 790 { } movieClip 791 { frame 1 { stop(); } } movieClip 794 { } movieClip 797 { } movieClip 800 { } movieClip 803 { frame 1 { stop(); } } movieClip 806 { } movieClip 809 { frame 1 { stop(); } } movieClip 811 { } movieClip 812 { frame 60 { gotoAndPlay(1); } } movieClip 815 { } movieClip 816 { frame 1 { stop(); } frame 40 { gotoAndPlay(2); } } movieClip 819 { } movieClip 822 { } movieClip 825 { } movieClip 828 { } movieClip 831 { } movieClip 834 { } movieClip 837 { } movieClip 840 { } movieClip 843 { } movieClip 846 { } movieClip 849 { } movieClip 851 { } movieClip 853 { } movieClip 854 { frame 1 { stop(); } } movieClip 857 { frame 1 { stop(); } } movieClip 858 { } movieClip 861 { } movieClip 862 { frame 1 { stop(); } frame 84 { gotoAndStop(1); this._alpha = 0; } } movieClip 863 node { frame 1 { stop(); } instance btnNodeSelect of movieClip 548 { 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 866 { } movieClip 867 leChipWin { } movieClip 869 { } movieClip 871 leChip { } movieClip 873 snapIcon { } movieClip 875 trait23 { } movieClip 877 { } movieClip 879 trait22 { } movieClip 883 { } movieClip 886 { } movieClip 887 { } movieClip 888 trait11 { } movieClip 891 { } movieClip 892 trait10 { } movieClip 895 { } movieClip 896 { } movieClip 898 trait9 { } movieClip 901 { } movieClip 903 trait7 { } movieClip 905 { } movieClip 907 trait6 { } movieClip 910 { } movieClip 911 { } movieClip 913 trait5 { } movieClip 916 { } movieClip 917 trait4 { } movieClip 919 { } movieClip 921 trait3 { } movieClip 923 { } movieClip 925 trait2 { } movieClip 927 { } movieClip 929 trait??? { } movieClip 931 { } movieClip 932 Background { } movieClip 934 Hot Swap { } movieClip 936 Longsword { } movieClip 938 { } movieClip 940 trait14 { } movieClip 943 { } movieClip 944 { } movieClip 946 trait19 { } movieClip 948 { } movieClip 950 trait21 { } movieClip 953 { } movieClip 954 { } movieClip 956 trait15 { } movieClip 959 { } movieClip 960 { } movieClip 962 trait20 { } movieClip 964 { } movieClip 966 trait16 { } movieClip 969 { } movieClip 970 { } movieClip 972 trait17 { } movieClip 973 { } movieClip 975 trait13 { } movieClip 977 { } movieClip 979 trait18 { } movieClip 982 { } movieClip 983 { } movieClip 985 trait12 { } movieClip 988 { } movieClip 989 { } movieClip 991 trait8 { } movieClip 993 { } movieClip 994 { } movieClip 996 trait1 { } movieClip 1002 BoundingBox { } movieClip 1004 BrdrShdw { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'shadowColor'); } } movieClip 1006 BrdrFace { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'buttonColor'); } } movieClip 1007 SimpleButtonDown { } movieClip 1009 BrdrBlk { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'borderColor'); } } movieClip 1011 BrdrHilght { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'highlightColor'); } } movieClip 1012 SimpleButtonIn { } movieClip 1013 SimpleButtonUp { } movieClip 1014 Defaults { #initclip Object.registerClass('Defaults', mx.skins.halo.Defaults); #endinitclip } movieClip 1015 UIObjectExtensions { #initclip Object.registerClass('UIObjectExtensions', mx.core.ext.UIObjectExtensions); #endinitclip } movieClip 1016 UIObject { #initclip Object.registerClass('UIObject', mx.core.UIObject); #endinitclip frame 1 { stop(); } } button 1019 { on (keyPress '<Tab>') { this.tabHandler(); } } movieClip 1020 { #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 1021 FocusRect { #initclip Object.registerClass('FocusRect', mx.skins.halo.FocusRect); #endinitclip } movieClip 1022 FocusManager { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); #endinitclip frame 1 { stop(); } } movieClip 1023 UIComponentExtensions { #initclip Object.registerClass('UIComponentExtensions', mx.core.ext.UIComponentExtensions); #endinitclip } movieClip 1024 UIComponent { #initclip Object.registerClass('UIComponent', mx.core.UIComponent); #endinitclip frame 1 { stop(); } } movieClip 1025 SimpleButton { #initclip Object.registerClass('SimpleButton', mx.controls.SimpleButton); #endinitclip frame 1 { stop(); } } movieClip 1026 Border { #initclip Object.registerClass('Border', mx.skins.Border); #endinitclip frame 1 { stop(); } } movieClip 1027 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 1028 ButtonSkin { #initclip Object.registerClass('ButtonSkin', mx.skins.halo.ButtonSkin); #endinitclip } movieClip 1029 Button { #initclip Object.registerClass('Button', mx.controls.Button); #endinitclip frame 1 { stop(); } instance of movieClip 1025 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 1030 CustomBorder { #initclip Object.registerClass('CustomBorder', mx.skins.CustomBorder); mx.skins.SkinElement.registerElement('CustomBorder', mx.skins.CustomBorder); #endinitclip frame 1 { } } movieClip 1033 ScrollTrack { } movieClip 1040 ScrollDownArrowDisabled { } movieClip 1042 ScrollThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 1044 ScrollThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 1045 ScrollDownArrowDown { } movieClip 1046 ScrollDownArrowOver { } movieClip 1047 ScrollDownArrowUp { } movieClip 1053 ScrollThumbBottomDisabled { } movieClip 1055 ThumbThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 1057 ThumbThemeColor3 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 1058 ScrollThumbBottomDown { } movieClip 1059 ScrollThumbBottomOver { } movieClip 1060 ScrollThumbBottomUp { } movieClip 1062 ScrollThumbGripDisabled { } movieClip 1064 ThumbThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 1065 ScrollThumbGripDown { } movieClip 1066 ScrollThumbGripOver { } movieClip 1067 ScrollThumbGripUp { } movieClip 1069 ScrollThumbMiddleDisabled { } movieClip 1070 ScrollThumbMiddleDown { } movieClip 1071 { } movieClip 1073 { } movieClip 1074 ScrollThumbMiddleOver { } movieClip 1075 ScrollThumbMiddleUp { } movieClip 1076 ScrollThumbTopDisabled { } movieClip 1077 ScrollThumbTopDown { } movieClip 1078 ScrollThumbTopOver { } movieClip 1079 ScrollThumbTopUp { } movieClip 1080 ScrollTrackDisabled { } movieClip 1081 ScrollUpArrowDisabled { } movieClip 1082 ScrollUpArrowDown { } movieClip 1083 ScrollUpArrowOver { } movieClip 1084 ScrollUpArrowUp { } movieClip 1085 BtnDownArrow { #initclip Object.registerClass('BtnDownArrow', mx.controls.SimpleButton); #endinitclip } movieClip 1086 BtnUpArrow { #initclip Object.registerClass('BtnUpArrow', mx.controls.SimpleButton); #endinitclip } movieClip 1087 ScrollBarAssets { } movieClip 1088 VScrollBar { #initclip Object.registerClass('VScrollBar', mx.controls.VScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 1029 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 1025 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 1089 HScrollBar { #initclip Object.registerClass('HScrollBar', mx.controls.HScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 1029 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 1025 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 1090 UIScrollBar { #initclip Object.registerClass('UIScrollBar', mx.controls.UIScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 1088 VScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 1089 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'); } 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 v1 = Math.floor(Math.random() * (max - min + 1)) + min; return v1; }; 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); myMenu.customItems.push(gotoMySite); copyrightNotice.enabled = false; myMenu.customItems.push(copyrightNotice); 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, NaN, NaN, 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 != 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 1122 { } movieClip 1124 { } movieClip 1126 { } movieClip 1127 { instance of movieClip 1126 { onClipEvent (release) { getURL('http://www.mittsies.com', '_blank'); } } } movieClip 1131 { } movieClip 1133 { } movieClip 1136 { frame 10 { stop(); } } movieClip 1137 { instance loadan of movieClip 1131 { 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 1133 { onClipEvent (enterFrame) { if (_root.percentloaded > 80) { this._alpha = 25 + _root.percentloaded * 0.75 - (_root.percentloaded - 80) * 6; } else { this._alpha = 100; } } } } movieClip 1140 { } movieClip 1141 { } instance cursor of movieClip 1141 { 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 997 __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 998 __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 999 __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 1000 __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 1091 __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 1092 __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 1093 __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 1094 __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 1095 __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 1096 __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 1097 __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 1098 __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 1099 __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 1100 __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 1101 __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 1102 __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 1103 __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 1104 __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 1105 __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 1106 __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 1107 __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 1108 __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 1109 __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 1110 __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 1111 __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 1112 __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 1113 __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 1114 __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 1115 __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 1116 __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(['Quick Garden Visits', 'You can now quickly access the Garden Clop Scene.', 0], ['Trait: Prospector', 'When creating a new town you can select this trait. Helpful for towns that love to strike the earth!', 0], ['Trait: Socialist', 'When creating a new town you can select this trait. Obamacare for every pony!', 0], ['Trait: Curse of the Forest God', 'When creating a new town you can select this trait. You better not cut down any trees!', 0], ['Tier II Structures', 'You\'ve gained access to more advanced structures. Find the new tier of structures by selecting the tab above the building menu.', 0], ['Character: Timid Pegasus', 'Visit the Private Rooms of the Tavern to play with this character!', 0], ['Character: Apple Horse', 'Visit the Private Rooms of the Tavern to play with this character!', 0], ['Character: Diamond Unicorn', 'Visit the Private Rooms of the Tavern to play with this character!', 0], ['Trait: Veteran', 'When creating a new town you can select this trait.', 0], ['Trait: Superstitous', 'When creating a new town you can select this trait.', 0], ['Trait: Genghis Pony', 'When creating a new town you can select this trait.', 0], ['Trait: Venetian', 'When creating a new town you can select this trait.', 0], ['Trait: Wizard', 'When creating a new town you can select this trait.', 0], ['Trait: Carefree', 'When creating a new town you can select this trait.', 0], ['Trait: Well-Fed', 'When creating a new town you can select this trait.', 0], ['Trait: Alcoholic', 'When creating a new town you can select this trait.', 0], ['Trait: Tyrant', 'When creating a new town you can select this trait.', 0], ['Tier III Structures', 'You\'ve gained access to more advanced structures. Find the new tier of structures by selecting the tab above the building menu.', 0], ['Character: Ponka Pastry', 'Visit the Private Rooms of the Tavern to play with this character!', 0], ['Chipper is Dead', '', 0], ['Character: Multicolor Quick', 'Visit the Private Rooms of the Tavern to play with this character!', 0], [NaN]); var UnlocksGallery = new Array(['You trot through the residential district to see how things are going and you notice a familiar character through the window of someone\'s home. She seems to be \'raising money\' for your town by offering some \'love magic lessons\' to the townsfolk, how nice!', 0], ['You decide to take a break from society and visit a local farm for a bit of relaxation. In the distance you see a couple of familiar characters fucking out in the fields. I guess today was an extra bountiful harvest and they\'re celebrating!', 0], ['You head over to a local store to grab a snack during slow business hours when you notice that nobody is at the cash register. You wander around looking for the clerk when you find a familiar character taking a little unscheduled break. She giggles and offers you to join in on the fun!', 0], ['You take a break from your busy schedule as Mayor to go door to door asking people if you can help out. As you knock on the door of a resident\'s house, the door swings upon on its own to reveal a familiar character \'raising money\' for your town by providing a stress-relief service.', 0], [NaN]); var optionsTable = new Array(['Lighting', 'Change the lighting environment!', 1], ['Horseshoes', 'Clippity Clop.', 1], ['Wings', 'Flap. For when a good clop just won\'t do it.', 1], ['Crotch Boobs', 'Pony boobies above the crotch.', 1], ['Futa Mode', 'Everything is hotter with a dick.', 1], ['Blush', 'Aww is someone embarrassed? Or maybe just tipsy!', 1], ['Hairbow', 'A cute little hair decoration.', 1], ['Eyewear', 'Glasses, goggles, etc.', 1], ['Blindfold', 'For those who aren\'t keen on eye contact.', 1], ['Chest Items', 'Scarf, necklace, etc.', 1], ['Bra', 'Silly pony, that\'s not where bras go!', 1], ['Corset', 'To help hide all of that tummy chub.', 1], ['Stockings', 'To keep the legs warm. Kinda.', 1], ['Ballgag', 'Some things are best left mumbled.', 1], ['Pubes (Groin)', 'For those that like fuzzy pussy.', 1], ['Anthro Mode', 'YOUR character becomes anthro (Not your playmate).', 1], ['Mirror Scene', 'Horizontally flips the scene.', 1], [NaN]); var optionsTableLocked = new Array(['Longsword', 'There\'s just something really sexy about steel.', 0], ['Hot Swap', 'Quickly change through characters.', 0], ['Background', 'Change the background setting.', 0], [NaN]); } frame 2 { stop(); stopAllSounds(); endGameSession(); var cache = SharedObject.getLocal('userCloptopia', '/'); var version = 'Alpha v1.09b'; 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 1145 { on (release) { play(); } } movieClip 1150 { } movieClip 1156 { frame 11 { stop(); } } movieClip 1162 { } movieClip 1163 { frame 55 { gotoAndPlay('loop1'); } } movieClip 1166 { } movieClip 1177 { } movieClip 1202 { frame 71 { stop(); } } button 1203 { on (release) { _root.gotoAndStop('title'); } } button 1204 { on (release) { getURL('http://www.comdotgame.com/', '_blank'); } } movieClip 1205 { frame 1 { if (_root.cache.data.flushWarning == false) { stop(); _root.cache.flush(1000000); _root.cache.data.flushWarning = true; } else { gotoAndPlay('splash'); } } instance of movieClip 1150 { 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 1221 { } 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 = 'Paradise'; var charName = 'Mayor'; 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(['Bits', 0], ['Food', 50], ['Tech', 0], ['Gems', 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 1225 { } movieClip 1226 { } movieClip 1229 { } movieClip 1232 { } movieClip 1234 { } button 1237 { on (release) { this.warning.gotoAndStop(1); } } movieClip 1238 { instance of movieClip 672 { onClipEvent (load) { gotoAndStop(1); } } instance of movieClip 642 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 642 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 672 { onClipEvent (load) { gotoAndStop(3); } } instance of movieClip 642 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 642 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 642 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 642 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 642 { onClipEvent (load) { gotoAndStop(1); } } } button 1241 { on (release) { getURL('https://docs.google.com/document/d/1F35uJYh3rvKYH4eM4SF8t0czoqgPMH7wHF3yvBxN6oc/', '_blank'); } on (rollOver) { descript = 'View Changelog'; } on (rollOut) { descript = ''; } } movieClip 1242 { } button 1243 { 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 = 'Start a new map.'; } on (rollOut) { descript = ''; } } button 1244 { on (release) { this.warning.gotoAndStop(3); } on (rollOver) { descript = 'Customize game settings'; } on (rollOut) { descript = ''; } } button 1245 { on (release) { getURL('http://www.patreon.com/Mittsies', '_blank'); this.warning.gotoAndStop(4); } on (rollOver) { descript = 'Visit the Patreon page to support this game'; } on (rollOut) { descript = ''; } } button 1247 { on (release) { getURL('http://www.mittsies.com/', '_blank'); } on (rollOver) { descript = 'Visit Mittsies.com'; } on (rollOut) { descript = ''; } } button 1248 { on (release) { getURL('http://www.comdotgame.com/', '_blank'); } on (rollOver) { descript = 'Visit the COMDOTGAME Website'; } on (rollOut) { descript = ''; } } button 1250 { on (release) { this.warning.gotoAndStop(5); } on (rollOver) { descript = 'View the adult scenes you\'ve unlocked so far.'; } on (rollOut) { descript = ''; } } movieClip 1253 { } movieClip 1257 { } button 1258 { on (release) { this.warning.gotoAndStop(4); } on (rollOver) { descript = 'List of generous patreon supporters.'; } on (rollOut) { descript = ''; } } button 1261 { on (release) { this.warning.gotoAndStop(7); } on (rollOver) { descript = 'List of people who worked on this game.'; } on (rollOut) { descript = ''; } } button 1267 { on (release) { if (_parent._parent.decision != true) { _parent._parent.gotoAndPlay('fadeout'); _parent._parent.decision = true; _root.loadGame = false; } } } button 1268 { on (release) { gotoAndStop(1); } } movieClip 1276 { } movieClip 1285 { instance of movieClip 1276 { 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 1276 { 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 1276 { 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 1276 { 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 1276 { 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 1276 { 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 1276 { 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 1276 { 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 1293 { } movieClip 1296 { } movieClip 1299 { } movieClip 1301 { } movieClip 1303 { } movieClip 1304 { } movieClip 1305 { } movieClip 1309 { } movieClip 1310 { } movieClip 1311 { } movieClip 1314 { } movieClip 1315 { instance Mask of movieClip 1305 { onClipEvent (enterFrame) { this.gotoAndStop(_root.loveDisplay + 1); } } } movieClip 1319 { } movieClip 1320 { } movieClip 1323 { } movieClip 1326 { } movieClip 1330 { } movieClip 1333 { } movieClip 1339 { } button 1345 { on (release) { _root.cache.clear(); _root.gotoAndPlay(1); } } movieClip 1347 { 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 1350 { 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 1357 { frame 1 { gotoAndStop(2); } } button 1359 { on (release) { this.warning.gotoAndStop(8); } } movieClip 1360 { 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 1242 { 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 = 'Continue from your last map.'; if (_root.cache.data.FileExists == true) { this.gotoAndStop(2); } } onClipEvent (rollOut) { this._parent.descript = ''; this.gotoAndStop(1); } } instance of movieClip 1257 { onClipEvent (load) { if (_root.cache.data.FileExists == true) { this._alpha = 0; } else { this._alpha = 100; } } } instance of movieClip 1350 { 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 1364 { frame 2 { stop(); } frame 23 { stop(); } } movieClip 1366 { 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 1229 { onClipEvent (release) { _root.slider.play(); } } instance of movieClip 1229 { 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 1369 { 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 1378 { } movieClip 1381 { } movieClip 1382 { } movieClip 1385 { } movieClip 1386 { } movieClip 1390 { } movieClip 1392 { } movieClip 1393 { } movieClip 1395 { } movieClip 1397 { } movieClip 1399 { } movieClip 1401 { } movieClip 1403 { } movieClip 1404 { } movieClip 1406 { } button 1407 { on (release) { gotoAndStop(1); if (_root.pauseDuringMeet == true && _root.gamePaused == true) { _root.pauseGame(); } } } // unknown tag 88 length 82 movieClip 1415 { } movieClip 1418 { } movieClip 1419 { } button 1422 { on (release) { gotoAndStop('negotiate'); } } movieClip 1424 { } button 1427 { on (release) { gotoAndStop('intimidate'); } } movieClip 1430 { } movieClip 1431 { } button 1434 { on (release) { gotoAndStop('fortify'); } } movieClip 1437 { } movieClip 1439 { } button 1442 { on (release) { gotoAndStop('counter'); } } button 1447 { on (release) { gotoAndStop('bribe'); } } button 1449 { on (release) { _root.Diplomacy('negotiate', 0); } } button 1451 { on (release) { _root.Diplomacy('negotiate', 2); } } button 1453 { on (release) { _root.Diplomacy('negotiate', 1); } } button 1455 { on (release) { gotoAndStop(1); } } button 1458 { on (release) { _root.Diplomacy('bribe', 1); } } button 1460 { on (release) { _root.Diplomacy('bribe', 2); } } button 1462 { on (release) { _root.Diplomacy('bribe', 3); } } button 1464 { on (release) { _root.Diplomacy('bribe', 4); } } button 1466 { on (release) { _root.Diplomacy('bribe', 5); } } button 1468 { on (release) { gotoAndStop('negotiate'); } } button 1473 { on (release) { _root.Diplomacy('intimidate', 0); } } button 1475 { on (release) { _root.Diplomacy('intimidate', 1); } } button 1481 { on (release) { _root.Diplomacy('fortify', 0); } } button 1483 { on (release) { _root.Diplomacy('fortify', 1); } } button 1485 { on (release) { if (StoryFlags[3] != 1) { _root.Diplomacy('fortify', 2); } } } button 1487 { on (release) { _root.Diplomacy('fortify', 3); } } button 1494 { on (release) { _root.Diplomacy('counter', 0); } } button 1496 { on (release) { _root.Diplomacy('counter', 1); } } movieClip 1498 { frame 1 { stop(); } } button 1502 { on (release) { gotoAndStop(5); } } movieClip 1509 { } movieClip 1511 { } movieClip 1513 { } movieClip 1515 { } movieClip 1517 { } movieClip 1519 { } movieClip 1521 { } movieClip 1523 { } movieClip 1525 { } movieClip 1527 { } movieClip 1529 { } movieClip 1531 { } movieClip 1533 { } movieClip 1535 { } movieClip 1537 { } movieClip 1539 { } movieClip 1541 { } movieClip 1543 { } movieClip 1545 { } movieClip 1547 { } movieClip 1549 { } movieClip 1551 { } movieClip 1553 { } movieClip 1555 { } movieClip 1565 { frame 11 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } } movieClip 1567 { } movieClip 1568 { } movieClip 1570 { } movieClip 1572 { } movieClip 1574 { } movieClip 1576 { } movieClip 1578 { } movieClip 1580 { } movieClip 1582 { } movieClip 1584 { } movieClip 1586 { } movieClip 1588 { } movieClip 1605 { frame 10 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } } movieClip 1610 { frame 1 { stop(); } } movieClip 1646 { frame 31 { stop(); } } movieClip 1666 { frame 31 { stop(); } } movieClip 1667 { } movieClip 1668 { } movieClip 1670 { } movieClip 1736 { 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 { _parent.gotoAndStop(1); gotoAndPlay('loop2re'); } } movieClip 1739 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 1740 { frame 1 { stop(); } frame 4 { gotoAndStop(1); } } button 1741 { on (release) { char.char.Phase = 'loop1'; } } button 1743 { on (release) { char.char.Phase = 'loop2'; } } button 1745 { on (release) { char.char.Phase = 'loop3'; } } button 1747 { on (release) { char.char.Phase = 'cum'; char.gotoAndStop(3); } } button 1751 { on (release) { _root.queuemusikBedroom(0); } } button 1752 { on (release) { _root.queuemusikBedroom(1); } } button 1753 { on (release) { _root.queuemusikBedroom(2); } } movieClip 1754 { } movieClip 1757 { } movieClip 1759 { } movieClip 1761 { } movieClip 1763 { } movieClip 1765 { } movieClip 1767 { } movieClip 1769 { } movieClip 1771 { } movieClip 1773 { } movieClip 1775 { } movieClip 1777 { } movieClip 1779 { } movieClip 1781 { } movieClip 1783 { } movieClip 1785 { } movieClip 1787 { } movieClip 1789 { } movieClip 1798 { frame 1 { stop(); } } movieClip 1800 { } movieClip 1802 { } movieClip 1804 { } movieClip 1806 { } movieClip 1808 { } movieClip 1810 { } movieClip 1812 { } movieClip 1828 { 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 1830 { } movieClip 1836 { frame 10 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } } movieClip 1838 { } movieClip 1840 { } movieClip 1842 { } movieClip 1844 { } movieClip 1846 { } movieClip 1856 { frame 9 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } } movieClip 1858 { } movieClip 1860 { } movieClip 1862 { } movieClip 1864 { } movieClip 1866 { } movieClip 1867 { frame 1 { stop(); } } movieClip 1868 { } movieClip 1870 { } movieClip 1880 { frame 1 { stop(); } } movieClip 1882 { } movieClip 1883 { 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 142 { if (Phase == 'loop4') { gotoAndPlay('loop4re'); } } frame 152 { gotoAndPlay(Phase); } frame 162 { this.head.hair.gotoAndPlay('bounce'); this.butt.gotoAndPlay('jiggle'); this.macbutt.gotoAndPlay('jiggle'); this.macbody.macbutt.gotoAndPlay('jiggle'); } frame 169 { gotoAndPlay(Phase); } frame 180 { this.head.hair.gotoAndPlay('bounce'); this.butt.gotoAndPlay('jiggle'); this.macbutt.gotoAndPlay('jiggle'); this.macbody.macbutt.gotoAndPlay('jiggle'); } frame 213 { gotoAndPlay(Phase); } } button 1884 { on (release) { this.char.Phase = 'loop0'; } } button 1886 { on (release) { this.char.Phase = 'loop0b'; } } button 1888 { on (release) { this.char.Phase = 'loop1'; } } button 1890 { on (release) { this.char.Phase = 'loop2'; } } button 1892 { on (release) { this.char.Phase = 'loop3'; } } movieClip 1895 { } movieClip 1897 { } movieClip 1900 { frame 1 { stop(); } } movieClip 1902 { } movieClip 1904 { } movieClip 1906 { } movieClip 1909 { } movieClip 1911 { frame 1 { stop(); } frame 24 { gotoAndPlay('pant'); } } movieClip 1913 { } button 1918 { on (release) { nextFrame(); } } movieClip 1919 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 1923 { } movieClip 1924 { frame 1 { var looperman = 0; } frame 2 { stop(); } frame 5 { looperman = 1; } frame 15 { if (looperman < 5) { ++looperman; gotoAndPlay('uploop'); } else { looperman = 0; } } frame 25 { gotoAndStop(2); } } movieClip 1934 { frame 10 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } } movieClip 1936 { } movieClip 1938 { } movieClip 1940 { } movieClip 1943 { } movieClip 1945 { } movieClip 1946 { frame 1 { stop(); } frame 45 { gotoAndStop(1); } frame 71 { gotoAndStop(1); } } movieClip 1948 { } movieClip 1950 { } movieClip 1952 { } movieClip 1955 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 1957 { frame 1 { stop(); } } movieClip 1959 { } movieClip 1961 { } movieClip 1963 { } movieClip 1965 { } movieClip 1967 { } movieClip 1969 { } movieClip 1971 { } movieClip 1973 { } movieClip 1975 { } movieClip 1977 { } movieClip 1979 { } movieClip 1981 { } movieClip 1986 { frame 1 { stop(); } } movieClip 1993 { } movieClip 2096 { frame 1 { if (!init) { init = true; var Phase = 'idle'; } this.anus.gotoAndStop(1); this.mouth.gotoAndStop('normal'); } frame 40 { if (Phase != 'idle') { this.Flash.gotoAndPlay(2); this.anus.gotoAndStop(2); } gotoAndPlay(Phase); } frame 44 { this.mouth.gotoAndPlay('pants'); } frame 52 { this.butt1.gotoAndPlay('jiggle'); } frame 53 { this.butt2.butt1.gotoAndPlay('jiggle'); } frame 97 { if (Phase == 'idle') { this.Flash.play(); } gotoAndPlay(Phase); } frame 103 { this.mouth.gotoAndPlay('pants'); } frame 106 { this.butt1.gotoAndPlay('jiggle2'); this.butt2.butt1.gotoAndPlay('jiggle2'); } frame 117 { if (Phase == 'idle') { this.Flash.play(); } gotoAndPlay(Phase); } frame 123 { this.mouth.gotoAndPlay('pants'); } frame 125 { this.butt1.gotoAndPlay('jiggle2'); this.butt2.butt1.gotoAndPlay('jiggle2'); } frame 135 { if (Phase == 'idle') { this.Flash.play(); } gotoAndPlay(Phase); } frame 143 { this.mouth.gotoAndPlay('pants'); } frame 144 { this.butt1.gotoAndPlay('jiggle2'); this.butt2.butt1.gotoAndPlay('jiggle2'); } frame 150 { if (Phase == 'idle') { this.Flash.play(); } gotoAndPlay(Phase); } frame 163 { this.mouth.gotoAndStop('pant'); if (this.head.eyeball.looperman == 0) { this.head.stop(); this.head.eyeball.gotoAndPlay('up'); } } frame 165 { this.butt1.gotoAndPlay('jiggle2'); this.butt2.butt1.gotoAndPlay('jiggle2'); } frame 209 { this.head.play(); } frame 244 { this.anus.gotoAndStop(1); this.mouth.gotoAndStop('normal'); } frame 353 { Phase = 'idle'; gotoAndPlay(Phase); } } button 2097 { on (release) { char.Phase = 'idle'; } } button 2099 { on (release) { char.Phase = 'loop1'; } } button 2100 { on (release) { char.Phase = 'loop2'; } } button 2101 { on (release) { char.Phase = 'loop3'; } } button 2103 { on (release) { char.Phase = 'loop4'; } } button 2105 { on (release) { char.Phase = 'cum'; } } movieClip 2109 { } movieClip 2111 { } movieClip 2113 { } movieClip 2115 { } movieClip 2117 { } movieClip 2119 { } movieClip 2121 { } movieClip 2123 { } movieClip 2125 { } movieClip 2127 { } movieClip 2129 { } movieClip 2131 { } movieClip 2133 { } movieClip 2135 { } movieClip 2148 { frame 10 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } } movieClip 2150 { } movieClip 2152 { } movieClip 2154 { } movieClip 2156 { } movieClip 2158 { } movieClip 2164 { frame 1 { stop(); } frame 52 { gotoAndStop(1); } } movieClip 2166 { } movieClip 2168 { } movieClip 2170 { } movieClip 2173 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 2175 { } movieClip 2177 { } movieClip 2179 { } movieClip 2181 { } movieClip 2240 { frame 1 { stop(); } } movieClip 2242 { } movieClip 2244 { } movieClip 2246 { } movieClip 2248 { } movieClip 2250 { } movieClip 2252 { } movieClip 2254 { } movieClip 2256 { } movieClip 2258 { } movieClip 2259 { 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 2260 { on (release) { char.Phase = 'loop1'; } } button 2262 { on (release) { char.Phase = 'loop2'; } } button 2264 { on (release) { char.Phase = 'loop3'; } } button 2266 { on (release) { char.Phase = 'loop4'; } } button 2268 { on (release) { char.Phase = 'cum1'; } } movieClip 2269 { frame 1 { gotoAndStop(_root.MiniScene); } frame 2 { _root.queuemusikBedroom(2); } frame 3 { _root.queuemusikBedroom(2); } frame 4 { _root.queuemusikBedroom(2); } frame 5 { _root.queuemusikBedroom(2); } } button 2270 { on (release) { gotoAndStop(1); if (_root.pauseDuringMeet == true && _root.gamePaused == true) { _root.pauseGame(); } _root.queuemusik(0); } } button 2279 { on (release) { if (_root.EvilData[2] <= 0) { _root.EvilAttacks(); } else { gotoAndStop(1); if (_root.pauseDuringMeet == true && _root.gamePaused == true) { _root.pauseGame(); } } } } movieClip 2288 { frame 1 { stop(); } } button 2289 { 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 = 'Pause Music'; _root.feedText = 'Suspends the soundtrack.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } movieClip 2291 { frame 1 { gotoAndStop(2); } frame 4 { gotoAndStop(2); } } instance musik of movieClip 2291 { onClipEvent (enterFrame) { _root.Musik.setVolume(_root.MusikVolume * _root.MVMaster); } } movieClip 2295 { } movieClip 2297 { } movieClip 2298 { instance of movieClip 2297 { 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 2300 { on (rollOver) { descript = 'CHARISMA\r• Determines Initial Happiness.\r• Affects how quickly Ponies move into Homes.\r• Unlocks additional dialogue options with NPCs.\r• Decreases Unhappiness from Population by 1% per 2 Ranks.\r• Rank 3: Start with a Specialist.\r• Rank 7: Bonuses from Town Squares +5% per Rank.\r• Rank 10: Start with an extra Specialist.'; } on (rollOut) { descript = ''; } } button 2301 { on (rollOver) { descript = 'INSIGHT\r• Decreases amount of Love-Magic needed to Rank Up (-1% per Rank).\r• Provides additional Skill Points upon Rank Up (0.05 per Rank).\r• Improves Tech Lab and Library effeciency.\r• Increases Maximum Mana by 5 per Rank.\r• Rank 3: Increases Maximum Mana by 20.\r• Rank 7: Start with +25 Tech Points.\r• Rank 10: Tech Labs and Power Stations cost 25% less.'; } on (rollOut) { descript = ''; } } button 2302 { on (rollOver) { descript = 'CURIOSITY\r• +10 starting Bits per Rank\r• Traders will visit your town more often.\r• Increases Maximum Traders by 1 per 5 Ranks.\r• Specialists gain information quicker when Scouting.\r• Rank 3: +50 Bits and +150 Food.\r• Rank 7: +1 Trade Quantity.\r• Rank 10: Stores and Town Squares cost 33% less.'; } on (rollOut) { descript = ''; } } button 2303 { on (rollOver) { descript = 'KARMA\r• Determines how many trees are spawned.\r• Improves Luck in all aspects.\r• Determines initial environmental health (85 + 5% Per Rank).\r• Decreases the negative effects of structures.\r• Rank 3: a black cat won\'t cross your path.\r• Rank 7: Start with +10 Gems.\r• Rank 10: Gain Love Magic when Changeling Invasions fail.'; } on (rollOut) { descript = ''; } } button 2304 { on (rollOver) { descript = 'WILLPOWER\r• Specialists are more effecient.\r• Determines initial Defense Rating of town.\r• Decreases frequency of Changling Invasions.\r• Lessens negative effects of environmental-degration.\r• Rank 3: Delays the first Invasion by 15 days.\r• Rank 7: Hiring new specialists is 20% cheaper.\r• Rank 10: Increases maximum happiness by 10.'; } on (rollOut) { descript = ''; } } button 2305 { on (rollOver) { descript = 'Your town\'s name!'; } on (rollOut) { descript = ''; } } button 2306 { on (rollOver) { descript = 'Your character\'s name!'; } on (rollOut) { descript = ''; } } movieClip 2309 { } button 2310 { on (rollOver) { StatBracketHint(); } on (rollOut) { descript = ''; } } movieClip 2314 { } button 2315 { 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 2316 { 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 2317 { 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 2318 { 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 2319 { 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 2320 { 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 2321 { 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 2322 { 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 2323 { 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 2324 { 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 2327 { on (rollOver) { descript = 'NORMAL MODE\rStandard, balanced gameplay that anyone can enjoy.'; } 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 2328 { on (rollOver) { descript = 'CHALLENGE MODE\rA more difficult setting that requires a strong understanding of the game\'s mechanics.\r• Increases Changling Invasion frequency.\r• Increased Unhappiness for population count.\r• Game cannot be paused.\r• Smaller map.'; } 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 2341 { on (press) { _root.colorChangeRed = 1; } on (release) { _root.colorChangeRed = 0; } } button 2342 { on (press) { _root.colorChangeRed = -1; } on (release) { _root.colorChangeRed = 0; } } movieClip 2345 { } movieClip 2348 { 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 2349 { on (press) { _root.colorChangeGreen = 1; } on (release) { _root.colorChangeGreen = 0; } } button 2350 { on (press) { _root.colorChangeGreen = -1; } on (release) { _root.colorChangeGreen = 0; } } button 2352 { on (press) { _root.colorChangeBlue = 1; } on (release) { _root.colorChangeBlue = 0; } } button 2353 { on (press) { _root.colorChangeBlue = -1; } on (release) { _root.colorChangeBlue = 0; } } movieClip 2360 { } movieClip 2363 { } movieClip 2365 { } button 2369 { on (release) { _parent.play(); } } button 2370 { on (release) { _root.gotoAndStop('title'); } } movieClip 2374 { } movieClip 2375 { } movieClip 2376 { } movieClip 2377 { } movieClip 2378 { } movieClip 2379 { } movieClip 2380 { } movieClip 2381 { } movieClip 2382 { } movieClip 2383 { } movieClip 2384 { } movieClip 2385 { } movieClip 2386 { } movieClip 2387 { } movieClip 2388 { } movieClip 2389 { } movieClip 2390 { } movieClip 2391 { } movieClip 2392 { } movieClip 2393 { } movieClip 2394 { } movieClip 2395 { } movieClip 2396 { } movieClip 2397 { } button 2399 { on (release) { nextFrame(); } } button 2402 { on (release) { prevFrame(); } } movieClip 2407 { frame 1 { stop(); } } movieClip 2409 { 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 = 'Stats can be increased to a maximum of Rank 10 and determine your character\'s personality and abilities.'; } var descript = ''; var traitsDescription = new Array('', 'PROSPECTOR\rSome ponies are natural-born explorers, destined to excavate the earth and discover its many wonders. This trait will allow quarries to be built near residental areas without the usual downsides of reducing happiness and causing ponies to leave, but Gardens will have no environmental benefit.', 'HARMONIOUS\rLove or Hate. War or Peace. For those who are peaceful at heart, the decision is obvious. This trait will give a happiness bonus for cities with a high defensive rating, but will restrict the offensive nature of its military by making raiding half as effective.', 'CHEAPSKATE\rSometimes cutting-corners can help speed up the process of creating a city. This trait will not only make buildings less expensive, but they\'ll build in half the time. Great for those who are impatient and frugal!', 'ENVIRONMENTALIST\rOnly when the earth is healthy can one be happy, or at least that\'s what environmentalists think. This trait will give you +1 happiness for every 2 points of Eco Score above 15, but if it drops below that it will DECREASE happiness by the same amount for every 2 points below 15.', 'BOTANIST\rGardening can be a great hobby, especially if you\'re fascinated by plant-life. Your cities will flock to the nearby garden to see your amazing designs! This trait gives Gardens the same radius as the default Town Square, but Quarries have bigger radiuses too.', 'HEDONIST\rMoney is simply an obstacle in the persuit of true pleasure and self-indulgence. This trait allows your citizens to eat like pigs and live for free, which results in essentially twice as much Love Magic generation.', 'PREPARED\rBeing ready for anything is great sign of someone who knows what they\'re doing, even if it means working a little harder. This trait will allow your first Town Square to be built for free and increases your starting Bits, as well as Tech and Gems if you have enough Insight and Karma, but will make increasing Magic Ranks slightly slower.', 'SOCIALIST\rAhhh socialism, the good life. This trait means that even when on the outskirts of society, ponies will feel comfortable and safe due to such a charismatic and wonderful leader! Who wouldn\'t want to go fight a pointless war for a guy like that? Unfortunately, your dislike of industrialization will make it more expensive to get quarries and factories.', 'SCIENTIST\rBeing preoccupied with research and advancement of technologies can slow down other priorities, but a person of science believes that it\'s worth it in the long run. This trait will increase generation of Tech Points while reducing the generation of Love.', 'INVESTOR\rPatience is a virtue, especially when waiting for the right deal. This trait will increase the number of maximum number of Traders that can be in your Town Square and increase the amount of quantity per trade by double. The only downside is that market prices will take a longer to shift, not a problem for a patient pony!', 'MERCANTILE\rThe life of a merchant is a good life, especially if you love to socialize and make bargains. This trait will increase the rate at which Traders come to your Town Square by 400% and give you a global happiness bonus. However, this will be your only source of income besides houses.', 'CURSE OF THE FOREST GOD\rA terrible fate to be cursed by the forest god. This trait will cause trees to generate mana over time; just keep the forest alive or you will anger the forces that lie beyond the realm of reality.', 'SUPERSTITIOUS\rMany of us try not to let the possibility of supernatural beings interrupt their mojo, but others cannot simply overlook what might be out there. Instead of gaining mana by earning excess happiness, an automatic 4 mana is generated each day.', 'TYRANT\rA voice that must be constantly heard, a control freak, a ruler that will sacrifice the well being of its citizens to ensure a powerful reign. Edicts are twice as powerful and only last day, allowing you to constantly change which Edicts are active, but your town\'s maximum happiness will be cut in half as a penalty.', 'CAREFREE\rSome things in life are bad. They can really make you mad. Other things just make you swear and curse. When you\'re chewing on life\'s gristle. Don\'t grumble, give a whistle. And this\'ll help things turn out for the best... and always look on the bright side of life!', 'VENETIAN\rThe smell of pasta and gondolas is in the air! One of the most unique ones of them all, this trait will give you massive defense bonus and bonus happiness whenever you trade but your City will be spread out across many waterbourne islands.', 'GENGHIS PONY\rFor those warmongers ponies who love the thrill of conflict and aren\'t afraid of those stinky Changelings, this trait will grant an extra starting Specialist andallow your Specialists to conduct raids twice as often. The only downside is, if you can even call it a downside, that your town will be raided twice as often. Pffft... who cares!', 'VETERAN\rSometimes it takes someone with a little military experience to be an effective leader. Although wartime has made you bitter towards new recruits, you\'ll more than make up for it by inviting one of your old war buddies to join your Defense Force.', 'ALCOHOLIC\rDrink Triple. See Double. Act Single.', 'VIRGIN\rI UNDERSTAND MORE THAN YOU CAN POSSIBLY KNOW. A WIZARD WHO\'S POWER IS UNMATCHED BY EVEN THE MOST CUNNING OF SORCERS. THE REWARD FOR IGNORING WHORES. A SHAME NORMALS CAN\'T ENJOY IT WITH US.', 'WELL-FED\rThe key to happiness is a full tummy, or at least that\'s what food-enthusiasts like to believe. Even when the world is tiresome and rough, as long as there\'s a nice warm meal waiting at home you can\'t really complain too much!', 'EQUALITY\rAbandon your unique talents and unlock true happiness.', 'EXPLORER\rStaying in one place for their entire lives works for some, but not for you. You love to get up and about, see the sights, explore new worlds. Unfortunately, your pioneering habits will make it hard to concentrate on what other people are doing, your scouting coverage will be reduced so it might be hard to tell what the changelings are up to.', 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 1276 { onClipEvent (load) { if (_root.difficulty == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance CB2 of movieClip 1276 { onClipEvent (load) { if (_root.difficulty == 2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } movieClip 2413 { frame 1 { var startresource = 'Starting Resources: Normal'; gotoAndPlay(2); } instance input of movieClip 2409 { 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 2419 { } movieClip 2421 { } movieClip 2422 { } movieClip 2424 { } movieClip 2427 { } movieClip 2428 { } movieClip 2430 { } movieClip 2432 { } movieClip 2434 { } movieClip 2436 { } // unknown tag 88 length 67 movieClip 2443 { } button 2447 { on (release) { _root.gotoAndStop('intro'); } } movieClip 2450 { } movieClip 2454 { } movieClip 2455 { } movieClip 2459 { } movieClip 2464 { } // unknown tag 88 length 39 movieClip 2472 { } movieClip 2474 { frame 1 { gotoAndPlay(2); } frame 4 { _root.queuemusikSingle(1); } frame 38 { stop(); } instance of movieClip 1126 { 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 2480 { } movieClip 2481 { } movieClip 2482 { frame 1 { stop(); } } button 2483 { 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) == '(Karma)') { 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) == '(Charm)') { 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) == '(Karma)') { 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) == '(Charm)') { 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([['The supply caravan that is owned by the Royal Castle stopped by your city to see if you need any supplies; for free, of course.', 'Some additional Food would be nice', 'Party Supplies to boost Happiness', 'The offer is appreciated, but unnecessary', '(Karma) A few Gems wouldn\'t hurt...(7)'], ['The caravan parts with some extra food, increasing your current stock by 10%.', 'OK'], ['The caravan leaves you with some party supplies which are immediately distributed to the citizens.\r' + _root.TownName + '\'s Happiness increased by 5.', 'OK'], ['Despite being impressed by your independance, the caravan leaves without any contributions.', 'OK'], ['One of the caravan workers shrugs and confesses that he could part with a few Gems. He claims that something really great happened earlier today and feels that you were somehow responsible.', 'OK'], [NaN]], [['A homely, poverty strucken pony has traveled from a nearby town that was destroyed by changelings. She is on her way to the Royal Castle, and is requesting some Food and Bits to make her journey possible.', 'Give her what she needs.', 'Tell her to take a hike.', '(Karma) Give her 10 Food and 5 Bits.(7)', ''], ['The homely pony accepts your gifts and leaves, satisfied. After she\'s long gone you realize she took 10% of your total Food and Bits storage... perhaps a little more than she actually needed. However citizens of your town were very pleased at your generousity.\rLove Magic increased slightly.', 'OK'], ['The homely pony frowns but ultimately understands that you\'re unwilling to cater to her needs. Your town takes notice of your selfishness, however, temporarily decreasing Happiness.', 'OK'], ['The homely pony seems slightly annoyed for some reason, but accepts your generous gift and leaves immediately without saying thanks.', 'OK'][NaN]], [['One of your residents is attempting to conduct a risky experiment and is looking for some financial support. If successful she will share the results with you, granting Technology Points.', 'Offer 10% of current Bits', 'Offer 30% of current Bits', 'Offer 50% of current Bits', 'Decline the offer'], ['Reluctantly, the pony accepts your small investment. By the end of the day she reports back with minor success, granting a very small bonus to Tech Points.', 'OK'], ['Pleased, the pony accepts your modest investment with a big smile. By the end of the day she reports back with great success, granting a large bonus to Tech Points.', 'OK'], ['Very excited, the pony accepts your large investment and runs off to get to work. By the end of the day she reports back that the project was a complete failure, and isn\'t sure why. She feels bad about wasting your investment.', '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(['Town Square', 45, 0, 0, 0, 24, 110, 0, 0], ['Store', 15, 0, 0, 0, 16, 135, 0, 1], ['Library', 75, 0, 0, 0, 32, 50, 0, 2], ['House', 10, 0, 0, 0, 8, 50, 0, 3], ['Garden', 20, 0, 0, 0, 8, 75, 0, 4], ['Gem Quarry', 225, 0, 0, 0, 24, 230, 0, 5], ['Tavern', 250, 0, 0, 50, 96, 230, 0, 6], ['Laboratory', 350, 0, 0, 50, 64, 50, 1, 0], ['Flower Farm', 120, 800, 0, 0, 16, 50, 1, 1], ['Tree House', 40, 0, 0, 10, 32, 50, 1, 2], ['Power Station', 150, 0, 0, 50, 32, 110, 1, 3], ['Sex Factory', 1200, 0, 0, 50, 128, 180, 1, 4], ['Mayor\'s Office', 150, 0, 0, 0, 16, 0, 1, 5], ['Armory', 250, 0, 0, 0, 32, 75, 1, 6], ['Shield Generator', 3000, 0, 0, 250, 256, 230, 2, 0], ['Academy', 1600, 0, 325, 0, 128, 110, 2, 1], ['Keep', 325, 0, 0, 40, 64, 110, 2, 2], [NaN]); var naturalList = new Array([['Tree', 'Improves Eco Score. Is destroyed if another building is placed here.'], ['Tree', 'Improves Eco Score. Is destroyed if another building is placed here.'], ['Tree', 'Improves Eco Score. Is destroyed if another building is placed here.'], ['Tree', 'Improves Eco Score. Is destroyed if another building is placed here.'], ['Tree', 'Improves Eco Score. Is destroyed if another building is placed here.'], ['Tree', 'Improves Eco Score. Is destroyed if another building is placed here.'], ['Tree', 'Improves Eco Score. Is destroyed if another building is placed here.'], ['Tree', 'Improves Eco Score. Is destroyed if another building is placed here.'], ['Tree', 'Improves Eco Score. Is destroyed if another building is placed here.'], ['Tree', 'Improves Eco Score. Is destroyed if another building is placed here.'], ['Tree', 'Improves Eco Score. Is destroyed if another building is placed here.'], ['Tree', 'Improves Eco Score. Is destroyed if another building is placed here.'], ['Tree', 'Improves Eco Score. Is destroyed if another building is placed here.'], ['Tree', 'Improves Eco Score. Is destroyed if another building is placed here.']], [['n2--', '?????'], ['n2++', '?????']]); var modeList = new Array(new Array(['Growth', 'Encourages population growth, causing ponies to move in faster. Global Effect: increases Love Magic generated by your ponies by 10%.'], ['Economic', 'Promotes a hard-working community to increase Bits-Income, but lowers Happiness. Global Effect: Traders visit your town\'s Local Food Market 50% more often.'], ['Relaxed', 'Creates a relaxing environment for citizens to increase Happiness. Global Effect: Increases Happiness by +4 per Day.'], [NaN]), new Array(['Bakery', 'Bakes warm cupcakes and pies for all to enjoy, increasing Happiness for each house within the Store\'s radius. Generates 48 Food per Day.', 'Store', 15, 0, 0, 0, true, true], ['Deli', 'Makes sandwiches, which are less exciting but more filling. Generates 64 Food per Day.', 'Store', 15, 0, 0, 0, true, true], ['Party', 'Throws exciting parties for ponies in nearby nodes, significantly improving their Happiness. Ponies must live within the radius of this structure to be satisfied.', 'Store', 15, 0, 0, 0, true, true], ['Basic', 'Advanced, all-purpose store. Cannot be toggled through different modes but generates 96 Food per Day, increases Happiness and has increased Food Storage size.', 'Super Store', 120, 0, 0, 5, false], [NaN]), new Array(['Book Checkout', 'Provides a friendly community service for a humble profit. Generates Bits based on population size. Multiple Libraries of this mode have diminishing returns.'], ['Research', 'Dedicates the library towards generating Tech points. Multiple Libraries of this mode each have diminishing returns.'], ['Symposiums', 'Ponies gather at the library in collaboration. Boosts population growth and Happiness. Multiple Libraries of this mode have diminishing returns.'], [NaN]), new Array(['Basic', 'Simple house. Holds up to 8 Earth Ponies. Every 2 ponies consume 4 Food each Day, meaning that 16 food per Day must be generated in order to sustain this home.', 'House', 10, 0, 0, 0, false, true], [NaN], [NaN], ['Basic', 'Fancy house. Holds up to 12 Earth Ponies. Every 2 ponies consume 4 Food each Day, meaning that 24 food per Day must be generated in order to sustain this home.', 'Manor', 80, 0, 0, 0, false, true], ['Basic', 'Luxurious house. Holds up to 16 Earth Ponies. Every 2 ponies consume 4 Food each Day, meaning that 32 food per Day must be generated in order to sustain this home.', 'Villa', 160, 0, 0, 20, false, false], [NaN]), new Array(['Basic', 'Beautiful garden that increases Love Magic generation by 100% for all nearby homes. Improves Ecobalance slightly.'], [NaN], [NaN], [NaN]), new Array(['Extracting Gems', 'Quarries will not function with a population of less than 50. Although Gems are plentiful in this land, only the most precious of gems are considered currency.'], ['Mining Gold', 'Quarries will not function with a population of less than 50. Mines for gold ore, which is turned over for direct profit in Bits. Generates 32 Bits each Day.'], ['No Mining', 'Halts the mining process, which will also temporarily cease any negative effects the Quarry has on nearby homes.'], [NaN]), new Array(['Serving Drinks', 'Serves drinks to customers at a fair price, boosting Bits-Income and Happiness for each House within its radius.'], ['Happy Hour', 'Gives away free drinks and serves as the perfect hang out, boosting Love-Magic and Happiness for each house within its radius.'], ['Bordello', 'Provides free sexy entertainment for guests, significantly boosting Love-Magic.'], [NaN]), new Array(['Research', 'Dedicates the laboratory towards research in order to generate Tech points over time.'], ['Eco-Tech', 'Slowly restores the Environmental condition, adding 1% per Day. Maximum of 200%.'], ['Outlawed Tech', 'Works under the table to gain Tech points very quickly, but brings about certain risks.'], [NaN]), new Array(['Basic', 'Not yet ready for harvesting.'], ['Basic', 'Not yet ready for harvesting.'], ['Bloomed', 'If a Store is within it\'s radius, it will automatically be harvested soon for a large Food yield.'], [NaN]), new Array(['Basic', 'Eco-friendly house. Holds up to 4 Earth Ponies. Improves Ecobalance.'], [NaN], [NaN], [NaN]), new Array(['Basic', 'Tree-Powered energy station. Increases Eco-Score for each tree in its radius, and allows nearby Tech Labs to function.'], [NaN], [NaN], [NaN]), new Array(['Sex Toys', 'Manufactures silicone horsecocks for ponies to enjoy. Global: Increases Bits-Income of Houses by 25%. Stacks multiple times.'], ['Latex Gear', 'Manufactures bondage paraphernalia for ponies to enjoy. Global: Increases Love-Magic generation of Houses by 25%. Stacks multiple times.'], ['Gem Cutter', 'Automatically converts 60 Bits into 4 Gems per day. Requires a nearby Store.'], [NaN]), new Array(['Basic', 'Allows the purchase of additional land space. Also makes your town look prettier!'], [NaN], [NaN], [NaN]), new Array(['Basic', 'Can be used to hire additional Specialists to join your defense force. Houses within the Armory\'s radius will generate Defense Rating.'], [NaN], [NaN], [NaN]), new Array(['Basic', 'Once activated, this town will be fully protected and an Ascension can take place.'], [NaN], [NaN], [NaN]), new Array(['Training', 'Daily upkeep is 4 Tech Points. Each day every Specialists will automatically recieve experience. Nearby houses generate Happiness and additional Bits.'], ['Research', 'Global: Increases Tech Point generation for all structures by 25%. Nearby houses generate Happiness and additional Bits.'], ['Mana Tech', 'Daily upkeep is 4 Tech Points. Each day you will gain 5 Mana to use on Adviser Powers. Nearby houses generate Happiness and additional Bits.'], [NaN]), new Array(['Basic', 'As long as there is at least one Armory within this structure\'s range, it will permanently increase your city\'s Defense Rating by +1 each day.'], [NaN], [NaN], [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, 'More Productive Stores', 'Stores produce +4 Food per Day.'], [30, 'Self-Sufficient Citizens', 'Each Home produces 4 Food per Day.'], [65, 'Delivery Service', 'Increases the Store\'s range of influence.'], [135, 'Flash-Freeze', 'Food Storage provided by Stores increased by 150%'], [155, 'Party-Tech', 'Party Stores provide 20% more Happiness.'], [400, 'Aphrodisiacs', 'Stores increase Love-Magic generation of affected Homes.'], [600, 'Special Cookies', '5% of Food becomes Love Magic each day. Requires 400+ Pop.'], [NaN]); var upgradeStoreCost = 15; var upgradeLibraryRank = 0; var upgradeLibrary = new Array([25, 'Organized Aisles', 'Libraries produce 10% more Happiness, Tech Points and Bits.'], [75, 'Community Research', 'Library radius increased. Affected Houses generate more Tech.'], [200, 'Arcane Knowledge', 'Gain 0.1 Mana each Day per Library.'], [325, 'Industrial Sciences', 'Libraries reduce gem-cutting cost of nearby Factories by 5.'], [400, 'Networking', 'Library radius increased further.'], [NaN]); var upgradeLibraryCost = 25; var upgradeTechLabRank = 0; var upgradeTechLab = new Array([150, 'Chemical Tests', 'All structures produce 10% more Tech Points.'], [275, 'Monetization', 'Tech Labs also generate 40 Bits per day each. (60 in Mode 3)'], [400, 'Armor Apparatus', 'Specialists are 50% more effective at Preparing.'], [525, 'Ecstasy Emitters', 'Houses within range of a Tech Lab generate extra Love Magic'], [650, 'Shield Tech', 'Increases Shield Generation rate by 100%.'], [NaN]); var upgradeTechLabCost = 150; var upgradeMoreTilesRank = 0; var upgradeMoreTiles = new Array([500, 'Additional Land 1', 'Increases the amount of owned tiles by 9.'], [1000, 'Additional Land 2', 'Increases the amount of owned tiles by 9.'], [1500, 'Additional Land 3', 'Increases the amount of owned tiles by 9.'], [2000, 'Additional Land 4', 'Increases the amount of owned tiles by 9.'], [2500, 'Additional Land 5', 'Increases the amount of owned tiles by 9.'], [3000, 'Additional Land 6', 'Increases the amount of owned tiles by 9.'], [3500, 'Additional Land 7', 'Increases the amount of owned tiles by 9.'], [4000, 'Additional Land 8', 'Increases the amount of owned tiles by 9.'], [4500, 'Additional Land 9', 'Increases the amount of owned tiles by 9.'], [5000, 'Additional Land 10', 'Increases the amount of owned tiles by 9.'], [5500, 'Additional Land 11', 'Increases the amount of owned tiles by 9.'], [6000, 'Additional Land 12', 'Increases the amount of owned tiles by 9.'], [6500, 'Additional Land 13', 'Increases the amount of owned tiles by 9.'], [7000, 'Additional Land 14', 'Increases the amount of owned tiles by 9.'], [7500, 'Additional Land 15', 'Increases the amount of owned tiles by 9.'], [8000, 'Additional Land 16', 'Increases the amount of owned tiles by 9.'], [8500, 'Additional Land 17', 'Increases the amount of owned tiles by 9.'], [9000, 'Additional Land 18', 'Increases the amount of owned tiles by 9.'], [9500, 'Additional Land 19', 'Increases the amount of owned tiles by 9.'], [10000, 'Additional Land 20', 'Increases the amount of owned tiles by 9.'], [11000, 'Additional Land 21', 'Increases the amount of owned tiles by 9.'], [12000, 'Additional Land 22', 'Increases the amount of owned tiles by 9.'], [13000, 'Additional Land 23', 'Increases the amount of owned tiles by 9.'], [14000, 'Additional Land 24', 'Increases the amount of owned tiles by 9.'], [15000, 'Additional Land 25', 'Increases the amount of owned tiles by 9.'], [16000, 'Additional Land 26', 'Increases the amount of owned tiles by 9.'], [17000, 'Additional Land 27', 'Increases the amount of owned tiles by 9.'], [NaN]); var upgradeMoreTilesCost = 500; var specialistsTotal = 0; var upgradeHireSpecialistRank = _root.specialistsTotal; var upgradeHireSpecialist = new Array([100, 'Hire 1st Specialist', 'Hires a new Specialist to be added to your defense force.'], [500, 'Hire 2nd Specialist', 'Hires a new Specialist to be added to your defense force.'], [1000, 'Hire 3rd Specialist', 'Hires a new Specialist to be added to your defense force.'], [1500, 'Hire 4th Specialist', 'Hires a new Specialist to be added to your defense force.'], [2000, 'Hire 5th Specialist', 'Hires a new Specialist to be added to your defense force.'], [NaN]); var upgradeHireSpecialistCost = 250; var tradingPrices = new Array(['Food Market', 50, 40, 60, 3, 3, 3, 50, 40, 60, 3, 3, 3, true], ['Gems Market', 5, 5, 5, 60, 40, 65, 5, 5, 5, 45, 30, 55, true]); var bankNameFirst = new Array('Apple', 'Starlight', 'Summer', 'Ribbon', 'Sugar', 'Windy', 'Cloudy', 'Snowflake', 'Berry', 'Rainy', 'Scarlet', 'Silky', 'Cinnamon', 'Emerald', 'Ivory', 'Misty', 'Essence', 'Autumn', 'Bubbly', 'Licky', 'Slurpy', 'Bouncy', 'Squishie', 'Tender', 'Rosewood', 'Silver', 'Sloppy', 'Sunset', 'Sniffy', 'Slappy', 'Stinky', 'Hyper', 'Speedy', 'The'); var bankNameSecond = new Array('Tart', 'Sweet', 'Sprinkle', 'Twinkle', 'Shimmer', 'Snuggles', 'Swirl', 'Bouquet', 'Brew', 'Grace', 'Blossom', 'Bubbles', 'Buttercup', 'Hooves', 'Clops', 'Quick', 'Stout', 'Squish', 'Prance', 'Plop', 'Roll', 'Buns', 'Plot', 'Moon', 'Gem', 'Loves', 'Sparkle', 'Dash', 'Pie', 'Whisper', 'Flop', 'Cake', 'Pop', 'Bounce', 'Boop', 'Twirl'); 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('A new Specialist named <font color=\'#ffcc00\'>' + specialistsStats[specialistsTotal - 1][0] + '</font> has been added to your defense force.'); 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> is gone.'); --specialistsTotal; CheckSpecialists(); } function CheckSpecialists() { specialistStatusCount = specialistsTotal; 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) { specialistsStats[wumbo][4] = int(8 + 8 * (specialistsStats[wumbo][1] * specialistsStats[wumbo][1] * expGrowth)); if (specialistsStats[wumbo][2] == '') { DefenseRatingMod += 40 + statWillpower * 1.5 + 6 * (specialistsStats[wumbo][1] * specialistsStats[wumbo][1] * 0.1); --specialistStatusCount; break; } else {} ++j; } ++wumbo; } specialistStatus = specialistStatusCount + '/' + specialistsTotal; 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) + ' Days'; } else { if (EvilData[0] > 35) { if (Threat >= 90) { ThreatRatingDisplay = 'Extreme'; } else { if (Threat > 80) { ThreatRatingDisplay = 'Very High'; } else { if (Threat > 65) { ThreatRatingDisplay = 'High'; } else { if (Threat > 40) { ThreatRatingDisplay = 'Moderate'; } else { if (Threat > 15) { ThreatRatingDisplay = 'Low'; } else { ThreatRatingDisplay = 'Safe'; } } } } } if (EvilData[2] > 30) { NextAttackDisplay = 'Distant'; } else { if (EvilData[2] > 10) { NextAttackDisplay = 'Soon'; } else { NextAttackDisplay = 'Very Soon'; } } } else { ThreatRatingDisplay = 'Unknown'; NextAttackDisplay = 'Unknown'; } } 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') { if (upgradeTechLabRank >= 3) { DefenseRating += 1.5 * (_root.randRange(0.65, 1) * (1 + statWillpower * 2.5 / 100) * (1 + specialistsStats[wumbo][1] * 0.2)); } else { 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(1, 2.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\'>Specialist ' + specialistsStats[wumbo][0] + '</font> has achieved <font color=\'#ffcc00\'>Rank ' + specialistsStats[wumbo][1] + '</font>'); _root.hudInfo.specialistTable['specialist' + wumbo].nameRank = _root.specialistsStats[wumbo][0] + '\n' + 'Rank ' + _root.specialistsStats[wumbo][1]; } } else { if (specialistsStats[wumbo][2] == 'snap' + j + 'c') { raidChance = 40 + int(skill_Discipline * 0.5); roll = randRange(0, 100); if (roll < raidChance) { if (traitsOwned[17] == 1) { raidCounter += 2; } else { raidCounter += 1; } if (raidCounter >= 6) { 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 (roll > 50) { 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\'>Specialist ' + specialistsStats[wumbo][0] + ' safely returned from a raid.</font>'); roll = randRange(1, 10); if (roll == 1) { bonusGET = int(1 * bonusGET); newMSG('<font color=\'#ffcc00\'>' + bonusGET + ' Bits</font> were stolen from a Changeling outpost.'); resources[0][1] += bonusGET; } else { if (roll == 2) { bonusGET = int(10 * bonusGET); newMSG('<font color=\'#ffcc00\'>' + bonusGET + ' Food</font> was stolen from a Changeling farm.'); resources[1][1] += bonusGET; } else { if (roll == 3) { bonusGET = int(0.25 * bonusGET); newMSG('<font color=\'#ffcc00\'>' + bonusGET + ' Tech Points</font> were gained from a Changling research facility.'); resources[2][1] += bonusGET; } else { if (roll == 4) { bonusGET = int(0.1 * bonusGET); newMSG('<font color=\'#ffcc00\'>' + bonusGET + ' Gems</font> were stolen from a Changling gem quarry.'); resources[3][1] += bonusGET; } else { if (roll == 5) { newMSG('An enemy Changeling military outpost was destroyed, permanently weakening their attack forces.'); EvilData[1] = int(EvilData[1] * 0.9); } else { if (roll == 6) { newMSG('An enemy Changeling caravan was interrupted, delaying their next attack by 2 Days.'); EvilData[2] += 8; } else { if (roll == 7) { newMSG('An enemy Changeling messenger was captured, increasing your scout coverage to 100%.'); EvilData[0] = 100; } else { if (roll == 8) { newMSG('No enemies were found, but came across some sexy ponies in the woods. Love Magic increased by ' + loveToRank / 20 + '.'); loveGain(loveToRank / 20); } else { bonusGET = int(0.5 * bonusGET); newMSG('<font color=\'#ffcc00\'>' + bonusGET + ' Bits</font> were stolen from a Changeling caravan.'); resources[0][1] += bonusGET; } } } } } } } } } else { roll = randRange(1, 2); if (roll == 1) { newMSG('<font color=\'#ffcc00\'>Specialist ' + specialistsStats[wumbo][0] + '</font> returned from a raid empty handed.'); happiness -= 5; } else { if (roll == 2) { newMSG('<font color=\'#ff0000\'>Specialist ' + specialistsStats[wumbo][0] + ' returned from a dangerous raid!</font>'); roll = randRange(1, 7); if (roll == 1) { newMSG('<font color=\'#ff0000\'>They barely managed to escape a Changling Fortress, but their injuries have lowered their Rank by 1.</font>'); if (specialistsStats[wumbo][1] > 1) { specialistsStats[wumbo][1] -= 1; } happiness -= 15; } else { if (roll == 2) { bonusGET = int(0.33 * bonusGET); if (bonusGET > resources[0][1]) { bonusGET = resources[0][1]; } newMSG('<font color=\'#ff0000\'>They were captured by some Bandit Ponies and had to pay ' + bonusGET + ' Bits as ransom.</font>'); happiness -= 15; resources[0][1] -= bonusGET; } else { if (roll == 3) { bonusGET = int(0.5 * bonusGET); if (bonusGET > resources[0][1]) { bonusGET = resources[0][1]; } newMSG('<font color=\'#ff0000\'>They accidentally attacked a friendly town of Ponies. ' + bonusGET + ' Bits were paid for damages.</font>'); happiness -= 15; resources[0][1] -= bonusGET; } else { if (roll == 4) { bonusGET = int(5 * bonusGET); if (bonusGET > resources[1][1]) { bonusGET = resources[1][1]; } newMSG('<font color=\'#ff0000\'>They had to hide from an ambush and ate ' + bonusGET + ' Food while they waited it out.</font>'); happiness -= 15; resources[1][1] -= bonusGET; } else { if (roll == 5) { bonusGET = int(0.5 * bonusGET); if (bonusGET > resources[0][1]) { bonusGET = resources[0][1]; } newMSG('<font color=\'#ff0000\'>They almost got Captured by the Changling army and made into permanent slaves!</font>'); happiness -= 30; } else { if (roll == 6) { newMSG('<font color=\'#ff0000\'>They pissed off the Changling empire, causing them to strengthen their forces!</font>'); EvilData[1] = int(EvilData[1] * 1.1); } else { if (roll == 7) { newMSG('<font color=\'#ff0000\'>They pissed off the Changling empire, causing them to attack sooner!</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], 'grass'); } upgradeMoreTilesRank += 1; newMSG('<font color=\'#ffcc00\'>Specialist ' + specialistsStats[wumbo][0] + '</font> has discovered a new plot of land to build on!'); } } } } } } ++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 = 'INVASION'; 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 = 'Uh oh. The changeling army has arrived and managed to break through your defenses, but luckily it was only a very minor attack. They barely managed to steal some resources before escaping.'; _root.unlockpop.DescriptGet = 'You have lost ' + rolls[0] + ' Coins, ' + rolls[1] + ' Food and ' + rolls[2] + ' Gems. Happiness reduced severely'; } 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 = 'Agh! The changeling army has arrived and managed to break through your defenses, laying waste to your town!'; _root.unlockpop.DescriptGet = 'Nearly all of your resources were taken. One of your Specialists was permanently captured. All joy is gone from ' + townName + '.'; } if (fate > 2) { if (perksOwned[15] == 1 && extraLives > 0) { --extraLives; _root._root.unlockpop.Descript = 'Due to your city\'s outstandingly poor defenses, the changelings nearly conquered your city.'; _root.unlockpop.DescriptGet = 'Fortunately your paranoid behavior has paid off, allowing you to avoid sheer defeat through a miracle of decision-making.'; } else { defeated = true; cache.data.PlayerData[17] = true; _root.gotoAndStop('rubble'); _root._root.unlockpop.Descript = 'Due to your city\'s outstandingly poor defenses, the changelings have captured you and your entire city has been destroyed.'; _root.unlockpop.DescriptGet = 'You have been conquered. You will have to create a new town from scratch but any content you\'ve unlocked will stay unlocked permanently.'; } } } else { fate = 0; _root.unlockpop.Descript = 'The changeling army has arrived, but due to your impressive defense you were able to fend them off without any harm to your town or its citizens.'; _root.unlockpop.DescriptGet = 'No harm done, for now. Happiness increased significantly.'; 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 = 'DIPLOMACY'; CheckSpecialists(); EvilForce = EvilData[1]; EvilForceDisplay = int(EvilForce / 10); Phrase = 'The changeling army has arrived on the horizon and prepares to invade your town. You can either make an attempt at diplomacy by talking to their mediator, or making a strategic military option to shape your odds. '; if (Threat > 80) { Phrase += 'Their numbers are vast and seemingly endless, you feel like only a miracle could save you from utter defeat. They blacken the outskirts of your town and look hungry for all that delicious love magic.'; } else { if (Threat > 60) { Phrase += 'Their numbers are great and you begin to worry if you are outmatched. Nearly everywhere you look you see them in the distance, ready to overwhelm you and put an end to your peaceful existence.'; } else { if (Threat > 40) { Phrase += 'They have a fairly large army, definitely a force to be reckoned with. A careful decision must be made.'; } else { if (Threat > -25) { Phrase += 'They have a moderately sized army.'; } else { Phrase += 'They have a tiny little squad of units that could barely pass as an army.'; } } } } } _root.unlockpop.Descript = Phrase; writeData(); } function Diplomacy(style, type) { _root.unlockpop.gotoAndStop('invasion2'); _root.unlockpop.DescriptHeader = 'DIPLOMACY'; 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 = 'A changeling mediator approachs the outskirts of your town. You greet him and attempt to talk some sense. '; roll += statCharisma; if (roll > 100) { Phrase += 'You say \'War is what happens when language fails. There are causes worth dying for, but none worth killing for. Return home, for I only see the outcome of this battle resulting in a stalemate.\' The changeling mediator is impressed and convinced. He says he will call off the attack for now and spend some extra time rethinking their plans to deal with a wise leader like you.'; prepareNextAttack(); EvilData[2] += 20; } else { if (roll > 65) { Phrase += 'You say \'Come now, let\'s be reasonable! You and I know quite well that nothing good will come from this war. At best, you might loot a few Bakeries, but I assure you we\'ll prevail in the end.\' The changeling mediator nods his head -- convinced, but only barely. He says he will call off the attack and wait reinforcements to arrive.'; prepareNextAttack(); EvilData[2] -= 20; } else { if (roll > 25) { Phrase += 'You say \'Greetings! Please call off the attack, there\'s really no point in invading us today because you see... there are other towns nearby with way less defense. Easy prey, right? Heh.\' The changeling mediator shakes his head and turns away, laughing at your pathetic attempt to avoid conflict. He orders an attack immediately.'; EvilData[1] += _root.randRange(5, 10); } else { Phrase += 'You say \'Uhhh. Heh. My name is ' + charName + ' and I\'d really like it if you didn\'t invade us today. You see we like peace, snuggles and sitting around in our little hugbox community filled with diaper-fetishes. Please go away.\' The changling mediator is disgusted by your attempt to reason with him and decides to attack immediately and at full force.'; 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; } if (roll > 90) { Phrase += 'He seems to be incredibly impressed with your research advancements so far. You discuss some of your ideas with him and he nods, grinning widely. \'You might be of use to us afterall\', he says with a sneer. The mediator decides to call off the attack for now as you help them improve their military technology.'; prepareNextAttack(); EvilData[1] += _root.randRange(20, 40); EvilData[2] += 20; } else { if (roll > 40) { Phrase += 'He seems vaguely interested in what you have to say, nodding his head and tapping his hoove against the ground in idle though. \'Your ideas are interesting, thanks for sharing. Now prepare to be attacked.\' He laughs to himself and decides to attack immediately.'; EvilData[1] += _root.randRange(5, 10); } else { Phrase += 'After a few minutes of scrambling around, you are unable to find or tell the mediator anything interesting. He is angered by your attempts to stall and orders the attack to occur immediately and at full force.'; EvilData[1] += _root.randRange(20, 40); } } } else { if (type == 2) { EvilAttacks(); } } } _root.unlockpop.Descript = Phrase; } if (style == 'bribe') { Phrase = 'A changeling mediator approachs the outskirts of your town. You greet him with a bag of bits as a gift of peace. '; 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 += 'The mediator takes the tribute and smiles happily, \'Ah yes, this will do... this will do.\' Seeming pleased with your generous offer he decides to not only stop the attack, but delay it for awhile.'; prepareNextAttack(); EvilData[2] += _root.randRange(10, 20); } else { if (roll > 100) { Phrase += 'The mediator grabs the bag of Bits and shakes it, rubbing his chin and humming a bit, \'Seems a bit light.... but it\'ll do, for now. I\'ll call off the attack, but make sure you have a lot more for us in the future...\''; prepareNextAttack(); } else { if (roll > 50) { Phase += 'The mediator looks into the bag of Bits you\'re offering him and scoffs, \'You\'re joking, right? That\'s your bribe?\' he shakes his head and toss the bag over to one of his companions. \'Thanks for the coin, but we\'re attacking anyways.\''; } else { Phase += 'The mediator takes the bag of bits, not even looking inside, and tosses it back to one of his companions. \'Thanks for the coin, but your petty gifts will do you no good. I\'m sure we can take more from you by force, anyways.\''; EvilData[1] += _root.randRange(5, 10); } } } _root.unlockpop.Descript = Phrase; } if (style == 'intimidate') { Phrase = 'A changeling mediator approachs the outskirts of your town. You approach, looking confident and intimidating. '; if (type == 0) { roll += statCharisma + statWillpower - 10; if (roll > 60) { Phrase += 'You say \'You really think your pathetic band of changelings can do anything against my town\'s defensive force? I\'d like to see you try,\' laughing to yourself for a moment then looking back into his eyes, \'Maybe you should come back when you\'ve got a real army.\' The mediator backs off a bit and nods, \'Indeed it seems we\'ve underestimated you. Don\'t worry though, we\'ll be back soon.\''; prepareNextAttack(); EvilData[2] -= _root.randRange(10, 20); } else { Phrase += 'You flex your muscles and show off your tree-bucking technique, \'If you\'re looking for a good fight, you\'ve found one. I ain\'t afraid of you, cheeselegs.\' The mediator shakes his head, \'I thought I was meeting with a diplomat, not a rodeo clown.\' And decides to attack immediately.'; EvilData[1] += _root.randRange(15, 30); } } else { if (type == 1) { roll += statCharisma + statWillpower - 10; if (roll > 60) { Phrase += 'You say with a menacing glare in your eyes, \'Have you come to waste my time? Do what you will but I warn you that if your little raid fails, we won\'t take any prisoners.\' The changeling seems thoroughly convinced by your threatening behavior and he backs down, \'You\'ve made your point.\' He says briefly before leaving, calling off the attack for now.'; prepareNextAttack(); EvilData[2] -= _root.randRange(10, 20); } else { Phrase += 'You growl like a lion and stomp your hooves, \'Rawr! D-don\'t you dare attack my town or I\'ll ... do bad things to you!\' The mediator rolls his eyes and initiates his attack immediately.'; 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 + ' Gems</font> were stolen during your Ambush.'); resources[3][1] += bonusGET; bonusGET = randRange(5 + popMax / 40, 10 + popMax / 5); bonusGET = int(1 * bonusGET); newMSG('<font color=\'#ffcc00\'>' + bonusGET + ' Bits</font> were stolen during your Ambush.'); 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] + ', Rank ' + _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] = 'The Veteran'; 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], 'grass'); } 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 = 'Traders: ' + int((_root.tradeCooldown[0] + 5) / 5) + '\n' + 'Food Quantity: ' + tradingPrices[0][7] + '\n' + 'Gem Price: ' + 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 + '/' + maxHousing; if (traitsOwned[8] == 1) { v2 = 0.5; } else { v2 = 1; } v2 *= taxIncome[taxLevel + 4]; 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 = 'Days left: ' + int((edictResidentialTimer + 3) / 4); if (edictResidentialBuff[edictResidentialActive] != '' && edictResidentialBuff[edictResidentialActive] != NaN) { TopRightTicker += edictResidentialBuff[edictResidentialActive] + ' - ' + int((edictResidentialTimer + 3) / 4) + ' days left' + '\n'; } } else { if (edictResidentialTimer <= 0) { if (renewEdicts != 1) { edictResidentialActive = 0; } else { if (edictResidentialActive != -1) { activateEdict(edictResidentialActive, 'Residential'); } } } } if (edictLibraryTimer > 0 && edictLibraryActive != -1) { edictLibraryDaysLeft = 'Days left: ' + int((edictLibraryTimer + 3) / 4); if (edictLibraryBuff[edictLibraryActive] != '' && edictLibraryBuff[edictLibraryActive] != NaN) { TopRightTicker += edictLibraryBuff[edictLibraryActive] + ' - ' + int((edictLibraryTimer + 3) / 4) + ' days left' + '\n'; } } else { if (edictLibraryTimer <= 0) { if (renewEdicts != 1) { edictLibraryActive = 0; } else { if (edictLibraryActive != -1) { activateEdict(edictLibraryActive, 'Library'); } } } } if (edictIndustrialTimer > 0 && edictIndustrialActive != -1) { edictIndustrialDaysLeft = 'Days left: ' + int((edictIndustrialTimer + 3) / 4); if (edictIndustrialBuff[edictIndustrialActive] != '' && edictIndustrialBuff[edictIndustrialActive] != NaN) { TopRightTicker += edictIndustrialBuff[edictIndustrialActive] + ' - ' + int((edictIndustrialTimer + 3) / 4) + ' days left' + '\n'; } } else { if (edictIndustrialTimer <= 0) { if (renewEdicts != 1) { edictIndustrialActive = 0; } else { if (edictIndustrialActive != -1) { activateEdict(edictIndustrialActive, 'Industrial'); } } } } edictFatigueDisplay = int(edictFatigue) + '%'; 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; } else { if (v2 > v1) { return -1; } else { return 0; } } } function displayHappinessWhat() { _root.HW.msg.messages.html = true; _root.HW.msg.messages.htmlText = ''; _root.HW.msg.messages.htmlText += 'Happiness: ' + int(happiness * 100) / 100 + '\n'; _root.HW.msg.messages.htmlText += 'Happiness per day: ' + 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) { UnlockGeneric(5); UnlockGeneric(6); UnlockGeneric(7); UnlockGeneric(18); UnlockGeneric(20); 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 + ' Bits were added to ' + townName + '\'s treasury.'; } 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 + ' Bits were added to ' + townName + '\'s treasury.'; } 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 + ' Bits were added to ' + townName + '\'s treasury.'; } 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 + ' Food was added to ' + townName + '\'s stocks.'; } 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 = 'Happiness increased by ' + bonusGET + '. Excess happiness converted to Mana.'; } } } } } 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; } edictFatigue -= 0.75; if (_root.edictResidentialActive == 4) { if (traitsOwned[14] == 1) { edictFatigue -= 1.5; } else { edictFatigue -= 0.75; } } if (edictFatigue < 0) { edictFatigue = 0; } 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] = 'Laboratories (Outlawed Tech)'; ++v2; } if (strCount[0][2] > 0) { if (traitsOwned[19] != 1) { happinessPerCycle += 1; happinessWhat[v2][0] = 1; happinessWhat[v2][1] = 'Town Square Relaxed Global Bonus'; ++v2; } } var v14 = 1 + 0.25 * ascensionLevel; if (difficulty == 2) { happinessPerCycle -= (popTotal / 80) * v14; happinessWhat[v2][0] = -(popTotal / 80) * v14; happinessWhat[v2][1] = 'Challenge Mode'; ++v2; } if (traitsOwned[21] == 1) { v14 *= 0.65; } if (perksOwned[8] == 1) { v14 -= 0.02 * statCharisma; } if (popTotal > 100) { happinessPerCycle -= ((popTotal - 100) / 16) * v14; happinessWhat[v2][0] = -((popTotal - 100) / 16) * v14; happinessWhat[v2][1] = 'Population Count'; } ++v2; if (taxLevel != 0 && popTotal > 0) { happinessPerCycle -= taxHappy[taxLevel + 4] * (((popTotal - 100) / 16) * v14); happinessWhat[v2][0] -= taxHappy[taxLevel + 4] * (((popTotal - 100) / 16) * v14); happinessWhat[v2][1] = 'Resident Taxes'; } ++v2; if (edictFatigue >= 50) { happinessPerCycle -= ((popTotal - 100) / 18) * v14 * (100 / edictFatigue); happinessWhat[v2][0] = -((popTotal - 100) / 18) * v14 * (100 / edictFatigue); happinessWhat[v2][1] = 'Edict Fatigue'; } ++v2; 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] = 'Mercentile Bonus'; ++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] = 'Harmony Bonus'; ++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] = 'Rock Candy Perk'; ++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\'>One of your quarry-miners discovered a giant deposit containing ' + bonusGET + ' Gems!</font>'); resources[3][1] += bonusGET; } else { if (u == 2) { bonusGET = randRange(50, 150); newMSG('<font color=\'#ffcc00\'>One of your quarry-miners discovered a rare mineral valued at ' + bonusGET + ' Bits!</font>'); resources[0][1] += bonusGET; } else { if (u == 3) { bonusGET = randRange(1, 25); newMSG('<font color=\'#7F4AFF\'>There seems to be a spooky ghost haunting one of your Quarries. Uh oh.</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\'>While mining a Quarry, a cave of monsters was discovered and demanded a tribute.</font>'); u = randRange(1, 2); if (u == 1) { bonusGET = randRange(10, 50 + int(resources[1][1] * 0.33)); if (resources[1][1] >= bonusGET) { resources[1][1] -= bonusGET; newMSG('<font color=\'#FF0000\'>The creatures took ' + bonusGET + ' Food and were satisfied.</font>'); } else { newMSG('<font color=\'#FF0000\'>Unfortunately they weren\'t satisfied with the offer, so they raped the miners instead.</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\'>The creatures took ' + bonusGET + ' Bits and were satisfied.</font>'); } else { newMSG('<font color=\'#FF0000\'>Unfortunately they weren\'t satisfied with the offer, so they raped the miners instead.</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\'>A sweaty pony orgy begin in one of your Taverns, generating ' + bonusGET + ' Love Magic!</font>'); loveGain(bonusGET); } else { if (u == 2) { bonusGET = randRange(250, 500); newMSG('<font color=\'#ffcc00\'>One of your Taverns had an especially drunk patron who spent ' + bonusGET + ' Bits today.</font>'); resources[0][1] += bonusGET; } else { if (u == 3) { bonusGET = randRange(1, 25); newMSG('<font color=\'#7F4AFF\'>A mysterious hooded figure has visited one of your Taverns.</font>'); happiness -= bonusGET; if (happiness < minHappiness) { happiness = minHappiness; } } else { if (u == 4) { newMSG('One of your Taverns got an award today for \'most cum-drenched floorboards\'.'); } else { if (u == 5) { newMSG('Ponies all over ' + townName + ' are talking about how much fun they had playing \'Happy Merchants\' yesterday.'); newMSG('In unrelated news, the line at the debt-management office is bigger than ever today for some reason!'); } else { if (u == 6) { newMSG('Patrons of a local Tavern are commending it\'s great customer service and free cum-stains in every room.'); } else { if (u == 7) { newMSG('Miaka was spotted in a local Tavern today. The bartender mentioned how surprised she was to see them serving drinks.'); } } } } } } } } ++i; } j = randRange(1, 100); if (j >= 99) { if (popTotal > 50 && popTotal < 200) { u = randRange(1, 13); if (u == 1) { if (happiness > 80) { newMSG('One of your households threw a really fun block party recently.'); newMSG('Attendees mention that \'more than just dancing\' happened.'); } else { newMSG('A household hosted a casual meet and greet that raised everyone\'s spirits.'); } } if (u == 2) { if (happiness > 90) { newMSG('Ponies all over ' + townName + ' are talking about how great the atmosphere is!'); } else { if (happiness < 60) { newMSG('Although ponies of ' + townName + ' could be happier, they seem to make the best of things and have a positive attitude.'); happiness += 5; } } } if (u == 3) { newMSG('Derpy found a shiny Bit on the ground and insisted that it goes towards founding a new Library.'); newMSG('Local superstitious gypsy pony claims a spooky ghost stole her lucky Bit this afternoon.'); resources[0][1] += 1; } if (u == 4) { newMSG('Derpy found a fresh Apple Pie and insisted that it be used to feed the less fortunate.'); newMSG('Local bakery owners continue to complain about a mysterious pie-thief in ' + townName + '.'); resources[1][1] += 1; } if (u == 5) { if (happiness < 90) { newMSG('Ponies in ' + townName + ' are really excited over a potential celebrity visit.'); happiness += 5; } } if (u == 6) { newMSG('Local Ponies are celebrating the death of annoying blue animal in ' + townName + '.'); happiness += 10; } if (u == 7) { newMSG('A conference was held today to discuss whether or not gay love magic is as potent as straight love magic.'); } if (u == 8) { newMSG('Local Stallion has been questioning his quintessential existence where all he knows is eat, sleep and fuck.'); } if (u == 9) { newMSG('Earlier today, a changeling was caught in the city disguised as a grey pegasus.'); newMSG('Upon interrogation the only response the changeling would give was \'I just don\'t know what went wrong.\''); } } else { if (popTotal > 200) { u = randRange(1, 20); if (u == 1) { newMSG('With ' + townName + '\'s population at ' + popTotal + ', ponies are beginning to wonder if they\'ll run out of room!'); } if (u == 2) { newMSG('Property values in ' + townName + ' have increased since a celebrity was caught masturbating in public.'); } if (u == 3) { newMSG('Strategy experts at the Royal Castle are discussing the best optimal of Armories to generate defense.'); } if (u == 4) { newMSG('Derpy has been fertilizing the trees on a daily basis to ensure the environment stays healthy.'); newMSG('Local residents are complaining more and more each day, demanding owners clean up after their dogs.'); } if (u == 5) { newMSG('Ever since the introduction of the Happy Merchants card game, Tavern profits have been extraordinary.'); newMSG('Also: recent reports of outraged, drunken ponies running through the streets screaming about bandits.'); } if (u == 6) { newMSG('Public Service Announcement in ' + townName + ': friendly reminder to stay hydrated.'); } if (u == 7) { newMSG('Derpy claims she can explain why ghosts haunt the quarry, but no one believes her.'); } } } } 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) { if (environment > 10) { _root.bonusPerCycle[0][1] += (environment / 8) * (strCount[2][0] + strCount[2][1] + strCount[2][2]); } else { _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 v15 = 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; if (specialistsStats[wumbo][3] > specialistsStats[wumbo][4]) { specialistsStats[wumbo][3] = 0; ++specialistsStats[wumbo][1]; newMSG('<font color=\'#ffcc00\'>Specialist ' + specialistsStats[wumbo][0] + '</font> has achieved <font color=\'#ffcc00\'>Rank ' + specialistsStats[wumbo][1] + '</font>'); _root.hudInfo.specialistTable['specialist' + wumbo].nameRank = _root.specialistsStats[wumbo][0] + '\n' + 'Rank ' + _root.specialistsStats[wumbo][1]; } ++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 = v15; 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); if (a.Age >= 4) { if (a.ModeInt < 2) { a.Age = 0; a.FoodYield; ++a.ModeInt; changeMode(a.ModeInt, a); } else { 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 == 16 && a.ModeInt != 10) { if (a.Buffs[13][0] > 0) { DefenseRating += 2.5; } } 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] = 'Income Tax Edict'; } ++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] = 'Garrison Drills Edict'; } ++v2; if (_root.edictResidentialActive == 3) { Penalty *= 5; } 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\'>A generous group of ponies has decided to donate ' + bonusGET + ' Bits to ' + townName + '\'s treasury.</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\'>A group of ponies has grown a surplus of food, donating the extra ' + bonusGET + ' to your town\'s stockpile.</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\'>One of your ' + a.Name + 's has generated an extra ' + bonusGET + ' Love Magic. They\'re really frisky this week!</font>'); loveGain(bonusGET); } } if (u == 5) { newMSG('Citizens of ' + townName + ' seem to be in very high spirits lately.'); } 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] = 'Town Square Economic Penalty'; } 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] = 'Town Square Relaxed Bonus'; } 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] = 'Tavern Bonus'; 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] = 'Tavern Bonus'; 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] = 'Academy Bonus'; 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] = 'Too many Stores Penalty'; } 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] = 'No Store Penalty'; ++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] = 'Party Store Bonus'; } } } ++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] = 'Bakery Store Bonus'; } } ++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] = 'Library Bonus'; } } ++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] = 'Quarry Penalty'; } ++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] = 'Factory Penalty'; } ++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 (_root.edictIndustrialActive == 2) { if (traitsOwned[14] == 1) { DefenseRating += 0.1; } else { DefenseRating += 0.05; } } } 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 = 'SHIELD: ' + int(ShieldLevel) + '%'; } if (a.Ponies[0] < a.PoniesMax[0]) { if (a.Ponies[0] < 4) { popRange = 4; } else { 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 = v15; 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] = 'Environmentalist Trait'; ++v2; } if (perksOwned[5] == 1) { if (environmentScore < 0) { happinessPerCycle += int(environmentScore * -0.25); happinessWhat[v2][0] += int(environmentScore * -0.25); happinessWhat[v2][1] = 'Industrious Perk'; ++v2; } } if (environmentPerCycle < -1) { if (environment > 30) { if (EcoWarning == 0) { newMSG('<font color=\'#FF0000\'>Your Ecobalance is negative. Your Environmental Condition will degrade over time.</font>'); newMSG('<font color=\'#FF0000\'>Trees and Gardens can reduce the negative impact.</font>'); EcoWarning = 5; } else { --EcoWarning; } } else { if (environment < 30 && environment > 10) { if (EcoWarning == 0) { newMSG('<font color=\'#FF0000\'>Your Environment is in terrible condition and will continue to degrade, but very slowly.</font>'); newMSG('<font color=\'#FF0000\'>Changeling invasions will happen more often and your citizens will be unhappy.</font>'); EcoWarning = 10; } else { --EcoWarning; } } else { if (environment < 10) { if (EcoWarning == 0) { newMSG('<font color=\'#FF0000\'>Your Environment is completely destroyed.</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] = 'Weakened Environment'; } } 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] = 'Destroyed Environment'; } } } 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 Food\r+1 Happiness'; a.gR.play(); a.gR._alpha = 100; } else { if (a.ModeInt == 1) { a.gR.gRTween.gRText.text = '+16 Food'; a.gR.play(); a.gR._alpha = 100; } else { if (a.ModeInt == 2) { a.gR.gRTween.gRText.text = '+2 Happiness'; a.gR.play(); a.gR._alpha = 100; } } } } if (a.Catalog == 2) { if (a.ModeInt == 1) { a.gR.gRTween.gRText.text = '+' + v6 + ' Tech' + '\n' + '-20 Bits'; a.gR.play(); a.gR._alpha = 100; } } ++i; } } if (v10 != 0) { if (v8 == 1) { newMSG('<font color=\'#ff0000\'>' + v10 + ' ponies are very hungry and have abandoned ' + townName + '!</font>'); if (happiness > 90) { happiness -= 30 - statWillpower; } else { if (happiness > 70) { happiness -= 20 - int(statWillpower / 3); } else { happiness -= 10 - int(statWillpower / 3); } } } else { if (v8 == 2) { newMSG('<font color=\'#ff0000\'>' + v10 + ' ponies are in terrible condition and have abandoned ' + townName + '!</font>'); if (happiness > 90) { happiness -= 30 - statWillpower; } else { if (happiness > 70) { happiness -= 20 - int(statWillpower / 3); } else { happiness -= 10 - int(statWillpower / 3); } } } else { if (v8 == 3) { newMSG('<font color=\'#ff0000\'>' + v10 + ' ponies are highly displeased and have abandoned ' + 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(); 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.ModesEnabled == false) { if (building.UpgradesEnabled == true) { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(3); } else { _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 (a.Catalog != -1) { if (building.UpgradeRank == 0) { building.Name = _root.buildList[building.Catalog][0]; } else { building.Name = _root.modeList[building.Catalog][building.UpgradeRank + 2][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(); } } else { if (a.Natural == 'blank') { a.Name = 'Blank Node'; a.Text = 'Empty lot. Structures can be built here.'; } else { a.Name = 'Tree'; a.Text = 'Improves Eco Score. Is destroyed if another building is placed here.'; } } if (building.Mode != 'Basic') { 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 = 'Can\'t place a structure there.'; } 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 += 'This structure is currently under construction.'; } 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 = 'This ' + building.Name + ' is occupied by <font color=\'#C1FFB1\'>' + building.Ponies[0] + ' </font>out of <font color=\'#C1FFB1\'>' + building.PoniesMax[0] + '</font> Ponies.' + '\n'; var v4 = ''; if (building.Buffs[0][0] > 0) { v3 += 'Due to the nearby Town Square Residents will move into this house more quickly than usual, '; v4 = 'and'; } else { if (building.Buffs[0][1] > 0) { v3 += 'Due to the nearby Town Square Residents here generate more income than usual, '; v4 = 'and'; } else { if (building.Buffs[0][2] > 0) { v3 += 'Due to the nearby Town Square Residents of this house are happier than usual, '; v4 = 'and'; } else { v3 += 'Residents of this home wonder why there\'s no nearby Town Square, '; v4 = 'but'; } } } if (building.Buffs[1][0] + building.Buffs[1][1] + building.Buffs[1][3] < 1) { if (v4 == 'but') { v4 = 'and'; } else { if (v4 == 'and') { v4 = 'but'; } } v3 += v4 + ' no nearby Food options means they\'ll have to travel to get supplies.'; } else { if (building.Buffs[1][0] + building.Buffs[1][1] + building.Buffs[1][3] > 2) { if (v4 == 'but') { v4 = 'and'; } else { if (v4 == 'and') { v4 = 'but'; } } v3 += v4 + ' they feel crowded by all of the nearby commercial buildings.'; } else { v3 += v4 + ' they are content with local Food options.'; } } if (building.Buffs[5][0] > 0 && traitsOwned[1] == 0) { v3 += ' Due to the nearby Gem Quarry, Ponies are very unhappy and likely to abandon the house.'; } } if (building.Catalog == 0) { if (building.ModeInt == 0) { v3 += 'Provides an aura to nearby houses, increasing the rate at which citizens move in. Additionally, all homes in your town have increased Love-Magic generation while this mode is active.'; } if (building.ModeInt == 1) { v3 += 'Provides an aura to nearby houses, increasing how many Bits they generate. Additionally, Traders will visit your town 50% more often while this mode is active.'; } if (building.ModeInt == 2) { v3 += 'Provides an aura to nearby houses, granting a slight bonus to happiness for every home affected. Additionally, gives a flat +4 Happiness per Day while this mode is active.'; } v3 += '\n'; if (_root.tradeCooldown[0] >= 0) { _root.hudCard.trade.gotoAndStop(2); v3 += 'There are are some traders at your local town market. You can make <font color=\'#C1FFB1\'>' + int((_root.tradeCooldown[0] + 5) / 5) + '</font> trades.'; } 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, type) { ++_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 = 'Basic'; a.ModeInt = 0; a.Natural = Natural; var v4 = 0; if (Natural == 'blank') { a.Name = 'Blank Node'; a.Text = 'Empty lot. Structures can be built here.'; } 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 != 'Basic') { a.NameDisplay = a.Name + ' (' + a.Mode + ')'; } else { a.NameDisplay = a.Name; } a.AddOn = 1; a.TileType = type; a.tileType.gotoAndStop(type); 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; break; } ++k; } } else { costOK = true; } if (costOK == true) { if (_root.buildCatalog == '??') { } else { if (_root.buildCatalog == 9 && a.Natural != 'n1' || a.TileType != 'grass') { } else { if (buildPlacement != 'remove') { 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 = 'Constructing'; 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\'>You have angered the Forest God.</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 != 'Basic') { 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) { if (a.UpgradesEnabled == true) { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(3); } else { _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; } } else { if (a.Catalog != -1) { findBuffers(a, -1); --strCount[a.Catalog][a.ModeInt]; a.gotoAndStop(a.Natural); a.Name = 'Blank Node'; a.Mode = ''; a.NameDisplay = a.Name; a.Text = 'An empty place waiting for something to be built on it.'; 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 {} } } } } else { _root.feedText = 'Not enough resources.'; } } } }; a.btnNodeSelect.onRollOver = function () { a = this._parent; if (_root.buildPlacement != 'blank') { if (a.Catalog == -1) { if (_root.buildCatalog == 9 && a.Natural != 'n1' || a.TileType != 'grass') { showRadius(a, _root.buildCatalog, false); } else { if (_root.buildCatalog == '??') { } else { 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, type) { var v3 = int((xTiles + yTiles) / 1 + statKarma * 0.66); if (type == 'cloud') { v3 = 0; } var v11; var v2 = 'blank'; var v6 = 40; if (xTiles > yTiles) { v11 = xTiles; } else { v11 = yTiles; } var v10 = _root.world.attachMovie('nodeTopReg', 'nodeFloor' + mapDepth, mapDepth); ++mapDepth; v10._x = xStart * SepStretch - xMapOffset; v10._y = yStart * SepStretch - yMapOffset - 40; v10._xscale = 105 * v11 * SepStretch; v10._yscale = 105 * v11 * SepStretch; v10.gotoAndStop(type); x = 0; while (x < xTiles) { y = 0; while (y < yTiles) { v2 = 'blank'; z = randRange(0, 100); if (v3 > 0 && z < v6) { v2 = 'n1'; --v3; } createNode(xStart * SepStretch - xMapOffset + xSep * SepStretch * (x - y), yStart * SepStretch - yMapOffset + ySep * SepStretch * (x + y), v2, type); ++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 != 'Basic') { 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; } } else { 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 != 'Basic') { 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\'>One of your more lucrative households has funded their own upgrade to become a ' + 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) { if (building.UpgradesEnabled == true) { _root.hudDynamic.displayNodeBox.modeButtons.gotoAndStop(3); } else { _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 = 'Switch to ' + _root.modeList[a.Catalog][number][0] + ' Mode'; _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 = 'Upgrade to ' + _root.modeList[a.Catalog][a.UpgradeRank + 3][2] + ' - Costs ' + _root.modeList[a.Catalog][a.UpgradeRank + 3][3] + ' Bits, ' + _root.modeList[a.Catalog][a.UpgradeRank + 3][6] + ' Gems'; } else { _root.feedText2 = 'Upgrade to ' + _root.modeList[a.Catalog][a.UpgradeRank + 3][2] + ' - Costs ' + _root.modeList[a.Catalog][a.UpgradeRank + 3][3] + ' Bits'; } _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) { if (traitsOwned[14] == 1) { edictTimer = 4; if (type == 'Residential' && number == 4) { } else { edictFatigue += 2; } } else { edictTimer = 28; if (type == 'Residential' && number == 4) { } else { edictFatigue += 14; } } if (type == 'Residential') { edictResidentialActive = number; edictResidentialTimer = edictTimer; edictResidentalDaysLeft = 'Days left: ' + int((edictResidentialTimer + 3) / 4); if (number == 4) { edictLibraryActive = -1; edictIndustrialActive = -1; edictLibraryTimer = edictTimer; edictIndustrialTimer = edictTimer; } } if (type == 'Library') { edictLibraryActive = number; edictLibraryTimer = edictTimer; edictLibraryDaysLeft = 'Days left: ' + int((edictLibraryTimer + 3) / 4); } if (type == 'Industrial') { edictIndustrialActive = number; edictIndustrialTimer = edictTimer; edictIndustrialDaysLeft = 'Days left: ' + int((edictIndustrialTimer + 3) / 4); } refreshResources(); } 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.PlayerData[28] = taxLevel; cache.data.PlayerData[29] = edictFatigue; 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], 'grass'); ++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); if (a.ModeInt == 10) { a.Mode = 'Constructing'; a.sprite.gotoAndStop('construction'); } else { a.sprite.gotoAndStop(a.ModeInt + 1); } } else { if (a.Natural == 'blank') { a.Name = 'Blank Node'; a.Text = 'Empty lot. Structures can be built here.'; a.gotoAndStop(a.Natural); } else { a.Name = 'Tree'; a.Text = 'Improves Eco Score. Is destroyed if another building is placed here.'; a.gotoAndStop(a.Natural); a.sprite.gotoAndStop(a.ModeInt + 1); } } a.addOnBuilt.gotoAndStop('a' + a.AddOn); a.addOnPlace.gotoAndStop('a1'); if (a.Mode != 'Basic') { 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; } i = 0; while (i < cache.data.PlayerData.length) { if (cache.data.PlayerData[i] == undefined || cache.data.PlayerData[i] == NaN) { cache.data.PlayerData[i] = 0; } ++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]; taxLevel = cache.data.PlayerData[28]; edictFatigue = cache.data.PlayerData[29]; if (ShieldLevel > 0) { ShieldLevelDisplay = 'SHIELD: ' + int(ShieldLevel) + '%'; } else { ShieldLevelDisplay = ''; } if (ascensionLevel > 0) { ascensionLevelDisplay = 'ASCENSION ' + ascensionLevel; } PrizeSkillTokensDisplay = PrizeSkillTokens + ' Tokens'; 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 = 'Days left: ' + int((edictResidentialTimer + 3) / 4); edictResidentialTimer = cache.data.PlayerDataEdicts[1]; edictLibraryActive = cache.data.PlayerDataEdicts[2]; edictLibraryDaysLeft = 'Days left: ' + int((edictLibraryTimer + 3) / 4); edictLibraryTimer = cache.data.PlayerDataEdicts[3]; edictIndustrialActive = cache.data.PlayerDataEdicts[4]; edictIndustrialDaysLeft = 'Days left: ' + 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 = 'ASCENSION ' + ascensionLevel; } deleteMap(); generateMap(newLand[0][0], newLand[0][1], newLand[0][2], newLand[0][3], 'grass'); 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.PlayerData[29] = 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) { if (_root.strCount[3][0] < 1) { adviserDialogue = 'Hello ' + charName + ', to begin your city I suggest you start off by building a Town Square, then surrounding it with some houses as well as a store.'; } else { adviserDialogue = 'Hey ' + charName + ', I see you\'ve already got a few houses, but no Town Square.'; } } else { if (_root.strCount[3][0] < 1) { adviserDialogue = 'You\'ve got a Town Square, that\'s good, but you\'ll need to surround it with houses or else it has no purpose!'; } else { if (_root.strCount[1][0] + _root.strCount[1][1] < 1) { adviserDialogue = 'Make sure you build a Store and set it to be either a Bakery or a Deli, otherwise your ponies will get hungry and leave!'; } else { if (_root.strCount[4][0] < 1) { adviserDialogue = 'You\'ve got the foundation of your town all laid out, that\'s good! My next suggestion would be to build a Garden near some houses. The most important thing about the Garden is that we can meet up there and discuss things further!'; } else { if (_root.strCount[6][0] < 1) { adviserDialogue = 'Everything is looking good so far. I suggest you work Towards getting a Tavern, ponies need entertainment! Let\'s meet up at a Garden to discuss things in further detail.'; } else { adviserDialogue = 'I think you know what you\'re doing, I\'ll let you handle things from here.'; } } } } } } 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 = 'Unlocked ' + _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 = 'Unlocked ' + _root.optionsTableLocked[Unlock][0]; _root.unlockpop.Descript = _root.optionsTableLocked[Unlock][1] + '\n' + 'This option can be selected in the sex scenes.'; } } function checkDebugCodes() { if (charName == 'debug' || charName == 'test') { newMSG('CHEAT ENABLED: DEBUG MODE'); resources[0][1] = 99999; resources[2][1] = 99999; resources[3][1] = 99999; skill_Architecture = 9999; StatsLeft = 100; } if (charName == 'master key' || townName == 'master key') { 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.debug.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(['Bits', 999999], ['Food', 100], ['Tech', 999999], ['Gems', 999999], ['LUXURY1', 999999], ['LUXURY2', 999999], ['LUXURY3', 999999], ['LUXURY4', 999999], ['LUXURY5', 999999], ['LUXURY6', 999999]); var resourcePerCycle = new Array(['Bits', 0], ['Food', 0], ['Tech', 0], ['Gems', 0], ['LUXURY1', 0], ['LUXURY2', 0], ['LUXURY3', 0], ['LUXURY4', 0], ['LUXURY5', 0], ['LUXURY6', 0]); var funds = 0; var tokens = 0; var bonusPerCycle = new Array(['Bits', 0], ['Food', 0], ['Tech', 0], ['Gems', 0], ['LUXURY1', 0], ['LUXURY2', 0], ['LUXURY3', 0], ['LUXURY4', 0], ['LUXURY5', 0], ['LUXURY6', 0]); var population = new Array(['Earth Ponies', 0], ['Unicorns', 0], ['Pegasus', 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 = 'Hello!'; 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 = 'Day'; 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 taxLevel = 0; var taxIncome = new Array(0, 0.25, 0.5, 0.75, 1, 1.1, 1.2, 1.3, 1.4); var taxHappy = new Array(0.2, 0.15, 0.1, 0.05, 0, -0.1, -0.2, -0.3, -0.4); var edictFatigue = 0; var edictFatigueDisplay = '0%'; 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 specialistStatus = ''; var specialistStatusCount = 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('ASCENSION ' + ascen + ': START'); 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('Day ' + 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('The wonderful ' + townName + ' was created!'); 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], 'grass'); 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('', 'Population Growth', 'Income Tax', 'Regulated Rations', 'Freedom Week'); var edictLibraryBuff = new Array('', 'Prodigal Research', 'Unstable Tests', 'Entertainment Aisle'); var edictIndustrialBuff = new Array('', 'Strike the Earth', 'Garrison Drills', 'Emergency Lockdown'); 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 2486 { } movieClip 2487 { } movieClip 2488 { } movieClip 2489 { } movieClip 2491 { 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 2492 { } movieClip 2495 { } button 2500 { on (release) { _root.pauseGame(); } } movieClip 2503 { frame 1 { stop(); } } movieClip 2506 { instance Mask of movieClip 1305 { onClipEvent (enterFrame) { this.gotoAndStop(_root.loveDisplay + 1); } } } instance loveMeter of movieClip 2506 { onClipEvent (rollOver) { _root.feedText2 = 'Love Magic: ' + _root.loveDisplay + '%'; _root.feedText = 'Determines how much \'\'love magic\'\' has been generated by your ponies.\rUpon filling this meter your Love Magic Rank will increase by 1.'; } onClipEvent (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } movieClip 2511 { } movieClip 2514 { } button 2516 { on (release) { _root.deselectAll(); _root.buildCatalog = -1; _root.buildPlacement = 'remove'; a = 0; while (a < 4) { _root.cost[a] = 0; ++a; } } on (rollOver) { _root.feedText = 'Remove a structure and salvage 60% of the total cost of the structure, including upgrade costs. \r100% refund for buildings that are still under construction. Free structures give no refund.'; _root.feedText2 = 'Demolish'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } movieClip 2519 { } movieClip 2520 { frame 1 { stop(); } } movieClip 2521 { } movieClip 2522 { frame 1 { stop(); } } movieClip 2523 { } movieClip 2524 { frame 1 { stop(); } } movieClip 2525 { } movieClip 2526 { frame 1 { stop(); } } movieClip 2529 { } movieClip 2530 { } movieClip 2531 { frame 1 { stop(); } } movieClip 2534 { } movieClip 2535 { } movieClip 2536 { frame 1 { stop(); } } movieClip 2537 { } movieClip 2538 { frame 1 { stop(); } } movieClip 2540 { } movieClip 2541 { frame 1 { stop(); } } movieClip 2542 { } movieClip 2543 { frame 1 { stop(); } } movieClip 2544 { } movieClip 2545 { frame 1 { stop(); } } movieClip 2546 { } movieClip 2547 { frame 1 { stop(); } } movieClip 2550 { } movieClip 2551 { } movieClip 2552 { frame 1 { stop(); } } movieClip 2555 { frame 1 { stop(); } } movieClip 2556 { } movieClip 2557 { frame 1 { stop(); } } movieClip 2558 { } movieClip 2559 { frame 1 { stop(); } } movieClip 2561 { } movieClip 2562 { frame 1 { stop(); } } movieClip 2563 { } movieClip 2564 { frame 1 { stop(); } } movieClip 2566 { } movieClip 2567 { frame 1 { stop(); } } button 2569 { on (release) { _root.deselectAll(); } } movieClip 2572 { } button 2577 { on (release) { _root.changeMode(0, _root.nodeSelected); } on (rollOver) { _root.feedTextMode(0); } on (rollOut) { _root.feedTextMode(-1); } } button 2578 { on (release) { _root.changeMode(2, _root.nodeSelected); } on (rollOver) { _root.feedTextMode(2); } on (rollOut) { _root.feedTextMode(-1); } } button 2579 { on (release) { _root.changeMode(1, _root.nodeSelected); } on (rollOver) { _root.feedTextMode(1); } on (rollOut) { _root.feedTextMode(-1); } } // unknown tag 88 length 64 button 2582 { on (release) { _root.UpgradeMode(_root.nodeSelected, false); } on (rollOver) { _root.feedTextUpgradeMode(0); } on (rollOut) { _root.feedTextUpgradeMode(-1); } } movieClip 2585 { } movieClip 2586 { } movieClip 2587 { frame 1 { tooltipBuild = new Array(['Build ' + _root.buildList[0][0] + ': ' + _root.buildList[0][1] + ' Bits', 'Provides an effect to nearby houses and can be toggled between 3 different modes. Houses may only be affected by one type of Town Square at a time. Effect does not stack. Can also be used to trade resources.'], ['Build ' + _root.buildList[1][0] + ': ' + _root.buildList[1][1] + ' Bits, -1 Eco', 'Generates food per day and delivers it to nearby homes. Houses that are outside of the radius or near more than 2 Stores will be unhappy.\rIncreases Food Storage by +100. Houses must be within range of the Store in order to be affected.'], ['Build ' + _root.buildList[2][0] + ': ' + _root.buildList[2][1] + ' Bits', 'Globally increases Income (Mode 1), Tech Points (Mode 2) or Happiness (Mode 3). Multiple Library effects stack with diminishing returns.\rHouses within the radius of a Library generate Tech Points, regardless of its current mode.'], ['Build ' + _root.buildList[3][0] + ': ' + _root.buildList[3][1] + ' Bits', 'Simple and inexpensive housing for Earth Ponies. Generates Income and Love Magic. Up to 8 Ponies can live in a house.\rIncreases Food Capacity by +10. Can be upgraded to increase maximum occupancy and food storage capacity.'], ['Build ' + _root.buildList[4][0] + ': ' + _root.buildList[4][1] + ' Bits, +0.5 Eco', 'Garden that beautifies the settlement, calming the hearts of your population and encouraging romance between them.\rIncreases Love-Magic generation by 100% for Houses within range of the Garden. Slight positive impact on the Environment.'], ['Build ' + _root.buildList[5][0] + ': ' + _root.buildList[5][1] + ' Bits, -3 Eco', 'Excavates for precious gemstones or gold ore to increase Income. Requires 50+ Population to function.\rHouses placed within the Quarry\'s range will be displeased.'], ['Build ' + _root.buildList[6][0] + ': ' + _root.buildList[6][1] + ' Bits, ' + _root.buildList[6][4] + ' Gems, -2 Eco', 'The perfect hang-out spot for ponies after a hard day of working or studying, providing Happiness, boosting Love-Magic or being used to turn a humble profit as a kinky Bordello. Houses may only be affected by one Tavern at a time. Effect does not stack.'], ['Build ' + _root.buildList[7][0] + ': ' + _root.buildList[7][1] + ' Bits, ' + _root.buildList[7][4] + ' Gems, Requires 3 Power', 'Advanced research facility that requires a nearby Energy Source to function. Requires 3 Power to function.\rGenerates Tech Points or restores the Environment based on its current mode.'], ['Build ' + _root.buildList[8][0] + ': ' + _root.buildList[8][1] + ' Bits, ' + _root.buildList[8][2] + ' Food', 'Requires a few days to fully bloom, but yields approximately 128 Food per Day once harvested.\rYour Food per day will NOT reflect farm yields. Must be within the radius of a Store to be harvested.'], ['Build ' + _root.buildList[9][0] + ': ' + _root.buildList[9][1] + ' Bits, ' + _root.buildList[9][4] + ' Gems, +1 Eco', 'Eco-Friendly housing for Earth Ponies. Must be built over a Tree. Generates Income.\rUp to 4 Ponies can live in a tree house. Increases Food Capacity by +5. Does not count as a Tree for Power Stations.'], ['Build ' + _root.buildList[10][0] + ': ' + _root.buildList[10][1] + ' Bits, ' + _root.buildList[10][4] + ' Gems, +X Eco, +X Power', 'Tree-Powered Energy Station. Increases Eco-Score and Power for each Tree in its radius. Allows nearby Tech Labs to function.\rTree Houses do not count as Trees.'], ['Build ' + _root.buildList[11][0] + ': ' + _root.buildList[11][1] + ' Bits, ' + _root.buildList[11][4] + ' Gems, -3 Eco', 'Produces sex toys or bondage gear which provides a global bonus to all homes. Requires 200+ Population to function.\rHouses placed within the Factory\'s range will be displeased. Multiple Factories stack additively.'], ['Build ' + _root.buildList[12][0] + ': ' + _root.buildList[12][1] + ' Bits', 'Unique structure that grants the ability to purchase new tiles to build on.\rPlacing more than one of these structures is pointless.'], ['Build ' + _root.buildList[13][0] + ': ' + _root.buildList[13][1] + ' Bits', 'Hires new Specialists. Permanently increases Defense per day for each House within its radius.\rMultiple Armories touching the same house will have no effect.'], ['Build ' + _root.buildList[14][0] + ': ' + _root.buildList[14][1] + ' Bits, ' + _root.buildList[14][4] + ' Gems', 'The ultimate defensive measure. Absorbs love magic from Houses within its radius to charge your town\'s Shield. \rEach House can only be affected by one generator at a time. Once fully charged, you can activate an Ascension.'], ['Build ' + _root.buildList[15][0] + ': ' + _root.buildList[15][1] + ' Bits, ' + _root.buildList[15][3] + ' Tech Points', 'Educational facility. Converts Tech Points to Specialists EXP (Mode 1) or Mana (Mode 3). Mode 2 boosts Tech Point generation for all structures. Houses within the radius generate additional Bits and Happiness. Multiple Academies stack additively.'], ['Build ' + _root.buildList[16][0] + ': ' + _root.buildList[16][1] + ' Bits, ' + _root.buildList[16][4] + ' Gems', 'Castle-styled watch tower that increases your city\'s Defense Rating by 1 per day as long as there is 1 Armory within it\'s radius. \rThe Defense Rating effect of Multiple Keeps stack. WOW THIS BUILDING SURE IS TALL.'], []); } 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 = 'Build ' + _root.buildList[int(int((this._name.split(''))[3]))][0] + ' - FREE'; } 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 = 'Build ' + _root.buildList[int(int((this._name.split(''))[3]) + 7)][0] + ' - FREE'; } 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 = 'Build ' + _root.buildList[int(int((this._name.split(''))[3]) + 14)][0] + ' - FREE'; } 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 2572 { onClipEvent (load) { this.gotoAndStop(int(_root.buildCatalog) + 1); } onClipEvent (enterFrame) { this.gotoAndStop(int(_root.buildCatalog) + 1); } } instance of movieClip 1126 { onClipEvent (press) { } } frame 35 { gotoAndStop(1); } } movieClip 2591 { } movieClip 2592 { } movieClip 2595 { } movieClip 2596 { } instance happyWheel of movieClip 2596 { onClipEvent (release) { _root.HW.nextFrame(); } onClipEvent (enterFrame) { _root.happinessDisplay = int(_root.happiness); this.gotoAndStop(_root.happinessDisplay + 1); } onClipEvent (rollOver) { _root.feedText2 = 'Happiness Rating: ' + _root.happinessDisplay + '/' + _root.maxHappiness + ' ' + _root.happinessScore; _root.feedText = 'This is an overall rating for your entire town. If Happiness drops too low, Ponies will move out.\rYour town\'s happiness rating is ' + _root.happinessDisplay + '. '; if (_root.happiness >= 110) { _root.feedText += 'Your ponies are on cloud nine!'; } else { if (_root.happiness >= 100) { _root.feedText += 'Your ponies are absolutely ecstatic!'; } else { if (_root.happiness >= 85) { _root.feedText += 'Your ponies are extraordinarily happy!'; } else { if (_root.happiness >= 70) { _root.feedText += 'Your ponies are quite cheerful.'; } else { if (_root.happiness >= 45) { _root.feedText += 'Your ponies are content.'; } else { if (_root.happiness >= 30) { _root.feedText += 'Your ponies are somewhat annoyed.'; } else { if (_root.happiness >= 10) { _root.feedText += 'Your ponies are very displeased.'; } else { if (_root.happiness >= 0) { _root.feedText += 'Your ponies are completely miserable.'; } } } } } } } } } onClipEvent (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } movieClip 2600 { } instance tier1 of movieClip 2600 { onClipEvent (release) { if (_root.tiersUnlocked[0] == true) { _root.hudDynamic.gotoAndStop('tier1'); _root.tierSelected = 'tier1'; } } onClipEvent (rollOver) { _root.feedText2 = 'Tier I Structures'; _root.feedText = 'Basic structures designed to accomodate Earth Ponies.'; } onClipEvent (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } movieClip 2603 { } movieClip 2604 { } instance tier2 of movieClip 2604 { onClipEvent (release) { if (_root.tiersUnlocked[1] == true) { _root.hudDynamic.gotoAndStop('tier2'); _root.tierSelected = 'tier2'; } } onClipEvent (rollOver) { if (_root.tiersUnlocked[1] == true) { _root.feedText2 = 'Tier II Structures'; _root.feedText = 'Advanced structures designed to accomodate Earth Ponies.'; } else { _root.feedText2 = 'Locked (Requires Tavern)'; _root.feedText = 'You don\'t yet have access to these structures.'; } } onClipEvent (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } movieClip 2606 { } instance tier3 of movieClip 2606 { onClipEvent (release) { if (_root.tiersUnlocked[2] == true) { _root.hudDynamic.gotoAndStop('tier3'); _root.tierSelected = 'tier3'; } } onClipEvent (rollOver) { if (_root.tiersUnlocked[2] == true) { _root.feedText2 = 'Tier III Structures'; _root.feedText = 'Very advanced structures.'; } else { _root.feedText2 = 'Locked (Requires Factory)'; _root.feedText = 'You don\'t yet have access to these structures.'; } } onClipEvent (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } movieClip 2607 { } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Love Magic Rank: ' + _root.loveRank; _root.feedText = 'Love Magic Rank.'; } 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 2610 { } instance projspawner2 of movieClip 2610 { 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 2612 { } movieClip 2613 { } button 2614 { on (rollOver) { _root.feedText2 = 'Rank Up'; _root.feedText = 'You have remaining Skill Points to spend.'; } 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 2617 { } movieClip 2618 { } movieClip 2620 { } instance levelUpStat of movieClip 2620 { 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 2625 { } movieClip 2626 { } movieClip 2638 { } movieClip 2641 { } movieClip 2644 { } movieClip 2646 { } movieClip 2662 { frame 1 { stop(); } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Total Population: ' + _root.popTotal + ' / ' + _root.popMax; _root.feedText = 'Citizens are the foundation of any city!'; } 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 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Assigned Specialists: ' + _root.specialistStatus; _root.feedText = 'Specialists are a key part of your town\'s defense. When unassigned, they will be on guard and temporarily increase your city\'s defense rating, otherwise they can be assigned to do specific tasks like Scout or Raid.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 6; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { _root.deselectAll(); } } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = _root.resources[0][0] + ': ' + _root.resourceBits; _root.feedText = 'Bits are shiny coinage used to fund new structures and research projects.'; } 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 2607 { onClipEvent (rollOver) { _root.feedText2 = _root.resources[1][0] + ': ' + _root.resourceFood; _root.feedText = 'Food is necessary to keep your ponies satisfied and ensure they have full tummies.'; } 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 2607 { 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 = ''; } 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 2607 { onClipEvent (rollOver) { _root.feedText2 = _root.resources[3][0] + ': ' + _root.resourceGems; _root.feedText = 'Gems are a valuable luxury resource used for various things.'; } 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 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Ecobalance Score: ' + _root.environmentScore; _root.feedText = 'Trees increase this by 1 Point but most structures will reduce it. As long as this number remains positive, your environment will not degrade.'; } 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 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Defense Rating: ' + _root.DefenseRatingTotal; _root.feedText = 'In order to survive changing attacks without harm, your city must have a strong defense rating.\rDefense is primarily based on Willpower, number of trees and your Specialists.'; } 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 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Mana Points'; _root.feedText = 'Mana is used to activate your Adviser Powers.\rIf your town\'s Happiness is full, then 10% of excess daily Happiness is converted to Mana.'; } 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 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Environment Condition: ' + _root.environmentDisplay; _root.feedText = 'Trees and gardens can slow down the negative effects of certain structures, but only more advanced methods can restore the environment. Changelings will invade more often when the environment is weakened.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Total Population: ' + _root.popTotal + ' / ' + _root.popMax; _root.feedText = 'Citizens are the foundation of any city!'; } 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 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Ecobalance Score: ' + _root.environmentScore; _root.feedText = 'Trees increase this by 1 Point but most structures will reduce it. As long as this number remains positive, your environment will not degrade.'; } 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 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Unicorns: ' + _root.popUnicorn; _root.feedText = 'This is how many Unicorn Ponies live in your city.'; } 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 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Pegasi: ' + _root.popPegasus; _root.feedText = 'This is how many Pegasus Ponies live in your city.'; } 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 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Earth Ponies: ' + _root.popEarth; _root.feedText = 'This is how many Earth Ponies live in your city.'; } 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 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Defense Rating: ' + _root.DefenseRatingTotal; _root.feedText = 'In order to survive changing attacks without harm, your city must have a strong defense rating.\rDefense is primarily based on Willpower, number of trees and your Specialists.'; } 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 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Mana Points'; _root.feedText = 'Mana is used to activate your Adviser Powers.\rIf your town\'s Happiness is full, then 10% of excess daily Happiness is converted to Mana.'; } 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 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Assigned Specialists: ' + _root.specialistStatus; _root.feedText = 'Specialists are a key part of your town\'s defense. When unassigned, they will be on guard and temporarily increase your city\'s defense rating, otherwise they can be assigned to do specific tasks like Scout or Raid.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.hudInfoToggle == 1) { _root.deselectAll(); _root.hudInfoToggle = 6; _root.hudInfo.gotoAndStop(_root.hudInfoToggle); } else { _root.deselectAll(); } } } instance of movieClip 2607 { onClipEvent (release) { _root.HW.nextFrame(); } onClipEvent (enterFrame) { _root.happinessDisplay = int(_root.happiness); this.gotoAndStop(_root.happinessDisplay + 1); } onClipEvent (rollOver) { _root.feedText2 = 'Happiness Rating: ' + _root.happinessDisplay + '/' + _root.maxHappiness + ' ' + _root.happinessScore; _root.feedText = 'This is an overall rating for your entire town. If Happiness drops too low, Ponies will move out.\rYour town\'s happiness rating is ' + _root.happinessDisplay + '. '; if (_root.happiness >= 110) { _root.feedText += 'Your ponies are on cloud nine!'; } else { if (_root.happiness >= 100) { _root.feedText += 'Your ponies are absolutely ecstatic!'; } else { if (_root.happiness >= 85) { _root.feedText += 'Your ponies are extraordinarily happy!'; } else { if (_root.happiness >= 70) { _root.feedText += 'Your ponies are quite cheerful.'; } else { if (_root.happiness >= 45) { _root.feedText += 'Your ponies are content.'; } else { if (_root.happiness >= 30) { _root.feedText += 'Your ponies are somewhat annoyed.'; } else { if (_root.happiness >= 10) { _root.feedText += 'Your ponies are very displeased.'; } else { if (_root.happiness >= 0) { _root.feedText += 'Your ponies are completely miserable.'; } } } } } } } } } onClipEvent (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Environment Condition: ' + _root.environmentDisplay; _root.feedText = 'Trees and gardens can slow down the negative effects of certain structures, but only more advanced methods can restore the environment. Changelings will invade more often when the environment is weakened.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } frame 3 { gotoAndStop(1); } } movieClip 2667 { } movieClip 2668 { instance of movieClip 2667 { 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 2667 { 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 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Time Elapsed'; _root.feedText = 'This is the current day cycle of the game.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { _root.resourceMenu.nextFrame(); } } movieClip 2671 { } movieClip 2673 { } movieClip 2674 { frame 1 { stop(); } frame 18 { stop(); } instance of movieClip 2673 { 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 2680 { } movieClip 2683 { } movieClip 2686 { instance of movieClip 2680 { 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 += 'Rank ' + (i + 1) + ': ' + _root.upgradeStore[i][0] + ' Tech - ' + _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 = 'Upgrade Stores to Rank ' + (_root.upgradeStoreRank + 1) + ' - ' + _root.upgradeStore[_root.upgradeStoreRank][0] + ' Tech Points'; _root.feedText = _root.upgradeStore[_root.upgradeStoreRank][1] + ': ' + _root.upgradeStore[_root.upgradeStoreRank][2]; _parent.b1.gotoAndStop(2); } else { _root.feedText2 = 'Stores Fully Upgraded'; _root.feedText = 'Cannot be upgraded further.'; } 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 = 'Upgrade Stores to Rank ' + (_root.upgradeStoreRank + 1) + ' - ' + _root.upgradeStore[_root.upgradeStoreRank][0] + ' Tech Points'; _root.feedText = _root.upgradeStore[_root.upgradeStoreRank][1] + ': ' + _root.upgradeStore[_root.upgradeStoreRank][2]; } else { _parent.b1.gotoAndStop(4); _root.upgradeStoreCost = 'MAX'; _root.feedText2 = 'Stores Fully Upgraded'; _root.feedText = 'Cannot be upgraded further.'; } } else { _root.feedText2 = ''; _root.feedText = 'Insufficient Tech Points to research this upgrade.'; } } } onClipEvent (releaseOutside) { if (_root.upgradeStore[_root.upgradeStoreRank][0] != NaN) { _parent.b1.gotoAndStop(1); } } } } movieClip 2688 { } movieClip 2691 { instance of movieClip 2680 { 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 += 'Rank ' + (i + 1) + ': ' + _root.upgradeLibrary[i][0] + ' Tech - ' + _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 = 'Upgrade Libraries to Rank ' + (_root.upgradeLibraryRank + 1) + ' - ' + _root.upgradeLibrary[_root.upgradeLibraryRank][0] + ' Tech Points'; _root.feedText = _root.upgradeLibrary[_root.upgradeLibraryRank][1] + ': ' + _root.upgradeLibrary[_root.upgradeLibraryRank][2]; _parent.b1.gotoAndStop(2); } else { _root.feedText2 = 'Libraries Fully Upgraded'; _root.feedText = 'Cannot be upgraded further.'; } 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 = 'Upgrade Libraries to Rank ' + (_root.upgradeLibraryRank + 1) + ' - ' + _root.upgradeLibrary[_root.upgradeLibraryRank][0] + ' Tech Points'; _root.feedText = _root.upgradeLibrary[_root.upgradeLibraryRank][1] + ': ' + _root.upgradeLibrary[_root.upgradeLibraryRank][2]; } else { _parent.b1.gotoAndStop(4); _root.upgradeLibraryCost = 'MAX'; _root.feedText2 = 'Libraries Fully Upgraded'; _root.feedText = 'Cannot be upgraded further.'; } } else { _root.feedText2 = ''; _root.feedText = 'Insufficient Tech Points to research this upgrade.'; } } } onClipEvent (releaseOutside) { if (_root.upgradeLibrary[_root.upgradeLibraryRank][0] != NaN) { _parent.b1.gotoAndStop(1); } } } } movieClip 2693 { } movieClip 2696 { instance of movieClip 2680 { 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 += 'Rank ' + (i + 1) + ': ' + _root.upgradeTechLab[i][0] + ' Tech - ' + _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 = 'Upgrade Tech Labs to Rank ' + (_root.upgradeTechLabRank + 1) + ' - ' + _root.upgradeTechLab[_root.upgradeTechLabRank][0] + ' Tech Points'; _root.feedText = _root.upgradeTechLab[_root.upgradeTechLabRank][1] + ': ' + _root.upgradeTechLab[_root.upgradeTechLabRank][2]; _parent.b1.gotoAndStop(2); } else { _root.feedText2 = 'Tech Labs Fully Upgraded'; _root.feedText = 'Cannot be upgraded further.'; } 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 = 'Upgrade Tech Labs to Rank ' + (_root.upgradeTechLabRank + 1) + ' - ' + _root.upgradeTechLab[_root.upgradeTechLabRank][0] + ' Tech Points'; _root.feedText = _root.upgradeTechLab[_root.upgradeTechLabRank][1] + ': ' + _root.upgradeTechLab[_root.upgradeTechLabRank][2]; } else { _parent.b1.gotoAndStop(4); _root.upgradeTechLabCost = 'MAX'; _root.feedText2 = 'Tech Labs Fully Upgraded'; _root.feedText = 'Cannot be upgraded further.'; } } else { _root.feedText2 = ''; _root.feedText = 'Insufficient Tech Points to research this upgrade.'; } } } onClipEvent (releaseOutside) { if (_root.upgradeTechLab[_root.upgradeTechLabRank][0] != NaN) { _parent.b1.gotoAndStop(1); } } } } movieClip 2700 { } movieClip 2701 { } movieClip 2704 { instance of movieClip 2680 { 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 += 'Rank ' + (i + 1) + ': ' + _root.upgradeMoreTiles[i][0] + ' Bits - ' + _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 = 'Upgrade Tile Space to Rank ' + (_root.upgradeMoreTilesRank + 1) + ' - ' + _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] + ' Bits'; _root.feedText = _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][1] + ': ' + _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][2]; _parent.b1.gotoAndStop(2); } else { _root.feedText2 = 'Tile Space Fully Upgraded'; _root.feedText = 'Cannot be upgraded further.'; } 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], 'grass'); } if (_root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] != NaN) { _root.upgradeMoreTilesCost = _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0]; _root.feedText2 = 'Upgrade Tile Space to Rank ' + (_root.upgradeMoreTilesRank + 1) + ' - ' + _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] + ' Bits'; _root.feedText = _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][1] + ': ' + _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][2]; } else { _parent.b1.gotoAndStop(4); _root.upgradeMoreTilesCost = 'MAX'; _root.feedText2 = 'Tile Space Fully Upgraded'; _root.feedText = 'Cannot be upgraded further.'; } } else { _root.feedText2 = ''; _root.feedText = 'Insufficient Bits to purchase additional city tiles.'; } } } onClipEvent (releaseOutside) { if (_root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] != NaN) { _parent.b1.gotoAndStop(1); } } } } // unknown tag 88 length 208 movieClip 2709 { frame 2 { stop(); } instance of movieClip 2680 { 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 2680 { 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 2730 { } movieClip 2736 { } button 2739 { on (release) { gotoAndStop(1); _root.deselectAll(); _root.hudInfo.gotoAndStop('fadeScene'); _root.NextScene = 'Garden'; _root.feedText2 = ''; _root.feedText = ''; } on (rollOver) { _root.feedText2 = 'Meet adviser'; _root.feedText = 'Meet your adviser here.'; } on (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } button 2741 { 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 = 'Garden Clop Scene'; _root.feedText = 'Quickly access the interactive sex scene in the garden.'; } on (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } button 2743 { on (release) { gotoAndStop(1); _root.deselectAll(); _root.hudInfo.gotoAndStop('fadeScene'); _root.NextScene = 'Tavern'; _root.feedText2 = ''; _root.feedText = ''; } on (rollOver) { _root.feedText2 = 'Visit the Tavern'; _root.feedText = 'Meet your adviser here.'; } on (rollOut) { _root.feedText2 = ''; _root.feedText = ''; } } movieClip 2745 { 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 2736 { onClipEvent (load) { this.useHandCursor = false; } onClipEvent (press) { } } frame 6 { if (_root.UnlocksGeneric[0][2] == 1) { gotoAndStop('Garden2'); } } } movieClip 2747 { frame 2 { stop(); } } movieClip 2748 { frame 12 { _root.updateHudCard(_root.nodeSelected); } } movieClip 2750 { } instance sfxplayer1 of movieClip 2750 { onClipEvent (load) { sfx = new Sound(this); } } instance sfxplayer2 of movieClip 2750 { onClipEvent (load) { sfx = new Sound(this); } } button 2753 { on (release) { _root.pauseGame(); } on (rollOver) { _root.feedText2 = 'Pause Game'; _root.feedText = 'Suspends all time-related game actions in case you need a break, or want to plan your layout.\rWhile paused you can still perform actions, build structures, toggle between modes, etc.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } button 2758 { on (rollOver) { _root.feedText2 = 'Upgrades'; _root.feedText = 'List of available research options to improve your town.'; } 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 2761 { on (rollOver) { _root.feedText2 = 'Statistics'; _root.feedText = 'Quick rundown of your town\'s population and resources.'; } 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 2764 { on (rollOver) { _root.feedText2 = 'Options'; _root.feedText = 'Tweak various gameplay options.'; } 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 2767 { } button 2769 { on (rollOver) { _root.feedText2 = 'Edicts'; _root.feedText = 'List of available edicts you can issue to have various effects on your town.'; } 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 2772 { on (rollOver) { _root.feedText2 = 'Unlocks'; _root.feedText = 'List of content unlocked by playing the game.'; } 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 2773 { on (rollOver) { _root.feedText2 = 'Defense'; _root.feedText = 'manage the military aspect of your city.'; } 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 2774 { on (rollOver) { _root.feedText2 = 'Zoom in'; _root.feedText = 'Zoom the camera closer.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } on (release) { _root.Zoomy(-5); } } button 2775 { on (rollOver) { _root.feedText2 = 'Zoom out'; _root.feedText = 'Zoom the camera further away.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } on (release) { _root.Zoomy(5); } } movieClip 2777 { } button 2780 { 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 = 'Game Menu'; _root.feedText = 'Access the game menu in which you can save, view the tutorial again, etc.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } movieClip 2785 { } movieClip 2787 { } button 2788 { on (release) { _root.HW.gotoAndStop(1); } } movieClip 2790 { instance of movieClip 2667 { 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 2667 { onClipEvent (press) { scrollan = 1; } onClipEvent (release) { scrollan = 0; } onClipEvent (enterFrame) { if (scrollan == -1) { --_parent.messages.scroll; } if (scrollan == 1) { ++_parent.messages.scroll; } } } } movieClip 2792 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 2794 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 2796 { } instance of movieClip 2796 { onClipEvent (release) { _root.debug.nextFrame(); } } movieClip 2800 { } movieClip 2801 { frame 1 { if (_root.difficulty == 1) { gotoAndStop(2); } else { stop(); } } } button 2813 { on (release) { gotoAndStop(2); } } button 2817 { on (release) { gotoAndStop(3); } } button 2821 { on (release) { gotoAndStop(10); } } button 2822 { on (release) { _root.deselectAll(); } } button 2826 { on (release) { gotoAndStop(4); } } button 2830 { on (release) { gotoAndStop(5); } } button 2834 { on (release) { gotoAndStop(6); } } movieClip 2853 { 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 2859 { } movieClip 2860 { frame 1 { if (_root.mana < 10) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 2863 { } movieClip 2864 { frame 1 { if (_root.mana < 15) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 2869 { } movieClip 2870 { frame 1 { if (_root.mana < 20) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 2871 { instance of movieClip 2860 { onClipEvent (enterFrame) { if (_root.mana < 10) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (rollOver) { _root.feedText2 = 'Power Fortify'; _root.feedText = 'Permanently increases your Town\'s Defense by 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 2864 { 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 2870 { onClipEvent (enterFrame) { if (_root.mana < 20) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (rollOver) { _root.feedText2 = 'Tech Boost'; _root.feedText = 'Converts all mana into Tech Points.\rGenerates 3 + (0.5 * Additional Mana Spent) Tech Points.'; } 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 2878 { } movieClip 2880 { } button 2889 { 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 2890 { 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 2891 { 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 2892 { 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 2893 { 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 2894 { 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 2895 { 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 2896 { frame 1 { stop(); } } movieClip 2917 { } movieClip 2918 { frame 1 { function StatBracketHint() { descript = 'Skills cost more Stat Points as you increase their level.\r'; descript += 'Level 2 - ' + (_root.StatBracket[0][0] - 1) + ' ' + _root.StatBracket[0][1] + ' Point(s) per Skill Level' + '\n'; descript += 'Level ' + _root.StatBracket[0][0] + ' - ' + (_root.StatBracket[1][0] - 1) + ' ' + _root.StatBracket[1][1] + ' Point(s) per Skill Level' + '\n'; descript += 'Level ' + _root.StatBracket[1][0] + ' - ' + (_root.StatBracket[2][0] - 1) + ' ' + _root.StatBracket[2][1] + ' Point(s) per Skill Level' + '\n'; descript += 'Level ' + _root.StatBracket[2][0] + ' - ' + (_root.StatBracket[3][0] - 1) + ' ' + _root.StatBracket[3][1] + ' Point(s) per Skill Level' + '\n'; descript += 'Level ' + _root.StatBracket[3][0] + ' - ' + (_root.StatBracket[4][0] - 1) + ' ' + _root.StatBracket[4][1] + ' Point(s) per Skill Level' + '\n'; descript += 'Level ' + _root.StatBracket[4][0] + '+ ' + _root.StatBracket[5][1] + ' Point(s) per Skill Level'; } 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 2896 { 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 2924 { } movieClip 2938 { } movieClip 2940 { } movieClip 2943 { } movieClip 2944 { } movieClip 2947 { } movieClip 2949 { } movieClip 2950 { } movieClip 2953 { } movieClip 2955 { } movieClip 2956 { } movieClip 2958 { } movieClip 2961 { } movieClip 2963 { } movieClip 2964 { } movieClip 2966 { } movieClip 2968 { } movieClip 2969 { } movieClip 2972 { } movieClip 2974 { } movieClip 2975 { } movieClip 2977 { } movieClip 2979 { } movieClip 2981 { } movieClip 2982 { } movieClip 2987 { } movieClip 2989 { } movieClip 2990 { } movieClip 2991 { } movieClip 2993 { } movieClip 2994 { } movieClip 2996 { } movieClip 2998 { } movieClip 2999 { } movieClip 3033 { frame 1 { var expShow = ''; var nameRank = ''; var exp = ''; } } button 3038 { on (release) { _root.writeData(); _root.fader.gotoAndPlay('fadeOut'); _root.fadeOutTarget = 'title'; } } button 3039 { on (release) { gotoAndStop('helpstart'); } } button 3040 { on (release) { _root.deselectAll(); } } button 3042 { on (release) { gotoAndStop('options'); } } button 3044 { 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 = '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 (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 3046 { on (release) { _root.queuemusik(_root.MusikTrack + 1); } } button 3048 { on (release) { if (_root.MusikLoop == 0) { _root.MusikLoop = 1; } else { _root.MusikLoop = 0; } } } movieClip 3063 { 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 3067 { } movieClip 3074 { frame 1 { stop(); } } movieClip 3076 { } movieClip 3078 { } movieClip 3079 { frame 200 { gotoAndPlay(1); } } movieClip 3084 { } movieClip 3090 { } movieClip 3091 { frame 1 { stop(); } frame 2 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } instance choiceBtn1 of movieClip 1242 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } instance choiceBtn2 of movieClip 1242 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } instance choiceBtn3 of movieClip 1242 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } instance choiceBtn4 of movieClip 1242 { 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 1242 { 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 1242 { 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 1242 { 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 1242 { 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 1242 { 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 1242 { 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 1242 { 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 1242 { 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 3092 { on (release) { _root.hudInfo.leFadeFace.play(); _root.NextScene = 'disabled'; } } movieClip 3095 { frame 1 { function storyChoice(number) { this.choices.nextFrame(); this.choices.play(); choicesBusy = false; textcurrent = ''; textlength = 0; choiceID = choiceNumberID[number - 1]; if (choiceID == '01') { textmessage = 'We\'re trying to impede the development of evil Changeling Citadels. They feast off of love and want to destroy us, but if we create enough of it we can keep them at bay and stop them from expanding.'; this.choices.choice1 = 'Isn\'t there a stronger magic we could use against them?'; 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 = 'Build Town Squares and surround them with Houses, ideally you want 2 Deli Stores per 8 Houses. Try to get your Happiness to 100% as soon as possible. Quarries should be placed far away from towns, and Taverns should touch as many Houses as possible.'; 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 = 'Hehe, thank you! That is a very nice thing of you to say. I like you too, ' + _root.charName + '.'; choiceNumberID = new Array('03b', '03c', '', ''); this.choices.choice1 = 'You\'re welcome. Could we talk about something else?'; this.choices.choice2 = 'Could you explain how love magic works in-depth?'; if (!_root.StoryFlags[0]) { if (_root.statCharisma >= 6) { this.choices.choice3 = 'Let\'s generate some \'love magic\'. Hehe.'; 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 = 'Sure thing! What did you want to ask about?'; 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 = 'Of course! There are many types of magic in this world, some of the more known and controllable powers are something all Unicorns are born with. Various Mythical creatures also have different kinds of magic, some lesser, some greater.'; this.choices.choice1 = 'I\'m with you so far.'; this.choices.choice2 = ''; this.choices.choice3 = ''; this.choices.choice4 = ''; choiceNumberID = new Array('03c2', '', '', ''); } else { if (choiceID == '03c2') { textmessage = 'There\'s also the magic of friendship and love, which usually require a unicorn\'s magic to utilize, but can be generated from anyone - even creatures other than ponies! These types of magic are incredibly powerful if utilized properly.'; this.choices.choice1 = 'How exactly does love magic get \'generated\'?'; this.choices.choice2 = 'What about fart magic? Hehhehh...'; this.choices.choice3 = 'Er, could you re-explain that last bit?'; this.choices.choice4 = ''; choiceNumberID = new Array('03c3', '03e', '03c', ''); } else { if (choiceID == '03c3') { textmessage = 'Usually if two people are deeply in-love it can create magic so powerful it can totally annhilate evil. However, just having a community filled with loving, happy ponies will create plenty of usable magic. When ponies have sex, this magic is even greater.'; this.choices.choice1 = 'I\'d like to generate some Magic with you, if possible'; this.choices.choice2 = 'If you pissed in my mouth, would that generate any magic?'; this.choices.choice3 = 'Could you start over? I wasn\'t listening.'; this.choices.choice4 = ''; choiceNumberID = new Array('03c4', '03e', '03c', ''); } else { if (choiceID == '03c4' || choiceID == '03e4' || choiceID == '03d') { textmessage = 'You wanted to make love to me? Well, we are pretty good friends, and I suppose if it\'s for the purpose of creating additional magic I wouldn\'t mind helping out in the battle versus tyranny! Hehe. Wanna do it right here in the garden?'; this.choices.choice1 = 'Alright!'; this.choices.choice2 = '...Let\'s talk about something else...'; this.choices.choice3 = 'Woah woah, could you start over? I\'m confused.'; this.choices.choice4 = 'I just shit my rainbow dash adult diaper.'; 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 = 'Hmmm... well you\'ve already been given a small amount of resources to start with by our kingdom, but I suppose I can see what I can do to whip up some more. What did you need me to get?'; this.choices.choice1 = 'Throw a big party to celebrate the new town!'; this.choices.choice2 = 'Some gems and coins to help me build stuff.'; this.choices.choice3 = 'Extra food and tech points to speed up research.'; this.choices.choice4 = ''; choiceNumberID = new Array('04b', '04c', '04d', ''); _root.StoryFlags[0] = true; } else { textmessage = 'Sorry, I think I\'ve got you all the extra supplies I can offer. I don\'t wanna push my luck.'; 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 = 'Uh... I uh... well. That\'s a really weird thing of you to say... Let\'s just pretend that never happened. What else did you want to talk about?'; 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 = 'Love is the most powerful magic that we currently know how to harness. However, as our technology improves we may find something better.'; 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 = 'Alright, consider it done. Was there anything else I could help you with?'; 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('Hello again ' + _root.charName + ', it\'s always nice to see you around!'); var PositiveTwilight = new Array('It seems the the citizens of ' + _root.townName + ' are doing quite well, nice work so far!'); var NeutralTwilight = new Array(_root.townName + ' Seems to be rather content today, keep up the good work.'); var NegativeTwilight = new Array('However, I feel the citizens of ' + _root.townName + ' could be doing better.'); var QuestionTwilight = new Array('So, anyways, what did you want to talk about?'); 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('What am I supposed to be doing?', 'Other than building a town, what is my goal?'); var ChoiceGeneric2 = new Array('Any general tips for building a town?', 'What\'s a good strategy for a town layout?', 'Any advice on how to create my town layout?'); var ChoiceGeneric3 = new Array('You look really pretty today...', 'You know, I\'ve always really liked you...', 'This garden smells almost as lovely as you do...', 'Your coat and mane look really soft lately...', 'Your mane looks wonderful and brushable...'); var ChoiceGeneric4a = new Array('(CHARM) Could I get some extra supplies?'); var ChoiceGeneric4b = new Array('I want to sniff your butthole.', 'I wanna smack your crotchtits with my dick.', 'I want to bend you over and make you my bitch.', 'I wanna do to you what I do to AJ\'s dog.', 'You look tired. You should sleep at my place tonight.', 'Let\'s play the \'pop up pirate game\', only we use my cock.', 'Let\'s play the \'put my dick in your ass\' minigame.', 'Shut up and suck me off already!', 'Shut up and bend over, I\'m ready for hot pony sex!', 'I want to sniff your hair and brush you.', 'Y-you too.'); 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 = 'The witching hour arrives'; break; case 4: messageTxt.text = 'The streets are swept clean'; break; case 6: messageTxt.text = 'The workers prepare for a new day'; break; case 8: messageTxt.text = 'The city welcomes the new day'; break; case 12: messageTxt.text = 'The workers head off for lunch'; break; case 16: messageTxt.text = 'The city begins to wind down the working day'; break; case 20: messageTxt.text = 'The residents get ready to party'; break; default: messageTxt.text = ''; } } instance textcontroller of movieClip 3084 { 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 3097 { frame 21 { stop(); } } movieClip 3100 { } movieClip 3102 { } button 3105 { on (release) { _root.hudInfo.gotoAndStop('Gamble'); } } button 3107 { on (release) { if (traitsOwned[20] != 1) { _root.hudInfo.gotoAndStop('Private'); } } } movieClip 3109 { frame 1 { function storyChoice(number) { this.choices.nextFrame(); this.choices.play(); choicesBusy = false; textcurrent = ''; textlength = 0; choiceID = choiceNumberID[number - 1]; if (choiceID == '01') { textmessage = 'What, do you think this is a dating sim or something? Surely you have something better to do than make idle chit-chat!'; this.choices.choice1 = 'I was just trying to break the ice...'; 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 = 'Private Rooms are a place where you can make \'Love Magic\' with different guests of the tavern. There\'s no limit on how often you can do this and it\'s completely free.'; textlength = 0; this.choices.choice1 = 'I\'m gonna go check them out.'; 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 = 'If you\'re feeling lucky you can go wager some Bits in order to win some prizes. They play a game called \'Happy Merchants\'.'; choiceNumberID = new Array('03b', '03c', '02', ''); this.choices.choice1 = 'Can you explain how \'Happy Merchants\' is played?'; this.choices.choice2 = 'I am gonna go check that out'; x = _root.randRange(0, ChoiceGeneric2.length - 1); this.choices.choice3 = ChoiceGeneric2[x]; this.choices.choice4 = ''; } else { if (choiceID == '03b') { textmessage = 'Happy Merchants is a game where you place bets on various locations then draw a card. If you draw a supply card that matches your location you get paid out. However if you draw the Bandit card, you lose all of your placed bets. You can clear your bets anytime without a penalty.'; this.choices.choice1 = 'I am gonna go check that out'; 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 = 'You should meet me one of the private rooms if you\'re interested in something like that, hehe.'; 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('Hi there ' + _root.charName + '! Managing a city sure is hard work, come to relax for a bit?'); var PositiveTwilight = new Array('It seems the the citizens of ' + _root.townName + ' are doing quite well, nice work so far!'); var NeutralTwilight = new Array(_root.townName + ' Seems to be rather content today, keep up the good work.'); var NegativeTwilight = new Array('However, I feel the citizens of ' + _root.townName + ' could be doing better.'); var QuestionTwilight = new Array('So, anyways, what did you want to talk about?'); 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('So... what\'s up?', 'How\'re you doing, by the way?', 'Whatcha been up to?', 'Nice day today, huh?'); var ChoiceGeneric2 = new Array('Can you tell me about the Private Rooms?'); var ChoiceGeneric3 = new Array('Can you tell me about the Gambling Table?'); var ChoiceGeneric4a = new Array('(CHARM) Could I get some extra supplies?'); var ChoiceGeneric4b = new Array('I want to sniff your butthole.', 'I wanna smack your crotchtits with my dick.', 'I want to bend you over and make you my bitch.', 'I wanna do to you what I do to AJ\'s dog.', 'You look tired. You should sleep at my place tonight.', 'Let\'s play the \'pop up pirate game\', only we use my cock.', 'Let\'s play the \'put my dick in your ass\' minigame.', 'Shut up and suck me off already!', 'Shut up and bend over, I\'m ready for hot pony sex!', 'I want to sniff your hair and brush you.'); 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 = 'The witching hour arrives'; break; case 4: messageTxt.text = 'The streets are swept clean'; break; case 6: messageTxt.text = 'The workers prepare for a new day'; break; case 8: messageTxt.text = 'The city welcomes the new day'; break; case 12: messageTxt.text = 'The workers head off for lunch'; break; case 16: messageTxt.text = 'The city begins to wind down the working day'; break; case 20: messageTxt.text = 'The residents get ready to party'; break; default: messageTxt.text = ''; } } instance textcontroller of movieClip 3084 { 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 3111 { } movieClip 3114 { } movieClip 3117 { } movieClip 3120 { } movieClip 3123 { } movieClip 3126 { } movieClip 3129 { frame 1 { stop(); } } movieClip 3132 { } movieClip 3135 { } movieClip 3138 { } movieClip 3140 { } movieClip 3143 { frame 121 { _parent.lightText._alpha -= 3; gotoAndPlay(120); } } movieClip 3146 { frame 121 { if (_parent.lightText._alpha > 0) { _parent.lightText._alpha -= 3; gotoAndPlay(120); } else { gotoAndStop(1); } } } movieClip 3148 { } movieClip 3150 { } movieClip 3152 { } movieClip 3154 { } movieClip 3156 { } movieClip 3158 { } movieClip 3159 { } movieClip 3161 { } movieClip 3162 { frame 1 { stop(); } frame 7 { gotoAndStop(14); } frame 15 { gotoAndStop(1); } } movieClip 3177 { frame 1 { if (!init) { var init = true; if (_root.funds > 0 || _root.tokens > 0) { this.gotoAndStop(2); } else { stop(); } } } frame 3 { gotoAndStop(1); } } button 3186 { on (release) { rollEm(); } } button 3187 { on (release) { clearEm(false); } } movieClip 3217 { } movieClip 3240 { } movieClip 3243 { } movieClip 3244 { frame 1 { stop(); } frame 2 { _parent.showEm(); } frame 15 { _parent.payEm(); } frame 15 { stop(); } frame 20 { gotoAndPlay(2); } } button 3247 { on (release) { placeEmAll(); } } button 3249 { on (release) { clearEm(false); _root.hudInfo.gotoAndStop('Prize'); } } movieClip 3253 { } button 3254 { on (release) { if (_root.tokens >= 125) { _root.tokens -= 125; _root.funds += 100; } this.chiphint.gotoAndStop('disabled'); } } button 3256 { on (release) { if (_root.resources[0][1] >= 100) { _root.resources[0][1] -= 100; _root.funds += 100; } _root.refreshResources(); this.chiphint.gotoAndStop('disabled'); } } movieClip 3259 { } movieClip 3260 { frame 1 { if (_root.funds > 0 || _root.tokens > 0) { this.gotoAndStop('disabled'); } } frame 60 { gotoAndPlay(1); } } button 3261 { on (release) { this.hinty.nextFrame(); } } button 3263 { on (release) { placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); } } button 3265 { on (release) { clearEm(false); _root.hudInfo.gotoAndStop('Tavern'); } } movieClip 3267 { 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 3177 { onClipEvent (press) { this.gotoAndStop(2); } } } button 3277 { on (release) { if (_root.tokens >= 100) { _root.tokens -= 100; _root.happiness += 50; _root.refreshResources(); _root.writeData(); } } } button 3280 { on (release) { if (_root.tokens >= 300) { _root.tokens -= 300; _root.DefenseRating += 150; _root.refreshResources(); _root.writeData(); } } } button 3281 { 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 3284 { on (release) { if (_root.tokens >= 800) { _root.tokens -= 800; _root.StoryFlags[1] = 1; gotoAndStop(2); _root.refreshResources(); _root.writeData(); } } } movieClip 3286 { frame 1 { if (_root.StoryFlags[1] == 1) { gotoAndStop(2); } else { stop(); } } } movieClip 3291 { } button 3292 { on (release) { if (_root.tokens >= 1200) { _root.tokens -= 1200; _root.StoryFlags[2] = true; gotoAndStop(2); _root.refreshResources(); _root.writeData(); } } } movieClip 3294 { frame 1 { if (_root.StoryFlags[2] == 1) { gotoAndStop(2); } else { stop(); } } } movieClip 3298 { frame 1 { if (_root.UnlocksGeneric[9][2] != 1) { stop(); } else { gotoAndStop(2); } } instance of movieClip 929 trait??? { onClipEvent (release) { if (_root.tokens >= 500) { _root.tokens -= 500; _root.UnlockGeneric(9); _root.writeData(); _root.hudInfo.prizeScene.tt1.gotoAndStop(2); } } } } movieClip 3300 { frame 1 { if (_root.UnlocksGeneric[10][2] != 1) { stop(); } else { gotoAndStop(2); } } instance of movieClip 929 trait??? { onClipEvent (release) { if (_root.tokens >= 750) { _root.tokens -= 750; _root.UnlockGeneric(10); _root.writeData(); _root.hudInfo.prizeScene.tt2.gotoAndStop(2); } } } } movieClip 3302 { frame 1 { if (_root.UnlocksGeneric[11][2] != 1) { stop(); } else { gotoAndStop(2); } } instance of movieClip 929 trait??? { onClipEvent (release) { if (_root.tokens >= 1500) { _root.tokens -= 1500; _root.UnlockGeneric(11); _root.writeData(); _root.hudInfo.prizeScene.tt3.gotoAndStop(2); } } } } movieClip 3304 { frame 1 { if (_root.UnlocksGeneric[12][2] != 1) { stop(); } else { gotoAndStop(2); } } instance of movieClip 929 trait??? { onClipEvent (release) { if (_root.tokens >= 6000) { _root.tokens -= 6000; _root.UnlockGeneric(12); _root.writeData(); _root.hudInfo.prizeScene.tt4.gotoAndStop(2); } } } } button 3305 { on (release) { _root.hudInfo.gotoAndStop('Tavern'); } } movieClip 3306 { 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 3307 { } button 3310 { on (release) { _root.hudInfo.gotoAndStop('Tavern'); } } button 3311 { on (release) { _root.fader.gotoAndPlay('fadeOut'); _root.fadeOutTarget = 'sex'; _root.sexScene = 'tavern'; _root.feedText2 = ''; _root.feedText = ''; _root.deselectAll(); } } movieClip 3313 { 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 3319 { on (release) { nextFrame(); } } movieClip 3331 { } movieClip 3334 { } movieClip 3337 { } button 3341 { on (release) { gotoAndStop('help2'); } } button 3355 { on (release) { prevFrame(); } } movieClip 3363 { } button 3388 { on (release) { gotoAndStop('help'); } } button 3398 { on (release) { if (_root.perksLeft < 1) { _root.townName = String(_root.hudInfo.townNameInput.text); _root.ascensionNG(); } else { nextFrame(); } } } movieClip 3404 { } button 3406 { on (release) { _root.townName = String(_root.hudInfo.townNameInput.text); _root.ascensionNG(); } } movieClip 3412 { 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'); } frame 2 { function taxChange(dir) { _root.taxLevel += dir; if (_root.taxLevel < -4) { _root.taxLevel = -4; } if (_root.taxLevel > 4) { _root.taxLevel = 4; } _root.hudInfo.updateTaxinfo(); } function updateTaxinfo() { _root.hudInfo.taxLevelName.htmlText = _root.hudInfo.taxLevelNames[_root.taxLevel + 4]; _root.hudInfo.taxInfo.htmlText = 'Income: ' + _root.hudInfo.taxLevelIncome[_root.taxLevel + 4] + '\n' + 'Happiness: ' + _root.hudInfo.taxLevelHappy[_root.taxLevel + 4]; _root.hudInfo.taxBar.gotoAndStop(_root.taxLevel + 5); } _root.hudInfo.taxInfo.html = true; _root.hudInfo.taxLevelName.htmlText = ''; var taxLevelNames = new Array('None', 'Meager', 'Nominal', 'Low', 'Fair', 'High', 'Heavy', 'Excessive', 'Cruel'); var taxLevelIncome = new Array('0%', '25%', '50%', '75%', '100%', '110%', '120%', '130%', '140%'); var taxLevelHappy = new Array('+20%', '+15%', '+10%', '+5%', '+0%', '-10%', '-20%', '-30%', '-40%'); updateTaxinfo(); } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Time Elapsed'; _root.feedText = 'This is the current day cycle of the game.'; } 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 2309 { onClipEvent (release) { _root.hudInfo.taxChange(1); } } instance of movieClip 2314 { onClipEvent (release) { _root.hudInfo.taxChange(-1); } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = _root.resources[0][0] + ': ' + _root.resourceBits; _root.feedText = 'Bits are shiny coinage used to fund new structures and research projects.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Income: ' + _root.resourceBitsCycle; _root.feedText = 'This is how many Bits you recieve each day. Increase your population to get higher income.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = _root.resources[1][0] + ': ' + _root.resourceFood; _root.feedText = 'Food is necessary to keep your ponies satisfied and ensure they have full tummies.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Production: ' + _root.resourceFoodCycleDisplay; _root.feedText = 'This is how much Food you produce and consume each day. Stores can increase production.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { 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 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Research: ' + _root.resourceFoodCycle; _root.feedText = 'This is how many Tech points you gain each day.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = _root.resources[3][0] + ': ' + _root.resourceGems; _root.feedText = 'Gems are a valuable luxury resource used for various things.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Excavation: ' + _root.resourceGemsCycle; _root.feedText = 'This is how many Gems are extracted each day.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Food Storage Capacity: ' + _root.resourceCapFood; _root.feedText = 'This is how much Food your city can currently hold. Increased by building Stores and Houses.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Leadership Skill'; _root.feedText = 'Your population will generate an extra 5% bits per rank.\rDoes not affect Quarries, Libraries, etc.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Diplomacy Skill'; _root.feedText = 'Decreases the negative Happiness effect of Structures by 1% per Rank.\rDecreases the negative Happiness effect of edicts by 3% per Rank.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Knowledge Skill'; _root.feedText = 'Structures will generate 5% more Tech Points.\rDoes not affect Edicts.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Architecture Skill'; _root.feedText = 'Increases the how fast structures are built by 15% per Rank.\rIncreases the how quickly the Shield Generator works by 10% per Rank.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Discipline Skill'; _root.feedText = 'Specialists train 2% faster per Rank and are 2% more effective at raiding.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Ecology Skill'; _root.feedText = 'Decreases the negative eco-score from structures by 5%.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Tradecraft Skill'; _root.feedText = 'Increases the frequency at which traders are available.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Mana Points'; _root.feedText = 'Mana is used to activate your Adviser Powers.\rIf your town\'s Happiness is full, then 10% of excess daily Happiness is converted to Mana.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 2607 { onClipEvent (rollOver) { _root.feedText2 = 'Character Stats'; _root.feedText = 'These are the stats and traits you selected at the beginning of the game.'; } 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 = 'Activate Edict'; _root.feedText = 'Issues a command to your entire town that modifies the attributes of your town for 1 week.\rThis edict is free to activate, but cannot be cancelled or changed until it expires.'; 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 = 'Activate Edict'; _root.feedText = 'Issues a command to your entire town that modifies the attributes of your town for 1 week.\rThis edict is free to activate, but cannot be cancelled or changed until it expires.'; 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 = 'Activate Edict'; _root.feedText = 'Issues a command to your entire town that modifies the attributes of your town for 1 week.\rThis edict is free to activate, but cannot be cancelled or changed until it expires.'; 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 1276 { 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 + ' out of 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 + ' out of 6'; counting = 0; i = 0; while (i < _root.optionsTableLocked.length - 1) { if (_root.optionsTableLocked[i][2] == 1) { ++counting; } ++i; } var optionsunlocked = counting + ' out of 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' + 'Rank ' + _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; } else { 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; } else { 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; } else { 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 1242 { 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 1242 { 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 1242 { 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 1242 { 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 25 { if (_root.gamePaused != true) { _root.pauseGame(); } } frame 26 { if (_root.gamePaused != true) { _root.pauseGame(); } } frame 31 { _root.hudInfo.underlay.useHandCursor = false; if (_root.gamePaused != true) { _root.pauseGame(); } _root.feedText = ''; _root.feedText2 = ''; } 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 3415 { } instance of movieClip 3415 { onClipEvent (enterFrame) { if (_root.feedText == '') { this._alpha = 0; } else { this._alpha = 100; } } } movieClip 3416 { } instance of movieClip 3416 { onClipEvent (enterFrame) { if (_root.feedText2 == '') { this._alpha = 0; } else { this._alpha = 100; } } } movieClip 3422 { } movieClip 3429 { frame 2 { if (_root.loadGame == true) { _root.readData(); } _root.autoSave = _root.cache.data.PlayerDataOptions[1]; if (_root.FAPMODE == 1 || _root.charName == 'fapmode') { _root.charSelected = _root.CurrentAdviser; _root.deselectAll(); _root.gotoAndStop('sex'); _root.sexScene = 'garden'; _root.feedText2 = ''; _root.feedText = ''; } else { _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 + ', Level ' + loveRank + ' Mayor of ' + townName; var achievements = 'Days of operation: ' + clock + '\n'; } movieClip 3435 { 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 == 'Horseshoes') { 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 == 'Crotch Boobs') { 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 == 'Futa Mode') { 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 == 'Mirror Scene') { _root.char._xscale *= -1; } else { if (option == 'Anthro Mode') { if (_root.maleType == 2) { _root.maleType = 1; } else { _root.maleType = 2; } _root.setMaleType(); } else { if (option == 'Eyewear') { _root.char.head.eyewear.nextFrame(); } else { if (option == 'Chest Items') { _root.char.chest.scarf.nextFrame(); } else { if (option == 'Bra') { _root.char.chest.bra.nextFrame(); } else { if (option == 'Hairbow') { _root.char.head.hairbow.nextFrame(); } else { if (option == 'Longsword') { _root.char.chest.sword.nextFrame(); } else { if (option == 'Blush') { _root.char.head.blush.nextFrame(); } else { if (option == 'Stockings') { 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 == 'Pubes (Groin)') { _root.char.groin.pubes.pubes.nextFrame(); _root.char.vulvaupper.pubes.pubes.nextFrame(); } else { if (option == 'Ballgag') { if (_root.Ballgag == 2) { _root.Ballgag = 1; } else { if (_root.Ballgag == 1) { _root.Ballgag = 2; } } _root.char.head.ballgag.gotoAndStop(Ballgag); } else { if (option == 'Hot Swap') { _root.hotswap.nextFrame(); } else { if (option == 'Lighting') { _root.lighting.nextFrame(); } else { if (option == 'Background') { _root.char.bg.nextFrame(); } else { if (option == 'Corset') { _root.char.tummy.corset.nextFrame(); } else { if (option == 'Blindfold') { 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); } else { if (option == 'Wings') { if (Wings == 2) { Wings = 1; } else { Wings = 2; } _root.char.chest.wings.gotoAndStop(Wings); } } } } } } } } } } } } } } } } } } } } } } 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 (CharacterSkin == 1 || CharacterSkin == 5) { Wings = 1; } else { Wings = 2; } _root.char.chest.wings.gotoAndStop(Wings); _root.char.chest.wings.wings.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; var directorEyeballs = 0; var directorEyeballsThreshold = 200; var directorEyeballsPosition = 0; var directorEyeballsPositionMAX = 10; var directorEyeballsPositionMIN = -10; var directorEyeballsFade = 0; var directorMouth = 0; var directorMouthThreshold = 300; this.char.bg.gotoAndStop(sexScene); var CharacterSkin = charSelected; var maleType = 1; var Wings = 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 3444 { } movieClip 3447 { frame 3 { gotoAndStop(1); } } movieClip 3449 { frame 1 { gotoAndStop(2); } } movieClip 3451 { } movieClip 3453 { } movieClip 3455 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3457 { frame 1 { gotoAndStop(2); } } movieClip 3459 { } movieClip 3461 { } movieClip 3463 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3465 { } movieClip 3467 { } movieClip 3469 { } movieClip 3471 { } movieClip 3472 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3474 { } movieClip 3476 { } movieClip 3478 { } movieClip 3480 { } movieClip 3481 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3488 { frame 1 { gotoAndStop(_root.CharacterSkin + 1); } } movieClip 3489 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 3491 { } movieClip 3492 { frame 1 { stop(); } frame 4 { gotoAndStop(1); } } movieClip 3494 { } movieClip 3496 { } movieClip 3498 { } button 3499 { on (release) { _root.moveDemHooves = true; } } movieClip 3504 { frame 1 { stop(); } frame 5 { gotoAndStop(1); } } movieClip 3510 { frame 1 { stop(); } frame 6 { gotoAndStop(1); } } movieClip 3511 { } movieClip 3513 { } movieClip 3515 { } movieClip 3517 { } movieClip 3520 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 3522 { } movieClip 3524 { } movieClip 3526 { } movieClip 3527 { } movieClip 3529 { } movieClip 3531 { } movieClip 3533 { } movieClip 3535 { } movieClip 3537 { } movieClip 3539 { } movieClip 3540 { } movieClip 3542 { } movieClip 3544 { } movieClip 3546 { } movieClip 3548 { } movieClip 3550 { } movieClip 3552 { } movieClip 3553 { } movieClip 3560 { } movieClip 3567 { frame 1 { gotoAndStop(_root.CharacterSkin + 'a'); } } movieClip 3569 { } movieClip 3571 { } movieClip 3573 { } movieClip 3575 { } movieClip 3576 { frame 33 { gotoAndStop(1); } frame 64 { gotoAndStop(1); } frame 85 { gotoAndStop(1); } } movieClip 3578 { } movieClip 3580 { } movieClip 3582 { } movieClip 3584 { } movieClip 3585 { frame 33 { gotoAndStop(1); } frame 64 { gotoAndStop(1); } frame 85 { gotoAndStop(1); } } movieClip 3587 { } movieClip 3589 { } movieClip 3591 { } movieClip 3593 { } movieClip 3594 { frame 33 { gotoAndStop(1); } frame 64 { gotoAndStop(1); } frame 85 { gotoAndStop(1); } } movieClip 3596 { } movieClip 3598 { } movieClip 3600 { } movieClip 3602 { } movieClip 3603 { frame 33 { gotoAndStop(1); } frame 64 { gotoAndStop(1); } frame 85 { gotoAndStop(1); } } movieClip 3605 { } movieClip 3607 { } movieClip 3609 { } movieClip 3611 { } movieClip 3612 { frame 33 { gotoAndStop(1); } frame 64 { gotoAndStop(1); } frame 85 { gotoAndStop(1); } } movieClip 3614 { } movieClip 3616 { } movieClip 3618 { } movieClip 3620 { } movieClip 3621 { frame 33 { gotoAndStop(1); } frame 64 { gotoAndStop(1); } frame 85 { gotoAndStop(1); } } movieClip 3622 { frame 2 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } movieClip 3628 { } movieClip 3633 { frame 1 { stop(); } frame 6 { gotoAndStop(1); } } movieClip 3634 { frame 1 { gotoAndStop(_root.Stockings); } frame 7 { gotoAndStop(1); } } movieClip 3650 { instance pubes of movieClip 3634 { onClipEvent (release) { _root.char.groin.pubes.nextFrame(); _root.char.vulvaupper.pubes.nextFrame(); } } } movieClip 3652 { } movieClip 3654 { } movieClip 3656 { } movieClip 3659 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3662 { } movieClip 3664 { } movieClip 3666 { } movieClip 3669 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3670 { } movieClip 3673 { } movieClip 3675 { } movieClip 3677 { } movieClip 3680 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3682 { } movieClip 3684 { } movieClip 3686 { } movieClip 3689 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3690 { } movieClip 3697 { } movieClip 3704 { } movieClip 3711 { } movieClip 3713 { } movieClip 3715 { } movieClip 3717 { } movieClip 3720 { } movieClip 3722 { } movieClip 3724 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3726 { } movieClip 3728 { } movieClip 3730 { } movieClip 3732 { } movieClip 3733 { } movieClip 3735 { } movieClip 3737 { } movieClip 3739 { } movieClip 3741 { } movieClip 3744 { } movieClip 3746 { } movieClip 3748 { } movieClip 3750 { } movieClip 3752 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3755 { } movieClip 3761 { frame 1 { gotoAndStop(_root.CharacterSkin + 'a'); } } movieClip 3768 { } movieClip 3772 { } movieClip 3778 { } movieClip 3786 { } movieClip 3804 { } movieClip 3807 { frame 2 { stop(); } frame 27 { gotoAndStop(2); } frame 47 { gotoAndStop(2); } } movieClip 3815 { } movieClip 3833 { } movieClip 3836 { frame 2 { stop(); } frame 27 { gotoAndStop(2); } frame 47 { gotoAndStop(2); } } movieClip 3844 { } movieClip 3862 { } movieClip 3865 { frame 2 { stop(); } frame 27 { gotoAndStop(2); } frame 47 { gotoAndStop(2); } } movieClip 3873 { } movieClip 3891 { } movieClip 3894 { frame 2 { stop(); } frame 27 { gotoAndStop(2); } frame 47 { gotoAndStop(2); } } movieClip 3902 { } movieClip 3920 { } movieClip 3923 { frame 2 { stop(); } frame 27 { gotoAndStop(2); } frame 47 { gotoAndStop(2); } } movieClip 3931 { } movieClip 3949 { } movieClip 3952 { frame 2 { stop(); } frame 27 { gotoAndStop(2); } frame 47 { gotoAndStop(2); } } movieClip 3953 { frame 2 { stop(); } } movieClip 3981 { } movieClip 3984 { frame 1 { stop(); } frame 31 { gotoAndStop(1); } frame 49 { gotoAndStop(1); } frame 77 { gotoAndStop(1); } } movieClip 4015 { } movieClip 4018 { frame 1 { stop(); } frame 31 { gotoAndStop(1); } frame 49 { gotoAndStop(1); } frame 77 { gotoAndStop(1); } } movieClip 4049 { } movieClip 4052 { frame 1 { stop(); } frame 31 { gotoAndStop(1); } frame 49 { gotoAndStop(1); } frame 77 { gotoAndStop(1); } } movieClip 4083 { } movieClip 4086 { frame 1 { stop(); } frame 31 { gotoAndStop(1); } frame 49 { gotoAndStop(1); } frame 77 { gotoAndStop(1); } } movieClip 4117 { } movieClip 4120 { frame 1 { stop(); } frame 31 { gotoAndStop(1); } frame 49 { gotoAndStop(1); } frame 77 { gotoAndStop(1); } } movieClip 4151 { } movieClip 4154 { frame 1 { stop(); } frame 31 { gotoAndStop(1); } frame 49 { gotoAndStop(1); } frame 77 { gotoAndStop(1); } } movieClip 4155 { frame 2 { stop(); } } movieClip 4157 { } movieClip 4159 { } movieClip 4161 { } movieClip 4162 { } movieClip 4165 { } movieClip 4167 { } movieClip 4169 { } movieClip 4170 { } movieClip 4172 { } movieClip 4174 { } movieClip 4176 { } movieClip 4178 { } movieClip 4180 { } movieClip 4182 { } movieClip 4183 { frame 1 { stop(); } } movieClip 4185 { } movieClip 4187 { } movieClip 4189 { } movieClip 4190 { } movieClip 4192 { } movieClip 4194 { } movieClip 4196 { } movieClip 4198 { } movieClip 4199 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 4201 { } movieClip 4203 { } movieClip 4205 { } movieClip 4207 { } movieClip 4208 { } movieClip 4210 { } movieClip 4212 { } movieClip 4214 { } movieClip 4216 { } movieClip 4217 { } movieClip 4219 { frame 1 { gotoAndStop(2); } } movieClip 4221 { } movieClip 4223 { } movieClip 4224 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 4226 { frame 1 { gotoAndStop(2); } } movieClip 4228 { } movieClip 4230 { } movieClip 4231 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 4233 { } movieClip 4235 { } movieClip 4237 { } movieClip 4242 { } movieClip 4246 { frame 1 { gotoAndStop(_root.CharacterSkin + 1); } } movieClip 4250 { frame 1 { gotoAndStop(_root.StockingsType); } frame 3 { gotoAndStop(1); } } movieClip 4251 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 4253 { } movieClip 4255 { } movieClip 4257 { } movieClip 4264 { frame 1 { gotoAndStop(_root.CharacterSkin + 1); } } movieClip 4268 { frame 1 { gotoAndStop(_root.StockingsType); } frame 3 { gotoAndStop(1); } } movieClip 4269 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 4270 { frame 1 { this.horseshoe._alpha = _root.horseshoeAlpha; } frame 3 { this.horseshoe._alpha = _root.horseshoeAlpha; } frame 5 { this.horseshoe._alpha = _root.horseshoeAlpha; } } movieClip 4272 { } movieClip 4274 { } movieClip 4276 { } movieClip 4283 { frame 1 { gotoAndStop(_root.CharacterSkin + 1); } } movieClip 4287 { frame 1 { gotoAndStop(_root.StockingsType); } frame 3 { gotoAndStop(1); } } movieClip 4288 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 4290 { } movieClip 4292 { } movieClip 4294 { } movieClip 4298 { frame 1 { gotoAndStop(_root.StockingsType); } frame 3 { gotoAndStop(1); } } movieClip 4299 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 4300 { frame 1 { this.horseshoe._alpha = _root.horseshoeAlpha; } frame 3 { this.horseshoe._alpha = _root.horseshoeAlpha; } frame 5 { this.horseshoe._alpha = _root.horseshoeAlpha; } } movieClip 4302 { } movieClip 4304 { } movieClip 4305 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 4307 { } movieClip 4309 { } movieClip 4310 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 4312 { } movieClip 4314 { } movieClip 4316 { } movieClip 4318 { } movieClip 4319 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 4321 { frame 1 { gotoAndStop(2); } } movieClip 4323 { } movieClip 4325 { } movieClip 4326 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 4328 { frame 1 { gotoAndStop(2); } } movieClip 4330 { } movieClip 4332 { } movieClip 4333 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 4335 { } movieClip 4336 { 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.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.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 4337 { frame 1 { stop(); } frame 12 { gotoAndStop(1); } frame 15 { gotoAndStop(1); } } movieClip 4342 { frame 1 { stop(); } } button 4343 { on (release) { _root.showOptions(); } on (rollOver) { _root.hoverText = 'Extras'; } on (rollOut) { _root.hoverText = ''; } } movieClip 4345 { frame 1 { var dialogueStyle = ''; if (_root.raunchyText == 1) { dialogueStyle = 'Raunchy'; } else { dialogueStyle = 'Normal'; } } } movieClip 4349 { frame 1 { stop(); var Descript = ''; } frame 5 { stop(); } } movieClip 4352 { 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 4354 { } button 4355 { on (release) { _root.changePhase('idle', 1); } } button 4357 { on (release) { _root.changePhase('tease', 1); } } button 4360 { on (release) { if (_root.PhaseType == 'pussy') { _root.PhaseType = 'anal'; } else { _root.PhaseType = 'pussy'; } _root.navigation.navigation.phasetype.gotoAndStop(_root.PhaseType); } } button 4363 { on (release) { _root.changePhase('fuck', 1); } } button 4365 { on (release) { if (!ayyyy) { ayyyy = true; if (_root.FAPMODE == 1) { _root.fader.gotoAndPlay('fadeOut'); _root.fadeOutTarget = 'title'; } else { _root.fader.gotoAndPlay('fadeOut'); _root.fadeOutTarget = 'game'; _root.loadGame = true; } } } } button 4367 { on (release) { _root.changePhase('fuck', 2); } } button 4369 { on (release) { _root.changePhase('fuck', 3); } } movieClip 4373 { frame 1 { gotoAndStop(_root.PhaseType); } } movieClip 4379 { frame 1 { gotoAndStop(_root.Phase + _root.PhaseSpeed); } } movieClip 4380 { } movieClip 4383 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } button 4386 { on (release) { _root.CharacterSkin = 0; _root.recolorEveryPart(_root.CharacterSkin); _root.directorEyeballsPosition = 0; } } button 4387 { on (release) { _root.CharacterSkin = 1; _root.recolorEveryPart(_root.CharacterSkin); _root.directorEyeballsPosition = 0; } } button 4388 { on (release) { _root.CharacterSkin = 2; _root.recolorEveryPart(_root.CharacterSkin); _root.directorEyeballsPosition = 0; } } button 4389 { on (release) { _root.CharacterSkin = 3; _root.recolorEveryPart(_root.CharacterSkin); _root.directorEyeballsPosition = 0; } } button 4391 { on (release) { _root.CharacterSkin = 4; _root.recolorEveryPart(_root.CharacterSkin); _root.directorEyeballsPosition = 0; } } button 4392 { on (release) { _root.CharacterSkin = 5; _root.recolorEveryPart(_root.CharacterSkin); _root.directorEyeballsPosition = 0; } } movieClip 4394 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } button 4396 { on (release) { _root.CharacterSkin = 0; _root.recolorEveryPart(_root.CharacterSkin); } } button 4397 { on (release) { _root.CharacterSkin = 1; _root.recolorEveryPart(_root.CharacterSkin); } } button 4398 { on (release) { _root.CharacterSkin = 2; _root.recolorEveryPart(_root.CharacterSkin); } } button 4399 { on (release) { _root.CharacterSkin = 3; _root.recolorEveryPart(_root.CharacterSkin); } } movieClip 4401 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 4406 { frame 34 { stop(); } frame 47 { stop(); _root.gotoAndStop(_root.fadeOutTarget); } frame 58 { stop(); } } movieClip 4408 { frame 1 { var countHorse; var psudeoRandom = 0; var psudeoRandom2 = 0; } frame 4 { _root.directorEyeballs += _root.randRange(2, 4); if (_root.directorEyeballs > _root.directorEyeballsThreshold) { x = _root.randRange(-1, 1); _root.directorEyeballsFade += _root.randRange(5, 10); _root.directorEyeballs = 0; } if (_root.directorEyeballsFade > 0) { if (x == 1 && _root.directorEyeballsPosition < _root.directorEyeballsPositionMAX) { _root.directorEyeballsPosition += x * _root.directorEyeballsFade * 0.05; _root.char.head.eyeballs._y += x * _root.directorEyeballsFade * 0.05; } if (x == -1 && _root.directorEyeballsPosition > _root.directorEyeballsPositionMIN) { _root.directorEyeballsPosition += x * _root.directorEyeballsFade * 0.05; _root.char.head.eyeballs._y += x * _root.directorEyeballsFade * 0.05; } --_root.directorEyeballsFade; } _root.directorMouth += _root.randRange(2, 4); if (_root.directorMouth > _root.directorMouthThreshold) { _root.char.head.jaw.play(); _root.directorMouth = 0; trace('lmao'); } gotoAndPlay(2); } }




http://swfchan.com/34/169927/info.shtml
Created: 8/8 -2019 18:03:14 Last modified: 8/8 -2019 18:03:14 Server time: 29/04 -2024 23:28:48