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

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

Cloptopia_v1.00.swf

This is the info page for
Flash #168697

(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 18 { } movieClip 21 specialistIcon { } movieClip 23 sparklePop { } movieClip 27 { } movieClip 29 { } movieClip 31 { } movieClip 32 { } movieClip 38 { frame 1 { stop(); } } movieClip 40 { frame 1 { gotoAndStop(2); } } movieClip 42 { frame 1 { stop(); } } movieClip 44 { } movieClip 53 { frame 1 { stop(); } frame 9 { gotoAndStop(1); } } movieClip 56 { } movieClip 58 { } movieClip 60 { } movieClip 62 { } movieClip 64 { } movieClip 66 { } movieClip 67 { frame 1 { stop(); } } movieClip 72 { } movieClip 74 { } movieClip 76 { } movieClip 78 { } movieClip 79 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { stop(); } frame 30 { stop(); } frame 40 { stop(); } } movieClip 87 { 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 105 { frame 1 { stop(); } frame 7 { stop(); } frame 13 { stop(); } frame 19 { stop(); } frame 28 { gotoAndStop(1); } } movieClip 108 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 119 { frame 1 { stop(); } frame 12 { gotoAndStop(1); } } movieClip 130 { frame 1 { stop(); } frame 11 { gotoAndStop(1); } } movieClip 133 { } movieClip 135 { } movieClip 137 { } movieClip 139 { } movieClip 141 { } movieClip 142 { } movieClip 144 { } movieClip 146 { } movieClip 148 { } movieClip 150 { } movieClip 152 { } movieClip 153 { frame 1 { stop(); } } movieClip 155 { } movieClip 157 { } movieClip 159 { frame 1 { function Director_EyesLook(number) { if (_root.EyesReBusy == false) { _root.EyesReBusy = true; if (_root.EyesRe == 0) { _parent.eyeballs.gotoAndPlay('look' + number); _root.EyesRe = 1; } else { _parent.eyeballs.play(); _root.EyesRe = 0; } } } var countHorse; var psudeoRandom = 0; } frame 10 { x = _root.randRange(0, 100 + psudeoRandom * 3); if (x > 97) { Director_EyesLook(_root.randRange(1, 6)); psudeoRandom = -10; } else { ++psudeoRandom; } gotoAndPlay(2); } } movieClip 161 { } movieClip 165 { } movieClip 166 { frame 1 { stop(); } frame 7 { stop(); } frame 16 { stop(); } frame 25 { stop(); } frame 35 { stop(); } } movieClip 173 { frame 9 { x = _root.randRange(0, 100); if (x < 95) { gotoAndPlay(2); } else { gotoAndPlay('blink'); } } } movieClip 186 { frame 1 { stop(); } frame 7 { stop(); } frame 13 { stop(); } frame 19 { stop(); } } movieClip 188 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 190 { } movieClip 195 { } movieClip 196 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { stop(); } frame 30 { stop(); } } movieClip 212 { frame 9 { x = _root.randRange(0, 100); if (x < 95) { gotoAndPlay(2); } else { gotoAndPlay('blink'); } } frame 59 { gotoAndPlay(2); } } movieClip 214 { } movieClip 216 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 218 { } movieClip 221 { } movieClip 225 { } movieClip 226 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { stop(); } frame 30 { stop(); } frame 40 { stop(); } frame 50 { stop(); } } movieClip 239 { 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 258 { } movieClip 264 { frame 1 { stop(); } frame 7 { stop(); } frame 13 { stop(); } frame 19 { stop(); } } movieClip 266 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 268 { } movieClip 271 { } movieClip 273 { } movieClip 276 { } movieClip 279 { } movieClip 281 { } movieClip 284 { } movieClip 287 { } // unknown tag 88 length 208 movieClip 293 { } movieClip 295 { frame 1 { stop(); } instance of movieClip 161 { onClipEvent (release) { this._parent.eyeballs.play(); } } instance of movieClip 161 { onClipEvent (release) { this._parent.jaw.play(); } } } movieClip 297 pHead { } movieClip 301 { } movieClip 304 { } movieClip 305 { } movieClip 307 perk17 { } movieClip 308 perkBtn17 { } movieClip 311 { } movieClip 312 { } movieClip 314 perk16 { } movieClip 315 perkBtn16 { } movieClip 320 { } movieClip 321 { } movieClip 330 { } movieClip 332 { } movieClip 333 { } movieClip 335 perk15 { } movieClip 336 perkBtn15 { } movieClip 339 { } movieClip 340 { } movieClip 342 perk14 { } movieClip 343 perkBtn14 { } movieClip 345 { } movieClip 347 { } movieClip 349 { } movieClip 351 { } movieClip 353 { } movieClip 354 { } movieClip 356 perk13 { } movieClip 357 perkBtn13 { } movieClip 360 { } movieClip 361 { } movieClip 363 perk12 { } movieClip 364 perkBtn12 { } movieClip 367 { } movieClip 368 { } movieClip 370 perk11 { } movieClip 371 perkBtn11 { } movieClip 373 { } movieClip 375 perk10 { } movieClip 376 perkBtn10 { } movieClip 379 { } movieClip 380 { } movieClip 382 perk9 { } movieClip 383 perkBtn9 { } movieClip 385 { } movieClip 387 perk8 { } movieClip 388 perkBtn8 { } movieClip 391 { } movieClip 393 { } movieClip 395 { } movieClip 396 { } movieClip 397 { } movieClip 399 perk7 { } movieClip 400 perkBtn7 { } movieClip 402 { } movieClip 404 perk6 { } movieClip 405 perkBtn6 { } movieClip 407 perk5 { } movieClip 408 perkBtn5 { } movieClip 412 { } movieClip 413 { } movieClip 414 { } movieClip 416 perk4 { } movieClip 417 perkBtn4 { } movieClip 420 { } movieClip 421 { } movieClip 423 perk3 { } movieClip 424 perkBtn3 { } movieClip 427 { } movieClip 428 { } movieClip 430 perk2 { } movieClip 431 perkBtn2 { } movieClip 433 { } movieClip 435 perk1 { } movieClip 436 perkBtn1 { } movieClip 438 Longsword { } movieClip 440 Stockings { } movieClip 442 Pubes (Groin) { } movieClip 444 Lighting { } movieClip 450 { } movieClip 452 { frame 1 { gotoAndStop(_root.CharacterSkin + 1); } } movieClip 453 Horseshoes { } movieClip 455 Hairbow { } movieClip 457 Futa Mode { } movieClip 459 Mirror Scene { } movieClip 461 Eyewear { } movieClip 463 example { } movieClip 465 Crotch Boobs { } movieClip 467 Chest Items { } movieClip 469 Bra { } movieClip 471 Blush { } movieClip 473 Ballgag { } movieClip 476 { } movieClip 478 Background { } movieClip 480 nodeTopReg { } movieClip 483 { } movieClip 485 { } movieClip 487 { } movieClip 488 { frame 1 { stop(); } frame 61 { gotoAndPlay('loop'); } } movieClip 490 { } movieClip 497 { frame 1 { stop(); } } movieClip 500 { } movieClip 503 { } movieClip 506 { } movieClip 509 { } movieClip 512 { } movieClip 515 { } movieClip 518 { } movieClip 521 { } movieClip 524 { } movieClip 527 { } movieClip 531 { } movieClip 532 { } movieClip 533 { } movieClip 536 { } movieClip 537 { instance timer of movieClip 536 { 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; } a.Text = _root.modeList[a.Catalog][0][1]; a.BuildText = _root.modeList[a.Catalog][0][0].toUpperCase(); 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 538 { frame 1 { stop(); } } movieClip 542 { } movieClip 544 { } movieClip 547 { } movieClip 549 { } movieClip 552 { } movieClip 554 { } movieClip 557 { } movieClip 559 { } movieClip 563 { } movieClip 565 { frame 1 { stop(); } } movieClip 572 { } movieClip 574 { } movieClip 576 { } movieClip 578 { frame 1 { stop(); } } movieClip 581 { } movieClip 584 { } movieClip 587 { } movieClip 590 { } movieClip 591 { frame 1 { stop(); } } movieClip 594 { } movieClip 597 { frame 1 { stop(); } } movieClip 600 { } movieClip 603 { } movieClip 606 { } movieClip 609 { frame 1 { stop(); } } movieClip 612 { } movieClip 615 { } movieClip 618 { } movieClip 621 { frame 1 { stop(); } } movieClip 624 { } movieClip 629 { } movieClip 632 { } movieClip 635 { } movieClip 638 { } movieClip 641 { } movieClip 642 { } movieClip 643 { frame 1 { stop(); } } movieClip 648 { } movieClip 651 { } movieClip 653 { } movieClip 656 { } movieClip 659 { } movieClip 661 { } movieClip 665 { } movieClip 668 { } movieClip 669 { frame 1 { stop(); } } movieClip 672 { } movieClip 675 { } movieClip 678 { } movieClip 681 { } movieClip 682 { frame 1 { stop(); } } movieClip 686 { } movieClip 689 { } movieClip 690 { frame 1 { stop(); } } movieClip 695 { } movieClip 698 { } movieClip 701 { } movieClip 702 { frame 1 { stop(); } } movieClip 706 { } movieClip 708 { } movieClip 712 { } movieClip 713 { frame 1 { stop(); } } movieClip 717 { } movieClip 720 { } movieClip 721 { frame 1 { stop(); } } movieClip 724 { } movieClip 727 { } movieClip 728 { frame 1 { stop(); } } movieClip 733 { frame 1 { if (_root.ShieldLevel >= 100) { gotoAndPlay(20); } } frame 19 { if (_root.ShieldLevel < 100) { gotoAndPlay(1); } else { gotoAndPlay(20); } } frame 80 { gotoAndPlay(20); } } movieClip 736 { } movieClip 739 { } movieClip 740 { frame 1 { stop(); } } movieClip 742 { } movieClip 743 { frame 60 { gotoAndPlay(1); } } movieClip 746 { } movieClip 747 { frame 1 { stop(); } frame 40 { gotoAndPlay(2); } } movieClip 750 { } movieClip 753 { } movieClip 756 { } movieClip 759 { } movieClip 762 { } movieClip 765 { } movieClip 768 { } movieClip 771 { } movieClip 774 { } movieClip 777 { } movieClip 780 { } movieClip 782 { } movieClip 784 { } movieClip 785 { frame 1 { stop(); } } movieClip 788 { frame 1 { stop(); } } movieClip 789 { } movieClip 792 { } movieClip 793 { frame 1 { stop(); } frame 84 { gotoAndStop(1); this._alpha = 0; } } movieClip 794 node { frame 1 { stop(); } instance btnNodeSelect of movieClip 497 { 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 797 { } movieClip 798 leChipWin { } movieClip 800 { } movieClip 802 leChip { } movieClip 804 Hot Swap { } movieClip 806 Anthro Mode { } movieClip 808 snapIcon { } movieClip 811 { } movieClip 812 { } movieClip 814 trait20 { } movieClip 817 { } movieClip 818 { } movieClip 820 trait12 { } movieClip 823 { } movieClip 824 { } movieClip 826 trait19 { } movieClip 828 { } movieClip 830 trait18 { } movieClip 832 { } movieClip 834 trait14 { } movieClip 836 { } movieClip 838 trait16 { } movieClip 841 { } movieClip 842 { } movieClip 844 trait15 { } movieClip 847 { } movieClip 848 { } movieClip 850 trait17 { } movieClip 852 { } movieClip 854 trait13 { } movieClip 856 { } movieClip 858 trait21 { } movieClip 862 { } movieClip 865 { } movieClip 866 { } movieClip 867 trait11 { } movieClip 870 { } movieClip 871 trait10 { } movieClip 874 { } movieClip 875 { } movieClip 877 trait9 { } movieClip 880 { } movieClip 881 { } movieClip 883 trait8 { } movieClip 885 { } movieClip 887 trait7 { } movieClip 889 { } movieClip 891 trait6 { } movieClip 894 { } movieClip 895 { } movieClip 897 trait5 { } movieClip 900 { } movieClip 901 trait4 { } movieClip 903 { } movieClip 905 trait3 { } movieClip 907 { } movieClip 909 trait2 { } movieClip 911 { } movieClip 913 trait??? { } movieClip 915 { } movieClip 916 { } movieClip 918 trait1 { } movieClip 924 BoundingBox { } movieClip 926 BrdrShdw { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'shadowColor'); } } movieClip 928 BrdrFace { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'buttonColor'); } } movieClip 929 SimpleButtonDown { } movieClip 931 BrdrBlk { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'borderColor'); } } movieClip 933 BrdrHilght { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'highlightColor'); } } movieClip 934 SimpleButtonIn { } movieClip 935 SimpleButtonUp { } movieClip 936 Defaults { #initclip Object.registerClass('Defaults', mx.skins.halo.Defaults); #endinitclip } movieClip 937 UIObjectExtensions { #initclip Object.registerClass('UIObjectExtensions', mx.core.ext.UIObjectExtensions); #endinitclip } movieClip 938 UIObject { #initclip Object.registerClass('UIObject', mx.core.UIObject); #endinitclip frame 1 { stop(); } } button 941 { on (keyPress '<Tab>') { this.tabHandler(); } } movieClip 942 { #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 943 FocusRect { #initclip Object.registerClass('FocusRect', mx.skins.halo.FocusRect); #endinitclip } movieClip 944 FocusManager { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); #endinitclip frame 1 { stop(); } } movieClip 945 UIComponentExtensions { #initclip Object.registerClass('UIComponentExtensions', mx.core.ext.UIComponentExtensions); #endinitclip } movieClip 946 UIComponent { #initclip Object.registerClass('UIComponent', mx.core.UIComponent); #endinitclip frame 1 { stop(); } } movieClip 947 SimpleButton { #initclip Object.registerClass('SimpleButton', mx.controls.SimpleButton); #endinitclip frame 1 { stop(); } } movieClip 948 Border { #initclip Object.registerClass('Border', mx.skins.Border); #endinitclip frame 1 { stop(); } } movieClip 949 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 950 ButtonSkin { #initclip Object.registerClass('ButtonSkin', mx.skins.halo.ButtonSkin); #endinitclip } movieClip 951 Button { #initclip Object.registerClass('Button', mx.controls.Button); #endinitclip frame 1 { stop(); } instance of movieClip 947 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 952 CustomBorder { #initclip Object.registerClass('CustomBorder', mx.skins.CustomBorder); mx.skins.SkinElement.registerElement('CustomBorder', mx.skins.CustomBorder); #endinitclip frame 1 { } } movieClip 955 ScrollTrack { } movieClip 962 ScrollDownArrowDisabled { } movieClip 964 ScrollThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 966 ScrollThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 967 ScrollDownArrowDown { } movieClip 968 ScrollDownArrowOver { } movieClip 969 ScrollDownArrowUp { } movieClip 975 ScrollThumbBottomDisabled { } movieClip 977 ThumbThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 979 ThumbThemeColor3 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 980 ScrollThumbBottomDown { } movieClip 981 ScrollThumbBottomOver { } movieClip 982 ScrollThumbBottomUp { } movieClip 984 ScrollThumbGripDisabled { } movieClip 986 ThumbThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 987 ScrollThumbGripDown { } movieClip 988 ScrollThumbGripOver { } movieClip 989 ScrollThumbGripUp { } movieClip 991 ScrollThumbMiddleDisabled { } movieClip 992 ScrollThumbMiddleDown { } movieClip 993 { } movieClip 995 { } movieClip 996 ScrollThumbMiddleOver { } movieClip 997 ScrollThumbMiddleUp { } movieClip 998 ScrollThumbTopDisabled { } movieClip 999 ScrollThumbTopDown { } movieClip 1000 ScrollThumbTopOver { } movieClip 1001 ScrollThumbTopUp { } movieClip 1002 ScrollTrackDisabled { } movieClip 1003 ScrollUpArrowDisabled { } movieClip 1004 ScrollUpArrowDown { } movieClip 1005 ScrollUpArrowOver { } movieClip 1006 ScrollUpArrowUp { } movieClip 1007 BtnDownArrow { #initclip Object.registerClass('BtnDownArrow', mx.controls.SimpleButton); #endinitclip } movieClip 1008 BtnUpArrow { #initclip Object.registerClass('BtnUpArrow', mx.controls.SimpleButton); #endinitclip } movieClip 1009 ScrollBarAssets { } movieClip 1010 VScrollBar { #initclip Object.registerClass('VScrollBar', mx.controls.VScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 951 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 947 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 1011 HScrollBar { #initclip Object.registerClass('HScrollBar', mx.controls.HScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 951 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 947 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 1012 UIScrollBar { #initclip Object.registerClass('UIScrollBar', mx.controls.UIScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 1010 VScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 1011 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 hotbarMenu = new Array(112, 113, 114, 115, 116, NaN, NaN, NaN, 120, 121); var keyListener = new Object(); keyListener.onKeyDown = function () { if (Key.getCode() == 80 || Key.getCode() == 32) { _root.pauseGame(); } 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; } 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 1044 { } movieClip 1046 { } movieClip 1048 { } movieClip 1049 { instance of movieClip 1048 { onClipEvent (release) { getURL('http://www.mittsies.com', '_blank'); } } } movieClip 1053 { } movieClip 1055 { } movieClip 1058 { frame 10 { stop(); } } movieClip 1059 { instance loadan of movieClip 1053 { 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 1055 { onClipEvent (enterFrame) { if (_root.percentloaded > 80) { this._alpha = 25 + _root.percentloaded * 0.75 - (_root.percentloaded - 80) * 6; } else { this._alpha = 100; } } } } movieClip 1062 { } movieClip 1063 { } instance cursor of movieClip 1063 { 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 919 __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 920 __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 921 __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 922 __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 1013 __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 1014 __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 1015 __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 1016 __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 1017 __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 1018 __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 1019 __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 1020 __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 1021 __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 1022 __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 1023 __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 1024 __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 1025 __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 1026 __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 1027 __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 1028 __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 1029 __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 1030 __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 1031 __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 1032 __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 1033 __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 1034 __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 1035 __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 1036 __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 1037 __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 1038 __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 { 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: Virgin', '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], [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], [NaN]); var optionsTable = new Array(['Lighting', 'Change the time of day.', 1], ['Horseshoes', 'Clippity Clop.', 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], ['Chest Items', 'Scarf, necklace, etc.', 1], ['Bra', 'Silly pony, that\'s not where bras go!', 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(['Background', 'Change the background setting.', 0], ['Longsword', 'There\'s just something really sexy about steel.', 0], ['Hot Swap', 'Quickly change through characters.', 0], [NaN]); } 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'); } frame 2 { stop(); stopAllSounds(); endGameSession(); var cache = SharedObject.getLocal('user'); var version = 'Alpha v1.00'; var initialization = cache.data.init; if (initialization != 'ran') { 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 1067 { on (release) { play(); } } movieClip 1072 { } movieClip 1078 { frame 11 { stop(); } } movieClip 1084 { } movieClip 1085 { frame 55 { gotoAndPlay('loop1'); } } movieClip 1088 { } movieClip 1099 { } movieClip 1124 { frame 71 { stop(); } } button 1125 { on (release) { _root.gotoAndStop('title'); } } button 1126 { on (release) { getURL('http://www.comdotgame.com/', '_blank'); } } movieClip 1127 { frame 1 { if (_root.cache.data.flushWarning == false) { stop(); _root.cache.flush(1000000); _root.cache.data.flushWarning = true; } else { gotoAndPlay('splash'); } } instance of movieClip 1072 { 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 1143 { } 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(); 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'); 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 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 1147 { } movieClip 1148 { } movieClip 1151 { } movieClip 1154 { } movieClip 1156 { } button 1159 { on (release) { this.warning.gotoAndStop(1); } } movieClip 1160 { instance of movieClip 621 { onClipEvent (load) { gotoAndStop(1); } } instance of movieClip 591 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 591 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 621 { onClipEvent (load) { gotoAndStop(3); } } instance of movieClip 591 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 591 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 591 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 591 { onClipEvent (load) { gotoAndStop(5); } } instance of movieClip 591 { onClipEvent (load) { gotoAndStop(1); } } } button 1163 { on (release) { this.warning.gotoAndStop(6); _root.PaperPosition = 0; } on (rollOver) { descript = 'View Changelog'; } on (rollOut) { descript = ''; } } movieClip 1164 { } button 1165 { 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 1166 { on (release) { this.warning.gotoAndStop(3); } on (rollOver) { descript = 'Customize game settings'; } on (rollOut) { descript = ''; } } button 1167 { 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 1169 { on (release) { getURL('http://www.mittsies.com/', '_blank'); } on (rollOver) { descript = 'Visit Mittsies.com'; } on (rollOut) { descript = ''; } } button 1170 { on (release) { getURL('http://www.comdotgame.com/', '_blank'); } on (rollOver) { descript = 'Visit the COMDOTGAME Website'; } on (rollOut) { descript = ''; } } button 1172 { on (release) { this.warning.gotoAndStop(5); } on (rollOver) { descript = 'will be added later'; } on (rollOut) { descript = ''; } } movieClip 1175 { } movieClip 1179 { } button 1181 { on (release) { this.warning.gotoAndStop(7); } on (rollOver) { descript = 'List of people who worked on this game.'; } on (rollOut) { descript = ''; } } button 1184 { on (release) { this.warning.gotoAndStop(4); } on (rollOver) { descript = 'List of generous patreon supporters.'; } on (rollOut) { descript = ''; } } button 1190 { on (release) { if (_parent._parent.decision != true) { _parent._parent.gotoAndPlay('fadeout'); _parent._parent.decision = true; _root.loadGame = false; } } } button 1191 { on (release) { gotoAndStop(1); } } movieClip 1199 { } movieClip 1208 { instance of movieClip 1199 { 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 1199 { 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 1199 { 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 1199 { 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 1199 { 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 1199 { 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 1199 { 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 1199 { 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 1216 { } movieClip 1219 { } movieClip 1222 { } movieClip 1224 { } movieClip 1226 { } movieClip 1227 { } movieClip 1228 { } movieClip 1232 { } movieClip 1233 { } movieClip 1234 { } movieClip 1237 { } movieClip 1238 { instance Mask of movieClip 1228 { onClipEvent (enterFrame) { this.gotoAndStop(_root.loveDisplay + 1); } } } movieClip 1245 { } button 1251 { on (release) { _root.cache.clear(); _root.gotoAndPlay(1); } } movieClip 1253 { frame 1 { stop(); } } movieClip 1256 { 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 1263 { frame 1 { gotoAndStop(2); } } button 1265 { on (release) { this.warning.gotoAndStop(8); } } movieClip 1266 { 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 1164 { 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 1179 { onClipEvent (load) { if (_root.cache.data.FileExists == true) { this._alpha = 0; } else { this._alpha = 100; } } } instance of movieClip 1256 { 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 1270 { frame 2 { stop(); } frame 23 { stop(); } } movieClip 1272 { frame 2 { var decision = false; if (_root.AlreadyWatchedIntro == true) { if (!mfired) { _root.queuemusikSingle(2); mfired = true; } gotoAndStop('end'); } } frame 29 { stop(); } instance of movieClip 1151 { onClipEvent (release) { _root.slider.play(); } } instance of movieClip 1151 { onClipEvent (release) { _root.slider.gotoAndStop('end'); } } frame 50 { if (!mfired) { _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 1275 { 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 = ''; } } button 1278 { 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 1280 { frame 1 { gotoAndStop(2); } frame 4 { gotoAndStop(2); } } instance musik of movieClip 1280 { onClipEvent (enterFrame) { _root.Musik.setVolume(_root.MusikVolume * _root.MVMaster); } } movieClip 1284 { } movieClip 1286 { } movieClip 1287 { instance of movieClip 1286 { 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 1289 { 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 1290 { 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 1291 { 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 1292 { 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 1293 { 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 1294 { on (rollOver) { descript = 'Your town\'s name!'; } on (rollOut) { descript = ''; } } button 1295 { on (rollOver) { descript = 'Your character\'s name!'; } on (rollOut) { descript = ''; } } movieClip 1298 { } button 1299 { on (rollOver) { StatBracketHint(); } on (rollOut) { descript = ''; } } movieClip 1303 { } button 1304 { 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 1305 { 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 1306 { 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 1307 { 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 1308 { 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 1309 { 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 1310 { 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 1311 { 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 1312 { 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 1313 { 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 1326 { on (press) { _root.colorChangeRed = 1; } on (release) { _root.colorChangeRed = 0; } } button 1327 { on (press) { _root.colorChangeRed = -1; } on (release) { _root.colorChangeRed = 0; } } movieClip 1330 { } movieClip 1333 { 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 1334 { on (press) { _root.colorChangeGreen = 1; } on (release) { _root.colorChangeGreen = 0; } } button 1335 { on (press) { _root.colorChangeGreen = -1; } on (release) { _root.colorChangeGreen = 0; } } button 1337 { on (press) { _root.colorChangeBlue = 1; } on (release) { _root.colorChangeBlue = 0; } } button 1338 { on (press) { _root.colorChangeBlue = -1; } on (release) { _root.colorChangeBlue = 0; } } movieClip 1345 { } movieClip 1348 { } movieClip 1350 { } button 1354 { on (release) { _parent.play(); } } button 1355 { on (release) { _root.gotoAndStop('title'); } } movieClip 1359 { } movieClip 1360 { } movieClip 1361 { } movieClip 1362 { } movieClip 1363 { } movieClip 1364 { } movieClip 1365 { } movieClip 1366 { } movieClip 1367 { } movieClip 1368 { } movieClip 1369 { } movieClip 1370 { } movieClip 1371 { } movieClip 1372 { } movieClip 1373 { } movieClip 1374 { } movieClip 1375 { } movieClip 1376 { } movieClip 1377 { } movieClip 1378 { } movieClip 1379 { } movieClip 1380 { } button 1382 { on (release) { nextFrame(); } } button 1385 { on (release) { prevFrame(); } } movieClip 1390 { frame 1 { stop(); } } movieClip 1392 { 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); 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 will cost a hefty fee to maintain.', '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 lazy, wellfare-loving ponies won\'t make much money for you.', '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 and exchanges 1 point of Charisma for 1 point of Insight.', '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 more things will happen to you, both good and bad; 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!'); } 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 <= 21) { 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; } } } movieClip 1396 { frame 1 { var startresource = 'Starting Resources: Normal'; gotoAndPlay(2); } instance input of movieClip 1392 { onClipEvent (enterFrame) { _root.townName = String(_root.intro.input.townNameInput.text); _root.charName = String(_root.intro.input.charNameInput.text); } } frame 5 { _root.queuemusikSingle(0); } frame 20 { stop(); } frame 42 { _root.resources[0][1] += 10 * _root.StatsLeft; _root.StatsLeft = 0; _root.gotoAndStop('game'); } } movieClip 1402 { } movieClip 1404 { } movieClip 1405 { } movieClip 1407 { } movieClip 1410 { } movieClip 1411 { } movieClip 1413 { } movieClip 1415 { } movieClip 1417 { } movieClip 1419 { } // unknown tag 88 length 67 movieClip 1426 { } button 1430 { on (release) { _root.gotoAndStop('intro'); } } movieClip 1433 { } movieClip 1438 { } movieClip 1440 { } movieClip 1441 { } movieClip 1445 { } movieClip 1450 { } // unknown tag 88 length 39 movieClip 1458 { } movieClip 1460 { frame 1 { gotoAndPlay(2); } frame 4 { _root.queuemusikSingle(1); } frame 38 { stop(); } instance of movieClip 1048 { 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 1466 { } movieClip 1467 { } movieClip 1468 { frame 1 { stop(); } } button 1469 { 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; 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', 150, 0, 0, 75, 64, 230, 0, 6], ['Laboratory', 350, 0, 0, 50, 64, 50, 1, 0], ['Flower Farm', 280, 0, 0, 0, 16, 50, 1, 1], ['Tree House', 40, 0, 0, 10, 32, 50, 1, 2], ['Power Station', 200, 0, 0, 100, 32, 110, 1, 3], ['Sex Factory', 1200, 0, 0, 50, 64, 180, 1, 4], ['Mayor\'s Office', 400, 0, 0, 0, 16, 0, 1, 5], ['Armory', 300, 0, 0, 0, 32, 75, 1, 6], ['Shield Generator', 3000, 0, 0, 250, 128, 230, 1, 7], [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. Increases Bits-Income of ALL homes by 25%. Stacks multiple times.'], ['Latex Gear', 'Manufactures bondage paraphernalia for ponies to enjoy. Increases Love-Magic generation of ALL homes 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. Passively increases the town\'s Defense Rating by 5 per Armory.'], [NaN], [NaN], [NaN]), new Array(['Basic', 'Once activated, this town will be fully protected and an Ascension can take place.'], [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 50% more Happiness.'], [300, 'Aphrodisiacs', 'Stores increase Love-Magic generation of affected Homes.'], [500, 'Bio-Research', '10% of food is converted into Tech each day.'], [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', 'Libraries get a radius. Affected Houses generate free Tech.'], [200, 'Epiphany', 'Permanently increases Max Mana by +10.'], [325, 'Rapid Knowledge', 'Increases Stat-Gain on Rank-Up by 15%.'], [500, 'Cybernetics', 'Permanently increases Insight by +1.'], [750, 'Shield Tech', 'Increases Shield Generation rate by 30%.'], [NaN]); var upgradeLibraryCost = 25; 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.'], [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'); 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][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 CheckSpecialists() { DefenseRatingMod = 0; ScoutDecayRate = 3 + 1.5 * (1 + clockTime / 100); if (perksOwned[15] == 1) { if (EvilData[0] < 50) { EvilData[0] = 50; } } else { if (EvilData[0] < 0) { EvilData[0] = 0; } } if (EvilData[0] > 100) { EvilData[0] = 100; } wumbo = 0; while (wumbo < specialistsTotal) { j = 0; while (j < 5) { if (specialistsStats[wumbo][2] == '') { DefenseRatingMod += 40 + statWillpower * 1.5 + 6 * (specialistsStats[wumbo][1] * specialistsStats[wumbo][1] * 0.1); break; } else { specialistsStats[wumbo][4] = int(8 + 8 * (specialistsStats[wumbo][1] * specialistsStats[wumbo][1] * expGrowth)); } ++j; } ++wumbo; } DefenseRatingMod += 50 * strCount[13][0]; if (perksOwned[1] == 1) { DefenseRatingMod += 25 * strCount[13][0]; } if (perksOwned[13] == 1) { DefenseRatingMod += 6 * TreeCount * 5; } else { DefenseRatingMod += 6 * TreeCount * 1; } if (_root.edictIndustrialActive == 3) { DefenseRatingMod += DefenseRating * 0.5; } 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; } else { if (Threat < 0) { Threat = 0; } } 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') { DefenseRating += _root.randRange(0.35, 1) * (1 + statWillpower * 1.5 / 100) * (1 + specialistsStats[wumbo][1] * 0.2); } else { if (specialistsStats[wumbo][2] == 'snap' + j + 'b') { trainAmount = _root.randRange(0.5, 1.5) * (1 + skill_Discipline * 1.5 / 100) * (1 + statWillpower * 1.5 / 100); specialistsStats[wumbo][3] += trainAmount; if (specialistsStats[wumbo][3] > specialistsStats[wumbo][4]) { specialistsStats[wumbo][3] = 0; ++specialistsStats[wumbo][1]; newMSG('<font color=\'#ffcc00\'>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 weaking 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. Unfortunately they had no Bits.'); EvilData[2] += 5; } else { if (roll == 7) { newMSG('An enemy Changeling messenger was captured, increasing your scout coverage to 100%.'); EvilData[0] = 100; } 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(2 + int(statCuriosity * 0.5), 5 + int(specialistsStats[wumbo][1] * 1.5) + int(statCuriosity * 1.5)); } } } } ++j; } ++wumbo; } EvilData[1] += randRange(1, 2 + 1.5 * (1 + clockTime / 100)); evilCometh = -1; if (traitsOwned[17] == 1) { evilCometh *= 2; } evilCometh -= 2 - 2 * (environment / 100); EvilData[2] += evilCometh; if (EvilData[2] <= 0) { EvilAttacks(); } RefreshSpecalistSelected(); CheckSpecialists(); } function EvilAttacks() { CheckSpecialists(); EvilForce = EvilData[1]; EvilForceDisplay = int(EvilForce / 10); if (_root.pauseDuringMeet == true && _root.gamePaused != true) { _root.pauseGame(); } _root.unlockpop.gotoAndStop(3); _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 - int(statKarma * 0.5)) { ++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[3] + ' 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); --specialistsTotal; _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) { 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 { --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 { 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) { love += popTotal / 80 + EvilData[1] / 40; loveTotal += popTotal / 80 + EvilData[1] / 40; } else { love += popTotal / 160 + EvilData[1] / 80; loveTotal += popTotal / 160 + EvilData[1] / 80; } } } EvilData[1] += _root.randRange(5, 10); EvilData[1] = int(EvilData[1] * (1.1 + ascensionLevel * 0.5)); EvilData[2] = _root.randRange(60, 80) + statWillpower * 4; writeData(); } 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() { 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] = _root.randRange(10, 20); EvilData[2] = _root.randRange(80, 120) + statWillpower * 4; 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 (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]); } } } function statBonusInitialize() { if (_root.loadGame != true) { firstTimeBonuses(); } 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] *= 0.5; buildList[10][1] *= 0.5; buildList[7][4] *= 0.5; buildList[10][4] *= 0.5; } else { buildList[7][1] *= 0.75; buildList[10][1] *= 0.75; buildList[7][4] *= 0.75; 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] *= 0.2; buildList[11][1] *= 0.2; buildList[11][4] *= 0.2; } 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; } 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 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) { if (_root.upgradeLibraryRank >= 4) { _root.StatsLeftPartial += statInsight * 0.05 * 1.15; } else { _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]); if (traitsOwned[3] == 0) { maxHousingEarth = (basePopHouse + 0) * strCount[3][0] + (basePopHouse + 4) * strCount[3][3] + (basePopHouse + 8) * strCount[3][4] + basePopTreeHouse * strCount[9][0]; } if (perksOwned[14] == 1) { maxHousingEarth += 50; } maxHousingPegasus = 0; maxHousingUnicorn = 0; maxHousing = maxHousingEarth + maxHousingPegasus + maxHousingUnicorn; popEarth = population[0][1]; if (perksOwned[14] == 1) { popEarth += 50; } popUnicorn = population[1][1]; popPegasus = population[2][1]; popTotal = popEarth + popUnicorn + popPegasus; popMax = maxHousing; popTotalMax = popTotal + '/' + '\n' + maxHousing; if (traitsOwned[8] == 1) { v2 = 0.5; } else { v2 = 1; } if (traitsOwned[6] == 0) { resourcePerCycle[0][1] = (popTotal / 80 + bonusPerCycle[0][1]) * v2 * factoryBuffIncome * (1 + skill_Leadership * 0.05); } else { resourcePerCycle[0][1] = bonusPerCycle[0][1]; } if (_root.edictResidentialActive == 1) { resourcePerCycle[0][1] *= 0.6; } if (_root.edictResidentialActive == 2) { if (traitsOwned[14] == 1) { resourcePerCycle[0][1] *= 1.2; } else { resourcePerCycle[0][1] *= 1.1; } } 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; } } resourceFoodCycleDisplay = int(resourceFoodCycle - popTotal * v3) * 4; resourceTechCycle = int(resourcePerCycle[2][1] * 16); resourceGemsCycle = int(resourcePerCycle[3][1] * 16); 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); } 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'); } } } } 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; 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) { upgradeHireSpecialistCost = '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) { UnlockOption(1); } if (ascensionLevel >= 1) { UnlockGeneric(5); } if (resources[1][1] >= 5000) { UnlockGeneric(6); } if (resources[3][1] >= 300) { UnlockGeneric(7); } 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) { MiniScene = 2; a.Pop.unlockgallery = 0; UnlocksGallery[0][1] = 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 == 8) { MiniScene = 3; a.Pop.unlockgallery = 1; UnlocksGallery[1][1] = 1; goodToGo = true; bonusGET = 10 * randRange(int(popMax / 40) * (a.Age + 1), int(popMax / 5) * (a.Age + 1)); resources[0][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; goodToGo = true; happiness += randRange(20, 200); resources[0][1] += 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 v19 = int(28 - statCuriosity * 0.5); if (clockTime % v19 == 0 && CurrentEvent == -1 && popTotal >= 32 && randomEventsEnabled == true) { CurrentEvent = randRange(0, _root.eventList1.length - 2); _root.randomEvent.play(); eventPosition = 0; writeRandomEvent(); } housePopper += randRange(5, 10 + statKarma); if (housePopper > 100) { _root.housePop(); housePopper = 0; } if (edictResidentialTimer > 0) { --edictResidentialTimer; } if (edictLibraryTimer > 0) { --edictLibraryTimer; } if (edictIndustrialTimer > 0) { --edictIndustrialTimer; } TickSpecialists(); happinessPerCycle = 0; var v2 = 0; clearHappinessWhat(); if (strCount[7][2] > 0) { happinessPerCycle += -8 * strCount[7][2]; happinessWhat[v2][0] = -8 * strCount[7][2]; happinessWhat[v2][1] = '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 v17 = 1 + 0.25 * ascensionLevel; if (traitsOwned[21] == 1) { v17 *= 0.65; } if (perksOwned[8] == 1) { v17 -= 0.02 * statCharisma; } happinessPerCycle -= (popTotal / 40) * v17; happinessWhat[v2][0] = -(popTotal / 40) * v17; happinessWhat[v2][1] = 'Population Count'; ++v2; if (_root.edictIndustrialActive == 2) { if (traitsOwned[14] == 1) { DefenseRating += 15; } else { DefenseRating += 7.5; } } environmentPerCycle = 0; if (perksOwned[13] == 1) { environmentPerCycle += TreeCount * 1.25; } else { environmentPerCycle += TreeCount; } if (traitsOwned[1] == 0) { if (traitsOwned[5] == 0) { environmentPerCycle += 0.55 * strCount[4][0]; } else { environmentPerCycle += 0.5 * strCount[4][0]; } } 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 += 1; happinessWhat[v2][0] = 1; 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 v18 = 0.5; if (traitsOwned[21] == 1) { v18 *= 2; } if (_root.edictResidentialActive == 3) { if (traitsOwned[14] == 1) { v18 *= 0.25; } else { v18 *= 0.5; } } if (upgradeStoreRank >= 7) { resources[2][1] += resources[1][1] * 0.01; resources[1][1] *= 0.9; } if (perksOwned[7] == 1) { if (resources[3][1] > popTotal / 100) { resources[3][1] -= popTotal / 100; happinessPerCycle += popTotal / 32; happinessWhat[v2][0] = popTotal / 32; happinessWhat[v2][1] = 'Rock Candy Perk'; ++v2; } } if (perksOwned[14] == 1) { resources[1][1] -= (popTotal - 50) * v18; } else { resources[1][1] -= popTotal * v18; } var v3 = 0; var v12 = 100 + int(Karma / 2); i = 0; while (i < strCount[5][0] + strCount[5][1]) { j = randRange(1, v12); if (j >= 100) { u = randRange(1, 4); if (u == 1) { v3 = randRange(6, 13); newMSG('<font color=\'#ffcc00\'>One of your quarry-miners discovered a giant deposit containing ' + v3 + ' Gems!</font>'); resources[4][1] += v3; } else { if (u == 2) { v3 = randRange(50, 150); newMSG('<font color=\'#ffcc00\'>One of your quarry-miners discovered a rare mineral valued at ' + v3 + ' Bits!</font>'); resources[0][1] += v3; } else { if (u == 3) { v3 = randRange(1, 25); newMSG('<font color=\'#7F4AFF\'>There seems to be a spooky ghost haunting one of your Quarries. Uh oh.</font>'); happiness -= v3; 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) { v3 = randRange(10, 50 + int(resources[1][1] * 0.33)); if (resources[1][1] >= v3) { resources[1][1] -= v3; newMSG('<font color=\'#FF0000\'>The creatures took ' + v3 + ' 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) { v3 = randRange(10, 10 + int(resources[0][1] * 0.2)); if (resources[1][1] >= v3) { resources[1][1] -= v3; newMSG('<font color=\'#FF0000\'>The creatures took ' + v3 + ' 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; } j = randRange(1, v12); if (j >= 98 && popTotal > 50) { u = randRange(1, 10); 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.'); love += 1; loveTotal += 1; } else { newMSG('A household hosted a casual meet and greet that raised everyone\'s spirits.'); happiness += 1; } } if (u == 2) { if (happiness > 90) { newMSG('Ponies all over ' + townName + ' are talking about how great the atmosphere is!'); love += 2; loveTotal += 2; } else { if (happiness < 50) { 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; } } } var v6 = 0; var v15 = 0; var v9 = 0; var v8 = 0; var v14 = false; var v4 = 1; var v13 = false; var v5 = 1 * (1 + skill_Knowledge * 0.05) * (1 + statInsight * 0.2); if (traitsOwned[9] == 1) { v5 = 1.4; } 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 v16 = v2; if (popTotal >= 200) { factoryBuffIncome = 1 + 0.25 * strCount[11][0]; factoryBuffLove = 1 + 0.25 * strCount[11][1]; } else { factoryBuffIncome = 1; factoryBuffLove = 1; } i = nodeDepthInitial + 1; while (i < nodeDepth + 1) { v2 = v16; a = _root.world['node' + i]; loveBuff = 1 + ascensionLevel * 1.25; if (traitsOwned[6] == 1) { loveBuff += 1; } if (strCount[0][0] > 0) { loveBuff += 0.1; } if (traitsOwned[9] == 1) { loveBuff *= 0.9; } love += (a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove; loveTotal += (a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove; if (a.Catalog != -1) { if (a.Catalog == 7) { if (a.ModeInt == 0 && a.Power >= 3) { _root.bonusPerCycle[2][1] += 0.5 * v5; } if (a.ModeInt == 1 && a.Power >= 3) { if (environment < 200) { environment += 0.25; } } if (a.ModeInt == 2 && a.Power >= 3) { _root.bonusPerCycle[2][1] += 0.75 * v5; } } 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 == 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 (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.edictResidentialActive == 4) { if (traitsOwned[14] == 1) { if (traitsOwned[19] != 1) { happinessPerCycle += 2 * (a.Ponies[0] / 64); happinessWhat[v2][0] += 2 * a.Ponies[0] / 64; } love += 2 * (a.Ponies[0] / 128) * factoryBuffLove; loveTotal += 2 * (a.Ponies[0] / 128); } else { if (traitsOwned[19] != 1) { happinessPerCycle += a.Ponies[0] / 64; happinessWhat[v2][0] += a.Ponies[0] / 64; } love += (a.Ponies[0] / 128) * factoryBuffLove; loveTotal += a.Ponies[0] / 128; } happinessWhat[v2][1] = 'Freedom Week Edict'; ++v2; } if (_root.upgradeStoreRank >= 2) { _root.bonusPerCycle[1][1] += 0.25; } j = randRange(1, v12); if (j >= 95 && happiness > 90 && v13 == false) { 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) { v3 = 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 ' + v3 + ' Bits to ' + townName + '\'s treasury.</font>'); resources[0][1] += v3; } if (u == 3) { v3 = 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 ' + v3 + ' to your town\'s stockpile.</font>'); resources[1][1] += v3; } if (u == 4) { v3 = randRange(1 * (a.Age + 1), (loveToRank / 20) * (a.Age + 1)); newMSG('<font color=\'#ffcc00\'>One of your ' + a.Name + 's has generated an extra ' + v3 + ' Love Magic. They\'re really frisky this week!</font>'); love += v3; loveTotal += v3; } if (u == 5) { newMSG('Citizens of ' + townName + ' seem to be in very high spirits lately.'); } v13 = true; } var v7 = 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); } v7 = true; } if (a.Buffs[0][1] > 0 && v7 == 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'; } } ++v2; if (a.Buffs[0][2] > 0 && v7 == 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'; } } ++v2; if (a.Buffs[4][0] > 0) { if (traitsOwned[5] == 1) { love += (a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove * 1.1; loveTotal += (a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove * 1.1; } else { love += (a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove; loveTotal += (a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove; } } v7 = false; 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]; love += (a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove * 0.33; loveTotal += (a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove * 0.33; happinessWhat[v2][0] += 0.03125 * a.Ponies[0]; happinessWhat[v2][1] = 'Tavern Bonus'; } ++v2; if (a.Buffs[6][1] > 0 && v7 == false) { happinessPerCycle += 0.03125 * a.Ponies[0]; love += (a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove * 0.5; loveTotal += (a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove * 0.5; happinessWhat[v2][0] += 0.03125 * a.Ponies[0]; happinessWhat[v2][1] = 'Tavern Bonus'; } ++v2; if (a.Buffs[6][2] > 0 && v7 == false) { love += (a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove; loveTotal += (a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove; } v7 = 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.046875 * a.Ponies[0] * Penalty; happinessWhat[v2][0] -= 0.046875 * a.Ponies[0] * Penalty; happinessWhat[v2][1] = 'Too many Stores Penalty'; } if (upgradeStoreRank >= 6) { love += (a.Ponies[0] / 800) * (happiness / 100) * loveBuff * factoryBuffLove; loveTotal += (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 && v7 == false) { happinessPerCycle -= 0.03125 * a.Ponies[0] * Penalty; happinessWhat[v2][0] -= 0.03125 * a.Ponies[0] * Penalty; happinessWhat[v2][1] = 'No Store Penalty'; } ++v2; if (a.Buffs[1][2] > 0 || a.Buffs[1][3] > 0 && v7 == false) { if (_root.upgradeStoreRank >= 5) { bonus = 1.5; } 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 && v7 == 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 (_root.upgradeLibraryRank >= 1) { if (a.Buffs[2][0] + a.Buffs[2][1] + a.Buffs[2][2] > 0) { bonusPerCycle[2][1] += 0.005 * a.Ponies[0] * v4 * v5; v9 += 0.005 * a.Ponies[0] * v4 * v5; } } if (strCount[2][0] > 0) { if (_root.edictLibraryActive != 1) { _root.bonusPerCycle[0][1] += (strCount[2][0] / 40 * (strCount[2][0] + 1)) * a.Ponies[0] * v4; } } 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] * v4 * v5; v9 += (strCount[2][1] / (strCount[2][1] - 0.4 + 0.4 * strCount[2][1])) * 0.0015625 * a.Ponies[0] * v4 * v5; } else { love += (strCount[2][1] / (strCount[2][1] - 0.4 + 0.4 * strCount[2][1])) * 0.0015625 * a.Ponies[0] * v4 * v5; loveTotal += (strCount[2][1] / (strCount[2][1] - 0.4 + 0.4 * strCount[2][1])) * 0.0015625 * a.Ponies[0] * v4 * v5; } } if (strCount[2][2] > 0) { if (_root.edictLibraryActive != 1) { Buffed += 0.5; if (traitsOwned[19] != 1) { happinessPerCycle += (strCount[2][2] / 40 * (strCount[2][2] + 0)) * a.Ponies[0] * v4; happinessWhat[v2][0] += (strCount[2][2] / 40 * (strCount[2][2] + 0)) * a.Ponies[0] * v4; 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; var v10 = _root.randRange(0, 100); if (v10 >= 89) { newMSG('<font color=\'#ff0000\'>' + a.Ponies[0] + ' ponies don\'t want to live next to a Gem Quarry and have left ' + townName + '.</font>'); population[0][1] -= a.Ponies[0]; a.Ponies[0] -= a.Ponies[0]; } Buffed -= 0.5 * 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.5; if (perksOwned[1] == 1) { DefenseRating += 0.25; } } 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.upgradeLibraryRank >= 6) { ShieldLevel += (a.Ponies[0] / 100) * 0.3; } ShieldLevel += a.Ponies[0] / 100; } 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 || v14 == true) { popRange = -16; resources[1][1] = 0; v8 = 1; v14 = true; if (_root.happiness <= 20 + minHappiness) { popRange = -16; v8 = 2; happyWarning = true; } } else { if (_root.happiness <= 20 + minHappiness) { popRange = -16 + statWillpower; if (popRange > -6) { popRange - 6; } v8 = 3; happyWarning = true; } } if (v6 < 0) { if (v6 * -1 > a.Ponies[0]) { v6 = a.Ponies[0] * -1; } v15 -= v6; Buffed = 1; } v6 = int(randRange(0, popRange) * 0.25 * Buffed); population[0][1] += v6; a.Ponies[0] += v6; if (a.Ponies[0] < 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 = v16; 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 (happinessPerCycle < 0) { happinessPerCycle += int(environmentScore * -0.25); happinessWhat[v2][0] += int(environmentScore * -0.25); happinessWhat[v2][1] = 'Industrious Perk'; ++v2; } } if (environmentPerCycle > -1) { environmentPerCycle = 0; } if (environment > 30 && environmentPerCycle < -1) { 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; } } 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; } 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 (EcoWarning == 0) { newMSG('<font color=\'#FF0000\'>Your Environment is completely destroyed.</font>'); EcoWarning = 10; } else { --EcoWarning; } environmentPerCycle = -1; removeKebab = 36 - statWillpower * 0.8; if (removeKebab > 0) { happinessPerCycle -= removeKebab; happinessWhat[v2][0] -= removeKebab; happinessWhat[v2][1] = 'Destroyed Environment'; } } } ++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 = '+' + v9 + ' Tech' + '\n' + '-20 Bits'; a.gR.play(); a.gR._alpha = 100; } } ++i; } } if (v15 != 0) { if (v8 == 1) { newMSG('<font color=\'#ff0000\'>' + v15 + ' 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\'>' + v15 + ' 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\'>' + v15 + ' ponies are highly displeased and have abandoned ' + townName + '!</font>'); } } } } happiness += happinessPerCycle; if (happiness > maxHappiness) { if (traitsOwned[13] != 1) { mana += (happiness - maxHappiness) * 0.1; } if (perksOwned[4] == 1) { love += (happiness - maxHappiness) * 0.1; loveTotal += (happiness - maxHappiness) * 0.1; } happiness = maxHappiness; } else { if (happiness < minHappiness) { happiness = minHappiness; } } if (traitsOwned[13] == 1) { ++mana; } if (StoryFlags[1] == 1) { ++mana; } if (traitsOwned[12] == 1) { mana += TreeCount * 0.025; } refreshResources(); displayHappinessWhat(); if (autoSave == true) { writeData(); } findAllBuffers(); } } function selectStructure(building) { if (_root.buildPlacement == 'blank' && (building.Catalog != -1 || selectBlanks == true || building.AddOn != 1)) { deselectAll(); _root.nodeSelected = building; building.selectArrow.gotoAndPlay('loop'); building.selectArrow._alpha = 100; building.selectOutline._alpha = 100; _root.hudDynamic.gotoAndStop('displayNode'); if (building.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); } } _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) { ++_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.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') { } 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') { 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) { var v3 = int((xTiles + yTiles) / 1 + statKarma * 0.66); var v10; var v2 = 'blank'; var v5 = 40; if (xTiles > yTiles) { v10 = xTiles; } else { v10 = yTiles; } var v9 = _root.world.attachMovie('nodeTopReg', 'nodeFloor' + mapDepth, mapDepth); ++mapDepth; v9._x = xStart * SepStretch - xMapOffset; v9._y = yStart * SepStretch - yMapOffset - 40; v9._xscale = 105 * v10 * SepStretch; v9._yscale = 105 * v10 * SepStretch; x = 0; while (x < xTiles) { y = 0; while (y < yTiles) { v2 = 'blank'; z = randRange(0, 100); if (v3 > 0 && z < v5) { v2 = 'n1'; --v3; } createNode(xStart * SepStretch - xMapOffset + xSep * SepStretch * (x - y), yStart * SepStretch - yMapOffset + ySep * SepStretch * (x + y), v2); ++y; } ++x; } } function checkExtraPostLoad() { if (traitsOwned[10] == 1) { i = 0; while (i <= 2) { h = 1; while (h <= 12) { tradingPrices[i][h] *= 2; ++h; } ++i; } } if (statCuriosity >= 7) { if (perksOwned[16] == 1) { h = 1; while (h <= 3) { tradingPrices[0][h] += 30; tradingPrices[1][h] += 2; ++h; } h = 4; while (h <= 6) { tradingPrices[0][h] += 2; tradingPrices[1][h] += 40; ++h; } h = 7; while (h <= 9) { tradingPrices[0][h] += 30; tradingPrices[1][h] += 2; ++h; } h = 10; while (h <= 12) { tradingPrices[0][h] += 2; tradingPrices[1][h] += 40; ++h; } } else { h = 1; while (h <= 3) { tradingPrices[0][h] += 15; tradingPrices[1][h] += 1; ++h; } h = 4; while (h <= 6) { tradingPrices[0][h] += 1; tradingPrices[1][h] += 20; ++h; } h = 7; while (h <= 9) { tradingPrices[0][h] += 15; tradingPrices[1][h] += 1; ++h; } h = 10; while (h <= 12) { tradingPrices[0][h] += 1; tradingPrices[1][h] += 20; ++h; } } } if (traitsOwned[16] == 1) { SepStretch = 1.5; } if (traitsOwned[18] == 1) { specialistsMax = 1; } if (traitsOwned[19] == 1 && FreeStructure[6] == 0) { FreeStructure[6] = 1; } if (traitsOwned[7] == 1) { if (FreeStructure[0] == 0) { FreeStructure[0] = 1; } } checkDebugCodes(); rollPerks(); checkUpgrades(); findAllBuffers(); } function deleteMap() { while (_root.nodeDepth > nodeDepthInitial) { removeMovieClip(_root.world['node' + _root.nodeDepth]); --_root.nodeDepth; } while (_root.mapDepth > mapDepthInitial) { removeMovieClip(_root.world['nodeFloor' + _root.mapDepth]); --_root.mapDepth; } } function deselectAll() { _root.hudInfo.gambleScene.clearEm(false); _root.nodeSelected.selectArrow.gotoAndStop('disabled'); _root.nodeSelected.selectArrow._alpha = 0; _root.nodeSelected.selectOutline._alpha = 0; if (_root.nodeHighlighted.Catalog == -1) { _root.nodeHighlighted.gotoAndStop(_root.nodeHighlighted.a.Natural); } _root.nodeSelected = NaN; _root.hudDynamic.gotoAndStop(tierSelected); _root.buildPlacement = 'blank'; _root.hudInfo.gotoAndStop(1); _root.hudInfoToggle = 1; _root.showRadius(NaN, -1); _root.hudCard._alpha = 0; _root.hudCard.trade.gotoAndStop(1); _root.hudCard.upgrades.gotoAndStop(1); refreshResources(); } function changeMode(number, node) { AA = node; findBuffers(AA, -1); AA.Mode = _root.modeList[AA.Catalog][number][0]; if (AA.Mode != '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]) { costOK = true; } 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(); if (_root.nodeSelected == building) { _root.nodeDisplayName = building.NameDisplay; _root.nodeDisplayText = building.Text; } 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); } } _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 (_root.gamePaused != true) { _root.gamePaused = true; _root.pauseoverlay.gotoAndStop(2); _root.happyWheel.liquidAnim.stop(); _root.happyWheel.sun.stop(); _root.loveMeter.glow.stop(); _root.loveMeter.glow.bubbles.stop(); _root.loveMeter.Mask.wave.wave.stop(); _root.loveMeter.Mask.wave.b1.stop(); _root.loveMeter.Mask.wave.b2.stop(); _root.loveMeter.Mask.wave.b3.stop(); _root.loveMeter.Mask.wave.b4.stop(); _root.loveMeter.Mask.wave.b5.stop(); } else { if (showHints == 0) { _root.topRightHUD.adviserHintArrow.play(); showHints = 1; } _root.gamePaused = false; _root.pauseoverlay.gotoAndStop(1); _root.happyWheel.liquidAnim.play(); _root.happyWheel.sun.play(); _root.loveMeter.glow.play(); _root.loveMeter.glow.bubbles.play(); _root.loveMeter.Mask.wave.wave.play(); _root.loveMeter.Mask.wave.b1.play(); _root.loveMeter.Mask.wave.b2.play(); _root.loveMeter.Mask.wave.b3.play(); _root.loveMeter.Mask.wave.b4.play(); _root.loveMeter.Mask.wave.b5.play(); } } function Zoomy(Amount) { _root.world.vcam._yscale += Amount; _root.world.vcam._xscale += Amount; if (_root.world.vcam._yscale < minZoom) { _root.world.vcam._yscale = minZoom; _root.world.vcam._xscale = minZoom; } else { if (_root.world.vcam._yscale > maxZoom) { _root.world.vcam._yscale = maxZoom; _root.world.vcam._xscale = maxZoom; } } } function activateEdict(number, type) { edictTimer = 28; if (traitsOwned[14] == 1) { edictTimer = 4; } if (type == 'Residential') { edictResidentialActive = number; edictResidentialTimer = edictTimer; edictResidentalDaysLeft = '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); } } 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.FileExists = true; cache.data.PlayerDataUpgrades[0] = upgradeStoreRank; cache.data.PlayerDataUpgrades[1] = upgradeLibraryRank; cache.data.PlayerDataUpgrades[2] = upgradeMoreTilesRank; cache.data.PlayerDataUpgrades[3] = upgradeHireSpecialistRank; cache.data.PlayerDataEdicts[0] = edictResidentialActive; cache.data.PlayerDataEdicts[1] = edictResidentialTimer; cache.data.PlayerDataEdicts[2] = edictLibraryActive; cache.data.PlayerDataEdicts[3] = edictLibraryTimer; cache.data.PlayerDataEdicts[4] = edictIndustrialActive; cache.data.PlayerDataEdicts[5] = edictIndustrialTimer; cache.data.PlayerDataStats[0] = statCharisma; cache.data.PlayerDataStats[1] = statInsight; cache.data.PlayerDataStats[2] = statCuriosity; cache.data.PlayerDataStats[3] = statKarma; cache.data.PlayerDataStats[4] = statWillpower; cache.data.PlayerDataStats[5] = StatsLeft; cache.data.PlayerDataStats[6] = StatsLeftPartial; cache.data.PlayerDataSkills[0] = skill_Leadership; cache.data.PlayerDataSkills[1] = skill_Diplomacy; cache.data.PlayerDataSkills[2] = skill_Knowledge; cache.data.PlayerDataSkills[3] = skill_Architecture; cache.data.PlayerDataSkills[4] = skill_Discipline; cache.data.PlayerDataSkills[5] = skill_Ecology; cache.data.PlayerDataSkills[6] = skill_Tradecraft; cache.data.StoryFlags; i = 0; while (i < StoryFlags.length) { cache.data.StoryFlags[i] = StoryFlags[i]; ++i; } i = 0; while (i < FreeStructure.length) { cache.data.PlayerDataFreeStructure[i] = FreeStructure[i]; ++i; } i = 0; while (i < traitsOwned.length) { cache.data.PlayerDataTraitsOwned[i] = traitsOwned[i]; ++i; } i = 0; while (i < perksOwned.length) { cache.data.PlayerDataPerksOwned[i] = perksOwned[i]; ++i; } } function readData() { landOwned = cache.data.PlayerData[14]; if (landOwned > 0) { GL = 0; while (GL < landOwned) { generateMap(newLand[GL + 1][0], newLand[GL + 1][1], newLand[GL + 1][2], newLand[GL + 1][3]); ++GL; } } n = nodeDepthInitial + 1; while (n < nodeDepth + 1) { a = _root.world['node' + n]; m = n - (nodeDepthInitial + 1); a.Catalog = cache.data.NodeData[m][0]; a.UpgradeRank = cache.data.NodeData[m][1]; a.Mode = cache.data.NodeData[m][2]; a.ModeInt = cache.data.NodeData[m][3]; a.Age = cache.data.NodeData[m][4]; a.BuildText = cache.data.NodeData[m][5]; 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; } 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]; 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]; 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]); writeData(); i = 0; while (i < 4) { cache.data.PlayerDataResources[i][1] = 0; ++i; } i = 0; while (i < resourcePerCycle.length) { cache.data.PlayerDataResourcePerCycle[i][1] = 0; ++i; } i = 0; while (i < population.length) { cache.data.PlayerDataPopulation[i][1] = 0; ++i; } i = 0; while (i < cache.data.PlayerDataStrCount.length) { j = 0; while (j < cache.data.PlayerDataStrCount[i].length) { cache.data.PlayerDataStrCount[i][j] = 0; ++j; } ++i; } i = 0; while (i < tradeCooldown.length) { cache.data.PlayerDataTradeCooldown[i] = 0; ++i; } i = 0; while (i < EvilData.length) { cache.data.PlayerDataEvilData[i] = 0; ++i; } i = 0; while (i < cache.data.PlayerDataSpecialistsStats.length) { j = 0; while (j < cache.data.PlayerDataSpecialistsStats[i].length) { cache.data.PlayerDataSpecialistsStats[i][j] = 0; ++j; } ++i; } cache.data.PlayerData[0] = 50; cache.data.PlayerData[1] = 100; cache.data.PlayerData[4] = ''; cache.data.PlayerData[5] = 0; cache.data.PlayerData[14] = 0; cache.data.PlayerData[15] = 0; cache.data.PlayerData[16] = 0; cache.data.PlayerData[20] = 0; cache.data.PlayerData[21] = 0; cache.data.PlayerData[24] = 0; cache.data.FileExists = true; cache.data.PlayerDataUpgrades[0] = 0; cache.data.PlayerDataUpgrades[1] = 0; cache.data.PlayerDataUpgrades[2] = 0; cache.data.PlayerDataUpgrades[3] = 0; cache.data.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(); firstTimeBonuses(); writeData(); _root.gotoAndStop('reset'); } function checkUpgrades() { if (_root.upgradeStoreRank >= 3) { _root.buildList[1][6] = 200; } if (_root.upgradeLibraryRank >= 2) { _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 = 99; 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.25; 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 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 trainAmount = 0; var raidChance = 0; var raidCounter = 0; var evilCometh = 0; var roll = 0; var rolls = new Array(0, 0, 0, 0); var fate = 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(); } generateMap(newLand[0][0], newLand[0][1], newLand[0][2], newLand[0][3]); var maxZoom = 150; var minZoom = 50; var mouseListener = new Object(); mouseListener.onMouseWheel = function (delta) { if (!_root.hudMSG.hitTest(_xmouse, _ymouse, false)) { if (delta < 0 && _root.world.vcam._yscale < maxZoom || delta > 0 && _root.world.vcam._yscale > minZoom) { Zoomy(delta * -5); } } }; Mouse.addListener(mouseListener); var lastX = NaN; var lastY = NaN; var DragScrollSpeed = 1.5; var DragKeys = new Array(1, 2, 4); if (DragOnLeftClick == false) { DragKeys[0] = 4; } else { DragKeys[0] = 1; } _root.world.onEnterFrame = function () { var v2 = 0; if (Key.isDown(37) || Key.isDown(65)) { if (!_root.world.vcam.hitTest(_root.world.leftborder)) { _root.world.vcam._x -= _root.camSpeed + _root.camSpeedBoost; } } else { ++v2; } if (Key.isDown(39) || Key.isDown(68)) { if (!_root.world.vcam.hitTest(_root.world.rightborder)) { _root.world.vcam._x += _root.camSpeed + _root.camSpeedBoost; } } else { ++v2; } if (Key.isDown(40) || Key.isDown(83)) { if (!_root.world.vcam.hitTest(_root.world.bottomborder)) { _root.world.vcam._y += _root.camSpeed + _root.camSpeedBoost; } } else { ++v2; } if (Key.isDown(38) || Key.isDown(87)) { if (!_root.world.vcam.hitTest(_root.world.topborder)) { _root.world.vcam._y -= _root.camSpeed + _root.camSpeedBoost; } } else { ++v2; } if (v2 == 4) { if (_root.camSpeedBoost > 15) { _root.camSpeedBoost -= 3; } } else { if (_root.camSpeedBoost < 30) { _root.camSpeedBoost += 1; } } if (Key.isDown(DragKeys[0]) || Key.isDown(DragKeys[1]) || Key.isDown(DragKeys[2])) { if (lastX == NaN) { lastX = _xmouse; } if (lastY == NaN) { lastY = _ymouse; } if (_xmouse != lastX) { DragQueen = (lastX - _xmouse) * DragScrollSpeed; if (DragQueen < 0 && !_root.world.vcam.hitTest(_root.world.leftborder)) { _root.world.vcam._x += DragQueen; } else { if (DragQueen > 0 && !_root.world.vcam.hitTest(_root.world.rightborder)) { _root.world.vcam._x += DragQueen; } } } if (_ymouse != lastY) { DragQueen = (lastY - _ymouse) * DragScrollSpeed; if (DragQueen < 0 && !_root.world.vcam.hitTest(_root.world.topborder)) { _root.world.vcam._y += DragQueen; } else { if (DragQueen > 0 && !_root.world.vcam.hitTest(_root.world.bottomborder)) { _root.world.vcam._y += DragQueen; } } } lastX = _xmouse; lastY = _ymouse; } else { lastX = NaN; lastY = NaN; } }; var edictResidentialBuff = new Array('', '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'); 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 1472 { } movieClip 1473 { } movieClip 1474 { } movieClip 1475 { } movieClip 1477 { 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 1478 { } movieClip 1480 { } instance of movieClip 1480 { onClipEvent (enterFrame) { if (_root.feedText == '') { this._alpha = 0; } else { this._alpha = 100; } } } movieClip 1481 { } instance of movieClip 1481 { onClipEvent (enterFrame) { if (_root.feedText2 == '') { this._alpha = 0; } else { this._alpha = 100; } } } movieClip 1483 { } movieClip 1485 { } movieClip 1488 { } button 1493 { on (release) { _root.pauseGame(); } } movieClip 1495 { frame 1 { stop(); } } movieClip 1501 { } movieClip 1502 { instance of movieClip 1501 { 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 1501 { onClipEvent (press) { scrollan = 1; } onClipEvent (release) { scrollan = 0; } onClipEvent (enterFrame) { if (scrollan == -1) { --_parent.messages.scroll; } if (scrollan == 1) { ++_parent.messages.scroll; } } } } movieClip 1505 { } movieClip 1507 { instance Mask of movieClip 1228 { onClipEvent (enterFrame) { this.gotoAndStop(_root.loveDisplay + 1); } } } instance loveMeter of movieClip 1507 { 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 1512 { } movieClip 1515 { } button 1517 { 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 1520 { } movieClip 1521 { frame 1 { stop(); } } movieClip 1522 { } movieClip 1523 { frame 1 { stop(); } } movieClip 1524 { } movieClip 1525 { frame 1 { stop(); } } movieClip 1526 { } movieClip 1527 { frame 1 { stop(); } } movieClip 1530 { } movieClip 1531 { } movieClip 1532 { frame 1 { stop(); } } movieClip 1535 { } movieClip 1536 { } movieClip 1537 { frame 1 { stop(); } } movieClip 1538 { } movieClip 1539 { frame 1 { stop(); } } movieClip 1541 { } movieClip 1542 { frame 1 { stop(); } } movieClip 1543 { } movieClip 1544 { frame 1 { stop(); } } movieClip 1545 { } movieClip 1546 { frame 1 { stop(); } } movieClip 1547 { } movieClip 1548 { frame 1 { stop(); } } movieClip 1551 { } movieClip 1552 { } movieClip 1553 { frame 1 { stop(); } } movieClip 1556 { frame 1 { stop(); } } movieClip 1557 { } movieClip 1558 { frame 1 { stop(); } } movieClip 1559 { } movieClip 1560 { frame 1 { stop(); } } movieClip 1562 { } movieClip 1563 { frame 1 { stop(); } } button 1565 { on (release) { _root.deselectAll(); } } movieClip 1568 { } button 1573 { on (release) { _root.changeMode(0, _root.nodeSelected); } on (rollOver) { _root.feedTextMode(0); } on (rollOut) { _root.feedTextMode(-1); } } button 1574 { on (release) { _root.changeMode(2, _root.nodeSelected); } on (rollOver) { _root.feedTextMode(2); } on (rollOut) { _root.feedTextMode(-1); } } button 1575 { on (release) { _root.changeMode(1, _root.nodeSelected); } on (rollOver) { _root.feedTextMode(1); } on (rollOut) { _root.feedTextMode(-1); } } // unknown tag 88 length 64 button 1578 { on (release) { _root.UpgradeMode(_root.nodeSelected, false); } on (rollOver) { _root.feedTextUpgradeMode(0); } on (rollOut) { _root.feedTextUpgradeMode(-1); } } movieClip 1581 { } movieClip 1582 { } movieClip 1583 { frame 1 { tooltipBuild = new Array(['Build ' + _root.buildList[0][0] + ': ' + _root.buildList[0][1] + ' Bits', 'Affects adjacent houses to boost Income (Bits per Day), Happiness or how quickly ponies move in. Houses may only be affected by one type of Town Square at a time. Effect does not stack. Can also be used to trade Food for Bits or vice-versa.'], ['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', 'The library can give a significant boost to Income (Bits per Day) or research Tech Points based on its mode.\rEffectiveness is based on total population size. Multiple Libraries have diminishing returns when earning Income.'], ['Build ' + _root.buildList[3][0] + ': ' + _root.buildList[3][1] + ' Bits', 'Simple and inexpensive housing for Earth Ponies. Generates Income (Bits per Day). 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 (Bits per Day). 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 its current mode.'], ['Build ' + _root.buildList[8][0] + ': ' + _root.buildList[8][1] + ' Bits', 'Requires a few days to fully bloom, but yields approximately 128 Food per Day once harvested.\rMust 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 (Bits per Day).\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.'], ['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.\rPassively increases your city\'s defense by 5.'], ['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.'], []); } 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 () { _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 () { _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 1568 { onClipEvent (load) { this.gotoAndStop(int(_root.buildCatalog) + 1); } onClipEvent (enterFrame) { this.gotoAndStop(int(_root.buildCatalog) + 1); } } instance of movieClip 1048 { onClipEvent (press) { } } frame 35 { gotoAndStop(1); } } movieClip 1586 { } movieClip 1589 { } movieClip 1592 { } movieClip 1595 { } movieClip 1598 { } movieClip 1602 { } movieClip 1603 { } movieClip 1606 { } movieClip 1607 { } instance happyWheel of movieClip 1607 { onClipEvent (release) { _root.HW.nextFrame(); } onClipEvent (enterFrame) { this.gotoAndStop(_root.happinessDisplay); } 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 1610 { } movieClip 1622 { } instance tier1 of movieClip 1622 { 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 1625 { } movieClip 1626 { } instance tier2 of movieClip 1626 { 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 1628 { } instance tier3 of movieClip 1628 { 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 1629 { } instance of movieClip 1629 { 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 1632 { } instance projspawner2 of movieClip 1632 { 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 1634 { } movieClip 1636 { } movieClip 1637 { } button 1638 { 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 1641 { } movieClip 1642 { } movieClip 1644 { } instance levelUpStat of movieClip 1644 { onClipEvent (load) { if (_root.StatsLeft > 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.StatsLeft > 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } } instance of movieClip 1629 { 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 1629 { 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 1629 { 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 1629 { 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 1629 { 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 1629 { 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 1629 { 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(); } } } movieClip 1650 { } movieClip 1652 { } movieClip 1653 { frame 1 { stop(); } frame 18 { stop(); } instance of movieClip 1652 { 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 1659 { } movieClip 1662 { } movieClip 1665 { instance of movieClip 1659 { 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 (release) { 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); } } onClipEvent (press) { if (_root.upgradeStore[_root.upgradeStoreRank][0] != NaN) { _parent.b1.gotoAndStop(3); } } } } movieClip 1667 { } movieClip 1670 { instance of movieClip 1659 { 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 (release) { 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.upgradeLibraryRank == 3) { _root.manaMax += 10; } if (_root.upgradeLibraryRank == 5) { _root.statInsight += 1; } 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); } } onClipEvent (press) { if (_root.upgradeLibrary[_root.upgradeLibraryRank][0] != NaN) { _parent.b1.gotoAndStop(3); } } } } movieClip 1674 { } movieClip 1675 { } movieClip 1677 { } movieClip 1678 { } movieClip 1681 { instance of movieClip 1659 { 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 (release) { if (_root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] != NaN) { _parent.b1.gotoAndStop(2); if (_root.resources[0][1] >= _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0]) { _root.resources[0][1] -= _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0]; ++_root.upgradeMoreTilesRank; _root.refreshResources(); updateText(); ++_root.landOwned; if (_root.newLand[_root.landOwned][0] != NaN) { _root.generateMap(_root.newLand[_root.landOwned][0], _root.newLand[_root.landOwned][1], _root.newLand[_root.landOwned][2], _root.newLand[_root.landOwned][3]); } if (_root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] != NaN) { _root.upgradeMoreTilesCost = _root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0]; _root.feedText2 = '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); } } onClipEvent (press) { if (_root.upgradeMoreTiles[_root.upgradeMoreTilesRank][0] != NaN) { _parent.b1.gotoAndStop(3); } } } } movieClip 1685 { frame 2 { stop(); } instance of movieClip 1659 { 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 (release) { 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 1659 { 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 (release) { if (_root.ShieldLevel >= 100) { _root.hudInfo.gotoAndStop('ascend'); } else { _root.feedText2 = 'Requires 100% Shield.'; _root.feedText = 'Cannot Ascend until shield is fully activated.'; } } } } movieClip 1706 { } movieClip 1712 { } button 1715 { 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 1717 { 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 1719 { 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 1721 { 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 += 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 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 += 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 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 1712 { onClipEvent (load) { this.useHandCursor = false; } onClipEvent (press) { } } frame 6 { if (_root.UnlocksGeneric[0][2] == 1) { gotoAndStop('Garden2'); } } } movieClip 1723 { frame 2 { stop(); } } movieClip 1724 { frame 12 { _root.updateHudCard(_root.nodeSelected); } } instance of movieClip 1629 { 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 1629 { 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 1629 { 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(); } } } movieClip 1728 { } instance sfxplayer1 of movieClip 1728 { onClipEvent (load) { sfx = new Sound(this); } } instance sfxplayer2 of movieClip 1728 { onClipEvent (load) { sfx = new Sound(this); } } instance of movieClip 1629 { 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 1629 { 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(); } } } button 1733 { 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 1738 { 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 1741 { 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 1744 { 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 1747 { } button 1749 { 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 1752 { 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 1753 { 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 1754 { on (rollOver) { _root.feedText2 = 'Zoom in'; _root.feedText = 'Zoom the camera closer.'; } on (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } on (release) { _root.Zoomy(-5); } } button 1755 { 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 1757 { } button 1760 { 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 1765 { } movieClip 1767 { } button 1768 { on (release) { _root.HW.gotoAndStop(1); } } movieClip 1770 { instance of movieClip 1501 { 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 1501 { onClipEvent (press) { scrollan = 1; } onClipEvent (release) { scrollan = 0; } onClipEvent (enterFrame) { if (scrollan == -1) { --_parent.messages.scroll; } if (scrollan == 1) { ++_parent.messages.scroll; } } } } movieClip 1772 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 1774 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 1776 { } instance of movieClip 1776 { onClipEvent (release) { _root.debug.nextFrame(); } } button 1791 { on (release) { gotoAndStop(2); } } button 1795 { on (release) { gotoAndStop(3); } } button 1799 { on (release) { gotoAndStop(10); } } button 1800 { on (release) { _root.deselectAll(); } } button 1804 { on (release) { gotoAndStop(4); } } button 1808 { on (release) { gotoAndStop(5); } } button 1812 { on (release) { gotoAndStop(6); } } movieClip 1850 { 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 1856 { } movieClip 1857 { frame 1 { if (_root.mana < 10) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 1860 { } movieClip 1861 { frame 1 { if (_root.mana < 16) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 1864 { } movieClip 1865 { frame 1 { if (_root.mana < 32) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 1868 { instance of movieClip 1857 { 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 (perksOwned[6] == 1) { _root.resources[3][1] += _root.manaMax / 10; } _root.refreshResources(); if (_root.mana < 10) { this.gotoAndStop(2); } } } } instance of movieClip 1861 { onClipEvent (enterFrame) { if (_root.mana < 16) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (rollOver) { _root.feedText2 = 'Charm Boost'; _root.feedText = 'Increases Love Magic by either +10 or +5% (Whicher is greater)'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } onClipEvent (release) { if (_root.mana >= 16) { if (_root.loveToRank / 20 < 10) { _root.love += 10; _root.loveTotal += 10; } else { _root.love += _root.loveToRank / 20; _root.loveTotal += _root.loveToRank / 20; } _root.mana -= 16; if (perksOwned[6] == 1) { _root.resources[3][1] += _root.manaMax / 10; } _root.refreshResources(); if (_root.mana < 16) { this.gotoAndStop(2); } } } } instance of movieClip 1865 { onClipEvent (enterFrame) { if (_root.mana < 32) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (release) { if (_root.environment < 200) { if (_root.mana >= 32) { _root.environment += 5; _root.refreshResources(); _root.mana -= 32; if (perksOwned[6] == 1) { _root.resources[3][1] += _root.manaMax / 10; } if (_root.mana < 32) { this.gotoAndStop(2); } } } } } } movieClip 1880 { } movieClip 1882 { } button 1891 { 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 1892 { 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 1893 { 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 1894 { 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 1895 { 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 1896 { 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 1897 { 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 1898 { frame 1 { stop(); } } movieClip 1918 { 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.getNextHighestDepth()); } else { this.firstTrait._alpha = 0; } if (traitGet2 != -1) { this.secondTrait.attachMovie('trait' + String(traitGet2), 'ayylmao2', _root.getNextHighestDepth()); } else { this.secondTrait._alpha = 0; } } instance of movieClip 1898 { 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 1930 { } movieClip 1932 { } movieClip 1935 { } movieClip 1936 { } movieClip 1939 { } movieClip 1941 { } movieClip 1942 { } movieClip 1944 { } movieClip 1946 { } movieClip 1947 { } movieClip 1949 { } movieClip 1952 { } movieClip 1954 { } movieClip 1955 { } movieClip 1957 { } movieClip 1959 { } movieClip 1960 { } movieClip 1963 { } movieClip 1965 { } movieClip 1966 { } movieClip 1968 { } movieClip 1970 { } movieClip 1972 { } movieClip 1973 { } movieClip 1978 { } movieClip 1980 { } movieClip 1981 { } movieClip 1982 { } movieClip 1984 { } movieClip 1985 { } movieClip 1987 { } movieClip 1989 { } movieClip 1990 { } movieClip 2002 { } movieClip 2003 { } movieClip 2006 { } movieClip 2009 { } movieClip 2034 { frame 1 { var expShow = ''; var nameRank = ''; var exp = ''; } } button 2039 { on (release) { _root.writeData(); _root.fader.gotoAndPlay('fadeOut'); _root.fadeOutTarget = 'title'; } } button 2040 { on (release) { gotoAndStop('helpstart'); } } button 2041 { on (release) { _root.deselectAll(); } } button 2043 { on (release) { gotoAndStop('options'); } } button 2045 { 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 2047 { on (release) { _root.queuemusik(_root.MusikTrack + 1); } } movieClip 2060 { 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 2064 { } movieClip 2067 { } movieClip 2075 { frame 1 { stop(); } } movieClip 2077 { } movieClip 2079 { } movieClip 2080 { frame 200 { gotoAndPlay(1); } } movieClip 2085 { } movieClip 2091 { } movieClip 2092 { frame 1 { stop(); } frame 2 { if (choice2 == '') { choiceBtn2.unloadMovie(); } if (choice3 == '') { choiceBtn3.unloadMovie(); } if (choice4 == '') { choiceBtn4.unloadMovie(); } } instance choiceBtn1 of movieClip 1164 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } instance choiceBtn2 of movieClip 1164 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } instance choiceBtn3 of movieClip 1164 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } instance choiceBtn4 of movieClip 1164 { 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 1164 { 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 1164 { 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 1164 { 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 1164 { 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 1164 { 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 1164 { 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 1164 { 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 1164 { 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 2093 { on (release) { _root.hudInfo.leFadeFace.play(); _root.NextScene = 'disabled'; } } movieClip 2096 { 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 = 'Party Supplies to boost happiness.'; this.choices.choice2 = 'Some gems and coins to help me build stuff.'; this.choices.choice3 = 'Extra food. (Will be wasted without Storage Space)'; 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 += int(_root.happiness / 8); } 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(100, 150); } _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.'); 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 2085 { 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 2098 { frame 21 { stop(); } } movieClip 2101 { } movieClip 2103 { } button 2106 { on (release) { _root.hudInfo.gotoAndStop('Gamble'); } } button 2108 { on (release) { if (traitsOwned[20] != 1) { _root.hudInfo.gotoAndStop('Private'); } } } movieClip 2110 { 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 2085 { 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 2112 { } movieClip 2115 { } movieClip 2118 { } movieClip 2121 { } movieClip 2124 { } movieClip 2127 { } movieClip 2130 { frame 1 { stop(); } } movieClip 2133 { } movieClip 2136 { } movieClip 2139 { } movieClip 2141 { } movieClip 2144 { frame 121 { _parent.lightText._alpha -= 3; gotoAndPlay(120); } } movieClip 2147 { frame 121 { if (_parent.lightText._alpha > 0) { _parent.lightText._alpha -= 3; gotoAndPlay(120); } else { gotoAndStop(1); } } } movieClip 2149 { } movieClip 2151 { } movieClip 2153 { } movieClip 2155 { } movieClip 2157 { } movieClip 2159 { } movieClip 2160 { } movieClip 2162 { } movieClip 2163 { frame 1 { stop(); } frame 7 { gotoAndStop(14); } frame 15 { gotoAndStop(1); } } movieClip 2178 { frame 1 { if (!init) { var init = true; if (_root.funds > 0 || _root.tokens > 0) { this.gotoAndStop(2); } else { stop(); } } } frame 3 { gotoAndStop(1); } } button 2187 { on (release) { rollEm(); } } button 2188 { on (release) { clearEm(false); } } movieClip 2217 { } movieClip 2218 { frame 1 { stop(); } frame 2 { _parent.showEm(); } frame 15 { _parent.payEm(); } frame 15 { stop(); } frame 20 { gotoAndPlay(2); } } button 2221 { on (release) { placeEmAll(); } } button 2223 { on (release) { clearEm(false); _root.hudInfo.gotoAndStop('Prize'); } } movieClip 2227 { } button 2228 { on (release) { if (_root.tokens >= 125) { _root.tokens -= 125; _root.funds += 100; } this.chiphint.gotoAndStop('disabled'); } } button 2230 { on (release) { if (_root.resources[0][1] >= 100) { _root.resources[0][1] -= 100; _root.funds += 100; } _root.refreshResources(); this.chiphint.gotoAndStop('disabled'); } } movieClip 2233 { } movieClip 2234 { frame 1 { if (_root.funds > 0 || _root.tokens > 0) { this.gotoAndStop('disabled'); } } frame 60 { gotoAndPlay(1); } } button 2235 { on (release) { this.hinty.nextFrame(); } } button 2237 { on (release) { placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); placeEmAll(); } } button 2239 { on (release) { clearEm(false); _root.hudInfo.gotoAndStop('Tavern'); } } movieClip 2241 { 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 2178 { onClipEvent (press) { this.gotoAndStop(2); } } } button 2251 { on (release) { if (_root.tokens >= 100) { _root.tokens -= 100; _root.happiness += 50; _root.refreshResources(); _root.writeData(); } } } button 2254 { on (release) { if (_root.tokens >= 300) { _root.tokens -= 300; _root.DefenseRating += 150; _root.refreshResources(); _root.writeData(); } } } button 2255 { on (release) { if (_root.tokens >= _root.PrizeSkillTokens) { _root.tokens -= _root.PrizeSkillTokens; _root.PrizeSkillTokens += 750; _root.PrizeSkillTokensDisplay = _root.PrizeSkillTokens + ' Tokens'; _root.StatsLeft += 1; _root.refreshResources(); _root.writeData(); } } } button 2258 { on (release) { if (_root.tokens >= 800) { _root.tokens -= 800; _root.StoryFlags[1] = 1; gotoAndStop(2); _root.refreshResources(); _root.writeData(); } } } movieClip 2260 { frame 1 { if (_root.StoryFlags[1] == 1) { gotoAndStop(2); } else { stop(); } } } movieClip 2266 { } movieClip 2267 { } button 2268 { on (release) { if (_root.tokens >= 1200) { _root.tokens -= 1200; _root.StoryFlags[2] = true; gotoAndStop(2); _root.refreshResources(); _root.writeData(); } } } movieClip 2270 { frame 1 { if (_root.StoryFlags[2] == 1) { gotoAndStop(2); } else { stop(); } } } movieClip 2274 { frame 1 { if (_root.UnlocksGeneric[9][2] != 1) { stop(); } else { gotoAndStop(2); } } instance of movieClip 913 trait??? { onClipEvent (release) { if (_root.tokens >= 500) { _root.tokens -= 500; _root.UnlockGeneric(9); _root.writeData(); _root.hudInfo.prizeScene.tt1.gotoAndStop(2); } } } } movieClip 2276 { frame 1 { if (_root.UnlocksGeneric[10][2] != 1) { stop(); } else { gotoAndStop(2); } } instance of movieClip 913 trait??? { onClipEvent (release) { if (_root.tokens >= 750) { _root.tokens -= 750; _root.UnlockGeneric(10); _root.writeData(); _root.hudInfo.prizeScene.tt2.gotoAndStop(2); } } } } movieClip 2278 { frame 1 { if (_root.UnlocksGeneric[11][2] != 1) { stop(); } else { gotoAndStop(2); } } instance of movieClip 913 trait??? { onClipEvent (release) { if (_root.tokens >= 1500) { _root.tokens -= 1500; _root.UnlockGeneric(11); _root.writeData(); _root.hudInfo.prizeScene.tt3.gotoAndStop(2); } } } } movieClip 2280 { frame 1 { if (_root.UnlocksGeneric[12][2] != 1) { stop(); } else { gotoAndStop(2); } } instance of movieClip 913 trait??? { onClipEvent (release) { if (_root.tokens >= 6000) { _root.tokens -= 6000; _root.UnlockGeneric(12); _root.writeData(); _root.hudInfo.prizeScene.tt4.gotoAndStop(2); } } } } button 2281 { on (release) { _root.hudInfo.gotoAndStop('Tavern'); } } movieClip 2282 { 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 2283 { } button 2286 { on (release) { _root.hudInfo.gotoAndStop('Tavern'); } } button 2287 { on (release) { _root.fader.gotoAndPlay('fadeOut'); _root.fadeOutTarget = 'sex'; _root.sexScene = 'tavern'; _root.feedText2 = ''; _root.feedText = ''; _root.deselectAll(); } } movieClip 2289 { 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; } 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.eyelid.stop(); charTile.head.gotoAndStop(wumbo + 1); 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 2296 { on (release) { nextFrame(); } } movieClip 2308 { } movieClip 2311 { } movieClip 2314 { } button 2318 { on (release) { gotoAndStop('help2'); } } button 2332 { on (release) { prevFrame(); } } movieClip 2340 { } button 2365 { on (release) { gotoAndStop('help'); } } button 2375 { on (release) { if (_root.perksLeft < 1) { _root.townName = String(_root.hudInfo.townNameInput.text); _root.ascensionNG(); } else { nextFrame(); } } } movieClip 2381 { } button 2383 { on (release) { _root.townName = String(_root.hudInfo.townNameInput.text); _root.ascensionNG(); } } movieClip 2389 { frame 1 { stop(); } frame 2 { if (showHints == 1) { _root.topRightHUD.adviserHintArrow.play(); showHints = 2; } } frame 2 { _root.hudInfo.underlay.useHandCursor = false; _root.hudCard._alpha = 0; _root.adviserHint(); } frame 2 { _root.playsound('click.wav'); } instance of movieClip 1629 { 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 1629 { 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 1629 { 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 1629 { 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 1629 { 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 1629 { 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 1629 { 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 1629 { 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 1629 { 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 1629 { onClipEvent (rollOver) { _root.feedText2 = 'Happiness: ' + _root.happinessDisplay; _root.feedText = 'Happy ponies are healthy ponies. You don\'t want a bunch of mopey mares, do you?'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 1629 { onClipEvent (rollOver) { _root.feedText2 = 'Mood: ' + _root.resourceHappyCycle; _root.feedText = 'This is how much happiness is gained or lost each day.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 1629 { onClipEvent (rollOver) { _root.feedText2 = 'Population: ' + _root.popTotal; _root.feedText = 'Citizens are the foundation of any city!'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 1629 { 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 1629 { 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 1629 { 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 = ''; } } instance of movieClip 1629 { 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 1629 { 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 1629 { 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 1629 { onClipEvent (rollOver) { _root.feedText2 = 'Architecture Skill'; _root.feedText = 'Increases the how fast structures are built by 15% per Rank.'; } onClipEvent (rollOut) { _root.feedText = ''; _root.feedText2 = ''; } } instance of movieClip 1629 { 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 1629 { 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 1629 { 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 1629 { 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 1629 { 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 1199 { 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); }; } 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; } var charactersunlocked = counting + ' out of 4'; 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 1164 { 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 1164 { 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 1164 { 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 1164 { onClipEvent (release) { _root.eventAction1(_root.CurrentEvent, 4); } onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (releaseOutside) { this.gotoAndStop(1); } } frame 13 { gotoAndStop('randomEvent'); } frame 16 { _root.hudInfo.underlay.useHandCursor = false; if (_root.pauseDuringMeet == true && _root.gamePaused != true) { _root.pauseGame(); } } frame 17 { _root.hudInfo.underlay.useHandCursor = false; if (_root.pauseDuringMeet == true && _root.gamePaused != true) { _root.pauseGame(); } } frame 31 { _root.hudInfo.underlay.useHandCursor = false; if (_root.gamePaused != true) { _root.pauseGame(); } } frame 32 { p = 0; while (p < 4) { var perkTile = perkTable.attachMovie('perkBtn' + _root.perkChoice[p], 'perk' + _root.perkChoice[p], _root.extraDepthInitial + p); if (p == 0 || p == 2) { perkTile.perkX = -185; } else { perkTile.perkX = 190; } if (p == 0 || p == 1) { perkTile.perkY = 0; } else { perkTile.perkY = 100; } a = perkTile; a.Selected = false; a._x = perkTile.perkX; a._y = perkTile.perkY; if (_root.perksOwned[_root.perkChoice[p]] == 1) { a.gotoAndStop(5); } else { a.gotoAndStop(1); } a.onPress = function () { this.gotoAndStop(4); this.Selected = true; }; if (_root.perkChoice[p] < 10) { a.onRelease = function () { if (_root.perksOwned[(this._name.split(''))[4]] == 1) { _root.perksOwned[(this._name.split(''))[4]] = 0; this.gotoAndStop(2); ++_root.perksLeft; } else { if (_root.perksLeft > 0) { _root.perksOwned[(this._name.split(''))[4]] = 1; this.gotoAndStop(5); --_root.perksLeft; } else { this.gotoAndStop(2); } } this.Selected = false; }; a.onRollOver = function () { if (_root.perksOwned[(this._name.split(''))[4]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } this.Selected = true; }; a.onRollOut = function () { if (_root.perksOwned[(this._name.split(''))[4]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(1); } this.Selected = false; }; a.onReleaseOutside = function () { if (_root.perksOwned[(this._name.split(''))[4]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(1); } this.Selected = false; }; } else { a.onRelease = function () { if (_root.perksOwned['1' + (this._name.split(''))[5]] == 1) { _root.perksOwned['1' + (this._name.split(''))[5]] = 0; this.gotoAndStop(2); ++_root.perksLeft; } else { if (_root.perksLeft > 0) { _root.perksOwned['1' + (this._name.split(''))[5]] = 1; this.gotoAndStop(5); --_root.perksLeft; } else { this.gotoAndStop(2); } } this.Selected = false; }; a.onRollOver = function () { if (_root.perksOwned['1' + (this._name.split(''))[5]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } this.Selected = true; }; a.onRollOut = function () { if (_root.perksOwned['1' + (this._name.split(''))[5]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(1); } this.Selected = false; }; a.onReleaseOutside = function () { if (_root.perksOwned['1' + (this._name.split(''))[5]] == 1) { this.gotoAndStop(5); } else { this.gotoAndStop(1); } this.Selected = false; }; } ++p; } } } movieClip 2392 { } movieClip 2399 { frame 2 { if (_root.loadGame == true) { _root.readData(); } if (_root.MusikLaunched == 'No') { _root.MusikLaunched = 'Yes'; _root.queuemusik(0); _root.MusikLoop = 0; } _root.autoSave = _root.cache.data.PlayerDataOptions[1]; if (_root.FAPMODE == 1) { _root.charSelected = _root.CurrentAdviser; _root.deselectAll(); _root.gotoAndStop('sex'); _root.sexScene = 'garden'; _root.feedText2 = ''; _root.feedText = ''; } } frame 34 { stop(); } frame 55 { _root.writeData(); } frame 59 { stop(); _root.gotoAndStop(_root.fadeOutTarget); } frame 70 { stop(); } } movieClip 2408 { } movieClip 2409 { } movieClip 2412 { } movieClip 2413 { } movieClip 2417 { } movieClip 2418 { } movieClip 2420 { } movieClip 2422 { } movieClip 2424 { } movieClip 2425 { } movieClip 2427 { } button 2428 { on (release) { gotoAndStop(1); if (_root.pauseDuringMeet == true && _root.gamePaused == true) { _root.pauseGame(); } } } // unknown tag 88 length 82 button 2442 { on (release) { gotoAndStop(5); } } movieClip 2448 { } movieClip 2450 { } movieClip 2452 { } movieClip 2454 { } movieClip 2456 { } movieClip 2458 { } movieClip 2460 { } movieClip 2462 { } movieClip 2464 { } movieClip 2466 { } movieClip 2468 { } movieClip 2470 { } movieClip 2472 { } movieClip 2474 { } movieClip 2476 { } movieClip 2478 { } movieClip 2480 { } movieClip 2482 { } movieClip 2484 { } movieClip 2486 { } movieClip 2488 { } movieClip 2490 { } movieClip 2492 { } movieClip 2494 { } movieClip 2504 { frame 11 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } } movieClip 2506 { } movieClip 2507 { } movieClip 2509 { } movieClip 2511 { } movieClip 2513 { } movieClip 2515 { } movieClip 2517 { } movieClip 2519 { } movieClip 2521 { } movieClip 2523 { } movieClip 2525 { } movieClip 2527 { } movieClip 2544 { frame 10 { x = _root.randRange(1, 100); if (x < 85) { gotoAndPlay(2); } } } movieClip 2549 { frame 1 { stop(); } } movieClip 2585 { frame 31 { stop(); } } movieClip 2605 { frame 31 { stop(); } } movieClip 2606 { } movieClip 2607 { } movieClip 2609 { } button 2610 { on (release) { Phase = 'loop1'; } } button 2612 { on (release) { Phase = 'loop2'; } } button 2614 { on (release) { Phase = 'loop3'; } } button 2616 { on (release) { Phase = 'cum'; } } movieClip 2683 { frame 1 { this.twihead.hair1.gotoAndPlay(Phase); this.twihead.hair2.gotoAndPlay(Phase); } frame 1 { if (!init) { init = true; var Phase = 'loop1'; } } frame 30 { gotoAndPlay(Phase); } frame 40 { this.twihead.hair1.gotoAndPlay(Phase); this.twihead.hair2.gotoAndPlay(Phase); } frame 59 { gotoAndPlay(Phase); } frame 68 { this.twihead.hair1.gotoAndPlay(Phase); this.twihead.hair2.gotoAndPlay(Phase); } frame 83 { this.twihead.hair1.gotoAndPlay(Phase + 're'); this.twihead.hair2.gotoAndPlay(Phase + 're'); } frame 96 { if (Phase == 'loop3') { gotoAndPlay(Phase + 're'); } } frame 97 { this.twihead.hair1.gotoAndPlay('loop1'); this.twihead.hair2.gotoAndPlay('loop1'); } frame 105 { gotoAndPlay(Phase); } frame 110 { this.twihead.hair1.gotoAndPlay(Phase); this.twihead.hair2.gotoAndPlay(Phase); } frame 111 { Phase = 'loop2'; } frame 213 { gotoAndPlay('loop2re'); } } movieClip 2686 { } movieClip 2688 { } movieClip 2690 { } movieClip 2692 { } movieClip 2694 { } movieClip 2696 { } movieClip 2698 { } movieClip 2700 { } movieClip 2702 { } movieClip 2704 { } movieClip 2706 { } movieClip 2708 { } movieClip 2710 { } movieClip 2712 { } movieClip 2714 { } movieClip 2716 { } movieClip 2718 { } movieClip 2727 { frame 1 { stop(); } } movieClip 2729 { } movieClip 2731 { } movieClip 2733 { } movieClip 2735 { } movieClip 2737 { } movieClip 2739 { } movieClip 2741 { } movieClip 2745 { } movieClip 2747 { } movieClip 2749 { } movieClip 2751 { } movieClip 2753 { } movieClip 2755 { } movieClip 2757 { } movieClip 2760 { } movieClip 2762 { } movieClip 2764 { } movieClip 2766 { } movieClip 2768 { } movieClip 2770 { } movieClip 2771 { frame 1 { stop(); } } movieClip 2772 { } movieClip 2774 { } movieClip 2784 { frame 1 { stop(); } } movieClip 2786 { } movieClip 2787 { frame 8 { this.head.hair.gotoAndPlay('bounce'); this.butt.gotoAndPlay('jiggle'); this.macbutt.gotoAndPlay('jiggle'); this.macbody.macbutt.gotoAndPlay('jiggle'); } } movieClip 2789 { } movieClip 2791 { } movieClip 2794 { frame 1 { stop(); } } movieClip 2796 { } movieClip 2798 { } movieClip 2800 { } movieClip 2802 { } movieClip 2804 { } movieClip 2806 { } button 2811 { on (release) { nextFrame(); } } movieClip 2812 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 2816 { } movieClip 2817 { } movieClip 2819 { } movieClip 2821 { } movieClip 2823 { } movieClip 2825 { } movieClip 2827 { } movieClip 2829 { } movieClip 2832 { } movieClip 2834 { } movieClip 2835 { frame 1 { stop(); } frame 45 { gotoAndStop(1); } frame 71 { gotoAndStop(1); } } movieClip 2837 { } movieClip 2839 { } movieClip 2841 { } movieClip 2844 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 2846 { frame 1 { stop(); } } movieClip 2848 { } movieClip 2850 { } movieClip 2852 { } movieClip 2854 { } movieClip 2856 { } movieClip 2858 { } movieClip 2860 { } movieClip 2862 { } movieClip 2864 { } movieClip 2869 { frame 1 { stop(); } } button 2870 { on (release) { Phase = 'idle'; } } button 2874 { on (release) { Phase = 'loop4'; } } movieClip 2882 { } movieClip 2883 { frame 1 { if (!init) { init = true; var Phase = 'idle'; } this.anus.gotoAndStop(1); } frame 40 { if (Phase != 'idle') { this.Flash.gotoAndPlay(2); this.anus.gotoAndStop(2); } gotoAndPlay(Phase); } frame 52 { this.butt1.gotoAndPlay('jiggle'); } frame 53 { this.butt2.butt1.gotoAndPlay('jiggle'); } frame 97 { if (Phase == 'idle') { this.Flash.play(); } gotoAndPlay(Phase); } frame 106 { this.butt1.gotoAndPlay('jiggle2'); this.butt2.butt1.gotoAndPlay('jiggle2'); } frame 117 { if (Phase == 'idle') { this.Flash.play(); } gotoAndPlay(Phase); } frame 123 { gotoAndPlay(Phase); } frame 125 { this.butt1.gotoAndPlay('jiggle2'); this.butt2.butt1.gotoAndPlay('jiggle2'); } frame 135 { if (Phase == 'idle') { this.Flash.play(); } gotoAndPlay(Phase); } frame 144 { this.butt1.gotoAndPlay('jiggle2'); this.butt2.butt1.gotoAndPlay('jiggle2'); } frame 150 { if (Phase == 'idle') { this.Flash.play(); } gotoAndPlay(Phase); } } movieClip 2884 { frame 1 { gotoAndStop(_root.MiniScene); } } movieClip 2888 { frame 1 { stop(); } } frame 11 { var header = charName + ', Level ' + loveRank + ' Mayor of ' + townName; var achievements = 'Days of operation: ' + clock + '\n'; } movieClip 2894 { 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(); } else { if (option == 'Ballgag') { _root.char.head.ballgag.nextFrame(); } else { if (option == 'Hot Swap') { _root.hotswap.nextFrame(); } else { if (option == 'Lighting') { _root.lighting.nextFrame(); } else { if (option == 'Background') { _root.char.bg.nextFrame(); } } } } } } } } } } } } } } } } } } } createOptions(); var optionsHidden = true; var horseshoeAlpha = _root.cache.data.Cosmetics[0]; var CrotchBoobs = _root.cache.data.Cosmetics[1]; var Stockings = 1; var StockingsType = 1; } frame 14 { function changePhase(scene, speed) { PhaseSpeed = speed; if (scene == 'idle' && _root.Phase != 'idle') { _root.Phase = scene; _root.char.gotoAndPlay(scene); _root.whiteflash.gotoAndPlay(2); _root.setMaleType(); } if (_root.Phase == 'idle' && scene != 'idle') { _root.whiteflash.gotoAndPlay(2); _root.setMaleType(); if (scene == 'tease' || scene == 'fuck') { _root.Phase = scene; _root.char.gotoAndPlay(scene + '_' + PhaseType + PhaseSpeed); } } else { if (scene == 'tease' || scene == 'fuck') { _root.Phase = scene; } } _root.navigation.navigation.phasetype2.gotoAndStop(Phase + PhaseSpeed); } function setColor() { var v2 = _root.maleColorRed; var v4 = _root.maleColorGreen; var v3 = _root.maleColorBlue; _root.maleColor[0] = rgb2col(v2 - 50, v4 - 50, v3 - 50); _root.maleColor[1] = rgb2col(v2, v4, v3); _root.recolorEveryPartMale(); } function rgb2col(red, green, blue) { return decColor2hex(red * 65536 + green * 256 + blue); } function decColor2hex(color) { colArr = ((color.toString(16)).toUpperCase()).split(''); numChars = colArr.length; a = 0; while (a < 6 - numChars) { colArr.unshift('0'); ++a; } return '0x' + colArr.join(''); } function changeColor(object, color) { var v1 = new Color(object); v1.setRGB(int(parseInt(String(color), 16))); } function setMaleType() { if (_root.maleType == 1) { _root.char.malearm1.gotoAndStop(_root.maleType); _root.char.malearm2.gotoAndStop(_root.maleType); _root.char.malearm1b.gotoAndStop(3); _root.char.malearm2b.gotoAndStop(3); } else { _root.char.malearm1.gotoAndStop(3); _root.char.malearm2.gotoAndStop(3); _root.char.malearm1b.gotoAndStop(_root.maleType); _root.char.malearm2b.gotoAndStop(_root.maleType); } _root.char.malearm1b.gotoAndStop(_root.maleType); _root.char.malearm2b.gotoAndStop(_root.maleType); _root.char.malearmup1.gotoAndStop(_root.maleType); _root.char.malearmup2.gotoAndStop(_root.maleType); _root.char.maletorso.gotoAndStop(_root.maleType); _root.char.malechest.gotoAndStop(_root.maleType); _root.char.malecock1.gotoAndStop(_root.maleType); _root.char.malecock2.gotoAndStop(_root.maleType); _root.char.maleleg1.gotoAndStop(_root.maleType); _root.char.maleleg2.gotoAndStop(_root.maleType); _root.char.malehand1.gotoAndStop(_root.maleType); _root.char.malehand2.gotoAndStop(_root.maleType); _root.char.malethumb1.gotoAndStop(_root.maleType); _root.char.malethumb2.gotoAndStop(_root.maleType); _root.char.malefoot1.gotoAndStop(_root.maleType); _root.char.malefoot2.gotoAndStop(_root.maleType); _root.recolorEveryPartMale(); } function recolorEveryPartMale() { changeColor('_root.char.malefoot1.outline', _root.maleColor[0]); changeColor('_root.char.malefoot2.outline', _root.maleColor[0]); changeColor('_root.char.malearm1.outline', _root.maleColor[0]); changeColor('_root.char.malearm2.outline', _root.maleColor[0]); changeColor('_root.char.malearm1b.outline', _root.maleColor[0]); changeColor('_root.char.malearm2b.outline', _root.maleColor[0]); changeColor('_root.char.malearmup1.outline', _root.maleColor[0]); changeColor('_root.char.malearmup2.outline', _root.maleColor[0]); changeColor('_root.char.maleleg1.outline', _root.maleColor[0]); changeColor('_root.char.maleleg2.outline', _root.maleColor[0]); changeColor('_root.char.maletorso.outline', _root.maleColor[0]); changeColor('_root.char.malechest.outline', _root.maleColor[0]); changeColor('_root.char.malehand1.outline', _root.maleColor[0]); changeColor('_root.char.malehand2.outline', _root.maleColor[0]); changeColor('_root.char.malethumb1.outline', _root.maleColor[0]); changeColor('_root.char.malethumb2.outline', _root.maleColor[0]); changeColor('_root.char.malecock1.outline1', _root.maleColor[0]); changeColor('_root.char.malecock1.outline2', _root.maleColor[0]); changeColor('_root.char.malecock1.balls.balloutline1', _root.maleColor[0]); changeColor('_root.char.malecock1.balls.balloutline2', _root.maleColor[0]); changeColor('_root.char.malecock2.outline', _root.maleColor[0]); changeColor('_root.char.malethumb2.outline', _root.maleColor[0]); changeColor('_root.char.malefoot1.fill', _root.maleColor[1]); changeColor('_root.char.malefoot2.fill', _root.maleColor[1]); changeColor('_root.char.malearm1.fill', _root.maleColor[1]); changeColor('_root.char.malearm2.fill', _root.maleColor[1]); changeColor('_root.char.malearm1b.fill', _root.maleColor[1]); changeColor('_root.char.malearm2b.fill', _root.maleColor[1]); changeColor('_root.char.malearmup1.fill', _root.maleColor[1]); changeColor('_root.char.malearmup2.fill', _root.maleColor[1]); changeColor('_root.char.maleleg1.fill', _root.maleColor[1]); changeColor('_root.char.maleleg2.fill', _root.maleColor[1]); changeColor('_root.char.maletorso.fill', _root.maleColor[1]); changeColor('_root.char.malechest.fill', _root.maleColor[1]); changeColor('_root.char.malehand1.fill', _root.maleColor[1]); changeColor('_root.char.malehand2.fill', _root.maleColor[1]); changeColor('_root.char.malethumb1.fill', _root.maleColor[1]); changeColor('_root.char.malethumb2.fill', _root.maleColor[1]); changeColor('_root.char.malecock1.fill1', _root.maleColor[1]); changeColor('_root.char.malecock1.fill2', _root.maleColor[1]); changeColor('_root.char.malecock1.balls.ballfill1', _root.maleColor[1]); changeColor('_root.char.malecock1.balls.ballfill2', _root.maleColor[1]); changeColor('_root.char.malecock2.fill', _root.maleColor[1]); changeColor('_root.char.malethumb2.fill', _root.maleColor[1]); } function recolorEveryPart(scheme) { _root.char.head.gotoAndStop(scheme + 1); _root.char.hairback.gotoAndStop(scheme + 1); _root.char.hairback2.gotoAndStop(scheme + 1); _root.char.tail.gotoAndStop(scheme + 1); _root.char.groin.gotoAndStop(String(scheme) + 'a'); _root.char.crotch.gotoAndStop(String(scheme) + 'a'); _root.char.vulvaupper.gotoAndStop(String(scheme) + 'a'); _root.char.vulvainner.gotoAndStop(String(scheme) + 'a'); _root.char.vulvalower.gotoAndStop(String(scheme) + 'a'); _root.char.vulvalabia.gotoAndStop(String(scheme) + 'a'); _root.char.vulvapussy.gotoAndStop(String(scheme) + 'a'); _root.char.analtop.gotoAndStop(String(scheme) + 'a'); _root.char.analbottom.gotoAndStop(String(scheme) + 'a'); recolorHooves(scheme); changeColor('_root.char.foot1.outline', _root.charColor[scheme][0]); changeColor('_root.char.foot1.fill', _root.charColor[scheme][1]); changeColor('_root.char.foot1.shade', _root.charColor[scheme][2]); changeColor('_root.char.foot2.outline', _root.charColor[scheme][0]); changeColor('_root.char.foot2.fill', _root.charColor[scheme][1]); changeColor('_root.char.foot2.shade', _root.charColor[scheme][2]); changeColor('_root.char.arm1.outline', _root.charColor[scheme][0]); changeColor('_root.char.arm1.fill', _root.charColor[scheme][1]); changeColor('_root.char.arm1.shade', _root.charColor[scheme][2]); changeColor('_root.char.arm2.outline', _root.charColor[scheme][0]); changeColor('_root.char.arm2.fill', _root.charColor[scheme][1]); changeColor('_root.char.arm2.shade', _root.charColor[scheme][2]); changeColor('_root.char.tummy.outline', _root.charColor[scheme][0]); changeColor('_root.char.tummy.fill', _root.charColor[scheme][1]); changeColor('_root.char.tummy.shade', _root.charColor[scheme][2]); changeColor('_root.char.chest.outline', _root.charColor[scheme][0]); changeColor('_root.char.chest.fill', _root.charColor[scheme][1]); changeColor('_root.char.chest.shade', _root.charColor[scheme][2]); changeColor('_root.char.neck.outline', _root.charColor[scheme][0]); changeColor('_root.char.neck.fill', _root.charColor[scheme][1]); changeColor('_root.char.neck.shade', _root.charColor[scheme][2]); changeColor('_root.char.butt1.outline', _root.charColor[scheme][0]); changeColor('_root.char.butt1.fill', _root.charColor[scheme][1]); changeColor('_root.char.butt1.shade', _root.charColor[scheme][2]); changeColor('_root.char.butt2.outline', _root.charColor[scheme][0]); changeColor('_root.char.butt2.fill', _root.charColor[scheme][1]); changeColor('_root.char.butt2.shade', _root.charColor[scheme][2]); changeColor('_root.char.leg1.outline', _root.charColor[scheme][0]); changeColor('_root.char.leg1.fill', _root.charColor[scheme][1]); changeColor('_root.char.leg1.shade', _root.charColor[scheme][2]); changeColor('_root.char.leg2.outline', _root.charColor[scheme][0]); changeColor('_root.char.leg2.fill', _root.charColor[scheme][1]); changeColor('_root.char.leg2.shade', _root.charColor[scheme][2]); changeColor('_root.char.head.outline', _root.charColor[scheme][0]); changeColor('_root.char.head.fill', _root.charColor[scheme][1]); changeColor('_root.char.head.shade', _root.charColor[scheme][2]); changeColor('_root.char.head.ear1.outline', _root.charColor[scheme][0]); changeColor('_root.char.head.ear1.fill', _root.charColor[scheme][1]); changeColor('_root.char.head.ear1.shade', _root.charColor[scheme][2]); changeColor('_root.char.head.ear2.outline', _root.charColor[scheme][0]); changeColor('_root.char.head.ear2.fill', _root.charColor[scheme][1]); changeColor('_root.char.head.ear2.shade', _root.charColor[scheme][2]); changeColor('_root.char.head.horn.outline', _root.charColor[scheme][0]); changeColor('_root.char.head.horn.fill', _root.charColor[scheme][1]); changeColor('_root.char.head.horn.shade', _root.charColor[scheme][2]); _root.char.foot1.horseshoe.gotoAndStop(scheme + 1); _root.char.foot2.horseshoe.gotoAndStop(scheme + 1); if (_root.CrotchBoobs == 1) { _root.char.crotchboobs.gotoAndStop(String(scheme) + 'a'); } else { _root.char.crotchboobs.gotoAndStop('disabled'); } if (_root.FutaMode == 1) { _root.char.cock.gotoAndStop(String(scheme) + 'a'); _root.char.balls.gotoAndStop(String(scheme) + 'a'); } else { if (_root.FutaMode == 2) { _root.char.cock.gotoAndStop(String(scheme) + 'a'); _root.char.balls.gotoAndStop('disabled'); } else { _root.char.cock.gotoAndStop('disabled'); _root.char.balls.gotoAndStop('disabled'); } } } function recolorGotoPart(scheme) { changeColor('_root.char.foot1.outline', _root.charColor[scheme][0]); changeColor('_root.char.foot1.fill', _root.charColor[scheme][1]); changeColor('_root.char.foot1.shade', _root.charColor[scheme][2]); changeColor('_root.char.foot2.outline', _root.charColor[scheme][0]); changeColor('_root.char.foot2.fill', _root.charColor[scheme][1]); changeColor('_root.char.foot2.shade', _root.charColor[scheme][2]); changeColor('_root.char.tummy.outline', _root.charColor[scheme][0]); changeColor('_root.char.tummy.fill', _root.charColor[scheme][1]); changeColor('_root.char.tummy.shade', _root.charColor[scheme][2]); changeColor('_root.char.butt1.outline', _root.charColor[scheme][0]); changeColor('_root.char.butt1.fill', _root.charColor[scheme][1]); changeColor('_root.char.butt1.shade', _root.charColor[scheme][2]); changeColor('_root.char.butt2.outline', _root.charColor[scheme][0]); changeColor('_root.char.butt2.fill', _root.charColor[scheme][1]); changeColor('_root.char.butt2.shade', _root.charColor[scheme][2]); changeColor('_root.char.leg1.outline', _root.charColor[scheme][0]); changeColor('_root.char.leg1.fill', _root.charColor[scheme][1]); changeColor('_root.char.leg1.shade', _root.charColor[scheme][2]); changeColor('_root.char.leg2.outline', _root.charColor[scheme][0]); changeColor('_root.char.leg2.fill', _root.charColor[scheme][1]); changeColor('_root.char.leg2.shade', _root.charColor[scheme][2]); _root.char.foot1.horseshoe.gotoAndStop(scheme + 1); _root.char.foot2.horseshoe.gotoAndStop(scheme + 1); _root.char.groin.gotoAndStop(String(scheme) + 'a'); _root.char.crotch.gotoAndStop(String(scheme) + 'a'); _root.char.vulvaupper.gotoAndStop(String(scheme) + 'a'); _root.char.vulvainner.gotoAndStop(String(scheme) + 'a'); _root.char.vulvalower.gotoAndStop(String(scheme) + 'a'); _root.char.vulvalabia.gotoAndStop(String(scheme) + 'a'); _root.char.vulvapussy.gotoAndStop(String(scheme) + 'a'); } function gotoEveryPart(frame) { _root.char.leg1.gotoAndStop(frame); _root.char.leg2.gotoAndStop(frame); _root.char.foot1.gotoAndStop(frame); _root.char.foot2.gotoAndStop(frame); _root.char.tummy.gotoAndStop(frame); _root.char.groin.gotoAndStop(frame); _root.char.butt1.gotoAndStop(frame); _root.char.butt2.gotoAndStop(frame); _root.recolorGotoPart(_root.CharacterSkin); } function recolorHooves(scheme) { changeColor('_root.char.hoof1.hoof2.outline', _root.charColor[scheme][0]); changeColor('_root.char.hoof1.hoof2.fill', _root.charColor[scheme][1]); changeColor('_root.char.hoof1.hoof2.shade', _root.charColor[scheme][2]); changeColor('_root.char.hoof2.outline', _root.charColor[scheme][0]); changeColor('_root.char.hoof2.fill', _root.charColor[scheme][1]); changeColor('_root.char.hoof2.shade', _root.charColor[scheme][2]); changeColor('_root.char.hoof1.hoof2.outline2', _root.charColor[scheme][0]); changeColor('_root.char.hoof1.hoof2.fill2', _root.charColor[scheme][1]); changeColor('_root.char.hoof1.hoof2.shade2', _root.charColor[scheme][2]); changeColor('_root.char.hoof2.outline2', _root.charColor[scheme][0]); changeColor('_root.char.hoof2.fill2', _root.charColor[scheme][1]); changeColor('_root.char.hoof2.shade2', _root.charColor[scheme][2]); } stop(); endGameSession(); myMenu.builtInItems.zoom = true; var Phase = 'idle'; var PhaseType = 'pussy'; var PhaseSpeed = 1; this.char.bg.gotoAndStop(sexScene); var CharacterSkin = charSelected; var maleType = 1; if (_root.maleType == 1) { _root.char.malearm1.gotoAndStop(_root.maleType); _root.char.malearm2.gotoAndStop(_root.maleType); _root.char.malearm1b.gotoAndStop(3); _root.char.malearm2b.gotoAndStop(3); } else { _root.char.malearm1.gotoAndStop(3); _root.char.malearm2.gotoAndStop(3); _root.char.malearm1b.gotoAndStop(_root.maleType); _root.char.malearm2b.gotoAndStop(_root.maleType); } setColor(); _root.char.foot1.stop(); _root.char.foot2.stop(); _root.char.leg1.stop(); _root.char.leg2.stop(); _root.char.butt1.stop(); _root.char.butt2.stop(); _root.char.tummy.stop(); _root.char.groin.stop(); _root.char.hoof1.stop(); _root.char.hoof2.stop(); if (_root.CrotchBoobs == 1) { _root.char.crotchboobs.gotoAndStop(String(CharacterSkin) + 'a'); } else { _root.char.crotchboobs.gotoAndStop('disabled'); } if (_root.FutaMode == 1) { _root.char.cock.gotoAndStop(String(CharacterSkin) + 'a'); _root.char.balls.gotoAndStop(String(CharacterSkin) + 'a'); } else { if (_root.FutaMode == 2) { _root.char.cock.gotoAndStop(String(CharacterSkin) + 'a'); _root.char.balls.gotoAndStop('disabled'); } else { _root.char.cock.gotoAndStop('disabled'); _root.char.balls.gotoAndStop('disabled'); } } var moveDemHooves = true; } movieClip 2904 { } movieClip 2907 { frame 3 { gotoAndStop(1); } } movieClip 2909 { frame 1 { gotoAndStop(2); } } movieClip 2911 { } movieClip 2913 { } movieClip 2915 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 2917 { frame 1 { gotoAndStop(2); } } movieClip 2919 { } movieClip 2921 { } movieClip 2923 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 2925 { } movieClip 2927 { } movieClip 2929 { } movieClip 2931 { } movieClip 2932 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 2934 { } movieClip 2936 { } movieClip 2938 { } movieClip 2940 { } movieClip 2941 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 2943 { } movieClip 2944 { frame 1 { stop(); } frame 4 { gotoAndStop(1); } } movieClip 2946 { } movieClip 2948 { } movieClip 2950 { } button 2951 { on (release) { _root.moveDemHooves = true; } } movieClip 2956 { frame 1 { stop(); } frame 5 { gotoAndStop(1); } } movieClip 2962 { frame 1 { stop(); } frame 6 { gotoAndStop(1); } } movieClip 2963 { } movieClip 2965 { } movieClip 2967 { } movieClip 2969 { } movieClip 2971 { } movieClip 2973 { } movieClip 2975 { } movieClip 2976 { } movieClip 2978 { } movieClip 2980 { } movieClip 2982 { } movieClip 2984 { } movieClip 2986 { } movieClip 2988 { } movieClip 2989 { } movieClip 2991 { } movieClip 2993 { } movieClip 2995 { } movieClip 2997 { } movieClip 2999 { } movieClip 3001 { } movieClip 3002 { } movieClip 3007 { } movieClip 3012 { frame 1 { gotoAndStop(_root.CharacterSkin + 'a'); } } movieClip 3014 { } movieClip 3016 { } movieClip 3018 { } movieClip 3020 { } movieClip 3021 { } movieClip 3023 { } movieClip 3025 { } movieClip 3027 { } movieClip 3029 { } movieClip 3030 { } movieClip 3032 { } movieClip 3034 { } movieClip 3036 { } movieClip 3038 { } movieClip 3039 { } movieClip 3041 { } movieClip 3043 { } movieClip 3045 { } movieClip 3047 { } movieClip 3048 { } movieClip 3049 { frame 2 { stop(); } } movieClip 3055 { } movieClip 3060 { frame 1 { stop(); } frame 6 { gotoAndStop(1); } } movieClip 3061 { frame 1 { gotoAndStop(_root.Stockings); } frame 7 { gotoAndStop(1); } } movieClip 3077 { instance pubes of movieClip 3061 { onClipEvent (release) { nextFrame(); } } } movieClip 3079 { } movieClip 3081 { } movieClip 3083 { } movieClip 3086 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3089 { } movieClip 3091 { } movieClip 3093 { } movieClip 3096 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3097 { } movieClip 3100 { } movieClip 3102 { } movieClip 3104 { } movieClip 3107 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3109 { } movieClip 3111 { } movieClip 3113 { } movieClip 3116 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3117 { } movieClip 3122 { } movieClip 3127 { } movieClip 3132 { } movieClip 3134 { } movieClip 3136 { } movieClip 3138 { } movieClip 3141 { } movieClip 3143 { } movieClip 3145 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3147 { } movieClip 3149 { } movieClip 3151 { } movieClip 3153 { } movieClip 3154 { } movieClip 3156 { } movieClip 3158 { } movieClip 3160 { } movieClip 3162 { } movieClip 3165 { } movieClip 3167 { } movieClip 3169 { } movieClip 3171 { } movieClip 3173 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3176 { } movieClip 3180 { frame 1 { gotoAndStop(_root.CharacterSkin + 'a'); } } movieClip 3185 { } movieClip 3188 { } movieClip 3192 { } movieClip 3197 { frame 2 { stop(); } } movieClip 3199 { frame 2 { stop(); } } movieClip 3201 { frame 2 { stop(); } } movieClip 3203 { frame 2 { stop(); } } movieClip 3204 { frame 2 { stop(); } } movieClip 3206 { } movieClip 3208 { } movieClip 3210 { } movieClip 3212 { } movieClip 3213 { frame 2 { stop(); } } movieClip 3215 { } movieClip 3217 { } movieClip 3219 { } movieClip 3220 { } movieClip 3223 { } movieClip 3225 { } movieClip 3227 { } movieClip 3228 { } movieClip 3230 { } movieClip 3232 { } movieClip 3234 { } movieClip 3236 { } movieClip 3238 { } movieClip 3240 { } movieClip 3241 { frame 1 { stop(); } } movieClip 3243 { } movieClip 3245 { } movieClip 3247 { } movieClip 3248 { } movieClip 3250 { } movieClip 3252 { } movieClip 3254 { } movieClip 3256 { } movieClip 3257 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3259 { } movieClip 3261 { } movieClip 3263 { } movieClip 3265 { } movieClip 3266 { } movieClip 3268 { } movieClip 3270 { } movieClip 3272 { } movieClip 3274 { } movieClip 3275 { } movieClip 3277 { frame 1 { gotoAndStop(2); } } movieClip 3279 { } movieClip 3281 { } movieClip 3282 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3284 { frame 1 { gotoAndStop(2); } } movieClip 3286 { } movieClip 3288 { } movieClip 3289 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3291 { } movieClip 3293 { } movieClip 3295 { } movieClip 3300 { } movieClip 3302 { frame 1 { gotoAndStop(_root.CharacterSkin + 1); } } movieClip 3306 { frame 1 { gotoAndStop(_root.StockingsType); } frame 3 { gotoAndStop(1); } } movieClip 3307 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3309 { } movieClip 3311 { } movieClip 3313 { } movieClip 3318 { frame 1 { gotoAndStop(_root.CharacterSkin + 1); } } movieClip 3322 { frame 1 { gotoAndStop(_root.StockingsType); } frame 3 { gotoAndStop(1); } } movieClip 3323 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3324 { frame 1 { this.horseshoe._alpha = _root.horseshoeAlpha; } frame 3 { this.horseshoe._alpha = _root.horseshoeAlpha; } frame 5 { this.horseshoe._alpha = _root.horseshoeAlpha; } } movieClip 3326 { } movieClip 3328 { } movieClip 3330 { } movieClip 3335 { frame 1 { gotoAndStop(_root.CharacterSkin + 1); } } movieClip 3339 { frame 1 { gotoAndStop(_root.StockingsType); } frame 3 { gotoAndStop(1); } } movieClip 3340 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3342 { } movieClip 3344 { } movieClip 3346 { } movieClip 3350 { frame 1 { gotoAndStop(_root.StockingsType); } frame 3 { gotoAndStop(1); } } movieClip 3351 { frame 1 { gotoAndStop(_root.Stockings); } frame 4 { gotoAndStop(1); } } movieClip 3352 { frame 1 { this.horseshoe._alpha = _root.horseshoeAlpha; } frame 3 { this.horseshoe._alpha = _root.horseshoeAlpha; } frame 5 { this.horseshoe._alpha = _root.horseshoeAlpha; } } movieClip 3354 { } movieClip 3356 { } movieClip 3357 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3359 { } movieClip 3361 { } movieClip 3362 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3364 { } movieClip 3366 { } movieClip 3368 { } movieClip 3370 { } movieClip 3371 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3373 { frame 1 { gotoAndStop(2); } } movieClip 3375 { } movieClip 3377 { } movieClip 3378 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3380 { frame 1 { gotoAndStop(2); } } movieClip 3382 { } movieClip 3384 { } movieClip 3385 { frame 1 { gotoAndStop(_root.maleType); } } movieClip 3387 { } movieClip 3388 { 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 80 { _root.gotoEveryPart(5); _root.setMaleType(); } 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 138 { if (_root.PhaseType == 'pussy' && _root.Phase == 'fuck') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType + _root.PhaseSpeed); } else { gotoAndPlay('remove_pussy'); } } frame 144 { _root.setMaleType(); } frame 162 { _root.setMaleType(); } frame 176 { 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 184 { _root.setMaleType(); } frame 186 { _root.gotoEveryPart(3); } frame 188 { _root.gotoEveryPart(5); } frame 199 { 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 207 { _root.setMaleType(); } frame 209 { _root.gotoEveryPart(3); } frame 211 { _root.gotoEveryPart(1); } frame 222 { 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 223 { _root.gotoEveryPart(1); _root.setMaleType(); } frame 262 { 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 286 { _root.setMaleType(); } frame 291 { _root.setMaleType(); } frame 300 { _root.gotoEveryPart(1); _root.setMaleType(); } frame 332 { if (_root.PhaseType == 'anal' && _root.Phase == 'fuck') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType + _root.PhaseSpeed); } else { gotoAndPlay('remove_anal'); } } frame 336 { _root.gotoEveryPart(1); _root.setMaleType(); } frame 356 { if (_root.PhaseType == 'anal' && _root.Phase == 'fuck') { gotoAndPlay(_root.Phase + '_' + _root.PhaseType + _root.PhaseSpeed); } else { gotoAndPlay('remove_anal'); } } frame 363 { _root.setMaleType(); } frame 368 { _root.setMaleType(); } frame 369 { 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 453 { gotoAndPlay(_root.Phase); } } movieClip 3389 { frame 1 { stop(); } frame 12 { gotoAndStop(1); } frame 15 { gotoAndStop(1); } } movieClip 3394 { frame 1 { stop(); } } button 3395 { on (release) { _root.showOptions(); } on (rollOver) { _root.hoverText = 'Extras'; } on (rollOut) { _root.hoverText = ''; } } button 3397 { on (release) { _root.queuemusikBedroom(0); } } button 3398 { on (release) { _root.queuemusikBedroom(1); } } button 3399 { on (release) { _root.queuemusikBedroom(2); } } movieClip 3400 { frame 1 { var dialogueStyle = ''; if (_root.raunchyText == 1) { dialogueStyle = 'Raunchy'; } else { dialogueStyle = 'Normal'; } } } movieClip 3404 { frame 1 { stop(); var Descript = ''; } frame 5 { stop(); } } movieClip 3407 { 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 3409 { } button 3410 { on (release) { _root.changePhase('idle', 1); } } button 3412 { on (release) { _root.changePhase('tease', 1); } } button 3415 { on (release) { if (_root.PhaseType == 'pussy') { _root.PhaseType = 'anal'; } else { _root.PhaseType = 'pussy'; } _root.navigation.navigation.phasetype.gotoAndStop(_root.PhaseType); } } button 3418 { on (release) { _root.changePhase('fuck', 1); } } button 3420 { on (release) { _root.fader.gotoAndPlay('fadeOut'); _root.fadeOutTarget = 'game'; _root.loadGame = true; } } button 3422 { on (release) { _root.changePhase('fuck', 2); } } movieClip 3425 { frame 1 { gotoAndStop(_root.PhaseType); } } movieClip 3430 { frame 1 { gotoAndStop(_root.Phase + _root.PhaseSpeed); } } movieClip 3431 { } movieClip 3434 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } button 3437 { on (release) { _root.CharacterSkin = 0; _root.recolorEveryPart(_root.CharacterSkin); } } button 3438 { on (release) { _root.CharacterSkin = 1; _root.recolorEveryPart(_root.CharacterSkin); } } button 3439 { on (release) { _root.CharacterSkin = 2; _root.recolorEveryPart(_root.CharacterSkin); } } button 3440 { on (release) { _root.CharacterSkin = 3; _root.recolorEveryPart(_root.CharacterSkin); } } movieClip 3443 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 3445 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } movieClip 3450 { frame 34 { stop(); } frame 47 { stop(); _root.gotoAndStop(_root.fadeOutTarget); } frame 58 { stop(); } }




http://swfchan.com/34/168697/info.shtml
Created: 8/8 -2019 21:00:47 Last modified: 8/8 -2019 21:00:47 Server time: 22/12 -2024 02:27:20