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

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

frontier.swf

This is the info page for
Flash #78395

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


ActionScript [AS1/AS2]
Combined Code
movieClip 3 { } movieClip 6 { } movieClip 7 { } movieClip 8 { } movieClip 11 { } movieClip 12 { } movieClip 13 { } movieClip 15 { } movieClip 17 { } movieClip 22 { } movieClip 23 { } movieClip 24 { } movieClip 25 { frame 48 { _parent.gotoAndStop('idle'); } } movieClip 26 { } movieClip 27 { frame 14 { stop(); } } movieClip 28 robot { frame 1 { stop(); } } movieClip 31 { } // unknown tag 88 length 135 movieClip 35 { } movieClip 36 mapPointer { } movieClip 38 { } movieClip 39 mapMark2 { frame 5 { this.removeMovieClip(); } } movieClip 40 mapMark { frame 25 { stop(); } } movieClip 45 { } // unknown tag 88 length 98 button 51 { on (release) { _root.initiateTravel(); this.removeMovieClip(); } } button 53 { on (release) { _root.interrupted = false; this.removeMovieClip(); } } movieClip 54 warning2 { } button 55 { on (release) { _root.interrupted = false; yesFn(); this.removeMovieClip(); } } button 56 { on (release) { _root.interrupted = false; this.removeMovieClip(); } } movieClip 58 warning6 { } button 61 { on (release) { _root.interrupted = false; this.removeMovieClip(); } } movieClip 68 { } movieClip 69 warning5 { } button 71 { on (release) { if (_root.offLoadList.length > 0) { if (_root.offLoadList[0] == 'sam') { switch (random(3)) { case 0: tempNumber = 5 * _root.addRandomCash(); _root.triggerInterrupt3('The man you picked up is a very wealthy investor, and decides to invest in your business. He donates ' + tempNumber + ' G, no strings attached!'); _root.player.cash += tempNumber; break; case 1: tempNumber = _root.addRandomCash(); _root.triggerInterrupt3('The man thanks you for your assistance and donates ' + tempNumber + ' G for your help.'); _root.player.cash += tempNumber; break; case 2: _root.triggerInterrupt3('The injured man thanks you for your assistance, don\'t you feel good about yourself?'); break; case 3: _root.triggerInterrupt3('The injured man is delivered to his home, and thanks you for your help.'); } } } else { _root.interrupted = false; trace('======='); trace(_root.player.location); trace(_root.player.destination); _root.player.location = _root.player.destination; _root.gotoAndStop('homeScreen'); trace(_root.player.location); trace(_root.player.destination); trace('========'); } _root.offLoadList.splice(0, 1); this.removeMovieClip(); } } movieClip 72 warning4 { } button 74 { on (release) { _root.interrupted = false; _root.player.location = _root.player.destination; _root.gotoAndStop('homeScreen'); this.removeMovieClip(); } } movieClip 75 warning3 { } button 76 { on (release) { _root.interrupted = false; this.removeMovieClip(); } } button 78 { on (release) { _root.interrupted = false; _root.killTutorials(); this.removeMovieClip(); } } movieClip 81 warning7 { } movieClip 83 warning { } movieClip 87 { } // unknown tag 88 length 55 movieClip 90 w6 { } movieClip 94 { } movieClip 96 w5 { } movieClip 100 { } movieClip 102 w4 { } movieClip 106 { } movieClip 108 w3 { } movieClip 112 { } movieClip 114 w2 { } movieClip 118 { } movieClip 120 w1 { } movieClip 124 { } movieClip 126 w0 { } movieClip 130 { } movieClip 131 a4 { } movieClip 133 { } movieClip 134 a3 { } movieClip 136 { } movieClip 137 a2 { } movieClip 139 { } movieClip 140 a1 { } movieClip 143 { } movieClip 144 a0 { } movieClip 146 { } movieClip 147 supplies { } movieClip 166 { } movieClip 185 { } movieClip 191 { } movieClip 211 { } movieClip 231 { } movieClip 251 { } movieClip 275 { } movieClip 323 { } movieClip 332 { } movieClip 333 { } movieClip 334 { frame 1 { onEnterFrame = function () { if (!_root.moving) { this.stop(); } else { this.play(); } }; } } movieClip 335 { } movieClip 339 { } movieClip 340 { frame 22 { stop(); } } movieClip 341 { frame 15 { stop(); } } movieClip 354 { frame 48 { stop(); } } movieClip 355 { } movieClip 356 { frame 1 { stop(); } } movieClip 357 injuredPerson { } movieClip 358 thief { } movieClip 360 { } movieClip 361 { } movieClip 362 floatUp { frame 30 { this.removeMovieClip(); } } movieClip 364 { } movieClip 365 { } movieClip 368 { } movieClip 370 { } movieClip 371 { frame 42 { stop(); } } movieClip 375 { } movieClip 376 { frame 31 { stop(); } } movieClip 377 castle { frame 1 { trace('CASTLE LOADED'); } frame 1 { stop(); } } movieClip 380 { } movieClip 381 { } movieClip 382 { } movieClip 385 { } movieClip 386 { } movieClip 387 { } movieClip 390 { } movieClip 391 { } movieClip 392 { } movieClip 395 { } movieClip 396 { } movieClip 397 { } movieClip 400 { } movieClip 401 { } movieClip 402 { } movieClip 405 { } movieClip 406 { } movieClip 407 { } movieClip 408 { frame 1 { stop(); } } movieClip 409 rangeHolder { frame 20 { stop(); } frame 50 { this.removeMovieClip(); } } movieClip 420 { frame 1 { stop(); } } movieClip 421 { } movieClip 422 grassLine { frame 15 { stop(); } frame 30 { this.removeMovieClip(); } } movieClip 424 { } movieClip 426 { } // unknown tag 88 length 107 movieClip 429 { } movieClip 431 { } // unknown tag 88 length 108 movieClip 436 { } // unknown tag 88 length 100 movieClip 442 { } movieClip 445 { } movieClip 446 { frame 739 { _parent.play(); } } button 449 { on (release) { getURL('http://www.armorgames.com/', '_blank'); } } button 453 { on (release) { getURL('http://www.armorgames.com/', '_blank'); } } button 456 { on (release) { _root.gotoMainMenu(); } } button 459 { on (release) { this._parent.removeMovieClip(); } } movieClip 460 { } movieClip 461 millionWin { frame 2 { _root.startSong(13); } frame 343 { stop(); } frame 412 { stop(); } } movieClip 464 { } movieClip 466 { } movieClip 468 { } movieClip 471 { } movieClip 472 worldWin { frame 2 { _root.startSong(13); } frame 343 { stop(); } frame 412 { stop(); } } movieClip 474 { } movieClip 476 { } movieClip 479 { } movieClip 480 enforcerWin { frame 2 { _root.startSong(13); } frame 345 { stop(); } frame 414 { stop(); } } movieClip 482 { } movieClip 485 { } movieClip 486 pirateWin { frame 2 { _root.startSong(13); } frame 343 { stop(); } frame 412 { stop(); } } movieClip 488 { } button 493 { on (release) { _root.gotoMainMenu(); } } movieClip 498 { } movieClip 499 gameOver { frame 2 { _root.startSong(1); } frame 120 { stop(); } } movieClip 500 { } movieClip 501 { frame 1 { this._visible = false; } } movieClip 503 { } movieClip 506 { } movieClip 509 { } movieClip 511 { } movieClip 513 { } movieClip 528 { frame 1 { onEnterFrame = function () { if (_root.moving) { play(); } else { stop(); } }; } } movieClip 529 { } movieClip 530 { frame 1 { onEnterFrame = function () { if (_root.moving) { play(); } else { stop(); } }; } } movieClip 532 { } movieClip 534 { } movieClip 536 { } movieClip 538 { } movieClip 539 { frame 1 { onEnterFrame = function () { if (_root.moving) { play(); } else { stop(); } }; } } movieClip 556 { frame 1 { onEnterFrame = function () { if (_root.moving) { play(); } else { stop(); } }; } } movieClip 558 { } movieClip 559 { } movieClip 560 { } movieClip 562 { } movieClip 564 { } movieClip 565 { frame 1 { onEnterFrame = function () { if (_root.moving) { play(); } else { stop(); } }; } } movieClip 566 { } movieClip 567 { } movieClip 569 { } movieClip 571 { } movieClip 572 { frame 1 { onEnterFrame = function () { if (_root.moving) { play(); } else { stop(); } }; } } movieClip 573 { } movieClip 576 { } movieClip 578 { } movieClip 580 { frame 1 { onEnterFrame = function () { if (_root.moving) { play(); } else { stop(); } }; } } movieClip 582 { } movieClip 587 { frame 1 { onEnterFrame = function () { if (_root.moving) { play(); } else { stop(); } }; } } movieClip 589 { } movieClip 591 { } movieClip 593 { } movieClip 594 { frame 1 { onEnterFrame = function () { if (_root.moving) { play(); } else { stop(); } }; } } movieClip 595 { } movieClip 597 { } movieClip 602 { frame 1 { onEnterFrame = function () { if (_root.moving) { play(); } else { stop(); } }; } } movieClip 603 { } movieClip 604 { frame 1 { onEnterFrame = function () { if (_root.moving) { play(); } else { stop(); } }; } } movieClip 607 { } movieClip 618 { } movieClip 621 { } movieClip 623 { } movieClip 624 { } movieClip 626 { } movieClip 629 { } movieClip 630 { frame 1 { onEnterFrame = function () { if (_root.moving) { play(); } else { stop(); } }; } } movieClip 634 { } movieClip 635 { } movieClip 636 { } movieClip 638 { } movieClip 649 { frame 1 { onEnterFrame = function () { if (_root.moving) { play(); } else { stop(); } }; } } movieClip 650 partySet { frame 1 { stop(); fightLine = true; } } movieClip 655 { } movieClip 658 { } movieClip 660 { } // unknown tag 88 length 67 movieClip 716 { } movieClip 717 { } movieClip 719 { } movieClip 721 { } movieClip 723 { } movieClip 725 { } movieClip 727 { } movieClip 729 { } movieClip 731 { } movieClip 733 { } movieClip 735 { } movieClip 737 { } movieClip 738 { frame 1 { stop(); } } movieClip 739 popBubble { } movieClip 740 blankMC { } movieClip 746 BoundingBox { } movieClip 748 BrdrShdw { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'shadowColor'); } } movieClip 750 BrdrFace { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'buttonColor'); } } movieClip 751 SimpleButtonDown { } movieClip 753 BrdrBlk { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'borderColor'); } } movieClip 755 BrdrHilght { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'highlightColor'); } } movieClip 756 SimpleButtonIn { } movieClip 757 SimpleButtonUp { } movieClip 758 Defaults { #initclip Object.registerClass('Defaults', mx.skins.halo.Defaults); #endinitclip } movieClip 759 UIObjectExtensions { #initclip Object.registerClass('UIObjectExtensions', mx.core.ext.UIObjectExtensions); #endinitclip } movieClip 760 UIObject { #initclip Object.registerClass('UIObject', mx.core.UIObject); #endinitclip frame 1 { stop(); } } button 763 { on (keyPress '<Tab>') { this.tabHandler(); } } movieClip 764 { #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 765 FocusRect { #initclip Object.registerClass('FocusRect', mx.skins.halo.FocusRect); #endinitclip } movieClip 766 FocusManager { #initclip Object.registerClass('FocusManager', mx.managers.FocusManager); #endinitclip frame 1 { stop(); } } movieClip 767 UIComponentExtensions { #initclip Object.registerClass('UIComponentExtensions', mx.core.ext.UIComponentExtensions); #endinitclip } movieClip 768 UIComponent { #initclip Object.registerClass('UIComponent', mx.core.UIComponent); #endinitclip frame 1 { stop(); } } movieClip 769 SimpleButton { #initclip Object.registerClass('SimpleButton', mx.controls.SimpleButton); #endinitclip frame 1 { stop(); } } movieClip 770 Border { #initclip Object.registerClass('Border', mx.skins.Border); #endinitclip frame 1 { stop(); } } movieClip 771 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 772 ButtonSkin { #initclip Object.registerClass('ButtonSkin', mx.skins.halo.ButtonSkin); #endinitclip } movieClip 773 Button { #initclip Object.registerClass('Button', mx.controls.Button); #endinitclip frame 1 { stop(); } instance of movieClip 769 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 774 CustomBorder { #initclip Object.registerClass('CustomBorder', mx.skins.CustomBorder); mx.skins.SkinElement.registerElement('CustomBorder', mx.skins.CustomBorder); #endinitclip frame 1 { } } movieClip 777 ScrollTrack { } movieClip 784 ScrollDownArrowDisabled { } movieClip 786 ScrollThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 788 ScrollThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 789 ScrollDownArrowDown { } movieClip 790 ScrollDownArrowOver { } movieClip 791 ScrollDownArrowUp { } movieClip 797 ScrollThumbBottomDisabled { } movieClip 799 ThumbThemeColor1 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 801 ThumbThemeColor3 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 802 ScrollThumbBottomDown { } movieClip 803 ScrollThumbBottomOver { } movieClip 804 ScrollThumbBottomUp { } movieClip 806 ScrollThumbGripDisabled { } movieClip 808 ThumbThemeColor2 { frame 1 { mx.skins.ColoredSkinElement.setColorStyle(this, 'themeColor'); } } movieClip 809 ScrollThumbGripDown { } movieClip 810 ScrollThumbGripOver { } movieClip 811 ScrollThumbGripUp { } movieClip 813 ScrollThumbMiddleDisabled { } movieClip 814 ScrollThumbMiddleDown { } movieClip 815 { } movieClip 817 { } movieClip 818 ScrollThumbMiddleOver { } movieClip 819 ScrollThumbMiddleUp { } movieClip 820 ScrollThumbTopDisabled { } movieClip 821 ScrollThumbTopDown { } movieClip 822 ScrollThumbTopOver { } movieClip 823 ScrollThumbTopUp { } movieClip 824 ScrollTrackDisabled { } movieClip 825 ScrollUpArrowDisabled { } movieClip 826 ScrollUpArrowDown { } movieClip 827 ScrollUpArrowOver { } movieClip 828 ScrollUpArrowUp { } movieClip 829 BtnDownArrow { #initclip Object.registerClass('BtnDownArrow', mx.controls.SimpleButton); #endinitclip } movieClip 830 BtnUpArrow { #initclip Object.registerClass('BtnUpArrow', mx.controls.SimpleButton); #endinitclip } movieClip 831 ScrollBarAssets { } movieClip 832 VScrollBar { #initclip Object.registerClass('VScrollBar', mx.controls.VScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 773 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 769 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 833 HScrollBar { #initclip Object.registerClass('HScrollBar', mx.controls.HScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 773 Button { onClipEvent (initialize) { icon = ''; label = 'Button'; labelPlacement = 'right'; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 769 SimpleButton { onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 834 UIScrollBar { #initclip Object.registerClass('UIScrollBar', mx.controls.UIScrollBar); #endinitclip frame 1 { stop(); } instance of movieClip 832 VScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 833 HScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 866 View { #initclip Object.registerClass('View', mx.core.View); #endinitclip frame 1 { stop(); } } movieClip 867 ScrollView { #initclip Object.registerClass('ScrollView', mx.core.ScrollView); #endinitclip frame 1 { stop(); } instance of movieClip 833 HScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } instance of movieClip 832 VScrollBar { onClipEvent (initialize) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 868 TextArea { #initclip Object.registerClass('TextArea', mx.controls.TextArea); #endinitclip frame 1 { stop(); } } frame 1 { function muteHandler() { mute = !mute; if (mute) { sounderSounder.setVolume(0); } else { sounderSounder.setVolume(100); } } function saveGame() { if (!globalSaving) { trace('>>>NO SAVE'); return undefined; } trace(player); savefile.data.player = player; savefile.data.saveCapable = true; savefile.data.trade = trade; savefile.data.world = world; savefile.flush(); trace('>>>SAVE'); trace(savefile.data.saveCapable); } function loadGame() { trace('====='); trace(savefile.data.saveCapable); trace(savefile.data.player); trace(savefile.data.world); trace(savefile.data.trade); trace('====='); if (savefile.data.saveCapable == true) { trace('>>>>>LOADING'); trade = savefile.data.trade; world = savefile.data.world; player = savefile.data.player; startSong(world['town' + player.location].nature); trace(world['town' + player.location].nature); gotoAndStop('homeScreen'); } else { trace('>>>>>COULD NOT FIND SAVE GAME'); saveGame(); } } function eraseData() { trace('<>>>>NEW DATA'); savefile.data.saveCapable = false; savefile.flush(); gotoAndPlay('newData'); } var savefile = SharedObject.getLocal('frontierRPG'); stop(); var globalSaving = true; savefile.onStatus = function (dat) { for (var v2 in dat) { if (dat[v2] == 'SharedObject.Flush.Failed') { trace('NO SAVE'); globalSaving = false; return undefined; } if (dat[v2] == 'SharedObject.Flush.Success') { trace('OK SAVE'); globalSaving = true; saveGame(); return undefined; } } }; var sounderSounder = new Sound(this); var mute = false; } movieClip 871 { } movieClip 872 { } movieClip 873 { } movieClip 874 { } // unknown tag 88 length 63 movieClip 878 { } // unknown tag 88 length 83 button 885 { on (release) { _parent.killAd(); _root.play(); } } movieClip 886 { frame 1 { stop(); act = false; } frame 10 { stop(); } } // unknown tag 88 length 231 movieClip 890 { } movieClip 891 { } movieClip 893 { } movieClip 897 { } movieClip 899 { } movieClip 905 { frame 1 { function killAd() { removeMovieClip(adBox); } var CPMStarPoolID = 1052; var CPMStarSubPoolID = 5; System.security.allowDomain('server.cpmstar.com'); adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?poolid=' + CPMStarPoolID + '&subpoolid=' + CPMStarSubPoolID); } frame 1 { function goArmor() { getURL('http://armorgames.com/', '_blank'); } function dist(x1, y1, x2, y2) { return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); } stop(); var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); this.menu = myMenu; k = 0; onEnterFrame = function () { var v3 = Math.floor(framesLoaded / 4) - 1; afw._x -= 0.3 * ((afw._x - this['b' + v3]._x) / 2); afw._y -= 0.3 * ((afw._y - this['b' + v3]._y) / 2); cat.removeMovieClip(); createEmptyMovieClip('cat', k++); cat.lineStyle(1, 15132390, 100); loaded = _root.getBytesLoaded(); total = _root.getBytesTotal(); framesLoaded = Math.ceil((loaded / total) * 100); if (framesLoaded >= 100 && playMe.act == false) { playMe.act = true; playMe.play(); } perDisp = framesLoaded + '%'; i = 0; while (i < 25) { if (framesLoaded >= i * 4) { this['b' + i]._alpha -= 0.08 * ((this['b' + i]._alpha - 100) / 2); this['b' + i]._x -= 0.3 * ((this['b' + i]._x - this['b' + i].mainX) / 2); this['b' + i]._y -= 0.3 * ((this['b' + i]._y - this['b' + i].mainY) / 2); if (i != 0) { } } base = 1.5; if (this['b' + i].hitTest(_xmouse, _ymouse)) { if (_xmouse - this['b' + i]._x > 0) { t = 0; while (t < 25) { this['b' + (i - t)]._x -= base / (t + 1); this['b' + (i + t)]._x -= base / (t + 1); ++t; } } else { if (_xmouse - this['b' + i]._x <= 0) { t = 0; while (t < 25) { this['b' + (i - t)]._x += base / (t + 1); this['b' + (i + t)]._x += base / (t + 1); ++t; } } } if (_ymouse - this['b' + i]._y > 0) { t = 0; while (t < 25) { this['b' + (i - t)]._y -= base / (t + 1); this['b' + (i + t)]._y -= base / (t + 1); ++t; } } else { if (_ymouse - this['b' + i]._y <= 0) { t = 0; while (t < 25) { this['b' + (i - t)]._y += base / (t + 1); this['b' + (i + t)]._y += base / (t + 1); ++t; } } } } ++i; } }; i = 0; while (i < 25) { this['b' + i].mainX = this['b' + i]._x; this['b' + i].mainY = this['b' + i]._y; this['b' + i]._x = random(Stage.width); this['b' + i]._y = random(Stage.height); this['b' + i]._alpha = 0; this['b' + i].act = true; ++i; } } } movieClip 741 __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.127'; 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 742 __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.127'; 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 743 __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 744 __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.127'; 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 835 __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 836 __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 837 __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 838 __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 839 __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 840 __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.127'; 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 841 __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 842 __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.127'; 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 843 __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.127'; v2.className = 'VScrollBar'; v2.minusMode = 'Up'; v2.plusMode = 'Down'; v2.minMode = 'AtTop'; v2.maxMode = 'AtBottom'; ASSetPropFlags(mx.controls.VScrollBar.prototype, null, 1); } #endinitclip } movieClip 844 __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.127'; 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 845 __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 846 __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 847 __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 848 __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 849 __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 850 __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 851 __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 852 __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.127'; 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 853 __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 854 __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 855 __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 856 __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 857 __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.127'; 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 858 __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.127'; 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 859 __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 860 __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.127'; 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 } movieClip 861 __Packages.mx.core.View { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.View) { var v1 = function () { super(); }; mx.core.View = v1; var v2 = new mx.core.UIComponent(); mx.core.View.prototype = v2; v2.init = function () { super.init(); this.tabChildren = true; this.tabEnabled = false; this.boundingBox_mc._visible = false; this.boundingBox_mc._height = 0; this.boundingBox_mc._width = 0; }; v2.size = function () { this.border_mc.move(0, 0); this.border_mc.setSize(this.__get__width(), this.__get__height()); this.doLayout(); }; v2.draw = function () { this.size(); }; v2.__get__numChildren = function () { var v3 = mx.core.View.childNameBase; var v2 = 0; while (!false) { if (this[v3 + v2] == undefined) { return v2; } ++v2; } return -1; }; v2.__get__tabIndex = function () { return this.tabEnabled ? this.__tabIndex : undefined; }; v2.__set__tabIndex = function (n) { this.__tabIndex = n; return this.__get__tabIndex(); }; v2.addLayoutObject = function (object) {}; v2.createChild = function (className, instanceName, initProps) { if (this.depth == undefined) { this.depth = 1; } var v2; if (typeof className == 'string') { v2 = this.createObject(className, instanceName, this.depth++, initProps); } else { v2 = this.createClassObject(className, instanceName, this.depth++, initProps); } if (v2 == undefined) { v2 = this.loadExternal(className, this._loadExternalClass, instanceName, this.depth++, initProps); this.addLayoutObject(v2); return v2; } this[mx.core.View.childNameBase + this.__get__numChildren()] = v2; v2._complete = true; this.childLoaded(v2); this.addLayoutObject(v2); return v2; }; v2.getChildAt = function (childIndex) { return this[mx.core.View.childNameBase + childIndex]; }; v2.destroyChildAt = function (childIndex) { if (!(childIndex >= 0 && childIndex < this.__get__numChildren())) { return undefined; } var v4 = mx.core.View.childNameBase + childIndex; var v6 = this.__get__numChildren(); var v3; for (v3 in this) { if (v3 == v4) { v4 = ''; this.destroyObject(v3); break; } } var v2 = Number(childIndex); while (v2 < v6 - 1) { this[mx.core.View.childNameBase + v2] = this[mx.core.View.childNameBase + (v2 + 1)]; ++v2; } delete this[mx.core.View.childNameBase + (v6 - 1)]; --this.depth; }; v2.initLayout = function () { if (!this.hasBeenLayedOut) { this.doLayout(); } }; v2.doLayout = function () { this.hasBeenLayedOut = true; }; v2.createChildren = function () { if (this.border_mc == undefined) { this.border_mc = this.createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {'styleName': this}); } this.doLater(this, 'initLayout'); }; v2.convertToUIObject = function (obj) {}; v2.childLoaded = function (obj) { this.convertToUIObject(obj); }; v1.extension = function () { mx.core.ExternalContent.enableExternalContent(); }; v1.symbolName = 'View'; v1.symbolOwner = mx.core.View; v1.version = '2.0.2.127'; v2.className = 'View'; v1.childNameBase = '_child'; v2.hasBeenLayedOut = false; v2._loadExternalClass = 'UIComponent'; v2.addProperty('numChildren', v2.__get__numChildren, function () {}); v2.addProperty('tabIndex', v2.__get__tabIndex, v2.__set__tabIndex); ASSetPropFlags(mx.core.View.prototype, null, 1); } #endinitclip } movieClip 862 __Packages.mx.core.ScrollView { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ScrollView) { var v1 = function () { super(); }; mx.core.ScrollView = v1; var v2 = new mx.core.View(); mx.core.ScrollView.prototype = v2; v2.getHScrollPolicy = function (Void) { return this.__hScrollPolicy; }; v2.setHScrollPolicy = function (policy) { this.__hScrollPolicy = policy.toLowerCase(); if (this.__width == undefined) { return undefined; } this.setScrollProperties(this.numberOfCols, this.columnWidth, this.rowC, this.rowH, this.heightPadding, this.widthPadding); }; v2.__get__hScrollPolicy = function () { return this.getHScrollPolicy(); }; v2.__set__hScrollPolicy = function (policy) { this.setHScrollPolicy(policy); return this.__get__hScrollPolicy(); }; v2.getVScrollPolicy = function (Void) { return this.__vScrollPolicy; }; v2.setVScrollPolicy = function (policy) { this.__vScrollPolicy = policy.toLowerCase(); if (this.__width == undefined) { return undefined; } this.setScrollProperties(this.numberOfCols, this.columnWidth, this.rowC, this.rowH, this.heightPadding, this.widthPadding); }; v2.__get__vScrollPolicy = function () { return this.getVScrollPolicy(); }; v2.__set__vScrollPolicy = function (policy) { this.setVScrollPolicy(policy); return this.__get__vScrollPolicy(); }; v2.__get__hPosition = function () { return this.getHPosition(); }; v2.__set__hPosition = function (pos) { this.setHPosition(pos); return this.__get__hPosition(); }; v2.getHPosition = function (Void) { return this.__hPosition; }; v2.setHPosition = function (pos) { this.hScroller.__set__scrollPosition(pos); this.__hPosition = pos; }; v2.__get__vPosition = function () { return this.getVPosition(); }; v2.__set__vPosition = function (pos) { this.setVPosition(pos); return this.__get__vPosition(); }; v2.getVPosition = function (Void) { return this.__vPosition; }; v2.setVPosition = function (pos) { this.vScroller.__set__scrollPosition(pos); this.__vPosition = pos; }; v2.__get__maxVPosition = function () { var v2 = this.vScroller.maxPos; return (v2 == undefined) ? 0 : v2; }; v2.__get__maxHPosition = function () { return this.getMaxHPosition(); }; v2.__set__maxHPosition = function (pos) { this.setMaxHPosition(pos); return this.__get__maxHPosition(); }; v2.getMaxHPosition = function (Void) { if (this.__maxHPosition != undefined) { return this.__maxHPosition; } var v2 = this.hScroller.maxPos; return (v2 == undefined) ? 0 : v2; }; v2.setMaxHPosition = function (pos) { this.__maxHPosition = pos; }; v2.setScrollProperties = function (colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) { var v3 = this.getViewMetrics(); if (hPadding == undefined) { hPadding = 0; } if (wPadding == undefined) { wPadding = 0; } this.propsInited = true; delete this.scrollAreaChanged; this.heightPadding = hPadding; this.widthPadding = wPadding; if (colWidth == 0) { colWidth = 1; } if (rwHeight == 0) { rwHeight = 1; } var v5 = Math.ceil((this.__width - v3.left - v3.right - this.widthPadding) / colWidth); if (this.__hScrollPolicy == 'on' || v5 < colCount && this.__hScrollPolicy == 'auto') { if (this.hScroller == undefined || this.specialHScrollCase) { delete this.specialHScrollCase; this.hScroller = this.createObject('HScrollBar', 'hSB', 1001); this.hScroller.__set__lineScrollSize(20); this.hScroller.scrollHandler = this.scrollProxy; this.hScroller.__set__scrollPosition(this.__hPosition); this.scrollAreaChanged = true; } if (this.numberOfCols != colCount || this.columnWidth != colWidth || this.viewableColumns != v5 || this.scrollAreaChanged) { this.hScroller.setScrollProperties(v5, 0, colCount - v5); this.viewableColumns = v5; this.numberOfCols = colCount; this.columnWidth = colWidth; } } else { if ((this.__hScrollPolicy == 'auto' || this.__hScrollPolicy == 'off') && this.hScroller != undefined) { this.hScroller.removeMovieClip(); delete this.hScroller; this.scrollAreaChanged = true; } } if (this.heightPadding == undefined) { this.heightPadding = 0; } var v4 = Math.ceil((this.__height - v3.top - v3.bottom - this.heightPadding) / rwHeight); var v8 = (this.__height - v3.top - v3.bottom) % rwHeight != 0; if (this.__vScrollPolicy == 'on' || v4 < rwCount + v8 && this.__vScrollPolicy == 'auto') { if (this.vScroller == undefined) { this.vScroller = this.createObject('VScrollBar', 'vSB', 1002); this.vScroller.scrollHandler = this.scrollProxy; this.vScroller.__set__scrollPosition(this.__vPosition); this.scrollAreaChanged = true; this.rowH = 0; } if (this.rowC != rwCount || this.rowH != rwHeight || this.viewableRows + v8 != v4 + this.oldRndUp || this.scrollAreaChanged) { this.vScroller.setScrollProperties(v4, 0, rwCount - v4 + v8); this.viewableRows = v4; this.rowC = rwCount; this.rowH = rwHeight; this.oldRndUp = v8; } } else { if ((this.__vScrollPolicy == 'auto' || this.__vScrollPolicy == 'off') && this.vScroller != undefined) { this.vScroller.removeMovieClip(); delete this.vScroller; this.scrollAreaChanged = true; } } this.numberOfCols = colCount; this.columnWidth = colWidth; if (this.scrollAreaChanged) { this.doLayout(); var v2 = this.__viewMetrics; var v12 = (this.owner != undefined) ? this.owner : this; v12.layoutContent(v2.left, v2.top, this.columnWidth * this.numberOfCols - v2.left - v2.right, this.rowC * this.rowH, this.__width - v2.left - v2.right, this.__height - v2.top - v2.bottom); } if (!this.enabled) { this.setEnabled(false); } }; v2.getViewMetrics = function (Void) { var v2 = this.__viewMetrics; var v3 = this.border_mc.__get__borderMetrics(); v2.left = v3.left; v2.right = v3.right; if (this.vScroller != undefined) { v2.right += this.vScroller.minWidth; } v2.top = v3.top; if (this.hScroller == undefined && (this.__hScrollPolicy == 'on' || this.__hScrollPolicy == true)) { this.hScroller = this.createObject('FHScrollBar', 'hSB', 1001); this.specialHScrollCase = true; } v2.bottom = v3.bottom; if (this.hScroller != undefined) { v2.bottom += this.hScroller.minHeight; } return v2; }; v2.doLayout = function (Void) { var v10 = this.__get__width(); var v8 = this.__get__height(); delete this.invLayout; this.__viewMetrics = this.getViewMetrics(); var v3 = this.__viewMetrics; var v2 = v3.left; var v9 = v3.right; var v5 = v3.top; var v11 = v3.bottom; var v7 = this.hScroller; var v6 = this.vScroller; v7.setSize(v10 - v2 - v9, v7.minHeight + 0); v7.move(v2, v8 - v11); v6.setSize(v6.minWidth + 0, v8 - v5 - v11); v6.move(v10 - v9, v5); var v4 = this.mask_mc; v4._width = v10 - v2 - v9; v4._height = v8 - v5 - v11; v4._x = v2; v4._y = v5; }; v2.createChild = function (id, name, props) { var v2 = super.createChild(id, name, props); return v2; }; v2.init = function (Void) { super.init(); this.__viewMetrics = new Object(); if (_global.__SVMouseWheelManager == undefined) { _global.__SVMouseWheelManager = new Object(); var v4 = _global.__SVMouseWheelManager; v4.onMouseWheel = this.__onMouseWheel; Mouse.addListener(v4); } }; v2.__onMouseWheel = function (delta, scrollTarget) { var v4 = scrollTarget; var v1; while (v4 != undefined) { if (v4 instanceof mx.core.ScrollView) { v1 = v4; false; } v4 = v4._parent; } if (v1 != undefined) { v4 = delta <= 0 ? 1 : -1; var v2 = v1.vScroller.lineScrollSize; if (v2 == undefined) { v2 = 0; } v2 = Math.max(Math.abs(delta), v2); var v3 = v1.vPosition + v2 * v4; v1.vPosition = Math.max(0, Math.min(v3, v1.maxVPosition)); v1.dispatchEvent({'type': 'scroll', 'direction': 'vertical', 'position': v1.vPosition}); } }; v2.createChildren = function (Void) { super.createChildren(); if (this.mask_mc == undefined) { this.mask_mc = this.createObject('BoundingBox', 'mask_mc', this.MASK_DEPTH); } this.mask_mc._visible = false; }; v2.invalidate = function (Void) { super.invalidate(); }; v2.draw = function (Void) { this.size(); }; v2.size = function (Void) { super.size(); }; v2.scrollProxy = function (docObj) { this._parent.onScroll(docObj); }; v2.onScroll = function (docObj) { var v3 = docObj.target; var v2 = v3.scrollPosition; if (v3 == this.vScroller) { var v4 = 'vertical'; var v5 = '__vPosition'; } else { var v4 = 'horizontal'; var v5 = '__hPosition'; } this[v5] = v2; this.dispatchEvent({'type': 'scroll', 'direction': v4, 'position': v2}); }; v2.setEnabled = function (v) { this.hScroller.enabled = v; this.vScroller.enabled = this.hScroller.enabled; }; v2.childLoaded = function (obj) { super.childLoaded(obj); obj.setMask(this.mask_mc); }; v1.symbolName = 'ScrollView'; v1.symbolOwner = mx.core.ScrollView; v1.version = '2.0.2.127'; v2.className = 'ScrollView'; v2.__vScrollPolicy = 'auto'; v2.__hScrollPolicy = 'off'; v2.__vPosition = 0; v2.__hPosition = 0; v2.numberOfCols = 0; v2.rowC = 0; v2.columnWidth = 1; v2.rowH = 0; v2.heightPadding = 0; v2.widthPadding = 0; v2.MASK_DEPTH = 10000; v2.addProperty('hPosition', v2.__get__hPosition, v2.__set__hPosition); v2.addProperty('hScrollPolicy', v2.__get__hScrollPolicy, v2.__set__hScrollPolicy); v2.addProperty('maxHPosition', v2.__get__maxHPosition, v2.__set__maxHPosition); v2.addProperty('maxVPosition', v2.__get__maxVPosition, function () {}); v2.addProperty('vPosition', v2.__get__vPosition, v2.__set__vPosition); v2.addProperty('vScrollPolicy', v2.__get__vScrollPolicy, v2.__set__vScrollPolicy); ASSetPropFlags(mx.core.ScrollView.prototype, null, 1); } #endinitclip } movieClip 863 __Packages.mx.controls.TextArea { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.controls) { _global.mx.controls = new Object(); } if (!_global.mx.controls.TextArea) { var v1 = function () { super(); }; mx.controls.TextArea = v1; var v2 = new mx.core.ScrollView(); mx.controls.TextArea.prototype = v2; v2.__get__maxChars = function () { return this.label.maxChars; }; v2.__set__maxChars = function (x) { this.label.maxChars = x; return this.__get__maxChars(); }; v2.__get__length = function () { return this.label.length; }; v2.__get__restrict = function () { return this.label.restrict; }; v2.__set__restrict = function (s) { this.label.restrict = (s == '') ? null : s; return this.__get__restrict(); }; v2.__get__wordWrap = function () { return this.label.wordWrap; }; v2.__set__wordWrap = function (s) { this.label.wordWrap = s; this.invalidate(); return this.__get__wordWrap(); }; v2.__get__editable = function () { return this.__editable; }; v2.__set__editable = function (x) { this.__editable = x; this.label.type = x ? 'input' : 'dynamic'; return this.__get__editable(); }; v2.__get__password = function () { return this.label.password; }; v2.__set__password = function (s) { this.label.password = s; return this.__get__password(); }; v2.__get__html = function () { return this.getHtml(); }; v2.__set__html = function (value) { this.setHtml(value); return this.__get__html(); }; v2.getHtml = function () { return this.label.html; }; v2.setHtml = function (value) { if (value != this.label.html) { this.label.html = value; } }; v2.__get__text = function () { return this.getText(); }; v2.__set__text = function (t) { this.setText(t); return this.__get__text(); }; v2.getText = function () { if (this.initializing) { return this.initText; } var v2 = this.label; if (v2.html == true) { return v2.htmlText; } return v2.text; }; v2.setText = function (t) { if (this.initializing) { this.initText = t; } else { var v2 = this.label; if (v2.html == true) { v2.htmlText = t; } else { v2.text = t; } this.invalidate(); } this.dispatchValueChangedEvent(t); }; v2.__get__hPosition = function () { return this.getHPosition(); }; v2.__set__hPosition = function (pos) { this.setHPosition(pos); this.label.hscroll = pos; this.label.background = false; return this.__get__hPosition(); }; v2.__get__vPosition = function () { return this.getVPosition(); }; v2.__set__vPosition = function (pos) { this.setVPosition(pos); this.label.scroll = pos + 1; this.label.background = false; return this.__get__vPosition(); }; v2.__get__maxVPosition = function () { var v2 = this.label.maxscroll - 1; return (v2 == undefined) ? 0 : v2; }; v2.__get__maxHPosition = function () { var v2 = this.label.maxhscroll; return (v2 == undefined) ? 0 : v2; }; v2.init = function (Void) { super.init(); this.label.styleName = this; this._color = mx.core.UIObject.textColorList; this.focusTextField = this.label; this.label.owner = this; this.label.onSetFocus = function (x) { this._parent.onSetFocus(x); }; this.label.onKillFocus = function (x) { this._parent.onKillFocus(x); }; this.label.drawFocus = function (b) { this._parent.drawFocus(b); }; this.label.onChanged = function () { this.owner.adjustScrollBars(); this.owner.dispatchEvent({'type': 'change'}); this.owner.dispatchValueChangedEvent(this.owner.text); }; this.label.onScroller = function () { this.owner.hPosition = this.hscroll; this.owner.vPosition = this.scroll - 1; }; if (this.__get__text() == undefined) { this.__set__text(''); } }; v2.createChildren = function (Void) { super.createChildren(); this.label.autoSize = 'none'; }; v2.layoutContent = function (x, y, totalW, totalH, displayW, displayH) { var v2 = this.label; if (this.tfx != x || this.tfy != y || this.tfw != displayW || this.tfh != displayH) { this.tfx = x; this.tfy = y; this.tfw = displayW; this.tfh = displayH; v2.move(this.tfx, this.tfy); v2.setSize(this.tfw, this.tfh); this.doLater(this, 'adjustScrollBars'); } }; v2.scrollChanged = function (Void) { var v2 = Selection; if (v2.lastBeginIndex != undefined) { this.restoreSelection(); } this.label.background = false; }; v2.onScroll = function (docObj) { var v3 = this.label; super.onScroll(docObj); v3.hscroll = this.__get__hPosition() + 0; v3.scroll = this.__get__vPosition() + 1; this._vpos = v3.scroll; this._hpos = v3.hscroll; v3.background = false; if (this.hookedV != true) { this.vScroller.addEventListener('scrollChanged', this); this.hookedV = true; } if (this.hookedH != true) { this.hScroller.addEventListener('scrollChanged', this); this.hookedH = true; } }; v2.size = function (Void) { var v3 = this.getViewMetrics(); var v7 = v3.left + v3.right; var v4 = v3.top + v3.bottom; var v6 = v3.left; var v5 = v3.top; this.tfx = v6; this.tfy = v5; this.tfw = this.__get__width() - v7; this.tfh = this.__get__height() - v4; super.size(); this.label.move(this.tfx, this.tfy); this.label.setSize(this.tfw, this.tfh); if (this.__get__height() <= 40) { this.hScrollPolicy = 'off'; this.vScrollPolicy = 'off'; } this.doLater(this, 'adjustScrollBars'); }; v2.setEnabled = function (enable) { this.vScroller.enabled = enable; this.hScroller.enabled = enable; this.label.type = (this.__get__editable() == false || enable == false) ? 'dynamic' : 'input'; this.label.selectable = enable; var v3 = this.getStyle(enable ? 'color' : 'disabledColor'); if (v3 == undefined) { v3 = enable ? 0 : 8947848; } this.setColor(v3); }; v2.setColor = function (col) { this.label.textColor = col; }; v2.setFocus = function (Void) { Selection.setFocus(this.label); }; v2.onSetFocus = function (x) { var f = Selection.getFocus(); var o = eval(f); if (o != this.label) { Selection.setFocus(this.label); return undefined; } (this.getFocusManager()).defaultPushButtonEnabled = false; this.addEventListener('keyDown', this); super.onSetFocus(x); }; v2.onKillFocus = function (x) { (this.getFocusManager()).defaultPushButtonEnabled = true; this.removeEventListener('keyDown', this); super.onKillFocus(x); }; v2.restoreSelection = function (x) { var v2 = Selection; Selection.setSelection(v2.lastBeginIndex, v2.lastEndIndex); this.label.scroll = this._vpos; this.label.hscroll = this._hpos; }; v2.getLineOffsets = function (Void) { var v16 = this._getTextFormat(); var v18 = v16.getTextExtent2(this.label.text); var v5 = _root._getTextExtent; v5.setNewTextFormat(v16); var v14 = this.label.wordWrap; var v9 = 0; var v7 = this.label._width - 2 - 2; var v12 = new Array(); var v17 = new String(this.label.text); var v15 = v17.split('\r'); var v11 = 0; while (v11 < v15.length) { v12.push(v9); var v4 = v15[v11]; v5.text = v4; var v13 = Math.ceil(v5.textWidth / v7); var v10 = Math.floor(v4.length / v13); var v3; for (;;) { if (!(v14 && v5.textWidth > v7)) break; v3 = v4.indexOf(' ', v10); var v6; if (v3 == -1) { v3 = v4.lastIndexOf(' '); if (v3 == -1) { v3 = v10; } } v6 = v4.substr(0, v3); v5.text = v6; if (v5.textWidth > v7) { while (v5.textWidth > v7) { var v8 = v3; v3 = v4.lastIndexOf(' ', v3 - 1); if (v3 == -1) { v3 = v8 - 1; } v6 = v4.substr(0, v3); v5.text = v6; } } else { if (v5.textWidth < v7) { var v8 = v3; while (v5.textWidth < v7) { v8 = v3; v3 = v4.indexOf(' ', v3 + 1); if (v3 == -1) { if (v4.indexOf(' ', 0) != -1) { break; } else { v3 = v8 + 1; } } v6 = v4.substr(0, v3); v5.text = v6; } v3 = v8; } } v9 += v3; v12.push(v9 + 1); v4 = v4.substr(v3); if (v4.charAt(0) == ' ') { v4 = v4.substr(1, v4.length - 1); v9 += 1; } v5.text = v4; } v9 += v4.length + 1; ++v11; } return v12; }; v2.keyDown = function (e) { var v5 = e.code; if (v5 == 34) { var v6 = this.label.bottomScroll - this.label.scroll + 1; var v3 = this.getLineOffsets(); var v2 = Math.min(this.label.bottomScroll + 1, this.label.maxscroll); if (v2 == this.label.maxscroll) { var v4 = this.label.length; Selection.setSelection(v4, v4); } else { this.label.scroll = v2; Selection.setSelection(v3[v2 - 1], v3[v2 - 1]); } } else { if (v5 == 33) { var v6 = this.label.bottomScroll - this.label.scroll + 1; var v3 = this.getLineOffsets(); var v2 = this.label.scroll - 1; if (v2 < 1) { Selection.setSelection(0, 0); } else { Selection.setSelection(v3[v2 - 1], v3[v2 - 1]); this.label.scroll = Math.max(v2 - v6, 1); } } } }; v2.draw = function (Void) { var v2 = this.label; var v4 = this.getText(); if (this.initializing) { this.initializing = false; delete this.initText; } var v3 = this._getTextFormat(); v2.embedFonts = v3.embedFonts == true; if (v3 != undefined) { v2.setTextFormat(v3); v2.setNewTextFormat(v3); } v2.multiline = true; v2.wordWrap = this.__get__wordWrap() == true; if (v2.html == true) { v2.setTextFormat(v3); v2.htmlText = v4; } else { v2.text = v4; } v2.type = (this.__get__editable() == true) ? 'input' : 'dynamic'; this.size(); v2.background = false; }; v2.adjustScrollBars = function () { var v2 = this.label; var v4 = v2.bottomScroll - v2.scroll + 1; var v3 = v4 + v2.maxscroll - 1; if (v3 < 1) { v3 = 1; } var v5 = 0; if (v2.textWidth + 5 > v2._width) { if (!v2.wordWrap) { v5 = v2._width + v2.maxhscroll; } } else { v2.hscroll = 0; v2.background = false; } if (v2.height / v4 != Math.round(v2.height / v4)) { --v3; } this.setScrollProperties(v5, 1, v3, v2.height / v4); }; v2.setScrollProperties = function (colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) { super.setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding); if (this.vScroller == undefined) { this.hookedV = false; } if (this.hScroller == undefined) { this.hookedH = false; } }; v2.__get__tabIndex = function () { return this.label.tabIndex; }; v2.__set__tabIndex = function (w) { this.label.tabIndex = w; return this.__get__tabIndex(); }; v2.__set___accProps = function (val) { this.label._accProps = val; return this.__get___accProps(); }; v2.__get___accProps = function () { return this.label._accProps; }; v2.__get__styleSheet = function () { return this.label.styleSheet; }; v2.__set__styleSheet = function (v) { this.label.styleSheet = v; return this.__get__styleSheet(); }; v1.symbolName = 'TextArea'; v1.symbolOwner = mx.controls.TextArea; v1.version = '2.0.2.127'; v2.className = 'TextArea'; v2.initializing = true; v2.clipParameters = {'text': 1, 'wordWrap': 1, 'editable': 1, 'maxChars': 1, 'restrict': 1, 'html': 1, 'password': 1}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextArea.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters); v2.__vScrollPolicy = 'auto'; v2.__hScrollPolicy = 'auto'; v2.__editable = true; v2.addProperty('_accProps', v2.__get___accProps, v2.__set___accProps); v2.addProperty('editable', v2.__get__editable, v2.__set__editable); v2.addProperty('hPosition', v2.__get__hPosition, v2.__set__hPosition); v2.addProperty('html', v2.__get__html, v2.__set__html); v2.addProperty('length', v2.__get__length, function () {}); v2.addProperty('maxChars', v2.__get__maxChars, v2.__set__maxChars); v2.addProperty('maxHPosition', v2.__get__maxHPosition, function () {}); v2.addProperty('maxVPosition', v2.__get__maxVPosition, function () {}); v2.addProperty('password', v2.__get__password, v2.__set__password); v2.addProperty('restrict', v2.__get__restrict, v2.__set__restrict); v2.addProperty('styleSheet', v2.__get__styleSheet, v2.__set__styleSheet); v2.addProperty('tabIndex', v2.__get__tabIndex, v2.__set__tabIndex); v2.addProperty('text', v2.__get__text, v2.__set__text); v2.addProperty('vPosition', v2.__get__vPosition, v2.__set__vPosition); v2.addProperty('wordWrap', v2.__get__wordWrap, v2.__set__wordWrap); ASSetPropFlags(mx.controls.TextArea.prototype, null, 1); } #endinitclip } movieClip 869 __Packages.mx.core.ExternalContent { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.ExternalContent) { var v1 = function () {}; mx.core.ExternalContent = v1; var v2 = v1.prototype; v2.loadExternal = function (url, placeholderClassName, instanceName, depth, initProps) { var v2; v2 = this.createObject(placeholderClassName, instanceName, depth, initProps); this[mx.core.View.childNameBase + this.numChildren] = v2; if (this.prepList == undefined) { this.prepList = new Object(); } this.prepList[instanceName] = {'obj': v2, 'url': url, 'complete': false, 'initProps': initProps}; this.prepareToLoadMovie(v2); return v2; }; v2.prepareToLoadMovie = function (obj) { obj.unloadMovie(); this.doLater(this, 'waitForUnload'); }; v2.waitForUnload = function () { var v3; for (v3 in this.prepList) { var v2 = this.prepList[v3]; if (v2.obj.getBytesTotal() == 0) { if (this.loadList == undefined) { this.loadList = new Object(); } this.loadList[v3] = v2; v2.obj.loadMovie(v2.url); delete this.prepList[v3]; this.doLater(this, 'checkLoadProgress'); } else { this.doLater(this, 'waitForUnload'); } } }; v2.checkLoadProgress = function () { var v8 = false; var v3; for (v3 in this.loadList) { var v2 = this.loadList[v3]; v2.loaded = v2.obj.getBytesLoaded(); v2.total = v2.obj.getBytesTotal(); if (v2.total > 0) { v2.obj._visible = false; this.dispatchEvent({'type': 'progress', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); if (v2.loaded == v2.total) { if (this.loadedList == undefined) { this.loadedList = new Object(); } this.loadedList[v3] = v2; delete this.loadList[v3]; this.doLater(this, 'contentLoaded'); } } else { if (v2.total == -1) { if (v2.failedOnce != undefined) { ++v2.failedOnce; if (v2.failedOnce > 3) { this.dispatchEvent({'type': 'complete', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); delete this.loadList[v3]; false; } } else { v2.failedOnce = 0; } } } v8 = true; } if (v8) { this.doLater(this, 'checkLoadProgress'); } }; v2.contentLoaded = function () { var v4; for (v4 in this.loadedList) { var v2 = this.loadedList[v4]; v2.obj._visible = true; v2.obj._complete = true; var v3; for (v3 in v2.initProps) { v2.obj[v3] = v2.initProps[v3]; } this.childLoaded(v2.obj); this.dispatchEvent({'type': 'complete', 'target': v2.obj, 'current': v2.loaded, 'total': v2.total}); delete this.loadedList[v4]; false; } }; v2.convertToUIObject = function (obj) { if (obj.setSize == undefined) { var v2 = mx.core.UIObject.prototype; obj.addProperty('width', v2.__get__width, null); obj.addProperty('height', v2.__get__height, null); obj.addProperty('left', v2.__get__left, null); obj.addProperty('x', v2.__get__x, null); obj.addProperty('top', v2.__get__top, null); obj.addProperty('y', v2.__get__y, null); obj.addProperty('right', v2.__get__right, null); obj.addProperty('bottom', v2.__get__bottom, null); obj.addProperty('visible', v2.__get__visible, v2.__set__visible); obj.move = mx.core.UIObject.prototype.move; obj.setSize = mx.core.UIObject.prototype.setSize; obj.size = mx.core.UIObject.prototype.size; mx.events.UIEventDispatcher.initialize(obj); } }; v1.enableExternalContent = function () {}; v1.classConstruct = function () { var v1 = mx.core.View.prototype; var v2 = mx.core.ExternalContent.prototype; v1.loadExternal = v2.loadExternal; v1.prepareToLoadMovie = v2.prepareToLoadMovie; v1.waitForUnload = v2.waitForUnload; v1.checkLoadProgress = v2.checkLoadProgress; v1.contentLoaded = v2.contentLoaded; v1.convertToUIObject = v2.convertToUIObject; return true; }; v1.classConstructed = mx.core.ExternalContent.classConstruct(); v1.ViewDependency = mx.core.View; ASSetPropFlags(mx.core.ExternalContent.prototype, null, 1); } #endinitclip } frame 2 { function startSong(trackNum) { if (curSoundTrack != trackNum) { stopAllSounds(); _root['song' + trackNum].start(0, 9999); curSoundTrack = trackNum; } } function startSound(trackNum) { if (trackNum == 6 || trackNum == 7) { return undefined; } _root['sound' + trackNum].start(0, 1); } i = 0; while (i < 15) { _root['song' + i] = new Sound(this); _root['song' + i].attachSound('song' + i); ++i; } var curSoundTrack = 3000; i = 0; while (i < 15) { _root['sound' + i] = new Sound(this); _root['sound' + i].attachSound('sound' + i); ++i; } } movieClip 908 { } movieClip 909 { } movieClip 911 { } movieClip 920 { } movieClip 922 { } movieClip 926 { } movieClip 927 { } movieClip 951 { frame 1 { stop(); } } frame 3 { startSong(13); stop(); } movieClip 957 { } button 959 { on (press) { getURL('http://www.armorgames.com', '_blank'); } } // unknown tag 88 length 269 // unknown tag 88 length 131 movieClip 963 { } movieClip 964 { frame 1 { gotoAndPlay(2); } frame 177 { _root.play(); } } frame 4 { function gotoMainMenu() { killSwitch(); stopAllSounds(); gotoAndStop('mainMenu'); } function gotoPlayerCreation() { gotoAndStop('playerCreation'); } function killSwitch() { for (var v2 in _root) { if (typeof _root[v2] == 'movieclip') { _root[v2].removeMovieClip(); } } } function chooseOutfit(target, action, num1, num2, num3, num4, num5) { target.gotoAndStop(action); target.headX = num1; target[action].l1.gotoAndStop(num1); target.skinX = num2; target[action].l2.gotoAndStop(num2); target[action].l3.gotoAndStop(num2); target.shirtX = num3; target[action].l0.gotoAndStop(num3); target[action].l4.gotoAndStop(num3); target[action].l5.gotoAndStop(num3); target[action].l15.gotoAndStop(num3); target[action].l6.gotoAndStop(num3); target[action].l7.gotoAndStop(num3); target[action].l12.gotoAndStop(num3); target[action].l13.gotoAndStop(num3); target.pantsX = num4; target[action].l18.gotoAndStop(num4); target[action].l19.gotoAndStop(num4); target[action].l10.gotoAndStop(num4); target[action].l11.gotoAndStop(num4); target.weaponX = num5; target[action].l14.gotoAndStop(num5 + 2); } function chooseRandomOutfit(cow, str) { chooseOutfit(cow, str, random(17) + 1, random(7) + 1, random(12) + 1, random(14) + 1); } function changeReputation(num) { var v1 = num; if (player.reputation > 75) { if (v1 > 0) { v1 *= 1; } else { v1 *= 1; } } else { if (player.reputation > 50) { if (v1 > 0) { v1 *= 1; } else { v1 *= 1; } } else { if (player.reputation > 25) { if (v1 > 0) { v1 *= 1; } else { v1 *= 1; } } else { if (player.reputation < -75) { if (v1 < 0) { v1 *= 1; } else { v1 *= 1; } } else { if (player.reputation < -50) { if (v1 < 0) { v1 *= 1; } else { v1 *= 1; } } else { if (player.reputation < -25) { if (v1 < 0) { v1 *= 1; } else { v1 *= 1; } } } } } } } player.reputationActual += v1; if (player.reputationActual > 100) { player.reputationActual = 100; } if (player.reputationActual < -100) { player.reputationActual = -100; } player.reputation = Math.round(player.reputationActual); } function getRepDisp() { if (player.reputation <= -100) { return 'True Evil'; } else { if (player.reputation <= -75) { return 'Atrocious'; } else { if (player.reputation <= -50) { return 'Malicious'; } else { if (player.reputation <= -25) { return 'Harmful'; } else { if (player.reputation <= -10) { return 'Foul'; } else { if (player.reputation <= -5) { return 'Highly Suspicious'; } else { if (player.reputation <= -1) { return 'Unpleasant'; } else { if (player.reputation == 0) { return 'Neutral'; } else { if (player.reputation <= 1) { return 'Positive'; } else { if (player.reputation <= 5) { return 'Admirable'; } else { if (player.reputation <= 10) { return 'Commendable'; } else { if (player.reputation <= 25) { return 'Respectable'; } else { if (player.reputation <= 50) { return 'Trustworthy'; } else { if (player.reputation <= 75) { return 'Righteous'; } else { if (player.reputation < 100) { return 'Saint'; } else { if (player.reputation == 100) { return 'Pure Good'; } } } } } } } } } } } } } } } } } function addVictory() { player.victories += 1; } function addFlee() { player.flees += 1; } function addSurrender() { player.surrenders += 1; } function addKill() { player.kills += 1; trace('KILLS = ' + player.kills); } function changeGuild(num) { trace('changing Guild!'); if (num == 100) { player.questPath += 1; } else { player.questPath = num; } trace('>>>' + player.questPath); } function quest1() {} function quest2() {} function quest3() {} function quest4() {} function quest5() {} function quest6() {} function quest7() {} function quest8() {} function quest9() {} function quest10() {} function quest11() {} function quest12() {} function quest13() {} function quest14() {} function quest15() {} function quest16() {} function quest17() {} function quest18() {} function quest19() {} function quest20() {} function quest21() {} function quest22() {} function triggerInterrupt(str) { interrupted = true; shel = attachMovie('warning', 'warning', k++); shel._x = 350; shel._y = 250; shel.message = str; startSound(2); } function triggerInterrupt2(str, fun) { interrupted = true; moving = false; shel = attachMovie('warning3', 'warning', k++); shel._x = 350; shel._y = 250; shel.message = str; startSound(2); } function triggerInterrupt3(str) { shel = attachMovie('warning4', 'warning', k++); shel._x = 350; shel._y = 250; shel.message = str; interrupted = true; moving = false; startSound(2); } function triggerInterrupt4() { shel = attachMovie('warning5', 'warning', k++); shel._x = 350; shel._y = 250; if (player.questPath < 12) { shel.emblem.gotoAndStop(2); } else { shel.emblem.gotoAndStop(1); } shel.message = travel['quest' + player.questPath].winMessage; interrupted = true; moving = false; ++player.questPath; if (player.questPath == 8) { world.town46.captured = false; } if (player.questPath == 17) { world.town35.captured = false; } player.questStep = 0; startSound(2); } function triggerInterrupt5(str, funA) { interrupted = true; moving = false; shel = attachMovie('warning6', 'warning', k++); shel._x = 350; shel._y = 250; shel.yesFn = funA; shel.message = str; startSound(2); } function triggerInterrupt6(str) { interrupted = true; shel = attachMovie('warning7', 'warning', k++); shel._x = 350; shel._y = 250; shel.message = str; startSound(2); } function pricingAlgorithm() { trace('<><<<<<<<<<<<<< PRICING ALGORITHM'); i = 0; while (i < totTowns) { j = 0; while (j < totItems) { world['town' + i].trade['item' + j].priceMax = 0.98 + (maxPRandom - 1) * 0.01; world['town' + i].trade['item' + j].priceMin = 0.98 + random(0) * 0.01; world['town' + i].trade['item' + j].priceNow = 0.98 + random(maxPRandom) * 0.01; tempPrice = trade['item' + j].price; tempPrice *= world['town' + i].trade['item' + j].rarity; tempPrice *= world.hemisphereBonus['h' + world['town' + i].hemisphere] * 0.01; tempPrice *= 1 + world['town' + i].nature * 0.01; tempPrice *= 1 + world['town' + i].tech * 0.02; tempPrice *= world['town' + i].trade['item' + j].priceNow; world['town' + i].trade['item' + j].price = Math.round(tempPrice); ++j; } ++i; } } function quantityAlgorithm() { trace('<><<<<<<<<<<<<< QUANTITY ALGORITHM'); i = 0; while (i < totTowns) { j = 0; while (j < totItems) { world['town' + i].trade['item' + j].quantityMax = maxQRandom - 1; world['town' + i].trade['item' + j].quantityMin = 0; world['town' + i].trade['item' + j].quantityNow = random(maxQRandom); tempPrice = trade['item' + j].quantity; tempPrice *= world['town' + i].trade['item' + j].rarity; tempPrice *= world.hemisphereBonus['h' + world['town' + i].hemisphere] * 0.01; tempPrice *= 1 + world['town' + i].nature * 0.02; tempPrice *= 1 + world['town' + i].tech * 0.01; tempPrice *= world['town' + i].trade['item' + j].quantityNow; world['town' + i].trade['item' + j].quantity = Math.round(tempPrice); ++j; } ++i; } } function dailyFluctuation() { trace('===FLUCTUATION FLUCTUATION==='); i = 0; while (i < totTowns) { j = 0; while (j < totItems) { world['town' + i].trade['item' + j].quantityMax = maxQRandom - 1; world['town' + i].trade['item' + j].quantityMin = 0; world['town' + i].trade['item' + j].quantityNow = random(maxQRandom); tempPrice = trade['item' + j].quantity; tempPrice *= world['town' + i].trade['item' + j].rarity; tempPrice *= world.hemisphereBonus['h' + world['town' + i].hemisphere] * lowRate; tempPrice *= 1 + world['town' + i].nature * 0.03; tempPrice *= 1 + world['town' + i].tech * 0.01; tempPrice *= world['town' + i].trade['item' + j].quantityNow; world['town' + i].trade['item' + j].quantity = Math.round(tempPrice); ++j; } ++i; } i = 0; while (i < totTowns) { j = 0; while (j < totItems) { tempNumber = world['town' + i].trade['item' + j].price; switch (random(5)) { case 0: tempNumber = world['town' + i].trade['item' + j].price; break; case 1: tempNumber = world['town' + i].trade['item' + j].price * lowRate + world['town' + i].trade['item' + j].price; break; case 2: tempNumber = world['town' + i].trade['item' + j].price * highRate + world['town' + i].trade['item' + j].price; break; case 3: tempNumber = world['town' + i].trade['item' + j].price - world['town' + i].trade['item' + j].price * highRate; break; case 4: tempNumber = world['town' + i].trade['item' + j].price - world['town' + i].trade['item' + j].price * lowRate; } if (tempNumber > world['town' + i].trade['item' + j].priceMax) { tempNumber = world['town' + i].trade['item' + j].priceMax; } if (tempNumber < world['town' + i].trade['item' + j].priceMin) { tempNumber = world['town' + i].trade['item' + j].priceMin; } world['town' + i].trade['item' + j].price *= Math.round(tempNumber); switch (random(5)) { case 0: tempNumber = world['town' + i].trade['item' + j].quantity; break; case 1: tempNumber = world['town' + i].trade['item' + j].quantity * sQVal + world['town' + i].trade['item' + j].quantity; break; case 2: tempNumber = world['town' + i].trade['item' + j].quantity * lQVal + world['town' + i].trade['item' + j].quantity; break; case 3: tempNumber = world['town' + i].trade['item' + j].quantity - world['town' + i].trade['item' + j].quantity * lQVal; break; case 4: tempNumber = world['town' + i].trade['item' + j].quantity - world['town' + i].trade['item' + j].quantity * sQVal; } if (tempNumber > world['town' + i].trade['item' + j].quantityMax) { } if (tempNumber < world['town' + i].trade['item' + j].quantityMin) { tempNumber = world['town' + i].trade['item' + j].quantityMin; } world['town' + i].trade['item' + j].quantity = Math.round(tempNumber); ++j; } ++i; } } function worldEvents() { tempNumber = random(30); if (tempNumber == 0) { addWorldEvent(); } } function addWorldEvent() { i = 0; while (i < 40) { if (world['events' + i].daysLeft == -1) { tempSlot = i; break; } ++i; } switch (random(3)) { case 0: itemShortage = random(12); world['events' + tempSlot].daysLeft = random(10) + 2; world['events' + tempSlot].effectedScope = 'worldShortage'; world['events' + tempSlot].effectedScope2 = 'none'; world['events' + tempSlot].effectedScope3 = 1 + (random(5) + 1) * 0.1; world['events' + tempSlot].effectedScope4 = itemShortage; break; break; case 1: case 2: } } var k = 1; var totItems = 12; var sellBack = 1; var armorSellBack = 0.75; var weaponSellBack = 0.75; var trade = new Object(); i = 0; while (i < totItems) { trade['item' + i] = new Object(); trade['item' + i].name = new Object(); ++i; } trade.item0.price = 20; trade.item1.price = 30; trade.item2.price = 60; trade.item3.price = 90; trade.item4.price = 140; trade.item5.price = 200; trade.item6.price = 250; trade.item7.price = 550; trade.item8.price = 1020; trade.item9.price = 2500; trade.item10.price = 10000; trade.item11.price = 7500; trade.item0.quantity = 5; trade.item1.quantity = 4; trade.item2.quantity = 4; trade.item3.quantity = 4; trade.item4.quantity = 3; trade.item5.quantity = 3; trade.item6.quantity = 3; trade.item7.quantity = 2; trade.item8.quantity = 2; trade.item9.quantity = 2; trade.item10.quantity = 1; trade.item11.quantity = 1; trade.item0.illegal = false; trade.item1.illegal = false; trade.item2.illegal = false; trade.item3.illegal = false; trade.item4.illegal = false; trade.item5.illegal = false; trade.item6.illegal = true; trade.item7.illegal = true; trade.item8.illegal = false; trade.item9.illegal = false; trade.item10.illegal = true; trade.item11.illegal = false; trade.item0.name = 'Grain'; trade.item1.name = 'Cloth'; trade.item2.name = 'Coal'; trade.item3.name = 'Spices'; trade.item4.name = 'Timber'; trade.item5.name = 'Iron'; trade.item6.name = 'Spirits*'; trade.item7.name = 'Poisons*'; trade.item8.name = 'Bronze'; trade.item9.name = 'Silver'; trade.item10.name = 'Narcotics*'; trade.item11.name = 'Diamonds'; var totVessels = 8; i = 0; while (i < totVessels) { trade['vessel' + i] = new Object(); trade['vessel' + i].costs = new Object(); trade['vessel' + i].seated = new Object(); ++i; } trade.vessel0.name = 'On-foot'; trade.vessel1.name = 'Horseback'; trade.vessel2.name = 'Cart'; trade.vessel3.name = 'Wagon'; trade.vessel4.name = 'Covered Wagon'; trade.vessel5.name = 'Medieval Tank'; trade.vessel6.name = 'Vanguard'; trade.vessel7.name = 'Ghost Ship'; trade.vessel0.seated.up0 = 'walking'; trade.vessel0.seated.down0 = 'idle'; trade.vessel1.seated.up0 = 'seated'; trade.vessel1.seated.down0 = 'seated'; trade.vessel2.seated.up0 = 'seated'; trade.vessel2.seated.down0 = 'seated'; trade.vessel2.seated.up1 = 'idle'; trade.vessel2.seated.down1 = 'idle'; trade.vessel3.seated.up0 = 'seated'; trade.vessel3.seated.down0 = 'seated'; trade.vessel3.seated.up1 = 'idle'; trade.vessel3.seated.down1 = 'idle'; trade.vessel4.seated.up0 = 'seated'; trade.vessel4.seated.down0 = 'seated'; trade.vessel4.seated.up1 = 'idle'; trade.vessel4.seated.down1 = 'idle'; trade.vessel4.seated.up2 = 'idle'; trade.vessel4.seated.down2 = 'idle'; trade.vessel5.seated.up0 = 'idle'; trade.vessel5.seated.down0 = 'idle'; trade.vessel5.seated.up1 = 'idle'; trade.vessel5.seated.down1 = 'idle'; trade.vessel5.seated.up2 = 'idle'; trade.vessel5.seated.down2 = 'idle'; trade.vessel5.seated.up3 = 'seated'; trade.vessel5.seated.down3 = 'seated'; trade.vessel6.seated.up0 = 'idle'; trade.vessel6.seated.down0 = 'idle'; trade.vessel6.seated.up1 = 'idle'; trade.vessel6.seated.down1 = 'idle'; trade.vessel6.seated.up2 = 'idle'; trade.vessel6.seated.down2 = 'idle'; trade.vessel6.seated.up3 = 'idle'; trade.vessel6.seated.down3 = 'idle'; trade.vessel6.seated.up4 = 'idle'; trade.vessel6.seated.down4 = 'idle'; trade.vessel7.seated.up0 = 'idle'; trade.vessel7.seated.down0 = 'idle'; trade.vessel7.seated.up1 = 'idle'; trade.vessel7.seated.down1 = 'idle'; trade.vessel7.seated.up2 = 'idle'; trade.vessel7.seated.down2 = 'idle'; trade.vessel7.seated.up3 = 'idle'; trade.vessel7.seated.down3 = 'idle'; trade.vessel7.seated.up4 = 'idle'; trade.vessel7.seated.down4 = 'idle'; trade.vessel0.capacity = 30; trade.vessel1.capacity = 40; trade.vessel2.capacity = 50; trade.vessel3.capacity = 75; trade.vessel4.capacity = 90; trade.vessel5.capacity = 100; trade.vessel6.capacity = 150; trade.vessel7.capacity = 200; trade.vessel0.people = 1; trade.vessel1.people = 1; trade.vessel2.people = 2; trade.vessel3.people = 2; trade.vessel4.people = 3; trade.vessel5.people = 4; trade.vessel6.people = 5; trade.vessel7.people = 5; trade.vessel0.travelDist = 2; trade.vessel1.travelDist = 2; trade.vessel2.travelDist = 3; trade.vessel3.travelDist = 3; trade.vessel4.travelDist = 4; trade.vessel5.travelDist = 3; trade.vessel6.travelDist = 5; trade.vessel7.travelDist = 5; trade.vessel0.description = 'Foot travel is the way many people start. You cannot carry much, which is a hassle. The travel distance is ' + trade.vessel0.travelDist + ' day per trip.'; trade.vessel1.description = 'A horse gets you where you want faster, and carries slightly more than foot travel. The travel distance is ' + trade.vessel1.travelDist + ' days per trip.'; trade.vessel2.description = 'Adding a pullcart to the horse, it allows a much larger cargo load. The travel distance is the same as the horse, at' + trade.vessel2.travelDist + ' days per trip. You may also carry additional party members.'; trade.vessel3.description = 'The wagon is much larger than the cart, and is more heavily armored to protect the party. The travel distance is ' + trade.vessel3.travelDist + ' days per trip.'; trade.vessel4.description = 'The covered wagon provides more armor than the normal wagon, and has a larger capacity. The travel distance is ' + trade.vessel4.travelDist + ' days per trip.'; trade.vessel5.description = 'The medieval tank is a slow moving vehicle made of iron and timber, and has an extremely high defense. It can roll between towns at ' + trade.vessel5.travelDist + ' days per trip.'; trade.vessel6.description = 'The vanguard is a landship capable of sailing the winds on land, or be pulled by horses when the winds die down. It is heavily armored, and can roll between towns at ' + trade.vessel6.travelDist + ' days per trip.'; trade.vessel0.costs.p0 = -1; trade.vessel0.costs.q0 = -1; trade.vessel1.costs.p0 = 5; trade.vessel1.costs.q0 = 5; trade.vessel1.costs.p1 = -1; trade.vessel1.costs.q1 = -1; trade.vessel2.costs.p0 = 5; trade.vessel2.costs.q0 = 7; trade.vessel2.costs.p1 = 9; trade.vessel2.costs.q1 = 1; trade.vessel2.costs.p2 = -1; trade.vessel2.costs.q2 = -1; trade.vessel3.costs.p0 = 5; trade.vessel3.costs.q0 = 9; trade.vessel3.costs.p1 = 4; trade.vessel3.costs.q1 = 3; trade.vessel3.costs.p2 = 9; trade.vessel3.costs.q2 = 2; trade.vessel3.costs.p3 = -1; trade.vessel3.costs.q3 = -1; trade.vessel4.costs.p0 = 1; trade.vessel4.costs.q0 = 10; trade.vessel4.costs.p1 = 5; trade.vessel4.costs.q1 = 12; trade.vessel4.costs.p2 = 9; trade.vessel4.costs.q2 = 3; trade.vessel4.costs.p3 = -1; trade.vessel4.costs.q3 = -1; trade.vessel5.costs.p0 = 5; trade.vessel5.costs.q0 = 15; trade.vessel5.costs.p1 = 9; trade.vessel5.costs.q1 = 6; trade.vessel5.costs.p2 = 1; trade.vessel5.costs.q2 = 10; trade.vessel5.costs.p3 = -1; trade.vessel5.costs.q3 = -1; trade.vessel6.costs.p0 = 11; trade.vessel6.costs.q0 = 1; trade.vessel6.costs.p1 = 1; trade.vessel6.costs.q1 = 10; trade.vessel6.costs.p2 = -1; trade.vessel6.costs.q2 = -1; var totWeapons = 7; i = 0; while (i < totWeapons) { trade['weapon' + i] = new Object(); ++i; } trade.weapon0.name = 'Stick'; trade.weapon1.name = 'Dagger'; trade.weapon2.name = 'Axe'; trade.weapon3.name = 'Short Sword'; trade.weapon4.name = 'Mace'; trade.weapon5.name = 'Long Sword'; trade.weapon6.name = 'Claymore'; trade.weapon0.price = 1; trade.weapon1.price = 5; trade.weapon2.price = 10; trade.weapon3.price = 50; trade.weapon4.price = 300; trade.weapon5.price = 1700; trade.weapon6.price = 5000; trade.weapon0.attack = 1; trade.weapon1.attack = 2; trade.weapon2.attack = 3; trade.weapon3.attack = 4; trade.weapon4.attack = 5; trade.weapon5.attack = 6; trade.weapon6.attack = 7; var totWSlots = 25; var personalSlots = 5; i = 0; while (i < totWSlots) { trade['wSlot' + i] = new Object(); trade['wSlot' + i].weaponType = -1; trade['wSlot' + i].ownedBy = -1; trade['wSlot' + i].level = -1; trade['wSlot' + i].homeSlot = -1; ++i; } trade.tSlot = new Object(); trade.tSlot.weaponType = -1; trade.tSlot.ownedBy = -1; trade.tSlot.level = -1; trade.tSlot.homeSlot = -1; var totArmor = 5; i = 0; while (i < totArmor) { trade['armor' + i] = new Object(); ++i; } trade.armor0.name = 'Cloth'; trade.armor1.name = 'Leather'; trade.armor2.name = 'Wood-Laminate'; trade.armor3.name = 'Chainmail'; trade.armor4.name = 'Mithryl'; trade.armor0.price = 10; trade.armor1.price = 50; trade.armor2.price = 100; trade.armor3.price = 500; trade.armor4.price = 3000; trade.armor0.defense = 1; trade.armor1.defense = 2; trade.armor2.defense = 3; trade.armor3.defense = 4; trade.armor4.defense = 5; var totASlots = 25; i = 0; while (i < totASlots) { trade['aSlot' + i] = new Object(); trade['aSlot' + i].armorType = -1; trade['aSlot' + i].ownedBy = -1; trade['aSlot' + i].level = -1; trade['aSlot' + i].homeSlot = -1; ++i; } trade.tSlot = new Object(); trade.tSlot.weaponType = -1; trade.tSlot.ownedBy = -1; trade.tSlot.level = -1; trade.tSlot.homeSlot = -1; trade.aSlot20.armorType = 0; trade.aSlot21.armorType = -1; trade.aSlot22.armorType = -1; trade.aSlot23.armorType = -1; trade.aSlot24.armorType = -1; trade.wSlot20.weaponType = 0; trade.wSlot21.weaponType = -1; trade.wSlot22.weaponType = -1; trade.wSlot23.weaponType = -1; trade.wSlot24.weaponType = -1; var totTowns = 50; var NW = 0; var NE = 1; var SE = 2; var SW = 3; var world = new Object(); i = 0; while (i < totTowns) { world['town' + i] = new Object(); world['town' + i].name = 'blah'; world['town' + i].status = 'blah'; world['town' + i].tech = 1; world['town' + i].nature = 1; world['town' + i].hemisphere = 0; world['town' + i].captured = false; world['town' + i].description = 'hello'; world['town' + i].trade = new Object(); j = 0; while (j < totItems) { world['town' + i].trade['item' + j] = new Object(); world['town' + i].trade['item' + j].rarity = 1; world['town' + i].trade['item' + j].quantity = 0; world['town' + i].trade['item' + j].price = 0; ++j; } ++i; } world.town0.name = 'Majewski'; world.town0.status = ''; world.town0.tech = 2; world.town0.nature = 6; world.town0.hemisphere = SE; world.town0.description = 'The town of Majewski has experienced a recent uprising in colonists joining its population. Plentiful work and living has definitely encouraged massive growth through its gates.'; world.town1.name = 'Pastoo'; world.town1.status = ''; world.town1.tech = 5; world.town1.nature = 7; world.town1.hemisphere = NW; world.town1.description = 'The small industrial town of Pastoo has had some amazing growth over the past several years, including recent development in housing and technology in the workplace.'; world.town2.name = 'Tamugaia'; world.town2.status = ''; world.town2.tech = 3; world.town2.nature = 5; world.town2.hemisphere = NW; world.town2.description = 'Tamugaia has long been held one of the best small towns to live in in the Northwestern Hemisphere. The beautiful countryside runs for miles and includes several expansive, rich soils along the banks of the nearby rivers.'; world.town3.name = 'Nari'; world.town3.status = ''; world.town3.tech = 4; world.town3.nature = 9; world.town3.hemisphere = NW; world.town3.description = 'One of the oldest cities, this area has been under development for centuries and has been the centre for many a battle and peacetime. Although not the largest, it yields a long and winded history.'; world.town4.name = 'Aliso'; world.town4.status = ''; world.town4.tech = 5; world.town4.nature = 8; world.town4.hemisphere = NW; world.town4.description = 'This town is still well under development but has been facing some recent problems with crime and drug smuggling.'; world.town5.name = 'Niato'; world.town5.status = ''; world.town5.tech = 9; world.town5.nature = 4; world.town5.hemisphere = NW; world.town5.description = 'Niato has a rich culture in music, tradition, and storytelling. Generational speakers have become the stronghold of culture in the town and yearly the Niatians celebrate their heritage through large festivals and celebration. '; world.town6.name = 'Ny Cire'; world.town6.status = ''; world.town6.tech = 1; world.town6.nature = 2; world.town6.hemisphere = NE; world.town6.description = 'This outpost has little to offer but is crucial to the wandering mercenaries and others who pass this way.'; world.town7.name = 'McNeelan'; world.town7.status = ''; world.town7.tech = 10; world.town7.nature = 3; world.town7.hemisphere = NE; world.town7.description = 'Although small in size, McNeelan has become a small hotbed of technological growth.'; world.town8.name = 'Axel'; world.town8.status = ''; world.town8.tech = 2; world.town8.nature = 4; world.town8.hemisphere = NE; world.town8.description = 'Axel is a small town and has had trouble with its growing pirate population settling in the outskirts. '; world.town9.name = 'Dank'; world.town9.status = ''; world.town9.tech = 4; world.town9.nature = 5; world.town9.hemisphere = NW; world.town9.description = 'Dank has long suffered a bout of poor farming and water access but is slowly emerging from their problems with recent advances in technology, adopted from local neighboring villages.'; world.town10.name = 'Maxin'; world.town10.status = ''; world.town10.tech = 1; world.town10.nature = 3; world.town10.hemisphere = NW; world.town10.description = 'Maxin is a small outpost on the edge of the Northwest Hemisphere, merely used for travelling groups and as a rest stop to other destinations. Rarely does Maxin play home to anyone\'s final destination.'; world.town11.name = 'Boghorn'; world.town11.status = ''; world.town11.tech = 4; world.town11.nature = 6; world.town11.hemisphere = NW; world.town11.description = 'Boghorn, named after the large horn that rests on the main chapel\'s roof, is a large religious town that has become a stronghold for various groups and merchants.'; world.town12.name = 'Masthead'; world.town12.status = ''; world.town12.tech = 3; world.town12.nature = 7; world.town12.hemisphere = NW; world.town12.description = 'Masthead was named after the large ship that was found abandoned here by its founders several centuries ago. The ship has since been replaced by a statue, honouring the fallen crusaders.'; world.town13.name = 'Darkwood'; world.town13.status = ''; world.town13.tech = 4; world.town13.nature = 2; world.town13.hemisphere = NW; world.town13.description = 'Darkwood received it\'s name from the frozen trees found among the icy tundra that it resides in. While no tree growth has been recorded recently, it still remains a puzzle as to how these icy plants found their planting in such a desolate area.'; world.town14.name = 'Faron'; world.town14.status = ''; world.town14.tech = 3; world.town14.nature = 10; world.town14.hemisphere = NE; world.town14.description = 'Faron is one of the busiest cities in the Northeast hemisphere. The bustling merchant city trades in base goods mostly, with basic goods such as food and clothing.'; world.town15.name = 'Carlia'; world.town15.status = ''; world.town15.tech = 2; world.town15.nature = 1; world.town15.hemisphere = NE; world.town15.description = 'Carlia plays home to a small once-nomadic group. The town remains part of a desolate stronghold, but this does not stop any of the passerby from stopping for a night or two to escape the heat.'; world.town16.name = 'Riley'; world.town16.status = ''; world.town16.tech = 10; world.town16.nature = 4; world.town16.hemisphere = NE; world.town16.description = 'Advancements in technology has made the town of Riley an industry leader in various new technologies.'; world.town17.name = 'Loire'; world.town17.status = ''; world.town17.tech = 4; world.town17.nature = 2; world.town17.hemisphere = NW; world.town17.description = 'Much disbelief is settled in this town over conflicts of politics and record keeping.'; world.town18.name = 'Yorn'; world.town18.status = ''; world.town18.tech = 9; world.town18.nature = 3; world.town18.hemisphere = NW; world.town18.description = 'Yorn suffers from a high death rate. It\'s inhabitants seem incredibly prone to disease and outsiders have plagued the town with new strains of everything, from flu to illness to death.'; world.town19.name = 'Indigo Lake'; world.town19.status = ''; world.town19.tech = 5; world.town19.nature = 4; world.town19.hemisphere = NW; world.town19.description = 'Indigo Lake is named after the small lake located by the village town. The deep shade of blue is caused by the depth of the lake, which goes several leagues down.'; world.town20.name = 'Afron'; world.town20.status = ''; world.town20.tech = 8; world.town20.nature = 5; world.town20.hemisphere = NW; world.town20.description = 'The town of Afron is still recovering from a massive political scandal concerning embezzlement of taxpayer money and lost rights to precious mine shafts to the North. Many are out of work and seeking help. '; world.town21.name = 'Fairview'; world.town21.status = ''; world.town21.tech = 6; world.town21.nature = 2; world.town21.hemisphere = NE; world.town21.description = 'Fairview, contrast to name, does not have the fairest of views. However the city enjoys it\'s small splendors such as running water and clean air.'; world.town22.name = 'Tiveone'; world.town22.status = ''; world.town22.tech = 7; world.town22.nature = 1; world.town22.hemisphere = NE; world.town22.description = 'The desolate lands of Tiveone are unrivaled, claiming many adventures seeking escape or entry through its gates.'; world.town23.name = 'LaVelle'; world.town23.status = ''; world.town23.tech = 8; world.town23.nature = 1; world.town23.hemisphere = NE; world.town23.description = 'LaVelle was discovered by one Antony Lavelle, mechanical engineer in search of new home in desolate area away from prying eyes and stealing men. His outpost bore home to many others, especially those outcast by traditionalists and those shy of new technologies.'; world.town24.name = 'Westland'; world.town24.status = ''; world.town24.tech = 6; world.town24.nature = 7; world.town24.hemisphere = SW; world.town24.description = 'This town shares a strict code of discipline and imposes a curfew after many outbreaks of violence due to gang growth. Narcotics and poison are heavily traded and closely monitored by local Enforcers.'; world.town25.name = 'Bourne'; world.town25.status = ''; world.town25.tech = 6; world.town25.nature = 6; world.town25.hemisphere = SW; world.town25.description = 'Bourne has seen a swelling growth of textile manufacture and merchanting. Leather and other such goods are world-renowed from this area, as well as outmatched in price and quality.'; world.town26.name = 'Root'; world.town26.status = ''; world.town26.tech = 10; world.town26.nature = 10; world.town26.hemisphere = SW; world.town26.description = 'The supercity of Root faces an extreme tension after many technology wars have ended in bitter rivalry and lack of progression. Technology has become the centre of lifestyle and development, and has created perhaps the largest city and population throughout the world. '; world.town27.name = 'Lilium'; world.town27.status = ''; world.town27.tech = 7; world.town27.nature = 9; world.town27.hemisphere = SW; world.town27.description = 'Lilium is one of the first cities erected in the Southwest. With large buildings and even larger aspirations, the city has ballooned into a large bronze manufacturer and exports tonnes of the product annually.'; world.town28.name = 'Luka'; world.town28.status = ''; world.town28.tech = 2; world.town28.nature = 8; world.town28.hemisphere = NW; world.town28.description = 'Luka was once settled by a large group of explorers but has been lately developed into a large farming community beside a larger town area.'; world.town29.name = 'Kyre'; world.town29.status = ''; world.town29.tech = 3; world.town29.nature = 1; world.town29.hemisphere = SW; world.town29.description = 'Kyre faces to the Glass Mountains, a range of mountains that borders the desert city and provides crucial shade during the last half of the day. Here, many take break from the unrelenting desert and hot winds.'; world.town30.name = 'Doxinark'; world.town30.status = ''; world.town30.tech = 8; world.town30.nature = 8; world.town30.hemisphere = SW; world.town30.description = 'Doxinark shares a dark past, being associated with dark religious groups of previous centuries. Trying to shake the image, Doxinark has recently embraced a multicultural outlook and movement towards equality and rights for all residents.'; world.town31.name = 'Glaiela'; world.town31.status = ''; world.town31.tech = 7; world.town31.nature = 7; world.town31.hemisphere = SE; world.town31.description = 'Glaiela has seen a recent upgrowth in medicinal production, being one of the primary producers for potion in the greater area. Many doctors have focused their research here and have relocated to be among great minds.'; world.town32.name = 'Hale'; world.town32.status = ''; world.town32.tech = 3; world.town32.nature = 8; world.town32.hemisphere = SE; world.town32.description = 'Hale has undergone several civil wars and internal power struggles from rivaling religious groups but has nonetheless seen growth and prosperity even through the hardest of times.'; world.town33.name = 'Porter'; world.town33.status = ''; world.town33.tech = 7; world.town33.nature = 6; world.town33.hemisphere = SW; world.town33.description = 'Porter is named after the Duke Porter, who founded this colony approximately 200 years ago. The town has a large dairy farmer community as well as a finesse in coopering and woodworking. '; world.town34.name = 'Vance'; world.town34.status = ''; world.town34.tech = 7; world.town34.nature = 5; world.town34.hemisphere = SW; world.town34.description = 'Vance suffers from deforestation from the local lumber outfits. The expense on habitat is causing problems for local wildlife and home production, stunting growth.'; world.town35.name = 'Pia'; world.town35.status = ''; world.town35.tech = 10; world.town35.nature = 4; world.town35.hemisphere = SE; world.town35.description = 'Pia is short for Piaze de Luna, and is a city built upon a lust for technology and advancement. Although small, the city has been known for great agricultural experiments and advancements. '; world.town36.name = 'Krin'; world.town36.status = ''; world.town36.tech = 2; world.town36.nature = 2; world.town36.hemisphere = SE; world.town36.description = 'Krin has become an important stronghold for adventurers and travelers enroute to the outer cities. Here many will stock up and save room for the journey ahead by depositing goods for great profit. '; world.town37.name = 'Horton'; world.town37.status = ''; world.town37.tech = 6; world.town37.nature = 3; world.town37.hemisphere = SW; world.town37.description = 'Horton thrives on a large ore industry, with greater advancements in mining and processing technique. Many residents here work generationally for the large mining work that goes on here.'; world.town38.name = 'Edolie'; world.town38.status = ''; world.town38.tech = 1; world.town38.nature = 10; world.town38.hemisphere = SW; world.town38.description = 'Edolie is a struggling city, home to problems and emerging high-crime rates. Many of the professionals in this town have fled, leaving a large city with low hopes and crime-ridden streets.'; world.town39.name = 'Ido Tal'; world.town39.status = ''; world.town39.tech = 9; world.town39.nature = 1; world.town39.hemisphere = SW; world.town39.description = 'This town is far ahead of other small outposts in that its creative group of individuals have managed to find technological breakthroughs in even the most desolate of lands.'; world.town40.name = 'Betsonia'; world.town40.status = ''; world.town40.tech = 6; world.town40.nature = 10; world.town40.hemisphere = SW; world.town40.description = 'Betsonia is homeland to a large, sprawling population of professionals and merchants. The armour and weapons produced here are unmatched and a greatly imitated in various other parts of the hemisphere.'; world.town41.name = 'Firetail'; world.town41.status = ''; world.town41.tech = 5; world.town41.nature = 9; world.town41.hemisphere = SW; world.town41.description = 'Firetail is a growing city with growing needs and a new government to try to provide them. Recent immigration laws have been lifted, allowing the city to take on more individuals and merchants to its streets.'; world.town42.name = 'Toccuna'; world.town42.status = ''; world.town42.tech = 9; world.town42.nature = 10; world.town42.hemisphere = SW; world.town42.description = 'This industrious town is the largest town in the Southwest Hemisphere. The sports and games played here are unrivaled, with massive stadiums and fighting rings making up much of the public lands.'; world.town43.name = 'Barrios'; world.town43.status = ''; world.town43.tech = 5; world.town43.nature = 3; world.town43.hemisphere = SE; world.town43.description = 'Barrios is one of the shadiest towns in the Southeastern Hemisphere. The distrust of merchants and pirates alike has brought great tension to its residents.'; world.town44.name = 'Coorerium'; world.town44.status = ''; world.town44.tech = 10; world.town44.nature = 6; world.town44.hemisphere = SE; world.town44.description = 'Correrium is on the cutting edge of steam technology and other crafts. Once only a sleepy town, Coorerium has slowly emerged has a leader in several industries and production.'; world.town45.name = 'Hyacinth'; world.town45.status = ''; world.town45.tech = 1; world.town45.nature = 7; world.town45.hemisphere = SE; world.town45.description = 'Hyacinth has long suffered from its location and isolation from the rest of the world. Hence, technologies and trade has been fairly limited.'; world.town46.name = 'Condon'; world.town46.status = ''; world.town46.tech = 8; world.town46.nature = 5; world.town46.hemisphere = SE; world.town46.description = 'Condon faces the challenges of any fast-paced and growing town... where to find a place for everyone. The township has seen growth beyond its control over the past few years from recent mining expeditions.'; world.town47.name = 'Aston'; world.town47.status = ''; world.town47.tech = 8; world.town47.nature = 4; world.town47.hemisphere = SE; world.town47.description = 'Aston is home to one of the most successful shipmakers in all the world. The shipmaking company, the Aston Navigations Group, produces nearly 40% of the ships found locally.'; world.town48.name = 'Wofford'; world.town48.status = ''; world.town48.tech = 8; world.town48.nature = 2; world.town48.hemisphere = SE; world.town48.description = 'The Southeast quadrant of the map would not be anything without Wofford, an astute and profitable little township.'; world.town49.name = 'Yovela'; world.town49.status = ''; world.town49.tech = 9; world.town49.nature = 1; world.town49.hemisphere = SE; world.town49.description = 'This sleepy town carries a reputation of great technology, great people, but terrible location. Desolate climates have eroded this town time and time again.'; world.techLevels = new Object(); world.techLevels.l1 = 'Archaric'; world.techLevels.l2 = 'Obsolete'; world.techLevels.l3 = 'Rudimentary'; world.techLevels.l4 = 'Old World'; world.techLevels.l5 = 'Current'; world.techLevels.l6 = 'Progressive'; world.techLevels.l7 = 'Leading'; world.techLevels.l8 = 'Advanced'; world.techLevels.l9 = 'Cutting-Edge'; world.techLevels.l10 = 'Futuristic'; world.natureLevels = new Object(); world.natureLevels.l1 = 'Desolate'; world.natureLevels.l2 = 'Freezing Tundra'; world.natureLevels.l3 = 'Rocky Landscape'; world.natureLevels.l4 = 'Dense Forest'; world.natureLevels.l5 = 'Lightly Forested'; world.natureLevels.l6 = 'Rolling Meadows'; world.natureLevels.l7 = 'Grasslands'; world.natureLevels.l8 = 'Farmlands'; world.natureLevels.l9 = 'Light Cityscape'; world.natureLevels.l10 = 'Dense Cityscape'; world.crimeLevels = new Object(); world.crimeLevels.l0 = 'None'; world.crimeLevels.l1 = 'Minimal'; world.crimeLevels.l2 = 'Low'; world.crimeLevels.l3 = 'Occasional'; world.crimeLevels.l4 = 'Below Average'; world.crimeLevels.l5 = 'Average'; world.crimeLevels.l6 = 'Above Average'; world.crimeLevels.l7 = 'Medium High'; world.crimeLevels.l8 = 'High'; world.crimeLevels.l9 = 'Very High'; world.crimeLevels.l10 = 'Extreme'; world.hemisphereBonus = new Object(); world.hemisphereBonus.h0 = 100; world.hemisphereBonus.h1 = 100; world.hemisphereBonus.h2 = 100; world.hemisphereBonus.h3 = 100; world.hemisphereNames = new Object(); world.hemisphereNames.h0 = 'Northwest'; world.hemisphereNames.h1 = 'Northeast'; world.hemisphereNames.h2 = 'Southeast'; world.hemisphereNames.h3 = 'Southwest'; i = 0; while (i < totTowns) { world['town' + i].population = (random(2) + 1) * ((random(5) + 1) * 10 * Number(world['town' + i].tech) * ((random(5) + 1) * 8 * world['town' + i].nature)); world['town' + i].crime = world['town' + i].population / 2000; world['town' + i].crime = Math.floor(world['town' + i].crime / 3 + (random(4) - 2)); if (world['town' + i].crime > 10) { world['town' + i].crime = 10 - random(2); } if (world['town' + i].crime < 0) { world['town' + i].crime = 0; } ++i; } var totEvents = 40; i = 0; while (i < totEvents) { world['events' + i] = new Object(); world['events' + i].daysLeft = -1; world['events' + tempSlot].daysLeft = -1; world['events' + i].effectedScope = 'string'; world['events' + i].effectedScope2 = 'string'; world['events' + i].effectedScope3 = -1; world['events' + i].effectedScope4 = -1; ++i; } var player = new Object(); player.location = 11; player.destination = 4; player.day = 1; player.cash = 5000; player.captureAll = false; player.millionaire = false; player.questPath = 0; player.questStep = 0; player.vessel = 0; player.reputation = 0; player.reputationActual = 0; player.capacity = trade['vessel' + player.vessel].capacity; player.holding = 0; player.partySize = 1; player.health = 100; player.tutorials = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0); player.victories = 0; player.flees = 0; player.surrenders = 0; player.kills = 0; player.leftBuccaneerGuild = false; player.leftEnforcerGuild = false; i = 0; while (i < totItems) { player['item' + i] = 0; ++i; } player.player0 = new Object(); player.player0.name = 'Henry'; player.player0.baseAttack = 1; player.player0.baseDefense = 1; player.player0.head = 7; player.player0.skin = 1; player.player0.shirt = 9; player.player0.pants = 6; player.player0.health = 100; player.player0.hireRate = 0; player.player0.trade = 3; player.player0.travel = 0; player.player1 = new Object(); player.player1.name = 'Jim'; player.player1.baseAttack = 1; player.player1.baseDefense = 1; player.player1.head = 1; player.player1.skin = 5; player.player1.shirt = 2; player.player1.pants = 3; player.player1.health = 100; player.player1.hireRate = 1; player.player1.trade = 1; player.player1.travel = 1; player.player2 = new Object(); player.player2.name = 'Maggie'; player.player2.baseAttack = 2; player.player2.baseDefense = 1; player.player2.head = 6; player.player2.skin = 2; player.player2.shirt = 5; player.player2.pants = 4; player.player2.health = 100; player.player2.hireRate = 2; player.player2.trade = 1; player.player2.travel = 2; player.player3 = new Object(); player.player3.name = 'Tom'; player.player3.baseAttack = 1; player.player3.baseDefense = 1; player.player3.head = 6; player.player3.skin = 5; player.player3.shirt = 2; player.player3.pants = 1; player.player3.health = 100; player.player3.hireRate = 3; player.player3.trade = 3; player.player3.travel = 3; player.player4 = new Object(); player.player4.name = 'Sam'; player.player4.baseAttack = 2; player.player4.baseDefense = 1; player.player4.head = 6; player.player4.skin = 2; player.player4.shirt = 4; player.player4.pants = 4; player.player4.health = 100; player.player4.hireRate = 4; player.player4.trade = 1; player.player4.travel = 3; var ephem = new Object(); ephem.partySize = 0; ephem.vessel = 0; ephem.maxParty = 0; ephem.health = 100; ephem.partyType = 'pirates'; ephem.subType = 'none'; ephem.stranger0 = new Object(); ephem.stranger0.name = 'Henry'; ephem.stranger0.baseAttack = 1; ephem.stranger0.baseDefense = 1; ephem.stranger0.head = 7; ephem.stranger0.skin = 1; ephem.stranger0.shirt = 9; ephem.stranger0.pants = 6; ephem.stranger0.weapon = 0; ephem.stranger0.armor = 0; ephem.stranger0.health = 100; ephem.stranger0.travel = 0; ephem.stranger0.trade = 100; ephem.stranger0.hired = false; ephem.stranger0.hireRate = 123; ephem.stranger1 = new Object(); ephem.stranger1.name = 'Henry'; ephem.stranger1.baseAttack = 1; ephem.stranger1.baseDefense = 1; ephem.stranger1.head = 7; ephem.stranger1.skin = 1; ephem.stranger1.shirt = 9; ephem.stranger1.pants = 6; ephem.stranger1.weapon = 0; ephem.stranger1.armor = 0; ephem.stranger1.health = 100; ephem.stranger1.travel = 0; ephem.stranger1.trade = 100; ephem.stranger1.hired = false; ephem.stranger1.hireRate = 234; ephem.stranger2 = new Object(); ephem.stranger2.name = 'Henry'; ephem.stranger2.baseAttack = 1; ephem.stranger2.baseDefense = 1; ephem.stranger2.head = 7; ephem.stranger2.skin = 1; ephem.stranger2.shirt = 9; ephem.stranger2.pants = 6; ephem.stranger2.weapon = 0; ephem.stranger2.armor = 0; ephem.stranger2.health = 100; ephem.stranger2.hireRate = 345; ephem.stranger3 = new Object(); ephem.stranger3.name = 'Henry'; ephem.stranger3.baseAttack = 1; ephem.stranger3.baseDefense = 1; ephem.stranger3.head = 7; ephem.stranger3.skin = 1; ephem.stranger3.shirt = 9; ephem.stranger3.pants = 6; ephem.stranger3.weapon = 0; ephem.stranger3.armor = 0; ephem.stranger3.health = 100; ephem.stranger3.hireRate = 456; ephem.stranger4 = new Object(); ephem.stranger4.name = 'Henry'; ephem.stranger4.baseAttack = 1; ephem.stranger4.baseDefense = 1; ephem.stranger4.head = 7; ephem.stranger4.skin = 1; ephem.stranger4.shirt = 9; ephem.stranger4.pants = 6; ephem.stranger4.weapon = 0; ephem.stranger4.armor = 0; ephem.stranger4.health = 100; ephem.stranger4.hireRate = 567; var nameBank = new Array('Jim', 'Anthony', 'Larry', 'Steve', 'Gabriel', 'Sebastian', 'Rory', 'Nick', 'Mel', 'Oscar', 'Gibs', 'Frank', 'Robby', 'Kino', 'Mica', 'Antonio', 'Igor', 'Juan', 'Peter', 'Luke', 'Denny', 'Seymore', 'Trevor', 'Gus', 'Omar', 'Krin', 'Chris', 'Joey', 'Greg', 'Luke', 'Mark', 'Shawn', 'Tim', 'Tom', 'Martin', 'Benjamin', 'Alex', 'Sam', 'John', 'Fil', 'Arthur', 'Luis', 'Swain', 'Adam', 'Tony', 'Max', 'Dan'); ephem.pHealth = 100; ephem.eHealth = 100; var travelEvents = 20; var questsTotal = 25; var travel = new Object(); i = 0; while (i < travelEvents) { travel['event' + i] = new Object(); ++i; } i = 0; while (i < questsTotal) { travel['quest' + i] = new Object(); ++i; } travel.setSpeed = 1; travel.event0.prompt = 'You find an abandoned collection of goods. Do you want to open the crates and barrels?'; travel.event0.mc = 'supplies'; travel.event0.messageType = 'prompt'; travel.event1.prompt = 'A thief takes from your storage.'; travel.event1.mc = 'thief'; travel.event1.messageType = 'instant'; travel.event2.prompt = 'You find someone on the road that appears to be in poor health. What do you want to do?'; travel.event2.mc = 'injuredPerson'; travel.event2.messageType = 'prompt'; travel.event3.prompt = 'A Buccaneer party approaches! What is your action?'; travel.event3.mc = 'partySet'; travel.event3.messageType = 'prompt'; travel.event4.prompt = 'A peaceful mercenary party approaches! What is your action?'; travel.event4.mc = 'partySet'; travel.event4.messageType = 'prompt'; travel.event5.prompt = 'A group of Enforcers have asked to search your cargo for illegal goods. Do you accept?'; travel.event5.mc = 'partySet'; travel.event5.messageType = 'prompt'; travel.event6.prompt = 'A group of Enforcers are out for your bounty! What is your action?'; travel.event6.mc = 'partySet'; travel.event6.messageType = 'prompt'; travel.event7.prompt = 'You have reached the castle.'; travel.event7.mc = 'castle'; travel.event7.messageType = 'prompt'; travel.event8.prompt = 'The trailing mercenaries have found you!'; travel.event8.mc = 'partySet'; travel.event8.messageType = 'prompt'; travel.event9.prompt = 'You have approached the rogue Buccaneer party. What do you want to do?'; travel.event9.mc = 'partySet'; travel.event9.messageType = 'prompt'; travel.event10.prompt = 'The Enforcers have found you! There\'s little escape!'; travel.event10.mc = 'partySet'; travel.event10.messageType = 'prompt'; travel.event11.prompt = 'You have found the Enforcers strong convoy. Do you dare attack?'; travel.event11.mc = 'partySet'; travel.event11.messageType = 'prompt'; travel.event12.prompt = 'You have found... the weapon. Good Lord.'; travel.event12.mc = 'robot'; travel.event12.messageType = 'prompt'; travel.event13.prompt = 'A buccaneer party has spotted you enroute and demand the package!'; travel.event13.mc = 'partySet'; travel.event13.messageType = 'prompt'; travel.event14.prompt = 'You have found the evil buccaneer party that has been attacking Darkwood, and they have seen you! What do you want to do?'; travel.event14.mc = 'partySet'; travel.event14.messageType = 'prompt'; travel.event15.prompt = 'You have found the Pirate\'s strong convoy. Do you dare attack?'; travel.event15.mc = 'partySet'; travel.event15.messageType = 'prompt'; travel.event16.prompt = 'Here is the ship... it\'s a ghost ship???'; travel.event16.mc = 'partySet'; travel.event16.messageType = 'prompt'; travel.quest0.goal = ''; travel.quest0.winMessage = ''; travel.quest0.tMMessage = 'Don\'t die too.'; travel.quest0.gMMessage = 'Don\'t die.'; travel.quest0.rank = 'Neutral Party'; travel.quest0.prize = 0; travel.quest1.goal = 'Show your allegiance to the pirate-kind by looting your first mercenary group. Find a mercenary party wandering the world and take them down. Doesn\'t matter what size party or who they are, and we\'re not taking surrenders on this one!'; travel.quest1.winMessage = 'You\'ve defeated a mercenary party! Your rank has gone up in the guild, visit a city\'s guild HQ for more info.'; travel.quest1.tMMessage = 'Don\'t bite off more than you can chew. Take on a smaller group for starters.'; travel.quest1.gMMessage = 'Don\'t die. Or if you do, don\'t associate yourself with us.'; travel.quest1.rank = 'Initiant'; travel.quest1.prize = 0; travel.quest2.goal = 'Visit the city of Westland in the Southwest Hemisphere. There you can join our ranks by pledging your alliance with the Buccaneers Guild.'; travel.quest2.winMessage = 'With your pledge you have become an official member of the Buccaneer\'s Guild. Congratulations!'; travel.quest2.tMMessage = 'The journey will be long so don\'t forget to make some money along the way.'; travel.quest2.gMMessage = 'Road won\'t be that tough, just long. Keep your cool.'; travel.quest2.rank = 'Swabbie'; travel.quest2.prize = 0; travel.quest3.goal = 'We have stolen a package from a famous Mercenary guild called \'J.W. Travelers.\' They are trailing the package and we want to hide it in Indigo Lake until we can figure out why they want it back so bad. Take it there.'; travel.quest3.winMessage = 'You managed to deliver the package in good time. You have been promoted within the ranks!'; travel.quest3.tMMessage = 'Keep a low profile, stick to shorter routes.'; travel.quest3.gMMessage = 'Mercenaries will attack knowing you are carrying precious cargo, be wary of the good turning against you.'; travel.quest3.rank = 'Deckhand'; travel.quest3.prize = 0; travel.quest4.goal = 'Reputation is everything in our Guild. Work on building your reptutation to a score of -40 or less.'; travel.quest4.winMessage = 'Your reputation is now becoming more and more infamous. The party loves a vicious leader and you\'re getting promoted once more.'; travel.quest4.tMMessage = 'Attacking mercenaries or performing evil deeds will sour your reputation, by all means!'; travel.quest4.gMMessage = 'If you can\'t stomach a beating or two or random innocents then this is not the guild for you... do it!'; travel.quest4.rank = 'Coxswain'; travel.quest4.prize = 0; travel.quest5.goal = 'On the path to Barrios there is a rogue breakoff group of the Buccaneers that needs to be permanently exiled. Get rid of them and make sure they never cross us again.'; travel.quest5.winMessage = 'That\'ll teach them to cross the Buccaneers! And that\'s a lesson for anyone planning to desert us...'; travel.quest5.tMMessage = 'The breakoff group has plenty of strong men, be careful!'; travel.quest5.gMMessage = 'They are watching the flow of traffic into Barrios but not out. Travel to Barrios to find them.'; travel.quest5.rank = 'Pilot'; travel.quest5.prize = 0; travel.quest6.goal = 'Go back to Indigo Lake. Now that you are high enough rank, we can tell you that the package you delivered earlier was a mercenary delivery for a rare part for some sort of Enforcer weapon piece, but we\'re not entirely sure what it\'s for. Deliver it to Axel.'; travel.quest6.winMessage = 'You have delivered the piece safely, we\'ll do our best to protect it. Your promotion is certainly in order.'; travel.quest6.tMMessage = 'Don\'t forget to pick up the package in Indigo Lake first!'; travel.quest6.gMMessage = 'The Enforcers are going to be after you this time. Be careful, their armour is strong.'; travel.quest6.rank = 'Quartermaster'; travel.quest6.prize = 0; travel.quest7.goal = 'Head to LaVelle from here to ward off another incoming attack to Axel. En-route you\'ll find a very strong group of fighters.'; travel.quest7.winMessage = 'You have defeated the Enforcer army.'; travel.quest7.tMMessage = 'These enforcers are coming in a Tank. Be careful!'; travel.quest7.gMMessage = 'Highly trained men in a tank is nothing to take lightly. Choose your fight carefully, know when to run.'; travel.quest7.rank = 'Gunner'; travel.quest7.prize = 0; travel.quest8.goal = 'The town of Condon has been taken under Enforcer control. We need you to Battle the city and win possession. We can\'t let the Enforcers run the show!'; travel.quest8.winMessage = 'You have seiged the town of Condon and now rule over it and a new rank! Congratulations.'; travel.quest8.tMMessage = 'Castle battles are different in that its hard to see your opponent\'s strengths and weaknesses. Be ready to surrender.'; travel.quest8.gMMessage = 'Take the first hit and gear if you can go on. That\'s the key to not dying.'; travel.quest8.rank = 'Boatswain'; travel.quest8.prize = 0; travel.quest9.goal = 'We\'re ready to promote you to full leadership given your track record, however we want to give your candidancy one final push. Lower your reputation as low as it can go. One we find you have made quite the name for yourself, we\'ll promote you onwards.'; travel.quest9.winMessage = 'That\'s about as raw as you can get. We\'re ready to promote you to the next rank.'; travel.quest9.tMMessage = 'You know the drill, take out some mercenaries and leave some more to rot!'; travel.quest9.gMMessage = 'Guildmaster eh? I hope you won\'t be taking my position!'; travel.quest9.rank = 'Master'; travel.quest9.prize = 0; travel.quest10.goal = 'Axel has fallen to the Enforcers and they have managed to get the final part for their weapon. Head to Axel to see what is going on.'; travel.quest10.winMessage = 'My goodness, what a defeat! This will surely go down in history.'; travel.quest10.tMMessage = 'I have no advice for you but to be careful.'; travel.quest10.gMMessage = 'We have no scouts enroute to Axel, you need to see for yourself.'; travel.quest10.rank = 'Captain'; travel.quest10.prize = 0; travel.quest11.goal = 'You\'ve done your job. Now enjoy the spoils of being the guildmaster! Your responsibilities have been fulfilled now that the Enforcers dare not once again try to overthrow our guild!'; travel.quest11.winMessage = ''; travel.quest11.tMMessage = 'We\'ve got nothing for you Guildmaster. Enjoy plundering the world.'; travel.quest11.gMMessage = 'I\'m proud to have mentored you, but even moreso proud to call you my guildmaster. Cheers.'; travel.quest11.rank = 'Guildmaster'; travel.quest11.prize = 0; travel.quest12.goal = 'We just don\'t let anyone into the Enforcers Guild. The Enforcers follow a strict code and obey the law to the best of their ability. Travel to Doxinark to pledge your allegience.'; travel.quest12.winMessage = 'You have found your way to Doxinark and pledged your allegiance. Congratulations, you are now a Constable!'; travel.quest12.tMMessage = 'Take it easy. Don\'t need to prove yourself yet, just get to Doxinark.'; travel.quest12.gMMessage = 'Use the search system in the travel room to find your destination.'; travel.quest12.rank = 'Initiate'; travel.quest12.prize = 0; travel.quest13.goal = 'It\'s time for your first Buccaneer battle. First hand experience is key to success in any guild. Take to the open lands and find yourself a buccaneer party and take no prisoners... destroy them.'; travel.quest13.winMessage = 'That\'s it! You have defeated your first Buccaneer party and have gained respect in the guild.'; travel.quest13.tMMessage = 'Take it easy there champ. Find a smaller Buccaneer party to take on, no need to rush into a giant battle or anything.'; travel.quest13.gMMessage = 'If you come back alive a promotion is in order... but only if you come back alive.'; travel.quest13.rank = 'Police Constable'; travel.quest13.prize = 0; travel.quest14.goal = 'One of the biggest accomplishments of the Enforcers is recoginition in the community. Raise your reputation to 30 points or higher to advance in rank.'; travel.quest14.winMessage = 'You\'re starting to become a name in the communities and you\'ve made the Enforcers much more respectable. A promotion is in order!'; travel.quest14.tMMessage = 'Saving innocents, plundering pirates, there\'s several ways to earn reputation.'; travel.quest14.gMMessage = 'As your reputation rises more Buccaneers will be after your throat, be careful!'; travel.quest14.rank = 'Sergeant'; travel.quest14.prize = 0; travel.quest15.goal = 'We\'ve got a top-secret courier package to be delivered to Tamuguia. We need your help in getting it there ASAP. We can\'t quite tell you what it is, but it is for a secret weapon that we are producing to help aid the Enforcers.'; travel.quest15.winMessage = 'The package has been delivered safely. Thank you for this incredibly important task. '; travel.quest15.tMMessage = 'Pirates have gotten word that we\'re delivering the package. Be wary of oncoming attack.'; travel.quest15.gMMessage = 'We\'ve spotted several pirate parties enroute. Be incredibly careful, pace yourself. Travel short distances for safety.'; travel.quest15.rank = 'Courier'; travel.quest15.prize = 0; travel.quest16.goal = 'The city of Darkwood has been under siege by a strong Buccaneer vessel. Take down that vessel, which is located enroute to Darkwood.'; travel.quest16.winMessage = 'The vessel is destroyed and Darkwood is safe once more. A promotion to Superintendent is your reward!'; travel.quest16.tMMessage = 'The vessel is full of rugged pirates, so be careful. Arm yourself carefully and carry good armor.'; travel.quest16.gMMessage = 'You\'ll know the pirate gang when you see them. They are rough fighters and don\'t give up easily. Most pirates flee... these won\'t.'; travel.quest16.rank = 'Chief Inspector'; travel.quest16.prize = 0; travel.quest17.goal = 'The city of Pia has been taken by the Buccaneers. Many men were lost and the citizens are under constant threat of danger. Take back the city by capturing it.'; travel.quest17.winMessage = 'The city has been recaptured! Nice work, Chief Superintendent.'; travel.quest17.tMMessage = 'Siege the city, but remember to carry good armor once more.'; travel.quest17.gMMessage = 'Don\'t pick too many fights on the way there, you\'ll need all the strength you can muster.'; travel.quest17.rank = 'Superintendent'; travel.quest17.prize = 0; travel.quest18.goal = 'We have another package to be delivered. This time it\'s to Betsonia, and the pirates know we\'re carrying it again. But this time they\'ll be sending their best... and worse they\'ll be watching all routes even closer. Survive the trip, deliver the package to Betsonia.'; travel.quest18.winMessage = 'The package has been safely delivered and the guild is incredibly thankful for your assistance.'; travel.quest18.tMMessage = 'The Bucs are increasing in strength slowly but surely, make sure you keep up.'; travel.quest18.gMMessage = 'Once again you should be sticking to shorter routes to avoid the biggest trouble. Flee when you need to, there is no shame.'; travel.quest18.rank = 'Chief Superintendent'; travel.quest18.prize = 0; travel.quest19.goal = 'You\'ve shown true leadership in the Enforcers Guild, but now it\'s time to be the face of the guild. Raise your reputation as high as it will go, you\'ve got leadership potential that needs to shine.'; travel.quest19.winMessage = 'You\'ve become the talk of the land. Praise follows you but danger does as well, and a promotion is in order.'; travel.quest19.tMMessage = 'Destroying Buccaneers is great for reputation but don\'t hunt the Mercenaries, they are neutral and will hurt your rep.'; travel.quest19.gMMessage = 'Picking up injured strangers is a great way to earn rep, but you need the human capacity in your vessel.'; travel.quest19.rank = 'Commander'; travel.quest19.prize = 0; travel.quest20.goal = 'Bad news. The package you delivered to Tamuguia has been stolen and is enroute to Axel. Spies report that the Buccaneers guild has sent a massive vessel to protect the package. Take down the vessel and destroy all aboard, we need that package. '; travel.quest20.winMessage = 'You have defeated the pirate armada and are now in possession of the package. Nice job, Commissioner!'; travel.quest20.tMMessage = 'Make sure you are properly prepared. The spies have reported top-notch armor and weapons.'; travel.quest20.gMMessage = 'Go to Axel immediately, you\'ll find them on their way.'; travel.quest20.rank = 'Chief Constable'; travel.quest20.prize = 0; travel.quest21.goal = 'There is something strange heading your way from Lavelle sent by the Buccaneers as a last stand. Travel there. Take out whatever is coming. It is identified as Buccaneer-kind but... it\'s different. We\'re not sure how to describe it, but it is the most terrifying thing seen in the land in over a century. '; travel.quest21.winMessage = 'What a battle. You have destroyed the ghost ship and have sent a stern message to the Buccaneers. You have proven yourself a worthy leader.'; travel.quest21.tMMessage = 'This is the most dangerous mission we have ever sent anyone on, we need you to fulfill it.'; travel.quest21.gMMessage = 'I can\'t overstate how strong this \'vessel\' is. We\'re not even sure if it\'s normal, Head to Lavelle.'; travel.quest21.rank = 'Commissioner'; travel.quest21.prize = 0; travel.quest22.goal = 'You are now the guildmaster of the Enforcers Guild, congratulations. For your efforts, deeds, and moral choices you have proven youself more than worthy of such a position. Congratulations, there is nothing to be done from here for the Guild.'; travel.quest22.winMessage = ''; travel.quest22.tMMessage = 'There are no more tasks, besides the constant defeat of the Buccaneer scum. At your will, guildmaster.'; travel.quest22.gMMessage = 'I will gladly retire from duty for your promotion, I will sleep easier at night knowing things are run by you from now on.'; travel.quest22.rank = 'Guildmaster'; travel.quest22.prize = 0; var maxPRandom = 40; var maxQRandom = 60; var lowRate = 0.045; var highRate = 0.09; var sQVal = 0.05; var lQVal = 0.08; var tempSlot = 0; pricingAlgorithm(); quantityAlgorithm(); trade.shoppingCart = new Object(); trade.shoppingCart.qTotal = 0; trade.shoppingCart.pTotal = 0; i = 0; while (i < totItems) { trade.shoppingCart['q' + i] = 0; trade.shoppingCart['tot' + i] = 0; ++i; } } frame 5 { function chooseNewContinue() { gotoAndStop('dataWarning'); } stop(); startSong(13); } movieClip 966 { frame 1 { onEnterFrame = function () { if (_root.moving) { play(); } else { stop(); } }; } } button 971 { on (release) { _root.chooseNewContinue(); } } button 974 { on (release) { _root.triggerInterrupt5('Are you sure you want to erase your game?', _root.eraseData); } } button 977 { on (release) { getURL('http://www.armorgames.com/', '_blank'); } } movieClip 980 { } movieClip 981 { frame 1 { _root.moving = true; } frame 60 { stop(); } } frame 6 { loadGame(); } movieClip 985 { } // unknown tag 88 length 202 button 994 { on (release) { _root.gotoPlayerCreation(); } } movieClip 995 { } frame 7 { function moveHead(num) { player.player0.head += num; if (player.player0.head > 46) { player.player0.head = 2; } if (player.player0.head < 2) { player.player0.head = 46; } updateCharacter(); } function moveShirt(num) { player.player0.shirt += num; if (player.player0.shirt > 14) { player.player0.shirt = 2; } if (player.player0.shirt < 2) { player.player0.shirt = 14; } updateCharacter(); } function movePants(num) { player.player0.pants += num; if (player.player0.pants > 19) { player.player0.pants = 2; } if (player.player0.pants < 2) { player.player0.pants = 19; } updateCharacter(); } function setRandomOutfit() { player.player0.head = random(45) + 2; player.player0.shirt = random(13) + 2; player.player0.pants = random(18) + 2; myName = nameBank[random(nameBank.length)]; updateCharacter(); } function updateCharacter() { creation.headType.text = headNames[player.player0.head - 2]; creation.shirtType.text = shirtNames[player.player0.shirt - 2]; creation.pantsType.text = pantsNames[player.player0.pants - 2]; chooseOutfit(creation.human, 'walking', player.player0.head, player.player0.skin, player.player0.shirt, player.player0.pants, 1); } function startStore() { player.player0.baseAttack = attackPoints; player.player0.baseDefense = defensePoints; player.player0.travel = travelPoints; player.player0.trade = tradePoints; player.player0.name = myName; gotoAndStop('welcome'); } function minusTrade() { if (tradePoints > 0) { --tradePoints; ++points; } refreshPoints(); } function plusTrade() { if (points > 0 && tradePoints < 4) { --points; ++tradePoints; } refreshPoints(); } function minusTravel() { if (travelPoints > 0) { --travelPoints; ++points; } refreshPoints(); } function plusTravel() { if (points > 0 && travelPoints < 4) { --points; ++travelPoints; } refreshPoints(); } function minusDefense() { if (defensePoints > 0) { --defensePoints; ++points; } refreshPoints(); } function plusDefense() { if (points > 0 && defensePoints < 4) { --points; ++defensePoints; } refreshPoints(); } function minusAttack() { if (attackPoints > 0) { --attackPoints; ++points; } refreshPoints(); } function plusAttack() { if (points > 0 && attackPoints < 4) { --points; ++attackPoints; } refreshPoints(); } function refreshPoints() { creation.trade.gotoAndStop(tradePoints + 1); creation.travel.gotoAndStop(travelPoints + 1); creation.defense.gotoAndStop(defensePoints + 1); creation.attack.gotoAndStop(attackPoints + 1); if (points == 1) { creation.pointsRem.text = '1 Point Remaining'; } else { creation.pointsRem.text = points + ' Points Remaining'; } } i = 0; moving = true; randomizing = false; randCounter = 0; var myName = 'John'; var tradePoints = 0; var travelPoints = 0; var defensePoints = 0; var attackPoints = 0; updateCharacter(); onEnterFrame = function () { if (randomizing) { ++randCounter; setRandomOutfit(); if (randCounter > 15) { randCounter = 0; randomizing = false; } } }; var headNames = new Array(); headNames.push('Brawn'); headNames.push('Blondie'); headNames.push('Afro'); headNames.push('Slick'); headNames.push('Fab'); headNames.push('Thor'); headNames.push('Oldie'); headNames.push('Prim'); headNames.push('Guile'); headNames.push('Guile 2'); headNames.push('Pretty Guy'); headNames.push('Roadie'); headNames.push('Beethoven'); headNames.push('Francis Drake'); headNames.push('Thing 2'); headNames.push('Pseudopompadour'); headNames.push('Rayman'); headNames.push('Mop-top'); headNames.push('Newsboy'); headNames.push('Player'); headNames.push('Henchmen'); headNames.push('Jockey'); headNames.push('Caddie'); headNames.push('Patchie'); headNames.push('Knight'); headNames.push('Spaniard'); headNames.push('Mustached'); headNames.push('Columbus'); headNames.push('Pirate Scum'); headNames.push('Pirate Scum 2'); headNames.push('Pringles'); headNames.push('Beardman'); headNames.push('Adventurer'); headNames.push('Proper'); headNames.push('Clean Shave'); headNames.push('Buccaneer'); headNames.push('Captain Crunch'); headNames.push('Samarai'); headNames.push('Priest'); headNames.push('Prince'); headNames.push('Evildoer'); headNames.push('Ninja'); headNames.push('Knight 2'); headNames.push('Knight 3'); headNames.push('Shadow'); var shirtNames = new Array(); shirtNames.push('Classic Green Pea'); shirtNames.push('Classic Coffee'); shirtNames.push('Classic Cherry'); shirtNames.push('Classic Charcoal'); shirtNames.push('Royalty'); shirtNames.push('Sunfire'); shirtNames.push('Monochrome'); shirtNames.push('Peacock'); shirtNames.push('Bard'); shirtNames.push('Locksmith'); shirtNames.push('Periwinkle'); shirtNames.push('Stealth'); shirtNames.push('Classy'); shirtNames.push('Bartender'); shirtNames.push('Tails'); shirtNames.push('Blacksmith'); shirtNames.push('Sherlock'); var pantsNames = new Array(); pantsNames.push('White Leggings'); pantsNames.push('Brown Leggings'); pantsNames.push('Black Leggings'); pantsNames.push('White Tights'); pantsNames.push('Blue With Guard'); pantsNames.push('Red With Guard'); pantsNames.push('White With Guard'); pantsNames.push('Crimson With Guard'); pantsNames.push('Tall Boot Grey'); pantsNames.push('White Classical Legging'); pantsNames.push('Periwinkle Classical Legging'); pantsNames.push('Dark Classical Legging'); pantsNames.push('Monochrome Classical Legging'); pantsNames.push('Brown Pants'); pantsNames.push('Grey pants'); pantsNames.push('Black Pants'); pantsNames.push('Craft Leggings'); pantsNames.push('all Boot Black'); var points = 6; var tradePoints = 0; var travelPoints = 0; var defensePoints = 0; var attackPoints = 0; setRandomOutfit(); stop(); } movieClip 997 { } // unknown tag 88 length 209 movieClip 1003 { } movieClip 1005 { } movieClip 1007 { } movieClip 1008 { frame 1 { stop(); } } button 1027 { on (release) { _root.moveHead(1); } } button 1028 { on (release) { _root.moveHead(-1); } } button 1029 { on (release) { _root.moveShirt(1); } } button 1030 { on (release) { _root.moveShirt(-1); } } button 1031 { on (release) { _root.movePants(1); } } button 1032 { on (release) { _root.movePants(-1); } } button 1041 { on (release) { _root.randomizing = true; } } button 1043 { on (release) { _root.startStore(); } } button 1049 { on (release) { _root.minusTrade(); } } button 1050 { on (release) { _root.plusTrade(); } } button 1051 { on (release) { _root.minusTravel(); } } button 1052 { on (release) { _root.plusTravel(); } } button 1053 { on (release) { _root.minusDefense(); } } button 1054 { on (release) { _root.plusDefense(); } } button 1055 { on (release) { _root.minusAttack(); } } button 1056 { on (release) { _root.plusAttack(); } } movieClip 1057 { } frame 8 { stop(); } button 1064 { on (release) { _parent.play(); } } movieClip 1065 { } movieClip 1067 { } movieClip 1068 { } movieClip 1069 { frame 26 { stop(); } frame 165 { _root.play(); } } frame 9 { function calcPartyTravelCost() { travelCost = 0; i = 0; while (i < player.partySize) { travelCost += player['player' + i].hireRate; ++i; } } function initiateTravel() { trace('TRAVELLING'); player.cash -= travelCost; player.destination = bFocus; player.distBetween = 1 + Math.floor(dist(menu.mapSet['x' + bFocus]._x, menu.mapSet['x' + bFocus]._y, menu.mapSet['x' + player.location]._x, menu.mapSet['x' + player.location]._y) / 50); gotoAndStop('travelScreen'); } function handlePopUps() { tFrame = menu._currentframe; if (player.tutorials[tFrame] == 0) { player.tutorials[tFrame] = 1; triggerInterrupt6(tutMessages[tFrame]); } } function killTutorials() { fe = 0; while (fe < player.tutorials.length) { player.tutorials[fe] = 1; ++fe; } } function generateHires() { i = 0; while (i < 3) { ephem['stranger' + i].name = nameBank[random(nameBank.length)]; ephem['stranger' + i].baseAttack = 0; ephem['stranger' + i].baseDefense = 0; ephem['stranger' + i].travel = 0; ephem['stranger' + i].trade = 0; j = 0; while (j < 10) { switch (random(4)) { case 0: ++ephem['stranger' + i].baseAttack; break; case 1: ++ephem['stranger' + i].baseDefense; break; case 2: ++ephem['stranger' + i].travel; break; case 3: ++ephem['stranger' + i].trade; } if (ephem['stranger' + i].baseAttack > 4) { ephem['stranger' + i].baseAttack = 4; } if (ephem['stranger' + i].baseDefense > 4) { ephem['stranger' + i].baseDefense = 4; } if (ephem['stranger' + i].travel > 4) { ephem['stranger' + i].travel = 4; } if (ephem['stranger' + i].trade > 4) { ephem['stranger' + i].trade = 4; } ++j; } ephem['stranger' + i].head = random(16) + 2; ephem['stranger' + i].skin = random(6) + 2; ephem['stranger' + i].shirt = random(11) + 2; ephem['stranger' + i].pants = random(13) + 2; ephem['stranger' + i].hireRate = random(75) + 25; ephem['stranger' + i].hired = false; ++i; } } function pullTavernInfo() { menu.description.text = world['town' + player.location].description; menu.population.text = commaSnob(world['town' + player.location].population); menu.climate.text = world.natureLevels['l' + world['town' + player.location].nature]; menu.crime.text = world.crimeLevels['l' + world['town' + player.location].crime]; menu.tech.text = world.techLevels['l' + world['town' + player.location].tech]; menu.climateBar.gotoAndStop(world['town' + player.location].nature); tempNumber = world['town' + player.location].population; if (tempNumber < 500) { menu.cityTitle.text = 'The Territory of ' + world['town' + player.location].name; } else { if (tempNumber < 1500) { menu.cityTitle.text = 'The Villiage of ' + world['town' + player.location].name; } else { if (tempNumber < 8000) { menu.cityTitle.text = 'The Township of ' + world['town' + player.location].name; } else { if (tempNumber < 20000) { menu.cityTitle.text = 'The Town of ' + world['town' + player.location].name; } else { menu.cityTitle.text = 'The City of ' + world['town' + player.location].name; } } } } i = 0; while (i < 4) { trace(_root.numOfHires); if (numOfHires > i && ephem['stranger' + i].hired == false) { chooseOutfit(menu['human' + i], 'idle', ephem['stranger' + i].head, ephem['stranger' + i].skin, ephem['stranger' + i].shirt, ephem['stranger' + i].pants, -1); menu['name' + i].text = ephem['stranger' + i].name; menu['stat' + i].trade.gotoAndStop(ephem['stranger' + i].trade + 1); menu['stat' + i].travel.gotoAndStop(ephem['stranger' + i].travel + 1); menu['stat' + i].attack.gotoAndStop(ephem['stranger' + i].baseAttack + 1); menu['stat' + i].defense.gotoAndStop(ephem['stranger' + i].baseDefense + 1); menu['rate' + i].text = 'Trip Rate: ' + ephem['stranger' + i].hireRate + 'G'; trace(ephem['stranger' + i].hireRate); menu['na' + i]._visible = false; } else { menu['stat' + i]._visible = false; menu['hire' + i]._visible = false; menu['name' + i].text = ' '; menu['rate' + i].text = ' '; menu['human' + i]._visible = false; menu['na' + i]._visible = true; } menu['hire' + i].onRelease = function () { this.cat = this._name; tempNumber = Number(this.cat.substr(4, 6)); if (player.partySize < trade['vessel' + player.vessel].people) { hireThisGuy(tempNumber); } else { triggerInterrupt('There is not enough room in your party to hire this person. Fire another or find a larger vehicle.'); trace('There\'s no room!'); } }; ++i; } } function hireThisGuy(num) { var v2 = player.partySize; player['player' + v2].head = ephem['stranger' + num].head; player['player' + v2].skin = ephem['stranger' + num].skin; player['player' + v2].shirt = ephem['stranger' + num].shirt; player['player' + v2].pants = ephem['stranger' + num].pants; player['player' + v2].name = ephem['stranger' + num].name; player['player' + v2].baseAttack = ephem['stranger' + num].baseAttack; player['player' + v2].baseDefense = ephem['stranger' + num].baseDefense; player['player' + v2].travel = ephem['stranger' + num].travel; player['player' + v2].trade = ephem['stranger' + num].trade; player['player' + v2].hireRate = ephem['stranger' + num].hireRate; player['player' + v2].health = 100; trade['wSlot' + (20 + v2)].weaponType = 0; trade['aSlot' + (20 + v2)].armorType = 0; ++player.partySize; menu['stat' + num]._visible = false; menu['hire' + num]._visible = false; menu['name' + num].text = ' '; menu['rate' + num].text = ' '; menu['human' + num]._visible = false; menu['na' + num]._visible = true; triggerInterrupt('You have hired ' + ephem['stranger' + num].name + '! Don\'t forget to equip your new traveler!'); } function pullPartyInfo() { var v3 = 0; i = 0; while (i < 5) { if (i < player.partySize) { chooseOutfit(menu['human' + i], 'idle', player['player' + i].head, player['player' + i].skin, player['player' + i].shirt, player['player' + i].pants, trade['wSlot' + (20 + i)].weaponType); menu['stat' + i].trade.gotoAndStop(1 + player['player' + i].trade); menu['stat' + i].travel.gotoAndStop(1 + player['player' + i].travel); menu['stat' + i].defense.gotoAndStop(1 + player['player' + i].baseDefense); menu['stat' + i].attack.gotoAndStop(1 + player['player' + i].baseAttack); menu['rate' + i].text = 'Trip Rate: ' + player['player' + i].hireRate + 'G'; menu['name' + i].text = player['player' + i].name; if (trade['aSlot' + (i + 20)].armorType != -1) { menu['arm' + i].text = '+' + (trade['armor' + trade['aSlot' + (i + 20)].armorType].defense + player['player' + i].baseDefense); } else { menu['arm' + i].text = '+' + player['player' + i].baseDefense; } if (trade['wSlot' + (i + 20)].weaponType != -1) { menu['weap' + i].text = '+' + (Number(trade['weapon' + trade['wSlot' + (i + 20)].weaponType].attack) + Number(player['player' + i].baseAttack)); } else { menu['weap' + i].text = '+' + player['player' + i].baseAttack; } shel = menu.attachMovie('a' + trade['aSlot' + (i + 20)].armorType, 'a' + trade['aSlot' + (i + 20)].armorType, k++); shel._x = menu['armor' + i]._x; shel._y = menu['armor' + i]._y; shel = menu.attachMovie('w' + trade['wSlot' + (i + 20)].weaponType, 'w' + trade['wSlot' + (i + 20)].weaponType, k++); shel._x = menu['weapon' + i]._x; shel._y = menu['weapon' + i]._y; v3 += player['player' + i].hireRate; menu['fireF' + i]._visible = true; menu['fire' + i].onRelease = function () { this.cat = this._name; tempNumber = Number(this.cat.substr(4, 6)); i = tempNumber; while (i <= _root.player.partySize) { _root.player['player' + i].name = _root.player['player' + (i + 1)].name; _root.player['player' + i].baseAttack = _root.player['player' + (i + 1)].baseAttack; _root.player['player' + i].baseDefense = _root.player['player' + (i + 1)].baseDefense; _root.player['player' + i].trade = _root.player['player' + (i + 1)].trade; _root.player['player' + i].travel = _root.player['player' + (i + 1)].travel; _root.player['player' + i].head = _root.player['player' + (i + 1)].head; _root.player['player' + i].skin = _root.player['player' + (i + 1)].skin; _root.player['player' + i].shirt = _root.player['player' + (i + 1)].shirt; _root.player['player' + i].pants = _root.player['player' + (i + 1)].pants; _root.player['player' + i].health = _root.player['player' + (i + 1)].health; if (i == tempNumber) { trace('IIII=' + i); j = 0; while (j < 20) { if (_root.trade['wSlot' + j].weaponType == -1) { _root.trade['wSlot' + j].weaponType = _root.trade['wSlot' + (i + 20)].weaponType; _root.trade['wSlot' + (i + 20)].weaponType = _root.trade['wSlot' + (i + 21)].weaponType; break; } ++j; } j = 0; while (j < 20) { if (_root.trade['aSlot' + j].armorType == -1) { _root.trade['aSlot' + j].armorType = _root.trade['aSlot' + (i + 20)].armorType; _root.trade['aSlot' + (i + 20)].armorType = _root.trade['aSlot' + (i + 21)].armorType; break; } ++j; } } else { _root.trade['wSlot' + (i + 20)].weaponType = _root.trade['wSlot' + (i + 21)].weaponType; _root.trade['aSlot' + (i + 20)].armorType = _root.trade['aSlot' + (i + 21)].armorType; } ++i; } --_root.player.partySize; i = 0; while (i < _root.totASlots) { _root.menu['a' + i].removeMovieClip(); ++i; } i = 0; while (i < _root.totWSlots) { _root.menu['w' + i].removeMovieClip(); ++i; } _root.pullPartyInfo(); }; if (v3 > 0) { menu.wageCost.text = 'Total Costs for wages (per trip): ' + commaSnob(v3) + ' G'; } else { menu.wageCost.text = ''; } } else { menu['fire' + i]._visible = false; menu['fireF' + i]._visible = false; menu['human' + i]._visible = false; menu['stat' + i]._visible = false; menu['weapon' + i]._visible = false; menu['armor' + i]._visible = false; menu['name' + i].text = ''; menu['arm' + i].text = ''; menu['weap' + i].text = ''; menu['rate' + i].text = ''; } if (player.reputation > 0) { menu.negSide.text = '+' + player.reputation; } else { menu.negSide.text = player.reputation; } menu.rep.bar._xscale = player.reputation; menu.flees.text = player.flees; menu.surrenders.text = player.surrenders; menu.kills.text = player.kills; menu.victories.text = player.victories; menu.repDisp.text = getRepDisp(); ++i; } } function pullWeaponInfo(bool) { i = 0; while (i < 5) { if (i < player.partySize) { menu['hold' + (i + 20)]._visible = true; menu['p' + i]._visible = true; menu['p' + i].playerName.text = player['player' + i].name; if (trade['wSlot' + (i + 20)].weaponType != -1) { menu['p' + i].minorInfo.text = '+' + (player['player' + i].baseAttack + trade['weapon' + trade['wSlot' + (i + 20)].weaponType].attack) + ' to attack'; } else { menu['p' + i].minorInfo.text = '+' + player['player' + i].baseAttack + ' to attack'; } } else { menu['hold' + (i + 20)]._visible = false; menu['p' + i]._visible = false; } ++i; } i = 0; while (i < totWeapons) { menu['n_' + i].text = trade['weapon' + i].name; menu['c_' + i].text = '+' + trade['weapon' + i].attack; tempString = ''; if (_root.player.cash - _root.trade['weapon' + i].price < 0) { tempString += '<font color=\'#990000\'>'; } else { tempString += '<font color=\'#000000\'>'; } tempString += commaSnob(trade['weapon' + i].price) + ' G</font>'; menu['mp_' + i] = tempString; menu['buy' + i].onRelease = function () { this.cat = this._name; tempNumber = Number(this.cat.substr(3, 5)); trace(tempNumber); if (!_root.interrupted) { if (_root.player.cash - _root.trade['weapon' + tempNumber].price < 0) { _root.triggerInterrupt('You are short <font color=\'#990000\'>' + Math.abs(_root.player.cash - _root.trade['weapon' + tempNumber].price) + ' G</font>. Sell some cargo or other weapons to complete this purchase.'); } else { foundSlot = false; j = 0; while (j < _root.totWSlots - _root.personalSlots) { if (_root.trade['wSlot' + j].weaponType == -1) { _root.addWeapon(tempNumber, j); foundSlot = true; break; } ++j; } if (foundSlot == false) { _root.triggerInterrupt('You have too many weapons! Sell a few to continue buying.'); } } _root.pullWeaponInfo(); } }; ++i; } menu.sellDrop.onRelease = function () { if (!_root.interrupted) { i = 0; while (i < _root.totWSlots) { if (_root.menu['w' + i].hitTest(_root.menu.sellArea)) { _root.player.cash += Math.floor(_root.trade['weapon' + _root.trade['wSlot' + i].weaponType].price * armorSellBack); _root.pullMenuInfo(); _root.trade['wSlot' + i].weaponType = -1; _root.menu['w' + i].removeMovieClip(); } ++i; } _root.menu.totalBox.text = 'Total: SOLD!'; startSound(3); _root.pullWeaponInfo(); } }; if (!bool) { } } function fullLoadWeapon() { i = 0; while (i < totWSlots) { menu['w' + i].removeMovieClip(); if (trade['wSlot' + i].weaponType != -1) { loadWeapon(trade['wSlot' + i].weaponType, i); } ++i; } } function addWeapon(num, num2) { trade['wSlot' + num2].weaponType = num; player.cash -= trade['weapon' + num].price; loadWeapon(num, num2); _root.pullMenuInfo(); } function loadWeapon(num, num2) { shel = menu.attachMovie('w' + num, 'w' + num2, k++); shel._x = menu['hold' + num2]._x; shel._y = menu['hold' + num2]._y; } function loadWeapon2(num, num2) { shel = menu.attachMovie('w' + num, 'w' + num2, k++); shel._x = menu['p' + num2]._x; shel._y = menu['p' + num2]._y; } function pullArmorInfo(bool) { i = 0; while (i < 5) { if (i < player.partySize) { menu['hold' + (i + 20)]._visible = true; menu['p' + i]._visible = true; menu['p' + i].playerName.text = player['player' + i].name; if (trade['aSlot' + (i + 20)].armorType != -1) { menu['p' + i].minorInfo.text = '+' + (player['player' + i].baseDefense + trade['armor' + trade['aSlot' + (i + 20)].armorType].defense) + ' to defense'; } else { menu['p' + i].minorInfo.text = '+' + player['player' + i].baseDefense + ' to defense'; } } else { menu['hold' + (i + 20)]._visible = false; menu['p' + i]._visible = false; } ++i; } i = 0; while (i < totWeapons) { menu['n_' + i].text = trade['armor' + i].name; menu['c_' + i].text = '+' + trade['armor' + i].defense; tempString = ''; if (_root.player.cash - _root.trade['armor' + i].price < 0) { tempString += '<font color=\'#990000\'>'; } else { tempString += '<font color=\'#000000\'>'; } tempString += trade['armor' + i].price + ' G</font>'; menu['mp_' + i] = tempString; menu['buy' + i].onRelease = function () { this.cat = this._name; tempNumber = Number(this.cat.substr(3, 5)); trace(tempNumber); if (!_root.interrupted) { if (_root.player.cash - _root.trade['armor' + tempNumber].price < 0) { _root.triggerInterrupt('You are short <font color=\'#990000\'>' + Math.abs(_root.player.cash - _root.trade['armor' + tempNumber].price) + ' G</font>. Sell some cargo or other armor to complete this purchase.'); } else { foundSlot = false; j = 0; while (j < _root.totASlots - _root.personalSlots) { if (_root.trade['aSlot' + j].armorType == -1) { _root.addArmor(tempNumber, j); foundSlot = true; break; } ++j; } if (foundSlot == false) { _root.triggerInterrupt('You have too many armor! Sell a few to continue buying.'); } } _root.pullArmorInfo(); } }; ++i; } menu.sellDrop.onRelease = function () { if (!_root.interrupted) { i = 0; while (i < _root.totASlots) { if (_root.menu['a' + i].hitTest(_root.menu.sellArea)) { _root.player.cash += Math.floor(_root.trade['armor' + _root.trade['aSlot' + i].armorType].price * armorSellBack); _root.pullMenuInfo(); _root.trade['aSlot' + i].armorType = -1; _root.menu['a' + i].removeMovieClip(); } ++i; } _root.menu.totalBox.text = 'Total: SOLD!'; startSound(3); _root.pullArmorInfo(); } }; if (!bool) { } } function fullLoadArmor() { i = 0; while (i < totASlots) { menu['a' + i].removeMovieClip(); if (trade['aSlot' + i].armorType != -1) { loadArmor(trade['aSlot' + i].armorType, i); } ++i; } } function addArmor(num, num2) { trade['aSlot' + num2].armorType = num; player.cash -= trade['armor' + num].price; loadArmor(num, num2); _root.pullMenuInfo(); } function loadArmor(num, num2) { shel = menu.attachMovie('a' + num, 'a' + num2, k++); shel._x = menu['hold' + num2]._x; shel._y = menu['hold' + num2]._y; } function loadArmor2(num, num2) { shel = menu.attachMovie('a' + num, 'a' + num2, k++); shel._x = menu['p' + num2]._x; shel._y = menu['p' + num2]._y; } function pullVesselInfo() { i = 0; while (i < totVessels) { menu['sp_avail' + i] = true; menu['n_' + i].text = trade['vessel' + i].name; tempString = ''; if (i == 0) { tempString += 'No Cost'; } j = 0; while (j < 4) { if (trade['vessel' + i].costs['p' + j] != -1) { if (j != 0) { tempString += ', '; } if (trade['vessel' + i].costs['q' + j] <= player['item' + trade['vessel' + i].costs['p' + j]]) { tempString += '<font color=\'#000000\'>'; } else { if (i > player.vessel) { tempString += '<font color=\'#990000\'>'; menu['sp_avail' + i] = false; } } tempString += String(trade['vessel' + i].costs['q' + j]) + ' ' + trade['item' + trade['vessel' + i].costs['p' + j]].name; tempString += '</font>'; } else { break; } ++j; } menu['sp_' + i] = tempString; if (player.vessel < i) { menu['butt_' + i].upG._visible = true; menu['butt_' + i].downG._visible = false; menu['butt_' + i].noG._visible = false; } else { if (player.vessel > i) { menu['butt_' + i].upG._visible = false; menu['butt_' + i].downG._visible = true; menu['butt_' + i].noG._visible = false; } else { if (player.vessel == i) { menu['butt_' + i].upG._visible = false; menu['butt_' + i].downG._visible = false; menu['butt_' + i].noG._visible = true; } } } trace(trade['vessel' + i].people); menu['p_' + i].text = String(trade['vessel' + i].people); trace(menu['p_' + i]); menu['c_' + i].text = trade['vessel' + i].capacity; if (menu['butt_' + i].upG._visible) { menu['butt_' + i].upG.onRelease = function () { this.cat = this._parent._name; tempNumber = Number(this.cat.substr(5, 4)); if (_root.menu['sp_avail' + tempNumber] == false) { _root.triggerInterrupt('You do not have enough goods to upgrade your vessel'); } else { _root.sellOffVessel(tempNumber); } }; } if (menu['butt_' + i].downG._visible) { menu['butt_' + i].downG.onRelease = function () { this.cat = this._parent._name; tempNumber = Number(this.cat.substr(5, 4)); _root.buyBackVessel(tempNumber); }; } ++i; } i = 0; while (i < totItems) { menu['nx_' + i].text = trade['item' + i].name; menu['own_' + i].text = player['item' + i]; ++i; } } function sellOffVessel(num) { if (player.partySize > trade['vessel' + num].people) { triggerInterrupt('You have too many party members for this vessel. Fire someone or choose another vehicle.'); } else { j = 0; while (j < 4) { if (trade['vessel' + num].costs['p' + j] != -1) { player['item' + trade['vessel' + num].costs['p' + j]] -= trade['vessel' + num].costs['q' + j]; } else { break; } ++j; } player.vessel = num; player.capacity = trade['vessel' + player.vessel].capacity; pullMenuInfo(); pullVesselInfo(); } } function buyBackVessel(num) { if (player.partySize > trade['vessel' + num].people) { triggerInterrupt('You have too many party members for this vessel. Fire someone or choose another vehicle.'); } else { j = 0; while (j < 4) { if (trade['vessel' + num].costs['p' + j] != -1) { player['item' + trade['vessel' + num].costs['p' + j]] += trade['vessel' + num].costs['q' + j]; } else { break; } ++j; } player.vessel = num; player.capacity = trade['vessel' + player.vessel].capacity; pullMenuInfo(); pullVesselInfo(); } } function vesselRollOver() { i = 0; while (i < totVessels) { if (menu['ro' + i].hitTest(_xmouse, _ymouse)) { menu.vesselInfo.text = trade['vessel' + i].description; menu.vesselPicture.gotoAndStop(i + 1); } ++i; } } function pullBuyInfo() { i = 0; while (i < totItems) { menu['n_' + i].text = trade['item' + i].name; menu['ap_' + i].text = commaSnob(world['town' + player.location].trade['item' + i].price) + ' G'; menu['q_' + i].text = commaSnob(world['town' + player.location].trade['item' + i].quantity); if (menu['q_' + i].text == '0') { menu['q_' + i].text = 'Out'; } else {} menu['b_' + i].disp.text = commaSnob(trade.shoppingCart['q' + i]); menu['own_' + i].text = player['item' + i]; menu['b_' + i].up.onRelease = function () { if (!_root.interrupted) { this.cat = this._parent._name; tempNumber = Number(this.cat.substr(2, 4)); ++_root.trade.shoppingCart['q' + tempNumber]; if (_root.trade.shoppingCart['q' + tempNumber] > _root.world['town' + _root.player.location].trade['item' + tempNumber].quantity) { _root.trade.shoppingCart['q' + tempNumber] = _root.world['town' + _root.player.location].trade['item' + tempNumber].quantity; } _root.menu['b_' + tempNumber].disp.text = _root.trade.shoppingCart['q' + tempNumber]; } }; menu['b_' + i].down.onRelease = function () { if (!_root.interrupted) { this.cat = this._parent._name; tempNumber = Number(this.cat.substr(2, 4)); --_root.trade.shoppingCart['q' + tempNumber]; if (_root.trade.shoppingCart['q' + tempNumber] < 0) { _root.trade.shoppingCart['q' + tempNumber] = 0; } _root.menu['b_' + tempNumber].disp.text = _root.trade.shoppingCart['q' + tempNumber]; } }; menu['b_' + i].all.onRelease = function () { if (!_root.interrupted) { this.cat = this._parent._name; tempNumber = Number(this.cat.substr(2, 4)); tempNumber2 = 2; tempNumber3 = _root.player.cash / _root.world['town' + _root.player.location].trade['item' + tempNumber].price; tempNumber3 = Math.floor(tempNumber3); if (tempNumber3 > _root.player.capacity - _root.player.holding) { tempNumber3 = _root.player.capacity - _root.player.holding; } _root.trade.shoppingCart['q' + tempNumber] = tempNumber3; _root.menu['b_' + tempNumber].disp.text = _root.trade.shoppingCart['q' + tempNumber]; } }; menu['b_' + i].none.onRelease = function () { if (!_root.interrupted) { this.cat = this._parent._name; tempNumber = Number(this.cat.substr(2, 4)); _root.trade.shoppingCart['q' + tempNumber] = 0; _root.menu['b_' + tempNumber].disp.text = _root.trade.shoppingCart['q' + tempNumber]; } }; ++i; } menu.buyButton.onRelease = function () { if (!interrupted) { if (_root.trade.shoppingCart.pTotal > _root.player.cash) { _root.triggerInterrupt('You do not have enough money for this purchase. Remove <font color=\'#990000\'>' + Math.abs(_root.player.cash - _root.trade.shoppingCart.pTotal) + ' gold</font>' + ' worth of goods to make your purchase.'); } else { if (_root.trade.shoppingCart.qTotal == 0) { _root.triggerInterrupt('You need to choose what you are going to buy before purchasing items! Click the up and down arrows in the \'buy\' column to select.'); } else { if (_root.player.holding == _root.player.capacity) { _root.triggerInterrupt('Your cargo load is already full. Sell a few items or go travel somewhere!'); } else { if (_root.trade.shoppingCart.qTotal > Number(_root.player.capacity) - Number(_root.player.holding)) { _root.triggerInterrupt('You have enough gold, but not enough space. Remove <font color=\'#990000\'>' + Math.abs(Number(_root.player.capacity) - Number(_root.player.holding) - _root.trade.shoppingCart.qTotal) + ' items</font>' + ' from your order to make your purchase.'); } else { startSound(3); _root.player.cash -= _root.trade.shoppingCart.pTotal; _root.player.holding += _root.trade.shoppingCart.qTotal; i = 0; while (i < _root.totItems) { _root.player['item' + i] += Number(_root.trade.shoppingCart['q' + i]); if (Number(_root.trade.shoppingCart['q' + i]) > 0) { _root.menu['arrow_' + i].play(); } _root.world['town' + _root.player.location].trade['item' + i].quantity -= Number(_root.trade.shoppingCart['q' + i]); ++i; } _root.pullMenuInfo(); _root.pullBuyInfo(); _root.resetValues(); } } } } } }; } function pullMenuInfo() { menu.locAndDay.text = world['town' + player.location].name + ' - Day ' + commaSnob(player.day); menu.cash.text = commaSnob(player.cash); if (player.cash >= 1000000 && player.millionaire == false) { player.millionaire = true; triggerMillionaireWin(); } menu.storage.text = player.holding + '/' + player.capacity; menu.name.text = player.player0.name; if (world['town' + player.location].captured) { menu.ccGradient.gotoAndStop(1); } else { menu.ccGradient.gotoAndStop(2); } } function triggerMillionaireWin() { trace('MILLIONAIRE'); shel = attachMovie('millionWin', 'millionWin', k++); } function resetValues() { i = 0; while (i < totItems) { trade.shoppingCart['tp' + i] = 0; trade.shoppingCart['q' + i] = 0; menu['b_' + i].disp.text = 0; ++i; } } function pullSellInfo() { i = 0; while (i < totItems) { menu['n_' + i].text = trade['item' + i].name; menu['ap_' + i].text = commaSnob(sellCalc(world['town' + player.location].trade['item' + i].price)) + ' G'; menu['q_' + i].text = player['item' + i]; if (menu['q_' + i].text == '0') { menu['q_' + i].text = 'None'; } menu['b_' + i].disp.text = trade.shoppingCart['q' + i]; menu['b_' + i].up.onRelease = function () { if (!_root.interrupted) { this.cat = this._parent._name; tempNumber = Number(this.cat.substr(2, 4)); ++_root.trade.shoppingCart['q' + tempNumber]; if (_root.trade.shoppingCart['q' + tempNumber] > _root.player['item' + tempNumber]) { _root.trade.shoppingCart['q' + tempNumber] = _root.player['item' + tempNumber]; } _root.menu['b_' + tempNumber].disp.text = _root.trade.shoppingCart['q' + tempNumber]; } }; menu['b_' + i].down.onRelease = function () { if (!_root.interrupted) { this.cat = this._parent._name; tempNumber = Number(this.cat.substr(2, 4)); --_root.trade.shoppingCart['q' + tempNumber]; if (_root.trade.shoppingCart['q' + tempNumber] < 0) { _root.trade.shoppingCart['q' + tempNumber] = 0; } _root.menu['b_' + tempNumber].disp.text = _root.trade.shoppingCart['q' + tempNumber]; } }; menu['b_' + i].all.onRelease = function () { if (!_root.interrupted) { this.cat = this._parent._name; tempNumber = Number(this.cat.substr(2, 4)); _root.trade.shoppingCart['q' + tempNumber] = player['item' + tempNumber]; _root.menu['b_' + tempNumber].disp.text = _root.trade.shoppingCart['q' + tempNumber]; } }; menu['b_' + i].none.onRelease = function () { if (!_root.interrupted) { this.cat = this._parent._name; tempNumber = Number(this.cat.substr(2, 4)); _root.trade.shoppingCart['q' + tempNumber] = 0; _root.menu['b_' + tempNumber].disp.text = _root.trade.shoppingCart['q' + tempNumber]; } }; ++i; } menu.sellButton.onRelease = function () { if (!interrupted) { if (_root.trade.shoppingCart.qTotal == 0) { _root.triggerInterrupt('You need to choose what you are going to sell! Click the up and down arrows in the \'sell\' column to select.'); } else { startSound(3); _root.player.cash += _root.trade.shoppingCart.pTotal; _root.player.holding -= _root.trade.shoppingCart.qTotal; i = 0; while (i < _root.totItems) { _root.player['item' + i] -= Number(_root.trade.shoppingCart['q' + i]); if (Number(_root.trade.shoppingCart['q' + i]) > 0) { _root.menu['arrow_' + i].play(); } _root.world['town' + _root.player.location].trade['item' + i].quantity += Number(_root.trade.shoppingCart['q' + i]); ++i; } _root.pullMenuInfo(); _root.pullSellInfo(); _root.resetValues(); } } }; } function triggerTravel(str) { interrupted = true; shel = attachMovie('warning2', 'warning2', k++); shel._x = 350; shel._y = 250; shel.message = str; } function calculateCapacity() { capNow = 0; subTotal = 0; totalBuy = 0; i = 0; while (i < totItems) { capNow += player['item' + i]; subTotal += trade.shoppingCart['tot' + i]; totalBuy += Number(trade.shoppingCart['q' + i]); ++i; } player.holding = capNow; trade.shoppingCart.qTotal = totalBuy; trade.shoppingCart.pTotal = subTotal; menu.loadNow.text = player.holding; menu.capacity.text = player.capacity; } function limitBuyValues() { subTotalDisp = ''; i = 0; while (i < totItems) { if (menu['ro' + i].hitTest(_root._xmouse, _root._ymouse)) { menu['ro' + i].gotoAndStop(3); } else { menu['ro' + i].gotoAndStop(1); if (i % 2 == 0) { menu['ro' + i].gotoAndStop(2); } if (menu['q_' + i].text == '0' || menu['q_' + i].text == 'Out') { menu['ro' + i].gotoAndStop(4); } } if (trade.shoppingCart['q' + i] > world['town' + player.location].trade['item' + i].quantity) { trade.shoppingCart['q' + i] = world['town' + player.location].trade['item' + i].quantity; menu['b_' + i].disp.text = world['town' + player.location].trade['item' + i].quantity; Selection.setFocus(menu.loseFocus); } trade.shoppingCart['q' + i] = menu['b_' + i].disp.text; trade.shoppingCart['tot' + i] = trade.shoppingCart['q' + i] * world['town' + player.location].trade['item' + i].price; if (trade.shoppingCart['tot' + i] > 0) { menu['tp_' + i].text = commaSnob(trade.shoppingCart['tot' + i]) + ' G'; } else { menu['tp_' + i].text = ''; } if (trade.shoppingCart['q' + i] % 1 != 0) { menu['b_' + i].disp.text = 0; trade.shoppingCart['q' + i] = 0; Selection.setFocus(menu.loseFocus); } ++i; } if (trade.shoppingCart.qTotal > 0) { if (trade.shoppingCart.qTotal > player.capacity - player.holding) { subTotalDisp += '<font color=\'#990000\'>'; } else { subTotalDisp += '<font color=\'#0\'>'; } subTotalDisp += commaSnob(trade.shoppingCart.qTotal) + '</font>'; subTotalDisp += '<font color=\'#0\'> Items for </font>'; if (trade.shoppingCart.pTotal > player.cash) { subTotalDisp += '<font color=\'#990000\'>'; } else { subTotalDisp += '<font color=\'#0\'>'; } subTotalDisp += commaSnob(trade.shoppingCart.pTotal) + ' Gold</font>'; menu.buyButton._visible = true; menu.totalCostThing._visible = true; } else { subTotalDisp = '0 Items for 0 Gold'; } } function limitSellValues() { subTotalDisp = ''; i = 0; while (i < totItems) { if (menu['ro' + i].hitTest(_root._xmouse, _root._ymouse)) { menu['ro' + i].gotoAndStop(3); } else { menu['ro' + i].gotoAndStop(1); if (i % 2 == 0) { menu['ro' + i].gotoAndStop(2); } if (menu['q_' + i].text == '0' || menu['q_' + i].text == 'None') { menu['ro' + i].gotoAndStop(4); } } if (trade.shoppingCart['q' + i] > player['item' + i]) { trace('HEY'); trade.shoppingCart['q' + i] = player['item' + i]; menu['b_' + i].disp.text = player['item' + i]; Selection.setFocus(menu.loseFocus); } trade.shoppingCart['q' + i] = menu['b_' + i].disp.text; trade.shoppingCart['tot' + i] = trade.shoppingCart['q' + i] * sellCalc(world['town' + player.location].trade['item' + i].price); if (trade.shoppingCart['tot' + i] > 0) { menu['tp_' + i].text = commaSnob(trade.shoppingCart['tot' + i]) + ' G'; } else { menu['tp_' + i].text = ''; } if (trade.shoppingCart['q' + i] % 1 != 0) { menu['b_' + i].disp.text = 0; trade.shoppingCart['q' + i] = 0; Selection.setFocus(menu.loseFocus); } ++i; } subTotalDisp += '<font color=\'#0\'>'; subTotalDisp += commaSnob(trade.shoppingCart.qTotal) + '</font>'; subTotalDisp += '<font color=\'#0\'> Items for </font>'; subTotalDisp += '<font color=\'#0\'>'; subTotalDisp += commaSnob(trade.shoppingCart.pTotal) + ' Gold</font>'; } function sellCalc(num) { return Math.round(num * sellBack); } function pullGuildInfo() { if (player.questPath == 0) { menu.pages.gotoAndStop(1); } else { menu.pages.gotoAndStop(2); curPath = player.questPath; if (curPath < 12) { menu.pages.guildName.text = 'Buccaneers Guild'; menu.pages.guildRank.text = 'Level ' + curPath + ' - ' + travel['quest' + curPath].rank; menu.pages.emblem.gotoAndStop(2); } else { menu.pages.guildName.text = 'Enforcers Guild'; menu.pages.guildRank.text = 'Level ' + (curPath - 11) + ' - ' + travel['quest' + curPath].rank; menu.pages.emblem.gotoAndStop(1); } menu.pages.guildMasterSays.text = travel['quest' + curPath].gMMessage; menu.pages.taskMasterSays.text = travel['quest' + curPath].tMMessage; menu.pages.curQuest.text = travel['quest' + curPath].goal; } if (player.location == 24 && player.questPath == 2) { triggerInterrupt4(); } if (player.location == 19 && player.questPath == 3) { triggerInterrupt4(); } if (player.reputation <= -40 && player.questPath == 4) { triggerInterrupt4(); } if (player.reputation <= -100 && player.questPath == 9) { triggerInterrupt4(); } if (player.location == 19 && player.questPath == 6 && player.questStep == 0) { ++player.questStep; triggerInterrupt('You have recieved the package and must now travel to Axel to deliver it.'); } if (player.location == 8 && player.questPath == 6 && player.questStep == 1) { triggerInterrupt4(); } if (player.reputation >= 30 && player.questPath == 14) { triggerInterrupt4(); } if (player.location == 30 && player.questPath == 12) { triggerInterrupt4(); } if (player.location == 2 && player.questPath == 15) { triggerInterrupt4(); } if (player.location == 40 && player.questPath == 18) { triggerInterrupt4(); } if (player.reputation >= 100 && player.questPath == 19) { triggerInterrupt4(); } if (world.town46.captured && player.questPath == 8) { triggerInterrupt4(); } if (world.town35.captured && player.questPath == 17) { triggerInterrupt4(); } } function search() { searchPositive = false; i = 0; while (i < totTowns) { if (searchResults[i] == true && searchBox.length > minSearchLength) { searchPositive = true; } if (menu.mapSet['x' + i].hitTest(_xmouse, _ymouse)) { if (!travelHover[i]) { travelHover[i] = true; shel = menu.mapSet.attachMovie('mapPointer', 'mp' + i, k++); shel._x = menu.mapSet['x' + i]._x; shel._y = menu.mapSet['x' + i]._y; shel._rotation = ((_xmouse - 350) / 6) * -1; shel.te._rotation = -shel._rotation; shel.loc._rotation = shel.te._rotation; shel.te.town.text = world['town' + i].name; } } else { travelHover[i] = false; menu.mapSet['mp' + i].removeMovieClip(); } j = 0; while (j < 15) { if (searchBox.length > minSearchLength) { tempString = searchBox; tempString2 = world['town' + i].name.substr(j, searchBox.length); if (tempString.toLowerCase() == tempString2.toLowerCase()) { searchResults[i] = true; if (!travelHover[i]) { travelHover[i] = true; shel = menu.mapSet.attachMovie('mapPointer', 'mp' + i, k++); shel._x = menu.mapSet['x' + i]._x; shel._y = menu.mapSet['x' + i]._y; shel._rotation = ((_xmouse - 350) / 6) * -1; shel.te._rotation = -shel._rotation; shel.loc._rotation = shel.te._rotation; shel.te.town.text = world['town' + i].name; } break; } else { searchResults[i] = false; } } else { searchResults[i] = false; } ++j; } if (menu.mapSet['search' + i] == undefined && searchResults[i]) { shel = menu.mapSet.attachMovie('mapMark', 'search' + i, k++); shel._x = menu.mapSet['x' + i]._x; shel._y = menu.mapSet['x' + i]._y; } if (!searchResults[i] && oldResults[i]) { menu.mapSet['search' + i].removeMovieClip(); shel = menu.mapSet.attachMovie('mapMark2', 'search' + k, k++); shel._x = menu.mapSet['x' + i]._x; shel._y = menu.mapSet['x' + i]._y; travelHover[i] = false; menu.mapSet['mp' + i].removeMovieClip(); } oldResults[i] = searchResults[i]; ++i; } if (searchBox.length < minSearchLength + 1) { searchPositive = true; } if (searchPositive) { menu.mapSet.thisLoc.gotoAndStop(1); } else { menu.mapSet.thisLoc.gotoAndStop(2); } } function bubbleStats() { menu.mapSet.blankMC.clear(); shel = menu.mapSet.blankMC; shel.lineStyle(1, 8283197, 100); menu.mapSet.spreadArea._x = menu.mapSet['x' + player.location]._x; menu.mapSet.spreadArea._y = menu.mapSet['x' + player.location]._y; menu.mapSet.spreadArea._height = 100 * trade['vessel' + player.vessel].travelDist; menu.mapSet.spreadArea._width = menu.mapSet.spreadArea._height; i = 0; while (i < totTowns) { if (menu.mapSet['x' + i].hitTest(_xmouse, _ymouse)) { bFocus = i; } tempPointX = menu.mapSet._x + menu.mapSet['x' + i]._x; tempPointY = menu.mapSet._y + menu.mapSet['x' + i]._y; if (menu.mapSet.spreadArea.hitTest(tempPointX, tempPointY, true)) { menu.mapSet['x' + i].gotoAndStop(3); shel.moveTo(menu.mapSet['x' + player.location]._x, menu.mapSet['x' + player.location]._y); shel.lineTo(menu.mapSet['x' + i]._x, menu.mapSet['x' + i]._y); } if (world['town' + i].captured) { menu.mapSet['x' + i].flag.gotoAndStop(2); } else { menu.mapSet['x' + i].flag.gotoAndStop(1); } ++i; } menu.mapSet['x' + player.location].gotoAndStop(2); ras = menu.popBubble; i = 0; while (i < totItems) { tempString = ''; menu.popBubble['n_' + i].text = trade['item' + i].name; menu.popBubble['p_' + i].text = commaSnob(sellCalc(world['town' + bFocus].trade['item' + i].price)); tempNumber = commaSnob(sellCalc(world['town' + bFocus].trade['item' + i].price) - world['town' + player.location].trade['item' + i].price); if (tempNumber < 0) { tempString += '(<font color=\'#990000\'>-' + Math.abs(tempNumber) + '</font>)'; } else { if (tempNumber > 0) { tempString += '(<font color=\'#009900\'>+' + Math.abs(tempNumber) + '</font>)'; } else { if (tempNumber == 0) { tempString += '(<font color=\'#000000\'>+' + Math.abs(tempNumber) + '</font>)'; } } } menu.popBubble['d_' + i] = tempString; ras.climateBar.gotoAndStop(world['town' + bFocus].nature); ++i; } ras.name.text = world['town' + bFocus].name; ras.population.text = commaSnob(Number(world['town' + bFocus].population)); ras.crime.text = world.crimeLevels['l' + world['town' + bFocus].crime]; ras.hemisphere.text = world.hemisphereNames['h' + world['town' + bFocus].hemisphere]; ras.climate.text = world.natureLevels['l' + world['town' + bFocus].nature]; ras.technology.text = world.techLevels['l' + world['town' + bFocus].tech]; if (menu.popBubble.hitTest(_xmouse, _ymouse, true) && popActive) { if (menu.popBubble._x > 350 && _xmouse > 350) { popBubblePos = 0; popActive = false; } else { if (popActive) { popActive = false; popBubblePos = 2; } } } if (menu.popBubble._x > 500 || menu.popBubble._x < 200) { popActive = true; } switch (popBubblePos) { case 0: popBubbleX = 191; popBubbleY = 154; break; case 1: popBubbleX = 527; popBubbleY = 154; break; case 2: popBubbleX = 527; popBubbleY = 334; break; case 3: popBubbleX = 191; popBubbleY = 334; } easing('x', menu.popBubble, popBubbleX, 0.3); easing('y', menu.popBubble, popBubbleY, 0.3); menu.blankMC.removeMovieClip(); shel = menu.attachMovie('blankMC', 'blankMC', k++); if (_ymouse > 400 || _ymouse < 100) { if (menu.popBubble._alpha > 0) { menu.popBubble._alpha -= 7; } menu.blankMC.removeMovieClip(); } else { if (menu.popBubble._alpha < 100) { menu.popBubble._alpha += 7; } } menu.popBubble.swapDepths(k++); menu.travelHelpMenu.swapDepths(k++); } function switchTabs() { if (_currentframe != 3) { i = 0; while (i < totWSlots) { menu['w' + i].removeMovieClip(); ++i; } } if (_currentframe != 4) { i = 0; while (i < totASlots) { menu['a' + i].removeMovieClip(); ++i; } i = 0; while (i < totWSlots) { menu['w' + i].removeMovieClip(); ++i; } } if (_currentframe != 6) { i = 0; while (i < totASlots) { menu['a' + i].removeMovieClip(); ++i; } i = 0; while (i < totWSlots) { menu['w' + i].removeMovieClip(); ++i; } } if (_currentframe != 9) { menu.popBubble.removeMovieClip(); menu.blankMC.removeMovieClip(); menu.travelHelpMenu.removeMovieClip(); } menu.popBubble.removeMovieClip(); menu.blankMC.removeMovieClip(); menu.travelHelpMenu.removeMovieClip(); startSound(8); } function oppositeHemisphere(num) { switch (num) { case 0: return 2; break; case 1: return 3; break; case 2: return 0; break; case 3: return 1; } } function leaveGuild() { if (player.questPath > 11) { player.leftEnforcerGuild = true; changeReputation(-20); } else { player.leftBuccaneerGuild = true; changeReputation(20); } player.questPath = 0; } function dist(x1, y1, x2, y2) { return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); } function rot(circx, circy, prevx, prevy) { if (circx < prevx && circy < prevy) { angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx)); degrees = angle * 180 / Math.PI; return degrees + 90; } else { if (circx < prevx && circy > prevy) { angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx)); degrees = angle * 180 / Math.PI; return 90 - degrees; } else { if (circx > prevx && circy < prevy) { angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy)); degrees = angle * 180 / Math.PI; return -(180 - degrees); } else { if (circx > prevx && circy > prevy) { angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx)); degrees = angle * 180 / Math.PI; return -(90 - degrees); } } } } } function easing(pro, mov1, mov2, drift) { switch (pro) { case 'x': mov1._x -= drift * ((mov1._x - mov2) / 2); break; case 'y': mov1._y -= drift * ((mov1._y - mov2) / 2); break; case 'xscale': mov1._xscale -= drift * ((mov1._xscale - mov2) / 2); break; case 'yscale': mov1._yscale -= drift * ((mov1._yscale - mov2) / 2); break; case 'width': mov1._width -= drift * ((mov1._width - mov2) / 2); break; case 'height': mov1._height -= drift * ((mov1._height - mov2) / 2); break; case 'alpha': mov1._alpha -= drift * ((mov1._alpha - mov2) / 2); break; case 'rotation': mov1._rotation -= drift * ((mov1._rotation - mov2) / 2); } } function thrust(mov, vel, angle) { tempX = Math.cos(angle * 0.0174532925199433); tempY = Math.sin(angle * 0.0174532925199433); tempX *= vel; tempY *= vel; mov._x += tempX; mov._y += tempY; } function commaSnob(num) { if (num < 1000) { return String(num); } var v3 = (String(num)).length; var v4 = new Array(); var v1 = 0; while (v1 < v3) { v4.push((String(num)).charAt(v3 - 1 - v1)); ++v1; } var v2 = new String(); v1 = 0; while (v1 < v3) { if (v1 % 3 == 0 && v1 != 0) { v2 = v4[v1] + ',' + v2; } else { v2 = v4[v1] + v2; } ++v1; } return v2; } stop(); player.health = 100; saveGame(); onEnterFrame = function () { _root.moving = true; if (!interrupted) { handlePopUps(); calcPartyTravelCost(); switch (menu._currentframe) { case 1: limitBuyValues(); calculateCapacity(); break; case 2: limitSellValues(); calculateCapacity(); break; case 5: vesselRollOver(); break; break; case 6: case 8: pullGuildInfo(); break; case 9: bubbleStats(); search(); } } }; onMouseDown = function () { switch (menu._currentframe) { case 3: somethingTouched = false; i = 0; while (i < totWSlots) { if (menu['w' + i].hitTest(_xmouse, _ymouse)) { menu['w' + i].startDrag(true); tempTouched = i; somethingTouched = true; menu['w' + i].swapDepths(k++); trace(i); } ++i; } if (!somethingTouched) { tempTouched = -1; } break; case 4: somethingTouched = false; i = 0; while (i < totASlots) { if (menu['a' + i].hitTest(_xmouse, _ymouse)) { menu['a' + i].startDrag(true); tempTouched = i; somethingTouched = true; menu['a' + i].swapDepths(k++); trace(i); } ++i; } if (!somethingTouched) { tempTouched = -1; } break; case 9: if (menu.mapSet.clickSearch.hitTest(_xmouse, _ymouse)) { menu.mapSet.clickSearch._visible = false; } if (menu.mapSet['x' + bFocus].hitTest(_xmouse, _ymouse)) { if (menu.mapSet.spreadArea.hitTest(menu.mapSet._x + menu.mapSet['x' + bFocus]._x, menu.mapSet._y + menu.mapSet['x' + bFocus]._y, true)) { trace('hit!'); tempNumber = 1 + Math.floor(dist(menu.mapSet['x' + bFocus]._x, menu.mapSet['x' + bFocus]._y, menu.mapSet['x' + player.location]._x, menu.mapSet['x' + player.location]._y) / 50); trace(tempNumber); if (tempNumber < 1) { tempNumber = 1; } if (travelCost != 0 && travelCost < player.cash) { triggerTravel('Are you sure you want to travel to ' + world['town' + bFocus].name + '? It will take about ' + tempNumber + ' days and cost ' + commaSnob(travelCost) + ' G in wages upfront.'); } else { if (travelCost != 0 && travelCost > player.cash) { triggerInterrupt('You cannot travel because you cannot afford to pay your party. You must have ' + commaSnob(travelCost) + ' G in order to travel.'); } else { if (tempNumber > 1) { triggerTravel('Are you sure you want to travel to ' + world['town' + bFocus].name + '? It will take about ' + tempNumber + ' days.'); } else { triggerTravel('Are you sure you want to travel to ' + world['town' + bFocus].name + '? It should take about ' + tempNumber + ' day.'); } } } } else { triggerInterrupt('This city is out of range. Please choose another location.'); } } } }; var tutMessages = new Array(); tutMessages.push(' '); tutMessages.push('Welcome to the buy screen! Here you can purchase items to trade. To get the best profit, don\'t forget to check out the Travel screen!'); tutMessages.push('This is the selling screen. Once you travel to another city you can sell your items here.'); tutMessages.push('If you need weapons this is the place. While your current weapon will get you through today, you might need to start thinking about buying new weapons as enemies get stronger. You can sell weapons buy dragging them to the drop area.'); tutMessages.push('Here\'s where you can by defenses for yourself. Your current armor will help you survive for now, but consider buying more once you take on bigger fights.'); tutMessages.push('When you need more room for Buying and Selling you can upgrade your vessel here. Your cart upgrades also enable you to travel farther and take on employees and mercenaries! Vessels trade for items instead of Gold, so buy the items you need to buy the vessel of your dreams!'); tutMessages.push('This is the party screen. It will show you everyone in your party as well as your reputation (which fluctuates based on the decisions you make in the game).'); tutMessages.push('Welcome to the tavern! This is a base point for every city, and is a place to gain local knowledge. Click the other tabs to get a feel for the city.'); tutMessages.push('These are the guilds. If you want to take a side you can join either the Enforcers (police-like regulators) or the Buccaneers (piraters and plunderers). You don\'t have to join a guild, but know that once you do you\'ll attract the other side while you travel!'); tutMessages.push('This is the travel screen. Here you can scout prices and commit to travelling to different locations. Just click a location to travel there, but remember you can only travel to places within your travel radius.'); onMouseUp = function () { switch (menu._currentframe) { case 3: tempNumber = 0; tempNumber2 = 0; i = 0; while (i < totWSlots) { tempBoolean = true; menu['w' + i].stopDrag(); j = 0; while (j < totWSlots - (5 - _root.player.partySize)) { if (i == tempTouched && menu['hold' + j].hitTest(menu['w' + i]._x, menu['w' + i]._y, true)) { if (j != i) { trace('i=' + i); trace('j=' + j); trace('i=' + trade['wSlot' + i].weaponType); trace('j=' + trade['wSlot' + j].weaponType); trade.tSlot = trade['wSlot' + i]; trade['wSlot' + i] = trade['wSlot' + j]; trade['wSlot' + j] = trade.tSlot; trace('i=' + trade['wSlot' + i].weaponType); trace('j=' + trade['wSlot' + j].weaponType); } tempX = menu['w' + j]._x; tempY = menu['w' + j]._y; if (tempX == undefined) { tempX = menu['hold' + j]._x; tempY = menu['hold' + j]._y; } menu['w' + j]._x = menu['hold' + i]._x; menu['w' + j]._y = menu['hold' + i]._y; menu['w' + i]._x = tempX; menu['w' + i]._y = tempY; menu['w' + i]._name = 'temporary'; menu['w' + j]._name = 'w' + i; menu.temporary._name = String('w' + j); tempBoolean = false; break; } ++j; } if (tempBoolean) { if (menu.sellArea.hitTest(menu['w' + i]._x, menu['w' + i]._y, true)) { tempNumber += Math.floor(_root.trade['weapon' + _root.trade['wSlot' + i].weaponType].price * armorSellBack); ++tempNumber2; } } ++i; } if (tempNumber2 == 1) { menu.totalBox.text = 'Total: +' + commaSnob(tempNumber) + ' G for 1 item'; } else { if (tempNumber2 > 1) { menu.totalBox.text = 'Total: +' + commaSnob(tempNumber) + ' G for ' + tempNumber2 + ' items'; } else { menu.totalBox.text = 'Total:'; } } _root.pullWeaponInfo(true); break; case 4: tempNumber = 0; tempNumber2 = 0; i = 0; while (i < totASlots) { tempBoolean = true; menu['a' + i].stopDrag(); j = 0; while (j < totASlots - (5 - _root.player.partySize)) { if (i == tempTouched && menu['hold' + j].hitTest(menu['a' + i]._x, menu['a' + i]._y, true)) { if (j != i) { trace('i=' + i); trace('j=' + j); trace('i=' + trade['aSlot' + i].armorType); trace('j=' + trade['aSlot' + j].armorType); trade.tSlot = trade['aSlot' + i]; trade['aSlot' + i] = trade['aSlot' + j]; trade['aSlot' + j] = trade.tSlot; trace('i=' + trade['aSlot' + i].armorType); trace('j=' + trade['aSlot' + j].armorType); } tempX = menu['a' + j]._x; tempY = menu['a' + j]._y; if (tempX == undefined) { tempX = menu['hold' + j]._x; tempY = menu['hold' + j]._y; } menu['a' + j]._x = menu['hold' + i]._x; menu['a' + j]._y = menu['hold' + i]._y; menu['a' + i]._x = tempX; menu['a' + i]._y = tempY; menu['a' + i]._name = 'temporary'; menu['a' + j]._name = 'a' + i; menu.temporary._name = String('a' + j); tempBoolean = false; break; } ++j; } if (tempBoolean) { if (menu.sellArea.hitTest(menu['a' + i]._x, menu['a' + i]._y, true)) { tempNumber += Math.floor(_root.trade['armor' + _root.trade['aSlot' + i].armorType].price * armorSellBack); ++tempNumber2; } } ++i; } if (tempNumber2 == 1) { menu.totalBox.text = 'Total: +' + commaSnob(tempNumber) + ' G for 1 item'; } else { if (tempNumber2 > 1) { menu.totalBox.text = 'Total: +' + commaSnob(tempNumber) + ' G for ' + tempNumber2 + ' items'; } else { menu.totalBox.text = 'Total:'; } } _root.pullArmorInfo(true); } }; var bFocus = 100; menu.worldsBG.gotoAndStop(world['town' + player.location].nature); var tempNumber = 0; var tempString; var tempBoolean; var interrupted = false; var numOfHires = random(4); trace('NUMBER OF HIRES=' + numOfHires); generateHires(); pullBuyInfo(); pullMenuInfo(); var travelHover = new Array(); var searchResults = new Array(); var oldResults = new Array(); i = 0; while (i < 50) { travelHover.push(false); searchResults.push(false); oldResults.push(false); ++i; } var searchBox = ''; var minSearchLength = 1; var subTotal = 0; var subTotalDisp; var totalBuy = 0; var capNow = 0; var popActive = true; _root.switchTabs(); menu.gotoAndStop('tavern'); _root.pullTavernInfo(); } movieClip 1071 { } movieClip 1072 { frame 1 { stop(); } } // unknown tag 88 length 300 movieClip 1077 { } movieClip 1081 { } movieClip 1083 { } button 1085 { on (release) { if (!_root.interrupted) { gotoAndStop('selling'); _root.switchTabs(); _root.pullSellInfo(); } } } button 1086 { on (release) { if (!_root.interrupted) { _root.switchTabs(); gotoAndStop('arms'); _root.fullLoadWeapon(); _root.pullWeaponInfo(); } } } button 1087 { on (release) { if (!_root.interrupted) { _root.switchTabs(); gotoAndStop('armor'); _root.fullLoadArmor(); _root.pullArmorInfo(); } } } button 1088 { on (release) { if (!_root.interrupted) { _root.switchTabs(); gotoAndStop('convoy'); _root.pullVesselInfo(); } } } button 1089 { on (release) { if (!_root.interrupted) { _root.switchTabs(); gotoAndStop('party'); _root.pullPartyInfo(); } } } button 1090 { on (release) { if (!_root.interrupted) { gotoAndStop('buying'); _root.switchTabs(); _root.pullBuyInfo(); } } } button 1091 { on (release) { if (!_root.interrupted) { _root.switchTabs(); gotoAndStop('tavern'); _root.pullTavernInfo(); } } } button 1092 { on (release) { if (!_root.interrupted) { _root.bFocus = _root.player.location; _root.switchTabs(); gotoAndStop('guilds'); _root.menu.popBubble._alpha = 0; } } } button 1093 { on (release) { if (!_root.interrupted) { _root.bFocus = _root.player.location; _root.switchTabs(); gotoAndStop('travel'); if (_root.travelCost != 0 && _root.travelCost > _root.player.cash) { _root.triggerInterrupt('You cannot travel because you cannot afford to pay your party. You must have ' + _root.commaSnob(_root.travelCost) + ' G in order to travel.'); } _root.menu.popBubble._alpha = 0; } } } movieClip 1095 { } movieClip 1098 { } movieClip 1102 { } movieClip 1103 { frame 1 { stop(); } } movieClip 1111 { } // unknown tag 88 length 62 movieClip 1116 { } movieClip 1120 { } movieClip 1124 { } movieClip 1126 { } movieClip 1194 { } movieClip 1200 { } movieClip 1201 { frame 1 { stop(); } } movieClip 1204 { } movieClip 1207 { } movieClip 1213 { } button 1218 { on (release) { _root.saveGame(); _root.gotoMainMenu(); } } button 1222 { on (release) { _root.muteHandler(); } } button 1226 { on (release) { getURL('http://armorgames.com/', '_blank'); } } movieClip 1245 { } movieClip 1311 { } movieClip 1314 { } movieClip 1316 { frame 1 { stop(); onEnterFrame = function () { if (this.hitTest(_root._xmouse, _root._ymouse)) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } }; } } movieClip 1342 { } movieClip 1350 { } // unknown tag 88 length 256 // unknown tag 88 length 105 movieClip 1357 { } movieClip 1360 { } movieClip 1383 { } movieClip 1387 { } movieClip 1437 { } movieClip 1438 { } movieClip 1444 { } movieClip 1452 { frame 1 { stop(); } } movieClip 1463 { } movieClip 1469 { } movieClip 1472 { frame 1 { stop(); } } movieClip 1491 { } movieClip 1493 { } movieClip 1506 { } movieClip 1508 { } movieClip 1519 { } movieClip 1528 { } movieClip 1532 { frame 1 { stop(); } } movieClip 1547 { } button 1557 { on (release) { if (_root.player.leftEnforcerGuild) { _root.triggerInterrupt('The Enforcers will not accept those who have left the guild.'); } else { _root.changeGuild(12); } } } button 1558 { on (release) { if (_root.player.leftBuccaneerGuild) { _root.triggerInterrupt('The Buccaneers will not accept deserters back into the Guild! Move along!'); } else { _root.changeGuild(1); } } } // unknown tag 88 length 216 button 1572 { on (release) { if (!_root.interrupted) { _root.triggerInterrupt5('Are you sure you want to leave the guild? Deserters get a hit to their reputation and are exiled from the Guild!', _root.leaveGuild); } } } movieClip 1574 { frame 1 { stop(); } } movieClip 1576 { } movieClip 1579 { } movieClip 1582 { } movieClip 1584 { frame 1 { stop(); } } movieClip 1588 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1593 { } movieClip 1595 { frame 1 { stop(); } } movieClip 1598 { frame 1 { this._alpha = 0; } } movieClip 1599 { } movieClip 1601 { } movieClip 1602 { } movieClip 1603 { frame 1 { stop(); } } frame 10 { function updateBox() { trav.textScroller.box.text = tempString; } function genParty() { trace(player.partySize); i = 0; while (i < player.partySize) { chooseOutfit(trav.overhead['human' + i], 'walking', player['player' + i].head, player['player' + i].skin, player['player' + i].shirt, player['player' + i].pants, trade['wSlot' + (20 + i)].weaponType); ++i; } } function prepBattle() { trav.play(); ephem.pHealth = player.health; loadBattleStats(); } function checkHealth() { if (ephem.eHealth <= 0) { batStep = 4; triggerBattleWin(); } else { if (ephem.pHealth <= 0) { batStep = 5; triggerBattleLose(); } } } function loadBattleStats() { trav.player.playerName.text = player.player0.name + '\'s Party'; trav.player.healthBar.gotoAndStop(player.health + 1); trav.player.healthDisp.text = player.health + '/ 100'; trav.enemy.playerName.text = ephem.stranger0.name + '\'s Party'; trav.enemy.healthBar.gotoAndStop(ephem.health + 1); trav.enemy.healthDisp.text = ephem.health + '/ 100'; if (ephem.health > ephem.eHealth) { --ephem.health; } if (player.health > ephem.pHealth) { --player.health; } } function flipAutoAttack() { if (autoFight == false) { trav.textScroller.autoButt._visible = true; trav.textScroller.stopButt._visible = false; } else { trav.textScroller.autoButt._visible = false; trav.textScroller.stopButt._visible = true; } } function choosePirateParty(mov) { ephem.health = random(20) + 81; ephem.eHealth = ephem.health; ephem.vessel = random(7); ephem.maxParty = trade['vessel' + ephem.vessel].people; ephem.partySize = ephem.maxParty; trace('VESSEL = ' + ephem.vessel); trace('MAXPARTY = ' + ephem.maxParty); trace('PARTY SIZE = ' + ephem.partySize); mov.gotoAndStop(ephem.vessel + 1); i = 0; while (i < ephem.maxParty) { mov.group['human' + i]._visible = false; ++i; } i = 0; while (i < ephem.partySize) { ephem['stranger' + i].name = nameBank[random(nameBank.length)]; ephem['stranger' + i].armor = random(ephem.vessel) - 1; if (ephem['stranger' + i].armor < 0) { ephem['stranger' + i].armor = -1; } ephem['stranger' + i].weapon = random(ephem.vessel) + 1 - random(2) * 2; if (ephem['stranger' + i].weapon < 0) { ephem['stranger' + i].weapon = -1; } if (ephem['stranger' + i].weapon > 6) { ephem['stranger' + i].weapon = 6; } mov.group['human' + i]._visible = true; ephem['stranger' + i].baseAttack = random(5); ephem['stranger' + i].baseDefense = random(5); ephem['stranger' + i].head = 20; ephem['stranger' + i].skin = random(7) + 1; ephem['stranger' + i].shirt = 15; ephem['stranger' + i].pants = random(14) + 1; chooseOutfit(mov.group['human' + i], trade['vessel' + ephem.vessel].seated['up' + i], ephem['stranger' + i].head, ephem['stranger' + i].skin, ephem['stranger' + i].shirt, ephem['stranger' + i].pants, ephem['stranger' + i].weapon); ++i; } } function choosePirateParty2(mov) { ephem.health = 100; ephem.eHealth = ephem.health; ephem.vessel = 4; ephem.maxParty = trade['vessel' + ephem.vessel].people; ephem.partySize = ephem.maxParty; trace('VESSEL = ' + ephem.vessel); trace('MAXPARTY = ' + ephem.maxParty); trace('PARTY SIZE = ' + ephem.partySize); mov.gotoAndStop(ephem.vessel + 1); i = 0; while (i < ephem.maxParty) { mov.group['human' + i]._visible = false; ++i; } i = 0; while (i < ephem.partySize) { ephem['stranger' + i].name = 'Rogue'; ephem['stranger' + i].armor = random(ephem.vessel) - 1; if (ephem['stranger' + i].armor < 0) { ephem['stranger' + i].armor = -1; } ephem['stranger' + i].weapon = random(ephem.vessel) + 1 - random(2) * 2; if (ephem['stranger' + i].weapon < 0) { ephem['stranger' + i].weapon = -1; } if (ephem['stranger' + i].weapon > 6) { ephem['stranger' + i].weapon = 6; } mov.group['human' + i]._visible = true; ephem['stranger' + i].baseAttack = 4; ephem['stranger' + i].baseDefense = 3; ephem['stranger' + i].head = 20; ephem['stranger' + i].skin = random(7) + 1; ephem['stranger' + i].shirt = 11; ephem['stranger' + i].pants = 11; chooseOutfit(mov.group['human' + i], trade['vessel' + ephem.vessel].seated['up' + i], ephem['stranger' + i].head, ephem['stranger' + i].skin, ephem['stranger' + i].shirt, ephem['stranger' + i].pants, ephem['stranger' + i].weapon); ++i; } } function choosePirateParty3(mov) { ephem.health = 100; ephem.eHealth = ephem.health; ephem.vessel = 5; ephem.maxParty = trade['vessel' + ephem.vessel].people; ephem.partySize = ephem.maxParty; trace('VESSEL = ' + ephem.vessel); trace('MAXPARTY = ' + ephem.maxParty); trace('PARTY SIZE = ' + ephem.partySize); mov.gotoAndStop(ephem.vessel + 1); i = 0; while (i < ephem.maxParty) { mov.group['human' + i]._visible = false; ++i; } i = 0; while (i < ephem.partySize) { ephem['stranger' + i].name = nameBank[random(nameBank.length)]; ephem['stranger' + i].armor = 4; ephem['stranger' + i].weapon = 3; mov.group['human' + i]._visible = true; ephem['stranger' + i].baseAttack = 3; ephem['stranger' + i].baseDefense = 2; ephem['stranger' + i].head = 20; ephem['stranger' + i].skin = random(7) + 1; ephem['stranger' + i].shirt = 11; ephem['stranger' + i].pants = 11; chooseOutfit(mov.group['human' + i], trade['vessel' + ephem.vessel].seated['up' + i], ephem['stranger' + i].head, ephem['stranger' + i].skin, ephem['stranger' + i].shirt, ephem['stranger' + i].pants, ephem['stranger' + i].weapon); ++i; } } function choosePirateParty4(mov) { ephem.health = 30; ephem.eHealth = ephem.health; ephem.vessel = 7; ephem.maxParty = trade['vessel' + ephem.vessel].people; ephem.partySize = ephem.maxParty; trace('VESSEL = ' + ephem.vessel); trace('MAXPARTY = ' + ephem.maxParty); trace('PARTY SIZE = ' + ephem.partySize); mov.gotoAndStop(ephem.vessel + 1); i = 0; while (i < ephem.maxParty) { mov.group['human' + i]._visible = false; ++i; } i = 0; while (i < ephem.partySize) { ephem['stranger' + i].name = 'Ghost Ship'; ephem['stranger' + i].armor = 4; ephem['stranger' + i].weapon = 4; mov.group['human' + i]._visible = true; ephem['stranger' + i].baseAttack = 4; ephem['stranger' + i].baseDefense = 4; ephem['stranger' + i].head = 20; ephem['stranger' + i].skin = random(7) + 1; ephem['stranger' + i].shirt = 12; ephem['stranger' + i].pants = 12; chooseOutfit(mov.group['human' + i], trade['vessel' + ephem.vessel].seated['up' + i], ephem['stranger' + i].head, ephem['stranger' + i].skin, ephem['stranger' + i].shirt, ephem['stranger' + i].pants, ephem['stranger' + i].weapon); ++i; } } function chooseMercenaryParty(mov) { ephem.health = random(20) + 81; ephem.eHealth = ephem.health; ephem.vessel = random(7); ephem.maxParty = trade['vessel' + ephem.vessel].people; ephem.partySize = random(ephem.maxParty) + 1; trace('VESSEL = ' + ephem.vessel); trace('MAXPARTY = ' + ephem.maxParty); trace('PARTY SIZE = ' + ephem.partySize); mov.gotoAndStop(ephem.vessel + 1); i = 0; while (i < ephem.maxParty) { mov.group['human' + i]._visible = false; ++i; } i = 0; while (i < ephem.partySize) { ephem['stranger' + i].name = nameBank[random(nameBank.length)]; ephem['stranger' + i].armor = random(ephem.vessel) - 1; if (ephem['stranger' + i].armor < 0) { ephem['stranger' + i].armor = -1; } ephem['stranger' + i].weapon = random(ephem.vessel) + 1 - random(2) * 2; if (ephem['stranger' + i].weapon < 0) { ephem['stranger' + i].weapon = -1; } if (ephem['stranger' + i].weapon > 6) { ephem['stranger' + i].weapon = 6; } mov.group['human' + i]._visible = true; ephem['stranger' + i].baseAttack = random(5); ephem['stranger' + i].baseDefense = random(5); ephem['stranger' + i].head = random(17) + 1; ephem['stranger' + i].skin = random(7) + 1; ephem['stranger' + i].shirt = random(12) + 1; ephem['stranger' + i].pants = random(14) + 1; chooseOutfit(mov.group['human' + i], trade['vessel' + ephem.vessel].seated['up' + i], ephem['stranger' + i].head, ephem['stranger' + i].skin, ephem['stranger' + i].shirt, ephem['stranger' + i].pants, ephem['stranger' + i].weapon); ++i; } } function chooseRegulatorParty(mov) { ephem.health = 100; ephem.eHealth = ephem.health; ephem.vessel = random(7); ephem.maxParty = trade['vessel' + ephem.vessel].people; ephem.partySize = ephem.maxParty; trace('VESSEL = ' + ephem.vessel); trace('MAXPARTY = ' + ephem.maxParty); trace('PARTY SIZE = ' + ephem.partySize); mov.gotoAndStop(ephem.vessel + 1); i = 0; while (i < ephem.maxParty) { mov.group['human' + i]._visible = false; ++i; } i = 0; while (i < ephem.partySize) { ephem['stranger' + i].name = nameBank[random(nameBank.length)]; ephem['stranger' + i].armor = random(ephem.vessel) - 1; if (ephem['stranger' + i].armor < 0) { ephem['stranger' + i].armor = -1; } ephem['stranger' + i].weapon = random(ephem.vessel) + 1 - random(2) * 2; if (ephem['stranger' + i].weapon < 0) { ephem['stranger' + i].weapon = -1; } if (ephem['stranger' + i].weapon > 6) { ephem['stranger' + i].weapon = 6; } mov.group['human' + i]._visible = true; ephem['stranger' + i].baseAttack = random(5); ephem['stranger' + i].baseDefense = random(5); ephem['stranger' + i].head = 21; ephem['stranger' + i].skin = random(7) + 1; ephem['stranger' + i].shirt = 16; ephem['stranger' + i].pants = 16; chooseOutfit(mov.group['human' + i], trade['vessel' + ephem.vessel].seated['up' + i], ephem['stranger' + i].head, ephem['stranger' + i].skin, ephem['stranger' + i].shirt, ephem['stranger' + i].pants, ephem['stranger' + i].weapon); ++i; } } function chooseRegulatorParty2(mov) { ephem.health = 100; ephem.eHealth = ephem.health; ephem.vessel = 5; ephem.maxParty = trade['vessel' + ephem.vessel].people; ephem.partySize = ephem.maxParty; trace('VESSEL = ' + ephem.vessel); trace('MAXPARTY = ' + ephem.maxParty); trace('PARTY SIZE = ' + ephem.partySize); mov.gotoAndStop(ephem.vessel + 1); i = 0; while (i < ephem.maxParty) { mov.group['human' + i]._visible = false; ++i; } i = 0; while (i < ephem.partySize) { ephem['stranger' + i].name = nameBank[random(nameBank.length)]; ephem['stranger' + i].armor = 4; ephem['stranger' + i].weapon = 4; mov.group['human' + i]._visible = true; ephem['stranger' + i].baseAttack = 3; ephem['stranger' + i].baseDefense = 3; ephem['stranger' + i].head = 21; ephem['stranger' + i].skin = random(7) + 1; ephem['stranger' + i].shirt = 16; ephem['stranger' + i].pants = 16; chooseOutfit(mov.group['human' + i], trade['vessel' + ephem.vessel].seated['up' + i], ephem['stranger' + i].head, ephem['stranger' + i].skin, ephem['stranger' + i].shirt, ephem['stranger' + i].pants, ephem['stranger' + i].weapon); ++i; } } function chooseRobot(mov) { ephem.health = 100; ephem.eHealth = ephem.health; ephem.partySize = 1; i = 0; while (i < 1) { ephem['stranger' + i].name = 'Robot'; ephem['stranger' + i].armor = 0; ephem['stranger' + i].weapon = 0; ephem['stranger' + i].baseAttack = 50; ephem['stranger' + i].baseDefense = 30; ++i; } } function chooseCastle(mov) { ephem.health = 100; ephem.eHealth = ephem.health; ephem.partySize = 1; i = 0; while (i < 1) { ephem['stranger' + i].name = 'Castle'; ephem['stranger' + i].armor = 0; ephem['stranger' + i].weapon = 0; ephem['stranger' + i].baseAttack = 45; ephem['stranger' + i].baseDefense = 35; ++i; } } function startBattle() { if (ephem.partyType == 'robot' || ephem.subType == 'ghost') { startSong(12); } else { startSong(11); } flipAutoAttack(); batStep = 1; i = 0; while (i < _root.player.partySize) { chooseOutfit(trav.overhead.partySet.group['human' + i], 'idle', player['player' + i].head, player['player' + i].skin, player['player' + i].shirt, player['player' + i].pants, trade['wSlot' + (20 + i)].weaponType); ++i; } i = 0; while (i < ephem.partySize) { chooseOutfit(trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]].group['human' + i], 'idle', ephem['stranger' + i].head, ephem['stranger' + i].skin, ephem['stranger' + i].shirt, ephem['stranger' + i].pants, ephem['stranger' + i].weapon); ++i; } interrupted = true; moving = false; curMode = 'battle'; if (autoFight) { _root.triggerAttack(); } else { trav.textScroller.fleeButt._visible = true; trav.textScroller.attackButt._visible = true; trav.textScroller.surrenderButt._visible = true; if (player.questPath == 6 && player.questStep == 1) { trav.textScroller.surrenderButt._visible = false; } if (ephem.partyType == 'castle') { trav.textScroller.fleeButt._visible = false; } addMessage('<b>What do you want to do?</b>'); trav.textScroller.attackButt.onRelease = function () { _root.triggerAttack(); }; trav.textScroller.fleeButt.onRelease = function () { _root.triggerFlee(); }; trav.textScroller.surrender.onRelease = function () { _root.surrenderGoods(); }; } } function triggerAttack() { startSound(9); moveDirection = 'normal'; if (trav.overhead.partySet._xscale == -100) { trav.overhead.partySet._xscale = 100; } i = 0; while (i < _root.player.partySize) { chooseOutfit(trav.overhead.partySet.group['human' + i], 'hit', player['player' + i].head, player['player' + i].skin, player['player' + i].shirt, player['player' + i].pants, trade['wSlot' + (20 + i)].weaponType); ++i; } tempCounter = 0; batStep = 2; trav.textScroller.fleeButt._visible = false; trav.textScroller.attackButt._visible = false; trav.textScroller.surrenderButt._visible = false; moveDirection = 'normal'; } function timeOutSwing() { ++tempCounter; if (tempCounter == 16) { startSound(0); damage = 0; defense = 0; i = 0; while (i < player.partySize) { damage += player['player' + i].baseAttack; if (trade['wSlot' + (20 + i)].weaponType != -1) { damage += trade['weapon' + trade['wSlot' + (20 + i)].weaponType].attack; } ++i; } trace('HIT FOR ' + damage); i = 0; while (i < ephem.partySize) { if (ephem.partyType == 'robot') { myRobot.gotoAndStop('block'); } else { if (ephem.partyType == 'castle') { myCastle.gotoAndStop('block'); } else { chooseOutfit(trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]].group['human' + i], 'block', ephem['stranger' + i].head, ephem['stranger' + i].skin, ephem['stranger' + i].shirt, ephem['stranger' + i].pants, ephem['stranger' + i].weapon); } } defense += ephem['stranger' + i].baseDefense; if (ephem['stranger' + i].armor != -1) { defense += trade['armor' + ephem['stranger' + i].armor].defense; } ++i; } trace('DEFEND FOR ' + defense); totalDamage = damage - random(defense); if (totalDamage < 0) { totalDamage = 0; } trace('TOTAL DAMAGE FOR ' + totalDamage); shel = _root.attachMovie('floatUp', 'float' + k, k++); shel._x = 400; shel._y = 120; shel.thing.thing.textB.text = '-' + Math.ceil(totalDamage); if (totalDamage == 0) { shel.thing.thing.textB.text = 'miss!'; } ephem.eHealth -= Math.ceil(totalDamage); addMessage(player.player0.name + '\'s Party attacks <b><font color=\'#009900\'>' + totalDamage + ' Damage!</font></b>'); } if (tempCounter > 25) { tempCounter = 0; decideEnemyAction(); } } function decideEnemyAction() { if (ephem.partyType == 'pirates') { if (ephem.eHealth < 10 + random(20)) { triggerFlee2(); batStep = 7; } else { triggerEnemyAttack(); batStep = 3; } } else { if (ephem.partyType == 'mercenaries') { if (ephem.eHealth < 50 + random(10)) { triggerFlee2(); batStep = 7; } else { triggerEnemyAttack(); batStep = 3; } } else { if (ephem.partyType == 'regulators') { triggerEnemyAttack(); batStep = 3; } else { if (ephem.partyType == 'robot') { triggerEnemyAttack(); batStep = 3; } else { if (ephem.partyType == 'castle') { triggerEnemyAttack(); batStep = 3; } } } } } } function triggerEnemyAttack() { startSound(9); i = 0; while (i < ephem.partySize) { if (ephem.partyType == 'robot') { myRobot.gotoAndStop('hit'); } else { if (ephem.partyType == 'castle') { myCastle.gotoAndStop('hit'); } else { chooseOutfit(trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]].group['human' + i], 'hit', ephem['stranger' + i].head, ephem['stranger' + i].skin, ephem['stranger' + i].shirt, ephem['stranger' + i].pants, ephem['stranger' + i].weapon); } } ++i; } tempCounter = 0; } function timeOutSwing2() { ++tempCounter; if (tempCounter == 16) { startSound(0); damage = 0; defense = 0; i = 0; while (i < ephem.partySize) { damage += ephem['stranger' + i].baseAttack; if (ephem['stranger' + i].weapon != -1) { damage += trade['weapon' + ephem['stranger' + i].weapon].attack; } ++i; } trace('=================='); trace('HIT FOR ' + damage); i = 0; while (i < player.partySize) { chooseOutfit(trav.overhead.partySet.group['human' + i], 'block', player['player' + i].head, player['player' + i].skin, player['player' + i].shirt, player['player' + i].pants, trade['wSlot' + (20 + i)].weaponType); trace(player['player' + i].weapon); defense += player['player' + i].baseDefense; if (trade['aSlot' + (20 + i)].armorType != -1) { defense += trade['armor' + trade['aSlot' + (20 + i)].armorType].defense; } ++i; } trace('DEFEND FOR ' + defense); totalDamage = damage - random(defense); if (totalDamage < 0) { totalDamage = 0; } trace('TOTAL DAMAGE FOR ' + totalDamage); shel = _root.attachMovie('floatUp', 'float' + k, k++); shel._x = 200; shel._y = 120; shel.thing.thing.textB.text = '-' + Math.ceil(totalDamage); if (totalDamage == 0) { shel.thing.thing.textB.text = 'miss!'; } ephem.pHealth -= Math.ceil(totalDamage); addMessage(ephem.stranger0.name + '\'s Party attacks for <b><font color=\'#990000\'>' + totalDamage + ' Damage!</font></b>'); } if (tempCounter > 25) { tempCounter = 0; startBattle(); } } function triggerFlee() { trace('TRIGGER FLEE'); fleePick = random(2); batStep = 6; trav.textScroller.fleeButt._visible = false; trav.textScroller.attackButt._visible = false; trav.textScroller.surrenderButt._visible = false; moveDirection = 'flipped'; } function triggerFlee2() { trace('TRIGGER FLEE'); fleePick = random(6); batStep = 6; trav.textScroller.fleeButt._visible = false; trav.textScroller.attackButt._visible = false; trav.textScroller.surrenderButt._visible = false; moveDirection = 'normal'; if (trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]]._xscale < 100) { trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]]._xscale = 100; } } function timeOutFlee() { ++tempCounter; moving = true; _root.moving = true; visuals(moving); if (fleePick == 1) { if (tempCounter > 20) { trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]]._x -= 10; } else { trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]]._x += 10; } } else { trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]]._x += 10; } if (tempCounter >= 40) { moving = false; visuals(false); tempCounter = 0; moveDirection = 'normal'; switch (fleePick) { case 0: trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]].removeMovieClip(); addFlee(); endFlee(); break; case 1: if (trav._currentframe == 1) { trav.play(); } addFlee(); addMessage('You try to get away but can\'t!'); triggerEnemyAttack(); batStep = 3; } } } function timeOutFlee2() { ++tempCounter; moving = true; _root.moving = true; visuals(moving); if (fleePick != 1) { if (tempCounter > 20) { trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]]._x -= 10; } else { trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]]._x += 10; } } else { trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]]._x += 10; } if (tempCounter >= 40) { moving = false; visuals(false); tempCounter = 0; moveDirection = 'normal'; switch (fleePick) { case 1: trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]].removeMovieClip(); endFlee2(); break; default: addMessage('The enemy tries to flee but you keep up with him!'); moving = false; startBattle(); } } } function endFlee() { trav.textScroller.fleeButt._visible = false; trav.textScroller.attackButt._visible = false; trav.textScroller.surrenderButt._visible = false; trav.textScroller.stopButt._visible = false; trav.textScroller.stopGo._visible = true; trav.textScroller.autoButt._visible = false; trav.textScroller.stopGo.stopButt._visible = false; trav.textScroller.stopGo.goButt._visible = true; interrupted = false; moveDirection = 'normal'; if (trav._currentframe != 1) { trav.play(); } startSong(oldSong); batStep = 1000; addMessage('You manage to escape your enemy.'); } function endFlee2() { trav.textScroller.fleeButt._visible = false; trav.textScroller.attackButt._visible = false; trav.textScroller.surrenderButt._visible = false; trav.textScroller.stopButt._visible = false; trav.textScroller.stopGo._visible = true; trav.textScroller.autoButt._visible = false; trav.textScroller.stopGo.stopButt._visible = false; trav.textScroller.stopGo.goButt._visible = true; batStep = 1000; interrupted = false; addMessage('The enemy has fled!'); moveDirection = 'normal'; startSong(oldSong); if (trav._currentframe != 1) { trav.play(); } moving = false; } function surrenderGoods() { if (trav._currentframe != 1) { trav.play(); } addSurrender(); trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.attackButt._visible = false; trav.textScroller.surrenderButt._visible = false; trav.textScroller.stopButt._visible = false; trav.textScroller.stopGo._visible = true; trav.textScroller.autoButt._visible = false; trav.textScroller.stopGo.stopButt._visible = false; trav.textScroller.stopGo.goButt._visible = true; tempNumber = random(2); if (ephem.partyType == 'castle') { _root.player.cash -= 1000; if (_root.player.cash < 0) { _root.player.cash = 0; } trace('SURRENDER!'); trav.textScroller.surrenderButt._visible = false; trav.textScroller.stopGo._visible = false; trav.textScroller.stopGo.goButt._visible = false; triggerInterrupt3('You have given up your siege and have been fined 1,000 G for your trouble'); } else { switch (tempNumber) { case 0: addMessage('<b>You surrender!</b> The enemy takes half of all your cargo and lets you pass!'); i = 0; while (i < totItems) { if (player['item' + i] != 0) { player['item' + i] = Math.floor(player['item' + i] / 2); } ++i; } break; case 1: tempNumber = Math.round(player.cash / 4); player.cash -= tempNumber; addMessage('<b>You surrender!</b> The enemy takes 25% of your gold and lets you carry on. You lose ' + tempNumber + ' G!'); } } } function timeOutSwing3() { ++tempCounter; if (tempCounter >= 95) { tempCounter = 0; } getLoot(); batStep = 1000; } function triggerBattleWin() { ephem.health = 0; loadBattleStats(); i = 0; while (i < ephem.partySize) { addKill(); if (ephem.partyType == 'robot') { myRobot.gotoAndStop('die'); } else { if (ephem.partyType == 'castle') { myCastle.gotoAndStop('die'); } else { chooseOutfit(trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]].group['human' + i], 'die', ephem['stranger' + i].head, ephem['stranger' + i].skin, ephem['stranger' + i].shirt, ephem['stranger' + i].pants, ephem['stranger' + i].weapon); } } ++i; } startSound(1); addMessage('<b><font color=\'#009900\'>You Win the Battle! Congratulations!</font></b>'); trav.textScroller.fleeButt._visible = false; trav.textScroller.attackButt._visible = false; trav.textScroller.surrenderButt._visible = false; trav.textScroller.stopButt._visible = false; trav.textScroller.stopGo._visible = true; trav.textScroller.stopGo.stopButt._visible = false; trav.textScroller.stopGo.goButt._visible = true; trav.textScroller.autoButt._visible = false; trav.textScroller.stopButt._visible = false; interrupted = false; trav.play(); if (ephem.partyType == 'pirates') { changeReputation(1); } if (ephem.partyType == 'regulators') { changeReputation(-1); } if (ephem.partyType == 'regulators' && player.questPath == 1) { triggerInterrupt4(); } if (ephem.partyType == 'pirates' && player.questPath == 13) { triggerInterrupt4(); } if (ephem.subType == 'rogues' && player.questPath == 5) { triggerInterrupt4(); } if (ephem.subType == 'strong' && player.questPath == 7) { triggerInterrupt4(); } if (ephem.subType == 'gang' && player.questPath == 16) { triggerInterrupt4(); } if (ephem.partyType == 'robot' && player.questPath == 10) { triggerInterrupt4(); triggerPirateWin(); } if (ephem.subType == 'armada' && player.questPath == 20) { triggerInterrupt4(); } if (ephem.subType == 'ghost' && player.questPath == 21) { triggerInterrupt4(); triggerEnforcerWin(); } if (ephem.partyType == 'castle') { trav.textScroller.stopGo._visible = false; world['town' + player.destination].captured = true; triggerInterrupt3('You have claimed the castle your own! You now own claim to a reward each time you visit.'); triggerWorldWin(); } addVictory(); startSong(oldSong); } function triggerPirateWin() { shel = attachMovie('pirateWin', 'pirateWin', k++); } function triggerWorldWin() { player.captureAll = true; t = 0; while (t < 50) { if (world['town' + t].captured == false) { player.captureAll = false; } ++t; } if (player.captureAll) { shel = attachMovie('worldWin', 'worldWin', k++); } } function triggerEnforcerWin() { shel = attachMovie('enforcerWin', 'enforcerWin', k++); } function triggerBattleLose() { player.health = 0; loadBattleStats(); i = 0; while (i < player.partySize) { chooseOutfit(trav.overhead.partySet.group['human' + i], 'die', player['player' + i].head, player['player' + i].skin, player['player' + i].shirt, player['player' + i].pants, player['player' + i].weapon); ++i; } startSound(1); shel = attachMovie('gameOver', 'gameOver', k++); shel._x = 0; shel._y = 0; addMessage('<b><font color=\'#990000\'>You Have Lost the Battle.</font></b>'); } function getLoot() { tempLongString = ''; tooMuchArmor = false; tooMuchWeapons = false; i = 0; while (i < ephem.partySize) { foundSlot = false; if (ephem['stranger' + i].armor != -1) { j = 0; while (j < 20) { if (trade['aSlot' + j].armorType == -1) { trade['aSlot' + j].armorType = ephem['stranger' + i].armor; tempLongString += 'a ' + trade['armor' + ephem['stranger' + i].armor].name + ' Armor, '; trace(trade['armor' + ephem['stranger' + i].armor].name); foundSlot = true; break; } ++j; } if (foundSlot == false) { tooMuchArmor = false; } } ++i; } i = 0; while (i < ephem.partySize) { foundSlot = false; if (ephem['stranger' + i].weapon != -1) { j = 0; while (j < 20) { if (trade['wSlot' + j].weaponType == -1) { trade['wSlot' + j].weaponType = ephem['stranger' + i].weapon; tempLongString += 'a ' + trade['weapon' + ephem['stranger' + i].weapon].name + ', '; trace(trade['weapon' + ephem['stranger' + i].weapon].name); foundSlot = true; break; } ++j; } if (foundSlot == false) { tooMuchWeapons = false; } } ++i; } tempNumber = ephem.partySize * addRandomCash(); player.cash += tempNumber; if (tempLongString == '') { addMessage('You managed to find ' + tempNumber + ' G!'); } else { addMessage('You managed to find ' + tempLongString + 'in addition to ' + tempNumber + ' G!'); } } function chooseEvent() { tempNumber = random(5); switch (tempNumber) { case 0: if (loadLastFrame) { loadLastFrame = false; } else { loadLastFrame = true; if (player.questPath == 6 && player.questStep == 1) { myChoice = 10; } else { if (player.questPath == 3) { myChoice = 8; } else { if (player.questPath == 15) { myChoice = 13; } else { if (player.questPath == 18) { myChoice = 13; } else { if (!tripSpecial && player.questPath == 5 && player.destination == 43) { myChoice = 9; tripSpecial = true; } else { if (!tripSpecial && player.questPath == 16 && player.destination == 13) { myChoice = 14; tripSpecial = true; } else { if (!tripSpecial && player.questPath == 7 && player.destination == 23) { myChoice = 11; tripSpecial = true; } else { if (!tripSpecial && player.questPath == 10 && player.destination == 8) { myChoice = 12; tripSpecial = true; } else { if (!tripSpecial && player.questPath == 20 && player.destination == 8) { myChoice = 15; tripSpecial = true; } else { if (!tripSpecial && player.questPath == 21 && player.destination == 23) { myChoice = 16; tripSpecial = true; } else { myChoice = random(6); } } } } } } } } } } loadEvent(myChoice); } break; default: if (hour == 6) { startSound(6); } if (hour == 22) { startSound(7); } addMessage(hour + ':00 ------------------------------------------------------------------------------>'); } } function loadEvent(num) { trace('NEW EVENT ->' + travel['event' + num].mc); trace('EVENT #' + num); shel = trav.overhead.eventLoadArea.attachMovie(travel['event' + num].mc, 'id' + k, k++); switch (num) { case 16: shel._xscale = -100; ephem.partyType = 'regulators'; ephem.subType = 'ghost'; choosePirateParty4(shel); break; case 15: shel._xscale = -100; ephem.partyType = 'regulators'; ephem.subType = 'armada'; choosePirateParty3(shel); break; case 14: shel._xscale = -100; ephem.partyType = 'regulators'; ephem.subType = 'gang'; choosePirateParty2(shel); break; case 13: shel._xscale = -100; ephem.partyType = 'pirates'; ephem.subType = 'none'; choosePirateParty(shel); break; case 12: shel._xscale = 100; ephem.partyType = 'robot'; ephem.subType = 'none'; myRobot = shel; chooseRobot(shel); break; case 11: shel._xscale = -100; ephem.partyType = 'regulators'; ephem.subType = 'strong'; chooseRegulatorParty2(shel); break; case 10: shel._xscale = -100; ephem.partyType = 'regulators'; ephem.subType = 'none'; chooseRegulatorParty(shel); break; case 9: shel._xscale = -100; ephem.partyType = 'regulators'; ephem.subType = 'rogues'; choosePirateParty2(shel); break; case 8: shel._xscale = -100; ephem.partyType = 'pirates'; ephem.subType = 'none'; chooseMercenaryParty(shel); break; case 7: shel._xscale = 100; myCastle = shel; ephem.partyType = 'castle'; ephem.subType = 'none'; chooseCastle(shel); break; case 6: shel._xscale = -100; ephem.partyType = 'regulators'; ephem.subType = 'none'; chooseRegulatorParty(shel); break; case 5: shel._xscale = -100; ephem.partyType = 'regulators'; ephem.subType = 'none'; chooseRegulatorParty(shel); break; case 4: shel._xscale = -100; ephem.partyType = 'mercenaries'; ephem.subType = 'none'; chooseMercenaryParty(shel); break; case 3: shel._xscale = -100; ephem.partyType = 'pirates'; ephem.subType = 'none'; choosePirateParty(shel); break; case 2: chooseRandomOutfit(shel.human0, 'die'); shel.human0.die.gotoAndStop(90); break; case 1: chooseOutfit(shel.human0, 'running', 19, 1, 14, 16); } shel._x = 800; shel._y = 175; shel.myID = num; targetID = shel; shel.myK = k; shel.active = true; localEvents.push('id' + k); trace(localEvents); } function moveEvent() { i = 0; while (i < localEvents.length) { tempMC = trav.overhead.eventLoadArea[localEvents[i]]; tempMC._x -= travel.setSpeed * 7.5; if (tempMC.active && tempMC.hitTest(trav.overhead.encounterLine)) { if (tempMC.fightLine != true || tempMC.fightLine && tempMC.partyHitArea.hitTest(trav.overhead.encounterLine)) { trace('FLIGHTLINE>>>>' + tempMC.fightLine); tempMC.active = false; startSound(5); triggerEvent(tempMC.myID, tempMC); } } ++i; } } function triggerEvent(num, mov) { if (travel['event' + num].messageType == 'prompt') { interrupted = true; moving = false; addMessage('<b>' + travel['event' + num].prompt + '</b>'); } currentEvent = num; switch (num) { case 16: trav.textScroller.stopGo._visible = false; trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; execEvent(currentEvent, 1); break; case 15: trav.textScroller.stopGo._visible = false; trav.textScroller.battleButt._visible = true; trav.textScroller.fleeButt._visible = true; trav.textScroller.surrenderButt._visible = true; trav.textScroller.battleButt.onRelease = function () { execEvent(currentEvent, 1); }; trav.textScroller.fleeButt.onRelease = function () { execEvent(currentEvent, 2); }; trav.textScroller.surrenderButt.onRelease = function () { execEvent(currentEvent, 3); }; break; case 14: trav.textScroller.stopGo._visible = false; trav.textScroller.battleButt._visible = true; trav.textScroller.fleeButt._visible = true; trav.textScroller.surrenderButt._visible = true; trav.textScroller.battleButt.onRelease = function () { execEvent(currentEvent, 1); }; trav.textScroller.fleeButt.onRelease = function () { execEvent(currentEvent, 2); }; trav.textScroller.surrenderButt.onRelease = function () { execEvent(currentEvent, 3); }; break; case 13: trav.textScroller.stopGo._visible = false; trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; execEvent(currentEvent, 1); break; case 12: trav.textScroller.stopGo._visible = false; trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; execEvent(currentEvent, 1); break; case 11: trav.textScroller.stopGo._visible = false; trav.textScroller.battleButt._visible = true; trav.textScroller.fleeButt._visible = true; trav.textScroller.surrenderButt._visible = true; trav.textScroller.battleButt.onRelease = function () { execEvent(currentEvent, 1); }; trav.textScroller.fleeButt.onRelease = function () { execEvent(currentEvent, 2); }; trav.textScroller.surrenderButt.onRelease = function () { execEvent(currentEvent, 3); }; break; case 10: trav.textScroller.stopGo._visible = false; trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; execEvent(currentEvent, 1); trav.textScroller.surrenderButt.onRelease = function () { execEvent(currentEvent, 3); }; break; case 9: trav.textScroller.stopGo._visible = false; trav.textScroller.battleButt._visible = true; trav.textScroller.fleeButt._visible = true; trav.textScroller.surrenderButt._visible = true; trav.textScroller.battleButt.onRelease = function () { execEvent(currentEvent, 1); }; trav.textScroller.fleeButt.onRelease = function () { execEvent(currentEvent, 2); }; trav.textScroller.surrenderButt.onRelease = function () { execEvent(currentEvent, 3); }; break; case 8: trav.textScroller.stopGo._visible = false; trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; execEvent(currentEvent, 1); break; case 7: if (world['town' + player.destination].captured) { triggerInterrupt3('You have arrived at your destination. Since you rule over this town you recieve a 300G benefit.'); _root.player.cash += 300; trav.textScroller.stopGo._visible = false; trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; } else { trav.textScroller.stopGo._visible = false; trav.textScroller.battleButt._visible = true; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; trav.textScroller.battleButt._x = trav.textScroller.surrenderButt._x; trav.textScroller.enterButt._visible = true; trav.textScroller.battleButt.onRelease = function () { execEvent(currentEvent, 1); }; trav.textScroller.enterButt.onRelease = function () { triggerInterrupt3('You are welcomed to your new destination.'); trav.textScroller.enterButt._visible = false; trav.textScroller.battleButt._visible = false; }; trav.textScroller.surrenderButt.onRelease = function () { execEvent(currentEvent, 3); }; } break; case 6: trav.textScroller.stopGo._visible = false; trav.textScroller.battleButt._visible = true; trav.textScroller.fleeButt._visible = true; trav.textScroller.surrenderButt._visible = true; trav.textScroller.battleButt.onRelease = function () { execEvent(currentEvent, 1); }; trav.textScroller.fleeButt.onRelease = function () { execEvent(currentEvent, 2); }; trav.textScroller.surrenderButt.onRelease = function () { execEvent(currentEvent, 3); }; break; case 5: trav.textScroller.stopGo._visible = false; trav.textScroller.attack2Butt._visible = true; trav.textScroller.allowButt._visible = true; trav.textScroller.fleeButt._visible = true; trav.textScroller.allowButt.onRelease = function () { execEvent(currentEvent, 1); }; trav.textScroller.attack2Butt.onRelease = function () { execEvent(currentEvent, 2); }; trav.textScroller.fleeButt.onRelease = function () { execEvent(currentEvent, 3); }; trav.textScroller.surrenderButt.onRelease = function () { execEvent(currentEvent, 4); }; break; case 4: trav.textScroller.stopGo._visible = false; trav.textScroller.attack2Butt._visible = true; trav.textScroller.ignore2Butt._visible = true; trav.textScroller.attack2Butt.onRelease = function () { execEvent(currentEvent, 1); }; trav.textScroller.ignore2Butt.onRelease = function () { execEvent(currentEvent, 2); }; trav.textScroller.surrenderButt.onRelease = function () { execEvent(currentEvent, 3); }; break; case 3: trav.textScroller.fleeButt._visible = true; trav.textScroller.battleButt._visible = true; trav.textScroller.surrenderButt._visible = true; trav.textScroller.stopGo._visible = false; trav.textScroller.battleButt.onRelease = function () { execEvent(currentEvent, 1); }; trav.textScroller.fleeButt.onRelease = function () { execEvent(currentEvent, 2); }; trav.textScroller.surrenderButt.onRelease = function () { execEvent(currentEvent, 3); }; break; case 2: trav.textScroller.robButt._visible = true; trav.textScroller.helpButt._visible = true; trav.textScroller.ignoreButt._visible = true; trav.textScroller.stopGo._visible = false; trav.textScroller.robButt.onRelease = function () { execEvent(currentEvent, 1); }; trav.textScroller.helpButt.onRelease = function () { execEvent(currentEvent, 2); }; trav.textScroller.ignoreButt.onRelease = function () { execEvent(currentEvent, 2); }; break; case 1: execEvent(currentEvent, 1); break; case 0: trav.textScroller.takeButt._visible = true; trav.textScroller.leaveButt._visible = true; trav.textScroller.stopGo._visible = false; trav.textScroller.takeButt.onRelease = function () { execEvent(currentEvent, 1); }; trav.textScroller.leaveButt.onRelease = function () { execEvent(currentEvent, 2); }; } } function execEvent(num, opt) { moving = false; interrupted = false; switch (num) { case 16: prepBattle(); break; case 15: switch (opt) { case 1: addMessage('You decide to attack the pirate armada!'); trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; prepBattle(); break; case 2: trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; curMode = 'battle'; _root.triggerFlee(); break; case 3: trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; allowSearch(false); } break; case 14: switch (opt) { case 1: addMessage('You decide to attack the pirate scum!'); trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; prepBattle(); break; case 2: trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; curMode = 'battle'; _root.triggerFlee(); break; case 3: trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; allowSearch(false); } break; case 13: prepBattle(); break; case 12: prepBattle(); break; case 11: switch (opt) { case 1: addMessage('You decide to attack the strong convoy!'); trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; prepBattle(); break; case 2: trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; curMode = 'battle'; _root.triggerFlee(); break; case 3: trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; allowSearch(false); } break; case 10: trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; prepBattle(); if (opt == 3) { trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; addMessage('There is no surrender!'); } break; case 9: switch (opt) { case 1: addMessage('You decide to attack the rogues!'); trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; prepBattle(); break; case 2: trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; curMode = 'battle'; _root.triggerFlee(); break; case 3: trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; allowSearch(false); } break; case 8: prepBattle(); break; case 7: if (opt == 3) { surrenderGoods(); trav.textScroller.enterButt._visible = false; } else { triggerInterrupt('You decide to try to seige the town for your own!'); addMessage('You attack the city! Charge!'); trav.textScroller.enterButt._visible = false; trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; prepBattle(); } break; case 6: switch (opt) { case 1: changeReputation(-1); addMessage('You decide to attack the Regulator party!'); trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; prepBattle(); break; case 2: trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; curMode = 'battle'; _root.triggerFlee(); break; case 3: trav.textScroller.battleButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.surrenderButt._visible = false; allowSearch(false); } break; case 5: switch (opt) { case 1: changeReputation(1); trav.textScroller.attack2Butt._visible = false; trav.textScroller.allowButt._visible = false; trav.textScroller.fleeButt._visible = false; allowSearch(true); break; case 2: changeReputation(-2); triggerInterrupt('Remember, attacking the Enforcer Guild is a serious offense and drastically hurt your reputation!'); addMessage('You decide to attack the Enforcer party!'); trav.textScroller.attack2Butt._visible = false; trav.textScroller.allowButt._visible = false; trav.textScroller.fleeButt._visible = false; prepBattle(); break; case 3: changeReputation(-1); trav.textScroller.attack2Butt._visible = false; trav.textScroller.allowButt._visible = false; trav.textScroller.fleeButt._visible = false; curMode = 'battle'; _root.triggerFlee(); break; case 4: trav.textScroller.attack2Butt._visible = false; trav.textScroller.allowButt._visible = false; trav.textScroller.fleeButt._visible = false; allowSearch(false); } break; case 4: switch (opt) { case 1: changeReputation(-2); triggerInterrupt('Remember, attacking a mercenary party will cause your reputation to slide... think carefully if you want to cause trouble with the Enforcers!'); addMessage('You decide to battle with the mercenary party!'); trav.textScroller.attack2Butt._visible = false; trav.textScroller.ignore2Butt._visible = false; prepBattle(); break; case 2: addMessage('Greeted with a \'hello!\', you pass the mercenary party and travel onward.'); trav.textScroller.attack2Butt._visible = false; trav.textScroller.ignore2Butt._visible = false; trav.textScroller.stopGo._visible = true; trav.textScroller.stopGo.stopButt._visible = false; trav.textScroller.stopGo.goButt._visible = true; break; case 3: surrenderGoods(); } break; case 3: switch (opt) { case 1: changeReputation(1); trav.textScroller.fleeButt._visible = false; trav.textScroller.battleButt._visible = false; trav.textScroller.surrenderButt._visible = false; prepBattle(); break; case 2: trav.textScroller.fleeButt._visible = false; trav.textScroller.battleButt._visible = false; trav.textScroller.surrenderButt._visible = false; curMode = 'battle'; _root.triggerFlee(); break; case 3: surrenderGoods(); } break; case 2: switch (opt) { case 1: tempNumber = addRandomCash(); addMessage('You manage to steal ' + tempNumber + ' G off the guy and you leave him in the road.'); player.cash += tempNumber; changeReputation(-2); break; case 2: if (player.partySize < trade['vessel' + player.vessel].people) { player['player' + player.partySize].head = trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]].human0.headX; player['player' + player.partySize].skin = trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]].human0.skinX; player['player' + player.partySize].shirt = trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]].human0.shirtX; player['player' + player.partySize].pants = trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]].human0.pantsX; player.partySize += 1; player['player' + player.partySize].hireRate = 50 + random(60); player['player' + player.partySize].name = nameBank[random(nameBank.length)]; trace('PARTY SIZE = ' + player.partySize); trace('VESSEL SIZE = ' + trade['vessel' + player.vessel].people); trav.overhead.eventLoadArea[localEvents[localEvents.length - 1]].removeMovieClip(); visuals(false); genParty(); changeReputation(3); addMessage('You take the stranger aboard, to give him a ride to the nearest town. What a good samaritan!'); offLoadList.push('sam'); trace(offLoadList); } else { changeReputation(1); addMessage('You do not have enough room to take the person to town, but you do give him some of your extra food and water. How nice of you!'); } break; case 3: changeReputation(-1); addMessage('You ignore the individual... getting involved may be too much trouble. You proceed on.'); } trav.textScroller.robButt._visible = false; trav.textScroller.helpButt._visible = false; trav.textScroller.ignoreButt._visible = false; trav.textScroller.stopGo._visible = true; trav.textScroller.stopGo.stopButt._visible = false; trav.textScroller.stopGo.goButt._visible = true; break; case 1: moving = true; interrupted = false; choice = random(4); if (choice == 0) { tempNumber = addRandomCash(); addMessage('<b>A thief sneaks into your cargo and steals ' + tempNumber + ' G!</b>'); player.cash -= tempNumber; if (player.cash < 0) { player.cash = 0; } } if (choice == 1) { addMessage('<b>A petty thief tries to steal from you, but he gets caught and runs away.</b>'); } if (choice == 2) { foundChoice = false; i = 0; while (i < 20) { if (trade['wSlot' + i].weaponType >= 0) { tempNumber = trade['wSlot' + i].weaponType; trade['wSlot' + i].weaponType = -1; foundChoice = true; break; } ++i; } if (foundChoice == false) { addMessage('<b>A thief gets into your weapons cache, but runs off after finding nothing. Phew!</b>'); } else { addMessage('<b>A thief sneaks into your supplies and steals a ' + trade['weapon' + tempNumber].name + '! The thief gets away before you can confront the individual.</b>'); } } if (choice == 3) { foundChoice = false; i = 0; while (i < 20) { if (trade['aSlot' + i].armorType >= 0) { tempNumber = trade['aSlot' + i].armorType; trade['aSlot' + i].armorType = -1; foundChoice = true; break; } ++i; } if (foundChoice == false) { addMessage('<b>A thief gets into your extra armor, but manages not to grab anything before your catch him in the act. Phew!</b>'); } else { addMessage('<b>A thief sneaks into your armor stash and steals a ' + trade['armor' + tempNumber].name + ' Armor! The thief gets away before you can do anything about it.</b>'); } } break; case 0: switch (opt) { case 1: choice = random(4); if (choice == 0) { tempNumber = addRandomCash(); addMessage('After careful searching, you found ' + tempNumber + ' G sitting in the bottom of one of the containers! Nice!'); player.cash += tempNumber; } if (choice == 1) { addMessage('After searching carefully, you find nothing of value and decide to carry on.'); } if (choice == 2) { tempNumber = addRandomWeapon(); foundChoice = false; i = 0; while (i < 20) { if (trade['wSlot' + i].weaponType == -1) { trade['wSlot' + i].weaponType = tempNumber; foundChoice = true; break; } ++i; } if (foundChoice == false) { addMessage('Sifting through a large crate, you find a ' + trade['weapon' + tempNumber].name + '!' + 'But you do not have any room in your weapons storage, so you have to leave it behind.'); } else { addMessage('Sifting through a large crate, you find a ' + trade['weapon' + tempNumber].name + '! You add it to your weapons storage.'); } } if (choice == 3) { tempNumber = addRandomArmor(); foundChoice = false; i = 0; while (i < 20) { if (trade['aSlot' + i].armorType == -1) { trade['aSlot' + i].armorType = tempNumber; foundChoice = true; break; } ++i; } if (foundChoice == false) { addMessage('Sifting through a large crate, you find ' + trade['armor' + tempNumber].name + ' Armor!' + 'But you do not have any room in your armor storage, so you have to leave it behind.'); } else { addMessage('Sifting through a large crate, you find ' + trade['armor' + tempNumber].name + ' Armor! You add it to your armor storage.'); } } break; case 2: addMessage('You leave the abandoned goods behind, and continue on.'); } trav.textScroller.takeButt._visible = false; trav.textScroller.leaveButt._visible = false; trav.textScroller.stopGo._visible = true; trav.textScroller.stopGo.stopButt._visible = false; trav.textScroller.stopGo.goButt._visible = true; } } function allowSearch(bool) { if (trav._currentframe != 1) { trav.play(); } foundIllegalItem = false; illegalCount = 0; i = 0; while (i < totItems) { if (trade['item' + i].illegal) { if (player['item' + i] > 0) { foundIllegalItem = true; illegalCount += player['item' + i]; player['item' + i] = 0; --player.holding; } } ++i; } tempNumber = illegalCount * 50; player.cash -= tempNumber; if (!bool) { player.cash -= 1000; } if (player.cash <= 0) { player.cash = 0; } if (bool) { if (foundIllegalItem) { addMessage('The Enforcers find illegal substances in your cargo, and confiscate ' + illegalCount + ' illegal items. They fine you an additional ' + tempNumber + ' G for their trouble.'); } else { addMessage('The Enforcers do not find anything, and thank you for your time.'); } } else { if (foundIllegalItem) { addMessage('The Enforcers find illegal substances in your cargo, and confiscate ' + illegalCount + ' illegal items. They fine you an additional ' + tempNumber + ' G for their trouble, and another 1,000 G for your attempted attacks on them.'); } else { addMessage('The Enforcers do not find anything, but fine you 1000 G for your attempted attacks on them.'); } } trav.textScroller.surrenderButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.attackButt._visible = false; trav.textScroller.stopGo._visible = true; trav.textScroller.stopGo.stopButt._visible = false; trav.textScroller.stopGo.goButt._visible = true; moveDirection = 'normal'; } function addRandomCash() { tempNumber2 = random(100); if (tempNumber2 < 60) { return random(200) + 2; } else { if (tempNumber2 < 95) { return random(400) + 2; } else { return random(1000) + 2; } } } function addRandomWeapon() { tempNumber2 = random(100); if (tempNumber2 < 20) { return 0; } else { if (tempNumber2 < 40) { return 1; } else { if (tempNumber2 < 60) { return 2; } else { if (tempNumber2 < 70) { return 3; } else { if (tempNumber2 < 80) { return 4; } else { if (tempNumber2 < 90) { return 5; } else { if (tempNumber2 < 100) { return 6; } } } } } } } } function addRandomCargo() { tempNumber2 = random(100); if (tempNumber2 < 10) { return 0; } else { if (tempNumber2 < 20) { return 1; } else { if (tempNumber2 < 30) { return 2; } else { if (tempNumber2 < 40) { return 3; } else { if (tempNumber2 < 60) { return 4; } else { if (tempNumber2 < 70) { return 5; } else { if (tempNumber2 < 80) { return 6; } else { if (tempNumber2 < 85) { return 7; } else { if (tempNumber2 < 90) { return 8; } else { if (tempNumber2 < 95) { return 9; } else { if (tempNumber2 < 98) { return 10; } else { if (tempNumber2 < 100) { return 11; } } } } } } } } } } } } } function addRandomArmor() { tempNumber2 = random(100); if (tempNumber2 < 40) { return 0; } else { if (tempNumber2 < 70) { return 1; } else { if (tempNumber2 < 80) { return 2; } else { if (tempNumber2 < 90) { return 3; } else { if (tempNumber2 < 100) { return 4; } } } } } } function visuals(bool) { if (!bool) { curGrassLine.grassLine.stop(); curRange.range.range.stop(); trav.overhead.background.clouds.stop(); i = 0; while (i < 5) { trav.overhead.partySet.group['human' + i]._visible = false; ++i; } i = 0; while (i < player.partySize) { trav.overhead.partySet.group['human' + i]._visible = true; chooseOutfit(trav.overhead.partySet.group['human' + i], trade['vessel' + player.vessel].seated['down' + i], player['player' + i].head, player['player' + i].skin, player['player' + i].shirt, player['player' + i].pants, trade['wSlot' + (20 + i)].weaponType); ++i; } } else { if (moveDirection == 'normal') { curGrassLine.grassLine.play(); curRange.range.range.play(); trav.overhead.background.clouds.play(); if (trav.overhead.partySet._xscale == -100) { trav.overhead.partySet._xscale = 100; } } else { curGrassLine.grassLine.prevFrame(); curRange.range.range.prevFrame(); trav.overhead.background.clouds.prevFrame(); if (curGrassLine.grassLine._currentframe == 1) { curGrassLine.grassLine.gotoAndStop(curGrassLine.grassLine._totalframes); } if (curRange.range.range._currentframe == 1) { curRange.range.range.gotoAndStop(curRange.range.range._totalframes); } if (trav.overhead.background.clouds._currentframe == 1) { trav.overhead.background.clouds.gotoAndStop(trav.overhead.background.clouds._totalframes); } if (trav.overhead.partySet._xscale == 100) { trav.overhead.partySet._xscale = -100; } } trav.overhead.partySet.gotoAndStop(player.vessel + 1); i = 0; while (i < 5) { trav.overhead.partySet.group['human' + i]._visible = false; ++i; } i = 0; while (i < _root.player.partySize) { trav.overhead.partySet.group['human' + i]._visible = true; chooseOutfit(trav.overhead.partySet.group['human' + i], trade['vessel' + player.vessel].seated['up' + i], player['player' + i].head, player['player' + i].skin, player['player' + i].shirt, player['player' + i].pants, trade['wSlot' + (20 + i)].weaponType); ++i; } } } function changeBG(bool) { shel = trav.overhead.ranges.attachMovie('rangeHolder', 'rangeHolder' + k, k++); shel._y = -210; if (bool == true) { shel.type = loaderTypes[world['town' + player.location].nature]; startSong(world['town' + player.location].nature); oldSong = world['town' + player.location].nature; } else { shel.type = loaderTypes[world['town' + player.destination].nature]; startSong(world['town' + player.destination].nature); oldSong = world['town' + player.destination].nature; } shel.range.gotoAndStop(shel.type); curRange.gotoAndPlay(21); ++k; curRange._name = 'rangeHolder' + k; curRange = shel; } function changeFG() { shel = trav.overhead.gHolder.attachMovie('grassLine', 'grassLine' + k, k++); shel.grassLine.g0.gotoAndStop(curRange.type); shel.grassLine.g1.gotoAndStop(curRange.type); shel.grassLine.g2.gotoAndStop(curRange.type); shel.type = curRange.type; curGrassLine.gotoAndPlay(16); ++k; curGrassLine._name = 'grassLine' + k; curGrassLine = shel; } function drawRoute() { trav.mapSetHolder.mapSet.mark.lineStyle(2, 16777215, 50); trav.mapSetHolder.mapSet.mark.moveTo(trav.mapSetHolder.mapSet.arrowHead._x, trav.mapSetHolder.mapSet.arrowHead._y); trav.mapSetHolder.mapSet.mark.lineTo(prevX, prevY); prevX = trav.mapSetHolder.mapSet.arrowHead._x; prevY = trav.mapSetHolder.mapSet.arrowHead._y; } function initSpeed() { i = 0; while (i < 5) { if (speeds[i] == travel.setSpeed) { setCurSpeed(i); break; } ++i; } if (curSpeed == -1) { setCurSpeed(1); } } function setSpeed() { setCurSpeed(curSpeed); i = 0; while (i < 5) { if (trav.textScroller.speedAdjustment['s' + i].hitTest(_xmouse, _ymouse)) { trav.textScroller.speedAdjustment['s' + i].gotoAndStop(2); if (holdMouse) { setCurSpeed(i); } } ++i; } } function setCurSpeed(num) { j = 0; while (j < 5) { trav.textScroller.speedAdjustment['s' + j].gotoAndStop(1); ++j; } j = 0; while (j <= num) { trav.textScroller.speedAdjustment['s' + j].gotoAndStop(2); ++j; } travel.setSpeed = speeds[num]; curSpeed = num; } function detailsBlock() { trav.details.cash.text = commaSnob(player.cash); trav.details.storage.text = player.holding + '/' + player.capacity; trav.details.name.text = player.player0.name; tempString2 = (player.distBetween - (day + 1)) * 24 + (24 - hour) + '.'; if (counter < 5) { tempString2 += '9'; } else { tempString2 += 10 - Math.round((counter / 60) * 10); } tempString2 += ' hours'; trav.details.hoursLeft.text = tempString2; trav.details.locAndDay.text = world['town' + player.location].name + ' to ' + world['town' + player.destination].name + ' - Day ' + player.day; distLeft = Math.floor(4 * dist(trav.mapSetHolder.mapSet['x' + player.destination]._x, trav.mapSetHolder.mapSet['x' + player.destination]._y, trav.mapSetHolder.mapSet.arrowHead._x, trav.mapSetHolder.mapSet.arrowHead._y)); if (!hitHalf) { if (distLeft < halfDist) { hitHalf = true; changeBG(false); changeFG(); trace('HALF WAY'); } } trav.details.distanceLeft.text = distLeft + 'km'; } function depths() { arrowHead.swapDepths(k++); trav.overhead.partySet.swapDepths(k++); } function timeManagement() { counter += travel.setSpeed; if (counter >= 60) { counter = 0; tempAngle = rot(trav.mapSetHolder.mapSet.arrowHead._x, trav.mapSetHolder.mapSet.arrowHead._y, trav.mapSetHolder.mapSet['x' + player.destination]._x, trav.mapSetHolder.mapSet['x' + player.destination]._y) - 90; trav.mapSetHolder.mapSet.arrowHead._rotation = tempAngle; thrust(trav.mapSetHolder.mapSet.arrowHead, pacing * 60, tempAngle); ++hour; if (hour > 23) { hour = 0; ++player.day; ++day; dailyFluctuation(); addMessage('-----Day ' + player.day + '-----\n'); if (day == player.distBetween) { } } else { if (hour == 23 && day == player.distBetween - 1) { trace('++++'); trace(player.distBetween - 1); trace(day); trace('TESTING TESTING TESTING'); loadEvent(7); } else { chooseEvent(); } } } tempNumber = hour * 60 + counter; trav.overhead.background.gotoAndStop(tempNumber); trav.overhead.foreground.gotoAndStop(tempNumber); } function addMessage(str) { tempString = str + '\n' + tempString; } onEnterFrame = function () { if (curMode == 'normal') { visuals(moving); if (!interrupted) { drawRoute(); if (moving) { timeManagement(); moveEvent(); } updateBox(); detailsBlock(); depths(); setSpeed(); } } else { loadBattleStats(); updateBox(); switch (batStep) { case 1: checkHealth(); break; case 2: checkHealth(); timeOutSwing(); break; case 3: checkHealth(); timeOutSwing2(); break; case 4: timeOutSwing3(); break; case 5: break; case 6: timeOutFlee(); break; case 7: timeOutFlee2(); } } }; trav.textScroller.takeButt._visible = false; trav.textScroller.leaveButt._visible = false; trav.textScroller.robButt._visible = false; trav.textScroller.helpButt._visible = false; trav.textScroller.ignoreButt._visible = false; trav.textScroller.fleeButt._visible = false; trav.textScroller.battleButt._visible = false; trav.textScroller.surrenderButt._visible = false; trav.textScroller.attackButt._visible = false; trav.textScroller.autoButt._visible = false; trav.textScroller.stopButt._visible = false; trav.textScroller.allowButt._visible = false; trav.textScroller.ignore2Butt._visible = false; trav.textScroller.attack2Butt._visible = false; trav.textScroller.stopGo._visible = true; stop(); moving = true; tete = 0; interrupted = false; moveDirection = 'normal'; var offLoadList = new Array(); var loadLastFrame = false; var curMode = 'normal'; var holdMouse = false; onMouseDown = function () { if (!interrupted) { holdMouse = true; } }; onMouseUp = function () { holdMouse = false; }; tempString = ''; _global.styles.TextInput.setStyle('backgroundColor', 14733734); trav.mapSetHolder.mapSet.spreadArea._visible = false; end = trav.mapSetHolder.mapSet['x' + player.destination]; begin = trav.mapSetHolder.mapSet['x' + player.location]; trav.mapSetHolder.mapSet['x' + player.destination].gotoAndStop(3); trav.mapSetHolder.mapSet['x' + player.location].gotoAndStop(2); trav.mapSetHolder.mapSet._x = trav.mapCenter._x - begin._x; trav.mapSetHolder.mapSet._y = trav.mapCenter._y - begin._y; trav.mapSetHolder.mapSet._x += (begin._x - end._x) / 2; trav.mapSetHolder.mapSet._y += (begin._y - end._y) / 2; trav.mapSetHolder.mapSet.arrowHead._x = trav.mapSetHolder.mapSet['x' + player.location]._x; trav.mapSetHolder.mapSet.arrowHead._y = trav.mapSetHolder.mapSet['x' + player.location]._y; trav.mapSetHolder.mapSet.arrowHead._rotation = rot(trav.mapSetHolder.mapSet.arrowHead._x, trav.mapSetHolder.mapSet.arrowHead._y, trav.mapSetHolder.mapSet['x' + player.destination]._x, trav.mapSetHolder.mapSet['x' + player.destination]._y) - 90; tempDist = dist(trav.mapSetHolder.mapSet['x' + player.destination]._x, trav.mapSetHolder.mapSet['x' + player.destination]._y, trav.mapSetHolder.mapSet['x' + player.location]._x, trav.mapSetHolder.mapSet['x' + player.location]._y); pacing = tempDist / 1440 * player.distBetween; trace('PACING = ' + pacing); prevX = trav.mapSetHolder.mapSet['x' + player.location]._x; prevY = trav.mapSetHolder.mapSet['x' + player.location]._y; trav.mapSetHolder.mapSet.mark.removeMovieClip(); trav.mapSetHolder.mapSet.createEmptyMovieClip('mark', k++); genParty(); trav.overhead.background.stop(); trav.overhead.foreground.stop(); trav.overhead.background.clouds.stop(); moving = true; hour = 0; counter = 0; day = 0; var batStep = 1; var tempCounter = 0; var damage = 0; var totalDamage = 0; var defense = 0; var autoFight = false; trav.textScroller.autoButt.onRelease = function () { _root.autoFight = true; _root.flipAutoAttack(); if (_root.batStep == 1) { _root.triggerAttack(); } }; trav.textScroller.stopButt.onRelease = function () { _root.autoFight = false; _root.flipAutoAttack(); }; var cycleFocus = 0; var localEvents = new Array(); var tripSpecial = false; var loaderTypes = new Array(0, 3, 4, 5, 6, 6, 1, 1, 2, 3, 4); var oldSong = 0; changeBG(true); changeFG(); var speeds = new Array(1, 3, 5, 10, 20); var curSpeed = -1; var permDist = Math.floor(4 * dist(trav.mapSetHolder.mapSet['x' + player.destination]._x, trav.mapSetHolder.mapSet['x' + player.destination]._y, trav.mapSetHolder.mapSet.arrowHead._x, trav.mapSetHolder.mapSet.arrowHead._y)); var halfDist = permDist / 2; var hitHalf = false; trav.textScroller.stopGo.stopButt._visible = true; trav.textScroller.stopGo.goButt._visible = false; trav.textScroller.stopGo.stopButt.onRelease = function () { moving = false; trav.textScroller.stopGo.stopButt._visible = false; trav.textScroller.stopGo.goButt._visible = true; }; trav.textScroller.stopGo.goButt.onRelease = function () { moving = true; curMode = 'normal'; trav.textScroller.stopGo.goButt._visible = false; trav.textScroller.stopGo.stopButt._visible = true; }; trav.textScroller.enterButt._visible = false; initSpeed(); } movieClip 1608 { } movieClip 1609 { } movieClip 1611 { frame 1 { this._visible = false; } } movieClip 1613 { } movieClip 1614 { } movieClip 1616 { } movieClip 1621 { } movieClip 1628 { frame 1 { stop(); } } movieClip 1657 { frame 1 { stop(); } } movieClip 1660 { } movieClip 1661 { instance box of movieClip 868 TextArea { onClipEvent (construct) { editable = false; html = true; text = ''; wordWrap = true; maxChars = 0; restrict = ''; enabled = true; password = false; visible = true; minHeight = 0; minWidth = 0; } } } movieClip 1664 { } movieClip 1665 { } movieClip 1676 { } movieClip 1684 { frame 1 { stop(); } } movieClip 1686 { } movieClip 1687 { frame 1 { stop(); } frame 50 { stop(); _root.startBattle(); } }




http://swfchan.com/16/78395/info.shtml
Created: 3/4 -2019 16:05:56 Last modified: 3/4 -2019 16:05:56 Server time: 24/04 -2024 15:44:26